mirror of
https://github.com/mist64/perfect6502.git
synced 2024-06-01 10:41:28 +00:00
make cycle a long, minor cleanup
This commit is contained in:
parent
a8ace5d6d4
commit
c82d2c8325
|
@ -18,7 +18,7 @@ Intel Xeon 3.4 Ghz
|
|||
original speed: 19677 steps per second
|
||||
original memory usage: 18.8 MB
|
||||
|
||||
current speed: 22864 steps per second
|
||||
current speed: 23480 steps per second
|
||||
current memory usage: 1.1 MB
|
||||
|
||||
*/
|
||||
|
@ -50,7 +50,7 @@ main()
|
|||
end_time = clock();
|
||||
double time = (end_time - start_time)/ (double)(CLOCKS_PER_SEC);
|
||||
double speed = cycle / time;
|
||||
printf("cycle %u, speed %g steps per second\n", cycle, speed);
|
||||
printf("cycle %lu, speed %g steps per second\n", cycle, speed);
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
@ -517,7 +517,7 @@ add_nodes_left_dependant(state_t *state, nodenum_t a, nodenum_t b)
|
|||
|
||||
|
||||
/* 6502:
|
||||
3510 transistors, 3239 used in simulation after duplicate removal
|
||||
3288 transistors, 3239 used in simulation after duplicate removal
|
||||
1725 entries in node list and used in simulation
|
||||
c1c2total = 6478
|
||||
block_gate_size = 3239
|
||||
|
@ -792,7 +792,7 @@ void
|
|||
stabilizeChip(state_t *state)
|
||||
{
|
||||
for (count_t i = 0; i < state->nodes; i++)
|
||||
listout_add(state, i);
|
||||
listout_add(state, i);
|
||||
|
||||
recalcNodeList(state);
|
||||
}
|
||||
|
@ -806,11 +806,11 @@ stabilizeChip(state_t *state)
|
|||
void
|
||||
setNode(state_t *state, nodenum_t nn, BOOL s)
|
||||
{
|
||||
set_nodes_pullup(state, nn, s);
|
||||
set_nodes_pulldown(state, nn, !s);
|
||||
listout_add(state, nn);
|
||||
set_nodes_pullup(state, nn, s);
|
||||
set_nodes_pulldown(state, nn, !s);
|
||||
listout_add(state, nn);
|
||||
|
||||
recalcNodeList(state);
|
||||
recalcNodeList(state);
|
||||
}
|
||||
|
||||
BOOL
|
||||
|
|
|
@ -19,5 +19,5 @@ extern unsigned char readDataBus(state_t *state);
|
|||
extern unsigned char readIR(state_t *state);
|
||||
|
||||
extern unsigned char memory[65536];
|
||||
extern unsigned int cycle;
|
||||
extern unsigned int transistors;
|
||||
extern unsigned long cycle;
|
||||
//extern unsigned int transistors;
|
||||
|
|
Loading…
Reference in New Issue
Block a user