; INTEL 8085 MACRO LIBRARY ; ; THE SIM (SET INTERRUPT MASK), ; AND RIM (READ INTERRUPT MASK) ; ARE DEFINED BY THE FOLLOWING MACROS: ; SIM MACRO ;; SET INTERRUPT MASK FROM REG-A VALUE DB 30H ;;OPCODE FOR SIM ENDM ; RIM MACRO ;; READ INTERRUPT MASK TO REG-A DB 20H ;;OPCODE FOR RIM ENDM ; ; ; ; THE REMAINING OPCODES ARE OFFICIALLY NON-SUPPORTED ; BUT EXIST IN ALL KNOWN SOURCES OF THE 8085 CHIP. ; DSUB MACRO ;; (HL) <- (HL)-(BC) ;; AFFECTS ALL FLAGS DB 08H ;;OPCODE FOR DSUB ENDM ; ARHL MACRO ;; SHIFT HL RIGHT ONE BIT - ;; H7 IS DUPLICATED ;; L0 IS SHIFTED INTO CY ;; ONLY CY AFFECTED DB 10H ENDM ; RDEL MACRO ;; ROTATE DE LEFT ONE BIT THRU CY ;; E0 RECEIVES CY ;; CY RECEIVES D7 ;; CY AND V AFFECTED DB 18H ENDM ; LDHI MACRO QQ ;; (DE) <- (HL)+(INST BYTE 2) ;; NO FLAGS AFFECTED DB 28H,QQ ENDM ; LDSI MACRO QQ ;; (DE) <- (SP)+(INST BYTE 2) ;; NO FLAGS AFFECTED DB 38H,QQ ENDM ; SHLX MACRO ;; ((DE)) <- (HL) DB 0D9H ENDM ; LHLX MACRO ;; (HL) <- ((DE)) DB 0EDH ENDM ; RSTV MACRO ;; RESTART 40H ON V (OVERFLOW) DB 0C8H ENDM ; JX5 MACRO AA ;; JUMP IF X5 SET DB 0FDH DW AA ENDM ; JNX5 MACRO AA ;; JUMP IF NOT X5 SET DB 0DDH DW AA ENDM