Debug an Assembly code using Keil micro vision

Start A project

Project > New UVision Project


Save with project Name

Select the target Device – AT89S52

Write Assemble code

MOV A,30H
MOV B,31H
ADD A,B
MOV 32H,A
END

An assembly code must end with END  directive

save it as filename.s


Build the project by pressing F7

Press Debugger Button Cntrl+F5

To access RAM memory go to View> Memory Windows > Memory 1


Set Memory as D:0x00 ( D refers Data Memory is RAM) . Double Click on the location to enter new values

Press F11 for step by step execution

 

 

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *