MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / bus_rand

Function bus_rand

core/bus.c:17–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17uint8_t bus_rand(void) {
18#ifndef FASTEST_RAND
19 x++;
20 a ^= c ^ x;
21 b += a;
22 c = ((c + (b >> 1)) ^ a);
23 return c;
24#else
25 return 5;
26#endif
27}
28

Callers 8

bus_init_randFunction · 0.85
emu_lcd_drawmemFunction · 0.85
mem_read_unmapped_ramFunction · 0.85
mem_read_unmapped_flashFunction · 0.85
mem_read_unmapped_otherFunction · 0.85
control_writeFunction · 0.85
panel_start_lineFunction · 0.85
cpu_executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected