From f94b38f0648966861a6423b74250a9ea0b794f93 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 25 Sep 2017 00:59:41 +0100 Subject: [PATCH] v65c816: fix disk driver bug Did I ever mention how much I hate the 6402 lda $n,x syntax being for two completely different things and magically determined unless you remember to threaten the assembler with violence ? --- Kernel/platform-v65c816/v65.s | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Kernel/platform-v65c816/v65.s b/Kernel/platform-v65c816/v65.s index 06a25434..a353acce 100644 --- a/Kernel/platform-v65c816/v65.s +++ b/Kernel/platform-v65c816/v65.s @@ -170,7 +170,7 @@ _hd_read_data: ldy #512 hd_read: lda $34 ; I/O data via DP - sta 0,x ; stores into data (user) bank + sta a:$0000,x ; stores into data (user) bank inx dey bne hd_read @@ -197,7 +197,7 @@ _hd_write_data: ldy #512 hd_write: - lda 0,x ; load from data (user) bank + lda a:$0000,x ; load from data (user) bank sta $34 ; I/O data via DP inx dey @@ -209,6 +209,5 @@ hd_write: rts .bss - _hd_kmap: .res 1 -- 2.34.1