Welcome! Log In Create A New Profile

Advanced

Exam 2007 - Q 1(h)

Posted by RC 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
RC
Exam 2007 - Q 1(h)
October 27, 2008 04:52AM
(h) If you assemble a program using NASM, what will be the result of the assembler directive DB 4,5,6,10?

1. Four words will be reserved in memory and the values 0004, 0005, 0006 and 0010 respectively stored in these 4 words.
2. Four words will be reserved in memory and the values 0004h, 0005h, 0006h and 0010h respectively stored in these 4
words.
3. Four bytes will be reserved in memory and the values 4, 5, 6 and 10 respectively stored in these 4 bytes.
4. Four bytes will be reserved in memory and the values 4h, 5h, 6h and 10h respectively stored in these 4 bytes

I would say the answer is option (3) but TUT202 says that the answer is (4)

Any thoughts?
avatar Re: Exam 2007 - Q 1(h)
October 27, 2008 06:43AM
Can't remember exactly where it is - but the h must be there because you are referencing assembler.
avatar Re: Exam 2007 - Q 1(h)
October 27, 2008 06:50AM
Correction - "h" is for hexadecimal value.
avatar Re: Exam 2007 - Q 1(h)
October 27, 2008 08:38AM
I also say 3. It quite clearly says in the tut letter that all values are decimal unless marked hex, and I have also tested it by writing a test program and debugging it and looking at the contents of the registers. The values are definitely treated as decimal and converted when stored in memory.

-Valkeye
Re: Exam 2007 - Q 1(h)
October 27, 2008 09:39AM
I'd also say 3
Sorry, only registered users may post in this forum.

Click here to login