shithub: scc

Download patch

ref: 90b73f22d74ae1c07a10d3cd93ca75f8a91d365b
parent: 26ec24167f2d789373c64a0b3440628f0337cdc3
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Oct 6 16:09:47 EDT 2021

as/x86: Add references to ins.c

These references are usually basic to be able to understand
the source code.

--- a/src/cmd/as/target/x86/ins.c
+++ b/src/cmd/as/target/x86/ins.c
@@ -8,6 +8,13 @@
 
 #define addrbyte(mod, reg, rm) ((mod) << 6 | (reg) << 3 | (rm))
 
+/*
+ * This implementation is based in:
+ *	- x86 Opcode Structure and Instruction Overview - Fraunhofer-Institut
+ *        fÜr kommunikation, informationsverarbeitung und ergonomie fkie.
+ *	- Intel® 64 and IA-32 Architectures Software Developer’s Manual.
+ *	- Encoding Real x86 Instructions - CIS-77 lectures.
+ */
 enum addr_mode {
 	MEM_MODE   = 0,
 	MEM8_MODE  = 1,