From 47852aee98ad5dc26489bb2231a06b057856c9d3 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Sun, 17 Nov 2013 19:50:28 -0500 Subject: [PATCH] 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. --- src/opcode2c.pl | 4 ---- 1 file changed, 4 deletions(-) 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 );"); -- 2.20.1