News:

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

Main Menu

Assistance on proper installiton of masm32 on Windows 8, 64 bits

Started by charlay90, January 05, 2014, 10:26:55 AM

Previous topic - Next topic

dedndave

i copied the file Irvine32.lib into the \masm32\lib folder
i copied the file Irvine32.inc into the \masm32\include folder

i modified 3 lines in the \masm32\include\Irvine32.inc file
it's pretty easy, because you just want to comment them out...
;Modified dedndave ;INCLUDE SmallWin.inc ; MS-Windows prototypes, structures, and constants
;Modified dedndave ;INCLUDE VirtualKeys.inc

;Modified dedndave ;MsgBox PROTO ; display popup message box

there is no need for SmallWin.inc or VirtualKeys.inc because the contents
of those files are covered in the masm32 Windows.inc file

MsgBox is the name of a masm32 macro that is likely more powerful than Kip's function

now, you should be able to use masm32 and Irvine32 together
be aware that any Irvine32 example program that uses MsgBox will need some slight modification
        INCLUDE     \masm32\include\masm32rt.inc
        INCLUDE     \masm32\include\Irvine32.inc
        INCLUDELIB  \masm32\lib\Irvine32.lib

        .DATA

intA DWORD 15
intB DWORD 20
intC DWORD 10

        .CODE

_main   PROC

        MOV     EAX,intA
        ADD     EAX,intB
        SUB     EAX,intC

        call    DumpRegs

        inkey
        exit

_main   ENDP

        END     _main


results...
  EAX=00000019  EBX=7FFDD000  ECX=0012FFB0  EDX=7C90E514
  ESI=00000000  EDI=00000012  EBP=0012FFF0  ESP=0012FFC4
  EIP=00401016  EFL=00000212  CF=0  SF=0  ZF=0  OF=0  AF=1  PF=0

Press any key to continue ...


EAX = 19h (15+20-10 = 25 decimal)
CF=SF=ZF=OF=0

jj2007


dedndave

thanks Jochen
didn't you already do this once ?   :redface:

jj2007

Quote from: dedndave on January 07, 2014, 01:56:44 AM
thanks Jochen
didn't you already do this once ?   :redface:

See reply #14 - it's included in the MasmBasic package, test with \Masm32\MasmBasic\IrvineMB\IrvineMasm32.asc (and I actually got permission from Kip Irvine himself to redistribute it...)

But you did a better job because you really went to see what is needed and what is not ;-)

dedndave

actually - it could be improved upon
for example, Kip's macros are in Macros.inc, which looks like it could be added without modification
(copy it to \masm32\macros folder)

he has a few little odds and ends also, like...
TAB EQU 9

i should probably contact him and see if it's fair game to modify his content, etc   :t

jj2007

Quote from: dedndave on January 07, 2014, 04:19:09 AM
for example, Kip's macros are in Macros.inc, which looks like it could be added without modification
See \Masm32\MasmBasic\IrvineMb\IrvineMacsMb.asm

charlay90

 :greenclp:
thank you very much Dave and Jochen...i really apreciate the knowledge you have shared..it will go a long way...am able to use both libraries now :eusa_dance:

dedndave

you can also copy Irvine's Macro.inc into the masm32\macros folder
then.....
        INCLUDE     \masm32\include\masm32rt.inc
        INCLUDE     \masm32\include\Irvine32.inc
        INCLUDELIB  \masm32\lib\Irvine32.lib
        INCLUDE     \masm32\macros\Macros.inc


add that last line - from what i can see, Kip's macros all have names that don't conflict with anything else

Gunther

But one question: Is Kip's material and library worth the effort? I'm not sure.

Gunther
You have to know the facts before you can distort them.

dedndave

that's a good point, Gunther

personally, i have no need of it
but, many new ASM programmers buy Kip's book, then turn to us with questions
there are solutions to the problem, other than using Kip's libraries

nonetheless, i have requested permission from Kip
haven't heard any word, yet

Gunther

Dave,

Quote from: dedndave on January 08, 2014, 07:19:05 AM
that's a good point, Gunther

personally, i have no need of it
but, many new ASM programmers buy Kip's book, then turn to us with questions
there are solutions to the problem, other than using Kip's libraries

nonetheless, i have requested permission from Kip
haven't heard any word, yet

by chance I've seen a copy of the book. I think the material is dispensable. There are other and better alternatives.

Gunther
You have to know the facts before you can distort them.

dedndave

thing is, many universities have selected the book
so - students are compelled to use it - i believe the same is true of Randy Hyde's Art of Assembly

Gunther

Dave,

Quote from: dedndave on January 08, 2014, 09:56:03 PM
thing is, many universities have selected the book
so - students are compelled to use it - i believe the same is true of Randy Hyde's Art of Assembly

but Randy's book is a lot more respectable.

Gunther
You have to know the facts before you can distort them.