Skip to content

Syntax highlighting for 8080 and Z80 assembly for the MACRO-80 assembler

License

Notifications You must be signed in to change notification settings

gseidler/vim-m80

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-m80

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.

Install

  • 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.

Mappings

  • 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.

Notes

  • The colorcolumn is set to 132 as a reminder since the real M-80 can't process lines longer than that.
  • fileformat set to dos. M-80 doesn't support unix line endings.
  • fileencoding set to latin1. Extended ASCII character encoding.
  • Tabs set at 8 spaces. Identifiers can be long but only the first 6 characters are significant.

Screenshot

vim-m80

About

Syntax highlighting for 8080 and Z80 assembly for the MACRO-80 assembler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published