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
10 lines
357 B
Plaintext
10 lines
357 B
Plaintext
clean run, no breakpoint:
|
|
CX=3
|
|
|
|
CC patch=CC trap: vector=3 return IP=7C03 (site=7C02, +1) debugger restores IP=7C02
|
|
after resume: CX=3 (expected 3), final IP=7C05
|
|
CD 03 patch=CD03 trap: vector=3 return IP=7C04 (site=7C02, +2) debugger restores IP=7C03
|
|
after resume: CX=0 (expected 3), final IP=7C64
|
|
|
|
RESULT: PASS
|