From 62f5eae5dd6fdd5e216a50dfab2ac0d82c884b61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Sat, 11 May 2013 10:25:14 +0000 Subject: [PATCH] fixed a bug in _xhdi_sd_install --- sources/xhdi_vec.S | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sources/xhdi_vec.S b/sources/xhdi_vec.S index bd07f4f..faf3813 100644 --- a/sources/xhdi_vec.S +++ b/sources/xhdi_vec.S @@ -23,6 +23,7 @@ _xhdi_vec: pea 16(sp) // forward address of parameters on stack jsr _xhdi_call // to internal routine addq.l #4,sp // correct stack + movem.l (sp),d1/a0-a1 // restore registers lea 12(sp),sp rts @@ -39,5 +40,7 @@ _old_vector: _xhdi_sd_install: move.l 4(sp),d0 // address of the old XHDI vector move.l d0,_old_vector // save it in case we need it - move.l _xhdi_vec,d0 // return our BaS vector to TOS + move.l #_xhdi_vec,d0 // return our BaS vector to TOS + move.l d0,a0 // + rte