changeset 2732:43300b4f840a

Robert Gault submitted changes to the level1/modules/kernel/krn.asm file related to free pages being less than what they should be. Offending code changed and tested. Files updated in this update are ChangeLog and level1/modules/kernel/krn.asm
author drencor-xeen
date Thu, 06 Dec 2012 11:22:23 -0600
parents baa835d68db2
children 05b7feef845a
files ChangeLog level1/modules/kernel/krn.asm
diffstat 2 files changed, 21 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Dec 05 03:14:21 2012 -0600
+++ b/ChangeLog	Thu Dec 06 11:22:23 2012 -0600
@@ -1,6 +1,19 @@
 NitrOS-9 V3.2.9:
 
 ----------------------------------------------------------
+2012/12/05 Robert Gualt
+List of files changed
+M ChangeLog
+M level1/modules/kernel/krn.asm
+
+Changed the GetMem rountine for Level1 krn. The routine compared
+MaxMem against D.MLIM. This seemed to result in unwarranted loss
+of memory and prevented at least one game, Interbank Incident, from running.
+The comparison was removed resulting in an increase of available
+memory. No problems have been noted.
+
+
+----------------------------------------------------------
 2012/12/05 David Ladd
 List of files changed since hg clone on 2012/12/05
 M ChangeLog
--- a/level1/modules/kernel/krn.asm	Wed Dec 05 03:14:21 2012 -0600
+++ b/level1/modules/kernel/krn.asm	Thu Dec 06 11:22:23 2012 -0600
@@ -252,11 +252,13 @@
          bita  #CRCOn			CRC on?
          beq   GetMem			branch if not (already cleared earlier)
          inc   <D.CRC			else turn on CRC checking
-GetMem   ldd   MaxMem+1,u
-         clrb
-         cmpd  <D.MLIM
-         bcc   L0158
-         std   <D.MLIM
+GetMem   equ   *
+         clra
+*         ldd   MaxMem+1,u
+*         clrb
+*         cmpd  <D.MLIM
+*         bcc   L0158
+*         std   <D.MLIM
 L0158    ldx   <D.FMBM
 		IFNE	atari
 * In the Atari, memory $0000-$08FF is used by the system
@@ -269,7 +271,7 @@
 * In the CoCo, memory $0000-$04FF is used by the system
          ldb   #%11111000
          stb   ,x
-         	ENDC
+		ENDC
          clra
          ldb   <D.MLIM
          negb