 |
|
 |
|
 |
|
 |
|
 |
 |
Creates 4-color bitmaps for the Prop. TV and VGA demo code also here.
|
|
 |
 |
Creates 64-color bitmaps for Prop for VGA display.
|
|
 |
 |
Creates 2-color bitmaps for Prop for VGA display.
|
|
 |
Assembly Tutorial (by Forum username "deSilva")
 |
This is nice since Parallax failed to provide very much in the way
of instructions, other than examples. |
 |
It can be found in the Forum on
this thread. |
 |
Or, download the local copy
here. |
 |
There are also "Assembly Code Examples for the Beginner" in
this forum thread. |
|
 |
|
 |
|
 |
 |
Info on colors generated by the NTSC/PAL TV driver.
|
|
 |
 |
Particularly useful for deciphering the 1024x768 VGA tile driver
demo.
|
 |
Decompose/Examine a Propeller hex palette value
|
 |
Generate a hex palette value from RGB color picker
|
|
 |
 |
Makes interleaved, 2-color characters just like what's in the
Propeller's ROM
|
|
 |
 |
Generate custom 16x16, 4-color characters
|
|
 |
|
 |
Notes
 |
|
 |
Use "=>" for "greater than or equal to" test. ">=" is an
assignment operator in SPIN !!!!!!!!!!!!!!
|
 |
All addresses are WORDs
|
|
 |
|
 |
|
 |
|
 |
PrintScreen for VGA
 |
This code turns the VGA screen into a 24-bit Windows Bitmap file on
an SD card (assuming you have an SD card connected to the Propeller).
|
 |
Sample:
 |
|
 |
|
 |
Delay Generator Demo
 |
Demonstrates control of two Delay Generator objects
with XGA (VGA 1024x768) user interface. |
 |
Screenshots:
 
|
 |
|
|
 |
100 MHz clock
 |
I believe it's possible to control timing at the clock
level using 4 cogs (because instructions take 4 clocks each). Cogs
can be synced using the CNT. |
 |
But, 12.5-ns clock is rather inconvenient! It
would be nice to have even 10-ns increments in the timing. |
 |
I've done this by replacing the onboard 5 MHz crystal
with a 6.25 MHz crystal. Since the crystal simply plugs into both
the proto and demo boards, this is very easy to do physically.
|
 |
6.25 MHz is non-standard, but I did find some from
alltronics.
|
 |
|
 |
80-MHz clock:
|
 |
100-MHz clock:

|
|
 |
Video BlackJack Game
|
 |
Playing Card Game Framework for TV and XGA
 |

|
 |
This is a basic framework for playing card games. I've minimized the
size of the resources, so there's plenty of room for code for the actual
game.
This demo just displays random cards on TV.
A basic psuedo-random number generator is included. Also, the code
for a variable # of deck shoe is there. |
 |
|
 |
|
|
 |
I really like the 1024x768 (XGA) tile driver (see 3rd Party
or Forum Stuff). But, wanted to be able to easily resize and move the graphics
window around. So, here are the modifications that do this:
 | CON .... gxt=32 '# graphics tiles in x direction (was 16)
gyt=4 '# graphics tiles in y direction (was 8) w_x = 15'40 'left tile# of graphics window
w_y = 3'30 'top tile# of graphics windows
w_left = w_x * 16
w_right = w_left + gxt*16 '256
w_top = (48 - w_y) * 16
w_bottom = w_top - gyt*16'128
PUB start | i, j, k ... 'start and setup graphics
gr.start
gr.setup(gxt, gyt, gxt*8, gyt*8, bitmap_base)'(16, 8, 16*8, 8*8, bitmap_base) ... 'make some graphics tiles on the screen
repeat i from 0 to (gyt-1) '7
repeat j from 0 to (gxt-1) '15
array.word[cols * (w_y + i) + j + w_x] := display_base + i*64 + j*gyt*64 + 21 'RJA
|
|
 |
|