assign3 - Assignment #3 Fall 2011 SYSC-3006 Computer...

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

View Full Document Right Arrow Icon
Assignment #3 Fall 2011 SYSC-3006 Computer Organization Department of Systems and Computer Engineering Due Date: October 19 th @ 7:00 PM (electronic submission) You must submit the files identified below using the electronic Submit application . The submission process will be cancelled at the deadline. No assignments will be accepted via email or on disk. Part I : Exercises in Control Flow and Basic Programming 1. Arithmetic programming and Control Flow (assign31.asm, .exe): Build a program that finds and displays the first 10 NEGATIVE ODD NUMBERS (i.e., -1, -3, -5, -7, - 9...). You must do it in 2 different ways (both should be in the same program, one after the other): a) Using the MUL (and addition/subtraction) instructions. b) Using boolean and shift operations. The numbers must be printed in decimal . To print a character, you can use the following code: ; this uses DOS function 2 (of INT 21H support) to ; output the character in the DL reg mov ah, 2 ; DOS function 2 int 21H ; display character in DL
Background image of page 1

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

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

This note was uploaded on 01/18/2012 for the course SYSC SYSC3006 taught by Professor G.wainer during the Fall '11 term at Carleton CA.

Page1 / 2

assign3 - Assignment #3 Fall 2011 SYSC-3006 Computer...

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

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