void PharLap_Parser::PLSegPaint(TWindow& win,const std::vector<PLSegInfo>& names,unsigned start) const { const PLSegInfo& nam = names[start]; win.freeze(); win.clear(); std::ostringstream oss; oss<<" Segment Table [ "<<(start + 1)<<" / "<<names.size()<<" ] "; win.set_title(oss.str(),TWindow::TMode_Center,dialog_cset.title); win.set_footer(PAGEBOX_SUB,TWindow::TMode_Right,dialog_cset.selfooter); win.goto_xy(1,1); win.printf( "Selector number = %04hXH\n" "Flags = %04hXH\n" "Base offset of selector = %08lXH\n" "Min extra memory alloc = %08lXH" ,nam.siSelector ,nam.siFlags ,nam.siBaseOff ,nam.siMinAlloc); win.refresh_full(); }
void PharLap_Parser::PLRunTimePaint(TWindow& win,const std::vector<PLRunTimeParms>& names,unsigned start) const { std::ostringstream oss; char sign[3]; const PLRunTimeParms& nam = names[start]; win.freeze(); win.clear(); oss<<" Run-time Parameters Table [ "<<(start + 1)<<" / "<<names.size()<<" ] "; win.set_title(oss.str(),TWindow::TMode_Center,dialog_cset.title); win.set_footer(PAGEBOX_SUB,TWindow::TMode_Right,dialog_cset.selfooter); strncpy(sign,(const char *)nam.rtSignature,2); sign[2] = 0; win.goto_xy(1,1); win.printf( "Signature = %s\n" "Min. number of real-mode parms = %04hXH\n" "Max. number of real-mode parms = %04hXH\n" "Min. interrupt buffer size = %04hXH\n" "Max. interrupt buffer size = %04hXH\n" "Number of interrupt stacks = %04hXH\n" "Size of each interrupt stack = %04hXH\n" "Offset of end of real-mode data= %08lXH\n" "Call buffer size = %04hXH\n" "Flags = %04hXH\n" "Unpriviledge flags = %04hXH" ,sign ,nam.rtMinRModeParms ,nam.rtMaxRModeParms ,nam.rtMinIBuffSize ,nam.rtMaxIBuffSize ,nam.rtNIStacks ,nam.rtIStackSize ,nam.rtEndRModeOffset ,nam.rtCallBuffSize ,nam.rtFlags ,nam.rtUnprivFlags); win.refresh_full(); }