MOVABS ( dst src -- ) (original) (raw)

MOVABS ( dst src -- )

Vocabulary
cpu.x86.assembler

Inputs

dst an object
src an object

Outputs
None

Definition

IN: cpu.x86.assembler

GENERIC: MOVABS ( dst src -- )

Methods

USING: combinators cpu.x86.assembler cpu.x86.assembler.operands
cpu.x86.assembler.private kernel make math ;

M: integer MOVABS
swap {
{ AL [ 160 , cell, ] }
{ AX [ 102 , 161 , cell, ] }
{ EAX [ 161 , cell, ] }
{ RAX [ 72 , 161 , cell, ] }
[ swap bad-movabs-operands ]
} case ;

USING: cpu.x86.assembler kernel ;

M: object MOVABS bad-movabs-operands ;

USING: combinators cpu.x86.assembler cpu.x86.assembler.operands
cpu.x86.assembler.private kernel make ;

M: register MOVABS
{
{ AL [ 162 , cell, ] }
{ AX [ 102 , 163 , cell, ] }
{ EAX [ 163 , cell, ] }
{ RAX [ 72 , 163 , cell, ] }
[ swap bad-movabs-operands ]
} case ;