zasm: use printcrlf instead of hardcoded CRLF

This commit is contained in:
Virgil Dupras 2020-02-23 18:52:25 -05:00
parent c3213e1e8c
commit 6224ea2fe9
7 changed files with 4 additions and 11 deletions

View File

@ -1,6 +1,4 @@
; *** Requirements ***
; BLOCKDEV_SIZE
; FS_HANDLE_SIZE
; _blkGetB
; _blkPutB
; _blkSeek

View File

@ -31,6 +31,7 @@
; _blkSeek
; _blkTell
; printstr
; printcrlf
.inc "user.h"

View File

@ -287,11 +287,5 @@ _ioIncBlk:
; call printstr followed by newline
ioPrintLN:
push hl
call printstr
ld hl, .sCRLF
call printstr
pop hl
ret
.sCRLF:
.db 0x0a, 0x0d, 0
jp printcrlf

View File

@ -26,6 +26,7 @@ jp _blkPutB
jp _blkSeek
jp _blkTell
jp printstr
jp printcrlf
.inc "core.asm"
.inc "str.asm"

Binary file not shown.

View File

@ -1,7 +1,5 @@
.org 0x4800 ; in sync with USER_CODE in glue.asm
.equ USER_RAMSTART 0x6000
.equ FS_HANDLE_SIZE 8
.equ BLOCKDEV_SIZE 8
; *** JUMP TABLE ***
.equ strncmp 0x03
@ -17,3 +15,4 @@
.equ _blkSeek @+3
.equ _blkTell @+3
.equ printstr @+3
.equ printcrlf @+3

Binary file not shown.