mirror of
https://github.com/irmen/prog8.git
synced 2024-11-03 13:07:54 +00:00
8ef61ffc88
first steps code generation
42 lines
454 B
Plaintext
42 lines
454 B
Plaintext
%zeropage full
|
|
%address 33
|
|
|
|
~ extra3 {
|
|
; this is imported
|
|
|
|
X = 42
|
|
return 44
|
|
}
|
|
|
|
~ extra233 {
|
|
; this is imported
|
|
|
|
const byte snerp=33
|
|
const byte snerp2 = snerp+22
|
|
|
|
X = 42+snerp
|
|
;return 44+snerp
|
|
return
|
|
|
|
sub foo234234() -> () {
|
|
A=99+snerp
|
|
;return A+snerp2
|
|
return
|
|
}
|
|
|
|
sub thingy()->() {
|
|
;return 99
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
~ mainzzz {
|
|
; this is imported
|
|
|
|
X = 42
|
|
;return 44
|
|
return
|
|
}
|
|
|