Quantcast
Channel: x86 Assembly - Programmers Heaven
Browsing all 152 articles
Browse latest View live
↧

How do I convert a register pair to an extended register?

I have this code snippet adapted from the pcasm book by Paul Carter: mov bx, 10d mov ax, 10d mul bx ; multiplied by ax, stored in dx:axNow, how would I store the register pair dx:ax into, say, ecx?

View Article


HELP! Number Conversion Problem

Hey guys! I am just getting started in assembly language and my head hurts from staring at this problem. I'll paste in the program requirements, then my program and show where I am stuck...any help...

View Article


MATLAB Assignment Help

I need to find1. List the materials in your database that have Young

View Article

Manually changing SP to prevent stack overflow

I'm still working on my game project (a text-based dungeon crawl in the tradition of several DOS-based BBS door games), although it's coming along further. I ran into a design problem, though, and I'd...

View Article

Linked List in ASM

I want to write a simple linked list program with ASM .Here's the code which I have tried to write(presently only for single digit numbers) ! However,it works only for 3 numbers and that too has...

View Article


Need help with inline assembly in C code

Hi everyone, I'm new to this site and hope you might be able to help me out?So I've been given an assignment to produce this output:[code]% ./hw3b fooslow foo but foo sure% ./hw3b XYZ123slow XYZ123 but...

View Article

slow floating point on Pentium 4

Hi,I have performance issues with the following code:...mulsd %xmm1, %xmm0addsd %xmm2, %xmm0add 1, %eaxcmp 10000000, %eax...basically: for (i = 0; i < 10000000; ++i) { a = a * b + c; }when c != 0 it...

View Article

253 byte PC minesweeper game (complete source code)

I had some spare time so I wrote this up just for fun. I don't know of any 256 byte compos going on right now so I'll just post it here...Since this forums policy forbids me from posting the compiled...

View Article


'Merge Sort' code

Hi guys;i need merge sort code for linear arrays, is there someone to help!?thanx a lot;

View Article


how to shutdown computer..

I am looking for how to shutdown computer directly, like windows 98/xp does on new ATX systems, without displaying 'You may safely turn off the computer'.can anybody help...

View Article

Recursive function in x86 Assembly

Hi,How can I write that function in x86 assembly?I have tried to write it but I could not. I am going to call it from a C function.Thanks.[color=Purple]int stirling(int n,int k) {...

View Article

Generating Random Numbers

First of all let me congratulate for this awesome site. It's been a really helpful source for me. Now, the problem I'm having is that I need to make a sudoku game with assembly on the intel 8086, and I...

View Article

Get the value of EIP?

[blue]Hello everyone,As some of you may know Im developing a 32bit OS. Im currentlydeveloping a way to trap kernel errors, and output debug information.The problem: I cant, of course, access EIP.I know...

View Article


LES AX,SP and Windows NT DOS emulator

Hi all !A long time ago I had seen that the following instruction[code]les ax,sp[/code]had a strange effect on Windows NT's DOS emulator.I think it was the same with other instructions having C4C4h as...

View Article

Image may be NSFW.
Clik here to view.

Code assembles and links but bash rejects it

I just wrote this code, it assembles fine. I used GAS and it x86_64.I linked it like this:ld -o ./maximum /usr/lib64/crt1.o /usr/lib64/crti.o ./maximum.o -lcThere's no errors. But then I run it and I...

View Article


x86 asm with Notepad problem

Hi.I am learning new x86asm.I'm trying to run this code:[code]MOV AH,02 MOV DL,"!" INT 21h MOV AH,04Ch MOV AL,00 INT 21h [/code]I'm saving Exam.asm with notepad in ANSI mod.After this file's extension...

View Article

Add 2 hex values and display the result

I have to write a program where the user inputs 2 individual hex values, 0-9 and A-F. The program must then add them and display the result in hex. In the following code I allready took care of 0-9 but...

View Article


decimal to binary, to hex, and to octal

please help! i need an assemly program converting a decimal number to binary, decimal to hex and decimal to octal!

View Article

x86 assembly Intel Syntax

This is my code so far for a multiply function that cannot use any multipaction and division operators. .intel_syntax noprefix .data .globl _x_x: .long 0 .global _y_y: .text .globl _fac _fac: push ebp...

View Article

x86 assembly Intel Syntax

This is my code so far for a multiply function that cannot use any multipaction and division operators. .intel_syntax noprefix .data .globl _x_x: .long 0 .global _y_y: .text .globl _fac _fac: push ebp...

View Article
Browsing all 152 articles
Browse latest View live