flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar 06 Sep 2011, 12:28
Code: format binary use16 _$$ = 0 _$ equ (_$$+$-$$) macro org address { _$$ = _$ org address } org A ; copy MBR to whatever ; jmp to whatever:B org B ; chainload times 0x1be - _$ db 0 |
|||
![]() |
|
pini 06 Sep 2011, 13:07
Oh sweet !
Thanks. /EDIT/ It could be a good idea to evaluate the address before updating _$$ in the macro definition just in case it's based on _$, as in Code: macro org address { local a a = address _$$ = _$ org a } |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.