2,888 Topics
| |
Hey everyone, been using this site for a lot of my programming needs, but is time I would appreciate some help. Just started assembly language and I am having trouble with a problem. The question: Write a program that will prompt the user to enter a number and then the … | |
Hi, I am tasked with writing selection sort in assembly. We are writing for the ARM processor. Currently, this is what I have: [CODE] sort2: 73 stmdb sp!, {v1-v5, lr} @ Copy registers to stack 74 ldrb r5, [a2] @ J = n 75 76 ldrb v2, [a1] 77 cmp … | |
Whats wrong with this? [CODE] NAM test // Namee ORG 0 // Memory start point LDA 100 / Load to register A memory adress 100, A=100 ADA 200 // Addd to register A memory address 200, A = 100+200 END [/CODE] | |
Hi I have a question on how this recursive factorial code below works (it's found in my assembly book). I understand most of the program except when the ReturnFact loop is called. I don't see it being called anywhere in the code or a jump statement directing it to there. … | |
Hey guys, it's been a while since i've had to do any assembly programming but it's come up again in a course of mine to haunt me :p We're trying to simulate reverse polish notation, which is fairly simple..and all we have to implement is addition/subtraction, with a few other … | |
I'm writing a program as a beginner in assembly my program is about summing up all integers in array and then getting their average . I'm stuck with the average is that i need to divide the sum of numbers by my array size and i don't know according to … | |
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. … | |
Hi Iwant to Understand how much My computer was on and another question is: I want to know Battery Life Time in My computer is there any Interupt for it Please Help me i was in stuck | |
I'm working on a program to get the reduce form of a fraction by finding the gcd of the fraction. It works for some while for others it doesn't work. I noticed it when I tried entering in -7, 6, 6, 2 for the numbers. The reduce form of the … | |
Hello, I`m newcomer here. I know English medium so please be charitable for me. I have a big problem with LGDT function in Assembler. I use TASM. I used a TD Debugger to show what is the problem with LGDT and I showed that when I execute a line of … | |
I have problem with my code. this code in c++ i have to write in assembly. i try to write but it doesnt work for (i=1; i<11; i++) if(i%2 == 0) sum = sum +i mov cl, 02d mov ax, 0d mov bh, 0d check: inc al mov dl, al … | |
Hello, I need to create 6X6 2D array in MIPS, but I don't have any idea and I cannot find any information about it. any help? | |
I need to write a program where the user input their name, the program will tell them 'Hello,' and then show the user's name backwards. This is what I have: [CODE]INCLUDE Irvine32.inc .data pleaseEnter BYTE 'Please enter your name: ', 0 StringName BYTE 30 DUP(0) yourName BYTE 'Hello, ', 0 … | |
Hi I keep getting an error when trying to assemble and run my code and would like to know why. It says there is a syntax error in line 21 and "directive must be in control block" error in line 23. The program is supposed to write a square made … | |
Im looking for any Windows Application written in Assembly, just 1 form with 1 button :) | |
Hi I was wondering if anyone could help me figure out why every time I try to run this code it keeps bringing up an error of "cannot nest procedures". I need to use the PROTO and PROC directives in this program for my HW assignment. I'm also trying to … | |
I'm working on a program that prompts the user for the numerator and denominator for two fractions. Then it will display the two fractions, then display the product of the two multiplied together, then the reduce form of that, and then finally it will prompt the user if they want … | |
What is offset of array? And how can I define it? It's very important. Please answer!!!! | |
[QUOTE=Narue;1387727]Endianness is about byte order, not bit order. So 00000000 00000000 00000000 00000011 in little endian is 00000011 00000000 00000000 00000000 in big endian. Keep that in mind when doing your conversions.[/QUOTE] How to create a Little Endian computation code? MASM platform: val7 dword 12345678 ; little endian starting point … | |
Hey forum, our professor assigned us a program we have to write in assembly language and I would love to have help on it. [QUOTE]Write an upper-to-lower case and lower-to-upper case conversion program. When the user inputs a letter, your program should convert it to upper case if it is … | |
So I wrote C for newtons version of critical point calculator and then needed to turn it into mips for my lab.. I really could use some help on getting the stack ptr in the correct sport.. The debugger.. also is confusing me.. Any help please? .data msg1: .asciiz "Please … | |
I've disassembled a program to attempt to understand the application's structure for importing the data files. I have an extensive background is Java and C++ but I can't find any resources explaining importing files and reading them in assembly. What I'm hoping to find is someone who can simply tell … | |
This was an assignment for school a homework assignment but Im studying for the test and going over the homework so I just wanted to know how to do this problem correctly he said it needed a various cjne statements but I just dont know how to do it it … | |
Hi, i'm making a project with tasm, i want to know how to turn off and on the LED. for example, i have 5 leds with assigned numbers in keyboard 1-5, when i press 1 in keyboard one led will light up and when i press 1 again, the led … | |
I have a subroutine that is passed a pointer to a bit string in the si reg and an index in the ax register. I declared the val variable in the data seg [CODE]getbit: cmp ax, 1783 ; max value of the index being passed ja goback push si mov … | |
Write a program which for a square matrix to calculate the sum of the elements. Assume that the amount can be placed in 16-bit register Example: 1 [COLOR="Red"]1 1[/COLOR] 2 2 [COLOR="Red"]2[/COLOR] 3 3 3 Elements are: 1,1, 2, which are with red color. I had calculate sum of this … | |
what is variable size of array in assembly? How can I define it? Please answer | |
I have a problem with assembly task. Write a program that will write the numbers 7-15 in the data segment, starting from offset 200h, and then using a loop and compare them to read data from memory and the DX will insert the sum of numbers divisible by four Here … | |
Okay, I have used branching instruction quite a few times especially in HC-12 assmebly. But then I noticed that some branching instruction needs the user to type in the displacement value, for example. "Made up code, just to explain, not any real assembly." [CODE] ldaa m ldab n loop: beq … | |
Hi there. I am trying to get a selection sort working on assembly language, using the Irvine32.lib. This is my first time taking an assembly language class and I am struggling with this program a lot. Here is the code. [CODE] TITLE MASM Template (main.asm) INCLUDE Irvine32.inc .data array1 DWORD … |
The End.