;Text after semicolon is comments, you don't need to type it in

;Run this program with CALL &1000 from basic

org &4000
 ld hl,Message
 Call PrintString
 jp Newline
PrintString:
 ld a,(hl)
 cp 255
 ret z
 inc hl
 call &BB5A
 jr PrintString
Message: db 'Hello World 123!',255
NewLine:
 ld a,13
 call &BB5A
 ld a,10
 call &BB5A
 ret


	




1 |assemble
10'org &4000
20' ld hl,Message
30' Call PrintString	
40' jp Newline  ;Return		
60'PrintString:
70' ld a,(hl)
80' cp 255
90' ret z
100' inc hl		
110' call &BB5A	
120' jr PrintString
130'Message: db 'Hello World 123!',255
140'NewLine:
150' ld a,13	
160' call &BB5A	
170' ld a,10		
180' jp &BB5A	



	