aboutsummaryrefslogtreecommitdiff
path: root/examples/i.s
blob: dc4a2d8660eac01c838bb88fd2e15121bb6f74aa (plain)
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
;Test of all compiler instructions. Should be fine in both upper and lower case

:start	jsr start
		set a, b
		sub a, b
		mul a, b
		div a, b
		mod a, b
		shl a, b
		shr a, b
		and a, b
		bor a, b
		xor a, b
		ife a, b
		ifn a, b
		ifg a, b
		ifb a, b

		JSR start
		SET a, b
		SUB a, b
		MUL a, b
		DIV a, b
		MOD a, b
		SHL a, b
		SHR a, b
		AND a, b
		BOR a, b
		XOR a, b
		IFE a, b
		IFN a, b
		IFG a, b
		IFB a, b