Mercurial > hg > Members > kono > nitros9-code
changeset 1463:c086c2d613cf
Robert Gault added ability to easily change which drive is used as boot drive.
author | boisy |
---|---|
date | Mon, 15 Dec 2003 03:57:48 +0000 |
parents | 062d65d5c132 |
children | eeaf8ff6420d |
files | level1/modules/boot_1773.asm |
diffstat | 1 files changed, 11 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/level1/modules/boot_1773.asm Mon Dec 15 03:54:16 2003 +0000 +++ b/level1/modules/boot_1773.asm Mon Dec 15 03:57:48 2003 +0000 @@ -35,6 +35,12 @@ * $03 = 30ms STEP set $00 +*Drive value & number +* $01 = 0 +* $02 = 1 +* $03 = 2 +BootDr set $01 + tylg set Systm+Objct atrv set ReEnt+rev rev set $03 @@ -77,7 +83,7 @@ stx >D.XNMI+1 lda #$7E sta >D.XNMI - lda #$08 + lda #$08+BootDr permit alternate drives ENDC sta >DPort @@ -170,7 +176,7 @@ clr >DPort shut off floppy disk rts -L00B7 lda #$29 +L00B7 lda #$28+BootDr permit alternate drives sta ,u clr u0004,u lda #$05 @@ -205,8 +211,8 @@ orcc #IntMasks pshs y ldy #$FFFF - ldb #$80 - stb >DPort+8 + ldb #$80 + stb >DPort+8 ldb ,u * Notes on the next line: * The byte in question comes after telling the controller that it should @@ -254,7 +260,7 @@ ldb #E$Read rts -L013C lda #$09 +L013C lda #$08+BootDr permit alternate drives sta ,u clr u0009,u tfr x,d