Add example project, devcontainer config and debugger config

This commit is contained in:
2025-04-26 23:30:03 +01:00
parent 5ffbe818b6
commit 0a5cf0d943
7 changed files with 376 additions and 0 deletions

22
main.asm Normal file
View File

@ -0,0 +1,22 @@
code_start_addr EQU #8000
ORG code_start_addr
MODULE main
@code_run_addr:
ld a, 57
ld bc, 64
ld hl, 0
call print_string
db "Hello, world!", 0
ret
ENDMODULE
INCLUDE print.asm
code_length EQU $ - code_start_addr
DEVICE ZXSPECTRUM48
SLDOPT COMMENT WPMEM, LOGPOINT, ASSERTION
SAVESNA "myprog.sna", code_run_addr
INCLUDE loader.asm