Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Computing + ARM Questions

  • 18-10-2015 9: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,170 ✭✭✭✭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,931 ✭✭✭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