; Copyright (C) 1999-2002 Konstantin Boldyshev <konst@linuxassembly.org>
;
; Page holds UNIX assembly programming related resources.
; If you start a new project, or find a resource not listed here,
; please let me know -- I will add it to this page
;
; Note that links are in not necessarily particular order
projects:
; various UNIX projects written in assembly language
; of course all of them feature extremely small size
; if you're looking for source code and examples, here they are
name | short description | platform | OS | assembler | |
asmutils | miscellaneous utilities, small libc | IA32 | Linux, *BSD (Unixware, Solaris, AtheOS, BeOS) | nasm | |
libASM | assembly library (lots of various routines) | IA32 | Linux | nasm | |
e3 | WordStar-like text editor | IA32 | Linux, *BSD, AtheOS, BeOS, Win32 | nasm | |
ec64 | Commodore C64 emulator | IA32 | Linux | nasm | |
lib4th | Forth kernel implemented as shared library | IA32 | Linux | nasm | |
Tiny Programs | tiny Linux executables | IA32 | Linux | nasm | |
Orange | terminal emulator | IA32 | Linux | nasm | |
ta | traffic accounting daemon | IA32 | Linux | nasm | |
cpuburn | CPU loading utilities | IA32 | Linux, FreeBSD | gas | |
H3sm | 3-stack Forth-like language (and other stuff from Rick Hohensee) | IA32 | Linux | gas | |
eforth | eforth converted to nasm/asmutils | IA32 | Linux | nasm | |
eforth | original Linux eforth | IA32 | Linux | gas | |
ASMIX | several command-line utilities | IA32, PPC, SPARC, PDP11 | Linux, FreeBSD, LynxOS, Solaris, Unixware, SunOS | gas | |
Bizarre Source, Corp | several system utilities | IA32 | Linux | gas | |
ll | linux_logo in assembly | IA32, PPC | Linux | gas | |
acid | small textmode intro | IA32, ARM | Linux | nasm, gas | |
asm-toys | few utilities | IA32 | Linux | gas | |
smallutils | few small utils in assembly and C | IA32, SPARC | Linux | gas |
There are quite a lot of mixed C-assembly projects, like GNU MP library, ATLAS/BLAS, OpenGUI, FreeAmp, just to name few. Also see source code of your kernel and libc. All this will provide you examples of assembly programming on different hardware platforms.
documentation:
; Various documents on the topic
; Some of them are mustread
List of Linux/i386 system calls, also this one and this one. Linux Kernel Internals provides useful information too,
read at least particular How System Calls Are Implemented on i386 Architecture? chapter.
Using the GNU Assembler ( gas manual )
; CPU manuals and assembly programming guides (also see this list)
; Executable formats
; Books
The Art Of Assembly
by Randall Hyde. Classic book on x86 assembly programming, Win32 and Linux (32bit) and DOS (16bit).
PC Assembly Language
by Paul Carter. 32bit protected mode programming, Windows & Linux.
Assembler for DOS, Windows and UNIX
by Sergey Zubkov. ISBN 5-89818-019-2, 637 pages, 1999. In Russian language.
Inner Loops : A Sourcebook for Fast 32-Bit Software Design
by Rick Booth. ISBN: 0201479605, 364 pages, 1997; Addison-Wesley Pub Co
Assembly Language Step-By-Step; Programming with DOS and Linux with CDROM
by Jeff Duntemann. ISBN: 0471375233, 612 pages, 2000; John Wiley & Sons
Linux Assembly Language Programming
by Bob Neveln. ISBN: 0130879401, 350 pages, 2000; Prentice Hall Computer Books
Introduction to RISC Assembly Language Programming
by John Waldron. ISBN: 0201398281
SPARC Architecture, Assembly Language Programming, and C
by Richard Paul.
; Articles
Startup state of Linux/i386 ELF binary
Self-modifying code under Linux
Using the framebuffer device under Linux
Using the audio device under Linux
tutorials:
; If you're new to UNIX assembly programming, this is where you begin
Introduction to UNIX assembly programming ( nasm; Linux, *BSD, BeOS )
Using Assembly Language in Linux ( AT&T and Intel syntax, gcc inline assembly )
Linux Assembler Tutorial ( gas and the Co )
Writing A Useful Program With NASM ( nasm )
Linux assembly tutorial ( gas, gdb )
Linux socket/network programming ( gas )
How do I write "Hello, world" in FreeBSD assembler? ( as )
FreeBSD Assembly Programming tutorial ( nasm )
Inline assembly for x86 in Linux ( gas and gcc inline assembly )
DJGPP QuickAsm Programming Guide ( gas and gcc inline assembly )
Brennan's Guide to Inline Assembly ( gcc inline assembly )
Introduction to GCC Inline Asm ( gcc inline assembly )
SPARC assembly "Hello world" ( NetBSD, SunOS, Solaris )
Using x86 assembly code in BeOS ( nasm, linking to gcc )
GNOME application in IA32 assembly ( nasm, gcc )
A Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux
another tiny example illustrating a tiny ELF header ( nasm )
links:
; Links to somehow related projects
; tools
NASM (old site) | x86 assembler with Intel syntax |
ALD | Assembly Language Debugger |
BASTARD | Bastard Disassembly Environment |
DUDE | Despotic Unix Debugging Engine |
BIEW | console hex viewer/editor with built-in disassembler |
HTE | viewer/editor/analyzer for text, binary, and executable files |
UPX | Ultimate Packer for eXecutables |
Intel2gas | converter between AT&T and Intel assembler syntax |
A2I | converter from AT&T to Intel assembler syntax |
TA2AS | converter from TASM to AT&T assembler syntax |
SPARC ASM | SPARC v8 assembler & disassembler |
binutils | as they are: gas, ld, ar, etc |
; sites
Jan's Linux & Assembler page | various source code examples |
H-Peter Recktenwald's page | "The Int80h page" |
The Linux 4k intro page | do you remember what is 4k intro? :) |
G. Adam Stanislav's page | FreeBSD related material |
Bruce Ediger's page | SPARC assembly related material |
Michael Blomgren's page | |
Robin Miyagi' page | |
Assembly Programming Journal | |
Phrack Magazine |
--
Happy day, happy life!
No comments:
Post a Comment