2017-12-28 22:03:59 +00:00
|
|
|
output prg,basic
|
2017-12-25 20:43:06 +00:00
|
|
|
|
|
|
|
import "c64lib"
|
|
|
|
|
|
|
|
~ main {
|
|
|
|
var .text name = "?"*80
|
|
|
|
|
|
|
|
start
|
2017-12-31 02:19:06 +00:00
|
|
|
c64.init_system()
|
2017-12-27 18:01:14 +00:00
|
|
|
|
2017-12-25 21:22:19 +00:00
|
|
|
XY = c64.CINV
|
2017-12-25 20:43:06 +00:00
|
|
|
SI = 1
|
2017-12-25 21:22:19 +00:00
|
|
|
c64.CINV = #irq_handler
|
2017-12-25 20:43:06 +00:00
|
|
|
SI = 0
|
|
|
|
|
2017-12-27 22:45:22 +00:00
|
|
|
|
2017-12-31 02:19:06 +00:00
|
|
|
c64scr.print_string("enter your name: ")
|
|
|
|
c64scr.input_chars(name)
|
2017-12-25 20:43:06 +00:00
|
|
|
c64.CHROUT('\n')
|
2017-12-27 22:45:22 +00:00
|
|
|
|
|
|
|
blop
|
|
|
|
breakpoint ; yeah!
|
|
|
|
|
2017-12-31 02:19:06 +00:00
|
|
|
c64scr.print_string("thank you, mr or mrs: ")
|
|
|
|
c64scr.print_string(name)
|
2017-12-25 20:43:06 +00:00
|
|
|
c64.CHROUT('\n')
|
|
|
|
|
2017-12-25 21:22:19 +00:00
|
|
|
SI = 1
|
|
|
|
c64.CINV = XY
|
|
|
|
SI = 0
|
|
|
|
|
2017-12-25 20:43:06 +00:00
|
|
|
return
|
|
|
|
|
2017-12-27 18:01:14 +00:00
|
|
|
|
2017-12-25 20:43:06 +00:00
|
|
|
irq_handler
|
|
|
|
asm {
|
|
|
|
lda $cb
|
|
|
|
cmp #$40
|
|
|
|
beq +
|
|
|
|
inc c64.EXTCOL
|
|
|
|
+ jmp c64.IRQDFRT
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|