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 14:23
Modified:
  03/21/07 14:25

Read: times


 
#135512 - what is simple?
Responding to: ???'s previous message
This depends on definition of "simple".

You might for example consider the following code:
   mov   dptr,#SetbAddr     ;address in "vonNeummann" external RAM
   mov   a,#0D2h      ;opcode for setb
   movx  @dptr,a
   inc   dptr
   mov   a,r0         ;our bit address
   movx  @dptr,a
   inc   dptr
   mov   a,#22        ;opcode for ret
   movx  @dptr,a
   lcall SetbAddr

... but it requires the presence of external RAM wired up for both code and data address. It can be stripped down upon subsequent use to bare
   mov   dptr,#SetbAddr+1
   mov   a,r0
   movx  @dptr,a
   lcall SetbAddr
if the RAM content of surrounding addresses remains intact.

Is this SIMPLE enough? :-)

JW


PS. This method has the advantage over the "ROM-only" method in that the WHOLE bit addressable space will be served, including the bit-addressable SFR area - this is quite cumbersome using ROM only.

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