Skip to content

Commit

Permalink
Update config.asm
Browse files Browse the repository at this point in the history
Add reminder paragraph about alignment for different sizes of values.
  • Loading branch information
flagrama authored Sep 2, 2024
1 parent ca61663 commit 72407b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ASM/src/config.asm
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
;==================================================================================================
; Settings and tables which the front-end may write
;==================================================================================================
; These values must be properly aligned to prevent an Address Error Exception on access. You can
; see what address a symbol was given after building in the build/asm_symbols.txt file.
; Byte values do not need to be aligned.
; Halfword values must be on an even byte boundary. ".align 2" can fix this value type's alignment.
; Word values must be on a byte boundary divisible by 4. ".align 4" can correct a misalignment.
; Doubleword values must be on a byte boundary divisible by 8. ".align 8" can fix a misalignment.

; This is used to determine if and how the cosmetics can be patched
; It this moves then the version will no longer be valid, so it is important that this does not move
Expand Down

0 comments on commit 72407b7

Please sign in to comment.