NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

.data


lT: .word 130
lTB: .word 105

suma: .space 8

ulamek: .double 0.55
skladnik: .double 155
numer: .double 11
jedynka: .double 1.0
stala: .double 5.2


T: .space 1040
TB: .space 872




.text

ld f2, ulamek
ld f6, skladnik
ld f8, numer
ld f10, jedynka
ld f16, stala
ld f30, suma


addi r3, r0, #0 ;taki zerowy rejestr pomocniczy
addi r1, r0, T ;zaladowanie adresu T[0] do r1
addi r2, r0, TB ;zaladowanie adresu TB[0] do r2



lw r5, lT ;licznik petli T
lw r6, lTB ;licznik petli TB




;liczenie pierwszego elemtu T (skladnik+numer+ulamek)
ulamkowa:
addi r3, r0, #1 ;zmiana rejestru r3, zeby nie wejsc wiecej w petle 'ulamkowa';
addd f12, f6, f8
addd f12, f12, f2
beqz r3, ulamkowa

skocz:

sd 0(r1), f12
addd f12, f12, f10 ;zwiekszenie ulamek+skladnik+numer o 1
addi r1, r1, #8

subi r5, r5, #1 ;dekrementacja licznika
bnez r5, skocz



addi r1, r0, T
addi r3, r0, suma
;petla do uzupelniania tablicy TB



skocz1:
ld f2, 0(r1)
ld f4, 8(r1)
ld f6, 16(r1)
ld f8, 24(r1)
ld f10, 32(r1)
ld f12, 40(r1)

multd f14, f2, f4 ; t[i] * t[i+1]
multd f18, f14, f16 ; t[i] * t[i+1] * stala

addd f20, f6, f8
addd f22, f20, f10 ; t[i+2] +t[i+3]+t[i+4] zrealizowane

subd f24, f18, f22 ; odejmowanie
divd f26, f24, f12 ; odejmowanie/t[i+5]

addd f30, f30, f26
sd 0(r2), f26
addi r2, r2, #8
addi r1, r1, #8

subi r6, r6, #1
bnez r6, skocz1

addi r3, r0, suma
sd 0(r3), f30

trap 0
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.