From 1db1949d8d3d50459b67e824854f2474a02337c1 Mon Sep 17 00:00:00 2001 From: Kevin Cathcart Date: Sat, 13 Oct 2018 13:04:17 -0400 Subject: [PATCH] Don't use non-existing instructions --- decryption.asm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/decryption.asm b/decryption.asm index f581a18..71d1a92 100644 --- a/decryption.asm +++ b/decryption.asm @@ -40,12 +40,13 @@ RetrieveValueFromEncryptedTable: PLA : STA $08 : PLA : STA $06 : PLA : STA $04 PLA : AND.w #$0007 : TAX LDA.l !CryptoBuffer, X - - STZ.l !CryptoBuffer - STZ.l !CryptoBuffer+2 - STZ.l !CryptoBuffer+4 - STZ.l !CryptoBuffer+6 - + PHA + LDA.w #$0000 + STA.l !CryptoBuffer + STA.l !CryptoBuffer+2 + STA.l !CryptoBuffer+4 + STA.l !CryptoBuffer+6 + PLA PLY : PLX RTL ;--------------------------------------------------------------------------------