Questions tagged [assembly]

An assembly language is a low-level programming language for a computer, microcontroller, or other programmable device, in which each statement corresponds to a single machine code instruction.

An assembly language is a low-level programming language for a computer, microcontroller, or other programmable device, in which each statement corresponds to a single machine code instruction.

169 questions
132
votes
17 answers

How does learning assembly aid in programming?

I have been programming in higher level languages (Python, C#, VBA, VB.NET) for around 10 years and I have completely zero understanding on what's going on, "under the hood." I am wondering what are the benefits of learning assembly, and how will it…
45
votes
5 answers

How can this all fit into 64kb?

So, I am here at assembly 2011 and there was this demo played: http://www.youtube.com/watch?v=69Xjc7eklxE&feature=player_embedded It's one single file only, it says that in the rules. So I repeat, how have they made this to fit into so small file?
12
votes
2 answers

Are some NOP codes treated differently than others?

I'm curious about this, let's say I have: 00000000001 90 nop 00000000002 90 nop 00000000003 90 nop Is it executed exactly the same as…
9
votes
2 answers

Assembly Language being used in Aircraft System

Today my lecturer mentioned the reason why the aircraft system is programmed in assembly language is due to the program being written have less error . Is this statement true ? Because when he asked about our opinion I said assembly can create…
8
votes
3 answers

Small assembly language project for practice

I am learning assembly language for x86 architecture. But, i am unable to find any practice problems so that i can test my skills. Can you suggest me some practice problems or some small assembly language project to improve my skills.?? thanks in…
silverflash
  • 97
  • 1
  • 1
  • 3
7
votes
7 answers

Will hand-written assembly disappear?

Last week I was wondering, with compilers getting better and better at optimizing, will there be a point when there is no need for hand written assembly? Are there still specialized fields where the compilers aren't smart enough to produce code that…
5
votes
2 answers

Data transfer in assembly language

Moving data in assembly language: MOV B, A If I move content from internal register A to register B, what happens to content of register A? Is it deleted? Stays unchanged?
Lucenzo97
  • 293
3
votes
5 answers

Are there such thing as assembly SDK's?

I've never worked in assembly, but I was just curious if SDK's exist for assembly programming. For instance, if I wanted to create a linked list, are there libraries available that have already done this, or is everything typically done from…
2
votes
1 answer

How is x86 assembly different from Windows assembly, and does that let me circumvent Windows?

As I can understand, assembly language is just a symbolic representation of hardware instruction opcodes that a hardware manufacturer has offered/documented, based on the way they have designed their electronics. Now I saw the term "Windows…
aderchox
  • 184
2
votes
2 answers

Why convert to assembly language instead of machine code?

When I compile a C program, it is compiled first to assembly code, then assembled into machine code. I'm curious why it doesn't just convert straight to machine code in the first place.
1
vote
3 answers

Does an ISA (Instruction Set Architecture) also specify the registers available in the CPU?

I am new to Assembly, and based on my understanding, an ISA (Instruction Set Architecture) specifies what instructions are available for a particular CPU. But does an ISA also specify what registers are available in the CPU?
joseph_m
  • 335
1
vote
1 answer

How assembler converts to machine code 1 and 0

I know that assembler is the one which converts to machine code. So here in 8085 instruction set LDA has opcode "3A". My question is how assembler convert mnemonics to opcode and finally to machine code. How LdA mnemonic is converted to 3A hex…
Y07
  • 127
  • 7
1
vote
0 answers

IBM PC XT 5162 even and odd BIOS

I am writing a whole new BIOS, from scratch, for the 5162. The already existing BIOS is on chips U34 and U35. Normally, exactly one byte (the odd byte) should be on U34, followed by exactly one even byte on U35, but this is not always the case. By…
Rok1976
  • 19
  • 1
0
votes
2 answers

Do differences between ATT and Intel formats of assembly languages come from differences between their underlying machine languages?

From Computer Systems: a Programmer's Perspective, about assembly languages: We see that the Intel and ATT formats differ in the following ways: The Intel code omits the size designation suffixes. We see instruction push and mov instead of pushq…
Tim
  • 5,455
0
votes
1 answer

Opcodes vs Operands

In laymen's terms, what is the difference between opcodes and operands in assembly language programs? I understand that one involves where to get the data and one involves what is to be performed on the data, but is there a way to understand it in…
1
2