03 October 2022, 21:38 | #1 |
Registered User
Join Date: Mar 2021
Location: SWEDEN
Posts: 40
|
AsmPro Macro
We have been trying to make a macro in AsmPro, using the example from the old AsmOne manual .... but no luck.
How do we make a macro in AsmPro and send some variables into the macro? |
03 October 2022, 21:51 | #2 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,068
|
For example:
Code:
name MACRO rng_label\@: move.\0 \1,\2 ENMD name.w d0,d1 \@ is a random number (16-bit), you can use that to make certain things unique (e.g. avoid double symbol errors) \1..\9 are arguments You can exit a macro at any point with MEXIT. You can check if an arg is empty/blank with IFB/ENDIF (opposite condition IFNB is also supported). Number of args is available as NARG (maybe also as \# but maybe I'm wrong and that's from some other assembler). Just the basics... If you have any specific questions, go ahead. |
04 October 2022, 13:19 | #3 |
Registered User
Join Date: Mar 2021
Location: SWEDEN
Posts: 40
|
thanks mate, works perceftly
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ASMPro 1.18 on A500/A600? | Antiriad_UK | Coders. Asm / Hardware | 11 | 28 December 2022 10:49 |
AsmPro and INCLUDE sources | OCrowley | Coders. General | 2 | 06 July 2014 11:42 |
AsmPro | copse | Coders. Asm / Hardware | 4 | 25 April 2012 11:41 |
AsmPro sources question(s) | Asman | Coders. General | 13 | 03 September 2010 12:21 |
AsmPro | CmdrVimes | Coders. General | 5 | 01 September 2010 12:40 |
|
|