From bf91be87909967274d8ebc8b43637beaa6ba9d58 Mon Sep 17 00:00:00 2001 From: uz Date: Mon, 7 Jan 2013 20:25:45 +0000 Subject: [PATCH] =?utf8?q?Small=20fixes=20by=20Christian=20Kr=C3=BCger.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.cc65.org/cc65/trunk@5960 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- asminc/smc.inc | 24 ++++++++++++------------ doc/smc.sgml | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/asminc/smc.inc b/asminc/smc.inc index 42dcb1055..ef710a30e 100644 --- a/asminc/smc.inc +++ b/asminc/smc.inc @@ -180,11 +180,11 @@ SMC_StoreValue label, register .macro SMC_TransferAddressSingle label, address, register .if .paramcount = 2 .or .match ((register), a) - .if (.match (.left (1, {adress}), #)) + .if (.match (.left (1, {address}), #)) ; immediate mode - lda #<(.right (.tcount ({adress})-1, {adress})) + lda #<(.right (.tcount ({address})-1, {address})) sta _SMCDesignator+1 - lda #>(.right (.tcount ({adress})-1, {adress})) + lda #>(.right (.tcount ({address})-1, {address})) sta _SMCDesignator+2 .else ; assume absolute or zero page @@ -194,11 +194,11 @@ SMC_StoreValue label, register sta _SMCDesignator+2 .endif .elseif .match ((register), x) - .if (.match (.left (1, {adress}), #)) + .if (.match (.left (1, {address}), #)) ; immediate mode - ldx #<(.right (.tcount ({adress})-1, {adress})) + ldx #<(.right (.tcount ({address})-1, {address})) stx _SMCDesignator+1 - ldx #>(.right (.tcount ({adress})-1, {adress})) + ldx #>(.right (.tcount ({address})-1, {address})) stx _SMCDesignator+2 .else ; assume absolute or zero page @@ -208,11 +208,11 @@ SMC_StoreValue label, register stx _SMCDesignator+2 .endif .elseif .match ((register), y) - .if (.match (.left (1, {adress}), #)) + .if (.match (.left (1, {address}), #)) ; immediate mode - ldy #<(.right (.tcount ({adress})-1, {adress})) + ldy #<(.right (.tcount ({address})-1, {address})) sty _SMCDesignator+1 - ldy #>(.right (.tcount ({adress})-1, {adress})) + ldy #>(.right (.tcount ({address})-1, {address})) sty _SMCDesignator+2 .else ; assume absolute or zero page @@ -226,11 +226,11 @@ SMC_StoreValue label, register .macro SMC_TransferAddress label, address -.if (.match (.left (1, {adress}), #)) +.if (.match (.left (1, {address}), #)) ; immediate mode - lda #<(.right (.tcount ({adress})-1, {adress})) + lda #<(.right (.tcount ({address})-1, {address})) sta _SMCDesignator+1 - ldx #>(.right (.tcount ({adress})-1, {adress})) + ldx #>(.right (.tcount ({address})-1, {address})) stx _SMCDesignator+2 .else ; assume absolute or zero page diff --git a/doc/smc.sgml b/doc/smc.sgml index 38ba844e4..b58fc51ab 100644 --- a/doc/smc.sgml +++ b/doc/smc.sgml @@ -437,7 +437,7 @@ SMC GetChar, { LDA SMC_AbsAdr, x } Example: - SMC_TransferAddress JumpTo, #CloseChannel, Y + SMC_TransferAddress JumpTo, #CloseChannel ... SMC JumpTo, { JMP OpenChannel } -- 2.39.5