<div class='codetop'>CODE
<div class='codemain' style='height:200px;white-space
re;overflow:auto'>DATA;
alloc in;
alloc out;
FS: db 10000;
CODE;
start:
mov FS:0,0; //Clean out the input so we don'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'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'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't a computer or they don'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'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)
Bookmarks