Skip to main content

: T80 Core To Be The Most Precise 8080 To Date :

T80 Core To Be The Most Precise 8080 To Date
8080 Emulation Quality


8080 has many dark corners. Unlike its more popular successor Z80, 8080 had never been studied enough and most emulator code, and FPGA cores, relied on data from various books and often even word of mouth. Thusly, it's known that DAA instruction doesn't yield correct result after subtration but it's not known why and AC flag has mysterious ways too..
Just recently a few enthusiastic people from a Russian Vector-06c fans forum found a piece of software for Vector-06c which could not be started in any of the existing emulators, couldn't be started in my FPGA replica yet had no problem running in the real Vector-06c at all. After some investigation it turned out that 8080 ALU had AC flag inverted after SUB operation. This involves SUB, SBB, SBI, DCR, CMP, CPI instructions. The pesky ware used the contents of 8080 flags register as a branch address. Ultimately it led to this discovery of auxilliary carry anomaly.

While fixing this issue in the T80 core, which I use in my Vector-06C replica, I discovered a lot of other discrepancies with the original CPU. Thanks to the ultimately inquisitive CPU test written by Ian Bartholomew, 8080 Exerciser, I was able to verify my version of T80 against the baseline set by the real CPU in a real computer.

Probably not an earth-shattering news, but this is a milestone in emulation of 8080 CPU nevertheless. As of now, there are no known tests that could tell my version of T80 in 8080 mode from the real thing. Update your emulators or you're going to lose the edge :) Only my version has these changes at the moment, they had not been merged with the "official" opencores.org version.

One thing worth noting: real CPU tests were done on a KR580VM80A, which is known to be a gate-level clone of 8080, but still not exactly the real thing. If you have a real 8080 CPU computer which can run CP/M 2.2 or similar, please try Ian's test on your computer and send the results to him or to me.


Enjoy :)

Ahmad Bin Shafiq and Momin Ali

Comments

Popular posts from this blog

GPS : Global Positioning System

What is GPS? The Global Positioning System (GPS) is a satellite-based navigation system made up of a network of 24 satellites placed into orbit by the U.S. Department of Defense. GPS was originally intended for military applications, but in the 1980s, the government made the system available for civilian use. GPS works in any weather conditions, anywhere in the world, 24 hours a day. There are no subscription fees or setup charges to use GPS. How it works GPS satellites circle the earth twice a day in a very precise orbit and transmit signal information to earth. GPS receivers take this information and use triangulation to calculate the user's exact location. Essentially, the GPS receiver compares the time a signal was transmitted b...

Mac vs. PC

Mac vs. PC This is one of the most controversial topics when talking about computers. This document is meant to give a comparison between Apple Macintosh computers and PC computers running Microsoft Windows. This page should be used to help educate users looking to buy a new computer and not as a method of declaring the best of the two. You should base your buying decision off what you believe will work best for you. Topic Mac PC Security When compared to any PC running Microsoft Windows all Apple Macintosh computers are much more secure and less vulnerable to viruses and other malware. Most people today are using computers running some version of Microsoft Windows, which makes it a much better target for attackers. Price Although many may argue you get what you pay for, when compared to a PC an Apple co...

How to Connect Your Computer to Your TV

How to Connect Your Computer to Your TV In 2005, then-Microsoft Chairman and CEO Bill Gates shows off the company's Windows XP Media Center Edition software, which can be used to deliver video, music and photos from a computer to a TV. ­There's something painfully ironic about sitting on your living room couch, just a few feet away from a beautiful widescreen HDTV , watching a movie on your tiny laptop. Yet this is what most of us do when we download movies or TV shows onto our computers . The same goes for showing off our latest digital photos to friends. We all huddle around the 15-inch computer display while the TV screen goes unused. And what about that PowerPoint presentation you just gave at work? Wouldn't it have looked 1,000 times better on the wall-mounted plasma display in the conference room? There are many compelling reasons why we want to connect our computers to our televisions, especiall...