#include <program.h>
Public Member Functions | |
program () | |
~program () | |
void | generate (uInt seed) |
generate a random program from the specified seed | |
template<typename T> T | read (address addr) |
returns the data at the specified address | |
template<typename T> void | write (address addr, T val) |
writes the data to the specified address |
Definition at line 13 of file program.h.
|
|
|
|
|
generate a random program from the specified seed fills the currently allocated data with random data |
|
returns the data at the specified address the memory is assumed to wrap round and so all addresses are valid unless the program is of length 0, in which case no address is valid. Definition at line 35 of file program.h. References address, ASSERT, read(), and uInt. Referenced by read(). |
|
writes the data to the specified address the memory is assumed to wrap round and so all addresses are valid unless the program is of length 0, in which case no address is valid. Definition at line 83 of file program.h. References address, ASSERT, uInt, and write(). Referenced by write(). |