עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

לא עובד -תכנית בMIPS

Featured Replies

פורסם

עשיתי את התכנית הבאה:


.data
iInt: .word 0
jInt: .word 0
kArray: .space 10

str: .asciiz " "

.text
main:

li $s0, 3
lw $s1, iInt
lw $s2, jInt
la $s5, kArray


li $s6, 1
li $s7, 10



Loop: slt $s6, $s1, $s7
beq $s6, $zero, print


mult $s1, $s0
mflo $t1
add $s2, $s2, $t1


li $v0, 1
move $a0, $s2
syscall


add $t2, $s1, $s1
add $t2, $t2, $t2
add $t3, $t2, $s5


sw $s2, 0($t3)


li $v0,4
la $a0,str
syscall



addi $s1, $s1, 1
j Loop


print:

li $s1, 0

LoopPrint: slt $s6, $s1, $s7
beq $s6, $zero, Exit


add $t2, $s1, $s1
add $t2, $t2, $t2
add $t3, $t2, $s5


lw $t0,0($t3)


li $v0, 1
move $a0, $t0
syscall



li $v0,4
la $a0,str
syscall


addi $s1, $s1, 1
j LoopPrint

Exit:
li $v0, 10
syscall # יציאה מהתוכנית

בלולאה השניה אני מדפיסה את איברי המרך כדי לראות שאכן הכנסתי את הערכים הנכונים :)

הבעיה היא שמלבד שתי הפעמים הראשונות בלולאה הראשונה , התכנית לא מדפיסה לי את הSTR .

למה? ואיך?

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.