prog.cpp:6:16: error: ‘cmem’ was not declared in this scope
bool add_block(cmem& mem, uint8* data, int size) {
^~~~
prog.cpp:6:22: error: ‘mem’ was not declared in this scope
bool add_block(cmem& mem, uint8* data, int size) {
^~~
prog.cpp:6:27: error: ‘uint8’ was not declared in this scope
bool add_block(cmem& mem, uint8* data, int size) {
^~~~~
prog.cpp:6:34: error: ‘data’ was not declared in this scope
bool add_block(cmem& mem, uint8* data, int size) {
^~~~
prog.cpp:6:40: error: expected primary-expression before ‘int’
bool add_block(cmem& mem, uint8* data, int size) {
^~~
prog.cpp:6:48: error: expression list treated as compound expression in initializer [-fpermissive]
bool add_block(cmem& mem, uint8* data, int size) {
^
prog.cpp:13:12: error: ‘cmem’ was not declared in this scope
int _XOR_R(cmem& mem, uint8 reg) {
^~~~
prog.cpp:13:18: error: ‘mem’ was not declared in this scope
int _XOR_R(cmem& mem, uint8 reg) {
^~~
prog.cpp:13:23: error: ‘uint8’ was not declared in this scope
int _XOR_R(cmem& mem, uint8 reg) {
^~~~~
prog.cpp:13:32: error: expression list treated as compound expression in initializer [-fpermissive]
int _XOR_R(cmem& mem, uint8 reg) {
^