
	.include cpu.inc

	lw	r3, stack
	rw	r3, STACKP
	lw	r3, nomem_proc
	rw	r3, INTV_NOMEM

	lw	r1, 0b0000000000000001
	ou	r1, 0b0000000000000011
	.word	err, err, ok, err
ok:
	mb	blk
	im	blk

	lw	r1, 0b1010101011111111
	pw	r1, 30

	lw	r1, 0b1010101010101010
	bm	r1, 30
	hlt	040
	lw	r1, 0b1111101010101010
	bm	r1, 30
	hlt	077

err:	hlt	040
blk:	.word	IMASK_NOMEM | 1

nomem_proc:
	hlt	040
stack:

; XPCT rz[6] : 0
; XPCT sr : 0b0100000000000001

; XPCT ir : 0xec3f
