flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
shutdownall 27 May 2015, 17:55
The program is executed in the first line !
You have to put data separate (into another segment) or at the end of the program. You could also use jmp print in the first line to skip the data section. Your code is executed from the beginning regardless if you think this is text or code. The CPU doesn't know and try to execute your data "Hello World" which gives unpredicted results. ![]() |
|||
![]() |
|
El Tangas 27 May 2015, 18:26
Exactly, you are making a .com executable, right? This format is just a flat binary that starts executing from the first byte, it doesn't have an "entry point". So your data gets executed as if it was code, who knows what kind of crazy instructions result from the "Hello World!" string... You could check with a DOS debugger...
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.