simple basic
[Deleted User]
Posts: 0
In mike's OS he has·simple basic demo program , how is the program Assigning the the value of 140 to quit·.
········ a += 3 + strsize(a+2)
··········· 138: ' run
················· clearvars
··········· 129, 139: ' then, rnd
·············· abort(@syn)
··········· 140: ' quit
·············· boot.bootEEPROM(boot#bootAddr)
····· else
········ abort(@syn)
Thanks ,Brian
········ a += 3 + strsize(a+2)
··········· 138: ' run
················· clearvars
··········· 129, 139: ' then, rnd
·············· abort(@syn)
··········· 140: ' quit
·············· boot.bootEEPROM(boot#bootAddr)
····· else
········ abort(@syn)
Thanks ,Brian
Comments
Brian
··Seem to have a handle on·Peek & Poke .I'm calling up the· readEEprom & writeEEprom in the loader object in your OS .Still trying to wrap my brain around a save comand·.Would·I use a udatebitmapEEprom· from the file system object & then A writeEEprom from the loader object ?
Brian
The second section takes care of getting permission to overwrite an existing copy, then actually does the copy.
The updateBitmapEEPROM routine is used only to recheck if there are any new EEPROMs attached. It's used during initialization and for the "probe" command.
From what I can tell , the program a person is writing is sitting in the stack.
Would I end up with somthing like this ?
to save:
10 Print " Hello World"
copy "stack" hello_world
to load:
copy hello_world· "stack"
list
10 print "Hello World"
Brian
I'm about four steps ahead of myself , Is there going to be a way to call up the main OS services . I tried to include it , but it made the program over 32k .
Post Edited (truckwiz) : 12/18/2006 1:00:40 AM GMT