// Populate the jumpCodes HashMap jumpCodes.put(key: "null", value: "000"); jumpCodes.put(key: "JGT", value:"001"); jumpCodes.put(key: "JEQ", value:"010"); jumpCodes.put(key: "JGE", value: "011"); jumpCodes.put(key: "JLT", value: "100"); jumpCodes.put(key: "JNE", value:"101"); jumpCodes.put(key: "JLE", value:"110"); jumpCodes.put(key: "JMP", value: "111"); // Populate the compCodes HashMap // a = 0 (21 computations) compCodes.put(key: "0", value: "0101010"); compCodes.put(key: "1", value: "0111111"); compCodes.put(key:"-1", value: "0111010"); compCodes.put(key: "D", value: "0001100"); compCodes.put(key: "A", value: "0110000"); compCodes.put(key:"!D", value: "0001101"); compCodes.put(key: "!A", value: "0110001"); compCodes.put(key: "-D", value: "0001111"); compCodes.put(key: "-A", value: "0110011"); compCodes.put(key: "D+1", value: "0011111"); J Cinstruction.java > Cinstruction public class CInstruction extends Instruction { private static HashMap jumpCodes = new HashMap<>(initialCapacity: private static HashMap compCodes = new HashMap<>(initialCapacity:: static // Populate the destCodes HashMap destCodes.put(key: "null", value: "000"); destCodes.put(key: "M", value: "001"); destCodes.put(key: "D", value: "010"); destCodes.put(key: "MD", value: "011"); destCodes.put(key: "A", value: "100"); destCodes.put(key: "AM", value:"101"); destCodes.put(key: "AD", value: "110"); destCodes.put(key: "AMD", value: "111"); // Populate the jumpCodes HashMap jumpCodes.put(key: "null", value: "000"); jumpCodes.put(key: "T", value: "001"); jumpCodes.put(key: "JEQ", value: "010"); jumpCodes.put(key: "JGE", value: "011"); jumpCodes.put(key: "JLT", value: "100"); jumpCodes.put(key: "JNE", value:"101"); jumpCodes.put(key: "JLE", value: "110"); jumpCodes.put(key: "JMP", value:"111");
// Populate the jumpCodes HashMap jumpCodes.put(key: "null", value: "000"); jumpCodes.put(key: "JGT", value:"001"); jumpCodes.put(key: "JEQ", value:"010"); jumpCodes.put(key: "JGE", value: "011"); jumpCodes.put(key: "JLT", value: "100"); jumpCodes.put(key: "JNE", value:"101"); jumpCodes.put(key: "JLE", value:"110"); jumpCodes.put(key: "JMP", value: "111"); // Populate the compCodes HashMap // a = 0 (21 computations) compCodes.put(key: "0", value: "0101010"); compCodes.put(key: "1", value: "0111111"); compCodes.put(key:"-1", value: "0111010"); compCodes.put(key: "D", value: "0001100"); compCodes.put(key: "A", value: "0110000"); compCodes.put(key:"!D", value: "0001101"); compCodes.put(key: "!A", value: "0110001"); compCodes.put(key: "-D", value: "0001111"); compCodes.put(key: "-A", value: "0110011"); compCodes.put(key: "D+1", value: "0011111"); J Cinstruction.java > Cinstruction public class CInstruction extends Instruction { private static HashMap jumpCodes = new HashMap<>(initialCapacity: private static HashMap compCodes = new HashMap<>(initialCapacity:: static // Populate the destCodes HashMap destCodes.put(key: "null", value: "000"); destCodes.put(key: "M", value: "001"); destCodes.put(key: "D", value: "010"); destCodes.put(key: "MD", value: "011"); destCodes.put(key: "A", value: "100"); destCodes.put(key: "AM", value:"101"); destCodes.put(key: "AD", value: "110"); destCodes.put(key: "AMD", value: "111"); // Populate the jumpCodes HashMap jumpCodes.put(key: "null", value: "000"); jumpCodes.put(key: "T", value: "001"); jumpCodes.put(key: "JEQ", value: "010"); jumpCodes.put(key: "JGE", value: "011"); jumpCodes.put(key: "JLT", value: "100"); jumpCodes.put(key: "JNE", value:"101"); jumpCodes.put(key: "JLE", value: "110"); jumpCodes.put(key: "JMP", value:"111");
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
please help me I have to type what's in these pictures to convert the pictured code to text
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education