DASM question

Subject: DASM question
From: "Dennis Debro" <dennis@xxxxxxxxxxxxxxx>
Date: Wed, 10 Nov 2004 10:52:56 -0800 (PST)
Hi there,

Maybe someone here can help me with this.

If I have...
   and #%10111111

the DASM list file shows...
   29 BF

that's okay.

If I have...
   and #~%10111111

the DASM list file shows...
   29 40

and that's okay.

If I have...
   and #~%10111111>>4

the DASM list file shows...
   29 f4

Even if I use parenthesis (or brackets)...
   and #(~%10111111)>>4 -or- and #[~%10111111]>>4

the DASM list file shows...
   29 f4

What am I doing wrong here? Why doesn't this equate to...
   29 04 -or- and #$04

Take care,
Dennis


Current Thread