home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / ref / stdrom.lib < prev    next >
Text File  |  2006-10-19  |  811b  |  44 lines

  1. ;This is a macro library for standard ROM
  2. ;Calls Jumps and returns from within an
  3. ;Option ROM
  4. ;The macro format and file name are
  5. ;Compatible with Digital Research's RMAC and
  6. ;MAC Assemblers
  7. ;If you are using a linker to link to the ROMHD.ASM
  8. ;File then you will have to declare STDON as an EXTRN
  9. ;and Decalre STDON within the ROMHD.ASM file as a 
  10. ;PUBLIC.
  11.  
  12. ;Macro to call a Standard ROM routine
  13. ;Syntax:
  14. ;    SCALL    4b44h
  15.  
  16. SCALL    MACRO    ADDRESS
  17.     RST    6
  18.     DW    ADDRESS
  19.     ENDM
  20.  
  21. ;Macro to jump to a Standard ROM routine
  22. ;Syntax:
  23. ;    SJMP    5797h
  24.  
  25. SJMP    MACRO    ADDRESS
  26. ;Optional for linkers
  27. ;    EXTRN    STDON
  28.     PUSH    H
  29.     LXI    H,ADDRESS
  30.     XTHL
  31.     JMP    STDON
  32.     ENDM
  33.  
  34. ;Macro to return to a Standard ROM Routine
  35. ;Syntax:
  36. ;    SRET
  37.  
  38. STDRET    MACRO
  39. ;Optional for linking version
  40. ;    EXTRN    STDON
  41.     JMP    STDON
  42.     ENDM
  43.  
  44.