2 Common definitions for the the z80-related ports.
38 extern Z80_OPTS z80_opts
;
40 #define IS_Z80 (z80_opts.sub == SUB_Z80)
41 #define IS_Z180 (z80_opts.sub == SUB_Z180)
42 #define IS_R2K (z80_opts.sub == SUB_R2K)
43 #define IS_R2KA (z80_opts.sub == SUB_R2KA)
44 #define IS_R3KA (z80_opts.sub == SUB_R3KA)
45 #define IS_RAB (IS_R2K || IS_R2KA || IS_R3KA)
46 #define IS_SM83 (z80_opts.sub == SUB_SM83)
47 #define IS_TLCS90 (z80_opts.sub == SUB_TLCS90)
48 #define IS_EZ80_Z80 (z80_opts.sub == SUB_EZ80_Z80)
49 #define IS_Z80N (z80_opts.sub == SUB_Z80N)
50 #define IS_R800 (z80_opts.sub == SUB_R800)
51 #define HAS_IYL_INST (IS_Z80N || IS_EZ80_Z80 || IS_R800 || IS_Z80 && options.allow_undoc_inst)
53 #define IY_RESERVED (z80_opts.reserveIY)
55 #define OPTRALLOC_IY !(IY_RESERVED || IS_SM83)