View Single Post
Old Feb 22nd, 2005, 12:50 AM   #6
samra
Newbie
 
Join Date: Feb 2005
Posts: 11
Rep Power: 0 samra is on a distinguished road
thanku Dizzutch, tempest, Machiavelli, and all those who passed by.
i am sorrrrrrry for the misunderstanding. but i am REALLY NEW. & feel bad about my unconsciousness. in fact i use command prompt (DEBUG) to write the code, till now we have not met any of the assemblers i saw many talk about in the internet, like MASM, RASM etc.. if i am not wrong.
again thanks alot. & sorry for not mentioning this in the beginning.
& tempest i dont get the code u wrote, :o sorry
here is the code i felt will work but am not sure coz i don't know how to test
        MOV BX,0   ; THIS IS THE B=0
        MOV CX,10 ; THIS IS THE COUNTER a=15
        MOV AX,A  ; AX=C = 10
        MOV DX,64 ; D=100
ONE :CMP CX,0
        DEC CX
        JGE LP
LP:    ADD BX,AX
        CMP BX,DX
        JL ONE
        JGE LP
        HLT
any body know what i am talking about, if u dont mind check. & tell me whats wrong or what should be corrected?

Last edited by samra; Feb 22nd, 2005 at 1:15 AM.
samra is offline   Reply With Quote