prog8/compiler/examples/imported2.p8

42 lines
455 B
Plaintext
Raw Normal View History

2018-08-16 21:10:28 +00:00
%zeropage full
%address 33
2018-08-13 18:28:15 +00:00
~ extra3 {
; this is imported
X = 42
return 44
}
2018-08-13 18:28:15 +00:00
~ extra233 {
; this is imported
2018-08-31 19:46:14 +00:00
const byte snerp=33
const byte snerp2 = snerp+22
X = 42+snerp
;return 44+snerp
return
2018-08-31 16:32:33 +00:00
2018-08-31 19:46:14 +00:00
sub foo234234() -> () {
A=99+snerp
;return A+snerp2
return
2018-08-31 16:32:33 +00:00
}
sub thingy()->(X) {
;return 99
return
}
}
2018-08-13 18:28:15 +00:00
~ mainzzz {
; this is imported
X = 42
;return 44
return
}