flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
LocoDelAssembly 29 Mar 2009, 18:35
Code: old = $ org new_base_address ; your code org $ - $$ + old |
|||
![]() |
|
ouadji 29 Mar 2009, 19:03
LocoDelAssembly ... beautiful ! ![]() I never thought about that ! thank you very much for this solution ![]() |
|||
![]() |
|
Azu 21 May 2009, 10:55
LocoDelAssembly wrote:
I don't understand.. why not just do org old? ![]() |
|||
![]() |
|
LocoDelAssembly 21 May 2009, 12:40
This code will tell you why:
Code: org $100 mov ah, 9 mov dx, msg1 int $21 mov ah, 9 mov dx, msg2 int $21 xor ax, ax int $16 int $20 msg1 db "Message one", 13, 10, '$' old = $ org $7c00 db "Hidden message that shouldn't be seen", 13, 10, '$' org old msg2 db "Message two", 13, 10, '$' |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.