22 September 2022, 13:29 | #1 |
Registered User
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 |
|
22 September 2022, 13:58 | #2 |
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 |
28 September 2022, 00:27 | #3 |
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.
|
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 |
|
|