(c) 2022 YSI contibutors, licensed under MPL 1.1
CGen_AddCodeSpace(num)
Name | Info |
---|---|
num |
How much to reduce the available code space by. |
When a library has finished generating its code this function can be used to tell y_cgen how many cells it wrote, and thus move the space space pointer on by that much.
4 cells
CGen_GetCodeSpace()
The next address with free code space.
1 cells
CGen_UseCodeSpace(ctx[])
Name | Info |
---|---|
ctx |
[21] The assembly generation context. |
Initialises the passed assembly generation context with a pointer in to our space code space region, complete with the remaining size and our error handler.
6 cells