2024-05-21 23:14:25 +02:00
|
|
|
%import diskio
|
|
|
|
%import textio
|
2024-04-12 21:56:25 +02:00
|
|
|
%zeropage basicsafe
|
2023-12-31 01:02:33 +01:00
|
|
|
|
2024-01-07 18:48:18 +01:00
|
|
|
main {
|
2024-05-18 17:15:31 +02:00
|
|
|
sub start() {
|
2024-05-21 23:14:25 +02:00
|
|
|
if diskio.f_open("tehtriz.asm") {
|
|
|
|
repeat 10 {
|
|
|
|
void diskio.f_read($6000, 9999)
|
|
|
|
}
|
|
|
|
uword pl, ph, sl, sh
|
2024-05-22 21:47:02 +02:00
|
|
|
pl, ph, sl, sh = diskio.f_tell()
|
2024-05-21 23:14:25 +02:00
|
|
|
|
|
|
|
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()
|
|
|
|
}
|
2024-05-18 17:15:31 +02:00
|
|
|
}
|
2024-03-16 20:58:45 +01:00
|
|
|
}
|