Normalized coding style.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5498 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Elysium' Witkowiak
|
||||
;
|
||||
@@ -11,27 +10,27 @@
|
||||
.code
|
||||
|
||||
DB_get2lines:
|
||||
sta ptr4 ; fetch line 2
|
||||
stx ptr4+1
|
||||
jsr popax
|
||||
sta ptr3 ; fetch line 1
|
||||
stx ptr3+1
|
||||
ldx #ptr3
|
||||
jsr checknull
|
||||
ldx #ptr4
|
||||
jmp checknull
|
||||
sta ptr4 ; fetch line 2
|
||||
stx ptr4+1
|
||||
jsr popax
|
||||
sta ptr3 ; fetch line 1
|
||||
stx ptr3+1
|
||||
ldx #ptr3
|
||||
jsr checknull
|
||||
ldx #ptr4
|
||||
jmp checknull
|
||||
|
||||
checknull:
|
||||
lda $0,x
|
||||
ora $1,x
|
||||
bne cn_end
|
||||
lda #<nullstring
|
||||
sta $0,x
|
||||
lda #>nullstring
|
||||
sta $1,x
|
||||
cn_end: rts
|
||||
lda $0,x
|
||||
ora $1,x
|
||||
bne cn_end
|
||||
lda #<nullstring
|
||||
sta $0,x
|
||||
lda #>nullstring
|
||||
sta $1,x
|
||||
cn_end: rts
|
||||
|
||||
.rodata
|
||||
|
||||
nullstring:
|
||||
.byte 0
|
||||
.byte 0
|
||||
|
||||
Reference in New Issue
Block a user