Subject: Re: [stella] Pattern Processor code help From: Christopher Tumber <christophertumber@xxxxxxxxxx> Date: Fri, 09 May 2003 13:02:37 -0400 |
Since Bill pointed this out, are you sure this is doing what you expect it to be doing? AND #$C0 CLC ROL ROL ROL This code has the effect of moving Bit7 to Bit1, Bit6 to Bit0 and Bit5 to the Carry. Since the AND isolates bits 5 and 7 I suspect this is not what you intend: Start With: #%10100000 c=0 ROL: #%01000000 c=1 ROL: #%10000001 c=0 ROL: #%00000010 c=1 If you're looking to move the high nibble to low, you need another ROL. Though I'd suggest just doing 4 LSR's instead and not have to worry about the Carry at all. Chris... ---------------------------------------------------------------------------------------------- Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://www.biglist.com/lists/stella/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [stella] Pattern Processor code, Bill Heineman | Thread | Re: [stella] Pattern Processor code, Manuel Polik |
Re: [stella] Pattern Processor code, Bill Heineman | Date | Re: [stella] Parker Brother's E0 Ba, Thomas Jentzsch |
Month |