private static extern int Assemble( string cmd, Int32 ip, out t_asmmodel model, Int32 attempt, Int32 constSize, string errText );
public static int Asm(string cmd, Int32 offset, ref List <byte> buf) { ErrorMessage = new String(' ', 256); t_asmmodel am = new t_asmmodel(); int asmLen; asmLen = Assemble(cmd, offset, out am, 0, 0, ErrorMessage); if (asmLen < 1) { return(0); } ErrorMessage = ""; for (int i = 0; i < asmLen; i++) { buf.Add(am.code[i]); } return(asmLen); }