flat assembler
Message board for the users of flat assembler.
Index
> Main > How to Implement DUP in FlatASM |
Author |
|
avenegas 31 Jan 2005, 17:01
please help me with this code, i want to use FlatASM
|
|||||||||||
31 Jan 2005, 17:01 |
|
Octavio 31 Jan 2005, 17:44
avenegas wrote: please help me with this code, i want to use FlatASM replace dup by: rw s_size and also read the fasm manual. |
|||
31 Jan 2005, 17:44 |
|
madmatt 31 Jan 2005, 19:41
Flatassembler uses the 'times' directive instead of DUP, see below:
Code: snake: times s_size DW 0 is the same as, Code: snake dw s_size DUP(0) |
|||
31 Jan 2005, 19:41 |
|
avenegas 31 Jan 2005, 19:58
MOV DX, snake[0]
Please advice... |
|||
31 Jan 2005, 19:58 |
|
beppe85 31 Jan 2005, 20:23
mov dx, [snake+0*2] ; array + offset * wordsize
avenegas wrote: MOV DX, snake[0] _________________ "I assemble, therefore I am" If you got some spare time, visit my blog: http://www.beppe.theblog.com.br/ and sign my guestmap |
|||
31 Jan 2005, 20:23 |
|
Dryobates 31 Jan 2005, 20:27
avenegas wrote: MOV DX, snake[0] mov dx, [snake + 0] |
|||
31 Jan 2005, 20:27 |
|
avenegas 31 Jan 2005, 22:01
now I can compile the program with no errors
Atte: Avenegas |
|||
31 Jan 2005, 22:01 |
|
MCD 02 Feb 2005, 13:26
you can use
Code: dup equ times |
|||
02 Feb 2005, 13:26 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.