Copyright | (c) roki 2019 |
---|---|
License | MIT |
Maintainer | falgon53@yahoo.co.jp |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Types and classes of the x86_64 operands
The operand classes and types.
class Show a => IsOperand a where Source #
IsOperand
class has an operand type as instances.
Nothing
oadd :: IsOperand b => a -> b -> Operand Source #
The operation of add.
osub :: IsOperand b => a -> b -> Operand Source #
The operation of sub.
omul :: IsOperand b => a -> b -> Operand Source #
The operation of mul.
The operand type.
The type that specifies that register values are considered address values. e.g.:
>>>
Ref rax
[rax]>>>
Ref rsp
[rsp]>>>
import qualified Data.Text as T
>>>
T.putStr $ mov rax (Ref rsp) <> add rsp 8
mov rax, [rsp] add rsp, 8