From: Brett Gordon Date: Sat, 4 Jul 2015 14:52:05 +0000 (-0400) Subject: IDE bugfix for dragon-nx32 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=2828d8190b26ac9a05efbd11d37ecbbba772daad;p=FUZIX.git IDE bugfix for dragon-nx32 --94eb2c094236ea23be051a0dd016 Content-Type: text/plain; charset=UTF-8 Here's a bug fix that make IDE work for 6809 stuff. * bugfix: removed spaces in operand to test the rawflag in blk_op (lwasm treats as comments) * bugfix: moved accesses to blk_ops around to before we switch to userspace: blk_ops is in kernel space to it goes *poof* when we flip to user-space The good news is we can share ide.s directly, as these bug fixes make IDE work for the coco3 platform too. I haven't tried this on real hardware, but on fake hardware it works great! :) -- Brett M. Gordon, beretta42@gmail.com
Here's a bug fix that make IDE work for 6809 stuff.  
* bugfix: removed spaces in operand to test the rawflag in blk_op (lwasm treats as comments)
* bugfix: moved accesses to blk_ops around to before we switch to userspace: blk_ops is in kernel space to it goes *poof* when we flip to user-space

The good news is we can share ide.s directly, as these bug fixes make IDE work for the coco3 platform too.

I haven't tried this on real hardware, but on fake hardware it works great! :)


--
Brett M. Gordon,
beretta42@gmail.com
--- diff --git a/Kernel/platform-dragon-nx32/ide.s b/Kernel/platform-dragon-nx32/ide.s index f9fec54f..ae6d657b 100644 --- a/Kernel/platform-dragon-nx32/ide.s +++ b/Kernel/platform-dragon-nx32/ide.s @@ -24,12 +24,12 @@ _devide_read_data: pshs y,dp lda #0xFF tfr a,dp - lda _blk_op + 2 - beq rdk - jsr map_process_always -rdk: ldx _blk_op + ldx _blk_op leay 512,x sty endp + tst _blk_op+2 + beq readword + jsr map_process_always readword: lda