Long boundaries
Don Pomplun
Posts: 116
in my DAT block I defined:
now long
dayOfWeek byte "Sun","Mon",Tue","Wed" etc
other bytes & longs
Much hairpulling ensued after unsuccessfully trying to deal with the 0th & 1st triads of characters (Sun & Mon). 2-6 were OK.
On a lark I moved the definition to the far end of the DAT block,. and they all worked fine.
I surmised that the problem was that 7 days x 3 letters is 21, which isn't divisible by 4, prompting some kind of boundary issue.
To test it, I added an 8th day, "Xxx", making 24 total characters, and put it back in its original place in the block. The same problem returned.
Was I on the right track about byte vs long (vs word) boundaries? Any idea why 24 bytes didn't fix it?
TIA
Don
now long
dayOfWeek byte "Sun","Mon",Tue","Wed" etc
other bytes & longs
Much hairpulling ensued after unsuccessfully trying to deal with the 0th & 1st triads of characters (Sun & Mon). 2-6 were OK.
On a lark I moved the definition to the far end of the DAT block,. and they all worked fine.
I surmised that the problem was that 7 days x 3 letters is 21, which isn't divisible by 4, prompting some kind of boundary issue.
To test it, I added an 8th day, "Xxx", making 24 total characters, and put it back in its original place in the block. The same problem returned.
Was I on the right track about byte vs long (vs word) boundaries? Any idea why 24 bytes didn't fix it?
TIA
Don
Comments