All 1 entries tagged <em>BBC</em>Mike Willisit's just this blag, y'know?https://blogs.warwick.ac.uk/mikewillis/tag/bbc/?atom=atomWarwick Blogs, University of Warwick(C) 2024 Mike Willis2024-03-29T05:26:44ZB-em by Mike WillisMike Willishttps://blogs.warwick.ac.uk/mikewillis/entry/b-em/2013-02-14T19:39:44Z2013-02-14T19:39:44Z<p class="answer">Follow-up to <a href="https://blogs.warwick.ac.uk/mikewillis/entry/bbc_computer_32k/" title="Related blog entry">BBC Computer 32K, Acorn DFS, BASIC</a> from <a href="https://blogs.warwick.ac.uk/mikewillis">Mike's blag</a></p>
<p>So I found a better BBC Emulator than BeebEm. It's called <a href="http://b-em.bbcmicro.com/">B-em</a>. Why is it better?</p>
<ul>
<li>It was last updated about a year ago rather than about 5 years ago. Newer is better, right? Sure it is.<br />
</li>
<li>It allows easy modification of the keyboard layout, including a menu option to remap A/S to Caps Lock/Ctrl which makes playing Arcadians practical. This is nicer than mucking around with setting an environment variable for SDL to make Caps Lock work like a regular key and using xmodmap to remap keys, which is how I made Arcadians playable with BeebEM.</li>
<li>It makes disk-drive like noises when you run disks.</li>
<li>Probably other... things... maybe...<br />
</li>
</ul>
<p>I run it on SLED 11 SP2. If you want to do likewise, here's how.</p>
<p>If you don't already have it, get the SLE-SDK from <a href="http://download.novell.com/Download?buildid=NgW3ToaagDQ%7E">http://download.novell.com/Download?buildid=NgW3ToaagDQ~ </a>and use YaST to add it as an Add on Product.</p>
<p>Install the following packages: cmake zlib-devel libpng-devel libjpeg-devel xorg-x11-libX11-devel libogg-devel freetype2-devel libpulse-devel alsa-devel flac-devel libvorbis-devel alsa-oss automake gcc make gcc-c++</p>
<p>Then, as a regular user, run these commands:</p>
<pre>$ cd<br />$ mkdir b-em<br />$ cd b-em<br />$ export PKG_CONFIG_PATH=${PWD}/lib/pkgconfig/<br />$ export PATH=$PATH:${PWD}/bin<br />$ export LD_LIBRARY_PATH=${PWD}/lib<br />$ export LIBS="-L${PWD}/lib"<br />$ export CPPFLAGS="-I${PWD}/include"<br />$ curl -L http://sourceforge.net/projects/alleg/files/allegro/4.4.2/allegro-4.4.2.tar.gz/download | tar zxvf -<br />$ cd allegro-4.4.2/<br />$ mkdir build<br />$ cd build<br />$ cmake -DWANT_LINUX_CONSOLE=on -DCMAKE_INSTALL_PREFIX:PATH=$(dirname $(dirname $PWD)) ..<br />$ make install<br />$ cd ../..<br />$ curl http://kcat.strangesoft.net/openal-releases/openal-soft-1.15.1.tar.bz2 | tar jxvf -<br />$ cd openal-soft-1.15.1/build<br />$ cmake -DCMAKE_INSTALL_PREFIX:PATH=$(dirname $(dirname $PWD)) ..<br />$ make install<br />$ cd ../..<br />$ curl http://connect.creativelabs.com/openal/Downloads/ALUT/freealut-1.1.0.tar.gz | tar xzvf -<br />$ cd freealut-1.1.0/<br />$ ./configure --prefix=$(dirname "${PWD}") && make && make install<br />$ cd ..<br />$ curl -L http://b-em.bbcmicro.com/B-emv2.2Linux.tar.gz | tar xvfz -<br />$ for i in INSTALL depcomp COPYING compile;do unlink $i; ln -s /usr/share/automake-1.10/$i;done<br />$ ./configure --prefix=${PWD} && make<br />$ mv b-em b-em.real<br />$ cat > b-em << EOF<br />#!/bin/bash<br />dir="$( cd "$( dirname "$0" )" && pwd )";<br />export LD_LIBRARY_PATH="${dir}/lib";<br />cd "${dir}"<br />./b-em.real<br />EOF<br />$ chmod u+x b-em<br /></pre>
<p><br />
</p>
<p>Grab the images for your favourite games from somewhere such as <a href="http://www.stairwaytohell.com/bbc/index.html?page=homepage">Stairway to Hell</a> and run the b-em executable </p>
<pre>$ ~/b-em/b-em</pre>
<p>F11 shows/hides the menu. Once you've loaded a disk you need to hide the menu again and press Shift-F12 to run it.</p>
<p>Obligatory screenshot:</p>
<p><img src="/images/mikewillis/2013/02/14/arcadians_b-em.png?maxWidth=500" alt="Arcadians running on B-em" border="0" /></p>
<p>The trick to maximum points in Arcadians is to only shoot the aliens whilst they're swooping down. You get double the points for picking them off whilst they're in motion.<br />
</p><p class="answer">Follow-up to <a href="https://blogs.warwick.ac.uk/mikewillis/entry/bbc_computer_32k/" title="Related blog entry">BBC Computer 32K, Acorn DFS, BASIC</a> from <a href="https://blogs.warwick.ac.uk/mikewillis">Mike's blag</a></p>
<p>So I found a better BBC Emulator than BeebEm. It's called <a href="http://b-em.bbcmicro.com/">B-em</a>. Why is it better?</p>
<ul>
<li>It was last updated about a year ago rather than about 5 years ago. Newer is better, right? Sure it is.<br />
</li>
<li>It allows easy modification of the keyboard layout, including a menu option to remap A/S to Caps Lock/Ctrl which makes playing Arcadians practical. This is nicer than mucking around with setting an environment variable for SDL to make Caps Lock work like a regular key and using xmodmap to remap keys, which is how I made Arcadians playable with BeebEM.</li>
<li>It makes disk-drive like noises when you run disks.</li>
<li>Probably other... things... maybe...<br />
</li>
</ul>
<p>I run it on SLED 11 SP2. If you want to do likewise, here's how.</p>
<p>If you don't already have it, get the SLE-SDK from <a href="http://download.novell.com/Download?buildid=NgW3ToaagDQ%7E">http://download.novell.com/Download?buildid=NgW3ToaagDQ~ </a>and use YaST to add it as an Add on Product.</p>
<p>Install the following packages: cmake zlib-devel libpng-devel libjpeg-devel xorg-x11-libX11-devel libogg-devel freetype2-devel libpulse-devel alsa-devel flac-devel libvorbis-devel alsa-oss automake gcc make gcc-c++</p>
<p>Then, as a regular user, run these commands:</p>
<pre>$ cd<br />$ mkdir b-em<br />$ cd b-em<br />$ export PKG_CONFIG_PATH=${PWD}/lib/pkgconfig/<br />$ export PATH=$PATH:${PWD}/bin<br />$ export LD_LIBRARY_PATH=${PWD}/lib<br />$ export LIBS="-L${PWD}/lib"<br />$ export CPPFLAGS="-I${PWD}/include"<br />$ curl -L http://sourceforge.net/projects/alleg/files/allegro/4.4.2/allegro-4.4.2.tar.gz/download | tar zxvf -<br />$ cd allegro-4.4.2/<br />$ mkdir build<br />$ cd build<br />$ cmake -DWANT_LINUX_CONSOLE=on -DCMAKE_INSTALL_PREFIX:PATH=$(dirname $(dirname $PWD)) ..<br />$ make install<br />$ cd ../..<br />$ curl http://kcat.strangesoft.net/openal-releases/openal-soft-1.15.1.tar.bz2 | tar jxvf -<br />$ cd openal-soft-1.15.1/build<br />$ cmake -DCMAKE_INSTALL_PREFIX:PATH=$(dirname $(dirname $PWD)) ..<br />$ make install<br />$ cd ../..<br />$ curl http://connect.creativelabs.com/openal/Downloads/ALUT/freealut-1.1.0.tar.gz | tar xzvf -<br />$ cd freealut-1.1.0/<br />$ ./configure --prefix=$(dirname "${PWD}") && make && make install<br />$ cd ..<br />$ curl -L http://b-em.bbcmicro.com/B-emv2.2Linux.tar.gz | tar xvfz -<br />$ for i in INSTALL depcomp COPYING compile;do unlink $i; ln -s /usr/share/automake-1.10/$i;done<br />$ ./configure --prefix=${PWD} && make<br />$ mv b-em b-em.real<br />$ cat > b-em << EOF<br />#!/bin/bash<br />dir="$( cd "$( dirname "$0" )" && pwd )";<br />export LD_LIBRARY_PATH="${dir}/lib";<br />cd "${dir}"<br />./b-em.real<br />EOF<br />$ chmod u+x b-em<br /></pre>
<p><br />
</p>
<p>Grab the images for your favourite games from somewhere such as <a href="http://www.stairwaytohell.com/bbc/index.html?page=homepage">Stairway to Hell</a> and run the b-em executable </p>
<pre>$ ~/b-em/b-em</pre>
<p>F11 shows/hides the menu. Once you've loaded a disk you need to hide the menu again and press Shift-F12 to run it.</p>
<p>Obligatory screenshot:</p>
<p><img src="/images/mikewillis/2013/02/14/arcadians_b-em.png?maxWidth=500" alt="Arcadians running on B-em" border="0" /></p>
<p>The trick to maximum points in Arcadians is to only shoot the aliens whilst they're swooping down. You get double the points for picking them off whilst they're in motion.<br />
</p>0