how i start Assembler?

  • (2 Pages)
  • +
  • 1
  • 2

19 Replies - 3598 Views - Last Post: 18 June 2018 - 01:23 PM

#16 turboscrew   User is offline

  • D.I.C Lover
  • member icon

Reputation: 171
  • View blog
  • Posts: 1,107
  • Joined: 03-April 12

Re: how i start Assembler?

Posted 08 April 2018 - 06:21 AM

If 32-bit "Windows-assembly" is OK for you, this might be a good option:
http://www.masm32.com/

The "ml" manual should apply, but not the "ml64" manual.
https://msdn.microso...y/afzk3475.aspx

Here's how to do it without dedicated IDE:
https://www-s.acm.il...s/winasmtut.pdf

This post has been edited by turboscrew: 08 April 2018 - 06:35 AM

Was This Post Helpful? 1
  • +
  • -

#17 Cambalinho   User is offline

  • D.I.C Addict

Reputation: 0
  • View blog
  • Posts: 762
  • Joined: 04-March 12

Re: how i start Assembler?

Posted 08 April 2018 - 07:19 AM

i finally i get the Visual MASM working.
but for see the results i must use the cmd.exe
.model flat, stdcall	; Flat, 32-bit memory model (not used in 64-bit)
option casemap: none	; Case insensitive syntax

; *************************************************************************
; MASM32 proto types for Win32 functions and structures
; *************************************************************************  
include c:\masm32\include\kernel32.inc
include c:\masm32\include\masm32.inc
         
; *************************************************************************
; MASM32 object libraries
; *************************************************************************  
includelib c:\masm32\lib\kernel32.lib
includelib c:\masm32\lib\masm32.lib

; *************************************************************************
; Our data section. Here we declare our strings for our message
; *************************************************************************
.data
	strMessage	db "Hello World! mother",0

; *************************************************************************
; Our executable assembly code starts here in the .code section
; *************************************************************************
.code

start:
	; Use the StdOut API function to display the text in a console.
    invoke StdOut, addr strMessage
    
	; When the console has been closed, exit the app with exit code 0
    invoke ExitProcess, 0
end start

i don't know half of these code.
but i need ask 1 thing: how can i ask to user just for press a key(like getch() on C++) before exit?
Was This Post Helpful? 0
  • +
  • -

#18 Cambalinho   User is offline

  • D.I.C Addict

Reputation: 0
  • View blog
  • Posts: 762
  • Joined: 04-March 12

Re: how i start Assembler?

Posted 09 April 2018 - 08:08 AM

i can use the:
invoke crt__getch

but we must include:
include c:\masm32\include\masm32rt.inc

if i run Visual MASM, the messagebox is shoewd. but then the Visual MASM is frezzed and i must close it.
if i use manually on CMD, it will work perfectly.
my question: what happens when i RUN on Visual MASM?
Was This Post Helpful? 0
  • +
  • -

#19 Regression   User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 15
  • Joined: 18-June 18

Re: how i start Assembler?

Posted 18 June 2018 - 10:15 AM

You can also use these tutorials too;

https://www.tutorial...ntroduction.htm
https://www.youtube....h?v=uca_zY8ZNpA
https://thinkingeek....y-pi-chapter-1/

You can use the winasm IDE. Pretty useful for compiling ASM.
Was This Post Helpful? 1
  • +
  • -

#20 Cambalinho   User is offline

  • D.I.C Addict

Reputation: 0
  • View blog
  • Posts: 762
  • Joined: 04-March 12

Re: how i start Assembler?

Posted 18 June 2018 - 01:23 PM

thank you so much.
i have seen that tutorials pages, but didn't find it.
thank you so much for the big help. thank you
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2