The MASM Forum

Projects => ObjAsm => Topic started by: a1sbofo on January 06, 2023, 03:04:19 AM

Title: St0ToStr error
Post by: a1sbofo 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")
Title: Re: St0ToStr error
Post by: HSE on January 06, 2023, 05:03:15 AM
 :thumbsup:

:biggrin: Too lazy to search the problem, a couple of days ago I maked:    DbgFloatCheck macro var1
        .if r8IsValid (&var1)
            DbgFloat &var1
        .else
            DbgText "not valid"   
        .endif
    endm
Title: Re: St0ToStr error
Post by: Biterider 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/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/Lib/64/ObjAsm/ObjMem64.lib)
https://github.com/ObjAsm/ObjAsm-C.2/blob/master/Code/ObjMem/Common/St0ToStr_AXP.inc (https://github.com/ObjAsm/ObjAsm-C.2/blob/master/Code/ObjMem/Common/St0ToStr_AXP.inc)

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

Biterider
Title: Re: St0ToStr error
Post by: a1sbofo on January 07, 2023, 03:35:24 AM
Hello
Instruction "ret" added. All is ok - Thanks
Title: Re: St0ToStr error
Post by: HSE on January 07, 2023, 04:07:54 AM
 :thumbsup: