NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

.data

T: .space 1040
TB: .space 864
Suma: .double 0
Skladnik: .double 188.0
LicznikT: .word 129
LicznikTB: .word 108
cza: .double 8.8
czb: .double 0.85
Ulamek: .double 0.85
Numer: .double 19.0
Zero: .double 0.0
; Jeden: .double 1.0


.text
addi r7,r0,1
movi2fp f28,r7
cvti2d f12,f28


addi r1, r0, T
addi r2, r0, TB
addi r5, r0, Suma
lw r3, LicznikT
lw r4, LicznikTB
ld f2, Skladnik
ld f6, czb
ld f8, Numer
ld f10, Zero
ld f22, Ulamek


; T[0]

addd f14, f2, f8
addd f16, f14, f22
sd 0(R1), f16
addi r1, r1, #8

LoopT:

addd f14, f14, f12
sd 0(R1), f14
addi r1, r1, #8
subi r3, r3, #1
bnez r3, LoopT

;koniec pętli1

addi r1, r0, T




addi r1, r0, T
addi r3, r0, 0
ld f20, cza




wypelnianieTB:

ld f2, 0(r1) ;T[i]
ld f4, 8(r1) ;T[i+1]
ld f6, 16(r1) ;T[i+2]
ld f8, 24(r1) ;T[i+3]
ld f10, 32(r1) ;T[i+4]
ld f12, 48(r1) ;T[i+6]
ld f14, 56(r1) ;T[i+7]
ld f16, 64(r1) ;T[i+8]
ld f18, 72(r1) ;T[i+9]

;operacje

addd f24, f2, f4 ;ti + ti+1
multd f28, f20, f24 ;8.8 * (ti + ti+1)
addd f26, f6, f8 ;ti+2 + ti+3
multd f30, f28, f26 ;8.8 * (ti + ti+1) * (ti+2 + ti+3)
addd f26, f22, f18 ;0.85 + ti+9
multd f24, f30, f10 ;gorna czesc ulamka
addd f28, f26, f16 ;kolejny skladnik do mianownika
addd f26, f28, f14 ;kolejny skladnik do mianownika
addd f30, f26, f12 ;kolejny skladnik do mianownika i w ten sposob mianownik

divd f30, f24, f30

addi r3, r3, 1 ;licznik++
addi r1, r1, 8 ;przesuwamy wskaznik na nast element tablicy T

sd 0(r2), f30 ;zapisujemy obliczona wartosc
addi r2, r2, 8 ;przesuwamy wskaznik na nast element tablicy TB
addd f0, f0, f30 ;suma = suma + TB[i]
seqi r5, r3, 108 ;warunek
beqz r5, wypelnianieTB ;sprawdzanie wyjscia


addi r1, r0, Suma ;zapis do zmiennej Suma
sd (r1), f0

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.