logo
down
shadow

ASSEMBLY QUESTIONS

Int 21h/ah=39h returns with AX=3 upon directory creation
Int 21h/ah=39h returns with AX=3 upon directory creation
around this issue When creating a DOS EXE program DS and ES point to the DOS PSP segment, not your actual data segment. With an EXE you need to initialize DS so that it points to your own data segment. To do this with TASM/MASM you use code like this
TAG : assembly
Date : November 21 2020, 07:38 AM , By : Christian Juarez
nasm assembly for loop
nasm assembly for loop
should help you out ecx is the loop variable. It is typically caller-saved - that is, a function like printf is allowed to overwrite it and not restore the old value. Therefore, on return from printf, ecx will be garbage. To fix this, you can add a p
TAG : assembly
Date : November 16 2020, 09:01 AM , By : DingDing
Division produces wrong result
Division produces wrong result
hop of those help? There is an issue with the way you are doing division. You are trying to divide the 8-bit number in AL(Numero1) by an 8-bit value (Numero2). The thing you have to be careful with is that the DIV instruction divides all of AX by the
TAG : assembly
Date : November 16 2020, 09:01 AM , By : violet
Counting occurances of a negative number from a list
Counting occurances of a negative number from a list
seems to work fine I assume ADD R3, R3, 0 ;test for Neg sets flags based on the result, so the conditional branch will be based on the result that ADD stores into R3.As Jester points out, it seems to be looping on counting set bits in a single intege
TAG : assembly
Date : November 15 2020, 09:01 AM , By : ashwini pandit
using atof function in x86 NASM
using atof function in x86 NASM
fixed the issue. Will look into that further You can define a C literal with escape sequences in NASM by using backticks. E.g.
TAG : assembly
Date : November 10 2020, 09:01 AM , By : Florin Peter
Assembly, NASM; how is the information in 32 bit registers divided among sub registers?
Assembly, NASM; how is the information in 32 bit registers divided among sub registers?
Hope this helps AL will have the first t, AH will have e, AX will have et (te depending on how you consider the lower character and higher character). It's been likely 15-18 years since I've touched assembler, but that's what I remember anyhow.szStri
TAG : assembly
Date : November 09 2020, 09:01 AM , By : Samee Ullah
College Fee Calculator Assembly(HLA) program
College Fee Calculator Assembly(HLA) program
To fix the issue you can do So the issue was addressed by Michael Petch's comment. The problem was I was writing into AL and AH which was destroying data into EAX. I changed the "total" register to ECX. Once I did that it was just some minor bugs wit
TAG : assembly
Date : November 06 2020, 04:03 AM , By : user4568442
how many whole numbers in IEEE 754
how many whole numbers in IEEE 754
This might help you I will assume single precision floats.We got the zero, which although can be represented as negative zero, is still just zero as an integer so I count it as one.
TAG : assembly
Date : November 05 2020, 09:01 AM , By : Nick Lad
NASM Assembly; jumps not working in this code
NASM Assembly; jumps not working in this code
To fix the issue you can do As your comment says, you load the address into eax, not the character itself. Instead of the lea, you should use movzx eax, byte [esi+1] to load the character with zero extension (because you compare to eax later). If you
TAG : assembly
Date : November 04 2020, 04:00 PM , By : ziggystardust
Shortest Intel x86-64 opcode for rax=1?
Shortest Intel x86-64 opcode for rax=1?
I wish did fix the issue. Since there is a byte immediate encoding for push and a one-byte pop for registers, this can be done in three bytes: 6a 01 58, or push $1 / pop %rax.
TAG : assembly
Date : November 01 2020, 04:09 PM , By : 출장안마출장마사지
Is this x86 assembly addressing method valid?
Is this x86 assembly addressing method valid?
hop of those help? Yes, mov al, 31[di] is valid x86 assembly in Intel syntax. It is equivalent to mov al, byte ptr[di + 31].
TAG : assembly
Date : November 01 2020, 03:09 PM , By : Kreaxy
How to copy between registers with a bitshift in ARM assembly?
How to copy between registers with a bitshift in ARM assembly?
I think the issue was by ths following , mov is the appropriate instruction to use for moving one register into another, not ldr.The syntax in ARM mode would be:
TAG : assembly
Date : November 01 2020, 09:01 AM , By : Jan Runte
"cqo", "cdq" and "cwd" x86_64 instructions. Why not use just cqo?
"cqo", "cdq" and "cwd" x86_64 instructions. Why not use just cqo?
will help you You only have a choice if your value is already sign-extended to fill more than 16 bits of rax.If you have a signed 16bit int in ax, but the upper16 of eax is unknown or zero, you must keep using 16bit instructions. cdq would set edx ba
TAG : assembly
Date : October 31 2020, 10:01 AM , By : Yuni Jang
Negative segment index?
Negative segment index?
this one helps. Apparently in 64 bit mode the cpu is really lazy and simply adds the segment base to the given offset. As such, negative values are valid and do what one would expect, that is address before the segment base. The address still needs t
TAG : assembly
Date : October 29 2020, 06:12 AM , By : Sandeep Patra
shadow
Privacy Policy - Terms - Contact Us © animezone.co