CS 2430 W2017
Due 2/23/2017 @ 11:59pm
Problem #1 (15pts)
Given the following 32-bit numbers, convert them into assembly instructions:
Example: 0x00000000 => sll $0,$0,0
Use your textbook a
TITLE PGM4_1: ECHO PROGRAM
;echoes input character on next line
;display character function
;character is '?'
;input a character
King Saud University
College of Computer and Information Sciences
Department of information technology
1st semester 1430/1431
Sheet # 3
1. Which of the following names are legal in PC assembly language?
(illegal because the period(.)must
As an application of the shift and rotate instruction, lets consider the problem of
reversing the bit pattern in a byte or word. For example, if AL contains 11011100, we
want to make it 00111011. Write the code that reverses th
Visual Studio 2015
How to Create a Windows Console Program
Follow these steps for each program you write:
1. Create a project by clicking FileNewProject (This means: click on File on the
main menu, then click New on the drop-down menu, and finally click P
#Microsoft (R) Macro Assembler Version 5.10
B8 - R
A1 0000 R
TITLE Sample Program
Name Student Code Section
204231: Computer Organization and Architecture
1. Write assembly code for the following decision structure.
IF AX < BX
IF BX < CX
put 0 in AX
put 0 in BX
2. Use a CASE structures to code the fo
;READ CHARACTER INPUT FROM USER
;IF IT IS A DIGIT,THEN IT WILL OUTPUT THE DIGIT N+1 TIMES ON THE NEXT LINE
;IF IT IS NOT, THEN PROGRAM WILL EXIT
1. Describe the following words?
a. Named Constant
b. variables and literal
c. auto keyword
2. What is the difference between char and string literals?
3. Write a program that displays the following pattern on the
This is a group assignment. Group can have 1 or 2 persons.
Write a program to check whether a number is palindrome or not?
(Hint: use % and / operator)
Write a program to print out all Armstrong numbers between 1 and
HOMEWORK Computer Organization and Architecture
Dr. Kamal R Al-Rawi
Q1: Using only MOV, ADD, SUB, INC, DEC, and NEG, translates the following high level language
assignment statements into assembly language. A, B, and C are word variables.
Due: Saturday, November 19th, 2016
CS 3120 - Programming Language Concepts
Investigation, comparison and critique of features in the programming language
Python is an interpreted, object
Assignment 4 (Read Sebesta, chapters 4, 5)
Due : Saturday, November 5th, 2016
1. Sebesta, Chapter 4 Programming Exercise Question #1
Design a state diagram to recognize one form of the comments of the C-based programming languages, those that begin