Changeset 6529 for branches/mini/src


Ignore:
Timestamp:
Aug 15, 2001, 12:14:34 AM (24 years ago)
Author:
bird
Message:

Ilink was a fault. back to wlink. use clibrary.

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

Legend:

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

    r6528 r6529  
    1 ; $Id: mini.asm,v 1.1.2.6 2001-08-14 21:17:31 bird Exp $
     1; $Id: mini.asm,v 1.1.2.7 2001-08-14 22:14:34 bird Exp $
    22;
    33; Haveing great fun making small executables...
     
    1818;
    1919    .386
    20 ;    .model flat
    21 ;    .stack 1000h
    22 
    23 
    24 ;
    25 ; Segment definitions. (needed somehow ot
    26 ;
    27 DATA32 segment byte public use32 'DATA'
    28 DATA32 ends
    29 
    30 BSS32 segment byte public use32 'BSS'
    31 BSS32 ends
    32 
    33 DGROUP  group BSS32, DATA32
    34 ;    assume  cs:FLAT, ds:FLAT, ss:FLAT, es:FLAT
    35 
    36 ;APIRET APIENTRY  DosPutMessage(HFILE hfile,
    37 ;                               ULONG cbMsg,
    38 ;                               PCHAR pBuf);
    39 extrn DosPutMessage:PROC
    40 
    41 
    42 CODE32 segment byte public use32 'CODE'
     20
     21; config
     22CLIB EQU 1
     23
     24ifdef CLIB
     25extrn vprintf:PROC                      ; optlink, 2+ parameters. second NULL.
     26else
     27extrn DosPutMessage:PROC                ; system, tree parameters.
     28endif
     29
     30
     31CODE32 segment byte public use32 'STACK'
    4332;
    4433; Data
    4534;
    4635public minilx
     36ImReallySmall   db  "I'm really small!",013,0
    4737minilx:
     38ifdef CLIB
     39    inc     eax
     40    shl     eax,16
     41    jmp     vprintf
     42else
    4843    push    offset ImReallySmall
    4944    push    18
     
    5247    add     esp, 12
    5348    ret
    54 ImReallySmall   db  "I'm really small!",013
     49endif
    5550
    5651CODE32 ends
  • branches/mini/src/win32k/test/mini.mak

    r6528 r6529  
    1 # $Id: mini.mak,v 1.1.2.3 2001-08-14 21:17:31 bird Exp $
     1# $Id: mini.mak,v 1.1.2.4 2001-08-14 22:14:34 bird Exp $
    22
    33#
     
    7272#
    7373!ifdef NORMAL
    74 !if 0
     74!if 1
    7575$(OBJDIR)\$(TARGET).exe: $(OBJS)  $(DEFFILE) $(OBJDIR)\$(TARGET).lrf
    76     wlink system os2v2 file {$(OBJS)} name $(OBJDIR)\.exe import DosPutMessage MSG.5 \
    77         option offset=0x10000 option alignment=1 option stack=4060
     76    wlink system os2v2 file {$(OBJS)} name $(OBJDIR)\.exe \
     77    import vprintf LIBCN.150 \
     78#    import DosPutMessage MSG.5   \
     79        option offset=0x0000 option alignment=1 option stack=4060
    7880    mv $(OBJDIR)\.exe $@
    7981#    link386 /ALIGNMENT:1 /NONULLSDOSSEG /NOSECTORALIGNCODE /BASE:0x10000 /PACKCODE /PACKDATA \
     
    8688    -8 ilink /NOFREE /FORCE /ALIGNMENT:1 /Map /BASE:0x10000 \
    8789            /PACKCODE /PACKDATA /EXEPACK:1 /STACK:4000  \
    88             $(OBJS), $(OBJDIR)\$(TARGET).exe, $(OBJDIR)\$(TARGET).map, os2386.lib, mini.def;
     90            $(OBJS), $(OBJDIR)\$(TARGET).exe, $(OBJDIR)\$(TARGET).map, os2386.lib libcmi.lib, mini.def;
    8991    $(LXLITE) /AN:1 /ZS:1024 /ZX:1024 /MF3 /YXD /YND $@
    9092!endif
Note: See TracChangeset for help on using the changeset viewer.