Fibonnaci Sequence of a given number (Assembly Language)

; Program to compute fibonnaci sequence of a given number DATA SEGMENT ;INITIALIZE DATA SEGMENT COUNT DW 0AH ;INITIALIZE COUNT TO 0AH ANY DATA RES DB 10 DUP(?) ;INITIALIZE RESULT DATA ENDS ;END OF DATA SEGMENT CODE SEGMENT ;INTIALIZE CODE SEGMENT START: ;START THE CODE ASSUME CS:CODE,DS:DATA ;ASSUMPTION OF CODE AND DATA MOV AX,DATA ;MOVE DATA INTO THE ACCUMULATOR AX REGISTER MOV DS,AX ;MOVE AX … Continue reading Fibonnaci Sequence of a given number (Assembly Language)

Compute 2x (Assembly Language)

; Program to compute 2x DATA SEGMENT ;INITIALIZE DATA SEGMENT NUM1 DD 0.5 ;INTIALIZE NUM AS 0.5H ;NOTE IN EXAM DONT INITIALIZE NUM1 MORE THAN 0.9 ;RANGE SHOULD BE 0.1-0.9H ONLY ;REASON BECAUSE THE COMMAND F2XM1 WHERE ;X SHOULD BE SPECIFIED WITHING 0 > X < 1 RES DD ? ;INITIALIZE RES DATA ENDS ;END OF DATA SEGMENT CODE SEGMENT ;INITIALIZE CODE SEGMENT START: ;START … Continue reading Compute 2x (Assembly Language)