Add MachoManiac

This commit is contained in:
Sam Carlton 2021-01-30 16:50:33 -06:00
parent 04c0b7aeae
commit 50b1c46678
34 changed files with 5269 additions and 0 deletions

View file

@ -0,0 +1,17 @@
var Fvmlib = function Fvmlib(name, minor_version, header_addr) {
this.name = name || 0x00000000;
this.minor_version = minor_version || 0x00000000;
this.header_addr = header_addr || 0x00000000;
this.toString = function() {
return JSON.stringify(this);
};
};
var FvmlibCommand = function FvmlibCommand(cmd, cmdsize, fvmlib) {
this.cmd = cmd || 0x00000000;
this.cmdsize = cmdsize || 0x00000000;
this.fvmlib = fvmlib || new Fvmlib(); //needs better input validation
this.toString = function() {
return JSON.stringify(this);
};
};