1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-12-22 14:30:45 +00:00
Commit Graph

257 Commits

Author SHA1 Message Date
Peter Evans
8e810e724f Add addr_mode field, rely upon it vs. the opcode
This makes testing _slightly_ easier, because now the handlers require a
type of state in the cpu vs. a specific opcode state in the segment that
we execute from. (The latter being just more complex to work with and
require in testing.)
2018-04-15 00:56:34 -05:00
Peter Evans
56e9d97791 Accounting for the ACC mode opcode 2018-04-14 18:26:43 -05:00
Peter Evans
72883240c3 Account for changes in behavior for INC/DEC 2018-04-14 18:22:10 -05:00
Peter Evans
b8b45cc9f2 We need to check if we would break ourselves 2018-04-13 23:38:00 -05:00
Peter Evans
a3a32662ef Remove disasm command 2018-04-13 23:36:58 -05:00
Peter Evans
da4a82d8cf The disasm command now always sets disasm = true
We should probably just not even offer this as an option in the debugger
then.
2018-04-13 23:35:59 -05:00
Peter Evans
3834c1e112 The debug_break check was moved outside of the mos6502_execute function 2018-04-13 23:34:28 -05:00
Peter Evans
04e72486f1 We need to account for the track self-sync 2018-04-13 23:31:53 -05:00
Peter Evans
55287b4cb0 Reorganizing test files 2018-04-13 19:09:23 -05:00
Peter Evans
a43fe0d38e Modify test files to account for reorg 2018-04-13 18:36:02 -05:00
Peter Evans
64afcb2040 Rewrite phaser to use state transitions, whole phase states
By whole phase states, I mean we no longer track if more than one phase
is active.
2018-03-23 19:41:01 -05:00
Peter Evans
2870bc03bc Remove option flags; remove unnecessary --flash option 2018-03-21 15:26:58 -05:00
Peter Evans
68f9daf6ac Add -O3 optimization
Also add debugging symbols in the unit test version (which we didn't
have???)
2018-03-14 00:12:00 -05:00
Peter Evans
4d34663435 Add hires graphics file; draw hires graphics 2018-03-13 16:08:31 -05:00
Peter Evans
809c1724f1 Add test for lores_color, skip on draw 2018-03-13 15:46:21 -05:00
Peter Evans
0e3a0889f3 Punt on testing 2018-03-13 15:42:08 -05:00
Peter Evans
62d868f1aa Add tests for row, col functions 2018-03-13 15:40:37 -05:00
Peter Evans
2c676e144a Rename test to open_file 2018-03-13 15:19:26 -05:00
Peter Evans
d0b085fd7a Add test for hexdump 2018-03-13 15:18:54 -05:00
Peter Evans
7d9879f843 Add file for lores tests 2018-03-13 00:50:10 -05:00
Peter Evans
7d043abc9f Force removal of test program 2018-03-13 00:27:10 -05:00
Peter Evans
19d006e9a3 Update tests to include register info 2018-03-13 00:12:52 -05:00
Peter Evans
ab6e6b03db Use option_open_file() 2018-03-09 16:45:39 -06:00
Peter Evans
1ff5d17f19 Add hexdump command 2018-03-09 16:44:53 -06:00
Peter Evans
267171ea4a Change to option_open_file(), allow any file mode 2018-03-09 16:44:20 -06:00
Peter Evans
f555196080 Test for !OK with system data addresses 2018-03-07 20:42:27 -06:00
Peter Evans
4d4fbdf79a Switch to vm_di for option variable storage
Things like disk1, disk2, width/height, etc.
2018-03-07 20:25:39 -06:00
Peter Evans
0edfcaf370 Add test for notify_refresh, skip for draw 2018-03-07 17:06:50 -06:00
Peter Evans
c3b86031bd Add tests for primary, alternate functions 2018-03-07 17:00:11 -06:00
Peter Evans
9562dd19ce Rewrite dd to use phases and half-track steps
Phases will yet be the death of me. THE DEATH OF ME.
2018-03-03 21:29:19 -06:00
Peter Evans
9d585d6ef3 Remove colors 2018-03-02 16:43:00 -06:00
Peter Evans
998a139c00 Use state machine for stepper motor changes 2018-03-02 16:42:22 -06:00
Peter Evans
c5d1542937 Show correct PC counter in scan 2018-03-01 21:37:10 -06:00
Peter Evans
b239cac239 Add dblock command to disassemble blocks of code 2018-03-01 19:31:56 -06:00
Peter Evans
0315eb33bf Better testing for ROL/ROR 2018-03-01 18:31:03 -06:00
Peter Evans
0949661b18 Do a better job testing overflow 2018-03-01 17:24:51 -06:00
Peter Evans
f8bda4ebd3 Remove modify_status() function
Also rewrite tests to use macros
2018-02-28 21:40:52 -06:00
Peter Evans
edd175c1f9 Add disasm command (toggle disassembly) 2018-02-26 20:52:13 -06:00
Peter Evans
4558e62adc Use the correct name for the quit command function 2018-02-26 20:46:19 -06:00
Peter Evans
26e2abe745 Test that ASL sets carry 2018-02-26 20:33:52 -06:00
Peter Evans
724dbb1577 Add test to ensure decimal mode is respected for SBC 2018-02-26 20:33:33 -06:00
Peter Evans
0333e308e7 Test decimal mode with ADC 2018-02-26 20:02:58 -06:00
Peter Evans
30c07df9cb When carry is set, subtract one fewer, not one more
A subtle misunderstanding... which led to bizarre and unexpected
behavior elsewhere.
2018-02-26 18:59:25 -06:00
Peter Evans
d1a6441c5a Add missing tests for vm_debug.c 2018-02-26 14:25:02 -06:00
Peter Evans
f376f00688 Fix scan test not to rely on buggy operand output 2018-02-25 16:16:14 -06:00
Peter Evans
7b3b30a0f2 Use addr2 for ws tests
I take it back from the previous commit--the test was written with an
assumption that was not how execute() works
2018-02-25 16:14:05 -06:00
Peter Evans
e50fda62be Add step command 2018-02-25 15:41:37 -06:00
Peter Evans
01f230dc85 Add unbreak command, unbreak_all() function for testing 2018-02-25 14:38:24 -06:00
Peter Evans
588362abee Add prompt; quit command; breakpoints 2018-02-25 14:25:02 -06:00
Peter Evans
09f7152e07 Add writeaddr command 2018-02-24 19:38:04 -06:00