Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -1,4 +1,4 @@
|
|||
TITLE i hate visual studio 4 (Fibs.asm)
|
||||
TITLE i hate visual studio 4 (Fibs.asm)
|
||||
; __ __/--------\
|
||||
; >__ \ / | |\
|
||||
; \ \___/ @ \ / \__________________
|
||||
|
|
@ -16,36 +16,36 @@ TITLE i hate visual studio 4 (Fibs.asm)
|
|||
INCLUDE Irvine32.inc
|
||||
|
||||
.data
|
||||
BEERCOUNT = 48;
|
||||
Fibs dd 0, 1, BEERCOUNT DUP(0);
|
||||
BEERCOUNT = 48;
|
||||
Fibs dd 0, 1, BEERCOUNT DUP(0);
|
||||
|
||||
.code
|
||||
main PROC
|
||||
; I am not responsible for this code.
|
||||
; They made me write it, against my will.
|
||||
;Here be dragons
|
||||
mov esi, offset Fibs; offset array; ;;were to start (start)
|
||||
mov ecx, BEERCOUNT; ;;count of items (how many)
|
||||
mov ebx, 4; ;;size (in number of bytes)
|
||||
call DumpMem;
|
||||
|
||||
mov ecx, BEERCOUNT; ;//http://www.wolframalpha.com/input/?i=F ib%5B47%5D+%3E+4294967295
|
||||
mov esi, offset Fibs
|
||||
NextPlease:;
|
||||
mov eax, [esi]; ;//Get me the data from location at ESI
|
||||
add eax, [esi+4]; ;//add into the eax the data at esi + another double (next mem loc)
|
||||
mov [esi+8], eax; ;//Move that data into the memory location after the second number
|
||||
add esi, 4; ;//Update the pointer
|
||||
loop NextPlease; ;//Thank you sir, may I have another?
|
||||
|
||||
|
||||
;Here be dragons
|
||||
mov esi, offset Fibs; offset array; ;;were to start (start)
|
||||
mov ecx, BEERCOUNT; ;;count of items (how many)
|
||||
mov ebx, 4; ;;size (in number of bytes)
|
||||
call DumpMem;
|
||||
;Here be dragons
|
||||
mov esi, offset Fibs; offset array; ;;were to start (start)
|
||||
mov ecx, BEERCOUNT; ;;count of items (how many)
|
||||
mov ebx, 4; ;;size (in number of bytes)
|
||||
call DumpMem;
|
||||
|
||||
exit ; exit to operating system
|
||||
mov ecx, BEERCOUNT; ;//http://www.wolframalpha.com/input/?i=F ib%5B47%5D+%3E+4294967295
|
||||
mov esi, offset Fibs
|
||||
NextPlease:;
|
||||
mov eax, [esi]; ;//Get me the data from location at ESI
|
||||
add eax, [esi+4]; ;//add into the eax the data at esi + another double (next mem loc)
|
||||
mov [esi+8], eax; ;//Move that data into the memory location after the second number
|
||||
add esi, 4; ;//Update the pointer
|
||||
loop NextPlease; ;//Thank you sir, may I have another?
|
||||
|
||||
|
||||
;Here be dragons
|
||||
mov esi, offset Fibs; offset array; ;;were to start (start)
|
||||
mov ecx, BEERCOUNT; ;;count of items (how many)
|
||||
mov ebx, 4; ;;size (in number of bytes)
|
||||
call DumpMem;
|
||||
|
||||
exit ; exit to operating system
|
||||
main ENDP
|
||||
|
||||
END main
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue