debug.mac

来自「[随书类]Dos6.0源代码」· MAC 代码 · 共 42 行

MAC
42
字号
;***
;* $Workfile:   debug.mac  $
;* $Revision:   1.0  $
;*   $Author:   Dave Sewell  $
;*     $Date:   02 Jun 1989 14:09:24  $
;***

COMMENT #
    debug.mac : Alan Butt : December 22, 1988 : Expansion Box Project

    This file contains some useful debugging macros.  These are used in
    coordination with the routines and data defined in debug.asm.

    macro dbg prints the argument string on the screen (or does nothing if
    DEBUG is not defined.
#

WHITE_ON_BLUE       EQU     1FH
WHITE_ON_GREEN      EQU     2FH
WHITE_ON_CYAN       EQU     3FH
WHITE_ON_RED        EQU     4FH
WHITE_ON_MAGENTA    EQU     5FH

DBG     MACRO   char
    IFDEF DEBUG
        push    ax
        mov     al, char
        call    debug_msg       ; debug_msg pops off AX and restores it
    ENDIF
        ENDM

HEX     MACRO   char
    IFDEF DEBUG
        push    ax
        mov     al, char
        call    hex_out
        pop     ax
    ENDIF
        ENDM


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?