Jump to content

Bitwise operations: Difference between revisions

m
Line 137:
=={{header|6502 Assembly}}==
Integer one is in the accumulator, integer two is in zero page memory location "temp". Both are considered to be unsigned.
<lang 6502asm>AND temp ;ANDs accumulator with temp.
AND temp ;ANDs accumulator with temp.
 
OR temp ;ORs accumulator with temp.
Line 186 ⟶ 185:
 
loop_ASR:
jsr ASR
LSR
DEX
BPL loop_ASR
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.