Created
November 9, 2016 03:33
-
-
Save anonymous/cd0adc762c47bba4265f1bb25528f928 to your computer and use it in GitHub Desktop.
10 BLOAD"PROGRAM.BIN",R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 BLOAD"PROGRAM.BIN",R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"asm":{"filename":"program.bin","build":"bin"},"basic":{}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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