From: izydorst Date: Tue, 4 Jun 2002 11:20:29 +0000 (+0000) Subject: fixed LoadW for doing 16-bit offsets loads, not only constants X-Git-Tag: V2.12.0~2322 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=593797f9eb312dd3a8b4a8d6046a776aea7c4e47;p=cc65 fixed LoadW for doing 16-bit offsets loads, not only constants git-svn-id: svn://svn.cc65.org/cc65/trunk@1300 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/geos/inc/geosmac.ca65.inc b/libsrc/geos/inc/geosmac.ca65.inc index e233ef977..a2517be0a 100644 --- a/libsrc/geos/inc/geosmac.ca65.inc +++ b/libsrc/geos/inc/geosmac.ca65.inc @@ -1,6 +1,6 @@ ;GEOS macros -;reassembled for 6502TASM/MMS by Maciej 'YTM/Alliance' Witkowiak +;reassembled for 6502TASM/MMS by Maciej 'YTM/Elysium' Witkowiak ;4-2-99 ;28-6-99 - ca65 port @@ -11,51 +11,47 @@ lda #value sta dest .endmacro - + .macro LoadW dest, value - lda #>value - sta dest+1 - .if (>value)<>(value + LoadB dest+0, value sta dest+1 .endmacro - + .macro CmpB source, dest lda source cmp dest .endmacro - + .macro CmpBI source, immed lda source cmp #immed .endmacro - + .macro CmpW source, dest .local Skip CmpB source+1, dest+1 @@ -118,7 +114,7 @@ Skip: CmpB source+0, dest+0 Skip: .endmacro - + .macro CmpWI source, immed .local Skip CmpBI source+1, >immed @@ -126,32 +122,32 @@ Skip: CmpBI source+0,