# HG changeset patch # User boisy # Date 1061148601 0 # Node ID 1aae5bde55a0b60da62f4fb87320ba3fa4f87900 # Parent b6969b0ae23d40421f6f2a451e9cf6d620a13f86 Fixed bugs as per Rodney's suggestion diff -r b6969b0ae23d -r 1aae5bde55a0 level2/modules/kernel/ffreehb.asm --- a/level2/modules/kernel/ffreehb.asm Sun Aug 17 16:33:10 2003 +0000 +++ b/level2/modules/kernel/ffreehb.asm Sun Aug 17 19:30:01 2003 +0000 @@ -14,7 +14,7 @@ ldd #$FFFF -1' L0A56 pshs d -* Move to next block - SHOULD OPTOMIZE WITH W +* Move to next block - SHOULD OPTIMIZE WITH W L0A58 clra # free blocks found so far=0 ldb 2,s Get block # addb ,s Add block increment (point to next block) @@ -42,6 +42,7 @@ puls d,x,pc Restore reg, error code & return * F$FreeLB entry point (WHERE DOES THIS EVER GET CALLED FROM???) +* Rodney says: "it's called via os9p1 syscall vector in line 393" FSFreeLB ldb R$B,u Get block count ldy R$Y,u Get ptr to DAT Image bsr L0A4B Go find block #'s @@ -56,7 +57,7 @@ negb Negate so it is a positive # again bra L0A56 Go into main find loop -* F$FreLB entry point +* F$FreeLB entry point FFreeLB ldd R$D,u ldx R$X,u ldu R$U,u @@ -66,6 +67,7 @@ leay a,y IFNE H6309 clra +* Rodney claims this is a bug... lslb tfr d,w tfm u+,y+ diff -r b6969b0ae23d -r 1aae5bde55a0 level2/modules/kernel/fsleep.asm --- a/level2/modules/kernel/fsleep.asm Sun Aug 17 16:33:10 2003 +0000 +++ b/level2/modules/kernel/fsleep.asm Sun Aug 17 19:30:01 2003 +0000 @@ -64,8 +64,8 @@ ELSE nega negb + sbca #0 ENDC - sbca #0 std R$X,y L074F puls y,x IFNE H6309 diff -r b6969b0ae23d -r 1aae5bde55a0 level2/modules/kernel/krn.asm --- a/level2/modules/kernel/krn.asm Sun Aug 17 16:33:10 2003 +0000 +++ b/level2/modules/kernel/krn.asm Sun Aug 17 19:30:01 2003 +0000 @@ -58,16 +58,15 @@ aim #$FE,DAT.Task and we can use A here, instead of E - clr DAT.Task - clr