Powder toy processor

  • fabrizziop
    27th Jul 2010 Member 0 Permalink
    devast8a
    I think you should post daily pre-releases, in a different save of the "real"(lol) processor.
  • devast8a
    27th Jul 2010 Former Staff 0 Permalink
    fabrizziop
    I might when I get closer to completion. (It's going to be pretty much an entire rebuild rather then modifying the original one)
  • Halfbin
    27th Jul 2010 Member 0 Permalink
    I just half-finished a sold-state stack for this. I'll post a link when I can find it under Browse.
  • OniLink--
    27th Jul 2010 Member 0 Permalink
    Halfbin
    Your solid state stack is here: https://powdertoy.co.uk/View.html?ID=7494
  • Bevinsky
    27th Jul 2010 Member 0 Permalink
    I made a little "assembler" program in Javascript. It basically maps assembly opcodes to their binary equivalents. Might make it easier to write programs for this.

    The opcodes are:
    stp
    The stop command.

    add
    Adds register A and B and puts the result in C.

    sub
    Subtracts A with B and puts the result in C.

    set X,Y
    Places the value from register X in ram slot Y.

    get X,Y
    Places the value from ram slot Y in register X.

    lod X,Y
    Places the value Y in register X.
    X can only be A or B.

    I guess it isn't real assembly, but with such a limited processor, the simplest thing to do was make this.

    Here is the link:
    http://bevinsky.dyndns.org/ptasm
  • Bevinsky
    27th Jul 2010 Member 0 Permalink
    Here is an example program. It subtracts 5 with 2 and stores the result in RAM.

    lod A,5
    lod B,2
    sub
    set C,0
  • devast8a
    27th Jul 2010 Former Staff 0 Permalink
    Bevinsky
    Darn you beat me to it. :P
  • devast8a
    27th Jul 2010 Former Staff 0 Permalink
    Well, my idea for the RAM isn't going to work. I'm going to have to rethink this.
  • plypencil
    27th Jul 2010 Member 0 Permalink
    What was your idea on RAM?
  • devast8a
    27th Jul 2010 Former Staff 0 Permalink
    To use jeb3's stack to store memory more efficiently (space wise) rather then using pure electronic gates. Problem is that jeb3's stack requires heat-sim to be off. Where as PTCT/NTCT electronics requires heat-sim to be on.