-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcount.wnf
62 lines (50 loc) · 992 Bytes
/
count.wnf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
program count
lomem=$4000,runad
byte colbk=@
byte vcount=@
word count
byte i,j
// byte a
procedure increment()
begin
count := count + 1
end
begin
// Demonstration loop
// @init_fastscreen($bd80)
@init_fastscreen($bc40)
@init_set_bytes_per_line(40)
for j:=1 to 60 do // loop for 60s
begin
for i:=1 to 50 do // loop for 1s
begin
// position_sprites()
// @backcolorline($38)
count := 0
colbk := $0a
while vcount >= 112 do
begin
increment()
// count := count + 1
end
while vcount < 112 do
begin
increment()
// count := count + 1
end
colbk:=$0c
@fast_gotoxy(2,0)
colbk:=$0f
@printff("%d ", count)
colbk := $00
// wait_and_show_all_sprites()
end
end
@exit(0)
end
include "FAST_SCREEN_OUTPUT.INC"
include "SCREEN_OUTPUT.INC"
include "PRINTF.INC"
include "BASIC.INC"
include "BACKCOLORLINE.INC"
include "BREAKKEY.INC"