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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/05/03 10:01
Read: times


 
#42927 - RE: arithmetic operators-assembly language
Responding to: ???'s previous message
What you are probably referring to is called assembly time expression evaluation. This is math that you can use to make the assembler do some maths while it is translating, you will not see any trace of it back in your object code. If we take + for example:

mov a,#3+1

While processing your source file, the assembler will see 3+1, do the maths, and put the end result of the expression (which is 4 by the way) in the object file.
Use this kind of math for instance to indicate addresses, relative to a base address:

mov a,base+1
mov b,base+2

it makes life much easier.

List of 11 messages in thread
TopicAuthorDate
arithmetic operators-assembly language            01/01/70 00:00      
   RE: arithmetic operators-assembly language            01/01/70 00:00      
      RE: hans & pranav            01/01/70 00:00      
   RE: arithmetic operators-assembly language            01/01/70 00:00      
   RE: arithmetic operators-assembly language            01/01/70 00:00      
      RE: Kalpak            01/01/70 00:00      
         RE: Kalpak            01/01/70 00:00      
            RE: Kalpak            01/01/70 00:00      
               RE: Kalpak - Andy            01/01/70 00:00      
               RE: Kalpak            01/01/70 00:00      
   RE: arithmetic operators-assembly language            01/01/70 00:00      

Back to Subject List