Question: art 2 - CPUlator VGA Pixel and Character Buffer Copy and paste the following code into the CPUlator window: . global _ start _ start:
art CPUlator VGA Pixel and Character Buffer
Copy and paste the following code into the CPUlator window:
global start
start:
equ ADDRVGA, xC base address for pixel buffer array
equ ADDRCHAR, xC base address for character buffer array
equ BLACK, x
equ POFFSET, pixel buffer offset is x y so
equ COFFSET, char buffer offset is x y so
ldr rADDRVGA
ldr rADDRCHAR
ldr rBLACK Black pixel
ldr rPOFFSET
mov r #x ASCII for A
ldr rCOFFSET
strh rr r Write to pixel buffer, location
strb rr r Write to character buffer, location
end
The code writes to the VGA Pixel buffer the contents of the buffer are shown on the "VGA Pixel Buffer" window on the right side of the CPUlator window. You can move this window, by clicking on the window top banner and moving it to the top. Also you can zoom in by clicking the configuration icon upper left of the window and adjust the zoom factor to
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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
