/programs/media/gifview/trunk/gif_lite.inc |
---|
4,7 → 4,7 |
; This include file will contain functions to handle GIF image format |
; |
; Created: August 15, 2004 |
; Last changed: September 9, 2004 |
; Last changed: August 25, 2006 |
; Change COLOR_ORDER in your program |
; if colors are displayed improperly |
88,7 → 88,7 |
mov [.img_count],eax |
inc eax |
cmp dword[esi],'GIF8' |
jne .er ; signature |
jne .ex ; signature |
mov ecx,[esi+0xa] |
inc eax |
add esi,0xd |
123,7 → 123,7 |
jmp .block_skip |
.noextblock: |
cmp byte[edi],0x2c ; image beginning |
jne .er |
jne .ex |
inc [.img_count] |
inc edi |
mov esi,[.cur_info] |
211,9 → 211,6 |
call .Gif_output |
pop ebx eax |
jmp .add |
.er: |
pop edi |
jmp .ex |
.end: |
mov eax,[.cur_info] |
mov [eax],edi |
/programs/media/gifview/trunk/gifview.asm |
---|
4,7 → 4,7 |
; Uses GIF_LITE 2.0 |
; |
; Created: August 31, 2004 |
; Last changed: September 9, 2004 |
; Last changed: August 25, 2006 |
; |
; COMPILE WITH FASM |
50,9 → 50,9 |
mov edi,filename |
mov ecx,[inp_pos] |
rep movsb |
mov byte[edi],al |
stosb |
openfile2: |
mov eax,58 |
mov eax,70 |
mov ebx,file_info |
int 0x40 |
cmp eax,6 |
60,8 → 60,8 |
test eax,eax |
jnz ok2 |
temp: |
cmp ebx,64 |
jbe ok2 |
; cmp ebx,64 |
; jbe ok2 |
and [entered],0 |
xor eax,eax |
68,11 → 68,11 |
mov [imgcount],eax |
mov esi,filename |
mov edi,fn_input |
mov ecx,256 ;[filename_len] |
rep movsb |
mov ecx,256/4 ;[filename_len] |
rep movsd |
mov edi,fn_input |
mov ecx,50 |
mov ecx,256 |
xor eax,eax |
repne scasb |
sub edi,fn_input |
101,16 → 101,22 |
call draw_window |
still: |
cmp [imgcount], 1 |
jnz .delay |
mov eax, 10 |
int 0x40 |
jmp @f |
.delay: |
mov ebx,DELAY |
mov eax,23 |
int 0x40 |
cmp eax,1 |
je red |
cmp eax,2 |
je key |
cmp eax,3 |
je button |
@@: |
dec eax |
jz red |
dec eax |
jz key |
dec eax |
jz button |
mov eax,[imgcount] |
cmp eax,1 |
je still |
167,7 → 173,7 |
jz wait_input |
dec [inp_pos] |
jmp wait_input |
jmp still |
; jmp still |
;**************************************** |
;******* DRAW CONTENTS OF INPUT LINE **** |
290,9 → 296,9 |
file_info: |
dd 0 |
dd 0 |
dd 0x100000/512;0x200000 |
dd workarea |
dd Image;0x100000 |
dd 0 |
dd 0x100000;0x200000 |
dd workarea;0x100000 |
I_END: ; ª®¥æ ¯à®£à ¬¬ë |
filename: |
; db '/hd/1/gif/smileys/sm112000.gif',0 |
300,7 → 306,7 |
; db '/hd/1/gif/explode1.gif',0 |
; db '/hd/1/gif/tapeta.gif',0 |
; db '/hd/1/gif/meos.gif',0 |
rb 256 |
rb 257 |
;filename_len dd 0 |
entered rd 1 |
/programs/media/gifview/trunk/macros.inc |
---|
123,8 → 123,10 |
end if |
} |
macro __mov reg,a { ; mike.dld |
if ~a eq |
macro __mov reg,a,b { ; mike.dld |
if (~a eq)&(~b eq) |
mpack reg,a,b |
else if (~a eq)&(b eq) |
mov reg,a |
end if |
} |
141,10 → 143,6 |
; optimize the code for size |
__regs fix <eax,ebx,ecx,edx,esi,edi,ebp,esp> |
176,7 → 174,7 |
macro mov arg1,arg2 |
{ |
if (arg1 in __regs) & (arg2 eqtype 0) |
if (arg1 in __regs) & ((arg2 eqtype 0) | (arg2 eqtype '0')) |
if (arg2) = 0 |
xor arg1,arg1 |
else if (arg2) = 1 |
/programs/media/jpegview/trunk/filelib.asm |
---|
1,52 → 1,46 |
file_handler: |
.position=0 |
.size=4 |
.bufer_block=8 |
.operation=12 |
.first_block=16 |
.n_blocks=20 |
.bufer=24 |
.work_area=28 |
.name=32 |
.st_size=32+128 |
.operation=0 |
.position=4 |
.reserved=8 |
.n_bytes=12 |
.bufer=16 |
.name=20 |
.st_size=20+1024 |
open: ;esi=name_string |
;retorna eax |
pushad |
push dword [work_area] |
mov ecx,512 ;bufer |
call malloc |
push edi |
mov ecx,file_handler.st_size |
call mallocz |
pop dword[edi+file_handler.bufer] |
pop dword[edi+file_handler.work_area] |
mov [esp+28],edi |
mov ecx,100 |
push edi |
mov ecx,1024 |
add edi,file_handler.name |
call movedata |
mov edi,[esp+28] |
mov byte[edi+file_handler.n_blocks],1 |
mov eax,58 |
lea ebx,[edi+file_handler.operation] |
push edi |
int 0x40 |
pop edi |
; test if file exists |
lea ebx,[edi+file_handler.operation] |
mov byte[ebx],5 |
mov dword[ebx+16],fileattr |
mov eax,70 |
int 0x40 |
cmp eax,2 |
jz .virtual |
test eax,eax |
jnz close.b |
mov [edi+file_handler.size],ebx |
@@: |
clc |
popad |
ret |
.virtual: |
mov byte [fileattr], 0x10 |
jmp @b |
close: |
pushad |
.b: |
mov eax,[esp+28] |
mov edi,[eax+file_handler.bufer] |
mov edi,[esp+28] |
call free |
mov edi,eax |
call free |
popad |
xor eax,eax |
ret |
55,88 → 49,20 |
read: ;(f,bufer,nbytes) eax,edi,ecx ncr |
;retorna bytes leidos en ecx |
pushad |
mov edx,[eax+file_handler.size] |
sub edx,[eax+file_handler.position] |
cmp edx,ecx |
jnc .nb_ok |
mov ecx,edx |
mov [esp+24],edx |
.nb_ok: |
jecxz .final |
mov byte[eax+file_handler.operation],0 |
test dword[eax+file_handler.position],511 |
jz .l1 |
call .bufer |
.l1: |
mov edx,ecx |
shr edx,9 |
jz .l2 |
mov [eax+file_handler.n_blocks],edx |
mov edx,[eax+file_handler.position] |
shr edx,9 |
mov [eax+file_handler.first_block],edx |
xchg edi,[eax+file_handler.bufer] |
pushad |
lea ebx,[eax+file_handler.operation] |
mov eax,58 |
int 40h |
cmp eax,0ffffff00h |
jnc .error |
lea ebx, [eax+file_handler.operation] |
mov byte [ebx], 0 |
mov [ebx+12], ecx |
mov [ebx+16], edi |
mov eax, 70 |
int 0x40 |
cmp ebx, -1 |
sbb ebx, -1 |
mov eax, [esp+28] |
add [eax+file_handler.position], ebx |
mov [esp+24], ebx |
popad |
xchg edi,[eax+file_handler.bufer] |
mov edx,ecx |
and edx,0fffffe00h |
add [eax+file_handler.position],edx |
add edi,edx |
.l2: |
and ecx,511 |
jz .final |
call .bufer |
.final: |
popad |
ret |
.bufer: |
pushad |
mov ebx,[eax+file_handler.position] |
shr ebx,9 |
cmp ebx,[eax+file_handler.bufer_block] |
je .l3 |
mov [eax+file_handler.first_block],ebx |
mov [eax+file_handler.bufer_block],ebx |
mov dword[eax+file_handler.n_blocks],1 |
lea ebx,[eax+file_handler.operation] |
mov eax,58 |
int 40h |
cmp eax,0ffffff00h |
jnc .error |
.l3: |
mov eax,[esp+28] |
mov edx,[eax+file_handler.position] |
mov esi,[eax+file_handler.bufer] |
and edx,511 |
add esi,edx |
neg edx |
add edx,512 |
cmp ecx,edx |
jc .l4 |
mov ecx,edx |
.l4: |
add [eax+file_handler.position],ecx |
sub [esp+24],ecx |
pop edi |
call movedata |
push edi |
popad |
ret |
.error: |
popad |
popad |
xor ecx,ecx |
stc |
ret |
ftell: mov edx,[eax+file_handler.position] |
ret |
lseek: ;eax=file edx=pos |
/programs/media/jpegview/trunk/jpeglib.asm |
---|
99,6 → 99,8 |
eoi: |
mov esp,[ebp] |
; do not close file - this will be done by caller |
and dword [ebp+fichero], 0 |
call jpeg_close |
popad |
xor ebp,ebp |
/programs/media/jpegview/trunk/jpegview.asm |
---|
18,7 → 18,10 |
; unos retoques |
; version 0.14 10th August 2004 |
; Mike Hibbett Added setting default colours |
; version 0.15 24th August 2006 |
; diamond (rewritten to function 70) |
; |
memsize=20000h |
org 0 |
PARAMS = memsize - 1024 |
33,7 → 36,6 |
dd memsize - 1024 ; esp |
dd PARAMS , 0x0 ; I_Param , I_Icon |
include 'lang.inc' |
stack_size=4096 + 1024 |
include 'macros.inc' |
50,10 → 52,6 |
mov edi,fin |
call add_mem |
; Get some memory |
mov ecx,16384 |
call malloc |
mov [work_area],edi |
call colorprecalc ;inicializa tablas usadas para pasar de ybr a bgr |
call draw_window |
call read_string.rs_done |
148,10 → 146,6 |
mov ecx,memsize-fin-stack_size ; size |
mov edi,fin ; pointer |
call add_mem ; mark memory from fin to 0x100000-1024 as free |
; Get some memory |
mov ecx,16384 ; get 16 Kb of memory |
call malloc ; returns pointer in edi |
mov [work_area],edi ; save it |
call colorprecalc ; calculate colors |
mov esi,name_string |
call open |
244,15 → 238,12 |
; Draw the window to the appropriate size - it may have |
; been resized by the user |
mov eax, 0 |
cmp [winxs], ax |
cmp [winxs], 0 |
jne dw_001 |
; Give the screen some inital defaults |
mov ax, 400 |
mov [winxs], ax |
mov ax, 300 |
mov [winys], ax |
mov [winxs], 400 |
mov [winys], 300 |
mov ax, 100 |
mov [winxo], ax |
mov [winyo], ax |
273,16 → 264,12 |
mov [winys], ax |
dw_002: |
mov bx, [winxo] |
shl ebx, 16 |
mov bx, [winxs] |
mov ebx, dword [winxo-2] |
mov bx, [winxs] |
mov ecx, dword [winyo-2] |
mov cx, [winys] |
mov cx, [winyo] |
shl ecx, 16 |
mov cx, [winys] |
mov eax,0 ; DRAW WINDOW |
xor eax,eax ; DRAW WINDOW |
mov edx,[wcolor] |
add edx,0x02000000 |
mov esi,0x80557799 |
461,84 → 448,59 |
ret |
slideshow: |
test dword[file_dir],-1 |
jnz .exit |
test dword[jpeg_st],-1 |
jz .exit |
mov esi,name_string |
movzx ecx,byte[name_string.cursor] |
.l1: |
cmp byte[esi+ecx],'/' |
je .l2 |
loop .l1 |
.exit: |
ret |
.l2: |
mov byte[esi+ecx],0 |
call open |
mov byte[esi+ecx],'/' |
test eax,eax |
jz .exit |
mov dword[eax+file_handler.size],-1 ;directory size is always 0 |
mov [file_dir],eax |
inc cl |
mov [name_string.cursor],cl |
cmp [file_dir], 0 |
jnz .exit |
cmp [jpeg_st], 0 |
jz .exit |
mov esi, name_string |
movzx ecx, byte [name_string.cursor] |
.l1: |
cmp byte [esi+ecx], '/' |
jz .l2 |
loop .l1 |
.exit: |
ret |
.l2: |
mov byte [esi+ecx], 0 |
call open |
mov byte [esi+ecx], '/' |
test eax, eax |
jz .exit |
test byte [fileattr], 0x10 |
jz .exit |
mov [file_dir], eax |
inc ecx |
mov [name_string.cursor], cl |
display_next: |
mov eax,[file_dir] |
test eax,eax |
jnz .l1 |
ret |
.l1: |
mov ecx,32 |
sub esp,ecx |
mov edi,esp |
call read |
cmp ecx,32 |
jnc .l11 |
.l10: |
add esp,32 |
mov eax,dword[file_dir] |
mov dword[file_dir],0 |
jmp close |
.l11: |
mov esi,esp |
movzx edi,byte[name_string.cursor] |
add edi,name_string |
lodsb |
cmp al,0 |
je .l10 |
cmp al,229 |
jne .l0 |
add esp,32 |
jmp display_next |
.l0: |
stosb |
mov cl,7 |
.l2: |
lodsb |
cmp al,32 |
jna .l3 |
stosb |
loop .l2 |
.l3: |
lea esi,[esp+8] |
mov al,'.' |
stosb |
mov cl,3 |
.l4: |
lodsb |
cmp al,32 |
jna .l5 |
stosb |
loop .l4 |
.l5: |
mov al,0 |
stosb |
cmp edi,name_string.end |
jc .l5 |
add esp,32 |
mov ebx, [file_dir] |
test ebx, ebx |
jnz @f |
ret |
@@: |
mov byte [ebx], 1 |
mov byte [ebx+12], 1 |
mov dword [ebx+16], dirinfo |
mov eax, 70 |
int 0x40 |
mov eax, [file_dir] |
inc dword [eax+4] |
cmp ebx, 1 |
jz @f |
mov eax, [file_dir] |
and [file_dir], 0 |
jmp close |
@@: |
movzx edi, byte [name_string.cursor] |
add edi, name_string |
lea esi, [dirinfo+32+40] |
@@: |
lodsb |
stosb |
test al, al |
jnz @b |
mov ecx, name_string.end |
sub ecx, edi |
rep stosb |
call print_strings |
mov esi,name_string |
call open |
558,7 → 520,6 |
jmp jpeg_display |
include 'filelib.asm' |
include 'memlib.asm' |
include 'jpeglib.asm' |
567,7 → 528,7 |
; DATA AREA |
wcolor dd 0x000000 |
labelt db 'Jpegview v0.14' |
labelt db 'Jpegview v0.15' |
labellen: |
setname db 'SLIDESHOW' |
setnamelen: |
580,18 → 541,16 |
x_numofbytes dd 0 |
x_numofb2 dd 0 |
x_counter dd 0 |
winxo: dw 0 |
winyo: dw 0 |
winxs: dw 0 |
winys: dw 0 |
jpeg_st: dd 0 |
file_dir: dd 0 |
work_area: dd 0 |
winxo dw 0 |
winyo dw 0 |
winxs dw 0 |
winys dw 0 |
jpeg_st dd 0 |
file_dir dd 0 |
tcolor dd 0x000000 |
btcolor dd 0x224466+0x808080 |
name_string: db '/rd/1/jpegview.jpg',0 |
rb 100 |
rb 256 |
.end: |
.cursor: db 19 |
.cursor2: db 0 |
612,5 → 571,5 |
fin: |
I_END: |
fileattr: rb 40 |
dirinfo: rb 32+304 |
/programs/media/jpegview/trunk/macros.inc |
---|
0,0 → 1,268 |
; new application structure |
macro meos_app_start |
{ |
use32 |
org 0x0 |
db 'MENUET01' |
dd 0x01 |
dd __start |
dd __end |
dd __memory |
dd __stack |
if used __params & ~defined __params |
dd __params |
else |
dd 0x0 |
end if |
dd 0x0 |
} |
MEOS_APP_START fix meos_app_start |
macro code |
{ |
__start: |
} |
CODE fix code |
macro data |
{ |
__data: |
} |
DATA fix data |
macro udata |
{ |
if used __params & ~defined __params |
__params: |
db 0 |
__end: |
rb 255 |
else |
__end: |
end if |
__udata: |
} |
UDATA fix udata |
macro meos_app_end |
{ |
align 32 |
rb 2048 |
__stack: |
__memory: |
} |
MEOS_APP_END fix meos_app_end |
; macro for defining multiline text data |
struc mstr [sstring] |
{ |
forward |
local ssize |
virtual at 0 |
db sstring |
ssize = $ |
end virtual |
dd ssize |
db sstring |
common |
dd -1 |
} |
; strings |
macro sz name,[data] { ; from MFAR [mike.dld] |
common |
if used name |
label name |
end if |
forward |
if used name |
db data |
end if |
common |
if used name |
.size = $-name |
end if |
} |
macro lsz name,[lng,data] { ; from MFAR [mike.dld] |
common |
if used name |
label name |
end if |
forward |
if (used name)&(lang eq lng) |
db data |
end if |
common |
if used name |
.size = $-name |
end if |
} |
; easy system call macro |
macro mpack dest, hsrc, lsrc |
{ |
if (hsrc eqtype 0) & (lsrc eqtype 0) |
mov dest, (hsrc) shl 16 + lsrc |
else |
if (hsrc eqtype 0) & (~lsrc eqtype 0) |
mov dest, (hsrc) shl 16 |
add dest, lsrc |
else |
mov dest, hsrc |
shl dest, 16 |
add dest, lsrc |
end if |
end if |
} |
macro __mov reg,a,b { ; mike.dld |
if (~a eq)&(~b eq) |
mpack reg,a,b |
else if (~a eq)&(b eq) |
mov reg,a |
end if |
} |
macro mcall a,b,c,d,e,f { ; mike.dld |
__mov eax,a |
__mov ebx,b |
__mov ecx,c |
__mov edx,d |
__mov esi,e |
__mov edi,f |
int 0x40 |
} |
; language for programs |
lang fix ru ; ru en fr ge fi |
; optimize the code for size |
__regs fix <eax,ebx,ecx,edx,esi,edi,ebp,esp> |
macro add arg1,arg2 |
{ |
if (arg2 eqtype 0) |
if (arg2) = 1 |
inc arg1 |
else |
add arg1,arg2 |
end if |
else |
add arg1,arg2 |
end if |
} |
macro sub arg1,arg2 |
{ |
if (arg2 eqtype 0) |
if (arg2) = 1 |
dec arg1 |
else |
sub arg1,arg2 |
end if |
else |
sub arg1,arg2 |
end if |
} |
macro mov arg1,arg2 |
{ |
if (arg1 in __regs) & (arg2 eqtype 0) |
if (arg2) = 0 |
xor arg1,arg1 |
else if (arg2) = 1 |
xor arg1,arg1 |
inc arg1 |
else if (arg2) = -1 |
or arg1,-1 |
else if (arg2) > -128 & (arg2) < 128 |
push arg2 |
pop arg1 |
else |
mov arg1,arg2 |
end if |
else |
mov arg1,arg2 |
end if |
} |
macro struct name |
{ |
virtual at 0 |
name name |
sizeof.#name = $ - name |
end virtual |
} |
; structures used in MeOS |
struc process_information |
{ |
.cpu_usage dd ? ; +0 |
.window_stack_position dw ? ; +4 |
.window_stack_value dw ? ; +6 |
.not_used1 dw ? ; +8 |
.process_name rb 12 ; +10 |
.memory_start dd ? ; +22 |
.used_memory dd ? ; +26 |
.PID dd ? ; +30 |
.x_start dd ? ; +34 |
.y_start dd ? ; +38 |
.x_size dd ? ; +42 |
.y_size dd ? ; +46 |
.slot_state dw ? ; +50 |
rb (1024-52) |
} |
struct process_information |
struc system_colors |
{ |
.frame dd ? |
.grab dd ? |
.grab_button dd ? |
.grab_button_text dd ? |
.grab_text dd ? |
.work dd ? |
.work_button dd ? |
.work_button_text dd ? |
.work_text dd ? |
.work_graph dd ? |
} |
struct system_colors |
; constants |
; events |
EV_IDLE = 0 |
EV_TIMER = 0 |
EV_REDRAW = 1 |
EV_KEY = 2 |
EV_BUTTON = 3 |
EV_EXIT = 4 |
EV_BACKGROUND = 5 |
EV_MOUSE = 6 |
EV_IPC = 7 |
EV_STACK = 8 |
; event mask bits for function 40 |
EVM_REDRAW = 1b |
EVM_KEY = 10b |
EVM_BUTTON = 100b |
EVM_EXIT = 1000b |
EVM_BACKGROUND = 10000b |
EVM_MOUSE = 100000b |
EVM_IPC = 1000000b |
EVM_STACK = 10000000b |
/programs/media/mv/trunk/mv.asm |
---|
32,20 → 32,16 |
cmp byte [temp_area],0 |
jz .no_param |
mov edi,string ; clear string |
mov ecx,43*3 ; length of a string |
mov ecx,256/4 ; length of a string |
xor eax,eax ; symbol <0> |
add al,14h |
cld |
rep stosb |
rep stosd |
mov edi,temp_area ; look for <0> in temp_area |
mov ecx,43*3+1 ; strlen |
mov esi,edi |
mov ecx,257 ; strlen |
repne scasb |
add edi,-temp_area ; get length of the string |
dec edi |
lea ecx, [edi-temp_area] |
mov ecx,edi |
mov esi,temp_area |
mov edi,string |
rep movsb ; copy string from temp_area to "string" (filename) |
72,6 → 68,7 |
; ⥯¥àì ¢ ecx ®¬¥à ¯à®æ¥áá |
mov [process],ecx |
draw_still: |
call draw_window |
still: |
79,40 → 76,35 |
mov eax,10 ; wait here for event |
int 0x40 |
cmp eax,1 ; redraw request ? |
je red |
cmp eax,2 ; key in buffer ? |
je key |
cmp eax,3 ; button in buffer ? |
je button |
dec eax |
jz red |
dec eax |
jnz button |
jmp still |
red: |
bt [status],2 |
jnc @f |
mov eax,18 |
mov ebx,3 |
mov ecx,[process] |
int 0x40 |
btr [status],2 |
jmp still |
@@: |
call draw_window |
jmp still |
key: ; key |
mov al,2 |
int 0x40 |
cmp ah,6 |
mov al,ah |
cmp al,6 |
je kfile |
cmp ah,15 |
cmp al,15 |
je kopen |
cmp ah,9 |
cmp al,9 |
je kinfo |
cmp ah,2 |
cmp al,2 |
je kbgrd |
jmp still |
red: |
test byte [status], 4 |
jz draw_still |
mov al, 18 |
mov ebx, 3 |
mov ecx, [process] |
int 0x40 |
and byte [status], not 4 |
jmp still |
button: ; button |
mov eax,17 ; get id |
int 0x40 |
126,9 → 118,9 |
cmp ah,2 |
jne nofile |
kfile: |
bt dword [status],0 |
jc still |
bts dword [status],0 |
test byte [status], 1 |
jnz still |
or byte [status], 1 |
mov eax,51 |
mov ebx,1 |
mov ecx,thread1 |
163,9 → 155,9 |
cmp ah,4 |
jne noinfo |
kinfo: |
bt dword [status],1 |
jc still |
bts dword [status],1 |
test byte [status], 2 |
jnz still |
or byte [status], 2 |
mov eax,51 |
mov ebx,1 |
mov ecx,thread2 |
178,9 → 170,9 |
cmp ah,5 |
jne still |
kbgrd: |
bt dword [status],3 |
jc still |
bts dword [status],3 |
test byte [status], 8 |
jnz still |
or byte [status], 8 |
mov eax,51 |
mov ebx,1 |
mov ecx,thread3 |
197,21 → 189,9 |
load_image: |
mov dword [fileinfo+8],1 ; how many blocks to read (1) |
mov eax,58 |
mov ebx,fileinfo |
int 0x40 |
cmp [I_END+2],dword 512 ; à §¬¥à ä ©« (file size) |
jbe @f |
mov eax,[I_END+2] |
shr eax,9 ; ¯®¤¥«¨¬ 512 ¨ ¯à¨¡ ¢¨¬ 1 - ¯®«ã稬 ç¨á«® ¡«®ª®¢ |
inc eax |
mov dword [fileinfo+8],eax |
mov eax,58 |
mov ebx,fileinfo |
int 0x40 |
@@: |
mov eax, 70 |
mov ebx, fileinfo |
int 0x40 |
mov eax,[I_END+18] |
mov ebx,[I_END+22] |
add eax,20 |
263,7 → 243,7 |
mov esi, ecx |
imul esi, edx |
imul esi, 3 |
lea esi, [esi+esi*2] |
mov ebx,5 |
mov ecx,[soi] |
xor edx,edx |
282,12 → 262,14 |
convert: |
movzx eax,word [I_END+28] |
mul dword [I_END+18] |
mov ebx,32 |
div ebx |
test edx,edx |
je noaddword |
inc eax |
noaddword: |
; mov ebx,32 |
; div ebx |
; test edx,edx |
; je noaddword |
; inc eax |
; noaddword: |
add eax, 31 |
shr eax, 5 |
mov [dwps],eax ;dwps-doublewords per string |
shl eax,2 |
mov [bps],eax ;bps-bytes per string |
462,7 → 444,8 |
lsz buttext,\ |
en, ' FILE OPEN INFO BGRD',\ |
ru, ' ' |
ru, ' ',\ |
de, 'DATEI OEFNEN INFO HGRD' |
status dd 0 ;bit0=1 if file thread is created |
bps dd 0 |
634,7 → 617,7 |
mov ebx,8*65536+8 ; [x start] *65536 + [y start] |
mov ecx,0x10ddeeff ; font 1 & color ( 0xF0RRGGBB ) |
mov edx,labelt1 ; pointer to text beginning |
mov esi,4 ; text length |
mov esi,labelt1.size ; text length |
int 0x40 |
call drawstring |
679,22 → 662,9 |
lsz labelt1,\ |
en, 'File',\ |
ru, ' ©«' |
ru, ' ©«',\ |
de, 'Datei' |
pos: dd 6 |
fileinfo: |
dd 0 |
dd 0 |
dd 1 ;number of blocks of 512 bytes |
dd I_END |
dd temp_area |
string: |
; db '/HARDDISK/FIRST/1/DICK.BMP ' |
; db '/hd/1/menuet/pics/new.bmp ' |
db '/rd/1/bgr.bmp ' |
db ' ' |
db ' ' |
thread2: ; start of info thread |
call draw_window2 |
823,7 → 793,8 |
lsz labelt2,\ |
en, 'File info',\ |
ru, 'ä®à¬ æ¨ï ® ä ©«¥' |
ru, 'ä®à¬ æ¨ï ® ä ©«¥',\ |
de, 'Dateiinfo' |
lsz fitext,\ |
en, 'FILE SIZE ',\ |
834,7 → 805,12 |
ru, ' §¬¥à ä ©« ',\ |
ru, '¨à¨ ',\ |
ru, 'ëá®â ',\ |
ru, '¨â ¯¨ªá¥« ' |
ru, '¨â ¯¨ªá¥« ',\ |
\ |
de, 'FATEIGROESSE ',\ |
de, 'X GROESSE ',\ |
de, 'Y GROESSE ',\ |
de, 'BITS PER PIXEL' |
thread3: ; start of bgrd thread |
939,7 → 915,7 |
mov ebx,8*65536+8 ; [x start] *65536 + [y start] |
mov ecx,0x10ddeeff ; font 1 & color ( 0xF0RRGGBB ) |
mov edx,labelt3 ; pointer to text beginning |
mov esi,14 ; text length |
mov esi,labelt3.size ; text length |
int 0x40 |
add ebx,38*65536+20 |
mov ecx,0xddeeff |
999,27 → 975,42 |
lsz labelt3,\ |
en, 'Background set',\ |
ru, "áâ ®¢ª ä® " |
ru, "áâ ®¢ª ä® ",\ |
de, 'Hintergrund gesetzt' |
lsz bgrdtext,\ |
en, 'SET AS BACKGROUND:',\ |
ru, '¨¯ ®¡®¥¢:' |
ru, '¨¯ ®¡®¥¢:',\ |
de, 'ALS HINTERGRUND' |
lsz tiled,\ |
en, 'TILED',\ |
ru, '§ ¬®áâ¨âì' |
ru, '§ ¬®áâ¨âì',\ |
de, 'GEKACHELT' |
lsz stretch,\ |
en, 'STRETCH',\ |
ru, 'à áâïãâì' |
ru, 'à áâïãâì',\ |
de, 'GESTRECKT' |
lsz ok_btn,\ |
en, 'Ok',\ |
ru, 'Ok' |
ru, 'Ok',\ |
de, 'Ok' |
pos: dd 6 |
fileinfo: |
dd 0 |
dd 0 |
dd 0 |
dd 0x290000-I_END |
dd I_END |
string: |
db '/rd/1/bgr.bmp',0 |
IM_END: |
rb string+257-$ |
IM_END: |
process_info: |
temp_area: |
rb 0x10000 |