Hey,
Not sure if this fits in this topic, if not please feel free to relocate
This is a setup I came up with for assembly coding on linux
- Install scite, nasm, binutils and gdb
- Download scite-debug from:
http://scitedebug.luaforge.net/ and extract to /usr/share/scite/
- Create '.SciTEUser.properties' in your home directory:
Code:
cat << 'EOF' > ~/.SciTEUser.properties
# 0.1 - 20091116 - killboy[underscore]powerhed[at]yahoo[dot]com[dot]au
# Enable line numbers
line.margin.visible=1
line.margin.width=3
# Use fixed width font
font.base=$(font.monospace)
font.small=$(font.monospace)
font.comment=$(font.monospace)
font.text=$(font.monospace)
font.text.comment=$(font.monospace)
font.embedded.base=$(font.monospace)
font.embedded.comment=$(font.monospace)
font.vbs=$(font.monospace)
# Use black background
style.*.32=$(font.base),back:#000000,fore:#ffffff
style.*.33=back:#C0C0C0,$(font.base)
style.*.37=fore:#939393
caret.fore=#FFFFFF
selection.alpha=75
selection.back=#FFFFFF
colour.keyword=fore:#649bff
colour.operator=fore:#727272
# Print timing info
time.commands=1
# Display path info
title.full.path=1
# Load scite-debug
ext.lua.startup.script=/usr/share/scite/scite-debug/extman.lua
# Set build options
# Default compile and link options generate symbols
if PLAT_GTK
# compile
command.compile.$(file.patterns.asm)=nasm -g -f elf $(FileNameExt)
# link
command.name.0.*.asm=Link
command.0.*.asm=ld -o $(FileName) $(FileName).o
# run
command.go.$(file.patterns.asm)=*./$(FileName) $(1) $(2) $(3) $(4)
command.go.needs.$(file.patterns.asm)=nasm -g -f elf $(FileNameExt) && ld -o $(FileName) $(FileName).o
# build
command.build.$(file.patterns.asm)=nasm -g -f elf $(FileNameExt) && ld -o $(FileName) $(FileName).o
# build and strip
command.name.1.$(file.patterns.asm)=Build and Strip
command.1.$(file.patterns.asm)=nasm -g -f elf $(FileNameExt) && ld -o $(FileName) $(FileName).o -s
EOF
cheers,
kbp