??? 09/15/05 08:29 Read: times |
#101098 - not atomic Responding to: ???'s previous message |
hi,
Reza Javan said:
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 Well, there is no MOV bit,bit instruction for 8051 core. Assume you mean transfer bit over Carry flag. This is correct solution but it does not modify all bits at the same time. In some applications it may require to modify all bits with only one instruction. Could you find a solution for such requirement? Regards, Oleg |
Topic | Author | Date |
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 |