mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 17:29:50 +00:00
Removed a JMP (ind)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1357 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
0921d9c1ee
commit
d4e71bfb59
@ -59,9 +59,8 @@ Output1:
|
||||
lda #<CharArg
|
||||
ldx #>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
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user