kolibrios-fun/programs/games/flappybird/smalllibc/init.asm
Kirill Lipatov (Leency) 861708b8e9 upload flappybird by zorggish
git-svn-id: svn://kolibrios.org@9011 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-07-06 12:38:12 +00:00

32 lines
702 B
NASM

format MS COFF
StackSize = 16384
; must be alphabetically first in the image
section '.1seg' data readable writable
extrn _crtStartUp ; real entry point
extrn _kosCmdLine
extrn _kosExePath
extrn _exeStack
public fakeEntry
kos_header:
db 'MENUET01' ; header
dd 1 ; headerver
dd _crtStartUp ; entry
dd 0 ; i_end, filled by doexe2.asm
dd 0 ; memsize, filled by doexe2.asm
dd _exeStack + StackSize ; stack
dd _kosCmdLine ; params
dd _kosExePath ; icon
fakeEntry: ; only for linker, to force including this obj file
; real entry is crtStartUp
; initializers
section '.CRT$XCA' data readable writable
public ___xc_a
___xc_a:
section '.CRT$XCZ' data readable writable
public ___xc_z
___xc_z: