flat assembler
Message board for the users of flat assembler.
Index
> DOS > Assembler routines |
Author |
|
Jzee 12 Apr 2005, 21:19
Hi there,
I'll be much appreciated if you guys could help me out. I'm looking for assembler routines as follows: a) 5 digit BCD to binary conversion b) 16-bit binary to BCD conversion c) 64-bit X 32-bit multiplication d) 64-bit / 64-bit comparison If you could supply me with these routines jzalho@hotmail.com If you know of where I can find them on the net, let me know. Thank you in advance. |
|||
12 Apr 2005, 21:19 |
|
vid 12 Apr 2005, 22:41
another school project?
|
|||
12 Apr 2005, 22:41 |
|
Jzee 13 Apr 2005, 06:01
Yip, for this afternoon.
|
|||
13 Apr 2005, 06:01 |
|
MCD 13 Apr 2005, 09:40
I made this 64nit * 32bit multiply code:
Code: ;ecx:eax * ebx -> ebx:ecx:eax Mul64_32: ;remove the first instruction line if you can afford to swap ecx and eax ;input registers xchg eax,ecx mul ebx xchg eax,ecx xchg edx,ebx mul ebx add edx,ecx adc ebx,0 ret _________________ MCD - the inevitable return of the Mad Computer Doggy -||__/ .|+-~ .|| || |
|||
13 Apr 2005, 09:40 |
|
Bitdog 21 Apr 2005, 07:13
BCD = Binary Coded Decimal
A hex digit holds the value of 0-9 A word has 4 digits BCD holds a value in every 4 bits (called a nibble) AL reg can hold the BCD value of 99 decimal max. AX = 9999 BCD max (comprehendo?) AAM is an instruction associated with BCD conversions http://bitdog.home.att.net/files/fasmenv.zip unzips to path and creates an environment/dir-tree. C:\FASM\INC16\ (dir has BCD conversion macro's some where) I hope there is some BCD help in there some where for you ? (ps. please correct/point-out any errors in this message) |
|||
21 Apr 2005, 07:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.