35 lines
527 B
NASM
35 lines
527 B
NASM
|
main:
|
||
|
ldw a, 87
|
||
|
str a, 0x3EC
|
||
|
ldw a, 101
|
||
|
str a, 0x3ED
|
||
|
ldw a, 108
|
||
|
str a, 0x3EE
|
||
|
ldw a, 99
|
||
|
str a, 0x3EF
|
||
|
ldw a, 111
|
||
|
str a, 0x3F0
|
||
|
ldw a, 109
|
||
|
str a, 0x3F1
|
||
|
ldw a, 101
|
||
|
str a, 0x3F2
|
||
|
ldw a, 33
|
||
|
str a, 0x3F3
|
||
|
ldw a, 10
|
||
|
str a, 0x3F4
|
||
|
ldw a, 0
|
||
|
str a, 0x3F5
|
||
|
ldw a, 0x3EC
|
||
|
str a, 0x400
|
||
|
ldw d, 0
|
||
|
ldr b, 0x400
|
||
|
ldw c, 1
|
||
|
string_loop:
|
||
|
ldb a, b
|
||
|
beq a, d, string_end
|
||
|
int 0x00
|
||
|
add b, c
|
||
|
jmp string_loop
|
||
|
string_end:
|
||
|
int 0xFF
|