Sunteți pe pagina 1din 3

PROIECT

Tema: Aplicatie in limbaj de asamblare.


Student:Rus Silviu Igas-Vid
IETI ORADEA ANUL IV
2019-2020
Profesor:Daniel Trip
PROCESOARE NUMERICE DE SEMNAL
#PROCESSORINITIALIZATION

Ianuarie 2020
#Use of INTR Instruction
* Repeat Block.
RPTB END_LOOP–1 ;For i=0; i<=15; i++.
ZAP ;ACC = PREG = 0
SQRA *+,AR2 ;TREG0 = X
PREG = X^2
SPL TEMP ;Save X^2.
MPY *+ ;PREG = b*X
LTA TEMP ;TREG = X^2 ACC = b*X
MPY *+ ;PREG = a*X^2
APAC ;ACC = a*X^2 + b*X
ADD *,0,AR3 ;ACC = A*X^2 + b*X + c
SACL *+,0,AR1 ;Save Y.
CRGT ;Save maximum Y.
END_LOOP
SACL TEMP ;Save the result temporarily LACC
#RE_ENTER
PUSH ;Push re-entry address onto stack
RETI ;Pop all registers
RE_ENTER LACC TEMP ;Load ACC with the max. value
RET ;Return to interrupt ed code