TRACE 4.1, Disassembler, Debugger, Tracer
Submitted By:
Unknown
Rating:





(
Rate It)
;=========================================================================
;============================ SOFT_IT.ASM ================================
;=========================================================================
;
;---- TO BEGIN -----------------------------------------------------------
; Read the manual included in MANUAL.TXT file.
;
;---- TO START ----------------------------------------------------------
;
; Assemble this file by TASM or MASM, then link it
;
; Now, you have an executable file called 'soft_it.exe', Pay Attention,
; if you run this program by typing 'soft_it' at the dos prompt, you
; reboot your computer, because 'soft_it.exe' calls software interrupts
; (int 0aeh and int 0afh) which lead to nothing.
;
; Type this line :
; Trace /Esoft_it.exe /Fmydata /MC2 /LF /LN /LS /LW /I10
;
; Don't forget the /I10 option, if you want to have code about int 10h
; You will get 4 files named 'mydata.LF' 'mydata.LN' 'mydata.LS' 'mydata.LW'
;
;== STACK =================================================================
PILE segment para STACK 'STACK'
dw 512 dup(?)
PILE ends
;== DATA ==============================================================
MYDATASEG segment
MYDATASEG ends
;== CODE =================================================================
CODE segment
assume cs:CODE,ss:PILE,ds:MYDATASEG
Start:
mov ax,MYDATASEG
mov ds,ax
mov ax,12h ;== set video mode to 640x480x16
int 10h
;== START TRACING ====================================
int 0aeh
nop
;== EVERYTHING HERE ARE TRACED =======================
;== Write a point to screen
mov ah,0ch
mov bh,0
mov dx,100 ;= line 100
mov cx,100 ;= col 400
mov al,10 ;= color : green
int 10h
;== STOP THE TRACE ===================================
int 0afh
;== END ==============================================
mov ax,4c00h
int 21h
CODE ends
end Start