aboutsummaryrefslogtreecommitdiffstats
path: root/menu/startup.asm
diff options
context:
space:
mode:
authorhpa <hpa>2004-02-02 08:40:14 +0000
committerhpa <hpa>2004-02-02 08:40:14 +0000
commit3edbc5585266a34df2b8708b86fc95bf667c00ed (patch)
tree7f336b5f40ba7827035f4b06b826a61a916f01c1 /menu/startup.asm
parentca5d31af26694aaf4db112c2eb6c3f82a65ec672 (diff)
downloadsyslinux-elf-3edbc5585266a34df2b8708b86fc95bf667c00ed.tar.gz
syslinux-elf-3edbc5585266a34df2b8708b86fc95bf667c00ed.tar.xz
syslinux-elf-3edbc5585266a34df2b8708b86fc95bf667c00ed.zip
Menu system from Murali
Diffstat (limited to 'menu/startup.asm')
-rw-r--r--menu/startup.asm55
1 files changed, 55 insertions, 0 deletions
diff --git a/menu/startup.asm b/menu/startup.asm
new file mode 100644
index 00000000..074175c2
--- /dev/null
+++ b/menu/startup.asm
@@ -0,0 +1,55 @@
+ name cstart
+ assume nothing
+
+ extern _start_:proc
+
+DGROUP group _TEXT,CONST,STRINGS,_DATA,DATA,XIB,XI,XIE,YIB,YI,YIE,_BSS
+
+_TEXT segment use16 para public 'CODE'
+
+ assume cs:_TEXT
+
+ org 100h
+_cstart_ proc near
+
+ call _start_
+
+ mov ah,4Ch ; AL = exit code
+ int 21h
+
+_cstart_ endp
+
+_TEXT ends
+
+ ; Make sure we declare all the DGROUP segments...
+
+CONST segment word public 'DATA'
+CONST ends
+STRINGS segment word public 'DATA'
+STRINGS ends
+XIB segment word public 'DATA'
+XIB ends
+XI segment word public 'DATA'
+XI ends
+XIE segment word public 'DATA'
+XIE ends
+YIB segment word public 'DATA'
+YIB ends
+YI segment word public 'DATA'
+YI ends
+YIE segment word public 'DATA'
+YIE ends
+DATA segment word public 'DATA'
+DATA ends
+
+ public _small_code_
+
+_DATA segment word public 'DATA'
+_small_code_ db 0
+_DATA ends
+
+_BSS segment word public 'BSS'
+_BSS ends
+
+ end _cstart_
+