gba/docs/searchindex.js

1 line
326 KiB
JavaScript
Raw Normal View History

window.search = {"doc_urls":["introduction.html#introduction","introduction.html#getting-help","introduction.html#other-works","ch0/index.html#chapter-0-development-setup","ch0/index.html#per-system-setup","ch0/index.html#per-project-setup","ch0/index.html#compiling","ch1/index.html#ch-1-hello-gba","ch1/hello1.html#hello1","ch1/hello1.html#explaining-hello1","ch1/hello1.html#all-those-magic-numbers","ch1/hello1.html#sidebar-volatile","ch1/io_registers.html#io-registers","ch1/the_display_control_register.html#the-display-control-register","ch1/the_display_control_register.html#video-modes","ch1/the_display_control_register.html#cgb-mode","ch1/the_display_control_register.html#page-flipping","ch1/the_display_control_register.html#oam-vram-and-blanking","ch1/the_display_control_register.html#screen-layers","ch1/the_display_control_register.html#in-conclusion","ch1/video_memory_intro.html#video-memory-intro","ch1/video_memory_intro.html#rgb15","ch1/video_memory_intro.html#mode-3","ch1/video_memory_intro.html#mode-4","ch1/video_memory_intro.html#mode-5","ch1/video_memory_intro.html#in-conclusion","ch1/hello2.html#hello2","ch2/index.html#ch-2-user-input","ch2/the_key_input_register.html#the-key-input-register","ch2/the_key_input_register.html#key-input-code","ch2/the_vcount_register.html#the-vcount-register","ch2/light_cycle.html#light_cycle","ch2/light_cycle.html#gameplay","ch2/light_cycle.html#operations"],"index":{"documentStore":{"docInfo":{"0":{"body":16,"breadcrumbs":1,"title":1},"1":{"body":30,"breadcrumbs":2,"title":2},"10":{"body":55,"breadcrumbs":7,"title":3},"11":{"body":155,"breadcrumbs":6,"title":2},"12":{"body":143,"breadcrumbs":6,"title":2},"13":{"body":83,"breadcrumbs":7,"title":3},"14":{"body":174,"breadcrumbs":6,"title":2},"15":{"body":25,"breadcrumbs":6,"title":2},"16":{"body":32,"breadcrumbs":6,"title":2},"17":{"body":70,"breadcrumbs":7,"title":3},"18":{"body":54,"breadcrumbs":6,"title":2},"19":{"body":30,"breadcrumbs":5,"title":1},"2":{"body":49,"breadcrumbs":1,"title":1},"20":{"body":94,"breadcrumbs":7,"title":3},"21":{"body":47,"breadcrumbs":5,"title":1},"22":{"body":41,"breadcrumbs":6,"title":2},"23":{"body":211,"breadcrumbs":6,"title":2},"24":{"body":25,"breadcrumbs":6,"title":2},"25":{"body":47,"breadcrumbs":5,"title":1},"26":{"body":300,"breadcrumbs":5,"title":1},"27":{"body":111,"breadcrumbs":4,"title":4},"28":{"body":198,"breadcrumbs":7,"title":3},"29":{"body":532,"breadcrumbs":7,"title":3},"3":{"body":36,"breadcrumbs":4,"title":4},"30":{"body":321,"breadcrumbs":6,"title":2},"31":{"body":7,"breadcrumbs":5,"title":1},"32":{"body":20,"breadcrumbs":5,"title":1},"33":{"body":336,"breadcrumbs":5,"title":1},"4":{"body":106,"breadcrumbs":3,"title":3},"5":{"body":93,"breadcrumbs":3,"title":3},"6":{"body":402,"breadcrumbs":1,"title":1},"7":{"body":39,"breadcrumbs":4,"title":4},"8":{"body":83,"breadcrumbs":5,"title":1},"9":{"body":312,"breadcrumbs":6,"title":2}},"docs":{"0":{"body":"Here's a book that'll help you program in Rust on the GBA. It's very \"work in progress\". At the moment there's only one demo program.","breadcrumbs":"Introduction","id":"0","title":"Introduction"},"1":{"body":"If you want to contact us you should join the Rust Community Discord and ask in the #gamedev channel. Ketsuban is the wizard who knows much more about how it all works Lokathor is the fool who decided to write a crate and book for it. If it's not a GBA specific question then you can probably ask any of the other folks in the server as well.","breadcrumbs":"Getting Help","id":"1","title":"Getting Help"},"10":{"body":"Alright, I cheated quite a bit in the middle there. The program works, but I didn't really tell you why because I didn't really tell you what any of those magic numbers mean or do. 0x04000000 is the address of an IO Register called the Display Control. 0x06000000 is the start of Video RAM. So we write some magic to the display control register once, then we write some other magic to three locations of magic to the Video RAM. We get three dots, each in their own location... so that second part makes sense at l