Skip to content

Commit

Permalink
small edit to fix usage document, ensure only 8086 compatible instruc…
Browse files Browse the repository at this point in the history
…tions used

git-svn-id: http://svn.code.sf.net/p/fdos/code/trunk@143 d9247ac3-808d-4053-b241-f1a6b6229609
  • Loading branch information
PerditionC committed Aug 10, 2011
1 parent 6cffa68 commit 3fd3dd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions devload.asm
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
; Version 3.25 05/8/2011 - Jeremy: fix bug where initial CDS not checked,
; adjust return codes to account for char devices

CPU 8086 ; ensure only 8086 compatible instructions
; .............................IMPROVEMENT IDEAS.............................


Expand Down Expand Up @@ -2029,8 +2030,8 @@ quiet: or byte [cs:ModeFlag],QuietFlag

; Set initial drive letter to assign device to (or 1st available after this one)
driveletter:
lodsb ; get drive letter, spaces before it are not supported e.g. /DS
sub al,65 ; convert letter to 0 based #, cmd line upcased above so -'A'
lodsb ; get drive letter, spaces before it are not supported e.g. /DS
sub al,65 ; convert letter to 0 based #, cmd line upcased above so -'A'
mov [CS:LastDrUsed], al
jmp short switchloop

Expand Down
3 changes: 1 addition & 2 deletions devload.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,8 @@
to a value between 0 and 26, where 0 is returned for character
devices and for block devices the first assigned drive is
returned (where 1=A:, 2=B:, 3=C:, ... 26=Z:). On any error
or is device is not loaded then 255 is returned. [Future
or if device is not loaded then 255 is returned. [Future
versions may provide unique values depending on the error.]
is returned as the exit code, where A:=0, ... Z:=25.

Examples:

Expand Down

0 comments on commit 3fd3dd6

Please sign in to comment.