From: cuz Date: Tue, 16 Jul 2002 09:40:45 +0000 (+0000) Subject: Removed a JMP (ind) X-Git-Tag: V2.12.0~2268 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d4e71bfb591cf83aaff619df40ce1c239585f45b;p=cc65 Removed a JMP (ind) git-svn-id: svn://svn.cc65.org/cc65/trunk@1357 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/common/_printf.s b/libsrc/common/_printf.s index d39e1abed..a71f894df 100644 --- a/libsrc/common/_printf.s +++ b/libsrc/common/_printf.s @@ -59,9 +59,8 @@ Output1: lda #CharArg jsr pushax - jsr push1 -CallOutFunc: - jmp (OutFunc) ; fout (OutData, &CharArg, 1) + jsr push1 + jmp CallOutFunc ; fout (OutData, &CharArg, 1) ; ---------------------------------------------------------------------------- ; Decrement the argument list pointer by 2 @@ -213,7 +212,7 @@ OutputArg: lda ArgLen ldx ArgLen+1 jsr pushax - jmp (OutFunc) + jmp CallOutFunc ; ---------------------------------------------------------------------------- ; ltoa: Wrapper for _ltoa that pushes all arguments @@ -275,10 +274,10 @@ Save: lda regbank,y iny lda (OutData),y - sta OutFunc + sta CallOutFunc+1 iny lda (OutData),y - sta OutFunc+1 + sta CallOutFunc+2 ; Start parsing the format string @@ -752,9 +751,6 @@ HaveArg: ; Save area for the zero page registers RegSave: .res 6 -; Stuff from OutData. Is used as a vector and must be aligned -OutFunc: .word 0 - ; One character argument for OutFunc CharArg: .byte 0 @@ -777,3 +773,10 @@ Buf: .res 20 Str: .word 0 ArgLen: .res 2 +.data + +; Stuff from OutData. Is used as a vector and must be aligned +CallOutFunc: jmp $0000 + + +