comparison lwasm/insn_rel.c @ 122:2be2649841f8

Fixed embarrassing off by one in insn_rel length calculation
author lost@l-w.ca
date Wed, 10 Aug 2011 19:05:49 -0600
parents 7b0716264251
children 6f2e18f1fe67
comparison
equal deleted inserted replaced
121:27b51723b218 122:2be2649841f8
87 { 87 {
88 l -> len = OPLEN(instab[l -> insn].ops[2]) + 1; 88 l -> len = OPLEN(instab[l -> insn].ops[2]) + 1;
89 } 89 }
90 else if (l -> lint == 16) 90 else if (l -> lint == 16)
91 { 91 {
92 l -> len = OPLEN(instab[l -> insn].ops[3]) + 1; 92 l -> len = OPLEN(instab[l -> insn].ops[3]) + 2;
93 } 93 }
94 94
95 // the offset calculation here depends on the length of this line! 95 // the offset calculation here depends on the length of this line!
96 // how to calculate requirements? 96 // how to calculate requirements?
97 // this is the same problem faced by ,pcr indexing 97 // this is the same problem faced by ,pcr indexing