Commit 140f4883 authored by Frode Vatvedt Fjeld's avatar Frode Vatvedt Fjeld

*** empty log message ***

parent 9aa69be6
......@@ -10,7 +10,7 @@
## Author: Frode Vatvedt Fjeld <frodef@acm.org>
## Created at: Sat Jan 29 16:48:42 2005
##
## $Id: README,v 1.2 2005/01/30 11:35:16 ffjeld Exp $
## $Id: README,v 1.3 2005/01/30 14:54:33 ffjeld Exp $
##
######################################################################
......@@ -115,8 +115,10 @@ code is located in memory (if the program is position-independent,
just pass zero). Finally, there is the proglist to be encoded to
machine code. Additionally, the keyword argument :symtab-lookup can
provide a function that proglist-encode will use to map (otherwise
undefined) labels to integers. The primary return value is the byte
vector, while the secondary return value is an (assoc) symbol-table:
undefined) labels to integers: The function should expect one symbol
argument and return a suitable integer. The primary return value is
the byte vector, while the secondary return value is an (assoc)
symbol-table:
IA-X86(7): (proglist-encode :octet-vector :16-bit #x7c00
(read-proglist (mkasm16-bios-print)))
......@@ -131,7 +133,7 @@ be used e.g. to verify syntax or the encoded size of an instruction:
IA-X86(8): (asm :movl :eax (:ebx 1))
=> #c(#x894301 #x3)
The return value is a complex, whose real component is the binary
encoding of the instruction, and the imaginary component is the number
of bytes.
The return value is a complex, whose real component is the
(big-endian) binary encoding of the instruction, and the imaginary
component is the number of bytes.
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