Presentation is loading. Please wait.

Presentation is loading. Please wait.

The (5) Parts Every Computer MUST have. Humans Computers Input Devices (getting information IN) Question: What other INPUT devices can you think of?

Similar presentations


Presentation on theme: "The (5) Parts Every Computer MUST have. Humans Computers Input Devices (getting information IN) Question: What other INPUT devices can you think of?"— Presentation transcript:

1 The (5) Parts Every Computer MUST have

2 Humans Computers Input Devices (getting information IN) Question: What other INPUT devices can you think of?

3 Output Devices (getting information OUT) Humans Computers Question: What other OUTPUT devices can you think of?

4 Married Humans Input and Output Devices He is inputting She is outputting

5 Memory Devices (storing information) Long term Short term Humans Computers

6 CPU Devices (logic and calculator) Humans Computers

7 Bus (transfer of information/data) Humans Computers Question: how do you think information travels in humans? In Computers?

8 Alan Turing & Von Neumann 1) Input2) Output3) Memory4) CPU 5) Bus Alan Turing thought of (created the theory) a machine that would run a stored program Von Neumann’s design defined/said: “All digital computers have the same (5) parts “

9 Programming Concepts

10 English Spanish Me gusta comer a mi perro llamado Barfs-A-Lot mucho chocolate pretzels. “I like to feed my dog named Sir Barfs–A-Lot chocolate pretzels. We don’t all speak the same language

11 Java Binary 0011001001110001010100 0110100010111001010010 System.out.println("Hello World!"); Humans and computers don’t either

12 A=5 B=6 C= A + B Humans Understand Source Code Question: Can you guess what the Java code above does?

13 Binary 0011001001110001010100 0110100010111001010010 CPUs Understand Machine Code Question: Can you guess what the machine code above does?

14 0011001001110001010100 0110100010111001010010 System.out.println("Hello World!"); So we use translators (Compilers) Development Kit Virtual Machine Java Source Code is human readable Machine Code is computer readable

15 Java code is translated twice! System.out.println("Hello World!"); Source Code is human readable

16 Java code is translated twice! mov eax, byte [ebp-4] mov edx, byte [ebp-8] add eax, edx mov ecx, eax System.out.println("Hello World!"); Source Code is human readable Byte Code is an in between state STEP #1: The JDK compiles source code into Java byte code Development Kit

17 Java code is translated twice! mov eax, byte [ebp-4] mov edx, byte [ebp-8] add eax, edx mov ecx, eax 0011001001110001010100 0110100010111001010010 System.out.println("Hello World!"); Source Code is human readable Byte Code is an in between state Binary Code or machine code is run by the CPU STEP #1: The JDK compiles source code into Java byte code Virtual Machine Development Kit STEP #2: The JVM translates byte code into machine code and runs the machine code

18 Modding Concepts

19 Making Mods (you need source) mov eax, byte [ebp-4] mov edx, byte [ebp-8] add eax, edx mov ecx, eax Byte Code You only get byte code when you buy the game Unfortunately you need source code to make mods Question: How do you get the source from the Byte code?

20 De-compiler (reverse translator) System.out.println("Hello World!"); Source Code mov eax, byte [ebp-4] mov edx, byte [ebp-8] add eax, edx mov ecx, eax Byte Code Forge takes the byte code you get when you purchase Minecraft and decompiles it, and generates Minecraft source code that you can then modify

21 MCreator: An easy-to-use mod maker Generates Source Code for your mod

22 Generating a new Minecraft version Source Code for your mod Source Code for Minecraft

23 Generating a new Minecraft version Source Code for your mod Source Code for Minecraft New version with your Mod The JDK does the following: 1.Merges the source 2.Creates a new Minecraft 3.Generates the byte code Development Kit

24 Generating a new Minecraft version Source Code for your mod Source Code for Minecraft New version with your Mod The JDK does the following: 1.Merges the source 2.Creates a new Minecraft 3.Generates the byte code Development Kit Virtual Machine The JVM does the following: 1.Translates byte code into machine code 2.Runs the Minecraft machine code Development Kit


Download ppt "The (5) Parts Every Computer MUST have. Humans Computers Input Devices (getting information IN) Question: What other INPUT devices can you think of?"

Similar presentations


Ads by Google