void render_single_line( void)
{
asm volatile("\
ldr r2, [pc, #88] @ here can be comment \n\
push {r4, r5, r6}\n\
...etc
\n" :
/* No output */ : // No output is returned from this routine.
/* No input */ : // Define the routine inputs (%0,%1,%2).
"r3" ); // Specific which registers we destroy.
// For more info on 'asm' read the GCC docs at gnu.org
}TonyD wrote:@vaclavpe
well done. I've been waiting for the STM32F4-DISCOVERY boards to become available in the UK. I think I'll definitely be buying one now.
It would be cool if we could get your circuit on a AVCore or stamp like board.
vaclavpe wrote:I forgot one thing. Line renderer must be written in ASM to have exact timing and independence on compiler version. I found a way how to directly integrate ASM into C. And it looks that it can work properly:
- Code: Select all
void render_single_line( void)
{
asm volatile("\
ldr r2, [pc, #88] @ here can be comment \n\
push {r4, r5, r6}\n\
...etc
\n" :
/* No output */ : // No output is returned from this routine.
/* No input */ : // Define the routine inputs (%0,%1,%2).
"r3" ); // Specific which registers we destroy.
// For more info on 'asm' read the GCC docs at gnu.org
}
One can start from the code created by GCC compiler.
uze6666 wrote:Cool stuff! I just saw that Digikey has some in stock if you missed your chance on Mouser. Just ordered one too....![]()
@vaclavpe: What's the purpose of the 74HCT245 in your schematic? The STM can't source enough current for the resistor DAC?
BTW, I saw a very cool VGA interface that uses a RBGI DAC I mentionned before, check that out. I reckon this should be used instead of the current design: http://lucidscience.com/pro-vga%20video%20generator-2.aspx
-Uze
I have made next step. I can see "HELLO WORLD FROM UZEBOX!" ! The line render routine is running from FLASH but tiles[] have to be in RAM! Otherwise line renderer does not finish on time.
Hi, I like foolproof solutions. That is why I used 74HCT245 (or in my test LS245) on output.
Return to Uzebox Derivatives & open source consoles
Users browsing this forum: No registered users and 1 guest