Drucken Sie ein Schwimmer nach Multiplikation in MIPS

.data
    time:       .float 310.4, 390.8
    miles:      .float 12.0, 96.2

.text  
    li $t0, 3           #terminating value
    li $t1, 4           #byte shifting 
    li $t2, 1           #i increments by 1  
    la $a1, time        # put address of time into $a1
    la $a2, miles       # put address of miles into $a2     
    l.s $f1, ($a1)
    l.s $f2, ($a2)

    mul.s $f3, $f1, $f2

    li $v0, 2           
    l.s $f12, __  <------- here????         
    syscall

wie kann ich drucken Sie die f3-Taste? Das ist langsam frustrierend. Ich kann print $a1 und $a2 und verschieben Sie Sie, aber ich muss multiplizieren einige zahlen und ausdrucken.... danke!

  • Verwendung: mov.s $f12, $f3 wo Sie sich setzen '.... hier'
  • danke, ich sah die andere
InformationsquelleAutor DDukesterman | 2013-04-01
Schreibe einen Kommentar