/* main.c -- initialize simulation enviorment for debugging monitor
 * copyright (c)
 *  Dock Williams
 *  October, 1984
 *
 */

#include "monitor.h"



main()
{
	unsigned int sb,fp,sp1,intbase,r7,r6,r5,r4,r3,r2,r1,r0,id,sp0,pc;
	unsigned int mod,psr;
	MMUR *mmu;

	mmu = &mmuregs;
	mmu->msr = 0x0f0f0f0f;
	mmu->bcnt = 0x00000100;
	mmu->pf0 = 0x00000000;
	mmu->bpr0 = 0x00000000;
	mmu->pf1 = 0x00000001;
	mmu->bpr1 = 0x00000001;

	sb = 0xfaceface;
	fp = 0x00ffffff;
	sp1 = 0x00fe0000;
	sp0 = 0x00ff0000;
	intbase = 0x0000face;

	r0 = 0x0000;
	r1 = 0x1111;
	r2 = 0x2222;
	r3 = 0x3333;
	r4 = 0x4444;
	r5 = 0x5555;
	r7 = 0x7777;
	pc = 0xcccc;
	mod = 0xaaaa | 0x370000;	/* combine mod and psr for now */
	psr = 0x37;

	id = -5;

	cflags = 0;
	
	initty();

	debug(id,sp1,fp,intbase,sb,sp0,r7,r6,r5,r4,r3,r2,r1,r0,pc,mod,psr);
}
