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/06 17:02
Read: times


 
#113135 - what about
Responding to: ???'s previous message
now accordingly I want to set bit 6 in the A register.
i.e. "setb A.R4"

Currently i just have it jump to a series of "cjne" statements that have the "setb" commands in sequence:

set_bit:
cjne r4,#7,set_b_6
setb a.7
jmp set_b_r
set_b_6: cjne r4,#6,set_b_5
setb a.6
jmp set_b_r


what about
for setting bit 6
mov r4,#040h
...
orl a,r4

sometimes the simple things make life more enjoyable

Erik


List of 16 messages in thread
TopicAuthorDate
setb command            01/01/70 00:00      
   You mean?            01/01/70 00:00      
      Not quite.            01/01/70 00:00      
         what about            01/01/70 00:00      
            what about            01/01/70 00:00      
               what about            01/01/70 00:00      
                  lookup/jumptable            01/01/70 00:00      
                     what I thought            01/01/70 00:00      
                  Shift register.            01/01/70 00:00      
   chapter 2            01/01/70 00:00      
   Indirect bit referencing            01/01/70 00:00      
      OK            01/01/70 00:00      
         Not Necessarily ...            01/01/70 00:00      
            well, you got one, now for the rest            01/01/70 00:00      
   using bits indirect            01/01/70 00:00      
      indirect bits            01/01/70 00:00      

Back to Subject List