Assembly
An assembly language is a low-level language for programming computers.
Application
Hardware
Remove
Platform
Any
License
Any
Thanks. And how to exit the program without using any interrupts (21h and 20h), can I do that?
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...
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...
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...
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...
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...
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...
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...
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,...
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,...
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...
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...
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...
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
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...
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...
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...
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...
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...
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!