|
|
@ -27,7 +27,8 @@ languages consistent. |
|
|
|
9. [Function Prototypes](#function-prototypes) |
|
|
|
9. [Function Prototypes](#function-prototypes) |
|
|
|
10. [Section](#section) |
|
|
|
10. [Section](#section) |
|
|
|
11. [Type Declarations](#type-declarations) |
|
|
|
11. [Type Declarations](#type-declarations) |
|
|
|
12. [Project Organization](#project-organization) |
|
|
|
12. [Alignment](#alignment) |
|
|
|
|
|
|
|
13. [Project Organization](#project-organization) |
|
|
|
|
|
|
|
|
|
|
|
## Getting Started |
|
|
|
## Getting Started |
|
|
|
|
|
|
|
|
|
|
@ -124,7 +125,7 @@ Example: |
|
|
|
```asm |
|
|
|
```asm |
|
|
|
.386 |
|
|
|
.386 |
|
|
|
.MODEL flat, stdcall |
|
|
|
.MODEL flat, stdcall |
|
|
|
option casemap:none |
|
|
|
option casemap: none |
|
|
|
include \masm32\include\windows.inc |
|
|
|
include \masm32\include\windows.inc |
|
|
|
include \masm32\include\kernel32.inc |
|
|
|
include \masm32\include\kernel32.inc |
|
|
|
|
|
|
|
|
|
|
@ -146,7 +147,7 @@ Example: |
|
|
|
```asm |
|
|
|
```asm |
|
|
|
.386 |
|
|
|
.386 |
|
|
|
.MODEL flat, stdcall |
|
|
|
.MODEL flat, stdcall |
|
|
|
option casemap:none |
|
|
|
option casemap: none |
|
|
|
|
|
|
|
|
|
|
|
include \masm32\include\windows.inc |
|
|
|
include \masm32\include\windows.inc |
|
|
|
include \masm32\include\kernel32.inc |
|
|
|
include \masm32\include\kernel32.inc |
|
|
@ -241,6 +242,22 @@ Examples: |
|
|
|
; ... |
|
|
|
; ... |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Alignment |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Prefer to keep type declarations and instantiations aligned. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```asm |
|
|
|
|
|
|
|
.DATA |
|
|
|
|
|
|
|
ClassName db "WinClass", 0 |
|
|
|
|
|
|
|
AppName db "Window", 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.DATA? |
|
|
|
|
|
|
|
hInstance HINSTANCE ? |
|
|
|
|
|
|
|
CommandLine LPSTR ? |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
### Project Organization |
|
|
|
### Project Organization |
|
|
|
|
|
|
|
|
|
|
|
TODO |
|
|
|
TODO |
|
|
|