aboutsummaryrefslogtreecommitdiff
path: root/sts/ia32/bitwise.sts
blob: 205e61890944eec8e888f4abc869c1c9575e49ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
defasm xor
    # 5b ?'                             ; pop ebx
    # 58 ?'                             ; pop eax
    # 31 ?' # d8 ?'                     ; xor eax, ebx
    # 50 ?'                             ; push eax
next

defasm and
    # 5b ?'                             ; pop ebx
    # 58 ?'                             ; pop eax
    # 21 ?' # d8 ?'                     ; and eax, ebx
    # 50 ?'                             ; push eax
next

defasm shr
    # 59 ?'                             ; pop ecx
    # 58 ?'                             ; pop eax
    # d3 ?' # e8 ?'                     ; shr eax, cl
    # 50 ?'                             ; push eax
next

defasm shl
    # 59 ?'                             ; pop ecx
    # 58 ?'                             ; pop eax
    # d3 ?' # e0 ?'                     ; shl eax, cl
    # 50 ?'                             ; push eax
next