Recent Posts

Pages: [1] 2 3 ... 10
1
The Campus / Re: floating point math?
« Last post by daydreamer on Today at 05:10:53 PM »
I think is:
Code: [Select]
.data
  r4t real4 0.0
.code
  fild z
  fstp r4t
  mov eax, r4t
  shr eax, 23d
  and eax, 0FFh  ; mantissa is 8 bit
  sub eax, 127d  ; mantissa is biased

I can understand that but this would give the range in the binary system. His first post indicated he wants to know the range in the decimal system.
I want todo it with a LUT,  from binary, speed like in converting lots of primes or other numbers
2
The Campus / Re: floating point math?
« Last post by HSE on Today at 12:41:57 PM »
Hi Raymond!!

Quote from: raymond link=topic=9464.msg103615#msg103615
I can understand that but this would give the range in the binary system.

His first post indicated he wants to know the range in the decimal system.

Just following Daydreamer's code.

I don't know what he want  :biggrin:
3
The Campus / Re: floating point math?
« Last post by raymond on Today at 11:05:39 AM »
I think is:
Code: [Select]
.data
  r4t real4 0.0
.code
  fild z
  fstp r4t
  mov eax, r4t
  shr eax, 23d
  and eax, 0FFh  ; mantissa is 8 bit
  sub eax, 127d  ; mantissa is biased

I can understand that but this would give the range in the binary system. His first post indicated he wants to know the range in the decimal system.
4
The Campus / Re: floating point math?
« Last post by HSE on Today at 09:05:37 AM »
I think is:
Code: [Select]
.data
  r4t real4 0.0
.code
  fild z
  fstp r4t
  mov eax, r4t
  shr eax, 23d
  and eax, 0FFh  ; mantissa is 8 bit
  sub eax, 127d  ; mantissa is biased
5
The Campus / Re: floating point math?
« Last post by raymond on Today at 07:21:40 AM »
Unfortunately, I am not at all familiar with the SSE instructions.

Furthermore, I don't know which assembler you may be using. And, for that reason, I would not know if an instruction such as "sar eax,23" would be interpreted by the assembler as meaning 23h or 23d without the specification. Similarly, would "eax=25" be a binary or decimal value of eax???
6
The Campus / Re: floating point math?
« Last post by daydreamer on Today at 06:37:07 AM »
Movss xmm0,z
Movd eax,xmm0
Mov string,'+'
Test eax,8000 0000h
Je L1
Mov string,'-'
L1: sar eax,23
And eax,7fh
Here I get strange results
When z 987654321, eax=25, when z -1000, eax is 8 =range 256?
After this I want to start with the range I detect above
To start toascii conversion loop
7
Assembler With Microsoft Visual C / Re: c++ imagerel 64 bits
« Last post by TouEnMasm on Today at 01:01:36 AM »
later,
put in comment work also with uasm
Code: [Select]
comment µ
; COMDAT pdata
pdata SEGMENT
$pdata$??_H@YAXPEAX_K1P6APEAX0@Z@Z DD imagerel $LN5
DD imagerel $LN5+102
DD imagerel $unwind$??_H@YAXPEAX_K1P6APEAX0@Z@Z
pdata ENDS
//////////++++++++++++
µ
8
64 Bit Assembler / Re: The Art of 64-Bit Assembly
« Last post by Mikl__ on July 26, 2021, 11:33:34 PM »
Привет, bomz!
есть с первой по десятую главу, к сожалению на английском...
9
The Campus / Re: winextra.inc Visual Studio 2019's ML build errors
« Last post by hutch-- on July 26, 2021, 10:41:23 PM »
The includes were produced for ml.exe version 6.14, if you get a notation difference using a later version, do as you have mentioned, modify the includes to fit the ml.exe version you are using.
10
Mikl__'s ml64 examples / Re: NeHe Tutorial in masm64
« Last post by Mikl__ on July 26, 2021, 08:51:13 PM »
Quote
Microsoft (R) Macro Assembler (x64) Version 14.30.30401.0
Microsoft (R) Incremental Linker Version 14.30.30401.0
I installed Visual Studio 2022 and rebuilt the NeHe tutorials, replacing the ml64.exe and link.exe with newer versions did not result in errors
Pages: [1] 2 3 ... 10