Lesson2 - Answers Task 1 0001 is fine as it allows the user to enter a value into the Accumulator ‘This line 1100 code is not valid as it does not specify the memory address ‘This line of Task 2 0001 is valid ‘This 1010 000011 is meant to add the value 3 but the value is not an 8 bit Binary Number ‘This – 0010 correctly outputs the contents of the Accumulator ‘This 0001 correctly allows input into the Accumulator ‘This 1010 00000001 correctly adds the value 1 to the contents of the Accumulator ‘This 0001 00000001 does not correctly output the contents of the Accumulator ‘This Task 3 0001 allows input into the Accumulator ‘Correct – 1100 00010000 the value in location 16 ‘Correctly stores 0001 allows input into the Accumulator ‘Correct – 0011 00010001 code ‘Incorrect operation 0001 allows input into the Accumulator ‘Correct – 1011 00010001 memory location 17 to the Accumulator ‘Adds 1010 00010000 the value 16 to the Accumulator ‘Adds 0010 the result ‘Outputs Task 4 0001 entered into the Accumulator ‘Value 1100 00010000 is stored in memory address 16 ‘Value 0001 value is entered into the Accumulator ‘Another
Lesson2 - Answers Task 1 0001 ‘This line is fine as it allows the user to enter a value into the Accumulator 1100 ‘This line of code is not valid as it does not specify the memory address Task 2 0001 ‘This is valid 1010 000011 ‘This is meant to add the value 3 – but the value is not an 8 bit Binary Number 0010 ‘This correctly outputs the contents of the Accumulator 0001 ‘This correctly allows input into the Accumulator 1010 00000001 ‘This correctly adds the value 1 to the contents of the Accumulator 0001 00000001 ‘This does not correctly output the contents of the Accumulator Task 3 0001 ‘Correct – allows input into the Accumulator 1100 00010000 ‘Correctly stores the value in location 16 0001 ‘Correct – allows input into the Accumulator 0011 00010001 ‘Incorrect operation code 0001 ‘Correct – allows input into the Accumulator 1011 00010001 ‘Adds memory location 17 to the Accumulator 1010 00010000 ‘Adds the value 16 to the Accumulator 0010 ‘Outputs the result Task 4 0001 ‘Value entered into the Accumulator 1100 00010000 ‘Value is stored in memory address 16 0001 ‘Another value is entered into the Accumulator
2_activity_1_ass_code.docx