set _drvbits
This commit is contained in:
@@ -5,6 +5,8 @@
|
|||||||
.globl _xhdi_vec
|
.globl _xhdi_vec
|
||||||
.globl _xhdi_sd_install
|
.globl _xhdi_sd_install
|
||||||
|
|
||||||
|
.equ _drvbits, 0x4c2
|
||||||
|
|
||||||
//
|
//
|
||||||
// this is where the XHDI cookie points to:
|
// this is where the XHDI cookie points to:
|
||||||
//
|
//
|
||||||
@@ -13,6 +15,11 @@
|
|||||||
_xhdi_vec:
|
_xhdi_vec:
|
||||||
lea -12(sp),sp // save all used registers according to XHDI spec
|
lea -12(sp),sp // save all used registers according to XHDI spec
|
||||||
movem.l d1/a0-a1,(sp)
|
movem.l d1/a0-a1,(sp)
|
||||||
|
|
||||||
|
move.l _drvbits,d0
|
||||||
|
bset.l #('S'-'A'),d0 // add drive S
|
||||||
|
move.l d0,_drvbits
|
||||||
|
|
||||||
pea 16(sp) // forward address of parameters on stack
|
pea 16(sp) // forward address of parameters on stack
|
||||||
jsr _xhdi_call // to internal routine
|
jsr _xhdi_call // to internal routine
|
||||||
addq.l #4,sp // correct stack
|
addq.l #4,sp // correct stack
|
||||||
@@ -20,8 +27,6 @@ _xhdi_vec:
|
|||||||
lea 12(sp),sp
|
lea 12(sp),sp
|
||||||
rts
|
rts
|
||||||
|
|
||||||
.equ _drvbits, 0x4c2
|
|
||||||
|
|
||||||
.data
|
.data
|
||||||
_old_vector:
|
_old_vector:
|
||||||
.ds.l 1
|
.ds.l 1
|
||||||
|
|||||||
Reference in New Issue
Block a user