home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / ENTERPRS / CPM / UTILS / S / ZEN2.LBR / EXTRAOPS.LIB < prev    next >
Text File  |  2000-06-30  |  896b  |  63 lines

  1.  
  2. ;**    EXTRA OPCODE DEFINITIONS
  3. ;
  4.  
  5. ;    JMP IMMEDIATE
  6.  
  7.     CODEMACRO    JMPI    A:D
  8.       DB    0E9H
  9.       RELW    A
  10.     ENDM
  11.  
  12. ;    JMPF IMMEDIATE
  13.  
  14.     CODEMACRO    JMPFI    A:D,B:D
  15.       DB    0EAH
  16.       DW    A
  17.       DW    B
  18.     ENDM
  19.  
  20. ;    CALL IMMEDIATE
  21.  
  22.     CODEMACRO    CALLI    A:D
  23.       DB    0E8H
  24.       RELW    A
  25.     ENDM
  26.  
  27. ;    CALLF IMMEDIATE
  28.  
  29.     CODEMACRO    CALLFI    A:D,B:D
  30.       DB    09AH
  31.       DW    A
  32.       DW    B
  33.     ENDM
  34.  
  35. ;    PUSH ALL REGS (EXCEPT SP,SS,CS)
  36.  
  37.     CODEMACRO    PUSHA
  38.       DB    050H            ;PUSH AX
  39.       DB    053H            ;PUSH BX
  40.       DB    051H            ;PUSH CX
  41.       DB    052H            ;PUSH DX
  42.       DB    055H            ;PUSH BP
  43.       DB    056H            ;PUSH SI
  44.       DB    057H            ;PUSH DI
  45.       DB    01EH            ;PUSH DS
  46.       DB    006H            ;PUSH ES
  47.     ENDM
  48.  
  49. ;    POP ALL REGS (USED AFTER 'PUSHA')
  50.  
  51.     CODEMACRO    POPA
  52.       DB    007H            ;POP ES
  53.       DB    01FH            ;POP DS
  54.       DB    05FH            ;POP DI
  55.       DB    05EH            ;POP SI
  56.       DB    05DH            ;POP BP
  57.       DB    05AH            ;POP DX
  58.       DB    059H            ;POP CX
  59.       DB    05BH            ;POP BX
  60.       DB    058H            ;POP AX
  61.     ENDM
  62.  
  63.