flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > masm conversion kmd kit problem |
Author |
|
vid 27 Oct 2005, 08:14
"if" is assembly time, so it doesn't condition preprocessor-time things (read FAQ). ".if" is same as MASM's ".if" - it's pseudo instruction which generates code, it doesn't have anyhing with conditional assembly. COnditional preprocessing is done with "match", but problem ihere is that PORT_MAXIMUM_MESSAGE_LENGTH is numeric constant, and these are assembly-time things, not preprocess time. To get what you wanted just declare IO_ERROR_LOG_MESSAGE_LENGTH as (assembly time) numeric constant:
Code: if PORT_MAXIMUM_MESSAGE_LENGTH > ERROR_LOG_MESSAGE_LIMIT_SIZE IO_ERROR_LOG_MESSAGE_LENGTH = ERROR_LOG_MESSAGE_LIMIT_SIZE else IO_ERROR_LOG_MESSAGE_LENGTH = PORT_MAXIMUM_MESSAGE_LENGTH end if |
|||
27 Oct 2005, 08:14 |
|
shism2 27 Oct 2005, 21:48
How about something like this
ApcListEntry LIST_ENTRY <> or Next SINGLE_LIST_ENTRY <> Also is the abrevations for WORD and QWORD dd or dw or db ????? |
|||
27 Oct 2005, 21:48 |
|
vid 02 Nov 2005, 11:17
???
try to be more specific, i don't get what you want |
|||
02 Nov 2005, 11:17 |
|
Reverend 02 Nov 2005, 11:40
shism2:1 -
Code: label STRUCTURE <> 2 - Check: http://flatassembler.net/docs.php?article=manual#1.2.1 and http://flatassembler.net/docs.php?article=manual#1.2.2 |
|||
02 Nov 2005, 11:40 |
|
shism2 04 Nov 2005, 00:16
Ok thanks reverend...
The datatypes... WORD and QWORD have abbreviations????? like dw or db? |
|||
04 Nov 2005, 00:16 |
|
vid 04 Nov 2005, 00:46
you have these:
1. data definition directives: db, rb, dw, rw, dd, dq ... 2. size operators: byte, word ("mov word [eax],5", "label here dword", "movs dword ...") is this what you wanted? |
|||
04 Nov 2005, 00:46 |
|
shism2 04 Nov 2005, 04:49
Yes data defintion directives thats what I wanted thanks vid...
so for word it's dw qword dq Right?? |
|||
04 Nov 2005, 04:49 |
|
vid 04 Nov 2005, 08:52
|
|||
04 Nov 2005, 08:52 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.