1
0
mirror of https://github.com/g012/l65.git synced 2024-11-19 00:07:10 +00:00
l65/samples/scv_hello.l65

41 lines
605 B
Plaintext
Raw Normal View History

require 'scv'
location(0x8000, 0x8FFF)
section{"rom", org=0x8000}
dc.b 'H'
@main
di
lxi sp,0xFFD2
ei
2018-11-15 18:25:57 +00:00
calt 0x8C
2018-11-15 18:25:57 +00:00
lxi hl,vdc_data
lxi de,0x3400
mvi c,0x03
block
lxi hl,message
2018-11-10 11:50:03 +00:00
lxi de,0x3044
2018-11-15 18:25:57 +00:00
lxi bc,0x01ff
@loop_0
block
dcr b
2018-11-15 18:25:57 +00:00
jr loop_0
2018-11-15 18:25:57 +00:00
-- beep
lxi hl,0x3600
calf 0xfb0
@loop_1
nop
2018-11-15 18:25:57 +00:00
jr loop_1
section{"vdc_data", org=0x8030}
dc.b 0xC0,0x00,0x00,0xF2
section{"message", org=0x8040}
2018-11-10 11:50:03 +00:00
dc.b "\t\t\t\t Hello world! \t\t\t\t"
dc.b 0x00
2018-11-15 18:25:57 +00:00
writebin(filename .. '.bin')