Skip to content

Commit

Permalink
Merge pull request #14 from varmfskii/main
Browse files Browse the repository at this point in the history
rendering bug
  • Loading branch information
SlithyMatt authored Jun 20, 2022
2 parents 021dfa8 + e90ec81 commit 4530ce9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ql/gfx_raw.asm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
plot:
move.w 4(a7),d2 ; px
move.w 6(a7),d1 ; py
move.w 8(a7),d0 ; i
moveq #0,d0
move.b 8(a7),d0 ; i
andi.b #0x0f,d0
asl.w #2,d0
lea colors(PC),a0
move.l 0(a0,d0.w),d6
Expand Down
6 changes: 4 additions & 2 deletions ql/gfx_raw_asm
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ MAND_YMIN EQU $FF00 ; -1
MAND_YMAX EQU $0200 ; 2
MAND_WIDTH EQU 32
MAND_HEIGHT EQU 22
MAND_MAX_IT EQU 15
MAND_MAX_IT EQU 14
section code
xdef setup,plot,restore
plot:
move.w 4(a7),d2 ; px
move.w 6(a7),d1 ; py
move.w 8(a7),d0 ; i
moveq #0,d0
move.b 8(a7),d0 ; i
andi.b #$0f,d0
asl.w #2,d0
lea colors(PC),a0
move.l 0(a0,d0.w),d6
Expand Down
Binary file added ql/mandelbrot.mdv
Binary file not shown.

0 comments on commit 4530ce9

Please sign in to comment.