Serial

abstract class Serial : Interface

Simulation of the FA6 Cassette interface.

Author

"Martin Krischik" «krischik@users.sourceforge.net»

Inheritors

Constructors

Link copied to clipboard
protected constructor(Owner: Calculator)

Properties

Link copied to clipboard
private open var Enable: Boolean
When true the interface is enabled.
Link copied to clipboard
open var File_Name: String
Last file name opened.
Link copied to clipboard
private open var File_Read: Long
Characters read from input stream
Link copied to clipboard
protected open var Home_Directory: String
The simulators home directory.
Link copied to clipboard
private open var In: BufferedReader
input stream
Link copied to clipboard
private val Is_Digit: Pattern
matches a single digits (including hex digits).
Link copied to clipboard
private val Is_Digits: Pattern
matches a string of digits (including hex digits).
Link copied to clipboard
private val Logger: Logger
class Logger instance
Link copied to clipboard
private val logger: Logger
class logger instance
Link copied to clipboard
private val M_Header: String = "Memory List"
Link copied to clipboard
private val MF_Divisor: Int = 11
Link copied to clipboard
val New_Line: String = " "
New lines in simulated RS232 files are always written with DOS line endings.
Link copied to clipboard
private open var Out: Writer
output stream
Link copied to clipboard
private val Owner: Calculator
Calculator to which the interface is connected to
Link copied to clipboard
private val Parse_M: Pattern
Parse Memory line
Link copied to clipboard
private val Program_Header: String = "All Program List"
Link copied to clipboard
val Setting_Name: String = "fx-603p"
File name for settings.
Link copied to clipboard
Characters which are not ASCII and can be used in Alpha strings.
Link copied to clipboard
Token used for non ASCII characters.
Link copied to clipboard
private val TAG: String
class Logger tag.
private val TAG: String
class logger tag.

Functions

Link copied to clipboard
protected open fun clone(): Any
Link copied to clipboard
open fun Close()
Close files and all streams attached to them.
Link copied to clipboard
open fun Convert_To_Alpha(Token_Text: String): Array<Short>
Link copied to clipboard
open fun Convert_To_Java(Alpha_String: Array<Int>): String
open fun Convert_To_Java(Alpha: Short): String
open fun Convert_To_Java(Alpha_String: Array<Short>): String
Link copied to clipboard
open fun Convert_To_Token(Alpha: Short): String
Link copied to clipboard
open fun Create(Type: File_Type, File_Name: String)
create new file for tape IO
Link copied to clipboard
protected abstract fun Create_Stream(Filename: String): Writer
Create a new file for output.
Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
abstract fun File_Size(): Long
Get file Size
Link copied to clipboard
protected open fun finalize()
Link copied to clipboard
fun getClass(): Class<out Any>
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun Home_Directory(Home_Directory: String)
The simulators home directory.
Link copied to clipboard
A disabled interface will ignore all input and output.
Link copied to clipboard
fun notify()
Link copied to clipboard
fun notifyAll()
Link copied to clipboard
open fun Open(File_Name: String): File_Type
open file and return type
open fun Open(Type: File_Type, File_Name: String)
open file of given type
Link copied to clipboard
protected abstract fun Open_Stream(Filename: String): Reader
Create a new file for input.
Link copied to clipboard
open fun Parse_M()
Parse text files for memory informations.
Link copied to clipboard
open fun Parse_Steps()
Parse text files for memory informations.
Link copied to clipboard
open fun Print_M()
Writes memory register to simulated cassette interface.
Link copied to clipboard
open fun Print_New_Line()
pring a new line.
Link copied to clipboard
open fun Print_Steps()
Print program steps
Link copied to clipboard
fun Set_Enable(Enable: Boolean)
A disabled interface will ignore all input and output.
Link copied to clipboard
private open fun Store_Opcode(Step_Number: Int, Opcode: Short): Int
store a step to steps
Link copied to clipboard
private open fun Store_Token(Step_Number: Int, Opcode: Short): Int
store a step to steps
Link copied to clipboard
open fun toString(): String
open fun toString(): String
Link copied to clipboard
fun wait()