Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
RET Instructions
 Summary Key Example                    Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
 11000011
──────────────────┬─────────────────────────┬───────────────────────────────
 RET              │ ret                     │ 88/86 16 (88=20)
 RETN             │ retn                    │   286 11+m
                  │                         │   386 10+m
                  │                         │   486 5
──────────────────┴─────────────────────────┴───────────────────────────────
 
 11000010    data (2)
──────────────────┬─────────────────────────┬───────────────────────────────
 RET   immed16    │ ret   2                 │ 88/86 20 (88=24)
 RETN  immed16    │ retn  8                 │   286 11+m
                  │                         │   386 10+m
                  │                         │   486 5
──────────────────┴─────────────────────────┴───────────────────────────────
 
 11001011
──────────────────┬─────────────────────────┬───────────────────────────────
 RET              │ ret                     │ 88/86 26 (88=34)
 RETF             │ retf                    │   286 15+m,pm=25+m,55*
                  │                         │   386 18+m,pm=32+m,62*
                  │                         │   486 13,pm=18,33*
──────────────────┴─────────────────────────┴───────────────────────────────
 
 11001010    data (2)
──────────────────┬─────────────────────────┬───────────────────────────────
 RET   immed16    │ ret   8                 │ 88/86 25 (88=33)
 RETF  immed16    │ retf  32                │   286 15+m,pm=25+m,55*
                  │                         │   386 18+m,pm=32+m,68*
                  │                         │   486 14,pm=17,33*
──────────────────┴─────────────────────────┴───────────────────────────────
  * The first protected-mode timing is for a return to the same
    privilege level; the second is for a return to a lesser privilege
    level.
                                    -♦-