Omnimaga

Calculator Community => TI Calculators => ASM => Topic started by: the_mad_joob on May 03, 2014, 09:28:15 pm

Title: 8x+ > flash locking
Post by: the_mad_joob on May 03, 2014, 09:28:15 pm
I know how to unlock it, thx thepenguin77 btw =]
Now, i'd like to know a method to lock it back.
I already tried to zero port $14, without success.
I guess there's some kind of special sequence to achieve that (similar to unlocking it).
Help appreciated...
Title: Re: 8x+ > flash locking
Post by: Runer112 on May 04, 2014, 08:15:14 am
The easiest way to do this under TI-OS is to use B_CALL(_FlashWriteDisable) (http://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:4F3C). It works very similarly to how you thought, by sending 0 to port $14, but it does so from a privileged page.
Title: Re: 8x+ > flash locking
Post by: the_mad_joob on May 04, 2014, 12:59:13 pm
I'll try to reset the port from a privileged page then, since i don't use the TI-OS in my new project.
Thx for your time, Runer =]