12 void step(
int cycles);
13 u8 read(u16 address)
const;
14 void write(u16 address, u8 value);
18 u16 get_div_counter()
const {
return div_counter; }
19 u8 get_tima()
const {
return tima; }
20 u8 get_tma()
const {
return tma; }
21 u8 get_tac()
const {
return tac; }
22 int get_tima_counter()
const {
return tima_counter; }
24 void set_div_counter(u16 value) { div_counter = value; }
25 void set_tima(u8 value) { tima = value; }
26 void set_tma(u8 value) { tma = value; }
27 void set_tac(u8 value) { tac = value; }
28 void set_tima_counter(
int value) { tima_counter = value; }