Factorial using FAR PROCEDURE (Assembly Language)

; Program to compute factorial of a number using FAR Procedure DATA SEGMENT ;INITIALIZE DATA SEGMENT NUM1 DW 05H ;INITIALIZE NUM1 ANY DATA RESULT DW ? ;INITIALIZE RESULT DATA ENDS ;END OF DATA SEGMENT MY SEGMENT ;DEFINING OUR OWN SEGMENT ;SYNTAX – XX(SEGMENT NAME) SEGMENT FACT PROC FAR ;DEFINING FAR PROCEDURE ;SYNTAX – XXX(PROCEDURE NAME) PROC FAR(METHOD) MUL CX ;MULTIPLY THE CONTENT OF CX REGISTER … Continue reading Factorial using FAR PROCEDURE (Assembly Language)