From 3675a186a1f27b363ecb5dc900dca6ca96ec8a19 Mon Sep 17 00:00:00 2001 From: Chris Pressey Date: Wed, 5 Sep 2018 12:59:38 +0100 Subject: [PATCH] Add notes for Apple II target. --- doc/Apple II Notes.md | 14 ++++++++++++++ doc/Output Formats.md | 6 ++---- 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 doc/Apple II Notes.md diff --git a/doc/Apple II Notes.md b/doc/Apple II Notes.md new file mode 100644 index 0000000..b965c61 --- /dev/null +++ b/doc/Apple II Notes.md @@ -0,0 +1,14 @@ +Notes for building SixtyPical programs for Apple II +=================================================== + +And running them on `linapple`. + +We'll do `eg/rudiments/add-pass.60p`. It does nothing. + + bin/sixtypical --origin=0x2000 --output-format=raw eg/rudiments/add-pass.60p > add-pass.bin + cp ~/scratchpad/linapple/res/Master.dsk sixtypical.dsk + a2in B sixtypical.dsk ADD-PASS add-pass.bin + a2ls sixtypical.dsk + linapple -d1 sixtypical.dsk -autoboot + +Next... we should do one that does something. diff --git a/doc/Output Formats.md b/doc/Output Formats.md index bebe1fd..d01363d 100644 --- a/doc/Output Formats.md +++ b/doc/Output Formats.md @@ -8,8 +8,7 @@ Output Formats The file contains only the emitted bytes of the compiled SixtyPical program. -The default origin is $0000; it is not unlikely you will want to -override this. +The default origin is $0000; you will likely want to override this. Note that the origin is not stored in the output file in this format; that information must be recorded separately. @@ -20,8 +19,7 @@ The first two bytes of the file contain the origin address in little-endian format. The remainder of the file is the emitted bytes of the compiled SixtyPical program, starting at that origin. -The default origin is $C000; it is likely you will want to -override this. +The default origin is $C000; you will likely want override this. This format coincides with Commodore's PRG format for disk files, thus its name.