Expansion of Treasure Chest subroutine
#8
Thanks!

I made the modifications. However, with

ASL $22
ROL $24
(And also removing the BCS INC_HIGH_BYTE1 operation)

It didn't work. The result was way too low. So I thought that perhaps ROL was 8-bit some how, even though the M flag is 0 (16-bit mode). So, I did

ASL $22
ROL $25
ROL $24

And the result was way too high. However,

ASL $22
ROL $25

Works perfectly! And I don't understand why. Sad

I did try first this approach (well, when I learnt eventually about the ROL opcode Tongue ) and because of this weird behavior, I took another route that I knew would work until I understood it better. I concluded that if some operations directly on the data were somehow always 8-bit, I would prefer to put the values in the A, X or Y registers first and put the results back.
Reply


Messages In This Thread
RE: Expansion of Treasure Chest subroutine - by NPCnextdoor - 07-15-2018, 07:56 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Zone Doctor and FF6LE Expansion madsiur 66 70,608 07-24-2025, 12:39 PM
Last Post: madsiur
  Monster Expansion madsiur 31 43,091 02-23-2023, 02:38 PM
Last Post: madsiur
  Command Change Relic Table Expansion Celestial84 2 2,677 12-04-2021, 07:01 AM
Last Post: Celestial84
  SRAM Expansion madsiur 5 6,566 12-19-2016, 09:17 AM
Last Post: seibaby
  FF6 Expansion Editor (FF6ExpED) madsiur 25 29,636 05-12-2016, 01:57 PM
Last Post: Imzogelmo
  Treasure Chest Offset Fenrir 1 2,751 03-14-2013, 05:41 PM
Last Post: m06
  Custom Treasure Chest madsiur 8 8,753 05-03-2012, 12:02 PM
Last Post: SSJ Rick

Forum Jump:


Users browsing this thread: 1 Guest(s)