2024-05-21 21:14:25 +00:00
|
|
|
%import diskio
|
|
|
|
%import textio
|
2024-04-12 19:56:25 +00:00
|
|
|
%zeropage basicsafe
|
2023-12-31 00:02:33 +00:00
|
|
|
|
2024-01-07 17:48:18 +00:00
|
|
|
main {
|
2024-05-18 15:15:31 +00:00
|
|
|
sub start() {
|
2024-05-21 21:14:25 +00:00
|
|
|
if diskio.f_open("tehtriz.asm") {
|
|
|
|
repeat 10 {
|
|
|
|
void diskio.f_read($6000, 9999)
|
|
|
|
}
|
|
|
|
uword pl, ph, sl, sh
|
|
|
|
pl, ph, sl, sh = diskio.f_tell32()
|
|
|
|
|
|
|
|
txt.print("\npos: ")
|
|
|
|
txt.print_uwhex(ph, true)
|
|
|
|
txt.print_uwhex(pl, false)
|
|
|
|
txt.print("\nsize: ")
|
|
|
|
txt.print_uwhex(sh, true)
|
|
|
|
txt.print_uwhex(sl, false)
|
|
|
|
txt.nl()
|
|
|
|
|
|
|
|
diskio.f_close()
|
|
|
|
}
|
|
|
|
|
|
|
|
if diskio.f_open("test.p8ir") {
|
|
|
|
repeat 5 {
|
|
|
|
void diskio.f_read($6000, 999)
|
|
|
|
}
|
|
|
|
|
|
|
|
pl, sl = diskio.f_tell()
|
|
|
|
txt.print("\npos16: ")
|
|
|
|
txt.print_uwhex(pl, true)
|
|
|
|
txt.print("\nsize16: ")
|
|
|
|
txt.print_uwhex(sl, true)
|
|
|
|
txt.nl()
|
|
|
|
|
|
|
|
diskio.f_close()
|
|
|
|
}
|
2024-05-18 15:15:31 +00:00
|
|
|
}
|
2024-03-16 19:58:45 +00:00
|
|
|
}
|