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

learn more… | top users | synonyms

-1
votes
2answers
41 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
11 views

Direct access to video card using a microcontroller or DOS-based OS [closed]

I am trying to build a handheld 3D positioning system that can track in real-time (1000 Hz) a handheld 3D position in reference to a virtual 3D object. To be more specific: I have a robotic arm ...
0
votes
0answers
16 views

Why do I see a null.LST file in my folder suddenly

Until yesterday, I had no such file in my Folder, but today I suddenly find this null.LST file created by MASM Listing. After looking here and there a bit, I could gather information that this is a ...
1
vote
0answers
19 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.
1
vote
2answers
96 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 ...
1
vote
1answer
68 views

Cannot load assembly error

I installed windows 7 32 bit for a friend, his laptop is hp 2000-2d07ee. I installed all the drivers I could find here. I ran windows update, I installed .net framework 4.5 and Visual C++ ...
2
votes
2answers
827 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
80 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?
1
vote
0answers
55 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
54 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
36 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
58 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, ...
1
vote
0answers
39 views

Any way to automatically align assembly code? [closed]

I have 4000 lines of assembly code which is messed up. Is there any tools that would align it automatically? I am talking about Tab and Space alignment.
0
votes
1answer
410 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 ...
0
votes
1answer
928 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 ...
0
votes
2answers
169 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 ...
2
votes
3answers
2k 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
349 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
1k 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 ...
0
votes
3answers
5k 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
95 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.
-4
votes
1answer
85 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
2k 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
1answer
347 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 ...
1
vote
2answers
2k 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
2answers
369 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
241 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 ...
3
votes
1answer
671 views

Understanding the nop byte(s)

Ok, so I was reading through the AMD64 manuels and knowing that nop is really an xchg eax, eax, I looked at the xchg and found something interesting, that it seems a byte can be encoded into the ...
2
votes
1answer
363 views

“nop; jmp short” vs. “jmp short; nop”

Ok, first let me get this straight: This is not about micro optimization. But, I know in bootloaders on the partition, a lot use the jmp short; nop coding. But it is to my understanding that the less ...
0
votes
1answer
167 views

Find out what sectors are a file on a hard drive?

How would I go about finding what sectors a file's data is on so i would be able to delete the file via bootable assembly code. Eg: File: C:\system.sys Location: sector 1837,1739,2736 etc Or some ...
9
votes
3answers
2k views

Why can't we understand the content of a binary file after compiled?

As far I know, every program consists of a pack of processor instructions with some specific data variables(float, int, char...) to work on the processor registers. So, the first thing that I ...
5
votes
5answers
433 views

Old Technologies About Floppy

I have a floppy disk with an unknown FS-(FileSystem). I want to make a copy from it but I can't because both Windows and Linux seem to be unable to read from it. I tried many of the most popular apps ...
0
votes
2answers
408 views

Understanding 8086 instruction encoding

I am trying to understand 8086 instruction encoding. Even though I found a general instruction and a bulky reference I still don't get it. Could you please explain me how the following "translations" ...
4
votes
3answers
3k views

How prevalent are old x64 processors lacking the cmpxchg16b instruction?

The cmpxchg16b instruction for doing atomic 128 bit memory exchanges is not supported on old versions of the x64 processor but it seems like this has been supported by newer versions of the processor ...
2
votes
1answer
423 views

how to assign Strong Name to an Assembly?

I have created strong name using - sn -k C:\strong.snk nao how to assign this key to any assembly? and where I have to use gacutil?
0
votes
1answer
37 views

linux and assembly - blocking [closed]

does Linux block ports and interrupts for user programs use ?
4
votes
1answer
507 views

IDE for assembly on pendrive [closed]

I need a portable IDE for assembly. What can you recommend me ?
2
votes
4answers
2k views

What is the maximum addressable memory?

I just started learning assembly. My laptop specification says: Microprocessor: Intel Core Duo processor T2300 Microprocessor Cache: 2MB L2 Cache Memory Max: 2048MB Memory: ...
5
votes
1answer
701 views

Windows --> Assembly folder typical size: aka GAC

I am a .net developer on a Win 7 RC1 (x64) machine and I happened to notice that my GAC(Global Assembly Cache) folder is 1.2 GBs in size(1700 files). This got me wondering what the "normal" size is ...