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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/24/03 18:28
Read: times


 
#42170 - RE: floating/3 byte number-lookup table
Responding to: ???'s previous message
You can only store bytes in ROM with DB.

One byte can not represent more than 256 different values. So if you want to store something which exceeds the possibilities of 1 byte; you MUST use more than 1 byte.

The way to create a lookup table with 16 bit words (2 bytes) is to use DW in stead of DB.

You can go as big as you like, but don't expect your assembler to help you do the (assembly time) maths. My assembler (metaLink) can not do more than 16-bit maths.

PS. You are not the first who must hear this: when you use a compiler you are compiling, when you use an assembler you are assembling.

List of 12 messages in thread
TopicAuthorDate
floating/3 byte number-lookup table            01/01/70 00:00      
   RE: floating/3 byte number-lookup table            01/01/70 00:00      
      RE: floating/3 byte number-lookup table            01/01/70 00:00      
         RE: floating/3 byte number-lookup table            01/01/70 00:00      
            RE: floating/3 byte number-lookup table            01/01/70 00:00      
   N Byte look up table            01/01/70 00:00      
      RE: N Byte look up table            01/01/70 00:00      
         RE: N Byte look up table            01/01/70 00:00      
         RE: N Byte look up table            01/01/70 00:00      
            RE: N Byte look up table            01/01/70 00:00      
               RE: N Byte look up table            01/01/70 00:00      
   RE: floating/3 byte number-lookup table            01/01/70 00:00      

Back to Subject List