32-bit divide/multiply

ZXNet echo conference «code.zx»

From Valerij Kozhevnikoff To All 4 December 2002

Hello, All! We need quick subject procedures. Does anyone know how to do this? And what is the result? At the same time, 16-bit is possible, I’ll compare it with mine. ;BC=BC/DE ;HL=remainder DIV LD A,B LD B,#10 LD HL,0 DIV1 RL C R.L.A. ADC HL,HL SBC HL,DE JR NC,DIV2 ADD HL,DE DIV2 CCF DJNZ DIV1 RL C R.L.A. LD B,A RET ;HLBC=DE*BC MUL LD HL,0 LD A,17 MUL0 RR B RR C DEC A RET Z JR NC,$+3 ADD HL,DE RR H RR L JP MUL0 WBR, Jason. /*e-mail: jason2000(scary dog)yandex.ru ICQ: 62235830*/ /np:/ *silence*

From Aleksey Senilov To Valerij Kozhevnikoff 7 December 2002

||*()*|| Hello, _/Valerij/_! December 04, 2002 06:43, Valerij Kozhevnikoff wrote to All: VK> We need quick subject procedures. VK> Does anyone know how to do this? And what is the result? VK> At the same time, you can compare 16-bit with mine. I did it once, HLDE/H'L'D'E'... But obviously not so fast. Only for calculator, or Fort. All the best! /*Gandalf*/ *Grey* was with you. ||*()*||

From Valerij Kozhevnikoff To Aleksey Senilov 11 December 2002

Hello, Aleksey! 07 Dec 02 10:41, Aleksey Senilov -> Valerij Kozhevnikoff: VK>> Quick subject procedures are needed. VK>> Does anyone know how to do this? And what is the result? VK>> At the same time, you can compare 16-bit with mine. AS> I did it once, HLDE/H'L'D'E' ... But obviously not so fast. Only for AS> calculator, or Forth. Found a library of arithmetic procedures for CP/M. What's not there? And 32-bit arithmetic and floating point, etc. etc. Who needs it? Although it is under M80, Alasm should digest it normally. WBR, Jason. /*e-mail: jason2000(scary dog)yandex.ru ICQ: 62235830*/ /np:/ *silence*

From Aleksey Senilov To Valerij Kozhevnikoff 17 December 2002

||*()*|| Hello, _/Valerij/_! December 11, 2002 04:54, Valerij Kozhevnikoff wrote to Aleksey Senilov: AS>> I did it once, HLDE/H'L'D'E' ... But obviously not so fast. Only AS>> for a calculator, or Forth. VK> Found a library of arithmetic procedures for CP/M. Just what is there VK> no. And 32-bit arithmetic and floating point, etc. etc. Who needs it? VK> Although it is under M80, Alasm should digest it normally. Please! ;) All the best! /*Gandalf*/ *Grey* was with you. ||*()*||