🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fa.info-cpm
Article #770

Re: USER # in BIOS

#770
From: utzoodecvaxucbvaxinfo-cpm
Date: Wed, 22 Dec 1982 02:04
43 lines
1597 bytes
>From rconn@BRL  Wed Dec 22 01:47:44 1982
To: Dick <Mead@Usc-Eclb>
Cc: info-cpm@BRL
Via:  Brl; 22 Dec 82 1:05-EST
Via:  Brl-Bmd; 22 Dec 82 1:22-EST

Dick,

	The problem you describe lies in the Warm Boot routine within the
BIOS.  Whenever the CCP is entered via either the Warm or Cold Boot routines
in the BIOS, the user/disk flag is carried to it in the C register.

	I do not have the problem you describe.  Warm Boots return me to
the user/disk I was logged into.  My BIOS code in the Warm and Cold Boots
which does this is:

COLD BOOT:
	cbdisk	equ	0	;enter user 0 (high 4 bits), disk A
				; (low 4 bits) on Cold Boot (Startup)
	cdisk	equ	4H	;address of user/disk flag on Page 0
	...
	mvi	a,cbdisk	;select default user/disk
	sta	cdisk		;set user/disk flag
	...
	jmp	gocpm
WARM BOOT:
	...
	jmp	gocpm		;Warm Boot reloads CCP and BDOS
GOCPM:
	...			;Init:
	...			;  JMP at 0, JMP at 5, others
	lda	cdisk		;get current user/disk flag
	mov	c,a		;... in C for CCP entry
	...
	jmp	ccp		;enter CCP with user/disk in C

	In this type of environment, I have the flexibility of setting
cbdisk to anything I want, such as 21H to come up in user 2 on drive B
when I cold boot or 0A0H to come up in user 10 on drive A on cold boot.

	Hope this answers your question.

		Rick
Technical Details
Message-ID: <bnews.ucbvax.464>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
From: utzoo!decvax!ucbvax!info-cpm
Newsgroups: fa.info-cpm
Title: Re:  USER # in BIOS
Article-I.D.: ucbvax.464
Posted: Wed Dec 22 02:04:32 1982
Received: Thu Dec 23 21:24:51 1982
Subject: Re:  USER # in BIOS
Date: Wed, 22 Dec 1982 02:04:32 +0000
Message-ID: <bnews.ucbvax.464>