file_name
stringlengths
6
86
file_path
stringlengths
45
249
content
stringlengths
47
6.26M
file_size
int64
47
6.26M
language
stringclasses
1 value
extension
stringclasses
1 value
repo_name
stringclasses
767 values
repo_stars
int64
8
14.4k
repo_forks
int64
0
1.17k
repo_open_issues
int64
0
788
repo_created_at
stringclasses
767 values
repo_pushed_at
stringclasses
767 values
JAutoLoHiDialog.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/JAutoLoHiDialog.java
/** * @(#)JAutoLoHiDialog.java 2021/08/06 * * ICE Team free software group * * This file is part of JIIT64 Java Ice Team Tracker 64 * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA */ package sw_emulator.swing; import java.text.ParseException; import javax.swing.JFormattedTextField.AbstractFormatter; import javax.swing.JOptionPane; import javax.swing.JSpinner; import javax.swing.JTable; import javax.swing.text.DefaultFormatter; import javax.swing.text.DefaultFormatterFactory; import sw_emulator.software.MemoryDasm; import static sw_emulator.software.MemoryDasm.TYPE_MAJOR; import static sw_emulator.software.MemoryDasm.TYPE_MINOR; import static sw_emulator.software.MemoryDasm.TYPE_PLUS; import static sw_emulator.software.MemoryDasm.TYPE_PLUS_MAJOR; import static sw_emulator.software.MemoryDasm.TYPE_PLUS_MINOR; /** * Dialog for low/high table * * @author stefano_tognon */ public class JAutoLoHiDialog extends javax.swing.JDialog { /** Memory dasm */ private MemoryDasm[] memories; /** The table with selection */ private JTable jTable; private static class HexFormatterFactory extends DefaultFormatterFactory { @Override public AbstractFormatter getDefaultFormatter() { return new HexFormatter(); } } private static class HexFormatter extends DefaultFormatter { @Override public Object stringToValue(String text) throws ParseException { try { return Long.valueOf(text, 16); } catch (NumberFormatException nfe) { throw new ParseException(text,0); } } @Override public String valueToString(Object value) throws ParseException { if (value instanceof Long) return Long.toHexString( ((Long)value).intValue()).toUpperCase(); else return Integer.toHexString( ((Integer)value).intValue()).toUpperCase(); } } /** * Set memory dasm * * @param memories the memories dasm to use * @param jTable the table with selection */ public void setUp(MemoryDasm[] memories, JTable jTable) { this.memories=memories; this.jTable=jTable; } /** * Creates new form JDialogAutoLoHi */ public JAutoLoHiDialog(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); Shared.framesList.add(this); JSpinner.DefaultEditor editor = (JSpinner.DefaultEditor)jSpinnerStartLow.getEditor(); editor.getTextField().setFormatterFactory(new HexFormatterFactory()); editor = (JSpinner.DefaultEditor)jSpinnerStartHigh.getEditor(); editor.getTextField().setFormatterFactory(new HexFormatterFactory()); editor = (JSpinner.DefaultEditor)jSpinnerEndLow.getEditor(); editor.getTextField().setFormatterFactory(new HexFormatterFactory()); editor = (JSpinner.DefaultEditor)jSpinnerEndHigh.getEditor(); editor.getTextField().setFormatterFactory(new HexFormatterFactory()); editor = (JSpinner.DefaultEditor)jSpinnerBase.getEditor(); editor.getTextField().setFormatterFactory(new HexFormatterFactory()); editor = (JSpinner.DefaultEditor)jSpinnerDest.getEditor(); editor.getTextField().setFormatterFactory(new HexFormatterFactory()); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel2 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jPanel3 = new javax.swing.JPanel(); jButtonCancel = new javax.swing.JButton(); jPanel1 = new javax.swing.JPanel(); jSpinnerStartLow = new javax.swing.JSpinner(); jLabelStartLo = new javax.swing.JLabel(); jLabelStartHi = new javax.swing.JLabel(); jSpinnerStartHigh = new javax.swing.JSpinner(); jLabelEndLo = new javax.swing.JLabel(); jSpinnerEndLow = new javax.swing.JSpinner(); jLabelEndHigh = new javax.swing.JLabel(); jSpinnerEndHigh = new javax.swing.JSpinner(); jSeparator1 = new javax.swing.JSeparator(); jButtonOk = new javax.swing.JButton(); jLabelStartLo2 = new javax.swing.JLabel(); jSpinnerStartLow2 = new javax.swing.JSpinner(); jLabelStartHi2 = new javax.swing.JLabel(); jSpinnerStartHigh2 = new javax.swing.JSpinner(); jButtonOk2 = new javax.swing.JButton(); jLabelSize2 = new javax.swing.JLabel(); jSpinnerSize2 = new javax.swing.JSpinner(); jLabelPrefix2 = new javax.swing.JLabel(); jTextFieldPrefix2 = new javax.swing.JTextField(); jLabelDigit2 = new javax.swing.JLabel(); jSpinnerDigit2 = new javax.swing.JSpinner(); jSpinnerStart2 = new javax.swing.JSpinner(); jCheckBoxUpper2 = new javax.swing.JCheckBox(); jLabelStart2 = new javax.swing.JLabel(); jSeparator2 = new javax.swing.JSeparator(); jLabelRelated = new javax.swing.JLabel(); jLabelBaseAddress = new javax.swing.JLabel(); jSpinnerBase = new javax.swing.JSpinner(); jLabelDestinationAddress = new javax.swing.JLabel(); jSpinnerDest = new javax.swing.JSpinner(); jButtonRelative = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Tables automatic assigment"); jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jLabel1.setText("Automatic assign low/high pointer from two tables"); jPanel2.add(jLabel1); getContentPane().add(jPanel2, java.awt.BorderLayout.PAGE_START); jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jButtonCancel.setText("Cancel"); jButtonCancel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonCancelActionPerformed(evt); } }); jPanel3.add(jButtonCancel); getContentPane().add(jPanel3, java.awt.BorderLayout.PAGE_END); jSpinnerStartLow.setModel(new javax.swing.SpinnerNumberModel(Long.valueOf(0L), Long.valueOf(0L), Long.valueOf(65535L), Long.valueOf(1L))); jLabelStartLo.setText("Starting of low values:"); jLabelStartHi.setText("Starting of high values:"); jSpinnerStartHigh.setModel(new javax.swing.SpinnerNumberModel(Long.valueOf(0L), Long.valueOf(0L), Long.valueOf(65535L), Long.valueOf(1L))); jLabelEndLo.setText("Ending of low values:"); jSpinnerEndLow.setModel(new javax.swing.SpinnerNumberModel(Long.valueOf(0L), Long.valueOf(0L), Long.valueOf(65535L), Long.valueOf(1L))); jLabelEndHigh.setText("Ending of high values:"); jSpinnerEndHigh.setModel(new javax.swing.SpinnerNumberModel(Long.valueOf(0L), Long.valueOf(0L), Long.valueOf(65535L), Long.valueOf(1L))); jButtonOk.setText("OK"); jButtonOk.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonOkActionPerformed(evt); } }); jLabelStartLo2.setText("Starting of low values:"); jSpinnerStartLow2.setModel(new javax.swing.SpinnerNumberModel(Long.valueOf(0L), Long.valueOf(0L), Long.valueOf(65535L), Long.valueOf(1L))); jLabelStartHi2.setText("Starting of high values:"); jSpinnerStartHigh2.setModel(new javax.swing.SpinnerNumberModel(Long.valueOf(0L), Long.valueOf(0L), Long.valueOf(65535L), Long.valueOf(1L))); jButtonOk2.setText("OK"); jButtonOk2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonOk2ActionPerformed(evt); } }); jLabelSize2.setText("Table size:"); jSpinnerSize2.setModel(new javax.swing.SpinnerNumberModel(2, 1, 256, 1)); jLabelPrefix2.setText("Prefix:"); jLabelDigit2.setText("Digit:"); jSpinnerDigit2.setModel(new javax.swing.SpinnerNumberModel(1, 1, 2, 1)); jSpinnerDigit2.setToolTipText("Min number of digits to use (can increase automatically)"); jSpinnerStart2.setModel(new javax.swing.SpinnerNumberModel(0, 0, 255, 1)); jCheckBoxUpper2.setText("Uppercase"); jLabelStart2.setText("Start:"); jLabelRelated.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabelRelated.setText("Assign <> related relative address"); jLabelRelated.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jLabelBaseAddress.setText("Base (real) address:"); jSpinnerBase.setModel(new javax.swing.SpinnerNumberModel(Long.valueOf(0L), Long.valueOf(0L), Long.valueOf(65535L), Long.valueOf(1L))); jLabelDestinationAddress.setText("Destination address:"); jSpinnerDest.setModel(new javax.swing.SpinnerNumberModel(Long.valueOf(0L), Long.valueOf(0L), Long.valueOf(65535L), Long.valueOf(1L))); jButtonRelative.setText("OK"); jButtonRelative.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonRelativeActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelRelated, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(226, 226, 226) .addComponent(jButtonOk)) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 478, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelStartLo) .addComponent(jLabelEndLo, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jSpinnerEndLow, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE) .addComponent(jSpinnerStartLow, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(51, 51, 51) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabelEndHigh, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelStartHi, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jSpinnerStartHigh, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSpinnerEndHigh, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE))))) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(212, 212, 212) .addComponent(jButtonOk2))) .addGap(0, 20, Short.MAX_VALUE)) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabelPrefix2, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextFieldPrefix2)) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabelStartLo2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelSize2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jSpinnerStartLow2, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSpinnerSize2))) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabelStart2, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSpinnerStart2))) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelStartHi2, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(55, 55, 55) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBoxUpper2) .addComponent(jLabelDigit2)) .addGap(0, 0, Short.MAX_VALUE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jSpinnerDigit2) .addComponent(jSpinnerStartHigh2, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(jSeparator2) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabelBaseAddress) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSpinnerBase, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelDestinationAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSpinnerDest, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE))))) .addContainerGap()) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(212, 212, 212) .addComponent(jButtonRelative) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jSpinnerStartLow, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelStartLo) .addComponent(jSpinnerStartHigh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelStartHi)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jSpinnerEndLow, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelEndLo) .addComponent(jSpinnerEndHigh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelEndHigh)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButtonOk) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jSpinnerStartLow2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelStartLo2) .addComponent(jSpinnerStartHigh2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelStartHi2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelSize2) .addComponent(jSpinnerSize2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelPrefix2) .addComponent(jTextFieldPrefix2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDigit2) .addComponent(jSpinnerDigit2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jCheckBoxUpper2) .addComponent(jSpinnerStart2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelStart2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButtonOk2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabelRelated, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jSpinnerBase, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelBaseAddress) .addComponent(jSpinnerDest, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDestinationAddress)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButtonRelative) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER); pack(); setLocationRelativeTo(null); }// </editor-fold>//GEN-END:initComponents private void jButtonOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonOkActionPerformed if (memories==null) return; long valStartLow=(Long)jSpinnerStartLow.getValue(); long valStartHigh=(Long)jSpinnerStartHigh.getValue(); long valEndLow=(Long)jSpinnerEndLow.getValue(); long valEndHigh=(Long)jSpinnerEndHigh.getValue(); if (valStartLow>valEndLow) { JOptionPane.showMessageDialog(this, "Low end position must be after low start position"); return; } if (valStartHigh>valEndHigh) { JOptionPane.showMessageDialog(this, "High end position must be after high start position"); return; } if (valEndLow-valStartLow != valEndHigh-valStartHigh) { JOptionPane.showMessageDialog(this, "The size area from low and high must be equal"); return; } if (valStartLow<valStartHigh && valEndLow>valStartHigh) { JOptionPane.showMessageDialog(this, "Starting high position cannot be inside low area"); return; } if (valStartLow<valEndHigh && valEndLow>valEndHigh) { JOptionPane.showMessageDialog(this, "Ending high position cannot be inside low area"); return; } MemoryDasm low; MemoryDasm high; int position; // make the action for (long i=0; i<=valEndLow-valStartLow; i++) { low=memories[(int)(i+valStartLow)]; high=memories[(int)(i+valStartHigh)]; position=(low.copy & 0xFF)+((high.copy &0xFF)<<8); low.type=TYPE_MINOR; low.related=position; high.type=TYPE_MAJOR; high.related=position; } setVisible(false); }//GEN-LAST:event_jButtonOkActionPerformed private void jButtonCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelActionPerformed setVisible(false); }//GEN-LAST:event_jButtonCancelActionPerformed private void jButtonOk2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonOk2ActionPerformed if (memories==null) return; long valStartLow=(Long)jSpinnerStartLow2.getValue(); long valStartHigh=(Long)jSpinnerStartHigh2.getValue(); int size=(Integer)jSpinnerSize2.getValue(); if ((valStartLow!=valStartHigh+1) && (valStartLow!=valStartHigh-1)) { JOptionPane.showMessageDialog(this, "High star position must be before or after low starting position by 1"); return; } MemoryDasm low; MemoryDasm high; int position; String prefix=jTextFieldPrefix2.getText(); int start=(Integer)jSpinnerStart2.getValue(); boolean uppercase=jCheckBoxUpper2.isSelected(); int digit=(Integer)jSpinnerDigit2.getValue(); String label; for (int i=0; i<size; i++) { low=memories[(int)(i*2+valStartLow)]; high=memories[(int)(i*2+valStartHigh)]; position=(low.copy & 0xFF)+((high.copy &0xFF)<<8); low.type=TYPE_MINOR; low.related=position; high.type=TYPE_MAJOR; high.related=position; if (prefix!=null && !"".equals(prefix)) { label=Integer.toHexString(i+start); if (label.length()==1 && digit==2) label="0"+label; if (uppercase) label=label.toUpperCase(); else label=label.toLowerCase(); label=prefix+label; memories[position].userLocation=label; } } }//GEN-LAST:event_jButtonOk2ActionPerformed private void jButtonRelativeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonRelativeActionPerformed // assign << >> values to memories location long base; long dest; try { base=(Long)jSpinnerBase.getValue(); dest=(long)jSpinnerDest.getValue(); } catch (Exception e) { JOptionPane.showMessageDialog(this, "Invalid number for address", "Warning", JOptionPane.WARNING_MESSAGE); return; } int row=jTable.getSelectedRow(); if (row<0) { JOptionPane.showMessageDialog(this, "No row selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } int rows[]=jTable.getSelectedRows(); if (rows.length==1) { JOptionPane.showMessageDialog(this, "At least two rows must be selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } MemoryDasm low, high; int address; for (int i=0; i<rows.length; i+=2) { if (i==rows.length-1) break; low=memories[rows[i]]; high=memories[rows[i+1]]; if (low.address<base) { JOptionPane.showMessageDialog(this, "Selected address must be after or equal to base address", "Warning", JOptionPane.WARNING_MESSAGE); return; } // the address is not the one inserted, but a relocated one address=(int)((low.copy & 0xFF) + ((high.copy & 0xFF)<<8)-base+dest); low.related=address; if (low.type==TYPE_PLUS) high.type=TYPE_PLUS_MINOR; else low.type=TYPE_MINOR; high.related=address; if (high.type==TYPE_PLUS) high.type=TYPE_PLUS_MAJOR; else high.type=TYPE_MAJOR; low.relatedAddressBase=(int)base; low.relatedAddressDest=(int)dest; high.relatedAddressBase=(int)base; high.relatedAddressDest=(int)dest; } jTable.setRowSelectionInterval(rows[0], rows[rows.length-1]); setVisible(false); }//GEN-LAST:event_jButtonRelativeActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(JAutoLoHiDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(JAutoLoHiDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(JAutoLoHiDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(JAutoLoHiDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> //</editor-fold> /* Create and display the dialog */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { JAutoLoHiDialog dialog = new JAutoLoHiDialog(new javax.swing.JFrame(), true); dialog.addWindowListener(new java.awt.event.WindowAdapter() { @Override public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); } }); dialog.setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButtonCancel; private javax.swing.JButton jButtonOk; private javax.swing.JButton jButtonOk2; private javax.swing.JButton jButtonRelative; private javax.swing.JCheckBox jCheckBoxUpper2; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabelBaseAddress; private javax.swing.JLabel jLabelDestinationAddress; private javax.swing.JLabel jLabelDigit2; private javax.swing.JLabel jLabelEndHigh; private javax.swing.JLabel jLabelEndLo; private javax.swing.JLabel jLabelPrefix2; private javax.swing.JLabel jLabelRelated; private javax.swing.JLabel jLabelSize2; private javax.swing.JLabel jLabelStart2; private javax.swing.JLabel jLabelStartHi; private javax.swing.JLabel jLabelStartHi2; private javax.swing.JLabel jLabelStartLo; private javax.swing.JLabel jLabelStartLo2; private javax.swing.JPanel jPanel1; private javax.swing.JPanel jPanel2; private javax.swing.JPanel jPanel3; private javax.swing.JSeparator jSeparator1; private javax.swing.JSeparator jSeparator2; private javax.swing.JSpinner jSpinnerBase; private javax.swing.JSpinner jSpinnerDest; private javax.swing.JSpinner jSpinnerDigit2; private javax.swing.JSpinner jSpinnerEndHigh; private javax.swing.JSpinner jSpinnerEndLow; private javax.swing.JSpinner jSpinnerSize2; private javax.swing.JSpinner jSpinnerStart2; private javax.swing.JSpinner jSpinnerStartHigh; private javax.swing.JSpinner jSpinnerStartHigh2; private javax.swing.JSpinner jSpinnerStartLow; private javax.swing.JSpinner jSpinnerStartLow2; private javax.swing.JTextField jTextFieldPrefix2; // End of variables declaration//GEN-END:variables }
34,252
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
FadeDialog.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/FadeDialog.java
/** * @(#)FadeDialog.java 2023/10/17 * * ICE Team free software group * * This file is part of JIIT64 Java Ice Team Tracker 64 * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package sw_emulator.swing; import java.awt.BorderLayout; import java.io.File; import java.io.InputStream; import java.nio.file.Files; import java.nio.file.Path; import java.time.Year; import java.util.Calendar; import java.util.GregorianCalendar; import javax.swing.JDialog; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.Timer; import javax.swing.WindowConstants; import sw_emulator.software.sidid.CRSID; import sw_emulator.swing.main.FileManager; import sw_emulator.swing.main.Option; /** * Fade dialog for easter eggs */ public class FadeDialog extends JDialog { private float rate = 0.15f; private float alfa = 0; private JLabel label; private Timer timerIn=null; private Timer timerOut=null; private CRSID crsid; /** * Return the easter egg if it is activated * * @return the egg or null */ private EasterEgg getEgg() { EasterEgg[] list= EasterEgg.values(); for (EasterEgg egg : list) { if (egg.isNow()) return egg; } return null; } /** * Construct the dialog * * @param option the option to use * @param parent the parent grame */ FadeDialog(Option option, JFrame parent) { EasterEgg egg=getEgg(); if (egg==null) return; super.setLocationRelativeTo(parent); super.setLocation(0, 0); setAlwaysOnTop(true); setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); setUndecorated(true); //opacity supported for undecorated JDialogs getContentPane().add(new ContentPane(), BorderLayout.CENTER); label.addMouseListener(new java.awt.event.MouseAdapter() { @Override public void mouseClicked(java.awt.event.MouseEvent evt) { labelMouseClicked(evt); } }); label.addKeyListener(new java.awt.event.KeyAdapter() { @Override public void keyPressed(java.awt.event.KeyEvent evt) { labelKeyPressed(evt); } }); label.setIcon(new javax.swing.ImageIcon(getClass().getResource(egg.image))); // NOI18N pack(); setOpacity(0); setVisible(true); crsid=new CRSID(); crsid.init(44100); byte[] data; try { InputStream in=getClass().getResourceAsStream(egg.sid); data = in.readAllBytes(); File file=new File(option.tmpPath+File.separator+"SID.sid"); // write the file in temporary path FileManager.instance.writeFile(file, data); crsid.playSIDfile(file.getAbsolutePath(), egg.tune); } catch (Exception ex) { System.err.println(ex); } timerIn = new Timer(100, e -> fadeIn()); timerIn.setInitialDelay(100); timerIn.start(); } /** * Fade in of image */ private void fadeIn() { alfa += rate; if (alfa > 1) { alfa = 1; timerIn.stop(); } setOpacity(alfa); } /** * Fade out of image */ private void fadeOut() { alfa -= rate; if (alfa < 0) { alfa = 0; timerOut.stop(); setVisible(false); } setOpacity(alfa); } /** * Manage a key press action by closing the easter egg * * @param evt the event */ private void labelKeyPressed(java.awt.event.KeyEvent evt) { close(); } /** * Manage a mouse click by closing the easter egg * * @param evt the event */ private void labelMouseClicked(java.awt.event.MouseEvent evt) { close(); } /** * Close the easter egg */ private void close() { timerOut = new Timer(100, e -> fadeOut()); timerOut.setInitialDelay(100); timerOut.start(); crsid.stopPlaying(); } /** * Panel with image to show */ class ContentPane extends JPanel { ContentPane() { //setPreferredSize(new Dimension(200, 100)); setLayout(new BorderLayout()); label = new JLabel(""); //label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/images/hw.png"))); // NOI18N add(label, BorderLayout.CENTER); } } public static void main(String[] args) { new FadeDialog(new Option(), null); } } /** * Easter eggs events with images and tunes */ enum EasterEgg{ HALLOWEEN(31, 10, "/sw_emulator/swing/images/hw.png", "/sw_emulator/swing/images/Driller_Hub_Style.sid", 1), CHRISTMAS(25, 12, "/sw_emulator/swing/images/ch.png", "/sw_emulator/swing/images/Silent_Night.sid", 1), EASTER("/sw_emulator/swing/images/ea.png","/sw_emulator/swing/images/Turtle.sid", 1); private final int day; private final int month; public String image; public String sid; public int tune; /** * Init Easter egg with day/month and image * * @param day the day to activate * @param month the month to activate * @param image the image path * @param sid the sid path * @param tune tune number */ private EasterEgg(int day, int month, String image, String sid, int tune) { this.day = day; this.month = month; this.image = image; this.sid = sid; this.tune=tune; } /** * Init Easter egg with Easter date and image * * @param image the image path * @param sid the sid path * @param tune tune number */ private EasterEgg(String image, String sid, int tune) { Calendar cal=findHolyDay(Year.now().getValue()); this.day=cal.get(Calendar.DAY_OF_MONTH); this.month=cal.get(Calendar.MONTH)+1; this.image=image; this.sid = sid; this.tune=tune; } /* * Compute the day of the year that Easter falls on. Step names E1 E2 etc., * are direct references to Knuth, Vol 1, p 155. */ static final Calendar findHolyDay(int year) { int golden, century, x, z, d, epact, n; golden = (year % 19) + 1; /* E1: metonic cycle */ century = (year / 100) + 1; /* E2: e.g. 1984 was in 20th C */ x = (3 * century / 4) - 12; /* E3: leap year correction */ z = ((8 * century + 5) / 25) - 5; /* E3: sync with moon's orbit */ d = (5 * year / 4) - x - 10; epact = (11 * golden + 20 + z - x) % 30; /* E5: epact */ if ((epact == 25 && golden > 11) || epact == 24) epact++; n = 44 - epact; n += 30 * (n < 21 ? 1 : 0); /* E6: */ n += 7 - ((d + n) % 7); if (n > 31) /* E7: */ return new GregorianCalendar(year, 4 - 1, n - 31); /* April */ else return new GregorianCalendar(year, 3 - 1, n); /* March */ } /** * True if the date is now * * @return true if this is the event */ public boolean isNow() { Calendar today = Calendar.getInstance(); return today.get(Calendar.DAY_OF_MONTH)==day && today.get(Calendar.MONTH)+1==month; } }
8,703
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
JProjectDialog.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/JProjectDialog.java
/** * @(#)JDialogProject.java 2019/12/03 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.text.ParseException; import java.util.Arrays; import java.util.prefs.Preferences; import javax.swing.JFileChooser; import javax.swing.JFormattedTextField; import javax.swing.JOptionPane; import javax.swing.JSpinner; import javax.swing.SwingUtilities; import javax.swing.filechooser.FileNameExtensionFilter; import javax.swing.text.DefaultFormatter; import javax.swing.text.DefaultFormatterFactory; import sw_emulator.software.memory.MemoryFlags; import sw_emulator.swing.main.FileManager; import sw_emulator.swing.main.Patch; import sw_emulator.swing.main.Project; import sw_emulator.swing.main.Relocate; import sw_emulator.swing.main.TargetType; /** * Dialog for project * * @author ice */ public class JProjectDialog extends javax.swing.JDialog { /** File chooser */ JFileChooser fileChooser=new JFileChooser(); /** File chooser for memory flags */ JFileChooser memFileChooser=new JFileChooser(); /** File chooser for export */ JFileChooser exportFileChooser=new JFileChooser(); /** The project to use (create an emty one not used) */ Project project=new Project(); /** Dialog for constants table */ JConstantDialog jConstantDialog=new JConstantDialog(null, true); /** Last address added in patch*/ int lastAddress=-1; private static class HexFormatterFactory extends DefaultFormatterFactory { @Override public JFormattedTextField.AbstractFormatter getDefaultFormatter() { return new HexFormatter(); } } private static class HexFormatter extends DefaultFormatter { @Override public Object stringToValue(String text) throws ParseException { try { return Integer.valueOf(text, 16); } catch (NumberFormatException nfe) { throw new ParseException(text,0); } } @Override public String valueToString(Object value) throws ParseException { return Integer.toHexString(((Integer)value)).toUpperCase(); } } /** Last direcotry for load file in project */ public final static String LAST_DIR_FILE = "last.dir.file"; /** Last direcotry for load file in project */ public final static String LAST_DIR2_FILE = "last.dir2.file"; /** Preference system file */ private Preferences m_prefNode=Preferences.userRoot().node(this.getClass().getName()); /** * Creates new form JDialogProject */ public JProjectDialog(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); Shared.framesList.add(this); Shared.framesList.add(fileChooser); Shared.framesList.add(memFileChooser); Shared.framesList.add(exportFileChooser); fileChooser.addChoosableFileFilter(new FileNameExtensionFilter("PSID/RSID tune", "sid")); fileChooser.addChoosableFileFilter(new FileNameExtensionFilter("MUS tune", "mus")); fileChooser.addChoosableFileFilter(new FileNameExtensionFilter("Multi PRG C64 program", "mpr")); fileChooser.addChoosableFileFilter(new FileNameExtensionFilter("PRG C64 program", "prg", "bin")); fileChooser.addChoosableFileFilter(new FileNameExtensionFilter("CRT C64 cartridge", "crt")); fileChooser.addChoosableFileFilter(new FileNameExtensionFilter("VSF Vice snapshot file", "vsf")); fileChooser.addChoosableFileFilter(new FileNameExtensionFilter("AY tune", "ay")); fileChooser.addChoosableFileFilter(new FileNameExtensionFilter("NSF tune", "nsf")); fileChooser.addChoosableFileFilter(new FileNameExtensionFilter("SAP tune (Atari)", "sap")); fileChooser.addChoosableFileFilter(new FileNameExtensionFilter("BIN dump (Odyssey)", "bin")); fileChooser.setCurrentDirectory(new File(m_prefNode.get(LAST_DIR_FILE, ""))); memFileChooser.addChoosableFileFilter(new FileNameExtensionFilter("SIDLD binary", "bin")); memFileChooser.setCurrentDirectory(new File(m_prefNode.get(LAST_DIR2_FILE, ""))); JSpinner.DefaultEditor editor = (JSpinner.DefaultEditor)jSpinnerAddr.getEditor(); editor.getTextField().setFormatterFactory(new HexFormatterFactory()); } /** * Get relocate table as string description * * @return the string description */ private String getRelocateDesc() { if (project==null || project.relocates==null) return ""; String res=""; for (Relocate relocate:project.relocates) { res+=Shared.ShortToExe(relocate.fromStart)+":"+Shared.ShortToExe(relocate.fromEnd)+" => "+ Shared.ShortToExe(relocate.toStart)+":"+Shared.ShortToExe(relocate.toEnd)+"\n"; } return res; } /** * Get relocate table as string description * * @return the string description */ private String getPatchDesc() { if (project==null || project.patches==null) return ""; String res=""; for (Patch patch:project.patches) { res+=Shared.ShortToExe(patch.address)+" => "+Shared.ByteToExe(patch.value)+"\n"; } return res; } /** * Set up the dialog with the project to use * * @param project the project to use */ public void setUp(Project project) { this.project=project; jConstantDialog.setUp(project.constant, project.memory); SwingUtilities.invokeLater(new Runnable(){ public void run() { jTextFieldProjectName.setText(project.name); jTextFieldInputFile.setText(project.file); if (project.description!=null) jTextAreaDescr.setText(project.description); else jTextAreaDescr.setText(""); jSpinnerCRT.setValue(project.chip); jSpinnerAddr.setValue(project.binAddress); if (project.fileType!=null) { jRadioButtonC128Z.setEnabled(true); switch (project.fileType) { case PRG: jRadioButtonPRG.setSelected(true); break; case SID: jRadioButtonSID.setSelected(true); jRadioButtonC128Z.setEnabled(false); jRadioButtonOdyssey.setEnabled(false); break; case MUS: jRadioButtonMUS.setSelected(true); break; case MPR: jRadioButtonMPR.setSelected(true); break; case CRT: jRadioButtonCRT.setSelected(true); break; case VSF: jRadioButtonVSF.setSelected(true); break; case AY: jRadioButtonAY.setSelected(true); break; case NSF: jRadioButtonNSF.setSelected(true); break; case SAP: jRadioButtonSAP.setSelected(true); break; case BIN: jRadioButtonBIN.setSelected(true); break; } } else { jRadioButtonPRG.setSelected(false); jRadioButtonSID.setSelected(false); jRadioButtonMUS.setSelected(false); jRadioButtonMPR.setSelected(false); jRadioButtonCRT.setSelected(false); jRadioButtonVSF.setSelected(false); jRadioButtonNSF.setSelected(false); jRadioButtonSAP.setSelected(false); jRadioButtonBIN.setSelected(false); } if (project.targetType!=null) { switch (project.targetType) { case C64: jRadioButtonC64.setSelected(true); break; case C1541: jRadioButtonC1541.setSelected(true); break; case C128: jRadioButtonC128.setSelected(true); break; case VIC20: jRadioButtonVic20.setSelected(true); break; case PLUS4: jRadioButtonPlus4.setSelected(true); break; case C128Z: jRadioButtonC128Z.setSelected(true); break; case ATARI: jRadioButtonAtari.setSelected(true); break; case ODYSSEY: jRadioButtonOdyssey.setSelected(true); break; } } else { jRadioButtonC64.setSelected(true); jRadioButtonC1541.setSelected(false); jRadioButtonC128.setSelected(false); jRadioButtonVic20.setSelected(false); jRadioButtonPlus4.setSelected(false); jRadioButtonC128Z.setSelected(false); jRadioButtonAtari.setSelected(false); jRadioButtonOdyssey.setSelected(false); } jTextAreaRelocate.setText(getRelocateDesc()); jTextAreaPatch.setText(getPatchDesc()); } }); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroupFileType = new javax.swing.ButtonGroup(); buttonGroupTarget = new javax.swing.ButtonGroup(); jPanelCenter = new javax.swing.JPanel(); jLabelProjectName = new javax.swing.JLabel(); jTextFieldProjectName = new javax.swing.JTextField(); jLabelInputFile = new javax.swing.JLabel(); jTextFieldInputFile = new javax.swing.JTextField(); jButtonSelect = new javax.swing.JButton(); jLabelFileType = new javax.swing.JLabel(); jRadioButtonSID = new javax.swing.JRadioButton(); jRadioButtonMUS = new javax.swing.JRadioButton(); jRadioButtonPRG = new javax.swing.JRadioButton(); jLabelFileDes = new javax.swing.JLabel(); jScrollPaneDescr = new javax.swing.JScrollPane(); jTextAreaDescr = new javax.swing.JTextArea(); jLabelSidLd = new javax.swing.JLabel(); jButtonClear = new javax.swing.JButton(); jButtonAddNext = new javax.swing.JButton(); jButtonInit = new javax.swing.JButton(); jRadioButtonMPR = new javax.swing.JRadioButton(); jLabelFileTarget = new javax.swing.JLabel(); jRadioButtonC64 = new javax.swing.JRadioButton(); jRadioButtonC1541 = new javax.swing.JRadioButton(); jRadioButtonC128 = new javax.swing.JRadioButton(); jRadioButtonVic20 = new javax.swing.JRadioButton(); jRadioButtonPlus4 = new javax.swing.JRadioButton(); jRadioButtonCRT = new javax.swing.JRadioButton(); jSpinnerCRT = new javax.swing.JSpinner(); jLabelConstant = new javax.swing.JLabel(); jButtonEdit = new javax.swing.JButton(); jRadioButtonVSF = new javax.swing.JRadioButton(); jLabelRelocate = new javax.swing.JLabel(); jButtonRelocateAdd = new javax.swing.JButton(); jScrollPaneRelocate = new javax.swing.JScrollPane(); jTextAreaRelocate = new javax.swing.JTextArea(); jLabelPatch = new javax.swing.JLabel(); jButtonPatchAdd = new javax.swing.JButton(); jScrollPaneRelocate1 = new javax.swing.JScrollPane(); jTextAreaPatch = new javax.swing.JTextArea(); jButtonPatchRemove = new javax.swing.JButton(); jButtonSave = new javax.swing.JButton(); jLabelM6502 = new javax.swing.JLabel(); jLabelZ80 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jRadioButtonC128Z = new javax.swing.JRadioButton(); jRadioButtonAY = new javax.swing.JRadioButton(); jRadioButtonNSF = new javax.swing.JRadioButton(); jButtonPatchRemove1 = new javax.swing.JButton(); jRadioButtonSAP = new javax.swing.JRadioButton(); jRadioButtonAtari = new javax.swing.JRadioButton(); jLabelI8048 = new javax.swing.JLabel(); jRadioButtonOdyssey = new javax.swing.JRadioButton(); jRadioButtonBIN = new javax.swing.JRadioButton(); jSpinnerAddr = new javax.swing.JSpinner(); jPanelDn = new javax.swing.JPanel(); jButtonClose = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); setTitle("Project"); setResizable(false); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } }); jPanelCenter.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jLabelProjectName.setText("Project Name:"); jLabelInputFile.setText("File to disassemble:"); jButtonSelect.setText("Select"); jButtonSelect.setToolTipText("Select the file to disassemble"); jButtonSelect.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonSelectActionPerformed(evt); } }); jLabelFileType.setText("File Type:"); buttonGroupFileType.add(jRadioButtonSID); jRadioButtonSID.setText("SID"); jRadioButtonSID.setToolTipText("PSID/RSID C64 music emulator file"); jRadioButtonSID.setEnabled(false); buttonGroupFileType.add(jRadioButtonMUS); jRadioButtonMUS.setText("MUS"); jRadioButtonMUS.setToolTipText("Compute's Gazette C64 music emulation file"); jRadioButtonMUS.setEnabled(false); buttonGroupFileType.add(jRadioButtonPRG); jRadioButtonPRG.setSelected(true); jRadioButtonPRG.setText("PRG"); jRadioButtonPRG.setToolTipText("Binary program with starting loading address"); jRadioButtonPRG.setEnabled(false); jLabelFileDes.setText("File description:"); jTextAreaDescr.setEditable(false); jTextAreaDescr.setColumns(20); jTextAreaDescr.setFont(new java.awt.Font("Monospaced", 0, 12)); // NOI18N jTextAreaDescr.setRows(5); jScrollPaneDescr.setViewportView(jTextAreaDescr); jLabelSidLd.setText("SIDLD memory flag: "); jButtonClear.setText("Clear"); jButtonClear.setToolTipText("Clear the memory flag as of all undefined"); jButtonClear.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonClearActionPerformed(evt); } }); jButtonAddNext.setText("Add next"); jButtonAddNext.setToolTipText("Add next SIDLD file to memory flag"); jButtonAddNext.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonAddNextActionPerformed(evt); } }); jButtonInit.setText("Init"); jButtonInit.setToolTipText("Init the memory flag as all of executable code"); jButtonInit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonInitActionPerformed(evt); } }); buttonGroupFileType.add(jRadioButtonMPR); jRadioButtonMPR.setText("MPR"); jRadioButtonMPR.setToolTipText("Proprietary multi-PRG file format"); jRadioButtonMPR.setEnabled(false); jLabelFileTarget.setText("Target machine:"); buttonGroupTarget.add(jRadioButtonC64); jRadioButtonC64.setSelected(true); jRadioButtonC64.setText("C64"); jRadioButtonC64.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioButtonC64ActionPerformed(evt); } }); buttonGroupTarget.add(jRadioButtonC1541); jRadioButtonC1541.setText("C1541"); jRadioButtonC1541.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioButtonC1541ActionPerformed(evt); } }); buttonGroupTarget.add(jRadioButtonC128); jRadioButtonC128.setText("C128"); jRadioButtonC128.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioButtonC128ActionPerformed(evt); } }); buttonGroupTarget.add(jRadioButtonVic20); jRadioButtonVic20.setText("Vic20"); jRadioButtonVic20.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioButtonVic20ActionPerformed(evt); } }); buttonGroupTarget.add(jRadioButtonPlus4); jRadioButtonPlus4.setText("Plus4"); jRadioButtonPlus4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioButtonPlus4ActionPerformed(evt); } }); buttonGroupFileType.add(jRadioButtonCRT); jRadioButtonCRT.setText("CRT"); jRadioButtonCRT.setToolTipText("Cartridge emulation format for Commodore (need chip selection)"); jRadioButtonCRT.setEnabled(false); jSpinnerCRT.setModel(new javax.swing.SpinnerNumberModel(0, 0, 255, 1)); jSpinnerCRT.setToolTipText("number of cartridge chip to use"); jSpinnerCRT.setEnabled(false); jSpinnerCRT.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerCRTStateChanged(evt); } }); jLabelConstant.setText("Constants table:"); jButtonEdit.setText("Edit"); jButtonEdit.setToolTipText("Edit the constants definitions"); jButtonEdit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonEditActionPerformed(evt); } }); buttonGroupFileType.add(jRadioButtonVSF); jRadioButtonVSF.setText("VSF"); jRadioButtonVSF.setToolTipText("VICE snapshot emulator file format"); jRadioButtonVSF.setEnabled(false); jLabelRelocate.setText("Relocate table:"); jButtonRelocateAdd.setText("Add"); jButtonRelocateAdd.setToolTipText("Add relocated addresses. Operation cannot be undone!"); jButtonRelocateAdd.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonRelocateAddActionPerformed(evt); } }); jTextAreaRelocate.setEditable(false); jTextAreaRelocate.setColumns(20); jTextAreaRelocate.setRows(5); jScrollPaneRelocate.setViewportView(jTextAreaRelocate); jLabelPatch.setText("Patch table:"); jButtonPatchAdd.setText("Add"); jButtonPatchAdd.setToolTipText("Add patched value into memory"); jButtonPatchAdd.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonPatchAddActionPerformed(evt); } }); jTextAreaPatch.setEditable(false); jTextAreaPatch.setColumns(20); jTextAreaPatch.setRows(5); jScrollPaneRelocate1.setViewportView(jTextAreaPatch); jButtonPatchRemove.setText("Remove"); jButtonPatchRemove.setToolTipText("Remove last inserted value"); jButtonPatchRemove.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonPatchRemoveActionPerformed(evt); } }); jButtonSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/filesaveas.png"))); // NOI18N jButtonSave.setToolTipText("Export back the file that was selected"); jButtonSave.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonSaveActionPerformed(evt); } }); jLabelM6502.setText("Mos6502:"); jLabelZ80.setText("Z80:"); jLabel3.setFont(new java.awt.Font("Dialog", 1, 48)); // NOI18N jLabel3.setText("{"); buttonGroupTarget.add(jRadioButtonC128Z); jRadioButtonC128Z.setText("C128"); jRadioButtonC128Z.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioButtonC128ZActionPerformed(evt); } }); buttonGroupFileType.add(jRadioButtonAY); jRadioButtonAY.setText("AY"); jRadioButtonAY.setToolTipText("AY chip music emulator file format"); jRadioButtonAY.setEnabled(false); buttonGroupFileType.add(jRadioButtonNSF); jRadioButtonNSF.setText("NSF"); jRadioButtonNSF.setToolTipText("NES music emulator file format"); jRadioButtonNSF.setEnabled(false); jButtonPatchRemove1.setText("Remove"); jButtonPatchRemove1.setToolTipText("Remove last inserted value"); jButtonPatchRemove1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonPatchRemove1ActionPerformed(evt); } }); buttonGroupFileType.add(jRadioButtonSAP); jRadioButtonSAP.setText("SAP"); jRadioButtonSAP.setToolTipText("Atari music emulator file format"); jRadioButtonSAP.setEnabled(false); buttonGroupTarget.add(jRadioButtonAtari); jRadioButtonAtari.setText("Atari"); jRadioButtonAtari.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioButtonAtariActionPerformed(evt); } }); jLabelI8048.setText("I8048"); buttonGroupTarget.add(jRadioButtonOdyssey); jRadioButtonOdyssey.setText("Odyssey/Videopack"); jRadioButtonOdyssey.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioButtonOdysseyActionPerformed(evt); } }); buttonGroupFileType.add(jRadioButtonBIN); jRadioButtonBIN.setText("BIN"); jRadioButtonBIN.setToolTipText("Cartridge emulation format for Commodore (need chip selection)"); jRadioButtonBIN.setEnabled(false); jSpinnerAddr.setModel(new javax.swing.SpinnerNumberModel(0, 0, 65535, 1)); jSpinnerAddr.setToolTipText("Loading address (in Hex)"); jSpinnerAddr.setEnabled(false); jSpinnerAddr.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerAddrStateChanged(evt); } }); javax.swing.GroupLayout jPanelCenterLayout = new javax.swing.GroupLayout(jPanelCenter); jPanelCenter.setLayout(jPanelCenterLayout); jPanelCenterLayout.setHorizontalGroup( jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelCenterLayout.createSequentialGroup() .addContainerGap() .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPaneDescr) .addGroup(jPanelCenterLayout.createSequentialGroup() .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelCenterLayout.createSequentialGroup() .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jLabelConstant, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelSidLd, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelRelocate, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jButtonClear, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButtonEdit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButtonRelocateAdd, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButtonPatchRemove1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGroup(jPanelCenterLayout.createSequentialGroup() .addComponent(jLabelPatch, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jButtonPatchRemove, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButtonPatchAdd, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneRelocate1) .addComponent(jScrollPaneRelocate) .addGroup(jPanelCenterLayout.createSequentialGroup() .addComponent(jButtonInit, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButtonAddNext) .addGap(0, 0, Short.MAX_VALUE)))) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelCenterLayout.createSequentialGroup() .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelCenterLayout.createSequentialGroup() .addComponent(jLabelFileType, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(25, 25, 25) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonSID) .addComponent(jRadioButtonVSF)) .addGap(18, 18, 18) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonMUS) .addComponent(jRadioButtonAY)) .addGap(18, 18, 18) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jRadioButtonPRG) .addComponent(jRadioButtonNSF)) .addGap(18, 18, 18) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonMPR) .addComponent(jRadioButtonSAP)) .addGap(18, 18, 18) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonCRT) .addComponent(jRadioButtonBIN)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSpinnerAddr, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSpinnerCRT, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanelCenterLayout.createSequentialGroup() .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabelInputFile, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelProjectName, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(44, 44, 44) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jTextFieldProjectName) .addGroup(jPanelCenterLayout.createSequentialGroup() .addComponent(jTextFieldInputFile, javax.swing.GroupLayout.PREFERRED_SIZE, 344, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButtonSelect) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButtonSave)))) .addGroup(jPanelCenterLayout.createSequentialGroup() .addComponent(jLabelFileTarget, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel3) .addGap(18, 18, 18) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelZ80, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelM6502) .addComponent(jLabelI8048)) .addGap(42, 42, 42) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelCenterLayout.createSequentialGroup() .addComponent(jRadioButtonC64) .addGap(6, 6, 6) .addComponent(jRadioButtonC1541) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonC128) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonVic20) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonPlus4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonAtari)) .addComponent(jRadioButtonC128Z) .addComponent(jRadioButtonOdyssey))) .addComponent(jLabelFileDes)) .addGap(0, 110, Short.MAX_VALUE))) .addContainerGap()) ); jPanelCenterLayout.setVerticalGroup( jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelCenterLayout.createSequentialGroup() .addContainerGap() .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelProjectName) .addComponent(jTextFieldProjectName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelInputFile) .addComponent(jTextFieldInputFile, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButtonSelect) .addComponent(jButtonSave, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelCenterLayout.createSequentialGroup() .addGap(1, 1, 1) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jRadioButtonCRT) .addComponent(jSpinnerCRT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelFileType) .addComponent(jRadioButtonSID) .addComponent(jRadioButtonMUS) .addComponent(jRadioButtonPRG) .addComponent(jRadioButtonMPR))) .addGap(5, 5, 5) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonVSF, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jRadioButtonAY, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jRadioButtonNSF, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jRadioButtonSAP, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jRadioButtonBIN, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jSpinnerAddr, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelCenterLayout.createSequentialGroup() .addGap(7, 7, 7) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jRadioButtonC64) .addComponent(jRadioButtonC1541) .addComponent(jRadioButtonC128) .addComponent(jRadioButtonVic20) .addComponent(jRadioButtonPlus4) .addComponent(jLabelM6502) .addComponent(jRadioButtonAtari)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelZ80) .addComponent(jRadioButtonC128Z)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelI8048) .addComponent(jRadioButtonOdyssey))) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanelCenterLayout.createSequentialGroup() .addGap(38, 38, 38) .addComponent(jLabelFileTarget)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 16, Short.MAX_VALUE) .addComponent(jLabelFileDes) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPaneDescr, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButtonClear) .addComponent(jLabelSidLd) .addComponent(jButtonAddNext) .addComponent(jButtonInit)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelConstant) .addComponent(jButtonEdit)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelCenterLayout.createSequentialGroup() .addGap(21, 21, 21) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButtonRelocateAdd) .addComponent(jLabelRelocate)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButtonPatchRemove1)) .addComponent(jScrollPaneRelocate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelCenterLayout.createSequentialGroup() .addGap(21, 21, 21) .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButtonPatchAdd) .addComponent(jLabelPatch)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButtonPatchRemove)) .addComponent(jScrollPaneRelocate1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(27, 27, 27)) ); getContentPane().add(jPanelCenter, java.awt.BorderLayout.CENTER); jPanelDn.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jButtonClose.setText("Close"); jButtonClose.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonCloseActionPerformed(evt); } }); jPanelDn.add(jButtonClose); getContentPane().add(jPanelDn, java.awt.BorderLayout.SOUTH); pack(); setLocationRelativeTo(null); }// </editor-fold>//GEN-END:initComponents private void jButtonCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCloseActionPerformed project.name=jTextFieldProjectName.getText(); if (project.file==null || "".equals(project.file)) { if (JOptionPane.showConfirmDialog(this, "No file inserted. Closing will erase all in project. Do you want to close anywere?", "Warning", JOptionPane.WARNING_MESSAGE)==JOptionPane.OK_OPTION) setVisible(false); else return; } setVisible(false); }//GEN-LAST:event_jButtonCloseActionPerformed private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing project.name=jTextFieldProjectName.getText(); if (project.file==null || "".equals(project.file)) { if (JOptionPane.showConfirmDialog(this, "No file inserted. Closing will erase all in project. Do you want to close anywere?", "Warning", JOptionPane.WARNING_MESSAGE)==JOptionPane.OK_OPTION) setVisible(false); else return; } setVisible(false); }//GEN-LAST:event_formWindowClosing private void jButtonPatchRemove1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonPatchRemove1ActionPerformed if (project.relocates==null) return; if (JOptionPane.showConfirmDialog(this, "Empty the memory location of removed area?", "Information", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE)==JOptionPane.OK_OPTION ) { Relocate relocate=project.relocates[project.relocates.length-1]; for (int i=relocate.toStart; i<=relocate.toEnd; i++) { project.memory[i].copy=0; } } if (project.relocates.length==1) { project.relocates=null; jTextAreaRelocate.setText(""); return; } Relocate[] relocate2; //=new Relocate[project.relocates.length-1]; relocate2=Arrays.copyOf(project.relocates, project.relocates.length-1); project.relocates=relocate2; jTextAreaRelocate.setText(getRelocateDesc()); }//GEN-LAST:event_jButtonPatchRemove1ActionPerformed private void jRadioButtonC128ZActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonC128ZActionPerformed project.targetType=TargetType.C128Z; }//GEN-LAST:event_jRadioButtonC128ZActionPerformed private void jButtonSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSaveActionPerformed if (project.inB!=null) { File file=new File(project.file); exportFileChooser.setSelectedFile(new File(file.getName())); int retValue=exportFileChooser.showOpenDialog(this); if (retValue==JFileChooser.APPROVE_OPTION) { file=exportFileChooser.getSelectedFile(); if (FileManager.instance.writeFile(file, project.inB)) JOptionPane.showMessageDialog(this, "Saving of file done"); else JOptionPane.showMessageDialog(this, "Error", "Error in saving file", JOptionPane.ERROR_MESSAGE); } } }//GEN-LAST:event_jButtonSaveActionPerformed private void jButtonPatchRemoveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonPatchRemoveActionPerformed if (project.patches==null) return; if (project.patches.length==1) { project.patches=null; jTextAreaPatch.setText(""); return; } Patch[] patches2=new Patch[project.patches.length-1]; patches2=Arrays.copyOf(project.patches, project.patches.length-1); project.patches=patches2; jTextAreaPatch.setText(getPatchDesc()); }//GEN-LAST:event_jButtonPatchRemoveActionPerformed private void jButtonPatchAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonPatchAddActionPerformed Patch patch=new Patch(); if (lastAddress==-1) patch.address=Integer.parseInt(JOptionPane.showInputDialog("Address (in hex) where to insert the new value"),16); else patch.address=Integer.parseInt(JOptionPane.showInputDialog(this, "Address (in hex) where to insert the new value", Integer.toHexString(lastAddress+1)),16); patch.value=Integer.parseInt(JOptionPane.showInputDialog("Value (in hex) to put into memory"),16); if (!patch.isValidRange()) { JOptionPane.showMessageDialog(this, "Invalid address or value", "Error", JOptionPane.ERROR_MESSAGE); return; } lastAddress=patch.address; int size=0; if (project.patches!=null) size=project.patches.length; // copy the value in the list Patch[] patches2=new Patch[size+1]; if (size>0) System.arraycopy(project.patches, 0, patches2, 0, project.patches.length); patches2[size]=patch; project.patches=patches2; jTextAreaPatch.setText(getPatchDesc()); }//GEN-LAST:event_jButtonPatchAddActionPerformed private void jButtonRelocateAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonRelocateAddActionPerformed Relocate relocate=new Relocate(); relocate.fromStart=Integer.parseInt(JOptionPane.showInputDialog("Starting address (in hex) from where to copy"),16); relocate.fromEnd=Integer.parseInt(JOptionPane.showInputDialog("Ending address (in hex) from where to copy"),16); relocate.toStart=Integer.parseInt(JOptionPane.showInputDialog("Starting address (in hex) to where to copy"), 16); relocate.toEnd=Integer.parseInt(JOptionPane.showInputDialog("Ending address (in hex) to where to copy"), 16); if (!relocate.isValidRange()) { JOptionPane.showMessageDialog(this, "Invalid range of addresses", "Error", JOptionPane.ERROR_MESSAGE); return; } int size=0; if (project.relocates!=null) size=project.relocates.length; // copy the value in the list Relocate[] relocates2=new Relocate[size+1]; if (size>0) System.arraycopy(project.relocates, 0, relocates2, 0, project.relocates.length); relocates2[size]=relocate; project.relocates=relocates2; jTextAreaRelocate.setText(getRelocateDesc()); }//GEN-LAST:event_jButtonRelocateAddActionPerformed private void jButtonEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEditActionPerformed jConstantDialog.setVisible(true); }//GEN-LAST:event_jButtonEditActionPerformed private void jSpinnerCRTStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerCRTStateChanged project.chip=(Integer)jSpinnerCRT.getValue(); }//GEN-LAST:event_jSpinnerCRTStateChanged private void jRadioButtonPlus4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonPlus4ActionPerformed project.targetType=TargetType.PLUS4; }//GEN-LAST:event_jRadioButtonPlus4ActionPerformed private void jRadioButtonVic20ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonVic20ActionPerformed project.targetType=TargetType.VIC20; }//GEN-LAST:event_jRadioButtonVic20ActionPerformed private void jRadioButtonC128ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonC128ActionPerformed project.targetType=TargetType.C128; }//GEN-LAST:event_jRadioButtonC128ActionPerformed private void jRadioButtonC1541ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonC1541ActionPerformed project.targetType=TargetType.C1541; }//GEN-LAST:event_jRadioButtonC1541ActionPerformed private void jRadioButtonC64ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonC64ActionPerformed project.targetType=TargetType.C64; }//GEN-LAST:event_jRadioButtonC64ActionPerformed private void jButtonInitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonInitActionPerformed // set as executable MemoryFlags memoryFlags=new MemoryFlags((String[])null); project.memoryFlags=memoryFlags.getMemoryState(0, 0x10000); }//GEN-LAST:event_jButtonInitActionPerformed private void jButtonAddNextActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAddNextActionPerformed if (project.memoryFlags==null) project.memoryFlags=new byte[0x10000]; int retValue=memFileChooser.showOpenDialog(this); if (retValue==JFileChooser.APPROVE_OPTION) { m_prefNode.put(LAST_DIR2_FILE, memFileChooser.getSelectedFile().getPath()); String[] file=new String[1]; file[0]=memFileChooser.getSelectedFile().getAbsolutePath(); MemoryFlags memoryFlags=new MemoryFlags(file); project.memoryFlags=memoryFlags.orMemory(memoryFlags.getMemoryState(0, 0x10000), project.memoryFlags); } }//GEN-LAST:event_jButtonAddNextActionPerformed private void jButtonClearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonClearActionPerformed // clear memory flags project.memoryFlags=new byte[0x10000]; }//GEN-LAST:event_jButtonClearActionPerformed private void jButtonSelectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSelectActionPerformed int retValue=fileChooser.showOpenDialog(this); if (retValue==JFileChooser.APPROVE_OPTION) { project.file=fileChooser.getSelectedFile().getAbsolutePath(); jTextFieldInputFile.setText(project.file); m_prefNode.put(LAST_DIR_FILE, fileChooser.getSelectedFile().getPath()); // go to read the file try { project.setData(FileManager.instance.readFile(project.file), project.file.endsWith("bin")); jTextAreaDescr.setText(project.description); jRadioButtonC128Z.setEnabled(true); switch (project.fileType) { case CRT: jRadioButtonCRT.setSelected(true); jSpinnerCRT.setEnabled(true); jSpinnerAddr.setEnabled(false); project.targetType=TargetType.C64; jRadioButtonC64.setSelected(true); jRadioButtonC64.setEnabled(true); jRadioButtonC1541.setEnabled(true); jRadioButtonC128.setEnabled(true); jRadioButtonVic20.setEnabled(true); jRadioButtonPlus4.setEnabled(true); jRadioButtonOdyssey.setEnabled(false); break; case SID: jRadioButtonSID.setSelected(true); jSpinnerCRT.setEnabled(false); jSpinnerAddr.setEnabled(false); project.targetType=TargetType.C64; jRadioButtonC64.setSelected(true); jRadioButtonC64.setEnabled(true); jRadioButtonC1541.setEnabled(false); jRadioButtonC128.setEnabled(false); jRadioButtonVic20.setEnabled(false); jRadioButtonPlus4.setEnabled(false); jRadioButtonC128Z.setEnabled(false); jRadioButtonOdyssey.setEnabled(false); break; case NSF: // we did not have jet a NES target machine jRadioButtonNSF.setSelected(true); jSpinnerCRT.setEnabled(false); jSpinnerAddr.setEnabled(false); jRadioButtonC64.setSelected(false); project.targetType=TargetType.C64; jRadioButtonC1541.setEnabled(false); jRadioButtonC128.setEnabled(false); jRadioButtonVic20.setEnabled(false); jRadioButtonPlus4.setEnabled(false); jRadioButtonC128Z.setEnabled(false); jRadioButtonAtari.setEnabled(false); jRadioButtonOdyssey.setEnabled(false); break; case SAP: jRadioButtonSAP.setSelected(true); jSpinnerCRT.setEnabled(false); jSpinnerAddr.setEnabled(false); project.targetType=TargetType.ATARI; jRadioButtonAtari.setSelected(true); jRadioButtonAtari.setEnabled(true); jRadioButtonC64.setEnabled(false); jRadioButtonC1541.setEnabled(false); jRadioButtonC128.setEnabled(false); jRadioButtonVic20.setEnabled(false); jRadioButtonPlus4.setEnabled(false); jRadioButtonC128Z.setEnabled(false); jRadioButtonOdyssey.setEnabled(false); break; case MUS: jRadioButtonMUS.setSelected(true); jSpinnerCRT.setEnabled(false); jSpinnerAddr.setEnabled(false); project.targetType=TargetType.C64; jRadioButtonC64.setEnabled(false); jRadioButtonC1541.setEnabled(false); jRadioButtonC128.setEnabled(false); jRadioButtonVic20.setEnabled(false); jRadioButtonPlus4.setEnabled(false); jRadioButtonAtari.setEnabled(false); jRadioButtonOdyssey.setEnabled(false); break; case PRG: jRadioButtonPRG.setSelected(true); jSpinnerCRT.setEnabled(false); jSpinnerAddr.setEnabled(false); project.targetType=TargetType.C64; jRadioButtonC64.setEnabled(true); jRadioButtonC1541.setEnabled(true); jRadioButtonC128.setEnabled(true); jRadioButtonVic20.setEnabled(true); jRadioButtonPlus4.setEnabled(true); jRadioButtonAtari.setEnabled(false); jRadioButtonOdyssey.setEnabled(true); break; case MPR: jRadioButtonMPR.setSelected(true); jSpinnerCRT.setEnabled(false); jSpinnerAddr.setEnabled(false); project.targetType=TargetType.C64; jRadioButtonC64.setEnabled(true); jRadioButtonC1541.setEnabled(true); jRadioButtonC128.setEnabled(true); jRadioButtonVic20.setEnabled(true); jRadioButtonPlus4.setEnabled(true); jRadioButtonAtari.setEnabled(false); jRadioButtonOdyssey.setEnabled(true); break; case AY: jRadioButtonAY.setSelected(true); jSpinnerCRT.setEnabled(false); jSpinnerAddr.setEnabled(false); project.targetType=TargetType.C128Z; jRadioButtonC64.setEnabled(true); jRadioButtonC1541.setEnabled(true); jRadioButtonC128.setEnabled(true); jRadioButtonVic20.setEnabled(true); jRadioButtonPlus4.setEnabled(true); jRadioButtonAtari.setEnabled(false); jRadioButtonOdyssey.setEnabled(true); break; case VSF: jRadioButtonVSF.setSelected(true); jSpinnerCRT.setEnabled(false); jSpinnerAddr.setEnabled(false); project.targetType=TargetType.C64; jRadioButtonC64.setEnabled(true); jRadioButtonC1541.setEnabled(true); jRadioButtonC128.setEnabled(true); jRadioButtonVic20.setEnabled(true); jRadioButtonPlus4.setEnabled(true); jRadioButtonOdyssey.setEnabled(true); jRadioButtonAtari.setEnabled(false); break; case BIN: jRadioButtonBIN.setSelected(true); jSpinnerCRT.setEnabled(false); project.targetType=TargetType.ODYSSEY; jRadioButtonOdyssey.setSelected(true); jRadioButtonC64.setEnabled(true); jRadioButtonC1541.setEnabled(true); jRadioButtonC128.setEnabled(true); jRadioButtonVic20.setEnabled(true); jRadioButtonPlus4.setEnabled(true); jRadioButtonAtari.setEnabled(true); jRadioButtonOdyssey.setEnabled(true); jSpinnerAddr.setEnabled(true); break; case UND: jRadioButtonSID.setSelected(false); jRadioButtonMUS.setSelected(false); jRadioButtonPRG.setSelected(false); jRadioButtonMPR.setSelected(false); jRadioButtonC64.setEnabled(true); project.targetType=TargetType.C64; jRadioButtonC1541.setEnabled(true); jRadioButtonC128.setEnabled(true); jRadioButtonVic20.setEnabled(true); jRadioButtonPlus4.setEnabled(true); jSpinnerCRT.setEnabled(false); jSpinnerAddr.setEnabled(false); jRadioButtonAtari.setEnabled(true); jRadioButtonOdyssey.setEnabled(true); break; } } catch (FileNotFoundException e) { JOptionPane.showMessageDialog(this, "File not found.", "Error", JOptionPane.ERROR_MESSAGE); } catch(IOException e) { JOptionPane.showMessageDialog(this, "Error reading the file.", "Error", JOptionPane.ERROR_MESSAGE); } project.fileType=project.fileType.getFileType(project.inB, project.file.endsWith("bin")); jTextAreaRelocate.setText(getRelocateDesc()); } }//GEN-LAST:event_jButtonSelectActionPerformed private void jRadioButtonAtariActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonAtariActionPerformed project.targetType=TargetType.ATARI; }//GEN-LAST:event_jRadioButtonAtariActionPerformed private void jRadioButtonOdysseyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonOdysseyActionPerformed project.targetType=TargetType.ODYSSEY; }//GEN-LAST:event_jRadioButtonOdysseyActionPerformed private void jSpinnerAddrStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerAddrStateChanged project.binAddress=(Integer)jSpinnerAddr.getValue(); }//GEN-LAST:event_jSpinnerAddrStateChanged /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(JProjectDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(JProjectDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(JProjectDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(JProjectDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> //</editor-fold> /* Create and display the dialog */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { JProjectDialog dialog = new JProjectDialog(new javax.swing.JFrame(), true); dialog.addWindowListener(new java.awt.event.WindowAdapter() { @Override public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); } }); dialog.setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.ButtonGroup buttonGroupFileType; private javax.swing.ButtonGroup buttonGroupTarget; private javax.swing.JButton jButtonAddNext; private javax.swing.JButton jButtonClear; private javax.swing.JButton jButtonClose; private javax.swing.JButton jButtonEdit; private javax.swing.JButton jButtonInit; private javax.swing.JButton jButtonPatchAdd; private javax.swing.JButton jButtonPatchRemove; private javax.swing.JButton jButtonPatchRemove1; private javax.swing.JButton jButtonRelocateAdd; private javax.swing.JButton jButtonSave; private javax.swing.JButton jButtonSelect; private javax.swing.JLabel jLabel3; private javax.swing.JLabel jLabelConstant; private javax.swing.JLabel jLabelFileDes; private javax.swing.JLabel jLabelFileTarget; private javax.swing.JLabel jLabelFileType; private javax.swing.JLabel jLabelI8048; private javax.swing.JLabel jLabelInputFile; private javax.swing.JLabel jLabelM6502; private javax.swing.JLabel jLabelPatch; private javax.swing.JLabel jLabelProjectName; private javax.swing.JLabel jLabelRelocate; private javax.swing.JLabel jLabelSidLd; private javax.swing.JLabel jLabelZ80; private javax.swing.JPanel jPanelCenter; private javax.swing.JPanel jPanelDn; private javax.swing.JRadioButton jRadioButtonAY; private javax.swing.JRadioButton jRadioButtonAtari; private javax.swing.JRadioButton jRadioButtonBIN; private javax.swing.JRadioButton jRadioButtonC128; private javax.swing.JRadioButton jRadioButtonC128Z; private javax.swing.JRadioButton jRadioButtonC1541; private javax.swing.JRadioButton jRadioButtonC64; private javax.swing.JRadioButton jRadioButtonCRT; private javax.swing.JRadioButton jRadioButtonMPR; private javax.swing.JRadioButton jRadioButtonMUS; private javax.swing.JRadioButton jRadioButtonNSF; private javax.swing.JRadioButton jRadioButtonOdyssey; private javax.swing.JRadioButton jRadioButtonPRG; private javax.swing.JRadioButton jRadioButtonPlus4; private javax.swing.JRadioButton jRadioButtonSAP; private javax.swing.JRadioButton jRadioButtonSID; private javax.swing.JRadioButton jRadioButtonVSF; private javax.swing.JRadioButton jRadioButtonVic20; private javax.swing.JScrollPane jScrollPaneDescr; private javax.swing.JScrollPane jScrollPaneRelocate; private javax.swing.JScrollPane jScrollPaneRelocate1; private javax.swing.JSpinner jSpinnerAddr; private javax.swing.JSpinner jSpinnerCRT; private javax.swing.JTextArea jTextAreaDescr; private javax.swing.JTextArea jTextAreaPatch; private javax.swing.JTextArea jTextAreaRelocate; private javax.swing.JTextField jTextFieldInputFile; private javax.swing.JTextField jTextFieldProjectName; // End of variables declaration//GEN-END:variables }
68,139
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
JTass64Panel.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/JTass64Panel.java
/** * @(#)JTass64Panel 2022/05/03 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing; import sw_emulator.software.Assembler; import sw_emulator.swing.main.Option; /** * A panel for 64Tass assembler option * * @author ice */ public class JTass64Panel extends javax.swing.JPanel { /** Option file to use */ Option option; /** * Creates new form JTass64Panel */ public JTass64Panel() { initComponents(); } /** * Set up the panel with the option * * @param option the option to use */ public void setUp(Option option) { this.option=option; } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroupTass64Starting = new javax.swing.ButtonGroup(); buttonGroupTass64Origin = new javax.swing.ButtonGroup(); buttonGroupTass64Comment = new javax.swing.ButtonGroup(); buttonGroupTass64BlockComment = new javax.swing.ButtonGroup(); buttonGroupTass64Label = new javax.swing.ButtonGroup(); buttonGroupTass64Byte = new javax.swing.ButtonGroup(); buttonGroupTass64Word = new javax.swing.ButtonGroup(); buttonGroupTass64MonoSprite = new javax.swing.ButtonGroup(); buttonGroupTass64MultiSprite = new javax.swing.ButtonGroup(); buttonGroupTass64Tribyte = new javax.swing.ButtonGroup(); buttonGroupTass64WordSwapped = new javax.swing.ButtonGroup(); buttonGroupTass64WaordSwapped = new javax.swing.ButtonGroup(); buttonGroupTass64Text = new javax.swing.ButtonGroup(); buttonGroupTass64Long = new javax.swing.ButtonGroup(); buttonGroupTass64NumText = new javax.swing.ButtonGroup(); buttonGroupTass64ZeroText = new javax.swing.ButtonGroup(); buttonGroupTass64Address = new javax.swing.ButtonGroup(); buttonGroupTass64StackWord = new javax.swing.ButtonGroup(); buttonGroupTass64HighText = new javax.swing.ButtonGroup(); buttonGroupTass64ShiftText = new javax.swing.ButtonGroup(); buttonGroupTass64ScreenCode = new javax.swing.ButtonGroup(); buttonGroupTass64PetasciiText = new javax.swing.ButtonGroup(); jLabelTass64StartingDeclaration = new javax.swing.JLabel(); jRadioButtonTass64DotCpuAStarting = new javax.swing.JRadioButton(); jScrollPaneDasmTass64DotCpuAStarting = new javax.swing.JScrollPane(); jTextPaneTass64DotCpuAStarting = new javax.swing.JTextPane(); jLabelTass64OriginDeclaration = new javax.swing.JLabel(); jRadioButtonTass64AsterixOrigin = new javax.swing.JRadioButton(); jScrollPaneTass64ASterixOrigin = new javax.swing.JScrollPane(); jTextPaneTass64AsterixOrigin = new javax.swing.JTextPane(); jLabelTass64CommentDeclaration = new javax.swing.JLabel(); jRadioButtonTass64SemicolonComment = new javax.swing.JRadioButton(); jScrollPaneTass64SemicolonComment = new javax.swing.JScrollPane(); jTextPaneTass64SemicolonComment = new javax.swing.JTextPane(); jLabelTass64BlockCommentDeclaration = new javax.swing.JLabel(); jRadioButtonTass64SemicolonBlockComment = new javax.swing.JRadioButton(); jScrollPaneTass64SemicolonBlockComment = new javax.swing.JScrollPane(); jTextPaneTass64SemicolonBlockComment = new javax.swing.JTextPane(); jRadioButtontass64DotIfFiBlockComment = new javax.swing.JRadioButton(); jScrollPaneTass64DotIfFiBlockComment = new javax.swing.JScrollPane(); jTextPaneTass664DotIfFiBlockComment1 = new javax.swing.JTextPane(); jRadioButtonTass64DotCommentBlockComment = new javax.swing.JRadioButton(); jScrollPaneTass64DotComment = new javax.swing.JScrollPane(); jTextPaneTass64DotCommentBlockComment = new javax.swing.JTextPane(); jLabelTass64LabelDeclaration = new javax.swing.JLabel(); jRadioButtonTass64LabelNameColon = new javax.swing.JRadioButton(); jScrollPaneTass64LabelName = new javax.swing.JScrollPane(); jTextPaneTass64LabelNameColon = new javax.swing.JTextPane(); jLabelTass64WordDeclaration = new javax.swing.JLabel(); jLabelTass64ByteDeclaration = new javax.swing.JLabel(); jRadioButtonTass64DotByte = new javax.swing.JRadioButton(); jRadioButtonTass64DotWord = new javax.swing.JRadioButton(); jScrollPaneTass64DotWord = new javax.swing.JScrollPane(); jTextPaneTass64DotWord = new javax.swing.JTextPane(); jScrollPaneTass64DotByte = new javax.swing.JScrollPane(); jTextPaneTass64DotByte = new javax.swing.JTextPane(); jRadioButtonTass64DotCharByte = new javax.swing.JRadioButton(); jRadioButtonTass64DotSintWord = new javax.swing.JRadioButton(); jScrollPaneTass64DotSintWord = new javax.swing.JScrollPane(); jTextPaneTass64DotSintWord = new javax.swing.JTextPane(); jScrollPaneTass64DotCharByte = new javax.swing.JScrollPane(); jTextPaneTass64DotCharByte = new javax.swing.JTextPane(); jLabelTass64MonoSpriteDeclaration = new javax.swing.JLabel(); jLabelTass64MultiSpriteDeclaration = new javax.swing.JLabel(); jRadioButtonTass64ByteHexMonoSprite = new javax.swing.JRadioButton(); jRadioButtonTass64ByteHexMultiSprite = new javax.swing.JRadioButton(); jScrollPaneTass64ByteHexMultiSprite = new javax.swing.JScrollPane(); TmpxPaneTass64ByteHexMultiSprite = new javax.swing.JTextPane(); jScrollPaneTass64ByteHexMonoSprite = new javax.swing.JScrollPane(); jTextPaneTass64ByteHexMonoSprite = new javax.swing.JTextPane(); jRadioButtonTass64ByteBinMonoSprite = new javax.swing.JRadioButton(); jRadioButtonTass64ByteBinMultiSprite = new javax.swing.JRadioButton(); jScrollPaneTass64ByteBinMultiSprite = new javax.swing.JScrollPane(); jTextPaneTass64ByteBinMultiSprite = new javax.swing.JTextPane(); jScrollPaneTass64ByteBinMonoSprite = new javax.swing.JScrollPane(); jTextPaneTass64ByteBinMonoSprite = new javax.swing.JTextPane(); jRadioButtonTass64MacroHexMonoSprite = new javax.swing.JRadioButton(); jRadioButtonTass64MacroHexMultiSprite = new javax.swing.JRadioButton(); jScrollPaneTass64MacroHexMultiSprite = new javax.swing.JScrollPane(); jTextPaneTass64MacroHexMultiSprite = new javax.swing.JTextPane(); jScrollPaneTass64MacroHexMonoSprite = new javax.swing.JScrollPane(); jTextPaneTass64MacroHexMonoSprite = new javax.swing.JTextPane(); jRadioButtonTass64MacroBinMonoSprite = new javax.swing.JRadioButton(); jRadioButtonTass64MacroBinMultiSprite = new javax.swing.JRadioButton(); jScrollPaneTass64MacroBinMultiSprite = new javax.swing.JScrollPane(); jTextPaneTass64MacroBinMultiSprite = new javax.swing.JTextPane(); jScrollPaneTass64MacroBinMonoSprite = new javax.swing.JScrollPane(); jTextPaneTass64MacroBinMonoSprite = new javax.swing.JTextPane(); jLabelTass64TribyteDeclaration = new javax.swing.JLabel(); jRadioButtonTass64DotLongTribyte = new javax.swing.JRadioButton(); jScrollPaneTass64DotLongTribyte = new javax.swing.JScrollPane(); jTextPaneTass64DotLongTribyte = new javax.swing.JTextPane(); jRadioButtonTass64DotLintTribyte = new javax.swing.JRadioButton(); jScrollPaneTass64DotLintTribyte = new javax.swing.JScrollPane(); jTextPaneTass64DotLintTribyte = new javax.swing.JTextPane(); jLabelTass64LongDeclaration = new javax.swing.JLabel(); jRadioButtonTass64DotDwordLong = new javax.swing.JRadioButton(); jScrollPaneTass64DotDwordLong = new javax.swing.JScrollPane(); jTextPaneTass64DotDwordLong = new javax.swing.JTextPane(); jRadioButtonTass64DotDlintLong = new javax.swing.JRadioButton(); jScrollPaneTass64DotDlintLong = new javax.swing.JScrollPane(); jTextPaneTass64DotDlintLong = new javax.swing.JTextPane(); jLabelTass65WordSwappedDeclaration = new javax.swing.JLabel(); jRadioButtonTass64MacroWordSwapped = new javax.swing.JRadioButton(); jScrollPaneTass64MacroWordSwapped = new javax.swing.JScrollPane(); jTextPaneTass64MacroWordSwapped = new javax.swing.JTextPane(); jLabelTass65TextDeclaration = new javax.swing.JLabel(); jRadioButtonTass64DotText = new javax.swing.JRadioButton(); jScrollPaneTass64DotText = new javax.swing.JScrollPane(); jTextPaneTass64DotText = new javax.swing.JTextPane(); jLabelTass64NumTextDeclaration = new javax.swing.JLabel(); jRadioButtonTass64DotPTextNumText = new javax.swing.JRadioButton(); jScrollPaneTass64DotPTextNumText = new javax.swing.JScrollPane(); jTextPaneTass64DotPTextNumText = new javax.swing.JTextPane(); jRadioButtonTass64DotTextPNumText = new javax.swing.JRadioButton(); jScrollPaneTass64DotTextPNumChar = new javax.swing.JScrollPane(); jTextPaneTass64DotTextPNumChar = new javax.swing.JTextPane(); jLabelTass64ZeroTextDeclaration = new javax.swing.JLabel(); jRadioButtonTass64DotNullZeroText = new javax.swing.JRadioButton(); jScrollPaneTass64DotNullZeroText = new javax.swing.JScrollPane(); jTextPaneTass64DotNullZeroText = new javax.swing.JTextPane(); jRadioButtonTass64DotTextNZeroText = new javax.swing.JRadioButton(); jScrollPaneTass64DotTextNZeroText = new javax.swing.JScrollPane(); jTextPaneTass64DotTextNZeroText = new javax.swing.JTextPane(); jLabelTass64AddressDeclaration = new javax.swing.JLabel(); jRadioButtonTass64DotAddrAddress = new javax.swing.JRadioButton(); jScrollPaneTass64DotAddrAddress = new javax.swing.JScrollPane(); jTextPaneTass64DotAddrAddress = new javax.swing.JTextPane(); jLabelTass64StackWordDeclaration = new javax.swing.JLabel(); jRadioButtonTass64DotRtaStackWord = new javax.swing.JRadioButton(); jScrollPaneTass64DotRtaStackWord = new javax.swing.JScrollPane(); jTextPaneTass64DotRtaStackWord = new javax.swing.JTextPane(); jLabelTass64HighTextDeclaration = new javax.swing.JLabel(); jRadioButtonTass64DotShiftHighText = new javax.swing.JRadioButton(); jScrollPaneTass64DotShiftHighText = new javax.swing.JScrollPane(); jTextPaneTass64DotShiftHighText = new javax.swing.JTextPane(); jRadioButtonTass64DotTextSHighText = new javax.swing.JRadioButton(); jScrollPaneTass64DotTextSHighText = new javax.swing.JScrollPane(); jTextPaneTass64DotTextSHighText = new javax.swing.JTextPane(); jLabelTass64ShiftTextDeclaration = new javax.swing.JLabel(); jRadioButtonTass64DotShiftlShiftText = new javax.swing.JRadioButton(); jScrollPaneTass64DotShiftlShiftText = new javax.swing.JScrollPane(); jTextPaneTass64DotShiftlShiftText = new javax.swing.JTextPane(); jRadioButtonTass64DotTextLShiftText = new javax.swing.JRadioButton(); jScrollPaneTass64DotTextLShiftText = new javax.swing.JScrollPane(); jTextPaneTass64DotTextLShiftText = new javax.swing.JTextPane(); jLabelTass65ScreenTextDeclaration = new javax.swing.JLabel(); jRadioButtonTass64DotTextScreenText = new javax.swing.JRadioButton(); jScrollPaneTass64DotTextScreenText = new javax.swing.JScrollPane(); jTextPaneTass64DotTextScreenText = new javax.swing.JTextPane(); jLabelTass65PetasciiTextDeclaration = new javax.swing.JLabel(); jRadioButtonTass64DotTextPetasciiText = new javax.swing.JRadioButton(); jScrollPaneTass64DotTextPetasciiText = new javax.swing.JScrollPane(); jTextPaneTass64DotTextPetasciiText = new javax.swing.JTextPane(); jLabelTass64StartingDeclaration.setText("Starting:"); buttonGroupTass64Starting.add(jRadioButtonTass64DotCpuAStarting); jRadioButtonTass64DotCpuAStarting.setSelected(true); jRadioButtonTass64DotCpuAStarting.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotCpuAStartingItemStateChanged(evt); } }); jScrollPaneDasmTass64DotCpuAStarting.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmTass64DotCpuAStarting.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotCpuAStarting.setEditable(false); jTextPaneTass64DotCpuAStarting.setContentType("text/html"); // NOI18N jTextPaneTass64DotCpuAStarting.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>.cpu</b> \"6502\"\n </p>\n </body>\n</html>\n"); jScrollPaneDasmTass64DotCpuAStarting.setViewportView(jTextPaneTass64DotCpuAStarting); jLabelTass64OriginDeclaration.setText("Origin:"); buttonGroupTass64Origin.add(jRadioButtonTass64AsterixOrigin); jRadioButtonTass64AsterixOrigin.setSelected(true); jRadioButtonTass64AsterixOrigin.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64AsterixOriginItemStateChanged(evt); } }); jScrollPaneTass64ASterixOrigin.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64ASterixOrigin.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64AsterixOrigin.setEditable(false); jTextPaneTass64AsterixOrigin.setContentType("text/html"); // NOI18N jTextPaneTass64AsterixOrigin.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>*=</b>$xxyy\n </p>\n </body>\n</html>\n"); jScrollPaneTass64ASterixOrigin.setViewportView(jTextPaneTass64AsterixOrigin); jLabelTass64CommentDeclaration.setText("Comment:"); buttonGroupTass64Comment.add(jRadioButtonTass64SemicolonComment); jRadioButtonTass64SemicolonComment.setSelected(true); jRadioButtonTass64SemicolonComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64SemicolonCommentItemStateChanged(evt); } }); jScrollPaneTass64SemicolonComment.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64SemicolonComment.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64SemicolonComment.setEditable(false); jTextPaneTass64SemicolonComment.setContentType("text/html"); // NOI18N jTextPaneTass64SemicolonComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>;</b> xxx\n </p>\n </body>\n</html>\n"); jScrollPaneTass64SemicolonComment.setViewportView(jTextPaneTass64SemicolonComment); jLabelTass64BlockCommentDeclaration.setText("Block Comment:"); buttonGroupTass64BlockComment.add(jRadioButtonTass64SemicolonBlockComment); jRadioButtonTass64SemicolonBlockComment.setSelected(true); jRadioButtonTass64SemicolonBlockComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64SemicolonBlockCommentItemStateChanged(evt); } }); jScrollPaneTass64SemicolonBlockComment.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64SemicolonBlockComment.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64SemicolonBlockComment.setEditable(false); jTextPaneTass64SemicolonBlockComment.setContentType("text/html"); // NOI18N jTextPaneTass64SemicolonBlockComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>;</b> xxx\n </p>\n </body>\n</html>\n"); jScrollPaneTass64SemicolonBlockComment.setViewportView(jTextPaneTass64SemicolonBlockComment); buttonGroupTass64BlockComment.add(jRadioButtontass64DotIfFiBlockComment); jRadioButtontass64DotIfFiBlockComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtontass64DotIfFiBlockCommentItemStateChanged(evt); } }); jScrollPaneTass64DotIfFiBlockComment.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotIfFiBlockComment.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass664DotIfFiBlockComment1.setEditable(false); jTextPaneTass664DotIfFiBlockComment1.setContentType("text/html"); // NOI18N jTextPaneTass664DotIfFiBlockComment1.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>.if 0</b> xxx <b'>.fi</b>\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotIfFiBlockComment.setViewportView(jTextPaneTass664DotIfFiBlockComment1); buttonGroupTass64BlockComment.add(jRadioButtonTass64DotCommentBlockComment); jRadioButtonTass64DotCommentBlockComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotCommentBlockCommentItemStateChanged(evt); } }); jScrollPaneTass64DotComment.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotComment.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotCommentBlockComment.setEditable(false); jTextPaneTass64DotCommentBlockComment.setContentType("text/html"); // NOI18N jTextPaneTass64DotCommentBlockComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>.comment</b> xxx <b'>.endc</b>\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotComment.setViewportView(jTextPaneTass64DotCommentBlockComment); jLabelTass64LabelDeclaration.setText("Label:"); buttonGroupTass64Label.add(jRadioButtonTass64LabelNameColon); jRadioButtonTass64LabelNameColon.setSelected(true); jRadioButtonTass64LabelNameColon.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64LabelNameColonItemStateChanged(evt); } }); jScrollPaneTass64LabelName.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64LabelName.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64LabelNameColon.setEditable(false); jTextPaneTass64LabelNameColon.setContentType("text/html"); // NOI18N jTextPaneTass64LabelNameColon.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <font color='black'>zzzz</font><b>:</b>\n </p\n </body>\n</html>\n"); jScrollPaneTass64LabelName.setViewportView(jTextPaneTass64LabelNameColon); jLabelTass64WordDeclaration.setText("Word:"); jLabelTass64ByteDeclaration.setText("Byte:"); buttonGroupTass64Byte.add(jRadioButtonTass64DotByte); jRadioButtonTass64DotByte.setSelected(true); jRadioButtonTass64DotByte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotByteItemStateChanged(evt); } }); buttonGroupTass64Word.add(jRadioButtonTass64DotWord); jRadioButtonTass64DotWord.setSelected(true); jRadioButtonTass64DotWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotWordItemStateChanged(evt); } }); jScrollPaneTass64DotWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotWord.setEditable(false); jTextPaneTass64DotWord.setContentType("text/html"); // NOI18N jTextPaneTass64DotWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .word</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotWord.setViewportView(jTextPaneTass64DotWord); jScrollPaneTass64DotByte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotByte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotByte.setEditable(false); jTextPaneTass64DotByte.setContentType("text/html"); // NOI18N jTextPaneTass64DotByte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byte</b> <font color='red'>$xx</font><br>\n <b> .byte</b> <font color='blue'>dd</font><br>\n <b> .byte</b> <font color='green'>%bb</font><br>\n <b> .byte</b> <font color='purple'>'c</font>\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotByte.setViewportView(jTextPaneTass64DotByte); buttonGroupTass64Byte.add(jRadioButtonTass64DotCharByte); jRadioButtonTass64DotCharByte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotCharByteItemStateChanged(evt); } }); buttonGroupTass64Word.add(jRadioButtonTass64DotSintWord); jRadioButtonTass64DotSintWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotSintWordItemStateChanged(evt); } }); jScrollPaneTass64DotSintWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotSintWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotSintWord.setEditable(false); jTextPaneTass64DotSintWord.setContentType("text/html"); // NOI18N jTextPaneTass64DotSintWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .sint</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotSintWord.setViewportView(jTextPaneTass64DotSintWord); jScrollPaneTass64DotCharByte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotCharByte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotCharByte.setEditable(false); jTextPaneTass64DotCharByte.setContentType("text/html"); // NOI18N jTextPaneTass64DotCharByte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .char</b> <font color='red'>$xx</font><br>\n <b> .char</b> <font color='blue'>dd</font><br>\n <b> .char</b> <font color='green'>%bb</font><br>\n <b> .char</b> <font color='purple'>'c</font>\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotCharByte.setViewportView(jTextPaneTass64DotCharByte); jLabelTass64MonoSpriteDeclaration.setText("Monocolor sprite:"); jLabelTass64MultiSpriteDeclaration.setText("Multicolor sprite:"); buttonGroupTass64MonoSprite.add(jRadioButtonTass64ByteHexMonoSprite); jRadioButtonTass64ByteHexMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64ByteHexMonoSpriteItemStateChanged(evt); } }); buttonGroupTass64MultiSprite.add(jRadioButtonTass64ByteHexMultiSprite); jRadioButtonTass64ByteHexMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64ByteHexMultiSpriteItemStateChanged(evt); } }); jScrollPaneTass64ByteHexMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64ByteHexMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); TmpxPaneTass64ByteHexMultiSprite.setEditable(false); TmpxPaneTass64ByteHexMultiSprite.setContentType("text/html"); // NOI18N TmpxPaneTass64ByteHexMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> [byte]</b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64ByteHexMultiSprite.setViewportView(TmpxPaneTass64ByteHexMultiSprite); jScrollPaneTass64ByteHexMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64ByteHexMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64ByteHexMonoSprite.setEditable(false); jTextPaneTass64ByteHexMonoSprite.setContentType("text/html"); // NOI18N jTextPaneTass64ByteHexMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> [byte]</b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64ByteHexMonoSprite.setViewportView(jTextPaneTass64ByteHexMonoSprite); buttonGroupTass64MonoSprite.add(jRadioButtonTass64ByteBinMonoSprite); jRadioButtonTass64ByteBinMonoSprite.setSelected(true); jRadioButtonTass64ByteBinMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64ByteBinMonoSpriteItemStateChanged(evt); } }); buttonGroupTass64MultiSprite.add(jRadioButtonTass64ByteBinMultiSprite); jRadioButtonTass64ByteBinMultiSprite.setSelected(true); jRadioButtonTass64ByteBinMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64ByteBinMultiSpriteItemStateChanged(evt); } }); jScrollPaneTass64ByteBinMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64ByteBinMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64ByteBinMultiSprite.setEditable(false); jTextPaneTass64ByteBinMultiSprite.setContentType("text/html"); // NOI18N jTextPaneTass64ByteBinMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[byte]</b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64ByteBinMultiSprite.setViewportView(jTextPaneTass64ByteBinMultiSprite); jScrollPaneTass64ByteBinMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64ByteBinMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64ByteBinMonoSprite.setEditable(false); jTextPaneTass64ByteBinMonoSprite.setContentType("text/html"); // NOI18N jTextPaneTass64ByteBinMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[byte]</b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64ByteBinMonoSprite.setViewportView(jTextPaneTass64ByteBinMonoSprite); buttonGroupTass64MonoSprite.add(jRadioButtonTass64MacroHexMonoSprite); jRadioButtonTass64MacroHexMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64MacroHexMonoSpriteItemStateChanged(evt); } }); buttonGroupTass64MultiSprite.add(jRadioButtonTass64MacroHexMultiSprite); jRadioButtonTass64MacroHexMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64MacroHexMultiSpriteItemStateChanged(evt); } }); jScrollPaneTass64MacroHexMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64MacroHexMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64MacroHexMultiSprite.setEditable(false); jTextPaneTass64MacroHexMultiSprite.setContentType("text/html"); // NOI18N jTextPaneTass64MacroHexMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64MacroHexMultiSprite.setViewportView(jTextPaneTass64MacroHexMultiSprite); jScrollPaneTass64MacroHexMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64MacroHexMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64MacroHexMonoSprite.setEditable(false); jTextPaneTass64MacroHexMonoSprite.setContentType("text/html"); // NOI18N jTextPaneTass64MacroHexMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64MacroHexMonoSprite.setViewportView(jTextPaneTass64MacroHexMonoSprite); buttonGroupTass64MonoSprite.add(jRadioButtonTass64MacroBinMonoSprite); jRadioButtonTass64MacroBinMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64MacroBinMonoSpriteItemStateChanged(evt); } }); buttonGroupTass64MultiSprite.add(jRadioButtonTass64MacroBinMultiSprite); jRadioButtonTass64MacroBinMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64MacroBinMultiSpriteItemStateChanged(evt); } }); jScrollPaneTass64MacroBinMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64MacroBinMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64MacroBinMultiSprite.setEditable(false); jTextPaneTass64MacroBinMultiSprite.setContentType("text/html"); // NOI18N jTextPaneTass64MacroBinMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64MacroBinMultiSprite.setViewportView(jTextPaneTass64MacroBinMultiSprite); jScrollPaneTass64MacroBinMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64MacroBinMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64MacroBinMonoSprite.setEditable(false); jTextPaneTass64MacroBinMonoSprite.setContentType("text/html"); // NOI18N jTextPaneTass64MacroBinMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64MacroBinMonoSprite.setViewportView(jTextPaneTass64MacroBinMonoSprite); jLabelTass64TribyteDeclaration.setText("Tribyte:"); buttonGroupTass64Tribyte.add(jRadioButtonTass64DotLongTribyte); jRadioButtonTass64DotLongTribyte.setSelected(true); jRadioButtonTass64DotLongTribyte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotLongTribyteItemStateChanged(evt); } }); jScrollPaneTass64DotLongTribyte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotLongTribyte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotLongTribyte.setEditable(false); jTextPaneTass64DotLongTribyte.setContentType("text/html"); // NOI18N jTextPaneTass64DotLongTribyte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .long</b> <font color='red'>$xxyyzz</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotLongTribyte.setViewportView(jTextPaneTass64DotLongTribyte); buttonGroupTass64Tribyte.add(jRadioButtonTass64DotLintTribyte); jRadioButtonTass64DotLintTribyte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotLintTribyteItemStateChanged(evt); } }); jScrollPaneTass64DotLintTribyte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotLintTribyte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotLintTribyte.setEditable(false); jTextPaneTass64DotLintTribyte.setContentType("text/html"); // NOI18N jTextPaneTass64DotLintTribyte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .lint</b> <font color='red'>$xxyyzz</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotLintTribyte.setViewportView(jTextPaneTass64DotLintTribyte); jLabelTass64LongDeclaration.setText("Long:"); buttonGroupTass64Long.add(jRadioButtonTass64DotDwordLong); jRadioButtonTass64DotDwordLong.setSelected(true); jRadioButtonTass64DotDwordLong.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotDwordLongItemStateChanged(evt); } }); jScrollPaneTass64DotDwordLong.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotDwordLong.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotDwordLong.setEditable(false); jTextPaneTass64DotDwordLong.setContentType("text/html"); // NOI18N jTextPaneTass64DotDwordLong.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .dword</b> <font color='red'>$xxyyzzkk</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotDwordLong.setViewportView(jTextPaneTass64DotDwordLong); buttonGroupTass64Long.add(jRadioButtonTass64DotDlintLong); jRadioButtonTass64DotDlintLong.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotDlintLongItemStateChanged(evt); } }); jScrollPaneTass64DotDlintLong.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotDlintLong.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotDlintLong.setEditable(false); jTextPaneTass64DotDlintLong.setContentType("text/html"); // NOI18N jTextPaneTass64DotDlintLong.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .dint</b> <font color='red'>$xxyyzzkk</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotDlintLong.setViewportView(jTextPaneTass64DotDlintLong); jLabelTass65WordSwappedDeclaration.setText("Word Swapped:"); buttonGroupTass64WordSwapped.add(jRadioButtonTass64MacroWordSwapped); jRadioButtonTass64MacroWordSwapped.setSelected(true); jRadioButtonTass64MacroWordSwapped.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64MacroWordSwappedItemStateChanged(evt); } }); jScrollPaneTass64MacroWordSwapped.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64MacroWordSwapped.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64MacroWordSwapped.setEditable(false); jTextPaneTass64MacroWordSwapped.setContentType("text/html"); // NOI18N jTextPaneTass64MacroWordSwapped.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac]</b> <font color='red'>$yyxx</font><br>\n </p>\n </body>\n</html>\n"); jScrollPaneTass64MacroWordSwapped.setViewportView(jTextPaneTass64MacroWordSwapped); jLabelTass65TextDeclaration.setText("Text:"); buttonGroupTass64Text.add(jRadioButtonTass64DotText); jRadioButtonTass64DotText.setSelected(true); jRadioButtonTass64DotText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotTextItemStateChanged(evt); } }); jScrollPaneTass64DotText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotText.setEditable(false); jTextPaneTass64DotText.setContentType("text/html"); // NOI18N jTextPaneTass64DotText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>.text</b> <font color='red'>\"xxx\"</font><br>\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotText.setViewportView(jTextPaneTass64DotText); jLabelTass64NumTextDeclaration.setText("Text #num chars:"); buttonGroupTass64NumText.add(jRadioButtonTass64DotPTextNumText); jRadioButtonTass64DotPTextNumText.setSelected(true); jRadioButtonTass64DotPTextNumText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotPTextNumTextItemStateChanged(evt); } }); jScrollPaneTass64DotPTextNumText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotPTextNumText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotPTextNumText.setEditable(false); jTextPaneTass64DotPTextNumText.setContentType("text/html"); // NOI18N jTextPaneTass64DotPTextNumText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .ptext</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotPTextNumText.setViewportView(jTextPaneTass64DotPTextNumText); buttonGroupTass64NumText.add(jRadioButtonTass64DotTextPNumText); jRadioButtonTass64DotTextPNumText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotTextPNumTextItemStateChanged(evt); } }); jScrollPaneTass64DotTextPNumChar.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotTextPNumChar.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotTextPNumChar.setEditable(false); jTextPaneTass64DotTextPNumChar.setContentType("text/html"); // NOI18N jTextPaneTass64DotTextPNumChar.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .text p</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotTextPNumChar.setViewportView(jTextPaneTass64DotTextPNumChar); jLabelTass64ZeroTextDeclaration.setText("Text 0 terminated:"); buttonGroupTass64ZeroText.add(jRadioButtonTass64DotNullZeroText); jRadioButtonTass64DotNullZeroText.setSelected(true); jRadioButtonTass64DotNullZeroText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotNullZeroTextItemStateChanged(evt); } }); jScrollPaneTass64DotNullZeroText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotNullZeroText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotNullZeroText.setEditable(false); jTextPaneTass64DotNullZeroText.setContentType("text/html"); // NOI18N jTextPaneTass64DotNullZeroText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .null</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotNullZeroText.setViewportView(jTextPaneTass64DotNullZeroText); buttonGroupTass64ZeroText.add(jRadioButtonTass64DotTextNZeroText); jRadioButtonTass64DotTextNZeroText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotTextNZeroTextItemStateChanged(evt); } }); jScrollPaneTass64DotTextNZeroText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotTextNZeroText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotTextNZeroText.setEditable(false); jTextPaneTass64DotTextNZeroText.setContentType("text/html"); // NOI18N jTextPaneTass64DotTextNZeroText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .text n</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotTextNZeroText.setViewportView(jTextPaneTass64DotTextNZeroText); jLabelTass64AddressDeclaration.setText("Address:"); buttonGroupTass64Address.add(jRadioButtonTass64DotAddrAddress); jRadioButtonTass64DotAddrAddress.setSelected(true); jRadioButtonTass64DotAddrAddress.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotAddrAddressItemStateChanged(evt); } }); jScrollPaneTass64DotAddrAddress.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotAddrAddress.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotAddrAddress.setEditable(false); jTextPaneTass64DotAddrAddress.setContentType("text/html"); // NOI18N jTextPaneTass64DotAddrAddress.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .addr</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotAddrAddress.setViewportView(jTextPaneTass64DotAddrAddress); jLabelTass64StackWordDeclaration.setText("Stack Word:"); buttonGroupTass64StackWord.add(jRadioButtonTass64DotRtaStackWord); jRadioButtonTass64DotRtaStackWord.setSelected(true); jRadioButtonTass64DotRtaStackWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotRtaStackWordItemStateChanged(evt); } }); jScrollPaneTass64DotRtaStackWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotRtaStackWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotRtaStackWord.setEditable(false); jTextPaneTass64DotRtaStackWord.setContentType("text/html"); // NOI18N jTextPaneTass64DotRtaStackWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .addr</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotRtaStackWord.setViewportView(jTextPaneTass64DotRtaStackWord); jLabelTass64HighTextDeclaration.setText("Text '1' terminated:"); buttonGroupTass64HighText.add(jRadioButtonTass64DotShiftHighText); jRadioButtonTass64DotShiftHighText.setSelected(true); jRadioButtonTass64DotShiftHighText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotShiftHighTextItemStateChanged(evt); } }); jScrollPaneTass64DotShiftHighText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotShiftHighText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotShiftHighText.setEditable(false); jTextPaneTass64DotShiftHighText.setContentType("text/html"); // NOI18N jTextPaneTass64DotShiftHighText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .shift</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotShiftHighText.setViewportView(jTextPaneTass64DotShiftHighText); buttonGroupTass64HighText.add(jRadioButtonTass64DotTextSHighText); jRadioButtonTass64DotTextSHighText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotTextSHighTextItemStateChanged(evt); } }); jScrollPaneTass64DotTextSHighText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotTextSHighText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotTextSHighText.setEditable(false); jTextPaneTass64DotTextSHighText.setContentType("text/html"); // NOI18N jTextPaneTass64DotTextSHighText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .text s</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotTextSHighText.setViewportView(jTextPaneTass64DotTextSHighText); jLabelTass64ShiftTextDeclaration.setText("Text left shifted:"); buttonGroupTass64ShiftText.add(jRadioButtonTass64DotShiftlShiftText); jRadioButtonTass64DotShiftlShiftText.setSelected(true); jRadioButtonTass64DotShiftlShiftText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotShiftlShiftTextItemStateChanged(evt); } }); jScrollPaneTass64DotShiftlShiftText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotShiftlShiftText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotShiftlShiftText.setEditable(false); jTextPaneTass64DotShiftlShiftText.setContentType("text/html"); // NOI18N jTextPaneTass64DotShiftlShiftText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .shiftl</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotShiftlShiftText.setViewportView(jTextPaneTass64DotShiftlShiftText); buttonGroupTass64ShiftText.add(jRadioButtonTass64DotTextLShiftText); jRadioButtonTass64DotTextLShiftText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotTextLShiftTextItemStateChanged(evt); } }); jScrollPaneTass64DotTextLShiftText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotTextLShiftText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotTextLShiftText.setEditable(false); jTextPaneTass64DotTextLShiftText.setContentType("text/html"); // NOI18N jTextPaneTass64DotTextLShiftText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .text l</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotTextLShiftText.setViewportView(jTextPaneTass64DotTextLShiftText); jLabelTass65ScreenTextDeclaration.setText("Text to screen code:"); buttonGroupTass64ScreenCode.add(jRadioButtonTass64DotTextScreenText); jRadioButtonTass64DotTextScreenText.setSelected(true); jRadioButtonTass64DotTextScreenText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotTextScreenTextItemStateChanged(evt); } }); jScrollPaneTass64DotTextScreenText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotTextScreenText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotTextScreenText.setEditable(false); jTextPaneTass64DotTextScreenText.setContentType("text/html"); // NOI18N jTextPaneTass64DotTextScreenText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>.text</b> <font color='red'>\"xxx\"</font><br>\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotTextScreenText.setViewportView(jTextPaneTass64DotTextScreenText); jLabelTass65PetasciiTextDeclaration.setText("Text to petascii code:"); buttonGroupTass64PetasciiText.add(jRadioButtonTass64DotTextPetasciiText); jRadioButtonTass64DotTextPetasciiText.setSelected(true); jRadioButtonTass64DotTextPetasciiText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTass64DotTextPetasciiTextItemStateChanged(evt); } }); jScrollPaneTass64DotTextPetasciiText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTass64DotTextPetasciiText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTass64DotTextPetasciiText.setEditable(false); jTextPaneTass64DotTextPetasciiText.setContentType("text/html"); // NOI18N jTextPaneTass64DotTextPetasciiText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>.text</b> <font color='red'>\"xxx\"</font><br>\n </p>\n </body>\n</html>\n"); jScrollPaneTass64DotTextPetasciiText.setViewportView(jTextPaneTass64DotTextPetasciiText); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelTass65PetasciiTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass64StartingDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass64OriginDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass64CommentDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass64BlockCommentDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass64LabelDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass64ByteDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass64WordDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass65WordSwappedDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass64TribyteDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass64LongDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass64AddressDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass64StackWordDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass64MonoSpriteDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass64MultiSpriteDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass65TextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass64NumTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass64ZeroTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass64HighTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass64ShiftTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTass65ScreenTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonTass64DotCpuAStarting) .addComponent(jRadioButtonTass64AsterixOrigin) .addComponent(jRadioButtonTass64SemicolonComment) .addComponent(jRadioButtonTass64SemicolonBlockComment) .addComponent(jRadioButtonTass64LabelNameColon) .addComponent(jRadioButtonTass64DotByte) .addComponent(jRadioButtonTass64DotWord) .addComponent(jRadioButtonTass64MacroWordSwapped) .addComponent(jRadioButtonTass64DotLongTribyte) .addComponent(jRadioButtonTass64DotDwordLong) .addComponent(jRadioButtonTass64DotAddrAddress) .addComponent(jRadioButtonTass64DotRtaStackWord) .addComponent(jRadioButtonTass64ByteHexMonoSprite) .addComponent(jRadioButtonTass64ByteHexMultiSprite) .addComponent(jRadioButtonTass64DotText) .addComponent(jRadioButtonTass64DotPTextNumText) .addComponent(jRadioButtonTass64DotNullZeroText) .addComponent(jRadioButtonTass64DotShiftHighText) .addComponent(jRadioButtonTass64DotShiftlShiftText) .addComponent(jRadioButtonTass64DotTextScreenText) .addComponent(jRadioButtonTass64DotTextPetasciiText)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneDasmTass64DotCpuAStarting) .addComponent(jScrollPaneTass64ASterixOrigin) .addComponent(jScrollPaneTass64SemicolonComment) .addComponent(jScrollPaneTass64SemicolonBlockComment) .addComponent(jScrollPaneTass64LabelName) .addComponent(jScrollPaneTass64DotByte) .addComponent(jScrollPaneTass64DotWord) .addComponent(jScrollPaneTass64MacroWordSwapped) .addComponent(jScrollPaneTass64DotLongTribyte, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE) .addComponent(jScrollPaneTass64DotDwordLong) .addComponent(jScrollPaneTass64DotAddrAddress) .addComponent(jScrollPaneTass64DotRtaStackWord) .addComponent(jScrollPaneTass64ByteHexMonoSprite) .addComponent(jScrollPaneTass64ByteHexMultiSprite) .addComponent(jScrollPaneTass64DotText) .addComponent(jScrollPaneTass64DotPTextNumText) .addComponent(jScrollPaneTass64DotNullZeroText) .addComponent(jScrollPaneTass64DotShiftHighText) .addComponent(jScrollPaneTass64DotShiftlShiftText) .addComponent(jScrollPaneTass64DotTextScreenText) .addComponent(jScrollPaneTass64DotTextPetasciiText)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonTass64DotCommentBlockComment) .addComponent(jRadioButtonTass64DotCharByte) .addComponent(jRadioButtonTass64DotSintWord) .addComponent(jRadioButtonTass64DotLintTribyte) .addComponent(jRadioButtonTass64DotDlintLong) .addComponent(jRadioButtonTass64ByteBinMonoSprite) .addComponent(jRadioButtonTass64ByteBinMultiSprite) .addComponent(jRadioButtonTass64DotTextPNumText) .addComponent(jRadioButtonTass64DotTextNZeroText) .addComponent(jRadioButtonTass64DotTextSHighText) .addComponent(jRadioButtonTass64DotTextLShiftText)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jScrollPaneTass64DotComment, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jRadioButtontass64DotIfFiBlockComment) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPaneTass64DotIfFiBlockComment, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPaneTass64DotTextLShiftText, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneTass64DotTextSHighText, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneTass64DotTextNZeroText, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneTass64DotTextPNumChar, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneTass64DotCharByte) .addComponent(jScrollPaneTass64DotSintWord, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneTass64DotLintTribyte, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneTass64DotDlintLong, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE) .addComponent(jScrollPaneTass64ByteBinMultiSprite, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneTass64ByteBinMonoSprite, javax.swing.GroupLayout.Alignment.LEADING)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonTass64MacroHexMonoSprite) .addComponent(jRadioButtonTass64MacroHexMultiSprite)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jScrollPaneTass64MacroHexMultiSprite, javax.swing.GroupLayout.DEFAULT_SIZE, 105, Short.MAX_VALUE) .addComponent(jScrollPaneTass64MacroHexMonoSprite)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonTass64MacroBinMonoSprite) .addComponent(jRadioButtonTass64MacroBinMultiSprite)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jScrollPaneTass64MacroBinMonoSprite) .addComponent(jScrollPaneTass64MacroBinMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(39, 39, 39)))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass64StartingDeclaration) .addComponent(jRadioButtonTass64DotCpuAStarting) .addComponent(jScrollPaneDasmTass64DotCpuAStarting, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass64OriginDeclaration) .addComponent(jRadioButtonTass64AsterixOrigin) .addComponent(jScrollPaneTass64ASterixOrigin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass64CommentDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64SemicolonComment) .addComponent(jScrollPaneTass64SemicolonComment, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(6, 6, 6) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass64BlockCommentDeclaration) .addComponent(jRadioButtonTass64SemicolonBlockComment) .addComponent(jScrollPaneTass64SemicolonBlockComment, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64DotCommentBlockComment) .addComponent(jScrollPaneTass64DotComment, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtontass64DotIfFiBlockComment) .addComponent(jScrollPaneTass64DotIfFiBlockComment, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass64LabelDeclaration) .addComponent(jRadioButtonTass64LabelNameColon) .addComponent(jScrollPaneTass64LabelName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(9, 9, 9) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass64ByteDeclaration) .addComponent(jRadioButtonTass64DotByte) .addComponent(jScrollPaneTass64DotByte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64DotCharByte) .addComponent(jScrollPaneTass64DotCharByte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass64WordDeclaration) .addComponent(jRadioButtonTass64DotWord) .addComponent(jScrollPaneTass64DotWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64DotSintWord) .addComponent(jScrollPaneTass64DotSintWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass65WordSwappedDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64MacroWordSwapped) .addComponent(jScrollPaneTass64MacroWordSwapped, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass64TribyteDeclaration) .addComponent(jRadioButtonTass64DotLongTribyte) .addComponent(jScrollPaneTass64DotLongTribyte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64DotLintTribyte) .addComponent(jScrollPaneTass64DotLintTribyte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass64LongDeclaration) .addComponent(jRadioButtonTass64DotDwordLong) .addComponent(jScrollPaneTass64DotDwordLong, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64DotDlintLong) .addComponent(jScrollPaneTass64DotDlintLong, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass64AddressDeclaration) .addComponent(jRadioButtonTass64DotAddrAddress) .addComponent(jScrollPaneTass64DotAddrAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass64StackWordDeclaration) .addComponent(jRadioButtonTass64DotRtaStackWord) .addComponent(jScrollPaneTass64DotRtaStackWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass64MonoSpriteDeclaration) .addComponent(jRadioButtonTass64ByteHexMonoSprite) .addComponent(jScrollPaneTass64ByteHexMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64ByteBinMonoSprite) .addComponent(jScrollPaneTass64ByteBinMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64MacroHexMonoSprite) .addComponent(jScrollPaneTass64MacroHexMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64MacroBinMonoSprite) .addComponent(jScrollPaneTass64MacroBinMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass64MultiSpriteDeclaration) .addComponent(jRadioButtonTass64ByteHexMultiSprite) .addComponent(jScrollPaneTass64ByteHexMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64ByteBinMultiSprite) .addComponent(jScrollPaneTass64ByteBinMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64MacroHexMultiSprite) .addComponent(jScrollPaneTass64MacroHexMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64MacroBinMultiSprite) .addComponent(jScrollPaneTass64MacroBinMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass65TextDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64DotText) .addComponent(jScrollPaneTass64DotText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass64NumTextDeclaration) .addComponent(jRadioButtonTass64DotPTextNumText) .addComponent(jScrollPaneTass64DotPTextNumText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64DotTextPNumText) .addComponent(jScrollPaneTass64DotTextPNumChar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass64ZeroTextDeclaration) .addComponent(jRadioButtonTass64DotNullZeroText) .addComponent(jScrollPaneTass64DotNullZeroText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64DotTextNZeroText) .addComponent(jScrollPaneTass64DotTextNZeroText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass64HighTextDeclaration) .addComponent(jRadioButtonTass64DotShiftHighText) .addComponent(jScrollPaneTass64DotShiftHighText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64DotTextSHighText) .addComponent(jScrollPaneTass64DotTextSHighText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass64ShiftTextDeclaration) .addComponent(jRadioButtonTass64DotShiftlShiftText) .addComponent(jScrollPaneTass64DotShiftlShiftText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64DotTextLShiftText) .addComponent(jScrollPaneTass64DotTextLShiftText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass65ScreenTextDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64DotTextScreenText) .addComponent(jScrollPaneTass64DotTextScreenText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTass65PetasciiTextDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTass64DotTextPetasciiText) .addComponent(jScrollPaneTass64DotTextPetasciiText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(36, Short.MAX_VALUE)) ); }// </editor-fold>//GEN-END:initComponents private void jRadioButtonTass64DotCpuAStartingItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotCpuAStartingItemStateChanged option.tass64Starting=Assembler.Starting.DOT_CPU_A; }//GEN-LAST:event_jRadioButtonTass64DotCpuAStartingItemStateChanged private void jRadioButtonTass64AsterixOriginItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64AsterixOriginItemStateChanged option.tass64Origin=Assembler.Origin.ASTERISK; }//GEN-LAST:event_jRadioButtonTass64AsterixOriginItemStateChanged private void jRadioButtonTass64SemicolonCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64SemicolonCommentItemStateChanged option.tass64Comment=Assembler.Comment.SEMICOLON; }//GEN-LAST:event_jRadioButtonTass64SemicolonCommentItemStateChanged private void jRadioButtonTass64SemicolonBlockCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64SemicolonBlockCommentItemStateChanged option.tass64BlockComment=Assembler.BlockComment.SEMICOLON; }//GEN-LAST:event_jRadioButtonTass64SemicolonBlockCommentItemStateChanged private void jRadioButtontass64DotIfFiBlockCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtontass64DotIfFiBlockCommentItemStateChanged option.tass64BlockComment=Assembler.BlockComment.DOT_IF_FI; }//GEN-LAST:event_jRadioButtontass64DotIfFiBlockCommentItemStateChanged private void jRadioButtonTass64DotCommentBlockCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotCommentBlockCommentItemStateChanged option.tass64BlockComment=Assembler.BlockComment.DOT_COMMENT; }//GEN-LAST:event_jRadioButtonTass64DotCommentBlockCommentItemStateChanged private void jRadioButtonTass64LabelNameColonItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64LabelNameColonItemStateChanged option.tass64Label=Assembler.Label.NAME_COLON; }//GEN-LAST:event_jRadioButtonTass64LabelNameColonItemStateChanged private void jRadioButtonTass64DotByteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotByteItemStateChanged option.tass64Byte=Assembler.Byte.DOT_BYTE; }//GEN-LAST:event_jRadioButtonTass64DotByteItemStateChanged private void jRadioButtonTass64DotWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotWordItemStateChanged option.tass64Word=Assembler.Word.DOT_WORD; }//GEN-LAST:event_jRadioButtonTass64DotWordItemStateChanged private void jRadioButtonTass64DotCharByteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotCharByteItemStateChanged option.tass64Byte=Assembler.Byte.DOT_CHAR; }//GEN-LAST:event_jRadioButtonTass64DotCharByteItemStateChanged private void jRadioButtonTass64DotSintWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotSintWordItemStateChanged option.tass64Word=Assembler.Word.DOT_SINT; }//GEN-LAST:event_jRadioButtonTass64DotSintWordItemStateChanged private void jRadioButtonTass64ByteHexMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64ByteHexMonoSpriteItemStateChanged option.tass64MonoSprite=Assembler.MonoSprite.BYTE_HEX; }//GEN-LAST:event_jRadioButtonTass64ByteHexMonoSpriteItemStateChanged private void jRadioButtonTass64ByteHexMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64ByteHexMultiSpriteItemStateChanged option.tass64MultiSprite=Assembler.MultiSprite.BYTE_HEX; }//GEN-LAST:event_jRadioButtonTass64ByteHexMultiSpriteItemStateChanged private void jRadioButtonTass64ByteBinMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64ByteBinMonoSpriteItemStateChanged option.tass64MonoSprite=Assembler.MonoSprite.BYTE_BIN; }//GEN-LAST:event_jRadioButtonTass64ByteBinMonoSpriteItemStateChanged private void jRadioButtonTass64ByteBinMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64ByteBinMultiSpriteItemStateChanged option.tass64MultiSprite=Assembler.MultiSprite.BYTE_BIN; }//GEN-LAST:event_jRadioButtonTass64ByteBinMultiSpriteItemStateChanged private void jRadioButtonTass64MacroHexMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64MacroHexMonoSpriteItemStateChanged option.tass64MonoSprite=Assembler.MonoSprite.MACRO4_HEX; }//GEN-LAST:event_jRadioButtonTass64MacroHexMonoSpriteItemStateChanged private void jRadioButtonTass64MacroHexMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64MacroHexMultiSpriteItemStateChanged option.tass64MultiSprite=Assembler.MultiSprite.MACRO4_HEX; }//GEN-LAST:event_jRadioButtonTass64MacroHexMultiSpriteItemStateChanged private void jRadioButtonTass64MacroBinMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64MacroBinMonoSpriteItemStateChanged option.tass64MonoSprite=Assembler.MonoSprite.MACRO4_BIN; }//GEN-LAST:event_jRadioButtonTass64MacroBinMonoSpriteItemStateChanged private void jRadioButtonTass64MacroBinMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64MacroBinMultiSpriteItemStateChanged option.tass64MultiSprite=Assembler.MultiSprite.MACRO4_BIN; }//GEN-LAST:event_jRadioButtonTass64MacroBinMultiSpriteItemStateChanged private void jRadioButtonTass64DotLongTribyteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotLongTribyteItemStateChanged option.tass64Tribyte=Assembler.Tribyte.DOT_LONG_TRIBYTE; }//GEN-LAST:event_jRadioButtonTass64DotLongTribyteItemStateChanged private void jRadioButtonTass64DotLintTribyteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotLintTribyteItemStateChanged option.tass64Tribyte=Assembler.Tribyte.DOT_LINT_TRIBYTE; }//GEN-LAST:event_jRadioButtonTass64DotLintTribyteItemStateChanged private void jRadioButtonTass64DotDwordLongItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotDwordLongItemStateChanged option.tass64Long=Assembler.Long.DOT_DWORD_LONG; }//GEN-LAST:event_jRadioButtonTass64DotDwordLongItemStateChanged private void jRadioButtonTass64DotDlintLongItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotDlintLongItemStateChanged option.tass64Long=Assembler.Long.DOT_DLINT_LONG; }//GEN-LAST:event_jRadioButtonTass64DotDlintLongItemStateChanged private void jRadioButtonTass64MacroWordSwappedItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64MacroWordSwappedItemStateChanged option.tass64WordSwapped=Assembler.WordSwapped.MACRO4_WORD_SWAPPED; }//GEN-LAST:event_jRadioButtonTass64MacroWordSwappedItemStateChanged private void jRadioButtonTass64DotTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotTextItemStateChanged option.tass64Text=Assembler.Text.DOT_TEXT; }//GEN-LAST:event_jRadioButtonTass64DotTextItemStateChanged private void jRadioButtonTass64DotPTextNumTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotPTextNumTextItemStateChanged option.tass64NumText=Assembler.NumText.DOT_PTEXT_NUMTEXT; }//GEN-LAST:event_jRadioButtonTass64DotPTextNumTextItemStateChanged private void jRadioButtonTass64DotTextPNumTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotTextPNumTextItemStateChanged option.tass64NumText=Assembler.NumText.DOT_TEXT_P_NUMTEXT; }//GEN-LAST:event_jRadioButtonTass64DotTextPNumTextItemStateChanged private void jRadioButtonTass64DotNullZeroTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotNullZeroTextItemStateChanged option.tass64ZeroText=Assembler.ZeroText.DOT_NULL_ZEROTEXT; }//GEN-LAST:event_jRadioButtonTass64DotNullZeroTextItemStateChanged private void jRadioButtonTass64DotTextNZeroTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotTextNZeroTextItemStateChanged option.tass64ZeroText=Assembler.ZeroText.DOT_TEXT_N_ZEROTEXT; }//GEN-LAST:event_jRadioButtonTass64DotTextNZeroTextItemStateChanged private void jRadioButtonTass64DotAddrAddressItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotAddrAddressItemStateChanged option.tass64Address=Assembler.Address.DOT_ADDR_ADDR; }//GEN-LAST:event_jRadioButtonTass64DotAddrAddressItemStateChanged private void jRadioButtonTass64DotRtaStackWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotRtaStackWordItemStateChanged option.tass64StackWord=Assembler.StackWord.DOT_RTA_STACKWORD; }//GEN-LAST:event_jRadioButtonTass64DotRtaStackWordItemStateChanged private void jRadioButtonTass64DotShiftHighTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotShiftHighTextItemStateChanged option.tass64HighText=Assembler.HighText.DOT_SHIFT_HIGHTEXT; }//GEN-LAST:event_jRadioButtonTass64DotShiftHighTextItemStateChanged private void jRadioButtonTass64DotTextSHighTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotTextSHighTextItemStateChanged option.tass64HighText=Assembler.HighText.DOT_TEXT_S_HIGHTEXT; }//GEN-LAST:event_jRadioButtonTass64DotTextSHighTextItemStateChanged private void jRadioButtonTass64DotShiftlShiftTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotShiftlShiftTextItemStateChanged option.tass64ShiftText=Assembler.ShiftText.DOT_SHIFTL_SHIFTTEXT; }//GEN-LAST:event_jRadioButtonTass64DotShiftlShiftTextItemStateChanged private void jRadioButtonTass64DotTextLShiftTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotTextLShiftTextItemStateChanged option.tass64ShiftText=Assembler.ShiftText.DOT_TEXT_L_SHIFTTEXT; }//GEN-LAST:event_jRadioButtonTass64DotTextLShiftTextItemStateChanged private void jRadioButtonTass64DotTextScreenTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotTextScreenTextItemStateChanged option.tass64ScreenText=Assembler.ScreenText.DOT_TEXT_SCREENTEXT; }//GEN-LAST:event_jRadioButtonTass64DotTextScreenTextItemStateChanged private void jRadioButtonTass64DotTextPetasciiTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTass64DotTextPetasciiTextItemStateChanged option.tass64PetasciiText=Assembler.PetasciiText.DOT_TEXT_PETASCIITEXT; }//GEN-LAST:event_jRadioButtonTass64DotTextPetasciiTextItemStateChanged // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JTextPane TmpxPaneTass64ByteHexMultiSprite; private javax.swing.ButtonGroup buttonGroupTass64Address; private javax.swing.ButtonGroup buttonGroupTass64BlockComment; private javax.swing.ButtonGroup buttonGroupTass64Byte; private javax.swing.ButtonGroup buttonGroupTass64Comment; private javax.swing.ButtonGroup buttonGroupTass64HighText; private javax.swing.ButtonGroup buttonGroupTass64Label; private javax.swing.ButtonGroup buttonGroupTass64Long; private javax.swing.ButtonGroup buttonGroupTass64MonoSprite; private javax.swing.ButtonGroup buttonGroupTass64MultiSprite; private javax.swing.ButtonGroup buttonGroupTass64NumText; private javax.swing.ButtonGroup buttonGroupTass64Origin; private javax.swing.ButtonGroup buttonGroupTass64PetasciiText; private javax.swing.ButtonGroup buttonGroupTass64ScreenCode; private javax.swing.ButtonGroup buttonGroupTass64ShiftText; private javax.swing.ButtonGroup buttonGroupTass64StackWord; private javax.swing.ButtonGroup buttonGroupTass64Starting; private javax.swing.ButtonGroup buttonGroupTass64Text; private javax.swing.ButtonGroup buttonGroupTass64Tribyte; private javax.swing.ButtonGroup buttonGroupTass64WaordSwapped; private javax.swing.ButtonGroup buttonGroupTass64Word; private javax.swing.ButtonGroup buttonGroupTass64WordSwapped; private javax.swing.ButtonGroup buttonGroupTass64ZeroText; private javax.swing.JLabel jLabelTass64AddressDeclaration; private javax.swing.JLabel jLabelTass64BlockCommentDeclaration; private javax.swing.JLabel jLabelTass64ByteDeclaration; private javax.swing.JLabel jLabelTass64CommentDeclaration; private javax.swing.JLabel jLabelTass64HighTextDeclaration; private javax.swing.JLabel jLabelTass64LabelDeclaration; private javax.swing.JLabel jLabelTass64LongDeclaration; private javax.swing.JLabel jLabelTass64MonoSpriteDeclaration; private javax.swing.JLabel jLabelTass64MultiSpriteDeclaration; private javax.swing.JLabel jLabelTass64NumTextDeclaration; private javax.swing.JLabel jLabelTass64OriginDeclaration; private javax.swing.JLabel jLabelTass64ShiftTextDeclaration; private javax.swing.JLabel jLabelTass64StackWordDeclaration; private javax.swing.JLabel jLabelTass64StartingDeclaration; private javax.swing.JLabel jLabelTass64TribyteDeclaration; private javax.swing.JLabel jLabelTass64WordDeclaration; private javax.swing.JLabel jLabelTass64ZeroTextDeclaration; private javax.swing.JLabel jLabelTass65PetasciiTextDeclaration; private javax.swing.JLabel jLabelTass65ScreenTextDeclaration; private javax.swing.JLabel jLabelTass65TextDeclaration; private javax.swing.JLabel jLabelTass65WordSwappedDeclaration; private javax.swing.JRadioButton jRadioButtonTass64AsterixOrigin; private javax.swing.JRadioButton jRadioButtonTass64ByteBinMonoSprite; private javax.swing.JRadioButton jRadioButtonTass64ByteBinMultiSprite; private javax.swing.JRadioButton jRadioButtonTass64ByteHexMonoSprite; private javax.swing.JRadioButton jRadioButtonTass64ByteHexMultiSprite; private javax.swing.JRadioButton jRadioButtonTass64DotAddrAddress; private javax.swing.JRadioButton jRadioButtonTass64DotByte; private javax.swing.JRadioButton jRadioButtonTass64DotCharByte; private javax.swing.JRadioButton jRadioButtonTass64DotCommentBlockComment; private javax.swing.JRadioButton jRadioButtonTass64DotCpuAStarting; private javax.swing.JRadioButton jRadioButtonTass64DotDlintLong; private javax.swing.JRadioButton jRadioButtonTass64DotDwordLong; private javax.swing.JRadioButton jRadioButtonTass64DotLintTribyte; private javax.swing.JRadioButton jRadioButtonTass64DotLongTribyte; private javax.swing.JRadioButton jRadioButtonTass64DotNullZeroText; private javax.swing.JRadioButton jRadioButtonTass64DotPTextNumText; private javax.swing.JRadioButton jRadioButtonTass64DotRtaStackWord; private javax.swing.JRadioButton jRadioButtonTass64DotShiftHighText; private javax.swing.JRadioButton jRadioButtonTass64DotShiftlShiftText; private javax.swing.JRadioButton jRadioButtonTass64DotSintWord; private javax.swing.JRadioButton jRadioButtonTass64DotText; private javax.swing.JRadioButton jRadioButtonTass64DotTextLShiftText; private javax.swing.JRadioButton jRadioButtonTass64DotTextNZeroText; private javax.swing.JRadioButton jRadioButtonTass64DotTextPNumText; private javax.swing.JRadioButton jRadioButtonTass64DotTextPetasciiText; private javax.swing.JRadioButton jRadioButtonTass64DotTextSHighText; private javax.swing.JRadioButton jRadioButtonTass64DotTextScreenText; private javax.swing.JRadioButton jRadioButtonTass64DotWord; private javax.swing.JRadioButton jRadioButtonTass64LabelNameColon; private javax.swing.JRadioButton jRadioButtonTass64MacroBinMonoSprite; private javax.swing.JRadioButton jRadioButtonTass64MacroBinMultiSprite; private javax.swing.JRadioButton jRadioButtonTass64MacroHexMonoSprite; private javax.swing.JRadioButton jRadioButtonTass64MacroHexMultiSprite; private javax.swing.JRadioButton jRadioButtonTass64MacroWordSwapped; private javax.swing.JRadioButton jRadioButtonTass64SemicolonBlockComment; private javax.swing.JRadioButton jRadioButtonTass64SemicolonComment; private javax.swing.JRadioButton jRadioButtontass64DotIfFiBlockComment; private javax.swing.JScrollPane jScrollPaneDasmTass64DotCpuAStarting; private javax.swing.JScrollPane jScrollPaneTass64ASterixOrigin; private javax.swing.JScrollPane jScrollPaneTass64ByteBinMonoSprite; private javax.swing.JScrollPane jScrollPaneTass64ByteBinMultiSprite; private javax.swing.JScrollPane jScrollPaneTass64ByteHexMonoSprite; private javax.swing.JScrollPane jScrollPaneTass64ByteHexMultiSprite; private javax.swing.JScrollPane jScrollPaneTass64DotAddrAddress; private javax.swing.JScrollPane jScrollPaneTass64DotByte; private javax.swing.JScrollPane jScrollPaneTass64DotCharByte; private javax.swing.JScrollPane jScrollPaneTass64DotComment; private javax.swing.JScrollPane jScrollPaneTass64DotDlintLong; private javax.swing.JScrollPane jScrollPaneTass64DotDwordLong; private javax.swing.JScrollPane jScrollPaneTass64DotIfFiBlockComment; private javax.swing.JScrollPane jScrollPaneTass64DotLintTribyte; private javax.swing.JScrollPane jScrollPaneTass64DotLongTribyte; private javax.swing.JScrollPane jScrollPaneTass64DotNullZeroText; private javax.swing.JScrollPane jScrollPaneTass64DotPTextNumText; private javax.swing.JScrollPane jScrollPaneTass64DotRtaStackWord; private javax.swing.JScrollPane jScrollPaneTass64DotShiftHighText; private javax.swing.JScrollPane jScrollPaneTass64DotShiftlShiftText; private javax.swing.JScrollPane jScrollPaneTass64DotSintWord; private javax.swing.JScrollPane jScrollPaneTass64DotText; private javax.swing.JScrollPane jScrollPaneTass64DotTextLShiftText; private javax.swing.JScrollPane jScrollPaneTass64DotTextNZeroText; private javax.swing.JScrollPane jScrollPaneTass64DotTextPNumChar; private javax.swing.JScrollPane jScrollPaneTass64DotTextPetasciiText; private javax.swing.JScrollPane jScrollPaneTass64DotTextSHighText; private javax.swing.JScrollPane jScrollPaneTass64DotTextScreenText; private javax.swing.JScrollPane jScrollPaneTass64DotWord; private javax.swing.JScrollPane jScrollPaneTass64LabelName; private javax.swing.JScrollPane jScrollPaneTass64MacroBinMonoSprite; private javax.swing.JScrollPane jScrollPaneTass64MacroBinMultiSprite; private javax.swing.JScrollPane jScrollPaneTass64MacroHexMonoSprite; private javax.swing.JScrollPane jScrollPaneTass64MacroHexMultiSprite; private javax.swing.JScrollPane jScrollPaneTass64MacroWordSwapped; private javax.swing.JScrollPane jScrollPaneTass64SemicolonBlockComment; private javax.swing.JScrollPane jScrollPaneTass64SemicolonComment; private javax.swing.JTextPane jTextPaneTass64AsterixOrigin; private javax.swing.JTextPane jTextPaneTass64ByteBinMonoSprite; private javax.swing.JTextPane jTextPaneTass64ByteBinMultiSprite; private javax.swing.JTextPane jTextPaneTass64ByteHexMonoSprite; private javax.swing.JTextPane jTextPaneTass64DotAddrAddress; private javax.swing.JTextPane jTextPaneTass64DotByte; private javax.swing.JTextPane jTextPaneTass64DotCharByte; private javax.swing.JTextPane jTextPaneTass64DotCommentBlockComment; private javax.swing.JTextPane jTextPaneTass64DotCpuAStarting; private javax.swing.JTextPane jTextPaneTass64DotDlintLong; private javax.swing.JTextPane jTextPaneTass64DotDwordLong; private javax.swing.JTextPane jTextPaneTass64DotLintTribyte; private javax.swing.JTextPane jTextPaneTass64DotLongTribyte; private javax.swing.JTextPane jTextPaneTass64DotNullZeroText; private javax.swing.JTextPane jTextPaneTass64DotPTextNumText; private javax.swing.JTextPane jTextPaneTass64DotRtaStackWord; private javax.swing.JTextPane jTextPaneTass64DotShiftHighText; private javax.swing.JTextPane jTextPaneTass64DotShiftlShiftText; private javax.swing.JTextPane jTextPaneTass64DotSintWord; private javax.swing.JTextPane jTextPaneTass64DotText; private javax.swing.JTextPane jTextPaneTass64DotTextLShiftText; private javax.swing.JTextPane jTextPaneTass64DotTextNZeroText; private javax.swing.JTextPane jTextPaneTass64DotTextPNumChar; private javax.swing.JTextPane jTextPaneTass64DotTextPetasciiText; private javax.swing.JTextPane jTextPaneTass64DotTextSHighText; private javax.swing.JTextPane jTextPaneTass64DotTextScreenText; private javax.swing.JTextPane jTextPaneTass64DotWord; private javax.swing.JTextPane jTextPaneTass64LabelNameColon; private javax.swing.JTextPane jTextPaneTass64MacroBinMonoSprite; private javax.swing.JTextPane jTextPaneTass64MacroBinMultiSprite; private javax.swing.JTextPane jTextPaneTass64MacroHexMonoSprite; private javax.swing.JTextPane jTextPaneTass64MacroHexMultiSprite; private javax.swing.JTextPane jTextPaneTass64MacroWordSwapped; private javax.swing.JTextPane jTextPaneTass64SemicolonBlockComment; private javax.swing.JTextPane jTextPaneTass64SemicolonComment; private javax.swing.JTextPane jTextPaneTass664DotIfFiBlockComment1; // End of variables declaration//GEN-END:variables /** * Apply the option for KickAssembler */ public void applyOptionTass64() { switch (option.tass64Starting) { case DOT_CPU_A: jRadioButtonTass64DotCpuAStarting.setSelected(true); break; } switch (option.tass64Origin) { case ASTERISK: jRadioButtonTass64AsterixOrigin.setSelected(true); break; } switch (option.tass64Comment) { case SEMICOLON: jRadioButtonTass64SemicolonComment.setSelected(true); break; } switch (option.tass64BlockComment) { case SEMICOLON: jRadioButtonTass64SemicolonBlockComment.setSelected(true); break; case DOT_IF_FI: jRadioButtontass64DotIfFiBlockComment.setSelected(true); break; case DOT_COMMENT: jRadioButtonTass64DotCommentBlockComment.setSelected(true); break; } switch (option.tass64Label) { case NAME_COLON: jRadioButtonTass64LabelNameColon.setSelected(true); break; } switch (option.tass64Byte) { case DOT_BYTE: jRadioButtonTass64DotByte.setSelected(true); break; case DOT_CHAR: jRadioButtonTass64DotCharByte.setSelected(true); break; } switch (option.tass64Word) { case DOT_WORD: jRadioButtonTass64DotWord.setSelected(true); break; case DOT_SINT: jRadioButtonTass64DotSintWord.setSelected(true); break; } switch (option.tass64WordSwapped) { case MACRO4_WORD_SWAPPED: jRadioButtonTass64MacroWordSwapped.setSelected(true); break; } switch (option.tass64Tribyte) { case DOT_LONG_TRIBYTE: jRadioButtonTass64DotLongTribyte.setSelected(true); break; case DOT_LINT_TRIBYTE: jRadioButtonTass64DotLintTribyte.setSelected(true); break; } switch (option.tass64Long) { case DOT_DWORD_LONG: jRadioButtonTass64DotDwordLong.setSelected(true); break; case DOT_DLINT_LONG: jRadioButtonTass64DotDlintLong.setSelected(true); break; } switch (option.tass64Address) { case DOT_WORD_ADDR: jRadioButtonTass64DotAddrAddress.setSelected(true); break; } switch (option.tass64StackWord) { case DOT_RTA_STACKWORD: jRadioButtonTass64DotRtaStackWord.setSelected(true); break; } switch (option.tass64MonoSprite) { case BYTE_HEX: jRadioButtonTass64ByteHexMonoSprite.setSelected(true); break; case BYTE_BIN: jRadioButtonTass64ByteBinMonoSprite.setSelected(true); break; case MACRO_HEX: jRadioButtonTass64MacroHexMonoSprite.setSelected(true); break; case MACRO_BIN: jRadioButtonTass64MacroBinMonoSprite.setSelected(true); break; } switch (option.tass64MultiSprite) { case BYTE_HEX: jRadioButtonTass64ByteHexMultiSprite.setSelected(true); break; case BYTE_BIN: jRadioButtonTass64ByteBinMultiSprite.setSelected(true); break; case MACRO4_HEX: jRadioButtonTass64MacroHexMultiSprite.setSelected(true); break; case MACRO4_BIN: jRadioButtonTass64MacroBinMultiSprite.setSelected(true); break; } switch (option.tass64Text) { case DOT_TEXT: jRadioButtonTass64DotText.setSelected(true); break; } switch (option.tass64NumText) { case DOT_PTEXT_NUMTEXT: jRadioButtonTass64DotPTextNumText.setSelected(true); break; case DOT_TEXT_P_NUMTEXT: jRadioButtonTass64DotTextPNumText.setSelected(true); break; } switch (option.tass64ZeroText) { case DOT_NULL_ZEROTEXT: jRadioButtonTass64DotNullZeroText.setSelected(true); break; case DOT_TEXT_N_ZEROTEXT: jRadioButtonTass64DotTextNZeroText.setSelected(true); break; } switch (option.tass64HighText) { case DOT_SHIFT_HIGHTEXT: jRadioButtonTass64DotShiftHighText.setSelected(true); break; case DOT_TEXT_S_HIGHTEXT: jRadioButtonTass64DotTextSHighText.setSelected(true); break; } switch (option.tass64ShiftText) { case DOT_SHIFTL_SHIFTTEXT: jRadioButtonTass64DotShiftlShiftText.setSelected(true); break; case DOT_TEXT_L_SHIFTTEXT: jRadioButtonTass64DotShiftlShiftText.setSelected(true); break; } switch (option.tass64ScreenText) { case DOT_TEXT_SCREENTEXT: jRadioButtonTass64DotTextScreenText.setSelected(true); break; } switch (option.tass64PetasciiText) { case DOT_TEXT_PETASCIITEXT: jRadioButtonTass64DotTextPetasciiText.setSelected(true); break; } } }
108,295
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
ProjectFileView.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/ProjectFileView.java
/** * @(#)ProjectFileView.java 2023/06/04 * * ICE Team free software group * * This file is part of JIIT64 Java Ice Team Tracker 64 * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing; import java.io.File; import java.util.Hashtable; import javax.swing.Icon; import javax.swing.filechooser.FileView; import sw_emulator.swing.main.FileManager; import sw_emulator.swing.main.Option; /** * Add custom icon based onto % of project state * We cache the already reas files to speed up, that means that the perc. is * the inital one, and is not update in real time * * @author ice */ public class ProjectFileView extends FileView { Icon icon0, icon25, icon50, icon75, icon100; Hashtable<String, Integer> hashFile=new Hashtable(); // remember already read files Option option; public ProjectFileView(Option option) { this.option=option; icon0=new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/I0.png")); icon25=new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/I25.png")); icon50=new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/I50.png")); icon75=new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/I75.png")); icon100=new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/I100.png")); } @Override public Icon getIcon(File f) { if (!option.chooserPerc) return super.getIcon(f); if (f.isDirectory()) return super.getIcon(f); if (!f.getName().toLowerCase().endsWith(".dis")) return super.getIcon(f); int perc; String key=f.getAbsolutePath(); if (hashFile.containsKey(key)) perc=hashFile.get(key); else { perc=FileManager.instance.readPercProjectFile(f); hashFile.put(key, perc); } if (perc<0) return super.getIcon(f); if (perc<20) return icon0; if (perc<40) return icon25; if (perc<60) return icon50; if (perc<90) return icon75; return icon100; } }
2,801
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
HeapView.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/HeapView.java
/** * @(#)JAboutDialog.java 2019/12/29 * * ICE Team free software group * * This file is part of JIIT64 Java Ice Team Tracker 64 * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package sw_emulator.swing; import java.awt.AWTEvent; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.FontMetrics; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.RenderingHints; import java.awt.Shape; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.font.GlyphVector; import java.awt.geom.AffineTransform; import java.awt.geom.Path2D; import java.awt.geom.Rectangle2D; import java.text.MessageFormat; import java.util.Arrays; import javax.swing.JComponent; import javax.swing.SwingUtilities; import javax.swing.Timer; import javax.swing.UIManager; /** * Heap viewer from Netbeans * * @author ice */ public class HeapView extends JComponent { private static final boolean AUTOMATIC_REFRESH = true; /* * How often the display is updated. */ private static final int TICK = 1500; /** * Foreground color for the chart. */ private static final Color CHART_COLOR=new Color(0x2E90E8); /** * Color for text. */ private static final Color TEXT_COLOR=Color.DARK_GRAY; /** * Color for the background. */ private static final Color BACKGROUND_COLOR=new Color(0xCEDBE6); /** * Color for an outline around the text. */ private static final Color OUTLINE_COLOR=new Color(BACKGROUND_COLOR.getRed(), BACKGROUND_COLOR.getGreen(), BACKGROUND_COLOR.getBlue(), 192); /** * Number of samples to retain in history. */ private static final int GRAPH_COUNT = 100; /** * Key for the Show Text preference. */ private static final String SHOW_TEXT = "showText"; /** * MessageFormat used to generate text. */ private final MessageFormat format; /** * Data for the graph as a percentage of the heap used. * It is a circular buffer. */ private final long[] graph = new long[GRAPH_COUNT]; /** * Index into graph for the next tick. */ private int graphIndex; /** * Last total heap size. */ private long lastTotal; /** * Timer used to update data. */ private Timer updateTimer; /** * Max width needed to display 999.9/999.9MB. Used to calculate pref size. */ private int maxTextWidth; /** * Current text being displayed. */ private String heapSizeText; /** Stroke */ private final BasicStroke stroke=new BasicStroke(2.5f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND); /** Values for graph */ private final Object[] values=new Object[]{(double)0, (double)0}; public HeapView() { format = new MessageFormat("{0,choice,0#{0,number,0.0}|999<{0,number,0}}/{1,choice,0#{1,number,0.0}|999<{1,number,0}}MB"); heapSizeText = ""; // Enable mouse events. This is the equivalent to adding a mouse // listener. enableEvents(AWTEvent.MOUSE_EVENT_MASK); setToolTipText("Click to force garbace collection"); updateUI(); } /** * Updates the look and feel for this component. */ @Override public void updateUI() { Font f = UIManager.getFont("Label.font"); setFont(f); /* Setting this true seems to cause some painting artifacts on 150% scaling, as we don't always manage to fill every device pixel with the background color. So leave it off. */ setOpaque(false); } /** * Sets whether the text displaying the heap size should be shown. The * default is true. * * @param showText whether the text displaying the heap size should be * shown. */ public void setShowText(boolean showText) { ///prefs().putBoolean(SHOW_TEXT, showText); repaint(); } /** * Returns whether the text displaying the heap size should be shown. * * @return whether the text displaying the heap size should be shown */ public boolean getShowText() { return true; //prefs().getBoolean(SHOW_TEXT, true); } /** * Sets the font used to display the heap size. * * @param font the font used to display the heap size */ @Override public void setFont(Font font) { super.setFont(font); updateTextWidth(); } // Called by GarbageCollectAction Dimension heapViewPreferredSize() { Dimension size = new Dimension(maxTextWidth + 8, getFontMetrics( getFont()).getHeight() + 8); return size; } //private Preferences prefs() { // return NbPreferences.forModule(HeapView.class); //} /** * Recalculates the width needed to display the heap size string. */ private void updateTextWidth() { String maxString = format.format(new Object[]{888.8f, 888.8f}); maxTextWidth = getFontMetrics(getFont()).stringWidth(maxString) + 4; } /** * Processes a mouse event. * * @param e the MouseEvent */ @Override protected void processMouseEvent(MouseEvent e) { super.processMouseEvent(e); //if (!e.isConsumed()) { // if (e.isPopupTrigger()) { // // Show a popup allowing to configure the various options // showPopup(e.getX(), e.getY()); // } //} if (e.getID() == MouseEvent.MOUSE_CLICKED && SwingUtilities.isLeftMouseButton(e) && e.getClickCount() == 1) { // Trigger a gc new Runnable() { @Override public void run() { System.gc(); System.runFinalization(); System.gc(); } }; } } /** * Shows a popup at the specified location that allows you to configure the * various options. */ /* private void showPopup(int x, int y) { JPopupMenu popup = new JPopupMenu(); JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem("Show text"); cbmi.setSelected(getShowText()); cbmi.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { setShowText(((JCheckBoxMenuItem) e.getSource()). isSelected()); } }); popup.add(cbmi); popup.show(this, x, y); }*/ /** * Paints the component. */ @Override protected void paintComponent(Graphics g) { super.paintComponent(g); int width = getWidth(); int height = getHeight(); if (width > 0 && height > 0) { startTimerIfNecessary(); Graphics2D g2 =(Graphics2D)g;// (Graphics2D) g.create(); try { g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE); g2.clipRect(0, 0, width, height); // Draw background. g2.setColor(BACKGROUND_COLOR); g2.fillRect(0, 0, width, height); // Draw samples g2.setColor(CHART_COLOR); paintSamples(g2, width, height); // Draw text if enabled if (getShowText()) { paintText(g2, width, height); } } finally { g2.dispose(); } } else { stopTimerIfNecessary(); } } /** * Renders the text using an optional drop shadow. */ private void paintText(Graphics2D g, int w, int h) { Font font = getFont(); String text = getHeapSizeText(); GlyphVector gv = font.createGlyphVector(g.getFontRenderContext(), text); FontMetrics fm = g.getFontMetrics(font); Shape outline = gv.getOutline(); Rectangle2D bounds = outline.getBounds2D(); double x = Math.max(0, (w - bounds.getWidth()) / 2.0); double y = h / 2.0 + fm.getAscent() / 2.0 - 2.0; AffineTransform oldTransform = g.getTransform(); g.translate(x, y); g.setColor(OUTLINE_COLOR); g.setStroke(stroke); g.draw(outline); g.setColor(TEXT_COLOR); g.fill(outline); g.setTransform(oldTransform); } private String getHeapSizeText() { return heapSizeText; } /** * Invoked when component removed from a heavy weight parent. Stops the * timer. */ @Override public void removeNotify() { super.removeNotify(); stopTimerIfNecessary(); } /** * Restarts the timer. */ private void startTimerIfNecessary() { if (!AUTOMATIC_REFRESH) { return; } if (updateTimer == null) { updateTimer = new Timer(TICK, new ActionListener() { @Override public void actionPerformed(ActionEvent e) { update(); } }); updateTimer.setRepeats(true); updateTimer.start(); } } /** * Stops the timer. */ private void stopTimerIfNecessary() { if (updateTimer != null) { updateTimer.stop(); updateTimer = null; lastTotal = 0; Arrays.fill(graph, 0); heapSizeText = ""; } } /** * Invoked when the update timer fires. Updates the necessary data * structures and triggers repaints. */ private void update() { if (isShowing()) { Runtime r = Runtime.getRuntime(); long total = r.totalMemory(); long used = total - r.freeMemory(); graph[graphIndex] = used; lastTotal = total; ++graphIndex; if (graphIndex >= GRAPH_COUNT) { graphIndex = 0; } values[0]=(double) used / (1024.0 * 1024.0); values[1]=(double) total / (1024.0 * 1024.0); heapSizeText = format.format( // new Object[]{(double) used / (1024.0 * 1024.0), (double) total / (1024.0 * 1024.0)}); values); repaint(); } else { // Either we've become invisible, or one of our ancestors has. // Stop the timer and bale. Next paint will trigger timer to // restart. stopTimerIfNecessary(); } } /** * Draw the graph with the heap samples. It is a simple area chart. * * @param g Where to draw * @param width The width of the chart * @param height The height of the chart */ private void paintSamples(Graphics2D g, int width, int height) { Path2D path = new Path2D.Double(); path.moveTo(0, height); for (int i = 0; i < GRAPH_COUNT; ++i) { int index = (i + graphIndex) % GRAPH_COUNT; double x = (double) i / (double) (GRAPH_COUNT - 1) * (double) width; double y = (double) height * (1.0 - (double) graph[index] / (double) lastTotal); path.lineTo(x, y); } path.lineTo(width, height); path.closePath(); g.fill(path); } }
13,163
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
JFreezeFrame.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/JFreezeFrame.java
/* * @(#)JFreezeFrame.java 2022/04/21 * * ICE Team free software group * * This file is part of JIIT64 Java Ice Team Tracker 64 * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA */ package sw_emulator.swing; import java.awt.event.ActionEvent; import java.awt.event.InputEvent; import java.awt.event.KeyEvent; import java.io.File; import java.io.PrintWriter; import javax.swing.AbstractAction; import javax.swing.JOptionPane; import javax.swing.JScrollPane; import javax.swing.JTextArea; import javax.swing.KeyStroke; import javax.swing.UIManager; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; import javax.swing.table.DefaultTableModel; import org.fife.rsta.ui.search.FindDialog; import org.fife.rsta.ui.search.SearchEvent; import org.fife.rsta.ui.search.SearchListener; import org.fife.ui.rtextarea.SearchContext; import org.fife.ui.rtextarea.SearchEngine; import org.fife.ui.rtextarea.SearchResult; import sw_emulator.software.Assembler; import sw_emulator.software.Disassembly; import sw_emulator.swing.main.Freeze; import sw_emulator.swing.main.Option; import sw_emulator.swing.main.Project; import sw_emulator.software.asm.Compiler; /** * * @author ice */ public class JFreezeFrame extends javax.swing.JFrame { /** Find dialog for source */ FindDialog findDialogSource; /** Projecyt to use */ Project project; /** Disassembler */ Disassembly disassembly; /** Actual freeze */ Freeze freeze; /** Option */ Option option; /** * Creates new form JFreezeFrame */ public JFreezeFrame() { initComponents(); for (Assembler.Name val: Assembler.Name.values()) { jComboBoxAssembler.addItem(val.getName()); } Shared.framesList.add(this); Shared.framesList.add(findDialogSource); findDialogSource.setSearchString(" "); } /** * Set up the frame * * @param project the project to use * @param disassembly the disassembly engine */ public void setup(Project project, Disassembly disassembly, Option option) { this.project=project; this.disassembly=disassembly; this.option=option; rSyntaxTextAreaSource.setText(""); popolateTable(); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jSplitPaneFreeze = new javax.swing.JSplitPane(); jPanelFreeze = new javax.swing.JPanel(); jScrollPaneFreeze = new javax.swing.JScrollPane(); jTableFreeze = new javax.swing.JTable(); jPanelDn = new javax.swing.JPanel(); jButton1 = new javax.swing.JButton(); jButtonFreezeWith = new javax.swing.JButton(); jButtonDelete = new javax.swing.JButton(); jPanelUp = new javax.swing.JPanel(); jLabelCompiler = new javax.swing.JLabel(); jComboBoxAssembler = new javax.swing.JComboBox<>(); jButtonAssemble = new javax.swing.JButton(); jScrollPaneSource = new javax.swing.JScrollPane(); rSyntaxTextAreaSource = new org.fife.ui.rsyntaxtextarea.RSyntaxTextArea(); setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); setTitle("Freeze source"); addWindowFocusListener(new java.awt.event.WindowFocusListener() { public void windowGainedFocus(java.awt.event.WindowEvent evt) { } public void windowLostFocus(java.awt.event.WindowEvent evt) { formWindowLostFocus(evt); } }); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } }); jPanelFreeze.setLayout(new java.awt.BorderLayout()); jTableFreeze.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Freezed source name" } ) { Class[] types = new Class [] { java.lang.String.class }; boolean[] canEdit = new boolean [] { false }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jTableFreeze.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jTableFreeze.getSelectionModel().addListSelectionListener(new ListSelectionListener() { @Override public void valueChanged(ListSelectionEvent event) { if (jTableFreeze.getSelectedRow() > -1) { apply(getFreeze((String)jTableFreeze.getValueAt(jTableFreeze.getSelectedRow(), 0))); } } }); jScrollPaneFreeze.setViewportView(jTableFreeze); jPanelFreeze.add(jScrollPaneFreeze, java.awt.BorderLayout.CENTER); jButton1.setText("Freeze"); jButton1.setToolTipText("Add a new freezed txt image"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jPanelDn.add(jButton1); jButtonFreezeWith.setText("Freeze with"); jButtonFreezeWith.setToolTipText("Freeze with a new compilation of selected compiler"); jButtonFreezeWith.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonFreezeWithActionPerformed(evt); } }); jPanelDn.add(jButtonFreezeWith); jButtonDelete.setText("Delete"); jButtonDelete.setToolTipText("Delete the selected frrezed image"); jButtonDelete.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonDeleteActionPerformed(evt); } }); jPanelDn.add(jButtonDelete); jPanelFreeze.add(jPanelDn, java.awt.BorderLayout.PAGE_END); jLabelCompiler.setText("Compiler:"); jPanelUp.add(jLabelCompiler); jPanelUp.add(jComboBoxAssembler); jButtonAssemble.setText("Assemble"); jButtonAssemble.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonAssembleActionPerformed(evt); } }); jPanelUp.add(jButtonAssemble); jPanelFreeze.add(jPanelUp, java.awt.BorderLayout.PAGE_START); jSplitPaneFreeze.setLeftComponent(jPanelFreeze); rSyntaxTextAreaSource.setColumns(20); rSyntaxTextAreaSource.setRows(5); rSyntaxTextAreaSource.setFont(new java.awt.Font("Monospaced", 0, 12)); // NOI18N rSyntaxTextAreaSource.setSyntaxEditingStyle("text/asm6502"); findDialogSource=new FindDialog(this, new SearchListener() { @Override public void searchEvent(SearchEvent e) { SearchEvent.Type type = e.getType(); SearchContext context = e.getSearchContext(); SearchResult result; switch (type) { default: // Prevent FindBugs warning later case MARK_ALL: result = SearchEngine.markAll(rSyntaxTextAreaSource, context); break; case FIND: result = SearchEngine.find(rSyntaxTextAreaSource, context); if (!result.wasFound()) { UIManager.getLookAndFeel().provideErrorFeedback(rSyntaxTextAreaSource); } break; } } @Override public String getSelectedText() { return rSyntaxTextAreaSource.getSelectedText(); } } ); rSyntaxTextAreaSource.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_F, InputEvent.CTRL_MASK), new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { findDialogSource.setVisible(true); } } ); jScrollPaneSource.setViewportView(rSyntaxTextAreaSource); jSplitPaneFreeze.setRightComponent(jScrollPaneSource); getContentPane().add(jSplitPaneFreeze, java.awt.BorderLayout.CENTER); setBounds(0, 0, 1074, 805); }// </editor-fold>//GEN-END:initComponents private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed addNew(false); }//GEN-LAST:event_jButton1ActionPerformed private void jButtonDeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeleteActionPerformed delete(); }//GEN-LAST:event_jButtonDeleteActionPerformed private void formWindowLostFocus(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowLostFocus if (freeze!=null) freeze.text=rSyntaxTextAreaSource.getText(); }//GEN-LAST:event_formWindowLostFocus private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing setVisible(false); }//GEN-LAST:event_formWindowClosing private void jButtonAssembleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAssembleActionPerformed compile(); }//GEN-LAST:event_jButtonAssembleActionPerformed private void jButtonFreezeWithActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFreezeWithActionPerformed addNew(true); }//GEN-LAST:event_jButtonFreezeWithActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(JFreezeFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(JFreezeFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(JFreezeFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(JFreezeFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new JFreezeFrame().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButton1; private javax.swing.JButton jButtonAssemble; private javax.swing.JButton jButtonDelete; private javax.swing.JButton jButtonFreezeWith; private javax.swing.JComboBox<String> jComboBoxAssembler; private javax.swing.JLabel jLabelCompiler; private javax.swing.JPanel jPanelDn; private javax.swing.JPanel jPanelFreeze; private javax.swing.JPanel jPanelUp; private javax.swing.JScrollPane jScrollPaneFreeze; private javax.swing.JScrollPane jScrollPaneSource; private javax.swing.JSplitPane jSplitPaneFreeze; private javax.swing.JTable jTableFreeze; private org.fife.ui.rsyntaxtextarea.RSyntaxTextArea rSyntaxTextAreaSource; // End of variables declaration//GEN-END:variables /** * Populate table */ private void popolateTable() { DefaultTableModel model = (DefaultTableModel)jTableFreeze.getModel(); if (model.getRowCount()>0) { for (int i=model.getRowCount()-1; i>=0; i--) { model.removeRow(i); } } if (project.freezes != null) { for (Freeze freeze: project.freezes) { if (freeze!=null) model.addRow(new Object[]{freeze.name}); } } model.fireTableDataChanged(); } /** * Add a new image with custom compilation with selected compiler * * @param with use custom compilation with selected compiler */ private void addNew(boolean with) { String name=JOptionPane.showInputDialog("Gives the name of this new freeze"); if (name==null || "".equals(name)) return; if (getFreeze(name)!=null) { JOptionPane.showMessageDialog(this, "This freeze name is already present. Skip action.", "Warning", JOptionPane.WARNING_MESSAGE); return; } Freeze freeze=new Freeze(); freeze.name=name; if (with) { if (project==null) return; Assembler.Name actual=option.assembler; String str=(String)jComboBoxAssembler.getSelectedItem(); for (Assembler.Name name2: Assembler.Name.values()) { if (name2.getName().equals(str)) { option.assembler=name2; break; } } Disassembly dis=new Disassembly(); dis.dissassembly(project.fileType, project.inB, option, project.memory, project.constant, project.mpr, project.relocates, project.patches, project.chip, project.binAddress, project.targetType, true); option.assembler=actual; freeze.text=dis.source; } else freeze.text=disassembly.source; // be sure to have a value if (freeze.text==null) freeze.text=""; int size=0; if (project.freezes!=null) size=project.freezes.length; // copy the value in the list Freeze[] freezes2=new Freeze[size+1]; if (size>0) System.arraycopy(project.freezes, 0, freezes2, 0, size); freezes2[size]=freeze; project.freezes=freezes2; DefaultTableModel model = (DefaultTableModel)jTableFreeze.getModel(); model.addRow(new Object[]{freeze.name}); jTableFreeze.setRowSelectionInterval(model.getRowCount()-1, model.getRowCount()-1); model.fireTableDataChanged(); } /** * Delete the selected element */ public void delete() { int row=jTableFreeze.getSelectedRow(); if (row<0) return; String name=(String)jTableFreeze.getValueAt(row, 0); // copy the value in the list int size=jTableFreeze.getRowCount(); Freeze[] freezes2=new Freeze[size-1]; int j=0; for (int i=0; i<size; i++) { if (project.freezes[i].name.equals(name)) continue; freezes2[j]=project.freezes[i]; j++; } project.freezes=freezes2; popolateTable(); } /** * Get the freeze with tha name of null otherwise * * @param name the name of the freeze to search for * @return the freeze object */ private Freeze getFreeze(String name) { if (project.freezes==null) return null; for (Freeze freeze: project.freezes) { if (freeze.name.equals(name)) { return freeze; } } return null; } /** * Apply the new freeze * * @param newFreeze the new freeze */ private void apply(Freeze newFreeze) { String text=rSyntaxTextAreaSource.getText(); if (freeze!=null && !text.equals("")) freeze.text=rSyntaxTextAreaSource.getText(); rSyntaxTextAreaSource.setText(newFreeze.text); rSyntaxTextAreaSource.setCaretPosition(0); freeze=newFreeze; } /** * Compile the text */ private void compile() { String source=rSyntaxTextAreaSource.getText(); File inputFile=new File(option.tmpPath+File.separator+"input.s"); File outputFile=new File(option.tmpPath+File.separator+"output.prg"); if (source==null || "".equals(source)) { JOptionPane.showMessageDialog(this, "There is no source to assemble", "Warning", JOptionPane.WARNING_MESSAGE); return; } if (option.tmpPath==null || "".equals(option.tmpPath)) { JOptionPane.showMessageDialog(this, "Select a temporary path for the assembler outputs", "Warning", JOptionPane.WARNING_MESSAGE); return; } try { PrintWriter out=new PrintWriter(inputFile); out.write(source); out.flush(); out.close(); } catch (Exception e) { System.err.println(e); } Compiler compiler=new Compiler(); compiler.setOption(option); String str=(String)jComboBoxAssembler.getSelectedItem(); Assembler.Name actual=option.assembler; for (Assembler.Name name: Assembler.Name.values()) { if (name.getName().equals(str)) { option.assembler=name; break; } } String res=compiler.compile(inputFile, outputFile); JTextArea textArea = new JTextArea(50, 50); textArea.setText(res); textArea.setEditable(false); JScrollPane scrollPane = new JScrollPane(textArea); JOptionPane.showMessageDialog(this, scrollPane, "Result of "+option.assembler.getName()+" compilatation", JOptionPane.INFORMATION_MESSAGE); option.assembler=actual; } }
19,457
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
JDasmPanel.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/JDasmPanel.java
/** * @(#)JDasmPanel 2022/05/02 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing; import sw_emulator.software.Assembler; import sw_emulator.swing.main.Option; /** * A panel for Dasm assembler option * * @author ice */ public class JDasmPanel extends javax.swing.JPanel { /** Option file to use */ Option option; /** * Creates new form JDasmPanel */ public JDasmPanel() { initComponents(); } /** * Set up the panel with the option * * @param option the option to use */ public void setUp(Option option) { this.option=option; } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroupDasmLabel = new javax.swing.ButtonGroup(); buttonGroupDasmByte = new javax.swing.ButtonGroup(); buttonGroupDasmWord = new javax.swing.ButtonGroup(); buttonGroupDasmComment = new javax.swing.ButtonGroup(); buttonGroupDasmBlockComment = new javax.swing.ButtonGroup(); buttonGroupDasmOrigin = new javax.swing.ButtonGroup(); buttonGroupDasmStarting = new javax.swing.ButtonGroup(); buttonGroupDasmMonoSprite = new javax.swing.ButtonGroup(); buttonGroupDasmMultiSprite = new javax.swing.ButtonGroup(); buttonGroupDasmTribyte = new javax.swing.ButtonGroup(); buttonGroupDasmLong = new javax.swing.ButtonGroup(); buttonGroupDasmNumText = new javax.swing.ButtonGroup(); buttonGroupDasmAddress = new javax.swing.ButtonGroup(); buttonGroupDasmStackWord = new javax.swing.ButtonGroup(); buttonGroupDasmHighText = new javax.swing.ButtonGroup(); buttonGroupDasmShiftText = new javax.swing.ButtonGroup(); buttonGroupDasmScreenText = new javax.swing.ButtonGroup(); buttonGroupDasmPetsciiText = new javax.swing.ButtonGroup(); buttonGroupDasmWordSwapped = new javax.swing.ButtonGroup(); buttonGroupDasmText = new javax.swing.ButtonGroup(); buttonGroupDasmZeroText = new javax.swing.ButtonGroup(); jCheckBoxDasmF3Comp = new javax.swing.JCheckBox(); jLabelDasmByteDeclaration = new javax.swing.JLabel(); jRadioButtonDasmDotByte = new javax.swing.JRadioButton(); jRadioButtonDasmByte = new javax.swing.JRadioButton(); jRadioButtonDasmDcByte = new javax.swing.JRadioButton(); jLabelDasmLabelDeclaration = new javax.swing.JLabel(); jRadioButtonDasmLabelName = new javax.swing.JRadioButton(); jRadioButtonDasmLabelNameColon = new javax.swing.JRadioButton(); jRadioButtonDasmDcBByte = new javax.swing.JRadioButton(); jLabelDasmWordDeclaration = new javax.swing.JLabel(); jRadioButtonDasmDotWord = new javax.swing.JRadioButton(); jRadioButtonDasmWord = new javax.swing.JRadioButton(); jRadioButtonDasmDcWWord = new javax.swing.JRadioButton(); jScrollPaneDasmDotByte = new javax.swing.JScrollPane(); jTextPaneDasmDotByte = new javax.swing.JTextPane(); jScrollPaneDasmByte = new javax.swing.JScrollPane(); jTextPaneDasmByte = new javax.swing.JTextPane(); jScrollPaneDasmDcByte = new javax.swing.JScrollPane(); jTextPaneDasmDcByte = new javax.swing.JTextPane(); jScrollPaneDasmDCBByte = new javax.swing.JScrollPane(); jTextPaneDasmDcBByte = new javax.swing.JTextPane(); jScrollPaneDasmDotWord = new javax.swing.JScrollPane(); jTextPaneDasmDotWord = new javax.swing.JTextPane(); jScrollPaneDasmWord = new javax.swing.JScrollPane(); jTextPaneDasmWord = new javax.swing.JTextPane(); jScrollPaneDasmDcWWord = new javax.swing.JScrollPane(); jTextPaneDasmDcWWord = new javax.swing.JTextPane(); jScrollPaneDasmLabelName = new javax.swing.JScrollPane(); jTextPaneDasmLabelName = new javax.swing.JTextPane(); jScrollPaneDasmLabelNameColon = new javax.swing.JScrollPane(); jTextPaneDasmLabelNameColon = new javax.swing.JTextPane(); jLabelDasmCommentDeclaration = new javax.swing.JLabel(); jRadioButtonDasmCstyleComment = new javax.swing.JRadioButton(); jScrollPaneDasmLabelName1 = new javax.swing.JScrollPane(); jTextPaneDasmSemicolonComment = new javax.swing.JTextPane(); jRadioButtonDasmSemicolonComment = new javax.swing.JRadioButton(); jScrollPaneDasmCstyleComment = new javax.swing.JScrollPane(); jTextPaneDasmCstyleComment = new javax.swing.JTextPane(); jLabelDasmBlockCommentDeclaration = new javax.swing.JLabel(); jRadioButtonDasmSemicolonBlockComment = new javax.swing.JRadioButton(); jScrollPaneDasmLabelName3 = new javax.swing.JScrollPane(); jTextPaneDasmSemicolonBlockComment = new javax.swing.JTextPane(); jRadioButtonDasmCstyleBlockComment = new javax.swing.JRadioButton(); jScrollPaneDasmLabelName4 = new javax.swing.JScrollPane(); jTextPaneDasmCstyleBlockComment = new javax.swing.JTextPane(); jRadioButtonDasmIfBlockComment = new javax.swing.JRadioButton(); jScrollPaneDasmLabelName5 = new javax.swing.JScrollPane(); jTextPaneDasmIfBlockComment = new javax.swing.JTextPane(); jLabelDasmOriginDeclaration = new javax.swing.JLabel(); jRadioButtonDasmDotOrigin = new javax.swing.JRadioButton(); jScrollPaneDasmLabelName8 = new javax.swing.JScrollPane(); jTextPaneDasmDotOrigin = new javax.swing.JTextPane(); jRadioButtonDasmOrigin = new javax.swing.JRadioButton(); jScrollPaneDasmLabelName9 = new javax.swing.JScrollPane(); jTextPaneDasmOrigin = new javax.swing.JTextPane(); jLabelDasmStarting = new javax.swing.JLabel(); jRadioButtonDasmProcStarting = new javax.swing.JRadioButton(); jScrollPaneDasmLabelName15 = new javax.swing.JScrollPane(); jTextPaneDasmProcStarting = new javax.swing.JTextPane(); jLabelDasmMonoSpriteDeclaration = new javax.swing.JLabel(); jRadioButtonDasmByteHexMonoSprite = new javax.swing.JRadioButton(); jScrollPaneDasmByteHexMonoSprite = new javax.swing.JScrollPane(); jTextPaneDasmByteHexMonoSprite = new javax.swing.JTextPane(); jRadioButtonDasmByteBinMonoSprite = new javax.swing.JRadioButton(); jScrollPaneDasmByteBinMonoSprite = new javax.swing.JScrollPane(); jTextPaneDasmByteBinMonoSprite = new javax.swing.JTextPane(); jRadioButtonDasmMacroHexMonoSprite = new javax.swing.JRadioButton(); jScrollPaneDasmMacroHexMonoSprite = new javax.swing.JScrollPane(); jTextPaneDasmMacroHexMonoSprite = new javax.swing.JTextPane(); jRadioButtonDasmMacroBinMonoSprite = new javax.swing.JRadioButton(); jScrollPaneDasmMacroBinMonoSprite = new javax.swing.JScrollPane(); jTextPaneDasmMacroBinMonoSprite = new javax.swing.JTextPane(); jLabelDasmMultiSpriteDeclaration = new javax.swing.JLabel(); jRadioButtonDasmByteHexMultiSprite = new javax.swing.JRadioButton(); jScrollPaneDasmByteHexMultiSprite = new javax.swing.JScrollPane(); jTextPaneDasmByteHexMultiSprite = new javax.swing.JTextPane(); jRadioButtonDasmByteBinMultiSprite = new javax.swing.JRadioButton(); jScrollPaneDasmByteBinMultiSprite = new javax.swing.JScrollPane(); jTextPaneDasmByteBinMultiSprite = new javax.swing.JTextPane(); jRadioButtonDasmMacroHexMultiSprite = new javax.swing.JRadioButton(); jScrollPaneDasmMacroHexMultiSprite = new javax.swing.JScrollPane(); jTextPaneDasmMacroHexMultiSprite = new javax.swing.JTextPane(); jRadioButtonDasmMacroBinMultiSprite = new javax.swing.JRadioButton(); jScrollPaneDasmMacroBinMultiSprite = new javax.swing.JScrollPane(); jTextPaneDasmMacroBinMultiSprite = new javax.swing.JTextPane(); jLabelDasmTribyteDeclaration = new javax.swing.JLabel(); jRadioButtonDasmMacroTribyte = new javax.swing.JRadioButton(); jScrollPaneDasmMacroTribyte = new javax.swing.JScrollPane(); jTextPaneDasmMacroTribyte = new javax.swing.JTextPane(); jLabelDasmLongDeclaration = new javax.swing.JLabel(); jRadioButtonDasmDotLong = new javax.swing.JRadioButton(); jScrollPaneDasmDotLong = new javax.swing.JScrollPane(); jTextPaneDasmDotLong = new javax.swing.JTextPane(); jRadioButtonDasmLong = new javax.swing.JRadioButton(); jScrollPaneDasmLong = new javax.swing.JScrollPane(); jTextPaneDasmLong = new javax.swing.JTextPane(); jRadioButtonDasmDcLLong = new javax.swing.JRadioButton(); jScrollPaneDasmDcLLong = new javax.swing.JScrollPane(); jTextPaneDasmDcLLong = new javax.swing.JTextPane(); jLabelDasmWordSwappedDeclaration = new javax.swing.JLabel(); jRadioButtonDasmDcDotSWordSwapped = new javax.swing.JRadioButton(); jScrollPaneDasmDcDotSWordSwapped = new javax.swing.JScrollPane(); jTextPaneDasmDcDotSWordSwapped = new javax.swing.JTextPane(); jLabelDasmTextDeclaration = new javax.swing.JLabel(); jRadioButtonDasmDotByteText = new javax.swing.JRadioButton(); jScrollPaneDasmDotByteText = new javax.swing.JScrollPane(); jTextPaneDasmDotByteText = new javax.swing.JTextPane(); jRadioButtonDasmByteText = new javax.swing.JRadioButton(); jScrollPaneDasmByteText = new javax.swing.JScrollPane(); jTextPaneDasmByteText = new javax.swing.JTextPane(); jRadioButtonDasmDcText = new javax.swing.JRadioButton(); jScrollPaneDasmMacroHexMonoSprite1 = new javax.swing.JScrollPane(); jTextPaneDasmDcText = new javax.swing.JTextPane(); jRadioButtonDasmDcDotBText = new javax.swing.JRadioButton(); jScrollPaneDasmDcDotBText = new javax.swing.JScrollPane(); jTextPaneDasmDcDotBText = new javax.swing.JTextPane(); jLabelDasmNumTextDeclaration = new javax.swing.JLabel(); jRadioButtonDasmDotByteNumText = new javax.swing.JRadioButton(); jScrollPaneDasmDotByteNumText = new javax.swing.JScrollPane(); jTextPaneDasmDotByteNumText = new javax.swing.JTextPane(); jRadioButtonDasmByteNumText = new javax.swing.JRadioButton(); jScrollPaneDasmByteNumText = new javax.swing.JScrollPane(); jTextPaneDasmByteNumText = new javax.swing.JTextPane(); jRadioButtonDasmDcNumText = new javax.swing.JRadioButton(); jScrollPaneDasmDcNumText = new javax.swing.JScrollPane(); jTextPaneDasmDcNumText = new javax.swing.JTextPane(); jRadioButtonDasmDcDotBNumText = new javax.swing.JRadioButton(); jScrollPaneDasmDcDotBNumText = new javax.swing.JScrollPane(); jTextPaneDasmDcDotBNumText = new javax.swing.JTextPane(); jLabelDasmZeroTextDeclaration = new javax.swing.JLabel(); jRadioButtonDasmDotByteZeroText = new javax.swing.JRadioButton(); jScrollPaneDasmDotByteZeroText = new javax.swing.JScrollPane(); jTextPaneDasmDotByteZeroText = new javax.swing.JTextPane(); jRadioButtonDasmByteZeroText = new javax.swing.JRadioButton(); jScrollPaneDasmByteZeroText = new javax.swing.JScrollPane(); jTextPaneDasmByteZeroText = new javax.swing.JTextPane(); jRadioButtonDasmDcZeroText = new javax.swing.JRadioButton(); jScrollPaneDasmDcZeroText = new javax.swing.JScrollPane(); jTextPaneDasmDcZeroText = new javax.swing.JTextPane(); jRadioButtonDasmDcDotBZeroText = new javax.swing.JRadioButton(); jScrollPaneDasmDcDotBZeroText = new javax.swing.JScrollPane(); jTextPaneDasmDcDotBZeroText = new javax.swing.JTextPane(); jLabelDasmAddressDeclaration = new javax.swing.JLabel(); jRadioButtonDasmDotWordAddress = new javax.swing.JRadioButton(); jScrollPaneDasmDotWordAddress = new javax.swing.JScrollPane(); jTextPaneDasmDotWordAddress = new javax.swing.JTextPane(); jRadioButtonDasmWordAddress = new javax.swing.JRadioButton(); jScrollPaneDasmWordAddress = new javax.swing.JScrollPane(); jTextPaneDasmWordAddress = new javax.swing.JTextPane(); jRadioButtonDasmDcWWordAddress = new javax.swing.JRadioButton(); jScrollPaneDasmDcWWordAddress = new javax.swing.JScrollPane(); jTextPaneDasmDcWWordAddress = new javax.swing.JTextPane(); jLabelDasmStackWordDeclaration = new javax.swing.JLabel(); jRadioButtonDasmMacroStackWord = new javax.swing.JRadioButton(); jScrollPaneDasmMacroStackWord = new javax.swing.JScrollPane(); jTextPaneDasmMacroStackWord = new javax.swing.JTextPane(); jLabelDasmHighTextDeclaration = new javax.swing.JLabel(); jRadioButtonDasmDotByteHighText = new javax.swing.JRadioButton(); jScrollPaneDasmDotByteHighText = new javax.swing.JScrollPane(); jTextPaneDasmDotByteHighText = new javax.swing.JTextPane(); jRadioButtonDasmByteHighText = new javax.swing.JRadioButton(); jScrollPaneDasmByteHighText = new javax.swing.JScrollPane(); jTextPaneDasmByteHighText = new javax.swing.JTextPane(); jRadioButtonDasmDcHighText = new javax.swing.JRadioButton(); jScrollPaneDasmDcZeroHighText = new javax.swing.JScrollPane(); jTextPaneDasmDcZeroHighText = new javax.swing.JTextPane(); jRadioButtonDasmDcDotBHighText = new javax.swing.JRadioButton(); jScrollPaneDasmDcDotBHighText = new javax.swing.JScrollPane(); jTextPaneDasmDcDotBHighText = new javax.swing.JTextPane(); jLabelDasmShiftTextDeclaration = new javax.swing.JLabel(); jRadioButtonDasmDotByteShiftText = new javax.swing.JRadioButton(); jScrollPaneDasmDotByteShiftText = new javax.swing.JScrollPane(); jTextPaneDasmDotByteShiftText = new javax.swing.JTextPane(); jRadioButtonDasmByteShiftText = new javax.swing.JRadioButton(); jScrollPaneDasmByteShiftText = new javax.swing.JScrollPane(); jTextPaneDasmByteShiftText = new javax.swing.JTextPane(); jRadioButtonDasmDcShiftText = new javax.swing.JRadioButton(); jScrollPaneDasmDcZeroShiftText = new javax.swing.JScrollPane(); jTextPaneDasmDcZeroShiftText = new javax.swing.JTextPane(); jRadioButtonDasmDcDotBShiftText = new javax.swing.JRadioButton(); jScrollPaneDasmDcDotBShiftText = new javax.swing.JScrollPane(); jTextPaneDasmDcDotBShiftText = new javax.swing.JTextPane(); jLabelDasmScreenTextDeclaration = new javax.swing.JLabel(); jRadioButtonDasmDotByteScreenText = new javax.swing.JRadioButton(); jScrollPaneDasmDotByteScreenText = new javax.swing.JScrollPane(); jTextPaneDasmDotByteScreenText = new javax.swing.JTextPane(); jRadioButtonDasmByteScreenText = new javax.swing.JRadioButton(); jScrollPaneDasmByteScreenText = new javax.swing.JScrollPane(); jTextPaneDasmByteScreenText = new javax.swing.JTextPane(); jRadioButtonDasmDcScreentText = new javax.swing.JRadioButton(); jScrollPaneDasmDcZeroScreenText = new javax.swing.JScrollPane(); jTextPaneDasmDcZeroScreenText = new javax.swing.JTextPane(); jRadioButtonDasmDcDotBScreenText = new javax.swing.JRadioButton(); jScrollPaneDasmDcDotBScreenText = new javax.swing.JScrollPane(); jTextPaneDasmDcDotBScreenText = new javax.swing.JTextPane(); jLabelDasmPetasciiTextDeclaration = new javax.swing.JLabel(); jRadioButtonDasmDotBytePetasciiText = new javax.swing.JRadioButton(); jScrollPaneDasmDotBytePetasciiText = new javax.swing.JScrollPane(); jTextPaneDasmDotBytePetasciiText = new javax.swing.JTextPane(); jRadioButtonDasmBytePetasciiText = new javax.swing.JRadioButton(); jScrollPaneDasmBytePetAsciiText = new javax.swing.JScrollPane(); jTextPaneDasmBytePetasciiText = new javax.swing.JTextPane(); jRadioButtonDasmDcPetasciiText = new javax.swing.JRadioButton(); jScrollPaneDasmDcZeroPetasciiText = new javax.swing.JScrollPane(); jTextPaneDasmDcZeroPetasciText = new javax.swing.JTextPane(); jRadioButtonDasmDcDotBPetasciiText = new javax.swing.JRadioButton(); jScrollPaneDasmDcDotBPetasciiText = new javax.swing.JScrollPane(); jTextPaneDasmDcDotBPetasciText = new javax.swing.JTextPane(); jCheckBoxDasmF3Comp.setText("Make source compatible with -f3 option"); jCheckBoxDasmF3Comp.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxDasmF3CompActionPerformed(evt); } }); jLabelDasmByteDeclaration.setText("Byte:"); buttonGroupDasmByte.add(jRadioButtonDasmDotByte); jRadioButtonDasmDotByte.setSelected(true); jRadioButtonDasmDotByte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDotByteItemStateChanged(evt); } }); buttonGroupDasmByte.add(jRadioButtonDasmByte); jRadioButtonDasmByte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmByteItemStateChanged(evt); } }); buttonGroupDasmByte.add(jRadioButtonDasmDcByte); jRadioButtonDasmDcByte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcByteItemStateChanged(evt); } }); jLabelDasmLabelDeclaration.setText("Label:"); buttonGroupDasmLabel.add(jRadioButtonDasmLabelName); jRadioButtonDasmLabelName.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmLabelNameItemStateChanged(evt); } }); buttonGroupDasmLabel.add(jRadioButtonDasmLabelNameColon); jRadioButtonDasmLabelNameColon.setSelected(true); jRadioButtonDasmLabelNameColon.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmLabelNameColonItemStateChanged(evt); } }); buttonGroupDasmByte.add(jRadioButtonDasmDcBByte); jRadioButtonDasmDcBByte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcBByteItemStateChanged(evt); } }); jLabelDasmWordDeclaration.setText("Word:"); buttonGroupDasmWord.add(jRadioButtonDasmDotWord); jRadioButtonDasmDotWord.setSelected(true); jRadioButtonDasmDotWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDotWordItemStateChanged(evt); } }); buttonGroupDasmWord.add(jRadioButtonDasmWord); jRadioButtonDasmWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmWordItemStateChanged(evt); } }); buttonGroupDasmWord.add(jRadioButtonDasmDcWWord); jRadioButtonDasmDcWWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcWWordItemStateChanged(evt); } }); jScrollPaneDasmDotByte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDotByte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDotByte.setEditable(false); jTextPaneDasmDotByte.setContentType("text/html"); // NOI18N jTextPaneDasmDotByte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byte</b> <font color='red'>$xx</font><br>\n <b> .byte</b> <font color='blue'>dd</font><br>\n <b> .byte</b> <font color='green'>%bb</font><br>\n <b> .byte</b> <font color='purple'>'c</font>\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDotByte.setViewportView(jTextPaneDasmDotByte); jScrollPaneDasmByte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmByte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmByte.setEditable(false); jTextPaneDasmByte.setContentType("text/html"); // NOI18N jTextPaneDasmByte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> byte</b> <font color='red'>$xx</font><br>\n <b> byte</b> <font color='blue'>dd</font><br>\n <b> byte</b> <font color='green'>%bb</font><br>\n <b> byte</b> <font color='purple'>'c</font>\n </p>\n </body>\n</html>\n"); jScrollPaneDasmByte.setViewportView(jTextPaneDasmByte); jScrollPaneDasmDcByte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDcByte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcByte.setEditable(false); jTextPaneDasmDcByte.setContentType("text/html"); // NOI18N jTextPaneDasmDcByte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> dc</b> <font color='red'>$xx</font><br>\n <b> dc</b> <font color='blue'>dd</font><br>\n <b> dc</b> <font color='green'>%bb</font><br>\n <b> dc</b> <font color='purple'>'c</font>\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDcByte.setViewportView(jTextPaneDasmDcByte); jScrollPaneDasmDCBByte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDCBByte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcBByte.setEditable(false); jTextPaneDasmDcBByte.setContentType("text/html"); // NOI18N jTextPaneDasmDcBByte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> dc.b</b> <font color='red'>$xx</font><br>\n <b> dc.b</b> <font color='blue'>dd</font><br>\n <b> dc.b</b> <font color='green'>%bb</font><br>\n <b> dc.b</b> <font color='purple'>'c</font>\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDCBByte.setViewportView(jTextPaneDasmDcBByte); jScrollPaneDasmDotWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDotWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDotWord.setEditable(false); jTextPaneDasmDotWord.setContentType("text/html"); // NOI18N jTextPaneDasmDotWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .word</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDotWord.setViewportView(jTextPaneDasmDotWord); jScrollPaneDasmWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmWord.setEditable(false); jTextPaneDasmWord.setContentType("text/html"); // NOI18N jTextPaneDasmWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> word</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmWord.setViewportView(jTextPaneDasmWord); jScrollPaneDasmDcWWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDcWWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcWWord.setEditable(false); jTextPaneDasmDcWWord.setContentType("text/html"); // NOI18N jTextPaneDasmDcWWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> dc.w</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDcWWord.setViewportView(jTextPaneDasmDcWWord); jScrollPaneDasmLabelName.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmLabelName.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmLabelName.setEditable(false); jTextPaneDasmLabelName.setContentType("text/html"); // NOI18N jTextPaneDasmLabelName.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <font color='black'>zzzz</font>\n </p>\n </body>\n</html>\n"); jScrollPaneDasmLabelName.setViewportView(jTextPaneDasmLabelName); jScrollPaneDasmLabelNameColon.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmLabelNameColon.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmLabelNameColon.setEditable(false); jTextPaneDasmLabelNameColon.setContentType("text/html"); // NOI18N jTextPaneDasmLabelNameColon.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <font color='black'>zzzz</font><b>:</b>\n </p>\n </body>\n</html>\n"); jScrollPaneDasmLabelNameColon.setViewportView(jTextPaneDasmLabelNameColon); jLabelDasmCommentDeclaration.setText("Comment:"); buttonGroupDasmComment.add(jRadioButtonDasmCstyleComment); jRadioButtonDasmCstyleComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmCstyleCommentItemStateChanged(evt); } }); jScrollPaneDasmLabelName1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmLabelName1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmSemicolonComment.setEditable(false); jTextPaneDasmSemicolonComment.setContentType("text/html"); // NOI18N jTextPaneDasmSemicolonComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>;</b> xxx\n </p>\n </body>\n</html>\n"); jScrollPaneDasmLabelName1.setViewportView(jTextPaneDasmSemicolonComment); buttonGroupDasmComment.add(jRadioButtonDasmSemicolonComment); jRadioButtonDasmSemicolonComment.setSelected(true); jRadioButtonDasmSemicolonComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmSemicolonCommentItemStateChanged(evt); } }); jScrollPaneDasmCstyleComment.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmCstyleComment.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmCstyleComment.setEditable(false); jTextPaneDasmCstyleComment.setContentType("text/html"); // NOI18N jTextPaneDasmCstyleComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>/*</b> xxx <b'>*/</b>\n </p>\n </body>\n</html>\n"); jScrollPaneDasmCstyleComment.setViewportView(jTextPaneDasmCstyleComment); jLabelDasmBlockCommentDeclaration.setText("Block Comment:"); buttonGroupDasmBlockComment.add(jRadioButtonDasmSemicolonBlockComment); jRadioButtonDasmSemicolonBlockComment.setSelected(true); jRadioButtonDasmSemicolonBlockComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmSemicolonBlockCommentItemStateChanged(evt); } }); jScrollPaneDasmLabelName3.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmLabelName3.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmSemicolonBlockComment.setEditable(false); jTextPaneDasmSemicolonBlockComment.setContentType("text/html"); // NOI18N jTextPaneDasmSemicolonBlockComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>;</b> xxx\n </p>\n </body>\n</html>\n"); jScrollPaneDasmLabelName3.setViewportView(jTextPaneDasmSemicolonBlockComment); buttonGroupDasmBlockComment.add(jRadioButtonDasmCstyleBlockComment); jRadioButtonDasmCstyleBlockComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmCstyleBlockCommentItemStateChanged(evt); } }); jScrollPaneDasmLabelName4.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmLabelName4.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmCstyleBlockComment.setEditable(false); jTextPaneDasmCstyleBlockComment.setContentType("text/html"); // NOI18N jTextPaneDasmCstyleBlockComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>/*</b> xxx <b'>*/</b>\n </p>\n </body>\n</html>\n"); jScrollPaneDasmLabelName4.setViewportView(jTextPaneDasmCstyleBlockComment); buttonGroupDasmBlockComment.add(jRadioButtonDasmIfBlockComment); jRadioButtonDasmIfBlockComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmIfBlockCommentItemStateChanged(evt); } }); jScrollPaneDasmLabelName5.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmLabelName5.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmIfBlockComment.setEditable(false); jTextPaneDasmIfBlockComment.setContentType("text/html"); // NOI18N jTextPaneDasmIfBlockComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>if 0</b> xxx <b'>endif</b>\n </p>\n </body>\n</html>\n"); jScrollPaneDasmLabelName5.setViewportView(jTextPaneDasmIfBlockComment); jLabelDasmOriginDeclaration.setText("Origin:"); buttonGroupDasmOrigin.add(jRadioButtonDasmDotOrigin); jRadioButtonDasmDotOrigin.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDotOriginItemStateChanged(evt); } }); jScrollPaneDasmLabelName8.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmLabelName8.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDotOrigin.setEditable(false); jTextPaneDasmDotOrigin.setContentType("text/html"); // NOI18N jTextPaneDasmDotOrigin.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>.org</b> $xxyy\n </p>\n </body>\n</html>\n"); jScrollPaneDasmLabelName8.setViewportView(jTextPaneDasmDotOrigin); buttonGroupDasmOrigin.add(jRadioButtonDasmOrigin); jRadioButtonDasmOrigin.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmOriginItemStateChanged(evt); } }); jScrollPaneDasmLabelName9.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmLabelName9.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmOrigin.setEditable(false); jTextPaneDasmOrigin.setContentType("text/html"); // NOI18N jTextPaneDasmOrigin.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>org</b> $xxyy\n </p>\n </body>\n</html>\n"); jScrollPaneDasmLabelName9.setViewportView(jTextPaneDasmOrigin); jLabelDasmStarting.setText("Starting:"); buttonGroupDasmStarting.add(jRadioButtonDasmProcStarting); jRadioButtonDasmProcStarting.setSelected(true); jRadioButtonDasmProcStarting.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmProcStartingItemStateChanged(evt); } }); jScrollPaneDasmLabelName15.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmLabelName15.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmProcStarting.setEditable(false); jTextPaneDasmProcStarting.setContentType("text/html"); // NOI18N jTextPaneDasmProcStarting.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>processor</b> 6502\n </p>\n </body>\n</html>\n"); jScrollPaneDasmLabelName15.setViewportView(jTextPaneDasmProcStarting); jLabelDasmMonoSpriteDeclaration.setText("Monocolor sprite:"); buttonGroupDasmMonoSprite.add(jRadioButtonDasmByteHexMonoSprite); jRadioButtonDasmByteHexMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmByteHexMonoSpriteItemStateChanged(evt); } }); jScrollPaneDasmByteHexMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmByteHexMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmByteHexMonoSprite.setEditable(false); jTextPaneDasmByteHexMonoSprite.setContentType("text/html"); // NOI18N jTextPaneDasmByteHexMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> [byte]</b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmByteHexMonoSprite.setViewportView(jTextPaneDasmByteHexMonoSprite); buttonGroupDasmMonoSprite.add(jRadioButtonDasmByteBinMonoSprite); jRadioButtonDasmByteBinMonoSprite.setSelected(true); jRadioButtonDasmByteBinMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmByteBinMonoSpriteItemStateChanged(evt); } }); jScrollPaneDasmByteBinMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmByteBinMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmByteBinMonoSprite.setEditable(false); jTextPaneDasmByteBinMonoSprite.setContentType("text/html"); // NOI18N jTextPaneDasmByteBinMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[byte]</b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmByteBinMonoSprite.setViewportView(jTextPaneDasmByteBinMonoSprite); buttonGroupDasmMonoSprite.add(jRadioButtonDasmMacroHexMonoSprite); jRadioButtonDasmMacroHexMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmMacroHexMonoSpriteItemStateChanged(evt); } }); jScrollPaneDasmMacroHexMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmMacroHexMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmMacroHexMonoSprite.setEditable(false); jTextPaneDasmMacroHexMonoSprite.setContentType("text/html"); // NOI18N jTextPaneDasmMacroHexMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmMacroHexMonoSprite.setViewportView(jTextPaneDasmMacroHexMonoSprite); buttonGroupDasmMonoSprite.add(jRadioButtonDasmMacroBinMonoSprite); jRadioButtonDasmMacroBinMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmMacroBinMonoSpriteItemStateChanged(evt); } }); jScrollPaneDasmMacroBinMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmMacroBinMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmMacroBinMonoSprite.setEditable(false); jTextPaneDasmMacroBinMonoSprite.setContentType("text/html"); // NOI18N jTextPaneDasmMacroBinMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmMacroBinMonoSprite.setViewportView(jTextPaneDasmMacroBinMonoSprite); jLabelDasmMultiSpriteDeclaration.setText("Multicolor sprite:"); buttonGroupDasmMultiSprite.add(jRadioButtonDasmByteHexMultiSprite); jRadioButtonDasmByteHexMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmByteHexMultiSpriteItemStateChanged(evt); } }); jScrollPaneDasmByteHexMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmByteHexMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmByteHexMultiSprite.setEditable(false); jTextPaneDasmByteHexMultiSprite.setContentType("text/html"); // NOI18N jTextPaneDasmByteHexMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> [byte]</b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmByteHexMultiSprite.setViewportView(jTextPaneDasmByteHexMultiSprite); buttonGroupDasmMultiSprite.add(jRadioButtonDasmByteBinMultiSprite); jRadioButtonDasmByteBinMultiSprite.setSelected(true); jRadioButtonDasmByteBinMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmByteBinMultiSpriteItemStateChanged(evt); } }); jScrollPaneDasmByteBinMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmByteBinMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmByteBinMultiSprite.setEditable(false); jTextPaneDasmByteBinMultiSprite.setContentType("text/html"); // NOI18N jTextPaneDasmByteBinMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[byte]</b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmByteBinMultiSprite.setViewportView(jTextPaneDasmByteBinMultiSprite); buttonGroupDasmMultiSprite.add(jRadioButtonDasmMacroHexMultiSprite); jRadioButtonDasmMacroHexMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmMacroHexMultiSpriteItemStateChanged(evt); } }); jScrollPaneDasmMacroHexMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmMacroHexMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmMacroHexMultiSprite.setEditable(false); jTextPaneDasmMacroHexMultiSprite.setContentType("text/html"); // NOI18N jTextPaneDasmMacroHexMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmMacroHexMultiSprite.setViewportView(jTextPaneDasmMacroHexMultiSprite); buttonGroupDasmMultiSprite.add(jRadioButtonDasmMacroBinMultiSprite); jRadioButtonDasmMacroBinMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmMacroBinMultiSpriteItemStateChanged(evt); } }); jScrollPaneDasmMacroBinMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmMacroBinMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmMacroBinMultiSprite.setEditable(false); jTextPaneDasmMacroBinMultiSprite.setContentType("text/html"); // NOI18N jTextPaneDasmMacroBinMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmMacroBinMultiSprite.setViewportView(jTextPaneDasmMacroBinMultiSprite); jLabelDasmTribyteDeclaration.setText("Tribyte:"); buttonGroupDasmTribyte.add(jRadioButtonDasmMacroTribyte); jRadioButtonDasmMacroTribyte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmMacroTribyteItemStateChanged(evt); } }); jScrollPaneDasmMacroTribyte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmMacroTribyte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmMacroTribyte.setEditable(false); jTextPaneDasmMacroTribyte.setContentType("text/html"); // NOI18N jTextPaneDasmMacroTribyte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac]</b> <font color='red'>$xxyyzz</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmMacroTribyte.setViewportView(jTextPaneDasmMacroTribyte); jLabelDasmLongDeclaration.setText("Long:"); buttonGroupDasmTribyte.add(jRadioButtonDasmDotLong); jRadioButtonDasmDotLong.setSelected(true); jRadioButtonDasmDotLong.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDotLongItemStateChanged(evt); } }); jScrollPaneDasmDotLong.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDotLong.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDotLong.setEditable(false); jTextPaneDasmDotLong.setContentType("text/html"); // NOI18N jTextPaneDasmDotLong.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .long</b> <font color='red'>$xxyyzzkk</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDotLong.setViewportView(jTextPaneDasmDotLong); buttonGroupDasmTribyte.add(jRadioButtonDasmLong); jRadioButtonDasmLong.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmLongItemStateChanged(evt); } }); jScrollPaneDasmLong.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmLong.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmLong.setEditable(false); jTextPaneDasmLong.setContentType("text/html"); // NOI18N jTextPaneDasmLong.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> long</b> <font color='red'>$xxyyzzkk</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmLong.setViewportView(jTextPaneDasmLong); buttonGroupDasmTribyte.add(jRadioButtonDasmDcLLong); jRadioButtonDasmDcLLong.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcLLongItemStateChanged(evt); } }); jScrollPaneDasmDcLLong.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDcLLong.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcLLong.setEditable(false); jTextPaneDasmDcLLong.setContentType("text/html"); // NOI18N jTextPaneDasmDcLLong.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> dc.l</b> <font color='red'>$xxyyzzkk</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDcLLong.setViewportView(jTextPaneDasmDcLLong); jLabelDasmWordSwappedDeclaration.setText("Word swapped:"); buttonGroupDasmWordSwapped.add(jRadioButtonDasmDcDotSWordSwapped); jRadioButtonDasmDcDotSWordSwapped.setSelected(true); jRadioButtonDasmDcDotSWordSwapped.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcDotSWordSwappedItemStateChanged(evt); } }); jScrollPaneDasmDcDotSWordSwapped.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDcDotSWordSwapped.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcDotSWordSwapped.setEditable(false); jTextPaneDasmDcDotSWordSwapped.setContentType("text/html"); // NOI18N jTextPaneDasmDcDotSWordSwapped.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .dc.s</b> <font color='red'>$yyxx</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDcDotSWordSwapped.setViewportView(jTextPaneDasmDcDotSWordSwapped); jLabelDasmTextDeclaration.setText("Text:"); buttonGroupDasmText.add(jRadioButtonDasmDotByteText); jRadioButtonDasmDotByteText.setSelected(true); jRadioButtonDasmDotByteText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDotByteTextItemStateChanged(evt); } }); jScrollPaneDasmDotByteText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDotByteText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDotByteText.setEditable(false); jTextPaneDasmDotByteText.setContentType("text/html"); // NOI18N jTextPaneDasmDotByteText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDotByteText.setViewportView(jTextPaneDasmDotByteText); buttonGroupDasmText.add(jRadioButtonDasmByteText); jRadioButtonDasmByteText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmByteTextItemStateChanged(evt); } }); jScrollPaneDasmByteText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmByteText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmByteText.setEditable(false); jTextPaneDasmByteText.setContentType("text/html"); // NOI18N jTextPaneDasmByteText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmByteText.setViewportView(jTextPaneDasmByteText); buttonGroupDasmText.add(jRadioButtonDasmDcText); jRadioButtonDasmDcText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcTextItemStateChanged(evt); } }); jScrollPaneDasmMacroHexMonoSprite1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmMacroHexMonoSprite1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcText.setEditable(false); jTextPaneDasmDcText.setContentType("text/html"); // NOI18N jTextPaneDasmDcText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>dc</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmMacroHexMonoSprite1.setViewportView(jTextPaneDasmDcText); buttonGroupDasmText.add(jRadioButtonDasmDcDotBText); jRadioButtonDasmDcDotBText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcDotBTextItemStateChanged(evt); } }); jScrollPaneDasmDcDotBText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDcDotBText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcDotBText.setEditable(false); jTextPaneDasmDcDotBText.setContentType("text/html"); // NOI18N jTextPaneDasmDcDotBText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>dc.b</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDcDotBText.setViewportView(jTextPaneDasmDcDotBText); jLabelDasmNumTextDeclaration.setText("Text #num chars:"); buttonGroupDasmNumText.add(jRadioButtonDasmDotByteNumText); jRadioButtonDasmDotByteNumText.setSelected(true); jRadioButtonDasmDotByteNumText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDotByteNumTextItemStateChanged(evt); } }); jScrollPaneDasmDotByteNumText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDotByteNumText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDotByteNumText.setEditable(false); jTextPaneDasmDotByteNumText.setContentType("text/html"); // NOI18N jTextPaneDasmDotByteNumText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDotByteNumText.setViewportView(jTextPaneDasmDotByteNumText); buttonGroupDasmNumText.add(jRadioButtonDasmByteNumText); jRadioButtonDasmByteNumText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmByteNumTextItemStateChanged(evt); } }); jScrollPaneDasmByteNumText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmByteNumText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmByteNumText.setEditable(false); jTextPaneDasmByteNumText.setContentType("text/html"); // NOI18N jTextPaneDasmByteNumText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmByteNumText.setViewportView(jTextPaneDasmByteNumText); buttonGroupDasmNumText.add(jRadioButtonDasmDcNumText); jRadioButtonDasmDcNumText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcNumTextItemStateChanged(evt); } }); jScrollPaneDasmDcNumText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDcNumText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcNumText.setEditable(false); jTextPaneDasmDcNumText.setContentType("text/html"); // NOI18N jTextPaneDasmDcNumText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>dc</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDcNumText.setViewportView(jTextPaneDasmDcNumText); buttonGroupDasmNumText.add(jRadioButtonDasmDcDotBNumText); jRadioButtonDasmDcDotBNumText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcDotBNumTextItemStateChanged(evt); } }); jScrollPaneDasmDcDotBNumText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDcDotBNumText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcDotBNumText.setEditable(false); jTextPaneDasmDcDotBNumText.setContentType("text/html"); // NOI18N jTextPaneDasmDcDotBNumText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>dc.b</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDcDotBNumText.setViewportView(jTextPaneDasmDcDotBNumText); jLabelDasmZeroTextDeclaration.setText("Text 0 terminated:"); buttonGroupDasmZeroText.add(jRadioButtonDasmDotByteZeroText); jRadioButtonDasmDotByteZeroText.setSelected(true); jRadioButtonDasmDotByteZeroText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDotByteZeroTextItemStateChanged(evt); } }); jScrollPaneDasmDotByteZeroText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDotByteZeroText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDotByteZeroText.setEditable(false); jTextPaneDasmDotByteZeroText.setContentType("text/html"); // NOI18N jTextPaneDasmDotByteZeroText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDotByteZeroText.setViewportView(jTextPaneDasmDotByteZeroText); buttonGroupDasmZeroText.add(jRadioButtonDasmByteZeroText); jRadioButtonDasmByteZeroText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmByteZeroTextItemStateChanged(evt); } }); jScrollPaneDasmByteZeroText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmByteZeroText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmByteZeroText.setEditable(false); jTextPaneDasmByteZeroText.setContentType("text/html"); // NOI18N jTextPaneDasmByteZeroText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmByteZeroText.setViewportView(jTextPaneDasmByteZeroText); buttonGroupDasmZeroText.add(jRadioButtonDasmDcZeroText); jRadioButtonDasmDcZeroText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcZeroTextItemStateChanged(evt); } }); jScrollPaneDasmDcZeroText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDcZeroText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcZeroText.setEditable(false); jTextPaneDasmDcZeroText.setContentType("text/html"); // NOI18N jTextPaneDasmDcZeroText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>dc</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDcZeroText.setViewportView(jTextPaneDasmDcZeroText); buttonGroupDasmZeroText.add(jRadioButtonDasmDcDotBZeroText); jRadioButtonDasmDcDotBZeroText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcDotBZeroTextItemStateChanged(evt); } }); jScrollPaneDasmDcDotBZeroText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDcDotBZeroText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcDotBZeroText.setEditable(false); jTextPaneDasmDcDotBZeroText.setContentType("text/html"); // NOI18N jTextPaneDasmDcDotBZeroText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>dc.b</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDcDotBZeroText.setViewportView(jTextPaneDasmDcDotBZeroText); jLabelDasmAddressDeclaration.setText("Address:"); buttonGroupDasmAddress.add(jRadioButtonDasmDotWordAddress); jRadioButtonDasmDotWordAddress.setSelected(true); jRadioButtonDasmDotWordAddress.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDotWordAddressItemStateChanged(evt); } }); jScrollPaneDasmDotWordAddress.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDotWordAddress.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDotWordAddress.setEditable(false); jTextPaneDasmDotWordAddress.setContentType("text/html"); // NOI18N jTextPaneDasmDotWordAddress.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .word</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDotWordAddress.setViewportView(jTextPaneDasmDotWordAddress); buttonGroupDasmAddress.add(jRadioButtonDasmWordAddress); jRadioButtonDasmWordAddress.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmWordAddressItemStateChanged(evt); } }); jScrollPaneDasmWordAddress.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmWordAddress.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmWordAddress.setEditable(false); jTextPaneDasmWordAddress.setContentType("text/html"); // NOI18N jTextPaneDasmWordAddress.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> word</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmWordAddress.setViewportView(jTextPaneDasmWordAddress); buttonGroupDasmAddress.add(jRadioButtonDasmDcWWordAddress); jRadioButtonDasmDcWWordAddress.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcWWordAddressItemStateChanged(evt); } }); jScrollPaneDasmDcWWordAddress.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDcWWordAddress.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcWWordAddress.setEditable(false); jTextPaneDasmDcWWordAddress.setContentType("text/html"); // NOI18N jTextPaneDasmDcWWordAddress.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> dc.w</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDcWWordAddress.setViewportView(jTextPaneDasmDcWWordAddress); jLabelDasmStackWordDeclaration.setText("Stack Word:"); buttonGroupDasmStackWord.add(jRadioButtonDasmMacroStackWord); jRadioButtonDasmMacroStackWord.setSelected(true); jRadioButtonDasmMacroStackWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmMacroStackWordItemStateChanged(evt); } }); jScrollPaneDasmMacroStackWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmMacroStackWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmMacroStackWord.setEditable(false); jTextPaneDasmMacroStackWord.setContentType("text/html"); // NOI18N jTextPaneDasmMacroStackWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac]</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmMacroStackWord.setViewportView(jTextPaneDasmMacroStackWord); jLabelDasmHighTextDeclaration.setText("Text '1' terminated:"); buttonGroupDasmHighText.add(jRadioButtonDasmDotByteHighText); jRadioButtonDasmDotByteHighText.setSelected(true); jRadioButtonDasmDotByteHighText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDotByteHighTextItemStateChanged(evt); } }); jScrollPaneDasmDotByteHighText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDotByteHighText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDotByteHighText.setEditable(false); jTextPaneDasmDotByteHighText.setContentType("text/html"); // NOI18N jTextPaneDasmDotByteHighText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDotByteHighText.setViewportView(jTextPaneDasmDotByteHighText); buttonGroupDasmHighText.add(jRadioButtonDasmByteHighText); jRadioButtonDasmByteHighText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmByteHighTextItemStateChanged(evt); } }); jScrollPaneDasmByteHighText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmByteHighText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmByteHighText.setEditable(false); jTextPaneDasmByteHighText.setContentType("text/html"); // NOI18N jTextPaneDasmByteHighText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmByteHighText.setViewportView(jTextPaneDasmByteHighText); buttonGroupDasmHighText.add(jRadioButtonDasmDcHighText); jRadioButtonDasmDcHighText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcHighTextItemStateChanged(evt); } }); jScrollPaneDasmDcZeroHighText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDcZeroHighText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcZeroHighText.setEditable(false); jTextPaneDasmDcZeroHighText.setContentType("text/html"); // NOI18N jTextPaneDasmDcZeroHighText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>dc</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDcZeroHighText.setViewportView(jTextPaneDasmDcZeroHighText); buttonGroupDasmHighText.add(jRadioButtonDasmDcDotBHighText); jRadioButtonDasmDcDotBHighText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcDotBHighTextItemStateChanged(evt); } }); jScrollPaneDasmDcDotBHighText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDcDotBHighText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcDotBHighText.setEditable(false); jTextPaneDasmDcDotBHighText.setContentType("text/html"); // NOI18N jTextPaneDasmDcDotBHighText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>dc.b</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDcDotBHighText.setViewportView(jTextPaneDasmDcDotBHighText); jLabelDasmShiftTextDeclaration.setText("Text left shifted:"); buttonGroupDasmShiftText.add(jRadioButtonDasmDotByteShiftText); jRadioButtonDasmDotByteShiftText.setSelected(true); jRadioButtonDasmDotByteShiftText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDotByteShiftTextItemStateChanged(evt); } }); jScrollPaneDasmDotByteShiftText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDotByteShiftText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDotByteShiftText.setEditable(false); jTextPaneDasmDotByteShiftText.setContentType("text/html"); // NOI18N jTextPaneDasmDotByteShiftText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDotByteShiftText.setViewportView(jTextPaneDasmDotByteShiftText); buttonGroupDasmShiftText.add(jRadioButtonDasmByteShiftText); jRadioButtonDasmByteShiftText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmByteShiftTextItemStateChanged(evt); } }); jScrollPaneDasmByteShiftText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmByteShiftText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmByteShiftText.setEditable(false); jTextPaneDasmByteShiftText.setContentType("text/html"); // NOI18N jTextPaneDasmByteShiftText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmByteShiftText.setViewportView(jTextPaneDasmByteShiftText); buttonGroupDasmShiftText.add(jRadioButtonDasmDcShiftText); jRadioButtonDasmDcShiftText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcShiftTextItemStateChanged(evt); } }); jScrollPaneDasmDcZeroShiftText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDcZeroShiftText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcZeroShiftText.setEditable(false); jTextPaneDasmDcZeroShiftText.setContentType("text/html"); // NOI18N jTextPaneDasmDcZeroShiftText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>dc</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDcZeroShiftText.setViewportView(jTextPaneDasmDcZeroShiftText); buttonGroupDasmShiftText.add(jRadioButtonDasmDcDotBShiftText); jRadioButtonDasmDcDotBShiftText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcDotBShiftTextItemStateChanged(evt); } }); jScrollPaneDasmDcDotBShiftText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDcDotBShiftText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcDotBShiftText.setEditable(false); jTextPaneDasmDcDotBShiftText.setContentType("text/html"); // NOI18N jTextPaneDasmDcDotBShiftText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>dc.b</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDcDotBShiftText.setViewportView(jTextPaneDasmDcDotBShiftText); jLabelDasmScreenTextDeclaration.setText("Text to screen code:"); buttonGroupDasmScreenText.add(jRadioButtonDasmDotByteScreenText); jRadioButtonDasmDotByteScreenText.setSelected(true); jRadioButtonDasmDotByteScreenText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDotByteScreenTextItemStateChanged(evt); } }); jScrollPaneDasmDotByteScreenText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDotByteScreenText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDotByteScreenText.setEditable(false); jTextPaneDasmDotByteScreenText.setContentType("text/html"); // NOI18N jTextPaneDasmDotByteScreenText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDotByteScreenText.setViewportView(jTextPaneDasmDotByteScreenText); buttonGroupDasmScreenText.add(jRadioButtonDasmByteScreenText); jRadioButtonDasmByteScreenText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmByteScreenTextItemStateChanged(evt); } }); jScrollPaneDasmByteScreenText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmByteScreenText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmByteScreenText.setEditable(false); jTextPaneDasmByteScreenText.setContentType("text/html"); // NOI18N jTextPaneDasmByteScreenText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmByteScreenText.setViewportView(jTextPaneDasmByteScreenText); buttonGroupDasmScreenText.add(jRadioButtonDasmDcScreentText); jRadioButtonDasmDcScreentText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcScreentTextItemStateChanged(evt); } }); jScrollPaneDasmDcZeroScreenText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDcZeroScreenText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcZeroScreenText.setEditable(false); jTextPaneDasmDcZeroScreenText.setContentType("text/html"); // NOI18N jTextPaneDasmDcZeroScreenText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>dc</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDcZeroScreenText.setViewportView(jTextPaneDasmDcZeroScreenText); buttonGroupDasmScreenText.add(jRadioButtonDasmDcDotBScreenText); jRadioButtonDasmDcDotBScreenText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcDotBScreenTextItemStateChanged(evt); } }); jScrollPaneDasmDcDotBScreenText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDcDotBScreenText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcDotBScreenText.setEditable(false); jTextPaneDasmDcDotBScreenText.setContentType("text/html"); // NOI18N jTextPaneDasmDcDotBScreenText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>dc.b</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDcDotBScreenText.setViewportView(jTextPaneDasmDcDotBScreenText); jLabelDasmPetasciiTextDeclaration.setText("Text to petascii code:"); buttonGroupDasmPetsciiText.add(jRadioButtonDasmDotBytePetasciiText); jRadioButtonDasmDotBytePetasciiText.setSelected(true); jRadioButtonDasmDotBytePetasciiText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDotBytePetasciiTextItemStateChanged(evt); } }); jScrollPaneDasmDotBytePetasciiText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDotBytePetasciiText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDotBytePetasciiText.setEditable(false); jTextPaneDasmDotBytePetasciiText.setContentType("text/html"); // NOI18N jTextPaneDasmDotBytePetasciiText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDotBytePetasciiText.setViewportView(jTextPaneDasmDotBytePetasciiText); buttonGroupDasmPetsciiText.add(jRadioButtonDasmBytePetasciiText); jRadioButtonDasmBytePetasciiText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmBytePetasciiTextItemStateChanged(evt); } }); jScrollPaneDasmBytePetAsciiText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmBytePetAsciiText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmBytePetasciiText.setEditable(false); jTextPaneDasmBytePetasciiText.setContentType("text/html"); // NOI18N jTextPaneDasmBytePetasciiText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmBytePetAsciiText.setViewportView(jTextPaneDasmBytePetasciiText); buttonGroupDasmPetsciiText.add(jRadioButtonDasmDcPetasciiText); jRadioButtonDasmDcPetasciiText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcPetasciiTextItemStateChanged(evt); } }); jScrollPaneDasmDcZeroPetasciiText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDcZeroPetasciiText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcZeroPetasciText.setEditable(false); jTextPaneDasmDcZeroPetasciText.setContentType("text/html"); // NOI18N jTextPaneDasmDcZeroPetasciText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>dc</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDcZeroPetasciiText.setViewportView(jTextPaneDasmDcZeroPetasciText); buttonGroupDasmPetsciiText.add(jRadioButtonDasmDcDotBPetasciiText); jRadioButtonDasmDcDotBPetasciiText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmDcDotBPetasciiTextItemStateChanged(evt); } }); jScrollPaneDasmDcDotBPetasciiText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmDcDotBPetasciiText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmDcDotBPetasciText.setEditable(false); jTextPaneDasmDcDotBPetasciText.setContentType("text/html"); // NOI18N jTextPaneDasmDcDotBPetasciText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>dc.b</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmDcDotBPetasciiText.setViewportView(jTextPaneDasmDcDotBPetasciText); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jLabelDasmOriginDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelDasmCommentDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelDasmBlockCommentDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabelDasmWordSwappedDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDasmStackWordDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDasmMonoSpriteDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDasmMultiSpriteDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDasmTextDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDasmNumTextDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDasmZeroTextDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDasmHighTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, 146, Short.MAX_VALUE) .addComponent(jLabelDasmShiftTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, 146, Short.MAX_VALUE) .addComponent(jLabelDasmScreenTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, 146, Short.MAX_VALUE) .addComponent(jLabelDasmTribyteDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDasmLongDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDasmAddressDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDasmPetasciiTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(jLabelDasmWordDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDasmByteDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDasmLabelDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabelDasmStarting, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonDasmProcStarting) .addComponent(jRadioButtonDasmDotOrigin) .addComponent(jRadioButtonDasmSemicolonComment) .addComponent(jRadioButtonDasmSemicolonBlockComment) .addComponent(jRadioButtonDasmLabelName) .addComponent(jRadioButtonDasmDotByte) .addComponent(jRadioButtonDasmDotWord) .addComponent(jRadioButtonDasmDcDotSWordSwapped) .addComponent(jRadioButtonDasmMacroTribyte) .addComponent(jRadioButtonDasmDotLong) .addComponent(jRadioButtonDasmDotWordAddress) .addComponent(jRadioButtonDasmMacroStackWord) .addComponent(jRadioButtonDasmByteHexMonoSprite) .addComponent(jRadioButtonDasmByteHexMultiSprite) .addComponent(jRadioButtonDasmDotByteText) .addComponent(jRadioButtonDasmDotByteNumText) .addComponent(jRadioButtonDasmDotByteZeroText) .addComponent(jRadioButtonDasmDotByteHighText) .addComponent(jRadioButtonDasmDotByteShiftText) .addComponent(jRadioButtonDasmDotByteScreenText) .addComponent(jRadioButtonDasmDotBytePetasciiText)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneDasmLabelName15) .addComponent(jScrollPaneDasmLabelName8) .addComponent(jScrollPaneDasmLabelName1) .addComponent(jScrollPaneDasmLabelName3) .addComponent(jScrollPaneDasmLabelName) .addComponent(jScrollPaneDasmDotByte) .addComponent(jScrollPaneDasmDotWord) .addComponent(jScrollPaneDasmDcDotSWordSwapped) .addComponent(jScrollPaneDasmMacroTribyte, javax.swing.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE) .addComponent(jScrollPaneDasmDotWordAddress) .addComponent(jScrollPaneDasmMacroStackWord) .addComponent(jScrollPaneDasmByteHexMonoSprite) .addComponent(jScrollPaneDasmByteHexMultiSprite) .addComponent(jScrollPaneDasmDotByteText) .addComponent(jScrollPaneDasmDotByteNumText) .addComponent(jScrollPaneDasmDotByteZeroText) .addComponent(jScrollPaneDasmDotByteHighText) .addComponent(jScrollPaneDasmDotByteShiftText) .addComponent(jScrollPaneDasmDotByteScreenText) .addComponent(jScrollPaneDasmDotBytePetasciiText) .addComponent(jScrollPaneDasmDotLong)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonDasmOrigin) .addComponent(jRadioButtonDasmCstyleComment) .addComponent(jRadioButtonDasmCstyleBlockComment) .addComponent(jRadioButtonDasmLabelNameColon) .addComponent(jRadioButtonDasmByte) .addComponent(jRadioButtonDasmWord) .addComponent(jRadioButtonDasmLong) .addComponent(jRadioButtonDasmWordAddress) .addComponent(jRadioButtonDasmByteBinMonoSprite) .addComponent(jRadioButtonDasmByteBinMultiSprite) .addComponent(jRadioButtonDasmByteText) .addComponent(jRadioButtonDasmByteNumText) .addComponent(jRadioButtonDasmByteZeroText) .addComponent(jRadioButtonDasmByteHighText) .addComponent(jRadioButtonDasmByteShiftText) .addComponent(jRadioButtonDasmByteScreenText) .addComponent(jRadioButtonDasmBytePetasciiText)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jScrollPaneDasmByteNumText, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneDasmByteZeroText, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jScrollPaneDasmByteBinMonoSprite, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneDasmByteBinMultiSprite, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneDasmByteText, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jScrollPaneDasmCstyleComment) .addComponent(jScrollPaneDasmLabelName4) .addComponent(jScrollPaneDasmLabelNameColon) .addComponent(jScrollPaneDasmByte) .addComponent(jScrollPaneDasmWord) .addComponent(jScrollPaneDasmWordAddress) .addComponent(jScrollPaneDasmLong) .addComponent(jScrollPaneDasmLabelName9, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jScrollPaneDasmByteHighText, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneDasmByteShiftText, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneDasmByteScreenText, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneDasmBytePetAsciiText, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonDasmIfBlockComment) .addComponent(jRadioButtonDasmDcByte) .addComponent(jRadioButtonDasmDcWWord) .addComponent(jRadioButtonDasmDcLLong) .addComponent(jRadioButtonDasmDcWWordAddress) .addComponent(jRadioButtonDasmMacroHexMonoSprite) .addComponent(jRadioButtonDasmMacroHexMultiSprite) .addComponent(jRadioButtonDasmDcText) .addComponent(jRadioButtonDasmDcNumText) .addComponent(jRadioButtonDasmDcZeroText) .addComponent(jRadioButtonDasmDcHighText) .addComponent(jRadioButtonDasmDcShiftText) .addComponent(jRadioButtonDasmDcScreentText) .addComponent(jRadioButtonDasmDcPetasciiText)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneDasmLabelName5) .addComponent(jScrollPaneDasmDcWWord) .addComponent(jScrollPaneDasmDcLLong, javax.swing.GroupLayout.DEFAULT_SIZE, 131, Short.MAX_VALUE) .addComponent(jScrollPaneDasmDcWWordAddress) .addComponent(jScrollPaneDasmMacroHexMonoSprite) .addComponent(jScrollPaneDasmMacroHexMultiSprite) .addComponent(jScrollPaneDasmMacroHexMonoSprite1) .addComponent(jScrollPaneDasmDcNumText) .addComponent(jScrollPaneDasmDcZeroText) .addComponent(jScrollPaneDasmDcZeroHighText) .addComponent(jScrollPaneDasmDcZeroShiftText) .addComponent(jScrollPaneDasmDcZeroScreenText) .addComponent(jScrollPaneDasmDcZeroPetasciiText) .addComponent(jScrollPaneDasmDcByte)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonDasmDcBByte) .addComponent(jRadioButtonDasmMacroBinMonoSprite) .addComponent(jRadioButtonDasmMacroBinMultiSprite) .addComponent(jRadioButtonDasmDcDotBText) .addComponent(jRadioButtonDasmDcDotBNumText) .addComponent(jRadioButtonDasmDcDotBZeroText) .addComponent(jRadioButtonDasmDcDotBHighText) .addComponent(jRadioButtonDasmDcDotBShiftText) .addComponent(jRadioButtonDasmDcDotBScreenText) .addComponent(jRadioButtonDasmDcDotBPetasciiText)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jScrollPaneDasmDcDotBText) .addComponent(jScrollPaneDasmDcDotBNumText) .addComponent(jScrollPaneDasmDcDotBZeroText) .addComponent(jScrollPaneDasmDcDotBHighText) .addComponent(jScrollPaneDasmDcDotBShiftText) .addComponent(jScrollPaneDasmDcDotBScreenText) .addComponent(jScrollPaneDasmDcDotBPetasciiText) .addComponent(jScrollPaneDasmMacroBinMonoSprite) .addComponent(jScrollPaneDasmDCBByte) .addComponent(jScrollPaneDasmMacroBinMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(45, 45, 45)) .addGroup(layout.createSequentialGroup() .addComponent(jCheckBoxDasmF3Comp, javax.swing.GroupLayout.PREFERRED_SIZE, 332, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jCheckBoxDasmF3Comp) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmStarting) .addComponent(jRadioButtonDasmProcStarting) .addComponent(jScrollPaneDasmLabelName15, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmOriginDeclaration) .addComponent(jRadioButtonDasmDotOrigin) .addComponent(jScrollPaneDasmLabelName8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmOrigin) .addComponent(jScrollPaneDasmLabelName9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(5, 5, 5) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmCommentDeclaration) .addComponent(jRadioButtonDasmSemicolonComment) .addComponent(jScrollPaneDasmLabelName1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmCstyleComment) .addComponent(jScrollPaneDasmCstyleComment, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmBlockCommentDeclaration) .addComponent(jRadioButtonDasmSemicolonBlockComment) .addComponent(jScrollPaneDasmLabelName3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmCstyleBlockComment) .addComponent(jScrollPaneDasmLabelName4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmIfBlockComment) .addComponent(jScrollPaneDasmLabelName5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmLabelDeclaration) .addComponent(jRadioButtonDasmLabelName) .addComponent(jScrollPaneDasmLabelName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmLabelNameColon) .addComponent(jScrollPaneDasmLabelNameColon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmByteDeclaration) .addComponent(jRadioButtonDasmDotByte) .addComponent(jScrollPaneDasmDotByte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmByte) .addComponent(jScrollPaneDasmByte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcByte) .addComponent(jScrollPaneDasmDcByte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcBByte) .addComponent(jScrollPaneDasmDCBByte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmWordDeclaration) .addComponent(jRadioButtonDasmDotWord) .addComponent(jScrollPaneDasmDotWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmWord) .addComponent(jScrollPaneDasmWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneDasmDcWWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcWWord)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmWordSwappedDeclaration) .addComponent(jRadioButtonDasmDcDotSWordSwapped) .addComponent(jScrollPaneDasmDcDotSWordSwapped, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmTribyteDeclaration) .addComponent(jRadioButtonDasmMacroTribyte) .addComponent(jScrollPaneDasmMacroTribyte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmLongDeclaration) .addComponent(jRadioButtonDasmDotLong) .addComponent(jScrollPaneDasmDotLong, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmLong) .addComponent(jScrollPaneDasmLong, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcLLong) .addComponent(jScrollPaneDasmDcLLong, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmAddressDeclaration) .addComponent(jRadioButtonDasmDotWordAddress) .addComponent(jScrollPaneDasmDotWordAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmWordAddress) .addComponent(jScrollPaneDasmWordAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcWWordAddress) .addComponent(jScrollPaneDasmDcWWordAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmStackWordDeclaration) .addComponent(jRadioButtonDasmMacroStackWord) .addComponent(jScrollPaneDasmMacroStackWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmMonoSpriteDeclaration) .addComponent(jRadioButtonDasmByteHexMonoSprite) .addComponent(jScrollPaneDasmByteHexMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmByteBinMonoSprite) .addComponent(jScrollPaneDasmByteBinMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmMacroHexMonoSprite) .addComponent(jScrollPaneDasmMacroHexMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmMacroBinMonoSprite) .addComponent(jScrollPaneDasmMacroBinMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmMultiSpriteDeclaration) .addComponent(jRadioButtonDasmByteHexMultiSprite) .addComponent(jScrollPaneDasmByteHexMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmByteBinMultiSprite) .addComponent(jScrollPaneDasmByteBinMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmMacroHexMultiSprite) .addComponent(jScrollPaneDasmMacroHexMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmMacroBinMultiSprite) .addComponent(jScrollPaneDasmMacroBinMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmTextDeclaration) .addComponent(jRadioButtonDasmDotByteText) .addComponent(jScrollPaneDasmDotByteText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmByteText) .addComponent(jScrollPaneDasmByteText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcText) .addComponent(jScrollPaneDasmMacroHexMonoSprite1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcDotBText) .addComponent(jScrollPaneDasmDcDotBText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmNumTextDeclaration) .addComponent(jRadioButtonDasmDotByteNumText) .addComponent(jScrollPaneDasmDotByteNumText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmByteNumText) .addComponent(jScrollPaneDasmByteNumText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcNumText) .addComponent(jScrollPaneDasmDcNumText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcDotBNumText) .addComponent(jScrollPaneDasmDcDotBNumText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmZeroTextDeclaration) .addComponent(jRadioButtonDasmDotByteZeroText) .addComponent(jScrollPaneDasmDotByteZeroText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmByteZeroText) .addComponent(jScrollPaneDasmByteZeroText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcZeroText) .addComponent(jScrollPaneDasmDcZeroText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcDotBZeroText) .addComponent(jScrollPaneDasmDcDotBZeroText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmHighTextDeclaration) .addComponent(jRadioButtonDasmDotByteHighText) .addComponent(jScrollPaneDasmDotByteHighText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmByteHighText) .addComponent(jScrollPaneDasmByteHighText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcHighText) .addComponent(jScrollPaneDasmDcZeroHighText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcDotBHighText) .addComponent(jScrollPaneDasmDcDotBHighText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmShiftTextDeclaration) .addComponent(jRadioButtonDasmDotByteShiftText) .addComponent(jScrollPaneDasmDotByteShiftText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmByteShiftText) .addComponent(jScrollPaneDasmByteShiftText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcShiftText) .addComponent(jScrollPaneDasmDcZeroShiftText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcDotBShiftText) .addComponent(jScrollPaneDasmDcDotBShiftText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmScreenTextDeclaration) .addComponent(jRadioButtonDasmDotByteScreenText) .addComponent(jScrollPaneDasmDotByteScreenText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmByteScreenText) .addComponent(jScrollPaneDasmByteScreenText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcScreentText) .addComponent(jScrollPaneDasmDcZeroScreenText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcDotBScreenText) .addComponent(jScrollPaneDasmDcDotBScreenText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDasmPetasciiTextDeclaration) .addComponent(jRadioButtonDasmDotBytePetasciiText) .addComponent(jScrollPaneDasmDotBytePetasciiText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmBytePetasciiText) .addComponent(jScrollPaneDasmBytePetAsciiText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcPetasciiText) .addComponent(jScrollPaneDasmDcZeroPetasciiText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmDcDotBPetasciiText) .addComponent(jScrollPaneDasmDcDotBPetasciiText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(34, 34, 34)) ); }// </editor-fold>//GEN-END:initComponents private void jCheckBoxDasmF3CompActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxDasmF3CompActionPerformed option.dasmF3Comp=jCheckBoxDasmF3Comp.isSelected(); }//GEN-LAST:event_jCheckBoxDasmF3CompActionPerformed private void jRadioButtonDasmDotByteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDotByteItemStateChanged option.dasmByte=Assembler.Byte.DOT_BYTE; }//GEN-LAST:event_jRadioButtonDasmDotByteItemStateChanged private void jRadioButtonDasmByteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmByteItemStateChanged option.dasmByte=Assembler.Byte.BYTE; }//GEN-LAST:event_jRadioButtonDasmByteItemStateChanged private void jRadioButtonDasmDcByteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcByteItemStateChanged option.dasmByte=Assembler.Byte.DC_BYTE; }//GEN-LAST:event_jRadioButtonDasmDcByteItemStateChanged private void jRadioButtonDasmLabelNameItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmLabelNameItemStateChanged option.dasmLabel=Assembler.Label.NAME; }//GEN-LAST:event_jRadioButtonDasmLabelNameItemStateChanged private void jRadioButtonDasmLabelNameColonItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmLabelNameColonItemStateChanged option.dasmLabel=Assembler.Label.NAME_COLON; }//GEN-LAST:event_jRadioButtonDasmLabelNameColonItemStateChanged private void jRadioButtonDasmDcBByteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcBByteItemStateChanged option.dasmByte=Assembler.Byte.DC_B_BYTE; }//GEN-LAST:event_jRadioButtonDasmDcBByteItemStateChanged private void jRadioButtonDasmDotWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDotWordItemStateChanged option.dasmWord=Assembler.Word.DOT_WORD; }//GEN-LAST:event_jRadioButtonDasmDotWordItemStateChanged private void jRadioButtonDasmWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmWordItemStateChanged option.dasmWord=Assembler.Word.WORD; }//GEN-LAST:event_jRadioButtonDasmWordItemStateChanged private void jRadioButtonDasmDcWWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcWWordItemStateChanged option.dasmWord=Assembler.Word.DC_W_WORD; }//GEN-LAST:event_jRadioButtonDasmDcWWordItemStateChanged private void jRadioButtonDasmCstyleCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmCstyleCommentItemStateChanged option.dasmComment=Assembler.Comment.CSTYLE; }//GEN-LAST:event_jRadioButtonDasmCstyleCommentItemStateChanged private void jRadioButtonDasmSemicolonCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmSemicolonCommentItemStateChanged option.dasmComment=Assembler.Comment.SEMICOLON; }//GEN-LAST:event_jRadioButtonDasmSemicolonCommentItemStateChanged private void jRadioButtonDasmSemicolonBlockCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmSemicolonBlockCommentItemStateChanged option.dasmBlockComment=Assembler.BlockComment.SEMICOLON; }//GEN-LAST:event_jRadioButtonDasmSemicolonBlockCommentItemStateChanged private void jRadioButtonDasmCstyleBlockCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmCstyleBlockCommentItemStateChanged option.dasmBlockComment=Assembler.BlockComment.CSTYLE; }//GEN-LAST:event_jRadioButtonDasmCstyleBlockCommentItemStateChanged private void jRadioButtonDasmIfBlockCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmIfBlockCommentItemStateChanged option.dasmBlockComment=Assembler.BlockComment.IF; }//GEN-LAST:event_jRadioButtonDasmIfBlockCommentItemStateChanged private void jRadioButtonDasmDotOriginItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDotOriginItemStateChanged option.dasmOrigin=Assembler.Origin.DOT_ORG; }//GEN-LAST:event_jRadioButtonDasmDotOriginItemStateChanged private void jRadioButtonDasmOriginItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmOriginItemStateChanged option.dasmOrigin=Assembler.Origin.ORG; }//GEN-LAST:event_jRadioButtonDasmOriginItemStateChanged private void jRadioButtonDasmProcStartingItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmProcStartingItemStateChanged option.dasmStarting=Assembler.Starting.PROC; }//GEN-LAST:event_jRadioButtonDasmProcStartingItemStateChanged private void jRadioButtonDasmByteHexMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmByteHexMonoSpriteItemStateChanged option.dasmMonoSprite=Assembler.MonoSprite.BYTE_HEX; }//GEN-LAST:event_jRadioButtonDasmByteHexMonoSpriteItemStateChanged private void jRadioButtonDasmByteBinMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmByteBinMonoSpriteItemStateChanged option.dasmMonoSprite=Assembler.MonoSprite.BYTE_BIN; }//GEN-LAST:event_jRadioButtonDasmByteBinMonoSpriteItemStateChanged private void jRadioButtonDasmMacroHexMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmMacroHexMonoSpriteItemStateChanged option.dasmMonoSprite=Assembler.MonoSprite.MACRO_HEX; }//GEN-LAST:event_jRadioButtonDasmMacroHexMonoSpriteItemStateChanged private void jRadioButtonDasmMacroBinMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmMacroBinMonoSpriteItemStateChanged option.dasmMonoSprite=Assembler.MonoSprite.MACRO_BIN; }//GEN-LAST:event_jRadioButtonDasmMacroBinMonoSpriteItemStateChanged private void jRadioButtonDasmByteHexMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmByteHexMultiSpriteItemStateChanged option.dasmMultiSprite=Assembler.MultiSprite.BYTE_HEX; }//GEN-LAST:event_jRadioButtonDasmByteHexMultiSpriteItemStateChanged private void jRadioButtonDasmByteBinMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmByteBinMultiSpriteItemStateChanged option.dasmMultiSprite=Assembler.MultiSprite.BYTE_BIN; }//GEN-LAST:event_jRadioButtonDasmByteBinMultiSpriteItemStateChanged private void jRadioButtonDasmMacroHexMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmMacroHexMultiSpriteItemStateChanged option.dasmMultiSprite=Assembler.MultiSprite.MACRO_HEX; }//GEN-LAST:event_jRadioButtonDasmMacroHexMultiSpriteItemStateChanged private void jRadioButtonDasmMacroBinMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmMacroBinMultiSpriteItemStateChanged option.dasmMultiSprite=Assembler.MultiSprite.MACRO_BIN; }//GEN-LAST:event_jRadioButtonDasmMacroBinMultiSpriteItemStateChanged private void jRadioButtonDasmMacroTribyteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmMacroTribyteItemStateChanged option.dasmTribyte=Assembler.Tribyte.MACRO_TRIBYTE; }//GEN-LAST:event_jRadioButtonDasmMacroTribyteItemStateChanged private void jRadioButtonDasmDotLongItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDotLongItemStateChanged option.dasmLong=Assembler.Long.DOT_LONG; }//GEN-LAST:event_jRadioButtonDasmDotLongItemStateChanged private void jRadioButtonDasmLongItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmLongItemStateChanged option.dasmLong=Assembler.Long.LONG; }//GEN-LAST:event_jRadioButtonDasmLongItemStateChanged private void jRadioButtonDasmDcLLongItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcLLongItemStateChanged option.dasmLong=Assembler.Long.DOT_DC_L_LONG; }//GEN-LAST:event_jRadioButtonDasmDcLLongItemStateChanged private void jRadioButtonDasmDcDotSWordSwappedItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcDotSWordSwappedItemStateChanged option.dasmWordSwapped=Assembler.WordSwapped.DC_DOT_S_WORD_SWAPPED; }//GEN-LAST:event_jRadioButtonDasmDcDotSWordSwappedItemStateChanged private void jRadioButtonDasmDotByteTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDotByteTextItemStateChanged option.dasmText=Assembler.Text.DOT_BYTE_TEXT; }//GEN-LAST:event_jRadioButtonDasmDotByteTextItemStateChanged private void jRadioButtonDasmByteTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmByteTextItemStateChanged option.dasmText=Assembler.Text.BYTE_TEXT; }//GEN-LAST:event_jRadioButtonDasmByteTextItemStateChanged private void jRadioButtonDasmDcTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcTextItemStateChanged option.dasmText=Assembler.Text.DC_BYTE_TEXT; }//GEN-LAST:event_jRadioButtonDasmDcTextItemStateChanged private void jRadioButtonDasmDcDotBTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcDotBTextItemStateChanged option.dasmText=Assembler.Text.DC_B_BYTE_TEXT; }//GEN-LAST:event_jRadioButtonDasmDcDotBTextItemStateChanged private void jRadioButtonDasmDotByteNumTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDotByteNumTextItemStateChanged option.dasmNumText=Assembler.NumText.DOT_BYTE_NUMTEXT; }//GEN-LAST:event_jRadioButtonDasmDotByteNumTextItemStateChanged private void jRadioButtonDasmByteNumTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmByteNumTextItemStateChanged option.dasmNumText=Assembler.NumText.BYTE_NUMTEXT; }//GEN-LAST:event_jRadioButtonDasmByteNumTextItemStateChanged private void jRadioButtonDasmDcNumTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcNumTextItemStateChanged option.dasmNumText=Assembler.NumText.DC_NUMTEXT; }//GEN-LAST:event_jRadioButtonDasmDcNumTextItemStateChanged private void jRadioButtonDasmDcDotBNumTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcDotBNumTextItemStateChanged option.dasmNumText=Assembler.NumText.DC_DOT_B_NUMTEXT; }//GEN-LAST:event_jRadioButtonDasmDcDotBNumTextItemStateChanged private void jRadioButtonDasmDotByteZeroTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDotByteZeroTextItemStateChanged option.dasmZeroText=Assembler.ZeroText.DOT_BYTE_ZEROTEXT; }//GEN-LAST:event_jRadioButtonDasmDotByteZeroTextItemStateChanged private void jRadioButtonDasmByteZeroTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmByteZeroTextItemStateChanged option.dasmZeroText=Assembler.ZeroText.BYTE_ZEROTEXT; }//GEN-LAST:event_jRadioButtonDasmByteZeroTextItemStateChanged private void jRadioButtonDasmDcZeroTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcZeroTextItemStateChanged option.dasmZeroText=Assembler.ZeroText.DC_BYTE_ZEROTEXT; }//GEN-LAST:event_jRadioButtonDasmDcZeroTextItemStateChanged private void jRadioButtonDasmDcDotBZeroTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcDotBZeroTextItemStateChanged option.dasmZeroText=Assembler.ZeroText.DC_B_BYTE_ZEROTEXT; }//GEN-LAST:event_jRadioButtonDasmDcDotBZeroTextItemStateChanged private void jRadioButtonDasmDotWordAddressItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDotWordAddressItemStateChanged option.dasmAddress=Assembler.Address.DOT_WORD_ADDR; }//GEN-LAST:event_jRadioButtonDasmDotWordAddressItemStateChanged private void jRadioButtonDasmWordAddressItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmWordAddressItemStateChanged option.dasmAddress=Assembler.Address.WORD_ADDR; }//GEN-LAST:event_jRadioButtonDasmWordAddressItemStateChanged private void jRadioButtonDasmDcWWordAddressItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcWWordAddressItemStateChanged option.dasmAddress=Assembler.Address.DC_W_ADDR; }//GEN-LAST:event_jRadioButtonDasmDcWWordAddressItemStateChanged private void jRadioButtonDasmMacroStackWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmMacroStackWordItemStateChanged option.dasmStackWord=Assembler.StackWord.MACRO_STACKWORD; }//GEN-LAST:event_jRadioButtonDasmMacroStackWordItemStateChanged private void jRadioButtonDasmDotByteHighTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDotByteHighTextItemStateChanged option.dasmHighText=Assembler.HighText.DC_BYTE_HIGHTEXT; }//GEN-LAST:event_jRadioButtonDasmDotByteHighTextItemStateChanged private void jRadioButtonDasmByteHighTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmByteHighTextItemStateChanged option.dasmHighText=Assembler.HighText.BYTE_HIGHTEXT; }//GEN-LAST:event_jRadioButtonDasmByteHighTextItemStateChanged private void jRadioButtonDasmDcHighTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcHighTextItemStateChanged option.dasmHighText=Assembler.HighText.DC_BYTE_HIGHTEXT; }//GEN-LAST:event_jRadioButtonDasmDcHighTextItemStateChanged private void jRadioButtonDasmDcDotBHighTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcDotBHighTextItemStateChanged option.dasmHighText=Assembler.HighText.DC_B_BYTE_HIGHTEXT; }//GEN-LAST:event_jRadioButtonDasmDcDotBHighTextItemStateChanged private void jRadioButtonDasmDotByteShiftTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDotByteShiftTextItemStateChanged option.dasmShiftText=Assembler.ShiftText.DOT_BYTE_SHIFTTEXT; }//GEN-LAST:event_jRadioButtonDasmDotByteShiftTextItemStateChanged private void jRadioButtonDasmByteShiftTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmByteShiftTextItemStateChanged option.dasmShiftText=Assembler.ShiftText.BYTE_SHIFTTEXT; }//GEN-LAST:event_jRadioButtonDasmByteShiftTextItemStateChanged private void jRadioButtonDasmDcShiftTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcShiftTextItemStateChanged option.dasmShiftText=Assembler.ShiftText.DC_BYTE_SHIFTTEXT; }//GEN-LAST:event_jRadioButtonDasmDcShiftTextItemStateChanged private void jRadioButtonDasmDcDotBShiftTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcDotBShiftTextItemStateChanged option.dasmShiftText=Assembler.ShiftText.DC_B_BYTE_SHIFTTEXT; }//GEN-LAST:event_jRadioButtonDasmDcDotBShiftTextItemStateChanged private void jRadioButtonDasmDotByteScreenTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDotByteScreenTextItemStateChanged option.dasmScreenText=Assembler.ScreenText.DOT_BYTE_SCREENTEXT; }//GEN-LAST:event_jRadioButtonDasmDotByteScreenTextItemStateChanged private void jRadioButtonDasmByteScreenTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmByteScreenTextItemStateChanged option.dasmScreenText=Assembler.ScreenText.BYTE_SCREENTEXT; }//GEN-LAST:event_jRadioButtonDasmByteScreenTextItemStateChanged private void jRadioButtonDasmDcScreentTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcScreentTextItemStateChanged option.dasmScreenText=Assembler.ScreenText.DC_BYTE_SCREENTEXT; }//GEN-LAST:event_jRadioButtonDasmDcScreentTextItemStateChanged private void jRadioButtonDasmDcDotBScreenTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcDotBScreenTextItemStateChanged option.dasmScreenText=Assembler.ScreenText.DC_B_BYTE_SCREENTEXT; }//GEN-LAST:event_jRadioButtonDasmDcDotBScreenTextItemStateChanged private void jRadioButtonDasmDotBytePetasciiTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDotBytePetasciiTextItemStateChanged option.dasmPetasciiText=Assembler.PetasciiText.DOT_BYTE_PETASCIITEXT; }//GEN-LAST:event_jRadioButtonDasmDotBytePetasciiTextItemStateChanged private void jRadioButtonDasmBytePetasciiTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmBytePetasciiTextItemStateChanged option.dasmPetasciiText=Assembler.PetasciiText.BYTE_PETASCIITEXT; }//GEN-LAST:event_jRadioButtonDasmBytePetasciiTextItemStateChanged private void jRadioButtonDasmDcPetasciiTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcPetasciiTextItemStateChanged option.dasmPetasciiText=Assembler.PetasciiText.DC_BYTE_PETASCIITEXT; }//GEN-LAST:event_jRadioButtonDasmDcPetasciiTextItemStateChanged private void jRadioButtonDasmDcDotBPetasciiTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmDcDotBPetasciiTextItemStateChanged option.dasmPetasciiText=Assembler.PetasciiText.DC_B_BYTE_PETASCIITEXT; }//GEN-LAST:event_jRadioButtonDasmDcDotBPetasciiTextItemStateChanged // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.ButtonGroup buttonGroupDasmAddress; private javax.swing.ButtonGroup buttonGroupDasmBlockComment; private javax.swing.ButtonGroup buttonGroupDasmByte; private javax.swing.ButtonGroup buttonGroupDasmComment; private javax.swing.ButtonGroup buttonGroupDasmHighText; private javax.swing.ButtonGroup buttonGroupDasmLabel; private javax.swing.ButtonGroup buttonGroupDasmLong; private javax.swing.ButtonGroup buttonGroupDasmMonoSprite; private javax.swing.ButtonGroup buttonGroupDasmMultiSprite; private javax.swing.ButtonGroup buttonGroupDasmNumText; private javax.swing.ButtonGroup buttonGroupDasmOrigin; private javax.swing.ButtonGroup buttonGroupDasmPetsciiText; private javax.swing.ButtonGroup buttonGroupDasmScreenText; private javax.swing.ButtonGroup buttonGroupDasmShiftText; private javax.swing.ButtonGroup buttonGroupDasmStackWord; private javax.swing.ButtonGroup buttonGroupDasmStarting; private javax.swing.ButtonGroup buttonGroupDasmText; private javax.swing.ButtonGroup buttonGroupDasmTribyte; private javax.swing.ButtonGroup buttonGroupDasmWord; private javax.swing.ButtonGroup buttonGroupDasmWordSwapped; private javax.swing.ButtonGroup buttonGroupDasmZeroText; private javax.swing.JCheckBox jCheckBoxDasmF3Comp; private javax.swing.JLabel jLabelDasmAddressDeclaration; private javax.swing.JLabel jLabelDasmBlockCommentDeclaration; private javax.swing.JLabel jLabelDasmByteDeclaration; private javax.swing.JLabel jLabelDasmCommentDeclaration; private javax.swing.JLabel jLabelDasmHighTextDeclaration; private javax.swing.JLabel jLabelDasmLabelDeclaration; private javax.swing.JLabel jLabelDasmLongDeclaration; private javax.swing.JLabel jLabelDasmMonoSpriteDeclaration; private javax.swing.JLabel jLabelDasmMultiSpriteDeclaration; private javax.swing.JLabel jLabelDasmNumTextDeclaration; private javax.swing.JLabel jLabelDasmOriginDeclaration; private javax.swing.JLabel jLabelDasmPetasciiTextDeclaration; private javax.swing.JLabel jLabelDasmScreenTextDeclaration; private javax.swing.JLabel jLabelDasmShiftTextDeclaration; private javax.swing.JLabel jLabelDasmStackWordDeclaration; private javax.swing.JLabel jLabelDasmStarting; private javax.swing.JLabel jLabelDasmTextDeclaration; private javax.swing.JLabel jLabelDasmTribyteDeclaration; private javax.swing.JLabel jLabelDasmWordDeclaration; private javax.swing.JLabel jLabelDasmWordSwappedDeclaration; private javax.swing.JLabel jLabelDasmZeroTextDeclaration; private javax.swing.JRadioButton jRadioButtonDasmByte; private javax.swing.JRadioButton jRadioButtonDasmByteBinMonoSprite; private javax.swing.JRadioButton jRadioButtonDasmByteBinMultiSprite; private javax.swing.JRadioButton jRadioButtonDasmByteHexMonoSprite; private javax.swing.JRadioButton jRadioButtonDasmByteHexMultiSprite; private javax.swing.JRadioButton jRadioButtonDasmByteHighText; private javax.swing.JRadioButton jRadioButtonDasmByteNumText; private javax.swing.JRadioButton jRadioButtonDasmBytePetasciiText; private javax.swing.JRadioButton jRadioButtonDasmByteScreenText; private javax.swing.JRadioButton jRadioButtonDasmByteShiftText; private javax.swing.JRadioButton jRadioButtonDasmByteText; private javax.swing.JRadioButton jRadioButtonDasmByteZeroText; private javax.swing.JRadioButton jRadioButtonDasmCstyleBlockComment; private javax.swing.JRadioButton jRadioButtonDasmCstyleComment; private javax.swing.JRadioButton jRadioButtonDasmDcBByte; private javax.swing.JRadioButton jRadioButtonDasmDcByte; private javax.swing.JRadioButton jRadioButtonDasmDcDotBHighText; private javax.swing.JRadioButton jRadioButtonDasmDcDotBNumText; private javax.swing.JRadioButton jRadioButtonDasmDcDotBPetasciiText; private javax.swing.JRadioButton jRadioButtonDasmDcDotBScreenText; private javax.swing.JRadioButton jRadioButtonDasmDcDotBShiftText; private javax.swing.JRadioButton jRadioButtonDasmDcDotBText; private javax.swing.JRadioButton jRadioButtonDasmDcDotBZeroText; private javax.swing.JRadioButton jRadioButtonDasmDcDotSWordSwapped; private javax.swing.JRadioButton jRadioButtonDasmDcHighText; private javax.swing.JRadioButton jRadioButtonDasmDcLLong; private javax.swing.JRadioButton jRadioButtonDasmDcNumText; private javax.swing.JRadioButton jRadioButtonDasmDcPetasciiText; private javax.swing.JRadioButton jRadioButtonDasmDcScreentText; private javax.swing.JRadioButton jRadioButtonDasmDcShiftText; private javax.swing.JRadioButton jRadioButtonDasmDcText; private javax.swing.JRadioButton jRadioButtonDasmDcWWord; private javax.swing.JRadioButton jRadioButtonDasmDcWWordAddress; private javax.swing.JRadioButton jRadioButtonDasmDcZeroText; private javax.swing.JRadioButton jRadioButtonDasmDotByte; private javax.swing.JRadioButton jRadioButtonDasmDotByteHighText; private javax.swing.JRadioButton jRadioButtonDasmDotByteNumText; private javax.swing.JRadioButton jRadioButtonDasmDotBytePetasciiText; private javax.swing.JRadioButton jRadioButtonDasmDotByteScreenText; private javax.swing.JRadioButton jRadioButtonDasmDotByteShiftText; private javax.swing.JRadioButton jRadioButtonDasmDotByteText; private javax.swing.JRadioButton jRadioButtonDasmDotByteZeroText; private javax.swing.JRadioButton jRadioButtonDasmDotLong; private javax.swing.JRadioButton jRadioButtonDasmDotOrigin; private javax.swing.JRadioButton jRadioButtonDasmDotWord; private javax.swing.JRadioButton jRadioButtonDasmDotWordAddress; private javax.swing.JRadioButton jRadioButtonDasmIfBlockComment; private javax.swing.JRadioButton jRadioButtonDasmLabelName; private javax.swing.JRadioButton jRadioButtonDasmLabelNameColon; private javax.swing.JRadioButton jRadioButtonDasmLong; private javax.swing.JRadioButton jRadioButtonDasmMacroBinMonoSprite; private javax.swing.JRadioButton jRadioButtonDasmMacroBinMultiSprite; private javax.swing.JRadioButton jRadioButtonDasmMacroHexMonoSprite; private javax.swing.JRadioButton jRadioButtonDasmMacroHexMultiSprite; private javax.swing.JRadioButton jRadioButtonDasmMacroStackWord; private javax.swing.JRadioButton jRadioButtonDasmMacroTribyte; private javax.swing.JRadioButton jRadioButtonDasmOrigin; private javax.swing.JRadioButton jRadioButtonDasmProcStarting; private javax.swing.JRadioButton jRadioButtonDasmSemicolonBlockComment; private javax.swing.JRadioButton jRadioButtonDasmSemicolonComment; private javax.swing.JRadioButton jRadioButtonDasmWord; private javax.swing.JRadioButton jRadioButtonDasmWordAddress; private javax.swing.JScrollPane jScrollPaneDasmByte; private javax.swing.JScrollPane jScrollPaneDasmByteBinMonoSprite; private javax.swing.JScrollPane jScrollPaneDasmByteBinMultiSprite; private javax.swing.JScrollPane jScrollPaneDasmByteHexMonoSprite; private javax.swing.JScrollPane jScrollPaneDasmByteHexMultiSprite; private javax.swing.JScrollPane jScrollPaneDasmByteHighText; private javax.swing.JScrollPane jScrollPaneDasmByteNumText; private javax.swing.JScrollPane jScrollPaneDasmBytePetAsciiText; private javax.swing.JScrollPane jScrollPaneDasmByteScreenText; private javax.swing.JScrollPane jScrollPaneDasmByteShiftText; private javax.swing.JScrollPane jScrollPaneDasmByteText; private javax.swing.JScrollPane jScrollPaneDasmByteZeroText; private javax.swing.JScrollPane jScrollPaneDasmCstyleComment; private javax.swing.JScrollPane jScrollPaneDasmDCBByte; private javax.swing.JScrollPane jScrollPaneDasmDcByte; private javax.swing.JScrollPane jScrollPaneDasmDcDotBHighText; private javax.swing.JScrollPane jScrollPaneDasmDcDotBNumText; private javax.swing.JScrollPane jScrollPaneDasmDcDotBPetasciiText; private javax.swing.JScrollPane jScrollPaneDasmDcDotBScreenText; private javax.swing.JScrollPane jScrollPaneDasmDcDotBShiftText; private javax.swing.JScrollPane jScrollPaneDasmDcDotBText; private javax.swing.JScrollPane jScrollPaneDasmDcDotBZeroText; private javax.swing.JScrollPane jScrollPaneDasmDcDotSWordSwapped; private javax.swing.JScrollPane jScrollPaneDasmDcLLong; private javax.swing.JScrollPane jScrollPaneDasmDcNumText; private javax.swing.JScrollPane jScrollPaneDasmDcWWord; private javax.swing.JScrollPane jScrollPaneDasmDcWWordAddress; private javax.swing.JScrollPane jScrollPaneDasmDcZeroHighText; private javax.swing.JScrollPane jScrollPaneDasmDcZeroPetasciiText; private javax.swing.JScrollPane jScrollPaneDasmDcZeroScreenText; private javax.swing.JScrollPane jScrollPaneDasmDcZeroShiftText; private javax.swing.JScrollPane jScrollPaneDasmDcZeroText; private javax.swing.JScrollPane jScrollPaneDasmDotByte; private javax.swing.JScrollPane jScrollPaneDasmDotByteHighText; private javax.swing.JScrollPane jScrollPaneDasmDotByteNumText; private javax.swing.JScrollPane jScrollPaneDasmDotBytePetasciiText; private javax.swing.JScrollPane jScrollPaneDasmDotByteScreenText; private javax.swing.JScrollPane jScrollPaneDasmDotByteShiftText; private javax.swing.JScrollPane jScrollPaneDasmDotByteText; private javax.swing.JScrollPane jScrollPaneDasmDotByteZeroText; private javax.swing.JScrollPane jScrollPaneDasmDotLong; private javax.swing.JScrollPane jScrollPaneDasmDotWord; private javax.swing.JScrollPane jScrollPaneDasmDotWordAddress; private javax.swing.JScrollPane jScrollPaneDasmLabelName; private javax.swing.JScrollPane jScrollPaneDasmLabelName1; private javax.swing.JScrollPane jScrollPaneDasmLabelName15; private javax.swing.JScrollPane jScrollPaneDasmLabelName3; private javax.swing.JScrollPane jScrollPaneDasmLabelName4; private javax.swing.JScrollPane jScrollPaneDasmLabelName5; private javax.swing.JScrollPane jScrollPaneDasmLabelName8; private javax.swing.JScrollPane jScrollPaneDasmLabelName9; private javax.swing.JScrollPane jScrollPaneDasmLabelNameColon; private javax.swing.JScrollPane jScrollPaneDasmLong; private javax.swing.JScrollPane jScrollPaneDasmMacroBinMonoSprite; private javax.swing.JScrollPane jScrollPaneDasmMacroBinMultiSprite; private javax.swing.JScrollPane jScrollPaneDasmMacroHexMonoSprite; private javax.swing.JScrollPane jScrollPaneDasmMacroHexMonoSprite1; private javax.swing.JScrollPane jScrollPaneDasmMacroHexMultiSprite; private javax.swing.JScrollPane jScrollPaneDasmMacroStackWord; private javax.swing.JScrollPane jScrollPaneDasmMacroTribyte; private javax.swing.JScrollPane jScrollPaneDasmWord; private javax.swing.JScrollPane jScrollPaneDasmWordAddress; private javax.swing.JTextPane jTextPaneDasmByte; private javax.swing.JTextPane jTextPaneDasmByteBinMonoSprite; private javax.swing.JTextPane jTextPaneDasmByteBinMultiSprite; private javax.swing.JTextPane jTextPaneDasmByteHexMonoSprite; private javax.swing.JTextPane jTextPaneDasmByteHexMultiSprite; private javax.swing.JTextPane jTextPaneDasmByteHighText; private javax.swing.JTextPane jTextPaneDasmByteNumText; private javax.swing.JTextPane jTextPaneDasmBytePetasciiText; private javax.swing.JTextPane jTextPaneDasmByteScreenText; private javax.swing.JTextPane jTextPaneDasmByteShiftText; private javax.swing.JTextPane jTextPaneDasmByteText; private javax.swing.JTextPane jTextPaneDasmByteZeroText; private javax.swing.JTextPane jTextPaneDasmCstyleBlockComment; private javax.swing.JTextPane jTextPaneDasmCstyleComment; private javax.swing.JTextPane jTextPaneDasmDcBByte; private javax.swing.JTextPane jTextPaneDasmDcByte; private javax.swing.JTextPane jTextPaneDasmDcDotBHighText; private javax.swing.JTextPane jTextPaneDasmDcDotBNumText; private javax.swing.JTextPane jTextPaneDasmDcDotBPetasciText; private javax.swing.JTextPane jTextPaneDasmDcDotBScreenText; private javax.swing.JTextPane jTextPaneDasmDcDotBShiftText; private javax.swing.JTextPane jTextPaneDasmDcDotBText; private javax.swing.JTextPane jTextPaneDasmDcDotBZeroText; private javax.swing.JTextPane jTextPaneDasmDcDotSWordSwapped; private javax.swing.JTextPane jTextPaneDasmDcLLong; private javax.swing.JTextPane jTextPaneDasmDcNumText; private javax.swing.JTextPane jTextPaneDasmDcText; private javax.swing.JTextPane jTextPaneDasmDcWWord; private javax.swing.JTextPane jTextPaneDasmDcWWordAddress; private javax.swing.JTextPane jTextPaneDasmDcZeroHighText; private javax.swing.JTextPane jTextPaneDasmDcZeroPetasciText; private javax.swing.JTextPane jTextPaneDasmDcZeroScreenText; private javax.swing.JTextPane jTextPaneDasmDcZeroShiftText; private javax.swing.JTextPane jTextPaneDasmDcZeroText; private javax.swing.JTextPane jTextPaneDasmDotByte; private javax.swing.JTextPane jTextPaneDasmDotByteHighText; private javax.swing.JTextPane jTextPaneDasmDotByteNumText; private javax.swing.JTextPane jTextPaneDasmDotBytePetasciiText; private javax.swing.JTextPane jTextPaneDasmDotByteScreenText; private javax.swing.JTextPane jTextPaneDasmDotByteShiftText; private javax.swing.JTextPane jTextPaneDasmDotByteText; private javax.swing.JTextPane jTextPaneDasmDotByteZeroText; private javax.swing.JTextPane jTextPaneDasmDotLong; private javax.swing.JTextPane jTextPaneDasmDotOrigin; private javax.swing.JTextPane jTextPaneDasmDotWord; private javax.swing.JTextPane jTextPaneDasmDotWordAddress; private javax.swing.JTextPane jTextPaneDasmIfBlockComment; private javax.swing.JTextPane jTextPaneDasmLabelName; private javax.swing.JTextPane jTextPaneDasmLabelNameColon; private javax.swing.JTextPane jTextPaneDasmLong; private javax.swing.JTextPane jTextPaneDasmMacroBinMonoSprite; private javax.swing.JTextPane jTextPaneDasmMacroBinMultiSprite; private javax.swing.JTextPane jTextPaneDasmMacroHexMonoSprite; private javax.swing.JTextPane jTextPaneDasmMacroHexMultiSprite; private javax.swing.JTextPane jTextPaneDasmMacroStackWord; private javax.swing.JTextPane jTextPaneDasmMacroTribyte; private javax.swing.JTextPane jTextPaneDasmOrigin; private javax.swing.JTextPane jTextPaneDasmProcStarting; private javax.swing.JTextPane jTextPaneDasmSemicolonBlockComment; private javax.swing.JTextPane jTextPaneDasmSemicolonComment; private javax.swing.JTextPane jTextPaneDasmWord; private javax.swing.JTextPane jTextPaneDasmWordAddress; // End of variables declaration//GEN-END:variables /** * Apply the option for DASM */ public void applyOptionDasm() { //DASM jCheckBoxDasmF3Comp.setSelected(option.dasmF3Comp); switch (option.dasmStarting) { case PROC: jRadioButtonDasmProcStarting.setSelected(true); break; } switch (option.dasmLabel) { case NAME: jRadioButtonDasmLabelName.setSelected(true); break; case NAME_COLON: jRadioButtonDasmLabelNameColon.setSelected(true); break; } switch (option.dasmComment) { case SEMICOLON: jRadioButtonDasmSemicolonComment.setSelected(true); break; case CSTYLE: jRadioButtonDasmCstyleComment.setSelected(true); break; } switch (option.dasmBlockComment) { case SEMICOLON: jRadioButtonDasmSemicolonBlockComment.setSelected(true); break; case CSTYLE: jRadioButtonDasmCstyleBlockComment.setSelected(true); break; case IF: jRadioButtonDasmIfBlockComment.setSelected(true); break; } switch (option.dasmOrigin) { case DOT_ORG: jRadioButtonDasmDotOrigin.setSelected(true); break; case ORG: jRadioButtonDasmOrigin.setSelected(true); break; } switch (option.dasmByte) { case DOT_BYTE: jRadioButtonDasmDotByte.setSelected(true); break; case BYTE: jRadioButtonDasmByte.setSelected(true); break; case DC_BYTE: jRadioButtonDasmDcByte.setSelected(true); break; case DC_B_BYTE: jRadioButtonDasmDcBByte.setSelected(true); break; } switch (option.dasmWord) { case DOT_WORD: jRadioButtonDasmDotWord.setSelected(true); break; case WORD: jRadioButtonDasmWord.setSelected(true); break; case DC_W_WORD: jRadioButtonDasmDcWWord.setSelected(true); break; } switch (option.dasmWordSwapped) { case DC_DOT_S_WORD_SWAPPED: jRadioButtonDasmDcDotSWordSwapped.setSelected(true); break; } switch (option.dasmTribyte) { case MACRO_TRIBYTE: jRadioButtonDasmMacroTribyte.setSelected(true); break; } switch (option.dasmLong) { case DOT_LONG: jRadioButtonDasmDotLong.setSelected(true); break; case LONG: jRadioButtonDasmLong.setSelected(true); break; case DOT_DC_L_LONG: jRadioButtonDasmDcLLong.setSelected(true); break; } switch (option.dasmAddress) { case DOT_WORD_ADDR: jRadioButtonDasmDotWordAddress.setSelected(true); break; case WORD_ADDR: jRadioButtonDasmWordAddress.setSelected(true); break; case DC_W_ADDR: jRadioButtonDasmDcWWordAddress.setSelected(true); break; } switch (option.dasmStackWord) { case MACRO_STACKWORD: jRadioButtonDasmMacroStackWord.setSelected(true); break; } switch (option.dasmMonoSprite) { case BYTE_HEX: jRadioButtonDasmByteHexMonoSprite.setSelected(true); break; case BYTE_BIN: jRadioButtonDasmByteBinMonoSprite.setSelected(true); break; case MACRO_HEX: jRadioButtonDasmMacroHexMonoSprite.setSelected(true); break; case MACRO_BIN: jRadioButtonDasmMacroBinMonoSprite.setSelected(true); break; } switch (option.dasmMultiSprite) { case BYTE_HEX: jRadioButtonDasmByteHexMultiSprite.setSelected(true); break; case BYTE_BIN: jRadioButtonDasmByteBinMultiSprite.setSelected(true); break; case MACRO_HEX: jRadioButtonDasmMacroHexMultiSprite.setSelected(true); break; case MACRO_BIN: jRadioButtonDasmMacroBinMultiSprite.setSelected(true); break; } switch (option.dasmText) { case DOT_BYTE_TEXT: jRadioButtonDasmDotByteText.setSelected(true); break; case BYTE_TEXT: jRadioButtonDasmByteText.setSelected(true); break; case DC_BYTE_TEXT: jRadioButtonDasmDcText.setSelected(true); break; case DC_B_BYTE_TEXT: jRadioButtonDasmDcDotBText.setSelected(true); break; } switch (option.dasmNumText) { case DOT_BYTE_NUMTEXT: jRadioButtonDasmDotByteNumText.setSelected(true); break; case BYTE_NUMTEXT: jRadioButtonDasmByteNumText.setSelected(true); break; case DC_NUMTEXT: jRadioButtonDasmDcNumText.setSelected(true); break; case DC_DOT_B_NUMTEXT: jRadioButtonDasmDcDotBNumText.setSelected(true); break; } switch (option.dasmZeroText) { case DOT_BYTE_ZEROTEXT: jRadioButtonDasmDotByteZeroText.setSelected(true); break; case BYTE_ZEROTEXT: jRadioButtonDasmByteZeroText.setSelected(true); break; case DC_BYTE_ZEROTEXT: jRadioButtonDasmDcZeroText.setSelected(true); break; case DC_B_BYTE_ZEROTEXT: jRadioButtonDasmDcDotBZeroText.setSelected(true); break; } switch (option.dasmHighText) { case DOT_BYTE_HIGHTEXT: jRadioButtonDasmDotByteHighText.setSelected(true); break; case BYTE_HIGHTEXT: jRadioButtonDasmByteHighText.setSelected(true); break; case DC_BYTE_HIGHTEXT: jRadioButtonDasmDcHighText.setSelected(true); break; case DC_B_BYTE_HIGHTEXT: jRadioButtonDasmDcDotBHighText.setSelected(true); break; } switch (option.dasmShiftText) { case DOT_BYTE_SHIFTTEXT: jRadioButtonDasmDotByteShiftText.setSelected(true); break; case BYTE_SHIFTTEXT: jRadioButtonDasmByteShiftText.setSelected(true); break; case DC_BYTE_SHIFTTEXT: jRadioButtonDasmDcShiftText.setSelected(true); break; case DC_B_BYTE_SHIFTTEXT: jRadioButtonDasmDcDotBShiftText.setSelected(true); break; } switch (option.dasmScreenText) { case DOT_BYTE_SCREENTEXT: jRadioButtonDasmDotByteScreenText.setSelected(true); break; case BYTE_SCREENTEXT: jRadioButtonDasmByteScreenText.setSelected(true); break; case DC_BYTE_SCREENTEXT: jRadioButtonDasmDcScreentText.setSelected(true); break; case DC_B_BYTE_SCREENTEXT: jRadioButtonDasmDcDotBScreenText.setSelected(true); break; } switch (option.dasmPetasciiText) { case DOT_BYTE_PETASCIITEXT: jRadioButtonDasmDotBytePetasciiText.setSelected(true); break; case BYTE_PETASCIITEXT: jRadioButtonDasmBytePetasciiText.setSelected(true); break; case DC_BYTE_PETASCIITEXT: jRadioButtonDasmDcPetasciiText.setSelected(true); break; case DC_B_BYTE_PETASCIITEXT: jRadioButtonDasmDcDotBPetasciiText.setSelected(true); break; } } }
159,768
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
JTmpxPanel.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/JTmpxPanel.java
/* * @(#)JTmpxPanel 2022/05/02 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing; import sw_emulator.software.Assembler; import sw_emulator.swing.main.Option; /** * A panel for Tmpx assembler option * * @author ice */ public class JTmpxPanel extends javax.swing.JPanel { /** Option to use */ Option option; /** * Creates new form JTmpxPanel */ public JTmpxPanel() { initComponents(); } /** * Set up the panel with the option * * @param option the option to use */ public void setUp(Option option) { this.option=option; } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroupTmpxLabel = new javax.swing.ButtonGroup(); buttonGroupTmpxByte = new javax.swing.ButtonGroup(); buttonGroupTmpxWord = new javax.swing.ButtonGroup(); buttonGroupTmpxComment = new javax.swing.ButtonGroup(); buttonGroupTmpxBlockComment = new javax.swing.ButtonGroup(); buttonGroupTmpxOrigin = new javax.swing.ButtonGroup(); buttonGroupTmpxStarting = new javax.swing.ButtonGroup(); buttonGroupTmpxMonoSprite = new javax.swing.ButtonGroup(); buttonGroupTmpxMultiSprite = new javax.swing.ButtonGroup(); buttonGroupTmpxTribyte = new javax.swing.ButtonGroup(); buttonGroupTmpxLong = new javax.swing.ButtonGroup(); buttonGroupTmpxWordSwapped = new javax.swing.ButtonGroup(); buttonGroupTmpxText = new javax.swing.ButtonGroup(); buttonGroupTmpxNumText = new javax.swing.ButtonGroup(); buttonGroupTmpxZeroText = new javax.swing.ButtonGroup(); buttonGroupTmpxAddress = new javax.swing.ButtonGroup(); buttonGroupTmpxStackWord = new javax.swing.ButtonGroup(); buttonGroupTmpxHighText = new javax.swing.ButtonGroup(); buttonGroupTmpxShiftText = new javax.swing.ButtonGroup(); buttonGroupTmpxScreenText = new javax.swing.ButtonGroup(); buttonGroupTmpxPetasciiText = new javax.swing.ButtonGroup(); jLabelTmpxLabelDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxLabelName = new javax.swing.JRadioButton(); jScrollPaneTmpxByte = new javax.swing.JScrollPane(); jTextPaneTmpxLabelName = new javax.swing.JTextPane(); jLabelTmpxByteDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxDotByte = new javax.swing.JRadioButton(); jScrollPaneTmpxWord = new javax.swing.JScrollPane(); jTextPaneTmpxDotByte = new javax.swing.JTextPane(); jLabelTmpxWordDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxDotWord = new javax.swing.JRadioButton(); jScrollPaneTmpxDotWord = new javax.swing.JScrollPane(); jTextPaneTmpxDotWord = new javax.swing.JTextPane(); jLabelTmpxCommentDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxSemicolonComment = new javax.swing.JRadioButton(); jScrollPaneTmpxSemicolonComment = new javax.swing.JScrollPane(); jTextPaneTmpxSemicolonComment = new javax.swing.JTextPane(); jLabelTmpxBlockCommentDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxSemicolonBlockComment = new javax.swing.JRadioButton(); jScrollPaneTmpxSemicolonBlockComment = new javax.swing.JScrollPane(); jTextPaneTmpxSemicolonBlockComment = new javax.swing.JTextPane(); jLabelTmpxOriginDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxAsterixOrigin = new javax.swing.JRadioButton(); jScrollPaneTmpxAsterixOrigin = new javax.swing.JScrollPane(); jTextPaneTmpxAsterixOrigin = new javax.swing.JTextPane(); jRadioButtonTmpxDotIfBlockComment = new javax.swing.JRadioButton(); jScrollPaneTmpxDotIfBlockComment = new javax.swing.JScrollPane(); jTextPaneTmpxDotIfBlockComment = new javax.swing.JTextPane(); jLabelTmpxStartingDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxFakeStarting = new javax.swing.JRadioButton(); jScrollPaneTmpxFakeStarting = new javax.swing.JScrollPane(); jTextPaneTmpxFakeStarting = new javax.swing.JTextPane(); jLabelTmpxMonoSpriteDeclaration = new javax.swing.JLabel(); jLabelTmpxMultiSpriteDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxByteHexMonoSprite = new javax.swing.JRadioButton(); jRadioButtonTmpxByteHexMultiSprite = new javax.swing.JRadioButton(); jScrollPaneTmpxByteHexMultiSprite = new javax.swing.JScrollPane(); TmpxPaneTmpxByteHexMultiSprite = new javax.swing.JTextPane(); jScrollPaneTmpxByteHexMonoSprite = new javax.swing.JScrollPane(); jTextPaneTmpxByteHexMonoSprite = new javax.swing.JTextPane(); jRadioButtonTmpxByteBinMonoSprite = new javax.swing.JRadioButton(); jRadioButtonTmpxByteBinMultiSprite = new javax.swing.JRadioButton(); jScrollPaneTmpxByteBinMultiSprite = new javax.swing.JScrollPane(); jTextPaneTmpxByteBinMultiSprite = new javax.swing.JTextPane(); jScrollPaneTmpxByteBinMonoSprite = new javax.swing.JScrollPane(); jTextPaneTmpxByteBinMonoSprite = new javax.swing.JTextPane(); jRadioButtonTmpxMacroHexMonoSprite = new javax.swing.JRadioButton(); jRadioButtonTmpxMacroHexMultiSprite = new javax.swing.JRadioButton(); jScrollPaneTmpxMacroHexMultiSprite = new javax.swing.JScrollPane(); jTextPaneTmpxMacroHexMultiSprite = new javax.swing.JTextPane(); jScrollPaneTmpxMacroHexMonoSprite = new javax.swing.JScrollPane(); jTextPaneTmpxMacroHexMonoSprite = new javax.swing.JTextPane(); jRadioButtonTmpxMacroBinMonoSprite = new javax.swing.JRadioButton(); jRadioButtonTmpxMacroBinMultiSprite = new javax.swing.JRadioButton(); jScrollPaneTmpxMacroBinMultiSprite = new javax.swing.JScrollPane(); jTextPaneTmpxMacroBinMultiSprite = new javax.swing.JTextPane(); jScrollPaneTmpxMacroBinMonoSprite = new javax.swing.JScrollPane(); jTextPaneTmpxMacroBinMonoSprite = new javax.swing.JTextPane(); jLabelTmpxTribyteDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxMacroTribyte = new javax.swing.JRadioButton(); jScrollPaneTmpxMacroTribyte = new javax.swing.JScrollPane(); jTextPaneTmpxMacroTribyte = new javax.swing.JTextPane(); jLabelTmpxLongDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxMacroLong = new javax.swing.JRadioButton(); jScrollPaneTmpxMacroLong = new javax.swing.JScrollPane(); jTextPaneTmpxMacroLong = new javax.swing.JTextPane(); jLabelTmpxWordSwappedDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxMacroWordSwapped = new javax.swing.JRadioButton(); jScrollPaneTmpxMacroWordSwapped = new javax.swing.JScrollPane(); jTextPaneTmpxMacroWordSwapped = new javax.swing.JTextPane(); jLabelTmpxTextDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxDotText = new javax.swing.JRadioButton(); jScrollPaneTmpxDotText = new javax.swing.JScrollPane(); jTextPaneTmpxDotText = new javax.swing.JTextPane(); jLabelTmpxNumTextDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxPTextNumText = new javax.swing.JRadioButton(); jScrollPaneTmpxDotTextNumText = new javax.swing.JScrollPane(); jTextPaneTmpxDotTextNumText = new javax.swing.JTextPane(); jLabelTmpxZeroTextDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxDotNullZeroText = new javax.swing.JRadioButton(); jScrollPaneTmpxDotNullZeroText = new javax.swing.JScrollPane(); jTextPaneTmpxDotNullZeroText = new javax.swing.JTextPane(); jLabelTmpxAddressDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxDotAddrAddress = new javax.swing.JRadioButton(); jScrollPaneTmpxDotAddrAddress = new javax.swing.JScrollPane(); jTextPaneTmpxDotAddrAddress = new javax.swing.JTextPane(); jLabelTmpxStackWordDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxDotRdaStackWord = new javax.swing.JRadioButton(); jScrollPaneTmpxDotRtaStackWord = new javax.swing.JScrollPane(); jTextPaneTmpxDotRtaStackWord = new javax.swing.JTextPane(); jLabelTmpxHighTextDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxDotShiftHighText = new javax.swing.JRadioButton(); jScrollPaneTmpxDotShiftHighText = new javax.swing.JScrollPane(); jTextPaneTmpxDotShiftHighText = new javax.swing.JTextPane(); jLabelTmpxShiftTextDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxDotShiflShiftText = new javax.swing.JRadioButton(); jScrollPaneTmpxDotShiftlShiftText = new javax.swing.JScrollPane(); jTextPaneTmpxDotShiflShiftText = new javax.swing.JTextPane(); jLabelTmpxScreenTextDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxDotScreenText = new javax.swing.JRadioButton(); jScrollPaneTmpxDotScreenText = new javax.swing.JScrollPane(); jTextPaneTmpxDotScreenText = new javax.swing.JTextPane(); jLabelTmpxPetasciiTextDeclaration = new javax.swing.JLabel(); jRadioButtonTmpxDotPetasciiText = new javax.swing.JRadioButton(); jScrollPaneTmpxDotPetasciiText = new javax.swing.JScrollPane(); jTextPaneTmpxDotPetasciiText = new javax.swing.JTextPane(); jLabelTmpxLabelDeclaration.setText("Label:"); buttonGroupTmpxLabel.add(jRadioButtonTmpxLabelName); jRadioButtonTmpxLabelName.setSelected(true); jScrollPaneTmpxByte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxByte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxLabelName.setEditable(false); jTextPaneTmpxLabelName.setContentType("text/html"); // NOI18N jTextPaneTmpxLabelName.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <font color='black'>zzzz</font>\n </p\n </body>\n</html>\n"); jScrollPaneTmpxByte.setViewportView(jTextPaneTmpxLabelName); jLabelTmpxByteDeclaration.setText("Byte:"); buttonGroupTmpxByte.add(jRadioButtonTmpxDotByte); jRadioButtonTmpxDotByte.setSelected(true); jScrollPaneTmpxWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxDotByte.setEditable(false); jTextPaneTmpxDotByte.setContentType("text/html"); // NOI18N jTextPaneTmpxDotByte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byte</b> <font color='red'>$xx</font><br>\n <b> .byte</b> <font color='blue'>dd</font><br>\n <b> .byte</b> <font color='green'>%bb</font><br>\n <b> .byte</b> <font color='purple'>'c'</font>\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxWord.setViewportView(jTextPaneTmpxDotByte); jLabelTmpxWordDeclaration.setText("Word:"); buttonGroupTmpxWord.add(jRadioButtonTmpxDotWord); jRadioButtonTmpxDotWord.setSelected(true); jRadioButtonTmpxDotWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxDotWordItemStateChanged(evt); } }); jScrollPaneTmpxDotWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxDotWord.setEditable(false); jTextPaneTmpxDotWord.setContentType("text/html"); // NOI18N jTextPaneTmpxDotWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .word</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxDotWord.setViewportView(jTextPaneTmpxDotWord); jLabelTmpxCommentDeclaration.setText("Comment:"); buttonGroupTmpxComment.add(jRadioButtonTmpxSemicolonComment); jRadioButtonTmpxSemicolonComment.setSelected(true); jRadioButtonTmpxSemicolonComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxSemicolonCommentItemStateChanged(evt); } }); jScrollPaneTmpxSemicolonComment.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxSemicolonComment.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxSemicolonComment.setEditable(false); jTextPaneTmpxSemicolonComment.setContentType("text/html"); // NOI18N jTextPaneTmpxSemicolonComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>;</b> xxx\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxSemicolonComment.setViewportView(jTextPaneTmpxSemicolonComment); jLabelTmpxBlockCommentDeclaration.setText("Block Comment:"); buttonGroupTmpxBlockComment.add(jRadioButtonTmpxSemicolonBlockComment); jRadioButtonTmpxSemicolonBlockComment.setSelected(true); jRadioButtonTmpxSemicolonBlockComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxSemicolonBlockCommentItemStateChanged(evt); } }); jScrollPaneTmpxSemicolonBlockComment.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxSemicolonBlockComment.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxSemicolonBlockComment.setEditable(false); jTextPaneTmpxSemicolonBlockComment.setContentType("text/html"); // NOI18N jTextPaneTmpxSemicolonBlockComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>;</b> xxx\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxSemicolonBlockComment.setViewportView(jTextPaneTmpxSemicolonBlockComment); jLabelTmpxOriginDeclaration.setText("Origin:"); buttonGroupTmpxOrigin.add(jRadioButtonTmpxAsterixOrigin); jRadioButtonTmpxAsterixOrigin.setSelected(true); jRadioButtonTmpxAsterixOrigin.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxAsterixOriginItemStateChanged(evt); } }); jScrollPaneTmpxAsterixOrigin.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxAsterixOrigin.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxAsterixOrigin.setEditable(false); jTextPaneTmpxAsterixOrigin.setContentType("text/html"); // NOI18N jTextPaneTmpxAsterixOrigin.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>*=</b>$xxyy\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxAsterixOrigin.setViewportView(jTextPaneTmpxAsterixOrigin); buttonGroupTmpxBlockComment.add(jRadioButtonTmpxDotIfBlockComment); jRadioButtonTmpxDotIfBlockComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxDotIfBlockCommentItemStateChanged(evt); } }); jScrollPaneTmpxDotIfBlockComment.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotIfBlockComment.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxDotIfBlockComment.setEditable(false); jTextPaneTmpxDotIfBlockComment.setContentType("text/html"); // NOI18N jTextPaneTmpxDotIfBlockComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>if 0</b> xxx <b'>endif</b>\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxDotIfBlockComment.setViewportView(jTextPaneTmpxDotIfBlockComment); jLabelTmpxStartingDeclaration.setText("Starting:"); buttonGroupTmpxStarting.add(jRadioButtonTmpxFakeStarting); jRadioButtonTmpxFakeStarting.setSelected(true); jRadioButtonTmpxFakeStarting.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxFakeStartingItemStateChanged(evt); } }); jScrollPaneTmpxFakeStarting.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxFakeStarting.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxFakeStarting.setEditable(false); jTextPaneTmpxFakeStarting.setContentType("text/html"); // NOI18N jTextPaneTmpxFakeStarting.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>cpu</b> = 6502\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxFakeStarting.setViewportView(jTextPaneTmpxFakeStarting); jLabelTmpxMonoSpriteDeclaration.setText("Monocolor sprite:"); jLabelTmpxMultiSpriteDeclaration.setText("Multicolor sprite:"); buttonGroupTmpxMonoSprite.add(jRadioButtonTmpxByteHexMonoSprite); jRadioButtonTmpxByteHexMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxByteHexMonoSpriteItemStateChanged(evt); } }); buttonGroupTmpxMultiSprite.add(jRadioButtonTmpxByteHexMultiSprite); jRadioButtonTmpxByteHexMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxByteHexMultiSpriteItemStateChanged(evt); } }); jScrollPaneTmpxByteHexMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxByteHexMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); TmpxPaneTmpxByteHexMultiSprite.setEditable(false); TmpxPaneTmpxByteHexMultiSprite.setContentType("text/html"); // NOI18N TmpxPaneTmpxByteHexMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> [byte]</b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxByteHexMultiSprite.setViewportView(TmpxPaneTmpxByteHexMultiSprite); jScrollPaneTmpxByteHexMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxByteHexMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxByteHexMonoSprite.setEditable(false); jTextPaneTmpxByteHexMonoSprite.setContentType("text/html"); // NOI18N jTextPaneTmpxByteHexMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> [byte]</b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxByteHexMonoSprite.setViewportView(jTextPaneTmpxByteHexMonoSprite); buttonGroupTmpxMonoSprite.add(jRadioButtonTmpxByteBinMonoSprite); jRadioButtonTmpxByteBinMonoSprite.setSelected(true); jRadioButtonTmpxByteBinMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxByteBinMonoSpriteItemStateChanged(evt); } }); buttonGroupTmpxMultiSprite.add(jRadioButtonTmpxByteBinMultiSprite); jRadioButtonTmpxByteBinMultiSprite.setSelected(true); jRadioButtonTmpxByteBinMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxByteBinMultiSpriteItemStateChanged(evt); } }); jScrollPaneTmpxByteBinMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxByteBinMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxByteBinMultiSprite.setEditable(false); jTextPaneTmpxByteBinMultiSprite.setContentType("text/html"); // NOI18N jTextPaneTmpxByteBinMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[byte]</b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxByteBinMultiSprite.setViewportView(jTextPaneTmpxByteBinMultiSprite); jScrollPaneTmpxByteBinMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxByteBinMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxByteBinMonoSprite.setEditable(false); jTextPaneTmpxByteBinMonoSprite.setContentType("text/html"); // NOI18N jTextPaneTmpxByteBinMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[byte]</b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxByteBinMonoSprite.setViewportView(jTextPaneTmpxByteBinMonoSprite); buttonGroupTmpxMonoSprite.add(jRadioButtonTmpxMacroHexMonoSprite); jRadioButtonTmpxMacroHexMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxMacroHexMonoSpriteItemStateChanged(evt); } }); buttonGroupTmpxMultiSprite.add(jRadioButtonTmpxMacroHexMultiSprite); jRadioButtonTmpxMacroHexMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxMacroHexMultiSpriteItemStateChanged(evt); } }); jScrollPaneTmpxMacroHexMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxMacroHexMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxMacroHexMultiSprite.setEditable(false); jTextPaneTmpxMacroHexMultiSprite.setContentType("text/html"); // NOI18N jTextPaneTmpxMacroHexMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxMacroHexMultiSprite.setViewportView(jTextPaneTmpxMacroHexMultiSprite); jScrollPaneTmpxMacroHexMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxMacroHexMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxMacroHexMonoSprite.setEditable(false); jTextPaneTmpxMacroHexMonoSprite.setContentType("text/html"); // NOI18N jTextPaneTmpxMacroHexMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxMacroHexMonoSprite.setViewportView(jTextPaneTmpxMacroHexMonoSprite); buttonGroupTmpxMonoSprite.add(jRadioButtonTmpxMacroBinMonoSprite); jRadioButtonTmpxMacroBinMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxMacroBinMonoSpriteItemStateChanged(evt); } }); buttonGroupTmpxMultiSprite.add(jRadioButtonTmpxMacroBinMultiSprite); jRadioButtonTmpxMacroBinMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxMacroBinMultiSpriteItemStateChanged(evt); } }); jScrollPaneTmpxMacroBinMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxMacroBinMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxMacroBinMultiSprite.setEditable(false); jTextPaneTmpxMacroBinMultiSprite.setContentType("text/html"); // NOI18N jTextPaneTmpxMacroBinMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxMacroBinMultiSprite.setViewportView(jTextPaneTmpxMacroBinMultiSprite); jScrollPaneTmpxMacroBinMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxMacroBinMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxMacroBinMonoSprite.setEditable(false); jTextPaneTmpxMacroBinMonoSprite.setContentType("text/html"); // NOI18N jTextPaneTmpxMacroBinMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxMacroBinMonoSprite.setViewportView(jTextPaneTmpxMacroBinMonoSprite); jLabelTmpxTribyteDeclaration.setText("Tribyte:"); buttonGroupTmpxTribyte.add(jRadioButtonTmpxMacroTribyte); jRadioButtonTmpxMacroTribyte.setSelected(true); jRadioButtonTmpxMacroTribyte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxMacroTribyteItemStateChanged(evt); } }); jScrollPaneTmpxMacroTribyte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxMacroTribyte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxMacroTribyte.setEditable(false); jTextPaneTmpxMacroTribyte.setContentType("text/html"); // NOI18N jTextPaneTmpxMacroTribyte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac]</b> <font color='red'>$xxyyzz</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxMacroTribyte.setViewportView(jTextPaneTmpxMacroTribyte); jLabelTmpxLongDeclaration.setText("Long:"); buttonGroupTmpxLong.add(jRadioButtonTmpxMacroLong); jRadioButtonTmpxMacroLong.setSelected(true); jRadioButtonTmpxMacroLong.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxMacroLongItemStateChanged(evt); } }); jScrollPaneTmpxMacroLong.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxMacroLong.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxMacroLong.setEditable(false); jTextPaneTmpxMacroLong.setContentType("text/html"); // NOI18N jTextPaneTmpxMacroLong.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac]</b> <font color='red'>$xxyyzzkk</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxMacroLong.setViewportView(jTextPaneTmpxMacroLong); jLabelTmpxWordSwappedDeclaration.setText("Word Swapped:"); buttonGroupTmpxWordSwapped.add(jRadioButtonTmpxMacroWordSwapped); jRadioButtonTmpxMacroWordSwapped.setSelected(true); jRadioButtonTmpxMacroWordSwapped.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxMacroWordSwappedItemStateChanged(evt); } }); jScrollPaneTmpxMacroWordSwapped.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxMacroWordSwapped.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxMacroWordSwapped.setEditable(false); jTextPaneTmpxMacroWordSwapped.setContentType("text/html"); // NOI18N jTextPaneTmpxMacroWordSwapped.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac]</b> <font color='red'>$yyxx</font><br>\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxMacroWordSwapped.setViewportView(jTextPaneTmpxMacroWordSwapped); jLabelTmpxTextDeclaration.setText("Text:"); buttonGroupTmpxText.add(jRadioButtonTmpxDotText); jRadioButtonTmpxDotText.setSelected(true); jRadioButtonTmpxDotText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxDotTextItemStateChanged(evt); } }); jScrollPaneTmpxDotText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxDotText.setEditable(false); jTextPaneTmpxDotText.setContentType("text/html"); // NOI18N jTextPaneTmpxDotText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .text</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxDotText.setViewportView(jTextPaneTmpxDotText); jLabelTmpxNumTextDeclaration.setText("Text #num chars:"); buttonGroupTmpxNumText.add(jRadioButtonTmpxPTextNumText); jRadioButtonTmpxPTextNumText.setSelected(true); jRadioButtonTmpxPTextNumText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxPTextNumTextItemStateChanged(evt); } }); jScrollPaneTmpxDotTextNumText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotTextNumText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxDotTextNumText.setEditable(false); jTextPaneTmpxDotTextNumText.setContentType("text/html"); // NOI18N jTextPaneTmpxDotTextNumText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .ptext</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jTextPaneTmpxDotTextNumText.setPreferredSize(new java.awt.Dimension(66, 20)); jScrollPaneTmpxDotTextNumText.setViewportView(jTextPaneTmpxDotTextNumText); jLabelTmpxZeroTextDeclaration.setText("Text 0 terminated:"); buttonGroupTmpxZeroText.add(jRadioButtonTmpxDotNullZeroText); jRadioButtonTmpxDotNullZeroText.setSelected(true); jRadioButtonTmpxDotNullZeroText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxDotNullZeroTextItemStateChanged(evt); } }); jScrollPaneTmpxDotNullZeroText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotNullZeroText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxDotNullZeroText.setEditable(false); jTextPaneTmpxDotNullZeroText.setContentType("text/html"); // NOI18N jTextPaneTmpxDotNullZeroText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .null</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxDotNullZeroText.setViewportView(jTextPaneTmpxDotNullZeroText); jLabelTmpxAddressDeclaration.setText("Address:"); buttonGroupTmpxAddress.add(jRadioButtonTmpxDotAddrAddress); jRadioButtonTmpxDotAddrAddress.setSelected(true); jRadioButtonTmpxDotAddrAddress.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxDotAddrAddressItemStateChanged(evt); } }); jScrollPaneTmpxDotAddrAddress.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotAddrAddress.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxDotAddrAddress.setEditable(false); jTextPaneTmpxDotAddrAddress.setContentType("text/html"); // NOI18N jTextPaneTmpxDotAddrAddress.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .addr</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxDotAddrAddress.setViewportView(jTextPaneTmpxDotAddrAddress); jLabelTmpxStackWordDeclaration.setText("Stack Word:"); buttonGroupTmpxStackWord.add(jRadioButtonTmpxDotRdaStackWord); jRadioButtonTmpxDotRdaStackWord.setSelected(true); jRadioButtonTmpxDotRdaStackWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxDotRdaStackWordItemStateChanged(evt); } }); jScrollPaneTmpxDotRtaStackWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotRtaStackWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxDotRtaStackWord.setEditable(false); jTextPaneTmpxDotRtaStackWord.setContentType("text/html"); // NOI18N jTextPaneTmpxDotRtaStackWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .rta</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxDotRtaStackWord.setViewportView(jTextPaneTmpxDotRtaStackWord); jLabelTmpxHighTextDeclaration.setText("Text '1' terminated:"); buttonGroupTmpxHighText.add(jRadioButtonTmpxDotShiftHighText); jRadioButtonTmpxDotShiftHighText.setSelected(true); jRadioButtonTmpxDotShiftHighText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxDotShiftHighTextItemStateChanged(evt); } }); jScrollPaneTmpxDotShiftHighText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotShiftHighText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxDotShiftHighText.setEditable(false); jTextPaneTmpxDotShiftHighText.setContentType("text/html"); // NOI18N jTextPaneTmpxDotShiftHighText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .shift</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jTextPaneTmpxDotShiftHighText.setPreferredSize(new java.awt.Dimension(66, 20)); jScrollPaneTmpxDotShiftHighText.setViewportView(jTextPaneTmpxDotShiftHighText); jLabelTmpxShiftTextDeclaration.setText("Text left shifted:"); buttonGroupTmpxShiftText.add(jRadioButtonTmpxDotShiflShiftText); jRadioButtonTmpxDotShiflShiftText.setSelected(true); jRadioButtonTmpxDotShiflShiftText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxDotShiflShiftTextItemStateChanged(evt); } }); jScrollPaneTmpxDotShiftlShiftText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotShiftlShiftText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxDotShiflShiftText.setEditable(false); jTextPaneTmpxDotShiflShiftText.setContentType("text/html"); // NOI18N jTextPaneTmpxDotShiflShiftText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .shiftl</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jTextPaneTmpxDotShiflShiftText.setPreferredSize(new java.awt.Dimension(66, 20)); jScrollPaneTmpxDotShiftlShiftText.setViewportView(jTextPaneTmpxDotShiflShiftText); jLabelTmpxScreenTextDeclaration.setText("Text to screen code:"); buttonGroupTmpxScreenText.add(jRadioButtonTmpxDotScreenText); jRadioButtonTmpxDotScreenText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxDotScreenTextItemStateChanged(evt); } }); jScrollPaneTmpxDotScreenText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotScreenText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxDotScreenText.setEditable(false); jTextPaneTmpxDotScreenText.setContentType("text/html"); // NOI18N jTextPaneTmpxDotScreenText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .screen</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxDotScreenText.setViewportView(jTextPaneTmpxDotScreenText); jLabelTmpxPetasciiTextDeclaration.setText("Text to petascii code:"); buttonGroupTmpxPetasciiText.add(jRadioButtonTmpxDotPetasciiText); jRadioButtonTmpxDotPetasciiText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxDotPetasciiTextItemStateChanged(evt); } }); jScrollPaneTmpxDotPetasciiText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotPetasciiText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxDotPetasciiText.setEditable(false); jTextPaneTmpxDotPetasciiText.setContentType("text/html"); // NOI18N jTextPaneTmpxDotPetasciiText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .text</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxDotPetasciiText.setViewportView(jTextPaneTmpxDotPetasciiText); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 793, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelTmpxStartingDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTmpxOriginDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTmpxCommentDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTmpxLabelDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE) .addComponent(jLabelTmpxBlockCommentDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTmpxByteDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE) .addComponent(jLabelTmpxWordDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE) .addComponent(jLabelTmpxWordSwappedDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE) .addComponent(jLabelTmpxTribyteDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE) .addComponent(jLabelTmpxLongDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE) .addComponent(jLabelTmpxAddressDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE) .addComponent(jLabelTmpxStackWordDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE) .addComponent(jLabelTmpxMonoSpriteDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE) .addComponent(jLabelTmpxMultiSpriteDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE) .addComponent(jLabelTmpxTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE) .addComponent(jLabelTmpxNumTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE) .addComponent(jLabelTmpxZeroTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE) .addComponent(jLabelTmpxHighTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTmpxShiftTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTmpxScreenTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTmpxPetasciiTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonTmpxFakeStarting) .addComponent(jRadioButtonTmpxAsterixOrigin) .addComponent(jRadioButtonTmpxSemicolonComment) .addComponent(jRadioButtonTmpxSemicolonBlockComment) .addComponent(jRadioButtonTmpxLabelName) .addComponent(jRadioButtonTmpxDotByte) .addComponent(jRadioButtonTmpxDotWord) .addComponent(jRadioButtonTmpxMacroWordSwapped) .addComponent(jRadioButtonTmpxMacroTribyte) .addComponent(jRadioButtonTmpxMacroLong) .addComponent(jRadioButtonTmpxDotAddrAddress) .addComponent(jRadioButtonTmpxDotRdaStackWord) .addComponent(jRadioButtonTmpxByteHexMonoSprite) .addComponent(jRadioButtonTmpxByteHexMultiSprite) .addComponent(jRadioButtonTmpxDotText) .addComponent(jRadioButtonTmpxPTextNumText) .addComponent(jRadioButtonTmpxDotNullZeroText) .addComponent(jRadioButtonTmpxDotShiftHighText) .addComponent(jRadioButtonTmpxDotShiflShiftText) .addComponent(jRadioButtonTmpxDotScreenText) .addComponent(jRadioButtonTmpxDotPetasciiText)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneTmpxFakeStarting) .addComponent(jScrollPaneTmpxAsterixOrigin) .addComponent(jScrollPaneTmpxSemicolonComment) .addComponent(jScrollPaneTmpxSemicolonBlockComment) .addComponent(jScrollPaneTmpxByte) .addComponent(jScrollPaneTmpxWord) .addComponent(jScrollPaneTmpxDotWord) .addComponent(jScrollPaneTmpxMacroWordSwapped) .addComponent(jScrollPaneTmpxMacroTribyte) .addComponent(jScrollPaneTmpxMacroLong, javax.swing.GroupLayout.DEFAULT_SIZE, 160, Short.MAX_VALUE) .addComponent(jScrollPaneTmpxDotAddrAddress) .addComponent(jScrollPaneTmpxDotRtaStackWord) .addComponent(jScrollPaneTmpxByteHexMonoSprite) .addComponent(jScrollPaneTmpxByteHexMultiSprite) .addComponent(jScrollPaneTmpxDotText) .addComponent(jScrollPaneTmpxDotTextNumText) .addComponent(jScrollPaneTmpxDotNullZeroText) .addComponent(jScrollPaneTmpxDotShiftHighText) .addComponent(jScrollPaneTmpxDotShiftlShiftText) .addComponent(jScrollPaneTmpxDotScreenText) .addComponent(jScrollPaneTmpxDotPetasciiText)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonTmpxDotIfBlockComment) .addComponent(jRadioButtonTmpxByteBinMonoSprite) .addComponent(jRadioButtonTmpxByteBinMultiSprite)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jScrollPaneTmpxByteBinMonoSprite, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneTmpxDotIfBlockComment, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneTmpxByteBinMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonTmpxMacroHexMonoSprite) .addComponent(jRadioButtonTmpxMacroHexMultiSprite)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneTmpxMacroHexMonoSprite, javax.swing.GroupLayout.DEFAULT_SIZE, 103, Short.MAX_VALUE) .addComponent(jScrollPaneTmpxMacroHexMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addComponent(jRadioButtonTmpxMacroBinMultiSprite) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPaneTmpxMacroBinMultiSprite)) .addGroup(layout.createSequentialGroup() .addComponent(jRadioButtonTmpxMacroBinMonoSprite) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPaneTmpxMacroBinMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(19, 19, 19))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 816, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(33, 33, 33) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxStartingDeclaration) .addComponent(jRadioButtonTmpxFakeStarting) .addComponent(jScrollPaneTmpxFakeStarting, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(11, 11, 11) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxOriginDeclaration) .addComponent(jRadioButtonTmpxAsterixOrigin) .addComponent(jScrollPaneTmpxAsterixOrigin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxCommentDeclaration) .addComponent(jRadioButtonTmpxSemicolonComment) .addComponent(jScrollPaneTmpxSemicolonComment, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(11, 11, 11) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jRadioButtonTmpxDotIfBlockComment) .addComponent(jScrollPaneTmpxDotIfBlockComment, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(layout.createSequentialGroup() .addGap(12, 12, 12) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxBlockCommentDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTmpxSemicolonBlockComment) .addComponent(jScrollPaneTmpxSemicolonBlockComment, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxLabelDeclaration) .addComponent(jRadioButtonTmpxLabelName) .addComponent(jScrollPaneTmpxByte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxByteDeclaration) .addComponent(jRadioButtonTmpxDotByte) .addComponent(jScrollPaneTmpxWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxWordDeclaration) .addComponent(jRadioButtonTmpxDotWord) .addComponent(jScrollPaneTmpxDotWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxWordSwappedDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTmpxMacroWordSwapped) .addComponent(jScrollPaneTmpxMacroWordSwapped, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxTribyteDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTmpxMacroTribyte) .addComponent(jScrollPaneTmpxMacroTribyte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(4, 4, 4) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxLongDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTmpxMacroLong) .addComponent(jScrollPaneTmpxMacroLong, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxAddressDeclaration) .addComponent(jRadioButtonTmpxDotAddrAddress) .addComponent(jScrollPaneTmpxDotAddrAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxStackWordDeclaration) .addComponent(jRadioButtonTmpxDotRdaStackWord) .addComponent(jScrollPaneTmpxDotRtaStackWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxMonoSpriteDeclaration) .addComponent(jRadioButtonTmpxByteHexMonoSprite) .addComponent(jScrollPaneTmpxByteHexMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTmpxByteBinMonoSprite) .addComponent(jScrollPaneTmpxByteBinMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTmpxMacroHexMonoSprite) .addComponent(jScrollPaneTmpxMacroHexMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTmpxMacroBinMonoSprite) .addComponent(jScrollPaneTmpxMacroBinMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxMultiSpriteDeclaration) .addComponent(jRadioButtonTmpxByteHexMultiSprite) .addComponent(jScrollPaneTmpxByteHexMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTmpxByteBinMultiSprite) .addComponent(jScrollPaneTmpxByteBinMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTmpxMacroHexMultiSprite) .addComponent(jScrollPaneTmpxMacroHexMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTmpxMacroBinMultiSprite) .addComponent(jScrollPaneTmpxMacroBinMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxTextDeclaration) .addComponent(jRadioButtonTmpxDotText) .addComponent(jScrollPaneTmpxDotText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxNumTextDeclaration) .addComponent(jRadioButtonTmpxPTextNumText) .addComponent(jScrollPaneTmpxDotTextNumText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxZeroTextDeclaration) .addComponent(jRadioButtonTmpxDotNullZeroText) .addComponent(jScrollPaneTmpxDotNullZeroText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxHighTextDeclaration) .addComponent(jRadioButtonTmpxDotShiftHighText) .addComponent(jScrollPaneTmpxDotShiftHighText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxShiftTextDeclaration) .addComponent(jRadioButtonTmpxDotShiflShiftText) .addComponent(jScrollPaneTmpxDotShiftlShiftText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxScreenTextDeclaration) .addComponent(jRadioButtonTmpxDotScreenText) .addComponent(jScrollPaneTmpxDotScreenText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxPetasciiTextDeclaration) .addComponent(jRadioButtonTmpxDotPetasciiText) .addComponent(jScrollPaneTmpxDotPetasciiText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(33, 33, 33))) ); }// </editor-fold>//GEN-END:initComponents private void jRadioButtonTmpxDotWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxDotWordItemStateChanged option.tmpxWord=Assembler.Word.DOT_WORD; }//GEN-LAST:event_jRadioButtonTmpxDotWordItemStateChanged private void jRadioButtonTmpxSemicolonCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxSemicolonCommentItemStateChanged option.tmpxComment=Assembler.Comment.SEMICOLON; }//GEN-LAST:event_jRadioButtonTmpxSemicolonCommentItemStateChanged private void jRadioButtonTmpxSemicolonBlockCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxSemicolonBlockCommentItemStateChanged option.tmpxBlockComment=Assembler.BlockComment.SEMICOLON; }//GEN-LAST:event_jRadioButtonTmpxSemicolonBlockCommentItemStateChanged private void jRadioButtonTmpxAsterixOriginItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxAsterixOriginItemStateChanged option.tmpxOrigin=Assembler.Origin.ASTERISK; }//GEN-LAST:event_jRadioButtonTmpxAsterixOriginItemStateChanged private void jRadioButtonTmpxDotIfBlockCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxDotIfBlockCommentItemStateChanged option.tmpxBlockComment=Assembler.BlockComment.DOT_IF; }//GEN-LAST:event_jRadioButtonTmpxDotIfBlockCommentItemStateChanged private void jRadioButtonTmpxFakeStartingItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxFakeStartingItemStateChanged option.tmpxStarting=Assembler.Starting.FAKE; }//GEN-LAST:event_jRadioButtonTmpxFakeStartingItemStateChanged private void jRadioButtonTmpxByteHexMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxByteHexMonoSpriteItemStateChanged option.tmpxMonoSprite=Assembler.MonoSprite.BYTE_HEX; }//GEN-LAST:event_jRadioButtonTmpxByteHexMonoSpriteItemStateChanged private void jRadioButtonTmpxByteHexMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxByteHexMultiSpriteItemStateChanged option.tmpxMultiSprite=Assembler.MultiSprite.BYTE_HEX; }//GEN-LAST:event_jRadioButtonTmpxByteHexMultiSpriteItemStateChanged private void jRadioButtonTmpxByteBinMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxByteBinMonoSpriteItemStateChanged option.tmpxMonoSprite=Assembler.MonoSprite.BYTE_BIN; }//GEN-LAST:event_jRadioButtonTmpxByteBinMonoSpriteItemStateChanged private void jRadioButtonTmpxByteBinMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxByteBinMultiSpriteItemStateChanged option.tmpxMultiSprite=Assembler.MultiSprite.BYTE_BIN; }//GEN-LAST:event_jRadioButtonTmpxByteBinMultiSpriteItemStateChanged private void jRadioButtonTmpxMacroHexMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxMacroHexMonoSpriteItemStateChanged option.tmpxMonoSprite=Assembler.MonoSprite.MACRO4_HEX; }//GEN-LAST:event_jRadioButtonTmpxMacroHexMonoSpriteItemStateChanged private void jRadioButtonTmpxMacroHexMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxMacroHexMultiSpriteItemStateChanged option.tmpxMultiSprite=Assembler.MultiSprite.MACRO4_HEX; }//GEN-LAST:event_jRadioButtonTmpxMacroHexMultiSpriteItemStateChanged private void jRadioButtonTmpxMacroBinMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxMacroBinMonoSpriteItemStateChanged option.tmpxMonoSprite=Assembler.MonoSprite.MACRO4_BIN; }//GEN-LAST:event_jRadioButtonTmpxMacroBinMonoSpriteItemStateChanged private void jRadioButtonTmpxMacroBinMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxMacroBinMultiSpriteItemStateChanged option.tmpxMultiSprite=Assembler.MultiSprite.MACRO4_BIN; }//GEN-LAST:event_jRadioButtonTmpxMacroBinMultiSpriteItemStateChanged private void jRadioButtonTmpxMacroTribyteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxMacroTribyteItemStateChanged option.tmpxTribyte=Assembler.Tribyte.MACRO4_TRIBYTE; }//GEN-LAST:event_jRadioButtonTmpxMacroTribyteItemStateChanged private void jRadioButtonTmpxMacroLongItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxMacroLongItemStateChanged option.tmpxLong=Assembler.Long.MACRO4_LONG; }//GEN-LAST:event_jRadioButtonTmpxMacroLongItemStateChanged private void jRadioButtonTmpxMacroWordSwappedItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxMacroWordSwappedItemStateChanged option.tmpxWordSwapped=Assembler.WordSwapped.MACRO4_WORD_SWAPPED; }//GEN-LAST:event_jRadioButtonTmpxMacroWordSwappedItemStateChanged private void jRadioButtonTmpxDotTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxDotTextItemStateChanged option.tmpxText=Assembler.Text.DOT_TEXT; }//GEN-LAST:event_jRadioButtonTmpxDotTextItemStateChanged private void jRadioButtonTmpxPTextNumTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxPTextNumTextItemStateChanged option.tmpxNumText=Assembler.NumText.DOT_PTEXT_NUMTEXT; }//GEN-LAST:event_jRadioButtonTmpxPTextNumTextItemStateChanged private void jRadioButtonTmpxDotNullZeroTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxDotNullZeroTextItemStateChanged option.tmpxZeroText=Assembler.ZeroText.DOT_NULL_ZEROTEXT; }//GEN-LAST:event_jRadioButtonTmpxDotNullZeroTextItemStateChanged private void jRadioButtonTmpxDotAddrAddressItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxDotAddrAddressItemStateChanged option.tmpxAddress=Assembler.Address.DOT_ADDR_ADDR; }//GEN-LAST:event_jRadioButtonTmpxDotAddrAddressItemStateChanged private void jRadioButtonTmpxDotRdaStackWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxDotRdaStackWordItemStateChanged option.tmpxStackWord=Assembler.StackWord.DOT_RTA_STACKWORD; }//GEN-LAST:event_jRadioButtonTmpxDotRdaStackWordItemStateChanged private void jRadioButtonTmpxDotShiftHighTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxDotShiftHighTextItemStateChanged option.tmpxHighText=Assembler.HighText.DOT_SHIFT_HIGHTEXT; }//GEN-LAST:event_jRadioButtonTmpxDotShiftHighTextItemStateChanged private void jRadioButtonTmpxDotShiflShiftTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxDotShiflShiftTextItemStateChanged option.tmpxShiftText=Assembler.ShiftText.DOT_SHIFTL_SHIFTTEXT; }//GEN-LAST:event_jRadioButtonTmpxDotShiflShiftTextItemStateChanged private void jRadioButtonTmpxDotScreenTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxDotScreenTextItemStateChanged option.tmpxScreenText=Assembler.ScreenText.DOT_SCREEN_SCREENTEXT; }//GEN-LAST:event_jRadioButtonTmpxDotScreenTextItemStateChanged private void jRadioButtonTmpxDotPetasciiTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxDotPetasciiTextItemStateChanged option.tmpxPetasciiText=Assembler.PetasciiText.DOT_TEXT_PETASCIITEXT; }//GEN-LAST:event_jRadioButtonTmpxDotPetasciiTextItemStateChanged // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JTextPane TmpxPaneTmpxByteHexMultiSprite; private javax.swing.ButtonGroup buttonGroupTmpxAddress; private javax.swing.ButtonGroup buttonGroupTmpxBlockComment; private javax.swing.ButtonGroup buttonGroupTmpxByte; private javax.swing.ButtonGroup buttonGroupTmpxComment; private javax.swing.ButtonGroup buttonGroupTmpxHighText; private javax.swing.ButtonGroup buttonGroupTmpxLabel; private javax.swing.ButtonGroup buttonGroupTmpxLong; private javax.swing.ButtonGroup buttonGroupTmpxMonoSprite; private javax.swing.ButtonGroup buttonGroupTmpxMultiSprite; private javax.swing.ButtonGroup buttonGroupTmpxNumText; private javax.swing.ButtonGroup buttonGroupTmpxOrigin; private javax.swing.ButtonGroup buttonGroupTmpxPetasciiText; private javax.swing.ButtonGroup buttonGroupTmpxScreenText; private javax.swing.ButtonGroup buttonGroupTmpxShiftText; private javax.swing.ButtonGroup buttonGroupTmpxStackWord; private javax.swing.ButtonGroup buttonGroupTmpxStarting; private javax.swing.ButtonGroup buttonGroupTmpxText; private javax.swing.ButtonGroup buttonGroupTmpxTribyte; private javax.swing.ButtonGroup buttonGroupTmpxWord; private javax.swing.ButtonGroup buttonGroupTmpxWordSwapped; private javax.swing.ButtonGroup buttonGroupTmpxZeroText; private javax.swing.JLabel jLabelTmpxAddressDeclaration; private javax.swing.JLabel jLabelTmpxBlockCommentDeclaration; private javax.swing.JLabel jLabelTmpxByteDeclaration; private javax.swing.JLabel jLabelTmpxCommentDeclaration; private javax.swing.JLabel jLabelTmpxHighTextDeclaration; private javax.swing.JLabel jLabelTmpxLabelDeclaration; private javax.swing.JLabel jLabelTmpxLongDeclaration; private javax.swing.JLabel jLabelTmpxMonoSpriteDeclaration; private javax.swing.JLabel jLabelTmpxMultiSpriteDeclaration; private javax.swing.JLabel jLabelTmpxNumTextDeclaration; private javax.swing.JLabel jLabelTmpxOriginDeclaration; private javax.swing.JLabel jLabelTmpxPetasciiTextDeclaration; private javax.swing.JLabel jLabelTmpxScreenTextDeclaration; private javax.swing.JLabel jLabelTmpxShiftTextDeclaration; private javax.swing.JLabel jLabelTmpxStackWordDeclaration; private javax.swing.JLabel jLabelTmpxStartingDeclaration; private javax.swing.JLabel jLabelTmpxTextDeclaration; private javax.swing.JLabel jLabelTmpxTribyteDeclaration; private javax.swing.JLabel jLabelTmpxWordDeclaration; private javax.swing.JLabel jLabelTmpxWordSwappedDeclaration; private javax.swing.JLabel jLabelTmpxZeroTextDeclaration; private javax.swing.JRadioButton jRadioButtonTmpxAsterixOrigin; private javax.swing.JRadioButton jRadioButtonTmpxByteBinMonoSprite; private javax.swing.JRadioButton jRadioButtonTmpxByteBinMultiSprite; private javax.swing.JRadioButton jRadioButtonTmpxByteHexMonoSprite; private javax.swing.JRadioButton jRadioButtonTmpxByteHexMultiSprite; private javax.swing.JRadioButton jRadioButtonTmpxDotAddrAddress; private javax.swing.JRadioButton jRadioButtonTmpxDotByte; private javax.swing.JRadioButton jRadioButtonTmpxDotIfBlockComment; private javax.swing.JRadioButton jRadioButtonTmpxDotNullZeroText; private javax.swing.JRadioButton jRadioButtonTmpxDotPetasciiText; private javax.swing.JRadioButton jRadioButtonTmpxDotRdaStackWord; private javax.swing.JRadioButton jRadioButtonTmpxDotScreenText; private javax.swing.JRadioButton jRadioButtonTmpxDotShiflShiftText; private javax.swing.JRadioButton jRadioButtonTmpxDotShiftHighText; private javax.swing.JRadioButton jRadioButtonTmpxDotText; private javax.swing.JRadioButton jRadioButtonTmpxDotWord; private javax.swing.JRadioButton jRadioButtonTmpxFakeStarting; private javax.swing.JRadioButton jRadioButtonTmpxLabelName; private javax.swing.JRadioButton jRadioButtonTmpxMacroBinMonoSprite; private javax.swing.JRadioButton jRadioButtonTmpxMacroBinMultiSprite; private javax.swing.JRadioButton jRadioButtonTmpxMacroHexMonoSprite; private javax.swing.JRadioButton jRadioButtonTmpxMacroHexMultiSprite; private javax.swing.JRadioButton jRadioButtonTmpxMacroLong; private javax.swing.JRadioButton jRadioButtonTmpxMacroTribyte; private javax.swing.JRadioButton jRadioButtonTmpxMacroWordSwapped; private javax.swing.JRadioButton jRadioButtonTmpxPTextNumText; private javax.swing.JRadioButton jRadioButtonTmpxSemicolonBlockComment; private javax.swing.JRadioButton jRadioButtonTmpxSemicolonComment; private javax.swing.JScrollPane jScrollPaneTmpxAsterixOrigin; private javax.swing.JScrollPane jScrollPaneTmpxByte; private javax.swing.JScrollPane jScrollPaneTmpxByteBinMonoSprite; private javax.swing.JScrollPane jScrollPaneTmpxByteBinMultiSprite; private javax.swing.JScrollPane jScrollPaneTmpxByteHexMonoSprite; private javax.swing.JScrollPane jScrollPaneTmpxByteHexMultiSprite; private javax.swing.JScrollPane jScrollPaneTmpxDotAddrAddress; private javax.swing.JScrollPane jScrollPaneTmpxDotIfBlockComment; private javax.swing.JScrollPane jScrollPaneTmpxDotNullZeroText; private javax.swing.JScrollPane jScrollPaneTmpxDotPetasciiText; private javax.swing.JScrollPane jScrollPaneTmpxDotRtaStackWord; private javax.swing.JScrollPane jScrollPaneTmpxDotScreenText; private javax.swing.JScrollPane jScrollPaneTmpxDotShiftHighText; private javax.swing.JScrollPane jScrollPaneTmpxDotShiftlShiftText; private javax.swing.JScrollPane jScrollPaneTmpxDotText; private javax.swing.JScrollPane jScrollPaneTmpxDotTextNumText; private javax.swing.JScrollPane jScrollPaneTmpxDotWord; private javax.swing.JScrollPane jScrollPaneTmpxFakeStarting; private javax.swing.JScrollPane jScrollPaneTmpxMacroBinMonoSprite; private javax.swing.JScrollPane jScrollPaneTmpxMacroBinMultiSprite; private javax.swing.JScrollPane jScrollPaneTmpxMacroHexMonoSprite; private javax.swing.JScrollPane jScrollPaneTmpxMacroHexMultiSprite; private javax.swing.JScrollPane jScrollPaneTmpxMacroLong; private javax.swing.JScrollPane jScrollPaneTmpxMacroTribyte; private javax.swing.JScrollPane jScrollPaneTmpxMacroWordSwapped; private javax.swing.JScrollPane jScrollPaneTmpxSemicolonBlockComment; private javax.swing.JScrollPane jScrollPaneTmpxSemicolonComment; private javax.swing.JScrollPane jScrollPaneTmpxWord; private javax.swing.JTextPane jTextPaneTmpxAsterixOrigin; private javax.swing.JTextPane jTextPaneTmpxByteBinMonoSprite; private javax.swing.JTextPane jTextPaneTmpxByteBinMultiSprite; private javax.swing.JTextPane jTextPaneTmpxByteHexMonoSprite; private javax.swing.JTextPane jTextPaneTmpxDotAddrAddress; private javax.swing.JTextPane jTextPaneTmpxDotByte; private javax.swing.JTextPane jTextPaneTmpxDotIfBlockComment; private javax.swing.JTextPane jTextPaneTmpxDotNullZeroText; private javax.swing.JTextPane jTextPaneTmpxDotPetasciiText; private javax.swing.JTextPane jTextPaneTmpxDotRtaStackWord; private javax.swing.JTextPane jTextPaneTmpxDotScreenText; private javax.swing.JTextPane jTextPaneTmpxDotShiflShiftText; private javax.swing.JTextPane jTextPaneTmpxDotShiftHighText; private javax.swing.JTextPane jTextPaneTmpxDotText; private javax.swing.JTextPane jTextPaneTmpxDotTextNumText; private javax.swing.JTextPane jTextPaneTmpxDotWord; private javax.swing.JTextPane jTextPaneTmpxFakeStarting; private javax.swing.JTextPane jTextPaneTmpxLabelName; private javax.swing.JTextPane jTextPaneTmpxMacroBinMonoSprite; private javax.swing.JTextPane jTextPaneTmpxMacroBinMultiSprite; private javax.swing.JTextPane jTextPaneTmpxMacroHexMonoSprite; private javax.swing.JTextPane jTextPaneTmpxMacroHexMultiSprite; private javax.swing.JTextPane jTextPaneTmpxMacroLong; private javax.swing.JTextPane jTextPaneTmpxMacroTribyte; private javax.swing.JTextPane jTextPaneTmpxMacroWordSwapped; private javax.swing.JTextPane jTextPaneTmpxSemicolonBlockComment; private javax.swing.JTextPane jTextPaneTmpxSemicolonComment; // End of variables declaration//GEN-END:variables /** * Apply the option for TMPx */ public void applyOptionTmpx() { switch (option.tmpxStarting) { case FAKE: jRadioButtonTmpxFakeStarting.setSelected(true); break; } switch (option.tmpxOrigin) { case ASTERISK: jRadioButtonTmpxAsterixOrigin.setSelected(true); break; } switch (option.tmpxComment) { case SEMICOLON: jRadioButtonTmpxSemicolonComment.setSelected(true); break; } switch (option.tmpxBlockComment) { case SEMICOLON: jRadioButtonTmpxSemicolonBlockComment.setSelected(true); break; case DOT_IF: jRadioButtonTmpxDotIfBlockComment.setSelected(true); break; } switch (option.tmpxLabel) { case NAME: jRadioButtonTmpxLabelName.setSelected(true); break; } switch (option.tmpxByte) { case DOT_BYTE: jRadioButtonTmpxDotByte.setSelected(true); break; } switch (option.tmpxWord) { case DOT_WORD: jRadioButtonTmpxDotWord.setSelected(true); break; } switch (option.tmpxWordSwapped) { case MACRO4_WORD_SWAPPED: jRadioButtonTmpxMacroWordSwapped.setSelected(true); break; } switch (option.tmpxTribyte) { case MACRO4_TRIBYTE: jRadioButtonTmpxMacroTribyte.setSelected(true); break; } switch (option.tmpxLong) { case MACRO4_LONG: jRadioButtonTmpxMacroLong.setSelected(true); break; } switch (option.tmpxAddress) { case DOT_ADDR_ADDR: jRadioButtonTmpxDotAddrAddress.setSelected(true); break; } switch (option.tmpxStackWord) { case DOT_RTA_STACKWORD: jRadioButtonTmpxDotRdaStackWord.setSelected(true); break; } switch (option.tmpxMonoSprite) { case BYTE_HEX: jRadioButtonTmpxByteHexMonoSprite.setSelected(true); break; case BYTE_BIN: jRadioButtonTmpxByteBinMonoSprite.setSelected(true); break; case MACRO_HEX: jRadioButtonTmpxMacroHexMonoSprite.setSelected(true); break; case MACRO_BIN: jRadioButtonTmpxMacroBinMonoSprite.setSelected(true); break; } switch (option.tmpxMultiSprite) { case BYTE_HEX: jRadioButtonTmpxByteHexMultiSprite.setSelected(true); break; case BYTE_BIN: jRadioButtonTmpxByteBinMultiSprite.setSelected(true); break; case MACRO4_HEX: jRadioButtonTmpxMacroHexMultiSprite.setSelected(true); break; case MACRO4_BIN: jRadioButtonTmpxMacroBinMultiSprite.setSelected(true); break; } switch (option.tmpxText) { case DOT_TEXT: jRadioButtonTmpxDotText.setSelected(true); break; } switch (option.tmpxNumText) { case DOT_PTEXT_NUMTEXT: jRadioButtonTmpxPTextNumText.setSelected(true); break; } switch (option.tmpxZeroText) { case DOT_NULL_ZEROTEXT: jRadioButtonTmpxDotNullZeroText.setSelected(true); break; } switch (option.tmpxHighText) { case DOT_SHIFT_HIGHTEXT: jRadioButtonTmpxDotShiftHighText.setSelected(true); break; } switch (option.tmpxShiftText) { case DOT_SHIFTL_SHIFTTEXT: jRadioButtonTmpxDotShiflShiftText.setSelected(true); break; } switch (option.tmpxScreenText) { case DOT_TEXT_SCREENTEXT: jRadioButtonTmpxDotScreenText.setSelected(true); break; } switch (option.tmpxPetasciiText) { case DOT_TEXT_PETASCIITEXT: jRadioButtonTmpxDotPetasciiText.setSelected(true); break; } } }
84,801
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
JDisassemblerFrame.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/JDisassemblerFrame.java
/** * @(#)JFrameDisassembler.java 2019/12/01 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing; import java.awt.AWTException; import java.awt.Font; import java.awt.Image; import java.awt.Robot; import java.awt.Toolkit; import java.awt.datatransfer.Clipboard; import java.awt.datatransfer.DataFlavor; import java.awt.datatransfer.StringSelection; import java.awt.datatransfer.Transferable; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.InputEvent; import static java.awt.event.InputEvent.CTRL_DOWN_MASK; import java.awt.event.KeyEvent; import java.awt.event.MouseEvent; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.PrintWriter; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Base64; import java.util.Date; import java.util.Iterator; import java.util.List; import java.util.StringTokenizer; import java.util.Vector; import java.util.prefs.Preferences; import javax.swing.AbstractAction; import javax.swing.ActionMap; import javax.swing.InputMap; import javax.swing.JComponent; import javax.swing.JFileChooser; import javax.swing.JOptionPane; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.JTextArea; import javax.swing.KeyStroke; import javax.swing.ListSelectionModel; import javax.swing.SwingUtilities; import javax.swing.Timer; import javax.swing.UIManager; import javax.swing.filechooser.FileNameExtensionFilter; import javax.swing.table.JTableHeader; import javax.swing.text.BadLocationException; import javax.swing.text.Utilities; import org.fife.rsta.ui.search.FindDialog; import org.fife.rsta.ui.search.SearchEvent; import org.fife.rsta.ui.search.SearchListener; import org.fife.ui.rtextarea.SearchContext; import org.fife.ui.rtextarea.SearchEngine; import org.fife.ui.rtextarea.SearchResult; import sw_emulator.software.Assembler.Name; import sw_emulator.software.BasicDetokenize.BasicType; import sw_emulator.software.asm.Compiler; import sw_emulator.software.Disassembly; import sw_emulator.software.MemoryDasm; import static sw_emulator.software.MemoryDasm.TYPE_EMPTY; import static sw_emulator.software.MemoryDasm.TYPE_MAJOR; import static sw_emulator.software.MemoryDasm.TYPE_MINOR; import static sw_emulator.software.MemoryDasm.TYPE_MINUS; import static sw_emulator.software.MemoryDasm.TYPE_MINUS_MAJOR; import static sw_emulator.software.MemoryDasm.TYPE_MINUS_MINOR; import static sw_emulator.software.MemoryDasm.TYPE_PLUS; import static sw_emulator.software.MemoryDasm.TYPE_PLUS_MAJOR; import static sw_emulator.software.MemoryDasm.TYPE_PLUS_MINOR; import sw_emulator.software.cpu.M6510Dasm; import sw_emulator.software.cpu.Z80Dasm; import sw_emulator.software.memory.memoryState; import sw_emulator.swing.main.Carets; import sw_emulator.swing.main.Constant; import sw_emulator.swing.main.DataType; import sw_emulator.swing.main.FileManager; import sw_emulator.swing.main.FileType; import sw_emulator.swing.main.KeyProject; import sw_emulator.swing.main.MPR; import sw_emulator.swing.main.Option; import sw_emulator.swing.main.Patch; import sw_emulator.swing.main.Project; import sw_emulator.swing.main.RecentItems; import sw_emulator.swing.main.Serial; import sw_emulator.swing.main.UndoManager; import sw_emulator.swing.main.userAction; import static sw_emulator.swing.main.userAction.SOURCE_FINDD; import sw_emulator.swing.table.DataTableModelMemory; import sw_emulator.swing.table.MemoryTableCellRenderer; /** * Main frame for C64 disassembler * * @author ice */ public class JDisassemblerFrame extends javax.swing.JFrame implements userAction { /** Option to use */ Option option=new Option(); /** Icon images */ List<Image> iconImages = new ArrayList<>(); /** Project to use */ Project project; /** Project file name */ File projectFile; /** Last saved project values */ Project savedProject; /** Recent items */ RecentItems recentFile=new RecentItems(); /** Undo manager */ UndoManager undo=new UndoManager(); /** Data table for memory */ DataTableModelMemory dataTableModelMemory=new DataTableModelMemory(option); /** Disassembly engine */ Disassembly disassembly=new Disassembly(); /** Option dialog */ JOptionDialog jOptionDialog; /** Project dialog */ JProjectDialog jProjectDialog=new JProjectDialog(this, true); /** Project chooser file dialog*/ JFileChooser projectChooserFile=new JFileChooser(); /** Project merge file dialog*/ JFileChooser projectMergeFile=new JFileChooser(); /** Export as file chooser */ JFileChooser exportAsChooserFile=new JFileChooser(); /** Load MPR as file chooser */ JFileChooser optionMPRLoadChooserFile=new JFileChooser(); /** Save MPR as file chooser */ JFileChooser optionMPRSaveChooserFile=new JFileChooser(); /** Import labels from dasm */ JFileChooser importLabelsChooserFile=new JFileChooser(); /** Memory cell renderer for table */ MemoryTableCellRenderer memoryTableCellRenderer=new MemoryTableCellRenderer(); /** License dialog */ JLicenseDialog jLicenseDialog=new JLicenseDialog(this, true); /** Credit dialog */ JCreditsDialog jCreditsDialog=new JCreditsDialog(this, true); /** About dialog */ JAboutDialog jAboutDialog=new JAboutDialog(this, true); /** Labels dialog */ JLabelsDialog jLabelsDialog=new JLabelsDialog(this, true, option); /** Auto low/hi dialog */ JAutoLoHiDialog jAutoLoHiDialog=new JAutoLoHiDialog(this, true); /** JWizard dialog */ JWizardDialog jWizardDialog=new JWizardDialog(this, true, option); /** Help dialog */ JHelpFrame jHelpFrame=new JHelpFrame(); /** Freeze source frame */ JFreezeFrame jFreezeFrame=new JFreezeFrame(); /** Hex dialog */ JHexDialog jHexDialog=new JHexDialog(this, true); /** Block dialog */ JBlockDialog jBlockDialog=new JBlockDialog(this, true); /** Player dialog */ JPlayerDialog jPlayerDialog=new JPlayerDialog(this, false); /** Find dialog for source */ FindDialog findDialogSource; /** Find dialog for disassembly */ FindDialog findDialogDis; /** Compiler */ Compiler compiler=new Compiler(); /** Dialog for Easter eggs */ FadeDialog fadeDialog;//=new FadeDialog(); /** Last directory for saving project */ public final static String LAST_DIR_PROJECT = "last.dir.project"; /** Preference system file */ private Preferences m_prefNode=Preferences.userRoot().node(this.getClass().getName()); /** Last hex string searched*/ private String lastSearch=""; /** * Creates new form JFrameDisassembler */ public JDisassemblerFrame() { try { iconImages.add(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/images/icon128.png")).getImage()); iconImages.add(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/images/icon64.png")).getImage()); iconImages.add(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/images/icon32.png")).getImage()); } catch (Exception e) { System.err.println(e); } initComponents(); jOptionDialog=new JOptionDialog(this, true, dataTableModelMemory, this); Shared.framesList.add(this); Shared.framesList.add(projectChooserFile); Shared.framesList.add(projectMergeFile); Shared.framesList.add(exportAsChooserFile); Shared.framesList.add(optionMPRLoadChooserFile); Shared.framesList.add(optionMPRSaveChooserFile); Shared.framesList.add(findDialogDis); Shared.framesList.add(findDialogSource); Shared.framesList.add(importLabelsChooserFile); Shared.syntaxList.add(rSyntaxTextAreaDis); Shared.syntaxList.add(rSyntaxTextAreaSource); Shared.syntaxList.add(rSyntaxTextAreaDisMin); Shared.syntaxList.add(rSyntaxTextAreaSourceMin); findDialogDis.setSearchString(" "); findDialogSource.setSearchString(" "); FileManager.instance.readOptionFile(FileManager.OPTION_FILE, option); // if (option.getLafName().equals("SYNTH")) Option.useLookAndFeel(option.getFlatLaf()); // else Option.useLookAndFeel(option.getLafName(), option.getMethalTheme()); jOptionDialog.useOption(option); option.useSyntaxTheme(option.syntaxTheme); projectChooserFile.addChoosableFileFilter(new FileNameExtensionFilter("JC64Dis (*.dis)", "dis")); projectChooserFile.setAcceptAllFileFilterUsed(false); projectChooserFile.setCurrentDirectory(new File(m_prefNode.get(LAST_DIR_PROJECT, ""))); projectChooserFile.setFileView(new ProjectFileView(option)); projectMergeFile.addChoosableFileFilter(new FileNameExtensionFilter("JC64Dis (*.dis)", "dis")); exportAsChooserFile.addChoosableFileFilter(new FileNameExtensionFilter("Source (*.txt)", "txt")); optionMPRLoadChooserFile.addChoosableFileFilter(new FileNameExtensionFilter("PRG C64 program (prg, bin)", "prg", "bin")); optionMPRLoadChooserFile.setMultiSelectionEnabled(true); optionMPRLoadChooserFile.setDialogTitle("Select all PRG to include into the MPR"); optionMPRSaveChooserFile.addChoosableFileFilter(new FileNameExtensionFilter("Multi PRG C64 program (mpr)", "mpr")); optionMPRSaveChooserFile.setDialogTitle("Select the MPR file to save"); importLabelsChooserFile.setDialogTitle("Select a memory label dump file from DASM"); compiler.setOption(option); jTableMemory.addMouseListener(new java.awt.event.MouseAdapter() { MouseEvent last; private Timer timer = new Timer(300, new ActionListener() { @Override public void actionPerformed(ActionEvent e) { // timer has gone off, so treat as a single click singleClick(); timer.stop(); } }); @Override public void mouseClicked(MouseEvent e) { last = e; // Check if timer is running // to know if there was an earlier click if (timer.isRunning()) { // There was an earlier click so we'll treat it as a double click timer.stop(); doubleClick(); } else { // (Re)start the timer and wait for 2nd click timer.restart(); } } /** * Single click on table */ protected void singleClick() { int row = jTableMemory.rowAtPoint(last.getPoint()); int col = jTableMemory.columnAtPoint(last.getPoint()); switch (DataTableModelMemory.columns[jTableMemory.convertColumnIndexToModel(col)]) { case UC: // user comment if (option.clickUcEdit) { addComment(row); if (option.forceCompilation) { disassembly(true); } } break; case UL: // user label if (option.clickUlEdit) { addLabel(row); if (option.forceCompilation) { disassembly(true); } } break; case UB: // user global comment if (option.clickUbEdit) { addBlock(row); if (option.forceCompilation) { disassembly(true); } } break; case DC: // automatic comment if (option.clickDcErase) { MemoryDasm mem = project.memory[row]; if (mem.dasmComment != null && mem.userComment == null) { mem.userComment = ""; } dataTableModelMemory.fireTableDataChanged(); if (option.forceCompilation) { disassembly(true); } } break; case DL: // automatic label if (option.clickDlErase) { MemoryDasm mem = project.memory[row]; if (mem.dasmLocation != null) { mem.dasmLocation = null; } dataTableModelMemory.fireTableDataChanged(); if (option.forceCompilation) { disassembly(true); } } break; case VL: // add patch if (option.clickVlPatch) { MemoryDasm mem = project.memory[row]; String value = JOptionPane.showInputDialog(null, "Insert the new value (in hex) for this location"); if (value != null) { Patch patch = new Patch(); patch.value = Integer.parseInt(value, 16); if (!patch.isValidRange()) { JOptionPane.showMessageDialog(null, "Invalid address or value", "Error", JOptionPane.ERROR_MESSAGE); break; } patch.address = mem.address; int size = 0; if (project.patches != null) { size = project.patches.length; } // copy the value in the list Patch[] patches2 = new Patch[size + 1]; if (size > 0) { System.arraycopy(project.patches, 0, patches2, 0, project.patches.length); } patches2[size] = patch; project.patches = patches2; dataTableModelMemory.fireTableDataChanged(); if (option.forceCompilation) { disassembly(true); } } } break; } } /** * Double click on table */ protected void doubleClick() { int actual; // get the address in hex format int addr = jTableMemory.getSelectedRow(); int pos = 0; // try with carets if (addr >= 0) { pos = disassembly.caretsPreview.getPosition(project.memory[addr]); if (pos != -1) { rSyntaxTextAreaDis.setCaretPosition(pos); rSyntaxTextAreaDis.requestFocusInWindow(); return; } else { pos = 0; } } // scan all lines for the memory location try { String preview = rSyntaxTextAreaDis.getText(); String lines[] = preview.split("\\r?\\n"); for (String line : lines) { actual = searchAddress(line.substring(0, Math.min(line.length(), option.maxLabelLength))); if (actual == addr) { // set preview in the find position rSyntaxTextAreaDis.setCaretPosition(pos); rSyntaxTextAreaDis.requestFocusInWindow(); break; } else { pos += line.length() + 1; } } } catch (Exception e) { System.err.println(); } } }); jScrollPaneLeftMin.setVisible(option.showMiniature); jScrollPaneRightMin.setVisible(option.showMiniature); pack(); fadeDialog=new FadeDialog(option, this); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPopupMenuData = new javax.swing.JPopupMenu(); jMenuBasic = new javax.swing.JMenu(); jMenuItemBasicNone = new javax.swing.JMenuItem(); jSeparatorStandard = new javax.swing.JPopupMenu.Separator(); jMenuItemBasicV2_0 = new javax.swing.JMenuItem(); jMenuItemBasicV3_5 = new javax.swing.JMenuItem(); jMenuItemBasicV4_0 = new javax.swing.JMenuItem(); jMenuItemBasicV7_0 = new javax.swing.JMenuItem(); jSeparatorV2 = new javax.swing.JPopupMenu.Separator(); jMenuItemSimon = new javax.swing.JMenuItem(); jMenuItemAndreFachat = new javax.swing.JMenuItem(); jMenuItemSpeech = new javax.swing.JMenuItem(); jMenuItemFinalCart3 = new javax.swing.JMenuItem(); jMenuItemUltrabasic = new javax.swing.JMenuItem(); jMenuItemGraphics = new javax.swing.JMenuItem(); jMenuItemWS = new javax.swing.JMenuItem(); jMenuItemPegasus = new javax.swing.JMenuItem(); jMenuItemXbasic = new javax.swing.JMenuItem(); jMenuItemDrago = new javax.swing.JMenuItem(); jMenuItemReu = new javax.swing.JMenuItem(); jMenuItemLightninig = new javax.swing.JMenuItem(); jMenuItemMagic = new javax.swing.JMenuItem(); jMenuItemBlark = new javax.swing.JMenuItem(); jMenuItemWSFinal = new javax.swing.JMenuItem(); jMenuItemGame = new javax.swing.JMenuItem(); jMenuItemBasex = new javax.swing.JMenuItem(); jMenuItemSuper = new javax.swing.JMenuItem(); jMenuItemExpanded = new javax.swing.JMenuItem(); jMenuItemSuperExpanderChip = new javax.swing.JMenuItem(); jMenuItemWarsaw = new javax.swing.JMenuItem(); jMenuItemDbs = new javax.swing.JMenuItem(); jMenuItemKipper = new javax.swing.JMenuItem(); jMenuItemBails = new javax.swing.JMenuItem(); jMenuItemEve = new javax.swing.JMenuItem(); jMenuItemTool = new javax.swing.JMenuItem(); jSeparatorV128 = new javax.swing.JPopupMenu.Separator(); jMenuItemV8 = new javax.swing.JMenuItem(); jSeparatorV20 = new javax.swing.JPopupMenu.Separator(); jMenuItemSuperExpander = new javax.swing.JMenuItem(); jMenuItemTurtle = new javax.swing.JMenuItem(); jMenuItemEasy = new javax.swing.JMenuItem(); jMenuItemV4 = new javax.swing.JMenuItem(); jMenuItemV5 = new javax.swing.JMenuItem(); jMenuItemExpandedV20 = new javax.swing.JMenuItem(); jMenuItemHandy = new javax.swing.JMenuItem(); jMenuItemByteHex = new javax.swing.JMenuItem(); jMenuItemByteDec = new javax.swing.JMenuItem(); jMenuItemByteBin = new javax.swing.JMenuItem(); jMenuItemByteChar = new javax.swing.JMenuItem(); jSeparatorByte = new javax.swing.JPopupMenu.Separator(); jMenuItemWord = new javax.swing.JMenuItem(); jMenuItemWordSwapped = new javax.swing.JMenuItem(); jSeparatorWord = new javax.swing.JPopupMenu.Separator(); jMenuItemTribyte = new javax.swing.JMenuItem(); jMenuItemLong = new javax.swing.JMenuItem(); jSeparatorPopUpMenu0 = new javax.swing.JPopupMenu.Separator(); jMenuItemAddress = new javax.swing.JMenuItem(); jMenuItemStackWord = new javax.swing.JMenuItem(); jSeparatorPopUpMenu1 = new javax.swing.JPopupMenu.Separator(); jMenuItemSpriteMono = new javax.swing.JMenuItem(); jMenuItemSpriteMulti = new javax.swing.JMenuItem(); jSeparatorSprite = new javax.swing.JPopupMenu.Separator(); jMenuItemText = new javax.swing.JMenuItem(); jMenuItemNumText = new javax.swing.JMenuItem(); jMenuItemTextZero = new javax.swing.JMenuItem(); jMenuItemtextHighOne = new javax.swing.JMenuItem(); jMenuItemtextShifted = new javax.swing.JMenuItem(); jMenuItemTextScreen = new javax.swing.JMenuItem(); jMenuItemTextPetascii = new javax.swing.JMenuItem(); jPopupMenuConstant = new javax.swing.JPopupMenu(); jMenuItemConstant0 = new javax.swing.JMenuItem(); jMenuItemConstant1 = new javax.swing.JMenuItem(); jMenuItemConstant2 = new javax.swing.JMenuItem(); jMenuItemConstant3 = new javax.swing.JMenuItem(); jMenuItemConstant4 = new javax.swing.JMenuItem(); jMenuItemConstant5 = new javax.swing.JMenuItem(); jMenuItemConstant6 = new javax.swing.JMenuItem(); jMenuItemConstant7 = new javax.swing.JMenuItem(); jMenuItemConstant8 = new javax.swing.JMenuItem(); jMenuItemConstant9 = new javax.swing.JMenuItem(); jSeparatorConstant = new javax.swing.JPopupMenu.Separator(); jMenuItemConstantClear_ = new javax.swing.JMenuItem(); jSeparatorConstant2 = new javax.swing.JPopupMenu.Separator(); jMenuItemConstant10 = new javax.swing.JMenuItem(); jMenuItemConstant11 = new javax.swing.JMenuItem(); jMenuItemConstant12 = new javax.swing.JMenuItem(); jMenuItemConstant13 = new javax.swing.JMenuItem(); jMenuItemConstant14 = new javax.swing.JMenuItem(); jMenuItemConstant15 = new javax.swing.JMenuItem(); jMenuItemConstant16 = new javax.swing.JMenuItem(); jMenuItemConstant17 = new javax.swing.JMenuItem(); jMenuItemConstant18 = new javax.swing.JMenuItem(); jMenuItemConstant19 = new javax.swing.JMenuItem(); jPopupMenuSaveAs = new javax.swing.JPopupMenu(); jMenuItemSaveAsDasm = new javax.swing.JMenuItem(); jMenuItemSaveAsTmpx = new javax.swing.JMenuItem(); jMenuItemSaveAsCa65 = new javax.swing.JMenuItem(); jMenuItemSaveAsAcme = new javax.swing.JMenuItem(); jMenuItemSaveAsKickAssembler = new javax.swing.JMenuItem(); jMenuItemSaveAsTass64 = new javax.swing.JMenuItem(); jPopupMenuMemory = new javax.swing.JPopupMenu(); jMenuItemCopy = new javax.swing.JMenuItem(); jMenuItemPaste = new javax.swing.JMenuItem(); jSeparatorMem1 = new javax.swing.JPopupMenu.Separator(); jMenuItemFindAddr = new javax.swing.JMenuItem(); jMenuItemFindSeq = new javax.swing.JMenuItem(); jSeparatorMem2 = new javax.swing.JPopupMenu.Separator(); jMenuItemCode = new javax.swing.JMenuItem(); jMenuItemData = new javax.swing.JMenuItem(); jMenuDataSel = new javax.swing.JMenu(); jMenuItemByteHex2 = new javax.swing.JMenuItem(); jMenuItemByteDec2 = new javax.swing.JMenuItem(); jMenuItemByteBin2 = new javax.swing.JMenuItem(); jMenuItemByteChar2 = new javax.swing.JMenuItem(); jSeparatorByte2 = new javax.swing.JPopupMenu.Separator(); jMenuItemWord2 = new javax.swing.JMenuItem(); jMenuItemWordSwapped2 = new javax.swing.JMenuItem(); jSeparatorWord2 = new javax.swing.JPopupMenu.Separator(); jMenuItemTribyte2 = new javax.swing.JMenuItem(); jMenuItemLong2 = new javax.swing.JMenuItem(); jSeparatorPopUpMenu2 = new javax.swing.JPopupMenu.Separator(); jMenuItemAddress2 = new javax.swing.JMenuItem(); jMenuItemStackWord2 = new javax.swing.JMenuItem(); jSeparatorPopUpMenu3 = new javax.swing.JPopupMenu.Separator(); jMenuItemSpriteMono2 = new javax.swing.JMenuItem(); jMenuItemSpriteMulti2 = new javax.swing.JMenuItem(); jSeparatorSprite2 = new javax.swing.JPopupMenu.Separator(); jMenuItemText2 = new javax.swing.JMenuItem(); jMenuItemNumText2 = new javax.swing.JMenuItem(); jMenuItemTextZero2 = new javax.swing.JMenuItem(); jMenuItemtextHighOne2 = new javax.swing.JMenuItem(); jMenuItemtextShifted2 = new javax.swing.JMenuItem(); jMenuItemTextScreen2 = new javax.swing.JMenuItem(); jMenuItemTextPetascii2 = new javax.swing.JMenuItem(); jMenuItemGarbage = new javax.swing.JMenuItem(); jMenuItemUnmark = new javax.swing.JMenuItem(); jSeparatorMem3 = new javax.swing.JPopupMenu.Separator(); jMenuItemHex = new javax.swing.JMenuItem(); jMenuItemBlockLabel = new javax.swing.JMenuItem(); jPanelToolBar = new javax.swing.JPanel(); jToolBarFile = new javax.swing.JToolBar(); jButtonNewProject = new javax.swing.JButton(); jButtonOpenProject = new javax.swing.JButton(); jButtonClose = new javax.swing.JButton(); jButtonSaveProject = new javax.swing.JButton(); jButtonSaveProjectAs = new javax.swing.JButton(); jButtonMPR = new javax.swing.JButton(); jButtonMerge = new javax.swing.JButton(); jButtonExit = new javax.swing.JButton(); jToolBarMemory = new javax.swing.JToolBar(); jButtonClearDMem = new javax.swing.JButton(); jButtonClearUMem = new javax.swing.JButton(); jButtonClearDLabel = new javax.swing.JButton(); jButtonAddUserComm = new javax.swing.JButton(); jButtonAddUserBlock = new javax.swing.JButton(); jButtonAddUserLabel = new javax.swing.JButton(); jButtonAddUserLabelOp = new javax.swing.JButton(); jButtonMarkCode = new javax.swing.JButton(); jButtonMarkData = new javax.swing.JButton(); jButtonMarkGarbage = new javax.swing.JButton(); jButtonMarkConstant = new javax.swing.JButton(); jButtonMarkPlus = new javax.swing.JButton(); jButtonMarkMinus = new javax.swing.JButton(); jButtonMarkLow = new javax.swing.JButton(); jButtonMarkLowHigh = new javax.swing.JButton(); jButtonMarkBoth = new javax.swing.JButton(); jButtonMarkHighLow = new javax.swing.JButton(); jButtonMarkMax = new javax.swing.JButton(); jButtonWizard = new javax.swing.JButton(); jToolBarOption = new javax.swing.JToolBar(); jButtonConfigure = new javax.swing.JButton(); jButtonSIDLD = new javax.swing.JButton(); jButtonViewProject = new javax.swing.JButton(); jButtonViewLabels = new javax.swing.JButton(); jToolBarSource = new javax.swing.JToolBar(); jButtonFindMem = new javax.swing.JButton(); jButtonDisassemble = new javax.swing.JButton(); jButtonAssemble = new javax.swing.JButton(); jButtonFindDis = new javax.swing.JButton(); jButtonExportAsDiss = new javax.swing.JButton(); jButtonFindSource = new javax.swing.JButton(); jButtonExportAsSource = new javax.swing.JButton(); jButtonExportAsSource1 = new javax.swing.JButton(); jToolBarPerformance = new javax.swing.JToolBar(); heapView = new sw_emulator.swing.HeapView(); jToolBarPerc = new javax.swing.JToolBar(); jPanelPerc = new sw_emulator.swing.JPanelPerc(); jSplitPaneExternal = new javax.swing.JSplitPane(); jSplitPaneInternal = new javax.swing.JSplitPane(); jPanelLeft = new javax.swing.JPanel(); jScrollPaneLeft = new javax.swing.JScrollPane(); rSyntaxTextAreaDis = new org.fife.ui.rsyntaxtextarea.RSyntaxTextArea(); jScrollPaneLeftMin = new javax.swing.JScrollPane(); rSyntaxTextAreaDisMin = new org.fife.ui.rsyntaxtextarea.RSyntaxTextArea(); jPanelRight = new javax.swing.JPanel(); jScrollPaneRight = new javax.swing.JScrollPane(); rSyntaxTextAreaSource = new org.fife.ui.rsyntaxtextarea.RSyntaxTextArea(); jScrollPaneRightMin = new javax.swing.JScrollPane(); rSyntaxTextAreaSourceMin = new org.fife.ui.rsyntaxtextarea.RSyntaxTextArea(); jScrollPaneMemory = new javax.swing.JScrollPane(); jTableMemory = new javax.swing.JTable() { String[] hh={"Memory address location in Hex", "Disassembler automatic comment", "User manual comment", "Disassembler automatic label", "User manual label", "User global comment", "Related location and data type", "Value in memory"}; @Override protected JTableHeader createDefaultTableHeader() { return new JTableHeader(columnModel) { @Override public String getToolTipText(MouseEvent e) { //int col = columnAtPoint(e.getPoint()); int index = columnModel.getColumnIndexAtX(e.getPoint().x); int realIndex = columnModel.getColumn(index).getModelIndex(); return hh[realIndex]; } }; } //Implement table cell tool tips. public String getToolTipText(MouseEvent e) { String tip = null; java.awt.Point p = e.getPoint(); int rowIndex = rowAtPoint(p); int colIndex = columnAtPoint(p); int realColumnIndex = convertColumnIndexToModel(colIndex); try { MemoryDasm memory=dataTableModelMemory.getData()[rowIndex]; switch (dataTableModelMemory.columns[realColumnIndex]) { case ID: if (!memory.isInside) tip="Memory outside of the program"; else if(memory.isCode) tip="Memory marked as code ("+getAreaCodeSize(memory.address)+"/"+Shared.ShortToExe(jTableMemory.getSelectedRowCount())+")"; else if (memory.isData) tip="Memory marked as data ("+getAreaDataSize(memory.address)+"/"+Shared.ShortToExe(jTableMemory.getSelectedRowCount())+")"; else if (memory.isGarbage) tip="Memory marked as garbage ("+getAreaGarbageSize(memory.address)+"/"+Shared.ShortToExe(jTableMemory.getSelectedRowCount())+")"; else tip="Memory not marked as code or data"; break; case DC: if ((Boolean)getValueAt(rowIndex, colIndex)) tip=memory.dasmComment; break; case UC: if ((Boolean)getValueAt(rowIndex, colIndex)) tip=memory.userComment; break; case DL: if ((Boolean)getValueAt(rowIndex, colIndex)) tip=memory.dasmLocation; break; case UL: if ((Boolean)getValueAt(rowIndex, colIndex)) tip=memory.userLocation; break; case UB: if ((Boolean)getValueAt(rowIndex, colIndex)) tip="<html>"+memory.userBlockComment.replace("\n", "<br>")+"</html>"; break; case RE: if (memory.type!=TYPE_EMPTY) { MemoryDasm mem=dataTableModelMemory.getData()[memory.related]; switch (memory.type) { case TYPE_PLUS: if (mem.userLocation!=null && !"".equals(mem.userLocation)) tip=mem.userLocation+"+"+(memory.address-memory.related); else if (mem.dasmLocation!=null && !"".equals(mem.dasmLocation)) tip=mem.dasmLocation+"+"+(memory.address-memory.related); else tip="$"+Shared.ShortToExe(mem.address)+"+"+(memory.address-memory.related); break; case TYPE_MINUS: if (mem.userLocation!=null && !"".equals(mem.userLocation)) tip=mem.userLocation+(memory.address-memory.related); else if (mem.dasmLocation!=null && !"".equals(mem.dasmLocation)) tip=mem.dasmLocation+(memory.address-memory.related); else tip="$"+Shared.ShortToExe(mem.address)+(memory.address-memory.related); break; default: if (mem.userLocation!=null && !"".equals(mem.userLocation)) tip="#"+memory.type+mem.userLocation; else if (mem.dasmLocation!=null && !"".equals(mem.dasmLocation)) tip="#"+memory.type+mem.dasmLocation; else tip="#"+memory.type+"$"+Shared.ShortToExe(mem.address); } } else if (memory.dataType!=null) { tip=memory.dataType.getDescription(); } break; } } catch (RuntimeException e1) { //catch null pointer exception if mouse is over an empty line } return tip; } }; jMenuBar = new javax.swing.JMenuBar(); jMenuFile = new javax.swing.JMenu(); jMenuItemNewProject = new javax.swing.JMenuItem(); jSeparatorProject1 = new javax.swing.JPopupMenu.Separator(); jMenuItemOpenProject = new javax.swing.JMenuItem(); jMenuRecent = new javax.swing.JMenu(); jMenuItemRecent1 = new javax.swing.JMenuItem(); jMenuItemRecent2 = new javax.swing.JMenuItem(); jMenuItemRecent3 = new javax.swing.JMenuItem(); jMenuItemRecent4 = new javax.swing.JMenuItem(); jMenuItemRecent5 = new javax.swing.JMenuItem(); jMenuItemRecent6 = new javax.swing.JMenuItem(); jMenuItemRecent7 = new javax.swing.JMenuItem(); jMenuItemRecent8 = new javax.swing.JMenuItem(); jMenuItemRecent9 = new javax.swing.JMenuItem(); jMenuItemCloseProject = new javax.swing.JMenuItem(); jSeparatorProject2 = new javax.swing.JPopupMenu.Separator(); jMenuItemSaveProject = new javax.swing.JMenuItem(); jMenuItemSaveAsProject = new javax.swing.JMenuItem(); jSeparatorProject3 = new javax.swing.JPopupMenu.Separator(); jMenuItemMPR = new javax.swing.JMenuItem(); jMenuItem2 = new javax.swing.JMenuItem(); jMenuItemExit = new javax.swing.JMenuItem(); jMenuMemory = new javax.swing.JMenu(); jMenuItemClearDMem = new javax.swing.JMenuItem(); jMenuItemClearUMem = new javax.swing.JMenuItem(); jMenuItemClearDLabel = new javax.swing.JMenuItem(); jSeparator4 = new javax.swing.JPopupMenu.Separator(); jMenuItemAddComment = new javax.swing.JMenuItem(); jMenuItemAddBlock = new javax.swing.JMenuItem(); jMenuItemUserLabel = new javax.swing.JMenuItem(); jMenuItemUserLabelOp = new javax.swing.JMenuItem(); jSeparator3 = new javax.swing.JPopupMenu.Separator(); jMenuItemMarkCode = new javax.swing.JMenuItem(); jMenuItemMarkData = new javax.swing.JMenuItem(); jSubMenu = new javax.swing.JMenu(); jMenuBasic1 = new javax.swing.JMenu(); jMenuItemBasicNone1 = new javax.swing.JMenuItem(); jSeparatorStandard1 = new javax.swing.JPopupMenu.Separator(); jMenuItemBasicV2_1 = new javax.swing.JMenuItem(); jMenuItemBasicV3_5_1 = new javax.swing.JMenuItem(); jMenuItemBasicV4_0_1 = new javax.swing.JMenuItem(); jMenuItemBasicV7_0_1 = new javax.swing.JMenuItem(); jSeparatorV3 = new javax.swing.JPopupMenu.Separator(); jMenuItemSimon1 = new javax.swing.JMenuItem(); jMenuItemAndreFachat1 = new javax.swing.JMenuItem(); jMenuItemSpeech1 = new javax.swing.JMenuItem(); jMenuItemFinalCart4 = new javax.swing.JMenuItem(); jMenuItemUltrabasic1 = new javax.swing.JMenuItem(); jMenuItemGraphics1 = new javax.swing.JMenuItem(); jMenuItemWS1 = new javax.swing.JMenuItem(); jMenuItemPegasus1 = new javax.swing.JMenuItem(); jMenuItemXbasic1 = new javax.swing.JMenuItem(); jMenuItemDrago1 = new javax.swing.JMenuItem(); jMenuItemReu1 = new javax.swing.JMenuItem(); jMenuItemLightninig1 = new javax.swing.JMenuItem(); jMenuItemMagic1 = new javax.swing.JMenuItem(); jMenuItemBlark1 = new javax.swing.JMenuItem(); jMenuItemWSFinal1 = new javax.swing.JMenuItem(); jMenuItemGame1 = new javax.swing.JMenuItem(); jMenuItemBasex1 = new javax.swing.JMenuItem(); jMenuItemSuper1 = new javax.swing.JMenuItem(); jMenuItemExpanded1 = new javax.swing.JMenuItem(); jMenuItemSuperExpanderChip1 = new javax.swing.JMenuItem(); jMenuItemWarsaw1 = new javax.swing.JMenuItem(); jMenuItemDbs1 = new javax.swing.JMenuItem(); jMenuItemKipper1 = new javax.swing.JMenuItem(); jMenuItemBails1 = new javax.swing.JMenuItem(); jMenuItemEve1 = new javax.swing.JMenuItem(); jMenuItemTool1 = new javax.swing.JMenuItem(); jSeparatorV129 = new javax.swing.JPopupMenu.Separator(); jMenuItemV9 = new javax.swing.JMenuItem(); jSeparatorV21 = new javax.swing.JPopupMenu.Separator(); jMenuItemSuperExpander1 = new javax.swing.JMenuItem(); jMenuItemTurtle1 = new javax.swing.JMenuItem(); jMenuItemEasy1 = new javax.swing.JMenuItem(); jMenuItemV6 = new javax.swing.JMenuItem(); jMenuItemV7 = new javax.swing.JMenuItem(); jMenuItemExpandedV21 = new javax.swing.JMenuItem(); jMenuItemHandy1 = new javax.swing.JMenuItem(); jSeparator7 = new javax.swing.JPopupMenu.Separator(); jMenuItemByteHex1 = new javax.swing.JMenuItem(); jMenuItemByteDec1 = new javax.swing.JMenuItem(); jMenuItemByteBin1 = new javax.swing.JMenuItem(); jMenuItemByteChar1 = new javax.swing.JMenuItem(); jSeparatorByte1 = new javax.swing.JPopupMenu.Separator(); jMenuItemWord1 = new javax.swing.JMenuItem(); jMenuItemWordSwapped1 = new javax.swing.JMenuItem(); jSeparatorWord1 = new javax.swing.JPopupMenu.Separator(); jMenuItemTribyte1 = new javax.swing.JMenuItem(); jMenuItemLong1 = new javax.swing.JMenuItem(); jSeparator5 = new javax.swing.JPopupMenu.Separator(); jMenuItemAddress1 = new javax.swing.JMenuItem(); jMenuItemStackWord1 = new javax.swing.JMenuItem(); jSeparator6 = new javax.swing.JPopupMenu.Separator(); jMenuItemSpriteMono1 = new javax.swing.JMenuItem(); jMenuItemSpriteMulti1 = new javax.swing.JMenuItem(); jSeparatorSprite1 = new javax.swing.JPopupMenu.Separator(); jMenuItemText1 = new javax.swing.JMenuItem(); jMenuItemNumText1 = new javax.swing.JMenuItem(); jMenuItemTextZero1 = new javax.swing.JMenuItem(); jMenuItemtextHighOne1 = new javax.swing.JMenuItem(); jMenuItemtextShifted1 = new javax.swing.JMenuItem(); jMenuItemTextScreen1 = new javax.swing.JMenuItem(); jMenuItemTextPetascii1 = new javax.swing.JMenuItem(); jMenuItemMarkGarbage = new javax.swing.JMenuItem(); jSubMenuC = new javax.swing.JMenu(); jMenuItemConstant0b = new javax.swing.JMenuItem(); jMenuItemConstant9b = new javax.swing.JMenuItem(); jMenuItemConstant1b = new javax.swing.JMenuItem(); jMenuItemConstant2b = new javax.swing.JMenuItem(); jMenuItemConstant3b = new javax.swing.JMenuItem(); jMenuItemConstant4b = new javax.swing.JMenuItem(); jMenuItemConstant5b = new javax.swing.JMenuItem(); jMenuItemConstant6b = new javax.swing.JMenuItem(); jMenuItemConstant7b = new javax.swing.JMenuItem(); jMenuItemConstant8b = new javax.swing.JMenuItem(); jSeparatorConstant3 = new javax.swing.JPopupMenu.Separator(); jMenuItemConstantClear = new javax.swing.JMenuItem(); jSeparatorConstant4 = new javax.swing.JPopupMenu.Separator(); jMenuItemConstant0b1 = new javax.swing.JMenuItem(); jMenuItemConstant1b1 = new javax.swing.JMenuItem(); jMenuItemConstant2b1 = new javax.swing.JMenuItem(); jMenuItemConstant3b1 = new javax.swing.JMenuItem(); jMenuItemConstant4b1 = new javax.swing.JMenuItem(); jMenuItemConstant5b1 = new javax.swing.JMenuItem(); jMenuItemConstant6b1 = new javax.swing.JMenuItem(); jMenuItemConstant7b1 = new javax.swing.JMenuItem(); jMenuItemConstant8b1 = new javax.swing.JMenuItem(); jMenuItemConstant9b1 = new javax.swing.JMenuItem(); jMenuItemPlus = new javax.swing.JMenuItem(); jMenuItemMinus = new javax.swing.JMenuItem(); jMenuItemMemLow = new javax.swing.JMenuItem(); jMenuItemMemLowHigh = new javax.swing.JMenuItem(); jMenuItemMemBoth = new javax.swing.JMenuItem(); jMenuItemMemHighLow = new javax.swing.JMenuItem(); jMenuItemMemHigh = new javax.swing.JMenuItem(); jMenuItemWizard = new javax.swing.JMenuItem(); jMenuOption = new javax.swing.JMenu(); jMenuItemConfigure = new javax.swing.JMenuItem(); jMenuItemSIDLD = new javax.swing.JMenuItem(); jSeparatorOption = new javax.swing.JPopupMenu.Separator(); jMenuItemViewProject = new javax.swing.JMenuItem(); jMenuItemViewLabels = new javax.swing.JMenuItem(); jMenuSource = new javax.swing.JMenu(); jMenuItem1 = new javax.swing.JMenuItem(); jMenuItemDiss = new javax.swing.JMenuItem(); jMenuItemAssembly = new javax.swing.JMenuItem(); jSeparator1 = new javax.swing.JPopupMenu.Separator(); jMenuItemFindDis = new javax.swing.JMenuItem(); jMenuItemDissSaveAs = new javax.swing.JMenuItem(); jSeparator2 = new javax.swing.JPopupMenu.Separator(); jMenuItemFindSource = new javax.swing.JMenuItem(); jMenuItemSourceSaveAs = new javax.swing.JMenuItem(); jMenuSub = new javax.swing.JMenu(); jMenuItemSaveAsDasm1 = new javax.swing.JMenuItem(); jMenuItemSaveAsTmpx1 = new javax.swing.JMenuItem(); jMenuItemSaveAsCa66 = new javax.swing.JMenuItem(); jMenuItemSaveAsAcme1 = new javax.swing.JMenuItem(); jMenuItemSaveAsKickAssembler1 = new javax.swing.JMenuItem(); jMenuItemSaveAsTass65 = new javax.swing.JMenuItem(); jMenuItem3 = new javax.swing.JMenuItem(); jMenuHelpContents = new javax.swing.JMenu(); jMenuItemContents = new javax.swing.JMenuItem(); jSeparatorHelp1 = new javax.swing.JPopupMenu.Separator(); jMenuItemLicense = new javax.swing.JMenuItem(); jMenuItemCredits = new javax.swing.JMenuItem(); jMenuItemAbout = new javax.swing.JMenuItem(); jSeparatorHelp2 = new javax.swing.JPopupMenu.Separator(); jMenuItemImportLabels = new javax.swing.JMenuItem(); jMenuItemRefactorLabels = new javax.swing.JMenuItem(); jMenuItemAutComment = new javax.swing.JMenuItem(); jMenuItemAutLabel = new javax.swing.JMenuItem(); jMenuItemSidldPlayer = new javax.swing.JMenuItem(); jSeparatorHelp3 = new javax.swing.JPopupMenu.Separator(); jMenuUndo = new javax.swing.JMenu(); jMenuItemUndo1 = new javax.swing.JMenuItem(); jMenuItemUndo2 = new javax.swing.JMenuItem(); jMenuItemUndo3 = new javax.swing.JMenuItem(); jMenuItemUndo4 = new javax.swing.JMenuItem(); jMenuItemUndo5 = new javax.swing.JMenuItem(); jMenuItemUndo6 = new javax.swing.JMenuItem(); jMenuItemUndo7 = new javax.swing.JMenuItem(); jMenuItemUndo8 = new javax.swing.JMenuItem(); jMenuItemUndo9 = new javax.swing.JMenuItem(); jMenuBasic.setText("Data as Basic"); jMenuItemBasicNone.setText("no BASIC"); jMenuItemBasicNone.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemBasicNoneActionPerformed(evt); } }); jMenuBasic.add(jMenuItemBasicNone); jMenuBasic.add(jSeparatorStandard); jMenuItemBasicV2_0.setText(BasicType.BASIC_V2_0.getName()); jMenuItemBasicV2_0.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemBasicV2_0ActionPerformed(evt); } }); jMenuBasic.add(jMenuItemBasicV2_0); jMenuItemBasicV3_5.setText(BasicType.BASIC_V3_5.getName()); jMenuItemBasicV3_5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemBasicV3_5ActionPerformed(evt); } }); jMenuBasic.add(jMenuItemBasicV3_5); jMenuItemBasicV4_0.setText(BasicType.BASIC_V4_0.getName()); jMenuItemBasicV4_0.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemBasicV4_0ActionPerformed(evt); } }); jMenuBasic.add(jMenuItemBasicV4_0); jMenuItemBasicV7_0.setText(BasicType.BASIC_V7_0.getName()); jMenuItemBasicV7_0.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemBasicV7_0ActionPerformed(evt); } }); jMenuBasic.add(jMenuItemBasicV7_0); jMenuBasic.add(jSeparatorV2); jMenuItemSimon.setText(BasicType.BASIC_SIMON.getName()); jMenuItemSimon.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSimonActionPerformed(evt); } }); jMenuBasic.add(jMenuItemSimon); jMenuItemAndreFachat.setText(BasicType.BASIC_ANDRE_FACHAT.getName()); jMenuItemAndreFachat.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemAndreFachatActionPerformed(evt); } }); jMenuBasic.add(jMenuItemAndreFachat); jMenuItemSpeech.setText(BasicType.BASIC_SPEECH.getName()); jMenuItemSpeech.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSpeechActionPerformed(evt); } }); jMenuBasic.add(jMenuItemSpeech); jMenuItemFinalCart3.setText(BasicType.BASIC_FINAL_CART3.getName()); jMenuItemFinalCart3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemFinalCart3ActionPerformed(evt); } }); jMenuBasic.add(jMenuItemFinalCart3); jMenuItemUltrabasic.setText(BasicType.BASIC_ULTRABASIC.getName()); jMenuItemUltrabasic.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemUltrabasicActionPerformed(evt); } }); jMenuBasic.add(jMenuItemUltrabasic); jMenuItemGraphics.setText(BasicType.BASIC_GRAPHICS.getName()); jMenuItemGraphics.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemGraphicsActionPerformed(evt); } }); jMenuBasic.add(jMenuItemGraphics); jMenuItemWS.setText(BasicType.BASIC_WS.getName()); jMenuItemWS.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemWSActionPerformed(evt); } }); jMenuBasic.add(jMenuItemWS); jMenuItemPegasus.setText(BasicType.BASIC_PEGASUS.getName()); jMenuItemPegasus.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemPegasusActionPerformed(evt); } }); jMenuBasic.add(jMenuItemPegasus); jMenuItemXbasic.setText(BasicType.BASIC_XBASIC.getName()); jMenuItemXbasic.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemXbasicActionPerformed(evt); } }); jMenuBasic.add(jMenuItemXbasic); jMenuItemDrago.setText(BasicType.BASIC_DRAGO.getName()); jMenuItemDrago.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemDragoActionPerformed(evt); } }); jMenuBasic.add(jMenuItemDrago); jMenuItemReu.setText(BasicType.BASIC_REU.getName()); jMenuItemReu.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemReuActionPerformed(evt); } }); jMenuBasic.add(jMenuItemReu); jMenuItemLightninig.setText(BasicType.BASIC_LIGHTNING.getName()); jMenuItemLightninig.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemLightninigActionPerformed(evt); } }); jMenuBasic.add(jMenuItemLightninig); jMenuItemMagic.setText(BasicType.BASIC_MAGIC.getName()); jMenuItemMagic.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemMagicActionPerformed(evt); } }); jMenuBasic.add(jMenuItemMagic); jMenuItemBlark.setText(BasicType.BASIC_BLARG.getName()); jMenuItemBlark.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemBlarkActionPerformed(evt); } }); jMenuBasic.add(jMenuItemBlark); jMenuItemWSFinal.setText(BasicType.BASIC_WS_FINAL.getName()); jMenuItemWSFinal.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemWSFinalActionPerformed(evt); } }); jMenuBasic.add(jMenuItemWSFinal); jMenuItemGame.setText(BasicType.BASIC_GAME.getName()); jMenuItemGame.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemGameActionPerformed(evt); } }); jMenuBasic.add(jMenuItemGame); jMenuItemBasex.setText(BasicType.BASIC_BASEX.getName()); jMenuItemBasex.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemBasexActionPerformed(evt); } }); jMenuBasic.add(jMenuItemBasex); jMenuItemSuper.setText(BasicType.BASIC_SUPER.getName()); jMenuItemSuper.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSuperActionPerformed(evt); } }); jMenuBasic.add(jMenuItemSuper); jMenuItemExpanded.setText(BasicType.BASIC_EXPANDED.getName()); jMenuItemExpanded.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemExpandedActionPerformed(evt); } }); jMenuBasic.add(jMenuItemExpanded); jMenuItemSuperExpanderChip.setText(BasicType.BASIC_SUPER_EXPANDER_CHIP.getName()); jMenuItemSuperExpanderChip.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSuperExpanderChipActionPerformed(evt); } }); jMenuBasic.add(jMenuItemSuperExpanderChip); jMenuItemWarsaw.setText(BasicType.BASIC_WARSAW.getName()); jMenuItemWarsaw.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemWarsawActionPerformed(evt); } }); jMenuBasic.add(jMenuItemWarsaw); jMenuItemDbs.setText(BasicType.BASIC_DBS.getName()); jMenuItemDbs.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemDbsActionPerformed(evt); } }); jMenuBasic.add(jMenuItemDbs); jMenuItemKipper.setText(BasicType.BASIC_KIPPER.getName()); jMenuItemKipper.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemKipperActionPerformed(evt); } }); jMenuBasic.add(jMenuItemKipper); jMenuItemBails.setText(BasicType.BASIC_BAILS.getName()); jMenuItemBails.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemBailsActionPerformed(evt); } }); jMenuBasic.add(jMenuItemBails); jMenuItemEve.setText(BasicType.BASIC_EVE.getName()); jMenuItemEve.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemEveActionPerformed(evt); } }); jMenuBasic.add(jMenuItemEve); jMenuItemTool.setText(BasicType.BASIC_TOOL.getName()); jMenuItemTool.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemToolActionPerformed(evt); } }); jMenuBasic.add(jMenuItemTool); jMenuBasic.add(jSeparatorV128); jMenuItemV8.setText(BasicType.BASIC_V8.getName()); jMenuItemV8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemV8ActionPerformed(evt); } }); jMenuBasic.add(jMenuItemV8); jMenuBasic.add(jSeparatorV20); jMenuItemSuperExpander.setText(BasicType.BASIC_SUPER_EXPANDER.getName()); jMenuItemSuperExpander.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSuperExpanderActionPerformed(evt); } }); jMenuBasic.add(jMenuItemSuperExpander); jMenuItemTurtle.setText(BasicType.BASIC_TURTLE.getName()); jMenuItemTurtle.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemTurtleActionPerformed(evt); } }); jMenuBasic.add(jMenuItemTurtle); jMenuItemEasy.setText(BasicType.BASIC_EASY.getName()); jMenuItemEasy.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemEasyActionPerformed(evt); } }); jMenuBasic.add(jMenuItemEasy); jMenuItemV4.setText(BasicType.BASIC_V4.getName()); jMenuItemV4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemV4ActionPerformed(evt); } }); jMenuBasic.add(jMenuItemV4); jMenuItemV5.setText(BasicType.BASIC_V5.getName()); jMenuItemV5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemV5ActionPerformed(evt); } }); jMenuBasic.add(jMenuItemV5); jMenuItemExpandedV20.setText(BasicType.BASIC_EXPANDED_V20.getName()); jMenuItemExpandedV20.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemExpandedV20ActionPerformed(evt); } }); jMenuBasic.add(jMenuItemExpandedV20); jMenuItemHandy.setText(BasicType.BASIC_HANDY.getName()); jMenuItemHandy.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemHandyActionPerformed(evt); } }); jMenuBasic.add(jMenuItemHandy); jPopupMenuData.add(jMenuBasic); jMenuItemByteHex.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/B.png"))); // NOI18N jMenuItemByteHex.setText("(B) Mark data as Byte (HEX)"); jMenuItemByteHex.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemByteHexActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemByteHex); jMenuItemByteDec.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/D.png"))); // NOI18N jMenuItemByteDec.setText("(D) Mark data as Byte (DEC)"); jMenuItemByteDec.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemByteDecActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemByteDec); jMenuItemByteBin.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/Y.png"))); // NOI18N jMenuItemByteBin.setText("(Y) Mark data as Byte (BIN)"); jMenuItemByteBin.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemByteBinActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemByteBin); jMenuItemByteChar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/R.png"))); // NOI18N jMenuItemByteChar.setText("(R) Mark data as Byte (CHAR)"); jMenuItemByteChar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemByteCharActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemByteChar); jPopupMenuData.add(jSeparatorByte); jMenuItemWord.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/W.png"))); // NOI18N jMenuItemWord.setText("(W) Mark data as Word"); jMenuItemWord.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemWordActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemWord); jMenuItemWordSwapped.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/P.png"))); // NOI18N jMenuItemWordSwapped.setText("(P) Mark data as Word Swapped"); jMenuItemWordSwapped.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemWordSwappedActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemWordSwapped); jPopupMenuData.add(jSeparatorWord); jMenuItemTribyte.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/E.png"))); // NOI18N jMenuItemTribyte.setText("(E) Mark data as Tribyte"); jMenuItemTribyte.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemTribyteActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemTribyte); jMenuItemLong.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/L.png"))); // NOI18N jMenuItemLong.setText("(L) Mark data as Long"); jMenuItemLong.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemLongActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemLong); jPopupMenuData.add(jSeparatorPopUpMenu0); jMenuItemAddress.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/A.png"))); // NOI18N jMenuItemAddress.setText("(A) Mark data as Address"); jMenuItemAddress.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemAddressActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemAddress); jMenuItemStackWord.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/S.png"))); // NOI18N jMenuItemStackWord.setText("(S) Mark data as Stack Word"); jMenuItemStackWord.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemStackWordActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemStackWord); jPopupMenuData.add(jSeparatorPopUpMenu1); jMenuItemSpriteMono.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/O.png"))); // NOI18N jMenuItemSpriteMono.setText("(O) Mark data as Monocromatic Sprite definitions"); jMenuItemSpriteMono.setToolTipText(""); jMenuItemSpriteMono.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSpriteMonoActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemSpriteMono); jMenuItemSpriteMulti.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/F.png"))); // NOI18N jMenuItemSpriteMulti.setText("(F) Mark data as Multicolor Sprite definitions"); jMenuItemSpriteMulti.setToolTipText(""); jMenuItemSpriteMulti.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSpriteMultiActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemSpriteMulti); jPopupMenuData.add(jSeparatorSprite); jMenuItemText.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/T.png"))); // NOI18N jMenuItemText.setText("(T) Mark data as Text"); jMenuItemText.setToolTipText(""); jMenuItemText.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemTextActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemText); jMenuItemNumText.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/N.png"))); // NOI18N jMenuItemNumText.setText("(N) Mark data as Text with # chars before"); jMenuItemNumText.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemNumTextActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemNumText); jMenuItemTextZero.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/Z.png"))); // NOI18N jMenuItemTextZero.setText("(Z) Mark data as text terminated with 0"); jMenuItemTextZero.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemTextZeroActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemTextZero); jMenuItemtextHighOne.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/M.png"))); // NOI18N jMenuItemtextHighOne.setText("(M) Mark data as Text with high bit 1"); jMenuItemtextHighOne.setToolTipText(""); jMenuItemtextHighOne.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemtextHighOneActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemtextHighOne); jMenuItemtextShifted.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/H.png"))); // NOI18N jMenuItemtextShifted.setText("(H) Mark data as Text left shifted"); jMenuItemtextShifted.setToolTipText(""); jMenuItemtextShifted.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemtextShiftedActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemtextShifted); jMenuItemTextScreen.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/C.png"))); // NOI18N jMenuItemTextScreen.setText("(C) Mark data as Text converted to screen code"); jMenuItemTextScreen.setToolTipText(""); jMenuItemTextScreen.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemTextScreenActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemTextScreen); jMenuItemTextPetascii.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/I.png"))); // NOI18N jMenuItemTextPetascii.setText("(I) Mark data as Text converted to petAscii code"); jMenuItemTextPetascii.setToolTipText(""); jMenuItemTextPetascii.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemTextPetasciiActionPerformed(evt); } }); jPopupMenuData.add(jMenuItemTextPetascii); jMenuItemConstant0.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/0.png"))); // NOI18N jMenuItemConstant0.setText("Sub-mark cell as of constant 0"); jMenuItemConstant0.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant0ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant0); jMenuItemConstant1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/1.png"))); // NOI18N jMenuItemConstant1.setText("Sub-mark cell as of constant 1"); jMenuItemConstant1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant1ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant1); jMenuItemConstant2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/2.png"))); // NOI18N jMenuItemConstant2.setText("Sub-mark cell as of constant 2"); jMenuItemConstant2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant2ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant2); jMenuItemConstant3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/3.png"))); // NOI18N jMenuItemConstant3.setText("Sub-mark cell as of constant 3"); jMenuItemConstant3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant3ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant3); jMenuItemConstant4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/4.png"))); // NOI18N jMenuItemConstant4.setText("Sub-mark cell as of constant 4"); jMenuItemConstant4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant4ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant4); jMenuItemConstant5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/5.png"))); // NOI18N jMenuItemConstant5.setText("Sub-mark cell as of constant 5"); jMenuItemConstant5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant5ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant5); jMenuItemConstant6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/6.png"))); // NOI18N jMenuItemConstant6.setText("Sub-mark cell as of constant 6"); jMenuItemConstant6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant6ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant6); jMenuItemConstant7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/7.png"))); // NOI18N jMenuItemConstant7.setText("Sub-mark cell as of constant 7"); jMenuItemConstant7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant7ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant7); jMenuItemConstant8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/8.png"))); // NOI18N jMenuItemConstant8.setText("Sub-mark cell as of constant 8"); jMenuItemConstant8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant8ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant8); jMenuItemConstant9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/9.png"))); // NOI18N jMenuItemConstant9.setText("Sub-mark cell as of constant 9"); jMenuItemConstant9.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant9ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant9); jPopupMenuConstant.add(jSeparatorConstant); jMenuItemConstantClear_.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/0-9.png"))); // NOI18N jMenuItemConstantClear_.setText("Sub-mark cell as of constant none"); jMenuItemConstantClear_.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstantClear_ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstantClear_); jPopupMenuConstant.add(jSeparatorConstant2); jMenuItemConstant10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/0.png"))); // NOI18N jMenuItemConstant10.setText("Sub-mark cell as of constant !"); jMenuItemConstant10.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant10ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant10); jMenuItemConstant11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/1.png"))); // NOI18N jMenuItemConstant11.setText("Sub-mark cell as of constant \""); jMenuItemConstant11.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant11ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant11); jMenuItemConstant12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/2.png"))); // NOI18N jMenuItemConstant12.setText("Sub-mark cell as of constant £"); jMenuItemConstant12.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant12ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant12); jMenuItemConstant13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/3.png"))); // NOI18N jMenuItemConstant13.setText("Sub-mark cell as of constant $"); jMenuItemConstant13.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant13ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant13); jMenuItemConstant14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/4.png"))); // NOI18N jMenuItemConstant14.setText("Sub-mark cell as of constant %"); jMenuItemConstant14.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant14ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant14); jMenuItemConstant15.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/5.png"))); // NOI18N jMenuItemConstant15.setText("Sub-mark cell as of constant &"); jMenuItemConstant15.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant15ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant15); jMenuItemConstant16.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/6.png"))); // NOI18N jMenuItemConstant16.setText("Sub-mark cell as of constant /"); jMenuItemConstant16.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant16ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant16); jMenuItemConstant17.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/7.png"))); // NOI18N jMenuItemConstant17.setText("Sub-mark cell as of constant ("); jMenuItemConstant17.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant17ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant17); jMenuItemConstant18.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/8.png"))); // NOI18N jMenuItemConstant18.setText("Sub-mark cell as of constant )"); jMenuItemConstant18.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant18ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant18); jMenuItemConstant19.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/9.png"))); // NOI18N jMenuItemConstant19.setText("Sub-mark cell as of constant ="); jMenuItemConstant19.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant19ActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemConstant19); jMenuItemSaveAsDasm.setText("Save in Dasm format"); jMenuItemSaveAsDasm.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSaveAsDasmActionPerformed(evt); } }); jPopupMenuSaveAs.add(jMenuItemSaveAsDasm); jMenuItemSaveAsTmpx.setText("Save in TMPx format"); jMenuItemSaveAsTmpx.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSaveAsTmpxActionPerformed(evt); } }); jPopupMenuSaveAs.add(jMenuItemSaveAsTmpx); jMenuItemSaveAsCa65.setText("Save in CA65 format"); jMenuItemSaveAsCa65.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSaveAsCa65ActionPerformed(evt); } }); jPopupMenuSaveAs.add(jMenuItemSaveAsCa65); jMenuItemSaveAsAcme.setText("Save in Acme format"); jMenuItemSaveAsAcme.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSaveAsAcmeActionPerformed(evt); } }); jPopupMenuSaveAs.add(jMenuItemSaveAsAcme); jMenuItemSaveAsKickAssembler.setText("Save in KickAssembler format"); jMenuItemSaveAsKickAssembler.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSaveAsKickAssemblerActionPerformed(evt); } }); jPopupMenuSaveAs.add(jMenuItemSaveAsKickAssembler); jMenuItemSaveAsTass64.setText("Save in Tass64 format"); jMenuItemSaveAsTass64.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSaveAsTass64ActionPerformed(evt); } }); jPopupMenuSaveAs.add(jMenuItemSaveAsTass64); jMenuItemCopy.setText("Copy into this instance"); jMenuItemCopy.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemCopyActionPerformed(evt); } }); jPopupMenuMemory.add(jMenuItemCopy); jMenuItemPaste.setText("Paste from another instance"); jMenuItemPaste.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemPasteActionPerformed(evt); } }); jPopupMenuMemory.add(jMenuItemPaste); jPopupMenuMemory.add(jSeparatorMem1); jMenuItemFindAddr.setText("Find address"); jMenuItemFindAddr.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemFindAddrActionPerformed(evt); } }); jPopupMenuMemory.add(jMenuItemFindAddr); jMenuItemFindSeq.setText("Find sequences of bytes"); jMenuItemFindSeq.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemFindSeqActionPerformed(evt); } }); jPopupMenuMemory.add(jMenuItemFindSeq); jPopupMenuMemory.add(jSeparatorMem2); jMenuItemCode.setText("Mark as code"); jMenuItemCode.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemCodeActionPerformed(evt); } }); jPopupMenuMemory.add(jMenuItemCode); jMenuItemData.setText("Mark as data"); jMenuItemData.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemDataActionPerformed(evt); } }); jPopupMenuMemory.add(jMenuItemData); jMenuDataSel.setText("More specific data selection:"); jMenuItemByteHex2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/B.png"))); // NOI18N jMenuItemByteHex2.setText("(B) Mark data as Byte (HEX)"); jMenuItemByteHex2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemByteHex2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemByteHex2); jMenuItemByteDec2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/D.png"))); // NOI18N jMenuItemByteDec2.setText("(D) Mark data as Byte (DEC)"); jMenuItemByteDec2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemByteDec2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemByteDec2); jMenuItemByteBin2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/Y.png"))); // NOI18N jMenuItemByteBin2.setText("(Y) Mark data as Byte (BIN)"); jMenuItemByteBin2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemByteBin2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemByteBin2); jMenuItemByteChar2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/R.png"))); // NOI18N jMenuItemByteChar2.setText("(R) Mark data as Byte (CHAR)"); jMenuItemByteChar2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemByteChar2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemByteChar2); jMenuDataSel.add(jSeparatorByte2); jMenuItemWord2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/W.png"))); // NOI18N jMenuItemWord2.setText("(W) Mark data as Word"); jMenuItemWord2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemWord2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemWord2); jMenuItemWordSwapped2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/P.png"))); // NOI18N jMenuItemWordSwapped2.setText("(P) Mark data as Word Swapped"); jMenuItemWordSwapped2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemWordSwapped2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemWordSwapped2); jMenuDataSel.add(jSeparatorWord2); jMenuItemTribyte2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/E.png"))); // NOI18N jMenuItemTribyte2.setText("(E) Mark data as Tribyte"); jMenuItemTribyte2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemTribyte2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemTribyte2); jMenuItemLong2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/L.png"))); // NOI18N jMenuItemLong2.setText("(L) Mark data as Long"); jMenuItemLong2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemLong2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemLong2); jMenuDataSel.add(jSeparatorPopUpMenu2); jMenuItemAddress2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/A.png"))); // NOI18N jMenuItemAddress2.setText("(A) Mark data as Address"); jMenuItemAddress2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemAddress2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemAddress2); jMenuItemStackWord2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/S.png"))); // NOI18N jMenuItemStackWord2.setText("(S) Mark data as Stack Word"); jMenuItemStackWord2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemStackWord2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemStackWord2); jMenuDataSel.add(jSeparatorPopUpMenu3); jMenuItemSpriteMono2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/O.png"))); // NOI18N jMenuItemSpriteMono2.setText("(O) Mark data as Monocromatic Sprite definitions"); jMenuItemSpriteMono2.setToolTipText(""); jMenuItemSpriteMono2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSpriteMono2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemSpriteMono2); jMenuItemSpriteMulti2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/F.png"))); // NOI18N jMenuItemSpriteMulti2.setText("(F) Mark data as Multicolor Sprite definitions"); jMenuItemSpriteMulti2.setToolTipText(""); jMenuItemSpriteMulti2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSpriteMulti2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemSpriteMulti2); jMenuDataSel.add(jSeparatorSprite2); jMenuItemText2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/T.png"))); // NOI18N jMenuItemText2.setText("(T) Mark data as Text"); jMenuItemText2.setToolTipText(""); jMenuItemText2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemText2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemText2); jMenuItemNumText2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/N.png"))); // NOI18N jMenuItemNumText2.setText("(N) Mark data as Text with # chars before"); jMenuItemNumText2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemNumText2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemNumText2); jMenuItemTextZero2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/Z.png"))); // NOI18N jMenuItemTextZero2.setText("(Z) Mark data as text terminated with 0"); jMenuItemTextZero2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemTextZero2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemTextZero2); jMenuItemtextHighOne2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/M.png"))); // NOI18N jMenuItemtextHighOne2.setText("(M) Mark data as Text with high bit 1"); jMenuItemtextHighOne2.setToolTipText(""); jMenuItemtextHighOne2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemtextHighOne2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemtextHighOne2); jMenuItemtextShifted2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/H.png"))); // NOI18N jMenuItemtextShifted2.setText("(H) Mark data as Text left shifted"); jMenuItemtextShifted2.setToolTipText(""); jMenuItemtextShifted2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemtextShifted2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemtextShifted2); jMenuItemTextScreen2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/C.png"))); // NOI18N jMenuItemTextScreen2.setText("(C) Mark data as Text converted to screen code"); jMenuItemTextScreen2.setToolTipText(""); jMenuItemTextScreen2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemTextScreen2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemTextScreen2); jMenuItemTextPetascii2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/I.png"))); // NOI18N jMenuItemTextPetascii2.setText("(I) Mark data as Text converted to petAscii code"); jMenuItemTextPetascii2.setToolTipText(""); jMenuItemTextPetascii2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemTextPetascii2ActionPerformed(evt); } }); jMenuDataSel.add(jMenuItemTextPetascii2); jPopupMenuMemory.add(jMenuDataSel); jMenuItemGarbage.setText("Mark as garbage"); jMenuItemGarbage.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemGarbageActionPerformed(evt); } }); jPopupMenuMemory.add(jMenuItemGarbage); jMenuItemUnmark.setText("Un-Mark area"); jMenuItemUnmark.setToolTipText(""); jMenuItemUnmark.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemUnmarkActionPerformed(evt); } }); jPopupMenuMemory.add(jMenuItemUnmark); jPopupMenuMemory.add(jSeparatorMem3); jMenuItemHex.setText("Show hex/text/char view"); jMenuItemHex.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemHexActionPerformed(evt); } }); jPopupMenuMemory.add(jMenuItemHex); jMenuItemBlockLabel.setText("Sequential labeled blocks"); jMenuItemBlockLabel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemBlockLabelActionPerformed(evt); } }); jPopupMenuMemory.add(jMenuItemBlockLabel); setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); setTitle("JC64Dis"); setIconImages(iconImages); addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { formMouseEntered(evt); } }); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } }); jPanelToolBar.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jPanelToolBarMouseEntered(evt); } }); jPanelToolBar.setLayout(new javax.swing.BoxLayout(jPanelToolBar, javax.swing.BoxLayout.LINE_AXIS)); jToolBarFile.setRollover(true); jButtonNewProject.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/filenew.png"))); // NOI18N jButtonNewProject.setToolTipText("New project"); jButtonNewProject.setFocusable(false); jButtonNewProject.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonNewProject.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonNewProject.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonNewProjectActionPerformed(evt); } }); jToolBarFile.add(jButtonNewProject); jButtonOpenProject.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/fileopen.png"))); // NOI18N jButtonOpenProject.setToolTipText("Open project"); jButtonOpenProject.setFocusable(false); jButtonOpenProject.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonOpenProject.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonOpenProject.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonOpenProjectActionPerformed(evt); } }); jToolBarFile.add(jButtonOpenProject); jButtonClose.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/close.png"))); // NOI18N jButtonClose.setToolTipText("Close the project"); jButtonClose.setFocusable(false); jButtonClose.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonClose.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonClose.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonCloseActionPerformed(evt); } }); jToolBarFile.add(jButtonClose); jButtonSaveProject.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/filesave.png"))); // NOI18N jButtonSaveProject.setToolTipText("Save project"); jButtonSaveProject.setFocusable(false); jButtonSaveProject.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonSaveProject.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonSaveProject.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonSaveProjectActionPerformed(evt); } }); jToolBarFile.add(jButtonSaveProject); jButtonSaveProjectAs.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/filesaveas.png"))); // NOI18N jButtonSaveProjectAs.setToolTipText("Save project as"); jButtonSaveProjectAs.setFocusable(false); jButtonSaveProjectAs.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonSaveProjectAs.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonSaveProjectAs.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonSaveProjectAsActionPerformed(evt); } }); jToolBarFile.add(jButtonSaveProjectAs); jButtonMPR.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/create.png"))); // NOI18N jButtonMPR.setToolTipText("Create a MRP archive"); jButtonMPR.setFocusable(false); jButtonMPR.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonMPR.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonMPR.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonMPRActionPerformed(evt); } }); jToolBarFile.add(jButtonMPR); jButtonMerge.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/merge.png"))); // NOI18N jButtonMerge.setToolTipText("Collaborative merge"); jButtonMerge.setFocusable(false); jButtonMerge.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonMerge.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonMerge.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonMergeActionPerformed(evt); } }); jToolBarFile.add(jButtonMerge); jButtonExit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/exit.png"))); // NOI18N jButtonExit.setToolTipText("Exit application"); jButtonExit.setFocusable(false); jButtonExit.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonExit.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonExit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonExitActionPerformed(evt); } }); jToolBarFile.add(jButtonExit); jPanelToolBar.add(jToolBarFile); jToolBarMemory.setRollover(true); jButtonClearDMem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/eraser.png"))); // NOI18N jButtonClearDMem.setToolTipText("Erase daisassembly automatic comment"); jButtonClearDMem.setFocusable(false); jButtonClearDMem.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonClearDMem.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonClearDMem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonClearDMemActionPerformed(evt); } }); jToolBarMemory.add(jButtonClearDMem); jButtonClearUMem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/eraser1.png"))); // NOI18N jButtonClearUMem.setToolTipText("Erase user comment"); jButtonClearUMem.setFocusable(false); jButtonClearUMem.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonClearUMem.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonClearUMem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonClearUMemActionPerformed(evt); } }); jToolBarMemory.add(jButtonClearUMem); jButtonClearDLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/eraser2.png"))); // NOI18N jButtonClearDLabel.setToolTipText("Erase disassembly automatic label"); jButtonClearDLabel.setFocusable(false); jButtonClearDLabel.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonClearDLabel.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonClearDLabel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonClearDLabelActionPerformed(evt); } }); jToolBarMemory.add(jButtonClearDLabel); jButtonAddUserComm.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/comm.png"))); // NOI18N jButtonAddUserComm.setToolTipText("Add user comment"); jButtonAddUserComm.setFocusable(false); jButtonAddUserComm.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonAddUserComm.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonAddUserComm.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonAddUserCommActionPerformed(evt); } }); jToolBarMemory.add(jButtonAddUserComm); jButtonAddUserBlock.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/block.png"))); // NOI18N jButtonAddUserBlock.setToolTipText("Add a block user comment"); jButtonAddUserBlock.setFocusable(false); jButtonAddUserBlock.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonAddUserBlock.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonAddUserBlock.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonAddUserBlockActionPerformed(evt); } }); jToolBarMemory.add(jButtonAddUserBlock); jButtonAddUserLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mem2.png"))); // NOI18N jButtonAddUserLabel.setToolTipText("Add user label"); jButtonAddUserLabel.setFocusable(false); jButtonAddUserLabel.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonAddUserLabel.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonAddUserLabel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonAddUserLabelActionPerformed(evt); } }); jToolBarMemory.add(jButtonAddUserLabel); jButtonAddUserLabelOp.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mem3.png"))); // NOI18N jButtonAddUserLabelOp.setToolTipText("Add user label on next word address"); jButtonAddUserLabelOp.setFocusable(false); jButtonAddUserLabelOp.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonAddUserLabelOp.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonAddUserLabelOp.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonAddUserLabelOpActionPerformed(evt); } }); jToolBarMemory.add(jButtonAddUserLabelOp); jButtonMarkCode.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/code.png"))); // NOI18N jButtonMarkCode.setToolTipText("Mark the selected addresses as code"); jButtonMarkCode.setFocusable(false); jButtonMarkCode.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonMarkCode.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonMarkCode.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jButtonMarkCodeMouseEntered(evt); } }); jButtonMarkCode.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonMarkCodeActionPerformed(evt); } }); jToolBarMemory.add(jButtonMarkCode); jButtonMarkData.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/data.png"))); // NOI18N jButtonMarkData.setToolTipText("Mark the selected addresses as data"); jButtonMarkData.setFocusable(false); jButtonMarkData.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonMarkData.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonMarkData.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jButtonMarkDataMouseEntered(evt); } }); jButtonMarkData.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonMarkDataActionPerformed(evt); } }); jToolBarMemory.add(jButtonMarkData); jButtonMarkGarbage.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/garb.png"))); // NOI18N jButtonMarkGarbage.setToolTipText("Mark the selected addresses as garbage"); jButtonMarkGarbage.setFocusable(false); jButtonMarkGarbage.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonMarkGarbage.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonMarkGarbage.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jButtonMarkGarbageMouseEntered(evt); } }); jButtonMarkGarbage.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonMarkGarbageActionPerformed(evt); } }); jToolBarMemory.add(jButtonMarkGarbage); jButtonMarkConstant.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/const.png"))); // NOI18N jButtonMarkConstant.setToolTipText("Mark the selected addresses as constant"); jButtonMarkConstant.setFocusable(false); jButtonMarkConstant.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonMarkConstant.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonMarkConstant.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jButtonMarkConstantMouseEntered(evt); } }); jButtonMarkConstant.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonMarkConstantActionPerformed(evt); } }); jToolBarMemory.add(jButtonMarkConstant); jButtonMarkPlus.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/plus.png"))); // NOI18N jButtonMarkPlus.setToolTipText("Mark the selected addresses as +"); jButtonMarkPlus.setFocusable(false); jButtonMarkPlus.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonMarkPlus.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonMarkPlus.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jButtonMarkPlusMouseEntered(evt); } }); jButtonMarkPlus.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonMarkPlusActionPerformed(evt); } }); jToolBarMemory.add(jButtonMarkPlus); jButtonMarkMinus.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/minus.png"))); // NOI18N jButtonMarkMinus.setToolTipText("Mark the selected addresses as -"); jButtonMarkMinus.setFocusable(false); jButtonMarkMinus.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonMarkMinus.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonMarkMinus.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonMarkMinusActionPerformed(evt); } }); jToolBarMemory.add(jButtonMarkMinus); jButtonMarkLow.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/min.png"))); // NOI18N jButtonMarkLow.setToolTipText("Assign the selected address as #<"); jButtonMarkLow.setFocusable(false); jButtonMarkLow.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonMarkLow.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonMarkLow.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonMarkLowActionPerformed(evt); } }); jToolBarMemory.add(jButtonMarkLow); jButtonMarkLowHigh.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/minmax.png"))); // NOI18N jButtonMarkLowHigh.setToolTipText("Assign the 2 selected addresses as #<>"); jButtonMarkLowHigh.setFocusable(false); jButtonMarkLowHigh.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonMarkLowHigh.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonMarkLowHigh.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonMarkLowHighActionPerformed(evt); } }); jToolBarMemory.add(jButtonMarkLowHigh); jButtonMarkBoth.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/both.png"))); // NOI18N jButtonMarkBoth.setToolTipText("Assign the 2 tables as #<>"); jButtonMarkBoth.setFocusable(false); jButtonMarkBoth.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonMarkBoth.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonMarkBoth.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonMarkBothActionPerformed(evt); } }); jToolBarMemory.add(jButtonMarkBoth); jButtonMarkHighLow.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/maxmin.png"))); // NOI18N jButtonMarkHighLow.setToolTipText("Assign the 2 selected addresses as #<>"); jButtonMarkHighLow.setFocusable(false); jButtonMarkHighLow.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonMarkHighLow.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonMarkHighLow.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonMarkHighLowActionPerformed(evt); } }); jToolBarMemory.add(jButtonMarkHighLow); jButtonMarkMax.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/max.png"))); // NOI18N jButtonMarkMax.setToolTipText("Assign the selected address as #>"); jButtonMarkMax.setFocusable(false); jButtonMarkMax.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonMarkMax.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonMarkMax.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonMarkMaxActionPerformed(evt); } }); jToolBarMemory.add(jButtonMarkMax); jButtonWizard.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/wizard.png"))); // NOI18N jButtonWizard.setToolTipText("Assign using a wizard"); jButtonWizard.setFocusable(false); jButtonWizard.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonWizard.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonWizard.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonWizardActionPerformed(evt); } }); jToolBarMemory.add(jButtonWizard); jPanelToolBar.add(jToolBarMemory); jToolBarOption.setRollover(true); jButtonConfigure.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/configure.png"))); // NOI18N jButtonConfigure.setToolTipText("Set general option"); jButtonConfigure.setFocusable(false); jButtonConfigure.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonConfigure.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonConfigure.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonConfigureActionPerformed(evt); } }); jToolBarOption.add(jButtonConfigure); jButtonSIDLD.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mem.png"))); // NOI18N jButtonSIDLD.setToolTipText("Apply SIDLD flags to memory"); jButtonSIDLD.setFocusable(false); jButtonSIDLD.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonSIDLD.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonSIDLD.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonSIDLDActionPerformed(evt); } }); jToolBarOption.add(jButtonSIDLD); jButtonViewProject.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/view_detailed.png"))); // NOI18N jButtonViewProject.setToolTipText("View project"); jButtonViewProject.setFocusable(false); jButtonViewProject.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonViewProject.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonViewProject.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonViewProjectActionPerformed(evt); } }); jToolBarOption.add(jButtonViewProject); jButtonViewLabels.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/view_label.png"))); // NOI18N jButtonViewLabels.setToolTipText("View labels"); jButtonViewLabels.setFocusable(false); jButtonViewLabels.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonViewLabels.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonViewLabels.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonViewLabelsActionPerformed(evt); } }); jToolBarOption.add(jButtonViewLabels); jPanelToolBar.add(jToolBarOption); jToolBarSource.setRollover(true); jButtonFindMem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/finda.png"))); // NOI18N jButtonFindMem.setToolTipText("Find a memory address"); jButtonFindMem.setFocusable(false); jButtonFindMem.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonFindMem.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonFindMem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonFindMemActionPerformed(evt); } }); jToolBarSource.add(jButtonFindMem); jButtonDisassemble.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/exec.png"))); // NOI18N jButtonDisassemble.setToolTipText("Disassemble"); jButtonDisassemble.setFocusable(false); jButtonDisassemble.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonDisassemble.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonDisassemble.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonDisassembleActionPerformed(evt); } }); jToolBarSource.add(jButtonDisassemble); jButtonAssemble.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/assembler.png"))); // NOI18N jButtonAssemble.setToolTipText("Assemble"); jButtonAssemble.setFocusable(false); jButtonAssemble.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonAssemble.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonAssemble.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonAssembleActionPerformed(evt); } }); jToolBarSource.add(jButtonAssemble); jButtonFindDis.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/findd.png"))); // NOI18N jButtonFindDis.setToolTipText("Find a text in preview"); jButtonFindDis.setFocusable(false); jButtonFindDis.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonFindDis.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonFindDis.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonFindDisActionPerformed(evt); } }); jToolBarSource.add(jButtonFindDis); jButtonExportAsDiss.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/exportas1.png"))); // NOI18N jButtonExportAsDiss.setToolTipText("Save preview file"); jButtonExportAsDiss.setFocusable(false); jButtonExportAsDiss.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonExportAsDiss.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonExportAsDiss.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonExportAsDissActionPerformed(evt); } }); jToolBarSource.add(jButtonExportAsDiss); jButtonFindSource.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/finds.png"))); // NOI18N jButtonFindSource.setToolTipText("Find a text in source"); jButtonFindSource.setFocusable(false); jButtonFindSource.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonFindSource.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonFindSource.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jButtonFindSourceMouseEntered(evt); } }); jButtonFindSource.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonFindSourceActionPerformed(evt); } }); jToolBarSource.add(jButtonFindSource); jButtonExportAsSource.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/exportas2.png"))); // NOI18N jButtonExportAsSource.setToolTipText("Save source file"); jButtonExportAsSource.setFocusable(false); jButtonExportAsSource.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonExportAsSource.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonExportAsSource.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jButtonExportAsSourceMouseEntered(evt); } }); jButtonExportAsSource.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonExportAsSourceActionPerformed(evt); } }); jToolBarSource.add(jButtonExportAsSource); jButtonExportAsSource1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/freeze.png"))); // NOI18N jButtonExportAsSource1.setToolTipText("Freeze the source"); jButtonExportAsSource1.setFocusable(false); jButtonExportAsSource1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonExportAsSource1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButtonExportAsSource1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jButtonExportAsSource1MouseEntered(evt); } }); jButtonExportAsSource1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonExportAsSource1ActionPerformed(evt); } }); jToolBarSource.add(jButtonExportAsSource1); jPanelToolBar.add(jToolBarSource); jToolBarPerformance.setRollover(true); jToolBarPerformance.setAlignmentY(0.5F); jToolBarPerformance.setMaximumSize(new java.awt.Dimension(128, 38)); jToolBarPerformance.setMinimumSize(new java.awt.Dimension(128, 38)); jToolBarPerformance.setPreferredSize(new java.awt.Dimension(128, 38)); jToolBarPerformance.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jToolBarPerformanceMouseEntered(evt); } }); heapView.setMinimumSize(new java.awt.Dimension(128, 38)); heapView.setName(""); // NOI18N heapView.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { heapViewMouseClicked(evt); } }); jToolBarPerformance.add(heapView); jPanelToolBar.add(jToolBarPerformance); jToolBarPerc.setRollover(true); jToolBarPerc.setMaximumSize(new java.awt.Dimension(92, 38)); jToolBarPerc.setMinimumSize(new java.awt.Dimension(92, 38)); jToolBarPerc.setName(""); // NOI18N jToolBarPerc.setPreferredSize(new java.awt.Dimension(92, 38)); jPanelPerc.setMaximumSize(new java.awt.Dimension(74, 36)); jPanelPerc.setMinimumSize(new java.awt.Dimension(74, 36)); jPanelPerc.setPreferredSize(new java.awt.Dimension(74, 36)); jToolBarPerc.add(jPanelPerc); jPanelToolBar.add(jToolBarPerc); jSplitPaneExternal.setToolTipText(""); jSplitPaneInternal.setResizeWeight(0.5); jSplitPaneInternal.setToolTipText(""); jPanelLeft.setLayout(new java.awt.BorderLayout()); rSyntaxTextAreaDis.setEditable(false); rSyntaxTextAreaDis.setColumns(20); rSyntaxTextAreaDis.setRows(5); rSyntaxTextAreaDis.setFont(new java.awt.Font("Monospaced", 0, 12)); // NOI18N rSyntaxTextAreaDis.setName("Dis"); // NOI18N rSyntaxTextAreaDis.setSyntaxEditingStyle("text/asm6502"); findDialogDis=new FindDialog(this, new SearchListener() { @Override public void searchEvent(SearchEvent e) { SearchEvent.Type type = e.getType(); SearchContext context = e.getSearchContext(); SearchResult result; switch (type) { default: // Prevent FindBugs warning later case MARK_ALL: result = SearchEngine.markAll(rSyntaxTextAreaDis, context); break; case FIND: result = SearchEngine.find(rSyntaxTextAreaDis, context); if (!result.wasFound()) { UIManager.getLookAndFeel().provideErrorFeedback(rSyntaxTextAreaDis); } break; } } @Override public String getSelectedText() { return rSyntaxTextAreaDis.getSelectedText(); } } ); rSyntaxTextAreaDis.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_F, InputEvent.CTRL_MASK), new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { execute(SOURCE_FINDD); } } ); // force menu key not working otherwise rSyntaxTextAreaDis.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ADD, InputEvent.CTRL_MASK), new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { execute(MEM_PLUS); } } ); // force menu key not working otherwise rSyntaxTextAreaDis.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_SUBTRACT, InputEvent.CTRL_MASK), new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { execute(MEM_MINUS); } } ); rSyntaxTextAreaDis.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { rSyntaxTextAreaDisMouseClicked(evt); } public void mouseEntered(java.awt.event.MouseEvent evt) { rSyntaxTextAreaDisMouseEntered(evt); } public void mouseReleased(java.awt.event.MouseEvent evt) { rSyntaxTextAreaDisMouseReleased(evt); } }); rSyntaxTextAreaDis.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { rSyntaxTextAreaDisKeyReleased(evt); } }); jScrollPaneLeft.setViewportView(rSyntaxTextAreaDis); jPanelLeft.add(jScrollPaneLeft, java.awt.BorderLayout.CENTER); jScrollPaneLeftMin.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneLeftMin.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); rSyntaxTextAreaDisMin.setEditable(false); rSyntaxTextAreaDisMin.setColumns(40); rSyntaxTextAreaDisMin.setRows(5); rSyntaxTextAreaDisMin.setFont(new java.awt.Font("Monospaced", 0, 3)); // NOI18N rSyntaxTextAreaDisMin.setMinimumSize(new java.awt.Dimension(671, 1000)); rSyntaxTextAreaDisMin.setName("Miniature"); // NOI18N rSyntaxTextAreaDisMin.setSyntaxEditingStyle("text/asm6502"); rSyntaxTextAreaDisMin.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_F, InputEvent.CTRL_MASK), new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { execute(SOURCE_FINDD); } } ); rSyntaxTextAreaDisMin.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { rSyntaxTextAreaDisMinMouseClicked(evt); } public void mouseReleased(java.awt.event.MouseEvent evt) { rSyntaxTextAreaDisMinMouseReleased(evt); } }); jScrollPaneLeftMin.setViewportView(rSyntaxTextAreaDisMin); jPanelLeft.add(jScrollPaneLeftMin, java.awt.BorderLayout.EAST); jSplitPaneInternal.setLeftComponent(jPanelLeft); jPanelRight.setLayout(new java.awt.BorderLayout()); rSyntaxTextAreaSource.setEditable(false); rSyntaxTextAreaSource.setColumns(25); rSyntaxTextAreaSource.setRows(5); rSyntaxTextAreaSource.setFont(new java.awt.Font("Monospaced", 0, 12)); // NOI18N rSyntaxTextAreaSource.setName("Source"); // NOI18N rSyntaxTextAreaSource.setSyntaxEditingStyle("text/asm6502"); findDialogSource=new FindDialog(this, new SearchListener() { @Override public void searchEvent(SearchEvent e) { SearchEvent.Type type = e.getType(); SearchContext context = e.getSearchContext(); SearchResult result; switch (type) { default: // Prevent FindBugs warning later case MARK_ALL: result = SearchEngine.markAll(rSyntaxTextAreaSource, context); break; case FIND: result = SearchEngine.find(rSyntaxTextAreaSource, context); if (!result.wasFound()) { UIManager.getLookAndFeel().provideErrorFeedback(rSyntaxTextAreaSource); } break; } } @Override public String getSelectedText() { return rSyntaxTextAreaSource.getSelectedText(); } } ); rSyntaxTextAreaSource.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_F, InputEvent.CTRL_MASK), new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { execute(SOURCE_FINDS); } } ); rSyntaxTextAreaSource.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { rSyntaxTextAreaSourceMouseClicked(evt); } public void mouseEntered(java.awt.event.MouseEvent evt) { rSyntaxTextAreaSourceMouseEntered(evt); } public void mouseReleased(java.awt.event.MouseEvent evt) { rSyntaxTextAreaSourceMouseReleased(evt); } }); jScrollPaneRight.setViewportView(rSyntaxTextAreaSource); jPanelRight.add(jScrollPaneRight, java.awt.BorderLayout.CENTER); jScrollPaneRightMin.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneRightMin.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); rSyntaxTextAreaSourceMin.setEditable(false); rSyntaxTextAreaSourceMin.setColumns(35); rSyntaxTextAreaSourceMin.setRows(5); rSyntaxTextAreaSourceMin.setFont(new java.awt.Font("Monospaced", 0, 3)); // NOI18N rSyntaxTextAreaSourceMin.setMinimumSize(new java.awt.Dimension(671, 1000)); rSyntaxTextAreaSourceMin.setName("Miniature"); // NOI18N rSyntaxTextAreaSourceMin.setSyntaxEditingStyle("text/asm6502"); rSyntaxTextAreaSourceMin.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_F, InputEvent.CTRL_MASK), new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { execute(SOURCE_FINDS); } } ); rSyntaxTextAreaSourceMin.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { rSyntaxTextAreaSourceMinMouseClicked(evt); } public void mouseReleased(java.awt.event.MouseEvent evt) { rSyntaxTextAreaSourceMinMouseReleased(evt); } }); jScrollPaneRightMin.setViewportView(rSyntaxTextAreaSourceMin); jPanelRight.add(jScrollPaneRightMin, java.awt.BorderLayout.EAST); jSplitPaneInternal.setRightComponent(jPanelRight); jSplitPaneExternal.setRightComponent(jSplitPaneInternal); jScrollPaneMemory.setPreferredSize(new java.awt.Dimension(200, 403)); jTableMemory.setModel(dataTableModelMemory); jTableMemory.setDefaultRenderer(Integer.class, memoryTableCellRenderer); jTableMemory.getColumnModel().getColumn(0).setPreferredWidth(310); InputMap im = this.getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); ActionMap am = this.getRootPane().getActionMap(); //add custom action im.put(KeyStroke.getKeyStroke("control F"), "find"); am.put("find", new AbstractAction() { @Override public void actionPerformed(ActionEvent ae) { execute(SOURCE_FINDA); } }); ((InputMap)UIManager.get("Table.ancestorInputMap")).put(KeyStroke.getKeyStroke("control F"), "none"); //add custom action im.put(KeyStroke.getKeyStroke(KeyEvent.VK_HOME, InputEvent.ALT_DOWN_MASK), "home"); am.put("home", new AbstractAction() { @Override public void actionPerformed(ActionEvent ae) { altHome(); } }); im.put(KeyStroke.getKeyStroke(KeyEvent.VK_END, InputEvent.ALT_DOWN_MASK), "end"); am.put("end", new AbstractAction() { @Override public void actionPerformed(ActionEvent ae) { altEnd(); } }); jTableMemory.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent evt) { jTableMemoryMousePressed(evt); } public void mouseReleased(java.awt.event.MouseEvent evt) { jTableMemoryMouseReleased(evt); } }); jScrollPaneMemory.setViewportView(jTableMemory); jSplitPaneExternal.setLeftComponent(jScrollPaneMemory); jMenuBar.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jMenuBarMouseEntered(evt); } }); jMenuFile.setText("File"); jMenuItemNewProject.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemNewProject.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/filenew.png"))); // NOI18N jMenuItemNewProject.setMnemonic('n'); jMenuItemNewProject.setText("New Project"); jMenuItemNewProject.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemNewProjectActionPerformed(evt); } }); jMenuFile.add(jMenuItemNewProject); jMenuFile.add(jSeparatorProject1); jMenuItemOpenProject.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemOpenProject.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/fileopen.png"))); // NOI18N jMenuItemOpenProject.setMnemonic('o'); jMenuItemOpenProject.setText("Open Project"); jMenuItemOpenProject.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemOpenProjectActionPerformed(evt); } }); jMenuFile.add(jMenuItemOpenProject); jMenuRecent.setText("Open Recent Project"); jMenuRecent.addMenuListener(new javax.swing.event.MenuListener() { public void menuCanceled(javax.swing.event.MenuEvent evt) { } public void menuDeselected(javax.swing.event.MenuEvent evt) { } public void menuSelected(javax.swing.event.MenuEvent evt) { jMenuRecentMenuSelected(evt); } }); jMenuItemRecent1.setEnabled(false); jMenuItemRecent1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemRecent1ActionPerformed(evt); } }); jMenuRecent.add(jMenuItemRecent1); jMenuItemRecent2.setEnabled(false); jMenuItemRecent2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemRecent2ActionPerformed(evt); } }); jMenuRecent.add(jMenuItemRecent2); jMenuItemRecent3.setEnabled(false); jMenuItemRecent3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemRecent3ActionPerformed(evt); } }); jMenuRecent.add(jMenuItemRecent3); jMenuItemRecent4.setEnabled(false); jMenuItemRecent4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemRecent4ActionPerformed(evt); } }); jMenuRecent.add(jMenuItemRecent4); jMenuItemRecent5.setEnabled(false); jMenuItemRecent5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemRecent5ActionPerformed(evt); } }); jMenuRecent.add(jMenuItemRecent5); jMenuItemRecent6.setEnabled(false); jMenuItemRecent6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemRecent6ActionPerformed(evt); } }); jMenuRecent.add(jMenuItemRecent6); jMenuItemRecent7.setEnabled(false); jMenuItemRecent7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemRecent7ActionPerformed(evt); } }); jMenuRecent.add(jMenuItemRecent7); jMenuItemRecent8.setEnabled(false); jMenuItemRecent8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemRecent8ActionPerformed(evt); } }); jMenuRecent.add(jMenuItemRecent8); jMenuItemRecent9.setEnabled(false); jMenuItemRecent9.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemRecent9ActionPerformed(evt); } }); jMenuRecent.add(jMenuItemRecent9); jMenuFile.add(jMenuRecent); jMenuItemCloseProject.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemCloseProject.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/close.png"))); // NOI18N jMenuItemCloseProject.setMnemonic('c'); jMenuItemCloseProject.setText("Close Project"); jMenuItemCloseProject.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemCloseProjectActionPerformed(evt); } }); jMenuFile.add(jMenuItemCloseProject); jMenuFile.add(jSeparatorProject2); jMenuItemSaveProject.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemSaveProject.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/filesave.png"))); // NOI18N jMenuItemSaveProject.setMnemonic('s'); jMenuItemSaveProject.setText("Save Project"); jMenuItemSaveProject.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSaveProjectActionPerformed(evt); } }); jMenuFile.add(jMenuItemSaveProject); jMenuItemSaveAsProject.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemSaveAsProject.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/filesaveas.png"))); // NOI18N jMenuItemSaveAsProject.setMnemonic('v'); jMenuItemSaveAsProject.setText("Save Project As"); jMenuItemSaveAsProject.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSaveAsProjectActionPerformed(evt); } }); jMenuFile.add(jMenuItemSaveAsProject); jMenuFile.add(jSeparatorProject3); jMenuItemMPR.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemMPR.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/create.png"))); // NOI18N jMenuItemMPR.setText("Create a MPR archive"); jMenuItemMPR.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemMPRActionPerformed(evt); } }); jMenuFile.add(jMenuItemMPR); jMenuItem2.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItem2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/merge.png"))); // NOI18N jMenuItem2.setMnemonic('r'); jMenuItem2.setText("Collaborative merge"); jMenuItem2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem2ActionPerformed(evt); } }); jMenuFile.add(jMenuItem2); jMenuItemExit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemExit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/exit.png"))); // NOI18N jMenuItemExit.setMnemonic('x'); jMenuItemExit.setText("Exit"); jMenuItemExit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemExitActionPerformed(evt); } }); jMenuFile.add(jMenuItemExit); jMenuBar.add(jMenuFile); jMenuMemory.setText("Memory"); jMenuItemClearDMem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemClearDMem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/eraser.png"))); // NOI18N jMenuItemClearDMem.setMnemonic('a'); jMenuItemClearDMem.setText("Clear disassembly automatic comment"); jMenuItemClearDMem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemClearDMemActionPerformed(evt); } }); jMenuMemory.add(jMenuItemClearDMem); jMenuItemClearUMem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemClearUMem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/eraser1.png"))); // NOI18N jMenuItemClearUMem.setMnemonic('m'); jMenuItemClearUMem.setText("Clear user comment"); jMenuItemClearUMem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemClearUMemActionPerformed(evt); } }); jMenuMemory.add(jMenuItemClearUMem); jMenuItemClearDLabel.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemClearDLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/eraser2.png"))); // NOI18N jMenuItemClearDLabel.setMnemonic('r'); jMenuItemClearDLabel.setText("Clear disassembly automatic label"); jMenuItemClearDLabel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemClearDLabelActionPerformed(evt); } }); jMenuMemory.add(jMenuItemClearDLabel); jMenuMemory.add(jSeparator4); jMenuItemAddComment.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_SEMICOLON, 0)); jMenuItemAddComment.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/comm.png"))); // NOI18N jMenuItemAddComment.setMnemonic('u'); jMenuItemAddComment.setText("Add user comment"); jMenuItemAddComment.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemAddCommentActionPerformed(evt); } }); jMenuMemory.add(jMenuItemAddComment); jMenuItemAddBlock.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_SEMICOLON, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemAddBlock.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/block.png"))); // NOI18N jMenuItemAddBlock.setMnemonic('b'); jMenuItemAddBlock.setText("Add user block comment"); jMenuItemAddBlock.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemAddBlockActionPerformed(evt); } }); jMenuMemory.add(jMenuItemAddBlock); jMenuItemUserLabel.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemUserLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/mem2.png"))); // NOI18N jMenuItemUserLabel.setMnemonic('l'); jMenuItemUserLabel.setText("Add user label"); jMenuItemUserLabel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemUserLabelActionPerformed(evt); } }); jMenuMemory.add(jMenuItemUserLabel); jMenuItemUserLabelOp.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemUserLabelOp.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/mem3.png"))); // NOI18N jMenuItemUserLabelOp.setMnemonic('n'); jMenuItemUserLabelOp.setText("Add user label on next address"); jMenuItemUserLabelOp.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemUserLabelOpActionPerformed(evt); } }); jMenuMemory.add(jMenuItemUserLabelOp); jMenuMemory.add(jSeparator3); jMenuItemMarkCode.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemMarkCode.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/code.png"))); // NOI18N jMenuItemMarkCode.setMnemonic('c'); jMenuItemMarkCode.setText("Mark as code"); jMenuItemMarkCode.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemMarkCodeActionPerformed(evt); } }); jMenuMemory.add(jMenuItemMarkCode); jMenuItemMarkData.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemMarkData.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/data.png"))); // NOI18N jMenuItemMarkData.setMnemonic('d'); jMenuItemMarkData.setText("Mark as data"); jMenuItemMarkData.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemMarkDataActionPerformed(evt); } }); jMenuMemory.add(jMenuItemMarkData); jSubMenu.setText("(more specific data selection)"); jMenuBasic1.setText("Data as Basic"); jMenuItemBasicNone1.setText("no BASIC"); jMenuItemBasicNone1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemBasicNone1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemBasicNone1); jMenuBasic1.add(jSeparatorStandard1); jMenuItemBasicV2_1.setText(BasicType.BASIC_V2_0.getName()); jMenuItemBasicV2_1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemBasicV2_1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemBasicV2_1); jMenuItemBasicV3_5_1.setText(BasicType.BASIC_V3_5.getName()); jMenuItemBasicV3_5_1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemBasicV3_5_1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemBasicV3_5_1); jMenuItemBasicV4_0_1.setText(BasicType.BASIC_V4_0.getName()); jMenuItemBasicV4_0_1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemBasicV4_0_1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemBasicV4_0_1); jMenuItemBasicV7_0_1.setText(BasicType.BASIC_V7_0.getName()); jMenuItemBasicV7_0_1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemBasicV7_0_1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemBasicV7_0_1); jMenuBasic1.add(jSeparatorV3); jMenuItemSimon1.setText(BasicType.BASIC_SIMON.getName()); jMenuItemSimon1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSimon1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemSimon1); jMenuItemAndreFachat1.setText(BasicType.BASIC_ANDRE_FACHAT.getName()); jMenuItemAndreFachat1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemAndreFachat1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemAndreFachat1); jMenuItemSpeech1.setText(BasicType.BASIC_SPEECH.getName()); jMenuItemSpeech1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSpeech1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemSpeech1); jMenuItemFinalCart4.setText(BasicType.BASIC_FINAL_CART3.getName()); jMenuItemFinalCart4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemFinalCart4ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemFinalCart4); jMenuItemUltrabasic1.setText(BasicType.BASIC_ULTRABASIC.getName()); jMenuItemUltrabasic1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemUltrabasic1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemUltrabasic1); jMenuItemGraphics1.setText(BasicType.BASIC_GRAPHICS.getName()); jMenuItemGraphics1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemGraphics1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemGraphics1); jMenuItemWS1.setText(BasicType.BASIC_WS.getName()); jMenuItemWS1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemWS1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemWS1); jMenuItemPegasus1.setText(BasicType.BASIC_PEGASUS.getName()); jMenuItemPegasus1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemPegasus1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemPegasus1); jMenuItemXbasic1.setText(BasicType.BASIC_XBASIC.getName()); jMenuItemXbasic1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemXbasic1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemXbasic1); jMenuItemDrago1.setText(BasicType.BASIC_DRAGO.getName()); jMenuItemDrago1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemDrago1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemDrago1); jMenuItemReu1.setText(BasicType.BASIC_REU.getName()); jMenuItemReu1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemReu1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemReu1); jMenuItemLightninig1.setText(BasicType.BASIC_LIGHTNING.getName()); jMenuItemLightninig1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemLightninig1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemLightninig1); jMenuItemMagic1.setText(BasicType.BASIC_MAGIC.getName()); jMenuItemMagic1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemMagic1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemMagic1); jMenuItemBlark1.setText(BasicType.BASIC_BLARG.getName()); jMenuItemBlark1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemBlark1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemBlark1); jMenuItemWSFinal1.setText(BasicType.BASIC_WS_FINAL.getName()); jMenuItemWSFinal1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemWSFinal1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemWSFinal1); jMenuItemGame1.setText(BasicType.BASIC_GAME.getName()); jMenuItemGame1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemGame1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemGame1); jMenuItemBasex1.setText(BasicType.BASIC_BASEX.getName()); jMenuItemBasex1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemBasex1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemBasex1); jMenuItemSuper1.setText(BasicType.BASIC_SUPER.getName()); jMenuItemSuper1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSuper1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemSuper1); jMenuItemExpanded1.setText(BasicType.BASIC_EXPANDED.getName()); jMenuItemExpanded1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemExpanded1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemExpanded1); jMenuItemSuperExpanderChip1.setText(BasicType.BASIC_SUPER_EXPANDER_CHIP.getName()); jMenuItemSuperExpanderChip1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSuperExpanderChip1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemSuperExpanderChip1); jMenuItemWarsaw1.setText(BasicType.BASIC_WARSAW.getName()); jMenuItemWarsaw1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemWarsaw1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemWarsaw1); jMenuItemDbs1.setText(BasicType.BASIC_DBS.getName()); jMenuItemDbs1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemDbs1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemDbs1); jMenuItemKipper1.setText(BasicType.BASIC_KIPPER.getName()); jMenuItemKipper1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemKipper1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemKipper1); jMenuItemBails1.setText(BasicType.BASIC_BAILS.getName()); jMenuItemBails1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemBails1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemBails1); jMenuItemEve1.setText(BasicType.BASIC_EVE.getName()); jMenuItemEve1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemEve1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemEve1); jMenuItemTool1.setText(BasicType.BASIC_TOOL.getName()); jMenuItemTool1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemTool1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemTool1); jMenuBasic1.add(jSeparatorV129); jMenuItemV9.setText(BasicType.BASIC_V8.getName()); jMenuItemV9.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemV9ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemV9); jMenuBasic1.add(jSeparatorV21); jMenuItemSuperExpander1.setText(BasicType.BASIC_SUPER_EXPANDER.getName()); jMenuItemSuperExpander1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSuperExpander1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemSuperExpander1); jMenuItemTurtle1.setText(BasicType.BASIC_TURTLE.getName()); jMenuItemTurtle1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemTurtle1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemTurtle1); jMenuItemEasy1.setText(BasicType.BASIC_EASY.getName()); jMenuItemEasy1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemEasy1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemEasy1); jMenuItemV6.setText(BasicType.BASIC_V4.getName()); jMenuItemV6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemV6ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemV6); jMenuItemV7.setText(BasicType.BASIC_V5.getName()); jMenuItemV7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemV7ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemV7); jMenuItemExpandedV21.setText(BasicType.BASIC_EXPANDED_V20.getName()); jMenuItemExpandedV21.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemExpandedV21ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemExpandedV21); jMenuItemHandy1.setText(BasicType.BASIC_HANDY.getName()); jMenuItemHandy1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemHandy1ActionPerformed(evt); } }); jMenuBasic1.add(jMenuItemHandy1); jSubMenu.add(jMenuBasic1); jSubMenu.add(jSeparator7); jMenuItemByteHex1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_B, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemByteHex1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/B.png"))); // NOI18N jMenuItemByteHex1.setMnemonic('b'); jMenuItemByteHex1.setText("(B) Mark data as Byte (HEX)"); jMenuItemByteHex1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemByteHex1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemByteHex1); jMenuItemByteDec1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemByteDec1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/D.png"))); // NOI18N jMenuItemByteDec1.setMnemonic('d'); jMenuItemByteDec1.setText("(D) Mark data as Byte (DEC)"); jMenuItemByteDec1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemByteDec1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemByteDec1); jMenuItemByteBin1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Y, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemByteBin1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/Y.png"))); // NOI18N jMenuItemByteBin1.setMnemonic('y'); jMenuItemByteBin1.setText("(Y) Mark data as Byte (BIN)"); jMenuItemByteBin1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemByteBin1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemByteBin1); jMenuItemByteChar1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemByteChar1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/R.png"))); // NOI18N jMenuItemByteChar1.setMnemonic('r'); jMenuItemByteChar1.setText("(R) Mark data as Byte (CHAR)"); jMenuItemByteChar1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemByteChar1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemByteChar1); jSubMenu.add(jSeparatorByte1); jMenuItemWord1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_W, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemWord1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/W.png"))); // NOI18N jMenuItemWord1.setMnemonic('w'); jMenuItemWord1.setText("(W) Mark data as Word"); jMenuItemWord1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemWord1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemWord1); jMenuItemWordSwapped1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemWordSwapped1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/P.png"))); // NOI18N jMenuItemWordSwapped1.setMnemonic('p'); jMenuItemWordSwapped1.setText("(P) Mark data as Word Swapped"); jMenuItemWordSwapped1.setToolTipText(""); jMenuItemWordSwapped1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemWordSwapped1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemWordSwapped1); jSubMenu.add(jSeparatorWord1); jMenuItemTribyte1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemTribyte1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/E.png"))); // NOI18N jMenuItemTribyte1.setText("(E) Mark data as Tribyte"); jMenuItemTribyte1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemTribyte1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemTribyte1); jMenuItemLong1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemLong1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/L.png"))); // NOI18N jMenuItemLong1.setMnemonic('l'); jMenuItemLong1.setText("(L) Mark data as Long"); jMenuItemLong1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemLong1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemLong1); jSubMenu.add(jSeparator5); jMenuItemAddress1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemAddress1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/A.png"))); // NOI18N jMenuItemAddress1.setMnemonic('a'); jMenuItemAddress1.setText("(A) Mark data as Address"); jMenuItemAddress1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemAddress1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemAddress1); jMenuItemStackWord1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemStackWord1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/S.png"))); // NOI18N jMenuItemStackWord1.setMnemonic('s'); jMenuItemStackWord1.setText("(S) Mark data as Stack Word"); jMenuItemStackWord1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemStackWord1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemStackWord1); jSubMenu.add(jSeparator6); jMenuItemSpriteMono1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemSpriteMono1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/O.png"))); // NOI18N jMenuItemSpriteMono1.setMnemonic('o'); jMenuItemSpriteMono1.setText("(O) Mark data as Monocromatic Sprite definitions"); jMenuItemSpriteMono1.setToolTipText(""); jMenuItemSpriteMono1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSpriteMono1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemSpriteMono1); jMenuItemSpriteMulti1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemSpriteMulti1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/F.png"))); // NOI18N jMenuItemSpriteMulti1.setMnemonic('f'); jMenuItemSpriteMulti1.setText("(F) Mark data as Multicolor Sprite definitions"); jMenuItemSpriteMulti1.setToolTipText(""); jMenuItemSpriteMulti1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSpriteMulti1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemSpriteMulti1); jSubMenu.add(jSeparatorSprite1); jMenuItemText1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemText1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/T.png"))); // NOI18N jMenuItemText1.setMnemonic('t'); jMenuItemText1.setText("(T) Mark data as Text"); jMenuItemText1.setToolTipText(""); jMenuItemText1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemText1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemText1); jMenuItemNumText1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemNumText1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/N.png"))); // NOI18N jMenuItemNumText1.setMnemonic('n'); jMenuItemNumText1.setText("(N) Mark data as Text with # chars before"); jMenuItemNumText1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemNumText1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemNumText1); jMenuItemTextZero1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemTextZero1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/Z.png"))); // NOI18N jMenuItemTextZero1.setMnemonic('z'); jMenuItemTextZero1.setText("(Z) Mark data as text terminated with 0"); jMenuItemTextZero1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemTextZero1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemTextZero1); jMenuItemtextHighOne1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemtextHighOne1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/M.png"))); // NOI18N jMenuItemtextHighOne1.setMnemonic('m'); jMenuItemtextHighOne1.setText("(M) Mark data as Text with high bit 1"); jMenuItemtextHighOne1.setToolTipText(""); jMenuItemtextHighOne1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemtextHighOne1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemtextHighOne1); jMenuItemtextShifted1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_H, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemtextShifted1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/H.png"))); // NOI18N jMenuItemtextShifted1.setMnemonic('h'); jMenuItemtextShifted1.setText("(H) Mark data as Text left shifted"); jMenuItemtextShifted1.setToolTipText(""); jMenuItemtextShifted1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemtextShifted1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemtextShifted1); jMenuItemTextScreen1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemTextScreen1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/C.png"))); // NOI18N jMenuItemTextScreen1.setMnemonic('c'); jMenuItemTextScreen1.setText("(C) Mark data as Text converted to screen code"); jMenuItemTextScreen1.setToolTipText(""); jMenuItemTextScreen1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemTextScreen1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemTextScreen1); jMenuItemTextPetascii1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_I, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemTextPetascii1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/I.png"))); // NOI18N jMenuItemTextPetascii1.setMnemonic('i'); jMenuItemTextPetascii1.setText("(I) Mark data as Text converted to petAscii code"); jMenuItemTextPetascii1.setToolTipText(""); jMenuItemTextPetascii1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemTextPetascii1ActionPerformed(evt); } }); jSubMenu.add(jMenuItemTextPetascii1); jMenuMemory.add(jSubMenu); jMenuItemMarkGarbage.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemMarkGarbage.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/garb.png"))); // NOI18N jMenuItemMarkGarbage.setMnemonic('g'); jMenuItemMarkGarbage.setText("Mark as garbage"); jMenuItemMarkGarbage.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemMarkGarbageActionPerformed(evt); } }); jMenuMemory.add(jMenuItemMarkGarbage); jSubMenuC.setText("Sub-mark a cell"); jMenuItemConstant0b.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_0, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemConstant0b.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/0.png"))); // NOI18N jMenuItemConstant0b.setText("as of constant 0"); jMenuItemConstant0b.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant0bActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant0b); jMenuItemConstant9b.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_9, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemConstant9b.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/9.png"))); // NOI18N jMenuItemConstant9b.setText("as of constant 9"); jMenuItemConstant9b.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant9bActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant9b); jMenuItemConstant1b.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_1, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemConstant1b.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/1.png"))); // NOI18N jMenuItemConstant1b.setText("as of constant 1"); jMenuItemConstant1b.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant1bActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant1b); jMenuItemConstant2b.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_2, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemConstant2b.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/2.png"))); // NOI18N jMenuItemConstant2b.setText("as of constant 2"); jMenuItemConstant2b.setToolTipText(""); jMenuItemConstant2b.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant2bActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant2b); jMenuItemConstant3b.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_3, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemConstant3b.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/3.png"))); // NOI18N jMenuItemConstant3b.setText("as of constant 3"); jMenuItemConstant3b.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant3bActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant3b); jMenuItemConstant4b.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_4, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemConstant4b.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/4.png"))); // NOI18N jMenuItemConstant4b.setText("as of constant 4"); jMenuItemConstant4b.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant4bActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant4b); jMenuItemConstant5b.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_5, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemConstant5b.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/5.png"))); // NOI18N jMenuItemConstant5b.setText("as of constant 5"); jMenuItemConstant5b.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant5bActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant5b); jMenuItemConstant6b.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_6, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemConstant6b.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/6.png"))); // NOI18N jMenuItemConstant6b.setText("as of constant 6"); jMenuItemConstant6b.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant6bActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant6b); jMenuItemConstant7b.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_7, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemConstant7b.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/7.png"))); // NOI18N jMenuItemConstant7b.setText("as of constant 7"); jMenuItemConstant7b.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant7bActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant7b); jMenuItemConstant8b.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_8, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemConstant8b.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/8.png"))); // NOI18N jMenuItemConstant8b.setText("as of constant 8"); jMenuItemConstant8b.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant8bActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant8b); jSubMenuC.add(jSeparatorConstant3); jMenuItemConstantClear.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_BACK_SPACE, java.awt.event.InputEvent.ALT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemConstantClear.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/0-9.png"))); // NOI18N jMenuItemConstantClear.setText("reset to none"); jMenuItemConstantClear.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstantClearActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstantClear); jSubMenuC.add(jSeparatorConstant4); jMenuItemConstant0b1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/0.png"))); // NOI18N jMenuItemConstant0b1.setText("as of constant !"); jMenuItemConstant0b1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant0b1ActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant0b1); jMenuItemConstant1b1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/1.png"))); // NOI18N jMenuItemConstant1b1.setText("as of constant \""); jMenuItemConstant1b1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant1b1ActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant1b1); jMenuItemConstant2b1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/2.png"))); // NOI18N jMenuItemConstant2b1.setText("as of constant £"); jMenuItemConstant2b1.setToolTipText(""); jMenuItemConstant2b1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant2b1ActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant2b1); jMenuItemConstant3b1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/3.png"))); // NOI18N jMenuItemConstant3b1.setText("as of constant $"); jMenuItemConstant3b1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant3b1ActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant3b1); jMenuItemConstant4b1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/4.png"))); // NOI18N jMenuItemConstant4b1.setText("as of constant %"); jMenuItemConstant4b1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant4b1ActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant4b1); jMenuItemConstant5b1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/5.png"))); // NOI18N jMenuItemConstant5b1.setText("as of constant &"); jMenuItemConstant5b1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant5b1ActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant5b1); jMenuItemConstant6b1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/6.png"))); // NOI18N jMenuItemConstant6b1.setText("as of constant /"); jMenuItemConstant6b1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant6b1ActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant6b1); jMenuItemConstant7b1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/7.png"))); // NOI18N jMenuItemConstant7b1.setText("as of constant ("); jMenuItemConstant7b1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant7b1ActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant7b1); jMenuItemConstant8b1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/8.png"))); // NOI18N jMenuItemConstant8b1.setText("as of constant )"); jMenuItemConstant8b1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant8b1ActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant8b1); jMenuItemConstant9b1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/9.png"))); // NOI18N jMenuItemConstant9b1.setText("as of constant ="); jMenuItemConstant9b1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConstant9b1ActionPerformed(evt); } }); jSubMenuC.add(jMenuItemConstant9b1); jMenuMemory.add(jSubMenuC); jMenuItemPlus.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ADD, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemPlus.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/plus.png"))); // NOI18N jMenuItemPlus.setText("Assign the selected address as +"); jMenuItemPlus.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemPlusActionPerformed(evt); } }); jMenuMemory.add(jMenuItemPlus); jMenuItemMinus.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_SUBTRACT, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemMinus.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/minus.png"))); // NOI18N jMenuItemMinus.setText("Assign the selected address as -"); jMenuItemMinus.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemMinusActionPerformed(evt); } }); jMenuMemory.add(jMenuItemMinus); jMenuItemMemLow.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_1, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemMemLow.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/min.png"))); // NOI18N jMenuItemMemLow.setText("Assign the selected address as #<"); jMenuItemMemLow.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemMemLowActionPerformed(evt); } }); jMenuMemory.add(jMenuItemMemLow); jMenuItemMemLowHigh.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_2, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemMemLowHigh.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/minmax.png"))); // NOI18N jMenuItemMemLowHigh.setText("Assign the 2 selected addresses as #<>"); jMenuItemMemLowHigh.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemMemLowHighActionPerformed(evt); } }); jMenuMemory.add(jMenuItemMemLowHigh); jMenuItemMemBoth.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_3, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemMemBoth.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/minmax.png"))); // NOI18N jMenuItemMemBoth.setText("Assign the 2 tables as #<>"); jMenuItemMemBoth.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemMemBothActionPerformed(evt); } }); jMenuMemory.add(jMenuItemMemBoth); jMenuItemMemHighLow.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_4, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemMemHighLow.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/maxmin.png"))); // NOI18N jMenuItemMemHighLow.setText("Assign the 2 selected addresses as #><"); jMenuItemMemHighLow.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemMemHighLowActionPerformed(evt); } }); jMenuMemory.add(jMenuItemMemHighLow); jMenuItemMemHigh.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_RIGHT, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemMemHigh.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/max.png"))); // NOI18N jMenuItemMemHigh.setText("Assign the selected address as #>"); jMenuItemMemHigh.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemMemHighActionPerformed(evt); } }); jMenuMemory.add(jMenuItemMemHigh); jMenuItemWizard.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_W, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemWizard.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/wizard.png"))); // NOI18N jMenuItemWizard.setText("Assign using wizard"); jMenuItemWizard.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemWizardActionPerformed(evt); } }); jMenuMemory.add(jMenuItemWizard); jMenuBar.add(jMenuMemory); jMenuOption.setText("Option"); jMenuOption.setToolTipText(""); jMenuItemConfigure.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemConfigure.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/configure.png"))); // NOI18N jMenuItemConfigure.setMnemonic('o'); jMenuItemConfigure.setText("General Option"); jMenuItemConfigure.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConfigureActionPerformed(evt); } }); jMenuOption.add(jMenuItemConfigure); jMenuItemSIDLD.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemSIDLD.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/mem.png"))); // NOI18N jMenuItemSIDLD.setMnemonic('e'); jMenuItemSIDLD.setText("Apply SIDLD flags to memory"); jMenuItemSIDLD.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSIDLDActionPerformed(evt); } }); jMenuOption.add(jMenuItemSIDLD); jMenuOption.add(jSeparatorOption); jMenuItemViewProject.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_J, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemViewProject.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/view_detailed.png"))); // NOI18N jMenuItemViewProject.setMnemonic('j'); jMenuItemViewProject.setText("View Project"); jMenuItemViewProject.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemViewProjectActionPerformed(evt); } }); jMenuOption.add(jMenuItemViewProject); jMenuItemViewLabels.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_B, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemViewLabels.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/view_label.png"))); // NOI18N jMenuItemViewLabels.setMnemonic('b'); jMenuItemViewLabels.setText("View labels"); jMenuItemViewLabels.setToolTipText(""); jMenuItemViewLabels.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemViewLabelsActionPerformed(evt); } }); jMenuOption.add(jMenuItemViewLabels); jMenuBar.add(jMenuOption); jMenuSource.setText("Source"); jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItem1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/finda.png"))); // NOI18N jMenuItem1.setText("Find memory address"); jMenuItem1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem1ActionPerformed(evt); } }); jMenuSource.add(jMenuItem1); jMenuItemDiss.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemDiss.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/exec.png"))); // NOI18N jMenuItemDiss.setMnemonic('e'); jMenuItemDiss.setText("Disassemble"); jMenuItemDiss.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemDissActionPerformed(evt); } }); jMenuSource.add(jMenuItemDiss); jMenuItemAssembly.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemAssembly.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/assembler.png"))); // NOI18N jMenuItemAssembly.setMnemonic('t'); jMenuItemAssembly.setText("Assemble"); jMenuItemAssembly.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemAssemblyActionPerformed(evt); } }); jMenuSource.add(jMenuItemAssembly); jMenuSource.add(jSeparator1); jMenuItemFindDis.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemFindDis.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/findd.png"))); // NOI18N jMenuItemFindDis.setText("Find text in preview"); jMenuItemFindDis.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemFindDisActionPerformed(evt); } }); jMenuSource.add(jMenuItemFindDis); jMenuItemDissSaveAs.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemDissSaveAs.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/exportas1.png"))); // NOI18N jMenuItemDissSaveAs.setMnemonic('p'); jMenuItemDissSaveAs.setText("Export As of preview"); jMenuItemDissSaveAs.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemDissSaveAsActionPerformed(evt); } }); jMenuSource.add(jMenuItemDissSaveAs); jMenuSource.add(jSeparator2); jMenuItemFindSource.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemFindSource.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/finds.png"))); // NOI18N jMenuItemFindSource.setText("Find text in source"); jMenuItemFindSource.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemFindSourceActionPerformed(evt); } }); jMenuSource.add(jMenuItemFindSource); jMenuItemSourceSaveAs.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemSourceSaveAs.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/exportas2.png"))); // NOI18N jMenuItemSourceSaveAs.setMnemonic('s'); jMenuItemSourceSaveAs.setText("Export As of source"); jMenuItemSourceSaveAs.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSourceSaveAsActionPerformed(evt); } }); jMenuSource.add(jMenuItemSourceSaveAs); jMenuSub.setText("(more specific export)"); jMenuItemSaveAsDasm1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_0, java.awt.event.InputEvent.ALT_DOWN_MASK)); jMenuItemSaveAsDasm1.setText("Save in Dasm format"); jMenuItemSaveAsDasm1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSaveAsDasm1ActionPerformed(evt); } }); jMenuSub.add(jMenuItemSaveAsDasm1); jMenuItemSaveAsTmpx1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_1, java.awt.event.InputEvent.ALT_DOWN_MASK)); jMenuItemSaveAsTmpx1.setText("Save in TMPx format"); jMenuItemSaveAsTmpx1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSaveAsTmpx1ActionPerformed(evt); } }); jMenuSub.add(jMenuItemSaveAsTmpx1); jMenuItemSaveAsCa66.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_2, java.awt.event.InputEvent.ALT_DOWN_MASK)); jMenuItemSaveAsCa66.setText("Save in CA65 format"); jMenuItemSaveAsCa66.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSaveAsCa66ActionPerformed(evt); } }); jMenuSub.add(jMenuItemSaveAsCa66); jMenuItemSaveAsAcme1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_3, java.awt.event.InputEvent.ALT_DOWN_MASK)); jMenuItemSaveAsAcme1.setText("Save in Acme format"); jMenuItemSaveAsAcme1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSaveAsAcme1ActionPerformed(evt); } }); jMenuSub.add(jMenuItemSaveAsAcme1); jMenuItemSaveAsKickAssembler1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_4, java.awt.event.InputEvent.ALT_DOWN_MASK)); jMenuItemSaveAsKickAssembler1.setText("Save in KickAssembler format"); jMenuItemSaveAsKickAssembler1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSaveAsKickAssembler1ActionPerformed(evt); } }); jMenuSub.add(jMenuItemSaveAsKickAssembler1); jMenuItemSaveAsTass65.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_5, java.awt.event.InputEvent.ALT_DOWN_MASK)); jMenuItemSaveAsTass65.setText("Save in Tass64 format"); jMenuItemSaveAsTass65.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSaveAsTass65ActionPerformed(evt); } }); jMenuSub.add(jMenuItemSaveAsTass65); jMenuSource.add(jMenuSub); jMenuItem3.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItem3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/freeze.png"))); // NOI18N jMenuItem3.setText("Freeze source"); jMenuItem3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem3ActionPerformed(evt); } }); jMenuSource.add(jMenuItem3); jMenuBar.add(jMenuSource); jMenuHelpContents.setText("Help"); jMenuItemContents.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, 0)); jMenuItemContents.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sw_emulator/swing/icons/mini/help_index.png"))); // NOI18N jMenuItemContents.setMnemonic('h'); jMenuItemContents.setText("Help contents"); jMenuItemContents.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemContentsActionPerformed(evt); } }); jMenuHelpContents.add(jMenuItemContents); jMenuHelpContents.add(jSeparatorHelp1); jMenuItemLicense.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemLicense.setMnemonic('l'); jMenuItemLicense.setText("License"); jMenuItemLicense.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemLicenseActionPerformed(evt); } }); jMenuHelpContents.add(jMenuItemLicense); jMenuItemCredits.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemCredits.setMnemonic('d'); jMenuItemCredits.setText("Credits"); jMenuItemCredits.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemCreditsActionPerformed(evt); } }); jMenuHelpContents.add(jMenuItemCredits); jMenuItemAbout.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemAbout.setMnemonic('a'); jMenuItemAbout.setText("About"); jMenuItemAbout.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemAboutActionPerformed(evt); } }); jMenuHelpContents.add(jMenuItemAbout); jMenuHelpContents.add(jSeparatorHelp2); jMenuItemImportLabels.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_I, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemImportLabels.setMnemonic('i'); jMenuItemImportLabels.setText("Import labels"); jMenuItemImportLabels.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemImportLabelsActionPerformed(evt); } }); jMenuHelpContents.add(jMenuItemImportLabels); jMenuItemRefactorLabels.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemRefactorLabels.setMnemonic('t'); jMenuItemRefactorLabels.setText("Refactor labels"); jMenuItemRefactorLabels.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemRefactorLabelsActionPerformed(evt); } }); jMenuHelpContents.add(jMenuItemRefactorLabels); jMenuItemAutComment.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemAutComment.setText("Clear automatic comment"); jMenuItemAutComment.setActionCommand("Clear automatic comment"); jMenuItemAutComment.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemAutCommentActionPerformed(evt); } }); jMenuHelpContents.add(jMenuItemAutComment); jMenuItemAutLabel.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.SHIFT_DOWN_MASK | java.awt.event.InputEvent.CTRL_DOWN_MASK)); jMenuItemAutLabel.setText("Clear automatic label"); jMenuItemAutLabel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemAutLabelActionPerformed(evt); } }); jMenuHelpContents.add(jMenuItemAutLabel); jMenuItemSidldPlayer.setText("SIDld player"); jMenuItemSidldPlayer.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSidldPlayerActionPerformed(evt); } }); jMenuHelpContents.add(jMenuItemSidldPlayer); jMenuHelpContents.add(jSeparatorHelp3); jMenuUndo.setText("Undo"); jMenuUndo.addMenuListener(new javax.swing.event.MenuListener() { public void menuCanceled(javax.swing.event.MenuEvent evt) { } public void menuDeselected(javax.swing.event.MenuEvent evt) { } public void menuSelected(javax.swing.event.MenuEvent evt) { jMenuUndoMenuSelected(evt); } }); jMenuItemUndo1.setEnabled(false); jMenuItemUndo1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemUndo1ActionPerformed(evt); } }); jMenuUndo.add(jMenuItemUndo1); jMenuItemUndo2.setToolTipText(""); jMenuItemUndo2.setEnabled(false); jMenuItemUndo2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemUndo2ActionPerformed(evt); } }); jMenuUndo.add(jMenuItemUndo2); jMenuItemUndo3.setEnabled(false); jMenuItemUndo3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemUndo3ActionPerformed(evt); } }); jMenuUndo.add(jMenuItemUndo3); jMenuItemUndo4.setEnabled(false); jMenuItemUndo4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemUndo4ActionPerformed(evt); } }); jMenuUndo.add(jMenuItemUndo4); jMenuItemUndo5.setToolTipText(""); jMenuItemUndo5.setEnabled(false); jMenuItemUndo5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemUndo5ActionPerformed(evt); } }); jMenuUndo.add(jMenuItemUndo5); jMenuItemUndo6.setToolTipText(""); jMenuItemUndo6.setEnabled(false); jMenuItemUndo6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemUndo6ActionPerformed(evt); } }); jMenuUndo.add(jMenuItemUndo6); jMenuItemUndo7.setEnabled(false); jMenuItemUndo7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemUndo7ActionPerformed(evt); } }); jMenuUndo.add(jMenuItemUndo7); jMenuItemUndo8.setEnabled(false); jMenuItemUndo8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemUndo8ActionPerformed(evt); } }); jMenuUndo.add(jMenuItemUndo8); jMenuItemUndo9.setToolTipText(""); jMenuItemUndo9.setEnabled(false); jMenuItemUndo9.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemUndo9ActionPerformed(evt); } }); jMenuUndo.add(jMenuItemUndo9); jMenuHelpContents.add(jMenuUndo); jMenuBar.add(jMenuHelpContents); setJMenuBar(jMenuBar); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSplitPaneExternal) .addComponent(jPanelToolBar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jPanelToolBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSplitPaneExternal, javax.swing.GroupLayout.DEFAULT_SIZE, 613, Short.MAX_VALUE)) ); pack(); }// </editor-fold>//GEN-END:initComponents private void jMenuItemExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemExitActionPerformed execute(APP_EXIT); }//GEN-LAST:event_jMenuItemExitActionPerformed private void jMenuItemNewProjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemNewProjectActionPerformed execute(PROJ_NEW); }//GEN-LAST:event_jMenuItemNewProjectActionPerformed private void jMenuItemOpenProjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemOpenProjectActionPerformed execute(PROJ_OPEN); }//GEN-LAST:event_jMenuItemOpenProjectActionPerformed private void jMenuItemCloseProjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemCloseProjectActionPerformed execute(PROJ_CLOSE); }//GEN-LAST:event_jMenuItemCloseProjectActionPerformed private void jMenuItemSaveProjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSaveProjectActionPerformed execute(PROJ_SAVE); }//GEN-LAST:event_jMenuItemSaveProjectActionPerformed private void jMenuItemSaveAsProjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSaveAsProjectActionPerformed execute(PROJ_SAVEAS); }//GEN-LAST:event_jMenuItemSaveAsProjectActionPerformed private void jButtonNewProjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNewProjectActionPerformed execute(PROJ_NEW); }//GEN-LAST:event_jButtonNewProjectActionPerformed private void jButtonOpenProjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonOpenProjectActionPerformed execute(PROJ_OPEN); }//GEN-LAST:event_jButtonOpenProjectActionPerformed private void jButtonSaveProjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSaveProjectActionPerformed execute(PROJ_SAVE); }//GEN-LAST:event_jButtonSaveProjectActionPerformed private void jButtonSaveProjectAsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSaveProjectAsActionPerformed execute(PROJ_SAVEAS); }//GEN-LAST:event_jButtonSaveProjectAsActionPerformed private void jButtonConfigureActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonConfigureActionPerformed execute(OPTION_CONFIGURE); }//GEN-LAST:event_jButtonConfigureActionPerformed private void jMenuItemConfigureActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConfigureActionPerformed execute(OPTION_CONFIGURE); }//GEN-LAST:event_jMenuItemConfigureActionPerformed private void jButtonDisassembleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDisassembleActionPerformed execute(SOURCE_DISASS); }//GEN-LAST:event_jButtonDisassembleActionPerformed private void jMenuItemDissActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemDissActionPerformed execute(SOURCE_DISASS); }//GEN-LAST:event_jMenuItemDissActionPerformed private void jMenuItemViewProjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemViewProjectActionPerformed execute(OPTION_VIEWPRJ); }//GEN-LAST:event_jMenuItemViewProjectActionPerformed private void jMenuItemDissSaveAsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemDissSaveAsActionPerformed execute(SOURCE_EXPASDIS); }//GEN-LAST:event_jMenuItemDissSaveAsActionPerformed private void jButtonExportAsDissActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonExportAsDissActionPerformed execute(SOURCE_EXPASDIS); }//GEN-LAST:event_jButtonExportAsDissActionPerformed private void jButtonExportAsSourceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonExportAsSourceActionPerformed execute(SOURCE_EXPASSOURCE); }//GEN-LAST:event_jButtonExportAsSourceActionPerformed private void jMenuItemSourceSaveAsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSourceSaveAsActionPerformed execute(SOURCE_EXPASSOURCE); }//GEN-LAST:event_jMenuItemSourceSaveAsActionPerformed private void jButtonViewProjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonViewProjectActionPerformed execute(OPTION_VIEWPRJ); }//GEN-LAST:event_jButtonViewProjectActionPerformed private void jButtonExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonExitActionPerformed execute(APP_EXIT); }//GEN-LAST:event_jButtonExitActionPerformed private void jMenuItemClearDMemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemClearDMemActionPerformed execute(MEM_CLEARDCOM); }//GEN-LAST:event_jMenuItemClearDMemActionPerformed private void jButtonClearDMemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonClearDMemActionPerformed execute(MEM_CLEARDCOM); }//GEN-LAST:event_jButtonClearDMemActionPerformed private void jButtonClearUMemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonClearUMemActionPerformed execute(MEM_CLEARUCOM); }//GEN-LAST:event_jButtonClearUMemActionPerformed private void jMenuItemClearUMemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemClearUMemActionPerformed execute(MEM_CLEARUCOM); }//GEN-LAST:event_jMenuItemClearUMemActionPerformed private void jButtonMarkCodeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonMarkCodeActionPerformed execute(MEM_MARKCODE); }//GEN-LAST:event_jButtonMarkCodeActionPerformed private void jButtonMarkDataActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonMarkDataActionPerformed execute(MEM_MARKDATA); }//GEN-LAST:event_jButtonMarkDataActionPerformed private void jMenuItemMarkCodeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemMarkCodeActionPerformed execute(MEM_MARKCODE); }//GEN-LAST:event_jMenuItemMarkCodeActionPerformed private void jMenuItemMarkDataActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemMarkDataActionPerformed execute(MEM_MARKDATA); }//GEN-LAST:event_jMenuItemMarkDataActionPerformed private void jButtonSIDLDActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSIDLDActionPerformed execute(OPTION_SIDLD); if (option.forceCompilation) disassembly(true); }//GEN-LAST:event_jButtonSIDLDActionPerformed private void jMenuItemSIDLDActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSIDLDActionPerformed execute(OPTION_SIDLD); if (option.forceCompilation) disassembly(true); }//GEN-LAST:event_jMenuItemSIDLDActionPerformed private void jButtonCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCloseActionPerformed execute(PROJ_CLOSE); }//GEN-LAST:event_jButtonCloseActionPerformed private void jMenuItemContentsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemContentsActionPerformed execute(HELP_CONTENTS); }//GEN-LAST:event_jMenuItemContentsActionPerformed private void jMenuItemLicenseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemLicenseActionPerformed execute(HELP_LICENSE); }//GEN-LAST:event_jMenuItemLicenseActionPerformed private void jMenuItemCreditsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemCreditsActionPerformed execute(HELP_CREDITS); }//GEN-LAST:event_jMenuItemCreditsActionPerformed private void jMenuItemAboutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemAboutActionPerformed execute(HELP_ABOUT); }//GEN-LAST:event_jMenuItemAboutActionPerformed private void rSyntaxTextAreaDisMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_rSyntaxTextAreaDisMouseClicked gotoMem(rSyntaxTextAreaDis, disassembly.caretsPreview, evt.getModifiersEx()); if (evt.getClickCount() == 2 && !evt.isConsumed() && ((evt.getModifiersEx() & CTRL_DOWN_MASK) == CTRL_DOWN_MASK)) { manageAction(disassembly.caretsPreview.getType(rSyntaxTextAreaDis.getCaretPosition())); } rSyntaxTextAreaDisMin.setCaretPosition(rSyntaxTextAreaDis.getCaretPosition()); rSyntaxTextAreaDisMin.requestFocusInWindow(); }//GEN-LAST:event_rSyntaxTextAreaDisMouseClicked private void jMenuItemFindDisActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemFindDisActionPerformed execute(SOURCE_FINDD); }//GEN-LAST:event_jMenuItemFindDisActionPerformed private void jMenuItemFindSourceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemFindSourceActionPerformed execute(SOURCE_FINDS); }//GEN-LAST:event_jMenuItemFindSourceActionPerformed private void jButtonFindDisActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFindDisActionPerformed execute(SOURCE_FINDD); }//GEN-LAST:event_jButtonFindDisActionPerformed private void jButtonFindSourceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFindSourceActionPerformed execute(SOURCE_FINDS); }//GEN-LAST:event_jButtonFindSourceActionPerformed private void jButtonAddUserCommActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAddUserCommActionPerformed execute(MEM_ADDCOMM); }//GEN-LAST:event_jButtonAddUserCommActionPerformed private void jMenuItemAddCommentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemAddCommentActionPerformed execute(MEM_ADDCOMM); }//GEN-LAST:event_jMenuItemAddCommentActionPerformed private void jButtonAddUserLabelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAddUserLabelActionPerformed execute(MEM_ADDLABEL); }//GEN-LAST:event_jButtonAddUserLabelActionPerformed private void jMenuItemUserLabelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemUserLabelActionPerformed execute(MEM_ADDLABEL); }//GEN-LAST:event_jMenuItemUserLabelActionPerformed private void jButtonAddUserBlockActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAddUserBlockActionPerformed execute(MEM_ADDBLOCK); }//GEN-LAST:event_jButtonAddUserBlockActionPerformed private void jMenuItemAddBlockActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemAddBlockActionPerformed execute(MEM_ADDBLOCK); }//GEN-LAST:event_jMenuItemAddBlockActionPerformed private void rSyntaxTextAreaSourceMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_rSyntaxTextAreaSourceMouseClicked gotoMemSource(evt); if (evt.getClickCount() == 2 && !evt.isConsumed() && ((evt.getModifiersEx() & CTRL_DOWN_MASK) == CTRL_DOWN_MASK)) { manageAction(disassembly.caretsSource.getType(rSyntaxTextAreaSource.getCaretPosition())); } rSyntaxTextAreaSourceMin.setCaretPosition(rSyntaxTextAreaSource.getCaretPosition()); rSyntaxTextAreaSourceMin.requestFocusInWindow(); }//GEN-LAST:event_rSyntaxTextAreaSourceMouseClicked private void jMenuItemClearDLabelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemClearDLabelActionPerformed execute(MEM_CLEARDLABEL); }//GEN-LAST:event_jMenuItemClearDLabelActionPerformed private void jButtonClearDLabelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonClearDLabelActionPerformed execute(MEM_CLEARDLABEL); }//GEN-LAST:event_jButtonClearDLabelActionPerformed private void jButtonMarkLowActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonMarkLowActionPerformed execute(MEM_LOW); }//GEN-LAST:event_jButtonMarkLowActionPerformed private void jButtonMarkMaxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonMarkMaxActionPerformed execute(MEM_HIGH); }//GEN-LAST:event_jButtonMarkMaxActionPerformed private void jMenuItemMemLowActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemMemLowActionPerformed execute(MEM_LOW); }//GEN-LAST:event_jMenuItemMemLowActionPerformed private void jMenuItemMemHighActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemMemHighActionPerformed execute(MEM_HIGH); }//GEN-LAST:event_jMenuItemMemHighActionPerformed private void jButtonFindMemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFindMemActionPerformed execute(SOURCE_FINDA); }//GEN-LAST:event_jButtonFindMemActionPerformed private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed execute(SOURCE_FINDA); }//GEN-LAST:event_jMenuItem1ActionPerformed private void jButtonMarkPlusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonMarkPlusActionPerformed execute(MEM_PLUS); }//GEN-LAST:event_jButtonMarkPlusActionPerformed private void jMenuItemPlusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemPlusActionPerformed execute(MEM_PLUS); }//GEN-LAST:event_jMenuItemPlusActionPerformed private void jButtonMarkMinusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonMarkMinusActionPerformed execute(MEM_MINUS); }//GEN-LAST:event_jButtonMarkMinusActionPerformed private void jMenuItemMinusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemMinusActionPerformed execute(MEM_MINUS); }//GEN-LAST:event_jMenuItemMinusActionPerformed private void jMenuItemMPRActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemMPRActionPerformed execute(OPTION_MPR); }//GEN-LAST:event_jMenuItemMPRActionPerformed private void jButtonMPRActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonMPRActionPerformed execute(OPTION_MPR); }//GEN-LAST:event_jButtonMPRActionPerformed private void jButtonAddUserLabelOpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAddUserLabelOpActionPerformed execute(MEM_ADDLABELOP); }//GEN-LAST:event_jButtonAddUserLabelOpActionPerformed private void jMenuItemUserLabelOpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemUserLabelOpActionPerformed execute(MEM_ADDLABELOP); }//GEN-LAST:event_jMenuItemUserLabelOpActionPerformed private void jButtonMarkGarbageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonMarkGarbageActionPerformed execute(MEM_MARKGARB); }//GEN-LAST:event_jButtonMarkGarbageActionPerformed private void jMenuItemMarkGarbageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemMarkGarbageActionPerformed execute(MEM_MARKGARB); }//GEN-LAST:event_jMenuItemMarkGarbageActionPerformed private void rSyntaxTextAreaDisMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_rSyntaxTextAreaDisMouseReleased String selected=rSyntaxTextAreaDis.getSelectedText(); int actual; int min=0xffff+1; // min find address int max=-1; // max find address // avoid no selected text if (selected==null) return; try { String lines[] = selected.split("\\r?\\n"); for (String line: lines) { actual=searchAddress(line.substring(0, Math.min(line.length(), option.maxLabelLength))); if (actual==-1) continue; if (actual<min) min=actual; if (actual>max) max=actual; } // if max is not -1 we find a range if (max==-1) return; //scroll to that point ///jTableMemory.scrollRectToVisible(jTableMemory.getCellRect(min,0, true)); Shared.scrollToCenter(jTableMemory, min, 0); // select those rows jTableMemory.setRowSelectionInterval(min, max); } catch (Exception e) { System.err.println(e);; } }//GEN-LAST:event_rSyntaxTextAreaDisMouseReleased private void rSyntaxTextAreaSourceMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_rSyntaxTextAreaSourceMouseReleased String selected=rSyntaxTextAreaSource.getSelectedText(); int actual; int min=0xffff+1; // min find address int max=-1; // max find address // avoid no selected text if (selected==null) return; try { String lines[] = selected.split("\\r?\\n"); for (String line: lines) { actual=searchAddress(line.substring(0, Math.min(line.length(), option.maxLabelLength))); if (actual==-1) continue; if (actual<min) min=actual; if (actual>max) max=actual; } // if max is not -1 we find a range if (max==-1) return; //scroll to that point ///jTableMemory.scrollRectToVisible(jTableMemory.getCellRect(min,0, true)); Shared.scrollToCenter(jTableMemory, min, 0); // select this rows jTableMemory.setRowSelectionInterval(min, max); } catch (Exception e) { System.err.println(e);; } }//GEN-LAST:event_rSyntaxTextAreaSourceMouseReleased private void jButtonMergeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonMergeActionPerformed execute(PROJ_MERGE); }//GEN-LAST:event_jButtonMergeActionPerformed private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed execute(PROJ_MERGE); }//GEN-LAST:event_jMenuItem2ActionPerformed private void jButtonMarkDataMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonMarkDataMouseEntered jPopupMenuData.show((JComponent)evt.getSource(), 0, ((JComponent)evt.getSource()).getHeight()); }//GEN-LAST:event_jButtonMarkDataMouseEntered private void jButtonMarkCodeMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonMarkCodeMouseEntered if (jPopupMenuData.isShowing()) jPopupMenuData.setVisible(false); }//GEN-LAST:event_jButtonMarkCodeMouseEntered private void jButtonMarkGarbageMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonMarkGarbageMouseEntered if (jPopupMenuData.isShowing()) jPopupMenuData.setVisible(false); if (jPopupMenuConstant.isShowing()) jPopupMenuConstant.setVisible(false); if (jPopupMenuSaveAs.isShowing()) jPopupMenuSaveAs.setVisible(false); }//GEN-LAST:event_jButtonMarkGarbageMouseEntered private void jMenuBarMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuBarMouseEntered if (jPopupMenuData.isShowing()) jPopupMenuData.setVisible(false); if (jPopupMenuConstant.isShowing()) jPopupMenuConstant.setVisible(false); if (jPopupMenuSaveAs.isShowing()) jPopupMenuSaveAs.setVisible(false); }//GEN-LAST:event_jMenuBarMouseEntered private void formMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseEntered if (jPopupMenuData.isShowing()) jPopupMenuData.setVisible(false); if (jPopupMenuConstant.isShowing()) jPopupMenuConstant.setVisible(false); if (jPopupMenuSaveAs.isShowing()) jPopupMenuSaveAs.setVisible(false); }//GEN-LAST:event_formMouseEntered private void rSyntaxTextAreaDisMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_rSyntaxTextAreaDisMouseEntered if (jPopupMenuData.isShowing()) jPopupMenuData.setVisible(false); if (jPopupMenuConstant.isShowing()) jPopupMenuConstant.setVisible(false); if (jPopupMenuSaveAs.isShowing()) jPopupMenuSaveAs.setVisible(false); }//GEN-LAST:event_rSyntaxTextAreaDisMouseEntered private void rSyntaxTextAreaSourceMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_rSyntaxTextAreaSourceMouseEntered if (jPopupMenuData.isShowing()) jPopupMenuData.setVisible(false); if (jPopupMenuConstant.isShowing()) jPopupMenuConstant.setVisible(false); if (jPopupMenuSaveAs.isShowing()) jPopupMenuSaveAs.setVisible(false); }//GEN-LAST:event_rSyntaxTextAreaSourceMouseEntered private void jMenuItemByteHexActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemByteHexActionPerformed execute(MEM_MARKDATA_B); }//GEN-LAST:event_jMenuItemByteHexActionPerformed private void jMenuItemWordActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemWordActionPerformed execute(MEM_MARKDATA_W); }//GEN-LAST:event_jMenuItemWordActionPerformed private void jMenuItemLongActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemLongActionPerformed execute(MEM_MARKDATA_L); }//GEN-LAST:event_jMenuItemLongActionPerformed private void jMenuItemAddressActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemAddressActionPerformed execute(MEM_MARKDATA_A); }//GEN-LAST:event_jMenuItemAddressActionPerformed private void jMenuItemStackWordActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemStackWordActionPerformed execute(MEM_MARKDATA_S); }//GEN-LAST:event_jMenuItemStackWordActionPerformed private void jMenuItemTextActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTextActionPerformed execute(MEM_MARKDATA_T); }//GEN-LAST:event_jMenuItemTextActionPerformed private void jMenuItemNumTextActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemNumTextActionPerformed execute(MEM_MARKDATA_N); }//GEN-LAST:event_jMenuItemNumTextActionPerformed private void jMenuItemTextZeroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTextZeroActionPerformed execute(MEM_MARKDATA_Z); }//GEN-LAST:event_jMenuItemTextZeroActionPerformed private void jMenuItemtextHighOneActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemtextHighOneActionPerformed execute(MEM_MARKDATA_M); }//GEN-LAST:event_jMenuItemtextHighOneActionPerformed private void jMenuItemtextShiftedActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemtextShiftedActionPerformed execute(MEM_MARKDATA_H); }//GEN-LAST:event_jMenuItemtextShiftedActionPerformed private void jMenuItemTextScreenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTextScreenActionPerformed execute(MEM_MARKDATA_C); }//GEN-LAST:event_jMenuItemTextScreenActionPerformed private void jMenuItemByteHex1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemByteHex1ActionPerformed execute(MEM_MARKDATA_B); }//GEN-LAST:event_jMenuItemByteHex1ActionPerformed private void jMenuItemWord1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemWord1ActionPerformed execute(MEM_MARKDATA_W); }//GEN-LAST:event_jMenuItemWord1ActionPerformed private void jMenuItemLong1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemLong1ActionPerformed execute(MEM_MARKDATA_L); }//GEN-LAST:event_jMenuItemLong1ActionPerformed private void jMenuItemAddress1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemAddress1ActionPerformed execute(MEM_MARKDATA_A); }//GEN-LAST:event_jMenuItemAddress1ActionPerformed private void jMenuItemStackWord1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemStackWord1ActionPerformed execute(MEM_MARKDATA_S); }//GEN-LAST:event_jMenuItemStackWord1ActionPerformed private void jMenuItemText1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemText1ActionPerformed execute(MEM_MARKDATA_T); }//GEN-LAST:event_jMenuItemText1ActionPerformed private void jMenuItemNumText1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemNumText1ActionPerformed execute(MEM_MARKDATA_N); }//GEN-LAST:event_jMenuItemNumText1ActionPerformed private void jMenuItemTextZero1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTextZero1ActionPerformed execute(MEM_MARKDATA_Z); }//GEN-LAST:event_jMenuItemTextZero1ActionPerformed private void jMenuItemtextHighOne1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemtextHighOne1ActionPerformed execute(MEM_MARKDATA_M); }//GEN-LAST:event_jMenuItemtextHighOne1ActionPerformed private void jMenuItemtextShifted1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemtextShifted1ActionPerformed execute(MEM_MARKDATA_H); }//GEN-LAST:event_jMenuItemtextShifted1ActionPerformed private void jMenuItemTextScreen1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTextScreen1ActionPerformed execute(MEM_MARKDATA_C); }//GEN-LAST:event_jMenuItemTextScreen1ActionPerformed private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing execute(APP_EXIT); }//GEN-LAST:event_formWindowClosing private void jMenuItemWordSwappedActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemWordSwappedActionPerformed execute(MEM_MARKDATA_P); }//GEN-LAST:event_jMenuItemWordSwappedActionPerformed private void jMenuItemWordSwapped1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemWordSwapped1ActionPerformed execute(MEM_MARKDATA_P); }//GEN-LAST:event_jMenuItemWordSwapped1ActionPerformed private void jMenuItemByteDecActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemByteDecActionPerformed execute(MEM_MARKDATA_D); }//GEN-LAST:event_jMenuItemByteDecActionPerformed private void jMenuItemByteBinActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemByteBinActionPerformed execute(MEM_MARKDATA_Y); }//GEN-LAST:event_jMenuItemByteBinActionPerformed private void jMenuItemByteCharActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemByteCharActionPerformed execute(MEM_MARKDATA_R); }//GEN-LAST:event_jMenuItemByteCharActionPerformed private void jMenuItemByteDec1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemByteDec1ActionPerformed execute(MEM_MARKDATA_D); }//GEN-LAST:event_jMenuItemByteDec1ActionPerformed private void jMenuItemByteBin1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemByteBin1ActionPerformed execute(MEM_MARKDATA_Y); }//GEN-LAST:event_jMenuItemByteBin1ActionPerformed private void jMenuItemByteChar1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemByteChar1ActionPerformed execute(MEM_MARKDATA_R); }//GEN-LAST:event_jMenuItemByteChar1ActionPerformed private void jMenuItemSpriteMonoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSpriteMonoActionPerformed execute(MEM_MARKDATA_O); }//GEN-LAST:event_jMenuItemSpriteMonoActionPerformed private void jMenuItemSpriteMultiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSpriteMultiActionPerformed execute(MEM_MARKDATA_F); }//GEN-LAST:event_jMenuItemSpriteMultiActionPerformed private void jMenuItemTextPetascii1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTextPetascii1ActionPerformed execute(MEM_MARKDATA_I); }//GEN-LAST:event_jMenuItemTextPetascii1ActionPerformed private void jMenuItemTextPetasciiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTextPetasciiActionPerformed execute(MEM_MARKDATA_I); }//GEN-LAST:event_jMenuItemTextPetasciiActionPerformed private void jMenuItemTribyteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTribyteActionPerformed execute(MEM_MARKDATA_E); }//GEN-LAST:event_jMenuItemTribyteActionPerformed private void jMenuItemTribyte1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTribyte1ActionPerformed execute(MEM_MARKDATA_E); }//GEN-LAST:event_jMenuItemTribyte1ActionPerformed private void jMenuItemSpriteMono1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSpriteMono1ActionPerformed execute(MEM_MARKDATA_O); }//GEN-LAST:event_jMenuItemSpriteMono1ActionPerformed private void jMenuItemSpriteMulti1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSpriteMulti1ActionPerformed execute(MEM_MARKDATA_F); }//GEN-LAST:event_jMenuItemSpriteMulti1ActionPerformed private void jButtonAssembleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAssembleActionPerformed execute(SOURCE_ASS); }//GEN-LAST:event_jButtonAssembleActionPerformed private void jMenuItemAssemblyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemAssemblyActionPerformed execute(SOURCE_ASS); }//GEN-LAST:event_jMenuItemAssemblyActionPerformed private void jButtonMarkLowHighActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonMarkLowHighActionPerformed execute(MEM_LOWHIGH); }//GEN-LAST:event_jButtonMarkLowHighActionPerformed private void jMenuItemMemLowHighActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemMemLowHighActionPerformed execute(MEM_LOWHIGH); }//GEN-LAST:event_jMenuItemMemLowHighActionPerformed private void jMenuItemMemHighLowActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemMemHighLowActionPerformed execute(MEM_HIGHLOW); }//GEN-LAST:event_jMenuItemMemHighLowActionPerformed private void jButtonMarkHighLowActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonMarkHighLowActionPerformed execute(MEM_HIGHLOW); }//GEN-LAST:event_jButtonMarkHighLowActionPerformed private void jButtonMarkConstantMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonMarkConstantMouseEntered jPopupMenuConstant.show((JComponent)evt.getSource(), 0, ((JComponent)evt.getSource()).getHeight()); }//GEN-LAST:event_jButtonMarkConstantMouseEntered private void jButtonMarkConstantActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonMarkConstantActionPerformed execute(MEM_SUB_CLEAR); }//GEN-LAST:event_jButtonMarkConstantActionPerformed private void jButtonMarkPlusMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonMarkPlusMouseEntered if (jPopupMenuConstant.isShowing()) jPopupMenuConstant.setVisible(false); }//GEN-LAST:event_jButtonMarkPlusMouseEntered private void jMenuItemConstant0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant0ActionPerformed execute(MEM_SUB_0); }//GEN-LAST:event_jMenuItemConstant0ActionPerformed private void jMenuItemConstant1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant1ActionPerformed execute(MEM_SUB_1); }//GEN-LAST:event_jMenuItemConstant1ActionPerformed private void jMenuItemConstant2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant2ActionPerformed execute(MEM_SUB_2); }//GEN-LAST:event_jMenuItemConstant2ActionPerformed private void jMenuItemConstant3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant3ActionPerformed execute(MEM_SUB_3); }//GEN-LAST:event_jMenuItemConstant3ActionPerformed private void jMenuItemConstant4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant4ActionPerformed execute(MEM_SUB_4); }//GEN-LAST:event_jMenuItemConstant4ActionPerformed private void jMenuItemConstant5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant5ActionPerformed execute(MEM_SUB_5); }//GEN-LAST:event_jMenuItemConstant5ActionPerformed private void jMenuItemConstant6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant6ActionPerformed execute(MEM_SUB_6); }//GEN-LAST:event_jMenuItemConstant6ActionPerformed private void jMenuItemConstant7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant7ActionPerformed execute(MEM_SUB_7); }//GEN-LAST:event_jMenuItemConstant7ActionPerformed private void jMenuItemConstant8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant8ActionPerformed execute(MEM_SUB_8); }//GEN-LAST:event_jMenuItemConstant8ActionPerformed private void jMenuItemConstant9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant9ActionPerformed execute(MEM_SUB_9); }//GEN-LAST:event_jMenuItemConstant9ActionPerformed private void jMenuItemConstant0bActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant0bActionPerformed execute(MEM_SUB_0); }//GEN-LAST:event_jMenuItemConstant0bActionPerformed private void jMenuItemConstant1bActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant1bActionPerformed execute(MEM_SUB_1); }//GEN-LAST:event_jMenuItemConstant1bActionPerformed private void jMenuItemConstant2bActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant2bActionPerformed execute(MEM_SUB_2); }//GEN-LAST:event_jMenuItemConstant2bActionPerformed private void jMenuItemConstant3bActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant3bActionPerformed execute(MEM_SUB_3); }//GEN-LAST:event_jMenuItemConstant3bActionPerformed private void jMenuItemConstant4bActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant4bActionPerformed execute(MEM_SUB_4); }//GEN-LAST:event_jMenuItemConstant4bActionPerformed private void jMenuItemConstant5bActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant5bActionPerformed execute(MEM_SUB_5); }//GEN-LAST:event_jMenuItemConstant5bActionPerformed private void jMenuItemConstant6bActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant6bActionPerformed execute(MEM_SUB_6); }//GEN-LAST:event_jMenuItemConstant6bActionPerformed private void jMenuItemConstant7bActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant7bActionPerformed execute(MEM_SUB_7); }//GEN-LAST:event_jMenuItemConstant7bActionPerformed private void jMenuItemConstant8bActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant8bActionPerformed execute(MEM_SUB_8); }//GEN-LAST:event_jMenuItemConstant8bActionPerformed private void jMenuItemConstant9bActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant9bActionPerformed execute(MEM_SUB_9); }//GEN-LAST:event_jMenuItemConstant9bActionPerformed private void jMenuItemConstantClearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstantClearActionPerformed execute(MEM_SUB_CLEAR); }//GEN-LAST:event_jMenuItemConstantClearActionPerformed private void jMenuItemConstantClear_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstantClear_ActionPerformed execute(MEM_SUB_CLEAR); }//GEN-LAST:event_jMenuItemConstantClear_ActionPerformed private void rSyntaxTextAreaDisKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_rSyntaxTextAreaDisKeyReleased // test for down/up without shift if ((evt.getKeyCode()==40 || evt.getKeyCode()==38)) { if (!evt.isShiftDown()) { try { int pos=Utilities.getRowStart(rSyntaxTextAreaDis, rSyntaxTextAreaDis.getCaretPosition()); int addr=searchAddress(rSyntaxTextAreaDis.getDocument().getText(pos,option.maxLabelLength)); if (addr==-1) return; //scroll to that point ///jTableMemory.scrollRectToVisible(jTableMemory.getCellRect(addr,0, true)); Shared.scrollToCenter(jTableMemory, addr, 0); // select this row jTableMemory.setRowSelectionInterval(addr, addr); } catch (Exception e) { System.err.println(e); } } else { // this is a selection rSyntaxTextAreaDisMouseReleased(null); } } }//GEN-LAST:event_rSyntaxTextAreaDisKeyReleased private void jButtonViewLabelsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonViewLabelsActionPerformed execute(OPTION_LABELS); }//GEN-LAST:event_jButtonViewLabelsActionPerformed private void jMenuItemViewLabelsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemViewLabelsActionPerformed execute(OPTION_LABELS); }//GEN-LAST:event_jMenuItemViewLabelsActionPerformed private void jButtonMarkBothActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonMarkBothActionPerformed execute(MEM_BOTH); }//GEN-LAST:event_jButtonMarkBothActionPerformed private void jMenuItemMemBothActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemMemBothActionPerformed execute(MEM_BOTH); }//GEN-LAST:event_jMenuItemMemBothActionPerformed private void jButtonWizardActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonWizardActionPerformed execute(MEM_WIZARD); }//GEN-LAST:event_jButtonWizardActionPerformed private void jMenuItemWizardActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemWizardActionPerformed execute(MEM_WIZARD); }//GEN-LAST:event_jMenuItemWizardActionPerformed private void jMenuItemSaveAsDasmActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSaveAsDasmActionPerformed execute(SOURCE_DASM); }//GEN-LAST:event_jMenuItemSaveAsDasmActionPerformed private void jMenuItemSaveAsTmpxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSaveAsTmpxActionPerformed execute(SOURCE_TMPX); }//GEN-LAST:event_jMenuItemSaveAsTmpxActionPerformed private void jMenuItemSaveAsCa65ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSaveAsCa65ActionPerformed execute(SOURCE_CA65); }//GEN-LAST:event_jMenuItemSaveAsCa65ActionPerformed private void jMenuItemSaveAsAcmeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSaveAsAcmeActionPerformed execute(SOURCE_ACME); }//GEN-LAST:event_jMenuItemSaveAsAcmeActionPerformed private void jMenuItemSaveAsKickAssemblerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSaveAsKickAssemblerActionPerformed execute(SOURCE_KICK); }//GEN-LAST:event_jMenuItemSaveAsKickAssemblerActionPerformed private void jMenuItemSaveAsTass64ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSaveAsTass64ActionPerformed execute(SOURCE_TASS64); }//GEN-LAST:event_jMenuItemSaveAsTass64ActionPerformed private void jButtonExportAsSourceMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonExportAsSourceMouseEntered jPopupMenuSaveAs.show((JComponent)evt.getSource(), 0, ((JComponent)evt.getSource()).getHeight()); }//GEN-LAST:event_jButtonExportAsSourceMouseEntered private void jButtonFindSourceMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonFindSourceMouseEntered if (jPopupMenuSaveAs.isShowing()) jPopupMenuSaveAs.setVisible(false); }//GEN-LAST:event_jButtonFindSourceMouseEntered private void jToolBarPerformanceMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToolBarPerformanceMouseEntered if (jPopupMenuSaveAs.isShowing()) jPopupMenuSaveAs.setVisible(false); }//GEN-LAST:event_jToolBarPerformanceMouseEntered private void jPanelToolBarMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelToolBarMouseEntered if (jPopupMenuSaveAs.isShowing()) jPopupMenuSaveAs.setVisible(false); }//GEN-LAST:event_jPanelToolBarMouseEntered private void jMenuItemSaveAsDasm1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSaveAsDasm1ActionPerformed execute(SOURCE_DASM); }//GEN-LAST:event_jMenuItemSaveAsDasm1ActionPerformed private void jMenuItemSaveAsTmpx1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSaveAsTmpx1ActionPerformed execute(SOURCE_TMPX); }//GEN-LAST:event_jMenuItemSaveAsTmpx1ActionPerformed private void jMenuItemSaveAsCa66ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSaveAsCa66ActionPerformed execute(SOURCE_CA65); }//GEN-LAST:event_jMenuItemSaveAsCa66ActionPerformed private void jMenuItemSaveAsAcme1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSaveAsAcme1ActionPerformed execute(SOURCE_ACME); }//GEN-LAST:event_jMenuItemSaveAsAcme1ActionPerformed private void jMenuItemSaveAsKickAssembler1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSaveAsKickAssembler1ActionPerformed execute(SOURCE_KICK); }//GEN-LAST:event_jMenuItemSaveAsKickAssembler1ActionPerformed private void jMenuItemSaveAsTass65ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSaveAsTass65ActionPerformed execute(SOURCE_TASS64); }//GEN-LAST:event_jMenuItemSaveAsTass65ActionPerformed private void jMenuItemImportLabelsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemImportLabelsActionPerformed execute(HELP_IMPORT); }//GEN-LAST:event_jMenuItemImportLabelsActionPerformed private void jMenuItemRefactorLabelsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemRefactorLabelsActionPerformed execute(HELP_REFACTOR); }//GEN-LAST:event_jMenuItemRefactorLabelsActionPerformed private void jMenuRecentMenuSelected(javax.swing.event.MenuEvent evt) {//GEN-FIRST:event_jMenuRecentMenuSelected execute(PROJ_RECENT); }//GEN-LAST:event_jMenuRecentMenuSelected private void jMenuItemRecent1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemRecent1ActionPerformed recent(0); }//GEN-LAST:event_jMenuItemRecent1ActionPerformed private void jMenuItemRecent2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemRecent2ActionPerformed recent(1); }//GEN-LAST:event_jMenuItemRecent2ActionPerformed private void jMenuItemRecent9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemRecent9ActionPerformed recent(8); }//GEN-LAST:event_jMenuItemRecent9ActionPerformed private void jMenuItemRecent4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemRecent4ActionPerformed recent(3); }//GEN-LAST:event_jMenuItemRecent4ActionPerformed private void jMenuItemRecent5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemRecent5ActionPerformed recent(4); }//GEN-LAST:event_jMenuItemRecent5ActionPerformed private void jMenuItemRecent6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemRecent6ActionPerformed recent(5); }//GEN-LAST:event_jMenuItemRecent6ActionPerformed private void jMenuItemRecent7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemRecent7ActionPerformed recent(6); }//GEN-LAST:event_jMenuItemRecent7ActionPerformed private void jMenuItemRecent8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemRecent8ActionPerformed recent(7); }//GEN-LAST:event_jMenuItemRecent8ActionPerformed private void jMenuItemRecent3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemRecent3ActionPerformed recent(2); }//GEN-LAST:event_jMenuItemRecent3ActionPerformed private void jMenuItemAutLabelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemAutLabelActionPerformed execute(HELP_CLEARLAB); }//GEN-LAST:event_jMenuItemAutLabelActionPerformed private void jMenuItemCopyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemCopyActionPerformed execute(APP_COPY); }//GEN-LAST:event_jMenuItemCopyActionPerformed private void jMenuItemPasteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemPasteActionPerformed execute(APP_PASTE); }//GEN-LAST:event_jMenuItemPasteActionPerformed private void jTableMemoryMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableMemoryMousePressed if (evt.isPopupTrigger()) jPopupMenuMemory.show(evt.getComponent(),evt.getX(), evt.getY()); }//GEN-LAST:event_jTableMemoryMousePressed private void jTableMemoryMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableMemoryMouseReleased if (evt.isPopupTrigger()) jPopupMenuMemory.show(evt.getComponent(),evt.getX(), evt.getY()); }//GEN-LAST:event_jTableMemoryMouseReleased private void jMenuItemUndo1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemUndo1ActionPerformed undo(0); }//GEN-LAST:event_jMenuItemUndo1ActionPerformed private void jMenuItemUndo2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemUndo2ActionPerformed undo(1); }//GEN-LAST:event_jMenuItemUndo2ActionPerformed private void jMenuItemUndo3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemUndo3ActionPerformed undo(2); }//GEN-LAST:event_jMenuItemUndo3ActionPerformed private void jMenuItemUndo4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemUndo4ActionPerformed undo(3); }//GEN-LAST:event_jMenuItemUndo4ActionPerformed private void jMenuItemUndo5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemUndo5ActionPerformed undo(4); }//GEN-LAST:event_jMenuItemUndo5ActionPerformed private void jMenuItemUndo6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemUndo6ActionPerformed undo(5); }//GEN-LAST:event_jMenuItemUndo6ActionPerformed private void jMenuItemUndo7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemUndo7ActionPerformed undo(6); }//GEN-LAST:event_jMenuItemUndo7ActionPerformed private void jMenuItemUndo8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemUndo8ActionPerformed undo(7); }//GEN-LAST:event_jMenuItemUndo8ActionPerformed private void jMenuItemUndo9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemUndo9ActionPerformed undo(8); }//GEN-LAST:event_jMenuItemUndo9ActionPerformed private void jMenuUndoMenuSelected(javax.swing.event.MenuEvent evt) {//GEN-FIRST:event_jMenuUndoMenuSelected execute(HELP_UNDO); }//GEN-LAST:event_jMenuUndoMenuSelected private void heapViewMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_heapViewMouseClicked // Trigger a gc new Runnable() { @Override public void run() { System.gc(); System.runFinalization(); System.gc(); } }.run(); }//GEN-LAST:event_heapViewMouseClicked private void jMenuItemAutCommentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemAutCommentActionPerformed execute(HELP_CLEARCOM); }//GEN-LAST:event_jMenuItemAutCommentActionPerformed private void jMenuItemFindAddrActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemFindAddrActionPerformed execute(SOURCE_FINDA); }//GEN-LAST:event_jMenuItemFindAddrActionPerformed private void jMenuItemFindSeqActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemFindSeqActionPerformed execute(SOURCE_FINDX); }//GEN-LAST:event_jMenuItemFindSeqActionPerformed private void jMenuItemCodeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemCodeActionPerformed execute(MEM_MARKCODE); }//GEN-LAST:event_jMenuItemCodeActionPerformed private void jMenuItemDataActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemDataActionPerformed execute(MEM_MARKDATA); }//GEN-LAST:event_jMenuItemDataActionPerformed private void jMenuItemGarbageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGarbageActionPerformed execute(MEM_MARKGARB); }//GEN-LAST:event_jMenuItemGarbageActionPerformed private void jMenuItemByteHex2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemByteHex2ActionPerformed execute(MEM_MARKDATA_B); }//GEN-LAST:event_jMenuItemByteHex2ActionPerformed private void jMenuItemByteDec2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemByteDec2ActionPerformed execute(MEM_MARKDATA_D); }//GEN-LAST:event_jMenuItemByteDec2ActionPerformed private void jMenuItemByteBin2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemByteBin2ActionPerformed execute(MEM_MARKDATA_Y); }//GEN-LAST:event_jMenuItemByteBin2ActionPerformed private void jMenuItemByteChar2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemByteChar2ActionPerformed execute(MEM_MARKDATA_R); }//GEN-LAST:event_jMenuItemByteChar2ActionPerformed private void jMenuItemWord2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemWord2ActionPerformed execute(MEM_MARKDATA_W); }//GEN-LAST:event_jMenuItemWord2ActionPerformed private void jMenuItemWordSwapped2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemWordSwapped2ActionPerformed execute(MEM_MARKDATA_P); }//GEN-LAST:event_jMenuItemWordSwapped2ActionPerformed private void jMenuItemTribyte2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTribyte2ActionPerformed execute(MEM_MARKDATA_E); }//GEN-LAST:event_jMenuItemTribyte2ActionPerformed private void jMenuItemLong2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemLong2ActionPerformed execute(MEM_MARKDATA_L); }//GEN-LAST:event_jMenuItemLong2ActionPerformed private void jMenuItemAddress2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemAddress2ActionPerformed execute(MEM_MARKDATA_A); }//GEN-LAST:event_jMenuItemAddress2ActionPerformed private void jMenuItemStackWord2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemStackWord2ActionPerformed execute(MEM_MARKDATA_S); }//GEN-LAST:event_jMenuItemStackWord2ActionPerformed private void jMenuItemSpriteMono2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSpriteMono2ActionPerformed execute(MEM_MARKDATA_O); }//GEN-LAST:event_jMenuItemSpriteMono2ActionPerformed private void jMenuItemSpriteMulti2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSpriteMulti2ActionPerformed execute(MEM_MARKDATA_F); }//GEN-LAST:event_jMenuItemSpriteMulti2ActionPerformed private void jMenuItemText2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemText2ActionPerformed execute(MEM_MARKDATA_T); }//GEN-LAST:event_jMenuItemText2ActionPerformed private void jMenuItemNumText2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemNumText2ActionPerformed execute(MEM_MARKDATA_N); }//GEN-LAST:event_jMenuItemNumText2ActionPerformed private void jMenuItemTextZero2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTextZero2ActionPerformed execute(MEM_MARKDATA_Z); }//GEN-LAST:event_jMenuItemTextZero2ActionPerformed private void jMenuItemtextHighOne2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemtextHighOne2ActionPerformed execute(MEM_MARKDATA_M); }//GEN-LAST:event_jMenuItemtextHighOne2ActionPerformed private void jMenuItemtextShifted2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemtextShifted2ActionPerformed execute(MEM_MARKDATA_H); }//GEN-LAST:event_jMenuItemtextShifted2ActionPerformed private void jMenuItemTextScreen2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTextScreen2ActionPerformed execute(MEM_MARKDATA_C); }//GEN-LAST:event_jMenuItemTextScreen2ActionPerformed private void jMenuItemTextPetascii2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTextPetascii2ActionPerformed execute(MEM_MARKDATA_I); }//GEN-LAST:event_jMenuItemTextPetascii2ActionPerformed private void jButtonExportAsSource1MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonExportAsSource1MouseEntered if (jPopupMenuSaveAs.isShowing()) jPopupMenuSaveAs.setVisible(false); }//GEN-LAST:event_jButtonExportAsSource1MouseEntered private void jButtonExportAsSource1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonExportAsSource1ActionPerformed execute(SOURCE_FREEZE); }//GEN-LAST:event_jButtonExportAsSource1ActionPerformed private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed execute(SOURCE_FREEZE); }//GEN-LAST:event_jMenuItem3ActionPerformed private void jMenuItemHexActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemHexActionPerformed execute(MEM_HEX); }//GEN-LAST:event_jMenuItemHexActionPerformed private void jMenuItemConstant10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant10ActionPerformed execute(MEM_SUB_10); }//GEN-LAST:event_jMenuItemConstant10ActionPerformed private void jMenuItemConstant11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant11ActionPerformed execute(MEM_SUB_11); }//GEN-LAST:event_jMenuItemConstant11ActionPerformed private void jMenuItemConstant12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant12ActionPerformed execute(MEM_SUB_12); }//GEN-LAST:event_jMenuItemConstant12ActionPerformed private void jMenuItemConstant13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant13ActionPerformed execute(MEM_SUB_13); }//GEN-LAST:event_jMenuItemConstant13ActionPerformed private void jMenuItemConstant14ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant14ActionPerformed execute(MEM_SUB_14); }//GEN-LAST:event_jMenuItemConstant14ActionPerformed private void jMenuItemConstant15ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant15ActionPerformed execute(MEM_SUB_15); }//GEN-LAST:event_jMenuItemConstant15ActionPerformed private void jMenuItemConstant16ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant16ActionPerformed execute(MEM_SUB_16); }//GEN-LAST:event_jMenuItemConstant16ActionPerformed private void jMenuItemConstant17ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant17ActionPerformed execute(MEM_SUB_17); }//GEN-LAST:event_jMenuItemConstant17ActionPerformed private void jMenuItemConstant18ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant18ActionPerformed execute(MEM_SUB_18); }//GEN-LAST:event_jMenuItemConstant18ActionPerformed private void jMenuItemConstant19ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant19ActionPerformed execute(MEM_SUB_19); }//GEN-LAST:event_jMenuItemConstant19ActionPerformed private void jMenuItemConstant0b1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant0b1ActionPerformed execute(MEM_SUB_10); }//GEN-LAST:event_jMenuItemConstant0b1ActionPerformed private void jMenuItemConstant1b1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant1b1ActionPerformed execute(MEM_SUB_11); }//GEN-LAST:event_jMenuItemConstant1b1ActionPerformed private void jMenuItemConstant2b1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant2b1ActionPerformed execute(MEM_SUB_12); }//GEN-LAST:event_jMenuItemConstant2b1ActionPerformed private void jMenuItemConstant3b1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant3b1ActionPerformed execute(MEM_SUB_13); }//GEN-LAST:event_jMenuItemConstant3b1ActionPerformed private void jMenuItemConstant4b1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant4b1ActionPerformed execute(MEM_SUB_14); }//GEN-LAST:event_jMenuItemConstant4b1ActionPerformed private void jMenuItemConstant5b1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant5b1ActionPerformed execute(MEM_SUB_15); }//GEN-LAST:event_jMenuItemConstant5b1ActionPerformed private void jMenuItemConstant6b1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant6b1ActionPerformed execute(MEM_SUB_16); }//GEN-LAST:event_jMenuItemConstant6b1ActionPerformed private void jMenuItemConstant7b1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant7b1ActionPerformed execute(MEM_SUB_17); }//GEN-LAST:event_jMenuItemConstant7b1ActionPerformed private void jMenuItemConstant8b1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant8b1ActionPerformed execute(MEM_SUB_18); }//GEN-LAST:event_jMenuItemConstant8b1ActionPerformed private void jMenuItemConstant9b1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemConstant9b1ActionPerformed execute(MEM_SUB_19); }//GEN-LAST:event_jMenuItemConstant9b1ActionPerformed private void jMenuItemSidldPlayerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSidldPlayerActionPerformed jPlayerDialog.setup(option, project); jPlayerDialog.setVisible(true); }//GEN-LAST:event_jMenuItemSidldPlayerActionPerformed private void rSyntaxTextAreaDisMinMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_rSyntaxTextAreaDisMinMouseClicked gotoMem(rSyntaxTextAreaDisMin, disassembly.caretsPreview, evt.getModifiersEx()); rSyntaxTextAreaDis.setCaretPosition(rSyntaxTextAreaDisMin.getCaretPosition()); rSyntaxTextAreaDis.requestFocusInWindow(); }//GEN-LAST:event_rSyntaxTextAreaDisMinMouseClicked private void rSyntaxTextAreaDisMinMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_rSyntaxTextAreaDisMinMouseReleased String selected=rSyntaxTextAreaDisMin.getSelectedText(); int actual; int min=0xffff+1; // min find address int max=-1; // max find address // avoid no selected text if (selected==null) return; try { String lines[] = selected.split("\\r?\\n"); for (String line: lines) { actual=searchAddress(line.substring(0, Math.min(line.length(), option.maxLabelLength))); if (actual==-1) continue; if (actual<min) min=actual; if (actual>max) max=actual; } // if max is not -1 we find a range if (max==-1) return; //scroll to that point ///jTableMemory.scrollRectToVisible(jTableMemory.getCellRect(min,0, true)); Shared.scrollToCenter(jTableMemory, min, 0); // select those rows jTableMemory.setRowSelectionInterval(min, max); } catch (Exception e) { System.err.println(e);; } }//GEN-LAST:event_rSyntaxTextAreaDisMinMouseReleased private void rSyntaxTextAreaSourceMinMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_rSyntaxTextAreaSourceMinMouseClicked gotoMem(rSyntaxTextAreaSourceMin, disassembly.caretsSource, evt.getModifiersEx()); rSyntaxTextAreaSource.setCaretPosition(rSyntaxTextAreaSourceMin.getCaretPosition()); rSyntaxTextAreaSource.requestFocusInWindow(); }//GEN-LAST:event_rSyntaxTextAreaSourceMinMouseClicked private void rSyntaxTextAreaSourceMinMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_rSyntaxTextAreaSourceMinMouseReleased String selected=rSyntaxTextAreaSourceMin.getSelectedText(); int actual; int min=0xffff+1; // min find address int max=-1; // max find address // avoid no selected text if (selected==null) return; try { String lines[] = selected.split("\\r?\\n"); for (String line: lines) { actual=searchAddress(line.substring(0, Math.min(line.length(), option.maxLabelLength))); if (actual==-1) continue; if (actual<min) min=actual; if (actual>max) max=actual; } // if max is not -1 we find a range if (max==-1) return; //scroll to that point ///jTableMemory.scrollRectToVisible(jTableMemory.getCellRect(min,0, true)); Shared.scrollToCenter(jTableMemory, min, 0); // select this rows jTableMemory.setRowSelectionInterval(min, max); } catch (Exception e) { System.err.println(e);; } }//GEN-LAST:event_rSyntaxTextAreaSourceMinMouseReleased private void jMenuItemUnmarkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemUnmarkActionPerformed execute(MEM_UNMARK); }//GEN-LAST:event_jMenuItemUnmarkActionPerformed private void jMenuItemBasicNoneActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemBasicNoneActionPerformed execute(MEM_BASIC_NONE); }//GEN-LAST:event_jMenuItemBasicNoneActionPerformed private void jMenuItemBasicV2_0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemBasicV2_0ActionPerformed execute(MEM_BASIC_V2_0); }//GEN-LAST:event_jMenuItemBasicV2_0ActionPerformed private void jMenuItemBasicV3_5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemBasicV3_5ActionPerformed execute(MEM_BASIC_V3_5); }//GEN-LAST:event_jMenuItemBasicV3_5ActionPerformed private void jMenuItemBasicV4_0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemBasicV4_0ActionPerformed execute(MEM_BASIC_V4_0); }//GEN-LAST:event_jMenuItemBasicV4_0ActionPerformed private void jMenuItemBasicV7_0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemBasicV7_0ActionPerformed execute(MEM_BASIC_V7_0); }//GEN-LAST:event_jMenuItemBasicV7_0ActionPerformed private void jMenuItemSimonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSimonActionPerformed execute(MEM_BASIC_SIMON); }//GEN-LAST:event_jMenuItemSimonActionPerformed private void jMenuItemAndreFachatActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemAndreFachatActionPerformed execute(MEM_BASIC_ANDRE_FACHAT); }//GEN-LAST:event_jMenuItemAndreFachatActionPerformed private void jMenuItemSpeechActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSpeechActionPerformed execute(MEM_BASIC_SPEECH); }//GEN-LAST:event_jMenuItemSpeechActionPerformed private void jMenuItemFinalCart3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemFinalCart3ActionPerformed execute(MEM_BASIC_FINAL_CART3); }//GEN-LAST:event_jMenuItemFinalCart3ActionPerformed private void jMenuItemUltrabasicActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemUltrabasicActionPerformed execute(MEM_BASIC_ULTRABASIC); }//GEN-LAST:event_jMenuItemUltrabasicActionPerformed private void jMenuItemGraphicsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGraphicsActionPerformed execute(MEM_BASIC_GRAPHICS); }//GEN-LAST:event_jMenuItemGraphicsActionPerformed private void jMenuItemWSActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemWSActionPerformed execute(MEM_BASIC_WS); }//GEN-LAST:event_jMenuItemWSActionPerformed private void jMenuItemPegasusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemPegasusActionPerformed execute(MEM_BASIC_PEGASUS); }//GEN-LAST:event_jMenuItemPegasusActionPerformed private void jMenuItemXbasicActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemXbasicActionPerformed execute(MEM_BASIC_XBASIC); }//GEN-LAST:event_jMenuItemXbasicActionPerformed private void jMenuItemDragoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemDragoActionPerformed execute(MEM_BASIC_DRAGO); }//GEN-LAST:event_jMenuItemDragoActionPerformed private void jMenuItemReuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemReuActionPerformed execute(MEM_BASIC_REU); }//GEN-LAST:event_jMenuItemReuActionPerformed private void jMenuItemLightninigActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemLightninigActionPerformed execute(MEM_BASIC_LIGHTNING); }//GEN-LAST:event_jMenuItemLightninigActionPerformed private void jMenuItemMagicActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemMagicActionPerformed execute(MEM_BASIC_MAGIC); }//GEN-LAST:event_jMenuItemMagicActionPerformed private void jMenuItemBlarkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemBlarkActionPerformed execute(MEM_BASIC_BLARG); }//GEN-LAST:event_jMenuItemBlarkActionPerformed private void jMenuItemWSFinalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemWSFinalActionPerformed execute(MEM_BASIC_WS_FINAL); }//GEN-LAST:event_jMenuItemWSFinalActionPerformed private void jMenuItemGameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGameActionPerformed execute(MEM_BASIC_GAME); }//GEN-LAST:event_jMenuItemGameActionPerformed private void jMenuItemBasexActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemBasexActionPerformed execute(MEM_BASIC_BASEX); }//GEN-LAST:event_jMenuItemBasexActionPerformed private void jMenuItemSuperActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSuperActionPerformed execute(MEM_BASIC_SUPER); }//GEN-LAST:event_jMenuItemSuperActionPerformed private void jMenuItemExpandedActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemExpandedActionPerformed execute(MEM_BASIC_EXPANDED); }//GEN-LAST:event_jMenuItemExpandedActionPerformed private void jMenuItemSuperExpanderChipActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSuperExpanderChipActionPerformed execute(MEM_BASIC_SUPER_EXPANDER_CHIP); }//GEN-LAST:event_jMenuItemSuperExpanderChipActionPerformed private void jMenuItemWarsawActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemWarsawActionPerformed execute(MEM_BASIC_WARSAW); }//GEN-LAST:event_jMenuItemWarsawActionPerformed private void jMenuItemDbsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemDbsActionPerformed execute(MEM_BASIC_DBS); }//GEN-LAST:event_jMenuItemDbsActionPerformed private void jMenuItemKipperActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemKipperActionPerformed execute(MEM_BASIC_KIPPER); }//GEN-LAST:event_jMenuItemKipperActionPerformed private void jMenuItemBailsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemBailsActionPerformed execute(MEM_BASIC_BAILS); }//GEN-LAST:event_jMenuItemBailsActionPerformed private void jMenuItemEveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemEveActionPerformed execute(MEM_BASIC_EVE); }//GEN-LAST:event_jMenuItemEveActionPerformed private void jMenuItemToolActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemToolActionPerformed execute(MEM_BASIC_TOOL); }//GEN-LAST:event_jMenuItemToolActionPerformed private void jMenuItemSuperExpanderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSuperExpanderActionPerformed execute(MEM_BASIC_SUPER_EXPANDER); }//GEN-LAST:event_jMenuItemSuperExpanderActionPerformed private void jMenuItemTurtleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTurtleActionPerformed execute(MEM_BASIC_TURTLE); }//GEN-LAST:event_jMenuItemTurtleActionPerformed private void jMenuItemEasyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemEasyActionPerformed execute(MEM_BASIC_EASY); }//GEN-LAST:event_jMenuItemEasyActionPerformed private void jMenuItemV4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemV4ActionPerformed execute(MEM_BASIC_V4); }//GEN-LAST:event_jMenuItemV4ActionPerformed private void jMenuItemV5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemV5ActionPerformed execute(MEM_BASIC_V5); }//GEN-LAST:event_jMenuItemV5ActionPerformed private void jMenuItemExpandedV20ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemExpandedV20ActionPerformed execute(MEM_BASIC_EXPANDED_V20); }//GEN-LAST:event_jMenuItemExpandedV20ActionPerformed private void jMenuItemHandyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemHandyActionPerformed execute(MEM_BASIC_HANDY); }//GEN-LAST:event_jMenuItemHandyActionPerformed private void jMenuItemBasicNone1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemBasicNone1ActionPerformed execute(MEM_BASIC_NONE); }//GEN-LAST:event_jMenuItemBasicNone1ActionPerformed private void jMenuItemBasicV2_1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemBasicV2_1ActionPerformed execute(MEM_BASIC_V2_0); }//GEN-LAST:event_jMenuItemBasicV2_1ActionPerformed private void jMenuItemBasicV3_5_1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemBasicV3_5_1ActionPerformed execute(MEM_BASIC_V3_5); }//GEN-LAST:event_jMenuItemBasicV3_5_1ActionPerformed private void jMenuItemBasicV4_0_1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemBasicV4_0_1ActionPerformed execute(MEM_BASIC_V4_0); }//GEN-LAST:event_jMenuItemBasicV4_0_1ActionPerformed private void jMenuItemBasicV7_0_1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemBasicV7_0_1ActionPerformed execute(MEM_BASIC_V7_0); }//GEN-LAST:event_jMenuItemBasicV7_0_1ActionPerformed private void jMenuItemSimon1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSimon1ActionPerformed execute(MEM_BASIC_SIMON); }//GEN-LAST:event_jMenuItemSimon1ActionPerformed private void jMenuItemAndreFachat1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemAndreFachat1ActionPerformed execute(MEM_BASIC_ANDRE_FACHAT); }//GEN-LAST:event_jMenuItemAndreFachat1ActionPerformed private void jMenuItemSpeech1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSpeech1ActionPerformed execute(MEM_BASIC_SPEECH); }//GEN-LAST:event_jMenuItemSpeech1ActionPerformed private void jMenuItemFinalCart4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemFinalCart4ActionPerformed execute(MEM_BASIC_FINAL_CART3); }//GEN-LAST:event_jMenuItemFinalCart4ActionPerformed private void jMenuItemUltrabasic1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemUltrabasic1ActionPerformed execute(MEM_BASIC_ULTRABASIC); }//GEN-LAST:event_jMenuItemUltrabasic1ActionPerformed private void jMenuItemGraphics1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGraphics1ActionPerformed execute(MEM_BASIC_GRAPHICS); }//GEN-LAST:event_jMenuItemGraphics1ActionPerformed private void jMenuItemWS1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemWS1ActionPerformed execute(MEM_BASIC_WS); }//GEN-LAST:event_jMenuItemWS1ActionPerformed private void jMenuItemPegasus1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemPegasus1ActionPerformed execute(MEM_BASIC_PEGASUS); }//GEN-LAST:event_jMenuItemPegasus1ActionPerformed private void jMenuItemXbasic1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemXbasic1ActionPerformed execute(MEM_BASIC_XBASIC); }//GEN-LAST:event_jMenuItemXbasic1ActionPerformed private void jMenuItemDrago1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemDrago1ActionPerformed execute(MEM_BASIC_DRAGO); }//GEN-LAST:event_jMenuItemDrago1ActionPerformed private void jMenuItemReu1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemReu1ActionPerformed execute(MEM_BASIC_REU); }//GEN-LAST:event_jMenuItemReu1ActionPerformed private void jMenuItemLightninig1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemLightninig1ActionPerformed execute(MEM_BASIC_LIGHTNING); }//GEN-LAST:event_jMenuItemLightninig1ActionPerformed private void jMenuItemMagic1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemMagic1ActionPerformed execute(MEM_BASIC_MAGIC); }//GEN-LAST:event_jMenuItemMagic1ActionPerformed private void jMenuItemBlark1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemBlark1ActionPerformed execute(MEM_BASIC_BLARG); }//GEN-LAST:event_jMenuItemBlark1ActionPerformed private void jMenuItemWSFinal1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemWSFinal1ActionPerformed execute(MEM_BASIC_WS_FINAL); }//GEN-LAST:event_jMenuItemWSFinal1ActionPerformed private void jMenuItemGame1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGame1ActionPerformed execute(MEM_BASIC_GAME); }//GEN-LAST:event_jMenuItemGame1ActionPerformed private void jMenuItemBasex1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemBasex1ActionPerformed execute(MEM_BASIC_BASEX); }//GEN-LAST:event_jMenuItemBasex1ActionPerformed private void jMenuItemSuper1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSuper1ActionPerformed execute(MEM_BASIC_SUPER); }//GEN-LAST:event_jMenuItemSuper1ActionPerformed private void jMenuItemExpanded1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemExpanded1ActionPerformed execute(MEM_BASIC_EXPANDED); }//GEN-LAST:event_jMenuItemExpanded1ActionPerformed private void jMenuItemSuperExpanderChip1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSuperExpanderChip1ActionPerformed execute(MEM_BASIC_SUPER_EXPANDER_CHIP); }//GEN-LAST:event_jMenuItemSuperExpanderChip1ActionPerformed private void jMenuItemWarsaw1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemWarsaw1ActionPerformed execute(MEM_BASIC_WARSAW); }//GEN-LAST:event_jMenuItemWarsaw1ActionPerformed private void jMenuItemDbs1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemDbs1ActionPerformed execute(MEM_BASIC_DBS); }//GEN-LAST:event_jMenuItemDbs1ActionPerformed private void jMenuItemKipper1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemKipper1ActionPerformed execute(MEM_BASIC_KIPPER); }//GEN-LAST:event_jMenuItemKipper1ActionPerformed private void jMenuItemBails1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemBails1ActionPerformed execute(MEM_BASIC_BAILS); }//GEN-LAST:event_jMenuItemBails1ActionPerformed private void jMenuItemEve1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemEve1ActionPerformed execute(MEM_BASIC_EVE); }//GEN-LAST:event_jMenuItemEve1ActionPerformed private void jMenuItemTool1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTool1ActionPerformed execute(MEM_BASIC_TOOL); }//GEN-LAST:event_jMenuItemTool1ActionPerformed private void jMenuItemSuperExpander1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSuperExpander1ActionPerformed execute(MEM_BASIC_SUPER_EXPANDER); }//GEN-LAST:event_jMenuItemSuperExpander1ActionPerformed private void jMenuItemTurtle1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTurtle1ActionPerformed execute(MEM_BASIC_TURTLE); }//GEN-LAST:event_jMenuItemTurtle1ActionPerformed private void jMenuItemEasy1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemEasy1ActionPerformed execute(MEM_BASIC_EASY); }//GEN-LAST:event_jMenuItemEasy1ActionPerformed private void jMenuItemV6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemV6ActionPerformed execute(MEM_BASIC_V4); }//GEN-LAST:event_jMenuItemV6ActionPerformed private void jMenuItemV7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemV7ActionPerformed execute(MEM_BASIC_V5); }//GEN-LAST:event_jMenuItemV7ActionPerformed private void jMenuItemExpandedV21ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemExpandedV21ActionPerformed execute(MEM_BASIC_EXPANDED_V20); }//GEN-LAST:event_jMenuItemExpandedV21ActionPerformed private void jMenuItemHandy1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemHandy1ActionPerformed execute(MEM_BASIC_HANDY); }//GEN-LAST:event_jMenuItemHandy1ActionPerformed private void jMenuItemV8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemV8ActionPerformed execute(MEM_BASIC_V8); }//GEN-LAST:event_jMenuItemV8ActionPerformed private void jMenuItemV9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemV9ActionPerformed execute(MEM_BASIC_V8); }//GEN-LAST:event_jMenuItemV9ActionPerformed private void jMenuItemBlockLabelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemBlockLabelActionPerformed execute(MEM_BLOCKLABELS); }//GEN-LAST:event_jMenuItemBlockLabelActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(JDisassemblerFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(JDisassemblerFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(JDisassemblerFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(JDisassemblerFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> //</editor-fold> Option.installLook(); /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new JDisassemblerFrame().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private sw_emulator.swing.HeapView heapView; private javax.swing.JButton jButtonAddUserBlock; private javax.swing.JButton jButtonAddUserComm; private javax.swing.JButton jButtonAddUserLabel; private javax.swing.JButton jButtonAddUserLabelOp; private javax.swing.JButton jButtonAssemble; private javax.swing.JButton jButtonClearDLabel; private javax.swing.JButton jButtonClearDMem; private javax.swing.JButton jButtonClearUMem; private javax.swing.JButton jButtonClose; private javax.swing.JButton jButtonConfigure; private javax.swing.JButton jButtonDisassemble; private javax.swing.JButton jButtonExit; private javax.swing.JButton jButtonExportAsDiss; private javax.swing.JButton jButtonExportAsSource; private javax.swing.JButton jButtonExportAsSource1; private javax.swing.JButton jButtonFindDis; private javax.swing.JButton jButtonFindMem; private javax.swing.JButton jButtonFindSource; private javax.swing.JButton jButtonMPR; private javax.swing.JButton jButtonMarkBoth; private javax.swing.JButton jButtonMarkCode; private javax.swing.JButton jButtonMarkConstant; private javax.swing.JButton jButtonMarkData; private javax.swing.JButton jButtonMarkGarbage; private javax.swing.JButton jButtonMarkHighLow; private javax.swing.JButton jButtonMarkLow; private javax.swing.JButton jButtonMarkLowHigh; private javax.swing.JButton jButtonMarkMax; private javax.swing.JButton jButtonMarkMinus; private javax.swing.JButton jButtonMarkPlus; private javax.swing.JButton jButtonMerge; private javax.swing.JButton jButtonNewProject; private javax.swing.JButton jButtonOpenProject; private javax.swing.JButton jButtonSIDLD; private javax.swing.JButton jButtonSaveProject; private javax.swing.JButton jButtonSaveProjectAs; private javax.swing.JButton jButtonViewLabels; private javax.swing.JButton jButtonViewProject; private javax.swing.JButton jButtonWizard; private javax.swing.JMenuBar jMenuBar; private javax.swing.JMenu jMenuBasic; private javax.swing.JMenu jMenuBasic1; private javax.swing.JMenu jMenuDataSel; private javax.swing.JMenu jMenuFile; private javax.swing.JMenu jMenuHelpContents; private javax.swing.JMenuItem jMenuItem1; private javax.swing.JMenuItem jMenuItem2; private javax.swing.JMenuItem jMenuItem3; private javax.swing.JMenuItem jMenuItemAbout; private javax.swing.JMenuItem jMenuItemAddBlock; private javax.swing.JMenuItem jMenuItemAddComment; private javax.swing.JMenuItem jMenuItemAddress; private javax.swing.JMenuItem jMenuItemAddress1; private javax.swing.JMenuItem jMenuItemAddress2; private javax.swing.JMenuItem jMenuItemAndreFachat; private javax.swing.JMenuItem jMenuItemAndreFachat1; private javax.swing.JMenuItem jMenuItemAssembly; private javax.swing.JMenuItem jMenuItemAutComment; private javax.swing.JMenuItem jMenuItemAutLabel; private javax.swing.JMenuItem jMenuItemBails; private javax.swing.JMenuItem jMenuItemBails1; private javax.swing.JMenuItem jMenuItemBasex; private javax.swing.JMenuItem jMenuItemBasex1; private javax.swing.JMenuItem jMenuItemBasicNone; private javax.swing.JMenuItem jMenuItemBasicNone1; private javax.swing.JMenuItem jMenuItemBasicV2_0; private javax.swing.JMenuItem jMenuItemBasicV2_1; private javax.swing.JMenuItem jMenuItemBasicV3_5; private javax.swing.JMenuItem jMenuItemBasicV3_5_1; private javax.swing.JMenuItem jMenuItemBasicV4_0; private javax.swing.JMenuItem jMenuItemBasicV4_0_1; private javax.swing.JMenuItem jMenuItemBasicV7_0; private javax.swing.JMenuItem jMenuItemBasicV7_0_1; private javax.swing.JMenuItem jMenuItemBlark; private javax.swing.JMenuItem jMenuItemBlark1; private javax.swing.JMenuItem jMenuItemBlockLabel; private javax.swing.JMenuItem jMenuItemByteBin; private javax.swing.JMenuItem jMenuItemByteBin1; private javax.swing.JMenuItem jMenuItemByteBin2; private javax.swing.JMenuItem jMenuItemByteChar; private javax.swing.JMenuItem jMenuItemByteChar1; private javax.swing.JMenuItem jMenuItemByteChar2; private javax.swing.JMenuItem jMenuItemByteDec; private javax.swing.JMenuItem jMenuItemByteDec1; private javax.swing.JMenuItem jMenuItemByteDec2; private javax.swing.JMenuItem jMenuItemByteHex; private javax.swing.JMenuItem jMenuItemByteHex1; private javax.swing.JMenuItem jMenuItemByteHex2; private javax.swing.JMenuItem jMenuItemClearDLabel; private javax.swing.JMenuItem jMenuItemClearDMem; private javax.swing.JMenuItem jMenuItemClearUMem; private javax.swing.JMenuItem jMenuItemCloseProject; private javax.swing.JMenuItem jMenuItemCode; private javax.swing.JMenuItem jMenuItemConfigure; private javax.swing.JMenuItem jMenuItemConstant0; private javax.swing.JMenuItem jMenuItemConstant0b; private javax.swing.JMenuItem jMenuItemConstant0b1; private javax.swing.JMenuItem jMenuItemConstant1; private javax.swing.JMenuItem jMenuItemConstant10; private javax.swing.JMenuItem jMenuItemConstant11; private javax.swing.JMenuItem jMenuItemConstant12; private javax.swing.JMenuItem jMenuItemConstant13; private javax.swing.JMenuItem jMenuItemConstant14; private javax.swing.JMenuItem jMenuItemConstant15; private javax.swing.JMenuItem jMenuItemConstant16; private javax.swing.JMenuItem jMenuItemConstant17; private javax.swing.JMenuItem jMenuItemConstant18; private javax.swing.JMenuItem jMenuItemConstant19; private javax.swing.JMenuItem jMenuItemConstant1b; private javax.swing.JMenuItem jMenuItemConstant1b1; private javax.swing.JMenuItem jMenuItemConstant2; private javax.swing.JMenuItem jMenuItemConstant2b; private javax.swing.JMenuItem jMenuItemConstant2b1; private javax.swing.JMenuItem jMenuItemConstant3; private javax.swing.JMenuItem jMenuItemConstant3b; private javax.swing.JMenuItem jMenuItemConstant3b1; private javax.swing.JMenuItem jMenuItemConstant4; private javax.swing.JMenuItem jMenuItemConstant4b; private javax.swing.JMenuItem jMenuItemConstant4b1; private javax.swing.JMenuItem jMenuItemConstant5; private javax.swing.JMenuItem jMenuItemConstant5b; private javax.swing.JMenuItem jMenuItemConstant5b1; private javax.swing.JMenuItem jMenuItemConstant6; private javax.swing.JMenuItem jMenuItemConstant6b; private javax.swing.JMenuItem jMenuItemConstant6b1; private javax.swing.JMenuItem jMenuItemConstant7; private javax.swing.JMenuItem jMenuItemConstant7b; private javax.swing.JMenuItem jMenuItemConstant7b1; private javax.swing.JMenuItem jMenuItemConstant8; private javax.swing.JMenuItem jMenuItemConstant8b; private javax.swing.JMenuItem jMenuItemConstant8b1; private javax.swing.JMenuItem jMenuItemConstant9; private javax.swing.JMenuItem jMenuItemConstant9b; private javax.swing.JMenuItem jMenuItemConstant9b1; private javax.swing.JMenuItem jMenuItemConstantClear; private javax.swing.JMenuItem jMenuItemConstantClear_; private javax.swing.JMenuItem jMenuItemContents; private javax.swing.JMenuItem jMenuItemCopy; private javax.swing.JMenuItem jMenuItemCredits; private javax.swing.JMenuItem jMenuItemData; private javax.swing.JMenuItem jMenuItemDbs; private javax.swing.JMenuItem jMenuItemDbs1; private javax.swing.JMenuItem jMenuItemDiss; private javax.swing.JMenuItem jMenuItemDissSaveAs; private javax.swing.JMenuItem jMenuItemDrago; private javax.swing.JMenuItem jMenuItemDrago1; private javax.swing.JMenuItem jMenuItemEasy; private javax.swing.JMenuItem jMenuItemEasy1; private javax.swing.JMenuItem jMenuItemEve; private javax.swing.JMenuItem jMenuItemEve1; private javax.swing.JMenuItem jMenuItemExit; private javax.swing.JMenuItem jMenuItemExpanded; private javax.swing.JMenuItem jMenuItemExpanded1; private javax.swing.JMenuItem jMenuItemExpandedV20; private javax.swing.JMenuItem jMenuItemExpandedV21; private javax.swing.JMenuItem jMenuItemFinalCart3; private javax.swing.JMenuItem jMenuItemFinalCart4; private javax.swing.JMenuItem jMenuItemFindAddr; private javax.swing.JMenuItem jMenuItemFindDis; private javax.swing.JMenuItem jMenuItemFindSeq; private javax.swing.JMenuItem jMenuItemFindSource; private javax.swing.JMenuItem jMenuItemGame; private javax.swing.JMenuItem jMenuItemGame1; private javax.swing.JMenuItem jMenuItemGarbage; private javax.swing.JMenuItem jMenuItemGraphics; private javax.swing.JMenuItem jMenuItemGraphics1; private javax.swing.JMenuItem jMenuItemHandy; private javax.swing.JMenuItem jMenuItemHandy1; private javax.swing.JMenuItem jMenuItemHex; private javax.swing.JMenuItem jMenuItemImportLabels; private javax.swing.JMenuItem jMenuItemKipper; private javax.swing.JMenuItem jMenuItemKipper1; private javax.swing.JMenuItem jMenuItemLicense; private javax.swing.JMenuItem jMenuItemLightninig; private javax.swing.JMenuItem jMenuItemLightninig1; private javax.swing.JMenuItem jMenuItemLong; private javax.swing.JMenuItem jMenuItemLong1; private javax.swing.JMenuItem jMenuItemLong2; private javax.swing.JMenuItem jMenuItemMPR; private javax.swing.JMenuItem jMenuItemMagic; private javax.swing.JMenuItem jMenuItemMagic1; private javax.swing.JMenuItem jMenuItemMarkCode; private javax.swing.JMenuItem jMenuItemMarkData; private javax.swing.JMenuItem jMenuItemMarkGarbage; private javax.swing.JMenuItem jMenuItemMemBoth; private javax.swing.JMenuItem jMenuItemMemHigh; private javax.swing.JMenuItem jMenuItemMemHighLow; private javax.swing.JMenuItem jMenuItemMemLow; private javax.swing.JMenuItem jMenuItemMemLowHigh; private javax.swing.JMenuItem jMenuItemMinus; private javax.swing.JMenuItem jMenuItemNewProject; private javax.swing.JMenuItem jMenuItemNumText; private javax.swing.JMenuItem jMenuItemNumText1; private javax.swing.JMenuItem jMenuItemNumText2; private javax.swing.JMenuItem jMenuItemOpenProject; private javax.swing.JMenuItem jMenuItemPaste; private javax.swing.JMenuItem jMenuItemPegasus; private javax.swing.JMenuItem jMenuItemPegasus1; private javax.swing.JMenuItem jMenuItemPlus; private javax.swing.JMenuItem jMenuItemRecent1; private javax.swing.JMenuItem jMenuItemRecent2; private javax.swing.JMenuItem jMenuItemRecent3; private javax.swing.JMenuItem jMenuItemRecent4; private javax.swing.JMenuItem jMenuItemRecent5; private javax.swing.JMenuItem jMenuItemRecent6; private javax.swing.JMenuItem jMenuItemRecent7; private javax.swing.JMenuItem jMenuItemRecent8; private javax.swing.JMenuItem jMenuItemRecent9; private javax.swing.JMenuItem jMenuItemRefactorLabels; private javax.swing.JMenuItem jMenuItemReu; private javax.swing.JMenuItem jMenuItemReu1; private javax.swing.JMenuItem jMenuItemSIDLD; private javax.swing.JMenuItem jMenuItemSaveAsAcme; private javax.swing.JMenuItem jMenuItemSaveAsAcme1; private javax.swing.JMenuItem jMenuItemSaveAsCa65; private javax.swing.JMenuItem jMenuItemSaveAsCa66; private javax.swing.JMenuItem jMenuItemSaveAsDasm; private javax.swing.JMenuItem jMenuItemSaveAsDasm1; private javax.swing.JMenuItem jMenuItemSaveAsKickAssembler; private javax.swing.JMenuItem jMenuItemSaveAsKickAssembler1; private javax.swing.JMenuItem jMenuItemSaveAsProject; private javax.swing.JMenuItem jMenuItemSaveAsTass64; private javax.swing.JMenuItem jMenuItemSaveAsTass65; private javax.swing.JMenuItem jMenuItemSaveAsTmpx; private javax.swing.JMenuItem jMenuItemSaveAsTmpx1; private javax.swing.JMenuItem jMenuItemSaveProject; private javax.swing.JMenuItem jMenuItemSidldPlayer; private javax.swing.JMenuItem jMenuItemSimon; private javax.swing.JMenuItem jMenuItemSimon1; private javax.swing.JMenuItem jMenuItemSourceSaveAs; private javax.swing.JMenuItem jMenuItemSpeech; private javax.swing.JMenuItem jMenuItemSpeech1; private javax.swing.JMenuItem jMenuItemSpriteMono; private javax.swing.JMenuItem jMenuItemSpriteMono1; private javax.swing.JMenuItem jMenuItemSpriteMono2; private javax.swing.JMenuItem jMenuItemSpriteMulti; private javax.swing.JMenuItem jMenuItemSpriteMulti1; private javax.swing.JMenuItem jMenuItemSpriteMulti2; private javax.swing.JMenuItem jMenuItemStackWord; private javax.swing.JMenuItem jMenuItemStackWord1; private javax.swing.JMenuItem jMenuItemStackWord2; private javax.swing.JMenuItem jMenuItemSuper; private javax.swing.JMenuItem jMenuItemSuper1; private javax.swing.JMenuItem jMenuItemSuperExpander; private javax.swing.JMenuItem jMenuItemSuperExpander1; private javax.swing.JMenuItem jMenuItemSuperExpanderChip; private javax.swing.JMenuItem jMenuItemSuperExpanderChip1; private javax.swing.JMenuItem jMenuItemText; private javax.swing.JMenuItem jMenuItemText1; private javax.swing.JMenuItem jMenuItemText2; private javax.swing.JMenuItem jMenuItemTextPetascii; private javax.swing.JMenuItem jMenuItemTextPetascii1; private javax.swing.JMenuItem jMenuItemTextPetascii2; private javax.swing.JMenuItem jMenuItemTextScreen; private javax.swing.JMenuItem jMenuItemTextScreen1; private javax.swing.JMenuItem jMenuItemTextScreen2; private javax.swing.JMenuItem jMenuItemTextZero; private javax.swing.JMenuItem jMenuItemTextZero1; private javax.swing.JMenuItem jMenuItemTextZero2; private javax.swing.JMenuItem jMenuItemTool; private javax.swing.JMenuItem jMenuItemTool1; private javax.swing.JMenuItem jMenuItemTribyte; private javax.swing.JMenuItem jMenuItemTribyte1; private javax.swing.JMenuItem jMenuItemTribyte2; private javax.swing.JMenuItem jMenuItemTurtle; private javax.swing.JMenuItem jMenuItemTurtle1; private javax.swing.JMenuItem jMenuItemUltrabasic; private javax.swing.JMenuItem jMenuItemUltrabasic1; private javax.swing.JMenuItem jMenuItemUndo1; private javax.swing.JMenuItem jMenuItemUndo2; private javax.swing.JMenuItem jMenuItemUndo3; private javax.swing.JMenuItem jMenuItemUndo4; private javax.swing.JMenuItem jMenuItemUndo5; private javax.swing.JMenuItem jMenuItemUndo6; private javax.swing.JMenuItem jMenuItemUndo7; private javax.swing.JMenuItem jMenuItemUndo8; private javax.swing.JMenuItem jMenuItemUndo9; private javax.swing.JMenuItem jMenuItemUnmark; private javax.swing.JMenuItem jMenuItemUserLabel; private javax.swing.JMenuItem jMenuItemUserLabelOp; private javax.swing.JMenuItem jMenuItemV4; private javax.swing.JMenuItem jMenuItemV5; private javax.swing.JMenuItem jMenuItemV6; private javax.swing.JMenuItem jMenuItemV7; private javax.swing.JMenuItem jMenuItemV8; private javax.swing.JMenuItem jMenuItemV9; private javax.swing.JMenuItem jMenuItemViewLabels; private javax.swing.JMenuItem jMenuItemViewProject; private javax.swing.JMenuItem jMenuItemWS; private javax.swing.JMenuItem jMenuItemWS1; private javax.swing.JMenuItem jMenuItemWSFinal; private javax.swing.JMenuItem jMenuItemWSFinal1; private javax.swing.JMenuItem jMenuItemWarsaw; private javax.swing.JMenuItem jMenuItemWarsaw1; private javax.swing.JMenuItem jMenuItemWizard; private javax.swing.JMenuItem jMenuItemWord; private javax.swing.JMenuItem jMenuItemWord1; private javax.swing.JMenuItem jMenuItemWord2; private javax.swing.JMenuItem jMenuItemWordSwapped; private javax.swing.JMenuItem jMenuItemWordSwapped1; private javax.swing.JMenuItem jMenuItemWordSwapped2; private javax.swing.JMenuItem jMenuItemXbasic; private javax.swing.JMenuItem jMenuItemXbasic1; private javax.swing.JMenuItem jMenuItemtextHighOne; private javax.swing.JMenuItem jMenuItemtextHighOne1; private javax.swing.JMenuItem jMenuItemtextHighOne2; private javax.swing.JMenuItem jMenuItemtextShifted; private javax.swing.JMenuItem jMenuItemtextShifted1; private javax.swing.JMenuItem jMenuItemtextShifted2; private javax.swing.JMenu jMenuMemory; private javax.swing.JMenu jMenuOption; private javax.swing.JMenu jMenuRecent; private javax.swing.JMenu jMenuSource; private javax.swing.JMenu jMenuSub; private javax.swing.JMenu jMenuUndo; private javax.swing.JPanel jPanelLeft; private sw_emulator.swing.JPanelPerc jPanelPerc; private javax.swing.JPanel jPanelRight; private javax.swing.JPanel jPanelToolBar; private javax.swing.JPopupMenu jPopupMenuConstant; private javax.swing.JPopupMenu jPopupMenuData; private javax.swing.JPopupMenu jPopupMenuMemory; private javax.swing.JPopupMenu jPopupMenuSaveAs; private javax.swing.JScrollPane jScrollPaneLeft; protected javax.swing.JScrollPane jScrollPaneLeftMin; private javax.swing.JScrollPane jScrollPaneMemory; private javax.swing.JScrollPane jScrollPaneRight; protected javax.swing.JScrollPane jScrollPaneRightMin; private javax.swing.JPopupMenu.Separator jSeparator1; private javax.swing.JPopupMenu.Separator jSeparator2; private javax.swing.JPopupMenu.Separator jSeparator3; private javax.swing.JPopupMenu.Separator jSeparator4; private javax.swing.JPopupMenu.Separator jSeparator5; private javax.swing.JPopupMenu.Separator jSeparator6; private javax.swing.JPopupMenu.Separator jSeparator7; private javax.swing.JPopupMenu.Separator jSeparatorByte; private javax.swing.JPopupMenu.Separator jSeparatorByte1; private javax.swing.JPopupMenu.Separator jSeparatorByte2; private javax.swing.JPopupMenu.Separator jSeparatorConstant; private javax.swing.JPopupMenu.Separator jSeparatorConstant2; private javax.swing.JPopupMenu.Separator jSeparatorConstant3; private javax.swing.JPopupMenu.Separator jSeparatorConstant4; private javax.swing.JPopupMenu.Separator jSeparatorHelp1; private javax.swing.JPopupMenu.Separator jSeparatorHelp2; private javax.swing.JPopupMenu.Separator jSeparatorHelp3; private javax.swing.JPopupMenu.Separator jSeparatorMem1; private javax.swing.JPopupMenu.Separator jSeparatorMem2; private javax.swing.JPopupMenu.Separator jSeparatorMem3; private javax.swing.JPopupMenu.Separator jSeparatorOption; private javax.swing.JPopupMenu.Separator jSeparatorPopUpMenu0; private javax.swing.JPopupMenu.Separator jSeparatorPopUpMenu1; private javax.swing.JPopupMenu.Separator jSeparatorPopUpMenu2; private javax.swing.JPopupMenu.Separator jSeparatorPopUpMenu3; private javax.swing.JPopupMenu.Separator jSeparatorProject1; private javax.swing.JPopupMenu.Separator jSeparatorProject2; private javax.swing.JPopupMenu.Separator jSeparatorProject3; private javax.swing.JPopupMenu.Separator jSeparatorSprite; private javax.swing.JPopupMenu.Separator jSeparatorSprite1; private javax.swing.JPopupMenu.Separator jSeparatorSprite2; private javax.swing.JPopupMenu.Separator jSeparatorStandard; private javax.swing.JPopupMenu.Separator jSeparatorStandard1; private javax.swing.JPopupMenu.Separator jSeparatorV128; private javax.swing.JPopupMenu.Separator jSeparatorV129; private javax.swing.JPopupMenu.Separator jSeparatorV2; private javax.swing.JPopupMenu.Separator jSeparatorV20; private javax.swing.JPopupMenu.Separator jSeparatorV21; private javax.swing.JPopupMenu.Separator jSeparatorV3; private javax.swing.JPopupMenu.Separator jSeparatorWord; private javax.swing.JPopupMenu.Separator jSeparatorWord1; private javax.swing.JPopupMenu.Separator jSeparatorWord2; private javax.swing.JSplitPane jSplitPaneExternal; private javax.swing.JSplitPane jSplitPaneInternal; private javax.swing.JMenu jSubMenu; private javax.swing.JMenu jSubMenuC; private javax.swing.JTable jTableMemory; private javax.swing.JToolBar jToolBarFile; private javax.swing.JToolBar jToolBarMemory; private javax.swing.JToolBar jToolBarOption; private javax.swing.JToolBar jToolBarPerc; private javax.swing.JToolBar jToolBarPerformance; private javax.swing.JToolBar jToolBarSource; private org.fife.ui.rsyntaxtextarea.RSyntaxTextArea rSyntaxTextAreaDis; protected org.fife.ui.rsyntaxtextarea.RSyntaxTextArea rSyntaxTextAreaDisMin; private org.fife.ui.rsyntaxtextarea.RSyntaxTextArea rSyntaxTextAreaSource; protected org.fife.ui.rsyntaxtextarea.RSyntaxTextArea rSyntaxTextAreaSourceMin; // End of variables declaration//GEN-END:variables @Override public void execute(int type) { switch (type) { case PROJ_NEW: projectNew(); break; case PROJ_CLOSE: projectClose(); break; case PROJ_OPEN: projectOpen(); break; case PROJ_RECENT: recentFile(); break; case PROJ_SAVE: projectSave(); break; case PROJ_SAVEAS: projectSaveAs(); break; case PROJ_MERGE: projectMerge(); break; case OPTION_CONFIGURE: jOptionDialog.setVisible(true); break; case OPTION_VIEWPRJ: projectView(); break; case OPTION_SIDLD: optionSIDLD(); break; case OPTION_MPR: optionMPR(); break; case OPTION_LABELS: optionLabels(); break; case SOURCE_DISASS: disassembly(true); break; case SOURCE_ASS: assembly(); break; case SOURCE_EXPASDIS: exportAs(rSyntaxTextAreaDis.getText()); break; case SOURCE_EXPASSOURCE: exportAs(rSyntaxTextAreaSource.getText()); break; case SOURCE_FINDA: findAddress(); break; case SOURCE_FINDX: findSeqHex(); break; case SOURCE_FINDD: findDialogDis.setVisible(true); break; case SOURCE_FINDS: findDialogSource.setVisible(true); break; case SOURCE_FREEZE: if (project==null) { JOptionPane.showMessageDialog(this, "Needs an active project for this function"); return; } jFreezeFrame.setup(project, disassembly, option); jFreezeFrame.setVisible(true); break; case APP_EXIT: exit(); break; case MEM_CLEARDCOM: clearDasmComment(); if (option.forceCompilation) disassembly(true); break; case MEM_CLEARUCOM: clearUserComment(); if (option.forceCompilation) disassembly(true); break; case MEM_ADDCOMM: addComment(); if (option.forceCompilation) disassembly(true); break; case MEM_ADDLABEL: addLabel(); if (option.forceCompilation) disassembly(true); break; case MEM_ADDLABELOP: addLabelOp(); if (option.forceCompilation) disassembly(true); break; case MEM_MARKCODE: markAsCode(); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA: markAsData(DataType.NONE); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_B: markAsData(DataType.BYTE_HEX); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_D: markAsData(DataType.BYTE_DEC); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_Y: markAsData(DataType.BYTE_BIN); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_R: markAsData(DataType.BYTE_CHAR); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_W: markAsData(DataType.WORD); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_P: markAsData(DataType.SWAPPED); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_E: markAsData(DataType.TRIBYTE); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_L: markAsData(DataType.LONG); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_A: markAsData(DataType.ADDRESS); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_S: markAsData(DataType.STACK); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_T: markAsData(DataType.TEXT); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_N: markAsData(DataType.NUM_TEXT); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_Z: markAsData(DataType.ZERO_TEXT); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_M: markAsData(DataType.HIGH_TEXT); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_H: markAsData(DataType.SHIFT_TEXT); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_C: markAsData(DataType.SCREEN_TEXT); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_I: markAsData(DataType.PETASCII_TEXT); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_O: markAsData(DataType.MONO_SPRITE); if (option.forceCompilation) disassembly(true); break; case MEM_MARKDATA_F: markAsData(DataType.MULTI_SPRITE); if (option.forceCompilation) disassembly(true); break; case MEM_MARKGARB: markAsGarbage(); if (option.forceCompilation) disassembly(true); break; case MEM_UNMARK: unmark(); if (option.forceCompilation) disassembly(true); break; case MEM_ADDBLOCK: addBlock(); if (option.forceCompilation) disassembly(true); break; case MEM_CLEARDLABEL: clearDLabel(); if (option.forceCompilation) disassembly(true); break; case MEM_LOW: memLow(); if (option.forceCompilation) disassembly(true); break; case MEM_LOWHIGH: memLowHigh(); if (option.forceCompilation) disassembly(true); break; case MEM_BOTH: memAutoLoHi(); if (option.forceCompilation) disassembly(true); break; case MEM_HIGHLOW: memHighLow(); if (option.forceCompilation) disassembly(true); break; case MEM_HIGH: memHigh(); if (option.forceCompilation) disassembly(true); break; case MEM_PLUS: memPlus(); if (option.forceCompilation) disassembly(true); break; case MEM_MINUS: memMinus(); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_0: subAssign(0); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_1: subAssign(1); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_2: subAssign(2); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_3: subAssign(3); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_4: subAssign(4); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_5: subAssign(5); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_6: subAssign(6); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_7: subAssign(7); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_8: subAssign(8); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_9: subAssign(9); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_10: subAssign(10); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_11: subAssign(11); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_12: subAssign(12); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_13: subAssign(13); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_14: subAssign(14); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_15: subAssign(15); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_16: subAssign(16); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_17: subAssign(17); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_18: subAssign(18); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_19: subAssign(19); if (option.forceCompilation) disassembly(true); break; case MEM_SUB_CLEAR: subAssign(-1); if (option.forceCompilation) disassembly(true); break; case MEM_WIZARD: wizard(); if (option.forceCompilation) disassembly(true); break; case MEM_HEX: showHex(); case MEM_BLOCKLABELS: createBlockLabels(); break; case MEM_BASIC_NONE: markAsBasicData(BasicType.NONE); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_V2_0: markAsBasicData(BasicType.BASIC_V2_0); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_V3_5: markAsBasicData(BasicType.BASIC_V3_5); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_V4_0: markAsBasicData(BasicType.BASIC_V4_0); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_V7_0: markAsBasicData(BasicType.BASIC_V7_0); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_SIMON: markAsBasicData(BasicType.BASIC_SIMON); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_ANDRE_FACHAT: markAsBasicData(BasicType.BASIC_ANDRE_FACHAT); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_SPEECH: markAsBasicData(BasicType.BASIC_SPEECH); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_FINAL_CART3: markAsBasicData(BasicType.BASIC_FINAL_CART3); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_ULTRABASIC: markAsBasicData(BasicType.BASIC_ULTRABASIC); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_GRAPHICS: markAsBasicData(BasicType.BASIC_GRAPHICS); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_WS: markAsBasicData(BasicType.BASIC_WS); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_PEGASUS: markAsBasicData(BasicType.BASIC_PEGASUS); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_XBASIC: markAsBasicData(BasicType.BASIC_XBASIC); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_DRAGO: markAsBasicData(BasicType.BASIC_DRAGO); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_REU: markAsBasicData(BasicType.BASIC_REU); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_LIGHTNING: markAsBasicData(BasicType.BASIC_LIGHTNING); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_MAGIC: markAsBasicData(BasicType.BASIC_MAGIC); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_BLARG: markAsBasicData(BasicType.BASIC_BLARG); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_WS_FINAL: markAsBasicData(BasicType.BASIC_WS_FINAL); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_GAME: markAsBasicData(BasicType.BASIC_GAME); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_BASEX: markAsBasicData(BasicType.BASIC_BASEX); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_SUPER: markAsBasicData(BasicType.BASIC_SUPER); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_EXPANDED: markAsBasicData(BasicType.BASIC_EXPANDED); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_SUPER_EXPANDER_CHIP: markAsBasicData(BasicType.BASIC_SUPER_EXPANDER_CHIP); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_WARSAW: markAsBasicData(BasicType.BASIC_WARSAW); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_DBS: markAsBasicData(BasicType.BASIC_DBS); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_KIPPER: markAsBasicData(BasicType.BASIC_KIPPER); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_BAILS: markAsBasicData(BasicType.BASIC_BAILS); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_EVE: markAsBasicData(BasicType.BASIC_EVE); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_TOOL: markAsBasicData(BasicType.BASIC_TOOL); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_SUPER_EXPANDER: markAsBasicData(BasicType.BASIC_SUPER_EXPANDER); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_TURTLE: markAsBasicData(BasicType.BASIC_TURTLE); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_EASY: markAsBasicData(BasicType.BASIC_EASY); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_V4: markAsBasicData(BasicType.BASIC_V4); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_V5: markAsBasicData(BasicType.BASIC_V5); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_EXPANDED_V20: markAsBasicData(BasicType.BASIC_EXPANDED_V20); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_HANDY: markAsBasicData(BasicType.BASIC_HANDY); if (option.forceCompilation) disassembly(true); break; case MEM_BASIC_V8: markAsBasicData(BasicType.BASIC_V8); if (option.forceCompilation) disassembly(true); break; case SOURCE_DASM: export(Name.DASM); break; case SOURCE_TMPX: export(Name.TMPX); break; case SOURCE_CA65: export(Name.CA65); break; case SOURCE_ACME: export(Name.ACME); break; case SOURCE_KICK: export(Name.KICK); break; case SOURCE_TASS64: export(Name.TASS64); break; case HELP_CONTENTS: jHelpFrame.setVisible(true); break; case HELP_LICENSE: jLicenseDialog.setVisible(true); break; case HELP_CREDITS: jCreditsDialog.setVisible(true); break; case HELP_ABOUT: jAboutDialog.setVisible(true); break; case HELP_IMPORT: importLabels(); if (option.forceCompilation) disassembly(true); break; case HELP_REFACTOR: refactor(); if (option.forceCompilation) disassembly(true); break; case HELP_CLEARLAB: clearLab(); if (option.forceCompilation) disassembly(true); break; case HELP_CLEARCOM: clearCom(); if (option.forceCompilation) disassembly(true); break; case HELP_UNDO: undo(); break; case APP_COPY: appCopy(); break; case APP_PASTE: appPaste(); if (option.forceCompilation) disassembly(true); break; } } /** * Project new user action */ private void projectNew() { if (project != null && !project.equals(savedProject)) { int input = JOptionPane.showConfirmDialog(this, "Project not saved. Save it? (No=not save it)", "Information", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE); if (input==JOptionPane.CANCEL_OPTION) return; else if (input==JOptionPane.OK_OPTION) projectSave(); } project=new Project(); savedProject=project.clone(); projectFile=null; jProjectDialog.setUp(project); jProjectDialog.setVisible(true); setTitle("JC64dis (<new>)"); jPanelPerc.setPerc(-1); if (project.file==null || "".equals(project.file)) { project=null; savedProject=null; rSyntaxTextAreaSource.setText(""); rSyntaxTextAreaDis.setText(""); rSyntaxTextAreaDisMin.setText(""); rSyntaxTextAreaSourceMin.setText(""); dataTableModelMemory.setData(null); dataTableModelMemory.fireTableDataChanged(); } else { dataTableModelMemory.setData(project.memory); dataTableModelMemory.fireTableDataChanged(); execute(SOURCE_DISASS); } } /** * Project close user action */ private void projectClose() { if (project == null) return; if (!project.equals(savedProject)) { int input = JOptionPane.showConfirmDialog(this, "Project not saved. Save it? (No=not save it)", "Information", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE); if (input==JOptionPane.CANCEL_OPTION) return; else if (input==JOptionPane.OK_OPTION) projectSave(); } undo.clear(); // clearLab all previous undo action setTitle("JC64dis"); project=null; savedProject=null; projectFile=null; rSyntaxTextAreaSource.setText(""); rSyntaxTextAreaDis.setText(""); rSyntaxTextAreaDisMin.setText(""); rSyntaxTextAreaSourceMin.setText(""); dataTableModelMemory.setData(null); dataTableModelMemory.fireTableDataChanged(); jPanelPerc.setPerc(-1); } /** * Project open user action */ private void projectOpen() { if (project != null && !project.equals(savedProject)) { int input = JOptionPane.showConfirmDialog(this, "Project not saved. Save it? (No=not save it)", "Information", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE); if (input==JOptionPane.CANCEL_OPTION) return; else if (input==JOptionPane.OK_OPTION) projectSave(); } int retVal=projectChooserFile.showOpenDialog(this); if (retVal == JFileChooser.APPROVE_OPTION) { projectFile=projectChooserFile.getSelectedFile(); m_prefNode.put(LAST_DIR_PROJECT, projectFile.getPath()); project=new Project(); setTitle("JC64dis ("+projectFile.getName()+")"); if (!FileManager.instance.readProjectFile(projectFile , project)) { JOptionPane.showMessageDialog(this, "Error reading project file", "Error", JOptionPane.ERROR_MESSAGE); } else { if (option.pedantic) JOptionPane.showMessageDialog(this, "File read", "Information", JOptionPane.INFORMATION_MESSAGE); execute(SOURCE_DISASS); } savedProject=project.clone(); dataTableModelMemory.setData(project.memory); dataTableModelMemory.fireTableDataChanged(); } } /** * Project save user action */ private void projectSave() { if (project==null) { JOptionPane.showMessageDialog(this, "There is nothing to save", "Information", JOptionPane.INFORMATION_MESSAGE); } else { if (projectFile==null) execute (PROJ_SAVEAS); else { if (!FileManager.instance.writeProjectFile(projectFile , project)) { JOptionPane.showMessageDialog(this, "Error writing project file", "Error", JOptionPane.ERROR_MESSAGE); } else { if (option.pedantic) JOptionPane.showMessageDialog(this, "File saved", "Information", JOptionPane.INFORMATION_MESSAGE); savedProject=project.clone(); } recentFile.push(projectFile.getPath()); } } } /** * Project save as user action */ private void projectSaveAs() { if (project==null) { JOptionPane.showMessageDialog(this, "There is nothing to save", "Information", JOptionPane.INFORMATION_MESSAGE); } else { int retVal=projectChooserFile.showSaveDialog(this); if (retVal == JFileChooser.APPROVE_OPTION) { projectFile=projectChooserFile.getSelectedFile(); if (!projectFile.getName().toLowerCase().endsWith(".dis")) { try { projectFile = new File(projectFile.getCanonicalPath() +".dis"); } catch (Exception e) { System.err.println(e); } } m_prefNode.put(LAST_DIR_PROJECT, projectFile.getPath()); projectChooserFile.setCurrentDirectory(new File(m_prefNode.get(LAST_DIR_PROJECT, ""))); setTitle("JC64dis ("+projectFile.getName()+")"); if (!FileManager.instance.writeProjectFile(projectFile , project)) { JOptionPane.showMessageDialog(this, "Error writing project file", "Error", JOptionPane.ERROR_MESSAGE); } else { if (option.pedantic) JOptionPane.showMessageDialog(this, "File saved", "Information", JOptionPane.INFORMATION_MESSAGE); savedProject=project.clone(); } recentFile.push(projectFile.getPath()); } } } /** * Project view user action */ private void projectView() { if (project==null) { JOptionPane.showMessageDialog(this, "No project are actually being used.", "Warning", JOptionPane.WARNING_MESSAGE); } else { jProjectDialog.setUp(project); jProjectDialog.setVisible(true); dataTableModelMemory.setData(project.memory); dataTableModelMemory.fireTableDataChanged(); execute(SOURCE_DISASS); } } /** * Export as of the select text * * @param text the text to export */ private void exportAs(String text) { File file; if (text==null || "".equals(text)) { JOptionPane.showMessageDialog(this, "There is nothing to save", "Information", JOptionPane.INFORMATION_MESSAGE); } else { int retVal=exportAsChooserFile.showSaveDialog(this); if (retVal == JFileChooser.APPROVE_OPTION) { file=exportAsChooserFile.getSelectedFile(); if (!FileManager.instance.writeTxtFile(file , text)) { JOptionPane.showMessageDialog(this, "Error writing txt file", "Error", JOptionPane.ERROR_MESSAGE); } else { if (option.pedantic) JOptionPane.showMessageDialog(this, "File saved", "Information", JOptionPane.INFORMATION_MESSAGE); } } } } /** * Exit from program */ private void exit() { if (project != null && !project.equals(savedProject)) { int input = JOptionPane.showConfirmDialog(this, "Project not saved. Save it? (No=not save it)", "Information", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE); if (input==JOptionPane.CANCEL_OPTION) return; if (input==JOptionPane.OK_OPTION) projectSave(); System.exit(0); } else System.exit(0); } /** * Clear the dasm label by adding a user null label */ private void clearDasmComment() { MemoryDasm mem; int rows[]=jTableMemory.getSelectedRows(); for (int i=0; i<rows.length; i++) { mem=project.memory[rows[i]]; // in data no automatic comments are added, so we can erase it directly if (mem.isData && mem.dasmComment!=null) { mem.dasmComment=null; // for compatibility, we erase a user "" comment if ("".equals(mem.userComment)) mem.userComment=null; } else if (mem.dasmComment!=null && mem.userComment==null) mem.userComment=""; } dataTableModelMemory.fireTableDataChanged(); jTableMemory.clearSelection(); for (int i=0; i<rows.length; i++) { jTableMemory.addRowSelectionInterval(rows[i], rows[i]); } } /** * Clear the dasm label by adding a user null label */ private void clearUserComment() { MemoryDasm mem; int rows[]=jTableMemory.getSelectedRows(); for (int i=0; i<rows.length; i++) { mem= project.memory[rows[i]]; if (mem.userComment!=null) mem.userComment=null; } dataTableModelMemory.fireTableDataChanged(); jTableMemory.clearSelection(); for (int i=0; i<rows.length; i++) { jTableMemory.addRowSelectionInterval(rows[i], rows[i]); } } /** * Un-mark user selection */ private void unmark() { MemoryDasm mem; int rows[]=jTableMemory.getSelectedRows(); for (int i=0; i<rows.length; i++) { mem= project.memory[rows[i]]; mem.isCode=false; mem.isData=false; mem.isGarbage=false; mem.dataType=DataType.NONE; } dataTableModelMemory.fireTableDataChanged(); jTableMemory.clearSelection(); for (int i=0; i<rows.length; i++) { jTableMemory.addRowSelectionInterval(rows[i], rows[i]); } } /** * Mark user selection as code */ private void markAsCode() { MemoryDasm mem; int rows[]=jTableMemory.getSelectedRows(); for (int i=0; i<rows.length; i++) { mem= project.memory[rows[i]]; mem.isCode=true; mem.isData=false; mem.isGarbage=false; mem.dataType=DataType.NONE; } dataTableModelMemory.fireTableDataChanged(); jTableMemory.clearSelection(); for (int i=0; i<rows.length; i++) { jTableMemory.addRowSelectionInterval(rows[i], rows[i]); } } /** * Mark user selection as data * * @param dataType the type of date */ private void markAsData(DataType dataType) { MemoryDasm mem; int rows[]=jTableMemory.getSelectedRows(); switch (dataType) { case ZERO_TEXT: if (rows.length<=1) { JOptionPane.showMessageDialog(this, "Too few elements", "Warning", JOptionPane.WARNING_MESSAGE); break; } // we must find area that terminate with a 0 int pos; boolean fount=false; for (pos=1; pos<rows.length; pos++) { if (project.memory[rows[pos]].copy==0) { fount=true; break; } } // look if the area is crossing a zero terminated one if (!fount && rows[pos-1]<0xFFFF && project.memory[rows[pos-1]+1].dataType==DataType.ZERO_TEXT) { pos--; fount=true; } if (fount) { int lastRow=rows[pos]; for (int i=pos; i>=0; i--) { if (lastRow-rows[i]>1) break; lastRow=rows[i]; setMem(project.memory[rows[i]], dataType, rows[i]); } pos++; while (pos>0 && pos<rows.length) { pos=searchMoreZero(rows, pos); } } else JOptionPane.showMessageDialog(this, "This area is not zero terminated", "Warning", JOptionPane.WARNING_MESSAGE); break; case NUM_TEXT: if (rows.length==0) break; boolean over=false; boolean few=false; int num=project.memory[rows[0]].copy; if (num>=rows.length) few=true; if (project.memory[rows[0]].dataType==DataType.NUM_TEXT) over=true; int lastRow=rows[0]; if (num>0 && !few) { for (pos=1; pos<num; pos++) { if (project.memory[rows[pos]].dataType==DataType.NUM_TEXT) { over=true; break; } if (rows[pos]-lastRow>1) { few=true; break; } lastRow=rows[pos]; } } else pos=0; if (over) { JOptionPane.showMessageDialog(this, "Overlapping area for text definition", "Warning", JOptionPane.WARNING_MESSAGE); break; } if (few) { JOptionPane.showMessageDialog(this, "Too few elements for a string of "+num+" chars", "Warning", JOptionPane.WARNING_MESSAGE); break; } if (pos>0) { for (int i=0; i<=pos; i++) { setMem(project.memory[rows[i]], dataType, rows[i]); } } break; case HIGH_TEXT: if (rows.length<=1) { JOptionPane.showMessageDialog(this, "Too few elements", "Warning", JOptionPane.WARNING_MESSAGE); break; } if ((project.memory[rows[0]].copy & 0x80)!=0) { JOptionPane.showMessageDialog(this, "Area can not start with high bit", "Warning", JOptionPane.WARNING_MESSAGE); break; } fount=false; for (pos=1; pos<rows.length; pos++) { if ((project.memory[rows[pos]].copy & 0x80)!=0) { fount=true; break; } } // look if the area is crossing a high terminated one if (!fount && rows[pos-1]<0xFFFF && project.memory[rows[pos-1]+1].dataType==DataType.HIGH_TEXT) { pos--; fount=true; } if (fount) { lastRow=rows[pos]; for (int i=pos; i>=0; i--) { if (lastRow-rows[i]>1) break; lastRow=rows[i]; setMem(project.memory[rows[i]], dataType, rows[i]); } } else JOptionPane.showMessageDialog(this, "This area is not high bit terminated", "Warning", JOptionPane.WARNING_MESSAGE); break; case SHIFT_TEXT: // we must find area that are not with bit 0 at 1 for (pos=0; pos<rows.length; pos++) { if ((project.memory[rows[pos]].copy & 0x01)!=0) break; } if (pos==0) { JOptionPane.showMessageDialog(this, "This area start with wrong low bit", "Warning", JOptionPane.WARNING_MESSAGE); } else { lastRow=rows[pos-1]; for (int i=pos-1; i>=0; i--) { if (lastRow-rows[i]>1) break; lastRow=rows[i]; setMem(project.memory[rows[i]], dataType, rows[i]); } } break; default: for (int i=0; i<rows.length; i++) { setMem(project.memory[rows[i]], dataType, rows[i]); } break; } dataTableModelMemory.fireTableDataChanged(); jTableMemory.clearSelection(); for (int i=0; i<rows.length; i++) { jTableMemory.addRowSelectionInterval(rows[i], rows[i]); } } /** * Mark user selection as basic type data * * @param basicType the type of basic data */ private void markAsBasicData(BasicType basicType) { MemoryDasm mem; int rows[]=jTableMemory.getSelectedRows(); for (int i=0; i<rows.length; i++) { mem=project.memory[rows[i]]; mem.basicType=basicType; mem.isData=true; mem.isCode=false; mem.isGarbage=false; // force byte data type if (mem.dataType!=DataType.BYTE_BIN && mem.dataType!=DataType.BYTE_CHAR && mem.dataType!=DataType.BYTE_DEC && mem.dataType!=DataType.BYTE_HEX) mem.dataType=DataType.BYTE_HEX; jTableMemory.addRowSelectionInterval(rows[i], rows[i]); } } /** * Search for more zero text area * @param rows the rows selected * @param initial the initial position * @return the found position or -1 */ private int searchMoreZero(int rows[], int initial) { boolean fount=false; int pos; for (pos=initial; pos<rows.length; pos++) { if (project.memory[rows[pos]].copy==0) { fount=true; break; } } // look if the area is crossing a zero terminated one if (!fount && rows[pos-1]<0xFFFF && project.memory[rows[pos-1]+1].dataType==DataType.ZERO_TEXT) { pos--; fount=true; } if (fount) { int lastRow=rows[pos]; for (int i=pos; i>=0; i--) { if (lastRow-rows[i]>1) break; lastRow=rows[i]; setMem(project.memory[rows[i]], DataType.ZERO_TEXT, rows[i]); } return pos+1; } else return -1; } /** * Set the memory with the given type * * @param mem the memory location to set * @param dataType the new datatype to set * @param pos the position where it is in memory */ private void setMem(MemoryDasm mem, DataType dataType, int pos) { mem.isData=true; mem.isCode=false; mem.isGarbage=false; if (mem.dataType!=dataType && mem.dataType==DataType.ZERO_TEXT) removeBelowType(pos, DataType.ZERO_TEXT); if (mem.dataType!=dataType && mem.dataType==DataType.NUM_TEXT) removeType(pos, DataType.NUM_TEXT); if (mem.dataType!=dataType && mem.dataType==DataType.HIGH_TEXT) removeBelowType(pos, DataType.HIGH_TEXT); mem.dataType=dataType; if (option.eraseDComm) mem.dasmComment=null; if (option.erasePlus) { switch (mem.type) { case TYPE_PLUS: case TYPE_MINUS: mem.related=-1; mem.type=TYPE_EMPTY; break; case TYPE_PLUS_MAJOR: case TYPE_MINUS_MAJOR: mem.related&=0xFFFF; mem.type=TYPE_MAJOR; break; case TYPE_PLUS_MINOR: case TYPE_MINUS_MINOR: mem.related&=0xFFFF; mem.type=TYPE_MINOR; break; } } } /** * Remove text type that are below this point * * @param pos the position * @param type the type to remove */ private void removeBelowType(int pos, DataType type) { if (pos==0) return; for (int i=pos-1; i>=0; i--) { if (project.memory[i].dataType==DataType.ZERO_TEXT && project.memory[i].copy==0 ) break; if (project.memory[i].dataType==type) project.memory[i].dataType=DataType.NONE; else break; } } /** * Remove text type that are above or below this point * * @param pos the position * @param type the type to remove */ private void removeType(int pos, DataType type) { if (pos==0) return; for (int i=pos-1; i>=0; i--) { if (project.memory[i].dataType==type) project.memory[i].dataType=DataType.NONE; else break; } if (pos==0xFFFF) return; for (int i=pos+1; i<0xFFFF; i++) { if (project.memory[i].dataType==type) project.memory[i].dataType=DataType.NONE; else break; } } /** * Mark user selection as garbage */ private void markAsGarbage() { MemoryDasm mem; int rows[]=jTableMemory.getSelectedRows(); for (int i=0; i<rows.length; i++) { mem= project.memory[rows[i]]; mem.isData=false; mem.isCode=false; mem.isGarbage=true; mem.dasmLocation=null; if (option.eraseDComm) mem.dasmComment=null; if (option.erasePlus) { switch (mem.type) { case TYPE_PLUS: case TYPE_MINUS: mem.related=-1; mem.type=TYPE_EMPTY; break; case TYPE_PLUS_MAJOR: case TYPE_MINUS_MAJOR: mem.related&=0xFFFF; mem.type=TYPE_MAJOR; break; case TYPE_PLUS_MINOR: case TYPE_MINUS_MINOR: mem.related&=0xFFFF; mem.type=TYPE_MINOR; break; } } } dataTableModelMemory.fireTableDataChanged(); jTableMemory.clearSelection(); for (int i=0; i<rows.length; i++) { jTableMemory.addRowSelectionInterval(rows[i], rows[i]); } } /** * Apply SIDLD flags to memory */ private void optionSIDLD() { if (project==null) { JOptionPane.showMessageDialog(this, "No project are actually being used.", "Warning", JOptionPane.WARNING_MESSAGE); } else { int res=JOptionPane.showConfirmDialog(this, "Confirm to apply SIDLD memory flags to code/data in table?", "Information", JOptionPane.YES_NO_OPTION); if (res == JFileChooser.APPROVE_OPTION) { for (int i=0; i<project.memoryFlags.length; i++) { project.memory[i].isData = (project.memoryFlags[i] & (memoryState.MEM_READ | memoryState.MEM_READ_FIRST | memoryState.MEM_WRITE | memoryState.MEM_WRITE_FIRST | memoryState.MEM_SAMPLE)) !=0; project.memory[i].isCode = (project.memoryFlags[i] & (memoryState.MEM_EXECUTE | memoryState.MEM_EXECUTE_FIRST)) !=0; // code execution has priority over data access if (project.memory[i].isCode) project.memory[i].isData=false; } if (option.pedantic) JOptionPane.showMessageDialog(this, "Operation done.", "Info", JOptionPane.INFORMATION_MESSAGE); dataTableModelMemory.fireTableDataChanged(); } } } /** * MPR create option */ private void optionMPR() { JOptionPane.showMessageDialog(this,"A MPR is a group of PRG files saved together\n"+ "Selelect all PRG the files with a multi selection (use CTRL+click) in the next dialog\n"+ "Then you had to choose the output MPR file name in the last dialog", "Create a multi PRG archive", JOptionPane.INFORMATION_MESSAGE); optionMPRLoadChooserFile.showOpenDialog(this); File[] files = optionMPRLoadChooserFile.getSelectedFiles(); if (files.length==0) { JOptionPane.showMessageDialog(this,"Aborting creation due to not files selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } MPR mpr=new MPR(); if (!mpr.setElements(files)) { JOptionPane.showMessageDialog(this,"I/O error in reading the files", "Error", JOptionPane.ERROR_MESSAGE); return; } if (optionMPRSaveChooserFile.showSaveDialog(this)==JFileChooser.APPROVE_OPTION) { if (!mpr.saveFile(optionMPRSaveChooserFile.getSelectedFile())) { JOptionPane.showMessageDialog(this,"Error saving the file", "Error", JOptionPane.ERROR_MESSAGE); return; } } else { JOptionPane.showMessageDialog(this,"No file selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } if (option.pedantic) JOptionPane.showMessageDialog(this, mpr.getDescription(), "Information on saved file", JOptionPane.INFORMATION_MESSAGE); } /** * Option for show labels */ private void optionLabels() { if (project==null) { JOptionPane.showMessageDialog(this,"No project. Open a project first", "Warning", JOptionPane.WARNING_MESSAGE); return; } jLabelsDialog.setUp(project.memory, jTableMemory, rSyntaxTextAreaDis, project); jLabelsDialog.setVisible(true); } /** * Use font size in option */ private void useFont() { Font font; font=rSyntaxTextAreaDis.getFont(); if (font.getSize() != option.sizePreviewFont) rSyntaxTextAreaDis.setFont(font.deriveFont(font.getStyle(), option.sizePreviewFont)); font=rSyntaxTextAreaSource.getFont(); if (font.getSize() != option.sizeSourceFont) rSyntaxTextAreaSource.setFont(font.deriveFont(font.getStyle(), option.sizeSourceFont)); } /** * Disassembly the memory * * @param storeUndo true if we store for the undo the compiled project */ private void disassembly(boolean storeUndo) { useFont(); if (project==null) { disassembly.source=""; disassembly.disassembly=""; } else { disassembly.dissassembly(project.fileType, project.inB, option, project.memory, project.constant, project.mpr, project.relocates, project.patches, project.chip, project.binAddress, project.targetType, false); disassembly.dissassembly(project.fileType, project.inB, option, project.memory, project.constant, project.mpr, project.relocates, project.patches, project.chip, project.binAddress, project.targetType, true); } int lineS=0; int lineD=0; try { lineS=rSyntaxTextAreaSource.getLineOfOffset(rSyntaxTextAreaSource.getCaretPosition()); lineD=rSyntaxTextAreaDis.getLineOfOffset(rSyntaxTextAreaDis.getCaretPosition()); } catch (BadLocationException ex) { System.err.println(ex); } rSyntaxTextAreaSource.setText(disassembly.source); if (option.showMiniature) rSyntaxTextAreaSourceMin.setText(disassembly.source); else rSyntaxTextAreaSourceMin.setText(""); try { rSyntaxTextAreaSource.setCaretPosition(rSyntaxTextAreaSource.getDocument() .getDefaultRootElement().getElement(lineS) .getStartOffset()); rSyntaxTextAreaSource.requestFocusInWindow(); } catch (Exception ex) { System.err.println(ex); } rSyntaxTextAreaDis.setText(disassembly.disassembly); if (option.showMiniature) rSyntaxTextAreaDisMin.setText(disassembly.disassembly); else rSyntaxTextAreaDisMin.setText(""); try { rSyntaxTextAreaDis.setCaretPosition(rSyntaxTextAreaDis.getDocument() .getDefaultRootElement().getElement(lineD) .getStartOffset()); rSyntaxTextAreaDis.requestFocusInWindow(); } catch (Exception ex) { System.err.println(ex); } memoryTableCellRenderer.setDisassembly(disassembly); // repositionate in memory if option is on if (option.repositionate) gotoMem(rSyntaxTextAreaDis, disassembly.caretsPreview, 0); DateFormat df = new SimpleDateFormat("dd/MM/yy HH:mm:ss"); if (storeUndo) undo.store(df.format(new Date()), project); // update perc based onto the work done by renaming the labels int total=0; int done=0; for (MemoryDasm mem:project.memory) { if (!mem.isInside || mem.isGarbage) continue; // look for relative locations if (mem.type==TYPE_PLUS || mem.type==TYPE_MINUS) { MemoryDasm memr=project.memory[mem.related]; if (memr.userLocation!=null && !"".equals(memr.userLocation)) { total++; done++; } continue; } if (mem.type==TYPE_PLUS_MAJOR || mem.type==TYPE_PLUS_MINOR || mem.type==TYPE_MINUS_MAJOR || mem.type==TYPE_MINUS_MINOR) { MemoryDasm memr=project.memory[(mem.related>>16) & 0xFFFF]; if (memr.userLocation!=null && !"".equals(memr.userLocation)) { total++; done++; } continue; } // look for locations if (mem.userLocation!=null && !"".equals(mem.userLocation)) { total++; done++; } else { if (mem.dasmLocation!=null && !"".equals(mem.dasmLocation)) { total++; } } } if (total!=0) jPanelPerc.setPerc((float)done/(float)total); else jPanelPerc.setPerc(0); } /** * Add a user label to the selected memory address */ private void addComment() { int row=jTableMemory.getSelectedRow(); addComment(row); } /** * Add a user label to the given row * * @param row the row to use */ private void addComment(int row) { if (row<0) { JOptionPane.showMessageDialog(this, "No row selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } MemoryDasm mem= project.memory[row]; String comment=JOptionPane.showInputDialog(this, "Insert the comment for the selected memory location", mem.userComment); if (comment!=null) mem.userComment=comment; dataTableModelMemory.fireTableDataChanged(); jTableMemory.setRowSelectionInterval(row, row); } /** * Add a user label to the selected memory address */ private void addLabel() { int row=jTableMemory.getSelectedRow(); addLabel(row); } /** * Add a user label to the selected memory address * * @param row the row to use */ private void addLabel(int row) { if (row<0) { JOptionPane.showMessageDialog(this, "No row selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } MemoryDasm mem= project.memory[row]; addLabel(mem); dataTableModelMemory.fireTableDataChanged(); jTableMemory.setRowSelectionInterval(row, row); } /** * Add a user label to the next word address of selected memory address */ private void addLabelOp() { int row = jTableMemory.getSelectedRow(); if (row < 0) { JOptionPane.showMessageDialog(this, "No row selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } // avoid to read over the end if (row >= 0xFFFE) { JOptionPane.showMessageDialog(this, "Address locate over $FFFF boundary", "Warning", JOptionPane.WARNING_MESSAGE); return; } MemoryDasm mem = null; switch (project.targetType) { case C128: case C64: case C1541: case PLUS4: case VIC20: case ATARI: // determine if it is of page zero or 16 bit switch (M6510Dasm.tableSize[project.memory[row].copy & 0xFF]) { case 1: JOptionPane.showMessageDialog(this, "Instruction without operand. Skip action", "Warning", JOptionPane.WARNING_MESSAGE); return; case 2: // avoid to use not defined bytes if (!project.memory[row + 1].isInside) { JOptionPane.showMessageDialog(this, "Address is incomplete. Skip action", "Warning", JOptionPane.WARNING_MESSAGE); return; } // get next address mem = project.memory[project.memory[row + 1].copy & 0xFF]; break; case 3: // avoid to use not defined bytes if (!project.memory[row + 1].isInside || !project.memory[row + 2].isInside) { JOptionPane.showMessageDialog(this, "Address is incomplete. Skip action", "Warning", JOptionPane.WARNING_MESSAGE); return; } // get next address mem = project.memory[(project.memory[row + 2].copy & 0xFF) * 256 + (project.memory[row + 1].copy & 0xFF)]; break; } break; case C128Z: int op, iType, steps; op = project.memory[row].copy & 0xFF; iType = Z80Dasm.tableMnemonics[op]; switch (iType) { case Z80Dasm.T_CB: op = project.memory[row + 1].copy & 0xFF; steps = Z80Dasm.tableSizeCB[op]; break; case Z80Dasm.T_DD: op = project.memory[row + 1].copy & 0xFF; steps = Z80Dasm.tableSizeDD[op]; if (Z80Dasm.tableMnemonicsDD[op] == Z80Dasm.T_DDCB) { // there are an extra table op = project.memory[row + 2].copy & 0xFF; steps = Z80Dasm.tableSizeDDCB[op]; } break; case Z80Dasm.T_ED: op = project.memory[row + 1].copy & 0xFF; steps = Z80Dasm.tableSizeED[op]; break; case Z80Dasm.T_FD: op = project.memory[row + 1].copy & 0xFF; steps = Z80Dasm.tableSizeFD[op]; if (Z80Dasm.tableMnemonicsFD[op] == Z80Dasm.T_FDCB) { op = project.memory[row + 2].copy & 0xFF; steps = Z80Dasm.tableSizeFDCB[op]; } break; default: steps = Z80Dasm.tableSize[op]; break; } switch (steps) { case 1: JOptionPane.showMessageDialog(this, "Instruction without operand. Skip action", "Warning", JOptionPane.WARNING_MESSAGE); return; case 3: // avoid to use not defined bytes if (!project.memory[row + 1].isInside || !project.memory[row + 2].isInside) { JOptionPane.showMessageDialog(this, "Address is incomplete. Skip action", "Warning", JOptionPane.WARNING_MESSAGE); return; } // get next address mem = project.memory[(project.memory[row + 2].copy & 0xFF) * 256 + (project.memory[row + 1].copy & 0xFF)]; break; default: JOptionPane.showMessageDialog(this, "Not jet implemented for this combination of bytes. Skip action", "Warning", JOptionPane.WARNING_MESSAGE); return; } break; } addLabel(mem); dataTableModelMemory.fireTableDataChanged(); jTableMemory.setRowSelectionInterval(row, row); } /** * Add the label in given memory * * @param mem the mem to use */ private void addLabel(MemoryDasm mem) { String initial=""; if (mem.userLocation!=null) initial=mem.userLocation; else if (mem.dasmLocation!=null && !"".equals(mem.dasmLocation)) initial=mem.dasmLocation; String label=JOptionPane.showInputDialog(this, "Insert the label for the selected memory location", initial); if (label!=null) { if ("".equals(label)) { if (option.pedantic) JOptionPane.showMessageDialog(this, "User label erased", "Information", JOptionPane.INFORMATION_MESSAGE); mem.userLocation=null; return; } String error=errorLabel(label); if (error!=null) { JOptionPane.showMessageDialog(this, error, "Error", JOptionPane.ERROR_MESSAGE); return; } mem.userLocation=label; } } /** * Add a block for comment */ private void addBlock() { int row=jTableMemory.getSelectedRow(); addBlock(row); } /** * Add a block for comment * * @param row the row to use */ private void addBlock(int row) { if (row<0) { JOptionPane.showMessageDialog(this, "No row selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } MemoryDasm mem= project.memory[row]; JTextArea area=new JTextArea(20,40); area.setText(mem.userBlockComment); area.setFont(new Font("monospaced", Font.PLAIN, 12)); JScrollPane scrollPane = new JScrollPane(area); /* area.addAncestorListener(new AncestorListener() { @Override public void ancestorRemoved(AncestorEvent event) {} @Override public void ancestorMoved(AncestorEvent event) {} @Override public void ancestorAdded(AncestorEvent event) { System.err.println(event.getComponent().requestFocusInWindow()); } });*/ SwingUtilities.invokeLater(new Runnable() { public void run() { try { Robot robot = new Robot(); int i = 2; while (i-- > 0) { robot.keyPress(KeyEvent.VK_TAB); robot.delay(100); robot.keyRelease(KeyEvent.VK_TAB); } } catch (AWTException e) { System.out.println("Failed to use Robot, got exception: " + e.getMessage()); } } }); if (JOptionPane.showConfirmDialog(null, scrollPane, "Add a multi lines block comment", JOptionPane.OK_CANCEL_OPTION)==JOptionPane.OK_OPTION) { mem.userBlockComment=area.getText(); if ("".equals(mem.userBlockComment)) mem.userBlockComment=null; dataTableModelMemory.fireTableDataChanged(); jTableMemory.setRowSelectionInterval(row, row); } } /** * Clear dasm label (can be regenerated next time) */ private void clearDLabel() { MemoryDasm mem; int rows[]=jTableMemory.getSelectedRows(); // erase all if no row selected if (rows.length==0) { clearLab(); return; } for (int i=0; i<rows.length; i++) { mem= project.memory[rows[i]]; if (mem.dasmLocation!=null) mem.dasmLocation=null; } dataTableModelMemory.fireTableDataChanged(); jTableMemory.clearSelection(); for (int i=0; i<rows.length; i++) { jTableMemory.addRowSelectionInterval(rows[i], rows[i]); } } /** * Assign a reference to memory as #< and manage + or - if present */ private void memLow() { int row=jTableMemory.getSelectedRow(); if (row<0) { JOptionPane.showMessageDialog(this, "No row selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } Vector cols=new Vector(); cols.add("ADDR"); cols.add("DASM"); cols.add("USER"); cols.add("REL"); Vector rows=new Vector(); Vector data; int value=project.memory[row].copy & 0xFF; for (MemoryDasm memory : project.memory) { if ((memory.address & 0xFF)==value) { if (!memory.isInside && memory.userLocation==null) continue; data=new Vector(); data.add(Shared.ShortToExe(memory.address)); data.add(memory.dasmLocation); data.add(memory.userLocation); String res=""; switch (memory.type) { case TYPE_PLUS: { /// this is a memory in table label int pos=memory.address-memory.related; MemoryDasm mem2=project.memory[memory.related]; if (mem2.userLocation!=null && !"".equals(mem2.userLocation)) res=mem2.userLocation+"+"+pos; else if (mem2.dasmLocation!=null && !"".equals(mem2.dasmLocation)) res=mem2.dasmLocation+"+"+pos; else res="$"+Shared.ShortToExe((int)memory.related)+"+"+pos; break; } case TYPE_PLUS_MAJOR: case TYPE_PLUS_MINOR: { /// this is a memory in table label int rel=(memory.related>>16) &0xFFFF; int pos=memory.address-rel; MemoryDasm mem2=project.memory[rel]; if (mem2.userLocation!=null && !"".equals(mem2.userLocation)) res=mem2.userLocation+"+"+pos; else if (mem2.dasmLocation!=null && !"".equals(mem2.dasmLocation)) res=mem2.dasmLocation+"+"+pos; else res="$"+Shared.ShortToExe(rel)+"+"+pos; break; } case TYPE_MINUS: { /// this is a memory in table label int pos=memory.address-memory.related; MemoryDasm mem2=project.memory[memory.related]; if (mem2.userLocation!=null && !"".equals(mem2.userLocation)) res=mem2.userLocation+pos; else if (mem2.dasmLocation!=null && !"".equals(mem2.dasmLocation)) res=mem2.dasmLocation+pos; else res="$"+Shared.ShortToExe((int)memory.related)+pos; break; } case TYPE_MINUS_MAJOR: case TYPE_MINUS_MINOR: { /// this is a memory in table label int rel=(memory.related>>16) &0xFFFF; int pos=memory.address-rel; MemoryDasm mem2=project.memory[rel]; if (mem2.userLocation!=null && !"".equals(mem2.userLocation)) res=mem2.userLocation+pos; else if (mem2.dasmLocation!=null && !"".equals(mem2.dasmLocation)) res=mem2.dasmLocation+pos; else res="$"+Shared.ShortToExe(rel)+"+"+pos; break; } } data.add(res); rows.add(data); } } JTable table = new JTable(rows, cols); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); table.getColumnModel().getColumn(0).setPreferredWidth(18); if (JOptionPane.showConfirmDialog(null, new JScrollPane(table), "Select the address to use as #<", JOptionPane.OK_CANCEL_OPTION)==JOptionPane.OK_OPTION) { project.memory[row].relatedAddressBase=0; project.memory[row].relatedAddressDest=0; int rowS=table.getSelectedRow(); if (rowS<0) { if (project.memory[row].type==TYPE_MAJOR || project.memory[row].type==TYPE_MINOR || project.memory[row].type==TYPE_PLUS_MAJOR || project.memory[row].type==TYPE_PLUS_MINOR || project.memory[row].type==TYPE_MINUS_MAJOR || project.memory[row].type==TYPE_MINUS_MINOR) { if (JOptionPane.showConfirmDialog(this, "Did you want to delete the current address association?", "No selection were done, so:", JOptionPane.YES_NO_OPTION)==JOptionPane.YES_OPTION) { // + and <, or - ans < ? switch (project.memory[row].type) { case TYPE_PLUS_MAJOR: project.memory[row].type=TYPE_PLUS; project.memory[row].related>>=8; break; case TYPE_MINUS_MAJOR: project.memory[row].type=TYPE_MINUS; project.memory[row].related>>=8; break; default: project.memory[row].type=TYPE_EMPTY; project.memory[row].related=-1; break; } } } else JOptionPane.showMessageDialog(this, "No row selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } else { switch (project.memory[row].type) { case TYPE_PLUS: project.memory[row].type=TYPE_PLUS_MINOR; project.memory[row].related=(project.memory[row].related<<16)+Integer.parseInt((String)table.getValueAt(rowS, 0),16); break; case TYPE_MINUS: project.memory[row].type=TYPE_MINUS_MINOR; project.memory[row].related=(project.memory[row].related<<16)+Integer.parseInt((String)table.getValueAt(rowS, 0),16); break; default: project.memory[row].type=TYPE_MINOR; project.memory[row].related=Integer.parseInt((String)table.getValueAt(rowS, 0),16); break; } } dataTableModelMemory.fireTableDataChanged(); jTableMemory.setRowSelectionInterval(row, row); } } /** * Assign two references to memory as #< and #> * In presence of + or - it uses both definitions over < and > */ private void memLowHigh() { int row=jTableMemory.getSelectedRow(); if (row<0) { JOptionPane.showMessageDialog(this, "No row selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } int rows[]=jTableMemory.getSelectedRows(); if (rows.length==1) { JOptionPane.showMessageDialog(this, "At least two rows must be selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } MemoryDasm low, high; int address; for (int i=0; i<rows.length; i+=2) { if (i==rows.length-1) break; low=project.memory[rows[i]]; high=project.memory[rows[i+1]]; address=(low.copy & 0xFF) + ((high.copy & 0xFF)<<8); low.related=address; switch (low.type) { case TYPE_PLUS: high.type=TYPE_PLUS_MINOR; break; case TYPE_MINUS: high.type=TYPE_MINUS_MINOR; break; default: low.type=TYPE_MINOR; break; } high.related=address; switch (high.type) { case TYPE_PLUS: high.type=TYPE_PLUS_MAJOR; break; case TYPE_MINUS: high.type=TYPE_MINUS_MAJOR; break; default: high.type=TYPE_MAJOR; break; } low.relatedAddressBase=0; low.relatedAddressDest=0; high.relatedAddressBase=0; high.relatedAddressDest=0; } dataTableModelMemory.fireTableDataChanged(); jTableMemory.setRowSelectionInterval(rows[0], rows[rows.length-1]); } /** * Assign two references to memory as #> and #< * In presence of + or - it uses both definitions over < and > */ private void memHighLow() { int row=jTableMemory.getSelectedRow(); if (row<0) { JOptionPane.showMessageDialog(this, "No row selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } int rows[]=jTableMemory.getSelectedRows(); if (rows.length==1) { JOptionPane.showMessageDialog(this, "Two rows must be selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } MemoryDasm low, high; int address; for (int i=0; i<rows.length; i+=2) { if (i==rows.length-1) break; low=project.memory[rows[i+1]]; high=project.memory[rows[i]]; address=(low.copy & 0xFF) + ((high.copy & 0xFF)<<8); low.related=address; switch (low.type) { case TYPE_PLUS: low.type=TYPE_PLUS_MINOR; break; case TYPE_MINUS: low.type=TYPE_MINUS_MINOR; break; default: low.type=TYPE_MINOR; break; } high.related=address; switch (high.type) { case TYPE_PLUS: high.type=TYPE_PLUS_MAJOR; break; case TYPE_MINUS: high.type=TYPE_MINUS_MAJOR; break; default: high.type=TYPE_MAJOR; break; } low.relatedAddressBase=0; low.relatedAddressDest=0; high.relatedAddressBase=0; high.relatedAddressDest=0; } dataTableModelMemory.fireTableDataChanged(); jTableMemory.setRowSelectionInterval(rows[0], rows[rows.length-1]); } /** * Assign a reference to memory as #> and manage + or - if present */ private void memHigh() { int row=jTableMemory.getSelectedRow(); if (row<0) { JOptionPane.showMessageDialog(this, "No row selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } Vector cols=new Vector(); cols.add("ADDR"); cols.add("DASM"); cols.add("USER"); cols.add("REL"); Vector rows=new Vector(); Vector data; int value=project.memory[row].copy & 0xFF; for (MemoryDasm memory : project.memory) { if (((memory.address>>8) & 0xFF)==value) { if (!memory.isInside && memory.userLocation==null) continue; data=new Vector(); data.add(Shared.ShortToExe(memory.address)); data.add(memory.dasmLocation); data.add(memory.userLocation); String res=""; switch (memory.type) { case TYPE_PLUS: { /// this is a memory in table label int pos=memory.address-memory.related; MemoryDasm mem2=project.memory[memory.related]; if (mem2.userLocation!=null && !"".equals(mem2.userLocation)) res=mem2.userLocation+"+"+pos; else if (mem2.dasmLocation!=null && !"".equals(mem2.dasmLocation)) res=mem2.dasmLocation+"+"+pos; else res="$"+Shared.ShortToExe((int)memory.related)+"+"+pos; break; } case TYPE_PLUS_MAJOR: case TYPE_PLUS_MINOR: { /// this is a memory in table label int rel=(memory.related>>16) &0xFFFF; int pos=memory.address-rel; MemoryDasm mem2=project.memory[rel]; if (mem2.userLocation!=null && !"".equals(mem2.userLocation)) res=mem2.userLocation+"+"+pos; else if (mem2.dasmLocation!=null && !"".equals(mem2.dasmLocation)) res=mem2.dasmLocation+"+"+pos; else res="$"+Shared.ShortToExe(rel)+"+"+pos; break; } case TYPE_MINUS: { /// this is a memory in table label int pos=memory.address-memory.related; MemoryDasm mem2=project.memory[memory.related]; if (mem2.userLocation!=null && !"".equals(mem2.userLocation)) res=mem2.userLocation+pos; else if (mem2.dasmLocation!=null && !"".equals(mem2.dasmLocation)) res=mem2.dasmLocation+pos; else res="$"+Shared.ShortToExe((int)memory.related)+pos; break; } case TYPE_MINUS_MAJOR: case TYPE_MINUS_MINOR: { /// this is a memory in table label int rel=(memory.related>>16) &0xFFFF; int pos=memory.address-rel; MemoryDasm mem2=project.memory[rel]; if (mem2.userLocation!=null && !"".equals(mem2.userLocation)) res=mem2.userLocation+pos; else if (mem2.dasmLocation!=null && !"".equals(mem2.dasmLocation)) res=mem2.dasmLocation+pos; else res="$"+Shared.ShortToExe(rel)+pos; break; } } data.add(res); rows.add(data); } } JTable table = new JTable(rows, cols); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); table.getColumnModel().getColumn(0).setPreferredWidth(18); if (JOptionPane.showConfirmDialog(null, new JScrollPane(table), "Select the address to use as #>", JOptionPane.OK_CANCEL_OPTION)==JOptionPane.OK_OPTION) { project.memory[row].relatedAddressBase=0; project.memory[row].relatedAddressDest=0; int rowS=table.getSelectedRow(); if (rowS<0) { if (project.memory[row].type==TYPE_MAJOR || project.memory[row].type==TYPE_MINOR || project.memory[row].type==TYPE_PLUS_MAJOR || project.memory[row].type==TYPE_PLUS_MINOR || project.memory[row].type==TYPE_MINUS_MAJOR || project.memory[row].type==TYPE_MINUS_MINOR) { if (JOptionPane.showConfirmDialog(this, "Did you want to delete the current address association?", "No selection were done, so:", JOptionPane.YES_NO_OPTION)==JOptionPane.YES_OPTION) { // + and <, or - ans < ? switch (project.memory[row].type) { case TYPE_PLUS_MAJOR: project.memory[row].type=TYPE_PLUS; project.memory[row].related>>=8; break; case TYPE_MINUS_MAJOR: project.memory[row].type=TYPE_MINUS; project.memory[row].related>>=8; break; default: project.memory[row].type=TYPE_EMPTY; project.memory[row].related=-1; break; } } } else JOptionPane.showMessageDialog(this, "No row selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } else { switch (project.memory[row].type) { case TYPE_PLUS: project.memory[row].type=TYPE_PLUS_MAJOR; project.memory[row].related=(project.memory[row].related<<16)+Integer.parseInt((String)table.getValueAt(rowS, 0),16); break; case TYPE_MINUS: project.memory[row].type=TYPE_MINUS_MAJOR; project.memory[row].related=(project.memory[row].related<<16)+Integer.parseInt((String)table.getValueAt(rowS, 0),16); break; default: project.memory[row].type=TYPE_MAJOR; project.memory[row].related=Integer.parseInt((String)table.getValueAt(rowS, 0),16); break; } } dataTableModelMemory.fireTableDataChanged(); jTableMemory.setRowSelectionInterval(row, row); } } /** * Find a memory address */ private void findAddress() { String addr=JOptionPane.showInputDialog(this, "Search and go to a given HEX memory address"); if (addr==null) return; try { int pos=Integer.parseInt(addr,16); if (pos<0 || pos>0xFFFF) return; jTableMemory.getSelectionModel().setSelectionInterval(pos, pos); ///jTableMemory.scrollRectToVisible(new Rectangle(jTableMemory.getCellRect(pos, 0, true))); Shared.scrollToCenter(jTableMemory, pos, 0); } catch (Exception e) { } } /** * Find a sequences of hex number from current position */ private void findSeqHex() { String addr=JOptionPane.showInputDialog(this, "Search for a sequences of hex number (it starts from the next selected position)", lastSearch); if (addr==null) return; addr=addr.replaceAll("0x", ""); addr=addr.replaceAll("0X", ""); addr=addr.replaceAll("$", ""); addr=addr.replaceAll(",", ""); addr=addr.replaceAll(";", ""); addr=addr.replaceAll(":", ""); addr=addr.replaceAll(" ", ""); if ("".equals(addr)) return; char[] data=addr.toCharArray(); if ((data.length % 2)!=0) { JOptionPane.showMessageDialog(this, "Invalid sequences of bytes. Bytes must be hex with 2 chars, like: 0x01 $02 03 ", "Warning", JOptionPane.WARNING_MESSAGE); return; } int pos=jTableMemory.getSelectedRow()+1; // be dure to restart if this is the case if (pos>0xFFFF-data.length/2) pos=0; // generate the list of bytes to search ArrayList<Byte> list=new ArrayList(); int i=0; String val; try { while (i<data.length) { val=""+data[i]+data[i+1]; i+=2; list.add((byte)((Integer.parseInt(val, 16)) &0xFF)); } } catch (Exception e) { JOptionPane.showMessageDialog(this, "Invalid sequences of bytes. Bytes must be hex with 2 chars, like: 0x01 $02 03 ", "Warning", JOptionPane.WARNING_MESSAGE); return; } lastSearch=addr; // search from current position boolean find; for (i=pos; i<0xFFFF-list.size(); i++) { find=true; for (int j=0; j<list.size(); j++) { if (list.get(j) != project.memory[i+j].copy) { find=false; break; } } if (find) { Shared.scrollToCenter(jTableMemory, i, 0); jTableMemory.getSelectionModel().setSelectionInterval(i, i+list.size()-1); return; } } // search from beginning to current for (i=0; i<pos; i++) { if (i+list.size()>0xFFFF) break; find=true; for (int j=0; j<list.size(); j++) { if (list.get(j) != project.memory[i+j].copy) { find=false; break; } } if (find) { Shared.scrollToCenter(jTableMemory, i, 0); jTableMemory.getSelectionModel().setSelectionInterval(i, i+list.size()-1); return; } } JOptionPane.showMessageDialog(this, "Sequences not fount"); } /** * Mark the memory as address + */ private void memPlus() { int row=jTableMemory.getSelectedRow(); if (row<0) { JOptionPane.showMessageDialog(this, "No row selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } Vector cols=new Vector(); cols.add("ADDR"); cols.add("DASM"); cols.add("USER"); Vector rows=new Vector(); Vector data; int value=project.memory[row].copy & 0xFF; MemoryDasm mem=project.memory[row]; MemoryDasm memory; int addr; for (int i=1; i<256; i++) { addr=mem.address-i; if (addr<0) continue; memory=project.memory[addr]; data=new Vector(); data.add(Shared.ShortToExe(memory.address)); data.add(memory.dasmLocation); data.add(memory.userLocation); rows.add(data); } JTable table = new JTable(rows, cols); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); if (JOptionPane.showConfirmDialog(null, new JScrollPane(table), "Select the address to use as + in table", JOptionPane.OK_CANCEL_OPTION)==JOptionPane.OK_OPTION) { int rowS=table.getSelectedRow(); if (rowS<0) { if (project.memory[row].type==TYPE_PLUS || project.memory[row].type==TYPE_PLUS_MAJOR || project.memory[row].type==TYPE_PLUS_MINOR) { if (JOptionPane.showConfirmDialog(this, "Did you want to delete the current address association?", "No selection were done, so:", JOptionPane.YES_NO_OPTION)==JOptionPane.YES_OPTION) { // + and < ? switch (project.memory[row].type) { case TYPE_PLUS_MAJOR: project.memory[row].type=TYPE_MAJOR; project.memory[row].related&=0xFFFF; break; case TYPE_PLUS_MINOR: project.memory[row].type=TYPE_MINOR; project.memory[row].related&=0xFFFF; break; default: project.memory[row].type=TYPE_EMPTY; project.memory[row].related=-1; break; } // delete an automatic label if present, otherwise in code instruction it will be recreated if label is no more used project.memory[row].dasmLocation=null; } } else JOptionPane.showMessageDialog(this, "No row selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } else { switch (project.memory[row].type) { case TYPE_MAJOR: project.memory[row].type=TYPE_PLUS_MAJOR; project.memory[row].related=project.memory[row].related+(Integer.parseInt((String)table.getValueAt(rowS, 0),16)<<16); break; case TYPE_MINOR: project.memory[row].type=TYPE_PLUS_MINOR; project.memory[row].related=project.memory[row].related+(Integer.parseInt((String)table.getValueAt(rowS, 0),16)<<16); break; default: project.memory[row].type=TYPE_PLUS; project.memory[row].related=Integer.parseInt((String)table.getValueAt(rowS, 0),16); break; } } dataTableModelMemory.fireTableDataChanged(); jTableMemory.setRowSelectionInterval(row, row); } } /** * Collaborative merge of another user contribution */ private void projectMerge() { if (project == null) { JOptionPane.showMessageDialog(this, "You must be inside a project to merge it with another!", "Information", JOptionPane.WARNING_MESSAGE); return; } int retVal=projectMergeFile.showOpenDialog(this); if (retVal == JFileChooser.APPROVE_OPTION) { File mergeFile=projectMergeFile.getSelectedFile(); Project mergeProject=new Project(); if (!FileManager.instance.readProjectFile(mergeFile , mergeProject)) { JOptionPane.showMessageDialog(this, "Error reading project file", "Error", JOptionPane.ERROR_MESSAGE); return; } // test that the projects are of the same if ((Arrays.hashCode(mergeProject.inB) != Arrays.hashCode(project.inB))) { JOptionPane.showMessageDialog(this, "Byte data of the projects are different: they are not of the same source", "Error", JOptionPane.ERROR_MESSAGE); return; } if (project.fileType==FileType.CRT && project.chip != mergeProject.chip) { JOptionPane.showMessageDialog(this, "You are disassembe different chip inside a CRT image", "Error", JOptionPane.ERROR_MESSAGE); return; } if (MPR.hashCode(mergeProject.mpr) != MPR.hashCode(project.mpr)) { JOptionPane.showMessageDialog(this, "Byte data of MPR in projects are different: they are not of the same source", "Error", JOptionPane.ERROR_MESSAGE); return; } // take name/description from secondary only if not present in primary if (project.name==null || "".equals(project.name)) project.name=mergeProject.name; if (project.description==null || "".equals(project.description)) project.description=mergeProject.description; // copy constant for (int i=0; i<Constant.COLS; i++) { for (int j=0; i<Constant.ROWS; j++) { if (project.constant.table[i][j]==null || "".equals(project.constant.table[i][j])) project.constant.table[i][j]=mergeProject.constant.table[i][j]; } } MemoryDasm memProject; MemoryDasm memMerge; // scan all memory locations for (int i=0; i<project.memory.length; i++) { memProject=project.memory[i]; memMerge=mergeProject.memory[i]; // apply secondary information if primary are not defined if (memProject.userBlockComment==null || "".equals(memProject.userBlockComment)) memProject.userBlockComment=memMerge.userBlockComment; if (memProject.userComment==null || "".equals(memProject.userComment)) memProject.userComment=memMerge.userComment; if (memProject.userLocation==null || "".equals(memProject.userLocation)) memProject.userLocation=memMerge.userLocation; if (memProject.isInside) { if (!memProject.isCode && !memProject.isData && !memProject.isGarbage) { memProject.isCode=memMerge.isCode; memProject.isData=memMerge.isData; memProject.isGarbage=memMerge.isGarbage; } if (memProject.related==-1) { memProject.related=memMerge.related; memProject.type=memMerge.type; } if (memProject.dataType!=DataType.NONE) memProject.dataType=memMerge.dataType; if (memProject.index==-1) memProject.index=memMerge.index; if (memProject.relatedAddressBase==0) memProject.relatedAddressBase=memMerge.relatedAddressBase; if (memProject.relatedAddressDest==0) memProject.relatedAddressDest=memMerge.relatedAddressDest; } } // check relocate if (project.relocates==null) project.relocates=mergeProject.relocates; // check patch if (project.patches==null) project.patches=mergeProject.patches; else if (mergeProject.patches!=null) { // copy the value in the list Patch[] patches2=new Patch[project.patches.length+mergeProject.patches.length]; System.arraycopy(project.patches, 0, patches2, 0, project.patches.length); for (int i=0; i<mergeProject.patches.length; i++) { patches2[project.patches.length+i]=mergeProject.patches[i]; } project.patches=patches2; } dataTableModelMemory.fireTableDataChanged(); } } /** * Mark the memory as address - */ private void memMinus() { int row=jTableMemory.getSelectedRow(); if (row<0) { JOptionPane.showMessageDialog(this, "No row selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } Vector cols=new Vector(); cols.add("ADDR"); cols.add("DASM"); cols.add("USER"); Vector rows=new Vector(); Vector data; int value=project.memory[row].copy & 0xFF; MemoryDasm mem=project.memory[row]; MemoryDasm memory; int addr; for (int i=1; i<256; i++) { addr=mem.address+i; if (addr>0xFFFF) continue; memory=project.memory[addr]; data=new Vector(); data.add(Shared.ShortToExe(memory.address)); data.add(memory.dasmLocation); data.add(memory.userLocation); rows.add(data); } JTable table = new JTable(rows, cols); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); if (JOptionPane.showConfirmDialog(null, new JScrollPane(table), "Select the address to use as - in table", JOptionPane.OK_CANCEL_OPTION)==JOptionPane.OK_OPTION) { int rowS=table.getSelectedRow(); if (rowS<0) { if (project.memory[row].type==TYPE_MINUS) { if (JOptionPane.showConfirmDialog(this, "Did you want to delete the current address association?", "No selection were done, so:", JOptionPane.YES_NO_OPTION)==JOptionPane.YES_OPTION) { // - and <,> ? switch (project.memory[row].type) { case TYPE_MINUS_MAJOR: project.memory[row].type=TYPE_MAJOR; project.memory[row].related&=0xFFFF; break; case TYPE_MINUS_MINOR: project.memory[row].type=TYPE_MINOR; project.memory[row].related&=0xFFFF; break; default: project.memory[row].type=TYPE_EMPTY; project.memory[row].related=-1; break; } } } else JOptionPane.showMessageDialog(this, "No row selected", "Warning", JOptionPane.WARNING_MESSAGE); return; } else { mem.related=Integer.parseInt((String)table.getValueAt(rowS, 0),16); mem.type=TYPE_MINUS; } dataTableModelMemory.fireTableDataChanged(); jTableMemory.setRowSelectionInterval(row, row); } } /** * Search for a memory address (even as label) from the initial passed string * * @param initial the initial buffer to search for * @return the address or -1 if not find */ protected int searchAddress(String initial) { int addr=-1; try { // get the first word of the string String str=initial; str=str.contains(" ") ? str.split(" ")[0] : str; if (str.length()==4) addr=Integer.decode("0x"+str); else { str=str.contains(":") ? str.split(":")[0] : str; for (MemoryDasm memory : project.memory) { if (str.equals(memory.dasmLocation) || str.equals(memory.userLocation)) { addr=memory.address; break; } } } } catch (Exception e) { System.err.println(e); } return addr; } /** * Assemble back the source to binary */ private void assembly() { File inputFile=new File(option.tmpPath+File.separator+"input.s"); File outputFile=new File(option.tmpPath+File.separator+"output.prg"); if (disassembly.source==null || "".equals(disassembly.source)) { JOptionPane.showMessageDialog(this, "There is no source to assemble", "Warning", JOptionPane.WARNING_MESSAGE); return; } if (option.tmpPath==null || "".equals(option.tmpPath)) { JOptionPane.showMessageDialog(this, "Select a temporary path for the assembler outputs", "Warning", JOptionPane.WARNING_MESSAGE); return; } try { PrintWriter out=new PrintWriter(inputFile); out.write(disassembly.source); out.flush(); out.close(); } catch (Exception e) { System.err.println(e); } String res=compiler.compile(inputFile, outputFile); JTextArea textArea = new JTextArea(50, 50); textArea.setText(res); textArea.setEditable(false); JScrollPane scrollPane = new JScrollPane(textArea); JOptionPane.showMessageDialog(this, scrollPane, "Result of "+option.assembler.getName()+" compilatation", JOptionPane.INFORMATION_MESSAGE); } /** * Assing the given index in table to memory * * @param key the key table to assign */ private void subAssign(int index) { MemoryDasm mem; int rows[]=jTableMemory.getSelectedRows(); for (int i=0; i<rows.length; i++) { mem= project.memory[rows[i]]; mem.index=(byte)index; } dataTableModelMemory.fireTableDataChanged(); jTableMemory.clearSelection(); for (int i=0; i<rows.length; i++) { jTableMemory.addRowSelectionInterval(rows[i], rows[i]); } } /** * Automatic hi/lo table assigment */ private void memAutoLoHi() { if (project==null) return; jAutoLoHiDialog.setUp(project.memory, jTableMemory); jAutoLoHiDialog.setVisible(true); } /** * Export the source with the given * * @param name the assembler name */ private void export(Name name) { if (project==null) return; Name actual=option.assembler; option.assembler=name; Disassembly dis=new Disassembly(); dis.dissassembly(project.fileType, project.inB, option, project.memory, project.constant, project.mpr, project.relocates, project.patches, project.chip, project.binAddress, project.targetType, true); option.assembler=actual; exportAs(dis.source); } /** * Run wizard for memory */ private void wizard() { if (project==null) return; jWizardDialog.setUp(project.memory, disassembly, project, jTableMemory.getSelectedRow()); jWizardDialog.setVisible(true); } /** * Refactor labels */ private void refactor() { if (project==null) { JOptionPane.showMessageDialog(this, "Open a project before using this function"); return; } String oldPrefix=JOptionPane.showInputDialog(this, "Insert the prefix of labels to refactor:"); if (oldPrefix==null || "".equals(oldPrefix)) { JOptionPane.showMessageDialog(this, "No prefix: abort operation"); return; } String newPrefix=JOptionPane.showInputDialog(this, "Insert the prefix of labels to have:"); if (newPrefix==null || "".equals(newPrefix)) { JOptionPane.showMessageDialog(this, "No prefix: abort operation"); return; } String result; String error; for (MemoryDasm mem:project.memory) { if (mem.userLocation!=null && !"".equals(mem.userLocation) && mem.userLocation.startsWith(oldPrefix)) { result=mem.userLocation.replaceFirst(oldPrefix, newPrefix); error=errorLabel(result); if (error!=null) { JOptionPane.showMessageDialog(this, error, "Error", JOptionPane.ERROR_MESSAGE); return; } mem.userLocation=result; } } } /** * Return if label gives error * * @param label the label to check * @return null if ok or the error message */ private String errorLabel(String label) { if (label.contains(" ")) return "Label must not contain spaces"; if (label.length()>option.maxLabelLength) return "Label too long. Max allowed="+option.maxLabelLength; if (label.length()<2) return "Label too short. Min allowed=2"; // see if the label is already defined for (MemoryDasm memory : project.memory) { if (label.equals(memory.dasmLocation) || label.equals(memory.userLocation)) { return "This label is already used into the source at: "+Shared.ShortToExe(memory.address); } } // see if label is as constant for (int i=0; i<Constant.COLS; i++) { for (int j=0; j<Constant.ROWS; j++) { if (label.equals(project.constant.table[i][j])) { return "This label is already used as constant ("+i+"/"+j+")"; } } } String tmp=label.toUpperCase(); for (String val: M6510Dasm.mnemonics) { if (tmp.equals(val)) { return "This label is an opcode, cannot be defined"; } } if (label.startsWith("W") && label.length()==5) { return "Label cannot be like Wxxxx as they are reserved"; } return null; } /** * Return true if label gives error without giving messages * * @param label the label to check * @return true if error */ private boolean silentErrorLabel(String label) { if (label.contains(" ")) return true; if (label.length()>option.maxLabelLength) return true; if (label.length()<2) return true ; // see if the label is already defined for (MemoryDasm memory : project.memory) { if (label.equals(memory.dasmLocation) || label.equals(memory.userLocation)) { return true; } } // see if label is as constant for (int i=0; i<Constant.COLS; i++) { for (int j=0; j<Constant.ROWS; j++) { if (label.equals(project.constant.table[i][j])) { return true; } } } String tmp=label.toUpperCase(); for (String val: M6510Dasm.mnemonics) { if (tmp.equals(val)) { return true; } } if (label.startsWith("W") && label.length()==5) { return true; } return false; } /** * Import lables from dasm file */ private void importLabels() { File file; int retVal=importLabelsChooserFile.showOpenDialog(this); if (retVal != JFileChooser.APPROVE_OPTION) return; file=importLabelsChooserFile.getSelectedFile(); try { BufferedReader br=new BufferedReader(new FileReader(file)); String text; StringTokenizer st; String label; String pos; int address; MemoryDasm mem; int done=0; int processed=0; while ((text = br.readLine()) != null) { if (text.startsWith("---")) continue; processed++; st=new StringTokenizer(text); label=st.nextToken(); pos=st.nextToken(); address=Integer.parseInt(pos, 16); if (silentErrorLabel(label)) continue; mem=project.memory[address]; // avoid to create a label like the automatic one if (mem.dasmLocation!=null && mem.dasmLocation.equals(mem.userLocation)) continue; mem.userLocation=label; done++; } br.close(); JOptionPane.showMessageDialog(this, "Created "+done+" lables, out of "+processed+" entries"); } catch (Exception e) { System.err.println(e); JOptionPane.showMessageDialog(this, "Error reading file", "Error", JOptionPane.ERROR_MESSAGE); } } /** * Popolate recent file menu */ private void recentFile() { String path; recentFile.reload(); for (int i=0; i<recentFile.size(); i++) { path=new File(recentFile.get(i)).getName(); switch (i) { case 0: jMenuItemRecent1.setText(path); jMenuItemRecent1.setEnabled(true); break; case 1: jMenuItemRecent2.setText(path); jMenuItemRecent2.setEnabled(true); break; case 2: jMenuItemRecent3.setText(path); jMenuItemRecent3.setEnabled(true); break; case 3: jMenuItemRecent4.setText(path); jMenuItemRecent4.setEnabled(true); break; case 4: jMenuItemRecent5.setText(path); jMenuItemRecent5.setEnabled(true); break; case 5: jMenuItemRecent6.setText(path); jMenuItemRecent6.setEnabled(true); break; case 6: jMenuItemRecent7.setText(path); jMenuItemRecent7.setEnabled(true); break; case 7: jMenuItemRecent8.setText(path); jMenuItemRecent8.setEnabled(true); break; case 8: jMenuItemRecent9.setText(path); jMenuItemRecent9.setEnabled(true); break; } } } /** * Load a recent file * * @param pos the position i nrecent */ private void recent(int pos) { if (project != null && !project.equals(savedProject)) { int input = JOptionPane.showConfirmDialog(this, "Project not saved. Save it? (No=not save it)", "Information", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE); if (input==JOptionPane.CANCEL_OPTION) return; else if (input==JOptionPane.OK_OPTION) projectSave(); } projectFile=new File(recentFile.get(pos)); project=new Project(); setTitle("JC64dis ("+projectFile.getName()+")"); if (!FileManager.instance.readProjectFile(projectFile , project)) { JOptionPane.showMessageDialog(this, "Error reading project file", "Error", JOptionPane.ERROR_MESSAGE); } else { if (option.pedantic) JOptionPane.showMessageDialog(this, "File read", "Information", JOptionPane.INFORMATION_MESSAGE); execute(SOURCE_DISASS); } savedProject=project.clone(); dataTableModelMemory.setData(project.memory); dataTableModelMemory.fireTableDataChanged(); } /** * Clear the automatic label */ private void clearLab() { for (MemoryDasm mem: project.memory) { mem.dasmLocation=null; } dataTableModelMemory.fireTableDataChanged(); } /** * Clear the automatic comment */ private void clearCom() { for (MemoryDasm mem: project.memory) { mem.dasmComment=null; if (mem.isData && "".equals(mem.userComment)) mem.userComment=null; } dataTableModelMemory.fireTableDataChanged(); } /** * Got memory from preview * * @param rSyntaxTextArea syntax text area * @param caret cater used for disassembly * @param modifier the key modifier of mouse click */ private void gotoMem(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea rSyntaxTextArea, Carets caret, int modifier) { try { int pos; int addr=-1; // try with carets MemoryDasm mem=caret.getMemory(rSyntaxTextArea.getCaretPosition()); if (mem==null) { // get starting position of clicked point pos=Utilities.getRowStart(rSyntaxTextArea, rSyntaxTextArea.getCaretPosition()); addr=searchAddress(rSyntaxTextArea.getDocument().getText(pos,option.maxLabelLength)); } else addr=mem.address; if (addr==-1) return; //scroll to that point ///jTableMemory.scrollRectToVisible(jTableMemory.getCellRect(addr,0, true)); Shared.scrollToCenter(jTableMemory, addr, 0); if ((modifier & InputEvent.SHIFT_DOWN_MASK)==InputEvent.SHIFT_DOWN_MASK) { int row=jTableMemory.getSelectedRow(); if (row==-1) jTableMemory.setRowSelectionInterval(addr, addr); else { if (row<addr) { mem=project.memory[addr]; if (mem.isCode) jTableMemory.setRowSelectionInterval(row, addr+M6510Dasm.tableSize[mem.copy & 0xff]-1); // go to end of instruction else jTableMemory.setRowSelectionInterval(row, addr); } else jTableMemory.setRowSelectionInterval(addr, row); } } else jTableMemory.setRowSelectionInterval(addr, addr); // select this row } catch (Exception e) { System.err.println(e); } } /** * Goto mem form source * * @param evt the mouse event */ private void gotoMemSource(java.awt.event.MouseEvent evt) { try { int pos; int addr=-1; // try with carets MemoryDasm mem=disassembly.caretsSource.getMemory(rSyntaxTextAreaSource.getCaretPosition()); if (mem==null) { // get starting position of clicked point pos=Utilities.getRowStart(rSyntaxTextAreaSource, rSyntaxTextAreaSource.getCaretPosition()); addr=searchAddress(rSyntaxTextAreaSource.getDocument().getText(pos,option.maxLabelLength)); } else addr=mem.address; if (addr==-1) return; //scroll to that point ///jTableMemory.scrollRectToVisible(jTableMemory.getCellRect(addr,0, true)); Shared.scrollToCenter(jTableMemory, addr, 0); // select this row jTableMemory.setRowSelectionInterval(addr, addr); // ctrl + click must move source area too the same position if (evt.isControlDown()) { int actual; // get the address in hex format addr=jTableMemory.getSelectedRow(); pos=0; // scan all lines for the memory location try { String preview=rSyntaxTextAreaDis.getText(); String lines[] = preview.split("\\r?\\n"); for (String line: lines) { actual=searchAddress(line.substring(0, Math.min(line.length(), option.maxLabelLength))); if (actual==addr) { // set preview in the find position rSyntaxTextAreaDis.setCaretPosition(pos); rSyntaxTextAreaDis.requestFocusInWindow(); break; } else { pos+=line.length()+1; } } } catch (Exception e) { System.err.println(); } } } catch (Exception e) { System.err.println(e); } } /** * Copy action */ private void appCopy() { // prepare the data to copy in clipboard Serial serial=new Serial(); serial.uuid=Shared.uuid; serial.selected=jTableMemory.getSelectedRows(); serial.memory=project.memory; if (serial.selected==null) { JOptionPane.showMessageDialog(this, "No memory addresses to copy are selected. Abort copy."); return; } String result=""; try { ByteArrayOutputStream bos = new ByteArrayOutputStream(); ObjectOutputStream os = new ObjectOutputStream(bos); os.writeObject(serial); result= Base64.getEncoder().encodeToString(bos.toByteArray()); os.close(); } catch (IOException ex) { JOptionPane.showMessageDialog(this, "Error in copy objects in memory!"); return; } StringSelection st=new StringSelection(result); Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); cb.setContents(st, st); } /** * Paste action */ private void appPaste() { Serial serial=null; String result=""; Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); try { Transferable t = cb.getContents(null); if (t.isDataFlavorSupported(DataFlavor.stringFlavor)) result=(String)t.getTransferData(DataFlavor.stringFlavor); ByteArrayInputStream bis = new ByteArrayInputStream(Base64.getDecoder().decode(result)); ObjectInputStream oInputStream = new ObjectInputStream(bis); serial=(Serial)oInputStream.readObject(); } catch (Exception e) { JOptionPane.showMessageDialog(this, "Error getting JC64dis objects from clipboard!"); return; } if (serial==null) { JOptionPane.showMessageDialog(this, "Nothing to do"); return; } if (serial.selected==null) { JOptionPane.showMessageDialog(this, "There was no rows copied to paste."); return; } int row=jTableMemory.getSelectedRow(); if (serial.uuid.equals(Shared.uuid)) { JOptionPane.showMessageDialog(this, "Can not paste from same instance."); return; } if (row==-1) { JOptionPane.showMessageDialog(this, "Select the row where to copy."); return; } MemoryDasm memC; MemoryDasm memP; try { int pos=serial.selected[0]; // scan all the selected memory addresses for (int val: serial.selected) { memC=serial.memory[val]; // copy from memP=project.memory[row+val-pos]; // paste to memP.userComment=memC.userComment; memP.userLocation=memC.userLocation; memP.userBlockComment=memC.userBlockComment; memP.type=memC.type; if (memC.related>=0) { if (memC.related>0xFFFF) { memP.related=(memP.address-memC.address+(memC.related>>16))<<16; } else { memP.related=memP.address-memC.address+memC.related; } } else memP.related=memC.related; memP.isCode=memC.isCode; memP.isData=memC.isData; memP.isGarbage=memC.isGarbage; memP.index=memC.index; memP.dataType=memC.dataType; memP.relatedAddressBase=memC.relatedAddressBase; memP.relatedAddressDest=memC.relatedAddressDest; } } catch (Exception e) { System.err.println(e); } } /** * Popolate menus */ private void undo() { KeyProject obj; Iterator<KeyProject> iter=undo.getAll(); int i=0; while (iter.hasNext()) { obj=iter.next(); switch (i) { case 0: jMenuItemUndo1.setText(obj.key); jMenuItemUndo1.setEnabled(true); break; case 1: jMenuItemUndo2.setText(obj.key); jMenuItemUndo2.setEnabled(true); break; case 2: jMenuItemUndo3.setText(obj.key); jMenuItemUndo3.setEnabled(true); break; case 3: jMenuItemUndo4.setText(obj.key); jMenuItemUndo4.setEnabled(true); break; case 4: jMenuItemUndo5.setText(obj.key); jMenuItemUndo5.setEnabled(true); break; case 5: jMenuItemUndo6.setText(obj.key); jMenuItemUndo6.setEnabled(true); break; case 6: jMenuItemUndo7.setText(obj.key); jMenuItemUndo7.setEnabled(true); break; case 7: jMenuItemUndo8.setText(obj.key); jMenuItemUndo8.setEnabled(true); break; case 8: jMenuItemUndo9.setText(obj.key); jMenuItemUndo9.setEnabled(true); break; } i++; } } /** * Undo project at given index * * @param index the index */ private void undo(int index) { String key=null; switch (index) { case 0: key=jMenuItemUndo1.getText(); break; case 1: key=jMenuItemUndo2.getText(); break; case 2: key=jMenuItemUndo3.getText(); break; case 3: key=jMenuItemUndo4.getText(); break; case 4: key=jMenuItemUndo5.getText(); break; case 5: key=jMenuItemUndo6.getText(); break; case 6: key=jMenuItemUndo7.getText(); break; case 7: key=jMenuItemUndo8.getText(); break; case 8: key=jMenuItemUndo9.getText(); break; } Project search=undo.retrieve(key); if (search!=null) { project=search; dataTableModelMemory.setData(project.memory); dataTableModelMemory.fireTableDataChanged(); if (option.forceCompilation) disassembly(false); } } /** * Get the hex size of the are around the given code memory location * * @param address the address to check * @return the hex number string */ private String getAreaCodeSize(int address) { MemoryDasm mem=project.memory[address]; int size=1; int i=address-1; while (i>=0) { if (project.memory[i].isCode) size++; else break; i--; } i=address+1; while (i<=0xFFFF) { if (project.memory[i].isCode) size++; else break; i++; } return Shared.ShortToExe(size); } /** * Get the hex size of the are around the given date memory location * * @param address the address to check * @return the hex number string */ private String getAreaDataSize(int address) { MemoryDasm mem=project.memory[address]; int size=1; int i=address-1; while (i>=0) { if (project.memory[i].isData) size++; else break; i--; } i=address+1; while (i<=0xFFFF) { if (project.memory[i].isData) size++; else break; i++; } return Shared.ShortToExe(size); } /** * Get the hex size of the are around the given garbage memory location * * @param address the address to check * @return the hex number string */ private String getAreaGarbageSize(int address) { MemoryDasm mem=project.memory[address]; int size=1; int i=address-1; while (i>=0) { if (project.memory[i].isGarbage) size++; else break; i--; } i=address+1; while (i<=0xFFFF) { if (project.memory[i].isGarbage) size++; else break; i++; } return Shared.ShortToExe(size); } /** * Go to home of the block kind where is the memory location */ private void altHome() { int row=jTableMemory.getSelectedRow(); if (row==-1) return; int i=row-1; MemoryDasm mem2; MemoryDasm mem=project.memory[row]; if ((mem.isCode || (!mem.isData && option.useAsCode)) && mem.isInside && !mem.isGarbage) { while (i>=0) { mem2=project.memory[i]; if ((mem2.isCode || (!mem2.isData && option.useAsCode)) && mem2.isInside && !mem2.isGarbage) i--; else break; } i++; //scroll to that point ///jTableMemory.scrollRectToVisible(jTableMemory.getCellRect(i, 0, true)); Shared.scrollToCenter(jTableMemory, i, 0); //jTableMemory.setRowSelectionInterval(i, i); } else if ((mem.isData || (!mem.isCode && !option.useAsCode)) && mem.isInside && !mem.isGarbage) { while (i>=0) { mem2=project.memory[i]; if ((mem2.isData || (!mem2.isCode && !option.useAsCode)) && mem2.isInside && !mem2.isGarbage) i--; else break; } i++; //scroll to that point ///jTableMemory.scrollRectToVisible(jTableMemory.getCellRect(i, 0, true)); Shared.scrollToCenter(jTableMemory, i, 0); //jTableMemory.setRowSelectionInterval(i, i); } else if (mem.isGarbage) { while (i>=0) { mem2=project.memory[i]; if (mem2.isGarbage) i--; else break; } i++; //scroll to that point ///jTableMemory.scrollRectToVisible(jTableMemory.getCellRect(i, 0, true)); Shared.scrollToCenter(jTableMemory, i, 0); //jTableMemory.setRowSelectionInterval(i, i); } } /** * Go to end of the block kind where is the memory location */ private void altEnd() { int row=jTableMemory.getSelectedRow(); if (row==-1) return; int i=row+1; MemoryDasm mem2; MemoryDasm mem=project.memory[row]; if ((mem.isCode || (!mem.isData && option.useAsCode)) && mem.isInside && !mem.isGarbage) { while (i<=0xFFFF) { mem2=project.memory[i]; if ((mem2.isCode || (!mem2.isData && option.useAsCode)) && mem2.isInside && !mem2.isGarbage) i++; else break; } i--; //scroll to that point ///jTableMemory.scrollRectToVisible(jTableMemory.getCellRect(i, 0, true)); Shared.scrollToCenter(jTableMemory, i, 0); //jTableMemory.setRowSelectionInterval(i, i); } else if ((mem.isData || (!mem.isCode && !option.useAsCode)) && mem.isInside && !mem.isGarbage) { while (i<=0xFFFF) { mem2=project.memory[i]; if ((mem2.isData || (!mem2.isCode && !option.useAsCode)) && mem2.isInside && !mem2.isGarbage) i++; else break; } i--; //scroll to that point ///jTableMemory.scrollRectToVisible(jTableMemory.getCellRect(i, 0, true)); Shared.scrollToCenter(jTableMemory, i, 0); //jTableMemory.setRowSelectionInterval(i, i); } else if (mem.isGarbage) { while (i<=0XFFFF) { mem2=project.memory[i]; if (mem2.isGarbage) i++; else break; } i--; //scroll to that point ///jTableMemory.scrollRectToVisible(jTableMemory.getCellRect(i, 0, true)); Shared.scrollToCenter(jTableMemory, i, 0); //jTableMemory.setRowSelectionInterval(i, i); } } /** * Manage the given type action in current memory cell selected * * @param type the action type */ private void manageAction(Carets.Type type) { if (type==null) return; switch (type) { case COMMENT: execute(MEM_ADDCOMM); break; case BLOCK_COMMENT: execute(MEM_ADDBLOCK); break; case LABEL: execute(MEM_ADDLABEL); break; case LABEL_REL: execute(MEM_ADDLABELOP); break; } } /** * Show hex dialog */ private void showHex() { int row=jTableMemory.getSelectedRow(); if (row==-1) return; int end; for (end=row+1; end<=0xFFFF; end++) { if (!project.memory[end].isInside) break; } jHexDialog.setUp(project.memory, row, end-1); jHexDialog.setVisible(true); } /** * Create sequential labeled blocks */ private void createBlockLabels() { int row=jTableMemory.getSelectedRow(); if (row==-1) return; int[] rows=jTableMemory.getSelectedRows(); jBlockDialog.setUp(project.memory, rows[0], rows[rows.length-1]); jBlockDialog.setVisible(true); } }
415,410
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
JConstantDialog.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/JConstantDialog.java
/** * @(#)JCostantDialog.java 2021/05/01 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing; import java.awt.event.ActionEvent; import javax.swing.AbstractAction; import javax.swing.ActionMap; import javax.swing.InputMap; import javax.swing.JComponent; import javax.swing.JFileChooser; import javax.swing.JOptionPane; import javax.swing.JTextField; import javax.swing.KeyStroke; import javax.swing.UIManager; import sw_emulator.software.MemoryDasm; import sw_emulator.swing.main.Constant; import sw_emulator.swing.main.FileManager; import sw_emulator.swing.table.ConstantCellEditor; import sw_emulator.swing.table.ConstantTableCellRenderer; import sw_emulator.swing.table.DataTableModelConstant; /** * Dialog for constant * * @author ice */ public class JConstantDialog extends javax.swing.JDialog { /** Constant of tables value */ Constant constant=new Constant(); ConstantTableCellRenderer constantTableCellRenderer=new ConstantTableCellRenderer(); /** Data model */ DataTableModelConstant dataModel=new DataTableModelConstant(constant); /** Constant cell editor */ ConstantCellEditor constantCellEditor=new ConstantCellEditor(new JTextField()); /** Project chooser file dialog*/ JFileChooser constantChooserFile=new JFileChooser(); /** * Creates new form JConstantDialog */ public JConstantDialog(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); Shared.framesList.add(this); //Shared.framesList.add(constantCellEditor); } /** * Set up the dialog with the project to use * * @param constant constant * @param memories the memory */ public void setUp(Constant constant, MemoryDasm[] memories) { this.constant=constant; constantTableCellRenderer.setConstant(constant); dataModel=new DataTableModelConstant(constant); jTableConstant.setModel(dataModel); constantCellEditor.setCostant(constant, memories); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPopupMenuConstant = new javax.swing.JPopupMenu(); jMenuItemLoad = new javax.swing.JMenuItem(); jMenuItemSave = new javax.swing.JMenuItem(); jSeparator1 = new javax.swing.JPopupMenu.Separator(); jMenuItemGoto = new javax.swing.JMenuItem(); jScrollPaneTable = new javax.swing.JScrollPane(); jTableConstant = new javax.swing.JTable(); jTableConstant.setDefaultEditor(String.class, constantCellEditor); jTableConstant.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE); jPanelDn = new javax.swing.JPanel(); jButtonAddComment = new javax.swing.JButton(); jButtonRemoveComment = new javax.swing.JButton(); jButtonClose = new javax.swing.JButton(); jMenuItemLoad.setText("Load from file"); jMenuItemLoad.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemLoadActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemLoad); jMenuItemSave.setText("Save to file"); jMenuItemSave.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSaveActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemSave); jPopupMenuConstant.add(jSeparator1); jMenuItemGoto.setText("Goto hex address "); jMenuItemGoto.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemGotoActionPerformed(evt); } }); jPopupMenuConstant.add(jMenuItemGoto); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Constants definitions"); jTableConstant.setModel(dataModel); jTableConstant.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jTableConstant.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); InputMap im = this.getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); ActionMap am = this.getRootPane().getActionMap(); //add custom action im.put(KeyStroke.getKeyStroke("control F"), "find"); am.put("find", new AbstractAction() { @Override public void actionPerformed(ActionEvent ae) { find(); } }); ((InputMap)UIManager.get("Table.ancestorInputMap")).put(KeyStroke.getKeyStroke("control F"), "none"); jTableConstant.setDefaultRenderer(String.class, constantTableCellRenderer); jTableConstant.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent evt) { jTableConstantMousePressed(evt); } public void mouseReleased(java.awt.event.MouseEvent evt) { jTableConstantMouseReleased(evt); } }); jScrollPaneTable.setViewportView(jTableConstant); getContentPane().add(jScrollPaneTable, java.awt.BorderLayout.CENTER); jButtonAddComment.setText("Add constant comment"); jButtonAddComment.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonAddCommentActionPerformed(evt); } }); jPanelDn.add(jButtonAddComment); jButtonRemoveComment.setText("Remove constant comment"); jButtonRemoveComment.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonRemoveCommentActionPerformed(evt); } }); jPanelDn.add(jButtonRemoveComment); jButtonClose.setText("Close"); jButtonClose.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonCloseActionPerformed(evt); } }); jPanelDn.add(jButtonClose); getContentPane().add(jPanelDn, java.awt.BorderLayout.PAGE_END); setBounds(0, 0, 763, 545); }// </editor-fold>//GEN-END:initComponents private void jButtonCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCloseActionPerformed setVisible(false); }//GEN-LAST:event_jButtonCloseActionPerformed private void jMenuItemLoadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemLoadActionPerformed load(); }//GEN-LAST:event_jMenuItemLoadActionPerformed private void jMenuItemSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSaveActionPerformed save(); }//GEN-LAST:event_jMenuItemSaveActionPerformed private void jMenuItemGotoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGotoActionPerformed find(); }//GEN-LAST:event_jMenuItemGotoActionPerformed private void jTableConstantMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableConstantMousePressed if (evt.isPopupTrigger()) jPopupMenuConstant.show(evt.getComponent(),evt.getX(), evt.getY()); }//GEN-LAST:event_jTableConstantMousePressed private void jTableConstantMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableConstantMouseReleased if (evt.isPopupTrigger()) jPopupMenuConstant.show(evt.getComponent(),evt.getX(), evt.getY()); }//GEN-LAST:event_jTableConstantMouseReleased private void jButtonAddCommentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAddCommentActionPerformed int row=jTableConstant.getSelectedRow(); int col=jTableConstant.getSelectedColumn(); if (row<0 || col<1) { JOptionPane.showMessageDialog(this, "Select a cell for adding a comment to it."); return; } String comment=JOptionPane.showInputDialog(this, "Insert the comment for the selected memory location", constant.comment[col-1][row]); if (comment!=null) constant.comment[col-1][row]=comment; dataModel.fireTableDataChanged(); }//GEN-LAST:event_jButtonAddCommentActionPerformed private void jButtonRemoveCommentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonRemoveCommentActionPerformed int row=jTableConstant.getSelectedRow(); int col=jTableConstant.getSelectedColumn(); if (row<0 || col<1) return; constant.comment[col-1][row]=""; dataModel.fireTableDataChanged(); }//GEN-LAST:event_jButtonRemoveCommentActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(JConstantDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(JConstantDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(JConstantDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(JConstantDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> /* Create and display the dialog */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { JConstantDialog dialog = new JConstantDialog(new javax.swing.JFrame(), true); dialog.addWindowListener(new java.awt.event.WindowAdapter() { @Override public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); } }); dialog.setVisible(true); } }); } /** Find the given address */ private void find() { String addr=JOptionPane.showInputDialog(this, "Search and go to a given HEX memory address"); if (addr==null) return; try { int pos=Integer.parseInt(addr,16); if (pos<0 || pos>0xFFFF) return; jTableConstant.getSelectionModel().setSelectionInterval(pos, pos); Shared.scrollToCenter(jTableConstant, pos, 0); } catch (Exception e) { } } /** * Load the constant from file */ private void load() { int col=jTableConstant.getSelectedColumn()-1; if (col<0) { JOptionPane.showMessageDialog(this, "Select a column to load the file in"); return; } if (constantChooserFile.showOpenDialog(this)==JFileChooser.APPROVE_OPTION) { if (!FileManager.instance.readConstantFile(constantChooserFile.getSelectedFile(), constant, col)) { JOptionPane.showMessageDialog(this, "Error loading the file", "Error", JOptionPane.ERROR_MESSAGE); } else dataModel.fireTableDataChanged(); } } /** * Save the constant from file */ private void save() { int col=jTableConstant.getSelectedColumn()-1; if (col<0) { JOptionPane.showMessageDialog(this, "Select a column to save on file"); return; } if (constantChooserFile.showSaveDialog(this)==JFileChooser.APPROVE_OPTION) { if (!FileManager.instance.writeConstantFile(constantChooserFile.getSelectedFile(), constant, col)) { JOptionPane.showMessageDialog(this, "Error saving the file", "Error", JOptionPane.ERROR_MESSAGE); } } } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButtonAddComment; private javax.swing.JButton jButtonClose; private javax.swing.JButton jButtonRemoveComment; private javax.swing.JMenuItem jMenuItemGoto; private javax.swing.JMenuItem jMenuItemLoad; private javax.swing.JMenuItem jMenuItemSave; private javax.swing.JPanel jPanelDn; private javax.swing.JPopupMenu jPopupMenuConstant; private javax.swing.JScrollPane jScrollPaneTable; private javax.swing.JPopupMenu.Separator jSeparator1; private javax.swing.JTable jTableConstant; // End of variables declaration//GEN-END:variables }
14,648
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
JAcmePanel.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/JAcmePanel.java
/** * @(#)JAcmePanel 2022/05/02 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing; import sw_emulator.software.Assembler; import sw_emulator.swing.main.Option; /** * A panel for Acme assembler option * * @author ice */ public class JAcmePanel extends javax.swing.JPanel { /** Option file to use */ Option option; /** * Creates new form JAcmePanel */ public JAcmePanel() { initComponents(); } /** * Set up the panel with the option * * @param option the option to use */ public void setUp(Option option) { this.option=option; } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroupAcmeStackWord = new javax.swing.ButtonGroup(); buttonGroupAcmeWord = new javax.swing.ButtonGroup(); buttonGroupAcmeTribyte = new javax.swing.ButtonGroup(); buttonGroupAcmeWordSwapped = new javax.swing.ButtonGroup(); buttonGroupAcmeZeroText = new javax.swing.ButtonGroup(); buttonGroupAcmeOrigin = new javax.swing.ButtonGroup(); buttonGroupAcmeText = new javax.swing.ButtonGroup(); buttonGroupAcmeBlockComment = new javax.swing.ButtonGroup(); buttonGroupAcmeAddress = new javax.swing.ButtonGroup(); buttonGroupAcmeNumText = new javax.swing.ButtonGroup(); buttonGroupAcmeHighText = new javax.swing.ButtonGroup(); buttonGroupAcmeByte = new javax.swing.ButtonGroup(); buttonGroupAcmeShiftText = new javax.swing.ButtonGroup(); buttonGroupAcmeLong = new javax.swing.ButtonGroup(); buttonGroupAcmeComment = new javax.swing.ButtonGroup(); buttonGroupAcmeLabel = new javax.swing.ButtonGroup(); buttonGroupAcmeStarting = new javax.swing.ButtonGroup(); buttonGroupAcmeMultiSprite = new javax.swing.ButtonGroup(); buttonGroupAcmeMonoSprite = new javax.swing.ButtonGroup(); buttonGroupAcmePetsciiText = new javax.swing.ButtonGroup(); buttonGroupAcmeScreenText = new javax.swing.ButtonGroup(); jLabelAcmeLabelDeclaration = new javax.swing.JLabel(); jRadioButtonAcmeLabelName = new javax.swing.JRadioButton(); jScrollPaneAcmeLabelName = new javax.swing.JScrollPane(); jTextPaneAcmeLabelName = new javax.swing.JTextPane(); jRadioButtonAcmeLabelNameColon = new javax.swing.JRadioButton(); jScrollPaneAcmeLabelNameColon = new javax.swing.JScrollPane(); jTextPaneAcmeLabelNameColon = new javax.swing.JTextPane(); jLabelAcmeByteDeclaration = new javax.swing.JLabel(); jRadioButtonAcmeMarkByte = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkByte = new javax.swing.JScrollPane(); jTextPaneAcmeMarkByte = new javax.swing.JTextPane(); jRadioButtonAcmeMark8Byte = new javax.swing.JRadioButton(); jScrollPaneAcmeMark8Byte = new javax.swing.JScrollPane(); jTextPaneAcmeMark8Byte = new javax.swing.JTextPane(); jLabelAcmeWordDeclaration = new javax.swing.JLabel(); jRadioButtonAcmeMarkWord = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkWord = new javax.swing.JScrollPane(); jTextPaneAcmeMarkWord = new javax.swing.JTextPane(); jRadioButtonAcmeMark16Word = new javax.swing.JRadioButton(); jScrollPaneAcmeMark16Word = new javax.swing.JScrollPane(); jTextPaneAcmeMark16Word = new javax.swing.JTextPane(); jLabelAcmeStartingDeclaration = new javax.swing.JLabel(); jRadioButtonAcmeMarkCpuStarting = new javax.swing.JRadioButton(); jScrollPaneAcmeLabelMarkCpuStarting = new javax.swing.JScrollPane(); jTextPaneAcmeMarkCpuStarting = new javax.swing.JTextPane(); jLabelScmeOriginDeclaration = new javax.swing.JLabel(); jRadioButtonAcmeAsterixOrigin = new javax.swing.JRadioButton(); jScrollPaneDasmLabelAsterixOrigin = new javax.swing.JScrollPane(); jTextPaneAcmeAsterixOrigin = new javax.swing.JTextPane(); jLabelAcmeCommentDeclaration1 = new javax.swing.JLabel(); jRadioButtonAcmeSemicolonComment = new javax.swing.JRadioButton(); jScrollPaneAcmeSemicolonComment = new javax.swing.JScrollPane(); jTextPaneAcmeSemicolonComment = new javax.swing.JTextPane(); jLabelAcmeBlockCommentDeclaration = new javax.swing.JLabel(); jRadioButtonAcmeSemicolonBlockComment = new javax.swing.JRadioButton(); jScrollPaneAcmeSemicolonBlockComment = new javax.swing.JScrollPane(); jTextPaneAcmeSemicolonBlockComment = new javax.swing.JTextPane(); jRadioButtonAcmeMarkIfBlockComment = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkIfBlockComment = new javax.swing.JScrollPane(); jTextPaneAcmeMarkIfBlockComment = new javax.swing.JTextPane(); jLabelAcmeMonoSpriteDeclaration = new javax.swing.JLabel(); jLabelAcmeMultiSpriteDeclaration = new javax.swing.JLabel(); jRadioButtonAcme24HexMonoSprite = new javax.swing.JRadioButton(); jRadioButtonAcme24HexMultiSprite = new javax.swing.JRadioButton(); jScrollPaneAcmeByteHexMultiSprite = new javax.swing.JScrollPane(); jTextPaneAcme24HexMultiSprite = new javax.swing.JTextPane(); jScrollPaneAcme24HexMonoSprite = new javax.swing.JScrollPane(); jTextPaneAcme24HexMonoSprite = new javax.swing.JTextPane(); jRadioButtonAcme24BinMonoSprite = new javax.swing.JRadioButton(); jRadioButtonAcme24BinMultiSprite = new javax.swing.JRadioButton(); jScrollPaneAcme24BinMultiSprite = new javax.swing.JScrollPane(); jTextPaneAcme24BinMultiSprite = new javax.swing.JTextPane(); jScrollPaneAcme24BinMonoSprite = new javax.swing.JScrollPane(); jTextPaneAcme24BinMonoSprite = new javax.swing.JTextPane(); jRadioButtonAcmeMacroHexMonoSprite = new javax.swing.JRadioButton(); jRadioButtonAcmeMacroHexMultiSprite = new javax.swing.JRadioButton(); jScrollPaneAcmeMacroHexMultiSprite = new javax.swing.JScrollPane(); jTextPaneAcmeMacroHexMultiSprite = new javax.swing.JTextPane(); jScrollPaneAcmeMacroHexMonoSprite = new javax.swing.JScrollPane(); jTextPaneAcmeMacroHexMonoSprite = new javax.swing.JTextPane(); jRadioButtonAcmeMacroBinMonoSprite = new javax.swing.JRadioButton(); jRadioButtonAcmeMacroBinMultiSprite = new javax.swing.JRadioButton(); jScrollPaneAcmeMacroBinMultiSprite = new javax.swing.JScrollPane(); jTextPaneAcmeMacroBinMultiSprite = new javax.swing.JTextPane(); jScrollPaneAcmeMacroBinMonoSprite = new javax.swing.JScrollPane(); jTextPaneAcmeMacroBinMonoSprite = new javax.swing.JTextPane(); jRadioButtonAcmeMark08Byte = new javax.swing.JRadioButton(); jScrollPaneAcmeMark08Byte = new javax.swing.JScrollPane(); jTextPaneAcmeMark08Byte = new javax.swing.JTextPane(); jRadioButtonAcmeMarkByByte = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkByByte = new javax.swing.JScrollPane(); jTextPaneAcmeMarkByByte = new javax.swing.JTextPane(); jLabelAcmeTribyteDeclaration = new javax.swing.JLabel(); jRadioButtonAcmeMarkTwentyfourTribyte = new javax.swing.JRadioButton(); jScrollPaneAcmeTwentyfourTribyte = new javax.swing.JScrollPane(); jTextPaneAcmeMarkTwentyfourTribyte = new javax.swing.JTextPane(); jLabelAcmeLongDeclaration = new javax.swing.JLabel(); jRadioButtonAcmeMarkThirtytwoLong = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkThirtytwoLong = new javax.swing.JScrollPane(); jTextPaneAcmeMarkThirtytwoLong = new javax.swing.JTextPane(); jLabelAcmeWordSwappedDeclaration = new javax.swing.JLabel(); jRadioButtonAcmeMacroWordSwapped = new javax.swing.JRadioButton(); jScrollPaneAcmeMacroWordSwapped = new javax.swing.JScrollPane(); jTextPaneAcmeMacroWordSwapped = new javax.swing.JTextPane(); jLabelAcmeTextDeclaration = new javax.swing.JLabel(); jRadioButtonAcmeMarkText = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkText = new javax.swing.JScrollPane(); jTextPaneAcmeMarkText = new javax.swing.JTextPane(); jRadioButtonAcmeMarkTxText = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkTxText = new javax.swing.JScrollPane(); jTextPaneAcmeMarkTxText = new javax.swing.JTextPane(); jRadioButtonAcmeMarkRawText = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkRawText = new javax.swing.JScrollPane(); jTextPaneAcmeMarkRawText = new javax.swing.JTextPane(); jLabelAcmeNumTextDeclaration = new javax.swing.JLabel(); jRadioButtonAcmeMarkNumText = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkNumText = new javax.swing.JScrollPane(); jTextPaneAcmeMarkNumText = new javax.swing.JTextPane(); jRadioButtonAcmeMarkTxNumText = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkTxNumText = new javax.swing.JScrollPane(); jTextPaneAcmeMarkTxNumText = new javax.swing.JTextPane(); jRadioButtonAcmeMarkRawNumText = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkRawNumText = new javax.swing.JScrollPane(); jTextPaneAcmeMarkRawNumText = new javax.swing.JTextPane(); jLabelAcmeZeroTextDeclaration = new javax.swing.JLabel(); jRadioButtonAcmeMarkZeroText = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkZeroText = new javax.swing.JScrollPane(); jTextPaneAcmeMarkZeroText = new javax.swing.JTextPane(); jRadioButtonAcmeMarkTxZeroText = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkTxZeroText = new javax.swing.JScrollPane(); jTextPaneAcmeMarkTxZeroText = new javax.swing.JTextPane(); jRadioButtonAcmeMarkRawZeroText = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkRawZeroText = new javax.swing.JScrollPane(); jTextPaneAcmeMarkRawZeroText = new javax.swing.JTextPane(); jLabelAcmeAddressDeclaration = new javax.swing.JLabel(); jRadioButtonAcmeMarkWordAddress = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkWordAddress = new javax.swing.JScrollPane(); jTextPaneAcmeMarkWordAddress = new javax.swing.JTextPane(); jRadioButtonAcmeMark16WordAddress = new javax.swing.JRadioButton(); jScrollPaneAcmeMark16WordAddress = new javax.swing.JScrollPane(); jTextPaneAcmeMark16WordAddress = new javax.swing.JTextPane(); jLabelAcmeStackWordDeclaration = new javax.swing.JLabel(); jRadioButtonAcmeMacroStackWord = new javax.swing.JRadioButton(); jScrollPaneAcmeMacroStackWord = new javax.swing.JScrollPane(); jTextPaneAcmeMacroStackWord = new javax.swing.JTextPane(); jLabelAcmeHighTextDeclaration = new javax.swing.JLabel(); jRadioButtonAcmeMarkHighText = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkHighText = new javax.swing.JScrollPane(); jTextPaneAcmeMarkHighText = new javax.swing.JTextPane(); jRadioButtonAcmeMarkTxHighText = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkTxHighText = new javax.swing.JScrollPane(); jTextPaneAcmeMarkTxHighText = new javax.swing.JTextPane(); jRadioButtonAcmeMarkRawHighText = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkRawHighText = new javax.swing.JScrollPane(); jTextPaneAcmeMarkRawHighText = new javax.swing.JTextPane(); jLabelAcmeShiftTextDeclaration = new javax.swing.JLabel(); jRadioButtonAcmeMarkShiftText = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkShiftText = new javax.swing.JScrollPane(); jTextPaneAcmeMarkShiftText = new javax.swing.JTextPane(); jRadioButtonAcmeMarkTxShiftText = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkTxShiftText = new javax.swing.JScrollPane(); jTextPaneAcmeMarkTxShiftText = new javax.swing.JTextPane(); jRadioButtonAcmeMarkRawShiftText = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkRawShiftText = new javax.swing.JScrollPane(); jTextPaneAcmeMarkRawShiftText = new javax.swing.JTextPane(); jLabelAcmeScreenTextDeclaration = new javax.swing.JLabel(); jRadioButtonAcmeMarkScrScreenText = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkScrScreenText = new javax.swing.JScrollPane(); jTextPaneAcmeMarkScrScreenText = new javax.swing.JTextPane(); jLabelAcmePetasciiTextDeclaration = new javax.swing.JLabel(); jRadioButtonAcmeMarkPetPetasciiText = new javax.swing.JRadioButton(); jScrollPaneAcmeMarkPetPetasciiText = new javax.swing.JScrollPane(); jTextPaneAcmeMarkPetPetasciiText = new javax.swing.JTextPane(); jLabelAcmeLabelDeclaration.setText("Label:"); buttonGroupAcmeLabel.add(jRadioButtonAcmeLabelName); jRadioButtonAcmeLabelName.setSelected(true); jRadioButtonAcmeLabelName.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeLabelNameItemStateChanged(evt); } }); jScrollPaneAcmeLabelName.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeLabelName.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeLabelName.setEditable(false); jTextPaneAcmeLabelName.setContentType("text/html"); // NOI18N jTextPaneAcmeLabelName.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <font color='black'>zzzz</font>\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeLabelName.setViewportView(jTextPaneAcmeLabelName); buttonGroupAcmeLabel.add(jRadioButtonAcmeLabelNameColon); jRadioButtonAcmeLabelNameColon.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeLabelNameColonItemStateChanged(evt); } }); jScrollPaneAcmeLabelNameColon.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeLabelNameColon.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeLabelNameColon.setEditable(false); jTextPaneAcmeLabelNameColon.setContentType("text/html"); // NOI18N jTextPaneAcmeLabelNameColon.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <font color='black'>zzzz</font><b>:</b>\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeLabelNameColon.setViewportView(jTextPaneAcmeLabelNameColon); jLabelAcmeByteDeclaration.setText("Byte:"); buttonGroupAcmeByte.add(jRadioButtonAcmeMarkByte); jRadioButtonAcmeMarkByte.setSelected(true); jRadioButtonAcmeMarkByte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkByteItemStateChanged(evt); } }); jScrollPaneAcmeMarkByte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkByte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkByte.setEditable(false); jTextPaneAcmeMarkByte.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkByte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> !byte</b> <font color='red'>$xx</font><br>\n <b> !byte</b> <font color='blue'>dd</font><br>\n <b> !byte</b> <font color='green'>%bb</font><br>\n <b> !byte</b> <font color='purple'>'c'</font>\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkByte.setViewportView(jTextPaneAcmeMarkByte); buttonGroupAcmeByte.add(jRadioButtonAcmeMark8Byte); jRadioButtonAcmeMark8Byte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMark8ByteItemStateChanged(evt); } }); jScrollPaneAcmeMark8Byte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMark8Byte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMark8Byte.setEditable(false); jTextPaneAcmeMark8Byte.setContentType("text/html"); // NOI18N jTextPaneAcmeMark8Byte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> !8</b> <font color='red'>$xx</font><br>\n <b> !8</b> <font color='blue'>dd</font><br>\n <b> !8</b> <font color='green'>%bb</font><br>\n <b> !8</b> <font color='purple'>'c'</font>\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMark8Byte.setViewportView(jTextPaneAcmeMark8Byte); jLabelAcmeWordDeclaration.setText("Word:"); buttonGroupAcmeWord.add(jRadioButtonAcmeMarkWord); jRadioButtonAcmeMarkWord.setSelected(true); jRadioButtonAcmeMarkWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkWordItemStateChanged(evt); } }); jScrollPaneAcmeMarkWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkWord.setEditable(false); jTextPaneAcmeMarkWord.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> !word</b> <font color='red'>$xxyy</font><br>\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkWord.setViewportView(jTextPaneAcmeMarkWord); buttonGroupAcmeWord.add(jRadioButtonAcmeMark16Word); jRadioButtonAcmeMark16Word.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMark16WordItemStateChanged(evt); } }); jScrollPaneAcmeMark16Word.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMark16Word.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMark16Word.setEditable(false); jTextPaneAcmeMark16Word.setContentType("text/html"); // NOI18N jTextPaneAcmeMark16Word.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> !16</b> <font color='red'>$xxyy</font><br>\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMark16Word.setViewportView(jTextPaneAcmeMark16Word); jLabelAcmeStartingDeclaration.setText("Starting:"); buttonGroupAcmeStarting.add(jRadioButtonAcmeMarkCpuStarting); jRadioButtonAcmeMarkCpuStarting.setSelected(true); jRadioButtonAcmeMarkCpuStarting.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkCpuStartingItemStateChanged(evt); } }); jScrollPaneAcmeLabelMarkCpuStarting.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeLabelMarkCpuStarting.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkCpuStarting.setEditable(false); jTextPaneAcmeMarkCpuStarting.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkCpuStarting.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>!cpu</b> 6510</font>\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeLabelMarkCpuStarting.setViewportView(jTextPaneAcmeMarkCpuStarting); jLabelScmeOriginDeclaration.setText("Origin:"); buttonGroupAcmeOrigin.add(jRadioButtonAcmeAsterixOrigin); jRadioButtonAcmeAsterixOrigin.setSelected(true); jRadioButtonAcmeAsterixOrigin.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeAsterixOriginItemStateChanged(evt); } }); jScrollPaneDasmLabelAsterixOrigin.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmLabelAsterixOrigin.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeAsterixOrigin.setEditable(false); jTextPaneAcmeAsterixOrigin.setContentType("text/html"); // NOI18N jTextPaneAcmeAsterixOrigin.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>*=</b>$xxyy\n </p>\n </body>\n</html>\n"); jScrollPaneDasmLabelAsterixOrigin.setViewportView(jTextPaneAcmeAsterixOrigin); jLabelAcmeCommentDeclaration1.setText("Comment:"); buttonGroupAcmeComment.add(jRadioButtonAcmeSemicolonComment); jRadioButtonAcmeSemicolonComment.setSelected(true); jRadioButtonAcmeSemicolonComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeSemicolonCommentItemStateChanged(evt); } }); jScrollPaneAcmeSemicolonComment.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeSemicolonComment.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeSemicolonComment.setEditable(false); jTextPaneAcmeSemicolonComment.setContentType("text/html"); // NOI18N jTextPaneAcmeSemicolonComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>;</b> xxx\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeSemicolonComment.setViewportView(jTextPaneAcmeSemicolonComment); jLabelAcmeBlockCommentDeclaration.setText("Block Comment:"); buttonGroupAcmeBlockComment.add(jRadioButtonAcmeSemicolonBlockComment); jRadioButtonAcmeSemicolonBlockComment.setSelected(true); jRadioButtonAcmeSemicolonBlockComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeSemicolonBlockCommentItemStateChanged(evt); } }); jScrollPaneAcmeSemicolonBlockComment.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeSemicolonBlockComment.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeSemicolonBlockComment.setEditable(false); jTextPaneAcmeSemicolonBlockComment.setContentType("text/html"); // NOI18N jTextPaneAcmeSemicolonBlockComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>;</b> xxx\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeSemicolonBlockComment.setViewportView(jTextPaneAcmeSemicolonBlockComment); buttonGroupAcmeBlockComment.add(jRadioButtonAcmeMarkIfBlockComment); jRadioButtonAcmeMarkIfBlockComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkIfBlockCommentItemStateChanged(evt); } }); jScrollPaneAcmeMarkIfBlockComment.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkIfBlockComment.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkIfBlockComment.setEditable(false); jTextPaneAcmeMarkIfBlockComment.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkIfBlockComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>!if 0 {</b> xxx <b'>}</b>\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkIfBlockComment.setViewportView(jTextPaneAcmeMarkIfBlockComment); jLabelAcmeMonoSpriteDeclaration.setText("Monocolor sprite:"); jLabelAcmeMultiSpriteDeclaration.setText("Multicolor sprite:"); buttonGroupAcmeMonoSprite.add(jRadioButtonAcme24HexMonoSprite); jRadioButtonAcme24HexMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcme24HexMonoSpriteItemStateChanged(evt); } }); buttonGroupAcmeMultiSprite.add(jRadioButtonAcme24HexMultiSprite); jRadioButtonAcme24HexMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcme24HexMultiSpriteItemStateChanged(evt); } }); jScrollPaneAcmeByteHexMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeByteHexMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcme24HexMultiSprite.setEditable(false); jTextPaneAcme24HexMultiSprite.setContentType("text/html"); // NOI18N jTextPaneAcme24HexMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>!24</b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeByteHexMultiSprite.setViewportView(jTextPaneAcme24HexMultiSprite); jScrollPaneAcme24HexMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcme24HexMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcme24HexMonoSprite.setEditable(false); jTextPaneAcme24HexMonoSprite.setContentType("text/html"); // NOI18N jTextPaneAcme24HexMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> !24</b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcme24HexMonoSprite.setViewportView(jTextPaneAcme24HexMonoSprite); buttonGroupAcmeMonoSprite.add(jRadioButtonAcme24BinMonoSprite); jRadioButtonAcme24BinMonoSprite.setSelected(true); jRadioButtonAcme24BinMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcme24BinMonoSpriteItemStateChanged(evt); } }); buttonGroupAcmeMultiSprite.add(jRadioButtonAcme24BinMultiSprite); jRadioButtonAcme24BinMultiSprite.setSelected(true); jRadioButtonAcme24BinMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcme24BinMultiSpriteItemStateChanged(evt); } }); jScrollPaneAcme24BinMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcme24BinMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcme24BinMultiSprite.setEditable(false); jTextPaneAcme24BinMultiSprite.setContentType("text/html"); // NOI18N jTextPaneAcme24BinMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>!24</b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcme24BinMultiSprite.setViewportView(jTextPaneAcme24BinMultiSprite); jScrollPaneAcme24BinMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcme24BinMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcme24BinMonoSprite.setEditable(false); jTextPaneAcme24BinMonoSprite.setContentType("text/html"); // NOI18N jTextPaneAcme24BinMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>!24</b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcme24BinMonoSprite.setViewportView(jTextPaneAcme24BinMonoSprite); buttonGroupAcmeMonoSprite.add(jRadioButtonAcmeMacroHexMonoSprite); jRadioButtonAcmeMacroHexMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMacroHexMonoSpriteItemStateChanged(evt); } }); buttonGroupAcmeMultiSprite.add(jRadioButtonAcmeMacroHexMultiSprite); jRadioButtonAcmeMacroHexMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMacroHexMultiSpriteItemStateChanged(evt); } }); jScrollPaneAcmeMacroHexMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMacroHexMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMacroHexMultiSprite.setEditable(false); jTextPaneAcmeMacroHexMultiSprite.setContentType("text/html"); // NOI18N jTextPaneAcmeMacroHexMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMacroHexMultiSprite.setViewportView(jTextPaneAcmeMacroHexMultiSprite); jScrollPaneAcmeMacroHexMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMacroHexMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMacroHexMonoSprite.setEditable(false); jTextPaneAcmeMacroHexMonoSprite.setContentType("text/html"); // NOI18N jTextPaneAcmeMacroHexMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMacroHexMonoSprite.setViewportView(jTextPaneAcmeMacroHexMonoSprite); buttonGroupAcmeMonoSprite.add(jRadioButtonAcmeMacroBinMonoSprite); jRadioButtonAcmeMacroBinMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMacroBinMonoSpriteItemStateChanged(evt); } }); buttonGroupAcmeMultiSprite.add(jRadioButtonAcmeMacroBinMultiSprite); jRadioButtonAcmeMacroBinMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMacroBinMultiSpriteItemStateChanged(evt); } }); jScrollPaneAcmeMacroBinMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMacroBinMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMacroBinMultiSprite.setEditable(false); jTextPaneAcmeMacroBinMultiSprite.setContentType("text/html"); // NOI18N jTextPaneAcmeMacroBinMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMacroBinMultiSprite.setViewportView(jTextPaneAcmeMacroBinMultiSprite); jScrollPaneAcmeMacroBinMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMacroBinMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMacroBinMonoSprite.setEditable(false); jTextPaneAcmeMacroBinMonoSprite.setContentType("text/html"); // NOI18N jTextPaneAcmeMacroBinMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMacroBinMonoSprite.setViewportView(jTextPaneAcmeMacroBinMonoSprite); buttonGroupAcmeByte.add(jRadioButtonAcmeMark08Byte); jRadioButtonAcmeMark08Byte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMark08ByteItemStateChanged(evt); } }); jScrollPaneAcmeMark08Byte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMark08Byte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMark08Byte.setEditable(false); jTextPaneAcmeMark08Byte.setContentType("text/html"); // NOI18N jTextPaneAcmeMark08Byte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> !08</b> <font color='red'>$xx</font><br>\n <b> !08</b> <font color='blue'>dd</font><br>\n <b> !08</b> <font color='green'>%bb</font><br>\n <b> !08</b> <font color='purple'>'c'</font>\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMark08Byte.setViewportView(jTextPaneAcmeMark08Byte); buttonGroupAcmeByte.add(jRadioButtonAcmeMarkByByte); jRadioButtonAcmeMarkByByte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkByByteItemStateChanged(evt); } }); jScrollPaneAcmeMarkByByte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkByByte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkByByte.setEditable(false); jTextPaneAcmeMarkByByte.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkByByte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> !by</b> <font color='red'>$xx</font><br>\n <b> !by</b> <font color='blue'>dd</font><br>\n <b> !by</b> <font color='green'>%bb</font><br>\n <b> !by</b> <font color='purple'>'c'</font>\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkByByte.setViewportView(jTextPaneAcmeMarkByByte); jLabelAcmeTribyteDeclaration.setText("Tribyte:"); buttonGroupAcmeTribyte.add(jRadioButtonAcmeMarkTwentyfourTribyte); jRadioButtonAcmeMarkTwentyfourTribyte.setSelected(true); jRadioButtonAcmeMarkTwentyfourTribyte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkTwentyfourTribyteItemStateChanged(evt); } }); jScrollPaneAcmeTwentyfourTribyte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeTwentyfourTribyte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkTwentyfourTribyte.setEditable(false); jTextPaneAcmeMarkTwentyfourTribyte.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkTwentyfourTribyte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>!24</b> <font color='red'>$xxyyzz</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeTwentyfourTribyte.setViewportView(jTextPaneAcmeMarkTwentyfourTribyte); jLabelAcmeLongDeclaration.setText("Long:"); buttonGroupAcmeLong.add(jRadioButtonAcmeMarkThirtytwoLong); jRadioButtonAcmeMarkThirtytwoLong.setSelected(true); jRadioButtonAcmeMarkThirtytwoLong.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkThirtytwoLongItemStateChanged(evt); } }); jScrollPaneAcmeMarkThirtytwoLong.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkThirtytwoLong.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkThirtytwoLong.setEditable(false); jTextPaneAcmeMarkThirtytwoLong.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkThirtytwoLong.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> !32</b> <font color='red'>$xxyyzzkk</font><br>\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkThirtytwoLong.setViewportView(jTextPaneAcmeMarkThirtytwoLong); jLabelAcmeWordSwappedDeclaration.setText("Word Swapped:"); buttonGroupAcmeWordSwapped.add(jRadioButtonAcmeMacroWordSwapped); jRadioButtonAcmeMacroWordSwapped.setSelected(true); jRadioButtonAcmeMacroWordSwapped.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMacroWordSwappedItemStateChanged(evt); } }); jScrollPaneAcmeMacroWordSwapped.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMacroWordSwapped.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMacroWordSwapped.setEditable(false); jTextPaneAcmeMacroWordSwapped.setContentType("text/html"); // NOI18N jTextPaneAcmeMacroWordSwapped.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac]</b> <font color='red'>$yyxx</font><br>\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMacroWordSwapped.setViewportView(jTextPaneAcmeMacroWordSwapped); jLabelAcmeTextDeclaration.setText("Text:"); buttonGroupAcmeText.add(jRadioButtonAcmeMarkText); jRadioButtonAcmeMarkText.setSelected(true); jRadioButtonAcmeMarkText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkTextItemStateChanged(evt); } }); jScrollPaneAcmeMarkText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkText.setEditable(false); jTextPaneAcmeMarkText.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> !text</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkText.setViewportView(jTextPaneAcmeMarkText); buttonGroupAcmeText.add(jRadioButtonAcmeMarkTxText); jRadioButtonAcmeMarkTxText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkTxTextItemStateChanged(evt); } }); jScrollPaneAcmeMarkTxText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkTxText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkTxText.setEditable(false); jTextPaneAcmeMarkTxText.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkTxText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>!tx</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkTxText.setViewportView(jTextPaneAcmeMarkTxText); buttonGroupAcmeText.add(jRadioButtonAcmeMarkRawText); jRadioButtonAcmeMarkRawText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkRawTextItemStateChanged(evt); } }); jScrollPaneAcmeMarkRawText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkRawText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkRawText.setEditable(false); jTextPaneAcmeMarkRawText.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkRawText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>!raw</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkRawText.setViewportView(jTextPaneAcmeMarkRawText); jLabelAcmeNumTextDeclaration.setText("Text #num chars:"); buttonGroupAcmeNumText.add(jRadioButtonAcmeMarkNumText); jRadioButtonAcmeMarkNumText.setSelected(true); jRadioButtonAcmeMarkNumText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkNumTextItemStateChanged(evt); } }); jScrollPaneAcmeMarkNumText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkNumText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkNumText.setEditable(false); jTextPaneAcmeMarkNumText.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkNumText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> !text</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkNumText.setViewportView(jTextPaneAcmeMarkNumText); buttonGroupAcmeNumText.add(jRadioButtonAcmeMarkTxNumText); jRadioButtonAcmeMarkTxNumText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkTxNumTextItemStateChanged(evt); } }); jScrollPaneAcmeMarkTxNumText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkTxNumText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkTxNumText.setEditable(false); jTextPaneAcmeMarkTxNumText.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkTxNumText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>!tx</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkTxNumText.setViewportView(jTextPaneAcmeMarkTxNumText); buttonGroupAcmeNumText.add(jRadioButtonAcmeMarkRawNumText); jRadioButtonAcmeMarkRawNumText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkRawNumTextItemStateChanged(evt); } }); jScrollPaneAcmeMarkRawNumText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkRawNumText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkRawNumText.setEditable(false); jTextPaneAcmeMarkRawNumText.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkRawNumText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>!raw</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkRawNumText.setViewportView(jTextPaneAcmeMarkRawNumText); jLabelAcmeZeroTextDeclaration.setText("Text 0 terminated:"); buttonGroupAcmeZeroText.add(jRadioButtonAcmeMarkZeroText); jRadioButtonAcmeMarkZeroText.setSelected(true); jRadioButtonAcmeMarkZeroText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkZeroTextItemStateChanged(evt); } }); jScrollPaneAcmeMarkZeroText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkZeroText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkZeroText.setEditable(false); jTextPaneAcmeMarkZeroText.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkZeroText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> !text</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkZeroText.setViewportView(jTextPaneAcmeMarkZeroText); buttonGroupAcmeZeroText.add(jRadioButtonAcmeMarkTxZeroText); jRadioButtonAcmeMarkTxZeroText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkTxZeroTextItemStateChanged(evt); } }); jScrollPaneAcmeMarkTxZeroText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkTxZeroText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkTxZeroText.setEditable(false); jTextPaneAcmeMarkTxZeroText.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkTxZeroText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>!tx</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkTxZeroText.setViewportView(jTextPaneAcmeMarkTxZeroText); buttonGroupAcmeZeroText.add(jRadioButtonAcmeMarkRawZeroText); jRadioButtonAcmeMarkRawZeroText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkRawZeroTextItemStateChanged(evt); } }); jScrollPaneAcmeMarkRawZeroText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkRawZeroText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkRawZeroText.setEditable(false); jTextPaneAcmeMarkRawZeroText.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkRawZeroText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>!raw</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkRawZeroText.setViewportView(jTextPaneAcmeMarkRawZeroText); jLabelAcmeAddressDeclaration.setText("Address"); buttonGroupAcmeAddress.add(jRadioButtonAcmeMarkWordAddress); jRadioButtonAcmeMarkWordAddress.setSelected(true); jRadioButtonAcmeMarkWordAddress.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkWordAddressItemStateChanged(evt); } }); jScrollPaneAcmeMarkWordAddress.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkWordAddress.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkWordAddress.setEditable(false); jTextPaneAcmeMarkWordAddress.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkWordAddress.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> !word</b> <font color='red'>$xxyy</font><br>\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkWordAddress.setViewportView(jTextPaneAcmeMarkWordAddress); buttonGroupAcmeAddress.add(jRadioButtonAcmeMark16WordAddress); jRadioButtonAcmeMark16WordAddress.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMark16WordAddressItemStateChanged(evt); } }); jScrollPaneAcmeMark16WordAddress.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMark16WordAddress.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMark16WordAddress.setEditable(false); jTextPaneAcmeMark16WordAddress.setContentType("text/html"); // NOI18N jTextPaneAcmeMark16WordAddress.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> !16</b> <font color='red'>$xxyy</font><br>\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMark16WordAddress.setViewportView(jTextPaneAcmeMark16WordAddress); jLabelAcmeStackWordDeclaration.setText("Stack Word:"); buttonGroupAcmeStackWord.add(jRadioButtonAcmeMacroStackWord); jRadioButtonAcmeMacroStackWord.setSelected(true); jRadioButtonAcmeMacroStackWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMacroStackWordItemStateChanged(evt); } }); jScrollPaneAcmeMacroStackWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMacroStackWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMacroStackWord.setEditable(false); jTextPaneAcmeMacroStackWord.setContentType("text/html"); // NOI18N jTextPaneAcmeMacroStackWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac]</b> <font color='red'>$xxyy</font><br>\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMacroStackWord.setViewportView(jTextPaneAcmeMacroStackWord); jLabelAcmeHighTextDeclaration.setText("Text '1' terminated:"); buttonGroupAcmeHighText.add(jRadioButtonAcmeMarkHighText); jRadioButtonAcmeMarkHighText.setSelected(true); jRadioButtonAcmeMarkHighText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkHighTextItemStateChanged(evt); } }); jScrollPaneAcmeMarkHighText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkHighText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkHighText.setEditable(false); jTextPaneAcmeMarkHighText.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkHighText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> !text</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkHighText.setViewportView(jTextPaneAcmeMarkHighText); buttonGroupAcmeHighText.add(jRadioButtonAcmeMarkTxHighText); jRadioButtonAcmeMarkTxHighText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkTxHighTextItemStateChanged(evt); } }); jScrollPaneAcmeMarkTxHighText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkTxHighText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkTxHighText.setEditable(false); jTextPaneAcmeMarkTxHighText.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkTxHighText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>!tx</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkTxHighText.setViewportView(jTextPaneAcmeMarkTxHighText); buttonGroupAcmeHighText.add(jRadioButtonAcmeMarkRawHighText); jRadioButtonAcmeMarkRawHighText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkRawHighTextItemStateChanged(evt); } }); jScrollPaneAcmeMarkRawHighText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkRawHighText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkRawHighText.setEditable(false); jTextPaneAcmeMarkRawHighText.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkRawHighText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>!raw</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkRawHighText.setViewportView(jTextPaneAcmeMarkRawHighText); jLabelAcmeShiftTextDeclaration.setText("Text left shifted:"); buttonGroupAcmeShiftText.add(jRadioButtonAcmeMarkShiftText); jRadioButtonAcmeMarkShiftText.setSelected(true); jRadioButtonAcmeMarkShiftText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkShiftTextItemStateChanged(evt); } }); jScrollPaneAcmeMarkShiftText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkShiftText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkShiftText.setEditable(false); jTextPaneAcmeMarkShiftText.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkShiftText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> !text</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkShiftText.setViewportView(jTextPaneAcmeMarkShiftText); buttonGroupAcmeShiftText.add(jRadioButtonAcmeMarkTxShiftText); jRadioButtonAcmeMarkTxShiftText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkTxShiftTextItemStateChanged(evt); } }); jScrollPaneAcmeMarkTxShiftText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkTxShiftText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkTxShiftText.setEditable(false); jTextPaneAcmeMarkTxShiftText.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkTxShiftText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>!tx</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkTxShiftText.setViewportView(jTextPaneAcmeMarkTxShiftText); buttonGroupAcmeShiftText.add(jRadioButtonAcmeMarkRawShiftText); jRadioButtonAcmeMarkRawShiftText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkRawShiftTextItemStateChanged(evt); } }); jScrollPaneAcmeMarkRawShiftText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkRawShiftText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkRawShiftText.setEditable(false); jTextPaneAcmeMarkRawShiftText.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkRawShiftText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>!raw</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkRawShiftText.setViewportView(jTextPaneAcmeMarkRawShiftText); jLabelAcmeScreenTextDeclaration.setText("Text to screen code:"); buttonGroupAcmeScreenText.add(jRadioButtonAcmeMarkScrScreenText); jRadioButtonAcmeMarkScrScreenText.setSelected(true); jRadioButtonAcmeMarkScrScreenText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkScrScreenTextItemStateChanged(evt); } }); jScrollPaneAcmeMarkScrScreenText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkScrScreenText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkScrScreenText.setEditable(false); jTextPaneAcmeMarkScrScreenText.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkScrScreenText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> !scr</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkScrScreenText.setViewportView(jTextPaneAcmeMarkScrScreenText); jLabelAcmePetasciiTextDeclaration.setText("Text to petascii code:"); buttonGroupAcmePetsciiText.add(jRadioButtonAcmeMarkPetPetasciiText); jRadioButtonAcmeMarkPetPetasciiText.setSelected(true); jRadioButtonAcmeMarkPetPetasciiText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAcmeMarkPetPetasciiTextItemStateChanged(evt); } }); jScrollPaneAcmeMarkPetPetasciiText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneAcmeMarkPetPetasciiText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneAcmeMarkPetPetasciiText.setEditable(false); jTextPaneAcmeMarkPetPetasciiText.setContentType("text/html"); // NOI18N jTextPaneAcmeMarkPetPetasciiText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> !pet</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneAcmeMarkPetPetasciiText.setViewportView(jTextPaneAcmeMarkPetPetasciiText); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelAcmeWordSwappedDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jLabelAcmeStartingDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelScmeOriginDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelAcmeBlockCommentDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE) .addComponent(jLabelAcmeLabelDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelAcmeByteDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelAcmeTribyteDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelAcmeLongDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelAcmeAddressDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelAcmeStackWordDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelAcmeMonoSpriteDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelAcmeMultiSpriteDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelAcmeTextDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelAcmeNumTextDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelAcmeZeroTextDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelAcmeShiftTextDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelAcmeScreenTextDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelAcmePetasciiTextDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE) .addComponent(jLabelAcmeHighTextDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelAcmeWordDeclaration, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelAcmeCommentDeclaration1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonAcmeMarkCpuStarting) .addComponent(jRadioButtonAcmeAsterixOrigin) .addComponent(jRadioButtonAcmeSemicolonComment) .addComponent(jRadioButtonAcmeSemicolonBlockComment) .addComponent(jRadioButtonAcmeLabelName) .addComponent(jRadioButtonAcmeMarkByte) .addComponent(jRadioButtonAcmeMarkWord) .addComponent(jRadioButtonAcmeMacroWordSwapped) .addComponent(jRadioButtonAcmeMarkTwentyfourTribyte) .addComponent(jRadioButtonAcmeMarkThirtytwoLong) .addComponent(jRadioButtonAcmeMarkWordAddress) .addComponent(jRadioButtonAcmeMacroStackWord) .addComponent(jRadioButtonAcme24HexMonoSprite) .addComponent(jRadioButtonAcme24HexMultiSprite) .addComponent(jRadioButtonAcmeMarkText) .addComponent(jRadioButtonAcmeMarkNumText) .addComponent(jRadioButtonAcmeMarkZeroText) .addComponent(jRadioButtonAcmeMarkHighText) .addComponent(jRadioButtonAcmeMarkShiftText) .addComponent(jRadioButtonAcmeMarkScrScreenText) .addComponent(jRadioButtonAcmeMarkPetPetasciiText)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneAcmeMarkScrScreenText, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMarkShiftText, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMarkHighText, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMarkZeroText, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMarkNumText, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMarkText, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeByteHexMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcme24HexMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMacroStackWord, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMarkWordAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMarkThirtytwoLong, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeTwentyfourTribyte, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMacroWordSwapped, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMarkWord, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMarkByte, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeLabelName, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeSemicolonBlockComment, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeSemicolonComment, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneDasmLabelAsterixOrigin, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeLabelMarkCpuStarting, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMarkPetPetasciiText, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(8, 8, 8) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonAcmeMarkIfBlockComment) .addComponent(jRadioButtonAcmeLabelNameColon) .addComponent(jRadioButtonAcmeMark8Byte) .addComponent(jRadioButtonAcmeMark16Word) .addComponent(jRadioButtonAcmeMark16WordAddress) .addComponent(jRadioButtonAcme24BinMonoSprite) .addComponent(jRadioButtonAcme24BinMultiSprite) .addComponent(jRadioButtonAcmeMarkTxText) .addComponent(jRadioButtonAcmeMarkTxNumText) .addComponent(jRadioButtonAcmeMarkTxZeroText) .addComponent(jRadioButtonAcmeMarkTxHighText) .addComponent(jRadioButtonAcmeMarkTxShiftText)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneAcmeMarkIfBlockComment, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeLabelNameColon, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMark8Byte, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMark16Word, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMark16WordAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcme24BinMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcme24BinMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMarkTxText, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMarkTxNumText, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMarkTxZeroText, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMarkTxHighText, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneAcmeMarkTxShiftText, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(8, 8, 8) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonAcmeMarkRawShiftText) .addComponent(jRadioButtonAcmeMarkRawHighText) .addComponent(jRadioButtonAcmeMarkRawZeroText) .addComponent(jRadioButtonAcmeMarkRawNumText) .addComponent(jRadioButtonAcmeMarkRawText) .addComponent(jRadioButtonAcmeMacroHexMultiSprite) .addComponent(jRadioButtonAcmeMacroHexMonoSprite) .addComponent(jRadioButtonAcmeMark08Byte)) .addGap(2, 2, 2) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneAcmeMarkRawShiftText) .addComponent(jScrollPaneAcmeMarkRawHighText) .addComponent(jScrollPaneAcmeMarkRawZeroText) .addComponent(jScrollPaneAcmeMarkRawNumText) .addComponent(jScrollPaneAcmeMarkRawText) .addComponent(jScrollPaneAcmeMacroHexMultiSprite, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE) .addComponent(jScrollPaneAcmeMacroHexMonoSprite) .addComponent(jScrollPaneAcmeMark08Byte, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(8, 8, 8) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonAcmeMarkByByte) .addComponent(jRadioButtonAcmeMacroBinMonoSprite) .addComponent(jRadioButtonAcmeMacroBinMultiSprite)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneAcmeMacroBinMultiSprite) .addComponent(jScrollPaneAcmeMacroBinMonoSprite, javax.swing.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE) .addComponent(jScrollPaneAcmeMarkByByte, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(15, 15, 15) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelAcmeStartingDeclaration) .addComponent(jRadioButtonAcmeMarkCpuStarting) .addComponent(jScrollPaneAcmeLabelMarkCpuStarting, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelScmeOriginDeclaration) .addComponent(jRadioButtonAcmeAsterixOrigin) .addComponent(jScrollPaneDasmLabelAsterixOrigin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelAcmeCommentDeclaration1) .addComponent(jRadioButtonAcmeSemicolonComment) .addComponent(jScrollPaneAcmeSemicolonComment, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelAcmeBlockCommentDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeSemicolonBlockComment) .addComponent(jScrollPaneAcmeSemicolonBlockComment, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelAcmeLabelDeclaration) .addComponent(jRadioButtonAcmeLabelName) .addComponent(jScrollPaneAcmeLabelName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jScrollPaneAcmeMarkByByte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkByByte) .addComponent(jScrollPaneAcmeMark08Byte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMark08Byte) .addComponent(jScrollPaneAcmeMarkByte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkByte) .addComponent(jLabelAcmeByteDeclaration)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelAcmeWordDeclaration) .addComponent(jRadioButtonAcmeMarkWord) .addComponent(jScrollPaneAcmeMarkWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelAcmeWordSwappedDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMacroWordSwapped) .addComponent(jScrollPaneAcmeMacroWordSwapped, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPaneAcmeTwentyfourTribyte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addGap(10, 10, 10) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonAcmeMarkTwentyfourTribyte) .addComponent(jLabelAcmeTribyteDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelAcmeLongDeclaration) .addComponent(jRadioButtonAcmeMarkThirtytwoLong) .addComponent(jScrollPaneAcmeMarkThirtytwoLong, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelAcmeAddressDeclaration) .addComponent(jRadioButtonAcmeMarkWordAddress) .addComponent(jScrollPaneAcmeMarkWordAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelAcmeStackWordDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMacroStackWord) .addComponent(jScrollPaneAcmeMacroStackWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelAcmeMonoSpriteDeclaration) .addComponent(jRadioButtonAcme24HexMonoSprite) .addComponent(jScrollPaneAcme24HexMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMacroHexMonoSprite) .addComponent(jScrollPaneAcmeMacroHexMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMacroBinMonoSprite) .addComponent(jScrollPaneAcmeMacroBinMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelAcmeMultiSpriteDeclaration) .addComponent(jRadioButtonAcme24HexMultiSprite) .addComponent(jScrollPaneAcmeByteHexMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMacroHexMultiSprite) .addComponent(jScrollPaneAcmeMacroHexMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMacroBinMultiSprite) .addComponent(jScrollPaneAcmeMacroBinMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jScrollPaneAcmeMarkRawText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkRawText) .addComponent(jScrollPaneAcmeMarkText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkText) .addComponent(jLabelAcmeTextDeclaration)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jScrollPaneAcmeMarkRawNumText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkRawNumText) .addComponent(jScrollPaneAcmeMarkNumText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkNumText) .addComponent(jLabelAcmeNumTextDeclaration)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jScrollPaneAcmeMarkRawZeroText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkRawZeroText) .addComponent(jScrollPaneAcmeMarkZeroText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkZeroText) .addComponent(jLabelAcmeZeroTextDeclaration)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jScrollPaneAcmeMarkRawHighText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkRawHighText) .addComponent(jScrollPaneAcmeMarkHighText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkHighText) .addComponent(jLabelAcmeHighTextDeclaration)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jScrollPaneAcmeMarkShiftText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkShiftText) .addComponent(jLabelAcmeShiftTextDeclaration)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jRadioButtonAcmeMarkIfBlockComment) .addComponent(jScrollPaneAcmeMarkIfBlockComment, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jRadioButtonAcmeLabelNameColon) .addComponent(jScrollPaneAcmeLabelNameColon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jScrollPaneAcmeMark8Byte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMark8Byte)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jRadioButtonAcmeMark16Word) .addComponent(jScrollPaneAcmeMark16Word, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(107, 107, 107) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jRadioButtonAcmeMark16WordAddress) .addComponent(jScrollPaneAcmeMark16WordAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(39, 39, 39) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jRadioButtonAcme24BinMonoSprite) .addComponent(jScrollPaneAcme24BinMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jRadioButtonAcme24BinMultiSprite) .addComponent(jScrollPaneAcme24BinMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jScrollPaneAcmeMarkTxText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkTxText)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jScrollPaneAcmeMarkTxNumText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkTxNumText)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jScrollPaneAcmeMarkTxZeroText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkTxZeroText)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jScrollPaneAcmeMarkTxHighText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkTxHighText)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jScrollPaneAcmeMarkTxShiftText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkTxShiftText) .addComponent(jScrollPaneAcmeMarkRawShiftText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkRawShiftText)) .addGap(4, 4, 4))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jScrollPaneAcmeMarkScrScreenText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkScrScreenText) .addComponent(jLabelAcmeScreenTextDeclaration)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jScrollPaneAcmeMarkPetPetasciiText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonAcmeMarkPetPetasciiText) .addComponent(jLabelAcmePetasciiTextDeclaration)) .addContainerGap(36, Short.MAX_VALUE)) ); }// </editor-fold>//GEN-END:initComponents private void jRadioButtonAcmeLabelNameItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeLabelNameItemStateChanged option.acmeLabel=Assembler.Label.NAME; }//GEN-LAST:event_jRadioButtonAcmeLabelNameItemStateChanged private void jRadioButtonAcmeLabelNameColonItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeLabelNameColonItemStateChanged option.acmeLabel=Assembler.Label.NAME_COLON; }//GEN-LAST:event_jRadioButtonAcmeLabelNameColonItemStateChanged private void jRadioButtonAcmeMarkByteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkByteItemStateChanged option.acmeByte=Assembler.Byte.MARK_BYTE; }//GEN-LAST:event_jRadioButtonAcmeMarkByteItemStateChanged private void jRadioButtonAcmeMark8ByteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMark8ByteItemStateChanged option.acmeByte=Assembler.Byte.EIGHT_BYTE; }//GEN-LAST:event_jRadioButtonAcmeMark8ByteItemStateChanged private void jRadioButtonAcmeMarkWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkWordItemStateChanged option.acmeWord=Assembler.Word.MARK_WORD; }//GEN-LAST:event_jRadioButtonAcmeMarkWordItemStateChanged private void jRadioButtonAcmeMark16WordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMark16WordItemStateChanged option.acmeWord=Assembler.Word.SIXTEEN_WORD; }//GEN-LAST:event_jRadioButtonAcmeMark16WordItemStateChanged private void jRadioButtonAcmeMarkCpuStartingItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkCpuStartingItemStateChanged option.acmeStarting=Assembler.Starting.MARK_CPU; }//GEN-LAST:event_jRadioButtonAcmeMarkCpuStartingItemStateChanged private void jRadioButtonAcmeAsterixOriginItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeAsterixOriginItemStateChanged option.acmeOrigin=Assembler.Origin.ASTERISK; }//GEN-LAST:event_jRadioButtonAcmeAsterixOriginItemStateChanged private void jRadioButtonAcmeSemicolonCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeSemicolonCommentItemStateChanged option.acmeComment=Assembler.Comment.SEMICOLON; }//GEN-LAST:event_jRadioButtonAcmeSemicolonCommentItemStateChanged private void jRadioButtonAcmeSemicolonBlockCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeSemicolonBlockCommentItemStateChanged option.acmeBlockComment=Assembler.BlockComment.SEMICOLON; }//GEN-LAST:event_jRadioButtonAcmeSemicolonBlockCommentItemStateChanged private void jRadioButtonAcmeMarkIfBlockCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkIfBlockCommentItemStateChanged option.acmeBlockComment=Assembler.BlockComment.MARK_IF; }//GEN-LAST:event_jRadioButtonAcmeMarkIfBlockCommentItemStateChanged private void jRadioButtonAcme24HexMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcme24HexMonoSpriteItemStateChanged option.acmeMonoSprite=Assembler.MonoSprite.TWENTYFOUR_HEX; }//GEN-LAST:event_jRadioButtonAcme24HexMonoSpriteItemStateChanged private void jRadioButtonAcme24HexMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcme24HexMultiSpriteItemStateChanged option.acmeMultiSprite=Assembler.MultiSprite.TWENTYFOUR_HEX; }//GEN-LAST:event_jRadioButtonAcme24HexMultiSpriteItemStateChanged private void jRadioButtonAcme24BinMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcme24BinMonoSpriteItemStateChanged option.acmeMonoSprite=Assembler.MonoSprite.TWENTYFOUR_BIN; }//GEN-LAST:event_jRadioButtonAcme24BinMonoSpriteItemStateChanged private void jRadioButtonAcme24BinMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcme24BinMultiSpriteItemStateChanged option.acmeMultiSprite=Assembler.MultiSprite.TWENTYFOUR_BIN; }//GEN-LAST:event_jRadioButtonAcme24BinMultiSpriteItemStateChanged private void jRadioButtonAcmeMacroHexMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMacroHexMonoSpriteItemStateChanged option.acmeMonoSprite=Assembler.MonoSprite.MACRO2_HEX; }//GEN-LAST:event_jRadioButtonAcmeMacroHexMonoSpriteItemStateChanged private void jRadioButtonAcmeMacroHexMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMacroHexMultiSpriteItemStateChanged option.acmeMultiSprite=Assembler.MultiSprite.MACRO2_HEX; }//GEN-LAST:event_jRadioButtonAcmeMacroHexMultiSpriteItemStateChanged private void jRadioButtonAcmeMacroBinMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMacroBinMonoSpriteItemStateChanged option.acmeMonoSprite=Assembler.MonoSprite.MACRO2_BIN; }//GEN-LAST:event_jRadioButtonAcmeMacroBinMonoSpriteItemStateChanged private void jRadioButtonAcmeMacroBinMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMacroBinMultiSpriteItemStateChanged option.acmeMultiSprite=Assembler.MultiSprite.MACRO2_BIN; }//GEN-LAST:event_jRadioButtonAcmeMacroBinMultiSpriteItemStateChanged private void jRadioButtonAcmeMark08ByteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMark08ByteItemStateChanged option.acmeByte=Assembler.Byte.ZEROEIGHT_BYTE; }//GEN-LAST:event_jRadioButtonAcmeMark08ByteItemStateChanged private void jRadioButtonAcmeMarkByByteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkByByteItemStateChanged option.acmeByte=Assembler.Byte.MARK_BY_BYTE; }//GEN-LAST:event_jRadioButtonAcmeMarkByByteItemStateChanged private void jRadioButtonAcmeMarkTwentyfourTribyteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkTwentyfourTribyteItemStateChanged option.acmeTribyte=Assembler.Tribyte.MARK_TWENTYFOUR_TRIBYTE; }//GEN-LAST:event_jRadioButtonAcmeMarkTwentyfourTribyteItemStateChanged private void jRadioButtonAcmeMarkThirtytwoLongItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkThirtytwoLongItemStateChanged option.acmeLong=Assembler.Long.MARK_THIRTYTWO_LONG; }//GEN-LAST:event_jRadioButtonAcmeMarkThirtytwoLongItemStateChanged private void jRadioButtonAcmeMacroWordSwappedItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMacroWordSwappedItemStateChanged option.acmeWordSwapped=Assembler.WordSwapped.MACRO2_WORD_SWAPPED; }//GEN-LAST:event_jRadioButtonAcmeMacroWordSwappedItemStateChanged private void jRadioButtonAcmeMarkTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkTextItemStateChanged option.acmeText=Assembler.Text.MARK_TEXT; }//GEN-LAST:event_jRadioButtonAcmeMarkTextItemStateChanged private void jRadioButtonAcmeMarkTxTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkTxTextItemStateChanged option.acmeText=Assembler.Text.MARK_TX_TEXT; }//GEN-LAST:event_jRadioButtonAcmeMarkTxTextItemStateChanged private void jRadioButtonAcmeMarkRawTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkRawTextItemStateChanged option.acmeText=Assembler.Text.MARK_RAW_TEXT; }//GEN-LAST:event_jRadioButtonAcmeMarkRawTextItemStateChanged private void jRadioButtonAcmeMarkNumTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkNumTextItemStateChanged option.acmeNumText=Assembler.NumText.MARK_TEXT_NUMTEXT; }//GEN-LAST:event_jRadioButtonAcmeMarkNumTextItemStateChanged private void jRadioButtonAcmeMarkTxNumTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkTxNumTextItemStateChanged option.acmeNumText=Assembler.NumText.MARK_TX_NUMTEXT; }//GEN-LAST:event_jRadioButtonAcmeMarkTxNumTextItemStateChanged private void jRadioButtonAcmeMarkRawNumTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkRawNumTextItemStateChanged option.acmeNumText=Assembler.NumText.MARK_RAW_NUMTEXT; }//GEN-LAST:event_jRadioButtonAcmeMarkRawNumTextItemStateChanged private void jRadioButtonAcmeMarkZeroTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkZeroTextItemStateChanged option.acmeZeroText=Assembler.ZeroText.MARK_TEXT_ZEROTEXT; }//GEN-LAST:event_jRadioButtonAcmeMarkZeroTextItemStateChanged private void jRadioButtonAcmeMarkTxZeroTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkTxZeroTextItemStateChanged option.acmeZeroText=Assembler.ZeroText.MARK_TX_ZEROTEXT; }//GEN-LAST:event_jRadioButtonAcmeMarkTxZeroTextItemStateChanged private void jRadioButtonAcmeMarkRawZeroTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkRawZeroTextItemStateChanged option.acmeZeroText=Assembler.ZeroText.MARK_RAW_ZEROTEXT; }//GEN-LAST:event_jRadioButtonAcmeMarkRawZeroTextItemStateChanged private void jRadioButtonAcmeMarkWordAddressItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkWordAddressItemStateChanged option.acmeAddress=Assembler.Address.MARK_WORD_ADDR; }//GEN-LAST:event_jRadioButtonAcmeMarkWordAddressItemStateChanged private void jRadioButtonAcmeMark16WordAddressItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMark16WordAddressItemStateChanged option.acmeAddress=Assembler.Address.SIXTEEN_WORD_ADDR; }//GEN-LAST:event_jRadioButtonAcmeMark16WordAddressItemStateChanged private void jRadioButtonAcmeMacroStackWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMacroStackWordItemStateChanged option.acmeStackWord=Assembler.StackWord.MACRO2_STACKWORD; }//GEN-LAST:event_jRadioButtonAcmeMacroStackWordItemStateChanged private void jRadioButtonAcmeMarkHighTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkHighTextItemStateChanged option.acmeHighText=Assembler.HighText.MARK_TEXT_HIGHTEXT; }//GEN-LAST:event_jRadioButtonAcmeMarkHighTextItemStateChanged private void jRadioButtonAcmeMarkTxHighTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkTxHighTextItemStateChanged option.acmeHighText=Assembler.HighText.MARK_TX_HIGHTEXT; }//GEN-LAST:event_jRadioButtonAcmeMarkTxHighTextItemStateChanged private void jRadioButtonAcmeMarkRawHighTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkRawHighTextItemStateChanged option.acmeHighText=Assembler.HighText.MARK_RAW_HIGHTEXT; }//GEN-LAST:event_jRadioButtonAcmeMarkRawHighTextItemStateChanged private void jRadioButtonAcmeMarkShiftTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkShiftTextItemStateChanged option.acmeShiftText=Assembler.ShiftText.MARK_TEXT_SHIFTTEXT; }//GEN-LAST:event_jRadioButtonAcmeMarkShiftTextItemStateChanged private void jRadioButtonAcmeMarkTxShiftTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkTxShiftTextItemStateChanged option.acmeShiftText=Assembler.ShiftText.MARK_TX_SHIFTTEXT; }//GEN-LAST:event_jRadioButtonAcmeMarkTxShiftTextItemStateChanged private void jRadioButtonAcmeMarkRawShiftTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkRawShiftTextItemStateChanged option.acmeShiftText=Assembler.ShiftText.MARK_RAW_SHIFTTEXT; }//GEN-LAST:event_jRadioButtonAcmeMarkRawShiftTextItemStateChanged private void jRadioButtonAcmeMarkScrScreenTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkScrScreenTextItemStateChanged option.acmeScreenText=Assembler.ScreenText.MARK_SCR_SCREENTEXT; }//GEN-LAST:event_jRadioButtonAcmeMarkScrScreenTextItemStateChanged private void jRadioButtonAcmeMarkPetPetasciiTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAcmeMarkPetPetasciiTextItemStateChanged option.acmePetasciiText=Assembler.PetasciiText.MARK_PET_PETASCIITEXT; }//GEN-LAST:event_jRadioButtonAcmeMarkPetPetasciiTextItemStateChanged // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.ButtonGroup buttonGroupAcmeAddress; private javax.swing.ButtonGroup buttonGroupAcmeBlockComment; private javax.swing.ButtonGroup buttonGroupAcmeByte; private javax.swing.ButtonGroup buttonGroupAcmeComment; private javax.swing.ButtonGroup buttonGroupAcmeHighText; private javax.swing.ButtonGroup buttonGroupAcmeLabel; private javax.swing.ButtonGroup buttonGroupAcmeLong; private javax.swing.ButtonGroup buttonGroupAcmeMonoSprite; private javax.swing.ButtonGroup buttonGroupAcmeMultiSprite; private javax.swing.ButtonGroup buttonGroupAcmeNumText; private javax.swing.ButtonGroup buttonGroupAcmeOrigin; private javax.swing.ButtonGroup buttonGroupAcmePetsciiText; private javax.swing.ButtonGroup buttonGroupAcmeScreenText; private javax.swing.ButtonGroup buttonGroupAcmeShiftText; private javax.swing.ButtonGroup buttonGroupAcmeStackWord; private javax.swing.ButtonGroup buttonGroupAcmeStarting; private javax.swing.ButtonGroup buttonGroupAcmeText; private javax.swing.ButtonGroup buttonGroupAcmeTribyte; private javax.swing.ButtonGroup buttonGroupAcmeWord; private javax.swing.ButtonGroup buttonGroupAcmeWordSwapped; private javax.swing.ButtonGroup buttonGroupAcmeZeroText; private javax.swing.JLabel jLabelAcmeAddressDeclaration; private javax.swing.JLabel jLabelAcmeBlockCommentDeclaration; private javax.swing.JLabel jLabelAcmeByteDeclaration; private javax.swing.JLabel jLabelAcmeCommentDeclaration1; private javax.swing.JLabel jLabelAcmeHighTextDeclaration; private javax.swing.JLabel jLabelAcmeLabelDeclaration; private javax.swing.JLabel jLabelAcmeLongDeclaration; private javax.swing.JLabel jLabelAcmeMonoSpriteDeclaration; private javax.swing.JLabel jLabelAcmeMultiSpriteDeclaration; private javax.swing.JLabel jLabelAcmeNumTextDeclaration; private javax.swing.JLabel jLabelAcmePetasciiTextDeclaration; private javax.swing.JLabel jLabelAcmeScreenTextDeclaration; private javax.swing.JLabel jLabelAcmeShiftTextDeclaration; private javax.swing.JLabel jLabelAcmeStackWordDeclaration; private javax.swing.JLabel jLabelAcmeStartingDeclaration; private javax.swing.JLabel jLabelAcmeTextDeclaration; private javax.swing.JLabel jLabelAcmeTribyteDeclaration; private javax.swing.JLabel jLabelAcmeWordDeclaration; private javax.swing.JLabel jLabelAcmeWordSwappedDeclaration; private javax.swing.JLabel jLabelAcmeZeroTextDeclaration; private javax.swing.JLabel jLabelScmeOriginDeclaration; private javax.swing.JRadioButton jRadioButtonAcme24BinMonoSprite; private javax.swing.JRadioButton jRadioButtonAcme24BinMultiSprite; private javax.swing.JRadioButton jRadioButtonAcme24HexMonoSprite; private javax.swing.JRadioButton jRadioButtonAcme24HexMultiSprite; private javax.swing.JRadioButton jRadioButtonAcmeAsterixOrigin; private javax.swing.JRadioButton jRadioButtonAcmeLabelName; private javax.swing.JRadioButton jRadioButtonAcmeLabelNameColon; private javax.swing.JRadioButton jRadioButtonAcmeMacroBinMonoSprite; private javax.swing.JRadioButton jRadioButtonAcmeMacroBinMultiSprite; private javax.swing.JRadioButton jRadioButtonAcmeMacroHexMonoSprite; private javax.swing.JRadioButton jRadioButtonAcmeMacroHexMultiSprite; private javax.swing.JRadioButton jRadioButtonAcmeMacroStackWord; private javax.swing.JRadioButton jRadioButtonAcmeMacroWordSwapped; private javax.swing.JRadioButton jRadioButtonAcmeMark08Byte; private javax.swing.JRadioButton jRadioButtonAcmeMark16Word; private javax.swing.JRadioButton jRadioButtonAcmeMark16WordAddress; private javax.swing.JRadioButton jRadioButtonAcmeMark8Byte; private javax.swing.JRadioButton jRadioButtonAcmeMarkByByte; private javax.swing.JRadioButton jRadioButtonAcmeMarkByte; private javax.swing.JRadioButton jRadioButtonAcmeMarkCpuStarting; private javax.swing.JRadioButton jRadioButtonAcmeMarkHighText; private javax.swing.JRadioButton jRadioButtonAcmeMarkIfBlockComment; private javax.swing.JRadioButton jRadioButtonAcmeMarkNumText; private javax.swing.JRadioButton jRadioButtonAcmeMarkPetPetasciiText; private javax.swing.JRadioButton jRadioButtonAcmeMarkRawHighText; private javax.swing.JRadioButton jRadioButtonAcmeMarkRawNumText; private javax.swing.JRadioButton jRadioButtonAcmeMarkRawShiftText; private javax.swing.JRadioButton jRadioButtonAcmeMarkRawText; private javax.swing.JRadioButton jRadioButtonAcmeMarkRawZeroText; private javax.swing.JRadioButton jRadioButtonAcmeMarkScrScreenText; private javax.swing.JRadioButton jRadioButtonAcmeMarkShiftText; private javax.swing.JRadioButton jRadioButtonAcmeMarkText; private javax.swing.JRadioButton jRadioButtonAcmeMarkThirtytwoLong; private javax.swing.JRadioButton jRadioButtonAcmeMarkTwentyfourTribyte; private javax.swing.JRadioButton jRadioButtonAcmeMarkTxHighText; private javax.swing.JRadioButton jRadioButtonAcmeMarkTxNumText; private javax.swing.JRadioButton jRadioButtonAcmeMarkTxShiftText; private javax.swing.JRadioButton jRadioButtonAcmeMarkTxText; private javax.swing.JRadioButton jRadioButtonAcmeMarkTxZeroText; private javax.swing.JRadioButton jRadioButtonAcmeMarkWord; private javax.swing.JRadioButton jRadioButtonAcmeMarkWordAddress; private javax.swing.JRadioButton jRadioButtonAcmeMarkZeroText; private javax.swing.JRadioButton jRadioButtonAcmeSemicolonBlockComment; private javax.swing.JRadioButton jRadioButtonAcmeSemicolonComment; private javax.swing.JScrollPane jScrollPaneAcme24BinMonoSprite; private javax.swing.JScrollPane jScrollPaneAcme24BinMultiSprite; private javax.swing.JScrollPane jScrollPaneAcme24HexMonoSprite; private javax.swing.JScrollPane jScrollPaneAcmeByteHexMultiSprite; private javax.swing.JScrollPane jScrollPaneAcmeLabelMarkCpuStarting; private javax.swing.JScrollPane jScrollPaneAcmeLabelName; private javax.swing.JScrollPane jScrollPaneAcmeLabelNameColon; private javax.swing.JScrollPane jScrollPaneAcmeMacroBinMonoSprite; private javax.swing.JScrollPane jScrollPaneAcmeMacroBinMultiSprite; private javax.swing.JScrollPane jScrollPaneAcmeMacroHexMonoSprite; private javax.swing.JScrollPane jScrollPaneAcmeMacroHexMultiSprite; private javax.swing.JScrollPane jScrollPaneAcmeMacroStackWord; private javax.swing.JScrollPane jScrollPaneAcmeMacroWordSwapped; private javax.swing.JScrollPane jScrollPaneAcmeMark08Byte; private javax.swing.JScrollPane jScrollPaneAcmeMark16Word; private javax.swing.JScrollPane jScrollPaneAcmeMark16WordAddress; private javax.swing.JScrollPane jScrollPaneAcmeMark8Byte; private javax.swing.JScrollPane jScrollPaneAcmeMarkByByte; private javax.swing.JScrollPane jScrollPaneAcmeMarkByte; private javax.swing.JScrollPane jScrollPaneAcmeMarkHighText; private javax.swing.JScrollPane jScrollPaneAcmeMarkIfBlockComment; private javax.swing.JScrollPane jScrollPaneAcmeMarkNumText; private javax.swing.JScrollPane jScrollPaneAcmeMarkPetPetasciiText; private javax.swing.JScrollPane jScrollPaneAcmeMarkRawHighText; private javax.swing.JScrollPane jScrollPaneAcmeMarkRawNumText; private javax.swing.JScrollPane jScrollPaneAcmeMarkRawShiftText; private javax.swing.JScrollPane jScrollPaneAcmeMarkRawText; private javax.swing.JScrollPane jScrollPaneAcmeMarkRawZeroText; private javax.swing.JScrollPane jScrollPaneAcmeMarkScrScreenText; private javax.swing.JScrollPane jScrollPaneAcmeMarkShiftText; private javax.swing.JScrollPane jScrollPaneAcmeMarkText; private javax.swing.JScrollPane jScrollPaneAcmeMarkThirtytwoLong; private javax.swing.JScrollPane jScrollPaneAcmeMarkTxHighText; private javax.swing.JScrollPane jScrollPaneAcmeMarkTxNumText; private javax.swing.JScrollPane jScrollPaneAcmeMarkTxShiftText; private javax.swing.JScrollPane jScrollPaneAcmeMarkTxText; private javax.swing.JScrollPane jScrollPaneAcmeMarkTxZeroText; private javax.swing.JScrollPane jScrollPaneAcmeMarkWord; private javax.swing.JScrollPane jScrollPaneAcmeMarkWordAddress; private javax.swing.JScrollPane jScrollPaneAcmeMarkZeroText; private javax.swing.JScrollPane jScrollPaneAcmeSemicolonBlockComment; private javax.swing.JScrollPane jScrollPaneAcmeSemicolonComment; private javax.swing.JScrollPane jScrollPaneAcmeTwentyfourTribyte; private javax.swing.JScrollPane jScrollPaneDasmLabelAsterixOrigin; private javax.swing.JTextPane jTextPaneAcme24BinMonoSprite; private javax.swing.JTextPane jTextPaneAcme24BinMultiSprite; private javax.swing.JTextPane jTextPaneAcme24HexMonoSprite; private javax.swing.JTextPane jTextPaneAcme24HexMultiSprite; private javax.swing.JTextPane jTextPaneAcmeAsterixOrigin; private javax.swing.JTextPane jTextPaneAcmeLabelName; private javax.swing.JTextPane jTextPaneAcmeLabelNameColon; private javax.swing.JTextPane jTextPaneAcmeMacroBinMonoSprite; private javax.swing.JTextPane jTextPaneAcmeMacroBinMultiSprite; private javax.swing.JTextPane jTextPaneAcmeMacroHexMonoSprite; private javax.swing.JTextPane jTextPaneAcmeMacroHexMultiSprite; private javax.swing.JTextPane jTextPaneAcmeMacroStackWord; private javax.swing.JTextPane jTextPaneAcmeMacroWordSwapped; private javax.swing.JTextPane jTextPaneAcmeMark08Byte; private javax.swing.JTextPane jTextPaneAcmeMark16Word; private javax.swing.JTextPane jTextPaneAcmeMark16WordAddress; private javax.swing.JTextPane jTextPaneAcmeMark8Byte; private javax.swing.JTextPane jTextPaneAcmeMarkByByte; private javax.swing.JTextPane jTextPaneAcmeMarkByte; private javax.swing.JTextPane jTextPaneAcmeMarkCpuStarting; private javax.swing.JTextPane jTextPaneAcmeMarkHighText; private javax.swing.JTextPane jTextPaneAcmeMarkIfBlockComment; private javax.swing.JTextPane jTextPaneAcmeMarkNumText; private javax.swing.JTextPane jTextPaneAcmeMarkPetPetasciiText; private javax.swing.JTextPane jTextPaneAcmeMarkRawHighText; private javax.swing.JTextPane jTextPaneAcmeMarkRawNumText; private javax.swing.JTextPane jTextPaneAcmeMarkRawShiftText; private javax.swing.JTextPane jTextPaneAcmeMarkRawText; private javax.swing.JTextPane jTextPaneAcmeMarkRawZeroText; private javax.swing.JTextPane jTextPaneAcmeMarkScrScreenText; private javax.swing.JTextPane jTextPaneAcmeMarkShiftText; private javax.swing.JTextPane jTextPaneAcmeMarkText; private javax.swing.JTextPane jTextPaneAcmeMarkThirtytwoLong; private javax.swing.JTextPane jTextPaneAcmeMarkTwentyfourTribyte; private javax.swing.JTextPane jTextPaneAcmeMarkTxHighText; private javax.swing.JTextPane jTextPaneAcmeMarkTxNumText; private javax.swing.JTextPane jTextPaneAcmeMarkTxShiftText; private javax.swing.JTextPane jTextPaneAcmeMarkTxText; private javax.swing.JTextPane jTextPaneAcmeMarkTxZeroText; private javax.swing.JTextPane jTextPaneAcmeMarkWord; private javax.swing.JTextPane jTextPaneAcmeMarkWordAddress; private javax.swing.JTextPane jTextPaneAcmeMarkZeroText; private javax.swing.JTextPane jTextPaneAcmeSemicolonBlockComment; private javax.swing.JTextPane jTextPaneAcmeSemicolonComment; // End of variables declaration//GEN-END:variables /** * Apply the option for ACME */ public void applyOptionAcme() { switch (option.acmeStarting) { case MARK_CPU: jRadioButtonAcmeMarkCpuStarting.setSelected(true); break; } switch (option.acmeOrigin) { case ASTERISK: jRadioButtonAcmeAsterixOrigin.setSelected(true); break; } switch (option.acmeComment) { case SEMICOLON: jRadioButtonAcmeSemicolonComment.setSelected(true); break; } switch (option.acmeBlockComment) { case SEMICOLON: jRadioButtonAcmeSemicolonBlockComment.setSelected(true); break; case MARK_IF: jRadioButtonAcmeMarkIfBlockComment.setSelected(true); break; } switch (option.acmeLabel) { case NAME: jRadioButtonAcmeLabelName.setSelected(true); break; case NAME_COLON: jRadioButtonAcmeLabelNameColon.setSelected(true); break; } switch (option.acmeByte) { case MARK_BYTE: jRadioButtonAcmeMarkByte.setSelected(true); break; case EIGHT_BYTE: jRadioButtonAcmeMark8Byte.setSelected(true); break; case MARK_BY_BYTE: jRadioButtonAcmeMarkByByte.setSelected(true); break; case ZEROEIGHT_BYTE: jRadioButtonAcmeMark08Byte.setSelected(true); break; } switch (option.acmeWord) { case MARK_WORD: jRadioButtonAcmeMarkWord.setSelected(true); break; case SIXTEEN_WORD: jRadioButtonAcmeMark16Word.setSelected(true); break; } switch (option.acmeWordSwapped) { case MACRO2_WORD_SWAPPED: jRadioButtonAcmeMacroWordSwapped.setSelected(true); break; } switch (option.acmeTribyte) { case MARK_TWENTYFOUR_TRIBYTE: jRadioButtonAcmeMarkTwentyfourTribyte.setSelected(true); break; } switch (option.acmeLong) { case MARK_THIRTYTWO_LONG: jRadioButtonAcmeMarkThirtytwoLong.setSelected(true); break; } switch (option.acmeAddress) { case MARK_WORD_ADDR: jRadioButtonAcmeMarkWordAddress.setSelected(true); break; case SIXTEEN_WORD_ADDR: jRadioButtonAcmeMark16WordAddress.setSelected(true); break; } switch (option.acmeStackWord) { case MACRO2_STACKWORD: jRadioButtonAcmeMacroStackWord.setSelected(true); break; } switch (option.acmeMonoSprite) { case BYTE_HEX: jRadioButtonAcme24HexMonoSprite.setSelected(true); break; case BYTE_BIN: jRadioButtonAcme24BinMonoSprite.setSelected(true); break; case MACRO1_HEX: jRadioButtonAcmeMacroHexMonoSprite.setSelected(true); break; case MACRO1_BIN: jRadioButtonAcmeMacroBinMonoSprite.setSelected(true); break; } switch (option.acmeMultiSprite) { case BYTE_HEX: jRadioButtonAcme24HexMultiSprite.setSelected(true); break; case BYTE_BIN: jRadioButtonAcme24BinMultiSprite.setSelected(true); break; case MACRO1_HEX: jRadioButtonAcmeMacroHexMultiSprite.setSelected(true); break; case MACRO1_BIN: jRadioButtonAcmeMacroBinMultiSprite.setSelected(true); break; } switch (option.acmeText) { case MARK_TEXT: jRadioButtonAcmeMarkText.setSelected(true); break; case MARK_TX_TEXT: jRadioButtonAcmeMarkTxText.setSelected(true); break; case MARK_RAW_TEXT: jRadioButtonAcmeMarkRawText.setSelected(true); break; } switch (option.acmeNumText) { case MARK_TEXT_NUMTEXT: jRadioButtonAcmeMarkNumText.setSelected(true); break; case MARK_TX_NUMTEXT: jRadioButtonAcmeMarkTxNumText.setSelected(true); break; case MARK_RAW_NUMTEXT: jRadioButtonAcmeMarkRawNumText.setSelected(true); break; } switch (option.acmeZeroText) { case MARK_TEXT_ZEROTEXT: jRadioButtonAcmeMarkZeroText.setSelected(true); break; case MARK_TX_ZEROTEXT: jRadioButtonAcmeMarkTxZeroText.setSelected(true); break; case MARK_RAW_ZEROTEXT: jRadioButtonAcmeMarkRawZeroText.setSelected(true); break; } switch (option.acmeHighText) { case MARK_TEXT_HIGHTEXT: jRadioButtonAcmeMarkHighText.setSelected(true); break; case MARK_TX_HIGHTEXT: jRadioButtonAcmeMarkTxHighText.setSelected(true); break; case MARK_RAW_HIGHTEXT: jRadioButtonAcmeMarkRawHighText.setSelected(true); break; } switch (option.acmeShiftText) { case MARK_TEXT_SHIFTTEXT: jRadioButtonAcmeMarkShiftText.setSelected(true); break; case MARK_TX_SHIFTTEXT: jRadioButtonAcmeMarkTxShiftText.setSelected(true); break; case MARK_RAW_SHIFTTEXT: jRadioButtonAcmeMarkRawShiftText.setSelected(true); break; } switch (option.acmeScreenText) { case MARK_SCR_SCREENTEXT: jRadioButtonAcmeMarkScrScreenText.setSelected(true); break; } switch (option.acmePetasciiText) { case MARK_PET_PETASCIITEXT: jRadioButtonAcmeMarkPetPetasciiText.setSelected(true); break; } } }
126,763
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
JGlassPanel.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/JGlassPanel.java
/** * @(#)JGlassPanel 2022/05/03 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing; import sw_emulator.software.Assembler; import sw_emulator.swing.main.Option; /** * A panel for 64Tass assembler option * * @author ice */ public class JGlassPanel extends javax.swing.JPanel { /** Option file to use */ Option option; /** * Creates new form JGlassPanel */ public JGlassPanel() { initComponents(); } /** * Set up the panel with the option * * @param option the option to use */ public void setUp(Option option) { this.option=option; } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroupGlassStarting = new javax.swing.ButtonGroup(); buttonGroupGlassLabel = new javax.swing.ButtonGroup(); buttonGroupGlassOrigin = new javax.swing.ButtonGroup(); buttonGroupGlassByte = new javax.swing.ButtonGroup(); buttonGroupGlassWord = new javax.swing.ButtonGroup(); buttonGroupGlassComment = new javax.swing.ButtonGroup(); buttonGroupGlassBlockComment = new javax.swing.ButtonGroup(); buttonGroupGlassWordSwapped = new javax.swing.ButtonGroup(); buttonGroupGlassTribyte = new javax.swing.ButtonGroup(); buttonGroupGlassLong = new javax.swing.ButtonGroup(); buttonGroupGlassAddress = new javax.swing.ButtonGroup(); buttonGroupGlassStackWord = new javax.swing.ButtonGroup(); buttonGroupGlassMonoSprite = new javax.swing.ButtonGroup(); buttonGroupGlassMultiSprite = new javax.swing.ButtonGroup(); buttonGroupGlassText = new javax.swing.ButtonGroup(); buttonGroupGlassNumText = new javax.swing.ButtonGroup(); buttonGroupGlassZeroText = new javax.swing.ButtonGroup(); buttonGroupGlassHighText = new javax.swing.ButtonGroup(); buttonGroupGlassShiftText = new javax.swing.ButtonGroup(); buttonGroupGlassScreenText = new javax.swing.ButtonGroup(); buttonGroupGlassPetsciiText = new javax.swing.ButtonGroup(); jLabelGlassLabelDeclaration = new javax.swing.JLabel(); jRadioButtonGlassLabelName = new javax.swing.JRadioButton(); jScrollPaneGlassByte = new javax.swing.JScrollPane(); jTextPaneGlassLabelName = new javax.swing.JTextPane(); jLabelGlassByteDeclaration = new javax.swing.JLabel(); jRadioButtonGlassDbByte = new javax.swing.JRadioButton(); jScrollPaneGlassWord = new javax.swing.JScrollPane(); jTextPaneGlassDbByte = new javax.swing.JTextPane(); jLabelGlassWordDeclaration = new javax.swing.JLabel(); jRadioButtonGlassDwWord = new javax.swing.JRadioButton(); jScrollPaneGlassDotWord = new javax.swing.JScrollPane(); jTextPaneGlassDwWord = new javax.swing.JTextPane(); jLabelGlassCommentDeclaration = new javax.swing.JLabel(); jRadioButtonGlassSemicolonComment = new javax.swing.JRadioButton(); jScrollPaneTmpxSemicolonComment1 = new javax.swing.JScrollPane(); jTextPaneGlassSemicolonComment = new javax.swing.JTextPane(); jLabelTmpxBlockCommentDeclaration1 = new javax.swing.JLabel(); jRadioButtonTmpxSemicolonBlockComment1 = new javax.swing.JRadioButton(); jScrollPaneTmpxSemicolonBlockComment1 = new javax.swing.JScrollPane(); jTextPaneTmpxSemicolonBlockComment1 = new javax.swing.JTextPane(); jLabelGlassOriginDeclaration = new javax.swing.JLabel(); jRadioButtonGlassOrigin = new javax.swing.JRadioButton(); jScrollPaneTmpxAsterixOrigin1 = new javax.swing.JScrollPane(); jTextPaneGlassOrigin = new javax.swing.JTextPane(); jLabelGlassStartingDeclaration = new javax.swing.JLabel(); jRadioButtonGlassFakeStarting = new javax.swing.JRadioButton(); jScrollPaneGlassFakeStarting = new javax.swing.JScrollPane(); jTextPaneGlassFakeStarting = new javax.swing.JTextPane(); jLabelGlassMonoSpriteDeclaration = new javax.swing.JLabel(); jLabelGlassMultiSpriteDeclaration = new javax.swing.JLabel(); jRadioButtonGlassByteHexMonoSprite = new javax.swing.JRadioButton(); jRadioButtonGlassByteHexMultiSprite = new javax.swing.JRadioButton(); jScrollPaneTmpxByteHexMultiSprite1 = new javax.swing.JScrollPane(); TmpxPaneGlassByteHexMultiSprite = new javax.swing.JTextPane(); jScrollPaneTmpxByteHexMonoSprite1 = new javax.swing.JScrollPane(); jTextPaneGlassByteHexMonoSprite = new javax.swing.JTextPane(); jRadioButtonGlassByteBinMonoSprite = new javax.swing.JRadioButton(); jRadioButtonGlassByteBinMultiSprite = new javax.swing.JRadioButton(); jScrollPaneTmpxByteBinMultiSprite1 = new javax.swing.JScrollPane(); jTextPaneGlassByteBinMultiSprite = new javax.swing.JTextPane(); jScrollPaneTmpxByteBinMonoSprite1 = new javax.swing.JScrollPane(); jTextPaneGlassByteBinMonoSprite = new javax.swing.JTextPane(); jRadioButtonGlassMacroHexMonoSprite = new javax.swing.JRadioButton(); jRadioButtonGlassMacroHexMultiSprite = new javax.swing.JRadioButton(); jScrollPaneTmpxMacroHexMultiSprite1 = new javax.swing.JScrollPane(); jTextPaneGlassMacroHexMultiSprite = new javax.swing.JTextPane(); jScrollPaneTmpxMacroHexMonoSprite1 = new javax.swing.JScrollPane(); jTextPaneGlassMacroHexMonoSprite = new javax.swing.JTextPane(); jRadioButtonGlassMacroBinMonoSprite = new javax.swing.JRadioButton(); jRadioButtonGlassMacroBinMultiSprite = new javax.swing.JRadioButton(); jScrollPaneTmpxMacroBinMultiSprite1 = new javax.swing.JScrollPane(); jTextPaneGlassMacroBinMultiSprite = new javax.swing.JTextPane(); jScrollPaneTmpxMacroBinMonoSprite1 = new javax.swing.JScrollPane(); jTextPaneGlassMacroBinMonoSprite = new javax.swing.JTextPane(); jLabelGlassTribyteDeclaration = new javax.swing.JLabel(); jRadioButtonGlassMacroTribyte = new javax.swing.JRadioButton(); jScrollPaneTmpxMacroTribyte1 = new javax.swing.JScrollPane(); jTextPaneGlassMacroTribyte = new javax.swing.JTextPane(); jLabelGlassLongDeclaration = new javax.swing.JLabel(); jRadioButtonGlassDdLong = new javax.swing.JRadioButton(); jScrollPaneTmpxMacroLong1 = new javax.swing.JScrollPane(); jTextPaneGlassMacroLong = new javax.swing.JTextPane(); jLabelGlassWordSwappedDeclaration = new javax.swing.JLabel(); jRadioButtonGlassMacroWordSwapped = new javax.swing.JRadioButton(); jScrollPaneTmpxMacroWordSwapped1 = new javax.swing.JScrollPane(); jTextPaneGlassMacroWordSwapped = new javax.swing.JTextPane(); jLabelGlassTextDeclaration = new javax.swing.JLabel(); jRadioButtonGlassDbText = new javax.swing.JRadioButton(); jScrollPaneTmpxDotText1 = new javax.swing.JScrollPane(); jTextPaneGlassDbText = new javax.swing.JTextPane(); jLabelGlassNumTextDeclaration = new javax.swing.JLabel(); jRadioButtonGlassDbNumText = new javax.swing.JRadioButton(); jScrollPaneTmpxDotTextNumText1 = new javax.swing.JScrollPane(); jTextPaneGlassDbNumText = new javax.swing.JTextPane(); jLabelGlassZeroTextDeclaration = new javax.swing.JLabel(); jRadioButtonGlassDbZeroText = new javax.swing.JRadioButton(); jScrollPaneTmpxDotNullZeroText1 = new javax.swing.JScrollPane(); jTextPaneGlassDbZeroText = new javax.swing.JTextPane(); jLabelGlassAddressDeclaration = new javax.swing.JLabel(); jRadioButtonGlassDwAddress = new javax.swing.JRadioButton(); jScrollPaneTmpxDotAddrAddress1 = new javax.swing.JScrollPane(); jTextPaneGlassDwAddress = new javax.swing.JTextPane(); jLabelTmpxGlassStackWordDeclaration = new javax.swing.JLabel(); jRadioButtonGlassMacroStackWord = new javax.swing.JRadioButton(); jScrollPaneTmpxDotRtaStackWord1 = new javax.swing.JScrollPane(); jTextPaneGlassMacroStackWord = new javax.swing.JTextPane(); jLabelGlassHighTextDeclaration = new javax.swing.JLabel(); jRadioButtonGlassDbHighText = new javax.swing.JRadioButton(); jScrollPaneTmpxDotShiftHighText1 = new javax.swing.JScrollPane(); jTextPaneGlassDbHighText = new javax.swing.JTextPane(); jLabelGlassShiftTextDeclaration = new javax.swing.JLabel(); jRadioButtonGlassDbShiftText = new javax.swing.JRadioButton(); jScrollPaneTmpxDotShiftlShiftText1 = new javax.swing.JScrollPane(); jTextPaneGlassDbShiftText = new javax.swing.JTextPane(); jLabelGlassScreenTextDeclaration = new javax.swing.JLabel(); jRadioButtonGlassDbScreenText = new javax.swing.JRadioButton(); jScrollPaneTmpxDotScreenText1 = new javax.swing.JScrollPane(); jTextPaneDbScreenText = new javax.swing.JTextPane(); jLabelGlassPetasciiTextDeclaration = new javax.swing.JLabel(); jRadioButtonGlassDbPetasciiText = new javax.swing.JRadioButton(); jScrollPaneTmpxDotPetasciiText1 = new javax.swing.JScrollPane(); jTextPaneGlassDbPetasciiText = new javax.swing.JTextPane(); jRadioButtonGlassLabelNameColon = new javax.swing.JRadioButton(); jScrollPaneDasmLabelNameColon = new javax.swing.JScrollPane(); jTextPaneGlassLabelNameColon = new javax.swing.JTextPane(); jLabelGlassLabelDeclaration.setText("Label:"); buttonGroupGlassLabel.add(jRadioButtonGlassLabelName); jRadioButtonGlassLabelName.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassLabelNameItemStateChanged(evt); } }); jScrollPaneGlassByte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneGlassByte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassLabelName.setEditable(false); jTextPaneGlassLabelName.setContentType("text/html"); // NOI18N jTextPaneGlassLabelName.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <font color='black'>zzzz</font>\n </p\n </body>\n</html>\n"); jScrollPaneGlassByte.setViewportView(jTextPaneGlassLabelName); jLabelGlassByteDeclaration.setText("Byte:"); buttonGroupGlassByte.add(jRadioButtonGlassDbByte); jRadioButtonGlassDbByte.setSelected(true); jRadioButtonGlassDbByte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassDbByteItemStateChanged(evt); } }); jScrollPaneGlassWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneGlassWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassDbByte.setEditable(false); jTextPaneGlassDbByte.setContentType("text/html"); // NOI18N jTextPaneGlassDbByte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> db</b> <font color='red'>$xx</font><br>\n <b> db</b> <font color='blue'>dd</font><br>\n <b> db</b> <font color='green'>%bb</font><br>\n <b> db</b> <font color='purple'>'c'</font>\n </p>\n </body>\n</html>\n"); jScrollPaneGlassWord.setViewportView(jTextPaneGlassDbByte); jLabelGlassWordDeclaration.setText("Word:"); jRadioButtonGlassDwWord.setSelected(true); jRadioButtonGlassDwWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassDwWordItemStateChanged(evt); } }); jScrollPaneGlassDotWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneGlassDotWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassDwWord.setEditable(false); jTextPaneGlassDwWord.setContentType("text/html"); // NOI18N jTextPaneGlassDwWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> dw</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneGlassDotWord.setViewportView(jTextPaneGlassDwWord); jLabelGlassCommentDeclaration.setText("Comment:"); buttonGroupGlassComment.add(jRadioButtonGlassSemicolonComment); jRadioButtonGlassSemicolonComment.setSelected(true); jRadioButtonGlassSemicolonComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassSemicolonCommentItemStateChanged(evt); } }); jScrollPaneTmpxSemicolonComment1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxSemicolonComment1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassSemicolonComment.setEditable(false); jTextPaneGlassSemicolonComment.setContentType("text/html"); // NOI18N jTextPaneGlassSemicolonComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>;</b> xxx\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxSemicolonComment1.setViewportView(jTextPaneGlassSemicolonComment); jLabelTmpxBlockCommentDeclaration1.setText("Block Comment:"); buttonGroupGlassBlockComment.add(jRadioButtonTmpxSemicolonBlockComment1); jRadioButtonTmpxSemicolonBlockComment1.setSelected(true); jRadioButtonTmpxSemicolonBlockComment1.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonTmpxSemicolonBlockComment1ItemStateChanged(evt); } }); jScrollPaneTmpxSemicolonBlockComment1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxSemicolonBlockComment1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneTmpxSemicolonBlockComment1.setEditable(false); jTextPaneTmpxSemicolonBlockComment1.setContentType("text/html"); // NOI18N jTextPaneTmpxSemicolonBlockComment1.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>;</b> xxx\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxSemicolonBlockComment1.setViewportView(jTextPaneTmpxSemicolonBlockComment1); jLabelGlassOriginDeclaration.setText("Origin:"); buttonGroupGlassOrigin.add(jRadioButtonGlassOrigin); jRadioButtonGlassOrigin.setSelected(true); jRadioButtonGlassOrigin.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassOriginItemStateChanged(evt); } }); jScrollPaneTmpxAsterixOrigin1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxAsterixOrigin1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassOrigin.setEditable(false); jTextPaneGlassOrigin.setContentType("text/html"); // NOI18N jTextPaneGlassOrigin.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>org</b> $xxyy\n </p>\n </body>\n</html>\n\n"); jScrollPaneTmpxAsterixOrigin1.setViewportView(jTextPaneGlassOrigin); jLabelGlassStartingDeclaration.setText("Starting:"); buttonGroupGlassStarting.add(jRadioButtonGlassFakeStarting); jRadioButtonGlassFakeStarting.setSelected(true); jRadioButtonGlassFakeStarting.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassFakeStartingItemStateChanged(evt); } }); jScrollPaneGlassFakeStarting.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneGlassFakeStarting.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassFakeStarting.setEditable(false); jTextPaneGlassFakeStarting.setContentType("text/html"); // NOI18N jTextPaneGlassFakeStarting.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>cpu</b> equ 80\n </p>\n </body>\n</html>\n"); jScrollPaneGlassFakeStarting.setViewportView(jTextPaneGlassFakeStarting); jLabelGlassMonoSpriteDeclaration.setText("Monocolor sprite:"); jLabelGlassMultiSpriteDeclaration.setText("Multicolor sprite:"); buttonGroupGlassMonoSprite.add(jRadioButtonGlassByteHexMonoSprite); jRadioButtonGlassByteHexMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassByteHexMonoSpriteItemStateChanged(evt); } }); buttonGroupGlassMultiSprite.add(jRadioButtonGlassByteHexMultiSprite); jRadioButtonGlassByteHexMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassByteHexMultiSpriteItemStateChanged(evt); } }); jScrollPaneTmpxByteHexMultiSprite1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxByteHexMultiSprite1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); TmpxPaneGlassByteHexMultiSprite.setEditable(false); TmpxPaneGlassByteHexMultiSprite.setContentType("text/html"); // NOI18N TmpxPaneGlassByteHexMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> [byte]</b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxByteHexMultiSprite1.setViewportView(TmpxPaneGlassByteHexMultiSprite); jScrollPaneTmpxByteHexMonoSprite1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxByteHexMonoSprite1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassByteHexMonoSprite.setEditable(false); jTextPaneGlassByteHexMonoSprite.setContentType("text/html"); // NOI18N jTextPaneGlassByteHexMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> [byte]</b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxByteHexMonoSprite1.setViewportView(jTextPaneGlassByteHexMonoSprite); buttonGroupGlassMonoSprite.add(jRadioButtonGlassByteBinMonoSprite); jRadioButtonGlassByteBinMonoSprite.setSelected(true); jRadioButtonGlassByteBinMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassByteBinMonoSpriteItemStateChanged(evt); } }); buttonGroupGlassMultiSprite.add(jRadioButtonGlassByteBinMultiSprite); jRadioButtonGlassByteBinMultiSprite.setSelected(true); jRadioButtonGlassByteBinMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassByteBinMultiSpriteItemStateChanged(evt); } }); jScrollPaneTmpxByteBinMultiSprite1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxByteBinMultiSprite1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassByteBinMultiSprite.setEditable(false); jTextPaneGlassByteBinMultiSprite.setContentType("text/html"); // NOI18N jTextPaneGlassByteBinMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[byte]</b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxByteBinMultiSprite1.setViewportView(jTextPaneGlassByteBinMultiSprite); jScrollPaneTmpxByteBinMonoSprite1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxByteBinMonoSprite1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassByteBinMonoSprite.setEditable(false); jTextPaneGlassByteBinMonoSprite.setContentType("text/html"); // NOI18N jTextPaneGlassByteBinMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[byte]</b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxByteBinMonoSprite1.setViewportView(jTextPaneGlassByteBinMonoSprite); buttonGroupGlassMonoSprite.add(jRadioButtonGlassMacroHexMonoSprite); jRadioButtonGlassMacroHexMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassMacroHexMonoSpriteItemStateChanged(evt); } }); buttonGroupGlassMultiSprite.add(jRadioButtonGlassMacroHexMultiSprite); jRadioButtonGlassMacroHexMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassMacroHexMultiSpriteItemStateChanged(evt); } }); jScrollPaneTmpxMacroHexMultiSprite1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxMacroHexMultiSprite1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassMacroHexMultiSprite.setEditable(false); jTextPaneGlassMacroHexMultiSprite.setContentType("text/html"); // NOI18N jTextPaneGlassMacroHexMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxMacroHexMultiSprite1.setViewportView(jTextPaneGlassMacroHexMultiSprite); jScrollPaneTmpxMacroHexMonoSprite1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxMacroHexMonoSprite1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassMacroHexMonoSprite.setEditable(false); jTextPaneGlassMacroHexMonoSprite.setContentType("text/html"); // NOI18N jTextPaneGlassMacroHexMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxMacroHexMonoSprite1.setViewportView(jTextPaneGlassMacroHexMonoSprite); buttonGroupGlassMonoSprite.add(jRadioButtonGlassMacroBinMonoSprite); jRadioButtonGlassMacroBinMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassMacroBinMonoSpriteItemStateChanged(evt); } }); buttonGroupGlassMultiSprite.add(jRadioButtonGlassMacroBinMultiSprite); jRadioButtonGlassMacroBinMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassMacroBinMultiSpriteItemStateChanged(evt); } }); jScrollPaneTmpxMacroBinMultiSprite1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxMacroBinMultiSprite1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassMacroBinMultiSprite.setEditable(false); jTextPaneGlassMacroBinMultiSprite.setContentType("text/html"); // NOI18N jTextPaneGlassMacroBinMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxMacroBinMultiSprite1.setViewportView(jTextPaneGlassMacroBinMultiSprite); jScrollPaneTmpxMacroBinMonoSprite1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxMacroBinMonoSprite1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassMacroBinMonoSprite.setEditable(false); jTextPaneGlassMacroBinMonoSprite.setContentType("text/html"); // NOI18N jTextPaneGlassMacroBinMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxMacroBinMonoSprite1.setViewportView(jTextPaneGlassMacroBinMonoSprite); jLabelGlassTribyteDeclaration.setText("Tribyte:"); buttonGroupGlassTribyte.add(jRadioButtonGlassMacroTribyte); jRadioButtonGlassMacroTribyte.setSelected(true); jRadioButtonGlassMacroTribyte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassMacroTribyteItemStateChanged(evt); } }); jScrollPaneTmpxMacroTribyte1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxMacroTribyte1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassMacroTribyte.setEditable(false); jTextPaneGlassMacroTribyte.setContentType("text/html"); // NOI18N jTextPaneGlassMacroTribyte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac]</b> <font color='red'>$xxyyzz</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxMacroTribyte1.setViewportView(jTextPaneGlassMacroTribyte); jLabelGlassLongDeclaration.setText("Long:"); buttonGroupGlassLong.add(jRadioButtonGlassDdLong); jRadioButtonGlassDdLong.setSelected(true); jRadioButtonGlassDdLong.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassDdLongItemStateChanged(evt); } }); jScrollPaneTmpxMacroLong1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxMacroLong1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassMacroLong.setEditable(false); jTextPaneGlassMacroLong.setContentType("text/html"); // NOI18N jTextPaneGlassMacroLong.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>dd</b> <font color='red'>$xxyyzzkk</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxMacroLong1.setViewportView(jTextPaneGlassMacroLong); jLabelGlassWordSwappedDeclaration.setText("Word Swapped:"); buttonGroupGlassWordSwapped.add(jRadioButtonGlassMacroWordSwapped); jRadioButtonGlassMacroWordSwapped.setSelected(true); jRadioButtonGlassMacroWordSwapped.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassMacroWordSwappedItemStateChanged(evt); } }); jScrollPaneTmpxMacroWordSwapped1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxMacroWordSwapped1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassMacroWordSwapped.setEditable(false); jTextPaneGlassMacroWordSwapped.setContentType("text/html"); // NOI18N jTextPaneGlassMacroWordSwapped.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac]</b> <font color='red'>$yyxx</font><br>\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxMacroWordSwapped1.setViewportView(jTextPaneGlassMacroWordSwapped); jLabelGlassTextDeclaration.setText("Text:"); buttonGroupGlassText.add(jRadioButtonGlassDbText); jRadioButtonGlassDbText.setSelected(true); jRadioButtonGlassDbText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassDbTextItemStateChanged(evt); } }); jScrollPaneTmpxDotText1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotText1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassDbText.setEditable(false); jTextPaneGlassDbText.setContentType("text/html"); // NOI18N jTextPaneGlassDbText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> db</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxDotText1.setViewportView(jTextPaneGlassDbText); jLabelGlassNumTextDeclaration.setText("Text #num chars:"); buttonGroupGlassNumText.add(jRadioButtonGlassDbNumText); jRadioButtonGlassDbNumText.setSelected(true); jRadioButtonGlassDbNumText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassDbNumTextItemStateChanged(evt); } }); jScrollPaneTmpxDotTextNumText1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotTextNumText1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassDbNumText.setEditable(false); jTextPaneGlassDbNumText.setContentType("text/html"); // NOI18N jTextPaneGlassDbNumText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> db</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jTextPaneGlassDbNumText.setPreferredSize(new java.awt.Dimension(66, 20)); jScrollPaneTmpxDotTextNumText1.setViewportView(jTextPaneGlassDbNumText); jLabelGlassZeroTextDeclaration.setText("Text 0 terminated:"); buttonGroupGlassZeroText.add(jRadioButtonGlassDbZeroText); jRadioButtonGlassDbZeroText.setSelected(true); jRadioButtonGlassDbZeroText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassDbZeroTextItemStateChanged(evt); } }); jScrollPaneTmpxDotNullZeroText1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotNullZeroText1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassDbZeroText.setEditable(false); jTextPaneGlassDbZeroText.setContentType("text/html"); // NOI18N jTextPaneGlassDbZeroText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> db</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxDotNullZeroText1.setViewportView(jTextPaneGlassDbZeroText); jLabelGlassAddressDeclaration.setText("Address:"); buttonGroupGlassAddress.add(jRadioButtonGlassDwAddress); jRadioButtonGlassDwAddress.setSelected(true); jRadioButtonGlassDwAddress.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassDwAddressItemStateChanged(evt); } }); jScrollPaneTmpxDotAddrAddress1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotAddrAddress1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassDwAddress.setEditable(false); jTextPaneGlassDwAddress.setContentType("text/html"); // NOI18N jTextPaneGlassDwAddress.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> dw</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxDotAddrAddress1.setViewportView(jTextPaneGlassDwAddress); jLabelTmpxGlassStackWordDeclaration.setText("Stack Word:"); buttonGroupGlassWord.add(jRadioButtonGlassMacroStackWord); jRadioButtonGlassMacroStackWord.setSelected(true); jRadioButtonGlassMacroStackWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassMacroStackWordItemStateChanged(evt); } }); jScrollPaneTmpxDotRtaStackWord1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotRtaStackWord1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassMacroStackWord.setEditable(false); jTextPaneGlassMacroStackWord.setContentType("text/html"); // NOI18N jTextPaneGlassMacroStackWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac]</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxDotRtaStackWord1.setViewportView(jTextPaneGlassMacroStackWord); jLabelGlassHighTextDeclaration.setText("Text '1' terminated:"); buttonGroupGlassHighText.add(jRadioButtonGlassDbHighText); jRadioButtonGlassDbHighText.setSelected(true); jRadioButtonGlassDbHighText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassDbHighTextItemStateChanged(evt); } }); jScrollPaneTmpxDotShiftHighText1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotShiftHighText1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassDbHighText.setEditable(false); jTextPaneGlassDbHighText.setContentType("text/html"); // NOI18N jTextPaneGlassDbHighText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> db</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jTextPaneGlassDbHighText.setPreferredSize(new java.awt.Dimension(66, 20)); jScrollPaneTmpxDotShiftHighText1.setViewportView(jTextPaneGlassDbHighText); jLabelGlassShiftTextDeclaration.setText("Text left shifted:"); buttonGroupGlassShiftText.add(jRadioButtonGlassDbShiftText); jRadioButtonGlassDbShiftText.setSelected(true); jRadioButtonGlassDbShiftText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassDbShiftTextItemStateChanged(evt); } }); jScrollPaneTmpxDotShiftlShiftText1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotShiftlShiftText1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassDbShiftText.setEditable(false); jTextPaneGlassDbShiftText.setContentType("text/html"); // NOI18N jTextPaneGlassDbShiftText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> db</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jTextPaneGlassDbShiftText.setPreferredSize(new java.awt.Dimension(66, 20)); jScrollPaneTmpxDotShiftlShiftText1.setViewportView(jTextPaneGlassDbShiftText); jLabelGlassScreenTextDeclaration.setText("Text to screen code:"); buttonGroupGlassScreenText.add(jRadioButtonGlassDbScreenText); jRadioButtonGlassDbScreenText.setSelected(true); jRadioButtonGlassDbScreenText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassDbScreenTextItemStateChanged(evt); } }); jScrollPaneTmpxDotScreenText1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotScreenText1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDbScreenText.setEditable(false); jTextPaneDbScreenText.setContentType("text/html"); // NOI18N jTextPaneDbScreenText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> db</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxDotScreenText1.setViewportView(jTextPaneDbScreenText); jLabelGlassPetasciiTextDeclaration.setText("Text to petascii code:"); buttonGroupGlassPetsciiText.add(jRadioButtonGlassDbPetasciiText); jRadioButtonGlassDbPetasciiText.setSelected(true); jRadioButtonGlassDbPetasciiText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassDbPetasciiTextItemStateChanged(evt); } }); jScrollPaneTmpxDotPetasciiText1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneTmpxDotPetasciiText1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassDbPetasciiText.setEditable(false); jTextPaneGlassDbPetasciiText.setContentType("text/html"); // NOI18N jTextPaneGlassDbPetasciiText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> db</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneTmpxDotPetasciiText1.setViewportView(jTextPaneGlassDbPetasciiText); buttonGroupGlassLabel.add(jRadioButtonGlassLabelNameColon); jRadioButtonGlassLabelNameColon.setSelected(true); jRadioButtonGlassLabelNameColon.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonGlassLabelNameColonItemStateChanged(evt); } }); jScrollPaneDasmLabelNameColon.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmLabelNameColon.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneGlassLabelNameColon.setEditable(false); jTextPaneGlassLabelNameColon.setContentType("text/html"); // NOI18N jTextPaneGlassLabelNameColon.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <font color='black'>zzzz</font><b>:</b>\n </p>\n </body>\n</html>\n"); jScrollPaneDasmLabelNameColon.setViewportView(jTextPaneGlassLabelNameColon); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(12, 12, 12) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelGlassStartingDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelGlassOriginDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelGlassCommentDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelTmpxBlockCommentDeclaration1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelGlassHighTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelGlassShiftTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelGlassScreenTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelGlassLabelDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelGlassByteDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelGlassWordDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelGlassWordSwappedDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelGlassTribyteDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelGlassLongDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelGlassAddressDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelTmpxGlassStackWordDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelGlassMonoSpriteDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelGlassMultiSpriteDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelGlassTextDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelGlassNumTextDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelGlassZeroTextDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelGlassPetasciiTextDeclaration)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonGlassFakeStarting) .addComponent(jRadioButtonGlassOrigin) .addComponent(jRadioButtonGlassSemicolonComment) .addComponent(jRadioButtonTmpxSemicolonBlockComment1) .addComponent(jRadioButtonGlassLabelName) .addComponent(jRadioButtonGlassDbByte) .addComponent(jRadioButtonGlassDwWord) .addComponent(jRadioButtonGlassMacroWordSwapped) .addComponent(jRadioButtonGlassMacroTribyte) .addComponent(jRadioButtonGlassDdLong) .addComponent(jRadioButtonGlassDwAddress) .addComponent(jRadioButtonGlassMacroStackWord) .addComponent(jRadioButtonGlassByteHexMonoSprite) .addComponent(jRadioButtonGlassByteHexMultiSprite) .addComponent(jRadioButtonGlassDbText) .addComponent(jRadioButtonGlassDbNumText) .addComponent(jRadioButtonGlassDbZeroText) .addComponent(jRadioButtonGlassDbHighText) .addComponent(jRadioButtonGlassDbShiftText) .addComponent(jRadioButtonGlassDbScreenText) .addComponent(jRadioButtonGlassDbPetasciiText)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneGlassFakeStarting) .addComponent(jScrollPaneTmpxAsterixOrigin1) .addComponent(jScrollPaneTmpxSemicolonComment1) .addComponent(jScrollPaneTmpxSemicolonBlockComment1) .addComponent(jScrollPaneGlassByte) .addComponent(jScrollPaneGlassWord) .addComponent(jScrollPaneGlassDotWord) .addComponent(jScrollPaneTmpxMacroWordSwapped1) .addComponent(jScrollPaneTmpxMacroTribyte1) .addComponent(jScrollPaneTmpxMacroLong1, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE) .addComponent(jScrollPaneTmpxDotAddrAddress1) .addComponent(jScrollPaneTmpxDotRtaStackWord1) .addComponent(jScrollPaneTmpxByteHexMonoSprite1) .addComponent(jScrollPaneTmpxByteHexMultiSprite1) .addComponent(jScrollPaneTmpxDotText1) .addComponent(jScrollPaneTmpxDotTextNumText1) .addComponent(jScrollPaneTmpxDotNullZeroText1) .addComponent(jScrollPaneTmpxDotShiftHighText1) .addComponent(jScrollPaneTmpxDotShiftlShiftText1) .addComponent(jScrollPaneTmpxDotScreenText1) .addComponent(jScrollPaneTmpxDotPetasciiText1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonGlassByteBinMonoSprite) .addComponent(jRadioButtonGlassByteBinMultiSprite)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jScrollPaneTmpxByteBinMonoSprite1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE) .addComponent(jScrollPaneTmpxByteBinMultiSprite1))) .addGroup(layout.createSequentialGroup() .addComponent(jRadioButtonGlassLabelNameColon) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPaneDasmLabelNameColon))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonGlassMacroHexMonoSprite) .addComponent(jRadioButtonGlassMacroHexMultiSprite)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneTmpxMacroHexMonoSprite1) .addComponent(jScrollPaneTmpxMacroHexMultiSprite1, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addComponent(jRadioButtonGlassMacroBinMultiSprite) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPaneTmpxMacroBinMultiSprite1)) .addGroup(layout.createSequentialGroup() .addComponent(jRadioButtonGlassMacroBinMonoSprite) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPaneTmpxMacroBinMonoSprite1, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(25, 25, 25)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(11, 11, 11) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassStartingDeclaration) .addComponent(jRadioButtonGlassFakeStarting) .addComponent(jScrollPaneGlassFakeStarting, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(11, 11, 11) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassOriginDeclaration) .addComponent(jRadioButtonGlassOrigin) .addComponent(jScrollPaneTmpxAsterixOrigin1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassCommentDeclaration) .addComponent(jRadioButtonGlassSemicolonComment) .addComponent(jScrollPaneTmpxSemicolonComment1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(12, 12, 12) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxBlockCommentDeclaration1, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonTmpxSemicolonBlockComment1) .addComponent(jScrollPaneTmpxSemicolonBlockComment1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassLabelDeclaration) .addComponent(jRadioButtonGlassLabelName) .addComponent(jScrollPaneGlassByte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonGlassLabelNameColon) .addComponent(jScrollPaneDasmLabelNameColon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassByteDeclaration) .addComponent(jRadioButtonGlassDbByte) .addComponent(jScrollPaneGlassWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassWordDeclaration) .addComponent(jRadioButtonGlassDwWord) .addComponent(jScrollPaneGlassDotWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassWordSwappedDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonGlassMacroWordSwapped) .addComponent(jScrollPaneTmpxMacroWordSwapped1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassTribyteDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonGlassMacroTribyte) .addComponent(jScrollPaneTmpxMacroTribyte1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(4, 4, 4) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassLongDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonGlassDdLong) .addComponent(jScrollPaneTmpxMacroLong1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassAddressDeclaration) .addComponent(jRadioButtonGlassDwAddress) .addComponent(jScrollPaneTmpxDotAddrAddress1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelTmpxGlassStackWordDeclaration) .addComponent(jRadioButtonGlassMacroStackWord) .addComponent(jScrollPaneTmpxDotRtaStackWord1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassMonoSpriteDeclaration) .addComponent(jRadioButtonGlassByteHexMonoSprite) .addComponent(jScrollPaneTmpxByteHexMonoSprite1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonGlassByteBinMonoSprite) .addComponent(jScrollPaneTmpxByteBinMonoSprite1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonGlassMacroHexMonoSprite) .addComponent(jScrollPaneTmpxMacroHexMonoSprite1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonGlassMacroBinMonoSprite) .addComponent(jScrollPaneTmpxMacroBinMonoSprite1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassMultiSpriteDeclaration) .addComponent(jRadioButtonGlassByteHexMultiSprite) .addComponent(jScrollPaneTmpxByteHexMultiSprite1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonGlassByteBinMultiSprite) .addComponent(jScrollPaneTmpxByteBinMultiSprite1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonGlassMacroHexMultiSprite) .addComponent(jScrollPaneTmpxMacroHexMultiSprite1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonGlassMacroBinMultiSprite) .addComponent(jScrollPaneTmpxMacroBinMultiSprite1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassTextDeclaration) .addComponent(jRadioButtonGlassDbText) .addComponent(jScrollPaneTmpxDotText1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassNumTextDeclaration) .addComponent(jRadioButtonGlassDbNumText) .addComponent(jScrollPaneTmpxDotTextNumText1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassZeroTextDeclaration) .addComponent(jRadioButtonGlassDbZeroText) .addComponent(jScrollPaneTmpxDotNullZeroText1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassHighTextDeclaration) .addComponent(jRadioButtonGlassDbHighText) .addComponent(jScrollPaneTmpxDotShiftHighText1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassShiftTextDeclaration) .addComponent(jRadioButtonGlassDbShiftText) .addComponent(jScrollPaneTmpxDotShiftlShiftText1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassScreenTextDeclaration) .addComponent(jRadioButtonGlassDbScreenText) .addComponent(jScrollPaneTmpxDotScreenText1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelGlassPetasciiTextDeclaration) .addComponent(jRadioButtonGlassDbPetasciiText) .addComponent(jScrollPaneTmpxDotPetasciiText1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); }// </editor-fold>//GEN-END:initComponents private void jRadioButtonGlassDwWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassDwWordItemStateChanged option.glassWord=Assembler.Word.DW_WORD; }//GEN-LAST:event_jRadioButtonGlassDwWordItemStateChanged private void jRadioButtonGlassSemicolonCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassSemicolonCommentItemStateChanged option.glassComment=Assembler.Comment.SEMICOLON; }//GEN-LAST:event_jRadioButtonGlassSemicolonCommentItemStateChanged private void jRadioButtonTmpxSemicolonBlockComment1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonTmpxSemicolonBlockComment1ItemStateChanged option.glassBlockComment=Assembler.BlockComment.SEMICOLON; }//GEN-LAST:event_jRadioButtonTmpxSemicolonBlockComment1ItemStateChanged private void jRadioButtonGlassOriginItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassOriginItemStateChanged option.glassOrigin=Assembler.Origin.ORG; }//GEN-LAST:event_jRadioButtonGlassOriginItemStateChanged private void jRadioButtonGlassFakeStartingItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassFakeStartingItemStateChanged option.glassStarting=Assembler.Starting.FAKEZ; }//GEN-LAST:event_jRadioButtonGlassFakeStartingItemStateChanged private void jRadioButtonGlassByteHexMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassByteHexMonoSpriteItemStateChanged option.glassMonoSprite=Assembler.MonoSprite.BYTE_HEX; }//GEN-LAST:event_jRadioButtonGlassByteHexMonoSpriteItemStateChanged private void jRadioButtonGlassByteHexMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassByteHexMultiSpriteItemStateChanged option.glassMultiSprite=Assembler.MultiSprite.BYTE_HEX; }//GEN-LAST:event_jRadioButtonGlassByteHexMultiSpriteItemStateChanged private void jRadioButtonGlassByteBinMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassByteBinMonoSpriteItemStateChanged option.glassMonoSprite=Assembler.MonoSprite.BYTE_BIN; }//GEN-LAST:event_jRadioButtonGlassByteBinMonoSpriteItemStateChanged private void jRadioButtonGlassByteBinMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassByteBinMultiSpriteItemStateChanged option.glassMultiSprite=Assembler.MultiSprite.BYTE_BIN; }//GEN-LAST:event_jRadioButtonGlassByteBinMultiSpriteItemStateChanged private void jRadioButtonGlassMacroHexMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassMacroHexMonoSpriteItemStateChanged option.glassMonoSprite=Assembler.MonoSprite.MACRO5_HEX; }//GEN-LAST:event_jRadioButtonGlassMacroHexMonoSpriteItemStateChanged private void jRadioButtonGlassMacroHexMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassMacroHexMultiSpriteItemStateChanged option.glassMultiSprite=Assembler.MultiSprite.MACRO5_HEX; }//GEN-LAST:event_jRadioButtonGlassMacroHexMultiSpriteItemStateChanged private void jRadioButtonGlassMacroBinMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassMacroBinMonoSpriteItemStateChanged option.glassMonoSprite=Assembler.MonoSprite.MACRO5_BIN; }//GEN-LAST:event_jRadioButtonGlassMacroBinMonoSpriteItemStateChanged private void jRadioButtonGlassMacroBinMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassMacroBinMultiSpriteItemStateChanged option.glassMultiSprite=Assembler.MultiSprite.MACRO5_BIN; }//GEN-LAST:event_jRadioButtonGlassMacroBinMultiSpriteItemStateChanged private void jRadioButtonGlassMacroTribyteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassMacroTribyteItemStateChanged option.glassTribyte=Assembler.Tribyte.MACRO5_TRIBYTE; }//GEN-LAST:event_jRadioButtonGlassMacroTribyteItemStateChanged private void jRadioButtonGlassDdLongItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassDdLongItemStateChanged option.glassLong=Assembler.Long.DD_LONG; }//GEN-LAST:event_jRadioButtonGlassDdLongItemStateChanged private void jRadioButtonGlassMacroWordSwappedItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassMacroWordSwappedItemStateChanged option.glassWordSwapped=Assembler.WordSwapped.MACRO5_WORD_SWAPPED; }//GEN-LAST:event_jRadioButtonGlassMacroWordSwappedItemStateChanged private void jRadioButtonGlassDbTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassDbTextItemStateChanged option.glassText=Assembler.Text.DB_BYTE_TEXT; }//GEN-LAST:event_jRadioButtonGlassDbTextItemStateChanged private void jRadioButtonGlassDbNumTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassDbNumTextItemStateChanged option.glassNumText=Assembler.NumText.DB_BYTE_NUMTEXT; }//GEN-LAST:event_jRadioButtonGlassDbNumTextItemStateChanged private void jRadioButtonGlassDbZeroTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassDbZeroTextItemStateChanged option.glassZeroText=Assembler.ZeroText.DB_BYTE_ZEROTEXT; }//GEN-LAST:event_jRadioButtonGlassDbZeroTextItemStateChanged private void jRadioButtonGlassDwAddressItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassDwAddressItemStateChanged option.glassAddress=Assembler.Address.DW_ADDR; }//GEN-LAST:event_jRadioButtonGlassDwAddressItemStateChanged private void jRadioButtonGlassMacroStackWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassMacroStackWordItemStateChanged option.glassStackWord=Assembler.StackWord.MACRO4_STACKWORD; }//GEN-LAST:event_jRadioButtonGlassMacroStackWordItemStateChanged private void jRadioButtonGlassDbHighTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassDbHighTextItemStateChanged option.glassHighText=Assembler.HighText.DB_BYTE_HIGHTEXT; }//GEN-LAST:event_jRadioButtonGlassDbHighTextItemStateChanged private void jRadioButtonGlassDbShiftTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassDbShiftTextItemStateChanged option.glassShiftText=Assembler.ShiftText.DB_BYTE_SHIFTTEXT; }//GEN-LAST:event_jRadioButtonGlassDbShiftTextItemStateChanged private void jRadioButtonGlassDbScreenTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassDbScreenTextItemStateChanged option.glassScreenText=Assembler.ScreenText.DB_BYTE_SCREENTEXT; }//GEN-LAST:event_jRadioButtonGlassDbScreenTextItemStateChanged private void jRadioButtonGlassDbPetasciiTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassDbPetasciiTextItemStateChanged option.glassPetasciiText=Assembler.PetasciiText.DB_BYTE_PETASCIITEXT; }//GEN-LAST:event_jRadioButtonGlassDbPetasciiTextItemStateChanged private void jRadioButtonGlassLabelNameColonItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassLabelNameColonItemStateChanged option.glassLabel=Assembler.Label.NAME_COLON; }//GEN-LAST:event_jRadioButtonGlassLabelNameColonItemStateChanged private void jRadioButtonGlassLabelNameItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassLabelNameItemStateChanged option.glassLabel=Assembler.Label.NAME; }//GEN-LAST:event_jRadioButtonGlassLabelNameItemStateChanged private void jRadioButtonGlassDbByteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlassDbByteItemStateChanged option.glassByte=Assembler.Byte.DB_BYTE; }//GEN-LAST:event_jRadioButtonGlassDbByteItemStateChanged // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JTextPane TmpxPaneGlassByteHexMultiSprite; private javax.swing.ButtonGroup buttonGroupGlassAddress; private javax.swing.ButtonGroup buttonGroupGlassBlockComment; private javax.swing.ButtonGroup buttonGroupGlassByte; private javax.swing.ButtonGroup buttonGroupGlassComment; private javax.swing.ButtonGroup buttonGroupGlassHighText; private javax.swing.ButtonGroup buttonGroupGlassLabel; private javax.swing.ButtonGroup buttonGroupGlassLong; private javax.swing.ButtonGroup buttonGroupGlassMonoSprite; private javax.swing.ButtonGroup buttonGroupGlassMultiSprite; private javax.swing.ButtonGroup buttonGroupGlassNumText; private javax.swing.ButtonGroup buttonGroupGlassOrigin; private javax.swing.ButtonGroup buttonGroupGlassPetsciiText; private javax.swing.ButtonGroup buttonGroupGlassScreenText; private javax.swing.ButtonGroup buttonGroupGlassShiftText; private javax.swing.ButtonGroup buttonGroupGlassStackWord; private javax.swing.ButtonGroup buttonGroupGlassStarting; private javax.swing.ButtonGroup buttonGroupGlassText; private javax.swing.ButtonGroup buttonGroupGlassTribyte; private javax.swing.ButtonGroup buttonGroupGlassWord; private javax.swing.ButtonGroup buttonGroupGlassWordSwapped; private javax.swing.ButtonGroup buttonGroupGlassZeroText; private javax.swing.JLabel jLabelGlassAddressDeclaration; private javax.swing.JLabel jLabelGlassByteDeclaration; private javax.swing.JLabel jLabelGlassCommentDeclaration; private javax.swing.JLabel jLabelGlassHighTextDeclaration; private javax.swing.JLabel jLabelGlassLabelDeclaration; private javax.swing.JLabel jLabelGlassLongDeclaration; private javax.swing.JLabel jLabelGlassMonoSpriteDeclaration; private javax.swing.JLabel jLabelGlassMultiSpriteDeclaration; private javax.swing.JLabel jLabelGlassNumTextDeclaration; private javax.swing.JLabel jLabelGlassOriginDeclaration; private javax.swing.JLabel jLabelGlassPetasciiTextDeclaration; private javax.swing.JLabel jLabelGlassScreenTextDeclaration; private javax.swing.JLabel jLabelGlassShiftTextDeclaration; private javax.swing.JLabel jLabelGlassStartingDeclaration; private javax.swing.JLabel jLabelGlassTextDeclaration; private javax.swing.JLabel jLabelGlassTribyteDeclaration; private javax.swing.JLabel jLabelGlassWordDeclaration; private javax.swing.JLabel jLabelGlassWordSwappedDeclaration; private javax.swing.JLabel jLabelGlassZeroTextDeclaration; private javax.swing.JLabel jLabelTmpxBlockCommentDeclaration1; private javax.swing.JLabel jLabelTmpxGlassStackWordDeclaration; private javax.swing.JRadioButton jRadioButtonGlassByteBinMonoSprite; private javax.swing.JRadioButton jRadioButtonGlassByteBinMultiSprite; private javax.swing.JRadioButton jRadioButtonGlassByteHexMonoSprite; private javax.swing.JRadioButton jRadioButtonGlassByteHexMultiSprite; private javax.swing.JRadioButton jRadioButtonGlassDbByte; private javax.swing.JRadioButton jRadioButtonGlassDbHighText; private javax.swing.JRadioButton jRadioButtonGlassDbNumText; private javax.swing.JRadioButton jRadioButtonGlassDbPetasciiText; private javax.swing.JRadioButton jRadioButtonGlassDbScreenText; private javax.swing.JRadioButton jRadioButtonGlassDbShiftText; private javax.swing.JRadioButton jRadioButtonGlassDbText; private javax.swing.JRadioButton jRadioButtonGlassDbZeroText; private javax.swing.JRadioButton jRadioButtonGlassDdLong; private javax.swing.JRadioButton jRadioButtonGlassDwAddress; private javax.swing.JRadioButton jRadioButtonGlassDwWord; private javax.swing.JRadioButton jRadioButtonGlassFakeStarting; private javax.swing.JRadioButton jRadioButtonGlassLabelName; private javax.swing.JRadioButton jRadioButtonGlassLabelNameColon; private javax.swing.JRadioButton jRadioButtonGlassMacroBinMonoSprite; private javax.swing.JRadioButton jRadioButtonGlassMacroBinMultiSprite; private javax.swing.JRadioButton jRadioButtonGlassMacroHexMonoSprite; private javax.swing.JRadioButton jRadioButtonGlassMacroHexMultiSprite; private javax.swing.JRadioButton jRadioButtonGlassMacroStackWord; private javax.swing.JRadioButton jRadioButtonGlassMacroTribyte; private javax.swing.JRadioButton jRadioButtonGlassMacroWordSwapped; private javax.swing.JRadioButton jRadioButtonGlassOrigin; private javax.swing.JRadioButton jRadioButtonGlassSemicolonComment; private javax.swing.JRadioButton jRadioButtonTmpxSemicolonBlockComment1; private javax.swing.JScrollPane jScrollPaneDasmLabelNameColon; private javax.swing.JScrollPane jScrollPaneGlassByte; private javax.swing.JScrollPane jScrollPaneGlassDotWord; private javax.swing.JScrollPane jScrollPaneGlassFakeStarting; private javax.swing.JScrollPane jScrollPaneGlassWord; private javax.swing.JScrollPane jScrollPaneTmpxAsterixOrigin1; private javax.swing.JScrollPane jScrollPaneTmpxByteBinMonoSprite1; private javax.swing.JScrollPane jScrollPaneTmpxByteBinMultiSprite1; private javax.swing.JScrollPane jScrollPaneTmpxByteHexMonoSprite1; private javax.swing.JScrollPane jScrollPaneTmpxByteHexMultiSprite1; private javax.swing.JScrollPane jScrollPaneTmpxDotAddrAddress1; private javax.swing.JScrollPane jScrollPaneTmpxDotNullZeroText1; private javax.swing.JScrollPane jScrollPaneTmpxDotPetasciiText1; private javax.swing.JScrollPane jScrollPaneTmpxDotRtaStackWord1; private javax.swing.JScrollPane jScrollPaneTmpxDotScreenText1; private javax.swing.JScrollPane jScrollPaneTmpxDotShiftHighText1; private javax.swing.JScrollPane jScrollPaneTmpxDotShiftlShiftText1; private javax.swing.JScrollPane jScrollPaneTmpxDotText1; private javax.swing.JScrollPane jScrollPaneTmpxDotTextNumText1; private javax.swing.JScrollPane jScrollPaneTmpxMacroBinMonoSprite1; private javax.swing.JScrollPane jScrollPaneTmpxMacroBinMultiSprite1; private javax.swing.JScrollPane jScrollPaneTmpxMacroHexMonoSprite1; private javax.swing.JScrollPane jScrollPaneTmpxMacroHexMultiSprite1; private javax.swing.JScrollPane jScrollPaneTmpxMacroLong1; private javax.swing.JScrollPane jScrollPaneTmpxMacroTribyte1; private javax.swing.JScrollPane jScrollPaneTmpxMacroWordSwapped1; private javax.swing.JScrollPane jScrollPaneTmpxSemicolonBlockComment1; private javax.swing.JScrollPane jScrollPaneTmpxSemicolonComment1; private javax.swing.JTextPane jTextPaneDbScreenText; private javax.swing.JTextPane jTextPaneGlassByteBinMonoSprite; private javax.swing.JTextPane jTextPaneGlassByteBinMultiSprite; private javax.swing.JTextPane jTextPaneGlassByteHexMonoSprite; private javax.swing.JTextPane jTextPaneGlassDbByte; private javax.swing.JTextPane jTextPaneGlassDbHighText; private javax.swing.JTextPane jTextPaneGlassDbNumText; private javax.swing.JTextPane jTextPaneGlassDbPetasciiText; private javax.swing.JTextPane jTextPaneGlassDbShiftText; private javax.swing.JTextPane jTextPaneGlassDbText; private javax.swing.JTextPane jTextPaneGlassDbZeroText; private javax.swing.JTextPane jTextPaneGlassDwAddress; private javax.swing.JTextPane jTextPaneGlassDwWord; private javax.swing.JTextPane jTextPaneGlassFakeStarting; private javax.swing.JTextPane jTextPaneGlassLabelName; private javax.swing.JTextPane jTextPaneGlassLabelNameColon; private javax.swing.JTextPane jTextPaneGlassMacroBinMonoSprite; private javax.swing.JTextPane jTextPaneGlassMacroBinMultiSprite; private javax.swing.JTextPane jTextPaneGlassMacroHexMonoSprite; private javax.swing.JTextPane jTextPaneGlassMacroHexMultiSprite; private javax.swing.JTextPane jTextPaneGlassMacroLong; private javax.swing.JTextPane jTextPaneGlassMacroStackWord; private javax.swing.JTextPane jTextPaneGlassMacroTribyte; private javax.swing.JTextPane jTextPaneGlassMacroWordSwapped; private javax.swing.JTextPane jTextPaneGlassOrigin; private javax.swing.JTextPane jTextPaneGlassSemicolonComment; private javax.swing.JTextPane jTextPaneTmpxSemicolonBlockComment1; // End of variables declaration//GEN-END:variables /** * Apply the option for TMPx */ public void applyOptionGlass() { switch (option.glassStarting) { case FAKEZ: jRadioButtonGlassFakeStarting.setSelected(true); break; } switch (option.glassOrigin) { case DOT_ORG: case ORG: jRadioButtonGlassOrigin.setSelected(true); break; } switch (option.glassLabel) { case NAME: jRadioButtonGlassLabelName.setSelected(true); break; case NAME_COLON: jRadioButtonGlassLabelNameColon.setSelected(true); break; } switch (option.glassComment) { case SEMICOLON: jRadioButtonGlassSemicolonComment.setSelected(true); break; } switch (option.glassByte) { case DB_BYTE: jRadioButtonGlassDbByte.setSelected(true); break; } switch (option.glassWord) { case DOT_WORD: jRadioButtonGlassDwWord.setSelected(true); break; } switch (option.glassWordSwapped) { case MACRO5_WORD_SWAPPED: jRadioButtonGlassMacroWordSwapped.setSelected(true); break; } switch (option.glassTribyte) { case MACRO5_TRIBYTE: jRadioButtonGlassMacroTribyte.setSelected(true); break; } switch (option.glassLong) { case DD_LONG: jRadioButtonGlassDdLong.setSelected(true); break; } switch (option.glassAddress) { case DW_ADDR: jRadioButtonGlassDwAddress.setSelected(true); break; } switch (option.glassStackWord) { case MACRO4_STACKWORD: jRadioButtonGlassMacroStackWord.setSelected(true); break; } switch (option.dasmMonoSprite) { case BYTE_HEX: jRadioButtonGlassByteHexMonoSprite.setSelected(true); break; case BYTE_BIN: jRadioButtonGlassByteBinMonoSprite.setSelected(true); break; case MACRO5_HEX: jRadioButtonGlassMacroHexMonoSprite.setSelected(true); break; case MACRO5_BIN: jRadioButtonGlassMacroBinMonoSprite.setSelected(true); break; } switch (option.dasmMultiSprite) { case BYTE_HEX: jRadioButtonGlassByteHexMultiSprite.setSelected(true); break; case BYTE_BIN: jRadioButtonGlassByteBinMultiSprite.setSelected(true); break; case MACRO5_HEX: jRadioButtonGlassMacroHexMultiSprite.setSelected(true); break; case MACRO5_BIN: jRadioButtonGlassMacroBinMultiSprite.setSelected(true); break; } switch (option.glassText) { case DB_BYTE_TEXT: jRadioButtonGlassDbText.setSelected(true); break; } switch (option.glassNumText) { case DB_BYTE_NUMTEXT: jRadioButtonGlassDbNumText.setSelected(true); break; } switch (option.glassZeroText) { case DB_BYTE_ZEROTEXT: jRadioButtonGlassDbZeroText.setSelected(true); break; } switch (option.glassHighText) { case DB_BYTE_HIGHTEXT: jRadioButtonGlassDbHighText.setSelected(true); break; } switch (option.glassShiftText) { case DB_BYTE_SHIFTTEXT: jRadioButtonGlassDbShiftText.setSelected(true); break; } switch (option.glassScreenText) { case DB_BYTE_SCREENTEXT: jRadioButtonGlassDbScreenText.setSelected(true); break; } switch (option.glassPetasciiText) { case DB_BYTE_PETASCIITEXT: jRadioButtonGlassDbPetasciiText.setSelected(true); break; } } }
84,372
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
JWizardDialog.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/JWizardDialog.java
/** * @(#)JWizardDialog 2021/12/05 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing; import java.awt.Rectangle; import java.awt.event.ActionEvent; import java.awt.event.MouseEvent; import javax.swing.table.JTableHeader; import sw_emulator.software.Disassembly; import sw_emulator.software.MemoryDasm; import sw_emulator.swing.main.Option; import sw_emulator.swing.table.DataTableModelMemory; import sw_emulator.swing.table.MemoryTableCellRenderer; import javax.swing.AbstractAction; import javax.swing.ActionMap; import javax.swing.InputMap; import javax.swing.JComponent; import javax.swing.JOptionPane; import javax.swing.KeyStroke; import javax.swing.UIManager; import javax.swing.table.TableModel; import static sw_emulator.software.MemoryDasm.TYPE_EMPTY; import static sw_emulator.software.MemoryDasm.TYPE_MAJOR; import static sw_emulator.software.MemoryDasm.TYPE_MINOR; import static sw_emulator.software.MemoryDasm.TYPE_MINUS; import static sw_emulator.software.MemoryDasm.TYPE_PLUS; import sw_emulator.software.cpu.M6510Dasm; import sw_emulator.swing.main.Constant; import sw_emulator.swing.main.Project; import sw_emulator.swing.table.WizardTableCellRenderer; /** * * Wizard for assigning < > reference * * @author ice */ public class JWizardDialog extends javax.swing.JDialog { Option option; MemoryDasm[] memory; Disassembly disassembly; Project project; /** Memory cell renderer for table */ MemoryTableCellRenderer memoryTableCellRenderer=new MemoryTableCellRenderer(); /** Data table for memory */ DataTableModelMemory dataTableModelMemoryLow; /** Data table for memory */ DataTableModelMemory dataTableModelMemoryHigh; /** Wizard table cell renderer */ WizardTableCellRenderer wizardTableCellRenderer; /** * Creates new form JWizardDialog */ public JWizardDialog(java.awt.Frame parent, boolean modal, Option option) { super(parent, modal); this.option=option; Shared.framesList.add(this); dataTableModelMemoryLow=new DataTableModelMemory(option); dataTableModelMemoryHigh=new DataTableModelMemory(option); initComponents(); } /** * Set up the memory * * @param memory * @param disassembly the disassembler * @param project the project * @param rowLow the row low position */ public void setUp(MemoryDasm[] memory, Disassembly disassembly, Project project, int rowLow) { this.memory=memory; this.disassembly=disassembly; this.project=project; memoryTableCellRenderer.setDisassembly(disassembly); dataTableModelMemoryLow.setData(memory); dataTableModelMemoryLow.fireTableDataChanged(); dataTableModelMemoryHigh.setData(memory); dataTableModelMemoryHigh.fireTableDataChanged(); jTableLow.getSelectionModel().setSelectionInterval(rowLow, rowLow); jTableLow.scrollRectToVisible(new Rectangle(jTableLow.getCellRect(rowLow, 0, true))); jTableHigh.getSelectionModel().setSelectionInterval(rowLow+(Integer)jSpinnerSize.getValue(), rowLow+(Integer)jSpinnerSize.getValue()); jTableHigh.scrollRectToVisible(new Rectangle(jTableHigh.getCellRect(rowLow+(Integer)jSpinnerSize.getValue(), 0, true))); if (jTextFieldPrefix.getText()==null || "".equals(jTextFieldPrefix.getText())) popolate(jTableLow.getSelectedRow(), jTableHigh.getSelectedRow()); else simulate(jTextFieldPrefix.getText(), (Integer)jSpinnerDigit.getValue(), jCheckBoxUpper.isSelected(), (Integer)jSpinnerStart.getValue(), jTableLow.getSelectedRow(), jTableHigh.getSelectedRow(), (Integer)jSpinnerSize.getValue()); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanelUp = new javax.swing.JPanel(); jLabelWizard = new javax.swing.JLabel(); jPanelCn = new javax.swing.JPanel(); jSplitPaneMain = new javax.swing.JSplitPane(); jPanelMem = new javax.swing.JPanel(); jPanelFrom = new javax.swing.JPanel(); jPanelLo = new javax.swing.JPanel(); jLabelLow = new javax.swing.JLabel(); jScrollPaneLow = new javax.swing.JScrollPane(); jTableLow = new javax.swing.JTable() { String[] hh={"Memory address location in Hex", "Disassembler automatic comment", "User manual comment", "Disassembler automatic label", "User manual label", "User global comment", "Related location and data type", "Value in memory"}; @Override protected JTableHeader createDefaultTableHeader() { return new JTableHeader(columnModel) { @Override public String getToolTipText(MouseEvent e) { int col = columnAtPoint(e.getPoint()); int index = columnModel.getColumnIndexAtX(e.getPoint().x); int realIndex = columnModel.getColumn(index).getModelIndex(); return hh[realIndex]; } }; } //Implement table cell tool tips. public String getToolTipText(MouseEvent e) { String tip = null; java.awt.Point p = e.getPoint(); int rowIndex = rowAtPoint(p); int colIndex = columnAtPoint(p); int realColumnIndex = convertColumnIndexToModel(colIndex); try { MemoryDasm memory=dataTableModelMemoryLow.getData()[rowIndex]; switch (dataTableModelMemoryLow.columns[realColumnIndex]) { case ID: if (!memory.isInside) tip="Memory outside of the program"; else if(memory.isCode) tip="Memory marked as code"; else if (memory.isData) tip="Memory marked as data"; else tip="Memory not marked as code or data"; break; case DC: if ((Boolean)getValueAt(rowIndex, colIndex)) tip=memory.dasmComment; break; case UC: if ((Boolean)getValueAt(rowIndex, colIndex)) tip=memory.userComment; break; case DL: if ((Boolean)getValueAt(rowIndex, colIndex)) tip=memory.dasmLocation; break; case UL: if ((Boolean)getValueAt(rowIndex, colIndex)) tip=memory.userLocation; break; case UB: if ((Boolean)getValueAt(rowIndex, colIndex)) tip="<html>"+memory.userBlockComment.replace("\n", "<br>")+"</html>"; break; case RE: if (memory.type!=TYPE_EMPTY) { MemoryDasm mem=dataTableModelMemoryLow.getData()[memory.related]; switch (memory.type) { case TYPE_PLUS: if (mem.userLocation!=null && !"".equals(mem.userLocation)) tip=mem.userLocation+"+"+(memory.address-memory.related); else if (mem.dasmLocation!=null && !"".equals(mem.dasmLocation)) tip=mem.dasmLocation+"+"+(memory.address-memory.related); else tip="$"+Shared.ShortToExe(mem.address)+"+"+(memory.address-memory.related); break; case TYPE_MINUS: if (mem.userLocation!=null && !"".equals(mem.userLocation)) tip=mem.userLocation+(memory.address-memory.related); else if (mem.dasmLocation!=null && !"".equals(mem.dasmLocation)) tip=mem.dasmLocation+(memory.address-memory.related); else tip="$"+Shared.ShortToExe(mem.address)+(memory.address-memory.related); break; default: if (mem.userLocation!=null && !"".equals(mem.userLocation)) tip="#"+memory.type+mem.userLocation; else if (mem.dasmLocation!=null && !"".equals(mem.dasmLocation)) tip="#"+memory.type+mem.dasmLocation; else tip="#"+memory.type+"$"+Shared.ShortToExe(mem.address); } } else if (memory.dataType!=null) { tip=memory.dataType.getDescription(); } break; } } catch (RuntimeException e1) { //catch null pointer exception if mouse is over an empty line } return tip; } }; jPanelSearchLow = new javax.swing.JPanel(); jLabelSeachLow = new javax.swing.JLabel(); jPanelTo = new javax.swing.JPanel(); jPanelHigh = new javax.swing.JPanel(); jLabelHigh = new javax.swing.JLabel(); jScrollPaneHigh = new javax.swing.JScrollPane(); jTableHigh = new javax.swing.JTable() { String[] hh={"Memory address location in Hex", "Disassembler automatic comment", "User manual comment", "Disassembler automatic label", "User manual label", "User global comment", "Related location and data type", "Value in memory"}; @Override protected JTableHeader createDefaultTableHeader() { return new JTableHeader(columnModel) { @Override public String getToolTipText(MouseEvent e) { int col = columnAtPoint(e.getPoint()); int index = columnModel.getColumnIndexAtX(e.getPoint().x); int realIndex = columnModel.getColumn(index).getModelIndex(); return hh[realIndex]; } }; } //Implement table cell tool tips. public String getToolTipText(MouseEvent e) { String tip = null; java.awt.Point p = e.getPoint(); int rowIndex = rowAtPoint(p); int colIndex = columnAtPoint(p); int realColumnIndex = convertColumnIndexToModel(colIndex); try { MemoryDasm memory=dataTableModelMemoryHigh.getData()[rowIndex]; switch (dataTableModelMemoryHigh.columns[realColumnIndex]) { case ID: if (!memory.isInside) tip="Memory outside of the program"; else if(memory.isCode) tip="Memory marked as code"; else if (memory.isData) tip="Memory marked as data"; else tip="Memory not marked as code or data"; break; case DC: if ((Boolean)getValueAt(rowIndex, colIndex)) tip=memory.dasmComment; break; case UC: if ((Boolean)getValueAt(rowIndex, colIndex)) tip=memory.userComment; break; case DL: if ((Boolean)getValueAt(rowIndex, colIndex)) tip=memory.dasmLocation; break; case UL: if ((Boolean)getValueAt(rowIndex, colIndex)) tip=memory.userLocation; break; case UB: if ((Boolean)getValueAt(rowIndex, colIndex)) tip="<html>"+memory.userBlockComment.replace("\n", "<br>")+"</html>"; break; case RE: if (memory.type!=TYPE_EMPTY) { MemoryDasm mem=dataTableModelMemoryHigh.getData()[memory.related]; switch (memory.type) { case TYPE_PLUS: if (mem.userLocation!=null && !"".equals(mem.userLocation)) tip=mem.userLocation+"+"+(memory.address-memory.related); else if (mem.dasmLocation!=null && !"".equals(mem.dasmLocation)) tip=mem.dasmLocation+"+"+(memory.address-memory.related); else tip="$"+Shared.ShortToExe(mem.address)+"+"+(memory.address-memory.related); break; case TYPE_MINUS: if (mem.userLocation!=null && !"".equals(mem.userLocation)) tip=mem.userLocation+(memory.address-memory.related); else if (mem.dasmLocation!=null && !"".equals(mem.dasmLocation)) tip=mem.dasmLocation+(memory.address-memory.related); else tip="$"+Shared.ShortToExe(mem.address)+(memory.address-memory.related); break; default: if (mem.userLocation!=null && !"".equals(mem.userLocation)) tip="#"+memory.type+mem.userLocation; else if (mem.dasmLocation!=null && !"".equals(mem.dasmLocation)) tip="#"+memory.type+mem.dasmLocation; else tip="#"+memory.type+"$"+Shared.ShortToExe(mem.address); } } else if (memory.dataType!=null) { tip=memory.dataType.getDescription(); } break; } } catch (RuntimeException e1) { //catch null pointer exception if mouse is over an empty line } return tip; } }; jPanelSearchHigh = new javax.swing.JPanel(); jLabelSearchHigh = new javax.swing.JLabel(); jPanelTable = new javax.swing.JPanel(); jPanelText = new javax.swing.JPanel(); jLabelText = new javax.swing.JLabel(); jPanelCmd = new javax.swing.JPanel(); jLabelSize = new javax.swing.JLabel(); jSpinnerSize = new javax.swing.JSpinner(); jButtonApply = new javax.swing.JButton(); jLabelPrefix = new javax.swing.JLabel(); jTextFieldPrefix = new javax.swing.JTextField(); jLabelDigit = new javax.swing.JLabel(); jSpinnerDigit = new javax.swing.JSpinner(); jCheckBoxUpper = new javax.swing.JCheckBox(); jLabelStart = new javax.swing.JLabel(); jSpinnerStart = new javax.swing.JSpinner(); jScrollPaneTable = new javax.swing.JScrollPane(); jTable = new javax.swing.JTable(); wizardTableCellRenderer=new WizardTableCellRenderer(jSpinnerSize); jTable.setDefaultRenderer(String.class, wizardTableCellRenderer); jPanelDn = new javax.swing.JPanel(); jButtonReset = new javax.swing.JButton(); jButtonClose = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); jPanelUp.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jLabelWizard.setText("Wizard for automatic < and > addresses creation"); jPanelUp.add(jLabelWizard); getContentPane().add(jPanelUp, java.awt.BorderLayout.PAGE_START); jSplitPaneMain.setDividerLocation(450); jSplitPaneMain.setVerifyInputWhenFocusTarget(false); jPanelMem.setLayout(new java.awt.GridLayout(0, 2)); jPanelFrom.setLayout(new java.awt.BorderLayout()); jLabelLow.setText("LOW"); jPanelLo.add(jLabelLow); jPanelFrom.add(jPanelLo, java.awt.BorderLayout.PAGE_START); jTableLow.setModel(dataTableModelMemoryLow); jTableLow.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jTableLow.setDefaultRenderer(Integer.class, memoryTableCellRenderer); jTableLow.getColumnModel().getColumn(0).setPreferredWidth(310); InputMap im = this.getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); ActionMap am = this.getRootPane().getActionMap(); //add custom action im.put(KeyStroke.getKeyStroke("control D"), "searchLow"); am.put("searchLow", new AbstractAction(){ @Override public void actionPerformed(ActionEvent ae) { String addr=JOptionPane.showInputDialog("Search and go to a given HEX memory address"); if (addr==null) return; try { int pos=Integer.parseInt(addr,16); if (pos<0 || pos>0xFFFF) return; jTableLow.getSelectionModel().setSelectionInterval(pos, pos); jTableLow.scrollRectToVisible(new Rectangle(jTableLow.getCellRect(pos, 0, true))); } catch (Exception e) { } } }); ((InputMap)UIManager.get("Table.ancestorInputMap")).put(KeyStroke.getKeyStroke("control D"), "none"); jTableLow.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jTableLowMouseClicked(evt); } }); jScrollPaneLow.setViewportView(jTableLow); jPanelFrom.add(jScrollPaneLow, java.awt.BorderLayout.CENTER); jLabelSeachLow.setText("CTRL+D search"); jPanelSearchLow.add(jLabelSeachLow); jPanelFrom.add(jPanelSearchLow, java.awt.BorderLayout.PAGE_END); jPanelMem.add(jPanelFrom); jPanelTo.setLayout(new java.awt.BorderLayout()); jLabelHigh.setText("HIGH"); jPanelHigh.add(jLabelHigh); jPanelTo.add(jPanelHigh, java.awt.BorderLayout.NORTH); jTableHigh.setModel(dataTableModelMemoryHigh); jTableHigh.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jTableHigh.setDefaultRenderer(Integer.class, memoryTableCellRenderer); jTableHigh.getColumnModel().getColumn(0).setPreferredWidth(310); jTableHigh.getColumnModel().getColumn(0).setPreferredWidth(310); InputMap im1 = this.getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); ActionMap am1 = this.getRootPane().getActionMap(); //add custom action im1.put(KeyStroke.getKeyStroke("control F"), "searchHigh"); am1.put("searchHigh", new AbstractAction(){ @Override public void actionPerformed(ActionEvent ae) { String addr=JOptionPane.showInputDialog("Search and go to a given HEX memory address"); if (addr==null) return; try { int pos=Integer.parseInt(addr,16); if (pos<0 || pos>0xFFFF) return; jTableHigh.getSelectionModel().setSelectionInterval(pos, pos); jTableHigh.scrollRectToVisible(new Rectangle(jTableHigh.getCellRect(pos, 0, true))); } catch (Exception e) { } } }); ((InputMap)UIManager.get("Table.ancestorInputMap")).put(KeyStroke.getKeyStroke("control F"), "none"); jTableHigh.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jTableHighMouseClicked(evt); } }); jScrollPaneHigh.setViewportView(jTableHigh); jPanelTo.add(jScrollPaneHigh, java.awt.BorderLayout.CENTER); jLabelSearchHigh.setText("CTRL+F search"); jPanelSearchHigh.add(jLabelSearchHigh); jPanelTo.add(jPanelSearchHigh, java.awt.BorderLayout.PAGE_END); jPanelMem.add(jPanelTo); jSplitPaneMain.setLeftComponent(jPanelMem); jPanelTable.setLayout(new java.awt.BorderLayout()); jPanelText.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jLabelText.setText("Preview of (combined) memory address "); jPanelText.add(jLabelText); jPanelTable.add(jPanelText, java.awt.BorderLayout.NORTH); jLabelSize.setText("Table size:"); jSpinnerSize.setModel(new javax.swing.SpinnerNumberModel(2, 1, 256, 1)); jSpinnerSize.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerSizeStateChanged(evt); } }); jButtonApply.setText("Apply"); jButtonApply.setToolTipText("Apply the selected table/labels in memory"); jButtonApply.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonApplyActionPerformed(evt); } }); jLabelPrefix.setText("Prefix:"); jTextFieldPrefix.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { jTextFieldPrefixFocusLost(evt); } }); jLabelDigit.setText("Digit:"); jSpinnerDigit.setModel(new javax.swing.SpinnerNumberModel(1, 1, 2, 1)); jSpinnerDigit.setToolTipText("Min number of digits to use (can increase automatically)"); jSpinnerDigit.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerDigitStateChanged(evt); } }); jCheckBoxUpper.setText("Uppercase"); jCheckBoxUpper.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxUpperItemStateChanged(evt); } }); jLabelStart.setText("Start:"); jSpinnerStart.setModel(new javax.swing.SpinnerNumberModel(0, 0, 255, 1)); jSpinnerStart.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerStartStateChanged(evt); } }); javax.swing.GroupLayout jPanelCmdLayout = new javax.swing.GroupLayout(jPanelCmd); jPanelCmd.setLayout(jPanelCmdLayout); jPanelCmdLayout.setHorizontalGroup( jPanelCmdLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelCmdLayout.createSequentialGroup() .addContainerGap() .addComponent(jLabelSize) .addGap(5, 5, 5) .addComponent(jSpinnerSize, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(26, 26, 26) .addComponent(jLabelPrefix) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextFieldPrefix, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabelDigit) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSpinnerDigit, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabelStart) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSpinnerStart) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jCheckBoxUpper) .addGap(18, 18, 18) .addComponent(jButtonApply) .addContainerGap()) ); jPanelCmdLayout.setVerticalGroup( jPanelCmdLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelCmdLayout.createSequentialGroup() .addGap(2, 2, 2) .addGroup(jPanelCmdLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelCmdLayout.createSequentialGroup() .addGap(3, 3, 3) .addComponent(jLabelSize)) .addGroup(jPanelCmdLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jSpinnerSize, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelPrefix) .addComponent(jTextFieldPrefix, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDigit) .addComponent(jSpinnerDigit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButtonApply) .addComponent(jCheckBoxUpper) .addComponent(jLabelStart) .addComponent(jSpinnerStart, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(3, 3, 3)) ); jPanelTable.add(jPanelCmd, java.awt.BorderLayout.SOUTH); jScrollPaneTable.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); jScrollPaneTable.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); jScrollPaneTable.setPreferredSize(new java.awt.Dimension(700, 418)); jTable.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null} }, new String [] { "1", "2", "3", "4", "5", "6", "7", "8" } ) { Class[] types = new Class [] { java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class }; boolean[] canEdit = new boolean [] { false, false, false, false, false, false, false, false }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jTable.setRowSelectionAllowed(false); jScrollPaneTable.setViewportView(jTable); jPanelTable.add(jScrollPaneTable, java.awt.BorderLayout.CENTER); jSplitPaneMain.setRightComponent(jPanelTable); javax.swing.GroupLayout jPanelCnLayout = new javax.swing.GroupLayout(jPanelCn); jPanelCn.setLayout(jPanelCnLayout); jPanelCnLayout.setHorizontalGroup( jPanelCnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelCnLayout.createSequentialGroup() .addComponent(jSplitPaneMain, javax.swing.GroupLayout.DEFAULT_SIZE, 1149, Short.MAX_VALUE) .addGap(0, 0, Short.MAX_VALUE)) ); jPanelCnLayout.setVerticalGroup( jPanelCnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSplitPaneMain, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 718, Short.MAX_VALUE) ); getContentPane().add(jPanelCn, java.awt.BorderLayout.CENTER); jPanelDn.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jButtonReset.setText("Reset"); jButtonReset.setToolTipText("Clear all selection in this dialog"); jButtonReset.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonResetActionPerformed(evt); } }); jPanelDn.add(jButtonReset); jButtonClose.setText("Close"); jButtonClose.setToolTipText("Close dialog"); jButtonClose.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonCloseActionPerformed(evt); } }); jPanelDn.add(jButtonClose); getContentPane().add(jPanelDn, java.awt.BorderLayout.PAGE_END); pack(); }// </editor-fold>//GEN-END:initComponents private void jButtonCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCloseActionPerformed setVisible(false); }//GEN-LAST:event_jButtonCloseActionPerformed private void jTableLowMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableLowMouseClicked if (jTextFieldPrefix.getText()==null || "".equals(jTextFieldPrefix.getText())) popolate(jTableLow.getSelectedRow(), jTableHigh.getSelectedRow()); else simulate(jTextFieldPrefix.getText(), (Integer)jSpinnerDigit.getValue(), jCheckBoxUpper.isSelected(), (Integer)jSpinnerStart.getValue(), jTableLow.getSelectedRow(), jTableHigh.getSelectedRow(), (Integer)jSpinnerSize.getValue()); }//GEN-LAST:event_jTableLowMouseClicked private void jTableHighMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableHighMouseClicked if (jTextFieldPrefix.getText()==null || "".equals(jTextFieldPrefix.getText())) popolate(jTableLow.getSelectedRow(), jTableHigh.getSelectedRow()); else simulate(jTextFieldPrefix.getText(), (Integer)jSpinnerDigit.getValue(), jCheckBoxUpper.isSelected(), (Integer)jSpinnerStart.getValue(), jTableLow.getSelectedRow(), jTableHigh.getSelectedRow(), (Integer)jSpinnerSize.getValue()); }//GEN-LAST:event_jTableHighMouseClicked private void jButtonApplyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonApplyActionPerformed apply(jTextFieldPrefix.getText(),(Integer)jSpinnerDigit.getValue(), jCheckBoxUpper.isSelected(), (Integer)jSpinnerStart.getValue(), jTableLow.getSelectedRow(), jTableHigh.getSelectedRow(), (Integer)jSpinnerSize.getValue()); jTextFieldPrefix.setText(""); }//GEN-LAST:event_jButtonApplyActionPerformed private void jSpinnerSizeStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerSizeStateChanged if (jTextFieldPrefix.getText()==null || "".equals(jTextFieldPrefix.getText())) popolate(jTableLow.getSelectedRow(), jTableHigh.getSelectedRow()); else simulate(jTextFieldPrefix.getText(), (Integer)jSpinnerDigit.getValue(), jCheckBoxUpper.isSelected(), (Integer)jSpinnerStart.getValue(), jTableLow.getSelectedRow(), jTableHigh.getSelectedRow(), (Integer)jSpinnerSize.getValue()); }//GEN-LAST:event_jSpinnerSizeStateChanged private void jSpinnerDigitStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerDigitStateChanged simulate(jTextFieldPrefix.getText(), (Integer)jSpinnerDigit.getValue(), jCheckBoxUpper.isSelected(), (Integer)jSpinnerStart.getValue(), jTableLow.getSelectedRow(), jTableHigh.getSelectedRow(), (Integer)jSpinnerSize.getValue()); }//GEN-LAST:event_jSpinnerDigitStateChanged private void jTextFieldPrefixFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldPrefixFocusLost simulate(jTextFieldPrefix.getText(), (Integer)jSpinnerDigit.getValue(), jCheckBoxUpper.isSelected(), (Integer)jSpinnerStart.getValue(), jTableLow.getSelectedRow(), jTableHigh.getSelectedRow(), (Integer)jSpinnerSize.getValue()); }//GEN-LAST:event_jTextFieldPrefixFocusLost private void jCheckBoxUpperItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxUpperItemStateChanged simulate(jTextFieldPrefix.getText(),(Integer)jSpinnerDigit.getValue(), jCheckBoxUpper.isSelected(), (Integer)jSpinnerStart.getValue(), jTableLow.getSelectedRow(), jTableHigh.getSelectedRow(), (Integer)jSpinnerSize.getValue()); }//GEN-LAST:event_jCheckBoxUpperItemStateChanged private void jSpinnerStartStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerStartStateChanged simulate(jTextFieldPrefix.getText(),(Integer)jSpinnerDigit.getValue(), jCheckBoxUpper.isSelected(), (Integer)jSpinnerStart.getValue(), jTableLow.getSelectedRow(), jTableHigh.getSelectedRow(), (Integer)jSpinnerSize.getValue()); }//GEN-LAST:event_jSpinnerStartStateChanged private void jButtonResetActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonResetActionPerformed jSpinnerSize.setValue(2); jSpinnerDigit.setValue(1); jSpinnerStart.setValue(0); jTextFieldPrefix.setText(""); jCheckBoxUpper.setSelected(false); jTableLow.getSelectionModel().removeSelectionInterval(jTableLow.getSelectedRow(), jTableLow.getSelectedRow()); jTableHigh.getSelectionModel().removeSelectionInterval(jTableHigh.getSelectedRow(), jTableHigh.getSelectedRow()); popolate(-1, -1); }//GEN-LAST:event_jButtonResetActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(JWizardDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(JWizardDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(JWizardDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(JWizardDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> /* Create and display the dialog */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { JWizardDialog dialog = new JWizardDialog(new javax.swing.JFrame(), true, null); dialog.addWindowListener(new java.awt.event.WindowAdapter() { @Override public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); } }); dialog.setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButtonApply; private javax.swing.JButton jButtonClose; private javax.swing.JButton jButtonReset; private javax.swing.JCheckBox jCheckBoxUpper; private javax.swing.JLabel jLabelDigit; private javax.swing.JLabel jLabelHigh; private javax.swing.JLabel jLabelLow; private javax.swing.JLabel jLabelPrefix; private javax.swing.JLabel jLabelSeachLow; private javax.swing.JLabel jLabelSearchHigh; private javax.swing.JLabel jLabelSize; private javax.swing.JLabel jLabelStart; private javax.swing.JLabel jLabelText; private javax.swing.JLabel jLabelWizard; private javax.swing.JPanel jPanelCmd; private javax.swing.JPanel jPanelCn; private javax.swing.JPanel jPanelDn; private javax.swing.JPanel jPanelFrom; private javax.swing.JPanel jPanelHigh; private javax.swing.JPanel jPanelLo; private javax.swing.JPanel jPanelMem; private javax.swing.JPanel jPanelSearchHigh; private javax.swing.JPanel jPanelSearchLow; private javax.swing.JPanel jPanelTable; private javax.swing.JPanel jPanelText; private javax.swing.JPanel jPanelTo; private javax.swing.JPanel jPanelUp; private javax.swing.JScrollPane jScrollPaneHigh; private javax.swing.JScrollPane jScrollPaneLow; private javax.swing.JScrollPane jScrollPaneTable; private javax.swing.JSpinner jSpinnerDigit; private javax.swing.JSpinner jSpinnerSize; private javax.swing.JSpinner jSpinnerStart; private javax.swing.JSplitPane jSplitPaneMain; private javax.swing.JTable jTable; private javax.swing.JTable jTableHigh; private javax.swing.JTable jTableLow; private javax.swing.JTextField jTextFieldPrefix; // End of variables declaration//GEN-END:variables /** * Popolate the table with addresses * * @param rowLow low row position * @param rowHigh high row position */ private void popolate(int rowLow, int rowHigh) { int row=-1; TableModel model=jTable.getModel(); for (int i=0; i<256; i++) { if (i%8==0) row++; model.setValueAt("", row, i%8); } int size=(Integer)jSpinnerSize.getValue(); if (hasError(rowLow, rowHigh, size)) return; int address; String label; MemoryDasm mem; row=-1; for (int i=0; i<size; i++) { if (i%8==0) row++; address=(memory[rowLow+i].copy & 0xFF)+(memory[rowHigh+i].copy & 0xFF)*256; mem=memory[address]; if (mem.userLocation!=null && !"".equals(mem.userLocation)) label=mem.userLocation; else if (mem.dasmLocation!=null && !"".equals(mem.dasmLocation)) label=mem.dasmLocation; else label="$"+Shared.ShortToExe((int)address); model.setValueAt(label, row, i%8); } } /** * Apply the selected table to relative relation in memory * * @param prefix prefix for label * @param digit digit to use * @param uppercase uppercase digit * @param start the starting digit * @param rowLow row low position * @param rowHigh roh high position * @param size size to use for table */ private void apply(String prefix, int digit, boolean uppercase, int start, int rowLow, int rowHigh, int size) { if (hasError(rowLow, rowHigh, size)) return; int address; MemoryDasm mem; String label; for (int i=0; i<size; i++) { address=(memory[rowLow+i].copy & 0xFF)+(memory[rowHigh+i].copy & 0xFF)*256; mem=memory[address]; memory[rowLow+i].related=address; memory[rowLow+i].type=TYPE_MINOR; memory[rowHigh+i].related=address; memory[rowHigh+i].type=TYPE_MAJOR; if (prefix!=null && !"".equals(prefix)) { label=Integer.toHexString(i+start); if (label.length()==1 && digit==2) label="0"+label; if (uppercase) label=label.toUpperCase(); else label=label.toLowerCase(); label=prefix+label; memory[address].userLocation=label; } } if (option.pedantic) JOptionPane.showMessageDialog(this, "Table relation applied into memory"); jTableLow.getSelectionModel().removeSelectionInterval(rowLow, rowLow); jTableHigh.getSelectionModel().removeSelectionInterval(rowHigh, rowHigh); popolate(-1, -1); } /** * Check if has error * * @param rowLow low row position * @param rowHigh high row position * @param size the size of table * @return true if it has error */ private boolean hasError(int rowLow, int rowHigh, int size) { if (rowLow==-1 || rowHigh==-1) return true; if (rowLow+size>0xFFFF) { JOptionPane.showMessageDialog(this, "Size is too big for this low address"); return true; } if (rowHigh+size>0xFFFF) { JOptionPane.showMessageDialog(this, "Size is too big for this high address"); return true; } if (rowLow<rowHigh && rowHigh<rowLow+size) { JOptionPane.showMessageDialog(this, "High address is inside low address table"); return true; } if (rowHigh<rowLow && rowLow<rowHigh+size) { JOptionPane.showMessageDialog(this, "Low address is inside high address table"); return true; } return false; } /** * Simulate label creation * * @param prefix prefix for label * @param digit digit to use * @param uppercase uppercase digit * @param start the starting digit * @param rowLow low row position * @param rowHigh high row position * @param size the size of table */ private void simulate(String prefix, int digit, boolean uppercase, int start, int rowLow, int rowHigh, int size) { int address; MemoryDasm mem; String label; if (prefix==null || "".equals(prefix)) { for (int i=0; i<size; i++) { address=(memory[rowLow+i].copy & 0xFF)+(memory[rowHigh+i].copy & 0xFF)*256; memory[rowLow+i].related=address; memory[rowLow+i].type=TYPE_MINOR; memory[rowHigh+i].related=address; memory[rowHigh+i].type=TYPE_MAJOR; } return; } TableModel model=jTable.getModel(); int row=-1; for (int i=0; i<size; i++) { if (i%8==0) row++; address=(memory[rowLow+i].copy & 0xFF)+(memory[rowHigh+i].copy & 0xFF)*256; mem=memory[address]; if (prefix!=null && !"".equals(prefix)) { label=Integer.toHexString(i+start); if (label.length()==1 && digit==2) label="0"+label; if (uppercase) label=label.toUpperCase(); else label=label.toLowerCase(); label=prefix+label; if (label.contains(" ")) { JOptionPane.showMessageDialog(this, "Label must not contain spaces", "Error", JOptionPane.ERROR_MESSAGE); return; } if (label.length()>option.maxLabelLength) { JOptionPane.showMessageDialog(this, "Label too long. Max allowed="+option.maxLabelLength, "Error", JOptionPane.ERROR_MESSAGE); return; } if (label.length()<2) { JOptionPane.showMessageDialog(this, "Label too short. Min allowed=2", "Error", JOptionPane.ERROR_MESSAGE); return; } // see if the label is already defined for (MemoryDasm memory : project.memory) { if (label.equals(memory.dasmLocation) || label.equals(memory.userLocation)) { JOptionPane.showMessageDialog(this, "This label is already used into the source", "Error", JOptionPane.ERROR_MESSAGE); return; } } // see if label is as constant for (int ii=0; ii<Constant.COLS; ii++) { for (int j=0; j<Constant.ROWS; j++) { if (label.equals(project.constant.table[ii][j])) { JOptionPane.showMessageDialog(this, "This label is already used as constant", "Error", JOptionPane.ERROR_MESSAGE); return; } } } String tmp=label.toUpperCase(); for (String val: M6510Dasm.mnemonics) { if (tmp.equals(val)) { JOptionPane.showMessageDialog(this, "This label is an opcode, cannot be defined", "Error", JOptionPane.ERROR_MESSAGE); return; } } if (label.startsWith("W") && label.length()==5) { JOptionPane.showMessageDialog(this, "Label cannot be like Wxxxx as they are reserverd", "Error", JOptionPane.ERROR_MESSAGE); return; } } else { if (mem.userLocation!=null && !"".equals(mem.userLocation)) label=mem.userLocation; else if (mem.dasmLocation!=null && !"".equals(mem.dasmLocation)) label=mem.dasmLocation; else label="$"+Shared.ShortToExe((int)address); } model.setValueAt(label, row, i%8); } } }
45,068
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
JHelpFrame.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/JHelpFrame.java
/* * @(#)JHelpFrame.java 2019/12/29 * * ICE Team free software group * * This file is part of JIIT64 Java Ice Team Tracker 64 * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA */ package sw_emulator.swing; import javax.swing.JEditorPane; import javax.swing.text.html.HTMLDocument; import javax.swing.event.HyperlinkEvent; import javax.swing.text.html.HTMLFrameHyperlinkEvent; /** * Help frame * * @author ice */ public class JHelpFrame extends javax.swing.JFrame { /** Creates new form JHelpFrame */ public JHelpFrame() { initComponents(); Shared.framesList.add(this); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanelDn = new javax.swing.JPanel(); jButtonClose = new javax.swing.JButton(); jScrollPaneHelp = new javax.swing.JScrollPane(); jEditorPaneHelp = new javax.swing.JEditorPane(); setTitle("JC64dis Help"); jButtonClose.setText("Close"); jButtonClose.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonCloseActionPerformed(evt); } }); jPanelDn.add(jButtonClose); getContentPane().add(jPanelDn, java.awt.BorderLayout.SOUTH); jScrollPaneHelp.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneHelp.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); jEditorPaneHelp.setEditable(false); jEditorPaneHelp.setContentType("text/html"); try { jEditorPaneHelp.setPage( getClass().getResource("/sw_emulator/swing/help/index.html") ); } catch (Exception e) { System.err.println(e); } jEditorPaneHelp.addHyperlinkListener(new javax.swing.event.HyperlinkListener() { public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent evt) { jEditorPaneHelpHyperlinkUpdate(evt); } }); jScrollPaneHelp.setViewportView(jEditorPaneHelp); getContentPane().add(jScrollPaneHelp, java.awt.BorderLayout.CENTER); setSize(new java.awt.Dimension(1142, 874)); setLocationRelativeTo(null); }// </editor-fold>//GEN-END:initComponents private void jButtonCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCloseActionPerformed setVisible(false); }//GEN-LAST:event_jButtonCloseActionPerformed private void jEditorPaneHelpHyperlinkUpdate(javax.swing.event.HyperlinkEvent evt) {//GEN-FIRST:event_jEditorPaneHelpHyperlinkUpdate // froom SUN tutorials examples if (evt.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { JEditorPane pane = (JEditorPane) evt.getSource(); if (evt instanceof HTMLFrameHyperlinkEvent) { HTMLFrameHyperlinkEvent e = (HTMLFrameHyperlinkEvent)evt; HTMLDocument doc = (HTMLDocument)pane.getDocument(); doc.processHTMLFrameHyperlinkEvent(e); } else { try { pane.setPage(evt.getURL()); } catch (Exception t) { System.err.println(t); } } } }//GEN-LAST:event_jEditorPaneHelpHyperlinkUpdate /** * @param args the command line arguments */ public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new JHelpFrame().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButtonClose; private javax.swing.JEditorPane jEditorPaneHelp; private javax.swing.JPanel jPanelDn; private javax.swing.JScrollPane jScrollPaneHelp; // End of variables declaration//GEN-END:variables }
4,940
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
JKickPanel.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/JKickPanel.java
/** * @(#)JKickPanel 2022/05/03 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing; import sw_emulator.software.Assembler; import sw_emulator.swing.main.Option; /** * A panel for Kick Assembler assembler option * * @author ice */ public class JKickPanel extends javax.swing.JPanel { /** Option file to use */ Option option; /** * Creates new form JKickPanel */ public JKickPanel() { initComponents(); } /** * Set up the panel with the option * * @param option the option to use */ public void setUp(Option option) { this.option=option; } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroupKickTribyte = new javax.swing.ButtonGroup(); buttonGroupKickComment = new javax.swing.ButtonGroup(); buttonGroupKickOrigin = new javax.swing.ButtonGroup(); buttonGroupKickLabel = new javax.swing.ButtonGroup(); buttonGroupKickLong = new javax.swing.ButtonGroup(); buttonGroupKickStarting = new javax.swing.ButtonGroup(); buttonGroupKickWordSwapped = new javax.swing.ButtonGroup(); buttonGroupKickMultiSprite = new javax.swing.ButtonGroup(); buttonGroupKickByte = new javax.swing.ButtonGroup(); buttonGroupKickText = new javax.swing.ButtonGroup(); buttonGroupKickBlockComment = new javax.swing.ButtonGroup(); buttonGroupKickWord = new javax.swing.ButtonGroup(); buttonGroupKickMonoSprite = new javax.swing.ButtonGroup(); buttonGroupKickNumText = new javax.swing.ButtonGroup(); buttonGroupKickZeroText = new javax.swing.ButtonGroup(); buttonGroupKickAddress = new javax.swing.ButtonGroup(); buttonGroupKickStackWord = new javax.swing.ButtonGroup(); buttonGroupKickShiftText = new javax.swing.ButtonGroup(); buttonGroupKickScreenText = new javax.swing.ButtonGroup(); buttonGroupKickPetasciiText = new javax.swing.ButtonGroup(); buttonGroupKickHighText = new javax.swing.ButtonGroup(); jLabelKickLabelDeclaration = new javax.swing.JLabel(); jRadioButtonKickLabelNameColon = new javax.swing.JRadioButton(); jScrollPaneKickLabelNameColon = new javax.swing.JScrollPane(); jTextPaneKickLabelNameColon = new javax.swing.JTextPane(); jLabelKickByteDeclaration = new javax.swing.JLabel(); jRadioButtonKickDotByte = new javax.swing.JRadioButton(); jScrollPaneKickDotByte = new javax.swing.JScrollPane(); jTextPaneKickDotByte = new javax.swing.JTextPane(); jLabelKickWordDeclaration = new javax.swing.JLabel(); jRadioButtonKickDotWord = new javax.swing.JRadioButton(); jScrollPaneKickDotWord = new javax.swing.JScrollPane(); jTextPaneKickDotWord = new javax.swing.JTextPane(); jLabelKickStartingDeclaration = new javax.swing.JLabel(); jRadioButtonKickDotCpuUndStarting = new javax.swing.JRadioButton(); jScrollPaneKickDotCpuUndStarting = new javax.swing.JScrollPane(); jTextPaneKickDotCpuUndStarting = new javax.swing.JTextPane(); jLabelKickCommentDeclaration = new javax.swing.JLabel(); jRadioButtonKickDoubleBarComment = new javax.swing.JRadioButton(); jScrollPaneKickDoubleBarComment = new javax.swing.JScrollPane(); jTextPaneKickDoubleBarComment = new javax.swing.JTextPane(); jLabelKickOriginDeclaration = new javax.swing.JLabel(); jRadioButtonKickAsterixOrigin = new javax.swing.JRadioButton(); jScrollPaneKickAsterixOrigin = new javax.swing.JScrollPane(); jTextPaneKickAsterixOrigin = new javax.swing.JTextPane(); jRadioButtonKickDotPcOrigin = new javax.swing.JRadioButton(); jScrollPaneKickDotPcOrigin = new javax.swing.JScrollPane(); jTextPaneKickDotPcOrigin = new javax.swing.JTextPane(); jLabelKickBlockCommentDeclaration = new javax.swing.JLabel(); jRadioButtonKickDoubleBarBlockComment = new javax.swing.JRadioButton(); jScrollPaneKickDoubleBarBlockComment = new javax.swing.JScrollPane(); jTextPaneKickDoubleBarBlockComment = new javax.swing.JTextPane(); jRadioButtonKickCstyleBlockComment = new javax.swing.JRadioButton(); jScrollPaneKickCstyleBlockComment = new javax.swing.JScrollPane(); jTextPaneKickCstyleBlockComment = new javax.swing.JTextPane(); jRadioButtonDasmSharpIfPBlockComment = new javax.swing.JRadioButton(); jScrollPaneDasmSharpIfPBlockComment = new javax.swing.JScrollPane(); jTextPaneDasmSharpIfPBlockComment = new javax.swing.JTextPane(); jLabelKickMultiSpriteDeclaration = new javax.swing.JLabel(); jLabelKickMonoSpriteDeclaration = new javax.swing.JLabel(); jRadioButtonKickByteHexMonoSprite = new javax.swing.JRadioButton(); jRadioButtonKickByteHexMultiSprite = new javax.swing.JRadioButton(); jScrollPaneKickByteHexMultiSprite = new javax.swing.JScrollPane(); jTextPaneKickByteHexMultiSprite = new javax.swing.JTextPane(); jScrollPaneKickByteHexMonoSprite = new javax.swing.JScrollPane(); jTextPaneKickByteHexMonoSprite = new javax.swing.JTextPane(); jRadioButtonKickByteBinMonoSprite = new javax.swing.JRadioButton(); jRadioButtonKickByteBinMultiSprite = new javax.swing.JRadioButton(); jScrollPaneKickByteBinMultiSprite = new javax.swing.JScrollPane(); jTextPaneKickByteBinMultiSprite = new javax.swing.JTextPane(); jScrollPaneKickByteBinMonoSprite = new javax.swing.JScrollPane(); jTextPaneKickByteBinMonoSprite = new javax.swing.JTextPane(); jRadioButtonKickMacroHexMonoSprite = new javax.swing.JRadioButton(); jRadioButtonKickMacroHexMultiSprite = new javax.swing.JRadioButton(); jScrollPaneKickMacroHexMultiSprite = new javax.swing.JScrollPane(); jTextPaneKickMacroHexMultiSprite = new javax.swing.JTextPane(); jScrollPaneKickMacroHexMonoSprite = new javax.swing.JScrollPane(); jTextPaneKickMacroHexMonoSprite = new javax.swing.JTextPane(); jRadioButtonKickMacroBinMonoSprite = new javax.swing.JRadioButton(); jRadioButtonKickMacroBinMultiSprite = new javax.swing.JRadioButton(); jScrollPanekickMacroBinMultiSprite = new javax.swing.JScrollPane(); jTextPaneKickMacroBinMultiSprite = new javax.swing.JTextPane(); jScrollPaneKickMacroBinMonoSprite = new javax.swing.JScrollPane(); jTextPaneKickMacroBinMonoSprite = new javax.swing.JTextPane(); jLabelKickTribyteDeclaration = new javax.swing.JLabel(); jRadioButtonKickMacroTribyte = new javax.swing.JRadioButton(); jScrollPaneKickMacroTribyte = new javax.swing.JScrollPane(); jTextPaneKickMacroTribyte = new javax.swing.JTextPane(); jLabelKickLongDeclaration = new javax.swing.JLabel(); jRadioButtonKickDwordLong = new javax.swing.JRadioButton(); jScrollPaneKickDwordLong = new javax.swing.JScrollPane(); jTextPaneKickDwordLong = new javax.swing.JTextPane(); jLabelKickWordSwappedDeclaration = new javax.swing.JLabel(); jRadioButtonKickMacroWordSwapped = new javax.swing.JRadioButton(); jScrollPaneKickMacroWordSwapped = new javax.swing.JScrollPane(); jTextPaneKickMacroWordSwapped = new javax.swing.JTextPane(); jLabelKickTextDeclaration = new javax.swing.JLabel(); jRadioButtonKickDotText = new javax.swing.JRadioButton(); jScrollPaneKickDotText = new javax.swing.JScrollPane(); jTextPaneKickDotText = new javax.swing.JTextPane(); jRadioButtonKickDotByByte = new javax.swing.JRadioButton(); jScrollPaneKickDotByByte = new javax.swing.JScrollPane(); jTextPaneKickDotByByte = new javax.swing.JTextPane(); jRadioButtonKickDotWoWord = new javax.swing.JRadioButton(); jScrollPaneKickDotWoWord = new javax.swing.JScrollPane(); jTextPaneKickDotWoWord = new javax.swing.JTextPane(); jRadioButtonKickDotDwLong = new javax.swing.JRadioButton(); jScrollPaneKickDotDwLong = new javax.swing.JScrollPane(); jTextPaneKickDotDwLong = new javax.swing.JTextPane(); jCheckBoxKickColonMacro = new javax.swing.JCheckBox(); jLabelKickNumTextDeclaration = new javax.swing.JLabel(); jRadioButtonKickDotTextNumText = new javax.swing.JRadioButton(); jScrollPaneKickDotTextNumText = new javax.swing.JScrollPane(); jTextPaneKickDotTextNumText = new javax.swing.JTextPane(); jLabelKickZeroTextDeclaration = new javax.swing.JLabel(); jRadioButtonKickDotTextZeroText = new javax.swing.JRadioButton(); jScrollPaneKickDotTextZeroText = new javax.swing.JScrollPane(); jTextPaneKickDotTextZeroText = new javax.swing.JTextPane(); jLabelKickAddressDeclaration = new javax.swing.JLabel(); jRadioButtonKickDotWordAddress = new javax.swing.JRadioButton(); jScrollPaneKickDotWordAddress = new javax.swing.JScrollPane(); jTextPaneKickDotWordAddress = new javax.swing.JTextPane(); jRadioButtonKickDotWoWordAddress = new javax.swing.JRadioButton(); jScrollPaneKickDotWoWordAddress = new javax.swing.JScrollPane(); jTextPaneKickDotWoWordAddress = new javax.swing.JTextPane(); jLabelKickStackWordDeclaration = new javax.swing.JLabel(); jRadioButtonKickMacroStackWord = new javax.swing.JRadioButton(); jScrollPaneKickMacroStackWord = new javax.swing.JScrollPane(); jTextPaneKickMacroStackWord = new javax.swing.JTextPane(); jLabelKickHighTextDeclaration = new javax.swing.JLabel(); jRadioButtonKickDotTextHighText = new javax.swing.JRadioButton(); jScrollPaneKickDotTextHighText = new javax.swing.JScrollPane(); jTextPaneKickDotTextHighText = new javax.swing.JTextPane(); jLabelKickShiftTextDeclaration = new javax.swing.JLabel(); jRadioButtonKickDotTextShiftText = new javax.swing.JRadioButton(); jScrollPaneKickDotTextShiftText = new javax.swing.JScrollPane(); jTextPaneKickDotTextShiftText = new javax.swing.JTextPane(); jLabelKickScreenTextDeclaration = new javax.swing.JLabel(); jLabelKickPetasciiTextDeclaration = new javax.swing.JLabel(); jRadioButtonKickDotTextScreenText = new javax.swing.JRadioButton(); jRadioButtonKickDotTextPetasciiText = new javax.swing.JRadioButton(); jScrollPaneKickDotTextScreenText = new javax.swing.JScrollPane(); ScreenjTextPaneKickDotTextScreenText = new javax.swing.JTextPane(); jScrollPaneKickDotTextPetasciiText = new javax.swing.JScrollPane(); jTextPaneKickDotTextPetasciiText = new javax.swing.JTextPane(); jLabelKickLabelDeclaration.setText("Label:"); buttonGroupKickLabel.add(jRadioButtonKickLabelNameColon); jRadioButtonKickLabelNameColon.setSelected(true); jRadioButtonKickLabelNameColon.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickLabelNameColonItemStateChanged(evt); } }); jScrollPaneKickLabelNameColon.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickLabelNameColon.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickLabelNameColon.setEditable(false); jTextPaneKickLabelNameColon.setContentType("text/html"); // NOI18N jTextPaneKickLabelNameColon.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <font color='black'>zzzz</font><b>:</b>\n </p\n </body>\n</html>\n"); jScrollPaneKickLabelNameColon.setViewportView(jTextPaneKickLabelNameColon); jLabelKickByteDeclaration.setText("Byte:"); buttonGroupKickByte.add(jRadioButtonKickDotByte); jRadioButtonKickDotByte.setSelected(true); jRadioButtonKickDotByte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDotByteItemStateChanged(evt); } }); jScrollPaneKickDotByte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDotByte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickDotByte.setEditable(false); jTextPaneKickDotByte.setContentType("text/html"); // NOI18N jTextPaneKickDotByte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byte</b> <font color='red'>$xx</font><br>\n <b> .byte</b> <font color='blue'>dd</font><br>\n <b> .byte</b> <font color='green'>%bb</font><br>\n <b> .byte</b> <font color='purple'>'c'</font>\n </p>\n </body>\n</html>\n"); jScrollPaneKickDotByte.setViewportView(jTextPaneKickDotByte); jLabelKickWordDeclaration.setText("Word:"); buttonGroupKickWord.add(jRadioButtonKickDotWord); jRadioButtonKickDotWord.setSelected(true); jRadioButtonKickDotWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDotWordItemStateChanged(evt); } }); jScrollPaneKickDotWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDotWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickDotWord.setEditable(false); jTextPaneKickDotWord.setContentType("text/html"); // NOI18N jTextPaneKickDotWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .word</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickDotWord.setViewportView(jTextPaneKickDotWord); jLabelKickStartingDeclaration.setText("Starting:"); buttonGroupKickStarting.add(jRadioButtonKickDotCpuUndStarting); jRadioButtonKickDotCpuUndStarting.setSelected(true); jRadioButtonKickDotCpuUndStarting.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDotCpuUndStartingItemStateChanged(evt); } }); jScrollPaneKickDotCpuUndStarting.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDotCpuUndStarting.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickDotCpuUndStarting.setEditable(false); jTextPaneKickDotCpuUndStarting.setContentType("text/html"); // NOI18N jTextPaneKickDotCpuUndStarting.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>.cpu</b> _6502\n </p>\n </body>\n</html>\n"); jScrollPaneKickDotCpuUndStarting.setViewportView(jTextPaneKickDotCpuUndStarting); jLabelKickCommentDeclaration.setText("Comment:"); buttonGroupKickComment.add(jRadioButtonKickDoubleBarComment); jRadioButtonKickDoubleBarComment.setSelected(true); jRadioButtonKickDoubleBarComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDoubleBarCommentItemStateChanged(evt); } }); jScrollPaneKickDoubleBarComment.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDoubleBarComment.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickDoubleBarComment.setEditable(false); jTextPaneKickDoubleBarComment.setContentType("text/html"); // NOI18N jTextPaneKickDoubleBarComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>//</b> xxx\n </p>\n </body>\n</html>\n"); jScrollPaneKickDoubleBarComment.setViewportView(jTextPaneKickDoubleBarComment); jLabelKickOriginDeclaration.setText("Origin:"); buttonGroupKickOrigin.add(jRadioButtonKickAsterixOrigin); jRadioButtonKickAsterixOrigin.setSelected(true); jRadioButtonKickAsterixOrigin.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickAsterixOriginItemStateChanged(evt); } }); jScrollPaneKickAsterixOrigin.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickAsterixOrigin.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickAsterixOrigin.setEditable(false); jTextPaneKickAsterixOrigin.setContentType("text/html"); // NOI18N jTextPaneKickAsterixOrigin.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>*=</b>$xxyy\n </p>\n </body>\n</html>"); jScrollPaneKickAsterixOrigin.setViewportView(jTextPaneKickAsterixOrigin); buttonGroupKickOrigin.add(jRadioButtonKickDotPcOrigin); jRadioButtonKickDotPcOrigin.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDotPcOriginItemStateChanged(evt); } }); jScrollPaneKickDotPcOrigin.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDotPcOrigin.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickDotPcOrigin.setEditable(false); jTextPaneKickDotPcOrigin.setContentType("text/html"); // NOI18N jTextPaneKickDotPcOrigin.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>.pc</b> $xxyy\n </p>\n </body>\n</html>\n"); jScrollPaneKickDotPcOrigin.setViewportView(jTextPaneKickDotPcOrigin); jLabelKickBlockCommentDeclaration.setText("Block Comment:"); buttonGroupKickBlockComment.add(jRadioButtonKickDoubleBarBlockComment); jRadioButtonKickDoubleBarBlockComment.setSelected(true); jRadioButtonKickDoubleBarBlockComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDoubleBarBlockCommentItemStateChanged(evt); } }); jScrollPaneKickDoubleBarBlockComment.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDoubleBarBlockComment.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickDoubleBarBlockComment.setEditable(false); jTextPaneKickDoubleBarBlockComment.setContentType("text/html"); // NOI18N jTextPaneKickDoubleBarBlockComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>//</b> xxx\n </p>\n </body>\n</html>\n"); jScrollPaneKickDoubleBarBlockComment.setViewportView(jTextPaneKickDoubleBarBlockComment); buttonGroupKickBlockComment.add(jRadioButtonKickCstyleBlockComment); jRadioButtonKickCstyleBlockComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickCstyleBlockCommentItemStateChanged(evt); } }); jScrollPaneKickCstyleBlockComment.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickCstyleBlockComment.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickCstyleBlockComment.setEditable(false); jTextPaneKickCstyleBlockComment.setContentType("text/html"); // NOI18N jTextPaneKickCstyleBlockComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>/*</b> xxx <b'>*/</b>\n </p>\n </body>\n</html>\n"); jScrollPaneKickCstyleBlockComment.setViewportView(jTextPaneKickCstyleBlockComment); buttonGroupKickBlockComment.add(jRadioButtonDasmSharpIfPBlockComment); jRadioButtonDasmSharpIfPBlockComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDasmSharpIfPBlockCommentItemStateChanged(evt); } }); jScrollPaneDasmSharpIfPBlockComment.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmSharpIfPBlockComment.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmSharpIfPBlockComment.setEditable(false); jTextPaneDasmSharpIfPBlockComment.setContentType("text/html"); // NOI18N jTextPaneDasmSharpIfPBlockComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>#if </b> xxx <b>#endif</b>\n </p>\n </body>\n</html>\n"); jScrollPaneDasmSharpIfPBlockComment.setViewportView(jTextPaneDasmSharpIfPBlockComment); jLabelKickMultiSpriteDeclaration.setText("Multicolor sprite:"); jLabelKickMonoSpriteDeclaration.setText("Monocolor sprite:"); buttonGroupKickMonoSprite.add(jRadioButtonKickByteHexMonoSprite); jRadioButtonKickByteHexMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickByteHexMonoSpriteItemStateChanged(evt); } }); buttonGroupKickMultiSprite.add(jRadioButtonKickByteHexMultiSprite); jRadioButtonKickByteHexMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickByteHexMultiSpriteItemStateChanged(evt); } }); jScrollPaneKickByteHexMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickByteHexMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickByteHexMultiSprite.setEditable(false); jTextPaneKickByteHexMultiSprite.setContentType("text/html"); // NOI18N jTextPaneKickByteHexMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> [byte]</b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickByteHexMultiSprite.setViewportView(jTextPaneKickByteHexMultiSprite); jScrollPaneKickByteHexMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickByteHexMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickByteHexMonoSprite.setEditable(false); jTextPaneKickByteHexMonoSprite.setContentType("text/html"); // NOI18N jTextPaneKickByteHexMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> [byte]</b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickByteHexMonoSprite.setViewportView(jTextPaneKickByteHexMonoSprite); buttonGroupKickMonoSprite.add(jRadioButtonKickByteBinMonoSprite); jRadioButtonKickByteBinMonoSprite.setSelected(true); jRadioButtonKickByteBinMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickByteBinMonoSpriteItemStateChanged(evt); } }); buttonGroupKickMultiSprite.add(jRadioButtonKickByteBinMultiSprite); jRadioButtonKickByteBinMultiSprite.setSelected(true); jRadioButtonKickByteBinMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickByteBinMultiSpriteItemStateChanged(evt); } }); jScrollPaneKickByteBinMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickByteBinMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickByteBinMultiSprite.setEditable(false); jTextPaneKickByteBinMultiSprite.setContentType("text/html"); // NOI18N jTextPaneKickByteBinMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[byte]</b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickByteBinMultiSprite.setViewportView(jTextPaneKickByteBinMultiSprite); jScrollPaneKickByteBinMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickByteBinMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickByteBinMonoSprite.setEditable(false); jTextPaneKickByteBinMonoSprite.setContentType("text/html"); // NOI18N jTextPaneKickByteBinMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[byte]</b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickByteBinMonoSprite.setViewportView(jTextPaneKickByteBinMonoSprite); buttonGroupKickMonoSprite.add(jRadioButtonKickMacroHexMonoSprite); jRadioButtonKickMacroHexMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickMacroHexMonoSpriteItemStateChanged(evt); } }); buttonGroupKickMultiSprite.add(jRadioButtonKickMacroHexMultiSprite); jRadioButtonKickMacroHexMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickMacroHexMultiSpriteItemStateChanged(evt); } }); jScrollPaneKickMacroHexMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickMacroHexMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickMacroHexMultiSprite.setEditable(false); jTextPaneKickMacroHexMultiSprite.setContentType("text/html"); // NOI18N jTextPaneKickMacroHexMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.macro] </b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickMacroHexMultiSprite.setViewportView(jTextPaneKickMacroHexMultiSprite); jScrollPaneKickMacroHexMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickMacroHexMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickMacroHexMonoSprite.setEditable(false); jTextPaneKickMacroHexMonoSprite.setContentType("text/html"); // NOI18N jTextPaneKickMacroHexMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.macro] </b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickMacroHexMonoSprite.setViewportView(jTextPaneKickMacroHexMonoSprite); buttonGroupKickMonoSprite.add(jRadioButtonKickMacroBinMonoSprite); jRadioButtonKickMacroBinMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickMacroBinMonoSpriteItemStateChanged(evt); } }); buttonGroupKickMultiSprite.add(jRadioButtonKickMacroBinMultiSprite); jRadioButtonKickMacroBinMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickMacroBinMultiSpriteItemStateChanged(evt); } }); jScrollPanekickMacroBinMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPanekickMacroBinMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickMacroBinMultiSprite.setEditable(false); jTextPaneKickMacroBinMultiSprite.setContentType("text/html"); // NOI18N jTextPaneKickMacroBinMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.macro] </b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPanekickMacroBinMultiSprite.setViewportView(jTextPaneKickMacroBinMultiSprite); jScrollPaneKickMacroBinMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickMacroBinMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickMacroBinMonoSprite.setEditable(false); jTextPaneKickMacroBinMonoSprite.setContentType("text/html"); // NOI18N jTextPaneKickMacroBinMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.macro] </b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickMacroBinMonoSprite.setViewportView(jTextPaneKickMacroBinMonoSprite); jLabelKickTribyteDeclaration.setText("Tribyte:"); buttonGroupKickTribyte.add(jRadioButtonKickMacroTribyte); jRadioButtonKickMacroTribyte.setSelected(true); jRadioButtonKickMacroTribyte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickMacroTribyteItemStateChanged(evt); } }); jScrollPaneKickMacroTribyte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickMacroTribyte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickMacroTribyte.setEditable(false); jTextPaneKickMacroTribyte.setContentType("text/html"); // NOI18N jTextPaneKickMacroTribyte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac]</b> <font color='red'>$xxyyzz</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickMacroTribyte.setViewportView(jTextPaneKickMacroTribyte); jLabelKickLongDeclaration.setText("Long:"); buttonGroupKickLong.add(jRadioButtonKickDwordLong); jRadioButtonKickDwordLong.setSelected(true); jRadioButtonKickDwordLong.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDwordLongItemStateChanged(evt); } }); jScrollPaneKickDwordLong.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDwordLong.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickDwordLong.setEditable(false); jTextPaneKickDwordLong.setContentType("text/html"); // NOI18N jTextPaneKickDwordLong.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .dword</b> <font color='red'>$xxyyzzkk</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickDwordLong.setViewportView(jTextPaneKickDwordLong); jLabelKickWordSwappedDeclaration.setText("Word Swapped:"); buttonGroupKickWordSwapped.add(jRadioButtonKickMacroWordSwapped); jRadioButtonKickMacroWordSwapped.setSelected(true); jRadioButtonKickMacroWordSwapped.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickMacroWordSwappedItemStateChanged(evt); } }); jScrollPaneKickMacroWordSwapped.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickMacroWordSwapped.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickMacroWordSwapped.setEditable(false); jTextPaneKickMacroWordSwapped.setContentType("text/html"); // NOI18N jTextPaneKickMacroWordSwapped.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac]</b> <font color='red'>$yyxx</font><br>\n </p>\n </body>\n</html>\n"); jScrollPaneKickMacroWordSwapped.setViewportView(jTextPaneKickMacroWordSwapped); jLabelKickTextDeclaration.setText("Text:"); buttonGroupKickText.add(jRadioButtonKickDotText); jRadioButtonKickDotText.setSelected(true); jRadioButtonKickDotText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDotTextItemStateChanged(evt); } }); jScrollPaneKickDotText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDotText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickDotText.setEditable(false); jTextPaneKickDotText.setContentType("text/html"); // NOI18N jTextPaneKickDotText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .text</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickDotText.setViewportView(jTextPaneKickDotText); buttonGroupKickByte.add(jRadioButtonKickDotByByte); jRadioButtonKickDotByByte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDotByByteItemStateChanged(evt); } }); jScrollPaneKickDotByByte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDotByByte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickDotByByte.setEditable(false); jTextPaneKickDotByByte.setContentType("text/html"); // NOI18N jTextPaneKickDotByByte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .by</b> <font color='red'>$xx</font><br>\n <b> .by</b> <font color='blue'>dd</font><br>\n <b> .by</b> <font color='green'>%bb</font><br>\n <b> .by</b> <font color='purple'>'c'</font>\n </p>\n </body>\n</html>\n"); jScrollPaneKickDotByByte.setViewportView(jTextPaneKickDotByByte); buttonGroupKickWord.add(jRadioButtonKickDotWoWord); jRadioButtonKickDotWoWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDotWoWordItemStateChanged(evt); } }); jScrollPaneKickDotWoWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDotWoWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickDotWoWord.setEditable(false); jTextPaneKickDotWoWord.setContentType("text/html"); // NOI18N jTextPaneKickDotWoWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .wo</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickDotWoWord.setViewportView(jTextPaneKickDotWoWord); buttonGroupKickLong.add(jRadioButtonKickDotDwLong); jRadioButtonKickDotDwLong.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDotDwLongItemStateChanged(evt); } }); jScrollPaneKickDotDwLong.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDotDwLong.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickDotDwLong.setEditable(false); jTextPaneKickDotDwLong.setContentType("text/html"); // NOI18N jTextPaneKickDotDwLong.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .dw</b> <font color='red'>$xxyyzzkk</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickDotDwLong.setViewportView(jTextPaneKickDotDwLong); jCheckBoxKickColonMacro.setText("Call a macro with a colon before"); jCheckBoxKickColonMacro.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxKickColonMacroActionPerformed(evt); } }); jLabelKickNumTextDeclaration.setText("Text #num chars:"); buttonGroupKickNumText.add(jRadioButtonKickDotTextNumText); jRadioButtonKickDotTextNumText.setSelected(true); jRadioButtonKickDotTextNumText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDotTextNumTextItemStateChanged(evt); } }); jScrollPaneKickDotTextNumText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDotTextNumText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickDotTextNumText.setEditable(false); jTextPaneKickDotTextNumText.setContentType("text/html"); // NOI18N jTextPaneKickDotTextNumText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .text</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickDotTextNumText.setViewportView(jTextPaneKickDotTextNumText); jLabelKickZeroTextDeclaration.setText("Text 0 terminated:"); buttonGroupKickZeroText.add(jRadioButtonKickDotTextZeroText); jRadioButtonKickDotTextZeroText.setSelected(true); jRadioButtonKickDotTextZeroText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDotTextZeroTextItemStateChanged(evt); } }); jScrollPaneKickDotTextZeroText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDotTextZeroText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickDotTextZeroText.setEditable(false); jTextPaneKickDotTextZeroText.setContentType("text/html"); // NOI18N jTextPaneKickDotTextZeroText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .text</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickDotTextZeroText.setViewportView(jTextPaneKickDotTextZeroText); jLabelKickAddressDeclaration.setText("Address:"); buttonGroupKickAddress.add(jRadioButtonKickDotWordAddress); jRadioButtonKickDotWordAddress.setSelected(true); jRadioButtonKickDotWordAddress.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDotWordAddressItemStateChanged(evt); } }); jScrollPaneKickDotWordAddress.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDotWordAddress.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickDotWordAddress.setEditable(false); jTextPaneKickDotWordAddress.setContentType("text/html"); // NOI18N jTextPaneKickDotWordAddress.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .word</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickDotWordAddress.setViewportView(jTextPaneKickDotWordAddress); buttonGroupKickAddress.add(jRadioButtonKickDotWoWordAddress); jRadioButtonKickDotWoWordAddress.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDotWoWordAddressItemStateChanged(evt); } }); jScrollPaneKickDotWoWordAddress.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDotWoWordAddress.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickDotWoWordAddress.setEditable(false); jTextPaneKickDotWoWordAddress.setContentType("text/html"); // NOI18N jTextPaneKickDotWoWordAddress.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .wo</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickDotWoWordAddress.setViewportView(jTextPaneKickDotWoWordAddress); jLabelKickStackWordDeclaration.setText("Stack Word:"); buttonGroupKickStackWord.add(jRadioButtonKickMacroStackWord); jRadioButtonKickMacroStackWord.setSelected(true); jRadioButtonKickMacroStackWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickMacroStackWordItemStateChanged(evt); } }); jScrollPaneKickMacroStackWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickMacroStackWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickMacroStackWord.setEditable(false); jTextPaneKickMacroStackWord.setContentType("text/html"); // NOI18N jTextPaneKickMacroStackWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac]</b> <font color='red'>$yyxx</font><br>\n </p>\n </body>\n</html>\n"); jScrollPaneKickMacroStackWord.setViewportView(jTextPaneKickMacroStackWord); jLabelKickHighTextDeclaration.setText("Text '1' terminated:"); buttonGroupKickHighText.add(jRadioButtonKickDotTextHighText); jRadioButtonKickDotTextHighText.setSelected(true); jRadioButtonKickDotTextHighText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDotTextHighTextItemStateChanged(evt); } }); jScrollPaneKickDotTextHighText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDotTextHighText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickDotTextHighText.setEditable(false); jTextPaneKickDotTextHighText.setContentType("text/html"); // NOI18N jTextPaneKickDotTextHighText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .text</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickDotTextHighText.setViewportView(jTextPaneKickDotTextHighText); jLabelKickShiftTextDeclaration.setText("Text left shifted:"); buttonGroupKickShiftText.add(jRadioButtonKickDotTextShiftText); jRadioButtonKickDotTextShiftText.setSelected(true); jRadioButtonKickDotTextShiftText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDotTextShiftTextItemStateChanged(evt); } }); jScrollPaneKickDotTextShiftText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDotTextShiftText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickDotTextShiftText.setEditable(false); jTextPaneKickDotTextShiftText.setContentType("text/html"); // NOI18N jTextPaneKickDotTextShiftText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .text</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickDotTextShiftText.setViewportView(jTextPaneKickDotTextShiftText); jLabelKickScreenTextDeclaration.setText("Text to screen code:"); jLabelKickPetasciiTextDeclaration.setText("Text to petascii code:"); buttonGroupKickScreenText.add(jRadioButtonKickDotTextScreenText); jRadioButtonKickDotTextScreenText.setSelected(true); jRadioButtonKickDotTextScreenText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDotTextScreenTextItemStateChanged(evt); } }); buttonGroupKickPetasciiText.add(jRadioButtonKickDotTextPetasciiText); jRadioButtonKickDotTextPetasciiText.setSelected(true); jRadioButtonKickDotTextPetasciiText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonKickDotTextPetasciiTextItemStateChanged(evt); } }); jScrollPaneKickDotTextScreenText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDotTextScreenText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); ScreenjTextPaneKickDotTextScreenText.setEditable(false); ScreenjTextPaneKickDotTextScreenText.setContentType("text/html"); // NOI18N ScreenjTextPaneKickDotTextScreenText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .text</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickDotTextScreenText.setViewportView(ScreenjTextPaneKickDotTextScreenText); jScrollPaneKickDotTextPetasciiText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneKickDotTextPetasciiText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneKickDotTextPetasciiText.setEditable(false); jTextPaneKickDotTextPetasciiText.setContentType("text/html"); // NOI18N jTextPaneKickDotTextPetasciiText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .text</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneKickDotTextPetasciiText.setViewportView(jTextPaneKickDotTextPetasciiText); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelKickStartingDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickOriginDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickCommentDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickBlockCommentDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickLabelDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickByteDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickWordDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickWordSwappedDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickTribyteDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickLongDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickStackWordDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickMonoSpriteDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickMultiSpriteDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickAddressDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickNumTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickZeroTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickHighTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickShiftTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickScreenTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelKickPetasciiTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonKickDotTextPetasciiText) .addComponent(jRadioButtonKickDotTextScreenText) .addComponent(jRadioButtonKickDotTextShiftText) .addComponent(jRadioButtonKickDotTextHighText) .addComponent(jRadioButtonKickDotTextZeroText) .addComponent(jRadioButtonKickDotTextNumText) .addComponent(jRadioButtonKickDotText) .addComponent(jRadioButtonKickByteHexMultiSprite) .addComponent(jRadioButtonKickByteHexMonoSprite) .addComponent(jRadioButtonKickMacroStackWord) .addComponent(jRadioButtonKickDotWordAddress) .addComponent(jRadioButtonKickDwordLong) .addComponent(jRadioButtonKickMacroTribyte) .addComponent(jRadioButtonKickMacroWordSwapped) .addComponent(jRadioButtonKickDotWord) .addComponent(jRadioButtonKickDotByte) .addComponent(jRadioButtonKickLabelNameColon) .addComponent(jRadioButtonKickDoubleBarBlockComment) .addComponent(jRadioButtonKickDoubleBarComment) .addComponent(jRadioButtonKickAsterixOrigin) .addComponent(jRadioButtonKickDotCpuUndStarting)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jScrollPaneKickDotTextScreenText, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickDotTextShiftText, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickDotTextHighText, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickDotTextZeroText, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickDotTextNumText, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickDotText, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickByteHexMultiSprite, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickByteHexMonoSprite, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickMacroStackWord, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickDotWordAddress, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickDwordLong, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE) .addComponent(jScrollPaneKickMacroTribyte, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickMacroWordSwapped, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickDotWord, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickDotByte, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickLabelNameColon, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickDoubleBarBlockComment, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickDoubleBarComment, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickDotCpuUndStarting, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickAsterixOrigin, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickDotTextPetasciiText)) .addGap(2, 2, 2) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonKickDotPcOrigin) .addComponent(jRadioButtonKickCstyleBlockComment) .addComponent(jRadioButtonKickDotByByte) .addComponent(jRadioButtonKickDotWoWord) .addComponent(jRadioButtonKickDotDwLong) .addComponent(jRadioButtonKickDotWoWordAddress) .addComponent(jRadioButtonKickByteBinMonoSprite) .addComponent(jRadioButtonKickByteBinMultiSprite)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jScrollPaneKickDotPcOrigin) .addGap(10, 10, 10)) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jScrollPaneKickCstyleBlockComment) .addComponent(jScrollPaneKickDotByByte, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickDotWoWord, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickDotWoWordAddress, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickByteBinMultiSprite, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickByteBinMonoSprite, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneKickDotDwLong, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 116, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonKickMacroHexMonoSprite) .addComponent(jRadioButtonKickMacroHexMultiSprite) .addComponent(jRadioButtonDasmSharpIfPBlockComment)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jScrollPaneKickMacroHexMultiSprite, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonKickMacroBinMultiSprite)) .addGroup(layout.createSequentialGroup() .addComponent(jScrollPaneKickMacroHexMonoSprite) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonKickMacroBinMonoSprite))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jScrollPanekickMacroBinMultiSprite) .addComponent(jScrollPaneKickMacroBinMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(layout.createSequentialGroup() .addComponent(jScrollPaneDasmSharpIfPBlockComment, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap()) .addGroup(layout.createSequentialGroup() .addGap(12, 12, 12) .addComponent(jCheckBoxKickColonMacro, javax.swing.GroupLayout.PREFERRED_SIZE, 332, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(417, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jCheckBoxKickColonMacro) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(12, 12, 12) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickStartingDeclaration) .addComponent(jRadioButtonKickDotCpuUndStarting) .addComponent(jScrollPaneKickDotCpuUndStarting, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickOriginDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonKickAsterixOrigin) .addComponent(jScrollPaneKickAsterixOrigin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonKickDotPcOrigin)) .addGap(12, 12, 12) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickCommentDeclaration) .addComponent(jRadioButtonKickDoubleBarComment) .addComponent(jScrollPaneKickDoubleBarComment, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(layout.createSequentialGroup() .addGap(45, 45, 45) .addComponent(jScrollPaneKickDotPcOrigin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(3, 3, 3) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickBlockCommentDeclaration) .addComponent(jRadioButtonKickDoubleBarBlockComment) .addComponent(jScrollPaneKickDoubleBarBlockComment, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonKickCstyleBlockComment) .addComponent(jScrollPaneKickCstyleBlockComment, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonDasmSharpIfPBlockComment) .addComponent(jScrollPaneDasmSharpIfPBlockComment, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickLabelDeclaration) .addComponent(jRadioButtonKickLabelNameColon) .addComponent(jScrollPaneKickLabelNameColon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(4, 4, 4) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickByteDeclaration) .addComponent(jRadioButtonKickDotByte) .addComponent(jScrollPaneKickDotByte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonKickDotByByte) .addComponent(jScrollPaneKickDotByByte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickWordDeclaration) .addComponent(jRadioButtonKickDotWord) .addComponent(jScrollPaneKickDotWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonKickDotWoWord) .addComponent(jScrollPaneKickDotWoWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickWordSwappedDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonKickMacroWordSwapped) .addComponent(jScrollPaneKickMacroWordSwapped, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonKickMacroTribyte) .addComponent(jScrollPaneKickMacroTribyte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(layout.createSequentialGroup() .addGap(10, 10, 10) .addComponent(jLabelKickTribyteDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickLongDeclaration) .addComponent(jRadioButtonKickDwordLong) .addComponent(jScrollPaneKickDwordLong, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonKickDotDwLong) .addComponent(jScrollPaneKickDotDwLong, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickAddressDeclaration) .addComponent(jRadioButtonKickDotWordAddress) .addComponent(jScrollPaneKickDotWordAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonKickDotWoWordAddress) .addComponent(jScrollPaneKickDotWoWordAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickStackWordDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonKickMacroStackWord) .addComponent(jScrollPaneKickMacroStackWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickMonoSpriteDeclaration) .addComponent(jRadioButtonKickByteHexMonoSprite) .addComponent(jScrollPaneKickByteHexMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonKickByteBinMonoSprite) .addComponent(jScrollPaneKickByteBinMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonKickMacroHexMonoSprite) .addComponent(jScrollPaneKickMacroHexMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonKickMacroBinMonoSprite) .addComponent(jScrollPaneKickMacroBinMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickMultiSpriteDeclaration) .addComponent(jRadioButtonKickByteHexMultiSprite) .addComponent(jScrollPaneKickByteHexMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonKickByteBinMultiSprite) .addComponent(jScrollPaneKickByteBinMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonKickMacroHexMultiSprite) .addComponent(jScrollPaneKickMacroHexMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonKickMacroBinMultiSprite) .addComponent(jScrollPanekickMacroBinMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickTextDeclaration) .addComponent(jRadioButtonKickDotText) .addComponent(jScrollPaneKickDotText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickNumTextDeclaration) .addComponent(jRadioButtonKickDotTextNumText) .addComponent(jScrollPaneKickDotTextNumText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickZeroTextDeclaration) .addComponent(jRadioButtonKickDotTextZeroText) .addComponent(jScrollPaneKickDotTextZeroText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickHighTextDeclaration) .addComponent(jRadioButtonKickDotTextHighText) .addComponent(jScrollPaneKickDotTextHighText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickShiftTextDeclaration) .addComponent(jRadioButtonKickDotTextShiftText) .addComponent(jScrollPaneKickDotTextShiftText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickScreenTextDeclaration) .addComponent(jRadioButtonKickDotTextScreenText) .addComponent(jScrollPaneKickDotTextScreenText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelKickPetasciiTextDeclaration) .addComponent(jRadioButtonKickDotTextPetasciiText) .addComponent(jScrollPaneKickDotTextPetasciiText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); }// </editor-fold>//GEN-END:initComponents private void jRadioButtonKickLabelNameColonItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickLabelNameColonItemStateChanged option.kickLabel=Assembler.Label.NAME_COLON; }//GEN-LAST:event_jRadioButtonKickLabelNameColonItemStateChanged private void jRadioButtonKickDotByteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDotByteItemStateChanged option.kickByte=Assembler.Byte.DOT_BYTE; }//GEN-LAST:event_jRadioButtonKickDotByteItemStateChanged private void jRadioButtonKickDotWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDotWordItemStateChanged option.kickWord=Assembler.Word.DOT_WORD; }//GEN-LAST:event_jRadioButtonKickDotWordItemStateChanged private void jRadioButtonKickDotCpuUndStartingItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDotCpuUndStartingItemStateChanged option.kickStarting=Assembler.Starting.DOT_CPU_UND; }//GEN-LAST:event_jRadioButtonKickDotCpuUndStartingItemStateChanged private void jRadioButtonKickDoubleBarCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDoubleBarCommentItemStateChanged option.kickComment=Assembler.Comment.DOUBLE_BAR; }//GEN-LAST:event_jRadioButtonKickDoubleBarCommentItemStateChanged private void jRadioButtonKickAsterixOriginItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickAsterixOriginItemStateChanged option.kickOrigin=Assembler.Origin.ASTERISK; }//GEN-LAST:event_jRadioButtonKickAsterixOriginItemStateChanged private void jRadioButtonKickDotPcOriginItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDotPcOriginItemStateChanged option.kickOrigin=Assembler.Origin.DOT_PC; }//GEN-LAST:event_jRadioButtonKickDotPcOriginItemStateChanged private void jRadioButtonKickDoubleBarBlockCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDoubleBarBlockCommentItemStateChanged option.kickBlockComment=Assembler.BlockComment.DOUBLE_BAR; }//GEN-LAST:event_jRadioButtonKickDoubleBarBlockCommentItemStateChanged private void jRadioButtonKickCstyleBlockCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickCstyleBlockCommentItemStateChanged option.kickBlockComment=Assembler.BlockComment.CSTYLE; }//GEN-LAST:event_jRadioButtonKickCstyleBlockCommentItemStateChanged private void jRadioButtonDasmSharpIfPBlockCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDasmSharpIfPBlockCommentItemStateChanged option.kickBlockComment=Assembler.BlockComment.SHARP_IF; }//GEN-LAST:event_jRadioButtonDasmSharpIfPBlockCommentItemStateChanged private void jRadioButtonKickByteHexMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickByteHexMonoSpriteItemStateChanged option.kickMonoSprite=Assembler.MonoSprite.BYTE_HEX; }//GEN-LAST:event_jRadioButtonKickByteHexMonoSpriteItemStateChanged private void jRadioButtonKickByteHexMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickByteHexMultiSpriteItemStateChanged option.kickMultiSprite=Assembler.MultiSprite.BYTE_HEX; }//GEN-LAST:event_jRadioButtonKickByteHexMultiSpriteItemStateChanged private void jRadioButtonKickByteBinMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickByteBinMonoSpriteItemStateChanged option.kickMonoSprite=Assembler.MonoSprite.BYTE_BIN; }//GEN-LAST:event_jRadioButtonKickByteBinMonoSpriteItemStateChanged private void jRadioButtonKickByteBinMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickByteBinMultiSpriteItemStateChanged option.kickMultiSprite=Assembler.MultiSprite.BYTE_BIN; }//GEN-LAST:event_jRadioButtonKickByteBinMultiSpriteItemStateChanged private void jRadioButtonKickMacroHexMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickMacroHexMonoSpriteItemStateChanged option.kickMonoSprite=Assembler.MonoSprite.MACRO1_HEX; }//GEN-LAST:event_jRadioButtonKickMacroHexMonoSpriteItemStateChanged private void jRadioButtonKickMacroHexMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickMacroHexMultiSpriteItemStateChanged option.kickMultiSprite=Assembler.MultiSprite.MACRO1_HEX; }//GEN-LAST:event_jRadioButtonKickMacroHexMultiSpriteItemStateChanged private void jRadioButtonKickMacroBinMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickMacroBinMonoSpriteItemStateChanged option.kickMonoSprite=Assembler.MonoSprite.MACRO1_BIN; }//GEN-LAST:event_jRadioButtonKickMacroBinMonoSpriteItemStateChanged private void jRadioButtonKickMacroBinMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickMacroBinMultiSpriteItemStateChanged option.kickMultiSprite=Assembler.MultiSprite.MACRO1_BIN; }//GEN-LAST:event_jRadioButtonKickMacroBinMultiSpriteItemStateChanged private void jRadioButtonKickMacroTribyteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickMacroTribyteItemStateChanged option.kickTribyte=Assembler.Tribyte.MACRO1_TRIBYTE; }//GEN-LAST:event_jRadioButtonKickMacroTribyteItemStateChanged private void jRadioButtonKickDwordLongItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDwordLongItemStateChanged option.kickLong=Assembler.Long.DOT_DWORD_LONG; }//GEN-LAST:event_jRadioButtonKickDwordLongItemStateChanged private void jRadioButtonKickMacroWordSwappedItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickMacroWordSwappedItemStateChanged option.kickWordSwapped=Assembler.WordSwapped.MACRO1_WORD_SWAPPED; }//GEN-LAST:event_jRadioButtonKickMacroWordSwappedItemStateChanged private void jRadioButtonKickDotTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDotTextItemStateChanged option.kickText=Assembler.Text.DOT_TEXT; }//GEN-LAST:event_jRadioButtonKickDotTextItemStateChanged private void jRadioButtonKickDotByByteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDotByByteItemStateChanged option.kickByte=Assembler.Byte.DOT_BY_BYTE; }//GEN-LAST:event_jRadioButtonKickDotByByteItemStateChanged private void jRadioButtonKickDotWoWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDotWoWordItemStateChanged option.kickWord=Assembler.Word.DOT_WO_WORD; }//GEN-LAST:event_jRadioButtonKickDotWoWordItemStateChanged private void jRadioButtonKickDotDwLongItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDotDwLongItemStateChanged option.kickLong=Assembler.Long.DOT_DW_LONG; }//GEN-LAST:event_jRadioButtonKickDotDwLongItemStateChanged private void jCheckBoxKickColonMacroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxKickColonMacroActionPerformed option.kickColonMacro=jCheckBoxKickColonMacro.isSelected(); }//GEN-LAST:event_jCheckBoxKickColonMacroActionPerformed private void jRadioButtonKickDotTextNumTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDotTextNumTextItemStateChanged option.kickNumText=Assembler.NumText.DOT_TEXT_NUMTEXT; }//GEN-LAST:event_jRadioButtonKickDotTextNumTextItemStateChanged private void jRadioButtonKickDotTextZeroTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDotTextZeroTextItemStateChanged option.kickZeroText=Assembler.ZeroText.DOT_TEXT_ZEROTEXT; }//GEN-LAST:event_jRadioButtonKickDotTextZeroTextItemStateChanged private void jRadioButtonKickDotWordAddressItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDotWordAddressItemStateChanged option.kickAddress=Assembler.Address.DOT_WORD_ADDR; }//GEN-LAST:event_jRadioButtonKickDotWordAddressItemStateChanged private void jRadioButtonKickDotWoWordAddressItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDotWoWordAddressItemStateChanged option.kickAddress=Assembler.Address.DOT_WO_WORD_ADDR; }//GEN-LAST:event_jRadioButtonKickDotWoWordAddressItemStateChanged private void jRadioButtonKickMacroStackWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickMacroStackWordItemStateChanged option.kickStackWord=Assembler.StackWord.MACRO1_STACKWORD; }//GEN-LAST:event_jRadioButtonKickMacroStackWordItemStateChanged private void jRadioButtonKickDotTextHighTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDotTextHighTextItemStateChanged option.kickHighText=Assembler.HighText.DOT_TEXT_HIGHTEXT; }//GEN-LAST:event_jRadioButtonKickDotTextHighTextItemStateChanged private void jRadioButtonKickDotTextShiftTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDotTextShiftTextItemStateChanged option.kickShiftText=Assembler.ShiftText.DOT_TEXT_SHIFTTEXT; }//GEN-LAST:event_jRadioButtonKickDotTextShiftTextItemStateChanged private void jRadioButtonKickDotTextScreenTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDotTextScreenTextItemStateChanged option.kickScreenText=Assembler.ScreenText.DOT_TEXT_SCREENTEXT; }//GEN-LAST:event_jRadioButtonKickDotTextScreenTextItemStateChanged private void jRadioButtonKickDotTextPetasciiTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonKickDotTextPetasciiTextItemStateChanged option.kickPetasciiText=Assembler.PetasciiText.DOT_TEXT_PETASCIITEXT; }//GEN-LAST:event_jRadioButtonKickDotTextPetasciiTextItemStateChanged // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JTextPane ScreenjTextPaneKickDotTextScreenText; private javax.swing.ButtonGroup buttonGroupKickAddress; private javax.swing.ButtonGroup buttonGroupKickBlockComment; private javax.swing.ButtonGroup buttonGroupKickByte; private javax.swing.ButtonGroup buttonGroupKickComment; private javax.swing.ButtonGroup buttonGroupKickHighText; private javax.swing.ButtonGroup buttonGroupKickLabel; private javax.swing.ButtonGroup buttonGroupKickLong; private javax.swing.ButtonGroup buttonGroupKickMonoSprite; private javax.swing.ButtonGroup buttonGroupKickMultiSprite; private javax.swing.ButtonGroup buttonGroupKickNumText; private javax.swing.ButtonGroup buttonGroupKickOrigin; private javax.swing.ButtonGroup buttonGroupKickPetasciiText; private javax.swing.ButtonGroup buttonGroupKickScreenText; private javax.swing.ButtonGroup buttonGroupKickShiftText; private javax.swing.ButtonGroup buttonGroupKickStackWord; private javax.swing.ButtonGroup buttonGroupKickStarting; private javax.swing.ButtonGroup buttonGroupKickText; private javax.swing.ButtonGroup buttonGroupKickTribyte; private javax.swing.ButtonGroup buttonGroupKickWord; private javax.swing.ButtonGroup buttonGroupKickWordSwapped; private javax.swing.ButtonGroup buttonGroupKickZeroText; private javax.swing.JCheckBox jCheckBoxKickColonMacro; private javax.swing.JLabel jLabelKickAddressDeclaration; private javax.swing.JLabel jLabelKickBlockCommentDeclaration; private javax.swing.JLabel jLabelKickByteDeclaration; private javax.swing.JLabel jLabelKickCommentDeclaration; private javax.swing.JLabel jLabelKickHighTextDeclaration; private javax.swing.JLabel jLabelKickLabelDeclaration; private javax.swing.JLabel jLabelKickLongDeclaration; private javax.swing.JLabel jLabelKickMonoSpriteDeclaration; private javax.swing.JLabel jLabelKickMultiSpriteDeclaration; private javax.swing.JLabel jLabelKickNumTextDeclaration; private javax.swing.JLabel jLabelKickOriginDeclaration; private javax.swing.JLabel jLabelKickPetasciiTextDeclaration; private javax.swing.JLabel jLabelKickScreenTextDeclaration; private javax.swing.JLabel jLabelKickShiftTextDeclaration; private javax.swing.JLabel jLabelKickStackWordDeclaration; private javax.swing.JLabel jLabelKickStartingDeclaration; private javax.swing.JLabel jLabelKickTextDeclaration; private javax.swing.JLabel jLabelKickTribyteDeclaration; private javax.swing.JLabel jLabelKickWordDeclaration; private javax.swing.JLabel jLabelKickWordSwappedDeclaration; private javax.swing.JLabel jLabelKickZeroTextDeclaration; private javax.swing.JRadioButton jRadioButtonDasmSharpIfPBlockComment; private javax.swing.JRadioButton jRadioButtonKickAsterixOrigin; private javax.swing.JRadioButton jRadioButtonKickByteBinMonoSprite; private javax.swing.JRadioButton jRadioButtonKickByteBinMultiSprite; private javax.swing.JRadioButton jRadioButtonKickByteHexMonoSprite; private javax.swing.JRadioButton jRadioButtonKickByteHexMultiSprite; private javax.swing.JRadioButton jRadioButtonKickCstyleBlockComment; private javax.swing.JRadioButton jRadioButtonKickDotByByte; private javax.swing.JRadioButton jRadioButtonKickDotByte; private javax.swing.JRadioButton jRadioButtonKickDotCpuUndStarting; private javax.swing.JRadioButton jRadioButtonKickDotDwLong; private javax.swing.JRadioButton jRadioButtonKickDotPcOrigin; private javax.swing.JRadioButton jRadioButtonKickDotText; private javax.swing.JRadioButton jRadioButtonKickDotTextHighText; private javax.swing.JRadioButton jRadioButtonKickDotTextNumText; private javax.swing.JRadioButton jRadioButtonKickDotTextPetasciiText; private javax.swing.JRadioButton jRadioButtonKickDotTextScreenText; private javax.swing.JRadioButton jRadioButtonKickDotTextShiftText; private javax.swing.JRadioButton jRadioButtonKickDotTextZeroText; private javax.swing.JRadioButton jRadioButtonKickDotWoWord; private javax.swing.JRadioButton jRadioButtonKickDotWoWordAddress; private javax.swing.JRadioButton jRadioButtonKickDotWord; private javax.swing.JRadioButton jRadioButtonKickDotWordAddress; private javax.swing.JRadioButton jRadioButtonKickDoubleBarBlockComment; private javax.swing.JRadioButton jRadioButtonKickDoubleBarComment; private javax.swing.JRadioButton jRadioButtonKickDwordLong; private javax.swing.JRadioButton jRadioButtonKickLabelNameColon; private javax.swing.JRadioButton jRadioButtonKickMacroBinMonoSprite; private javax.swing.JRadioButton jRadioButtonKickMacroBinMultiSprite; private javax.swing.JRadioButton jRadioButtonKickMacroHexMonoSprite; private javax.swing.JRadioButton jRadioButtonKickMacroHexMultiSprite; private javax.swing.JRadioButton jRadioButtonKickMacroStackWord; private javax.swing.JRadioButton jRadioButtonKickMacroTribyte; private javax.swing.JRadioButton jRadioButtonKickMacroWordSwapped; private javax.swing.JScrollPane jScrollPaneDasmSharpIfPBlockComment; private javax.swing.JScrollPane jScrollPaneKickAsterixOrigin; private javax.swing.JScrollPane jScrollPaneKickByteBinMonoSprite; private javax.swing.JScrollPane jScrollPaneKickByteBinMultiSprite; private javax.swing.JScrollPane jScrollPaneKickByteHexMonoSprite; private javax.swing.JScrollPane jScrollPaneKickByteHexMultiSprite; private javax.swing.JScrollPane jScrollPaneKickCstyleBlockComment; private javax.swing.JScrollPane jScrollPaneKickDotByByte; private javax.swing.JScrollPane jScrollPaneKickDotByte; private javax.swing.JScrollPane jScrollPaneKickDotCpuUndStarting; private javax.swing.JScrollPane jScrollPaneKickDotDwLong; private javax.swing.JScrollPane jScrollPaneKickDotPcOrigin; private javax.swing.JScrollPane jScrollPaneKickDotText; private javax.swing.JScrollPane jScrollPaneKickDotTextHighText; private javax.swing.JScrollPane jScrollPaneKickDotTextNumText; private javax.swing.JScrollPane jScrollPaneKickDotTextPetasciiText; private javax.swing.JScrollPane jScrollPaneKickDotTextScreenText; private javax.swing.JScrollPane jScrollPaneKickDotTextShiftText; private javax.swing.JScrollPane jScrollPaneKickDotTextZeroText; private javax.swing.JScrollPane jScrollPaneKickDotWoWord; private javax.swing.JScrollPane jScrollPaneKickDotWoWordAddress; private javax.swing.JScrollPane jScrollPaneKickDotWord; private javax.swing.JScrollPane jScrollPaneKickDotWordAddress; private javax.swing.JScrollPane jScrollPaneKickDoubleBarBlockComment; private javax.swing.JScrollPane jScrollPaneKickDoubleBarComment; private javax.swing.JScrollPane jScrollPaneKickDwordLong; private javax.swing.JScrollPane jScrollPaneKickLabelNameColon; private javax.swing.JScrollPane jScrollPaneKickMacroBinMonoSprite; private javax.swing.JScrollPane jScrollPaneKickMacroHexMonoSprite; private javax.swing.JScrollPane jScrollPaneKickMacroHexMultiSprite; private javax.swing.JScrollPane jScrollPaneKickMacroStackWord; private javax.swing.JScrollPane jScrollPaneKickMacroTribyte; private javax.swing.JScrollPane jScrollPaneKickMacroWordSwapped; private javax.swing.JScrollPane jScrollPanekickMacroBinMultiSprite; private javax.swing.JTextPane jTextPaneDasmSharpIfPBlockComment; private javax.swing.JTextPane jTextPaneKickAsterixOrigin; private javax.swing.JTextPane jTextPaneKickByteBinMonoSprite; private javax.swing.JTextPane jTextPaneKickByteBinMultiSprite; private javax.swing.JTextPane jTextPaneKickByteHexMonoSprite; private javax.swing.JTextPane jTextPaneKickByteHexMultiSprite; private javax.swing.JTextPane jTextPaneKickCstyleBlockComment; private javax.swing.JTextPane jTextPaneKickDotByByte; private javax.swing.JTextPane jTextPaneKickDotByte; private javax.swing.JTextPane jTextPaneKickDotCpuUndStarting; private javax.swing.JTextPane jTextPaneKickDotDwLong; private javax.swing.JTextPane jTextPaneKickDotPcOrigin; private javax.swing.JTextPane jTextPaneKickDotText; private javax.swing.JTextPane jTextPaneKickDotTextHighText; private javax.swing.JTextPane jTextPaneKickDotTextNumText; private javax.swing.JTextPane jTextPaneKickDotTextPetasciiText; private javax.swing.JTextPane jTextPaneKickDotTextShiftText; private javax.swing.JTextPane jTextPaneKickDotTextZeroText; private javax.swing.JTextPane jTextPaneKickDotWoWord; private javax.swing.JTextPane jTextPaneKickDotWoWordAddress; private javax.swing.JTextPane jTextPaneKickDotWord; private javax.swing.JTextPane jTextPaneKickDotWordAddress; private javax.swing.JTextPane jTextPaneKickDoubleBarBlockComment; private javax.swing.JTextPane jTextPaneKickDoubleBarComment; private javax.swing.JTextPane jTextPaneKickDwordLong; private javax.swing.JTextPane jTextPaneKickLabelNameColon; private javax.swing.JTextPane jTextPaneKickMacroBinMonoSprite; private javax.swing.JTextPane jTextPaneKickMacroBinMultiSprite; private javax.swing.JTextPane jTextPaneKickMacroHexMonoSprite; private javax.swing.JTextPane jTextPaneKickMacroHexMultiSprite; private javax.swing.JTextPane jTextPaneKickMacroStackWord; private javax.swing.JTextPane jTextPaneKickMacroTribyte; private javax.swing.JTextPane jTextPaneKickMacroWordSwapped; // End of variables declaration//GEN-END:variables /** * Apply the option for KickAssembler */ public void applyOptionKickAssembler() { jCheckBoxKickColonMacro.setSelected(option.kickColonMacro); switch (option.kickStarting) { case DOT_CPU_UND: jRadioButtonKickDotCpuUndStarting.setSelected(true); break; } switch (option.kickOrigin) { case DOT_ORG: jRadioButtonKickAsterixOrigin.setSelected(true); break; case DOT_PC: jRadioButtonKickDotPcOrigin.setSelected(true); break; } switch (option.kickLabel) { case NAME_COLON: jRadioButtonKickLabelNameColon.setSelected(true); break; } switch (option.kickComment) { case DOUBLE_BAR: jRadioButtonKickDoubleBarComment.setSelected(true); break; } switch (option.kickBlockComment) { case DOUBLE_BAR: jRadioButtonKickDoubleBarBlockComment.setSelected(true); break; case CSTYLE: jRadioButtonKickCstyleBlockComment.setSelected(true); break; case SHARP_IF: jRadioButtonDasmSharpIfPBlockComment.setSelected(true); break; } switch (option.kickByte) { case DOT_BYTE: jRadioButtonKickDotByte.setSelected(true); break; case DOT_BY_BYTE: jRadioButtonKickDotByByte.setSelected(true); break; } switch (option.kickWord) { case DOT_WORD: jRadioButtonKickDotWord.setSelected(true); break; case DOT_WO_WORD: jRadioButtonKickDotWoWord.setSelected(true); break; } switch (option.kickWordSwapped) { case MACRO1_WORD_SWAPPED: jRadioButtonKickMacroWordSwapped.setSelected(true); break; } switch (option.kickTribyte) { case MACRO1_TRIBYTE: jRadioButtonKickMacroTribyte.setSelected(true); break; } switch (option.kickLong) { case DOT_DWORD_LONG: jRadioButtonKickDwordLong.setSelected(true); break; case DOT_DW_LONG: jRadioButtonKickDotDwLong.setSelected(true); break; } switch (option.kickAddress) { case DOT_WORD_ADDR: jRadioButtonKickDotWordAddress.setSelected(true); break; case DOT_WO_WORD_ADDR: jRadioButtonKickDotWoWordAddress.setSelected(true); break; } switch (option.kickStackWord) { case MACRO1_STACKWORD: jRadioButtonKickMacroStackWord.setSelected(true); break; } switch (option.kickMonoSprite) { case BYTE_HEX: jRadioButtonKickByteHexMonoSprite.setSelected(true); break; case BYTE_BIN: jRadioButtonKickByteBinMonoSprite.setSelected(true); break; case MACRO1_HEX: jRadioButtonKickMacroHexMonoSprite.setSelected(true); break; case MACRO1_BIN: jRadioButtonKickMacroBinMonoSprite.setSelected(true); break; } switch (option.kickMultiSprite) { case BYTE_HEX: jRadioButtonKickByteHexMultiSprite.setSelected(true); break; case BYTE_BIN: jRadioButtonKickByteBinMultiSprite.setSelected(true); break; case MACRO1_HEX: jRadioButtonKickMacroHexMultiSprite.setSelected(true); break; case MACRO1_BIN: jRadioButtonKickMacroBinMultiSprite.setSelected(true); break; } switch (option.kickText) { case DOT_TEXT: jRadioButtonKickDotText.setSelected(true); break; } switch (option.kickNumText) { case DOT_TEXT_NUMTEXT: jRadioButtonKickDotTextNumText.setSelected(true); break; } switch (option.kickZeroText) { case DOT_TEXT_ZEROTEXT: jRadioButtonKickDotTextZeroText.setSelected(true); break; } switch (option.kickHighText) { case DOT_TEXT_HIGHTEXT: jRadioButtonKickDotTextHighText.setSelected(true); break; } switch (option.kickShiftText) { case DOT_TEXT_SHIFTTEXT: jRadioButtonKickDotTextShiftText.setSelected(true); break; } switch (option.kickScreenText) { case DOT_TEXT_SCREENTEXT: jRadioButtonKickDotTextScreenText.setSelected(true); break; } switch (option.kickPetasciiText) { case DOT_TEXT_PETASCIITEXT: jRadioButtonKickDotTextPetasciiText.setSelected(true); break; } } }
101,300
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
JCa65Panel.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/JCa65Panel.java
/* * @(#)JCa65Panel 2022/05/02 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing; import sw_emulator.software.Assembler; import sw_emulator.swing.main.Option; /** * A panel for Ca65 assembler option * * @author ice */ public class JCa65Panel extends javax.swing.JPanel { /** Option file to use */ Option option; /** * Creates new form JCa65Panel */ public JCa65Panel() { initComponents(); } /** * Set up the panel with the option * * @param option the option to use */ public void setUp(Option option) { this.option=option; } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroupCa65Label = new javax.swing.ButtonGroup(); buttonGroupCa65Byte = new javax.swing.ButtonGroup(); buttonGroupCa65Word = new javax.swing.ButtonGroup(); buttonGroupCa65Origin = new javax.swing.ButtonGroup(); buttonGroupCa65Comment = new javax.swing.ButtonGroup(); buttonGroupCa65BlockComment = new javax.swing.ButtonGroup(); buttonGroupCa65Starting = new javax.swing.ButtonGroup(); buttonGroupCa65MonoSprite = new javax.swing.ButtonGroup(); buttonGroupCa65MultiSprite = new javax.swing.ButtonGroup(); buttonGroupCa65Tribyte = new javax.swing.ButtonGroup(); buttonGroupCa65Long = new javax.swing.ButtonGroup(); buttonGroupCa65WordSwapped = new javax.swing.ButtonGroup(); buttonGroupCa65Text = new javax.swing.ButtonGroup(); buttonGroupCa65NumText = new javax.swing.ButtonGroup(); buttonGroupCa65ZeroText = new javax.swing.ButtonGroup(); buttonGroupCa65Address = new javax.swing.ButtonGroup(); buttonGroupCa65StackWord = new javax.swing.ButtonGroup(); buttonGroupCa65HighText = new javax.swing.ButtonGroup(); buttonGroupCa65ScreenText = new javax.swing.ButtonGroup(); buttonGroupCa65ShiftText = new javax.swing.ButtonGroup(); buttonGroupCa65PetsciiText = new javax.swing.ButtonGroup(); jLabelCa65LabelDeclaration = new javax.swing.JLabel(); jRadioButtonCa65LabelNameColon = new javax.swing.JRadioButton(); jScrollPaneCa65LabelName = new javax.swing.JScrollPane(); jTextPaneCa65LabelNameColon = new javax.swing.JTextPane(); jLabelC65ByteDeclaration = new javax.swing.JLabel(); jRadioButtonCa65DotByte = new javax.swing.JRadioButton(); jScrollPaneC65DotByte = new javax.swing.JScrollPane(); jTextPaneCa65DotByte = new javax.swing.JTextPane(); jRadioButtonCa65DotBytByte = new javax.swing.JRadioButton(); jScrollPaneCa65DotBytByte = new javax.swing.JScrollPane(); jTextPaneCa65DotBytByte = new javax.swing.JTextPane(); jLabelC65WordDeclaration = new javax.swing.JLabel(); jRadioButtonCa65DotWord = new javax.swing.JRadioButton(); jScrollPaneCa65DotWord = new javax.swing.JScrollPane(); jTextPaneCa65DotWord = new javax.swing.JTextPane(); jScrollPaneC65DotDByteWord = new javax.swing.JScrollPane(); jTextPaneCa65DotDByteWord = new javax.swing.JTextPane(); jRadioButtonCa65DotDByteWord = new javax.swing.JRadioButton(); jLabelCa65OriginDeclaration = new javax.swing.JLabel(); jRadioButtonCa65DotOrigin = new javax.swing.JRadioButton(); jScrollPaneCa65DotOrigin = new javax.swing.JScrollPane(); jTextPaneC65DotOrigin = new javax.swing.JTextPane(); jLabelCa65CommentDeclaration = new javax.swing.JLabel(); jRadioButtonCa65SemicolonComment = new javax.swing.JRadioButton(); jScrollPaneCa65SemicolonComment = new javax.swing.JScrollPane(); jTextPaneC65SemicolonComment = new javax.swing.JTextPane(); jLabelCa65BlockCommentDeclaration = new javax.swing.JLabel(); jRadioButtonCa65SemicolonBlockComment = new javax.swing.JRadioButton(); jScrollPaneCa65Comment = new javax.swing.JScrollPane(); jTextPaneCa65Comment = new javax.swing.JTextPane(); jLabeCa65StartingDeclaration = new javax.swing.JLabel(); jRadioButtonCa65DotP02Starting = new javax.swing.JRadioButton(); jScrollPaneDasmLabelName17 = new javax.swing.JScrollPane(); jTextPaneC65DotP02Starting = new javax.swing.JTextPane(); jRadioButtonCa65DotSetcpuStarting = new javax.swing.JRadioButton(); jScrollPaneDasmLabelName18 = new javax.swing.JScrollPane(); jTextPaneC65DotSetcpuStarting = new javax.swing.JTextPane(); jLabelCa65MonoSpriteDeclaration = new javax.swing.JLabel(); jLabelCa65MultiSpriteDeclaration = new javax.swing.JLabel(); jRadioButtonCa65ByteHexMonoSprite = new javax.swing.JRadioButton(); jRadioButtonCa65ByteHexMultiSprite = new javax.swing.JRadioButton(); jScrollPaneCa65ByteHexMultiSprite = new javax.swing.JScrollPane(); jTextPaneCa65ByteHexMultiSprite = new javax.swing.JTextPane(); jScrollPaneCa65ByteHexMonoSprite = new javax.swing.JScrollPane(); jTextPaneCa65ByteHexMonoSprite = new javax.swing.JTextPane(); jRadioButtonCa65ByteBinMonoSprite = new javax.swing.JRadioButton(); jRadioButtonCa65ByteBinMultiSprite = new javax.swing.JRadioButton(); jScrollPaneDasmByteBinMultiSprite1 = new javax.swing.JScrollPane(); jTextPaneDasmByteBinMultiSprite1 = new javax.swing.JTextPane(); jScrollPaneCa65ByteBinMonoSprite = new javax.swing.JScrollPane(); jTextPaneCa65ByteBinMonoSprite = new javax.swing.JTextPane(); jRadioButtonCa65MacroHexMonoSprite = new javax.swing.JRadioButton(); jRadioButtonCa65MacroHexMultiSprite = new javax.swing.JRadioButton(); jScrollPaneCa65MacroHexMultiSprite = new javax.swing.JScrollPane(); jTextPaneCa65MacroHexMultiSprite = new javax.swing.JTextPane(); jScrollPaneCa65MacroHexMonoSprite = new javax.swing.JScrollPane(); jTextPaneCa65MacroHexMonoSprite = new javax.swing.JTextPane(); jRadioButtonCa65MacroBinMonoSprite = new javax.swing.JRadioButton(); jRadioButtonCa65MacroBinMultiSprite = new javax.swing.JRadioButton(); jScrollPaneCa65MacroBinMultiSprite = new javax.swing.JScrollPane(); jTextPaneCa65MacroBinMultiSprite = new javax.swing.JTextPane(); jScrollPaneCa65MacroBinMonoSprite = new javax.swing.JScrollPane(); jTextPaneCa65MacroBinMonoSprite = new javax.swing.JTextPane(); jLabelCa65TribyteDeclaration = new javax.swing.JLabel(); jRadioButtonCa65MacroTribyte = new javax.swing.JRadioButton(); jScrollPaneCa65MacroTribyte = new javax.swing.JScrollPane(); jTextPaneCa65MacroTribyte = new javax.swing.JTextPane(); jLabelC65LongDeclaration = new javax.swing.JLabel(); jRadioButtonCa65DotLong = new javax.swing.JRadioButton(); jScrollPaneCa65DotDWordLong = new javax.swing.JScrollPane(); jTextPaneCa65DotDwordLong = new javax.swing.JTextPane(); jLabelCa65WordSwappedDeclaration = new javax.swing.JLabel(); jRadioButtonCa65DotDbytWordSwapped = new javax.swing.JRadioButton(); jScrollPaneCa65DotDbytWordSwapped = new javax.swing.JScrollPane(); jTextPaneCa65DotDbytWordSwapped = new javax.swing.JTextPane(); jLabelCa65TextDeclaration = new javax.swing.JLabel(); jRadioButtonCa65DotByteText = new javax.swing.JRadioButton(); jScrollPaneCa65DotByteText = new javax.swing.JScrollPane(); jTextPaneCa65DotByteText = new javax.swing.JTextPane(); jRadioButtonCa65DotBytText = new javax.swing.JRadioButton(); jScrollPaneCa65DotBytText = new javax.swing.JScrollPane(); jTextPaneCa65DotBytText = new javax.swing.JTextPane(); jLabelCa65NumTextDeclaration = new javax.swing.JLabel(); jRadioButtonCa65DotByteNumText = new javax.swing.JRadioButton(); jScrollPaneCa65DotByteNumText = new javax.swing.JScrollPane(); jTextPaneCa65DotByteNumText = new javax.swing.JTextPane(); jRadioButtonCa65DotBytNumText = new javax.swing.JRadioButton(); jScrollPaneCa65DotBytNumText = new javax.swing.JScrollPane(); jTextPaneCa65DotBytNumText = new javax.swing.JTextPane(); jLabelCa65ZeroTextDeclaration = new javax.swing.JLabel(); jRadioButtonCa65DotAsciizZeroText = new javax.swing.JRadioButton(); jScrollPaneCa65DotAsciizZeroText = new javax.swing.JScrollPane(); jTextPaneCa65DotAsciizZeroText = new javax.swing.JTextPane(); jLabelC65AddressDeclaration = new javax.swing.JLabel(); jRadioButtonCa65DotAddrAddress = new javax.swing.JRadioButton(); jScrollPaneCa65DotAddrAddress = new javax.swing.JScrollPane(); jTextPaneCa65DotAddrAddress = new javax.swing.JTextPane(); jLabelCa65StackWordDeclaration = new javax.swing.JLabel(); jRadioButtonCa65MacroStackWord = new javax.swing.JRadioButton(); jScrollPaneCa65MacroStackWord = new javax.swing.JScrollPane(); jTextPaneCa65MacroStackWord = new javax.swing.JTextPane(); jLabelCa65HighTextDeclaration = new javax.swing.JLabel(); jRadioButtonCa65DotByteHighText = new javax.swing.JRadioButton(); jScrollPaneCa65DotByteHighText = new javax.swing.JScrollPane(); jTextPaneCa65DotByteHighText = new javax.swing.JTextPane(); jRadioButtonCa65DotBytHighText = new javax.swing.JRadioButton(); jScrollPaneCa65DotBytHighText = new javax.swing.JScrollPane(); jTextPaneCa65DotBytHighText = new javax.swing.JTextPane(); jLabelCa65ShiftTextDeclaration = new javax.swing.JLabel(); jRadioButtonCa65DotByteShiftText = new javax.swing.JRadioButton(); jScrollPaneCa65DotByteShiftText = new javax.swing.JScrollPane(); jTextPaneCa65DotByteShiftText = new javax.swing.JTextPane(); jRadioButtonCa65DotBytShiftText = new javax.swing.JRadioButton(); jScrollPaneCa65DotBytShiftText = new javax.swing.JScrollPane(); jTextPaneCa65DotBytShiftText = new javax.swing.JTextPane(); jLabelCa65ScreenTextDeclaration = new javax.swing.JLabel(); jRadioButtonCa65DotByteScreenText = new javax.swing.JRadioButton(); jScrollPaneCa65DotByteScreenText = new javax.swing.JScrollPane(); jTextPaneCa65DotByteScreenText = new javax.swing.JTextPane(); jRadioButtonCa65DotBytScreenText = new javax.swing.JRadioButton(); jScrollPaneCa65DotBytShiftText1 = new javax.swing.JScrollPane(); jTextPaneCa65DotBytScreenText = new javax.swing.JTextPane(); jLabelCa65PetasciiTextDeclaration = new javax.swing.JLabel(); jRadioButtonCa65DotBytePetasciiText = new javax.swing.JRadioButton(); jScrollPaneCa65DotBytePetasciiText = new javax.swing.JScrollPane(); jTextPaneCa65DotBytePetasciiText = new javax.swing.JTextPane(); jRadioButtonCa65DotBytPetasciiText = new javax.swing.JRadioButton(); jScrollPaneCa65DotBytPetasciiText = new javax.swing.JScrollPane(); jTextPaneCa65DotBytPetasciiText = new javax.swing.JTextPane(); jLabelCa65LabelDeclaration.setText("Label:"); buttonGroupCa65Label.add(jRadioButtonCa65LabelNameColon); jRadioButtonCa65LabelNameColon.setSelected(true); jRadioButtonCa65LabelNameColon.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65LabelNameColonItemStateChanged(evt); } }); jScrollPaneCa65LabelName.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65LabelName.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65LabelNameColon.setEditable(false); jTextPaneCa65LabelNameColon.setContentType("text/html"); // NOI18N jTextPaneCa65LabelNameColon.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <font color='black'>zzzz</font><b>:</b>\n </p\n </body>\n</html>\n"); jScrollPaneCa65LabelName.setViewportView(jTextPaneCa65LabelNameColon); jLabelC65ByteDeclaration.setText("Byte:"); buttonGroupCa65Byte.add(jRadioButtonCa65DotByte); jRadioButtonCa65DotByte.setSelected(true); jRadioButtonCa65DotByte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotByteItemStateChanged(evt); } }); jScrollPaneC65DotByte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneC65DotByte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotByte.setEditable(false); jTextPaneCa65DotByte.setContentType("text/html"); // NOI18N jTextPaneCa65DotByte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byte</b> <font color='red'>$xx</font><br>\n <b> .byte</b> <font color='blue'>dd</font><br>\n <b> .byte</b> <font color='green'>%bb</font><br>\n <b> .byte</b> <font color='purple'>'c'</font>\n </p>\n </body>\n</html>\n"); jScrollPaneC65DotByte.setViewportView(jTextPaneCa65DotByte); buttonGroupCa65Byte.add(jRadioButtonCa65DotBytByte); jRadioButtonCa65DotBytByte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotBytByteItemStateChanged(evt); } }); jScrollPaneCa65DotBytByte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotBytByte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotBytByte.setEditable(false); jTextPaneCa65DotBytByte.setContentType("text/html"); // NOI18N jTextPaneCa65DotBytByte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byt</b> <font color='red'>$xx</font><br>\n <b> .byt</b> <font color='blue'>dd</font><br>\n <b> .byt</b> <font color='green'>%bb</font><br>\n <b> .byt</b> <font color='purple'>'c'</font>\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotBytByte.setViewportView(jTextPaneCa65DotBytByte); jLabelC65WordDeclaration.setText("Word:"); buttonGroupCa65Word.add(jRadioButtonCa65DotWord); jRadioButtonCa65DotWord.setSelected(true); jRadioButtonCa65DotWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotWordItemStateChanged(evt); } }); jScrollPaneCa65DotWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotWord.setEditable(false); jTextPaneCa65DotWord.setContentType("text/html"); // NOI18N jTextPaneCa65DotWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .word</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotWord.setViewportView(jTextPaneCa65DotWord); jScrollPaneC65DotDByteWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneC65DotDByteWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotDByteWord.setEditable(false); jTextPaneCa65DotDByteWord.setContentType("text/html"); // NOI18N jTextPaneCa65DotDByteWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .dbyte</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneC65DotDByteWord.setViewportView(jTextPaneCa65DotDByteWord); buttonGroupCa65Word.add(jRadioButtonCa65DotDByteWord); jRadioButtonCa65DotDByteWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotDByteWordItemStateChanged(evt); } }); jLabelCa65OriginDeclaration.setText("Origin:"); buttonGroupCa65Origin.add(jRadioButtonCa65DotOrigin); jRadioButtonCa65DotOrigin.setSelected(true); jRadioButtonCa65DotOrigin.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotOriginItemStateChanged(evt); } }); jScrollPaneCa65DotOrigin.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotOrigin.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneC65DotOrigin.setEditable(false); jTextPaneC65DotOrigin.setContentType("text/html"); // NOI18N jTextPaneC65DotOrigin.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>.org</b> $xxyy\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotOrigin.setViewportView(jTextPaneC65DotOrigin); jLabelCa65CommentDeclaration.setText("Comment:"); buttonGroupCa65Comment.add(jRadioButtonCa65SemicolonComment); jRadioButtonCa65SemicolonComment.setSelected(true); jRadioButtonCa65SemicolonComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65SemicolonCommentItemStateChanged(evt); } }); jScrollPaneCa65SemicolonComment.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65SemicolonComment.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneC65SemicolonComment.setEditable(false); jTextPaneC65SemicolonComment.setContentType("text/html"); // NOI18N jTextPaneC65SemicolonComment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>;</b> xxx\n </p>\n </body>\n</html>\n"); jScrollPaneCa65SemicolonComment.setViewportView(jTextPaneC65SemicolonComment); jLabelCa65BlockCommentDeclaration.setText("Block Comment:"); buttonGroupCa65BlockComment.add(jRadioButtonCa65SemicolonBlockComment); jRadioButtonCa65SemicolonBlockComment.setSelected(true); jRadioButtonCa65SemicolonBlockComment.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65SemicolonBlockCommentItemStateChanged(evt); } }); jScrollPaneCa65Comment.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65Comment.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65Comment.setEditable(false); jTextPaneCa65Comment.setContentType("text/html"); // NOI18N jTextPaneCa65Comment.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>;</b> xxx\n </p>\n </body>\n</html>\n"); jScrollPaneCa65Comment.setViewportView(jTextPaneCa65Comment); jLabeCa65StartingDeclaration.setText("Starting:"); buttonGroupCa65Starting.add(jRadioButtonCa65DotP02Starting); jRadioButtonCa65DotP02Starting.setSelected(true); jRadioButtonCa65DotP02Starting.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotP02StartingItemStateChanged(evt); } }); jScrollPaneDasmLabelName17.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmLabelName17.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneC65DotP02Starting.setEditable(false); jTextPaneC65DotP02Starting.setContentType("text/html"); // NOI18N jTextPaneC65DotP02Starting.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>.p02</b>\n </p>\n </body>\n</html>\n"); jScrollPaneDasmLabelName17.setViewportView(jTextPaneC65DotP02Starting); buttonGroupCa65Starting.add(jRadioButtonCa65DotSetcpuStarting); jRadioButtonCa65DotSetcpuStarting.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotSetcpuStartingItemStateChanged(evt); } }); jScrollPaneDasmLabelName18.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmLabelName18.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneC65DotSetcpuStarting.setEditable(false); jTextPaneC65DotSetcpuStarting.setContentType("text/html"); // NOI18N jTextPaneC65DotSetcpuStarting.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>.setcpu</b> \"6502x\"\n </p>\n </body>\n</html>\n"); jScrollPaneDasmLabelName18.setViewportView(jTextPaneC65DotSetcpuStarting); jLabelCa65MonoSpriteDeclaration.setText("Monocolor sprite:"); jLabelCa65MultiSpriteDeclaration.setText("Multicolor sprite:"); buttonGroupCa65MonoSprite.add(jRadioButtonCa65ByteHexMonoSprite); jRadioButtonCa65ByteHexMonoSprite.setSelected(true); jRadioButtonCa65ByteHexMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65ByteHexMonoSpriteItemStateChanged(evt); } }); buttonGroupCa65MultiSprite.add(jRadioButtonCa65ByteHexMultiSprite); jRadioButtonCa65ByteHexMultiSprite.setSelected(true); jRadioButtonCa65ByteHexMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65ByteHexMultiSpriteItemStateChanged(evt); } }); jScrollPaneCa65ByteHexMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65ByteHexMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65ByteHexMultiSprite.setEditable(false); jTextPaneCa65ByteHexMultiSprite.setContentType("text/html"); // NOI18N jTextPaneCa65ByteHexMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> [byte]</b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65ByteHexMultiSprite.setViewportView(jTextPaneCa65ByteHexMultiSprite); jScrollPaneCa65ByteHexMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65ByteHexMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65ByteHexMonoSprite.setEditable(false); jTextPaneCa65ByteHexMonoSprite.setContentType("text/html"); // NOI18N jTextPaneCa65ByteHexMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> [byte]</b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65ByteHexMonoSprite.setViewportView(jTextPaneCa65ByteHexMonoSprite); buttonGroupCa65MonoSprite.add(jRadioButtonCa65ByteBinMonoSprite); jRadioButtonCa65ByteBinMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65ByteBinMonoSpriteItemStateChanged(evt); } }); buttonGroupCa65MultiSprite.add(jRadioButtonCa65ByteBinMultiSprite); jRadioButtonCa65ByteBinMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65ByteBinMultiSpriteItemStateChanged(evt); } }); jScrollPaneDasmByteBinMultiSprite1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneDasmByteBinMultiSprite1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneDasmByteBinMultiSprite1.setEditable(false); jTextPaneDasmByteBinMultiSprite1.setContentType("text/html"); // NOI18N jTextPaneDasmByteBinMultiSprite1.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[byte]</b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneDasmByteBinMultiSprite1.setViewportView(jTextPaneDasmByteBinMultiSprite1); jScrollPaneCa65ByteBinMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65ByteBinMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65ByteBinMonoSprite.setEditable(false); jTextPaneCa65ByteBinMonoSprite.setContentType("text/html"); // NOI18N jTextPaneCa65ByteBinMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[byte]</b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65ByteBinMonoSprite.setViewportView(jTextPaneCa65ByteBinMonoSprite); buttonGroupCa65MonoSprite.add(jRadioButtonCa65MacroHexMonoSprite); jRadioButtonCa65MacroHexMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65MacroHexMonoSpriteItemStateChanged(evt); } }); buttonGroupCa65MultiSprite.add(jRadioButtonCa65MacroHexMultiSprite); jRadioButtonCa65MacroHexMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65MacroHexMultiSpriteItemStateChanged(evt); } }); jScrollPaneCa65MacroHexMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65MacroHexMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65MacroHexMultiSprite.setEditable(false); jTextPaneCa65MacroHexMultiSprite.setContentType("text/html"); // NOI18N jTextPaneCa65MacroHexMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65MacroHexMultiSprite.setViewportView(jTextPaneCa65MacroHexMultiSprite); jScrollPaneCa65MacroHexMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65MacroHexMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65MacroHexMonoSprite.setEditable(false); jTextPaneCa65MacroHexMonoSprite.setContentType("text/html"); // NOI18N jTextPaneCa65MacroHexMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>$xx..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65MacroHexMonoSprite.setViewportView(jTextPaneCa65MacroHexMonoSprite); buttonGroupCa65MonoSprite.add(jRadioButtonCa65MacroBinMonoSprite); jRadioButtonCa65MacroBinMonoSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65MacroBinMonoSpriteItemStateChanged(evt); } }); buttonGroupCa65MultiSprite.add(jRadioButtonCa65MacroBinMultiSprite); jRadioButtonCa65MacroBinMultiSprite.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65MacroBinMultiSpriteItemStateChanged(evt); } }); jScrollPaneCa65MacroBinMultiSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65MacroBinMultiSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65MacroBinMultiSprite.setEditable(false); jTextPaneCa65MacroBinMultiSprite.setContentType("text/html"); // NOI18N jTextPaneCa65MacroBinMultiSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65MacroBinMultiSprite.setViewportView(jTextPaneCa65MacroBinMultiSprite); jScrollPaneCa65MacroBinMonoSprite.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65MacroBinMonoSprite.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65MacroBinMonoSprite.setEditable(false); jTextPaneCa65MacroBinMonoSprite.setContentType("text/html"); // NOI18N jTextPaneCa65MacroBinMonoSprite.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac] </b> <font color='red'>%b..</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65MacroBinMonoSprite.setViewportView(jTextPaneCa65MacroBinMonoSprite); jLabelCa65TribyteDeclaration.setText("Tribyte:"); buttonGroupCa65Tribyte.add(jRadioButtonCa65MacroTribyte); jRadioButtonCa65MacroTribyte.setSelected(true); jRadioButtonCa65MacroTribyte.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65MacroTribyteItemStateChanged(evt); } }); jScrollPaneCa65MacroTribyte.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65MacroTribyte.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65MacroTribyte.setEditable(false); jTextPaneCa65MacroTribyte.setContentType("text/html"); // NOI18N jTextPaneCa65MacroTribyte.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac]</b> <font color='red'>$xxyyzz</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65MacroTribyte.setViewportView(jTextPaneCa65MacroTribyte); jLabelC65LongDeclaration.setText("Long:"); buttonGroupCa65Long.add(jRadioButtonCa65DotLong); jRadioButtonCa65DotLong.setSelected(true); jScrollPaneCa65DotDWordLong.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotDWordLong.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotDwordLong.setEditable(false); jTextPaneCa65DotDwordLong.setContentType("text/html"); // NOI18N jTextPaneCa65DotDwordLong.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .dword</b> <font color='red'>$xxyyzzkk</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotDWordLong.setViewportView(jTextPaneCa65DotDwordLong); jLabelCa65WordSwappedDeclaration.setText("Word swapped:"); buttonGroupCa65WordSwapped.add(jRadioButtonCa65DotDbytWordSwapped); jRadioButtonCa65DotDbytWordSwapped.setSelected(true); jRadioButtonCa65DotDbytWordSwapped.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotDbytWordSwappedItemStateChanged(evt); } }); jScrollPaneCa65DotDbytWordSwapped.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotDbytWordSwapped.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotDbytWordSwapped.setEditable(false); jTextPaneCa65DotDbytWordSwapped.setContentType("text/html"); // NOI18N jTextPaneCa65DotDbytWordSwapped.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .dbyt</b> <font color='red'>$yyxx</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotDbytWordSwapped.setViewportView(jTextPaneCa65DotDbytWordSwapped); jLabelCa65TextDeclaration.setText("Text:"); buttonGroupCa65Text.add(jRadioButtonCa65DotByteText); jRadioButtonCa65DotByteText.setSelected(true); jRadioButtonCa65DotByteText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotByteTextItemStateChanged(evt); } }); jScrollPaneCa65DotByteText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotByteText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotByteText.setEditable(false); jTextPaneCa65DotByteText.setContentType("text/html"); // NOI18N jTextPaneCa65DotByteText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotByteText.setViewportView(jTextPaneCa65DotByteText); buttonGroupCa65Text.add(jRadioButtonCa65DotBytText); jRadioButtonCa65DotBytText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotBytTextItemStateChanged(evt); } }); jScrollPaneCa65DotBytText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotBytText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotBytText.setEditable(false); jTextPaneCa65DotBytText.setContentType("text/html"); // NOI18N jTextPaneCa65DotBytText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>.byt</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotBytText.setViewportView(jTextPaneCa65DotBytText); jLabelCa65NumTextDeclaration.setText("Text #num chars:"); buttonGroupCa65NumText.add(jRadioButtonCa65DotByteNumText); jRadioButtonCa65DotByteNumText.setSelected(true); jRadioButtonCa65DotByteNumText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotByteNumTextItemStateChanged(evt); } }); jScrollPaneCa65DotByteNumText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotByteNumText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotByteNumText.setEditable(false); jTextPaneCa65DotByteNumText.setContentType("text/html"); // NOI18N jTextPaneCa65DotByteNumText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotByteNumText.setViewportView(jTextPaneCa65DotByteNumText); buttonGroupCa65NumText.add(jRadioButtonCa65DotBytNumText); jRadioButtonCa65DotBytNumText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotBytNumTextItemStateChanged(evt); } }); jScrollPaneCa65DotBytNumText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotBytNumText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotBytNumText.setEditable(false); jTextPaneCa65DotBytNumText.setContentType("text/html"); // NOI18N jTextPaneCa65DotBytNumText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>.byt</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotBytNumText.setViewportView(jTextPaneCa65DotBytNumText); jLabelCa65ZeroTextDeclaration.setText("Text 0 terminated:"); buttonGroupCa65ZeroText.add(jRadioButtonCa65DotAsciizZeroText); jRadioButtonCa65DotAsciizZeroText.setSelected(true); jRadioButtonCa65DotAsciizZeroText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotAsciizZeroTextItemStateChanged(evt); } }); jScrollPaneCa65DotAsciizZeroText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotAsciizZeroText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotAsciizZeroText.setEditable(false); jTextPaneCa65DotAsciizZeroText.setContentType("text/html"); // NOI18N jTextPaneCa65DotAsciizZeroText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .asciiz</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotAsciizZeroText.setViewportView(jTextPaneCa65DotAsciizZeroText); jLabelC65AddressDeclaration.setText("Address:"); buttonGroupCa65Address.add(jRadioButtonCa65DotAddrAddress); jRadioButtonCa65DotAddrAddress.setSelected(true); jRadioButtonCa65DotAddrAddress.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotAddrAddressItemStateChanged(evt); } }); jScrollPaneCa65DotAddrAddress.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotAddrAddress.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotAddrAddress.setEditable(false); jTextPaneCa65DotAddrAddress.setContentType("text/html"); // NOI18N jTextPaneCa65DotAddrAddress.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .addr</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotAddrAddress.setViewportView(jTextPaneCa65DotAddrAddress); jLabelCa65StackWordDeclaration.setText("Stack Word:"); buttonGroupCa65StackWord.add(jRadioButtonCa65MacroStackWord); jRadioButtonCa65MacroStackWord.setSelected(true); jRadioButtonCa65MacroStackWord.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65MacroStackWordItemStateChanged(evt); } }); jScrollPaneCa65MacroStackWord.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65MacroStackWord.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65MacroStackWord.setEditable(false); jTextPaneCa65MacroStackWord.setContentType("text/html"); // NOI18N jTextPaneCa65MacroStackWord.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>[.mac]</b> <font color='red'>$xxyy</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65MacroStackWord.setViewportView(jTextPaneCa65MacroStackWord); jLabelCa65HighTextDeclaration.setText("Text '1' terminated:"); buttonGroupCa65HighText.add(jRadioButtonCa65DotByteHighText); jRadioButtonCa65DotByteHighText.setSelected(true); jRadioButtonCa65DotByteHighText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotByteHighTextItemStateChanged(evt); } }); jScrollPaneCa65DotByteHighText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotByteHighText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotByteHighText.setEditable(false); jTextPaneCa65DotByteHighText.setContentType("text/html"); // NOI18N jTextPaneCa65DotByteHighText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotByteHighText.setViewportView(jTextPaneCa65DotByteHighText); buttonGroupCa65HighText.add(jRadioButtonCa65DotBytHighText); jRadioButtonCa65DotBytHighText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotBytHighTextItemStateChanged(evt); } }); jScrollPaneCa65DotBytHighText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotBytHighText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotBytHighText.setEditable(false); jTextPaneCa65DotBytHighText.setContentType("text/html"); // NOI18N jTextPaneCa65DotBytHighText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>.byt</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotBytHighText.setViewportView(jTextPaneCa65DotBytHighText); jLabelCa65ShiftTextDeclaration.setText("Text left shifted:"); buttonGroupCa65ShiftText.add(jRadioButtonCa65DotByteShiftText); jRadioButtonCa65DotByteShiftText.setSelected(true); jRadioButtonCa65DotByteShiftText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotByteShiftTextItemStateChanged(evt); } }); jScrollPaneCa65DotByteShiftText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotByteShiftText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotByteShiftText.setEditable(false); jTextPaneCa65DotByteShiftText.setContentType("text/html"); // NOI18N jTextPaneCa65DotByteShiftText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotByteShiftText.setViewportView(jTextPaneCa65DotByteShiftText); buttonGroupCa65ShiftText.add(jRadioButtonCa65DotBytShiftText); jRadioButtonCa65DotBytShiftText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotBytShiftTextItemStateChanged(evt); } }); jScrollPaneCa65DotBytShiftText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotBytShiftText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotBytShiftText.setEditable(false); jTextPaneCa65DotBytShiftText.setContentType("text/html"); // NOI18N jTextPaneCa65DotBytShiftText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>.byt</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotBytShiftText.setViewportView(jTextPaneCa65DotBytShiftText); jLabelCa65ScreenTextDeclaration.setText("Text to screen code:"); buttonGroupCa65ScreenText.add(jRadioButtonCa65DotByteScreenText); jRadioButtonCa65DotByteScreenText.setSelected(true); jRadioButtonCa65DotByteScreenText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotByteScreenTextItemStateChanged(evt); } }); jScrollPaneCa65DotByteScreenText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotByteScreenText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotByteScreenText.setEditable(false); jTextPaneCa65DotByteScreenText.setContentType("text/html"); // NOI18N jTextPaneCa65DotByteScreenText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotByteScreenText.setViewportView(jTextPaneCa65DotByteScreenText); buttonGroupCa65ScreenText.add(jRadioButtonCa65DotBytScreenText); jRadioButtonCa65DotBytScreenText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotBytScreenTextItemStateChanged(evt); } }); jScrollPaneCa65DotBytShiftText1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotBytShiftText1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotBytScreenText.setEditable(false); jTextPaneCa65DotBytScreenText.setContentType("text/html"); // NOI18N jTextPaneCa65DotBytScreenText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>.byt</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotBytShiftText1.setViewportView(jTextPaneCa65DotBytScreenText); jLabelCa65PetasciiTextDeclaration.setText("Text to petascii code:"); buttonGroupCa65PetsciiText.add(jRadioButtonCa65DotBytePetasciiText); jRadioButtonCa65DotBytePetasciiText.setSelected(true); jRadioButtonCa65DotBytePetasciiText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotBytePetasciiTextItemStateChanged(evt); } }); jScrollPaneCa65DotBytePetasciiText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotBytePetasciiText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotBytePetasciiText.setEditable(false); jTextPaneCa65DotBytePetasciiText.setContentType("text/html"); // NOI18N jTextPaneCa65DotBytePetasciiText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b> .byte</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotBytePetasciiText.setViewportView(jTextPaneCa65DotBytePetasciiText); buttonGroupCa65PetsciiText.add(jRadioButtonCa65DotBytPetasciiText); jRadioButtonCa65DotBytPetasciiText.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCa65DotBytPetasciiTextItemStateChanged(evt); } }); jScrollPaneCa65DotBytPetasciiText.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPaneCa65DotBytPetasciiText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); jTextPaneCa65DotBytPetasciiText.setEditable(false); jTextPaneCa65DotBytPetasciiText.setContentType("text/html"); // NOI18N jTextPaneCa65DotBytPetasciiText.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>.byt</b> <font color='red'>\"xxx\"</font><br>\n\n </p>\n </body>\n</html>\n"); jScrollPaneCa65DotBytPetasciiText.setViewportView(jTextPaneCa65DotBytPetasciiText); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabeCa65StartingDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelCa65OriginDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelCa65CommentDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelCa65BlockCommentDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelCa65LabelDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelC65ByteDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelC65WordDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelCa65WordSwappedDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelCa65TribyteDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelC65LongDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelC65AddressDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelCa65StackWordDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelCa65MonoSpriteDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelCa65MultiSpriteDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelCa65TextDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelCa65NumTextDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelCa65ZeroTextDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelCa65HighTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelCa65ShiftTextDeclaration, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelCa65ScreenTextDeclaration) .addComponent(jLabelCa65PetasciiTextDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonCa65DotP02Starting) .addComponent(jRadioButtonCa65DotOrigin) .addComponent(jRadioButtonCa65SemicolonComment) .addComponent(jRadioButtonCa65SemicolonBlockComment) .addComponent(jRadioButtonCa65LabelNameColon) .addComponent(jRadioButtonCa65DotByte) .addComponent(jRadioButtonCa65DotWord) .addComponent(jRadioButtonCa65DotDbytWordSwapped) .addComponent(jRadioButtonCa65MacroTribyte) .addComponent(jRadioButtonCa65DotLong) .addComponent(jRadioButtonCa65DotAddrAddress) .addComponent(jRadioButtonCa65MacroStackWord) .addComponent(jRadioButtonCa65ByteHexMonoSprite) .addComponent(jRadioButtonCa65ByteHexMultiSprite) .addComponent(jRadioButtonCa65DotByteText) .addComponent(jRadioButtonCa65DotByteNumText) .addComponent(jRadioButtonCa65DotAsciizZeroText) .addComponent(jRadioButtonCa65DotByteHighText) .addComponent(jRadioButtonCa65DotByteShiftText)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneDasmLabelName17) .addComponent(jScrollPaneCa65DotOrigin) .addComponent(jScrollPaneCa65SemicolonComment) .addComponent(jScrollPaneCa65Comment) .addComponent(jScrollPaneCa65LabelName) .addComponent(jScrollPaneC65DotByte) .addComponent(jScrollPaneCa65DotWord) .addComponent(jScrollPaneCa65DotDbytWordSwapped) .addComponent(jScrollPaneCa65MacroTribyte) .addComponent(jScrollPaneCa65DotDWordLong) .addComponent(jScrollPaneCa65DotAddrAddress) .addComponent(jScrollPaneCa65MacroStackWord) .addComponent(jScrollPaneCa65ByteHexMonoSprite) .addComponent(jScrollPaneCa65ByteHexMultiSprite) .addComponent(jScrollPaneCa65DotByteText) .addComponent(jScrollPaneCa65DotByteNumText, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneCa65DotAsciizZeroText, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addComponent(jScrollPaneCa65DotByteHighText, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addComponent(jScrollPaneCa65DotByteShiftText, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jRadioButtonCa65DotByteScreenText) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPaneCa65DotByteScreenText, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jRadioButtonCa65DotBytePetasciiText) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPaneCa65DotBytePetasciiText, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonCa65DotSetcpuStarting) .addComponent(jRadioButtonCa65DotBytByte) .addComponent(jRadioButtonCa65DotDByteWord) .addComponent(jRadioButtonCa65ByteBinMonoSprite) .addComponent(jRadioButtonCa65ByteBinMultiSprite) .addComponent(jRadioButtonCa65DotBytText) .addComponent(jRadioButtonCa65DotBytNumText) .addComponent(jRadioButtonCa65DotBytHighText) .addComponent(jRadioButtonCa65DotBytShiftText) .addComponent(jRadioButtonCa65DotBytScreenText) .addComponent(jRadioButtonCa65DotBytPetasciiText)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneDasmLabelName18) .addComponent(jScrollPaneCa65DotBytByte) .addComponent(jScrollPaneC65DotDByteWord, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneCa65ByteBinMonoSprite) .addComponent(jScrollPaneDasmByteBinMultiSprite1) .addComponent(jScrollPaneCa65DotBytText) .addComponent(jScrollPaneCa65DotBytNumText, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneCa65DotBytHighText, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneCa65DotBytShiftText, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneCa65DotBytShiftText1, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneCa65DotBytPetasciiText, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(7, 7, 7) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonCa65MacroHexMonoSprite) .addComponent(jRadioButtonCa65MacroHexMultiSprite)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jScrollPaneCa65MacroHexMultiSprite) .addComponent(jScrollPaneCa65MacroHexMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addComponent(jRadioButtonCa65MacroBinMultiSprite) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPaneCa65MacroBinMultiSprite)) .addGroup(layout.createSequentialGroup() .addComponent(jRadioButtonCa65MacroBinMonoSprite) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPaneCa65MacroBinMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(33, 33, 33)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(11, 11, 11) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabeCa65StartingDeclaration) .addComponent(jRadioButtonCa65DotP02Starting) .addComponent(jScrollPaneDasmLabelName17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonCa65DotSetcpuStarting) .addComponent(jScrollPaneDasmLabelName18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelCa65OriginDeclaration) .addComponent(jRadioButtonCa65DotOrigin) .addComponent(jScrollPaneCa65DotOrigin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelCa65CommentDeclaration) .addComponent(jRadioButtonCa65SemicolonComment) .addComponent(jScrollPaneCa65SemicolonComment, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(4, 4, 4) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelCa65BlockCommentDeclaration) .addComponent(jRadioButtonCa65SemicolonBlockComment) .addComponent(jScrollPaneCa65Comment, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(8, 8, 8) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelCa65LabelDeclaration) .addComponent(jRadioButtonCa65LabelNameColon) .addComponent(jScrollPaneCa65LabelName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelC65ByteDeclaration) .addComponent(jRadioButtonCa65DotByte) .addComponent(jScrollPaneC65DotByte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonCa65DotBytByte) .addComponent(jScrollPaneCa65DotBytByte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelC65WordDeclaration) .addComponent(jRadioButtonCa65DotWord) .addComponent(jScrollPaneCa65DotWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonCa65DotDByteWord) .addComponent(jScrollPaneC65DotDByteWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelCa65WordSwappedDeclaration) .addComponent(jRadioButtonCa65DotDbytWordSwapped) .addComponent(jScrollPaneCa65DotDbytWordSwapped, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonCa65MacroTribyte) .addComponent(jScrollPaneCa65MacroTribyte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(layout.createSequentialGroup() .addGap(10, 10, 10) .addComponent(jLabelCa65TribyteDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelC65LongDeclaration) .addComponent(jRadioButtonCa65DotLong) .addComponent(jScrollPaneCa65DotDWordLong, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelC65AddressDeclaration) .addComponent(jRadioButtonCa65DotAddrAddress) .addComponent(jScrollPaneCa65DotAddrAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonCa65MacroStackWord) .addComponent(jScrollPaneCa65MacroStackWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(layout.createSequentialGroup() .addGap(10, 10, 10) .addComponent(jLabelCa65StackWordDeclaration, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelCa65MonoSpriteDeclaration) .addComponent(jRadioButtonCa65ByteHexMonoSprite) .addComponent(jRadioButtonCa65ByteBinMonoSprite) .addComponent(jScrollPaneCa65ByteBinMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonCa65MacroHexMonoSprite) .addComponent(jScrollPaneCa65MacroHexMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonCa65MacroBinMonoSprite) .addComponent(jScrollPaneCa65MacroBinMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneCa65ByteHexMonoSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelCa65MultiSpriteDeclaration) .addComponent(jRadioButtonCa65ByteHexMultiSprite) .addComponent(jScrollPaneCa65ByteHexMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonCa65ByteBinMultiSprite) .addComponent(jScrollPaneDasmByteBinMultiSprite1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonCa65MacroHexMultiSprite) .addComponent(jScrollPaneCa65MacroHexMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonCa65MacroBinMultiSprite) .addComponent(jScrollPaneCa65MacroBinMultiSprite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelCa65TextDeclaration) .addComponent(jRadioButtonCa65DotByteText) .addComponent(jScrollPaneCa65DotByteText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonCa65DotBytText) .addComponent(jScrollPaneCa65DotBytText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelCa65NumTextDeclaration) .addComponent(jRadioButtonCa65DotByteNumText) .addComponent(jScrollPaneCa65DotByteNumText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonCa65DotBytNumText) .addComponent(jScrollPaneCa65DotBytNumText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelCa65ZeroTextDeclaration) .addComponent(jRadioButtonCa65DotAsciizZeroText) .addComponent(jScrollPaneCa65DotAsciizZeroText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelCa65HighTextDeclaration) .addComponent(jRadioButtonCa65DotByteHighText) .addComponent(jScrollPaneCa65DotByteHighText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonCa65DotBytHighText) .addComponent(jScrollPaneCa65DotBytHighText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelCa65ShiftTextDeclaration) .addComponent(jRadioButtonCa65DotByteShiftText) .addComponent(jScrollPaneCa65DotByteShiftText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonCa65DotBytShiftText) .addComponent(jScrollPaneCa65DotBytShiftText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelCa65ScreenTextDeclaration) .addComponent(jRadioButtonCa65DotByteScreenText) .addComponent(jScrollPaneCa65DotByteScreenText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonCa65DotBytScreenText) .addComponent(jScrollPaneCa65DotBytShiftText1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelCa65PetasciiTextDeclaration) .addComponent(jRadioButtonCa65DotBytePetasciiText) .addComponent(jScrollPaneCa65DotBytePetasciiText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonCa65DotBytPetasciiText) .addComponent(jScrollPaneCa65DotBytPetasciiText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(59, Short.MAX_VALUE)) ); }// </editor-fold>//GEN-END:initComponents private void jRadioButtonCa65LabelNameColonItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65LabelNameColonItemStateChanged option.ca65Label=Assembler.Label.NAME_COLON; }//GEN-LAST:event_jRadioButtonCa65LabelNameColonItemStateChanged private void jRadioButtonCa65DotByteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotByteItemStateChanged option.ca65Byte=Assembler.Byte.DOT_BYTE; }//GEN-LAST:event_jRadioButtonCa65DotByteItemStateChanged private void jRadioButtonCa65DotBytByteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotBytByteItemStateChanged option.ca65Byte=Assembler.Byte.DOT_BYT_BYTE; }//GEN-LAST:event_jRadioButtonCa65DotBytByteItemStateChanged private void jRadioButtonCa65DotWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotWordItemStateChanged option.ca65Word=Assembler.Word.DOT_WORD; }//GEN-LAST:event_jRadioButtonCa65DotWordItemStateChanged private void jRadioButtonCa65DotDByteWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotDByteWordItemStateChanged option.ca65Word=Assembler.Word.DOT_DBYTE; }//GEN-LAST:event_jRadioButtonCa65DotDByteWordItemStateChanged private void jRadioButtonCa65DotOriginItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotOriginItemStateChanged option.ca65Origin=Assembler.Origin.DOT_ORG; }//GEN-LAST:event_jRadioButtonCa65DotOriginItemStateChanged private void jRadioButtonCa65SemicolonCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65SemicolonCommentItemStateChanged option.ca65Comment=Assembler.Comment.SEMICOLON; }//GEN-LAST:event_jRadioButtonCa65SemicolonCommentItemStateChanged private void jRadioButtonCa65SemicolonBlockCommentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65SemicolonBlockCommentItemStateChanged option.ca65BlockComment=Assembler.BlockComment.SEMICOLON; }//GEN-LAST:event_jRadioButtonCa65SemicolonBlockCommentItemStateChanged private void jRadioButtonCa65DotP02StartingItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotP02StartingItemStateChanged option.ca65Starting=Assembler.Starting.DOT_P02; }//GEN-LAST:event_jRadioButtonCa65DotP02StartingItemStateChanged private void jRadioButtonCa65DotSetcpuStartingItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotSetcpuStartingItemStateChanged option.ca65Starting=Assembler.Starting.DOT_SETCPU; }//GEN-LAST:event_jRadioButtonCa65DotSetcpuStartingItemStateChanged private void jRadioButtonCa65ByteHexMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65ByteHexMonoSpriteItemStateChanged option.ca65MonoSprite=Assembler.MonoSprite.BYTE_HEX; }//GEN-LAST:event_jRadioButtonCa65ByteHexMonoSpriteItemStateChanged private void jRadioButtonCa65ByteHexMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65ByteHexMultiSpriteItemStateChanged option.ca65MultiSprite=Assembler.MultiSprite.BYTE_HEX; }//GEN-LAST:event_jRadioButtonCa65ByteHexMultiSpriteItemStateChanged private void jRadioButtonCa65ByteBinMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65ByteBinMonoSpriteItemStateChanged option.ca65MonoSprite=Assembler.MonoSprite.BYTE_BIN; }//GEN-LAST:event_jRadioButtonCa65ByteBinMonoSpriteItemStateChanged private void jRadioButtonCa65ByteBinMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65ByteBinMultiSpriteItemStateChanged option.ca65MultiSprite=Assembler.MultiSprite.BYTE_BIN; }//GEN-LAST:event_jRadioButtonCa65ByteBinMultiSpriteItemStateChanged private void jRadioButtonCa65MacroHexMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65MacroHexMonoSpriteItemStateChanged option.ca65MonoSprite=Assembler.MonoSprite.MACRO3_HEX; }//GEN-LAST:event_jRadioButtonCa65MacroHexMonoSpriteItemStateChanged private void jRadioButtonCa65MacroHexMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65MacroHexMultiSpriteItemStateChanged option.ca65MultiSprite=Assembler.MultiSprite.MACRO3_HEX; }//GEN-LAST:event_jRadioButtonCa65MacroHexMultiSpriteItemStateChanged private void jRadioButtonCa65MacroBinMonoSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65MacroBinMonoSpriteItemStateChanged option.ca65MonoSprite=Assembler.MonoSprite.MACRO3_BIN; }//GEN-LAST:event_jRadioButtonCa65MacroBinMonoSpriteItemStateChanged private void jRadioButtonCa65MacroBinMultiSpriteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65MacroBinMultiSpriteItemStateChanged option.ca65MultiSprite=Assembler.MultiSprite.MACRO3_HEX; }//GEN-LAST:event_jRadioButtonCa65MacroBinMultiSpriteItemStateChanged private void jRadioButtonCa65MacroTribyteItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65MacroTribyteItemStateChanged option.ca65Tribyte=Assembler.Tribyte.MACRO_TRIBYTE; }//GEN-LAST:event_jRadioButtonCa65MacroTribyteItemStateChanged private void jRadioButtonCa65DotDbytWordSwappedItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotDbytWordSwappedItemStateChanged option.ca65WordSwapped=Assembler.WordSwapped.DOT_DTYB; }//GEN-LAST:event_jRadioButtonCa65DotDbytWordSwappedItemStateChanged private void jRadioButtonCa65DotByteTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotByteTextItemStateChanged option.ca65Text=Assembler.Text.DOT_BYTE_TEXT; }//GEN-LAST:event_jRadioButtonCa65DotByteTextItemStateChanged private void jRadioButtonCa65DotBytTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotBytTextItemStateChanged option.ca65Text=Assembler.Text.DOT_BYT_TEXT; }//GEN-LAST:event_jRadioButtonCa65DotBytTextItemStateChanged private void jRadioButtonCa65DotByteNumTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotByteNumTextItemStateChanged option.ca65NumText=Assembler.NumText.DOT_BYTE_NUMTEXT; }//GEN-LAST:event_jRadioButtonCa65DotByteNumTextItemStateChanged private void jRadioButtonCa65DotBytNumTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotBytNumTextItemStateChanged option.ca65NumText=Assembler.NumText.DOT_BYT_NUMTEXT; }//GEN-LAST:event_jRadioButtonCa65DotBytNumTextItemStateChanged private void jRadioButtonCa65DotAsciizZeroTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotAsciizZeroTextItemStateChanged option.ca65ZeroText=Assembler.ZeroText.DOT_ASCIIZ_ZEROTEXT; }//GEN-LAST:event_jRadioButtonCa65DotAsciizZeroTextItemStateChanged private void jRadioButtonCa65DotAddrAddressItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotAddrAddressItemStateChanged option.ca65Address=Assembler.Address.DOT_ADDR_ADDR; }//GEN-LAST:event_jRadioButtonCa65DotAddrAddressItemStateChanged private void jRadioButtonCa65MacroStackWordItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65MacroStackWordItemStateChanged option.ca65StackWord=Assembler.StackWord.MACRO3_STACKWORD; }//GEN-LAST:event_jRadioButtonCa65MacroStackWordItemStateChanged private void jRadioButtonCa65DotByteHighTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotByteHighTextItemStateChanged option.ca65HighText=Assembler.HighText.DOT_BYTE_HIGHTEXT; }//GEN-LAST:event_jRadioButtonCa65DotByteHighTextItemStateChanged private void jRadioButtonCa65DotBytHighTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotBytHighTextItemStateChanged option.ca65HighText=Assembler.HighText.DOT_BYT_HIGHTEXT; }//GEN-LAST:event_jRadioButtonCa65DotBytHighTextItemStateChanged private void jRadioButtonCa65DotByteShiftTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotByteShiftTextItemStateChanged option.ca65ShiftText=Assembler.ShiftText.DOT_BYTE_SHIFTTEXT; }//GEN-LAST:event_jRadioButtonCa65DotByteShiftTextItemStateChanged private void jRadioButtonCa65DotBytShiftTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotBytShiftTextItemStateChanged option.ca65ShiftText=Assembler.ShiftText.DOT_BYT_SHIFTTEXT; }//GEN-LAST:event_jRadioButtonCa65DotBytShiftTextItemStateChanged private void jRadioButtonCa65DotByteScreenTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotByteScreenTextItemStateChanged option.ca65ScreenText=Assembler.ScreenText.DOT_BYTE_SCREENTEXT; }//GEN-LAST:event_jRadioButtonCa65DotByteScreenTextItemStateChanged private void jRadioButtonCa65DotBytScreenTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotBytScreenTextItemStateChanged option.ca65ScreenText=Assembler.ScreenText.DOT_BYT_SCREENTEXT; }//GEN-LAST:event_jRadioButtonCa65DotBytScreenTextItemStateChanged private void jRadioButtonCa65DotBytePetasciiTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotBytePetasciiTextItemStateChanged option.ca65PetasciiText=Assembler.PetasciiText.DOT_BYTE_PETASCIITEXT; }//GEN-LAST:event_jRadioButtonCa65DotBytePetasciiTextItemStateChanged private void jRadioButtonCa65DotBytPetasciiTextItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCa65DotBytPetasciiTextItemStateChanged option.ca65PetasciiText=Assembler.PetasciiText.DOT_BYT_PETASCIITEXT; }//GEN-LAST:event_jRadioButtonCa65DotBytPetasciiTextItemStateChanged // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.ButtonGroup buttonGroupCa65Address; private javax.swing.ButtonGroup buttonGroupCa65BlockComment; private javax.swing.ButtonGroup buttonGroupCa65Byte; private javax.swing.ButtonGroup buttonGroupCa65Comment; private javax.swing.ButtonGroup buttonGroupCa65HighText; private javax.swing.ButtonGroup buttonGroupCa65Label; private javax.swing.ButtonGroup buttonGroupCa65Long; private javax.swing.ButtonGroup buttonGroupCa65MonoSprite; private javax.swing.ButtonGroup buttonGroupCa65MultiSprite; private javax.swing.ButtonGroup buttonGroupCa65NumText; private javax.swing.ButtonGroup buttonGroupCa65Origin; private javax.swing.ButtonGroup buttonGroupCa65PetsciiText; private javax.swing.ButtonGroup buttonGroupCa65ScreenText; private javax.swing.ButtonGroup buttonGroupCa65ShiftText; private javax.swing.ButtonGroup buttonGroupCa65StackWord; private javax.swing.ButtonGroup buttonGroupCa65Starting; private javax.swing.ButtonGroup buttonGroupCa65Text; private javax.swing.ButtonGroup buttonGroupCa65Tribyte; private javax.swing.ButtonGroup buttonGroupCa65Word; private javax.swing.ButtonGroup buttonGroupCa65WordSwapped; private javax.swing.ButtonGroup buttonGroupCa65ZeroText; private javax.swing.JLabel jLabeCa65StartingDeclaration; private javax.swing.JLabel jLabelC65AddressDeclaration; private javax.swing.JLabel jLabelC65ByteDeclaration; private javax.swing.JLabel jLabelC65LongDeclaration; private javax.swing.JLabel jLabelC65WordDeclaration; private javax.swing.JLabel jLabelCa65BlockCommentDeclaration; private javax.swing.JLabel jLabelCa65CommentDeclaration; private javax.swing.JLabel jLabelCa65HighTextDeclaration; private javax.swing.JLabel jLabelCa65LabelDeclaration; private javax.swing.JLabel jLabelCa65MonoSpriteDeclaration; private javax.swing.JLabel jLabelCa65MultiSpriteDeclaration; private javax.swing.JLabel jLabelCa65NumTextDeclaration; private javax.swing.JLabel jLabelCa65OriginDeclaration; private javax.swing.JLabel jLabelCa65PetasciiTextDeclaration; private javax.swing.JLabel jLabelCa65ScreenTextDeclaration; private javax.swing.JLabel jLabelCa65ShiftTextDeclaration; private javax.swing.JLabel jLabelCa65StackWordDeclaration; private javax.swing.JLabel jLabelCa65TextDeclaration; private javax.swing.JLabel jLabelCa65TribyteDeclaration; private javax.swing.JLabel jLabelCa65WordSwappedDeclaration; private javax.swing.JLabel jLabelCa65ZeroTextDeclaration; private javax.swing.JRadioButton jRadioButtonCa65ByteBinMonoSprite; private javax.swing.JRadioButton jRadioButtonCa65ByteBinMultiSprite; private javax.swing.JRadioButton jRadioButtonCa65ByteHexMonoSprite; private javax.swing.JRadioButton jRadioButtonCa65ByteHexMultiSprite; private javax.swing.JRadioButton jRadioButtonCa65DotAddrAddress; private javax.swing.JRadioButton jRadioButtonCa65DotAsciizZeroText; private javax.swing.JRadioButton jRadioButtonCa65DotBytByte; private javax.swing.JRadioButton jRadioButtonCa65DotBytHighText; private javax.swing.JRadioButton jRadioButtonCa65DotBytNumText; private javax.swing.JRadioButton jRadioButtonCa65DotBytPetasciiText; private javax.swing.JRadioButton jRadioButtonCa65DotBytScreenText; private javax.swing.JRadioButton jRadioButtonCa65DotBytShiftText; private javax.swing.JRadioButton jRadioButtonCa65DotBytText; private javax.swing.JRadioButton jRadioButtonCa65DotByte; private javax.swing.JRadioButton jRadioButtonCa65DotByteHighText; private javax.swing.JRadioButton jRadioButtonCa65DotByteNumText; private javax.swing.JRadioButton jRadioButtonCa65DotBytePetasciiText; private javax.swing.JRadioButton jRadioButtonCa65DotByteScreenText; private javax.swing.JRadioButton jRadioButtonCa65DotByteShiftText; private javax.swing.JRadioButton jRadioButtonCa65DotByteText; private javax.swing.JRadioButton jRadioButtonCa65DotDByteWord; private javax.swing.JRadioButton jRadioButtonCa65DotDbytWordSwapped; private javax.swing.JRadioButton jRadioButtonCa65DotLong; private javax.swing.JRadioButton jRadioButtonCa65DotOrigin; private javax.swing.JRadioButton jRadioButtonCa65DotP02Starting; private javax.swing.JRadioButton jRadioButtonCa65DotSetcpuStarting; private javax.swing.JRadioButton jRadioButtonCa65DotWord; private javax.swing.JRadioButton jRadioButtonCa65LabelNameColon; private javax.swing.JRadioButton jRadioButtonCa65MacroBinMonoSprite; private javax.swing.JRadioButton jRadioButtonCa65MacroBinMultiSprite; private javax.swing.JRadioButton jRadioButtonCa65MacroHexMonoSprite; private javax.swing.JRadioButton jRadioButtonCa65MacroHexMultiSprite; private javax.swing.JRadioButton jRadioButtonCa65MacroStackWord; private javax.swing.JRadioButton jRadioButtonCa65MacroTribyte; private javax.swing.JRadioButton jRadioButtonCa65SemicolonBlockComment; private javax.swing.JRadioButton jRadioButtonCa65SemicolonComment; private javax.swing.JScrollPane jScrollPaneC65DotByte; private javax.swing.JScrollPane jScrollPaneC65DotDByteWord; private javax.swing.JScrollPane jScrollPaneCa65ByteBinMonoSprite; private javax.swing.JScrollPane jScrollPaneCa65ByteHexMonoSprite; private javax.swing.JScrollPane jScrollPaneCa65ByteHexMultiSprite; private javax.swing.JScrollPane jScrollPaneCa65Comment; private javax.swing.JScrollPane jScrollPaneCa65DotAddrAddress; private javax.swing.JScrollPane jScrollPaneCa65DotAsciizZeroText; private javax.swing.JScrollPane jScrollPaneCa65DotBytByte; private javax.swing.JScrollPane jScrollPaneCa65DotBytHighText; private javax.swing.JScrollPane jScrollPaneCa65DotBytNumText; private javax.swing.JScrollPane jScrollPaneCa65DotBytPetasciiText; private javax.swing.JScrollPane jScrollPaneCa65DotBytShiftText; private javax.swing.JScrollPane jScrollPaneCa65DotBytShiftText1; private javax.swing.JScrollPane jScrollPaneCa65DotBytText; private javax.swing.JScrollPane jScrollPaneCa65DotByteHighText; private javax.swing.JScrollPane jScrollPaneCa65DotByteNumText; private javax.swing.JScrollPane jScrollPaneCa65DotBytePetasciiText; private javax.swing.JScrollPane jScrollPaneCa65DotByteScreenText; private javax.swing.JScrollPane jScrollPaneCa65DotByteShiftText; private javax.swing.JScrollPane jScrollPaneCa65DotByteText; private javax.swing.JScrollPane jScrollPaneCa65DotDWordLong; private javax.swing.JScrollPane jScrollPaneCa65DotDbytWordSwapped; private javax.swing.JScrollPane jScrollPaneCa65DotOrigin; private javax.swing.JScrollPane jScrollPaneCa65DotWord; private javax.swing.JScrollPane jScrollPaneCa65LabelName; private javax.swing.JScrollPane jScrollPaneCa65MacroBinMonoSprite; private javax.swing.JScrollPane jScrollPaneCa65MacroBinMultiSprite; private javax.swing.JScrollPane jScrollPaneCa65MacroHexMonoSprite; private javax.swing.JScrollPane jScrollPaneCa65MacroHexMultiSprite; private javax.swing.JScrollPane jScrollPaneCa65MacroStackWord; private javax.swing.JScrollPane jScrollPaneCa65MacroTribyte; private javax.swing.JScrollPane jScrollPaneCa65SemicolonComment; private javax.swing.JScrollPane jScrollPaneDasmByteBinMultiSprite1; private javax.swing.JScrollPane jScrollPaneDasmLabelName17; private javax.swing.JScrollPane jScrollPaneDasmLabelName18; private javax.swing.JTextPane jTextPaneC65DotOrigin; private javax.swing.JTextPane jTextPaneC65DotP02Starting; private javax.swing.JTextPane jTextPaneC65DotSetcpuStarting; private javax.swing.JTextPane jTextPaneC65SemicolonComment; private javax.swing.JTextPane jTextPaneCa65ByteBinMonoSprite; private javax.swing.JTextPane jTextPaneCa65ByteHexMonoSprite; private javax.swing.JTextPane jTextPaneCa65ByteHexMultiSprite; private javax.swing.JTextPane jTextPaneCa65Comment; private javax.swing.JTextPane jTextPaneCa65DotAddrAddress; private javax.swing.JTextPane jTextPaneCa65DotAsciizZeroText; private javax.swing.JTextPane jTextPaneCa65DotBytByte; private javax.swing.JTextPane jTextPaneCa65DotBytHighText; private javax.swing.JTextPane jTextPaneCa65DotBytNumText; private javax.swing.JTextPane jTextPaneCa65DotBytPetasciiText; private javax.swing.JTextPane jTextPaneCa65DotBytScreenText; private javax.swing.JTextPane jTextPaneCa65DotBytShiftText; private javax.swing.JTextPane jTextPaneCa65DotBytText; private javax.swing.JTextPane jTextPaneCa65DotByte; private javax.swing.JTextPane jTextPaneCa65DotByteHighText; private javax.swing.JTextPane jTextPaneCa65DotByteNumText; private javax.swing.JTextPane jTextPaneCa65DotBytePetasciiText; private javax.swing.JTextPane jTextPaneCa65DotByteScreenText; private javax.swing.JTextPane jTextPaneCa65DotByteShiftText; private javax.swing.JTextPane jTextPaneCa65DotByteText; private javax.swing.JTextPane jTextPaneCa65DotDByteWord; private javax.swing.JTextPane jTextPaneCa65DotDbytWordSwapped; private javax.swing.JTextPane jTextPaneCa65DotDwordLong; private javax.swing.JTextPane jTextPaneCa65DotWord; private javax.swing.JTextPane jTextPaneCa65LabelNameColon; private javax.swing.JTextPane jTextPaneCa65MacroBinMonoSprite; private javax.swing.JTextPane jTextPaneCa65MacroBinMultiSprite; private javax.swing.JTextPane jTextPaneCa65MacroHexMonoSprite; private javax.swing.JTextPane jTextPaneCa65MacroHexMultiSprite; private javax.swing.JTextPane jTextPaneCa65MacroStackWord; private javax.swing.JTextPane jTextPaneCa65MacroTribyte; private javax.swing.JTextPane jTextPaneDasmByteBinMultiSprite1; // End of variables declaration//GEN-END:variables /** * Apply the option for CA65 */ public void applyOptionC65() { switch (option.ca65Starting) { case DOT_SETCPU: jRadioButtonCa65DotSetcpuStarting.setSelected(true); break; case DOT_P02: jRadioButtonCa65DotP02Starting.setSelected(true); break; } switch (option.ca65Origin) { case DOT_ORG: jRadioButtonCa65DotOrigin.setSelected(true); break; } switch (option.ca65Comment) { case SEMICOLON: jRadioButtonCa65SemicolonComment.setSelected(true); break; } switch (option.ca65BlockComment) { case SEMICOLON: jRadioButtonCa65SemicolonBlockComment.setSelected(true); break; } switch (option.ca65Label) { case NAME_COLON: jRadioButtonCa65LabelNameColon.setSelected(true); break; } switch (option.ca65Byte) { case DOT_BYTE: jRadioButtonCa65DotByte.setSelected(true); break; case DOT_BYT_BYTE: jRadioButtonCa65DotBytByte.setSelected(true); break; } switch (option.ca65Word) { case DOT_WORD: jRadioButtonCa65DotWord.setSelected(true); break; case DOT_DBYTE: jRadioButtonCa65DotDByteWord.setSelected(true); break; } switch (option.ca65WordSwapped) { case DOT_DTYB: jRadioButtonCa65DotDbytWordSwapped.setSelected(true); break; } switch (option.ca65Tribyte) { case MACRO3_TRIBYTE: jRadioButtonCa65MacroTribyte.setSelected(true); break; } switch (option.ca65Long) { case DOT_LONG: jRadioButtonCa65DotLong.setSelected(true); break; } switch (option.ca65Address) { case DOT_ADDR_ADDR: jRadioButtonCa65DotAddrAddress.setSelected(true); break; } switch (option.ca65StackWord) { case MACRO3_STACKWORD: jRadioButtonCa65MacroStackWord.setSelected(true); break; } switch (option.ca65MonoSprite) { case BYTE_HEX: jRadioButtonCa65ByteHexMonoSprite.setSelected(true); break; case BYTE_BIN: jRadioButtonCa65ByteBinMonoSprite.setSelected(true); break; case MACRO_HEX: jRadioButtonCa65MacroHexMonoSprite.setSelected(true); break; case MACRO_BIN: jRadioButtonCa65MacroBinMonoSprite.setSelected(true); break; } switch (option.ca65MultiSprite) { case BYTE_HEX: jRadioButtonCa65ByteHexMultiSprite.setSelected(true); break; case BYTE_BIN: jRadioButtonCa65ByteBinMultiSprite.setSelected(true); break; case MACRO3_HEX: jRadioButtonCa65MacroHexMultiSprite.setSelected(true); break; case MACRO3_BIN: jRadioButtonCa65MacroBinMultiSprite.setSelected(true); break; } switch (option.ca65Text) { case DOT_BYTE_TEXT: jRadioButtonCa65DotByteText.setSelected(true); break; case DOT_BYT_TEXT: jRadioButtonCa65DotBytText.setSelected(true); break; } switch (option.ca65NumText) { case DOT_BYTE_NUMTEXT: jRadioButtonCa65DotByteNumText.setSelected(true); break; case DOT_BYT_NUMTEXT: jRadioButtonCa65DotBytNumText.setSelected(true); break; } switch (option.ca65ZeroText) { case DOT_ASCIIZ_ZEROTEXT: jRadioButtonCa65DotAsciizZeroText.setSelected(true); break; } switch (option.ca65HighText) { case DOT_BYTE_HIGHTEXT: jRadioButtonCa65DotByteHighText.setSelected(true); break; case DOT_BYT_HIGHTEXT: jRadioButtonCa65DotBytHighText.setSelected(true); break; } switch (option.ca65ShiftText) { case DOT_BYTE_SHIFTTEXT: jRadioButtonCa65DotByteShiftText.setSelected(true); break; case DOT_BYT_SHIFTTEXT: jRadioButtonCa65DotBytShiftText.setSelected(true); break; } switch (option.ca65ScreenText) { case DOT_BYTE_SCREENTEXT: jRadioButtonCa65DotByteScreenText.setSelected(true); break; case DOT_BYT_SCREENTEXT: jRadioButtonCa65DotBytScreenText.setSelected(true); break; } switch (option.ca65PetasciiText) { case DOT_BYTE_PETASCIITEXT: jRadioButtonCa65DotBytePetasciiText.setSelected(true); break; case DOT_BYT_PETASCIITEXT: jRadioButtonCa65DotBytPetasciiText.setSelected(true); break; } } }
104,366
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
J16ColorPanel.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/J16ColorPanel.java
/* * @(#)J16ColorPanel.java 2004/07/01 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing; import java.awt.*; import java.awt.event.*; /** * Show the standard C64 16 color palette * * This code manage even the primary color of MCM text mode * * @author ice */ public class J16ColorPanel extends javax.swing.JPanel { private Dimension swatchSize=new Dimension(15,15); private Dimension gap=new Dimension (1,1); /** true if the char is primary */ private boolean primary=false; /** The color index it is now selected*/ private int selectedIndex=0; /** C64 color palette*/ public static Color[] c64Color={ new Color(0,0,0), new Color(255,255,255), new Color(0xe0,0x40,0x40), new Color(0x60,0xff,0xff), new Color(0xe0,0x60,0xe0), new Color(0x40,0xe0,0x40), new Color(0x40,0x40,0xe0), new Color(0xff,0xff,0x40), new Color(0xe0,0xa0,0x40), new Color(0x9c,0x74,0x48), new Color(0xff,0xa0,0xa0), new Color(0x54,0x54,0x54), new Color(0x88,0x88,0x88), new Color(0xa0,0xff,0xa0), new Color(0xa0,0xa0,0xff), new Color(0xc0,0xc0,0xc0) }; /** Color names for c64 palette */ private String[] colorName={ "Black", "White", "Red", "Cyan", "Pink", "Green", "Blue", "Yellow", "Orange", "Brown", "Light red", "Dark grey", "Medium grey", "Light green", "Light blue", "Light gray" }; /** * Creates new form J8ColorPanel */ public J16ColorPanel() { initComponents(); setToolTipText(""); // register for events setOpaque(true); setRequestFocusEnabled(false); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent evt) { formMousePressed(evt); } }); setLayout(new java.awt.BorderLayout()); }// </editor-fold>//GEN-END:initComponents private void formMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMousePressed selectedIndex=getIndexForLocation(evt.getX(), evt.getY()); repaint(); }//GEN-LAST:event_formMousePressed @Override public void paintComponent(java.awt.Graphics g) { int w=getWidth(); int h=getHeight(); swatchSize.width=w/16; swatchSize.height=h; g.setColor(getBackground()); g.fillRect(0,0,getWidth(), getHeight()); for (int index = 0; index < 16; index++) { if (!(index>7 && primary)) { g.setColor( getColorForCell(index) ); int x = index * (swatchSize.width + gap.width); int y = gap.height; g.fillRect( x, y, swatchSize.width, swatchSize.height); g.setColor(Color.black); g.drawLine( x+swatchSize.width-1, y, x+swatchSize.width-1, y+swatchSize.height-1); g.drawLine( x, y+swatchSize.height-1, x+swatchSize.width-1, y+swatchSize.height-1); if (index==selectedIndex) { Color c=new Color(255-c64Color[index].getRed(),255-c64Color[index].getGreen(),255-c64Color[index].getBlue()); g.setColor(c); g.drawOval(x+swatchSize.width/6, y+swatchSize.height/4, h/2, h/2); } } } } /** * Get the color fot the given index * * @param index the index of color * @return the color as rgb value */ private java.awt.Color getColorForCell(int index) { return c64Color[index]; } /** * Get the color index for the given location * * @param x x location to check * @param y y location to check * @return the color index at the given location */ public int getIndexForLocation( int x, int y ) { int index= x / (swatchSize.width + gap.width); if (index>15) return 0; if (primary && index>7) return 0; return index; } @Override public String getToolTipText(MouseEvent e) { return colorName[getIndexForLocation(e.getX(), e.getY())]; } @Override public Dimension getPreferredSize() { int x = 16 * (swatchSize.width + gap.width) -1; int y = 2*(swatchSize.height + gap.height) -1; return new Dimension( x, y ); } /** * Get the color index selected * * @return the selected index */ public int getSelectedIndex() { return selectedIndex; } /** * Set the selectd index of color * * @param index the index to set */ public void setSelectedIndex(int index) { if (index<0 || index>15) return; selectedIndex=index; repaint(); } /** * Get the selected color * * @return the selected color */ public Color getSelectedColor() { return c64Color[selectedIndex]; } /** * Set the selected color * * @param color the color to select */ public void setSelectedColor(Color color) { for (int i=0; i<16; i++) { if (c64Color[i].equals(color)) { selectedIndex=i; } } repaint(); } /** * Return the index of the given rgb color * * @param color the color * @return the index of this color */ public static int getIndexForColor(Color color) { for (int i=0; i<16; i++) { if (c64Color[i].equals(color)) { return i; } } return 0; } /** * Get the rgb color for the given index * * @param index the index of the color * @return the rgb color */ public static Color getColorForIndex(int index) { return c64Color[index]; } /** * Set this as primary color * * @param primary if this is a primary color */ public void setPrimary(boolean primary) { this.primary=primary; } // Variables declaration - do not modify//GEN-BEGIN:variables // End of variables declaration//GEN-END:variables }
6,982
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
JLicenseDialog.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/JLicenseDialog.java
/** * @(#)JLicenseDialog.java 2019/12/29 * * ICE Team free software group * * This file is part of JIIT64 Java Ice Team Tracker 64 * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing; /** * Credits dialog * * @author ice */ public class JLicenseDialog extends javax.swing.JDialog { /** Creates new form JCreditsDialog */ public JLicenseDialog(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); Shared.framesList.add(this); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanelDn = new javax.swing.JPanel(); jButtonClose = new javax.swing.JButton(); jScrollPane = new javax.swing.JScrollPane(); jEditorPaneLicense = new javax.swing.JEditorPane(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Licenses"); setResizable(false); jButtonClose.setText("Close"); jButtonClose.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonCloseActionPerformed(evt); } }); jPanelDn.add(jButtonClose); getContentPane().add(jPanelDn, java.awt.BorderLayout.PAGE_END); jEditorPaneLicense.setText("\t GNU GENERAL PUBLIC LICENSE\n\t Version 2, June 1991\n\n Copyright (C) 1989, 1991 Free Software Foundation, Inc.\n 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n\t\t Preamble\n\n The licenses for most software are designed to take away your\nfreedom to share and change it. By contrast, the GNU General Public\nLicense is intended to guarantee your freedom to share and change free\nsoftware--to make sure the software is free for all its users. This\nGeneral Public License applies to most of the Free Software\nFoundation's software and to any other program whose authors commit to\nusing it. (Some other Free Software Foundation software is covered by\nthe GNU Library General Public License instead.) You can apply it to\nyour programs, too.\n\n When we speak of free software, we are referring to freedom, not\nprice. Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthis service if you wish), that you receive source code or can get it\nif you want it, that you can change the software or use pieces of it\nin new free programs; and that you know you can do these things.\n\n To protect your rights, we need to make restrictions that forbid\nanyone to deny you these rights or to ask you to surrender the rights.\nThese restrictions translate to certain responsibilities for you if you\ndistribute copies of the software, or if you modify it.\n\n For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must give the recipients all the rights that\nyou have. You must make sure that they, too, receive or can get the\nsource code. And you must show them these terms so they know their\nrights.\n\n We protect your rights with two steps: (1) copyright the software, and\n(2) offer you this license which gives you legal permission to copy,\ndistribute and/or modify the software.\n\n Also, for each author's protection and ours, we want to make certain\nthat everyone understands that there is no warranty for this free\nsoftware. If the software is modified by someone else and passed on, we\nwant its recipients to know that what they have is not the original, so\nthat any problems introduced by others will not reflect on the original\nauthors' reputations.\n\n Finally, any free program is threatened constantly by software\npatents. We wish to avoid the danger that redistributors of a free\nprogram will individually obtain patent licenses, in effect making the\nprogram proprietary. To prevent this, we have made it clear that any\npatent must be licensed for everyone's free use or not licensed at all.\n\n The precise terms and conditions for copying, distribution and\nmodification follow.\n\n\t GNU GENERAL PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. This License applies to any program or other work which contains\na notice placed by the copyright holder saying it may be distributed\nunder the terms of this General Public License. The \"Program\", below,\nrefers to any such program or work, and a \"work based on the Program\"\nmeans either the Program or any derivative work under copyright law:\nthat is to say, a work containing the Program or a portion of it,\neither verbatim or with modifications and/or translated into another\nlanguage. (Hereinafter, translation is included without limitation in\nthe term \"modification\".) Each licensee is addressed as \"you\".\n\nActivities other than copying, distribution and modification are not\ncovered by this License; they are outside its scope. The act of\nrunning the Program is not restricted, and the output from the Program\nis covered only if its contents constitute a work based on the\nProgram (independent of having been made by running the Program).\nWhether that is true depends on what the Program does.\n\n 1. You may copy and distribute verbatim copies of the Program's\nsource code as you receive it, in any medium, provided that you\nconspicuously and appropriately publish on each copy an appropriate\ncopyright notice and disclaimer of warranty; keep intact all the\nnotices that refer to this License and to the absence of any warranty;\nand give any other recipients of the Program a copy of this License\nalong with the Program.\n\nYou may charge a fee for the physical act of transferring a copy, and\nyou may at your option offer warranty protection in exchange for a fee.\n\n 2. You may modify your copy or copies of the Program or any portion\nof it, thus forming a work based on the Program, and copy and\ndistribute such modifications or work under the terms of Section 1\nabove, provided that you also meet all of these conditions:\n\n a) You must cause the modified files to carry prominent notices\n stating that you changed the files and the date of any change.\n\n b) You must cause any work that you distribute or publish, that in\n whole or in part contains or is derived from the Program or any\n part thereof, to be licensed as a whole at no charge to all third\n parties under the terms of this License.\n\n c) If the modified program normally reads commands interactively\n when run, you must cause it, when started running for such\n interactive use in the most ordinary way, to print or display an\n announcement including an appropriate copyright notice and a\n notice that there is no warranty (or else, saying that you provide\n a warranty) and that users may redistribute the program under\n these conditions, and telling the user how to view a copy of this\n License. (Exception: if the Program itself is interactive but\n does not normally print such an announcement, your work based on\n the Program is not required to print an announcement.)\n\nThese requirements apply to the modified work as a whole. If\nidentifiable sections of that work are not derived from the Program,\nand can be reasonably considered independent and separate works in\nthemselves, then this License, and its terms, do not apply to those\nsections when you distribute them as separate works. But when you\ndistribute the same sections as part of a whole which is a work based\non the Program, the distribution of the whole must be on the terms of\nthis License, whose permissions for other licensees extend to the\nentire whole, and thus to each and every part regardless of who wrote it.\n\nThus, it is not the intent of this section to claim rights or contest\nyour rights to work written entirely by you; rather, the intent is to\nexercise the right to control the distribution of derivative or\ncollective works based on the Program.\n\nIn addition, mere aggregation of another work not based on the Program\nwith the Program (or with a work based on the Program) on a volume of\na storage or distribution medium does not bring the other work under\nthe scope of this License.\n\n 3. You may copy and distribute the Program (or a work based on it,\nunder Section 2) in object code or executable form under the terms of\nSections 1 and 2 above provided that you also do one of the following:\n\n a) Accompany it with the complete corresponding machine-readable\n source code, which must be distributed under the terms of Sections\n 1 and 2 above on a medium customarily used for software interchange; or,\n\n b) Accompany it with a written offer, valid for at least three\n years, to give any third party, for a charge no more than your\n cost of physically performing source distribution, a complete\n machine-readable copy of the corresponding source code, to be\n distributed under the terms of Sections 1 and 2 above on a medium\n customarily used for software interchange; or,\n\n c) Accompany it with the information you received as to the offer\n to distribute corresponding source code. (This alternative is\n allowed only for noncommercial distribution and only if you\n received the program in object code or executable form with such\n an offer, in accord with Subsection b above.)\n\nThe source code for a work means the preferred form of the work for\nmaking modifications to it. For an executable work, complete source\ncode means all the source code for all modules it contains, plus any\nassociated interface definition files, plus the scripts used to\ncontrol compilation and installation of the executable. However, as a\nspecial exception, the source code distributed need not include\nanything that is normally distributed (in either source or binary\nform) with the major components (compiler, kernel, and so on) of the\noperating system on which the executable runs, unless that component\nitself accompanies the executable.\n\nIf distribution of executable or object code is made by offering\naccess to copy from a designated place, then offering equivalent\naccess to copy the source code from the same place counts as\ndistribution of the source code, even though third parties are not\ncompelled to copy the source along with the object code.\n\n 4. You may not copy, modify, sublicense, or distribute the Program\nexcept as expressly provided under this License. Any attempt\notherwise to copy, modify, sublicense or distribute the Program is\nvoid, and will automatically terminate your rights under this License.\nHowever, parties who have received copies, or rights, from you under\nthis License will not have their licenses terminated so long as such\nparties remain in full compliance.\n\n 5. You are not required to accept this License, since you have not\nsigned it. However, nothing else grants you permission to modify or\ndistribute the Program or its derivative works. These actions are\nprohibited by law if you do not accept this License. Therefore, by\nmodifying or distributing the Program (or any work based on the\nProgram), you indicate your acceptance of this License to do so, and\nall its terms and conditions for copying, distributing or modifying\nthe Program or works based on it.\n\n 6. Each time you redistribute the Program (or any work based on the\nProgram), the recipient automatically receives a license from the\noriginal licensor to copy, distribute or modify the Program subject to\nthese terms and conditions. You may not impose any further\nrestrictions on the recipients' exercise of the rights granted herein.\nYou are not responsible for enforcing compliance by third parties to\nthis License.\n\n 7. If, as a consequence of a court judgment or allegation of patent\ninfringement or for any other reason (not limited to patent issues),\nconditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License. If you cannot\ndistribute so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you\nmay not distribute the Program at all. For example, if a patent\nlicense would not permit royalty-free redistribution of the Program by\nall those who receive copies directly or indirectly through you, then\nthe only way you could satisfy both it and this License would be to\nrefrain entirely from distribution of the Program.\n\nIf any portion of this section is held invalid or unenforceable under\nany particular circumstance, the balance of the section is intended to\napply and the section as a whole is intended to apply in other\ncircumstances.\n\nIt is not the purpose of this section to induce you to infringe any\npatents or other property right claims or to contest validity of any\nsuch claims; this section has the sole purpose of protecting the\nintegrity of the free software distribution system, which is\nimplemented by public license practices. Many people have made\ngenerous contributions to the wide range of software distributed\nthrough that system in reliance on consistent application of that\nsystem; it is up to the author/donor to decide if he or she is willing\nto distribute software through any other system and a licensee cannot\nimpose that choice.\n\nThis section is intended to make thoroughly clear what is believed to\nbe a consequence of the rest of this License.\n\n 8. If the distribution and/or use of the Program is restricted in\ncertain countries either by patents or by copyrighted interfaces, the\noriginal copyright holder who places the Program under this License\nmay add an explicit geographical distribution limitation excluding\nthose countries, so that distribution is permitted only in or among\ncountries not thus excluded. In such case, this License incorporates\nthe limitation as if written in the body of this License.\n\n 9. The Free Software Foundation may publish revised and/or new versions\nof the General Public License from time to time. Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\nEach version is given a distinguishing version number. If the Program\nspecifies a version number of this License which applies to it and \"any\nlater version\", you have the option of following the terms and conditions\neither of that version or of any later version published by the Free\nSoftware Foundation. If the Program does not specify a version number of\nthis License, you may choose any version ever published by the Free Software\nFoundation.\n\n 10. If you wish to incorporate parts of the Program into other free\nprograms whose distribution conditions are different, write to the author\nto ask for permission. For software which is copyrighted by the Free\nSoftware Foundation, write to the Free Software Foundation; we sometimes\nmake exceptions for this. Our decision will be guided by the two goals\nof preserving the free status of all derivatives of our free software and\nof promoting the sharing and reuse of software generally.\n\n\t\t NO WARRANTY\n\n 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\nFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN\nOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\nPROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\nOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS\nTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE\nPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\nREPAIR OR CORRECTION.\n\n 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\nREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\nINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\nOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\nTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\nYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\nPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGES.\n\n\t END OF TERMS AND CONDITIONS\n\n How to Apply These Terms to Your New Programs\n\n If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n To do so, attach the following notices to the program. It is safest\nto attach them to the start of each source file to most effectively\nconvey the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n <one line to give the program's name and a brief idea of what it does.>\n Copyright (C) 19yy <name of author>\n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation; either version 2 of the License, or\n (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with this program; if not, write to the Free Software\n Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program is interactive, make it output a short notice like this\nwhen it starts in an interactive mode:\n\n Gnomovision version 69, Copyright (C) 19yy name of author\n Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n This is free software, and you are welcome to redistribute it\n under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License. Of course, the commands you use may\nbe called something other than `show w' and `show c'; they could even be\nmouse-clicks or menu items--whatever suits your program.\n\nYou should also get your employer (if you work as a programmer) or your\nschool, if any, to sign a \"copyright disclaimer\" for the program, if\nnecessary. Here is a sample; alter the names:\n\n Yoyodyne, Inc., hereby disclaims all copyright interest in the program\n `Gnomovision' (which makes passes at compilers) written by James Hacker.\n\n <signature of Ty Coon>, 1 April 1989\n Ty Coon, President of Vice\n\nThis General Public License does not permit incorporating your program into\nproprietary programs. If your program is a subroutine library, you may\nconsider it more useful to permit linking proprietary applications with the\nlibrary. If this is what you want to do, use the GNU Library General\nPublic License instead of this License.\n\n\n------------------------------------------------------------------------------------------------------------------\n\n\nCopyright (c) 2019, Robert Futrell\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n * Neither the name of the author nor the names of its contributors may\n be used to endorse or promote products derived from this software\n without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY\nDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n\n------------------------------------------------------------------------------------------------------------------\n\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n---------------------------------------------------------------------------------------------------\n\nCopyright (c) 2014, Laurens Holst\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n2. Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."); jScrollPane.setViewportView(jEditorPaneLicense); getContentPane().add(jScrollPane, java.awt.BorderLayout.CENTER); setSize(new java.awt.Dimension(656, 643)); setLocationRelativeTo(null); }// </editor-fold>//GEN-END:initComponents private void jButtonCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCloseActionPerformed setVisible(false); }//GEN-LAST:event_jButtonCloseActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { JLicenseDialog dialog = new JLicenseDialog(new javax.swing.JFrame(), true); dialog.addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); } }); dialog.setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButtonClose; private javax.swing.JEditorPane jEditorPaneLicense; private javax.swing.JPanel jPanelDn; private javax.swing.JScrollPane jScrollPane; // End of variables declaration//GEN-END:variables }
36,895
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
JOptionDialog.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/JOptionDialog.java
/** * @(#)JPanelOption.java 2019/12/01 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing; import com.formdev.flatlaf.FlatLaf; import java.io.File; import javax.swing.DefaultListModel; import javax.swing.JFileChooser; import javax.swing.JOptionPane; import javax.swing.JSpinner; import javax.swing.SwingUtilities; import javax.swing.plaf.metal.MetalTheme; import javax.swing.UIManager; import sw_emulator.software.Assembler; import sw_emulator.software.Assembler.Name; import sw_emulator.software.SidId; import sw_emulator.software.cpu.M6510Dasm; import sw_emulator.software.machine.C64Dasm; import sw_emulator.swing.main.FileManager; import sw_emulator.swing.main.Option; import sw_emulator.swing.table.DataTableModelMemory; /** * A dialog for option * * @author ice */ public class JOptionDialog extends javax.swing.JDialog { /** Option to use */ Option option=new Option(); /** Actual selected look and feel */ String actualLEF=option.getLafName(); /** Actual metal theme to use */ MetalTheme actualTheme=option.getMethalTheme(); /** Actual flat laf theme */ String actualLaf=option.getFlatLaf(); /** Default list model for laf look & feel */ DefaultListModel<String> listModel=new DefaultListModel(); /** File chooser for tmp directory */ JFileChooser chooserDir=new JFileChooser(); /** File chooser for SidId configuration file */ JFileChooser chooserSidId=new JFileChooser(); /** True if event can be processed */ boolean goFlat=false; /** Data Table model */ DataTableModelMemory model; /** Disassembler frame */ JDisassemblerFrame frame; /** * Creates new form JOptionDialog */ public JOptionDialog(java.awt.Frame parent, boolean modal, DataTableModelMemory model, JDisassemblerFrame frame) { super(parent, modal); initComponents(); this.model=model; this.frame=frame; for (Name val: Assembler.Name.values()) { jComboBoxAssembler.addItem(val.getName()); } Shared.framesList.add(this); Shared.syntaxList.add(rSyntaxTextAreaSyntax); chooserDir.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); chooserSidId.getTypeDescription(new File("sidid.cfg")); platformeEnable(); } /** * Enable some chooses based onto platforme specific implementation */ private void platformeEnable() { String name; UIManager.LookAndFeelInfo[] info=UIManager.getInstalledLookAndFeels(); // scan all the look and feels for (int i=0; i<info.length; i++) { name=info[i].getClassName(); if (name.equals(Option.LAF_MAC)) jRadioButtonLookMac.setEnabled(true); if (name.equals(Option.LAF_METAL)) jRadioButtonLookMetal.setEnabled(true); if (name.equals(Option.LAF_MOTIF)) jRadioButtonLookJava.setEnabled(true); if (name.equals(Option.LAF_WINDOWS)) jRadioButtonLookWin.setEnabled(true); if (name.equals(Option.LAF_CWINDOWS)) jRadioButtonLookCWin.setEnabled(true); if (name.equals(Option.LAF_GTK)) jRadioButtonLookGtk.setEnabled(true); if (name.equals(Option.LAF_NIMBUS)) jRadioButtonLookNimbus.setEnabled(true); } // scan all flat laf for (FlatLaf laf: Option.LAF_SYNTH_FLAT) { listModel.addElement(laf.getName()); } } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroupOpcodeFormatting = new javax.swing.ButtonGroup(); buttonGroupIllegalOpcodeStyle = new javax.swing.ButtonGroup(); buttonGroupLanguage = new javax.swing.ButtonGroup(); buttonGroupCodeData = new javax.swing.ButtonGroup(); buttonGroupLook = new javax.swing.ButtonGroup(); buttonGroupTheme = new javax.swing.ButtonGroup(); buttonGroupMemoryValue = new javax.swing.ButtonGroup(); buttonGroupHeather = new javax.swing.ButtonGroup(); buttonGroupDotsType = new javax.swing.ButtonGroup(); buttonGroupSyntax = new javax.swing.ButtonGroup(); jPanelOption = new javax.swing.JPanel(); jTabbedPaneOption = new javax.swing.JTabbedPane(); jScrollPanePreview = new javax.swing.JScrollPane(); jPanelPreview = new javax.swing.JPanel(); jLabelIllegalOpcodeStyle = new javax.swing.JLabel(); jRadioButtonStyle1 = new javax.swing.JRadioButton(); jRadioButtonStyle2 = new javax.swing.JRadioButton(); jRadioButtonStyle3 = new javax.swing.JRadioButton(); jLabelLanguage = new javax.swing.JLabel(); jRadioButtonLangEnglish = new javax.swing.JRadioButton(); jRadioButtonLangItalian = new javax.swing.JRadioButton(); jCheckBoxEraseDComm = new javax.swing.JCheckBox(); jCheckBoxOpcodeFormattingPreview = new javax.swing.JCheckBox(); jCheckBoxUndefinedCode = new javax.swing.JCheckBox(); jSpinnerMaxLength = new javax.swing.JSpinner(); jLabelMaxLength = new javax.swing.JLabel(); jLabelAggregate = new javax.swing.JLabel(); jSpinnerMaxByteAggregate = new javax.swing.JSpinner(); jLabelPSIDinitsong = new javax.swing.JLabel(); jTextFieldInitSongs = new javax.swing.JTextField(); jLabelPSIDplaysound = new javax.swing.JLabel(); jTextFieldPlaySound = new javax.swing.JTextField(); jLabelSIDfreqLo = new javax.swing.JLabel(); jTextFieldSidFreqLo = new javax.swing.JTextField(); jLabelSIDfreqHi = new javax.swing.JLabel(); jTextFieldSidFreqHi = new javax.swing.JTextField(); jCheckBoxOpcodeFormattingSource = new javax.swing.JCheckBox(); jCheckBoxErasePlus = new javax.swing.JCheckBox(); jLabelInstrSep = new javax.swing.JLabel(); jSpinnerInstrSpaces = new javax.swing.JSpinner(); jSpinnerInstrTabs = new javax.swing.JSpinner(); jLabelInstrSpace = new javax.swing.JLabel(); jLabelInstrTabs = new javax.swing.JLabel(); jLabelDataSep = new javax.swing.JLabel(); jLabelDataSpace = new javax.swing.JLabel(); jSpinnerDataSpaces = new javax.swing.JSpinner(); jLabelDataTabs = new javax.swing.JLabel(); jSpinnerDataTabs = new javax.swing.JSpinner(); jCheckBoxLabel = new javax.swing.JCheckBox(); jLabelMaxByte = new javax.swing.JLabel(); jLabelMaxWord = new javax.swing.JLabel(); jSpinnerMaxWordAggregate = new javax.swing.JSpinner(); jLabelMaxTribyte = new javax.swing.JLabel(); jSpinnerMaxTribyteAggregate = new javax.swing.JSpinner(); jLabelMaxLong = new javax.swing.JLabel(); jSpinnerMaxLongAggregate = new javax.swing.JSpinner(); jLabelTmpPath = new javax.swing.JLabel(); jTextFieldTmpPath = new javax.swing.JTextField(); jButtonBrowse = new javax.swing.JButton(); jLabelMaxSwapped = new javax.swing.JLabel(); jSpinnerMaxSwappedAggregate = new javax.swing.JSpinner(); jLabelMaxText = new javax.swing.JLabel(); jSpinnerMaxTextAggregate = new javax.swing.JSpinner(); jLabelMaxAddress = new javax.swing.JLabel(); jSpinnerMaxAddressAggregate = new javax.swing.JSpinner(); jLabelMaxStackWord = new javax.swing.JLabel(); jSpinnerMaxStackWordAggregate = new javax.swing.JSpinner(); jCheckBoxUbEdit = new javax.swing.JCheckBox(); jCheckBoxUcEdit = new javax.swing.JCheckBox(); jCheckBoxUlEdit = new javax.swing.JCheckBox(); jCheckBoxDcErase = new javax.swing.JCheckBox(); jCheckBoxDlErase = new javax.swing.JCheckBox(); jCheckBoxForceCompilation = new javax.swing.JCheckBox(); jLabelLanguage1 = new javax.swing.JLabel(); jRadioButtonMemoryValueHex = new javax.swing.JRadioButton(); jRadioButtonMemoryValueChar = new javax.swing.JRadioButton(); jLabelInstrCSep = new javax.swing.JLabel(); jLabelInstrCSpace = new javax.swing.JLabel(); jSpinnerInstrCSpaces = new javax.swing.JSpinner(); jLabelInstrCTabs = new javax.swing.JLabel(); jSpinnerInstrCTabs = new javax.swing.JSpinner(); jLabelDataCSep = new javax.swing.JLabel(); jLabelDataCSpace = new javax.swing.JLabel(); jSpinnerDataCSpaces = new javax.swing.JSpinner(); jLabelDataCTabs = new javax.swing.JLabel(); jSpinnerDataCTabs = new javax.swing.JSpinner(); jCheckBoxAllowUtf = new javax.swing.JCheckBox(); jCheckBoxAllowSIDFreq = new javax.swing.JCheckBox(); jCheckBoxMarkMemory = new javax.swing.JCheckBox(); jCheckBoxSetLabels = new javax.swing.JCheckBox(); jCheckBoxSetComment = new javax.swing.JCheckBox(); jCheckBoxNotUsePSID = new javax.swing.JCheckBox(); jCheckBoxCreatePSID = new javax.swing.JCheckBox(); jScrollPaneHeather = new javax.swing.JScrollPane(); jTextAreaHeather = new javax.swing.JTextArea(); jRadioButtonCustom = new javax.swing.JRadioButton(); jRadioButtonStandard = new javax.swing.JRadioButton(); jRadioButtonNone = new javax.swing.JRadioButton(); jLabelHeather = new javax.swing.JLabel(); jCheckBoxRepositionate = new javax.swing.JCheckBox(); jCheckBoxPedantic = new javax.swing.JCheckBox(); jCheckBoxVlPatch = new javax.swing.JCheckBox(); jLabelDataSepOp = new javax.swing.JLabel(); jLabelDataSpaceOp = new javax.swing.JLabel(); jSpinnerDataSpacesOp = new javax.swing.JSpinner(); jLabelDataTabsOp = new javax.swing.JLabel(); jSpinnerDataTabsOp = new javax.swing.JSpinner(); jLabelFontSize = new javax.swing.JLabel(); jLabelFontSizePreview = new javax.swing.JLabel(); jSpinnerSizePreview = new javax.swing.JSpinner(); jLabelFontSizeSource = new javax.swing.JLabel(); jSpinnerSizeSource = new javax.swing.JSpinner(); jSeparatorSourceHeder = new javax.swing.JSeparator(); jSeparatorRadioButtons = new javax.swing.JSeparator(); jSeparator1 = new javax.swing.JSeparator(); jSeparator2 = new javax.swing.JSeparator(); jCheckBoxCreateSAP = new javax.swing.JCheckBox(); jCheckBoxNotUseSAP = new javax.swing.JCheckBox(); jLabelDotsType = new javax.swing.JLabel(); jRadioButtonDotsValueAscii = new javax.swing.JRadioButton(); jRadioButtonDotsValueUtf = new javax.swing.JRadioButton(); jCheckBoxNoUndocumented = new javax.swing.JCheckBox(); jCheckBoxChooserIcon = new javax.swing.JCheckBox(); jCheckBoxShowMiniature = new javax.swing.JCheckBox(); jLabelTmpPathSidId = new javax.swing.JLabel(); jTextFieldTmpPathSidId = new javax.swing.JTextField(); jButtonBrowseSidId = new javax.swing.JButton(); jCheckBoxShowSidId = new javax.swing.JCheckBox(); jPanelComment = new javax.swing.JPanel(); jLabelautocomment = new javax.swing.JLabel(); jTabbedPaneComm = new javax.swing.JTabbedPane(); jPanelC64Comm = new javax.swing.JPanel(); jCheckBoxC64ZeroPage = new javax.swing.JCheckBox(); jCheckBoxC64StackArea = new javax.swing.JCheckBox(); jCheckBoxC64_200Area = new javax.swing.JCheckBox(); jCheckBoxC64_300Area = new javax.swing.JCheckBox(); jCheckBoxC64ScreenArea = new javax.swing.JCheckBox(); jCheckBoxC64FreeArea = new javax.swing.JCheckBox(); jCheckBoxC64BasicRom = new javax.swing.JCheckBox(); jCheckBoxC64FreeRam = new javax.swing.JCheckBox(); jCheckC64BoxVicII = new javax.swing.JCheckBox(); jCheckC64BoxSid = new javax.swing.JCheckBox(); jCheckBoxC64Color = new javax.swing.JCheckBox(); jCheckBoxC64Cia1 = new javax.swing.JCheckBox(); jCheckBoxC64Cia2 = new javax.swing.JCheckBox(); jCheckBoxC64KernalRom = new javax.swing.JCheckBox(); jPanelC1541Comm = new javax.swing.JPanel(); jCheckBoxC1541ZeroPage = new javax.swing.JCheckBox(); jCheckBoxC1541StackArea = new javax.swing.JCheckBox(); jCheckBoxC1541_200Area = new javax.swing.JCheckBox(); jCheckBoxC1541Via1 = new javax.swing.JCheckBox(); jCheckBoxC1541Via2 = new javax.swing.JCheckBox(); jCheckBoxC1541Kernal = new javax.swing.JCheckBox(); jCheckBoxC1541Buffer0 = new javax.swing.JCheckBox(); jCheckBoxC1541Buffer1 = new javax.swing.JCheckBox(); jCheckBoxC1541Buffer2 = new javax.swing.JCheckBox(); jCheckBoxC1541Buffer3 = new javax.swing.JCheckBox(); jCheckBoxC1541Buffer4 = new javax.swing.JCheckBox(); jPanelC128Comm = new javax.swing.JPanel(); jCheckBoxC128ZeroPage = new javax.swing.JCheckBox(); jCheckBoxC128StackArea = new javax.swing.JCheckBox(); jCheckBoxC128_300Area = new javax.swing.JCheckBox(); jCheckBoxC128_200Area = new javax.swing.JCheckBox(); jCheckBoxC128ScreenArea = new javax.swing.JCheckBox(); jCheckBoxC128UserBasic = new javax.swing.JCheckBox(); jCheckBoxC128AppProgArea = new javax.swing.JCheckBox(); jCheckBoxC128VideoColor = new javax.swing.JCheckBox(); jCheckBoxC128ScreenMem = new javax.swing.JCheckBox(); jCheckBoxC128Color = new javax.swing.JCheckBox(); jCheckBoxC128BasicRom = new javax.swing.JCheckBox(); jCheckBoxC128VicII = new javax.swing.JCheckBox(); jCheckBoxC128Sid = new javax.swing.JCheckBox(); jCheckBoxC128MMU = new javax.swing.JCheckBox(); jCheckBoxC128VDC = new javax.swing.JCheckBox(); jCheckBoxC128Cia1 = new javax.swing.JCheckBox(); jCheckBoxC128Cia2 = new javax.swing.JCheckBox(); jCheckBoxC128DMA = new javax.swing.JCheckBox(); jCheckBoxC128KernalRom = new javax.swing.JCheckBox(); jPanelVic20Comm = new javax.swing.JPanel(); jCheckBoxVic20StackArea = new javax.swing.JCheckBox(); jCheckBoxVic20ZeroPage = new javax.swing.JCheckBox(); jCheckBoxVic20_200Area = new javax.swing.JCheckBox(); jCheckBoxVic20_300Area = new javax.swing.JCheckBox(); jCheckBoxVic20_400Area = new javax.swing.JCheckBox(); jCheckBoxVic20Vic = new javax.swing.JCheckBox(); jCheckBoxVic20Via1 = new javax.swing.JCheckBox(); jCheckBoxVic20Via2 = new javax.swing.JCheckBox(); jCheckBoxVic20UserBasic = new javax.swing.JCheckBox(); jCheckBoxVic20Screen = new javax.swing.JCheckBox(); jCheckBoxVic20_8kExp1 = new javax.swing.JCheckBox(); jCheckBoxVic20_8kExp2 = new javax.swing.JCheckBox(); jCheckBoxVic20_8kExp3 = new javax.swing.JCheckBox(); jCheckBoxVic20Character = new javax.swing.JCheckBox(); jCheckBoxVic20Color = new javax.swing.JCheckBox(); jCheckBoxVic20Block2 = new javax.swing.JCheckBox(); jCheckBoxVic20Block3 = new javax.swing.JCheckBox(); jCheckBoxVic20Block4 = new javax.swing.JCheckBox(); jCheckBoxVic20BasicRom = new javax.swing.JCheckBox(); jCheckBoxVic20KernalRom = new javax.swing.JCheckBox(); jPanelPlus4Comm = new javax.swing.JPanel(); jCheckBoxPlus4ZeroPage = new javax.swing.JCheckBox(); jCheckBoxPlus4StackArea = new javax.swing.JCheckBox(); jCheckBoxPlus4_200Area = new javax.swing.JCheckBox(); jCheckBoxPlus4_300Area = new javax.swing.JCheckBox(); jCheckBoxPlus4_400Area = new javax.swing.JCheckBox(); jCheckBoxPlus4_500Area = new javax.swing.JCheckBox(); jCheckBoxPlus4_600Area = new javax.swing.JCheckBox(); jCheckBoxPlus4_700Area = new javax.swing.JCheckBox(); jCheckBoxPlus4ColorArea = new javax.swing.JCheckBox(); jCheckBoxPlus4VideoArea = new javax.swing.JCheckBox(); jCheckBoxPlus4BasicRamP = new javax.swing.JCheckBox(); jCheckBoxPlus4Luminance = new javax.swing.JCheckBox(); jCheckBoxPlus4ColorBitmap = new javax.swing.JCheckBox(); jCheckBoxPlus4GraphicData = new javax.swing.JCheckBox(); jCheckBoxPlus4BasicRamN = new javax.swing.JCheckBox(); jCheckBoxPlus4BasicRom = new javax.swing.JCheckBox(); jCheckBoxPlus4BasicExt = new javax.swing.JCheckBox(); jCheckBoxPlus4Caracter = new javax.swing.JCheckBox(); jCheckBoxPlus4Acia = new javax.swing.JCheckBox(); jCheckBoxPlus4_6529B_1 = new javax.swing.JCheckBox(); jCheckBoxPlus4_6529B_2 = new javax.swing.JCheckBox(); jCheckBoxPlus4Ted = new javax.swing.JCheckBox(); jCheckBoxPlus4Kernal = new javax.swing.JCheckBox(); jPanelAtariComm = new javax.swing.JPanel(); jCheckBoxAtariKernalRom = new javax.swing.JCheckBox(); jCheckBoxAtariAntic = new javax.swing.JCheckBox(); jCheckBoxAtariPia = new javax.swing.JCheckBox(); jCheckBoxAtariPokey = new javax.swing.JCheckBox(); jCheckBoxAtariGtia = new javax.swing.JCheckBox(); jCheckBoxAtariCartridgeA = new javax.swing.JCheckBox(); jCheckBoxAtariCartridgeB = new javax.swing.JCheckBox(); jCheckBoxAtariZeroPage = new javax.swing.JCheckBox(); jCheckBoxAtariStackArea = new javax.swing.JCheckBox(); jCheckBoxAtari200Area = new javax.swing.JCheckBox(); jCheckBoxAtari300Area = new javax.swing.JCheckBox(); jCheckBoxAtari400Area = new javax.swing.JCheckBox(); jCheckBoxAtari500Area = new javax.swing.JCheckBox(); jPanelDisassembler = new javax.swing.JPanel(); jLabelAutoComment = new javax.swing.JLabel(); jComboBoxAssembler = new javax.swing.JComboBox<>(); jTabbedPaneAssembler = new javax.swing.JTabbedPane(); jScrollPaneDasm = new javax.swing.JScrollPane(); jDasmPanel = new sw_emulator.swing.JDasmPanel(); jScrollPaneTMPx = new javax.swing.JScrollPane(); jTmpxPanel = new sw_emulator.swing.JTmpxPanel(); jScrollPaneCa65 = new javax.swing.JScrollPane(); jCa65Panel = new sw_emulator.swing.JCa65Panel(); jScrollPaneAcme = new javax.swing.JScrollPane(); jAcmePanel = new sw_emulator.swing.JAcmePanel(); jScrollPaneKickAssembler = new javax.swing.JScrollPane(); jKickPanel = new sw_emulator.swing.JKickPanel(); jScrollPaneTass64 = new javax.swing.JScrollPane(); jTass64Panel = new sw_emulator.swing.JTass64Panel(); jScrollPaneGlass = new javax.swing.JScrollPane(); jGlassPanel = new sw_emulator.swing.JGlassPanel(); jScrollPaneSidFreq = new javax.swing.JScrollPane(); jPanelSidFreq = new javax.swing.JPanel(); jLabelSidFreq = new javax.swing.JLabel(); jCheckBoxLinearTable = new javax.swing.JCheckBox(); jScrollPaneLinearTableLH = new javax.swing.JScrollPane(); jTextPaneLinearTableLH = new javax.swing.JTextPane(); jScrollPaneLinearTableHL = new javax.swing.JScrollPane(); jTextPaneLinearTableHL = new javax.swing.JTextPane(); jCheckBoxCombinedTable = new javax.swing.JCheckBox(); jScrollPaneCombinedTableLH = new javax.swing.JScrollPane(); jTextPaneCombinedTableLH = new javax.swing.JTextPane(); jScrollPaneCombinedTableHL = new javax.swing.JScrollPane(); jTextPanecombinedTableHL = new javax.swing.JTextPane(); jCheckBoxInverseLinearTable = new javax.swing.JCheckBox(); jScrollPaneInverseLinearTableLH = new javax.swing.JScrollPane(); jTextPaneInverseLinearTableLH = new javax.swing.JTextPane(); jScrollPaneInverseLinearTableHL = new javax.swing.JScrollPane(); jTextPaneInverseLinearTableHL = new javax.swing.JTextPane(); jCheckBoxLinearOctNoteTable = new javax.swing.JCheckBox(); jScrollPaneLinearOctBNoteTableLH = new javax.swing.JScrollPane(); jTextPaneLinearOctBNoteTableLH = new javax.swing.JTextPane(); LinearOctBNoteTableHL = new javax.swing.JScrollPane(); jTextPaneLinearOctNoteTableHL = new javax.swing.JTextPane(); jCheckBoxHiOct13Table = new javax.swing.JCheckBox(); jScrollPaneLinearHiOct13Table = new javax.swing.JScrollPane(); jTextPaneLinearHiOct13Table = new javax.swing.JTextPane(); jCheckBoxHiOct12Table = new javax.swing.JCheckBox(); jScrollPaneLinearHiOct12Table = new javax.swing.JScrollPane(); jTextPaneLinearHiOct12Table = new javax.swing.JTextPane(); jCheckBoxLinearScaleTable = new javax.swing.JCheckBox(); jScrollPaneLinearScaleTableLH = new javax.swing.JScrollPane(); jTextPaneLinearScaleTableLH = new javax.swing.JTextPane(); jScrollPaneLinearScaleTableHL = new javax.swing.JScrollPane(); jTextPaneLinearScaleTableHL = new javax.swing.JTextPane(); jCheckBoxShortLinearTable = new javax.swing.JCheckBox(); jTextFieldShortLinearTable = new javax.swing.JTextField(); jCheckBoxShortCombinedTable = new javax.swing.JCheckBox(); jTextFieldCombinedTable = new javax.swing.JTextField(); jCheckBoxHiOctCombinedTable = new javax.swing.JCheckBox(); jScrollPaneLinearHiOctCombinedTable = new javax.swing.JScrollPane(); jTextPaneLinearHiOctCombinedTable = new javax.swing.JTextPane(); jCheckBoxHiOctCombinedInvertedTable = new javax.swing.JCheckBox(); jScrollPaneLinearHiOctCombinedInvertedTable = new javax.swing.JScrollPane(); jTextPaneLinearHiOctCombinedInvertedTable = new javax.swing.JTextPane(); jCheckBoxLoOctCombinedTable = new javax.swing.JCheckBox(); jScrollPaneLinearLoOctCombinedTable = new javax.swing.JScrollPane(); jTextPaneLinearLoOctCombinedTable = new javax.swing.JTextPane(); jPanelLook = new javax.swing.JPanel(); jRadioButtonLookJava = new javax.swing.JRadioButton(); jRadioButtonLookMac = new javax.swing.JRadioButton(); jRadioButtonLookMetal = new javax.swing.JRadioButton(); jRadioButtonLookWin = new javax.swing.JRadioButton(); jRadioButtonLookGtk = new javax.swing.JRadioButton(); jRadioButtonLookNimbus = new javax.swing.JRadioButton(); jLabelLook = new javax.swing.JLabel(); jLabelTheme = new javax.swing.JLabel(); jRadioButtonOcean = new javax.swing.JRadioButton(); jRadioButtonSteel = new javax.swing.JRadioButton(); jRadioButtonAqua = new javax.swing.JRadioButton(); jRadioButtonCharcoal = new javax.swing.JRadioButton(); jRadioButtonHighContrast = new javax.swing.JRadioButton(); jRadioButtonEmerald = new javax.swing.JRadioButton(); jRadioButtonRuby = new javax.swing.JRadioButton(); jRadioButtonLookCWin = new javax.swing.JRadioButton(); jLabelBracket = new javax.swing.JLabel(); jRadioButtonLookSynth = new javax.swing.JRadioButton(); jLabelArrow = new javax.swing.JLabel(); jScrollPaneList = new javax.swing.JScrollPane(); jListLaf = new javax.swing.JList<>(); jLabelFlatLaf = new javax.swing.JLabel(); jScrollPaneSyntax = new javax.swing.JScrollPane(); rSyntaxTextAreaSyntax = new org.fife.ui.rsyntaxtextarea.RSyntaxTextArea(); jLabelSyntax = new javax.swing.JLabel(); jRadioButtonDefault = new javax.swing.JRadioButton(); jRadioButtonDefaultAlt = new javax.swing.JRadioButton(); jRadioButtonDark = new javax.swing.JRadioButton(); jRadioButtonDruid = new javax.swing.JRadioButton(); jRadioButtonEclipse = new javax.swing.JRadioButton(); jRadioButtonIdea = new javax.swing.JRadioButton(); jRadioButtonMonokai = new javax.swing.JRadioButton(); jRadioButtonVS = new javax.swing.JRadioButton(); jPanelDn = new javax.swing.JPanel(); jButtonLoad = new javax.swing.JButton(); jButtonSave = new javax.swing.JButton(); jButtonClose = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); setTitle("Options"); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } }); jPanelOption.setLayout(new java.awt.BorderLayout()); jTabbedPaneOption.setFocusable(false); jTabbedPaneOption.setName("Options"); // NOI18N jTabbedPaneOption.setPreferredSize(new java.awt.Dimension(831, 842)); jScrollPanePreview.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPanePreview.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); jLabelIllegalOpcodeStyle.setText("Illegal opcode style:"); buttonGroupIllegalOpcodeStyle.add(jRadioButtonStyle1); jRadioButtonStyle1.setSelected(true); jRadioButtonStyle1.setText("ANE, ISB, SHY, SHS"); jRadioButtonStyle1.setToolTipText("Mode use by John west and Marko M\"akel\"a"); jRadioButtonStyle1.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonStyle1ItemStateChanged(evt); } }); buttonGroupIllegalOpcodeStyle.add(jRadioButtonStyle2); jRadioButtonStyle2.setText("AXA, ISC, SYH, SSH"); jRadioButtonStyle2.setToolTipText("Mode use by Juergen Buchmueller"); jRadioButtonStyle2.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonStyle2ItemStateChanged(evt); } }); buttonGroupIllegalOpcodeStyle.add(jRadioButtonStyle3); jRadioButtonStyle3.setText("XAA, INS, SAY, TAS"); jRadioButtonStyle3.setToolTipText("Mode use by Adam Vardy"); jRadioButtonStyle3.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonStyle3ItemStateChanged(evt); } }); jLabelLanguage.setText("Language of comments:"); buttonGroupLanguage.add(jRadioButtonLangEnglish); jRadioButtonLangEnglish.setSelected(true); jRadioButtonLangEnglish.setText("English"); jRadioButtonLangEnglish.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonLangEnglishItemStateChanged(evt); } }); buttonGroupLanguage.add(jRadioButtonLangItalian); jRadioButtonLangItalian.setText("Italian"); jRadioButtonLangItalian.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonLangItalianItemStateChanged(evt); } }); jCheckBoxEraseDComm.setSelected(true); jCheckBoxEraseDComm.setText("Erase DASM automatic comment when mark a memory location as Data"); jCheckBoxEraseDComm.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxEraseDCommItemStateChanged(evt); } }); jCheckBoxOpcodeFormattingPreview.setSelected(true); jCheckBoxOpcodeFormattingPreview.setText("Opcode formatting as Upper case (NOP, JMP, ...) instead of Lower case (nop, jmp, ...) for preview"); jCheckBoxOpcodeFormattingPreview.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxOpcodeFormattingPreviewItemStateChanged(evt); } }); jCheckBoxUndefinedCode.setSelected(true); jCheckBoxUndefinedCode.setText("Undefined code/data used as code instead of data"); jCheckBoxUndefinedCode.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxUndefinedCodeItemStateChanged(evt); } }); jSpinnerMaxLength.setModel(new javax.swing.SpinnerNumberModel(25, 5, 40, 1)); jSpinnerMaxLength.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerMaxLengthStateChanged(evt); } }); jLabelMaxLength.setText("Max lenght of label (some assembler has a limit):"); jLabelAggregate.setText("Aggregate up to X values on a data row of type:"); jSpinnerMaxByteAggregate.setModel(new javax.swing.SpinnerNumberModel(8, 2, 8, 1)); jSpinnerMaxByteAggregate.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerMaxByteAggregateStateChanged(evt); } }); jLabelPSIDinitsong.setText("PSID/SAP init songs label:"); jTextFieldInitSongs.setText("initSongs"); jTextFieldInitSongs.setToolTipText("Label to use for the PSID starting init routine"); jTextFieldInitSongs.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { jTextFieldInitSongsFocusLost(evt); } }); jLabelPSIDplaysound.setText("PSID/SAP play sound label:"); jTextFieldPlaySound.setText("playSound"); jTextFieldPlaySound.setToolTipText("Label to use for PSID play sound routine"); jTextFieldPlaySound.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { jTextFieldPlaySoundFocusLost(evt); } }); jLabelSIDfreqLo.setText("SID frequency table low label:"); jTextFieldSidFreqLo.setText("frequencyLo"); jTextFieldSidFreqLo.setToolTipText("Label to use for low address of frequency table"); jTextFieldSidFreqLo.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { jTextFieldSidFreqLoFocusLost(evt); } }); jLabelSIDfreqHi.setText("SID frequency table high label:"); jTextFieldSidFreqHi.setText("frequencyHi"); jTextFieldSidFreqHi.setToolTipText("Label to use for high address of frequenct table"); jTextFieldSidFreqHi.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { jTextFieldSidFreqHiFocusLost(evt); } }); jCheckBoxOpcodeFormattingSource.setText("Opcode formatting as Upper case (NOP, JMP, ...) instead of Lower case (nop, jmp, ...) for source"); jCheckBoxOpcodeFormattingSource.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxOpcodeFormattingSourceItemStateChanged(evt); } }); jCheckBoxErasePlus.setSelected(true); jCheckBoxErasePlus.setText("Erase relative + address when mark a memory location as Data"); jCheckBoxErasePlus.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxErasePlusItemStateChanged(evt); } }); jLabelInstrSep.setText("Instruction separator in start of row of source:"); jSpinnerInstrSpaces.setModel(new javax.swing.SpinnerNumberModel(6, 0, 20, 1)); jSpinnerInstrSpaces.setToolTipText("At least 1 space or 1 tabs is necessary"); jSpinnerInstrSpaces.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerInstrSpacesStateChanged(evt); } }); jSpinnerInstrTabs.setModel(new javax.swing.SpinnerNumberModel(0, 0, 8, 1)); jSpinnerInstrTabs.setToolTipText("At least 1 space or 1 tabs is necessary"); jSpinnerInstrTabs.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerInstrTabsStateChanged(evt); } }); jLabelInstrSpace.setText("Spaces:"); jLabelInstrTabs.setText("Tabs:"); jLabelDataSep.setText("Data separator in start of row of source:"); jLabelDataSpace.setText("Spaces:"); jSpinnerDataSpaces.setModel(new javax.swing.SpinnerNumberModel(2, 0, 20, 1)); jSpinnerDataSpaces.setToolTipText("At least 1 space or 1 tabs is necessary"); jSpinnerDataSpaces.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerDataSpacesStateChanged(evt); } }); jLabelDataTabs.setText("Tabs:"); jSpinnerDataTabs.setModel(new javax.swing.SpinnerNumberModel(0, 0, 8, 1)); jSpinnerDataTabs.setToolTipText("At least 1 space or 1 tabs is necessary"); jSpinnerDataTabs.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerDataTabsStateChanged(evt); } }); jCheckBoxLabel.setText("Label is on a separated line from instruction"); jCheckBoxLabel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxLabelActionPerformed(evt); } }); jLabelMaxByte.setText("Byte:"); jLabelMaxWord.setText("Word:"); jSpinnerMaxWordAggregate.setModel(new javax.swing.SpinnerNumberModel(4, 2, 8, 1)); jSpinnerMaxWordAggregate.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerMaxWordAggregateStateChanged(evt); } }); jLabelMaxTribyte.setText("Tribyte:"); jSpinnerMaxTribyteAggregate.setModel(new javax.swing.SpinnerNumberModel(3, 2, 8, 1)); jSpinnerMaxTribyteAggregate.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerMaxTribyteAggregateStateChanged(evt); } }); jLabelMaxLong.setText("Long:"); jSpinnerMaxLongAggregate.setModel(new javax.swing.SpinnerNumberModel(4, 2, 8, 1)); jSpinnerMaxLongAggregate.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerMaxLongAggregateStateChanged(evt); } }); jLabelTmpPath.setText("Temp. Path for assembler compilation:"); jTextFieldTmpPath.setEditable(false); jButtonBrowse.setText("Browse"); jButtonBrowse.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonBrowseActionPerformed(evt); } }); jLabelMaxSwapped.setText("Swapped:"); jSpinnerMaxSwappedAggregate.setModel(new javax.swing.SpinnerNumberModel(4, 2, 8, 1)); jSpinnerMaxSwappedAggregate.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerMaxSwappedAggregateStateChanged(evt); } }); jLabelMaxText.setText("Text:"); jSpinnerMaxTextAggregate.setModel(new javax.swing.SpinnerNumberModel(32, 2, 40, 1)); jSpinnerMaxTextAggregate.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerMaxTextAggregateStateChanged(evt); } }); jLabelMaxAddress.setText("Address:"); jSpinnerMaxAddressAggregate.setModel(new javax.swing.SpinnerNumberModel(4, 2, 8, 1)); jSpinnerMaxAddressAggregate.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerMaxAddressAggregateStateChanged(evt); } }); jLabelMaxStackWord.setText("Stack word:"); jSpinnerMaxStackWordAggregate.setModel(new javax.swing.SpinnerNumberModel(4, 2, 8, 1)); jSpinnerMaxStackWordAggregate.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerMaxStackWordAggregateStateChanged(evt); } }); jCheckBoxUbEdit.setText("A click on UB column edit the global comment"); jCheckBoxUbEdit.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxUbEditItemStateChanged(evt); } }); jCheckBoxUcEdit.setText("A click on UC column edit the user comment"); jCheckBoxUcEdit.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxUcEditItemStateChanged(evt); } }); jCheckBoxUlEdit.setText("A click on UL column edit the user label"); jCheckBoxUlEdit.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxUlEditItemStateChanged(evt); } }); jCheckBoxDcErase.setText("A click on DC column erase the automatic comment"); jCheckBoxDcErase.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxDcEraseItemStateChanged(evt); } }); jCheckBoxDlErase.setText("A click on DL column erase the automatic label"); jCheckBoxDlErase.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxDlEraseItemStateChanged(evt); } }); jCheckBoxForceCompilation.setText("Force compilation at every modification"); jCheckBoxForceCompilation.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxForceCompilationActionPerformed(evt); } }); jLabelLanguage1.setText("Memory value in left panel:"); buttonGroupMemoryValue.add(jRadioButtonMemoryValueHex); jRadioButtonMemoryValueHex.setSelected(true); jRadioButtonMemoryValueHex.setText("Hex"); jRadioButtonMemoryValueHex.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonMemoryValueHexItemStateChanged(evt); } }); buttonGroupMemoryValue.add(jRadioButtonMemoryValueChar); jRadioButtonMemoryValueChar.setText("Char"); jRadioButtonMemoryValueChar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonMemoryValueCharItemStateChanged(evt); } }); jLabelInstrCSep.setText("Comment separator inside instruction in source:"); jLabelInstrCSpace.setText("Spaces:"); jSpinnerInstrCSpaces.setModel(new javax.swing.SpinnerNumberModel(34, 1, 50, 1)); jSpinnerInstrCSpaces.setToolTipText(""); jSpinnerInstrCSpaces.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerInstrCSpacesStateChanged(evt); } }); jLabelInstrCTabs.setText("Tabs:"); jSpinnerInstrCTabs.setModel(new javax.swing.SpinnerNumberModel(0, 0, 8, 1)); jSpinnerInstrCTabs.setToolTipText(""); jSpinnerInstrCTabs.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerInstrCTabsStateChanged(evt); } }); jLabelDataCSep.setText("Comment separator inside data in source:"); jLabelDataCSpace.setText("Spaces:"); jSpinnerDataCSpaces.setModel(new javax.swing.SpinnerNumberModel(34, 1, 70, 1)); jSpinnerDataCSpaces.setToolTipText(""); jSpinnerDataCSpaces.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerDataCSpacesStateChanged(evt); } }); jLabelDataCTabs.setText("Tabs:"); jSpinnerDataCTabs.setModel(new javax.swing.SpinnerNumberModel(0, 0, 8, 1)); jSpinnerDataCTabs.setToolTipText(""); jSpinnerDataCTabs.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerDataCTabsStateChanged(evt); } }); jCheckBoxAllowUtf.setText("Allow UTF character in text/char definitions"); jCheckBoxAllowUtf.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxAllowUtfActionPerformed(evt); } }); jCheckBoxAllowSIDFreq.setSelected(true); jCheckBoxAllowSIDFreq.setText("Use SID frequency catcher:"); jCheckBoxAllowSIDFreq.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxAllowSIDFreqActionPerformed(evt); } }); jCheckBoxMarkMemory.setSelected(true); jCheckBoxMarkMemory.setText("Mark memory"); jCheckBoxMarkMemory.setToolTipText("Mark the memory as data if they are of a frequency table"); jCheckBoxMarkMemory.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxMarkMemoryActionPerformed(evt); } }); jCheckBoxSetLabels.setSelected(true); jCheckBoxSetLabels.setText("Set labels"); jCheckBoxSetLabels.setToolTipText("Set the labels for the memory area catched"); jCheckBoxSetLabels.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxSetLabelsActionPerformed(evt); } }); jCheckBoxSetComment.setSelected(true); jCheckBoxSetComment.setText("Set comments"); jCheckBoxSetComment.setToolTipText("Set comments about A4 frequency"); jCheckBoxSetComment.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxSetCommentActionPerformed(evt); } }); jCheckBoxNotUsePSID.setText("Did not create PSID labels"); jCheckBoxNotUsePSID.setToolTipText("Not create the PSID init e play labels"); jCheckBoxNotUsePSID.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxNotUsePSIDActionPerformed(evt); } }); jCheckBoxCreatePSID.setSelected(true); jCheckBoxCreatePSID.setText("Create PSID header:"); jCheckBoxCreatePSID.setToolTipText("For PSID it creates header. Removing this will break binary recreation from source"); jCheckBoxCreatePSID.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxCreatePSIDActionPerformed(evt); } }); jTextAreaHeather.setColumns(20); jTextAreaHeather.setRows(5); jScrollPaneHeather.setViewportView(jTextAreaHeather); buttonGroupHeather.add(jRadioButtonCustom); jRadioButtonCustom.setText("Custom (below):"); jRadioButtonCustom.setToolTipText("Insert the custom text"); jRadioButtonCustom.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCustomItemStateChanged(evt); } }); buttonGroupHeather.add(jRadioButtonStandard); jRadioButtonStandard.setSelected(true); jRadioButtonStandard.setText("Standard"); jRadioButtonStandard.setToolTipText("Use standard heather with program and version"); jRadioButtonStandard.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonStandardItemStateChanged(evt); } }); buttonGroupHeather.add(jRadioButtonNone); jRadioButtonNone.setText("None"); jRadioButtonNone.setToolTipText("Don't use any heather"); jRadioButtonNone.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonNoneItemStateChanged(evt); } }); jLabelHeather.setText("Source header:"); jLabelHeather.setToolTipText(""); jCheckBoxRepositionate.setText("Repositionate memory from preview after compilation"); jCheckBoxRepositionate.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxRepositionateActionPerformed(evt); } }); jCheckBoxPedantic.setText("Allow OK result messages for load/save/apply"); jCheckBoxPedantic.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxPedanticActionPerformed(evt); } }); jCheckBoxVlPatch.setText("A click on VL column allow to patch value directly"); jCheckBoxVlPatch.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVlPatchItemStateChanged(evt); } }); jLabelDataSepOp.setText("Separator from opcode and operand in source:"); jLabelDataSpaceOp.setText("Spaces:"); jSpinnerDataSpacesOp.setModel(new javax.swing.SpinnerNumberModel(2, 0, 15, 1)); jSpinnerDataSpacesOp.setToolTipText(""); jSpinnerDataSpacesOp.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerDataSpacesOpStateChanged(evt); } }); jLabelDataTabsOp.setText("Tabs:"); jSpinnerDataTabsOp.setModel(new javax.swing.SpinnerNumberModel(0, 0, 8, 1)); jSpinnerDataTabsOp.setToolTipText(""); jSpinnerDataTabsOp.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerDataTabsOpStateChanged(evt); } }); jLabelFontSize.setText("Font size for editor:"); jLabelFontSizePreview.setText("Preview:"); jSpinnerSizePreview.setModel(new javax.swing.SpinnerNumberModel(12, 6, 78, 1)); jSpinnerSizePreview.setToolTipText(""); jSpinnerSizePreview.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerSizePreviewStateChanged(evt); } }); jLabelFontSizeSource.setText("Source:"); jSpinnerSizeSource.setModel(new javax.swing.SpinnerNumberModel(12, 6, 78, 1)); jSpinnerSizeSource.setToolTipText(""); jSpinnerSizeSource.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerSizeSourceStateChanged(evt); } }); jSeparatorSourceHeder.setOrientation(javax.swing.SwingConstants.VERTICAL); jCheckBoxCreateSAP.setSelected(true); jCheckBoxCreateSAP.setText("Create SAP header:"); jCheckBoxCreateSAP.setToolTipText("For Atari SAP it creates header. Removing this will break binary recreation from source"); jCheckBoxCreateSAP.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxCreateSAPActionPerformed(evt); } }); jCheckBoxNotUseSAP.setText("Did not create SAP labels"); jCheckBoxNotUseSAP.setToolTipText("Not create the SAP init e play labels"); jCheckBoxNotUseSAP.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxNotUseSAPActionPerformed(evt); } }); jLabelDotsType.setText("Type of dots (sprite/char) in comment:"); buttonGroupDotsType.add(jRadioButtonDotsValueAscii); jRadioButtonDotsValueAscii.setText("ASCII"); jRadioButtonDotsValueAscii.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDotsValueAsciiItemStateChanged(evt); } }); buttonGroupDotsType.add(jRadioButtonDotsValueUtf); jRadioButtonDotsValueUtf.setSelected(true); jRadioButtonDotsValueUtf.setText("UTF16"); jRadioButtonDotsValueUtf.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDotsValueUtfItemStateChanged(evt); } }); jCheckBoxNoUndocumented.setText("Code with undocument opcodes are forced to be of data type"); jCheckBoxNoUndocumented.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxNoUndocumentedActionPerformed(evt); } }); jCheckBoxChooserIcon.setText("Project file chooser shows colored icons based onto % of disassembly"); jCheckBoxChooserIcon.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxChooserIconActionPerformed(evt); } }); jCheckBoxShowMiniature.setText("Show miniature scrollbars"); jCheckBoxShowMiniature.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxShowMiniatureActionPerformed(evt); } }); jLabelTmpPathSidId.setText("SIDid configuration file:"); jTextFieldTmpPathSidId.setEditable(false); jButtonBrowseSidId.setText("Browse"); jButtonBrowseSidId.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonBrowseSidIdActionPerformed(evt); } }); jCheckBoxShowSidId.setText("Show SidId player information"); jCheckBoxShowSidId.setToolTipText("For Atari SAP it creates header. Removing this will break binary recreation from source"); jCheckBoxShowSidId.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxShowSidIdActionPerformed(evt); } }); javax.swing.GroupLayout jPanelPreviewLayout = new javax.swing.GroupLayout(jPanelPreview); jPanelPreview.setLayout(jPanelPreviewLayout); jPanelPreviewLayout.setHorizontalGroup( jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addGap(6, 6, 6) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addComponent(jCheckBoxUbEdit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(179, 179, 179)) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addComponent(jCheckBoxUlEdit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(220, 220, 220)) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addComponent(jCheckBoxDcErase, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(145, 145, 145)) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addComponent(jCheckBoxDlErase, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(176, 176, 176)) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addComponent(jCheckBoxVlPatch, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(164, 164, 164)) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addComponent(jCheckBoxLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(190, 190, 190)) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addComponent(jCheckBoxForceCompilation, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(216, 216, 216)) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addComponent(jCheckBoxUcEdit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(189, 189, 189)) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addComponent(jCheckBoxUndefinedCode, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(151, 151, 151)) .addComponent(jCheckBoxShowMiniature, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxChooserIcon, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addComponent(jCheckBoxRepositionate, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(94, 94, 94)) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addComponent(jCheckBoxPedantic, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(137, 137, 137)) .addComponent(jCheckBoxNoUndocumented, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addComponent(jCheckBoxAllowUtf, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(154, 154, 154))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSeparatorSourceHeder, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18, Short.MAX_VALUE) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addComponent(jRadioButtonStandard) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonNone) .addGap(68, 68, 68)) .addComponent(jLabelHeather, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 269, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonCustom, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPaneHeather)) .addGap(39, 39, 39)) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelIllegalOpcodeStyle, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelLanguage, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelLanguage1, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDotsType, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jRadioButtonLangEnglish, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonMemoryValueHex, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jRadioButtonStyle1) .addComponent(jRadioButtonDotsValueAscii, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addComponent(jRadioButtonStyle2, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jRadioButtonStyle3)) .addComponent(jRadioButtonLangItalian) .addComponent(jRadioButtonMemoryValueChar) .addComponent(jRadioButtonDotsValueUtf)) .addGap(34, 34, 34)) .addComponent(jSeparator2) .addComponent(jSeparator1) .addComponent(jSeparatorRadioButtons) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addComponent(jLabelAggregate, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelMaxByte, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelMaxTribyte, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jLabelMaxAddress, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelMaxSwapped, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(10, 10, 10) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSpinnerMaxSwappedAggregate, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSpinnerMaxTribyteAggregate, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSpinnerMaxByteAggregate, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSpinnerMaxAddressAggregate, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(24, 24, 24) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabelMaxText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelMaxLong, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelMaxWord, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelMaxStackWord, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jSpinnerMaxWordAggregate) .addComponent(jSpinnerMaxLongAggregate) .addComponent(jSpinnerMaxStackWordAggregate) .addComponent(jSpinnerMaxTextAggregate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBoxAllowSIDFreq, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxShowSidId, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxCreateSAP, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addGap(120, 120, 120) .addComponent(jCheckBoxNotUsePSID, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addGap(120, 120, 120) .addComponent(jCheckBoxMarkMemory) .addGap(18, 18, 18) .addComponent(jCheckBoxSetLabels)) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addGap(120, 120, 120) .addComponent(jCheckBoxNotUseSAP, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addGap(340, 340, 340) .addComponent(jCheckBoxSetComment)))) .addComponent(jCheckBoxCreatePSID, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelTmpPath) .addComponent(jLabelTmpPathSidId)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jTextFieldTmpPath, javax.swing.GroupLayout.DEFAULT_SIZE, 320, Short.MAX_VALUE) .addComponent(jTextFieldTmpPathSidId)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jButtonBrowse) .addComponent(jButtonBrowseSidId, javax.swing.GroupLayout.Alignment.TRAILING))) .addComponent(jCheckBoxErasePlus, javax.swing.GroupLayout.PREFERRED_SIZE, 610, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelMaxLength, javax.swing.GroupLayout.PREFERRED_SIZE, 381, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabelSIDfreqHi, javax.swing.GroupLayout.DEFAULT_SIZE, 375, Short.MAX_VALUE) .addComponent(jLabelSIDfreqLo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelPSIDplaysound, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(jLabelPSIDinitsong, javax.swing.GroupLayout.PREFERRED_SIZE, 381, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(24, 24, 24) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTextFieldSidFreqHi, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextFieldSidFreqLo, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextFieldPlaySound, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextFieldInitSongs, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSpinnerMaxLength, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelDataSepOp, javax.swing.GroupLayout.PREFERRED_SIZE, 381, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabelDataCSep, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelInstrCSep, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelDataSep, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelInstrSep, javax.swing.GroupLayout.PREFERRED_SIZE, 381, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabelFontSize)) .addGap(24, 24, 24) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelFontSizePreview, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDataSpaceOp, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDataCSpace, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelInstrCSpace, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDataSpace, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelInstrSpace, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGap(18, 18, 18) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSpinnerInstrCSpaces, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSpinnerDataSpaces, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSpinnerInstrSpaces, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSpinnerDataCSpaces, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSpinnerDataSpacesOp, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSpinnerSizePreview, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(24, 24, 24) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabelFontSizeSource, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelDataTabsOp, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelDataCTabs, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelInstrCTabs, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelDataTabs, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelInstrTabs, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSpinnerSizeSource, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSpinnerInstrCTabs) .addComponent(jSpinnerDataTabs) .addComponent(jSpinnerInstrTabs) .addComponent(jSpinnerDataCTabs, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSpinnerDataTabsOp, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jCheckBoxOpcodeFormattingPreview, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxOpcodeFormattingSource, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxEraseDComm, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addContainerGap()))) ); jPanelPreviewLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jSpinnerDataCTabs, jSpinnerDataTabs, jSpinnerDataTabsOp, jSpinnerInstrCTabs, jSpinnerInstrTabs, jSpinnerSizeSource}); jPanelPreviewLayout.setVerticalGroup( jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addContainerGap() .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelIllegalOpcodeStyle) .addComponent(jRadioButtonStyle1) .addComponent(jRadioButtonStyle2) .addComponent(jRadioButtonStyle3)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelLanguage) .addComponent(jRadioButtonLangEnglish) .addComponent(jRadioButtonLangItalian)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelLanguage1) .addComponent(jRadioButtonMemoryValueHex) .addComponent(jRadioButtonMemoryValueChar)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelDotsType) .addComponent(jRadioButtonDotsValueAscii) .addComponent(jRadioButtonDotsValueUtf)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSeparatorRadioButtons, javax.swing.GroupLayout.PREFERRED_SIZE, 3, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxOpcodeFormattingPreview) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxOpcodeFormattingSource) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxEraseDComm) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxErasePlus) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBoxUndefinedCode) .addComponent(jLabelHeather)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonNone, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jCheckBoxUcEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonStandard))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jCheckBoxUbEdit) .addComponent(jRadioButtonCustom)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanelPreviewLayout.createSequentialGroup() .addComponent(jCheckBoxUlEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxDcErase) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxDlErase) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVlPatch) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxForceCompilation)) .addComponent(jScrollPaneHeather))) .addComponent(jSeparatorSourceHeder)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxAllowUtf) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxRepositionate) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPedantic) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxNoUndocumented) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxChooserIcon) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxShowMiniature) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jCheckBoxNotUsePSID) .addComponent(jCheckBoxCreatePSID)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jCheckBoxNotUseSAP) .addComponent(jCheckBoxCreateSAP)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxShowSidId) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jCheckBoxAllowSIDFreq) .addComponent(jCheckBoxMarkMemory) .addComponent(jCheckBoxSetLabels) .addComponent(jCheckBoxSetComment)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 6, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelAggregate, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelPreviewLayout.createSequentialGroup() .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelMaxByte) .addComponent(jSpinnerMaxByteAggregate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelMaxWord) .addComponent(jSpinnerMaxWordAggregate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelMaxTribyte) .addComponent(jSpinnerMaxTribyteAggregate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelMaxLong) .addComponent(jSpinnerMaxLongAggregate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelMaxSwapped) .addComponent(jSpinnerMaxSwappedAggregate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelMaxText) .addComponent(jSpinnerMaxTextAggregate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelMaxAddress) .addComponent(jSpinnerMaxAddressAggregate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelMaxStackWord) .addComponent(jSpinnerMaxStackWordAggregate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGap(5, 5, 5) .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jSpinnerMaxLength, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelMaxLength)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelPSIDinitsong) .addComponent(jTextFieldInitSongs, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelPSIDplaysound) .addComponent(jTextFieldPlaySound, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelSIDfreqLo) .addComponent(jTextFieldSidFreqLo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelSIDfreqHi) .addComponent(jTextFieldSidFreqHi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelInstrSep) .addComponent(jLabelInstrSpace) .addComponent(jSpinnerInstrSpaces, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelInstrTabs) .addComponent(jSpinnerInstrTabs, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDataSep) .addComponent(jLabelDataSpace) .addComponent(jSpinnerDataSpaces, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDataTabs) .addComponent(jSpinnerDataTabs, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelInstrCSep) .addComponent(jLabelInstrCSpace) .addComponent(jSpinnerInstrCSpaces, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelInstrCTabs) .addComponent(jSpinnerInstrCTabs, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDataCSep) .addComponent(jLabelDataCSpace) .addComponent(jSpinnerDataCSpaces, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDataCTabs) .addComponent(jSpinnerDataCTabs, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelDataSepOp) .addComponent(jLabelDataSpaceOp) .addComponent(jSpinnerDataSpacesOp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelDataTabsOp) .addComponent(jSpinnerDataTabsOp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jLabelFontSize) .addComponent(jLabelFontSizePreview) .addComponent(jSpinnerSizePreview, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelFontSizeSource) .addComponent(jSpinnerSizeSource, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelTmpPath) .addComponent(jTextFieldTmpPath, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButtonBrowse)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelTmpPathSidId) .addComponent(jTextFieldTmpPathSidId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButtonBrowseSidId))) ); jScrollPanePreview.setViewportView(jPanelPreview); jTabbedPaneOption.addTab("Option", jScrollPanePreview); jLabelautocomment.setText("Automatic add comments to those known locations:"); jCheckBoxC64ZeroPage.setSelected(true); jCheckBoxC64ZeroPage.setText("Zero page area ($00..$FF)"); jCheckBoxC64ZeroPage.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC64ZeroPageItemStateChanged(evt); } }); jCheckBoxC64StackArea.setSelected(true); jCheckBoxC64StackArea.setText("Stack area ($100..$1FF)"); jCheckBoxC64StackArea.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC64StackAreaItemStateChanged(evt); } }); jCheckBoxC64_200Area.setSelected(true); jCheckBoxC64_200Area.setText("Support area for BASIC/KERNAL part 1 ($200..$2FF)"); jCheckBoxC64_200Area.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC64_200AreaItemStateChanged(evt); } }); jCheckBoxC64_300Area.setSelected(true); jCheckBoxC64_300Area.setText("Support area for BASIC/KERNAL part 2 ($300..$3FF)"); jCheckBoxC64_300Area.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC64_300AreaItemStateChanged(evt); } }); jCheckBoxC64ScreenArea.setSelected(true); jCheckBoxC64ScreenArea.setText("Screen area ($400..$7FF)"); jCheckBoxC64ScreenArea.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC64ScreenAreaItemStateChanged(evt); } }); jCheckBoxC64FreeArea.setText("BASIC (free) area ($800..$9FFF)"); jCheckBoxC64FreeArea.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC64FreeAreaItemStateChanged(evt); } }); jCheckBoxC64BasicRom.setSelected(true); jCheckBoxC64BasicRom.setText("BASIC ROM ($A000..$BFFF)"); jCheckBoxC64BasicRom.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC64BasicRomItemStateChanged(evt); } }); jCheckBoxC64FreeRam.setSelected(true); jCheckBoxC64FreeRam.setText("Free Ram ($C000..$CFFF)"); jCheckBoxC64FreeRam.setEnabled(false); jCheckBoxC64FreeRam.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC64FreeRamItemStateChanged(evt); } }); jCheckC64BoxVicII.setSelected(true); jCheckC64BoxVicII.setText("VIC II chip ($D000..$D3FF)"); jCheckC64BoxVicII.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckC64BoxVicIIItemStateChanged(evt); } }); jCheckC64BoxSid.setSelected(true); jCheckC64BoxSid.setText("SID chip ($D400..$D7FF)"); jCheckC64BoxSid.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckC64BoxSidItemStateChanged(evt); } }); jCheckBoxC64Color.setSelected(true); jCheckBoxC64Color.setText("Color RAM ($D800..$DBFF)"); jCheckBoxC64Color.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC64ColorItemStateChanged(evt); } }); jCheckBoxC64Cia1.setSelected(true); jCheckBoxC64Cia1.setText("CIA 1 ($DC00..$DCFF)"); jCheckBoxC64Cia1.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC64Cia1ItemStateChanged(evt); } }); jCheckBoxC64Cia2.setSelected(true); jCheckBoxC64Cia2.setText("CIA 2 ($DD00..$DDFF)"); jCheckBoxC64Cia2.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC64Cia2ItemStateChanged(evt); } }); jCheckBoxC64KernalRom.setSelected(true); jCheckBoxC64KernalRom.setText("KERNAL ROM ($E000..$FFFF)"); jCheckBoxC64KernalRom.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC64KernalRomItemStateChanged(evt); } }); javax.swing.GroupLayout jPanelC64CommLayout = new javax.swing.GroupLayout(jPanelC64Comm); jPanelC64Comm.setLayout(jPanelC64CommLayout); jPanelC64CommLayout.setHorizontalGroup( jPanelC64CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelC64CommLayout.createSequentialGroup() .addContainerGap() .addGroup(jPanelC64CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jCheckBoxC64ScreenArea, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC64KernalRom, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC64Cia1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC64Color, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckC64BoxSid, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckC64BoxVicII, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC64FreeRam, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC64FreeArea, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC64_200Area, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE) .addComponent(jCheckBoxC64StackArea, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC64ZeroPage, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC64_300Area, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC64BasicRom, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC64Cia2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanelC64CommLayout.setVerticalGroup( jPanelC64CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelC64CommLayout.createSequentialGroup() .addContainerGap() .addComponent(jCheckBoxC64ZeroPage) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC64StackArea) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC64_200Area) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC64_300Area) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC64ScreenArea) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC64FreeArea) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC64BasicRom) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC64FreeRam) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckC64BoxVicII) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckC64BoxSid) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC64Color) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC64Cia1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC64Cia2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC64KernalRom) .addContainerGap(201, Short.MAX_VALUE)) ); jTabbedPaneComm.addTab("C64", jPanelC64Comm); jCheckBoxC1541ZeroPage.setSelected(true); jCheckBoxC1541ZeroPage.setText("Zero page area ($00..$FF)"); jCheckBoxC1541ZeroPage.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC1541ZeroPageItemStateChanged(evt); } }); jCheckBoxC1541StackArea.setSelected(true); jCheckBoxC1541StackArea.setText("Stack area ($100..$1FF)"); jCheckBoxC1541StackArea.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC1541StackAreaItemStateChanged(evt); } }); jCheckBoxC1541_200Area.setSelected(true); jCheckBoxC1541_200Area.setText("Support area for KERNAL ($200..$2FF)"); jCheckBoxC1541_200Area.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC1541_200AreaItemStateChanged(evt); } }); jCheckBoxC1541Via1.setSelected(true); jCheckBoxC1541Via1.setText("VIA #1 ($1800..$180F)"); jCheckBoxC1541Via1.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC1541Via1ItemStateChanged(evt); } }); jCheckBoxC1541Via2.setSelected(true); jCheckBoxC1541Via2.setText("VIA #2 ($1C00..$1C0F)"); jCheckBoxC1541Via2.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC1541Via2ItemStateChanged(evt); } }); jCheckBoxC1541Kernal.setSelected(true); jCheckBoxC1541Kernal.setText("Kernal ($C000..$FFFF)"); jCheckBoxC1541Kernal.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC1541KernalItemStateChanged(evt); } }); jCheckBoxC1541Buffer0.setText("Buffer #0 ($300..$3FF)"); jCheckBoxC1541Buffer0.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC1541Buffer0ItemStateChanged(evt); } }); jCheckBoxC1541Buffer1.setText("Buffer #1 ($400..$4FF)"); jCheckBoxC1541Buffer1.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC1541Buffer1ItemStateChanged(evt); } }); jCheckBoxC1541Buffer2.setText("Buffer #2 ($500..$5FF)"); jCheckBoxC1541Buffer2.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC1541Buffer2ItemStateChanged(evt); } }); jCheckBoxC1541Buffer3.setText("Buffer #3 ($600..$6FF)"); jCheckBoxC1541Buffer3.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC1541Buffer3ItemStateChanged(evt); } }); jCheckBoxC1541Buffer4.setText("Buffer #4 ($700..$7FF)"); jCheckBoxC1541Buffer4.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC1541Buffer4ItemStateChanged(evt); } }); javax.swing.GroupLayout jPanelC1541CommLayout = new javax.swing.GroupLayout(jPanelC1541Comm); jPanelC1541Comm.setLayout(jPanelC1541CommLayout); jPanelC1541CommLayout.setHorizontalGroup( jPanelC1541CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelC1541CommLayout.createSequentialGroup() .addContainerGap() .addGroup(jPanelC1541CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jCheckBoxC1541Buffer4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC1541Buffer3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC1541Buffer2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC1541Buffer1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC1541Buffer0, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC1541Kernal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC1541Via2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC1541Via1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC1541_200Area, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC1541StackArea, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC1541ZeroPage, javax.swing.GroupLayout.DEFAULT_SIZE, 398, Short.MAX_VALUE)) .addGap(379, 379, 379)) ); jPanelC1541CommLayout.setVerticalGroup( jPanelC1541CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelC1541CommLayout.createSequentialGroup() .addContainerGap() .addComponent(jCheckBoxC1541ZeroPage) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC1541StackArea) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC1541_200Area) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC1541Buffer0) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC1541Buffer1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC1541Buffer2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC1541Buffer3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC1541Buffer4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC1541Via1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC1541Via2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC1541Kernal) .addContainerGap(276, Short.MAX_VALUE)) ); jTabbedPaneComm.addTab("C1541", jPanelC1541Comm); jCheckBoxC128ZeroPage.setSelected(true); jCheckBoxC128ZeroPage.setText("Zero page area ($00..$FF)"); jCheckBoxC128ZeroPage.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128ZeroPageItemStateChanged(evt); } }); jCheckBoxC128StackArea.setSelected(true); jCheckBoxC128StackArea.setText("Stack area ($100..$1FF)"); jCheckBoxC128StackArea.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128StackAreaItemStateChanged(evt); } }); jCheckBoxC128_300Area.setSelected(true); jCheckBoxC128_300Area.setText("Support area for BASIC/KERNAL part 2 ($300..$3FF)"); jCheckBoxC128_300Area.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128_300AreaItemStateChanged(evt); } }); jCheckBoxC128_200Area.setSelected(true); jCheckBoxC128_200Area.setText("Support area for BASIC/KERNAL part 1 ($200..$2FF)"); jCheckBoxC128_200Area.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128_200AreaItemStateChanged(evt); } }); jCheckBoxC128ScreenArea.setSelected(true); jCheckBoxC128ScreenArea.setText("Screen area ($400..$7E7)"); jCheckBoxC128ScreenArea.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128ScreenAreaItemStateChanged(evt); } }); jCheckBoxC128UserBasic.setSelected(true); jCheckBoxC128UserBasic.setText("User BASIC area ($7E8..$12FF)"); jCheckBoxC128UserBasic.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128UserBasicItemStateChanged(evt); } }); jCheckBoxC128AppProgArea.setText("Application program area ($1300..$1BFF)"); jCheckBoxC128AppProgArea.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128AppProgAreaItemStateChanged(evt); } }); jCheckBoxC128VideoColor.setText("Video Color ($1C00..$1FFF)"); jCheckBoxC128VideoColor.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128VideoColorItemStateChanged(evt); } }); jCheckBoxC128ScreenMem.setText("Screen memory ($2000..$3FFF)"); jCheckBoxC128ScreenMem.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128ScreenMemItemStateChanged(evt); } }); jCheckBoxC128Color.setSelected(true); jCheckBoxC128Color.setText("Color RAM ($D800..$DBFF)"); jCheckBoxC128Color.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128ColorItemStateChanged(evt); } }); jCheckBoxC128BasicRom.setSelected(true); jCheckBoxC128BasicRom.setText("BASIC ROM ($4000..$CFFF)"); jCheckBoxC128BasicRom.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128BasicRomItemStateChanged(evt); } }); jCheckBoxC128VicII.setSelected(true); jCheckBoxC128VicII.setText("VIC II chip ($D000..$D3FF)"); jCheckBoxC128VicII.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128VicIIItemStateChanged(evt); } }); jCheckBoxC128Sid.setSelected(true); jCheckBoxC128Sid.setText("SID chip ($D400..$D4FF)"); jCheckBoxC128Sid.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128SidItemStateChanged(evt); } }); jCheckBoxC128MMU.setSelected(true); jCheckBoxC128MMU.setText("MMU ($D500..$D50B)"); jCheckBoxC128MMU.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128MMUItemStateChanged(evt); } }); jCheckBoxC128VDC.setSelected(true); jCheckBoxC128VDC.setText("VDC ($D600..$D624)"); jCheckBoxC128VDC.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128VDCItemStateChanged(evt); } }); jCheckBoxC128Cia1.setSelected(true); jCheckBoxC128Cia1.setText("CIA 1 ($DC00..$DCFF)"); jCheckBoxC128Cia1.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128Cia1ItemStateChanged(evt); } }); jCheckBoxC128Cia2.setSelected(true); jCheckBoxC128Cia2.setText("CIA 2 ($DD00..$DDFF)"); jCheckBoxC128Cia2.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128Cia2ItemStateChanged(evt); } }); jCheckBoxC128DMA.setSelected(true); jCheckBoxC128DMA.setText("DMA Controller ($DF00..$DF0A)"); jCheckBoxC128DMA.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128DMAItemStateChanged(evt); } }); jCheckBoxC128KernalRom.setSelected(true); jCheckBoxC128KernalRom.setText("KERNAL ROM ($E000..$FFFF)"); jCheckBoxC128KernalRom.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxC128KernalRomItemStateChanged(evt); } }); javax.swing.GroupLayout jPanelC128CommLayout = new javax.swing.GroupLayout(jPanelC128Comm); jPanelC128Comm.setLayout(jPanelC128CommLayout); jPanelC128CommLayout.setHorizontalGroup( jPanelC128CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelC128CommLayout.createSequentialGroup() .addContainerGap() .addGroup(jPanelC128CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBoxC128ZeroPage, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC128StackArea, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC128_200Area, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC128_300Area, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC128ScreenArea, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC128UserBasic, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC128AppProgArea, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC128VideoColor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC128ScreenMem, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC128BasicRom, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC128VicII) .addComponent(jCheckBoxC128Sid, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC128MMU, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC128VDC, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGroup(jPanelC128CommLayout.createSequentialGroup() .addGroup(jPanelC128CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelC128CommLayout.createSequentialGroup() .addGap(8, 8, 8) .addComponent(jCheckBoxC128Color, javax.swing.GroupLayout.PREFERRED_SIZE, 378, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanelC128CommLayout.createSequentialGroup() .addContainerGap() .addGroup(jPanelC128CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jCheckBoxC128Cia1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC128Cia2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC128DMA, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxC128KernalRom, javax.swing.GroupLayout.PREFERRED_SIZE, 360, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addContainerGap(399, Short.MAX_VALUE)) ); jPanelC128CommLayout.setVerticalGroup( jPanelC128CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelC128CommLayout.createSequentialGroup() .addContainerGap() .addComponent(jCheckBoxC128ZeroPage) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC128StackArea) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC128_200Area) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC128_300Area) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC128ScreenArea) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC128UserBasic) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC128AppProgArea) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC128VideoColor) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC128ScreenMem) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC128BasicRom) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC128VicII) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC128Sid) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC128MMU) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC128VDC) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC128Color) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC128Cia1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC128Cia2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC128DMA) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxC128KernalRom) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jTabbedPaneComm.addTab("C128", jPanelC128Comm); jCheckBoxVic20StackArea.setSelected(true); jCheckBoxVic20StackArea.setText("Stack area ($100..$1FF)"); jCheckBoxVic20StackArea.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20StackAreaItemStateChanged(evt); } }); jCheckBoxVic20ZeroPage.setSelected(true); jCheckBoxVic20ZeroPage.setText("Zero page area ($00..$FF)"); jCheckBoxVic20ZeroPage.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20ZeroPageItemStateChanged(evt); } }); jCheckBoxVic20_200Area.setSelected(true); jCheckBoxVic20_200Area.setText("Support area for BASIC/KERNAL part 1 ($200..$2FF)"); jCheckBoxVic20_200Area.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20_200AreaItemStateChanged(evt); } }); jCheckBoxVic20_300Area.setSelected(true); jCheckBoxVic20_300Area.setText("Support area for BASIC/KERNAL part 2 ($300..$3FF)"); jCheckBoxVic20_300Area.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20_300AreaItemStateChanged(evt); } }); jCheckBoxVic20_400Area.setSelected(true); jCheckBoxVic20_400Area.setText("Support area for BASIC/KERNAL part 3 ($400..$4FF)"); jCheckBoxVic20_400Area.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20_400AreaItemStateChanged(evt); } }); jCheckBoxVic20Vic.setSelected(true); jCheckBoxVic20Vic.setText("VIC ($9000..$900F)"); jCheckBoxVic20Vic.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20VicItemStateChanged(evt); } }); jCheckBoxVic20Via1.setSelected(true); jCheckBoxVic20Via1.setText("Via #1 ($9010..$901F)"); jCheckBoxVic20Via1.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20Via1ItemStateChanged(evt); } }); jCheckBoxVic20Via2.setSelected(true); jCheckBoxVic20Via2.setText("Via #2 ($9020..$902F)"); jCheckBoxVic20Via2.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20Via2ItemStateChanged(evt); } }); jCheckBoxVic20UserBasic.setText("User BASIC area ($1000..$1DFF)"); jCheckBoxVic20UserBasic.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20UserBasicItemStateChanged(evt); } }); jCheckBoxVic20Screen.setText("Screen memory ($1E00..$1FFF)"); jCheckBoxVic20Screen.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20ScreenItemStateChanged(evt); } }); jCheckBoxVic20_8kExp1.setText("8K expansion block 1 ($2000..$3FFF)"); jCheckBoxVic20_8kExp1.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20_8kExp1ItemStateChanged(evt); } }); jCheckBoxVic20_8kExp2.setText("8K expansion block 2 ($4000..$5FFF)"); jCheckBoxVic20_8kExp2.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20_8kExp2ItemStateChanged(evt); } }); jCheckBoxVic20_8kExp3.setText("8K expansion block 3 ($6000..$7FFF)"); jCheckBoxVic20_8kExp3.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20_8kExp3ItemStateChanged(evt); } }); jCheckBoxVic20Character.setText("4K character ($8000..$8FFF)"); jCheckBoxVic20Character.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20CharacterItemStateChanged(evt); } }); jCheckBoxVic20Color.setText("Color RAM ($9400..$97FF)"); jCheckBoxVic20Color.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20ColorItemStateChanged(evt); } }); jCheckBoxVic20Block2.setText("I/O block 2 ($9800..$9BFF)"); jCheckBoxVic20Block2.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20Block2ItemStateChanged(evt); } }); jCheckBoxVic20Block3.setText("I/O block 3 ($9C00..$9FFF)"); jCheckBoxVic20Block3.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20Block3ItemStateChanged(evt); } }); jCheckBoxVic20Block4.setText("8K decoded ($A0000..$BFFF)"); jCheckBoxVic20Block4.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20Block4ItemStateChanged(evt); } }); jCheckBoxVic20BasicRom.setSelected(true); jCheckBoxVic20BasicRom.setText("BASIC ROM ($C0000..$DFFF)"); jCheckBoxVic20BasicRom.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20BasicRomItemStateChanged(evt); } }); jCheckBoxVic20KernalRom.setSelected(true); jCheckBoxVic20KernalRom.setText("KERNAL ROM ($E0000..$FFFF)"); jCheckBoxVic20KernalRom.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxVic20KernalRomItemStateChanged(evt); } }); javax.swing.GroupLayout jPanelVic20CommLayout = new javax.swing.GroupLayout(jPanelVic20Comm); jPanelVic20Comm.setLayout(jPanelVic20CommLayout); jPanelVic20CommLayout.setHorizontalGroup( jPanelVic20CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelVic20CommLayout.createSequentialGroup() .addContainerGap() .addGroup(jPanelVic20CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBoxVic20ZeroPage, javax.swing.GroupLayout.PREFERRED_SIZE, 373, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanelVic20CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jCheckBoxVic20StackArea, javax.swing.GroupLayout.PREFERRED_SIZE, 378, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxVic20Color, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 378, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxVic20Via2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 378, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxVic20Via1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 378, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxVic20Vic, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 378, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxVic20Character, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 378, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxVic20_8kExp3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 378, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxVic20_8kExp2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 378, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxVic20_8kExp1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 378, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxVic20Screen, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 378, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxVic20UserBasic, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 378, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxVic20_400Area, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBoxVic20_300Area, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBoxVic20_200Area, javax.swing.GroupLayout.Alignment.LEADING)) .addComponent(jCheckBoxVic20Block2, javax.swing.GroupLayout.PREFERRED_SIZE, 384, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanelVic20CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBoxVic20Block3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 384, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxVic20Block4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 384, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxVic20BasicRom, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 384, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxVic20KernalRom, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 384, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(393, Short.MAX_VALUE)) ); jPanelVic20CommLayout.setVerticalGroup( jPanelVic20CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelVic20CommLayout.createSequentialGroup() .addContainerGap() .addComponent(jCheckBoxVic20ZeroPage) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20StackArea) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20_200Area) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20_300Area) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20_400Area) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20UserBasic) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20Screen) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20_8kExp1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20_8kExp2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20_8kExp3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20Character) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20Vic) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20Via1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20Via2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20Color) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20Block2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20Block3, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20Block4, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20BasicRom, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxVic20KernalRom, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jTabbedPaneComm.addTab("Vic20", jPanelVic20Comm); jCheckBoxPlus4ZeroPage.setSelected(true); jCheckBoxPlus4ZeroPage.setText("Zero page area ($00..$FF)"); jCheckBoxPlus4ZeroPage.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4ZeroPageItemStateChanged(evt); } }); jCheckBoxPlus4StackArea.setSelected(true); jCheckBoxPlus4StackArea.setText("Stack area ($100..$1FF)"); jCheckBoxPlus4StackArea.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4StackAreaItemStateChanged(evt); } }); jCheckBoxPlus4_200Area.setSelected(true); jCheckBoxPlus4_200Area.setText("Support area for BASIC/KERNAL part 1 ($200..$2FF)"); jCheckBoxPlus4_200Area.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4_200AreaItemStateChanged(evt); } }); jCheckBoxPlus4_300Area.setSelected(true); jCheckBoxPlus4_300Area.setText("Support area for BASIC/KERNAL part 2 ($300..$3FF)"); jCheckBoxPlus4_300Area.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4_300AreaItemStateChanged(evt); } }); jCheckBoxPlus4_400Area.setSelected(true); jCheckBoxPlus4_400Area.setText("Support area for BASIC/KERNAL part 3 ($400..$4FF)"); jCheckBoxPlus4_400Area.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4_400AreaItemStateChanged(evt); } }); jCheckBoxPlus4_500Area.setSelected(true); jCheckBoxPlus4_500Area.setText("Support area for BASIC/KERNAL part 4 ($500..$5FF)"); jCheckBoxPlus4_500Area.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4_500AreaItemStateChanged(evt); } }); jCheckBoxPlus4_600Area.setSelected(true); jCheckBoxPlus4_600Area.setText("Support area for BASIC/KERNAL part 5 ($600..$6FF)"); jCheckBoxPlus4_600Area.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4_600AreaItemStateChanged(evt); } }); jCheckBoxPlus4_700Area.setSelected(true); jCheckBoxPlus4_700Area.setText("Support area for BASIC/KERNAL part 6 ($700..$7FF)"); jCheckBoxPlus4_700Area.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4_700AreaItemStateChanged(evt); } }); jCheckBoxPlus4ColorArea.setText("Color memory ($800..$BFF)"); jCheckBoxPlus4ColorArea.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4ColorAreaItemStateChanged(evt); } }); jCheckBoxPlus4VideoArea.setText("Video memory ($C00..$CFF)"); jCheckBoxPlus4VideoArea.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4VideoAreaItemStateChanged(evt); } }); jCheckBoxPlus4BasicRamP.setText("BASIC RAM without graphics ($1000..$17FF)"); jCheckBoxPlus4BasicRamP.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4BasicRamPItemStateChanged(evt); } }); jCheckBoxPlus4Luminance.setText("Luminance ($1800..$1BFF)"); jCheckBoxPlus4Luminance.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4LuminanceItemStateChanged(evt); } }); jCheckBoxPlus4ColorBitmap.setText("Color for bitmap($1C00..$1FFF)"); jCheckBoxPlus4ColorBitmap.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4ColorBitmapItemStateChanged(evt); } }); jCheckBoxPlus4GraphicData.setText("Graphics data ($2000..$3FFF)"); jCheckBoxPlus4GraphicData.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4GraphicDataItemStateChanged(evt); } }); jCheckBoxPlus4BasicRamN.setText("BASIC RAM with graphics ($4000..$7FFF)"); jCheckBoxPlus4BasicRamN.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4BasicRamNItemStateChanged(evt); } }); jCheckBoxPlus4BasicRom.setText("BASIC ROM ($8000..$BFFF)"); jCheckBoxPlus4BasicRom.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4BasicRomItemStateChanged(evt); } }); jCheckBoxPlus4BasicExt.setText("BASIC Expansion ($C000..$CFFF)"); jCheckBoxPlus4BasicExt.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4BasicExtItemStateChanged(evt); } }); jCheckBoxPlus4Caracter.setText("Caracter table ($D000..$DFFF)"); jCheckBoxPlus4Caracter.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4CaracterItemStateChanged(evt); } }); jCheckBoxPlus4Acia.setSelected(true); jCheckBoxPlus4Acia.setText("6551 ACIA ($FD00..$FD0F)"); jCheckBoxPlus4Acia.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4AciaItemStateChanged(evt); } }); jCheckBoxPlus4_6529B_1.setSelected(true); jCheckBoxPlus4_6529B_1.setText("6529B #1 ($FD10..$FD1F)"); jCheckBoxPlus4_6529B_1.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4_6529B_1ItemStateChanged(evt); } }); jCheckBoxPlus4_6529B_2.setSelected(true); jCheckBoxPlus4_6529B_2.setText("6529B #2 ($FD30..$FD3F)"); jCheckBoxPlus4_6529B_2.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4_6529B_2ItemStateChanged(evt); } }); jCheckBoxPlus4Ted.setSelected(true); jCheckBoxPlus4Ted.setText("TED ($FF00..$FF1F)"); jCheckBoxPlus4Ted.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4TedItemStateChanged(evt); } }); jCheckBoxPlus4Kernal.setSelected(true); jCheckBoxPlus4Kernal.setText("Kernal ($FF20..$FFFF)"); jCheckBoxPlus4Kernal.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxPlus4KernalItemStateChanged(evt); } }); javax.swing.GroupLayout jPanelPlus4CommLayout = new javax.swing.GroupLayout(jPanelPlus4Comm); jPanelPlus4Comm.setLayout(jPanelPlus4CommLayout); jPanelPlus4CommLayout.setHorizontalGroup( jPanelPlus4CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelPlus4CommLayout.createSequentialGroup() .addContainerGap() .addGroup(jPanelPlus4CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelPlus4CommLayout.createSequentialGroup() .addGroup(jPanelPlus4CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBoxPlus4Ted, javax.swing.GroupLayout.PREFERRED_SIZE, 382, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxPlus4Kernal, javax.swing.GroupLayout.PREFERRED_SIZE, 382, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxPlus4_6529B_1, javax.swing.GroupLayout.PREFERRED_SIZE, 382, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxPlus4_6529B_2, javax.swing.GroupLayout.PREFERRED_SIZE, 382, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxPlus4Acia, javax.swing.GroupLayout.PREFERRED_SIZE, 382, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(jPanelPlus4CommLayout.createSequentialGroup() .addGroup(jPanelPlus4CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jCheckBoxPlus4_200Area, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxPlus4_600Area, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxPlus4_700Area, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE) .addComponent(jCheckBoxPlus4ColorArea, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE) .addComponent(jCheckBoxPlus4VideoArea, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE) .addComponent(jCheckBoxPlus4BasicRamP, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE) .addComponent(jCheckBoxPlus4Luminance, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE) .addComponent(jCheckBoxPlus4ColorBitmap, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE) .addComponent(jCheckBoxPlus4GraphicData, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE) .addComponent(jCheckBoxPlus4BasicRamN, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE) .addComponent(jCheckBoxPlus4BasicRom, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 382, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxPlus4BasicExt, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 382, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxPlus4Caracter, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 382, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxPlus4_400Area, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxPlus4_500Area, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE) .addComponent(jCheckBoxPlus4ZeroPage, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE) .addComponent(jCheckBoxPlus4StackArea, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxPlus4_300Area, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE)) .addContainerGap(403, Short.MAX_VALUE)))) ); jPanelPlus4CommLayout.setVerticalGroup( jPanelPlus4CommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelPlus4CommLayout.createSequentialGroup() .addContainerGap() .addComponent(jCheckBoxPlus4ZeroPage) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4StackArea) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4_200Area) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4_300Area) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4_400Area) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4_500Area) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4_600Area) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4_700Area) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4ColorArea) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4VideoArea) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4BasicRamP) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4Luminance) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4ColorBitmap) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4GraphicData) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4BasicRamN) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4BasicRom) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4BasicExt) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4Caracter) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4Acia) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4_6529B_1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4_6529B_2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4Ted) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxPlus4Kernal) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jTabbedPaneComm.addTab("Plus4", jPanelPlus4Comm); jCheckBoxAtariKernalRom.setSelected(true); jCheckBoxAtariKernalRom.setText("KERNAL ROM ($D800..$FFFF)"); jCheckBoxAtariKernalRom.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxAtariKernalRomItemStateChanged(evt); } }); jCheckBoxAtariAntic.setSelected(true); jCheckBoxAtariAntic.setText("ANTIC ($D400..$D4FF)"); jCheckBoxAtariAntic.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxAtariAnticItemStateChanged(evt); } }); jCheckBoxAtariPia.setSelected(true); jCheckBoxAtariPia.setText("PIA ($D300..$D3FF)"); jCheckBoxAtariPia.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxAtariPiaItemStateChanged(evt); } }); jCheckBoxAtariPokey.setSelected(true); jCheckBoxAtariPokey.setText("POKEY ($D200..$D2FF)"); jCheckBoxAtariPokey.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxAtariPokeyItemStateChanged(evt); } }); jCheckBoxAtariGtia.setSelected(true); jCheckBoxAtariGtia.setText("GTIA ($D000..$D0FF)"); jCheckBoxAtariGtia.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxAtariGtiaItemStateChanged(evt); } }); jCheckBoxAtariCartridgeA.setSelected(true); jCheckBoxAtariCartridgeA.setText("Cartridge A ($A000..$BFFF)"); jCheckBoxAtariCartridgeA.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxAtariCartridgeAItemStateChanged(evt); } }); jCheckBoxAtariCartridgeB.setSelected(true); jCheckBoxAtariCartridgeB.setText("Cartridge B ($8000..$9FFF)"); jCheckBoxAtariCartridgeB.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxAtariCartridgeBItemStateChanged(evt); } }); jCheckBoxAtariZeroPage.setSelected(true); jCheckBoxAtariZeroPage.setText("Zero page area ($00..$FF)"); jCheckBoxAtariZeroPage.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxAtariZeroPageItemStateChanged(evt); } }); jCheckBoxAtariStackArea.setSelected(true); jCheckBoxAtariStackArea.setText("Stack area ($100..$1FF)"); jCheckBoxAtariStackArea.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxAtariStackAreaItemStateChanged(evt); } }); jCheckBoxAtari200Area.setSelected(true); jCheckBoxAtari200Area.setText("Support area for OS part 1 ($200..$2FF)"); jCheckBoxAtari200Area.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxAtari200AreaItemStateChanged(evt); } }); jCheckBoxAtari300Area.setSelected(true); jCheckBoxAtari300Area.setText("Support area for OS part 2 ($300..$3FF)"); jCheckBoxAtari300Area.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxAtari300AreaItemStateChanged(evt); } }); jCheckBoxAtari400Area.setSelected(true); jCheckBoxAtari400Area.setText("Support area for OS part 3 ($400..$4FF)"); jCheckBoxAtari400Area.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxAtari400AreaItemStateChanged(evt); } }); jCheckBoxAtari500Area.setSelected(true); jCheckBoxAtari500Area.setText("Support area for OS part 4 ($500..$5FF)"); jCheckBoxAtari500Area.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxAtari500AreaItemStateChanged(evt); } }); javax.swing.GroupLayout jPanelAtariCommLayout = new javax.swing.GroupLayout(jPanelAtariComm); jPanelAtariComm.setLayout(jPanelAtariCommLayout); jPanelAtariCommLayout.setHorizontalGroup( jPanelAtariCommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelAtariCommLayout.createSequentialGroup() .addContainerGap() .addGroup(jPanelAtariCommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jCheckBoxAtariKernalRom, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxAtariAntic, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxAtariPia, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxAtariPokey, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxAtariGtia, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxAtariCartridgeA, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxAtariCartridgeB, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxAtari500Area, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxAtari400Area, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxAtari300Area, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxAtari200Area, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxAtariStackArea, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBoxAtariZeroPage, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 366, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(433, Short.MAX_VALUE)) ); jPanelAtariCommLayout.setVerticalGroup( jPanelAtariCommLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelAtariCommLayout.createSequentialGroup() .addContainerGap() .addComponent(jCheckBoxAtariZeroPage) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxAtariStackArea) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxAtari200Area) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxAtari300Area) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxAtari400Area) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxAtari500Area) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxAtariCartridgeB) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxAtariCartridgeA) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxAtariGtia) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxAtariPokey) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxAtariPia) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxAtariAntic) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBoxAtariKernalRom) .addContainerGap(180, Short.MAX_VALUE)) ); jTabbedPaneComm.addTab("Atari", jPanelAtariComm); javax.swing.GroupLayout jPanelCommentLayout = new javax.swing.GroupLayout(jPanelComment); jPanelComment.setLayout(jPanelCommentLayout); jPanelCommentLayout.setHorizontalGroup( jPanelCommentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelCommentLayout.createSequentialGroup() .addContainerGap() .addGroup(jPanelCommentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelCommentLayout.createSequentialGroup() .addComponent(jLabelautocomment, javax.swing.GroupLayout.PREFERRED_SIZE, 396, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) .addComponent(jTabbedPaneComm, javax.swing.GroupLayout.Alignment.TRAILING)) .addContainerGap()) ); jPanelCommentLayout.setVerticalGroup( jPanelCommentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelCommentLayout.createSequentialGroup() .addContainerGap() .addComponent(jLabelautocomment) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTabbedPaneComm, javax.swing.GroupLayout.PREFERRED_SIZE, 588, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jTabbedPaneOption.addTab("Comments", jPanelComment); jLabelAutoComment.setText("Apply the output assembler syntax of:"); jComboBoxAssembler.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jComboBoxAssemblerItemStateChanged(evt); } }); jScrollPaneDasm.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); jScrollPaneDasm.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); jScrollPaneDasm.setViewportView(jDasmPanel); jTabbedPaneAssembler.addTab("Dasm", jScrollPaneDasm); jScrollPaneTMPx.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); jScrollPaneTMPx.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); jScrollPaneTMPx.setViewportView(jTmpxPanel); jTabbedPaneAssembler.addTab("TMPx", jScrollPaneTMPx); jScrollPaneCa65.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); jScrollPaneCa65.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); jScrollPaneCa65.setViewportView(jCa65Panel); jTabbedPaneAssembler.addTab("Ca65", jScrollPaneCa65); jScrollPaneAcme.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); jScrollPaneAcme.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); jScrollPaneAcme.setViewportView(jAcmePanel); jTabbedPaneAssembler.addTab("Acme", jScrollPaneAcme); jScrollPaneKickAssembler.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); jScrollPaneKickAssembler.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); jScrollPaneKickAssembler.setViewportView(jKickPanel); jTabbedPaneAssembler.addTab("KickAssembler", jScrollPaneKickAssembler); jScrollPaneTass64.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); jScrollPaneTass64.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); jScrollPaneTass64.setViewportView(jTass64Panel); jTabbedPaneAssembler.addTab("Tass64", jScrollPaneTass64); jScrollPaneGlass.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); jScrollPaneGlass.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); jScrollPaneGlass.setViewportView(jGlassPanel); jTabbedPaneAssembler.addTab("Glass", jScrollPaneGlass); javax.swing.GroupLayout jPanelDisassemblerLayout = new javax.swing.GroupLayout(jPanelDisassembler); jPanelDisassembler.setLayout(jPanelDisassemblerLayout); jPanelDisassemblerLayout.setHorizontalGroup( jPanelDisassemblerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelDisassemblerLayout.createSequentialGroup() .addContainerGap() .addComponent(jLabelAutoComment, javax.swing.GroupLayout.PREFERRED_SIZE, 312, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jComboBoxAssembler, javax.swing.GroupLayout.PREFERRED_SIZE, 255, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelDisassemblerLayout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jTabbedPaneAssembler, javax.swing.GroupLayout.PREFERRED_SIZE, 814, javax.swing.GroupLayout.PREFERRED_SIZE)) ); jPanelDisassemblerLayout.setVerticalGroup( jPanelDisassemblerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelDisassemblerLayout.createSequentialGroup() .addContainerGap() .addGroup(jPanelDisassemblerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelAutoComment) .addComponent(jComboBoxAssembler, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTabbedPaneAssembler, javax.swing.GroupLayout.DEFAULT_SIZE, 773, Short.MAX_VALUE)) ); jTabbedPaneOption.addTab("Disassembler", jPanelDisassembler); jScrollPaneSidFreq.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jLabelSidFreq.setText("Algorithms to activate for SidFrequency catcher (in the order they are executed):"); jCheckBoxLinearTable.setSelected(true); jCheckBoxLinearTable.setText("Linear table"); jCheckBoxLinearTable.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxLinearTableItemStateChanged(evt); } }); jTextPaneLinearTableLH.setContentType("text/html"); // NOI18N jTextPaneLinearTableLH.setFont(new java.awt.Font("Monospaced", 0, 11)); // NOI18N jTextPaneLinearTableLH.setText("<html>\r\n <head>\r\n\r\n </head>\r\n <body>\r\n <p style=\"margin-top: 0\">\r\n <b> \rlow</b>:<br>\n &nbsp;&nbsp;lo00, lo01, lo02, lo03<br> \n &nbsp;&nbsp;...<br>\n &nbsp;&nbsp;lo5C, lo5D, lo5E, lo5F<br>\n<b>high</b>:<br>\n &nbsp;&nbsp;hi00, hi01, hi02, hi03<br> \n &nbsp;&nbsp;...<br>\n &nbsp;&nbsp;hi5C, hi5D, hi5E, hi5F<br>\n </p>\r\n </body>\r\n</html>\r\n"); jScrollPaneLinearTableLH.setViewportView(jTextPaneLinearTableLH); jTextPaneLinearTableHL.setContentType("text/html"); // NOI18N jTextPaneLinearTableHL.setFont(new java.awt.Font("Monospaced", 0, 11)); // NOI18N jTextPaneLinearTableHL.setText("<html>\r\n <head>\r\n\r\n </head>\r\n <body>\r\n <p style=\"margin-top: 0\">\r\n<b>high</b>:<br>\n &nbsp;&nbsp;hi00, hi01, hi02, hi03<br> \n &nbsp;&nbsp;...<br>\n &nbsp;&nbsp;hi5C, hi5D, hi5E, hi5F<br>\n <b> \rlow</b>:<br>\n &nbsp;&nbsp;lo00, lo01, lo02, lo03<br> \n &nbsp;&nbsp;...<br>\n &nbsp;&nbsp;lo5C, lo5D, lo5E, lo5F<br>\n </p>\r\n </body>\r\n</html>\r\n"); jScrollPaneLinearTableHL.setViewportView(jTextPaneLinearTableHL); jCheckBoxCombinedTable.setSelected(true); jCheckBoxCombinedTable.setText("Combined table"); jCheckBoxCombinedTable.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxCombinedTableItemStateChanged(evt); } }); jTextPaneCombinedTableLH.setContentType("text/html"); // NOI18N jTextPaneCombinedTableLH.setFont(new java.awt.Font("Monospaced", 0, 11)); // NOI18N jTextPaneCombinedTableLH.setText("<html>\r\n <head>\r\n\r\n </head>\r\n <body>\r\n <p style=\"margin-top: 0\">\r\n <b> \rlow</b>:<br>\n &nbsp;&nbsp;lo00<br> \n <b>high</b>:<br>\n &nbsp;&nbsp;hi00<br> <br>\n &nbsp;&nbsp;lo01, hi01, lo02, hi02<br> \n &nbsp;&nbsp;...<br>\n &nbsp;&nbsp;lo5E, hi5E, lo5F, hi5F<br>\n </p>\r\n </body>\r\n</html>\r\n"); jScrollPaneCombinedTableLH.setViewportView(jTextPaneCombinedTableLH); jTextPanecombinedTableHL.setContentType("text/html"); // NOI18N jTextPanecombinedTableHL.setFont(new java.awt.Font("Monospaced", 0, 11)); // NOI18N jTextPanecombinedTableHL.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n <b>high</b>:<br>\n &nbsp;&nbsp;hi00<br> \n <b>low</b>:<br>\n &nbsp;&nbsp;lo00<br> <br>\n &nbsp;&nbsp;hi01, lo01, hi02, lo02<br> \n &nbsp;&nbsp;...<br>\n &nbsp;&nbsp;hi5E, lo5E, hi5F, lo5F<br>\n </p>\n </body>\n</html>\n\n"); jScrollPaneCombinedTableHL.setViewportView(jTextPanecombinedTableHL); jCheckBoxInverseLinearTable.setSelected(true); jCheckBoxInverseLinearTable.setText("Inverse linear table"); jCheckBoxInverseLinearTable.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxInverseLinearTableItemStateChanged(evt); } }); jTextPaneInverseLinearTableLH.setContentType("text/html"); // NOI18N jTextPaneInverseLinearTableLH.setFont(new java.awt.Font("Monospaced", 0, 11)); // NOI18N jTextPaneInverseLinearTableLH.setText("<html>\r\n <head>\r\n\r\n </head>\r\n <body>\r\n <p style=\"margin-top: 0\">\r\n <b> \rlow</b>:<br>\n &nbsp;&nbsp;lo5F, lo5E, lo5D, lo5C<br> \n &nbsp;&nbsp;...<br>\n &nbsp;&nbsp;lo03, lo02, lo01, lo00<br>\n<b>high</b>:<br>\n &nbsp;&nbsp;hi5F, hi5E, hi5D, hi5C<br> \n &nbsp;&nbsp;...<br>\n &nbsp;&nbsp;hi03, hi02, hi01, hi00<br>\n </p>\r\n </body>\r\n</html>\r\n"); jScrollPaneInverseLinearTableLH.setViewportView(jTextPaneInverseLinearTableLH); jTextPaneInverseLinearTableHL.setContentType("text/html"); // NOI18N jTextPaneInverseLinearTableHL.setFont(new java.awt.Font("Monospaced", 0, 11)); // NOI18N jTextPaneInverseLinearTableHL.setText("<html>\r\n <head>\r\n\r\n </head>\r\n <body>\r\n <p style=\"margin-top: 0\">\r\n<b>high</b>:<br>\n &nbsp;&nbsp;hi5F, hi5E, hi5D, hi5C<br> \n &nbsp;&nbsp;...<br>\n &nbsp;&nbsp;hi03, hi02, hi01, hi00<br>\n <b> \rlow</b>:<br>\n &nbsp;&nbsp;lo5F, lo5E, lo5D, lo5C<br> \n &nbsp;&nbsp;...<br>\n &nbsp;&nbsp;lo03, lo02, lo01, lo00<br>\n </p>\r\n </body>\r\n</html>\r\n"); jScrollPaneInverseLinearTableHL.setViewportView(jTextPaneInverseLinearTableHL); jCheckBoxLinearOctNoteTable.setSelected(true); jCheckBoxLinearOctNoteTable.setText("Linear octave/note table"); jCheckBoxLinearOctNoteTable.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxLinearOctNoteTableItemStateChanged(evt); } }); jTextPaneLinearOctBNoteTableLH.setContentType("text/html"); // NOI18N jTextPaneLinearOctBNoteTableLH.setFont(new java.awt.Font("Monospaced", 0, 11)); // NOI18N jTextPaneLinearOctBNoteTableLH.setText("<html>\r\n <head>\r\n\r\n </head>\r\n <body>\r\n <p style=\"margin-top: 0\">\r\n <b> \rlow</b>:<br>\n &nbsp;&nbsp;lo00, lo01, lo02, lo03<br> \n &nbsp;&nbsp;lo04, lo05, lo06, lo07<br> \n &nbsp;&nbsp;lo08, lo09, lo0A, lo0B<br> \n&nbsp;&nbsp; &nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0<br> \n &nbsp;&nbsp;...<br>\n &nbsp;&nbsp;lo5C, lo5D, lo5E, lo5F<br>\n&nbsp;&nbsp; &nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0<br> \n<b>high</b>:<br>\n &nbsp;&nbsp;hi00, hi01, hi02, hi03,<br> \n &nbsp;&nbsp;hi04, hi05, hi06, hi07<br> \n &nbsp;&nbsp;hi08, hi09, hi0A, hi0B<br> \n&nbsp;&nbsp; &nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0<br> \n &nbsp;&nbsp;...<br>\n &nbsp;&nbsp;hi5C, hi5D, hi5E, hi5F<br>\n&nbsp;&nbsp; &nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0<br> \n </p>\r\n </body>\r\n</html>\r\n"); jScrollPaneLinearOctBNoteTableLH.setViewportView(jTextPaneLinearOctBNoteTableLH); jTextPaneLinearOctNoteTableHL.setContentType("text/html"); // NOI18N jTextPaneLinearOctNoteTableHL.setFont(new java.awt.Font("Monospaced", 0, 11)); // NOI18N jTextPaneLinearOctNoteTableHL.setText("<html>\r\n <head>\r\n\r\n </head>\r\n <body>\r\n <p style=\"margin-top: 0\">\r\n<b>high</b>:<br>\n &nbsp;&nbsp;hi00, hi01, hi02, hi03,<br> \n &nbsp;&nbsp;hi04, hi05, hi06, hi07<br> \n &nbsp;&nbsp;hi08, hi09, hi0A, hi0B<br> \n&nbsp;&nbsp; &nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0<br> \n &nbsp;&nbsp;...<br>\n &nbsp;&nbsp;hi5C, hi5D, hi5E, hi5F<br>\n&nbsp;&nbsp; &nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0<br> \n <b> \nlow</b>:<br>\n &nbsp;&nbsp;lo00, lo01, lo02, lo03<br> \n &nbsp;&nbsp;lo04, lo05, lo06, lo07<br> \n &nbsp;&nbsp;lo08, lo09, lo0A, lo0B<br> \n&nbsp;&nbsp; &nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0<br> \n &nbsp;&nbsp;...<br>\n &nbsp;&nbsp;lo5C, lo5D, lo5E, lo5F<br>\n&nbsp;&nbsp; &nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0, &nbsp;&nbsp;&nbsp;0<br> \n </p>\r\n </body>\r\n</html>\r\n"); LinearOctBNoteTableHL.setViewportView(jTextPaneLinearOctNoteTableHL); jCheckBoxHiOct13Table.setSelected(true); jCheckBoxHiOct13Table.setText("High octave (13) table"); jCheckBoxHiOct13Table.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxHiOct13TableItemStateChanged(evt); } }); jTextPaneLinearHiOct13Table.setContentType("text/html"); // NOI18N jTextPaneLinearHiOct13Table.setFont(new java.awt.Font("Monospaced", 0, 11)); // NOI18N jTextPaneLinearHiOct13Table.setText("<html>\r\n <head>\r\n\r\n </head>\r\n <body>\r\n <p style=\"margin-top: 0\">\r\n <b> \rlow</b>:<br> \n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br>\n &nbsp;&nbsp;lo54, lo55, lo56, lo57<br> \n &nbsp;&nbsp;lo58, lo59, lo5A, lo5B<br> \n &nbsp;&nbsp;lo5C, lo5D, lo5E, lo5F<br> \n<b>high</b>:<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br>\n &nbsp;&nbsp;hi54, hi55, hi56, hi57<br> \n &nbsp;&nbsp;hi58, hi59, hi5A, hi5B<br> \n &nbsp;&nbsp;hi5C, hi5D, hi5E, hi5F<br> \n </p>\r\n </body>\r\n</html>\r\n"); jScrollPaneLinearHiOct13Table.setViewportView(jTextPaneLinearHiOct13Table); jCheckBoxHiOct12Table.setSelected(true); jCheckBoxHiOct12Table.setText("High octave (12) table"); jCheckBoxHiOct12Table.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxHiOct12TableItemStateChanged(evt); } }); jTextPaneLinearHiOct12Table.setContentType("text/html"); // NOI18N jTextPaneLinearHiOct12Table.setFont(new java.awt.Font("Monospaced", 0, 11)); // NOI18N jTextPaneLinearHiOct12Table.setText("<html>\r\n <head>\r\n\r\n </head>\r\n <body>\r\n <p style=\"margin-top: 0\">\r\n <b> \rlow</b>:<br> \n &nbsp;&nbsp;lo54, lo55, lo56, lo57<br> \n &nbsp;&nbsp;lo58, lo59, lo5A, lo5B<br> \n &nbsp;&nbsp;lo5C, lo5D, lo5E, lo5F<br> \n<b>high</b>:<br>\n &nbsp;&nbsp;hi54, hi55, hi56, hi57<br> \n &nbsp;&nbsp;hi58, hi59, hi5A, hi5B<br> \n &nbsp;&nbsp;hi5C, hi5D, hi5E, hi5F<br> \n </p>\r\n </body>\r\n</html>\r\n"); jScrollPaneLinearHiOct12Table.setViewportView(jTextPaneLinearHiOct12Table); jCheckBoxLinearScaleTable.setSelected(true); jCheckBoxLinearScaleTable.setText("Linear scale (CDEFGAB) table"); jCheckBoxLinearScaleTable.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxLinearScaleTableItemStateChanged(evt); } }); jTextPaneLinearScaleTableLH.setContentType("text/html"); // NOI18N jTextPaneLinearScaleTableLH.setFont(new java.awt.Font("Monospaced", 0, 11)); // NOI18N jTextPaneLinearScaleTableLH.setText("<html>\r\n <head>\r\n\r\n </head>\r\n <body>\r\n <p style=\"margin-top: 0\">\r\n <b> \rlow</b>:<br>\n &nbsp;&nbsp;lo00, lo02, lo04, lo05<br> \n &nbsp;&nbsp;lo07, lo09, lo0B<br>\n &nbsp;&nbsp;...<br>\n &nbsp;&nbsp;lo57, lo59, lo5B<br>\n<b>high</b>:<br>\n &nbsp;&nbsp;hi00, hi02, hi04, hi05<br> \n &nbsp;&nbsp;hi07, hi09, hi0B<br>\n &nbsp;&nbsp;...<br>\n &nbsp;&nbsp;hi57, hi59, hi5B<br>\n </p>\r\n </body>\r\n</html>\r\n"); jScrollPaneLinearScaleTableLH.setViewportView(jTextPaneLinearScaleTableLH); jTextPaneLinearScaleTableHL.setContentType("text/html"); // NOI18N jTextPaneLinearScaleTableHL.setFont(new java.awt.Font("Monospaced", 0, 11)); // NOI18N jTextPaneLinearScaleTableHL.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n<b>high</b>:<br>\n &nbsp;&nbsp;hi00, hi02, hi04, hi05<br> \n &nbsp;&nbsp;hi07, hi09, hi0B<br>\n &nbsp;&nbsp;...<br>\n &nbsp;&nbsp;hi57, hi59, hi5B<br>\n <b> low</b>:<br>\n &nbsp;&nbsp;lo00, lo02, lo04, lo05<br> \n &nbsp;&nbsp;lo07, lo09, lo0B<br>\n &nbsp;&nbsp;...<br>\n &nbsp;&nbsp;lo57, lo59, lo5B<br>\n </p>\n </body>\n</html>\n\n"); jScrollPaneLinearScaleTableHL.setViewportView(jTextPaneLinearScaleTableHL); jCheckBoxShortLinearTable.setSelected(true); jCheckBoxShortLinearTable.setText("Short linear table"); jCheckBoxShortLinearTable.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxShortLinearTableItemStateChanged(evt); } }); jTextFieldShortLinearTable.setText("As \"Linear Table\" but limited to first 7 octaves"); jCheckBoxShortCombinedTable.setSelected(true); jCheckBoxShortCombinedTable.setText("Short combined table"); jCheckBoxShortCombinedTable.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxShortCombinedTableItemStateChanged(evt); } }); jTextFieldCombinedTable.setText("As \"Combined Table\" but limited to first 7 octaves"); jCheckBoxHiOctCombinedTable.setSelected(true); jCheckBoxHiOctCombinedTable.setText("High octave combined table"); jCheckBoxHiOctCombinedTable.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxHiOctCombinedTableItemStateChanged(evt); } }); jTextPaneLinearHiOctCombinedTable.setContentType("text/html"); // NOI18N jTextPaneLinearHiOctCombinedTable.setFont(new java.awt.Font("Monospaced", 0, 11)); // NOI18N jTextPaneLinearHiOctCombinedTable.setText("<html>\r\n <head>\r\n\r\n </head>\r\n <body>\r\n <p style=\"margin-top: 0\">\r\n <b> \rlow</b>:<br> \n &nbsp;&nbsp;lo54<br> \n<b>high</b>:<br>\n &nbsp;&nbsp;hi54<br><br>\n &nbsp;&nbsp;lo55, hi55, lo56, hi56<br> \n&nbsp;&nbsp;...<br>\n &nbsp;&nbsp;lo5E, hi5E, lo5F, hi5F<br> \n </p>\r\n </body>\r\n</html>\r\n"); jScrollPaneLinearHiOctCombinedTable.setViewportView(jTextPaneLinearHiOctCombinedTable); jCheckBoxHiOctCombinedInvertedTable.setSelected(true); jCheckBoxHiOctCombinedInvertedTable.setText("High octave combined invered table"); jCheckBoxHiOctCombinedInvertedTable.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxHiOctCombinedInvertedTableItemStateChanged(evt); } }); jTextPaneLinearHiOctCombinedInvertedTable.setContentType("text/html"); // NOI18N jTextPaneLinearHiOctCombinedInvertedTable.setFont(new java.awt.Font("Monospaced", 0, 11)); // NOI18N jTextPaneLinearHiOctCombinedInvertedTable.setText("<html>\r\n <head>\r\n\r\n </head>\r\n <body>\r\n <p style=\"margin-top: 0\">\r\n <b> \rhigh:</b>:<br> \n &nbsp;&nbsp;hi54<br> \n<b> low:</b>:<br>\n &nbsp;&nbsp;lo54<br><br>\n &nbsp;&nbsp;hi55, loi55, hi56, lo56<br> \n&nbsp;&nbsp;...<br>\n &nbsp;&nbsp;hi5E, lo5E, hi5F, lo5F<br> \n </p>\r\n </body>\r\n</html>\r\n"); jScrollPaneLinearHiOctCombinedInvertedTable.setViewportView(jTextPaneLinearHiOctCombinedInvertedTable); jCheckBoxLoOctCombinedTable.setSelected(true); jCheckBoxLoOctCombinedTable.setText("Low octave combined table"); jCheckBoxLoOctCombinedTable.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jCheckBoxLoOctCombinedTableItemStateChanged(evt); } }); jTextPaneLinearLoOctCombinedTable.setContentType("text/html"); // NOI18N jTextPaneLinearLoOctCombinedTable.setFont(new java.awt.Font("Monospaced", 0, 11)); // NOI18N jTextPaneLinearLoOctCombinedTable.setText("<html>\r\n <head>\r\n\r\n </head>\r\n <body>\r\n <p style=\"margin-top: 0\">\r\n <b> \rlow</b>:<br> \n &nbsp;&nbsp;lo00<br> \n<b>high</b>:<br>\n &nbsp;&nbsp;hi00<br><br>\n &nbsp;&nbsp;lo01, hi01, lo02, hi02<br> \n&nbsp;&nbsp;...<br>\n &nbsp;&nbsp;lo08, hi09, lo0A, hi0B<br> \n </p>\r\n </body>\r\n</html>\r\n"); jScrollPaneLinearLoOctCombinedTable.setViewportView(jTextPaneLinearLoOctCombinedTable); javax.swing.GroupLayout jPanelSidFreqLayout = new javax.swing.GroupLayout(jPanelSidFreq); jPanelSidFreq.setLayout(jPanelSidFreqLayout); jPanelSidFreqLayout.setHorizontalGroup( jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelSidFreqLayout.createSequentialGroup() .addContainerGap() .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelSidFreqLayout.createSequentialGroup() .addComponent(jLabelSidFreq) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanelSidFreqLayout.createSequentialGroup() .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(jPanelSidFreqLayout.createSequentialGroup() .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBoxLinearTable) .addComponent(jCheckBoxCombinedTable) .addComponent(jCheckBoxInverseLinearTable)) .addGap(116, 116, 116) .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanelSidFreqLayout.createSequentialGroup() .addComponent(jScrollPaneInverseLinearTableLH, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPaneInverseLinearTableHL, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanelSidFreqLayout.createSequentialGroup() .addComponent(jScrollPaneLinearTableLH, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(28, 28, 28) .addComponent(jScrollPaneLinearTableHL, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanelSidFreqLayout.createSequentialGroup() .addComponent(jScrollPaneCombinedTableLH, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPaneCombinedTableHL, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGroup(jPanelSidFreqLayout.createSequentialGroup() .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBoxLinearOctNoteTable) .addComponent(jCheckBoxHiOct13Table) .addComponent(jCheckBoxShortLinearTable) .addComponent(jCheckBoxShortCombinedTable) .addComponent(jCheckBoxHiOctCombinedTable) .addComponent(jCheckBoxHiOctCombinedInvertedTable)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jScrollPaneLinearHiOct13Table, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanelSidFreqLayout.createSequentialGroup() .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneLinearOctBNoteTableLH, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneLinearScaleTableLH, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(28, 28, 28) .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneLinearScaleTableHL, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(LinearOctBNoteTableHL, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(jTextFieldShortLinearTable) .addComponent(jTextFieldCombinedTable)) .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPaneLinearHiOctCombinedInvertedTable, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneLinearHiOctCombinedTable, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneLinearLoOctCombinedTable, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneLinearHiOct12Table, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE))))) .addComponent(jCheckBoxLinearScaleTable) .addComponent(jCheckBoxLoOctCombinedTable) .addComponent(jCheckBoxHiOct12Table)) .addGap(0, 110, Short.MAX_VALUE)))) ); jPanelSidFreqLayout.setVerticalGroup( jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelSidFreqLayout.createSequentialGroup() .addGap(18, 18, 18) .addComponent(jLabelSidFreq) .addGap(18, 18, 18) .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBoxLinearTable) .addComponent(jScrollPaneLinearTableLH, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneLinearTableHL, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jCheckBoxCombinedTable) .addComponent(jScrollPaneCombinedTableHL) .addComponent(jScrollPaneCombinedTableLH)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBoxInverseLinearTable) .addComponent(jScrollPaneInverseLinearTableLH, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneInverseLinearTableHL, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jCheckBoxLinearOctNoteTable) .addComponent(jScrollPaneLinearOctBNoteTableLH) .addComponent(LinearOctBNoteTableHL)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBoxHiOct13Table) .addComponent(jScrollPaneLinearHiOct13Table, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBoxLinearScaleTable) .addComponent(jScrollPaneLinearScaleTableLH, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPaneLinearScaleTableHL, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextFieldShortLinearTable, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxShortLinearTable)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextFieldCombinedTable, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxShortCombinedTable)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneLinearHiOctCombinedTable, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxHiOctCombinedTable)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBoxHiOctCombinedInvertedTable) .addComponent(jScrollPaneLinearHiOctCombinedInvertedTable, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBoxLoOctCombinedTable) .addComponent(jScrollPaneLinearLoOctCombinedTable, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelSidFreqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneLinearHiOct12Table, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBoxHiOct12Table)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jScrollPaneSidFreq.setViewportView(jPanelSidFreq); jTabbedPaneOption.addTab("SidFreq", jScrollPaneSidFreq); buttonGroupLook.add(jRadioButtonLookJava); jRadioButtonLookJava.setText("Java"); jRadioButtonLookJava.setEnabled(false); jRadioButtonLookJava.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonLookJavaItemStateChanged(evt); } }); buttonGroupLook.add(jRadioButtonLookMac); jRadioButtonLookMac.setText("Machintosh"); jRadioButtonLookMac.setEnabled(false); jRadioButtonLookMac.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonLookMacItemStateChanged(evt); } }); buttonGroupLook.add(jRadioButtonLookMetal); jRadioButtonLookMetal.setText("Metal"); jRadioButtonLookMetal.setEnabled(false); jRadioButtonLookMetal.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonLookMetalItemStateChanged(evt); } }); buttonGroupLook.add(jRadioButtonLookWin); jRadioButtonLookWin.setText("Windows style"); jRadioButtonLookWin.setEnabled(false); jRadioButtonLookWin.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonLookWinItemStateChanged(evt); } }); buttonGroupLook.add(jRadioButtonLookGtk); jRadioButtonLookGtk.setText("GTK style"); jRadioButtonLookGtk.setEnabled(false); jRadioButtonLookGtk.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonLookGtkItemStateChanged(evt); } }); buttonGroupLook.add(jRadioButtonLookNimbus); jRadioButtonLookNimbus.setText("Nimbus"); jRadioButtonLookNimbus.setEnabled(false); jRadioButtonLookNimbus.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonLookNimbusItemStateChanged(evt); } }); jLabelLook.setText("Look & Feel:"); jLabelTheme.setText("Theme:"); buttonGroupTheme.add(jRadioButtonOcean); jRadioButtonOcean.setText("Ocean"); jRadioButtonOcean.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonOceanItemStateChanged(evt); } }); buttonGroupTheme.add(jRadioButtonSteel); jRadioButtonSteel.setText("Steel"); jRadioButtonSteel.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonSteelItemStateChanged(evt); } }); buttonGroupTheme.add(jRadioButtonAqua); jRadioButtonAqua.setText("Aqua"); jRadioButtonAqua.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonAquaItemStateChanged(evt); } }); buttonGroupTheme.add(jRadioButtonCharcoal); jRadioButtonCharcoal.setText("Charcoal"); jRadioButtonCharcoal.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonCharcoalItemStateChanged(evt); } }); buttonGroupTheme.add(jRadioButtonHighContrast); jRadioButtonHighContrast.setText("High Contrast"); jRadioButtonHighContrast.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonHighContrastItemStateChanged(evt); } }); buttonGroupTheme.add(jRadioButtonEmerald); jRadioButtonEmerald.setText("Emerald"); jRadioButtonEmerald.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonEmeraldItemStateChanged(evt); } }); buttonGroupTheme.add(jRadioButtonRuby); jRadioButtonRuby.setText("Ruby"); jRadioButtonRuby.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonRubyItemStateChanged(evt); } }); buttonGroupLook.add(jRadioButtonLookCWin); jRadioButtonLookCWin.setText("Windows classic style"); jRadioButtonLookCWin.setEnabled(false); jRadioButtonLookCWin.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonLookCWinItemStateChanged(evt); } }); jLabelBracket.setFont(new java.awt.Font("Tahoma", 0, 64)); // NOI18N jLabelBracket.setText("{"); buttonGroupLook.add(jRadioButtonLookSynth); jRadioButtonLookSynth.setText("Synth based"); jRadioButtonLookSynth.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonLookSynthItemStateChanged(evt); } }); jLabelArrow.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N jLabelArrow.setText("----------------->"); jListLaf.setModel(listModel); jListLaf.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jListLaf.setEnabled(false); jListLaf.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent evt) { jListLafValueChanged(evt); } }); jScrollPaneList.setViewportView(jListLaf); jLabelFlatLaf.setText("Flat laf look & feel:"); jScrollPaneSyntax.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); rSyntaxTextAreaSyntax.setEditable(false); rSyntaxTextAreaSyntax.setText(";-------------------------------------------------------------------------------\n; LSS TRILOGY\n; (C) 2012 by Ice00/Hokuto Force\n;-------------------------------------------------------------------------------\n; expected TAPE=0/1 \n;-------------------------------------------------------------------------------\n .CPU 6502\n *=$0801\n;-------------------\nJOYSTICK = $03\nGAME = $88\nGO = $89\nCOUNTER = $92\n;---------------------------------------\nMAIN:\n LDA #1\n STA GAME ; first game is LSS1\n;-------------------\n JSR INSTALL_IRQ\n JSR SHOW_PICTURES_FLIMSOFT\n JSR DELAY_EFFECT\n;-------------------\n JSR SHOW_PICTURES_ICETEAM\n JSR DELAY_EFFECT\n;-------------------\n JSR SHOW_PICTURES_DM\n JSR DELAY_EFFECT\n;-------------------\n JSR SHOW_PICTURES_TRILOGY\n JSR SETUP_SPRITE\nLOOP:\n;------------------- \n JSR GET_JOYSTICK ; make movement as of user\n AND #JOY_FIRE\n BNE GO_GAME\n;-------------------\n LDA JOYSTICK\n AND #JOY_LEFT\n BNE GO_LEFT\n;-------------------\n LDA JOYSTICK\n AND #JOY_RIGHT\n BNE GO_RIGHT\n;-------------------\n JMP LOOP \n;-------------------\n\n .ALIGN $9800\nBMP_DATA_TRILOGY\n .BINARY \"../bin/LSS TRILOGY [PK].PRG\", $0002\n;------------------- \n .ALIGN $C000\nSPRITE0: \n .BYTE $00, $00, $00, $00, $00, $00, $00, $00\n .BYTE $00, $00, $00, $00, $00, $00, $00, $00\n .BYTE $00, $00, $00, $00, $00, $00, $00, $00\n .BYTE $00, $00, $00, $00, $00, $00, $00, $00\n .BYTE $00, $00, $00, $00, $00, $C0, $00, $00\n .BYTE $30, $00, $00, $CC, $00, $00, $F3, $00\n .BYTE $CF, $00, $00, $33, $00, $00, $0C, $00\n .BYTE $00, $03, $00, $00, $00, $00, $00, $00"); rSyntaxTextAreaSyntax.setFont(new java.awt.Font("Monospaced", 0, 12)); // NOI18N rSyntaxTextAreaSyntax.setMinimumSize(new java.awt.Dimension(671, 1000)); rSyntaxTextAreaSyntax.setName("Full"); // NOI18N rSyntaxTextAreaSyntax.setSyntaxEditingStyle("text/asm6502"); rSyntaxTextAreaSyntax.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { rSyntaxTextAreaSyntaxMouseClicked(evt); } public void mouseEntered(java.awt.event.MouseEvent evt) { rSyntaxTextAreaSyntaxMouseEntered(evt); } public void mouseReleased(java.awt.event.MouseEvent evt) { rSyntaxTextAreaSyntaxMouseReleased(evt); } }); rSyntaxTextAreaSyntax.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { rSyntaxTextAreaSyntaxKeyReleased(evt); } }); jScrollPaneSyntax.setViewportView(rSyntaxTextAreaSyntax); jLabelSyntax.setText("Syntax highligth theme:"); buttonGroupSyntax.add(jRadioButtonDefault); jRadioButtonDefault.setSelected(true); jRadioButtonDefault.setText("Default"); jRadioButtonDefault.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDefaultItemStateChanged(evt); } }); buttonGroupSyntax.add(jRadioButtonDefaultAlt); jRadioButtonDefaultAlt.setText("Default with standard style"); jRadioButtonDefaultAlt.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDefaultAltItemStateChanged(evt); } }); buttonGroupSyntax.add(jRadioButtonDark); jRadioButtonDark.setText("Dark Obsidian"); jRadioButtonDark.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDarkItemStateChanged(evt); } }); buttonGroupSyntax.add(jRadioButtonDruid); jRadioButtonDruid.setText("Druid"); jRadioButtonDruid.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonDruidItemStateChanged(evt); } }); buttonGroupSyntax.add(jRadioButtonEclipse); jRadioButtonEclipse.setText("Eclipse"); jRadioButtonEclipse.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonEclipseItemStateChanged(evt); } }); buttonGroupSyntax.add(jRadioButtonIdea); jRadioButtonIdea.setText("IntelliJ IDEA"); jRadioButtonIdea.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonIdeaItemStateChanged(evt); } }); buttonGroupSyntax.add(jRadioButtonMonokai); jRadioButtonMonokai.setText("Monokai"); jRadioButtonMonokai.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonMonokaiItemStateChanged(evt); } }); buttonGroupSyntax.add(jRadioButtonVS); jRadioButtonVS.setText("Visual Studio"); jRadioButtonVS.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonVSItemStateChanged(evt); } }); javax.swing.GroupLayout jPanelLookLayout = new javax.swing.GroupLayout(jPanelLook); jPanelLook.setLayout(jPanelLookLayout); jPanelLookLayout.setHorizontalGroup( jPanelLookLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelLookLayout.createSequentialGroup() .addContainerGap() .addGroup(jPanelLookLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelLookLayout.createSequentialGroup() .addGroup(jPanelLookLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanelLookLayout.createSequentialGroup() .addComponent(jRadioButtonLookCWin, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabelBracket) .addGap(13, 13, 13) .addGroup(jPanelLookLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabelTheme, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonOcean, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonSteel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonCharcoal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonAqua, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonHighContrast, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonEmerald, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonRuby, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanelLookLayout.createSequentialGroup() .addGroup(jPanelLookLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jRadioButtonLookSynth, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelLook, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonLookJava, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonLookMac, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonLookMetal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonLookWin, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 133, Short.MAX_VALUE) .addComponent(jRadioButtonLookNimbus, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonLookGtk, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabelArrow, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelLookLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jScrollPaneList, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) .addComponent(jLabelFlatLaf, javax.swing.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelLookLayout.createSequentialGroup() .addGroup(jPanelLookLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelLookLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabelSyntax, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonDefault, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonDefaultAlt, javax.swing.GroupLayout.DEFAULT_SIZE, 299, Short.MAX_VALUE)) .addComponent(jRadioButtonDark, javax.swing.GroupLayout.DEFAULT_SIZE, 299, Short.MAX_VALUE) .addComponent(jRadioButtonDruid, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonEclipse, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonIdea, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonMonokai, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jRadioButtonVS, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPaneSyntax, javax.swing.GroupLayout.PREFERRED_SIZE, 480, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(26, 26, 26)))) ); jPanelLookLayout.setVerticalGroup( jPanelLookLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelLookLayout.createSequentialGroup() .addGap(17, 17, 17) .addGroup(jPanelLookLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelLookLayout.createSequentialGroup() .addGroup(jPanelLookLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelTheme) .addComponent(jLabelFlatLaf)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanelLookLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelLookLayout.createSequentialGroup() .addComponent(jRadioButtonOcean) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonSteel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonAqua) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonCharcoal) .addGap(0, 0, Short.MAX_VALUE)) .addComponent(jScrollPaneList))) .addGroup(jPanelLookLayout.createSequentialGroup() .addGroup(jPanelLookLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanelLookLayout.createSequentialGroup() .addComponent(jLabelLook) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jRadioButtonLookJava) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonLookMac) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonLookMetal) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonLookWin) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelLookLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jRadioButtonLookCWin) .addComponent(jRadioButtonHighContrast))) .addComponent(jLabelBracket, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelLookLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jRadioButtonLookGtk) .addComponent(jRadioButtonEmerald)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelLookLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jRadioButtonLookNimbus) .addComponent(jRadioButtonRuby)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelLookLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelArrow, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButtonLookSynth)))) .addGap(18, 18, 18) .addGroup(jPanelLookLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneSyntax, javax.swing.GroupLayout.PREFERRED_SIZE, 522, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanelLookLayout.createSequentialGroup() .addComponent(jLabelSyntax) .addGap(18, 18, 18) .addComponent(jRadioButtonDefault) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonDefaultAlt) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonDark) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonDruid) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonEclipse) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonIdea) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonMonokai) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonVS))) .addGap(27, 27, 27)) ); jTabbedPaneOption.addTab("Look & Feel", jPanelLook); jPanelOption.add(jTabbedPaneOption, java.awt.BorderLayout.PAGE_START); jButtonLoad.setText("Load"); jButtonLoad.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonLoadActionPerformed(evt); } }); jPanelDn.add(jButtonLoad); jButtonSave.setText("Save"); jButtonSave.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonSaveActionPerformed(evt); } }); jPanelDn.add(jButtonSave); jButtonClose.setText("Close"); jButtonClose.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonCloseActionPerformed(evt); } }); jPanelDn.add(jButtonClose); jPanelOption.add(jPanelDn, java.awt.BorderLayout.SOUTH); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(0, 19, Short.MAX_VALUE) .addComponent(jPanelOption, javax.swing.GroupLayout.PREFERRED_SIZE, 817, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 20, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(4, 4, 4) .addComponent(jPanelOption, javax.swing.GroupLayout.DEFAULT_SIZE, 907, Short.MAX_VALUE)) ); pack(); }// </editor-fold>//GEN-END:initComponents private void jButtonLoadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonLoadActionPerformed if(!FileManager.instance.readOptionFile(FileManager.OPTION_FILE, option)) { JOptionPane.showMessageDialog(this, "Error reading the option file", "Loading error", JOptionPane.ERROR_MESSAGE); } else { JOptionPane.showMessageDialog(this, "Loading done", "Loading options", JOptionPane.INFORMATION_MESSAGE); applyOption(); } }//GEN-LAST:event_jButtonLoadActionPerformed private void jButtonSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSaveActionPerformed option.custom=jTextAreaHeather.getText(); if (!FileManager.instance.writeOptionFile(FileManager.OPTION_FILE, option)) { JOptionPane.showMessageDialog(this, "Error writing the option file", "Saving error", JOptionPane.ERROR_MESSAGE); } else JOptionPane.showMessageDialog(this, "Saving done", "Saving options", JOptionPane.INFORMATION_MESSAGE); }//GEN-LAST:event_jButtonSaveActionPerformed private void jButtonCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCloseActionPerformed close(); }//GEN-LAST:event_jButtonCloseActionPerformed private void jCheckBoxErasePlusItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxErasePlusItemStateChanged option.erasePlus=jCheckBoxErasePlus.isSelected(); }//GEN-LAST:event_jCheckBoxErasePlusItemStateChanged private void jCheckBoxOpcodeFormattingSourceItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxOpcodeFormattingSourceItemStateChanged option.opcodeUpperCaseSource=jCheckBoxOpcodeFormattingSource.isSelected(); }//GEN-LAST:event_jCheckBoxOpcodeFormattingSourceItemStateChanged private void jTextFieldSidFreqHiFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldSidFreqHiFocusLost String txt=jTextFieldSidFreqHi.getText(); txt=txt.replaceAll(" ", ""); if ("".equals(txt)) option.sidFreqHiLabel="frequencyHi"; else option.sidFreqHiLabel=txt; }//GEN-LAST:event_jTextFieldSidFreqHiFocusLost private void jTextFieldSidFreqLoFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldSidFreqLoFocusLost String txt=jTextFieldSidFreqLo.getText(); txt=txt.replaceAll(" ", ""); if ("".equals(txt)) option.sidFreqLoLabel="frequencyLo"; else option.sidFreqLoLabel=txt; }//GEN-LAST:event_jTextFieldSidFreqLoFocusLost private void jTextFieldPlaySoundFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldPlaySoundFocusLost String txt=jTextFieldPlaySound.getText(); txt=txt.replaceAll(" ", ""); if ("".equals(txt)) option.psidPlaySoundsLabel="playSound"; else option.psidPlaySoundsLabel=txt; }//GEN-LAST:event_jTextFieldPlaySoundFocusLost private void jTextFieldInitSongsFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldInitSongsFocusLost String txt=jTextFieldInitSongs.getText(); txt=txt.replaceAll(" ", ""); if ("".equals(txt)) option.psidInitSongsLabel="initSongs"; else option.psidInitSongsLabel=txt; }//GEN-LAST:event_jTextFieldInitSongsFocusLost private void jSpinnerMaxByteAggregateStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerMaxByteAggregateStateChanged option.maxByteAggregate=(Integer)jSpinnerMaxByteAggregate.getValue(); }//GEN-LAST:event_jSpinnerMaxByteAggregateStateChanged private void jSpinnerMaxLengthStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerMaxLengthStateChanged option.maxLabelLength=(Integer)jSpinnerMaxLength.getValue(); }//GEN-LAST:event_jSpinnerMaxLengthStateChanged private void jCheckBoxUndefinedCodeItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxUndefinedCodeItemStateChanged option.useAsCode=jCheckBoxUndefinedCode.isSelected(); }//GEN-LAST:event_jCheckBoxUndefinedCodeItemStateChanged private void jCheckBoxOpcodeFormattingPreviewItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxOpcodeFormattingPreviewItemStateChanged option.opcodeUpperCasePreview=jCheckBoxOpcodeFormattingPreview.isSelected(); }//GEN-LAST:event_jCheckBoxOpcodeFormattingPreviewItemStateChanged private void jCheckBoxEraseDCommItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxEraseDCommItemStateChanged option.eraseDComm=jCheckBoxEraseDComm.isSelected(); }//GEN-LAST:event_jCheckBoxEraseDCommItemStateChanged private void jRadioButtonLangItalianItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonLangItalianItemStateChanged option.commentLanguage=C64Dasm.LANG_ITALIAN; }//GEN-LAST:event_jRadioButtonLangItalianItemStateChanged private void jRadioButtonLangEnglishItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonLangEnglishItemStateChanged option.commentLanguage=C64Dasm.LANG_ENGLISH; }//GEN-LAST:event_jRadioButtonLangEnglishItemStateChanged private void jRadioButtonStyle3ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonStyle3ItemStateChanged option.illegalOpcodeMode=M6510Dasm.MODE3; }//GEN-LAST:event_jRadioButtonStyle3ItemStateChanged private void jRadioButtonStyle2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonStyle2ItemStateChanged option.illegalOpcodeMode=M6510Dasm.MODE2; }//GEN-LAST:event_jRadioButtonStyle2ItemStateChanged private void jRadioButtonStyle1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonStyle1ItemStateChanged option.illegalOpcodeMode=M6510Dasm.MODE1; }//GEN-LAST:event_jRadioButtonStyle1ItemStateChanged private void jRadioButtonLookJavaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonLookJavaItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { actualLEF=Option.LAF_MOTIF; option.setLafName(actualLEF); option.setTheme(Option.THEME_NULL); disableTheme(); jListLaf.setEnabled(false); Option.useLookAndFeel(actualLEF, actualTheme); } }//GEN-LAST:event_jRadioButtonLookJavaItemStateChanged private void jRadioButtonLookMacItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonLookMacItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { actualLEF=Option.LAF_MAC; option.setLafName(actualLEF); option.setTheme(Option.THEME_NULL); disableTheme(); jListLaf.setEnabled(false); Option.useLookAndFeel(actualLEF, actualTheme); } }//GEN-LAST:event_jRadioButtonLookMacItemStateChanged private void jRadioButtonLookMetalItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonLookMetalItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { actualLEF=Option.LAF_METAL; option.setLafName(actualLEF); enableTheme(); selectedTheme(); jListLaf.setEnabled(false); Option.useLookAndFeel(actualLEF, actualTheme); } }//GEN-LAST:event_jRadioButtonLookMetalItemStateChanged private void jRadioButtonLookWinItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonLookWinItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { actualLEF=Option.LAF_WINDOWS; option.setLafName(actualLEF); option.setTheme(Option.THEME_NULL); disableTheme(); jListLaf.setEnabled(false); Option.useLookAndFeel(actualLEF, actualTheme); } }//GEN-LAST:event_jRadioButtonLookWinItemStateChanged private void jRadioButtonLookGtkItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonLookGtkItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { actualLEF=Option.LAF_GTK; option.setLafName(actualLEF); option.setTheme(Option.THEME_NULL); disableTheme(); jListLaf.setEnabled(false); Option.useLookAndFeel(actualLEF, actualTheme); } }//GEN-LAST:event_jRadioButtonLookGtkItemStateChanged private void jRadioButtonLookNimbusItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonLookNimbusItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { actualLEF=Option.LAF_NIMBUS; option.setLafName(actualLEF); option.setTheme(Option.THEME_NULL); disableTheme(); jListLaf.setEnabled(false); Option.useLookAndFeel(actualLEF, actualTheme); } }//GEN-LAST:event_jRadioButtonLookNimbusItemStateChanged private void jRadioButtonLookCWinItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonLookCWinItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { actualLEF=Option.LAF_CWINDOWS; option.setLafName(actualLEF); option.setTheme(Option.THEME_NULL); disableTheme(); jListLaf.setEnabled(false); Option.useLookAndFeel(actualLEF, actualTheme); } }//GEN-LAST:event_jRadioButtonLookCWinItemStateChanged private void jRadioButtonLookSynthItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonLookSynthItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { actualLEF=Option.LAF_SYNTH; option.setLafName(actualLEF); disableTheme(); jListLaf.setEnabled(true); actualLaf=(String)listModel.getElementAt(jListLaf.getSelectedIndex()); option.setFlatLaf(actualLaf); Option.useLookAndFeel(actualLaf); } }//GEN-LAST:event_jRadioButtonLookSynthItemStateChanged private void jListLafValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_jListLafValueChanged if (!goFlat) return; if (evt != null && evt.getValueIsAdjusting()) { return; } if (evt == null) { return; } actualLaf=(String)listModel.getElementAt(jListLaf.getSelectedIndex()); option.setFlatLaf(actualLaf); Option.useLookAndFeel(actualLaf); }//GEN-LAST:event_jListLafValueChanged private void jRadioButtonOceanItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonOceanItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { option.setTheme(Option.THEME_OCEAN); actualTheme=option.getMethalTheme(); Option.useLookAndFeel(actualLEF, actualTheme); } }//GEN-LAST:event_jRadioButtonOceanItemStateChanged private void jRadioButtonSteelItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonSteelItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { option.setTheme(Option.THEME_STEEL); actualTheme=option.getMethalTheme(); Option.useLookAndFeel(actualLEF, actualTheme); } }//GEN-LAST:event_jRadioButtonSteelItemStateChanged private void jRadioButtonAquaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonAquaItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { option.setTheme(Option.THEME_AQUA); actualTheme=option.getMethalTheme(); Option.useLookAndFeel(actualLEF, actualTheme); } }//GEN-LAST:event_jRadioButtonAquaItemStateChanged private void jRadioButtonCharcoalItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCharcoalItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { option.setTheme(Option.THEME_CHARCOAL); actualTheme=option.getMethalTheme(); Option.useLookAndFeel(actualLEF, actualTheme); } }//GEN-LAST:event_jRadioButtonCharcoalItemStateChanged private void jRadioButtonHighContrastItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonHighContrastItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { option.setTheme(Option.THEME_CONTRAST); actualTheme=option.getMethalTheme(); Option.useLookAndFeel(actualLEF, actualTheme); } }//GEN-LAST:event_jRadioButtonHighContrastItemStateChanged private void jRadioButtonEmeraldItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonEmeraldItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { option.setTheme(Option.THEME_EMERALD); actualTheme=option.getMethalTheme(); Option.useLookAndFeel(actualLEF, actualTheme); } }//GEN-LAST:event_jRadioButtonEmeraldItemStateChanged private void jRadioButtonRubyItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonRubyItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { option.setTheme(Option.THEME_RUBY); actualTheme=option.getMethalTheme(); Option.useLookAndFeel(actualLEF, actualTheme); } }//GEN-LAST:event_jRadioButtonRubyItemStateChanged private void jCheckBoxC64ZeroPageItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC64ZeroPageItemStateChanged option.commentC64ZeroPage=jCheckBoxC64ZeroPage.isSelected(); }//GEN-LAST:event_jCheckBoxC64ZeroPageItemStateChanged private void jCheckBoxC64StackAreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC64StackAreaItemStateChanged option.commentC64StackArea=jCheckBoxC64StackArea.isSelected(); }//GEN-LAST:event_jCheckBoxC64StackAreaItemStateChanged private void jCheckBoxC64_200AreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC64_200AreaItemStateChanged option.commentC64_200Area=jCheckBoxC64_200Area.isSelected(); }//GEN-LAST:event_jCheckBoxC64_200AreaItemStateChanged private void jCheckBoxC64_300AreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC64_300AreaItemStateChanged option.commentC64_300Area=jCheckBoxC64_300Area.isSelected(); }//GEN-LAST:event_jCheckBoxC64_300AreaItemStateChanged private void jCheckBoxC64FreeAreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC64FreeAreaItemStateChanged option.commentC64BasicFreeArea=jCheckBoxC64FreeArea.isSelected(); }//GEN-LAST:event_jCheckBoxC64FreeAreaItemStateChanged private void jCheckBoxC64BasicRomItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC64BasicRomItemStateChanged option.commentC64BasicRom=jCheckBoxC64BasicRom.isSelected(); }//GEN-LAST:event_jCheckBoxC64BasicRomItemStateChanged private void jCheckBoxC64FreeRamItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC64FreeRamItemStateChanged option.commentC64FreeRam=jCheckBoxC64FreeRam.isSelected(); }//GEN-LAST:event_jCheckBoxC64FreeRamItemStateChanged private void jCheckC64BoxVicIIItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckC64BoxVicIIItemStateChanged option.commentC64VicII=jCheckC64BoxVicII.isSelected(); }//GEN-LAST:event_jCheckC64BoxVicIIItemStateChanged private void jCheckC64BoxSidItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckC64BoxSidItemStateChanged option.commentC64Sid=jCheckC64BoxSid.isSelected(); }//GEN-LAST:event_jCheckC64BoxSidItemStateChanged private void jCheckBoxC64ColorItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC64ColorItemStateChanged option.commentC64ColorArea=jCheckBoxC64Color.isSelected(); }//GEN-LAST:event_jCheckBoxC64ColorItemStateChanged private void jCheckBoxC64Cia1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC64Cia1ItemStateChanged option.commentC64Cia1=jCheckBoxC64Cia1.isSelected(); }//GEN-LAST:event_jCheckBoxC64Cia1ItemStateChanged private void jCheckBoxC64Cia2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC64Cia2ItemStateChanged option.commentC64Cia2=jCheckBoxC64Cia2.isSelected(); }//GEN-LAST:event_jCheckBoxC64Cia2ItemStateChanged private void jCheckBoxC64KernalRomItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC64KernalRomItemStateChanged option.commentC64KernalRom=jCheckBoxC64KernalRom.isSelected(); }//GEN-LAST:event_jCheckBoxC64KernalRomItemStateChanged private void jCheckBoxC64ScreenAreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC64ScreenAreaItemStateChanged option.commentC64ScreenArea=jCheckBoxC64ScreenArea.isSelected(); }//GEN-LAST:event_jCheckBoxC64ScreenAreaItemStateChanged private void jCheckBoxC1541ZeroPageItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC1541ZeroPageItemStateChanged option.commentC1541ZeroPage=jCheckBoxC1541ZeroPage.isShowing(); }//GEN-LAST:event_jCheckBoxC1541ZeroPageItemStateChanged private void jCheckBoxC1541StackAreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC1541StackAreaItemStateChanged option.commentC1541StackArea=jCheckBoxC64StackArea.isSelected(); }//GEN-LAST:event_jCheckBoxC1541StackAreaItemStateChanged private void jCheckBoxC1541_200AreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC1541_200AreaItemStateChanged option.commentC1541_200Area=jCheckBoxC1541_200Area.isSelected(); }//GEN-LAST:event_jCheckBoxC1541_200AreaItemStateChanged private void jCheckBoxC1541Via1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC1541Via1ItemStateChanged option.commentC1541Via1=jCheckBoxC1541Via1.isSelected(); }//GEN-LAST:event_jCheckBoxC1541Via1ItemStateChanged private void jCheckBoxC1541Via2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC1541Via2ItemStateChanged option.commentC1541Via2=jCheckBoxC1541Via2.isSelected(); }//GEN-LAST:event_jCheckBoxC1541Via2ItemStateChanged private void jCheckBoxC1541KernalItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC1541KernalItemStateChanged option.commentC1541Kernal=jCheckBoxC1541Kernal.isSelected(); }//GEN-LAST:event_jCheckBoxC1541KernalItemStateChanged private void jCheckBoxC1541Buffer0ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC1541Buffer0ItemStateChanged option.commentC1541Buffer0=jCheckBoxC1541Buffer0.isSelected(); }//GEN-LAST:event_jCheckBoxC1541Buffer0ItemStateChanged private void jCheckBoxC1541Buffer1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC1541Buffer1ItemStateChanged option.commentC1541Buffer1=jCheckBoxC1541Buffer1.isSelected(); }//GEN-LAST:event_jCheckBoxC1541Buffer1ItemStateChanged private void jCheckBoxC1541Buffer2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC1541Buffer2ItemStateChanged option.commentC1541Buffer2=jCheckBoxC1541Buffer2.isSelected(); }//GEN-LAST:event_jCheckBoxC1541Buffer2ItemStateChanged private void jCheckBoxC1541Buffer3ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC1541Buffer3ItemStateChanged option.commentC1541Buffer3=jCheckBoxC1541Buffer3.isSelected(); }//GEN-LAST:event_jCheckBoxC1541Buffer3ItemStateChanged private void jCheckBoxC1541Buffer4ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC1541Buffer4ItemStateChanged option.commentC1541Buffer4=jCheckBoxC1541Buffer4.isSelected(); }//GEN-LAST:event_jCheckBoxC1541Buffer4ItemStateChanged private void jCheckBoxPlus4ZeroPageItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4ZeroPageItemStateChanged option.commentPlus4ZeroPage=jCheckBoxPlus4ZeroPage.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4ZeroPageItemStateChanged private void jCheckBoxPlus4StackAreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4StackAreaItemStateChanged option.commentPlus4StackArea=jCheckBoxPlus4StackArea.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4StackAreaItemStateChanged private void jCheckBoxPlus4_200AreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4_200AreaItemStateChanged option.commentPlus4_200Area=jCheckBoxPlus4_200Area.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4_200AreaItemStateChanged private void jCheckBoxPlus4_300AreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4_300AreaItemStateChanged option.commentPlus4_300Area=jCheckBoxPlus4_300Area.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4_300AreaItemStateChanged private void jCheckBoxPlus4_400AreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4_400AreaItemStateChanged option.commentPlus4_400Area=jCheckBoxPlus4_400Area.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4_400AreaItemStateChanged private void jCheckBoxPlus4_500AreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4_500AreaItemStateChanged option.commentPlus4_500Area=jCheckBoxPlus4_500Area.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4_500AreaItemStateChanged private void jCheckBoxPlus4_600AreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4_600AreaItemStateChanged option.commentPlus4_600Area=jCheckBoxPlus4_600Area.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4_600AreaItemStateChanged private void jCheckBoxPlus4_700AreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4_700AreaItemStateChanged option.commentPlus4_700Area=jCheckBoxPlus4_700Area.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4_700AreaItemStateChanged private void jCheckBoxPlus4ColorAreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4ColorAreaItemStateChanged option.commentPlus4ColorArea=jCheckBoxPlus4ColorArea.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4ColorAreaItemStateChanged private void jCheckBoxPlus4VideoAreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4VideoAreaItemStateChanged option.commentPlus4VideoArea=jCheckBoxPlus4VideoArea.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4VideoAreaItemStateChanged private void jCheckBoxPlus4BasicRamPItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4BasicRamPItemStateChanged option.commentPlus4BasicRamP=jCheckBoxPlus4BasicRamP.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4BasicRamPItemStateChanged private void jCheckBoxPlus4LuminanceItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4LuminanceItemStateChanged option.commentPlus4Luminance=jCheckBoxPlus4Luminance.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4LuminanceItemStateChanged private void jCheckBoxPlus4ColorBitmapItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4ColorBitmapItemStateChanged option.commentPlus4ColorBitmap=jCheckBoxPlus4ColorBitmap.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4ColorBitmapItemStateChanged private void jCheckBoxPlus4GraphicDataItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4GraphicDataItemStateChanged option.commentPlus4GraphicData=jCheckBoxPlus4GraphicData.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4GraphicDataItemStateChanged private void jCheckBoxPlus4BasicRamNItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4BasicRamNItemStateChanged option.commentPlus4BasicRamN=jCheckBoxPlus4BasicRamN.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4BasicRamNItemStateChanged private void jCheckBoxPlus4BasicRomItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4BasicRomItemStateChanged option.commentPlus4BasicRom=jCheckBoxPlus4BasicRom.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4BasicRomItemStateChanged private void jCheckBoxPlus4BasicExtItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4BasicExtItemStateChanged option.commentPlus4BasicExt=jCheckBoxPlus4BasicExt.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4BasicExtItemStateChanged private void jCheckBoxPlus4CaracterItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4CaracterItemStateChanged option.commentPlus4Caracter=jCheckBoxPlus4Caracter.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4CaracterItemStateChanged private void jCheckBoxPlus4AciaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4AciaItemStateChanged option.commentPlus4Acia=jCheckBoxPlus4Acia.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4AciaItemStateChanged private void jCheckBoxPlus4_6529B_1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4_6529B_1ItemStateChanged option.commentPlus4_6529B_1=jCheckBoxPlus4_6529B_1.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4_6529B_1ItemStateChanged private void jCheckBoxPlus4_6529B_2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4_6529B_2ItemStateChanged option.commentPlus4_6529B_2=jCheckBoxPlus4_6529B_2.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4_6529B_2ItemStateChanged private void jCheckBoxPlus4TedItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4TedItemStateChanged option.commentPlus4Ted=jCheckBoxPlus4Ted.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4TedItemStateChanged private void jCheckBoxPlus4KernalItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxPlus4KernalItemStateChanged option.commentPlus4Kernal=jCheckBoxPlus4Kernal.isSelected(); }//GEN-LAST:event_jCheckBoxPlus4KernalItemStateChanged private void jCheckBoxVic20StackAreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20StackAreaItemStateChanged option.commentVic20StackArea=jCheckBoxVic20StackArea.isSelected(); }//GEN-LAST:event_jCheckBoxVic20StackAreaItemStateChanged private void jCheckBoxVic20ZeroPageItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20ZeroPageItemStateChanged option.commentVic20ZeroPage=jCheckBoxVic20ZeroPage.isSelected(); }//GEN-LAST:event_jCheckBoxVic20ZeroPageItemStateChanged private void jCheckBoxVic20_200AreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20_200AreaItemStateChanged option.commentVic20_200Area=jCheckBoxVic20_200Area.isSelected(); }//GEN-LAST:event_jCheckBoxVic20_200AreaItemStateChanged private void jCheckBoxVic20_300AreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20_300AreaItemStateChanged option.commentVic20_300Area=jCheckBoxVic20_300Area.isSelected(); }//GEN-LAST:event_jCheckBoxVic20_300AreaItemStateChanged private void jCheckBoxVic20_400AreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20_400AreaItemStateChanged option.commentVic20_400Area=jCheckBoxVic20_400Area.isSelected(); }//GEN-LAST:event_jCheckBoxVic20_400AreaItemStateChanged private void jCheckBoxVic20VicItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20VicItemStateChanged option.commentVic20Vic=jCheckBoxVic20Vic.isSelected(); }//GEN-LAST:event_jCheckBoxVic20VicItemStateChanged private void jCheckBoxVic20Via1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20Via1ItemStateChanged option.commentVic20Via1=jCheckBoxVic20Via1.isSelected(); }//GEN-LAST:event_jCheckBoxVic20Via1ItemStateChanged private void jCheckBoxVic20Via2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20Via2ItemStateChanged option.commentVic20Via2=jCheckBoxVic20Via2.isSelected(); }//GEN-LAST:event_jCheckBoxVic20Via2ItemStateChanged private void jCheckBoxVic20UserBasicItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20UserBasicItemStateChanged option.commentVic20UserBasic=jCheckBoxVic20UserBasic.isSelected(); }//GEN-LAST:event_jCheckBoxVic20UserBasicItemStateChanged private void jCheckBoxVic20ScreenItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20ScreenItemStateChanged option.commentVic20Screen=jCheckBoxVic20Screen.isSelected(); }//GEN-LAST:event_jCheckBoxVic20ScreenItemStateChanged private void jCheckBoxVic20_8kExp1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20_8kExp1ItemStateChanged option.commentVic20_8kExp1=jCheckBoxVic20_8kExp1.isSelected(); }//GEN-LAST:event_jCheckBoxVic20_8kExp1ItemStateChanged private void jCheckBoxVic20_8kExp2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20_8kExp2ItemStateChanged option.commentVic20_8kExp2=jCheckBoxVic20_8kExp2.isSelected(); }//GEN-LAST:event_jCheckBoxVic20_8kExp2ItemStateChanged private void jCheckBoxVic20_8kExp3ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20_8kExp3ItemStateChanged option.commentVic20_8kExp3=jCheckBoxVic20_8kExp3.isSelected(); }//GEN-LAST:event_jCheckBoxVic20_8kExp3ItemStateChanged private void jCheckBoxVic20CharacterItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20CharacterItemStateChanged option.commentVic20Character=jCheckBoxVic20Character.isSelected(); }//GEN-LAST:event_jCheckBoxVic20CharacterItemStateChanged private void jCheckBoxVic20ColorItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20ColorItemStateChanged option.commentVic20Color=jCheckBoxVic20Color.isSelected(); }//GEN-LAST:event_jCheckBoxVic20ColorItemStateChanged private void jCheckBoxVic20Block2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20Block2ItemStateChanged option.commentVic20Block2=jCheckBoxVic20Block2.isSelected(); }//GEN-LAST:event_jCheckBoxVic20Block2ItemStateChanged private void jCheckBoxVic20Block3ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20Block3ItemStateChanged option.commentVic20Block3=jCheckBoxVic20Block3.isSelected(); }//GEN-LAST:event_jCheckBoxVic20Block3ItemStateChanged private void jCheckBoxVic20Block4ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20Block4ItemStateChanged option.commentVic20Block4=jCheckBoxVic20Block4.isSelected(); }//GEN-LAST:event_jCheckBoxVic20Block4ItemStateChanged private void jCheckBoxVic20BasicRomItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20BasicRomItemStateChanged option.commentVic20BasicRom=jCheckBoxVic20BasicRom.isSelected(); }//GEN-LAST:event_jCheckBoxVic20BasicRomItemStateChanged private void jCheckBoxVic20KernalRomItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVic20KernalRomItemStateChanged option.commentVic20KernalRom=jCheckBoxVic20KernalRom.isSelected(); }//GEN-LAST:event_jCheckBoxVic20KernalRomItemStateChanged private void jSpinnerInstrSpacesStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerInstrSpacesStateChanged int num=(Integer)((JSpinner) evt.getSource()).getValue(); if (num+option.numInstrTabs==0) jSpinnerInstrSpaces.setValue(1); else option.numInstrSpaces=num; }//GEN-LAST:event_jSpinnerInstrSpacesStateChanged private void jSpinnerInstrTabsStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerInstrTabsStateChanged int num=(Integer)((JSpinner) evt.getSource()).getValue(); if (num+option.numInstrSpaces==0) jSpinnerInstrTabs.setValue(1); else option.numInstrTabs=num; }//GEN-LAST:event_jSpinnerInstrTabsStateChanged private void jSpinnerDataSpacesStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerDataSpacesStateChanged int num=(Integer)((JSpinner) evt.getSource()).getValue(); if (num+option.numDataTabs==0) jSpinnerDataSpaces.setValue(1); else option.numDataSpaces=num; }//GEN-LAST:event_jSpinnerDataSpacesStateChanged private void jSpinnerDataTabsStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerDataTabsStateChanged int num=(Integer)((JSpinner) evt.getSource()).getValue(); if (num+option.numDataSpaces==0) jSpinnerDataTabs.setValue(1); else option.numDataTabs=num; }//GEN-LAST:event_jSpinnerDataTabsStateChanged private void jCheckBoxLabelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxLabelActionPerformed option.labelOnSepLine=jCheckBoxLabel.isSelected(); }//GEN-LAST:event_jCheckBoxLabelActionPerformed private void jComboBoxAssemblerItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBoxAssemblerItemStateChanged String str=(String)jComboBoxAssembler.getSelectedItem(); for (Assembler.Name name: Assembler.Name.values()) { if (name.getName().equals(str)) { option.assembler=name; return; } } }//GEN-LAST:event_jComboBoxAssemblerItemStateChanged private void jSpinnerMaxWordAggregateStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerMaxWordAggregateStateChanged option.maxWordAggregate=(Integer)jSpinnerMaxWordAggregate.getValue(); }//GEN-LAST:event_jSpinnerMaxWordAggregateStateChanged private void jSpinnerMaxTribyteAggregateStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerMaxTribyteAggregateStateChanged option.maxTribyteAggregate=(Integer)jSpinnerMaxTribyteAggregate.getValue(); }//GEN-LAST:event_jSpinnerMaxTribyteAggregateStateChanged private void jSpinnerMaxLongAggregateStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerMaxLongAggregateStateChanged option.maxLongAggregate=(Integer)jSpinnerMaxLongAggregate.getValue(); }//GEN-LAST:event_jSpinnerMaxLongAggregateStateChanged private void jCheckBoxC128ZeroPageItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128ZeroPageItemStateChanged option.commentC128ZeroPage=jCheckBoxC128ZeroPage.isSelected(); }//GEN-LAST:event_jCheckBoxC128ZeroPageItemStateChanged private void jCheckBoxC128StackAreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128StackAreaItemStateChanged option.commentC128StackArea=jCheckBoxC128StackArea.isSelected(); }//GEN-LAST:event_jCheckBoxC128StackAreaItemStateChanged private void jCheckBoxC128_300AreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128_300AreaItemStateChanged option.commentC128_300Area=jCheckBoxC128_300Area.isShowing(); }//GEN-LAST:event_jCheckBoxC128_300AreaItemStateChanged private void jCheckBoxC128_200AreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128_200AreaItemStateChanged option.commentC128_200Area=jCheckBoxC128_200Area.isShowing(); }//GEN-LAST:event_jCheckBoxC128_200AreaItemStateChanged private void jCheckBoxC128ScreenAreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128ScreenAreaItemStateChanged option.commentC128ScreenArea=jCheckBoxC128ScreenArea.isSelected(); }//GEN-LAST:event_jCheckBoxC128ScreenAreaItemStateChanged private void jCheckBoxC128UserBasicItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128UserBasicItemStateChanged option.commentC128UserBasic=jCheckBoxC128UserBasic.isSelected(); }//GEN-LAST:event_jCheckBoxC128UserBasicItemStateChanged private void jCheckBoxC128AppProgAreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128AppProgAreaItemStateChanged option.commentC128AppProgArea=jCheckBoxC128AppProgArea.isSelected(); }//GEN-LAST:event_jCheckBoxC128AppProgAreaItemStateChanged private void jCheckBoxC128VideoColorItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128VideoColorItemStateChanged option.commentC128VideoColor=jCheckBoxC128VideoColor.isSelected(); }//GEN-LAST:event_jCheckBoxC128VideoColorItemStateChanged private void jCheckBoxC128ScreenMemItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128ScreenMemItemStateChanged option.commentC128ScreenMem=jCheckBoxC128ScreenMem.isSelected(); }//GEN-LAST:event_jCheckBoxC128ScreenMemItemStateChanged private void jCheckBoxC128ColorItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128ColorItemStateChanged option.commentC128Color=jCheckBoxC128Color.isSelected(); }//GEN-LAST:event_jCheckBoxC128ColorItemStateChanged private void jCheckBoxC128BasicRomItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128BasicRomItemStateChanged option.commentC128BasicRom=jCheckBoxC128BasicRom.isSelected(); }//GEN-LAST:event_jCheckBoxC128BasicRomItemStateChanged private void jCheckBoxC128VicIIItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128VicIIItemStateChanged option.commentC128VicII=jCheckBoxC128VicII.isSelected(); }//GEN-LAST:event_jCheckBoxC128VicIIItemStateChanged private void jCheckBoxC128SidItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128SidItemStateChanged option.commentC128Sid=jCheckBoxC128Sid.isSelected(); }//GEN-LAST:event_jCheckBoxC128SidItemStateChanged private void jCheckBoxC128MMUItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128MMUItemStateChanged option.commentC128MMU=jCheckBoxC128MMU.isSelected(); }//GEN-LAST:event_jCheckBoxC128MMUItemStateChanged private void jCheckBoxC128VDCItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128VDCItemStateChanged option.commentC128VDC=jCheckBoxC128VDC.isSelected(); }//GEN-LAST:event_jCheckBoxC128VDCItemStateChanged private void jCheckBoxC128Cia1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128Cia1ItemStateChanged option.commentC128Cia1=jCheckBoxC128Cia1.isSelected(); }//GEN-LAST:event_jCheckBoxC128Cia1ItemStateChanged private void jCheckBoxC128Cia2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128Cia2ItemStateChanged option.commentC128Cia2=jCheckBoxC128Cia2.isSelected(); }//GEN-LAST:event_jCheckBoxC128Cia2ItemStateChanged private void jCheckBoxC128DMAItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128DMAItemStateChanged option.commentC128DMA=jCheckBoxC128DMA.isSelected(); }//GEN-LAST:event_jCheckBoxC128DMAItemStateChanged private void jCheckBoxC128KernalRomItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxC128KernalRomItemStateChanged option.commentC128KernalRom=jCheckBoxC128KernalRom.isSelected(); }//GEN-LAST:event_jCheckBoxC128KernalRomItemStateChanged private void jButtonBrowseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBrowseActionPerformed if (chooserDir.showOpenDialog(this)==JFileChooser.APPROVE_OPTION) { option.tmpPath=chooserDir.getSelectedFile().getPath(); jTextFieldTmpPath.setText(option.tmpPath); } }//GEN-LAST:event_jButtonBrowseActionPerformed private void jSpinnerMaxSwappedAggregateStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerMaxSwappedAggregateStateChanged option.maxSwappedAggregate=(Integer)jSpinnerMaxSwappedAggregate.getValue(); }//GEN-LAST:event_jSpinnerMaxSwappedAggregateStateChanged private void jSpinnerMaxTextAggregateStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerMaxTextAggregateStateChanged option.maxTextAggregate=(Integer)jSpinnerMaxTextAggregate.getValue(); }//GEN-LAST:event_jSpinnerMaxTextAggregateStateChanged private void jSpinnerMaxAddressAggregateStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerMaxAddressAggregateStateChanged option.maxAddressAggregate=(Integer)jSpinnerMaxAddressAggregate.getValue(); }//GEN-LAST:event_jSpinnerMaxAddressAggregateStateChanged private void jSpinnerMaxStackWordAggregateStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerMaxStackWordAggregateStateChanged option.maxStackWordAggregate=(Integer)jSpinnerMaxStackWordAggregate.getValue(); }//GEN-LAST:event_jSpinnerMaxStackWordAggregateStateChanged private void jCheckBoxUbEditItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxUbEditItemStateChanged option.clickUbEdit=jCheckBoxUbEdit.isSelected(); }//GEN-LAST:event_jCheckBoxUbEditItemStateChanged private void jCheckBoxUcEditItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxUcEditItemStateChanged option.clickUcEdit=jCheckBoxUcEdit.isSelected(); }//GEN-LAST:event_jCheckBoxUcEditItemStateChanged private void jCheckBoxUlEditItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxUlEditItemStateChanged option.clickUlEdit=jCheckBoxUlEdit.isSelected(); }//GEN-LAST:event_jCheckBoxUlEditItemStateChanged private void jCheckBoxDcEraseItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxDcEraseItemStateChanged option.clickDcErase=jCheckBoxDcErase.isSelected(); }//GEN-LAST:event_jCheckBoxDcEraseItemStateChanged private void jCheckBoxDlEraseItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxDlEraseItemStateChanged option.clickDlErase=jCheckBoxDlErase.isSelected(); }//GEN-LAST:event_jCheckBoxDlEraseItemStateChanged private void jCheckBoxForceCompilationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxForceCompilationActionPerformed option.forceCompilation=jCheckBoxForceCompilation.isSelected(); }//GEN-LAST:event_jCheckBoxForceCompilationActionPerformed private void jRadioButtonMemoryValueHexItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonMemoryValueHexItemStateChanged option.memoryValue=DataTableModelMemory.MOD_HEX; }//GEN-LAST:event_jRadioButtonMemoryValueHexItemStateChanged private void jRadioButtonMemoryValueCharItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonMemoryValueCharItemStateChanged option.memoryValue=DataTableModelMemory.MOD_CHAR; }//GEN-LAST:event_jRadioButtonMemoryValueCharItemStateChanged private void jSpinnerInstrCSpacesStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerInstrCSpacesStateChanged option.numInstrCSpaces=(Integer)((JSpinner) evt.getSource()).getValue(); }//GEN-LAST:event_jSpinnerInstrCSpacesStateChanged private void jSpinnerInstrCTabsStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerInstrCTabsStateChanged option.numInstrCTabs=(Integer)((JSpinner) evt.getSource()).getValue();; }//GEN-LAST:event_jSpinnerInstrCTabsStateChanged private void jSpinnerDataCSpacesStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerDataCSpacesStateChanged option.numDataCSpaces=(Integer)((JSpinner) evt.getSource()).getValue(); }//GEN-LAST:event_jSpinnerDataCSpacesStateChanged private void jSpinnerDataCTabsStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerDataCTabsStateChanged option.numDataCTabs=(Integer)((JSpinner) evt.getSource()).getValue(); }//GEN-LAST:event_jSpinnerDataCTabsStateChanged private void jCheckBoxAllowUtfActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxAllowUtfActionPerformed option.allowUtf=jCheckBoxAllowUtf.isSelected(); }//GEN-LAST:event_jCheckBoxAllowUtfActionPerformed private void jCheckBoxAllowSIDFreqActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxAllowSIDFreqActionPerformed option.useSidFreq=jCheckBoxAllowSIDFreq.isSelected(); jCheckBoxMarkMemory.setEnabled(option.useSidFreq); jCheckBoxSetLabels.setEnabled(option.useSidFreq); jCheckBoxSetComment.setEnabled(option.useSidFreq); }//GEN-LAST:event_jCheckBoxAllowSIDFreqActionPerformed private void jCheckBoxMarkMemoryActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxMarkMemoryActionPerformed option.sidFreqMarkMem=jCheckBoxMarkMemory.isSelected(); }//GEN-LAST:event_jCheckBoxMarkMemoryActionPerformed private void jCheckBoxSetLabelsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxSetLabelsActionPerformed option.sidFreqCreateLabel=jCheckBoxSetLabels.isSelected(); }//GEN-LAST:event_jCheckBoxSetLabelsActionPerformed private void jCheckBoxSetCommentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxSetCommentActionPerformed option.sidFreqCreateComment=jCheckBoxSetComment.isSelected(); }//GEN-LAST:event_jCheckBoxSetCommentActionPerformed private void jCheckBoxNotUsePSIDActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxNotUsePSIDActionPerformed option.notMarkPSID=jCheckBoxNotUsePSID.isSelected(); }//GEN-LAST:event_jCheckBoxNotUsePSIDActionPerformed private void jCheckBoxCreatePSIDActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxCreatePSIDActionPerformed option.createPSID=jCheckBoxCreatePSID.isSelected(); jCheckBoxNotUsePSID.setEnabled(option.createPSID); }//GEN-LAST:event_jCheckBoxCreatePSIDActionPerformed private void jRadioButtonStandardItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonStandardItemStateChanged option.heather=Option.HEATHER_STANDARD; }//GEN-LAST:event_jRadioButtonStandardItemStateChanged private void jRadioButtonNoneItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonNoneItemStateChanged option.heather=Option.HEATHER_NONE; }//GEN-LAST:event_jRadioButtonNoneItemStateChanged private void jRadioButtonCustomItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonCustomItemStateChanged option.heather=Option.HEATHER_CUSTOM; }//GEN-LAST:event_jRadioButtonCustomItemStateChanged private void jCheckBoxRepositionateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxRepositionateActionPerformed option.repositionate=jCheckBoxRepositionate.isSelected(); }//GEN-LAST:event_jCheckBoxRepositionateActionPerformed private void jCheckBoxPedanticActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxPedanticActionPerformed option.pedantic=jCheckBoxPedantic.isSelected(); }//GEN-LAST:event_jCheckBoxPedanticActionPerformed private void jCheckBoxVlPatchItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxVlPatchItemStateChanged option.clickVlPatch=jCheckBoxVlPatch.isSelected(); }//GEN-LAST:event_jCheckBoxVlPatchItemStateChanged private void jSpinnerDataSpacesOpStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerDataSpacesOpStateChanged int num=(Integer)((JSpinner) evt.getSource()).getValue(); if (num+option.numTabsOp==0) jSpinnerDataSpacesOp.setValue(1); else option.numSpacesOp=num; }//GEN-LAST:event_jSpinnerDataSpacesOpStateChanged private void jSpinnerDataTabsOpStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerDataTabsOpStateChanged option.numTabsOp=(Integer)((JSpinner) evt.getSource()).getValue(); int num=(Integer)((JSpinner) evt.getSource()).getValue(); if (num+option.numSpacesOp==0) jSpinnerDataTabsOp.setValue(1); else option.numTabsOp=num; }//GEN-LAST:event_jSpinnerDataTabsOpStateChanged private void jSpinnerSizePreviewStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerSizePreviewStateChanged option.sizePreviewFont=(Integer)((JSpinner) evt.getSource()).getValue(); option.useSyntaxTheme(option.syntaxTheme); }//GEN-LAST:event_jSpinnerSizePreviewStateChanged private void jSpinnerSizeSourceStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerSizeSourceStateChanged option.sizeSourceFont=(Integer)((JSpinner) evt.getSource()).getValue(); option.useSyntaxTheme(option.syntaxTheme); }//GEN-LAST:event_jSpinnerSizeSourceStateChanged private void jCheckBoxAtariKernalRomItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxAtariKernalRomItemStateChanged option.commentAtariKernalRom=jCheckBoxAtariKernalRom.isSelected(); }//GEN-LAST:event_jCheckBoxAtariKernalRomItemStateChanged private void jCheckBoxAtariAnticItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxAtariAnticItemStateChanged option.commentAtariAntic=jCheckBoxAtariAntic.isSelected(); }//GEN-LAST:event_jCheckBoxAtariAnticItemStateChanged private void jCheckBoxAtariPiaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxAtariPiaItemStateChanged option.commentAtariPia=jCheckBoxAtariPia.isSelected(); }//GEN-LAST:event_jCheckBoxAtariPiaItemStateChanged private void jCheckBoxAtariPokeyItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxAtariPokeyItemStateChanged option.commentAtariPokey=jCheckBoxAtariPokey.isSelected(); }//GEN-LAST:event_jCheckBoxAtariPokeyItemStateChanged private void jCheckBoxAtariGtiaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxAtariGtiaItemStateChanged option.commentAtariGtia=jCheckBoxAtariGtia.isSelected(); }//GEN-LAST:event_jCheckBoxAtariGtiaItemStateChanged private void jCheckBoxAtariCartridgeAItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxAtariCartridgeAItemStateChanged option.commentAtariCartridgeA=jCheckBoxAtariCartridgeA.isSelected(); }//GEN-LAST:event_jCheckBoxAtariCartridgeAItemStateChanged private void jCheckBoxAtariCartridgeBItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxAtariCartridgeBItemStateChanged option.commentAtariCartridgeB=jCheckBoxAtariCartridgeB.isSelected(); }//GEN-LAST:event_jCheckBoxAtariCartridgeBItemStateChanged private void jCheckBoxAtariZeroPageItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxAtariZeroPageItemStateChanged option.commentAtariZeroPage=jCheckBoxAtariZeroPage.isSelected(); }//GEN-LAST:event_jCheckBoxAtariZeroPageItemStateChanged private void jCheckBoxAtariStackAreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxAtariStackAreaItemStateChanged option.commentAtariStackArea=jCheckBoxAtariStackArea.isSelected(); }//GEN-LAST:event_jCheckBoxAtariStackAreaItemStateChanged private void jCheckBoxCreateSAPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxCreateSAPActionPerformed option.createSAP=jCheckBoxCreateSAP.isSelected(); jCheckBoxNotUseSAP.setEnabled(option.createSAP); }//GEN-LAST:event_jCheckBoxCreateSAPActionPerformed private void jCheckBoxNotUseSAPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxNotUseSAPActionPerformed option.notMarkSAP=jCheckBoxNotUseSAP.isSelected(); }//GEN-LAST:event_jCheckBoxNotUseSAPActionPerformed private void jCheckBoxAtari200AreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxAtari200AreaItemStateChanged option.commentAtari_200Area=jCheckBoxAtari200Area.isSelected(); }//GEN-LAST:event_jCheckBoxAtari200AreaItemStateChanged private void jCheckBoxAtari300AreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxAtari300AreaItemStateChanged option.commentAtari_300Area=jCheckBoxAtari300Area.isSelected(); }//GEN-LAST:event_jCheckBoxAtari300AreaItemStateChanged private void jCheckBoxAtari400AreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxAtari400AreaItemStateChanged option.commentAtari_400Area=jCheckBoxAtari400Area.isSelected(); }//GEN-LAST:event_jCheckBoxAtari400AreaItemStateChanged private void jCheckBoxAtari500AreaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxAtari500AreaItemStateChanged option.commentAtari_500Area=jCheckBoxAtari500Area.isSelected(); }//GEN-LAST:event_jCheckBoxAtari500AreaItemStateChanged private void jRadioButtonDotsValueAsciiItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDotsValueAsciiItemStateChanged option.dotsType=Option.DOTS_ASCII; }//GEN-LAST:event_jRadioButtonDotsValueAsciiItemStateChanged private void jRadioButtonDotsValueUtfItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDotsValueUtfItemStateChanged option.dotsType=Option.DOTS_UTF16; }//GEN-LAST:event_jRadioButtonDotsValueUtfItemStateChanged private void jCheckBoxNoUndocumentedActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxNoUndocumentedActionPerformed option.noUndocumented=jCheckBoxNoUndocumented.isSelected(); }//GEN-LAST:event_jCheckBoxNoUndocumentedActionPerformed private void jCheckBoxChooserIconActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxChooserIconActionPerformed option.chooserPerc=jCheckBoxChooserIcon.isSelected(); }//GEN-LAST:event_jCheckBoxChooserIconActionPerformed private void jCheckBoxShowMiniatureActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxShowMiniatureActionPerformed option.showMiniature=jCheckBoxShowMiniature.isSelected(); }//GEN-LAST:event_jCheckBoxShowMiniatureActionPerformed private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing close(); }//GEN-LAST:event_formWindowClosing private void rSyntaxTextAreaSyntaxMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_rSyntaxTextAreaSyntaxMouseClicked }//GEN-LAST:event_rSyntaxTextAreaSyntaxMouseClicked private void rSyntaxTextAreaSyntaxMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_rSyntaxTextAreaSyntaxMouseEntered }//GEN-LAST:event_rSyntaxTextAreaSyntaxMouseEntered private void rSyntaxTextAreaSyntaxMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_rSyntaxTextAreaSyntaxMouseReleased }//GEN-LAST:event_rSyntaxTextAreaSyntaxMouseReleased private void rSyntaxTextAreaSyntaxKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_rSyntaxTextAreaSyntaxKeyReleased }//GEN-LAST:event_rSyntaxTextAreaSyntaxKeyReleased private void jRadioButtonDefaultItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDefaultItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { option.syntaxTheme=Option.SYNTAX_DEFAULT; option.useSyntaxTheme(option.syntaxTheme); } }//GEN-LAST:event_jRadioButtonDefaultItemStateChanged private void jRadioButtonDefaultAltItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDefaultAltItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { option.syntaxTheme=Option.SYNTAX_DEFAULT_ALT; option.useSyntaxTheme(option.syntaxTheme); } }//GEN-LAST:event_jRadioButtonDefaultAltItemStateChanged private void jRadioButtonDarkItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDarkItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { option.syntaxTheme=Option.SYNTAX_DARK; option.useSyntaxTheme(option.syntaxTheme); } }//GEN-LAST:event_jRadioButtonDarkItemStateChanged private void jRadioButtonDruidItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonDruidItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { option.syntaxTheme=Option.SYNTAX_DRUID; option.useSyntaxTheme(option.syntaxTheme); } }//GEN-LAST:event_jRadioButtonDruidItemStateChanged private void jRadioButtonEclipseItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonEclipseItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { option.syntaxTheme=Option.SYNTAX_ECLIPSE; option.useSyntaxTheme(option.syntaxTheme); } }//GEN-LAST:event_jRadioButtonEclipseItemStateChanged private void jRadioButtonIdeaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonIdeaItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { option.syntaxTheme=Option.SYNTAX_IDEA; option.useSyntaxTheme(option.syntaxTheme); } }//GEN-LAST:event_jRadioButtonIdeaItemStateChanged private void jRadioButtonMonokaiItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonMonokaiItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { option.syntaxTheme=Option.SYNTAX_MONOKAI; option.useSyntaxTheme(option.syntaxTheme); } }//GEN-LAST:event_jRadioButtonMonokaiItemStateChanged private void jRadioButtonVSItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonVSItemStateChanged if (evt.getStateChange()==java.awt.event.ItemEvent.SELECTED) { option.syntaxTheme=Option.SYNTAX_VS; option.useSyntaxTheme(option.syntaxTheme); } }//GEN-LAST:event_jRadioButtonVSItemStateChanged private void jButtonBrowseSidIdActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBrowseSidIdActionPerformed if (chooserSidId.showOpenDialog(this)==JFileChooser.APPROVE_OPTION) { option.sidIdPath=chooserSidId.getSelectedFile().getPath(); jTextFieldTmpPathSidId.setText(option.sidIdPath); } readSidId(); }//GEN-LAST:event_jButtonBrowseSidIdActionPerformed private void jCheckBoxShowSidIdActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxShowSidIdActionPerformed option.showSidId=jCheckBoxShowSidId.isSelected(); readSidId(); }//GEN-LAST:event_jCheckBoxShowSidIdActionPerformed private void jCheckBoxLinearTableItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxLinearTableItemStateChanged option.sidFreqLinearTable=jCheckBoxLinearTable.isSelected(); }//GEN-LAST:event_jCheckBoxLinearTableItemStateChanged private void jCheckBoxCombinedTableItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxCombinedTableItemStateChanged option.sidFreqCombinedTable=jCheckBoxCombinedTable.isSelected(); }//GEN-LAST:event_jCheckBoxCombinedTableItemStateChanged private void jCheckBoxInverseLinearTableItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxInverseLinearTableItemStateChanged option.sidFreqInverseLinearTable=jCheckBoxInverseLinearTable.isSelected(); }//GEN-LAST:event_jCheckBoxInverseLinearTableItemStateChanged private void jCheckBoxLinearOctNoteTableItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxLinearOctNoteTableItemStateChanged option.sidFreqLinearOctNoteTable=jCheckBoxLinearOctNoteTable.isSelected(); }//GEN-LAST:event_jCheckBoxLinearOctNoteTableItemStateChanged private void jCheckBoxHiOct13TableItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxHiOct13TableItemStateChanged option.sidFreqHiOct13Table=jCheckBoxHiOct13Table.isSelected(); }//GEN-LAST:event_jCheckBoxHiOct13TableItemStateChanged private void jCheckBoxLinearScaleTableItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxLinearScaleTableItemStateChanged option.sidFreqLinearScaleTable= jCheckBoxLinearScaleTable.isSelected(); }//GEN-LAST:event_jCheckBoxLinearScaleTableItemStateChanged private void jCheckBoxShortLinearTableItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxShortLinearTableItemStateChanged option.sidFreqShortLinearTable=jCheckBoxShortLinearTable.isSelected(); }//GEN-LAST:event_jCheckBoxShortLinearTableItemStateChanged private void jCheckBoxShortCombinedTableItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxShortCombinedTableItemStateChanged option.sidFreqShortCombinedTable=jCheckBoxShortCombinedTable.isSelected(); }//GEN-LAST:event_jCheckBoxShortCombinedTableItemStateChanged private void jCheckBoxHiOctCombinedTableItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxHiOctCombinedTableItemStateChanged option.sidFreqHiOctCombinedTable=jCheckBoxHiOctCombinedTable.isSelected(); }//GEN-LAST:event_jCheckBoxHiOctCombinedTableItemStateChanged private void jCheckBoxHiOctCombinedInvertedTableItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxHiOctCombinedInvertedTableItemStateChanged option.sidFreqHiOctCombinedInvertedTable=jCheckBoxHiOctCombinedInvertedTable.isSelected(); }//GEN-LAST:event_jCheckBoxHiOctCombinedInvertedTableItemStateChanged private void jCheckBoxLoOctCombinedTableItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxLoOctCombinedTableItemStateChanged option.sidFreqLoOctCombinedTable=jCheckBoxLoOctCombinedTable.isSelected(); }//GEN-LAST:event_jCheckBoxLoOctCombinedTableItemStateChanged private void jCheckBoxHiOct12TableItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxHiOct12TableItemStateChanged option.sidFreqHiOct12Table=jCheckBoxHiOct12Table.isSelected(); }//GEN-LAST:event_jCheckBoxHiOct12TableItemStateChanged /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(JOptionDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(JOptionDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(JOptionDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(JOptionDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> /* Create and display the dialog */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { JOptionDialog dialog = new JOptionDialog(new javax.swing.JFrame(), true, null, null); dialog.addWindowListener(new java.awt.event.WindowAdapter() { @Override public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); } }); dialog.setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JScrollPane LinearOctBNoteTableHL; private javax.swing.ButtonGroup buttonGroupCodeData; private javax.swing.ButtonGroup buttonGroupDotsType; private javax.swing.ButtonGroup buttonGroupHeather; private javax.swing.ButtonGroup buttonGroupIllegalOpcodeStyle; private javax.swing.ButtonGroup buttonGroupLanguage; private javax.swing.ButtonGroup buttonGroupLook; private javax.swing.ButtonGroup buttonGroupMemoryValue; private javax.swing.ButtonGroup buttonGroupOpcodeFormatting; private javax.swing.ButtonGroup buttonGroupSyntax; private javax.swing.ButtonGroup buttonGroupTheme; private sw_emulator.swing.JAcmePanel jAcmePanel; private javax.swing.JButton jButtonBrowse; private javax.swing.JButton jButtonBrowseSidId; private javax.swing.JButton jButtonClose; private javax.swing.JButton jButtonLoad; private javax.swing.JButton jButtonSave; private sw_emulator.swing.JCa65Panel jCa65Panel; private javax.swing.JCheckBox jCheckBoxAllowSIDFreq; private javax.swing.JCheckBox jCheckBoxAllowUtf; private javax.swing.JCheckBox jCheckBoxAtari200Area; private javax.swing.JCheckBox jCheckBoxAtari300Area; private javax.swing.JCheckBox jCheckBoxAtari400Area; private javax.swing.JCheckBox jCheckBoxAtari500Area; private javax.swing.JCheckBox jCheckBoxAtariAntic; private javax.swing.JCheckBox jCheckBoxAtariCartridgeA; private javax.swing.JCheckBox jCheckBoxAtariCartridgeB; private javax.swing.JCheckBox jCheckBoxAtariGtia; private javax.swing.JCheckBox jCheckBoxAtariKernalRom; private javax.swing.JCheckBox jCheckBoxAtariPia; private javax.swing.JCheckBox jCheckBoxAtariPokey; private javax.swing.JCheckBox jCheckBoxAtariStackArea; private javax.swing.JCheckBox jCheckBoxAtariZeroPage; private javax.swing.JCheckBox jCheckBoxC128AppProgArea; private javax.swing.JCheckBox jCheckBoxC128BasicRom; private javax.swing.JCheckBox jCheckBoxC128Cia1; private javax.swing.JCheckBox jCheckBoxC128Cia2; private javax.swing.JCheckBox jCheckBoxC128Color; private javax.swing.JCheckBox jCheckBoxC128DMA; private javax.swing.JCheckBox jCheckBoxC128KernalRom; private javax.swing.JCheckBox jCheckBoxC128MMU; private javax.swing.JCheckBox jCheckBoxC128ScreenArea; private javax.swing.JCheckBox jCheckBoxC128ScreenMem; private javax.swing.JCheckBox jCheckBoxC128Sid; private javax.swing.JCheckBox jCheckBoxC128StackArea; private javax.swing.JCheckBox jCheckBoxC128UserBasic; private javax.swing.JCheckBox jCheckBoxC128VDC; private javax.swing.JCheckBox jCheckBoxC128VicII; private javax.swing.JCheckBox jCheckBoxC128VideoColor; private javax.swing.JCheckBox jCheckBoxC128ZeroPage; private javax.swing.JCheckBox jCheckBoxC128_200Area; private javax.swing.JCheckBox jCheckBoxC128_300Area; private javax.swing.JCheckBox jCheckBoxC1541Buffer0; private javax.swing.JCheckBox jCheckBoxC1541Buffer1; private javax.swing.JCheckBox jCheckBoxC1541Buffer2; private javax.swing.JCheckBox jCheckBoxC1541Buffer3; private javax.swing.JCheckBox jCheckBoxC1541Buffer4; private javax.swing.JCheckBox jCheckBoxC1541Kernal; private javax.swing.JCheckBox jCheckBoxC1541StackArea; private javax.swing.JCheckBox jCheckBoxC1541Via1; private javax.swing.JCheckBox jCheckBoxC1541Via2; private javax.swing.JCheckBox jCheckBoxC1541ZeroPage; private javax.swing.JCheckBox jCheckBoxC1541_200Area; private javax.swing.JCheckBox jCheckBoxC64BasicRom; private javax.swing.JCheckBox jCheckBoxC64Cia1; private javax.swing.JCheckBox jCheckBoxC64Cia2; private javax.swing.JCheckBox jCheckBoxC64Color; private javax.swing.JCheckBox jCheckBoxC64FreeArea; private javax.swing.JCheckBox jCheckBoxC64FreeRam; private javax.swing.JCheckBox jCheckBoxC64KernalRom; private javax.swing.JCheckBox jCheckBoxC64ScreenArea; private javax.swing.JCheckBox jCheckBoxC64StackArea; private javax.swing.JCheckBox jCheckBoxC64ZeroPage; private javax.swing.JCheckBox jCheckBoxC64_200Area; private javax.swing.JCheckBox jCheckBoxC64_300Area; private javax.swing.JCheckBox jCheckBoxChooserIcon; private javax.swing.JCheckBox jCheckBoxCombinedTable; private javax.swing.JCheckBox jCheckBoxCreatePSID; private javax.swing.JCheckBox jCheckBoxCreateSAP; private javax.swing.JCheckBox jCheckBoxDcErase; private javax.swing.JCheckBox jCheckBoxDlErase; private javax.swing.JCheckBox jCheckBoxEraseDComm; private javax.swing.JCheckBox jCheckBoxErasePlus; private javax.swing.JCheckBox jCheckBoxForceCompilation; private javax.swing.JCheckBox jCheckBoxHiOct12Table; private javax.swing.JCheckBox jCheckBoxHiOct13Table; private javax.swing.JCheckBox jCheckBoxHiOctCombinedInvertedTable; private javax.swing.JCheckBox jCheckBoxHiOctCombinedTable; private javax.swing.JCheckBox jCheckBoxInverseLinearTable; private javax.swing.JCheckBox jCheckBoxLabel; private javax.swing.JCheckBox jCheckBoxLinearOctNoteTable; private javax.swing.JCheckBox jCheckBoxLinearScaleTable; private javax.swing.JCheckBox jCheckBoxLinearTable; private javax.swing.JCheckBox jCheckBoxLoOctCombinedTable; private javax.swing.JCheckBox jCheckBoxMarkMemory; private javax.swing.JCheckBox jCheckBoxNoUndocumented; private javax.swing.JCheckBox jCheckBoxNotUsePSID; private javax.swing.JCheckBox jCheckBoxNotUseSAP; private javax.swing.JCheckBox jCheckBoxOpcodeFormattingPreview; private javax.swing.JCheckBox jCheckBoxOpcodeFormattingSource; private javax.swing.JCheckBox jCheckBoxPedantic; private javax.swing.JCheckBox jCheckBoxPlus4Acia; private javax.swing.JCheckBox jCheckBoxPlus4BasicExt; private javax.swing.JCheckBox jCheckBoxPlus4BasicRamN; private javax.swing.JCheckBox jCheckBoxPlus4BasicRamP; private javax.swing.JCheckBox jCheckBoxPlus4BasicRom; private javax.swing.JCheckBox jCheckBoxPlus4Caracter; private javax.swing.JCheckBox jCheckBoxPlus4ColorArea; private javax.swing.JCheckBox jCheckBoxPlus4ColorBitmap; private javax.swing.JCheckBox jCheckBoxPlus4GraphicData; private javax.swing.JCheckBox jCheckBoxPlus4Kernal; private javax.swing.JCheckBox jCheckBoxPlus4Luminance; private javax.swing.JCheckBox jCheckBoxPlus4StackArea; private javax.swing.JCheckBox jCheckBoxPlus4Ted; private javax.swing.JCheckBox jCheckBoxPlus4VideoArea; private javax.swing.JCheckBox jCheckBoxPlus4ZeroPage; private javax.swing.JCheckBox jCheckBoxPlus4_200Area; private javax.swing.JCheckBox jCheckBoxPlus4_300Area; private javax.swing.JCheckBox jCheckBoxPlus4_400Area; private javax.swing.JCheckBox jCheckBoxPlus4_500Area; private javax.swing.JCheckBox jCheckBoxPlus4_600Area; private javax.swing.JCheckBox jCheckBoxPlus4_6529B_1; private javax.swing.JCheckBox jCheckBoxPlus4_6529B_2; private javax.swing.JCheckBox jCheckBoxPlus4_700Area; private javax.swing.JCheckBox jCheckBoxRepositionate; private javax.swing.JCheckBox jCheckBoxSetComment; private javax.swing.JCheckBox jCheckBoxSetLabels; private javax.swing.JCheckBox jCheckBoxShortCombinedTable; private javax.swing.JCheckBox jCheckBoxShortLinearTable; private javax.swing.JCheckBox jCheckBoxShowMiniature; private javax.swing.JCheckBox jCheckBoxShowSidId; private javax.swing.JCheckBox jCheckBoxUbEdit; private javax.swing.JCheckBox jCheckBoxUcEdit; private javax.swing.JCheckBox jCheckBoxUlEdit; private javax.swing.JCheckBox jCheckBoxUndefinedCode; private javax.swing.JCheckBox jCheckBoxVic20BasicRom; private javax.swing.JCheckBox jCheckBoxVic20Block2; private javax.swing.JCheckBox jCheckBoxVic20Block3; private javax.swing.JCheckBox jCheckBoxVic20Block4; private javax.swing.JCheckBox jCheckBoxVic20Character; private javax.swing.JCheckBox jCheckBoxVic20Color; private javax.swing.JCheckBox jCheckBoxVic20KernalRom; private javax.swing.JCheckBox jCheckBoxVic20Screen; private javax.swing.JCheckBox jCheckBoxVic20StackArea; private javax.swing.JCheckBox jCheckBoxVic20UserBasic; private javax.swing.JCheckBox jCheckBoxVic20Via1; private javax.swing.JCheckBox jCheckBoxVic20Via2; private javax.swing.JCheckBox jCheckBoxVic20Vic; private javax.swing.JCheckBox jCheckBoxVic20ZeroPage; private javax.swing.JCheckBox jCheckBoxVic20_200Area; private javax.swing.JCheckBox jCheckBoxVic20_300Area; private javax.swing.JCheckBox jCheckBoxVic20_400Area; private javax.swing.JCheckBox jCheckBoxVic20_8kExp1; private javax.swing.JCheckBox jCheckBoxVic20_8kExp2; private javax.swing.JCheckBox jCheckBoxVic20_8kExp3; private javax.swing.JCheckBox jCheckBoxVlPatch; private javax.swing.JCheckBox jCheckC64BoxSid; private javax.swing.JCheckBox jCheckC64BoxVicII; private javax.swing.JComboBox<String> jComboBoxAssembler; private sw_emulator.swing.JDasmPanel jDasmPanel; private sw_emulator.swing.JGlassPanel jGlassPanel; private sw_emulator.swing.JKickPanel jKickPanel; private javax.swing.JLabel jLabelAggregate; private javax.swing.JLabel jLabelArrow; private javax.swing.JLabel jLabelAutoComment; private javax.swing.JLabel jLabelBracket; private javax.swing.JLabel jLabelDataCSep; private javax.swing.JLabel jLabelDataCSpace; private javax.swing.JLabel jLabelDataCTabs; private javax.swing.JLabel jLabelDataSep; private javax.swing.JLabel jLabelDataSepOp; private javax.swing.JLabel jLabelDataSpace; private javax.swing.JLabel jLabelDataSpaceOp; private javax.swing.JLabel jLabelDataTabs; private javax.swing.JLabel jLabelDataTabsOp; private javax.swing.JLabel jLabelDotsType; private javax.swing.JLabel jLabelFlatLaf; private javax.swing.JLabel jLabelFontSize; private javax.swing.JLabel jLabelFontSizePreview; private javax.swing.JLabel jLabelFontSizeSource; private javax.swing.JLabel jLabelHeather; private javax.swing.JLabel jLabelIllegalOpcodeStyle; private javax.swing.JLabel jLabelInstrCSep; private javax.swing.JLabel jLabelInstrCSpace; private javax.swing.JLabel jLabelInstrCTabs; private javax.swing.JLabel jLabelInstrSep; private javax.swing.JLabel jLabelInstrSpace; private javax.swing.JLabel jLabelInstrTabs; private javax.swing.JLabel jLabelLanguage; private javax.swing.JLabel jLabelLanguage1; private javax.swing.JLabel jLabelLook; private javax.swing.JLabel jLabelMaxAddress; private javax.swing.JLabel jLabelMaxByte; private javax.swing.JLabel jLabelMaxLength; private javax.swing.JLabel jLabelMaxLong; private javax.swing.JLabel jLabelMaxStackWord; private javax.swing.JLabel jLabelMaxSwapped; private javax.swing.JLabel jLabelMaxText; private javax.swing.JLabel jLabelMaxTribyte; private javax.swing.JLabel jLabelMaxWord; private javax.swing.JLabel jLabelPSIDinitsong; private javax.swing.JLabel jLabelPSIDplaysound; private javax.swing.JLabel jLabelSIDfreqHi; private javax.swing.JLabel jLabelSIDfreqLo; private javax.swing.JLabel jLabelSidFreq; private javax.swing.JLabel jLabelSyntax; private javax.swing.JLabel jLabelTheme; private javax.swing.JLabel jLabelTmpPath; private javax.swing.JLabel jLabelTmpPathSidId; private javax.swing.JLabel jLabelautocomment; private javax.swing.JList<String> jListLaf; private javax.swing.JPanel jPanelAtariComm; private javax.swing.JPanel jPanelC128Comm; private javax.swing.JPanel jPanelC1541Comm; private javax.swing.JPanel jPanelC64Comm; private javax.swing.JPanel jPanelComment; private javax.swing.JPanel jPanelDisassembler; private javax.swing.JPanel jPanelDn; private javax.swing.JPanel jPanelLook; private javax.swing.JPanel jPanelOption; private javax.swing.JPanel jPanelPlus4Comm; private javax.swing.JPanel jPanelPreview; private javax.swing.JPanel jPanelSidFreq; private javax.swing.JPanel jPanelVic20Comm; private javax.swing.JRadioButton jRadioButtonAqua; private javax.swing.JRadioButton jRadioButtonCharcoal; private javax.swing.JRadioButton jRadioButtonCustom; private javax.swing.JRadioButton jRadioButtonDark; private javax.swing.JRadioButton jRadioButtonDefault; private javax.swing.JRadioButton jRadioButtonDefaultAlt; private javax.swing.JRadioButton jRadioButtonDotsValueAscii; private javax.swing.JRadioButton jRadioButtonDotsValueUtf; private javax.swing.JRadioButton jRadioButtonDruid; private javax.swing.JRadioButton jRadioButtonEclipse; private javax.swing.JRadioButton jRadioButtonEmerald; private javax.swing.JRadioButton jRadioButtonHighContrast; private javax.swing.JRadioButton jRadioButtonIdea; private javax.swing.JRadioButton jRadioButtonLangEnglish; private javax.swing.JRadioButton jRadioButtonLangItalian; private javax.swing.JRadioButton jRadioButtonLookCWin; private javax.swing.JRadioButton jRadioButtonLookGtk; private javax.swing.JRadioButton jRadioButtonLookJava; private javax.swing.JRadioButton jRadioButtonLookMac; private javax.swing.JRadioButton jRadioButtonLookMetal; private javax.swing.JRadioButton jRadioButtonLookNimbus; private javax.swing.JRadioButton jRadioButtonLookSynth; private javax.swing.JRadioButton jRadioButtonLookWin; private javax.swing.JRadioButton jRadioButtonMemoryValueChar; private javax.swing.JRadioButton jRadioButtonMemoryValueHex; private javax.swing.JRadioButton jRadioButtonMonokai; private javax.swing.JRadioButton jRadioButtonNone; private javax.swing.JRadioButton jRadioButtonOcean; private javax.swing.JRadioButton jRadioButtonRuby; private javax.swing.JRadioButton jRadioButtonStandard; private javax.swing.JRadioButton jRadioButtonSteel; private javax.swing.JRadioButton jRadioButtonStyle1; private javax.swing.JRadioButton jRadioButtonStyle2; private javax.swing.JRadioButton jRadioButtonStyle3; private javax.swing.JRadioButton jRadioButtonVS; private javax.swing.JScrollPane jScrollPaneAcme; private javax.swing.JScrollPane jScrollPaneCa65; private javax.swing.JScrollPane jScrollPaneCombinedTableHL; private javax.swing.JScrollPane jScrollPaneCombinedTableLH; private javax.swing.JScrollPane jScrollPaneDasm; private javax.swing.JScrollPane jScrollPaneGlass; private javax.swing.JScrollPane jScrollPaneHeather; private javax.swing.JScrollPane jScrollPaneInverseLinearTableHL; private javax.swing.JScrollPane jScrollPaneInverseLinearTableLH; private javax.swing.JScrollPane jScrollPaneKickAssembler; private javax.swing.JScrollPane jScrollPaneLinearHiOct12Table; private javax.swing.JScrollPane jScrollPaneLinearHiOct13Table; private javax.swing.JScrollPane jScrollPaneLinearHiOctCombinedInvertedTable; private javax.swing.JScrollPane jScrollPaneLinearHiOctCombinedTable; private javax.swing.JScrollPane jScrollPaneLinearLoOctCombinedTable; private javax.swing.JScrollPane jScrollPaneLinearOctBNoteTableLH; private javax.swing.JScrollPane jScrollPaneLinearScaleTableHL; private javax.swing.JScrollPane jScrollPaneLinearScaleTableLH; private javax.swing.JScrollPane jScrollPaneLinearTableHL; private javax.swing.JScrollPane jScrollPaneLinearTableLH; private javax.swing.JScrollPane jScrollPaneList; private javax.swing.JScrollPane jScrollPanePreview; private javax.swing.JScrollPane jScrollPaneSidFreq; private javax.swing.JScrollPane jScrollPaneSyntax; private javax.swing.JScrollPane jScrollPaneTMPx; private javax.swing.JScrollPane jScrollPaneTass64; private javax.swing.JSeparator jSeparator1; private javax.swing.JSeparator jSeparator2; private javax.swing.JSeparator jSeparatorRadioButtons; private javax.swing.JSeparator jSeparatorSourceHeder; private javax.swing.JSpinner jSpinnerDataCSpaces; private javax.swing.JSpinner jSpinnerDataCTabs; private javax.swing.JSpinner jSpinnerDataSpaces; private javax.swing.JSpinner jSpinnerDataSpacesOp; private javax.swing.JSpinner jSpinnerDataTabs; private javax.swing.JSpinner jSpinnerDataTabsOp; private javax.swing.JSpinner jSpinnerInstrCSpaces; private javax.swing.JSpinner jSpinnerInstrCTabs; private javax.swing.JSpinner jSpinnerInstrSpaces; private javax.swing.JSpinner jSpinnerInstrTabs; private javax.swing.JSpinner jSpinnerMaxAddressAggregate; private javax.swing.JSpinner jSpinnerMaxByteAggregate; private javax.swing.JSpinner jSpinnerMaxLength; private javax.swing.JSpinner jSpinnerMaxLongAggregate; private javax.swing.JSpinner jSpinnerMaxStackWordAggregate; private javax.swing.JSpinner jSpinnerMaxSwappedAggregate; private javax.swing.JSpinner jSpinnerMaxTextAggregate; private javax.swing.JSpinner jSpinnerMaxTribyteAggregate; private javax.swing.JSpinner jSpinnerMaxWordAggregate; private javax.swing.JSpinner jSpinnerSizePreview; private javax.swing.JSpinner jSpinnerSizeSource; private javax.swing.JTabbedPane jTabbedPaneAssembler; private javax.swing.JTabbedPane jTabbedPaneComm; private javax.swing.JTabbedPane jTabbedPaneOption; private sw_emulator.swing.JTass64Panel jTass64Panel; private javax.swing.JTextArea jTextAreaHeather; private javax.swing.JTextField jTextFieldCombinedTable; private javax.swing.JTextField jTextFieldInitSongs; private javax.swing.JTextField jTextFieldPlaySound; private javax.swing.JTextField jTextFieldShortLinearTable; private javax.swing.JTextField jTextFieldSidFreqHi; private javax.swing.JTextField jTextFieldSidFreqLo; private javax.swing.JTextField jTextFieldTmpPath; private javax.swing.JTextField jTextFieldTmpPathSidId; private javax.swing.JTextPane jTextPaneCombinedTableLH; private javax.swing.JTextPane jTextPaneInverseLinearTableHL; private javax.swing.JTextPane jTextPaneInverseLinearTableLH; private javax.swing.JTextPane jTextPaneLinearHiOct12Table; private javax.swing.JTextPane jTextPaneLinearHiOct13Table; private javax.swing.JTextPane jTextPaneLinearHiOctCombinedInvertedTable; private javax.swing.JTextPane jTextPaneLinearHiOctCombinedTable; private javax.swing.JTextPane jTextPaneLinearLoOctCombinedTable; private javax.swing.JTextPane jTextPaneLinearOctBNoteTableLH; private javax.swing.JTextPane jTextPaneLinearOctNoteTableHL; private javax.swing.JTextPane jTextPaneLinearScaleTableHL; private javax.swing.JTextPane jTextPaneLinearScaleTableLH; private javax.swing.JTextPane jTextPaneLinearTableHL; private javax.swing.JTextPane jTextPaneLinearTableLH; private javax.swing.JTextPane jTextPanecombinedTableHL; private sw_emulator.swing.JTmpxPanel jTmpxPanel; private org.fife.ui.rsyntaxtextarea.RSyntaxTextArea rSyntaxTextAreaSyntax; // End of variables declaration//GEN-END:variables /** * Use the passed option container * * @param option the option to use */ public void useOption(Option option) { this.option=option; jDasmPanel.setUp(option); jTmpxPanel.setUp(option); jCa65Panel.setUp(option); jAcmePanel.setUp(option); jKickPanel.setUp(option); jTass64Panel.setUp(option); jGlassPanel.setUp(option); applyOption(); } /** * Apply option to graphical container */ private void applyOption() { jRadioButtonLangEnglish.setSelected(option.commentLanguage==C64Dasm.LANG_ENGLISH); jRadioButtonLangItalian.setSelected(option.commentLanguage==C64Dasm.LANG_ITALIAN); jRadioButtonStyle1.setSelected((option.illegalOpcodeMode==M6510Dasm.MODE1)); jRadioButtonStyle2.setSelected((option.illegalOpcodeMode==M6510Dasm.MODE2)); jRadioButtonStyle3.setSelected((option.illegalOpcodeMode==M6510Dasm.MODE3)); jRadioButtonMemoryValueHex.setSelected(option.memoryValue==DataTableModelMemory.MOD_HEX); jRadioButtonMemoryValueChar.setSelected(option.memoryValue==DataTableModelMemory.MOD_CHAR); jCheckBoxOpcodeFormattingPreview.setSelected(option.opcodeUpperCasePreview); jCheckBoxOpcodeFormattingSource.setSelected(option.opcodeUpperCaseSource); jCheckBoxUndefinedCode.setSelected(option.useAsCode); jCheckBoxEraseDComm.setSelected(option.eraseDComm); jCheckBoxErasePlus.setSelected(option.erasePlus); jTextFieldInitSongs.setText(option.psidInitSongsLabel); jTextFieldPlaySound.setText(option.psidPlaySoundsLabel); jTextFieldSidFreqLo.setText(option.sidFreqLoLabel); jTextFieldSidFreqHi.setText(option.sidFreqHiLabel); jSpinnerMaxLength.setValue(option.maxLabelLength); jSpinnerMaxByteAggregate.setValue(option.maxByteAggregate); jSpinnerMaxTribyteAggregate.setValue(option.maxTribyteAggregate); jSpinnerMaxWordAggregate.setValue(option.maxWordAggregate); jSpinnerMaxLongAggregate.setValue(option.maxLongAggregate); jSpinnerMaxSwappedAggregate.setValue(option.maxSwappedAggregate); jSpinnerMaxTextAggregate.setValue(option.maxTextAggregate); jSpinnerMaxAddressAggregate.setValue(option.maxAddressAggregate); jSpinnerMaxStackWordAggregate.setValue(option.maxStackWordAggregate); jSpinnerInstrSpaces.setValue(option.numInstrSpaces); jSpinnerInstrTabs.setValue(option.numInstrTabs); jSpinnerDataSpaces.setValue(option.numDataSpaces); jSpinnerDataTabs.setValue(option.numDataTabs); jSpinnerInstrCSpaces.setValue(option.numInstrCSpaces); jSpinnerInstrCTabs.setValue(option.numInstrCTabs); jSpinnerDataCSpaces.setValue(option.numDataCSpaces); jSpinnerDataCTabs.setValue(option.numDataCTabs); jSpinnerDataSpacesOp.setValue(option.numSpacesOp); jSpinnerDataTabsOp.setValue(option.numTabsOp); jSpinnerSizePreview.setValue(option.sizePreviewFont); jSpinnerSizeSource.setValue(option.sizeSourceFont); jCheckBoxLabel.setSelected(option.labelOnSepLine); jTextFieldTmpPath.setText(option.tmpPath); jTextFieldTmpPathSidId.setText(option.sidIdPath); jCheckBoxDcErase.setSelected(option.clickDcErase); jCheckBoxDlErase.setSelected(option.clickDlErase); jCheckBoxUbEdit.setSelected(option.clickUbEdit); jCheckBoxUcEdit.setSelected(option.clickUcEdit); jCheckBoxUlEdit.setSelected(option.clickUlEdit); jCheckBoxVlPatch.setSelected(option.clickVlPatch); jCheckBoxForceCompilation.setSelected(option.forceCompilation); jCheckBoxAllowUtf.setSelected(option.allowUtf); jCheckBoxAllowSIDFreq.setSelected(option.useSidFreq); jCheckBoxMarkMemory.setSelected(option.sidFreqMarkMem); jCheckBoxSetLabels.setSelected(option.sidFreqCreateLabel); jCheckBoxSetComment.setSelected(option.sidFreqCreateComment); jCheckBoxMarkMemory.setEnabled(option.useSidFreq); jCheckBoxSetLabels.setEnabled(option.useSidFreq); jCheckBoxSetComment.setEnabled(option.useSidFreq); jCheckBoxNoUndocumented.setSelected(option.noUndocumented); jCheckBoxChooserIcon.setSelected(option.chooserPerc); jCheckBoxShowSidId.setSelected(option.showSidId); jCheckBoxNotUsePSID.setSelected(option.notMarkPSID); jCheckBoxCreatePSID.setSelected(option.createPSID); jCheckBoxNotUsePSID.setEnabled(option.createPSID); jCheckBoxNotUseSAP.setSelected(option.notMarkSAP); jCheckBoxCreateSAP.setSelected(option.createSAP); jCheckBoxNotUseSAP.setEnabled(option.createSAP); jCheckBoxRepositionate.setSelected(option.repositionate); jCheckBoxPedantic.setSelected(option.pedantic); jCheckBoxShowMiniature.setSelected(option.showMiniature); jCheckBoxLinearTable.setSelected(option.sidFreqLinearTable); jCheckBoxCombinedTable.setSelected(option.sidFreqCombinedTable); jCheckBoxInverseLinearTable.setSelected(option.sidFreqInverseLinearTable); jCheckBoxLinearOctNoteTable.setSelected((option.sidFreqLinearOctNoteTable)); jCheckBoxHiOct13Table.setSelected(option.sidFreqHiOct13Table); jCheckBoxLinearScaleTable.setSelected(option.sidFreqLinearScaleTable); jCheckBoxShortLinearTable.setSelected(option.sidFreqShortLinearTable); jCheckBoxShortCombinedTable.setSelected(option.sidFreqShortCombinedTable); jCheckBoxHiOctCombinedTable.setSelected(option.sidFreqHiOctCombinedTable); jCheckBoxHiOctCombinedInvertedTable.setSelected(option.sidFreqHiOctCombinedInvertedTable); jCheckBoxLoOctCombinedTable.setSelected(option.sidFreqLoOctCombinedTable); jCheckBoxHiOct12Table.setSelected(option.sidFreqHiOct12Table); switch (option.heather) { case Option.HEATHER_STANDARD: jRadioButtonStandard.setSelected(true); break; case Option.HEATHER_NONE: jRadioButtonNone.setSelected(true); break; case Option.HEATHER_CUSTOM: jRadioButtonCustom.setSelected(true); break; } jTextAreaHeather.setText(option.custom); actualLEF=option.getLafName(); actualTheme=option.getMethalTheme(); actualLaf=option.getFlatLaf(); switch (option.dotsType) { case Option.DOTS_ASCII: jRadioButtonDotsValueAscii.setSelected(true); break; case Option.DOTS_UTF16: jRadioButtonDotsValueUtf.setSelected(true); break; } // select the right element String name; for (int i=0; i<listModel.size(); i++) { name=(String)listModel.elementAt(i); if (name.equals(actualLaf)) jListLaf.setSelectedIndex(i); } goFlat=true; // show the look and feel radio selected String lafName=option.getLafName(); if (lafName.equals(Option.LAF_GTK)) jRadioButtonLookGtk.setSelected(true); if (lafName.equals(Option.LAF_MAC)) jRadioButtonLookMac.setSelected(true); if (lafName.equals(Option.LAF_METAL)) jRadioButtonLookMetal.setSelected(true); if (lafName.equals(Option.LAF_MOTIF)) jRadioButtonLookJava.setSelected(true); if (lafName.equals(Option.LAF_WINDOWS)) jRadioButtonLookWin.setSelected(true); if (lafName.equals(Option.LAF_CWINDOWS)) jRadioButtonLookCWin.setSelected(true); if (lafName.equals(Option.LAF_NIMBUS)) jRadioButtonLookNimbus.setSelected(true); if (lafName.equals(Option.LAF_SYNTH)) { jRadioButtonLookSynth.setSelected(true); jListLaf.setEnabled(true); } selectedTheme(); selectedSyntax(); //assembler jComboBoxAssembler.setSelectedItem(null); jComboBoxAssembler.setSelectedItem(option.assembler.getName()); jDasmPanel.applyOptionDasm(); jTmpxPanel.applyOptionTmpx(); jCa65Panel.applyOptionC65(); jAcmePanel.applyOptionAcme(); jKickPanel.applyOptionKickAssembler(); jTass64Panel.applyOptionTass64(); jGlassPanel.applyOptionGlass(); applyCommentsC64(); applyCommentsC1541(); applyCommentsPlus4(); applyCommentsVic20(); applyCommentsC128(); applyCommentsAtari(); readSidId(); } /** * Disable the themes buttons */ private void disableTheme() { jRadioButtonOcean.setEnabled(false); jRadioButtonSteel.setEnabled(false); jRadioButtonAqua.setEnabled(false); jRadioButtonCharcoal.setEnabled(false); jRadioButtonHighContrast.setEnabled(false); jRadioButtonEmerald.setEnabled(false); jRadioButtonRuby.setEnabled(false); } /** * Enable the themes buttons */ private void enableTheme() { jRadioButtonOcean.setEnabled(true); jRadioButtonSteel.setEnabled(true); jRadioButtonAqua.setEnabled(true); jRadioButtonCharcoal.setEnabled(true); jRadioButtonHighContrast.setEnabled(true); jRadioButtonEmerald.setEnabled(true); jRadioButtonRuby.setEnabled(true); } /** * Select the theme in radio button */ public void selectedTheme() { switch (option.getTheme()) { case Option.THEME_OCEAN: jRadioButtonOcean.setSelected(true); break; case Option.THEME_STEEL: jRadioButtonSteel.setSelected(true); break; case Option.THEME_AQUA: jRadioButtonAqua.setSelected(true); break; case Option.THEME_CHARCOAL: jRadioButtonCharcoal.setSelected(true); break; case Option.THEME_CONTRAST: jRadioButtonHighContrast.setSelected(true); break; case Option.THEME_EMERALD: jRadioButtonEmerald.setSelected(true); break; case Option.THEME_RUBY: jRadioButtonRuby.setSelected(true); break; } } /** * Select the syntax in radio button */ public void selectedSyntax() { switch (option.syntaxTheme) { case Option.SYNTAX_DARK: jRadioButtonDark.setSelected(true); break; case Option.SYNTAX_DEFAULT: jRadioButtonDefault.setSelected(true); break; case Option.SYNTAX_DEFAULT_ALT: jRadioButtonDefaultAlt.setSelected(true); break; case Option.SYNTAX_DRUID: jRadioButtonDruid.setSelected(true); break; case Option.SYNTAX_ECLIPSE: jRadioButtonEclipse.setSelected(true); break; case Option.SYNTAX_IDEA: jRadioButtonIdea.setSelected(true); break; case Option.SYNTAX_MONOKAI: jRadioButtonMonokai.setSelected(true); break; case Option.SYNTAX_VS: jRadioButtonVS.setSelected(true); break; } } /** * Apply comments for C64 */ private void applyCommentsC64() { jCheckBoxC64ZeroPage.setSelected(option.commentC64ZeroPage); jCheckBoxC64StackArea.setSelected(option.commentC64StackArea); jCheckBoxC64_200Area.setSelected(option.commentC64_200Area); jCheckBoxC64_300Area.setSelected(option.commentC64_300Area); jCheckBoxC64FreeArea.setSelected(option.commentC64BasicFreeArea); jCheckBoxC64BasicRom.setSelected(option.commentC64BasicRom); jCheckBoxC64FreeRam.setSelected(option.commentC64FreeRam); jCheckC64BoxVicII.setSelected(option.commentC64VicII); jCheckC64BoxSid.setSelected(option.commentC64Sid); jCheckBoxC64Color.setSelected(option.commentC64ColorArea); jCheckBoxC64Cia1.setSelected(option.commentC64Cia1); jCheckBoxC64Cia2.setSelected(option.commentC64Cia2); jCheckBoxC64KernalRom.setSelected(option.commentC64ScreenArea); jCheckBoxC64ScreenArea.setSelected(option.commentC64ScreenArea); } /** * Apply comments for C1541 */ private void applyCommentsC1541() { jCheckBoxC1541ZeroPage.setSelected(option.commentC1541ZeroPage); jCheckBoxC1541StackArea.setSelected(option.commentC1541StackArea); jCheckBoxC1541_200Area.setSelected(option.commentC1541_200Area); jCheckBoxC1541Via1.setSelected(option.commentC1541Via1); jCheckBoxC1541Via2.setSelected(option.commentC1541Via2); jCheckBoxC1541Kernal.setSelected(option.commentC1541Kernal); jCheckBoxC1541Buffer0.setSelected(option.commentC1541Buffer0); jCheckBoxC1541Buffer1.setSelected(option.commentC1541Buffer1); jCheckBoxC1541Buffer2.setSelected(option.commentC1541Buffer2); jCheckBoxC1541Buffer3.setSelected(option.commentC1541Buffer3); jCheckBoxC1541Buffer4.setSelected(option.commentC1541Buffer4); } /** * Apply comments Plus4 */ private void applyCommentsPlus4() { jCheckBoxPlus4Acia.setSelected(option.commentPlus4Acia); jCheckBoxPlus4BasicExt.setSelected(option.commentPlus4BasicExt); jCheckBoxPlus4BasicRamN.setSelected(option.commentPlus4BasicRamN); jCheckBoxPlus4BasicRamP.setSelected(option.commentPlus4BasicRamP); jCheckBoxPlus4BasicRom.setSelected(option.commentPlus4BasicRom); jCheckBoxPlus4Caracter.setSelected(option.commentPlus4Caracter); jCheckBoxPlus4ColorArea.setSelected(option.commentPlus4ColorArea); jCheckBoxPlus4ColorBitmap.setSelected(option.commentPlus4ColorBitmap); jCheckBoxPlus4GraphicData.setSelected(option.commentPlus4GraphicData); jCheckBoxPlus4Kernal.setSelected(option.commentPlus4Kernal); jCheckBoxPlus4Luminance.setSelected(option.commentPlus4Luminance); jCheckBoxPlus4StackArea.setSelected(option.commentPlus4StackArea); jCheckBoxPlus4Ted.setSelected(option.commentPlus4Ted); jCheckBoxPlus4VideoArea.setSelected(option.commentPlus4VideoArea); jCheckBoxPlus4ZeroPage.setSelected(option.commentPlus4ZeroPage); jCheckBoxPlus4_200Area.setSelected(option.commentPlus4_200Area); jCheckBoxPlus4_300Area.setSelected(option.commentPlus4_300Area); jCheckBoxPlus4_400Area.setSelected(option.commentPlus4_400Area); jCheckBoxPlus4_500Area.setSelected(option.commentPlus4_500Area); jCheckBoxPlus4_600Area.setSelected(option.commentPlus4_600Area); jCheckBoxPlus4_6529B_1.setSelected(option.commentPlus4_6529B_1); jCheckBoxPlus4_6529B_2.setSelected(option.commentPlus4_6529B_2); jCheckBoxPlus4_700Area.setSelected(option.commentPlus4_700Area); } /** * Apply comemnts for Vic20 */ private void applyCommentsVic20() { jCheckBoxVic20BasicRom.setSelected(option.commentVic20BasicRom); jCheckBoxVic20Block2.setSelected(option.commentVic20Block2); jCheckBoxVic20Block3.setSelected(option.commentVic20Block3); jCheckBoxVic20Block4.setSelected(option.commentVic20Block4); jCheckBoxVic20Character.setSelected(option.commentVic20Character); jCheckBoxVic20Color.setSelected(option.commentVic20Color); jCheckBoxVic20KernalRom.setSelected(option.commentVic20KernalRom); jCheckBoxVic20Screen.setSelected(option.commentVic20Screen); jCheckBoxVic20StackArea.setSelected(option.commentVic20StackArea); jCheckBoxVic20UserBasic.setSelected(option.commentVic20UserBasic); jCheckBoxVic20Via1.setSelected(option.commentVic20Via1); jCheckBoxVic20Via2.setSelected(option.commentVic20Via2); jCheckBoxVic20Vic.setSelected(option.commentVic20Vic); jCheckBoxVic20ZeroPage.setSelected(option.commentVic20ZeroPage); jCheckBoxVic20_200Area.setSelected(option.commentVic20_200Area); jCheckBoxVic20_300Area.setSelected(option.commentVic20_300Area); jCheckBoxVic20_400Area.setSelected(option.commentVic20_400Area); jCheckBoxVic20_8kExp1.setSelected(option.commentVic20_8kExp1); jCheckBoxVic20_8kExp2.setSelected(option.commentVic20_8kExp2); jCheckBoxVic20_8kExp3.setSelected(option.commentVic20_8kExp3); } /** * Apply comments for C128 */ private void applyCommentsC128() { jCheckBoxC128ZeroPage.setSelected(option.commentC128ZeroPage); jCheckBoxC128StackArea.setSelected(option.commentC128StackArea); jCheckBoxC128_200Area.setSelected(option.commentC128_200Area); jCheckBoxC128_300Area.setSelected(option.commentC128_300Area); jCheckBoxC128ScreenArea.setSelected(option.commentC128ScreenArea); jCheckBoxC128AppProgArea.setSelected(option.commentC128AppProgArea); jCheckBoxC128BasicRom.setSelected(option.commentC128BasicRom); jCheckBoxC128Cia1.setSelected(option.commentC128Cia1); jCheckBoxC128Cia2.setSelected(option.commentC128Cia2); jCheckBoxC128Color.setSelected(option.commentC128Color); jCheckBoxC128DMA.setSelected(option.commentC128DMA); jCheckBoxC128KernalRom.setSelected(option.commentC128KernalRom); jCheckBoxC128MMU.setSelected(option.commentC128MMU); jCheckBoxC128ScreenMem.setSelected(option.commentC128ScreenMem); jCheckBoxC128UserBasic.setSelected(option.commentC128UserBasic); jCheckBoxC128VDC.setSelected(option.commentC128VDC); jCheckBoxC128VideoColor.setSelected(option.commentC128VideoColor); jCheckBoxC128VicII.setSelected(option.commentC128VicII); jCheckBoxC128Sid.setSelected(option.commentC128Sid); } /** * Apply comments for Atari */ private void applyCommentsAtari() { jCheckBoxAtariZeroPage.setSelected(option.commentAtariZeroPage); jCheckBoxAtariStackArea.setSelected(option.commentAtariStackArea); jCheckBoxAtari200Area.setSelected(option.commentAtari_200Area); jCheckBoxAtari300Area.setSelected(option.commentAtari_300Area); jCheckBoxAtari500Area.setSelected(option.commentAtari_400Area); jCheckBoxAtari500Area.setSelected(option.commentAtari_500Area); jCheckBoxAtariCartridgeB.setSelected(option.commentAtariCartridgeB); jCheckBoxAtariCartridgeA.setSelected(option.commentAtariCartridgeA); jCheckBoxAtariGtia.setSelected(option.commentAtariGtia); jCheckBoxAtariPokey.setSelected(option.commentAtariPokey); jCheckBoxAtariPia.setSelected(option.commentAtariPia); jCheckBoxAtariAntic.setSelected(option.commentAtariAntic); jCheckBoxAtariKernalRom.setSelected(option.commentAtariKernalRom); } /** * Close the dialog */ private void close() { option.custom=jTextAreaHeather.getText(); SwingUtilities.invokeLater(new Runnable() { public void run() { model.fireTableDataChanged(); if (option.showMiniature) { frame.rSyntaxTextAreaSourceMin.setText(frame.disassembly.source); frame.rSyntaxTextAreaDisMin.setText(frame.disassembly.disassembly); } else { frame.rSyntaxTextAreaSourceMin.setText(""); frame.rSyntaxTextAreaDisMin.setText(""); } frame.jScrollPaneLeftMin.setVisible(option.showMiniature); frame.jScrollPaneRightMin.setVisible(option.showMiniature); frame.pack(); } }); setVisible(false); } /** * Read the sidiid file if the user activate it */ private void readSidId() { if (!option.showSidId || (option.sidIdPath==null)) return; try { SidId.instance.readConfig(option.sidIdPath); } catch (Exception e) { System.err.println(e); } } }
313,113
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
JLabelsDialog.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/JLabelsDialog.java
/* * @(#)JLabelsDialog.java 2021/06/15 * * ICE Team free software group * * This file is part of JIIT64 Java Ice Team Tracker 64 * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA */ package sw_emulator.swing; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import javax.swing.JLabel; import javax.swing.JTable; import javax.swing.JTextField; import javax.swing.SwingUtilities; import javax.swing.Timer; import javax.swing.table.DefaultTableCellRenderer; import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; import sw_emulator.software.MemoryDasm; import sw_emulator.swing.main.Option; import sw_emulator.swing.main.Project; import sw_emulator.swing.table.ConstantCellEditor; import sw_emulator.swing.table.DataTableModelLabels; import sw_emulator.swing.table.LabelsTableCellRenderer; /** * Dialog for labels * * @author ice */ public class JLabelsDialog extends javax.swing.JDialog { /** Memory cell renderer for table */ LabelsTableCellRenderer labelsTableCellRenderer=new LabelsTableCellRenderer(); /** Data model */ DataTableModelLabels dataModel=new DataTableModelLabels(); /** Constant cell editor */ ConstantCellEditor constantCellEditor=new ConstantCellEditor(new JTextField()); /** Memory table for selection of row */ JTable jTable; /** Preview area*/ RSyntaxTextArea rSyntaxTextAreaDis; /** The project */ Project project; /** * Creates new form JConstantDialog */ public JLabelsDialog(java.awt.Frame parent, boolean modal, Option option) { super(parent, modal); initComponents(); Shared.framesList.add(this); jTableLabels.addMouseListener(new java.awt.event.MouseAdapter() { MouseEvent last; private Timer timer = new Timer(300, new ActionListener() { @Override public void actionPerformed(ActionEvent e) { // timer has gone off, so treat as a single click singleClick(); timer.stop(); } }); @Override public void mouseClicked(MouseEvent e) { last=e; // Check if timer is running // to know if there was an earlier click if (timer.isRunning()) { // There was an earlier click so we'll treat it as a double click timer.stop(); doubleClick(e); } else { // (Re)start the timer and wait for 2nd click timer.restart(); } } /** * Single click on table */ protected void singleClick() { } /** * Double click on table */ protected void doubleClick(MouseEvent evt) { int actual; // get the address in hex format int addr=jTableLabels.getSelectedRow(); if (addr<0) return; int address=dataModel.getData().get(addr).address; // scan all lines for the memory location try { //scroll to that point ///jTable.scrollRectToVisible(jTable.getCellRect(address,0, true)); Shared.scrollToCenter(jTable, address, 0); // select this row jTable.setRowSelectionInterval(address, address); } catch (Exception e) { System.err.println(); } if (evt.isControlDown()) { int pos=0; // scan all lines for the memory location try { String preview=rSyntaxTextAreaDis.getText(); String lines[] = preview.split("\\r?\\n"); for (String line: lines) { actual=searchAddress(line.substring(0, Math.min(line.length(), option.maxLabelLength))); if (actual==address) { rSyntaxTextAreaDis.setCaretPosition(pos); // set preview in the find position java.awt.EventQueue.invokeLater(() -> { rSyntaxTextAreaDis.requestFocusInWindow(); }); break; } else { pos+=line.length()+1; } } } catch (Exception e) { System.err.println(); } } } }); } /** * Search for a memory address (even as label) from the initial passed string * * @param initial the initial buffer to search for * @return the address or -1 if not find */ protected int searchAddress(String initial) { int addr=-1; try { // get the first word of the string String str=initial; str=str.contains(" ") ? str.split(" ")[0] : str; if (str.length()==4) addr=Integer.decode("0x"+str); else { str=str.contains(":") ? str.split(":")[0] : str; for (MemoryDasm memory : project.memory) { if (str.equals(memory.dasmLocation) || str.equals(memory.userLocation)) { addr=memory.address; break; } } } } catch (Exception e) { System.err.println(e); } return addr; } /** * Set up the dialog with the project to use * * @param data the memory data * @param jTable the table to updeate positon on click * @param rSyntaxTextAreaDis preview area * @param project the actual project */ public void setUp(MemoryDasm[] data, JTable jTable, RSyntaxTextArea rSyntaxTextAreaDis, Project project) { dataModel.setData(data); this.jTable=jTable; this.rSyntaxTextAreaDis=rSyntaxTextAreaDis; this.project=project; labelsTableCellRenderer.setMemory(data); SwingUtilities.invokeLater(new Runnable(){ public void run() { dataModel.fireTableDataChanged(); } }); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jScrollPaneTable = new javax.swing.JScrollPane(); jTableLabels = new javax.swing.JTable(); jTableLabels.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE); jPanelDn = new javax.swing.JPanel(); jButtonClose = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Labels definitions"); jTableLabels.setModel(dataModel); jTableLabels.getColumnModel().getColumn(0).setPreferredWidth(10); jTableLabels.getColumnModel().getColumn(1).setPreferredWidth(10); //DefaultTableCellRenderer centerRenderer = new DefaultTableCellRenderer(); labelsTableCellRenderer.setHorizontalAlignment( JLabel.CENTER ); jTableLabels.getColumnModel().getColumn(0).setCellRenderer( labelsTableCellRenderer ); //jTableLabels.setDefaultRenderer(Integer.class, labelsTableCellRenderer); jScrollPaneTable.setViewportView(jTableLabels); getContentPane().add(jScrollPaneTable, java.awt.BorderLayout.CENTER); jButtonClose.setText("Close"); jButtonClose.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonCloseActionPerformed(evt); } }); jPanelDn.add(jButtonClose); getContentPane().add(jPanelDn, java.awt.BorderLayout.PAGE_END); setBounds(0, 0, 370, 830); }// </editor-fold>//GEN-END:initComponents private void jButtonCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCloseActionPerformed setVisible(false); }//GEN-LAST:event_jButtonCloseActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(JLabelsDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(JLabelsDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(JLabelsDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(JLabelsDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> //</editor-fold> /* Create and display the dialog */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { JLabelsDialog dialog = new JLabelsDialog(new javax.swing.JFrame(), true, null); dialog.addWindowListener(new java.awt.event.WindowAdapter() { @Override public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); } }); dialog.setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButtonClose; private javax.swing.JPanel jPanelDn; private javax.swing.JScrollPane jScrollPaneTable; private javax.swing.JTable jTableLabels; // End of variables declaration//GEN-END:variables }
11,392
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
JHexDialog.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/JHexDialog.java
/** * @(#)JHexDialog.java 2019/12/29 * * ICE Team free software group * * This file is part of JIIT64 Java Ice Team Tracker 64 * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing; import java.awt.Font; import java.awt.Point; import java.io.File; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; import javax.swing.table.DefaultTableModel; import sw_emulator.software.MemoryDasm; import sw_emulator.swing.table.MonoTableCellRenderer; import sw_emulator.swing.table.MultiTableCellRenderer; /** * Show dialog with vary hex view of data * * @author ice */ public class JHexDialog extends javax.swing.JDialog { /** C64 font */ Font c64Font; /** C64 bold font */ Font c64BoldFont; /** C64 plain font */ Font c64PlainFont; /** Memory dasm to use */ MemoryDasm[] memory; /** Start address of area to show */ int start; /** End address of area to show */ int end; /** Mono renderer */ MonoTableCellRenderer rendererMono=new MonoTableCellRenderer(); /** Multi renderer */ MultiTableCellRenderer rendererMulti=new MultiTableCellRenderer(); /** * Creates new form JViewDialog */ public JHexDialog(java.awt.Frame parent, boolean modal) { super(parent, modal); Shared.framesList.add(this); try { c64Font = Font.createFont(Font.TRUETYPE_FONT, getClass().getResource("/sw_emulator/swing/C64_Pro_Mono-STYLE.ttf").openStream()); c64BoldFont = c64Font.deriveFont(Font.BOLD, 12); c64PlainFont = c64Font.deriveFont(Font.PLAIN, 12); } catch (Exception e) { e.printStackTrace(); } initComponents(); /// let to scroll the tables together jScrollPaneAddr.getViewport().addChangeListener(new ChangeListener() { @Override public void stateChanged(ChangeEvent e) { Point p = jScrollPaneAddr.getViewport().getViewPosition(); jScrollPaneHex.getViewport().setViewPosition(p); jScrollPaneAddr.getViewport().setViewPosition(p); jScrollPaneText.getViewport().setViewPosition(p); } }); jScrollPaneHex.getViewport().addChangeListener(new ChangeListener() { @Override public void stateChanged(ChangeEvent e) { Point p = jScrollPaneHex.getViewport().getViewPosition(); jScrollPaneHex.getViewport().setViewPosition(p); jScrollPaneAddr.getViewport().setViewPosition(p); jScrollPaneText.getViewport().setViewPosition(p); } }); jScrollPaneText.getViewport().addChangeListener(new ChangeListener() { @Override public void stateChanged(ChangeEvent e) { Point p = jScrollPaneText.getViewport().getViewPosition(); jScrollPaneHex.getViewport().setViewPosition(p); jScrollPaneAddr.getViewport().setViewPosition(p); jScrollPaneText.getViewport().setViewPosition(p); } }); /// let to scroll the tables together jScrollPaneAddrC.getViewport().addChangeListener(new ChangeListener() { @Override public void stateChanged(ChangeEvent e) { Point p = jScrollPaneAddrC.getViewport().getViewPosition(); jScrollPaneMono.getViewport().setViewPosition(p); jScrollPaneAddrC.getViewport().setViewPosition(p); jScrollPaneMulti.getViewport().setViewPosition(p); } }); jScrollPaneMono.getViewport().addChangeListener(new ChangeListener() { @Override public void stateChanged(ChangeEvent e) { Point p = jScrollPaneMono.getViewport().getViewPosition(); jScrollPaneMono.getViewport().setViewPosition(p); jScrollPaneAddrC.getViewport().setViewPosition(p); jScrollPaneMulti.getViewport().setViewPosition(p); } }); jScrollPaneMulti.getViewport().addChangeListener(new ChangeListener() { @Override public void stateChanged(ChangeEvent e) { Point p = jScrollPaneMulti.getViewport().getViewPosition(); jScrollPaneMono.getViewport().setViewPosition(p); jScrollPaneAddrC.getViewport().setViewPosition(p); jScrollPaneMulti.getViewport().setViewPosition(p); } }); // select the same rows in tables jTableAddr.getSelectionModel().addListSelectionListener(new ListSelectionListener() { @Override public void valueChanged(ListSelectionEvent e) { if (e.getValueIsAdjusting()) { return; } int index = jTableAddr.getSelectedRow(); if (index > -1) { if (jTableHex.getModel().getRowCount()>=index) jTableHex.getSelectionModel().setSelectionInterval(index, index); if (jTableText.getModel().getRowCount()>=index) jTableText.getSelectionModel().setSelectionInterval(index, index); Shared.scrollToCenter(jTableAddrC, index*8, 0); if (jTableAddrC.getModel().getRowCount()>=index*8) jTableAddrC.getSelectionModel().setSelectionInterval(index*8, index*8+7); } } }); jTableHex.getSelectionModel().addListSelectionListener(new ListSelectionListener() { @Override public void valueChanged(ListSelectionEvent e) { if (e.getValueIsAdjusting()) { return; } int index = jTableHex.getSelectedRow(); if (index > -1) { if (jTableAddr.getModel().getRowCount()>=index) jTableAddr.getSelectionModel().setSelectionInterval(index, index); if (jTableText.getModel().getRowCount()>=index) jTableText.getSelectionModel().setSelectionInterval(index, index); Shared.scrollToCenter(jTableAddrC, index*8, 0); if (jTableAddrC.getModel().getRowCount()>=index*8) jTableAddrC.getSelectionModel().setSelectionInterval(index*8, index*8+7); } } }); jTableText.getSelectionModel().addListSelectionListener(new ListSelectionListener() { @Override public void valueChanged(ListSelectionEvent e) { if (e.getValueIsAdjusting()) { return; } int index = jTableText.getSelectedRow(); if (index > -1) { if (jTableHex.getModel().getRowCount()>=index) jTableHex.getSelectionModel().setSelectionInterval(index, index); if (jTableAddr.getModel().getRowCount()>=index) jTableAddr.getSelectionModel().setSelectionInterval(index, index); Shared.scrollToCenter(jTableAddrC, index*8, 0); if (jTableAddrC.getModel().getRowCount()>=index/8)jTableAddrC.getSelectionModel().setSelectionInterval(index*8, index*8+7); } } }); rendererMono.setup(j16ColorPanelBackground.getSelectedColor(), j16ColorPanelForeground.getSelectedColor()); rendererMulti.setup(j16ColorPanelBackground.getSelectedColor(), j16ColorPanelForeground.getSelectedColor(), j16ColorPanelCommon1.getSelectedColor(), j16ColorPanelCommon2.getSelectedColor()); // set selection for blocks rows jTableAddrC.getSelectionModel().addListSelectionListener(new ListSelectionListener(){ public void valueChanged(ListSelectionEvent e) { if (e.getValueIsAdjusting()) { return; } int index = jTableAddrC.getSelectedRow(); if (index > -1) { if (jTableAddrC.getModel().getRowCount()>=index/8*8) jTableAddrC.setRowSelectionInterval(index/8*8, (index+8)/8*8-1); jTableAddrC.repaint(); Shared.scrollToCenter(jTableAddr, index/8, 0); if (jTableAddr.getModel().getRowCount()>=index/8) jTableAddr.getSelectionModel().setSelectionInterval(index/8, index/8); if (jTableHex.getModel().getRowCount()>=index/8) jTableHex.getSelectionModel().setSelectionInterval(index/8, index/8); if (jTableText.getModel().getRowCount()>=index/8) jTableText.getSelectionModel().setSelectionInterval(index/8, index/8); } } }); } /** * Set up the hex dialog * * @param memory the memory to use * @param start the start address * @param end the end address */ public void setUp(MemoryDasm[] memory, int start, int end) { this.memory=memory; this.start=start; // be sure end is multiply of 8 from start end=((end-start)/8)*8+start; this.end=end; calculateTables(); } /** * Show the values in table */ private void calculateTables() { DefaultTableModel dmAddr = (DefaultTableModel) jTableAddr.getModel(); dmAddr.getDataVector().removeAllElements(); DefaultTableModel dmHex = (DefaultTableModel) jTableHex.getModel(); dmHex.getDataVector().removeAllElements(); DefaultTableModel dmText = (DefaultTableModel) jTableText.getModel(); dmText.getDataVector().removeAllElements(); DefaultTableModel dmAddrC = (DefaultTableModel) jTableAddrC.getModel(); dmAddrC.getDataVector().removeAllElements(); DefaultTableModel dmMono = (DefaultTableModel) jTableMono.getModel(); dmMono.getDataVector().removeAllElements(); DefaultTableModel dmMulti = (DefaultTableModel) jTableMulti.getModel(); dmMulti.getDataVector().removeAllElements(); revalidate(); // insert the table with address for (int i=start; i<end; i+=8) { dmAddr.insertRow((i-start)/8, new Object[] {Shared.ShortToExe(i)}); } dmAddr.fireTableDataChanged(); // insert hex values for (int i=start; i<end; i+=8) { dmHex.insertRow((i-start)/8, new Object[] { Shared.ByteToExe(memory[i].copy & 0xFF), Shared.ByteToExe(memory[i+1].copy & 0xFF), Shared.ByteToExe(memory[i+2].copy & 0xFF), Shared.ByteToExe(memory[i+3].copy & 0xFF), Shared.ByteToExe(memory[i+4].copy & 0xFF), Shared.ByteToExe(memory[i+5].copy & 0xFF), Shared.ByteToExe(memory[i+6].copy & 0xFF), Shared.ByteToExe(memory[i+7].copy & 0xFF) }); } dmHex.fireTableDataChanged(); int offset; if (jRadioButtonUpper.isSelected()) offset=0xee00; else offset=0xef00; // insert text values for (int i=start; i<end; i+=8) { dmText.insertRow((i-start)/8, new Object[] { (char)(offset+(memory[i].copy & 0xFF)), (char)(offset+(memory[i+1].copy & 0xFF)), (char)(offset+(memory[i+2].copy & 0xFF)), (char)(offset+(memory[i+3].copy & 0xFF)), (char)(offset+(memory[i+4].copy & 0xFF)), (char)(offset+(memory[i+5].copy & 0xFF)), (char)(offset+(memory[i+6].copy & 0xFF)), (char)(offset+(memory[i+7].copy & 0xFF)) }); } dmText.fireTableDataChanged(); // insert the table with address of chars for (int i=start; i<end; i++) { dmAddrC.insertRow((i-start), new Object[] {Shared.ShortToExe(i)}); } dmAddrC.fireTableDataChanged(); // insert text values int pos; for (int i=start; i<end; i+=8) { pos=(i-start); dmMono.insertRow(pos, new Object[] { (memory[i].copy & 0x80)>>7, (memory[i].copy & 0x40)>>6, (memory[i].copy & 0x20)>>5, (memory[i].copy & 0x10)>>4, (memory[i].copy & 0x08)>>3, (memory[i].copy & 0x04)>>2, (memory[i].copy & 0x02)>>1, (memory[i].copy & 0x01) }); dmMono.insertRow(pos+1, new Object[] { (memory[i+1].copy & 0x80)>>7, (memory[i+1].copy & 0x40)>>6, (memory[i+1].copy & 0x20)>>5, (memory[i+1].copy & 0x10)>>4, (memory[i+1].copy & 0x08)>>3, (memory[i+1].copy & 0x04)>>2, (memory[i+1].copy & 0x02)>>1, (memory[i+1].copy & 0x01) }); dmMono.insertRow(pos+2, new Object[] { (memory[i+2].copy & 0x80)>>7, (memory[i+2].copy & 0x40)>>6, (memory[i+2].copy & 0x20)>>5, (memory[i+2].copy & 0x10)>>4, (memory[i+2].copy & 0x08)>>3, (memory[i+2].copy & 0x04)>>2, (memory[i+2].copy & 0x02)>>1, (memory[i+2].copy & 0x01) }); dmMono.insertRow(pos+3, new Object[] { (memory[i+3].copy & 0x80)>>7, (memory[i+3].copy & 0x40)>>6, (memory[i+3].copy & 0x20)>>5, (memory[i+3].copy & 0x10)>>4, (memory[i+3].copy & 0x08)>>3, (memory[i+3].copy & 0x04)>>2, (memory[i+3].copy & 0x02)>>1, (memory[i+3].copy & 0x01) }); dmMono.insertRow(pos+4, new Object[] { (memory[i+4].copy & 0x80)>>7, (memory[i+4].copy & 0x40)>>6, (memory[i+4].copy & 0x20)>>5, (memory[i+4].copy & 0x10)>>4, (memory[i+4].copy & 0x08)>>3, (memory[i+4].copy & 0x04)>>2, (memory[i+4].copy & 0x02)>>1, (memory[i+4].copy & 0x01) }); dmMono.insertRow(pos+5, new Object[] { (memory[i+5].copy & 0x80)>>7, (memory[i+5].copy & 0x40)>>6, (memory[i+5].copy & 0x20)>>5, (memory[i+5].copy & 0x10)>>4, (memory[i+5].copy & 0x08)>>3, (memory[i+5].copy & 0x04)>>2, (memory[i+5].copy & 0x02)>>1, (memory[i+5].copy & 0x01) }); dmMono.insertRow(pos+6, new Object[] { (memory[i+6].copy & 0x80)>>7, (memory[i+6].copy & 0x40)>>6, (memory[i+6].copy & 0x20)>>5, (memory[i+6].copy & 0x10)>>4, (memory[i+6].copy & 0x08)>>3, (memory[i+6].copy & 0x04)>>2, (memory[i+6].copy & 0x02)>>1, (memory[i+6].copy & 0x01) }); dmMono.insertRow(pos+7, new Object[] { (memory[i+7].copy & 0x80)>>7, (memory[i+7].copy & 0x40)>>6, (memory[i+7].copy & 0x20)>>5, (memory[i+7].copy & 0x10)>>4, (memory[i+7].copy & 0x08)>>3, (memory[i+7].copy & 0x04)>>2, (memory[i+7].copy & 0x02)>>1, (memory[i+7].copy & 0x01) }); } dmMono.fireTableDataChanged(); for (int i=start; i<end; i+=8) { pos=(i-start); dmMulti.insertRow(pos, new Object[] { (memory[i].copy & 0xc0)>>6, (memory[i].copy & 0x30)>>4, (memory[i].copy & 0x0c)>>2, (memory[i].copy & 0x03) }); dmMulti.insertRow(pos+1, new Object[] { (memory[i+1].copy & 0xc0)>>6, (memory[i+1].copy & 0x30)>>4, (memory[i+1].copy & 0x0c)>>2, (memory[i+1].copy & 0x03) }); dmMulti.insertRow(pos+2, new Object[] { (memory[i+2].copy & 0xc0)>>6, (memory[i+2].copy & 0x30)>>4, (memory[i+2].copy & 0x0c)>>2, (memory[i+2].copy & 0x03) }); dmMulti.insertRow(pos+3, new Object[] { (memory[i+3].copy & 0xc0)>>6, (memory[i+3].copy & 0x30)>>4, (memory[i+3].copy & 0x0c)>>2, (memory[i+3].copy & 0x03) }); dmMulti.insertRow(pos+4, new Object[] { (memory[i+4].copy & 0xc0)>>6, (memory[i+4].copy & 0x30)>>4, (memory[i+4].copy & 0x0c)>>2, (memory[i+4].copy & 0x03) }); dmMulti.insertRow(pos+5, new Object[] { (memory[i+5].copy & 0xc0)>>6, (memory[i+5].copy & 0x30)>>4, (memory[i+5].copy & 0x0c)>>2, (memory[i+5].copy & 0x03) }); dmMulti.insertRow(pos+6, new Object[] { (memory[i+6].copy & 0xc0)>>6, (memory[i+6].copy & 0x30)>>4, (memory[i+6].copy & 0x0c)>>2, (memory[i+6].copy & 0x03) }); dmMulti.insertRow(pos+7, new Object[] { (memory[i+7].copy & 0xc0)>>6, (memory[i+7].copy & 0x30)>>4, (memory[i+7].copy & 0x0c)>>2, (memory[i+7].copy & 0x03) }); } dmMulti.fireTableDataChanged(); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroupType = new javax.swing.ButtonGroup(); jPanelDn = new javax.swing.JPanel(); jPanelUp = new javax.swing.JPanel(); jPanelColor = new javax.swing.JPanel(); jLabelBackground = new javax.swing.JLabel(); j16ColorPanelBackground = new sw_emulator.swing.J16ColorPanel(); j16ColorPanelForeground = new sw_emulator.swing.J16ColorPanel(); jLabelForeground = new javax.swing.JLabel(); j16ColorPanelCommon1 = new sw_emulator.swing.J16ColorPanel(); jLabelCommon1 = new javax.swing.JLabel(); j16ColorPanelCommon2 = new sw_emulator.swing.J16ColorPanel(); jLabelCommon4 = new javax.swing.JLabel(); jRadioButtonUpper = new javax.swing.JRadioButton(); jRadioButtonLower = new javax.swing.JRadioButton(); jLabelHex = new javax.swing.JLabel(); jLabelText = new javax.swing.JLabel(); jLabelChar = new javax.swing.JLabel(); jLabelMultiChar = new javax.swing.JLabel(); jPanelTables = new javax.swing.JPanel(); jScrollPaneAddr = new javax.swing.JScrollPane(); jTableAddr = new javax.swing.JTable(); jScrollPaneHex = new javax.swing.JScrollPane(); jTableHex = new javax.swing.JTable(); jScrollPaneText = new javax.swing.JScrollPane(); jTableText = new javax.swing.JTable(); jScrollPaneMono = new javax.swing.JScrollPane(); jTableMono = new javax.swing.JTable(); jTableMono.setDefaultRenderer(Integer.class, rendererMono); jScrollPaneMulti = new javax.swing.JScrollPane(); jTableMulti = new javax.swing.JTable(); jTableMulti.setDefaultRenderer(Integer.class, rendererMulti); jScrollPaneAddrC = new javax.swing.JScrollPane(); jTableAddrC = new javax.swing.JTable(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Hex/Text/Char view"); setPreferredSize(new java.awt.Dimension(1024, 803)); getContentPane().add(jPanelDn, java.awt.BorderLayout.SOUTH); jPanelUp.setName(""); // NOI18N jPanelUp.setPreferredSize(new java.awt.Dimension(468, 85)); jPanelColor.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jLabelBackground.setText("Background:"); j16ColorPanelBackground.setSelectedIndex(1); j16ColorPanelBackground.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent evt) { j16ColorPanelBackgroundMousePressed(evt); } }); j16ColorPanelForeground.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent evt) { j16ColorPanelForegroundMousePressed(evt); } }); jLabelForeground.setText("Foreground:"); j16ColorPanelCommon1.setSelectedIndex(2); j16ColorPanelCommon1.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent evt) { j16ColorPanelCommon1MousePressed(evt); } }); jLabelCommon1.setText("Common1:"); j16ColorPanelCommon2.setSelectedIndex(3); j16ColorPanelCommon2.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent evt) { j16ColorPanelCommon2MousePressed(evt); } }); jLabelCommon4.setText("Common2:"); buttonGroupType.add(jRadioButtonUpper); jRadioButtonUpper.setSelected(true); jRadioButtonUpper.setText("Upper"); jRadioButtonUpper.setToolTipText("Select upper c64 text"); jRadioButtonUpper.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonUpperItemStateChanged(evt); } }); buttonGroupType.add(jRadioButtonLower); jRadioButtonLower.setText("Lower"); jRadioButtonLower.setToolTipText("Select lower C64 text"); jRadioButtonLower.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jRadioButtonLowerItemStateChanged(evt); } }); javax.swing.GroupLayout jPanelColorLayout = new javax.swing.GroupLayout(jPanelColor); jPanelColor.setLayout(jPanelColorLayout); jPanelColorLayout.setHorizontalGroup( jPanelColorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelColorLayout.createSequentialGroup() .addContainerGap() .addGroup(jPanelColorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButtonUpper) .addComponent(jRadioButtonLower)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanelColorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(j16ColorPanelBackground, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelBackground)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanelColorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelForeground) .addComponent(j16ColorPanelForeground, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanelColorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelCommon1) .addComponent(j16ColorPanelCommon1, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanelColorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelCommon4) .addComponent(j16ColorPanelCommon2, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(37, 37, 37)) ); jPanelColorLayout.setVerticalGroup( jPanelColorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelColorLayout.createSequentialGroup() .addGroup(jPanelColorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelColorLayout.createSequentialGroup() .addGroup(jPanelColorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelColorLayout.createSequentialGroup() .addComponent(jLabelCommon4) .addGap(9, 9, 9) .addComponent(j16ColorPanelCommon2, javax.swing.GroupLayout.DEFAULT_SIZE, 16, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelColorLayout.createSequentialGroup() .addComponent(jLabelCommon1) .addGap(9, 9, 9) .addComponent(j16ColorPanelCommon1, javax.swing.GroupLayout.DEFAULT_SIZE, 0, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelColorLayout.createSequentialGroup() .addGroup(jPanelColorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelBackground) .addComponent(jLabelForeground)) .addGap(9, 9, 9) .addGroup(jPanelColorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(j16ColorPanelBackground, javax.swing.GroupLayout.DEFAULT_SIZE, 16, Short.MAX_VALUE) .addComponent(j16ColorPanelForeground, javax.swing.GroupLayout.DEFAULT_SIZE, 0, Short.MAX_VALUE)))) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelColorLayout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jRadioButtonUpper) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioButtonLower))) .addContainerGap()) ); jLabelHex.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabelHex.setText("Hex"); jLabelText.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabelText.setText("Text"); jLabelChar.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabelChar.setText("Char definition"); jLabelMultiChar.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabelMultiChar.setText("Multicolor char definition"); javax.swing.GroupLayout jPanelUpLayout = new javax.swing.GroupLayout(jPanelUp); jPanelUp.setLayout(jPanelUpLayout); jPanelUpLayout.setHorizontalGroup( jPanelUpLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanelColor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanelUpLayout.createSequentialGroup() .addGap(72, 72, 72) .addComponent(jLabelHex, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jLabelText, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(108, 108, 108) .addComponent(jLabelChar, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(30, 30, 30) .addComponent(jLabelMultiChar, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(50, Short.MAX_VALUE)) ); jPanelUpLayout.setVerticalGroup( jPanelUpLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelUpLayout.createSequentialGroup() .addComponent(jPanelColor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanelUpLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelHex, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelText) .addComponent(jLabelChar) .addComponent(jLabelMultiChar, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap()) ); getContentPane().add(jPanelUp, java.awt.BorderLayout.NORTH); jPanelTables.setPreferredSize(new java.awt.Dimension(682, 300)); jScrollPaneAddr.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); jTableAddr.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Addr." } ) { Class[] types = new Class [] { java.lang.String.class }; boolean[] canEdit = new boolean [] { false }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jTableAddr.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jScrollPaneAddr.setViewportView(jTableAddr); jScrollPaneHex.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); jTableHex.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "0", "1", "2", "3", "4", "5", "6", "7" } ) { Class[] types = new Class [] { java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class }; boolean[] canEdit = new boolean [] { false, false, false, false, false, false, false, false }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jTableHex.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jScrollPaneHex.setViewportView(jTableHex); jScrollPaneText.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); jTableText.setFont(c64PlainFont); jTableText.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "0", "1", "2", "3", "4", "5", "6", "7" } ) { Class[] types = new Class [] { java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class }; boolean[] canEdit = new boolean [] { false, false, false, false, false, false, false, false }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jTableText.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jScrollPaneText.setViewportView(jTableText); jScrollPaneMono.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); jTableMono.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "0", "1", "2", "3", "4", "5", "6", "7" } ) { Class[] types = new Class [] { java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class }; boolean[] canEdit = new boolean [] { false, false, false, false, false, false, false, false }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jTableMono.setRowSelectionAllowed(false); jScrollPaneMono.setViewportView(jTableMono); jScrollPaneMulti.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); jTableMulti.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "0-1", "1-2", "2-3", "3-4" } ) { Class[] types = new Class [] { java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class }; boolean[] canEdit = new boolean [] { false, false, false, false }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jTableMulti.setRowSelectionAllowed(false); jScrollPaneMulti.setViewportView(jTableMulti); jScrollPaneAddrC.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); jTableAddrC.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Addr." } ) { Class[] types = new Class [] { java.lang.String.class }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } }); jTableAddrC.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION); jScrollPaneAddrC.setViewportView(jTableAddrC); javax.swing.GroupLayout jPanelTablesLayout = new javax.swing.GroupLayout(jPanelTables); jPanelTables.setLayout(jPanelTablesLayout); jPanelTablesLayout.setHorizontalGroup( jPanelTablesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelTablesLayout.createSequentialGroup() .addComponent(jScrollPaneAddr, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPaneHex, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPaneText, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPaneAddrC, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPaneMono, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPaneMulti, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(30, Short.MAX_VALUE)) ); jPanelTablesLayout.setVerticalGroup( jPanelTablesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPaneAddr, javax.swing.GroupLayout.DEFAULT_SIZE, 907, Short.MAX_VALUE) .addComponent(jScrollPaneHex, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 907, Short.MAX_VALUE) .addComponent(jScrollPaneText, javax.swing.GroupLayout.DEFAULT_SIZE, 907, Short.MAX_VALUE) .addComponent(jScrollPaneMono, javax.swing.GroupLayout.DEFAULT_SIZE, 907, Short.MAX_VALUE) .addComponent(jScrollPaneMulti, javax.swing.GroupLayout.DEFAULT_SIZE, 907, Short.MAX_VALUE) .addComponent(jScrollPaneAddrC, javax.swing.GroupLayout.DEFAULT_SIZE, 907, Short.MAX_VALUE) ); getContentPane().add(jPanelTables, java.awt.BorderLayout.CENTER); pack(); setLocationRelativeTo(null); }// </editor-fold>//GEN-END:initComponents private void j16ColorPanelBackgroundMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j16ColorPanelBackgroundMousePressed notifyColor(); }//GEN-LAST:event_j16ColorPanelBackgroundMousePressed private void j16ColorPanelForegroundMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j16ColorPanelForegroundMousePressed notifyColor(); }//GEN-LAST:event_j16ColorPanelForegroundMousePressed private void j16ColorPanelCommon1MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j16ColorPanelCommon1MousePressed notifyColor(); }//GEN-LAST:event_j16ColorPanelCommon1MousePressed private void j16ColorPanelCommon2MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_j16ColorPanelCommon2MousePressed notifyColor(); }//GEN-LAST:event_j16ColorPanelCommon2MousePressed private void jRadioButtonUpperItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonUpperItemStateChanged calculateTables(); }//GEN-LAST:event_jRadioButtonUpperItemStateChanged private void jRadioButtonLowerItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonLowerItemStateChanged calculateTables(); }//GEN-LAST:event_jRadioButtonLowerItemStateChanged private void notifyColor() { rendererMono.setup(j16ColorPanelBackground.getSelectedColor(), j16ColorPanelForeground.getSelectedColor()); rendererMulti.setup(j16ColorPanelBackground.getSelectedColor(), j16ColorPanelForeground.getSelectedColor(), j16ColorPanelCommon1.getSelectedColor(), j16ColorPanelCommon2.getSelectedColor()); DefaultTableModel dmMono = (DefaultTableModel) jTableMono.getModel(); dmMono.fireTableDataChanged(); DefaultTableModel dmMulti = (DefaultTableModel) jTableMulti.getModel(); dmMulti.fireTableDataChanged(); } /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(JHexDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(JHexDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(JHexDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(JHexDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> //</editor-fold> /* Create and display the dialog */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { JHexDialog dialog = new JHexDialog(new javax.swing.JFrame(), true); dialog.addWindowListener(new java.awt.event.WindowAdapter() { @Override public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); } }); dialog.setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.ButtonGroup buttonGroupType; private sw_emulator.swing.J16ColorPanel j16ColorPanelBackground; private sw_emulator.swing.J16ColorPanel j16ColorPanelCommon1; private sw_emulator.swing.J16ColorPanel j16ColorPanelCommon2; private sw_emulator.swing.J16ColorPanel j16ColorPanelForeground; private javax.swing.JLabel jLabelBackground; private javax.swing.JLabel jLabelChar; private javax.swing.JLabel jLabelCommon1; private javax.swing.JLabel jLabelCommon4; private javax.swing.JLabel jLabelForeground; private javax.swing.JLabel jLabelHex; private javax.swing.JLabel jLabelMultiChar; private javax.swing.JLabel jLabelText; private javax.swing.JPanel jPanelColor; private javax.swing.JPanel jPanelDn; private javax.swing.JPanel jPanelTables; private javax.swing.JPanel jPanelUp; private javax.swing.JRadioButton jRadioButtonLower; private javax.swing.JRadioButton jRadioButtonUpper; private javax.swing.JScrollPane jScrollPaneAddr; private javax.swing.JScrollPane jScrollPaneAddrC; private javax.swing.JScrollPane jScrollPaneHex; private javax.swing.JScrollPane jScrollPaneMono; private javax.swing.JScrollPane jScrollPaneMulti; private javax.swing.JScrollPane jScrollPaneText; private javax.swing.JTable jTableAddr; private javax.swing.JTable jTableAddrC; private javax.swing.JTable jTableHex; private javax.swing.JTable jTableMono; private javax.swing.JTable jTableMulti; private javax.swing.JTable jTableText; // End of variables declaration//GEN-END:variables }
44,212
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
JC64Dis.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/JC64Dis.java
/** * @(#)JC64Dis.java 2019/12/01 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.main; import java.util.logging.ConsoleHandler; import java.util.logging.Formatter; import java.util.logging.Level; import java.util.logging.LogRecord; import java.util.logging.Logger; import javax.swing.SwingUtilities; import sw_emulator.swing.JDisassemblerFrame; /** * Java C64 disassembler with graphics * * @author ice */ public class JC64Dis { private JDisassemblerFrame jMainFrame; public JC64Dis() { Option option=new Option(); // read option file even if it will be reload again in JDisassemblerFrame FileManager.instance.readOptionFile(FileManager.OPTION_FILE, option); if (option.getLafName().equals("SYNTH")) Option.useLookAndFeel(option.getFlatLaf()); else Option.useLookAndFeel(option.getLafName(), option.getMethalTheme()); SwingUtilities.invokeLater(new Runnable() { public void run() { jMainFrame=new JDisassemblerFrame(); jMainFrame.setVisible(true); } }); } /** * @param args the command line arguments */ public static void main(String[] args) { /** // Log all focus messages. final Logger rootLogger = Logger.getLogger(""); rootLogger.setLevel(Level.ALL); final ConsoleHandler consoleHandler = new ConsoleHandler(); consoleHandler.setLevel(Level.ALL); // Because there are a lot of focus messages, make them // a little easier to read by logging only the message. consoleHandler.setFormatter(new Formatter() { @Override public String format(LogRecord record) { return "FOCUS: " + record.getMessage() + '\n'; } }); final Logger logger = Logger.getLogger("java.awt.focus.Component"); logger.setLevel(Level.ALL); logger.setUseParentHandlers(false); logger.addHandler(consoleHandler); */ new JC64Dis(); } }
2,881
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
MPR.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/MPR.java
/** * @(#)MPR.java 2021/04/24 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.main; import java.io.BufferedOutputStream; import java.io.DataInputStream; import java.io.ByteArrayInputStream; import java.io.DataOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; import sw_emulator.math.Unsigned; /** * Multiple Program class * * @author stefano_tognon */ public class MPR implements Cloneable { /** Header of file */ public String header; /** Number of blocks to read */ public int block; /** Block of data file */ public ArrayList<byte[]> blocks; /** * Get the elements inside the input stream * * @param inB the coded input stream * @return true if operation is ok */ public boolean getElements(byte[] inB) { boolean res=true; DataInputStream in=new DataInputStream(new ByteArrayInputStream(inB)); int size; int i=0; byte[] buf; try { header=in.readUTF(); block=in.readInt(); blocks=new ArrayList<>(block); for (i=0; i<block; i++) { size=in.readInt(); buf=new byte[size]; if (in.read(buf, 0, size)<0) res&=false; blocks.add(buf); } // sort by asc memory address Collections.sort( blocks, new Comparator<byte[]>() { @Override public int compare(byte[] block2, byte[] block1) { return (Unsigned.done(block2[0])+Unsigned.done(block2[1])*256)- (Unsigned.done(block1[0])+Unsigned.done(block1[1])*256); } }); } catch (IOException e) { System.err.println(e); block=i; // force to be the last readed in case of error return false; } return res; } /** * Set the elements of the given files if they are of the right type * * @param files the list of file * @return true if operation is ok */ public boolean setElements(File[] files) { block=0; blocks=new ArrayList<>(); byte[] inB; try { for (File file: files) { inB=FileManager.instance.readFile(file.getCanonicalPath()); if (FileType.getFileType(inB, file.getCanonicalPath().endsWith("bin"))!=FileType.PRG) return false; block++; blocks.add(inB); } } catch (IOException e) { System.err.println(e); return false; } // sort by asc memory address Collections.sort( blocks, new Comparator<byte[]>() { @Override public int compare(byte[] block2, byte[] block1) { return (Unsigned.done(block2[0])+Unsigned.done(block2[1])*256)- (Unsigned.done(block1[0])+Unsigned.done(block1[1])*256); } }); return true; } public String getDescription() { String res=""; if (blocks==null) return ""; // sort by asc memory address Collections.sort( blocks, new Comparator<byte[]>() { @Override public int compare(byte[] block2, byte[] block1) { return (Unsigned.done(block2[0])+Unsigned.done(block2[1])*256)- (Unsigned.done(block1[0])+Unsigned.done(block1[1])*256); } }); byte[] buf; int start; int end; Iterator<byte[]> iter=blocks.iterator(); while (iter.hasNext()) { buf=iter.next(); start=(Unsigned.done(buf[0])+Unsigned.done(buf[1])*256); end=start+buf.length-2; res+="START: "+String.format("0x%04X", start)+" END="+String.format("0x%04X", end)+"\n"; } return res; } /** * Save the file to disk * * @param file the file to use * @return true if operation is ok */ public boolean saveFile(File file) { try { byte[] outB; DataOutputStream out=new DataOutputStream( new BufferedOutputStream( new FileOutputStream(file))); out.writeUTF("MPRG#"); out.writeInt(block); Iterator<byte[]> iter=blocks.iterator(); while (iter.hasNext()) { outB=iter.next(); out.writeInt(outB.length); out.write(outB); } out.flush(); out.close(); } catch (Exception e) { System.err.println(e); return false; } return true; } /** * Get hashcode by inner calculation * * @param mpr the mpr to use * @return the hashcode */ public static int hashCode(MPR mpr) { int hash=79*mpr.header.hashCode()+mpr.block; for (byte[] inB: mpr.blocks) { hash=79*hash+Arrays.hashCode(inB); } return hash; } @Override public int hashCode() { return hashCode(this); } /** * Clone the object * * @return the cloned object */ @Override public Object clone() { MPR copy=new MPR(); copy.block=this.block; copy.header=this.header; copy.blocks=(ArrayList)this.blocks.clone(); return copy; } }
6,451
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Block.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/Block.java
/** * @(#)Block.java 2021/11/04 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.main; /** * A block of memory for disassembly * * @author ice */ public class Block { /** Input buffer of data */ public byte[] inB; /** Start position in buffer */ public int startBuffer; /** End position in buffer*/ public int endBuffer; /** Start address in memory of the position in buffer */ public int startAddress; /** End address in memory of the position in buffer */ public int endAddress; /** * True if the given address is inside the block range * * @param address the address to test * @return true if it is inside */ public boolean isInside(int address) { return (address>=startAddress && address<=endAddress); } }
1,631
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
CpuFamily.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/CpuFamily.java
/** * @(#)CpuFamily.java 2024/04/18 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.main; /** * Cpu family * * @author ice */ public enum CpuFamily { M6502, Z80, I8048 }
1,063
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
FileManager.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/FileManager.java
/** * @(#)FileManager.java 2019/12/01 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.main; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.BufferedWriter; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.FileWriter; import java.io.IOException; import java.io.RandomAccessFile; import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; import sw_emulator.software.Assembler; import sw_emulator.software.Assembler.Name; import sw_emulator.software.BasicDetokenize.BasicType; import sw_emulator.software.MemoryDasm; /** * Manage the files of disassembler * * @author ice */ public class FileManager { /** Public access to file manager */ public static final FileManager instance=new FileManager(); /** File to use for option*/ public static final File OPTION_FILE=new File(System.getProperty("user.home")+File.separator+".jc64dis"); /** Header for costant file */ private static final String HEADER_CST="CST"; /** * Singleton contructor */ private FileManager() { } /** * Read option file * If file is not present, operation is ok * * @param file the file to use * @param option the option to fill * @return true if operation is ok */ public boolean readOptionFile(File file, Option option) { try { DataInputStream in=new DataInputStream( new BufferedInputStream( new FileInputStream(file))); option.opcodeUpperCasePreview = in.readBoolean(); option.opcodeUpperCaseSource = in.readBoolean(); option.illegalOpcodeMode = in.readByte(); option.commentLanguage = in.readByte(); option.useAsCode = in.readBoolean(); option.eraseDComm = in.readBoolean(); option.erasePlus = in.readBoolean(); option.maxLabelLength = in.readInt(); option.maxByteAggregate = in.readInt(); option.psidInitSongsLabel = in.readUTF(); option.psidPlaySoundsLabel = in.readUTF(); option.sidFreqLoLabel = in.readUTF(); option.sidFreqHiLabel = in.readUTF(); // 0.8 option.theme = in.readInt(); option.lafName = in.readUTF(); option.flatLaf = in.readUTF(); // 0.9 option.numInstrSpaces = in.readInt(); option.numInstrTabs = in.readInt(); option.numDataSpaces = in.readInt(); option.numDataTabs = in.readInt(); option.labelOnSepLine = in.readBoolean(); option.clickDcErase = in.readBoolean(); option.clickDlErase = in.readBoolean(); option.clickUbEdit = in.readBoolean(); option.clickUcEdit = in.readBoolean(); option.clickUlEdit = in.readBoolean(); option.forceCompilation = in.readBoolean(); option.maxWordAggregate = in.readInt(); option.maxTribyteAggregate = in.readInt(); option.maxLongAggregate = in.readInt(); option.maxSwappedAggregate = in.readInt(); option.maxTextAggregate = in.readInt(); option.maxAddressAggregate = in.readInt(); option.maxStackWordAggregate = in.readInt(); option.tmpPath = in.readUTF(); option.dasmF3Comp = in.readBoolean(); option.dasmStarting = Assembler.Starting.valueOf(in.readUTF()); option.dasmOrigin = Assembler.Origin.valueOf(in.readUTF()); option.dasmLabel = Assembler.Label.valueOf(in.readUTF()); option.dasmComment = Assembler.Comment.valueOf(in.readUTF()); option.dasmBlockComment = Assembler.BlockComment.valueOf(in.readUTF()); option.dasmByte = Assembler.Byte.valueOf(in.readUTF()); option.dasmWord = Assembler.Word.valueOf(in.readUTF()); option.dasmWordSwapped = Assembler.WordSwapped.valueOf(in.readUTF()); option.dasmTribyte = Assembler.Tribyte.valueOf(in.readUTF()); option.dasmLong = Assembler.Long.valueOf(in.readUTF()); option.dasmAddress = Assembler.Address.valueOf(in.readUTF()); option.dasmStackWord = Assembler.StackWord.valueOf(in.readUTF()); option.dasmMonoSprite = Assembler.MonoSprite.valueOf(in.readUTF()); option.dasmMultiSprite = Assembler.MultiSprite.valueOf(in.readUTF()); option.dasmText = Assembler.Text.valueOf(in.readUTF()); option.dasmNumText = Assembler.NumText.valueOf(in.readUTF()); option.dasmZeroText = Assembler.ZeroText.valueOf(in.readUTF()); option.dasmHighText = Assembler.HighText.valueOf(in.readUTF()); option.dasmShiftText = Assembler.ShiftText.valueOf(in.readUTF()); option.dasmScreenText = Assembler.ScreenText.valueOf(in.readUTF()); option.dasmPetasciiText = Assembler.PetasciiText.valueOf(in.readUTF()); option.tmpxStarting = Assembler.Starting.valueOf(in.readUTF()); option.tmpxOrigin = Assembler.Origin.valueOf(in.readUTF()); option.tmpxLabel = Assembler.Label.valueOf(in.readUTF()); option.tmpxComment = Assembler.Comment.valueOf(in.readUTF()); option.tmpxBlockComment = Assembler.BlockComment.valueOf(in.readUTF()); option.tmpxByte = Assembler.Byte.valueOf(in.readUTF()); option.tmpxWord = Assembler.Word.valueOf(in.readUTF()); option.tmpxWordSwapped = Assembler.WordSwapped.valueOf(in.readUTF()); option.tmpxTribyte = Assembler.Tribyte.valueOf(in.readUTF()); option.tmpxLong = Assembler.Long.valueOf(in.readUTF()); option.tmpxAddress = Assembler.Address.valueOf(in.readUTF()); option.tmpxStackWord = Assembler.StackWord.valueOf(in.readUTF()); option.tmpxMonoSprite = Assembler.MonoSprite.valueOf(in.readUTF()); option.tmpxMultiSprite = Assembler.MultiSprite.valueOf(in.readUTF()); option.tmpxText = Assembler.Text.valueOf(in.readUTF()); option.tmpxNumText = Assembler.NumText.valueOf(in.readUTF()); option.tmpxZeroText = Assembler.ZeroText.valueOf(in.readUTF()); option.tmpxHighText = Assembler.HighText.valueOf(in.readUTF()); option.tmpxShiftText = Assembler.ShiftText.valueOf(in.readUTF()); option.tmpxScreenText = Assembler.ScreenText.valueOf(in.readUTF()); option.tmpxPetasciiText = Assembler.PetasciiText.valueOf(in.readUTF()); option.ca65Starting = Assembler.Starting.valueOf(in.readUTF()); option.ca65Origin = Assembler.Origin.valueOf(in.readUTF()); option.ca65Label = Assembler.Label.valueOf(in.readUTF()); option.ca65Comment = Assembler.Comment.valueOf(in.readUTF()); option.ca65BlockComment = Assembler.BlockComment.valueOf(in.readUTF()); option.ca65Byte = Assembler.Byte.valueOf(in.readUTF()); option.ca65Word = Assembler.Word.valueOf(in.readUTF()); option.ca65WordSwapped = Assembler.WordSwapped.valueOf(in.readUTF()); option.ca65Tribyte = Assembler.Tribyte.valueOf(in.readUTF()); option.ca65Long = Assembler.Long.valueOf(in.readUTF()); option.ca65Address = Assembler.Address.valueOf(in.readUTF()); option.ca65StackWord = Assembler.StackWord.valueOf(in.readUTF()); option.ca65MonoSprite = Assembler.MonoSprite.valueOf(in.readUTF()); option.ca65MultiSprite = Assembler.MultiSprite.valueOf(in.readUTF()); option.ca65Text = Assembler.Text.valueOf(in.readUTF()); option.ca65NumText = Assembler.NumText.valueOf(in.readUTF()); option.ca65ZeroText = Assembler.ZeroText.valueOf(in.readUTF()); option.ca65HighText = Assembler.HighText.valueOf(in.readUTF()); option.ca65ShiftText = Assembler.ShiftText.valueOf(in.readUTF()); option.ca65ScreenText = Assembler.ScreenText.valueOf(in.readUTF()); option.ca65PetasciiText = Assembler.PetasciiText.valueOf(in.readUTF()); option.acmeStarting = Assembler.Starting.valueOf(in.readUTF()); option.acmeOrigin = Assembler.Origin.valueOf(in.readUTF()); option.acmeLabel = Assembler.Label.valueOf(in.readUTF()); option.acmeComment = Assembler.Comment.valueOf(in.readUTF()); option.acmeBlockComment = Assembler.BlockComment.valueOf(in.readUTF()); option.acmeByte = Assembler.Byte.valueOf(in.readUTF()); option.acmeWord = Assembler.Word.valueOf(in.readUTF()); option.acmeWordSwapped = Assembler.WordSwapped.valueOf(in.readUTF()); option.acmeTribyte = Assembler.Tribyte.valueOf(in.readUTF()); option.acmeLong = Assembler.Long.valueOf(in.readUTF()); option.acmeAddress = Assembler.Address.valueOf(in.readUTF()); option.acmeStackWord = Assembler.StackWord.valueOf(in.readUTF()); option.acmeMonoSprite = Assembler.MonoSprite.valueOf(in.readUTF()); option.acmeMultiSprite = Assembler.MultiSprite.valueOf(in.readUTF()); option.acmeText = Assembler.Text.valueOf(in.readUTF()); option.acmeNumText = Assembler.NumText.valueOf(in.readUTF()); option.acmeZeroText = Assembler.ZeroText.valueOf(in.readUTF()); option.acmeHighText = Assembler.HighText.valueOf(in.readUTF()); option.acmeShiftText = Assembler.ShiftText.valueOf(in.readUTF()); option.acmeScreenText = Assembler.ScreenText.valueOf(in.readUTF()); option.acmePetasciiText = Assembler.PetasciiText.valueOf(in.readUTF()); option.kickColonMacro = in.readBoolean(); option.kickStarting = Assembler.Starting.valueOf(in.readUTF()); option.kickOrigin = Assembler.Origin.valueOf(in.readUTF()); option.kickLabel = Assembler.Label.valueOf(in.readUTF()); option.kickComment = Assembler.Comment.valueOf(in.readUTF()); option.kickBlockComment = Assembler.BlockComment.valueOf(in.readUTF()); option.kickByte = Assembler.Byte.valueOf(in.readUTF()); option.kickWord = Assembler.Word.valueOf(in.readUTF()); option.kickWordSwapped = Assembler.WordSwapped.valueOf(in.readUTF()); option.kickTribyte = Assembler.Tribyte.valueOf(in.readUTF()); option.kickLong = Assembler.Long.valueOf(in.readUTF()); option.kickAddress = Assembler.Address.valueOf(in.readUTF()); option.kickStackWord = Assembler.StackWord.valueOf(in.readUTF()); option.kickMonoSprite = Assembler.MonoSprite.valueOf(in.readUTF()); option.kickMultiSprite = Assembler.MultiSprite.valueOf(in.readUTF()); option.kickText = Assembler.Text.valueOf(in.readUTF()); option.kickNumText = Assembler.NumText.valueOf(in.readUTF()); option.kickZeroText = Assembler.ZeroText.valueOf(in.readUTF()); option.kickHighText = Assembler.HighText.valueOf(in.readUTF()); option.kickShiftText = Assembler.ShiftText.valueOf(in.readUTF()); option.kickScreenText = Assembler.ScreenText.valueOf(in.readUTF()); option.kickPetasciiText = Assembler.PetasciiText.valueOf(in.readUTF()); option.tass64Starting = Assembler.Starting.valueOf(in.readUTF()); option.tass64Origin = Assembler.Origin.valueOf(in.readUTF()); option.tass64Label = Assembler.Label.valueOf(in.readUTF()); option.tass64Comment = Assembler.Comment.valueOf(in.readUTF()); option.tass64BlockComment = Assembler.BlockComment.valueOf(in.readUTF()); option.tass64Byte = Assembler.Byte.valueOf(in.readUTF()); option.tass64Word = Assembler.Word.valueOf(in.readUTF()); option.tass64WordSwapped = Assembler.WordSwapped.valueOf(in.readUTF()); option.tass64Tribyte = Assembler.Tribyte.valueOf(in.readUTF()); option.tass64Long = Assembler.Long.valueOf(in.readUTF()); option.tass64Address = Assembler.Address.valueOf(in.readUTF()); option.tass64StackWord = Assembler.StackWord.valueOf(in.readUTF()); option.tass64MonoSprite = Assembler.MonoSprite.valueOf(in.readUTF()); option.tass64MultiSprite = Assembler.MultiSprite.valueOf(in.readUTF()); option.tass64Text = Assembler.Text.valueOf(in.readUTF()); option.tass64NumText = Assembler.NumText.valueOf(in.readUTF()); option.tass64ZeroText = Assembler.ZeroText.valueOf(in.readUTF()); option.tass64HighText = Assembler.HighText.valueOf(in.readUTF()); option.tass64ShiftText = Assembler.ShiftText.valueOf(in.readUTF()); option.tass64ScreenText = Assembler.ScreenText.valueOf(in.readUTF()); option.tass64PetasciiText = Assembler.PetasciiText.valueOf(in.readUTF()); option.commentC64ZeroPage = in.readBoolean(); option.commentC64StackArea = in.readBoolean(); option.commentC64_200Area = in.readBoolean(); option.commentC64_300Area = in.readBoolean(); option.commentC64ScreenArea = in.readBoolean(); option.commentC64BasicFreeArea = in.readBoolean(); option.commentC64BasicRom = in.readBoolean(); option.commentC64FreeRam = in.readBoolean(); option.commentC64VicII = in.readBoolean(); option.commentC64Sid = in.readBoolean(); option.commentC64ColorArea = in.readBoolean(); option.commentC64Cia1 = in.readBoolean(); option.commentC64Cia2 = in.readBoolean(); option.commentC64KernalRom = in.readBoolean(); option.commentC128ZeroPage = in.readBoolean(); option.commentC128StackArea = in.readBoolean(); option.commentC128_200Area = in.readBoolean(); option.commentC128_300Area = in.readBoolean(); option.commentC128ScreenArea = in.readBoolean(); option.commentC128AppProgArea = in.readBoolean(); option.commentC128BasicRom = in.readBoolean(); option.commentC128Cia1 = in.readBoolean(); option.commentC128Cia2 = in.readBoolean(); option.commentC128Color = in.readBoolean(); option.commentC128DMA = in.readBoolean(); option.commentC128KernalRom = in.readBoolean(); option.commentC128MMU = in.readBoolean(); option.commentC128ScreenMem = in.readBoolean(); option.commentC128UserBasic = in.readBoolean(); option.commentC128VDC = in.readBoolean(); option.commentC128VideoColor = in.readBoolean(); option.commentC128VicII = in.readBoolean(); option.commentC128Sid = in.readBoolean(); option.commentC1541ZeroPage = in.readBoolean(); option.commentC1541StackArea = in.readBoolean(); option.commentC1541_200Area = in.readBoolean(); option.commentC1541Buffer0 = in.readBoolean(); option.commentC1541Buffer1 = in.readBoolean(); option.commentC1541Buffer2 = in.readBoolean(); option.commentC1541Buffer3 = in.readBoolean(); option.commentC1541Buffer4 = in.readBoolean(); option.commentC1541Via1 = in.readBoolean(); option.commentC1541Via2 = in.readBoolean(); option.commentC1541Kernal = in.readBoolean(); option.commentPlus4ZeroPage = in.readBoolean(); option.commentPlus4StackArea = in.readBoolean(); option.commentPlus4_200Area = in.readBoolean(); option.commentPlus4_300Area = in.readBoolean(); option.commentPlus4_400Area = in.readBoolean(); option.commentPlus4_500Area = in.readBoolean(); option.commentPlus4_600Area = in.readBoolean(); option.commentPlus4_700Area = in.readBoolean(); option.commentPlus4ColorArea = in.readBoolean(); option.commentPlus4VideoArea = in.readBoolean(); option.commentPlus4BasicRamP = in.readBoolean(); option.commentPlus4BasicRamN = in.readBoolean(); option.commentPlus4Luminance = in.readBoolean(); option.commentPlus4ColorBitmap = in.readBoolean(); option.commentPlus4GraphicData = in.readBoolean(); option.commentPlus4BasicRom = in.readBoolean(); option.commentPlus4BasicExt = in.readBoolean(); option.commentPlus4Caracter = in.readBoolean(); option.commentPlus4Acia = in.readBoolean(); option.commentPlus4_6529B_1 = in.readBoolean(); option.commentPlus4_6529B_2 = in.readBoolean(); option.commentPlus4Ted = in.readBoolean(); option.commentPlus4Kernal = in.readBoolean(); option.commentVic20ZeroPage = in.readBoolean(); option.commentVic20StackArea = in.readBoolean(); option.commentVic20_200Area = in.readBoolean(); option.commentVic20_300Area = in.readBoolean(); option.commentVic20_400Area = in.readBoolean(); option.commentVic20Vic = in.readBoolean(); option.commentVic20Via1 = in.readBoolean(); option.commentVic20Via2 = in.readBoolean(); option.commentVic20UserBasic = in.readBoolean(); option.commentVic20Screen = in.readBoolean(); option.commentVic20_8kExp1 = in.readBoolean(); option.commentVic20_8kExp2 = in.readBoolean(); option.commentVic20_8kExp3 = in.readBoolean(); option.commentVic20Character = in.readBoolean(); option.commentVic20Color = in.readBoolean(); option.commentVic20Block2 = in.readBoolean(); option.commentVic20Block3 = in.readBoolean(); option.commentVic20Block4 = in.readBoolean(); option.commentVic20BasicRom = in.readBoolean(); option.commentVic20KernalRom = in.readBoolean(); option.assembler = Name.valueOf(in.readUTF()); // 1.0 option.memoryValue = in.readByte(); option.numInstrCSpaces = in.readInt(); option.numInstrCTabs = in.readInt(); option.numDataCSpaces = in.readInt(); option.numDataCTabs = in.readInt(); // 1.2 option.allowUtf = in.readBoolean(); // 1.6 option.useSidFreq=in.readBoolean(); option.sidFreqMarkMem=in.readBoolean(); option.sidFreqCreateLabel=in.readBoolean(); option.sidFreqCreateComment=in.readBoolean(); option.createPSID=in.readBoolean(); option.notMarkPSID=in.readBoolean(); option.heather=in.readInt(); option.custom=in.readUTF(); option.repositionate=in.readBoolean(); // 1.7 option.pedantic=in.readBoolean(); option.clickVlPatch=in.readBoolean(); // 2.1 option.glassStarting = Assembler.Starting.valueOf(in.readUTF()); option.glassOrigin = Assembler.Origin.valueOf(in.readUTF()); option.glassLabel = Assembler.Label.valueOf(in.readUTF()); option.glassComment = Assembler.Comment.valueOf(in.readUTF()); option.glassBlockComment = Assembler.BlockComment.valueOf(in.readUTF()); option.glassByte = Assembler.Byte.valueOf(in.readUTF()); option.glassWord = Assembler.Word.valueOf(in.readUTF()); option.glassWordSwapped = Assembler.WordSwapped.valueOf(in.readUTF()); option.glassTribyte = Assembler.Tribyte.valueOf(in.readUTF()); option.glassLong = Assembler.Long.valueOf(in.readUTF()); option.glassAddress = Assembler.Address.valueOf(in.readUTF()); option.glassStackWord = Assembler.StackWord.valueOf(in.readUTF()); option.glassMonoSprite = Assembler.MonoSprite.valueOf(in.readUTF()); option.glassMultiSprite = Assembler.MultiSprite.valueOf(in.readUTF()); option.glassText = Assembler.Text.valueOf(in.readUTF()); option.glassNumText = Assembler.NumText.valueOf(in.readUTF()); option.glassZeroText = Assembler.ZeroText.valueOf(in.readUTF()); option.glassHighText = Assembler.HighText.valueOf(in.readUTF()); option.glassShiftText = Assembler.ShiftText.valueOf(in.readUTF()); option.glassScreenText = Assembler.ScreenText.valueOf(in.readUTF()); option.glassPetasciiText = Assembler.PetasciiText.valueOf(in.readUTF()); //2.3 option.numSpacesOp=in.readInt(); option.numTabsOp=in.readInt(); option.sizePreviewFont=in.readInt(); option.sizeSourceFont=in.readInt(); // 2.4 option.createSAP=in.readBoolean(); option.notMarkSAP=in.readBoolean(); option.commentAtariZeroPage=in.readBoolean(); option.commentAtariStackArea=in.readBoolean(); option.commentAtari_200Area=in.readBoolean(); option.commentAtari_300Area=in.readBoolean(); option.commentAtari_400Area=in.readBoolean(); option.commentAtari_500Area=in.readBoolean(); option.commentAtariCartridgeB=in.readBoolean(); option.commentAtariCartridgeA=in.readBoolean(); option.commentAtariGtia=in.readBoolean(); option.commentAtariPokey=in.readBoolean(); option.commentAtariPia=in.readBoolean(); option.commentAtariAntic=in.readBoolean(); option.commentAtariKernalRom=in.readBoolean(); // 2.5 option.dotsType=in.readInt(); option.noUndocumented=in.readBoolean(); // 2.6 option.chooserPerc=in.readBoolean(); option.showMiniature=in.readBoolean(); // 2.7 option.syntaxTheme=in.readUTF(); // 2.8 option.showSidId=in.readBoolean(); option.sidIdPath=in.readUTF(); // 2.9 option.sidFreqLinearTable=in.readBoolean(); option.sidFreqCombinedTable=in.readBoolean(); option.sidFreqInverseLinearTable=in.readBoolean(); option.sidFreqLinearOctNoteTable=in.readBoolean(); option.sidFreqHiOct13Table=in.readBoolean(); option.sidFreqLinearScaleTable=in.readBoolean(); option.sidFreqShortLinearTable=in.readBoolean(); option.sidFreqShortCombinedTable=in.readBoolean(); option.sidFreqHiOctCombinedTable=in.readBoolean(); option.sidFreqHiOctCombinedInvertedTable=in.readBoolean(); option.sidFreqLoOctCombinedTable=in.readBoolean(); option.sidFreqHiOct12Table=in.readBoolean(); // 3.0 option.asmStarting = Assembler.Starting.valueOf(in.readUTF()); option.asmOrigin = Assembler.Origin.valueOf(in.readUTF()); option.asmLabel = Assembler.Label.valueOf(in.readUTF()); option.asmComment = Assembler.Comment.valueOf(in.readUTF()); option.asmBlockComment = Assembler.BlockComment.valueOf(in.readUTF()); option.asmByte = Assembler.Byte.valueOf(in.readUTF()); option.asmWord = Assembler.Word.valueOf(in.readUTF()); option.asmWordSwapped = Assembler.WordSwapped.valueOf(in.readUTF()); option.asmTribyte = Assembler.Tribyte.valueOf(in.readUTF()); option.asmLong = Assembler.Long.valueOf(in.readUTF()); option.asmAddress = Assembler.Address.valueOf(in.readUTF()); option.asmStackWord = Assembler.StackWord.valueOf(in.readUTF()); option.asmMonoSprite = Assembler.MonoSprite.valueOf(in.readUTF()); option.asmMultiSprite = Assembler.MultiSprite.valueOf(in.readUTF()); option.asmText = Assembler.Text.valueOf(in.readUTF()); option.asmNumText = Assembler.NumText.valueOf(in.readUTF()); option.asmZeroText = Assembler.ZeroText.valueOf(in.readUTF()); option.asmHighText = Assembler.HighText.valueOf(in.readUTF()); option.asmShiftText = Assembler.ShiftText.valueOf(in.readUTF()); option.asmScreenText = Assembler.ScreenText.valueOf(in.readUTF()); option.asmPetasciiText = Assembler.PetasciiText.valueOf(in.readUTF()); option.asiStarting = Assembler.Starting.valueOf(in.readUTF()); option.asiOrigin = Assembler.Origin.valueOf(in.readUTF()); option.asiLabel = Assembler.Label.valueOf(in.readUTF()); option.asiComment = Assembler.Comment.valueOf(in.readUTF()); option.asiBlockComment = Assembler.BlockComment.valueOf(in.readUTF()); option.asiByte = Assembler.Byte.valueOf(in.readUTF()); option.asiWord = Assembler.Word.valueOf(in.readUTF()); option.asiWordSwapped = Assembler.WordSwapped.valueOf(in.readUTF()); option.asiTribyte = Assembler.Tribyte.valueOf(in.readUTF()); option.asiLong = Assembler.Long.valueOf(in.readUTF()); option.asiAddress = Assembler.Address.valueOf(in.readUTF()); option.asiStackWord = Assembler.StackWord.valueOf(in.readUTF()); option.asiMonoSprite = Assembler.MonoSprite.valueOf(in.readUTF()); option.asiMultiSprite = Assembler.MultiSprite.valueOf(in.readUTF()); option.asiText = Assembler.Text.valueOf(in.readUTF()); option.asiNumText = Assembler.NumText.valueOf(in.readUTF()); option.asiZeroText = Assembler.ZeroText.valueOf(in.readUTF()); option.asiHighText = Assembler.HighText.valueOf(in.readUTF()); option.asiShiftText = Assembler.ShiftText.valueOf(in.readUTF()); option.asiScreenText = Assembler.ScreenText.valueOf(in.readUTF()); option.asiPetasciiText = Assembler.PetasciiText.valueOf(in.readUTF()); } catch (FileNotFoundException e) { return true; } catch (Exception e) { System.err.println(e); return false; } return true; } /** * Write the option output file * * @param file the file to write * @param option the option to write * @return true if operation is ok */ public boolean writeOptionFile(File file, Option option) { try { DataOutputStream out=new DataOutputStream( new BufferedOutputStream( new FileOutputStream(file))); out.writeBoolean(option.opcodeUpperCasePreview); out.writeBoolean(option.opcodeUpperCaseSource); out.writeByte(option.illegalOpcodeMode); out.writeByte(option.commentLanguage); out.writeBoolean(option.useAsCode); out.writeBoolean(option.eraseDComm); out.writeBoolean(option.erasePlus); out.writeInt(option.maxLabelLength); out.writeInt(option.maxByteAggregate); out.writeUTF(option.psidInitSongsLabel); out.writeUTF(option.psidPlaySoundsLabel); out.writeUTF(option.sidFreqLoLabel); out.writeUTF(option.sidFreqHiLabel); // 0.8 out.writeInt(option.theme); out.writeUTF(option.lafName); out.writeUTF(option.flatLaf); // 0.9 out.writeInt(option.numInstrSpaces); out.writeInt(option.numInstrTabs); out.writeInt(option.numDataSpaces); out.writeInt(option.numDataTabs); out.writeBoolean(option.labelOnSepLine); out.writeBoolean(option.clickDcErase); out.writeBoolean(option.clickDlErase); out.writeBoolean(option.clickUbEdit); out.writeBoolean(option.clickUcEdit); out.writeBoolean(option.clickUlEdit); out.writeBoolean(option.forceCompilation); out.writeInt(option.maxWordAggregate); out.writeInt(option.maxTribyteAggregate); out.writeInt(option.maxLongAggregate); out.writeInt(option.maxSwappedAggregate); out.writeInt(option.maxTextAggregate); out.writeInt(option.maxAddressAggregate); out.writeInt(option.maxStackWordAggregate); out.writeUTF(option.tmpPath); out.writeBoolean(option.dasmF3Comp); out.writeUTF(option.dasmStarting.name()); out.writeUTF(option.dasmOrigin.name()); out.writeUTF(option.dasmLabel.name()); out.writeUTF(option.dasmComment.name()); out.writeUTF(option.dasmBlockComment.name()); out.writeUTF(option.dasmByte.name()); out.writeUTF(option.dasmWord.name()); out.writeUTF(option.dasmWordSwapped.name()); out.writeUTF(option.dasmTribyte.name()); out.writeUTF(option.dasmLong.name()); out.writeUTF(option.dasmAddress.name()); out.writeUTF(option.dasmStackWord.name()); out.writeUTF(option.dasmMonoSprite.name()); out.writeUTF(option.dasmMultiSprite.name()); out.writeUTF(option.dasmText.name()); out.writeUTF(option.dasmNumText.name()); out.writeUTF(option.dasmZeroText.name()); out.writeUTF(option.dasmHighText.name()); out.writeUTF(option.dasmShiftText.name()); out.writeUTF(option.dasmScreenText.name()); out.writeUTF(option.dasmPetasciiText.name()); out.writeUTF(option.tmpxStarting.name()); out.writeUTF(option.tmpxOrigin.name()); out.writeUTF(option.tmpxLabel.name()); out.writeUTF(option.tmpxComment.name()); out.writeUTF(option.tmpxBlockComment.name()); out.writeUTF(option.tmpxByte.name()); out.writeUTF(option.tmpxWord.name()); out.writeUTF(option.tmpxWordSwapped.name()); out.writeUTF(option.tmpxTribyte.name()); out.writeUTF(option.tmpxLong.name()); out.writeUTF(option.tmpxAddress.name()); out.writeUTF(option.tmpxStackWord.name()); out.writeUTF(option.tmpxMonoSprite.name()); out.writeUTF(option.tmpxMultiSprite.name()); out.writeUTF(option.tmpxText.name()); out.writeUTF(option.tmpxNumText.name()); out.writeUTF(option.tmpxZeroText.name()); out.writeUTF(option.tmpxHighText.name()); out.writeUTF(option.tmpxShiftText.name()); out.writeUTF(option.tmpxScreenText.name()); out.writeUTF(option.tmpxPetasciiText.name()); out.writeUTF(option.ca65Starting.name()); out.writeUTF(option.ca65Origin.name()); out.writeUTF(option.ca65Label.name()); out.writeUTF(option.ca65Comment.name()); out.writeUTF(option.ca65BlockComment.name()); out.writeUTF(option.ca65Byte.name()); out.writeUTF(option.ca65Word.name()); out.writeUTF(option.ca65WordSwapped.name()); out.writeUTF(option.ca65Tribyte.name()); out.writeUTF(option.ca65Long.name()); out.writeUTF(option.ca65Address.name()); out.writeUTF(option.ca65StackWord.name()); out.writeUTF(option.ca65MonoSprite.name()); out.writeUTF(option.ca65MultiSprite.name()); out.writeUTF(option.ca65Text.name()); out.writeUTF(option.ca65NumText.name()); out.writeUTF(option.ca65ZeroText.name()); out.writeUTF(option.ca65HighText.name()); out.writeUTF(option.ca65ShiftText.name()); out.writeUTF(option.ca65ScreenText.name()); out.writeUTF(option.ca65PetasciiText.name()); out.writeUTF(option.acmeStarting.name()); out.writeUTF(option.acmeOrigin.name()); out.writeUTF(option.acmeLabel.name()); out.writeUTF(option.acmeComment.name()); out.writeUTF(option.acmeBlockComment.name()); out.writeUTF(option.acmeByte.name()); out.writeUTF(option.acmeWord.name()); out.writeUTF(option.acmeWordSwapped.name()); out.writeUTF(option.acmeTribyte.name()); out.writeUTF(option.acmeLong.name()); out.writeUTF(option.acmeAddress.name()); out.writeUTF(option.acmeStackWord.name()); out.writeUTF(option.acmeMonoSprite.name()); out.writeUTF(option.acmeMultiSprite.name()); out.writeUTF(option.acmeText.name()); out.writeUTF(option.acmeNumText.name()); out.writeUTF(option.acmeZeroText.name()); out.writeUTF(option.acmeHighText.name()); out.writeUTF(option.acmeShiftText.name()); out.writeUTF(option.acmeScreenText.name()); out.writeUTF(option.acmePetasciiText.name()); out.writeBoolean(option.kickColonMacro); out.writeUTF(option.kickStarting.name()); out.writeUTF(option.kickOrigin.name()); out.writeUTF(option.kickLabel.name()); out.writeUTF(option.kickComment.name()); out.writeUTF(option.kickBlockComment.name()); out.writeUTF(option.kickByte.name()); out.writeUTF(option.kickWord.name()); out.writeUTF(option.kickWordSwapped.name()); out.writeUTF(option.kickTribyte.name()); out.writeUTF(option.kickLong.name()); out.writeUTF(option.kickAddress.name()); out.writeUTF(option.kickStackWord.name()); out.writeUTF(option.kickMonoSprite.name()); out.writeUTF(option.kickMultiSprite.name()); out.writeUTF(option.kickText.name()); out.writeUTF(option.kickNumText.name()); out.writeUTF(option.kickZeroText.name()); out.writeUTF(option.kickHighText.name()); out.writeUTF(option.kickShiftText.name()); out.writeUTF(option.kickScreenText.name()); out.writeUTF(option.kickPetasciiText.name()); out.writeUTF(option.tass64Starting.name()); out.writeUTF(option.tass64Origin.name()); out.writeUTF(option.tass64Label.name()); out.writeUTF(option.tass64Comment.name()); out.writeUTF(option.tass64BlockComment.name()); out.writeUTF(option.tass64Byte.name()); out.writeUTF(option.tass64Word.name()); out.writeUTF(option.tass64WordSwapped.name()); out.writeUTF(option.tass64Tribyte.name()); out.writeUTF(option.tass64Long.name()); out.writeUTF(option.tass64Address.name()); out.writeUTF(option.tass64StackWord.name()); out.writeUTF(option.tass64MonoSprite.name()); out.writeUTF(option.tass64MultiSprite.name()); out.writeUTF(option.tass64Text.name()); out.writeUTF(option.tass64NumText.name()); out.writeUTF(option.tass64ZeroText.name()); out.writeUTF(option.tass64HighText.name()); out.writeUTF(option.tass64ShiftText.name()); out.writeUTF(option.tass64ScreenText.name()); out.writeUTF(option.tass64PetasciiText.name()); out.writeBoolean(option.commentC64ZeroPage); out.writeBoolean(option.commentC64StackArea); out.writeBoolean(option.commentC64_200Area); out.writeBoolean(option.commentC64_300Area); out.writeBoolean(option.commentC64ScreenArea); out.writeBoolean(option.commentC64BasicFreeArea); out.writeBoolean(option.commentC64BasicRom); out.writeBoolean(option.commentC64FreeRam); out.writeBoolean(option.commentC64VicII); out.writeBoolean(option.commentC64Sid); out.writeBoolean(option.commentC64ColorArea); out.writeBoolean(option.commentC64Cia1); out.writeBoolean(option.commentC64Cia2); out.writeBoolean(option.commentC64KernalRom); out.writeBoolean(option.commentC128ZeroPage); out.writeBoolean(option.commentC128StackArea); out.writeBoolean(option.commentC128_200Area); out.writeBoolean(option.commentC128_300Area); out.writeBoolean(option.commentC128ScreenArea); out.writeBoolean(option.commentC128AppProgArea); out.writeBoolean(option.commentC128BasicRom); out.writeBoolean(option.commentC128Cia1); out.writeBoolean(option.commentC128Cia2); out.writeBoolean(option.commentC128Color); out.writeBoolean(option.commentC128DMA); out.writeBoolean(option.commentC128KernalRom); out.writeBoolean(option.commentC128MMU); out.writeBoolean(option.commentC128ScreenMem); out.writeBoolean(option.commentC128UserBasic); out.writeBoolean(option.commentC128VDC); out.writeBoolean(option.commentC128VideoColor); out.writeBoolean(option.commentC128VicII); out.writeBoolean(option.commentC128Sid); out.writeBoolean(option.commentC1541ZeroPage); out.writeBoolean(option.commentC1541StackArea); out.writeBoolean(option.commentC1541_200Area); out.writeBoolean(option.commentC1541Buffer0); out.writeBoolean(option.commentC1541Buffer1); out.writeBoolean(option.commentC1541Buffer2); out.writeBoolean(option.commentC1541Buffer3); out.writeBoolean(option.commentC1541Buffer4); out.writeBoolean(option.commentC1541Via1); out.writeBoolean(option.commentC1541Via2); out.writeBoolean(option.commentC1541Kernal); out.writeBoolean(option.commentPlus4ZeroPage); out.writeBoolean(option.commentPlus4StackArea); out.writeBoolean(option.commentPlus4_200Area); out.writeBoolean(option.commentPlus4_300Area); out.writeBoolean(option.commentPlus4_400Area); out.writeBoolean(option.commentPlus4_500Area); out.writeBoolean(option.commentPlus4_600Area); out.writeBoolean(option.commentPlus4_700Area); out.writeBoolean(option.commentPlus4ColorArea); out.writeBoolean(option.commentPlus4VideoArea); out.writeBoolean(option.commentPlus4BasicRamP); out.writeBoolean(option.commentPlus4BasicRamN); out.writeBoolean(option.commentPlus4Luminance); out.writeBoolean(option.commentPlus4ColorBitmap); out.writeBoolean(option.commentPlus4GraphicData); out.writeBoolean(option.commentPlus4BasicRom); out.writeBoolean(option.commentPlus4BasicExt); out.writeBoolean(option.commentPlus4Caracter); out.writeBoolean(option.commentPlus4Acia); out.writeBoolean(option.commentPlus4_6529B_1); out.writeBoolean(option.commentPlus4_6529B_2); out.writeBoolean(option.commentPlus4Ted); out.writeBoolean(option.commentPlus4Kernal); out.writeBoolean(option.commentVic20ZeroPage); out.writeBoolean(option.commentVic20StackArea); out.writeBoolean(option.commentVic20_200Area); out.writeBoolean(option.commentVic20_300Area); out.writeBoolean(option.commentVic20_400Area); out.writeBoolean(option.commentVic20Vic); out.writeBoolean(option.commentVic20Via1); out.writeBoolean(option.commentVic20Via2); out.writeBoolean(option.commentVic20UserBasic); out.writeBoolean(option.commentVic20Screen); out.writeBoolean(option.commentVic20_8kExp1); out.writeBoolean(option.commentVic20_8kExp2); out.writeBoolean(option.commentVic20_8kExp3); out.writeBoolean(option.commentVic20Character); out.writeBoolean(option.commentVic20Color); out.writeBoolean(option.commentVic20Block2); out.writeBoolean(option.commentVic20Block3); out.writeBoolean(option.commentVic20Block4); out.writeBoolean(option.commentVic20BasicRom); out.writeBoolean(option.commentVic20KernalRom); out.writeUTF(option.assembler.name()); // 1.0 out.writeByte(option.memoryValue); out.writeInt(option.numInstrCSpaces); out.writeInt(option.numInstrCTabs); out.writeInt(option.numDataCSpaces); out.writeInt(option.numDataCTabs); // 1.2 out.writeBoolean(option.allowUtf); // 1.6 out.writeBoolean(option.useSidFreq); out.writeBoolean(option.sidFreqMarkMem); out.writeBoolean(option.sidFreqCreateLabel); out.writeBoolean(option.sidFreqCreateComment); out.writeBoolean(option.createPSID); out.writeBoolean(option.notMarkPSID); out.writeInt(option.heather); out.writeUTF(option.custom); out.writeBoolean(option.repositionate); // 1.7 out.writeBoolean(option.pedantic); out.writeBoolean(option.clickVlPatch); // 2.1 out.writeUTF(option.glassStarting.name()); out.writeUTF(option.glassOrigin.name()); out.writeUTF(option.glassLabel.name()); out.writeUTF(option.glassComment.name()); out.writeUTF(option.glassBlockComment.name()); out.writeUTF(option.glassByte.name()); out.writeUTF(option.glassWord.name()); out.writeUTF(option.glassWordSwapped.name()); out.writeUTF(option.glassTribyte.name()); out.writeUTF(option.glassLong.name()); out.writeUTF(option.glassAddress.name()); out.writeUTF(option.glassStackWord.name()); out.writeUTF(option.glassMonoSprite.name()); out.writeUTF(option.glassMultiSprite.name()); out.writeUTF(option.glassText.name()); out.writeUTF(option.glassNumText.name()); out.writeUTF(option.glassZeroText.name()); out.writeUTF(option.glassHighText.name()); out.writeUTF(option.glassShiftText.name()); out.writeUTF(option.glassScreenText.name()); out.writeUTF(option.glassPetasciiText.name()); //2.3 out.writeInt(option.numSpacesOp); out.writeInt(option.numTabsOp); out.writeInt(option.sizePreviewFont); out.writeInt(option.sizeSourceFont); // 2.4 out.writeBoolean(option.createSAP); out.writeBoolean(option.notMarkSAP); out.writeBoolean(option.commentAtariZeroPage); out.writeBoolean(option.commentAtariStackArea); out.writeBoolean(option.commentAtari_200Area); out.writeBoolean(option.commentAtari_300Area); out.writeBoolean(option.commentAtari_400Area); out.writeBoolean(option.commentAtari_500Area); out.writeBoolean(option.commentAtariCartridgeB); out.writeBoolean(option.commentAtariCartridgeA); out.writeBoolean(option.commentAtariGtia); out.writeBoolean(option.commentAtariPokey); out.writeBoolean(option.commentAtariPia); out.writeBoolean(option.commentAtariAntic); out.writeBoolean(option.commentAtariKernalRom); // 2.5 out.writeInt(option.dotsType); out.writeBoolean(option.noUndocumented); // 2.6 out.writeBoolean(option.chooserPerc); out.writeBoolean(option.showMiniature); // 2.7 out.writeUTF(option.syntaxTheme); // 2.8 out.writeBoolean(option.showSidId); out.writeUTF(option.sidIdPath); // 2.9 out.writeBoolean(option.sidFreqLinearTable); out.writeBoolean(option.sidFreqCombinedTable); out.writeBoolean(option.sidFreqInverseLinearTable); out.writeBoolean(option.sidFreqLinearOctNoteTable); out.writeBoolean(option.sidFreqHiOct13Table); out.writeBoolean(option.sidFreqLinearScaleTable); out.writeBoolean(option.sidFreqShortLinearTable); out.writeBoolean(option.sidFreqShortCombinedTable); out.writeBoolean(option.sidFreqHiOctCombinedTable); out.writeBoolean(option.sidFreqHiOctCombinedInvertedTable); out.writeBoolean(option.sidFreqLoOctCombinedTable); out.writeBoolean(option.sidFreqHiOct12Table); // 3.0 out.writeUTF(option.asmStarting.name()); out.writeUTF(option.asmOrigin.name()); out.writeUTF(option.asmLabel.name()); out.writeUTF(option.asmComment.name()); out.writeUTF(option.asmBlockComment.name()); out.writeUTF(option.asmByte.name()); out.writeUTF(option.asmWord.name()); out.writeUTF(option.asmWordSwapped.name()); out.writeUTF(option.asmTribyte.name()); out.writeUTF(option.asmLong.name()); out.writeUTF(option.asmAddress.name()); out.writeUTF(option.asmStackWord.name()); out.writeUTF(option.asmMonoSprite.name()); out.writeUTF(option.asmMultiSprite.name()); out.writeUTF(option.asmText.name()); out.writeUTF(option.asmNumText.name()); out.writeUTF(option.asmZeroText.name()); out.writeUTF(option.asmHighText.name()); out.writeUTF(option.asmShiftText.name()); out.writeUTF(option.asmScreenText.name()); out.writeUTF(option.asmPetasciiText.name()); out.writeUTF(option.asiStarting.name()); out.writeUTF(option.asiOrigin.name()); out.writeUTF(option.asiLabel.name()); out.writeUTF(option.asiComment.name()); out.writeUTF(option.asiBlockComment.name()); out.writeUTF(option.asiByte.name()); out.writeUTF(option.asiWord.name()); out.writeUTF(option.asiWordSwapped.name()); out.writeUTF(option.asiTribyte.name()); out.writeUTF(option.asiLong.name()); out.writeUTF(option.asiAddress.name()); out.writeUTF(option.asiStackWord.name()); out.writeUTF(option.asiMonoSprite.name()); out.writeUTF(option.asiMultiSprite.name()); out.writeUTF(option.asiText.name()); out.writeUTF(option.asiNumText.name()); out.writeUTF(option.asiZeroText.name()); out.writeUTF(option.asiHighText.name()); out.writeUTF(option.asiShiftText.name()); out.writeUTF(option.asiScreenText.name()); out.writeUTF(option.asiPetasciiText.name()); out.flush(); out.close(); } catch (Exception e) { System.err.println(e); return false; } return true; } /** * Read the project from file * * @param file the file to read * @param project the project to fill from file * @return true if operation is ok */ public boolean readProjectFile(File file, Project project) { try { MemoryDasm mem; Relocate relocate; Patch patch; Freeze freeze; DataInputStream in; if (isGZipped(file)) in=new DataInputStream( new GZIPInputStream( new BufferedInputStream( new FileInputStream(file)))); else in=new DataInputStream( new BufferedInputStream( new FileInputStream(file))); byte version=in.readByte(); project.name=in.readUTF(); project.file=in.readUTF(); project.description=in.readUTF(); project.fileType=FileType.valueOf(in.readUTF()); if (version>0) project.targetType=TargetType.valueOf(in.readUTF()); else project.targetType=TargetType.C64; int size=in.readInt(); project.inB=new byte[size]; ///in.read(project.inB); for (int i=0; i<size;i++) { project.inB[i]=in.readByte(); } size=in.readInt(); project.memoryFlags=new byte[size]; ///in.read(project.memoryFlags); for (int i=0; i<size;i++) { project.memoryFlags[i]=in.readByte(); } size=in.readInt(); project.memory=new MemoryDasm[size]; for (int i=0; i<project.memory.length; i++) { mem=new MemoryDasm(); mem.address=in.readInt(); if (in.readBoolean()) mem.dasmComment=in.readUTF(); else mem.dasmComment=null; if (in.readBoolean()) mem.userComment=in.readUTF(); else mem.userComment=null; if (in.readBoolean()) mem.userBlockComment=in.readUTF(); else mem.userBlockComment=null; if (in.readBoolean()) mem.dasmLocation=in.readUTF(); else mem.dasmLocation=null; if (in.readBoolean()) mem.userLocation=in.readUTF(); else mem.userLocation=null; mem.isInside=in.readBoolean(); mem.isCode=in.readBoolean(); mem.isData=in.readBoolean(); if (version>0) { mem.isGarbage=in.readBoolean(); mem.dataType=DataType.valueOf(in.readUTF()); } // version 1 mem.copy=in.readByte(); mem.related=in.readInt(); mem.type=in.readChar(); if (project.fileType==FileType.MPR) { project.mpr=new MPR(); project.mpr.getElements(project.inB); } if (version>2) { // version 3 mem.index=in.readByte(); } if (version>8) { // version 9 mem.relatedAddressBase=in.readInt(); mem.relatedAddressDest=in.readInt(); } if (version>9) { // version 10 mem.basicType=BasicType.valueOf(in.readUTF()); } project.memory[i]=mem; } if (version>1) project.chip=in.readInt(); // version 2 if (version>2) { // version 3 for (int i=0; i<Constant.MIN_COLS; i++) { for (int j=0; j<Constant.MIN_ROWS; j++) { if (in.readBoolean()) project.constant.table[i][j]=in.readUTF(); else project.constant.table[i][j]=null; } } } if (version>3) { // version 4 size=in.readInt(); if (size==0) project.relocates=null; else { project.relocates=new Relocate[size]; for (int i=0; i<size; i++) { relocate=new Relocate(); relocate.fromStart=in.readInt(); relocate.fromEnd=in.readInt(); relocate.toStart=in.readInt(); relocate.toEnd=in.readInt(); project.relocates[i]=relocate; } } } if (version>4) { // version 5 size=in.readInt(); if (size==0) project.patches=null; else { project.patches=new Patch[size]; for (int i=0; i<size; i++) { patch=new Patch(); patch.address=in.readInt(); patch.value=in.readInt(); project.patches[i]=patch; } } } if (version>5) { // version 6 for (int i=0; i<Constant.MIN_COLS; i++) { for (int j=Constant.MIN_ROWS; j<Constant.ROWS; j++) { if (in.readBoolean()) project.constant.table[i][j]=in.readUTF(); else project.constant.table[i][j]=null; } } } if (version>6) { // version 7 size=in.readInt(); if (size==0) project.freezes=null; else { project.freezes=new Freeze[size]; for (int i=0; i<size; i++) { freeze=new Freeze(); freeze.name=in.readUTF(); if (in.readBoolean()) { int size2=in.readInt(); byte[] buf=new byte[size2]; for (int j=0; j<size2; j++) { buf[j]=in.readByte(); } freeze.text=new String(buf, "utf-8"); } else { freeze.text=in.readUTF(); } project.freezes[i]=freeze; } } } if (version>7) { // version 8 for (int i=Constant.MIN_COLS; i<Constant.COLS; i++) { for (int j=0; j<Constant.ROWS; j++) { if (in.readBoolean()) project.constant.table[i][j]=in.readUTF(); else project.constant.table[i][j]=null; } } } if (version>9) { // version 10 for (int i=0; i<Constant.COLS; i++) { for (int j=0; j<Constant.ROWS; j++) { if (in.readBoolean()) project.constant.comment[i][j]=in.readUTF(); else project.constant.comment[i][j]=null; } } } if (version>10) project.binAddress=in.readInt(); // version 11 } catch (Exception e) { System.err.println(e); return false; } return true; } /** * Write the project output file * * @param file the file to write * @param project the project to write * @return true if operation is ok */ public boolean writeProjectFile(File file, Project project) { try { DataOutputStream out=new DataOutputStream( new GZIPOutputStream( new BufferedOutputStream( new FileOutputStream(file)))); out.writeByte(project.ACTUAL_VERSION); out.writeUTF(project.name); out.writeUTF(project.file); out.writeUTF(project.description); out.writeUTF(project.fileType.name()); out.writeUTF(project.targetType.name()); // version 1 out.writeInt(project.inB.length); out.write(project.inB); out.writeInt(project.memoryFlags.length); out.write(project.memoryFlags); out.writeInt(project.memory.length); for (MemoryDasm memory : project.memory) { out.writeInt(memory.address); if (memory.dasmComment!=null) { out.writeBoolean(true); out.writeUTF(memory.dasmComment); } else { out.writeBoolean(false); } if (memory.userComment!=null) { out.writeBoolean(true); out.writeUTF(memory.userComment); } else { out.writeBoolean(false); } if (memory.userBlockComment!=null) { out.writeBoolean(true); out.writeUTF(memory.userBlockComment); } else { out.writeBoolean(false); } if (memory.dasmLocation!=null) { out.writeBoolean(true); out.writeUTF(memory.dasmLocation); } else { out.writeBoolean(false); } if (memory.userLocation!=null) { out.writeBoolean(true); out.writeUTF(memory.userLocation); } else { out.writeBoolean(false); } out.writeBoolean(memory.isInside); out.writeBoolean(memory.isCode); out.writeBoolean(memory.isData); out.writeBoolean(memory.isGarbage); // version 1 out.writeUTF(memory.dataType.name()); // version 1 out.writeByte(memory.copy); out.writeInt(memory.related); out.writeChar(memory.type); out.writeByte(memory.index); // version 3 out.writeInt(memory.relatedAddressBase); // version 9 out.writeInt(memory.relatedAddressDest); // version 9 out.writeUTF(memory.basicType.name()); // version 10 } out.writeInt(project.chip); // version 2 // version 3 for (int i=0; i<Constant.MIN_COLS; i++) { for (int j=0; j<Constant.MIN_ROWS; j++) { if (project.constant.table[i][j]!=null) { out.writeBoolean(true); out.writeUTF(project.constant.table[i][j]); } else { out.writeBoolean(false); } } } // version 4 if (project.relocates==null) out.writeInt(0); else { out.writeInt(project.relocates.length); for (Relocate relocate:project.relocates) { out.writeInt(relocate.fromStart); out.writeInt(relocate.fromEnd); out.writeInt(relocate.toStart); out.writeInt(relocate.toEnd); } } // version 5 if (project.patches==null) out.writeInt(0); else { out.writeInt(project.patches.length); for (Patch patch:project.patches) { out.writeInt(patch.address); out.writeInt(patch.value); } } // version 6 for (int i=0; i<Constant.MIN_COLS; i++) { for (int j=Constant.MIN_ROWS; j<Constant.ROWS; j++) { if (project.constant.table[i][j]!=null) { out.writeBoolean(true); out.writeUTF(project.constant.table[i][j]); } else { out.writeBoolean(false); } } } // version 7 if (project.freezes==null) out.writeInt(0); else { out.writeInt(project.freezes.length); for (Freeze freeze:project.freezes) { out.writeUTF(freeze.name); // writeUTF is limited to FFFF size, so apply different way if (freeze.text.length()>0xFFFF) { out.writeBoolean(true); byte[] buf=freeze.text.getBytes("utf-8"); out.writeInt(buf.length); out.write(buf); } else { out.writeBoolean(false); out.writeUTF(freeze.text); } } } // version 8 for (int i=Constant.MIN_COLS; i<Constant.COLS; i++) { for (int j=0; j<Constant.ROWS; j++) { if (project.constant.table[i][j]!=null) { out.writeBoolean(true); out.writeUTF(project.constant.table[i][j]); } else { out.writeBoolean(false); } } } // version 10 for (int i=0; i<Constant.COLS; i++) { for (int j=0; j<Constant.ROWS; j++) { if (project.constant.comment[i][j]!=null) { out.writeBoolean(true); out.writeUTF(project.constant.comment[i][j]); } else { out.writeBoolean(false); } } } // version 11 out.writeInt(project.binAddress); out.flush(); out.close(); } catch (Exception e) { System.err.println(e); return false; } return true; } /** * Read percent of the project from file * This is approssimate as not all rules as follow to speed up the read and * else the MPR is not coved * * @param file the file to read * @return >0 as percent, -1 as error */ public int readPercProjectFile(File file) { int total=0; int done=0; try { MemoryDasm mem; DataInputStream in; if (isGZipped(file)) in=new DataInputStream( new GZIPInputStream( new BufferedInputStream( new FileInputStream(file)))); else in=new DataInputStream( new BufferedInputStream( new FileInputStream(file))); byte version=in.readByte(); in.skipNBytes((int)in.readChar()); //name in.skipNBytes((int)in.readChar()); // file in.skipNBytes((int)in.readChar()); // description in.skipNBytes((int)in.readChar()); // file type if (version>0) in.skipNBytes((int)in.readChar()); //target int size=in.readInt(); in.skipNBytes(size); // inB size=in.readInt(); in.skipNBytes(size); // memoryFlags boolean isInside; boolean isGarbage; boolean dasmLoc; boolean userLoc; size=in.readInt(); for (int i=0; i<size; i++) { in.readInt(); // address if (in.readBoolean()) in.skipNBytes((int)in.readChar()); //dasmComment if (in.readBoolean()) in.skipNBytes((int)in.readChar()); // userComemnt if (in.readBoolean()) in.skipNBytes((int)in.readChar()); // userBlockComment if (in.readBoolean()) { in.skipNBytes((int)in.readChar()); // dasmLocation dasmLoc=true; } else dasmLoc=false; if (in.readBoolean()) { in.skipNBytes((int)in.readChar()); // userLocation userLoc=true; } else userLoc=false; isInside=in.readBoolean(); // isInside in.readBoolean(); // isCode in.readBoolean(); // isData if (version>0) { isGarbage=in.readBoolean(); // isGarbage in.skipNBytes((int)in.readChar()); // datatype } // version 1 else isGarbage=false; in.readByte(); // copy in.readInt(); // related in.readChar(); // type /** if (project.fileType==FileType.MPR) { project.mpr=new MPR(); project.mpr.getElements(project.inB); } */ if (version>2) { // version 3 in.readByte(); // index } if (!isInside ||isGarbage) continue; if (userLoc) { total++; done++; } else { if (dasmLoc) total++; } } } catch (Exception e) { System.err.println(e); return -1; } return (int)(done*100/total); } /** * Read the file to disassemble * * @param inN the input name * @return the buffer with data * @throws java.io.FileNotFoundException * @throws IOException * @throws SecurityException */ public byte[] readFile(String inN) throws FileNotFoundException, IOException, SecurityException { int size; BufferedInputStream inF; File file=new File(inN); byte[] inB = new byte[(int)file.length()]; // see if the file is present inF=new BufferedInputStream(new FileInputStream(file)); // read the file size=inF.read(inB); inF.close(); if (size<=0) return null; // resize to the read size of read byte byte[] res=new byte[size]; System.arraycopy(inB, 0, res, 0, size); return res; } /** * Write the buffer to file * * @param file the file to create * @param inB the buffer to write * @return true if operation is ok */ public boolean writeFile(File file, byte[]inB) { try { BufferedOutputStream outF=new BufferedOutputStream(new FileOutputStream(file)); outF.write(inB, 0, inB.length); outF.flush(); outF.close(); } catch (Exception e) { return false; } return true; } /** * Wtyie the given text to file * * @param file the file to use * @param text the text to write * @return true if operation is ok */ public boolean writeTxtFile(File file, String text) { try ( FileWriter writer=new FileWriter(file); BufferedWriter bw=new BufferedWriter(writer)) { bw.write(text); } catch (IOException e) { System.err.println(e); return false; } return true; } /** * Write the constant column to file * * @param file the file to read * @param constant the constant container * @param col the column to use * @return true if operation is ok */ public boolean writeConstantFile(File file, Constant constant, int col) { try { DataOutputStream out=new DataOutputStream( new BufferedOutputStream( new FileOutputStream(file))); out.writeUTF(HEADER_CST); // write header out.writeInt(1); // write version String[] values=constant.table[col]; out.writeInt(values.length); for (String val:values) { if (val==null) out.writeBoolean(false); else { out.writeBoolean(true); out.writeUTF(val); } } out.close(); out.flush(); } catch (Exception e) { System.err.println(e); return false; } return true; } /** * Read the constant column to file * * @param file the file to read * @param constant the constant container * @param col the column to use * @return true if operation is ok */ public boolean readConstantFile(File file, Constant constant, int col) { try { DataInputStream in=new DataInputStream( new BufferedInputStream( new FileInputStream(file))); String header=in.readUTF(); // test header if (!header.equals((HEADER_CST))) { return false; } // test for valid version int version=in.readInt(); if (version !=1) { return false; } int size=in.readInt(); for (int i=0; i<size; i++) { if (in.readBoolean()) constant.table[col][i]=in.readUTF(); else constant.table[col][i]=null; } in.close(); } catch (Exception e) { System.err.println(e); return false; } return true; } /** * Checks if a file is gzipped. * * @param file input file * @return true if it is gzipped */ public static boolean isGZipped(File file) { int magic = 0; try { RandomAccessFile raf = new RandomAccessFile(file, "r"); magic = raf.read() & 0xff | ((raf.read() << 8) & 0xff00); raf.close(); } catch (Throwable e) { System.err.println(e); } return magic == GZIPInputStream.GZIP_MAGIC; } }
64,015
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Constant.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/Constant.java
/** * @(#)Costant.java 2021/04/24 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.main; import java.util.Arrays; /** * Constant for compiler * * @author ice */ public class Constant { // Allowed chars private static final String allowed="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/*+-_><()"; private static final String notallowed="/*+-><()"; /** Columns */ public static final int COLS=20; /** Min Columns */ public static final int MIN_COLS=10; /** Min Rows */ public static final int MIN_ROWS=256; /** Rows */ public static final int ROWS=0xFFFF+1; /** String tables of constants */ public String[][] table=new String[COLS][ROWS]; /** String comments of constants */ public String[][] comment=new String[COLS][ROWS]; @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Constant other = (Constant) obj; if (!Arrays.deepEquals(this.table, other.table)) { return false; } if (!Arrays.deepEquals(this.comment, other.comment)) { return false; } return true; } @Override protected Object clone() { Constant res=new Constant(); for (int i=0; i<COLS; i++) { for (int j=0; j<ROWS; j++) { res.table[i][j]=table[i][j]; res.comment[i][j]=comment[i][j]; } } return res; } /** * True if the value is allowed (not present or not in reserved words) * * @param value * @return true if the value is allowed */ public boolean isAllowed(String value) { if (value==null || "".equals(value)) return false; for (int i=0; i<COLS; i++) { for (int j=0; j<ROWS; j++) { if (value.equals(table[i][j])) return false; } } return true; } /** * True if all values in constants are valid * * @param value the vlaue * @return true if all correct */ public boolean isCorrect(String value) { for (char c: value.toUpperCase().toCharArray()) { if (!allowed.contains(""+c)) return false; } return true; } /** * True if this is a constant to declare (so not dependig form other) * * @param value the value to check * @return true if true constant */ public boolean isConstant(String value) { if (!Character.isAlphabetic(value.charAt(0))) return false; for (char c: value.toUpperCase().toCharArray()) { if (notallowed.contains(""+c)) return false; } return true; } }
3,602
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Patch.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/Patch.java
/** * @(#)Patch.java 2021/11/14 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.main; /** * A patch for the memory * * @author ice */ public class Patch implements Cloneable { /** Address to patch */ public int address; /** Value to insert */ public int value; /** * Check if the ranges are valid * * @return true if ranges are valid */ public boolean isValidRange() { if (value<0 || value>255) return false; if (address<0 || address>0xFFFF) return false; return true; } /** * Clone the object * * @return the cloned object */ @Override public Object clone() { Patch copy=new Patch(); copy.address=address; copy.value=value; return copy; } @Override public boolean equals(Object obj) { if (!(obj instanceof Patch)) return false; Patch patch=(Patch) obj; if (patch.address!=address) return false; if (patch.value!=value) return false; return true; } @Override public int hashCode() { return super.hashCode()+79*address+71*value; } }
1,929
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
TargetType.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/TargetType.java
/** * @(#)FileTypejava 2020/10/10 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.main; import sw_emulator.software.cpu.CpuDasm; import sw_emulator.software.cpu.M6510Dasm; import sw_emulator.software.cpu.Z80Dasm; import sw_emulator.software.machine.AtariDasm; import sw_emulator.software.machine.C128Dasm; import sw_emulator.software.machine.C1541Dasm; import sw_emulator.software.machine.C64Dasm; import sw_emulator.software.machine.CPlus4Dasm; import sw_emulator.software.machine.CVic20Dasm; import sw_emulator.software.machine.OdysseyDasm; import static sw_emulator.swing.main.CpuFamily.I8048; import static sw_emulator.swing.main.CpuFamily.M6502; import static sw_emulator.swing.main.CpuFamily.Z80; /** * Target machine type for disassembly * * @author ice */ public enum TargetType { C64(M6502), C1541(M6502), C128(M6502), VIC20(M6502), PLUS4(M6502), C128Z(Z80), ATARI(M6502), ODYSSEY(I8048); /** Cpu fmaily of this target */ public CpuFamily cpuFamily; /** * Construct the cpu family */ private TargetType(CpuFamily cpuFamily) { this.cpuFamily = cpuFamily; } /** * Get the appropriate disassembler for the target type * * @return the disassembler to use */ public CpuDasm getDasm() { switch (this) { case C64: return new C64Dasm(); case C1541: return new C1541Dasm(); case C128: return new C128Dasm(); case VIC20: return new CVic20Dasm(); case PLUS4: return new CPlus4Dasm(); case C128Z: return new Z80Dasm(); case ATARI: return new AtariDasm(); case ODYSSEY: return new OdysseyDasm(); default: return new M6510Dasm(); } } }
2,657
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Option.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/Option.java
/** * @(#)Option.java 2019/12/01 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.main; import com.formdev.flatlaf.FlatDarculaLaf; import com.formdev.flatlaf.FlatDarkLaf; import com.formdev.flatlaf.FlatIntelliJLaf; import com.formdev.flatlaf.FlatLaf; import com.formdev.flatlaf.FlatLightLaf; import com.formdev.flatlaf.intellijthemes.FlatArcIJTheme; import com.formdev.flatlaf.intellijthemes.FlatArcOrangeIJTheme; import com.formdev.flatlaf.intellijthemes.FlatCyanLightIJTheme; import com.formdev.flatlaf.intellijthemes.FlatDarkFlatIJTheme; import com.formdev.flatlaf.intellijthemes.FlatDarkPurpleIJTheme; import com.formdev.flatlaf.intellijthemes.FlatDraculaIJTheme; import com.formdev.flatlaf.intellijthemes.FlatGradiantoDarkFuchsiaIJTheme; import com.formdev.flatlaf.intellijthemes.FlatGradiantoDeepOceanIJTheme; import com.formdev.flatlaf.intellijthemes.FlatGradiantoMidnightBlueIJTheme; import com.formdev.flatlaf.intellijthemes.FlatGrayIJTheme; import com.formdev.flatlaf.intellijthemes.FlatGruvboxDarkHardIJTheme; import com.formdev.flatlaf.intellijthemes.FlatGruvboxDarkMediumIJTheme; import com.formdev.flatlaf.intellijthemes.FlatGruvboxDarkSoftIJTheme; import com.formdev.flatlaf.intellijthemes.FlatHiberbeeDarkIJTheme; import com.formdev.flatlaf.intellijthemes.FlatHighContrastIJTheme; import com.formdev.flatlaf.intellijthemes.FlatLightFlatIJTheme; import com.formdev.flatlaf.intellijthemes.FlatMaterialDesignDarkIJTheme; import com.formdev.flatlaf.intellijthemes.FlatMonocaiIJTheme; import com.formdev.flatlaf.intellijthemes.FlatNordIJTheme; import com.formdev.flatlaf.intellijthemes.FlatOneDarkIJTheme; import com.formdev.flatlaf.intellijthemes.FlatSolarizedDarkIJTheme; import com.formdev.flatlaf.intellijthemes.FlatSolarizedLightIJTheme; import com.formdev.flatlaf.intellijthemes.FlatSpacegrayIJTheme; import com.formdev.flatlaf.intellijthemes.FlatVuesionIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatArcDarkContrastIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatArcDarkIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatAtomOneDarkContrastIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatAtomOneDarkIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatAtomOneLightContrastIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatAtomOneLightIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatDraculaContrastIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatGitHubContrastIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatGitHubIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatLightOwlContrastIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatLightOwlIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatMaterialDarkerContrastIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatMaterialDarkerIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatMaterialDeepOceanContrastIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatMaterialDeepOceanIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatMaterialLighterContrastIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatMaterialLighterIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatMaterialOceanicContrastIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatMaterialOceanicIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatMaterialPalenightContrastIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatMaterialPalenightIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatMonokaiProContrastIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatMonokaiProIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatNightOwlContrastIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatNightOwlIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatSolarizedDarkContrastIJTheme; import com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatSolarizedLightContrastIJTheme; import java.awt.Component; import java.util.Iterator; import javax.swing.SwingUtilities; import javax.swing.UIManager; import sw_emulator.software.cpu.M6510Dasm; import sw_emulator.software.machine.C64Dasm; import javax.swing.plaf.metal.MetalLookAndFeel; import sw_emulator.swing.plaf.metal.AquaTheme; import sw_emulator.swing.plaf.metal.CharcoalTheme; import sw_emulator.swing.plaf.metal.ContrastTheme; import sw_emulator.swing.plaf.metal.EmeraldTheme; import sw_emulator.swing.plaf.metal.RubyTheme; import javax.swing.plaf.metal.MetalTheme; import javax.swing.plaf.metal.OceanTheme; import javax.swing.plaf.metal.DefaultMetalTheme; import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; import org.fife.ui.rsyntaxtextarea.Theme; import sw_emulator.software.Assembler; import sw_emulator.software.Assembler.Name; import sw_emulator.swing.Shared; import sw_emulator.swing.table.DataTableModelMemory; /** * Store all the options about the program * * @author ice */ public class Option { /** Standard header for source disassembly */ public static final int HEATHER_STANDARD=1; /** No header for source disassembly */ public static final int HEATHER_NONE=2; /** Custom header for source disassembly */ public static final int HEATHER_CUSTOM=3; /** Dots type as ascii chars */ public static final int DOTS_ASCII=0; /** Dots type as utf chars */ public static final int DOTS_UTF16=1; // loook and feel options /** Macintosh Look and Feel */ public static final String LAF_MAC ="com.sun.java.swing.plaf.mac.MacLookAndFeel"; /** Metal Look and Feel */ public static final String LAF_METAL ="javax.swing.plaf.metal.MetalLookAndFeel"; /** Motif Look and Feel */ public static final String LAF_MOTIF ="com.sun.java.swing.plaf.motif.MotifLookAndFeel"; /** Windows Look and Feel */ public static final String LAF_WINDOWS ="com.sun.java.swing.plaf.windows.WindowsLookAndFeel"; /** Windows Look and Feel */ public static final String LAF_CWINDOWS ="com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel"; /** GTK Look and Feel */ public static final String LAF_GTK ="com.sun.java.swing.plaf.gtk.GTKLookAndFeel"; /** Nimbus Look and Feel */ ///public static final String LAF_NIMBUS ="com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"; public static final String LAF_NIMBUS ="javax.swing.plaf.nimbus.NimbusLookAndFeel"; /** Synth based Look and Feel */ public static final String LAF_SYNTH ="SYNTH"; /** Flat laf look & feel */ public static final FlatLaf[] LAF_SYNTH_FLAT = { new FlatLightLaf(), new FlatDarkLaf(), new FlatIntelliJLaf(), new FlatDarculaLaf(), new FlatArcIJTheme(), new FlatArcOrangeIJTheme(), new FlatCyanLightIJTheme(), new FlatDarkFlatIJTheme(), new FlatDarkPurpleIJTheme(), new FlatDraculaIJTheme(), new FlatGradiantoDarkFuchsiaIJTheme(), new FlatGradiantoDeepOceanIJTheme(), new FlatGradiantoMidnightBlueIJTheme(), new FlatGrayIJTheme(), new FlatGruvboxDarkHardIJTheme(), new FlatGruvboxDarkMediumIJTheme(), new FlatGruvboxDarkSoftIJTheme(), new FlatHiberbeeDarkIJTheme(), new FlatHighContrastIJTheme(), new FlatLightFlatIJTheme(), new FlatMaterialDesignDarkIJTheme(), new FlatMonocaiIJTheme(), new FlatNordIJTheme(), new FlatOneDarkIJTheme(), new FlatSolarizedDarkIJTheme(), new FlatSolarizedLightIJTheme(), new FlatSpacegrayIJTheme(), new FlatVuesionIJTheme(), new FlatArcDarkIJTheme(), new FlatArcDarkContrastIJTheme(), new FlatAtomOneDarkIJTheme(), new FlatAtomOneDarkContrastIJTheme(), new FlatAtomOneLightIJTheme(), new FlatAtomOneLightContrastIJTheme(), new FlatDraculaContrastIJTheme(), new FlatGitHubIJTheme(), new FlatGitHubContrastIJTheme(), new FlatLightOwlIJTheme(), new FlatLightOwlContrastIJTheme(), new FlatMaterialDarkerIJTheme(), new FlatMaterialDarkerContrastIJTheme(), new FlatMaterialDeepOceanIJTheme(), new FlatMaterialDeepOceanContrastIJTheme(), new FlatMaterialLighterIJTheme(), new FlatMaterialLighterContrastIJTheme(), new FlatMaterialOceanicIJTheme(), new FlatMaterialOceanicContrastIJTheme(), new FlatMaterialPalenightIJTheme(), new FlatMaterialPalenightContrastIJTheme(), new FlatMonokaiProIJTheme(), new FlatMonokaiProContrastIJTheme(), new FlatNightOwlIJTheme(), new FlatNightOwlContrastIJTheme(), new FlatSolarizedDarkContrastIJTheme(), new FlatSolarizedLightContrastIJTheme() }; /** Null theme */ public static final int THEME_NULL = -1; /** Ocean theme */ public static final int THEME_OCEAN = 0; /** Steel theme */ public static final int THEME_STEEL = 1; /** Aqua theme */ public static final int THEME_AQUA = 2; /** Charcoal theme */ public static final int THEME_CHARCOAL = 3; /** Contrast theme */ public static final int THEME_CONTRAST = 4; /** Emerald theme */ public static final int THEME_EMERALD = 5; /** Ruby theme */ public static final int THEME_RUBY = 6; /** Syntax default theme */ public static final String SYNTAX_DEFAULT = "/org/fife/ui/rsyntaxtextarea/themes/default.xml"; /** Syntax default alt theme */ public static final String SYNTAX_DEFAULT_ALT = "/org/fife/ui/rsyntaxtextarea/themes/default-alt.xml"; /** Syntax dark theme */ public static final String SYNTAX_DARK = "/org/fife/ui/rsyntaxtextarea/themes/dark.xml"; /** Syntax druid theme */ public static final String SYNTAX_DRUID = "/org/fife/ui/rsyntaxtextarea/themes/druid.xml"; /** Syntax eclipse theme */ public static final String SYNTAX_ECLIPSE = "/org/fife/ui/rsyntaxtextarea/themes/eclipse.xml"; /** Syntax idea theme */ public static final String SYNTAX_IDEA = "/org/fife/ui/rsyntaxtextarea/themes/idea.xml"; /** Syntax monokai theme */ public static final String SYNTAX_MONOKAI = "/org/fife/ui/rsyntaxtextarea/themes/monokai.xml"; /** Syntax vs theme */ public static final String SYNTAX_VS = "/org/fife/ui/rsyntaxtextarea/themes/vs.xml"; /** * Install look & feel */ public static void installLook() { for (FlatLaf laf : LAF_SYNTH_FLAT) { //FlatLaf.setup(laf); } } /** Look and feel name */ protected String lafName=LAF_METAL; /** Theme (-1 no theme)*/ protected int theme=0; /** theme for flat laf*/ protected String flatLaf="FlatLaf Light"; /** Syntax highlight xml path theme */ public String syntaxTheme=SYNTAX_DEFAULT; /** Mode of the illegal opcode */ public byte illegalOpcodeMode = M6510Dasm.MODE1; /** Memory value type to use */ public byte memoryValue = DataTableModelMemory.MOD_HEX; /** Uper case for opcode in preview */ public boolean opcodeUpperCasePreview = true; /** Uper case for opcode in source */ public boolean opcodeUpperCaseSource = false; /** Language for comment */ public byte commentLanguage = C64Dasm.LANG_ENGLISH; /** Use as code (not data) if memory is undefined */ public boolean useAsCode = true; /** Erase Dasm comment when convering to data*/ public boolean eraseDComm = true; /** Erase Dasm plus addresses when convering to data*/ public boolean erasePlus = true; /** Max length of a label */ public int maxLabelLength=25; /** Max byte aggregate for data row */ public int maxByteAggregate=8; /** Max word aggregate for data row */ public int maxWordAggregate=4; /** Max word swapped aggregate for data row */ public int maxSwappedAggregate=4; /** Max text aggregate for data row */ public int maxTextAggregate=32; /** Max tribyte aggregate for data row */ public int maxTribyteAggregate=3; /** Max long aggregate for data row */ public int maxLongAggregate=2; /** Max address aggregate for data row */ public int maxAddressAggregate=4; /** Max stack word aggregate for data row */ public int maxStackWordAggregate=4; /** Temporary path */ public String tmpPath=""; /** SidId file path */ public String sidIdPath=""; /** Use SID frequency*/ public boolean useSidFreq=true; /** Sid frequency marks the memory*/ public boolean sidFreqMarkMem=true; /** Sid frequency create labels */ public boolean sidFreqCreateLabel=true; /** Sid frequency create comment */ public boolean sidFreqCreateComment=true; /** Psid init song label to use as user defined */ public String psidInitSongsLabel = "initSongs"; /** Psid play sounds label to use as user definied */ public String psidPlaySoundsLabel = "playSound"; /** Sid low frequency table label */ public String sidFreqLoLabel = "frequencyLo"; /** Sid high frequency table label */ public String sidFreqHiLabel = "frequencyHi"; /** Not mark PSOD addresses */ public boolean notMarkPSID=false; /** Create PSID heather */ public boolean createPSID=true; /** Not mark SAP addresses */ public boolean notMarkSAP=false; /** Create Sap heather */ public boolean createSAP=true; /** Show SidId player information */ public boolean showSidId=false; /** Number of spaces in starting row of instruction */ public int numInstrSpaces=6; /** Number of tabs in starting row of instrucyion */ public int numInstrTabs=0; /** Number of spaces in starting row of data */ public int numDataSpaces=6; /** Number of space in starting row of data */ public int numDataTabs=0; /** Number of spaces after instruction for comment */ public int numInstrCSpaces=34; /** Number of tabs after instruction for comment */ public int numInstrCTabs=0; /** Number of spaces after data for comment */ public int numDataCSpaces=34; /** Number of tabs after data for comment */ public int numDataCTabs=0; /** Number of spaces from opcode and operand */ public int numSpacesOp=2; /** Number of tabs from opcode and operand */ public int numTabsOp=0; /** Size of preview font */ public int sizePreviewFont=12; /** Size of source font */ public int sizeSourceFont=12; /** Show perc in file chooser as colored icon */ public boolean chooserPerc=false; /** A label is on a sepatate line from instruction */ public boolean labelOnSepLine=true; /** Click on UC column edit user comment */ public boolean clickUcEdit=false; /** Click on UB column edit user global comment */ public boolean clickUbEdit=false; /** Click on UL column edit user label */ public boolean clickUlEdit=false; /** Click on DC column erase dasm comment */ public boolean clickDcErase=false; /** Click on DL column erase dasm label */ public boolean clickDlErase=false; /** Click on VL column patch the value */ public boolean clickVlPatch=false; /** Force compilation */ public boolean forceCompilation=false; /** Allow uft for text */ public boolean allowUtf=true; /** Heather to use */ public int heather=HEATHER_STANDARD; /** Custom heather */ public String custom; /** Repostionate the memory position after compilation */ public boolean repositionate=false; /** Be pedantic in read/save messages */ public boolean pedantic=false; /** Dots type for comments */ public int dotsType=DOTS_UTF16; /** No undocumented opcodes in source */ public boolean noUndocumented=false; /** Show miniature contents in scrollbars */ public boolean showMiniature=true; /** SidFreq: linear table */ public boolean sidFreqLinearTable=true; /** SidFreq: combined table */ public boolean sidFreqCombinedTable=true; /** SidFreq: inverse linear table */ public boolean sidFreqInverseLinearTable=true; /** SidFreq: linear octave note table */ public boolean sidFreqLinearOctNoteTable=true; /** SidFreq: high octave 13 table */ public boolean sidFreqHiOct13Table=true; /** SidFreq: linear scale table */ public boolean sidFreqLinearScaleTable=true; /** SidFreq: short linear table */ public boolean sidFreqShortLinearTable=true; /** SidFreq: short combined table */ public boolean sidFreqShortCombinedTable=true; /** SidFreq: high octave combined table */ public boolean sidFreqHiOctCombinedTable=true; /** SidFreq: high octave combined inverted table */ public boolean sidFreqHiOctCombinedInvertedTable=true; /** SidFreq: low octave combined table */ public boolean sidFreqLoOctCombinedTable=true; /** SidFreq: high octave 12 table */ public boolean sidFreqHiOct12Table=true; // comments C64 /** Comment zero page area */ public boolean commentC64ZeroPage=true; /** Comment stack area */ public boolean commentC64StackArea=true; /** Comment 200 area */ public boolean commentC64_200Area=true; /** Comment 300 area */ public boolean commentC64_300Area=true; /** Comment screen area */ public boolean commentC64ScreenArea=true; /** Comment basic free area */ public boolean commentC64BasicFreeArea=false; /** Comment basic rom area */ public boolean commentC64BasicRom=true; /** Comment free ram area */ public boolean commentC64FreeRam=false; /** Comment Vic II chip */ public boolean commentC64VicII=true; /** Comment Sid chip */ public boolean commentC64Sid=true; /** Comment color area */ public boolean commentC64ColorArea=true; /** Comment Cia 1 chip */ public boolean commentC64Cia1=true; /** Comment Cia 2 chip */ public boolean commentC64Cia2=true; /** Comment Kernal Rom */ public boolean commentC64KernalRom=true; // comments C128 /** C128: Comment zero page area */ public boolean commentC128ZeroPage=true; /** C128: Comment stack area */ public boolean commentC128StackArea=true; /** C128: Comment 200 area */ public boolean commentC128_200Area=true; /** C128: Comment 300 area */ public boolean commentC128_300Area=true; /** C128: Comment screen area */ public boolean commentC128ScreenArea=true; /** C128: Comment application program area*/ public boolean commentC128AppProgArea; /** C128: Comment Basic rom */ public boolean commentC128BasicRom; /** C128: Comment CIA 1 */ public boolean commentC128Cia1; /** C128: Comment CIA 2*/ public boolean commentC128Cia2; /** C128: Comment Color */ public boolean commentC128Color; /** C128: Comment DMA */ public boolean commentC128DMA; /** C128: Comment Kernal rom */ public boolean commentC128KernalRom; /** C128: Comment MMU */ public boolean commentC128MMU; /** C128: Comment screen memory */ public boolean commentC128ScreenMem; /** C128: Comment user basic area */ public boolean commentC128UserBasic; /** C128: Comment VDC */ public boolean commentC128VDC; /** C128: Comment video color mem */ public boolean commentC128VideoColor; /** C128: Comment Vic II */ public boolean commentC128VicII; /** C128: Comment SID */ public boolean commentC128Sid; // comments C1541 /** C1541: Comment zero page area */ public boolean commentC1541ZeroPage=true; /** C1541: Comment stack area */ public boolean commentC1541StackArea=true; /** C1541: Comment 200 area */ public boolean commentC1541_200Area=true; /** C1541: Comment VIA 1 */ public boolean commentC1541Via1=true; /** C1541: Comment VIA 2 */ public boolean commentC1541Via2=true; /** C1541: Comment Kernal */ public boolean commentC1541Kernal=true; /** C1541: Comment buffer 0 */ public boolean commentC1541Buffer0=false; /** C1541: Comment buffer 1 */ public boolean commentC1541Buffer1=false; /** C1541: Comment buffer 2 */ public boolean commentC1541Buffer2=false; /** C1541: Comment buffer 3 */ public boolean commentC1541Buffer3=false; /** C1541: Comment buffer 4 */ public boolean commentC1541Buffer4=false; /** Plus4: Comment zero page */ public boolean commentPlus4ZeroPage=true; /** Plus4: Comment stack area */ public boolean commentPlus4StackArea=true; /** Plus4: Comment 200 area */ public boolean commentPlus4_200Area=true; /** Plus4: Comment 300 area */ public boolean commentPlus4_300Area=true; /** Plus4: Comment 400 area */ public boolean commentPlus4_400Area=true; /** Plus4: Comment 500 area */ public boolean commentPlus4_500Area=true; /** Plus4: Comment 600 area */ public boolean commentPlus4_600Area=true; /** Plus4: Comment 700 area */ public boolean commentPlus4_700Area=true; /** Plus4: Comment color area */ public boolean commentPlus4ColorArea=false; /** Plus4: Comment video area */ public boolean commentPlus4VideoArea=false; /** Plus4: Comment BASIC RAM without graphics) */ public boolean commentPlus4BasicRamP=false; /** Plus4: Comment BASIC RAM with graphics) */ public boolean commentPlus4BasicRamN=false; /** Plus4: Comment luminance */ public boolean commentPlus4Luminance=false; /** Plus4: Comment colore luminance */ public boolean commentPlus4ColorBitmap=false; /** Plus4: Comment graphic data */ public boolean commentPlus4GraphicData=false; /** Plus4: Comment BASIC rom */ public boolean commentPlus4BasicRom=false; /** Plus4: Comment BASIC extension */ public boolean commentPlus4BasicExt=false; /** Plus4: Comment caracter */ public boolean commentPlus4Caracter=false; /** Plus4: Comment Acia */ public boolean commentPlus4Acia=true; /** Plus4: Comment 6529B 1 */ public boolean commentPlus4_6529B_1=true; /** Plus4: Comment 6529B 2 */ public boolean commentPlus4_6529B_2=true; /** Plus4: Comment Ted */ public boolean commentPlus4Ted=true; /** Plus4: Comment Kernal */ public boolean commentPlus4Kernal=true; /** Vic20: Comment zero page */ public boolean commentVic20ZeroPage=true; /** Vic20: Comment stack area */ public boolean commentVic20StackArea=true; /** Vic20: Comment 200 area */ public boolean commentVic20_200Area=true; /** Vic20: Comment 300 area */ public boolean commentVic20_300Area=true; /** Vic20: Comment 400 area */ public boolean commentVic20_400Area=true; /** Vic20: Comment Vic */ public boolean commentVic20Vic=true; /** Vic20: Comment Via 1 */ public boolean commentVic20Via1=true; /** Vic20: Comment Via 2 */ public boolean commentVic20Via2=true; /** Vic20: Comment user basic */ public boolean commentVic20UserBasic=false;; /** Vic20: Comment screen */ public boolean commentVic20Screen=true; /** Vic20: Comment 8k expansion 1 */ public boolean commentVic20_8kExp1=false;; /** Vic20: Comment 8k expansion 2 */ public boolean commentVic20_8kExp2=false;; /** Vic20: Comment 8k expansion 3 */ public boolean commentVic20_8kExp3=false;; /** Vic20: Comment character */ public boolean commentVic20Character=true; /** Vic20: Comment color */ public boolean commentVic20Color=true; /** Vic20: Comment block 2 */ public boolean commentVic20Block2=false;; /** Vic20: Comment block 3 */ public boolean commentVic20Block3=false;; /** Vic20: Comment block 4 */ public boolean commentVic20Block4=false;; /** Vic20: Comment Basic rom */ public boolean commentVic20BasicRom=true; /** Vic20: Comment Kernal rom */ public boolean commentVic20KernalRom=true; /** Atari: Comment zero page */ public boolean commentAtariZeroPage=true; /** Atari: Comment stack area */ public boolean commentAtariStackArea=true; /** Atari: Comment 200 area */ public boolean commentAtari_200Area=true; /** Atari: Comment 300 area */ public boolean commentAtari_300Area=true; /** Atari: Comment 400 area */ public boolean commentAtari_400Area=true; /** Atari: Comment 500 area */ public boolean commentAtari_500Area=true; /** Atari: Comment cartridge B */ public boolean commentAtariCartridgeB=true; /** Atari: Comment cartridge A */ public boolean commentAtariCartridgeA=true; /** Atari: Comment gtia */ public boolean commentAtariGtia=true; /** Atari: Comment pokey */ public boolean commentAtariPokey=true; /** Atari: Comment pia */ public boolean commentAtariPia=true; /** Atari: Comment antic */ public boolean commentAtariAntic=true; /** Atari: Comment kernal rom */ public boolean commentAtariKernalRom=true; // assembler /** Assember to use */ public Name assembler=Name.DASM; /** DASM: compile source with f3 option */ public boolean dasmF3Comp=false; /** DASM: starting declaration */ public Assembler.Starting dasmStarting=Assembler.Starting.PROC; /** DASM: origin declaration */ public Assembler.Origin dasmOrigin=Assembler.Origin.DOT_ORG; /** DASM: label declaration */ public Assembler.Label dasmLabel=Assembler.Label.NAME_COLON; /** DASM: comment declaration */ public Assembler.Comment dasmComment=Assembler.Comment.SEMICOLON; /** DASM: block comment declaration */ public Assembler.BlockComment dasmBlockComment=Assembler.BlockComment.SEMICOLON; /** DASM: byte declaration */ public Assembler.Byte dasmByte=Assembler.Byte.DOT_BYTE; /** DASM: word declaration */ public Assembler.Word dasmWord=Assembler.Word.DOT_WORD; /** DASM: word swapped declaration */ public Assembler.WordSwapped dasmWordSwapped=Assembler.WordSwapped.DC_DOT_S_WORD_SWAPPED; /** DASM: tribyte declaration */ public Assembler.Tribyte dasmTribyte=Assembler.Tribyte.MACRO_TRIBYTE; /** DASM: long declaration */ public Assembler.Long dasmLong=Assembler.Long.DOT_LONG; /** DASM: address declaration */ public Assembler.Address dasmAddress=Assembler.Address.DOT_WORD_ADDR; /** DASM: stack words declaration */ public Assembler.StackWord dasmStackWord=Assembler.StackWord.MACRO_STACKWORD; /** DASM: mono color sprite declaration */ public Assembler.MonoSprite dasmMonoSprite=Assembler.MonoSprite.MACRO_BIN; /** DASM: multi color sprite declaration */ public Assembler.MultiSprite dasmMultiSprite=Assembler.MultiSprite.MACRO_BIN; /** DASM: text declaration */ public Assembler.Text dasmText=Assembler.Text.DOT_BYTE_TEXT; /** DASM: text with num chars declaration */ public Assembler.NumText dasmNumText=Assembler.NumText.DOT_BYTE_NUMTEXT; /** DASM: text null terminated declaration */ public Assembler.ZeroText dasmZeroText=Assembler.ZeroText.DOT_BYTE_ZEROTEXT; /** DASM: text terminated with high bit 1 declaration */ public Assembler.HighText dasmHighText=Assembler.HighText.DOT_BYTE_HIGHTEXT; /** DASM: text left shifted declaration */ public Assembler.ShiftText dasmShiftText=Assembler.ShiftText.DOT_BYTE_SHIFTTEXT; /** DASM: text to screen code declaration */ public Assembler.ScreenText dasmScreenText=Assembler.ScreenText.DOT_BYTE_SCREENTEXT; /** DASM: text to petascii code declaration */ public Assembler.PetasciiText dasmPetasciiText=Assembler.PetasciiText.DOT_BYTE_PETASCIITEXT; /** TMPX: starting declaration */ public Assembler.Starting tmpxStarting=Assembler.Starting.FAKE; /** TMPx: origin declaration */ public Assembler.Origin tmpxOrigin=Assembler.Origin.ASTERISK; /** TMPx: label declaration */ public Assembler.Label tmpxLabel=Assembler.Label.NAME; /** TMPx: comment declaration */ public Assembler.Comment tmpxComment=Assembler.Comment.SEMICOLON; /** TMPX: block comment declaration */ public Assembler.BlockComment tmpxBlockComment=Assembler.BlockComment.SEMICOLON; /** TMPX: byte declaration */ public Assembler.Byte tmpxByte=Assembler.Byte.DOT_BYTE; /** TMPX: word declaration */ public Assembler.Word tmpxWord=Assembler.Word.DOT_WORD; /** TMPX: word swapped declaration */ public Assembler.WordSwapped tmpxWordSwapped=Assembler.WordSwapped.MACRO4_WORD_SWAPPED; /** TMPX: tribyte declaration */ public Assembler.Tribyte tmpxTribyte=Assembler.Tribyte.MACRO4_TRIBYTE; /** TMPX: long declaration type */ public Assembler.Long tmpxLong=Assembler.Long.MACRO4_LONG; /** TMPX: address declaration */ public Assembler.Address tmpxAddress=Assembler.Address.DOT_ADDR_ADDR; /** TMPX: stack word declaration */ public Assembler.StackWord tmpxStackWord=Assembler.StackWord.DOT_RTA_STACKWORD; /** TMPx: mono color sprite declaration type */ public Assembler.MonoSprite tmpxMonoSprite=Assembler.MonoSprite.MACRO4_BIN; /** TMPx: multi color sprite declaration type */ public Assembler.MultiSprite tmpxMultiSprite=Assembler.MultiSprite.MACRO4_BIN; /** TMPx: text declaration type */ public Assembler.Text tmpxText=Assembler.Text.DOT_TEXT; /** TMPx: text with num chars declaration */ public Assembler.NumText tmpxNumText=Assembler.NumText.DOT_PTEXT_NUMTEXT; /** TMPx: text null temrianted declaration */ public Assembler.ZeroText tmpxZeroText=Assembler.ZeroText.DOT_NULL_ZEROTEXT; /** TMPX: text terminated with high bit 1 declaration */ public Assembler.HighText tmpxHighText=Assembler.HighText.DOT_SHIFT_HIGHTEXT; /** TMPX: text left shifted declaration */ public Assembler.ShiftText tmpxShiftText=Assembler.ShiftText.DOT_SHIFTL_SHIFTTEXT; /** TMPx: text to screen code declaration type */ public Assembler.ScreenText tmpxScreenText=Assembler.ScreenText.DOT_SCREEN_SCREENTEXT; /** TMPX: text to petascii code declaration */ public Assembler.PetasciiText tmpxPetasciiText=Assembler.PetasciiText.DOT_TEXT_PETASCIITEXT; /** CA65: starting declaration */ public Assembler.Starting ca65Starting=Assembler.Starting.DOT_SETCPU; /** CA65: origin declaration */ public Assembler.Origin ca65Origin=Assembler.Origin.DOT_ORG; /** CA65: label declaration */ public Assembler.Label ca65Label=Assembler.Label.NAME_COLON; /** CA65: comment declaration */ public Assembler.Comment ca65Comment=Assembler.Comment.SEMICOLON; /** CA65: block comment declaration */ public Assembler.BlockComment ca65BlockComment=Assembler.BlockComment.SEMICOLON; /** CA65: byte declaration */ public Assembler.Byte ca65Byte=Assembler.Byte.DOT_BYTE; /** CA65: word declaration */ public Assembler.Word ca65Word=Assembler.Word.DOT_WORD; /** CA65: word swapped declaration */ public Assembler.WordSwapped ca65WordSwapped=Assembler.WordSwapped.DOT_DTYB; /** CA65: tribyte declaration */ public Assembler.Tribyte ca65Tribyte=Assembler.Tribyte.MACRO3_TRIBYTE; /** CA65: long declaration */ public Assembler.Long ca65Long=Assembler.Long.DOT_DWORD_LONG; /** CA65: address declaration */ public Assembler.Address ca65Address=Assembler.Address.DOT_ADDR_ADDR; /** CA65: stack word declaration */ public Assembler.StackWord ca65StackWord=Assembler.StackWord.MACRO3_STACKWORD; /** CA65: mono color sprite*/ public Assembler.MonoSprite ca65MonoSprite=Assembler.MonoSprite.MACRO3_BIN; /** CA65: multi color sprite */ public Assembler.MultiSprite ca65MultiSprite=Assembler.MultiSprite.MACRO3_BIN; /** CA65: text declaration */ public Assembler.Text ca65Text=Assembler.Text.DOT_BYTE_TEXT; /** CA65: text with num chars declaration */ public Assembler.NumText ca65NumText=Assembler.NumText.DOT_BYTE_NUMTEXT; /** CA65: text null temrianted declaration */ public Assembler.ZeroText ca65ZeroText=Assembler.ZeroText.DOT_ASCIIZ_ZEROTEXT; /** CA65: text terminated with high bit 1 declaration */ public Assembler.HighText ca65HighText=Assembler.HighText.DOT_BYTE_HIGHTEXT; /** CA65: text left shifted declaration */ public Assembler.ShiftText ca65ShiftText=Assembler.ShiftText.DOT_BYTE_SHIFTTEXT; /** CA65: text to screen code declaration */ public Assembler.ScreenText ca65ScreenText=Assembler.ScreenText.DOT_BYTE_SCREENTEXT; /** CA65: text to petascii code declaration */ public Assembler.PetasciiText ca65PetasciiText=Assembler.PetasciiText.DOT_BYTE_PETASCIITEXT; /** ACME: starting declaration */ public Assembler.Starting acmeStarting=Assembler.Starting.MARK_CPU; /** ACME: origin declaration */ public Assembler.Origin acmeOrigin=Assembler.Origin.ASTERISK; /** ACME: label declaration */ public Assembler.Label acmeLabel=Assembler.Label.NAME_COLON; /** ACME: comment declaration */ public Assembler.Comment acmeComment=Assembler.Comment.SEMICOLON; /** ACME: block comment declaration */ public Assembler.BlockComment acmeBlockComment=Assembler.BlockComment.SEMICOLON; /** ACME: byte declaration */ public Assembler.Byte acmeByte=Assembler.Byte.MARK_BYTE; /** ACME: word declaration */ public Assembler.Word acmeWord=Assembler.Word.MARK_WORD; /** ACME: word swapped declaration */ public Assembler.WordSwapped acmeWordSwapped=Assembler.WordSwapped.MACRO2_WORD_SWAPPED; /** ACME: tribyte declaration */ public Assembler.Tribyte acmeTribyte=Assembler.Tribyte.MARK_TWENTYFOUR_TRIBYTE; /** ACME: long declaration */ public Assembler.Long acmeLong=Assembler.Long.MARK_THIRTYTWO_LONG; /** ACME: address declaration */ public Assembler.Address acmeAddress=Assembler.Address.MARK_WORD_ADDR; /** ACME: stack word declaration */ public Assembler.StackWord acmeStackWord=Assembler.StackWord.MACRO2_STACKWORD; /** ACME: mono color sprite*/ public Assembler.MonoSprite acmeMonoSprite=Assembler.MonoSprite.MACRO2_BIN; /** ACME: multi color sprite */ public Assembler.MultiSprite acmeMultiSprite=Assembler.MultiSprite.MACRO2_BIN; /** ACME: text declaration */ public Assembler.Text acmeText=Assembler.Text.MARK_TEXT; /** ACME: text with num chars declaration */ public Assembler.NumText acmeNumText=Assembler.NumText.MARK_TEXT_NUMTEXT; /** ACME: text null temrianted declaration */ public Assembler.ZeroText acmeZeroText=Assembler.ZeroText.MARK_TEXT_ZEROTEXT; /** ACME: text terminated with high bit 1 declaration */ public Assembler.HighText acmeHighText=Assembler.HighText.MARK_TEXT_HIGHTEXT; /** ACME: text left shift declaration */ public Assembler.ShiftText acmeShiftText=Assembler.ShiftText.MARK_TEXT_SHIFTTEXT; /** ACME: text to screen code declaration */ public Assembler.ScreenText acmeScreenText=Assembler.ScreenText.MARK_SCR_SCREENTEXT; /** ACME: text to petascii code declaration */ public Assembler.PetasciiText acmePetasciiText=Assembler.PetasciiText.MARK_PET_PETASCIITEXT; /** KickAssembler: colon macro */ public boolean kickColonMacro=false; /** KickAssembler: starting declaration */ public Assembler.Starting kickStarting=Assembler.Starting.DOT_CPU_UND; /** KickAssembler: kick declaration */ public Assembler.Origin kickOrigin=Assembler.Origin.ASTERISK; /** KickAssembler: label declaration */ public Assembler.Label kickLabel=Assembler.Label.NAME_COLON; /** KickAssembler: comment declaration */ public Assembler.Comment kickComment=Assembler.Comment.DOUBLE_BAR; /** KickAssembler: block comment declaration */ public Assembler.BlockComment kickBlockComment=Assembler.BlockComment.DOUBLE_BAR; /** KickAssembler: byte declaration */ public Assembler.Byte kickByte=Assembler.Byte.DOT_BYTE; /** KickAssembler: word declaration */ public Assembler.Word kickWord=Assembler.Word.DOT_WORD; /** KickAssembler: word swapped declaration */ public Assembler.WordSwapped kickWordSwapped=Assembler.WordSwapped.MACRO1_WORD_SWAPPED; /** kickAssembler: tribyte declaration */ public Assembler.Tribyte kickTribyte=Assembler.Tribyte.MACRO1_TRIBYTE; /** Kick: long declaration */ public Assembler.Long kickLong=Assembler.Long.DOT_DWORD_LONG; /** KickAssembler: address declaration */ public Assembler.Address kickAddress=Assembler.Address.DOT_WORD_ADDR; /** KickAssembler: stack word declaration */ public Assembler.StackWord kickStackWord=Assembler.StackWord.MACRO1_STACKWORD; /** KickAssembler: mono color sprite*/ public Assembler.MonoSprite kickMonoSprite=Assembler.MonoSprite.MACRO1_BIN; /** KickAsembler: multi color sprite */ public Assembler.MultiSprite kickMultiSprite=Assembler.MultiSprite.MACRO1_BIN; /** KickAsembler: text declaration type */ public Assembler.Text kickText=Assembler.Text.DOT_TEXT; /** KickAsembler: text with num chars declaration */ public Assembler.NumText kickNumText=Assembler.NumText.DOT_TEXT_NUMTEXT; /** KickAsembler: text null temrianted declaration */ public Assembler.ZeroText kickZeroText=Assembler.ZeroText.DOT_TEXT_ZEROTEXT; /** KickAsembler: text terminated with high bit 1 declaration */ public Assembler.HighText kickHighText=Assembler.HighText.DOT_TEXT_HIGHTEXT; /** KickAsembler: text left shifted declaration */ public Assembler.ShiftText kickShiftText=Assembler.ShiftText.DOT_TEXT_SHIFTTEXT; /** KickAsembler: text to screen code declaration */ public Assembler.ScreenText kickScreenText=Assembler.ScreenText.DOT_TEXT_SCREENTEXT; /** KickAsembler: text to petascii code declaration */ public Assembler.PetasciiText kickPetasciiText=Assembler.PetasciiText.DOT_TEXT_PETASCIITEXT; /** Glass: starting declaration */ public Assembler.Starting glassStarting=Assembler.Starting.FAKEZ; /** Glass: origin declaration */ public Assembler.Origin glassOrigin=Assembler.Origin.ORG; /** Glass:: label declaration */ public Assembler.Label glassLabel=Assembler.Label.NAME_COLON; /** Glass: comment declaration */ public Assembler.Comment glassComment=Assembler.Comment.SEMICOLON; /** Glass: block comment declaration */ public Assembler.BlockComment glassBlockComment=Assembler.BlockComment.SEMICOLON; /** Glass: byte declaration */ public Assembler.Byte glassByte=Assembler.Byte.DB_BYTE; /** Glass: word declaration */ public Assembler.Word glassWord=Assembler.Word.DW_WORD; /** Glass: word swapped declaration */ public Assembler.WordSwapped glassWordSwapped=Assembler.WordSwapped.MACRO5_WORD_SWAPPED; /** Glass: tribyte declaration */ public Assembler.Tribyte glassTribyte=Assembler.Tribyte.MACRO5_TRIBYTE; /** Glass: long declaration */ public Assembler.Long glassLong=Assembler.Long.DD_LONG; /** Glass: Address declaration */ public Assembler.Address glassAddress=Assembler.Address.DW_ADDR; /** Glass: Stack Word declaration */ public Assembler.StackWord glassStackWord=Assembler.StackWord.MACRO4_STACKWORD; /** Glass: mono color sprite*/ public Assembler.MonoSprite glassMonoSprite=Assembler.MonoSprite.BYTE_BIN; /** Glass: multi color sprite */ public Assembler.MultiSprite glassMultiSprite=Assembler.MultiSprite.BYTE_BIN; /** Glass: text declaration type */ public Assembler.Text glassText=Assembler.Text.DB_BYTE_TEXT; /** Glass: num text declaration type */ public Assembler.NumText glassNumText=Assembler.NumText.DB_BYTE_NUMTEXT; /** Glass: zero text declaration type */ public Assembler.ZeroText glassZeroText=Assembler.ZeroText.DB_BYTE_ZEROTEXT; /** Glass: high text declaration type */ public Assembler.HighText glassHighText=Assembler.HighText.DB_BYTE_HIGHTEXT; /** Glass: shift text declaration type */ public Assembler.ShiftText glassShiftText=Assembler.ShiftText.DB_BYTE_SHIFTTEXT; /** Glass: screen text declaration type */ public Assembler.ScreenText glassScreenText=Assembler.ScreenText.DB_BYTE_SCREENTEXT; /** Glass: petascii text declaration type */ public Assembler.PetasciiText glassPetasciiText=Assembler.PetasciiText.DB_BYTE_PETASCIITEXT; /** 64Tass: starting declaration */ public Assembler.Starting tass64Starting=Assembler.Starting.DOT_CPU_A; /** 64Tass: origin declaration */ public Assembler.Origin tass64Origin=Assembler.Origin.ASTERISK; /** KickAssembler: label declaration */ public Assembler.Label tass64Label=Assembler.Label.NAME_COLON; /** 64Tass: comment declaration */ public Assembler.Comment tass64Comment=Assembler.Comment.SEMICOLON; /** 64Tass: block comment declaration */ public Assembler.BlockComment tass64BlockComment=Assembler.BlockComment.SEMICOLON; /** 64Tass: byte declaration */ public Assembler.Byte tass64Byte=Assembler.Byte.DOT_BYTE; /** 64Tass: word declaration */ public Assembler.Word tass64Word=Assembler.Word.DOT_WORD; /** 64Tass: word swapped declaration */ public Assembler.WordSwapped tass64WordSwapped=Assembler.WordSwapped.MACRO4_WORD_SWAPPED; /** 64Tass: tribyte declaration */ public Assembler.Tribyte tass64Tribyte=Assembler.Tribyte.DOT_LONG_TRIBYTE; /** 64Tass: long declaration */ public Assembler.Long tass64Long=Assembler.Long.DOT_DWORD_LONG; /** 64Tass: Address declaration */ public Assembler.Address tass64Address=Assembler.Address.DOT_ADDR_ADDR; /** 64Tass: Stack Word declaration */ public Assembler.StackWord tass64StackWord=Assembler.StackWord.DOT_RTA_STACKWORD; /** 64Tass: mono color sprite*/ public Assembler.MonoSprite tass64MonoSprite=Assembler.MonoSprite.MACRO4_BIN; /** 64Tass: multi color sprite */ public Assembler.MultiSprite tass64MultiSprite=Assembler.MultiSprite.MACRO4_BIN; /** 64Tass: text declaration type */ public Assembler.Text tass64Text=Assembler.Text.DOT_TEXT; /** 64Tass: text with num chars declaration */ public Assembler.NumText tass64NumText=Assembler.NumText.DOT_PTEXT_NUMTEXT; /** 64Tass: text null temrianted declaration */ public Assembler.ZeroText tass64ZeroText=Assembler.ZeroText.DOT_NULL_ZEROTEXT; /** 64Tass: text terminated with high bit 1 declaration */ public Assembler.HighText tass64HighText=Assembler.HighText.DOT_SHIFT_HIGHTEXT; /** 64Tass: text left shifted declaration */ public Assembler.ShiftText tass64ShiftText=Assembler.ShiftText.DOT_SHIFTL_SHIFTTEXT; /** 64Tass: text to screen code declaration */ public Assembler.ScreenText tass64ScreenText=Assembler.ScreenText.DOT_TEXT_SCREENTEXT; /** 64Tass: text to petascii code declaration */ public Assembler.PetasciiText tass64PetasciiText=Assembler.PetasciiText.DOT_TEXT_PETASCIITEXT; // AS (for MOS6502) /** AS(M): starting declaration */ public Assembler.Starting asmStarting=Assembler.Starting.CPU_M; /** AS(M): origin declaration */ public Assembler.Origin asmOrigin=Assembler.Origin.ORG_H; /** AS(M): label declaration */ public Assembler.Label asmLabel=Assembler.Label.NAME_COLON; /** AS(M): comment declaration */ public Assembler.Comment asmComment=Assembler.Comment.SEMICOLON; /** AS(M): block comment declaration */ public Assembler.BlockComment asmBlockComment=Assembler.BlockComment.SEMICOLON; /** AS(M): byte declaration */ public Assembler.Byte asmByte=Assembler.Byte.DB_BYTE; /** AS(M): word declaration */ public Assembler.Word asmWord=Assembler.Word.DW_WORD; /** AS(M): word swapped declaration */ public Assembler.WordSwapped asmWordSwapped=Assembler.WordSwapped.MACRO6_WORD_SWAPPED; /** AS(M): tribyte declaration */ public Assembler.Tribyte asmTribyte=Assembler.Tribyte.MACRO6_TRIBYTE; /** AS(M): long declaration */ public Assembler.Long asmLong=Assembler.Long.DD_LONG; /** AS(M): address declaration */ public Assembler.Address asmAddress=Assembler.Address.DW_ADDR; /** AS(M): stack words declaration */ public Assembler.StackWord asmStackWord=Assembler.StackWord.MACRO5_STACKWORD; /** AS(M): mono color sprite declaration */ public Assembler.MonoSprite asmMonoSprite=Assembler.MonoSprite.MACRO_BIN; /** AS(M): multi color sprite declaration */ public Assembler.MultiSprite asmMultiSprite=Assembler.MultiSprite.MACRO_BIN; /** AS(M): text declaration */ public Assembler.Text asmText=Assembler.Text.DB_BYTE_TEXT; /** AS(M): text with num chars declaration */ public Assembler.NumText asmNumText=Assembler.NumText.DB_BYTE_NUMTEXT; /** AS(M): text null terminated declaration */ public Assembler.ZeroText asmZeroText=Assembler.ZeroText.DB_BYTE_ZEROTEXT; /** AS(M): text terminated with high bit 1 declaration */ public Assembler.HighText asmHighText=Assembler.HighText.DB_BYTE_HIGHTEXT; /** AS(M): text left shifted declaration */ public Assembler.ShiftText asmShiftText=Assembler.ShiftText.DB_BYTE_SHIFTTEXT; /** AS(M): text to screen code declaration */ public Assembler.ScreenText asmScreenText=Assembler.ScreenText.DB_BYTE_SCREENTEXT; /** AS(M): text to petascii code declaration */ public Assembler.PetasciiText asmPetasciiText=Assembler.PetasciiText.DB_BYTE_PETASCIITEXT; // AS (for Intel8048) /** AS(I): starting declaration */ public Assembler.Starting asiStarting=Assembler.Starting.CPU_I; /** AS(I): origin declaration */ public Assembler.Origin asiOrigin=Assembler.Origin.ORG_H; /** AS(I): label declaration */ public Assembler.Label asiLabel=Assembler.Label.NAME_COLON; /** AS(I): comment declaration */ public Assembler.Comment asiComment=Assembler.Comment.SEMICOLON; /** AS(I): block comment declaration */ public Assembler.BlockComment asiBlockComment=Assembler.BlockComment.SEMICOLON; /** AS(I): byte declaration */ public Assembler.Byte asiByte=Assembler.Byte.DB_BYTE_H; /** AS(I): word declaration */ public Assembler.Word asiWord=Assembler.Word.DW_WORD_H; /** AS(I): word swapped declaration */ public Assembler.WordSwapped asiWordSwapped=Assembler.WordSwapped.MACRO6_WORD_SWAPPED; /** AS(I): tribyte declaration */ public Assembler.Tribyte asiTribyte=Assembler.Tribyte.MACRO6_TRIBYTE; /** AS(I): long declaration */ public Assembler.Long asiLong=Assembler.Long.DD_LONG_H; /** AS(I): address declaration */ public Assembler.Address asiAddress=Assembler.Address.DW_ADDR_H; /** AS(I): stack words declaration */ public Assembler.StackWord asiStackWord=Assembler.StackWord.MACRO5_STACKWORD; /** AS(I): mono color sprite declaration */ public Assembler.MonoSprite asiMonoSprite=Assembler.MonoSprite.MACRO_BIN; /** AS(I): multi color sprite declaration */ public Assembler.MultiSprite asiMultiSprite=Assembler.MultiSprite.MACRO_BIN; /** AS(I): text declaration */ public Assembler.Text asiText=Assembler.Text.DB_BYTE_TEXT; /** AS(I): text with num chars declaration */ public Assembler.NumText asiNumText=Assembler.NumText.DB_BYTE_NUMTEXT; /** AS(I): text null terminated declaration */ public Assembler.ZeroText asiZeroText=Assembler.ZeroText.DB_BYTE_ZEROTEXT; /** AS(I): text terminated with high bit 1 declaration */ public Assembler.HighText asiHighText=Assembler.HighText.DB_BYTE_HIGHTEXT; /** AS(I): text left shifted declaration */ public Assembler.ShiftText asiShiftText=Assembler.ShiftText.DB_BYTE_SHIFTTEXT; /** AS(I): text to screen code declaration */ public Assembler.ScreenText asiScreenText=Assembler.ScreenText.DB_BYTE_SCREENTEXT; /** AS(I): text to petascii code declaration */ public Assembler.PetasciiText asiPetasciiText=Assembler.PetasciiText.DB_BYTE_PETASCIITEXT; /** * Get the flat laf theme * * @return the flat laf theme */ public String getFlatLaf() { return flatLaf; } /** * Set the flat laf theme * * @param flatLaf the flat laf theme */ public void setFlatLaf(String flatLaf) { this.flatLaf = flatLaf; } /** * Get the look and feel name * * @return the look and feel name */ public String getLafName() { return lafName; } /** * Set the look and feel name * * @param lafName thje look and feel name */ public void setLafName(String lafName) { this.lafName = lafName; } /** * Get the methal theme * * @return the methal theme */ public MetalTheme getMethalTheme() { switch (theme) { case THEME_OCEAN: return new OceanTheme(); case THEME_STEEL: return new DefaultMetalTheme(); case THEME_AQUA: return new AquaTheme(); case THEME_CHARCOAL: return new CharcoalTheme(); case THEME_CONTRAST: return new ContrastTheme(); case THEME_EMERALD: return new EmeraldTheme(); case THEME_RUBY: return new RubyTheme(); } return null; } /** * Get the theme number (-1 = none) * * @return the theme number */ public int getTheme() { return theme; } /** * Set the theme number (-1 none) * * @param theme */ public void setTheme(int theme) { this.theme = theme; } /** * Use the given look and feel * * @param lafName the look and feel name * @param theme additional theme to set */ public static void useLookAndFeel(String lafName, MetalTheme theme) { try { if (theme!=null) MetalLookAndFeel.setCurrentTheme(theme); UIManager.setLookAndFeel(lafName); Iterator iter=Shared.framesList.iterator(); while (iter.hasNext()) { SwingUtilities.updateComponentTreeUI((Component)iter.next()); } } catch (Exception e) { System.out.println(e.toString()); } } /** * Use the given xml theme path for syntax highlight * * @param themePath xml theme path */ public void useSyntaxTheme(String themePath) { try { RSyntaxTextArea syntax; float size; Theme theme; Iterator<RSyntaxTextArea> iter=Shared.syntaxList.iterator(); while (iter.hasNext()) { theme = Theme.load(Option.class.getResourceAsStream(themePath)); syntax=iter.next(); //size=syntax.getFont().getSize(); theme.apply(syntax); if ("Miniature".equals(syntax.getName())) size=3; else if ("Dis".equals(syntax.getName())) size=sizePreviewFont; else size=sizeSourceFont; syntax.setFont(syntax.getFont().deriveFont(size)); } } catch (Exception e) { System.out.println(e.toString()); } } /** * Use the given flat laf theme * * @param lafName the flat laf name */ public static void useLookAndFeel(String lafName) { try { for (FlatLaf laf: Option.LAF_SYNTH_FLAT) { if (laf.getName().equals(lafName)) { UIManager.setLookAndFeel(laf); Iterator iter=Shared.framesList.iterator(); while (iter.hasNext()) { SwingUtilities.updateComponentTreeUI((Component)iter.next()); } return; } } } catch (Exception e) { System.out.println(e.toString()); } } }
52,189
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Freeze.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/Freeze.java
/** * @(#)Freeze.java 2022/03/15 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.main; import java.util.Objects; /** * Freeze of source TXT image * * @author ice */ public class Freeze implements Cloneable { /** Name of this freeze */ public String name=""; /** Text of this freeze */ public String text=""; /** * Clone the object * * @return the cloned object */ @Override public Object clone() { Freeze copy=new Freeze(); copy.name=name; copy.text=text; return copy; } @Override public boolean equals(Object obj) { if (!(obj instanceof Freeze)) return false; Freeze freeze=(Freeze) obj; freeze.name=name; freeze.text=text; return true; } @Override public int hashCode() { return super.hashCode()+79*Objects.hashCode(name)+Objects.hashCode(text); } }
1,716
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
UndoManager.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/UndoManager.java
/* * @(#)UndoManager.java 2021/12/20 * * ICE Team free software group * * This file is part of JIIT64 Java Ice Team Tracker 64 * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA */ package sw_emulator.swing.main; import com.rits.cloning.Cloner; import java.util.ArrayDeque; import java.util.Iterator; /** * Undo functionality * * @author ice */ public class UndoManager { /** Max capacity of undo */ int maxCapacity=9; /** The deque for undo of project */ ArrayDeque<KeyProject> dequeProject=new ArrayDeque(maxCapacity); /** * Clear all the undo */ public void clear() { dequeProject.clear(); } /** * Resize the max capacity of undo * * @param capacity the new capacity */ public void resize(int capacity) { maxCapacity=capacity; while (dequeProject.size()>maxCapacity) dequeProject.pollLast(); } /** * Store the actual value for undo action according with the given type * * @param key the key to use * @param project the project to store */ public void store(String key, Project project) { Project copy; KeyProject keyProject=new KeyProject(); Cloner cloner=new Cloner(); copy=cloner.deepClone(project); keyProject.key=key; keyProject.project=copy; dequeProject.addFirst(keyProject); // resize deque if needed while (dequeProject.size()>maxCapacity) dequeProject.pollLast(); } /** * Retrieve the value for undo action according with the given type * * @param key the key to search * @return the saved project (or null) */ public Project retrieve(String key) { if (dequeProject.isEmpty()) return null; KeyProject keyProject; Iterator<KeyProject> iter=dequeProject.iterator(); while (iter.hasNext()) { keyProject=iter.next(); if (keyProject.key.equals(key)) return keyProject.project; } return null; } /** * Get all elements * * @return all elements iterator */ public Iterator<KeyProject> getAll() { return dequeProject.iterator(); } }
2,846
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
userAction.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/userAction.java
/** * @(#)userAction.java 2019/12/01 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.main; /** * Manage a user action * * @author ice */ public interface userAction { /** New action for project */ public static final int PROJ_NEW = 1; /** Open action for project */ public static final int PROJ_OPEN = 2; /** Save action for project */ public static final int PROJ_SAVE = 3; /** Save as action for project */ public static final int PROJ_SAVEAS = 4; /** Close action for project */ public static final int PROJ_CLOSE = 5; /** Exit action for application */ public static final int APP_EXIT = 6; /** Configure action for option */ public static final int OPTION_CONFIGURE = 7; /** View project action for option */ public static final int OPTION_VIEWPRJ = 8; /** Disassemble action for source */ public static final int SOURCE_DISASS = 9; /** Export as disassembly action for source */ public static final int SOURCE_EXPASDIS = 10; /** Export as source action for source */ public static final int SOURCE_EXPASSOURCE = 11; /** Clear dasm comment as source action for memory */ public static final int MEM_CLEARDCOM = 12; /** Clear user comment as source action for memory */ public static final int MEM_CLEARUCOM = 13; /** Mark memory of code kind */ public static final int MEM_MARKCODE = 14; /** Mark memory of data kind */ public static final int MEM_MARKDATA = 15; /** Apply SIDLD of option */ public static final int OPTION_SIDLD = 16; /** Help contents */ public static final int HELP_CONTENTS = 17; /** License for help */ public static final int HELP_LICENSE = 18; /** Credits help */ public static final int HELP_CREDITS = 19; /** About help */ public static final int HELP_ABOUT = 20; /** Find text in disassembly */ public static final int SOURCE_FINDD = 21; /** Find text in source */ public static final int SOURCE_FINDS = 22; /** Memory add user comment */ public static final int MEM_ADDCOMM = 23; /** Memory add user label */ public static final int MEM_ADDLABEL = 24; /** Memory add user block comment */ public static final int MEM_ADDBLOCK = 25; /** Memory clear dasm label */ public static final int MEM_CLEARDLABEL = 26; /** Memory assign #< */ public static final int MEM_LOW = 28; /** Memory assign #> */ public static final int MEM_HIGH = 29; /** Find memory address */ public static final int SOURCE_FINDA = 30; /** Memory table plus */ public static final int MEM_PLUS = 31; /** Memory table minus */ public static final int MEM_MINUS = 32; /** MPR creation option */ public static final int OPTION_MPR = 33; /** Memory add user label opcode */ public static final int MEM_ADDLABELOP = 34; /** Mark memory of garbage kind */ public static final int MEM_MARKGARB = 35; /** Collaborative merge */ public static final int PROJ_MERGE = 36; /** Mark memory of byte (hex) data kind */ public static final int MEM_MARKDATA_B = 37; /** Mark memory of byte (decimal) data kind */ public static final int MEM_MARKDATA_D = 38; /** Mark memory of byte (binary) data kind */ public static final int MEM_MARKDATA_Y = 39; /** Mark memory of byte (char) data kind */ public static final int MEM_MARKDATA_R = 40; /** Mark memory of word data kind */ public static final int MEM_MARKDATA_W = 41; /** Mark memory of word swapped data kind */ public static final int MEM_MARKDATA_P = 42; /** Mark memory of tribyte data kind */ public static final int MEM_MARKDATA_E = 43; /** Mark memory of long data kind */ public static final int MEM_MARKDATA_L = 44; /** Mark memory of address data kind */ public static final int MEM_MARKDATA_A = 45; /** Mark memory of stack word data kind */ public static final int MEM_MARKDATA_S = 46; /** Mark memory of text data kind */ public static final int MEM_MARKDATA_T = 47; /** Mark memory of text with number of chars before data kind */ public static final int MEM_MARKDATA_N = 48; /** Mark memory of text terminated with 0 data kind */ public static final int MEM_MARKDATA_Z = 49; /** Mark memory of text with high bit 1 data kind */ public static final int MEM_MARKDATA_M = 50; /** Mark memory of text shifted and high bit 1 data kind */ public static final int MEM_MARKDATA_H = 51; /** Mark memory of text converted to screen code data kind */ public static final int MEM_MARKDATA_C = 52; /** Mark memory of text converted to petascii code data kind */ public static final int MEM_MARKDATA_I = 53; /** Assemble action for source */ public static final int SOURCE_ASS = 54; /** Mark memory of text converted to monocromatic sprite data kind */ public static final int MEM_MARKDATA_O = 55; /** Mark memory of text converted to multicolor sprite data kind */ public static final int MEM_MARKDATA_F = 56; /** Memory assign #<> */ public static final int MEM_LOWHIGH = 57; /** Memory assign #>< */ public static final int MEM_HIGHLOW = 58; /** Memory sub 0 assigment */ public static final int MEM_SUB_0 = 59; /** Memory sub 1 assigment */ public static final int MEM_SUB_1 = 60; /** Memory sub 2 assigment */ public static final int MEM_SUB_2 = 61; /** Memory sub 3 assigment */ public static final int MEM_SUB_3 = 62; /** Memory sub 4 assigment */ public static final int MEM_SUB_4 = 63; /** Memory sub 5 assigment */ public static final int MEM_SUB_5 = 64; /** Memory sub 6 assigment */ public static final int MEM_SUB_6 = 65; /** Memory sub 7 assigment */ public static final int MEM_SUB_7 = 66; /** Memory sub 8 assigment */ public static final int MEM_SUB_8 = 67; /** Memory sub 9 assigment */ public static final int MEM_SUB_9 = 68; /** Memory sub clear assigment */ public static final int MEM_SUB_CLEAR = 69; /** Option labels */ public static final int OPTION_LABELS = 70; /** Memory assign for both */ public static final int MEM_BOTH = 71; /** Export source as dasm format */ public static final int SOURCE_DASM = 72; /** Export source as TMPx format */ public static final int SOURCE_TMPX = 73; /** Export source as CA65 format */ public static final int SOURCE_CA65 = 74; /** Export source as acme format */ public static final int SOURCE_ACME = 75; /** Export source as kick assembler format */ public static final int SOURCE_KICK = 76; /** Export source as 64 tass format */ public static final int SOURCE_TASS64 = 77; /** Wizard memory */ public static final int MEM_WIZARD=78; /** Import labels */ public static final int HELP_IMPORT=79; /** Refactor labels */ public static final int HELP_REFACTOR=80; /** Recent files */ public static final int PROJ_RECENT=81; /** Clear automatic label */ public static final int HELP_CLEARLAB=82; /** Copy action */ public static final int APP_COPY=83; /** Paste action */ public static final int APP_PASTE=84; /** Help undo function */ public static final int HELP_UNDO=85; /** Clear automatic comment */ public static final int HELP_CLEARCOM=86; /** Find hex sequences */ public static final int SOURCE_FINDX = 87; /** Freeze source */ public static final int SOURCE_FREEZE = 88; /** Show hex view */ public static final int MEM_HEX = 89; /** Memory sub 10 assigment */ public static final int MEM_SUB_10 = 90; /** Memory sub 11 assigment */ public static final int MEM_SUB_11 = 91; /** Memory sub 12 assigment */ public static final int MEM_SUB_12 = 92; /** Memory sub 13 assigment */ public static final int MEM_SUB_13 = 93; /** Memory sub 14 assigment */ public static final int MEM_SUB_14 = 94; /** Memory sub 15 assigment */ public static final int MEM_SUB_15 = 95; /** Memory sub 16 assigment */ public static final int MEM_SUB_16 = 96; /** Memory sub 17 assigment */ public static final int MEM_SUB_17 = 97; /** Memory sub 18 assigment */ public static final int MEM_SUB_18 = 98; /** Memory sub 19 assigment */ public static final int MEM_SUB_19 = 99; /** Un-mark memory */ public static final int MEM_UNMARK = 100; /** Un-mark basic memory */ public static final int MEM_BASIC_NONE = 101; /** Basic V2.0 memory area */ public static final int MEM_BASIC_V2_0 = 102; /** Basic V3.5 memory area */ public static final int MEM_BASIC_V3_5 = 103; /** Basic V4.0 memory area */ public static final int MEM_BASIC_V4_0 = 104; /** Basic V7.0 memory area */ public static final int MEM_BASIC_V7_0 = 105; /** Basic Simon memory area */ public static final int MEM_BASIC_SIMON = 106; /** Basic Andre Fschat memory area */ public static final int MEM_BASIC_ANDRE_FACHAT = 107; /** Basic Speech memory area */ public static final int MEM_BASIC_SPEECH = 108; /** Basic Final Cartridge III memory area */ public static final int MEM_BASIC_FINAL_CART3 = 109; /** Basic Ultrabasic memory area */ public static final int MEM_BASIC_ULTRABASIC = 110; /** Basic Graphics memory area */ public static final int MEM_BASIC_GRAPHICS = 111; /** Basic WS memory area */ public static final int MEM_BASIC_WS = 112; /** Basic Pegasus v4.0 memory area */ public static final int MEM_BASIC_PEGASUS = 113; /** Basic Xbasic memory area */ public static final int MEM_BASIC_XBASIC = 114; /** Basic Drago v2.2 memory area */ public static final int MEM_BASIC_DRAGO = 115; /** Basic Reu memory area */ public static final int MEM_BASIC_REU = 116; /** Basic Lightning memory area */ public static final int MEM_BASIC_LIGHTNING = 117; /** Basic Magic memory area */ public static final int MEM_BASIC_MAGIC = 118; /** Basic Blark memory area */ public static final int MEM_BASIC_BLARG = 119; /** Basic WS Final memory area */ public static final int MEM_BASIC_WS_FINAL = 120; /** Basic Game memory area */ public static final int MEM_BASIC_GAME = 121; /** Basic Basex memory area */ public static final int MEM_BASIC_BASEX = 122; /** Basic Super memory area */ public static final int MEM_BASIC_SUPER = 123; /** Basic Expanded memory area */ public static final int MEM_BASIC_EXPANDED = 124; /** Basic Super Expander Chip memory area */ public static final int MEM_BASIC_SUPER_EXPANDER_CHIP = 125; /** Basic Warsaw memory area */ public static final int MEM_BASIC_WARSAW = 126; /** Basic DBS memory area */ public static final int MEM_BASIC_DBS = 127; /** Basic Kipper memory area */ public static final int MEM_BASIC_KIPPER = 128; /** Basic Bails memory area */ public static final int MEM_BASIC_BAILS = 129; /** Basic Eve memory area */ public static final int MEM_BASIC_EVE = 130; /** Basic Tool memory area */ public static final int MEM_BASIC_TOOL = 131; /** Basic Super Expander memory area */ public static final int MEM_BASIC_SUPER_EXPANDER = 132; /** Basic Turtle memory area */ public static final int MEM_BASIC_TURTLE = 133; /** Basic Easy memory area */ public static final int MEM_BASIC_EASY = 134; /** Basic V4 memory area */ public static final int MEM_BASIC_V4 = 135; /** Basic V5 memory area */ public static final int MEM_BASIC_V5 = 136; /** Basic Expanded V20 memory area */ public static final int MEM_BASIC_EXPANDED_V20 = 137; /** Basic Handy memory area */ public static final int MEM_BASIC_HANDY = 138; /** Basic V8 memory area */ public static final int MEM_BASIC_V8 = 139; /** Block labels memory area */ public static final int MEM_BLOCKLABELS = 140; /** * Execute the passed user action * * @param type the type of action to execute */ public abstract void execute(int type); }
13,070
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Project.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/Project.java
/** * @(#)Project.java 2019/12/03 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.main; import java.util.Arrays; import java.util.Objects; import sw_emulator.software.MemoryDasm; /** * Container for the project * * Version 0: initial * Version 1: add isGarbage onto memoryDasm * add TargetType * Version 2: add CRT chip number * Version 3: add constants for assembler * add index for memoryDasm * Version 4: add relocates * Version 5: add patches * Version 6: add constants for 16bits * Version 7: gzip format * Version 8: add 16 constants instead of 10 * Version 9: add related relocation addresses * Version 10: add basic type, add comments for contants * Version 11: add raw binary starting adddess * * @author ice */ public class Project implements Cloneable { /** Actual version of project */ public static final byte ACTUAL_VERSION=11; /** Type of the file */ public FileType fileType; /** Name of the project */ public String name; /** Path + name of file to disassemble */ public String file; /** Description of the file */ public String description; /** Contains the data of input file */ public byte[] inB; /** Mpr contents */ public MPR mpr; /** Target machine type*/ public TargetType targetType; /** Memory flag of SIDLD */ public byte[] memoryFlags=new byte[0xFFFF+1]; /** Memory for dasm*/ public MemoryDasm[] memory=new MemoryDasm[0xFFFF+1]; /** CRT chip */ public int chip; /** Raw binary starting address */ public int binAddress; /** Constant for assembler */ public Constant constant=new Constant(); /** Relocate entries */ public Relocate[] relocates; /** Patch entries*/ public Patch[] patches; /** Freeze image */ public Freeze[] freezes; /** * Construct the project */ public Project() { for (int i=0; i<memory.length; i++) { memory[i]=new MemoryDasm(); memory[i].address=i; } } /** * Set the data of the file * @param inB file contents * @param isRawBin true if this is a raw binary file (no format) */ public void setData(byte[] inB, boolean isRawBin) { this.inB=inB; fileType=FileType.getFileType(inB, isRawBin); description=fileType.getDescription(inB); if (fileType==FileType.MPR) { mpr=new MPR(); mpr.getElements(inB); } } @Override public int hashCode() { int hash = 7; hash = 89 * hash + Objects.hashCode(this.fileType); hash = 89 * hash + Objects.hashCode(this.name); hash = 89 * hash + Objects.hashCode(this.file); hash = 89 * hash + Objects.hashCode(this.description); hash = 89 * hash + Arrays.hashCode(this.inB); hash = 89 * hash + Arrays.hashCode(this.memoryFlags); hash = 89 * hash + Arrays.deepHashCode(this.memory); hash = 89 * hash + Objects.hashCode(this.targetType); hash = 89 * hash + MPR.hashCode(this.mpr); hash = 89 * hash + this.chip; hash = 89 * hash + this.binAddress; hash = 89 * hash + Arrays.hashCode(this.constant.table); hash = 89 * hash + Arrays.hashCode(this.relocates); hash = 89 * hash + Arrays.hashCode(this.patches); hash = 89 * hash + Arrays.hashCode(this.freezes); return hash; } @Override public Project clone() { Project p = new Project(); p.description=this.description; p.file=this.file; p.fileType=this.fileType; p.targetType=this.targetType; if (this.inB!=null) p.inB=this.inB.clone(); if (p.memoryFlags!=null) p.memoryFlags=this.memoryFlags.clone(); p.name=this.name; if (this.mpr!=null) p.mpr=(MPR)this.mpr.clone(); for (int i=0; i<this.memory.length; i++) { if (this.memory[i]!=null) p.memory[i]=this.memory[i].clone(); } p.chip=this.chip; p.binAddress=this.binAddress; p.constant=(Constant)this.constant.clone(); if (p.relocates!=null) { for (int i=0; i<this.relocates.length; i++) { p.relocates[i]=(Relocate)this.relocates[i].clone(); } } if (p.patches!=null) { for (int i=0; i<this.relocates.length; i++) { p.patches[i]=(Patch)this.patches[i].clone(); } } if (p.freezes!=null) { for (int i=0; i<this.freezes.length; i++) { p.freezes[i]=(Freeze)this.freezes[i].clone(); } } return p; } @Override public boolean equals(Object o) { if (! (o instanceof Project)) return false; Project p=(Project)o; if (!Objects.equals(this.name,p.name)) return false; if (!Objects.equals(this.file,p.file)) return false; if (!Objects.equals(this.description,p.description)) return false; if (this.fileType != p.fileType) return false; if (this.targetType != p.targetType) return false; if (!Arrays.equals(this.memoryFlags, p.memoryFlags)) return false; if (!Arrays.equals(this.inB, p.inB)) return false; if (!Arrays.equals(this.memory, p.memory)) return false; if (this.mpr==null && p.mpr!=null) return false; if (this.mpr!=null && p.mpr==null) return false; if (this.mpr!=null && p.mpr!=null) { if (!this.mpr.header.equals(p.mpr.header)) return false; if (this.mpr.block!=p.mpr.block) return false; for (int i=0; i<this.mpr.block; i++) { if (!Arrays.equals((byte[])this.mpr.blocks.get(i), p.mpr.blocks.get(i))) return false; } } for (int i=0; i<this.memory.length; i++) { if (!this.memory[i].equals(p.memory[i])) return false; } if (this.chip!=p.chip) return false; if (this.binAddress!=p.binAddress) return false; if (!this.constant.equals(p.constant)) return false; if (this.relocates!=null && p.relocates!=null) { for (int i=0; i<this.relocates.length; i++) { if (!this.relocates[i].equals(p.relocates[i])) return false; } } if (this.patches!=null && p.patches!=null) { for (int i=0; i<this.patches.length; i++) { if (!this.patches[i].equals(p.patches[i])) return false; } } if (this.freezes!=null && p.freezes!=null) { for (int i=0; i<this.freezes.length; i++) { if (!this.freezes[i].equals(p.freezes[i])) return false; } } return true; } }
7,164
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Relocate.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/Relocate.java
/** * @(#)Relocate.java 2021/11/03 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.main; /** * Relocate addresses definitions * * @author ice */ public class Relocate implements Cloneable { /** Starting position from where to relocate */ public int fromStart; /** Ending position from where to relocate*/ public int fromEnd; /** Starting position to where to relocate */ public int toStart; /** Ending position to where to relocate */ public int toEnd; /** * Check if the ranges are valid * * @return true if ranges are valid */ public boolean isValidRange() { if (fromEnd < fromStart) return false; if (toEnd < toStart) return false; if (fromEnd-fromStart!=toEnd-toStart) return false; if (fromStart<0 || toStart<0 || fromEnd>0xFFFF || toEnd>0xFFFF) return false; return true; } /** * Clone the object * * @return the cloned object */ @Override public Object clone() { Relocate copy=new Relocate(); copy.fromStart=fromStart; copy.fromEnd=fromEnd; copy.toStart=toStart; copy.toEnd=toEnd; return copy; } @Override public boolean equals(Object obj) { if (!(obj instanceof Relocate)) return false; Relocate relocate=(Relocate) obj; if (relocate.fromStart!=fromStart) return false; if (relocate.toStart!=toStart) return false; if (relocate.fromEnd!=fromEnd) return false; if (relocate.toEnd!=toEnd) return false; return true; } @Override public int hashCode() { return super.hashCode()+79*fromStart+71*fromEnd+17*toStart+11*toEnd; } }
2,520
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
FileType.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/FileType.java
/** * @(#)FileTypejava 2019/12/08 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.main; import java.util.Locale; import sw_emulator.math.Unsigned; import sw_emulator.swing.Shared; /** File type */ public enum FileType { UND { @Override public String getDescription(byte[] inB) { return "Unrecognized file"; } }, // undefined CRT { @Override public String getDescription(byte[] inB) { StringBuilder tmp=new StringBuilder(); tmp.append("C64 CARTRIDGE\n"); int header=Math.max( ((inB[0x10]&0xFF)<<24)+((inB[0x11]&0xFF)<<16)+ ((inB[0x12]&0xFF)<<8)+(inB[0x13]&0xFF), 0x40); tmp.append("Cartridge version: "+(inB[0x14]&0xFF)+"."+(inB[0x15]& 0xFF)).append("\n"); tmp.append("Cartridge type: "); switch ((inB[0x16]&0xFF)<<8+(inB[0x17]&0xFF)) { case 0: tmp.append("Normal cartridge\n"); break; case 1: tmp.append("Action Replay\n"); break; case 2: tmp.append("KCS Power Cartridge\n"); break; case 3: tmp.append("Final Cartridge III\n"); break; case 4: tmp.append("Simons Basic\n"); break; case 5: tmp.append("Ocean type 1*\n"); break; case 6: tmp.append("Expert Cartridge\n"); break; case 7: tmp.append("Fun Play, Power Play\n"); break; case 8: tmp.append("Super Games\n"); break; case 9: tmp.append("Atomic Power\n"); break; case 10: tmp.append("Epyx Fastload\n"); break; case 11: tmp.append("Westermann Learning\n"); break; case 12: tmp.append("Rex Utility\n"); break; case 13: tmp.append("Final Cartridge I\n"); break; case 14: tmp.append("Magic Formel\n"); break; case 15: tmp.append("C64 Game System, System 3\n"); break; case 16: tmp.append("WarpSpeed\n"); break; case 17: tmp.append("Dinamic**\n"); break; case 18: tmp.append("Zaxxon, Super Zaxxon (SEGA)\n"); break; case 19: tmp.append("Magic Desk, Domark, HES Australia\n"); break; case 20: tmp.append("Super Snapshot 5\n"); break; case 21: tmp.append("Comal-80\n"); break; case 22: tmp.append("Structured Basic\n"); break; case 23: tmp.append("Ross\n"); break; case 24: tmp.append("Dela EP64\n"); break; case 25: tmp.append("Dela EP7x8\n"); break; case 26: tmp.append("Dela EP256\n"); break; case 27: tmp.append("Rex EP256\n"); break; default: tmp.append("Unknown cartridge type\n"); } tmp.append("Cartridge port EXROM "+ (inB[0x18]==0 ? "inactive": "active")).append("\n"); tmp.append("Cartridge port GAME "+ (inB[0x19]==0 ? "inactive": "active")).append("\n"); for (int i=0x20; i<header; i++) { tmp.append((char)inB[i]); } tmp.append("\n"); // now we have many CHIP section until end of memory int pos=header; while (pos<inB.length) { header=getChip(inB, pos, tmp); // avoid to not go ahead in buffer for wrong file codification if (header<=pos) break; pos=header; } return tmp.toString(); } /** * Get the chip type information an positioning to the next * * @param inB the buffer * @param pos the starting position * @param tmp the output buffer * @return the next position in buffer */ private int getChip(byte[] inB, int pos, StringBuilder tmp) { tmp.append((char)inB[pos]) .append((char)inB[pos+1]) .append((char)inB[pos+2]) .append((char)inB[pos+3]); tmp.append(" #") .append(((inB[pos+0xA]&0xFF)<<8)+(inB[pos+0xB]&0xFF)); switch ((inB[pos+8]&0xFF<<8)+inB[pos+9]&0xFF) { case 0: tmp.append(" ROM"); break; case 1: tmp.append(" RAM"); break; case 2: tmp.append(" Flash ROM"); break; default: tmp.append(" "); } tmp.append(" ") .append(ShortToExe(((inB[pos+0xC]&0xFF)<<8)+(inB[pos+0xD]&0xFF))) .append("-") .append(ShortToExe(((inB[pos+0xE]&0xFF)<<8)+(inB[pos+0xF]&0xFF))) .append("\n"); return pos+((inB[pos+0x4]&0xFF)<<24) +((inB[pos+0x5]&0xFF)<<16) +((inB[pos+0x6]&0xFF)<<8) +(inB[pos+0x7]&0xFF); } /** * Convert a unsigned short (containing in a int) to Exe upper case 4 chars * * @param value the short value to convert * @return the exe string rapresentation of byte */ private String ShortToExe(int value) { int tmp=value; if (value<0) return "????"; String ret=Integer.toHexString(tmp); int len=ret.length(); switch (len) { case 1: ret="000"+ret; break; case 2: ret="00"+ret; break; case 3: ret="0"+ret; break; } return ret.toUpperCase(Locale.ENGLISH); } }, // cartridge SID { @Override public String getDescription(byte[] inB) { int psidVersion; // version of psid file int psidLAddr; // psid load address int psidIAddr; // psid init address int psidPAddr; // psid play address int psidSong; // number of songs int psidSSong; // start song StringBuilder tmp=new StringBuilder(); char first; if (inB[0]==0x52) first='R'; else first='P'; psidVersion=(int)inB[5]; psidLAddr=Unsigned.done(inB[9])+Unsigned.done(inB[8])*256; psidIAddr=Unsigned.done(inB[11])+Unsigned.done(inB[10])*256; psidPAddr=Unsigned.done(inB[13])+Unsigned.done(inB[12])*256; psidSong=Unsigned.done(inB[15])+Unsigned.done(inB[14])*256; psidSSong=Unsigned.done(inB[17])+Unsigned.done(inB[16])*256; tmp.append(first).append("SID file version ").append(psidVersion).append("\n"); tmp.append("Load Address: ").append(Integer.toHexString(psidLAddr)).append("\n"); tmp.append("Init Address: ").append(Integer.toHexString(psidIAddr)).append("\n"); tmp.append("Play Address: ").append(Integer.toHexString(psidPAddr)).append("\n"); tmp.append("name: "); for (int i=0x16; i<0x36; i++) { if (inB[i]==0) break; tmp.append((char)inB[i]); } tmp.append("\n"); tmp.append("author: "); for (int i=0x36; i<0x56; i++) { if (inB[i]==0) break; tmp.append((char)inB[i]); } tmp.append("\n"); tmp.append("copyright: "); for (int i=0x56; i<0x76; i++) { if (inB[i]==0) break; tmp.append((char)inB[i]); } tmp.append("\n"); tmp.append("songs: ").append(psidSong).append(" (startsong: ") .append(psidSSong).append(")\n\n"); return tmp.toString(); } }, // PSID/RSID SAP { @Override public String getDescription(byte[] inB) { StringBuilder tmp=new StringBuilder(); // go until binary header fount for (int i=0; i<inB.length-4; i++) { if (inB[i]==0x0d && inB[i+1]==0x0a && inB[i+2]==-1 && inB[i+3]==-1) break; tmp.append((char)inB[i]); } tmp.append("\n"); return tmp.toString(); } }, // SAP MUS { @Override public String getDescription(byte[] inB) { int v1Length; // length of voice 1 data int v2Length; // length of voice 2 data int v3Length; // length of voice 3 data StringBuffer tmp=new StringBuffer(""); v1Length=Unsigned.done(inB[2])+Unsigned.done(inB[3])*256; v2Length=Unsigned.done(inB[4])+Unsigned.done(inB[5])*256; v3Length=Unsigned.done(inB[6])+Unsigned.done(inB[7])*256; int pos=v1Length+v2Length+v3Length+8; for (int line=0; line<5; line++ ) { char c; char si=0; // count copied characters do { // ASCII CHR$ conversion c=CHRtab[Unsigned.done(inB[pos])]; if ((c>=0x20) && (si<=31)) { tmp.append(c); // copy to info string } // If character is 0x9d (left arrow key) then move back. if ((inB[pos]==0x9d) && (si>=0)) { si--; } pos++; } while ( !((c==0x0D) || (c==0x00) || (pos>inB.length)) ); tmp.append('\n'); if (c==0x00) break; // must exit of the lines are incomplete } tmp.append('\n'); return tmp.toString(); } }, // MUS VSF { // Vice vsf @Override public String getDescription(byte[] inB) { int pos; StringBuffer tmp=new StringBuffer(""); for (int i=0; i<19; i++) { if (inB[i]!=0) tmp.append((char)inB[i]); } tmp.append("\nVMajor=").append(inB[20]).append(" VMinor=").append(inB[21]).append("\n"); tmp.append("Machine Name="); for (int i=22; i<37; i++) { if (inB[i]!=0) tmp.append((char)inB[i]); } if (((inB[37] & 0xff) == 0x56) && ((inB[38] & 0xff) == 0x49) && ((inB[39] & 0xff) == 0x43) && ((inB[40] & 0xff) == 0x45) ) { tmp.append("\nVersion Magic="); for (int i=37; i<50; i++) { if (inB[i]!=0) tmp.append((char)inB[i]); } tmp.append("\nVersion=").append(inB[50] & 0xff) .append(".").append(inB[51] & 0xff) .append(".").append(inB[52] & 0xff) .append(".").append(inB[53] & 0xff) .append("\n"); tmp.append("Svn Version=").append(((inB[57] & 0xff)<<24)+ ((inB[56] & 0xff)<<16)+ ((inB[55] & 0xff)<<8)+ (inB[54] & 0xff)).append("\n\n"); pos=58; } else { tmp.append("\n\n"); pos=37; } int size=0; while (pos<inB.length-21) { for (int i=pos; i<pos+16; i++) { if (inB[i]!=0) tmp.append((char)inB[i]); } tmp.append("\nVMajor=").append(inB[pos+16]).append(" VMinor=").append(inB[pos+17]).append("\n"); size=((inB[pos+21] & 0xff)<<24)+ ((inB[pos+20] & 0xff)<<16)+ ((inB[pos+19] & 0xff)<<8)+ (inB[pos+18] & 0xff); tmp.append("Size=").append(size).append("\n\n"); pos=pos+size; } return tmp.toString(); } }, AY { @Override public String getDescription(byte[] inB) { int posAuthor, posMisc, posStruct, posTitle, posData, posPoint, posAddr; int address; StringBuffer tmp=new StringBuffer(""); posAuthor=((inB[12] & 0xFF)<<8)+(inB[13] & 0xFF)+12; posMisc=((inB[14] & 0xFF)<<8)+(inB[15] & 0xFF)+14; posStruct=((inB[18] & 0xFF)<<8)+(inB[19] & 0xFF)+18; tmp.append("Author: "); for (int i=0; i<256; i++) { if (inB[posAuthor+i]!=0) tmp.append((char)inB[posAuthor+i]); else break; } tmp.append("\n"); tmp.append("Misc: "); for (int i=0; i<256; i++) { if (inB[posMisc+i]!=0) tmp.append((char)inB[posMisc+i]); else break; } tmp.append("\n"); int tunes=(inB[16] & 0xFF)+1; tmp.append("Tunes: ").append(tunes).append("\n\n"); for (int i=0; i<tunes; i++) { posTitle=((inB[posStruct+i*4] & 0xFF)<<8)+(inB[posStruct+i*4+1] & 0xFF)+posStruct+i*4; posData=((inB[posStruct+i*4+2] & 0xFF)<<8)+(inB[posStruct+i*4+3] & 0xFF)+posStruct+i*4+2; tmp.append("Title ").append(i+1).append(": "); for (int j=0; j<256; j++) { if (inB[posTitle+j]!=0) tmp.append((char)inB[posTitle+j]); else break; } tmp.append("\n"); tmp.append("Time: ").append(((inB[posData+4] & 0xFF)<<8)+(inB[posData+5] & 0xFF)).append(" frames\n"); tmp.append("Hreg: $").append(Shared.ByteToExe(inB[posData+8] & 0xFF)).append("\n"); tmp.append("Lreg: $").append(Shared.ByteToExe(inB[posData+9] & 0xFF)).append("\n"); posPoint=((inB[posData+10] & 0xFF)<<8)+(inB[posData+11] & 0xFF)+posData+10; tmp.append("SP: $").append(Shared.ShortToExe(((inB[posPoint] & 0xFF)<<8)+(inB[posPoint+1] & 0xFF))).append("\n"); tmp.append("INIT: $").append(Shared.ShortToExe(((inB[posPoint+2] & 0xFF)<<8)+(inB[posPoint+3] & 0xFF))).append("\n"); tmp.append("INTER: $").append(Shared.ShortToExe(((inB[posPoint+4] & 0xFF)<<8)+(inB[posPoint+5] & 0xFF))).append("\n\n"); posAddr=((inB[posData+12] & 0xFF)<<8)+(inB[posData+13] & 0xFF)+posData+12; // blocks are 0 temrinating, suppose to have max 256 of them for (int j=0; j<256; j++) { address=((inB[posAddr+j*6] & 0xFF)<<8)+(inB[posAddr+j*6+1] & 0xFF); if (address==0) break; tmp.append("Block ").append(j+1).append(": $").append(Shared.ShortToExe(address)); address=((inB[posAddr+j*6+2] & 0xFF)<<8)+(inB[posAddr+j*6+3] & 0xFF); tmp.append(" - $").append(Shared.ShortToExe(address)).append("\n"); } tmp.append("\n"); } return tmp.toString(); } }, NSF { @Override public String getDescription(byte[] inB) { int nsfVersion; // version of psid file int nsfLAddr; // nfs load address int nsfIAddr; // nfs init address int nsfPAddr; // nfs play address int nfsSong; // number of songs int nfsSSong; // start song StringBuilder tmp=new StringBuilder(); nsfVersion=(int)inB[5]; nsfLAddr=Unsigned.done(inB[8])+Unsigned.done(inB[9])*256; nsfIAddr=Unsigned.done(inB[10])+Unsigned.done(inB[11])*256; nsfPAddr=Unsigned.done(inB[12])+Unsigned.done(inB[13])*256; nfsSong=Unsigned.done(inB[6]); nfsSSong=Unsigned.done(inB[7]); tmp.append("NSF file version ").append(nsfVersion).append("\n"); tmp.append("Load Address: ").append(Integer.toHexString(nsfLAddr)).append("\n"); tmp.append("Init Address: ").append(Integer.toHexString(nsfIAddr)).append("\n"); tmp.append("Play Address: ").append(Integer.toHexString(nsfPAddr)).append("\n"); tmp.append("name: "); for (int i=0x0E; i<0x2E; i++) { if (inB[i]==0) break; tmp.append((char)inB[i]); } tmp.append("\n"); tmp.append("author: "); for (int i=0x2E; i<0x4E; i++) { if (inB[i]==0) break; tmp.append((char)inB[i]); } tmp.append("\n"); tmp.append("copyright: "); for (int i=0x4E; i<0x6E; i++) { if (inB[i]==0) break; tmp.append((char)inB[i]); } tmp.append("\n"); tmp.append("songs: ").append(nfsSong).append(" (startsong: ") .append(nfsSSong).append(")\n\n"); return tmp.toString(); } }, // NFS MPR { @Override public String getDescription(byte[] inB) { MPR mpr=new MPR(); if (!mpr.getElements(inB)) return "Multiple programs\n\n"+mpr.getDescription()+"\n\n"+ "I/O error reading the file!!!"; return "Multiple programs\n\n"+mpr.getDescription(); } }, // Multiple PRG PRG { @Override public String getDescription(byte[] inB) { int start=Unsigned.done(inB[0])+Unsigned.done(inB[1])*256; return "Starting address="+Integer.toHexString(start)+"\n"; } }, // program BIN { @Override public String getDescription(byte[] inB) { return "Raw binary without starting address\n"; } }; // binary file /** * Get the description from the given data * * @param inB the data (of the given type) * @return the description */ public abstract String getDescription(byte[] inB); /** CHR$ conversion table (0x01 = no output) */ public static char CHRtab[] = { 0x0, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0xd, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x20,0x21, 0x1,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f, 0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x5b,0x24,0x5d,0x20,0x20, // alternative: CHR$(92=0x5c) => ISO Latin-1(0xa3) 0x2d,0x23,0x7c,0x2d,0x2d,0x2d,0x2d,0x7c,0x7c,0x5c,0x5c,0x2f,0x5c,0x5c,0x2f,0x2f, 0x5c,0x23,0x5f,0x23,0x7c,0x2f,0x58,0x4f,0x23,0x7c,0x23,0x2b,0x7c,0x7c,0x26,0x5c, // 0x80-0xFF 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x20,0x7c,0x23,0x2d,0x2d,0x7c,0x23,0x7c,0x23,0x2f,0x7c,0x7c,0x2f,0x5c,0x5c,0x2d, 0x2f,0x2d,0x2d,0x7c,0x7c,0x7c,0x7c,0x2d,0x2d,0x2d,0x2f,0x5c,0x5c,0x2f,0x2f,0x23, 0x2d,0x23,0x7c,0x2d,0x2d,0x2d,0x2d,0x7c,0x7c,0x5c,0x5c,0x2f,0x5c,0x5c,0x2f,0x2f, 0x5c,0x23,0x5f,0x23,0x7c,0x2f,0x58,0x4f,0x23,0x7c,0x23,0x2b,0x7c,0x7c,0x26,0x5c, 0x20,0x7c,0x23,0x2d,0x2d,0x7c,0x23,0x7c,0x23,0x2f,0x7c,0x7c,0x2f,0x5c,0x5c,0x2d, 0x2f,0x2d,0x2d,0x7c,0x7c,0x7c,0x7c,0x2d,0x2d,0x2d,0x2f,0x5c,0x5c,0x2f,0x2f,0x23 }; /** * Get the file type * * @param inB the input data * @param isRawBin true id this is a raw binary (no format) * @return the file type */ public static FileType getFileType(byte[] inB, boolean isRawBin) { if (isRawBin) return BIN; if (isPSID(inB)) return SID; if (isMUS(inB)) return MUS; if (isMPR(inB)) return MPR; if (isCRT(inB)) return CRT; if (isVSF(inB)) return VSF; if (isAY(inB)) return AY; if (isNFS(inB)) return NSF; if (isSAP(inB)) return SAP; if (isPRG(inB)) return PRG; return UND; } /** * Determine if the input file is a PSID or RSID file * * @param inB the data * @return true if the file is a PSID or RSID file */ private static boolean isPSID(byte[] inB) { int psidVersion; // version of psid file int psidDOff; // psid data offeset try { // check header if (((inB[0]!='P') && (inB[0]!='R')) ||(inB[1]!='S')||(inB[2]!='I')||(inB[3]!='D')) return false; // check PSID version if ((inB[4]!='\0')|| (inB[5]!='\1') && (inB[5]!='\2') && (inB[5]!='\3')) return false; psidVersion=(int)inB[5]; // check PSID data offset if ((inB[6]!='\0')|| (inB[7]!=0x76 && inB[7]!=0x7C)) return false; psidDOff=(int)inB[7]; if (psidVersion==4 && psidDOff==0x76) return false; if (psidVersion==3 && psidDOff==0x76) return false; if (psidVersion==2 && psidDOff==0x76) return false; if (psidVersion==1 && psidDOff==0x7C) return false; return true; } catch (Exception e) { System.err.println(e); } // file is too short for being a PSID return false; } /** * Determine if the input file is a SAP file * * @param inB the data * @return true if the file is a PSID or RSID file */ private static boolean isSAP(byte[] inB) { try { // check header if ((inB[0]=='S') && (inB[1]=='A') && (inB[2]=='P') && (inB[3]==0x0d) && (inB[4]==0x0a)) return true; } catch (Exception e) { System.err.println(e); } return false; } /** * Determine if the input file is a NSF music tune * * @param inB the data * @return true if the file is a PSID or RSID file */ private static boolean isNFS(byte[] inB) { try { // check header if ((inB[0]!='N') ||(inB[1]!='E')||(inB[2]!='S')||(inB[3]!='M')||(inB[4] &0xFF)!=0x1A) return false; return true; } catch (Exception e) { System.err.println(e); } // file is too short for being a PSID return false; } /** * Determine if the input file is an AY music file * * @param inB the data * @return reue if the file is an AY music file */ private static boolean isAY(byte[] inB) { try { // check header if ((inB[0]=='Z') && (inB[1]=='X') && (inB[2]=='A') && (inB[3]=='Y') && (inB[4]=='E') && (inB[5]=='M') && (inB[6]=='U') && (inB[7]=='L'))return true; } catch (Exception e) { System.err.println(e); } // file is too short for being a PSID return false; } /** * Determine if the input file is a MUS/STR file * * @param inB the data * @return true if the file is a MUS file */ private static boolean isMUS(byte[] inB) { int v1Length; // length of voice 1 data int v2Length; // length of voice 2 data int v3Length; // length of voice 3 data try { v1Length=Unsigned.done(inB[2])+Unsigned.done(inB[3])*256; v2Length=Unsigned.done(inB[4])+Unsigned.done(inB[5])*256; v3Length=Unsigned.done(inB[6])+Unsigned.done(inB[7])*256; if (inB.length<v1Length+v2Length+v3Length) return false; // calculate pointer to voice data int ind1=8; int ind2=ind1+v1Length; int ind3=ind2+v2Length; return (inB[ind2-2]==0x01 && inB[ind2-1]==0x4F && inB[ind3-2]==0x01 && inB[ind3-1]==0x4F && inB[ind3+v3Length-2]==0x01 && inB[ind3+v3Length-1]==0x4F); } catch (Exception e) { System.err.println(e); } // file is too short for being a VSF return false; } /** * Determine if the input file is a PRG file * * @param inB the data * @return true if the file is a PRG file */ private static boolean isPRG(byte[] inB) { int start=Unsigned.done(inB[0])+Unsigned.done(inB[1])*256; return (inB.length<=65535+3-start); } /** * Determine if the input file is a VSF file * * @return true if the file is VSF file */ private static boolean isVSF(byte[] inB) { StringBuffer tmp=new StringBuffer(""); try { for (int i=0; i<18; i++) { tmp.append((char)inB[i]); } if (inB[18]!=0x1a) return false; return "VICE Snapshot File".equals(tmp.toString()); } catch (Exception e) { System.err.println(e); } // file is too short for being a VSF return false; } /** * Determine if the input file is a CRT file * * @param inB the data * @return true if the file is a CRT image */ private static boolean isCRT(byte[] inB) { try { if (inB[0]!='C') return false; if (inB[1]!='6') return false; if (inB[2]!='4') return false; if (inB[3]!=' ') return false; if (inB[4]!='C') return false; if (inB[5]!='A') return false; if (inB[6]!='R') return false; if (inB[7]!='T') return false; if (inB[8]!='R') return false; if (inB[9]!='I') return false; if (inB[10]!='D') return false; if (inB[11]!='G') return false; if (inB[12]!='E') return false; if (inB[13]!=' ') return false; if (inB[14]!=' ') return false; return inB[15]==' '; } catch (Exception e) { System.err.println(e); } // file is too short for being a CRT return false; } /** * Determine if the input file is a MPR file * * @param inB the data * @return true if the file is a MPR file */ private static boolean isMPR(byte[] inB) { try { if (inB[0]!=0) return false; if (inB[1]!=5) return false; if (inB[2]!='M') return false; if (inB[3]!='P') return false; if (inB[4]!='R') return false; if (inB[5]!='G') return false; return inB[6] == '#'; } catch (Exception e) { System.err.println(e); } // file is too short for being a MPR return false; } }
28,473
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Serial.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/Serial.java
/** * @(#)Serial.java 2021/12/19 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.main; import java.io.Serializable; import java.util.UUID; import sw_emulator.software.MemoryDasm; /** * Serizable container for copy/paste action throw different instance * * @author ice */ public class Serial implements Serializable { /** Unique UUID to check different instance */ public UUID uuid; /** Selected ranges of address in memory */ public int[] selected; /** Memory for dasm*/ public MemoryDasm[] memory; }
1,374
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
DataType.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/DataType.java
/** * @(#)DataTypejava 2020/10/18 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.main; /** * Target data type for disassembly * * @author ice */ public enum DataType { NONE { @Override public char getChar() { return ' '; } @Override public String getDescription() { return "Nothing selected"; } }, BYTE_HEX { @Override public char getChar() { return 'B'; } @Override public String getDescription() { return "Byte (Hex)"; } }, BYTE_DEC { @Override public char getChar() { return 'D'; } @Override public String getDescription() { return "Byte (Decimal)"; } }, BYTE_BIN { @Override public char getChar() { return 'Y'; } @Override public String getDescription() { return "Byte (Binary)"; } }, BYTE_CHAR { @Override public char getChar() { return 'R'; } @Override public String getDescription() { return "Byte (Character)"; } }, WORD { @Override public char getChar() { return 'W'; } @Override public String getDescription() { return "Word"; } }, SWAPPED { @Override public char getChar() { return 'P'; } @Override public String getDescription() { return "Word swapped)"; } }, TRIBYTE { @Override public char getChar() { return 'E'; } @Override public String getDescription() { return "Tribyte"; } }, LONG { @Override public char getChar() { return 'L'; } @Override public String getDescription() { return "Long"; } }, ADDRESS { @Override public char getChar() { return 'A'; } @Override public String getDescription() { return "Address"; } }, STACK { @Override public char getChar() { return 'S'; } @Override public String getDescription() { return "Stack"; } }, TEXT { @Override public char getChar() { return 'T'; } @Override public String getDescription() { return "Text"; } }, NUM_TEXT { @Override public char getChar() { return 'N'; } @Override public String getDescription() { return "Text with length"; } }, ZERO_TEXT { @Override public char getChar() { return 'Z'; } @Override public String getDescription() { return "Text terminated with zero"; } }, HIGH_TEXT { @Override public char getChar() { return 'M'; } @Override public String getDescription() { return "Text with high bit 1"; } }, SHIFT_TEXT { @Override public char getChar() { return 'H'; } @Override public String getDescription() { return "Text shifted with high bit 1"; } }, SCREEN_TEXT { @Override public char getChar() { return 'C'; } @Override public String getDescription() { return "Text converted to screen code"; } }, PETASCII_TEXT { @Override public char getChar() { return 'I'; } @Override public String getDescription() { return "Text converted to PetAscii"; } }, MONO_SPRITE{ @Override public char getChar() { return 'O'; } @Override public String getDescription() { return "Monocromatic sprite"; } }, MULTI_SPRITE{ @Override public char getChar() { return 'F'; } @Override public String getDescription() { return "Multicolor sprite"; } }; /** * Get the char of this data type * * @return the char */ public abstract char getChar(); /** * Get the description of this data type * * @return the description */ public abstract String getDescription(); }
5,561
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
KeyProject.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/KeyProject.java
/* * @(#)KeyProject.java 2021/12/20 * * ICE Team free software group * * This file is part of JIIT64 Java Ice Team Tracker 64 * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA */ package sw_emulator.swing.main; /** * Key project container for undo * * @author ice */ public class KeyProject { /** Key for search state */ public String key; /** Saved project */ public Project project; }
1,103
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
RecentItems.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/RecentItems.java
/* * jMemorize - Learning made easy (and fun) - A Leitner flashcards tool * Copyright(C) 2004-2006 Riad Djemili * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 1, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ package sw_emulator.swing.main; import java.util.ArrayList; import java.util.List; import java.util.prefs.Preferences; /** * A simple data structure to store recent items (e.g. recent file in a menu or * recent search text in a search dialog). * * @author djemili */ public class RecentItems { public final static String RECENT_ITEM_STRING = "recent.item."; private int m_maxItems=9; private Preferences m_prefNode=Preferences.userRoot().node(this.getClass().getName()); private List<String> m_items=new ArrayList<String>(); public RecentItems() { loadFromPreferences(); } public void push(String item) { loadFromPreferences(); // force load as multiple instances can use those preferences m_items.remove(item); m_items.add(0, item); if (m_items.size() > m_maxItems) { m_items.remove(m_items.size() - 1); } update(); } public void remove(String item) { m_items.remove(item); update(); } public String get(int index) { return (String)m_items.get(index); } public List<String> getItems() { return m_items; } public int size() { return m_items.size(); } public void reload() { loadFromPreferences(); } private void update() { storeToPreferences(); } private void loadFromPreferences() { m_items.clear(); // load recent files from properties for (int i = 0; i < m_maxItems; i++) { String val = m_prefNode.get(RECENT_ITEM_STRING+i, ""); //$NON-NLS-1$ if (!val.equals("")) m_items.add(val); else break; } } private void storeToPreferences() { for (int i = 0; i < m_maxItems; i++) { if (i < m_items.size()) m_prefNode.put(RECENT_ITEM_STRING+i, (String)m_items.get(i)); else m_prefNode.remove(RECENT_ITEM_STRING+i); } } }
2,713
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Carets.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/main/Carets.java
/** * @(#)Carets.java 2022/03/24 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.main; import java.util.ArrayList; import sw_emulator.software.MemoryDasm; /** * Caret container * * @author ice */ class Caret { /** Starting caret position */ public int start; /** Ending caret position */ public int end; /** Memory associated with those caret interval */ MemoryDasm memory; /** Type of action */ Carets.Type type; } /** * Carets to memory position * * @author ice */ public class Carets { /** * Type of action with double click on text * * @author ice */ public enum Type { INSTR, BLOCK_COMMENT, COMMENT, BYTE, WORD, TRIBYTE, WORD_SWAPPED, LONG, ADDRESS, MONO_SPRITE, MULTI_SPRITE, TEXT, NUM_TEXT, ZERO_TEXT, HIGH_TEXT, SHIFT_TEXT, SCREEN_TEXT, PETASCII_TEXT, STACK_WORD, LABEL, LABEL_REL } /** List of caret */ ArrayList<Caret> list=new ArrayList(); /** Offset to use for shift */ private int offset=0; /** * Clear the actual list */ public void clear() { list.clear(); this.offset=0; } /** * Set an offset to use for shift carets position * * @param offset the offset to use in adding a caret */ public void setOffset(int offset) { this.offset=offset; } /** * Get actual offset used */ public int getOffset() { return offset; } /** * Add this entry into the list * * @param start the starting caret position * @param end the ending caret position * @param memory the memory associated with those postions * @param type the type of caret action */ public void add(int start, int end, MemoryDasm memory, Type type) { Caret caret=new Caret(); caret.start=start+offset; caret.end=end+offset; caret.memory=memory; caret.type=type; list.add(caret); } /** * Get the memory associated with that postion or null * * @param position the postion to search * @return the memory associated with that postion */ public MemoryDasm getMemory(int position) { for (Caret caret: list) { if (position>=caret.start && position<=caret.end) return caret.memory; } return null; } /** * Get the type associated with that postion or null * * @param position the postion to search * @return the memory associated with that postion */ public Type getType(int position) { for (Caret caret: list) { if (position>=caret.start && position<=caret.end) return caret.type; } return null; } /** * Get (start) position that has that memory * * @param memory the memory to search * @return the position or -1 */ public int getPosition(MemoryDasm memory) { for (Caret caret: list) { if (caret.memory==memory) return caret.start; } return -1; } }
3,913
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
DataTableModelConstant.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/table/DataTableModelConstant.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package sw_emulator.swing.table; import java.util.Locale; import javax.swing.table.AbstractTableModel; import sw_emulator.swing.Shared; import sw_emulator.swing.main.Constant; /** * DataTableModel for constant table * * @author ice */ public class DataTableModelConstant extends AbstractTableModel { /** Constant with value */ Constant constant; public enum COLUMNS { ID("ID", String.class), T0("Table 0", String.class), T1("Table 1", String.class), T2("Table 2", String.class), T3("Table 3", String.class), T4("Table 4", String.class), T5("Table 5", String.class), T6("Table 6", String.class), T7("Table 7", String.class), T8("Table 8", String.class), T9("Table 9", String.class), T10("Table !", String.class), T11("Table \"", String.class), T12("Table £", String.class), T13("Table $", String.class), T14("Table %", String.class), T15("Table &", String.class), T16("Table /", String.class), T17("Table (", String.class), T18("Table )", String.class), T19("Table =", String.class), ; String columnsTip; Class type; COLUMNS(String tip, Class type) { columnsTip=tip; this.type=type; } }; public static COLUMNS[] columns=COLUMNS.values(); /** * Constructor * * @param constant the constant to use */ public DataTableModelConstant(Constant constant) { this.constant = constant; } /** * Get the number of rows * * @return the number of rows */ @Override public int getRowCount() { return Constant.ROWS; } /** * Get the number of columns * * @return the number of columns */ @Override public int getColumnCount() { return columns.length; } @Override public Class<?> getColumnClass(int i) { return columns[i].type; } /** * Get the name of the column * * @param column the column index * @return the column name * @Override */ @Override public String getColumnName(int column) { switch (column) { case 11: return "T!"; case 12: return "T\""; case 13: return "T£"; case 14: return "T$"; case 15: return "T%"; case 16: return "T&"; case 17: return "T/"; case 18: return "T("; case 19: return "T)"; case 20: return "T="; default: return columns[column].name(); } } /** * Get the value at the given position * * @param rowIndex the row index * @param columnIndex the column index * @return the value in cell */ @Override public Object getValueAt(int rowIndex, int columnIndex) { switch (columns[columnIndex]) { case ID: if (rowIndex<Constant.MIN_ROWS) return Shared.ByteToExe(rowIndex); else return Shared.ShortToExe(rowIndex); case T0: return constant.table[0][rowIndex]; case T1: return constant.table[1][rowIndex]; case T2: return constant.table[2][rowIndex]; case T3: return constant.table[3][rowIndex]; case T4: return constant.table[4][rowIndex]; case T5: return constant.table[5][rowIndex]; case T6: return constant.table[6][rowIndex]; case T7: return constant.table[7][rowIndex]; case T8: return constant.table[8][rowIndex]; case T9: return constant.table[9][rowIndex]; case T10: return constant.table[10][rowIndex]; case T11: return constant.table[11][rowIndex]; case T12: return constant.table[12][rowIndex]; case T13: return constant.table[13][rowIndex]; case T14: return constant.table[14][rowIndex]; case T15: return constant.table[15][rowIndex]; case T16: return constant.table[16][rowIndex]; case T17: return constant.table[17][rowIndex]; case T18: return constant.table[18][rowIndex]; case T19: return constant.table[19][rowIndex]; } return ""; } /** * Set the value at the given position * * @param aValue the value to save * @param rowIndex the row position * @param columnIndex the column position */ @Override public void setValueAt(Object aValue, int rowIndex, int columnIndex) { switch (columns[columnIndex]) { case T0: constant.table[0][rowIndex]=(String)aValue; break; case T1: constant.table[1][rowIndex]=(String)aValue; break; case T2: constant.table[2][rowIndex]=(String)aValue; break; case T3: constant.table[3][rowIndex]=(String)aValue; break; case T4: constant.table[4][rowIndex]=(String)aValue; break; case T5: constant.table[5][rowIndex]=(String)aValue; break; case T6: constant.table[6][rowIndex]=(String)aValue; break; case T7: constant.table[7][rowIndex]=(String)aValue; break; case T8: constant.table[8][rowIndex]=(String)aValue; break; case T9: constant.table[9][rowIndex]=(String)aValue; break; case T10: constant.table[10][rowIndex]=(String)aValue; break; case T11: constant.table[11][rowIndex]=(String)aValue; break; case T12: constant.table[12][rowIndex]=(String)aValue; break; case T13: constant.table[13][rowIndex]=(String)aValue; break; case T14: constant.table[14][rowIndex]=(String)aValue; break; case T15: constant.table[15][rowIndex]=(String)aValue; break; case T16: constant.table[16][rowIndex]=(String)aValue; break; case T17: constant.table[17][rowIndex]=(String)aValue; break; case T18: constant.table[18][rowIndex]=(String)aValue; break; case T19: constant.table[19][rowIndex]=(String)aValue; break; } } @Override public boolean isCellEditable(int rowIndex, int columnIndex) { switch (columns[columnIndex]) { case ID: return false; default: return true; } } }
6,777
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
MonoTableCellRenderer.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/table/MonoTableCellRenderer.java
/** * @(#)MonoTableCelleRenderer.java 2022/04/30 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.table; import java.awt.Color; import java.awt.Component; import javax.swing.JTable; import javax.swing.table.DefaultTableCellRenderer; /** * Color the cells according to the mono char * * @author ice */ public class MonoTableCellRenderer extends DefaultTableCellRenderer { /** Background color */ Color background; /** Foreground color */ Color foreground; @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component c=super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (value==null) return c; if (isSelected) return c; if ((int)value==1) { c.setBackground(foreground); c.setForeground(foreground); } else { c.setBackground(background); c.setForeground(background); } return c; } /** * Set the disassembly to use * * @param background background color * @param foreground foreground color */ public void setup(Color background, Color foreground) { this.background=background; this.foreground=foreground; } }
2,545
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
LabelsTableCellRenderer.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/table/LabelsTableCellRenderer.java
/** * @(#)LabelsTableCelleRenderer.java 2022/10/01 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.table; import java.awt.Color; import java.awt.Component; import javax.swing.JTable; import javax.swing.table.DefaultTableCellRenderer; import sw_emulator.software.MemoryDasm; import static sw_emulator.swing.table.DataTableModelLabels.COLUMNS.ID; /** * Color the cells according to the type of code * * @author ice */ public class LabelsTableCellRenderer extends DefaultTableCellRenderer { /** Memory dasm */ MemoryDasm[] memory; @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component c=super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (isSelected) return c; if (DataTableModelLabels.columns[table.convertColumnIndexToModel(column)]==ID) { MemoryDasm mem=memory[Integer.parseInt((String)value,16)]; if (mem.isCode) c.setBackground(Color.green); else if (mem.isData) c.setBackground(Color.cyan); else if (mem.isGarbage) c.setBackground(Color.red); else c.setBackground(Color.LIGHT_GRAY); return c; } c.setBackground(Color.white); return c; } public void setMemory(MemoryDasm[] memory) { this.memory=memory; } }
2,656
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
WizardTableCellRenderer.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/table/WizardTableCellRenderer.java
/** * @(#)WizardTableCelleRenderer.java 2021/12/06 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.table; import java.awt.Color; import java.awt.Component; import java.awt.Graphics; import java.awt.Rectangle; import javax.swing.JSpinner; import javax.swing.JTable; import javax.swing.table.DefaultTableCellRenderer; /** * Cell renderer for wizard * * @author ice */ public class WizardTableCellRenderer extends DefaultTableCellRenderer { JSpinner spinner; boolean showBorder; /** * Spinner with size * * @param spinner */ public WizardTableCellRenderer(JSpinner spinner) { this.spinner=spinner; } @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { int size=(Integer)spinner.getValue(); if (size%8==column && ((int)(size/8))==row) showBorder=true; else showBorder=false; return super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); } @Override public void paint(Graphics g) { super.paint(g); if (showBorder) { Rectangle bounds = g.getClipBounds(); g.setColor(Color.blue); g.drawLine(0, 0, bounds.width, bounds.height); g.drawLine(0, bounds.height, bounds.width, 0); } } }
2,169
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
ConstantCellEditor.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/table/ConstantCellEditor.java
/** * @(#)ConstantCelleEditor.java 2021/05/15 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.table; import java.awt.Color; import java.awt.Component; import javax.swing.DefaultCellEditor; import javax.swing.JTable; import javax.swing.JTextField; import javax.swing.border.Border; import javax.swing.border.LineBorder; import sw_emulator.software.MemoryDasm; import sw_emulator.software.cpu.M6510Dasm; import sw_emulator.swing.main.Constant; /** * Validate the cells with some rules * * @author ice */ public class ConstantCellEditor extends DefaultCellEditor { private final JTextField textField; private static final Border red = new LineBorder(Color.red); private static final Border black = new LineBorder(Color.black); private Constant constant; private MemoryDasm[] memories; public ConstantCellEditor(JTextField textField) { super(textField); this.textField=textField; } public void setCostant(Constant constant, MemoryDasm[] memories) { this.constant=constant; this.memories=memories; } @Override public boolean stopCellEditing() { String actual=textField.getText(); if (constant==null) return super.stopCellEditing(); if (actual==null || "".equals(actual)) return super.stopCellEditing(); String tmp=actual.toUpperCase(); for (String val: M6510Dasm.mnemonics) { if (tmp.equals(val)) { textField.setBorder(red); return false; } } if (!constant.isAllowed(actual) || !constant.isCorrect(actual)) { textField.setBorder(red); return false; } for (MemoryDasm memory : memories) { if (actual.equals(memory.dasmLocation) || actual.equals(memory.userLocation)) { textField.setBorder(red); return false; } } return super.stopCellEditing(); } @Override public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { textField.setBorder(black); return super.getTableCellEditorComponent( table, value, isSelected, row, column); } }
2,980
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
DataTableModelMemory.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/table/DataTableModelMemory.java
/** * @(#)DataTableModelMemory.java 2019/12/21 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.table; import javax.swing.table.AbstractTableModel; import sw_emulator.software.BasicDetokenize.BasicType; import sw_emulator.software.MemoryDasm; import sw_emulator.swing.Shared; import sw_emulator.swing.main.Option; /** * DataTableModel for memory dasm * * @author ice */ public class DataTableModelMemory extends AbstractTableModel { // mode for show memory address public static final byte MOD_HEX=1; public static final byte MOD_CHAR=2; Option option; /** Table data */ MemoryDasm[] data; public DataTableModelMemory(Option option) { this.option=option; } public enum COLUMNS { ID("Memory location", Integer.class), DC("Dasm comment", Boolean.class), UC("User comment", Boolean.class), DL("Dasm location", Boolean.class), UL("User location", Boolean.class), UB("User block comment", Boolean.class), RE("Related address", String.class), VL("Value in memory", Integer.class); String columnsTip; Class type; COLUMNS(String tip, Class type) { columnsTip=tip; this.type=type; } }; public static COLUMNS[] columns=COLUMNS.values(); /** * Set the memory data to use * * @param data the memory data */ public void setData(MemoryDasm[] data) { this.data=data; } /** * Get the actual data in table * * @return the data */ public MemoryDasm[] getData() { return data; } /** * Get the number of columns * * @return the number of columns */ @Override public int getColumnCount() { return columns.length; } /** * Get the number of rows * * @return the number of rows */ @Override public int getRowCount() { if (data!=null) return data.length; else return 0; } @Override public Class<?> getColumnClass(int i) { return columns[i].type; } /** * Get the value at the given position * * @param rowIndex the row index * @param columnIndex the column index * @return the value in cell */ @Override public Object getValueAt(int rowIndex, int columnIndex) { MemoryDasm memory=data[rowIndex]; switch (columns[columnIndex]) { case ID: return Shared.ShortToExe(memory.address); case VL: if (option.memoryValue==MOD_HEX) return Shared.ByteToExe(memory.copy & 0xFF); else return (char)memory.copy; case DC: return memory.dasmComment!=null; case UC: return memory.userComment!=null; case DL: return memory.dasmLocation!=null; case UL: return memory.userLocation!=null; case UB: return memory.userBlockComment!=null; case RE: String val=""; // show constant number/symbols if (memory.index!=-1) { switch (memory.index) { case 10: val="!"; break; case 11: val="\""; break; case 12: val="£"; break; case 13: val="$"; break; case 14: val="%"; break; case 15: val="&"; break; case 16: val="/"; break; case 17: val="("; break; case 18: val=")"; break; case 19: val="="; break; default: val=""+memory.index; break; } } // add Basic data indicator (it is generic) if (memory.basicType != BasicType.NONE) val+="|"; if (memory.type!=' ') return ""+memory.dataType.getChar()+memory.type+val; else return ""+memory.dataType.getChar()+val; } return ""; } /** * Get the name of the column * * @param column the column index * @return the column name * @Override */ @Override public String getColumnName(int column) { return columns[column].name(); } }
5,334
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
DataTableModelLabels.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/table/DataTableModelLabels.java
/** * @(#)DataTableModelLabels.java 2021/06/14 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.table; import java.util.ArrayList; import java.util.Locale; import javax.swing.table.AbstractTableModel; import sw_emulator.software.MemoryDasm; import static sw_emulator.software.MemoryDasm.TYPE_MINUS; import static sw_emulator.software.MemoryDasm.TYPE_PLUS; import static sw_emulator.software.MemoryDasm.TYPE_PLUS_MAJOR; import static sw_emulator.software.MemoryDasm.TYPE_PLUS_MINOR; /** * DataTableModel for labels * * @author ice */ public class DataTableModelLabels extends AbstractTableModel { /** Table data */ MemoryDasm[] data; /** Parsed data */ ArrayList<MemoryDasm> data2=new ArrayList(); public DataTableModelLabels() { } public enum COLUMNS { ID("Memory location", Integer.class), DL("Dasm location", String.class), UL("User location", String.class); String columnsTip; Class type; COLUMNS(String tip, Class type) { columnsTip=tip; this.type=type; } }; public static COLUMNS[] columns=COLUMNS.values(); /** * Set the memory data to use * * @param data the memory data */ public void setData(MemoryDasm[] data) { this.data=data; data2.clear(); for (MemoryDasm mem:data) { if ((mem.dasmLocation!=null && !"".equals(mem.dasmLocation)) || (mem.userLocation!=null && !"".equals(mem.userLocation))) data2.add(mem); } } /** * Get the actual data in table * * @return the data */ public ArrayList<MemoryDasm> getData() { return data2; } /** * Get the number of columns * * @return the number of columns */ @Override public int getColumnCount() { return columns.length; } /** * Get the number of rows * * @return the number of rows */ @Override public int getRowCount() { return data2.size(); } @Override public Class<?> getColumnClass(int i) { return columns[i].type; } /** * Get the value at the given position * * @param rowIndex the row index * @param columnIndex the column index * @return the value in cell */ @Override public Object getValueAt(int rowIndex, int columnIndex) { MemoryDasm memory=data2.get(rowIndex); switch (columns[columnIndex]) { case ID: return ShortToExe(memory.address); case DL: return memory.dasmLocation; case UL: MemoryDasm mem; if (memory.type==TYPE_PLUS || memory.type==TYPE_MINUS || memory.type==TYPE_PLUS_MAJOR || memory.type==TYPE_PLUS_MINOR) { if (memory.type==TYPE_PLUS) { mem=data[memory.related]; if (mem.userLocation!=null && !"".equals(mem.userLocation)) return mem.userLocation+"+"+(memory.address-memory.related); else if (mem.dasmLocation!=null && !"".equals(mem.dasmLocation)) return mem.dasmLocation+"+"+(memory.address-memory.related); else return "$"+ShortToExe(mem.address)+"+"+(memory.address-memory.related); } if (memory.type==TYPE_MINUS) { mem=data[memory.related]; if (mem.userLocation!=null && !"".equals(mem.userLocation)) return mem.userLocation+(memory.address-memory.related); else if (mem.dasmLocation!=null && !"".equals(mem.dasmLocation))return mem.dasmLocation+(memory.address-memory.related); else return "$"+ShortToExe(mem.address)+(memory.address-memory.related); } if (memory.type==TYPE_PLUS_MAJOR || memory.type==TYPE_PLUS_MINOR) { mem=data[(memory.related>>16) & 0xFFFF]; if (mem.userLocation!=null && !"".equals(mem.userLocation)) return mem.userLocation+"+"+(memory.address-((memory.related>>16) & 0xFFFF)); else if (mem.dasmLocation!=null && !"".equals(mem.dasmLocation)) return mem.dasmLocation+"+"+(memory.address-((memory.related>>16) & 0xFFFF)); else return "$"+ShortToExe(mem.address)+"+"+(memory.address-((memory.related>>16) & 0xFFFF)); } } return memory.userLocation; } return ""; } /** * Get the name of the column * * @param column the column index * @return the column name * @Override */ @Override public String getColumnName(int column) { return columns[column].name(); } /** * Convert a unsigned short (containing in a int) to Exe upper case 4 chars * * @param value the short value to convert * @return the exe string rapresentation of byte */ protected String ShortToExe(int value) { int tmp=value; if (value<0) return "????"; String ret=Integer.toHexString(tmp); int len=ret.length(); switch (len) { case 1: ret="000"+ret; break; case 2: ret="00"+ret; break; case 3: ret="0"+ret; break; } return ret.toUpperCase(Locale.ENGLISH); } /** * Convert a byte (containing in a int) to Exe upper case 2 chars * * @param value the short value to convert * @return the exe string rapresentation of byte */ protected String ByteToExe(byte value) { int tmp=value & 0xFF; String ret=Integer.toHexString(tmp); int len=ret.length(); switch (len) { case 1: ret="0"+ret; break; } return ret.toUpperCase(Locale.ENGLISH); } }
6,506
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
MultiTableCellRenderer.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/table/MultiTableCellRenderer.java
/** * @(#)MultiTableCelleRenderer.java 2022/04/30 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.table; import java.awt.Color; import java.awt.Component; import javax.swing.JTable; import javax.swing.table.DefaultTableCellRenderer; /** * Color the cells according to the multi char * * @author ice */ public class MultiTableCellRenderer extends DefaultTableCellRenderer { /** Background color */ Color background; /** Foreground color */ Color foreground; /** Common 1 color */ Color common1; /** Common 2 color */ Color common2; @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component c=super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (value==null) return c; if (isSelected) return c; switch ((int)value) { case 0: c.setBackground(background); c.setForeground(background); break; case 1: c.setBackground(foreground); c.setForeground(foreground); break; case 2: c.setBackground(common1); c.setForeground(common1); break; case 3: c.setBackground(common2); c.setForeground(common2); break; } return c; } /** * Set the disassembly to use * * @param background background color * @param foreground foreground color * @param common1 common 1 color * @param common2 common 2 color */ public void setup(Color background, Color foreground, Color common1, Color common2) { this.background=background; this.foreground=foreground; this.common1=common1; this.common2=common2; } }
3,082
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
ConstantTableCellRenderer.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/table/ConstantTableCellRenderer.java
/** * @(#)ConstantTableCelleRenderer.java 2024/03/01 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.table; import java.awt.Color; import java.awt.Component; import javax.swing.JTable; import javax.swing.table.DefaultTableCellRenderer; import sw_emulator.swing.main.Constant; /** * Table cell renderer for constants * * @author stefano_tognon */ public class ConstantTableCellRenderer extends DefaultTableCellRenderer { Constant constant=new Constant(); /** * Set up the constant to use * * @param constant the constant */ public void setConstant(Constant constant) { this.constant = constant; } @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component c=super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (isSelected) return c; setBackground(Color.white); if (row>=0 && column>0) { String comment=constant.comment[column-1][row]; if (comment!=null && !"".equals(comment)) { setToolTipText(comment); setBackground(Color.green); } else { setToolTipText(null); } } return c; } }
2,343
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
MemoryTableCellRenderer.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/table/MemoryTableCellRenderer.java
/** * @(#)MemoryTableCelleRenderer.java 2019/12/24 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.swing.table; import java.awt.Color; import java.awt.Component; import javax.swing.JTable; import javax.swing.table.DefaultTableCellRenderer; import sw_emulator.software.Disassembly; import sw_emulator.swing.main.Block; import static sw_emulator.swing.table.DataTableModelMemory.COLUMNS.ID; /** * Color the cells according to the type of code * * @author ice */ public class MemoryTableCellRenderer extends DefaultTableCellRenderer { /** The disassembly with information to use */ Disassembly disassembly; @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component c=super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (isSelected) return c; if (disassembly==null) return c; if (DataTableModelMemory.columns[table.convertColumnIndexToModel(column)]==ID) { for (Block block: disassembly.blocks) { if (row>=block.startAddress && row<=block.endAddress) { if (disassembly.memory[row].isCode) c.setBackground(Color.green); else if (disassembly.memory[row].isData) c.setBackground(Color.cyan); else if (disassembly.memory[row].isGarbage) c.setBackground(Color.red); else c.setBackground(Color.LIGHT_GRAY); return c; } } c.setBackground(Color.white); } return c; } /** * Set the disassembly to use * * @param disassembly the disassembly to use */ public void setDisassembly(Disassembly disassembly) { this.disassembly=disassembly; } }
3,055
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
CharcoalTheme.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/plaf/metal/CharcoalTheme.java
/** * @(#)CharcoalTheme.java 2020/07/08 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. * * * * Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * -Redistribution of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * -Redistribution in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * Neither the name of Sun Microsystems, Inc. or the names of contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. * * This software is provided "AS IS," without a warranty of any kind. ALL * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN") * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. * * You acknowledge that this software is not designed, licensed or intended * for use in the design, construction, operation or maintenance of any * nuclear facility. */ package sw_emulator.swing.plaf.metal; import javax.swing.plaf.metal.DefaultMetalTheme; import javax.swing.plaf.ColorUIResource; /** * This class describes a theme using gray colors. * * @author Steve Wilson */ public class CharcoalTheme extends DefaultMetalTheme { public String getName() { return "Charcoal"; } private final ColorUIResource primary1 = new ColorUIResource(66, 33, 66); private final ColorUIResource primary2 = new ColorUIResource(90, 86, 99); private final ColorUIResource primary3 = new ColorUIResource(99, 99, 99); private final ColorUIResource secondary1 = new ColorUIResource(0, 0, 0); private final ColorUIResource secondary2 = new ColorUIResource(51, 51, 51); private final ColorUIResource secondary3 = new ColorUIResource(102, 102, 102); private final ColorUIResource black = new ColorUIResource(222, 222, 222); private final ColorUIResource white = new ColorUIResource(0, 0, 0); protected ColorUIResource getPrimary1() { return primary1; } protected ColorUIResource getPrimary2() { return primary2; } protected ColorUIResource getPrimary3() { return primary3; } protected ColorUIResource getSecondary1() { return secondary1; } protected ColorUIResource getSecondary2() { return secondary2; } protected ColorUIResource getSecondary3() { return secondary3; } protected ColorUIResource getBlack() { return black; } protected ColorUIResource getWhite() { return white; } }
4,224
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
EmeraldTheme.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/plaf/metal/EmeraldTheme.java
/** * @(#)EmeraldTheme.java 2020/07/08 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. * * * Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * -Redistribution of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * -Redistribution in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * Neither the name of Sun Microsystems, Inc. or the names of contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. * * This software is provided "AS IS," without a warranty of any kind. ALL * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN") * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. * * You acknowledge that this software is not designed, licensed or intended * for use in the design, construction, operation or maintenance of any * nuclear facility. */ package sw_emulator.swing.plaf.metal; import javax.swing.plaf.metal.DefaultMetalTheme; import javax.swing.plaf.ColorUIResource; /** * This class describes a theme using glowing green colors. * * @author Jeff Dinkins */ public class EmeraldTheme extends DefaultMetalTheme { public String getName() { return "Emerald"; } private final ColorUIResource primary1 = new ColorUIResource(51, 142, 71); private final ColorUIResource primary2 = new ColorUIResource(102, 193, 122); private final ColorUIResource primary3 = new ColorUIResource(153, 244, 173); protected ColorUIResource getPrimary1() { return primary1; } protected ColorUIResource getPrimary2() { return primary2; } protected ColorUIResource getPrimary3() { return primary3; } }
3,520
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
AquaTheme.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/plaf/metal/AquaTheme.java
/** * @(#)AcquaTheme.java 2020/07/08 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. * * * Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * -Redistribution of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * -Redistribution in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * Neither the name of Sun Microsystems, Inc. or the names of contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. * * This software is provided "AS IS," without a warranty of any kind. ALL * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN") * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. * * You acknowledge that this software is not designed, licensed or intended * for use in the design, construction, operation or maintenance of any * nuclear facility. */ package sw_emulator.swing.plaf.metal; import javax.swing.plaf.metal.DefaultMetalTheme; import javax.swing.plaf.ColorUIResource; /** * This class describes a theme using "blue-green" colors. * * @author Steve Wilson */ public class AquaTheme extends DefaultMetalTheme { public String getName() { return "Aqua"; } private final ColorUIResource primary1 = new ColorUIResource(102, 153, 153); private final ColorUIResource primary2 = new ColorUIResource(128, 192, 192); private final ColorUIResource primary3 = new ColorUIResource(159, 235, 235); protected ColorUIResource getPrimary1() { return primary1; } protected ColorUIResource getPrimary2() { return primary2; } protected ColorUIResource getPrimary3() { return primary3; } }
3,519
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
RubyTheme.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/plaf/metal/RubyTheme.java
/** * @(#)RubyTheme.java 2020/07/08 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. * * * Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * -Redistribution of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * -Redistribution in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * Neither the name of Sun Microsystems, Inc. or the names of contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. * * This software is provided "AS IS," without a warranty of any kind. ALL * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN") * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. * * You acknowledge that this software is not designed, licensed or intended * for use in the design, construction, operation or maintenance of any * nuclear facility. */ package sw_emulator.swing.plaf.metal; import javax.swing.plaf.metal.DefaultMetalTheme; import javax.swing.plaf.ColorUIResource; /** * This class describes a theme using red colors. * * @author Jeff Dinkins */ public class RubyTheme extends DefaultMetalTheme { public String getName() { return "Ruby"; } private final ColorUIResource primary1 = new ColorUIResource(80, 10, 22); private final ColorUIResource primary2 = new ColorUIResource(193, 10, 44); private final ColorUIResource primary3 = new ColorUIResource(244, 10, 66); protected ColorUIResource getPrimary1() { return primary1; } protected ColorUIResource getPrimary2() { return primary2; } protected ColorUIResource getPrimary3() { return primary3; } }
3,494
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
ContrastTheme.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/swing/plaf/metal/ContrastTheme.java
/** * @(#)ContrastTheme.java 2020/07/08 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. * * * Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * -Redistribution of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * -Redistribution in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * Neither the name of Sun Microsystems, Inc. or the names of contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. * * This software is provided "AS IS," without a warranty of any kind. ALL * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN") * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. * * You acknowledge that this software is not designed, licensed or intended * for use in the design, construction, operation or maintenance of any * nuclear facility. */ package sw_emulator.swing.plaf.metal; import javax.swing.plaf.metal.DefaultMetalTheme; import javax.swing.plaf.BorderUIResource; import javax.swing.plaf.ColorUIResource; import javax.swing.border.LineBorder; import javax.swing.border.CompoundBorder; import javax.swing.plaf.basic.BasicBorders; import javax.swing.border.Border; import javax.swing.UIDefaults; /** * This class describes a higher-contrast Metal Theme. * * @author Michael C. Albers */ public class ContrastTheme extends DefaultMetalTheme { public String getName() { return "Contrast"; } private final ColorUIResource primary1 = new ColorUIResource(0, 0, 0); private final ColorUIResource primary2 = new ColorUIResource(204, 204, 204); private final ColorUIResource primary3 = new ColorUIResource(255, 255, 255); private final ColorUIResource primaryHighlight = new ColorUIResource(102,102,102); private final ColorUIResource secondary2 = new ColorUIResource(204, 204, 204); private final ColorUIResource secondary3 = new ColorUIResource(255, 255, 255); private final ColorUIResource controlHighlight = new ColorUIResource(102,102,102); protected ColorUIResource getPrimary1() { return primary1; } protected ColorUIResource getPrimary2() { return primary2; } protected ColorUIResource getPrimary3() { return primary3; } public ColorUIResource getPrimaryControlHighlight() { return primaryHighlight;} protected ColorUIResource getSecondary2() { return secondary2; } protected ColorUIResource getSecondary3() { return secondary3; } public ColorUIResource getControlHighlight() { return super.getSecondary3(); } public ColorUIResource getFocusColor() { return getBlack(); } public ColorUIResource getTextHighlightColor() { return getBlack(); } public ColorUIResource getHighlightedTextColor() { return getWhite(); } public ColorUIResource getMenuSelectedBackground() { return getBlack(); } public ColorUIResource getMenuSelectedForeground() { return getWhite(); } public ColorUIResource getAcceleratorForeground() { return getBlack(); } public ColorUIResource getAcceleratorSelectedForeground() { return getWhite(); } public void addCustomEntriesToTable(UIDefaults table) { Border blackLineBorder = new BorderUIResource(new LineBorder( getBlack() )); Object textBorder = new BorderUIResource( new CompoundBorder( blackLineBorder, new BasicBorders.MarginBorder())); table.put( "ToolTip.border", blackLineBorder); table.put( "TitledBorder.border", blackLineBorder); table.put( "TextField.border", textBorder); table.put( "PasswordField.border", textBorder); table.put( "TextArea.border", textBorder); table.put( "TextPane.border", textBorder); table.put( "EditorPane.border", textBorder); } }
5,657
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Monitor2.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/util/Monitor2.java
/** * @(#)Monitor.java 1999/09/19 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.util; import java.lang.InterruptedException; /** * Implement a Monitor for sinchronizing threads * The available operation to the monitor are <code>opSignal</code> and * <code>opWait</code>. * * An internal counter is used for know when all the * given threads that use this monitor have finish to make their body. * This is needed as the caller of <code>opSignal</code> has to know * when the other has finish before going away. * * In the real system, * this is not needed as the operations terminate in the clock period * of time. <code>opNotify</code> is to use for notify the thread that * call <code>opSignal</code> that this thread will do a <code>opWait</code> * in his body. Be carefull: if one thred use <code>opNotify</code> and will * not do an <code>opWait</code>, a deadlook will occurs. * * @author Ice * @version 1.00 19/09/1999 */ public class Monitor2 extends Monitor{ /** Contains the name of the monitor (used as debug info) */ protected String name; /** The actual threads counter */ protected int counter; /** The max threads counter value to use */ protected int maxCounter=0; final Object monitorExt=new Object(); final Object monitorInt=new Object(); /** * Build a named monitor * * @param name the monitor debug name */ public Monitor2(String name) { this.name=name; } /** * Notify that this thread will do an <code>opWait</code> to this monitor */ public void opNotify() { //System.out.println("NOTIFY: "+name+" "+counter+" "+maxCounter); synchronized(monitorExt) { maxCounter++; } } /** * Subspend the thread until a <code>opSignal</code> operation is made */ public void opWait() { //System.out.println("WAIT: "+name+" "+counter+" "+maxCounter); synchronized(monitorExt) { try { if (counter>0) counter--; monitorExt.wait(); } catch (InterruptedException e) { System.err.println("Thread error for monitor "+name+": "+e); } } } /** * Resume all the thread that was subspended by <code>opWait</code> operation */ public void opSignal() { //System.out.println("SIGNAL: "+name+" "+counter+" "+maxCounter); synchronized(monitorExt) { counter=maxCounter; monitorExt.notifyAll(); } } /** * Return true if all threads have finish * * @return true if all threads have finish */ public boolean isFinish() { ///System.out.println("ISFINISH: "+name+" "+counter+" "+maxCounter); return (counter==0); } /** * Subspend the thread until a <code>opSignal</code> operation is made */ public void opWait2() { //System.out.println("WAIT: "+name+" "+counter+" "+maxCounter); synchronized(monitorInt) { try { monitorInt.wait(1); } catch (InterruptedException e) { System.err.println("Thread error for monitor "+name+": "+e); } } } /** * Resume all the thread that was subspended by <code>opWait</code> operation */ public void opSignal2() { //System.out.println("SIGNAL: "+name+" "+counter+" "+maxCounter); synchronized(monitorInt) { monitorInt.notifyAll(); } } /** * Return the name of the monitor * * @return the name of the monitor */ public String getName() { return name; } }
4,295
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Monitor.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/util/Monitor.java
/** * @(#)Monitor.java 1999/09/19 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.util; import java.util.concurrent.Phaser; /** * Implement a Monitor for sinchronizing threads * The available operation to the monitor are <code>opSignal</code> and * <code>opWait</code>. A internal counter is used for know when all the * given threads that use this monitor have finish to make their body. * This is needed as the caller of <code>opSignal</code> has to know * when the other has finish before going away. In the real system, * this is not needed as the operations terminate in the clock period * of time. <code>opNotify</code> is to use for notify the thread that * call <code>opSignal</code> that this thread will do a <code>opWait</code> * in his body. Be carefull: if one thred use <code>opNotify</code> and will * not do an <code>opWait</code>, a deadlook will occurs. * * @author Ice * @version 1.00 19/09/1999 */ public class Monitor { /** Contains the name of the monitor (used as debug info) */ protected String name; /** The actual threads counter */ protected int counter; /** The max threads counter value to use */ protected int maxCounter=0; /** Phaser for syncronization */ protected Phaser phaser=new Phaser(); /** * Build a named monitor * * @param name the monitor debug name */ public Monitor(String name) { this.name=name; phaser.register(); // regist myself } public Monitor() { phaser.register(); // regist myself } /** * Notify the this thread will do an <code>opWait</code> to this monitor */ public void opNotify() { phaser.register(); //System.out.println("NOTIFY: "+name+" "+counter+" "+maxCounter); maxCounter++; } /** * Subspend the thread until a <code>opSignal</code> operation is made */ public void opWait() { //System.out.println("WAIT: "+name+" "+counter+" "+maxCounter); /* try { if (counter>0) counter--; wait(); } catch (InterruptedException e) { System.err.println("Thread error for monitor "+name+": "+e); } */ phaser.arriveAndAwaitAdvance(); } /** * Resume all the thread that was subspended by <code>opWait</code> operation */ public void opSignal() { //System.out.println("SIGNAL: "+name+" "+counter+" "+maxCounter); counter=maxCounter; //notifyAll(); phaser.arriveAndAwaitAdvance(); } /** * Return true if all threads have finish * * @return true if all threads have finish */ public boolean isFinish() { //System.out.println("ISFINISH: "+name+" "+counter+" "+maxCounter); return (counter==0); } /** * Return the name of the monitor * * @return the name of the monitor */ public String getName() { return name; } }
3,655
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
FlipFlopClock.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/util/FlipFlopClock.java
/* * @(#)FlipFlopClock.java 2006/01/06 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA.* * */ package sw_emulator.util; /** * A Clocked FlipFlop with <code>set</code>, <code>reset</code> and <code>clock</code> * operations. * * The output state of the flip flop is taken by the input value when there is * the clock operation * * @author Ice * @version 1.00 06/01/2006 */ public class FlipFlopClock { /** * The input state for set of the flip/flop */ private boolean inStateSet=false; /** * The input state for reset of the flip/flop */ private boolean inStateReset=false; /** * The output state of the flip/flop */ private boolean outState=false; /** * Set the state of the flip/flop * * @param state true/false set state */ public void set(boolean state) { inStateSet=state; } /** * Reset the state of the flip/flop * * @param state true/false reset state */ public void reset(boolean state) { inStateReset=state; } /** * Clock operation */ public void clock() { if (!outState) outState=inStateSet; else outState=!inStateReset; } /** * Determine if the flip/flop is set * * @return true if the flip/flop is set */ public boolean isSet() { return outState; } /** * Determine if the flip/flop is reset * * @return true if the flip/flop is reset */ public boolean isReset() { return !outState; } /** * Get a 0/1 representation of the output state * * @return a integer representation of output value */ public int toInt() { if (outState) return 1; else return 0; } }
2,484
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
FlipFlop.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/util/FlipFlop.java
/** * @(#)FlipFlop.java 1999/11/17 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.util; /** * A FlipFlop with <code>set</code>, <code>reset</code> and <code>invert</code> * operations. * * @author Ice * @version 1.00 17/11/1999 */ public class FlipFlop { /** * The state of the flip/flop */ private boolean state=false; /** * Set the state of the flip/flop */ public void set() { state=true; } /** * Reset the state of the flip/flop */ public void reset() { state=false; } /** * Invert the state of the filp/flop */ public void invert() { state=!state; } /** * Determine if the flip/flop is set * * @return true if the flip/flop is set */ public boolean isSet() { return state; } /** * Determine if the flip/flop is reset * * @return true if the flip/flop is reset */ public boolean isReset() { return !state; } }
1,762
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
AndPort.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/util/AndPort.java
/** * @(#)AndPort.java 2000/01/21 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.util; import sw_emulator.hardware.signaller; /** * An And Port. * This is a part of a chip (74LS08), but for speed up porpuse it is divided * into his componenets and are thinked to use in the C64 emulator. * Due to it's simplicity, no monitor are used for activate this class like in * the other <code>Thread</code> chips. * * @author Ice * @version 1.00 21/01/2000 */ public class AndPort implements signaller { /** * The output chip connected to this port */ protected signaller output; /** * The input type signal 1 of port */ protected int sig1; /** * The input type signal 2 of port */ protected int sig2; /** * The output type signal of port */ protected int sigOut; /** * The actual value of signal type 1 */ protected int val1=1; // pulled up /** * The actual value of signal type 2 */ protected int val2=1; // pulled up /** * Construct an and port. * * @param output the output chip to give signals * @param sig1 the type of input signal 1 * @param sig2 the type of input signal 2 * @param sigOut the type of output signal */ public AndPort(signaller output, int sig1, int sig2, int sigOut) { this.output=output; this.sig1=sig1; this.sig2=sig2; this.sigOut=sigOut; } /** * Notify a signal to the chip * * @param type the type of signal * @param value the value of the signal (0/1) */ public void notifySignal(int type, int value) { if (type==sig1) { val1=value; output.notifySignal(sigOut, val1 & val2); } else { if (type==sig2) { val2=value; output.notifySignal(sigOut, val1 & val2); } else { System.err.println("ERROR: an invalid "+type+ " signal was sent to an and port"); } } } }
2,777
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
FlipFlopDelayClock.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/util/FlipFlopDelayClock.java
/* * @(#)FlipFlopDelayClock.java 2020/02/11 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA.* * */ package sw_emulator.util; /** * A Clocked Delay FlipFlop with <code>set</code>, <code>reset</code> and <code>clock</code> * operations. * * The output state of the flip flop is taken by the input value (set or reset) when there is * the clock operation * * S/R ->[ ]->out * ^ * | * Clock * * @author Ice * @version 1.00 06/01/2006 */ public class FlipFlopDelayClock { /** * The input state of the flip/flop */ private boolean inState=false; /** * The output state of the flip/flop */ private boolean outState=false; /** * Set the state of the flip/flop * * @param state set (true) or reset (false) state */ public void set(boolean state) { inState=state; } /** * Set the state of the flip/flop */ public void set() { inState=true; } /** * Reset the state of the flip/flop */ public void reset() { inState=false; } /** * Clock operation */ public void clock() { outState=inState; } /** * Determine if the flip/flop is set * * @return true if the flip/flop is set */ public boolean isSet() { return outState; } /** * Determine if the flip/flop is reset * * @return true if the flip/flop is reset */ public boolean isReset() { return !outState; } /** * Get the actual state * * @return the actual state */ public boolean getState() { return outState; } /** * Get a 0/1 representation of the output state * * @return a integer representation of output value */ public int toInt() { if (outState) return 1; else return 0; } }
2,588
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Counter.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/util/Counter.java
/* * @(#)@(#)Counter.java 2006/01/06 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA.* */ package sw_emulator.util; import sw_emulator.math.Unsigned; /** * Clocked counter with latch used by Cia * * @author Ice * @version 1.00 06/01/2006 */ public class Counter { /** Actual counter value (16 bit) */ public int counter=0; //// /** Latch value (16 bit) */ protected int latch=0xFFFF; /** Decrement state: true=timer is counting */ protected boolean decState=false; /** True if counter is lo load from latch */ protected boolean toLoad=false; /** * Set the low value of latch * * @param value the 8 bit value */ public void setLow(byte value) { int ivalue=Unsigned.done(value); latch=(latch & 0xFF00) | ivalue; } /** * Set the low value of latch * * @param value the 8 bit value */ public void setHigh(byte value) { int ivalue=Unsigned.done(value); latch=(latch & 0x00FF) | ivalue<<8; // if not decrementing, counter is loaded with latch /////// if (!decState) counter=latch; } /** * Get the low of counter * * @return the low of counter */ public int getLow() { return counter & 0x00FF; } /** * Get the high of counter * * @return the low of counter */ public int getHigh() { return (counter & 0xFF00)>>8; } /** * Execute operations during a clock of counter */ public void clock() { if (decState) { counter--; if (counter<0) counter=0xFFFF; /// ? } if (toLoad) { counter=latch; toLoad=false; } } /** * Return if counter is 0 * * @return true id counter is 0 */ public boolean isZero() { return counter==0; } /** * Set to load counter from latch */ public void load() { toLoad=true; } /** * Set to load counter from latch * * @param status true/false for load from latch */ public void load(boolean status) { toLoad=status; } /** * Set the state of decrement * * @param state the state to use for decrement */ public void setDec(boolean state) { decState=state; } }
3,009
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Monitor1.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/util/Monitor1.java
/** * @(#)Monitor.java 1999/09/19 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.util; import java.lang.InterruptedException; import java.util.concurrent.Phaser; /** * Implement a Monitor for sinchronizing threads * The available operation to the monitor are <code>opSignal</code> and * <code>opWait</code>. A internal counter is used for know when all the * given threads that use this monitor have finish to make their body. * This is needed as the caller of <code>opSignal</code> has to know * when the other has finish before going away. In the real system, * this is not needed as the operations terminate in the clock period * of time. <code>opNotify</code> is to use for notify the thread that * call <code>opSignal</code> that this thread will do a <code>opWait</code> * in his body. Be carefull: if one thred use <code>opNotify</code> and will * not do an <code>opWait</code>, a deadlook will occurs. * * @author Ice * @version 1.00 19/09/1999 */ public class Monitor1 { /** Contains the name of the monitor (used as debug info) */ protected String name; /** The actual threads counter */ protected int counter; /** The max threads counter value to use */ protected int maxCounter=0; /** * Build a named monitor * * @param name the monitor debug name */ public Monitor1(String name) { this.name=name; } public Monitor1() { } /** * Notify the this thread will do an <code>opWait</code> to this monitor */ public synchronized void opNotify() { //System.out.println("NOTIFY: "+name+" "+counter+" "+maxCounter); maxCounter++; } /** * Subspend the thread until a <code>opSignal</code> operation is made */ public synchronized void opWait() { //System.out.println("WAIT: "+name+" "+counter+" "+maxCounter); try { if (counter>0) counter--; wait(); } catch (InterruptedException e) { System.err.println("Thread error for monitor "+name+": "+e); } } /** * Resume all the thread that was subspended by <code>opWait</code> operation */ public synchronized void opSignal() { //System.out.println("SIGNAL: "+name+" "+counter+" "+maxCounter); counter=maxCounter; notifyAll(); } /** * Return true if all threads have finish * * @return true if all threads have finish */ public synchronized boolean isFinish() { //System.out.println("ISFINISH: "+name+" "+counter+" "+maxCounter); return (counter==0); } /** * Return the name of the monitor * * @return the name of the monitor */ public String getName() { return name; } }
3,492
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
WireAnd.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/util/WireAnd.java
/** * @(#)WireAnd.java 2000/02/15 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.util; /** * Emulate a wire and of 2 line. * This class use two input lines and a output line of the wire and. * A 0 value means GROUND signal, a 1 value means no signal, but it can be used * as 1 signal in some MOS chips. * * @author Ice * @version 1.00 15/02/2000 */ public class WireAnd { /** * First line of the wire */ private int in1=1; /** * Second line of the wire */ private int in2=1; /** * The output of the wire and */ public int out=1; /** * Set or unset the line 1 using passed value * * @param val the 0/1 value */ public void line1(int val) { if (val==0) setLine1(); else unsetLine1(); } /** * Set the line 1 to GROUND */ public void setLine1() { in1=0; out=0; } /** * Unset the line 1 from GROUND */ public void unsetLine1() { in1=1; out=in2; } /** * Set or unset the line 2 using passed value * * @param val the 0/1 value */ public void line2(int val) { if (val==0) setLine2(); else unsetLine2(); } /** * Set the line 2 to GROUND */ public void setLine2() { in2=0; out=0; } /** * Unset the line 2 from GROUND */ public void unsetLine2() { in2=1; out=in1; } }
2,170
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
signaller.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/signaller.java
/** * @(#)signaller.java 1999/12/07 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware; /** * The interface <code>signaller</code> represents an electronical component * that can receive external signals. * The methods <code>notifySignal</code> is to be used for giving a signal to * the chip. * Many type of signals are provided with specific value: this are intended to * be standard for chips that implements <code>signaller</code> even if you can * use the codify you need. * * @author Ice * @version 1.00 07/12/1999 */ public interface signaller { // external signals that cpu can receive public static final int S_RESET = 1; // Reset signal public static final int S_IRQ = 2; // Irq signal public static final int S_NMI = 3; // Nmi signal public static final int S_RDY = 4; // RDY (ready) public static final int S_AEC = 5; // AEC (tri-states) public static final int S_BA = 6; // BA public static final int S_SP = 7; // SP signal public static final int S_CNT = 8; // CNT signal public static final int S_TOD = 9; // TOD signal public static final int S_FLAG = 10; // FLAG signal public static final int S_LORAM = 11; // LORAM signal public static final int S_HIRAM = 12; // HIRAM signal public static final int S_CHAREN = 13; // CHAREN signal public static final int S_VA14 = 14; // VA14 signal public static final int S_VA15 = 15; // VA15 signal public static final int S_GAME = 16; // GAME signal public static final int S_EXROM = 17; // EXROM signal public static final int S_DMA = 18; // DMA signal /** * Notify a signal to the chip * * @param type the type of signal * @param value the value of the signal (0/1) */ public void notifySignal(int type, int value); }
2,673
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Clock.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/Clock.java
/** * @(#)Clock.java 1999/09/19 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware; import sw_emulator.util.Monitor; /** * Creates a clock circuits. * The clock period is at 8Mhz, and the clock can be not in real-time but * slow or accelerate. * The thread that wants to be clocked, must use the monitor of this class. * * @author Ice * @version 1.00 19/09/1999 */ public class Clock extends Thread { /** The monitor used to synchronized at 8Mhz */ public Monitor monitor=new Monitor("Clock at 8Mhz"); public static final int PAL=1; public static final int NTSC=2; /** The type of clock (for PAL or NTSC) */ private int type=PAL; /** Coefficient for real time */ private double realTime=1; /** True if clock is started */ private boolean started=false; /** Cycle before calling a tod */ private int cycleTod=0; /** devices that can receive TOD signal */ private signaller[] devices=null; /** * Create a clock of 8Mhz for PAL or NTSC * * @param type the type (PAL or NTSC) */ public Clock(int type) { setType(type); setPriority(MIN_PRIORITY); setName("CLOCK"); // new name for this thread start(); } /** * Set the actual type of clock (default is PAL) * * @param type the type to set */ public void setType(int type) { if ((type==PAL) || (type==NTSC)) this.type=type; else this.type=PAL; } /** * Select the real time of the clock. * A 1 means real time, <1 means accelerate time, >1 means slow time * * @param realTime the coefficient for real time */ public void setRealTime(double realTime) { if (realTime<0) this.realTime=1; else this.realTime=realTime; } /** * Register external devices that can receive TOD signal * * @param devices the device to add */ public void registerTod(signaller[] devices) { this.devices=devices; } /** * Starts the clock tick emulation */ public synchronized void startClock() { started=true; } /** * Stops the clock tick emulation */ public synchronized void stopClock() { started=false; } /** * Notify a clock tick in the monitor */ public void run() { ///long start=0; while (true) { while (started==false) { // attend a start command this.yield(); } //if (type==NTSC) wait((int)(12*realTime), (int)(222*realTime)); //else wait((int)(12*realTime), (int)(690*realTime)); // attend that the connected circuits have finish // while (!monitor.isFinish()) { // yield(); // //monitor.opWait2(); // } monitor.opSignal(); // test for generating a tod high signal if (--cycleTod<=0) { cycleTod=160000; /// to fix for pal/ntsc if (devices!=null) { for (int i=0; i<devices.length; i++) { devices[i].notifySignal(signaller.S_TOD, 1); // 0 to 1 } } /// start = System.nanoTime(); } // test for generating a tod low signal if (cycleTod==80000) { /// to fix for pal/ntsc if (devices!=null) { for (int i=0; i<devices.length; i++) { devices[i].notifySignal(signaller.S_TOD, 0); // 1 to 0 } } /// long finish = System.nanoTime(); /// long timeElapsed = finish - start; /// System.err.println(timeElapsed/1000000); } } } }
4,366
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
powered.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/powered.java
/** * @(#)powered.java 1999/10/02 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware; /** * The interface <code>powered</code> represents an electronical component that * can be powerd on and off. * The methods <code>powerOn</code> and <code>powerOff</code> are to be used * for giving on/off power to the component. * * @author Ice * @version 1.00 02/10/1999 */ public interface powered { /** * Power on the electronic component */ public void powerOn(); /** * Power off the electronic component */ public void powerOff(); }
1,396
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
C64Cia2IO.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/io/C64Cia2IO.java
/** * @(#)C64Cia2IO.java 2000/08/05 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.io; import sw_emulator.util.Monitor; import sw_emulator.util.WireAnd; import sw_emulator.hardware.cpu.M6510; import sw_emulator.hardware.cartridge.Cartridge; import sw_emulator.hardware.chip.PLA82S100; /** * Emulate the Cia 2 I/O in the C64. * * @author Ice * @version 1.00 05/08/2000 */ public class C64Cia2IO extends M6526IO { /** C64 cpu */ private M6510 cpu; /** C64 cartridge expansion port */ private Cartridge exp; /** C64 pla unit */ private PLA82S100 pla; /** * Remember the connected clocked chips * * @param cpu the C64 cpu * @param exp the C64 cartridge expansion port * @param pla the C64 pla unit */ public C64Cia2IO(M6510 cpu, Cartridge exp, PLA82S100 pla) { this.cpu=cpu; this.exp=exp; this.pla=pla; } /** * This method is provide to advice the connected chip to an output port that * the value is changed. The <code>value</code> variable contain the bit of * port that has changed the value. You should use a <code>Monitor</code> to * notify that a port value has change the value using an * <code>opSignal</code>, while the chip that attend output changes, must use * a <code>opWait</code> operation. If some bits are used by clocked signals, * then you must call <code>notifySignal</code> for this chips. * * @param type the type of I/O that <code>advice</code> is for. * @param value the bits of port that have changes their value */ @Override public void advice(int type, int value) { if (type==T_PORTA) { /*if ((value & 0x03)!=0) { if ((value & 0x01)!=0)*/ pla.notifySignal(S_VA14, portA.getP0()); /* if ((value & 0x02)!=0)*/ pla.notifySignal(S_VA15, portA.getP1()); pla.monitor.opSignal(); // resume the pla for managing the changes //} if ((value & 0x04)!=0) ; if ((value & 0x08)!=0) ; if ((value & 0x10)!=0) ; if ((value & 0x20)!=0) ; if ((value & 0x40)!=0) ; if ((value & 0x80)!=0) ; } } /** * Notify a signal to the chip * * @param type the type of signal * @param value the value of the signal (0/1) */ @Override public void notifySignal(int type, int value) { switch (type) { case S_IRQ: // notify IRQ signal cpu.notifySignal(S_NMI, value); // as NMI to Cpu exp.notifySignal(S_NMI, value); // as NMI to Cartridge break; } } }
3,396
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
C64CartridgeIO.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/io/C64CartridgeIO.java
/** * @(#)C64CartridgeIO.java 2000/01/19 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.io; import sw_emulator.hardware.signaller; import sw_emulator.hardware.cpu.M6510; import sw_emulator.hardware.chip.PLA82S100; import sw_emulator.util.AndPort; /** * The cartridge io in the C64. * The signals generated by the cartridge are passed to the internal chip of the * C64. * The signals that are passed to internal C64 chips are: * <ul> * <li>GAME </li> * <li>EXROM </li> * <li>NMI </li> * <li>IRQ </li> * <li>DMA </li> * </ul> * * Note that the DMA signal is send to two AND port: one for generating the CAEC * cpu signal (with AEC from VIC), the second for generating RDY cpu signal * (with BA from VIC). * * @author Ice * @version 1.00 19/01/2000 */ public class C64CartridgeIO extends CartridgeIO { /** * The 6510 cpu in the C64 */ protected M6510 cpu; /** * The PLA chip in the C64 */ protected PLA82S100 pla; /** * The and port 6 of 74LS08 in the C64 */ protected AndPort and6; /** * The and port 3 of 74LS08 in the C64 */ protected AndPort and3; /** * Construct the connection in the C64 needed by the Cartridge io signals. * * @param cpu the 6510 cpu * @param pla the PLA C64 chip * @param and6 the and port 6 of 74LS08 in the C64 * @param and3 the and port 3 of 74LS08 in the C64 */ public C64CartridgeIO(M6510 cpu, PLA82S100 pla, AndPort and6, AndPort and3) { this.cpu=cpu; this.pla=pla; this.and6=and6; this.and3=and3; } /** * Notify a signal to the chip * The signals that are passed to internal C64 chips are: * <ul> * <li>GAME </li> * <li>EXROM </li> * <li>NMI </li> * <li>IRQ </li> * <li>DMA </li> * </ul> * * This signals management are right for the point of internal chip view, * so, for example, if your cartridge use it's IRQ signal for NMI in the C64, * and NMI for IRQ, you must changes this default assignement, or the best * solution is to send IRQ for NMI and NMI for IRQ in your cartridge * implementation * * @param type the type of signal * @param value the value of the signal (0/1) */ public void notifySignal(int type, int value) { switch (type) { case S_GAME: case S_EXROM: pla.notifySignal(type, value); // send signal to PLA pla.monitor.opSignal(); // resume PLA thread break; case S_NMI: cpu.notifySignal(type, value); // send NMI to cpu break; case S_IRQ: cpu.notifySignal(type, value); // semd IRQ to cpu break; case S_DMA: and6.notifySignal(type, value); // send DMA to and port 6 and3.notifySignal(type, value); // send DMA to and port 3 //and6.monitor.opSignal(); // resume and port 6 //and3.monitor.opSignal(); // resume and port 3 break; default: System.err.println("ERROR: an invalid "+type+ " signal was sent by Cartridge to internal chip"); } } }
4,029
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
IO8.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/io/IO8.java
/** * @(#)IO8.java 1999/10/24 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.io; /** * This class manage a 8 bits bidirectional I/O port. * See <code>IO6</code> for the details * * @see IO6 * @author Ice * @version 1.01 27/05/2000 */ public class IO8 extends IO6{ /** Default output value of port 6 if it is set to input */ public int defaultP6=1; /** Default output value of port 7 if it is set to input */ public int defaultP7=1; /** True if the bit of port 6 is open */ public boolean isOpenP6=false; /** True if the bit of port 7 is open */ public boolean isOpenP7=false; /** * Set the value of input port 6 * The value is store in input buffer * * @param bit the bit value of input port */ public void setP6(int bit) { if (bit==0) portDataIn&=~0x40; else portDataIn|=0x40; } /** * Set the value of input port 7 * The value is store in input buffer * * @param bit the bit value of input port */ public void setP7(int bit) { if (bit==0) portDataIn&=~0x80; else portDataIn|=0x80; } /** * Get the value of output port 6 * If the port if not of output we return a default value * * @return the 0/1 bit value */ public int getP6() { if ((portDir & 0x40)!=0) // output port ? return (portDataOut & 0x40)>>6; else return defaultP6; } /** * Get the value of output port 7 * If the port if not of output we return a default value * * @return the 0/1 bit value */ public int getP7() { if ((portDir & 0x80)!=0) // output port ? return (portDataOut & 0x80)>>7; else return defaultP7; } /** * Set the value of output port 6 (by internal operation) * If the value is different from the precedent, we remember this occurence. * * @param value the value to give to bit (it is just correctly shifted) */ protected void setP6_(int value) { if ((portDir & 0x40)!=0) { // output port ? if (((portDataOut & 0x40)^value)!=0) remember|=0x40; } if (value!=0) portDataOut|=value; else portDataOut&=~0x40; } /** * Set the value of output port 7 (by internal operation) * If the value is different from the precedent, we remember this occurence. * * @param value the value to give to bit (it is just correctly shifted) */ protected void setP7_(int value) { if ((portDir & 0x80)!=0) { // output port ? if (((portDataOut & 0x80)^value)!=0) remember|=0x80; } if (value!=0) portDataOut|=value; else portDataOut&=~0x80; } /** * Get the value of input port 6 (by internal operation) * * @return the 0/1 bit correctly shifted */ protected int getP6_() { if ((portDir & 0x40)==0) // port of input ? return (portDataIn & (defaultP6<<6) & 0x40); else return (portDataIn & portDataOut & 0x40); } /** * Get the value of input port 7 (by internal operation) * * @return the 0/1 bit correctly shifted */ protected int getP7_() { if ((portDir & 0x80)==0) // port of input ? return (portDataIn & (defaultP7<<7) & 0x80); else return (portDataIn & portDataOut & 0x80); } }
4,022
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
IO6.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/io/IO6.java
/** * @(#)IO6.java 1999/10/24 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.io; /** * This class manage a 6 bits bidirectional I/O port. * For each port there's two methods for set or get the value of port: * <code>setPx</code> and <code>getPx</code>. These methods provide also a * system for having default ouput where a port is defined for input, but the * output line is also connected to pull-up or pull-down resistors. So a class * that use it, may define the variables <code>defaultPx</code> to be of value 0 * or 1. * The <code>setPx_</code> and <code>getPx_</code> methods are to be used by the * chip that have the I/O port, unlike the other are to be used for external * chips that are connected to the ports. * Note that these methods are visible only for class in this package. * * Even if the port are bits oriented, this class is thinked for giving support * of packed bits: <code>portDir</code> and <code>portData</code> are provided * for memorize the bits in two registers. * Also the <code>remember</code> variables is used to remember that a output * port is changed, so connected chips may be advised. * * In more details, an I/O bit port is like this: * <pre> * Dir pull-up * | | * Write Line ----- DataOut bit buffer ----- | * | ___ | | * | Dir |----------output/input line * | | | * Read Line ----- DataIn bit buffer ----- * * * * </pre> * So, this table showes what is reading/writing from internal chip side (left * in draw) and from external chip side: * * <pre> * Dir=output * internal write x: DataOut bit buffer=x * external: read the x stored in DataOut bit buffer * * external write y: DataIn bit buffer=y (this is for remember) * internal: read the (DataIn & DataOut) value * * Dir=input * external write y: DataIn bit buffer=y * internal: read the y stored in DataIn buffer * * internal write x: DataIn bit buffer=x * external: read the pull-up value (not x) * </pre> * * Note. A bit can be non connected, so in this case there is a fall back time * as internal capacitors store a 1 value that than goes to 0 in that time. * * @author Ice * @version 1.01 27/05/2000 */ public class IO6 { /** I/O Port direction register: 0=input, 1=output */ public int portDir; /** I/O Port data register for output */ public int portDataOut; /* I/O Port data register for input */ public int portDataIn=0xff; /** Clock fall back time for capacitors of open ports */ public int fallBackTime=0; /* A 1 bit indicated that a output port have change it's value */ public int remember=0; /** Default output value of port 0 if it is set to input */ public int defaultP0=1; /** Default output value of port 1 if it is set to input */ public int defaultP1=1; /** Default output value of port 2 if it is set to input */ public int defaultP2=1; /** Default output value of port 3 if it is set to input */ public int defaultP3=1; /** Default output value of port 4 if it is set to input */ public int defaultP4=1; /** Default output value of port 5 if it is set to input */ public int defaultP5=0; /** True if the bit of port 0 is open */ public boolean isOpenP0=false; /** True if the bit of port 1 is open */ public boolean isOpenP1=false; /** True if the bit of port 2 is open */ public boolean isOpenP2=false; /** True if the bit of port 3 is open */ public boolean isOpenP3=false; /** True if the bit of port 4 is open */ public boolean isOpenP4=false; /** True if the bit of port 5 is open */ public boolean isOpenP5=false; /** * Set the value of input port 0 * The value is store in input buffer * * @param bit the bit value of input port */ public void setP0(int bit) { if (bit==0) portDataIn&=~0x01; else portDataIn|=0x01; } /** * Set the value of input port 1 * The value is store in input buffer * * @param bit the bit value of input port */ public void setP1(int bit) { if (bit==0) portDataIn&=~0x02; else portDataIn|=0x02; } /** * Set the value of input port 2 * The value is store in input buffer * * @param bit the bit value of input port */ public void setP2(int bit) { if (bit==0) portDataIn&=~0x04; else portDataIn|=0x04; } /** * Set the value of input port 3 * The value is store in input buffer * * @param bit the bit value of input port */ public void setP3(int bit) { if (bit==0) portDataIn&=~0x08; else portDataIn|=0x08; } /** * Set the value of input port 4 * The value is store in input buffer * * @param bit the bit value of input port */ public void setP4(int bit) { if (bit==0) portDataIn&=~0x10; else portDataIn|=0x10; } /** * Set the value of input port 5 * The value is store in input buffer * * @param bit the bit value of input port */ public void setP5(int bit) { if (bit==0) portDataIn&=~0x20; else portDataIn|=0x20; } /** * Get the value of output port 0 * If the port if not of output we return a default value * * @return the 0/1 bit value */ public int getP0() { if ((portDir & 0x01)!=0) // output port ? return (portDataOut & 0x01); else return defaultP0; } /** * Get the value of output port 1 * If the port if not of output we return a default value * * @return the 0/1 bit value */ public int getP1() { if ((portDir & 0x02)!=0) // output port ? return (portDataOut & 0x02)>>1; else return defaultP1; } /** * Get the value of output port 2 * If the port if not of output we return a default value * * @return the 0/1 bit value */ public int getP2() { if ((portDir & 0x04)!=0) // output port ? return (portDataOut & 0x04)>>2; else return defaultP2; } /** * Get the value of output port 3 * If the port if not of output we return a default value * * @return the 0/1 bit value */ public int getP3() { if ((portDir & 0x08)!=0) // output port ? return (portDataOut & 0x08)>>3; else return defaultP3; } /** * Get the value of output port 4 * If the port if not of output we return a default value * * @return the 0/1 bit value */ public int getP4() { if ((portDir & 0x10)!=0) // output port ? return (portDataOut & 0x10)>>4; else return defaultP4; } /** * Get the value of output port 5 * If the port if not of output we return a default value * * @return the 0/1 bit value */ public int getP5() { if ((portDir & 0x20)!=0) // output port ? return (portDataOut & 0x20)>>5; else return defaultP5; } /** * Set the value of output port 0 (by internal operation) * If the value is different from the precedent, we remember this occurence. * * @param value the value to give to bit (it is just correctly shifted) */ protected void setP0_(int value) { if ((portDir & 0x01)!=0) { // output port ? if (((portDataOut & 0x01)^value)!=0) remember|=0x01; } if (value!=0) portDataOut|=value; else portDataOut&=~0x01; } /** * Set the value of output port 1 (by internal operation) * If the value is different from the precedent, we remember this occurence. * * @param value the value to give to bit (it is just correctly shifted) */ protected void setP1_(int value) { if ((portDir & 0x02)!=0) { // output port ? if (((portDataOut & 0x02)^value)!=0) remember|=0x02; } if (value!=0) portDataOut|=value; else portDataOut&=~0x02; } /** * Set the value of output port 2 (by internal operation) * If the value is different from the precedent, we remember this occurence. * * @param value the value to give to bit (it is just correctly shifted) */ protected void setP2_(int value) { if ((portDir & 0x04)!=0) { // output port ? if (((portDataOut & 0x04)^value)!=0) remember|=0x04; } if (value!=0) portDataOut|=value; else portDataOut&=~0x04; } /** * Set the value of output port 3 (by internal operation) * If the value is different from the precedent, we remember this occurence. * * @param value the value to give to bit (it is just correctly shifted) */ protected void setP3_(int value) { if ((portDir & 0x08)!=0) { // output port ? if (((portDataOut & 0x08)^value)!=0) remember|=0x08; } if (value!=0) portDataOut|=value; else portDataOut&=~0x08; } /** * Set the value of output port 4 (by internal operation) * If the value is different from the precedent, we remember this occurence. * * @param value the value to give to bit (it is just correctly shifted) */ protected void setP4_(int value) { if ((portDir & 0x10)!=0) { // output port ? if (((portDataOut & 0x10)^value)!=0) remember|=0x10; } if (value!=0) portDataOut|=value; else portDataOut&=~0x10; } /** * Set the value of output port 5 (by internal operation) * If the value is different from the precedent, we remember this occurence. * * @param value the value to give to bit (it is just correctly shifted) */ protected void setP5_(int value) { if ((portDir & 0x20)!=0) { // output port ? if (((portDataOut & 0x20)^value)!=0) remember|=0x20; } if (value!=0) portDataOut|=value; else portDataOut&=~0x20; } /** * Get the value of input port 0 (by internal operation) * * @return the 0/1 bit correctly shifted */ protected int getP0_() { if ((portDir & 0x01)==0) // port of input ? return (portDataIn & defaultP0 & 0x01); else return (portDataIn & portDataOut & 0x01); } /** * Get the value of input port 1 (by internal operation) * * @return the 0/1 bit correctly shifted */ protected int getP1_() { if ((portDir & 0x02)==0) // port of input ? return (portDataIn & (defaultP1<<1) & 0x02); else return (portDataIn & portDataOut & 0x02); } /** * Get the value of input port 2 (by internal operation) * * @return the 0/1 bit correctly shifted */ protected int getP2_() { if ((portDir & 0x04)==0) // port of input ? return (portDataIn & (defaultP2<<2) & 0x04); else return (portDataIn & portDataOut & 0x04); } /** * Get the value of input port 3 (by internal operation) * * @return the 0/1 bit correctly shifted */ protected int getP3_() { if ((portDir & 0x08)==0) // port of input ? return (portDataIn & (defaultP3<<3) & 0x08); else return (portDataIn & portDataOut & 0x08); } /** * Get the value of input port 4 (by internal operation) * * @return the 0/1 bit correctly shifted */ protected int getP4_() { if ((portDir & 0x10)==0) // port of input ? return (portDataIn & (defaultP4<<4) & 0x10); else return (portDataIn & portDataOut & 0x10); } /** * Get the value of input port 5 (by internal operation) * * @return the 0/1 bit correctly shifted */ protected int getP5_() { if ((portDir & 0x20)==0) // port of input ? return (portDataIn & (defaultP5<<5) & 0x20); else return (portDataIn & portDataOut & 0x20); } }
12,471
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
VicII_IO.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/io/VicII_IO.java
/** * @(#)VicII_IO.java 1999/12/29 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.io; import sw_emulator.hardware.signaller; /** * Emulate the IO of the VIC II chip * The methods <code>notifySignal</code> may be implementded for give the right * connection of the signal being changed in the machine where the Vic is used. * So this class is perfectly abstract. * * @author Ice * @version 1.00 29/12/1999 */ public abstract class VicII_IO implements signaller { }
1,318
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
C64M6510IO.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/io/C64M6510IO.java
/** * @(#)C64M6510IO.java 1999/10/15 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.io; import sw_emulator.hardware.chip.PLA82S100; import sw_emulator.hardware.signaller; /** * Manage the I/O of M6510 cpu in a C64 computer. * It has port 0,1,2,3,5 for output and 4 for input. * * @author Ice * @version 1.00 15/10/1999 */ public class C64M6510IO extends M6510IO { /** * The PLA82S100 chip for notify the bits 0, 1, and 2 changes (MMU) */ public PLA82S100 pla; /** * See the output port that has change their values and notify the news to * the appropriate chip. * * @param value the bits of port that have changes their value */ public void advice(int value) { if ((value & 0x07)!=0) { // are some MMU signal changed ? if ((value & 0x01)!=0) pla.notifySignal(signaller.S_LORAM, port.getP0()); if ((value & 0x02)!=0) pla.notifySignal(signaller.S_HIRAM, port.getP1()); if ((value & 0x04)!=0) pla.notifySignal(signaller.S_CHAREN, port.getP2()); pla.monitor.opSignal(); // resume the pla for managing the changes } } /** * Construct the C64 M6510 I/O. Some output signals are default to up logical * value. * * @param pla the PLA82S100 chip in the Commodore 64 */ public C64M6510IO(PLA82S100 pla) { this.pla=pla; port.defaultP0=1; port.defaultP1=1; port.defaultP2=1; port.defaultP4=1; port.fallBackTime=350000; // 350 msec. port.isOpenP6=true; port.isOpenP7=true; } }
2,376
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Joystick.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/io/Joystick.java
/** * @(#)Joystick.java 2000/02/15 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.io; /** * Define a digital Joystick operation * * @author Ice * @version 1.00 15/02/2000 */ public abstract class Joystick { /** * Set Joystick direction 0 */ public abstract void setJoy0(); /** * Set Joystick direction 1 */ public abstract void setJoy1(); /** * Set Joystick direction 2 */ public abstract void setJoy2(); /** * Set Joystick direction 3 */ public abstract void setJoy3(); /** * Set Joystick button */ public abstract void setJoyBut(); /** * Reset Joystick direction 0 */ public abstract void resetJoy0(); /** * Reset Joystick direction 1 */ public abstract void resetJoy1(); /** * Reset Joystick direction 2 */ public abstract void resetJoy2(); /** * Reset Joystick direction 3 */ public abstract void resetJoy3(); /** * Reset Joystick button */ public abstract void resetJoyBut(); }
1,842
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
M6526IO.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/io/M6526IO.java
/** * @(#)M6526IO.java 1999/10/24 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.io; import sw_emulator.hardware.io.IO8; import sw_emulator.hardware.signaller; /** * This class manage the two 8 bidirectional I/O ports of the M6526 cia, at * register data view and all the output signals. * * The <code>readFromPort</code> and <code>writeToPort</code> are provided for * the cia read and write operations. * The external chip may read (write) the output (input) port bits by using the * apposite methods of <code>port</code> variable of <code>IO8</code> class. * * The <code>advice</code> method is to be used for notify output signal * changes to not clocked chips, while <code>notifySignal</code> may be used for * clocked chips. * * @see sw_emulator.hardware.io.IO8 * * @author Ice * @version 1.00 24/10/1999 */ public abstract class M6526IO implements signaller { // type of I/O that advice for public static final int T_PORTA=0; // port A public static final int T_PORTB=1; // port B /** * The A bidirectional I/O port of 8 bits */ public IO8 portA=new IO8(); /** * The B bidirectional I/O port of 8 bits */ public IO8 portB=new IO8(); /** * Read the direction/value of I/O port * * @param addr the 0/1 address * @return the readed byte */ public int readFromPort(int addr) { switch (addr) { case 0x00: return portA.getP0_()| portA.getP1_()| portA.getP2_()| portA.getP3_()| portA.getP4_()| portA.getP5_()| portA.getP6_()| portA.getP7_(); case 0x01: return portB.getP0_()| portB.getP1_()| portB.getP2_()| portB.getP3_()| portB.getP4_()| portB.getP5_()| portB.getP6_()| portB.getP7_(); case 0x02: return portA.portDir; case 0x03: return portB.portDir; } return 0; } /** * Write the direction/value of I/O port * * @param addr the 0/1 address * @param value the value to write */ public void writeToPort(int addr, int value) { switch (addr) { case 0x00: portA.remember=0; portA.setP0_(value & 0x01); portA.setP1_(value & 0x02); portA.setP2_(value & 0x04); portA.setP3_(value & 0x08); portA.setP4_(value & 0x10); portA.setP5_(value & 0x20); if (portA.remember!=0) advice(T_PORTA, portA.remember); // advice chip connected to output port break; case 0x01: portB.remember=0; portB.setP0_(value & 0x01); portB.setP1_(value & 0x02); portB.setP2_(value & 0x04); portB.setP3_(value & 0x08); portB.setP4_(value & 0x10); portB.setP5_(value & 0x20); if (portB.remember!=0) advice(T_PORTB, portB.remember); // advice chip connected to output port break; case 0x02: // write port A bits direction portA.portDir=value & 0xFF; advice(T_PORTA, 0x3F); // advice for all (this is most general!) break; case 0x03: // write port B bits direction portB.portDir=value & 0xFF; advice(T_PORTB, 0x3F); // advice for all (this is most general!) break; } } /** * This method is provide to advice the connected chip to an output port that * the value is changed. The <code>value</code> variable contain the bit of * port that has changed the value. You should use a <code>Monitor</code> to * notify that a port value has change the value using an * <code>opSignal</code>, while the chip that attend output changes, must use * a <code>opWait</code> operation. If some bits are used by clocked signals, * then you must call <code>notifySignal</code> for this chips. * * @param type the type of I/O that <code>advice</code> is for. * @param value the bits of port that have changes their value */ public abstract void advice(int type, int value); }
4,964
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
C64VicII_IO.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/io/C64VicII_IO.java
/** * @(#)C64VicII_IO.java 1999/12/29 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.io; import sw_emulator.util.AndPort; import sw_emulator.hardware.cpu.M6510; import sw_emulator.hardware.cartridge.Cartridge; /** * Emulate the IO of the VIC II chip in the C64 * The methods <code>notifySignal</code> notify the Vic signals to the right * chips like in the C64. * In this case the chips that receive Vic signals are cpu and cartridge, but * for cpu there's AEC and BA signals that pass throw logical and with DMA * signal from cartridge. * * @author Ice * @version 1.00 29/12/1999 */ public class C64VicII_IO extends VicII_IO { /** * The cpu view by the Vic in the C64 */ protected M6510 cpu; /** * The cartridge port view by Vic in the C64 */ protected Cartridge exp; /** * The 74LS08 And port pin output 6 */ protected AndPort and6; /** * The 74LS08 And port pin output 3 */ protected AndPort and3; /** * Memorize VIC IO chips connection in the C64 * * @param cpu the cpu view by Vic in the C64 * @param exp the cartridge view by Vic in the C64 * @param and6 the 74LS08 And port 6 * @param and3 the 74LS08 And port 3 */ public C64VicII_IO(M6510 cpu, Cartridge exp, AndPort and6, AndPort and3) { this.cpu=cpu; this.exp=exp; this.and6=and6; this.and3=and3; } /** * Notify a signal to the chips like in the C64 * The signals used are: * <ul> * <li>IRQ </li> * <li>AEC </li> * <li>BA </li> * </ul> * * @param type the type of signal * @param value the value of the signal (0/1) */ public void notifySignal(int type, int value) { switch (type) { case S_IRQ: cpu.notifySignal(type, value); // notify to cpu exp.notifySignal(type, value); // notify to exp break; case S_AEC: and6.notifySignal(type, value); // notify indirectly to cpu exp.notifySignal(type, value); // notify to exp break; case S_BA: and3.notifySignal(type, value); // notify indirectly to cpu exp.notifySignal(type, value); // notify to expansion break; default: System.err.println("ERROR: an invalid "+type+ " signal was sent by VicII to external chips"); } } }
3,240
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
CartridgeIO.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/io/CartridgeIO.java
/** * @(#)CartridgeIO.java 2000/01/18 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.io; import sw_emulator.hardware.signaller; /** * A base cartridge io that do nothing. * This may be implemented with the connections that are present in the machine * that use cartridge. * * @author Ice * @version 1.00 18/01/2000 */ public abstract class CartridgeIO implements signaller { // absolute abstract }
1,253
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
M6510IO.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/io/M6510IO.java
/** * @(#)M6510IO.java 1999/10/14 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.io; import sw_emulator.hardware.io.IO8; /** * This class manage the 8 bidirectional I/O ports of the M6510 cpu, at register * data view. * * The <code>readFromPort</code> and <code>writeToPort</code> are provided for * the processor read and write operation. * The external chip may read (write) the output (input) port bits by using the * apposite methods of <code>port</code> variable of <code>IO6</code> class. * * @see sw_emulator.hardware.io.IO8 * * @author Ice * @version 1.00 14/10/1999 */ public class M6510IO { /** * The bidirectional I/O port of 8 bits */ public IO8 port=new IO8(); /** * Read the direction/value of I/O port * * @param addr the 0/1 address * @param clock the actual clock timing * @return the readed byte */ public int readFromPort(int addr, long clock) { if (addr==0) { return port.portDir; } else { return port.getP0_()| port.getP1_()| port.getP2_()| port.getP3_()| port.getP4_()| port.getP5_()| port.getP6_()| port.getP7_(); } } /** * Write the direction/value of I/O port * * @param addr the 0/1 address * @param value the value to write * @param clock the actual clock timing */ public void writeToPort(int addr, int value, long clock) { if (addr==0) { // write port bits direction port.portDir=value; advice(0xFF); // advice for all (this is most general!) } else { // write port bits output value port.remember=0; port.setP0_(value & 0x01); port.setP1_(value & 0x02); port.setP2_(value & 0x04); port.setP3_(value & 0x08); port.setP4_(value & 0x10); port.setP5_(value & 0x20); port.setP6_(value & 0x40); port.setP7_(value & 0x80); if (port.remember!=0) advice(port.remember); // advice chip connected to output port } } /** * This method is provide to advice the connected chip to an output port that * the value is changed. The <code>value</code> variable contain the bit of * port that have changed the value. You should use a <code>Monitor</code> to * notify that a port value have change the value using an * <code>opSignal</code>, while the chip that attend output changes, must use * a <code>opWait</code> operation. * * @param value the bits of port that have changes their value */ public void advice(int value) { // we do nothing (suppose output port not used) } }
3,543
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
C64Cia1IO.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/io/C64Cia1IO.java
/** * @(#)C64Cia1IO.java 1999/12/29 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.io; import sw_emulator.util.Monitor; import sw_emulator.util.WireAnd; import sw_emulator.hardware.cpu.M6510; import sw_emulator.hardware.cartridge.Cartridge; /** * Emulate the Cia 1 I/O in the C64. * * @author Ice * @version 1.00 29/12/1999 */ public class C64Cia1IO extends M6526IO { /** * C64 cpu */ private M6510 cpu; /** * C64 cartridge expansion port */ private Cartridge exp; /** * The C64 keyboard monitor connected to the Cia 1 */ private Monitor monitor; /** * The wire and line see by the Cia 1 port A */ private WireAnd[] wireLine; /** * Remember the connected clocked chips * * @param cpu the C64 cpu * @param exp the C64 cartridge expansion port * @param monitor the C64 keyborad monitor * @param wireLine the wire line see by the Cia 1 port A */ public C64Cia1IO(M6510 cpu, Cartridge exp, Monitor monitor, WireAnd[] wireLine) { this.cpu=cpu; this.exp=exp; this.monitor=monitor; this.wireLine=wireLine; } /** * This method is provide to advice the connected chip to an output port that * the value is changed. The <code>value</code> variable contain the bit of * port that has changed the value. You should use a <code>Monitor</code> to * notify that a port value has change the value using an * <code>opSignal</code>, while the chip that attend output changes, must use * a <code>opWait</code> operation. If some bits are used by clocked signals, * then you must call <code>notifySignal</code> for this chips. * * @param type the type of I/O that <code>advice</code> is for. * @param value the bits of port that have changes their value */ @Override public void advice(int type, int value) { if (type==T_PORTA) { if ((value & 0x01)!=0) wireLine[0].line1(portA.getP0()); if ((value & 0x02)!=0) wireLine[0].line1(portA.getP1()); if ((value & 0x04)!=0) wireLine[0].line1(portA.getP2()); if ((value & 0x08)!=0) wireLine[0].line1(portA.getP3()); if ((value & 0x10)!=0) wireLine[0].line1(portA.getP4()); if ((value & 0x20)!=0) wireLine[0].line1(portA.getP5()); if ((value & 0x40)!=0) wireLine[0].line1(portA.getP6()); if ((value & 0x80)!=0) wireLine[0].line1(portA.getP7()); monitor.opSignal(); // resume the keyboard } } /** * Notify a signal to the chip * * @param type the type of signal * @param value the value of the signal (0/1) */ @Override public void notifySignal(int type, int value) { switch (type) { case S_IRQ: // notify IRQ signal cpu.notifySignal(type, value); // to Cpu exp.notifySignal(type, value); // to Cartridge break; } } }
3,772
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
readableBus.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/bus/readableBus.java
/** * @(#)readableBus.java 1999/08/16 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.bus; /** * The interface <code>readableBus</code> represents an bus where we can read * bytes. * To do this the methods <code>read</code> is provided. * For convenience the 16 bits of the address are stored in 32 bits (int type) * * @author Ice * @version 1.00 16/08/1999 */ public interface readableBus { /** * Read a byte from the bus at specific address location. * * @param addr the address location * @return the readed byte */ public byte read(int addr); }
1,420
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Bus.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/bus/Bus.java
/** * @(#)Bus.java 1999/08/16 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.bus; /** * Provide methods for writing and reading from a bus for different * device bus view. * These methods are abstract, so you must implement them. * Use the <code>view</code> variables for known who is that make an operation * to the bus for give it the appropriate memory location. * The <code>previous</code> variable are provided if you want that something * know it (but you must update it), like the M6510 cpu of C64 that in a write * operation to ram 0/1 (his ports), the previous precedent value (that the Vic * has read in the half previus cycle), must be write to ram 0/1. * The <code>aec</code> parameters store the actual state of AEC signal that * the chip that uses the bus has. * * @author Ice * @version 1.00 16/08/1999 */ public abstract class Bus { /** * Previous value that the data bus have had */ public int previous=0; /** * Store a byte value in address position to a chip connected to the bus using * approprite device view. * * @param addr the address location * @param value the byte value * @param view the bus view of the device that write to the bus * @param aec the AEC signals state of the chip */ public abstract void store(int addr, int value, int view, int aec); /** * Load a byte value from a chip that is connected to the bus at address * position using a view of one device. * * @param addr the address location * @param view the bus view of the device that read the bus * @param aec the AEC signals state of the chip * @return the readed byte stored in 32 bits */ public abstract int load(int addr, int view, int aec); /** * Gives true if the bus is correctly initialized * * @return true if bus is initialized correctly */ public abstract boolean isInitialized(); }
2,738
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
writeableBus.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/bus/writeableBus.java
/** * @(#)writeableBus.java 1999/08/16 * * ICE Team free software group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.bus; /** * The interface <code>writeableBus</code> represents an bus where we can write * bytes. * To do this the methods <code>write</code> is provided. * For convenience the 16 bits of the address are stored in 32 bits (int type) * * @author Ice * @version 1.00 16/08/1999 */ public interface writeableBus { /** * Write a byte to the bus at specific address location. * * @param addr the address location * @param value the byte value */ public void write(int addr, byte value); }
1,442
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
C64Bus.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/bus/C64Bus.java
/** * @(#)C64Bus.java 1999/10/15 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.bus; import sw_emulator.hardware.bus.Bus; import sw_emulator.hardware.memory.ColorRAM; import sw_emulator.math.Unsigned; /** * Provide methods for writing and reading from C64 bus for different * addressing modes from the bus. * So this class emulates the address and the data bus of the Cpu and Vic II. * The appropriate table for Cpu or Vic are selected by the PLA82S100 chip using * the <code>setTable</code> method. * For convenience the 16 bits of the address are stored in 32 bits (int type), * and so for the 8 bits of the byte value. * Note that the VIC reads 12 bits from it's bus: 8 from system bus, 4 from * color ram chip. * This class also manage AEC signals (AEC tri-states the address line), and * it depens by the chip: * <ul> * <li>CPU: AEC low means tri-states</li> * <li>VIC: AEC high means tri-states</li> * </ul> * AEC is low if it is 0, high otherwise. * * @author Ice * @version 1.00 15/10/1999 */ public class C64Bus extends Bus{ // available views public static final int V_CPU=0; // cpu view public static final int V_VIC=1; // vic view /** * Table for read functions pointers view by the Cpu */ protected readableBus[] readTableCpu; /** * Table for write functions pointers view by the Cpu */ protected writeableBus[] writeTableCpu; /** * Table for read functions pointers view by the Vic */ protected readableBus[] readTableVic; /** * The color ram used by the Vic read operation */ protected ColorRAM color; /** * Construct a bus for the cpu and vic * Cpu use read and write to bus, Vic use only read. * * @param readTableCpu the cpu table for reading from bus * @param writeTableCpu the cpu table for writing to bus * @param readTableVic the vic table for reading from bus * @param color the color ram used by vic reads */ public C64Bus(readableBus[] readTableCpu, writeableBus[] writeTableCpu, readableBus[] readTableVic, ColorRAM color) { setTableCpu(readTableCpu, writeTableCpu); setTableVic(readTableVic); setColor(color); } /** * Construct a bus. Note that this bus can not be used until the * <code>setTablexx</code> and <code>setColor</code> are called. */ public C64Bus() { } /** * Store a byte value in address position to a chip connected to the bus using * approprite device view. * * @param addr the address location * @param value the byte value * @param view the bus view of the device that write to the bus * @param aec the AEC signal state of the chip */ public void store(int addr, int value, int view, int aec) { switch (view) { case V_CPU: if (aec!=0) { writeTableCpu[addr>>8].write(addr,(byte)value); // use previous byte for vic previous=value; } else { // not implemented } break; case V_VIC: break; // vic not write to memory } } /** * Load a byte value from a chip that is connected to the bus at address * position using a view of one device. * * @param addr the address location * @param view the bus view of the device that read the bus * @param aec the AEC signal state of the chip * @return the readed byte stored in 32 bits */ public int load(int addr, int view, int aec) { switch (view) { case V_CPU: if (aec!=0) { // use previous value for vic return previous=Unsigned.done(readTableCpu[addr>>8].read(addr)); } else { // address line are tri-states return 0xFF; } case V_VIC: if (aec==0) { // use previous value for cpu I/O operation previous=Unsigned.done(readTableVic[(addr & 0x3FFF)>>8].read((addr & 0x3FFF))); return previous+ ((color.read(addr)& 0x0F)<<8); } else { // main address lines are tri-states, but not the upper return 0xFF+((previous & 0x0F)<<8); } } return 0; } /** * Set the tables for reading and writing from/to bus * * @param readTableCpu the table for reading from bus by cpu view * @param writeTableCpu the table for writing to bus by cpu view * @param readTableVic the table for reading from bus by vic view */ public void setTableCpu(readableBus[] readTableCpu, writeableBus[] writeTableCpu) { this.readTableCpu=readTableCpu; this.writeTableCpu=writeTableCpu; } /** * Set the table for reading from bus * * @param readTableVic the table for reading from bus by vic view */ public void setTableVic(readableBus[] readTableVic) { this.readTableVic=readTableVic; } /** * Set the actual color ram * * @param color the color ram memory */ public void setColor(ColorRAM color) { this.color=color; } /** * Gives true if the bus is correctly initialized * * @return true if bus is initialized correctly */ public boolean isInitialized() { if ((readTableVic!=null) && (color!=null) && (readTableCpu!=null)) { return true; } else return false; } }
6,084
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
ResetCartridge.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/cartridge/ResetCartridge.java
/** * @(#)ResetCartridge.java 1999/10/23 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.cartridge; import sw_emulator.hardware.io.CartridgeIO; import sw_emulator.hardware.bus.Bus; import sw_emulator.util.Monitor; /** * A reset cartridge. * This emulate a simple cartridge: a button for resetting the commodore 64. * Use the <code>pressButton</code> for generating a reset signal. * * @author Ice * @version 1.00 23/10/1999 */ public class ResetCartridge extends Cartridge { /** * Construct a reset cartdrige. * * @param io the cartridge expansion port io * @param clock a monitor where synchronized with a clock * @param bus the external bus */ public ResetCartridge(CartridgeIO io, Monitor clock, Bus bus) { super(io, clock, bus); } /** * Generate the reset signals */ public void pressButton() { if (power) io.notifySignal(S_RESET, 1); } /** * The reset become normal */ public void releasButton() { io.notifySignal(S_RESET, 0); } }
1,849
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
GameCartridge.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/cartridge/GameCartridge.java
/** * @(#)Cartridge.java 2000/06/25 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.cartridge; import sw_emulator.util.Monitor; import sw_emulator.hardware.bus.Bus; import sw_emulator.hardware.io.CartridgeIO; import sw_emulator.hardware.memory.ROM; /** * A game cartridge with two ROM (of 8KB) chip at address 8000h and A000h. * In this type of cartridge the GAME and EXROM are set to 0. Than there are * two 8KB ROM memory chip (and I see a space for another memory chip in * the schede, not used). One chip is enabled with ROML, the other with ROMH. * * @author Ice * @version 1.00 25/06/2000 */ public class GameCartridge extends Cartridge { /** The 8KB ROM at address 8000h */ protected ROM roml=new ROM(8*1024, 0x8000); /** The 8KB ROM at address A000h */ protected ROM romh=new ROM(8*1024, 0xA000); /** * Construct a game cartdrige. * * @param io the cartridge expansion port io * @param clock a monitor where synchronized with a clock * @param bus the external bus * @param romlData the content of roml * @param romhData the content of romh */ public GameCartridge(CartridgeIO io, Monitor clock, Bus bus, byte[] romlData, byte[] romhData) { super(io, clock, bus); roml.load(romlData); // load the ROMl romh.load(romhData); // load the ROMH } /** * Read a byte from the bus at specific address location. * * @param addr the address location * @return the readed byte */ public byte read(int addr) { switch (addr & 0xE000) { case 0x8000: return roml.read(addr); case 0xA000: return romh.read(addr); case 0xD000: return (byte)bus.previous; // get previous value default: System.err.println("Error: invalid "+addr+" add. for cartridge"); return 0; } } /** * The body of cartridge. * For speed up porpoise, the GAME and EXROM are send to PLA only when power * become on. */ public void run() { while (true) { while (!power) { this.yield(); } // give mutex to other io.notifySignal(S_GAME, 0); io.notifySignal(S_EXROM, 0); while (power) { this.yield(); // give mutex to other } } } }
3,230
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Cartridge.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/cartridge/Cartridge.java
/** * @(#)Cartridge.java 1999/10/23 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.cartridge; import sw_emulator.util.Monitor; import sw_emulator.hardware.bus.readableBus; import sw_emulator.hardware.bus.writeableBus; import sw_emulator.hardware.bus.Bus; import sw_emulator.hardware.powered; import sw_emulator.hardware.signaller; import sw_emulator.hardware.io.CartridgeIO; /** * A base cartridge that do nothing. * Note that it is a code>Thread</code>, becouse it may sinchronize with fase 2 * of the commodore clock. * In derived class, the <code>run</code> method must be given with the * cartridge core, and <code>notifySignal</code> must be implemented. * * @author Ice * @version 1.00 23/10/1999 */ public class Cartridge extends Thread implements powered, signaller, readableBus, writeableBus { /** The state of power */ protected boolean power=false; /** A monitor where synchronizer with clock */ protected Monitor clock; /** The external bus */ protected Bus bus; /** The cartridge IO */ protected CartridgeIO io; /** * This is provided only for derived class. Do not use. */ protected Cartridge() { } /** * Construct a cartdrige. * * @param io the cartridge expansion port io * @param clock a monitor where synchronized with a clock * @param bus the external bus */ public Cartridge(CartridgeIO io, Monitor clock, Bus bus) { this.clock=clock; this.io=io; this.bus=bus; start(); } /** * Read a byte from the bus at specific address location. * This is open space in null cartridge. * * @param addr the address location * @return the readed byte */ public byte read(int addr) { return (byte)bus.previous; // get previous value } /** * Write a byte to the bus at specific address location. * this is open space in base cartridge * * @param addr the address location * @param value the byte value */ public void write(int addr, byte value) { // nothing to do } /** * Power on the electronic component */ public void powerOn() { power=true; // power is on } /** * Power off the electronic component */ public void powerOff() { power=false; // power is off } /** * Notify a signal to the chip. * The body is empty because this is a base cartridge. * * @param type the type of signal * @param value the value of the signal (0/1) */ public void notifySignal(int type, int value) { } /** * Set up the connection of IO with the external. * The cpu emulation is not started if this value is null equal. * * @param ioPort the external connection */ public void setIO(CartridgeIO ioPort) { this.io=ioPort; } }
3,720
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
DRAM.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/memory/DRAM.java
/** * @(#)DRAM.java 1999/11/03 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.memory; /** * A <code>DRAM</code> is a dinamic memory device. * For a correct use of the memory a <code>refreshLine</code> may be done onto * a predefined timing interval. * Note that the timing is not provided; we want only to see how this device * should works. * * @author Ice * @version 1.00 02/09/1999 */ public class DRAM extends Memory implements dinamic{ /** * Construct an empty block of RAM memory locations * * @param size the size in byte of memory * @param address the starting address of memory */ public DRAM(int size, int address) { super(size,address); } /** * Refresh the line <code>lineNumber</code> of a dinamic memory. * * @param lineNumber the number of line to refresh */ public void refreshLine(int lineNumber) { // do nothing, we use refresh only for view how the real dinamic memory may // works } }
1,810
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Memory.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/memory/Memory.java
/** * @(#)Memory.java 1999/09/01 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.memory; import sw_emulator.hardware.bus.readableBus; import sw_emulator.hardware.bus.writeableBus; import java.lang.String; import java.lang.ArrayIndexOutOfBoundsException; import java.io.InputStream; import java.io.IOException; /** * This class emulate a memory chip. * It provides methods for reading and writing the memory locations. The memory * is characterized by it's size and starting address. * If you want to implement a ROM, you must ovverride the method that write in * memory. * * @author Ice * @version 1.01 25/04/2002 */ public class Memory implements readableBus, writeableBus{ /** * Contains the data in memory */ public byte[] memory; /** * The size (in byte, 2^ multiple) of memory */ public int size; /** * The starting address of memory */ public int address; /** * Construct an empty block of memory location * * @param size the size in byte of memory * @param address the starting address of memory */ public Memory(int size, int address) { init(size,address); } /** * This is provided only for derived class. Do not use. */ protected Memory() {} /** * Initialize memory * * @param size the size in byte of memory * @param address the starting address of memory */ public void init(int size, int address) { this.size=size; this.address=address; memory=new byte[size]; } /** * Erase the content of memory */ public void erase() { for (int i=0; i<size; i++) memory[i]=0; } /** * Load the memory with specific values retrive from a buffer * * @param buffer the buffer containing the data * @return true if the operation is ok */ public boolean load(byte[] buffer) { int i; // local cycle variable try { for (i=0; i<size; i++) memory[i]=buffer[i]; } catch (ArrayIndexOutOfBoundsException e) { for (int j=buffer.length+1; j<size; j++) memory[j]=0; // fill the other with 0 } return true; } /** * Load the memory with the values stored in a file * * @param name the name of the file * @return false if there's some error */ public boolean load(String name) { int result=0; // result of reading byte int done=0; // number of bytes done InputStream file=getClass().getResourceAsStream(name); if (file==null) { System.err.println("File not found "+name); return false; } try { for (;;) { result=file.read(memory, done, memory.length-done); done+=result; if (done>=memory.length) break; if (result<=0) { System.out.println("Not all the bytes readed from "+name); return false; } } file.close(); } catch (IOException e) { System.err.println(e); return false; } return true; } /** * Read a byte from the bus at specific address location. * * @param addr the address location * @return the readed byte */ public byte read(int addr) { return memory[(addr-address) & (size-1)]; } /** * Write a byte to the bus at specific address location. * * @param addr the address location * @param value the byte value */ public void write(int addr, byte value) { memory[(addr-address) & (size-1)]=value; } /** * Change a byte in the memory at address location. * This is provide for patching the ROM or RAM. * * @param addr the address location * @param value the byte value */ public void change(int addr, byte value) { memory[(addr-address) & (size-1)]=value; } }
4,578
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
ROM.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/memory/ROM.java
/** * @(#)ROM.java 1999/09/02 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.memory; import sw_emulator.hardware.memory.Memory; import java.lang.String; /** * Create a ROM memory by disabling the <code>write</code> method * * @author Ice * @version 1.00 02/09/1999 */ public class ROM extends Memory { /** * Construct an empty block of memory location * * @param size the size in byte of memory * @param address the starting address of memory */ public ROM(int size, int address) { super(size, address); } /** * Write a byte to the bus at specific address location. * Does nothing becouse the ROM can not be writing more of one * * @param addr the address location * @param value the byte value */ public void write(int addr, byte value) { } }
1,648
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
ColorRAM.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/memory/ColorRAM.java
/** * @(#)ColorRAM.java 1999/10/02 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.memory; import sw_emulator.hardware.bus.Bus; /** * This is the color Ram chip: 4 bits for a stored data. * Only the 4 lower bits are connected. The upper 4 bits are taken from previous * present value in the data bus. * Note: the upper 4 bits are significative only for the CPU read, while a VIC * read only the low effective readed. * * @author Ice * @version 1.00 02/10/1999 */ public class ColorRAM extends Memory { /** * The bus that color ram used */ private Bus bus; /** * Construct an empty block of color memory chip of C64 * * @param size the size in byte of memory * @param address the starting address of memory */ public ColorRAM(int size, int address, Bus bus) { super(size, address); this.bus=bus; } /** * Read a byte from the bus at specific address location. * The chip store only the lower 4 bits, so when we read from these locations * the upper 4 bits are not determinate. In the C64 the upper 4 bits came out * from the previous readed byte. * * @param addr the address location * @return the readed byte */ public byte read(int addr) { return (byte)((memory[(addr-address) & (size-1)] & 0x0F)| (bus.previous & 0xF0)); } /** * Write a byte to the bus at specific address location. * Only the lower 4 bits are stored * * @param addr the address location * @param value the byte value */ public void write(int addr, byte value) { memory[(addr-address) & (size-1)]=(byte)(value & 0x0F); } }
2,466
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
dinamic.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/memory/dinamic.java
/** * @(#)dinamic.java 1999/11/03 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.memory; /** * The interface <code>dinamic</code> rapresent the refresh of rows of a dinamic * RAM memory. * Use the <code>refreshLine/code> to make the refresh of a line. * * @author Ice * @version 1.00 03/11/1999 */ public interface dinamic { /** * Refresh the line <code>lineNumber</code> of a dinamic memory. * * @param lineNumber the number of line to refresh */ public void refreshLine(int lineNumber); }
1,359
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
M6510.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/cpu/M6510.java
/** * @(#)M6510.java 1999/08/16 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.cpu; import sw_emulator.math.Unsigned; import sw_emulator.util.Monitor; import sw_emulator.hardware.bus.Bus; import sw_emulator.hardware.io.M6510IO; import sw_emulator.hardware.powered; import sw_emulator.hardware.signaller; import java.lang.InterruptedException; import java.lang.Thread; /** * Emulate the Mos 6510 cpu. * For convenience all the 8 and 16 bits registers are stored in 32 bits (int * type). * * The emulation is made with cycle timing, calling the methods <code>clock() * </code>. Even if this solution is not efficently, it permits to have an * accurate emulation. * * The emulation of I/O cpu port (0/1) is made here, not in the device (Ram) * connected to the bus. This is not efficently, but it is the real cpu * operation. In more, when we write to those locations, the bus write operation * is made with a value that was present in the data bus. So if you want to * emulate a C64 architecture, you can reproduce the effect that is originated * from the VIC II reading operation. In fact, the VIC II reads a byte from * memory in the same data bus of Cpu, but when the Cpu is not working with the * buses. So, when the Cpu writes to 0 or 1 location, it writes the previous * present value of VIC II reading operation. * * The <code>loadxxx()</code> methods are used to make addressing mode used by * bus load instructions like LDA, AND, ... * The <code>storexxx()</code> methods are used to make addressing mode used by * bus write instructions like STA, STX, ... * The <code>loadStorexxx()</code> methods are used to make addressing mode used * by bus load/write (RMW) instructions like ASL, LSR, DEC, ... * All the precedent methods use to call </code>load()</code> or <code>store() * </code> methods, becouse those use the <code>Bus</code>class to emulate a bus * load/write emulation. * * The BRK instruction is also used to patch the memory, using the <code></code> * * The clock timing is used by calling a <code>clock</code> method, that use an * external <code>Monitor</code> for sinchonization with a timing thread. If you * don't want a real clock emulation, you must override the <code>clock</code> * procedure. * * The interrupt are manage in a manner very similar that in a real cpu, see * <code>run</code> and <code>clock</code> for more detail. * * Referece: * 64doc by John West and Marko M"akel"a * * Note: * the instructions implementation are based onto VICE emulator * (see <http://www.cs.cmu.edu/~dsladic/vice/vice.html>) * Vice is * Copyright 1996-1999 Ettore Perazzoli * Copyright 1996-1999 Andr�Fachat * Copyright 1993-1994, 1997-1999 Teemu Rantanen * Copyright 1997-1999 Daniel Sladic * Copyright 1998-1999 Andreas Boose * Copyright 1998-1999 Tibor Biczo * Copyright 1993-1996 Jouko Valta * Copyright 1993-1994 Jarkko Sonninen * * Thanks to Vice authors. * * @see run * @see clock * * @author Ice * @version 1.00 16/08/1999 * */ public class M6510 extends Thread implements powered, signaller { // define costants for manage flags public static final int P_SIGN = 0x80; public static final int P_OVERFLOW = 0x40; public static final int P_UNUSED = 0x20; public static final int P_BREAK = 0x10; public static final int P_DECIMAL = 0x08; public static final int P_INTERRUPT= 0x04; public static final int P_ZERO = 0x02; public static final int P_CARRY = 0x01; // define constans for manage addressing mode protected static final byte M_ZERO = 1; protected static final byte M_ABS = 2; protected static final byte M_ABS_X = 3; protected static final byte M_ABS_X_RMW = 4; protected static final byte M_ABS_Y = 5; protected static final byte M_ABS_Y_RMW = 6; protected static final byte M_IND_Y = 7; protected static final byte M_IMP = 8; protected static final byte M_IMM = 9; protected static final byte M_ZERO_X = 10; protected static final byte M_IND_X = 11; protected static final byte M_NULL = 12; protected static final byte M_ZERO_Y = 13; protected static final byte M_IND = 14; protected static final byte M_ACC = 15; /** Input Reset signal */ protected int sigRESET; /** Input IRQ signal */ protected int sigIRQ=1; /** Input NMI signal */ protected int sigNMI=1; /** Input RDY signal (ready) */ protected int sigRDY; /** Input AEC signal (bus tristate) */ protected int sigAEC; /** Power alimentation state */ private boolean power=false; /** The fetched byte */ protected int p0; /** The 8 bits A register */ public int regA=0; /** The 8 bits X register */ public int regX=0; /** The 8 bits Y register */ public int regY=0; /** The 8 bits P register */ public int regP=P_UNUSED | P_BREAK; /** The 8 bits S register */ public int regS=0x1FF; /** The 16 bit Program Counter register */ public int regPC=0xFFFC; /** The bus view of the cpu */ protected int view; /** I/O Port direction register */ public int portDir; /** I/O Port data register */ public int portData; /** The device that are connected to the bus */ protected Bus bus; /** The monitor where synchronization with a clock */ protected Monitor monitor; /** The processor I/O 6 ports */ public M6510IO ioPort; /** True if an IRQ interrupt is pending */ protected boolean irqPending=false; /** True if a NMI interrupt is pending */ protected boolean nmiPending=false; /** Clock counter */ public long clock=0; /** * Construct a Mos 6510 cpu. * * @param monitor the monitor where synchronization with a clock * @param bus the bus connected to the cpu and peripherals * @param view the bus cpu view * @param ioPort the connection of Io with the external (this may be null) */ public M6510(Monitor monitor, Bus bus, int view, M6510IO ioPort) { this.monitor=monitor; this.bus=bus; this.view=view; this.ioPort=ioPort; setName("CPU"); // use this name for the thread //setPriority(MAX_PRIORITY); start(); } /** * Set up the connection of IO with the external. * The cpu emulation is not started if this value is null equal. * * @param ioPort the external connection */ public void setIO(M6510IO ioPort) { this.ioPort=ioPort; } // implement the addressing mode /** * Load a value from the bus. * If the address to read is 0/1, the cpu must read his I/O ports. * * @param addr the address of location to read * @return the readed byte */ public int load(int addr) { while (sigRDY==0) { // is RDY low? monitor.opWait(); // subspend Cpu activity } if (addr<2) return ioPort.readFromPort(addr & 0xffff, clock); else return bus.load(addr & 0xffff, view, sigAEC); } /** * Write a value to the bus. * If the address where write is 0/1, the cpu must write his I/O ports. * * @param addr the address of location to write * @param value the value to store */ protected void store(int addr, int value) { if (addr<2) { ioPort.writeToPort(addr, value, clock); // write previous value that the data bus still have. bus.store(addr & 0xffff, bus.previous, view, sigAEC); } else bus.store(addr & 0xffff, value, view, sigAEC); } /** * Load Zero page addressing mode * * @param addr the address location * @return the readed byte value (stored in 32 bits) */ protected int loadZero(int addr) { int tmp; tmp=load(addr); // read effective address clock(); // 3 return tmp; } /** * Load Zero X page addressing mode * * @param addr the address location * @return the readed byte value (stored in 32 bits) */ protected int loadZeroX(int addr) { int tmp; load(addr); // read from address addr+=regX; // add index register clock(); // 3 tmp=load(addr & 0xff); // read from effective address * clock(); // 4 // *= page boundary crossing are not handled return tmp; } /** * Load Zero Y page addressing mode * * @param addr the address location * @return the readed byte value (stored in 32 bits) */ protected int loadZeroY(int addr) { int tmp; load(addr); // read from address addr+=regY; // add index register clock(); // 3 tmp=load(addr & 0xff); // read from effective address * clock(); // 4 // *= page boundary crossing are not handled return tmp; } /** * Load Indirect X addressing mode * * @param addr the address location * @return the readed byte value (stored in 32 bits) */ protected int loadIndX(int addr) { int tmp, tmp2; load(addr); // read from the address tmp2=(addr+regX)& 0xff; // add X to it clock(); // 3 tmp=load(tmp2); // fetch effective address low * clock(); // 4 tmp+=(load((tmp2+1)&0xff)<<8);// fetch effective address hi * clock(); // 5 tmp=load(tmp); // read from effective address clock(); // 6 // *= page boundary crossing are not handled return tmp; } /** * Load Indirect Y addressing mode * * @param addr the address location * @return the readed byte value (stored in 32 bits) */ /** protected int loadIndY(int addr) { int cross=0; // 1 if there's a page boundary crossing int tmp,tmp2,base; tmp2=load(addr); // fetch effective address low clock(); // 3 tmp2+=(load( (addr+1) & 0xff )<<8); // fetch effective address hi base=tmp2; // tmp2=(tmp2 & 0xff00) | // ((tmp2+regY)& 0xff); // add Y to low byte of effective address tmp2=(tmp2+regY)&0xffff; clock(); // 4 tmp=load(tmp2); // read from effective address * if ((base & 0xff00) != (tmp2 & 0xff00)) cross=1; //tmp2+=(cross<<8); // fix hi byte of effective address clock(); // 5 if (cross==1) { // tmp=load(tmp2); // read from effective address clock(); // 6 } // *= high byte of effec. addr. may be invalid return tmp; } **/ /** * Load Indirect Y addressing mode * * @param addr the address location * @return the readed byte value (stored in 32 bits) */ protected int loadIndY(int addr) { int cross=0; // 1 if there's a page boundary crossing int tmp,tmp2; tmp2=load(addr); // fetch effective address low clock(); // 3 if (((tmp2+regY) & 0xff00)!=0) cross=1; tmp2+=(load(addr+1)<<8); // fetch effective address hi tmp2=(tmp2 & 0xff00) | ((tmp2+regY)& 0xff); // add Y to low byte of effective address clock(); // 4 tmp=load(tmp2); // read from effective address * tmp2+=(cross<<8); // fix hi byte of effective address clock(); // 5 if (cross==1) { tmp=load(tmp2); // read from effective address clock(); // 6 } // *= high byte of effec. addr. may be invalid return tmp; } /** * Load Absolute addressing mode * * @param addr the address location * @return the readed byte value (stored in 32 bits) */ protected int loadAbs(int addr) { int tmp; addr|=load(regPC++)<<8; // fetch hi byte of address clock(); // 3 tmp=load(addr); // read from effective address clock(); // 4 return tmp; } /** * Load Absolute X addressing mode * * @param addr the address location * @return the readed byte (stored in 32 bits) */ protected int loadAbsX(int addr) { int cross=0; // 1 if there's a page boundary crossing int tmp, tmp2; if (((addr + regX) & 0xff00)!=0) cross=1; addr|=(load(regPC++)<<8); // fetch hi byte of address, increment PC tmp2=(addr & 0xff00)+ ((addr+regX)& 0xff); // add index register to low address byte clock(); // 3 tmp=load(tmp2); // read from effective address * tmp2+=(cross<<8); // fix the high byte of effective address clock(); // 4 if (cross==1) { tmp=load(tmp2); // re-read from effective address clock(); // 5 } // *= high byte of effec. addr. may be invalid return tmp; } /** * Load Absolute Y addressing mode * * @param addr the address location * @return the readed byte (stored in 32 bits) */ protected int loadAbsY(int addr) { int cross=0; // 1 if there's a page boundary crossing int tmp, tmp2; if (((addr+regY) & 0xff00)!=0) cross=1; addr|=load(regPC++)<<8; // fetch hi byte of address, increment PC tmp2=(addr & 0xff00)+ ((addr+regY)& 0xff); // add index register to low address byte clock(); // 3 tmp=load(tmp2); // read from effective address * tmp2+=(cross<<8); // fix the high byte of effective address clock(); // 4 if (cross==1) { tmp=load(tmp2); // re-read from effective address clock(); // 5 } // *= high byte of effec. addr. may be invalid return tmp; } /** * Load Store Zero page addressing mode * * @param addr the address location * @return the effective address and the readed byte (stored in 24 bits of 32) */ protected int loadStoreZero(int addr) { int tmp; tmp=load(addr); // read effective address clock(); // 3 store(addr, tmp); // write the value back to the effective addr. return (addr<<8)+tmp; } /** * Load Store Zero X page addressing mode * * @param addr the address location * @return the effective address and the readed byte (stored in 24 bits of 32) */ protected int loadStoreZeroX(int addr) { int tmp; load(addr); // read from address addr+=regX; // add index register clock(); // 3 tmp=load(addr & 0xff); // read from effective address * clock(); // 4 store(addr & 0xff, tmp); // write the value back to the effect. addr. * // *= page boundary crossing are not handled return ((addr & 0xff)<<8)+tmp; } /** * Load Store Absolute addressing mode * * @param addr the address location * @return the effective address and the readed byte (stored in 24 bits of 32) */ protected int loadStoreAbs(int addr) { int tmp; addr|=(load(regPC++)<<8); // fetch hi byte of address clock(); // 3 tmp=load(addr); // read from effective address clock(); // 4 store(addr,tmp); // write the value back to the effective addr. return (addr<<8)+tmp; } /** * Load Store Absolute X addressing mode * * @param addr the address location * @return the effective address and the readed byte (stored in 24 bits of 32) */ protected int loadStoreAbsX(int addr) { int cross=0; // 1 if there's a page boundary crossing int tmp, tmp2; if (((addr+regX) & 0xff00)!=0) cross=1; addr|=(load(regPC++)<<8); // fetch hi byte of address, increment PC tmp2=(addr & 0xff00)+ ((addr+regX)& 0xff); // add index register to low address byte clock(); // 3 tmp=load(tmp2); // read from effective address * tmp2+=(cross<<8); // fix the high byte of effective address clock(); // 4 tmp=load(tmp2); // re-read from effective address clock(); // 5 store(tmp2, tmp); // write the value back to the effective addr. // *= high byte of effec. addr. may be invalid return (tmp2<<8)+tmp; } /** * Load Store Absolute Y addressing mode * * @param addr the address location * @return the effective address and the readed byte (stored in 24 bits of 32) */ protected int loadStoreAbsY(int addr) { int cross=0; // 1 if there's a page boundary crossing int tmp, tmp2; if (((addr+regY) & 0xff00)!=0) cross=1; addr|=(load(regPC++)<<8); // fetch hi byte of address, increment PC tmp2=(addr & 0xff00)+ ((addr+regY)& 0xff); // add index register to low address byte clock(); // 3 tmp=load(tmp2); // read from effective address * tmp2+=(cross<<8); // fix the high byte of effective address clock(); // 4 tmp=load(tmp2); // re-read from effective address clock(); // 5 store(tmp2, tmp); // write the value back to the effective addr. // *= high byte of effec. addr. may be invalid return (tmp2<<8)+tmp; } /** * Load Store Indirect X addressing mode * * @param addr the address location * @return the effective address and the readed byte (stored in 24 bits of 32) */ protected int loadStoreIndX(int addr) { int tmp, tmp2; load(addr); // read from the address tmp2=(addr+regX)& 0xff; // add X to it clock(); // 3 tmp=load(tmp2); // fetch effective address low clock(); // 4 tmp+=(load((tmp2+1)&0xff)<<8);// fetch effective address high * clock(); // 5 tmp2=load(tmp); // read from effective address clock(); // 6 store(tmp, tmp2); // write the value back to the effective addr. // *= high byte of effec. addr. may be invalid return (tmp<<8)+tmp2; } /** * Load Store Indirect Y addressing mode * * @param addr the address location * @return the effective address and the readed byte (stored in 24 bits of 32) */ protected int loadStoreIndY(int addr) { int cross=0; // 1 if there's a page boundary crossing int tmp,tmp2; tmp2=load(addr); // fetch effective address low clock(); // 3 if (((tmp2+regY) & 0xff00)!=0) cross=1; tmp2+=(load(addr+1)<<8); // fetch effective address hi tmp2=(tmp2 & 0xff00) | ((tmp2+regY)& 0xff); // add Y to low byte of effective address clock(); // 4 tmp=load(tmp2); // read from effective address * tmp2+=(cross<<8); // fix hi byte of effective address clock(); // 5 tmp=load(tmp2); // read from effective address clock(); // 6 store(tmp2, tmp); // write the value back to the effective addr. // *= high byte of effec. addr. may be invalid return (tmp2<<8)+tmp; } /** * Store Zero X page addressing mode * * @param addr the address location * @return the effective address */ protected int storeZeroX(int addr) { load(addr); // read from address addr+=regX; // add index register clock(); // 3 // *=page boundary crossing are not handled return addr & 0xff; // * } /** * Store Zero Y page addressing mode * * @param addr the address location * @return the effective address */ protected int storeZeroY(int addr) { load(addr); // read from address addr+=regY; // add index register clock(); // 3 // *= page boundary crossing are not handled return addr & 0xff; // * } /** * Store Absolute addressing mode * * @param addr the address location * @return the effective address */ protected int storeAbs(int addr) { addr|=(load(regPC++)<<8); // fetch hi byte of address clock(); // 3 return addr; } /** * Store Absolute X addressing mode * * @param addr the address location * @return the effective address */ protected int storeAbsX(int addr) { int cross=0; // 1 if there's a page boundary crossing int tmp; if (((addr+regX) & 0xff00)!=0) cross=1; addr|=(load(regPC++)<<8); // fetch hi byte of address, increment PC tmp=(addr & 0xff00)+ ((addr+regX)& 0xff); // add index register to low address byte clock(); // 3 load(tmp); // read from effective address * tmp+=(cross<<8); // fix the high byte of effective address clock(); // 4 // *= high byte of effec. addr. may be invalid return tmp; } /** * Store Absolute Y addressing mode * * @param addr the address location * @return the effective address */ protected int storeAbsY(int addr) { int cross=0; // 1 if there's a page boundary crossing int tmp; if (((addr+regY) & 0xff00)!=0) cross=1; addr|=(load(regPC++)<<8); // fetch hi byte of address, increment PC tmp=(addr & 0xff00)+ ((addr+regY)& 0xff); // add index register to low address byte clock(); // 3 load(tmp); // read from effective address * tmp+=(cross<<8); // fix the high byte of effective address clock(); // 4 // *= high byte of effec. addr. may be invalid return tmp; } /** * Store Indirect X addressing mode * * @param addr the address location * @return the effective address */ protected int storeIndX(int addr) { int tmp, tmp2; load(addr); // read from the address tmp2=(addr+regX)& 0xff; // add X to it clock(); // 3 tmp=load(tmp2); // fetch effective address low * clock(); // 4 tmp+=(load((tmp2+1)&0xff)<<8);// fetch effective address hi * clock(); // 5 // *= page boundary crossing is not handled return tmp; } /** * Store Indirect Y addressing mode * * @param addr the address location * @return the effective address */ protected int storeIndY(int addr) { int cross=0; // 1 if there's a page boundary crossing int tmp; tmp=load(addr); // fetch effective address low clock(); // 3 if (((tmp+regY) & 0xff00)!=0) cross=1; tmp+=(load(addr+1)<<8); // fetch effective address hi tmp=(tmp & 0xff00) | ((tmp+regY)& 0xff); // add Y to low byte of effective address clock(); // 4 load(tmp); // read from effective address * tmp+=(cross<<8); // fix hi byte of effective address clock(); // 5 // *= high byte of effec. addr. may be invalid return tmp; } // implement flags manage /** * set the Overflow flag to the <code>val</code> value * * @param val the 0/1 bit value */ protected void setOverflow(int val) { if (val==0) regP&=~P_OVERFLOW; else regP|=P_OVERFLOW; } /** * set the Break flag to the <code>val</code> value * * @param val the 0/1 bit value */ protected void setBreak(int val) { if (val==0) regP&=~P_BREAK; else regP|=P_BREAK; } /** * set the Decimal flag to the <code>val</code> value * * @param val the 0/1 bit value */ protected void setDecimal(int val) { if (val==0) regP&=~P_DECIMAL; else regP|=P_DECIMAL; } /** * set the Interrupt flag to the <code>val</code> value * * @param val the 0/1 bit value */ protected void setInterrupt(int val) { if (val==0) regP&=~P_INTERRUPT; else regP|=P_INTERRUPT; } /** * set the Carry flag to the <code>val</code> value * * @param val the 0/1 bit value */ protected void setCarry(int val) { if (val==0) regP&=~P_CARRY; else regP|=P_CARRY; } /** * set the Sign flag to the <code>val</code> value * * @param val the 0/1 bit value */ protected void setSign(int val) { if (val==0) regP&=~P_SIGN; else regP|=P_SIGN; } /** * set the Zero flag to the <code>val</code> value * * @param val the 0/1 bit value */ protected void setZero(int val) { if (val==0) regP|=P_ZERO; else regP&=~P_ZERO; } /** * Set the Sign/Zero flags that <code>val</code>value represent * * @param val the value to evaluate Sign/Zero */ protected void setNZ(int val) { setZero(val); setSign(val & P_SIGN); } /** * set the Decimal flag to the <code>val</code> value * * @param val the boolean value to assign */ protected void setDecimal(boolean val) { if (val) regP|=P_DECIMAL; else regP&=~P_DECIMAL; } /** * set the Overflow flag to the <code>val</code> value * * @param val the boolean value to assign */ protected void setOverflow(boolean val) { if (val) regP|=P_OVERFLOW; else regP&=~P_OVERFLOW; } /** * set the Break flag to the <code>val</code> value * * @param val the boolean value to assign */ protected void setBreak(boolean val) { if (val) regP|=P_BREAK; else regP&=~P_BREAK; } /** * set the Interrupt flag to the <code>val</code> value * * @param val the boolean value to assign */ protected void setInterrupt(boolean val) { if (val) regP|=P_INTERRUPT; else regP&=~P_INTERRUPT; } /** * set the Carry flag to the <code>val</code> value * * @param val the boolean value to assign */ protected void setCarry(boolean val) { if (val) regP|=P_CARRY; else regP&=~P_CARRY; } /** * set the Sign flag to the <code>val</code> value * * @param val the boolean value to assign */ protected void setSign(boolean val) { if (val) regP|=P_SIGN; else regP&=~P_SIGN; } /** * set the Zero flag to the <code>val</code> value * * @param val the boolean value to assign */ protected void setZero(boolean val) { if (val) regP|=P_ZERO; else regP&=~P_ZERO; } /** * Called to suspend cpu activity until the next clock signal. * It also search for pending interrupt. * * Note: the cpu execute an interrupt when an operation is completed, so an * interrupt sequence is processed before the next instruction only if it is * notify before the last cycle of the current instruction. * In this emulator the interrupt sequence is valutated only when an * instruction is finished, so it's right to search for pending interrupt * before suspend the thread until the next clock signal. Infact, if this cycle * is the last of the instruction, we don't valutate the pending interrupt * when the thread is resume; instead if it is not the last, at the next clock * signal we find the pending interrupt. * * The unique case that is not like in the real cpu if an interrupt, arrived * before the last instruction, appears after that the thread is waiting, but * before it is resume. Sorry... */ public void clock() { clock++; if (sigNMI==0) nmiPending=true; if (sigIRQ==0) irqPending=true; monitor.opWait(); } // instructions implementation /** * Execute an ADC cpu legal instruction. * * @param type the type of addressing */ public void ADC(int type) { int tmp, al, ah, tmpVal; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_IMM: break; case M_ZERO: tmp=loadZero(tmp); break; case M_ZERO_X: tmp=loadZeroX(tmp); break; case M_ABS: tmp=loadAbs(tmp); break; case M_ABS_X: tmp=loadAbsX(tmp); break; case M_ABS_Y: tmp=loadAbsY(tmp); break; case M_IND_X: tmp=loadIndX(tmp); break; case M_IND_Y: tmp=loadIndY(tmp); break; } tmpVal=tmp; if ((regP & P_DECIMAL)!=0) { tmp=(regA & 0x0f)+(tmpVal & 0x0f)+ (regP & P_CARRY); if (tmp>0x9) tmp+=0x6; if (tmp<=0x0f) tmp=(tmp & 0x0f)+(regA & 0xf0)+(tmpVal & 0xf0); else tmp=(tmp & 0x0f)+(regA & 0xf0)+(tmpVal & 0xf0)+ 0x10; setZero(!((regA+tmpVal+(regP & P_CARRY) & 0xff)!=0)); setSign(tmp & 0x80); setOverflow((((regA ^ tmp) & 0x80)!=0) && !(((regA ^ tmpVal) & 0x80)!=0)); if ((tmp & 0x1f0)> 0x90) tmp+=0x60; setCarry((tmp & 0xff0)>0xf0); } else { tmp=tmpVal+regA+(regP & P_CARRY); setNZ(tmp & 0xff); setOverflow( (((regA ^ tmpVal) & 0x80)==0)&&(((regA ^ tmp) & 0x80)!=0)); setCarry(tmp & 0xff00); } regA=tmp & 0xff; } /** * Execute an ANC cpu undocument instruction. */ public void ANC() { int tmp; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 regA&=tmp; setNZ(regA); setCarry(regP & P_SIGN); } /** * Execute an AND cpu legal instruction. * * @param type the type of addressing */ public void AND(int type) { int tmp; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_IMM: break; case M_ZERO: tmp=loadZero(tmp); break; case M_ZERO_X: tmp=loadZeroX(tmp); break; case M_ABS: tmp=loadAbs(tmp); break; case M_ABS_X: tmp=loadAbsX(tmp); break; case M_ABS_Y: tmp=loadAbsY(tmp); break; case M_IND_X: tmp=loadIndX(tmp); break; case M_IND_Y: tmp=loadIndY(tmp); break; } regA&=tmp; // do operation setNZ(regA); } /** * Execute an ANE cpu undocument instruction. */ public void ANE() { int tmp; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 regA=(regA | 0xee) & regX & tmp; setNZ(regA); } /** * Execute an ARR cpu undocument instruction. */ public void ARR() { int tmp; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 tmp=regA & tmp; // do operation if ((regP & P_DECIMAL)!=0) { int tmp2=tmp; tmp2|=(regP & P_CARRY)<<8; tmp2>>=1; setSign(regP & P_CARRY); setZero(!(tmp2!=0)); setOverflow((tmp2 ^ tmp) & 0x40); if (((tmp & 0x0f)+(tmp & 0x01))>0x05) tmp2=(tmp2 & 0xf0) | ((tmp2+0x06) & 0x0f); if (((tmp & 0xf0)+(tmp & 0x10))>0x50) { tmp2=(tmp2 & 0x0f) | ((tmp2+0x60) & 0xf0); setCarry(1); } else setCarry(0); regA=tmp2; } else { tmp|=(regP & P_CARRY) << 8; tmp>>=1; setNZ(tmp); setCarry(tmp & 0x40); setOverflow((tmp & 0x40) ^ ((tmp & 0x20) << 1)); regA=tmp; } } /** * Execute an ASL cpu legal instruction. * * @param type the type of addressing */ public void ASL(int type) { int tmp, val; if (type==M_ACC) { load(regPC); // fetch next byte and forget it clock(); // 2 setCarry(regA & 0x80); // do operation on it regA<<=1; regA&=0xff; // 8 bits setNZ(regA); return; } tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ZERO: tmp=loadStoreZero(tmp); break; case M_ZERO_X: tmp=loadStoreZeroX(tmp); break; case M_ABS: tmp=loadStoreAbs(tmp); break; case M_ABS_X: tmp=loadStoreAbsX(tmp); break; } val=tmp & 0xff; // extract the packed information tmp>>=8; setCarry(val & 0x80); // do operation on it val=(val << 1) & 0xff; setNZ(val); clock(); // ++ store(tmp, val); // write the new value to the effective addr. clock(); // ++ } /** * Execute an ASR cpu undocument instruction. */ public void ASR() { int tmp; tmp=load(regPC++); // fetch value, increment PC clock(); // 2 tmp=regA & tmp; // do operation setCarry(tmp & 0x01); regA=tmp >> 1; setNZ(regA); } /** * Execute a BIT cpu legal instruction. * * @param type the type of addressing */ public void BIT(int type) { int tmp; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ZERO: tmp=loadZero(tmp); break; case M_ABS: tmp=loadAbs(tmp); break; } setSign(tmp & 0x80); setOverflow(tmp & 0x40); setZero(!((tmp & regA)!=0)); } /** * Execute a Branch cpu legal instruction. * Note: this instruction is execute in different manner from where described * in the 64doc. This is done for making the fetch opcode and increment PC a * features of a instruction execution, and so makes the code more simple. * * @param cond the boolean value of condition */ public void BRANCH(boolean cond) { int cross=0; // 1 if there's a page boundary crossing int tmp; tmp=load(regPC++); // fetch operand, increment PC clock(); // 2 if (!cond) { // is branch not taken? return; } else { p0=load(regPC); // fetch opcode of next instruction cross=(regPC+(byte)tmp) // real address & 0xffff; regPC=(regPC & 0xff00)+ ((regPC+(byte)tmp) & 0xff); // add operand to PCL cross-=regPC; // difference with real clock(); // 3 } if (cross==0) { // will PCH not changes by fix? return; } else { // *= PCH may be invalid p0=load(regPC); // fetch opcode of next instruction * regPC+=cross; // Fix PCH clock(); // 4 } } /** * Execute a BRK cpu legal instruction * This opocode is also used to patch the memory */ public void BRK() { int tmp; tmp=load(regPC++); // read next byte (and forget it) clock(); // 2 setBreak(1); // push PCH on stack (with B flag set), dec. S store(regS--, regPC>>8); regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 3 store(regS--, regPC & 0xff); // push PCL on stack, decrement S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 4 store(regS--, regP); // push P on stack, decrement S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 5 regPC=(regPC & 0xff00)+ // fetch PCL load(0xfffe); // 6 clock(); regPC=(regPC & 0xff)+ // fetch PCH (load(0xffff)<<8); setInterrupt(1); clock(); // 7 } /** * Execute a CLC legal instruction */ public void CLC() { load(regPC); // fetch next byte (and forget it) clock(); // 2 setCarry(0); } /** * Execute a CLD legal instruction */ public void CLD() { load(regPC); // fetch next byte (and forget it) clock(); // 2 setDecimal(0); } /** * Execute a CLI legal instruction */ public void CLI() { load(regPC); // fetch next byte (and forget it) clock(); // 2 setInterrupt(0); } /** * Execute a CLV legal instruction */ public void CLV() { load(regPC); // fetch next byte (and forget it) clock(); // 2 setOverflow(0); } /** * Execute a CMP cpu legal instruction. * * @param type the type of addressing */ public void CMP(int type) { int tmp; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_IMM: break; case M_ZERO: tmp=loadZero(tmp); break; case M_ZERO_X: tmp=loadZeroX(tmp); break; case M_ABS: tmp=loadAbs(tmp); break; case M_ABS_X: tmp=loadAbsX(tmp); break; case M_ABS_Y: tmp=loadAbsY(tmp); break; case M_IND_X: tmp=loadIndX(tmp); break; case M_IND_Y: tmp=loadIndY(tmp); break; } tmp=regA-tmp; setCarry(tmp>=0); setNZ(tmp); } /** * Execute a CPX cpu legal instruction. * * @param type the type of addressing */ public void CPX(int type) { int tmp; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_IMM: break; case M_ZERO: tmp=loadZero(tmp); break; case M_ABS: tmp=loadAbs(tmp); break; } tmp=regX-tmp; // do operation setCarry(tmp>=0); setNZ(tmp); } /** * Execute a CPY cpu legal instruction. * * @param type the type of addressing */ public void CPY(int type) { int tmp; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_IMM: break; case M_ZERO: tmp=loadZero(tmp); break; case M_ABS: tmp=loadAbs(tmp); break; } tmp=regY-tmp; // do operation setCarry(tmp>=0); setNZ(tmp); } /** * Execute a DCP cpu undocument instruction. * * @param type the type of addressing */ public void DCP(int type) { int tmp, val; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ZERO: tmp=loadStoreZero(tmp); break; case M_ZERO_X: tmp=loadStoreZeroX(tmp); break; case M_ABS: tmp=loadStoreAbs(tmp); break; case M_ABS_X: tmp=loadStoreAbsX(tmp); break; case M_ABS_Y: tmp=loadStoreAbsY(tmp); break; case M_IND_X: tmp=loadStoreIndX(tmp); break; case M_IND_Y: tmp=loadStoreIndY(tmp); break; } val=tmp & 0xff; // extract the packed information tmp>>=8; val=(val-1) & 0xff; // do operation setCarry(regA >= val); setNZ(regA-val); clock(); // ++ store(tmp, val); // write the new value to the effective addr. clock(); // ++ } /** * Execute a DEC cpu legal instruction. * * @param type the type of addressing */ public void DEC(int type) { int tmp, val; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ZERO: tmp=loadStoreZero(tmp); break; case M_ZERO_X: tmp=loadStoreZeroX(tmp); break; case M_ABS: tmp=loadStoreAbs(tmp); break; case M_ABS_X: tmp=loadStoreAbsX(tmp); break; case M_ABS_Y: tmp=loadStoreAbsY(tmp); break; case M_IND_X: tmp=loadStoreIndX(tmp); break; case M_IND_Y: tmp=loadStoreIndY(tmp); break; } val=tmp & 0xff; // extract the packed information tmp>>=8; val=(val-1) & 0xff; // do operation setNZ(val); clock(); // ++ store(tmp, val); // write the new value to the effective addr. clock(); // ++ } /** * Execute a DEX legal instruction */ public void DEX() { load(regPC); // fetch next byte (and forget it) clock(); // 2 regX--; // decrement register regX&=0xFF; // use 8 bits setNZ(regX); } /** * Execute a DEY legal instruction */ public void DEY() { load(regPC); // fetch next byte (and forget it) clock(); // 2 regY--; // decrement register regY&=0xFF; // use 8 bits setNZ(regY); } /** * Execute an EOR cpu legal instruction. * * @param type the type of addressing */ public void EOR(int type) { int tmp; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_IMM: break; case M_ZERO: tmp=loadZero(tmp); break; case M_ZERO_X: tmp=loadZeroX(tmp); break; case M_ABS: tmp=loadAbs(tmp); break; case M_ABS_X: tmp=loadAbsX(tmp); break; case M_ABS_Y: tmp=loadAbsY(tmp); break; case M_IND_X: tmp=loadIndX(tmp); break; case M_IND_Y: tmp=loadIndY(tmp); break; } regA^=tmp; setNZ(regA); } /** * Execute an INC cpu legal instruction. * * @param type the type of addressing */ public void INC(int type) { int tmp, val; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ZERO: tmp=loadStoreZero(tmp); break; case M_ZERO_X: tmp=loadStoreZeroX(tmp); break; case M_ABS: tmp=loadStoreAbs(tmp); break; case M_ABS_X: tmp=loadStoreAbsX(tmp); break; } val=tmp & 0xff; // extract the packed information tmp>>=8; val=(val+1)& 0xff; // do operation setNZ(val); clock(); // ++ store(tmp, val); // write the new value to the effective addr. clock(); // ++ } /** * Execute a INX legal instruction */ public void INX() { load(regPC); // fetch next byte (and forget it) clock(); // 2 regX++; // increment register regX&=0xFF; // use 8 bits setNZ(regX); } /** * Execute a INY legal instruction */ public void INY() { load(regPC); // fetch next byte (and forget it) clock(); // 2 regY++; // icrement register regY&=0xFF; // use 8 bits setNZ(regY); } /** * Execute a IRQ cpu sequence */ public void IRQ() { int tmp; tmp=load(regPC++); // read next byte (and forget it), inc. PC clock(); // 2 store(regS--, regPC>>8); // push PCH on stack (with B flag set), dec. S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 3 store(regS--, regPC & 0xff); // push PCL on stack, decrement S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 4 store(regS--, regP); // push P on stack, decrement S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 5 regPC=(regPC & 0xff00)+ // fetch PCL load(0xfffe); // 6 clock(); regPC=(regPC & 0xff)+ // fetch PCH (load(0xffff)<<8); clock(); // 7 } /** * Execute a ISB cpu undocument instruction. * * @param type the type of addressing */ public void ISB(int type) { int tmp, val, val2, src; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ZERO: tmp=loadStoreZero(tmp); break; case M_ZERO_X: tmp=loadStoreZeroX(tmp); break; case M_ABS: tmp=loadStoreAbs(tmp); break; case M_ABS_X: tmp=loadStoreAbsX(tmp); break; case M_ABS_Y: tmp=loadStoreAbsY(tmp); break; case M_IND_X: tmp=loadStoreIndX(tmp); break; case M_IND_Y: tmp=loadStoreIndY(tmp); break; } val=tmp & 0xff; // extract the packed information tmp>>=8; val=(val+1) & 0xff; // do operation src=val; val2=regA-src-((regP & P_CARRY)!=0 ? 0 : 1); if ((regP & P_DECIMAL)!=0) { int tmpA; tmpA=(regA & 0xf)-(src & 0xf)-((regP & P_CARRY)!=0 ? 0 : 1); if ((tmpA & 0x10)!=0) tmpA=((tmpA - 6) & 0xf)| ((regA & 0xf0)-(src & 0xf0)-0x10); else tmpA=(tmpA & 0xf) | ((regA & 0xf0)-(src & 0xf0)); if ((tmpA & 0x100)!=0) tmpA-=0x60; setCarry(val2>=0); setNZ(val2 & 0xff); setOverflow((((regA^val2) & 0x80)!=0) && (((regA^src) & 0x80))!=0); regA=Unsigned.done((byte)tmpA); } else { setNZ(val2 & 0xff); setCarry(val2>=0); setOverflow((((regA^val2) & 0x80)!=0) && (((regA^src) & 0x80))!=0); regA=Unsigned.done((byte)val2); } clock(); // ++ store(tmp, val); // write the new value to the effective addr. clock(); // ++ } /** * JAM the machine */ public void JAM() { } /** * Execute a JMP cpu legal instruction. * * @parm type the type of addressing */ public void JMP(int type) { int tmp; tmp=load(regPC++); // fetch low addr./pointer byte, increment PC clock(); // 2 switch (type) { case M_ABS: regPC=tmp+ (load(regPC)<<8); // copy low addr. byte to PCL, fetch hi to PCH clock(); // 3 break; case M_IND: int tmp2; tmp+=(load(regPC++)<<8); // fetch pointer address high, increment PC clock(); // 3 tmp2=load(tmp); // fetch low address to latch clock(); // 4 // fetch PCH, copy latch to PCL regPC=(load((tmp & 0xff00)|((tmp+1)& 0xff))<<8)+tmp2; clock(); // 5 } } /** * Execute a JSR cpu legal instruction. */ public void JSR() { int tmp; tmp=load(regPC++); // fetch low address byte, increment PC clock(); // 2 // ? unknown internal operation load(regS); // clock(); // 3 store(regS--, regPC>>8); // push PCH on stack, decrement S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 4 store(regS--, regPC & 0xff); // push PCL on stack, decrement S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 5 regPC=tmp+(load(regPC)<<8); // copy low addr. byte to PCL, fetch hi to PCH clock(); // 6 } /** * Execute a LAS cpu undocument instruction. */ public void LAS() { int tmp; tmp=load(regPC++); // fetch low address byte, increment PC clock(); // 2 tmp=loadAbsY(tmp); regA=regX=regS=regS & tmp; regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; setNZ(regA); } /** * Execute a LAX undocument instruction * * @param type the type of addressing */ public void LAX(int type) { int tmp; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ZERO: tmp=load(tmp); break; case M_ZERO_Y: tmp=loadZeroY(tmp); break; case M_ABS: tmp=loadAbs(tmp); break; case M_ABS_Y: tmp=loadAbsY(tmp); break; case M_IND_X: tmp=loadIndX(tmp); break; case M_IND_Y: tmp=loadIndY(tmp); break; } regA=regX=tmp; setNZ(regA); } /** * Execute a LDA cpu legal instruction. * * @param type the type of addressing */ public void LDA(int type) { int tmp; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_IMM: break; case M_ZERO: tmp=loadZero(tmp); break; case M_ZERO_X: tmp=loadZeroX(tmp); break; case M_ABS: tmp=loadAbs(tmp); break; case M_ABS_X: tmp=loadAbsX(tmp); break; case M_ABS_Y: tmp=loadAbsY(tmp); break; case M_IND_X: tmp=loadIndX(tmp); break; case M_IND_Y: tmp=loadIndY(tmp); break; } regA=tmp; // do operation setNZ(regA); } /** * Execute a LDX cpu legal instruction. * * @param type the type of addressing */ public void LDX(int type) { int tmp; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_IMM: break; case M_ZERO: tmp=loadZero(tmp); break; case M_ZERO_Y: tmp=loadZeroY(tmp); break; case M_ABS: tmp=loadAbs(tmp); break; case M_ABS_Y: tmp=loadAbsY(tmp); break; } regX=tmp; // do operation setNZ(regX); } /** * Execute a LDY cpu legal instruction. * * @param type the type of addressing */ public void LDY(int type) { int tmp; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_IMM: break; case M_ZERO: tmp=loadZero(tmp); break; case M_ZERO_X: tmp=loadZeroX(tmp); break; case M_ABS: tmp=loadAbs(tmp); break; case M_ABS_X: tmp=loadAbsX(tmp); break; } regY=tmp; // do operation setNZ(regY); } /** * Execute an LSR cpu legal instruction. * * @param type the type of addressing */ public void LSR(int type) { int tmp, val; if (type==M_ACC) { load(regPC); // fetch next byte and forget it clock(); // 2 setCarry(regA & 0x01); // do operation regA>>=1; setNZ(regA); return; } tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ZERO: tmp=loadStoreZero(tmp); break; case M_ZERO_X: tmp=loadStoreZeroX(tmp); break; case M_ABS: tmp=loadStoreAbs(tmp); break; case M_ABS_X: tmp=loadStoreAbsX(tmp); break; } val=tmp & 0xff; // extract the packed information tmp>>=8; setCarry(val & 0x01); // do operation val>>=1; setNZ(val); clock(); // + store(tmp, val); // write the new value to the effective addr. clock(); // ++ } /** * Execute a LXA cpu undocument instruction. * Note: this code is not exactly becouse the real is unstable. * * @param value the byte value to use for operation (stored in 32 bits) * @param clk1 the first clock increment * @param clk2 the second clock increment * @param pci the program counter increment */ public void LXA() { int tmp; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 regA=regX=(regA | 0xee) & tmp; setNZ(regA); } /** * Execute a NMI cpu sequence */ public void NMI() { int tmp; tmp=load(regPC++); // read next byte (and forget it), inc. PC clock(); // 2 store(regS--, regPC>>8); // push PCH on stack (with B flag set), dec. S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 3 store(regS--, regPC & 0xff); // push PCL on stack, decrement S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 4 store(regS--, regP); // push P on stack, decrement S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 5 regPC=(regPC & 0xff00)+ // fetch PCL load(0xfffa); // 6 clock(); regPC=(regPC & 0xff)+ // fetch PCH (load(0xfffb)<<8); clock(); // 7 } /** * Execute a NOP cpu legal instruction */ public void NOP() { p0=load(regPC); // read next byte (and forget it) clock(); // 2 } /** * Execute a NOOP cpu undocument instruction * * @param type the type of addressing */ public void NOOP(int type) { int tmp; tmp=load(regPC); // fetch next value, increment PC clock(); // 2 switch (type) { case M_IMM: regPC++; break; case M_IMP: break; case M_ZERO: regPC++; tmp=loadZero(tmp); break; case M_ZERO_X: regPC++; tmp=loadZeroX(tmp); break; case M_ABS: regPC++; tmp=loadAbs(tmp); break; case M_ABS_X: regPC++; tmp=loadAbsX(tmp); break; case M_IND_X: regPC++; tmp=loadIndX(tmp); break; } } /** * Execute a ORA cpu legal instruction. * * @param type the type of addressing */ public void ORA(int type) { int tmp; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_IMM: break; case M_ZERO: tmp=loadZero(tmp); break; case M_ZERO_X: tmp=loadZeroX(tmp); break; case M_ABS: tmp=loadAbs(tmp); break; case M_ABS_X: tmp=loadAbsX(tmp); break; case M_ABS_Y: tmp=loadAbsY(tmp); break; case M_IND_X: tmp=loadIndX(tmp); break; case M_IND_Y: tmp=loadIndY(tmp); break; } regA|=tmp; // do operation setNZ(regA); } /** * Execute a PHA cpu legal instruction */ public void PHA() { p0=load(regPC); // read next instruction byte (forget it) clock(); // 2 store(regS--, regA); // push register on stack, decrement S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 3 } /** * Execute a PHP cpu legal instruction */ public void PHP() { p0=load(regPC); // read next instruction byte (forget it) clock(); // 2 store(regS--, regP | P_BREAK); // push register on stack, decrement S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 3 } /** * Execute a PLA cpu legal instruction */ public void PLA() { p0=load(regPC); // read next instruction byte (forget it) clock(); // 2 regS++; // increment S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 3 regA=load(regS); // pop register from stack setNZ(regA); clock(); // 4 } /** * Execute a PLP cpu legal instruction */ public void PLP() { p0=load(regPC); // read next instruction byte (forget it) clock(); // 2 regS++; // increment S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 3 regP=load(regS) | // pop register from stack P_UNUSED | // unused and break must be 1 P_BREAK; clock(); // 4 } /** * Execute a RLA cpu undocument instruction. * * @param type the type of address */ public void RLA(int type) { int tmp, val; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ZERO: tmp=loadStoreZero(tmp); break; case M_ZERO_X: tmp=loadStoreZeroX(tmp); break; case M_ABS: tmp=loadStoreAbs(tmp); break; case M_ABS_X: tmp=loadStoreAbsX(tmp); break; case M_ABS_Y: tmp=loadStoreAbsY(tmp); break; case M_IND_X: tmp=loadStoreIndX(tmp); break; case M_IND_Y: tmp=loadStoreIndY(tmp); break; } val=tmp & 0xff; // extract the packed information tmp>>=8; val = ((val<<1) | (regP & P_CARRY)); setCarry(val & 0x100); regA&=val; setNZ(regA); clock(); // ++ store(tmp, val); // write the new value to the effective addr. clock(); // ++ } /** * Execute a ROL cpu legal instruction. * * @param type the type of addressing */ public void ROL(int type) { int tmp, val; if (type==M_ACC) { load(regPC); // fetch next byte and forget it clock(); // 2 regA=(regA<<1)|(regP & P_CARRY); setCarry(regA & 0x100); regA&=0xff; //8 bits setNZ(regA); return; } tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ZERO: tmp=loadStoreZero(tmp); break; case M_ZERO_X: tmp=loadStoreZeroX(tmp); break; case M_ABS: tmp=loadStoreAbs(tmp); break; case M_ABS_X: tmp=loadStoreAbsX(tmp); break; } val=tmp & 0xff; // extract the packed information tmp>>=8; val=(val<<1) | (regP & P_CARRY); setCarry(val & 0x100); val&=0xff; //8 bits setNZ(val); clock(); // ++ store(tmp, val); // write the new value to the effective addr. clock(); // ++ } /** * Execute a ROR cpu legal instruction. * * @param type the type of addressing */ public void ROR(int type) { int tmp, val; if (type==M_ACC) { load(regPC); // fetch next byte and forget it clock(); // 2 tmp=regP; setCarry(regA & 0x01); regA=(regA>>1) | (tmp<<7); regA&=0xff; // 8 bits setNZ(regA); return; } tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ZERO: tmp=loadStoreZero(tmp); break; case M_ZERO_X: tmp=loadStoreZeroX(tmp); break; case M_ABS: tmp=loadStoreAbs(tmp); break; case M_ABS_X: tmp=loadStoreAbsX(tmp); break; } val=tmp & 0xff; // extract the packed information tmp>>=8; if ((regP & P_CARRY)!=0) // do operation val|=0x100; setCarry(val & 0x01); val>>=1; setNZ(val); clock(); // ++ store(tmp, val); // write the new value to the effective addr. clock(); // ++ } /** * Execute a RRA cpu undocument instruction. * * @param type the type of addressing */ public void RRA(int type) { int tmp, tmp2, tmpVal, val, val2; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ZERO: tmp=loadStoreZero(tmp); break; case M_ZERO_X: tmp=loadStoreZeroX(tmp); break; case M_ABS: tmp=loadStoreAbs(tmp); break; case M_ABS_X: tmp=loadStoreAbsX(tmp); break; case M_ABS_Y: tmp=loadStoreAbsY(tmp); break; case M_IND_X: tmp=loadStoreIndX(tmp); break; case M_IND_Y: tmp=loadStoreIndY(tmp); break; } val=tmp & 0xff; // extract the packed information tmp>>=8; val2=val>>1; if ((regP & P_CARRY)!=0) val2|=0x80; setCarry(val & 0x1); tmpVal=val2; if ((regP & P_DECIMAL)!=0) { tmp2=(regA & 0x0f)+(tmpVal & 0x0f)+ (regP & P_CARRY); if (tmp2>0x9) tmp2+=0x6; if (tmp2<=0x0f) tmp2=(tmp2 & 0x0f)+(regA & 0xf0)+(tmpVal & 0xf0); else tmp2=(tmp2 & 0x0f)+(regA & 0xf0)+(tmpVal & 0xf0)+ 0x10; setZero(!((regA+tmpVal+(regP & P_CARRY) & 0xff)!=0)); setSign(tmp2 & 0x80); setOverflow((((regA^tmp2) & 0x80)!=0) && !(((regA^tmpVal) & 0x80)!=0)); if ((tmp2 & 0x1f0)> 0x90) tmp2+=0x60; setCarry((tmp2 & 0xff0)>0xf0); } else { tmp2=tmpVal+regA+(regP & P_CARRY); setNZ(tmp2 & 0xff); setOverflow((((regA ^ tmpVal) & 0x80)==0)&&(((regA ^ tmp2) & 0x80)!=0)); setCarry(tmp2>0xff); } regA=tmp2 & 0xff; clock(); // ++ store(tmp, val2); // write the new value to the effective addr. clock(); // ++ } /** * Execute a RTI cpu legal instruction */ public void RTI() { p0=load(regPC); // read next instruction byte clock(); // 2 regS++; // increment S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 3 regP=load(regS++) | // pop P from stack, increment S P_UNUSED | // unused and break must be 1 P_BREAK; regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 4 regPC=load(regS++); // pop PCL from stack, increment S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 5 regPC|=(load(regS)<<8); // pop PCH from stack clock(); // 6 } /** * Execute a RTS cpu legal instruction */ public void RTS() { p0=load(regPC); // read next instruction byte clock(); // 2 regS++; // increment S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 3 regPC=load(regS++); // pop PCL from stack, increment S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 4 regPC|=(load(regS)<<8); // pop PCH from stack clock(); // 5 regPC++; // increment PC clock(); // 6 } /** * Execute a SAX cpu undocument instruction. * * @param type the type of address */ public void SAX(int type) { int tmp=0; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ZERO: break; case M_ZERO_Y: tmp=storeZeroY(tmp); break; case M_ABS: tmp=storeAbs(tmp); break; case M_IND_X: tmp=storeIndX(tmp); break; } store(tmp, regA & regX); // write to effective address clock(); // ++ } /** * Execute a SBC cpu legal instruction. * * @param type the type of addressing */ public void SBC(int type) { int src, tmp; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_IMM: break; case M_ZERO: tmp=loadZero(tmp); break; case M_ZERO_X: tmp=loadZeroX(tmp); break; case M_ABS: tmp=loadAbs(tmp); break; case M_ABS_X: tmp=loadAbsX(tmp); break; case M_ABS_Y: tmp=loadAbsY(tmp); break; case M_IND_X: tmp=loadIndX(tmp); break; case M_IND_Y: tmp=loadIndY(tmp); break; } src=tmp; tmp=regA-src-((regP & P_CARRY)!=0 ? 0 : 1); if ((regP & P_DECIMAL)!=0) { int tmpA; tmpA=(regA & 0xf)-(src & 0xf)-((regP & P_CARRY)!=0 ? 0 : 1); if ((tmpA & 0x10)!=0) tmpA=((tmpA - 6) & 0xf)| ((regA & 0xf0)-(src & 0xf0)-0x10); else tmpA=(tmpA & 0xf) | ((regA & 0xf0)-(src & 0xf0)); if ((tmpA & 0x100)!=0) tmpA-=0x60; setCarry(tmp>=0); setNZ(tmp & 0xff); setOverflow( (((regA^tmp) & 0x80)!=0) && (((regA^src) & 0x80)!=0) ); regA=Unsigned.done((byte)tmpA); } else { setNZ(tmp & 0xff); setCarry(tmp>=0); setOverflow( (((regA^tmp) & 0x80)!=0) && (((regA^src) & 0x80)!=0) ); regA=Unsigned.done((byte)tmp); } } /** * Execute a SBX cpu undocument instruction. */ public void SBX() { int tmp; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 tmp=(regA & regX)-tmp; setCarry(tmp>=0); regX=tmp & 0xff; setNZ(regX); } /** * Execute a SEC cpu legal instruction */ public void SEC() { load(regPC); // fetch next byte (and forget it) clock(); // 2 setCarry(1); } /** * Execute a SED cpu legal instruction */ public void SED() { load(regPC); // fetch next byte (and forget it) clock(); // 2 setDecimal(1); } /** * Execute a SEI cpu legal instruction */ public void SEI() { load(regPC); // fetch next byte (and forget it) clock(); // 2 setInterrupt(1); } /** * Execute a SHA cpu undocument instruction * * @param type the type of addressing */ public void SHA(int type) { int tmp=0; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ABS_Y: tmp=storeAbsY(tmp); break; case M_IND_Y: tmp=storeIndY(tmp); break; } store(tmp, regA & regX & ((tmp>>8) & 0xff)+1); // write to effective address clock(); // ++ } /** * Execute a SHX cpu undocument instruction */ public void SHX() { int tmp=0; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 tmp=storeAbsY(tmp); store(tmp, regX & ((tmp>>8) & 0xff)+1); // write to effective address clock(); // 5 } /** * Execute a SHY cpu undocument instruction */ public void SHY() { int tmp=0; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 tmp=storeAbsX(tmp); store(tmp, regY & ((tmp>>8) & 0xff)+1); // write to effective address clock(); // 5 } /** * Execute a SHS cpu undocument instruction */ public void SHS() { int tmp=0; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 tmp=storeAbsY(tmp); store(tmp, regA & regX & ((tmp>>8) & 0xff)+1); // write to effective address regS=regA & regX; regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 5 } /** * Execute a SLO cpu undocument instruction. * * @param type the type of addressing */ public void SLO(int type) { int tmp, val; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ZERO: tmp=loadStoreZero(tmp); break; case M_ZERO_X: tmp=loadStoreZeroX(tmp); break; case M_ABS: tmp=loadStoreAbs(tmp); break; case M_ABS_X: tmp=loadStoreAbsX(tmp); break; case M_ABS_Y: tmp=loadStoreAbsY(tmp); break; case M_IND_X: tmp=loadStoreIndX(tmp); break; case M_IND_Y: tmp=loadStoreIndY(tmp); break; } val=tmp & 0xff; // extract the packed information tmp>>=8; setCarry(val & 0x80); // do operation val<<=1; regA|=val; setNZ(regA); clock(); // ++ store(tmp, val); // write the new value to the effective addr. clock(); // ++ } /** * Execute a SRE cpu undocument instruction. * * @param type the type of addressing */ public void SRE(int type) { int tmp, val; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ZERO: tmp=loadStoreZero(tmp); break; case M_ZERO_X: tmp=loadStoreZeroX(tmp); break; case M_ABS: tmp=loadStoreAbs(tmp); break; case M_ABS_X: tmp=loadStoreAbsX(tmp); break; case M_ABS_Y: tmp=loadStoreAbsY(tmp); break; case M_IND_X: tmp=loadStoreIndX(tmp); break; case M_IND_Y: tmp=loadStoreIndY(tmp); break; } val=tmp & 0xff; // extract the packed information tmp>>=8; setCarry(val & 0x01); // do operation val>>=1; regA^=val; setNZ(regA); clock(); // ++ store(tmp, val); // write the new value to the effective addr. clock(); // ++ } /** * Execute a STA cpu legal instruction. * * @param type the type of addressing */ public void STA(int type) { int tmp=0; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ZERO: break; case M_ZERO_X: tmp=storeZeroX(tmp); break; case M_ABS: tmp=storeAbs(tmp); break; case M_ABS_X: tmp=storeAbsX(tmp); break; case M_ABS_Y: tmp=storeAbsY(tmp); break; case M_IND_X: tmp=storeIndX(tmp); break; case M_IND_Y: tmp=storeIndY(tmp); break; } store(tmp, regA); // write A to effective address clock(); // ++ } /** * Execute a STX cpu legal instruction. * * @param type the type of addressing */ public void STX(int type) { int tmp=0; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ZERO: break; case M_ZERO_Y: tmp=storeZeroY(tmp); break; case M_ABS: tmp=storeAbs(tmp); break; } store(tmp, regX); // write X to effective address clock(); // ++ } /** * Execute a STY cpu legal instruction. * * @param type the type of addressing */ public void STY(int type) { int tmp=0; tmp=load(regPC++); // fetch next value, increment PC clock(); // 2 switch (type) { case M_ZERO: break; case M_ZERO_X: tmp=storeZeroX(tmp); break; case M_ABS: tmp=storeAbs(tmp); break; } store(tmp, regY); // write Y to effective address clock(); // ++ } /** * Execute a TAX cpu legal instruction */ public void TAX() { load(regPC); // fetch next byte (and forget it) clock(); // 2 regX=regA; setNZ(regA); } /** * Execute a TAY cpu legal instruction */ public void TAY() { load(regPC); // fetch next byte (and forget it) clock(); // 2 regY=regA; setNZ(regA); } /** * Execute a TSX cpu legal instruction */ public void TSX() { load(regPC); // fetch next byte (and forget it) clock(); // 2 regX=regS & 0xFF; setNZ(regX); } /** * Execute a TXA cpu legal instruction */ public void TXA() { load(regPC); // fetch next byte (and forget it) clock(); // 2 regA=regX; setNZ(regA); } /** * Execute a TXS cpu legal instruction */ public void TXS() { load(regPC); // fetch next byte (and forget it) clock(); // 2 regS=regX; regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; } /** * Execute a TYA cpu legal instruction */ public void TYA() { load(regPC); // fetch next byte (and forget it) clock(); // 2 regA=regY; setNZ(regA); } /** * Execute a USBC cpu undocument instruction */ public void USBC() { SBC(M_IMM); } /** * Decode the opcode and execute the operation */ public void decode(){ if ((p0>=0x00) && (p0<0x20)) { switch (p0) { case 0x10: BRANCH((regP & P_SIGN)==0); break; // 10: BPL $nnnn case 0x08: PHP(); break; // 08: PHP case 0x18: CLC(); break; // 18: CLC case 0x01: ORA(M_IND_X); break; // 01: ORA ($nn,X) case 0x05: ORA(M_ZERO); break; // 05: ORA $nn case 0x09: ORA(M_IMM); break; // 09: ORA #$nn case 0x0D: ORA(M_ABS); break; // 0D: ORA $nnnn case 0x11: ORA(M_IND_Y); break; // 11: ORA ($nn),Y case 0x15: ORA(M_ZERO_X); break; // 15: ORA $nn,X case 0x19: ORA(M_ABS_Y); break; // 19: ORA $nnnn,Y case 0x1D: ORA(M_ABS_X); break; // 1D: ORA $nnnn,X case 0x06: ASL(M_ZERO); break; // 06: ASL $nn case 0x0A: ASL(M_ACC); break; // 0A: ASL A case 0x0E: ASL(M_ABS); break; // 0E: ASL $nnnn case 0x16: ASL(M_ZERO_X); break; // 16: ASL $nn,X case 0x1E: ASL(M_ABS_X); break; // 1E: ASL $nnnn,X case 0x03: SLO(M_IND_X); break; // 03: SLO ($nn,X) case 0x07: SLO(M_ZERO); break; // 07: SLO $nn case 0x0F: SLO(M_ABS); break; // 0F: SLO $nnnn case 0x13: SLO(M_IND_Y); break; // 13: SLO ($nn),Y case 0x17: SLO(M_ZERO_X); break; // 17: SLO $nn,X case 0x1B: SLO(M_ABS_Y); break; // 1B: SLO $nnnn,Y case 0x1F: SLO(M_ABS_X); break; // 1F: SLO $nnnn,X case 0x00: BRK(); break; // 00: BRK case 0x0B: ANC(); break; // 0B: ANC #$nn case 0x04: NOOP(M_ZERO); break; // 04: NOOP $nn case 0x0C: NOOP(M_ABS); break; // 0C: NOOP $nnnn case 0x14: NOOP(M_ZERO_X); break; // 14: NOOP $nn,X case 0x1A: NOOP(M_IMP); break; // 1A: NOOP case 0x1C: NOOP(M_ABS_X); break; // 1C: NOOP $nnnn,X case 0x02: // 02: JAM case 0x12: JAM(); break; // 12: JAM } return; } if ((p0>=0x20) && (p0<0x40)) { switch (p0) { case 0x30: BRANCH((regP & P_SIGN)!=0); break; // 30: BMI $nnnn case 0x28: PLP(); break; // 28: PLP case 0x38: SEC(); break; // 38: SEC case 0x21: AND(M_IND_X); break; // 21: AND ($nn,X) case 0x25: AND(M_ZERO); break; // 25: AND $nn case 0x29: AND(M_IMM); break; // 29: AND #$nn case 0x2D: AND(M_ABS); break; // 2D: AND $nnnn case 0x31: AND(M_IND_Y); break; // 31: AND ($nn),Y case 0x35: AND(M_ZERO_X); break; // 35: AND $nn,X case 0x39: AND(M_ABS_Y); break; // 39: AND $nnnn,Y case 0x3D: AND(M_ABS_X); break; // 3D: AND $nnnn,X case 0x26: ROL(M_ZERO); break; // 26: ROL $nn case 0x2A: ROL(M_ACC); break; // 2A: ROL A case 0x2E: ROL(M_ABS); break; // 2E: ROL $nnnn case 0x36: ROL(M_ZERO_X); break; // 36: ROL $nn,X case 0x3E: ROL(M_ABS_X); break; // 3E: ROL $nnnn,X case 0x20: JSR(); break; // 20: JSR $nnnn case 0x24: BIT(M_ZERO); break; // 24: BIT $nn case 0x2C: BIT(M_ABS); break; // 2C: BIT $nnnn case 0x23: RLA(M_IND_X); break; // 23: RLA ($nn,X) case 0x27: RLA(M_ZERO); break; // 27: RLA $nn case 0x2F: RLA(M_ABS); break; // 2F: RLA $nnnn case 0x33: RLA(M_IND_Y); break; // 33: RLA ($nn),Y case 0x37: RLA(M_ZERO_X); break; // 37: RLA $nn,X case 0x3B: RLA(M_ABS_Y); break; // 3B: RLA $nnnn,Y case 0x3F: RLA(M_ABS_X); break; // 3F: RLA $nnnn,X case 0x2B: ANC(); break; // 2B: ANC #$nn case 0x34: NOOP(M_ZERO_X); break; // 34: NOOP $nn,X case 0x3A: NOOP(M_IMP); break; // 3A: NOOP case 0x3C: NOOP(M_ABS_X); break; // 3C: NOOP $nnnn,X case 0x22: // 22: JAM case 0x32: JAM(); break; // 32: JAM } return; } if ((p0>=0x40) && (p0<0x60)) { switch (p0) { case 0x50: BRANCH((regP & P_OVERFLOW)==0); // 50: BVC $nnnn break; case 0x48: PHA(); break; // 48: PHA case 0x58: CLI(); break; // 58: CLI case 0x41: EOR(M_IND_X); break; // 41: EOR ($nn,X) case 0x45: EOR(M_ZERO); break; // 45: EOR $nn case 0x49: EOR(M_IMM); break; // 49: EOR #$nn case 0x4D: EOR(M_ABS); break; // 4D: EOR $nnnn case 0x51: EOR(M_IND_Y); break; // 51: EOR ($nn),Y case 0x55: EOR(M_ZERO_X); break; // 55: EOR $nn,X case 0x59: EOR(M_ABS_Y); break; // 59: EOR $nnnn,Y case 0x5D: EOR(M_ABS_X); break; // 5D: EOR $nnnn,X case 0x46: LSR(M_ZERO); break; // 46: LSR $nn case 0x4A: LSR(M_ACC); break; // 4A: LSR A case 0x4E: LSR(M_ABS); break; // 4E: LSR $nnnn case 0x56: LSR(M_ZERO_X); break; // 56: LSR $nn,X case 0x5E: LSR(M_ABS_X); break; // 5E: LSR $nnnn,X case 0x40: RTI(); break; // 40: RTI case 0x4C: JMP(M_ABS); break; // 4C: JMP $nnnn case 0x43: SRE(M_IND_X); break; // 43: SRE ($nn,X) case 0x47: SRE(M_ZERO); break; // 47: SRE $nn case 0x4F: SRE(M_ABS); break; // 4F: SRE $nnnn case 0x53: SRE(M_IND_Y); break; // 53: SRE ($nn),Y case 0x57: SRE(M_ZERO_X); break; // 57: SRE $nn,X case 0x5B: SRE(M_ABS_Y); break; // 5B: SRE $nnnn,Y case 0x5F: SRE(M_ABS_X); break; // 5F: SRE $nnnn,X case 0x4B: ASR(); break; // 4B: ASR #$nn case 0x44: NOOP(M_ZERO); break; // 44: NOOP $nn case 0x54: NOOP(M_ZERO_X); break; // 54: NOOP $nn,X case 0x5A: NOOP(M_IMP); break; // 5A: NOOP case 0x5C: NOOP(M_ABS_X); break; // 5C: NOOP $nnnn,X case 0x42: // 42: JAM case 0x52: JAM(); break; // 52: JAM } return; } if ((p0>=0x60) && (p0<0x80)) { switch (p0) { case 0x70: BRANCH((regP & P_OVERFLOW)!=0); // 70: BVS $nnnn break; case 0x68: PLA(); break; // 68: PLA case 0x78: SEI(); break; // 78: SEI case 0x61: ADC(M_IND_X); break; // 61: ADC ($nn,X) case 0x65: ADC(M_ZERO); break; // 65: ADC $nn case 0x69: ADC(M_IMM); break; // 69: ADC #$nn case 0x6D: ADC(M_ABS); break; // 6D: ADC $nnnn case 0x71: ADC(M_IND_Y); break; // 71: ADC ($nn),Y case 0x75: ADC(M_ZERO_X); break; // 75: ADC $nn,X case 0x79: ADC(M_ABS_Y); break; // 79: ADC $nnnn,Y case 0x7D: ADC(M_ABS_X); break; // 7D: ADC $nnnn,X case 0x66: ROR(M_ZERO); break; // 66: ROL $nn case 0x6A: ROR(M_ACC); break; // 6A: ROL A case 0x6E: ROR(M_ABS); break; // 6E: ROL $nnnn case 0x76: ROR(M_ZERO_X); break; // 76: ROL $nn,X case 0x7E: ROR(M_ABS_X); break; // 7E: ROL $nnnn,X case 0x60: RTS(); break; // 60: RTS case 0x6C: JMP(M_IND); break; // 6C: JMP ($nnnn) case 0x63: RRA(M_IND_X); break; // 63: RLA ($nn,X) case 0x67: RRA(M_ZERO); break; // 67: RLA $nn case 0x6F: RRA(M_ABS); break; // 6F: RLA $nnnn case 0x73: RRA(M_IND_Y); break; // 73: RLA ($nn),Y case 0x77: RRA(M_ZERO_X); break; // 77: RLA $nn,X case 0x7B: RRA(M_ABS_Y); break; // 7B: RLA $nnnn,Y case 0x7F: RRA(M_ABS_X); break; // 7F: RLA $nnnn,X case 0x6B: ARR(); break; // 6B: ARR #$nn case 0x64: NOOP(M_ZERO); break; // 64: NOOP $nn case 0x74: NOOP(M_ZERO_X); break; // 74: NOOP $nn,X case 0x7A: NOOP(M_IMP); break; // 7A: NOOP case 0x7C: NOOP(M_ABS_X); break; // 7C: NOOP $nnnn,X case 0x62: // 62: JAM case 0x72: JAM(); break; // 72: JAM } return; } if ((p0>=0x80) && (p0<0xA0)) { switch (p0) { case 0x90: BRANCH((regP & P_CARRY)==0); break; // 90: BCC $nnnn case 0x88: DEY(); break; // 88: DEY case 0x98: TYA(); break; // 98: TYA case 0x81: STA(M_IND_X); break; // 81: STA ($nn,X) case 0x85: STA(M_ZERO); break; // 85: STA $nn case 0x8D: STA(M_ABS); break; // 8D: STA $nnnn case 0x91: STA(M_IND_Y); break; // 91: STA ($nn),Y case 0x95: STA(M_ZERO_X); break; // 95: STA $nn,X case 0x99: STA(M_ABS_Y); break; // 99: STA $nnnn,Y case 0x9D: STA(M_ABS_X); break; // 9D: STA $nnnn,X case 0x86: STX(M_ZERO); break; // 86: STX $nn case 0x96: STX(M_ZERO_Y); break; // 96: STX $nn,Y case 0x8E: STX(M_ABS); break; // 8E: STX $nnnn case 0x84: STY(M_ZERO); break; // 84: STX $nn case 0x94: STY(M_ZERO_X); break; // 94: STX $nn,Y case 0x8C: STY(M_ABS); break; // 8C: STX $nnnn case 0x8A: TXA(); break; // 8A: TXA case 0x9A: TXS(); break; // 9A: TXS case 0x83: SAX(M_IND_X); break; // 83: SAX ($nn),X case 0x87: SAX(M_ZERO); break; // 87: SAX $nn case 0x8F: SAX(M_ABS); break; // 8F: SAX $nnnn case 0x97: SAX(M_ZERO_Y); break; // 97: SAX $nn,Y case 0x8B: ANE(); break; // 8B: ANE #$nn case 0x93: SHA(M_IND_Y); break; // 93: SHA ($nn),Y case 0x9F: SHA(M_ABS_Y); break; // 9F: SHA $nnnn,Y case 0x9E: SHX(); break; // 9E: SHX $nnnn,X case 0x9C: SHY(); break; // 9C: SHY $nnnn,X case 0x9B: SHS(); break; // 9B: SHS $nnnn,Y case 0x80: NOOP(M_IMM); break; // 80: NOOP #$nn case 0x82: NOOP(M_IMM); break; // 82: NOOP #$nn case 0x89: NOOP(M_IMM); break; // 89: NOOP #$nn case 0x92: JAM(); break; // 92: JAM } return; } if ((p0>=0xA0) && (p0<0xC0)) { switch (p0) { case 0xB0: BRANCH((regP & P_CARRY)!=0); break; // B0: BCS $nnnn case 0xAA: TAX(); break; // AA: TAX case 0xA8: TAY(); break; // A8: TAY case 0xBA: TSX(); break; // BA: TSX case 0xA1: LDA(M_IND_X); break; // A1: LDA ($nn,X) case 0xA5: LDA(M_ZERO); break; // A5: LDA $nn case 0xA9: LDA(M_IMM); break; // A9: LDA #$nn case 0xAD: LDA(M_ABS); break; // AD: LDA $nnnn case 0xB1: LDA(M_IND_Y); break; // B1: LDA ($nn),Y case 0xB5: LDA(M_ZERO_X); break; // B5: LDA $nn,X case 0xB9: LDA(M_ABS_Y); break; // B9: LDA $nnnn,Y case 0xBD: LDA(M_ABS_X); break; // BD: LDA $nnnn,X case 0xA2: LDX(M_IMM); break; // A2: LDX #$nn case 0xA6: LDX(M_ZERO); break; // A6: LDX $nn case 0xAE: LDX(M_ABS); break; // AE: LDX $nnnn case 0xB6: LDX(M_ZERO_Y); break; // B6: LDX $nn,Y case 0xBE: LDX(M_ABS_Y); break; // BE: LDX $nnnn,Y case 0xA0: LDY(M_IMM); break; // A0: LDY #$nn case 0xA4: LDY(M_ZERO); break; // A4: LDY $nn case 0xAC: LDY(M_ABS); break; // AC: LDY $nnnn case 0xB4: LDY(M_ZERO_X); break; // B4: LDY $nn,X case 0xBC: LDY(M_ABS_X); break; // BC: LDY $nnnn,X case 0xB8: CLV(); break; // B8: CLV case 0xAB: LXA(); break; // AB: LXA #$nn case 0xA3: LAX(M_IND_X); break; // A3: LAX ($nn,X) case 0xA7: LAX(M_ZERO); break; // A7: LAX $nn case 0xAF: LAX(M_ABS); break; // AF: LAX $nnnn case 0xB3: LAX(M_IND_Y); break; // B3: LAX ($nn),Y case 0xB7: LAX(M_ZERO_Y); break; // B7: LAX $nn,Y case 0xBF: LAX(M_ABS_Y); break; // BF: LAX $nnnn,Y case 0xBB: LAS(); break; // BB: LAS $nnnn,Y case 0xB2: JAM(); break; // B2: JAM } return; } if ((p0>=0xC0) && (p0<0xE0)) { switch (p0) { case 0xD0: BRANCH((regP & P_ZERO)==0); break; // D0: BNE $nnnn case 0xD8: CLD(); break; // D8: CLD case 0xC1: CMP(M_IND_X); break; // C1: CMP ($nn,X) case 0xC5: CMP(M_ZERO); break; // C5: CMP $nn case 0xC9: CMP(M_IMM); break; // C9: CMP #$nn case 0xCD: CMP(M_ABS); break; // CD: CMP $nnnn case 0xD1: CMP(M_IND_Y); break; // D1: CMP ($nn),Y case 0xD5: CMP(M_ZERO_X); break; // D5: CMP $xx,X case 0xD9: CMP(M_ABS_Y); break; // D9: CMP $nnnn,Y case 0xDD: CMP(M_ABS_X); break; // DD: CMP $nnnn,X case 0xC0: CPY(M_IMM); break; // C0: CMP #$nn case 0xC4: CPY(M_ZERO); break; // C4: CMP $nn case 0xCC: CPY(M_ABS); break; // CC: CMP $nnnn case 0xC3: DCP(M_IND_X); break; // C3: DCP ($nn,X) case 0xC7: DCP(M_ZERO); break; // C7: DCP $nn case 0xCF: DCP(M_ABS); break; // CF: DCP $nnnn case 0xD3: DCP(M_IND_Y); break; // D3: DCP ($nn),Y case 0xD7: DCP(M_ZERO_X); break; // D7: DCP $nn,X case 0xDB: DCP(M_ABS_Y); break; // DB: DCP $nnnn,Y case 0xDF: DCP(M_ABS_X); break; // DF: DCP $nnnn,X case 0xC6: DEC(M_ZERO); break; // C6: DEC $nn case 0xCE: DEC(M_ABS); break; // CE: DEC $nnnn case 0xD6: DEC(M_ZERO_X); break; // D6: DEC $nn,X case 0xDE: DEC(M_ABS_X); break; // DE: DEC $nnnn,X case 0xCA: DEX(); break; // CA: DEX case 0xC8: INY(); break; // C8: INY case 0xCB: SBX(); break; // CB: SBX #$nn case 0xC2: NOOP(M_IMM); break; // C2: NOOP #$nn case 0xD4: NOOP(M_ZERO_X); break; // D4: NOOP $nn,X case 0xDA: NOOP(M_IMP); break; // DA: NOOP case 0xDC: NOOP(M_ABS_X); break; // DC: NOOP $nnnn,X case 0xD2: JAM(); break; // D2: JAM } return; } if ((p0>=0xE0) && (p0<=0xFF)) { switch (p0) { case 0xF0: BRANCH((regP & P_ZERO)!=0); break; // F0: BEQ $nnnn case 0xE0: CPX(M_IMM); break; // E0: CMP #$nn case 0xE4: CPX(M_ZERO); break; // E4: CMP $nn case 0xEC: CPX(M_ABS); break; // EC: CMP $nnnn case 0xE6: INC(M_ZERO); break; // E6: INC $nn case 0xEE: INC(M_ABS); break; // EE: INC $nnnn case 0xF6: INC(M_ZERO_X); break; // F6: INC $nn,X case 0xFE: INC(M_ABS_X); break; // FE: INC $nnnn,X case 0xE8: INX(); break; // E8: INX case 0xE3: ISB(M_IND_X); break; // E3: ISB ($nn,X) case 0xE7: ISB(M_ZERO); break; // E7: ISB $nn case 0xEF: ISB(M_ABS); break; // EF: ISB $nnnn case 0xF3: ISB(M_IND_Y); break; // F3: ISB ($nn),Y case 0xF7: ISB(M_ZERO_X); break; // F7: ISB $nn,X case 0xFB: ISB(M_ABS_Y); break; // FB: ISB $nnnn,Y case 0xFF: ISB(M_ABS_X); break; // FF: ISB $nnnn,X case 0xF2: JAM(); break; // F2: JAM case 0xEA: NOP(); break; // EA: NOP case 0xE2: NOOP(M_IMM); break; // E2: NOOP #$nn case 0xF4: NOOP(M_IND_X); break; // F4: NOOP ($nn,X) case 0xFA: NOOP(M_IMP); break; // FA: NOOP case 0xFC: NOOP(M_ABS_X); break; // FC: NOOP $nnnn,X case 0xE1: SBC(M_IND_X); break; // E1: SBC ($nn,X) case 0xE5: SBC(M_ZERO); break; // E5: SBC $nn case 0xE9: SBC(M_IMM); break; // E9: SBC #$nn case 0xED: SBC(M_ABS); break; // ED: SBC $nnnn case 0xF1: SBC(M_IND_Y); break; // F1: SBC ($nn),Y case 0xF5: SBC(M_ZERO_X); break; // F5: SBC $nn,X case 0xF9: SBC(M_ABS_Y); break; // F9: SBC $nnnn,Y case 0xFD: SBC(M_ABS_X); break; // FD: SBC $nnnn,X case 0xEB: USBC(); break; // USBC #$nn case 0xF8: SED(); break; // F8: SED } return; } } /** * Search for pending interrupts signal and execute them. * * The NMI interrupt is valutated before the IRQ. So if an IRQ and NMI overlap * each other (one interrupt occurs before fetching the interrupt vector for * the other interrupt), the NMI is execute first, and the IRQ after the first * instruction of NMI handler. * Note. the IRQ sequence is interrupted before 4 cycle if become a NMI. */ public void interrupt() { if (nmiPending) { // do nmi ///load(regPC++); // read next byte (and forget it), inc. PC ///clock(); // 2 load(regPC++); // read next byte opcode as usual, inc. PC clock(); // 1 load(regPC--); // read next byte but dec PC clock(); // 2 /// setBreak(1); // push PCH on stack (with B flag set), dec. S store(regS--, regPC>>8); regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 3 store(regS--, regPC & 0xff);// push PCL on stack, decrement S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 4 store(regS--, regP&~P_BREAK); // push P on stack, decrement S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 5 regPC=(regPC & 0xff00)+ // fetch PCL load(0xfffa); // 6 clock(); regPC=(regPC & 0xff)+ // fetch PCH (load(0xfffb)<<8); clock(); // 7 //synchronized (this) { // disable NMI signal nmiPending=false; //} return; } if ((irqPending) && ((regP & P_INTERRUPT)!=P_INTERRUPT)) { ///load(regPC++); // read next byte (and forget it), inc. PC ///clock(); // 2 load(regPC++); // read next byte opcode as usual, inc. PC clock(); // 1 load(regPC--); // read next byte but dec PC clock(); // 2 /// store(regS--, regPC>>8); // push PCH on stack, dec. S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 3 store(regS--, regPC & 0xff);// push PCL on stack, decrement S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 4 if (nmiPending) { // skip IRQ store(regS--, regP&~P_BREAK); // push P on stack, decrement S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 5 regPC=(regPC & 0xff00)+ // fetch PCL load(0xfffa); // 6 clock(); regPC=(regPC & 0xff)+ // fetch PCH (load(0xfffb)<<8); clock(); // 7 //synchronized (this) { // disable NMI signal nmiPending=false; //} return; } else { store(regS--, // push P (with BREAK at 0) on stack regP&~P_BREAK); // decrement S regS&=0x1FF; // regS is in 100h-1FFh regS|=0x100; clock(); // 5 setInterrupt(1); regPC=(regPC & 0xff00)+ // fetch PCL load(0xfffe); // 6 clock(); regPC=(regPC & 0xff)+ // fetch PCH (load(0xffff)<<8); clock(); // 7 //synchronized (this) { // disable IRQ signal irqPending=false; //} return; } } } /** * Performs the body of cpu emulation. * The emulation don't start if the io port are not set up with a correct * handler. */ public void run() { monitor.opNotify(); // notify that we will use it while(ioPort==null) { this.yield(); } // do nothing until the bus is available while (!bus.isInitialized()) { // there's a bus? this.yield(); // no, attend power } regA=0; regX=0; regY=0; regP=P_UNUSED | P_BREAK; regS=0x1FF; regPC=0xFCE2; while(true) { if (sigRESET==1) { //reset(); } if (!power) { regA=0; regX=0; regY=0; regP=0; regS=0x1FF; regPC=0xFFFC; // attend that power returned while (!power) { this.yield(); // give mutex to other threads } regPC=bus.load(regPC, view, sigAEC)+ (bus.load(regPC+1, view, sigAEC)<<8); if (regPC==0xffff) { regPC=0xFFFC; regPC=bus.load(regPC, view, sigAEC)+ (bus.load(regPC+1, view, sigAEC)<<8); } clock(); // attend synchronization } ///System.out.println(Integer.toHexString(regPC)); interrupt(); // search for interrupt or reset signal p0=load(regPC++); // read opcode, increment pc regPC&=0xFFFF; // mask PC clock(); // 1 decode(); // decode and execute the instruction } } /** * Notify a signal to the cpu * * @param type the type of signal (S_RESET, S_IRQ, S_NMI, ...) * @param value the value of the signal (0/1) */ public void notifySignal(int type, int value) { switch (type) { case S_IRQ: // interrupt IRQ sigIRQ=value; if (value==0) irqPending=false; break; case S_NMI: // interrupt NMI sigNMI=value; break; case S_RDY: // cpu READY sigRDY=value; break; case S_AEC: // Bus tri-state sigAEC=value; break; case S_RESET: // cpu Reset sigRESET=value; break; default: System.err.println("ERROR: an invalid "+type+ " signal was notify to M6510"); } } /** * Power on the electronic component */ public void powerOn() { power=true; // power is on } /** * Power off the electronic component */ public void powerOff() { power=false; // power is off } private String strReg() { return (" A:"+Integer.toHexString(regA)+" X:"+Integer.toHexString(regX)+" Y:"+Integer.toHexString(regY)+" SP:"+Integer.toHexString(regS)+" F:"+Integer.toBinaryString(regP)); } }
104,429
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
keys.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/device/keys.java
/** * @(#)Keys.java 2000/04/16 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.device; /** * This interface define some methods that a matrix keyboard may use. * Remember that a matrix keyboard is a type of keyboard, where there's n*m * keys connected in a matrix like this: * <pre> * 0 0 0 * | | | * A ---@---@---@--- @= a key switch * | | | * B ---@---@---@--- * | | | * C D E * </pre> * The methods <code>pressKey</code> and <code>releaseKey</code> are to be * called where a key in the matrix is pressed ore released. * * @author Ice * @version 1.00 16/04/2000 */ public interface keys { /** * Press the key in the <code>a, b</code> matrix position * * @param a the row position * @param b the column position */ public void pressKey(int a, int b); /** * Release the key in the <code>a, b</code> matrix position * * @param a the row position * @param b the column position */ public void releaseKey(int a, int b); }
1,889
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
C64Keyboard.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/device/C64Keyboard.java
/** * @(#)C64Keyboard.java 2000/04/16 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.device; import sw_emulator.util.Monitor; import sw_emulator.util.WireAnd; import sw_emulator.hardware.io.C64Cia1IO; /** * Emulate the C64 matrix keyboard. * This is the C64 matrix keyboard layout: * <pre> * PB 0 1 2 7 4 5 6 3 * | | | | | | | | * ----1---- <- --CTRL--STOP-SPACE--- -----O-----2--- * | | | | | | | | * ----3-----W-----A---SHIFT---Z-----S-----E-----4--- * | | | | | | | | * ----5-----R-----D-----X-----C-----F-----T-----6--- * | | | | | | | | * ----7-----Y-----G-----V-----@-----H-----U-----8--- * | | | | | | | | * ----9-----I-----J-----N-----M-----K-----D-----0--- * | | | | | | | | * --- + ----P-----L-----,-----.----- ----- ---- - -- * | | | | | | | | * ---- -----*-----:-----;---SHIFT---=-----^----CLR-- * | | | | | | | | * ---DEL---RET---L/R---U/D---F1----F3----F5---- -- * | | | | | | | | * * </pre> * This class manage also the wire and lines that something input and output * lines connected to the keyboard have (due to the joystick connection). * For speed up function, the wire and are used for all the input and output * lines: a line that are not wire and, means that the second line of * <code>WireAnd</code> are not used. * * @author Ice * @version 1.00 16/04/2000 */ public class C64Keyboard extends Keyboard{ /** * The matrix for keys in the C64 keyboard. * The last line has the RESTORE keys like the last key) */ protected static int[][] c64Matrix={ {K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE}, {K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE}, {K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE}, {K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE}, {K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE}, {K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE, K_RELEASE} }; /** * The wire columns lines view by keyboard */ public WireAnd[] colLines={new WireAnd(), new WireAnd(), new WireAnd(), new WireAnd(), new WireAnd(), new WireAnd(), new WireAnd(), new WireAnd()}; /** * The wire rows lines view by keyboard */ public WireAnd[] rowLines={new WireAnd(), new WireAnd(), new WireAnd(), new WireAnd(), new WireAnd(), new WireAnd(), new WireAnd(), new WireAnd()}; /** * The Cia 1 I/O ports */ public C64Cia1IO cia; /** * Monitor where attend synchronization */ public Monitor monitor=new Monitor("CIA 1"); /** * Construct the C64 matrix keyboard. * * @param cia the Cia 1 I/O ports */ public C64Keyboard(C64Cia1IO cia){ super(c64Matrix); this.cia=cia; } /** * Set the I/O from/to Cia * * @param cia the Cia 1 I/O ports */ public void setIO(C64Cia1IO cia){ this.cia=cia; } /** * Update the state of output for Cia 1. * This is done by gives the key pressed in the columns that have a ground * signal to the output rows. * * Note that not all the input and output lines are wire and of two lines. */ public void updateState() { int a,b; // row/col index int[] tmp={1, 1, 1, 1, 1, 1, 1, 1}; // matrix result for (b=0; b<8; b++) { if (colLines[b].out==0) // is this line selected ? for (a=0; a<8; a++) { tmp[a]&=keysMatrix[a][b]; // remember key pressed } } for (a=0; a<8; a++) { // send the value of output lines rowLines[a].line1(tmp[a]); } cia.portB.setP0(rowLines[0].out); cia.portB.setP1(rowLines[1].out); cia.portB.setP2(rowLines[2].out); cia.portB.setP3(rowLines[3].out); cia.portB.setP4(rowLines[4].out); cia.portB.setP5(rowLines[5].out); cia.portB.setP6(rowLines[6].out); cia.portB.setP7(rowLines[7].out); } /** * Attend input changes and then calculate output */ public void run(){ while (cia==null) this.yield(); while (true) { monitor.opWait(); // attend cia or joystick event updateState(); // update state of output } } }
5,759
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
C64Form.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/device/C64Form.java
package sw_emulator.hardware.device; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class C64Form extends JFrame implements ActionListener { /** * A simple Frame to display the content of a TV object. * * @author Michele Caira * @version 1.0 */ /** * The reference to the TV object. */ private Canvas tv; public C64Form() { setTitle("JC64"); getContentPane().setLayout(new BorderLayout()); Dimension d = getToolkit().getScreenSize(); setBounds((d.width-320)/2,(d.height-200)/2,330,225); initComponents(); } private void initComponents() { MenuBar menuBar=new MenuBar(); String[] file = {"Load",null,"Exit"}; String[] options = {"320x200","480x300","640x400"}; String[] info = {"Authors","About"}; menuBar.add(createC64Menu("File",file)); menuBar.add(createC64Menu("Options",options)); menuBar.add(createC64Menu("?",info)); setMenuBar(menuBar); } private Menu createC64Menu(String label,String[] items) { Menu menu=new Menu(label); for(int i=0;i<items.length;i++) { if(items[i]!=null) { MenuItem item = new MenuItem(items[i]); item.addActionListener(this); menu.add(item); } else menu.addSeparator(); } return menu; } public void actionPerformed(ActionEvent e) { String cmd=e.getActionCommand(); if(cmd.equals("Load")) { System.out.println("Sorry not implemented yet :("); } else if(cmd.equals("320x200")) { setSize(320,200); repaint(); } else if(cmd.equals("480x300")) { setSize(480,300); repaint(); } else if(cmd.equals("640x400")) { setSize(640,400); repaint(); } else if(cmd.equals("Authors")) { System.out.println("Stefano Tognon [email protected] from Italy "); System.out.println("Michele Caira (supporter!!) [email protected] from Italy"); } else if(cmd.equals("About")) { System.out.println("JC64 Emu..."); } if(cmd.equals("Exit")) { setVisible(false); System.exit(0); } } public void setSize(int width,int height) { if(tv!=null) tv.setSize(width,height); super.setSize(width+10,height+25); } public void addTV(Canvas tv) { this.tv=tv; getContentPane().add(tv,BorderLayout.CENTER); } public void update(Graphics g) { if(tv!=null) tv.repaint(); super.update(g); // ancora utile? } }//C64Form
2,624
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
Keyboard.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/device/Keyboard.java
/** * @(#)Keyboard.java 2000/04/16 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.device; import java.lang.Thread; /** * Emulate a matrix keyboard. * In this type of keyboard, there's n*m keys connected in a matrix like this: * <pre> * 1 1 1 * | | | * A ---@---@---@--- @= a key switch * | | | * B ---@---@---@--- * | | | * C D E * </pre> * If we make A equal to 0 and B equal to 1, from the C, D, and E values, we can * determine how key is pressed in the A line. * Note that if there's some special keys (e.g. keys that are not in the matrix, * because they have special function) they must be mapped also in the matrix * (this is for simplify the emulation). * * @author Ice * @version 1.00 16/04/2000 */ public abstract class Keyboard extends Thread implements keys { // value for key state public static final int K_PRESS = 0; public static final int K_RELEASE = 1; /** * General n*m matrix of keys: 0 means key pressed */ protected int[][] keysMatrix; /** * Construct a generic matrix keyboard. * * @param keysMatrix a matrix of keys */ public Keyboard(int[][] keysMatrix) { this.keysMatrix=keysMatrix; } /** * Press the key in the <code>a, b</code> matrix position * * @param a the row position * @param b the column position */ public void pressKey(int a, int b) { keysMatrix[a][b]=K_PRESS; updateState(); // update output state } /** * Release the key in the <code>a, b</code> matrix position * * @param a the row position * @param b the column position */ public void releaseKey(int a, int b) { keysMatrix[a][b]=K_RELEASE; updateState(); // update output state } /** * Update the state of output. * This is abstract, so it must be implemented: the methods must read the * input and then calculate the matrix output. */ public abstract void updateState(); }
2,870
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
TV.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/device/TV.java
/** * @(#)TV.java 2000/01/21 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.device; import sw_emulator.hardware.device.raster; import java.awt.*; import java.awt.image.*; /** * TV is a class which display on the screen the output of the VIC. * In my idea TV behaves like a printer with a carriage which * moves every time the VIC send a pixel. * *@author Michele Caira [email protected] *@version 1.2 28/4/2000 */ public class TV extends Canvas implements raster { /** * Width of video-buffer. */ public static final int SCREEN_W = 405;//320; /** * Height of video-buffer. */ public static final int SCREEN_H = 284;//200; /** * Size of video-buffer. */ public static final int SCREEN_SIZE = SCREEN_W*SCREEN_H; /** * Create a specific ColorModel for C64. */ public static ColorModel createC64colorModel() { byte[] red = {0,-1,-83,115,-67,115, 66, -1, -56,-124, -1,123,-108,-91,-100,-50}; byte[] green = {0,-1, 82, -9,107,-25, 66, -1,-114, 99,-100,123,-108, -1,-100,-50}; byte[] blue = {0,-1, 74, -9,-67,115,-58,123, 47, 57,-100,123,-108,-91, -9,-50}; return new IndexColorModel(8,16,red,green,blue); } /** * The carriage mentioned below. */ private int carriage; /** * The video-buffer. */ private int[] screen; private Image image; private MemoryImageSource source; /** * The color used as background. */ protected int backgroundClr; /** * Variabili per la visualizzazione 'ritardata'. */ protected int updateDelay; protected int timerDelay; public TV() { super(); backgroundClr=BLUE; carriage=-1; updateDelay=0; timerDelay=-1; screen=new int[SCREEN_W*SCREEN_H]; clear(); source=new MemoryImageSource (SCREEN_W,SCREEN_H,createC64colorModel(),screen,0,SCREEN_W); source.setAnimated(true); image=createImage(source); } public void paint(Graphics g) { update(g); } public void update(Graphics g) { g.drawImage(image,0,0,getWidth(),getHeight(),this); } /** * Clear the video-buffer with the background color. */ public final void clear() { for(int i=0;i<SCREEN_SIZE;i++) screen[i]=backgroundClr; } /** * Set the background color. * *@param backgroundClr the palette-index of the background color. */ public final void setBackgroundClr(int backgroundClr) { if(backgroundClr>-1 && backgroundClr<PALETTE_SIZE) this.backgroundClr=backgroundClr; } /** * Return the palette-index of the background color. */ public final int getBackgroundClr() { return backgroundClr; } /** * Set the update delay. */ public final void setUpdateDelay(int updateDelay) { if(updateDelay>-1) this.updateDelay=updateDelay; } /** * Simulate the scroll of a video-page. * This will scroll a single line. */ public void scroll() { System.arraycopy(screen,SCREEN_W,screen,0,63680); //SCREEN_SIZE-SCREEN_W := 63680 int pos=SCREEN_SIZE-1; for(int i=0;i<SCREEN_W;i++) screen[pos--]=backgroundClr; } /** * Scroll the video-page. * * @param n the number of lines to scroll. */ public void scroll(int n) { int jump=(n<<8)+(n<<6); System.arraycopy(screen,jump,screen,0,screen.length-jump); int pos=SCREEN_SIZE-1; for(int i=0;i<jump;i++) screen[pos--]=backgroundClr; } /** * Scroll 8 lines. It could be useful in the text-mode. */ public void scroll8() { System.arraycopy(screen,0xA00,screen,0,0xF000); int pos=SCREEN_SIZE-1; for(int i=0;i<0xA00;i++) screen[pos--]=backgroundClr; } /** * Move the carriage to next line. * If the carriage exceds the screen size the frame is displayed. */ public void flush() { carriage+=(SCREEN_W-((++carriage)%SCREEN_W)); if(carriage>=SCREEN_SIZE) newFrame(); } /** * Move foward the carriage of the specified positions. * If the carriage exceds the screen size the frame is displayed. */ public void flush(int steps) { carriage+=steps; if(carriage>=SCREEN_SIZE) newFrame(); } //----------------------INTERFACE RASTER---------------------------- /** * Copy the pixel sent by the VIC in the video-buffer. * * @param pixel the pixel sent by the VIC. */ public int sendPixel(int pixel) { try{ screen[++carriage]=pixel; }catch(ArrayIndexOutOfBoundsException e) { System.err.println("TV - sendPixel(int) - ArrayIndexException caught:"+carriage+" > "+SCREEN_SIZE); return -1; } return carriage; } /** * Copy pixels sent by the VIC in the video-buffer. * * @param pixels pixels sent by the VIC */ public int sendPixel(int[] pixels) { try{ System.arraycopy(pixels,0,screen,carriage+1,pixels.length); carriage+=pixels.length; }catch(ArrayIndexOutOfBoundsException e) { System.err.println("TV - sendPixel(int[]) - ArrayIndexException caught:"+carriage+" > "+SCREEN_SIZE); return -1; } return carriage; } /** * Copy pixels sent by the VIC in the video-buffer. * * @param pixels pixels sent by the VIC. * @param start first value to copy from the pixels buffer. */ public int sendPixel(int[] pixels,int start) { try{ System.arraycopy(pixels,start,screen,carriage+1,pixels.length-start); carriage+=(pixels.length-start); }catch(ArrayIndexOutOfBoundsException e) { System.err.println("TV - sendPixel(int[],int,int) - ArrayIndexException caught:"+carriage+" > "+SCREEN_SIZE); return -1; } return carriage; } /** * Copy pixels sent by the VIC in the video-buffer. * * @param pixels pixels sent by the VIC. * @param start first value to copy from the pixels buffer. */ public int sendPixel(int[] pixels,int start, int offset) { try{ System.arraycopy(pixels,start,screen,carriage+1,offset); carriage+=offset; }catch(ArrayIndexOutOfBoundsException e) { System.err.println("TV - sendPixel(int[],int,int) - ArrayIndexException caught:"+carriage+" > "+SCREEN_SIZE); return -1; } return carriage; } public int sendPixel8(int[] pixels) { try{ System.arraycopy(pixels,0,screen,carriage+1,0x08); carriage+=0x08; }catch(ArrayIndexOutOfBoundsException e) { System.err.println("TV - sendPixel8(int[]) - ArrayIndexException caught:"+carriage+" > "+SCREEN_SIZE); return -1; } return carriage; } public int sendPixel8(int[] pixels, int start) { try{ System.arraycopy(pixels,start,screen,carriage+1,0x08); carriage+=0x08; }catch(ArrayIndexOutOfBoundsException e) { System.err.println("TV - sendPixel8(int[],int) - ArrayIndexException caught:"+carriage+" > "+SCREEN_SIZE); return -1; } return carriage; } /** * Display on the screen the current frame. */ public final void displayCurrentFrame() { if(++timerDelay==updateDelay) { source.newPixels(); repaint(); timerDelay=-1; } } /** * Reset variables. */ public final void newFrame() { carriage=-1; displayCurrentFrame(); } }//TV
8,066
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z
raster.java
/FileExtraction/Java_unseen/ice00_jc64/src/sw_emulator/hardware/device/raster.java
/** * @(#)raster.java 2000/01/21 * * ICE Team Free Software Group * * This file is part of C64 Java Software Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ package sw_emulator.hardware.device; public interface raster { /** * @author Michele Caira [email protected] * @version 1.2 28/4/2000 */ /** * The size of C64 palette. */ public int PALETTE_SIZE = 16; /** * The C64 palette. */ public int BLACK = 0x00, WHITE = 0x01, RED = 0x02, CYAN = 0x03, PINK = 0x04, GREEN = 0x05, BLUE = 0x06, YELLOW = 0x07, ORANGE = 0x08, BROWN = 0x09, LIGHT_RED = 0x0A, DARK_GRAY = 0x0B, MEDIUM_GRAY= 0x0C, LIGHT_GREEN= 0x0D, LIGHT_BLUE = 0x0E, LIGHT_GRAY = 0x0F; /** * Send a pixel to the raster. * Return -1 if something fails. */ public int sendPixel(int pixel); public int sendPixel(int[] pixels); public int sendPixel(int[] pixels, int start); public int sendPixel(int[] pixels, int start, int offset); public int sendPixel8(int[] pixels); public int sendPixel8(int[] pixels, int start); /** * Tell raster that a new frame is processing. */ public void newFrame(); /** * Ask raster to display the current output. * Notice that this function is called by newFrame(). */ public void displayCurrentFrame(); }//raster
2,335
Java
.java
ice00/jc64
43
6
0
2019-11-30T14:02:48Z
2024-05-05T18:41:15Z