所以我的問題是如何解決這個錯誤。這是我的程序結構嗎?或者我如何使用這些寄存器? #JTWILKI - Just The Way I Like It Cooking Assistant
# Created By: Samuel Buzas
#For CS2028 Sect.002
.data
preface: .asciiz "Place you Steak in the oven,
我正在處理排序整數數組的排序程序,爲此我將用戶輸入的數組複製到要變異的新數組中。但是,我不確定我是否正確地做了。 .globl main
.data
input: .asciiz "Enter the size of the array: \n"
entries: .asciiz "Enter the elements of the array, one line at a time:
我在Mars MIPS Simulator中編寫了一個程序,查找所有質數達到65,025,然後以Ulam Spiral的形式在256x256位圖顯示中創建像素點像素表示。 我的程序的data段看起來是這樣的: display: .word 0:65536 # allocates a memory address for each pixel, and initialises each to 0
我正在編寫一個程序,詢問用戶他們有哪個溫度,然後接受該輸入並轉換並輸出所有四種溫度。我需要幫助讓我的用戶輸入讀入,以便它可以在我的分支beq中工作。我無法讓它識別輸入'f'等於存儲的版本。 .data
temptype: .asciiz "Enter temperature type i.e. f, c, k, r: "
tempdegree: .asciiz "\n Enter degre
我試圖執行一個非常簡單的程序,但我不斷收到錯誤:Invalid language element lw $t0, 0($a0) #load integer from $a0->$t0
beq $t0, 1, 1dimensional #branch if $t0=1
1dimensional:
do something
我無法理解爲什麼我收到錯誤。