Shop OBEX P1 Docs P2 Docs Learn Events
Language without Video — Parallax Forums

Language without Video

HumanoidoHumanoido Posts: 5,770
edited 2009-11-27 12:50 in Propeller 1
SPIN and PROPASM use the Propeller Tool to load programs into the Propeller chip which can then output to LEDs (or to the Parallax Serial Terminal) for display. What additional languages are available with their own tool that can do this (blink LEDs and function without video)?

humanoido

Comments

  • kwinnkwinn Posts: 8,697
    edited 2009-11-26 15:32
    Almost every language has some form of I/O statement that could be used for this.
  • jazzedjazzed Posts: 11,803
    edited 2009-11-26 16:31
    Sounds like you're looking for "loaders" instead of "languages" ... do I feel a new list coming?
    Propellent, BST, ImageCraft C can load a propeller. There is a Python loader. I wrote a loader too [noparse]:)[/noparse].

    Post Edited (jazzed) : 11/26/2009 4:37:57 PM GMT
  • ericballericball Posts: 774
    edited 2009-11-26 16:43
    I think the question you are trying to ask is "which languages available for the Propeller provide access to the Special Purpose Registers (e.g. DIRA, INA, OUTA)?"



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Composite NTSC sprite driver: Forum
    NTSC & PAL driver templates: ObEx Forum
    OnePinTVText driver: ObEx Forum
  • BradCBradC Posts: 2,601
    edited 2009-11-27 00:18
    ericball said...
    I think the question you are trying to ask is "which languages available for the Propeller provide access to the Special Purpose Registers (e.g. DIRA, INA, OUTA)?"

    It's really only languages that actually run on the metal that have the versatility. At the moment that is PASM / SPIN / Beans Basic / Both C / various Forth implementations / BF .. any I've missed?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    If you always do what you always did, you always get what you always got.
  • HumanoidoHumanoido Posts: 5,770
    edited 2009-11-27 06:35
    Thanks very much for the replies! This is definitely on the right track! The idea is to compile the language on the PC using the language's own editor or other (on the pc), and then send the program to the Propeller chip for running, which will have only a few LEDs or piezo speaker programmed as output.

    So far, if I understand this correctly, the following languages will accomplish that purpose:

    Languages
    PASM
    SPIN
    Beans Basic
    Catalina C
    ImageCraft C
    Forth Implementations
    BF

    and these are Loaders
    BST (has a suite of tools)
    Propellent
    Python Loader (non-windows users)
    jazzed's Loader (where is it?)

    .. any missed?
  • heaterheater Posts: 3,370
    edited 2009-11-27 12:35
    Well I hate to say it but...

    Many language that can be compiled under CP/M will do what you want under ZiCog. In many cases the resulting binary can be run under ZiCog with out the CP/M emulation gunk.

    For example:

    Write your code in C and compile with BDSC under CP/M. Ensure the code does not use any CP/M services (console I/O, file system etc). Use only the port IN and OUT functions.

    Include the resulting binary (*.COM file) into ZiCogs Z80 memory space using a Spin "file" statement.

    Make a couple of lines of changes to the ZiCog hardware emulation to read/write Propeller ports or drive a UART etc when certain Z80 ports are accessed. Job done.

    I did once include a demo of flashing a LED a Prop pin from Z80 code in teh ZiCog stuff but it has long since been removed.

    This can also be done with Pascal, ADA, Algol etc compiled under CP/M. (and assembler of course)

    Thinking about it, if you take the old demos of PropAlatair running the Microsoft BASICs the same can be done form IN/OUT statements in BASIC.

    No CP/M or external memory required. Just a Prop.

    Just sayin...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    For me, the past is not over yet.
  • heaterheater Posts: 3,370
    edited 2009-11-27 12:36
    Ooops Just notice you specified "with their own tool". Hmm might have to work on that.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    For me, the past is not over yet.
  • HumanoidoHumanoido Posts: 5,770
    edited 2009-11-27 12:50
    Thanks heater! - "with their own tool" is loosely specified. The goal is to create the language code on the PC and load it into the Prop where it runs. I think what you are talking about fits this goal, although it sounds like there are several steps to the process.

    humanoido
Sign In or Register to comment.