My shortest such utility has a file length of 44 bytes and isn't
"self-modifying."
Is this a contest of the shortest and smallest .COM file?? ;-)
Try this [I first posted this code in this echo back in 1998]:
HWORLD.ASM OS/2 32-bit command line program.
Another approach would be to change the memory model from FLAT to
SMALL [after all, this is a 32-bit, native OS/2 program] which will
reduce the size of some of the instructions. This is left to the
student as an exercise. ... :-)
HWORLD.ASM OS/2 32-bit command line program.
Hmm, maybe I'll try to assemble this, does TASM do the job?
I don't
have a real OS/2 assembler, where would I find a decent one? I can
vaguely remember ALP, does that ring a bell?
Another approach would be to change the memory model from FLAT to
SMALL [after all, this is a 32-bit, native OS/2 program] which will
reduce the size of some of the instructions. This is left to the
student as an exercise. ... :-)
Yet another approach would be to do it in REXX or in a batch file,
they have the same functionality (display a small message) and are smaller. ;-))
Try this [I first posted this code in this echo back in 1998]:
HWORLD.ASM OS/2 32-bit command line program.
Hmm, maybe I'll try to assemble this, does TASM do the job?
Hmm, maybe I'll try to assemble this, does TASM do the job?
That depends on which TASM you have. If it supports .MODEL FLAT then
you are in luck.
I don't have a real OS/2 assembler, where would I find a decent one?
I can vaguely remember ALP, does that ring a bell?
ALP is the IBM assembler for OS/2. It is bundled with the OS/2 Warp Developer's Toolkit 4.0 and the OS/2 Device Driver Kit 4.0. The latter
can be downloaded from one of IBM's Web sites.
Yet another approach would be to do it in REXX or in a batch
file, they have the same functionality (display a small message)
and are smaller. ;-))
But that requires that the command shell and, in the former case, REXX interpreter be loaded, so its memory footprint is a couple of hundred kilobytes larger.
Try this one, if your TASM does only 16-bit code. Just remember to
link it with OS/2's LINK.EXE and use OS2.LIB from the OS/2 Developer's Toolkit 1.3 [although OS2386.LIB in the later DTK's also contains the 16-bit imports, I think].
This is like counting archangels on the head of a pin.
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,028 |
Nodes: | 17 (1 / 16) |
Uptime: | 182:15:41 |
Calls: | 503,706 |
Calls today: | 9 |
Files: | 158,907 |
D/L today: |
15,354 files (4,736M bytes) |
Messages: | 444,365 |
Posted today: | 3 |