Skip to content

Instantly share code, notes, and snippets.

/autoexec.bas

Created Nov 9, 2016
Embed
What would you like to do?
10 BLOAD"PROGRAM.BIN",R
10 BLOAD"PROGRAM.BIN",R
{"asm":{"filename":"program.bin","build":"bin"},"basic":{}}
; bios call to print a character on screen
CHPUT: equ 0x00a2
; the address of our program
org 0xD000
start:
ld hl, message
mainLoop: ld a, (hl)
cp 0
ret z
call CHPUT
inc hl
jr mainLoop
message:
db "Hello world!",0
; use the label "start" as the entry point
end start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment