Shop OBEX P1 Docs P2 Docs Learn Events
On Propeller Assembler — Parallax Forums

On Propeller Assembler

stevenmess2004stevenmess2004 Posts: 1,102
edited 2008-01-07 07:27 in Propeller 1
Here is a project I have been working on.

It is more of a disassembler that allows editing than a proper assembler, but it still allows you to write assembly code and run it on the propeller. Press F1 to see what keys to use. At the moment there is no support for labels but I might add this later. At some stage I might add SD card support (have to make an SD reader for my proto board first) so that you can save files.

First update. Now have support for labels. Press F1 for how to enter them. Labels can be up to 5 characters long. Also, instructions must be in uppercase.

Second update - 002
Fixed bug in test program-should now run and allow you to keep using the keyboard after you run the program
Made it look more like propeller assembly in proptool
Z,C and R flags are now individually set
To set a source register as an immediate use 'S' and add '#' to the front of the label

new bug - labels don't always work properly



Steven

Post Edited (stevenmess2004) : 1/5/2008 4:00:53 AM GMT

Comments

  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-01-01 06:33
    Forgot to mention, the include tvtext has been modified for PAL and to return the start address of the screen
  • AleAle Posts: 2,363
    edited 2008-01-01 07:36
    Very interesting !, a native compiler...
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-01-01 08:18
    Not really a compiler yet. But with more work it may be more interesting. What it really needs is a way of working with text files. But thats not happening until I have an SD card.

    Steven
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-01-02 03:56
    First update. First post has new version.

    Can somebody have a look at the demo program in there and tell me why the keyboard stops working when you run the program? Press F4 to run the program.

    Steven
  • VIRANDVIRAND Posts: 656
    edited 2008-01-05 00:35
    Looks great, but I couldn't get the keyboard to work at all. Could other keyboard drivers work?
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-01-05 03:47
    @VIRAND

    If the function calls have the same names, I can't see whynot. What board are you using?
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-01-05 03:47
    Second update.

    See first post
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-01-05 04:00
    @VIRAND

    Try the new update. If you run the demo program, it could have been the bug in that.
  • VIRANDVIRAND Posts: 656
    edited 2008-01-07 06:40
    I couldn't work Propasm002 at all. I have a Hydra board.
    With Propasm001,
    I changed the driver to NTSC,
    changed the crystal constants to xtal2+pll8x and 10_000_000
    changed the video pins to 24...27 for Hydra
    changed the keyboard pins to 13,14 or 13,15
    (Hydra uses 4 pins for keyboard i/o but only 2 are necessary, 12 is OUT)
    and the code displayed on TV but no keys responded.

    on Propasm002 I could not even get video out that way; it dies and reboots my EEPROM.

    I also have a breadboarded Propeller, like proto board, but it uses the same pins as Hydra.
    I suppose I could or might make one to use the same pins as your code.
  • deSilvadeSilva Posts: 2,967
    edited 2008-01-07 06:57
    The keyboard and mouse inerface is just "different" on the Hydra and needs a different driver, It is not such a difference (see Mike's "universal" driver), but it is more tan a matter of pins. The Hydra drivers are Mouse_ISO_010 etc...
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-01-07 07:27
    Thanks deSilva. You beat me to it smile.gif
Sign In or Register to comment.