From: Brett Gordon Date: Fri, 23 Oct 2015 06:33:21 +0000 (-0400) Subject: coco3: graphics: fix endianess of read. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=74b197a0de0ec224a99edc63b2ba29d98a669fe5;p=FUZIX.git coco3: graphics: fix endianess of read. --- diff --git a/Kernel/platform-coco3/videoll.s b/Kernel/platform-coco3/videoll.s index 885ce87d..b3329227 100644 --- a/Kernel/platform-coco3/videoll.s +++ b/Kernel/platform-coco3/videoll.s @@ -96,7 +96,7 @@ _video_read: tfr x,y ; So we can use y to get at the w/h leax 4,x ; Move on to data space vrnext: - lda 2,y ; a counts our copy along the scan line + lda 3,y ; a counts our copy along the scan line pshs u vrline: ldb ,u+ ; b does our data @@ -105,7 +105,7 @@ vrline: bne vrline puls u ; step down a line leau 32,u - dec ,y ; use the buffer directly for line count + dec 1,y ; use the buffer directly for line count bne vrnext puls u,pc ; and done