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

Login with username, password and session length
News: The website has switched hosts and now has the domain zeldahacking.net!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Assembly Recoding  (Read 431 times)
Lin
ZOLE Creator
Administrator
Hero Member
*****
Online Online

Posts: 580



View Profile
« on: April 25, 2011, 10:17:50 PM »

A huge issue with Zelda Oracles hacking and using ZOSE is the crashes and unknown opcode errors an emulator will come across. Well, I figured out, or proved my guess, that they were the fault of the new loading and executing of the scripts. So when I get out of school, which should be the 26th of May, I'm going to begin recoding the assembly and redo a big chunk of the scripting engine. This will result in no bugs and hopefully we won't be limited to bank C for primary headers. If we are, well we are, but my main goal is to get rid of the errors.

~Lin
Logged
Lin
ZOLE Creator
Administrator
Hero Member
*****
Online Online

Posts: 580



View Profile
« Reply #1 on: April 29, 2011, 04:33:33 AM »

Sorry but the lead developer of ZOxx is a liar. Development has already started and is nearly complete, with new and way improved features such as:

-No more crashes
-Multiple scripts in a room
-No need for using bank C (See new skeleton)
-Possible underwater use (Has yet to be tested)

New skeleton:
Code:
writelocation 123456
setinteraction72 0
//Rest of code
playsound 4d

Interactions with the ID of 72 load the specified address at the back of the ROM, and when a jump is used, the new address is stored in the interaction's memory (Dx7D-Dx7F) and recalled to load data in C300 every time its script is executed.
Logged
Jigglysaint
Hacking Guru
Full Member
*****
Offline Offline

Posts: 150


View Profile
« Reply #2 on: April 29, 2011, 10:26:17 PM »

Sounds pretty good.  So this basically works for interaction 72 only, and nothing else is being changed, right?
Logged
Lin
ZOLE Creator
Administrator
Hero Member
*****
Online Online

Posts: 580



View Profile
« Reply #3 on: April 30, 2011, 01:46:59 AM »

Sounds pretty good.  So this basically works for interaction 72 only, and nothing else is being changed, right?
Yep. The only code I've added is used ONLY for interaction 72. I'm not sure whether or not I want to mess with the script code to add an FF opcode because I don't want to mess with the original code at all. I think what I'll do is make the original code peek at the byte, and if it's FF, resume the script based off the next byte. I also had to hardcode Dx46 (Delay) handling because for some reason they broke with my calling code, but they work fine now.
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!