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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/05/00 21:15
Read: times


 
#2517 - RE: Bit problem
Assume you have the Set/Reset command in r7 and the bit address in r6 (00-3F).

setcmd equ XXh

dobits:
. mov a,r6
. anl a,#11111000b
. rr a
. rr a
. rr a
. add a,#20
. mov r0,a ;point to bit byte location
. mov a,r6
. anl a,#00000111b
. rl a
. movc a,@a+pc
. ajmp skip
. db 01h,02h,04h,08h,10h,20h,40h,80h
skip:
. cjne r7,#setcmd,rescmd
. orl a,@r0
. ajmp done
rescmd:
. cpl a
. anl a,@r0
done:
. mov @r0,a
. ret


List of 5 messages in thread
TopicAuthorDate
Bit problem            01/01/70 00:00      
RE: Bit problem            01/01/70 00:00      
RE: Bit problem            01/01/70 00:00      
RE: Bit problem            01/01/70 00:00      
RE: Bit problem            01/01/70 00:00      

Back to Subject List