Programmable computer (In development)

  • Crionis
    16th May 2011 Member 4 Permalink
    Hi! a long time I want to create simple and functional computer (4 bit),
    and now I want to present it to you!

    This is incomplete version, but I will try to make it complete.

    You may create own program code.


    How does this work:
    "Programmator" is a two pages, one page - 16 lines, one line is a 3 cell.
    One line - one command (this rule may be modified)

    [farg] - function argument.
    [mem] - memory address
    [reg] - register name
    [null] - empty cell

    Usage, Description
    Commands:
    JMP [page] [line], setup current line.
    MEM [mem] [value], move value into memory.
    REG [reg] [value], move value into register.
    MTR [reg] [mem], copy value from memory into register.
    RTM [mem] [reg], copy value from register into memory.
    RTR [reg] [reg], copy value from first register to second register.

    Function:
    -------------------------------
    VGA [farg] [reg], Control of "video adapter", works with register [reg].

    farg list:
    RST - Clear display.
    DSN - Display signed number. (incomplete)
    DUN - Display unsigned number.
    -------------------------------
    IF [farg] [null], Simple condition, work with register "A" and "B", If result of condition = TRUE, it jumps +2 line to down.
    If result = FALSE, it jumps to next line.

    farg list:
    A = B.
    A > B.
    A < B.
    A ! B - A not equal B.
    -------------------------------
    KEY [farg] [reg], Activate "Keyboard" and waiting when buttons will be pressed, result moves into register [reg].

    farg list:
    ANY - return index from any button
    NUM - return index only number button
    SYS - return index only system button (unsupported with current keyboard)
    -------------------------------
    ALU [farg] [reg], Arithmetic and logic unit, operates with A and B registers, result of operation moves into register [reg].

    farg list:
    NOT - invert bits in "A" register.
    OR - logic operation.
    XOR.
    AND.
    ADD - A + B

    -------------------------------
    COM [farg] [reg], Communication port

    farg list:
    R - request data
    W - send data

    -------------------------------

    Thank you for your attention.
  • Ace
    16th May 2011 Member 0 Permalink
    Interesting, can't wait for it to be finished.
  • lucasspencer123
    16th May 2011 Member 0 Permalink
    Great work just that the fact has a very tiny amount of drive space and the coding language isn't sufficently storable but fantastic work on the graphics card.
  • Crionis
    16th May 2011 Member 0 Permalink
    Updated.
    Added: Command "IF".
  • funmaker
    16th May 2011 Member 0 Permalink
    awesome!

    it need some math functions.
  • Disaster
    16th May 2011 Member 0 Permalink
    @lucasspencer123 (View Post)
    It's TPT.
    image
    Seriously though don't talk sh*t.
  • pokepal101
    16th May 2011 Member 0 Permalink
    Hmm...
    AWESOME!!
    A way to add numbers might be nice, as well as a link to this thread in the description.
    But other than that:
    AWESOME!!

    Now make it run TPT.
  • Crionis
    16th May 2011 Member 0 Permalink
    Updated.
    Added: Device "Keyboard", Function "KEY".

    @funmaker (View Post)
    >it need some math functions.
    it in process.
  • BlueAmulet
    16th May 2011 Member 0 Permalink

    Deleted

    Edited once by BlueAmulet. Last: 11th Apr 2024
  • Crionis
    16th May 2011 Member 0 Permalink

    gamax92:

    The [0] key on the keyboard seems to be broken.

    Thanks!

    "Programmator" may support 16 pages, but this free space reserved for other commands.