Questions tagged [masm32]

MASM32 is a software development environment (SDK) for programmers using Microsoft's Assembler (MASM) to target 32-bit Windows.

MASM32 is freely available at http://www.masm32.com/.

597 questions
0
votes
1 answer

New to assembly, is there such thing as "generic assembly code"?

I'm new to assembly (much more used to working with C#), but I've decided to see if I can learn it and get more of an idea of what my computer does under the hood. My question is, when programming on Windows, do I have to use the win32 libraries?…
MatthewSot
  • 3,516
  • 5
  • 39
  • 58
0
votes
1 answer

MASM write DWORD to registry

I'm trying to write a DWORD to registry, I do like this: WSTR keyvalue,"0" invoke RegCreateKeyExW,HKEY_LOCAL_MACHINE,offset keylocation,NULL,NULL,REG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS,NULL,offset hIDKey,NULL .IF eax==ERROR_SUCCESS …
Marius Prollak
  • 368
  • 1
  • 7
  • 22
0
votes
1 answer

Displaying PSW content

I'm beginner with asm, so I've been researching for my question for a while but answears were unsatisfactory. I'm wondering how to display PSW content on standard output. Other thing, how to display Instruction Pointer value ? I would be very…
B.W
  • 33
  • 6
0
votes
1 answer

What does this Assembly error mean? "Language type must be specified"?

I'm just starting out learning x86 Assembly with MASM32 and I made a program and ran it, but it throws the error "language type must be specified". What does this error mean? Google searches turn up nothing. I'm sure I included all the relevant info…
Dylan LaCoursiere
  • 493
  • 1
  • 8
  • 18
0
votes
2 answers

difference between .IF and IF in assembly

what is the difference of .IF and IF directive in assembly? in document for .IF : .IF condition1 statements [[.ELSEIF condition2 statements]] [[.ELSE statements]] .ENDIF and for IF : IF expression1 …
Vahid Kharazi
  • 5,723
  • 17
  • 60
  • 103
0
votes
2 answers

masm32 random integer 0-9

I'm learning masm32 and I need the program to generate a random integer from range 0-9 to compare to the user input. I have no problems with the comparing if I do have an integer. Is there an easy way to generate a new random integer from said range…
Sunny
  • 605
  • 10
  • 35
0
votes
1 answer

Compute logarithm ln(x) using FPU assembly

I have a problem with simple logarithm computation using FPU. I am using MASM compiler integrated with Visual Studio 2012. LOCAL log_e_120 : REAL8; MOV eax, 120 MOVD mm0, eax MOVQ log_e_120, mm0 FINIT FLDLN2 ; load…
Athlan
  • 6,389
  • 4
  • 38
  • 56
0
votes
1 answer

Symbols count in string masm32

I'd like to write a program that counts the amount of specific symbols in string using scasb and masm32, I found the example, but I couldn't figure out why i'm getting errors. Here's the part of code: .data str db '. . .' len_str=$-str .code …
Vanguard
  • 129
  • 1
  • 11
0
votes
1 answer

Finite State Machine in Assembly (MASM615)

I am trying to implement a FSM in the aforementioned version of assembly, but can't seem to get far without knowing which approach to take. Does anyone out there have an implementation they're willing to share? My main concern is how to use jumps…
Wilson Canda
  • 434
  • 5
  • 19
0
votes
1 answer

Debugging a SHA-256 implementation

I've been working on a SHA-256 implementation using MASM32, and got some source done. However, I can't get it working correctly and have looked at it, rewrote bits of it, and copied some source into the inline Delphi ASM and got it running…
Glenn1234
  • 2,542
  • 1
  • 16
  • 21
0
votes
2 answers

"fatal error LNK1561: entry point must be defined" error from MASM32 in very simple program

Fixed; here's the fixed code (doesn't do anything and crashes, but it assembles, which is the point): .686P .MODEL FLAT .CODE _START: MOV al, 255 END _START I also discovered I had to use the /c switch with ml and then link separately with…
Archimaredes
  • 1,397
  • 12
  • 26
0
votes
0 answers

Change MASM console window size

I'm making a program that requires a console window size of at least 80 X 80 to print a matrix of squares of size 21 x 18. These squares need a space between them to be distinguishable so specifically, a 43 x 37 window. At the present I use an 80 x…
user1685185
0
votes
1 answer

x86 assembly masm32 window application stops responding

I have managed to create a window (thanks to everyone here at SO!), but whenever it runs, the window forms, but it immediately breaks and a window pops up saying "test.exe has stopped responding" (test.exe being the name of the program). Here is…
Progrmr
  • 1,575
  • 4
  • 26
  • 44
0
votes
1 answer

x86 assembly creating windows - errors A2111: conflicting parameter definition and A2008: syntax error - how to fix?

I'm following Iczelion's Win32 tutorials, specifically tutorial 3 ("A Simple Window"), and when trying to "strip out" some of the error handling and unnecessary code for the sake of experimentation, I get the following error when…
Progrmr
  • 1,575
  • 4
  • 26
  • 44
0
votes
1 answer

x86 assembly make a window and set width and height size

When making a window using invoke MessageBox,(string),(string) syntax, are their any parameters that allow you to set the size of the window you are creating? For example, .386 .model flat,sdcall option casemap:none include…
Progrmr
  • 1,575
  • 4
  • 26
  • 44