Static
Readonly
HIGH_This class member stores the highest available physical memory address.
Static
Readonly
NUMBER_This class member stores the number of bits representing the page frame number. The page frame number can be extracted from a physical memory address by removing the offset bits from the right.
This field represents a flag, which enables automatic scroll for the GUIs Page Table widget.
This field represents a flag, which enables automatic scroll for the GUIs physical RAM widget.
This field represents a flag, which enables automatic scroll for the GUIs virtual RAM widget.
This field stores the currently selected representation of the data for the EAX register.
This field stores the currently selected representation of the data for the EBX register.
This field stores the currently selected representation of the data for the ECX register.
This field stores the currently selected representation of the data for the EIP register.
TODO: Implement mechanism for retrieving textual instruction from main process of the Simulator! This field is currently unused, as there is no such mechanism. The only available representation for the EIR register is binary.
This field stores the currently selected representation of the data for the EIR register.
This field stores the currently selected representation of the data for the ESP register.
This field stores the currently selected representation of the data for the GPTP register.
This field stores the currently selected representation of the data for the ITP register.
This field stores the currently selected representation of the data for the NPTP register.
This field stores the currently selected representation of the data for the PTP register.
This field stores the currently selected representation of the data for the VMPTR register.
This field indicates, whether an assembly program is currently loaded.
This method creates a GUI element, which represents an entry of the Page Table.
The virtual page address, which is often refered to as the pages number.
This flag indicates whether the page is currently mounted to a page frame.
This flag indicates whether the page is writable or read-only.
This flag indicates whether the page is executable or not.
This flag indicates whether the page can only be accessed in kernel mode.
This flag indicates whether the page is protected against attempts to write it to a background memory.
This flag indicates whether the page was changed since it was mounted to a page frame.
The physical page frame address, which is often refered to as the page frames number.
An GUI element representing a single Page Table entry.
This method initializes the view of the Page Table reading the first thirty entries of the Page Table and creats GUI elements, which represents the individual entries.
Optional
firstPageNumberToReadDec: number = 0The first page number to read from Page Table.
Optional
lastPageNumberToReadDec: number = 30The last page number to read from Page Table.
This method creates an HTMLElement representing a physical RAM cell. This element consist out of a label with the pyhsical memory address and the binary content of the main memory at this address.
The physical memory address of the RAM cell.
The binary content of this RAM cell.
A HTMLElement representing a RAM cell.
This method initializes the view of the physical RAM by reading the first twenty entries of the main memory and creating HTMLElements, which represents the individual RAM cells.
Optional
firstPhysicalAddressToReadHex: string = "0x0"The first physical memory address to read from main memory in hexadecimal representation.
Optional
lastPhysicalAddressToReadHex: string = "0x1e"The last physical memory address to read from main memory in hexadecimal representation.
This method creates an HTMLElement representing a virtual RAM cell. This element consist out of a label with the pyhsical memory address and the binary content of the main memory at this address.
The virtual memory address of the RAM cell.
The binary content of this RAM cell.
A HTMLElement representing a RAM cell.
This method initializes the view of the virtual RAM by reading the first twenty entries of the main memory and creating HTMLElements, which represents the individual RAM cells.
Optional
firstVirtualAddressToReadHex: string = "0x0"The first virtual memory address to read from main memory in hexadecimal representation.
Optional
lastVirtualAddressToReadHex: string = "0x1e"The last virtual memory address to read from main memory in hexadecimal representation.
Performs the next CPU cycle (fetch, decode, execute).
This method reads the content of the EAX register.
This method reads the content of the EBX register.
This method reads the content of the ECX register.
This method reads the content of the EFLAGS register.
This method reads the content of the EIP register.
This method reads the content of the EIR register.
Indicates, wethert to display the instruction in its textual representation or not.
This method reads the content of the ESP register.
This method reads the content of the GPTP register.
This method reads the content of the ITP register.
This method reads the content of the NPTP register.
This method reads the content of the PTP register.
This method reads the content of the VMPTR register.
This method registers the change listeners for all
This method reloads the view of the Page Table depending on the visible Page Table entries.
This function reloads the RAM view, by taking the visible elements into account. This is done in order to avoid weird jumps in the widget, representing the physical main memory.
This function reloads the RAM view, by taking the visible elements into account. This is done in order to avoid weird jumps in the widget, representing the virtual main memory.
This class encapsulates the logic needed to initialize and sync the GUI with the backend process.
Author
Erik Burmester erik.burmester@nextbeam.net