Subversion Repositories Kolibri OS

Rev

Rev 7125 | Rev 7277 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7125 Rev 7276
Line 5... Line 5...
5
; Converted to DexOS, By Dex
5
; Converted to DexOS, By Dex
6
; Converted to KolibriOS, By Asper
6
; Converted to KolibriOS, By Asper
7
; Optimized for KolibriOS, By Diamond
7
; Optimized for KolibriOS, By Diamond
8
; Assemble with
8
; Assemble with
9
; c:fasm firework.asm firework.kex
9
; c:fasm firework.asm firework.kex
10
; NOTE: Needs MMX & SSE, optionally AVX
10
; NOTE: Needs MMX & SSE,
-
 
11
; optionally AVX, AVX2, AVX512
11
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
12
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
12
use32
13
use32
13
        org     0x0
14
        org     0x0
Line 14... Line 15...
14
 
15
 
Line 21... Line 22...
21
        dd      0, 0
22
        dd      0, 0
Line 22... Line 23...
22
 
23
 
23
include '../../../macros.inc'
24
include '../../../macros.inc'
24
SCREEN_WIDTH   = 320
25
SCREEN_WIDTH   = 320
25
SCREEN_HEIGHT  = 200
26
SCREEN_HEIGHT  = 200
26
SIMD equ SSE
27
SIMD equ AVX
-
 
28
SIMD_BYTES = 16
-
 
29
; SSE    8
-
 
30
; AVX    16
-
 
31
; AVX2   32
27
SIMD_BYTES = 8
32
; AVX512 64
28
assert SCREEN_WIDTH mod SIMD_BYTES = 0
33
assert SCREEN_WIDTH mod SIMD_BYTES = 0
29
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
34
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
30
; Global defines
35
; Global defines