Forum
Assembler "EQU" - Printable Version

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



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

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 - 06-18-2010

Perfect. Thanks for that.


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

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 - 06-18-2010

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