The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script (XSE) How to get byte from offset and buffer it?

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old November 11th, 2016 (9:56 AM).
robbie0630 robbie0630 is offline
 
Join Date: Sep 2016
Gender: Male
Posts: 1
So you can get a byte from an offset (a.k.a. farbyte) and store it in a script bank, and you can buffer a byte from a variable, but how do you transfer from a script bank to a variable? Tried googling, nothing came up.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old November 11th, 2016 (10:21 AM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
Use the copybyte command and the direct addresses of the variables. The 0x8000 series variables are easy to directly access, while the 0x5000 series are dynamic.

Generally,

copybyte destination source

source for an 0x8000 var is going to be 0x20370B8 + (var - 0x8000)
__________________
...
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:18 AM.