From: uz Date: Sun, 13 Sep 2009 13:39:27 +0000 (+0000) Subject: Sqeeze out two bytes of the code. X-Git-Tag: V2.13.0rc1~91 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fe652c8206c491ffc9c02e702a63bab86a8e5be0;p=cc65 Sqeeze out two bytes of the code. git-svn-id: svn://svn.cc65.org/cc65/trunk@4165 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/lynx/lynx-160-102-16.s b/libsrc/lynx/lynx-160-102-16.s index f37723df9..c41b89d25 100644 --- a/libsrc/lynx/lynx-160-102-16.s +++ b/libsrc/lynx/lynx-160-102-16.s @@ -433,7 +433,7 @@ SETVIEWPAGE: ; SETDRAWPAGE: - cmp #1 + cmp #1 beq @L1 ; page == maxpages-1 lda #<$de20 ; page 0 ldx #>$de20 @@ -464,25 +464,24 @@ VBL_INTERRUPT = TIMER2_INTERRUPT SERIAL_INTERRUPT = TIMER4_INTERRUPT IRQ: - lda INTSET ; Poll all pending interrupts - and #VBL_INTERRUPT - bne IRQVBL - clc ; Not a VBL interrupt - exit - rts -IRQVBL: - lda SWAPREQUEST - beq @L0 - lda DRAWPAGE - jsr SETVIEWPAGE - lda DRAWPAGE - eor #1 - sta DRAWPAGE - jsr SETDRAWPAGE - stz SWAPREQUEST + lda INTSET ; Poll all pending interrupts + and #VBL_INTERRUPT + beq IRQEND ; Exit if not a VBL interrupt + + lda SWAPREQUEST + beq @L0 + lda DRAWPAGE + jsr SETVIEWPAGE + lda DRAWPAGE + eor #1 + sta DRAWPAGE + jsr SETDRAWPAGE + stz SWAPREQUEST @L0: - jsr VBLHOOK - clc - rts + jsr VBLHOOK +IRQEND: + clc + rts ; ------------------------------------------------------------------------ ; SETCOLOR: Set the drawing color (in A). The new color is already checked @@ -1003,7 +1002,7 @@ text_c: ; The Font ; 96 characters from ASCII 32 to 127 ; 8 pixels wide, 8 pixels high -; bit value 0 = foreground, bit value 1 = background / transparent +; bit value 0 = foreground, bit value 1 = background / transparent font: ; VERSAIL .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF ;32