sdz80-mode
is an emacs major mode that provides some helpers for
programming assembler code for the sdas
assembler bundled with sdcc.
sdz80-mode
extends asm-mode
adding the following features:
- imenu integration allows to quickly jump to any label in the file.
- highlight Z80 registers.
- implements an electric colon supporting the
sdasm
double colon syntax for global labels. - automatically add
.globl
directive for the symbol at point. - updates the header file (
.h.s
) with all global labels defined in the source code. - display information about Z80 opcodes. Data taken from http://clrhome.org/table/. It allows to sort, filter and show details about the opcodes.
:
: electric colonC-c m g
: declare global symbol at pointC-c m h
: update header fileC-c m o
: show opcodes. Press?
orh
in that buffer to futher details.