Programmable computer (In development)

  • Demoman200
    16th May 2011 Member 0 Permalink
    Why does the IF function seem to have an ELSE? As in: IF A=B REG D 01 (other stuff) it only does the REG function if A does NOT equal B. What's with that?
  • Crionis
    16th May 2011 Member 0 Permalink
    IF function works as IF and ELSE, example
    line 1: IF A = B
    line 2: FALSE
    line 3: TRUE

    with ELSE:

    line 1: IF A = B
    line 2: JMP 0 9
    line 3: REG D 01 // A = B
    ... some code...
    line 8: JMP 0 11
    line 9: REG D 00 // A not B
    ... some code...
    line 11: ... // end if

    without ELSE:

    line 1: IF A = B
    line 2: JMP 0 4
    line 3: REG D 01 // A = B
    line 4: ... // end if

    is way simple and optimal for electronics.
  • limelier
    16th May 2011 Member 0 Permalink
    I'm looking at all the computers on PT, and I don't understand a thing: What it's for, how do I use it, how can I make one...
  • Crionis
    16th May 2011 Member 0 Permalink
    Updated.
    Added: Function "ALU".
  • Demoman200
    16th May 2011 Member 0 Permalink
    Hey Crionis, you should make a change-list for each of the versions in the main post, starting with 0.1, and also maybe you could add an optional WIFI memory expansion or something?
  • cooldaddy96
    16th May 2011 Member 0 Permalink
    AWESOME! I whish I was good a electronics :(
  • massey101
    16th May 2011 Member 0 Permalink
    @Demoman200 (View Post)
    A 4 bit computer may only have a maximum of 16 words which it already has.

    But this is seriously awesome. It seems so sturdy compared to my one!
  • danieagle7
    16th May 2011 Member 0 Permalink
    Oh men... this is a very good work
  • jalfor
    16th May 2011 Member 0 Permalink
    @Crionis (View Post)
    You have done it an interesting way, as far as I can see, you have directly hardwired in a kind of C++ish thing rather than having machine code.

    Nice work though.
    Edited by jalfor, 2011-07-10 01:59:01
  • BlueAmulet
    16th May 2011 Member 0 Permalink

    Deleted

    Edited once by BlueAmulet. Last: 11th Apr 2024