flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > linked list macro |
Author |
|
crc 04 Jul 2004, 13:02
Could you use a macros similar to this do create the linked list?
Code: prev_link equ 0 macro chain a, b { local c label c dd prev_link label a include b prev_link equ c } ; Here's how it is used: chain __a, 'apples' chain __b, 'bananas' chain __c, 'carrots' This won't solve the label issue though; perhaps you could append a line of text specific to each file to the label (not sure how this would be done...) |
|||
04 Jul 2004, 13:02 |
|
Tomasz Grysztar 08 Jul 2004, 09:04
Wouldn't something like this be enough?
Code: macro linked [filename] { common local previous previous = 0 forward dd previous previous = $ include filename } linked 'item1','item2','item3' |
|||
08 Jul 2004, 09:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.