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

Implement debug messages #35

Open
jendrikw opened this issue Sep 2, 2020 · 1 comment
Open

Implement debug messages #35

jendrikw opened this issue Sep 2, 2020 · 1 comment

Comments

@jendrikw
Copy link

jendrikw commented Sep 2, 2020

GBG knows two kinds of debug messages that can be used to trace what the program is doing. They're described in the manual.

In the first kind, the message is embedded in the instructions

    ld d, d ; signals a debug message
    jr .enddebugmsg
	; the next 4 instructions specify the kind of mesage
    ld h, h
    ld h, h
   	dw $0000
    db "my message"
.enddebugmsg

The second kind loads a zero-terminated string from an address, which can be useful for dynamic messages that include runtime values.

    ld d, d
    jr .enddebugmsg
    ; the next 4 instructions specify the kind of mesage
    ld h, h
    ld h, h
    dw $0001
    dw address
    dw bank
.enddebugmsg

In BGB, these messages are displayed in a separate window.

image

This would be a nice feature, I think.

@binji
Copy link
Owner

binji commented Sep 8, 2020

Same with the other feature -- sounds cool, but I don't know if I have time to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants