mirror of
https://github.com/italicsjenga/gba.git
synced 2025-01-09 18:41:30 +11:00
output registers for a GbaCell read are lateout.
This commit is contained in:
parent
0fe5422674
commit
c4daa3e937
|
@ -100,7 +100,7 @@ where
|
|||
let val: u32;
|
||||
core::arch::asm!(
|
||||
"ldr {r}, [{addr}]",
|
||||
r = out(reg) val,
|
||||
r = lateout(reg) val,
|
||||
addr = in(reg) self.get_ptr(),
|
||||
options(readonly, preserves_flags, nostack)
|
||||
);
|
||||
|
@ -110,7 +110,7 @@ where
|
|||
let val: u16;
|
||||
core::arch::asm!(
|
||||
"ldrh {r}, [{addr}]",
|
||||
r = out(reg) val,
|
||||
r = lateout(reg) val,
|
||||
addr = in(reg) self.get_ptr(),
|
||||
options(readonly, preserves_flags, nostack)
|
||||
);
|
||||
|
@ -120,7 +120,7 @@ where
|
|||
let val: u8;
|
||||
core::arch::asm!(
|
||||
"ldrb {r}, [{addr}]",
|
||||
r = out(reg) val,
|
||||
r = lateout(reg) val,
|
||||
addr = in(reg) self.get_ptr(),
|
||||
options(readonly, preserves_flags, nostack)
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue