Skip to content

Instantly share code, notes, and snippets.

@bkw777
Last active June 2, 2026 19:11
Show Gist options
  • Select an option

  • Save bkw777/632c0a390b0fd0bd4e2f31544528d6d5 to your computer and use it in GitHub Desktop.

Select an option

Save bkw777/632c0a390b0fd0bd4e2f31544528d6d5 to your computer and use it in GitHub Desktop.
8085 asm syntax for Geany
# /usr/share/geany/filedefs/filetypes.8085asm.conf
# 20260513 b.kenyon.w@gmail.com
# 8085 assembly source with z88dk-z80asm assembler
# Install by copying to above path & filename.
# Edit /usr/share/geany/filetype_extensions.conf
# * under [Extensions] insert a new line:
# 8085asm=*.8085;*.8085asm;*.85asm;*.asm85;*.S85;*.s85;*.a85;*.85;*.85a;
# * under [Groups] apend "8085asm;" to Programming=...
# Use filenames with any of the above extensions to have Geany automatically recognize the right filetype.
[styling=ASM]
[keywords]
instructions=aci adc add adi ana ani arhl call cc cm cma cmc cmp cnc cnz cp cpe cpi cpo cz daa dad dcr dcx di dsub ei hlmbc hlt in inr inx jc jk jm jmp jnc jnk jnz jp jpe jpo jz lda ldax ldhi ldsi lhld lhlx lxi mov mvi nop ora ori out pchl pop push ral rar rc rdel ret rim rlc rm rnc rnz rp rpe rpo rrc rst rtsv rz sbb sbi shld shlx sim sphl sta stax stc sub sui xchg xra xri xthl
registers=a f b c d e h l sp pc m psw asmpc
directives=assert defl exitm local macro endm rept reptc repti endr align .assume binary incbin call_oz call_pkg cu.wait cu.move cu.stop cu.nop defb db defm dm byte defw dw word defw_be de_be defdb ddb defp dp ptr defq dq dword defc dc defgroup define defs ds defvars equ dma.wr0 dma.wr1 dma.wr2 dma.wr3 dma.wr4 dma.wr5 dma.wr6 dma.cmd extern xref lib float ffp global if ifdef elif elifdef else endif ifndef elifndef include invoke line c_line lstoff lston module org phase dephase public xdef xlib section setfloat undefine
[lexer_properties=ASM]
[settings]
extension=asm
tag_parser=ASM
lexer_filetype=ASM
[build_settings]
# %f = filename
# %e = filename without ext
# foo.asm -> foo
#compiler=z88dk-z80asm -v -m8085 -b -o="%e" "%f"
# foo.asm -> foo.bin
compiler=z88dk-z80asm -v -m8085 -b "%f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment