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
9 lines
240 B
NASM
9 lines
240 B
NASM
; dbg_cd03.asm -- the same program, but the breakpoint is the two-byte CD 03.
|
|
bits 16
|
|
org 0x100
|
|
mov ax, 1111h
|
|
db 0CDh, 03h ; CD 03 (NASM's `int 3` would emit exactly this)
|
|
mov ax, 2222h
|
|
mov ax, 4C00h
|
|
int 21h
|