You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have all the instructions of my architecture already parsed and the produced binary looks fine. How ever I was wonderin if it is possible to also parse the section code like
.globalsymbol.asciz "hello"
and to produce the corresponding binary output.
The text was updated successfully, but these errors were encountered:
Here is an example of what I'm trying to achieve. When .data is parsed then I know that whatever is declared after it goes in the memory as static values. That is why I want to make a rule for it.
I'm not sure what "static values" means in this context-- all values outputted to the ROM are static, it's just a matter of how those values are encoded. Your .data section here can be written as:
argument:#d32 7 ; or d16 for that sizestr1:#d "something1" ; assuming string vs asciz means it's not null terminated, add ", 0" if I'm wrongstr2:#d " something2 " ; again, add ", 0" for null termination
Of course, if you wanted to codify these as instructions you could easily add them (though you'd need to get rid of the leading dot, since customasm assumes something with a leading dot is a local label):
Hi,
I have all the instructions of my architecture already parsed and the produced binary looks fine. How ever I was wonderin if it is possible to also parse the section code like
and to produce the corresponding binary output.
The text was updated successfully, but these errors were encountered: