Department of Computer Science and Information EngineeringNational Cheng Kung University, TAIWAN
HANELREGISTER ADDRESSING MODE
Use registers to hold the data to be manipulated The source and destination registers must match in size
¾MOV DPTR,A
will give an error
The movement of data between Rnregisters is not allowed
¾MOV R4,R7
is invalid
MOV A,R0 ;copycontents of R0 into AMOV R2,A ;copy contents of A into R2ADD A,R5 ;add contents of R5 to AADD A,R7 ;add contents of R7 to AMOV R6,A ;save accumulator in R6MOV DPTR,#25F5HMOV R7,DPLMOV R6,DPH