![]() |
Forum Index : Microcontroller and PC projects : Micromite Feature Request
![]() ![]() |
|||||
Author | Message | ||||
Oldbitcollector![]() Senior Member ![]() Joined: 16/05/2014 Location: United StatesPosts: 172 |
It certainly wouldn't have to be HIDDEN, but if NEW didn't remove it from memory, that's almost exactly what I've got in mind. A file which contained all of those special commands could be transferred in using XMODEM, and then removed with either a re-transfer or additional command line to NEW. My Propeller/Micromite mini-computer project. |
||||
MicroBlocks![]() Guru ![]() Joined: 12/05/2012 Location: ThailandPosts: 2209 |
Would a modifier not be a way to do it. [code] PROTECTED SUB MySub() END SUB PROTECTED FUNCTION MyFunction() END FUNCTION [/code] A NEW would then erase all memory except the protected subs and functions. Then of course you need another command to delete the protected subs and functions. maybe ERASE MySub. Microblocks. Build with logic. |
||||
micronut Newbie ![]() Joined: 03/09/2014 Location: United StatesPosts: 37 |
You can't just simply hide code. If you do and load a program that is larger than the original you will be overwriting the hidden code corrupting it. If you go this way you would have to reserve space for the hidden code. I feel the easiest solution would be a variable that would give you the end address of the program and then create a load flash routine that would load data, or subroutines from a given address to address + length of routine. That way you load your program then load the library of functions using this new function. |
||||
![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |