How to step over interrupt calls when debugging a bootloader/bios with gdb and QEMU?
问题 For educational purposes, I have adapted this bootloader from mikeos.berlios.de/write-your-own-os.html rewriting it to specifically load at address 0x7c00. The final code is this: [BITS 16] ; Tells nasm to build 16 bits code [ORG 0x7C00] ; The address the code will start start: mov ax, 0 ; Reserves 4Kbytes after the bootloader add ax, 288 ; (4096 + 512)/ 16 bytes per paragraph mov ss, ax mov sp, 4096 mov ax, 0 ; Sets the data segment mov ds, ax mov si, texto ; Sets the text position call