Answered step by step
Verified Expert Solution
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:
globalstart
start:
equ ADDRVGA, OXC base address for pixel buffer array
equ ADDRCHAR, OxC base address for character buffer array
equ BLACK,
equ POFFSET pixel buffer offset is so
equ COFFSET, char buffer offset is so
Idr roADDRVGA
Idr ADDRCHAR
Idr BLACK Black pixel
ldr OFFSE
mov #x ASCII for
ldr COFFSET
strh Write to pixel buffer, location
strb Write to character buffer, location
end
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
Using the above code as a base, Loop through all of the pixel locations where goes from and y goes from and turn all pixels to black. Use the CPUlator simulator to verify your code.
Part
Again using the above code as a base, print your name and student number vertically in the centre of the screen. Use columns one for your name, one for your student number.
Please do this using CPUlator, also please show picture of it complete iwth an example of a random name and number and use the same code giving just modifie it as need to complete task
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started