flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar 04 Jun 2025, 13:35
Try this:
Code: postpone repeat MachO.SEGMENT_NUMBER load SEGNAME from MachO:MachO.segment#%.segname if SEGNAME = '__TEXT' load VMADDR from MachO:MachO.segment#%.vmaddr __TEXT_VMADDR := VMADDR break end if end repeat end postpone |
|||
![]() |
|
adragomir 12 Jun 2025, 18:47
Yes ! This worked. I added this postpone statement somewhere and then I do something like
Code: macro entry2? regs& MachO.command LC_MAIN dq regs - __TEXT_VMADDR ; entryoff dq 0 ; initial stack size MachO.text end macro Thank you so much ! |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.