I want to play, but have a project
Archiver
Posts: 46,084
Hey guys,
I subscribed to the user group several months ago, and am
getting the unread messages down to a workable amount. I'm impressed
with the feedback, as sometimes a simpler solution exists.
Remember the guy who could tell everything was fine by the sound of the
relays banging in? Sorry this message is long, but first one.
- flash memory, in a reader, connected to a pc via usb, is transparent
as a 'hard drive', supporting standard disk operating system (dos) files.
1/ can I, in a data logging project with a stamp, write to a 'compact
flash' the data in a dos file format (say ascii txt) so that I can
remove the flash card, stick it in the reader and have the pc recognize
it as a standard file?
2/ Is there such a thing as a cross assembler, basic to c+, c+ to basic?
Again sorry for the length, but been saving this up for months......any
comments will be appreciated
thanks
jim
I subscribed to the user group several months ago, and am
getting the unread messages down to a workable amount. I'm impressed
with the feedback, as sometimes a simpler solution exists.
Remember the guy who could tell everything was fine by the sound of the
relays banging in? Sorry this message is long, but first one.
- flash memory, in a reader, connected to a pc via usb, is transparent
as a 'hard drive', supporting standard disk operating system (dos) files.
1/ can I, in a data logging project with a stamp, write to a 'compact
flash' the data in a dos file format (say ascii txt) so that I can
remove the flash card, stick it in the reader and have the pc recognize
it as a standard file?
2/ Is there such a thing as a cross assembler, basic to c+, c+ to basic?
Again sorry for the length, but been saving this up for months......any
comments will be appreciated
thanks
jim
Comments
Original Message
From: "James Myles" <jmyles@r...>
> 1/ can I, in a data logging project with a stamp, write to a 'compact
> flash' the data in a dos file format (say ascii txt) so that I can
> remove the flash card, stick it in the reader and have the pc recognize
> it as a standard file?
Yep, I'm sure it's been done or is doable, but it would be quite a project.
Are you sure you want to tackle this as a beginner project? :O)
> 2/ Is there such a thing as a cross assembler, basic to c+, c+ to basic?
Nope, because Pbasic isn't a compiled language. It is "tokenized" and
interpreted on board the stamp. The only cross-compilers available are for
porting Pbasic to such chips as the Microchip PIC series, and I think the
Ubicom SX series. Because Pbasic is so radically different in structure, and
it doesn't compile to assembler, it would be hard or impossible to actually
convert it to C code. Same thing for C-Pbasic conversion.
- Robert
So much for science fiction re cross assemblers
re tackling as a beginner, the info I've got from this site for data
logging is great, I presume you speak of the flash stuff....but you
forget, the greatest knowledge is here!
jim
Robert Ussery wrote:
>
Original Message
>From: "James Myles" <jmyles@r...>
>
>
>
>
>>1/ can I, in a data logging project with a stamp, write to a 'compact
>>flash' the data in a dos file format (say ascii txt) so that I can
>>remove the flash card, stick it in the reader and have the pc recognize
>>it as a standard file?
>>
>>
>
>Yep, I'm sure it's been done or is doable, but it would be quite a project.
>Are you sure you want to tackle this as a beginner project? :O)
>
>
>
>>2/ Is there such a thing as a cross assembler, basic to c+, c+ to basic?
>>
>>
>
>Nope, because Pbasic isn't a compiled language. It is "tokenized" and
>interpreted on board the stamp. The only cross-compilers available are for
>porting Pbasic to such chips as the Microchip PIC series, and I think the
>Ubicom SX series. Because Pbasic is so radically different in structure, and
>it doesn't compile to assembler, it would be hard or impossible to actually
>convert it to C code. Same thing for C-Pbasic conversion.
>
>- Robert
>
>
>
>
>
>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.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
>
[noparse][[/noparse]Non-text portions of this message have been removed]
Look for 'Stamp Drive'.
And no, there is no Basic to C++ translator.
The problems are many. First, a translator
must 'know' both the 'source' environment, and
the 'destination' environment -- in terms of
available keywords, library calls, etc.
Then, the translator must translate both the
language constructs, library constructs, and
'structure' (module layout) of the 'source' to
the 'destination'. If the two environments don't
match very closely, this is very non-trivial.
The PBasic environment IS very simple, and much
of the very useful stuff it does is embedded in
the SERIN/SEROUT, SHIFTIN/SHIFTOUT, and PULSOUT
commands. It's really much easier just to learn
PBasic.
Also, having done a little of this work for a
Pascal to 'C' converter -- if you have Pascal
source, converted to 'C', it looks VERY 'Pascaly'.
And vice-versa. With the Stamp, the environment
is really too different.
--- In basicstamps@yahoogroups.com, James Myles <jmyles@r...> wrote:
> Hey guys,
> I subscribed to the user group several months ago,
and am
> getting the unread messages down to a workable amount. I'm
impressed
> with the feedback, as sometimes a simpler solution exists.
> Remember the guy who could tell everything was fine by the sound of
the
> relays banging in? Sorry this message is long, but first one.
> - flash memory, in a reader, connected to a pc via usb, is
transparent
> as a 'hard drive', supporting standard disk operating system (dos)
files.
> 1/ can I, in a data logging project with a stamp, write to
a 'compact
> flash' the data in a dos file format (say ascii txt) so that I can
> remove the flash card, stick it in the reader and have the pc
recognize
> it as a standard file?
> 2/ Is there such a thing as a cross assembler, basic to c+, c+ to
basic?
> Again sorry for the length, but been saving this up for
months......any
> comments will be appreciated
> thanks
> jim