Open L1uTongwei opened 1 year ago
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:
display.screen
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'
impossible register constraint in 'asm'
We cannot access memory directly.
So what mean are these asm? Can I solve it?
Really need help.
I try to let TVout use SpiRAM, but I met an issue here:
display.screen
is a class type, just like: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?