; Clean stack area and return
MOV ESP,EBP
POP EBP
RET
HelloWorld ENDP
.STACK
END HelloWorld
=======================================================================
This program occupies 37 bytes plus its stack; as there are 4 DWORD PUSHes that
makes 53 bytes all up. You can reduce it further by outputting a shorter
message.
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. ... :-)
Regards
Dave
<Team PL/I>
--- FleetStreet 1.25.1
* Origin: My other computer is an IBM S/390 (2:257/609.5)