1: # author : See-See 2: # text segment 3: .text 4: .globl main 5: main: # execution starts here6: la $a0,str # put string address into a0
7: li $v0,4 # system call to print8: syscall # out a string
9: li $v0,10 10: syscall # exit 11: #data segment 12: .data13: str: .asciiz "hello world\n"
1: # author : lijian 2: # date: 2012-01-04 21:00:30 3: # function: use mips output 4: 5: .data 6: # variable declarations here7: msg: .asciiz "\nthis is a message to show!\n" #declared for string
8: inter: .word 168 #declared a interger 9: char: .byte 'a' #declared a character
10: 11: 12: .text 13: main: # indicates start of code 14: 15: # show interger 16: li $v0, 1 # $v0 <= 1 17: lw $a0, inter # $a0 <= inter 18: syscall19: # show string
20: li $v0, 4 # $v0 <= 4 21: la $a0, msg # $a0 <= msg 22: syscall 23: 24: li $v0, 10 #system call code for exit = 10
25: syscall #call operating system to exit 1: # author : lijian 2: # date: 2012-01-04 21:35:31 3: # function: use mips input 4: 5: .data 6: # variable declarations here 7: msg: .space 40 #allocate 40 consecutive bytes,8: msg1: .asciiz "\ninput a integer: " # declared for string
9: msg2: .asciiz "\ninput a string: " # declared for string
10: msg3: .asciiz "\nyou input: " # declared for string
11: .text 12: main: # indicates start of code 13: 14: # input integer 15: li $v0, 4 16: la $a0, msg1 17: syscall 18: li $v0, 5 #read integer 19: syscall 20: move $a1, $v0 21: li $v0, 4 22: la $a0, msg3 23: syscall 24: li $v0, 1 25: move $a0, $a1 26: syscall 27: 28: li $v0, 4 29: la $a0, msg2 30: syscall 31: li $v0, 8 32: la $a0, msg 33: li $a1, 40 34: syscall 35: 36: li $v0, 4 37: la $a0, msg 38: syscall 39: 40: li $v0, 10 #system call code for exit = 10
41: syscall #call operating system to exit 1: # author : lijian 2: # date: 2012-01-04 22:09:55 3: # fuction: use mips to count 4: 5: .data6: newline: .asciiz "\n"
7: line: .asciiz "****************************\n"
8: head: .asciiz " count numbers \n"
9: author: .asciiz " author : lijian \n"
10: version: .asciiz " version: 0.1 \n"
11: first: .asciiz "input the first num: "
12: second: .asciiz "input the second num: "
13: addString: .asciiz " + "
14: subString: .asciiz " - "
15: mulString: .asciiz " * "
16: divString: .asciiz " / "
17: equalString: .asciiz " = "
18: 19: .text 20: main: 21: # show menu 22: li $v0, 4 23: la $a0, line 24: syscall 25: li $v0, 4 26: la $a0, head 27: syscall 28: li $v0, 4 29: la $a0, newline 30: syscall 31: li $v0, 4 32: la $a0, author 33: syscall 34: li $v0, 4 35: la $a0, version 36: syscall 37: li $v0, 4 38: la $a0, line 39: # input first num 40: syscall 41: li $v0, 4 42: la $a0, first 43: syscall 44: li $v0, 5 45: syscall 46: move $s0, $v0 47: # input second num 48: li $v0, 4 49: la $a0, second 50: syscall 51: li $v0, 5 52: syscall 53: move $s1, $v0 54: # show add result 55: li $v0, 1 56: move $a0, $s0 57: syscall 58: li $v0, 4 59: la $a0, addString 60: syscall 61: li $v0, 1 62: move $a0, $s1 63: syscall 64: li $v0, 4 65: la $a0, equalString 66: syscall 67: 68: add $a0, $s0, $s1 69: li $v0, 1 70: syscall 71: li $v0, 4 72: la $a0, newline 73: syscall 74: 75: # show sub result 76: li $v0, 1 77: move $a0, $s0 78: syscall 79: li $v0, 4 80: la $a0, subString 81: syscall 82: li $v0, 1 83: move $a0, $s1 84: syscall 85: li $v0, 4 86: la $a0, equalString 87: syscall 88: 89: sub $a0, $s0, $s1 90: li $v0, 1 91: syscall 92: li $v0, 4 93: la $a0, newline 94: syscall 95: 96: # show mul result 97: li $v0, 1 98: move $a0, $s0 99: syscall 100: li $v0, 4 101: la $a0, mulString 102: syscall 103: li $v0, 1 104: move $a0, $s1 105: syscall 106: li $v0, 4 107: la $a0, equalString 108: syscall 109: 110: mul $a0, $s0, $s1 111: li $v0, 1 112: syscall 113: li $v0, 4 114: la $a0, newline 115: syscall 116: 117: # show div result 118: li $v0, 1 119: move $a0, $s0 120: syscall 121: li $v0, 4 122: la $a0, divString 123: syscall 124: li $v0, 1 125: move $a0, $s1 126: syscall 127: li $v0, 4 128: la $a0, equalString 129: syscall 130: 131: div $a0, $s0, $s1 132: li $v0, 1 133: syscall 134: li $v0, 4 135: la $a0, newline 136: syscall 137: 138: li $v0, 10 #system call code for exit = 10
139: syscall #call operating system to exit 1: # author : lijian 2: # data: 2012-01-04 22:38:01 3: # function: find the max num and count the total 4: 5: .data 6: array: .space 12 #allocate 12 consecutive bytes7: msg1: .asciiz "input the 3 integers(each num end of [enter]): \n"
8: msg2: .asciiz "the max num is: "
9: msg3: .asciiz "the tatal is: "
10: newline: .asciiz "\n"
11: 12: .text 13: main: 14: 15: la $t0, array 16: li $v0, 4 17: la $a0, msg1 18: syscall 19: li $v0, 5 20: syscall 21: sw $v0,($t0) # store the first num 22: li $v0, 5 23: syscall 24: sw $v0,4($t0) # stroe the second num 25: li $v0, 5 26: syscall 27: sw $v0,8($t0) # store the third num 28: 29: lw $s0, ($t0) # get the first num 30: lw $s1, 4($t0) # get the second num 31: lw $s2, 8($t0) # get the third num 32: 33: add $s3, $s0, $s134: add $s4, $s2, $s3 # total stored in $s4
35: li $v0, 4 36: la $a0, msg3 37: syscall 38: li $v0, 1 39: move $a0, $s4 40: syscall 41: li $v0, 4 42: la $a0, newline 43: syscall 44: 45: blt $s0, $s1,num2 46: move $s3, $s0 47: j num3 48: num2: 49: move $s3, $s1 50: num3: 51: bge $s3, $s2, num4 52: move $s3, $s2 53: num4: 54: li $v0, 4 55: la $a0, msg2 56: syscall 57: li $v0, 1 58: move $a0, $s3 59: syscall 60: li $v0, 4 61: la $a0, newline 62: syscall 63: 64: li $v0, 10 #system call code for exit = 10
65: syscall #call operating system to exitwindows7 shell 就是windows7操作系统的的控制台。对于熟悉了命令行的人而言,用键盘调用程序比鼠标更快更省力,您可以用"Shell:"命令调用一切可以用资源管理器打开的项目甚至是一次完成.需要很多步骤才能完成的任务。
以下列出所有Shell的列表:
Windows 7 Only
shell:Libraries
shell:MusicLibrary
shell:VideosLibrary
shell:OtherUsersFolder
shell:Device Metadata Store
shell:PublicSuggestedLocations
shell:DocumentsLibrary
shell:User Pinned
shell:UsersLibrariesFolder
shell:PicturesLibrary
shell:ImplicitAppShortcuts
shell:Ringtones
shell:CommonRingtones
Windows Vista & 7
shell:Common Programs
shell:GameTasks
shell:UserProfiles
shell:MyComputerFolder
shell:SyncSetupFolder
shell:DpapiKeys
shell:SamplePlaylists
shell:Favorites
shell:My Video
shell:SearchHomeFolder
shell:System
shell:CommonVideo
shell:SyncResultsFolder
shell:LocalizedResourcesDir
shell:Cookies
shell:Original Images
shell:CommonMusic
shell:My Pictures
shell:Cache
shell:Downloads
shell:CommonDownloads
shell:AppData
shell:SyncCenterFolder
shell:My Music
shell:ConflictFolder
shell:SavedGames
shell:InternetFolder
shell:Quick Launch
shell:SystemCertificates
shell:Contacts
shell:TreePropertiesFolder
shell:Profile
shell:Start Menu
shell:Common AppData
shell:PhotoAlbums
shell:ConnectionsFolder
shell:Administrative Tools
shell:PrintersFolder
shell:Default Gadgets
shell:ProgramFilesX86
shell:Searches
shell:Common Startup
shell:ControlPanelFolder
shell:SampleVideos
shell:SendTo
shell:ResourceDir
shell:ProgramFiles
shell:CredentialManager
shell:PrintHood
shell:MAPIFolder
shell:CD Burning
shell:AppUpdatesFolder
shell:Common Start Menu
shell:LocalAppDataLow
shell:Templates
shell:Gadgets
shell:Programs
shell:Recent
shell:SampleMusic
shell:Desktop
shell:CommonPictures
shell:RecycleBinFolder
shell:CryptoKeys
shell:Common Templates
shell:Startup
shell:Links
shell:OEM Links
shell:SamplePictures
shell:Common Desktop
shell:NetHood
shell:Games
shell:Common Administrative Tools
shell:NetworkPlacesFolder
shell:SystemX86
shell:History
shell:AddNewProgramsFolder
shell:Playlists
shell:ProgramFilesCommonX86
shell:PublicGameTasks
shell:ChangeRemoveProgramsFolder
shell:Public
shell:Common Documents
shell:CSCFolder
shell:Local AppData
shell:Windows
shell:UsersFilesFolder
shell:ProgramFilesCommon
shell:Fonts
shell:Personal
在网上找了不少东西,有的就是贴了个repo的文件,还是自己整理下,软件源设置好了,才可以快速的安装软件呀!
现在根据我们的国情(china)设置我们的文件,我们用的比较多的就是中科大的源
修改repo文件,总结来说就是注释mirrorlist,添加baseurl,如下是我的:
测试一下:
yum repolist all #列出现在yum server所使用的容器有哪些
如果有问题可以使用清除功能:
yum clean all #所有容器的数据删除
更新一下全系统:
yum -y update #系统整体升级
查看所有的内核
rpm -q kernel #查询存在的内核版本
删除新的内核(应该要重启进入新的内核版本再删吧,呵呵,没有试过当前版本删除!)
rpm -e kernel-2.6.32-71.29.1.el6.i686 #删除你查询到的旧内核,复制粘贴就比较方便了!
插件是个好东西,可以让我们给应用程序扩展功能,很多插件的安装也比较简单,而且可以有插件扩展的程序,功能才可以更加完善。
安装的方法有一些,比如可以在程序中选择相应的功能选项,或者直接下载相应的文件放到对应的文件。如foobar的插件就可以在官网:http://www.foobar2000.org/components/index.html,然后把*.dll文件放到安装目录下的comments文件夹下,重启就可以了。