+ Reply to Thread
Results 1 to 5 of 5

Thread: Wireless Networking

  1. #1
    Inactive Chezzestix is on a distinguished road Chezzestix's Avatar
    Join Date
    Jun 2007
    Location
    Dallas, TX USA
    Posts
    74

    Default

    Im having some issues with this code:

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'>alloc in,0;
    alloc out,0;

    start:

    mov port0,0; //Clean out the port so we don&#39;t register old sends
    out 1,1.5; //Let the world know your active

    conloop:

    in #in,0;
    cmp #in,1.5;
    je coned; //At this stage if #in = 1.5 that means there is an active radio (not nessarily CPU I&#39;m afraid)
    jmp conloop;

    coned:

    // code goes here to the console screen telling the user a connection has been made

    out 1,3.14; // Send out verification code so they can know they aren&#39;t just picking up a button set to 1.5
    mov EAX,1; //lets set up this loop
    verify:
    in #in,0;
    cmp #in,3.14; // Check for the verification code
    je stop; //later to be replaced by the after connection features
    inc EAX,1;
    cmp EAX,40;
    je wiggy //If they dont respond after 40 Cycles then it isn&#39;t a computer or they don&#39;t want the connection bad enough
    jmp verify;

    wiggy:

    //Code telling the user something went wrong with their connection (its wiggy)

    jmp start;

    stop:</div>

    Even with frequency set to 1 the CPU outputs error 2.0 in an instant. What is going on here?
    [img]http://img374.imageshack.us/img374/6062/parkaybarxm5.gif[/img]

    ...I wish I understood me.

  2. #2
    That furred thing
    Black Phoenix has a spectacular aura about Black Phoenix has a spectacular aura about Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,273

    Default

    Code:
    alloc in,0;
    alloc out,0;
    
    They are placed in top, and they write 0 to there, just add "DATA;" in front of them, and "CODE;" before code

    Also by the way, I found easy way of connecting one or more CPU's using shared memory (all CPU's connected to some shared piece of memory via membus & some small memory)
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5


  3. #3
    Inactive Chezzestix is on a distinguished road Chezzestix's Avatar
    Join Date
    Jun 2007
    Location
    Dallas, TX USA
    Posts
    74

    Default

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'>DATA;

    alloc in;
    alloc out;

    FS: db 10000;

    CODE;

    start:

    mov FS:0,0; //Clean out the input so we don&#39;t register old sends
    mov FS:50,1.5; //Let the world know your active

    conloop:

    mov #in,FS:0;
    cmp #in,1.5;
    je coned; //At this stage if #in = 1.5 that means there is an active radio (not nessarily CPU I&#39;m afraid)
    jmp conloop;

    coned:

    // code goes here to the console screen telling the user a connection has been made

    mov FS:50,3.14; // Send out verification code so they can know they aren&#39;t just picking up a button set to 1.5
    mov EAX,1; //lets set up this loop
    verify:
    mov #in,FS:0;
    cmp #in,3.14; // Check for the verification code
    je CodeEnd; //later to be replaced by the after connection features
    inc EAX,1;
    cmp EAX,40;
    je wiggy //If they dont respond after 40 Cycles then it isn&#39;t a computer or they don&#39;t want the connection bad enough
    jmp verify;

    wiggy:

    //Code telling the user something went wrong with their connection (its wiggy)

    jmp start;

    CodeEnd:</div>

    Still no good. Please also tell me if I get this membus thing. This is also for those who need two computers on the other side of the map and a wire between memory would be just outlandish.
    [img]http://img374.imageshack.us/img374/6062/parkaybarxm5.gif[/img]

    ...I wish I understood me.

  4. #4
    That furred thing
    Black Phoenix has a spectacular aura about Black Phoenix has a spectacular aura about Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,273

    Default

    <div class='codetop'>CODE
    <div class='codemain' style='height:200px;white-spacere;overflow:auto'>DATA;

    alloc in;
    alloc out;

    FS: db 10000;

    CODE;

    start:

    mov FS:0,0; //Clean out the input so we don&#39;t register old sends
    mov FS:50,1.5; //Let the world know your active

    conloop:

    mov #in,FS:0;
    cmp #in,1.5;
    je coned; //At this stage if #in = 1.5 that means there is an active radio (not nessarily CPU I&#39;m afraid)
    jmp conloop;

    coned:

    // code goes here to the console screen telling the user a connection has been made

    mov FS:50,3.14; // Send out verification code so they can know they aren&#39;t just picking up a button set to 1.5
    mov EAX,1; //lets set up this loop
    verify:
    mov #in,FS:0;
    cmp #in,3.14; // Check for the verification code
    je CodeEnd; //later to be replaced by the after connection features
    inc EAX,1;
    cmp EAX,40;
    je wiggy //If they dont respond after 40 Cycles then it isn&#39;t a computer or they don&#39;t want the connection bad enough
    jmp verify;

    wiggy:

    //Code telling the user something went wrong with their connection (its wiggy)

    jmp start;

    CodeEnd:</div>

    Still no good. Please also tell me if I get this membus thing. This is also for those who need two computers on the other side of the map and a wire between memory would be just outlandish.[/b][/quote]

    Code:
    mov FS:0,0; //Clean out the input so we don&#39;t register old sends
    mov FS:50,1.5; //Let the world know your active
    
    This makes no sense, you reference memory with #

    Also use invisible wires (width = 0)
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5


  5. #5
    Inactive Ha1f is on a distinguished road Ha1f's Avatar
    Join Date
    Jun 2007
    Posts
    22

    Default

    As much as this isn&#39;t a helpful post, just use wires with 0.00 width
    (or were you doing something else... exactly?)

+ Reply to Thread

Similar Threads

  1. Wire - Wireless links aren't working for me anymore!
    By sk8erace1 in forum Technical Support
    Replies: 6
    Last Post: 02-13-2009, 03:45 AM
  2. Wire - Wireless
    By AlgorithmX2 in forum Wiremod Addons
    Replies: 13
    Last Post: 11-02-2008, 02:50 AM
  3. Hi-speed networking device
    By Frigolit in forum Ideas & Suggestions
    Replies: 9
    Last Post: 07-22-2008, 07:59 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