################################################## ######################### Transfering the contents of array into register ################################################## #########################
x y
info
.aseg val,data .org 3oh .dsb .org 45h .dsb .rseg mv,code mov psw,#10h mov dptr,#info mov a,#00h movc a,@a+dptr mov r0,a mov a,#01h movc a,@a+dptr mov r1,a mov a,#02h movc a,@a+dptr mov r2,a mov a,#03h movc a,@a+dptr mov r3,a mov x,#23h mov y,#77h mov a ,r3 mov psw,#18h mov r0,a mov psw,#10h mov r4,a mov y,a .db1 34h,45h,56h,67h nop nop .end
;change to bank 3 ;initialize a with 0 ;move the data 34h to r0 ;move the data 45h to r1 ;move the data 56h to r2 ;move the data 67h to r3 ;load data 23h to x ;load data 77h to y ;change to bank 4 ;change to bank 3 ;initialize array