flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
comrade 27 Mar 2004, 07:19
Code: xor [bytes],(newbytes xor oldbytes) Why does this give "invalid expression"? |
|||
![]() |
|
decard 27 Mar 2004, 08:04
can you give more code (definition of newbytes and oldbytes)? When I tried just this code (declared all names as dd), it compiled without any error...
|
|||
![]() |
|
comrade 27 Mar 2004, 18:53
Code: xor [bytes],(newbytes xor oldbytes) bytes rd 01h newbytes db 01h, 02h, 03h, 04h, 05h, 06h, 07h oldbytes db 08h, 09h, 0Ah, 0Bh, 0Ch, 0Dh, 0Eh |
|||
![]() |
|
Tomasz Grysztar 27 Mar 2004, 19:41
Won't work only with relocatable formats (object formats and PE), where the actual value of labels cannot be determined, so assembler is not able to make such calculations on them. The same problem was discussed in this thread: http://board.flatassembler.net/topic.php?t=37 (and the simple solution for PE format is available there).
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.