Re: BDS2006 exe sizes



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
.



Relevant Pages

  • porting problem
    ... Socket.h:47: parse error before `)' ... Socket.h:46: conflicts with previous declaration `int Socket::sending' ... Socket.cpp:33: ANSI C++ forbids declaration `memset' with no type ... Socket.cpp:38: ANSI C++ forbids declaration `exit' with no type ...
    (comp.unix.programmer)
  • Re: coloring stdout and stderr
    ... void parent (int stdout_pipe, int stderr_pipe); ... exit; ... argv0, strerror ); ...
    (comp.unix.programmer)
  • Re: how to remove code duplication
    ... A programs that will take input from stdin and put that into log files. ... void create_logname(char *, int); ... exit(EXIT_FAILURE); ...
    (comp.lang.c)
  • Re: how to remove code duplication
    ... the log directory should containing the same files as the out ... exit(EXIT_FAILURE); ... int main ... void process_log_data(FILE *stream) ...
    (comp.lang.c)
  • echo client/server give problems if array sizes are different
    ... client asks for user input and then sends that line to the server ... void echo_back(int); ... exit(EXIT_FAILURE); ...
    (comp.unix.programmer)