ROL is allmost the same as LSL, but as the LSL shifts
in a 0(zero) on the right and the leftmost bit into the
carry, ROL shifts in the carry on the right and the
leftmost bit into the carry.
I try to make it visable:
LSL
carry <-- D7 <-- D6 <-- D5 .... D1 <-- D0 <-- 0
ROL
new carry <-- D7 <-- D6 .... D1 <-- D0 <-- old carry
So by using the LSL to shifht a bit to the left the
highest is saved in the carry and can be retreved by
the ROR.
Therefor the high 4 bits are shifted into the B register
and the A register is shifted 4 bits to the left.
The result is:
if A was $12 (is 012h for intel users),
A will be $20
B will be $01 and afther the ABA(is a add B to A)
A will be $21
Succes, Tessa