GithubHelp home page GithubHelp logo

agn453 / zexall Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 1.0 52 KB

A Z80 Instruction Set Exerciser for CP/M-80

License: GNU General Public License v2.0

Assembly 80.45% Perl 19.55%
z80 cpm cpm22 cpmplus instruction-set-exerciser

zexall's Introduction

ZEXALL

A Z80 Instruction Set Exerciser for CP/M-80

The ZEXDOC and ZEXALL programs by Frank D. Cringle are for testing the Zilog Z80 CPU. There are two versions - one tests by using the documented flags (zexdoc.com) and the other one tests by checking both the documented and undocumented flags (zexall.com).

The Flag bits are -

bit    7    6    5    4    3    2   1   0
       S    Z    x    H    x   P/V  N   C

where
       C = carry flag
       N = add/subtract flag
     P/V = parity/overflow flag
       H = half carry flag
       Z = zero flag
       S = sign flag

The flag bits marked x above are the undocumented flags. There's a summary of how the Z80 flags are affected by each instruction (including the undocumented ones) at http://www.z80.info/z80sflag.htm

The exercisers can be run on a real Zilog Z80 8-bit CPU or to verify operation under an emulator. Both binaries can be run under one of the Digital Research's CP/M-80 operating systems (CP/M 2.2, CP/M 3 etc).

These programs (and their source-code in Z80 assembler) were extracted from the final version of the YAZE-AG (Yet Another Z80 Emulator) version 2.51.1 curated by Andreas Gerlich at

http://www.mathematik.uni-ulm.de/users/ag/yaze-ag

They are licensed under the GNU General Public License v2.0.

Updates

  • Add modified source-code that can be assembled using Hector Peraza's ZSM4 Z80 Macro Assembler (see https://github.com/hperaza/ZSM4 for source, binaries and documentation). These source files have the .mac file type. Build these with commands like -
zsm4 =zexdoc/L
link zexdoc

zexall's People

Contributors

agn453 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

nickd4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.