Commit Graph

248 Commits

Author SHA1 Message Date
Aaron Culliney
53a9cc3950 HACK around apparently problematic return from calling C
* HACK ALERT!!! movl(%eax), %eax   --or--  movzbl(%eax), %eax
    * This pattern appears to be generated in some cases by the compiler.  It's not clear to me why it's a problem for
      the emulator (not a crash per se, but an emulation lock-up).
    * Current suspicion is that there are side-effects in the x86 flags from this instruction/indexing mode which are
      copied into the 6502 flags
    * Current sample code showing problem (and non-boot of emulator) is f785da40e9
2014-05-11 13:17:47 -07:00
Aaron Culliney
403cb8b154 Add a comment about suspect code 2014-05-11 13:15:14 -07:00
Aaron Culliney
f785da40e9 refactor C3ROM,CXROM switches to C 2014-05-10 22:39:03 -07:00
Aaron Culliney
400364b739 refactor some softswitch query routines to C 2014-05-10 22:14:46 -07:00
Aaron Culliney
cb387f21dc refactor DHIRES,IOUDIS switches to C 2014-05-10 22:07:25 -07:00
Aaron Culliney
2932c6b832 refactor ALTCHAR switch to C 2014-05-10 21:41:48 -07:00
Aaron Culliney
e6c582bab6 refactor 80COL switch to C 2014-05-10 21:36:55 -07:00
Aaron Culliney
a206fc06b8 refactor ALTZP switch to C 2014-05-10 21:25:54 -07:00
Aaron Culliney
442fe390de use ALTZP offset to avoid test/branch 2014-05-10 18:44:18 -07:00
Aaron Culliney
0c25ec25d6 Save/restore other crucial registers for safety 2014-05-10 16:45:10 -07:00
Aaron Culliney
7fd9857102 Use named registers 2014-05-10 16:39:51 -07:00
Aaron Culliney
f3ea9fa256 tabs -> spaces 2014-05-10 16:33:31 -07:00
Aaron Culliney
ed19f5c52c %edx -> SP_Reg 2014-05-10 16:21:42 -07:00
Aaron Culliney
bb4acc967c refactor RAMRD,RAMWRT switches to C 2014-05-10 14:19:06 -07:00
Aaron Culliney
ba1c2b0451 refactor 80STORE switch to C 2014-05-10 13:59:07 -07:00
Aaron Culliney
5249248aaa refactor language card switches to C 2014-05-10 13:40:29 -07:00
Aaron Culliney
aef793cfab removed unused ][ rom stuff 2014-05-10 13:11:02 -07:00
Aaron Culliney
1c3fc78838 refactor game controller switches to C 2014-05-10 13:08:44 -07:00
Aaron Culliney
ebde9266e3 refactor HIRES switch to C 2014-05-10 12:36:59 -07:00
Aaron Culliney
2600c13723 refactor TEXT and MIXED switches to C 2014-05-10 12:26:06 -07:00
Aaron Culliney
8b00636f66 refactor PAGE2 switch to C 2014-05-10 11:56:54 -07:00
Aaron Culliney
9ff453be23 Beginning to refactor memory.S -> vm.c 2014-05-10 11:55:41 -07:00
Aaron Culliney
25cd542a2c potential bugfix for iie_dhires_on, iie_dhires_off 2014-05-10 11:20:31 -07:00
Aaron Culliney
95baf5c4df bugfix... RAMWRT instead of RAMRD 2014-05-04 17:24:13 -07:00
Aaron Culliney
7827c6bcb3 C3ROM/CXROM softswitch tests 2014-05-04 17:19:48 -07:00
Aaron Culliney
a327e43ddc checking TEXT/MIXED/PAGE2/HIRES/BANK2/LCRAM softswitches 2014-05-04 16:33:24 -07:00
Aaron Culliney
48856786d1 test setting/checking DHIRES 2014-05-04 15:19:57 -07:00
Aaron Culliney
f69279eb66 test setting/checking IOUDIS 2014-05-04 14:59:27 -07:00
Aaron Culliney
f8b9ce3f00 test setting/checking ALTCHAR 2014-05-04 14:45:19 -07:00
Aaron Culliney
aea7b33873 test setting/checking 80COL 2014-05-04 14:44:07 -07:00
Aaron Culliney
1a83d08fb6 test setting/checking ALTZP 2014-05-04 14:29:43 -07:00
Aaron Culliney
5d8fccefa9 robustify test of softswitch checking routines 2014-05-04 14:26:17 -07:00
Aaron Culliney
0bc83068f1 test setting/checking RAMWRT 2014-05-04 12:50:02 -07:00
Aaron Culliney
97806a258b test setting/checking RAMRD 2014-05-03 15:31:56 -07:00
Aaron Culliney
466bd752f1 test setting/checking 80STORE 2014-05-03 14:46:03 -07:00
Aaron Culliney
a094742df6 A few more checks for test that toggles ramrd/ramwrt 2014-05-03 14:44:54 -07:00
Aaron Culliney
e7221ce170 Additional checks alongside pseudo-softswitch SS_SCREEN 2014-05-03 13:28:44 -07:00
Aaron Culliney
99ec9a62f3 test C088, C089, C08A, C08B switches 2014-05-03 12:21:58 -07:00
Aaron Culliney
2f27b82c83 test C082, C083 switches 2014-05-01 21:41:51 -07:00
Aaron Culliney
05e1d88c37 test language card C081 switch 2014-05-01 21:41:31 -07:00
Aaron Culliney
30b80c1722 first language card test 2014-04-28 12:56:40 -07:00
Aaron Culliney
d514fd05a0 refactor to use better flag names, better softswitch result test, ... 2014-04-28 12:54:58 -07:00
Aaron Culliney
4a88b100f5 test HIRES switch 2014-04-28 11:59:41 -07:00
Aaron Culliney
b92c59eac6 6502 assembly test helper defines 2014-04-28 11:58:46 -07:00
Aaron Culliney
80032e17f9 define should be larger and private 2014-04-28 11:56:36 -07:00
Aaron Culliney
304442655c Attempt to load non-gzipped test disks (aborted from previous runs) 2014-04-28 11:55:51 -07:00
Aaron Culliney
615204ebc9 A 6502 assembly script to test AUXMOVE and RAMRD boundary execution 2014-04-28 11:53:59 -07:00
Aaron Culliney
418509f2c1 don't leak 2014-04-28 11:44:45 -07:00
Aaron Culliney
5b46978233 Allow "complete" reboots to occur when debug-stepping
* This allows reboot to work if RAMRD switch is set to auxmem (as it is in a few VM tests)
2014-04-28 11:40:51 -07:00
Aaron Culliney
1a7fc8ab10 TEXT and MIXED switch tests 2014-04-26 15:44:13 -07:00