Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
SUB Instruction
 Summary Key Example                    Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
 001010dw    mod,reg,r/m      disp (0, 1, or 2)
───────────────────┬───────────────────────────┬────────────────────────────
 SUB  reg,reg      │ sub    ax,bx              │ 88/86 3
                   │ sub    bh,dh              │   286 2
                   │                           │   386 2
                   │                           │   486 1
───────────────────┼───────────────────────────┼────────────────────────────
 SUB  mem,reg      │ sub    tally,bx           │ 88/86 16+EA (W88=24+EA)
                   │ sub    array[di],bl       │   286 7
                   │                           │   386 6
                   │                           │   486 3
───────────────────┼───────────────────────────┼────────────────────────────
 SUB  reg,mem      │ sub    cx,discard         │ 88/86 9+EA (W88=13+EA)
                   │ sub    al,[bx]            │   286 7
                   │                           │   386 7
                   │                           │   486 2
───────────────────┴───────────────────────────┴────────────────────────────
 
 100000sw    mod,101,r/m      disp (0, 1, or 2)     data (1 or 2)
───────────────────┬───────────────────────────┬────────────────────────────
 SUB  reg,immed    │ sub    dx,45              │ 88/86 4
                   │ sub    bl,7               │   286 3
                   │                           │   386 2
                   │                           │   486 1
───────────────────┼───────────────────────────┼────────────────────────────
 SUB  mem,immed    │ sub    total,4000         │ 88/86 17+EA (W88=25+EA)
                   │ sub    BYTE PTR [bx+di],2 │   286 7
                   │                           │   386 7
                   │                           │   486 3
───────────────────┴───────────────────────────┴────────────────────────────
 
 0010110w    data (1 or 2)
───────────────────┬───────────────────────────┬────────────────────────────
 SUB  accum,immed  │ sub    ax,32000           │ 88/86 4
                   │                           │   286 3
                   │                           │   386 2
                   │                           │   486 1
───────────────────┴───────────────────────────┴────────────────────────────
                                    -♦-