2018-08-12 21:09:59 +00:00
|
|
|
~ main $c003 {
|
2018-08-13 23:15:11 +00:00
|
|
|
memory byte derp = max($ffdd)
|
|
|
|
memory byte derpA = abs(-2.5-0.5)
|
|
|
|
memory byte derpB = max(1, 2.2, 4.4, 100)
|
|
|
|
memory byte cderp = min($ffdd)
|
|
|
|
memory byte cderpA = min($ffdd, 10, 20, 30)
|
|
|
|
memory byte cderpB = min(1, 2.2, 4.4, 100)
|
|
|
|
memory byte derp2 = 2+$ffdd+round(10*sin(3))
|
|
|
|
memory byte derp3 = round(100*sin(3))
|
2018-08-12 21:09:59 +00:00
|
|
|
const byte hopla=55-33
|
2018-08-13 21:28:04 +00:00
|
|
|
const byte hopla2=100+(-main.hopla)
|
|
|
|
const byte hopla3=100+(-hopla)
|
|
|
|
const byte hopla4 = 100-hopla
|
|
|
|
const byte hopla1=main.hopla
|
|
|
|
const float blerp1 = zwop / 2.22
|
2018-08-12 21:09:59 +00:00
|
|
|
const float zwop = -1.7014118345e+38
|
2018-08-13 21:28:04 +00:00
|
|
|
const float zwop2 = -1.7014118345e+38
|
|
|
|
const float blerp2 = zwop / 2.22
|
2018-08-12 21:09:59 +00:00
|
|
|
|
2018-08-13 21:28:04 +00:00
|
|
|
XY = hopla*2+hopla1
|
2018-08-12 21:09:59 +00:00
|
|
|
A = "derp" * %000100
|
|
|
|
|
2018-08-13 18:28:15 +00:00
|
|
|
mega:
|
|
|
|
X=1
|
|
|
|
cool:
|
|
|
|
Y=2
|
|
|
|
|
2018-08-13 02:12:42 +00:00
|
|
|
sub foo () -> () {
|
2018-08-13 21:28:04 +00:00
|
|
|
byte blerp = 3
|
2018-08-13 02:12:42 +00:00
|
|
|
A=99
|
|
|
|
return 33
|
|
|
|
X =33
|
2018-08-13 18:28:15 +00:00
|
|
|
mega:
|
|
|
|
cool:
|
|
|
|
|
2018-08-13 02:12:42 +00:00
|
|
|
}
|
|
|
|
|
2018-08-13 18:28:15 +00:00
|
|
|
some_label_def: A=44
|
2018-08-12 21:09:59 +00:00
|
|
|
return 1+999
|
|
|
|
%breakpoint
|
|
|
|
%asminclude "derp", hopsa
|
|
|
|
%asmbinary "derp", 0, 200
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
%import imported
|
|
|
|
%import imported
|
|
|
|
%import imported2
|
2018-08-13 18:28:15 +00:00
|
|
|
%import imported2
|