Warsztat.GDCompo!ProjektyMediaArtykułyQ&AForumOferty pracyPobieranie

Opisz napotkaną sytuację, a redakcja niezwłocznie znajdzie rozwiązanie!

wyślij anuluj

Budowa PC w SurvivalCraft (85% postępu)

SPECIFICATION:

CPU:
- 8-bit arythmetic,
- 34 8-bit instruction (there will be new ones),
- 2 kb of RAM (register memory, 256 8-bit numbers),
- 7 kb of program memory (256 instructions),
- about 4-6 Hz clock (dependent on types of instruction to do at a time),
- doing everything as fast as CPU can,
- support for pointers,
- 36-bit magistral to comunicate with devices.

HDD:
- 2 kb of HDD (256 8-bit numbers).

SOUND:
- device for making sounds,
- 2 kb of memory.

INPUT:
- 16-chars keyboard (numers from 0 to 9, 6 special characters).

OUTPUT:
- screen with 16x16 px resolution and pixel metod refreshing,
- number display (from 0 to 99),
- clock counter (ticks/s).
- text messages (from predefinied signs).
 

CPU INSTRUCTIONS:

LOGIC ARITHEMITIC:
     NOT
     AND
     OR
     XOR

COMPARISON OPERATIONS:
     == (equal)
     != (not equal)
     >= (equal or bigger than)
     > (bigger than)

SIMPLE ARITHEMITIC:
     ++ (increment)
     -- (decrement)
     ++16 (increment by 16)
     --16 (decrement by 16)

BITS SHIFTING
     COPY (copy number into different memory block)
     >>1 (right shift bit)
     <<1 (left shift bit)
     >>4 (right shift quartet-bit)
     <<4 (left shift quartet-bit)

ADVANCED ARITHEMITIC:
     ADD
     SUB (substract)
     MUL (multiplication, only 4-bit instruction)
     DIV (division, only 4-bit instruction)
     MOD (modulo division, only 4-bit instruction)
     RAND (random 8-bit value)

CONVERTING:
     BIN -> DEC (only for numbers from 0-99)
     DEC -> BIN (only for numbers from 0-99)

PREPROCESOR OPERATIONS:
     NEXT (load next program instruction, triggered automaticly)
     IF (like goto instruction in programming)
     CIN (read an input from user)
     DEBUG (controling debug diodes)

TIME MENAGMENT:
     WAIT (wait for next stable clock tic, it will allow to programm games)
     TIME (return time information from time menager of survivalcraft)

HDD INSTRUCTIONS:
     READ
     SAVE

RAM INSTRUCTIONS:
     READ
     SAVE

GPU INSTRUCTIONS:
     GET
     SET
     SHOW
     HIDE
     REVERSE


7-BLOCK DISPLAY INSTRUCTIONS:
     SET

SOUND GENERATOR INSTRUCTIONS
     PLAY (play music)
     STOP (stop playing music)
     SET (set point in sound generator memory to read music)
     EFFECT (play short sound effect)
     MUTE (mute whole generator)

ANOTHER INSTRUCTIONS:
     TEXT (write a text from a set of signs)
 
PROCESSOR PARTS:
    EVALUATING
    PROGRAM MEMORY
    PROGRAM POINTER
    POINTER CLOCK

Kategoria:
Silnik

Dodano:
2014-07-21 12:55:53

Ostatnia aktualizacja:
2014-08-22 22:35:29

Punkty:
504

Adres:
http://survivalcraft.lefora.com/topic/19404302/WIP-First-real-PC-in-SC?page=1#.U8zwgfl_u3I

Autor projektu:
deshan

  • Rolek (@Rolek) 21 lipca 2014 15:27
    256 * 8bit to raczej 2 kb, albo po prostu 256B, ale na pewno nie 2kB :P
  • deshan (@strateg) 21 lipca 2014 15:38
    Tak, racja, błąd przy literkach, myślałem nad jednostką kb ;) Już poprawiam...
  • Napisz komentarz:
    Aby dodać swój komentarz, musisz się zalogować.

Ocenili na plus:

Warsztat używa plików cookies. | Copyright © 2006-2017 Warsztat · Kontakt · Regulamin i polityka prywatności
build #ff080b4740 (Tue Mar 25 11:39:28 CET 2014)