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'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'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'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'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;
stop:</div>
Even with frequency set to 1 the CPU outputs error 2.0 in an instant. What is going on here?


LinkBack URL
About LinkBacks
re;overflow:auto'>alloc in,0;



Reply With Quote






Bookmarks