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.

learn more… | top users | synonyms

0
votes
5answers
77 views

What conclusion to be drawn from no difference in generated assembly from 2 rather different programs?

I might not have had a counterexample when I got the reply "A pointer is just an address, what's the difficulty?" but I didn't really buy such a simple explanation and at assembly code it's not ...
-4
votes
0answers
24 views

Assembler syntax of interaction with the operating system [closed]

im failing to understand this sentence PLS help (just need a basic understanding)
0
votes
0answers
24 views

How to use an interrupt on Cortex - M3 [migrated]

I am trying to set up the chip so it will detect a rising edge on a pin then start outputting a square wave on the next pin over after that. I have the interrupt turned on but I don't know how to say ...
2
votes
4answers
454 views

Why do we use to talk about addresses and memory of variable in C?

Why do we use to talk about addresses and memory of variable in C, where in other languages (like in Java, .Net etc) we do not talk about variable address and memory in a program, we will directly use ...
1
vote
0answers
58 views

What are offsets in Assembly and how do I use them? [migrated]

In the code below, the person points a register at an address, I get that. Why is it that later on he didn't just load R3 into R1, why did it have to be offset by 0x14? How did R1 move in a few ...
0
votes
1answer
71 views

Encapsulating term for bytecode and assembly? [closed]

I am currently writing a paper which talks a lot about Java bytecode and x86 assembly.I'm having the problem of having to say "bytecode & assembly" a lot which is repetitive. I was wondering if ...
-2
votes
0answers
14 views

Why my program for AT89C2051 has so many errors? [migrated]

I'm new to this site and I'm sorry I can't make out a better title. I'm a student and I'm doing a project - design a traffic light using AT89C2051. Unfortunately, my code doesn't work. There are many ...
10
votes
5answers
5k views

Is there a canonical book on x86 assembly? [closed]

There are lots of books on assembly. However, they usually deal with ISAs about which I don't care, such as MIPS or ARM. I don't deal with these architectures; there's no reason for me to try to learn ...
0
votes
0answers
18 views

how can convert assembly with extern function to shellcode in osx 64 intel [closed]

I want to convert this assembly program to shellcode. This program just creates a file , my purpose is how I should convert assembly to shellcode when I using extern command in it My assmbly code is ...
4
votes
4answers
339 views

I want to experience the early days of computing [closed]

Long ago when you bought a pc there was nothing on it. You had to write your own software. While we have it good in this day and age, we lack the understanding of computer systems that computer ...
1
vote
2answers
201 views

Creation of an Assembler [closed]

I've always been interested in how programming languages are created, so for the past 8 months I've been researching, practicing and more about the creation of compilers. I've been able to quite ...
0
votes
1answer
146 views

What is the purpose of red zone?

Red zone is a fixed size area in memory beyond the stack pointer that has not been "allocated". Compilers do generate assembly to access that area in simple leaf functions. But I can't see any real ...
0
votes
3answers
255 views

How does assembly relate to machine/binary code

How does assembly relate to machine/binary code. For example here is how to print to the screen in mikeOS(a small pure assembly OS), mikeOS it uses NASM to assemble. BITS 16 ORG 32768 ...
0
votes
1answer
65 views

Fetching instructions from memory

So, I am a noob in assembly language and machine instructions. When the discussion came up as to how funtion calls are implemented at the processor level, someone said that the CALL instruction ...
0
votes
2answers
181 views

How do we go from assembly to machine code(code generation) [closed]

I know this is abstract as it's all about signals and switch - (electronics) - underneath, but is there a easy way to visualize the step between assembling code to machine code. For example if you ...
0
votes
1answer
133 views

What did machine code for 4-bit architecture look like?

I don't know how a 4-bit instruction could be enough to do something so I read about the Intel 4004 and it says that it used 8-bit instructions and then I can understand how opcode and numbers has ...
15
votes
4answers
3k views

Is Assembly still relevant?

Are there major differences between assembly language and higher level languages when it comes to coding and/or managing projects? Obviously it takes more statements in assembly language to carry out ...
-1
votes
1answer
172 views

What do the x86 AND and SHR instructions mean? [closed]

I'm learning x86 assembly, and I'd like to know, what do the CPU instructions "and" and "shr" mean? Can anyone help me with that? Please show an example of how they are used in a peace of code. Thank ...
12
votes
3answers
591 views

Why is the copying instruction usually named MOV?

In quite many assemblers, a value copying instruction is usually named "MOV" and its description in manuals usually also contains "move" (however, other words can be used, like "load", "store", ...
4
votes
3answers
311 views

Why do some compilers generate direct machine code?

I was taking this course - CMU 18-447, Computer Architecture at Carnegie Mellon to brush my knowledge and concepts. They say that most of the machine level details and implementations is taken care ...
6
votes
7answers
5k views

Purpose of NOP instruction and align statement in x86 assembly

It has been a year or so since I last took an assembly class. In that class, we were using MASM with the Irvine libraries to make it easier to program in. After we'd gone through most of the ...
1
vote
1answer
193 views

How are I/O port addresses and data sent?

First of all, I'd like to say this is a hardware-level question, which is very closely related to the "in" and "out" command in x86 assembly. I have searched for quite some time, but I still haven't ...
67
votes
7answers
27k views

Is this an assembly language?

In my childhood I used to program on an MK-61 Soviet calculator. It had four operating registers (X, Y, Z, T) and 15 storage registers. A program could have 105 steps. As I recall it, it had commands ...
3
votes
3answers
350 views

Is there much difference between X86 Assembly language on Windows and Linux?

I'm a complete beginner at Assembly, and my aim is to learn as much as I can to do with Assembly to one day I can reach expert level (I know I'm way off right now, but you never know). My only problem ...
36
votes
14answers
10k views

How have languages influenced CPU design?

We are often told that the hardware doesn't care what language a program is written in as it only sees the compiled binary code, however this is not the whole truth. For example, consider the humble ...
5
votes
3answers
250 views

Writing a bootloader with no bootloader

I have a question that I really can't find a straight answer to. Let me start by saying I'm not asking for a step by step tutorial, or even plan on doing anything. I'm just curious. I've been ...
13
votes
18answers
10k views

Assembly as a First Programming Language?

How good of an idea do you think it would be to teach people Assembly (some variant) as a first programming language? It would take a lot more effort than learning for instance Java or Python, but one ...
-2
votes
1answer
207 views

Any good, easy to learn from books or tutorials for learning assembly? [closed]

I've been a developer since 2009 and I've learnt a lot of languages since, but I've always wanted to understand and be able to code in the lowest level language so I can directly (or at least very ...
-1
votes
4answers
552 views

What is the lowest level that you can program? [closed]

At university we had to implement our own program counter in microcode and I doubt that it's possible to do computer programming at a lower level. Then we wrote the interrupt handler in assembly for ...
49
votes
7answers
5k views

How were the first compilers made?

I always wonder this, and perhaps I need a good history lesson on programming languages. But since most compilers nowadays are made in C, how were the very first compilers made (AKA before C) or were ...
42
votes
5answers
15k views

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 ...
0
votes
0answers
102 views

(Intel) Assembly For 32-Bit Linux with GDB.

I'm a bit new at working with Assembly (and relatively new at programming in lower-level languages), but here's the main question I have: Question: If I am using Intel-syntax 32-bit Assembly for ...
3
votes
2answers
435 views

Implementing non-fixed length array support in a compiler

I'm thinking of building a language for PIC microcontrollers. I want to be able to use non-fixed size arrays, like this: Declare the variable as int[] Wait for input from serial connection Make the ...
1
vote
2answers
787 views

will an assembly language book for intel x86 processor be compatible with amd processors?

I'm wanting to get an assembly book to learn assembly, and was wandering if i get a book for intel x86 processor will there be any problems assembling the code on an amd processor?
15
votes
4answers
3k views

Why does Donald Knuth write TAOCP using assembly language?

I don't hate using assembly language, since I have written some in my os course. But obviously, assembly language lacks abstraction, you have to pay more attention to the details. Is assembly ...
1
vote
1answer
3k views

Frame Pointer Explanation

In MIPS assembly, there is a register for the stack pointer, and another register for the frame pointer. What is the frame ponter and what is its purpose. How does it differ from the stack pointer?
0
votes
2answers
123 views

Is a “build” assembly?

In an old book I have, they say that "build" is either a process of converting source code into executable or the actual result - assembly. Is that correct? Is a build actually the assembly, I mean ...
1
vote
1answer
454 views

Using assembly to write to a file

I am working with a trading application (reading data from the exchange) which generates a bucket load of data on a per second basis. We have different "log-levels" but even the minimal log-level ...
-1
votes
3answers
319 views

How can I get assembly from an EXE? [closed]

Pretty much my only question is the title. Other then that I want to see the code behind small EXEs but I know it's hard to get it to convert to something like c or c++ so why not get assembly.
3
votes
3answers
274 views

Is it possible to use GNU GPL for application that has no source?

I mean, it is possible to create application without source code - for example using HEX editor or some debugger that can assembly instructions (actually every decent debugger can). Creating programs ...
12
votes
3answers
2k views

I want to build a Virtual Machine, are there any good references?

I'm looking to build a Virtual Machine as a platform independent way to run some game code (essentially scripting). The Virtual Machines that I'm aware of in games are rather old: Infocom's ...
10
votes
5answers
774 views

Learning to Program in Assembly - Useful Resources [closed]

Following on from a previous thread, it has got me interested in learning a little about Assembly programming. Not so much for wanting to program useful apps in, just to get a feel for low level ...
0
votes
7answers
1k views

Is it worth making Visual Assembly? [closed]

We already have: Visual Basic Visual C++ Visual C# Why there is no Visual Assembly? Is it worth making it?
8
votes
2answers
623 views

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 ...
3
votes
5answers
467 views

Are there such thing as assembly SDK's? [closed]

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 ...
1
vote
2answers
286 views

GCC: assembly listing for IA64 without an Itanium machine

I need to try the following thing: I would like to compile some simple C code samples and see the assembly listing generated by GCC for IA64 architecture, i.e. I just want to run GCC with the -S ...
3
votes
6answers
271 views

A question on nature of generated assembly in C++ and code Algebra

I wrote this code: #include <iostream> int main() { int a; std::cin >> a; if(a*a== 3){ std::cout << a; } return 0; } On MSVC I turned ON all ...
1
vote
1answer
796 views

What is the difference between Times and Dup in Assembly Language?

In a bootloader, the second last line is : TIMES 510-($-$$) db 0 Now, will this command also do the same : db 510-($-$$) DUP (0) If not why? I know what TIMES does, but its not mentioned ...
1
vote
1answer
324 views

Compiling OpenGL Assembly Language (ARB) assembly code

I have two questions to ask. If I want to code in ARB, what are the prerequisites I need to write the code? I have been using OpenGL and DirectX lately. I want to compile and run the ARB code. What ...
22
votes
12answers
5k views

Were the first assemblers written in machine code?

I am reading the book The Elements of Computing Systems: Building a Modern Computer from First Principles, which contains projects encompassing the build of a computer from boolean gates all the way ...