2,889 Topics
![]() | |
I need help creating a two dimensional array in mips assembly. I am new to this kind of programming and i do not know how to approach the problem. i have to create an array max size 20 by 20 and then fill it up with data entered by the … | |
I know how to get to the user input and such, but I do not know what to do after that. | |
Hey I need some help with this question Write a function in LC-2200 assembly language to compute pow(n, m), that is, n raised to the mth power. (For Example, pow(2, 4) should return 16. but my function has to be recursive. thanks | |
Hey, i am learning from Programming from the ground up. I am having a bit of trouble with the pushl and popl commands. I'm a newbie with ASM and really just starting out on it, i am on a x86-64 im presuming it will run the x86 32bit code. I … | |
Choose in the following to make a ASSEMBLY LANGUAGE PROGRAM in EMU8086 .. Analyze and make a program on the ff. problms. 1. Given is based on the given average and their assign grade a. If average is greater than or equal to 90, assign remarks is outstanding. b. If … | |
Help me plz... I need it BADLY.. And ASAP ... :( This for emu8086 ... 1. Given is based on the given average and their assign grade a. If average is greater than or equal to 90, assign remarks is "outstanding". b. If not, if average is greater than or … | |
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 … | |
Hi all, Ive searched all of the web to help me, and Ive asked various people. Ive got a binary search tree program to write in MIPS, but I really have no idea where to start. Ive got the program in C++, but I dont have linux to attempt to … | |
//int main(){ //char8 au8_X1[6]={0x91,0xD4,0x80,0x70,0x81,0x20}; //char8 au8_X2[6]={0x6E,0x2A,0xF5,0X8C,0x7A,0xF8}; //i8vec_add(char8* pi8_a, char8* pi8_b, uint8 u8_cnt) // This subroutine adds the contents of two integer arrays // The number of elements to add given by cnt #include "pic24_all.h" #include <stdio.h> void i16vec_add(int16* pi16_a, int16* pi16_b, uint8 u8_cnt) { while (u8_cnt != 0) { //do … | |
Given the following instructions ADD Rx,Ry,Rz ;Rx <- Ry + Rz ADDI Rx,Ry,Imm ;Rx <- Ry + Immediate Value NAND Rx,Ry,Rz ;Rx <- NOT (Ry AND Rz) Show how you can use the above instructions to achieve the effect of the following: CLR Rx ;Rx <- 0 I am a … | |
I have been working on this problem for days. The object is to add two numbers from user input and display the answer in 32bit. So far I've got the messages to display and accept user input, but I'm getting a segmentation fault which happens after "Total Sum is: ", … | |
I am a beginner.I have installed IAR Embedded Workbench "IAR-EW430-4201". Installation was successful. Now, I have started using it by creating a project and included msp430f449.h header file in my code. And When I rebuild the solution/project I get an error saying 'msp430f449.h failed to include' and tried to locate … | |
Hello, After updating my code from Visual Studio 2005 to Visual Studio 2010 I am getting the error while compiling "Mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information" I have tried making the change <startup … | |
I use nasm. Say I want to have a loop and each loop add something to a buffer, here is the buffer: [CODE]buf: times 0ffh db 0[/CODE] Here is the loop the loop: [CODE] xor al, al mov edi, buf theloop: cmp al, 0ffh je done inc al ; add … | |
I've been searching for the solution for days already but found none except this as a starting point: [url]http://www.emu8086.com/assembler_source_code/calc.asm.html[/url] (See how the calc.asm backspaces the digits when it exceeds to the limit) So I needed to fix this working code (I'm using 8086 assembler btw): [CODE]TITLE "program 9" .MODEL SMALL … | |
I had to write a program that finds out whether a matrix is Skew-symmetric matrix or not...well my code is a disaster I seek help in this matter. In which way can I write this code to make it eficient,short and smart? this is my code (yet again it;s a … | |
hi everyone...i need help in this code regarding the output.....the output is letter but it should be number.....here the code .model small .stack .data msg1 db "Enter 2 numbers:", "$" first db "The sum is:","$" second db "The difference is:","$" menuA db "[A] Addition","$" menuB db "[S] Subtraction","$" choice db … | |
I am new at assembly language and confused about bottom tests. how can I speed up this loop ? Speed up this loop, by making it bottom-tested, without modifying its execution results: [CODE] add $t0, $zero, $zero addi $t1, $zero, 10 Top: beq $t0, $t1, Continue {loop body} addi $t0, … | |
We're looking for a way to enable users to send us a file using one of our web pages. Cannot use MailAttachment because page doesn't have rights to write files to a directory (we can't change that) so are trying a Google Data API to upload to our Google Docs … | |
Hi all! I'm using mac os X (intel core duo 2) and I'm quite new in assembly coding. I've got this problem: I'd like to read a file in USB memory using assembly. Does anybody know how is it possible? And more in general can you give me some links … | |
Hi everyone, I am using a LCD from Sitronix ST7920. This LCD comes with some self-defined symbols, I want to know how can I retrieve the self-defined symbols from the LCD. | |
Just as the title says I have a question with a program I am doing. I am just starting out using MASM assembly and kind of stuck any help would be great. I need to calculate the sums and differences of arrays that are shown below. The little bit of … | |
Hello, i'm having problem with this code, the program have to multiply 3 number and provide the result. But i always get zero for the final result [CODE] ORG 100 input A store A output A input B store B output B input C store C output C loop, load … | |
2.Because a segment only has 65,635 bytes,we have to contain a 1MB file in many segments,right? | |
I need to synchronize "Real-World" with a Window process. That is, the Windows operates a camera and shoot an image every xx milli-seconds, using a very accurate timer. In order to synchronise those images with the outside world, I want to time-stamp when some trigger happens and causes an interrupt. … | |
How do I do assembly code with the mingw-g++ compiler. All the websites I checked say that this should work: [CODE]int add(int a, int b) { int c=0; asm("mov %[aVal],%eax;add %[bVal],%eax;mov %eax,%[cVal]" : [cVal] "=i" (c) : [bVal] "i" (b) : [aVal] "i" (a)); return c; }[/CODE] But instead I … | |
i want to download windows 3.1 it must be in .IMG format to dd to a usb card in linux for my pc. i want to run old software. | |
Hey guys, I'm fairly new to assembly & i'm having trouble iterating through an array; i.e. increasing the index as I loop. I'm working under x86-64 in Linux using NASM. There doesn't seem to be much documentation on the 64-bit architecture. Also, the book i'm using seems to code all … | |
I want to do task switching using two tasks while i have booted from usb drive. The first switch takes place but the second one does not happen. Any ideas why? the code is below. The routine which does the task switching is at label sched. [ICODE]org 100h jmp start … | |
[B]MASM Assembly[/B] [CODE] TITLE Palindrome Checker (main.asm) 002 003 ; 004 ; 005 ; 006 007 INCLUDE Irvine32.inc 008 START = 128 009 010 .data 011 strPrompt BYTE "Please enter a string of Integers: ",0 012 strMsg BYTE "Original String of Integers: ",0;dh, 0ah 013 revMsg BYTE "Reversed String: ",0 … | |
![]() | I need to put the number of cycles for each assembly instruction in the comment field and then calculate the total number of cycles for the entire 10 second timing interval. Need to calculate the processor clock frequency (MCLK) by dividing the total number of cycles per interval by the … |
![]() | I recently added hsProgressbar.dll to my Program, it worked fine, but then I decided to remove it from my Computer and also remove it from the references...however..the Warning is still there? How can I completely remove it, so that I don't get the error anymore? Thanks in advance. ![]() |
Constructing a MIPS code programme that reads the keyboard input of 8-bit binary number in ASCII where the only input is 0 or 1. The code should convert the string you have read in, into a numeric value. When a string is read in, it is stored as a numeric … | |
i have this coding...when i burn into pic it does not work...anyone can help me to solve this coding...this is urgent case..need help. ;************************************************************************ ; Digital Thermometer * ; * ;************************************************************************ list p=16f84A #include <p16f684A.inc> __CONFIG _CP_OFF & _DATA_CP_OFF & _LVP_OFF & _BOREN_OFF & _MCLRE_OFF & _WDT_OFF & _PWRTE_ON & … | |
What does it means when a variable or label has brackets around it? How is it different than using the statement without brackets? For example: mov eax, [data] | |
Hi, Need some help with MIPS I need to write a MIPS code that reads 10 characters string and then only print out value of 3rd, 5th and 7th character (remembering that first character is character 0) OUTPUT (should be somewhat like this): Enter 10 character string : i love … | |
Those are the two best books as people say. Art of assembly teaches High level assembly while others doesn't say anything . Which book is better and why?(for a beginner) | |
I like to write programs for Windows in Assembly .I am currently reading Assembly Language Step-by-Step by jeff duntmann 2n edition which was published in 2000 . 1.Is that ok(the year 2000)? <<< (it has both DOS an Linux. I read DOS part) I've found a new book (3rd edition(published … | |
Hi! I'm new to assembly coding and I have an assignment in Intel/AMD where I'm supposed to code a file that consists of different subroutines and another file that produces the code to take care of. But first, as a start, I think I have to start with small pieces … | |
can someone explain to me how to convert for example g = h + A[i] into an LC-2200 assembler????? | |
Hi, i need a source code in assembly that make paint imvironment such as windows paint...not so profetionally like that...just when i drag a shape such as rectangle and drop this, draw a big rectangle. i want execute this code in c ... thanks ... | |
I kind of lost here... I have the book but it does not show the loop... I want to use je 100 but this is not the same language Using the IAS computer instruction set to write a program for the following C(I)=A(I) + B(I) for I = 1,2,... 100 … | |
what is the NASM-IDE used by most and what is the best one so far? provide a donwload link if possible | |
Hi guys i need a little help fast i have a calculator and its giving me some problems This calculator reads from a text file the result shows in the terminal but its giving me some troubles For one only the + operator works I cant use the overflow function … | |
Hi this my first post here XD Its like this i have the code writen but it gives me this error Segmentation fault (core dumped) Can anyone tell me why? [code] MAX_BUFFER equ 10240 ; Constante que sera' usada como tamanho maximo de cada linha lida do teclado (10kb) FICH_ABERTURA … | |
I used debugger(windows) to view a text file(20 bytes only). books says it shows the whole 128bytes section and we have to decide where our files end. Why does it have to be 128? why not only the file size or 512 or a 256 or something? Books calls the … | |
Earlier when I came here I had only a minimal set of utilities and a WinXP comp.. Now i'm here and serious, with kubuntu (and Internet!!!!) and willing to learn all of that dd, mov, eax, and bochs stuff. Here is my delemia: I have a C++ Program, have no … | |
I've dumped hexadecimals of a text using windows debugger. So if those hexa values represent every single character by a single hex value,does it mean its binary is that hexa's converted binary value and pc deals with that character using binary but assembly language and people convert and use it … | |
Hi everyone. I am doing my homework for my computer organization class and I'm running into a small problem. Before I explain what I've done, what I expect to happen and what is happening, I want to assure everyone that I am not looking for an answer to my homework, … |
The End.