mirror of
https://github.com/irmen/prog8.git
synced 2024-11-25 04:31:20 +00:00
45 lines
762 B
Plaintext
45 lines
762 B
Plaintext
~ main $c003 {
|
|
;memory byte derp = $ffdd
|
|
;memory byte derp2 = 2+$ffdd+sin(3)
|
|
memory byte derp3 = round(sin(3))
|
|
const byte hopla=55-33
|
|
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
|
|
const float zwop = -1.7014118345e+38
|
|
const float zwop2 = -1.7014118345e+38
|
|
const float blerp2 = zwop / 2.22
|
|
|
|
XY = hopla*2+hopla1
|
|
A = "derp" * %000100
|
|
|
|
mega:
|
|
X=1
|
|
cool:
|
|
Y=2
|
|
|
|
sub foo () -> () {
|
|
byte blerp = 3
|
|
A=99
|
|
return 33
|
|
X =33
|
|
mega:
|
|
cool:
|
|
|
|
}
|
|
|
|
some_label_def: A=44
|
|
return 1+999
|
|
%breakpoint
|
|
%asminclude "derp", hopsa
|
|
%asmbinary "derp", 0, 200
|
|
}
|
|
|
|
|
|
%import imported
|
|
%import imported
|
|
%import imported2
|
|
%import imported2
|