From: cuz Date: Sun, 14 Dec 2003 18:57:08 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~1049 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f210f6db1cce7b11dbcf3e6ad89147845ec0b707;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@2757 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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