TRAP instructions

TRAP instructions

Postby snim2 » Sun Jun 28, 2015 11:13 pm

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
snim2
 
Posts: 53
Joined: Mon Feb 03, 2014 5:02 pm

Re: TRAP instructions

Postby sebraa » Thu Jul 23, 2015 4:21 pm

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).
sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

Re: TRAP instructions

Postby snim2 » Thu Jul 23, 2015 4:38 pm

OK, many thanks.

Sarah
snim2
 
Posts: 53
Joined: Mon Feb 03, 2014 5:02 pm


Return to Assembly

Who is online

Users browsing this forum: No registered users and 4 guests

cron