allow selection of COM port for debug prints easily overridden during compile, e.g. build.bat /D DEBUG_PRINT_COMPORT /V 2
This commit is contained in:
parent
716f732e3a
commit
114236da17
@ -265,9 +265,14 @@ _int29_handler:
|
|||||||
pop ax
|
pop ax
|
||||||
iret
|
iret
|
||||||
%IFDEF DEBUG_PRINT_COMPORT
|
%IFDEF DEBUG_PRINT_COMPORT
|
||||||
|
%ifnum DEBUG_PRINT_COMPORT
|
||||||
|
%define DEBUG_USE_COMPORT DEBUG_PRINT_COMPORT
|
||||||
|
%else
|
||||||
|
%define DEBUG_USE_COMPORT 1 ; default to COM2 if not specified
|
||||||
|
%endif
|
||||||
.comprint:
|
.comprint:
|
||||||
push dx
|
push dx
|
||||||
mov dx, 1 ; 0=COM1,1=COM2,2=COM3,3=COM4
|
mov dx, DEBUG_USE_COMPORT ; 0=COM1,1=COM2,2=COM3,3=COM4
|
||||||
|
|
||||||
mov ah, [cs:ASYNC_NEED_INIT]
|
mov ah, [cs:ASYNC_NEED_INIT]
|
||||||
or ah,ah
|
or ah,ah
|
||||||
|
Loading…
Reference in New Issue
Block a user