CS代写 # This code assumes the use of the “Bitmap Display” tool.

# This code assumes the use of the “Bitmap Display” tool.
# Tool settings must be:
# Unit Width in Pixels: 32
# Unit Height in Pixels: 32

Copyright By PowCoder代写 加微信 powcoder

# Display Width in Pixels: 512
# Display Height in Pixels: 512
# Based Address for display: 0x10010000 (static data)
# In effect, this produces a bitmap display of 16×16 pixels.

.include “bitmap-routines.asm”

TELL_TALE:
.word 0x12345678 0x9abcdef0 # Helps us visually detect where our part starts in .data section

.globl main
addi $a0, $zero, 0
addi $a1, $zero, 0
addi $a2, $zero, 0x00ff0000
jal draw_bitmap_box

addi $a0, $zero, 11
addi $a1, $zero, 6
addi $a2, $zero, 0x00ffff00
jal draw_bitmap_box

addi $a0, $zero, 8
addi $a1, $zero, 8
addi $a2, $zero, 0x0099ff33
jal draw_bitmap_box

addi $a0, $zero, 2
addi $a1, $zero, 3
addi $a2, $zero, 0x00000000
jal draw_bitmap_box

addi $v0, $zero, 10

# STUDENTS MAY MODIFY CODE BELOW
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

# Draws a 4×4 pixel box in the “Bitmap Display” tool
# $a0: row of box’s upper-left corner
# $a1: column of box’s upper-left corner
# $a2: colour of box

draw_bitmap_box:

# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# STUDENTS MAY MODIFY CODE ABOVE

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com