Text
Assembly Language

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    howtodoit.myfreeforum.org Forum Index -> A detailed list of common computer words
View previous topic :: View next topic  
Author Message
Please Register and Login to this forum to stop seeing this advertsing.





Add Karma

Posted:     Post subject:

Back to top
symon
Site Admin
Site Admin

Location: 

Joined: 13 Mar 2006
Posts: 866


Location: Hampshire Add Karma

PostPosted: Sun Apr 23, 2006 9:23 pm    Post subject: Assembly Language Reply with quote

Name: Assembly Language
Created: 1956-1963
By: IBM
Home Page: http://www.ibm.com/
Acronym:
Language type: low level
Extensions: .ash .asi .asm .aso .src .tah
Tutorial: http://webster.cs.ucr.edu/

Note: Assembly Lang. has a pretty bad reputation. The common impression about assembler Lang. programmers today is that they are all hackers or misguided individuals who need enlightenment. When to use assembler Lang.: For Low level control. Speed. Programs written in machine Lang. execute fast! Time Critical Code. Small program size. Writing interrupt handlers is where assembler Lang. shines. Assembly Lang. is very flexible and powerful; anything that the hardware of the computer is capable of doing can be done in assembly.

What is assembly language?
Assembly Language, in computer science, a type of low-level computer programming language in which each statement corresponds directly to a single machine instruction. Assembly languages are specific to a given processor. After writing an assembly language program, the programmer must use the assembler specific to the microprocessor to translate the assembly language into machine code. Assembly language provides precise control of the computer, but assembly language programs written for one type of computer must be rewritten to operate on another type. Assembly language might be used instead of a high-level language for any of three major reasons: speed, control, and preference. Programs written in assembly language usually run faster than those generated by a compiler. The use of assembly language lets a programmer interact directly with the hardware (processor, memory, display, and input/output ports).


Code Example


Code:
;Hello world for the zx-spectrum in z80 assembler
 ;by Chris Francis, c_francis1@yahoo.com
 ;This version repeats forever
 ;'org' and 'ent' are directives probably specific to
 ;the Zeus assembler from Crystal Computing that I
 ;used to compile and test the code.
 ;defm might be aswell, but it just defines a series
 ;of bytes.
 ;It can be run by typing RANDOMIZE USR 32768
 ;in Spectrum Basic

 ORG 32768
 ENT

 LD IY, #5C3A
 RES 0, (IY+02)
 RES 1, (IY+01)

 LD HL, HELLO
 LD A,22
 RST #10
 LD A,0
 RST #10
 LD A,0
 RST #10

LOOP LD A,(HL)
 PUSH AF
 PUSH HL
 AND #7F
 RST #10
 POP HL
 INC HL
 POP AF
 BIT 7,A
 JR Z, LOOP

 LD A,13
 RST #10
 LD HL, HELLO
 JR LOOP
 RET

HELLO DEFM /Hello World/
 DEFB 161



Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    howtodoit.myfreeforum.org Forum Index -> A detailed list of common computer words All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Card File  Gallery  Forum Archive
HOWTODOIT was designed and built by Symon Field
Creator Of ☆ FarnboroughInvinciblesAgonyAuntFairiesAsylum Alliance FunnyWorldHOWTODOIT PHPbb3
HOWTODOIT© Symon Field 2006,2007,2008

Powered by phpBB Group © 2001,2005.
 

Create your own free forum | Buy a domain to use with your forum