Download presentation
Presentation is loading. Please wait.
Published byMarylou Parrish Modified over 8 years ago
5
AddressInstructionMeaning 0001 01011Load value at 11 into accumulator 1010 01101Copy value of accumulator to 13 2001 01111Load value at 15 into accumulator 3101 0000Print ASCII character from accumulator 4011 01100Add value at 12 to accumulator 5010 01111Copy value of accumulator into 15 6001 01101Load value at 13 into accumulator 7100 01110Sub value in 14 from accumulator 8010 01101Copy value of accumulator to 13 9110 0010Jump to 2 if accumulator is not 0 10111 0000Halt 110001 1100 (20) 120000 0010 (2) 130000 0000 (0) 140000 0000 (4) 150100 0001 (65) Before Accumulator: ?
6
AddressInstructionMeaning 0001 01011Load value at 11 into accumulator 1010 01101Copy value of accumulator to 13 2001 01111Load value at 15 into accumulator 3101 0000Print ASCII character from accumulator 4011 01100Add value at 12 to accumulator 5010 01111Copy value of accumulator into 15 6001 01101Load value at 13 into accumulator 7100 01110Sub value in 14 from accumulator 8010 01101Copy value of accumulator to 13 9110 0010Jump to 2 if accumulator is not 0 10111 0000Halt 11 12 13 14 15 After Accumulator:
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.