Changeset 6527 for branches/mini/src


Ignore:
Timestamp:
Aug 14, 2001, 9:17:41 PM (24 years ago)
Author:
bird
Message:

Made non-tweeking version work nicely down to 284 bytes..

Location:
branches/mini/src/win32k/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/mini/src/win32k/test/mini.asm

    r6526 r6527  
    1 ;
    2 ; Standard edition.
    3 ;
     1; $Id: mini.asm,v 1.1.2.5 2001-08-14 19:17:40 bird Exp $
     2;
     3; Haveing great fun making small executables...
     4;
     5; Copyright (c) 2001 knut st. osmundsen (kosmunds@csc.com)
     6;
     7; Project Odin Software License can be found in LICENSE.TXT
     8;
     9
     10
    411ifdef NORMAL  ;
    5 
     12;
     13;
     14;
     15; High-octane stock.
     16;
     17;
     18;
    619    .386
    7     .model flat
    8     .stack 1000h-35
    920
    1021    ;APIRET APIENTRY  DosPutMessage(HFILE hfile,
     
    1425
    1526
    16 
    17 ;DATA32 segment dword public 'CODE' use32
    18 CODE32 segment dword public 'CODE' use32
    19 
     27DATA32 segment byte common use32 'STACK'
    2028;
    2129; Data
    2230;
    23 ImReallySmall   db  "I'm really small!",013
    24 
    2531public minilx
    2632minilx:
    27     int 3
    28     push    10000h
     33    push    offset ImReallySmall
    2934    push    18
    3035    push    eax
    3136    call    DosPutMessage
    32     add     esp,12
     37    add     esp, 12
    3338    ret
    34 ;DATA32 ENDS
    35 CODE32 ENDS
    36 
     39ImReallySmall   db  "I'm really small!",013
     40
     41DATA32 ends
     42
     43
     44END minilx
    3745endif
     46
    3847
    3948
     
    238247ImReallySmall   db  "I'm really small!",013
    239248
    240 db '123'
     249db 0,0,0
    241250;lxdump db 'lxdumplxdumplxdumplxdump'
    242251;       db 'lxdumplxdumplxdumplxdump'
     
    246255ALL ENDS
    247256
     257END
    248258endif
    249259
    250 END minilx
    251 
     260
  • branches/mini/src/win32k/test/mini.def

    r6520 r6527  
    1 ;$Id: mini.def,v 1.1.2.1 2001-08-14 03:31:13 bird Exp $
     1;$Id: mini.def,v 1.1.2.2 2001-08-14 19:17:40 bird Exp $
    22NAME '' WINDOWCOMPAT
    33STUB NONE
     4
     5STACKSIZE 4060
     6
     7SEGMENTS
     8    'DATA32'  class 'CODE' READWRITE PRELOAD
  • branches/mini/src/win32k/test/mini.mak

    r6521 r6527  
    1 # $Id: mini.mak,v 1.1.2.1 2001-08-14 03:32:08 bird Exp $
     1# $Id: mini.mak,v 1.1.2.2 2001-08-14 19:17:41 bird Exp $
    22
    33#
     
    7272#
    7373!ifdef NORMAL
     74#OBJS = $(OBJDIR)\entry.obj $(OBJS)
    7475$(OBJDIR)\$(TARGET).exe: $(OBJS)  $(DEFFILE) $(OBJDIR)\$(TARGET).lrf
    75     -4 $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    76     $(LXLITE) $@
     76    wlink system os2v2 file {$(OBJS)} name $(OBJDIR)\.exe import DosPutMessage MSG.5 \
     77        option offset=0x10000 option alignment=1 option stack=4060
     78    mv $(OBJDIR)\.exe $@
     79#    link386 /ALIGNMENT:1 /NONULLSDOSSEG /NOSECTORALIGNCODE /BASE:0x10000 /PACKCODE /PACKDATA \
     80#        $(OBJS), $(OBJDIR)\$(TARGET).exe, $(OBJDIR)\$(TARGET).map, os2386.lib, mini.def;
     81#    -8 ilink /NOFREE /FORCE /ALIGNMENT:1 /Map /BASE:0x10000 /PACKCODE /PACKDATA /EXEPACK:1 \
     82#        $(OBJS), $(OBJDIR)\$(TARGET).exe, $(OBJDIR)\$(TARGET).map, os2386.lib, mini.def;
     83    $(LXLITE) /AN:1 /ZS:1024 /ZX:1024 /MF3 /YXD /YND $@
    7784
    7885!else
Note: See TracChangeset for help on using the changeset viewer.