2,878 Topics

Member Avatar for
Member Avatar for dipanshu_

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 …

Member Avatar for NotNull
0
205
Member Avatar for bd338

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] …

0
73
Member Avatar for urzur

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 …

0
107
Member Avatar for fatalblade

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

Member Avatar for fatalblade
0
93
Member Avatar for theideaofevil

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 …

Member Avatar for theideaofevil
0
3K
Member Avatar for urzur

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 …

0
59
Member Avatar for Swiftle

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 …

Member Avatar for Swiftle
0
78
Member Avatar for keithodulaigh

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: …

Member Avatar for keithodulaigh
0
140
Member Avatar for y_alhasa

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.

Member Avatar for MosaicFuneral
0
103
Member Avatar for leftovas17

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 …

Member Avatar for leftovas17
0
159
Member Avatar for jonnyboy12

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.

Member Avatar for jonnyboy12
0
67
Member Avatar for Syphilis

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 …

Member Avatar for MosaicFuneral
0
154
Member Avatar for sbnaveenkumar

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 …

Member Avatar for Salem
0
98
Member Avatar for tesaluna32

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]

Member Avatar for Salem
0
67
Member Avatar for neigyl_noval

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?

Member Avatar for Salem
0
66
Member Avatar for Hanyouslayer

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 …

Member Avatar for aabb
0
513
Member Avatar for strmstn

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{ // …

Member Avatar for strmstn
0
200
Member Avatar for Hanyouslayer

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 …

Member Avatar for Hanyouslayer
0
445
Member Avatar for vanillaboy

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 …

Member Avatar for strmstn
0
123
Member Avatar for assemblydude

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 …

0
51
Member Avatar for beckyzammi

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 …

Member Avatar for DENE@DANI
0
206
Member Avatar for alcapone11

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...:)

Member Avatar for alcapone11
0
90
Member Avatar for leatheag

Hi guys, Im new to MIPS and have no idea how to do this. Just need to convert an integer to a character. Thanks

Member Avatar for leatheag
0
853
Member Avatar for sanzilla

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 …

Member Avatar for Salem
0
1K
Member Avatar for TheRekz

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 …

0
104
Member Avatar for ipride

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; …

Member Avatar for gerard4143
0
113
Member Avatar for nikolaosgeo

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 …

0
39
Member Avatar for ipride

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 …

Member Avatar for ipride
0
82
Member Avatar for fares_silawi

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 …

Member Avatar for Goalatio
0
3K
Member Avatar for alzamabar

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 …

Member Avatar for Jeff Duntemann
0
268

The End.