Browse Source

recipes/trs80: add ed

pull/94/head
Virgil Dupras 4 years ago
parent
commit
434c8d5c0d
4 changed files with 16 additions and 4 deletions
  1. +1
    -0
      recipes/trs80/.gitignore
  2. +1
    -1
      recipes/trs80/Makefile
  3. +9
    -3
      recipes/trs80/glue.asm
  4. +5
    -0
      recipes/trs80/user.h

+ 1
- 0
recipes/trs80/.gitignore View File

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

+ 1
- 1
recipes/trs80/Makefile View File

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


+ 9
- 3
recipes/trs80/glue.asm View File

@@ -9,11 +9,16 @@
.org 0x3000
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 ***
jp strncmp
jp upcase
jp findchar
jp printstr
jp printcrlf
jp blkSet
jp blkSel
jp _blkGetB
@@ -23,6 +28,10 @@
jp fsFindFN
jp fsOpen
jp fsGetB
jp fsPutB
jp fsSetSize
jp stdioPutC
jp stdioReadLine

.inc "err.h"
.inc "blkdev.h"
@@ -53,9 +62,6 @@
.equ FS_HANDLE_COUNT 2
.inc "fs.asm"

; The TRS-80 generates a double line feed if we give it both CR and LF.
.equ printcrlf printcr

; *** BASIC ***

; RAM space used in different routines for short term processing.


+ 5
- 0
recipes/trs80/user.h View File

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

Loading…
Cancel
Save