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
14 lines
326 B
NASM
14 lines
326 B
NASM
; int3_default.asm -- execute INT 3 with NO handler of our own and see whether the program survives.
|
|
bits 16
|
|
org 0x100
|
|
mov dx, m1
|
|
call puts
|
|
int3
|
|
mov dx, m2
|
|
call puts
|
|
mov ax, 4C00h
|
|
int 21h
|
|
m1 db 'before INT3', 0Dh, 0Ah, '$'
|
|
m2 db 'after INT3 (program survived)', 0Dh, 0Ah, '$'
|
|
%include "common.inc"
|