aboutsummaryrefslogtreecommitdiff
path: root/test/t2.c
blob: 10913134d485c2a8ac206c3300c73f37c2615014 (plain)
1
2
3
4
5
6
7
8
9
10
11
int dir = 0;

void main() {
	asm {
		mov a, 2
		mov b, @dir
		hwi 1  // legs
	}
	dir = dir + 1;
	if (dir == 4) dir = 0;
}