SO guys I am supposed to be making a program that will check for a palindrome but, I can not get my code to work. It seems to be stuck on the cmp part. I am not sure if this is even right I dont have much experience with masm. Any help would much be appreciated segment .data s DB 'malayalam' s_size DW 9 pal db "is a plaindrome",0x0a,0 segment .text global main extern printf main: lea rdi, [s] ;move string into rsi mov rsi, rdi ;set rsi to rdi add rsi, s_size ;add the 9 to rsi dec rsi …

Member Avatar
Member Avatar
+0 forum 2

Hello all, I am having some trouble with my assembly code...still kind of new, but here it goes... The assignment is to desing an assembly program that uses a dialog box to prompt the user for a number. These numbers will be stored in an array. There will be an output message that shows the following: sum of numbers entered, how many numbers were entered(not counting the -9999 to end the program), the aerage of the numbers, and the count of array entries that are greater that or equal to the average value. All help is appreciated! Here is my …

Member Avatar
Member Avatar
+0 forum 2

I am a beginner in learning assembly language. I wanted to know which assembler would be best to use between NASM and MASM in today's context. Also, can you give a link to documentation on these assemblers?And tutorial specific for these assembler (as assembly is not standardized)

Member Avatar
Member Avatar
+0 forum 3

I am having some problems with my "sum of numbers program," and cannot figure out why I am not getting the correct answers. This is my first Assembly programming class, so take it easy on me, please. The assignment is: Prompt a user for an integer n, compute the sum of the integers from 1 to n, and display the sum. ex: user inputs "5". 1+2+3+4+5=15. Output "The sum is: 15" Here is what I have so far: .586 .MODEL FLAT INCLUDE io.h ; header file for input/output .STACK 4096 .DATA sum DWORD 0 prompt BYTE "Enter a number: ", …

Member Avatar
Member Avatar
+0 forum 2

good morning \ afternoon \ evening i need a help in the assebly code ,, my brain about to explore !! so here's the Q: this program reads an array of integers and an integer number .the program then checks if there are any numbers in the array smaller than this number . at the end the program print the count of these numbers . i need the code in MASM615

Member Avatar
Member Avatar
+0 forum 2

You can use and assemble with MASM611 very easily in Notepad++. Ihave find a very nice customization of Notepad++ on a blog. You can find it at [URL="http://easymasm.blogspot.com/"]http://easymasm.blogspot.com/[/URL]

Member Avatar
Member Avatar
+0 forum 2

I am in an assembly class and we are now working on using files. Part of the assignment is to make a file and write an array full of values into it. I have been working on this assignment for some time and I am stuck on the file portion. Our course material really does not help with this seeing as we have a new instructor that is using his own slides while at the same time using the assignments from previous years... :-/ Anyway, the array to be written is a DWORD, 47 index. I'm not necessarily looking for …

Member Avatar
Member Avatar
+0 forum 2

Hi guys/girls. I have a program due soon for my assembly class. My teacher expects us to bruteforce through this program, but I'm wondering if theres any other way. Here's my code basically, edx is the pointer to the value located at a position on a sudoku matrix. ie. [edx + 1] is 1 square to the right of edx. I've listed the teachers code below. Currently I've gotten it to check the entire 1st row with box 1. If you guys got any ideas, it'd be much appreciated. Thanks! [CODE]Test_Sudoku PROC mov ecx, 80 mov eax, 0 .code A0: …

Member Avatar
Member Avatar
+0 forum 2

Hello, I'm new to assembly and am finding myself porting someone's MASM old code to C++ for portable smartphone architectures. There's a syntax on the memory addressing I'm having trouble interpreting. Can anyone help me understand what's going on? It's probably an easy question for everyone familiar with the syntax, but it is a bit different from the examples I've found around the web and I want to move forward on this project. Apologies if I've missed a glaringly obvious source. I figure I know just enough about all of it to be dangerous. In C++ is the structure declaration: …

Member Avatar
+0 forum 0

Hi! Could you tell me what did I do wrong in the code bellow? I try to read one line from a file, but it shows on the screen only unknown characters(different from the characters I have in the file). [Code] GetLine Proc Hand:HANDLE, pBuf:DWord Local Len:DWord Local rLen:DWord Local Chr:Byte Mov Len, 0 .Repeat Mov rLen, 0 Invoke ReadFile, Hand, Addr Chr, 1, Addr rLen, NULL Invoke StdOut, Addr Chr Mov Ebx, Len Mov Ah, Chr Mov Byte Ptr [pBuf+Ebx], Ah Inc Len .Until Chr == 10 || Chr == 0 Mov Byte Ptr[pBuf+Ebx], 0 Mov Eax, Len Ret …

Member Avatar
+0 forum 0

I'm actually trying to write a simple program which takes in a string and send it to printer to print. But i'm having a problem with testing it, because the signal assembly language sending is to a parallel port, but there are only usb port printers available. Does anybody know how to resolve such problems? Thanks very much for reading. P/S: I'm using MASM and the code is like this [CODE] .model small .stack 100h .data input_message db "Enter a string to print: $" msg db 100 db ? db 100 dup(?) printing_message db 10,13,"Printing.....", 10, 13, "$" n db …

Member Avatar
+0 forum 0

The End.