Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Assembly Language Programming (ALP) Forum (http://www.go4expert.com/forums/assembly-language-programming-forum/)
-   -   Programming the z80 micro-processor to do a 16 bit divide function. (http://www.go4expert.com/forums/programming-z80-micro-processor-16-bit-t20295/)

timothyhollis 6Dec2009 23:05

Programming the z80 micro-processor to do a 16 bit divide function.
 
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?


All times are GMT +5.5. The time now is 06:43.