aboutsummaryrefslogtreecommitdiff
path: root/dosstub.asm
diff options
context:
space:
mode:
Diffstat (limited to 'dosstub.asm')
-rw-r--r--dosstub.asm11
1 files changed, 11 insertions, 0 deletions
diff --git a/dosstub.asm b/dosstub.asm
new file mode 100644
index 0000000..fd5c164
--- /dev/null
+++ b/dosstub.asm
@@ -0,0 +1,11 @@
+.8086
+.model small
+.code
+PUBLIC main
+main:
+; This just builds a stub MZ exec that is exactly 1K long, see mousew2.lnk for details
+mov ax,0x4c01
+int 0x21 ; just end with error code
+db 400h-40h-5h dup(0) ; 1K - sizeof full MZ header - size of above code
+.stack
+END main