flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > problem with comink macro.

Author
Thread Post new topic Reply to topic
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 11 May 2006, 18:06
Code:
proc dumpIndices filehandle, mesh
     local thismesh:ID3DXMesh, addr:DWORD, indices:DWORD

     movm [thismesh], [mesh]
     invoke  WriteString, [filehandle], <"Indices:",10,13>
     invoke  WriteString, [filehandle], <"---------", 10, 13, 10, 13>

     D3DCALL thismesh, LockIndexBuffer, addr indices ;<-- HERE    


The problem occurs when trying to get the address to a local variable.
Post 11 May 2006, 18:06
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8354
Location: Kraków, Poland
Tomasz Grysztar 11 May 2006, 20:01
I don't know your D3DCALL macro, but perhaps it's using "push" instead of "pushd" for parameters?
Post 11 May 2006, 20:01
View user's profile Send private message Visit poster's website Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 11 May 2006, 22:27
Sorry, its simply a renamed cominvk macro
Post 11 May 2006, 22:27
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.