eds
stranger
Reged: May 22 2008
Posts: 5
|
|
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.
|
Dan Henry
Guru
  
Reged: Oct 16 2003
Posts: 3401
Loc: Boulder, Colorado U.S.A.
|
|
Write your code with portability in mind. #ifdef around or stub out parts of the code that are specific to the hardware platform.
|
eds
stranger
Reged: May 22 2008
Posts: 5
|
|
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.
|
Dan Henry
Guru
  
Reged: Oct 16 2003
Posts: 3401
Loc: Boulder, Colorado U.S.A.
|
|
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.
|
eds
stranger
Reged: May 22 2008
Posts: 5
|
|
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...
|
Dan Henry
Guru
  
Reged: Oct 16 2003
Posts: 3401
Loc: Boulder, Colorado U.S.A.
|
|
Sorry, I have not yet had to deal with Unicode translation issues.
|
eds
stranger
Reged: May 22 2008
Posts: 5
|
|
ok... thanks anyway sir...=)
|