flat assembler
Message board for the users of flat assembler.

Index > Examples and Tutorials > Macro Tutorial/Reference

Author
Thread Post new topic Reply to topic
m3ntal



Joined: 08 Dec 2013
Posts: 296
m3ntal
Macro Tutorial.

Subjects:

* Data Types, Sizes
* Labels: label, at, @@, align
* Numeric Constants, Expressions
* Inclusion: include, file
* Origin, Virtual, $/$$
* Load & Store, Extended p::
* Definitions: equ, define, fix
* Macros: macro, struc, rept, *, [], #
* Restore: restore, purge, restruc
* Locals: local
* Escape: \\\s
* Match: match a*b+c, p
* If Expression: if, else, eq/type, defined, used
* Loop: while, repeat, break, times, %
* Process: common, forward, reverse
* Iterate: irp, irps, irpv
* Postpone
Post 17 Jun 2014, 00:56
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
JohnFound
Very often you are defining data labels by colon. For example:
Code:
my_label: dd 1234    


But generally it is wrong, because it creates "untyped" code label. The proper way is to create it without colon:
Code:
my_label dd 1234    
Post 17 Jun 2014, 04:24
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
m3ntal



Joined: 08 Dec 2013
Posts: 296
m3ntal
John: Learn how to write code yourself before you give advice:
Image
Click here for Univeral Call.
Post 17 Jun 2014, 05:40
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
JohnFound
BTW, m3ntal, I understand, you probably have some sight problems. But most other people have normal vision, so please use smaller font sizes. And learn how to define labels before trying to teach others. Razz
Post 17 Jun 2014, 05:47
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.