0% found this document useful (0 votes)
86 views1 page

Tabela Syscall

The document describes different system calls for input/output in a programming language. It lists the system call codes and arguments required for integer, float, double, and string printing and reading. It also notes the results returned by the reading system calls to store values into registers.

Uploaded by

Crisley Linhares
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
86 views1 page

Tabela Syscall

The document describes different system calls for input/output in a programming language. It lists the system call codes and arguments required for integer, float, double, and string printing and reading. It also notes the results returned by the reading system calls to store values into registers.

Uploaded by

Crisley Linhares
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Service print integer print float print double print string read integer read float read double

read string

System Call Code 1 2 3 4 5 6 7 8

Arguments $a0 = value $f12 = float value $f12 = double value $a0 = address of string (none) (none) (none)

Result (none) (none) (none) (none) $v0 = value read $f0 = value read $f0 = value read

$a0 = address where string to be stored (none) $a1 = number of characters to read + 1 $a0 = number of bytes of storage $v0 = address of desired block (none) (none)

memory allocation exit (end of program)

9 10

Servio Imprime inteiro Imprime float Imprime double Imprime String L inteiro L float L double Sair

$v0 1 2 3 4 5 6 7 10

Argumentos $a0 = Inteiro a imprimir $f12 = float a imprimir $f12 = double a imprimir $a0 = Endereo da string

Resultado

$v0 contem o valor inteiro lido $f0 contem o valor float lido $f0 contem o valor double lido Finaliza a execuo

You might also like