2012-02-20, 01:25 PM
Ah - then you'd need one that just looks like this, I think:
I haven't tested it, mind. Just typed it here. Feels right, though
Code:
function fastcall mirror (number as uByte) as uByte
asm
ld b,8
ld c,a
XOR A
mirrorLoop:
RR C
RLA
DJNZ mirrorLoop
end asm
END FUNCTIONI haven't tested it, mind. Just typed it here. Feels right, though

