1
0
Fork
You've already forked int
1
Examine BIOS interrupts on Linux
C 98.5%
Makefile 1.5%
Find a file
Riku Viitanen d1ac570549 Add readme
Signed-off-by: Riku Viitanen <riku.viitanen@protonmail.com>
2024年02月13日 03:13:10 +02:00
.gitignore Initial commit 2024年02月11日 01:10:37 +02:00
COPYING Initial commit 2024年02月11日 01:10:37 +02:00
int.c Prettier output 2024年02月13日 02:47:16 +02:00
Makefile Initial commit 2024年02月11日 01:10:37 +02:00
README.md Add readme 2024年02月13日 03:13:10 +02:00

int

Emulates BIOS interrupts on Linux, using libx86. Prints registers EAX, EBX, ECX, EDX, ES, EDI, DS, ESI, FS and GS. Only those that are non-zero (either before or after) are printed.

Usage

Depends on libx86. Run make to compile the tool. You have to have booted the kernel with iomem=relaxed. You might have to run this command once as well:

mount -o remount,exec /dev

Examples

# ./int 15 -a 5f80 -b ff00
Calling int15h
 ax bx cl
Before: 5f80 ff00 00
After: 005f ff30 03
# ./int 15 -a 5f80 -b ff01 -c 30
Calling int15h
 ax bx cl es
Before: 5f80 ff01 30 0000
After: 005f ff01 30 ef2c