Assembly to PBasic code conversion
Archiver
Posts: 46,084
This may be a really stupid question, but here it is anyway. There
are lots of projects in my back issues of Poptronics that use PIC's
with Assembly code. I don't know much about Assembly code; I have
enough trouble trying to figure out PBasic. How can I change the
Assembly code from some of these projects into PBasic? Please be
nice!
are lots of projects in my back issues of Poptronics that use PIC's
with Assembly code. I don't know much about Assembly code; I have
enough trouble trying to figure out PBasic. How can I change the
Assembly code from some of these projects into PBasic? Please be
nice!
Comments
I don't know of any "translators" that will convert your PIC code to PBasic.
This would require somebody who knows the PIC code, make a flow chart from
that code, then from the flowchart write the PBasic code.
ken
=============
This may be a really stupid question, but here it is anyway. There
are lots of projects in my back issues of Poptronics that use PIC's
with Assembly code. I don't know much about Assembly code; I have
enough trouble trying to figure out PBasic. How can I change the
Assembly code from some of these projects into PBasic? Please be
nice!
[noparse][[/noparse]Non-text portions of this message have been removed]
Doug Wood <douglout@m...> wrote:This may be a really stupid question, but
here it is anyway. There
are lots of projects in my back issues of Poptronics that use PIC's
with Assembly code. I don't know much about Assembly code; I have
enough trouble trying to figure out PBasic. How can I change the
Assembly code from some of these projects into PBasic? Please be
nice!
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and Body of
the message will be ignored.
Yahoo! Groups Links
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
[noparse][[/noparse]Non-text portions of this message have been removed]
I could probably do something like that.
Frank
--- In basicstamps@yahoogroups.com, "Doug Wood" <douglout@m...> wrote:
> This may be a really stupid question, but here it is anyway. There
> are lots of projects in my back issues of Poptronics that use PIC's
> with Assembly code. I don't know much about Assembly code; I have
> enough trouble trying to figure out PBasic. How can I change the
> Assembly code from some of these projects into PBasic? Please be
> nice!
> This may be a really stupid question, but here it is anyway. There
> are lots of projects in my back issues of Poptronics that use PIC's
> with Assembly code. I don't know much about Assembly code; I have
> enough trouble trying to figure out PBasic. How can I change the
> Assembly code from some of these projects into PBasic? Please be
> nice!
PIC Assembler is only 35 words to learn. : ) anyway, about the best
you are going to find is that someone else did the conversion (not a
very good chance) tp PBasic.
The more likely thing is that the project is soooo darn cool, someone
on here will port it over.
Dave
instructions. Each 'data' memory location
is considered a 'Register' or a 'File' (why
they call them File's I DON'T KNOW, it makes
no sense. Anyway...)
The nice thing about PBasic is that it is a
high-level language. In a high-level language
you have things like 'IF...THEN' statements.
In assembly you have things like
"DECFSZ", which is "Decrement File, and Skip
the next instruction if the result is zero".
Your best bet may be to get the C2C IDE
package (www.picant.com/c2c), download
an archive copy of MPLAB 5.70
(www.microchip.com , DevTools, Archive)
and create 'Assembly' projects with the 'old'
code in it. Single-step the code in the
C2C 'Simulator', and see what is happening.
THEN, you can translate what is happening into
PBasic -- and program it into your BS2.
Be aware a "simple" statement in PBasic, like
(SEROUT 16, 16384, "Hi" ) can take a page
of assembly -- you just have to find the
PBasic equivalents.
--- In basicstamps@yahoogroups.com, "Doug Wood" <douglout@m...> wrote:
> This may be a really stupid question, but here it is anyway. There
> are lots of projects in my back issues of Poptronics that use PIC's
> with Assembly code. I don't know much about Assembly code; I have
> enough trouble trying to figure out PBasic. How can I change the
> Assembly code from some of these projects into PBasic? Please be
> nice!