Skip to content

Commit

Permalink
Add helper functions for building newly usable instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
piepie62 committed Nov 9, 2022
1 parent a82487e commit d080cb7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions AS3/src/com/cff/anebe/ir/ASInstruction.as
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ package com.cff.anebe.ir
{
return new ASInstruction(OP_raw, [v]);
}
public static function Bkpt():ASInstruction
{
return new ASInstruction(OP_bkpt);
}
public static function Nop():ASInstruction
{
return new ASInstruction(OP_nop);
Expand Down Expand Up @@ -763,6 +767,14 @@ package com.cff.anebe.ir
{
return new ASInstruction(OP_astypelate);
}
public static function Coerce_u():ASInstruction
{
return new ASInstruction(OP_coerce_u);
}
public static function Coerce_o():ASInstruction
{
return new ASInstruction(OP_coerce_o);
}
public static function Negate():ASInstruction
{
return new ASInstruction(OP_negate);
Expand Down Expand Up @@ -955,5 +967,13 @@ package com.cff.anebe.ir
{
return new ASInstruction(OP_debugfile, [filename]);
}
public static function BkptLine(lineNum:uint):ASInstruction
{
return new ASInstruction(OP_bkptline, [lineNum]);
}
public static function Timestamp():ASInstruction
{
return new ASInstruction(OP_timestamp);
}
}
}

0 comments on commit d080cb7

Please sign in to comment.