From 593797f9eb312dd3a8b4a8d6046a776aea7c4e47 Mon Sep 17 00:00:00 2001 From: izydorst Date: Tue, 4 Jun 2002 11:20:29 +0000 Subject: [PATCH] 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 --- libsrc/geos/inc/geosmac.ca65.inc | 78 +++++++++++++++----------------- 1 file changed, 37 insertions(+), 41 deletions(-) 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,