This is a simple Vim plugin to highlight 8080 and Z80 assembly code based on Microsoft's MACRO-80 assembler and the Z80 processor documentations. It still has no advanced preprocessor highlighting rules but is should already do the basics like opcodes and directives keyword highlighting as well as numbers, strings and comments.
- Vundle
- add the following to your vundle config:
Plugin 'oraculo666/vim-m80'
- run
:PluginInstall
in Vim command mode.
The plugin should automatically recognize '.mac' files.
- Insert Mode
<leader>i-
- Inserts a full line comment separator below cursor.<leader>a-
- Appends a full line comment separator below cursor and leaves cursor in insert mode below it.
- The
colorcolumn
is set to 132 as a reminder since the real M-80 can't process lines longer than that. fileformat
set todos
. M-80 doesn't support unix line endings.fileencoding
set tolatin1
. Extended ASCII character encoding.- Tabs set at 8 spaces. Identifiers can be long but only the first 6 characters are significant.