msgbartop
Rapid Application Development
msgbarbottom

19 Oct 09 RadASM 2.2.1.8b Bugfix

o Fixed bug in masmParse.dll that caused sluggis editing on older machines.
o Fixed bug where red dot was missing if file is readonly or missing.
o Fixed bug where autoload was not saved if a file was unsaved on project close.

Reader's Comments

  1. |

    Hello, KetilO. May I find a resolution for this possible bug?

    http://pastebin.org/46655

    Thanks in advance!!

  2. |

    Updated pastie so you understand problem better:

    http://pastebin.org/46656

  3. |

    Hi SunBeam

    You could define it as a subroutine.
    The drawback is that you can’t use invoke, you are stuck with push and call.

    TrimString:
    push edi
    mov edi,[esp+8]
    .
    mov eax, [esp+12]
    .
    pop edi
    ret 8

    .
    .

    push 5Ch
    push offset dispBuffer
    call TrimString

    KetilO

  4. |

    After some more testing I came up with this:
    OPTION PROLOGUE:NONE
    OPTION EPILOGUE:NONE

    TrimString proc a:DWORD,b:DWORD

    push edi
    mov edi,[esp+8]
    xor eax, eax
    or ecx, -1
    repne scas word ptr [edi]
    inc ecx
    neg ecx
    dec edi
    mov eax, [esp+12]
    xchg ah, al
    std
    repne scas word ptr [edi]
    add edi, 2
    cmp word ptr [edi], ax
    je @f
    xor eax, eax
    jmp @end

    @@:
    add edi, 3
    mov eax, edi

    @end:
    cld
    pop edi
    ret 8

    TrimString endp

    OPTION PROLOGUE:PrologueDef
    OPTION EPILOGUE:EpilogueDef

    KetilO

  5. |

    Hello, KetilO.

    The idea wasn’t to do it all MANUALLY :-) Cuz from human point of view, one can easily check stack and adjust parameters. Idea was to alter compiler into checking parameters and directives accordingly and output the correct result given the specified circumstances..

  6. |

    Hi SunBeam

    Altering masm (the assembler) is not an option. Masm is a Microsoft product.
    It might be possible to craate your own macros for prologue, epilogue, proc and invoke.

    KetilO

  7. |

    Strangely I cannot change the color of numbers in the code editor under options.

  8. |

    Hi ally

    It works here.
    Maybe the fact that RadASM has a different color theme for each programing languade has you confused. Use Project / Set Assembler before you change the color.

    KetilO

Leave a Comment