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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/26/02 14:53
Read: times


 
#21160 - RE: table in 8051
a) use three tables
b) use one table with all the datas

org table
db d11,d12,d13
db d21,d22,d23
...

Calculate the address:

mov b,#3
mov a,row
dec a
mul ab
'add the value of "table" and "col" to A and B'
mov dph,b
mov dpl,a
movx a,@dptr


List of 6 messages in thread
TopicAuthorDate
table in 8051            01/01/70 00:00      
RE: table in 8051            01/01/70 00:00      
RE: table in 8051            01/01/70 00:00      
RE: table in 8051            01/01/70 00:00      
RE: table in 8051            01/01/70 00:00      
RE: table in 8051            01/01/70 00:00      

Back to Subject List