Microsoft (R) Macro Assembler Version 5.10                  5/16/24 23:40:13
CP/DOS DosSelectDisk mapper                                 Page     1-1


				;
				page 80,132
				;
				title CP/DOS DosSelectDisk mapper
				;
 0000				dosxxx  segment byte public 'dos'
				        assume  cs:dosxxx,ds:nothing,es:nothing,ss:nothing
				;
				;**********************************************************************
				;*
				;*   MODULE:   dosselectdisk
				;*
				;*   FILE NAME: dos048.asm
				;*
				;*   CALLING SEQUENCE:
				;*
				;*       push      word  drive          drive number
				;*       call      dosselectdisk
				;*
				;*   MODULES CALLED:  PC-DOS Int 21h, ah=0eh, select disk
				;*
				;*********************************************************************
				
				            public   dosselectdisk
				            .sall
				            .list
				
				str         struc
 0000  0000			old_bp      dw       ?
 0002  00000000			Return      dd       ?
 0006  0000			Drive       dw       ?       ; drive number
 0008				str         ends
				
 0000				dosselectdisk  proc  far
				        Enter   Dosselectdisk         ; push registers
				
 000C  8B 56 06			        mov     dx,[bp].drive         ; load drive number
 000F  4A			        dec     dx                    ; adjust for cp/dos incompatibility
				
 0010  B4 0E			        mov     ah,0eh
 0012  CD 21			        int     21h                   ; select the drive
				
 0014  2B C0			        sub     ax,ax                 ; set good return code
				
				        mexit                         ; pop registers
 0022  CA 0002			        ret     size str - 6          ; return
				
 0025				dosselectdisk endp
				
 0025				dosxxx      ends
				
				            end

Microsoft (R) Macro Assembler Version 5.10                  5/16/24 23:40:13
CP/DOS DosSelectDisk mapper                                 Symbols-1


Macros:

		N a m e			Lines

ENTER  . . . . . . . . . . . . .  	   3
MEXIT  . . . . . . . . . . . . .  	   3
POPAL  . . . . . . . . . . . . .  	   9
PUSHAL . . . . . . . . . . . . .  	   9

Structures and Records:

                N a m e                 Width   # fields
                                        Shift   Width   Mask    Initial

STR  . . . . . . . . . . . . . .  	0008	0003
  OLD_BP . . . . . . . . . . . .  	0000
  RETURN . . . . . . . . . . . .  	0002
  DRIVE  . . . . . . . . . . . .  	0006

Segments and Groups:

                N a m e         	Length	 Align	Combine Class

DOSXXX . . . . . . . . . . . . .  	0025	BYTE	PUBLIC	'DOS'

Symbols:            

                N a m e         	Type	 Value	 Attr

dosselectdisk  . . . . . . . . .  	F PROC	0000	DOSXXX	Global	Length = 0025

@CPU . . . . . . . . . . . . . .  	TEXT  0101h		
@FILENAME  . . . . . . . . . . .  	TEXT  sel_disk		
@VERSION . . . . . . . . . . . .  	TEXT  510		


    100 Source  Lines
    124 Total   Lines
     16 Symbols

  47512 + 308773 Bytes symbol space free

      0 Warning Errors
      0 Severe  Errors
