diff --git a/demo/matrix/gfx1.spin b/demo/matrix/gfx1.spin deleted file mode 100644 index fc2226a..0000000 --- a/demo/matrix/gfx1.spin +++ /dev/null @@ -1,178 +0,0 @@ -DAT -{ - video-treiber-frame - - basiert auf dem tollen tutorial von bamse - -30-09-2009-dr235 driver 1 - originalcode, anpassung an hive - driver 2 - senkrechte balken - driver 3 - einfarbige fläche - driver 4 - wandernde farbbalken, 1 byte pro pixel :) - driver 5 - - - -} - -CON - _CLKMODE = xtal1 + pll16x - _XINFREQ = 5_000_000 - -PUB start - - cognew(@entry,0) ' neue cog mit video-treiber starten - -DAT org 0 -entry jmp #Start_of_driver ' Start here... - -' NTSC sync stuff. -NTSC_color_freq long 3_579_545 ' NTSC Color Frequency -NTSC_hsync_VSCL long 39 << 12 + 624 ' Used for the Horisontal Sync -NTSC_active_VSCL long 188 << 12 + 3008 ' Used for the Vertical sync -NTSC_hsync_pixels long %%11_0000_1_2222222_11 ' Horizontal sync pixels -NTSC_vsync_high_1 long %%1111111_2222222_11 ' Vertical sync signal part one for lines 1-6 and 13 to 18 -NTSC_vsync_high_2 long %%1111111111111111 ' Vertical sync signal part two for lines 1-6 and 13 to 18 -NTSC_vsync_low_1 long %%2222222222222222 ' Vertical sync signal part one for lines 7-12 -NTSC_vsync_low_2 long %%22_1111111_2222222 ' Vertical sync signal part two for lines 7-12 -NTSC_sync_signal_palette long $00_00_02_8A ' The sync Palette - -' hbeat --------+ +------------------------- /cs -' clk -------+| | -' /wr ------+|| | +---------------------- videopins -' /hs -----+||| | | -' |||| |--+ -------- d0..d7 -tvport_mask long %00000000_01110000_00000000_00000000 ' Maske für Video-Pins am Hive -vsu_cfg long %01110100_00000000_00000100_01110000 ' Wert für VCFG-Register - -NTSC_Graphic_Lines long 244 ' Anzahl der sichtbaren Zeilen -NTSC_Graphics_Pixels_VSCL long 16 << 12 + 16 ' 16 clocks per pixel, 64 clocks per frame. - - -PAL0 long $01 -PAL1 long $0E -PAL2 long $0D -PAL3 long $0C -PAL4 long $0B -DIF1 long $00_10 -CNT_ANIM long $4 - -' Loop counters. -line_loop long $0 ' Line counter... -pix_loop long $0 -anim_loop long $0 - -' General Purpose Registers -r0 long $0 ' Initialize to 0 -r1 long $0 -r2 long $0 -r3 long $0 -c1 long $0 ' colorregister -c2 long $0 -c3 long $0 - -'========================== Start of the actual driver ============================================= - -Start_of_driver - ' VCFG, setup Video Configuration register and 3-bit tv DAC pins to output - mov VCFG, vsu_cfg ' Konfiguration der VSU - or DIRA, tvport_mask ' Set DAC pins to output - - ' CTRA, setup Frequency to Drive Video - movi CTRA,#%00001_111 ' pll internal routed to Video, PHSx+=FRQx (mode 1) + pll(16x) - mov r1, NTSC_color_freq ' r1: Color frequency in Hz (3.579_545MHz) - rdlong r2, #0 ' Copy system clock from main memory location 0. (80Mhz) - ' perform r3 = 2^32 * r1 / r2 - mov r0,#32+1 -:loop cmpsub r1,r2 wc - rcl r3,#1 - shl r1,#1 - djnz r0,#:loop - mov FRQA, r3 ' Set frequency for counter A - - -'========================== Start of Frame Loop ============================================== - -frame_loop - mov anim_loop, CNT_ANIM -frame_loop2 - -'========================== Screen ============================================= - - mov line_loop, NTSC_Graphic_Lines ' anzahl der zeilen laden (244) - -user_lines - '------ zeilensynchronisation - mov VSCL, NTSC_hsync_VSCL ' Setup VSCL for horizontal sync. - waitvid NTSC_sync_signal_palette, NTSC_hsync_pixels ' Generate sync. - - - '------ sichtbarer zeileninhalt - mov VSCL, NTSC_Graphics_Pixels_VSCL ' Setup VSCL for user pixels. - - '------ verschiedenfarbige balken ausgeben - mov c1, PAL4 - add c1, c3 - mov pix_loop, #23 -bar_loop - add c1, #$10 ' 8 x pixel einzeln! ausgeben - mov c2, c1 ' also 2 tiles - waitvid c2, #0 ' 8 bit pro pixel! - add c2, #1 - waitvid c2, #0 - add c2, #1 - waitvid c2, #0 - add c2, #1 - waitvid c2, #0 - sub c2, #1 - waitvid c2, #0 - sub c2, #1 - waitvid c2, #0 - sub c2, #1 - waitvid c2, #0 - sub c2, #1 - waitvid c2, #0 - - djnz pix_loop, #bar_loop - - sub c2, #1 - waitvid c2, #0 ' 4 mal extrapixel, für das timing - sub c2, #1 ' also insgesamt 188 pixel pro zeile - waitvid c2, #0 - sub c2, #1 - waitvid c2, #0 - sub c2, #1 - waitvid c2, #0 - - djnz line_loop, #user_lines ' schleife durch alle zeilen - -'========================== The 16 lines of Horizontal sync ================================== - - mov line_loop, #6 ' Line 244, start of first high sync. -vsync_high1 mov VSCL, NTSC_hsync_VSCL - waitvid NTSC_sync_signal_palette, NTSC_vsync_high_1 - mov VSCL, NTSC_active_VSCL - waitvid NTSC_sync_signal_palette, NTSC_vsync_high_2 - djnz line_loop, #vsync_high1 - - mov line_loop, #6 ' Line 250, start of the Seration pulses. -vsync_low mov VSCL, NTSC_active_VSCL - waitvid NTSC_sync_signal_palette, NTSC_vsync_low_1 - mov VSCL,NTSC_hsync_VSCL - waitvid NTSC_sync_signal_palette, NTSC_vsync_low_2 - djnz line_loop, #vsync_low - - mov line_loop, #6 ' Line 256, start of second high sync. -vsync_high2 mov VSCL, NTSC_hsync_VSCL - waitvid NTSC_sync_signal_palette, NTSC_vsync_high_1 - mov VSCL, NTSC_active_VSCL - waitvid NTSC_sync_signal_palette, NTSC_vsync_high_2 - djnz line_loop, #vsync_high2 - -'========================== End of Frame Loop ============================================= - djnz anim_loop, #frame_loop2 - add c3, #$10 - - -'========================== Animation ================================== - - jmp #frame_loop ' And repeat for ever... -FIT - \ No newline at end of file diff --git a/demo/matrix/keyb-treiber.spin b/demo/matrix/keyb-treiber.spin deleted file mode 100644 index 5333e3a..0000000 Binary files a/demo/matrix/keyb-treiber.spin and /dev/null differ diff --git a/demo/matrix/matrix.spin b/demo/matrix/matrix.spin deleted file mode 100644 index e4f1e23..0000000 Binary files a/demo/matrix/matrix.spin and /dev/null differ diff --git a/demo/matrix/vga-treiber.spin b/demo/matrix/vga-treiber.spin deleted file mode 100644 index 9acf513..0000000 Binary files a/demo/matrix/vga-treiber.spin and /dev/null differ diff --git a/demo/graphics/Graphics.spin b/demo/toolbox1/Graphics.spin similarity index 100% rename from demo/graphics/Graphics.spin rename to demo/toolbox1/Graphics.spin diff --git a/demo/graphics/Mouse.spin b/demo/toolbox1/Mouse.spin similarity index 100% rename from demo/graphics/Mouse.spin rename to demo/toolbox1/Mouse.spin diff --git a/demo/graphics/TV.spin b/demo/toolbox1/TV.spin similarity index 100% rename from demo/graphics/TV.spin rename to demo/toolbox1/TV.spin diff --git a/demo/graphics/demo-1.spin b/demo/toolbox1/demo-1.spin similarity index 100% rename from demo/graphics/demo-1.spin rename to demo/toolbox1/demo-1.spin diff --git a/demo/graphics/demo-10-animation1.spin b/demo/toolbox1/demo-10-animation1.spin similarity index 100% rename from demo/graphics/demo-10-animation1.spin rename to demo/toolbox1/demo-10-animation1.spin diff --git a/demo/graphics/demo-10-animation2.spin b/demo/toolbox1/demo-10-animation2.spin similarity index 100% rename from demo/graphics/demo-10-animation2.spin rename to demo/toolbox1/demo-10-animation2.spin diff --git a/demo/graphics/demo-10-logo.spin b/demo/toolbox1/demo-10-logo.spin similarity index 100% rename from demo/graphics/demo-10-logo.spin rename to demo/toolbox1/demo-10-logo.spin diff --git a/demo/graphics/demo-10-logo2.binary b/demo/toolbox1/demo-10-logo2.binary similarity index 100% rename from demo/graphics/demo-10-logo2.binary rename to demo/toolbox1/demo-10-logo2.binary diff --git a/demo/graphics/demo-10-logo2.spin b/demo/toolbox1/demo-10-logo2.spin similarity index 100% rename from demo/graphics/demo-10-logo2.spin rename to demo/toolbox1/demo-10-logo2.spin diff --git a/demo/graphics/demo-11-matrix1.spin b/demo/toolbox1/demo-11-matrix1.spin similarity index 100% rename from demo/graphics/demo-11-matrix1.spin rename to demo/toolbox1/demo-11-matrix1.spin diff --git a/demo/graphics/demo-2.spin b/demo/toolbox1/demo-2.spin similarity index 100% rename from demo/graphics/demo-2.spin rename to demo/toolbox1/demo-2.spin diff --git a/demo/graphics/demo-3-objekte.spin b/demo/toolbox1/demo-3-objekte.spin similarity index 100% rename from demo/graphics/demo-3-objekte.spin rename to demo/toolbox1/demo-3-objekte.spin diff --git a/demo/graphics/demo-4-boing.spin b/demo/toolbox1/demo-4-boing.spin similarity index 100% rename from demo/graphics/demo-4-boing.spin rename to demo/toolbox1/demo-4-boing.spin diff --git a/demo/graphics/demo-5-scroller.spin b/demo/toolbox1/demo-5-scroller.spin similarity index 100% rename from demo/graphics/demo-5-scroller.spin rename to demo/toolbox1/demo-5-scroller.spin diff --git a/demo/graphics/demo-6-mouse.spin b/demo/toolbox1/demo-6-mouse.spin similarity index 100% rename from demo/graphics/demo-6-mouse.spin rename to demo/toolbox1/demo-6-mouse.spin diff --git a/demo/graphics/demo-7-satellite.spin b/demo/toolbox1/demo-7-satellite.spin similarity index 100% rename from demo/graphics/demo-7-satellite.spin rename to demo/toolbox1/demo-7-satellite.spin diff --git a/demo/graphics/demo-7-satellite2.spin b/demo/toolbox1/demo-7-satellite2.spin similarity index 100% rename from demo/graphics/demo-7-satellite2.spin rename to demo/toolbox1/demo-7-satellite2.spin diff --git a/demo/graphics/demo-8-sinus.spin b/demo/toolbox1/demo-8-sinus.spin similarity index 100% rename from demo/graphics/demo-8-sinus.spin rename to demo/toolbox1/demo-8-sinus.spin diff --git a/demo/graphics/demo-9-lissajou.spin b/demo/toolbox1/demo-9-lissajou.spin similarity index 100% rename from demo/graphics/demo-9-lissajou.spin rename to demo/toolbox1/demo-9-lissajou.spin diff --git a/demo/graphics/demo-9-lissajou2.spin b/demo/toolbox1/demo-9-lissajou2.spin similarity index 100% rename from demo/graphics/demo-9-lissajou2.spin rename to demo/toolbox1/demo-9-lissajou2.spin diff --git a/demo/graphics/demo-9-lissajou3.spin b/demo/toolbox1/demo-9-lissajou3.spin similarity index 100% rename from demo/graphics/demo-9-lissajou3.spin rename to demo/toolbox1/demo-9-lissajou3.spin diff --git a/demo/graphics/dlEngine-Test.spin b/demo/toolbox1/dlEngine-Test.spin similarity index 100% rename from demo/graphics/dlEngine-Test.spin rename to demo/toolbox1/dlEngine-Test.spin diff --git a/demo/graphics/gra-emu.spin b/demo/toolbox1/gra-emu.spin similarity index 100% rename from demo/graphics/gra-emu.spin rename to demo/toolbox1/gra-emu.spin diff --git a/demo/graphics/graphics_XOR.spin b/demo/toolbox1/graphics_XOR.spin similarity index 100% rename from demo/graphics/graphics_XOR.spin rename to demo/toolbox1/graphics_XOR.spin diff --git a/demo/graphics/ios.spin b/demo/toolbox1/ios.spin similarity index 100% rename from demo/graphics/ios.spin rename to demo/toolbox1/ios.spin diff --git a/demo/graphics/potato-commented-graphics-color.spin b/demo/toolbox1/potato-commented-graphics-color.spin similarity index 100% rename from demo/graphics/potato-commented-graphics-color.spin rename to demo/toolbox1/potato-commented-graphics-color.spin