Skip to content

Commit c6dd2ab

Browse files
authored
Fix spells (#17)
1 parent fea6ba8 commit c6dd2ab

File tree

4 files changed

+10
-15
lines changed

4 files changed

+10
-15
lines changed

include/emulation/cpu_device.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ class cpu_device
3030
exec_mos6502 *cpu;
3131
uint64_t max_cycle_count;
3232
uint64_t cycle_count;
33-
enum class inst_type
34-
{
35-
call,
36-
retern
37-
};
3833
call_stack_filter *call_stack;
3934
register_counter_filter *register_counter;
4035
vector<i_cpu_filter *> filters;
@@ -57,7 +52,7 @@ class cpu_device
5752
uint8_t get_read_count(status_flag_type type);
5853
uint8_t get_write_count(status_flag_type type);
5954
bool is_illegal_instruction();
60-
bool is_call_instrunction();
55+
bool is_call_instruction();
6156
bool is_return_instruction();
6257
bool is_read_register_instruction(register_type type);
6358
bool is_write_register_instruction(register_type type);

include/emulation/cpu_filter/call_stack_filter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ class call_stack_filter : public i_cpu_filter
1313
enum class inst_type
1414
{
1515
call,
16-
retern
16+
return_back
1717
};
1818
cpu_device *cpu;
1919
bool isCallInstr;
20-
bool isReternInstr;
20+
bool isReturnInstr;
2121
bool isInterruptInstr;
2222
bool isReturned;
2323
bool willReturn;

src/emulation/cpu_device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ bool cpu_device::is_illegal_instruction()
192192
return cpu->isIllegalInstr();
193193
}
194194

195-
bool cpu_device::is_call_instrunction()
195+
bool cpu_device::is_call_instruction()
196196
{
197197
return cpu->isCallInstr();
198198
}

src/emulation/cpu_filter/call_stack_filter.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ void call_stack_filter::clear()
1717
bool call_stack_filter::pre()
1818
{
1919
isCallInstr = false;
20-
isReternInstr = false;
20+
isReturnInstr = false;
2121
isInterruptInstr = false;
2222

2323
pre_pc = cpu->get_register16(register_type::PC);
2424

25-
if (cpu->is_call_instrunction())
25+
if (cpu->is_call_instruction())
2626
{
2727
call_stack.push_back(make_pair(inst_type::call, pre_pc));
2828
isCallInstr = true;
@@ -36,8 +36,8 @@ bool call_stack_filter::pre()
3636
}
3737
else
3838
{
39-
call_stack.push_back(make_pair(inst_type::retern, pre_pc));
40-
isReternInstr = true;
39+
call_stack.push_back(make_pair(inst_type::return_back, pre_pc));
40+
isReturnInstr = true;
4141
}
4242
}
4343

@@ -58,9 +58,9 @@ bool call_stack_filter::post()
5858
{
5959
call_stack.push_back(make_pair(inst_type::call, cpu->get_register16(register_type::PC)));
6060
}
61-
if (isReternInstr)
61+
if (isReturnInstr)
6262
{
63-
call_stack.push_back(make_pair(inst_type::retern, cpu->get_register16(register_type::PC)));
63+
call_stack.push_back(make_pair(inst_type::return_back, cpu->get_register16(register_type::PC)));
6464
}
6565
if (!isReturned && isInterruptInstr)
6666
{

0 commit comments

Comments
 (0)