flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tyler 04 Apr 2010, 21:58
http://flatassembler.net/docs.php?article=manual#2.3.4
Code: struc StructureName { .x dw ? .y dw ? .life dw ? .color dw ? .direc dw ? } I think the ?s are okay, I don't every use them. It assembles/compiles okay. |
|||
![]() |
|
desert_punk 04 Apr 2010, 22:03
but i want to add the structure variables
PlayerShot structureName <0,0,0,1,-4> ; sorry now it good how can i do that? |
|||
![]() |
|
Tyler 04 Apr 2010, 22:42
Code: struc StructureName x,y,life,color,direc ; You can rearrange the order if you want to pass the values in a different order { .x dw ? .y dw ? .life dw ? .color dw ? .direc dw ? } PlayerShot StructureName 0,0,0,1,-4 |
|||
![]() |
|
LocoDelAssembly 04 Apr 2010, 23:54
If you will program on Windows (but if not you could always copy the include files), you can also use the "struct" macro included in the package: http://flatassembler.net/docs.php?article=win32
|
|||
![]() |
|
revolution 05 Apr 2010, 02:10
Tyler: You are almost there:
Code: struc StructureName x,y,life,color,direc { .x dw x .y dw y .life dw life .color dw color .direc dw direc } PlayerShot StructureName 0,0,0,1,-4 |
|||
![]() |
|
desert_punk 05 Apr 2010, 08:30
Thanks guys it worked !
![]() --------------------------------------------------------------------------- I got another question. How do i write this in FASM ? MAXINVAD equ 4 InvadShot StructureName MAXINVAD dup(<0,0,0,4,4>) ; <------ Last edited by desert_punk on 05 Apr 2010, 08:43; edited 2 times in total |
|||
![]() |
|
baldr 09 Apr 2010, 19:40
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.