2,878 Topics

Member Avatar for
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
214
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
43
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
145
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
174
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
964
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
220
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
440
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
189
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
120
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
566
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
145
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
227
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
72
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
207
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
137
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
538
Member Avatar for muzaheed

i am a computer science student.i have no interest on assembly.just doing it for my course. so can anybody suggest me any good assembly compiler? in my university lab they use Masm. but it is too old and do not show in which line error is and no auto code …

Member Avatar for GunnerInc
0
102
Member Avatar for nuliknol

Hi, I am writing my own OS for 64bit processors and I am stuck with the problem of general protection. My OS will not rely on page fault to implement user space protection mechanism, so I found there is a way to do it with segment limit checking: This presentation …

Member Avatar for nuliknol
0
179
Member Avatar for Javano

Hi Everyone, i have recently started learning assembly and so far i do enjoy it , however my recent problem has me stumped ... The question is : ask the user to enter a keystroke and then determine whether its a decimal # or lower case char or printable symbol, …

Member Avatar for NotNull
0
219
Member Avatar for jdm

I'm working on a program that will find the prime factors to an unsigned integer that is entered by the user. I just have to make sure the program can handle a number up to 1000. I'm writing assembly in x86. I have already got a prompt for the user …

Member Avatar for jdm
0
4K
Member Avatar for youngyou4

[CODE]SORT STM 0,15,SSAVE Store registers to SSAVE LM 2,3,0(1) Load in parameters LA 3,0(3) Pointer to end of table LA 4,0(2) Pointer to first table entry DO1 CR 4,3 Compare table entry to end of table BH ENDDO1 Branch if L 6,0(4) Value of Low LA 5,4(4) Pointer to Index …

0
60
Member Avatar for phfilly

Ola! I'm still kind of new with the whole assembly language and just need some help with this program i'm writing. What I want it to do is to ask a question -like for a number and then store that inserted number in a variable. And then test whether its …

Member Avatar for AceStryker
0
1K

The End.