Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TITLE MASM Template (main.asm)
- ; Description:
- ;
- ; Revision date:
- INCLUDE Irvine32.inc
- .data
- .code
- main PROC
- mov eax, 1 ;moves 1 into eax
- mov ebx, 0 ;moves 0 into ebx
- fibnum:
- mov edx, eax
- add edx, ebx ; i.e. eax + ebx
- mov eax, ebx ; i.e. eax = ebx
- mov ebx, edx ; i.e. ebx = ebx +eax
- call DumpRegs
- loop fibnum ; how do I tell it to stop after so many iterations?
- exit
- main ENDP
- END main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement