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 *** ; *** Requirements ***
; BLOCKDEV_SIZE
; FS_HANDLE_SIZE
; _blkGetB ; _blkGetB
; _blkPutB ; _blkPutB
; _blkSeek ; _blkSeek

View File

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

View File

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

View File

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

Binary file not shown.

View File

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

Binary file not shown.