flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Would this be posible with macros? |
Author |
|
vid 20 Feb 2005, 01:41
there is no reason to write it as macro. Rather write procedures. But anyway, answer to your question is no, only if you will use some layer which will "encapsulate" system's API and then you macro/proc will be dependant on this layer.
|
|||
20 Feb 2005, 01:41 |
|
Embrance 20 Feb 2005, 06:40
So you mean in order to make this happens,ifirst must make an API,a collection of procedures or something...?
|
|||
20 Feb 2005, 06:40 |
|
JohnFound 20 Feb 2005, 08:00
Embrance, are you really, really know what is macros as a conception?
Regards. |
|||
20 Feb 2005, 08:00 |
|
Embrance 20 Feb 2005, 14:02
As far as im considered macros are this:
Instead of typing a code that is used many times into the program, you "group" the whole code under a "nme" or "sign". When you insert it,it executes the code group. |
|||
20 Feb 2005, 14:02 |
|
JohnFound 20 Feb 2005, 14:40
Embrance wrote: When you insert it,it executes the code group. It doesn't execute anything. When the preprocessor meet macro name, it simply replace this name with the text of the macro body. Macroses are source text processing techniques. As a result of "execution" of macro you will get simply some source code (it is not neccessary executable code - in most cases it is data definitions - actually IMHO, using macroses for generating source with instruction should be provided very carefuly in order to not affect readability of the source) Regards. |
|||
20 Feb 2005, 14:40 |
|
Embrance 20 Feb 2005, 16:20
Well that what i meant!lol
Thanks for the exaplanation! |
|||
20 Feb 2005, 16:20 |
|
JohnFound 20 Feb 2005, 20:03
Embrance wrote: Well that what i meant!lol So, if everything is clear, what is you are asking for in your first post??? Visibly you need some graphic library, not macroses... Of course you can create macros that to contains whole procedure for loading/displaying images, but as far as such code is usually several hundreds or even thousends bytes, it is stupid to insert the same repeating code every time you want to load or display an image. Regards. |
|||
20 Feb 2005, 20:03 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.