Question (ASM Programing).
Sapieha
Posts: 2,964
I will not to discover circles again.
·
Consequently I ask or there is some method to the start of COG ASM of the program
·and on the start of consumption of memory in HUB for other aims.
sorry bad english
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
Sapieha
·
Consequently I ask or there is some method to the start of COG ASM of the program
·and on the start of consumption of memory in HUB for other aims.
sorry bad english
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
Sapieha
Comments
If your program is small and it only uses a little stack space, you can easily use the end of RAM (backwards from $7FFF) for other purposes. The PropellerOS (in the Object Exchange) uses this technique for allocating space for all of its I/O driver information and buffers.
You can also declare a block of variables in your program and pass the starting address to the cog (as shown in mouse.spin).
Post Edited (Mike Green) : 9/21/2007 4:32:39 PM GMT
"How long after I start a PASM program can I overwrite the HUB RAM which contained the PASM code?"
The answer is on the order of 8200 cycles (512 * 16), although I'd recommend a healthy fudge factor.
Of course, the PASM code which was just loaded can overwrite it's HUB RAM version as soon as it starts executing.
But my question is.
1.I start one COG with ASM prog (COG start and run)
2.HUB hold ASM Prog
3.Diskard HUB/Mem ASM-start to ASM-end in HUB
4.LOAD this MEM area with new one prog else use it with my data buffer
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
Sapieha
Post Edited (Sapieha) : 9/21/2007 5:20:36 PM GMT
I have 3 ASM routiner with no HUB acces after start and this metod give my 4K extra RAM.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
Sapieha
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?
after the COG code to guarantee a 1000 LONG buffer reusing this part of memory (starting from the label of the first instruction after ORG 0 )
Thanks for it.
You can't remember thread?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
Sapieha
Sorry to step in, but where can I find this PropellerOS? I did searches in the object exchange, and also manually browsed the full list, and could not find it. Searches on the forum have also yielded nothing (other than this thread, when searching for propelleros).
edit: ... lol... I replied to a post that included a link to the google search facility on the parallax site. Now that post is gone. Thanks anyway
Post Edited (_Mark) : 9/24/2007 10:00:00 PM GMT
Let's see... search.parallax.com/search?site=parallax&client=parallax&output=xml_no_dtd&proxystylesheet=parallax&proxycustom=%3CHOME/%3E&ie=&oe=&lr=
edit: Seems to work now. To illustrate, the link in your post looked like this (notice the last character is not clickable):
search.parallax.com/search?site=parallax&client=parallax&output=xml_no_dtd&proxystylesheet=parallax&proxycustom=%3CHOME/%3E&ie=&oe=&lr=
Anyway thanks, and sorry for going off-topic.
Post Edited (_Mark) : 9/24/2007 10:15:06 PM GMT