mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 00:29:31 +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
|
lda #<CharArg
|
||||||
ldx #>CharArg
|
ldx #>CharArg
|
||||||
jsr pushax
|
jsr pushax
|
||||||
jsr push1
|
jsr push1
|
||||||
CallOutFunc:
|
jmp CallOutFunc ; fout (OutData, &CharArg, 1)
|
||||||
jmp (OutFunc) ; fout (OutData, &CharArg, 1)
|
|
||||||
|
|
||||||
; ----------------------------------------------------------------------------
|
; ----------------------------------------------------------------------------
|
||||||
; Decrement the argument list pointer by 2
|
; Decrement the argument list pointer by 2
|
||||||
@ -213,7 +212,7 @@ OutputArg:
|
|||||||
lda ArgLen
|
lda ArgLen
|
||||||
ldx ArgLen+1
|
ldx ArgLen+1
|
||||||
jsr pushax
|
jsr pushax
|
||||||
jmp (OutFunc)
|
jmp CallOutFunc
|
||||||
|
|
||||||
; ----------------------------------------------------------------------------
|
; ----------------------------------------------------------------------------
|
||||||
; ltoa: Wrapper for _ltoa that pushes all arguments
|
; ltoa: Wrapper for _ltoa that pushes all arguments
|
||||||
@ -275,10 +274,10 @@ Save: lda regbank,y
|
|||||||
|
|
||||||
iny
|
iny
|
||||||
lda (OutData),y
|
lda (OutData),y
|
||||||
sta OutFunc
|
sta CallOutFunc+1
|
||||||
iny
|
iny
|
||||||
lda (OutData),y
|
lda (OutData),y
|
||||||
sta OutFunc+1
|
sta CallOutFunc+2
|
||||||
|
|
||||||
; Start parsing the format string
|
; Start parsing the format string
|
||||||
|
|
||||||
@ -752,9 +751,6 @@ HaveArg:
|
|||||||
; Save area for the zero page registers
|
; Save area for the zero page registers
|
||||||
RegSave: .res 6
|
RegSave: .res 6
|
||||||
|
|
||||||
; Stuff from OutData. Is used as a vector and must be aligned
|
|
||||||
OutFunc: .word 0
|
|
||||||
|
|
||||||
; One character argument for OutFunc
|
; One character argument for OutFunc
|
||||||
CharArg: .byte 0
|
CharArg: .byte 0
|
||||||
|
|
||||||
@ -777,3 +773,10 @@ Buf: .res 20
|
|||||||
Str: .word 0
|
Str: .word 0
|
||||||
ArgLen: .res 2
|
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