Changeset 6529 for branches/mini/src
- Timestamp:
- Aug 15, 2001, 12:14:34 AM (24 years ago)
- 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:31bird Exp $1 ; $Id: mini.asm,v 1.1.2.7 2001-08-14 22:14:34 bird Exp $ 2 2 ; 3 3 ; Haveing great fun making small executables... … … 18 18 ; 19 19 .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 22 CLIB EQU 1 23 24 ifdef CLIB 25 extrn vprintf:PROC ; optlink, 2+ parameters. second NULL. 26 else 27 extrn DosPutMessage:PROC ; system, tree parameters. 28 endif 29 30 31 CODE32 segment byte public use32 'STACK' 43 32 ; 44 33 ; Data 45 34 ; 46 35 public minilx 36 ImReallySmall db "I'm really small!",013,0 47 37 minilx: 38 ifdef CLIB 39 inc eax 40 shl eax,16 41 jmp vprintf 42 else 48 43 push offset ImReallySmall 49 44 push 18 … … 52 47 add esp, 12 53 48 ret 54 ImReallySmall db "I'm really small!",013 49 endif 55 50 56 51 CODE32 ends -
branches/mini/src/win32k/test/mini.mak
r6528 r6529 1 # $Id: mini.mak,v 1.1.2. 3 2001-08-14 21:17:31bird Exp $1 # $Id: mini.mak,v 1.1.2.4 2001-08-14 22:14:34 bird Exp $ 2 2 3 3 # … … 72 72 # 73 73 !ifdef NORMAL 74 !if 074 !if 1 75 75 $(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 78 80 mv $(OBJDIR)\.exe $@ 79 81 # link386 /ALIGNMENT:1 /NONULLSDOSSEG /NOSECTORALIGNCODE /BASE:0x10000 /PACKCODE /PACKDATA \ … … 86 88 -8 ilink /NOFREE /FORCE /ALIGNMENT:1 /Map /BASE:0x10000 \ 87 89 /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; 89 91 $(LXLITE) /AN:1 /ZS:1024 /ZX:1024 /MF3 /YXD /YND $@ 90 92 !endif
Note:
See TracChangeset
for help on using the changeset viewer.