Ajout premier fichier
This commit is contained in:
commit
94d56e98dc
1 changed files with 26 additions and 0 deletions
26
hello.asm
Normal file
26
hello.asm
Normal file
|
@ -0,0 +1,26 @@
|
|||
org &4000
|
||||
db "AB"
|
||||
dw Start
|
||||
db 00,00,00,00,00,00
|
||||
|
||||
Start:
|
||||
call &006F
|
||||
ld a, 32
|
||||
ld (&F3B0), a
|
||||
|
||||
ld hl, Message
|
||||
call PrintString
|
||||
di
|
||||
halt
|
||||
|
||||
PrintString:
|
||||
ld a, (hl)
|
||||
cp 255
|
||||
ret z
|
||||
inc hl
|
||||
call &00A2
|
||||
jr PrintString
|
||||
|
||||
Message: db 'Hello World!', 255
|
||||
|
||||
org &C000
|
Loading…
Reference in a new issue