Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
asm/endasm missing equ?
#1
At <!-- m --><a class="postlink" href="https://www.facebook.com/groups/mc1000/">https://www.facebook.com/groups/mc1000/</a><!-- m -->, Emerson Costa (ensjo) is helping me a lot on the mc1000 version of zxbasic-compiler , but as soon he sent to me a library in asm with equ, zxbasic-compiler didn't recognize it.

Is that planned a support for equ, and how simple/possible is to add this? (it seems to be like associating variable names to values inside the asm code, just like variables on the basic code?)
Reply
#2
nitrofurano Wrote:At <!-- m --><a class="postlink" href="https://www.facebook.com/groups/mc1000/">https://www.facebook.com/groups/mc1000/</a><!-- m -->, Emerson Costa (ensjo) is helping me a lot on the mc1000 version of zxbasic-compiler , but as soon he sent to me a library in asm with equ, zxbasic-compiler didn't recognize it.

Is that planned a support for equ, and how simple/possible is to add this? (it seems to be like associating variable names to values inside the asm code, just like variables on the basic code?)
ZXBasm (the ZXBasic compiler) already supports EQU, so I don't understand what do you mean exactly.
Can you put me an example?

The EQU syntax is:
Code:
MyLabel EQU <expression>
<expression> can be anything: a numerical expression, another label, etc.. e.g. (3 + PLOT_ADDR) / 5
Reply
#3
sorry, nevermind - Ensjo shared to me a library snippet (for cls on mc1000 machine) which used equ wrongly, and since he is more experimented on assembly, i imagined that were a lack of support - sorry! :|
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)