summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-11-05 21:08:37 -0800
committerOri Bernstein <ori@eigenstate.org>2017-11-05 21:08:37 -0800
commit8586a998a576277bd1ff5d1ccd02c4c01224c261 (patch)
tree804e69321c19f6876e628d55e999a012a6b84598
parentf8f5b71ca85fed63d295f50e3f45ba3230edaead (diff)
downloadmc-8586a998a576277bd1ff5d1ccd02c4c01224c261.tar.gz
Update comment to match reality.
-rw-r--r--6/insns.def41
1 files changed, 22 insertions, 19 deletions
diff --git a/6/insns.def b/6/insns.def
index 1e0a864..763ba8b 100644
--- a/6/insns.def
+++ b/6/insns.def
@@ -1,23 +1,26 @@
-/* Table of instructions. Each instruction
- is defined by the following macro:
- Insn(enumval, fmt, attr)
- The format string 'fmt' has the following expansions:
- %r - int reg
- %f - xmm reg
- %m - mem
- %i - imm
- %v - reg/mem
- %u - reg/imm
- %x - reg/freg/mem/imm
- %[1-9]*t - Mode of an operand. The optional number
- preceeding it is the operand desired for
- the mode.
- Currently, there aren't any attrs, because none were needed yet.
- Eventually, they'll probably include flag setting and so on. The
- upper case versions of these indicate Plan9 location formatting.
+/*
+ Table of instructions. Each instruction
+ is defined by the following macro:
- For technical reasons, the indexing on use and def statments is 1-based,
- instead of 0-based. (0 is the sentinel value).
+ Insn(enumval, gasfmt, p9fmt, uses, defs)
+ The format string 'fmt' has the following expansions:
+
+ %r - int reg
+ %f - xmm reg
+ %m - mem
+ %i - imm
+ %v - reg/mem
+ %u - reg/imm
+ %x - reg/freg/mem/imm
+ %[1-9]*t - Mode of an operand. The optional number
+ preceeding it is the operand desired for
+ the mode.
+
+ The uppercase version of these formats denote the plan 9 variants
+ of the above.
+
+ Because 0 indictates the sentiel value, the indexing on use and def statments
+ is 1-based.
*/
#define None .l={0},.r={0}
Insn(Inone,