Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/02/03 10:19
Read: times


 
#53858 - array in asm51
hello
please tell me how to make array in asm51 ?.
for example in basic language

dim b(10)
for x = 1 to 10
b(x) = x + 0
next x

and this below my listing program in asm51

ORG 00H
X EQU 00
MOV 00H,#08 ; NUMBER FOR LOOPING
START : MOV C,P0.1 ;I WANT SAVE BIT DATA FROM P0.1
MOV B.(X),C ;IN REGISTER B.
INC X ;INDEX FOR REGISTER B
DJNZ 00H,START
END

but this program can't running properly.
register B can't count up ( B.0, B.1, ....B.8).
thank for answer my question



List of 7 messages in thread
TopicAuthorDate
array in asm51            01/01/70 00:00      
   RE: array in asm51            01/01/70 00:00      
   RE: array in asm51            01/01/70 00:00      
      RE: array in asm51            01/01/70 00:00      
         RE: array in asm51            01/01/70 00:00      
   RE: array in asm51            01/01/70 00:00      
   RE: array in asm51            01/01/70 00:00      

Back to Subject List