2,888 Topics

Member Avatar for
Member Avatar for YouKnowIt

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 …

Member Avatar for adnanshahid89
0
2K
Member Avatar for baldwindc

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 …

0
387
Member Avatar for Panathinaikos22

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]

Member Avatar for gizerakos
0
81
Member Avatar for datdude07

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. …

Member Avatar for gusano79
0
112
Member Avatar for necrojb

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 …

0
223
Member Avatar for reemhatim

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 …

Member Avatar for reemhatim
0
135
Member Avatar for meowbits

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. …

Member Avatar for meowbits
0
218
Member Avatar for MMStudent

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

0
44
Member Avatar for jdm

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 …

Member Avatar for jdm
0
154
Member Avatar for tomek1908

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 …

Member Avatar for tomek1908
0
185
Member Avatar for kikiritce

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 …

Member Avatar for kikiritce
0
5K
Member Avatar for newbieha

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?

Member Avatar for NotNull
0
70
Member Avatar for Kerok

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 …

Member Avatar for Kerok
0
970
Member Avatar for datdude07

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 …

Member Avatar for datdude07
0
221
Member Avatar for Panathinaikos22
Member Avatar for NotNull
0
111
Member Avatar for datdude07

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 …

Member Avatar for datdude07
0
441
Member Avatar for jdm

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 …

Member Avatar for thines01
0
201
Member Avatar for kikiritce

What is offset of array? And how can I define it? It's very important. Please answer!!!!

Member Avatar for NotNull
0
121
Member Avatar for dedmon

[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 …

Member Avatar for NotNull
0
1K
Member Avatar for VengefulToast

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 …

Member Avatar for D33wakar
0
570
Member Avatar for csMinorGirl

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 …

0
150
Member Avatar for WillT

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 …

Member Avatar for AceStryker
0
230
Member Avatar for custurd122000

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 …

0
73
Member Avatar for jgab

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 …

Member Avatar for thines01
0
96
Member Avatar for Locke123

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 …

Member Avatar for Locke123
0
210
Member Avatar for kikiritce

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 …

Member Avatar for skaa
0
170
Member Avatar for kikiritce

what is variable size of array in assembly? How can I define it? Please answer

Member Avatar for Ancient Dragon
0
71
Member Avatar for kikiritce

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 …

Member Avatar for kikiritce
0
138
Member Avatar for Limiter

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 …

0
68
Member Avatar for dsotelo91

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 …

0
566

The End.