Users browsing this thread: 1 Guest(s)
Expansion of Treasure Chest subroutine

#10
Posts: 48
Threads: 7
Thanks Received: 0
Thanks Given: 0
Joined: Dec 2017
Reputation: 0
Status
None
(07-15-2018, 05:44 PM)assassin Wrote:
Quote:I still don't understand why DEC $1C seems to be a 16-bit operation but INC $24 is only a 8-bit one. Does JSR has something to do with it?

what makes you think this?  i never see your code change register size mid-function.  so i think it's all 16-bits.

Nevermind, I messed up the endianness in my head so I uselessly added operations to put $25 into $24 later in the code... and I just forgot about it a week later! Hmm

I applied your suggestions. They work perfectly and the code is now 24 bytes smaller!  Victory
  Find
Quote  



Messages In This Thread
RE: Expansion of Treasure Chest subroutine - by NPCnextdoor - 07-18-2018, 05:45 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite