2020-12-27 01:22:18 +00:00
|
|
|
%import test_stack
|
|
|
|
%import textio
|
2021-01-10 04:04:56 +00:00
|
|
|
%import diskio
|
2021-01-07 19:01:11 +00:00
|
|
|
%import string
|
2021-01-03 01:45:25 +00:00
|
|
|
%zeropage basicsafe
|
2020-12-08 00:02:38 +00:00
|
|
|
%option no_sysinit
|
|
|
|
|
2020-12-08 21:54:20 +00:00
|
|
|
main {
|
2020-12-21 23:59:07 +00:00
|
|
|
|
2021-01-07 19:01:11 +00:00
|
|
|
sub start() {
|
2021-01-10 15:00:22 +00:00
|
|
|
ubyte[40] input_line
|
|
|
|
|
|
|
|
if diskio.f_open(8, "romdis.asm") {
|
|
|
|
uword line=0
|
|
|
|
repeat 5 {
|
|
|
|
ubyte length = diskio.f_readline(input_line)
|
|
|
|
if length {
|
|
|
|
line++
|
|
|
|
txt.print_uw(line)
|
|
|
|
txt.chrout(':')
|
|
|
|
txt.print_ub(length)
|
|
|
|
txt.print(":[")
|
|
|
|
ubyte xx
|
|
|
|
for xx in 0 to length-1 {
|
|
|
|
txt.print_ubhex(input_line[xx], 1)
|
|
|
|
txt.chrout(' ')
|
|
|
|
}
|
|
|
|
; txt.print(&input_line)
|
|
|
|
txt.print("]\n")
|
|
|
|
; textparse.process_line()
|
|
|
|
if c64.READST() ; TODO also check STOP key
|
|
|
|
break
|
|
|
|
} else
|
|
|
|
break
|
|
|
|
}
|
|
|
|
diskio.f_close()
|
|
|
|
}
|
2021-01-10 14:15:00 +00:00
|
|
|
}
|
2021-01-05 22:19:37 +00:00
|
|
|
|
2021-01-10 04:04:56 +00:00
|
|
|
|
2020-08-27 17:47:50 +00:00
|
|
|
}
|