flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
BiDark
Hello Tomasz,
I can't do 80 bits decimal Code: fbld [here] here dt 4 error: 'invalid value' fbld need m80 bits decimal (currently accepts only floating point?). |
|||
![]() |
|
Tomasz Grysztar
Here's a sample macro:
Code: macro BCD name,value { label name tword virtual at 0 times 20 db '0' db `value qval = 0 wval = 0 repeat 16 load a byte from $-% qval = qval + (a-'0') shl ((%-1)*4) end repeat repeat 4 load a byte from $-16-% wval = wval + (a-'0') shl ((%-1)*4) end repeat end virtual dq qval dw wval } BCD here,12345678999999977773 |
|||
![]() |
|
BiDark
Really wish an 'build-in' support (Masm has dt and real10 for this).
You'r really fast. Thanks! |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.