blob: 11ce9b84a79e2e92b36ce14e610503b61ef31b80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
int dir = 0;
void holo_dec(int value) {
asm {
mov a, 3
mov b, @value
hwi 9
}
}
void main() {
asm {
mov a, 2
mov b, @dir
hwi 1 // legs
}
dir = dir + 1;
if (dir == 4) dir = 0;
}
|