aboutsummaryrefslogtreecommitdiffstats
path: root/src/programs.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/programs.asm')
-rw-r--r--src/programs.asm13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/programs.asm b/src/programs.asm
index d4ae89f..eabe56f 100644
--- a/src/programs.asm
+++ b/src/programs.asm
@@ -45,6 +45,15 @@ ProgHello:
.msgend
; -----------------------------------------------------------------------------
+; PROG_CHELLO (bank 5) - a program written in C, compiled with SDCC to a
+; self-contained ROM-bank image (crt0 + libc + code) and included verbatim.
+; Rebuild with: sh c/build.sh c/chello.c c/chello.bin
+; -----------------------------------------------------------------------------
+SECTION "prog_chello", ROMX[$4000], BANK[5]
+ProgChello:
+ INCBIN "c/chello.bin"
+
+; -----------------------------------------------------------------------------
; PROG_SH (bank 3) - a tiny shell.
; prompt -> read a line (with echo) -> match a command -> fork+exec+wait.
; -----------------------------------------------------------------------------
@@ -138,6 +147,8 @@ ProgSh:
db PROG_WORKER
db "hello", 0
db PROG_HELLO
+ db "chello", 0
+ db PROG_CHELLO
db 0 ; terminator
; -----------------------------------------------------------------------------
@@ -178,3 +189,5 @@ ProgramTable::
dw ProgSh
db LOW(BANK(ProgHello)), HIGH(BANK(ProgHello))
dw ProgHello
+ db LOW(BANK(ProgChello)), HIGH(BANK(ProgChello))
+ dw ProgChello