Primary Zelda Hacking
April 21, 2014, 09:37:43 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Current Zelda Oracles Hacking Suite beta version: 0.05
 
   Home   Help Search Login Register  
Poll
Question: Vote: Opcode to Remove
Delay 10, 11, or 12 (Specify) - 4 (66.7%)
Some other opcode we don't use (Will destroy some other game scripts) - 1 (16.7%)
None - I like the crashes - 1 (16.7%)
Total Voters: 6

Pages: [1]
  Print  
Author Topic: Vote: Opcode to Replace  (Read 436 times)
Lin
ZOLE Creator
Administrator
Hero Member
*****
Online Online

Posts: 580



View Profile
« on: April 27, 2011, 04:13:22 AM »

Well the new scripting system clearly caused problems. I'm done with the engine changes and am going to go back to what the original format used to be - Opcode pointers in bank 0C and no free opcodes to use. This will cost a lot of space in bank C and maybe even ruin some past scripts because of data locations, but it's worth it because it means no crashes. Vote.

~Lin
Logged
Jigglysaint
Hacking Guru
Full Member
*****
Offline Offline

Posts: 150


View Profile
« Reply #1 on: May 02, 2011, 05:00:18 PM »

Lin, why not just fully expand the opcode list, move the ASM that was after it, change the pointer, then for the new pointers just jump to some unused space by following the same routine as a mid bank-bank swap?  Futhermore, there are actually some free opcodes earlier on in the list that are never used, and point to redundant code that you should be able to use.  I think I discovered that it was either in the Bx or the 9X were some opcodes that apparently don't have any use.

Edit:  Apparently A0 to A7 are not used, and point to 43 43, which I don't know what it does.  Just let me check Seasons in case it was used there.  Yup, not used.  I'm not sure what the code actually does, but why need 8 copies of it?  Unless you know the true answer to that, Lin, I'd say those are the best places to add in new opcodes.
« Last Edit: May 02, 2011, 05:06:42 PM by Jigglysaint » Logged
Lin
ZOLE Creator
Administrator
Hero Member
*****
Online Online

Posts: 580



View Profile
« Reply #2 on: May 02, 2011, 09:59:23 PM »

Lin, why not just fully expand the opcode list, move the ASM that was after it, change the pointer, then for the new pointers just jump to some unused space by following the same routine as a mid bank-bank swap?  Futhermore, there are actually some free opcodes earlier on in the list that are never used, and point to redundant code that you should be able to use.  I think I discovered that it was either in the Bx or the 9X were some opcodes that apparently don't have any use.

Edit:  Apparently A0 to A7 are not used, and point to 43 43, which I don't know what it does.  Just let me check Seasons in case it was used there.  Yup, not used.  I'm not sure what the code actually does, but why need 8 copies of it?  Unless you know the true answer to that, Lin, I'd say those are the best places to add in new opcodes.
Already did that. The ASM after the pointers is just a no-script: pop hl, inc hl, ret. I replaced it with the pointer, and the new opcode is FD, but I never closed this topic. I guess I should do that now. Thanks Cheesy
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!