Service Code in $v0 Arguments Result
print integer
1
$a0 = integer to print
 
print float
2
$f12 = float to print
 
print double
3
$f12 = double to print
 
print string
4
$a0 = address of null
 
read integer
5
  $v0 contains integer read
read float
6
 
$v0 contains float read
read double
7
 
$v0 contains double read
read string
8
$a0 = address of input buffer
 
read string
8
$a1 = maximum number of characters to read
 
sbrk(allocate heap memory)
9
$a0 = number of bytes to allocate
 

'학부과정 > 컴퓨터 구조' 카테고리의 다른 글

MIPS assembly code  (0) 2022.12.21
컴퓨터 구조  (0) 2022.10.11

+ Recent posts