I was looking through the documentation and I could not find a power command. For example x^2. Does this function not exist for the cpu yet?
Those scripts are testing, they may not work. Speed test, as far as I know, outputs some integer on port5 all time. Try attaching screen.
Don't take those scripts as something to learn from, better use tutorials posted here
I was looking through the documentation and I could not find a power command. For example x^2. Does this function not exist for the cpu yet?
Not as working opcode.
a quick fix i found to get a square of something is just
i'm sure that's trivial, it might just help some people out. To get other power functions one couldCode:mul eax,eax;
Code:mov port0,eax; //attach port0 to a power gate setup with a value determining to what power the function is mov eax,port0;//attach the output of the power gate to port0
Last code is too slow. It will be skipped on high frequencies
if i understand the halt command correctly would this remedy it? it should theoretically halt the program until the power function did its calculations.
Code:mov port0,eax; //attach port0 to a power gate setup with a value determining to what power the function is halt 0; mov eax,port0;//attach the output of the power gate to port0
Yeah, that's right. HALT will pause until some new value comes on porn 0.
That should work even on high frequencies
Yeah, that's right. HALT will pause until some new value comes on porn 0.[/b]...
Anywho, when's this GPU coming out?
"As far as I can remember, Garry has always had this pissy, elitist attitude towards others. "I'm better than you all." That's his philosophy. And that's why he's hated. If he had been nice and respectful in the first place, he wouldn't have a bunch of pissed-off enemies biting at his ass every chance they get."
Having problems with this, still kindof new at it... Could anyone tell me whats wrong with it?Code:mainloop: mov eax,port0; cmp eax,1; je z; cmp eax,1; jne mainloop; z: // Start Letter Z mov ecx,0; mov ebx,1; mov port1,ebx; jmp lineone; lineone: // Start Line One mov port2,1; //x mov port3,0; //y cmp ecx,100; jg linetwo; inc ecx; cmp ecx,100; jng lineone; linetwo:
Basicaly, when port 0 has the value of 1, it's supposed to jump to label z, Which is then supposed to keep port 1 at value 1, but go on like a for loop timer until ecx is greater than 100 (timer), but while it is less than 100 it will keep port 2 at 1, and port3 at 0 and turn both to 0 when it's greater. Apon being greater, it will jump to linetwo and start a similar timer loop but with different port2 and 3 values.
I hope this wasn't too confusing... And I realize my code is probably way off.
Bookmarks