CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

kbhit

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Alvin
Guest







kbhit
PostPosted: Mon Nov 14, 2005 3:09 pm     Reply with quote

Hi can someone please post the source code for kbhit(), which registers or bits does it check in PIC18F2480? Any help would be greatly appreciated.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Nov 14, 2005 3:20 pm     Reply with quote

Quote:
Hi can someone please post the source code for kbhit(),

I can tell you how to do this:

Compile a small test program and look at the .LST file that is generated
after a successful compilation. It's in your project folder. It will show
the ASM code generated by the compiler for the kbhit() function.

Also, if you want the listing to show register names (instead of the
hex address of the registers), then in MPLAB, go to Project/Build Options
and in the Compiler tab, in the List File Options, select Symbolic Format.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group