1 / 24

The (5) Parts Every Computer MUST have

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

cicada
Télécharger la présentation

The (5) Parts Every Computer MUST have

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The (5) Parts Every Computer MUST have

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

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

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

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

  6. CPU Devices (logic and calculator) Computers Humans

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

  8. Alan Turing & Von Neumann 1) Input 2) Output 3) Memory 4) 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. We don’t all speak the same language Spanish English “I like to feed my dog named Sir Barfs–A-Lot chocolate pretzels. Me gusta comer a mi perro llamado Barfs-A-Lot mucho chocolate pretzels.

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

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

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

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

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

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

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

  18. Modding Concepts

  19. Making Mods (you need source) Byte Code moveax, byte[ebp-4] movedx, byte[ebp-8] addeax, edx movecx, eax • 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) Byte Code moveax, byte[ebp-4] movedx, byte[ebp-8] addeax, edx movecx, eax Source Code System.out.println("Hello World!"); 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 Minecraft Source Code for your mod

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

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

More Related