Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Append 1 Mode?

Featured Replies

  • Author
  • Localization

zgoro, posted Tue May 11, 2021 8:18 am (63883)


Hi pals,

I'm trying to understand how to use Append 1 (overwrite mode):

Code:
open fdsE target.bin 99   #Target file

get SIZE asize # Get size of new chunk to import

append 1
goto 0x0c7518 99  # Offset to insert new chunk into Target file
log target.bin 0x0c7518 SIZE
append


This does not work as it expects a smaller file, which is the correct way to do it?

Cheers!
  • Author
  • Localization

aluigi, posted Tue May 11, 2021 9:51 am (63884)


Reading and writing the same file at the same time?
I'm not surprised it doesn't work.
  • Author
  • Localization

zgoro, posted Tue May 11, 2021 10:17 am (63885)


Well yeah, it definitely is wrong! :D
How should I change the script for this to work?

Thanks for you stellar job on QBMS, I love it!
  • Author
  • Localization

aluigi, posted Tue May 11, 2021 10:35 am (63887)


The best solution is just creating a new file with the portions of the original file you want that I guess it's the following:
Code:
get SIZE asize
log "new.bin" 0 0x0c7518
append
log "new.bin" 0 SIZE
append
  • Author
  • Localization

zgoro, posted Tue May 11, 2021 10:38 am (63888)


Gotcha, thanks Aluigi!
  • Author
  • Localization

zgoro, posted Wed May 12, 2021 8:52 am (63914)


Just for ref, after abit of experiments overwrite Append 1 worked great on my side like this:

Code:
Open FDSE "Source.bin" 9                   # Open source file you want to overwrite data in, refer as "9"
Get S_SIZE asize 9                         # Get source file total size as S_SIZE
Get I_SIZE asize                           # Get input file total size as I_SIZE 
Log MEMORY_FILE 0 S_SIZE 9                 # Place the whole source file in MEMORY_FILE
                                           
                                                                                   
Goto 0x20 MEMORY_FILE                      # Which offset to store input file
Append 1                                   
Log MEMORY_FILE 0 I_SIZE                   # Input file starting offset & size   
Append                                     
                                             
                                                                       
Log NEW.bin 0 S_SIZE MEMORY_FILE           # Log to new file


Of course, by repeating the "Goto -Append 1 - Log - Append" chunk, you can overwrite to multiple offsets at once.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.