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

: Socio-Economic impact of 3G/4G technology on Pakistan:

: Socio-Economic impact of 3G/4G technology on Pakistan: Socio-Economic impact of 3G/4G technology on Pakistan   The Government of Pakistan is going to auction 3G/4G spectrum on April 23, 2014. The 3G/4G will enhance the broadband proliferation in Pakistan. This service will generate revenue between Rs. 380 and Rs. 1180 up to 2020 for national exchequer of the country. By launching this service mobile users will migrate from text or voice based services to data driven services like video calling, live video streaming, e-education, e-banking, e-health, e-commerce and social media applications. The 3G/4G service will provide ubiquitous internet access to users through smart phones. The debut of this service will open huge opportunities for entrepreneurs in Pakistan and generate million of direct and indirect jobs. This technology will improve productivity and efficiency of government, corporations a...

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