blob: 767c14a92bd06c78da5628e6071dd0a07021f384 (
plain) (
blame)
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
63
64
65
66
67
68
69
70
71
72
73
74
|
function KGame.new 0
push constant 1
call Memory.alloc 1
pop pointer 0
call Board.new 0
pop this 0
push this 0
call Board.draw 1
pop temp 0
push pointer 0
return
function KGame.dispose 0
push argument 0
pop pointer 0
push this 0
call Board.dispose 1
pop temp 0
push pointer 0
call Memory.deAlloc 1
pop temp 0
push constant 0
return
function KGame.run 3
push argument 0
pop pointer 0
push constant 0
pop local 0
push constant 0
pop local 2
label WHILE_EXP0
push local 2
not
not
if-goto WHILE_END0
label WHILE_EXP1
push local 0
push constant 130
lt
push local 0
push constant 133
gt
or
not
if-goto WHILE_END1
call Keyboard.keyPressed 0
pop local 0
goto WHILE_EXP1
label WHILE_END1
push local 0
push constant 130
sub
pop local 1
label WHILE_EXP2
push local 0
push constant 0
eq
not
not
if-goto WHILE_END2
call Keyboard.keyPressed 0
pop local 0
goto WHILE_EXP2
label WHILE_END2
push this 0
push local 1
call Board.next 2
pop temp 0
push this 0
call Board.draw 1
pop temp 0
goto WHILE_EXP0
label WHILE_END0
push constant 0
return
|