Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Tree/RBTree
- 코드엔진
- CS/자료구조/Linked_List
- ctf
- Tree/Traversal
- Tree/RBTree/Deletion
- codeengn
- forensic
- tree
- CS/자료구조/Stack
- Tree/BST
- CS/자료구조/Singly_Linked_List
- Tree/AVL/Deletion
- CS/자료구조/Doubly_Linked_List
- CS/자료구조/Circular_Queue
- CS/자료구조/Priority_Queue
- Tree/RBTree/Insertion
- CS/자료구조/Circular_Linked_List
- Tree/AVL/Insertion
- Tree/Binary_Search_Tree
- reversing
- 리버싱
- Tree/AVL
- CS/자료구조/Queue
- Tree/Binary_Tree
- UTCTF
Archives
- Today
- Total
SuperVingo
2. CPU Specification 본문
728x90
CHIP-8
Memory - 4KB
0x000 ~ 0x1FF -> Interpreter, Reserved, Hex Font
0x200 ~ 0xFFF -> Programs, PC will start in 0x200
Hex Font는 0부터 F까지 3x5 크기의 문자를 저장해둔 것이다.
CPU
General Purpose Register V0 - V16
// General Purpose Registers
unsigned char V[16];
Index Register I
// Index Register
unsigned short I;
Program Counter
// Program Counter
unsigned short pc;
unsigned short opcode;
Stack
// Stack and Stack Pointer
unsigned short stack[16];
unsigned short sp;
Timer Register - Sound / Delay
// Timer Registers
unsigned char delay_timer;
unsigned char sound_timer;
그래픽 관련
// Graphics
unsigned char gfx[64 * 32];
bool drawFlag;
CHIP-8은 가로 64픽셀, 세로 32 픽셀의 스크린을 사용한다.
KeyPad
//KeyPad
unsigned char key[16];
Instructions
728x90
'Emulator[에뮬레이터] > CHIP-8' 카테고리의 다른 글
4. Graphic 관련 - GLUT (0) | 2024.06.06 |
---|---|
3. CPU Implementation Code (0) | 2024.06.05 |
1. 에뮬레이터 코드 흐름 (0) | 2024.06.03 |
0. CHIP-8 에뮬레이터 제작 (0) | 2024.06.02 |