Skip to content

Executing preprocessor in RAMSECTIONs? #634

Answered by vhelin
Pokeman2003 asked this question in Q&A
Discussion options

You must be logged in to vote

Just a quick note: .MACRO and .REPEAT are not processed by the preprocessor, they are traversed when parsing the code. Also: .RAMSECTIONs accept only variable labels and variable sizes (see .ENUM) so you cannot use .MACRO or .REPEAT inside them.

I'm not 100% I understand what you want to achieve here, but couldn't you do something like

.RAMSECTION "Stack" SLOT 1 FORCE ORGA STACK_START
. dsw STACK_SIZE
.ENDS

?

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Pokeman2003
Comment options

Answer selected by Pokeman2003
Comment options

You must be logged in to vote
1 reply
@Pokeman2003
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants