English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 22 September 2022, 13:29   #1
Steam Ranger
Registered User
 
Steam Ranger's Avatar
 
Join Date: May 2022
Location: Adelaide, South Australia, Australia
Posts: 208
Assembly Directives

| 2 Questions |
- |----------------------------------------------------------------------------------------------------------------------|
1 | Is there a list I can find somewhere that gives each assembler directive, and their uses.----------------------------|
- |----------------------------------------------------------------------------------------------------------------------|
2 | Is there a way I can load a structure as a constant? Like dc but instead of simple values it's the entire structure? |
- |----------------------------------------------------------------------------------------------------------------------|
| Thanks |
Steam Ranger is offline  
Old 22 September 2022, 13:58   #2
a/b
Registered User
 
Join Date: Jun 2016
Location: europe
Posts: 1,039
1. depends on assembler, many directives are common though. try http://sun.hasenbraten.de/vasm/release/vasm_4.html (4.4 directives), or do a web search for asm-one manual, etc...
2. yes, with a macro. for example, something like (in asm-one syntax):
Code:
  RSRESET
EX_member1  RS.W 1    ; example structure
EX_member2  RS.L 1
EX_member3  RS.W 1
EX_SIZE  RS 0

InitEX  MACRO
  DC.W \1
  DC.L \2
  DC.W \3
  ENDM

  InitEX 123,456,789
a/b is offline  
Old 28 September 2022, 00:27   #3
gigabates
Registered User
 
Join Date: Jan 2021
Location: Watford, UK
Posts: 57
The Devpac manual has some pretty comprehensive documentation with examples for directives. I found this useful for understanding how some of them are actually used.
gigabates 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
Assembly Error WAKD support.Apps 4 06 April 2021 20:43
vasm bug with ORG directives jotd Coders. Asm / Hardware 2 26 January 2020 19:09
assemblers LOAD & ORG directives jotd Coders. Asm / Hardware 4 26 January 2020 16:00
RawDoFmt() in Assembly redblade Coders. General 6 02 June 2009 14:25
assembly TV L8-X Amiga scene 2 04 August 2002 02:36

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 06:52.

Top

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