You are on page 1of 8

ScienceEducationProject

) (
8
8 256
8 .
128 1 128
.128


RD
.

RD WR

ScienceEducationProject



.( "
"





.
.

ScienceEducationProject

" "
.
:

LOADAmemLoadregisterAfrommemoryaddress

LOADBmemLoadregisterBfrommemoryaddress

CONBconLoadaconstantvalueintoregisterB

SAVEBmemSaveregisterBtomemoryaddress

SAVECmemSaveregisterCtomemoryaddress

ADDAddAandBandstoretheresultinC

SUBSubtractAandBandstoretheresultinC

MULMultiplyAandBandstoretheresultinC

DIVDivideAandBandstoretheresultinC

COMCompareAandBandstoretheresultintest

JUMPaddrJumptoanaddress

JEQaddrJump,ifequal,toaddress

JNEQaddrJump,ifnotequal,toaddress

JGaddrJump,ifgreaterthan,toaddress

JGEaddrJump,ifgreaterthanorequal,toaddress

JLaddrJump,iflessthan,toaddress

JLEaddrJump,iflessthanorequal,toaddress

STOPStopexecution
3

ScienceEducationProject

:
C C
128 )
( 0
:
//Assumeaisataddress128
//AssumeFisataddress129
//a=1

0 CONB1
1 SAVEB128

//f=1

2 CONB1
3 SAVEB129

4 LOADA128 //ifa>5thejumpto17
5 CONB5
6 COM
7 JG17
8 LOADA129 //f=f*a
9 LOADB128
10 MUL
11 SAVEC129
12 LOADA128 //a=a+1
13 CONB1
14 ADD
15 SAVEC128
//loopbacktoif

16 JUMP4
17 STOP

:
4

ScienceEducationProject

1
:
.
.RD
.
.
2 ADD:
.
.C
3.


15 8088 80
16 .
.
" "
5
5
.

ScienceEducationProject

32

64



).(!

64
1992
AMD
G5 64 . 64
6464.

ScienceEducationProject

64


32 2
4 .

256512
4

2 4 .64

).(
64
64
.
64

ScienceEducationProject


)(

) (


.

You might also like