# HG changeset patch # User boisy # Date 1142309371 0 # Node ID dbaeafb565352a5ba7c621fc86e544274bc92033 # Parent 1b7bc08e2e2578f00a04d136d95efbb9298a71ca Added comments and renamed some labels diff -r 1b7bc08e2e25 -r dbaeafb56535 level1/modules/kernel/krn.asm --- a/level1/modules/kernel/krn.asm Tue Mar 14 04:08:56 2006 +0000 +++ b/level1/modules/kernel/krn.asm Tue Mar 14 04:09:31 2006 +0000 @@ -251,11 +251,11 @@ leax >SysSvc,pcr stx Poll,pcr - stx Clock,pcr - stx Poll,pcr point to default poll routine + stx Clock,pcr get default clock routine + stx SysTbl,pcr @@ -308,13 +308,17 @@ stx 3,s put in PC on stack puls pc,x,b -UsrIRQ leay D.Poll] - bcc L01BD - ldb ,s - orb #$10 - stb ,s -L01BD lbra L0255 +DoIRQPoll + jsr [>D.Poll] call vectored polling routine + bcc L01BD branch if carry clear + ldb ,s get the CC on the stack + orb #IRQMask mask IRQs + stb ,s and save it back +L01BD lbra ActivateProc + + SysIRQ clra - tfr a,dp - jsr [>D.Poll] - bcc L01CF - ldb ,s - orb #$10 - stb ,s + tfr a,dp make DP be 0 + jsr [>D.Poll] call the vectored IRQ polling routine + bcc L01CF branch if carry is clear + ldb ,s get the CC on the stack + orb #IRQMask mask IRQs + stb ,s and save it back L01CF rti + Poll comb rts * Default clock routine - executed 60 times/sec -Clock ldx L0255,pcr +L0212 leay >ActivateProc,pcr bra URtoSs @@ -408,14 +416,18 @@ use faproc.asm * User-State system call entry point -UsrSvc leay