title Module from library BASE_1 : SELDRV name ('SELDRV') maclib baselib.lib ; Set current drive ; Copyright (C) Werner Cirsovius ; Hohe Weide 44 ; D-20253 Hamburg ; Tel.: +49-40-4223247 ; Version 1.1 April 1987 ; ENTRY Accu holds drive code ; 0 -> A ... 15 -> P ; EXIT On normal return carry is reset ; On error carry will be set ; Accu holds content of reg H entry seldrv seldrv: _push_ ld e,a _OSCAL_ .seldsk ; Log disk rla ; Fix for error ld a,h ; Get extended error _pop_ ret end