Question: Write an x 8 6 intel assembly procedure following the cdecl protocol to calculate permutation using the following formula. nPr = n ! / (

Write an x86 intel assembly procedure following the cdecl protocol to calculate permutation using the following formula.
nPr = n!/(nr)!
Procedure Name: MyPerm
Parameter 1: DWORD
Parameter 2: DWORD
Return (in EAX): nPr (where n is the first parameter and r is the second parameter)
Example: MyPerm (6,2) should return 30 in EAX

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!