Sorcea is a scratch project made to simulate how a computer works (mostly something like 6502 assembly). This computer has different sprites meant to represent different parts of the computer like: CPU, GPU, SDD(ROM), RAM, SC(sound chip). NOTE that this is not a fully finished project and there might be some bugs so please feel free to let me know in the comments. -------------------------------How to use--------------------------- When you first press the green flag you will see some text appear. after the text is gone you can start typing you can use all number keys and letter keys but the rest don't work pressing up arrow with some of the number keys will give you a different character: 1: ! 2: . 3: # 4: - 5: % pressing left arrow will do a backspace pressing right arrow will run the command that you typed ----------------------------Commands------------------------------ - LDR (load one of the three registers of the CPU with a value) ex: LDR .reg1 hello-world - TSR (transfer value of one register to another) (can be used to transfer data from the CPU to the GPU) ex: TSR .reg1 #reg2 - PS (plays a sound) ex: PS boot - PTR (prints the value of one of the two GPU registers to the screen) ex: PTR #reg1 - PTC (moves the text cursor) ex: PTC -231 145 - TXC (sets text color) ex: TXC !red -TXS (sets text size) ex: TXS 145 - WFG (halts the CPU until GPU is done rendering) - CLR (clears the screen) - KBT (toggles keyboard on and off) (shouldn't really use this) - TCD (moves text cursor down one line) - CCR and CGR (clears the CPU and GPU registers respectively) - GUI (gets user input and stores it at a register) (also if GPU register is put in the second term it will print that before asking) ex: GUI .reg1 #reg1 - %CRT (creates file) ex: %CRT test-file - %EDT (edits file) ex: %EDT test-file - %DEL (deletes file) ex: %DEL test-file - %RUN (runs file) ex: %RUN test-file - %RD (reads file) (kinda janky tho) ex: %RD test-file --------------------------Changelog-------------------------------- v1.0 first working module! v1.1 added files v1.2 added a button bar to the top with 4 scrolling buttons, reading files and new GUI command
The whole idea for this project came from @Jordydmills who is also working on his own computer in scratch so you should also check out how his project is going at https://scratch.mit.edu/projects/1138548138/ #trending #all #recent #popular #games