Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
TEST Instruction
 Summary Key Example                    Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
 1000010w    mod,reg,r/m      disp (0, 1, or 2)
───────────────────┬──────────────────────────┬─────────────────────────────
 TEST  reg,reg     │ test   dx,bx             │ 88/86 3
                   │ test   bl,ch             │   286 2
                   │                          │   386 2
                   │                          │   486 1
───────────────────┼──────────────────────────┼─────────────────────────────
 TEST  mem,reg     │ test   dx,flags          │ 88/86 9+EA (W88=13+EA)
 TEST  reg,mem*    │ test   bl,bitarray[bx]   │   286 6
                   │                          │   386 5
                   │                          │   486 2
───────────────────┴──────────────────────────┴─────────────────────────────
 
 
 1111011w    mod,000,r/m      disp (0, 1, or 2)     data (1 or 2)
───────────────────┬──────────────────────────┬─────────────────────────────
 TEST  reg,immed   │ test   cx,30h            │ 88/86 5
                   │ test   cl,1011b          │   286 3
                   │                          │   386 2
                   │                          │   486 1
───────────────────┼──────────────────────────┼─────────────────────────────
 TEST  mem,immed   │ test   masker,1          │ 88/86 11+EA
                   │ test   BYTE PTR [bx],03h │   286 6
                   │                          │   386 5
                   │                          │   486 2
───────────────────┴──────────────────────────┴─────────────────────────────
 
 1010100w    data (1 or 2)
───────────────────┬──────────────────────────┬─────────────────────────────
 TEST  accum,immed │ test   ax,90h            │ 88/86 4
                   │                          │   286 3
                   │                          │   386 2
                   │                          │   486 1
───────────────────┴──────────────────────────┴─────────────────────────────
  * The assembler transposes TEST reg,mem so that it is encoded as
    TEST mem,reg.
                                    -♦-