pyz80


Namepyz80 JSON
Version 1.3.0 PyPI version JSON
download
home_pageNone
SummaryZ80 cross-assembler for SAM Coupé code
upload_time2025-07-25 15:51:55
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseNone
keywords sam coupe z80 assembler
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyz80 - a Z80 cross assembler

By Andrew Collier  
[https://www.intensity.org.uk/contact.html](https://www.intensity.org.uk/contact.html)

Enhancements by  
Simon Owen, Adrian Brown, Stefan Drissen, Pete Moore, Madis Kaal.

## Introduction

pyz80 is an assembler for the assembly language of the Z80 micro-processor.

It is designed in particular for producing code to run on the SAM Coupé
computer, and outputs disk images  which can be loaded by the SimCoupe emulator,
or copied onto floppy disk for use with genuine hardware SAMs. Nonetheless, it
may be useful for users of other Z80-based platforms as well.

pyz80 is distributed under the terms of the [GNU General Public
License](https://www.gnu.org/licenses/gpl.html). You can download and use it at
no cost. See the file COPYING for more information.

## Installation

pyz80 requires Python 3.8 or later, which is available on modern versions of
Windows, Linux, and macOS. Later releases are available at
[python.org](https://www.python.org/downloads/).

Initial install, which should add the `pyz80` command to your path:
```
python -m pip install pyz80
```

Update existing installation:
```
python -m pip install --upgrade pyz80
```

Uninstall:
```
python -m pip uninstall pyz80
```

## Usage

pyz80 is a command-line tool. To use it, type pyz80 on your command line
followed by the path to your input z80 source file:

e.g. `pyz80 test/test.z80s`

This will assemble the source file, and generate a disk image which contains the
object code. You can supply more than one z80 source file, in which case each
object file is saved as a separate file in the resulting disk image.

You can also add options (before the source files) to change details about the
operation of pyz80:

`-o outputfile`

This option allows you to specify the name of the generated disk image. If this
option is not given, the name is chosen based on the filename of the input
source file (or the first input source file, if you have specified more than
one).

`--nozip`

If this option is given, then the generated disk image will not be compressed.
Otherwise, it will be compressed using gzip.

`-I filepath`

This option allows you to add an extra file to the disk image. It will be added
to the directory before any assembled files, so for example you could add the
"SAMDOS" file to the image to make it bootable.

You can add multiple files by using the -I option more than once:

e.g. `pyz80 -I SAMDOS -I file.txt textReader.z80s`

Only code files can be added in this manner, they start at address 32768 and do
not auto-execute. If you wish to change the start or execute address of the
file, you will need to create a small Z80 source input file containing an MDAT
directive. See the Syntax section for further details.

`--obj=outputfile`

This option allows you to save the generated code as a raw binary file, instead
of part of a disk image. If you specify this option, no disk image will be
generated (unless you also explicitly specify an output disk image file name).

You may only assemble a single input Z80 source file if you use this option.

```
-D symbol
-D symbol=value
```

This option defines a symbol before beginning to assemble the source file. The
value of the symbol will be available to all expressions, both within
instructions and also in assembler directives.

Since every symbol must have an integer value, if nothing is specified then 1
will be assumed.

`--exportfile=file`

This option allows you to save the whole symbol table to a file, following
assembly.

Only one file can be exported in this fashion. The file format is likely to be
specific to the version of python in use.

`--importfile=file`

This option allows you to import a symbol table which had previously been saved
with the corresponding --exportfile option. All the symbols which had been
defined during the previous assembly run, will be available to any part of your
input Z80 source.

`--case`

If this option is given, then all symbols in the input Z80 source file will be
treated as case sensitive (this is the behaviour of the original COMET
assembler). Otherwise, any combination of lower case or upper case will be
considered equivalent.

Please note this applies only to symbols. Instruction op-codes are always
accepted in any combination of upper and lower case.

`--nobodmas`

If this option is given, then all expressions will be parsed from left to right
instead of using the usual operator ordering rules, although brackets can still
be used to specify precedence. For example the result of 10+10/10 in this mode
will be two and not eleven (this is the behaviour of the original COMET
assembler).

`--intdiv`

If this option is given, then all arithmetic divisions will give integer
results, instead of floating point results. For example the result of 3/2 will
be 1 and not 1.5 (this is the behaviour of the original COMET assembler). This
will mostly affect calculations where an intermediate result is used for further
calculations. The final value will always be truncated to an integer for
register assignments.

`-s regexp`

This option allows you to print out the final value of one or more symbols at
the end of assembling a source file. If you specify the text name of a
particular symbol, pyz80 will print out the value of that symbol, and any others
whose name completely contains what you have asked for:

e.g. `pyz80 -s LDI3 test/test.z80s`

prints:  `{'LDI31': 33802, 'LDI3': 32850, 'LDI30': 33741, 'LDI32': 33865}`

Another common use is to print the value of every symbol in the whole assembly,
by using the wild-card character (full stop):

e.g. `pyz80 -s . test/test.z80s`

Most precisely, regexp is a regular expression in python's format; if any part
of a symbol matches the expression, then the symbol will be printed.

`-e`

If there are errors in the source code, pyz80 will attempt to diagnose the
problem and tell you which line of the input Z80 source file is causing the
problem. Occasionally, however, it can be difficult to see what mistake in that
line is causing the confusion. If this option was specified on the command line,
pyz80 will allow the python interpreter to print out its own messages about the
problems it found, which may provide more detailed information.

## Syntax

The input Z80 source text files have a format similar to that used by COMET, one
of the SAM's most popular native assemblers.

Each line of the source file may contain one symbol definition, and one Z80
instruction or assembler directive.

Comments start with semicolon and continue to the end of the line.

## Instructions

Z80 instructions and assembler directives may be formatted in upper or lower
case.

e.g.
```
ld   A,(DE)
INC  e
```

pyz80 recognises all valid Z80 instructions, included those traditionally
undocumented. In instructions where the low byte or high byte of the index
registers can be addressed individually, they are referred to in pyz80 syntax as
IXh, IXl, IYh and IYl.

The undocumented compound instructions (shift and rotate instructions which
operate through the index registers and also copy the resulting value into a
main register) have the following form of syntax in pyz80:

e.g.
```
ROT r, (IX+c)
```

Undocumented instruction SLL is also included, but because it doesn't operate as
its name implies, pyz80 emits a warning when it is used. To assemble this
instruction without a warning, use the opcode SL1 instead.

## Symbols

Symbols are defined by the symbol name at the start of a line, followed by
colon. They are generally given the address of the following instruction, but
can be assigned explicitly using the EQU directive.

Symbols can contain any alphanumeric character, underscore, and full stop.
Symbols formatted in upper or lower case may be used interchangeably, unless
--case was specified on the command line.

General symbols have global scope. A symbol defined anywhere in the source is
valid at all other points in the source, and must be defined only once.

A symbol starting with the @ sign (or consisting of the @ sign alone) is a local
symbol. You may define a local symbol with the same name multiple times within
the source, and this is not an error. The value of a local symbol is always
taken from the a definition in the same file, the nearest definition to the
point where the symbol is being used.

When using a local symbol, you can add + (or -) immediately following the @
sign, which forces pyz80 to use the next (or previous) definition respectively,
always ignoring matches in the opposite direction.

e.g.
```
@loop:  call work
        dec  b
        jr   nz, @-loop ; jump up two lines

        ld   b,7
@loop:  call office
        dec  b
        jr   nz, @loop
```

Where a pair of braces is used as part of a symbol name, the value of the
expression inside will be substituted into the name of the symbol being defined
or used.

e.g.
```
nine:     equ 9
k{nine}:  equ $ ; defines a symbol called k9
                ; is equivalent to  k9: equ $
```

Note that the symbol being substituted must be available in the first pass of
the assembler (i.e. it must be defined earlier in the file than it is used).

The expression defined (symbol) tests whether a symbol is defined anywhere in
the source, without causing an error if it is not found. The value of this
expression is always either 0, if the symbol does not exist, or 1, if it is
defined no matter what its value. It can be particularly useful in conjunction
with the command line option -D, which allows you to build variant code files
without changing the source.

e.g.
```
ld a, defined(DEBUG)
```

## Assembler directives

`ORG address`

Specify the origin of the code, i.e. the address from which it is intended to be
run. This can be anywhere in the address range of the Z80, that is, 0 to 65535.

```
DUMP address
DUMP page, offset
```

Specify the destination address of the code output. This directive is available
in two forms. The first takes an address from 16384 to 65535, these are
addresses in pages 0 to 2 as addressed in BASIC. The second form takes a page
number from 0 to 31, and an offset within that page of 0 to 16383.

`AUTOEXEC`

The current DUMP address will be marked as the execute address in the directory
entry of the output disk image. When the code file is loaded from the disk image
by SAMDOS, it will automatically call the execute address. Note that when a
machine code routine is called from BASIC it will usually be paged into section
C of the address space.

This directive may not be used more than once during assembly.

```
DEFB n [,n ...]
DB   n [,n ...]
```

Define bytes at the current address. Either DEFB or DB are allowed and are
equivalent in meaning. n can be a literal number or any expression, in the range
0 to 255 (or -128 to +127).

```
DEFW n [,n ...]
DW   n [,n ...]
```

Define words at the current address. Either DEFW or DW are allowed and are
equivalent in meaning. n can be a literal number or any expression, in the range
0 to 65535 (or -32768 to +32767).

```
DEFM "string"
DM   "string"
```

Define a message at the current address. The string is always delimited by
double quotes. To include a double quote in the string itself, place two double
quote characters adjacent to each other.

```
DEFS n
DS   n
```

Define storage space at the current address. The current address increases by n
bytes, thus leaving them available for your program's own use.

`DS ALIGN n`

This ensures that the following instruction will be aligned on the boundary
specified, by leaving a space if necessary.

`MDAT "filename"`

This directive merges a data file from the host filesystem into the object code
at the current address. filename is enclosed in double-quotes and is expressed
relatively to the file currently being assembled.

```
INC "filename"
INCLUDE "filename"
```

This directive assembles the specified source file starting at the current
address, as though the whole file were literally included in the current one.
All symbols in the included file will be available globally, and must therefore
be unique (unless they are local symbols).

(Both forms of this directive are equivalent, but INCLUDE is available to avoid
confusion with the Z80's INC instruction)

`FOR range, instruction`

Repeats a single instruction (or directive) range times.

During assembly of this instruction, a symbol FOR is valid and holds the
iteration number from 0 to range-1.

```
symbol: EQU FOR range
        ...
NEXT symbol
```

Repeats several lines of assembly, range times. When the lines between EQU FOR
and NEXT are being assembled, the symbol symbol is valid, and holds the
iteration number from 0 to range-1.

FOR...NEXT blocks can be nested, with each layer using a different symbol name.

Where a local symbol is defined within a FOR...NEXT block, it can only be used
within the same block. All references to it will target the same iteration.

```
IF expression
    ...
[ELSE IF expression]
    ...
[ELSE]
    ...
ENDIF
```

An IF block allows conditional assembly of your source based on some condition.
For example, you may want to introduce some features during development of an
application but to leave them out of release builds; in this case, IF blocks can
be effectively used in conjunction with the -D command line option.

e.g.

```
IF defined (DEBUG)
    XOR A
    OUT (CLUT),a
ENDIF
```

Note that any symbols used in the expression must be available in the first pass
of the assembler (i.e. they must be defined earlier in the file than they are
used).

`ASSERT condition`

This directive evaluates whether condition is true, and aborts assembly if not.
For example, this can be used to ensure that the size of your code has not
overstepped any limits you may be imposing.

`PRINT expression1[, expression2 ...]`

Prints the result of the expressions as soon as they are evaluated during
assembly. Can be useful for logging and debugging, and showing the value of
symbols (as an alternative to the -s command line option)

`STRUCT`

This allows structures to be defined, entries within the struct are offsets from
the beginning of the structure.  Each entry in the structure defines how many bytes
are used via the RS command. ENDS closes the structure, these can be nested.  Each STRUCT
automatically defines a <name>.SizeOf value that is set to the size of the struct.
Useful for IX/IY indexing

e.g.

```
Sprite:   STRUCT
XPos:     RS   1
YPos:     RS   1
Width:    RS   1
Height:   RS   1
GfxPtr:   RS   2
          ENDS

          ld   ix, Sprites
          ld   b, 100
@Loop:
          ld   d, (IX + Sprite.XPos)
          ld   e, (IX + Sprite.YPos)
          ld   l, (IX + Sprite.GfxPtr + 0)
          ld   h, (IX + Sprite.GfxPtr + 1)
          call DrawSprite
          ld   de, Sprite.SizeOf
          add  ix, de
          djnz @Loop

Sprites:  ds  Sprite.SizeOf * 100
```

`MACRO`

Macros are small sections of code that can be repeated, passing in various parameters to
alter the contents of the macro.  Each parameter is used via \0, \1 etc within the macro.
Macros can be given the same name as long as the number of parameters are different.  The number
of parameters required is automatically calculated from the highest \n value within the macro.  Local
labels are local to the macro itself

e.g.

```
AND16BIT: MACRO
          LD   A, \0
          AND  \2
          LD   \0, A

          LD   A, \1
          AND  \3
          LD   \1, A
          ENDM

          ; The following lines in the code
          AND16BIT  H, L, &ff, &01
          AND16BIT  D, E, &0f, &01

          ; Would expand to the following when assembled
          LD   A, H
          AND  &ff
          LD   H, A

          LD   A, L
          AND  &01
          LD   L, A

          LD   A, D
          AND  &0f
          LD   D, A

          LD   A, E
          AND  &01
          LD   E, A
```

## Expressions and special characters

Wherever an instruction or directive requires a number, a mathematical
expression can be used instead. These are allowed to contain any symbol names
defined in the file. If the result of an expression is negative, it will appear
in the instruction in two's complement.

`$`   a symbol representing the address of the current instruction
`&`   prefixes a hexadecimal number
`0x`  prefixes a hexadecimal number
`%`   prefixes a binary number
`0b`  prefixes a binary number
`"`   a single character enclosed in double-quotes can be used to represent the ascii value of that character
`""`  strings are delimited by the double-quote character. To encode a literal double-quote within a string, use the double-quote character twice.
`\`   mod

Several mathematical functions are available within expressions. You may use any
method of the random or math python modules; a few examples are listed below:

`random()`

Returns a random floating point number between 0 and 1. It should be noted that
while intermediate stages of the calculation are allowed to have non-integer
values, the final value of an expression is always rounded to the nearest
integer. Thus it can be useful to multiply float numbers by a constant to keep
them in a useful range:

e.g.
```
DEFB random()\*256
```

`randrange(start,stop [,step])`

Returns a random integer in the range start ≤ x < stop

```
sin(angle)
cos(angle)
```

angle is specified in radians.

`pi`

## Thanks

Thanks to Edwin Blink for writing the original COMET assembler for the SAM Coupé.

Thanks to Simon Owen and other users for their feedback during development.

## Links

Latest pyz80 source code:  
[https://github.com/simonowen/pyz80/](https://github.com/simonowen/pyz80/)

pyz80 Homepage:  
[https://www.intensity.org.uk/samcoupe/pyz80.html](https://www.intensity.org.uk/samcoupe/pyz80.html)

SimCoupe Homepage:  
[https://simonowen.com/simcoupe/](https://simonowen.com/simcoupe/)

World of SAM archive:  
[https://www.worldofsam.org/](https://www.worldofsam.org/)

Wikipedia entry for the SAM Coupé (and for more links):  
[https://wikipedia.org/wiki/SAM\_Coupe](https://wikipedia.org/wiki/SAM_Coupé)

## Disclaimer

THIS PROGRAM AND DOCUMENTATION ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, NOT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A
PARTICULAR PURPOSE.  BY USING THE PROGRAM, YOU AGREE TO BEAR ALL RISKS AND
LIABILITIES ARISING FROM THE USE OF THE PROGRAM AND DOCUMENTATION AND THE
INFORMATION PROVIDED BY THE PROGRAM AND THE DOCUMENTATION.

## Release History

Version 1.3.0, 25 July 2025

  - Converted to Python package installed via pip, to simplify use.

Version 1.24, 22 July 2025

  - Removed Debug (Adrian Brown)

Version 1.23, 22 July 2025

  - Added MACRO support (Adrian Brown)

Version 1.22, 20 July 2025

  - Added STRUCT, RS, ENDS option (Adrian Brown)

Versions 1.21.x, 2014 to 2025

  - Added --mapfile to generate a map of symbol addresses
  - Added -x option for hex output from -s symbol display and PRINT directive.
  - Added -B option to specify custom bootable file, replacing SAMDOS file.
  - Added date/time to files in disk image (Stefan Drissen).
  - Added support for 9-sector disk image, used in conjunction with samdos9 image.
  - Added '3' to env shebang line, to ensure the Python 3.x is used.
  - Added support for Python 3.x, removed support for Python 2.x.
  - Added ALIGN directive to be equivalent to DEFS ALIGN.
  - Added listing file generation (Madis Kaal)
  - Fixed saved size of files with DUMP < &8000.
  - Fixed -I with file smaller than 501 bytes (Stefan Drissen)
  - Fixed defs >= &4000 at start results in no output (Stefan Drissen)
  - Fixed support for relative paths with INC/MDAT.
  - Fixed LD SP,IX and LD SP,IY generating the wrong code.
  - Fixed JR allowing PO/PE/P/M conditions.
  - Fixed LD I,n and LD R,n being accepted.
  - Fixed e in some contexts being evaluated as math.e
  - Fixed some invalid LD operand combinations.
  - Fixed broken indexed register range checking.
  - Fixed issue in earlier quoted comma fix.
  - Fixed issues that ignored invalid digits in binary values.
  - Fixed line number extraction under Windows, where paths also include a colon.
  - Fixed trailing whitespace issue in symbols (Stefan Drissen)
  - Fixed issue parsing source files with a BOM.
  - Improved sector count calculation, rounding up instead of adding 1 (Pete Moore).
  - Removed EX HL,DE as alternative for EX DE,HL

Version 1.21, 11 July 2013

  - A symbol name could include tab characters, which should be treated as a source error (reported by Chris Pile)

Version 1.2, 2 February 2009

  - Add PRINT directive
  - Local symbols used in an included file will search the parent file to find a definition
  - Chooses more appropriate names for files on the SAM disk image, based on the input source filename (reported by Thomas Harte)
  - Fixed options --obj and -o were incorrectly conflicting (reported by Thomas Harte)
  - Fixed symbol names containing strings 0b and 0x were misparsed (fixed by Simon Owen)
  - Fixed a misparseing of incorrect instructions of the form LD H,(23) (reported by Thomas Harte)

Version 1.1, 13 April 2007

  - Fix a problem when the comma character is included in quoted expressions
  - Documentation fix for INCLUDE directive

Version 1.0, 10 April 2007

  - option to include other files on the resulting disk image, or multiple object files
  - IXh, IXl, IYh and IYl can be used in operands where this forms a valid (undocumented) instruction
  - fixed ex (sp),ix
  - fixed parse bug if a symbol name starts with IX or IY
  - support for "compound" instructions such as RLC r,(IX+c)
  - option to not gzip the disk image
  - option to save raw binaries and not just into disk images
  - option to treat labels as case sensitive (as COMET itself does)
  - option to work without bodmas operator precedence (as COMET itself does)
  - better package with documentation and test sources
  - local" symbols starting with the @ character do not need to be unique; use them for the beginning of loops, for example. Any references to them will go to the nearest in the same file (or use @+ and @- for always the next or previous respectively)
  - IF, ELSE (IF), ENDIF pseudo-opcodes
  - defined(symbol) tests whether a symbol exists
  - multi-line FOR constructs for repeating sequences of instructions
  - curly braces text-substitute the value of one symbol into the name of another,
  - option to predefine symbols from the pyz80 command line
  - option to save and load whole symbol tables
  - saved files include only used space, and not the rest of the page

Version 0.6, 10 February 2006

  - implemented SLL (with a warning)
  - use directive AUTOEXEC (usually straight after a DUMP) to set automatic execution of code from the current target address
  - simple test to stop output file overwriting source file
  - instructions may now be tab separated, not just space
  - add warning when operands are generated out of range of the instruction
  - better default output file name
  - cope better with errors in z80s source (symbol names used twice)
  - added -e option (lets you see python's error messages directly)
  - allow . in symbol names
  - file doesn't have to start at page boundary (helpful for writing boot sectors and stuff)

Version 0.5, 15 January 2005

  - new pseudo-opcode: FOR limit, codeseq
  - allow % as a prefix to binary numbers
  - fix LD (IX+n),n
  - slightly more flexibility if EQU definition depends on a symbol has not been defined until later in the source file (this is not allowed to affect code size)
  - allow leading zeros in decimal literals (passing these directly to the python expression parser as previously would cause them to be treated as octal)
  - allow DB, DW ... as shorthand forms of DEFB, DEFW etc
  - allow character constants expressions (e.g. DB "A")
  - save file correctly if unused part of the last sector falls out of memory
  - more robust expression parser doesn't replace substrings of symbols
  - DEFM can cope with strings containing semicolons, colons
  - import python math and random modules to make some of its functions available to the expression parser
  - removed nesting of functions because the scoping rules don't seem to work the way FOR needs them
  - fixed confusion between INC opcode and INC (include) directive
  - changed file loading slightly because fileinput doesn't cut the recursive mustard.
  - allow underscore character in symbol names, and sanity check for syntax errors
  - print a subset of the symbol table after assembly is complete
  - files included by files included along a relative path will search for their files on that path

Version 0.1, 19 November 2004

  - initial release

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pyz80",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "sam, coupe, z80, assembler",
    "author": null,
    "author_email": "Andrew Collier <andrew@intensity.org.uk>, Simon Owen <simon@simonowen.com>, Adrian Brown <adrian@apbcomputerservices.co.uk>, Stefan Drissen <stefan.drissen@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/9f/d4/23ae436e2d36462bc1ecf472761fa77ed56bf612c2cdd12f288011e648ad/pyz80-1.3.0.tar.gz",
    "platform": null,
    "description": "# pyz80 - a Z80 cross assembler\r\n\r\nBy Andrew Collier  \r\n[https://www.intensity.org.uk/contact.html](https://www.intensity.org.uk/contact.html)\r\n\r\nEnhancements by  \r\nSimon Owen, Adrian Brown, Stefan Drissen, Pete Moore, Madis Kaal.\r\n\r\n## Introduction\r\n\r\npyz80 is an assembler for the assembly language of the Z80 micro-processor.\r\n\r\nIt is designed in particular for producing code to run on the SAM Coup\u00e9\r\ncomputer, and outputs disk images  which can be loaded by the SimCoupe emulator,\r\nor copied onto floppy disk for use with genuine hardware SAMs. Nonetheless, it\r\nmay be useful for users of other Z80-based platforms as well.\r\n\r\npyz80 is distributed under the terms of the [GNU General Public\r\nLicense](https://www.gnu.org/licenses/gpl.html). You can download and use it at\r\nno cost. See the file COPYING for more information.\r\n\r\n## Installation\r\n\r\npyz80 requires Python 3.8 or later, which is available on modern versions of\r\nWindows, Linux, and macOS. Later releases are available at\r\n[python.org](https://www.python.org/downloads/).\r\n\r\nInitial install, which should add the `pyz80` command to your path:\r\n```\r\npython -m pip install pyz80\r\n```\r\n\r\nUpdate existing installation:\r\n```\r\npython -m pip install --upgrade pyz80\r\n```\r\n\r\nUninstall:\r\n```\r\npython -m pip uninstall pyz80\r\n```\r\n\r\n## Usage\r\n\r\npyz80 is a command-line tool. To use it, type pyz80 on your command line\r\nfollowed by the path to your input z80 source file:\r\n\r\ne.g. `pyz80 test/test.z80s`\r\n\r\nThis will assemble the source file, and generate a disk image which contains the\r\nobject code. You can supply more than one z80 source file, in which case each\r\nobject file is saved as a separate file in the resulting disk image.\r\n\r\nYou can also add options (before the source files) to change details about the\r\noperation of pyz80:\r\n\r\n`-o outputfile`\r\n\r\nThis option allows you to specify the name of the generated disk image. If this\r\noption is not given, the name is chosen based on the filename of the input\r\nsource file (or the first input source file, if you have specified more than\r\none).\r\n\r\n`--nozip`\r\n\r\nIf this option is given, then the generated disk image will not be compressed.\r\nOtherwise, it will be compressed using gzip.\r\n\r\n`-I filepath`\r\n\r\nThis option allows you to add an extra file to the disk image. It will be added\r\nto the directory before any assembled files, so for example you could add the\r\n\"SAMDOS\" file to the image to make it bootable.\r\n\r\nYou can add multiple files by using the -I option more than once:\r\n\r\ne.g. `pyz80 -I SAMDOS -I file.txt textReader.z80s`\r\n\r\nOnly code files can be added in this manner, they start at address 32768 and do\r\nnot auto-execute. If you wish to change the start or execute address of the\r\nfile, you will need to create a small Z80 source input file containing an MDAT\r\ndirective. See the Syntax section for further details.\r\n\r\n`--obj=outputfile`\r\n\r\nThis option allows you to save the generated code as a raw binary file, instead\r\nof part of a disk image. If you specify this option, no disk image will be\r\ngenerated (unless you also explicitly specify an output disk image file name).\r\n\r\nYou may only assemble a single input Z80 source file if you use this option.\r\n\r\n```\r\n-D symbol\r\n-D symbol=value\r\n```\r\n\r\nThis option defines a symbol before beginning to assemble the source file. The\r\nvalue of the symbol will be available to all expressions, both within\r\ninstructions and also in assembler directives.\r\n\r\nSince every symbol must have an integer value, if nothing is specified then 1\r\nwill be assumed.\r\n\r\n`--exportfile=file`\r\n\r\nThis option allows you to save the whole symbol table to a file, following\r\nassembly.\r\n\r\nOnly one file can be exported in this fashion. The file format is likely to be\r\nspecific to the version of python in use.\r\n\r\n`--importfile=file`\r\n\r\nThis option allows you to import a symbol table which had previously been saved\r\nwith the corresponding --exportfile option. All the symbols which had been\r\ndefined during the previous assembly run, will be available to any part of your\r\ninput Z80 source.\r\n\r\n`--case`\r\n\r\nIf this option is given, then all symbols in the input Z80 source file will be\r\ntreated as case sensitive (this is the behaviour of the original COMET\r\nassembler). Otherwise, any combination of lower case or upper case will be\r\nconsidered equivalent.\r\n\r\nPlease note this applies only to symbols. Instruction op-codes are always\r\naccepted in any combination of upper and lower case.\r\n\r\n`--nobodmas`\r\n\r\nIf this option is given, then all expressions will be parsed from left to right\r\ninstead of using the usual operator ordering rules, although brackets can still\r\nbe used to specify precedence. For example the result of 10+10/10 in this mode\r\nwill be two and not eleven (this is the behaviour of the original COMET\r\nassembler).\r\n\r\n`--intdiv`\r\n\r\nIf this option is given, then all arithmetic divisions will give integer\r\nresults, instead of floating point results. For example the result of 3/2 will\r\nbe 1 and not 1.5 (this is the behaviour of the original COMET assembler). This\r\nwill mostly affect calculations where an intermediate result is used for further\r\ncalculations. The final value will always be truncated to an integer for\r\nregister assignments.\r\n\r\n`-s regexp`\r\n\r\nThis option allows you to print out the final value of one or more symbols at\r\nthe end of assembling a source file. If you specify the text name of a\r\nparticular symbol, pyz80 will print out the value of that symbol, and any others\r\nwhose name completely contains what you have asked for:\r\n\r\ne.g. `pyz80 -s LDI3 test/test.z80s`\r\n\r\nprints:  `{'LDI31': 33802, 'LDI3': 32850, 'LDI30': 33741, 'LDI32': 33865}`\r\n\r\nAnother common use is to print the value of every symbol in the whole assembly,\r\nby using the wild-card character (full stop):\r\n\r\ne.g. `pyz80 -s . test/test.z80s`\r\n\r\nMost precisely, regexp is a regular expression in python's format; if any part\r\nof a symbol matches the expression, then the symbol will be printed.\r\n\r\n`-e`\r\n\r\nIf there are errors in the source code, pyz80 will attempt to diagnose the\r\nproblem and tell you which line of the input Z80 source file is causing the\r\nproblem. Occasionally, however, it can be difficult to see what mistake in that\r\nline is causing the confusion. If this option was specified on the command line,\r\npyz80 will allow the python interpreter to print out its own messages about the\r\nproblems it found, which may provide more detailed information.\r\n\r\n## Syntax\r\n\r\nThe input Z80 source text files have a format similar to that used by COMET, one\r\nof the SAM's most popular native assemblers.\r\n\r\nEach line of the source file may contain one symbol definition, and one Z80\r\ninstruction or assembler directive.\r\n\r\nComments start with semicolon and continue to the end of the line.\r\n\r\n## Instructions\r\n\r\nZ80 instructions and assembler directives may be formatted in upper or lower\r\ncase.\r\n\r\ne.g.\r\n```\r\nld   A,(DE)\r\nINC  e\r\n```\r\n\r\npyz80 recognises all valid Z80 instructions, included those traditionally\r\nundocumented. In instructions where the low byte or high byte of the index\r\nregisters can be addressed individually, they are referred to in pyz80 syntax as\r\nIXh, IXl, IYh and IYl.\r\n\r\nThe undocumented compound instructions (shift and rotate instructions which\r\noperate through the index registers and also copy the resulting value into a\r\nmain register) have the following form of syntax in pyz80:\r\n\r\ne.g.\r\n```\r\nROT r, (IX+c)\r\n```\r\n\r\nUndocumented instruction SLL is also included, but because it doesn't operate as\r\nits name implies, pyz80 emits a warning when it is used. To assemble this\r\ninstruction without a warning, use the opcode SL1 instead.\r\n\r\n## Symbols\r\n\r\nSymbols are defined by the symbol name at the start of a line, followed by\r\ncolon. They are generally given the address of the following instruction, but\r\ncan be assigned explicitly using the EQU directive.\r\n\r\nSymbols can contain any alphanumeric character, underscore, and full stop.\r\nSymbols formatted in upper or lower case may be used interchangeably, unless\r\n--case was specified on the command line.\r\n\r\nGeneral symbols have global scope. A symbol defined anywhere in the source is\r\nvalid at all other points in the source, and must be defined only once.\r\n\r\nA symbol starting with the @ sign (or consisting of the @ sign alone) is a local\r\nsymbol. You may define a local symbol with the same name multiple times within\r\nthe source, and this is not an error. The value of a local symbol is always\r\ntaken from the a definition in the same file, the nearest definition to the\r\npoint where the symbol is being used.\r\n\r\nWhen using a local symbol, you can add + (or -) immediately following the @\r\nsign, which forces pyz80 to use the next (or previous) definition respectively,\r\nalways ignoring matches in the opposite direction.\r\n\r\ne.g.\r\n```\r\n@loop:  call work\r\n        dec  b\r\n        jr   nz, @-loop ; jump up two lines\r\n\r\n        ld   b,7\r\n@loop:  call office\r\n        dec  b\r\n        jr   nz, @loop\r\n```\r\n\r\nWhere a pair of braces is used as part of a symbol name, the value of the\r\nexpression inside will be substituted into the name of the symbol being defined\r\nor used.\r\n\r\ne.g.\r\n```\r\nnine:     equ 9\r\nk{nine}:  equ $ ; defines a symbol called k9\r\n                ; is equivalent to  k9: equ $\r\n```\r\n\r\nNote that the symbol being substituted must be available in the first pass of\r\nthe assembler (i.e. it must be defined earlier in the file than it is used).\r\n\r\nThe expression defined (symbol) tests whether a symbol is defined anywhere in\r\nthe source, without causing an error if it is not found. The value of this\r\nexpression is always either 0, if the symbol does not exist, or 1, if it is\r\ndefined no matter what its value. It can be particularly useful in conjunction\r\nwith the command line option -D, which allows you to build variant code files\r\nwithout changing the source.\r\n\r\ne.g.\r\n```\r\nld a, defined(DEBUG)\r\n```\r\n\r\n## Assembler directives\r\n\r\n`ORG address`\r\n\r\nSpecify the origin of the code, i.e. the address from which it is intended to be\r\nrun. This can be anywhere in the address range of the Z80, that is, 0 to 65535.\r\n\r\n```\r\nDUMP address\r\nDUMP page, offset\r\n```\r\n\r\nSpecify the destination address of the code output. This directive is available\r\nin two forms. The first takes an address from 16384 to 65535, these are\r\naddresses in pages 0 to 2 as addressed in BASIC. The second form takes a page\r\nnumber from 0 to 31, and an offset within that page of 0 to 16383.\r\n\r\n`AUTOEXEC`\r\n\r\nThe current DUMP address will be marked as the execute address in the directory\r\nentry of the output disk image. When the code file is loaded from the disk image\r\nby SAMDOS, it will automatically call the execute address. Note that when a\r\nmachine code routine is called from BASIC it will usually be paged into section\r\nC of the address space.\r\n\r\nThis directive may not be used more than once during assembly.\r\n\r\n```\r\nDEFB n [,n ...]\r\nDB   n [,n ...]\r\n```\r\n\r\nDefine bytes at the current address. Either DEFB or DB are allowed and are\r\nequivalent in meaning. n can be a literal number or any expression, in the range\r\n0 to 255 (or -128 to +127).\r\n\r\n```\r\nDEFW n [,n ...]\r\nDW   n [,n ...]\r\n```\r\n\r\nDefine words at the current address. Either DEFW or DW are allowed and are\r\nequivalent in meaning. n can be a literal number or any expression, in the range\r\n0 to 65535 (or -32768 to +32767).\r\n\r\n```\r\nDEFM \"string\"\r\nDM   \"string\"\r\n```\r\n\r\nDefine a message at the current address. The string is always delimited by\r\ndouble quotes. To include a double quote in the string itself, place two double\r\nquote characters adjacent to each other.\r\n\r\n```\r\nDEFS n\r\nDS   n\r\n```\r\n\r\nDefine storage space at the current address. The current address increases by n\r\nbytes, thus leaving them available for your program's own use.\r\n\r\n`DS ALIGN n`\r\n\r\nThis ensures that the following instruction will be aligned on the boundary\r\nspecified, by leaving a space if necessary.\r\n\r\n`MDAT \"filename\"`\r\n\r\nThis directive merges a data file from the host filesystem into the object code\r\nat the current address. filename is enclosed in double-quotes and is expressed\r\nrelatively to the file currently being assembled.\r\n\r\n```\r\nINC \"filename\"\r\nINCLUDE \"filename\"\r\n```\r\n\r\nThis directive assembles the specified source file starting at the current\r\naddress, as though the whole file were literally included in the current one.\r\nAll symbols in the included file will be available globally, and must therefore\r\nbe unique (unless they are local symbols).\r\n\r\n(Both forms of this directive are equivalent, but INCLUDE is available to avoid\r\nconfusion with the Z80's INC instruction)\r\n\r\n`FOR range, instruction`\r\n\r\nRepeats a single instruction (or directive) range times.\r\n\r\nDuring assembly of this instruction, a symbol FOR is valid and holds the\r\niteration number from 0 to range-1.\r\n\r\n```\r\nsymbol: EQU FOR range\r\n        ...\r\nNEXT symbol\r\n```\r\n\r\nRepeats several lines of assembly, range times. When the lines between EQU FOR\r\nand NEXT are being assembled, the symbol symbol is valid, and holds the\r\niteration number from 0 to range-1.\r\n\r\nFOR...NEXT blocks can be nested, with each layer using a different symbol name.\r\n\r\nWhere a local symbol is defined within a FOR...NEXT block, it can only be used\r\nwithin the same block. All references to it will target the same iteration.\r\n\r\n```\r\nIF expression\r\n    ...\r\n[ELSE IF expression]\r\n    ...\r\n[ELSE]\r\n    ...\r\nENDIF\r\n```\r\n\r\nAn IF block allows conditional assembly of your source based on some condition.\r\nFor example, you may want to introduce some features during development of an\r\napplication but to leave them out of release builds; in this case, IF blocks can\r\nbe effectively used in conjunction with the -D command line option.\r\n\r\ne.g.\r\n\r\n```\r\nIF defined (DEBUG)\r\n    XOR A\r\n    OUT (CLUT),a\r\nENDIF\r\n```\r\n\r\nNote that any symbols used in the expression must be available in the first pass\r\nof the assembler (i.e. they must be defined earlier in the file than they are\r\nused).\r\n\r\n`ASSERT condition`\r\n\r\nThis directive evaluates whether condition is true, and aborts assembly if not.\r\nFor example, this can be used to ensure that the size of your code has not\r\noverstepped any limits you may be imposing.\r\n\r\n`PRINT expression1[, expression2 ...]`\r\n\r\nPrints the result of the expressions as soon as they are evaluated during\r\nassembly. Can be useful for logging and debugging, and showing the value of\r\nsymbols (as an alternative to the -s command line option)\r\n\r\n`STRUCT`\r\n\r\nThis allows structures to be defined, entries within the struct are offsets from\r\nthe beginning of the structure.  Each entry in the structure defines how many bytes\r\nare used via the RS command. ENDS closes the structure, these can be nested.  Each STRUCT\r\nautomatically defines a <name>.SizeOf value that is set to the size of the struct.\r\nUseful for IX/IY indexing\r\n\r\ne.g.\r\n\r\n```\r\nSprite:   STRUCT\r\nXPos:     RS   1\r\nYPos:     RS   1\r\nWidth:    RS   1\r\nHeight:   RS   1\r\nGfxPtr:   RS   2\r\n          ENDS\r\n\r\n          ld   ix, Sprites\r\n          ld   b, 100\r\n@Loop:\r\n          ld   d, (IX + Sprite.XPos)\r\n          ld   e, (IX + Sprite.YPos)\r\n          ld   l, (IX + Sprite.GfxPtr + 0)\r\n          ld   h, (IX + Sprite.GfxPtr + 1)\r\n          call DrawSprite\r\n          ld   de, Sprite.SizeOf\r\n          add  ix, de\r\n          djnz @Loop\r\n\r\nSprites:  ds  Sprite.SizeOf * 100\r\n```\r\n\r\n`MACRO`\r\n\r\nMacros are small sections of code that can be repeated, passing in various parameters to\r\nalter the contents of the macro.  Each parameter is used via \\0, \\1 etc within the macro.\r\nMacros can be given the same name as long as the number of parameters are different.  The number\r\nof parameters required is automatically calculated from the highest \\n value within the macro.  Local\r\nlabels are local to the macro itself\r\n\r\ne.g.\r\n\r\n```\r\nAND16BIT: MACRO\r\n          LD   A, \\0\r\n          AND  \\2\r\n          LD   \\0, A\r\n\r\n          LD   A, \\1\r\n          AND  \\3\r\n          LD   \\1, A\r\n          ENDM\r\n\r\n          ; The following lines in the code\r\n          AND16BIT  H, L, &ff, &01\r\n          AND16BIT  D, E, &0f, &01\r\n\r\n          ; Would expand to the following when assembled\r\n          LD   A, H\r\n          AND  &ff\r\n          LD   H, A\r\n\r\n          LD   A, L\r\n          AND  &01\r\n          LD   L, A\r\n\r\n          LD   A, D\r\n          AND  &0f\r\n          LD   D, A\r\n\r\n          LD   A, E\r\n          AND  &01\r\n          LD   E, A\r\n```\r\n\r\n## Expressions and special characters\r\n\r\nWherever an instruction or directive requires a number, a mathematical\r\nexpression can be used instead. These are allowed to contain any symbol names\r\ndefined in the file. If the result of an expression is negative, it will appear\r\nin the instruction in two's complement.\r\n\r\n`$`   a symbol representing the address of the current instruction\r\n`&`   prefixes a hexadecimal number\r\n`0x`  prefixes a hexadecimal number\r\n`%`   prefixes a binary number\r\n`0b`  prefixes a binary number\r\n`\"`   a single character enclosed in double-quotes can be used to represent the ascii value of that character\r\n`\"\"`  strings are delimited by the double-quote character. To encode a literal double-quote within a string, use the double-quote character twice.\r\n`\\`   mod\r\n\r\nSeveral mathematical functions are available within expressions. You may use any\r\nmethod of the random or math python modules; a few examples are listed below:\r\n\r\n`random()`\r\n\r\nReturns a random floating point number between 0 and 1. It should be noted that\r\nwhile intermediate stages of the calculation are allowed to have non-integer\r\nvalues, the final value of an expression is always rounded to the nearest\r\ninteger. Thus it can be useful to multiply float numbers by a constant to keep\r\nthem in a useful range:\r\n\r\ne.g.\r\n```\r\nDEFB random()\\*256\r\n```\r\n\r\n`randrange(start,stop [,step])`\r\n\r\nReturns a random integer in the range start \u2264 x < stop\r\n\r\n```\r\nsin(angle)\r\ncos(angle)\r\n```\r\n\r\nangle is specified in radians.\r\n\r\n`pi`\r\n\r\n## Thanks\r\n\r\nThanks to Edwin Blink for writing the original COMET assembler for the SAM Coup\u00e9.\r\n\r\nThanks to Simon Owen and other users for their feedback during development.\r\n\r\n## Links\r\n\r\nLatest pyz80 source code:  \r\n[https://github.com/simonowen/pyz80/](https://github.com/simonowen/pyz80/)\r\n\r\npyz80 Homepage:  \r\n[https://www.intensity.org.uk/samcoupe/pyz80.html](https://www.intensity.org.uk/samcoupe/pyz80.html)\r\n\r\nSimCoupe Homepage:  \r\n[https://simonowen.com/simcoupe/](https://simonowen.com/simcoupe/)\r\n\r\nWorld of SAM archive:  \r\n[https://www.worldofsam.org/](https://www.worldofsam.org/)\r\n\r\nWikipedia entry for the SAM Coup\u00e9 (and for more links):  \r\n[https://wikipedia.org/wiki/SAM\\_Coupe](https://wikipedia.org/wiki/SAM_Coup\u00e9)\r\n\r\n## Disclaimer\r\n\r\nTHIS PROGRAM AND DOCUMENTATION ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY\r\nKIND, NOT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A\r\nPARTICULAR PURPOSE.  BY USING THE PROGRAM, YOU AGREE TO BEAR ALL RISKS AND\r\nLIABILITIES ARISING FROM THE USE OF THE PROGRAM AND DOCUMENTATION AND THE\r\nINFORMATION PROVIDED BY THE PROGRAM AND THE DOCUMENTATION.\r\n\r\n## Release History\r\n\r\nVersion 1.3.0, 25 July 2025\r\n\r\n  - Converted to Python package installed via pip, to simplify use.\r\n\r\nVersion 1.24, 22 July 2025\r\n\r\n  - Removed Debug (Adrian Brown)\r\n\r\nVersion 1.23, 22 July 2025\r\n\r\n  - Added MACRO support (Adrian Brown)\r\n\r\nVersion 1.22, 20 July 2025\r\n\r\n  - Added STRUCT, RS, ENDS option (Adrian Brown)\r\n\r\nVersions 1.21.x, 2014 to 2025\r\n\r\n  - Added --mapfile to generate a map of symbol addresses\r\n  - Added -x option for hex output from -s symbol display and PRINT directive.\r\n  - Added -B option to specify custom bootable file, replacing SAMDOS file.\r\n  - Added date/time to files in disk image (Stefan Drissen).\r\n  - Added support for 9-sector disk image, used in conjunction with samdos9 image.\r\n  - Added '3' to env shebang line, to ensure the Python 3.x is used.\r\n  - Added support for Python 3.x, removed support for Python 2.x.\r\n  - Added ALIGN directive to be equivalent to DEFS ALIGN.\r\n  - Added listing file generation (Madis Kaal)\r\n  - Fixed saved size of files with DUMP < &8000.\r\n  - Fixed -I with file smaller than 501 bytes (Stefan Drissen)\r\n  - Fixed defs >= &4000 at start results in no output (Stefan Drissen)\r\n  - Fixed support for relative paths with INC/MDAT.\r\n  - Fixed LD SP,IX and LD SP,IY generating the wrong code.\r\n  - Fixed JR allowing PO/PE/P/M conditions.\r\n  - Fixed LD I,n and LD R,n being accepted.\r\n  - Fixed e in some contexts being evaluated as math.e\r\n  - Fixed some invalid LD operand combinations.\r\n  - Fixed broken indexed register range checking.\r\n  - Fixed issue in earlier quoted comma fix.\r\n  - Fixed issues that ignored invalid digits in binary values.\r\n  - Fixed line number extraction under Windows, where paths also include a colon.\r\n  - Fixed trailing whitespace issue in symbols (Stefan Drissen)\r\n  - Fixed issue parsing source files with a BOM.\r\n  - Improved sector count calculation, rounding up instead of adding 1 (Pete Moore).\r\n  - Removed EX HL,DE as alternative for EX DE,HL\r\n\r\nVersion 1.21, 11 July 2013\r\n\r\n  - A symbol name could include tab characters, which should be treated as a source error (reported by Chris Pile)\r\n\r\nVersion 1.2, 2 February 2009\r\n\r\n  - Add PRINT directive\r\n  - Local symbols used in an included file will search the parent file to find a definition\r\n  - Chooses more appropriate names for files on the SAM disk image, based on the input source filename (reported by Thomas Harte)\r\n  - Fixed options --obj and -o were incorrectly conflicting (reported by Thomas Harte)\r\n  - Fixed symbol names containing strings 0b and 0x were misparsed (fixed by Simon Owen)\r\n  - Fixed a misparseing of incorrect instructions of the form LD H,(23) (reported by Thomas Harte)\r\n\r\nVersion 1.1, 13 April 2007\r\n\r\n  - Fix a problem when the comma character is included in quoted expressions\r\n  - Documentation fix for INCLUDE directive\r\n\r\nVersion 1.0, 10 April 2007\r\n\r\n  - option to include other files on the resulting disk image, or multiple object files\r\n  - IXh, IXl, IYh and IYl can be used in operands where this forms a valid (undocumented) instruction\r\n  - fixed ex (sp),ix\r\n  - fixed parse bug if a symbol name starts with IX or IY\r\n  - support for \"compound\" instructions such as RLC r,(IX+c)\r\n  - option to not gzip the disk image\r\n  - option to save raw binaries and not just into disk images\r\n  - option to treat labels as case sensitive (as COMET itself does)\r\n  - option to work without bodmas operator precedence (as COMET itself does)\r\n  - better package with documentation and test sources\r\n  - local\" symbols starting with the @ character do not need to be unique; use them for the beginning of loops, for example. Any references to them will go to the nearest in the same file (or use @+ and @- for always the next or previous respectively)\r\n  - IF, ELSE (IF), ENDIF pseudo-opcodes\r\n  - defined(symbol) tests whether a symbol exists\r\n  - multi-line FOR constructs for repeating sequences of instructions\r\n  - curly braces text-substitute the value of one symbol into the name of another,\r\n  - option to predefine symbols from the pyz80 command line\r\n  - option to save and load whole symbol tables\r\n  - saved files include only used space, and not the rest of the page\r\n\r\nVersion 0.6, 10 February 2006\r\n\r\n  - implemented SLL (with a warning)\r\n  - use directive AUTOEXEC (usually straight after a DUMP) to set automatic execution of code from the current target address\r\n  - simple test to stop output file overwriting source file\r\n  - instructions may now be tab separated, not just space\r\n  - add warning when operands are generated out of range of the instruction\r\n  - better default output file name\r\n  - cope better with errors in z80s source (symbol names used twice)\r\n  - added -e option (lets you see python's error messages directly)\r\n  - allow . in symbol names\r\n  - file doesn't have to start at page boundary (helpful for writing boot sectors and stuff)\r\n\r\nVersion 0.5, 15 January 2005\r\n\r\n  - new pseudo-opcode: FOR limit, codeseq\r\n  - allow % as a prefix to binary numbers\r\n  - fix LD (IX+n),n\r\n  - slightly more flexibility if EQU definition depends on a symbol has not been defined until later in the source file (this is not allowed to affect code size)\r\n  - allow leading zeros in decimal literals (passing these directly to the python expression parser as previously would cause them to be treated as octal)\r\n  - allow DB, DW ... as shorthand forms of DEFB, DEFW etc\r\n  - allow character constants expressions (e.g. DB \"A\")\r\n  - save file correctly if unused part of the last sector falls out of memory\r\n  - more robust expression parser doesn't replace substrings of symbols\r\n  - DEFM can cope with strings containing semicolons, colons\r\n  - import python math and random modules to make some of its functions available to the expression parser\r\n  - removed nesting of functions because the scoping rules don't seem to work the way FOR needs them\r\n  - fixed confusion between INC opcode and INC (include) directive\r\n  - changed file loading slightly because fileinput doesn't cut the recursive mustard.\r\n  - allow underscore character in symbol names, and sanity check for syntax errors\r\n  - print a subset of the symbol table after assembly is complete\r\n  - files included by files included along a relative path will search for their files on that path\r\n\r\nVersion 0.1, 19 November 2004\r\n\r\n  - initial release\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Z80 cross-assembler for SAM Coup\u00e9 code",
    "version": "1.3.0",
    "project_urls": {
        "Homepage": "https://github.com/simonowen/pyz80"
    },
    "split_keywords": [
        "sam",
        " coupe",
        " z80",
        " assembler"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d5c6439a84a9a241df9895e19cd66bdcdca49f1d75af692aa16ddf96a4f14afa",
                "md5": "f99379490418e638bd087a4014536186",
                "sha256": "1e52fac500e948b58f2b58babc79f29e73d2eca9cedf4f8b021db0f1e08e7aeb"
            },
            "downloads": -1,
            "filename": "pyz80-1.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f99379490418e638bd087a4014536186",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 35141,
            "upload_time": "2025-07-25T15:51:53",
            "upload_time_iso_8601": "2025-07-25T15:51:53.846437Z",
            "url": "https://files.pythonhosted.org/packages/d5/c6/439a84a9a241df9895e19cd66bdcdca49f1d75af692aa16ddf96a4f14afa/pyz80-1.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9fd423ae436e2d36462bc1ecf472761fa77ed56bf612c2cdd12f288011e648ad",
                "md5": "67a638239c8bf91be98f5df2e0d29ff8",
                "sha256": "09b7b767225c27f29938c0cf7b228e515a9e62f1bcbde113964c3fb648a2beb1"
            },
            "downloads": -1,
            "filename": "pyz80-1.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "67a638239c8bf91be98f5df2e0d29ff8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 46045,
            "upload_time": "2025-07-25T15:51:55",
            "upload_time_iso_8601": "2025-07-25T15:51:55.221367Z",
            "url": "https://files.pythonhosted.org/packages/9f/d4/23ae436e2d36462bc1ecf472761fa77ed56bf612c2cdd12f288011e648ad/pyz80-1.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-25 15:51:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "simonowen",
    "github_project": "pyz80",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pyz80"
}
        
Elapsed time: 1.60947s