1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-06-14 09:29:26 +00:00
Commit Graph

738 Commits

Author SHA1 Message Date
Peter Evans
21623257ef Rewrite SBC test 2018-05-06 20:06:51 -05:00
Peter Evans
ab022c5d58 More details in the ADC test 2018-04-30 23:00:21 -05:00
Peter Evans
de34d7d0f9 Add more detail in INC/X/Y testing 2018-04-30 22:15:38 -05:00
Peter Evans
1ac19aaaae Port similar changes from DE* to IN* 2018-04-30 22:15:24 -05:00
Peter Evans
49687d9a7a Rewrite and expand the DEC/X/Y tests 2018-04-30 21:37:34 -05:00
Peter Evans
635ff624e7 Refactor the DEC/X/Y tests a bit for clarity 2018-04-30 21:37:20 -05:00
Peter Evans
ad4014ced4 Update tests for CMP/CPX/CPY. 2018-04-30 21:23:34 -05:00
Peter Evans
8ff2323c40 Remove reference to last_addr 2018-04-25 17:08:05 -05:00
Peter Evans
c53c7bfd1d Add function to return true if an instruction would write to memory 2018-04-21 23:15:48 -05:00
Peter Evans
37f9e627ba Change from last_opcode/last_operand to opcode/operand
This change also makes it so that those values are set once they are
known, rather than only at the end of the execute function.
2018-04-21 23:14:32 -05:00
Peter Evans
a5947f646e We no longer need the last effective address 2018-04-21 23:06:23 -05:00
Peter Evans
40550b38dc We also need to set the debug flag 2018-04-21 21:59:56 -05:00
Peter Evans
be82a23061 Remove two-op checks 2018-04-20 16:47:51 -05:00
Peter Evans
9ac85cb30b The on/off switch for BANK_ALTZP was mixed up 2018-04-16 22:28:24 -05:00
Peter Evans
573a276948 We mixed up when to turn on/off text mode 2018-04-16 22:15:17 -05:00
Peter Evans
c82c1828b0 Remove unused grid file; resolve crash condition 2018-04-15 23:31:29 -05:00
Peter Evans
b06c00a547 Rename segment -> seg, index -> addr 2018-04-15 22:40:44 -05:00
Peter Evans
b5fef760b8 Remove the map_mach abstraction in favor of vm_di 2018-04-15 22:30:57 -05:00
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
7c78c22618 The lores colors have changed; update the test to account for it 2018-04-14 18:08:59 -05:00
Peter Evans
7cc443206c Fix table sort order
Otherwise bsearch() can't find the help command, which causes other
problems later on
2018-04-13 23:43:52 -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
5db0c3b9c0 Clearer documentation on push_stack 2018-04-13 18:01:17 -05:00
Peter Evans
3887f52119 Clarify behavior of pop_stack 2018-04-13 16:22:58 -05:00
Peter Evans
ebb5f068fd Always set the UNUSED and BREAK flags after execution.
This change simply replicates the behavior demonstrated in AppleWin.
2018-04-13 16:17:13 -05:00
Peter Evans
5730e5e446 Add explicit definition of unused bit 2018-04-13 16:15:12 -05:00
Peter Evans
20047c65a8 If we pressed a key, we need to set the strobe to true 2018-04-13 16:14:57 -05:00
Peter Evans
ee2c9746c6 Add docblocks 2018-04-07 19:54:05 -05:00
Peter Evans
6e77e99813 Add ability to debug separate from pausing
Also, pausing just pauses now; no debugger prompt is shown. ALT+P
toggles pausing, so just hit it again to unpause. Also, when things are
paused, you can perform other keyboard events (like quitting).
2018-04-07 11:14:12 -05:00
Peter Evans
ec719da2c5 Remove unused vm_reflect files 2018-04-07 11:05:26 -05:00
Peter Evans
4b0b8e1a89 Move vm_debug fully into apple2 2018-04-07 00:53:17 -05:00
Peter Evans
27d0a15bc5 Move vm_debug_broke() check out of mos6502 and into apple2 2018-04-07 00:48:16 -05:00
Peter Evans
18e0bde099 Remove vm_reflect.c 2018-04-07 00:39:49 -05:00
Peter Evans
c665df3531 Move reflect to event 2018-04-07 00:33:40 -05:00
Peter Evans
8a899f87a2 Move reflect files to event files 2018-04-07 00:32:29 -05:00
Peter Evans
a913668c02 Missing some reorg changes; move reflect into event, debug 2018-04-07 00:26:31 -05:00
Peter Evans
74aafb0d01 Reorganizing files into directories 2018-04-06 20:27:47 -05:00
Peter Evans
f9d130ba97 Add an extremely crude method to slow things down
It's not configurable, and not accurate to any particular measure. But
it's something for now.
2018-04-06 11:49:54 -05:00
Peter Evans
281544bf43 Avoid polling for events until we're ready for a frame redraw
This change drastically cuts the number of times we poll for events, and
consequently drastically speeds up the number of frames we can draw
within any given span of time.

In other words, we go from "this barely moves as fast as the actual
Apple II" to "holy shit this moves so fast".
2018-04-06 11:47:54 -05:00
Peter Evans
f8dd49e892 Revert "Separate window and renderer creation; use software rendering"
This reverts commit c178e417b7.
2018-04-05 20:57:09 -05:00
Peter Evans
206bd86196 Revert "Move hires colors into include file"
This reverts commit d8e0159de0.
2018-04-05 20:56:59 -05:00
Peter Evans
e50af5aba9 Revert "Implement rect change stack"
This reverts commit 616bfdcc58.
2018-04-05 20:56:46 -05:00