This is a problem that i have noticed for some time now with TD.exe, the Debugger that comes with tasm. I have a really simple test program so i know it has nothing to do with the Assembly program. Here is the program
;============================================================
;
; test program homework 5
;
;
;============================================================
.MODEL SMALL,BASIC,FARSTACK
;============================================================
;
; S T A C K S E G M E N T D E F I N I T I O N
;
.STACK 16
;============================================================
;
; D A T A S E G M E N T D E F I N I T I O N
;
.FARDATA DATA
;
db1 DB 10110111b
db2 DB -2
db3 DB '1'
db4 DB 5 DUP('x')
dw1 DW 1001
dw2 DW -20
db5 DB -129
db9 DB 'aaaaaaaa aaaaaaaa aaaaaaaaaa'
;============================================================
;
; C O D E S E G M E N T D E F I N I T I O N
;
.CODE
ASSUME DS
ATA
PR_2_1: MOV AX,SEG DATA
MOV DS,AX
NOP
;
MOV AX,2
;
.EXIT ;RETURN TO DOS
END PR_2_1
;what program variables should be....
;pr_2_1 @1022:0000
;db1 '+' 183 (B7h)
;db2 '_' 254 (FEh)
;db3 '1' 49 (31h)
;db4 "xxxxx"
;dw1 1001 (3E9h)
;dw2 65516 (FFECh)
;db5 '' 127 (7Fh)
;db9 "aaaaaaaa aaaaaaaa aaaaaaaaaa"
What happens is i load this executable, i view the variables before running and get the top configuration, which is correct. I then hit F7 to step one line through the code, and viewing the variables you get this....
pr_2_1 @102F:0000
db1 ' ' 0 (00h)
db2 ' ' 0 (00h)
db3 '1' 49 (31h)
db4 "xxxxx"
dw1 1001 (3E9h)
dw2 65516 (FFECh)
db5 '' 127 (7Fh)
db9 "aaaaaaaa aaaaaaaa aaaaaaaaaa"
As you can see the first two variables have somehow been initialized to 0 ????????????
This always happens no matter what type of program i run, if i use one variable it turns to 0 etc... I tried installing the patches from Borlands website with no luck. This may be particular to Turbo Debugger as i have not tested it on any other Debuggers.....
This is on a Dell Computer with a Intel Pentium II Processor with 64mb or Ram running windows 98 version 4.10.1998
Thanks for any help [sig]<p>ackka<br><a href=mailto:tmoses@iname.com>tmoses@iname.com</a><br><a href= my site</a><br>"Do No Harm, Leave No Tracks"<br>
ICMP Summer 2000, 2600 Article<br>
<br>
[/sig]
;============================================================
;
; test program homework 5
;
;
;============================================================
.MODEL SMALL,BASIC,FARSTACK
;============================================================
;
; S T A C K S E G M E N T D E F I N I T I O N
;
.STACK 16
;============================================================
;
; D A T A S E G M E N T D E F I N I T I O N
;
.FARDATA DATA
;
db1 DB 10110111b
db2 DB -2
db3 DB '1'
db4 DB 5 DUP('x')
dw1 DW 1001
dw2 DW -20
db5 DB -129
db9 DB 'aaaaaaaa aaaaaaaa aaaaaaaaaa'
;============================================================
;
; C O D E S E G M E N T D E F I N I T I O N
;
.CODE
ASSUME DS
PR_2_1: MOV AX,SEG DATA
MOV DS,AX
NOP
;
MOV AX,2
;
.EXIT ;RETURN TO DOS
END PR_2_1
;what program variables should be....
;pr_2_1 @1022:0000
;db1 '+' 183 (B7h)
;db2 '_' 254 (FEh)
;db3 '1' 49 (31h)
;db4 "xxxxx"
;dw1 1001 (3E9h)
;dw2 65516 (FFECh)
;db5 '' 127 (7Fh)
;db9 "aaaaaaaa aaaaaaaa aaaaaaaaaa"
What happens is i load this executable, i view the variables before running and get the top configuration, which is correct. I then hit F7 to step one line through the code, and viewing the variables you get this....
pr_2_1 @102F:0000
db1 ' ' 0 (00h)
db2 ' ' 0 (00h)
db3 '1' 49 (31h)
db4 "xxxxx"
dw1 1001 (3E9h)
dw2 65516 (FFECh)
db5 '' 127 (7Fh)
db9 "aaaaaaaa aaaaaaaa aaaaaaaaaa"
As you can see the first two variables have somehow been initialized to 0 ????????????
This always happens no matter what type of program i run, if i use one variable it turns to 0 etc... I tried installing the patches from Borlands website with no luck. This may be particular to Turbo Debugger as i have not tested it on any other Debuggers.....
This is on a Dell Computer with a Intel Pentium II Processor with 64mb or Ram running windows 98 version 4.10.1998
Thanks for any help [sig]<p>ackka<br><a href=mailto:tmoses@iname.com>tmoses@iname.com</a><br><a href= my site</a><br>"Do No Harm, Leave No Tracks"<br>
ICMP Summer 2000, 2600 Article<br>
<br>
[/sig]