The MASM Forum Archive 2004 to 2012
Welcome, Guest. Please login or register.
March 23, 2023, 08:23:00 AM

Login with username, password and session length
Search:     Advanced search
128553 Posts in 15254 Topics by 684 Members
Latest Member: mottt
* Home Help Search Login Register
+  The MASM Forum Archive 2004 to 2012
|-+  Miscellaneous Forums
| |-+  16 bit DOS Programming
| | |-+  Smallest Executable to write "Hello World" to the screen
« previous next »
Pages: 1 2 3 [4] Print
Author Topic: Smallest Executable to write "Hello World" to the screen  (Read 36504 times)
Antariy
Member
*****
Gender: Male
Posts: 1041


Re: Smallest Executable to write "Hello World" to the screen
« Reply #45 on: November 21, 2010, 10:38:09 AM »

My post was merely informational.

No problem, I'm understand that  ThumbsUp



Alex
Logged
dedndave
Member
*****
Posts: 12523


Re: Smallest Executable to write "Hello World" to the screen
« Reply #46 on: November 21, 2010, 11:44:09 AM »

Quote
You're right. I had the idea that with the AT segment there is no risk that a linker adds 256 null- bytes to "fill" the gap, but this isn't necessary. Also, some linkers won't accept an AT segment in a group.

yes - that may happen if you stuck anything more than a label there
over the years, using different versions of different assemblers...
you can sometimes get away with DW ? - sometimes not
ORG xx LABEL DWORD or ORG xx BranchLabel: always seem to work

the only time i have used SEGMENT AT is when i wanted to access the interrupt vector table (even then it isn't needed)
or when writing ROMable code
it matters if you want to generate proper segment values in far addresses

as i said, it isn't needed when accessing the IVT, because i generally do not access that memory in 0000:0000 context
rather, i use something like XOR AX,AX - MOV DS,AX - then access the vector offsets
Logged
Pages: 1 2 3 [4] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP The MASM Forum Archive 2004 to 2012 | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!