public class Helper
extends java.lang.Object
public static final
ones).Constructor and Description |
---|
Helper() |
Modifier and Type | Method and Description |
---|---|
static int |
convertStringToInt(java.lang.String toConvert)
Converts a string of max 4 chars to an integer, each byte is the hex of the char.
|
static java.lang.String |
convertToJava(byte c)
Converts from SMSQE byte to Java string.
|
static byte |
convertToSMSQE(char c)
Converts from java char to smsqe char/byte.
|
static byte |
convertToSMSQE(java.lang.String c)
Converts from java string to smsqe char/byte.
|
static int |
convertUsageName(java.lang.String s)
Converts a three letter name into an "upper cased" int and adds '0' at end.
|
static java.lang.String |
regListToString(int reglist,
boolean reversed)
Converts an M68K register list (for MOVEM) to a disassembly string.
|
static void |
reportError(java.lang.String title,
java.lang.String text,
javax.swing.JFrame frame)
This shows an error window with a title and a warning string.
|
static void |
reportError(java.lang.String title,
java.lang.String text,
javax.swing.JFrame frame,
java.lang.Exception e)
This shows an error window with a title, a warning string and the Java error string.
|
public static final void reportError(java.lang.String title, java.lang.String text, javax.swing.JFrame frame)
title
- a string, the title of the error window.text
- a sgtring, the error message.frame
- a JFrame for the JOptionPane.public static final void reportError(java.lang.String title, java.lang.String text, javax.swing.JFrame frame, java.lang.Exception e)
title
- a string, the title of the error window.text
- a string, the error message.frame
- a JFrame for the JOptionPane.e
- the error to report.public static final byte convertToSMSQE(java.lang.String c)
c
- the char to convertpublic static final byte convertToSMSQE(char c)
c
- the char to convertpublic static final java.lang.String convertToJava(byte c)
c
- the byte ti convertpublic static int convertUsageName(java.lang.String s)
s
- the string to convert, eg 'nfa'.public static final java.lang.String regListToString(int reglist, boolean reversed)
reglist
- the register list.reversed
- true id list is reversed.public static final int convertStringToInt(java.lang.String toConvert)
toConvert
- the string to convert into an int.