flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution
See this recent topic for an explanation:
http://board.flatassembler.net/topic.php?t=17260 Moved to Main |
|||
![]() |
|
sakkiesalm
revolution wrote: See this recent topic for an explanation: Thanks for the reply.I still do not understand how to apply this to the struc MagicArray. Where do i place the dq instead of the rq so that it doesn't get added to the file. I tried several combinations,shifting the struc,etc etc without any luck ![]() |
|||
![]() |
|
revolution
You need to place the line "My MagicArray" at the end of a section.
The structure definition can be placed anywhere as long as it is before you instantiate it with "My MagicArray". |
|||
![]() |
|
sakkiesalm
revolution wrote: You need to place the line "My MagicArray" at the end of a section. Thanks! |
|||
![]() |
|
edfed
it is not really good to instanciate large memory blocks in source code. better to use any malloc function to do the job, don't forget to free the memory at the end...
what do you think about that revolution? |
|||
![]() |
|
revolution
edfed: Like everything else it depends upon what you are doing. In general I would say that is reasonable advice for anything that one intends to use for a serious application. For quick-and-dirty though I guess it makes little difference, just don't tell anyone what you did and it will be fine.
|
|||
![]() |
|
m3ntal
To allocate an array:
Code: Array.P=Allocate(Array.N*Array.Scale) * Array.P: Pointer, base address * Array.I: Index * Array.N: # indices * Array.S: Index scale/size New: Ultimate Visual Menus |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.