8051 assembler and simulator - write and assemble a program


Assembler and Simulator

OBJECTIVES:

- To examine and use an 8051 assembler.
- To examine and use an 8051 simulator.

ACTIVITY 1
Write and assemble a program to move value 99H to register A. Then from register A move it to all registers R0 - R7. Use the simulator to single-step the program and examine the registers.

ACTIVITY 2
Write and assemble a program to add all the single digits of your ID number and save the result in R2. Pick 7 random numbers (all single digit) if you do not want to use your ID number. Then use the simulator to single-step the program and examine the registers.

1. Indicate the size (8- or 16-bit) of each of the following registers.

            PC =              A=                        B=

            R0=               R1=                       R2=            R7=

2. For Question 1, indicate the largest value (in decimal) that each register can contain.

            PC =              A=                                    B=

            R0=                   R1=                R2=                     R7=

3. For Question 1, indicate the largest value (in hex) that each register can contain.

PC = FFFFH A=FFH B= FFH


R0= FFH R1= FFH R2= FFH R7=FFH

4. Who generates each of the following files and what is the use of each.

.asm
.lst

.obj

.abs

.hex

Solution Preview :

Prepared by a verified Expert
Other Engineering: 8051 assembler and simulator - write and assemble a program
Reference No:- TGS02479450

Now Priced at $10 (50% Discount)

Recommended (98%)

Rated (4.3/5)