diff --git a/docs/asm-style-guide.md b/docs/asm-style-guide.md index 11d48e8b..e82f928c 100644 --- a/docs/asm-style-guide.md +++ b/docs/asm-style-guide.md @@ -206,7 +206,7 @@ AncillaAdd_Hookshot: - **Logical Grouping**: Organize code into logical sections, with related routines and macros grouped together. - **Separation of Concerns**: Ensure that each section of code is responsible for a specific task or set of related tasks, avoiding tightly coupled code. - **Modularity**: Write code in a modular way, making it easier to reuse and maintain. -- **Status Registers**: Indent code blocks when using status register operations (PHX, PLX, etc.) to improve readability. +- **Status Registers and Stack Operations**: Indent code blocks when using status register operations (REP, SEP, PHX, PLX, etc.) to improve readability. Example: @@ -221,6 +221,10 @@ Sprite_Minecart_Main: PHX JSR HandleMinecartMovement PLX + + REP #$20 + LDA !SpriteDirection : STA $00 + SEP #$20 RTS } ``` diff --git a/src/yaze.cc b/src/yaze.cc index 336b64c1..36b394da 100644 --- a/src/yaze.cc +++ b/src/yaze.cc @@ -6,10 +6,11 @@ #include "app/zelda3/overworld/overworld.h" void yaze_check_version(const char* version) { + printf("Yaze version: %s\n", version); auto version_check = yaze::app::core::CheckVersion(version); if (!version_check.ok()) { // Print the error message to the console for a pure C interface. - printf("%s\n", version_check.status().message().c_str()); + printf("%s\n", version_check.status().message().data()); // Exit the program if the version check fails. exit(1); }