2,878 Topics
| |
Hey.. I have started learning assembly and have a little problem with indirect far call... I want to split my program in two source file, and let a procedure in one call a procedure in another, both in different segments This is what I have done so far, the procedure … | |
Hello everyone! When I go into the command prompt and type: [CODE]debug main.com[/CODE] I get this in the console, when I type 'r': [CODE] AX=0000 BX=0000 CX=0041 DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000 DS=1549 ES=1549 SS=1549 CS=1549 IP=0100 NV UP EI PL NZ NA PO NC 1549:0100 E91000 JMP 0113 [/CODE] … | |
Hello, I'm trying to convert a double (3.16) and take its integer part (3). However I'm encountering problems doing this. Can someone pleeease help me out ? Here is my code: [CODE]main: li $v0, 7 #asking the user for a double syscall mov.d $f2, $f0 cvt.s.d $f4, $f2 #converting from … | |
hi everyone, I've had a problem with my operating system project (it's just simple cmd line xD ) it's easy but i couldn't find it ;) how i can list folders and files in drive A? my assembler is -nasm and i'm using 16 bit real mode .(kernel) -cryptacker | |
I am trying to write a method that will remove all characters that aren't letters or integers from a string that is input by the user. As of now what happens is that as soon as a character designated for removal is encountered, it just chops off all of the … | |
Hello, I'm writing a program in assembly and am encountering a problem. I want to convert a double (floating type number) into an integer (ie. 3.1 into 3). So far, my attempts have been futile. This is my code: [CODE] main: li $v0, 7 #asking the user for a double … | |
Hello, I'm writing a simple version of the message digest algorithm. In our version we get a string, translated to its decimal value. We need to tackle 8 characters per loop. I'm having problems with the implementation of the loop. I have a DD which stores the size of the … | |
Hi, I was looking at this tutorial: [URL="http://linuxgazette.net/77/krishnakumar.html"]http://linuxgazette.net/77/krishnakumar.html[/URL] There's an instruction there that says "seg es", my question is whats this instruction in AT&T style? I'm trying to rewrite the code in AT&T syntax and use it with gcc/ld but it gives me an error: "kernel.s:6: Error: no such instruction: … | |
We are asked to write a NASM program that will read a list of 10 2-digit integers, and output them in a column. At the base of the column, give the average value of the set of integers. | |
Here is the deal. I am writing a program in assembly that compresses and decompresses text based files. The user should be able to input a text file, and declare the name of what that file should be name when turned into a .drl file (just a random extension for … | |
Hello I am learning asm at the moment. Can somone help me. I need to output the contents of a register to the screen. How would i do this. I can create hello worlds, outputting strings. How would i output other forms of data. Cant find this anywhere. | |
What's Up? OK, So this has been driving me crazy over the last few weeks, All I need to do is edit a file so that it runs without showing any windows (I.E Runs in background) The window is created by means of Delphi, (So WS_EX_TOOLWINDOW Won't work) The only … | |
hai, friends my self naveen as i have a problem in writing prog in assembly language program ..... as i using ADC0820 and P89V51RD2 controller and to display the output in LCD display (2x16). as we know ADC convert analog to digital value hence the out put will be in … | |
hi to all programmers; can someone tell me how to write a code in assembly language to implement a simple countdown timer (only 30seconds) with reset,start and pause, it will display on the command prompt screen? and it will run through a86 assembler. thanks !![code][/code] | |
how are we going to define data in the FS and GS register using TASM? For example: in data segment: .data ; data here then: mov ax, @data mov ds, ax mov es, ax how do we do something like that for the FS and GS? | |
First off, I know this is homework, and I don't expect anyone to do everything for me. Just a simple explanation is more than enough. The first project I am taking in a number in seconds that the user enters and converting it to hours, minutes, and seconds, but I … | |
Hello there. I don't know if this should actually be posted in any of the C/C++ forums, but it is mainly an Assembly question so I take my chances here. In C/C++ it is possible to declare local variables as: [CODE=C]if(statement){ int var; // Use of the variables }else{ // … | |
I have been working on a project in Intel assembly until I hit a bump and I can't seem to get myself out of a hole. I realize that this is homework, and I don't expect anyone to do my work for me. However, a little help would definitely be … | |
Hey guys, I am currently working on my mini project. I am required to build an hourly alarm clock, basically the buzzer will buzz every hour. Unfortunately, I am still working on a simple digital clock with mplab IDE which is assembly language. I need to generate a periodic interrupt … | |
Hi, I'm a student in assembly. I'm using NASM and running Ubuntu Linux. For our assignment we need to use subprograms, loops, stacks, and arrays. We are supposed to get a positive integer, find all the factors, put each factor onto an array, load the array onto the stack, then … | |
Hey guys, i wrote a program in assembly for the 80C51 and it worked but now i have to write the same one for the PIC16F84A in assembly language, and it just wont work. Can someone figure out what mistakes i did? This program controls one 7-segment display to count … | |
hi, i'm beginner in assembler, i'm just start study this language... please can someone explain me, what do this two functions? cbr flags, (1<<pressed) ;Clear status flag sbr flags,(1<<pressed) ;Set status flag please if you insert example, it will be only better...:) | |
Hi guys, Im new to MIPS and have no idea how to do this. Just need to convert an integer to a character. Thanks | |
Write Your First Application On Win32 ===================================== What is Win32 :-) win32 is an plactform that like J2ME and J2SE means that it have it's memory model and have a architure and have those Applications programming interfaces to call to the operating system . Like the APIS in the java … | |
I am asked to add a madd(multiply and add) instruction to the standard single cycle datapath. I am quite confused on how to achieve this... any idea? Below is the description.. Description: The 32-bit word value in GPR rs is multiplied by the 32-bit word value in GPR rt, treating … | |
anyone help me please I need to convert this C++ to assembly int number = 0; int targetValue = 1; int nbrTerms = 0; cout<< "enter number" cin >> targetValue; while( nbrTerms <= targetValue) { nbrTerms = nbrTerms + ( targetValue * targetValue) targetValue ++; } cout<< "total terms: "nbrTerms; … | |
I must give it 02/03/10 night please help.Sorry for my english A mips programm that take from user a string S with legnth maximum 20 char which must be (a-z),(A-Z) ,(1-9) if i give something out of these to print mesg error and if i give something over 20 char … | |
I need help with my assi. I don't even understand what the questionis . Q. write a program that will input an integer valve and calculate the value of nBr where nBr is the smallest integer such that 1^2 + 2^2 + 3^2 +....... nBr^2 >= value ( these are … | |
Respected members: I've been asked to write and run an assembly code to print my name in the middle of a 80X25 Text screen such that, each character in my name will show different background, foreground colors also some characters will be blinking with intense light! the problem is that … | |
Hi all, I'm an Assembly newby and am studying Jeff Duntemann's book on programming Assembly on Linux. As much as I love Assembly and I have to learn it if I want to do anything significant in IT since it's part of a journey, I am finding difficult to get … |
The End.