|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dioscuri.module.AbstractModule dioscuri.module.ModuleVideo dioscuri.module.video.Video
public class Video
An implementation of a video (VGA) module.
Metadata module ********************************************
general.type : video general.name : General VGA display adapter
general.architecture : Von Neumann general.description : Models a simple
VGA adapter general.creator : Tessella Support Services, Koninklijke
Bibliotheek, Nationaal Archief of the Netherlands general.version : 1.0
general.keywords : VGA, Video Graphics Array, video, graphics, 640, 480
general.relations : Motherboard general.yearOfIntroduction :
general.yearOfEnding : general.ancestor : general.successor :
Notes: - This code is based on Bochs code which has been ported to Java.
Nested Class Summary | |
---|---|
class |
Video.DiosJPCVideoConnect
|
Nested classes/interfaces inherited from interface dioscuri.interfaces.Module |
---|
Module.Type |
Field Summary | |
---|---|
Video.DiosJPCVideoConnect |
vidMemConnect
|
Fields inherited from class dioscuri.module.AbstractModule |
---|
type |
Constructor Summary | |
---|---|
Video(Emulator owner)
Class constructor |
Method Summary | |
---|---|
void |
acceptComponent(HardwareComponent component)
|
int[] |
determineScreenSize()
Determine the screen size in pixels |
byte |
getAttributePaletteRegister(int index)
Returns a byte from attribute palette register at position index |
byte |
getIOPortByte(int portAddress)
|
byte[] |
getIOPortDoubleWord(int portAddress)
|
byte[] |
getIOPortWord(int portAddress)
|
byte |
getTextSnapshot(int index)
Returns a byte from text snapshot at position index |
int |
getUpdateInterval()
Get the update interval. |
byte[] |
getVideoBuffer()
Returns a pointer to the whole video buffer |
byte |
getVideoBufferByte(int index)
Returns a byte from video buffer at position index |
java.lang.String |
getVideoBufferCharacters()
Returns all characters (as Unicode) that are currently in buffer |
byte |
readMode(int address)
Video read mode implementations |
boolean |
reset()
Reset all parameters of module. |
void |
setIOPortByte(int portAddress,
byte data)
|
void |
setIOPortDoubleWord(int portAddress,
byte[] dataDoubleWord)
|
void |
setIOPortWord(int portAddress,
byte[] dataWord)
|
void |
setTextSnapshot(int index,
byte data)
Stores a byte in text snapshot at position index |
void |
setUpdateInterval(int interval)
Defines the interval between subsequent updates |
void |
setVideoBufferByte(int index,
byte data)
Stores a byte in video buffer at position index |
void |
update()
Update the module. |
void |
writeMode(int address,
byte value)
Video write mode implementations |
Methods inherited from class dioscuri.module.AbstractModule |
---|
getConnection, getConnections, getDebugMode, getDump, getExpectedConnections, getType, isConnected, setConnection, setDebugMode, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface dioscuri.interfaces.Module |
---|
getConnection, getConnections, getDebugMode, getDump, getExpectedConnections, getType, isConnected, setConnection, setDebugMode, start, stop |
Field Detail |
---|
public Video.DiosJPCVideoConnect vidMemConnect
Constructor Detail |
---|
public Video(Emulator owner)
owner
- Method Detail |
---|
public boolean reset()
reset
in interface Module
reset
in class AbstractModule
AbstractModule
public int getUpdateInterval()
Updateable
public void setUpdateInterval(int interval)
interval
- the interval between subsequent updates in ms.Updateable
public void update()
Updateable
public byte getIOPortByte(int portAddress) throws ModuleException, UnknownPortException, WriteOnlyPortException
ModuleException
UnknownPortException
WriteOnlyPortException
Addressable
public void setIOPortByte(int portAddress, byte data) throws ModuleException, UnknownPortException
ModuleException
UnknownPortException
Addressable
public byte[] getIOPortWord(int portAddress) throws ModuleException, UnknownPortException, WriteOnlyPortException
ModuleException
UnknownPortException
WriteOnlyPortException
Addressable
public void setIOPortWord(int portAddress, byte[] dataWord) throws ModuleException, UnknownPortException
ModuleException
UnknownPortException
Addressable
public byte[] getIOPortDoubleWord(int portAddress) throws ModuleException, UnknownPortException, WriteOnlyPortException
ModuleException
UnknownPortException
WriteOnlyPortException
Addressable
public void setIOPortDoubleWord(int portAddress, byte[] dataDoubleWord) throws ModuleException, UnknownPortException
ModuleException
UnknownPortException
Addressable
public byte[] getVideoBuffer()
getVideoBuffer
in class ModuleVideo
ModuleVideo
public byte getVideoBufferByte(int index)
getVideoBufferByte
in class ModuleVideo
ModuleVideo
public void setVideoBufferByte(int index, byte data)
setVideoBufferByte
in class ModuleVideo
ModuleVideo
public java.lang.String getVideoBufferCharacters()
getVideoBufferCharacters
in class ModuleVideo
ModuleVideo
public byte getTextSnapshot(int index)
getTextSnapshot
in class ModuleVideo
ModuleVideo
public void setTextSnapshot(int index, byte data)
setTextSnapshot
in class ModuleVideo
ModuleVideo
public byte getAttributePaletteRegister(int index)
getAttributePaletteRegister
in class ModuleVideo
ModuleVideo
public int[] determineScreenSize()
determineScreenSize
in class ModuleVideo
ModuleVideo
public byte readMode(int address)
readMode
in class ModuleVideo
ModuleVideo
public void writeMode(int address, byte value)
writeMode
in class ModuleVideo
ModuleVideo
public void acceptComponent(HardwareComponent component)
component
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |