Forum Update - Announcement about May 10th, 2018 update and your password.

Using SETBRK instructions during debug ISR's

Hi P2heads,
I've discovered that a "spacer" instruction is needed after
a SETBRK instruction otherwise invalid values are returned in INA/INB.

For example
	setbrk	#%1000000	'ina/inb as pin status
	mov	porta,ina	'get pins

	setbrk	#1		'ina/inb as ISR data
	mov	next_pc,inb	'get CZ flags & PC
Melbourne, Australia


Sign In or Register to comment.