changeset 2233:9b435e747ff2

CoCo and CoCO 3 versions
author boisy
date Mon, 26 Oct 2009 11:42:12 +0000
parents 445fe18a92a6
children 6c8f028e8c5e
files bootman/bootman.a bootman/makefile
diffstat 2 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/bootman/bootman.a	Mon Oct 26 01:10:30 2009 +0000
+++ b/bootman/bootman.a	Mon Oct 26 11:42:12 2009 +0000
@@ -53,7 +53,10 @@
 * writestr - write string to output handler
 * Entry:
 *   X = address of string (nul terminated)
+* Preserves:
+*   Y
 writestr:
+         pshs    y
          leay    llio,pcr
 writeloop
          lda     ,x+
@@ -61,6 +64,6 @@
          jsr     3,y
          bra     writeloop
 writedone
-         rts
+         puls    y,pc
          
          endsect
--- a/bootman/makefile	Mon Oct 26 01:10:30 2009 +0000
+++ b/bootman/makefile	Mon Oct 26 11:42:12 2009 +0000
@@ -1,16 +1,20 @@
 include ../rules.mak
 
-all: bootman_loader bootman
+all: bootman_coco bootman_coco3 #bootman_loader
 
 bootman_loader: bootman_loader.a
 	mamou $^ -o$@ -mb
 
-bootman: bootman.r boot_config.r mach_coco3.r llio_6551.r llbt_1773.r
+bootman_coco: bootman.r boot_config.r mach_coco.r llio_6551.r llbt_1773.r
+	$(LINKER) $^ -o=$@
+
+bootman_coco3: bootman.r boot_config.r mach_coco3.r llio_6551.r llbt_1773.r
 	$(LINKER) $^ -o=$@
 
 dsk: bootman
 	decb dskini bootman.dsk
 	decb copy -b -2 bootman bootman.dsk,BOOTMAN.BIN
+	decb copy -b -2 bootman_coco3 bootman.dsk,BOOTMAN3.BIN
 
 clean:
-	-$(RM) *.r bootman bootman.dsk
+	-$(RM) *.r bootman_coco bootman_coco3 bootman.dsk