Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:07 06 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Micromite Feature Request

     Page 2 of 2    
Author Message
Oldbitcollector

Senior Member

Joined: 16/05/2014
Location: United States
Posts: 172
Posted: 12:37pm 09 Nov 2014
Copy link to clipboard 
Print this post

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: Thailand
Posts: 2209
Posted: 01:57am 10 Nov 2014
Copy link to clipboard 
Print this post

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 States
Posts: 37
Posted: 04:58am 10 Nov 2014
Copy link to clipboard 
Print this post

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.
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025