News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

How to convert a qword negative integer

Started by RuiLoureiro, October 30, 2016, 12:35:09 AM

Previous topic - Next topic

RuiLoureiro

Hi all
i dont remember this now
How to convert a qword EDX:EAX to a positive qword EDX:EAX ?
Thanks  :t
:icon14:

nidud

#1
deleted

RuiLoureiro


Mikl__

#3
Olá, Rui!
AB.CDh=-(54.33h)
AB.80h=-(54.80h)
AB.4Fh=-(54.B1h)
AB.01h=-(54.FFh)
AB.00h=-(55.00h)
      not edx
      neg eax
      jnz exit
      inc edx
exit: ...
NEG and Flags Affected
Quote from: Intel® 64 and IA-32 Architectures
Software Developer's Manual. Volume 2B: Instruction Set Reference, N-Z
The CF flag set to 0 if the source operand is 0; otherwise it is set to 1. The OF, SF, ZF, AF, and PF flags are set according to the result.
not edx
neg eax
adc edx,0
na decisão de nidud trocar as primeira e segunda linhasneg edx
neg eax
sbb edx,0

RuiLoureiro

Olá Mikl__
Obrigado pela tua colaboração.
Então a solução do nidud não deve estar correcta, não é ?
Em todo o caso eu já não vou precisar disso.
Thank you so much, my friend Mkl__  :t

I am working in a new set of procedures
to implement a new way to do derivatives (and not only).
But it needs a lot of work.
The starting point is this: we have only 3 types
of expressions and 3 types of numeric constants:
integer- 3, -(50/5), 0.025E3
real- 2.3, -1.45e-5, ...
and rational- (-2/3), (4/5), (7/5), ...
And we have also literal constants(a,b,c,d...), pi and 'e'.
Solving an expression is to do a loop until the end
and solving each type (only 3). Of course the starting
result is a null string and each particular result
is added to that string. Till now, it works.
Até breve !
Good luck
:icon14: