[SOLVED] Homework 1

20.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)
  1. (60 points total, 10 points each) Determine the result in both decimal and binary format and C and V flags

Of the following calculations for a 5-bit system using the C and V flag convention of an ARM processor:

a. (-16) + (-16)

b. 14 – (-16)

c. 14-16

d. 15- (-6)

e. 15+ (-6)

f. 14+ (-16)

 

  1. (30 points total, 5 points each) Write the C code to perform the following operations assuming A is a uint16 t variable:

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.