-Fixed disview.c so it compiles in Visual C++ again

-Added ROMReader.c/.h to Visual C++ project file
This commit is contained in:
cyberwarriorx 2007-01-09 03:08:20 +00:00
parent c7b7789c2f
commit 4304f2dda3
1 changed files with 7 additions and 4 deletions

View File

@ -440,10 +440,12 @@ LRESULT DisViewBox_OnPaint(disview_struct *win, WPARAM wParam, LPARAM lParam)
if((win->mode==1) || ((win->mode==0) && (win->cpu->CPSR.bits.T == 0)))
{
u32 i;
u32 adr;
if (win->autoup)
win->curr_ligne = (win->cpu->instruct_adr >> 2) - (win->curr_ligne % nbligne) ;
u32 i;
u32 adr = win->curr_ligne*4;
adr = win->curr_ligne*4;
for(i = 0; i < nbligne; ++i)
{
@ -472,11 +474,12 @@ LRESULT DisViewBox_OnPaint(disview_struct *win, WPARAM wParam, LPARAM lParam)
}
else
{ /* thumb display */
u32 i;
u32 adr;
if (win->autoup)
win->curr_ligne = (win->cpu->instruct_adr >> 1) - (win->curr_ligne % nbligne) ;
u32 i;
u32 adr = win->curr_ligne*2;
adr = win->curr_ligne*2;
for(i = 0; i < nbligne; ++i)
{