Mercurial > hg-old > index.cgi
comparison lwasm/insn_gen.c @ 204:048ebb85f6ef
Added 8 bit external references for base page addressing mode
author | lost |
---|---|
date | Sun, 29 Mar 2009 14:52:28 +0000 |
parents | 2e6a1e914104 |
children | bae1e3ecdce1 |
comparison
equal
deleted
inserted
replaced
203:2c1afbdb2de0 | 204:048ebb85f6ef |
---|---|
99 v1 = v1 & 0xff; | 99 v1 = v1 & 0xff; |
100 lwasm_emitop(as, l, instab[opnum].ops[0]); | 100 lwasm_emitop(as, l, instab[opnum].ops[0]); |
101 if (extra != -1) | 101 if (extra != -1) |
102 lwasm_emit(as, l, extra); | 102 lwasm_emit(as, l, extra); |
103 lwasm_emit(as, l, v1 & 0xff); | 103 lwasm_emit(as, l, v1 & 0xff); |
104 l -> relocoff = as -> addr - l -> codeaddr; | |
105 l -> reloc8bit = 1; | |
104 return; | 106 return; |
105 } | 107 } |
106 else | 108 else |
107 { | 109 { |
108 // everything else is 16 bit.... | 110 // everything else is 16 bit.... |