Lines Matching refs:pState

61  * @param   pState      The disassembler state.
63 static void MyDisasDefaultFormatter(PMYDISSTATE pState)
65 RTPrintf("%s", pState->szLine);
72 * @param pState The disassembler state.
74 static void MyDisasYasmFormatter(PMYDISSTATE pState)
79 strcpy(szTmp, RTStrStripL(strchr(pState->szLine, ':') + 1));
95 size_t cch = DISFormatYasmEx(&pState->Dis, szTmp, sizeof(szTmp),
105 RTPrintf(" %s ; %s", szTmp, pState->szLine);
112 * @param pState The disassembler state.
114 static void MyDisasMasmFormatter(PMYDISSTATE pState)
116 RTPrintf("masm not implemented: %s", pState->szLine);
172 PMYDISSTATE pState = (PMYDISSTATE)pDis;
173 RTUINTPTR uSrcAddr = pState->Dis.uInstrAddr + offInstr;
174 if (RT_LIKELY( pState->uNextAddr == uSrcAddr
175 && pState->cbLeft >= cbMinRead))
182 memcpy(&pState->Dis.abInstr[offInstr], pState->pbNext, cbToRead);
183 pState->Dis.cbCachedInstr = offInstr + cbToRead;
184 pState->pbNext += cbToRead;
185 pState->cbLeft -= cbToRead;
186 pState->uNextAddr += cbToRead;
190 if (pState->uNextAddr == uSrcAddr)
195 if (pState->cbLeft > 0)
197 memcpy(&pState->Dis.abInstr[offInstr], pState->pbNext, pState->cbLeft);
198 offInstr += (uint8_t)pState->cbLeft;
199 cbMinRead -= (uint8_t)pState->cbLeft;
200 pState->pbNext += pState->cbLeft;
201 pState->uNextAddr += pState->cbLeft;
202 pState->cbLeft = 0;
204 memset(&pState->Dis.abInstr[offInstr], 0xcc, cbMinRead);
205 pState->rc = VERR_EOF;
213 memset(&pState->Dis.abInstr[offInstr], 0x90, cbMinRead);
214 pState->rc = VERR_INTERNAL_ERROR;
216 pState->Dis.cbCachedInstr = offInstr + cbMinRead;
217 return pState->rc;
253 void (*pfnFormatter)(PMYDISSTATE pState);