Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Puts the 3rd bit in dl.
- mov al, 1;
- shl al, 2;
- mov dl, cl;
- and dl, al;
- //Puts the 6th bit in dh.
- mov ah, 1;
- shl ah, 5;
- mov dh, cl;
- and dh, ah;
- //Puts the 6th bit instead of the 3rd.
- not al;
- and cl, al;
- shr dh, 3;
- or cl, dh;
- //Puts the 3rd bit instead of the 6th.
- not ah;
- and cl, ah;
- shl dl, 3;
- or cl, dl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement