import EVM from '../classes/evm.class' ; import Opcode from '../interfaces/opcode.interface' ; export default ( opcode , state ) : void => { const duplicateLocation = parseInt ( opcode . name . replace ( 'DUP' , '' ) , 10 ) - 1 ; state . stack . duplicate ( duplicateLocation ) ; } ;