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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/21/07 11:13
Read: times


 
#135494 - One way...
Responding to: ???'s previous message
... coud be working with bytes 20H to 20F and modifiy their bits according to some pointer.
Supose you want to set bit 10.
10/8=1 means working with byte 20H+1. The remaining (2) means working with a mask like 0000 0010B. You can put the 8 masks in CODE. This "method" could work in any DATA area. Of course, you will need a subroutine to have these things done (aprox. 80 bytes of code in assembler, I guess).

Unfortunately, '51 does not allow bit arrays. May be some guy have a better idea.
Daniel

List of 13 messages in thread
TopicAuthorDate
Bit addressing            01/01/70 00:00      
   Example            01/01/70 00:00      
   One way...            01/01/70 00:00      
   what is simple?            01/01/70 00:00      
      OH boy            01/01/70 00:00      
         this is FAR from my notion of self-modifying code.            01/01/70 00:00      
            self modifyeing code - definition            01/01/70 00:00      
               context, context, context...            01/01/70 00:00      
                  where do you see that???            01/01/70 00:00      
                     Coding religion            01/01/70 00:00      
         I think he did RTFM?            01/01/70 00:00      
            you are right, sorry            01/01/70 00:00      
   How about using XOR function??            01/01/70 00:00      

Back to Subject List