Commit Graph

30 Commits

Author SHA1 Message Date
Daniel Loffgren
c4372853bd Added freeze/restore debug command handlers to the debugger
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@75 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-12-19 23:43:16 +00:00
Daniel Loffgren
047eaf800f Refactored PIA code to bind to a CPU, rather than just the memory bus. This way it can also be in charge of freezing the entire machine state. Also added 2k of character history for buffering video state.
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@74 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-12-19 23:29:19 +00:00
Daniel Loffgren
39b525ae71 Added a single step on run to escape breakpoints when run immediately from them
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@67 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-12-10 01:25:30 +00:00
Daniel Loffgren
e015d9c0f1 The nodelay setting for determining whether or not to block on keyboard input is now settable at runtime, in the debugger, using the "nonstop" command.
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@65 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-12-09 02:27:13 +00:00
Daniel Loffgren
0a8dd062aa Implemented breakpoint catching, although it doesn't always seem to work
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@64 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-29 07:45:47 +00:00
Daniel Loffgren
caf0f3b028 Automatically load debugger script named apple1.dbg if it exists
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@63 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-26 23:30:03 +00:00
Daniel Loffgren
379075260f Added "woz" debugger command
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@62 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-26 20:09:56 +00:00
Daniel Loffgren
882da238f4 Added symbol table support for debugger
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@60 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-25 07:58:08 +00:00
Daniel Loffgren
e6bc51edfc Until the map issue is fixed, it's still not necessary to load more than one copy of the ROM, since the FFxx range can operate standalone
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@57 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-23 07:29:18 +00:00
Daniel Loffgren
1ecbc0e47e Make sure to assign the currentLineText for assembler error printing
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@47 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-20 03:58:59 +00:00
Daniel Loffgren
581c3824d6 Added a neat message to let the user know that there is a debugger
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@43 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-19 05:36:29 +00:00
Daniel Loffgren
bd321ad1a7 More verbosity around boot process
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@40 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-19 05:11:53 +00:00
Daniel Loffgren
b10c5b5d49 Use the currentFileName to make assembler output nicer
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@39 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-18 18:56:40 +00:00
Daniel Loffgren
d8bec0875a include signal header for platforms that wong get SIGWINCH along with histedit
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@37 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-18 08:49:26 +00:00
Daniel Loffgren
1660b3a08f Adapted PIA code to allow dropping to the debugger via the back tick key
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@34 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-18 08:29:31 +00:00
Daniel Loffgren
0d7a3c032a Use new interactive debugger module from v6502
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@33 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-18 07:16:14 +00:00
Daniel Loffgren
a75d31065c Make sure to print annotated instruction before execution of it, so that the resulting cpu state reflects the action
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@32 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-17 07:28:09 +00:00
Daniel Loffgren
5afcfd4056 Removed old comment
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@28 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-17 04:41:05 +00:00
Daniel Loffgren
9e84116826 Removed old instruction length definiton
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@27 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-17 04:39:19 +00:00
Daniel Loffgren
229d04b9cd Use dis6502_printAnnotatedInstruction from libdis6502, instead of having a resident copy of the implementation
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@25 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-17 04:20:15 +00:00
Daniel Loffgren
f2354561a8 Dump asm history to a file for debugging
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@23 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-17 03:39:38 +00:00
Daniel Loffgren
5a5718c311 Settings the reset vector is unnecessary, as the woz monitor rom overlaps with the vector locatinos
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@21 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-16 04:44:58 +00:00
Daniel Loffgren
73ea7d164b PIA input and output both work now
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@12 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-14 07:18:02 +00:00
Daniel Loffgren
4509c00cb1 Added some PIA lifecycle code, and curses action
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@11 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-14 01:33:42 +00:00
Daniel Loffgren
56fbd9a928 Use only the last mirrored bit of the rom as the reset vector
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@9 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-14 01:13:54 +00:00
Daniel Loffgren
76d6da7302 Copied v6502's reference platform printSingleInstruction debug function for debugging, and simplified the rom code to just load the rom every 0x100 bytes
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@7 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-14 00:42:17 +00:00
Daniel Loffgren
19b706fb6c Added PIA and reset vector initialization to driver
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@6 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-14 00:28:23 +00:00
Daniel Loffgren
622d6aca9c Added code to load and mirror the ROM
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@4 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-14 00:09:42 +00:00
Daniel Loffgren
ac87480ce8 Got the project building, and used the sample v6502 implementation
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@3 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-13 00:17:41 +00:00
Daniel Loffgren
73f32be51e Added an xcode project and svn:external for v6502
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@2 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-13 00:09:01 +00:00