Questions tagged [assembly]

Low-level programming language used to send instructions (machine code) directly to a microprocessor. For assembling hardware, use [computer-building] instead.

Filter by
Sorted by
Tagged with
-1
votes
2answers
117 views

How does Windows bootloader add option to open firmware setup? [closed]

There is an option in Windows Setup1 which lets one enter firmware setup2. How does it do it? I would guess it would be some kind of assembly instruction, but I'm not sure which it is. 1 If my memory ...
0
votes
3answers
151 views

How are memory location addresses actually stored in the cpu?

Time and again, I've seen a representation of memory locations which is depicted as linear array of rectangular boxes with their respective memory addresses to their left side. Now, these addresses ...
0
votes
1answer
31 views

Conversion error when trying to complie .hla-file

I recently started learning assembler with the book "The Art Of Assembler Language" from Randall Hyde. He also developed the language HLA (High Level Assembly) to make it easier for beginners to learn ...
1
vote
1answer
620 views

Raspbian gcc does not know '.intel_syntax'?

I tried to execute: gcc -o main main.c squrt.S -lm -no-pie This worked on a different computer, but this time it did not know a single instruction: squrt.S: Assembler messages: squrt.S:7: Error: ...
0
votes
0answers
456 views

how to install PresentationFramework.dll in windows 10

I've been using Visual Studio 2019 and .Net core 3.0 preview 5. I have tried to make unit tests but i couldn't because i have an exceptionMessage: System.BadImageFormatException : Could not load ...
0
votes
1answer
879 views

What is meant by “section name” in the symantec stuxnet analysis?

The blockquote below is found here on page 12 The dropper component of Stuxnet is a wrapper program that contains all of the above components stored inside itself in a section name “stub”. This ...
0
votes
0answers
670 views

MPLAB X IDE v5.15 - Variables not getting added to wacthlist while using XC8 compiler. Why?

When I click "enter new watch" and type 'a', nothing happens. Same problem when I try to add 'c'. For some reason only 'b' is allowed to be added to watch list. Why? How can I add all the symbols to ...
0
votes
1answer
297 views

MARS MIPS Simulator Installation

I installed MARS on my computer (ASUS) and when I tried to open it, it leads me to a dialog box which asks: "How do you want to open this .jar file?" I don't know how to figure it out. Thanks for ...
0
votes
0answers
27 views

Instruction set and pseudo-command

I use 'objdump' on linux in a variety of binaries and it returns their assembly. The commands that I receive is 'real' commands or pseudo-command? I have read that there are some commands which are a ...
0
votes
1answer
553 views

How can I dump the output of this register , the MSR - IA32_VMX_PROCBASED_CTLS2 , to see whether unrestricted guest mode is supported/enabled?

How can I dump the output of this register , the MSR - IA32_VMX_PROCBASED_CTLS2 , to see whether unrestricted guest mode is supported/enabled? Context is curiosity. I'm aware that Docker in the ...
-2
votes
2answers
546 views

Is it possible to get the x86 assembly code for the entire Linux kernel? [closed]

I want to see the x86-assembly of the Linux kernel and want to edit the kernel at assembly level. Is it possible to do so? If yes please help me to get the x86-assembly of the entire Linux kernel.
0
votes
0answers
123 views

Linux kernel authentication

For the problem that I am facing is actually that I am working on a project which is about checking the integrity of the kernel image "vmlinuz" that is in the hard disk! To do so, am trying to add a ...
0
votes
1answer
29 views

What format crash utility's disassembler uses to output assembly instructions?

Crash utility can disassemble kernel functions. but what format it uses? Which is first, source or destination? inst src, dist or inst dist, src This is what I am asking about: crash> dis ...
0
votes
1answer
183 views

What is the type of the UART chip used by Virtual Box?

Based on my understanding, a UART chip is used to control the serial port (the programmer manipulates the UART registers in order to access the serial port). There are many types of UART chips (for ...
2
votes
1answer
296 views

What happens when assembly code is translated into Object code?

I am interested in System Software development. I have been analyzing the working of a compiler for a few days. An Assembly code generated by a Compiler(say) clc has an opcode f8 and I am sure that ...
-3
votes
2answers
67 views

How can I represent the output of 250500*250500 in 32-bit word?

We have 250500*250500 = 62,570,250,000. How can we represent this using low and high? I know that the biggest number that can be represented in 32 bits is 4,294,967,295 (2^32 - 1)
0
votes
1answer
225 views

How to get values for BIOS parameter block in a VBR?

I am creating a VBR, which recides on the first sector of a Volume. The VBR must have BIOS Parameter Block if FAT file system is to be implemented. When working on my disk(say), I could manage to find ...
-1
votes
2answers
6k views

How does a MBR in USB drive works?

Every USB drive has a Master Boot Record. MBR contains Partition Table. While on a normal HDD, The MBR can have 4 partitions and the MBR has information about the partitions. Coming to USB, it has ...
1
vote
1answer
406 views

How to know from what microsoft package/update a .dll file comes from?

There are plenty of specific missing X.dll requests here. I would like to know how to get where does a .dll file should come from, especially a microsoft .dll. I have a missing assembly error on my ...
16
votes
1answer
2k views

What actually happens when I run “cli; hlt” on my Linux system?

So I recently figured out that there's a HLT opcode for halting the CPU. Cool, let's see what happens! user@box:~$ cat > test.c int main(void) { __asm__("HLT"); return 0; } user@box:~$ gcc ...
1
vote
2answers
180 views

Do I need an embedded system, custom os, or embedded os? [closed]

I have been toying around with the idea of developing a "kiosk" for in-home users that may or may not have knowledge of computers or how to use them. For sake of argument lets say my "kiosk" is ...
1
vote
2answers
620 views

Does a USB drive have head, track etc?

I wrote a bootloader and I need it to be written to a USB drive. Since I am on Windows, my bootloader must support file systems such as FAT32 and FAT16 etc. I have used BPB (BIOS Parameter Block) for ...
0
votes
0answers
81 views

How does a computer add 2 numbers at its lowest level?

Most memory addresses only hold 8 bits (1 byte). This means it can hold a number up to 255. What if I wanted to store 511? I would use 2 memory addresses and store it like this 00000001 11111111 ...
1
vote
1answer
144 views

Latency semantics of read registers on x86 ASM

Per A. Fog's instruction tables, an Ivy Bridge has a 3 cycle latency on a MOV instruction. So the following will take 3 cycles to move RAX into the address in RCX: mov [rcx], rax My ...
1
vote
1answer
3k views

Meaning of “?” (Question Mark) in assembly

For some project i am required to draw the memory diagram of assembly code.I know that in assembly language "?" means, values are un-initialized. But what happens exactly in memory when i put "?"? ...
-4
votes
1answer
1k views

How are instructions and data stored in memory? [closed]

I am debugging a C# program and the disassembly view show this: 0x006E2813 pop ebx 0x006E2814 pop esi So pop ebx is stored in 1 byte(in one single address), but how can that ...
-1
votes
2answers
81 views

Why do some processors have unofficial codes and/or bugs? [closed]

Lately I am writing (or trying) an emulator for the 6502 NES CPU. I am learning many many things, some of them really surprise me and I was wondering what's the explanation for those, in particular, ...
1
vote
0answers
26 views

Show all running tasks in Assembly

Is it possible to show/log everything what the CPU does? The CPU knows what it executes, so it could print the running threads/tasks on the screen or in a file.
4
votes
3answers
2k views

Vim assembly formatting

Vim is not properly indenting assembly code, regardless of if I want it to do it automatically or if I try gg=G it'll just says ## lines indented even though it didn't change anything and all my text ...
22
votes
5answers
17k views

How to check if a binary requires SSE4 or AVX on Linux

On Linux,/proc/cpuinfoallows one to check all the CPU flags the machine has in a simple way. Usually, if a program requires a superset of a machine's instruction set, the easiest way to determine this ...
2
votes
1answer
235 views

Would x86 assembly work on x64 processors?

Would x86 assembly compile on an x64 machine and still work properly? If not, what is the difference between x86 assembly and x64 assembly?
2
votes
0answers
233 views

Mouse I/O in assembly 68K [closed]

I had a problem with reading the position of mouse in screen in assembly 68K, what I have to do? I even read the the help of Easy68K, but I couldn't understand what it exactly says. I would be ...
1
vote
2answers
78 views

Is there risk of damaging my system or losing data while practicing is assembly language

I'm going to learn assembly, I have downloaded WinAsm IDE and MASM32. Assembly programing usually involves low level stuff , so before I start I wanted to ask if there is any risk of damaging my ...
1
vote
1answer
63 views

Method to view machine or assembly code supporting a raster or vector image

I'd like to be able to view either code for a selected image. For example, if I have an image of a flower, what does it look like to the machine or how would the machine express it using it's machine ...
0
votes
2answers
95 views

Can any compiled-language code be traced, line-by-line, to individual bits of each CPU-instruction in binary? [closed]

I realize we can dump equivalent assembly from C++ code using many debuggers and such. But what about binary code? The formatting of bits in each byte(s) that make up the actual machine instructions, ...
0
votes
1answer
1k views

Program Run on DosBox Doesn't Generate Output Files

I'm using windows 8.1 , 64 bit version , and I have a 16 bit assembler program which I'm trying to run using DosBox. The program doesn't seem to generate output files , despite being called properly ...
1
vote
1answer
12k views

Where can I find the instruction sets for Intel or AMD microprocessors? [closed]

I'm sorry if these are stupid questions or if they don't pertain to this website. I don't really know where else I could ask this. Okay first of all, I don't really understand how instruction sets on ...
1
vote
2answers
2k views

What is the point of loading a program into RAM if virtual memory is just going to put it back on the disk?

After reading this question about virtual memory, I was inspired to ask: it seems like walking in a circle when a program is run it is loaded into memory from disk but then there's not enough space in ...
14
votes
3answers
32k views

Latency of CPU instructions on x86 and x64 processors

I'm looking for some table or something similar that could help me to calculate efficiency of assembly code. As I know bit shifting takes 1 CPU clock, but I really looking how much takes addition (...
0
votes
1answer
1k views

when i open new file it insert code in notepad++

First i want to tell you that i now i only use notepad++ for assembly language. and i have made assembly my default language by reading this here so when i open new file it highlight as assembly now ...
0
votes
1answer
4k views

Mounting Drive to DosBox and using Debug.exe

I am trying to track down the MBR on a scavenged Hard Drive. The hard drive won't boot so I've been trying to change the MBR through DEBUG.exe. The problem starts with my 64 bit machine because debug....
1
vote
3answers
24k views

No video signal at boot with custom built computer

After booting my custom built computer, neither the VGA nor the HDMI methods from the video card seem to emit any signal to the display. I have tested both a regular VGA screen and a modern HDMI ...
0
votes
1answer
399 views

Can I show an image with BIOS interrupts or assembly? [closed]

I am trying write a simple bootloader, and I want to show an image when my bootloader starts. How can I do this? I am using assembly with nasm assembler.
-5
votes
1answer
135 views

Best assembler -> C book? [closed]

I know there are good assembler books and there are good C/C++ books, but is there a book which maps the two programming languages/levels together?
0
votes
2answers
4k views

Run 16 bit program on 64 machine bit without dosbox

Is there an program that you can type into command line or terminal with a set of parameters to run a 16 bit program? Such as: "run16bitprogram.exe 'path/to/program/test.exe'" and just output whatever ...
3
votes
2answers
550 views

Intel assembler/architecture documentation?

Would anyone know where the best "official" Intel documentation regarding the low level architecture/assembler internals would be? How the ESP works, the various registers- fetching values from RAM ...
2
votes
2answers
8k views

How do you write a bootloader to the MBR?

I was trying to write a bootloader in the assembly language to a USB drive, to test it on another computer. The bootloader (should) work with intel processors. The computer I'm testing it on (windows ...
1
vote
3answers
1k views

Emacs - How can I enable tab indentation in Assembly?

I have been using emacs for c programming and now that I want to write some Assmebly code, when I press tab, emacs just inserts the spaces. How can I force it to ident the current line with the Tab ...
3
votes
2answers
1k views

Is there any way to see what my CPU is doing at the “assembly level”?

I was looking at how Assembly Language works, because I want to learn how the complex and fancy things my computer does actually happen at the CPU register/hardware levels. Is there any way to see ...
7
votes
2answers
4k views

How to see all the bits of a file?

I'm looking for a way to see all the bits of a file. I want to see all the 01's in my file, because I want to know what changes exactly happen when I edit a file using a closed-source application.