Commit Graph

257 Commits

Author SHA1 Message Date
Aaron Culliney
95ff4adb08 Refactor hires table initializations 2014-05-17 13:45:55 -07:00
Aaron Culliney
83da4c11af Merge macros used only once 2014-05-17 12:55:14 -07:00
Aaron Culliney
c22fbd0374 Reduce dependence on global TEMP buffer
* display.S still uses this ... will be refactored completely with new video update
2014-05-11 19:18:53 -07:00
Aaron Culliney
4e6718be37 Tweak joystick x-axis
* Seems to make S.R. play better and doesn't affect A.H.
2014-05-11 17:45:00 -07:00
Aaron Culliney
148dfa2f20 Refactor CPU code
* Moves cpu jump table, opcycles table, and others to C
    * Removes support for old/unused/deprecated nmos routines and tables
2014-05-11 17:06:53 -07:00
Aaron Culliney
5ec2901e98 Make opcode entry points globally linkable 2014-05-11 14:48:52 -07:00
Aaron Culliney
360c2fded1 Work around an abort in mockingboard for now 2014-05-11 13:55:54 -07:00
Aaron Culliney
0d109c404d Use named registers 2014-05-11 13:54:24 -07:00
Aaron Culliney
7d97d2e211 Complete refactoring VM routines to C 2014-05-11 13:54:03 -07:00
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