Experiment 1 — Basic Arithmetic
This folder contains four simple 8051 assembly programs demonstrating basic arithmetic operations. Assemble and run them using Keil µVision or your preferred 8051 simulator.
Programs:
T1E1P1.asm— Addition: adds05Hand05H.T1E1P2.asm— Subtraction with borrow: subtracts0SHfrom0AHusingSUBB.T1E1P3.asm— Multiply: multiplies05Hby05HusingMUL AB.T1E1P4.asm— Divide: divides20Hby05HusingDIV AB.
Usage:
- Open the project in Keil µVision or load the
.asmfile in your simulator. - Assemble and single-step the program to observe register and flag changes.