aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2014-05-08 07:06:59 -0700
committerH. Peter Anvin <hpa@zytor.com>2014-05-08 07:06:59 -0700
commitcd24d9d376201784108e17b5bd7612d2e10c4a9c (patch)
treeadc7f134cfd537c7155b5d8e77fbbd3c8e42438e
parentd40c2b25e9ebb5ca6c608025b1880a6278af7d66 (diff)
downloadabc80-cd24d9d376201784108e17b5bd7612d2e10c4a9c.tar.gz
abc80-cd24d9d376201784108e17b5bd7612d2e10c4a9c.tar.xz
abc80-cd24d9d376201784108e17b5bd7612d2e10c4a9c.zip
sddrom: Fix new volume command
Correct the handling of the new volume command. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--data/sddrom.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/sddrom.asm b/data/sddrom.asm
index d6d79af..e901c78 100644
--- a/data/sddrom.asm
+++ b/data/sddrom.asm
@@ -295,7 +295,7 @@ not_write_sector:
ld l,e
ld h,d
- ; Multiply with 119 (238/2*256 SD sectors per 256-sector track)
+ ; Multiply by 119 (238/2*256 SD sectors per 256-sector track)
ld b,4
add hl,hl ; *2
add hl,hl ; *4
@@ -303,7 +303,7 @@ not_write_sector:
add hl,hl ; *16
add hl,de ; *17
ld e,l
- ld h,d
+ ld d,h
add hl,hl ; *34
add hl,hl ; *68
add hl,hl ; *136