News:

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

POASM Assembler error

Started by P1, May 15, 2007, 09:51:28 PM

Previous topic - Next topic

P1

Ramguru has a problem cross assembling this file:
http://www.masm32.com/board/index.php?topic=7294.msg54057#msg54057
MASM assembles this as is.

Please let us know what's up.

Regards,  P1   :8)

Vortex

P1,

I received the same error messages. Here is my solution :

; #########################################################################

; Name v1.0.0.0 by P1, Pone@ecad.org
; A MASM32 program to description.

; #########################################################################

.386
.model flat, stdcall
option casemap :none   ; case sensitive

; #########################################################################
       
include \poasm\include\windows.inc
include \poasm\include\kernel32.inc
includelib \poasm\lib\kernel32.lib

; #########################################################################

BlockHead MACRO identifier

identifier:

dd 00010000h,00010000h,0
dd 00020000h,00020000h,0
dd 00100000h,00100000h,0
dd 00200000h,00200000h,0
dd 00800000h,00800000h,0
dd 02000000h,02000000h,0
dd 04000000h,04000000h,0
dd 08000000h,08000000h,0
dd 10000000h,10000000h,0
dd 40000000h,40000000h,0

ENDM

.data
Align 4

BlockHead win_st
BlockHead ACS_DW
   
; #########################################################################

.data?
Align 4

; #########################################################################

.code
Align 4
start:

mov ecx,win_st
mov edx,ACS_DW

invoke GetModuleHandle, NULL

The_End:
invoke ExitProcess,NULL

; #########################################################################

end start

P1

That's the work around they used in the original thread.

I was suggesting a POASM improvement to make structure use compatable between sources assembled in MASM & POASM.

The work around points to a simple point, why is it necessary to use a macro for data structures?  When that's the purpose of structures in the first place.  In the end, the code becomes more readable and understandable.

Regards,  P1   :8)

Vortex

My apologies, I missed that the work around was used in the original thread. Pelle is the only person who can fix the bug.