Mercurial > hg > Members > kono > nitros9-code
view level2/modules/kernel/ficpt.asm @ 3170:18306d646f71
mc09: First release of working L2 port to MC09 platform
Kernel has conditional code so should build for all targets, but it's
been split out into a separate file to avoid polluting the main code.
The included system call source code only has minor conditional
additions so it is shared.
author | Neal Crook <foofoobedoo@gmail.com> |
---|---|
date | Thu, 20 Apr 2017 20:15:19 +0100 |
parents | 039ddb7c8ad7 |
children |
line wrap: on
line source
************************************************** * System Call: F$Icpt * * Function: Sets the function to be called when a signal arrives. * * * Input: X = Address of intercept routine * U = Address of intercept routine data area * * Output: None * * Error: CC = C bit set; B = error code * FIcpt ldx <D.Proc get current process pointer ldd R$X,u Get vector for signal trap handler IFNE H6309 ldw R$U,u Get data area ptr for signal trap handler stq P$SigVec,x Save them in descriptor ELSE std P$SigVec,x ldd R$U,u std P$SigDat,x ENDC clrb clear errors rts return