# HG changeset patch # User boisy # Date 1063979872 0 # Node ID 146dfa918a9c1a364b86abae573caa0e920277be # Parent 2b0af03a79152ac7ac0fc4bec7bc29a769e01aa3 Added comments diff -r 2b0af03a7915 -r 146dfa918a9c level2/modules/cc3io.asm --- a/level2/modules/cc3io.asm Thu Sep 18 12:38:15 2003 +0000 +++ b/level2/modules/cc3io.asm Fri Sep 19 13:57:52 2003 +0000 @@ -97,13 +97,20 @@ ldx ,x get entry pointer at ,X jmp $03,x call term routine in sub module -* Device initialization routine -* Entry: U=Static mem ptr for device to initialize -* Y=Path dsc. ptr -* DP=0 (or we're in trouble) +* Init +* +* Entry: +* Y = address of device descriptor +* U = address of device memory area +* +* Exit: +* CC = carry set on error +* B = error code +* Init ldx CC3Irq,pcr set up AltIRQ vector in DP stx shftclr,pcr point to SHIFT-CLEAR subroutine @@ -164,11 +171,15 @@ jsr ,y call init routine of sub module puls u,y,x,b,a restore saved regs std L01DC,pcr decode table +L00C5 ldx L01DC,pcr decode table lda b,x - bmi L00F6 if regA = $81 - $84, special key + bmi L00F6 if regA = $81 - $84, special key * several entries to this routine from any key press; regA is already ASCII -L00E0 ldb