Hello;

can any one help me to know how to check that my code is corrsct in Textpad ?

there is no output like C++ ;so it make proplem fpr me .


this is the code :

;Assi#1
.model small
.stack 100h
.data
F1 sword 12 dup(12,4,7,-8,1,10,8,-4,20,44,3,-9)
F2 sword 12 dup(?)
F3 sword 18 dup(?)
F4 sword 6  dup(?)
.code
main proc
  mov si ,0 
  mov CX ,12
 
L1: mov ax,F1[si]
mov F2[si],ax
INC si 
loop L1
  mov di ,0 
  mov CX ,6
 
L2: mov ax,F1[di]
mov bx,F1[di+2]
sub ax,bx
mov F4[di],ax
INC di 
loop L2
L3: mov ax,F2[di]
mov bx,F2[di+2]
xchg ax,bx
INC di 
loop L2
 
L4: mov ax,F1[di]
mov F3[di+22],ax
sub di,2 
loop L4
mov di,26
L5: mov ax,F3[di-4]
mov F3[di],ax
sub di,2 
loop L5
 
 
  main ENDP
     END main

What you mean there is no output make your statement clear...

btw tell me which assembler you are using so i can help...

What you mean there is no output make your statement clear...

I do not know the way of checking ,
I mean using of T , R ..... in Debug

you got my point!

I want to Know steps ,
for example :
if our programe about adding two No. , i want to make sure that variable "sum" contain the result of adding .


btw tell me which assembler you are using so i can help...

Textpad 4.6.2

I do not know the way of checking ,
I mean using of T , R ..... in Debug

you got my point!

I want to Know steps ,
for example :
if our programe about adding two No. , i want to make sure that variable "sum" contain the result of adding .

Well, Ancient Dragon gave a link to this short DEBUG tutorial:

http://users.easystreet.com/jkirwan/new/x86lrn03.html

A quick Google search netted a couple more nice ones:

http://www.armory.com/~rstevew/Public/Tutor/Debug/debug-manual.html

http://www.geocities.com/thestarman3/asm/debug/debug2.htm

Textpad 4.6.2

You really should try something better. Check out the resources listed in this sticky thread:

http://www.daniweb.com/techtalkforums/thread67183.html

Nathan.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.