2024-03-20 22:34:39 +01:00
|
|
|
%import diskio
|
2024-03-12 23:39:54 +01:00
|
|
|
%zeropage basicsafe
|
2024-03-20 22:34:39 +01:00
|
|
|
%option no_sysinit
|
2023-12-31 01:02:33 +01:00
|
|
|
|
2024-01-07 18:48:18 +01:00
|
|
|
main {
|
2024-03-20 22:34:39 +01:00
|
|
|
str scanline_buf = "?"* 20
|
|
|
|
|
2024-03-02 14:26:02 +01:00
|
|
|
sub start() {
|
2024-03-20 22:34:39 +01:00
|
|
|
if diskio.f_open("test.prg") and diskio.f_read(scanline_buf, 2)==2
|
|
|
|
cx16.r0++
|
|
|
|
|
|
|
|
if diskio.f_open("test.prg") or diskio.f_read(scanline_buf, 2)==2
|
|
|
|
cx16.r0++
|
2024-03-17 23:18:33 +01:00
|
|
|
|
2024-03-20 22:34:39 +01:00
|
|
|
if diskio.f_open("test.prg") xor diskio.f_read(scanline_buf, 2)==2
|
|
|
|
cx16.r0++
|
2024-03-16 20:58:45 +01:00
|
|
|
}
|
|
|
|
}
|