<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>What&#039;s All This Brouhaha?</title>
	<atom:link href="http://whats.all.this.brouhaha.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://whats.all.this.brouhaha.com</link>
	<description>miscellaneous musings and random rantings</description>
	<lastBuildDate>Mon, 10 Dec 2012 08:40:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Creating bootable USB media from ISO image</title>
		<link>http://whats.all.this.brouhaha.com/2012/12/10/creating-bootable-usb-media-from-iso-image/</link>
		<comments>http://whats.all.this.brouhaha.com/2012/12/10/creating-bootable-usb-media-from-iso-image/#comments</comments>
		<pubDate>Mon, 10 Dec 2012 08:40:15 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://whats.all.this.brouhaha.com/?p=991</guid>
		<description><![CDATA[I&#8217;ve found lots of reverences to using livecd-iso-to-disk from the livecd-tools package to create bootable USB media from an ISO image (or for a DVD, quite possibly a UDF image, but the principle is the same). However, most of the &#8230; <a href="http://whats.all.this.brouhaha.com/2012/12/10/creating-bootable-usb-media-from-iso-image/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve found lots of reverences to using livecd-iso-to-disk from the livecd-tools package to create bootable USB media from an ISO image (or for a DVD, quite possibly a UDF image, but the principle is the same).  However, most of the descriptions either seem light on examples, or give absurdly complicated examples.  It&#8217;s actually quite easy, if you&#8217;re not concerned with preserving the old content of the USB media.<span id="more-991"></span></p>
<p>Suppose your USB media is drive /dev/sdb, and your ISO image is at /path/to/some-image.iso.  If you have an actual file system mounted (e.g., /dev/sdb1), unmount it from the command line.  (Do NOT unmount it from a GUI, e.g, Gnome, as that may not leave it in a state where it is usable over USB.)</p>
<p>Now run the command: <code>livecd-iso-to-disk --format --reset-mbr /path/to/some-image.iso /dev/sdb1</code></p>
<p>Previously I spent a bunch of time trying to run the command without the <code>--format</code> option, and got all sorts of complaints about problems with my USB medai, partition table, filesystem, etc.  I&#8217;m not convinced that the error messages were accurate.  The <code>--format</code> option simplifies everything.</p>
<p>The command above will default to formatting the USB media with an ext4 filesystem, which works fine with Linux, but may be inconvenient for use with Windows. You can apparently use the poorly-named <code>--msdos</code> option (which should have been <code>--fat</code> or perhaps <code>--vfat</code>) to use a FAT filesystem on the USB media rather than ext4.  However, I haven&#8217;t verified that this works.</p>
]]></content:encoded>
			<wfw:commentRss>http://whats.all.this.brouhaha.com/2012/12/10/creating-bootable-usb-media-from-iso-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TRS-DOS as possible prior art for MS patent on exFAT, and reference request</title>
		<link>http://whats.all.this.brouhaha.com/2012/09/16/trs-dos-as-possible-prior-art-for-ms-patent-on-exfat-and-reference-request/</link>
		<comments>http://whats.all.this.brouhaha.com/2012/09/16/trs-dos-as-possible-prior-art-for-ms-patent-on-exfat-and-reference-request/#comments</comments>
		<pubDate>Mon, 17 Sep 2012 05:58:57 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Patents]]></category>
		<category><![CDATA[Retrocomputing]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://whats.all.this.brouhaha.com/?p=987</guid>
		<description><![CDATA[Microsoft introduced a new &#8220;exFAT&#8221; file system a few years ago, and I wouldn&#8217;t care about it in the least, except that it is now the official filesystem for SD-XC cards.  I only care about that in that digital cameras &#8230; <a href="http://whats.all.this.brouhaha.com/2012/09/16/trs-dos-as-possible-prior-art-for-ms-patent-on-exfat-and-reference-request/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Microsoft introduced a new &#8220;<a title="exFAT" href="http://en.wikipedia.org/wiki/ExFAT" target="_blank">exFAT</a>&#8221; file system a few years ago, and I  wouldn&#8217;t care about it in the least, except that it is now the official  filesystem for SD-XC cards.  I only care about that in that digital  cameras and such will likely only support exFAT on SD-XC cards, and I&#8217;d  like my computer, not running Windows, to be able to efficiently access  files on such cards.  The problem is that Microsoft filed several patent  applications covering exFAT.  One of them is application <a title="US 2009/0164440 A1" href="http://www.google.com/patents/US20090164440" target="_blank">US  2009/0164440 A1</a>, for which the US patent office has recently mailed a  &#8220;Notice of Allowance&#8221;, which means that they have decided to issue the  patent.</p>
<p>This application is titled &#8220;Quick filename lookup using name hash&#8221;.   Based on the title, it sounded like they are doing what TRS-DOS 2.0 did  back in 1978, which is putting on the disk a hash table of filenames  which then refer to directory entries.  TRS-DOS did that so that it  usually only needed to read two sectors to look up a file, the HIT (Hash  Index Table) sector, and the actual directory sector containing the  file&#8217;s directory entry.  Otherwise they might have had to read multiple  directory sectors to find the file if it existed, and all of the  directory sectors if it did not.</p>
<p>The claims of the patent are a little difficult to interpret.  They  refer to &#8220;a first one or more computer readable storage media having  computer executable instructions&#8230;&#8221;.  This is basically referring to  the disk/flash/etc. the operating system is booted from.  They refer to  &#8220;a second one or more&#8230;&#8221; which is the disk/flash/etc. which holds the  file system in question.</p>
<p>Here&#8217;s are two of the independent claims:</p>
<blockquote><p>1. A first one or more computer readable storage media having  computer executable instructions that, when executed on at least one  processor, configure the at least one processor to perform a method of  detecting if a target file name exists on a second one or more computer  readable storage media, the method comprising:</p>
<p>(A) determining a name hash from the target name;<br />
(B)  determining if the name hash corresponds to a directory entry set name  hash value, the directory entry set name hash value corresponding to one  of a plurality of directory entry sets, each of the plurality of  directory entry sets stored on the second one or more computer readable  storage media;<br />
(C)  determining if the target name matches a directory entry set name  corresponding to the one of the plurality of directory entry sets after  step (B) determines the name hash corresponds to the directory entry set  name hash value; and<br />
(D) indicating that the target name exists after step (C) determines the target name matches the directory entry set name.</p>
<p>19. A method of detecting if a target file name exists, the method executing on one or more processors, the method comprising:</p>
<p>(A) determining a file name hash from the target file name;<br />
(B)  determining if the file name hash corresponds to a directory entry hash  value, the directory entry hash value corresponding to one of a  plurality of directory entries;<br />
(C)  determining if the target file name matches a file name, the file name  corresponding to the one of the plurality of directory entries after  step (B) determines the file name hash corresponds to the directory  entry hash value; and<br />
(D)  indicating that the target file name exists after step (C) determines  the target file name matches the file name corresponding to the one of  the plurality of directory entries.</p></blockquote>
<p>These seem to be to be to be *exactly* what TRS-DOS 2.0 did as early as  1978, so it seems possible that TRS-DOS could be used as prior art to  invalidate at least these independent claims, and quite possibly some of  the dependent claims as well.</p>
<p>So my question is, are there any published works documenting the TRS-DOS  file system on-disk format, especially the use of the HIT table, other  than &#8220;<a title="TRS-80 Disk and Other Mysteries" href="http://www.amazon.com/Trs-80-Disk-Other-Mysteries-Pennington/dp/0936200006" target="_blank">TRS-80 Disk and Other Mysteries</a>&#8221; by H. C. Pennington?</p>
]]></content:encoded>
			<wfw:commentRss>http://whats.all.this.brouhaha.com/2012/09/16/trs-dos-as-possible-prior-art-for-ms-patent-on-exfat-and-reference-request/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Building EPEL6 packages that use Qt 4</title>
		<link>http://whats.all.this.brouhaha.com/2012/06/24/building-epel6-packages-that-use-qt-4/</link>
		<comments>http://whats.all.this.brouhaha.com/2012/06/24/building-epel6-packages-that-use-qt-4/#comments</comments>
		<pubDate>Mon, 25 Jun 2012 04:56:41 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://whats.all.this.brouhaha.com/?p=984</guid>
		<description><![CDATA[I&#8217;ve been trying to build an EPEL 6 package (for Red Hat Enterprise Linux 6, Centos 6, etc.) of Meshlab, for which I already have a Fedora package.  The latest challenge is that the Koji build server is trying to &#8230; <a href="http://whats.all.this.brouhaha.com/2012/06/24/building-epel6-packages-that-use-qt-4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been trying to build an EPEL 6 package (for Red Hat Enterprise Linux 6, Centos 6, etc.) of Meshlab, for which I already have a Fedora package.  The latest challenge is that the Koji build server is trying to use qt-devel-3.x, while Meshlab needs qt-devel-4.x.</p>
<p>The obvious thing to do was to change the spec from:</p>
<pre><tt>BuildRequires: qt-devel</tt></pre>
<p>to</p>
<pre><tt>BuildRequires: qt-devel &gt;= 4.6</tt></pre>
<p>However, Koji still tries to use qt-devel-3.x!</p>
<p>A Google search revealed an <a href="http://comments.gmane.org/gmane.linux.redhat.fedora.rpmfusion.devel/12228">explanation in the rpmfusion-developers list from Kevin Fenzi</a>:</p>
<blockquote><p>That doesn&#8217;t work because it&#8217;s missing the Epoch. &#8220;&gt;= 1:4&#8243; would work, but it&#8217;s better to use the virtual qt4-devel Provides, which is backwards-compatible with EPEL 5 (which had an actual qt4-devel package), which will keep working in the future when Qt 5 will be the default and which avoids the pesky Epoch.</p></blockquote>
<p>Now on to the next problem!</p>
]]></content:encoded>
			<wfw:commentRss>http://whats.all.this.brouhaha.com/2012/06/24/building-epel6-packages-that-use-qt-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux group management</title>
		<link>http://whats.all.this.brouhaha.com/2012/06/06/linux-group-management/</link>
		<comments>http://whats.all.this.brouhaha.com/2012/06/06/linux-group-management/#comments</comments>
		<pubDate>Wed, 06 Jun 2012 23:42:35 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://whats.all.this.brouhaha.com/?p=977</guid>
		<description><![CDATA[The conventional wisdom has it that if you add a user to a group in a Linux (or Unix) system, the user will have to log in again for the new group membership to take effect.  Using the &#8220;newgrp&#8221; command, &#8230; <a href="http://whats.all.this.brouhaha.com/2012/06/06/linux-group-management/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The conventional wisdom has it that if you add a user to a group in a Linux (or Unix) system, the user will have to log in again for the new group membership to take effect.  Using the &#8220;newgrp&#8221; command, an existing shell can gain the group membership.  For example, to create a new group &#8220;foo&#8221;, add the current user to the group, and make it effective immediately:</p>
<pre><tt>sudo groupadd foo
sudo usermod -a -G foo user
newgrp foo</tt></pre>
<p>Note that this makes the new group effectively the user&#8217;s primary group ID in the current shell and any new descendents. If you don&#8217;t want that, do another newgrp back to the original group. The new group will still be in the process&#8217; group list.</p>
<p>Note that the &#8220;-a&#8221; (append) option to usermod may not exist in all Linux distributions.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://whats.all.this.brouhaha.com/2012/06/06/linux-group-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TRS-80 Model II TRSDOS: paranoia strikes deep</title>
		<link>http://whats.all.this.brouhaha.com/2012/03/31/trs-80-model-ii-trsdos-paranoia-strikes-deep/</link>
		<comments>http://whats.all.this.brouhaha.com/2012/03/31/trs-80-model-ii-trsdos-paranoia-strikes-deep/#comments</comments>
		<pubDate>Sat, 31 Mar 2012 09:32:59 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Retrocomputing]]></category>
		<category><![CDATA[Reverse-engineering]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://whats.all.this.brouhaha.com/?p=973</guid>
		<description><![CDATA[It looks like the developers of TRS-80 Model II TRSDOS were very paranoid that someone might be able to bypass the filesystem and access data on a floppy directly.  I&#8217;m not sure if their primary concern was file password protection, &#8230; <a href="http://whats.all.this.brouhaha.com/2012/03/31/trs-80-model-ii-trsdos-paranoia-strikes-deep/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It looks like the developers of TRS-80 Model II TRSDOS were very  paranoid that someone might be able to bypass the filesystem and access  data on a floppy directly.  I&#8217;m not sure if their primary concern was  file password protection, or if they had other reasons.  Obviously you  could write a program that accesses the floppy directly, by talking to  the FDC and DMAC chips yourself, and there&#8217;s not really anything that  can be done to prevent that.</p>
<p>Oddly enough, this was exactly the <strong>opposite</strong> of what Apple did in Apple  DOS.  Apple published the APIs to read and write sectors (RWTS), but  never published the &#8220;File Manager&#8221; APIs that allowed access to the file  system through means other than passing commands through the character  output vector (e.g., the BASIC statement PRINT CHR$(4);&#8221;OPEN FOO&#8221;).</p>
<p>I&#8217;ll mostly describe how things work in Model II TRSDOS 1.2, the  earliest version I&#8217;ve been able to obtain.  I haven&#8217;t studied 2.0 nearly  as much yet.  The TRSDOS 1.2 &#8220;kernel&#8221; consists of three parts, while  later versions are more monolithic.</p>
<p>The Model II boot ROM loads all of drive 0 track 0 (single density, 26  sectors of 128 bytes) into memory starting at 0e00.  First it looks for  the four characters &#8220;DIAG&#8221; at 1400 and &#8220;BOOT&#8221; at 1000.  If either are  missing, it refuses to proceed.  It calls the code at 1404, which in  TRSDOS is a simple hardware diagnostic.  When that returns, it jumps to  the first stage boot loader code at 1004.  Some other operating systems  don&#8217;t bother with a diagnostic, and just start their boot code at 1404,  never returning to the ROM.</p>
<p>The first stage boot loader actually understands the TRSDOS filesystem  enough to find the directory entries of files in TRSDOS load module  format, and load them into memory.  In 1.2, it loads &#8220;IODVRS/SYS&#8221; and  then &#8220;TRSDOS/SYS&#8221;, and jumps into the latter.  The Model II TRSDOS  filesystem is similar in many regards to that of Model I TRSDOS, but not  enough to actually be compatible. Unsurprisingly, it looks like an  intermediate step in the evolution from Model I TRSDOS to Model III  TRSDOS.  As in Model III TRSDOS, files can only have a single directory  entry, with a limited number of extents.</p>
<p>IODVRS/SYS contains, as the name implies, the low level I/O drivers for  the system, including the keyboard, display, printer, and floppy drives,  the dispatching for system (SVC) calls, and a few utility SVCs.   However, it only contains the SVC handlers for services 0-28, the I/O  functions and basic utility SVCs.  Note in particular that it contains  no file system code.  IODVRS/SYS is conceptually similar to the CP/M  BIOS, though lacking CP/Ms charming simplicity.  IODVRS/SYS provides  several undocumented SVCs for internal use by TRSDOS, including floppy  subsystem initialization (13), floppy sector read (14), and floppy  sector write (16). Note that at the time IODVRS/SYS is loaded, no call  is made into it to initialize it.</p>
<p>TRSDOS/SYS, however, is called after being loaded.  It basically  performs the TRSDOS initialization that only has to happen at boot  time.  It has another implementation of filesystem reading and load  module format handling, very similar to what is present in the stage 1  boot, but now instead of talking to the FDC and DMAC directly, it uses  the undocumented floppy SVCs described previously.  After various  initialization, it loads SYSRES/SYS and jumps into it.</p>
<p>SYSRES/SYS contains the filesystem code and other relatively high-level  TRSDOS infrastructure code.  It generally relies on SVC calls into  IODVRS/SYS to perform all I/O, and has very little other dependence on  IODVRS/SYS internals.  This is conceptually similar to the CP/M BDOS.   It loads system overlays to handle some SVCs and user commands.   Overlays SYS0/SYS through SYS9/SYS are small overlays, occupying one  disk granule (five sectors) and loading into 2200-26ff.  Other overlays  may be larger, and load at 2800 or higher.  Many of the overlays <strong>do</strong> depend on knowledge of the internals of SYSRES/SYS, directly accessing  subroutines and data structures without the use of vector tables or the  like.  This means that SYSRES/SYS and the overlays must have been built  at the same time, and would generally not be interchangeable with  earlier or later releases.</p>
<p>Anyhow, getting back to the paranoia part.  Someone apparently decided  that simply not documenting the SVCs that provide sector-level access to  the floppy was not sufficient to thwart those that might want to bypass  the filesystem.  After TRSDOS/SYS uses those SVCs for its part in the  boot process, it actually <strong>removes</strong> them from the SVC vector table, and  sets up jumps to them at undocumented internal TRSDOS locations 1130  (read sector) and 1133 (write sector).</p>
<p>In TRSDOS 1.2, access to all of the system files, including overlays, is  done through the file system.  The system files have normal file system  entries. Unlike Model I TRSDOS, neither the system file directory  entries nor the file contents need to be in any special location on the  disk.</p>
<p>In TRSDOS 2.0, things are much more monolithic.  The stage 1 boot code  only loads and jumps into a single file, SYSRES/SYS.  The boot code does  not care where this file is located, but other parts of the system do.   All of the overlays, small and large, are stored in a single file,  SYSTEM/SYS, which is required to start on the track after the primary  directory.  The first sector of SYSTEM/SYS contains a kind of overlay  directory that gives the track and sector numbers at which each overlay  starts.</p>
<p>There is perhaps some advantage to putting all of the overlays in a  single file, since the number of directory entries on the diskette is  limited to 96.  However, the need for a second, special directory  mechanism for overlays is ugly, even if it is only a simple one.   Requiring the system files to be at fixed locations on the disk (at  least relative to the primary directory) might be a reasonable  requirement if it yielded some performance gain, but it generally  doesn&#8217;t.  (With 1.2, the system files are set up when the disk is  formatted, so even though they <strong>could</strong> be anywhere, in practice they are  grouped together.)</p>
<p>TRSDOS 2.0 introduced changes to the disk organization, such that TRSDOS  1.2 and 2.0 diskettes are not interchangeable, except that the 2.0  XFERSYS utility can convert a 1.2 diskette to 2.0 format.  The disk  organization changes are basically gratuitous, and don&#8217;t provide any  benefit to the user, while obviously being a great inconvenience to  users with TRSDOS 1.2.  They mashed the GAT (granule allocation table)  and HIT (hash index table), which were sectors 1 and 2 of the directory  track in 1.2, into just sector 1 in 2.0.  In 1.2, the directory occupied  sectors 3-26, while in 2.0 it occupies sectors 2-25.  The only apparent  rationale for doing this is to free up sector 26 on the directory  track.  In TRSDOS 1.2, sector 26 was not used on any track but the  directory track, for any purpose.  In TRSDOS 2.0, sector 26 of <strong>every</strong> track is used to store five bytes of unique disk ID, to better detect  disk changes.  (it has been suggested that those bytes might also have  been used for software copy protection.)  However, rather than mashing  the GAT and HIT together, which made it impossible to support larger  disks such as double-sided disks, they easily could have special cased  the directory track(s) and stored the disk ID in either the GAT or HIT  sector.</p>
<p>TRSDOS 4.0 introduced much larger changes to the disk organization, in  order to support double-sided disks and hard disks.  I haven&#8217;t yet begun  to dig into the 4.0 code.</p>
]]></content:encoded>
			<wfw:commentRss>http://whats.all.this.brouhaha.com/2012/03/31/trs-80-model-ii-trsdos-paranoia-strikes-deep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ksim 8080 simulator released</title>
		<link>http://whats.all.this.brouhaha.com/2012/01/31/ksim-8080-simulator-released/</link>
		<comments>http://whats.all.this.brouhaha.com/2012/01/31/ksim-8080-simulator-released/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 16:49:43 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[RetroChallenge]]></category>

		<guid isPermaLink="false">http://whats.all.this.brouhaha.com/?p=970</guid>
		<description><![CDATA[As part of my RC2012WW project, I ran an 8080 exerciser and other instruction test programs on a Sol20 to better understand the behavior of the 8080&#8242;s flags (which are NOT exactly the same as those of the Z-80), and &#8230; <a href="http://whats.all.this.brouhaha.com/2012/01/31/ksim-8080-simulator-released/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As part of my <a title="Retrochallenge 2012 WW" href="http://www.wickensonline.co.uk/retrochallenge-website/tiki-index.php" target="_blank">RC2012WW</a> project, I ran an 8080 exerciser and other instruction test programs on a Sol20 to better understand the behavior of the 8080&#8242;s flags (which are NOT exactly the same as those of the Z-80), and update ksim to accurately simulate the flags.  There are a lot of Z-80 simulators out there, but fewer 8080 simulators, and fewer yet that get the flags right.</p>
<p><a title="ksim 0.2" href="http://www.brouhaha.com/~eric/software/ksim/ksim-0.2.tar.gz" target="_blank">ksim 0.2</a> is now released under the <a title="GPL v3.0" href="http://www.gnu.org/licenses/gpl-3.0.html" target="_blank">GPLv3 license</a>.  While ksim may be minimally useful in its current form, it is primarily intended as a reference implementation. There is currently no documentation, and the code is not well-commented. Maximum performance was not a goal, so very little optimization has been done. Interrupts are not implemented, though they would be easy to add. There is crude console I/O, and extremely crude disk I/O. It works just barely well enough that I&#8217;ve successfully run CP/M.</p>
]]></content:encoded>
			<wfw:commentRss>http://whats.all.this.brouhaha.com/2012/01/31/ksim-8080-simulator-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Simulation success!</title>
		<link>http://whats.all.this.brouhaha.com/2012/01/19/simulation-success/</link>
		<comments>http://whats.all.this.brouhaha.com/2012/01/19/simulation-success/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 09:32:38 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[RetroChallenge]]></category>

		<guid isPermaLink="false">http://whats.all.this.brouhaha.com/?p=967</guid>
		<description><![CDATA[By writing some additional 8080 test programs, running them on both the Sol-20 and my simulator, and comparing the output, I&#8217;ve found and fixed several bugs in my simulator.  Now the 8080 Exerciser running on the simulator matches all the &#8230; <a href="http://whats.all.this.brouhaha.com/2012/01/19/simulation-success/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>By writing some additional 8080 test programs, running them on both the Sol-20 and my simulator, and comparing the output, I&#8217;ve found and fixed several bugs in my simulator.  Now the 8080 Exerciser running on the simulator matches all the CRCs.</p>
<p>There was a bug in &#8220;POP PSW&#8221; setting the parity flag wrong, which screwed up all of the CRCs.</p>
<p>I had the polarity of the AF flag wrong for the subtract, compare, and decrement instructions.</p>
<p>In the DAA instruction, to determine whether to correct the high nibble,  at one point in the logic I was using AF when I should have been using  CY.</p>
<p>While it remains possible that the simulator could contain some errors not caught by the exerciser, at this point I&#8217;m fairly confident that it is working correctly. W00t!</p>
]]></content:encoded>
			<wfw:commentRss>http://whats.all.this.brouhaha.com/2012/01/19/simulation-success/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sol-20 running reliably, now running debug version of 8080 exerciser</title>
		<link>http://whats.all.this.brouhaha.com/2012/01/18/sol-20-running-reliably-now-running-debug-version-of-8080-exerciser/</link>
		<comments>http://whats.all.this.brouhaha.com/2012/01/18/sol-20-running-reliably-now-running-debug-version-of-8080-exerciser/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 08:44:08 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[RetroChallenge]]></category>

		<guid isPermaLink="false">http://whats.all.this.brouhaha.com/?p=964</guid>
		<description><![CDATA[With a good power supply filter capacitor, the Sol-20 is now running sufficiently reliably that it passed the 8080 Exerciser., generating the expected CRC values. In order to find the bug(s) in the 8080 simulator I wrote last month, I&#8217;ve &#8230; <a href="http://whats.all.this.brouhaha.com/2012/01/18/sol-20-running-reliably-now-running-debug-version-of-8080-exerciser/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>With a good power supply filter capacitor, the Sol-20 is now running sufficiently reliably that it passed the 8080 Exerciser., generating the expected CRC values. In order to find the bug(s) in the 8080 simulator I wrote last month, I&#8217;ve just started the Sol running a modified version of the exerciser that outputs every result byte it hashes into the CRC. The simulator ran this in 10 minutes on a 3.2 GHz Athlon II X3 450, prodcucing 16,191,998 lines of output. I estimate that it will take 24.5 hours for the Sol-20 to run it.</p>
]]></content:encoded>
			<wfw:commentRss>http://whats.all.this.brouhaha.com/2012/01/18/sol-20-running-reliably-now-running-debug-version-of-8080-exerciser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sol-20 power supply capacitor failure</title>
		<link>http://whats.all.this.brouhaha.com/2012/01/17/sol-20-power-supply-capacitor-failure/</link>
		<comments>http://whats.all.this.brouhaha.com/2012/01/17/sol-20-power-supply-capacitor-failure/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 02:09:50 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[RetroChallenge]]></category>

		<guid isPermaLink="false">http://whats.all.this.brouhaha.com/?p=962</guid>
		<description><![CDATA[The reason the Sol I&#8217;ve been using is unreliable (mostly in the first 30 seconds after powerup, but sometimes later also) is that C8, a 18000 uF 10V electrolytic filter capacitor for the 5V power supply, has gone high-leakage. It&#8217;s &#8230; <a href="http://whats.all.this.brouhaha.com/2012/01/17/sol-20-power-supply-capacitor-failure/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The reason the Sol I&#8217;ve been using is unreliable (mostly in the first 30 seconds after powerup, but sometimes later also) is that C8, a 18000 uF 10V electrolytic filter capacitor for the 5V power supply, has gone high-leakage.</p>
<p>It&#8217;s easy to find an electrical replacement, but difficult to find one that is the same physical size as the original.  There has been so much advancement in capacitor technology since 1976 that the modern ones are less than a third the volume.</p>
]]></content:encoded>
			<wfw:commentRss>http://whats.all.this.brouhaha.com/2012/01/17/sol-20-power-supply-capacitor-failure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modified 8080 exerciser to run on &#8220;bare metal&#8221; Sol-20</title>
		<link>http://whats.all.this.brouhaha.com/2012/01/16/modified-8080-exerciser-to-run-on-bare-metal-sol-20/</link>
		<comments>http://whats.all.this.brouhaha.com/2012/01/16/modified-8080-exerciser-to-run-on-bare-metal-sol-20/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 02:49:40 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[RetroChallenge]]></category>

		<guid isPermaLink="false">http://whats.all.this.brouhaha.com/?p=960</guid>
		<description><![CDATA[Frank Cringle released a GPL&#8217;d Z80 CPU exerciser in 1994, and Ian Bartholomew released modified versions for the 8080 and 8085 in 2009.  Since I don&#8217;t have CP/M running on my Sol-20 yet, I&#8217;ve modified the sources to assemble with &#8230; <a href="http://whats.all.this.brouhaha.com/2012/01/16/modified-8080-exerciser-to-run-on-bare-metal-sol-20/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Frank Cringle released a GPL&#8217;d Z80 CPU exerciser in 1994, and Ian Bartholomew released <a title="8080/8085 CPU Exerciser" href="http://www.idb.me.uk/sunhillow/8080.html" target="_blank">modified versions for the 8080 and 8085</a> in 2009.  Since I don&#8217;t have CP/M running on my Sol-20 yet, I&#8217;ve modified the sources to assemble with the <a title="The Macroassembler AS" href="http://john.ccac.rwth-aachen.de:8000/as/" target="_blank">AS macro cross assembler</a> (asl), and run on a &#8220;bare metal&#8221; Sol-20 (no CP/M), with output to the serial port.  I haven&#8217;t actually run the modified version on the Sol yet, but have run it on the 8080 simulator I wrote last month.</p>
<p>The purpose of getting it running on the Sol-20 isn&#8217;t that I think there&#8217;s anything wrong with my Sol-20, but rather that the 8080 simulator doesn&#8217;t generate the same hashes, so I probably don&#8217;t have the condition code computations correct. Once I&#8217;ve verified that it works and produces the correct hashes on the Sol-20, I&#8217;ll further modify it to output the bytes being hashed into the CRC, and compare those with the simulator.</p>
]]></content:encoded>
			<wfw:commentRss>http://whats.all.this.brouhaha.com/2012/01/16/modified-8080-exerciser-to-run-on-bare-metal-sol-20/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
