In order to perform the fibonacci series, that is 1,1,2,3,5,8,13 .....
We initalize SI to 2000 and CX to 0, then we initilaize AX and BX registers. Then we increment SI Register by 1 and we move the contents of AL into SI register. Then we decrement cs by one and move the contents of BL o that of si and decrement CS. Then we add al and the bl registers.
Move al with contents of si +01 and move si with BL, then we increment si by one and repeat until cx=0 and we halt the program
CODE:
MOV SI,2000
MOV CX,0000
MOV CL,[SI]
MOV AX,0000
MOV BX,00
INC SI
MOV [SI], AL
DEC CX
INC SI
MOV [SI],BL
DEC CX
AGAIN ADD AL,BL
MOV [SI+01],AL
MOV BL,[SI]
INC SI
LOOP AGAIN
INT A5
News and Materials Headline Animator
Sunday, June 6, 2010
Subscribe to:
Post Comments (Atom)
Popular Posts
-
APPARATUS:- Microprocessor trainer kit, ADC kit, power supply, data cable etc THEORY:- Stepper motor is a device used to obtain an accurate...
-
Line follower is an autonomous robot which follows a particular line of particular width. Its direction is determined by the direct...
-
Program to interface DAC using 8255 and generate square waveform The following is the assembly language using DAC to interface with 8255 a...
-
Gate Paper1 Q.1 - Q.20 Carry One Mark Each 1. If E denotes expectation, the variance of a random variable X is given by 2. The fol...
-
RF Antenna Basics Electromagnetic waves and antenna basics Radio signals are a form of electromagnetic wave, a...
-
We don’t want to imply that Rajnikanth’s jokes are more famous than his movies. But let’s face it how many Rajni movies have you actually se...
-
It's Technical Event at Aditya Engineering College,East Godavari District,Andhra Pradesh ,India SEP 14th 2010 to SEP 18th 2010 ...
-
Apple’s iPhone 4 was labeled as the smartest phone ever. But it might not be for everyone. If you are not going the Apple way, then there a...
-
Two class seven students allegedly mixed poison into a water tanker in their school to get their holidays extended on Monday at Bhirtana ...
No comments:
Post a Comment