Subject: RE: [stella] DASM question From: mathys66@xxxxxxxxxx Date: Wed, 10 Nov 2004 20:20:36 +0100 |
hello that's a dasm feature:) arithmetics is performed always in 32 bits internally. so (~%10111111) results in 11111111111111111111111101000000 when the opcode is created, this will be truncated to 8 bits, but the shift operator shifts down higher bits that are set, so the result is 11110100 = $f4 try and'ing the inverted value with 255 before you shift it: lda #((~%10111111) & 255) >>4 cheers thomas
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
DASM question, Dennis Debro | Thread | RE: [stella] DASM question, Dennis Debro |
Reply-to broken, Paul Slocum | Date | RE: [stella] DASM question, Dennis Debro |
Month |