x86-64 general-purpose instruction forms
RDSEED r32
| Opcode | NFx 0F C7 /7 |
|---|---|
| Operands | (dest :rm gpr 32 :w) |
(defx86 rdseed.r32 "NFx 0F C7 /7"
((dest :rm gpr 32 :w))
(:asm "RDSEED r32") (:page "RDSEED") (:opsize 32) (:cpuid :rdseed)
(:unread "the name HW_NRND_GEN.ready"))
RDSEED r64
| Opcode | NFx REX.W + 0F C7 /7 |
|---|---|
| Operands | (dest :rm gpr 64 :w) |
(defx86 rdseed.r64 "NFx REX.W + 0F C7 /7"
((dest :rm gpr 64 :w))
(:asm "RDSEED r64") (:page "RDSEED") (:opsize 64) (:cpuid :rdseed)
(:unread "the name HW_NRND_GEN.ready"))
RDTSC
| Opcode | 0F 31 |
|---|
(defx86 rdtsc "0F 31"
()
(:asm "RDTSC") (:page "RDTSC") (:opsize 32)
(:unread "the name CR4.TSD"))
RDTSCP
| Opcode | 0F 01 F9 |
|---|
(defx86 rdtscp "0F 01 F9"
()
(:asm "RDTSCP") (:page "RDTSCP") (:opsize 32)
(:unread "the name CR4.TSD"))
RET
| Opcode | C3 |
|---|
(defx86 ret "C3"
()
(:asm "RET") (:page "RET") (:opsize 32)
(:unread "a condition in words: instruction = near return"))
RET
| Opcode | CB |
|---|
(defx86 ret~2 "CB"
()
(:asm "RET") (:page "RET") (:opsize 32)
(:unread "a condition in words: instruction = near return"))
RET imm16
| Opcode | C2 iw |
|---|---|
| Operands | (src :imm imm 16 :r :sext 32) |
(defx86 ret.imm16 "C2 iw"
((src :imm imm 16 :r :sext 32))
(:asm "RET imm16") (:page "RET") (:opsize 32)
(:unread "a condition in words: instruction = near return"))
RET imm16
| Opcode | CA iw |
|---|---|
| Operands | (src :imm imm 16 :r :sext 32) |
(defx86 ret.imm16~2 "CA iw"
((src :imm imm 16 :r :sext 32))
(:asm "RET imm16") (:page "RET") (:opsize 32)
(:unread "a condition in words: instruction = near return"))
RSM
| Opcode | 0F AA |
|---|
(defx86 rsm "0F AA"
()
(:asm "RSM") (:page "RSM") (:opsize 32)
(:unread "a statement: ReturnFromSMM"))
SAL r/m8, 1
| Opcode | D0 /4 |
|---|---|
| Operands | (dest :rm gpr 8 :rw :mem 8); (src :fixed one 8 :r) |
(defx86 sal.r/m8.1 "D0 /4"
((dest :rm gpr 8 :rw :mem 8) (src :fixed one 8 :r))
(:asm "SAL r/m8, 1") (:page "SAL/SAR/SHL/SHR") (:opsize 8)
(:undefined af)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq origdest dest)
(setq tempdest dest)
(unless (= 1 0)
(setq cf (bit-at (wrap 8 (ash tempdest (- 1 1))) 7)))
(setq tempcount 1)
(setq tempdest (wrap 8 (ash tempdest 1)))
(setq tempcount 0)
(setq of (logxor (bit-at tempdest 7) cf))
(setq dest tempdest)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 7))
(setq af (undefined 1))))
SAL r/m8, CL
| Opcode | D2 /4 |
|---|---|
| Operands | (dest :rm gpr 8 :rw :mem 8); (src :fixed gpr 8 :r :fixed 1) |
(defx86 sal.r/m8.cl "D2 /4"
((dest :rm gpr 8 :rw :mem 8) (src :fixed gpr 8 :r :fixed 1))
(:asm "SAL r/m8, CL") (:page "SAL/SAR/SHL/SHR") (:opsize 8)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 8 (ash tempdest (- tempcount 1))) 7)))
(setq tempdest (wrap 8 (ash tempdest tempcount)))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of (logxor (bit-at tempdest 7) cf)))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 7)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SAL r/m8, imm8
| Opcode | C0 /4 ib |
|---|---|
| Operands | (dest :rm gpr 8 :rw :mem 8); (src :imm imm 8 :r) |
(defx86 sal.r/m8.imm8 "C0 /4 ib"
((dest :rm gpr 8 :rw :mem 8) (src :imm imm 8 :r))
(:asm "SAL r/m8, imm8") (:page "SAL/SAR/SHL/SHR") (:opsize 8)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 8 (ash tempdest (- tempcount 1))) 7)))
(setq tempdest (wrap 8 (ash tempdest tempcount)))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of (logxor (bit-at tempdest 7) cf)))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 7)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SAL r/m16, 1
| Opcode | D1 /4 |
|---|---|
| Operands | (dest :rm gpr 16 :rw :mem 16); (src :fixed one 8 :r) |
(defx86 sal.r/m16.1 "D1 /4"
((dest :rm gpr 16 :rw :mem 16) (src :fixed one 8 :r))
(:asm "SAL r/m16, 1") (:page "SAL/SAR/SHL/SHR") (:opsize 16)
(:undefined af)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq origdest dest)
(setq tempdest dest)
(unless (= 1 0)
(setq cf (bit-at (wrap 16 (ash tempdest (- 1 1))) 15)))
(setq tempcount 1)
(setq tempdest (wrap 16 (ash tempdest 1)))
(setq tempcount 0)
(setq of (logxor (bit-at tempdest 15) cf))
(setq dest tempdest)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 15))
(setq af (undefined 1))))
SAL r/m16, CL
| Opcode | D3 /4 |
|---|---|
| Operands | (dest :rm gpr 16 :rw :mem 16); (src :fixed gpr 8 :r :fixed 1) |
(defx86 sal.r/m16.cl "D3 /4"
((dest :rm gpr 16 :rw :mem 16) (src :fixed gpr 8 :r :fixed 1))
(:asm "SAL r/m16, CL") (:page "SAL/SAR/SHL/SHR") (:opsize 16)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 16 (ash tempdest (- tempcount 1))) 15)))
(setq tempdest (wrap 16 (ash tempdest tempcount)))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of (logxor (bit-at tempdest 15) cf)))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 15)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SAL r/m16, imm8
| Opcode | C1 /4 ib |
|---|---|
| Operands | (dest :rm gpr 16 :rw :mem 16); (src :imm imm 8 :r :sext 16) |
(defx86 sal.r/m16.imm8 "C1 /4 ib"
((dest :rm gpr 16 :rw :mem 16) (src :imm imm 8 :r :sext 16))
(:asm "SAL r/m16, imm8") (:page "SAL/SAR/SHL/SHR") (:opsize 16)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 16 (ash tempdest (- tempcount 1))) 15)))
(setq tempdest (wrap 16 (ash tempdest tempcount)))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of (logxor (bit-at tempdest 15) cf)))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 15)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SAL r/m32, 1
| Opcode | D1 /4 |
|---|---|
| Operands | (dest :rm gpr 32 :rw :mem 32); (src :fixed one 8 :r) |
(defx86 sal.r/m32.1 "D1 /4"
((dest :rm gpr 32 :rw :mem 32) (src :fixed one 8 :r))
(:asm "SAL r/m32, 1") (:page "SAL/SAR/SHL/SHR") (:opsize 32)
(:undefined af)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq origdest dest)
(setq tempdest dest)
(unless (= 1 0)
(setq cf (bit-at (wrap 32 (ash tempdest (- 1 1))) 31)))
(setq tempcount 1)
(setq tempdest (wrap 32 (ash tempdest 1)))
(setq tempcount 0)
(setq of (logxor (bit-at tempdest 31) cf))
(setq dest tempdest)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 31))
(setq af (undefined 1))))
SAL r/m64, 1
| Opcode | REX.W + D1 /4 |
|---|---|
| Operands | (dest :rm gpr 64 :rw :mem 64); (src :fixed one 8 :r) |
(defx86 sal.r/m64.1 "REX.W + D1 /4"
((dest :rm gpr 64 :rw :mem 64) (src :fixed one 8 :r))
(:asm "SAL r/m64, 1") (:page "SAL/SAR/SHL/SHR") (:opsize 64)
(:undefined af)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq origdest dest)
(setq tempdest dest)
(unless (= 1 0)
(setq cf (bit-at (wrap 64 (ash tempdest (- 1 1))) 63)))
(setq tempcount 1)
(setq tempdest (wrap 64 (ash tempdest 1)))
(setq tempcount 0)
(setq of (logxor (bit-at tempdest 63) cf))
(setq dest tempdest)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 63))
(setq af (undefined 1))))
SAL r/m32, CL
| Opcode | D3 /4 |
|---|---|
| Operands | (dest :rm gpr 32 :rw :mem 32); (src :fixed gpr 8 :r :fixed 1) |
(defx86 sal.r/m32.cl "D3 /4"
((dest :rm gpr 32 :rw :mem 32) (src :fixed gpr 8 :r :fixed 1))
(:asm "SAL r/m32, CL") (:page "SAL/SAR/SHL/SHR") (:opsize 32)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 32 (ash tempdest (- tempcount 1))) 31)))
(setq tempdest (wrap 32 (ash tempdest tempcount)))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of (logxor (bit-at tempdest 31) cf)))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 31)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SAL r/m64, CL
| Opcode | REX.W + D3 /4 |
|---|---|
| Operands | (dest :rm gpr 64 :rw :mem 64); (src :fixed gpr 8 :r :fixed 1) |
(defx86 sal.r/m64.cl "REX.W + D3 /4"
((dest :rm gpr 64 :rw :mem 64) (src :fixed gpr 8 :r :fixed 1))
(:asm "SAL r/m64, CL") (:page "SAL/SAR/SHL/SHR") (:opsize 64)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 63))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 64 (ash tempdest (- tempcount 1))) 63)))
(setq tempdest (wrap 64 (ash tempdest tempcount)))
(setq tempcount 0)
(if (= (logand src 63) 1)
(progn
(setq of (logxor (bit-at tempdest 63) cf)))
(progn
(unless (= (logand src 63) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 63) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 63)))
(unless (= (logand src 63) 0)
(setq af (undefined 1)))))
SAL r/m32, imm8
| Opcode | C1 /4 ib |
|---|---|
| Operands | (dest :rm gpr 32 :rw :mem 32); (src :imm imm 8 :r :sext 32) |
(defx86 sal.r/m32.imm8 "C1 /4 ib"
((dest :rm gpr 32 :rw :mem 32) (src :imm imm 8 :r :sext 32))
(:asm "SAL r/m32, imm8") (:page "SAL/SAR/SHL/SHR") (:opsize 32)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 32 (ash tempdest (- tempcount 1))) 31)))
(setq tempdest (wrap 32 (ash tempdest tempcount)))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of (logxor (bit-at tempdest 31) cf)))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 31)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SAL r/m64, imm8
| Opcode | REX.W + C1 /4 ib |
|---|---|
| Operands | (dest :rm gpr 64 :rw :mem 64); (src :imm imm 8 :r :sext 64) |
(defx86 sal.r/m64.imm8 "REX.W + C1 /4 ib"
((dest :rm gpr 64 :rw :mem 64) (src :imm imm 8 :r :sext 64))
(:asm "SAL r/m64, imm8") (:page "SAL/SAR/SHL/SHR") (:opsize 64)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 63))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 64 (ash tempdest (- tempcount 1))) 63)))
(setq tempdest (wrap 64 (ash tempdest tempcount)))
(setq tempcount 0)
(if (= (logand src 63) 1)
(progn
(setq of (logxor (bit-at tempdest 63) cf)))
(progn
(unless (= (logand src 63) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 63) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 63)))
(unless (= (logand src 63) 0)
(setq af (undefined 1)))))
SAR r/m8, 1
| Opcode | D0 /7 |
|---|---|
| Operands | (dest :rm gpr 8 :rw :mem 8); (src :fixed one 8 :r) |
(defx86 sar.r/m8.1 "D0 /7"
((dest :rm gpr 8 :rw :mem 8) (src :fixed one 8 :r))
(:asm "SAR r/m8, 1") (:page "SAL/SAR/SHL/SHR") (:opsize 8)
(:undefined af)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq origdest dest)
(setq tempdest dest)
(unless (= 1 0)
(setq cf (bit-at (wrap 8 (ash (sext 8 tempdest) (- 1 1))) 0)))
(setq tempcount 1)
(setq tempdest (wrap 8 (ash (sext 8 tempdest) (- 1))))
(setq tempcount 0)
(setq of 0)
(setq dest tempdest)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 7))
(setq af (undefined 1))))
SAR r/m8, CL
| Opcode | D2 /7 |
|---|---|
| Operands | (dest :rm gpr 8 :rw :mem 8); (src :fixed gpr 8 :r :fixed 1) |
(defx86 sar.r/m8.cl "D2 /7"
((dest :rm gpr 8 :rw :mem 8) (src :fixed gpr 8 :r :fixed 1))
(:asm "SAR r/m8, CL") (:page "SAL/SAR/SHL/SHR") (:opsize 8)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 8 (ash (sext 8 tempdest) (- 1 tempcount))) 0)))
(setq tempdest (wrap 8 (ash (sext 8 tempdest) (- tempcount))))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of 0))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 7)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SAR r/m8, imm8
| Opcode | C0 /7 ib |
|---|---|
| Operands | (dest :rm gpr 8 :rw :mem 8); (src :imm imm 8 :r) |
(defx86 sar.r/m8.imm8 "C0 /7 ib"
((dest :rm gpr 8 :rw :mem 8) (src :imm imm 8 :r))
(:asm "SAR r/m8, imm8") (:page "SAL/SAR/SHL/SHR") (:opsize 8)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 8 (ash (sext 8 tempdest) (- 1 tempcount))) 0)))
(setq tempdest (wrap 8 (ash (sext 8 tempdest) (- tempcount))))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of 0))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 7)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SAR r/m16,1
| Opcode | D1 /7 |
|---|---|
| Operands | (dest :rm gpr 16 :rw :mem 16); (src :fixed one 8 :r) |
(defx86 sar.r/m16.1 "D1 /7"
((dest :rm gpr 16 :rw :mem 16) (src :fixed one 8 :r))
(:asm "SAR r/m16,1") (:page "SAL/SAR/SHL/SHR") (:opsize 16)
(:undefined af)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq origdest dest)
(setq tempdest dest)
(unless (= 1 0)
(setq cf (bit-at (wrap 16 (ash (sext 16 tempdest) (- 1 1))) 0)))
(setq tempcount 1)
(setq tempdest (wrap 16 (ash (sext 16 tempdest) (- 1))))
(setq tempcount 0)
(setq of 0)
(setq dest tempdest)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 15))
(setq af (undefined 1))))
SAR r/m16, CL
| Opcode | D3 /7 |
|---|---|
| Operands | (dest :rm gpr 16 :rw :mem 16); (src :fixed gpr 8 :r :fixed 1) |
(defx86 sar.r/m16.cl "D3 /7"
((dest :rm gpr 16 :rw :mem 16) (src :fixed gpr 8 :r :fixed 1))
(:asm "SAR r/m16, CL") (:page "SAL/SAR/SHL/SHR") (:opsize 16)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 16 (ash (sext 16 tempdest) (- 1 tempcount))) 0)))
(setq tempdest (wrap 16 (ash (sext 16 tempdest) (- tempcount))))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of 0))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 15)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SAR r/m16, imm8
| Opcode | C1 /7 ib |
|---|---|
| Operands | (dest :rm gpr 16 :rw :mem 16); (src :imm imm 8 :r :sext 16) |
(defx86 sar.r/m16.imm8 "C1 /7 ib"
((dest :rm gpr 16 :rw :mem 16) (src :imm imm 8 :r :sext 16))
(:asm "SAR r/m16, imm8") (:page "SAL/SAR/SHL/SHR") (:opsize 16)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 16 (ash (sext 16 tempdest) (- 1 tempcount))) 0)))
(setq tempdest (wrap 16 (ash (sext 16 tempdest) (- tempcount))))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of 0))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 15)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SAR r/m32, 1
| Opcode | D1 /7 |
|---|---|
| Operands | (dest :rm gpr 32 :rw :mem 32); (src :fixed one 8 :r) |
(defx86 sar.r/m32.1 "D1 /7"
((dest :rm gpr 32 :rw :mem 32) (src :fixed one 8 :r))
(:asm "SAR r/m32, 1") (:page "SAL/SAR/SHL/SHR") (:opsize 32)
(:undefined af)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq origdest dest)
(setq tempdest dest)
(unless (= 1 0)
(setq cf (bit-at (wrap 32 (ash (sext 32 tempdest) (- 1 1))) 0)))
(setq tempcount 1)
(setq tempdest (wrap 32 (ash (sext 32 tempdest) (- 1))))
(setq tempcount 0)
(setq of 0)
(setq dest tempdest)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 31))
(setq af (undefined 1))))
SAR r/m64, 1
| Opcode | REX.W + D1 /7 |
|---|---|
| Operands | (dest :rm gpr 64 :rw :mem 64); (src :fixed one 8 :r) |
(defx86 sar.r/m64.1 "REX.W + D1 /7"
((dest :rm gpr 64 :rw :mem 64) (src :fixed one 8 :r))
(:asm "SAR r/m64, 1") (:page "SAL/SAR/SHL/SHR") (:opsize 64)
(:undefined af)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq origdest dest)
(setq tempdest dest)
(unless (= 1 0)
(setq cf (bit-at (wrap 64 (ash (sext 64 tempdest) (- 1 1))) 0)))
(setq tempcount 1)
(setq tempdest (wrap 64 (ash (sext 64 tempdest) (- 1))))
(setq tempcount 0)
(setq of 0)
(setq dest tempdest)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 63))
(setq af (undefined 1))))
SAR r/m32, CL
| Opcode | D3 /7 |
|---|---|
| Operands | (dest :rm gpr 32 :rw :mem 32); (src :fixed gpr 8 :r :fixed 1) |
(defx86 sar.r/m32.cl "D3 /7"
((dest :rm gpr 32 :rw :mem 32) (src :fixed gpr 8 :r :fixed 1))
(:asm "SAR r/m32, CL") (:page "SAL/SAR/SHL/SHR") (:opsize 32)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 32 (ash (sext 32 tempdest) (- 1 tempcount))) 0)))
(setq tempdest (wrap 32 (ash (sext 32 tempdest) (- tempcount))))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of 0))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 31)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SAR r/m64, CL
| Opcode | REX.W + D3 /7 |
|---|---|
| Operands | (dest :rm gpr 64 :rw :mem 64); (src :fixed gpr 8 :r :fixed 1) |
(defx86 sar.r/m64.cl "REX.W + D3 /7"
((dest :rm gpr 64 :rw :mem 64) (src :fixed gpr 8 :r :fixed 1))
(:asm "SAR r/m64, CL") (:page "SAL/SAR/SHL/SHR") (:opsize 64)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 63))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 64 (ash (sext 64 tempdest) (- 1 tempcount))) 0)))
(setq tempdest (wrap 64 (ash (sext 64 tempdest) (- tempcount))))
(setq tempcount 0)
(if (= (logand src 63) 1)
(progn
(setq of 0))
(progn
(unless (= (logand src 63) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 63) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 63)))
(unless (= (logand src 63) 0)
(setq af (undefined 1)))))
SAR r/m32, imm8
| Opcode | C1 /7 ib |
|---|---|
| Operands | (dest :rm gpr 32 :rw :mem 32); (src :imm imm 8 :r :sext 32) |
(defx86 sar.r/m32.imm8 "C1 /7 ib"
((dest :rm gpr 32 :rw :mem 32) (src :imm imm 8 :r :sext 32))
(:asm "SAR r/m32, imm8") (:page "SAL/SAR/SHL/SHR") (:opsize 32)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 32 (ash (sext 32 tempdest) (- 1 tempcount))) 0)))
(setq tempdest (wrap 32 (ash (sext 32 tempdest) (- tempcount))))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of 0))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 31)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SAR r/m64, imm8
| Opcode | REX.W + C1 /7 ib |
|---|---|
| Operands | (dest :rm gpr 64 :rw :mem 64); (src :imm imm 8 :r :sext 64) |
(defx86 sar.r/m64.imm8 "REX.W + C1 /7 ib"
((dest :rm gpr 64 :rw :mem 64) (src :imm imm 8 :r :sext 64))
(:asm "SAR r/m64, imm8") (:page "SAL/SAR/SHL/SHR") (:opsize 64)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 63))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 64 (ash (sext 64 tempdest) (- 1 tempcount))) 0)))
(setq tempdest (wrap 64 (ash (sext 64 tempdest) (- tempcount))))
(setq tempcount 0)
(if (= (logand src 63) 1)
(progn
(setq of 0))
(progn
(unless (= (logand src 63) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 63) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 63)))
(unless (= (logand src 63) 0)
(setq af (undefined 1)))))
SHL r/m8, 1
| Opcode | D0 /4 |
|---|---|
| Operands | (dest :rm gpr 8 :rw :mem 8); (src :fixed one 8 :r) |
(defx86 shl.r/m8.1 "D0 /4"
((dest :rm gpr 8 :rw :mem 8) (src :fixed one 8 :r))
(:asm "SHL r/m8, 1") (:page "SAL/SAR/SHL/SHR") (:opsize 8)
(:undefined af)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq origdest dest)
(setq tempdest dest)
(unless (= 1 0)
(setq cf (bit-at (wrap 8 (ash tempdest (- 1 1))) 7)))
(setq tempcount 1)
(setq tempdest (wrap 8 (ash tempdest 1)))
(setq tempcount 0)
(setq of (logxor (bit-at tempdest 7) cf))
(setq dest tempdest)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 7))
(setq af (undefined 1))))
SHL r/m8, CL
| Opcode | D2 /4 |
|---|---|
| Operands | (dest :rm gpr 8 :rw :mem 8); (src :fixed gpr 8 :r :fixed 1) |
(defx86 shl.r/m8.cl "D2 /4"
((dest :rm gpr 8 :rw :mem 8) (src :fixed gpr 8 :r :fixed 1))
(:asm "SHL r/m8, CL") (:page "SAL/SAR/SHL/SHR") (:opsize 8)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 8 (ash tempdest (- tempcount 1))) 7)))
(setq tempdest (wrap 8 (ash tempdest tempcount)))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of (logxor (bit-at tempdest 7) cf)))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 7)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SHL r/m8, imm8
| Opcode | C0 /4 ib |
|---|---|
| Operands | (dest :rm gpr 8 :rw :mem 8); (src :imm imm 8 :r) |
(defx86 shl.r/m8.imm8 "C0 /4 ib"
((dest :rm gpr 8 :rw :mem 8) (src :imm imm 8 :r))
(:asm "SHL r/m8, imm8") (:page "SAL/SAR/SHL/SHR") (:opsize 8)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 8 (ash tempdest (- tempcount 1))) 7)))
(setq tempdest (wrap 8 (ash tempdest tempcount)))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of (logxor (bit-at tempdest 7) cf)))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 7)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SHL r/m16,1
| Opcode | D1 /4 |
|---|---|
| Operands | (dest :rm gpr 16 :rw :mem 16); (src :fixed one 8 :r) |
(defx86 shl.r/m16.1 "D1 /4"
((dest :rm gpr 16 :rw :mem 16) (src :fixed one 8 :r))
(:asm "SHL r/m16,1") (:page "SAL/SAR/SHL/SHR") (:opsize 16)
(:undefined af)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq origdest dest)
(setq tempdest dest)
(unless (= 1 0)
(setq cf (bit-at (wrap 16 (ash tempdest (- 1 1))) 15)))
(setq tempcount 1)
(setq tempdest (wrap 16 (ash tempdest 1)))
(setq tempcount 0)
(setq of (logxor (bit-at tempdest 15) cf))
(setq dest tempdest)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 15))
(setq af (undefined 1))))
SHL r/m16, CL
| Opcode | D3 /4 |
|---|---|
| Operands | (dest :rm gpr 16 :rw :mem 16); (src :fixed gpr 8 :r :fixed 1) |
(defx86 shl.r/m16.cl "D3 /4"
((dest :rm gpr 16 :rw :mem 16) (src :fixed gpr 8 :r :fixed 1))
(:asm "SHL r/m16, CL") (:page "SAL/SAR/SHL/SHR") (:opsize 16)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 16 (ash tempdest (- tempcount 1))) 15)))
(setq tempdest (wrap 16 (ash tempdest tempcount)))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of (logxor (bit-at tempdest 15) cf)))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 15)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SHL r/m16, imm8
| Opcode | C1 /4 ib |
|---|---|
| Operands | (dest :rm gpr 16 :rw :mem 16); (src :imm imm 8 :r :sext 16) |
(defx86 shl.r/m16.imm8 "C1 /4 ib"
((dest :rm gpr 16 :rw :mem 16) (src :imm imm 8 :r :sext 16))
(:asm "SHL r/m16, imm8") (:page "SAL/SAR/SHL/SHR") (:opsize 16)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 16 (ash tempdest (- tempcount 1))) 15)))
(setq tempdest (wrap 16 (ash tempdest tempcount)))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of (logxor (bit-at tempdest 15) cf)))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 15)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SHL r/m32,1
| Opcode | D1 /4 |
|---|---|
| Operands | (dest :rm gpr 32 :rw :mem 32); (src :fixed one 8 :r) |
(defx86 shl.r/m32.1 "D1 /4"
((dest :rm gpr 32 :rw :mem 32) (src :fixed one 8 :r))
(:asm "SHL r/m32,1") (:page "SAL/SAR/SHL/SHR") (:opsize 32)
(:undefined af)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq origdest dest)
(setq tempdest dest)
(unless (= 1 0)
(setq cf (bit-at (wrap 32 (ash tempdest (- 1 1))) 31)))
(setq tempcount 1)
(setq tempdest (wrap 32 (ash tempdest 1)))
(setq tempcount 0)
(setq of (logxor (bit-at tempdest 31) cf))
(setq dest tempdest)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 31))
(setq af (undefined 1))))
SHL r/m64,1
| Opcode | REX.W + D1 /4 |
|---|---|
| Operands | (dest :rm gpr 64 :rw :mem 64); (src :fixed one 8 :r) |
(defx86 shl.r/m64.1 "REX.W + D1 /4"
((dest :rm gpr 64 :rw :mem 64) (src :fixed one 8 :r))
(:asm "SHL r/m64,1") (:page "SAL/SAR/SHL/SHR") (:opsize 64)
(:undefined af)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq origdest dest)
(setq tempdest dest)
(unless (= 1 0)
(setq cf (bit-at (wrap 64 (ash tempdest (- 1 1))) 63)))
(setq tempcount 1)
(setq tempdest (wrap 64 (ash tempdest 1)))
(setq tempcount 0)
(setq of (logxor (bit-at tempdest 63) cf))
(setq dest tempdest)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 63))
(setq af (undefined 1))))
SHL r/m32, CL
| Opcode | D3 /4 |
|---|---|
| Operands | (dest :rm gpr 32 :rw :mem 32); (src :fixed gpr 8 :r :fixed 1) |
(defx86 shl.r/m32.cl "D3 /4"
((dest :rm gpr 32 :rw :mem 32) (src :fixed gpr 8 :r :fixed 1))
(:asm "SHL r/m32, CL") (:page "SAL/SAR/SHL/SHR") (:opsize 32)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 32 (ash tempdest (- tempcount 1))) 31)))
(setq tempdest (wrap 32 (ash tempdest tempcount)))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of (logxor (bit-at tempdest 31) cf)))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 31)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SHL r/m64, CL
| Opcode | REX.W + D3 /4 |
|---|---|
| Operands | (dest :rm gpr 64 :rw :mem 64); (src :fixed gpr 8 :r :fixed 1) |
(defx86 shl.r/m64.cl "REX.W + D3 /4"
((dest :rm gpr 64 :rw :mem 64) (src :fixed gpr 8 :r :fixed 1))
(:asm "SHL r/m64, CL") (:page "SAL/SAR/SHL/SHR") (:opsize 64)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 63))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 64 (ash tempdest (- tempcount 1))) 63)))
(setq tempdest (wrap 64 (ash tempdest tempcount)))
(setq tempcount 0)
(if (= (logand src 63) 1)
(progn
(setq of (logxor (bit-at tempdest 63) cf)))
(progn
(unless (= (logand src 63) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 63) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 63)))
(unless (= (logand src 63) 0)
(setq af (undefined 1)))))
SHL r/m32, imm8
| Opcode | C1 /4 ib |
|---|---|
| Operands | (dest :rm gpr 32 :rw :mem 32); (src :imm imm 8 :r :sext 32) |
(defx86 shl.r/m32.imm8 "C1 /4 ib"
((dest :rm gpr 32 :rw :mem 32) (src :imm imm 8 :r :sext 32))
(:asm "SHL r/m32, imm8") (:page "SAL/SAR/SHL/SHR") (:opsize 32)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 32 (ash tempdest (- tempcount 1))) 31)))
(setq tempdest (wrap 32 (ash tempdest tempcount)))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of (logxor (bit-at tempdest 31) cf)))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 31)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SHL r/m64, imm8
| Opcode | REX.W + C1 /4 ib |
|---|---|
| Operands | (dest :rm gpr 64 :rw :mem 64); (src :imm imm 8 :r :sext 64) |
(defx86 shl.r/m64.imm8 "REX.W + C1 /4 ib"
((dest :rm gpr 64 :rw :mem 64) (src :imm imm 8 :r :sext 64))
(:asm "SHL r/m64, imm8") (:page "SAL/SAR/SHL/SHR") (:opsize 64)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 63))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (wrap 64 (ash tempdest (- tempcount 1))) 63)))
(setq tempdest (wrap 64 (ash tempdest tempcount)))
(setq tempcount 0)
(if (= (logand src 63) 1)
(progn
(setq of (logxor (bit-at tempdest 63) cf)))
(progn
(unless (= (logand src 63) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 63) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 63)))
(unless (= (logand src 63) 0)
(setq af (undefined 1)))))
SHR r/m8, 1
| Opcode | D0 /5 |
|---|---|
| Operands | (dest :rm gpr 8 :rw :mem 8); (src :fixed one 8 :r) |
(defx86 shr.r/m8.1 "D0 /5"
((dest :rm gpr 8 :rw :mem 8) (src :fixed one 8 :r))
(:asm "SHR r/m8, 1") (:page "SAL/SAR/SHL/SHR") (:opsize 8)
(:undefined af)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq origdest dest)
(setq tempdest dest)
(unless (= 1 0)
(setq cf (bit-at (ash tempdest (- 1 1)) 0)))
(setq tempcount 1)
(setq tempdest (ash tempdest (- 1)))
(setq tempcount 0)
(setq of (bit-at origdest 7))
(setq dest tempdest)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 7))
(setq af (undefined 1))))
SHR r/m8, CL
| Opcode | D2 /5 |
|---|---|
| Operands | (dest :rm gpr 8 :rw :mem 8); (src :fixed gpr 8 :r :fixed 1) |
(defx86 shr.r/m8.cl "D2 /5"
((dest :rm gpr 8 :rw :mem 8) (src :fixed gpr 8 :r :fixed 1))
(:asm "SHR r/m8, CL") (:page "SAL/SAR/SHL/SHR") (:opsize 8)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (ash tempdest (- 1 tempcount)) 0)))
(setq tempdest (ash tempdest (- tempcount)))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of (bit-at origdest 7)))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 7)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SHR r/m8, imm8
| Opcode | C0 /5 ib |
|---|---|
| Operands | (dest :rm gpr 8 :rw :mem 8); (src :imm imm 8 :r) |
(defx86 shr.r/m8.imm8 "C0 /5 ib"
((dest :rm gpr 8 :rw :mem 8) (src :imm imm 8 :r))
(:asm "SHR r/m8, imm8") (:page "SAL/SAR/SHL/SHR") (:opsize 8)
(:undefined af of)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq tempcount (logand src 31))
(setq origdest dest)
(setq tempdest dest)
(unless (= tempcount 0)
(setq cf (bit-at (ash tempdest (- 1 tempcount)) 0)))
(setq tempdest (ash tempdest (- tempcount)))
(setq tempcount 0)
(if (= (logand src 31) 1)
(progn
(setq of (bit-at origdest 7)))
(progn
(unless (= (logand src 31) 0)
(setq of (undefined 1)))))
(setq dest tempdest)
(unless (= (logand src 31) 0)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 7)))
(unless (= (logand src 31) 0)
(setq af (undefined 1)))))
SHR r/m16, 1
| Opcode | D1 /5 |
|---|---|
| Operands | (dest :rm gpr 16 :rw :mem 16); (src :fixed one 8 :r) |
(defx86 shr.r/m16.1 "D1 /5"
((dest :rm gpr 16 :rw :mem 16) (src :fixed one 8 :r))
(:asm "SHR r/m16, 1") (:page "SAL/SAR/SHL/SHR") (:opsize 16)
(:undefined af)
(let ((tempcount 0) (origdest 0) (tempdest 0))
(setq origdest dest)
(setq tempdest dest)
(unless (= 1 0)
(setq cf (bit-at (ash tempdest (- 1 1)) 0)))
(setq tempcount 1)
(setq tempdest (ash tempdest (- 1)))
(setq tempcount 0)
(setq of (bit-at origdest 15))
(setq dest tempdest)
(setq pf (even-parity 8 dest) zf (b2i (= dest 0)) sf (bit-at dest 15))
(setq af (undefined 1))))
Made from xspe at b2fac33349db by tools/gen-xspe.py. xspe is GPL-3.0-or-later.