disassembly Questions

2

I had just a look at a very simple SPARC assembly output that I got from this C programm: int addition_func(int a, int b) { return(a+b); } void main() { int a = 20; int b = 19; int res; res =...
Spiro asked 21/7, 2010 at 15:4

5

For example, with a boot sector that BIOS prints a to the screen main.asm: org 0x7c00 bits 16 cli mov ax, 0x0E61 int 0x10 hlt times 510 - ($-$$) db 0 dw 0xaa55 Then: nasm -o main.img main.asm q...
Infold asked 5/10, 2015 at 18:59

1

It's not a big secret that x86 (and x86_64) processors have not only the single-byte NOP instruction, but also various types of multi-byte NOP-like instructions. These are the ones I've managed to...
Tyrontyrone asked 28/8, 2014 at 9:35

1

Solved

I had an old game... Starflight. I think it came out in '86. Good ol' IBM PC jr days. I figured I'd break out a disassembler and see how it worked. I can see in the little that I've decoded, code s...
Erminna asked 28/8, 2020 at 9:2

2

In Eclipse with CDT we have Window->Show View->Registers and Window->Show View->Disassembly windows allowing to watch CPU instructions flow and CPU registers values. I used to use those to debug CP...
Berth asked 1/4, 2016 at 20:11

8

Solved

Can somebody suggest me any disassembler for Atmel AVR 8-bit microcontrollers? There are opensource projects for this? Thanx.
Humming asked 28/2, 2011 at 11:8

3

Solved

Goal I want to understand how executables work. I hope that understanding one very specific example in full detail will enable me to do so. My final (perhaps too ambitious) goal is to take a hello...
Carlcarla asked 15/4, 2020 at 9:20

2

Solved

(gdb) set disassemble intel Ambiguous set command "disassemble intel": disassemble-next-line, disassembler-options. When i set the disassembly syntax to intel, it show this error.
Lowrance asked 7/3, 2019 at 9:43

1

Solved

To better understand assembly, I compiled a simple C++ program using g++ and then used gdbgui to step through the execution. I made a graphic of the state of the stack and registers at several cons...
Haematite asked 8/4, 2020 at 23:12

1

I wrote a simple program in c which calls a function called while_loop with arguments 4,3,2. The function is just basically a while loop, I don't think it's really that relevant to my question sinc...
Anyone asked 28/3, 2020 at 18:26

3

Source C Code: int main() { int i; for(i=0, i < 10; i++) { printf("Hello World!\n"); } } Dump of Intel syntax x86 assembler code for function main: 1. 0x000055555555463a <+0>:...
Shantae asked 22/1, 2020 at 13:40

1

I would like to use Radare2 to learn about how C is assembled into assembly but I am having trouble with the layout. I think the V! mode would be very handy as you can watch the registers update as...
Fraternity asked 15/1, 2019 at 15:24

1

I created a release build of my app with react-native 0.61.2 and enabled Hermes. In my Crashlytics I receive information about crashes along with stacktraces. Perviously I used to apply apktool to...

5

Solved

I need something that can generate a PDB from a DLL file (C# .NET code), is there any free program to do that?
Dermatophyte asked 18/5, 2010 at 16:37

4

Solved

I was working on a personal project recently when I stumbled across an odd issue. In a very tight loop I have an integer with a value between 0 and 15. I need to get -1 for values 0, 1, 8, and 9 a...
Sixth asked 10/10, 2019 at 22:52

2

I've been trying to understand the purpose of the 0x40 REX opcode for ASM x64 instructions. Like for instance, in this function prologue from Kernel32.dll: As you see they use push rbx as: 40 5...
Izzo asked 9/5, 2018 at 18:38

3

Solved

I've written a piece of C code and I've disassembled it as well as read the registers to understand how the program works in assembly. int test(char *this){ char sum_buf[6]; strncpy(sum_buf,this...
Oram asked 26/4, 2012 at 0:30

17

Solved

How does one do this? If I want to analyze how something is getting compiled, how would I get the emitted assembly code?
Southwest asked 26/9, 2008 at 0:10

2

Solved

I've been using the dis module to observe CPython bytecode. But lately, I've noticed some inconvenient behavior of dis.dis(). Take this example for instance: I first define a function multiplier w...
Shuck asked 3/7, 2017 at 4:18

5

Solved

So i was reading a paper, and in it, they said that statically disassembling the code of a binary is undecidable, because a series of bytes could be represented as many possible ways as shown in pi...
Enterotomy asked 30/5, 2019 at 21:43

1

I was going through some disassembly of a CRT library (the SEH prolog in particular) when I suddenly came across this strange instruction bnd ret. Can anyone explain the meaning of the f2 prefix ri...
Stolen asked 27/3, 2017 at 22:25

3

I am studying Compilers course, compilation of program follows below steps Lexical analysis Syntax analysis Semantic analysis Intermediate code generation Code optimization Target code generation...
Schuman asked 30/9, 2009 at 7:0

2

I'm currently in the process of developing a disassembler for the x86_x64 CISC. I have 2 questions regarding prefix instruction decoding: For the following stream: \x9b\x9b\xd9\x30 GCC and obj...
Canard asked 26/2, 2019 at 12:57

3

I've compiled the following using Visual Studio C++ 2008 SP1, x64 C++ compiler: I'm curious, why did compiler add those nop instructions after those calls? PS1. I would understand that the 2nd ...
Exhalant asked 30/6, 2017 at 20:37

0

I'm currently using the disassembly view of VS to debug some C# code. There are some memory regions that look like this when both bytes and disassembly are shown: 24E2822A ?? ?? ?? 24E2822B ?? ??...
Reduce asked 7/1, 2019 at 12:56

© 2022 - 2024 — McMap. All rights reserved.