From b0d57c1c96fcf18fe5d23c85fc14750bfed22343 Mon Sep 17 00:00:00 2001 From: Paul Mathieu Date: Wed, 1 Oct 2025 23:22:56 +0200 Subject: [PATCH] Add a couple useful tools --- runcomm.asm | 10 ++++++++++ trampoline.asm | 13 +++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 runcomm.asm create mode 100644 trampoline.asm diff --git a/runcomm.asm b/runcomm.asm new file mode 100644 index 0000000..849c431 --- /dev/null +++ b/runcomm.asm @@ -0,0 +1,10 @@ +CPU 8086 + +mov cx, 0x100 +a: + mov ah, 0x07 + int 0x80 + test al, al + loopnz a +b: + ret diff --git a/trampoline.asm b/trampoline.asm new file mode 100644 index 0000000..c09c0f6 --- /dev/null +++ b/trampoline.asm @@ -0,0 +1,13 @@ +CPU 8086 + +src equ 0xf000 +dest equ 0x0600 +size equ 0x0600 + +_start: + mov cx, size + mov si, src + mov di, dest + rep movsb + mov ax, dest + jmp ax