Add interrupts module: INT 3 (CC breakpoint) vs INT 21h (DOS services)
NASM sources, DOSBox/FreeDOS Debug/Unicorn harness, captured output and 31 assertions backing the ankurm.com article "INT 3 vs INT 21h in 8086 Assembly". Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KqJyCidz3ZgRyHABv2GVJh
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
; opcodes.asm -- which bytes does each spelling assemble to? (read the listing, never run)
|
||||
bits 16
|
||||
org 0x100
|
||||
int3 ; the one-byte breakpoint -> CC
|
||||
int 3 ; "INT n" with n = 3 in NASM -> CD 03
|
||||
db 0CDh, 03h ; the same two bytes, written out -> CD 03
|
||||
int 21h ; DOS entry point -> CD 21
|
||||
int 10h ; BIOS video -> CD 10
|
||||
into ; one-byte INTO -> CE
|
||||
Reference in New Issue
Block a user