diff --git a/libsrc/runtime/condes.s b/libsrc/runtime/condes.s index 959ec4a0a..c9e373277 100644 --- a/libsrc/runtime/condes.s +++ b/libsrc/runtime/condes.s @@ -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) diff --git a/libsrc/serial/ser-kernel.s b/libsrc/serial/ser-kernel.s index 5e76358be..5601b2c4d 100644 --- a/libsrc/serial/ser-kernel.s +++ b/libsrc/serial/ser-kernel.s @@ -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