Boriel Basic Forum
Assembler "EQU" - Printable Version

+- Boriel Basic Forum (https://forum.boriel.com)
+-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11)
+---- Forum: Help & Support (https://forum.boriel.com/forumdisplay.php?fid=16)
+---- Thread: Assembler "EQU" (/showthread.php?tid=250)



Assembler "EQU" - britlion - 2010-06-18

I have some code that has things like

BORDER_CLR: EQU 4

What's the equivalent in your assembly? A #define?


Re: Assembler "EQU" - britlion - 2010-06-18

Perfect. Thanks for that.


Re: Assembler "EQU" - boriel - 2010-06-18

britlion Wrote:I have some code that has things like

BORDER_CLR: EQU 4

What's the equivalent in your assembly? A #define?
Code:
BORDER_CLR EQU 4
No colon between labels and EQU <value>. Colons are only for automatic position-reference labels.


Re: Assembler "EQU" - boriel - 2010-06-18

Sorry, it seems I pressed the wrong button and use "edit" instead of Reply Confusedhock: :?