mov ax, 0C123H
shl ax, 1 ;shift 1 bit to left, ax = 8246H, CF = 1
shr ax, 1 ;shift 1 bit to right, ax = 4123H, CF = 0
shr ax, 1 ;shift 1 bit to right, ax = 2091H, CF = 1
mov ax, 0C123H
shl ax, 2 ;shift 2 bit to left, ax = 048CH, CF = 1
mov cl, 3
shr ax, cl ;shift 3 bit to right, ax = 0091H, CF = 1
shl ax, 1 ;shift 1 bit to left, ax = 8246H, CF = 1
shr ax, 1 ;shift 1 bit to right, ax = 4123H, CF = 0
shr ax, 1 ;shift 1 bit to right, ax = 2091H, CF = 1
mov ax, 0C123H
shl ax, 2 ;shift 2 bit to left, ax = 048CH, CF = 1
mov cl, 3
shr ax, cl ;shift 3 bit to right, ax = 0091H, CF = 1
'NASM' 카테고리의 다른 글
| 어셈블리어 메모리공간에 저장되는 과정 (0) | 2009/05/14 |
|---|---|
| Bit Operations (0) | 2009/05/12 |
| push,pop (0) | 2009/05/12 |
| 어셈블리어 (0) | 2009/05/11 |



Prev
