Assembly
An assembly language is a low-level language for programming computers.
Forum Post

Re: Clear Screen

Thanks. And how to exit the program without using any interrupts (21h and 20h), can I do that?
Forum Post

Re: Clear Screen

Anyway, it depends on screen mode. So what billywm664 said is right. It did not work because your screen mode was not 13h. Assume it were screen mode 03h, you can have it a try: mov ax , 0b800h...
Forum Post

Re: Random number generator causing divide overflows

You're not posting the code where you do the actual division and generate the overflow error, but I think the only way you could get an overflow is if you're not really zeroing out DX like you think...
Forum Post

Random number generator causing divide overflows

I've been working on a 16-bit real-mode game for several months now, and I've had a custom random number generator written and tested for a good portion of that. It uses DOS interrupt 21h function...
Forum Post

Re: Multiplication of two 64 bit integers on 32 bit processor

So this is what I've got now: SECTION .data SECTION .text ALIGN 16 BITS 32 AL_OFF EQU 8 ; Offset from EBP to low bits of a (AL) AH_OFF EQU 12 ; Offset from EBP to high bits...
Forum Post

a complete linux bash app in x86 using NASM

Hi, as part of my learning curve for LINUX I have written a very basic application in x86 assembly language using NASM, I think it is usefull as it demonstrates@- 1. command tail argument...
Forum Post

Multiplication of two 64 bit integers on 32 bit processor

Hi I want to write an x86 assembler function that multiplicates two 64 bit integers on a 32 bit processor. It has the following C signature: void llmultiply(unsigned long long int l1, unsigned...
Forum Post

Unsigned Multiplication O/F (C Assembly)

Hi, can you help with a C programming assignment? A small part of the course covers writing/compiling assembler code as well, so I have this problem that I can't figure out: Basically it deals...
Forum Post

Re: JMP versus LOOP

Also, LOOP is a slightly slower than SUB/JNZ combination: ; ; SLIGHTLY SLOWER ; mov cx, counter loop1: ... loop loop1 ; ; SLIGHTLY FASTER ; mov cx, counter loop2: ... sub cx,...
Forum Post

Re: JMP versus LOOP

By definition, LOOP requires (and modifies) the CX register, so it actually matters very much what CX is. In addition, by using LOOP, the value of CX will be changed when the subroutine exits. So,...
Forum Post

JMP versus LOOP

I've been learning 16-bit x86 assembly over the past year or so, and I've noticed that several code examples I've come across use LOOP instead of JMP in a conditional loop that doesn't rely on the...
Forum Post

Re: x86 bootloader NASM question.

Nasm defaults to 16-bit instructions when using the binary output format, so removing has no effect. Removing works, because the resulting code is position independent. The org directive helps...
Forum Post

x86 bootloader NASM question.

Every tutorial on writing bootloaders included the and directives. But one tutorial didn't, and the code worked. Here it is: pop es xor di, di mov , word 441h jmp $ times 510 - ($-$$) db...
Forum Post

Re: Help with IDIV function

No DOS interrupts work in Windows - to get the local Time use API GetLocalTime: http://msdn.microsoft.com/en-us/library/ms724338(VS.85).aspx
Forum Post

Re: reading files in nasm

Check that your ds segment is set up correctly and that buffsize is correct (maybe it should be in square brackets?). If that doesn't work, post the code of your interrupt handler. Btw, you would...
Forum Post

reading files in nasm

hey can someone help me with this, im trying to read from a very large file and my interupt function reads only 4096 once, i've been trying to create a loop to read more file but it doesnt seem to be...
Forum Post

Re: x86 NASM lowercase to uppercase !

check if ASCII letter: cmp al, 'A' jb notletter cmp al, 'Z' ja checklower jmp is_letter checklower: cmp al, 'a' jb notletter cmp al, 'z' ja notletter jmp is_letter Then check bit 5...
Forum Post

How can I rewrite the makefile to get successful?

Hi, There is a makefile # # elcirc/selfe makefile # Mike Zulauf 10/15/2006 # # # the executable and source code file names (without extensions) # EXEC = amd_zelfe1_5k7 MAIN...
Forum Post

How can I rewrite the makefile to get successful?

Hi, There is a makefile # # elcirc/selfe makefile # Mike Zulauf 10/15/2006 # # # the executable and source code file names (without extensions) # EXEC = amd_zelfe1_5k7 MAIN...
Forum Post

Re: Help, could you recommand a ASM IDE?

Thanks, now I found maybe the best one is command line... Rad ASM seems wonderful, I'm trying it. Wish to see your work as soon as possible!
 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.