; minimon.mac - Run minimon
; Version 1.00 1/16/2006 - Initial version

; Reset the CPU
RESET

; Stop the CPU first
STOP

; Invalidate the I-cache
SETD 0xf0000000 L 0x1000 = 1

; Invalidate the D-cache
SETD 0xd0000000 L 0x1000 = 1

; Set the entire DA space to RW
SETD 0x80000000 L 0x30000 = 0x100

; Load minimon.elf and set PC
LOAD minimon.elf

; Set CPSR
CPSR=0xD3

; Clear IMASK
SETD 0x10000000 L 4 = 0x06000000

; Assert reset on all devices
SETD 0x10000008 L 4 = 0x00005b6d

; Power off all devices
SETD 0x10000008 L 4 = 0x00002492

; Set the entire DA to EXEC
SETD 0x80000000 L 0x30000 = 0x180

; Re-start the CPU
GO

