Set Debug Watchpoint [0.9]

Sets a debug watchpoint at the specified linear address.

Call With

AX = 0B00H
BX:CX = linear address of watchpoint
DL = size of watchpoint (1, 2, or 4 bytes)
DH = type of watchpoint

ValueBreakpoint Type
0execute
1write
2read/write
Returns

if function successful
Carry flag = clear
BX = watchpoint handle

if function unsuccessful
Carry flag = set
AX = error code
8016Htoo many breakpoints
8021Hinvalid value (in DL or DH)
8025Hinvalid linear address (linear address not mapped or alignment error)

Notes