debug
This commit is contained in:
parent
4bd4283929
commit
042503d87d
@ -78,7 +78,7 @@ DLL void sim_update_gates() {
|
||||
for(int i=0; i<*num_gate_queue; i++) {
|
||||
struct Gate* gate = gate_queue[i];
|
||||
if(gate->logic_function != 0) {
|
||||
printf("gatelogic %i\n", gate->logic_function);
|
||||
printf("gatelogic %i %i\n", gate->logic_function, gate->objref);
|
||||
sim_dequeue_gate(i);
|
||||
sim_logic_functions[gate->logic_function](gate);
|
||||
i--;
|
||||
@ -104,13 +104,16 @@ FAST void sim_queue_net(const struct Net* const net) {
|
||||
|
||||
FAST void sim_update_net(const struct Net* const net) {
|
||||
int state = *(net->state_num) > 0;
|
||||
printf("updatenet %i\n", state);
|
||||
if(state != *(net->state)) {
|
||||
printf(" statediff\n");
|
||||
*(net->state) = state;
|
||||
*(net->update_tick) = *current_tick;
|
||||
|
||||
for(int i=0; i<*(net->num_gates_update); i++) {
|
||||
struct Gate* gate = net->gates_update_c[i];
|
||||
if(!*(gate->in_queue)) {
|
||||
printf(" queuegate %i\n", gate->objref);
|
||||
sim_queue_gate(gate);
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
4080
sim/dump.txt
4080
sim/dump.txt
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user