1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Programming the z80 micro-processor to do a 16 bit divide function.

Discussion in 'Assembly Language Programming (ALP) Forum' started by timothyhollis, Dec 6, 2009.

  1. timothyhollis

    timothyhollis New Member

    Dec 6, 2009
    Likes Received:
    Trophy Points:
    Can anyone help me? I am trying to program the z80 microprocessor to do a 16 bit divide function using positive or negative numbers in hex format. I wonder if i can compare notes using assembly language.

    The Requirements;
    1. A number will be put into in 1900/1901 for the dividend.
    2. A different or same number will be put into 1902/1903 for the divisor.
    3. The quotient or results must be put into 1904/1905.
    4. Print out the dividend, divisor and quotient (results) on the z80 printer. If the an answer can not be obtained (i.e. divide by 0 - or any other valid reason) print out the "ffff" ( which will mean error)

    Can anyone help me, Please?

Share This Page