This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern printf | |
extern scanf | |
section .data | |
prompt: db "Enter no of terms in fibbonoci series",10,0 | |
fmts: db "%d",0 | |
n : dd 0 | |
a: dd 0 | |
b: dd 1 | |
section .text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern printf | |
extern scanf | |
section .data | |
fmts: db "%d",0 | |
prompt: db "Enter the number ",10,0 | |
msg2: db "It is prime ",10,0 | |
msg3: db "It is not a prime ",10,0 | |
num1: dd 0 | |
num2: dd 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern printf | |
section .data | |
msg : db "Welcome to low level assembly language x86",10,0 | |
section .text | |
global main | |
main: | |
push ebp ; crearing stack frame |