Changes
added reverse A routine
This routine will return the reverse order of register A.
<pre>
;
;- Reverse a
;Input: A
;Output: Reversed A
;Destroys: B
;Length: 18 bytes
;Author: calcmaniac84
;
ReverseA:
ld b,a
rrca
rrca
xor b
and %10101010
xor b
ld b,a
rrca
rrca
rrca
rrca
xor b
and %01100110
xor b
rrca
ret
</pre>
[[Category:Programming]]
<pre>
;
;- Reverse a
;Input: A
;Output: Reversed A
;Destroys: B
;Length: 18 bytes
;Author: calcmaniac84
;
ReverseA:
ld b,a
rrca
rrca
xor b
and %10101010
xor b
ld b,a
rrca
rrca
rrca
rrca
xor b
and %01100110
xor b
rrca
ret
</pre>
[[Category:Programming]]