Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!rice!uupsi!cmcl2!lab!jai From: jai@lab.ultra.nyu.edu (Benchiao Jai) Newsgroups: comp.os.minix Subject: NYUMINIX:LIB\HEAD.ASM Message-ID: <1991Feb24.070600.6355@cmcl2.nyu.edu> Date: 24 Feb 91 07:06:00 GMT Sender: notes@cmcl2.nyu.edu (Notes Person) Organization: New York University Ultracomputer Research Lab Lines: 28 Nntp-Posting-Host: lab.ultra.nyu.edu public begtext, begdata, begbss, _data_org, _exit extrn _main:near, _stackpt:word, endbss:byte DGROUP group _TEXT,_DATA,_BSS _TEXT segment byte public 'CODE' assume cs:_TEXT,ds:DGROUP begtext: jmp short L0 dw DGROUP:begdata dw DGROUP:endbss dw 5 dup(0) ; kernel uses this area as stack for inital IRET L0: mov sp,_stackpt call _main L1: jmp L1 ; this will never be executed _exit: jmp _exit ; this will never be executed either _TEXT ends _DATA segment word public 'DATA' begdata label word _data_org dw 8 dup (0) ; first 8 words of MM, FS, INIT are for stack _DATA ends _BSS segment word public 'BSS' begbss label word _BSS ends end Brought to you by Super Global Mega Corp .com