Computer Organization and Architecture (CS 2619) - Conditional Jump
14 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the purpose of the machine problem stated in the exercise?

  • To convert a lowercase letter to uppercase and vice versa (correct)
  • To convert a number to its ASCII equivalent
  • To display the ASCII table
  • To ask the user to enter a number
  • What is the total score of the bonus exercise?

  • 30 points (correct)
  • 20 points
  • 35 points
  • 25 points
  • What is the deadline for the submission of the bonus exercise?

  • Right before the start of Quiz 5
  • Right before the start of Quiz 3
  • Right before the start of Quiz 4 (correct)
  • Right before the start of Quiz 6
  • What is required in the front page of the answer sheet?

    <p>Source code and sample runs</p> Signup and view all the answers

    What is required to be handwritten in the answer sheet?

    <p>The algorithm/pseudocode</p> Signup and view all the answers

    What is the consequence of submitting identical/similar answers or answers copied from other sources?

    <p>Score = 0</p> Signup and view all the answers

    What is the purpose of the 'cmp al,'A'' instruction?

    <p>To check if the entered character is an uppercase letter</p> Signup and view all the answers

    What is the function of the 'int 21h' instruction?

    <p>To terminate the program</p> Signup and view all the answers

    What is the purpose of the 'lea dx,upper' instruction?

    <p>To load the address of the 'upper' string into the DX register</p> Signup and view all the answers

    What is the function of the 'call show' instruction?

    <p>To display a message on the screen</p> Signup and view all the answers

    What is the condition for the 'jb low' instruction to be executed?

    <p>If the entered character is less than 'A'</p> Signup and view all the answers

    What is the purpose of the 'mov ax,@data' instruction?

    <p>To initialize the data segment</p> Signup and view all the answers

    What is the function of the 'ret' instruction?

    <p>To return control to the calling procedure</p> Signup and view all the answers

    What is the purpose of the 'mov dx,offset prompt' instruction?

    <p>To load the address of the 'prompt' string into the DX register</p> Signup and view all the answers

    Study Notes

    Instructions for Bonus Exercise

    • The exercise is on Conditional Jump/INT 21H.
    • Use a single long size bond paper (8.5” x 13”) for the answer sheet.
    • Only use blue/black ball pen for handwritten solutions.
    • Use liquid eraser/correction tape for erasures.
    • Present solutions clearly and neatly to avoid penalties.
    • No identical or similar answers or answers copied from other sources will be accepted.

    Machine Problem Requirements

    • Write an 8088-assembly language program that asks the user to enter a letter.
    • If the entered letter is in lowercase, the program will convert it to uppercase (vice versa) and display the converted letter.
    • The program will also display the next 5 characters of the given letter (based on the ASCII table).
    • The program must execute again if the user wants to continue.

    Submission Requirements

    • Submit an algorithm/pseudocode (handwritten).
    • Include source code with comments (computerized, compressed).
    • Provide screenshots of sample runs.

    Answer Sheet Format

    • Use a single long size bond paper (8.5” x 13”) in portrait orientation.
    • Front page contains the source code and sample run.
    • Back page contains the algorithm.

    Sample Code

    • The sample code determines if the entered character is a letter, digit, or special character.
    • It uses conditional jump instructions.

    Source Code Explanation

    • The source code uses model small and a stack size of 100h.
    • It defines data for prompts, uppercase, lowercase, digit, and special character messages.
    • The code section starts with initializing the data segment and displaying a prompt to enter a character.
    • It then requests input, checks the character type, and displays the corresponding message.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Related Documents

    Description

    A bonus exercise on conditional jump and INT 21H in computer organization and architecture, covering concepts and solutions for CS 2619 students.

    More Like This

    Computer Architecture Quiz
    5 questions
    Computer Architecture Quiz
    28 questions
    Computer Architecture Quiz
    7 questions

    Computer Architecture Quiz

    InvulnerableGold2463 avatar
    InvulnerableGold2463
    Use Quizgecko on...
    Browser
    Browser