summaryrefslogtreecommitdiff
path: root/instruction.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-11-18 14:01:46 +0100
committerTobias Klauser <tklauser@distanz.ch>2010-11-18 14:01:46 +0100
commit9a6abbb794bace7c472a4bcab806f227cedf0ff9 (patch)
tree624b76a14d332b8f21af0fa11cd4c791baf3fcce /instruction.h
parent6ee2297979fb8c18c3ba6161caf278b00724c47a (diff)
Instruction updates
Diffstat (limited to 'instruction.h')
-rw-r--r--instruction.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/instruction.h b/instruction.h
index 5a268d3..8d9c366 100644
--- a/instruction.h
+++ b/instruction.h
@@ -34,13 +34,10 @@ struct r_type {
* Some R-Type instructions embed a small immediate value in the
* low-order bits of OPX.
*/
- union {
- uint16_t opx11:11;
- struct {
- uint8_t imm5:5;
- uint8_t opx6:6;
- } __packed;
- } opx;
+ struct {
+ uint8_t imm5:5;
+ uint8_t opx6:6;
+ } __packed;
uint8_t c:5;
uint8_t b:5;
uint8_t a:5;