Добавить
Уведомления

8-bit Computer in Minecraft

8-bit computer with 32 bytes RAM, designed as a bitmap logic image, then generated in Minecraft 1.12.2 The image could be run on bitmap logic simulator : https://realhet.wordpress.com/2015/09/02/bitmap-logic-simulator/ In the video, I just enter this program : 0: LDA #3 1: OUT A 2: DEC #1 3: JNC 1 4: HLT 5: JNC 1 That will show 03, 02, 01, 00, then halt the computer. ------ About the computer: The clock freq is 0.25Hz (1 cycle = 39 redstone ticks). There are 8 different instructions. Each instruction is 1 byte size, and cost 2~3 clock cycles to run. 000XXXXX : LDI (Load Immediate Value) A := XXXXX 001XXXXX : DEC(Decrease A by Value) A := A - XXXXX 010XXXXX : LDA(Load from RAM) A := [XXXXX] 011XXXXX : STA(Store to RAM) [XXXXX] := A 100XXXXX : ADC(Addition with Carry) A := A + [XXXXX] + C 101XXXXX : SBB(Subtraction with Borrow) A := A - [XXXXX] - C 110XXXXX : JNC(Jump to XXXXX if not carry, else clear carry) 111XXXXX : HLT(Halt the computer)

Иконка канала  Игровое Стремление
6 подписчиков
12+
19 просмотров
2 года назад
12+
19 просмотров
2 года назад

8-bit computer with 32 bytes RAM, designed as a bitmap logic image, then generated in Minecraft 1.12.2 The image could be run on bitmap logic simulator : https://realhet.wordpress.com/2015/09/02/bitmap-logic-simulator/ In the video, I just enter this program : 0: LDA #3 1: OUT A 2: DEC #1 3: JNC 1 4: HLT 5: JNC 1 That will show 03, 02, 01, 00, then halt the computer. ------ About the computer: The clock freq is 0.25Hz (1 cycle = 39 redstone ticks). There are 8 different instructions. Each instruction is 1 byte size, and cost 2~3 clock cycles to run. 000XXXXX : LDI (Load Immediate Value) A := XXXXX 001XXXXX : DEC(Decrease A by Value) A := A - XXXXX 010XXXXX : LDA(Load from RAM) A := [XXXXX] 011XXXXX : STA(Store to RAM) [XXXXX] := A 100XXXXX : ADC(Addition with Carry) A := A + [XXXXX] + C 101XXXXX : SBB(Subtraction with Borrow) A := A - [XXXXX] - C 110XXXXX : JNC(Jump to XXXXX if not carry, else clear carry) 111XXXXX : HLT(Halt the computer)

, чтобы оставлять комментарии