Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

hamzamac@live.com http://issuu.

com/hamzamac

College Of Informatics and Virtual Education

NAME: Makame, Makame H PROGRAM: B Sc. Computer and Information Security COURSE NAME: Computer Architecture and Organization COURSE CODE: CN 200 PART: Marie

Problem Descriptions: This program allows an input for number to be guessed and then provide a player with three guesses which display 0 for a loose a 1 for a win, Requirements and Constraints: One player should be able to enter a number to be guessed Another player should be provided with only three guesses The program should display 1 for a win and 0 for a lose The program should display 0 if a player finishes all three guesses without a win

Thursday, March 01, 2012

hamzamac@live.com http://issuu.com/hamzamac

PROGRAM MAP
----------------Symbol | Location -------+--------a | 013 cnt | 006 count | 015 imp | 000 lose | 00F one | 014 win | 00C x | 012 zero | 016

Assembly listing for: game.mas Assembled: Sun Sep 04 02:29:13 EAT 2011 000 001 002 003 004 005 006 007 008 009 00A 00B 5000 2013 4012 8400 9006 900C 1015 4014 2015 8400 9000 900F | | | | | | | | | | | | | | | | | | | | | | | | | | | imp INPUT STORE a SUBT x SKIPCOND 400 JUMP cnt JUMP win LOAD count SUBT one STORE count SKIPCOND 400 JUMP imp JUMP lose LOAD one OUTPUT HALT LOAD zero OUTPUT HALT DEC DEC DEC DEC DEC 07 00 01 03 00

cnt

00C 1014 00D 6000 00E 7000 00F 1016 010 6000 011 7000 012 013 014 015 016 0007 0000 0001 0003 0000

win

lose

x a one count zero

Assembly successful.

Thursday, March 01, 2012

hamzamac@live.com http://issuu.com/hamzamac

SYMBOL TABLE -------------------------------------------------Symbol | Defined | References --------+---------+------------------------------a | 013 | 001 cnt | 006 | 004 count | 015 | 006, 008 imp | 000 | 00A lose | 00F | 00B one | 014 | 007, 00C win | 00C | 005 x | 012 | 002 zero | 016 | 00F -------------------------------------------------_

Thursday, March 01, 2012

You might also like