home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / djgpp / emu387 / e16.cc < prev    next >
Encoding:
C/C++ Source or Header  |  1991-04-25  |  332 b   |  30 lines

  1. #include "emu.h"
  2. #include "rmov.h"
  3.  
  4. void fdecstp()
  5. {
  6.   top--;
  7. }
  8.  
  9. void fincstp()
  10. {
  11.   top++;
  12. }
  13.  
  14. FUNC emu_16_table[] = {
  15.   emu_bad, emu_bad, emu_bad, emu_bad, emu_bad, emu_bad, fdecstp, fincstp
  16. };
  17.  
  18. void emu_16()
  19. {
  20.   if (modrm > 0277)
  21.   {
  22.     (emu_16_table[modrm&7])();
  23.   }
  24.   else
  25.   {
  26.     emu_bad();
  27.   }
  28. }
  29.  
  30.