Mercurial > hg > Members > kono > nitros9-code
changeset 2019:51a12746307c
System state debugging somewhat working under Level 1, still issues though.
author | boisy |
---|---|
date | Fri, 10 Mar 2006 03:46:00 +0000 |
parents | 505c8d261ef6 |
children | 9dafc4b4c6dd |
files | 3rdparty/p2mods/noice/noice.asm |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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