02-20-2012, 12: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 FUNCTION
I haven't tested it, mind. Just typed it here. Feels right, though
