I get garbage when use it under windows 2000. I can't figure out why! Any help would be greatly appreciated. Thank you!
-------------
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
; DEBUG ROUTINE
PUSH CX ;PUSH REGISTERS IN REVERSE ORDER
PUSH AX
CALL NEWLINE
CALL NEWLINE
LEA DI,DEBUGAX ;DEBUGAX IS DEFINED IN DATA SEGMENT
MOV CX,9
CALL PUTSTRNG
MOV BH,1
POP AX
CALL PUTDEC ; PUT VALUE NEEDED IN AX
CALL NEWLINE
LEA DI,DEBUGCX ;DEBUGCX IS DEFINED IN DATA SEGMENT
MOV CX,9
CALL PUTSTRNG
MOV BH,1
POP AX
CALL PUTDEC ; PUT VALUE NEEDED IN AX
CALL NEWLINE
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;PROCEDURES TO
EXTRN CLEAR:FAR ;CLEAR SCREEN
EXTRN NEWLINE:FAR ;DISPLAY NEWLINE CHARACTER
EXTRN PAUSE:FAR ;PAUSE UNTIL KEY STROKE
EXTRN PUTDEC:FAR ;DISPLAY DECIMAL
EXTRN PUTSTRNG:FAR ;DISPLAY CHARACTER STRING
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;S T A C K S E G M E N T D E F I N I T I O N
;
STACK SEGMENT STACK
DB 256 DUP(?)
STACK ENDS
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;D A T A S E G M E N T D E F I N I T I O N
;
DATA SEGMENT
PAUSE_MSG DB ' ANY KEY CONTINUES'
DEBUGAX DB 'DEBUG-AX '
DEBUGCX DB 'DEBUG-CX '
DATA ENDS
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-------------
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
; DEBUG ROUTINE
PUSH CX ;PUSH REGISTERS IN REVERSE ORDER
PUSH AX
CALL NEWLINE
CALL NEWLINE
LEA DI,DEBUGAX ;DEBUGAX IS DEFINED IN DATA SEGMENT
MOV CX,9
CALL PUTSTRNG
MOV BH,1
POP AX
CALL PUTDEC ; PUT VALUE NEEDED IN AX
CALL NEWLINE
LEA DI,DEBUGCX ;DEBUGCX IS DEFINED IN DATA SEGMENT
MOV CX,9
CALL PUTSTRNG
MOV BH,1
POP AX
CALL PUTDEC ; PUT VALUE NEEDED IN AX
CALL NEWLINE
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;PROCEDURES TO
EXTRN CLEAR:FAR ;CLEAR SCREEN
EXTRN NEWLINE:FAR ;DISPLAY NEWLINE CHARACTER
EXTRN PAUSE:FAR ;PAUSE UNTIL KEY STROKE
EXTRN PUTDEC:FAR ;DISPLAY DECIMAL
EXTRN PUTSTRNG:FAR ;DISPLAY CHARACTER STRING
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;S T A C K S E G M E N T D E F I N I T I O N
;
STACK SEGMENT STACK
DB 256 DUP(?)
STACK ENDS
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;D A T A S E G M E N T D E F I N I T I O N
;
DATA SEGMENT
PAUSE_MSG DB ' ANY KEY CONTINUES'
DEBUGAX DB 'DEBUG-AX '
DEBUGCX DB 'DEBUG-CX '
DATA ENDS
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%