Jump to content

Bitwise operations: Difference between revisions

(Added solution for Action!)
Line 176:
Like with most 68000 commands, you can specify a length parameter. Anything outside that length is unaffected by the operation.
;AND
<lang 68000devpac>MOVE.W D0,#$100,D0
MOVE.W D1,#$200,D1
AND.W D0,D1</lang>
 
;OR
<lang 68000devpac>MOVE.W D0,#$100,D0
MOVE.W D1,#$200,D1
OR.W D0,D1</lang>
 
;XOR
<lang 68000devpac>MOVE.W D0,#$100,D0
MOVE.W D1,#$200,D1
EOR.W D0,D1</lang>
 
;NOT
<lang 68000devpac>MOVE.W D0,#$100,D0
NOT.W D1D0</lang>
 
;Left Shift
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.