changed "spc" to "c_sp"
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
.export _cprintf
|
||||
.import pushax, addysp, _vcprintf
|
||||
.importzp spc, ptr1
|
||||
.importzp c_sp, ptr1
|
||||
|
||||
.macpack generic
|
||||
|
||||
@@ -31,9 +31,9 @@ _cprintf:
|
||||
dey
|
||||
dey ; Sub size of Format
|
||||
tya
|
||||
add spc
|
||||
add c_sp
|
||||
sta ptr1
|
||||
ldx spc+1
|
||||
ldx c_sp+1
|
||||
bcc @L1
|
||||
inx
|
||||
@L1: stx ptr1+1
|
||||
|
||||
@@ -23,8 +23,8 @@ _cscanf:
|
||||
|
||||
; Now, calculate the va_list pointer -- which points to format.
|
||||
|
||||
ldx spc+1
|
||||
add spc
|
||||
ldx c_sp+1
|
||||
add c_sp
|
||||
bcc @L1
|
||||
inx
|
||||
@L1: sta ptr1
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
.export _vcprintf
|
||||
.import pushax, popax, popptr1
|
||||
.import __printf, _cputc
|
||||
.importzp spc, ptr1, ptr2, ptr3, tmp1
|
||||
.importzp c_sp, ptr1, ptr2, ptr3, tmp1
|
||||
|
||||
.macpack generic
|
||||
.macpack cpu
|
||||
@@ -138,10 +138,10 @@ _vcprintf:
|
||||
; Get the format parameter and push it again
|
||||
|
||||
ldy #1
|
||||
lda (spc),y
|
||||
lda (c_sp),y
|
||||
tax
|
||||
dey
|
||||
lda (spc),y
|
||||
lda (c_sp),y
|
||||
jsr pushax
|
||||
|
||||
; Replace the passed format parameter on the stack by &d - this creates
|
||||
@@ -150,10 +150,10 @@ _vcprintf:
|
||||
|
||||
ldy #2 ; Low byte of d
|
||||
lda #<outdesc
|
||||
sta (spc),y
|
||||
sta (c_sp),y
|
||||
iny
|
||||
lda #>outdesc
|
||||
sta (spc),y
|
||||
sta (c_sp),y
|
||||
|
||||
; Restore ap and call _printf
|
||||
|
||||
|
||||
Reference in New Issue
Block a user