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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/30/06 18:33
Read: times


 
#108763 - Table in Memory
Responding to: ???'s previous message
Hi Daan,

you can use db command like,

table: db 24h,33h,39h

db stands for define byte. Now you can use the Datapointer (dptr) to access that table. This looks like,

mov a,#00h ;counter
mov dptr,#table ;pointer @ table
movc a,@a+dptr ;get first char. from table

At this time the first character 24h is in the accumulator.
Now you can increment a and get the next char.

Hope this helps

Bernd

List of 6 messages in thread
TopicAuthorDate
Table in memory            01/01/70 00:00      
   compiler dependent            01/01/70 00:00      
      thx guys            01/01/70 00:00      
   Table in Memory            01/01/70 00:00      
      where does it say he is using assembler            01/01/70 00:00      
      example in C            01/01/70 00:00      

Back to Subject List