flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > out instruction

Author
Thread Post new topic Reply to topic
badc0de02



Joined: 25 Nov 2013
Posts: 216
Location: %x
badc0de02
why does allow me the out instruction only ax,al Question
at exsample:
Code:
out *,ax ;or
out *,al ;and
out *,123 ;h,o,d,b    

please help!
Post 01 Jan 2014, 21:11
View user's profile Send private message Reply with quote
Walter



Joined: 26 Jan 2013
Posts: 143
Walter
OUT port,accum

The port can be an immediate value (<256),
but accum must be AL, AX, or EAX
Post 01 Jan 2014, 21:59
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
badc0de02 wrote:
why does allow me the out instruction only ax,al Question
It is a limitation of the instruction set encoding. It is just how the x86 CPU does things with its non-orthogonal CISC instruction set.
Post 02 Jan 2014, 05: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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.