Please use assembly language in the simplest form possible.Please don’t copy the previous work, I am looking to check the codeitself.
Find the infinite series for SIN(X) in a calculus bookand implement it in a subroutine called SIN. Use EPOWER as anexample of how to do this.
EPOWER is as follows:
;Program SIN.ASM: Software driver program for SIN procedure.
.MODEL SMALL
.DATA
X DB 0,1,0,0,0
TEMP DB 5 DUP(?)
ETOX DB 5 DUP(?)
ZERO DB 0,0,0,0,0
.CODE
.STARTUP
CALL EPOWER
.EXIT
EPOWER PROC FAR
LEA SI,ZERO ;predefined constant 0
LEA DI,ETOX
CALL FAR PTR COPY ;clear result
MOV CX,10 ;init loop counter
NEXTERM: LEA SI,X ;compute numerator
MOV AL,CL
CALL FAR PTR POWER
LEA BX,TEMP ;save numerator
CALL FAR PTR SAVE
MOV AL,CL ;compute
PayPal Gateway not configured
PayPal Gateway not configured