2024-06-01 15:03:01 +02:00
|
|
|
%import textio
|
2024-07-16 00:25:29 +02:00
|
|
|
%zeropage basicsafe
|
2024-09-06 17:00:24 +02:00
|
|
|
%option no_sysinit
|
2023-12-31 01:02:33 +01:00
|
|
|
|
2024-09-09 22:56:40 +02:00
|
|
|
|
2024-01-07 18:48:18 +01:00
|
|
|
main {
|
2024-08-24 14:34:23 +02:00
|
|
|
sub start() {
|
2024-09-10 20:35:43 +02:00
|
|
|
ubyte x
|
|
|
|
uword w
|
|
|
|
uword @shared wstart=50000
|
|
|
|
ubyte @shared bstart=127
|
|
|
|
uword y
|
|
|
|
uword duration
|
|
|
|
byte b
|
|
|
|
|
|
|
|
|
|
|
|
cbm.SETTIM(0,0,0)
|
|
|
|
repeat 5000 {
|
|
|
|
y=0
|
|
|
|
; for x in bstart downto 0 {
|
|
|
|
; y++
|
|
|
|
; }
|
|
|
|
x = bstart
|
|
|
|
do {
|
|
|
|
y++
|
|
|
|
x--
|
|
|
|
} until x==255
|
|
|
|
}
|
|
|
|
txt.print_uw(cbm.RDTIM16())
|
|
|
|
if y!=128
|
|
|
|
txt.print("error 1\n")
|
|
|
|
|
|
|
|
/*
|
|
|
|
for w in 65535 downto 0 {
|
|
|
|
y++
|
|
|
|
}
|
|
|
|
if y!=0
|
|
|
|
txt.print("error 10\n")
|
|
|
|
|
|
|
|
y=0
|
|
|
|
for w in 0 to 65535 {
|
|
|
|
y++
|
|
|
|
}
|
|
|
|
if y!=0
|
|
|
|
txt.print("error 11\n")
|
|
|
|
*/
|
|
|
|
|
|
|
|
txt.print("\nall done\n")
|
2024-07-21 13:35:28 +02:00
|
|
|
}
|
|
|
|
}
|