Other HI-TECH Compilers & Products >> 8051 Legacy Compiler

Pages: 1
eds
stranger


Reged: May 22 2008
Posts: 5
running a c51 program in pc
      #57832 - Thu May 22 2008 11:15 PM

hi... this is my first time to use c51. and i have no one to teach for me. can anyone help me on how to test a program created from c51 in my pc. since i do not have the 8051 yet. i wanted to test my program in my pc for the mean time... help anyone.please.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Dan HenryModerator
Guru
****

Reged: Oct 16 2003
Posts: 3401
Loc: Boulder, Colorado U.S.A.
Re: running a c51 program in pc [Re: eds]
      #57982 - Fri May 23 2008 06:30 PM

Write your code with portability in mind. #ifdef around or stub out parts of the code that are specific to the hardware platform.

Post Extras: Print Post   Remind Me!   Notify Moderator  
eds
stranger


Reged: May 22 2008
Posts: 5
Re: running a c51 program in pc [Re: Dan Henry]
      #58002 - Fri May 23 2008 08:38 PM

yes sir. i included it already.. but is it possible to run a c51 program in a desktop computer? my idea is that it can only be tested on a chip directly.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Dan HenryModerator
Guru
****

Reged: Oct 16 2003
Posts: 3401
Loc: Boulder, Colorado U.S.A.
Re: running a c51 program in pc [Re: eds]
      #58042 - Sat May 24 2008 12:19 AM

The 8051's instructions are not compatible with a PC's. You can run a C51 program in an 8051 simulator running on a PC.

Post Extras: Print Post   Remind Me!   Notify Moderator  
eds
stranger


Reged: May 22 2008
Posts: 5
Re: running a c51 program in pc [Re: Dan Henry]
      #58222 - Sun May 25 2008 09:07 PM

ok.. thanks a lot sir..=) by the way, i would also like to ask sir if there's a certain function in vb.net that converts any text file, say ansi to be converted to "utf-8 NO BOM"? thanks a lot sir...

Post Extras: Print Post   Remind Me!   Notify Moderator  
Dan HenryModerator
Guru
****

Reged: Oct 16 2003
Posts: 3401
Loc: Boulder, Colorado U.S.A.
Re: running a c51 program in pc [Re: eds]
      #58392 - Mon May 26 2008 12:18 PM

Sorry, I have not yet had to deal with Unicode translation issues.

Post Extras: Print Post   Remind Me!   Notify Moderator  
eds
stranger


Reged: May 22 2008
Posts: 5
Re: running a c51 program in pc [Re: Dan Henry]
      #58502 - Mon May 26 2008 08:41 PM

ok... thanks anyway sir...=)

Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 0 anonymous users are browsing this forum.

Moderator:  ndouglas, jtemples, Dan Henry, Andrew L, mikerj, dave g, meisty, josh stevo 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Topic views: 2903

Rate this topic

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5