Re: A85: Accessing bits


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

Re: A85: Accessing bits




Thanks.  Could you explain what this is doing exactly?  I'd like to know
how this stuff works when I implement it into my game.

egillespie@juno.com
erik_gillespie_1096@gwgate.kvcc.edu

"In a prototypical world, nothing ever goes wrong." -Scott Meyers

On Tue, 12 May 1998 02:06:16 +0200 Jimmy =?iso-8859-1?Q?M=E5rdell?=
<yarin@acc.umu.se> writes:

>>SomeByte:
>>.db %10110110
>
> ld a,(SomeByte)
> ld hl,split
> ld b,4
>SplitByte:
> rlca
> rlca
> push af
> and 3
> ld (hl),a
> inc hl
> pop af
> djnz SplitByte
>
>would store the splitted byte in split - (split+3)
>each a value between 0 and 3. (split)=left, (split+1)=right etc
>
>--
>Real name: Jimmy Mårdell                "can't go mucking with a 'void 
>*'"
>IRC......: Yarin                                // Apple's MPW C 
>compiler
>Email....: mailto:yarin@acc.umu.se        
>Homepage.: http://www.algonet.se/~mja/
>

_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]


Follow-Ups: References: