public Command(AsmCommand command) { this.name = command.Target; args = new string[command.OpCount][]; for (int i = 0; i < command.OpCount; i++) { args[i] = new string[command.GetOp(i).TokenCount]; for (int t = 0; t < command.GetOp(i).TokenCount; t++) { args[i][t] = command.GetOp(i).GetToken(t); } } }
bool DetectProfile() { AsmCommand command = listing.GetCommand(0); for (int i = 0; i < VSprofiles.Length; i++) { if (VSprofiles[i] == command.Target) { profile = VSprofileValues[i]; return(true); } } for (int i = 0; i < PSprofiles.Length; i++) { if (PSprofiles[i] == command.Target) { profile = PSprofileValues[i]; return(true); } } return(false); }