Fixed more bugs, shortened the code where possible.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4257 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
; Ullrich von Bassewitz, 2009-09-26
|
||||
;
|
||||
|
||||
.export _vsprintf
|
||||
.import pushw0sp, staxysp
|
||||
.import _vsnprintf
|
||||
.export _vsprintf
|
||||
.import pushw0sp, staxysp
|
||||
.import vsnprintf
|
||||
|
||||
|
||||
; ----------------------------------------------------------------------------
|
||||
@@ -30,10 +30,8 @@ _vsprintf:
|
||||
ldy #2
|
||||
jsr staxysp
|
||||
|
||||
; Retrieve ap and contine by jumping to _vsnprintf, which will cleanup the stack
|
||||
; Contine by jumping to vsnprintf, which expects ap on the CPU stack and will
|
||||
; cleanup the C stack
|
||||
|
||||
pla
|
||||
tax
|
||||
pla
|
||||
jmp _vsnprintf
|
||||
jmp vsnprintf
|
||||
|
||||
|
||||
Reference in New Issue
Block a user