Author Topic: St0ToStr error  (Read 387 times)

a1sbofo

  • Regular Member
  • *
  • Posts: 5
St0ToStr error
« on: January 06, 2023, 03:04:19 AM »
I think an instruction is missing at the end of

C:\ObjAsm\Code\ObjMem\Common\St0ToStr_AXP.inc.

In case of an error, the proc: St0ToStrA does not return correctly. A 'ret' instruction is missing.

Thanks for version C.2 of ObjAsm ("Christmas release")

HSE

  • Member
  • *****
  • Posts: 2494
  • AMD 7-32 / i3 10-64
Re: St0ToStr error
« Reply #1 on: January 06, 2023, 05:03:15 AM »
 :thumbsup:

 :biggrin: Too lazy to search the problem, a couple of days ago I maked:
Code: [Select]
    DbgFloatCheck macro var1
        .if r8IsValid (&var1)
            DbgFloat &var1
        .else
            DbgText "not valid"   
        .endif
    endm
Equations in Assembly: SmplMath

Biterider

  • Moderator
  • Member
  • *****
  • Posts: 1082
  • ObjAsm Developer
    • ObjAsm
Re: St0ToStr error
« Reply #2 on: January 06, 2023, 05:47:21 AM »
Thanks a1sbofo  :thumbsup:
Please just add the "ret" instruction and recompile the library using:
\ObjAsm\Code\ObjMem\MakeObjMem3264.cmd.

Alternatively, you can download the new library from GitHub.
https://github.com/ObjAsm/ObjAsm-C.2/blob/master/Code/Lib/32/ObjAsm/ObjMem32.lib
https://github.com/ObjAsm/ObjAsm-C.2/blob/master/Code/Lib/64/ObjAsm/ObjMem64.lib
https://github.com/ObjAsm/ObjAsm-C.2/blob/master/Code/ObjMem/Common/St0ToStr_AXP.inc

Quote
Thanks for version C.2 of ObjAsm ("Christmas release")
You are welcome!  :biggrin:

Biterider

a1sbofo

  • Regular Member
  • *
  • Posts: 5
Re: St0ToStr error
« Reply #3 on: January 07, 2023, 03:35:24 AM »
Hello
Instruction "ret" added. All is ok - Thanks

HSE

  • Member
  • *****
  • Posts: 2494
  • AMD 7-32 / i3 10-64
Re: St0ToStr error
« Reply #4 on: January 07, 2023, 04:07:54 AM »
 :thumbsup:
Equations in Assembly: SmplMath