home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
prgramer
/
demodd
/
brkpoint.asm
< prev
next >
Wrap
Assembly Source File
|
1990-06-11
|
985b
|
33 lines
PAGE 60,131 ;
TITLE GENERIC Device Driver Debug Function
;******************************************************************************
;This is a very simple function that executes an INT 3, loads AX with 0 and
;returns to the caller. Most debuggers attach to INT 3, so this will cause
;the debugger to be activated. The loading if AX with 0 is setting the return
;value to SUCCESS or 0.
;******************************************************************************
.286c ; Must use 286 mode if OS/2
;
;
MAINSEG SEGMENT WORD PUBLIC 'CODE'
ASSUME CS:MAINSEG
public _breakpoint
PAGE
;
;
_breakpoint proc far
;
; breakpoint to debugger
;
int 3
; nop
;
; Return to OS/2
;
mov ax,0
ret
;
_breakpoint endp
MAINSEG ENDS
END