Thomas Winwood
fe1d75efc5
Two small tweaks to crt0.s
...
* The use of r3 in the block which copies the .data section into IWRAM is unnecessary.
* The return label in the IRQ handler doesn't need to be global.
2019-05-09 15:08:11 +01:00
bors[bot]
7b79d012b4
Merge #76
...
76: typo fix r=Lokathor a=Lokathor
Co-authored-by: Lokathor <zefria@gmail.com>
2019-03-30 22:54:44 +00:00
Lokathor
9491249089
typo
2019-03-06 19:41:03 -07:00
bors[bot]
629a85ccf5
Merge #74
...
74: Update IME to be `u16` sized, avoid newtype_enum r=Lokathor a=Lokathor
newtype_enum makes an enum, but an enum can be UB if it's no a valid bit pattern. We should avoid having registers mapped to enum types.
Co-authored-by: Lokathor <zefria@gmail.com>
2019-02-15 05:17:51 +00:00
Lokathor
ac031627c8
Update IME to be u16
sized, avoid newtype_enum
...
newtype_enum makes an enum, but an enum can be UB if it's no a valid bit pattern. We should avoid having registers mapped to enum types.
2019-02-14 22:11:23 -07:00
bors[bot]
eb157e00dc
Merge #71
...
71: Dev merge (testing bors) r=Lokathor a=Lokathor
Co-authored-by: Lokathor <zefria@gmail.com>
2019-02-15 04:44:16 +00:00
Lokathor
c1a272edce
no approvals!
2019-02-14 21:33:06 -07:00
Lokathor
529d41d57a
push push
2019-02-14 21:32:29 -07:00
Lokathor
f95281c708
bors setup
2019-02-14 21:30:51 -07:00
Lokathor
98a9eefaf5
Merge pull request #65 from rust-console/lokathor
...
IO Registers + Bitmap book section
2019-02-14 21:23:28 -07:00
Lokathor
0f031e6435
bitmap video explanation
2019-02-14 21:18:21 -07:00
Lokathor
3b688b907c
Get all the code lined up
2019-02-14 19:39:34 -07:00
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