Re: BDS2006 exe sizes
- From: Dodgy <Dodgy@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 24 Feb 2006 17:12:35 +0000
On Fri, 24 Feb 2006 12:48:08 +0000 (UTC), erewhon@xxxxxxxxxx (J
French) waffled on about something:
On Thu, 23 Feb 2006 17:00:28 +0000, Dodgy
<Dodgy@xxxxxxxxxxxxxxxxxxxxx> wrote:
<snip>
If memory serves me right, in DOS 8086 assembly this would be less
that 20 bytes, most of them being the string itself.
Actually I get 26 bytes
CODE SEGMENT PARA PUBLIC 'CODE'
ASSUME CS:CODE,DS:CODE,ES:CODE
ORG 100h
BEGIN:
lea DX, Msg
mov AH, 9
int 21h
mov AH, 4Ch ; ===== EXIT to DOS ===>
int 21h
Msg db 'Hullo World',13,10,'$'
CODE ENDS
END BEGIN
Using Int 20h to exit actually comes out at 27 bytes
I suppose one could lose the 13, 10
- yes that is fine, down to 24 bytes
You don't need the function 4c on to exit on the end either, just
exit. 1 left to loose.
Dodgy.
--
MUSHROOMS ARE THE OPIATE OF THE MOOSES
.
- Follow-Ups:
- Re: BDS2006 exe sizes
- From: J French
- Re: BDS2006 exe sizes
- References:
- BDS2006 exe sizes
- From: Ian
- Re: BDS2006 exe sizes
- From: Rob Kennedy
- Re: BDS2006 exe sizes
- From: Ian
- Re: BDS2006 exe sizes
- From: Bruce Roberts
- Re: BDS2006 exe sizes
- From: Dodgy
- Re: BDS2006 exe sizes
- From: J French
- BDS2006 exe sizes
- Prev by Date: Re: BDS2006 exe sizes
- Next by Date: Using DLL in Delphi
- Previous by thread: Re: BDS2006 exe sizes
- Next by thread: Re: BDS2006 exe sizes
- Index(es):
Relevant Pages
|