flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
windwakr 25 Jul 2008, 21:39
org does nothing when you're directly loading a number into a register
It affects jumps and moving locations into registers and stuff like that. Like: Code: org 200h mov ax,loc1 loc1: will disassemble to Code: mov ax,203h |
|||
![]() |
|
DOS386 26 Jul 2008, 06:34
> I'm trying to organize my compilation at 0x200
> in all my tests I find that fasm is compiling it at 0x100 Problem specific to DOS COM ... DOS loads COM's always at $0100. ![]() |
|||
![]() |
|
baldr 26 Jul 2008, 10:18
Do you need to position code at 0x200 in binfile, or just to assemble it as if it starts at 0x200?
org directive does no more than change base for the following code. No padding, no alignment ![]() |
|||
![]() |
|
A.Cipher 26 Jul 2008, 14:31
Thanks guys,
the easiest way to explain is I was just trying to position/pad it to start at 0x200 in bin file. I finally did just add in Code: times 100- ($-INITIAL) db 0 A.Ci |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.