answersLogoWhite

0

Code for 8086 assembler in C or C plus plus?

Updated: 8/17/2019
User Avatar

Wiki User

10y ago

Best Answer

Yes, you can write an 8086-assembler in C or C++. It is not that easy, though.

It is posible with asm or __asm__ directive with combination of volatile or __volatile__ for non memory affecting code.

Sample:

__asm__ ("mov %ax, %bx");

Move content of ax registry to bx.

Follow howto page for tutorial. http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Code for 8086 assembler in C or C plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the assembler of java c plus plus c and asp.net?

There is no such thing. An "assembler" is a program that converts assembly language code, into machine language. Other programming languages have a "compiler", which is more or less equivalent.


What program do they use to make c plus plus compilers?

The first generation C++ compiler was written in C. Newer generations of C++ compilers are written using the previous generation of C++, however some implementations also use assembler, either in part or in whole. Bear in mind that one of the first programs ever written for a computer was an assembler. Before assembler, all code had to be written in machine code, the native language of the computer, which was labour intensive and prone to error. But that was exactly how the first generation assembler had to be written. Thereafter, the assembler was used to create the next generation assembler, and the next, until high-level languages began to appear (again, written in assembler), until C finally appeared, which eventually led to C++.


What are translator in c language?

The assembler is translator which converts assembly language code into machine language code.


What is the use of assembler in c plus plus?

an assembler is a program,just like a compiler.that processes staaements written in a particular high level language and produces an object code in a low level language (assembly language) that the computer can understand.


Which program produces the obj file assembly or C plus plus?

A compiler produces object code, which is an obj file.


What are the three basic programming languages?

Machine Code, Assembler, & High Level (FORTRAN, COBOL, C).


Why C plus plus is a high and low level language?

It is high-level because it uses abstraction. That is, a single C++ instruction can easily create several dozen assembler instructions. Assembler is low level because every symbolic instruction translates directly into machine code -- there is very little in the way of abstraction. Thus the coder is almost entirely responsible for the integrity of their code, down to the minutae, and errors can be difficult to spot due to the lack of the safeguards that C++ automatically provides. C++ is not a low-level language per se, but it does include low level features, such as direct manipulation of memory contents via pointer variables, including pointers to functions. Also, by examining the resulting assembler instructions, code can be optimised to a much higher degree than is possible with more abstract languages, such as Java. Thus highly efficient code comparable to that of assembler can be produced.


Is C plus plus preprocessor software?

Sometimes, it is. Some implementations compile C++ code into C code, and then compile the C code.


Can you program an Intel 8086 in C plus plus?

Yes, if you have a suitable compiler and environment. Microsoft's Visual C/C++ 1.52C 16-bit development system did exactly that. There are other compilers as well.


what tool used to convert C++ source code into executable machine code?

Compliers are used to convert C++ into assembly code. Then a tool called an "assembler" converts that code into machine code. Finally, a "linker" connects all of those machine code files into a single executable.


What programming language is Unix written in?

Unix is primarily written in the C language, with some small snippets of assembler code for low level bootstraps.


What is the mean c plus plus in machine code?

It is used to distinguish between the C or C++