forked from KolibriOS/kolibrios
rename old screenserver into 'zeroline' and move it to demos folder, update the code so it can be used as a screensaver with a new @ss
upload a new wallpapper brickhouseislands3c.png git-svn-id: svn://kolibrios.org@9450 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
0dea1e1980
commit
011d6f7a41
@ -453,6 +453,7 @@ tup.append_table(img_files, {
|
|||||||
{"DEMOS/TUBE", PROGS .. "/demos/tube/trunk/tube"},
|
{"DEMOS/TUBE", PROGS .. "/demos/tube/trunk/tube"},
|
||||||
{"DEMOS/UNVWATER", PROGS .. "/demos/unvwater/trunk/unvwater"},
|
{"DEMOS/UNVWATER", PROGS .. "/demos/unvwater/trunk/unvwater"},
|
||||||
{"DEMOS/WEB", PROGS .. "/demos/web/trunk/web"},
|
{"DEMOS/WEB", PROGS .. "/demos/web/trunk/web"},
|
||||||
|
{"DEMOS/ZEROLINE", PROGS .. "/demos/zeroline/trunk/zeroline"},
|
||||||
{"DEVELOP/ASCIIVJU", PROGS .. "/develop/asciivju/trunk/asciivju"},
|
{"DEVELOP/ASCIIVJU", PROGS .. "/develop/asciivju/trunk/asciivju"},
|
||||||
{"DEVELOP/BOARD", PROGS .. "/system/board/trunk/board"},
|
{"DEVELOP/BOARD", PROGS .. "/system/board/trunk/board"},
|
||||||
{"DEVELOP/CEDIT", PROGS .. "/develop/cedit/CEDIT"},
|
{"DEVELOP/CEDIT", PROGS .. "/develop/cedit/CEDIT"},
|
||||||
|
@ -6,11 +6,11 @@ Home Rand and Robyn Miller Based on the game "Cosmic
|
|||||||
Free Yourself Jonathan Besler https://interfacelift.com/user/86064/jonathan_besler.html
|
Free Yourself Jonathan Besler https://interfacelift.com/user/86064/jonathan_besler.html
|
||||||
Unsplash Alexander Popov https://unsplash.com/@5tep5
|
Unsplash Alexander Popov https://unsplash.com/@5tep5
|
||||||
KolibriOS Tan Viktorya Sidorova
|
KolibriOS Tan Viktorya Sidorova
|
||||||
|
brickhouseislands3c Mrmo Tarius https://pixeljoint.com/pixelart/85317.htm
|
||||||
|
|
||||||
=====Icons====
|
=====Icons====
|
||||||
|
|
||||||
HEX-editor Sublyme http://www.pixeljoint.com/p/34532.htm
|
HEX-editor Sublyme http://www.pixeljoint.com/p/34532.htm
|
||||||
Browser Plutogeezer http://www.pixeljoint.com/p/12237.htm
|
|
||||||
Snake real Troll http://realtroll.npage.de
|
Snake real Troll http://realtroll.npage.de
|
||||||
Flood-it iMoose http://benjamus.deviantart.com
|
Flood-it iMoose http://benjamus.deviantart.com
|
||||||
Dicty Susumu Yoshida http://www.mcdodesign.com
|
Dicty Susumu Yoshida http://www.mcdodesign.com
|
||||||
|
BIN
data/common/wallpapers/t__brickhouseislands3c.png
Normal file
BIN
data/common/wallpapers/t__brickhouseislands3c.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.9 KiB |
@ -38,8 +38,8 @@ include "..\..\..\macros.inc"
|
|||||||
start:
|
start:
|
||||||
cmp dword[params], '@ss'
|
cmp dword[params], '@ss'
|
||||||
setz [screensaver]
|
setz [screensaver]
|
||||||
mov ebx, EVM_REDRAW + EVM_KEY
|
mov ebx, EVM_REDRAW + EVM_KEY + EVM_BUTTON
|
||||||
cmovz ebx, EVM_REDRAW + EVM_KEY + EVM_MOUSE
|
cmovz ebx, EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE
|
||||||
mcall 40
|
mcall 40
|
||||||
|
|
||||||
cmp [flscr],0
|
cmp [flscr],0
|
||||||
|
@ -353,8 +353,8 @@ endp
|
|||||||
start:
|
start:
|
||||||
cmp dword[params], '@ss'
|
cmp dword[params], '@ss'
|
||||||
setz [screensaver]
|
setz [screensaver]
|
||||||
mov ebx, EVM_REDRAW + EVM_KEY
|
mov ebx, EVM_REDRAW + EVM_KEY + EVM_BUTTON
|
||||||
cmovz ebx, EVM_REDRAW + EVM_KEY + EVM_MOUSE
|
cmovz ebx, EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE
|
||||||
mcall 40
|
mcall 40
|
||||||
|
|
||||||
mov edi, transparent_cursor
|
mov edi, transparent_cursor
|
||||||
|
2
programs/demos/zeroline/trunk/Tupfile.lua
Normal file
2
programs/demos/zeroline/trunk/Tupfile.lua
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
if tup.getconfig("NO_FASM") ~= "" then return end
|
||||||
|
tup.rule("zeroline.asm", "fasm %f %o " .. tup.getconfig("KPACK_CMD"), "zeroline")
|
3
programs/demos/zeroline/trunk/build.bat
Normal file
3
programs/demos/zeroline/trunk/build.bat
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@fasm -m 16384 zeroline.asm zeroline
|
||||||
|
@kpack @ss
|
||||||
|
@pause
|
@ -2,11 +2,8 @@
|
|||||||
# This script does for linux the same as build.bat for DOS,
|
# This script does for linux the same as build.bat for DOS,
|
||||||
# it compiles the KoOS kernel, hopefully ;-)
|
# it compiles the KoOS kernel, hopefully ;-)
|
||||||
|
|
||||||
echo "lang fix en"
|
fasm -m 16384 zeroline.asm zeroline
|
||||||
echo "lang fix en" > lang.inc
|
kpack zeroline
|
||||||
fasm -m 16384 @ss.asm @ss
|
|
||||||
kpack @ss
|
|
||||||
rm -f lang.inc
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
@ -24,15 +24,16 @@
|
|||||||
dd I_Param ; boot parameters
|
dd I_Param ; boot parameters
|
||||||
dd 0x0 ; path
|
dd 0x0 ; path
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
include 'lang.inc'
|
|
||||||
include '..\..\..\macros.inc'
|
include '..\..\..\macros.inc'
|
||||||
;include 'debug.inc'
|
;include 'debug.inc'
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
align 4
|
align 4
|
||||||
START:
|
START:
|
||||||
mcall 68,11
|
mcall 68,11
|
||||||
mcall 40,110010b
|
mcall 40, EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE
|
||||||
; boot parameters
|
; boot parameters
|
||||||
|
cmp [I_Param], dword '@ss'
|
||||||
|
setz [screensaver]
|
||||||
cmp [I_Param],dword 'ZERO'
|
cmp [I_Param],dword 'ZERO'
|
||||||
jne @f
|
jne @f
|
||||||
mov [type],dword 0
|
mov [type],dword 0
|
||||||
@ -52,15 +53,11 @@ bgr_changed:
|
|||||||
mov [x_max],ax
|
mov [x_max],ax
|
||||||
shl eax,16
|
shl eax,16
|
||||||
mov [top_right_corner],eax
|
mov [top_right_corner],eax
|
||||||
|
|
||||||
|
call create_ss
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
align 4
|
align 4
|
||||||
still:
|
still:
|
||||||
movzx ebx,[time]
|
|
||||||
imul ebx,60*100
|
|
||||||
mcall 23 ; ¦¤ñ¬ ᮡëâ¨ï ¢ â¥ç¥¨¥ [time] ¬¨ãâ
|
|
||||||
test eax,eax
|
|
||||||
jz create_ss_thread
|
|
||||||
|
|
||||||
cmp al,2 ; key in buffer?
|
cmp al,2 ; key in buffer?
|
||||||
jz key
|
jz key
|
||||||
|
|
||||||
@ -77,33 +74,12 @@ still:
|
|||||||
jnz still
|
jnz still
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
align 4
|
align 4
|
||||||
create_setup:
|
|
||||||
test [params],2
|
|
||||||
jnz still ; ®ª® áâ஥ª 㦥 ᮧ¤ ®
|
|
||||||
mcall 51,1,sthread,sthread_stack_top
|
|
||||||
or [params],2
|
|
||||||
jmp still
|
|
||||||
;------------------------------------------------------------------------------
|
|
||||||
align 4
|
|
||||||
key:
|
key:
|
||||||
mcall ; eax = 2
|
mcall ; eax = 2
|
||||||
jmp still
|
jmp still
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
align 4
|
align 4
|
||||||
create_ss_thread:
|
|
||||||
test [params],3
|
|
||||||
jnz still
|
|
||||||
call create_ss
|
|
||||||
jmp still
|
|
||||||
;------------------------------------------------------------------------------
|
|
||||||
align 4
|
|
||||||
create_ss:
|
create_ss:
|
||||||
mcall 51,1,thread,thread_stack_top
|
|
||||||
or [params],1
|
|
||||||
ret
|
|
||||||
;------------------------------------------------------------------------------
|
|
||||||
align 4
|
|
||||||
thread:
|
|
||||||
mcall 40,100010b
|
mcall 40,100010b
|
||||||
;set_new_cursor_skin - transparent cursor
|
;set_new_cursor_skin - transparent cursor
|
||||||
mcall 68,12,32*32*4 ; get memory for own cursor area
|
mcall 68,12,32*32*4 ; get memory for own cursor area
|
||||||
@ -203,11 +179,13 @@ tstill:
|
|||||||
;--------------------------------------
|
;--------------------------------------
|
||||||
align 4
|
align 4
|
||||||
thr_end:
|
thr_end:
|
||||||
|
cmp [screensaver], 0
|
||||||
|
jz @f
|
||||||
|
mcall 70, f70
|
||||||
|
@@:
|
||||||
cmp [type],dword 24
|
cmp [type],dword 24
|
||||||
jne @f
|
jne @f
|
||||||
mcall 68,13,[fileinfo.point]
|
mcall 68,13,[fileinfo.point]
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
@@:
|
@@:
|
||||||
and [params], not 1
|
and [params], not 1
|
||||||
or eax,-1
|
or eax,-1
|
||||||
@ -348,218 +326,6 @@ dnol:
|
|||||||
add [lcolor],0x010201
|
add [lcolor],0x010201
|
||||||
ret
|
ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
align 4
|
|
||||||
sthread: ; start of execution
|
|
||||||
call sdraw_window
|
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
sstill:
|
|
||||||
mcall 10 ; wait here for event
|
|
||||||
dec eax ; redraw request ?
|
|
||||||
je sthread
|
|
||||||
|
|
||||||
dec eax ; key in buffer ?
|
|
||||||
jne sbutton
|
|
||||||
|
|
||||||
mcall 2
|
|
||||||
jmp snoclose ;sstill
|
|
||||||
;------------------------------------------------------------------------------
|
|
||||||
align 4
|
|
||||||
sbutton: ; button
|
|
||||||
mcall 17 ; get id
|
|
||||||
|
|
||||||
cmp ah,1 ; button id=1 ?
|
|
||||||
jne snoclose
|
|
||||||
|
|
||||||
and [params],not 2
|
|
||||||
mov eax,-1 ; close this program
|
|
||||||
mcall
|
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
snoclose:
|
|
||||||
cmp ah,7
|
|
||||||
jne nosetfl
|
|
||||||
|
|
||||||
xor [params],1
|
|
||||||
call drawflag
|
|
||||||
call drawtype
|
|
||||||
call drawtime
|
|
||||||
jmp sstill
|
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
nosetfl:
|
|
||||||
test [params],1
|
|
||||||
jnz sstill
|
|
||||||
|
|
||||||
cmp ah,2
|
|
||||||
jne notypedown
|
|
||||||
|
|
||||||
mov eax,[type]
|
|
||||||
test eax,eax
|
|
||||||
je sstill
|
|
||||||
|
|
||||||
sub eax,12
|
|
||||||
jmp typeupdn
|
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
notypedown:
|
|
||||||
cmp ah,3
|
|
||||||
jne notypeup
|
|
||||||
|
|
||||||
mov eax,[type]
|
|
||||||
cmp eax,24
|
|
||||||
jae sstill
|
|
||||||
|
|
||||||
add eax,12
|
|
||||||
jmp typeupdn
|
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
notypeup:
|
|
||||||
cmp ah,4
|
|
||||||
jne notimedown
|
|
||||||
|
|
||||||
mov al,[time]
|
|
||||||
cmp al,1
|
|
||||||
jbe sstill
|
|
||||||
|
|
||||||
dec eax
|
|
||||||
; das
|
|
||||||
jmp timeupdn
|
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
notimedown:
|
|
||||||
cmp ah,5
|
|
||||||
jne notimeup
|
|
||||||
|
|
||||||
mov al,[time]
|
|
||||||
cmp al,59 ; 0x59
|
|
||||||
jae sstill
|
|
||||||
|
|
||||||
inc eax
|
|
||||||
; daa
|
|
||||||
jmp timeupdn
|
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
notimeup:
|
|
||||||
cmp ah,6
|
|
||||||
jne noshow
|
|
||||||
|
|
||||||
mcall 5,10
|
|
||||||
call create_ss
|
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
noshow:
|
|
||||||
jmp sstill
|
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
timeupdn:
|
|
||||||
mov [time],al
|
|
||||||
call drawtime
|
|
||||||
jmp sstill
|
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
typeupdn:
|
|
||||||
mov [type],eax
|
|
||||||
call drawtype
|
|
||||||
jmp sstill
|
|
||||||
;------------------------------------------------------------------------------
|
|
||||||
; *********************************************
|
|
||||||
; ******* WINDOW DEFINITIONS AND DRAW ********
|
|
||||||
; *********************************************
|
|
||||||
align 4
|
|
||||||
sdraw_window:
|
|
||||||
mcall 12,1
|
|
||||||
|
|
||||||
xor eax,eax ; function 0 : define and draw window
|
|
||||||
xor esi,esi
|
|
||||||
mcall ,<100,215>,<100,70>,0x13400088,,title
|
|
||||||
|
|
||||||
mcall 8,<47,10>,<31,10>,2,0x702050
|
|
||||||
|
|
||||||
push ebx
|
|
||||||
add ebx,13*65536
|
|
||||||
mov edi,ebx
|
|
||||||
inc edx
|
|
||||||
mcall
|
|
||||||
pop ebx
|
|
||||||
|
|
||||||
add ecx,15*65536
|
|
||||||
inc edx
|
|
||||||
mcall
|
|
||||||
|
|
||||||
mov ebx,edi
|
|
||||||
inc edx
|
|
||||||
mcall
|
|
||||||
|
|
||||||
inc edx
|
|
||||||
mcall ,<160,40>,<28,14>
|
|
||||||
|
|
||||||
mcall 4,<15,33>,0x80ffffff,setuptext ; write text to window
|
|
||||||
|
|
||||||
add ebx,15
|
|
||||||
add edx,10
|
|
||||||
mcall
|
|
||||||
|
|
||||||
mcall ,<169,32>,,buttext
|
|
||||||
|
|
||||||
call drawtype
|
|
||||||
call drawtime
|
|
||||||
call drawflag
|
|
||||||
|
|
||||||
mcall 12,2
|
|
||||||
ret
|
|
||||||
;------------------------------------------------------------------------------
|
|
||||||
align 4
|
|
||||||
drawtype:
|
|
||||||
mov edx,0xffffff
|
|
||||||
test [params], 1
|
|
||||||
jz noblue
|
|
||||||
|
|
||||||
mov edx,0x4e00e7
|
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
noblue:
|
|
||||||
mcall 13,<80,75>,<30,12>
|
|
||||||
xor ecx,ecx
|
|
||||||
mov edx,typetext
|
|
||||||
add edx,[type]
|
|
||||||
mcall 4,<82,32>,,,12
|
|
||||||
ret
|
|
||||||
;------------------------------------------------------------------------------
|
|
||||||
align 4
|
|
||||||
drawtime:
|
|
||||||
mov edx,0xffffff
|
|
||||||
test [params], 1
|
|
||||||
jz noblue1
|
|
||||||
|
|
||||||
mov edx,0x4e00e7
|
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
noblue1:
|
|
||||||
mcall 13,<80,15>,<45,12>
|
|
||||||
xor esi,esi
|
|
||||||
movzx ecx,byte [time]
|
|
||||||
mcall 47,0x00020000,,<82,47>
|
|
||||||
ret
|
|
||||||
;------------------------------------------------------------------------------
|
|
||||||
align 4
|
|
||||||
drawflag:
|
|
||||||
mcall 8,,,0x80000007 ; before we need delete button
|
|
||||||
; otherwise, a few hours later the application will spend all buttons of system
|
|
||||||
mcall ,<150,10>,<45,10>,7,0xe0e0e0 ; then create button
|
|
||||||
|
|
||||||
mov edx,flag
|
|
||||||
bt dword [params],0
|
|
||||||
jc setf
|
|
||||||
|
|
||||||
inc edx
|
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
setf:
|
|
||||||
xor ecx,ecx
|
|
||||||
mcall 4,<153,47>,,,1
|
|
||||||
ret
|
|
||||||
;------------------------------------------------------------------------------
|
|
||||||
align 4 ; DATA AREA
|
align 4 ; DATA AREA
|
||||||
type dd 12
|
type dd 12
|
||||||
delay dd 100
|
delay dd 100
|
||||||
@ -575,7 +341,6 @@ stringlen dd 1
|
|||||||
stringstart dd 0
|
stringstart dd 0
|
||||||
|
|
||||||
stringpos dw 16
|
stringpos dw 16
|
||||||
time db 15 ; ¢à¥¬ï ¤® § ¯ã᪠§ áâ ¢ª¨ ¢ ¬¨ãâ å
|
|
||||||
params db 0 ;if bit 0 set-ssaver works if bit 1 set-setup works
|
params db 0 ;if bit 0 set-ssaver works if bit 1 set-setup works
|
||||||
|
|
||||||
fileinfo:
|
fileinfo:
|
||||||
@ -586,12 +351,12 @@ fileinfo:
|
|||||||
.point: dd 0
|
.point: dd 0
|
||||||
db '/sys/macros.inc',0
|
db '/sys/macros.inc',0
|
||||||
|
|
||||||
buttext db 'SHOW',0
|
f70: ; run
|
||||||
flag db 'V '
|
dd 7, 0, 0, 0, 0
|
||||||
title db 'SCREENSAVER SETUP',0
|
db '/sys/@SS',0
|
||||||
setuptext db 'TYPE: < >',0
|
|
||||||
db 'TIME: < > MINUTES NEVER',0
|
screensaver db ?
|
||||||
typetext db 'BLACK SCREENCOLOR LINES ASSEMBLER '
|
|
||||||
;-------------------------------
|
;-------------------------------
|
||||||
IM_END: ; UNINITIALIZED DATA
|
IM_END: ; UNINITIALIZED DATA
|
||||||
top_right_corner rd 1
|
top_right_corner rd 1
|
||||||
@ -604,9 +369,5 @@ fileinfo_buffer:
|
|||||||
rb 40
|
rb 40
|
||||||
;-------------------------------
|
;-------------------------------
|
||||||
rb 512
|
rb 512
|
||||||
sthread_stack_top:
|
|
||||||
rb 512
|
|
||||||
thread_stack_top:
|
|
||||||
rb 512
|
|
||||||
stack_top:
|
stack_top:
|
||||||
I_END:
|
I_END:
|
@ -1,3 +0,0 @@
|
|||||||
if tup.getconfig("NO_FASM") ~= "" then return end
|
|
||||||
tup.rule("echo lang fix " .. ((tup.getconfig("LANG") == "") and "en" or tup.getconfig("LANG")) .. " > lang.inc", {"lang.inc"})
|
|
||||||
tup.rule({"@ss.asm", extra_inputs = {"lang.inc"}}, "fasm %f %o " .. tup.getconfig("KPACK_CMD"), "@ss")
|
|
@ -1,6 +0,0 @@
|
|||||||
@erase lang.inc
|
|
||||||
@echo lang fix en >lang.inc
|
|
||||||
@fasm -m 16384 @ss.asm @ss
|
|
||||||
@kpack @ss
|
|
||||||
@erase lang.inc
|
|
||||||
@pause
|
|
@ -1,6 +0,0 @@
|
|||||||
@erase lang.inc
|
|
||||||
@echo lang fix ru >lang.inc
|
|
||||||
@fasm -m 16384 @ss.asm @ss
|
|
||||||
@kpack @ss
|
|
||||||
@erase lang.inc
|
|
||||||
@pause
|
|
Loading…
Reference in New Issue
Block a user