fuzix: coco3: boot.s: bugfix: cmdline passing does not work in all
authorBrett Gordon <beretta42@gmail.com>
Thu, 13 Aug 2015 17:43:27 +0000 (13:43 -0400)
committerBrett Gordon <beretta42@gmail.com>
Sat, 22 Aug 2015 14:23:28 +0000 (10:23 -0400)
cases.  boot.s now goes to the basic program itself to grok the cmdline, NOT
the crunch/uncrunch buffer.

Kernel/platform-coco3/boot/boot.s

index 4a074e8..4c8091e 100644 (file)
@@ -5,7 +5,7 @@
 ;;; This bootloader works from a DECB-like evironment, It loads
 ;;; FUZIX.BIN from a DECB disk and plops it in memory, starting
 ;;; at physical address 0x0000.
-       org     $2600           ; where am I loaded.
+       org     $7a00           ; where am I loaded.
 
 frame  .dw     0               ; on entry frame pointer
 npage  .db     0               ; next page no.
@@ -101,9 +101,9 @@ e@  lda     ,x+
        lda     #'O
        jsr     $a282           ; report load
        ;; find command line in input buffer
-       ldx     #$2dc           ; X = start of line
+       ldx     $a6             ; X = position in program
 f@     lda     ,x+             ; get a byte
-       cmpa    #$83            ; is a colon token?
+       cmpa    #$83            ; is a remark token?
        bne     f@
        ldd     #$88            ; set destination of command line
        jsr     setload         ;