CS310 Introduction to Computer Systems, Fall 2017


  • Syllabus 
  • Course Policies
  • Code in classroom (click here)
  • Assignments. Requirements - Type BOTH of questions and answers (that should be highlighted) to the document in a fine format (handwriting is NOT accepted); for the programming assignments, proper comments and format for the code and its detailed I/O examples (screen-copies); BOTH of the programs and the I/O (for file I/O, only the output file) copied to ONE document (including all sub-questions and projects). The document should be named as CS310assignment#_FirstNameLastName.doc. Email the document as an attachment to the instructor (usvwccs@gmail.com). The email subject is the same as the file name. 
    • Assignment 1 (1pm, Thu. 9/7) a) Convert each of following binary numbers to its equivalent hex number: 101011, 10101010. b) Convert each of following hex numbers to its equivalent binary number: 1F, 11. AAA, 101. c) What is the decimal representation of each of the following unsigned binary numbers: 0010 1011, 1010 1010? d) Perform the binary addition in byte: 0010 1011 + 1010 1010 = ? e) What is the 8-bit binary representation of each of the following unsigned decimal numbers: 15, 51?
    • Assignment 2 (1pm, Tu. 9/12) a) What is the decimal representation of each of the following signed binary numbers in byte: 0010 1010, 1010 1010? b) What is the 8-bit binary representation of each of the following signed decimal numbers: -15, 100. c) Perform the binary subtraction in byte: 00101011 - 10101010 = ? 10101010 - 01101011 = ?. d) Perform the following hex operation in byte: 11 + 1F = ? 11 - 1F = ?  e) What is the 8-bit hex form of decimal -30? What is the 16-bit hex form of decimal -30?
    • Assignment 3 (1pm, Th. 9/14) a) What is the decimal representation of each of the following signed hex-decimal numbers: 22, F2? b) What is the 8-bit hexdecimal  representation of each of the following signed decimal numbers: -22, 22? d) Perform the following hex operation in byte: F2 - 22 = ? 22 - F2 = ? 
    • Assignment 4 (1pm, Tu. 9/19) a) Convert the relative address 0DC7:ABCD (in real address mode) to a linear address. b) Calculate the size in KB or MB of the memory space whose linear address is from B0000 to BFFFF. Show the calculation process. c) The same question as b) that is from A0000 to BFFFF.
    • Assignment 5 (1pm, Th. 9/21) For each of the following ASM code segments, show the result in hex for AL and other flags by filling the blanks.
      a) 
           MOV AL, 0FEh
         ADD AL, 9

         AL: ____ CF: ____ SF: ____ ZF: ____ OF: ____

      b) 
            MOV AL, 9
         SUB AL, 0Ah

         AL: ____ CF: ____ SF: ____ ZF: ____ OF: ____
    • Assignment 6 to be updated.
    •  
  • Topics covered  
    • 8/29 Syllabus and class policy. Bit, byte and word
    • 8/31 Binary and hex. Binary addition; binary to decimal 
    • 9/5 Decimal to binary; signed binary and subtraction; two's complement
    • 9/7 More on binary/hex
    • 9/12 Architectures. Convert relative address to linear address. Real mode 
    • 9/14 More on architectures. Linear addresses and its size of the space
    • 9/19 Flags
    • 9/21 More on flags
    • 9/26 Test 1A
    • 9/28 Stacks 
    •  
 

Since 2000, Dr. John Wang, Virginia Wesleyan University, 5817 Wesleyan Drive, Virginia Beach, VA 23455 
Updated on Tuesday, September 19, 2017 by
zwang@vwu.edu
 
http://zwang.vwc.edu/~jwang/ThreeTen