private void writebuttonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_writebuttonMouseClicked
        // TODO add your handling code here:
        String address=writeaddress.getText();
        int addr=dec.NumberParser(address);
        int val=dec.NumberParser(writevalue.getText());
        if(addr != -100000 && val!= -100000){
            mm.writeMemory(addr, val%256);
            writeaddress.setText(""+addr%65536);
        }else{
            writeaddress.setText("0");
            writevalue.setText("0");
        }
            
    }//GEN-LAST:event_writebuttonMouseClicked