Memory class

COMET2's memory

final memory = Memory();
memory[0] = 0x8100;

Constructors

Memory({int length = 0x10000, int bits = 16})
New COMET2's memory instance.

Properties

bits int
final
hashCode int
The hash code for this object.
no setterinherited
length int
Get memory length.
no setter
maskBits int
Get mask bits.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getWord(int address) int
deprecated: To use operator.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAll(int address, List<int> values) → void
Set values on memory.
setWord(int address, int value) bool
deprecated: To use operator.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int address) int
Get value from address.
operator []=(int address, int value) → void
Set value to address.