diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-09-13 13:41:56 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-09-13 13:41:56 -0700 |
commit | 37dce9bacc049f5b4b6beeba0378ce785bb3cebb (patch) | |
tree | 851d1cfed716ceb733669cf68a94252ec7b34ac8 | |
parent | 08d95ca91f87a0c8ec452bb17e837e845738d530 (diff) | |
download | syslinux-37dce9bacc049f5b4b6beeba0378ce785bb3cebb.tar.gz |
int18: module for local booting using INT 18h
At least until we can get a better handle on return vs INT 18h,
provide a module so we can at least tell people how to test.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | modules/Makefile | 2 | ||||
-rw-r--r-- | modules/int18.asm | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/modules/Makefile b/modules/Makefile index 80eb995d..77020ea0 100644 --- a/modules/Makefile +++ b/modules/Makefile @@ -19,7 +19,7 @@ include $(topdir)/MCONFIG.embedded INCLUDES = -I$(com32)/include -BINS = pxechain.com gfxboot.com poweroff.com +BINS = pxechain.com gfxboot.com poweroff.com int18.com all: $(BINS) diff --git a/modules/int18.asm b/modules/int18.asm new file mode 100644 index 00000000..a13ada75 --- /dev/null +++ b/modules/int18.asm @@ -0,0 +1,16 @@ + bits 16 + org 100h +_start: + mov ax,5 + int 22h + mov ah,09h + mov dx,msg + int 21h + mov ax,000Ch + xor dx,dx + int 22h + int 18h + jmp 0F000h:0FFF0h ; INT 18h should not return... + + section .data +msg: db 'Local boot via INT 18...', 13, 10, '$' |