Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
[Asm] Nhap So Va Xuat Theo Thu Tu Nguoc Lai

[Asm] Nhap So Va Xuat Theo Thu Tu Nguoc Lai

Ratings: (0)|Views: 129|Likes:
Published by huahongquan2007

More info:

Published by: huahongquan2007 on Apr 11, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

04/11/2011

pdf

text

original

 
F:\My ASM CODE\[ASM] NHAP SO VA XUAT THEO THU TU NGUOC LAI.asm Monday, April 11, 2011 10:51 PM
# NHAP SO VA XUAT RA THEO THU TU NGUOC LAI# BT1 _ PROJECT HOP NGU TUAN6# AUTHOR
:
huahongquan2007##FORSOURCE CODE
&
MORE INFORMATION VISIT
:
itspiritclub.net################################################################################################.dataprompt1
:
.asciiz" HAY NHAP N \n"prompt2
:
.asciiz" HAY NHAP CAC SO \n"
.text
main
:
la $a0
,
prompt1 # Load address promptaddi $v0
,
$0
,
4# PRINT STRING1
syscall
addi $v0
,
$0
,
5# NHAP N
syscalladd
$s0
,
$v0
,
$0 # LUU N vao $s0la $a0
,
prompt2 # Load address promptaddi $v0
,
$0
,
4# PRINT STRING2
syscall
jal nhap_xuataddi $v0
,
$0
,
10#Exit
syscall
nhap_xuat
:
addi $sp
,
$sp
,-
8# TAO CHO CHUA TRONG STACKsw $ra
,
0
(
$sp
)
addi $v0
,
$0
,
5# NHAP VAO SO CAN XUAT
syscall
addi $s0
,
$s0
, -
1# GIAM N
DI
1sw $v0
,
4
(
$sp
)
beqz $s0
,
exit_loop # NEU MA s0
=
0thi ket thuc lapjal nhap_xuatexit_loop
:
lw $a0
,
4
(
$sp
)
# PRINT INTEGERaddi $v0
,
$0
,
1
syscall
-1-

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->