Skip to content

Instantly share code, notes, and snippets.

View StanHash's full-sized avatar

Nat (Stan) StanHash

  • Brittany, France
  • 18:40 (UTC +02:00)
View GitHub Profile
@StanHash
StanHash / summary_of_changes.md
Created May 5, 2024 12:01
ColorzCore 2024.05 Summary of Changes & Quick Upgrade Guide

ColorzCore 2024.05 Summary of changes

This is a big update to ColorzCore, introducing a handful of new features, fixing a few bugs, and changes a few fundamental things (hopefully for the better).

This is a summary of the most important features and changes. Many smaller features, changes and details were omitted to make this digestible, but you can read the full list of changes in the pull-request description here: FireEmblemUniverse/ColorzCore#63.

Offsets were changed to addresses

One of the most important changes in this new version of ColorzCore is the migration from using ROM offsets to memory addresses. This is the biggest source of breaking changes, so in order to know best how to fix such issues be sure to try your best to understand this at least.

@StanHash
StanHash / gcc_flags_lyn.md
Created October 19, 2023 14:02
Recommended GCC flags for compiling C objects for lyn/GBA ROM hacking

Recommended GCC flags for compiling C objects for lyn/GBA ROM hacking

arm-none-eabi-gcc -c INPUT -o OUTPUT -O2 -Wall -Wextra -Wno-unused -ffreestanding \
    -mthumb -mthumb-interwork -mcpu=arm7tdmi -mabi=apcs-gnu -mfloat-abi=softfp -mlong-calls

Add -g if your build pipeline allows for debug info to be propagated (lyn and EA don't).

Add any -I PATH you need (header include paths).

Hide this in your build script/Makefile.

@StanHash
StanHash / multisym.md
Created September 4, 2022 12:11
fe8u name maps
Address clib-2019-03-16.sym idb-2020-07-14.sym fireemblem8.sym fe8-stan.sym feb-2022-09-03.sym
02000000 gAISFrontLeft gAISFrontLeft - - -
02000004 gAISBackLeft gAISBackLeft - - -
02000008 gAISFrontRight gAISFrontRight - - -
0200000C gAISBackRight gAISBackRight - - -
0200005C gpBattleAnimFrameStartLookup gpBattleAnimFrameStartLookup - - -
02000064 gpProcEkrBattle gpProcEkrBattle - - -
02000068 gpProcEkrGauge gpProcEkrGauge - - -
0200006C gpProcEkrDispUP gpProcEkrDispUP - - -

Coding Style

Consistency is the most important.

General

  • Use whatever indentation method you prefer (2 spaces, 4 spaces, one tab, 8 spaces, etc...), but stay consistent. I prefer 4 spaces.
  • Do not use tabs for alignment, only indentation. This implies only have tabs at the start of lines.

Naming conventions

@StanHash
StanHash / MSGDoc
Last active June 4, 2017 20:40
MSG Master Doc
# This Doc Is Very WIP Don't Mind Most Of It TYVM
# Modular Stat Getter - Master Doc
***[Get it today for free!](http://feuniverse.us/t/fe8-stans-asm-stuff/2376?u=stanh)***
***[Check out the example/request thread!](http://feuniverse.us/t/modular-stat-getter-example-feature-request-thread-thing-skill-ideas-work/2526?u=stanh)***
If you have any questions or found any error, feel free to ping me on the [FEU Forums](http://feuniverse.us/) or on the [FEU Discord](http://feuniverse.us/t/feu-discord-server/1480).
---