From c4c9065a79fa6ea8df305b6c3806c038fa557b76 Mon Sep 17 00:00:00 2001 From: cassidy Date: Wed, 15 Dec 2021 18:06:55 -0500 Subject: [PATCH] Fix ROM version location Remove comments, general cleanup --- sram.asm | 60 ++++++++++---------------------------------------------- 1 file changed, 10 insertions(+), 50 deletions(-) diff --git a/sram.asm b/sram.asm index 5d67bad..9bc1c77 100644 --- a/sram.asm +++ b/sram.asm @@ -388,28 +388,29 @@ InventoryTrackingSRAM: skip 2 ; BowTrackingSRAM: skip 2 ; skip 368 ; ExtendedFileNameSRAM: skip 24 ; We read and write the file name directly from and to SRAM (24 bytes) -skip $1AE8 ; -RomNameSRAM: skip 21 ; ROM name from $FFC0, burned in during init (21 bytes) - ; If value in the ROM doesn't match SRAM, save is cleared. +skip $1AE4 ; RomVersionSRAM: skip 4 ; ALTTPR ROM version. Low byte is the version, high byte writes ; $01 for now (32-bits total) -skip 4071 ; +RomNameSRAM: skip 21 ; ROM name from $FFC0, burned in during init (21 bytes) + ; If value in the ROM doesn't match SRAM, save is cleared. +skip 4075 ; PasswordSRAM: skip 16 ; Password value (16 bytes) base off ;================================================================================ ; Assertions +;================================================================================ +macro assertSRAM(label, address) + assert