PropBasic ASM Tasks
@Bean
Was there a specific reason you didn't adopt the same calling mechanism for
cognew(@codestart, @address) as spin does?
@address would be copied into the cogs par register.
For PropBasic this would translate to cogstart taskname, @address?
The reason I'm asking this is we could use the asm parts of some spin object without
modifications (defining the right hub vars of course). But it is only a suggestion!
Fried
Was there a specific reason you didn't adopt the same calling mechanism for
cognew(@codestart, @address) as spin does?
@address would be copied into the cogs par register.
For PropBasic this would translate to cogstart taskname, @address?
The reason I'm asking this is we could use the asm parts of some spin object without
modifications (defining the right hub vars of course). But it is only a suggestion!
Fried
Comments
Can you post a simple example of what you want to do ?
Bean
The assembler part is
So I simply copied this code into a
I'm wondering if the code get the right info from the par register,
which must point to a datastructure
long vCog
long vPeriodTicks
long cCommand
in Hub memory.
BTW I find the "C" datastruct construct vCommand.byte[idx] very helpful, I would like to see that in PropBasic also.
Fried
The assembler part is
So I simply copied this code into a
I'm wondering if the code get the right info from the par register,
which must point to a datastructure
long vCog
long vPeriodTicks
long cCommand
in Hub memory.
BTW I find the "C" datastruct construct vCommand.byte[idx] very helpful, I would like to see that in PropBasic also.
Fried