| | |
| | |
|
| | |
|
| | | m_nProgSteps = nProgPos;
|
| | |
|
| | | s1.Format(_T("DOC::Trans to Prog "));
|
| | | SysLog(s1);
|
| | | |
| | | FindProgPair();
|
| | | TransProgToBin();
|
| | | return 0;
|
| | | }
|
| | |
|
| | | int CMTerm1Doc::FindProgPair()
|
| | | {
|
| | | CString s1;
|
| | | // 先扫描分开的程序段
|
| | | int stpos[100] = { 0 };
|
| | | int nSts = 0;
|
| | | int StackDeeps[512] = { 0 };
|
| | | int nCurStackDeep = 0;
|
| | | // 查找匹配指令和地址
|
| | | s1.Format(_T("DOC::Trans to Prog "));
|
| | | SysLog(s1);
|
| | | |
| | | //匹配指令(错误,此处匹配指令使用数字
|
| | | for (int i = 0; i < m_nProgSteps; i++)
|
| | | {
|
| | |
| | | SysLog(s1);
|
| | | }
|
| | | }
|
| | | TransProgToBin();
|
| | | return 0;
|
| | | }
|
| | |
|
| | | int CMTerm1Doc::TransTxtToProg(CStringA ProgTxtA)
|
| | | {
|
| | | CString s1;
|