.data
msg: .asciiz "Podaj dlugosc ciagu liczb\n"
msg1: .asciiz "Podaj liczby"
a: .asciiz "a"
s: .asciiz " "
arrayz: .word 1:25
.text
main:
li $v0, 4
la $a0, msg
syscall
li $v0, 5
syscall
move $t0, $v0
la $t3, arrayz
move $t6, $t3
j inputt
end:
li $v0, 10
inputt:
li $t1, 0
li $t7, 0 # t7 licznik liczb != 0
input:
beq $t1, $t0, output
li $v0, 5
syscall
move $t4, $v0
sw $t4, ($t3)
addi $t3, $t3, 4
addi $t1, $t1, 1
j input
output:
move $t3, $t6
li $t5, 0
outputt:
beq $t5, $t0, end
li $v0, 1
lw $a0, ($t3)
syscall
addi $t3, $t3, 4
addi $t5, $t5, 1
j outputt
end:
li $v0, 10
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}