From 7a77e900bf816ed27cad58fa7cc6feec029b7aec Mon Sep 17 00:00:00 2001 From: Karkat Date: Sat, 6 Jan 2018 22:16:54 -0500 Subject: [PATCH] now with less crashing --- inventory.asm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/inventory.asm b/inventory.asm index 00aa5a8..ede9d46 100644 --- a/inventory.asm +++ b/inventory.asm @@ -530,34 +530,34 @@ RTL !MIRROR_TIME = "$7EF464" .stampSword - REP $20 ; set 16-bit accumulator + REP #$20 ; set 16-bit accumulator LDA !SWORD_TIME : BNE + LDA !SWORD_TIME+2 : BNE + LDA !NMI_TIME : STA !SWORD_TIME LDA !NMI_TIME+2 : STA !SWORD_TIME+2 + - REP $20 ; set 8-bit accumulator + SEP #$20 ; set 8-bit accumulator RTS .stampBoots - REP $20 ; set 16-bit accumulator + REP #$20 ; set 16-bit accumulator LDA !NMI_TIME : STA !BOOTS_TIME LDA !NMI_TIME+2 : STA !BOOTS_TIME+2 - REP $20 ; set 8-bit accumulator + SEP #$20 ; set 8-bit accumulator RTS .stampFlute - REP $20 ; set 16-bit accumulator + REP #$20 ; set 16-bit accumulator LDA !NMI_TIME : STA !FLUTE_TIME LDA !NMI_TIME+2 : STA !FLUTE_TIME+2 - REP $20 ; set 8-bit accumulator + SEP #$20 ; set 8-bit accumulator RTS .stampMirror - REP $20 ; set 16-bit accumulator + REP #$20 ; set 16-bit accumulator LDA !NMI_TIME : STA !MIRROR_TIME LDA !NMI_TIME+2 : STA !MIRROR_TIME+2 - REP $20 ; set 8-bit accumulator + SEP #$20 ; set 8-bit accumulator RTS .incrementSword