+; Support for the SC16IS740 I2C UART chip is included automatically, when
+; I2C support is enabled. Uncomment and set to 0 if you don't want support for
+; the SC16IS740 I2C UART chip.
+;#define I2C_UART_SUPPORT 1
+
+; Emulate Z80 cpu if 1, 8080 otherwise.
+;
+;#define EM_Z80 1
+
+; Uncomment and set RAMDISKCOUNT to 1-4 if you want to test the experimental and
+; unsupported ramdisk feature . Number depends on actual ram size (256kx4 - 4Mx8)
+; and bios dpb/dph definitions.
+;#define RAMDISKCNT 0
+
+; Uncomment and set to 0, if you need to save flash (ie. ATmega88).
+;#define FAT16_SUPPORT 1
+
+; Uncomment and set to 0, if you don't want to use CP/M partitions.
+; (Saves some bytes.)
+;#define CPMDSK_SUPPORT 1
+
+; Uncomment and set to 0, if you need to save flash.
+;#define MMCBOOTLOADER 1
+
+;-----------------------------------------------------------------------
+;Debugging aids
+
+.equ BOOTWAIT = 1
+.equ MEMTEST = 1
+.equ MEMFILL = 1 /* Fill DRAM */
+.equ SRAM_FILL = 1 /* Fill unused SRAM */
+.equ MMC_DEBUG = 0 /* Increase for more debugging */
+.equ MMC_DEBUG_RDW = 0
+.equ DSKSEL_DEBUG = 0
+.equ DISK_DEBUG = 0 /* 1 = BOOT/HOME debug, 2 = +R/W debug */
+.equ HOSTRW_DEBUG = 0
+.equ FAT16_DEBUG = 0
+.equ FAT16_DBG_FAT = 0
+.equ HEAP_DEBUG = 0
+.equ PORT_DEBUG = 0
+.equ INS_DEBUG = 0
+.equ STACK_DBG = 0
+.equ PRINT_PC = 0
+.equ TIMER_DEBUG = 0
+.equ I2C_STATE_DEBUG = 0
+.equ MEMDUMP_DEBUG = 1
+
+;-----------------------------------------------------------------------
+; Z80/8080 Virtual Ports
+
+#define UARTDR 1 /* UART Data Register */
+#define UARTCSR 3 /* UART Control/Status Register */
+#define UARTRXRDY 0x01 /* RxReady Status Bit Mask */
+#define UARTTXRDY 0x02 /* TxReady Status Bit Mask */
+
+#define READ_FUNC 7
+#define WRITE_FUNC 6
+#define BOOT_FUNC 5
+#define HOME_FUNC 4
+
+#define TIMERPORT 0x40 /* Base z80 port address for clock access */
+#define TIMER_CTL TIMERPORT
+#define TIMER_MSECS TIMERPORT+1
+#define TIMER_SECS TIMER_MSECS+2
+#define CLOCKPORT TIMERPORT+7 /* Real time clock BCD (ss,mm,hh,DD,MM,YYYY) */
+
+#define starttimercmd 1
+#define quitTimerCmd 2
+#define printTimerCmd 15
+#define uptimeCmd 16
+
+#define MEMDUMPPORT 0x09
+#define DEBUGPORT 0x4F
+
+#define startTraceCmd 0x01 /* 'OUT (DEBUGPORT),startTraceCmd' starts tracing */
+#define stopTraceCmd 0x00
+#define PrintStackCmd 0x02
+
+; Virtual I2C Interface
+#define I2CSTAT 0x05
+#define I2CCTRL 0x05
+#define I2CBLEN 0x06
+#define I2CADR 0x07
+#define I2CADRL 0x07
+#define I2CADRH 0x08
+
+; ISC16IS740 UART
+#define I2C_UART 0x50 /* ISC16IS740 base port */
+
+; Port-Expander PCF8574
+#define PORT 0x80
+#define PORT0 0x80
+#define PORT1 0x81
+#define PORT2 0x82
+#define PORT3 0x83
+#define PORT4 0x84
+#define PORT5 0x85
+#define PORT6 0x86
+#define PORT7 0x87
+
+;-----------------------------------------------------------------------
+;