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
0 votes
1 answer
1k views

How to solve: "This app can't run on your PC To find a version for your PC, check with the software publisher" (Windows11) trying to run 32 bit app?

For doing crucial chapters in Peter's and Hyde's assembly manuals, there is the need to run this SIMX86.EXE [32 bit app. Built-in assembler (compiler), debugger, and interrupter for the x86 (...
nostromo's user avatar
1 vote
1 answer
360 views

(SOLVED) How can I restore files missing from my Windows\Microsoft.NET folder, other than with a clean install of Windows?

(edited to add this note) NOTE: I already tried DISM, sfc, the .NET Framework repair tool, turning the .NET Framework features off and on, restoring from a restore point, and resetting the system. (...
Lamont's user avatar
  • 11
1 vote
1 answer
54 views

What does an operating system need to have to be considered a Linux distro? [closed]

Let's say I wanted to create a version of Linux that ran on a WDC 65C02 CPU. How is Linux "defined?" What criteria need to be met for an operating system to be considered Linux rather than ...
puppydrum64's user avatar
0 votes
1 answer
643 views

What is the best approach to check an unverified exe file for a layman?

Somebody shared an exe file in a Telegram group. Let's just say the people that shared it do not know where it originated from but the software does what it should do. My concern is that it does ...
Miyazaki Ahmad's user avatar
-2 votes
1 answer
102 views

How does an assembler / CPU handle variables?

I have been really into hardware recently and been researching about how CPU's work. To do this, I've been making an assembler, disassembler, and vCPU for a made-up CPU architecture. I have learned a ...
TaromaruYuki's user avatar
0 votes
1 answer
235 views

Are there any specific processor instructions missing from "non-compatible" Windows 11 CPUs that could crash Windows 11 running on them in future?

I'm aware of: the official supported CPU list the requirement for TPM 2.0 the requirement for Secure Boot As I'm sure several will know, the above requirements can be bypassed to get Windows 11 ...
therobyouknow's user avatar
1 vote
2 answers
491 views

ERROR: Virtual Raspbian on Qemu in Ubuntu

I am trying to emulate Raspberry-pi/Raspbian with QEMU on my linux subsystem. I followed this link and did the following steps $ mkdir ~/qemu_vms/ Download/copy Raspbian Wheezy to ~/qemu_vms/ Download ...
Criss Hills's user avatar
1 vote
1 answer
270 views

SASM issues - fedora

I use fedora33 as OS, and I come across an issue when using SASM. Even if I have installed GCC, NASM and FASM, when running the "hello world" samples SASM outputs error messages. Only 32-bit ...
pauk's user avatar
  • 111
1 vote
2 answers
441 views

How does Windows bootloader add option to open firmware setup?

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 ...
0fnt's user avatar
  • 1,941
0 votes
3 answers
2k 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 ...
Anchith Acharya's user avatar
0 votes
1 answer
148 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 ...
Ri1a's user avatar
  • 103
1 vote
1 answer
1k 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: ...
Lukas Hohl's user avatar
0 votes
0 answers
1k 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 ...
Kacper Piotrowski's user avatar
0 votes
1 answer
888 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 ...
Lavair's user avatar
  • 123
0 votes
2 answers
2k 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 ...
Evyatar Menczer's user avatar
0 votes
1 answer
100 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 ...
0sunday's user avatar
0 votes
1 answer
2k 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 ...
barlop's user avatar
  • 23.6k
-2 votes
2 answers
976 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.
Prudhvi Gali's user avatar
0 votes
0 answers
331 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 ...
Mega D-Ichi's user avatar
0 votes
1 answer
92 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 ...
feeling_lonely's user avatar
0 votes
1 answer
270 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 ...
Tom's user avatar
  • 15
2 votes
1 answer
755 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 ...
Panther Coder's user avatar
-3 votes
2 answers
70 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)
Wino Paz's user avatar
0 votes
1 answer
371 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 ...
Panther Coder's user avatar
0 votes
2 answers
12k 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 ...
Panther Coder's user avatar
1 vote
1 answer
573 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 ...
Svart's user avatar
  • 21
18 votes
1 answer
3k 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 ...
secretpow's user avatar
  • 291
1 vote
2 answers
232 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 ...
atomSmasher's user avatar
1 vote
2 answers
891 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 ...
user avatar
1 vote
1 answer
198 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 ...
IamIC's user avatar
  • 155
1 vote
1 answer
6k 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 "?"? ...
Wardruna's user avatar
-4 votes
1 answer
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 ...
Netasd's user avatar
  • 17
-1 votes
2 answers
93 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, ...
Juan Antonio Gomez Moriano's user avatar
1 vote
0 answers
30 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.
user avatar
5 votes
4 answers
4k 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 ...
user339365's user avatar
27 votes
5 answers
26k 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 ...
user2284570's user avatar
  • 1,804
2 votes
1 answer
291 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?
verymessi's user avatar
2 votes
0 answers
301 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 ...
user291613's user avatar
1 vote
2 answers
84 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 ...
Goofy's user avatar
  • 11
1 vote
1 answer
69 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 ...
Marcintosh's user avatar
0 votes
2 answers
111 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, ...
user avatar
0 votes
1 answer
2k 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 ...
Caesar23's user avatar
1 vote
1 answer
17k 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 ...
Bum Kim's user avatar
  • 21
1 vote
2 answers
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 ...
Celeritas's user avatar
  • 8,169
20 votes
3 answers
44k 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 (...
ST3's user avatar
  • 745
0 votes
1 answer
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 ...
Maqbool ur Rahim Khan's user avatar
0 votes
1 answer
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....
Ccorock's user avatar
  • 156
1 vote
3 answers
25k 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 ...
user avatar
0 votes
1 answer
561 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.
user avatar
-4 votes
1 answer
180 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?
user997112's user avatar