BigEd / atalan

Automatically exported from code.google.com/p/atalan
MIT License
1 stars 0 forks source link

Problem with binary operations and addressing tables compilacja 6-sep-2010 #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Problem with binary operations and addressing tables, for example.

const mask:array(8) = ($fe,$fd,$fb,$f7,$ef,$df,$bf,$7f)
tab:array($200) of byte
k:word

for k:0..$1ff
    tab(k) = mask( k and 7 )

Original issue reported on code.google.com by supap...@o2.pl on 10 Sep 2010 at 10:40

GoogleCodeExporter commented 9 years ago
This is optimizer bug. With optimizer switched off, this works.

Original comment by jakub.hu...@gmail.com on 11 Sep 2010 at 1:05

GoogleCodeExporter commented 9 years ago
Was problem with anding together byte and card to byte.
Optimizer just made the error visible :-)

Original comment by rudla.ku...@gmail.com on 12 Sep 2010 at 8:08