Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions

Question

2. How should this be dealt with by the organisation?

Answered: 1 week ago

Question

explain what is meant by the term fair dismissal

Answered: 1 week ago