From: Hugo Villeneuve Date: Mon, 18 Nov 2013 00:50:28 +0000 (-0500) Subject: Remove unused destination adressing mode #data16 X-Git-Tag: v2.0.0~82 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=47852aee98ad5dc26489bb2231a06b057856c9d3;p=emu8051.git Remove unused destination adressing mode #data16 Even if it is required, the destination variable is only 8-bits, so this would have been a potential bug. --- diff --git a/src/opcode2c.pl b/src/opcode2c.pl index 57810b8..0cfbf34 100755 --- a/src/opcode2c.pl +++ b/src/opcode2c.pl @@ -296,10 +296,6 @@ for ($i=0 ; $i< 256; $i++) { if ($op_destination == 21) { # DPTR cfw("unsigned int destination = memory_sfr_read_dptr();"); } - if ($op_destination == 22) { # #data16 - cfw("unsigned char destination = ( memory_read8( PGM_MEM_ID, (cpu8051.pc)++ ) << 8 );"); - cfw("destination += memory_read8( PGM_MEM_ID, (cpu8051.pc)++ );"); - } if ($op_destination == 23) { # /bitaddr cfw("unsigned char destination, dstbitaddr = memory_read8( PGM_MEM_ID, (cpu8051.pc)++ );"); cfw("destination = ( cpu8051_ReadB( dstbitaddr ) ^ 1 );");