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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice