Anda di halaman 1dari 10

Objective: Able to execute assembly program using EASy68K.

Tool: EASy68K Software


Procedure:

Running Simple Assembly Program: ORG START TOTAL CLR.W MOVE.B MOVEA.L LOOP ADD.B SUBI.B BNE MOVEA.L MOVE.W RTS SUM DATA DC.W DS.B END 0 16 START D0 #16, D1 #DATA, A0 (A0) +, D0 #1, D1 LOOP #SUM, A1 D0, (A1) $8000

a) b) c) d)

The program was executed using EASy68K Software The memory dump was defined after the execution of the program The contains of D0,D1,A0 and A1 after execution of the program was obtained The instruction of DS.B 16 was replaced to DS.B 8 and DS.B 32. Then program was executed and the results was discussed

e)

The ORG $8000 was change to ORG $800F and were repeated from a to d.

Result: a)

$8000 and DS.B 16 programming

$8000 and DS.B 16 register

$8000 and DS.B 16 memory b)

$8000 and DS.B 8 programming

$8000 and DS.B 8 register

$8000 and DS.B 8 memory

c)

$8000 and DS.B 32 programming

$8000 and DS.B 32 register

$8000 and DS.B 32 memory

d)

$800F and DS.B 16 register

$800F and DS.B 16 memory

e)

$800F and DS.B 8 register

$800F and DS.B 8 memory f)

$800F and DS.B 32 register

$800F and DS.B 32 memory

Discussion: For the first lab, software called EASy68K was used in order to execute the program that has been given. The left column is called label where its function is to set the value of program counter. The middle one is the command where program flow happens. The right column can called as address or the location of the data. MOVE, ADD, CLR are the opcodes while .B is the byte that going to be transferred, .B means 1 byte and .W means 2 byte. #16 is the source operand while D0 is the location where the data is transferred. After the program has been executed, the values for D0, D1, A0 and A1 are 000000F0, 00000000, 0000802E and 0000801C. After the value of DS.B have been changed to 8 and 32, the values of D0, D1, A0 and A1 still remains the same because function of DS.B is just to reserve data. When the address had been changed to $800F, the only difference is the starting reading point. In $8000 it reads from 00008000 while in $800F it reads from 00008010. The values for D0, D1, A0, A1 are 000000F0, 00000000, 0000803E, 0000802C. The values remains the same when DS.B were changed.

Conclusion: EASy68K software has been studied and used in order to run the program. Assembly language has been understood and studied. Objectives has been achieved.

References: The 68000 Microprocessor Fifth Edition James L. Antonakos http://www.easy68k.com/easy68kexamples.htm

Anda mungkin juga menyukai