Add extension bytecodes to support operands 4+
commitdcffe4b9f651bb420c62b7cffb5aa5169310763d
authorH. Peter Anvin <hpa@zytor.com>
Sat, 11 Oct 2008 05:10:31 +0000 (10 22:10 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 24 Oct 2008 06:03:59 +0000 (23 23:03 -0700)
tree3d99a77d257fac05857a36958744c2ed03311412
parentb21141a30128d2d2d8001cd4d9babab18366b867
Add extension bytecodes to support operands 4+

The bytecode format assumes max 4 operands pretty strictly, but we
already have one instruction with 5 operands, and it's likely to get
more.  Support them via extension prefixes (similar to REX prefixes).
For bytecodes which use argument bytes we encode the number directly,
however.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
assemble.c
disasm.c
insns.pl