flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Add prevision value |
Author |
|
macomics 17 Feb 2024, 17:31
Code: macro ab [a,b,c,d] { common local sum sum = 0 forward dd a, b, c, d + sum sum = sum + b } ab 0, 6456,1,0,\ ; 6456 = 38 19 0, 10233,1,0,\ ; 0+6456 = 38 19, 10233 = F9 27 0, 31896,1,0,\ ; 0+6456+10233 = 31 41, 31896 = 98 7C 0, 1797,1,0,\ ; 0+6456+10233+31896 = C9 BD, 1797 = 05 07 0, 2376,1,0 ; 0+6456+10233+31896+1797 = CE C4, 2376 = 48 09 ; 00000000 00 00 00 00 38 19 00 00 01 00 00 00 00 00 00 00 |....8...........| ; 00000010 00 00 00 00 f9 27 00 00 01 00 00 00 38 19 00 00 |.....'......8...| ; 00000020 00 00 00 00 98 7c 00 00 01 00 00 00 31 41 00 00 |.....|......1A..| ; 00000030 00 00 00 00 05 07 00 00 01 00 00 00 c9 bd 00 00 |................| ; 00000040 00 00 00 00 48 09 00 00 01 00 00 00 ce c4 00 00 |....H...........| ; 00000050 |
|||
17 Feb 2024, 17:31 |
|
Roman 17 Feb 2024, 18:09
Thanks.
|
|||
17 Feb 2024, 18:09 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.