1
ASM / Renaming a command in TIOS
« on: March 11, 2017, 07:48:16 pm »
I have a disassembled 2.43 OS which I'd like to modify.
Specifically, I want to rename a Command (QuadReg). The modification should not be affected by a reset.
For that reason I cannot use token hooks or the like, so I figured I'd have to write into flash.
I was able to unlock the flash (copying code from ptterase.z80), but I couldn't get writing bytes into it to work
(talking about this function http://wikiti.brandonw.net/index.php?title=83Plus:OS:Raw_Flash_Commands#Writing).
The String "QuadReg" is at $7D49 (page 1A) and $4D85 (page 1)
I tried "set" to modify the bits and ld to zero the bytes, but it didn't work.
I'm wondering if this is even possible (as wikiti states, the command name has to be in a sector?)
Or would it be a better approach to modify the disassembly, then reassemble to .8xu?
Specifically, I want to rename a Command (QuadReg). The modification should not be affected by a reset.
For that reason I cannot use token hooks or the like, so I figured I'd have to write into flash.
I was able to unlock the flash (copying code from ptterase.z80), but I couldn't get writing bytes into it to work
(talking about this function http://wikiti.brandonw.net/index.php?title=83Plus:OS:Raw_Flash_Commands#Writing).
The String "QuadReg" is at $7D49 (page 1A) and $4D85 (page 1)
I tried "set" to modify the bits and ld to zero the bytes, but it didn't work.
I'm wondering if this is even possible (as wikiti states, the command name has to be in a sector?)
Or would it be a better approach to modify the disassembly, then reassemble to .8xu?