gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > general purpose io (gameboy)

#134283 - mk2007 - Thu Jul 12, 2007 8:14 am

Hi friends,

in my program i have been using general purpose io to communicate one switch..

so i initialise so(register) is output ..

i mean my register for generla io is REG_R = 0x8088;

after that whenever i prees switch i display 1 and then i count everytime i press ..once the count comes to 5 , i need to send send the output thru so..
(i already configured this one.)


while(1)
{
if(!(REG_R & 1))

while (!(REG_R & 1));

total = total + 1;

if (total >= 5 )
{

???????????????????????

}



so how to write for sendback the output.. (i put the question mark in the above code)..
i couldn't catch the exact one..

if u have idea or information please pass to me..

waiting for your valuable reply..

with regards,
mk...

#134345 - ScottLininger - Thu Jul 12, 2007 5:02 pm

Are you trying to send output through the serial port, or to the screen?

-Scott

#134826 - mk2007 - Tue Jul 17, 2007 12:06 pm

Hi ScottLininger,

Thanks for your quick reply..

i send from serial port...


waiting for valuable reply..

with regards.
mk..