# HG changeset patch # User boisy # Date 1141962360 0 # Node ID 51a12746307ce1fade356a1bd5e6b6389b523655 # Parent 505c8d261ef6369db077df0dcf7ac28b0e1b1cdf System state debugging somewhat working under Level 1, still issues though. diff -r 505c8d261ef6 -r 51a12746307c 3rdparty/p2mods/noice/noice.asm --- a/3rdparty/p2mods/noice/noice.asm Wed Mar 08 01:58:50 2006 +0000 +++ b/3rdparty/p2mods/noice/noice.asm Fri Mar 10 03:46:00 2006 +0000 @@ -172,12 +172,17 @@ lda #$01 * Interesting trick here... I cannot see where the kernel stores the stack * register when processing a system call in system state. I observed that -* the actual value of S was $15 bytes from where S is when entering the +* the actual value of S was some constant from where S is when entering the * system call. We'll see how this holds up during system state debugging, * and whether changes to the kernel will affect this offset. - leas $15,s + IFEQ Level-1 +stackoff equ $12 + ELSE +stackoff equ $15 + ENDC + leas stackoff,s sts syssp,u - leas -$15,s + leas -stackoff,s usernext sta ssflag,u * If this is a breakpoint (state = 1) then back up PC to point at SWI2