View Single Post
Old 03-22-2009, 09:09 PM   #7 (permalink)
ds_rnk
 
Newb Techie

Join Date: Mar 2009

Posts: 12

ds_rnk is on a distinguished road

Default

Quote:
Originally Posted by mikesgroovin View Post
Grammar aside, yes, just sounds like C
Do you want to use java because that is what you only know? only allowed to use?
No, i can do it on C.
I even foubd a bit of code in C till here


#include <dos.h>
#include <conio.h>

void main(void)
{
unsigned int far *ptraddr; // Pointer to location of Port Addresses
unsigned int address; // Address of Port
int a;
char unsigned value,result,ch;

clrscr();

start:

ptraddr=(unsigned int far *)0x00000400;
printf("\n\nEntr data 2 b insrtd in port : ");
scanf("%X",&value);

clrscr();
printf("\n\n");
for (a = 0; a < 4; a++)
{
address = *ptraddr;
if (address == 0)
printf("COM%d Not Found\n",a+1);
else
{
printf("COM%d Address:%Xh ",a+1,address);
result = inport(a);
printf("Read:%X ",result);
outport(a, value);
printf("Write:%d ",value);
result = inport(a);
printf("Read:%X\n",result);
}
*ptraddr++;
}

ch=getch();
if(ch != 'x')
goto start;
else exit();
getch();
}


but i dont knw how to proceed.......

well i can code it in both C and JAVA
but i need to give a GUI, n i feel THAT i can give a better GUI in java then in C........m i right??

Actually i have gone insane with this.......i seriously need help.....
what would be your approach if u were me?

thanks in advance.....

Quote:
Originally Posted by CrazeD View Post
Okay, first off...



Also, you'll probably want to use C for this.
Sorry bro!!!!

rather SORRY BrOTHER!!!

Actually this is my frist post.

i m new to all this thing .....anyways i'll surely refer to that grammar thing......

grammar aside.....thanks for siggestion.....

Last edited by Trotter; 03-22-2009 at 09:33 PM. Reason: Merged
ds_rnk is offline