coco3: graphics: fix little endianess
authorBrett Gordon <beretta42@gmail.com>
Fri, 23 Oct 2015 06:09:43 +0000 (02:09 -0400)
committerBrett Gordon <beretta42@gmail.com>
Sat, 24 Oct 2015 15:01:29 +0000 (11:01 -0400)
Kernel/platform-coco3/videoll.s

index 3bc021b..885ce87 100644 (file)
@@ -63,7 +63,7 @@ _video_write:
        tfr x,y                 ; So we can use y to get at the w/h
        leax 4,x                ; Move on to data space
 vwnext:
-       lda 2,y
+       lda 3,y
        pshs u
 vwline:
        ldb ,x+
@@ -72,7 +72,7 @@ vwline:
        bne vwline
        puls u
        leau 32,u
-       dec ,y
+       dec 1,y
        bne vwnext
        puls u,pc