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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/01/00 18:05
Read: times


 
#1371 - RE: use internal code mem with scratch pad content
Suppose that your data are written at 10FFh addr of code memory
Use indexed addressing to read the data
in code memory
____________________________________
org 0000h
MOV A,#0
MOV R0,#0
mov dptr,#10FFh
LOOP103:MOVC A,@A+DPTR
mov r1,a ;before xor
;save data in r1
;very important
;if you don't
;know the value
;in addr 3Fh
xrl a,3fH ; A(XOR)data in 3Fh
jz equal
INC R0
MOV A,R0
CJNE R0,#5,LOOP103
equal: ..............

;look up table
org 10ffh
db 10
db 20
db 30
db 22
db 12
_______________________________________
Vasilis

List of 3 messages in thread
TopicAuthorDate
use internal code mem with scratch pad contents            01/01/70 00:00      
RE: use internal code mem with scratch pad content            01/01/70 00:00      
RE: use internal code mem with scratch pad content            01/01/70 00:00      

Back to Subject List