by Tdarcos » Sun Mar 13, 2011 2:41 pm
BlueTemplar wrote:
Macro 14: ENTER RG 2
1: SET C = 2
2: MACRO 12
3: STOP
I hope it can helps someone. Thanks rld for the help!
This reminds me of the Basic Programming Language.
I prefer the way IBM/370 assembler uses macros. Basically, you have a label in column 1, a pseudoinstruction, an op code or a macro name in column 10, and options for the item in column 16. (These are the conventions, the only real requirement is a space between the three items.) If column 1 is empty, it's no label. If the second and third entry are blank, it's an error (unless it's a blank line). If the third item is blank, it's usually error if not a macro (everything except macros and a few items have arguments; a macro can have or not have arguments). A macro can have just about any name with a few exceptions.
You declare a macro with the MACRO pseudoinstruction. The next line is the optional label template, the macro name and any arguments. Macros end with the MEND pseudoinstruction.
To use a macro you just use its name. And they did this on machines having less than 64K available for a user's program. To require
numbers for macro identifiers in todays environment of computers with gigabytes of memory is inexcusable lasiness! Whoever set that up needs their programmer's license suspended and forced to get a McJob. A few months of having to do "would you like fries with that" at minimum wage might teach them a lesson.
Visit
My Site; now with more than 103,716% more content than Pnback's!
[quote="BlueTemplar"]
[quote]Macro 14: ENTER RG 2
1: SET C = 2
2: MACRO 12
3: STOP
[/quote]
I hope it can helps someone. Thanks rld for the help![/quote]
This reminds me of the Basic Programming Language.
I prefer the way IBM/370 assembler uses macros. Basically, you have a label in column 1, a pseudoinstruction, an op code or a macro name in column 10, and options for the item in column 16. (These are the conventions, the only real requirement is a space between the three items.) If column 1 is empty, it's no label. If the second and third entry are blank, it's an error (unless it's a blank line). If the third item is blank, it's usually error if not a macro (everything except macros and a few items have arguments; a macro can have or not have arguments). A macro can have just about any name with a few exceptions.
You declare a macro with the MACRO pseudoinstruction. The next line is the optional label template, the macro name and any arguments. Macros end with the MEND pseudoinstruction.
To use a macro you just use its name. And they did this on machines having less than 64K available for a user's program. To require [i]numbers[/i] for macro identifiers in todays environment of computers with gigabytes of memory is inexcusable lasiness! Whoever set that up needs their programmer's license suspended and forced to get a McJob. A few months of having to do "would you like fries with that" at minimum wage might teach them a lesson.
Visit [url=http://paul-robinson.us]My Site[/url]; now with more than 103,716% more content than Pnback's!