File: ifx1.apoo

package info (click to toggle)
apoo 2.2-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 560 kB
  • ctags: 425
  • sloc: python: 3,092; perl: 100; makefile: 56; sh: 4
file content (16 lines) | stat: -rw-r--r-- 163 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#	
# 	Conditional test
# if(x==1) y=0;else x=2
#R1=x; R2=y
#R4 auxiliar
	loadn 	1	R4
	sub	R1	R4	
	jzero	R4	y0
x2:	loadn	2	R1
	jump 	fim
y0:	zero	R2
fim:	halt