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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/18/05 15:50
Modified:
  10/18/05 15:59

Read: times


 
#102580 - OT: Maxwell's equations
Responding to: ???'s previous message
Well, in fact, since times of Maxwell's equations, plus maybe some quantum theory of Planck et co., the whole electronics theory and stuff is slightly redundant... Everything can be deduced from them, with some effort...


Jan Waclawek

[EDIT] OK this was really OT. Let me just add, for Jeff, he could also subtract for comparison, such as:
   mov   a,r3   ;we want to know if r3 is greater or equal than 125
   clr   c      ;subb subtrats with borrow, so to be sure we clear carry
   subb  a,#125
   jc    Less 
   ;we get here if r3 was greater than or equal 125
Less:

This seems not too practical for single-byte variables as cjne is easier to do, but might be a way to compare multi-byte variables... OK they can be compared using cjne, too... the difference is, ehm, one byte of code memory... and the sub method lasts longer but lasts the same time for each input...
   mov   a,r3    ;r3:r4 compare to 12345
   cjne  a,#HIGH(12345),Label1
   mov   a,r4
   cjne  a,#LOW(12345),Label1
Label1:
   jc    Less
;here we have greater or equal
Less:



List of 20 messages in thread
TopicAuthorDate
tablebot            01/01/70 00:00      
   RTFM            01/01/70 00:00      
   from the tutorial            01/01/70 00:00      
      thank            01/01/70 00:00      
      the tutorial explanation is incomplete            01/01/70 00:00      
         Only the Bible?            01/01/70 00:00      
            OT: Maxwell's equations            01/01/70 00:00      
               OT: Life            01/01/70 00:00      
                  thanks for the input all, but krap!            01/01/70 00:00      
               no acc load needs            01/01/70 00:00      
                  of course            01/01/70 00:00      
                  revised :            01/01/70 00:00      
                     comments            01/01/70 00:00      
            Only the bible?            01/01/70 00:00      
               bible?            01/01/70 00:00      
                  The point of "the bible" is not that any            01/01/70 00:00      
                  Daunting?            01/01/70 00:00      
                     pos comp            01/01/70 00:00      
                        The female must have seen the bike :)            01/01/70 00:00      
                        alternative pdf readers            01/01/70 00:00      

Back to Subject List