C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28695
Number of posts: 94715

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
microcontroller programming Posted by pintuz_4_u on 20 Jan 2006 at 12:43 AM
I have a code for playing song on a speaker, conected to a microcontroller chip, in assembly language.

Can anybody suggest, how can i port that one for my pc.

Thanks and Reagards,
saroj
Report
Re: microcontroller programming Posted by Lundin on 20 Jan 2006 at 5:14 AM
: I have a code for playing song on a speaker, conected to a microcontroller chip, in assembly language.
:
: Can anybody suggest, how can i port that one for my pc.
:
: Thanks and Reagards,
: saroj
:

1) Assembler is not portable.
2) This is the C/C++ board.
Report
Re: microcontroller programming Posted by shaolin007 on 20 Jan 2006 at 11:33 AM
: : I have a code for playing song on a speaker, conected to a microcontroller chip, in assembly language.
: :
: : Can anybody suggest, how can i port that one for my pc.
: :
: : Thanks and Reagards,
: : saroj
: :
:
: 1) Assembler is not portable.
: 2) This is the C/C++ board.
:


Maybe not port but you could write an emulator to do it on a PC but that would probably more work than it's worth.


Report
Re: microcontroller programming Posted by Gregry2 on 20 Jan 2006 at 4:36 PM
This message was edited by Gregry2 at 2006-1-20 16:37:36

: : : I have a code for playing song on a speaker, conected to a microcontroller chip, in assembly language.
: : :
: : : Can anybody suggest, how can i port that one for my pc.
: : :
: : : Thanks and Reagards,
: : : saroj
: : :
: :
: : 1) Assembler is not portable.
: : 2) This is the C/C++ board.
: :
:
:
: Maybe not port but you could write an emulator to do it on a PC but that would probably more work than it's worth.you took my green!
:

:

or, you could discipline yourself and rewrite the entire thing in x86 asm parralelling your microcontroller's code, but thats a big effort as well. Not as much as an emulator, but still, hard.

But, if I were you, I'd at least try it. You certainly could learn alot from something like that.
{2}rIng


Report
Re: microcontroller programming Posted by stober on 20 Jan 2006 at 10:01 PM
This message was edited by stober at 2006-1-20 22:1:51

if you are using MS-Windows os, call win32 api PlaySound(). Most of those old assembly programs will not run in MS-Windows os.





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.