2,889 Topics
![]() | |
Hi All! I have a programming assignment that ive been trying to work on. Recently, ive successfully wrote it in java, but im trying to use that as psuedocode so that i can transcribe it into mips - but i dont understand this stuff! ive been reading this book but … | |
edit: sorry strcopy not strcat Hi I'm new to MIPS and just need some basic clarification on what is actually going on here. I'm trying to make a copy of string1 into string2 by reading through the string copying each bit seperately, and stopping at the 0 terminator: [CODE] .data … | |
Hello. I am having a very hard time trying to encode a file and then decode it again so i can end up with the original file. I want to transform the content in the original file into base 85, and perhaps 100 charaters or more so that it works … | |
I'm taking a class in sparc assembly, and I'm having a hard time with this concept. We're supposed to add two numbers together that can have as many as 100 digits. Since this is too many to fit into one register, I have to save them in memory and then … | |
Hey people. I'm trying to build a loop to move from Arthur Vandelay to Tim Pennypacker, to Bob Sacamano. I know how to move from 54 to 21 to -2 and so on but I can't get the code right to move from Arthur Vandelay to Tim Pennypacker. I know … | |
Hey everyone, How do two-dimensional arrays work in MIPS? I've found a couple of sites that have told me how to set up a multi-dimensional array, but they aren't really that clear on how to access the data on the inside. My array is set up as such: board: .word … | |
I'm attempting to revisit assembly after several years of not having used it at all, and I'm having a bit of trouble with simple I/O. My program is designed to read a number from the user and spit it right back out. The "%c" is simply to remove the newline … | |
Hey friends, please help me as soon as possible, I just need the assembly(ASM) code for an 8086 for a simple PC Alarm clock, that just allows the user to set alarm and that plays an mp3 or any other format at that specified time. Its absolutely fine if the … | |
So I am asked to write a function called parens that will allow me to do this. Say that I have a string (a + (x) * (6 + 14) - q7), then I will get: (x) (6 + 14) (a + (x) * (6 + 14) - q7) the … | |
Hi, I have an array of two string elements. Is it possible to store these two elements as one element in a register? Thanks. | |
Hi I am coding in x86 DOS. When I write a code and assemble it and run it in debug, it works perfectly fine but if I run i as a standalone application, it works for small 3-4 line code but not for 8-9 and larger code. PLease Plesae help. … | |
can i ask for a program in tasm that can solve arithmetic, example 1+1=2 the program is written in tasm compiler.. or code for addition in tasm.. thx.. | |
does anybody has a debuger code.means how to make debugger in assembly language... | |
I believe the disp_sum (last) call is incorrect because the program will execute but the sum will not be displayed. Project is due tomorrow (11/27) so prompt assistance will be greatly appreciated Thanks in advance! ; A Simple Calculator that performs basic arithmetic (+ - * /) .model small .stack … | |
I have to pass a char as a parameter using the stack, but the stack doesn't allow anything smaller than 16bits. So I put a char on a 16bit register, push it into the stack. But how do i get the char from my function in order to work with … | |
I'm new to AT&T assembly language. I read this from linux source code(kernel 2.4.0 include/asm_i386/string). [code=c] static inline void * __memcpy(void * to, const void * from, size_t n) { int d0, d1, d2; __asm__ __volatile__( "rep ; movsl\n\t" "testb $2,%b4\n\t" "je 1f\n\t" "movsw\n" "1:\ttestb $1,%b4\n\t" "je 2f\n\t" "movsb\n" "2:" … | |
I'm having a problem in program trying to access pieces of an array. My array is declared as: [CODE]mapping DB 7,0,8,1,9,2,4,3,5,4,6,5,1,6,2,7,3,8[/CODE] The procedure that uses the function is: [CODE]infloop: _GetCh noecho cmp al, '@' je gameEnd playerGoes: mov si, 0 playerLoop: cmp al, [mapping + si] add si, 2 jne … | |
i made macro named print as following : print macro str .data x db str .code mov ax,seg x mov ds,ax mov ah,09 lea dx,x int 21h endm it's worked very well when called for one time but when called 2 or more error message appears that is 'duplicated defining … | |
hi i write a program to add a value in windows registry but it didn't work and doesn't add anything in registry, what's a problem? my assembler is masm32. and here is my code: [code=asm] .386 .model flat, stdcall option casemap:none include windows.inc include kernel32.inc include advapi32.inc includelib kernel32.lib includelib … | |
I am having difficulty implementing Booth's Algorithm in mips and need some assistance urgently. FOr this assignment, I have to allow the user to enter two number representing the multiplier and the multiplicant. The the Booth's algorithm when implemented in mips should print the results in both binary and decima. | |
(Using NASM on Ubuntu 7.10) I'm messing with a simple linear transposition encryption program. It added 5 to each character in the string excluding the linefeed character. I thought I would jumble it a little more by make it add 1 the the first character 2 to the second and … | |
Can someone give me some pointers where im going wrong, im new to assembly, GCC, C, NASM, NASMW. I cant get past this error when trying to make the object, is there something extra i need to install. C:\test>nasmw -f win32 prog.asm -o prog.obj prog.asm:12: error: symbol `_printf' undefined | |
can you recommend a site where i can find all mouse function interrupt and their services esp. mouse clicking.I only know some of it's services, but I don't know the service number for clicking.... | |
Hi everyone I am working on this project that involves programming the EEPROM chip using assembly language but I do not know how to go about doing this. I am suppose to be able to read from, write to, edit, and erase the eeprom. What can I do? Where do … | |
cn anyone sugest any e book or sites to study the assembly language well? i am searching forr it. | |
how can write assembly code . i mean is assembly have it own compiler . | |
hi , i must convert the following c code to mips assembly for my university: odd = 1020000; /* 0xF9060 */ j= 0; loop: if (j & 0x1) { printf(“odd\n”); odd++; } j = j + 1; if (j < 5) goto loop; printf(“%d\n”,odd); variables j and odd must be … | |
hello I am using a program called MPLAB-SIM and I am trying to test my interrupts on a 16F class pic my interrupts registers are setup like this movlw b'11001000' ;sets up INTCON, with PEIE and PORTA interrupts allowed movwf intcon ;uses w to set intcon interrupt control movlw b'00011110' … | |
I am writing an assembler code to do the following: ToUpper function converts a string of characters to uppercase, if they are not already uppercase. That is, the string already exists in memory (on the stack) (Yes it is Homework) I am trying my best to do everything I know... … | |
Hi, I am taking an Intro to Computer Science course. I have to translate a code to assembly. I was wondering if someone could help me out with the first line of the code. I am not sure what to do since it it ==. if (x==y) { thanks! | |
Please who can write a code in asml for the conways game of life | |
I am using 32 bit AT&T version of assembly on linux. Someone please tell me how to convert an integer stored into one ot the registers to a string that can be printed. e.g. 0x00066 should print as 102. | |
I started working with MIPS a couple of months ago and now I need to edit a given string so that it will only display the digits, arithmetic symbols and parenthesis that were in the original string as output. I though I could go ahead an print every string that … | |
I'm trying to learn something about assembly. I found this code: message db '.....Hello World.....',13,10,0 what is the meaning of the numbers after the text? | |
I am trying to write a code in LC-3 for finding the minimum and maximum values entered. So far I have completed what is below but am missing some major parts and I can't figure out what to do. ---- the lines like this is where I know something is … | |
Why does my computer reboot after i set PE bit of cr0 or run lmsw? I have set all the code and data segments | |
I Need help on how to write the full opcode of the above x86 codes. i saw like for sgdt it is 0F 01 /1. the problem is i dont know the full opcode will it be 0F01[01-this is what am not sure][then the 48 bits] FASM cannot compile the … | |
Im coding on vesa mode 116h, i knw its properties like banks windows and resolution, my only problem is that i dont knw how to switch banks and dont know what the windows refer to. I also want help on the vesa service that provides the pointer to bank switch … | |
[code] stdout.put( "Enter a number " ); stdin.getd(); [/code] lets say the user types "01020304" i need to look at every two digits(i.e. 01,02,03,04) and do some work with them. My question is how would i go about seperating these number so i can work on them? | |
hi Pals, i have a problem with MASM interrpt 10h. i want to colour s portion of the screen using the 10h interrupt after changinging to the video mode. Please help [code] .model small .stack 100h .386 .data .code main PROC mov ax,@data mov ds,ax mov ah, 0 mov al, … | |
Pretty new to assembly language and I need help with this problem. I'm trying to traverse through a string and see if each character is either a number or a operand (+, -, *, /). Everytime I run the program, it doesn't work properly. I'm pretty sure the error is … | |
Hey all, I was wondering could anyone give me any help on TASM, with regard to the in libraries, i.e. int 10h, int 21h etc cause, ive been out of college for a year, and im back now, and im finding it hard to get used to this malarky again, … | |
I need to make a program that asks the user for input 8 numbers and output the max and min value. The numbers has to be stored in an array in memory. Basically is going to be 2 loops, 1 to prompt the user for the 8 numbers and second … | |
How do I check to see if the posts are the same in the end? PROGRAM IDENTIFICATION SECTION: Input : The value of N. Output : The factorial of N. Purpose: Computes the factorial of N, after N is input by the user. PROCEDURES CALLED: External procedures called: FROM iofar.lib: … | |
I am currently studying the impact of microarchitectural techniques. I have been looking at code and how to stall it correctly, as well as how to make it more efficient. I have been doing this through several different methods and then measuring the cycles per iteration. I was wondering if … | |
my code is however whenever I tried to print something inside the function it always gives me a bad address error, can someone please tell me why?? this is my code: largest : #Function prologue subu $sp, $sp, 56 sw $a1, 44($sp) sw $a0, 40($sp) sw $ra, 36($sp) sw $fp, … | |
hello...can anybody add a code to this program to make this a memory resident program...please... [B]*sound progam* jmp input beat db 8 nota dw 3531 nota1 dw 3032 nota2 dw 4030 nota3 dw 2728 nota4 dw 2425 nota5 dw 2023 nota6 dw 1520 nota7 dw 1313 music: mov si,0 balik_sound: … | |
Hi, I was just learning about buffer overflow attacks... I was curious as to how to generate a simple shellcode. For example, I've written two codes - One is the typical program that has a vulnerability inside and the other is the shellcode. main program: [code] void test(); int main() … | |
hi there, i was currently given a task as shown above.... however what i had was juz a small program code (in assembly) between the two.. i need something longer where i can further look into its pipelining, becoz i still need to analyze each of the instruction cycle... Thanks … |
The End.