Use port 0x60001A: if (!(peekIO (0x60001A) & 0b10)) //on key has been pressed. Note the "!". Here's a quote from j89hw.txt: $60001A RW :1 READ: Current status of the [ON] key, =0 if pressed :7-0 WRITE: Acknowledge [ON] key interrupt (level 6) __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com