|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEmu8255.Emu8255
public class Emu8255
This is the main class of the application. It creates the main frame and contains the bulk of the application logic for the Emu8255.
Constructor Summary | |
---|---|
Emu8255()
Default constructor. |
Method Summary | |
---|---|
void |
ACKPortAButtonActionPerformedHandler()
Handler invoked when the Ack on Porta A button is pressed. |
void |
ACKPortBButtonActionPerformedHandler()
Handler invoked when the Ack on Porta B button is pressed. |
void |
Exit(int status)
Exit application with status code> . |
char |
GetCharValueFromString(java.lang.String number)
This method returns the char representation of a number in the form of a string |
char |
GetControlWord()
Returns the value of the Control Word as a char. |
int |
GetGroupAInInt()
Returns the value for the group A input interrupt. |
int |
GetGroupAMode()
Returns the group A mode. |
int |
GetGroupAOutInt()
Returns the value for the group A output interrupt. |
int |
GetGroupBInInt()
Returns the value for the group B input interrupt. |
int |
GetGroupBMode()
Returns the group B mode. |
int |
GetGroupBOutInt()
Returns the value for the group B output interrupt. |
int |
GetInputMode()
Returns the value for the input mode. |
int |
GetOutputMode()
Returns the value for the output mode. |
int |
GetPC45Dir()
Returns the value for PC4 and PC5 direction when group A is in mode 1. |
int |
GetPC67Dir()
Returns the value for PC6 and PC7 direction when group A is in mode 1. |
int |
GetPortADir()
Returns the value for the port A direction. |
int |
GetPortBDir()
Returns the value for the port B direction. |
int |
GetPortCLoDir()
Returns the value for the port C Lower direction. |
int |
GetPortCUpDir()
Returns the value for the port C Upper direction. |
int |
GetSignedIntegerFromChar(char signed_number)
This method returns the signed integer representation of the char value passed as argument |
int |
GetUnsignedIntegerFromChar(char unsigned_number)
This method returns the unsigned integer representation of the char value passed as argument |
void |
InputModeAsciiActionPerformedHandler()
Handler invoked when the Ascii Input Mode is chosen from the menu. |
void |
InputModeBinaryActionPerformedHandler()
Handler invoked when the Binary Input Mode is chosen from the menu. |
void |
InputModeHexadecimalActionPerformedHandler()
Handler invoked when the Hexadecimal Input Mode is chosen from the menu. |
void |
InputModeIntegerSignedActionPerformedHandler()
Handler invoked when the Integer Signed Input Mode is chosen from the menu. |
void |
InputModeIntegerUnsignedActionPerformedHandler()
Handler invoked when the Integer Unsigned Input Mode is chosen from the menu. |
static void |
main(java.lang.String[] args)
main() method. |
void |
OutputModeAsciiActionPerformedHandler()
Handler invoked when the Ascii Output Mode is chosen from the menu. |
void |
OutputModeBinaryActionPerformedHandler()
Handler invoked when the Binary Output Mode is chosen from the menu. |
void |
OutputModeHexadecimalActionPerformedHandler()
Handler invoked when the Hexadecimal Output Mode is chosen from the menu. |
void |
OutputModeIntegerSignedActionPerformedHandler()
Handler invoked when the Integer Signed Output Mode is chosen from the menu. |
void |
OutputModeIntegerUnsignedActionPerformedHandler()
Handler invoked when the Integer unsigned Output Mode is chosen from the menu. |
void |
ResetButtonActionPerformedHandler()
Handler invoked the reset button is pressed. |
static boolean |
Set8259RuntimePort()
This method reads from the config file the port associated with the Emu8259, wich is supposed to be already written by the Emu8259 itself. |
void |
SetControlWord(char val)
Set the control word and update ports status. |
void |
STBPortAButtonActionPerformedHandler()
Handler invoked when the Strobe on Porta A button is pressed. |
void |
STBPortBButtonActionPerformedHandler()
Handler invoked when the Strobe on Porta B button is pressed. |
java.lang.String |
ToBinaryString(char value,
int padding)
This method returns the binary representation of the character value
according to the value of padding . |
void |
UseWith8259ActionPerformedHandler(boolean val)
Handler invoked when a new selection is made in the UseWith8259 submenu in menu File. |
void |
WaitForAckFromUser(char port)
This method makes the UI wait for an user input. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Emu8255()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.InterruptedException
java.lang.InterruptedException
CheckControlWord
,
OutputThread
public void SetControlWord(char val)
val
- Control Word to set.public char GetControlWord()
public int GetGroupAMode()
public int GetGroupBMode()
public int GetGroupAInInt()
public int GetGroupAOutInt()
public int GetGroupBInInt()
public int GetGroupBOutInt()
public int GetPortADir()
public int GetPortBDir()
public int GetPortCUpDir()
public int GetPortCLoDir()
public int GetPC45Dir()
public int GetPC67Dir()
public int GetInputMode()
public int GetOutputMode()
public void Exit(int status)
code>
.
status
- Exit status.public void UseWith8259ActionPerformedHandler(boolean val)
val
- true if we want to use the Emu8259, false otherwise.public static boolean Set8259RuntimePort()
public void InputModeAsciiActionPerformedHandler()
public void InputModeBinaryActionPerformedHandler()
public void InputModeHexadecimalActionPerformedHandler()
public void InputModeIntegerSignedActionPerformedHandler()
public void InputModeIntegerUnsignedActionPerformedHandler()
public void OutputModeAsciiActionPerformedHandler()
public void OutputModeBinaryActionPerformedHandler()
public void OutputModeHexadecimalActionPerformedHandler()
public void OutputModeIntegerSignedActionPerformedHandler()
public void OutputModeIntegerUnsignedActionPerformedHandler()
public void STBPortAButtonActionPerformedHandler()
public void STBPortBButtonActionPerformedHandler()
public void ACKPortAButtonActionPerformedHandler()
public void ACKPortBButtonActionPerformedHandler()
public char GetCharValueFromString(java.lang.String number)
number
- The string representing the value.
public int GetSignedIntegerFromChar(char signed_number)
signed_number
- The signed char to convert
public int GetUnsignedIntegerFromChar(char unsigned_number)
unsigned_number
- The unsigned char to convert
public void ResetButtonActionPerformedHandler()
public void WaitForAckFromUser(char port)
port
.
port
- Port whose Ack button is the only one enabled.public java.lang.String ToBinaryString(char value, int padding)
value
according to the value of padding
.
value
- Character whose binary representation is returned.padding
- Padding to be applied.
value
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |