Skip to content

Commit

Permalink
Add missing initializations of cycle count
Browse files Browse the repository at this point in the history
  • Loading branch information
Shock9616 committed Nov 26, 2024
1 parent 7487068 commit de86d88
Show file tree
Hide file tree
Showing 25 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_bit_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_branch_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_brk_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_cmp_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_cpxy_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_decxy_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_eor_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_flagops_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_incxy_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_jmpsr_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_lda_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_ldx_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_ldy_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_lsr_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_nop_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_ora_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_rol_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_ror_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_rti_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_rts_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_sbc_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_sta_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_stackops_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_stxy_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down
1 change: 1 addition & 0 deletions tests/unit/execute_instruction_transfer_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void init_test() {

// Allocate system memory
memory = calloc(MEMORY_SPACE, sizeof(uint8_t));
cycles = 0;
}

static void clean_test() {
Expand Down

0 comments on commit de86d88

Please sign in to comment.