What is INT 21h?

前端 未结 9 1744
[愿得一人]
[愿得一人] 2020-12-09 22:51

Inspired by this question

How can I force GDB to disassemble?

I wondered about the INT 21h as a concept. Now, I have some very rusty knowledge of the interna

9条回答
  •  一整个雨季
    2020-12-09 23:54

    It's a "software interrupt"; so not a hardware interrupt at all.

    When an application invokes a software interrupt, that's essentially the same as its making a subroutine call, except that (unlike a subroutine call) the doesn't need to know the exact memory address of the code it's invoking.

    System software (e.g. DOS and the BIOS) expose their APIs to the application as software interrupts.

    The software interrupt is therefore a kind of dynamic-linking.

提交回复
热议问题