2,888 Topics
| |
| |
Please help me this exercise. Write a program to perform the following tasks: · Generate 100 random numbers in the range 0-100 · Show the random numbers were generated · Arrange methods randomly arranged and showing the basic · Take breaks to save the file and read from file … | |
Hi: I am new in the forum and I need some help. I have to write an assembly language program that reads a file with numeric information, and I need to create an array with that information and add them. SO far, I can open, read and display the information … | |
I'm really new to MIPS, so I'm having a hard time reading and understanding the code. For my homework, I was asked to identify and corrects errors in the folllowing code which computes the fibonacci number with given n passed in register $a0, and return it in $v0. I was … | |
Hi everyone, I'm trying to figure out if there is any way to do exponents using bit shifting. I know the following: x *= 2 --> x << 2 x /= 2 --> x >> 2 pow(2, x) --> 1 << x i'm looking for the equivalent bitshift, if any, … | |
la $a1, answer li $v1, 4 syscall move $a0, $v0 # move value of recursion to print li $v0, 1 # print integer value syscall # executes print li $v0,10 # call to exit syscall # executes exit The uncommented section is the area giving me problems, answer is a … | |
I need help converting ascii to hex. This is my code so far. ASCII DB 0DH,0AH,'THE ASCII CODE OF $' HEX DB ?,' IN HEX IS $' CHAR DB ?,'$' .CODE MAIN PROC ;initialize DS MOV AX,@DATA MOV DS,AX REPEAT: LEA DX,MSG ;get message MOV AH,9 ;display string function INT … | |
| |
| 5 in decimal = 0101 in binary. Its 1's Complement is 1010. Adding 1 to it gives 2's Complement which is 1011. Now 1011 also represents 11 in decimal. How to differentiate +ve and -ve numbers in Binary ? |
Hi, recently I have wanted to learn how to write Windows native binary code to make a binary script which in one form or another will display hello world. I am hoping to eventually create a more efficient compiler using this method but as you should understand already, this is … | |
I am using this lex program to analyze the usage of each register, whether they are used as a source, a destination, or used as an indirect addressing, these are my codes, i have to analyze all 12 registers...is there any other efficient way to do these as oppose to … | |
Can anyone tell me how to move the carry, to another register. because I'm using the ror command to put bits into the carry but unsure how to move take the carry value and store somewhere else | |
I have recently started assembler I am trying to send the letter H, to my LCD screen using basic assembly language, but it doesn't work. I'm using parallax 2x16 lcd http://learn.parallax.com/KickStart/27977 and Rx is hooked up to portb7. Atmega32 can someone tell what's wrong, because i couldn't any example code … | |
Hello, I want to add 3 digits (1+2+3) together but im getting wiered char instead of the resault. please advice where am i wrong. comments are added for more information they are not included in pep8 object codes. Thanks. D1 00 14 ;First number 71 00 16 ;Add the two … | |
Hello all, I have a test tomorrow on MIPS assembly language, and there is a section where I need to convert pseudocode into MIPS. I was wondering if there were any websites/tutorial that can help with this. The textbook that we use for the class is not very good at … | |
> I am trying to make a program that can convert decimals to binary. But there's no standard out that prints in binary. Can some one explain how I can do this. Any help will be appreciated. thanks. program DecimalToBinary; #include( "stdlib.hhf" ); static iNumber: int8 := 8; begin DecimalToBinary; … | |
I'm having a hard time understanding why my MIPS program is not outputing the expected result. Please refer to the c++ code, followed is my version of mips **The C++ version:** #include <iostream> using namespace std; int x[10] = {0}; int pos[10] = {-1, -1, -1, -1, -1, -1, -1, … | |
**NOTE** This code won't work at the application level. It directly addresses memory at 0xB8000 which will result in a segfault at the application level. This code must be part of an OS or an application in a not-so-secure operating system like DOS, where applications can directly address any part … | |
Hi Everyone, How important is for computer programmers to learn assembly language.I am a C# programmer and i haven't program in assembly language at all.Is it really worth learning assembly language for high level language programmers. Thanks. | |
Consider a computer that has a number of registers such that the three registers R0 = 1500, R1 = 4500, and R2 = 1000. Show the effective address of memory and the registers’ contents in each of the following instructions (assume that all numbers are decimal). (a) ADD (R0)+, R2 … | |
Hello: Need some help on how I can pass the following test: 00AA10A4 lea ecx,[eax-1] 00AA10A7 test eax,ecx 00AA10A9 je LockFunc2+27h (0AA10B1h) From my understanding, lea in this case is simply doing ecx = eax - 1 (at least thats what I can observe from debugging) However I keep failing … | |
| I'm not sure what the the code is addressing in each of these addressing modes. I know that the opcode is moving data, but where is the code addressing the code at in each addressing modes: register addressing > mov ax, bx immediate > mov ax, 1 or > mov … |
Hi I am looking for a Assembly Language Instructor for myself. I don't have programming background wants to learn Assembly Language Programming. Please help me. Email me at drd_ram@Hotmail.com | |
Floyd-Warshall(G) n=|V[G]| for (int i=1;i<=numNodes;i++) if connection weightmatrix[i][j]=weight; else weightmatrix[i][j] = infinite; if i=j weightmatrix [i][j]=0; for (int k=1; k<=numNodes; k++) for (int i=1; i<=numnodes; i++) for (int j=1; j<=numnodes; j++) a=weightmatrix[i][k]+weightmatrix[k][j]; if(a<weightmatrix[i][j]){ weightmatrix[i][j]=a;} return weightmatrix, matrixintnode; | |
I am writing a very simple boot and kernel in asm and c++. The thing is my development system is windows and I cannot use cpu interupts on windows, or can I? I dont think that my newly created kernel will be able to understand invoke ConsoleA or an of … | |
Is anyone familiar with the CPUSIM 3.6.9 Wombat Machine 1.1 ? I need help on how to make a loop with machine language. | |
Hello! I am creating an assembly program that accepts a single character and displays the alphabet in reverse. The requirements are (1) The input character should be displayed (2) The alphabet should be displayed vertically and (3) Only the letter 'Z' should be accepted as input. I have managed to … | |
Can someone help me out here? i'm trying to write a program on 8051 assembly, my topic is a digital time zone clock with 7segment segment display with a 4x4 keypad , were each key if the time of one country. and i can't attribute the time to keys. thanks … | |
hi every body i have a litle problem , but very big for my application in windows XP i make a regasm /codebase my.dll and it's cool with windows framework v2.0 but in windows 7 when i install the same framwork the regasm do not work , so help i … | |
> 8086 Interpreter: This program should allow the user to type in 8086 assembly language programs, syntax check them line by line, and run them. This is my summer project for this year, I just want to better understand, what do I have to do. Is a interpreter the same … |
The End.