mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
Merge pull request #2007 from groessler/something_to_pull
fix for issue #1973 (printf("%c", '\0') doesn't _write '\0' to fd 0)
This commit is contained in:
commit
c226e58a3c
@ -502,10 +502,10 @@ DoFormat:
|
|||||||
; It is a character
|
; It is a character
|
||||||
|
|
||||||
jsr GetIntArg ; Get the argument (promoted to int)
|
jsr GetIntArg ; Get the argument (promoted to int)
|
||||||
sta Buf ; Place it as zero terminated string...
|
sta Buf ; Place it into the buffer
|
||||||
lda #0
|
ldx #0
|
||||||
sta Buf+1 ; ...into the buffer
|
lda #1 ; Buffer length is 1
|
||||||
jmp HaveArg ; Done
|
jmp HaveArg1
|
||||||
|
|
||||||
; Is it an integer?
|
; Is it an integer?
|
||||||
|
|
||||||
@ -671,6 +671,7 @@ HaveArg:
|
|||||||
lda Str
|
lda Str
|
||||||
ldx Str+1
|
ldx Str+1
|
||||||
jsr _strlen ; Get length of argument
|
jsr _strlen ; Get length of argument
|
||||||
|
HaveArg1: ; Jumped into here from %c handling
|
||||||
sta ArgLen
|
sta ArgLen
|
||||||
stx ArgLen+1
|
stx ArgLen+1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user