flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > [solved] this might be a Bug

Author
Thread Post new topic Reply to topic
badc0de02



Joined: 25 Nov 2013
Posts: 215
Location: %x
badc0de02 26 Jun 2016, 09:49
compile:
Code:
cmp ax,0xFFFF    


output:

0x83F8 // compare ax,byte
0xFF // 255 decimal

it should be compare ax,16bit
fasm version: 1.71.53
Post 26 Jun 2016, 09:49
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20363
Location: In your JS exploiting you and your system
revolution 26 Jun 2016, 09:55
x86 encoding uses sign extended bytes values, so, no, this is not a bug.
Post 26 Jun 2016, 09:55
View user's profile Send private message Visit poster's website Reply with quote
badc0de02



Joined: 25 Nov 2013
Posts: 215
Location: %x
badc0de02 26 Jun 2016, 10:46
ok its all about memory saving...
Post 26 Jun 2016, 10:46
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20363
Location: In your JS exploiting you and your system
revolution 26 Jun 2016, 11:40
640KB ought to be enough for anyone.
Post 26 Jun 2016, 11:40
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.