Regarding 8086 microprocessor assembly code

Discussion in 'Programmer's Corner' started by TDY, Feb 10, 2009.

  1. TDY

    Thread Starter New Member

    Feb 9, 2009
    1
    0
    Anyone know how to write the code of N! in assembly language for 8086 microprocessor ? or and hints ?

    Thanks for replying :)
     
  2. RiJoRI

    Well-Known Member

    Aug 15, 2007
    536
    26
    -- Get the Ketman assembler - it's very helpful in doing '86 assembly code (single stepping, register mods, etc.)

    -- Write out the steps of generating n!, then translate it into assembler, using Ketman to help debug.

    -- Don't forget to limit the size of n. Calculating n! for 65537 is a LOT different from calculating it for 3!

    --Rich
     
Loading...