mirror of
https://github.com/irmen/prog8.git
synced 2025-11-03 04:17:16 +00:00
fix broken optimization for wordvar - value expressions
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
main {
|
||||
struct element {
|
||||
word y
|
||||
}
|
||||
%import textio
|
||||
%zeropage basicsafe
|
||||
|
||||
main {
|
||||
sub start() {
|
||||
^^element zp_element = 20000
|
||||
zp_element.y = cx16.r0L as byte
|
||||
uword @shared z = 100
|
||||
ubyte @shared x = 200
|
||||
|
||||
for x in 15 downto 1 {
|
||||
txt.print_uw(x*$0002-z) ; TODO fix 6502 optimization bug
|
||||
txt.nl()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user