Exemplo n.º 1
0
        public static Int16[] AssembleCode(CpuType cpuType, string code, UInt32 startAddress)
        {
            code = code.Replace(Environment.NewLine, "\n");
            Int16[] assembledCode = new Int16[100000];
            UInt32  size          = DebugApi.AssembleCodeWrapper(cpuType, code, startAddress, assembledCode);

            Array.Resize(ref assembledCode, (int)size);
            return(assembledCode);
        }