1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-07-17 03:29:10 +00:00
Commit Graph

231 Commits

Author SHA1 Message Date
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
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
5730e5e446 Add explicit definition of unused bit 2018-04-13 16:15:12 -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
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
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
206bd86196 Revert "Move hires colors into include file"
This reverts commit d8e0159de0.
2018-04-05 20:56:59 -05:00
Peter Evans
d8e0159de0 Move hires colors into include file 2018-04-04 22:01:26 -05:00
Peter Evans
d2047457e9 Use log_crit() instead of log_critical()
This change also removes the former log_critical and log_error macros.
2018-03-29 21:45:25 -05:00
Peter Evans
20d33ef464 Change to erc.log
emp is a much older name for the program
2018-03-29 21:40:11 -05:00
Peter Evans
89a0f34ebe Add suite of log functions that map to syslog RFC levels 2018-03-29 21:39:13 -05:00
Peter Evans
8a285aace8 Enlargen the nibble segment length 2018-03-25 19:39:54 -05:00
Peter Evans
0c244cf3f2 Slight update to sector header length 2018-03-25 19:39:27 -05:00
Peter Evans
64306fa5a6 Add hidump, hires_dump commands 2018-03-25 19:39:00 -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
5ea10d8a98 We track steps in quarter tracks, so double the max 2018-03-20 15:07:55 -05:00
Peter Evans
474104085c Reorganize encoded sizes/routines to align with reference nibble output
(This is comparing to the output that we see from dsk2nib.)
2018-03-20 14:06:26 -05:00
Peter Evans
f5e0de5bbc Reverting to just black/white color for now
Only while I work on some other issues with disk loading
2018-03-19 19:02:46 -05:00
Peter Evans
47bbed1399 Add color tables, row table 2018-03-14 00:05:26 -05:00
Peter Evans
4d34663435 Add hires graphics file; draw hires graphics 2018-03-13 16:08:31 -05:00
Peter Evans
52e5f8afa7 Add missing decl for apple2_draw_lores() 2018-03-13 15:55:43 -05:00
Peter Evans
543e3d0b73 Use uint32_t for all fields 2018-03-12 00:33:08 -05:00
Peter Evans
df960220ef First crack at lo-res graphics 2018-03-11 23:28:28 -05:00
Peter Evans
87c7aa9249 Add hexdump function for vm_segment 2018-03-09 16:45:20 -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
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
c3b86031bd Add tests for primary, alternate functions 2018-03-07 17:00:11 -06:00
Peter Evans
9f09be93a9 Implement (true? better?) framerate cycle 2018-03-07 16:20:29 -06:00
Peter Evans
136d019f7a Show non-inversed text for Apple //e 2018-03-06 12:41:30 -06:00
Peter Evans
5fa696005d Slash character should be a forward slash 2018-03-06 00:28:52 -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
b239cac239 Add dblock command to disassemble blocks of code 2018-03-01 19:31:56 -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
49199eac84 Rewrite status checks with macros
This also forces the result of operations to be considered purely as
8-bit results in _some_ cases, but not in others. We were missing some
times when an overflow is the expected behavior; because SET_RESULT()
and mos6502_modify_status() use ints, this overflow was not properly
observed.
2018-02-28 21:16:39 -06:00
Peter Evans
edd175c1f9 Add disasm command (toggle disassembly) 2018-02-26 20:52:13 -06:00
Peter Evans
4b4e58089b Add missing function decls 2018-02-26 18:53:59 -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
Peter Evans
06bf63ecb2 Add jump debug command 2018-02-24 19:36:02 -06:00
Peter Evans
1be1abc0af Add printaddr, printstate 2018-02-24 18:57:00 -06:00