arduino-tvout icon indicating copy to clipboard operation
arduino-tvout copied to clipboard

Issues about Tvout with SpiRAM

Open L1uTongwei opened this issue 2 years ago • 1 comments

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?

L1uTongwei avatar Aug 13 '22 13:08 L1uTongwei

Really need help.

L1uTongwei avatar Aug 13 '22 13:08 L1uTongwei