mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Added int3() to x86 asm
This commit is contained in:
parent
beab644408
commit
e5751768ba
2 changed files with 8 additions and 0 deletions
|
@ -909,6 +909,13 @@ void cqo(codeblock_t* cb)
|
|||
cb_write_bytes(cb, 2, 0x48, 0x99);
|
||||
}
|
||||
|
||||
/// Interrupt 3 - trap to debugger
|
||||
void int3(codeblock_t* cb)
|
||||
{
|
||||
//cb.writeASM("INT 3");
|
||||
cb_write_byte(cb, 0xCC);
|
||||
}
|
||||
|
||||
/*
|
||||
// div - Unsigned integer division
|
||||
alias div = writeRMUnary!(
|
||||
|
|
|
@ -285,6 +285,7 @@ void cmovz(codeblock_t* cb, x86opnd_t dst, x86opnd_t src);
|
|||
void cmp(codeblock_t* cb, x86opnd_t opnd0, x86opnd_t opnd1);
|
||||
void cdq(codeblock_t* cb);
|
||||
void cqo(codeblock_t* cb);
|
||||
void int3(codeblock_t* cb);
|
||||
void ja(codeblock_t* cb, size_t label_idx);
|
||||
void jae(codeblock_t* cb, size_t label_idx);
|
||||
void jb(codeblock_t* cb, size_t label_idx);
|
||||
|
|
Loading…
Reference in a new issue