Hi.. i need some CPU help, i keep getting odd errors on a code im makeing
i say odd because i have no idea why they are doing it
it has been narrowed down to a Error 2 witch is End of Program and if you look at it it shouldn't end
so if you guys see anything please tell me so i can get this on the road
Also if i remove all other func's it says the error is in Draw:
and incase you are wondering why i did the mov #1-10,0 its because i would get a 7.3 witch i have yet to fix would kinda help if the program kept running
Code:
mov #1337,65535
add #1337,2042
mov eax,#1337
mov #eax,300000
mov #0,10
mov #1,536
mov #2,0
mov #3,0
mov #4,0
mov #5,0
mov #6,0
mov #7,0
mov #8,0
mov #9,0
mov #10,0
Main:
mov eax,#1
sub eax,1
mov #1,eax
call Change
call Draw
jmp Main
Draw:
mov eax,#1337
mov #eax,300000
mov ecx,#0
mov eax,1
jmp Draw1
Draw1:
mov ebx,#eax
mov port2,ebx
add ebx,65535
mov port1,eax
mov port0,ebx
mov #ebx,200
cmp eax,ecx
je Rett
inc eax
jmp Draw1
Change:
mov eax,1
mov ecx,#0
jmp Change1
Change1:
mov ebx,eax
inc eax
mov edx,#eax
mov #ebx,edx
cmp eax,ecx
je Rett
jmp Change1
Rett:
ret
ret
jmp Rett
Bookmarks