mirror of
https://github.com/irmen/prog8.git
synced 2024-12-24 16:29:21 +00:00
0d3ad80659
this also fixed a difference in const calculation where the result could differ if you were using optimzations or not.
17 lines
315 B
Lua
17 lines
315 B
Lua
%import textio
|
|
%zeropage basicsafe
|
|
%option no_sysinit
|
|
|
|
main {
|
|
sub start() {
|
|
uword @shared large = (320*240/8/8)
|
|
const uword WIDTH=320
|
|
uword x1 = ((WIDTH-256)/2 as uword) + 200
|
|
txt.print_uw(x1)
|
|
txt.nl()
|
|
x1 = ((WIDTH-256)/2) + 200
|
|
txt.print_uw(x1)
|
|
}
|
|
}
|
|
|