File:  [XINU] / xinu / sys / regdump.s
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:39:25 2018 UTC (8 years, 2 months ago) by root
Branches: xinu, MAIN
CVS tags: xinu-19910600, HEAD
Xinu for 68000/68010



	.data
regs:
data:
	.ascii "D0 = %08x\11D1 = %08x\11D2 = %08x\11D3 = %08x\12\15"
	.ascii "D4 = %08x\11D5 = %08x\11D6 = %08x\11D7 = %08x\12\15"
address:
	.ascii "A0 = %08x\11A1 = %08x\11A2 = %08x\11A3 = %08x\12\15"
	.ascii "A4 = %08x\11A5 = %08x\12\15\12\15"
	.ascii "FP = %08x\11A7 = %08x\11"
	.ascii "SR = %8x\11PC = %08x\12\15\12\15\0"

	.text
	.globl	_regdump
_regdump:

	movl	sp@,	sp@-
	movw	sr, 	sp@-
	movw	#0,	sp@-
	movl	a7, 	sp@-
	subl	#8,	sp@
	subl	#60,	sp
	moveml  #0x7fff,sp@
	movl	#regs,	sp@-	
	jsr	_kprintf
	addl	#76,	sp
	rts
	.data

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.