Если вы используете MARS IDE для написания кода MIPS, вы можете использовать syscall 9 для запроса байтов (аналогично mallo c в C). Это распределение происходит из пространства кучи процесса. Ссылки на системные вызовы MIPS в MARS: здесь .
Вот как вы можете использовать это -
li $a0, 12 # number of bytes to request (12 bytes here)
li $v0, 9 # syscall for performing the request
syscall # issue syscall
# now $v0 contains the *address* of the 12-byte block allocated.
# You would want to remember $v0 somewhere.
sw $t0, ($v0) # E.g usage - store $t0 as 0th int (4 bytes) in the struct
sw $t1, 4($v0) # E.g usage - store $t1 as 1st int (4 bytes) in the struct
sw $t2, 8($v0) # E.g usage - store $t1 as 2nd int (4 bytes) in the struct