answersLogoWhite

0

In assembly language, you can store calculated numbers into an array by first defining the array in the data segment using directives like .data or .section .data, followed by the array name and its size. After performing your calculations, use the appropriate registers to load the calculated values and store them in the array using the MOV instruction, specifying the array index for storage. For example, if you want to store a value in the first index, you can calculate the address of the array and use an offset for the specific index. Finally, ensure that you manage the array size and boundaries to avoid overflow.

User Avatar

AnswerBot

7mo ago

What else can I help you with?

Continue Learning about Engineering

What are the names of some early computer languages?

FORTRAN, FORTH, C, BASIC, COBOL, LISP, LOGO, Pascal, and many more. Algol - Algorithmic Language SAIL - Stanford Artificial Intelligence Language BLISS - Basic Language for Implementation of System Software APL - A Programming Language SNOBOL - String Oriented Symbolic Language


Adding numbers from 0 to 5 in assembly language?

0000 0001 0010 0011 0100 0101


Short note on high level language?

Generally languages are used for communication, In the case of computers languages are used to communicate with the Hardware. Language consist of set of rules and syntaxes to frame the valid instructions to work with the Machines.


Why is assembly language efficient?

Assembly uses commands you can begin to understand, like JSR (Jump to subroutine which changes points in a code) machine code on the other hand is the code that the machine reads. This would only look like numbers to you, probably in hex code. Basically the higher level a language is the easier to understand because of the level of abstraction. It goes, machine code, assembly language, then things like C then java or visual basic. In VB you can write commands almost the same as you would construct an English sentence, the compiler then converts this down to machine code which the processor can understand and execute. Got it?


Why do you need assembly language?

Assembly language is more human-readable than machine language. Generally, statements in assembly language are written using short codes for the instruction and arguments, such as "MOV $12 SP", as opposed to machine language, where everything is written as numbers. Assembly language can have comments and macros as well, to ease programming and understanding. Generally, programs called "assemblers" transform assembly language to machine language. This is a relatively straightforward process, there being a clear 1-to-1 transformation between assembly and machine language. This is as opposed to compilers, which do a complicated transformation between high-level language and assembly. -------------------------------------------------------------------- ASSEMBLY is the key word to define the difference between Machine Language and Assembly. . Assembly language assembles steps of MACHINE CODE into SUB-ROUTINES defined by simple text words: Such as: the assembly command 'ADD' may represents 20-30 machine commands.

Related Questions

How do you write an assembly language program to find the sum of n numbers using array?

write an assembly language program to find sum of N numbers


What is the generation of language?

Programming languages are divided into five different generations. A programming language consists of the symbols, letters and numbers used to communicate with computers.


How do you multiply two numbers in assembly language 8086?

Yes.


What mean php expression?

PHP is a programming language. An "expression" is anything that can be evaluated (calculated) to get (among other things) a number. For example, numbers themselves; variables that represent numbers; calculations that result in a number (additions, subtractions, etc.), are all numeric expressions.


Write an assembly language program to multiply two BCD numbers?

fish


What is the memcpy library used for in computer programming?

The memcpy library is used in computer programming to copy the value of numbers from a source to the memory block destination. Memcpy is frequently used in the C++ programming language.


What is Alp for multiplication of two digit BCD numbers in 8086?

Assembly language programe for multiplication


What are the names of some early computer languages?

FORTRAN, FORTH, C, BASIC, COBOL, LISP, LOGO, Pascal, and many more. Algol - Algorithmic Language SAIL - Stanford Artificial Intelligence Language BLISS - Basic Language for Implementation of System Software APL - A Programming Language SNOBOL - String Oriented Symbolic Language


Why computer programming languages invented?

As a CPU only processes written in machine language (binary) programming languages, which uses words instead of numbers is the reason that programming languages were invented. It allows programmers to write application in programming language statements that then uses special software to convert the program into machine language. (Gaddis, Tony, Irvine, Kip; Starting out with visual basic, 2005)


Adding numbers from 0 to 5 in assembly language?

0000 0001 0010 0011 0100 0101


Short note on high level language?

Generally languages are used for communication, In the case of computers languages are used to communicate with the Hardware. Language consist of set of rules and syntaxes to frame the valid instructions to work with the Machines.


What is difference between machine language and assembly language?

Machine language is the actual bits used to control the processor in the computer, usually viewed as a sequence of hexadecimal numbers (typically bytes). The processor reads these bits in from program memory, and the bits represent "instructions" as to what to do next.Thus machine language provides a way of entering instructions into a computer (whether through switches, punched tape, or a binary file).Assembly language is a more human readable view of machine language. Instead of representing the machine language as numbers, the instructions and registers are given names (typically abbreviated words, or mnemonics, eg ld means "load"). Unlike a high level language, assembler is very close to the machine language. The main abstractions (apart from the mnemonics) are the use of labels instead of fixed memory addresses, and comments.An assembly language program (ie a text file) is translated to machine language by an assembler. A disassemblerperforms the reverse function (although the comments and the names of labels will have been discarded in the assembler process).machine language faster than assembly language even than assembly language depend upon machine language