News:

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

Main Menu

masm 10 vs 11

Started by bomz, January 22, 2013, 09:45:06 AM

Previous topic - Next topic

bomz

must be ready for new ml.exe. many my codes don't compile and need correction

bomz

byte word dword qword fword oword

real10 - ?

dedndave

real10   :biggrin:

tReal   real10 1.05

    fld real10 ptr tReal


there is also "TBYTE", but i think real10 works better

jj2007

Quote from: bomz on January 26, 2013, 12:35:10 AM
byte word dword qword fword oword

What the f*** is fword?

qWord

MREAL macros - when you need floating point arithmetic while assembling!

bomz

I never use macros-es or masm32.lib, datetime.lib, msvcrt.lib, but there is many code examples whit them.
Is it necessary this lib where compiling through MASM32 instalation or it is possible to make them one time?

bomz

Two libs with inc2l + new link.exe creates with errors

Vortex

Quote from: bomz on January 26, 2013, 04:23:10 AM
I never use macros-es or masm32.lib, datetime.lib, msvcrt.lib, but there is many code examples whit them.
Is it necessary this lib where compiling through MASM32 instalation or it is possible to make them one time?

Hi bomz,

You can use your own libraries and macros. I would recommend you to have a look at masm32.lib and msvcrt.lib  Especially masm32.lib provides a lot of useful functions for assembly coders.

Magnum

I use masm 6.14 and it has worked fine making device drivers, using Undocumented APIs, etc.

I chuckled the other day when I found some code that used one of "Undocumented APIs".

It was dated 2001. Twelve years later it's still undocumented.

Randy

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

bomz

if I need useful codes - I use C with asm includes

QuoteYou can use your own libraries and macros
lib makes on different computers are different?

bomz

How change (and use DllUnload DllInitialize) lvcodek.inc? DllInitialize use unicode string

; --------------------------------------------------------------------------------------------------
;                           lvcodek.inc Copyright The MASM32 SDK 1998-2010
; --------------------------------------------------------------------------------------------------

IFNDEF LVCODEK_INC
LVCODEK_INC equ <1>

CodecOpen PROTO STDCALL :DWORD
DllUnload PROTO STDCALL
DllInitialize PROTO STDCALL :DWORD

ELSE
  echo ------------------------------------------
  echo WARNING duplicate include file lvcodek.inc
  echo ------------------------------------------
ENDIF


inc2l lvcodek.inc

How use in inc directive PRIVATE?

dedndave

SomeFunc PROC PRIVATE

    ret

SomeFunc ENDP

bomz

in INC no proc and endp.
How make lib from inc without inc2l.exe? I think inc2l convert inc to some asm code and compile

psxdll.inc
Microsoft (R) Macro Assembler Version 10.00.40219.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Assembling: psxdll.asm
psxdll.asm(225) : error A2008:syntax error : proc
psxdll.asm(227) : error A2008:syntax error : endp
Microsoft (R) Incremental Linker Version 10.00.40219.01
Copyright (C) Microsoft Corporation.  All rights reserved.

LINK : fatal error LNK1181: cannot open input file 'psxdll.obj'
Microsoft (R) Macro Assembler Version 10.00.40219.01
Copyright (C) Microsoft Corporation.  All rights reserved.

lvcodek.inc
Microsoft (R) Macro Assembler Version 10.00.40219.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Assembling: lvcodek.asm
Microsoft (R) Incremental Linker Version 10.00.40219.01
Copyright (C) Microsoft Corporation.  All rights reserved.

lvcodek.def : warning LNK4104: export of symbol 'DllUnload' should be PRIVATE
   Creating library lvcodek.lib and object lvcodek.exp

dedndave

Erol (Vortex) has a couple of nice tools for this

vortex.masmcode.com


japheth

Quote from: bomz on January 26, 2013, 07:48:52 PM
I think inc2l convert inc to some asm code and compile

That's would be pretty difficult. The old-style import libraries include members that have sections with the COMDAT attribute - I don't know how this attribute could be set with Masm. Also, the members in import libs usually have "no names" - how are you supposed to add such a member?

The simplest approach to create an import lib is to create a .DEF file and then use either the already mentioned vortex tools or polib or wlib.