Files
E220Term/src/example/str_out.asm
2020-04-04 21:54:54 +02:00

11 lines
521 B
NASM

;output a string into the top left of the screen
ORG 0100H ;Start at addr 0x100
START: LD HL,DATA ;Load the start address of the string
LD B,0DH ;The length of the string (max 255 chars)
LD DE,0H ;Start in the top left corner (D=0-3 -> row; E=0-23 column)
CALL 84CDH ;Call the str_out function in ROM
RET ;Return from call
DATA: DB 'HELLO, WORLD!'
END ;End marker for the assembler