<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Mon, 30 Jan 1995 10:55:04 GMT
From   : David Alan Gilbert <gilbertd@...>
Subject: Bug fix for my emulator (for gcc pre 2.6.0), and binary

Hi,
Mark Cooke has found a compile problem with my emulator under versions
of gcc prior to 2.6.0

I have solved this in two ways.  I have placed a precompiled binary
for lines (staticly linked) in /pub/beeb/precompiled on alife1.cs.man.ac.uk
- although I haven't tried it.

The fix which gets around the compilation problem (kindly provided by Mark)
is to change line 410-412 which presently read:

  LineRoutine=(VideoULA_ControlReg & 0x10)?LowLevelDoScanLineNarrow:LowLevelDoScanLineWide;
} else {
  LineRoutine=(VideoULA_ControlReg & 0x10)?LowLevelDoScanLineNarrowNot4Bytes:LowLevelDoScanLineWideNot4Bytes;

to

  LineRoutine=(VideoULA_ControlReg & 0x10)?(LineRoutinePtr)LowLevelDoScanLineNarrow:(LineRoutinePtr)LowLevelDoScanLineWide;
} else {
  LineRoutine=(VideoULA_ControlReg & 0x10)?(LineRoutinePtr)LowLevelDoScanLineNarrowNot4Bytes:(LineRoutinePtr)LowLevelDoScanLineWideNot4Bytes;

I recommend anyway that if you have 2.5.8 you upgrade since it has a number
of bugs.
For Linux you can get precompiled versions of gcc (which also meen upgrading
your library) 
I just recompiled it from source.

Dave
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>