Code: ORG 8100h-512
; EXE-file header:
dw 5845h ; EXE Signature db 45h ; Reserved (EXE type) db 00h ; Version of EXE file dw 0200h ; Code offset dw 0000h dw 0000h ; Primary loader size or 0 (no primary loader) dw 0000h ; Reserved dw 0000h ; Reserved dw 0000h ; Reserved dw START ; Loading address dw START ; Starting address (register PC) dw 0C000h ; Stack address (register SP) ds 490 ; Reserved
; Сode of program (8100h)
START:
; Write welcome message
ld hl,msg ld c,5ch rst 10h
; Wait keypress
ld c,30h rst 10h
; Exit program
ld bc,0041h rst 10h
msg db "Hello, World!",13,10,0
|