Corwin Kuiper
|
1ac33bfbc8
|
put interrupt handler in iwram, 32 bit bus
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
bd1f5f6a5a
|
store gbatek recommended registers
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
ac5fd06106
|
add test for length of interrupt table
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
d607f892e3
|
change to array for efficient lookup table
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
a959e8e06b
|
don't use register 4
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
47b02d29cf
|
correct which way round locked and unlocked is
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
1318e7eca4
|
ensure mutex is unlocked before locking
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
a9aad11dd7
|
make interrupt system interrupt safe(r)
FnMut is not something that can be used in a interrupt safe manner.
Instead use Fn with a Mutex that disables interrupts with a lock.
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
a5488fab56
|
review of documentation suggests that this does nothing
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
f54a539296
|
use better calling convention
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
086a4385be
|
correct comments to accurately reflect what is going on
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
466d0844c5
|
push all registers, as rust may be using them
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
597b9370fc
|
don't disable and reenable interrupts
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
b98e6cbb02
|
add all other interrupts
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
30c5a0eea9
|
export interrupt module
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
c2d4c99f66
|
correct exportation of functions
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
2ff9644310
|
disable interrupts during the interrupt handler
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
dacdf51dca
|
remove unused debug counter
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
ebfd637300
|
satisfy linter by removing elidable lifetime
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
2cc0bee7c3
|
example first version of an interrupt handler implemented with closures
|
2021-08-07 14:12:00 +01:00 |
|
Corwin Kuiper
|
42647b7373
|
add println macro for mgba
|
2021-08-07 13:21:54 +01:00 |
|
Gwilym Kuiper
|
c265a95996
|
Release agb v0.6.0
|
2021-08-01 21:50:18 +01:00 |
|
Gwilym Kuiper
|
7229e9012d
|
Update agb's agb-image-converter to 0.6.0
|
2021-08-01 21:46:08 +01:00 |
|
Gwilym Kuiper
|
de360f5dbc
|
Merge pull request #95 from gwilymk/attempt-speedup-mixer-in-asm
Speed up the mixer by writing the core loops in ASM
|
2021-08-01 21:35:07 +01:00 |
|
Gwilym Kuiper
|
ac8e2dfe9d
|
Go back to the other way of addressing as they aren't equivalent
|
2021-08-01 21:29:44 +01:00 |
|
Gwilym Kuiper
|
ec65b18fd2
|
Make the str consistent with the ldr
|
2021-08-01 21:23:31 +01:00 |
|
Gwilym Kuiper
|
809d3f52ee
|
update the comment about what's kept between iterations
|
2021-08-01 21:01:59 +01:00 |
|
Gwilym Kuiper
|
cce3ecdde5
|
Use r9 rather than lr
|
2021-08-01 21:00:49 +01:00 |
|
Gwilym Kuiper
|
2db696f8bf
|
reuse r4
|
2021-08-01 20:59:01 +01:00 |
|
Gwilym Kuiper
|
18d96e4349
|
Update comments now I understand what's happening
|
2021-08-01 20:50:52 +01:00 |
|
Gwilym Kuiper
|
451f38604d
|
Add an explicit .pool at the end of the mixer
|
2021-08-01 20:45:57 +01:00 |
|
Gwilym Kuiper
|
d1c312ab79
|
Remove loads of whitespace
|
2021-08-01 20:44:37 +01:00 |
|
Gwilym Kuiper
|
09ad082f3f
|
Furter rearranging for more sense making
|
2021-08-01 20:41:56 +01:00 |
|
Gwilym Kuiper
|
80e03073fd
|
Reorder the asm instructions to make better sense
|
2021-08-01 20:29:45 +01:00 |
|
Gwilym Kuiper
|
1af53aacb4
|
Done check makes sense to go at the end
|
2021-08-01 20:23:39 +01:00 |
|
Gwilym Kuiper
|
cc99aad4c5
|
Move the comments to a nicer place in the file
|
2021-08-01 20:23:05 +01:00 |
|
Gwilym Kuiper
|
5bc3844a14
|
Merge pull request #92 from gwilymk/proc-macro-for-agb-image-converter
Proc macro for agb image converter
|
2021-08-01 20:07:17 +01:00 |
|
Gwilym Kuiper
|
9f259fdc0a
|
Make clippy happy by using .add rather than .offset
|
2021-07-31 23:18:26 +01:00 |
|
Gwilym Kuiper
|
f1b6b1035b
|
Reduce mixer_collapse by 1 instruction
|
2021-07-31 22:01:20 +01:00 |
|
Gwilym Kuiper
|
8cffa4ae3d
|
Better comparison
|
2021-07-31 22:00:41 +01:00 |
|
Gwilym Kuiper
|
f5d771d349
|
Use asm for the tight loops in the sound mixer
|
2021-07-31 21:47:05 +01:00 |
|
Gwilym Kuiper
|
e3510a73f7
|
Re-export the image converter macro
|
2021-07-26 23:42:28 +01:00 |
|
Gwilym Kuiper
|
d7a24d9659
|
Start switching to the quote crate for generating the code
|
2021-07-22 19:03:49 +01:00 |
|
Gwilym Kuiper
|
19e0a0527b
|
Use syn crate rather than litrs
|
2021-07-22 18:43:27 +01:00 |
|
Gwilym Kuiper
|
21a11a4e41
|
Run rustfmt on modified files in agb
|
2021-07-21 22:48:23 +01:00 |
|
Gwilym Kuiper
|
8466e9eaa4
|
Remove usage of typed_builder
|
2021-07-21 22:15:46 +01:00 |
|
Gwilym Kuiper
|
8713f514be
|
Switch to a proc macro for generating the image data
|
2021-07-21 22:07:29 +01:00 |
|
Gwilym Kuiper
|
53952d8e34
|
Add support for reading config data from a toml file
|
2021-07-21 20:59:25 +01:00 |
|
Gwilym Kuiper
|
383c5454ea
|
Start work for new proc macro by generating a TileData
|
2021-07-21 20:27:04 +01:00 |
|
Gwilym Kuiper
|
4a9f98e09c
|
Allow agb-image-converter from the path
|
2021-07-21 20:26:38 +01:00 |
|