News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

irvine32 To MASM32

Started by hfheatherfox07, August 22, 2011, 01:58:36 AM

Previous topic - Next topic

baltoro

Baltoro

dedndave

welllllll
you might give this a try
it may not work for all examples - hell, it may not work at all - lol

in the Irvine32.inc file, there is a line near the beginning
INCLUDE SmallWin.inc

you might be able to comment that line out
then, in your asm source file....
        INCLUDE    \masm32\include\masm32rt.inc
        INCLUDE    Irvine32.inc
        INCLUDELIB Irvine32.lib


from there, you are likely to get a few errors
take them one at a time and sort them out
the first error listed is usually the best one to fix first

it will be a good lesson in debugging   :bg

i'd be surprised if there weren't a few naming conflicts

Tedd

Assuming I were crazy enough to write it (I am), would you want a drop-in replacement, or a lib that provides the same functions implemented in an Masm32 compatible way?
No snowflake in an avalanche feels responsible.

dedndave

well - i think the idea is to have Kip's examples work
whether you write wrappers for masm32 functions to emulate Kip's functions
or convert Kip's library to work with masm32

of course, many of his examples are 16-bit - at least that reduces the number we have to make work   :bg
i found them, someplace - i can post them if you like

hfheatherfox07

In this case ... I just decided to write it masm

dedndave

a good choice   :U

you won't regret it
and, you won't regret learning about Kip's libraries, either

hfheatherfox07

Quote from: dedndave on August 24, 2011, 01:46:15 AM
a good choice   :U

you won't regret it
and, you won't regret learning about Kip's libraries, either

:red I am a little embraced  :red that I was so concentrated with  trying to convert this that I did not read the code, and realize how easy it would be to write in MASM....


hutch--

Something to keep in mind, Win32 is a standard set in the portable executable standard and the Intel ABI, learn good habits and it will come back to you in terms of reliability and performance. Avoid sloppy code that pushed all registers with PUSHAD and POPAD and do it properly.


    push ebx
    push esi
    push edi

  ; write your code here

    pop edi
    pop esi
    pop ebx


If none of these 3 registers are used in the algo then you don't have to preserve and restore them. learn to use memory operands with LOCAL scope, if your algo needs to be faster you start with memory operands then shift to registers one you have it up and running properly. There are many more tricks but the base line is master the standard interface for procedures first so you have fast reliable code.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php