; 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
.equ BOOTWAIT = 1
.equ MEMTEST = 1
-.equ MEMFILL = 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
#define DEBUGPORT 0x4F
-#define startTraceCmd 1 /* 'OUT (DEBUGPORT),startTraceCmd' starts tracing */
-#define stopTraceCmd 0
+#define startTraceCmd 0x01 /* 'OUT (DEBUGPORT),startTraceCmd' starts tracing */
+#define stopTraceCmd 0x00
+#define PrintStackCmd 0x02
; Virtual I2C Interface
#define I2CSTAT 0x05
#define MEMFILL_VAL 0x76 /* Fill ram with HALT opcode. */
#define DBG_TRACE_BOTTOM 0x01 /* Page boundaries for INS_DEBUG and PRINT_PC */
#define DBG_TRACE_TOP 0xdc /* Trace is off, below bottom page and above top page. */
+#define SRAMFILL_VAL 0x5A /* Fill unused SRAM */
#ifndef DRAM_8BIT
#define DRAM_8BIT 1 /* 1 = 8bit wide data bus to DRAM (ie two 4-bit Chips)*/
#define EM_Z80 1 /* Emulate Z80 if true, else 8080 */
#endif
+#ifndef CPMDSK_SUPPORT
+ #define CPMDSK_SUPPORT 1 /* Include Support for CP/M partitions */
+#endif
+
#ifndef FAT16_SUPPORT
- #define FAT16_SUPPORT 1 /* Include Support for FAT16 Partitions */
-#endif /* which may contain CP/M image files. */
+ #define FAT16_SUPPORT 1 /* Include Support for a FAT16 partition */
+#endif /* which may contain CP/M image files. */
#ifndef RAMDISKCNT
#define RAMDISKCNT 0 /* Number of RAM disks */