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 ArticleHELP! 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 ArticleMATLAB Assignment Help
I need to find1. List the materials in your database that have Young
View ArticleManually 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 ArticleLinked 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 ArticleNeed 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 Articleslow 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 Article253 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 Articlehow 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 ArticleRecursive 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 ArticleGenerating 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 ArticleGet 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 ArticleLES 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 ArticleCode 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 Articlex86 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 ArticleAdd 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 Articledecimal 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 Articlex86 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 Articlex86 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