V1Questions - Questions, Projects, and Laboratory Exercises...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Questions, Projects, and Laboratory Exercises Beta Draft - Do not distribute © 2001, By Randall Hyde Page 119 Chapter Five Questions, Projects, and Lab Exercises 5.1 Questions 1) List the legal forms of a boolean expression in an HLA IF statement. 2) What data type do you use to declare a a) 32-bit signed integer? b) 16-bit signed integer? c) 8-bit signed integer? 3) List all of the 80x86: a) 8-bit general purpose registers. b) 16-bit general purpose registers. c) 32-bit general purpose registers. 4) Which registers overlap with a) ax? b) bx? c) cx? d) dx? e) si? f) di? g) bp? h) sp? 5) In what register does the condition codes appear? 6) What is the generic syntax of the HLA MOV instruction? 7) What are the legal operand formats for the MOV instruction? 8) What do the following symbols denote in an HLA boolean expression? a) @c b) @nc c) @z d) @nz e) @o f) @no g) @s h) @ns 9) Collectively, what do we call the carry, overflow, zero, and sign flags? 10) What high level language control structures does HLA provide?
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Chapter Five Volume One Page 120 © 2001, By Randall Hyde Beta Draft - Do not distribute 11) What does the nl symbol represent? 12) What routine would you call, that doesn’t require any parameters, to print a new line on the screen? 13) If you wanted to print a nicely-formatted column of 32-bit integer values, what standard library routines could you call to achieve this? 14) The stdin.getc() routine does not allow a parameter. Where does it return the character it reads from the user? 15) When reading an integer value from the user via the stdin.geti X routines, the program will stop with an exception if the user enters a value that is out of range or enters a value that contains illegal characters. How can you trap this error 16) What is the difference between the stdin.ReadLn() and stdin.FlushInput() procedures? 17) Convert the following decimal values to binary: a) 128 b) 4096 c) 256 d) 65536 e) 254 f) 9 g) 1024 h) 15 i) 344 j) 998 k) 255 l) 512 m) 1023 n) 2048 o) 4095 p) 8192 q) 16,384 r) 32,768 s) 6,334 t) 12,334 u) 23,465v) 5,643 w) 464 x) 67 y) 888 18) Convert the following binary values to decimal: a) 1001 1001b) 1001 1101 c) 1100 0011 d) 0000 1001 e)1111 1111 f) 0000 1111 g) 0111 1111h) 1010 0101 i) 0100 0101 j) 0101 1010 k) 1111 0000l) 1011 1101 m) 1100 0010 n) 0111 1110 o) 1110 1111 p) 0001 1000q) 1001 111 1r) 0100 0010 s) 1101 1100 t) 1111 0001 u) 0110 1001v) 0101 1011w) 1011 1001 x) 1110 0110 y) 1001 0111 19) Convert the binary values in problem 2 to hexadecimal. 20) Convert the following hexadecimal values to binary: a) 0ABCD b) 1024 c) 0DEAD d) 0ADD e) 0BEEF f) 8 g) 05AAF h) 0FFFF i) 0ACDB j) 0CDBA k) 0FEBA l) 35 m) 0BA n) 0ABA o) 0BAD p) 0DAB q) 4321 r) 334 s) 45 t) 0E65 u) 0BEAD v) 0ABE w) 0DEAF x) 0DAD y) 9876 Perform the following hex computations (leave the result in hex): 21) 1234 +9876 22) 0FFF - 0F34 23) 100 - 1 24) 0FFE - 1 25) What is the importance of a nibble? 26) How many hexadecimal digits in: a) a byte b) a word c) a double word 27) How many bits in a: a) nibbleb) byte c) word d) double word 28) Which bit (number) is the H.O. bit in a:
Background image of page 2
Questions, Projects, and Laboratory Exercises Beta Draft - Do not distribute © 2001, By Randall Hyde Page 121 a) nibble b) byte c) word d) double word 29) What character do we use as a suffix for hexadecimal numbers? Binary numbers? Decimal numbers?
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/08/2011 for the course CS 101 taught by Professor Jitenderkumarchhabra during the Summer '11 term at National Institute of Technology, Calicut.

Page1 / 16

V1Questions - Questions, Projects, and Laboratory Exercises...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online