arduino-tvout
arduino-tvout copied to clipboard
Issues about Tvout with SpiRAM
I try to let TVout use SpiRAM, but I met an issue here:
: [port] "i" (_SFR_IO_ADDR(PORT_VID)),
"x" (display.screen),
"y" (renderLine),
[hres] "d" (display.hres)
: "r16" // try to remove this clobber later..
display.screen
is a class type, just like:
class SpiRAM {
private:
uint8_t cs_pin;
uint32_t address;
public:
void begin(uint8_t);
void write(uint32_t, uint8_t);
int read(uint32_t);
};
I can use this RAM well, but cannot accept this asm, compiler said impossible register constraint in 'asm'
We cannot access memory directly.
So what mean are these asm? Can I solve it?
Really need help.