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
-2
votes
1 answer

What does the syntax mean for declaring an array, and for calling functions?

For my first question, let's assume we have the following line of code under .data: "theSINTArray BYTE 256 dup(?)". I know that this code creates an array in which each element must be a BYTE, but what are the 256 and dup(?) there for? I know…
Proto
  • 99
  • 5
-2
votes
1 answer

Play a sound file in masm32 and to stop the other sound file at the same time

So I am doing a game in assembly language and I am using the PlaySound() function to play a background song. I want to do that after I "die" in the game, another sound file will start playing a sound file, and at the same time will stop the other…
jeff style
  • 61
  • 1
  • 7
-2
votes
1 answer

explain why this code can't be assembled

recently,i have started larning about assembly & computer physical stuffs,& when i arrived at writing assembly codes,i tried to link the first program the book i was using gave me but whenever i try to do so i get the following error…
user2355950
-2
votes
1 answer

Nasm building a string

Hi i trying to make a loop in Nasm. I have the loop working but want to change the string when it loops and cant seem to get this to work. I have this working: main: mov ebx,0 ; set ebx to 0 myloop: ; …
1ftw1
  • 656
  • 2
  • 14
  • 26
-3
votes
2 answers

Palindrome checking with an array

I'm stuck on how to check for a palindrome using MASM. #include #include #include #include using namespace std; extern "C" char test(char*, int); int main() { char arr[] = {NULL}; cout << "Enter a…
-3
votes
1 answer

How to remove a set number of characters counting from the end of a string?

I have to remove a certain number of characters(let's say 3) from the end of a string. For this particular string it works when I find 'Z', and then make it point to W by sub edi, 3, and then storing the rest of the string with 0's. INCLUDE…
kc9552
  • 25
  • 3
  • 10
-3
votes
1 answer

How to convert char to digit in Assembly Irvine?

I want to convert user's input character to digit(decimal) in Assembly MASM and Irvine library. `CALL ReadChar ; store user input in AL register -> c ; user input character C some code here to convert AL data to decimal 12 ` …
Jeff
  • 380
  • 7
  • 20
-3
votes
1 answer

how can i put value from memory to eax register in masm32

so i try to do "encryption" code using the xor command this is my code .486 .model flat,stdcall option casemap :none ;case sensitive ;;_____MASM MACROS___ include \masm32\include\masm32.inc include \masm32\include\kernel32.inc includelib…
H_meir
  • 333
  • 4
  • 13
-3
votes
1 answer

How can I create a 64bit calculator in assembly using only 32bit registers?

I want to create a 64bit calculator (operations: +, -, *, / ) using only 32bit registers. I have to read a string from the console, convert it into a mathematical expression ( ex: 123+4321 so I must convert it into two numbers 123 and 4321 and I…
-4
votes
1 answer

How to loop a sound file in MASM32

I am building a game in assembly, and I use PlaySound() to play a sound file in my game. The PlaySound()function plays the sound file until the sound file ends (until it reaches the full sound file length). Is there a way to loop the function so it…
jeff style
  • 61
  • 1
  • 7
-4
votes
1 answer

Find and display the maximum value in an array

I want to search the maximum for a list. This program does not display anything. .586 .model flat,stdcall option casemap:none include WINDOWS.INC include user32.inc includelib USER32.LIB include kernel32.inc includelib KERNEL32.LIB include…
dfkmmQKDS
  • 1
  • 1
-4
votes
1 answer

x86 assembly Which registers are involved in multiplication and division

Here is my code: .data ans1 db 0 ans2 db 0 .data? in1 db 100 dup(?) ; first input value in2 db 100 dup(?) ; second input value .code start: ; here I have code for input ; I get 2 nums, and I want to…
Progrmr
  • 1,575
  • 4
  • 26
  • 44
1 2 3
39
40