title: proteus error: Invalid opcode 0x000D at PC=0x0118
body: <p>I wrote this code on <code>Bascom</code> but as I run and click on keypad on <code>Proteus</code> I see this error:</p>
  <pre><code>Invalid opcode 0x000D at PC=0x0118
  </code></pre>
  <p>this is my code on <code>Bascom</code></p>
  <pre><code>$regfile = &quot;m16def.dat&quot;
  $crystal = 1000000
  Config Kbd = Portd , Debounce = 30
  Config Lcd = 16 * 2
  Config Lcdpin = Pin , Db4 = Portb.4 , Db5 = Portb.5 , Db6 = Portb.6 , Db7 = Portb.7 , Rs = Portb.3 , E = Portb.2
  Dim Adad As Byte
  Dim Andis As Byte
  Dim Lable As Byte
  
  Scan1:
  Waitms 200
  Adad = 0
  Andis = Getkbd()
  If Andis &gt; 15 Then Goto Scan1
  
  Lable = Lookup(andis , Dta)
  If Lable &lt; 10 Then
  Adad = Adad * 10
  Adad = Adad + Lable
  Lcd Adad
  End If
  
  Dta:
  Data 7 , 8 , 9 , 10 , 4 , 5 , 6 , 11 , 1 , 2 , 3 , 12 , 13 , 0 , 14 , 15
  </code></pre>
  <p>and this is my <code>proteus</code> simulation for <code>simple calculation</code>:
  <a href="https://i.stack.imgur.com/j2Trv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j2Trv.png" alt="enter image description here" /></a></p>
  <p>and as I click on keypad I see this:
  <a href="https://i.stack.imgur.com/8skti.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8skti.png" alt="enter image description here" /></a></p>
  <p>I do not have any idea what have happen there.
  any help would be appreciated.</p>