llvm-mos-sdk
memory.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023 Adrian "asie" Siekierka
3  *
4  * Licensed under the Apache License, Version 2.0 with LLVM Exceptions,
5  * See https://github.com/llvm-mos/llvm-mos-sdk/blob/main/LICENSE for license
6  * information.
7  */
8 
9 #ifndef _PCE_MEMORY_H_
10 #define _PCE_MEMORY_H_
11 
12 #include <stdbool.h>
13 #include <stdint.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
26 #define PCE_MEMOP_INCR_INCR 0x73
27 
30 #define PCE_MEMOP_DECR_DECR 0xC3
31 
34 #define PCE_MEMOP_INCR_NONE 0xD3
35 
39 #define PCE_MEMOP_INCR_ALT 0xE3
40 
44 #define PCE_MEMOP_ALT_INCR 0xF3
45 
57 __attribute__((leaf)) void *pce_memop(void *dest, const void *src,
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif /* _PCE_MEMORY_H_ */
std::uint16_t
::uint16_t uint16_t
Definition: cstdint:22
std::uint8_t
::uint8_t uint8_t
Definition: cstdint:21
count
const void uint16_t count
Definition: memory.h:58
src
const void * src
Definition: memory.h:57
mode
const void uint16_t uint8_t mode
Definition: memory.h:58