]> git.sur5r.net Git - cc65/commitdiff
Fixed a bug
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 14 Dec 2003 18:57:08 +0000 (18:57 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 14 Dec 2003 18:57:08 +0000 (18:57 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2757 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/runtime/condes.s
libsrc/serial/ser-kernel.s

index 959ec4a0afab75b9958808c329648da96c91c586..c9e373277abb031e9e27116073a94c705ace59be 100644 (file)
@@ -64,10 +64,10 @@ loop:       ldy     index
        beq     done
        dey
        jsr     getbyt
-        sta     jmpvec+1
-       dey
-       jsr     getbyt  
         sta     jmpvec+2
+       dey
+       jsr     getbyt
+        sta     jmpvec+1
        sty     index
        jsr     jmpvec
 .if (.cpu .bitand ::CPU_ISET_65SC02)
index 5e76358becb05e88e96e646c2986aca2a622cdb2..5601b2c4d321b6447a8bcf3218ff420a0e683886 100644 (file)
@@ -69,10 +69,10 @@ _ser_install:
 
         jsr     ser_install             ; Call driver install routine
 
-        lda     ser_irq+2               ; Check high byte of IRQ vector
+        ldy     ser_irq+2               ; Check high byte of IRQ vector
         beq     @L2                     ; Jump if vector invalid
-       lda     #$4C                    ; Jump opcode
-       sta     ser_irq                 ; Activate IRQ routine
+       ldy     #$4C                    ; Jump opcode
+       sty     ser_irq                 ; Activate IRQ routine
 @L2:    rts
 
 ; Driver signature invalid