zero-extension Questions

1

Solved

I am a little bit confused by how movzx behaves in the following example. (Please note that I am assuming the print_int function used in my code sample works and the problem is not there but in my ...
Gadabout asked 21/4 at 9:59

1

Solved

I'm looking at the following disassembled AArch64 instruction: 65 6E 20 2B adds w5, w19, w0, uxtx #3 According to the ARM manual, uxtx zero-extends w0 to an unsigned 64-bit value before adding it ...
Debus asked 28/4, 2022 at 9:36

4

Solved

In the x86-64 Tour of Intel Manuals, I read Perhaps the most surprising fact is that an instruction such as MOV EAX, EBX automatically zeroes upper 32 bits of RAX register. The Intel documentatio...
Seifert asked 24/6, 2012 at 11:40

1

I can tell this is a super simple problem but I have yet to figure it out. Basically, I just want to be able to take one element an array and add and subtract some numbers from it using registers a...
Flushing asked 30/10, 2019 at 0:50

4

Solved

I decided to learn an assembly programming language. I am using this 8086 tutorial. At the bottom the exercise is to find an error in some instructions and one of them is mov cx, ch I fo...
Modernize asked 18/4, 2015 at 11:38

2

Solved

What exactly does this instruction do? movzbl 0x01(%eax,%ecx), %eax
Pablopabon asked 16/2, 2012 at 19:38

1

Solved

As it is widely advertised, modern x86_64 processors have 64-bit registers that can be used in backward-compatible fashion as 32-bit registers, 16-bit registers and even 8-bit registers, for ...
Lunetta asked 22/8, 2014 at 20:57

1

Solved

When assembling this code with nasm: BITS 64 mov eax, 0x1 mov rax, 0x1 I get this output: b8 01 00 00 00 b8 01 00 00 00 which is the opcode for mov eax, 0x1 repeated twice. Does this mean th...
Intersexual asked 6/8, 2012 at 4:41

1

Solved

Alright, so I am dealing with the following snippet of code: push %ebp mov %esp,%ebp push %ebx mov 0x8(%ebp),%eax movzwl %ax,%edx So this behaves as expected when dealing with positive values....
Beaulieu asked 6/9, 2011 at 6:3

1

Solved

I can't seem to grasp the concept on these stuff, even with the help of Google and a textbook in my hand. Following the format (opcode, rs, rt, offset)... Do you sign extend the offset before ad...
Muddle asked 29/8, 2011 at 4:44
1

© 2022 - 2024 — McMap. All rights reserved.