aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro de Medeiros <pedro.medeiros@gmail.com>2023-05-05 13:50:03 -0300
committerPedro de Medeiros <pedro.medeiros@gmail.com>2023-05-05 14:19:40 -0300
commit1ab6326301ad9f902bb33d149371c54c31e1fa0f (patch)
tree73832752c749f73ad2f396835fdf22f8887ded7a
parented63444432dbe894f23ab389f110f7b0cf49c6a5 (diff)
downloadubox-msx-lib-1ab6326301ad9f902bb33d149371c54c31e1fa0f.tar.gz
ubox-msx-lib-1ab6326301ad9f902bb33d149371c54c31e1fa0f.zip
source pointer should be constant
-rw-r--r--include/ubox.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ubox.h b/include/ubox.h
index ea3ebe0..b66c76e 100644
--- a/include/ubox.h
+++ b/include/ubox.h
@@ -107,13 +107,13 @@ void ubox_set_colors(uint8_t fg, uint8_t bg, uint8_t border);
* ubox_write_vm((uint8_t*)0x1b00, 4 * 4, buffer);
* ```
*/
-void ubox_write_vm(uint8_t *dst, uint16_t len, uint8_t *src);
+void ubox_write_vm(uint8_t *dst, uint16_t len, const uint8_t *src);
/**
* Reads a block of `len` bytes from `src` in VMEM (video memory) to `dst`
* in memory.
*/
-void ubox_read_vm(uint8_t *dst, uint16_t len, uint8_t *src);
+void ubox_read_vm(uint8_t *dst, uint16_t len, const uint8_t *src);
/**
* Writes `data` to the `reg` VDP register.