Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watching vars accessed via base register #295

Open
howprice opened this issue Feb 4, 2024 · 0 comments
Open

Watching vars accessed via base register #295

howprice opened this issue Feb 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@howprice
Copy link

howprice commented Feb 4, 2024

Is there a way to watch variables accessed via a base register? For example:

; 'vars' data structure, representing application state
	RSRESET
systemVBR:	rs.l	1
oldView:	rs.l	1
oldDMACON:	rs.w	1
...
vars_SIZEOF:	rs.b	0
...
vars:
    dcb.b         vars_SIZEOF
...
	lea	vars(pc),a5		; A5 points to vars throughout
	move.l	a4,systemVBR(a5)
...
	movea.l	graphicsBase(a5),a6
        move.l	gb_ActiView(a6),oldView(a5)
...
	lea	_custom,a6			; A6 = $dff000 throughout
	move.w	DMACONR(a6),oldDMACON(a5)	; store system DMACON $dff002

It would be great if systemVBR(a5), oldView(a5) and oldDMACON(a5) could be added to the Watch window. Is this possible?

My current workaround is to view vars as hex and manually work out offset to read the value. Should something like A5+oldDMACON work? I hope I am missing something.

Many thanks

@prb28 prb28 added the enhancement New feature or request label Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants