Commit Graph

96 Commits

Author SHA1 Message Date
Daniel Loffgren
a5a0d949aa Reverted _XOPEN_SOURCE=700 in favor of adding _GNU_SOURCE
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@98 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-12-05 05:29:00 +00:00
Daniel Loffgren
97f9f9909c Declare _XOPEN_SOURCE=700
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@97 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-12-03 07:23:49 +00:00
Daniel Loffgren
aa137f0381 Added the missing trailing NULL for the EL_BIND
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@96 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-07-21 09:00:57 +00:00
Daniel Loffgren
c5e7f95885 Adopt new v6502 debugger tab completion
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@95 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-04-15 07:41:05 +00:00
Daniel Loffgren
c9313e0a79 Renamed the source directory from apple1 to src, so that the resulting binary may now be called apple1
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@94 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-04-10 00:25:57 +00:00
Daniel Loffgren
b5a7878849 Removed explicit sdk definition
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@93 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-04-09 23:58:41 +00:00
Daniel Loffgren
bb83465723 Fixed backspace behavior
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@92 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-04-09 23:53:31 +00:00
Daniel Loffgren
ad5f7d6a45 Cleaned up the freeze reading/writing lengths. Since sizeof(char) is defined as being 1, there's no need to be pedantic.
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@91 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-02-28 09:14:44 +00:00
Daniel Loffgren
0a4731ee47 Added a runaway indicator to the upper right-hand corner of the video output
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@90 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-02-28 09:13:41 +00:00
Daniel Loffgren
e6861adad1 Added a manpage detailing usage
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@89 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-02-15 10:44:03 +00:00
Daniel Loffgren
aa0edbcc94 Transcription typo corrected in wozmon source
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@88 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-02-09 06:57:55 +00:00
Daniel Loffgren
4595abd741 Indentation
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@87 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-02-08 09:56:24 +00:00
Daniel Loffgren
4e68c5a24e Also updated the commented implementation of being able to query and separately set nonstop mode
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@86 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-02-08 09:54:35 +00:00
Daniel Loffgren
b47c29ec48 Defined constants for default filenames
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@85 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-02-08 09:53:14 +00:00
Daniel Loffgren
b53a5ce62f Indentation
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@84 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-02-08 09:50:07 +00:00
Daniel Loffgren
729c00f6fe Make sure not to trash the command pointer, otherwise realloc will fail
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@83 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-02-08 09:25:32 +00:00
Daniel Loffgren
822748228f Use new return code from v6502_loadFileAtAddress
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@82 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-02-04 06:56:02 +00:00
Daniel Loffgren
e5db11c190 implemented freeze state saving and restoring of CPU registers
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@81 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-01-17 09:29:48 +00:00
Daniel Loffgren
c32d5993c3 Enabled map caching, and disabled heavy debug calls
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@80 64f78de7-aa59-e511-a0e8-0002a5492df0
2016-01-17 09:29:10 +00:00
Daniel Loffgren
4e4be90331 The boot sequence is a little more sensible now, and the messages are better, too.
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@79 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-12-22 08:13:21 +00:00
Daniel Loffgren
87c8a20489 Automatically load BASIC into memory, if available
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@78 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-12-22 08:08:31 +00:00
Daniel Loffgren
0b697efa40 Added binary to svn:ignores
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@77 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-12-21 00:54:10 +00:00
Daniel Loffgren
ef26aa279c Project file updates
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@76 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-12-21 00:53:41 +00:00
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
c85e809cf2 Put the RUN label back in. Turns out it is real, I just overlooked it.
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@71 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-12-10 08:51:26 +00:00
Daniel Loffgren
2062acacc4 Corrected addresses in debug script from apple 1 documentation
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@70 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-12-10 07:26:19 +00:00
Daniel Loffgren
552fb8fcc2 Explain to the user what is happening when the debugger steps over the keyboard data register. Before this only the readiness register would alert the debugger user.
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@69 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-12-10 05:23:16 +00:00
Daniel Loffgren
0c661a6ebb Always make sure the keyboard buffer is also cleared, to prevent garbage being captured on start
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@68 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-12-10 05:08:13 +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
df221f0440 Adding symbol table script to source control for now, since it's extremely helpful in debugging
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@66 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-12-09 02:30:40 +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
40eef69b01 Don't reset the keyboard register if set to not trap
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@61 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-26 20:09:27 +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
723cfa3362 Added an explicit C compilation rule, so that we can portably compile C files into objects that are in remote directories, and their objects will end up in the same remote directories
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@59 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-23 16:21:10 +00:00
Daniel Loffgren
b4ee501ce0 More properly renamed the register definitions, since the D011 register is for readiness
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@58 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-23 07:32:25 +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
8060ca4e44 Another typo, causing bad desymbolication
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@56 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-22 02:06:33 +00:00
Daniel Loffgren
1cbb8b2b0b Commented the reset vectors
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@55 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-21 08:36:28 +00:00
Daniel Loffgren
19b40f60f6 Corrected my mistakenly transcribed NMI vector
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@54 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-21 08:35:10 +00:00
Daniel Loffgren
ec1b0c570c Corrected another transcription typo
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@53 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-21 08:20:18 +00:00
Daniel Loffgren
57ffb468bb Fixed clean target to include cleaning the v6502 external, and added $(AS) target to build assembler if needed
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@52 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-21 05:12:53 +00:00
Daniel Loffgren
b8e7f1f8da Adding LICENSE file, which just has a link to the source of the ROM for now
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@51 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-21 05:10:26 +00:00
Daniel Loffgren
cbcb7d6ad8 Added ROM to clean target
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@50 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-21 05:08:13 +00:00
Daniel Loffgren
2861b420bd Added ROM target to Makefile, since it should soon be able to assemble it
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@49 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-21 05:01:17 +00:00
Daniel Loffgren
de7debbf8e Replaced source with source that is actually just transcribed from the original Apple 1 manual
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@48 64f78de7-aa59-e511-a0e8-0002a5492df0
2015-09-21 04:46:58 +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