So I know that .COM files are basically really simplistic executables (at their leanest anyway) that are assumed to start at 0x100 and run within a single segment... normally.
What I'm curious is, how hard is it for a .COM to be "bad" and utilize more segments?
Is it dangerous to switch arbitrarily to another segment and start writing memory into it, or is there a proper way to declare I want another segment?
Is it just plain better practice to use a full scale EXE file when multiple segments are required?
Note that the theoretical .COM itself will not exceed 64KB in size. I'm just looking to create a small program that may operate on a larger-than-one-64KB-segment size dataset.
What I'm curious is, how hard is it for a .COM to be "bad" and utilize more segments?
Is it dangerous to switch arbitrarily to another segment and start writing memory into it, or is there a proper way to declare I want another segment?
Is it just plain better practice to use a full scale EXE file when multiple segments are required?
Note that the theoretical .COM itself will not exceed 64KB in size. I'm just looking to create a small program that may operate on a larger-than-one-64KB-segment size dataset.