Hello,
I keep getting an error when trying to Compile any program in PIC Simulator IDE \, no matter how simple it is. Im trying to write a program that adds 7F9AH to BC48H and save the result in RAM memory locations starting at 40H. Here is my code:
org 0;
clr C
mov A, #48h
add A, #9ah ; 48h + 9ah
mov r0, A
mov A, #0bch
addc A, #7fh ; bc + 7f
mov r1, A
mov 40h, r1 ;storing into 40h
mov 41h, r0
End
What am I missing here?
I keep getting an error when trying to Compile any program in PIC Simulator IDE \, no matter how simple it is. Im trying to write a program that adds 7F9AH to BC48H and save the result in RAM memory locations starting at 40H. Here is my code:
org 0;
clr C
mov A, #48h
add A, #9ah ; 48h + 9ah
mov r0, A
mov A, #0bch
addc A, #7fh ; bc + 7f
mov r1, A
mov 40h, r1 ;storing into 40h
mov 41h, r0
End
What am I missing here?