home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 2
/
FFMCD02.bin
/
new
/
misc
/
emu
/
z80
/
extern_instr.a
< prev
next >
Wrap
Text File
|
1993-12-21
|
4KB
|
160 lines
** This file compiles to object code, to be linked along with the object
** code of Z80.a, if that was compiled with the 'generic object' option.
** VERBOSE
** Define for progress messages during Compilation.
** GENERIC_INSTR = -1
** Define to use the generic versions of the implementation-dependent
** instructions (in 'generic_macs.i'). Otherwise, you will have to provide
** your own macros in a file named 'machine_macs.i' (or edit below if you
** prefer another name).
** The following flags affect the compilation choices in the include
** files, particularly Z80_coding.i and Z80_struct.i. Make sure you use
** the same options that were used for the Z80.a object code.
PROCESSOR EQU 68030
** Define to any of 68000, 68010, 68020, 68030 or 68040. The 68000 version
** uses move to/from status register
** Z80_MEMCHECK SET 1
** Define to use memory write access checking.
** See the file Z80.i for more information about this.
** UPDATECACHE SET 1
** Define to update the cache on every write to Z80 memory. This is done
** by simply clearing the corresponding word in the cache. If this option
** is not used, modified code will never work.
** MODIFIEDCODE SET 1
** Define to detect (and allow) modified code even in multi-byte opcodes.
** Pretty damn useless if UPDATECACHE is not defined. If this option is
** not used, then modifications that only change the second or third bytes
** of the opcode, but not the first byte, will not be detected.
** UNDOCINSTR_UNDEF SET 1
** Define if you want the "undocumented" instructions to be considered
** as undefined instructions.
** BCDFLAGS
** Define if you want the arithmetic instructions to store information
** so that a following Daa will work correctly (see the file "notes.txt"
** for details).
** =======================================================================
INCLUDE Z80.i
INCLUDE Z80_struct.i
INCLUDE Z80_coding.i
IFD GENERIC_INSTR
INCLUDE generic_macs.i
ELSE
INCLUDE machine_macs.i
ENDC
** ------------
** It may be necessary to import some constants used in the macros:
** XREF.L is Devpac 3 notation.
XREF.L stale_ptr
** ------------
Z80_In_r_1C1 MACRO
XDEF Z80_In_\1_1C1
Z80_In_\1_1C1 opcode_2_bytes
In_r_1C1_mac \1
ENDM
do_r Z80_In_r_1C1
XDEF Z80_In_H_1C1
Z80_In_H_1C1 opcode_2_bytes
In_H_1C1_mac
XDEF Z80_In_xx_1C1
Z80_In_xx_1C1 opcode_2_bytes ;undefined
In_xx_1C1_mac
XDEF Z80_In_A_1n1
Z80_In_A_1n1 In_A_1n1_mac
XDEF Z80_Ind
Z80_Ind opcode_2_bytes
Ind_mac
XDEF Z80_Indr
Z80_Indr opcode_2_bytes
Indr_mac
XDEF Z80_Ini
Z80_Ini opcode_2_bytes
Ini_mac
XDEF Z80_Inir
Z80_Inir opcode_2_bytes
Inir_mac
XDEF Z80_Ld_A_R
Z80_Ld_A_R opcode_2_bytes
Ld_A_R_mac
XDEF Z80_Ld_R_A
Z80_Ld_R_A opcode_2_bytes
Ld_R_A_mac
XDEF Z80_Lddr
Z80_Lddr opcode_2_bytes
Lddr_mac
XDEF Z80_Ldir
Z80_Ldir opcode_2_bytes
Ldir_mac
XDEF Z80_Otdr
Z80_Otdr opcode_2_bytes
Otdr_mac
XDEF Z80_Otir
Z80_Otir opcode_2_bytes
Otir_mac
Z80_Out_1C1_r MACRO
XDEF Z80_Out_1C1_\1
Z80_Out_1C1_\1 opcode_2_bytes
Out_1C1_r_mac \1
ENDM
do_r Z80_Out_1C1_r
XDEF Z80_Out_1C1_H
Z80_Out_1C1_H opcode_2_bytes
Out_1C1_H_mac
XDEF Z80_Out_1C1_xx
Z80_Out_1C1_xx opcode_2_bytes ;undefined
Out_1C1_xx_mac
XDEF Z80_Out_1n1_A
Z80_Out_1n1_A Out_1n1_A_mac
XDEF Z80_Outd
Z80_Outd opcode_2_bytes
Outd_mac
XDEF Z80_Outi
Z80_Outi opcode_2_bytes
Outi_mac
XDEF Z80_Reti
Z80_Reti opcode_2_bytes
Reti_mac
XDEF Z80_Retn
Z80_Retn opcode_2_bytes
Retn_mac
** ====================================================================