Sha256: e64d59c20751587eb6214765ae8b54b1b9c0136ab4f332f1eb496fa9d5d4a75a

Contents?: true

Size: 823 Bytes

Versions: 7

Compression:

Stored size: 823 Bytes

Contents

; ---------------------------------------------
; Hello World for Win32 Intel x86 Assembly
;
; by fruel (https://github.com/fruel)
; 13 June 2016
; ---------------------------------------------

.386
.model flat,stdcall
.stack 4096

EXTRN ExitProcess@4 : PROC
EXTRN GetStdHandle@4 : PROC
EXTRN WriteConsoleA@20 : PROC

.data
msg BYTE "Hello World!",0
bytesWritten DWORD ?

.code
main PROC
    push -11                 ; nStdHandle (STD_OUTPUT_HANDLE)
    call GetStdHandle@4
 
    push 0                   ; lpReserved
    push OFFSET bytesWritten ; lpNumberOfCharsWritten
    push LENGTHOF msg - 1    ; nNumberOfCharsToWrite
    push OFFSET msg          ; *lpBuffer
    push eax                 ; hConsoleOutput
    call WriteConsoleA@20

    push 0                   ; uExitCode
    call ExitProcess@4
main ENDP
END main

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
language_templates-0.1.5.2 bin/languages/a/assembler_masm_win32.asm
language_templates-0.1.5.1 bin/languages/a/assembler_masm_win32.asm
language_templates-0.1.5 bin/languages/a/assembler_masm_win32.asm
language_templates-0.1.4 bin/languages/a/assembler_masm_win32.asm
language_templates-0.1.3 bin/languages/a/assembler_masm_win32.asm
language_templates-0.1.2 bin/languages/a/assembler_masm_win32.asm
language_templates-0.1.1 bin/languages/a/assembler_masm_win32.asm