07-05-2010, 08:27 AM
britlion Wrote:It's a bug. I got the same thing. (though at different addresses)I will investigate this, but it should be ld a,(hl) even if no optimization is being used. :?: hmmm.
I think the new label-offset code that Boriel put in isn't quite working correctly.
Looking at the asm:
Which does indeed get the byte from gal-2 (albeit in a very strange fashion - what's wrong with ld a,(hl) instead of copying hl to bc ?)Code:print peek(gal-2)
Turns into:
ld hl, (_gal)
dec hl
dec hl
ld b, h
ld c, l
ld a, (bc)
call __PRINTU8
britlion Wrote:I think it should be:That was the fix, indeed ;-)
Code:ld a, ( __LABEL__galeon02Charset - 2 )