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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/15/05 07:38
Read: times


 
#101083 - My solution!
Responding to: ???'s previous message
;for reading:
call read_from_port_1
anl a,#0f0h
swap a
;now a is p1.7...p1.4

;for writing:
mov a,data
call write_to_port_1




write_to_port_1:
mov p1.0,acc.0
mov p1.1,acc.1
mov p1.2,acc.2
mov p1.3,acc.3
ret

read_from_port_1:
mov acc.7,p1.7
mov acc.6,p1.6
mov acc.5,p1.5
mov acc.4,p1.4
ret






List of 23 messages in thread
TopicAuthorDate
Week puzzle IV            01/01/70 00:00      
   In my opinion            01/01/70 00:00      
      no            01/01/70 00:00      
         Bufff!! then TRB            01/01/70 00:00      
            Me and my shadow, walking down the aven            01/01/70 00:00      
               You & your shadow            01/01/70 00:00      
                  http://www.coleporter.org/            01/01/70 00:00      
                     it's a hint            01/01/70 00:00      
   Well            01/01/70 00:00      
      you got it            01/01/70 00:00      
         Just OR with ones            01/01/70 00:00      
            how?            01/01/70 00:00      
   a simple solution:            01/01/70 00:00      
      not atomic            01/01/70 00:00      
         atomic not possible in general !            01/01/70 00:00      
   My solution!            01/01/70 00:00      
      Wrong            01/01/70 00:00      
      not atomic            01/01/70 00:00      
         Ok, here is the shadow            01/01/70 00:00      
            only four bits            01/01/70 00:00      
               2 Hints!            01/01/70 00:00      
                  Oh boy, do you need some bible time            01/01/70 00:00      
                  re: 2 Hints!            01/01/70 00:00      

Back to Subject List