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:
uz
2009-09-28 18:39:55 +00:00
parent 6c8fab8e51
commit e4d9fd3bd1
2 changed files with 112 additions and 101 deletions

View File

@@ -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