;; Tell the assembler that this is z80 code
.Z80
;; Load the address "message" into the 16 bit DE register
LD DE,msg
;; Load the immediate 9 into the 8 bit C register to select system call 9
LD C,9
;; Make the system call
CALL 5
;; Exit program
JP 0
;; Define a memory address to store a string
msg: DB "Hello World!$"
;; Tell the assembler that this is it
END