[A83] Re: HL = A * 12 (fast)


[Prev][Next][Index][Thread]

[A83] Re: HL = A * 12 (fast)




I'd like to say something about it, because when i was a beginning with ASM
i was always confused about it.
Maybe you knwo already but the bitshifting is not a processor operation, the
assembler just shifts the constant $1234 8 bits to the right so the hex code
doesnt even include the byte $34

Bye,
Cheiz
>
> > A little question that can be a little bit outer the subject..
> > Can somone explain to me what mul12table >> 8 mean ?
>
> In TASM at least, '>>' is the right shift operator. The 8 means it's
shifted
> 8 bits. mul12table is address and shifting it 8 bits gives you the higher
> byte.
>
> 1234h >> 8 = 12h
>
>
>




References: