Page 1 of 1

TRAP instructions

PostPosted: Sun Jun 28, 2015 11:13 pm
by snim2
Appendix A of the Epiphany Architecture Reference Manual says that trap takes a 5-bit unsigned immediate, but the decode table shows a 6-bit immediate. Does anyone know which of these is correct? Also, where do the return values and error numbers from system calls get stored?

Thanks,

Sarah

Re: TRAP instructions

PostPosted: Thu Jul 23, 2015 4:21 pm
by sebraa
I don't know the syscall interface.
The TRAP instruction uses 6 bits (immediates between 0 and 63; the assembler rejects a TRAP 64 instruction).

Re: TRAP instructions

PostPosted: Thu Jul 23, 2015 4:38 pm
by snim2
OK, many thanks.

Sarah