mirror of
https://github.com/geohot/qira
synced 2025-03-13 10:33:30 +03:00
added EIP
This commit is contained in:
parent
c351103fc2
commit
8e5b50c637
@ -1,7 +1,7 @@
|
||||
Change = new Meteor.Collection("change");
|
||||
Program = new Meteor.Collection("program");
|
||||
|
||||
var X86REGS = ['EAX', 'EBX', 'ECX', 'EDX', 'ESP', 'EBP', 'ESI', 'EDI'];
|
||||
var X86REGS = ['EAX', 'EBX', 'ECX', 'EDX', 'ESP', 'EBP', 'ESI', 'EDI', 'EIP'];
|
||||
|
||||
function p(a) {
|
||||
console.log(a);
|
||||
@ -111,7 +111,7 @@ if (Meteor.isClient) {
|
||||
Session.set("iaddr", this.address);
|
||||
}
|
||||
if (this.type == "R" || this.type == "W") {
|
||||
if (this.address < 0x20) {
|
||||
if (this.address < (X86REGS.length*4)) {
|
||||
return X86REGS[this.address/4];
|
||||
} else {
|
||||
return hex(this.address);
|
||||
|
Loading…
x
Reference in New Issue
Block a user