# HG changeset patch # User boisy # Date 1187974855 0 # Node ID 7759100a08a1bd43615d197b13aef3565a5909a1 # Parent 7fca19b7c923d973eac41c9c7aaefaa89cd44d0f Updated for better use of system RAM diff -r 7fca19b7c923 -r 7759100a08a1 level1/modules/boot_common.asm --- a/level1/modules/boot_common.asm Fri Aug 24 03:30:33 2007 +0000 +++ b/level1/modules/boot_common.asm Fri Aug 24 17:00:55 2007 +0000 @@ -42,17 +42,19 @@ * Added 'subd #$00FF' to counteract earlier 'addd #$00FF'. We need to undo * to give F$SRqMem the right amount of memory to allocate. * +* 2007/08/24 Boisy G. Pitre +* We no longer use F$SRqMem to get the 256 byte buffer for LSN0, but +* instead allocate the memory temporarily off the stack. This gives us +* two system ram pages that were not available before, and also prevents +* a needless system call. start orcc #IntMasks ensure IRQs are off (necessary?) - leas -size,s +* allocate memory on stack for vars and sector buffer + leas -size-256,s tfr s,u get pointer to data area + leax size,u point U to 256 byte sector buffer pshs u save pointer to data area - -* Request memory for LSN0 - ldd #256 get sector/fd buffer - os9 F$SRqMem get it! - bcs error2 - bsr getpntr restore U to point to our statics + stx blockloc,u * Initialize Hardware ldy Address,pcr get hardware address @@ -71,7 +73,7 @@ jsr