Mercurial > hg > Members > kono > nitros9-code
changeset 1900:71cac8cb5027
Driver now properly accesses hardware registers via Y instead of embedding
address directly in driver.
author | boisy |
---|---|
date | Sat, 29 Oct 2005 17:40:06 +0000 |
parents | 010adb3de936 |
children | 311bb8001b95 |
files | 3rdparty/drivers/disto/rampak.asm |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/3rdparty/drivers/disto/rampak.asm Wed Oct 26 22:36:06 2005 +0000 +++ b/3rdparty/drivers/disto/rampak.asm Sat Oct 29 17:40:06 2005 +0000 @@ -91,7 +91,6 @@ * Write pshs cc bsr SlctSlot - ldy V.PORT,u WritLoop lda ,x+ stb ,y sta 3,y @@ -116,7 +115,6 @@ ReadSect pshs cc bsr SlctSlot - ldy V.PORT,u ReadLoop stb ,y lda 3,y sta ,x+ @@ -158,9 +156,10 @@ mul multiply drive no. times $11 stb >MPI.Slct set new MPI slot no. tfr x,d - sta >$FF42 write LSN hi byte to PAK - stb >$FF41 write LSN lo byte to PAK ldx PD.BUF,y load X with address of path buffer + ldy V.PORT,u get HW addr + sta 2,y write LSN hi byte to PAK + stb 1,y write LSN lo byte to PAK clrb rts