/* undefined instruction */ LOCAL W vf_undef( const VECINFO *vi, UW vec, UW pc, UW cpsr ) { if (cpsr & PSR_T) { DSP_F3(S,vi->msg, CH,' ', 04X,*((UH*)(pc - 2))); } else { DSP_F3(S,vi->msg, CH,' ', 08X,*((UW*)(pc - 4))); } return 1; }
/* * display help message for output command */ LOCAL void prOutputHelp( const HELP *help ) { const UB *p = help->msg; for (; *p; p++); p++; DSP_F5(S,"Output", S,help->msg, S,"(O", S,p, S,") port,data "); DSP_F3(S,": Output ", S,help->msg, S," to I/O port\n"); }
/* * display help message for input command */ LOCAL void prInputHelp( const HELP *help ) { const UB *p = help->msg; for (; *p; p++); p++; DSP_F5(S,"Input", S,help->msg, S,"(I", S,p, S,") port "); DSP_F3(S,": Input ", S,help->msg, S," from I/O port\n"); }
/* * display help message for fill command */ LOCAL void prFillHelp( const HELP *help ) { const UB *p1 = help->msg; const UB *p2; for (; *p1; p1++); p2 = ++p1; for (; *p2; p2++); p2++; DSP_F5(S,"Fill", S,help->msg, S,"(F", S,p1, S,") start_addr,{end_addr|#data_cnt}[,data].. "); DSP_F3(S,": Fill Memory in ", S,p2, CH,'\n'); }
/* * display help message for modify command */ LOCAL void prModifyHelp( const HELP *help ) { const UB *p1 = help->msg; const UB *p2; for (; *p1; p1++); p2 = ++p1; for (; *p2; p2++); p2++; DSP_F5(S,"Modify", S,help->msg, S,"(M", S,p1, S,") [start_addr][,data].. "); DSP_F3(S,": Modify Memory in ", S,p2, CH,'\n'); }
/* * display help message for dump command */ LOCAL void prDumpHelp( const HELP *help ) { const UB *p1 = help->msg; const UB *p2; for (; *p1; p1++); p2 = ++p1; for (; *p2; p2++); p2++; DSP_F5(S,"Dump", S,help->msg, S,"(D", S,p1, S,") [start_addr][,{end_addr|#data_cnt}] "); DSP_F3(S,": Dump Memory in ", S,p2, CH,'\n'); }
/* * display help message for search command */ LOCAL void prSearchHelp( const HELP *help ) { const UB *p1 = help->msg; const UB *p2; for (; *p1; p1++); p2 = ++p1; for (; *p2; p2++); p2++; DSP_F5(S,"Search", S,help->msg, S,"(SC", S,p1, S,") start_addr,{end_addr|#data_cnt},data[,data].. "); DSP_F3(S,": Search Memory in ", S,p2, CH,'\n'); }