Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues about Tvout with SpiRAM #139

Open
L1uTongwei opened this issue Aug 13, 2022 · 1 comment
Open

Issues about Tvout with SpiRAM #139

L1uTongwei opened this issue Aug 13, 2022 · 1 comment

Comments

@L1uTongwei
Copy link

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
Copy link
Author

Really need help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant