English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 03 October 2022, 21:38   #1
REAKTOR BEAR
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?
REAKTOR BEAR is offline  
Old 03 October 2022, 21:51   #2
a/b
Registered User
 
Join Date: Jun 2016
Location: europe
Posts: 1,062
For example:
Code:
name MACRO
rng_label\@:
  move.\0 \1,\2
  ENMD

  name.w d0,d1
\0 is optional "macro size", .w in this case, and you can access it as \0
\@ 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.
a/b is offline  
Old 04 October 2022, 13:19   #3
REAKTOR BEAR
Registered User
 
Join Date: Mar 2021
Location: SWEDEN
Posts: 40
thanks mate, works perceftly
REAKTOR BEAR is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 23:43.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06604 seconds with 13 queries