how do i connect dots in midpoint algorithm in mips assembly
<p>So I am trying to draw a circle but only 4 dots appear on the screen. How do I generate more dots and connect them? I have included a picture so you can see how it is displayed in mars.<a href="https://i.stack.imgur.com/EFia3.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EFia3.jpg" alt="enter image description here" /></a></p>
<h1>midpoint circle algorithm</h1>
<pre><code>.data
#midpoint circle algorithm variables

radius: .word 10
err: .word -10
#yvalue = radius
colour: .word 0x00FFFFFF

bmp: .space 0x80000
height: .word 64
width: .word 64
base: .word 0x10040000


.text

lw $a0, radius # x
li $a1, 0 # y

drawn:
bge $a0, $a1, loading

loading:

lw $t1, err
jal plot8points

add $t1, $t1, $a1 #err += y
addi $a1, $a1, 1 #y++
add $t1, $t1, $a1 #err + = y

bltz $a0, drawn


sub $t1, $t1, $a0 # err -= x
addi $a0, $a0, -1 # x--
sub $t1, $t1, $a0 # err-= x


plot8points:


lw $t3, radius # xcenter
li $t4, 0 # ycenter

move $t7, $a0 # x
move $t8, $a1 # y


jal plot4points 

blt $a0, $a1, end_loading

jal plot4points

jal plot4morepoints 

#jal exit


end_loading:

jr $ra


plot4points:


add $a0, $t7, $t3
add $a1, $t8, $t4
jal setpixel

sub $a0, $t3, $t7
add $a1, $t4, $t8
jal setpixel

add $a0, $t3, $t7
sub $a1, $t4, $t8
jal setpixel

sub $a0, $t3, $7
sub $a1, $t4, $t8
jal setpixel


plot4morepoints:

add $a0, $t3, $t8
add $a1, $t4, $t7
jal setpixel

sub $a0, $t3, $t8
add $a1, $t4, $t7
jal setpixel

add $a0, $t3, $t8
sub $a1, $t4, $t7
jal setpixel

sub $a0, $t3, $t8
sub $a1, $t4, $t7
jal setpixel


setpixel:
lw $t0, colour
lw $s4, width
lw $s2, base
mul $t6, $a1, $s4
add $t6, $t6, $a0
sll $t6, $t6, 2
add $t6, $t6, $s2
sw $t0, ($t6)
jr $ra



#exit:
li $v0, 10
syscall
</code></pre>