From 0e599cb357fc352377c4c76479daee92c01faffc Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Thu, 11 Jan 2018 10:11:23 -0800 Subject: [PATCH] Add Alignment Section --- README.md | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4d048d6..14792a8 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,8 @@ languages consistent. 9. [Function Prototypes](#function-prototypes) 10. [Section](#section) 11. [Type Declarations](#type-declarations) - 12. [Project Organization](#project-organization) + 12. [Alignment](#alignment) + 13. [Project Organization](#project-organization) ## Getting Started @@ -124,7 +125,7 @@ Example: ```asm .386 .MODEL flat, stdcall -option casemap:none +option casemap: none include \masm32\include\windows.inc include \masm32\include\kernel32.inc @@ -146,7 +147,7 @@ Example: ```asm .386 .MODEL flat, stdcall -option casemap:none +option casemap: none include \masm32\include\windows.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 TODO