Continue labeling and documentation in ram.asm, main rando block

Deleted several unused modules and some commented code
Reorganized some routines to clean up modules
Moved some memory into mirrored WRAM
Refactored NMI hook aux routine
Removed old fake flipper fix
This commit is contained in:
cassidoxa
2022-11-16 21:38:28 -05:00
parent 43f753b517
commit 788cceaab9
67 changed files with 962 additions and 2127 deletions

View File

@@ -19,16 +19,16 @@ WriteBlanksToPlayerName:
RTL
WriteCharacterToPlayerName:
STA ExtendedFileNameSRAM, X
STA.l ExtendedFileNameSRAM, X
CPX.w #$0008 : !BGE +
STA $7003D9, X ;what we wrote over
STA.l $7003D9, X ;what we wrote over
+
RTL
ReadCharacterFromPlayerName: ;Only for use on Name Screen
LDA ExtendedFileNameSRAM, X
LDA.l ExtendedFileNameSRAM, X
CPX.w #$0008 : !BGE +
LDA $7003D9, X ;what we wrote over
LDA.l $7003D9, X ;what we wrote over
+
RTL
@@ -40,13 +40,13 @@ PLB
RTL
WrapCharacterPosition:
LDA $0B12 : BPL +
LDA.w $0B12 : BPL +
LDA.b #$0B
+
CMP.b #$0C : !BLT +
LDA.b #$00
+
STA $0B12
STA.w $0B12
RTL
CharacterPositions: