The MASM Forum Archive 2004 to 2012

Specialised Projects => Pelle's Macro Assembler Development => Topic started by: P1 on May 15, 2007, 09:51:28 PM

Title: POASM Assembler error
Post by: P1 on May 15, 2007, 09:51:28 PM
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)
Title: Re: POASM Assembler error
Post by: Vortex on May 19, 2007, 09:53:25 AM
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
Title: Re: POASM Assembler error
Post by: P1 on May 21, 2007, 01:15:26 PM
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)
Title: Re: POASM Assembler error
Post by: Vortex on May 21, 2007, 04:51:04 PM
My apologies, I missed that the work around was used in the original thread. Pelle is the only person who can fix the bug.