I am working on designing a Z80 computer that utilized the TMS9918ANL for graphics. I am currently just trying to make sure the TMS9918ANL is working, so I hooked up the control pins the bus (backwards as I should), power/ground, a crystal, and CSW/CSR. In order to test it without RAM, I took the RD pins and tied them to ground using 10K pull-down resistors. I was told that this should produce a black screen if I wired it correctly. Could you check over my wiring and my code to make sure I am executing this right and correctly writing to the TMS9918A's registers? I took screenshots of my schematics from Kicad and uploaded them to a Google Drive folder here (note, it says the other pins of the TMS9918A are wired up, but in my actual circuit they are unconnected and the RD pins are pulled down to ground): https://drive.google.com/drive/folders/1bNtJaH40HGuP_w_PZnNKDf3ZZJnJuWBJ?usp=sharing
And my code can be found here: https://pastebin.com/LDhyMr5r
I am very new to all of this, so I appreciate your time and understanding with my lack there of. If you can help me figure out my problem, I will be happy to send a photo of the computer printing your name in text as soon as I get it running :)
If there is anything else you need to assess my situation, please let me know. Thank you for your time and help in advance!