Skip to content

Commit c54756a

Browse files
LeviJacoby1991LeviJacoby1991
authored andcommitted
Rearranged private and public members of chip8
1 parent fe11cad commit c54756a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

chip8.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
#include<string>
55
#include<fstream>
66
class chip8{
7+
public:
8+
void initialize();
9+
void loadGame(std::string);
10+
void emulateCycle();
11+
void setKeys();
12+
bool drawFlag;
13+
714
private:
815
unsigned short opcode;
916
unsigned char memory[4096];
@@ -40,12 +47,5 @@ class chip8{
4047
0xF0, 0x80, 0xF0, 0x80, 0xF0, // E
4148
0xF0, 0x80, 0xF0, 0x80, 0x80 // F
4249
};
43-
44-
public:
45-
void initialize();
46-
void loadGame(std::string);
47-
void emulateCycle();
48-
void setKeys();
49-
bool drawFlag;
5050
};
5151
#endif

0 commit comments

Comments
 (0)