flat assembler
Message board for the users of flat assembler.

Index > Main > xor symbols

Author
Thread Post new topic Reply to topic
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 27 Mar 2004, 07:19
Code:
xor     [bytes],(newbytes xor oldbytes)    


Why does this give "invalid expression"?

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 27 Mar 2004, 07:19
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
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...
Post 27 Mar 2004, 08:04
View user's profile Send private message Visit poster's website Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
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    

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 27 Mar 2004, 18:53
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
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).
Post 27 Mar 2004, 19:41
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.