From: Brett Gordon Date: Thu, 13 Aug 2015 17:43:27 +0000 (-0400) Subject: fuzix: coco3: boot.s: bugfix: cmdline passing does not work in all X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=f8151b26ae2c92bb34f74e44cc54bd208f267ba5;p=FUZIX.git fuzix: coco3: boot.s: bugfix: cmdline passing does not work in all cases. boot.s now goes to the basic program itself to grok the cmdline, NOT the crunch/uncrunch buffer. --- diff --git a/Kernel/platform-coco3/boot/boot.s b/Kernel/platform-coco3/boot/boot.s index 4a074e8c..4c8091ea 100644 --- a/Kernel/platform-coco3/boot/boot.s +++ b/Kernel/platform-coco3/boot/boot.s @@ -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 ;