mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 00:01:34 +11:00
Let rust do the register allocation
This commit is contained in:
parent
bb57298c54
commit
ed2e7dec5c
|
@ -388,27 +388,27 @@ impl VRamManager {
|
|||
match tile_format {
|
||||
TileFormat::FourBpp => core::arch::asm!(
|
||||
".rept 2",
|
||||
"ldmia r0!, {{r2-r5}}",
|
||||
"stmia r1!, {{r2-r5}}",
|
||||
"ldmia {src}!, {{{tmp1},{tmp2},{tmp3},{tmp4}}}",
|
||||
"stmia {dest}!, {{{tmp1},{tmp2},{tmp3},{tmp4}}}",
|
||||
".endr",
|
||||
inout("r0") tile_data_start => _,
|
||||
inout("r1") target_location => _,
|
||||
out("r2") _,
|
||||
out("r3") _,
|
||||
out("r4") _,
|
||||
out("r5") _,
|
||||
src = inout(reg) tile_data_start => _,
|
||||
dest = inout(reg) target_location => _,
|
||||
tmp1 = out(reg) _,
|
||||
tmp2 = out(reg) _,
|
||||
tmp3 = out(reg) _,
|
||||
tmp4 = out(reg) _,
|
||||
),
|
||||
TileFormat::EightBpp => core::arch::asm!(
|
||||
".rept 4",
|
||||
"ldmia r0!, {{r2-r5}}",
|
||||
"stmia r1!, {{r2-r5}}",
|
||||
"ldmia {src}!, {{{tmp1},{tmp2},{tmp3},{tmp4}}}",
|
||||
"stmia {dest}!, {{{tmp1},{tmp2},{tmp3},{tmp4}}}",
|
||||
".endr",
|
||||
inout("r0") tile_data_start => _,
|
||||
inout("r1") target_location => _,
|
||||
out("r2") _,
|
||||
out("r3") _,
|
||||
out("r4") _,
|
||||
out("r5") _,
|
||||
src = inout(reg) tile_data_start => _,
|
||||
dest = inout(reg) target_location => _,
|
||||
tmp1 = out(reg) _,
|
||||
tmp2 = out(reg) _,
|
||||
tmp3 = out(reg) _,
|
||||
tmp4 = out(reg) _,
|
||||
),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue