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...

Bing vs. Google

How Microsoft Bing Works Bing vs. Google You've heard it all before. It's the most overused axiom in any event where the underdog takes on the top dog: David versus Goliath. The underdog rarely has a chance and almost never pulls off the improbable upset. That's sort of the case with Bing. With Google as the top dog of search engines, no company outside of Yahoo has been able to muster much of a challenge. Search is Google's bread and butter. Microsoft, on the other hand, is much more diverse. But Google's single focus has rewarded it with the largest piece of the pie. Microsoft's Windows Live Search was a search engine that went along with the company's other Live-brand-named products. Live Search wasn't a dedicated search, or in Bing's case, decision engine, and couldn't compete with Google. That's why Microsoft built Bing. To compete with the Google juggernaut, Microsoft ja...