Sie sind auf Seite 1von 10

TMA1271 Introduction to Machine Architecture

HOW TO USE ESA 85-2


FFFFH FE00H FDFFH FA00H F9FFH F000H SYSTEM STACK

LABLE TABLE

TEXT BUFFER AREA

Example 1: LOCATION 8800 8802 8804 8805 8808 CONTENTS 06 22 0E 82 78 32 40 88 DF MNEMONIC MVI B, 22H MVI C, 82H MOV A, B STA 8840 RST 3 COMMENTS ; INITIALIZE REG B ; INITIALIZE REG C ;LOAD THE RAM LOCATION ;RETURN CONTROL TO THE MONITOR

STEPS ON KEYING THE INSTRUCTIONS FROM EXAMPLE 1 INTO THE KIT a) Press RESET Display shows ESA 85 b) Press Exam Memory Display shows c)

Press keypad 8800 ( to specific 8800 as the memory address to store the first instruction to the program) Display shows 8800

d)

Press NEXT ( to display the content of memory location 8800) Display shows 8800 XX
Page 1 of 10

TMA1271 Introduction to Machine Architecture

e)

Press keypad 06 ( to enter 06 as the new content for memory location 8800) Display shows 8800 06

f)

Press NEXT (to save the content 06 to 8800 and point to new location, 8801) Display shows 8801 XX

g)

Press keypad 22 ( to enter 22 as the new content for memory location 8801) Display shows 8801 22

h)

Press NEXT (to save the content 22 to 8801 and point to new location, 8802) Display shows 8802 XX

i)

Press keypad 0E ( to enter 0E as the new content for memory location 8802) Display shows 8802 0E

j)

Press NEXT (to save the content 0E to 8802 and point to new location, 8803) Display shows 8803 XX

k)

Press keypad 82 ( to enter 82 as the new content for memory location 8803) Display shows 8803 82

l)

Press NEXT (to save the content 06 to 8803 and point to new location, 8804) Display shows 8804 XX

m)

Press keypad 78 ( to enter 78 as the new content for memory location 8804) Display shows 8804 78

n)

Press NEXT (to save the content 78 to 8804 and point to new location, 8805) Display shows 8805 XX

o)

Press keypad 32 ( to enter 32 as the new content for memory location 8805) Display shows 8805 32

p)

Press NEXT (to save the content 32 to 8805 and point to new location, 8806) Display shows 8806 XX

Page 2 of 10

TMA1271 Introduction to Machine Architecture

q)

Press keypad 40 ( to enter 40 as the new content for memory location 8806) Display shows 8806 40

r)

Press NEXT (to save the content 40 to 8806 and point to new location, 8807) Display shows 8807 XX

s)

Press keypad 88 ( to enter 88 as the new content for memory location 8807) Display shows 8807 88

t)

Press NEXT (to save the content 88 to 8807 and point to new location, 8808) Display shows 8808 XX

u)

Press keypad DF (to enter DF as the new content for memory location 8808, as stop the program and return to control of monitor) Display shows 8808 DF

Page 3 of 10

TMA1271 Introduction to Machine Architecture

STEPS TO EXEUCTE THE PROGRAM FROM EXAMPLE 1 (in burst/RUN mode) a) Press RESET Display shows ESA 85 b) Press keypad GO Display shows XXXX, the memory address of Program Counter (PC) c) Type 8800 ( the start memory address of the program) Display shows 8800 d) Press EXECUTE ( as delimiter, where GO terminated and monitor return to the command entry mode) Display shows -e) Press RESET Display shows ESA 85 f) Press EXAM REG ( to show the contents of the registers) Display shows g)

.
A 22

Press A ( to show the contents of the register A) Display shows

h)

Press NEXT ( to show the contents of the register B) Display shows B 22

i)

Press NEXT ( to show the contents of the register C) Display shows C 82

j)

Press RESET Display shows ESA 85

k)

Press EXAM MEM Display shows

l)

Press keypad 8840 ( to find out what is the content in memory location 8840) Display shows 8840
Page 4 of 10

TMA1271 Introduction to Machine Architecture

m)

Press NEXT ( to display the content of memory location 8800) Display shows 8840 22

n)

Press EXECUTE ( to terminate memory exam) Display shows --

Page 5 of 10

TMA1271 Introduction to Machine Architecture

STEPS TO CLEAR THE CONTENTS OF REGISTERS

a)

Press RESET Display shows ESA 85

b)

Press EXAM REG ( to show the contents of the registers) Display shows

.
A XX

c)

Press A ( to show the contents of the register A) Display shows

d)

Type 00 ( to clear the content of register A) Display shows A 00

E0

Press NEXT ( to show the contents of the register B) Display shows B XX

Type 00 ( to clear the content of register B) Display shows B 00

Repeat the process for other registers

Page 6 of 10

TMA1271 Introduction to Machine Architecture

STEPS TO EXECUTE THE PROGRAM FROM EXAMPLE 1, ONE INSTRUCTION AT A TIME (in single step mode)

a)

Press RESET Display shows ESA 85

b)

Press SINGLE STEP Display shows XXXX, the memory address of Program Counter (PC)

c)

Type 8800 ( the start memory address of the program) Display shows 8800

d)

Press Next Display shows 8802 0E ( the content and the memory address of next instruction to be fetched)

e)

Press EXECUTE ( to terminate memory exam) Display shows --

f)

Press EXAM REG ( to show the contents of the registers) Display shows

.
A 00

g)

Press A ( to show the contents of the register A) Display shows

h)

Press NEXT ( to show the contents of the register B) Display shows B 22

i)

Press NEXT ( to show the contents of the register C) Display shows C 00

j)

Press EXECUTE Display shows --

k)

Press SINGLE STEP Display shows 8802, the memory address of Program Counter (PC)

Page 7 of 10

TMA1271 Introduction to Machine Architecture

l)

Type 8802 or Press Next Display shows 8802 0E ( the content and the memory address of next instruction to be fetch)

m)

Press Next Display shows 8804 78 ( the content and the memory address of next instruction to be fetched)

n)

Press EXECUTE ( to terminate memory exam) Display shows --

o)

Press EXAM REG ( to show the contents of the registers) Display shows

.
A 00

p)

Press A ( to show the contents of the register A) Display shows

q)

Press NEXT ( to show the contents of the register B) Display shows B 22

r)

Press NEXT ( to show the contents of the register C) Display shows C 82

s)

Press EXECUTE Display shows --

t)

Press SINGLE STEP Display shows 8804, the memory address of Program Counter (PC)

u)

Press Next Display shows 8805 32 ( the content and the memory address of next instruction to be fetched)

v)

Press EXECUTE ( to terminate single step) Display shows --

w)

Press EXAM REG ( to show the contents of the registers) Display shows

.
Page 8 of 10

TMA1271 Introduction to Machine Architecture

x)

Press A ( to show the contents of the register A) Display shows A 22

y)

Press NEXT ( to show the contents of the register B) Display shows B 22

z)

Press NEXT ( to show the contents of the register C) Display shows C 82

aa)

Press EXECUTE Display shows --

ab)

Press SINGLE STEP Display shows 8805, the memory address of Program Counter (PC)

ac)

Press Next Display shows 8808 DF ( the content and the memory address of next instruction to be fetched)

ad)

Press EXECUTE ( to terminate single step) Display shows --

ae)

Press EXAM REG ( to show the contents of the registers) Display shows

.
A 22

af)

Press A ( to show the contents of the register A) Display shows

ag)

Press NEXT ( to show the contents of the register B) Display shows B 22

ah)

Press NEXT ( to show the contents of the register C) Display shows C 82

ai)

Press EXECUTE Display shows --

Page 9 of 10

TMA1271 Introduction to Machine Architecture

aj)

Press EXAM MEM Display shows

ak)

Press keypad 8840 ( to find out what is the content in memory location 8840) Display shows 8840

al)

Press NEXT ( to display the content of memory location 8800) Display shows 8840 22

am)

Press EXECUTE ( to terminate memory exam) Display shows --

an)

Press SINGLE STEP Display shows 8808, the memory address of Program Counter (PC)

ao)

Press Next Display shows 8809 XX ( the content and the memory address of next instruction to be fetched)

ap)

Press EXECUTE ( to terminate single step) Display shows --

Aq)

Repeat process from af) to view register content Press EXECUTE ( to terminate memory exam) Display shows --

Page 10 of 10

Das könnte Ihnen auch gefallen