# unit highmem

### Additional base objects to manage CPU65816 linear high memory

author: Tomasz Biela (Tebe)

http://www.freepascal.org/docs-html/rtl/objects/index-4.html

## Types:

name: | type: | description:
--- | --- | ---
THighMemoryStream | Object Position: cardinal; Size: cardinal; procedure Create; procedure ReadBuffer(var Buffer; Count: word); procedure WriteBuffer(var Buffer; Count: word); function ReadByte: Byte; function ReadWord: Word; function ReadDWord: Cardinal; procedure WriteByte(b: Byte); procedure WriteWord(w: Word); procedure WriteDWord(d: Cardinal); end; |

## Interface:

name: | description:
--- | ---
THighMemoryStream.Create | #### procedure THighMemoryStream.Create;
ReadWriteHighMem | #### procedure ReadWriteHighMem; assembler;
THighMemoryStream.ReadBuffer | #### procedure THighMemoryStream.ReadBuffer(var Buffer; Count: word);
THighMemoryStream.WriteBuffer | #### procedure THighMemoryStream.WriteBuffer(var Buffer; Count: word);
THighMemoryStream.ReadByte | #### function THighMemoryStream.ReadByte: Byte;
THighMemoryStream.ReadWord | #### function THighMemoryStream.ReadWord: Word;
THighMemoryStream.ReadDWord | #### function THighMemoryStream.ReadDWord: Cardinal;
THighMemoryStream.WriteByte | #### procedure THighMemoryStream.WriteByte(b: Byte);
THighMemoryStream.WriteWord | #### procedure THighMemoryStream.WriteWord(w: Word);
THighMemoryStream.WriteDWord | #### procedure THighMemoryStream.WriteDWord(d: Cardinal);