Mercurial > hg > Members > kono > nitros9-code
annotate level2/modules/kernel/ficpt.asm @ 3195:6eb2edad80d8
L2: Introduce symbol KrnBlk to define kernel block number
This is the block number that the kernel is loaded into. This is
platform-specific, a function of the behaviour of the platform MMU/DAT.
CRCs are unaffected by this change.
author | Neal Crook <foofoobedoo@gmail.com> |
---|---|
date | Thu, 01 Jun 2017 22:13:49 +0100 |
parents | 039ddb7c8ad7 |
children |
rev | line source |
---|---|
1145 | 1 ************************************************** |
2 * System Call: F$Icpt | |
3 * | |
4 * Function: Sets the function to be called when a signal arrives. | |
3123
039ddb7c8ad7
l2 kernel: Remove tabs and trailing whitespace, align comments
Neal Crook <foofoobedoo@gmail.com>
parents:
1145
diff
changeset
|
5 * |
1145 | 6 * |
7 * Input: X = Address of intercept routine | |
8 * U = Address of intercept routine data area | |
9 * | |
10 * Output: None | |
11 * | |
12 * Error: CC = C bit set; B = error code | |
13 * | |
14 FIcpt ldx <D.Proc get current process pointer | |
15 ldd R$X,u Get vector for signal trap handler | |
16 IFNE H6309 | |
17 ldw R$U,u Get data area ptr for signal trap handler | |
18 stq P$SigVec,x Save them in descriptor | |
19 ELSE | |
20 std P$SigVec,x | |
21 ldd R$U,u | |
22 std P$SigDat,x | |
23 ENDC | |
24 clrb clear errors | |
25 rts return |