Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Sasszem committed Dec 7, 2020
1 parent 7b51b2c commit f16f794
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/addressmode.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Can be used to pretty print if indexed by enum value
*/
const char* ADRM_NAMES[] = {
"Accumlator",
"Accumulator",
"Absolute",
"Absolute, X",
"Absolute, Y",
Expand Down
2 changes: 1 addition & 1 deletion src/addressmode.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

/// Possible address modes of an instruction
enum AddressMode {
/// Accumlator
/// Accumulator
ADRM_ACC = 0,

/// Absolute addressing
Expand Down
4 changes: 2 additions & 2 deletions src/tokenFunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Addressing modes
The 6502 supports 13 addressing modes:
Accumlator OPC A
Accumulator OPC A
Absolute OPC $AABB
Absolute, X OPC $AABB, X
Expand Down Expand Up @@ -72,7 +72,7 @@ For these reasons, addr mode identification works the following way:
1) Token ends after OPC (len=3) => Implied
2) Token len is 5,
ends with 'A' or 'a' => Accumlator
ends with 'A' or 'a' => Accumulator
3) 4th char is a # => Immidiate
Expand Down

0 comments on commit f16f794

Please sign in to comment.