![]() 1,076,337,918 visitors served. |
|
![]() Dictionary/ thesaurus | ![]() Medical dictionary | ![]() Legal dictionary | ![]() Financial dictionary | ![]() Acronyms | ![]() Idioms | ![]() Encyclopedia | ![]() Wikipedia encyclopedia | ? |
assembly language |
Also found in: Dictionary/thesaurus, Acronyms, Wikipedia, Hutchinson | 0.07 sec. |
assembly languageType of low-level computer programming language consisting mostly of symbolic equivalents of a particular computer's machine language. Computers produced by different manufacturers have different machine languages and require different assemblers and assembly languages. Some assembly languages can be used to convert the code that programmers write (source code) into machine language (readable by the computer), and have functions to facilitate programming (e.g., by combining a sequence of several instructions into one entity). Programming in assembly languages requires extensive knowledge of computer architecture. A programming language that is one step away from machine language. Each assembly language statement is translated into one machine instruction by the assembler. Programmers must be well versed in the computer's architecture, and, undocumented assembly language programs are difficult to maintain. It is hardware dependent; there is a different assembly language for each CPU series.
HP 3000
begin
intrinsic read,print,binary,ascii;
array buffer(0:17);
array string(0:3);
byte array b'string(*) = string;
integer ftemp, ctemp, len;
move buffer:= "Enter Fahrenheit ";
print (buffer,-30,%320);
len:=read (string,-4);
ftemp:= binary(b'string,len);
ctemp:= (ftemp-32) * 5 / 9;
len:= ascii(ctemp,1-,b'string);
move buffer:= "Celsius is ";
move buffer(14) := string, (-len);
print (buffer,-32,%0);
end
PC (Intel x86)
cseg segment para public 'CODE'
assume cs:cseg,ds:cseg
start:
jmp start1
msgstr db 'Enter Fahrenheit '
crlf db 13,10,'$'
nine db 9
five db 5
outstr db 'Centrigrade is $'
start1: push ds
push cs
pop ds
mov dx,offset cseg:msgstr
mov ah,9
int 21h
sloop:
cent: call getnumb
test ax,ax
je exit
push ax
mov dx,offset cseg:outstr
mov ah,9
int 21h
pop ax
sub ax,32
jns c1
push ax
mov dl,'-'
mov ah,6
int 21h
pop ax
neg ax
cl: mul five
div nine
call putval
mov dx,offset cseg:crlf
mov ah,9
int 21h
jmp sloop
exit: pop ds
mov ah,4ch
int 21h
getnumb:
xor bx,bx
llp: mov dl,0ffh
mov ah,1
int 21h
cmp al,0dh
je llr
sub al,'0'
jb llr
cmp al,'9'
ja llr
xor ah,ah
shl bx,1
add ax,bx
shl bx,1
shl bx,1
add bx,ax
jmp llp
llr: mov dx,offset cseg:crlf
mov ah,9
int 21h
mov ax,bx
ret
putval: xor bx,bx
push bx
mov bx,10
llg: xor dx,dx
div bx
add dx,'0'
push dx
test ax,ax
jne llg
bloop: pop dx
test dx,dx
je endx
mov ah,6
int 21h
jmp bloop
endx: ret
cseg ends
end start
How to thank TFD for its existence? Tell a friend about us, add a link to this page, add the site to iGoogle, or visit webmaster's page for free fun content. |
|
? Mentioned in | ? References in periodicals archive | ||
|---|---|---|---|
| In addition to producing smaller object code size, which is valuable in memory-constrained embedded applications like ABS systems, disk drive controllers, and handheld devices, the new compiler is fully compatible with ARM's assembly language, making it easy to use existing library routines and ROM Monitors. He is the co-author of the textbooks Pascalgorithms (Houghton-Mifflin) and VAX Assembly Language (Macmillan, US). Programs are written in a high-level language or a straightforward RISC assembly language. |
| Free Tools: |
For surfers:
Browser extension |
Word of the Day |
Help
For webmasters: Free content | Linking | Lookup box | Double-click lookup | Partner with us |
|
|---|