Commit graph

574 commits

Author SHA1 Message Date
Lokathor
89b7cc0eaa Merge branch 'dev' into lokathor 2019-02-14 19:17:02 -07:00
Lokathor
c2fd673715 cut this 2019-02-14 19:16:33 -07:00
Lokathor
273a8bd676 commit the changes 2019-02-14 19:16:09 -07:00
Lokathor
723711695e
Merge pull request #69 from Ruin0x11/add_irq_handling
Add interrupt request handling mechanism
2019-02-14 18:55:44 -07:00
Ian Pickering
d15168068b Add __IRQ_HANDLER symbol to hello_magic example
The hello_magic example does not depend on the gba crate, but the crt0
now assumes that the symbol for the interrupt handler which is defined
in it will be present, as interrupts ought to be handled in some
manner. If neither the symbol or the crate are added then the linker
will give an error, but if anything in the gba crate is used also then
the symbol will be brought in, so defining it manually also would
cause a duplicate definition error. In the future something like
cortex-m-rt's `exception!` macro could be used to better document how
to define this symbol (all their examples depend on at least one
symbol from their runtime library, so they don't have this problem).
2019-02-13 18:27:27 -08:00
Ian Pickering
0d654032bb Add module for interrupt request (IRQ) handling 2019-02-13 17:08:57 -08:00
Ian Pickering
dc2127b2ce Fix incorrect opcode of VBlankIntrWait BIOS function
It should be `swi 0x05` instead of `swi 0x04`.
2019-02-13 17:06:18 -08:00
Lokathor
120cfc87b2 start of bitmap video article 2019-02-13 01:48:29 -07:00
Lokathor
d43c66c0d9 new lib file 2019-02-13 01:47:25 -07:00
Lokathor
c360c2dce4 example updates 2019-02-13 01:47:12 -07:00
Lokathor
9e7937b956 tag TODOs in docs 2019-02-13 01:46:47 -07:00
Lokathor
5d89414c13 Update the Mode 3/4/5 abstractions 2019-02-13 01:45:48 -07:00
Lokathor
61218d99f2 Update mGBA usage, stuff it in a macros module 2019-02-13 01:45:23 -07:00
Lokathor
2ca888b572 Fix rustfmt to get things a little more compact 2019-02-12 10:00:16 -07:00
Lokathor
e95bcb7ed2 final io-registers notes 2019-02-12 09:50:15 -07:00
Lokathor
2929076e55 jump to 120
Picking this because it makes the `hello_magic.rs` lines all stay on one line.
2019-02-12 09:42:17 -07:00
Lokathor
b67bdc80a1 io registers lesson, +cargo fmt with lin length down to 100 2019-02-11 21:59:17 -07:00
Lokathor
5113a5a1f2
Merge pull request #64 from rust-console/lokathor
Lokathor
2019-02-11 13:55:17 -07:00
Lokathor
1094794ef8 no more auto-clippy 2019-02-10 12:54:29 -07:00
Lokathor
298e195d28 hardware memory map! 2019-02-09 16:32:50 -07:00
Lokathor
da6ce44345 shouldn't this be pub? 2019-02-09 14:35:48 -07:00
Lokathor
84a4b4b89b Explain this better because even I forgot 2019-02-09 12:50:00 -07:00
Lokathor
dfadb5ba9f part of a hardware memory map explanation 2019-02-09 04:56:20 -07:00
Lokathor
2dcf5bfe18 Quick explanation of Volatile
We actually don't need to bore the reader with how fancy it is, they can go read the source of the crate it they want.
2019-02-09 03:52:52 -07:00
Lokathor
7f27d83b6e Start of more book work 2019-02-09 03:25:50 -07:00
Lokathor
4d56fa3a37 book stuff 2019-02-06 00:05:02 -07:00
Lokathor
83f3496261
Merge pull request #55 from rust-console/lokathor
Starting towards a v0.4
2019-02-05 01:46:21 -07:00
Lokathor
fc642c064d Convert to using the recently split off voladdress lib 2019-02-05 00:47:06 -07:00
Lokathor
dcd7e40b15 Start towards 0.4 2019-02-04 20:25:40 -07:00
Lokathor
20cd551198 Merge branch 'master' into lokathor 2019-02-02 00:30:06 -07:00
Lokathor
fd5c74e199 Update the version
there was already a 0.3.1 with some amount of patches but not the latest.
2019-02-02 00:29:05 -07:00
Lokathor
edfffbb704
v0.3.1 patches (#53)
* mGBA output wasn't resetting its length used

* admonish people to stay updated

* IWRAM fix

* version bump

* fix to work with latest nightly.

* don't know what this is or why we have it

* Delete the builtins module

The `__clzsi2` function is now part of the compiler-builtins crate, so it's part of all of Rust.

* ??

* mgba 0.7 came out!
2019-02-02 00:26:08 -07:00
Lokathor
2da8ad7afa
Merge branch 'master' into lokathor 2019-02-02 00:21:39 -07:00
Lokathor
c933e43dd6 mgba 0.7 came out! 2019-02-02 00:20:38 -07:00
Lokathor
87b4e513ec ?? 2019-02-01 23:44:50 -07:00
Lokathor
ddf6593f8b Delete the builtins module
The `__clzsi2` function is now part of the compiler-builtins crate, so it's part of all of Rust.
2019-02-01 23:36:17 -07:00
Lokathor
13d9dbcdc2 don't know what this is or why we have it 2019-02-01 19:34:54 -07:00
Lokathor
e29453f8d8
Mid January 0.3.1 fixes batch (#52)
* mGBA output wasn't resetting its length used

* admonish people to stay updated

* IWRAM fix

* version bump

* fix to work with latest nightly.
2019-01-13 00:00:59 -07:00
Lokathor
ed7f830ad4 fix to work with latest nightly. 2019-01-12 21:06:38 -07:00
Lokathor
a15b865951 version bump 2019-01-12 16:19:26 -07:00
Lokathor
0fb9994131 IWRAM fix 2019-01-12 13:42:18 -07:00
Lokathor
a1e35a9ed1 Merge branch 'master' into lokathor 2019-01-12 13:38:16 -07:00
Lokathor
bc10122d58 admonish people to stay updated 2019-01-12 13:35:56 -07:00
Lokathor
0e363477b7 mGBA output wasn't resetting its length used 2019-01-12 13:34:43 -07:00
Lokathor
de62113e86
Merge pull request #49 from ketsuban/bss-section
Add .bss section to linker script
2019-01-08 21:06:24 -07:00
Thomas Winwood
1f75cf025d Add symbol for the end of the .bss section 2019-01-09 04:00:36 +00:00
Thomas Winwood
800e538a58 Add .bss section to linker script 2019-01-09 03:44:34 +00:00
Lokathor
bef430dc30
Merge pull request #47 from eevee/oam-public
Make ObjectAttributes's and AffineParameters's fields public
2019-01-08 18:25:13 -07:00
Eevee (Evelyn Woods)
91d40f0c5b Make ObjectAttributes's and AffineParameters's fields public 2019-01-08 18:20:08 -07:00
Lokathor
096eed2abb
Merge pull request #45 from eevee/fix-bg1ofs-addresses
Fix addresses for BG1HOFS and BG1VOFS
2019-01-08 17:38:29 -07:00