Question: Copy and paste the following code into the CPUlator window: 1 global _ start - start: equ ADDR _ VGA, OXC 8 0 0 0

Copy and paste the following code into the CPUlator window:
1
global_start
-start:
equ ADDR_VGA, OXC8000000/% base address for pixel buffer array
.equ ADDR_CHAR, OxC9000000/ base address for character buffer array /
equ BLACK,00
.equ P_OFFSET 1032/ pixel buffer offset (4,1) is x2+y1024 so 8+1024?=1032
equ C_OFFSET, 132/ char buffer offset (4,1) is x+y128 so 4+128?=132
Idr ro,=ADDR_VGA
Idr r11= ADDR_CHAR
Idr r2,= BLACK ??** Black pixel /
ldr r3,=P-OFFSE
mov r4e #0x41/ ASCII for 'A'/
ldr r5,= C_OFFSET
strh r2,[r0,r3]/ Write to pixel buffer, location 4,1?
strb r4,[r1,r5]/ Write to character buffer, location (4,1)**?
.end
1
Additionally the code also writes the letter 'A' to the character buffer of the VGA display.
After running the above code, you should see the following
Part 2.1
Using the above code as a base, Loop through all of the pixel locations (x,y), where x goes from 0..319 and y goes from 0..239 and turn all pixels to black. Use the CPUlator simulator to verify your code.
Part 2.2
Again using the above code as a base, print your name and student number vertically in the centre of the screen. Use 2 columns one for your name, one for your student number.
Please use cpulator (Armv7) and (De1-SoC), Use the code given use modife has needed and please make sure it works make code clear with explanations
 Copy and paste the following code into the CPUlator window: 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!