Comments (1)
I also notice there is assembly language at video_gen.cpp.
__asm__ __volatile__ (
//save PORTB
"IN r16,%[port]\n\t"
"ANDI r16,0xFD\n\t"
".macro output\n\t"
"BLD r16,0\n\t" //output pin of the port here pinB0
"OUT %[port],r16\n" //and on the last line of asm
".endm\n"
".macro pixeldelay\n\t" // delay time for setting pixel width
"NOP\n\t" // one can be removed for smaller
"NOP\n\t" // pixels dont forget to remove the
"NOP\n\t" // nop at the start of byteshift
".endm\n"
".macro byteshift\n\t"
"NOP\n\t"
"BST __tmp_reg__,7\n\t"
"output\n\t"
"pixeldelay\n\t"
"BST __tmp_reg__,6\n\t"
"output\n\t"
"pixeldelay\n\t"
"BST __tmp_reg__,5\n\t"
"output\n\t"
"pixeldelay\n\t"
"BST __tmp_reg__,4\n\t"
"output\n\t"
"pixeldelay\n\t"
"BST __tmp_reg__,3\n\t"
"output\n\t"
"pixeldelay\n\t"
"BST __tmp_reg__,2\n\t"
"output\n\t"
"pixeldelay\n\t"
"BST __tmp_reg__,1\n\t"
"output\n\t"
"pixeldelay\n\t"
"BST __tmp_reg__,0\n\t"
"output\n"
".endm\n\t"
//output thingy
"LD __tmp_reg__,X+\n\t" //1
"byteshift\n\t"
"LD __tmp_reg__,X+\n\t" //2
"byteshift\n\t"
"LD __tmp_reg__,X+\n\t" //3
"byteshift\n\t"
"LD __tmp_reg__,X+\n\t" //4
"byteshift\n\t"
"LD __tmp_reg__,X+\n\t" //5
"byteshift\n\t"
"LD __tmp_reg__,X+\n\t" //6
"byteshift\n\t"
"LD __tmp_reg__,X+\n\t" //7
"byteshift\n\t"
"LD __tmp_reg__,X+\n\t" //8
"byteshift\n\t"
"LD __tmp_reg__,X+\n\t" //9
"byteshift\n\t"
"LD __tmp_reg__,X+\n\t" //10
"byteshift\n\t"
"LD __tmp_reg__,X+\n\t" //11
"byteshift\n\t"
"LD __tmp_reg__,X+\n\t" //12
"byteshift\n\t"
"LD __tmp_reg__,X+\n\t" //13
"byteshift\n\t"
"LD __tmp_reg__,X+\n\t" //14
"byteshift\n\t"
"LD __tmp_reg__,X+\n\t" //15
"byteshift\n\t"
"LD __tmp_reg__,X+\n\t" //16
"byteshift\n"
"EndLine_%=:\n\t"
"CBI %[port],0\n\t"
// assembly variable IO:
:
: [port] "i" (_SFR_IO_ADDR(PORTB)),
"x" (screenptr)
: "r16" // try to remove this clobber later...
);
renderLine+=16;
Original comment by [email protected]
on 6 Aug 2015 at 10:36
from arduino-tvout.
Related Issues (20)
- Logic error in begin(uint8_t mode, uint8_t x, uint8_t y) HOT 1
- Screen Resolution
- Getting signal but black screen HOT 5
- Arduino 8MHZ sync problems
- Hackvision, cannot get it to work with TVOut beta1
- Color ?
- Download -> TVOut Arduino Compilation error fix for Mac OS X users (possibly windows too? haven't tested)
- bug in graphic functions
- Not compling in Mega 2560 HOT 4
- Fix for bigfonts (bigger than 8 bits width)
- No display when using TVout and Keypad libraries together
- Image is barely visible HOT 1
- ATtiny 25/45/85
- Google Code Shutdown HOT 2
- Interface 4.3 inch monitor with OBD-II Adapter to Arduino HOT 1
- Code defect?
- arabic font
- sync problems on mini pro HOT 1
- Port problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-tvout.