Find Jobs
Hire Freelancers

Build a command line LC3 simulator that will allow you to run some of the LC3 instructions

$10-30 USD

진행 중
게시됨 거의 2년 전

$10-30 USD

제출할때 지불됩니다
Purpose: This homework will test your understanding of LC3 instructions that we covered this quarter. You will build a command line LC3 simulator that will allow you to run some of the LC3 instructions as outlined below Student Learning Outcomes: The following student-learning outcomes are addressed in this assignment: • translate between assembly instructions and machine code • explain the instruction execution cycle Simulator Instructions: Use the starter code provided with this description. • You don’t need to modify anything in the BitString class. • You will only need to comment and uncomment a few lines in the Simulator class. • You will add methods to the Computer class to implement the instructions below. Before you start writing code, become familiar with the existing code. Testing must be done in a class named ComputerTest. Please use JUnit 4 or JUnit 5 tests. Submit your [login to view URL] and [login to view URL] files on Canvas. Follow the coding conventions provided in the starter code and don’t rewrite or change any of the method signatures. LC3 simulator starter code includes the following files: • [login to view URL] • [login to view URL] • [login to view URL] BitString: The simulation is based on the class BitString. The existing code provides many methods that can manipulate BitString objects for you and you don’t need to write additional methods. A BitString contains an array of char, but the values in each char are ‘0’ or ‘1’. There is an associated length member that keeps track of how full the array is (anywhere from 0 to 16). Simulator: The class Simulator includes a short LC3 program in two different forms, assembly language and binary. This program prints the numbers 9 down to 1 and halts. There is also some test code to test the NOT instruction. After you understand this test, then remove the test code from the Simulator class and place it into a JUnit test in a class called ComputerTest. You can use this test as a template for writing other tests. Computer: The Computer class uses BitString objects to represent the contents of all registers and memory locations. The memory and register file are treated as arrays of BitString. To execute a single instruction, you will generally need to use a couple of BitString objects out of the Computer object, convert them to integers, do some calculations on the integer and vice versa. By frequently displaying the Computer object during development, you can verify that individual instructions are behaving properly. Please remove the frequent display before submitting code.
프로젝트 ID: 33818357

프로젝트 정보

제안서 1개
원격근무 프로젝트
활동 중 2년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
프로젝트를 수여된 사용자:
사용자 아바타
$0 USD 7일에
5.0 (1 건의 리뷰)
1.4
1.4

고객에 대한 정보

국기 (UNITED STATES)
Kent, United States
5.0
1
결제 수단 확인
5월 19, 2022부터 회원입니다

고객 확인

이 거래선이 등록한 다른 일자리

PrintLetter
$10-30 USD
감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.