Re: A86: 16-bit Rotations


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

Re: A86: 16-bit Rotations




Presuming you mean bit not byte...

rlc_hl:
  add hl,hl
  ret nc
  inc l
  ret

rrc_hl:
  ld a,h
  rra
  rr l
  rr h
  ret


In a message dated 9/19/00 5:29:25 PM Eastern Daylight Time, zoneti@home.com 
writes:

> Hey, I've been trying to get a 16 bit rotation routine working but I can't
>  really think of a good way to do it and my way (that sucked) didn't work
>  anyway.
>  
>  I need a routine that can shift the 16 bits left, sticking the byte 
farthest
>  to the left on the right.
>  
>  If someone could help, that would be great. Thanks.
>  




----
Jonah Cohen
<ComAsYuAre@aol.com>
http://jonah.ticalc.org



Follow-Ups: