Avamander / arduino-tvout

Arduino-TVout
325 stars 81 forks source link

Issues about Tvout with SpiRAM #139

Open L1uTongwei opened 1 year ago

L1uTongwei commented 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:

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 commented 1 year ago

Really need help.