flat assembler
Message board for the users of flat assembler.

Index > Main > Allow only 8086 instructions with FASM2?

Author
Thread Post new topic Reply to topic
Denis Sjostrom



Joined: 08 Jun 2024
Posts: 1
Denis Sjostrom 08 Jun 2024, 09:56
The subject says it all.

use 8086
push EAX ; <--- this shouldn't assemble, but does on FASM2

There has to be a way to do this? It seems pointless to support a "use" directive if the assembler won't limit the available instructions.

No... I'm not going through every instruction I write making sure it's supported on the 8086, that's the assembler's job. ^_^
Post 08 Jun 2024, 09:56
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8346
Location: Kraków, Poland
Tomasz Grysztar 08 Jun 2024, 13:00
There's been an omission in PUSH/POP specialized handlers. Fixed already.

There might be more of such simple mistakes - I believe very few people have been using fasm 2 previews enough to find them (compared to fasm 1).

PS. I also recommend
Code:
use i8086    
instead of plain "use 8086". While "8086" only changes the choice of base CPU, "i8086" is a collection of settings that also reset the choice of FPU and CPU extensions.
Post 08 Jun 2024, 13:00
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.