게임/게임 엔진의 이해

[Handmade Hero] Intro to C on Windows - Day 2

한진희 2023. 8. 27. 04:10
반응형

1. Macro Functions (ASCII, ANSI & Macro) 

- ASCII에서 ANSI로 넘어가면서 옛날에 쓰여진 코드가 충돌되지 않도록 windows.h 헤더 파일에 Macro가 쓰였다.

- OutputDebugStringA for Unicode

- OutputDebugStringW for ASCII

- OutputDebugString for Macro

2. Basic Programming

- Reserve space to represent number (ex: int Integer;)

- Assign value to the space (ex: integer = 5;)

3. Variable Type Examples

- char (0000 0000)

- short (0000 0000 0000 0000)

- int (0000 0000 0000 0000 X 2)

4. Disassembly

- Register & Memory for operation & modification

- Mnemonic (ex: mov, movzx, add)

Reference

- Official Lesson

Extra Stuff for Fun

- [1] The cost of using OutputDebugString

반응형