Beruflich Dokumente
Kultur Dokumente
Submitted by:
Submitted to :
Prof. Isaac Morallo
May 2019
Lyceum of the Philippines University – Laguna
Makiling, Calamba City
TABLE OF CONTENTS
I. ABSTRACT
II. ACKNOWLEDGEMENT
III. INTRODUCTION
IV. OBJECTIVES
a. General Objective
The general objective of this research is to create a factorial
calculator in assembly language embedded in Java program.
b. Specific Objective
The study specifically aims to:
Create a factorial program in assembly using functions in
C++
V. SYSTEM ARCHITECTURE
VI. ALGORITHM/FLOWCHART
VII. SCREEN OUTPUT
VIII. PROGRAM CODES
IX. SCOPE AND LIMITATION
X. CONCLUSION AND RECOMMENDATIONS
XI. REFERENCES/APPENDICES
Lyceum of the Philippines University – Laguna
Makiling, Calamba City
I Abstract
Year: 2019
program by putting some codes to run the program, we further investigate and
analyze the problem if the output in the program will shows a negative process,
II. Acknowledgement
We offer our regards and blessings to all those who supported us during the
completion of the projects.
We also would also like to thank the Lyceum College Students of Lyceum of the
Philippines for their cooperation and participation .
To all the people who had their participation in this research paper, We are very
thankful to all of you.
Lyceum of the Philippines University – Laguna
Makiling, Calamba City
III Introduction
We all know the game of the rock papers and scissors is on the program, it run
by using and putting some codes to program it, it can use by program like C++,
java or python, we can use assembly language to run the game, we can use
tasm for know and to see how it works by using assembly language and
assembly codes, we all know the assembly language is a low-level
programming language for microprocessors and other programmable devices. It
is not just a single language, but rather a group of languages. An assembly
language implements a symbolic representation of the machine code needed to
program a given CPU architecture.
IV Objectives
A) General objectives:
The general objectives of this research is to create a game of the rock
papers and scissors using assembly language language , we can use tasm to
run the program.
B) Specific objectives
The study specifically aims to:
Create a game of rock papers and scissors in assembly
Run it to tasm
V. System Architecture
Algorithm:
Flowchart
Lyceum of the Philippines University – Laguna
Makiling, Calamba City
Lyceum of the Philippines University – Laguna
Makiling, Calamba City
In the picture it shows the game, when you pick 1(rock) and your opponent pick
2(paper) your opponent is the winner because paper can destroy a rock, second
try, if you pic 2(paper) and your opponent pick number 3(scissors) your
opponent is the winner because scissors can destroy a paper, third try, if you
pick 1(rock) and your opponent pick 3 you are the winner because rock can
destroy a scissors, final round, if you pick 3 ( scissors) and your opponent pick
3( scissors) it will be same pick, and the game will try again because it the same
number.
DOSSEG
.model SMALL
.stack 100h
.data
CR db 13,10,'$'
MSG db 'GAME Instruction: Rock=1, Paper= 2, Scissors= 3, $', 0
PL1 db 'Player 1: $', 0
PL2 db 'Player 2: $', 0
PL1_Win db 'Player 1 is the winner! $', 0
PL2_Win db 'Player 2 is the winner! $', 0
PLEQ db 'Player 1 and 2 = same pick! Try again $', 0
.code
Lyceum of the Philippines University – Laguna
Makiling, Calamba City
CMP BL, BH
JE EQUAL
;=======================================
CMP BL, '1'
JE EQ1
CMP BL, '2'
JE EQ2
CMP BL, '3'
JE EQ3
EQ1:
CMP BH, '2'
JE P2_Win
CMP BH, '3'
JE P1_Win
EQ2:
CMP BH, '1'
JE P1_Win
CMP BH, '3'
JE P2_Win
EQ3:
CMP BH, '1'
JE P2_Win
CMP BH, '2'
JE P1_Win
;=======================================
Final:
MOV AH,4Ch ; Function to exit
MOV AL,00 ; Return 00
INT 21h
end BEGIN
This study will focus on the research output in programming. Because it shows
how to program like using assembly language, and we use tasm application and
notepad c++ for input the code their
After we run the program, we just noticed its hard in start when putting some
codes and we use to analyze how it will run easily, we can use assembly
language to run the program because it can easily to compile the program in
tasm
XI. References/appendices
https://www.techopedia.com/definition/3903/assembly-language
https://www.tutorialspoint.com/assembly_programming/assembly_introduction.ht
m
https://github.com/mehdibz/rock-paper-scissors