From b2e210093a6b0d7e209f3aa767a65cf6196fa970 Mon Sep 17 00:00:00 2001 From: m8pple Date: Sat, 25 Oct 2014 00:23:16 +0100 Subject: Update README.md Really stupid typo in the guidance on mem_read_write at the bottom of this page. The example in the actual documentation is correct though. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3979b26..3dbc60c 100644 --- a/README.md +++ b/README.md @@ -477,10 +477,10 @@ you'll need to cast to and from the types you want to read and write: uint32_t val; - mips_error err=mips_mem_read(mem, 12, 4, (uint32_t*)&val); + mips_error err=mips_mem_read(mem, 12, 4, (uint8_t*)&val); val=val+1; if(!err) - err=mips_mem_write(mem, 12, 4, (uint32_t*)&val); + err=mips_mem_write(mem, 12, 4, (uint8_t*)&val); This should (I haven't compiled it) increment the 32-bit value stored at byte address 12. -- cgit