+ Reply to Thread
Page 2 of 15 FirstFirst 123412 ... LastLast
Results 11 to 20 of 145

Thread: !!!OLD!!! ZCPU Documentation

  1. #11
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default

    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'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

  2. #12
    Wire Amateur Razara's Avatar
    Join Date
    Feb 2007
    Location
    Michigan, USA
    Posts
    64

    Default

    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?

  3. #13
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default

    Not as working opcode.
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

  4. #14
    Wire Amateur Razara's Avatar
    Join Date
    Feb 2007
    Location
    Michigan, USA
    Posts
    64

    Default

    a quick fix i found to get a square of something is just
    Code:
    mul eax,eax;
    i'm sure that's trivial, it might just help some people out. To get other power functions one could
    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

  5. #15
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default

    Last code is too slow. It will be skipped on high frequencies
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

  6. #16
    Wire Amateur Razara's Avatar
    Join Date
    Feb 2007
    Location
    Michigan, USA
    Posts
    64

    Default

    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

  7. #17
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default

    Yeah, that's right. HALT will pause until some new value comes on porn 0.
    That should work even on high frequencies
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

  8. #18
    Wire Noob Seraphis's Avatar
    Join Date
    Mar 2007
    Posts
    24

    Default

    **edited** nvm found problem

  9. #19
    Wirererer XeonXT's Avatar
    Join Date
    Mar 2007
    Posts
    199

    Default

    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."

  10. #20
    Wire Noob Seraphis's Avatar
    Join Date
    Mar 2007
    Posts
    24

    Default

    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:
    Having problems with this, still kindof new at it... Could anyone tell me whats wrong with it?

    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.

+ Reply to Thread
Page 2 of 15 FirstFirst 123412 ... LastLast

LinkBacks (?)

  1. 02-26-2010, 01:41 AM
  2. 01-27-2010, 06:21 PM
  3. 01-27-2010, 03:18 PM

Similar Threads

  1. !!!OLD!!! Documentation of hi-speed devices
    By Black Phoenix in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 98
    Last Post: 02-10-2011, 07:41 PM
  2. !!!OLD!!! ZGPU Documentation
    By Black Phoenix in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 38
    Last Post: 11-29-2010, 04:54 PM
  3. Expression Gate Documentation
    By Syranide in forum Finished contraptions
    Replies: 398
    Last Post: 01-21-2010, 10:27 PM
  4. Moongate Documentation
    By BlackNecro in forum Wiremod Addons & Coding
    Replies: 24
    Last Post: 04-22-2009, 01:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots