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

Editor configuration #35

Open
pinobatch opened this issue Dec 29, 2021 · 1 comment
Open

Editor configuration #35

pinobatch opened this issue Dec 29, 2021 · 1 comment

Comments

@pinobatch
Copy link
Member

From https://gbdev.io/guides/asmstyle.html#recommendations (source code is https://github.com/gbdev/gbdev.github.io/blob/dev/list/guides/asmstyle.md)

Please use the .asm (or .s) file extensions, not .z80. The GB CPU isn't a Z80, so syntax highlighters get it mostly right, but not quite. And it helps spreading the false idea that the GB CPU is a Z80. 😢

Syntax highlighters get it even less right when .s and .asm default to x86 syntax on x86 PCs or to ARM syntax on ARM PCs. Would it be appropriate for some page on this site to give instructions to configure popular text editors (and frameworks used by multiple editors, such as GtkSourceView) to distinguish files in assembly language for SM83 instruction set from files in assembly language for other instruction sets?

@avivace
Copy link
Sponsor Member

avivace commented Jan 7, 2022

I agree, it's not a great suggestion, and I suppose z80 would in case case less worse (as far as syntax highlighting goes) than confusing with other x86 syntaxes. I'll open a PR to remove the paragraph.

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