Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20684

BASCOM-AVR : Overlay bitfield works only for $60 address. Bug? : NEWTOPIC

$
0
0
Hi, Bascom-AVR 2.0.7.6 Program tested on bascom simulator: [code:1:ccd8d95332]$sim $regfile = "m8def.dat" $swstack = 40 $hwstack = 32 $framesize = 32 Dim Byte1 As Byte At $60 Overlay Dim Bit1_1 As Bit At $60 Overlay 'MSB of Byte1 Dim Bit1_2 As Bit At $60 Overlay Dim Bit1_3 As Bit At $60 Overlay Dim Bit1_4 As Bit At $60 Overlay Dim Bit1_5 As Bit At $60 Overlay Dim Bit1_6 As Bit At $60 Overlay Dim Bit1_7 As Bit At $60 Overlay Dim Bit1_8 As Bit At $60 Overlay 'LSB of Byte1 Dim Byte2 As Byte At $61 Overlay Dim Bit2_1 As Bit At $61 Overlay 'MSB of Byte2 Dim Bit2_2 As Bit At $61 Overlay Dim Bit2_3 As Bit At $61 Overlay Dim Bit2_4 As Bit At $61 Overlay Dim Bit2_5 As Bit At $61 Overlay Dim Bit2_6 As Bit At $61 Overlay Dim Bit2_7 As Bit At $61 Overlay Dim Bit2_8 As Bit At $61 Overlay 'LSB of Byte2 Byte1 = &B10000000 Byte2 = &B01000000 Set Bit1_7 Set Bit2_6 Loop: Goto Loop[/code:1:ccd8d95332] Simulation goes well till Set Bit2_6. Executing this line changes 6th bit on Byte1 instead on Byte2. What (am I)/(are compiller) doing wrong ? Tested on various locations - only $60 address works .... PM [b:ccd8d95332][color=red:ccd8d95332](BASCOM-AVR version : 2.0.7.6 )[/b:ccd8d95332][/color:ccd8d95332]

Viewing all articles
Browse latest Browse all 20684

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>