Subject Code : 4COM1042
Assignment Task

 

The purpose of this exercise is to familarise yourself with the CdM-8 development environment. You are given a program that includes a commented-out sequence of
CdM-8 instructions that will compute the following when the program is run:

mem[0x30] = mem[0x20] + mem[0x21]

Where mem[0x20], mem[0x21] and mem[0x30] refer to the memory cells at addresses 0x20, 0x21 and 0x30
To do so it uses the following algorithm:
r0 = 0x20 # Put the number 0x20 into register r0
r1 = mem[r0] # Copy the contents of the memory location pointed at by r0 into r1
r0 = 0x21 # Put the number 0x21 into register r0
r2 = mem[r0] # Copy the contents of the memory location pointed at by r0 into r1
r2 = r1 + r2 # Add the contents of r1 to r2
r0 = 0x30 # Put the number 0x30 into register r0
mem[r0] = r2 # Copy the contents of r2 to the memory location pointed at by r0

 

 

This 4COM1042 - Computer Science Assignment has been solved by our Computer Science experts at UniLearnO. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Eureka! You've stumped our genius minds (for now)! This exciting new question has our experts buzzing with curiosity. We can't wait to craft a fresh solution just for you!

  • Uploaded By : Brett
  • Posted on : April 03rd, 2019

Whatsapp Tap to ChatGet instant assistance