Zilog Z80 assembly

Intro

Zilog Z80 assembly, or z80 asm for short, is the machine language of the Zilog Z80 processor devices (e.g. TI-83 Plus graphical calculator, or an old GameBoy color). The z80 was created in 1976.

Sample Program

This is a sample program to display "Hello World!" on the screen of a TI-83 plus graphing calculator.

Note: the b_calls exist only on the graphing calculators, not on just any device.

.NOLIST
#INCLUDE "ti83plus.inc"
.LIST
.ORG    $9D93
.DB     t2ByteTok, tAsmCmp
    b_call(_ClrLCDFull)
    b_call(_HomeUp)
    ld hl,msg
    b_call(_PutS)        ; Display the text
    b_call(_NewLine)
    RET
msg:
    .DB "Hello world!", 0
.END

Useful Links

IDEs/SDKs

IDE's

  • ZilogDev
  • Assembly 8x

Assemblers

  • tASM
  • spasm
  • tpasm
  • phasm (in development)
  • Brass (in development)

Documentation

z80 Assembly in 28 days

Common Errors / FAQ

Extra ".end"

If you use tASM, type an extra line with .end, because tASM ignores the last line of a program…

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License