flat assembler
Message board for the users of flat assembler.

flat assembler > Compiler Internals > [solved] this might be a Bug

Author
Thread Post new topic Reply to topic
badc0de02



Joined: 25 Nov 2013
Posts: 216
Location: %x
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: 15859
Location: 162173 Ryugu
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: 216
Location: %x
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: 15859
Location: 162173 Ryugu
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 © 2004-2018, Tomasz Grysztar.

Powered by rwasa.