mastodon.gamedev.place is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server focused on game development and related topics.

Server stats:

5.1K
active users

Kiëd Llaentenn

Well, at least the memory protection feature is worth using. kind of

Basically, sending a magic byte to .System/debug triggers special behaviour, marking memory as readonly, escalating privs to write to readonly memory, or printing out a pretty backtrace.

Not backwards compatible unfortunately, so I added a metadata flag to allow for selective compilation depending on whether the code is being run in a generic emulator or Bur's builtin one.

@unlkfp maybe this could make its way to the other emulators, if you're up for it, you should explain what you need in the mailing list :)

(when sourcehut is back)

@neauoire Happy to! I'm curious whether you think this should be an unofficial extension that emulators can implement optionally, or something part of the official spec.

If the former, I'll need to think of a way to make this backward-compatible, so that running a rom on an emulator that doesn't implement this won't constantly print debug statements.

If the latter, then the current design probably isn't too bad.

(The magic values are visible in the top of the second screenshot btw)