Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Computing + ARM Questions

  • 18-10-2015 10:56PM
    #1
    Registered Users, Registered Users 2 Posts: 476 ✭✭


    hi, I am stuck on whether my answers for these are right/wrong and am looking for guidance.

    1) How many unique values can be represented using a binary numeral system with: (i) 6 bits
    is this just 6^2 or is it 6^2 -1?

    2) If one hundred integers are stored consecutively in memory beginning at address 0x2000 (200016) and if each integer requires one word of storage, what will be the address of the word containing the 22nd integer?
    Right so i get that each integer will be 4 bytes, so the 22 integer will finish at 88 bytes in or 0x2088 and start at 0x2085? I remember hearing there is something to do with hexadecimal here.

    3) Assuming the ARM architecture definition of the word and halfword units of storage, calculate:
    (i) the number of unique values that can be stored in a halfword
    (ii) the range of non-negative integers that can be stored in a halfword
    (iii) the number of unique values that can be stored in a word
    (iv) the range of non-negative integers that can be stored in a word

    so is it:-
    i) 16^2
    ii)0-15
    iii) 32^2
    iv) 0-15

    and q7 attached as a photo which I am completely clueless on how to do.Thank you


Comments

  • Registered Users, Registered Users 2 Posts: 36,095 ✭✭✭✭ED E


    Hey boards, do my homework for me!


  • Registered Users, Registered Users 2 Posts: 476 ✭✭RoRo979


    ED E wrote: »
    do my homework for me!

    I have already put up the answers I think they are. These are concepts I want to grasp properly.


  • Registered Users, Registered Users 2 Posts: 1,929 ✭✭✭PrzemoF


    1. How many unique values can be represented using a decimal numeral system with: (i) 1 digit?
    9 is the max number, but zero counts as well, so 10

    2. 22 x 4 is 88, but you're mixing nicely hex with dec. 0x58 = 88 in decimal 5 x 16 + 8 = 88

    3i and 3iii - it's the same question as 1. provided that you know the length of halfword/word

    3ii and 3 iv - number of unique values = range of negative values + 0 + range of positive values. One bit is for the sign..

    7 Writing assembler when you're not sure about binary/dec/hex stuff might be interesting..


Advertisement