Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
CSS
; Example assembly language program
; Author: R. Detmer
; Date: revised 7/97
.386
.MODEL FLAT


ExitProcess PROTO NEAR32 stdcall, dwExitCode:DWORD


INCLUDE io.h
extern printf


.STACK 4096                  ; reserve 4096-byte stack



.DATA                    ; reserve storage for data


msg BYTE "Hello World", 0



.CODE                    ; start of main program code
_start:


INVOKE ExitProcess, 0    ; exit with return code 0
PUBLIC _start        ; make entry point public
END             ; end of source code

syntax error in directive !!!
Posted
Comments
Sergey Alexandrovich Kryukov 2-Dec-13 20:09pm    
And where do you call your prinft? I'm not even asking if you really linked it. :-)
—SA
Anderso0on 3-Dec-13 10:08am    
without call printf in any where
when i generate file.obj ,give my syntax error in directive
Sergey Alexandrovich Kryukov 3-Dec-13 10:14am    
What syntax error?
—SA
Richard MacCutchan 3-Dec-13 4:05am    
Since you have taken this code from R. Detmer, you should go back and ask him/her for clarification.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900