2,889 Topics

Member Avatar for
Member Avatar for fmartins

I'm learning assembly and just finished coding the n-queens problem in nasm. The n-queens problems consists of placing n queens on a nxn chessboard so that no two queens are in the same row, column or diagonal (so that no queen could take another). For years, this is the first …

Member Avatar for coded_hitec
0
583
Member Avatar for afas87

HI,, i wanna ask you about MIPS is there MOV instruction in MIPS?if not, why doesnt support it. thanks,,,

0
79
Member Avatar for lee.j.baxter

Hi everyone, I'm really, really confused with the whole CHS thing. Here's what I understand so far... INT13, function 8 can get me the following drive parameters:- Heads Cylinders Sectors-per-Track I can use the following calculations to get the disk space:- Sectors-per-Side = Sectors-per-Track * Cylinders Total Sectors = Sectors-per-Side …

Member Avatar for coffeeuncle
0
205
Member Avatar for tesaluna32

hi to all.. could someone help me how to write a code in a86 assembly language? only 30 seconds coundown. i haved my code but it doesn't work. thanks..!![code][/code]

Member Avatar for coffeeuncle
-1
114
Member Avatar for lee.j.baxter

Hi folks, I'm creating a bootloader for my setup CD in NASM, and so far I've got the PVD (Primary Volume Descriptor) stored in a buffer. Now I'm stuck, as I'm not sure exactly how the Directory Records .etc. are structured; how is the one-to-many relationship implemented .etc. as it …

0
108
Member Avatar for mathew_johnny

Hi, I v got a tough challenge to solve please help me find its solution. Have code but no corresponding higher language code. Code displays 8 top records made by any users in a particular game, i have to modify it in such a way that it prints 10 records. …

0
241
Member Avatar for Chris_Giarla

Is there a difference between %ecx and (%ecx) I don't really care at this point about specific register uses, just consider %ecx a general purpose register for my question. I know that if you have a base pointer (%ebp) and you want to reference a location based on that, you …

Member Avatar for gerard4143
0
161
Member Avatar for dolkk

Hi guys, I am a [COLOR="red"]newbie[/COLOR] in writing programs in assembly language. Can anyone teach me how to write a simple code to develop a basic graphic user interface. I am currently working on a project to create a musical game that requires user interaction. Your assistance is greatly appreciated. …

Member Avatar for DENE@DANI
0
140
Member Avatar for Dabdob

Hereby the code i have wrote about a small porgram to to find the maximum number from three numbers. Waiting your comments,,, GET AX; MOV BX,AS; GET AX; MOV CX, AX; GET AX; CMP AX,BX; CMP AX,CX Put AX End

Member Avatar for ashenafiye
0
7K
Member Avatar for jt3204

Hi there, I am having some trouble compiling what I believe to be unmanaged code (output from monodis) back into C# for analysis. What is the correct procedure or program to use for this? Thanks. PS. I don’t know whether it would help at all, but the output begins like …

Member Avatar for jt3204
0
229
Member Avatar for Syphilis

What's Up? OK, So when my file gets executed, It creates a window via 'CreateDialogIndirectParam', Once you press OK, It then creates the next Via 'Createwindow'. All the windows they use are under the dialogs section which is viewable via reshacker or PE Explorer. Now my goal is to bypass …

0
67
Member Avatar for hello_man

TITLE hw5_ex1 (hw5_ex1.asm) ; this program prompts the user to enter 10 numbers between 0 and 9 ; the program should print error message if the input invalid and ; prompt to enter a valid one, at the end the program should print ; only the valid input. INCLUDE Irvine32.inc …

0
30
Member Avatar for martlevin

Hi I am having problems with getting an LED to flash on a 16F887. I believe it is down to the oscillator. can you point me in the right direction? [CODE] __CONFIG _CONFIG1, _LVP_OFF & _FCMEN_ON & _IESO_OFF & _BOR_OFF & _CPD_OFF & _CP_OFF & _MCLRE_OFF & _PWRTE_OFF & _WDT_OFF …

Member Avatar for Bishoppy
0
123
Member Avatar for wApPy

help me for this program... i need an output for reversing of a string.. what are the missing codes? correct me .. teach me... give me an example of program.. a reversing program for EMULATOR 8086,ASSEMBLY.....[code]include 'emu8086.inc' org 100h print 'input a string: ' mov dx,10 call get_string putc 0ah …

Member Avatar for eyfifteen
0
535
Member Avatar for spiricn

So I've started programming in assembler recently (college course) , and of course they are making us use ubuntu and DDD debugger for debugging .. So I was wondering , is it possible to set up DDD on Windows ? I've tried googling but came up with nothing so far …

0
54
Member Avatar for asmhelp

Hello, I'm having a problem trying to trying to store a local variable in my asm program. I push 3 parameters: nbrElts (number of elements in the array), nbrArray (the address of the array), and result1 (the average). I'm trying to divide by the number of elements that I push …

Member Avatar for asmhelp
0
169
Member Avatar for mjacqu3

I'm new to Assembly and trying to write a program that requires a simple graphic display: a 10x10 grid of "|##|" . I need to make changes to it and redisplay it every so often. I can get it to display perfectly once but the second time I call the …

Member Avatar for mjacqu3
0
135
Member Avatar for southtucky

First let me say I am thankful I found these forums for assembly, and that I am a complete newbie. I've been reading documentation, and even bought a book on learning assembly, however, there is still one question I have that baffles me. I would appreciate it if someone could …

Member Avatar for NotNull
0
154
Member Avatar for dv1r

im in the middle of a lab test and i need help the question is "PC computer component occupies real time clock 70-71H address Rmbah the IO. Find his ruling is the entry of sub-controller IRQ0 8259 (A1 A0H addresses in input and output)." and i have no idea how …

-1
64
Member Avatar for Bufbupa

Hello and thanks in advance for any help. I am currently trying to write a bit of code that simulates a keystroke via stuffing a scan code directly into the keyboard controller chip and have it return that scan code as though someone actually pressed that key. To be honest, …

Member Avatar for Bufbupa
0
157
Member Avatar for ItecKid

Hello, all, I am writing an x86 function that is called, with arguments, from a C program. Which registers does x86 store these arguments in?

Member Avatar for Salem
0
62
Member Avatar for ryukifaiz

I am writing an x86 assembly language program that between base numbers.My problem is how to make it happen like this: [QUOTE]Welcome 1. Binary <-> Octal 2. Binary <-> Decimal 3. Binary <-> Hexadecimal 4. Octal <-> Decimal 5. Octal <-> Hexadecimal 6. Decimal <-> Hexadecimal Please enter the type …

0
101
Member Avatar for iomartin

Hello, I am really a beginner with Assembly, and I'm currently working on a program in which I receive a string of numbers, separated by spaces. I will have to perform some operations with these numbers, one at a time, but for that I have to recognise when a number …

0
39
Member Avatar for magava

Hello.I have to enter some string.If the string is the name of a register,the program must return the content of that register.

0
40
Member Avatar for amylyn7

I need to write a program that displays a single character in all possible combination of foreground and background [U][COLOR="Green"][COLOR="Red"]colors [/COLOR][/COLOR][/U](16x16 = 256). The colors are numbered from 0 to 15, so use a [COLOR="Red"]nested loop[/COLOR] to generate all possible combinations. The character to be displayed should be obtained from …

0
82
Member Avatar for scourge.hellion

hey guys !:) well (00401034 . 322E XOR CH,BYTE PTR DS:[ESI]) and (00401031 ,65:72 33 JB SHORT messagee.00401067) these are out of ollydbger:) compare them both and can u tell me if the middle column i mean 322e n 65:72 33 are the same? like 657233h is the same as …

Member Avatar for gerard4143
0
92
Member Avatar for Chris_Giarla

Hello Everyone! This is my first post as a Daniweb member and I am hoping that the people here are as great as they seem. I am a junior in a CS department and I am learning IA32 Assembly as an elective. I am trying to write some basic C …

Member Avatar for Salem
0
199
Member Avatar for Syphilis

What's Up? OK, I'm editing another file, And my new problem is that every so often the software creates a popup menu above the system tray. [url]http://i.imagehost.org/0117/Screenshot_6.png[/url] -img And I need to edit it, Now the file isn't mine and I don't have the source to it, I probably have …

0
76
Member Avatar for jonnyboy12

Hello. This code im going to show you, is supposed to allow one to view the contents of a register or memory location. Im using it on masm and it compiles ok. Although i dont know where the print routine displays register contents. Any words would be a big help, …

Member Avatar for NotNull
0
115
Member Avatar for jannyboy

Hello. I have been learning asm for a while now. There are a few things i cant seem to find in my books. they are things like fs:[0x30] , 0x0c, 0x1c. Thanks for any words on it.

Member Avatar for NotNull
0
79
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
210
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
86
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
111
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
95
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
61
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
81
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
144
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
105
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
183
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
72
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
160
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
101
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
69
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
69
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
521
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
204
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
470
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
126
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
53

The End.