]> git.sur5r.net Git - cc65/commitdiff
Improved fix with suggestions by Greg King. 152/head
authorStephan Mühlstrasser <stephan.muehlstrasser@web.de>
Sat, 14 Mar 2015 23:40:42 +0000 (00:40 +0100)
committerStephan Mühlstrasser <stephan.muehlstrasser@web.de>
Sat, 14 Mar 2015 23:40:42 +0000 (00:40 +0100)
libsrc/osic1p/bootstrap.s

index 80653279187905968eb0e7ff8580ead97c8cbf4f..2a501b980ca5967e097f30ffae5ad5fa05384c02 100644 (file)
@@ -45,11 +45,10 @@ GETCHAR         :=      $FFBF           ; gets one character from ACIA
 FIRSTVISC       =       $85             ; Offset of first visible character in video RAM
 LINEDIST        =       $20             ; Offset in video RAM between two lines
 
-        lda     #0
-        sta     load
+        ldy     #<$0000
         lda     #<load_addr
         ldx     #>load_addr
-        tay
+        sta     load
         stx     load+1
         lda     #<load_size
         eor     #$FF
@@ -107,13 +106,12 @@ CR      =       $0D
 ; ASCII-coded hexadecimal translation of the above assembly code.
 ; It was copied from the assembler listing.
 
-        .byte   "A9", CR, "00", CR
-        .byte   "85", CR, "08", CR
+        .byte   "A0", CR, "00", CR
         .byte   "A9", CR
         hex2    <load_addr
         .byte   CR, "A2", CR
         hex2    >load_addr
-        .byte   CR, "A8", CR
+        .byte   CR, "85", CR, "08", CR
         .byte   "86", CR, "09", CR
         .byte   "A9", CR
         hex2    <load_size