Commit 269ffd8a authored by Stephen Kitt's avatar Stephen Kitt

Install fcml-asm and fcml-disasm with manpages.

parent 6a02e002
......@@ -8,6 +8,25 @@ Build-Depends:
Standards-Version: 3.9.6
Homepage: http://fcml-lib.com
Package: fcml
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends}
Description: single-line assembler and disassembler
FCML, the Free Code Manipulation Library, is a general-purpose
machine code manipulation library for i386 and amd64 architectures.
It includes an assembler and disassembler, instruction renderers and
parsers, and supports Intel and AT&T (gas) syntax.
.
It supports most recent instruction set extensions, including MMX,
3D-Now!, SSE including 4.2 and 4A, AVX and AVX2, AES-NI, TBM, BMI1
and BMI2, HLE, ADX, CLMUL, RDRAND, RDSEED, FMA, FMA4, LWP, SVM, XOP,
VMX and SMX.
.
This package contains a simple but useful single-line assembler and
disassembler.
Package: libfcml0
Architecture: any
Multi-Arch: same
......
.TH fcml-asm 1 "February 2, 2015" fcml
.SH NAME
fcml\-asm \- single-line assembler
.SH SYNOPSIS
.B fcml\-asm
.RB [ -abs "] [" -sib "] [" -rex "] [" -gas "] [" -asa "<\fIsize\fP>]"
.RB [ -osa "<\fIsize\fP>]"
.BR -m <\fIsize\fP>
.BR -ip " <\fIaddress\fP>"
.RI < instruction >
.SH DESCRIPTION
.B fcml\-asm
is a single-line assembler for Intel \fIi\fPAP\fIx\fP86, IA-32 and
EM64T CPUs, and compatible CPUs from other manufacturers.
.PP
It displays all possible encodings of the given assembly-language
instruction.
.PP
.SH OPTIONS
.B fcml\-asm
accepts the following options:
.TP
.BR -abs
Prefer absolute memory addressing where possible. This is particularly
useful in 64-bit mode, for RIP addressing.
.TP
.BR -sib
Prefer encoding using a SIB byte (scale * index + base).
.TP
.BR -rex
Use a REX prefix even if it is optional.
.TP
.BR -gas
Use GNU Assembler dialect (also known as AT&T). The Intel dialect is
used by default.
.TP
.BR -asa <\fIsize\fP>
Specify the size of the address size attribute (\fR16\fP, \fR32\fP or
\fR64\fP for respectively 16, 32 and 63 bits).
.TP
.BR -osa <\fIsize\fP>
Specify the size of the operand size attribute (\fR16\fP, \fR32\fP or
\fR64\fP for respectively 16, 32 and 63 bits).
.TP
.BR -m <\fIsize\fP>
Specify the addressing mode (\fR16\fP, \fR32\fP or \fR64\fP).
.TP
.BR -ip " <\fIaddress\fP>"
Specify the instruction pointer address (IP, EIP or RIP).
.SH AUTHORS
\fBfcml\-asm\fP was written by Slawomir Wojtasiak.
.PP
This manual page was written by Stephen Kitt <skitt@debian.org>, for
the Debian GNU/Linux system (but may be used by others).
.TH fcml-disasm 1 "February 2, 2015" fcml
.SH NAME
fcml\-disasm \- single-line disassembler
.SH SYNOPSIS
.B fcml\-disasm
.RB [ -s "] [" -e "] [" -rc "] [" -rh "] [" -rz "] [" -rs "] [" gas ]
.RB [ -asa "<\fIsize\fP>]"
.RB [ -osa "<\fIsize\fP>]"
.BR -m <\fIsize\fP>
.BR -ip " <\fIaddress\fP>"
.RI < code >
.SH DESCRIPTION
.B fcml\-disasm
is a single-line disassembler for Intel \fIi\fPAP\fIx\fP86, IA-32 and
EM64T CPUs, and compatible CPUs from other manufacturers.
.PP
It displays all possible interpretations of the given machine code.
.PP
.SH OPTIONS
.B fcml\-disasm
accepts the following options:
.TP
.BR -s
Prefer short instruction forms.
.TP
.BR -e
Extend displacement sizes to address size attribute.
.TP
.BR -rc
Render instruction code.
.TP
.BR -rh
Render immediate values and displacements as hexadecimal.
.TP
.BR -rz
Remove leading zeroes.
.TP
.BR -rs
Render segment prefixes even when they are optional.
.TP
.BR -gas
Use GNU Assembler dialect (also known as AT&T). The Intel dialect is
used by default.
.TP
.BR -asa <\fIsize\fP>
Specify the size of the address size attribute (\fR16\fP, \fR32\fP or
\fR64\fP for respectively 16, 32 and 63 bits).
.TP
.BR -osa <\fIsize\fP>
Specify the size of the operand size attribute (\fR16\fP, \fR32\fP or
\fR64\fP for respectively 16, 32 and 63 bits).
.TP
.BR -m <\fIsize\fP>
Specify the addressing mode (\fR16\fP, \fR32\fP or \fR64\fP).
.TP
.BR -ip " <\fIaddress\fP>"
Specify the instruction pointer address (IP, EIP or RIP).
.SH AUTHORS
\fBfcml\-disasm\fP was written by Slawomir Wojtasiak.
.PP
This manual page was written by Stephen Kitt <skitt@debian.org>, for
the Debian GNU/Linux system (but may be used by others).
Description: Install the example programs
Author: Stephen Kitt <skitt@debian.org>
--- a/example/fcml-asm/Makefile.am
+++ b/example/fcml-asm/Makefile.am
@@ -1,7 +1,7 @@
-noinst_PROGRAMS = fcml_asm
+bin_PROGRAMS = fcml_asm
fcml_asm_SOURCES = main.c
-
+
fcml_asm_CPPFLAGS = -I$(top_srcdir)/include @FCML_IMPORT_LIB@
fcml_asm_LDADD = $(top_srcdir)/src/libfcml.la
--- a/example/fcml-disasm/Makefile.am
+++ b/example/fcml-disasm/Makefile.am
@@ -1,7 +1,7 @@
-noinst_PROGRAMS = fcml_disasm
+bin_PROGRAMS = fcml_disasm
fcml_disasm_SOURCES = main.c
-
+
fcml_disasm_CPPFLAGS = -I$(top_srcdir)/include @FCML_IMPORT_LIB@
fcml_disasm_LDADD = $(top_srcdir)/src/libfcml.la
install-examples.patch
......@@ -12,6 +12,8 @@ override_dh_autoreconf:
override_dh_auto_install:
dh_auto_install
dh_auto_install -Dexample/hsdis
mv debian/tmp/usr/bin/fcml_asm debian/tmp/usr/bin/fcml-asm
mv debian/tmp/usr/bin/fcml_disasm debian/tmp/usr/bin/fcml-disasm
override_dh_install:
dh_install --list-missing -X.la -X.md5 -X.pyc -X.pyo
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment