1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-24 01:28:06 +11:00

recipes/trs80: add ed

This commit is contained in:
Virgil Dupras 2020-02-23 20:52:44 -05:00
parent 6224ea2fe9
commit 434c8d5c0d
4 changed files with 16 additions and 4 deletions

View File

@ -1,2 +1,3 @@
/cfsin/user.h /cfsin/user.h
/cfsin/zasm /cfsin/zasm
/cfsin/ed

View File

@ -1,4 +1,4 @@
SHELLAPPS = zasm SHELLAPPS = zasm ed
APPTARGETS = ${SHELLAPPS:%=cfsin/%} APPTARGETS = ${SHELLAPPS:%=cfsin/%}
CFSTARGETS = $(APPTARGETS) cfsin/user.h CFSTARGETS = $(APPTARGETS) cfsin/user.h
TARGET = os.bin TARGET = os.bin

View File

@ -9,11 +9,16 @@
.org 0x3000 .org 0x3000
jp init jp init
; The TRS-80 generates a double line feed if we give it both CR and LF.
; Has to be defined before the jump table.
.equ printcrlf printcr
; *** Jump Table *** ; *** Jump Table ***
jp strncmp jp strncmp
jp upcase jp upcase
jp findchar jp findchar
jp printstr jp printstr
jp printcrlf
jp blkSet jp blkSet
jp blkSel jp blkSel
jp _blkGetB jp _blkGetB
@ -23,6 +28,10 @@
jp fsFindFN jp fsFindFN
jp fsOpen jp fsOpen
jp fsGetB jp fsGetB
jp fsPutB
jp fsSetSize
jp stdioPutC
jp stdioReadLine
.inc "err.h" .inc "err.h"
.inc "blkdev.h" .inc "blkdev.h"
@ -53,9 +62,6 @@
.equ FS_HANDLE_COUNT 2 .equ FS_HANDLE_COUNT 2
.inc "fs.asm" .inc "fs.asm"
; The TRS-80 generates a double line feed if we give it both CR and LF.
.equ printcrlf printcr
; *** BASIC *** ; *** BASIC ***
; RAM space used in different routines for short term processing. ; RAM space used in different routines for short term processing.

View File

@ -3,6 +3,7 @@
.equ upcase @+3 .equ upcase @+3
.equ findchar @+3 .equ findchar @+3
.equ printstr @+3 .equ printstr @+3
.equ printcrlf @+3
.equ blkSet @+3 .equ blkSet @+3
.equ blkSel @+3 .equ blkSel @+3
.equ _blkGetB @+3 .equ _blkGetB @+3
@ -12,3 +13,7 @@
.equ fsFindFN @+3 .equ fsFindFN @+3
.equ fsOpen @+3 .equ fsOpen @+3
.equ fsGetB @+3 .equ fsGetB @+3
.equ fsPutB @+3
.equ fsSetSize @+3
.equ stdioPutC @+3
.equ stdioReadLine @+3