Welcome
This part of my homepage has been created specially for
Engilsh-speaking assembly language programmers. You're welcome to use
anything found here, according to the licenses of these files
(most are uder the GNU GPL right now, macros are under the BSD licence).
I hope you'll find these useful.
All of these have English comments.
Contents:
(skip to C header file converters)
A Perl
script which generates HTML documentation form the given source files, just like javadoc
for Java: asmdoc.txt
(2012-02-05).
The script is UTF-8 encoded and easy to translate into other languages. It generates valid
HTML pages with no JavaScript, in any supported human language. Requires Perl 5.8 and a bunch of
core modules. Run with no arguments to get help. Open in a text editor to read instructions
on how to write documentation comments.
Supports some basic IDA Pro's comments, thanks to Rick Foos
(www.solengtech.com/downloads).
(skip to Source file converters)
A simple C header file parser, required by all of the scripts:
CallbackCParse.txt
(2012-04-09)
A Perl script which converts C header files to FASM-compatible header files:
konw-fasm.txt
(2012-04-09)
A Perl script which converts C header files to NASM-compatible header files:
konw-nasm.txt
(2012-04-09)
A Perl script which converts C header files to GNU as-compatible header files:
konw-gas.txt
(2012-04-09)
NOTE: the end-of-line should be consistent in a file.
That is, these scripts can hang if in one part of the file the EOL was MS-style
(CR+LF) and in the other it was Unix-style (bare LF).
NOTE: if the header files use C macroes extensively
and these scripts can't detect some external definitions, structures or other
objects, you can do the following steps:
- run these scripts on the original file to get the preprocessor directives correctly
- run a C preprocessor (like
gcc -E) on the original file and save the output
- run the scripts again on the saved output to process the rest of the elements
(skip to Kate/KWrite syntax highlighting)
A Perl script which converts GNU assembler source files to FASM-compatible files:
gas2fasm.txt
(2012-03-27)
Requires Asm::X86 (below).
A Perl script which converts GNU assembler source files to NASM-compatible files:
gas2nasm.txt
(2012-03-27)
Requires Asm::X86 (below).
A Perl script which converts FASM source files to GNU assembler-compatible files:
fasm2gas.txt
(2012-03-27)
Requires Asm::X86 (below).
A Perl script which converts NASM source files to GNU assembler-compatible files:
nasm2gas.txt
(2012-03-27)
Requires Asm::X86 (below).
A Perl script which converts NASM source files to FASM files:
nasm2fasm.txt
(2010-06-27)
A Perl script which converts FASM source files to NASM files:
fasm2nasm.txt
(2010-06-27)
(skip to macros for FASM)
BIG thanks to Nicola Gigante, who made the original NASM syntax highlighting file.
For NASM
(2012-09-23) - improved original
For FASM
(2012-12-30), based on the NASM one.
(just copy these to $HOME/.kde/share/apps/katepart/syntax/).
(skip to Makefile generator for FASM)
A few macros for FASM you might find useful. More details inside:
makra-fasm.txt
(2008-09-18)
(skip to Linux kernel module helper for FASM)
A Perl script which generates a Makefile for each FASM-compatible source file
found in the directory (and all subdirectories, if requested):
make4fasm.txt
(2010-06-27)
(skip to Autoconf macros)
A Perl script which generates the __versions section for a FASM-syntax Linux 2.6
kernel module source file:
symvers-fasm.txt
(2010-06-27)
(skip to Assembly converter for Doxygen)
These macros check for existence and command-line options of the following
assemblers: NASM, FASM, YASM, TASM, MASM and HLA. It's very easy to support more
than just these. More details inside:
ac_prog_asm.zip
(2009-08-12)
Also available from Autoconf Macro
Archive.
(skip to Asm::X86 Perl module)
A Perl script which converts specially-documented assembly language files into pseudo-C files,
from which Doxygen can generate documentation: asm4doxy.txt
(2009-08-22)
Documentation commets' syntax is the same as for
AsmDoc above. Run with no arguments to get help. Open in a text editor to read instructions
on how to write documentation comments.
Supports some basic IDA Pro's comments and syntax, thanks to Rick Foos.
Go to www.solengtech.com/downloads
and to wingraph-to-graphviz for additional useful tools.
A Perl module which provides useful subroutines to the user:
Asm-X86-0.15.tar.gz
(2012-09-23)
(signature)
perl-Asm-X86-0.15-1.fc12.noarch.rpm
(2012-09-23) -
built on Fedora, requires RPM packages containing the following libraries:
- perl(:MODULE_COMPAT_5.10.0)
- perl(Exporter)
- perl(Test::More)
- perl(warnings)
perl-Asm-X86-0.15-1.fc12.src.rpm
(2012-09-23) -
built on Fedora, requires RPM packages containing the following libraries:
- perl(ExtUtils::MakeMaker)
- perl(Test::More)
Current possibilities:
- check if a given string is a valid register name (with the possibility to specify a
size) in AT&T or Intel syntax.
- check if a given string is a valid addressing mode in AT&T or Intel syntax.
- check if a given string is a valid instruction name in AT&T or Intel syntax.
- converting instructions (with their operands) between AT&T and Intel syntaxes.
- converting addressing modes between AT&T and Intel syntaxes.
- exporting arrays with register and instruction names
This module is now available on CPAN:
search.cpan.org/~bogdro/
Other Free Software
Check out the page listing my other free software.
Contact info
Contact me: bogdandr AT op . pl
(English accepted, just say 'ASM' somewhere in the title). Get my
GnuPG key
Page info
This page is written using valid
HTML 4.01
,
, for all browsers:
This page uses a valid
CSS
The channels on this page are compatible with the Atom 1.0 standard
and RSS 2.0
This page doesn't use GIF images
and doesn't use JPG images.
This page is JavaScript-free, Java-free and Flash-free.