max_stars_repo_path stringlengths 4 261 | max_stars_repo_name stringlengths 6 106 | max_stars_count int64 0 38.8k | id stringlengths 1 6 | text stringlengths 7 1.05M |
|---|---|---|---|---|
alloy4fun_models/trashltl/models/3/vcWA4NY7PKNxqDNeB.als | Kaixi26/org.alloytools.alloy | 0 | 2310 | open main
pred idvcWA4NY7PKNxqDNeB_prop4 {
all f : File | eventually f in Trash
}
pred __repair { idvcWA4NY7PKNxqDNeB_prop4 }
check __repair { idvcWA4NY7PKNxqDNeB_prop4 <=> prop4o } |
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_317.asm | ljhsiun2/medusa | 9 | 171613 | .global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x16d2a, %rdx
nop
nop
nop
nop
cmp %r15, %r15
mov $0x6162636465666768, %rsi
movq %rsi, %xmm0
movups %xmm0, (%rdx)
nop
nop
nop
add %r15, %r15
lea addresses_UC_ht+0x41b6, %r15
inc %rbx
movw $0x6162, (%r15)
nop
nop
nop
nop
sub $18985, %r15
lea addresses_WC_ht+0x1099e, %rcx
nop
inc %r9
movw $0x6162, (%rcx)
nop
nop
nop
nop
nop
and $947, %rcx
lea addresses_WT_ht+0x1a82a, %rsi
lea addresses_D_ht+0x171a2, %rdi
nop
nop
nop
nop
inc %rdx
mov $82, %rcx
rep movsq
nop
cmp %rbx, %rbx
lea addresses_WT_ht+0xc60e, %rdx
nop
xor %r15, %r15
mov (%rdx), %rdi
nop
nop
sub $41452, %rsi
lea addresses_UC_ht+0x103de, %rsi
lea addresses_D_ht+0x77aa, %rdi
nop
nop
nop
nop
inc %rax
mov $86, %rcx
rep movsw
nop
nop
nop
xor $35944, %r9
lea addresses_normal_ht+0x1faa, %rsi
lea addresses_A_ht+0x1cfaa, %rdi
nop
nop
nop
inc %r15
mov $47, %rcx
rep movsb
nop
nop
nop
nop
and %rdx, %rdx
lea addresses_WT_ht+0x161aa, %rsi
nop
nop
nop
nop
add %rdx, %rdx
mov (%rsi), %rax
nop
nop
nop
nop
add %rsi, %rsi
lea addresses_normal_ht+0xd53a, %r9
clflush (%r9)
nop
xor %r15, %r15
movups (%r9), %xmm3
vpextrq $0, %xmm3, %rdi
nop
inc %r15
lea addresses_D_ht+0x1b7aa, %r15
nop
cmp %rdi, %rdi
mov $0x6162636465666768, %rdx
movq %rdx, (%r15)
nop
nop
nop
nop
nop
add $41594, %rax
lea addresses_D_ht+0x1c32, %rax
nop
nop
nop
nop
nop
sub $27313, %rsi
mov $0x6162636465666768, %r9
movq %r9, %xmm3
vmovups %ymm3, (%rax)
nop
nop
nop
add %rsi, %rsi
lea addresses_normal_ht+0x285a, %rdx
cmp %rcx, %rcx
vmovups (%rdx), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $1, %xmm0, %r15
add %rdi, %rdi
lea addresses_UC_ht+0x134a, %rsi
lea addresses_D_ht+0x138ea, %rdi
nop
and $58660, %r9
mov $87, %rcx
rep movsq
cmp $50777, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r15
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r15
push %r8
push %rbp
push %rbx
push %rdi
push %rdx
// Load
lea addresses_WC+0x9582, %rdi
nop
nop
nop
xor %r15, %r15
mov (%rdi), %r13d
nop
nop
nop
xor %rdi, %rdi
// Store
lea addresses_RW+0x734a, %rdx
nop
nop
nop
add $39908, %r8
mov $0x5152535455565758, %rbp
movq %rbp, (%rdx)
nop
nop
nop
and $39538, %rbp
// Store
lea addresses_US+0x17806, %r13
nop
nop
nop
nop
nop
and $42514, %r15
mov $0x5152535455565758, %r8
movq %r8, %xmm7
vmovups %ymm7, (%r13)
nop
nop
nop
nop
dec %r8
// Faulty Load
lea addresses_UC+0xbfaa, %r13
nop
nop
nop
sub %rdx, %rdx
vmovntdqa (%r13), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $0, %xmm1, %rbp
lea oracles, %r8
and $0xff, %rbp
shlq $12, %rbp
mov (%r8,%rbp,1), %rbp
pop %rdx
pop %rdi
pop %rbx
pop %rbp
pop %r8
pop %r15
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_UC', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 2, 'NT': True, 'type': 'addresses_WC', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_RW', 'size': 8, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 32, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_UC', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}}
{'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}}
{'src': {'same': True, 'congruent': 7, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
asm/displacementTest.asm | fronzbot/CPyU | 0 | 172646 | ld r0, 0x7
ld r1, 0x5
st r0, r1, 0x3F
ld r2, r1, 0x3F
add r1, r2
ld r3, 0x1
add r0, r3
|
Sources/Globe_3d/models/a319.ads | ForYouEyesOnly/Space-Convoy | 1 | 14773 | <gh_stars>1-10
-- * Output of max2ada.ms, a GMax / 3D Studio Max script for exporting to GLOBE_3D
--
-- * Copy and paste these lines from the Listener into a
-- text editor, and save the package as an .ada file.
-- * Alternatively, use the GMaxSLGRAB.exe tool.
-- * For GNAT, you must save the specification as an .ads file
-- and the body as an .adb file, or run gnatchop on the whole .ada file.
-- Title : A319
--
-- Manually reworked (a bit, around materials)
-- Model author : <NAME>
-- http://www.fsdeveloper.com/forum/downloads.php?do=file&id=80
--
-- File name : Airbus319FSX.gmax
-- File path : R:\Animated_Airbus319_FSX\
with GLOBE_3D;
package A319 is
procedure Create (
object : in out GLOBE_3D.p_Object_3D;
scale : GLOBE_3D.Real;
centre : GLOBE_3D.Point_3D
);
end A319;
|
libsrc/math/zxmath/fpclassify.asm | jpoikela/z88dk | 640 | 87435 |
SECTION code_fp
PUBLIC fpclassify
EXTERN fa
; Return 0 = normal
; 1 = zero
; 2 = nan
; 3 = infinite
fpclassify:
ld a,(fa+5) ;exponent
ld hl,1
and a
ret z
dec hl
ret
|
data/wildPokemon/seafoamislandb1.asm | adhi-thirumala/EvoYellow | 16 | 14319 | <filename>data/wildPokemon/seafoamislandb1.asm
IslandMonsB1:
db $0A
db 27,ZUBAT
db 26,KRABBY
db 36,ZUBAT
db 28,KRABBY
db 27,GOLBAT
db 29,SLOWPOKE
db 18,ZUBAT
db 28,KINGLER
db 22,SEEL
db 26,SEEL
db $00
|
boot.asm | bellcorreia/boot-hello | 1 | 171980 | ;
; Source code written by <NAME>
;
bits 16
%define VGA_TB_GREEN 0xa
%define VGA_TEXT_BUFFER 0xb8000
; Putting everything that's comes below at the offset 0x7c00
; (The address where the BIOS will search for the MBR)
org 0x7c00
; Everything starts here
boot_entry:
; Cleaning GPR (Initializing segment registers)
xor ax, ax
mov ds, ax
mov es, ax
mov ss, ax
; Going to VGA mode
mov ax, 0x3
int 0x10
; Loading the Global Descriptor Table
cli
lgdt [gdt_location]
mov eax, cr0
or eax, 1
mov cr0, eax
; F*ck real mode gonna to protected mode
jmp CODE_SEG:_protected_mode_segment
; GDT Segment
gdt_start:
; Nullable structure
dq 0
code_segment:
; Code segment structure data
dw 0xFFFF
dw 0x0
db 0x0
db 10011010b
db 11001111b
db 0x0
data_segment:
; Data segment structure data
dw 0xFFFF
dw 0x0
db 0x0
db 10010010b
db 11001111b
db 0x0
gdt_end:
gdt_location:
dw gdt_end - gdt_start
dd gdt_start
CODE_SEG equ code_segment - gdt_start
DATA_SEG equ data_segment - gdt_start
bits 32
_protected_mode_segment:
mov ax, DATA_SEG
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
; EDX -> Number of times to print the same string (Int)
; EDI -> String size (int)
; ESI -> String pointer (char*)
mov edi, hello_world
call write
; Disabling all INT and making the CPU wait for the next INT
; (This will cause a infinite loop)
cli
hlt
write:
; The instruction 'lodsb' prefer the string pointer at the register (ESI)
mov esi, edi
mov ebx, VGA_TEXT_BUFFER
mov ch, VGA_TB_GREEN
.write_LOOP:
lodsb
cmp al, 0
; We have arrived to the 0 byte, going out :)
je .write_done
or ax, cx
mov word [ebx], ax
add ebx, 2
jmp .write_LOOP
.write_done:
ret
hello_world: db "Hello World", 0
; hello_len equ - hello_world
times 510 -($-$$) db 0
dw 0xaa55
|
a11.asm | Sahilsinggh/MP_SEM4 | 1 | 7885 | <gh_stars>1-10
global _start;
%macro print 2
mov rax,01;
mov rdi,02;
mov rsi,%1;
mov rdx,%2;
syscall;
%endmacro
section .data
array: dq 12.65,23.45,64.54,77.34,65.65,90.64,44.12,54.22,33.33
lenArray: equ $-array;
meanMsg: db "Mean = ";
lenMeanMsg: equ $-meanMsg;
varianceMsg: db "Variance = ";
lenVarianceMsg: equ $-varianceMsg;
deviationMsg: db "Standard Deviation = ";
lenDeviationMsg: equ $-deviationMsg;
eight: dq 8.0;
hundred: dq 100.0;
dot: db ".";
newLine: db 10;
section .bss
count resq 1;
mean resq 1;
variance resq 1;
deviation resq 1;
temp resq 1;
result rest 1;
outAscii resb 21;
digit resb 1
section .text
_start:
; //Count No. of Observations
mov qword[count],lenArray;
fild qword[count];
fdiv qword[eight]
fstp qword[count];
; //Mean
mov rsi,array;
mov rcx,lenArray;
fldz;
init1:
fadd qword[rsi];
add rsi,08h;
sub rcx,08h;
jnz init1;
fdiv qword[count];
fstp qword[mean];
; //Variance
mov rsi,array;
mov rcx,lenArray;
fldz;
init2:
fld qword[rsi];
fsub qword[mean];
fmul st0; //ST(0)=ST(0)*ST(0) ie: Squaring
fadd; //ST(0)=ST(0)+ST(1)
add rsi,08h;
sub rcx,08h;
jnz init2;
fdiv qword[count];
fstp qword[variance];
; //Standard Deviation
fld qword[variance];
fsqrt;
fstp qword[deviation];
; //Display
fld qword[mean];
fstp qword[result];
print meanMsg,lenMeanMsg;
call _DoubleToAscii;
print outAscii,21;
print newLine,1;
fld qword[variance];
fstp qword[result];
print varianceMsg,lenVarianceMsg;
call _DoubleToAscii;
print outAscii,21;
print newLine,1;
fld qword[deviation];
fstp qword[result];
print deviationMsg,lenDeviationMsg
call _DoubleToAscii;
print outAscii,21;
print newLine,1;
exit:
mov rax,60;
mov rdi,00
syscall;
_DoubleToAscii:
; DOC-STRING:
; i) converts Double value in qword[result] to packed BCD in tword[result]
; ii) converts packed BCD in tword[result] into 20 digits srting outAscii
; iii) adds decimal point (.) at 100ths place in srting outAscii
fld qword[result]
fmul qword[hundred];
fbstp tword[result];
mov rsi,result+9;
mov rdi,0;
mov rcx,10d;
init0:
xor rax,rax;
xor rbx,rbx;
mov al,byte[rsi];
mov bl,al;
shr al,04h; //Higher Nibble
and bl,0Fh; //Lower Nibble
add al,30h;
add bl,30h;
mov byte[outAscii+rdi],al;
inc rdi;
mov byte[outAscii+rdi],bl;
inc rdi
dec rsi;
dec rcx;
jnz init0;
addDecimalPoint:
mov al,byte[outAscii+19];
mov bl,byte[outAscii+18];
mov byte[outAscii+18],2Eh;
mov byte[outAscii+19],bl;
mov byte[outAscii+20],al;
end_DoubleToAscii:
ret
|
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca_notsx.log_7_220.asm | ljhsiun2/medusa | 9 | 174253 | <filename>Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca_notsx.log_7_220.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xfb74, %rcx
cmp $46199, %r12
mov $0x6162636465666768, %r10
movq %r10, %xmm5
movups %xmm5, (%rcx)
xor %r12, %r12
lea addresses_UC_ht+0x13ae2, %r13
nop
sub %r12, %r12
movw $0x6162, (%r13)
nop
nop
nop
nop
add $6724, %rbp
lea addresses_UC_ht+0x6522, %rsi
lea addresses_D_ht+0x11ef2, %rdi
cmp %rax, %rax
mov $30, %rcx
rep movsw
and %rbp, %rbp
lea addresses_WC_ht+0x21f2, %r12
sub $50368, %rbp
mov (%r12), %rdi
nop
xor $53165, %r12
lea addresses_WC_ht+0xaee2, %rdi
nop
nop
nop
nop
nop
cmp %rax, %rax
vmovups (%rdi), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $0, %xmm6, %r12
xor %rdi, %rdi
lea addresses_A_ht+0xace2, %r13
sub $4457, %rbp
mov (%r13), %cx
and %r10, %r10
lea addresses_WT_ht+0x162c2, %rsi
lea addresses_normal_ht+0xfdc2, %rdi
clflush (%rsi)
nop
nop
nop
nop
and %r13, %r13
mov $113, %rcx
rep movsb
nop
nop
nop
add %rax, %rax
lea addresses_A_ht+0xe2e2, %rsi
lea addresses_D_ht+0xd2e2, %rdi
nop
nop
nop
nop
nop
and %r12, %r12
mov $35, %rcx
rep movsb
nop
nop
xor $35094, %r13
lea addresses_UC_ht+0x17262, %r13
nop
nop
xor %rbp, %rbp
mov $0x6162636465666768, %r10
movq %r10, %xmm5
vmovups %ymm5, (%r13)
nop
sub $27461, %r10
lea addresses_UC_ht+0x15656, %rsi
lea addresses_UC_ht+0x96e2, %rdi
nop
nop
nop
inc %rbp
mov $65, %rcx
rep movsq
nop
nop
nop
nop
cmp $22827, %r10
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r13
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r8
push %r9
push %rax
push %rbx
push %rcx
// Store
lea addresses_RW+0xd71e, %rax
nop
nop
nop
nop
nop
inc %rbx
mov $0x5152535455565758, %r8
movq %r8, %xmm6
vmovaps %ymm6, (%rax)
nop
nop
nop
nop
and %r10, %r10
// Store
lea addresses_A+0x4ee2, %r8
clflush (%r8)
nop
cmp $13495, %r9
mov $0x5152535455565758, %r10
movq %r10, (%r8)
nop
nop
nop
nop
and %r10, %r10
// Load
lea addresses_A+0x4ee2, %r10
nop
inc %r9
mov (%r10), %r8d
nop
nop
nop
nop
nop
xor $18938, %r9
// Faulty Load
lea addresses_A+0x4ee2, %rbx
nop
nop
nop
xor %r14, %r14
movb (%rbx), %al
lea oracles, %r9
and $0xff, %rax
shlq $12, %rax
mov (%r9,%rax,1), %rax
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r8
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_RW', 'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 10}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_normal_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}, 'dst': {'same': True, 'congruent': 11, 'type': 'addresses_UC_ht'}}
{'58': 7}
58 58 58 58 58 58 58
*/
|
oeis/206/A206423.asm | neoneye/loda-programs | 11 | 241263 | ; A206423: Fibonacci sequence beginning 12, 7.
; Submitted by <NAME>(s4)
; 12,7,19,26,45,71,116,187,303,490,793,1283,2076,3359,5435,8794,14229,23023,37252,60275,97527,157802,255329,413131,668460,1081591,1750051,2831642,4581693,7413335,11995028,19408363,31403391,50811754,82215145,133026899,215242044,348268943,563510987,911779930,1475290917,2387070847,3862361764,6249432611,10111794375,16361226986,26473021361,42834248347,69307269708,112141518055,181448787763,293590305818,475039093581,768629399399,1243668492980,2012297892379,3255966385359,5268264277738,8524230663097
mov $1,7
mov $2,12
lpb $0
sub $0,1
mov $3,$2
mov $2,$1
add $1,$3
lpe
mov $0,$2
|
oeis/332/A332183.asm | neoneye/loda-programs | 11 | 27214 | <gh_stars>10-100
; A332183: a(n) = 8*(10^(2n+1)-1)/9 - 5*10^n.
; Submitted by <NAME>(s4)
; 3,838,88388,8883888,888838888,88888388888,8888883888888,888888838888888,88888888388888888,8888888883888888888,888888888838888888888,88888888888388888888888,8888888888883888888888888,888888888888838888888888888,88888888888888388888888888888,8888888888888883888888888888888
add $0,1
mov $1,10
pow $1,$0
sub $1,4
mul $1,8
add $1,10
bin $1,2
mov $0,$1
sub $0,1653
div $0,360
add $0,3
|
assembler/src/Stack.g4 | Wilgnne/simple-vm | 0 | 345 | grammar Stack;
/*---------------- PARSER INTERNALS ----------------*/
@parser::definitions {
#include "instr.h"
}
@parser::header {
#include <iostream>
#include <string>
using namespace std;
}
@parser::members {
}
/*---------------- LEXER RULES ----------------*/
COMMENT: ';' ~('\n')* -> skip;
SPACE: (' ' | '\t' | '\r' | '\n')+ -> skip;
CODE: '.code';
END_CODE: '.endcode';
DATA: '.data';
END_DATA: '.enddata';
PUSH_UC: 'psh';
ADD_UC: 'add';
POP_UC: 'pop';
HLT_UC: 'hlt';
NUMBER: '0' ..'9'+;
/*---------------- PARSER RULES ----------------*/
program: data? code;
data: DATA END_DATA;
code: CODE (instr)* END_CODE;
instr:
PUSH_UC NUMBER { cout.put(PSH).put(stoi($NUMBER.text)); }
| ADD_UC { cout.put(ADD); }
| POP_UC { cout.put(POP); }
| HLT_UC { cout.put(HLT); };
|
P6/data_P6_2/ALUTest139.asm | alxzzhou/BUAA_CO_2020 | 1 | 97698 | srlv $3,$4,$3
lbu $3,14($0)
slt $4,$1,$3
subu $6,$6,$3
addu $5,$3,$3
lhu $3,14($0)
ori $4,$3,46006
sw $3,16($0)
xor $1,$1,$3
andi $4,$5,6676
subu $1,$1,$3
addu $1,$1,$3
lw $1,4($0)
srav $1,$1,$3
slti $3,$5,1300
xor $3,$5,$3
sw $3,4($0)
and $4,$3,$3
lh $6,4($0)
addiu $1,$6,6839
addiu $5,$5,15841
lw $4,12($0)
sb $0,0($0)
slti $6,$1,11415
srlv $6,$5,$3
subu $5,$6,$3
srlv $4,$3,$3
sb $5,2($0)
subu $1,$1,$3
sltu $4,$0,$3
addiu $5,$3,-31766
srlv $0,$3,$3
sb $3,3($0)
ori $6,$0,2691
sw $4,12($0)
srl $1,$1,12
lbu $0,4($0)
sb $6,3($0)
sb $4,9($0)
slti $0,$0,7586
and $5,$4,$3
xor $1,$1,$3
sw $1,8($0)
lh $6,6($0)
xor $3,$3,$3
sb $1,8($0)
sll $3,$5,3
addiu $1,$6,29439
and $3,$3,$3
sw $3,4($0)
xori $3,$3,13411
ori $5,$5,31045
or $1,$1,$3
sllv $5,$3,$3
andi $1,$6,15196
sra $4,$4,25
sw $3,4($0)
xor $4,$3,$3
ori $6,$1,63692
sra $5,$3,22
ori $3,$1,56107
sb $1,14($0)
addiu $6,$2,3121
addiu $3,$0,10656
xor $3,$6,$3
andi $3,$6,13991
sllv $3,$1,$3
sllv $5,$5,$3
lb $3,13($0)
lhu $1,4($0)
addiu $0,$3,17841
addiu $3,$1,21892
lbu $3,2($0)
addiu $1,$1,-26552
lw $3,4($0)
sh $6,16($0)
sltu $1,$1,$3
subu $3,$1,$3
sh $3,14($0)
sllv $4,$1,$3
lw $5,8($0)
addiu $3,$3,-25865
addu $1,$3,$3
lbu $3,10($0)
xor $3,$6,$3
sltu $6,$3,$3
lw $3,16($0)
andi $6,$6,10307
srl $4,$3,5
or $1,$0,$3
sll $1,$6,24
sra $6,$1,2
srav $4,$4,$3
addu $0,$0,$3
nor $1,$1,$3
srlv $6,$1,$3
sw $5,0($0)
sw $4,12($0)
subu $5,$1,$3
sllv $3,$3,$3
slt $4,$5,$3
srl $5,$0,22
addu $0,$3,$3
xor $5,$4,$3
sllv $0,$2,$3
addu $5,$1,$3
sra $3,$3,7
lhu $3,4($0)
lbu $4,8($0)
xori $1,$3,45533
sll $5,$4,10
xori $6,$3,28980
addiu $3,$3,17525
xori $3,$1,7619
srav $5,$4,$3
addiu $3,$3,-28076
lhu $3,10($0)
lbu $5,6($0)
sra $3,$6,5
xori $1,$3,34405
subu $4,$1,$3
lhu $0,4($0)
slt $3,$3,$3
sb $0,11($0)
slt $3,$4,$3
slti $3,$3,9307
sltu $5,$6,$3
lw $3,0($0)
sb $1,14($0)
sra $1,$1,15
ori $3,$3,54939
xori $4,$0,42790
sll $5,$4,10
ori $3,$3,58306
or $5,$5,$3
sra $3,$5,0
srl $5,$1,20
addu $0,$4,$3
sll $0,$3,6
addu $3,$3,$3
xori $0,$6,64064
nor $3,$1,$3
srav $1,$4,$3
sltu $3,$4,$3
addiu $6,$5,25671
ori $3,$0,33129
xor $4,$4,$3
lbu $4,6($0)
srav $4,$4,$3
or $4,$5,$3
addiu $4,$4,-25386
slti $5,$1,-2558
addu $5,$3,$3
nor $4,$1,$3
and $3,$3,$3
or $3,$3,$3
lhu $0,8($0)
and $0,$4,$3
sra $4,$3,27
sllv $3,$1,$3
lh $3,0($0)
xori $1,$1,3841
ori $4,$6,51826
sra $1,$4,2
sll $3,$6,14
lb $0,3($0)
sra $3,$1,6
sltu $3,$4,$3
srlv $4,$4,$3
sltu $3,$3,$3
addu $0,$0,$3
slti $3,$5,-9111
subu $5,$3,$3
addiu $4,$4,7405
addiu $4,$4,636
lh $1,12($0)
addu $6,$5,$3
srav $3,$1,$3
srlv $3,$3,$3
sltu $4,$5,$3
xori $5,$5,40778
slt $3,$3,$3
nor $4,$4,$3
sra $4,$3,1
slti $5,$4,19337
sw $4,12($0)
sra $5,$4,3
and $1,$1,$3
addiu $5,$3,28205
sllv $4,$4,$3
addu $3,$4,$3
lhu $5,2($0)
andi $4,$4,41083
addiu $5,$5,-22006
sltiu $4,$3,-25314
slti $3,$3,30538
slti $3,$5,-30288
nor $3,$5,$3
sltu $1,$3,$3
xor $3,$5,$3
slti $3,$3,4881
sllv $3,$5,$3
srl $3,$3,23
and $4,$4,$3
srlv $1,$1,$3
sltu $6,$5,$3
srlv $4,$4,$3
sw $5,8($0)
lw $0,12($0)
or $3,$1,$3
lw $5,12($0)
sra $3,$1,27
srav $6,$4,$3
lb $1,8($0)
sltiu $6,$2,15896
sb $4,1($0)
ori $4,$3,3712
srav $1,$6,$3
sll $0,$3,27
andi $3,$4,4942
sh $1,4($0)
subu $4,$5,$3
lw $3,4($0)
sltiu $5,$1,6814
addu $3,$1,$3
sltu $6,$4,$3
srl $1,$1,25
sll $3,$3,16
srlv $1,$5,$3
addu $3,$3,$3
or $0,$3,$3
srl $5,$5,12
srl $1,$5,0
lb $3,4($0)
lh $5,10($0)
sb $2,10($0)
addiu $0,$4,15113
subu $3,$3,$3
addu $0,$0,$3
slt $3,$6,$3
ori $5,$0,55683
srav $5,$5,$3
subu $5,$3,$3
lb $4,2($0)
lb $4,7($0)
andi $1,$1,58615
nor $6,$5,$3
lb $4,15($0)
sw $0,12($0)
sltu $0,$3,$3
xori $3,$6,23147
nor $5,$3,$3
addiu $0,$4,460
sltu $3,$3,$3
addu $3,$1,$3
andi $1,$3,36123
sb $1,3($0)
srl $1,$5,11
ori $1,$3,11409
sltu $0,$5,$3
sw $4,16($0)
sltiu $5,$5,-13124
srlv $3,$5,$3
sltiu $4,$4,-28042
ori $1,$4,47130
srlv $0,$0,$3
andi $4,$5,47888
subu $5,$5,$3
ori $3,$3,50141
and $5,$6,$3
sra $5,$5,6
slt $5,$0,$3
sltu $5,$4,$3
lb $3,14($0)
addiu $0,$3,-4917
slti $0,$0,26345
lbu $3,1($0)
slt $5,$1,$3
sltu $6,$1,$3
subu $5,$4,$3
subu $1,$1,$3
lhu $4,2($0)
sh $4,2($0)
subu $4,$3,$3
subu $3,$5,$3
lh $5,10($0)
ori $1,$5,64239
or $3,$3,$3
sll $1,$1,19
sh $4,0($0)
srl $6,$1,31
xori $3,$1,21641
addu $4,$4,$3
sltu $4,$4,$3
lbu $0,9($0)
sb $0,5($0)
sh $3,2($0)
nor $4,$3,$3
addiu $3,$3,-30058
srl $3,$1,22
sllv $3,$3,$3
lhu $1,6($0)
slt $6,$5,$3
srav $3,$6,$3
subu $4,$4,$3
lbu $0,13($0)
sb $3,6($0)
or $4,$3,$3
addu $0,$4,$3
lw $5,8($0)
andi $5,$3,44732
and $5,$5,$3
sh $1,12($0)
subu $0,$4,$3
addiu $3,$3,16887
addu $3,$0,$3
slt $4,$3,$3
addiu $4,$1,-19016
and $1,$3,$3
lhu $3,2($0)
addu $3,$3,$3
xori $5,$4,57397
addu $1,$3,$3
addiu $3,$1,9895
addu $3,$0,$3
lbu $6,7($0)
lb $4,13($0)
lhu $3,2($0)
lbu $6,16($0)
sra $1,$1,26
andi $1,$1,4413
srl $1,$1,15
sltiu $3,$4,-16070
sra $4,$6,10
subu $3,$4,$3
sltu $0,$4,$3
sw $3,16($0)
sllv $3,$3,$3
lh $4,2($0)
lbu $3,16($0)
lbu $5,11($0)
addiu $1,$4,-14534
nor $5,$5,$3
addiu $3,$3,10005
lbu $1,15($0)
sra $5,$5,30
sra $3,$3,18
sltu $1,$1,$3
sltu $3,$4,$3
lh $0,12($0)
sra $6,$5,30
xor $4,$3,$3
slti $4,$3,32552
and $0,$5,$3
sltiu $4,$3,-12312
addiu $5,$6,18146
sltu $5,$1,$3
xori $3,$3,22327
ori $5,$3,6792
slti $1,$1,-4466
slti $3,$1,-32707
srlv $3,$2,$3
addu $5,$3,$3
sw $3,4($0)
srav $6,$5,$3
or $1,$1,$3
sll $5,$4,24
nor $4,$1,$3
sb $3,2($0)
xori $6,$4,43931
srlv $0,$4,$3
addiu $1,$1,21950
sra $5,$6,17
sw $6,16($0)
sw $4,16($0)
slt $3,$3,$3
nor $1,$1,$3
or $1,$1,$3
addu $0,$3,$3
addu $1,$3,$3
subu $1,$0,$3
xor $3,$5,$3
addiu $4,$1,19746
xor $3,$0,$3
addu $5,$3,$3
addu $4,$6,$3
slti $5,$3,2117
lb $5,12($0)
sb $1,14($0)
srl $4,$3,7
sll $1,$4,12
sltu $0,$3,$3
subu $1,$0,$3
ori $4,$6,24657
lb $3,7($0)
sh $3,4($0)
sllv $1,$1,$3
xori $4,$3,570
xor $0,$0,$3
subu $5,$5,$3
nor $4,$3,$3
xor $1,$3,$3
sh $4,6($0)
srlv $5,$1,$3
srl $3,$5,12
lh $6,4($0)
sw $3,12($0)
srav $1,$4,$3
lw $3,12($0)
slt $3,$4,$3
srlv $5,$5,$3
sh $3,14($0)
lh $1,16($0)
addu $3,$1,$3
subu $6,$4,$3
andi $3,$3,38617
lw $5,8($0)
srlv $4,$3,$3
srlv $1,$1,$3
xori $1,$3,61895
addiu $4,$4,-20410
lhu $4,14($0)
lb $1,13($0)
sh $4,4($0)
slt $5,$5,$3
srl $1,$1,12
addu $6,$6,$3
lhu $5,12($0)
andi $4,$3,45100
srl $3,$3,18
nor $3,$5,$3
lhu $1,8($0)
sltu $4,$3,$3
ori $4,$4,51638
or $4,$5,$3
sw $3,12($0)
sw $0,4($0)
andi $3,$2,22276
xori $4,$5,58736
lw $1,0($0)
addu $3,$5,$3
sltiu $5,$2,-17495
srlv $5,$3,$3
sll $3,$1,28
addiu $3,$5,26372
lh $1,4($0)
sllv $4,$5,$3
or $1,$4,$3
sltu $4,$3,$3
sllv $4,$4,$3
sb $3,12($0)
xor $5,$5,$3
andi $6,$6,6966
nor $0,$5,$3
slti $3,$3,-5062
subu $1,$5,$3
sw $0,12($0)
andi $1,$3,54546
or $1,$5,$3
sltu $1,$3,$3
srlv $3,$4,$3
sra $4,$5,22
xori $3,$0,60410
sll $3,$3,5
xori $4,$4,63259
slt $1,$1,$3
slt $4,$4,$3
sltu $3,$3,$3
srlv $3,$4,$3
and $3,$4,$3
subu $1,$6,$3
or $4,$4,$3
sb $6,1($0)
srl $3,$2,7
slt $5,$3,$3
sltu $1,$3,$3
sllv $6,$6,$3
srlv $3,$1,$3
sb $5,6($0)
slt $1,$3,$3
sllv $0,$0,$3
addu $3,$3,$3
xori $3,$3,60327
slt $4,$6,$3
addu $4,$4,$3
xori $5,$3,28474
xor $1,$6,$3
sw $4,12($0)
sw $6,0($0)
addu $1,$1,$3
addu $5,$0,$3
lb $3,14($0)
addiu $4,$4,30276
lh $5,8($0)
addu $3,$3,$3
addu $5,$4,$3
lhu $1,2($0)
and $1,$4,$3
addiu $3,$5,-31135
srl $4,$4,31
lh $4,14($0)
sra $3,$6,20
ori $6,$6,54272
slt $4,$4,$3
sw $3,4($0)
addiu $3,$3,2483
xori $4,$3,17753
xor $1,$5,$3
xori $1,$0,36231
sllv $4,$6,$3
srav $0,$1,$3
xor $3,$3,$3
lbu $4,4($0)
addiu $0,$4,-7781
subu $4,$1,$3
lbu $3,0($0)
nor $3,$5,$3
lhu $3,2($0)
addiu $1,$1,20122
sw $3,16($0)
srl $1,$3,27
lbu $3,1($0)
lw $5,0($0)
addu $1,$3,$3
sltu $5,$0,$3
sll $1,$4,2
lbu $4,15($0)
sh $5,10($0)
xor $4,$3,$3
lb $6,13($0)
lb $4,6($0)
srl $5,$5,28
lw $1,16($0)
subu $6,$1,$3
srl $4,$1,30
srlv $3,$4,$3
addiu $5,$4,7810
and $4,$4,$3
addu $4,$5,$3
sh $3,10($0)
addiu $4,$0,15619
xor $1,$3,$3
slti $4,$4,-27228
subu $3,$3,$3
addiu $1,$3,3451
sw $1,0($0)
or $3,$3,$3
and $1,$4,$3
lbu $4,0($0)
slti $1,$3,-13533
subu $1,$0,$3
sllv $3,$4,$3
srav $4,$0,$3
andi $4,$3,62443
lw $1,12($0)
or $4,$3,$3
and $3,$5,$3
sb $1,10($0)
subu $3,$3,$3
lh $4,14($0)
subu $3,$5,$3
sltu $3,$3,$3
lw $3,12($0)
lb $3,9($0)
subu $3,$6,$3
lh $4,14($0)
andi $3,$1,45306
slt $3,$2,$3
or $5,$3,$3
addiu $6,$3,27997
or $1,$3,$3
and $5,$5,$3
addiu $1,$4,-11554
sltu $5,$2,$3
sw $6,8($0)
sltiu $1,$5,-9079
xori $1,$1,37119
lb $3,2($0)
sll $4,$4,13
srl $4,$1,27
sra $5,$5,20
subu $3,$2,$3
slt $3,$3,$3
and $5,$5,$3
sra $0,$6,12
and $5,$6,$3
sw $5,0($0)
addiu $4,$4,11329
sltu $5,$3,$3
addiu $4,$4,24608
and $1,$3,$3
srlv $3,$3,$3
addiu $3,$3,24066
sra $4,$4,3
nor $4,$1,$3
lhu $1,2($0)
and $4,$2,$3
slti $3,$4,-20420
addu $3,$6,$3
addu $0,$4,$3
lh $5,14($0)
subu $0,$2,$3
subu $4,$4,$3
srlv $4,$1,$3
nor $4,$3,$3
addiu $5,$3,-32159
sll $1,$3,13
slt $6,$1,$3
lbu $3,13($0)
sllv $3,$3,$3
sb $6,14($0)
addu $3,$3,$3
subu $5,$5,$3
sllv $4,$4,$3
srav $4,$4,$3
lh $4,14($0)
srav $3,$3,$3
lhu $3,12($0)
sltiu $6,$6,25317
sb $1,2($0)
addiu $4,$4,1426
ori $0,$3,50521
nor $3,$3,$3
sltiu $4,$0,-14520
andi $5,$5,29669
slt $4,$1,$3
sltu $4,$1,$3
sh $4,12($0)
srl $3,$0,20
srl $5,$5,0
slti $3,$4,11322
srl $4,$4,18
addiu $1,$3,-2766
addu $3,$4,$3
subu $4,$1,$3
lhu $6,10($0)
sltu $1,$4,$3
slti $4,$5,7442
lw $5,0($0)
addiu $4,$0,15736
sra $4,$0,12
and $5,$1,$3
ori $4,$2,4431
sltiu $4,$3,-25031
addu $1,$3,$3
lb $0,3($0)
xor $0,$1,$3
sllv $6,$4,$3
subu $3,$3,$3
addu $3,$3,$3
addiu $3,$3,-20059
addiu $5,$0,-26519
slt $1,$1,$3
srlv $3,$5,$3
addu $3,$3,$3
lhu $3,0($0)
srl $3,$3,4
addiu $5,$3,1859
sb $5,7($0)
lh $0,14($0)
sltu $5,$4,$3
lh $3,8($0)
lb $1,10($0)
and $4,$0,$3
lhu $3,14($0)
sw $4,8($0)
lb $4,15($0)
sltu $4,$1,$3
addu $4,$3,$3
srav $4,$4,$3
or $1,$6,$3
sh $4,12($0)
lb $5,4($0)
addiu $5,$3,-24063
srav $4,$3,$3
srlv $3,$3,$3
or $3,$1,$3
xor $6,$3,$3
sb $4,11($0)
addiu $1,$3,8756
sltiu $4,$3,24767
or $4,$4,$3
lh $3,8($0)
sltu $6,$3,$3
lw $5,0($0)
addiu $3,$3,19807
addu $4,$6,$3
srl $3,$3,8
lbu $0,8($0)
addu $6,$4,$3
sw $1,0($0)
srl $1,$3,31
sltu $3,$3,$3
or $5,$3,$3
sllv $0,$3,$3
sw $6,8($0)
lb $0,3($0)
sb $4,5($0)
subu $4,$4,$3
srlv $5,$2,$3
and $4,$1,$3
lbu $5,0($0)
lh $1,14($0)
and $3,$5,$3
lw $3,4($0)
srl $4,$4,23
slti $3,$5,-24031
or $2,$2,$3
lw $4,0($0)
sra $4,$3,31
lhu $5,14($0)
addiu $0,$1,-606
addiu $4,$5,3125
slti $1,$1,-19991
nor $4,$1,$3
srlv $0,$3,$3
ori $4,$0,41796
srl $4,$4,11
or $3,$6,$3
sllv $1,$5,$3
sltiu $3,$3,-28892
lh $3,8($0)
sltu $4,$4,$3
lbu $3,16($0)
subu $3,$0,$3
and $3,$6,$3
lhu $3,14($0)
sb $4,5($0)
sltu $6,$4,$3
sltiu $3,$3,3712
srlv $5,$4,$3
srav $0,$1,$3
lb $4,6($0)
addu $5,$3,$3
sra $4,$5,27
andi $4,$5,3947
andi $4,$3,50836
lhu $1,8($0)
subu $1,$1,$3
sb $5,11($0)
sllv $4,$4,$3
sra $0,$5,29
srlv $3,$5,$3
sra $4,$5,21
srl $5,$4,1
ori $1,$1,60080
srav $3,$3,$3
andi $0,$0,1604
sltu $1,$5,$3
sllv $4,$4,$3
ori $4,$0,58062
lh $1,0($0)
subu $4,$5,$3
xor $4,$4,$3
sllv $3,$4,$3
lhu $0,10($0)
lh $3,14($0)
sllv $6,$4,$3
subu $4,$0,$3
slt $4,$5,$3
slti $4,$3,-22760
sw $5,4($0)
addiu $6,$3,25301
xori $5,$4,1951
lb $3,12($0)
andi $3,$1,28537
lhu $3,6($0)
addiu $5,$5,6452
or $5,$5,$3
slt $1,$1,$3
nor $3,$2,$3
subu $3,$5,$3
addu $5,$3,$3
ori $4,$4,59707
nor $3,$4,$3
srlv $6,$5,$3
sllv $3,$3,$3
sra $4,$6,4
sb $1,7($0)
subu $6,$3,$3
srl $6,$4,3
subu $3,$1,$3
sltu $3,$5,$3
lbu $3,10($0)
addu $1,$1,$3
sll $5,$3,26
lw $1,4($0)
subu $2,$2,$3
sw $3,8($0)
sb $4,14($0)
lb $4,12($0)
srav $1,$4,$3
slti $6,$5,-532
sw $3,4($0)
lbu $4,4($0)
addu $3,$5,$3
lh $5,16($0)
subu $5,$5,$3
sh $3,2($0)
subu $4,$4,$3
sb $3,8($0)
addiu $4,$3,28737
andi $3,$0,31441
addu $4,$2,$3
subu $4,$6,$3
sh $4,8($0)
srl $4,$3,9
addu $4,$0,$3
addu $6,$4,$3
lh $4,10($0)
lh $5,10($0)
lbu $3,15($0)
lw $0,4($0)
lw $1,4($0)
sltiu $4,$5,-7864
sllv $3,$3,$3
nor $0,$1,$3
subu $1,$1,$3
lh $4,8($0)
slti $3,$3,-32744
xor $3,$3,$3
slti $1,$6,2021
ori $1,$3,56415
srlv $4,$4,$3
addiu $4,$4,-15473
sh $3,16($0)
sltu $3,$1,$3
addu $1,$4,$3
sw $4,12($0)
srl $4,$4,22
xori $6,$6,40279
subu $6,$6,$3
addu $4,$4,$3
sw $4,16($0)
sllv $4,$3,$3
lh $3,4($0)
sltiu $3,$5,14548
sllv $5,$3,$3
lb $3,2($0)
addu $1,$1,$3
addiu $5,$0,-15799
subu $3,$5,$3
lw $4,8($0)
srav $5,$3,$3
addu $3,$3,$3
lb $3,9($0)
sw $6,0($0)
subu $3,$4,$3
or $3,$0,$3
and $3,$3,$3
subu $4,$4,$3
addu $3,$3,$3
lbu $4,9($0)
sltu $4,$4,$3
sll $4,$4,30
sltu $3,$2,$3
sllv $3,$3,$3
sb $3,1($0)
nor $6,$0,$3
sw $5,16($0)
lbu $4,5($0)
slt $4,$4,$3
xori $0,$1,8466
sw $3,0($0)
sh $0,8($0)
sra $3,$3,8
sll $6,$0,6
xor $4,$4,$3
lhu $0,0($0)
srav $3,$5,$3
andi $3,$6,63410
sh $3,0($0)
lw $3,16($0)
ori $6,$4,51645
addu $4,$1,$3
sltiu $1,$4,29240
lb $4,5($0)
slt $1,$1,$3
subu $5,$1,$3
subu $6,$4,$3
lh $5,12($0)
andi $1,$1,44793
andi $3,$5,15579
addu $3,$1,$3
andi $4,$4,58297
ori $0,$0,9323
slti $3,$3,-31254
srl $6,$5,22
|
data/pokemon/dex_entries/ivysaur.asm | Dev727/ancientplatinum | 28 | 241859 | db "SEED@" ; species name
dw 303, 290 ; height, weight
db "The bulb on its"
next "back grows as it"
next "absorbs nutrients."
page "The bulb gives off"
next "a pleasant aroma"
next "when it blooms.@"
|
src/main/antlr4/org/bschlangaul/antlr/RelationenSchema.g4 | bschlangaul-sammlung/java | 0 | 3754 | <filename>src/main/antlr4/org/bschlangaul/antlr/RelationenSchema.g4
grammar RelationenSchema;
einstiegsPunkt: relation+ EOF;
relation: relationenName '(' attribute ')';
attribute: attribut (trenner attribut)*;
relationenName: NAME;
attribut: (fremdSchluessel | attributName) (
(zusätzlicherSqlAusdruck
| istPrimaer)+
)?;
fremdSchluessel: attributName '[' relationenName ']';
attributName: NAME;
istPrimaer: '*';
zusätzlicherSqlAusdruck: '{' ~( '{' | '}' )* '}';
trenner: KOMMA;
name: NAME;
// http://unicode.org/reports/tr44/#Properties
NAME: [a-zA-Z0-9_\p{Block=Latin_1_Supplement}]+;
KOMMA: ',';
WS: [ \t\r\n]+ -> skip; // skip spaces, tabs, newlines
|
src/fot/DistributiveLaws/TaskB-AllStepsATP.agda | asr/fotc | 11 | 15910 | ------------------------------------------------------------------------------
-- Distributive laws on a binary operation: Task B
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymorphism #-}
{-# OPTIONS --without-K #-}
module DistributiveLaws.TaskB-AllStepsATP where
open import DistributiveLaws.Base
open import Common.FOL.Relation.Binary.EqReasoning
------------------------------------------------------------------------------
-- We prove all the proof steps of DistributiveLaws.TaskB-I using the
-- ATPs.
prop₂ : ∀ u x y z →
(x · y · (z · u)) · ((x · y · (z · u)) · (x · z · (y · u))) ≡
x · z · (y · u)
prop₂ u x y z =
xy·zu · (xy·zu · xz·yu) ≡⟨ j₁ ⟩
xy·zu · (x·zu · y·zu · xz·yu) ≡⟨ j₂ ⟩
xy·zu · (x·zu · xz·yu · (y·zu · xz·yu)) ≡⟨ j₃ ⟩
xy·zu · (xz·xu · xz·yu · (y·zu · xz·yu)) ≡⟨ j₄ ⟩
xy·zu · (xz · xu·yu · (y·zu · xz·yu)) ≡⟨ j₅ ⟩
xy·zu · (xz · xyu · (y·zu · xz·yu)) ≡⟨ j₆ ⟩
xy·zu · (xz · xyu · (yz·yu · xz·yu)) ≡⟨ j₇ ⟩
xy·zu · (xz · xyu · (yz·xz · yu)) ≡⟨ j₈ ⟩
xy·zu · (xz · xyu · (yxz · yu)) ≡⟨ j₉ ⟩
xy·zu · (xz · xyu · (yx·yu · z·yu)) ≡⟨ j₁₀ ⟩
xy·zu · (xz · xyu · (y·xu · z·yu)) ≡⟨ j₁₁ ⟩
xyz · xyu · (xz · xyu · (y·xu · z·yu)) ≡⟨ j₁₂ ⟩
xz·yz · xyu · (xz · xyu · (y·xu · z·yu)) ≡⟨ j₁₃ ⟩
xz · xyu · (yz · xyu) · (xz · xyu · (y·xu · z·yu)) ≡⟨ j₁₄ ⟩
xz · xyu · (yz · xyu · (y·xu · z·yu)) ≡⟨ j₁₅ ⟩
xz · xyu · (yz · xu·yu · (y·xu · z·yu)) ≡⟨ j₁₆ ⟩
xz · xyu · (y · xu·yu · (z · xu·yu) · (y·xu · z·yu)) ≡⟨ j₁₇ ⟩
xz · xyu ·
(y · xu·yu · (y·xu · z·yu) · (z · xu·yu · (y·xu · z·yu))) ≡⟨ j₁₈ ⟩
xz · xyu ·
(y·xu · y·yu · (y·xu · z·yu) · (z · xu·yu · (y·xu · z·yu))) ≡⟨ j₁₉ ⟩
xz · xyu · (y·xu · (y·yu · z·yu) · (z · xu·yu · (y·xu · z·yu))) ≡⟨ j₂₀ ⟩
xz · xyu · (y·xu · yz·yu · (z · xu·yu · (y·xu · z·yu))) ≡⟨ j₂₁ ⟩
xz · xyu · (y·xu · y·zu · (z · xu·yu · (y·xu · z·yu))) ≡⟨ j₂₂ ⟩
xz · xyu · (y · xu·zu · (z · xu·yu · (y·xu · z·yu))) ≡⟨ j₂₃ ⟩
xz · xyu · (y · xu·zu · (z·xu · z·yu · (y·xu · z·yu))) ≡⟨ j₂₄ ⟩
(xz · xyu) · (y · xu·zu · (z·xu · y·xu · z·yu)) ≡⟨ j₂₅ ⟩
xz · xyu · (y · xu·zu · (zy·xu · z·yu)) ≡⟨ j₂₆ ⟩
xz · xyu · (y · xu·zu · (zy·xu · zy·zu)) ≡⟨ j₂₇ ⟩
xz · xyu · (y · xu·zu · (zy · xu·zu)) ≡⟨ j₂₈ ⟩
xz · xyu · (y·zy · xu·zu) ≡⟨ j₂₉ ⟩
xz · xyu · (y·zy · xzu) ≡⟨ j₃₀ ⟩
xz·xy · xzu · (y·zy · xzu) ≡⟨ j₃₁ ⟩
x·zy · xzu · (y·zy · xzu) ≡⟨ j₃₂ ⟩
x·zy · y·zy · xzu ≡⟨ j₃₃ ⟩
xy·zy · xzu ≡⟨ j₃₄ ⟩
xzy · xzu ≡⟨ j₃₅ ⟩
xz·yu ∎
where
-- Two variables abbreviations
xz = x · z
yu = y · u
yz = y · z
zy = z · y
{-# ATP definitions xz yu yz zy #-}
-- Three variables abbreviations
xyu = x · y · u
xyz = x · y · z
xzu = x · z · u
xzy = x · z · y
yxz = y · x · z
{-# ATP definitions xyu xyz xzu xzy yxz #-}
x·yu = x · (y · u)
x·zu = x · (z · u)
x·zy = x · (z · y)
{-# ATP definitions x·yu x·zu x·zy #-}
y·xu = y · (x · u)
y·yu = y · (y · u)
y·zu = y · (z · u)
y·zy = y · (z · y)
{-# ATP definitions y·xu y·yu y·zu y·zy #-}
z·xu = z · (x · u)
z·yu = z · (y · u)
{-# ATP definitions z·xu z·yu #-}
-- Four variables abbreviations
xu·yu = x · u · (y · u)
xu·zu = x · u · (z · u)
{-# ATP definitions xu·yu xu·zu #-}
xy·yz = x · y · (y · z)
xy·zu = x · y · (z · u)
xy·zy = x · y · (z · y)
{-# ATP definitions xy·yz xy·zu xy·zy #-}
xz·xu = x · z · (x · u)
xz·xy = x · z · (x · y)
xz·yu = x · z · (y · u)
xz·yz = x · z · (y · z)
{-# ATP definitions xz·xu xz·xy xz·yu xz·yz #-}
yx·yu = y · x · (y · u)
{-# ATP definition yx·yu #-}
yz·xz = y · z · (x · z)
yz·yu = y · z · (y · u)
{-# ATP definitions yz·xz yz·yu #-}
zy·xu = z · y · (x · u)
zy·zu = z · y · (z · u)
{-# ATP definitions zy·xu zy·zu #-}
-- Steps justifications
postulate j₁ : xy·zu · (xy·zu · xz·yu) ≡
xy·zu · (x·zu · y·zu · xz·yu)
{-# ATP prove j₁ #-}
postulate j₂ : xy·zu · (x·zu · y·zu · xz·yu) ≡
xy·zu · (x·zu · xz·yu · (y·zu · xz·yu))
{-# ATP prove j₂ #-}
postulate j₃ : xy·zu · (x·zu · xz·yu · (y·zu · xz·yu)) ≡
xy·zu · (xz·xu · xz·yu · (y·zu · xz·yu))
{-# ATP prove j₃ #-}
postulate j₄ : xy·zu · (xz·xu · xz·yu · (y·zu · xz·yu)) ≡
xy·zu · (xz · xu·yu · (y·zu · xz·yu))
{-# ATP prove j₄ #-}
postulate j₅ : xy·zu · (xz · xu·yu · (y·zu · xz·yu)) ≡
xy·zu · (xz · xyu · (y·zu · xz·yu))
{-# ATP prove j₅ #-}
postulate j₆ : xy·zu · (xz · xyu · (y·zu · xz·yu)) ≡
xy·zu · (xz · xyu · (yz·yu · xz·yu))
{-# ATP prove j₆ #-}
postulate j₇ : xy·zu · (xz · xyu · (yz·yu · xz·yu)) ≡
xy·zu · (xz · xyu · (yz·xz · yu))
{-# ATP prove j₇ #-}
postulate j₈ : xy·zu · (xz · xyu · (yz·xz · yu)) ≡
xy·zu · (xz · xyu · (yxz · yu))
{-# ATP prove j₈ #-}
postulate j₉ : xy·zu · (xz · xyu · (yxz · yu)) ≡
xy·zu · (xz · xyu · (yx·yu · z·yu))
{-# ATP prove j₉ #-}
postulate j₁₀ : xy·zu · (xz · xyu · (yx·yu · z·yu)) ≡
xy·zu · (xz · xyu · (y·xu · z·yu))
{-# ATP prove j₁₀ #-}
postulate j₁₁ : xy·zu · (xz · xyu · (y·xu · z·yu)) ≡
xyz · xyu · (xz · xyu · (y·xu · z·yu))
{-# ATP prove j₁₁ #-}
postulate j₁₂ : xyz · xyu · (xz · xyu · (y·xu · z·yu)) ≡
xz·yz · xyu · (xz · xyu · (y·xu · z·yu))
{-# ATP prove j₁₂ #-}
postulate j₁₃ : xz·yz · xyu · (xz · xyu · (y·xu · z·yu)) ≡
xz · xyu · (yz · xyu) · (xz · xyu · (y·xu · z·yu))
{-# ATP prove j₁₃ #-}
postulate j₁₄ : xz · xyu · (yz · xyu) · (xz · xyu · (y·xu · z·yu)) ≡
xz · xyu · (yz · xyu · (y·xu · z·yu))
{-# ATP prove j₁₄ #-}
postulate j₁₅ : xz · xyu · (yz · xyu · (y·xu · z·yu)) ≡
xz · xyu · (yz · xu·yu · (y·xu · z·yu))
{-# ATP prove j₁₅ #-}
postulate j₁₆ : xz · xyu · (yz · xu·yu · (y·xu · z·yu)) ≡
xz · xyu · (y · xu·yu · (z · xu·yu) · (y·xu · z·yu))
{-# ATP prove j₁₆ #-}
postulate
j₁₇ : xz · xyu · (y · xu·yu · (z · xu·yu) · (y·xu · z·yu)) ≡
xz · xyu ·
(y · xu·yu · (y·xu · z·yu) · (z · xu·yu · (y·xu · z·yu)))
{-# ATP prove j₁₇ #-}
postulate
j₁₈ : xz · xyu ·
(y · xu·yu · (y·xu · z·yu) · (z · xu·yu · (y·xu · z·yu))) ≡
xz · xyu ·
(y·xu · y·yu · (y·xu · z·yu) · (z · xu·yu · (y·xu · z·yu)))
{-# ATP prove j₁₈ #-}
postulate
j₁₉ : xz · xyu ·
(y·xu · y·yu · (y·xu · z·yu) · (z · xu·yu · (y·xu · z·yu))) ≡
xz · xyu · (y·xu · (y·yu · z·yu) · (z · xu·yu · (y·xu · z·yu)))
{-# ATP prove j₁₉ #-}
postulate
j₂₀ : xz · xyu · (y·xu · (y·yu · z·yu) · (z · xu·yu · (y·xu · z·yu))) ≡
xz · xyu · (y·xu · yz·yu · (z · xu·yu · (y·xu · z·yu)))
{-# ATP prove j₂₀ #-}
postulate j₂₁ : xz · xyu · (y·xu · yz·yu · (z · xu·yu · (y·xu · z·yu))) ≡
xz · xyu · (y·xu · y·zu · (z · xu·yu · (y·xu · z·yu)))
{-# ATP prove j₂₁ #-}
postulate j₂₂ : xz · xyu · (y·xu · y·zu · (z · xu·yu · (y·xu · z·yu))) ≡
xz · xyu · (y · xu·zu · (z · xu·yu · (y·xu · z·yu)))
{-# ATP prove j₂₂ #-}
postulate j₂₃ : xz · xyu · (y · xu·zu · (z · xu·yu · (y·xu · z·yu))) ≡
xz · xyu · (y · xu·zu · (z·xu · z·yu · (y·xu · z·yu)))
{-# ATP prove j₂₃ #-}
postulate j₂₄ : xz · xyu · (y · xu·zu · (z·xu · z·yu · (y·xu · z·yu))) ≡
(xz · xyu) · (y · xu·zu · (z·xu · y·xu · z·yu))
{-# ATP prove j₂₄ #-}
postulate j₂₅ : (xz · xyu) · (y · xu·zu · (z·xu · y·xu · z·yu)) ≡
xz · xyu · (y · xu·zu · (zy·xu · z·yu))
{-# ATP prove j₂₅ #-}
postulate j₂₆ : xz · xyu · (y · xu·zu · (zy·xu · z·yu)) ≡
xz · xyu · (y · xu·zu · (zy·xu · zy·zu))
{-# ATP prove j₂₆ #-}
postulate j₂₇ : xz · xyu · (y · xu·zu · (zy·xu · zy·zu)) ≡
xz · xyu · (y · xu·zu · (zy · xu·zu))
{-# ATP prove j₂₇ #-}
postulate j₂₈ : xz · xyu · (y · xu·zu · (zy · xu·zu)) ≡
xz · xyu · (y·zy · xu·zu)
{-# ATP prove j₂₈ #-}
postulate j₂₉ : xz · xyu · (y·zy · xu·zu) ≡ xz · xyu · (y·zy · xzu)
{-# ATP prove j₂₉ #-}
postulate j₃₀ : xz · xyu · (y·zy · xzu) ≡ xz·xy · xzu · (y·zy · xzu)
{-# ATP prove j₃₀ #-}
postulate j₃₁ : xz·xy · xzu · (y·zy · xzu) ≡ x·zy · xzu · (y·zy · xzu)
{-# ATP prove j₃₁ #-}
postulate j₃₂ : x·zy · xzu · (y·zy · xzu) ≡ x·zy · y·zy · xzu
{-# ATP prove j₃₂ #-}
postulate j₃₃ : x·zy · y·zy · xzu ≡ xy·zy · xzu
{-# ATP prove j₃₃ #-}
postulate j₃₄ : xy·zy · xzu ≡ xzy · xzu
{-# ATP prove j₃₄ #-}
postulate j₃₅ : xzy · xzu ≡ xz·yu
{-# ATP prove j₃₅ #-}
|
nicolai/anonymousExistence/Sec4hasConstToSplit.agda | nicolaikraus/HoTT-Agda | 1 | 8948 | <reponame>nicolaikraus/HoTT-Agda
{-# OPTIONS --without-K #-}
open import library.Basics hiding (Type ; Σ)
open import library.types.Sigma
open import library.NType2
open import Sec2preliminaries
open import Sec3hedberg
module Sec4hasConstToSplit where
-- Auxiliary Lemma 4.2
transport-is-comp : {X Y : Type} → {x₁ x₂ : X}
→ (h k : X → Y) → (t : x₁ == x₂) → (p : h x₁ == k x₁)
→ (transport _ t p) == ! (ap h t) ∙ p ∙ ap k t
transport-is-comp h k idp p = ! (∙-unit-r _)
-- Auxiliary Lemma 4.3, part 1
wconstant-implies-path-wconstant : {X Y : Type} → (f : X → Y) → (const f)
→ (x₁ x₂ : X) → const (ap f {x = x₁} {y = x₂})
wconstant-implies-path-wconstant {X} f c x₁ x₂ p₁ p₂ = claim-cor where
claim : {x₃ x₄ : X} → {p : x₃ == x₄} → (ap f p) == ! (c x₃ x₃) ∙ (c x₃ x₄)
claim {x₃} {p = idp} = ! (!-inv-l (c x₃ x₃))
claim-cor : ap f p₁ == ap f p₂
claim-cor =
ap f p₁ =⟨ claim ⟩
! (c x₁ x₁) ∙ (c x₁ x₂) =⟨ ! claim ⟩
ap f p₂ ∎
-- Auxiliary Lemma 4.3, part 2
wconstant-refl : {X Y : Type} → (f : X → Y) → (const f)
→ (x : X) → (p : x == x) → ap f p == idp
wconstant-refl f c x p = wconstant-implies-path-wconstant f c x x p idp
-- We also need the following very simple lemma:
ap-id-trivial : {X : Type} → {x₁ x₂ : X} → (p : x₁ == x₂) → ap (idf X) p == p
ap-id-trivial idp = idp
-- Lemma 4.1 needs a bit of preparation.
fix : {X : Type} → (f : X → X) → Type
fix {X} f = Σ X λ x → x == f x
-- let us give a name to the map X → fix f:
to-fix : {X : Type} → (f : X → X) → (const f) → X → fix f
to-fix f c x₀ = f x₀ , c _ _
-- the other direction is just projection:
from-fix : {X : Type} → (f : X → X) → fix f → X
from-fix f (x₀ , p₀) = x₀
-- let us structure the proof of the fixed point lemma a bit:
module fixedpoint {X : Type} (f : X → X) (c : const f) where
-- let us show that (x , p) == (x , q) first
module _ (x : X) (p q : x == f x) where
t : x == x
t = p ∙ ! q
r : f x == f x
r = ap f t
r-is-triv : r == idp
r-is-triv = wconstant-refl f c x t
t' : x == x
t' = ap (idf X) t
t'-is-t : t' == t
t'-is-t = ap-id-trivial t
trans-t-p-is-q : transport (λ y → y == f y) t p == q
trans-t-p-is-q =
transport (λ y → y == f y) t p =⟨ transport-is-comp (idf X) f t p ⟩
! t' ∙ p ∙ r =⟨ ap (λ s → ! s ∙ p ∙ r) t'-is-t ⟩
! t ∙ p ∙ r =⟨ ! (∙-assoc (! t) _ _) ⟩
(! t ∙ p) ∙ r =⟨ ap (λ s → (! t ∙ p) ∙ s) r-is-triv ⟩
(! t ∙ p) ∙ idp =⟨ ∙-unit-r _ ⟩
! t ∙ p =⟨ ap (λ s → s ∙ p) (!-∙ p (! q)) ⟩
(! (! q) ∙ ! p) ∙ p =⟨ ∙-assoc (! (! q)) _ _ ⟩
! (! q) ∙ ! p ∙ p =⟨ ap (λ s → ! (! q) ∙ s) (!-inv-l p) ⟩
! (! q) ∙ idp =⟨ ∙-unit-r _ ⟩
! (! q) =⟨ !-! _ ⟩
q ∎
single-x-claim : (x , p) == (x , q)
single-x-claim = pair= t (from-transp _ _ trans-t-p-is-q)
-- Now, we can prove that (x₁ , p₁) and (x₂ , p₂) are always equal:
fix-paths : has-all-paths (fix f)
fix-paths (x₁ , p₁) (x₂ , p₂) =
(x₁ , p₁) =⟨ pair= (p₁ ∙ c x₁ x₂ ∙ ! p₂) (from-transp _ (p₁ ∙ c x₁ x₂ ∙ ! p₂) idp) ⟩
(x₂ , _) =⟨ single-x-claim x₂ _ _ ⟩
(x₂ , p₂) ∎
-- finally, the proof of the fixed point lemma
fixed-point : {X : Type} → (f : X → X) → (const f) → is-prop (fix f)
fixed-point {X} f c = all-paths-is-prop (fixedpoint.fix-paths f c)
-- Sattler's argument
fixed-point-alt : {X : Type} → (f : X → X) → (const f) → is-prop (fix f)
fixed-point-alt {X} f c = inhab-to-contr-is-prop inh→contr where
inh→contr : fix f → is-contr (fix f)
inh→contr (x₀ , p₀) = equiv-preserves-level {A = Σ X λ x → x == f x₀} {B = fix f} claim-Σ (pathto-is-contr _) where
claim : (x : X) → (x == f x₀) ≃ (x == f x)
claim x = (λ p → p ∙ c x₀ x) , post∙-is-equiv _
claim-Σ : (Σ X λ x → x == f x₀) ≃ fix f
claim-Σ = equiv-Σ-snd claim
-- Corollary 4.4
-- let us define the following map:
trunc-to-fix : {X : Type} → (fc : hasConst X) → Trunc X → fix (fst fc)
trunc-to-fix (f , c) z = rec (fixed-point f c) (to-fix f c) z
hasConst→splitSup : {X : Type} → hasConst X → splitSup X
hasConst→splitSup (f , c) = (from-fix f) ∘ trunc-to-fix (f , c)
-- Theorem 4.5
hasConst↔splitSup : {X : Type} → hasConst X ↔ splitSup X
hasConst↔splitSup {X} = hasConst→splitSup , splitSup→hasConst where
splitSup→hasConst : splitSup X → hasConst X
splitSup→hasConst hst = f , c where
f = hst ∘ ∣_∣
c : const f
c x₁ x₂ =
f x₁ =⟨ idp ⟩
hst ∣ x₁ ∣ =⟨ ap hst (prop-has-all-paths (h-tr _) _ _) ⟩
hst ∣ x₂ ∣ =⟨ idp ⟩
f x₂ ∎
-- preparation for Theorem 4.6 - we need to prove that
-- f : X → X with an inhabitant of Trunc (wconst f) is enough
-- to show that fix f is propositional.
fixed-point-strong : {X : Type} → (f : X → X) → (Trunc (const f)) → is-prop (fix f)
fixed-point-strong {X} f = rec {X = const f} {P = is-prop(fix f)} is-prop-is-prop (fixed-point f)
-- Theorem 4.6 (we exclude the part which is already included in 4.5)
-- to get an easy proof of the addendum, we structure it in the following way:
module thm46 {X : Type} where
module _ (fhc : Σ (X → X) (Trunc ∘ const)) where
f = fst fhc
hc = snd fhc
trunc-wconst-fix : Trunc X → Trunc(const f) → fix f
trunc-wconst-fix z = rec {X = const f} {P = fix f} (fixed-point-strong f hc) (λ c → trunc-to-fix (f , c) z)
trunc-fix : Trunc X → fix f
trunc-fix z = trunc-wconst-fix z hc
g : X → X
g = fst ∘ trunc-fix ∘ ∣_∣
g-wconst : const g
g-wconst x₁ x₂ = ap (fst ∘ trunc-fix) (prop-has-all-paths (h-tr _) _ _)
hasConst↔hideProof : {X : Type} → hasConst X ↔ Σ (X → X) (Trunc ∘ const)
hasConst↔hideProof {X} = one , two where
one : hasConst X → Σ (X → X) (Trunc ∘ const)
one (f , c) = f , ∣ c ∣
two : (Σ (X → X) (Trunc ∘ const)) → hasConst X
two fhc = thm46.g fhc , thm46.g-wconst fhc
-- Theorem 4.6 addendum
merely-equal : {X : Type} → (fhc : Σ (X → X) (Trunc ∘ const)) → Trunc ((x : X) → fst fhc x == thm46.g fhc x)
merely-equal {X} (f , hc) = rec (h-tr _) (∣_∣ ∘ wconst-equal) hc where
open thm46 hiding (f ; hc)
wconst-equal : const f → (x : X) → f x == thm46.g (f , hc) x
wconst-equal c x =
f x =⟨ idp ⟩
fst (to-fix f c x) =⟨ ap fst (! (trunc-β _ _ x)) ⟩
fst (trunc-to-fix (f , c) ∣ x ∣) =⟨ ap fst (! (trunc-β _ _ c)) ⟩
fst (trunc-wconst-fix (f , hc) ∣ x ∣ ∣ c ∣) =⟨ ap (λ hc' → fst (trunc-wconst-fix (f , hc) ∣ x ∣ hc')) (prop-has-all-paths (h-tr _) _ _) ⟩
fst (trunc-wconst-fix (f , hc) ∣ x ∣ hc) =⟨ idp ⟩
fst (trunc-fix (f , hc) ∣ x ∣) =⟨ idp ⟩
g (f , hc) x ∎
|
util/gut/mexec.asm | olifink/smsqe | 0 | 165810 | <filename>util/gut/mexec.asm
* Execute code from memory v0.00 May 1988 J.R.Oakley QJUMP
*
section gen_util
*
include 'dev8_keys_err'
include 'dev8_keys_qdos_sms'
*
xref gu_exec
*
xdef gu_mexec
*+++
* This uses the general execute utility GU_EXEC to execute code which is
* resident in memory.
*
* Registers:
* Entry Exit
* D0 error code
* D1 owner, or 0, or -1 job ID
* D2 priority | timeout preserved
* D3 dataspace preserved
* A0 start of program preserved
* A1 parameter string preserved
* stack MEXEC $08+GU_EXEC
*---
gu_mexec
ugmreg reg d4/a2
movem.l ugmreg,-(sp)
move.l d3,d4 ; pass dataspace required
lea ugm_ucod(pc),a2 ; point to user code
jsr gu_exec(pc) ; and use it to execute
movem.l (sp)+,ugmreg
rts
*
ugm_ucod
bra.s ugm_read
nop
bra.s ugm_open
nop
ugm_clos
moveq #0,d0
rts
*
* This copies the Job header
*
ugm_read
move.l d2,d0 ; length to copy (always +ve even)
umr_loop
move.w (a0)+,(a1)+ ; copy header
subq.l #2,d0
bgt.s umr_loop
sub.l d2,a1 ; restore code pointer
rts
*
ugm_open
move.l d4,d3 ; data space
move.l a0,a1 ; start
moveq #8+2+1,d2 ; header length (zero length name)
addq.l #6,a0
cmp.w #$4afb,(a0)+ ; standard?
bne.s umo_exit ; ... no
add.w (a0),d2
umo_exit
bclr #0,d2 ; round up to even, already one too long
move.l a1,a0 ; set pointer to header
moveq #0,d0
rts
end
|
util/src/yaml-to_dom.adb | robdaemon/AdaYaml | 32 | 11537 | -- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Text_IO;
with Ada.Command_Line;
with Yaml.Source.Text_IO;
with Yaml.Source.File;
with Yaml.Dom.Loading;
with Yaml.Dom.Node;
pragma Unreferenced (Yaml.Dom.Node);
procedure Yaml.To_Dom is
use type Dom.Node_Kind;
Input : Source.Pointer;
begin
if Ada.Command_Line.Argument_Count = 0 then
Input := Source.Text_IO.As_Source (Ada.Text_IO.Standard_Input);
else
Input := Source.File.As_Source (Ada.Command_Line.Argument (1));
end if;
declare
Document : constant Dom.Document_Reference :=
Dom.Loading.From_Source (Input);
Root_Node : constant not null access Dom.Node.Instance :=
Document.Root.Value.Data;
procedure Visit_Pair (Key, Value : not null access Dom.Node.Instance) is
begin
Ada.Text_IO.Put_Line ("Key: " & Key.Kind'Img);
if Key.Kind = Dom.Scalar then
Ada.Text_IO.Put_Line (" """ & Key.Content.Value.Data.all & """");
end if;
Ada.Text_IO.Put_Line ("Value: " & Value.Kind'Img);
if Value.Kind = Dom.Scalar then
Ada.Text_IO.Put_Line (" """ & Value.Content.Value.Data.all & """");
end if;
end Visit_Pair;
begin
Ada.Text_IO.Put_Line ("Root is " & Root_Node.Kind'Img);
if Root_Node.Kind = Dom.Mapping then
Root_Node.Pairs.Iterate (Visit_Pair'Access);
end if;
end;
end Yaml.To_Dom;
|
src/rejuvenation-find_and_replacer.ads | TNO/Rejuvenation-Ada | 0 | 29535 | with Rejuvenation.Match_Patterns; use Rejuvenation.Match_Patterns;
with Rejuvenation.Node_Locations; use Rejuvenation.Node_Locations;
with Rejuvenation.Patterns; use Rejuvenation.Patterns;
with Rejuvenation.Text_Rewrites; use Rejuvenation.Text_Rewrites;
package Rejuvenation.Find_And_Replacer is
function Accept_All_Matches (Match : Match_Pattern) return Boolean;
procedure Find_And_Replace
(TR : in out Text_Rewrite'Class; Node : Ada_Node'Class;
Find_Pattern, Replace_Pattern : Pattern;
Accept_Match : not null access function
(Match : Match_Pattern) return Boolean :=
Accept_All_Matches'Access;
Before, After : Node_Location := No_Trivia);
function Find_And_Replace
(File_Path : String; Find_Pattern, Replace_Pattern : Pattern;
Accept_Match : not null access function
(Match : Match_Pattern) return Boolean :=
Accept_All_Matches'Access;
Before, After : Node_Location := No_Trivia) return Boolean;
-- Find instances of the given pattern and
-- for each accepted match replaces using the given replacement pattern.
-- Placeholder names defined in the find pattern that occur
-- in the replacement pattern are replaced
-- by the matching string at the placeholder.
-- Return value indicates whether any match was found and accepted
-- Note: When a match is found and accepted, the file will be changed
--
-- Note: When find-and-replacing all instances of a particular warning
-- detected by your favorite linter, such as GNATcheck and CodePeer,
-- you don't have to reimplement the semantic check of that warning, since
-- you can just check whether the location of the found instance occurs
-- in the list of reported locations by the linter.
end Rejuvenation.Find_And_Replacer;
|
qikkDB/GpuSqlParser/GpuSqlParser.g4 | veselyja/qikkdb-community | 15 | 5639 | parser grammar GpuSqlParser;
options {
tokenVocab = GpuSqlLexer;
}
sqlFile: statement* EOF;
statement:
sqlSelect
| sqlCreateDb
| sqlDropDb
| sqlCreateTable
| sqlDropTable
| sqlAlterTable
| sqlAlterDatabase
| sqlCreateIndex
| sqlInsertInto
| showStatement
| showQueryTypes;
showStatement: ( showDatabases | showTables | showColumns | showConstraints );
showDatabases: SHOW DATABASES SEMICOL;
showTables: SHOW TABLES ((FROM | IN) database)? SEMICOL;
showColumns:
SHOW COLUMNS (FROM | IN) table ((FROM | IN) database)? SEMICOL;
showConstraints: SHOW CONSTRAINTS (FROM | IN) table ((FROM | IN) database)? SEMICOL;
showQueryTypes: SHOW QUERY COLUMN TYPES sqlSelect;
sqlSelect:
SELECT selectColumns FROM fromTables (joinClauses)? (
WHERE whereClause
)? (GROUP BY groupByColumns)? (ORDER BY orderByColumns)? (
LIMIT limit
)? (OFFSET offset)? SEMICOL;
sqlCreateDb: CREATE DATABASE database (blockSize)? SEMICOL;
sqlDropDb: DROP DATABASE database SEMICOL;
sqlCreateTable:
CREATE TABLE table (blockSize)? LPAREN newTableEntries RPAREN SEMICOL;
sqlDropTable: DROP TABLE table SEMICOL;
sqlAlterTable: ALTER TABLE table alterTableEntries SEMICOL;
sqlAlterDatabase:
ALTER DATABASE database alterDatabaseEntries SEMICOL;
sqlCreateIndex:
CREATE INDEX indexName ON table LPAREN indexColumns RPAREN SEMICOL;
sqlInsertInto:
INSERT INTO table LPAREN insertIntoColumns RPAREN VALUES LPAREN insertIntoValues RPAREN SEMICOL;
newTableEntries: ((newTableEntry (COMMA newTableEntry)*));
newTableEntry: (newTableColumn | newTableConstraint);
alterDatabaseEntries: (
(alterDatabaseEntry (COMMA alterDatabaseEntry)*)
);
alterDatabaseEntry: (
renameDatabase
| alterBlockSize
);
renameDatabase: (RENAME TO database);
alterTableEntries: ((alterTableEntry (COMMA alterTableEntry)*));
alterTableEntry: (
addColumn
| dropColumn
| alterColumn
| renameColumn
| renameTable
| addConstraint
| dropConstraint
| alterBlockSize
);
addColumn: (ADD column datatype);
dropColumn: (DROP COLUMN column);
alterColumn: (ALTER COLUMN column datatype);
renameColumn: (RENAME COLUMN renameColumnFrom TO renameColumnTo);
renameTable: (RENAME TO table);
addConstraint: (
ADD constraint constraintName LPAREN constraintColumns RPAREN
);
dropConstraint: (DROP constraint constraintName);
alterBlockSize: (ALTER BLOCK SIZE blockSize);
renameColumnFrom: column;
renameColumnTo: column;
newTableColumn: (column datatype (constraint)?);
newTableConstraint: (
constraint constraintName LPAREN constraintColumns RPAREN
);
selectColumns: (
(
(selectColumn | selectAllColumns) (
COMMA (selectColumn | selectAllColumns)
)*
)
);
selectColumn: expression (AS alias)? (RETPAYLOAD retpayload)?;
selectAllColumns: ASTERISK;
whereClause: expression;
orderByColumns: ((orderByColumn (COMMA orderByColumn)*));
orderByColumn: (expression DIR?);
insertIntoValues: ((columnValue (COMMA columnValue)*));
insertIntoColumns: ((columnId (COMMA columnId)*));
indexColumns: ((column (COMMA column)*));
constraintColumns: ((column (COMMA column)*));
groupByColumns: ((groupByColumn (COMMA groupByColumn)*));
groupByColumn: expression;
fromTables: ((fromTable (COMMA fromTable)*));
joinClauses: (joinClause)+;
joinClause: (
(joinType)? JOIN joinTable ON joinColumnLeft joinOperator joinColumnRight
);
joinTable: table (AS alias)?;
joinColumnLeft: columnId;
joinColumnRight: columnId;
joinOperator: (
GREATER
| LESS
| GREATEREQ
| LESSEQ
| EQUALS
| NOTEQUALS
| NOTEQUALS_GT_LT
);
joinType: (INNER | LEFT | RIGHT | FULL OUTER);
fromTable: table (AS alias)?;
columnId: (column) | (table DOT column);
table: (ID | DELIMID);
column: (ID | DELIMID);
database: (ID | DELIMID);
alias: (ID | DELIMID);
indexName: (ID | DELIMID);
constraintName: (ID | DELIMID);
limit: INTLIT;
offset: INTLIT;
blockSize: INTLIT;
columnValue: (
MINUS? INTLIT
| MINUS? FLOATLIT
| geometry
| NULL_T
| STRING
| DATETIMELIT
| BOOLEANLIT
);
constraint: ( UNIQUE | INDEX | NOT NULL_T);
retpayload: datatype;
expression:
op = LOGICAL_NOT expression # unaryOperation
| op = MINUS expression # unaryOperation
| expression IS op = NULL_T # unaryOperation
| expression IS op = NOT NULL_T # unaryOperation
| op = ABS LPAREN expression RPAREN # unaryOperation
| op = SIN LPAREN expression RPAREN # unaryOperation
| op = COS LPAREN expression RPAREN # unaryOperation
| op = TAN LPAREN expression RPAREN # unaryOperation
| op = COT LPAREN expression RPAREN # unaryOperation
| op = ASIN LPAREN expression RPAREN # unaryOperation
| op = ACOS LPAREN expression RPAREN # unaryOperation
| op = ATAN LPAREN expression RPAREN # unaryOperation
| op = LOG10 LPAREN expression RPAREN # unaryOperation
| op = LOG LPAREN expression RPAREN # unaryOperation
| op = EXP LPAREN expression RPAREN # unaryOperation
| op = SQRT LPAREN expression RPAREN # unaryOperation
| op = SQUARE LPAREN expression RPAREN # unaryOperation
| op = SIGN LPAREN expression RPAREN # unaryOperation
| op = ROUND LPAREN expression RPAREN # unaryOperation
| op = FLOOR LPAREN expression RPAREN # unaryOperation
| op = CEIL LPAREN expression RPAREN # unaryOperation
| op = DATETYPE LPAREN expression RPAREN # unaryOperation
| op = YEAR LPAREN expression RPAREN # unaryOperation
| op = MONTH LPAREN expression RPAREN # unaryOperation
| op = DAY LPAREN expression RPAREN # unaryOperation
| op = HOUR LPAREN expression RPAREN # unaryOperation
| op = MINUTE LPAREN expression RPAREN # unaryOperation
| op = SECOND LPAREN expression RPAREN # unaryOperation
| op = WEEKDAY LPAREN expression RPAREN # unaryOperation
| op = DAYOFWEEK LPAREN expression RPAREN # unaryOperation
| op = LTRIM LPAREN expression RPAREN # unaryOperation
| op = RTRIM LPAREN expression RPAREN # unaryOperation
| op = LOWER LPAREN expression RPAREN # unaryOperation
| op = UPPER LPAREN expression RPAREN # unaryOperation
| op = REVERSE LPAREN expression RPAREN # unaryOperation
| op = LEN LPAREN expression RPAREN # unaryOperation
| left = expression op = (DIVISION | ASTERISK) right = expression # binaryOperation
| left = expression op = (PLUS | MINUS) right = expression # binaryOperation
| left = expression op = MODULO right = expression # binaryOperation
| op = ATAN2 LPAREN left = expression COMMA right = expression RPAREN # binaryOperation
| op = LOG LPAREN left = expression COMMA right = expression RPAREN # binaryOperation
| op = POW LPAREN left = expression COMMA right = expression RPAREN # binaryOperation
| op = ROOT LPAREN left = expression COMMA right = expression RPAREN # binaryOperation
| op = ROUND LPAREN left = expression COMMA right = expression RPAREN # binaryOperation
| left = expression op = XOR right = expression # binaryOperation
| left = expression op = (BIT_AND | BIT_OR) right = expression # binaryOperation
| left = expression op = (L_SHIFT | R_SHIFT) right = expression # binaryOperation
| left = expression op = (GREATER | LESS) right = expression # binaryOperation
| left = expression op = (GREATEREQ | LESSEQ) right = expression # binaryOperation
| left = expression op = (EQUALS | NOTEQUALS) right = expression # binaryOperation
| left = expression op = NOTEQUALS_GT_LT right = expression # binaryOperation
| op = POINT LPAREN left = expression COMMA right = expression RPAREN # binaryOperation
| op = GEO_CONTAINS LPAREN left = expression COMMA right = expression RPAREN # binaryOperation
| op = GEO_INTERSECT LPAREN left = expression COMMA right = expression RPAREN # binaryOperation
| op = GEO_UNION LPAREN left = expression COMMA right = expression RPAREN # binaryOperation
| op = GEO_LONGITUDE_TO_TILE_X LPAREN left = expression COMMA right = expression RPAREN # binaryOperation
| op = GEO_LATITUDE_TO_TILE_Y LPAREN left = expression COMMA right = expression RPAREN # binaryOperation
| op = GEO_TILE_X_TO_LONGITUDE LPAREN left = expression COMMA right = expression RPAREN # binaryOperation
| op = GEO_TILE_Y_TO_LATITUDE LPAREN left = expression COMMA right = expression RPAREN # binaryOperation
| op = CONCAT LPAREN left = expression COMMA right = expression RPAREN # binaryOperation
| op = LEFT LPAREN left = expression COMMA right = expression RPAREN # binaryOperation
| op = RIGHT LPAREN left = expression COMMA right = expression RPAREN # binaryOperation
| expression op = BETWEEN expression op2 = AND expression # ternaryOperation
| left = expression op = AND right = expression # binaryOperation
| left = expression op = OR right = expression # binaryOperation
| op = CAST LPAREN expression AS datatype RPAREN # castOperation
| LPAREN expression RPAREN # parenExpression
| columnId # varReference
| geometry # geoReference
| DATETIMELIT # dateTimeLiteral
| FLOATLIT # decimalLiteral
| PI # piLiteral
| NOW # nowLiteral
| INTLIT # intLiteral
| STRING # stringLiteral
| BOOLEANLIT # booleanLiteral
| op = MIN_AGG LPAREN (expression) RPAREN # aggregation
| op = MAX_AGG LPAREN (expression) RPAREN # aggregation
| op = SUM_AGG LPAREN (expression) RPAREN # aggregation
| op = COUNT_AGG LPAREN (expression) RPAREN # aggregation
| op = COUNT_AGG LPAREN ASTERISK RPAREN # aggregation
| op = AVG_AGG LPAREN (expression) RPAREN # aggregation;
datatype: (
INTTYPE
| LONGTYPE
| DATETYPE
| DETETIMETYPE
| FLOATTYPE
| DOUBLETYPE
| STRINGTYPE
| BOOLEANTYPE
| POINTTYPE
| POLYTYPE
);
geometry: (
pointGeometry
| polygonGeometry
| lineStringGeometry
| multiPointGeometry
| multiLineStringGeometry
| multiPolygonGeometry
);
pointGeometry: POINT LPAREN point RPAREN;
lineStringGeometry: LINESTRING lineString;
polygonGeometry: POLYGON polygon;
multiPointGeometry:
MULTIPOINT LPAREN pointOrClosedPoint (
COMMA pointOrClosedPoint
)* RPAREN;
multiLineStringGeometry:
MULTILINESTRING LPAREN lineString (COMMA lineString)* RPAREN;
multiPolygonGeometry:
MULTIPOLYGON LPAREN polygon (COMMA polygon)* RPAREN;
pointOrClosedPoint: point | LPAREN point RPAREN;
polygon: LPAREN lineString (COMMA lineString)* RPAREN;
lineString: LPAREN point (COMMA point)* RPAREN;
point: (MINUS? FLOATLIT | MINUS? INTLIT) (
MINUS? FLOATLIT
| MINUS? INTLIT
); |
alloy4fun_models/trashltl/models/11/hJ58TWfrQFLTQeEmv.als | Kaixi26/org.alloytools.alloy | 0 | 1340 | <filename>alloy4fun_models/trashltl/models/11/hJ58TWfrQFLTQeEmv.als
open main
pred idhJ58TWfrQFLTQeEmv_prop12 {
eventually (some f:File | (eventually f in Trash) implies always (f in Trash))
}
pred __repair { idhJ58TWfrQFLTQeEmv_prop12 }
check __repair { idhJ58TWfrQFLTQeEmv_prop12 <=> prop12o } |
src/util/sprite/alft.asm | olifink/qspread | 0 | 14075 | <gh_stars>0
* Sprite alft
*
* Mode 4
* +------|-----+
* |a |
* |a a a |
* |a a aaa |
* |a a aaaaa |
* -a aaaaaaaa -
* |a a aaaaa |
* |a a aaa |
* |a a a |
* |a |
* +------|-----+
*
section sprite
xdef mes_alft
mes_alft
dc.w $0100,$0000
dc.w 12,9,6,4
dc.l sc4_alft-*
xref mes_zero
dc.l mes_zero-*
dc.l 0
sc4_alft
dc.w $8080,$0000
dc.w $a0a0,$4040
dc.w $a1a1,$c0c0
dc.w $a7a7,$c0c0
dc.w $bfbf,$c0c0
dc.w $a7a7,$c0c0
dc.w $a1a1,$c0c0
dc.w $a0a0,$4040
dc.w $8080,$0000
*
end
|
courses/fundamentals_of_ada/labs/solar_system/160_genericity/answers/main.adb | AdaCore/training_material | 15 | 8099 | -----------------------------------------------------------------------
-- Ada Labs --
-- --
-- Copyright (C) 2008-2009, AdaCore --
-- --
-- Labs is free software; you can redistribute it and/or modify it --
-- under the terms of the GNU General Public License as published by --
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. --
-- --
-- This program is distributed in the hope that it will be useful, --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --
-- General Public License for more details. You should have received --
-- a copy of the GNU General Public License along with this program; --
-- if not, write to the Free Software Foundation, Inc., 59 Temple --
-- Place - Suite 330, Boston, MA 02111-1307, USA. --
-----------------------------------------------------------------------
with Ada.Real_Time; use Ada.Real_Time;
with Solar_System;
with Display; use Display;
with Display.Basic; use Display.Basic;
with Solar_System.Graphics;
procedure Main is
type Bodies_Enum_1_T is (Sun1, Earth);
type Bodies_Enum_2_T is (Sun2, Jupiter);
package My_Solar_System1 is new Solar_System (Bodies_Enum_1_T);
package My_Sol_Sys_Graphics1 is new My_Solar_System1.Graphics;
use My_Solar_System1;
use My_Sol_Sys_Graphics1;
package My_Solar_System2 is new Solar_System (Bodies_Enum_2_T);
package My_Sol_Sys_Graphics2 is new My_Solar_System2.Graphics;
use My_Solar_System2;
use My_Sol_Sys_Graphics2;
-- declare variable Bodies which is an array of Body_T
Bodies1 : My_Solar_System1.Bodies_Array_T;
Bodies2 : My_Solar_System2.Bodies_Array_T;
-- declare a variable Next of type Time to store the Next step time
Next : Time;
-- declare a constant Period of 40 milliseconds of type Time_Span defining the loop period
Period : constant Time_Span := Milliseconds (40);
-- reference to the application window
Window : Window_ID;
-- reference to the graphical canvas associated with the application window
Canvas : Canvas_ID;
begin
-- Create the main window
Window :=
Create_Window (Width => 240, Height => 320, Name => "Solar System");
-- retrieve the graphical canvas associated with the main window
Canvas := Get_Canvas (Window);
-- initialize Bodies using Init_Body procedure
Init_Body
(B => Sun1,
Bodies => Bodies1,
Radius => 20.0,
Color => Yellow,
Distance => 0.0,
Angle => 0.0,
Speed => 0.0,
Turns_Around => Sun1);
Init_Body
(B => Earth,
Bodies => Bodies1,
Radius => 5.0,
Color => Blue,
Distance => 50.0,
Angle => 0.0,
Speed => 0.02,
Turns_Around => Sun1);
Init_Body
(B => Sun2,
Bodies => Bodies2,
Radius => 20.0,
Color => Yellow,
Distance => 0.0,
Angle => 0.0,
Speed => 0.0,
Turns_Around => Sun2);
Init_Body
(B => Jupiter,
Bodies => Bodies2,
Radius => 10.0,
Color => (255,150,0, 255),
Distance => 80.0,
Angle => 180.0,
Speed => 0.01,
Turns_Around => Sun2);
Set_Center(Bodies1, -30.0, -30.0);
Set_Center(Bodies2, 50.0, 50.0);
-- initialize the Next step time begin the current time (Clock) + the period
Next := Clock + Period;
-- create an infinite loop
-- call Move_All procedure
-- call Draw_All procedure
-- call Swap_Buffers to update the screen
-- wait until Next time
-- update the Next time
while not Is_Killed loop
Move_All (Bodies1);
Move_All (Bodies2);
Draw_All (Bodies1, Canvas);
Draw_All (Bodies2, Canvas);
Display.Basic.Swap_Buffers (Window);
delay until Next;
Next := Next + Period;
end loop;
end Main;
|
source/generated/initialiseall.asm | paulscottrobson/6502-basic | 3 | 4550 | <reponame>paulscottrobson/6502-basic
InitialiseAll:
lda #0
.assembler_controlhandler
lda #0
.device_controlhandler
lda #0
.interaction_controlhandler
lda #0
.main_controlhandler
lda #0
.string_controlhandler
lda #0
.tokeniser_controlhandler
lda #0
.variable_controlhandler
rts
|
oeis/023/A023891.asm | neoneye/loda-programs | 11 | 94956 | ; A023891: Sum of composite divisors of n.
; Submitted by <NAME>
; 0,0,0,4,0,6,0,12,9,10,0,22,0,14,15,28,0,33,0,34,21,22,0,54,25,26,36,46,0,61,0,60,33,34,35,85,0,38,39,82,0,83,0,70,69,46,0,118,49,85,51,82,0,114,55,110,57,58,0,157,0,62,93,124,65,127,0,106,69,129,0,189,0,74,115,118,77,149,0,178,117,82,0,211,85,86,87,166,0,223,91,142,93,94,95,246,0,161,141,209
mov $1,$0
seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n).
seq $1,74372 ; 1 + the sum of the distinct primes dividing n.
sub $0,$1
|
src/pygamer.adb | Fabien-Chouteau/pygamer-bsp | 0 | 17826 | with System;
with System.Storage_Elements;
with SAM.Main_Clock;
with SAM.DMAC;
with HAL;
package body PyGamer is
System_Vectors : constant HAL.UInt32;
pragma Import (Asm, System_Vectors, "__vectors");
VTOR : System.Address
with Volatile,
Address => System.Storage_Elements.To_Address (16#E000_ED08#);
procedure Unknown_Interrupt;
pragma Export (C, Unknown_Interrupt, "__unknown_interrupt_handler");
-----------------------
-- Unknown_Interrupt --
-----------------------
procedure Unknown_Interrupt is
begin
raise Program_Error;
end Unknown_Interrupt;
begin
-- Set the vector table address
VTOR := System_Vectors'Address;
-- Setup the clock system
SAM.Clock_Setup_120Mhz.Initialize_Clocks;
-- Turn on and enable DMAC
SAM.Main_Clock.DMAC_On;
SAM.DMAC.Enable (DMA_Descs'Access, DMA_WB'Access);
end PyGamer;
|
resources/mac/dmgStyler.applescript | cortezcristian/trainer | 0 | 2593 | <gh_stars>0
set appName to (system attribute "APP_NAME")
tell application "Finder"
tell disk appName
open
set current view of container window to icon view
set toolbar visible of container window to false
set statusbar visible of container window to false
set the bounds of container window to {100, 100, 640, 250}
set theViewOptions to the icon view options of container window
set arrangement of theViewOptions to not arranged
set icon size of theViewOptions to 64
set background picture of theViewOptions to POSIX file ("/Volumes/" & appName & "/.background/background.png")
set position of item (appName & ".app") of container window to {225, 40}
set position of item "Applications" of container window to {375, 40}
set position of item ".DS_Store" of container window to {400, 400}
set position of item ".Trashes" of container window to {400, 400}
set position of item ".fseventsd" of container window to {400, 400}
set position of item ".background" of container window to {400, 400}
update without registering applications
close
end tell
end tell |
src/boot/utils/gdt.asm | jviotti/simpleos | 3 | 97200 | <gh_stars>1-10
; ---------------------------------------------------------------------
; Global Descriptor Table
; ---------------------------------------------------------------------
;
; The GDT is an Intel x86 data structure to define various memory areas
; and switch from real mode to protected mode.
;
; Intel x86 processors start executing in real mode, the original 16-bit
; operating mode for x86 CPUs without any notion of memory protection.
; Intel ensures that all their CPUs remain fully compatible with earlier
; CPUs so that older software can run natively, and unaltered in all
; modern CPUs. By starting in real mode, Intel x86 processors behave
; exactly like the oldest CPU in the family: the Intel 8086. Modern x86
; programs must explicitly switch to 32-bit or 64-bit protected mode, and
; thus backwards compatibility is preserved.
; The protected mode was introduced on the Intel 80286 (1982) and
; extended on the Intel 80386 (1985). The differences between real mode
; and protected mode are:
;
; - Registers in real mode can hold 16-bit values, while registers in
; protected mode can hold 32-bit or 64-bit values
; - Protected mode adds two general purpose registers for convenience
; - Protected mode supports a more complex way of segmenting memory,
; where the programmer can define the attributes and permissions of
; each segment
; - Protected mode offers built-in support for virtual memory and
; paging
; - Protected mode can't access BIOS ISRs, as they only work on real
; mode
;
; The GDT data structure consists of a "GDT descriptor", a 6-byte data
; structure defining the size of the GDT (2 bytes) , and a pointer to
; the actual table (4 bytes):
;
; |----------------|--------------------------|
; | SIZE (16 bits) | POINTER (32 bits) |
; |----------------|--------------------------|
;
; The table is a sequence of 8 bytes sections defining different
; segments. The first segment should always be the "null descriptor",
; a completely blank (zero bytes) segment, used to catch mistakes where
; we forget to set a segment register before accessing an address.
;
; |------------------------|------------------------|------------------------|
; | NULL SEGMENT (8 bytes) | SEGMENT 1 (8 bytes) | SEGMENT 2 (8 bytes) |
; |------------------------|------------------------|------------------------|
;
; Each segment (64 bits) consists of:
;
; - (16 bits) First 2 bytes of the segment limit
; - (24 bits) First 3 bytes of the base address
; - (8 bits) Access settings
; - (4 bits) Last 4 bits of the segment limit
; - (4 bits) Flags
; - (8 bits) Last 1 byte of the base address
;
; The access settings byte (8 bits) consits of:
;
; - (4 bits) Segment type (accessed, readable, conforming, code)
; - (1 bit) Descriptor type (0 for system, 1 otherwise)
; - (2 bits) Descriptor privilege level (0 is the higher level)
; - (1 bit) Segment present (whether the segment is present in memory)
;
; The flags 4 bits consists of
;
; - (1 bit) Available for user usage
; - (1 bit) 64-bit code segment
; - (1 bit) Default operation size
; - (1 bit) Granularity
;
; See https://wiki.osdev.org/Global_Descriptor_Table for more details.
;
; ---------------------------------------------------------------------
; Basic Flat Model
; ---------------------------------------------------------------------
;
; This is the simplest working configuration for a GDT, where we define
; two overlapping segments (code and data) to cover the full 4 GBs of
; addressable memory, without attempting to protect one segment from the
; other, nor to use any paging features.
;
; The purpose is to start simple so can load the kernel, and then we can
; customize the GDT with more advanced settings once we are in C land.
gdt_start:
; ---------------------------------------------------------------------
; Null descriptor
; ---------------------------------------------------------------------
gdt_null:
; The "dq" instruction writes a quad-word (8 bytes)
dq 0x0
; ---------------------------------------------------------------------
; Code segment descriptor
; ---------------------------------------------------------------------
;
; From 0x0 to 0xffff (same as the data segment, thus overlapping)
gdt_code:
; First 2 bytes of limit address
dw 0xffff
; First 3 bytes of base address
dw 0x0
db 0x0
; First, various access settings:
;
; - Segment present = 1, since the segment will be present in memory
; - Descriptor privilege level = 0, the higher level
; - Descriptor type = 1, which should be set to 1 for code
;
; Then, the 4 bits for the type:
;
; - Code = 1, since this is a code segment
; - Conforming = 0, which means that a segment with lower privilege
; may not call code in this segment
; - Readable = 1, to read constants defined in the code
; - Accessed = 0, since the CPU will set this bit when it a accesses
; the segment
db 10011010b
; First, the flags 4 bits:
;
; - Granularity = 1, which means multiplying our limit (0xffff) by 4K,
; so that the limit becomes 0xffff0000 (4 GB of memory)
; - Default operation size = 1, which sets the default data unit size
; for operations to 32-bit numbers
; - 64-bit code segment = 0, since we will target 32 bits processors
; - User usage bit = 0, which we don't use
;
; Then, last 4 bits of limit address (1111)
db 11001111b
; Last byte of base address
db 0x0
; ---------------------------------------------------------------------
; Data segment descriptor
; ---------------------------------------------------------------------
;
; From 0x0 to 0xffff (same as the code segment, thus overlapping)
gdt_data:
; Same as in the code segment
dw 0xffff
dw 0x0
db 0x0
; Same as in the code segment, with the exception of the
; "code" type bit (the 5th bit), which is set to 0 here
db 10010010b
; Same as in the code segment
db 11001111b
db 0x0
; ---------------------------------------------------------------------
; GDT Descriptor
; ---------------------------------------------------------------------
; A handy label to we can automatically calculate the size of the GDT
gdt_end:
gdt_descriptor:
; The size of the GDT (2 bytes)
dw gdt_end - gdt_start - 1
; A pointer to the start of the table (4 bytes)
dd gdt_start
|
tests/nasm/fsave_frstor.asm | brenden7158/v86 | 12,700 | 160807 | global _start
section .data
align 16
%include "header.inc"
sub esp, 128
fldz
fld1
fsave [esp]
frstor [esp]
%include "footer.inc"
|
Python/C4 - MIPS/Task3 - lists.asm | mrbinx/mrbinx_python | 0 | 20991 | <filename>Python/C4 - MIPS/Task3 - lists.asm
#<NAME> 25461257 Prac 4 Task 3
.data
size: .word 0 #size of the list
the_list: .word 0 #address of the list
prompt: .asciiz "Please input an item: "
askforlength: .asciiz "Please input the size of the list: "
errormsg: .asciiz "Please input a valid size"
sum: .word 0
summsg: .asciiz "\nThe sum until negative is: "
.text
la $a0, askforlength
addi $v0, $0, 4 #prints ask for length
syscall
addi $v0, $0, 5
syscall #accept input integer
bltz $v0, error #if input <= 0, error
sw $v0, size #save size
lw $t0, size #load size into $t0
addi $t1, $0, 4 #$t1 = 4
mult $t1, $t0 #multiply length of list with 4
mflo $t2 #move from LO
add $a0, $t2, $t1 #$a0 = 4*length + 4
addi $v0, $0, 9 #9 = allocate memory
syscall
sw $v0, the_list #save address of the_list
sw $t0, ($v0) #store length into first index of the_list
addi $t0, $0, 0 #initialise i
j loop
loop:
lw $t1, size #load size into $t1
bge $t0, $t1, endloop #if i >= size
la $a0, prompt #prompt
addi $v0, $0, 4
syscall
addi $v0, $0, 5 #accept int input
syscall
lw $t2, the_list #load address of the_list
addi $t3, $0, 4 #$t3 = 4
mult $t3, $t0 # i*4
mflo $t4
add $t4, $t4, $t3 #$t4 = $t4 (i*4) + 4
add $t4, $t4, $t2 #$t4 = (i*4+4) + address of the_list
sw $v0, ($t4) #store $v0 (input) into location stored in $t4
addi $t0, $t0, 1 #increment i
j loop #loooooop
endloop:
addi $t0, $0, 0 #initialise $t0
j print
print:
lw $t1, the_list #load address of the_list
lw $t2, ($t1) #load size of the_list
bge $t0, $t2, sum_1
addi $t3, $0, 4 #$t3 = 4
mult $t3, $t0 #i*4
mflo $t4
add $t4, $t4, $t3 #$t4 = i*4+4
add $t4, $t4, $t1 #$t4 = (i*4+4) + address of the _list
lw $a0, ($t4) #load content of address pointed to in $t4
addi $v0, $0, 1 #1 = print integer
syscall
addi $a0, $0, 32 #print space
addi $v0, $0, 11 #11 = print char
syscall
addi $t0, $t0, 1 #i=i+1
j print #loooooop
sum_1:
addi $t0, $0, 0 #initialise i
addi $t6, $0, 0 #initialise sum
j sum_2
sum_2:
lw $t1, the_list #load the_list address
lw $t2, ($t1) #load length of list
bge $t0, $t2, printsum #if i >= length
addi $t3, $0, 4 #$t3 = 4
mult $t3, $t0 # i*4
mflo $t4
add $t4, $t4, $t3 #$t4 = (i*4)+4
add $t4, $t4, $t1 #$t4 = $t4 + address of the_list
lw $t5, ($t4) #load content of $t4 to $t5
bltz $t5, printsum #ends if $t5 is < 0
add $t6, $t6, $t5 #sums up
addi $t0, $t0, 1 #i=i+1
j sum_2 #loooooop
printsum:
sw $t6, sum #store sum in sum
la $a0, summsg #print The sum is:
addi $v0, $0, 4 #4 = print string
syscall
lw $a0, sum #load sum into $a0
addi $v0, $0, 1 #1 = print integer
syscall
j quit #doneeeee
error:
la $a0, errormsg #print error message
addi $v0, $0, 4
syscall
j quit
quit:
addi $v0, $0, 10 #quit
syscall
|
apps/breakfast/pde_fw/toast/examples/Assembly (CCE)/msp430x24x_lpm3.asm | tp-freeforall/breakfast | 1 | 29696 | ;*******************************************************************************
; MSP430x24x Demo - Basic Clock, LPM3 Using WDT ISR, 32kHz ACLK
;
; Description: This program operates MSP430 normally in LPM3, pulsing P1.0
; at 4 second intervals. WDT ISR used to wake-up system. All I/O configured
; as low outputs to eliminate floating inputs. Current consumption does
; increase when LED is powered on P1.0. Demo for measuring LPM3 current.
; ACLK = LFXT1/4 = 32768/4, MCLK = SMCLK = default DCO ~1.045MHz
; //* External watch crystal on XIN XOUT is required for ACLK *//
;
; MSP430F249
; -----------------
; /|\| XIN|-
; | | | 32kHz
; --|RST XOUT|-
; | |
; | P1.0|-->LED
;
; <NAME>
; Texas Instruments Inc.
; May 2008
; Built Code Composer Essentials: v3 FET
;*******************************************************************************
.cdecls C,LIST, "msp430x24x.h"
;-------------------------------------------------------------------------------
.text ;Program Start
;-------------------------------------------------------------------------------
RESET mov.w #0500h,SP ; Initialize stackpointer
SetupWDT mov.w #WDT_ADLY_1000,&WDTCTL ; WDT 1s*4 interval timer
SetupBC bis.b #DIVA_1,&BCSCTL1 ; ACLK/4
bis.b #WDTIE,&IE1 ; Enable WDT interrupt
SetupP1 mov.b #0FFh,&P1DIR ; All P1.x outputs
clr.b &P1OUT ; All P1.x reset
SetupP2 mov.b #0FFh,&P2DIR ; All P2.x outputs
clr.b &P2OUT ; All P2.x reset
SetupP3 mov.b #0FFh,&P3DIR ; All P3.x outputs
clr.b &P3OUT ; All P3.x reset
SetupP4 mov.b #0FFh,&P4DIR ; All P4.x outputs
clr.b &P4OUT ; All P4.x reset
SetupP5 mov.b #0FFh,&P5DIR ; All P4.x outputs
clr.b &P5OUT
SetupP6 mov.b #0FFh,&P6DIR ; All P4.x outputs
clr.b &P6OUT
Mainloop bis.w #LPM3+GIE,SR ; Enter LPM3, enable interrupts
bis.b #001h,&P1OUT ; Set P1.0
push.w #20000 ; Delay to TOS
Delay dec.w 0(SP) ; Decrement TOS
jnz Delay ; Delay over?
incd.w SP ; Clean stack
bic.b #001h,&P1OUT ; Reset P1.0
jmp Mainloop ; Again
;
;-------------------------------------------------------------------------------
WDT_ISR ; Exit LPM3 on reti
;-------------------------------------------------------------------------------
bic.w #LPM3,0(SP) ; Clear LPM3 from TOS
reti ;
;
;-------------------------------------------------------------------------------
; Interrupt Vectors
;-------------------------------------------------------------------------------
.sect ".int26" ; WDT Vector
.short WDT_ISR
.sect ".reset" ; POR, ext. Reset
.short RESET
.end
|
src/sprites.asm | onlymx13/cesium | 1 | 6192 | ; sprites used throughout cesium
sprite_directory:
db 16,16
db $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff
db $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff
db $ff,$ff,$8B,$83,$83,$83,$83,$83,$83,$83,$82,$82,$83,$8B,$ff,$ff
db $ff,$a3,$ab,$ac,$ac,$ac,$ac,$ac,$ac,$ac,$ac,$ac,$ac,$a3,$8B,$ff
db $83,$ab,$cc,$a3,$a3,$a3,$a3,$a2,$a2,$82,$82,$82,$8B,$ab,$83,$8B
db $83,$cd,$a3,$a2,$a2,$a2,$82,$82,$82,$82,$82,$82,$82,$83,$ac,$82
db $83,$ee,$f5,$ed,$ed,$ed,$ed,$ed,$ed,$ed,$ec,$ec,$ec,$ec,$ed,$82
db $83,$ed,$ed,$ed,$ec,$ec,$ec,$ec,$cc,$cc,$cc,$cb,$cb,$cb,$ec,$82
db $83,$ed,$ed,$ec,$ec,$ec,$ec,$cc,$cc,$cb,$cb,$cb,$cb,$cb,$ec,$82
db $83,$ed,$ec,$ec,$ec,$cc,$cc,$cc,$cb,$cb,$cb,$cb,$cb,$c3,$cc,$82
db $83,$ed,$ec,$cc,$cc,$cc,$cb,$cb,$cb,$cb,$cb,$c3,$c3,$c3,$cc,$82
db $83,$ed,$ec,$cc,$cb,$cb,$cb,$cb,$cb,$c3,$c3,$c3,$c3,$c3,$cc,$82
db $82,$ed,$cc,$cb,$cb,$cb,$cb,$cb,$c3,$c3,$c3,$c3,$c3,$c2,$cc,$82
db $82,$cd,$ed,$ed,$ec,$ec,$ec,$cc,$cc,$cc,$cc,$cc,$cc,$cc,$cc,$82
db $8B,$82,$82,$82,$82,$82,$82,$82,$82,$82,$82,$82,$82,$82,$82,$8a
db $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff
sprite_file_asm:
db 16,16
db $ff,$ff,$ff,$5d,$7d,$7d,$7d,$7d,$7d,$7d,$13,$13,$ff,$ff,$ff,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$df,$df,$df,$df,$7d,$13,$13,$ff,$ff,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$df,$df,$df,$df,$7d,$7d,$13,$ff,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$df,$df,$df,$df,$7d,$ff,$7d,$13,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$ff,$df,$df,$df,$7d,191,191,$7d,$13
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$ff,$ff,$df,$df,$df,$df,$df,$7d,$13
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$13
db $00,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$00,$13
db $00,$ff,$a0,$a0,$a0,$ff,$a0,$a0,$a0,$ff,$a0,$ff,$a0,$ff,$00,$13
db $00,$ff,$a0,$ff,$a0,$ff,$a0,$ff,$ff,$ff,$a0,$a0,$a0,$ff,$00,$13
db $00,$ff,$a0,$a0,$a0,$ff,$ff,$ff,$a0,$ff,$a0,$ff,$a0,$ff,$00,$13
db $00,$ff,$a0,$ff,$a0,$ff,$a0,$a0,$a0,$ff,$a0,$ff,$a0,$ff,$00,$13
db $00,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$00,$13
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$13
db $ff,$ff,$ff,$13,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$13
db $ff,$ff,$ff,018,$13,$13,$13,$13,$13,$13,$13,$13,$13,$13,$13,018
sprite_file_c:
db 16,16
db $ff,$ff,$ff,$5d,$7d,$7d,$7d,$7d,$7d,$7d,$13,$13,$ff,$ff,$ff,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$df,$df,$df,$df,$7d,$13,$13,$ff,$ff,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$df,$df,$df,$df,$7d,$7d,$13,$ff,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$df,$df,$df,$df,$7d,$ff,$7d,$13,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$ff,$df,$df,$df,$7d,191,191,$7d,$13
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$ff,$ff,$df,$df,$df,$df,$df,$7d,$13
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$13
db $00,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$00,$13
db $00,$ff,$ff,$ff,$ff,$ff,$13,$13,$13,$ff,$ff,$ff,$ff,$ff,$00,$13
db $00,$ff,$ff,$ff,$ff,$ff,$13,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$00,$13
db $00,$ff,$ff,$ff,$ff,$ff,$13,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$00,$13
db $00,$ff,$ff,$ff,$ff,$ff,$13,$13,$13,$ff,$ff,$ff,$ff,$ff,$00,$13
db $00,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$00,$13
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$13
db $ff,$ff,$ff,$13,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$13
db $ff,$ff,$ff,018,$13,$13,$13,$13,$13,$13,$13,$13,$13,$13,$13,018
sprite_file_ice:
db 16,16
db $ff,$ff,$ff,$5d,$7d,$7d,$7d,$7d,$7d,$7d,$13,$13,$ff,$ff,$ff,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$df,$df,$df,$df,$7d,$13,$13,$ff,$ff,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$df,$df,$df,$df,$7d,$7d,$13,$ff,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$df,$df,$df,$df,$7d,$ff,$7d,$13,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$ff,$df,$df,$df,$7d,191,191,$7d,$13
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$ff,$ff,$df,$df,$df,$df,$df,$7d,$13
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$13
db $00,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$00,$13
db $00,$ff,$05,$05,$05,$ff,$05,$05,$05,$ff,$05,$05,$05,$ff,$00,$13
db $00,$ff,$ff,$05,$ff,$ff,$05,$ff,$ff,$ff,$05,$ff,$ff,$ff,$00,$13
db $00,$ff,$ff,$05,$ff,$ff,$05,$ff,$ff,$ff,$05,$05,$ff,$ff,$00,$13
db $00,$ff,$05,$05,$05,$ff,$05,$05,$05,$ff,$05,$05,$05,$ff,$00,$13
db $00,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$00,$13
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$13
db $ff,$ff,$ff,$13,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$13
db $ff,$ff,$ff,018,$13,$13,$13,$13,$13,$13,$13,$13,$13,$13,$13,018
sprite_file_app:
db 16,16
db $ff,$ff,$ff,$5d,$7d,$7d,$7d,$7d,$7d,$7d,$13,$13,$ff,$ff,$ff,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$df,$df,$df,$df,$7d,$13,$13,$ff,$ff,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$df,$df,$df,$df,$7d,$7d,$13,$ff,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$df,$df,$df,$df,$7d,$ff,$7d,$13,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$ff,$df,$df,$df,$7d,191,191,$7d,$13
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$ff,$ff,$df,$df,$df,$df,$df,$7d,$13
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$13
db $00,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$00,$13
db $00,$ff,$05,$05,$05,$ff,$05,$05,$05,$ff,$05,$05,$05,$ff,$00,$13
db $00,$ff,$05,$ff,$05,$ff,$05,$ff,$05,$ff,$05,$ff,$05,$ff,$00,$13
db $00,$ff,$05,$05,$05,$ff,$05,$05,$05,$ff,$05,$05,$05,$ff,$00,$13
db $00,$ff,$05,$ff,$05,$ff,$05,$ff,$ff,$ff,$05,$ff,$ff,$ff,$00,$13
db $00,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$00,$13
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$13
db $ff,$ff,$ff,$13,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$13
db $ff,$ff,$ff,018,$13,$13,$13,$13,$13,$13,$13,$13,$13,$13,$13,018
sprite_file_appvar:
db 16,16
db $ff,$ff,$ff,$5d,$7d,$7d,$7d,$7d,$7d,$7d,$13,$13,$ff,$ff,$ff,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$df,$df,$df,$df,$7d,$13,$13,$ff,$ff,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$df,$df,$df,$df,$7d,$7d,$13,$ff,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$df,$df,$df,$df,$7d,$ff,$7d,$13,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$ff,$df,$df,$df,$7d,191,191,$7d,$13
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$ff,$ff,$df,$df,$df,$df,$df,$7d,$13
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$13
db $00,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$00,$13
db $00,$ff,$a8,$ff,$a8,$ff,$a8,$a8,$a8,$ff,$a8,$a8,$a8,$ff,$00,$13
db $00,$ff,$a8,$ff,$a8,$ff,$a8,$ff,$a8,$ff,$a8,$ff,$a8,$ff,$00,$13
db $00,$ff,$a8,$ff,$a8,$ff,$a8,$a8,$a8,$ff,$a8,$a8,$ff,$ff,$00,$13
db $00,$ff,$ff,$a8,$ff,$ff,$a8,$ff,$a8,$ff,$a8,$ff,$a8,$ff,$00,$13
db $00,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$00,$13
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$13
db $ff,$ff,$ff,$13,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$13
db $ff,$ff,$ff,018,$13,$13,$13,$13,$13,$13,$13,$13,$13,$13,$13,018
sprite_file_basic:
db 16,16
db $ff,$ff,$ff,$5d,$7d,$7d,$7d,$7d,$7d,$7d,$13,$13,$ff,$ff,$ff,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$df,$df,$df,$df,$7d,$13,$13,$ff,$ff,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$df,$df,$df,$df,$7d,$7d,$13,$ff,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$df,$df,$df,$df,$7d,$ff,$7d,$13,$ff
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$ff,$df,$df,$df,$7d,191,191,$7d,$13
db $ff,$ff,$ff,$7d,$ff,$ff,$ff,$ff,$ff,$df,$df,$df,$df,$df,$7d,$13
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$13
db $00,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$00,$13
db $00,$ff,$ff,$ff,$e3,$e3,$e3,$ff,$e3,$e3,$e3,$ff,$ff,$ff,$00,$13
db $00,$ff,$ff,$ff,$ff,$e3,$ff,$ff,$ff,$e3,$ff,$ff,$ff,$ff,$00,$13
db $00,$ff,$ff,$ff,$ff,$e3,$ff,$ff,$ff,$e3,$ff,$ff,$ff,$ff,$00,$13
db $00,$ff,$ff,$ff,$ff,$e3,$ff,$ff,$e3,$e3,$e3,$ff,$ff,$ff,$00,$13
db $00,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$00,$13
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$13
db $ff,$ff,$ff,$13,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$13
db $ff,$ff,$ff,018,$13,$13,$13,$13,$13,$13,$13,$13,$13,$13,$13,018
sprite_egg:
db 16,16
db $ff,$ff,$ff,$ff,$ff,$ff,$f7,$d6,$d5,$d6,$ff,$ff,$ff,$ff,$ff,$ff
db $ff,$ff,$ff,$ff,$ff,$f7,$f6,$d5,$ad,$8c,$ac,$fe,$ff,$ff,$ff,$ff
db $ff,$ff,$ff,$ff,$f6,$d6,$b5,$ad,$8c,$8b,$6b,$6c,$ff,$ff,$ff,$ff
db $ff,$ff,$ff,$d6,$d5,$d5,$ac,$ac,$6b,$6b,$6b,$4a,$b5,$ff,$ff,$ff
db $ff,$ff,$ff,$ad,$cd,$8c,$8c,$8b,$6b,$6b,$4a,$6a,$6b,$ff,$ff,$ff
db $ff,$ff,$d6,$ac,$ac,$8c,$8b,$6b,$6b,$6b,$42,$6a,$6a,$d6,$ff,$ff
db $ff,$ff,$ad,$8c,$8c,$8b,$6b,$6b,$6a,$6a,$42,$6a,$6a,$94,$ff,$ff
db $ff,$ff,$ad,$8c,$6b,$8b,$22,$42,$6a,$6a,$4a,$6a,$6a,$8c,$ff,$ff
db $ff,$ff,$ac,$8b,$6b,$6b,$42,$4a,$6a,$6a,$6a,$6a,$6b,$8c,$ff,$ff
db $ff,$ff,$8c,$6b,$6b,$6b,$6a,$6a,$6a,$6a,$4a,$6a,$6b,$8c,$ff,$ff
db $ff,$ff,$94,$6b,$6a,$6a,$6a,$6a,$4a,$6a,$4a,$6b,$6b,$94,$ff,$ff
db $ff,$ff,$b5,$6a,$6a,$6a,$6a,$6a,$4a,$4a,$22,$6b,$8c,$b5,$ff,$ff
db $ff,$ff,$de,$6b,$6a,$6a,$4a,$6a,$6a,$6a,$6a,$8b,$ac,$fe,$ff,$ff
db $ff,$ff,$ff,$b5,$6a,$6a,$6a,$6a,$6a,$6a,$6b,$8b,$b5,$ff,$ff,$ff
db $ff,$ff,$ff,$ff,$b5,$6b,$6a,$6a,$6a,$6b,$8b,$b5,$ff,$ff,$ff,$ff
db $ff,$ff,$ff,$ff,$ff,$de,$b4,$8c,$8c,$b5,$de,$ff,$ff,$ff,$ff,$ff
sprite_locked:
db 6,8
db $ff,$4b,$4b,$4b,$4b,$ff
db $ff,$4b,$ff,$ff,$4b,$ff
db $ff,$4b,$ff,$ff,$4b,$ff
db $4b,$4b,$4b,$4b,$4b,$4b
db $4b,$e4,$e4,$e4,$e4,$4b
db $4b,$e4,$e4,$e4,$e4,$4b
db $4b,$e4,$e4,$e4,$e4,$4b
db $4b,$4b,$4b,$4b,$4b,$4b
sprite_archived:
db 6,8
db $4b,$4b,$4b,$4b,$4b,$4b
db $4b,$ff,$4b,$ff,$ff,$4b
db $4b,$ff,$ff,$4b,$ff,$4b
db $4b,$ff,$4b,$ff,$ff,$4b
db $4b,$e4,$e4,$4b,$e4,$4b
db $4b,$e4,$4b,$e4,$e4,$4b
db $4b,$e4,$e4,$4b,$e4,$4b
db $4b,$4b,$4b,$4b,$4b,$4b
sprite_battery:
db 6,8
db $00,$00,$00,$00,$00,$00
db $00,$25,$25,$25,$25,$00
db $00,$25,$25,$25,$25,$00
db $00,$25,$25,$25,$25,$00
db $00,$25,$25,$25,$25,$00
db $00,$25,$25,$25,$25,$00
db $00,$25,$25,$25,$25,$00
db $00,$00,$00,$00,$00,$00
sprite_directory_mask:
db $ff,$ff
db $ff,$ff
db $c0,$03
db $80,$01
db $00,$00
db $00,$00
db $00,$00
db $00,$00
db $00,$00
db $00,$00
db $00,$00
db $00,$00
db $00,$00
db $00,$00
db $00,$00
db $ff,$ff
sprite_file_mask:
db $e0,$0f
db $e0,$07
db $e0,$03
db $e0,$01
db $e0,$00
db $e0,$00
db $00,$00
db $00,$00
db $00,$00
db $00,$00
db $00,$00
db $00,$00
db $00,$00
db $00,$00
db $e0,$00
db $e0,$00
|
libsrc/graphics/zx81/hr/hrg_tune_left.asm | andydansby/z88dk-mk2 | 1 | 101838 | <gh_stars>1-10
;--------------------------------------------------------------
; HRG screen effects
; for the ZX81
;--------------------------------------------------------------
;
; Shift left the TV picture in hrg mode
;
; Stefano - Oct 2011
;
;
; $Id: hrg_tune_left.asm,v 1.1 2011/11/02 14:24:33 stefano Exp $
;
XLIB hrg_tune_left
XREF HRG_Handler
hrg_tune_left:
ld hl,HRG_Handler+1
dec (hl)
ret
|
programs/oeis/016/A016980.asm | neoneye/loda | 22 | 15631 | <gh_stars>10-100
; A016980: a(n) = (6*n + 5)^12.
; 244140625,3138428376721,582622237229761,21914624432020321,353814783205469041,3379220508056640625,22563490300366186081,116191483108948578241,491258904256726154641,1779197418239532716881,5688009063105712890625,16409682740640811134241,43439888521963583647921,106890007738661124410161,246990403565262140303521,540360087662636962890625,1126825030131969720661201,2252191588960823337718801,4334523100191686738306881,8064241715186276625588961,14551915228366851806640625,25542038069936263923006961,43716643078717303412870881,73119371471655725294164801,119738888098469732352733201,192300484323376406494140625,303326610665644763629211521,470541197898347534873984161,718709255220793060317103921,1082022699327332498100696241,1607166017050789863525390625,2357221572577185690065114881,3416604542324232545384738641,4897252030306448390395044241,6946330348617183160431238081,9755769237612933691650390625,13573982477229290545823357041,18720191467045367574023614321,25601832525455335435322705761,34735600510611194263176918721,46772761567521097265869140625,62529457064557415999535378001,83022819845310162051379891201,109513833574845676773925608481,143557987030641165766449098161,187064908547461032867431640625,242368312385016936196463417761,312307749504346137016129649281,400323831115571027902364072401,510568785444411275443565936401,648034417553121620683837890625,818699769887346816976612516321,1029701028696997844179291768561,1289526489840334121941717217521,1608239688021097644574300393441,1997734107576381138808837890625,2472023231929042220921962513681,3047570054198584854687363929041,3743660564739813658463646963841,4582826154117173651132848229281,5591320323850160818242431640625,6799655583865908142394420049841,8243206936713178643875538610721,9962888906032515816542942031361,12005913662407062729708916003921,14426638435467322602890869140625,17287511078984605626766090564801,20660123377720792838942199093601,24626382453131088146385741940081,29279811441833443519640329077361,34726991488323271274566650390625,41089158014054007099883470298561,48503965201122371247515895457681,57127433662862356193722241010001,67136097368206902852275559609601,78729367044337105142988525390625,92132128505596173454447158291121,107597595648665281034526000582961,125410439217423266704592672361121,145890213878661931676924574560641,169395107664901855540781494140625,196326039436028365961428688382481,227131131690502261690628246149441,262310587822735519273195371913441,302422004779181639964896403690481,348086154015180406603476806640625,399993265701109317068886081212641,458909853273506385605676338637121,525686117678205789920105722386961,601263973011921357734061827559121,686685737739964474054511962890625,783103538254824010709579716221601,891789474247188754533370855326001,1014146598191772065370414777301681,1151720764209211801514619585526561,1306213404656667768955230712890625,1479495296027921174174630123649361,1673621379113289154856256620296081,1890846701885093112349176364977601,2133643557240451317422184503752801
mul $0,6
add $0,5
pow $0,12
|
PJ Grammar/enums.g4 | Diolor/PJ | 0 | 6471 | parser grammar enums;
enumDeclaration
: ENUM Identifier ('implements' typeList)?
'{' enumConstants? ','? enumBodyDeclarations? '}'
;
enumConstants
: enumConstant (',' enumConstant)*
;
enumConstant
: annotation* Identifier arguments? classBody?
;
enumBodyDeclarations
: ';' classBodyDeclaration*
; |
src/test/ref/memory-heap.asm | jbrandwood/kickc | 2 | 8438 | // Experiments with malloc()
// Commodore 64 PRG executable file
.file [name="memory-heap.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
// Top of the heap used by malloc()
.label HEAP_TOP = $a000
// Head of the heap. Moved backward each malloc()
.label heap_head = 2
.segment Code
main: {
.label screen = $400
.label buf1 = 6
.label buf2 = 4
// unsigned char* buf1 = malloc(100)
lda #<HEAP_TOP
sta.z heap_head
lda #>HEAP_TOP
sta.z heap_head+1
jsr malloc
// unsigned char* buf1 = malloc(100)
lda.z malloc.mem
sta.z buf1
lda.z malloc.mem+1
sta.z buf1+1
// unsigned char* buf2 = malloc(100)
jsr malloc
// unsigned char* buf2 = malloc(100)
ldy #0
__b1:
// buf1[i] = i
tya
sta (buf1),y
// 255-i
tya
eor #$ff
sec
adc #$ff
// buf2[i] = 255-i
sta (buf2),y
// for(unsigned char i:0..99)
iny
cpy #$64
bne __b1
// screen[0] = *buf1
ldy #0
lda (buf1),y
sta screen
// screen[1] = *buf2
lda (buf2),y
sta screen+1
// }
rts
}
// Allocates a block of size chars of memory, returning a pointer to the beginning of the block.
// The content of the newly allocated block of memory is not initialized, remaining with indeterminate values.
// void * malloc(unsigned int size)
malloc: {
.label mem = 4
// unsigned char* mem = heap_head-size
sec
lda.z heap_head
sbc #$64
sta.z mem
lda.z heap_head+1
sbc #0
sta.z mem+1
// heap_head = mem
lda.z mem
sta.z heap_head
lda.z mem+1
sta.z heap_head+1
// }
rts
}
|
tests/binaries/emulate_disasm_loop.asm | przemub/pwndbg | 4,461 | 86412 | <gh_stars>1000+
global _start
; This binary is there to test
; emulate vs nearpc/u/pdisas commands
; The emulate should show just jump and one nop
; The rest should show jump and two nops
;
; Motivated by https://github.com/pwndbg/pwndbg/issues/315
_start:
mov rsi, string
mov rdi, rsp
mov rcx, 3
rep movsb
string db '12345', 0
|
oeis/147/A147758.asm | neoneye/loda-programs | 11 | 80533 | <reponame>neoneye/loda-programs
; A147758: Numbers whose binary representation is a palindrome formed from the reflected decimal expansion of the concatenation of 1, 0 and infinite digits 1.
; Submitted by <NAME>(s2.)
; 1,3,5,9,21,45,93,189,381,765,1533,3069,6141,12285,24573,49149,98301,196605,393213,786429,1572861,3145725,6291453,12582909,25165821,50331645,100663293,201326589,402653181,805306365,1610612733,3221225469
mov $1,2
pow $1,$0
mul $1,3
sub $1,17
div $1,4
mul $1,2
mov $0,$1
add $0,7
|
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc1111a.ada | best08618/asylo | 7 | 8533 | <gh_stars>1-10
-- CC1111A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- OBJECTIVE:
-- CHECK THAT AFTER A GENERIC UNIT IS INSTANTIATED, THE SUBTYPE OF
-- AN IN OUT OBJECT PARAMETER IS DETERMINED BY THE ACTUAL PARAMETER
-- (TESTS INTEGER, ENUMERATION, FLOATING POINT, FIXED POINT, ARRAY,
-- ACCESS, AND DISCRIMINATED TYPES).
-- HISTORY:
-- BCB 03/28/88 CREATED ORIGINAL TEST.
-- PWN 01/31/95 REMOVED INCONSISTENCIES WITH ADA 9X.
WITH REPORT; USE REPORT;
PROCEDURE CC1111A IS
SUBTYPE INT IS INTEGER RANGE 0..5;
INTVAR : INTEGER RANGE 1..3;
TYPE ENUM IS (ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT);
SUBTYPE SUBENUM IS ENUM RANGE ONE .. FIVE;
ENUMVAR : ENUM RANGE TWO .. THREE;
TYPE FLT IS DIGITS 5 RANGE -5.0 .. 5.0;
SUBTYPE SUBFLT IS FLT RANGE -1.0 .. 1.0;
FLTVAR : FLT RANGE 0.0 .. 1.0;
TYPE FIX IS DELTA 0.5 RANGE -5.0 .. 5.0;
SUBTYPE SUBFIX IS FIX RANGE -1.0 .. 1.0;
FIXVAR : FIX RANGE 0.0 .. 1.0;
SUBTYPE STR IS STRING (1..10);
STRVAR : STRING (1..5);
TYPE REC (DISC : INTEGER := 5) IS RECORD
NULL;
END RECORD;
SUBTYPE SUBREC IS REC (6);
RECVAR : REC(5);
SUBRECVAR : SUBREC;
TYPE ACCREC IS ACCESS REC;
SUBTYPE A1 IS ACCREC(1);
SUBTYPE A2 IS ACCREC(2);
A1VAR : A1 := NEW REC(1);
A2VAR : A2 := NEW REC(2);
PACKAGE P IS
TYPE PRIV IS PRIVATE;
PRIVATE
TYPE PRIV IS RANGE 1 .. 100;
SUBTYPE SUBPRIV IS PRIV RANGE 5 .. 10;
PRIVVAR : PRIV RANGE 8 .. 10;
END P;
PACKAGE BODY P IS
FUNCTION PRIVEQUAL (ONE, TWO : SUBPRIV) RETURN BOOLEAN;
FUNCTION PRIVEQUAL (ONE, TWO : SUBPRIV) RETURN BOOLEAN IS
BEGIN
RETURN ONE = TWO;
END PRIVEQUAL;
GENERIC
INPUT : SUBPRIV;
OUTPUT : IN OUT SUBPRIV;
PROCEDURE I;
PROCEDURE I IS
BEGIN
OUTPUT := INPUT;
FAILED ("SUBTYPE NOT DETERMINED BY ACTUAL PARAMETER - " &
"PRIVATE TYPE");
IF PRIVEQUAL (OUTPUT, OUTPUT) THEN
COMMENT ("DON'T OPTIMIZE OUTPUT");
END IF;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED");
END I;
PROCEDURE I1 IS NEW I (5, PRIVVAR);
PROCEDURE I2 IS NEW I (SUBPRIV'FIRST, PRIVVAR);
BEGIN
TEST ("CC1111A", "CHECK THAT AFTER A GENERIC UNIT IS " &
"INSTANTIATED, THE SUBTYPE OF AN IN OUT " &
"OBJECT PARAMETER IS DETERMINED BY THE " &
"ACTUAL PARAMETER (TESTS INTEGER, " &
"ENUMERATION, FLOATING POINT, FIXED POINT " &
", ARRAY, ACCESS, AND DISCRIMINATED TYPES)");
I1;
I2;
END P;
USE P;
GENERIC
TYPE GP IS PRIVATE;
FUNCTION GEN_IDENT (X : GP) RETURN GP;
GENERIC
INPUT : INT;
OUTPUT : IN OUT INT;
PROCEDURE B;
GENERIC
INPUT : SUBENUM;
OUTPUT : IN OUT SUBENUM;
PROCEDURE C;
GENERIC
INPUT : SUBFLT;
OUTPUT : IN OUT SUBFLT;
PROCEDURE D;
GENERIC
INPUT : SUBFIX;
OUTPUT : IN OUT SUBFIX;
PROCEDURE E;
GENERIC
INPUT : STR;
OUTPUT : IN OUT STR;
PROCEDURE F;
GENERIC
INPUT : A1;
OUTPUT : IN OUT A1;
PROCEDURE G;
GENERIC
INPUT : SUBREC;
OUTPUT : IN OUT SUBREC;
PROCEDURE H;
GENERIC
TYPE GP IS PRIVATE;
FUNCTION GENEQUAL (ONE, TWO : GP) RETURN BOOLEAN;
FUNCTION GENEQUAL (ONE, TWO : GP) RETURN BOOLEAN IS
BEGIN
RETURN ONE = TWO;
END GENEQUAL;
FUNCTION GEN_IDENT (X : GP) RETURN GP IS
BEGIN
RETURN X;
END GEN_IDENT;
FUNCTION INT_IDENT IS NEW GEN_IDENT (INT);
FUNCTION SUBENUM_IDENT IS NEW GEN_IDENT (SUBENUM);
FUNCTION SUBFLT_IDENT IS NEW GEN_IDENT (SUBFLT);
FUNCTION SUBFIX_IDENT IS NEW GEN_IDENT (SUBFIX);
FUNCTION ENUMEQUAL IS NEW GENEQUAL (SUBENUM);
FUNCTION FLTEQUAL IS NEW GENEQUAL (SUBFLT);
FUNCTION FIXEQUAL IS NEW GENEQUAL (SUBFIX);
FUNCTION STREQUAL IS NEW GENEQUAL (STR);
FUNCTION ACCEQUAL IS NEW GENEQUAL (A2);
FUNCTION RECEQUAL IS NEW GENEQUAL (REC);
PROCEDURE B IS
BEGIN
OUTPUT := INPUT;
FAILED ("SUBTYPE NOT DETERMINED BY ACTUAL PARAMETER - " &
"INTEGER TYPE");
IF EQUAL (OUTPUT, OUTPUT) THEN
COMMENT ("DON'T OPTIMIZE OUTPUT");
END IF;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED");
END B;
PROCEDURE C IS
BEGIN
OUTPUT := INPUT;
FAILED ("SUBTYPE NOT DETERMINED BY ACTUAL PARAMETER - " &
"ENUMERATION TYPE");
IF ENUMEQUAL (OUTPUT, OUTPUT) THEN
COMMENT ("DON'T OPTIMIZE OUTPUT");
END IF;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED");
END C;
PROCEDURE D IS
BEGIN
OUTPUT := INPUT;
FAILED ("SUBTYPE NOT DETERMINED BY ACTUAL PARAMETER - " &
"FLOATING POINT TYPE");
IF FLTEQUAL (OUTPUT, OUTPUT) THEN
COMMENT ("DON'T OPTIMIZE OUTPUT");
END IF;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED");
END D;
PROCEDURE E IS
BEGIN
OUTPUT := INPUT;
FAILED ("SUBTYPE NOT DETERMINED BY ACTUAL PARAMETER - " &
"FIXED POINT TYPE");
IF FIXEQUAL (OUTPUT, OUTPUT) THEN
COMMENT ("DON'T OPTIMIZE OUTPUT");
END IF;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED");
END E;
PROCEDURE F IS
BEGIN
OUTPUT := INPUT;
FAILED ("SUBTYPE NOT DETERMINED BY ACTUAL PARAMETER - " &
"ARRAY TYPE");
IF STREQUAL (OUTPUT, OUTPUT) THEN
COMMENT ("DON'T OPTIMIZE OUTPUT");
END IF;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED");
END F;
PROCEDURE G IS
BEGIN
OUTPUT := INPUT;
FAILED ("SUBTYPE NOT DETERMINED BY ACTUAL PARAMETER - " &
"ACCESS TYPE");
IF ACCEQUAL (OUTPUT, OUTPUT) THEN
COMMENT ("DON'T OPTIMIZE OUTPUT");
END IF;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED");
END G;
PROCEDURE H IS
BEGIN
OUTPUT := INPUT;
FAILED ("SUBTYPE NOT DETERMINED BY ACTUAL PARAMETER - " &
"DISCRIMINATED RECORD TYPE");
IF RECEQUAL (OUTPUT, OUTPUT) THEN
COMMENT ("DON'T OPTIMIZE OUTPUT");
END IF;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ("WRONG EXCEPTION RAISED");
END H;
PROCEDURE B1 IS NEW B (4, INTVAR);
PROCEDURE C1 IS NEW C (FOUR, ENUMVAR);
PROCEDURE D1 IS NEW D (-1.0, FLTVAR);
PROCEDURE E1 IS NEW E (-1.0, FIXVAR);
PROCEDURE F1 IS NEW F ("9876543210", STRVAR);
PROCEDURE G1 IS NEW G (A1VAR, A2VAR);
PROCEDURE H1 IS NEW H (SUBRECVAR, RECVAR);
PROCEDURE B2 IS NEW B (INT_IDENT(INT'FIRST), INTVAR);
PROCEDURE C2 IS NEW C (SUBENUM_IDENT(SUBENUM'FIRST), ENUMVAR);
PROCEDURE D2 IS NEW D (SUBFLT_IDENT(SUBFLT'FIRST), FLTVAR);
PROCEDURE E2 IS NEW E (SUBFIX_IDENT(SUBFIX'FIRST), FIXVAR);
BEGIN
B1;
C1;
D1;
E1;
F1;
G1;
H1;
B2;
C2;
D2;
E2;
RESULT;
END CC1111A;
|
Z80_ISA_tools/test_dot.asm | ped7g/ZXSpectrumNextMisc | 15 | 14524 | ;; NextZXOS dot command to test functionality of GetZ80NOpcodeSize
;;
;; © <NAME> 2020, license: https://opensource.org/licenses/MIT
; switch sjasmplus to correct syntax variant
OPT reset --zxnext --syntax=abfw
IFNDEF snafile
; dot command is raw binary targetting $2000
ORG $2000
ELSE
; snapshot file does uset ZX48 snapshot to make testing easier in any emulator
DEVICE ZXSPECTRUM48, $5FFF
ORG $8000
ENDIF
start:
; test regular instructions (no prefix, or prefix + 00)
ld ix,expectedSize_regular
ld hl,machineCode
.testRegularLoop:
call GetZ80NOpcodeSize
cp (ix)
jp nz,wrongValueDetected
ld de,machineCode
sbc hl,de
jp nz,modifiedHlDetected
ex de,hl ; restore HL to machineCode
inc ix ; advance IX (expected value address)
inc (hl)
jr nz,.testRegularLoop
; test ED prefix
ld ix,expectedSize_ED_prefix
ld hl,machineCode
ld (hl),$ED
inc hl
ld (hl),$00
call testOneBytePrefix
; test DD (IX) prefix
ld ix,expectedSize_DD_prefix
ld hl,machineCode
ld (hl),$DD
inc hl
ld (hl),$00
call testOneBytePrefix
; test FD (IY) prefix
ld ix,expectedSize_DD_prefix ; same as FD
ld hl,machineCode
ld (hl),$FD
inc hl
ld (hl),$00
call testOneBytePrefix
; test CB prefix (bit instructions)
ld hl,$02FE
ld (testOneBytePrefix.cp),hl ; modify `cp (ix+0)` to `cp 2 : nop`
ld hl,machineCode
ld (hl),$CB
inc hl
ld (hl),$00
call testOneBytePrefix
; test DDCB prefix (IX bit instructions)
ld hl,machineCode
ld (hl),$DD
inc hl
ld (hl),$CB
inc hl
ld (hl),$00
ld c,4 ; expected length for all of them is 4
call testTwoBytePrefix
; test FDCB prefix (IY bit instructions)
ld hl,machineCode
ld (hl),$FD
inc hl
ld (hl),$CB
inc hl
ld (hl),$00
ld c,4 ; expected length for all of them is 4
call testTwoBytePrefix
; test DD/FD prefix chains
ld hl,chainOfDdPrefix
call testChainedPrefix
ld hl,chainOfDdFdPrefix
call testChainedPrefix
ld hl,chainOfFdPrefix
call testChainedPrefix
; green border to signal everything went OK
ld a,4
out (254),a
ret
modifiedHlDetected:
add hl,de ; restore HL back to the wrong value
; TODO all - currently just continues into wrongValueDetected
wrongValueDetected:
push af
ld a,2
out (254),a
pop af
; TODO all - currently just red border and freeze
jr $
testOneBytePrefix:
; HL = machineCode+1 (after the prefix)
; IX = expected values table
dec hl
call GetZ80NOpcodeSize
.cp: cp (ix)
jr nz,wrongValueDetected
ld de,machineCode
sbc hl,de
jr nz,modifiedHlDetected
ex de,hl ; restore HL to machineCode
inc ix ; advance IX (expected value address)
inc hl ; affect second byte of opcode
inc (hl)
jr nz,testOneBytePrefix
ret
testTwoBytePrefix:
; HL = machineCode+2 (after the prefixes)
; C = expected values table
dec hl
dec hl
call GetZ80NOpcodeSize
cp c
jr nz,wrongValueDetected
ld de,machineCode
sbc hl,de
jr nz,modifiedHlDetected
ex de,hl ; restore HL to machineCode
inc hl
inc hl ; affect third byte of opcode
inc (hl)
jr nz,testTwoBytePrefix
ret
testChainedPrefix:
; HL = chain of prefix bytes (FD or DD) (should be 8 bytes initially)
ld b,3 ; do at least three attempts (incrementing HL)
.testLoop:
call GetZ80NOpcodeSize
cp 1
jr nz,wrongValueDetected
inc hl
djnz .testLoop
ret
__GetZ80NOpcodeSize_INCLUDE_START:
INCLUDE "Z80N_instructions_size.asm"
;GetZ80NOpcodeSize:
;; returns size of opcode in memory in bytes
;; In: HL = address of opcode
;; Out: A = opcode size
;; Modifies: DE
__GetZ80NOpcodeSize_INCLUDE_END:
machineCode:
BLOCK 5, 0
chainOfDdPrefix:
HEX DD DD DD DD DD DD DD DD
chainOfDdFdPrefix:
HEX DD FD DD FD DD FD DD FD
chainOfFdPrefix:
HEX FD FD FD FD FD FD FD FD
expectedSize_regular:
; x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 xA xB xC xD xE xF - regular instructions
DB 1, 3, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1 ; 0x
DB 2, 3, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1 ; 1x
DB 2, 3, 3, 1, 1, 1, 2, 1, 2, 1, 3, 1, 1, 1, 2, 1 ; 2x
DB 2, 3, 3, 1, 1, 1, 2, 1, 2, 1, 3, 1, 1, 1, 2, 1 ; 3x
DB 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ; 4x
DB 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ; 5x
DB 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ; 6x
DB 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ; 7x
DB 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ; 8x
DB 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ; 9x
DB 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ; Ax
DB 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ; Bx
DB 1, 1, 3, 3, 3, 1, 2, 1, 1, 1, 3, 2, 3, 3, 2, 1 ; Cx
DB 1, 1, 3, 2, 3, 1, 2, 1, 1, 1, 3, 2, 3, 2, 2, 1 ; Dx
DB 1, 1, 3, 1, 3, 1, 2, 1, 1, 1, 3, 1, 3, 2, 2, 1 ; Ex
DB 1, 1, 3, 1, 3, 1, 2, 1, 1, 1, 3, 1, 3, 2, 2, 1 ; Fx
expectedSize_ED_prefix:
; x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 xA xB xC xD xE xF - ED prefix - Z80N version
DB 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ; 0x
DB 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ; 1x
DB 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2 ; 2x
DB 2, 2, 2, 2, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2 ; 3x
DB 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2 ; 4x
DB 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2 ; 5x
DB 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2 ; 6x
DB 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2 ; 7x
DB 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2 ; 8x
DB 2, 4, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ; 9x
DB 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ; Ax
DB 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ; Bx
DB 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ; Cx
DB 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ; Dx
DB 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ; Ex
DB 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ; Fx
expectedSize_DD_prefix:
; x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 xA xB xC xD xE xF - DD/FD (IX/IY) prefix
DB 2, 4, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 3, 2 ; 0x
DB 3, 4, 2, 2, 2, 2, 3, 2, 3, 2, 2, 2, 2, 2, 3, 2 ; 1x
DB 3, 4, 4, 2, 2, 2, 3, 2, 3, 2, 4, 2, 2, 2, 3, 2 ; 2x
DB 3, 4, 4, 2, 3, 3, 4, 2, 3, 2, 4, 2, 2, 2, 3, 2 ; 3x
DB 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 3, 2 ; 4x
DB 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 3, 2 ; 5x
DB 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 3, 2 ; 6x
DB 3, 3, 3, 3, 3, 3, 2, 3, 2, 2, 2, 2, 2, 2, 3, 2 ; 7x
DB 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 3, 2 ; 8x
DB 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 3, 2 ; 9x
DB 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 3, 2 ; Ax
DB 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 3, 2 ; Bx
DB 2, 2, 4, 4, 4, 2, 3, 2, 2, 2, 4, 4, 4, 4, 3, 2 ; Cx
DB 2, 2, 4, 3, 4, 2, 3, 2, 2, 2, 4, 3, 4, 1, 3, 2 ; Dx
DB 2, 2, 4, 2, 4, 2, 3, 2, 2, 2, 4, 2, 4, 1, 3, 2 ; Ex
DB 2, 2, 4, 2, 4, 2, 3, 2, 2, 2, 4, 2, 4, 1, 3, 2 ; Fx
IFDEF snafile
sna_start:
call start
jr $
SAVESNA "test.sna", sna_start
DISPLAY "code size of GetZ80NOpcodeSize include: ", /D, __GetZ80NOpcodeSize_INCLUDE_END-__GetZ80NOpcodeSize_INCLUDE_START
ENDIF
|
oeis/010/A010462.asm | neoneye/loda-programs | 11 | 162299 | <reponame>neoneye/loda-programs
; A010462: Squares mod 30.
; Submitted by <NAME>
; 0,1,4,6,9,10,15,16,19,21,24,25
mov $2,$0
add $2,1
lpb $2
mov $0,$6
sub $2,1
sub $0,$2
pow $0,2
mov $5,0
lpb $0
sub $0,1
mov $3,$0
cmp $3,0
add $0,$3
mov $5,$0
trn $0,5
lpe
add $4,$5
lpe
mov $0,$4
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_16343_882.asm | ljhsiun2/medusa | 9 | 163672 | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1176b, %rcx
nop
nop
sub $54921, %r13
movb $0x61, (%rcx)
nop
nop
sub $58346, %rdx
lea addresses_A_ht+0x8aa3, %rsi
lea addresses_A_ht+0x131c3, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
cmp $44846, %r9
mov $36, %rcx
rep movsl
nop
and $13801, %rdi
lea addresses_A_ht+0x1ada3, %rsi
nop
xor $46531, %r15
movups (%rsi), %xmm0
vpextrq $0, %xmm0, %r13
nop
nop
nop
nop
cmp $30509, %r9
lea addresses_A_ht+0x18b63, %rsi
lea addresses_A_ht+0x1c089, %rdi
nop
nop
nop
nop
nop
and $63289, %rdx
mov $72, %rcx
rep movsq
nop
nop
nop
nop
nop
sub %rdx, %rdx
lea addresses_A_ht+0x12fa3, %r13
clflush (%r13)
nop
nop
nop
nop
cmp $15113, %rdx
mov (%r13), %ecx
sub %rdx, %rdx
lea addresses_A_ht+0x1c59b, %rsi
lea addresses_D_ht+0x7b83, %rdi
nop
nop
nop
nop
nop
sub %r9, %r9
mov $32, %rcx
rep movsl
nop
nop
nop
and %rdi, %rdi
lea addresses_UC_ht+0x1a333, %rdi
nop
nop
nop
nop
sub %r13, %r13
mov (%rdi), %r9d
add %rdx, %rdx
lea addresses_WT_ht+0x112df, %r9
nop
nop
nop
nop
xor $12257, %rdx
movups (%r9), %xmm5
vpextrq $1, %xmm5, %rcx
nop
cmp %rcx, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r15
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r15
push %r8
push %rcx
push %rsi
// Store
lea addresses_A+0x185a3, %rcx
cmp %r11, %r11
movb $0x51, (%rcx)
nop
and %r13, %r13
// Faulty Load
lea addresses_WT+0x4da3, %r8
nop
nop
nop
add $36695, %r12
mov (%r8), %r15w
lea oracles, %r13
and $0xff, %r15
shlq $12, %r15
mov (%r13,%r15,1), %r15
pop %rsi
pop %rcx
pop %r8
pop %r15
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'39': 16343}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
|
sw/552tests/inst_tests/sub_7.asm | JPShen-UWM/ThreadKraken | 1 | 28411 | <reponame>JPShen-UWM/ThreadKraken
// Test provided by Karu
// Both sources same reg, read and write same reg, result zero
lbi r1, 0xfc
sub r1, r1, r1
halt
|
libsrc/_DEVELOPMENT/adt/wa_stack/c/sccz80/wa_stack_capacity.asm | jpoikela/z88dk | 640 | 162602 |
; size_t wa_stack_capacity(wa_stack_t *s)
SECTION code_clib
SECTION code_adt_wa_stack
PUBLIC wa_stack_capacity
EXTERN asm_wa_stack_capacity
defc wa_stack_capacity = asm_wa_stack_capacity
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _wa_stack_capacity
defc _wa_stack_capacity = wa_stack_capacity
ENDIF
|
src/adxl345.adb | JeremyGrosser/sensors | 1 | 25951 | <gh_stars>1-10
--
-- Copyright (C) 2022 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
package body ADXL345 is
function To_Acceleration
(G_Range : DATA_FORMAT_G_Range_Field;
A : HAL.UInt16)
return Acceleration
is
use HAL;
F : Acceleration;
begin
F := Float (A and 16#7FFF#);
if (A and 16#8000#) /= 0 then
F := F * (-1.0);
end if;
F := F / Float (2 ** 15 - 1);
case G_Range is
when Range_2g =>
F := F * 2.0;
when Range_4g =>
F := F * 4.0;
when Range_8g =>
F := F * 8.0;
when Range_16g =>
F := F * 16.0;
end case;
return F;
end To_Acceleration;
end ADXL345;
|
src/courbes/courbes-bezier_quadratiques.adb | SKNZ/BezierToSTL | 0 | 22477 | with Courbes.Visiteurs; use Courbes.Visiteurs;
package body Courbes.Bezier_Quadratiques is
function Ctor_Bezier_Quadratique (Debut, Fin, C : Point2D) return Bezier_Quadratique is
begin
return
(Debut => Debut,
Fin => Fin,
Controle => C);
end;
overriding function Obtenir_Point(Self : Bezier_Quadratique; X : Coordonnee_Normalisee) return Point2D is
begin
return
(1.0 - X) ** 2 * Self.Debut
+ 2.0 * X * (1.0 - X) * Self.Controle
+ X ** 2 * Self.Fin;
end;
overriding procedure Accepter (Self : Bezier_Quadratique; Visiteur : Visiteur_Courbe'Class) is
begin
Visiteur.Visiter (Self);
end;
end Courbes.Bezier_Quadratiques;
|
source/contexts/plain/program-plain_contexts.ads | reznikmm/gela | 0 | 17728 | <reponame>reznikmm/gela
-- SPDX-FileCopyrightText: 2019-2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Compilation_Unit_Vectors;
with Program.Contexts;
with Program.Error_Listeners;
with Program.Source_Buffers;
with Program.Symbols;
with Program.Visibility;
private with Ada.Containers.Hashed_Maps;
private with Ada.Containers.Vectors;
private with Program.Compilation_Units;
private with Program.Compilations;
private with Program.Elements.Defining_Names;
private with Program.Library_Environments;
private with Program.Cross_Reference_Updaters;
private with Program.Symbol_Lists;
private with Program.Symbols.Tables;
private with Program.Unit_Naming;
package Program.Plain_Contexts is
pragma Preelaborate;
type Context is limited new Program.Contexts.Context with private;
procedure Initialize
(Self : in out Context'Class;
Errors : Program.Error_Listeners.Error_Listener_Access);
procedure Add_Search_Directory
(Self : in out Context'Class;
Path : Program.Text);
procedure Find_Or_Create_Symbol
(Self : in out Context'Class;
Buffer : not null Program.Source_Buffers.Source_Buffer_Access;
Span : Program.Source_Buffers.Span;
Result : out Program.Symbols.Symbol);
function Find
(Self : Context'Class;
Value : Program.Text) return Program.Symbols.Symbol;
procedure Parse_File
(Self : aliased in out Context'Class;
Text_Name : Text);
procedure Complete_Analysis (Self : in out Context'Class);
overriding function Library_Unit_Declarations (Self : Context)
return Program.Compilation_Unit_Vectors.Compilation_Unit_Vector_Access;
overriding function Compilation_Unit_Bodies (Self : Context)
return Program.Compilation_Unit_Vectors.Compilation_Unit_Vector_Access;
function Immediate_Visible
(Self : in out Context'Class;
Unit : Program.Text;
Name : Program.Text) return Program.Visibility.View_Iterator;
private
type Symbol_Table is new Program.Symbols.Tables.Symbol_Table with record
Lists : aliased Program.Symbol_Lists.Symbol_List_Table
(Symbol_Table'Unchecked_Access);
end record;
type Unit_Status is (Parsed, Loading, Analysed);
-- Unit analysis status.
-- Parsed - unit has been parsed
-- Loading - loading of dependency units
-- Analysed - unit has been analysed
type Unit_Map_Item is record
Status : Unit_Status;
Unit : Program.Compilation_Units.Compilation_Unit_Access;
end record;
package Unit_Maps is new Ada.Containers.Hashed_Maps
(Key_Type => Program.Symbol_Lists.Symbol_List,
Element_Type => Unit_Map_Item,
Hash => Program.Symbol_Lists.Hash,
Equivalent_Keys => Program.Symbol_Lists."=");
package Unit_Vectors is new Ada.Containers.Vectors
(Index_Type => Positive,
Element_Type => Program.Symbol_Lists.Symbol_List,
"=" => Program.Symbol_Lists."=");
type Unit_Vector (Context : access Program.Plain_Contexts.Context) is
limited new Program.Compilation_Unit_Vectors.Compilation_Unit_Vector with
record
Map : Unit_Maps.Map;
List : Unit_Vectors.Vector;
end record;
type Unit_Vector_Access is access all Unit_Vector'Class
with Storage_Size => 0;
overriding function Get_Length (Self : Unit_Vector) return Positive;
overriding function Element
(Self : Unit_Vector;
Index : Positive)
return not null Program.Compilation_Units.Compilation_Unit_Access;
overriding function Find_Unit
(Self : Unit_Vector;
Name : Text)
return Program.Compilation_Units.Compilation_Unit_Access;
function Find_Unit
(Self : Unit_Vector'Class;
Name : Text) return Unit_Maps.Cursor;
package Compilation_Vectors is new Ada.Containers.Vectors
(Index_Type => Positive,
Element_Type => Program.Compilations.Compilation_Access,
"=" => Program.Compilations."=");
type Reference_Updater
(Context : access Program.Plain_Contexts.Context) is new
Program.Cross_Reference_Updaters.Cross_Reference_Updater
with null record;
overriding procedure Set_Corresponding_Defining_Name
(Self : in out Reference_Updater;
Name : not null Program.Elements.Element_Access;
Def : Program.Elements.Defining_Names.Defining_Name_Access);
type Context is limited new Program.Contexts.Context with record
Symbols : Symbol_Table;
Library_Env : aliased Program.Library_Environments.Library_Environment;
Visible : aliased Program.Visibility.Context;
Declarations : aliased Unit_Vector (Context'Unchecked_Access);
Bodies : aliased Unit_Vector (Context'Unchecked_Access);
Xref : aliased Reference_Updater (Context'Unchecked_Access);
Compilations : Compilation_Vectors.Vector;
Naming : Program.Unit_Naming.Unit_Naming_Schema_Access;
Errors : Program.Error_Listeners.Error_Listener_Access;
end record;
procedure Append_Unit
(Self : in out Context'Class;
Unit : Program.Compilation_Units.Compilation_Unit_Access);
end Program.Plain_Contexts;
|
oeis/163/A163826.asm | neoneye/loda-programs | 11 | 21691 | <reponame>neoneye/loda-programs<filename>oeis/163/A163826.asm
; A163826: G.f.: Sum_{n>=1} n * 2^(n^2) * x^n / (1 - 2^n*x)^(n+1).
; Submitted by <NAME>(s4)
; 2,40,1944,314432,189747360,445551600000,4129013201798016,151656774720556632064,22103008531040898656506368,12788356812264101562500000000000,29386118223270908365782465643544598528,268328496674642304807722057766475052617875456,9742014109952055980855618068941847838978008416362496,1407186854137521726938830410800960798390669784760000000000000,809144024525875725449713605411467536318407077710063536648866916433920,1853097516388311295220139303570167599836878083221708032697139832498716402515968
mov $1,2
pow $1,$0
mul $1,2
add $1,1
mul $1,2
pow $1,$0
mov $2,$0
mul $2,$1
add $1,$2
mov $0,$1
mul $0,2
|
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_2776.asm | ljhsiun2/medusa | 9 | 161010 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x92cf, %rsi
lea addresses_UC_ht+0x53ef, %rdi
nop
nop
nop
nop
and %r11, %r11
mov $17, %rcx
rep movsb
nop
xor $40246, %r9
lea addresses_WC_ht+0x1e1cf, %rsi
lea addresses_WT_ht+0x1844f, %rdi
nop
nop
nop
nop
inc %rdx
mov $62, %rcx
rep movsl
nop
nop
nop
nop
and $40731, %rdi
lea addresses_WC_ht+0x131cf, %r11
nop
nop
xor %rcx, %rcx
mov $0x6162636465666768, %rdi
movq %rdi, %xmm0
and $0xffffffffffffffc0, %r11
vmovaps %ymm0, (%r11)
and %rcx, %rcx
lea addresses_UC_ht+0xc84f, %rsi
lea addresses_UC_ht+0x134c5, %rdi
clflush (%rdi)
nop
nop
xor %r11, %r11
mov $32, %rcx
rep movsw
nop
and %rdx, %rdx
lea addresses_A_ht+0x11021, %rdx
nop
mfence
mov (%rdx), %r11
nop
nop
nop
nop
nop
add %r9, %r9
lea addresses_normal_ht+0x38a3, %r11
nop
and $7811, %r13
movups (%r11), %xmm0
vpextrq $1, %xmm0, %rsi
nop
nop
nop
xor $25677, %rcx
lea addresses_WT_ht+0x1ce07, %rdx
nop
nop
nop
nop
and $3546, %r9
mov $0x6162636465666768, %rsi
movq %rsi, (%rdx)
nop
nop
dec %r9
lea addresses_WC_ht+0x14bef, %r9
nop
nop
nop
nop
nop
xor %r13, %r13
mov (%r9), %si
xor $6934, %r13
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %r9
push %rax
// Faulty Load
lea addresses_UC+0xdcf, %r11
nop
nop
cmp $12840, %r13
movaps (%r11), %xmm3
vpextrq $0, %xmm3, %r9
lea oracles, %r13
and $0xff, %r9
shlq $12, %r9
mov (%r13,%r9,1), %r9
pop %rax
pop %r9
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_UC', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_UC', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 7, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 16, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 8, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
spreadsheet_to_excel.scpt | phoeniex/papyrus | 3 | 3650 | <reponame>phoeniex/papyrus
#!/usr/bin/osascript
on run argv
set theFilePath to POSIX file (item 1 of argv)
set theExportFilePath to POSIX file (item 2 of argv)
set theFilePathAlias to theFilePath as alias
set theFileName to name of (info for theFilePath)
set theFileExtension to name extension of (info for theFilePath)
set xtsLength to count of theFileExtension
set theFileNameWithoutExtension to text 1 thru -(xtsLength + 2) of theFileName
-- ensureUTF8Encoding
do shell script "/usr/bin/defaults write com.apple.iWork.Numbers CSVExportEncoding -int 4"
set exportName to (theExportFilePath as text) & ":" & theFileNameWithoutExtension & ".xlsx"
log exportName
set aDoc to theFilePathAlias as text
tell application "Numbers"
open aDoc
delay 3 -- may need to adjust this higher
tell front document
export to file exportName as Microsoft Excel
close
end tell
end tell
end run |
experiments/test-suite/mutation-based/10/5/arr.als | kaiyuanw/AlloyFLCore | 1 | 1692 | pred test17 {
some disj Element0: Element {some disj Array0: Array {
Element = Element0
Array = Array0
i2e = Array0->-8->Element0 + Array0->-7->Element0 + Array0->-6->Element0 + Array0->-5->Element0 + Array0->-4->Element0 + Array0->-3->Element0 + Array0->-2->Element0 + Array0->-1->Element0 + Array0->7->Element0
length = Array0->0
}}
}
run test17 for 3 expect 0
pred test21 {
some disj Element0: Element {some disj Array0: Array {
Element = Element0
Array = Array0
i2e = Array0->-8->Element0 + Array0->-7->Element0 + Array0->-6->Element0 + Array0->-5->Element0 + Array0->-4->Element0 + Array0->-3->Element0 + Array0->-2->Element0 + Array0->-1->Element0 + Array0->1->Element0 + Array0->2->Element0 + Array0->3->Element0 + Array0->6->Element0 + Array0->7->Element0
length = Array0->0
}}
}
run test21 for 3 expect 0
pred test29 {
some disj Element0: Element {some disj Array0: Array {
Element = Element0
Array = Array0
i2e = Array0->0->Element0 + Array0->1->Element0 + Array0->2->Element0 + Array0->3->Element0 + Array0->4->Element0 + Array0->5->Element0
length = Array0->6
}}
}
run test29 for 3 expect 1
|
examples/asm/tdot_5_3.asm | ptorru/reticle | 35 | 7209 | <reponame>ptorru/reticle<filename>examples/asm/tdot_5_3.asm
def main(a0:i8, c0:i8, e0:i8, g0:i8, i0:i8, a1:i8, c1:i8, e1:i8, g1:i8, i1:i8, a2:i8, c2:i8, e2:i8, g2:i8, i2:i8, b0:i8, d0:i8, f0:i8, h0:i8, j0:i8, b1:i8, d1:i8, f1:i8, h1:i8, j1:i8, b2:i8, d2:i8, f2:i8, h2:i8, j2:i8, m:i8, n:i8, o:i8, p:i8, q:i8, en:bool) -> (v:i8, w:i8, x:i8, y:i8, z:i8) {
v:i8 = dmuladdrega_i8i8(a2, b2, t11, en, en, en, en) @dsp(??, ??);
t11:i8 = dmuladdrega_i8i8(a1, b1, t5, en, en, en, en) @dsp(??, ??);
t5:i8 = dmuladdrega_i8i8(a0, b0, m, en, en, en, en) @dsp(??, ??);
w:i8 = dmuladdrega_i8i8(c2, d2, t29, en, en, en, en) @dsp(??, ??);
t29:i8 = dmuladdrega_i8i8(c1, d1, t23, en, en, en, en) @dsp(??, ??);
t23:i8 = dmuladdrega_i8i8(c0, d0, n, en, en, en, en) @dsp(??, ??);
x:i8 = dmuladdrega_i8i8(e2, f2, t47, en, en, en, en) @dsp(??, ??);
t47:i8 = dmuladdrega_i8i8(e1, f1, t41, en, en, en, en) @dsp(??, ??);
t41:i8 = dmuladdrega_i8i8(e0, f0, o, en, en, en, en) @dsp(??, ??);
y:i8 = dmuladdrega_i8i8(g2, h2, t65, en, en, en, en) @dsp(??, ??);
t65:i8 = dmuladdrega_i8i8(g1, h1, t59, en, en, en, en) @dsp(??, ??);
t59:i8 = dmuladdrega_i8i8(g0, h0, p, en, en, en, en) @dsp(??, ??);
z:i8 = dmuladdrega_i8i8(i2, j2, t83, en, en, en, en) @dsp(??, ??);
t83:i8 = dmuladdrega_i8i8(i1, j1, t77, en, en, en, en) @dsp(??, ??);
t77:i8 = dmuladdrega_i8i8(i0, j0, q, en, en, en, en) @dsp(??, ??);
}
|
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver0/sfc/ys_bgsc0.asm | prismotizm/gigaleak | 0 | 168073 | <reponame>prismotizm/gigaleak
Name: ys_bgsc0.asm
Type: file
Size: 151748
Last-Modified: '2016-05-13T04:50:34Z'
SHA-1: 8AB0537641F345E6FC403134B31CF7D5720946D3
Description: null
|
extra/ASM 8086/basic_psp.asm | jfitz/code-stat | 0 | 86778 | <reponame>jfitz/code-stat
This program is used to set the PSP address for a compiled BASIC program
The PSP segment is saved at 0:4F2H.
extrn $$main:far
cseg segment para public 'code'
; It can also be used to limit the maximum memory available to a compiled
; BASIC program. The option '/M:nnn' is used on the command line, where
; nnn is the number of K-bytes the program is limited to. If no, /M option
; is specified, no memory limitation takes place. For example, '/M:64' would
; limit the program to 64*1024 bytes. The range for nnn is 64 to 1024.
; This routine gets control before BASIC, does its handiwork, and then
; passes control to the BASIC program. It must be linked as follows:
; LINK BASMAIN+yourprog,yourprog,NUL.MAP,BASCOM
; If BASMAIN is unable to limit memory as requested, a message is displayed
; and the execution of the program is continued.
public basmain
basmain proc far
assume cs:cseg,ds:cseg,ss:nothing,es:nothing
push ds ; save ds
xor ax,ax
mov ds,ax ; ds=0
mov si,4f2h ; dos communications area
mov ax,es ; get psp seg
mov [si],ax ; save psp in dos comm area
pop ds ; restore ds
mov si,80h ; point to command line
mov ch,0
mov cl,[si] ; get length of command line
jcxz p025 ; it's zero
p010: inc si
mov al,[si] ; get char from command line
cmp al,'/' ; is it a slash?
jnz p020 ; no
mov ax,[si+1] ; get next 2 chars
cmp ax,':M' ; is it M: ?
jz p030 ; yes
cmp ax,':m' ; is it m: ?
jz p030 ; yes
p020: loop p010 ; check next char
p025: jmp p080 ; no /m: or /M: found
p030: ; found /m: or /M:
add si,3 ; point to first number
mov ax,0
mov bx,0
mov cx,10
p040: mov bl,[si] ; get character
cmp bl,'0' ; out of range?
jb p050 ; yes
cmp bl,'9' ; out of range?
ja p050 ; yes
sub bl,'0' ; convert to binary
mul cx ; multiply ax by 10
add ax,bx ; add new digit
inc si ; point to next char
jmp p040 ; continue
p050: ; got value in ax
cmp ax,64 ; less than 64K?
jb p060 ; yes - print msg
cmp ax,1024 ; greater than 1024K?
ja p060 ; yes - print msg
mov cl,6
sal ax,cl ; convert from KB to paragraphs (*64)
mov bx,es ; get psp
add bx,ax ; new top of memory
mov si,2 ; point to top of memory in psp
mov ax,[si] ; get current top of memory
cmp ax,bx ; is new setting larger?
jae p055 ; no
mov dx,offset msg2 ; yes - print msg
jmp p065
p055: mov [si],bx ; save new top of memory
jmp p080
p060: mov dx,offset msg1 ; print the message
p065: add dx,100h ; fudge for the psp
mov ah,9
int 21h
p080: jmp $$main ; jump to BASIC's start point
msg1 db 'Memory specification must be from 64 to 1024',7,10,13,'$'
msg2 db 'Unable to limit memory',7,10,13,'$'
basmain endp
cseg ends
end basmain ; must be a main program!
|
test/Succeed/AbstractData.agda | shlevy/agda | 1,989 | 8980 |
module AbstractData where
abstract
data D : Set where
c : D
d : D
d = c
|
Palmtree.Math.Core.Sint/vs_build/x64_Debug/pmc_bytes.asm | rougemeilland/Palmtree.Math.Core.Sint | 0 | 164891 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
include listing.inc
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM uint_number_zero:QWORD
COMM uint_number_one:QWORD
_DATA ENDS
msvcjmc SEGMENT
__7B7A869E_ctype@h DB 01H
__457DD326_basetsd@h DB 01H
__4384A2D9_corecrt_memcpy_s@h DB 01H
__4E51A221_corecrt_wstring@h DB 01H
__2140C079_string@h DB 01H
__1887E595_winnt@h DB 01H
__9FC7C64B_processthreadsapi@h DB 01H
__FA470AEC_memoryapi@h DB 01H
__F37DAFF1_winerror@h DB 01H
__7A450CCC_winbase@h DB 01H
__B4B40122_winioctl@h DB 01H
__86261D59_stralign@h DB 01H
__B76D73AB_pmc_bytes@c DB 01H
msvcjmc ENDS
PUBLIC PMC_FromByteArray
PUBLIC PMC_ToByteArray
PUBLIC __JustMyCode_Default
EXTRN AllocateNumber:PROC
EXTRN CheckNumber:PROC
EXTRN _RTC_CheckStackVars:PROC
EXTRN _RTC_InitBase:PROC
EXTRN _RTC_Shutdown:PROC
EXTRN __CheckForDebuggerJustMyCode:PROC
EXTRN __GSHandlerCheck:PROC
EXTRN __security_check_cookie:PROC
EXTRN ep_uint:BYTE
EXTRN __security_cookie:QWORD
; COMDAT pdata
pdata SEGMENT
$pdata$PMC_FromByteArray DD imagerel $LN8
DD imagerel $LN8+281
DD imagerel $unwind$PMC_FromByteArray
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$PMC_ToByteArray DD imagerel $LN6
DD imagerel $LN6+194
DD imagerel $unwind$PMC_ToByteArray
pdata ENDS
; COMDAT rtc$TMZ
rtc$TMZ SEGMENT
_RTC_Shutdown.rtc$TMZ DQ FLAT:_RTC_Shutdown
rtc$TMZ ENDS
; COMDAT rtc$IMZ
rtc$IMZ SEGMENT
_RTC_InitBase.rtc$IMZ DQ FLAT:_RTC_InitBase
rtc$IMZ ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$PMC_ToByteArray DD 035053901H
DD 011d3322H
DD 070160027H
DD 05015H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$PMC_FromByteArray DD 025054519H
DD 0118231dH
DD 07011002dH
DD 05010H
DD imagerel __GSHandlerCheck
DD 0158H
xdata ENDS
; COMDAT CONST
CONST SEGMENT
PMC_FromByteArray$rtcName$0 DB 06fH
DB 05fH
DB 073H
DB 069H
DB 067H
DB 06eH
DB 00H
ORG $+1
PMC_FromByteArray$rtcName$1 DB 06fH
DB 05fH
DB 061H
DB 062H
DB 073H
DB 00H
ORG $+2
PMC_FromByteArray$rtcName$2 DB 06eH
DB 06fH
DB 00H
ORG $+5
PMC_FromByteArray$rtcFrameData DD 03H
DD 00H
DQ FLAT:PMC_FromByteArray$rtcVarDesc
ORG $+8
PMC_FromByteArray$rtcVarDesc DD 088H
DD 08H
DQ FLAT:PMC_FromByteArray$rtcName$2
DD 068H
DD 08H
DQ FLAT:PMC_FromByteArray$rtcName$1
DD 044H
DD 01H
DQ FLAT:PMC_FromByteArray$rtcName$0
CONST ENDS
; Function compile flags: /Odt
; COMDAT __JustMyCode_Default
_TEXT SEGMENT
__JustMyCode_Default PROC ; COMDAT
ret 0
__JustMyCode_Default ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\pmc_bytes.c
; COMDAT PMC_ToByteArray
_TEXT SEGMENT
np$ = 8
result$ = 36
p$ = 288
buffer$ = 296
buffer_size$ = 304
count$ = 312
PMC_ToByteArray PROC ; COMDAT
; 54 : {
$LN6:
mov QWORD PTR [rsp+32], r9
mov QWORD PTR [rsp+24], r8
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rbp
push rdi
sub rsp, 312 ; 00000138H
lea rbp, QWORD PTR [rsp+48]
mov rdi, rsp
mov ecx, 78 ; 0000004eH
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+344]
lea rcx, OFFSET FLAT:__B76D73AB_pmc_bytes@c
call __CheckForDebuggerJustMyCode
; 55 : if (p == NULL)
cmp QWORD PTR p$[rbp], 0
jne SHORT $LN2@PMC_ToByte
; 56 : return (PMC_STATUS_ARGUMENT_ERROR);
mov eax, -1
jmp SHORT $LN1@PMC_ToByte
$LN2@PMC_ToByte:
; 57 : NUMBER_HEADER* np = (NUMBER_HEADER*)p;
mov rax, QWORD PTR p$[rbp]
mov QWORD PTR np$[rbp], rax
; 58 : PMC_STATUS_CODE result;
; 59 : if ((result = CheckNumber(np)) != PMC_STATUS_OK)
mov rcx, QWORD PTR np$[rbp]
call CheckNumber
mov DWORD PTR result$[rbp], eax
cmp DWORD PTR result$[rbp], 0
je SHORT $LN3@PMC_ToByte
; 60 : return (result);
mov eax, DWORD PTR result$[rbp]
jmp SHORT $LN1@PMC_ToByte
$LN3@PMC_ToByte:
; 61 : if ((result = ep_uint.ToByteArrayForSINT(np->SIGN, np->ABS, buffer, buffer_size, count)) != PMC_STATUS_OK)
mov rax, QWORD PTR count$[rbp]
mov QWORD PTR [rsp+32], rax
mov r9, QWORD PTR buffer_size$[rbp]
mov r8, QWORD PTR buffer$[rbp]
mov rax, QWORD PTR np$[rbp]
mov rdx, QWORD PTR [rax+16]
mov rax, QWORD PTR np$[rbp]
movzx ecx, BYTE PTR [rax+24]
call QWORD PTR ep_uint+552
mov DWORD PTR result$[rbp], eax
cmp DWORD PTR result$[rbp], 0
je SHORT $LN4@PMC_ToByte
; 62 : return (result);
mov eax, DWORD PTR result$[rbp]
jmp SHORT $LN1@PMC_ToByte
$LN4@PMC_ToByte:
; 63 : return (PMC_STATUS_OK);
xor eax, eax
$LN1@PMC_ToByte:
; 64 : }
lea rsp, QWORD PTR [rbp+264]
pop rdi
pop rbp
ret 0
PMC_ToByteArray ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\pmc_bytes.c
; COMDAT PMC_FromByteArray
_TEXT SEGMENT
result$ = 4
o_sign$ = 36
o_abs$ = 72
no$ = 104
__$ArrayPad$ = 312
buffer$ = 352
count$ = 360
o$ = 368
PMC_FromByteArray PROC ; COMDAT
; 31 : {
$LN8:
mov QWORD PTR [rsp+24], r8
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rbp
push rdi
sub rsp, 360 ; 00000168H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 90 ; 0000005aH
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+392]
mov rax, QWORD PTR __security_cookie
xor rax, rbp
mov QWORD PTR __$ArrayPad$[rbp], rax
lea rcx, OFFSET FLAT:__B76D73AB_pmc_bytes@c
call __CheckForDebuggerJustMyCode
; 32 : PMC_STATUS_CODE result;
; 33 : if (buffer == NULL)
cmp QWORD PTR buffer$[rbp], 0
jne SHORT $LN2@PMC_FromBy
; 34 : return (PMC_STATUS_ARGUMENT_ERROR);
mov eax, -1
jmp $LN1@PMC_FromBy
$LN2@PMC_FromBy:
; 35 : if (o == NULL)
cmp QWORD PTR o$[rbp], 0
jne SHORT $LN3@PMC_FromBy
; 36 : return (PMC_STATUS_ARGUMENT_ERROR);
mov eax, -1
jmp SHORT $LN1@PMC_FromBy
$LN3@PMC_FromBy:
; 37 : if (count < 1)
cmp QWORD PTR count$[rbp], 1
jae SHORT $LN4@PMC_FromBy
; 38 : return (PMC_STATUS_ARGUMENT_ERROR);
mov eax, -1
jmp SHORT $LN1@PMC_FromBy
$LN4@PMC_FromBy:
; 39 : char o_sign;
; 40 : PMC_HANDLE_UINT o_abs;
; 41 : if ((result = ep_uint.FromByteArrayForSINT(buffer, count, &o_sign, &o_abs)) != PMC_STATUS_OK)
lea r9, QWORD PTR o_abs$[rbp]
lea r8, QWORD PTR o_sign$[rbp]
mov rdx, QWORD PTR count$[rbp]
mov rcx, QWORD PTR buffer$[rbp]
call QWORD PTR ep_uint+544
mov DWORD PTR result$[rbp], eax
cmp DWORD PTR result$[rbp], 0
je SHORT $LN5@PMC_FromBy
; 42 : return (result);
mov eax, DWORD PTR result$[rbp]
jmp SHORT $LN1@PMC_FromBy
$LN5@PMC_FromBy:
; 43 : NUMBER_HEADER* no;
; 44 : if ((result = AllocateNumber(&no, o_sign, o_abs)) != PMC_STATUS_OK)
mov r8, QWORD PTR o_abs$[rbp]
movzx edx, BYTE PTR o_sign$[rbp]
lea rcx, QWORD PTR no$[rbp]
call AllocateNumber
mov DWORD PTR result$[rbp], eax
cmp DWORD PTR result$[rbp], 0
je SHORT $LN6@PMC_FromBy
; 45 : {
; 46 : ep_uint.Dispose(o_abs);
mov rcx, QWORD PTR o_abs$[rbp]
call QWORD PTR ep_uint+32
; 47 : return (result);
mov eax, DWORD PTR result$[rbp]
jmp SHORT $LN1@PMC_FromBy
$LN6@PMC_FromBy:
; 48 : }
; 49 : *o = (PMC_HANDLE_SINT)no;
mov rax, QWORD PTR o$[rbp]
mov rcx, QWORD PTR no$[rbp]
mov QWORD PTR [rax], rcx
; 50 : return (PMC_STATUS_OK);
xor eax, eax
$LN1@PMC_FromBy:
; 51 : }
mov rdi, rax
lea rcx, QWORD PTR [rbp-32]
lea rdx, OFFSET FLAT:PMC_FromByteArray$rtcFrameData
call _RTC_CheckStackVars
mov rax, rdi
mov rcx, QWORD PTR __$ArrayPad$[rbp]
xor rcx, rbp
call __security_check_cookie
lea rsp, QWORD PTR [rbp+328]
pop rdi
pop rbp
ret 0
PMC_FromByteArray ENDP
_TEXT ENDS
END
|
programs/oeis/267/A267802.asm | jmorken/loda | 1 | 161376 | <reponame>jmorken/loda
; A267802: Decimal representation of the n-th iteration of the "Rule 213" elementary cellular automaton starting with a single ON (black) cell.
; 1,3,19,115,499,2035,8179,32755,131059,524275,2097139,8388595,33554419,134217715,536870899,2147483635,8589934579,34359738355,137438953459,549755813875,2199023255539,8796093022195,35184372088819,140737488355315,562949953421299,2251799813685235,9007199254740979
mov $1,4
pow $1,$0
mov $2,$0
sub $2,3
lpb $2
mov $1,$0
add $1,7
mov $2,$0
lpe
mul $1,2
sub $1,13
|
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_atanh.asm | jpoikela/z88dk | 640 | 13181 | <reponame>jpoikela/z88dk<filename>libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_atanh.asm
; float atanh(float x)
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sdccix_atanh
EXTERN cm48_sdccix_atanh_fastcall
cm48_sdccix_atanh:
pop af
pop hl
pop de
push de
push hl
push af
jp cm48_sdccix_atanh_fastcall
|
projects/Links_Awakening_gb_noconfig.windfish/disassembly/bank_0F.asm | jverkoey/awaken | 68 | 161810 | SECTION "ROM Bank 0F", ROMX[$4000], BANK[$0F]
db $87, $87, $01, $01, $C0, $C0, $9C, $9C
db $9C, $9C, $18, $18, $81, $81, $83, $83
db $E7, $E7, $CF, $CF, $C9, $CF, $89, $8F
db $99, $9F, $93, $9F, $12, $1E, $1F, $1F
db $C7, $C7, $C3, $C3, $83, $83, $93, $93
db $B3, $B3, $31, $31, $01, $01, $03, $03
db $B9, $B9, $39, $39, $31, $31, $31, $31
db $02, $02, $02, $02, $86, $86, $E6, $E6
db $83, $83, $02, $02, $1F, $1F, $31, $3F
db $1F, $1F, $03, $03, $07, $07, $3F, $3F
db $FF, $FF, $D4, $DC, $9C, $9C, $98, $98
db $98, $98, $81, $81, $81, $81, $C3, $C3
db $FF, $FF, $F3, $F3, $C3, $C3, $C3, $C3
db $81, $81, $9D, $9D, $1D, $1D, $39, $39
db $FF, $FF, $AA, $BA, $32, $32, $32, $32
db $32, $32, $32, $32, $32, $32, $32, $32
db $FF, $FF, $1B, $1F, $0D, $0F, $45, $47
db $65, $67, $65, $67, $0D, $0F, $3F, $3F
db $0F, $0F, $03, $03, $31, $31, $39, $39
db $31, $31, $03, $03, $1F, $1F, $0F, $0F
db $1F, $1F, $0F, $0F, $83, $83, $E1, $E1
db $F1, $F1, $03, $03, $87, $87, $FF, $FF
db $0F, $0F, $01, $01, $03, $03, $1F, $1F
db $1F, $1F, $01, $01, $43, $43, $FF, $FF
db $9F, $9F, $99, $9F, $19, $1F, $1F, $1F
db $19, $19, $01, $01, $87, $87, $FF, $FF
db $0F, $0F, $01, $01, $03, $03, $1F, $1F
db $1F, $1F, $01, $01, $43, $43, $FF, $FF
db $1F, $1F, $30, $3F, $37, $3F, $1D, $1D
db $01, $01, $81, $81, $C3, $C3, $FF, $FF
db $FF, $FF, $FF, $C0, $FC, $83, $F8, $87
db $E0, $9F, $E0, $9F, $F0, $CF, $FF, $FF
db $9F, $9F, $93, $9F, $B1, $BF, $FF, $FF
db $E3, $E3, $81, $81, $01, $01, $0D, $0D
db $19, $19, $01, $01, $87, $87, $FF, $FF
db $C1, $C1, $81, $81, $8F, $8F, $9F, $9F
db $33, $33, $73, $73, $57, $77, $FD, $FF
db $65, $E7, $4D, $CF, $CD, $CF, $8F, $8F
db $CE, $CE, $8A, $8E, $9A, $9E, $FF, $FF
db $C1, $C1, $81, $81, $8F, $8F, $9F, $9F
db $3F, $3F, $03, $03, $87, $87, $FF, $FF
db $71, $F1, $C1, $C1, $81, $81, $8F, $8F
db $F3, $F3, $67, $E7, $45, $C7, $4D, $CF
db $7B, $FF, $D2, $DE, $92, $9E, $9E, $9E
db $39, $39, $33, $33, $83, $83, $C7, $C7
db $FE, $FF, $E3, $E3, $E1, $E1, $C1, $C1
db $22, $22, $02, $02, $06, $06, $C7, $C7
db $7F, $FF, $CC, $CC, $8C, $8C, $8C, $8C
db $1F, $1F, $0E, $0F, $46, $47, $66, $67
db $FF, $FF, $F0, $F0, $60, $60, $63, $63
db $FF, $FF, $FB, $07, $01, $FF, $7F, $FF
db $C1, $C1, $80, $80, $80, $80, $98, $98
db $8C, $8C, $8C, $8C, $05, $05, $11, $11
db $11, $11, $39, $39, $29, $39, $BB, $BB
db $C9, $C9, $D9, $D9, $98, $98, $00, $00
db $81, $81, $99, $99, $B9, $B9, $BB, $BB
db $88, $88, $80, $80, $A2, $A2, $A2, $A2
db $B6, $B6, $BE, $BE, $A2, $BE, $BE, $BE
db $67, $67, $40, $40, $40, $40, $43, $43
db $47, $47, $4E, $4E, $40, $40, $E1, $E1
db $F9, $F9, $F3, $F3, $A6, $E7, $AC, $EF
db $A4, $E7, $BC, $FF, $E4, $E7, $E7, $E7
db $FF, $FF, $E3, $1F, $01, $FF, $01, $FF
db $03, $FD, $03, $FD, $7D, $83, $FF, $FF
db $00, $00, $E0, $00, $F0, $00, $F8, $00
db $FE, $00, $FF, $00, $FF, $00, $FF, $00
db $00, $00, $00, $00, $03, $00, $07, $00
db $1F, $00, $7F, $00, $FF, $00, $FF, $00
db $FF, $00, $FF, $00, $F9, $06, $C8, $35
db $40, $AC, $00, $4B, $00, $A7, $00, $FF
db $F8, $F8, $C7, $87, $7E, $64, $1F, $18
db $1F, $11, $2F, $33, $2F, $33, $FF, $FC
db $0E, $0E, $F2, $F2, $1C, $1C, $F8, $C8
db $FC, $E4, $FC, $F4, $FC, $F4, $FC, $C4
db $87, $84, $87, $F4, $E7, $96, $E7, $95
db $E7, $94, $E5, $97, $E6, $97, $E5, $96
db $FE, $C6, $FD, $C5, $FF, $1D, $EF, $E5
db $1F, $06, $FF, $E6, $9D, $1D, $FF, $09
db $87, $F7, $85, $86, $FF, $FF, $FF, $38
db $E7, $E7, $02, $1A, $00, $FD, $00, $FF
db $FF, $FF, $DF, $E4, $FF, $FC, $D3, $E3
db $22, $3E, $1C, $DD, $00, $E3, $00, $FF
db $FF, $FF, $EC, $13, $80, $7F, $21, $FF
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $07, $07, $21, $21, $B3, $B3, $FE, $FF
db $03, $03, $01, $01, $01, $01, $C7, $C7
db $03, $03, $73, $73, $33, $33, $33, $33
db $33, $33, $33, $33, $33, $33, $03, $03
db $03, $03, $7B, $7B, $1B, $1B, $7B, $7B
db $63, $63, $63, $63, $7B, $7B, $03, $03
db $03, $03, $7B, $7B, $1B, $1B, $7B, $7B
db $1B, $1B, $1B, $1B, $7B, $7B, $03, $03
db $FF, $FF, $93, $93, $6D, $01, $7D, $01
db $BB, $83, $D7, $C7, $EF, $EF, $FF, $FF
db $C7, $C7, $47, $C7, $45, $C7, $4D, $CF
db $49, $CF, $49, $CF, $59, $DF, $FF, $FF
db $FF, $FF, $E3, $E3, $DB, $DB, $DB, $DB
db $B7, $B7, $B7, $B7, $CF, $CF, $FF, $FF
db $FF, $FF, $FB, $FB, $FB, $FB, $F7, $F7
db $F7, $F7, $EF, $EF, $EF, $EF, $FF, $FF
db $FF, $FF, $E3, $E3, $D9, $D9, $FB, $FB
db $F7, $F7, $EF, $EF, $83, $83, $FF, $FF
db $FF, $FF, $E3, $E3, $D9, $D9, $F3, $F3
db $FB, $FB, $BB, $BB, $C7, $C7, $FF, $FF
db $FF, $FF, $FB, $FB, $F7, $F7, $EF, $EF
db $DB, $DB, $81, $81, $F7, $F7, $FF, $FF
db $FF, $FF, $E1, $E1, $EF, $EF, $C7, $C7
db $FB, $FB, $FB, $FB, $87, $87, $FF, $FF
db $FF, $FF, $FB, $FB, $F7, $F7, $E7, $E7
db $DB, $DB, $9B, $9B, $C7, $C7, $FF, $FF
db $FF, $FF, $C1, $C1, $FB, $FB, $F7, $F7
db $F7, $F7, $EF, $EF, $EF, $EF, $FF, $FF
db $FF, $FF, $E1, $E1, $DB, $DB, $E7, $E7
db $DB, $DB, $BB, $BB, $C7, $C7, $FF, $FF
db $FF, $FF, $E3, $E3, $D9, $D9, $DB, $DB
db $E7, $E7, $EF, $EF, $DF, $DF, $FF, $FF
db $FF, $FF, $87, $87, $33, $33, $33, $33
db $33, $33, $33, $33, $87, $87, $FF, $FF
db $FF, $FF, $9C, $9C, $99, $99, $93, $93
db $83, $83, $89, $89, $9C, $9C, $FF, $FF
db $00, $00, $FF, $FF, $FF, $FF, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $08, $08, $0C, $0C, $FE, $FE, $FF, $FF
db $FE, $FE, $0C, $0C, $08, $08, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $FF, $07, $FF, $1F, $FF, $30, $FF, $60
db $FF, $40, $FF, $C0, $FF, $C0, $FF, $C0
db $FF, $80, $FF, $E0, $FF, $F0, $FF, $78
db $FF, $78, $FF, $31, $FF, $02, $FF, $02
db $FF, $00, $FF, $00, $FF, $30, $FF, $10
db $FF, $18, $FF, $98, $FF, $8D, $FF, $8F
db $FF, $00, $FF, $00, $FF, $70, $FF, $70
db $FF, $E0, $FF, $E3, $FF, $6E, $FF, $66
db $FF, $01, $FF, $06, $FF, $0C, $FF, $0C
db $FF, $18, $FF, $98, $FF, $18, $FF, $18
db $FF, $C0, $FF, $30, $FF, $18, $FF, $18
db $FF, $0C, $FF, $0D, $FF, $0D, $FF, $0D
db $FF, $00, $FF, $01, $FF, $0F, $FF, $0C
db $FF, $0C, $FF, $2C, $FF, $6C, $FF, $4E
db $FF, $00, $FF, $00, $FF, $00, $FF, $00
db $FF, $00, $FF, $FC, $FF, $26, $FF, $26
db $FF, $C0, $FF, $C3, $FF, $E3, $FF, $60
db $FF, $70, $FF, $38, $FF, $1F, $FF, $07
db $FF, $E4, $FF, $E4, $FF, $24, $FF, $2F
db $FF, $2C, $FF, $6C, $FF, $CC, $FF, $80
db $FF, $8A, $FF, $8A, $FF, $C8, $FF, $C8
db $FF, $C8, $FF, $18, $FF, $78, $FF, $60
db $FF, $66, $FF, $66, $FF, $67, $FF, $66
db $FF, $76, $FF, $76, $FF, $0F, $FF, $00
db $FF, $18, $FF, $18, $FF, $88, $FF, $0C
db $FF, $04, $FF, $03, $FF, $C0, $FF, $00
db $FF, $0D, $FF, $0D, $FF, $19, $FF, $19
db $FF, $71, $FF, $C1, $FF, $00, $FF, $00
db $FF, $4C, $FF, $4C, $FF, $8C, $FF, $8C
db $FF, $9F, $FF, $00, $FF, $00, $FF, $00
db $FF, $26, $FF, $2C, $FF, $30, $FF, $28
db $FF, $2C, $FF, $67, $FF, $E3, $FF, $C0
db $80, $FF, $0F, $FF, $7F, $FF, $7F, $FF
db $7F, $FF, $73, $FF, $3E, $FF, $0C, $FC
db $00, $FF, $FE, $FF, $FF, $FF, $FF, $FF
db $FF, $FF, $9F, $E0, $04, $00, $53, $E0
db $00, $FF, $1F, $FF, $7F, $FF, $EF, $F0
db $C0, $00, $03, $00, $0F, $01, $FF, $01
db $00, $FF, $FF, $FF, $F4, $F8, $83, $00
db $38, $07, $E7, $1F, $1B, $FC, $E8, $F0
db $FF, $FF, $83, $C1, $1F, $0F, $B0, $7F
db $DF, $E0, $7B, $80, $01, $00, $01, $00
db $F8, $F9, $F3, $F0, $F1, $F8, $F8, $FC
db $F1, $E0, $E7, $E0, $EF, $E0, $E7, $E0
db $F8, $F0, $7E, $FE, $B9, $78, $DB, $38
db $DA, $39, $F5, $33, $AA, $67, $DD, $3E
db $E2, $1F, $8E, $7C, $14, $F8, $E8, $F0
db $A0, $C0, $40, $80, $80, $00, $00, $00
db $97, $8F, $05, $83, $30, $00, $FE, $00
db $FF, $00, $9F, $00, $8F, $00, $01, $00
db $F4, $F8, $D0, $E0, $47, $C0, $5F, $40
db $1D, $40, $A9, $00, $E0, $00, $80, $00
db $01, $00, $8F, $00, $9E, $00, $FC, $01
db $FD, $01, $31, $01, $05, $83, $97, $8F
db $80, $00, $E0, $00, $E9, $00, $7D, $00
db $7F, $00, $87, $00, $D0, $E0, $F4, $F8
db $8E, $80, $9C, $80, $DC, $80, $8C, $C0
db $EE, $C0, $CE, $E0, $EE, $E0, $E7, $E0
db $71, $01, $39, $01, $3B, $01, $31, $03
db $77, $03, $73, $07, $77, $07, $E7, $07
db $C3, $F0, $E7, $C0, $F7, $E0, $8F, $C0
db $DC, $80, $98, $80, $DC, $80, $CF, $E0
db $C3, $0F, $E7, $03, $EF, $07, $F1, $03
db $3B, $01, $19, $01, $3B, $01, $F3, $07
db $0F, $00, $0F, $00, $3F, $00, $7F, $00
db $7F, $00, $7F, $00, $1F, $00, $0F, $00
db $F0, $00, $F0, $00, $FC, $00, $FE, $00
db $FE, $00, $FE, $00, $F8, $00, $F0, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $1C, $00, $3E, $00, $FF, $00, $FF, $00
db $FF, $00, $FF, $00, $3E, $00, $1C, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $FF, $FF, $57, $8F, $0F, $07, $E7, $07
db $F3, $07, $F7, $03, $F3, $03, $E3, $03
db $E9, $F0, $E3, $C0, $EF, $C0, $E7, $C0
db $D0, $E0, $FA, $FC, $FF, $FF, $FE, $FF
db $7D, $01, $79, $01, $FB, $01, $F9, $03
db $F1, $03, $67, $03, $0B, $87, $17, $8F
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $DF, $FF, $FB, $FF, $FE, $FF, $DE, $FF
db $FF, $FF, $FF, $FF, $FF, $FF, $7B, $FF
db $7F, $FF, $7F, $FF, $7F, $FF, $3F, $FF
db $00, $00, $71, $71, $8A, $8A, $82, $82
db $73, $73, $0A, $0A, $8A, $8A, $72, $72
db $00, $00, $C8, $C8, $28, $28, $28, $28
db $E8, $E8, $25, $25, $25, $25, $22, $22
db $00, $00, $BE, $BE, $A0, $A0, $A0, $A0
db $BC, $BC, $20, $20, $20, $20, $3E, $3E
db $03, $03, $04, $04, $04, $04, $03, $03
db $06, $06, $09, $09, $08, $08, $07, $07
db $00, $00, $80, $80, $80, $80, $00, $00
db $60, $60, $80, $80, $C0, $C0, $20, $20
db $00, $FF, $3B, $FF, $7F, $FF, $7F, $FF
db $6F, $FF, $7F, $FF, $7D, $FF, $3F, $FF
db $00, $FF, $FE, $FF, $EF, $FF, $FF, $FF
db $FF, $FF, $FF, $FF, $F6, $FF, $FC, $FF
db $00, $00, $71, $71, $8A, $8A, $8A, $8A
db $82, $82, $8A, $8A, $8A, $8A, $71, $71
db $00, $00, $C8, $C8, $28, $28, $2C, $2C
db $2A, $2A, $29, $29, $28, $28, $C8, $C8
db $00, $00, $BE, $BE, $88, $88, $88, $88
db $88, $88, $88, $88, $88, $88, $88, $88
db $00, $00, $E8, $E8, $48, $48, $4C, $4C
db $4A, $4A, $49, $49, $48, $48, $E8, $E8
db $00, $00, $A2, $A2, $A2, $A2, $A2, $A2
db $A2, $A2, $A2, $A2, $A2, $A2, $9C, $9C
db $00, $00, $F8, $F8, $80, $80, $80, $80
db $F0, $F0, $80, $80, $80, $80, $F8, $F8
db $00, $00, $72, $72, $8A, $8A, $8A, $8A
db $8A, $8A, $AA, $AA, $92, $92, $69, $69
db $00, $00, $2E, $2E, $24, $24, $24, $24
db $24, $24, $24, $24, $24, $24, $CE, $CE
db $00, $00, $F8, $F8, $20, $20, $20, $20
db $20, $20, $20, $20, $20, $20, $20, $20
db $00, $00, $F3, $F3, $8A, $8A, $8A, $8A
db $F3, $F3, $8A, $8A, $8A, $8A, $8B, $8B
db $00, $00, $EF, $EF, $02, $02, $02, $02
db $C2, $C2, $02, $02, $02, $02, $E2, $E2
db $00, $00, $A2, $A2, $22, $22, $22, $22
db $22, $22, $22, $22, $22, $22, $1C, $1C
db $00, $00, $F2, $F2, $8A, $8A, $8B, $8B
db $F2, $F2, $8A, $8A, $8A, $8A, $8A, $8A
db $00, $00, $20, $20, $20, $20, $20, $20
db $A0, $A0, $60, $60, $20, $20, $20, $20
db $00, $00, $08, $00, $0C, $00, $FE, $00
db $FF, $00, $FE, $00, $0C, $00, $08, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $F9, $F9, $22, $22, $22, $22
db $22, $22, $22, $22, $22, $22, $21, $21
db $00, $00, $C0, $C0, $20, $20, $20, $20
db $20, $20, $20, $20, $20, $20, $C0, $C0
db $00, $00, $38, $38, $45, $45, $41, $41
db $5D, $5D, $45, $45, $45, $45, $39, $39
db $00, $00, $E4, $E4, $16, $16, $15, $15
db $F4, $F4, $14, $14, $14, $14, $14, $14
db $00, $00, $5F, $5F, $D0, $D0, $50, $50
db $5E, $5E, $50, $50, $50, $50, $5F, $5F
db $00, $00, $34, $34, $44, $44, $84, $84
db $84, $84, $85, $85, $46, $46, $34, $34
db $00, $00, $5D, $5D, $48, $48, $48, $48
db $48, $48, $48, $48, $C8, $C8, $5C, $5C
db $00, $00, $F4, $F4, $44, $44, $44, $44
db $47, $47, $44, $44, $44, $44, $44, $44
db $00, $00, $4E, $4E, $51, $51, $51, $51
db $D1, $D1, $51, $51, $51, $51, $4E, $4E
db $00, $00, $45, $45, $44, $44, $44, $44
db $44, $44, $44, $44, $44, $44, $38, $38
db $00, $00, $F0, $F0, $40, $40, $40, $40
db $40, $40, $40, $40, $40, $40, $40, $40
db $00, $00, $BA, $BA, $92, $92, $93, $93
db $92, $92, $12, $12, $12, $12, $3A, $3A
db $00, $00, $27, $27, $28, $28, $28, $28
db $AB, $AB, $68, $68, $28, $28, $27, $27
db $00, $00, $30, $30, $88, $88, $04, $04
db $84, $84, $84, $84, $88, $88, $30, $30
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $01, $00, $01, $00, $01, $00, $02
db $00, $02, $00, $02, $01, $05, $01, $05
db $00, $FF, $00, $00, $7F, $7F, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $FC, $FF, $F8
db $00, $FF, $00, $00, $FF, $FF, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $00, $FF, $00
db $00, $FF, $00, $00, $FF, $FF, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $3D, $3D, $39
db $00, $FF, $01, $00, $FF, $FC, $FF, $F8
db $FE, $F8, $FE, $F0, $FC, $F0, $FC, $E0
db $80, $00, $80, $7E, $3E, $7F, $2A, $7F
db $08, $7F, $08, $1C, $08, $1C, $08, $1C
db $00, $00, $00, $CD, $CD, $FF, $48, $FF
db $48, $FF, $78, $FF, $48, $FF, $48, $FF
db $00, $00, $00, $F3, $F1, $FB, $90, $F9
db $80, $F1, $E0, $F1, $80, $F1, $90, $F9
db $00, $00, $00, $EF, $C7, $EF, $82, $E7
db $82, $C7, $83, $C7, $82, $F7, $92, $FF
db $00, $00, $00, $CE, $CE, $FF, $53, $FF
db $10, $FF, $93, $FF, $11, $FF, $51, $FF
db $00, $00, $00, $7D, $7D, $FF, $24, $FF
db $20, $FD, $38, $FD, $20, $FD, $24, $FF
db $00, $00, $00, $9B, $9B, $FF, $91, $FB
db $D1, $FB, $D1, $FB, $B1, $FB, $91, $FB
db $00, $00, $00, $C1, $C1, $E3, $22, $F7
db $22, $F7, $22, $F7, $22, $F7, $22, $F7
db $00, $00, $00, $CF, $CF, $FF, $24, $FF
db $24, $7F, $27, $7F, $24, $7F, $24, $FE
db $00, $00, $00, $80, $80, $C0, $80, $C0
db $00, $80, $00, $80, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $01, $05, $03, $0B, $03, $0B, $03, $0B
db $07, $17, $07, $16, $07, $14, $0F, $38
db $FE, $F0, $FC, $E0, $F8, $C0, $F0, $80
db $E0, $00, $C0, $00, $80, $00, $00, $00
db $00, $01, $00, $03, $00, $02, $00, $06
db $01, $05, $01, $0D, $03, $0B, $03, $1B
db $7F, $79, $7B, $73, $FB, $E3, $F7, $E7
db $F7, $C7, $E7, $C7, $EF, $8F, $CF, $8E
db $F8, $E0, $E0, $CF, $C0, $C0, $FF, $9F
db $FF, $8F, $FF, $07, $DF, $03, $CD, $01
db $1C, $3F, $00, $FF, $00, $00, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $F0, $FF, $F0
db $CD, $FF, $00, $FF, $00, $00, $FF, $FC
db $FF, $FC, $FF, $FC, $FF, $3C, $FF, $3C
db $F1, $FB, $00, $FF, $00, $00, $FF, $FF
db $FF, $7F, $FF, $3F, $DF, $1F, $5F, $1F
db $F7, $FF, $00, $FF, $00, $04, $FC, $E0
db $F8, $C0, $F0, $80, $E0, $00, $C0, $00
db $CE, $FF, $00, $FF, $C0, $00, $FF, $1F
db $7F, $0F, $3F, $07, $1B, $03, $0B, $03
db $7D, $FF, $00, $FF, $07, $00, $FF, $F8
db $FF, $FE, $FF, $FF, $FF, $FF, $FF, $E3
db $9B, $FF, $00, $9B, $00, $00, $C0, $00
db $E0, $00, $F0, $80, $F8, $C0, $F8, $E0
db $C1, $E3, $00, $FF, $C0, $00, $FF, $1F
db $7F, $0F, $37, $07, $17, $07, $07, $17
db $CE, $FF, $00, $FF, $70, $00, $F0, $C0
db $F0, $C0, $F8, $C0, $F8, $E0, $F8, $E0
db $00, $00, $00, $00, $00, $00, $FA, $FA
db $23, $23, $22, $22, $22, $22, $22, $22
db $00, $00, $00, $00, $00, $00, $08, $08
db $18, $18, $A8, $A8, $48, $48, $08, $08
db $0E, $20, $0C, $20, $38, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $01
db $07, $17, $07, $37, $0F, $2E, $0F, $6E
db $1F, $5E, $1F, $DE, $3F, $BF, $3F, $BD
db $CF, $0E, $9F, $1C, $9F, $1C, $3F, $38
db $7E, $78, $FE, $F0, $FC, $F0, $FC, $E0
db $81, $05, $81, $05, $01, $05, $01, $05
db $01, $05, $01, $05, $01, $05, $01, $05
db $FC, $F0, $FC, $F0, $FC, $F0, $FC, $F1
db $FC, $F1, $FC, $F2, $FD, $F3, $F1, $FD
db $FF, $1C, $7F, $1C, $7F, $0C, $7F, $8C
db $7F, $04, $FF, $84, $FF, $80, $EF, $80
db $1F, $5F, $1F, $5F, $1F, $5F, $1F, $5F
db $1F, $5F, $1F, $5F, $1F, $5F, $1F, $5F
db $C0, $00, $C0, $00, $C0, $00, $C0, $00
db $C0, $00, $C0, $00, $C0, $00, $C0, $00
db $03, $0B, $03, $0B, $03, $0B, $03, $0B
db $03, $0B, $03, $0B, $03, $0B, $03, $0B
db $FF, $E1, $FF, $E0, $FB, $E0, $F9, $E0
db $F8, $E0, $F8, $E1, $F8, $E1, $F8, $E1
db $FC, $F0, $FC, $F0, $FE, $F8, $FE, $78
db $FE, $78, $FF, $7C, $7F, $7C, $7F, $7C
db $07, $17, $07, $17, $07, $17, $0F, $2F
db $0F, $2F, $0E, $2C, $0E, $2C, $1E, $5C
db $F8, $E0, $FC, $E0, $FC, $F0, $FC, $F0
db $FC, $F0, $FE, $F0, $FE, $F8, $FE, $F8
db $22, $22, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $08, $08, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $01, $00, $03, $00, $02, $00, $06
db $01, $05, $01, $0D, $03, $0B, $03, $1B
db $7D, $79, $7D, $71, $F9, $E1, $F9, $C7
db $C3, $CF, $C7, $CF, $CF, $DF, $DF, $DE
db $F8, $E0, $F8, $C0, $F0, $C0, $F0, $80
db $E0, $80, $E0, $00, $C0, $00, $C0, $00
db $01, $05, $01, $05, $01, $05, $01, $05
db $01, $05, $01, $05, $01, $05, $01, $05
db $F3, $F3, $FF, $FF, $FF, $FF, $FF, $FF
db $FF, $F3, $FF, $F1, $FF, $F1, $FF, $F0
db $E0, $80, $E0, $80, $E0, $80, $E0, $80
db $E1, $8E, $E7, $88, $E7, $94, $E7, $94
db $1F, $5F, $1F, $5F, $1F, $5F, $1F, $5F
db $1F, $5F, $1F, $5F, $1F, $5F, $1F, $5F
db $C0, $00, $C0, $00, $C0, $00, $C0, $00
db $C0, $01, $C0, $01, $C0, $02, $C0, $02
db $03, $0B, $03, $0B, $03, $0B, $03, $0B
db $23, $CB, $E3, $0B, $E3, $8B, $E3, $8B
db $F8, $E1, $F8, $E1, $F8, $E1, $F8, $E1
db $F8, $E1, $F8, $E1, $F8, $E1, $F8, $E1
db $7F, $7C, $7F, $7C, $7F, $7C, $7F, $7C
db $7F, $7C, $7F, $7C, $7F, $7C, $7F, $7C
db $1E, $5C, $1E, $58, $9F, $58, $3F, $B8
db $3F, $B8, $3C, $B3, $30, $B0, $7F, $7F
db $FE, $F8, $FF, $F8, $7F, $7C, $7F, $7C
db $7F, $7C, $7F, $7C, $3F, $3E, $FF, $FE
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $80, $00, $80, $00, $80, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $01
db $07, $17, $07, $37, $0F, $2F, $0F, $6E
db $1F, $5C, $1E, $D8, $3E, $B8, $3C, $B8
db $FF, $FE, $FF, $FC, $7F, $7C, $7F, $78
db $7E, $78, $7E, $70, $7C, $70, $FC, $E0
db $80, $00, $80, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $01, $05, $01, $05, $01, $05, $01, $05
db $01, $05, $01, $05, $01, $05, $01, $05
db $FD, $F0, $FD, $F0, $FC, $F0, $FC, $F0
db $FC, $F0, $FC, $F0, $FC, $F0, $FC, $F0
db $EF, $14, $CF, $2C, $0F, $2C, $1F, $2C
db $1F, $5C, $1F, $5C, $3F, $5C, $3F, $BC
db $1F, $5F, $1F, $5F, $1F, $5F, $1F, $5F
db $1F, $5F, $1F, $5F, $1F, $5F, $1F, $5F
db $C1, $02, $C1, $05, $C1, $05, $C3, $05
db $C3, $0B, $C3, $0B, $C7, $0B, $C7, $17
db $E3, $8B, $E3, $8B, $E3, $8B, $E3, $8B
db $E3, $8B, $E3, $8B, $E3, $8B, $E3, $8B
db $F8, $E1, $F8, $E1, $F8, $E1, $F8, $E1
db $F8, $E1, $F8, $E2, $F9, $E3, $FB, $E5
db $7E, $7D, $7E, $7D, $7E, $7C, $FE, $78
db $FE, $78, $FC, $FA, $FC, $F0, $FD, $F1
db $7F, $7F, $7F, $7F, $7F, $60, $FF, $E0
db $F8, $E0, $F8, $C0, $F0, $C0, $F0, $C0
db $FF, $FE, $FF, $FE, $DF, $1F, $DF, $1F
db $5F, $1F, $5F, $1F, $6F, $0F, $2F, $0F
db $80, $00, $C0, $00, $C0, $00, $C0, $00
db $C0, $00, $E0, $00, $E0, $80, $E0, $80
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $01, $00, $03, $00, $02, $00, $06
db $01, $05, $01, $0D, $03, $0B, $03, $1B
db $7C, $70, $79, $71, $FB, $E3, $F3, $E3
db $F7, $E7, $E7, $C7, $EF, $CF, $DF, $DE
db $F8, $E0, $F8, $C0, $F0, $C0, $F0, $80
db $E0, $80, $E0, $00, $C0, $00, $C0, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $01, $00, $03, $00, $06
db $01, $0D, $03, $1B, $07, $37, $0F, $6F
db $1F, $DF, $3F, $B8, $7F, $78, $FE, $F1
db $F8, $F7, $F0, $F0, $FF, $FF, $FF, $FF
db $FF, $FF, $FF, $00, $FF, $00, $00, $09
db $3F, $BC, $7F, $3C, $FE, $FD, $FC, $FD
db $FC, $FC, $FF, $00, $FF, $00, $00, $12
db $1F, $5F, $1F, $DF, $3F, $BF, $7F, $7F
db $FF, $FF, $FF, $00, $FF, $00, $00, $2C
db $87, $77, $0F, $07, $FF, $FF, $FF, $FF
db $FF, $FF, $FF, $00, $FF, $00, $00, $E0
db $E3, $8B, $F3, $8B, $E7, $97, $CF, $AF
db $DF, $9F, $FF, $00, $FF, $00, $00, $11
db $E7, $EB, $FF, $FF, $FF, $FF, $FF, $FE
db $FF, $F8, $FF, $00, $FC, $00, $00, $24
db $FD, $E1, $F9, $C5, $F3, $8B, $E7, $07
db $EF, $0F, $BF, $00, $3F, $00, $00, $44
db $F0, $C0, $F8, $C0, $FC, $E0, $FF, $F0
db $FF, $F8, $FF, $00, $FF, $00, $00, $5F
db $2F, $0F, $0F, $6F, $1F, $DF, $3F, $BF
db $7F, $7F, $FF, $00, $FF, $00, $00, $44
db $E0, $80, $F0, $80, $F8, $C0, $FC, $E0
db $FE, $F0, $FE, $00, $FE, $00, $00, $91
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $38
db $07, $17, $07, $37, $0F, $2F, $0F, $6F
db $1F, $5F, $1F, $DF, $3F, $80, $FF, $00
db $DF, $9E, $BE, $BE, $FF, $FF, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $00, $FF, $00
db $00, $7F, $00, $00, $FF, $FF, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $00, $FF, $00
db $01, $FD, $03, $03, $FF, $FF, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $00, $FF, $00
db $FD, $F3, $FD, $F3, $FD, $E3, $F9, $E3
db $F9, $E3, $F9, $C3, $F1, $03, $F0, $03
db $09, $9F, $09, $9F, $09, $9F, $09, $9F
db $09, $9F, $09, $FF, $E9, $FF, $00, $E9
db $12, $BF, $12, $BF, $92, $FF, $53, $FF
db $32, $FF, $12, $BF, $12, $BF, $00, $12
db $2C, $7F, $49, $FF, $81, $CB, $00, $81
db $80, $C1, $41, $E3, $20, $71, $00, $30
db $E0, $F0, $10, $F8, $00, $F0, $E0, $F0
db $10, $F8, $10, $F8, $E0, $F0, $00, $E0
db $11, $3B, $29, $7F, $29, $7F, $45, $FF
db $7D, $FF, $45, $FF, $44, $EF, $00, $6C
db $24, $FE, $24, $FF, $24, $FF, $25, $FF
db $25, $FF, $25, $FF, $D9, $FF, $00, $D9
db $44, $EE, $A4, $FF, $A5, $FF, $16, $FF
db $F5, $FF, $14, $FF, $14, $BE, $00, $14
db $5F, $FF, $90, $FF, $10, $BF, $1E, $3F
db $10, $BF, $90, $FF, $5F, $FF, $00, $5F
db $44, $EF, $44, $EF, $64, $FF, $54, $FF
db $4C, $FF, $44, $EF, $44, $EF, $00, $44
db $91, $FB, $91, $FB, $99, $FF, $95, $FF
db $93, $FF, $91, $FB, $91, $FB, $00, $91
db $38, $FC, $44, $FE, $40, $FC, $5C, $FE
db $44, $FE, $44, $FE, $38, $FC, $00, $38
db $FD, $FD, $F9, $F9, $F5, $F5, $ED, $ED
db $C1, $C1, $BD, $BD, $7D, $7D, $FF, $FF
db $C3, $C3, $DD, $DD, $DD, $DD, $83, $83
db $BB, $BB, $7B, $7B, $07, $07, $FF, $FF
db $E3, $E3, $DD, $DD, $BF, $BF, $BF, $BF
db $7F, $7F, $7B, $7B, $87, $87, $FF, $FF
db $C3, $C3, $DD, $DD, $DD, $DD, $BD, $BD
db $BD, $BD, $7B, $7B, $07, $07, $FF, $FF
db $C1, $C1, $DF, $DF, $DF, $DF, $83, $83
db $BF, $BF, $7F, $7F, $03, $03, $FF, $FF
db $C1, $C1, $DF, $DF, $DF, $DF, $83, $83
db $BF, $BF, $7F, $7F, $7F, $7F, $FF, $FF
db $E3, $E3, $DD, $DD, $BF, $BF, $BF, $BF
db $71, $71, $7B, $7B, $87, $87, $FF, $FF
db $DD, $DD, $DD, $DD, $BB, $BB, $83, $83
db $BB, $BB, $77, $77, $77, $77, $FF, $FF
db $E3, $E3, $F7, $F7, $EF, $EF, $EF, $EF
db $DF, $DF, $DF, $DF, $8F, $8F, $FF, $FF
db $FD, $FD, $FD, $FD, $FB, $FB, $FB, $FB
db $77, $77, $77, $77, $8F, $8F, $FF, $FF
db $DB, $DB, $D7, $D7, $CF, $CF, $9F, $9F
db $9F, $9F, $6F, $6F, $77, $77, $FF, $FF
db $DF, $DF, $DF, $DF, $BF, $BF, $BF, $BF
db $BF, $BF, $7F, $7F, $07, $07, $FF, $FF
db $ED, $ED, $C9, $C9, $C5, $C5, $AD, $AD
db $BB, $BB, $7B, $7B, $7B, $7B, $FF, $FF
db $DD, $DD, $DD, $DD, $8D, $8D, $AB, $AB
db $B3, $B3, $7B, $7B, $7B, $7B, $FF, $FF
db $C3, $C3, $BD, $BD, $BD, $BD, $7D, $7D
db $7B, $7B, $7B, $7B, $87, $87, $FF, $FF
db $C3, $C3, $DD, $DD, $BD, $BD, $83, $83
db $BF, $BF, $7F, $7F, $7F, $7F, $FF, $FF
db $C3, $C3, $BD, $BD, $BD, $BD, $7D, $7D
db $63, $63, $7B, $7B, $85, $85, $FF, $FF
db $C3, $C3, $DD, $DD, $BD, $BD, $83, $83
db $B7, $B7, $77, $77, $77, $77, $FF, $FF
db $C3, $C3, $BD, $BD, $BF, $BF, $C7, $C7
db $FB, $FB, $7B, $7B, $87, $87, $FF, $FF
db $81, $81, $EF, $EF, $EF, $EF, $DF, $DF
db $DF, $DF, $BF, $BF, $BF, $BF, $FF, $FF
db $DD, $DD, $DD, $DD, $BB, $BB, $BB, $BB
db $77, $77, $77, $77, $8F, $8F, $FF, $FF
db $7D, $7D, $7B, $7B, $77, $77, $6F, $6F
db $5F, $5F, $3F, $3F, $7F, $7F, $FF, $FF
db $BD, $BD, $BD, $BD, $BB, $BB, $6B, $6B
db $4B, $4B, $27, $27, $77, $77, $FF, $FF
db $DD, $DD, $DB, $DB, $E7, $E7, $EF, $EF
db $CF, $CF, $B7, $B7, $77, $77, $FF, $FF
db $BD, $BD, $B3, $B3, $CF, $CF, $DF, $DF
db $DF, $DF, $BF, $BF, $BF, $BF, $FF, $FF
db $81, $81, $FB, $FB, $F7, $F7, $EF, $EF
db $DF, $DF, $BF, $BF, $03, $03, $FF, $FF
db $FF, $FF, $FF, $FF, $E7, $E7, $DB, $DB
db $BB, $BB, $B7, $B7, $CB, $CB, $FF, $FF
db $EF, $EF, $EF, $EF, $DF, $DF, $C7, $C7
db $DB, $DB, $BB, $BB, $87, $87, $FF, $FF
db $FF, $FF, $FF, $FF, $E7, $E7, $DF, $DF
db $BF, $BF, $BF, $BF, $C7, $C7, $FF, $FF
db $FD, $FD, $FD, $FD, $FB, $FB, $C3, $C3
db $B7, $B7, $B7, $B7, $C7, $C7, $FF, $FF
db $FF, $FF, $FF, $FF, $E7, $E7, $DB, $DB
db $83, $83, $BF, $BF, $C7, $C7, $FF, $FF
db $F9, $F9, $F7, $F7, $81, $81, $EF, $EF
db $EF, $EF, $DF, $DF, $DF, $DF, $FF, $FF
db $FF, $FF, $FF, $FF, $E7, $E7, $DB, $DB
db $DB, $DB, $E3, $E3, $B7, $B7, $8F, $8F
db $EF, $EF, $EF, $EF, $DF, $DF, $DF, $DF
db $C7, $C7, $B7, $B7, $B7, $B7, $FF, $FF
db $F3, $F3, $FF, $FF, $FF, $FF, $EF, $EF
db $EF, $EF, $DF, $DF, $DF, $DF, $FF, $FF
db $F3, $F3, $FF, $FF, $FF, $FF, $F7, $F7
db $F7, $F7, $EF, $EF, $6F, $6F, $9F, $9F
db $EF, $EF, $EF, $EF, $DB, $DB, $D7, $D7
db $CF, $CF, $B7, $B7, $BB, $BB, $FF, $FF
db $F7, $F7, $F7, $F7, $EF, $EF, $EF, $EF
db $EF, $EF, $DF, $DF, $DF, $DF, $FF, $FF
db $FF, $FF, $FF, $FF, $CB, $CB, $D5, $D5
db $D5, $D5, $AB, $AB, $AB, $AB, $FF, $FF
db $FF, $FF, $FF, $FF, $D7, $D7, $CB, $CB
db $DB, $DB, $B7, $B7, $B7, $B7, $FF, $FF
db $FF, $FF, $FF, $FF, $E7, $E7, $DB, $DB
db $BB, $BB, $B7, $B7, $CF, $CF, $FF, $FF
db $FF, $FF, $FF, $FF, $E7, $E7, $DB, $DB
db $DB, $DB, $C7, $C7, $BF, $BF, $BF, $BF
db $FF, $FF, $FF, $FF, $E7, $E7, $DB, $DB
db $BB, $BB, $C7, $C7, $F7, $F7, $EF, $EF
db $FF, $FF, $FF, $FF, $EB, $EB, $E7, $E7
db $EF, $EF, $DF, $DF, $DF, $DF, $FF, $FF
db $FF, $FF, $FF, $FF, $E7, $E7, $DB, $DB
db $EF, $EF, $B7, $B7, $CF, $CF, $FF, $FF
db $FF, $FF, $F7, $F7, $C3, $C3, $EF, $EF
db $EF, $EF, $DF, $DF, $DF, $DF, $FF, $FF
db $FF, $FF, $FF, $FF, $DB, $DB, $DB, $DB
db $B7, $B7, $B7, $B7, $CB, $CB, $FF, $FF
db $FF, $FF, $FF, $FF, $BB, $BB, $B7, $B7
db $AF, $AF, $9F, $9F, $BF, $BF, $FF, $FF
db $FF, $FF, $FF, $FF, $D5, $D5, $D5, $D5
db $AB, $AB, $AB, $AB, $D7, $D7, $FF, $FF
db $FF, $FF, $FF, $FF, $DB, $DB, $E7, $E7
db $EF, $EF, $D7, $D7, $B7, $B7, $FF, $FF
db $FF, $FF, $FF, $FF, $DD, $DD, $EB, $EB
db $E7, $E7, $EF, $EF, $DF, $DF, $BF, $BF
db $87, $87, $CF, $CF, $CF, $CF, $CE, $CE
db $CF, $CF, $CD, $CD, $81, $81, $FF, $FF
db $EF, $EF, $C7, $C7, $83, $83, $01, $01
db $C7, $C7, $C7, $C7, $C7, $C7, $FF, $FF
db $C7, $C7, $C7, $C7, $C7, $C7, $01, $01
db $83, $83, $C7, $C7, $EF, $EF, $FF, $FF
db $F7, $F7, $E7, $E7, $C0, $C0, $80, $80
db $C0, $C0, $E7, $E7, $F7, $F7, $FF, $FF
db $F7, $F7, $F3, $F3, $81, $81, $80, $80
db $81, $81, $F3, $F3, $F7, $F7, $FF, $FF
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $FF, $FF, $CF, $CF, $CF, $CF, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $FF, $FF, $9F, $9F, $DF, $DF, $BF, $BF
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $FF, $FF, $3F, $3F, $3F, $3F, $FF, $FF
db $C3, $C3, $99, $99, $F9, $F9, $E3, $E3
db $CF, $CF, $FF, $FF, $9F, $9F, $FF, $FF
db $E7, $E7, $E7, $E7, $E7, $E7, $EF, $EF
db $EF, $EF, $FF, $FF, $CF, $CF, $FF, $FF
db $FF, $FF, $FF, $FF, $C3, $C3, $F7, $F7
db $EF, $EF, $DF, $DF, $87, $87, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $07, $07, $FF, $FF, $FF, $FF, $FF, $FF
db $9F, $9F, $DF, $DF, $BF, $BF, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $93, $93, $DB, $DB, $B7, $B7, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $FF, $FF, $CF, $CF, $CF, $CF, $FF, $FF
db $FF, $FF, $9F, $9F, $9F, $9F, $FF, $FF
db $FF, $FF, $CF, $CF, $CF, $CF, $FF, $FF
db $FF, $FF, $9F, $9F, $DF, $DF, $BF, $BF
db $EF, $EF, $D7, $D7, $D7, $D7, $CF, $CF
db $99, $99, $67, $67, $73, $73, $8D, $8D
db $F3, $F3, $EF, $EF, $DF, $DF, $DF, $DF
db $DF, $DF, $DF, $DF, $EF, $EF, $F3, $F3
db $9F, $9F, $EF, $EF, $F7, $F7, $F7, $F7
db $F7, $F7, $F7, $F7, $EF, $EF, $9F, $9F
db $EF, $EF, $F7, $F7, $FF, $FF, $E7, $E7
db $DB, $DB, $BB, $BB, $B7, $B7, $CB, $CB
db $E7, $E7, $DB, $DB, $FF, $FF, $E7, $E7
db $DB, $DB, $BB, $BB, $B7, $B7, $CB, $CB
db $DB, $DB, $FF, $FF, $FF, $FF, $E7, $E7
db $DB, $DB, $BB, $BB, $B7, $B7, $CB, $CB
db $EF, $EF, $F7, $F7, $FF, $FF, $E7, $E7
db $DB, $DB, $83, $83, $BF, $BF, $C7, $C7
db $FB, $FB, $F7, $F7, $FF, $FF, $E7, $E7
db $DB, $DB, $83, $83, $BF, $BF, $C7, $C7
db $E7, $E7, $DB, $DB, $FF, $FF, $E7, $E7
db $DB, $DB, $83, $83, $BF, $BF, $C7, $C7
db $EF, $EF, $F7, $F7, $FF, $FF, $DB, $DB
db $DB, $DB, $B7, $B7, $B7, $B7, $CB, $CB
db $E7, $E7, $DB, $DB, $FF, $FF, $DB, $DB
db $DB, $DB, $B7, $B7, $B7, $B7, $CB, $CB
db $DB, $DB, $FF, $FF, $FF, $FF, $DB, $DB
db $DB, $DB, $B7, $B7, $B7, $B7, $CB, $CB
db $E7, $E7, $DB, $DB, $FF, $FF, $E7, $E7
db $DB, $DB, $BB, $BB, $B7, $B7, $CF, $CF
db $DB, $DB, $FF, $FF, $FF, $FF, $E7, $E7
db $DB, $DB, $BB, $BB, $B7, $B7, $CF, $CF
db $FF, $FF, $E7, $E7, $DB, $DB, $BF, $BF
db $BB, $BB, $C7, $C7, $FF, $FF, $87, $87
db $E7, $E7, $DB, $DB, $FF, $FF, $EF, $EF
db $EF, $EF, $DF, $DF, $DF, $DF, $FF, $FF
db $FF, $FF, $E7, $E7, $DB, $DB, $D7, $D7
db $BB, $BB, $BB, $BB, $47, $47, $7F, $7F
db $F6, $F6, $FF, $FF, $F9, $F9, $F5, $F5
db $ED, $ED, $C1, $C1, $BD, $BD, $7D, $7D
db $ED, $ED, $FF, $FF, $C3, $C3, $BD, $BD
db $BD, $BD, $7B, $7B, $7B, $7B, $87, $87
db $ED, $ED, $FF, $FF, $BB, $BB, $BB, $BB
db $BB, $BB, $77, $77, $77, $77, $8F, $8F
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $C3, $C3, $99, $99, $99, $99, $99, $99
db $99, $99, $99, $99, $C3, $C3, $FF, $FF
db $E7, $E7, $C7, $C7, $E7, $E7, $E7, $E7
db $E7, $E7, $E7, $E7, $E7, $E7, $FF, $FF
db $C3, $C3, $99, $99, $F9, $F9, $E3, $E3
db $CF, $CF, $9F, $9F, $81, $81, $FF, $FF
db $C3, $C3, $99, $99, $F9, $F9, $E3, $E3
db $F9, $F9, $99, $99, $C3, $C3, $FF, $FF
db $F3, $F3, $E3, $E3, $C3, $C3, $93, $93
db $93, $93, $81, $81, $F3, $F3, $FF, $FF
db $81, $81, $9F, $9F, $9F, $9F, $83, $83
db $F9, $F9, $F9, $F9, $83, $83, $FF, $FF
db $C3, $C3, $99, $99, $9F, $9F, $83, $83
db $99, $99, $99, $99, $C3, $C3, $FF, $FF
db $81, $81, $F9, $F9, $F3, $F3, $E7, $E7
db $E7, $E7, $E7, $E7, $E7, $E7, $FF, $FF
db $C3, $C3, $99, $99, $99, $99, $C3, $C3
db $99, $99, $99, $99, $C3, $C3, $FF, $FF
db $C3, $C3, $99, $99, $99, $99, $C1, $C1
db $F9, $F9, $99, $99, $C3, $C3, $FF, $FF
db $EB, $EB, $EB, $EB, $FF, $FF, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $FF, $00, $FF, $00, $FF, $00, $FF, $00
db $FF, $00, $FF, $00, $FF, $00, $FF, $00
db $00, $FF, $00, $FF, $00, $FF, $00, $FF
db $00, $FF, $00, $FF, $00, $FF, $00, $FF
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $C3, $C3, $99, $99, $99, $99, $99, $99
db $81, $81, $99, $99, $99, $99, $FF, $FF
db $03, $03, $99, $99, $99, $99, $83, $83
db $99, $99, $99, $99, $03, $03, $FF, $FF
db $FF, $FF, $81, $81, $9F, $9F, $9F, $9F
db $9F, $9F, $9F, $9F, $81, $81, $FF, $FF
db $FF, $FF, $83, $83, $99, $99, $99, $99
db $99, $99, $99, $99, $83, $83, $FF, $FF
db $FF, $FF, $81, $81, $9F, $9F, $83, $83
db $9F, $9F, $9F, $9F, $81, $81, $FF, $FF
db $FF, $FF, $81, $81, $9F, $9F, $83, $83
db $9F, $9F, $9F, $9F, $9F, $9F, $FF, $FF
db $C7, $C7, $C7, $C7, $11, $01, $29, $11
db $11, $01, $01, $C7, $C7, $C7, $C7, $FF
db $FF, $FF, $00, $00, $00, $81, $00, $42
db $00, $3C, $00, $18, $00, $00, $FF, $FF
db $CF, $CF, $6F, $27, $FF, $07, $FF, $27
db $F3, $CD, $C3, $CD, $E1, $E1, $DF, $C3
db $C3, $C3, $FF, $C7, $24, $3C, $4E, $28
db $5E, $38, $7C, $64, $DB, $C3, $C3, $C3
db $9F, $9F, $93, $93, $D1, $FD, $C0, $C6
db $C3, $C3, $C3, $E3, $87, $87, $8F, $8F
db $FF, $FF, $BD, $BD, $DB, $DB, $E7, $E7
db $E7, $E7, $DB, $DB, $BD, $BD, $FF, $FF
db $C3, $C3, $81, $81, $6C, $6C, $44, $44
db $81, $00, $87, $B3, $87, $87, $B7, $B7
db $CF, $83, $FF, $01, $FF, $74, $FB, $FA
db $53, $52, $53, $52, $87, $87, $FF, $FF
db $E7, $83, $FF, $21, $FF, $60, $DF, $DC
db $AB, $AB, $AB, $AA, $C7, $44, $FF, $3C
db $C7, $83, $FF, $11, $FF, $7C, $AB, $AB
db $A8, $A8, $4C, $44, $7D, $7D, $83, $83
db $FF, $FF, $FC, $FC, $18, $18, $0A, $24
db $40, $28, $1C, $1C, $3F, $3F, $FF, $FF
db $C3, $C3, $BD, $81, $BD, $81, $81, $C3
db $81, $FF, $99, $E7, $C3, $BD, $E7, $C3
db $FC, $FC, $BC, $BE, $CA, $85, $01, $7A
db $81, $04, $80, $F9, $03, $01, $87, $83
db $EC, $E4, $E9, $E0, $E3, $E1, $E7, $E3
db $CF, $C7, $9F, $8F, $3F, $1F, $7F, $3F
db $F8, $F8, $FD, $FD, $FF, $C1, $87, $81
db $13, $11, $45, $45, $11, $11, $83, $83
db $FF, $24, $FF, $81, $FF, $E7, $E7, $DB
db $C3, $81, $FF, $81, $C3, $81, $FF, $C3
db $FE, $FE, $FE, $FE, $FD, $FD, $FD, $FD
db $F3, $F3, $1B, $0B, $0F, $07, $FF, $8F
db $F9, $F9, $FB, $FB, $FB, $7B, $7B, $7B
db $3B, $3B, $7B, $7B, $B7, $33, $CF, $87
db $F5, $E1, $DF, $DE, $FE, $BE, $BF, $BE
db $FE, $FE, $5D, $BD, $B7, $13, $5F, $BF
db $E3, $E3, $E7, $D1, $C0, $B8, $C0, $B8
db $E7, $D8, $F0, $E8, $F8, $F0, $FD, $F9
db $E1, $E1, $D2, $CC, $C0, $D2, $C0, $D2
db $D2, $CC, $81, $81, $3F, $1F, $7F, $3F
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $00, $00, $00, $00, $44, $00, $28, $00
db $10, $00, $28, $00, $44, $00, $00, $00
db $F3, $0F, $CF, $3F, $9C, $7F, $38, $FF
db $38, $F7, $3B, $F4, $3F, $F3, $7F, $F4
db $CF, $F0, $F3, $FC, $39, $FE, $1C, $FF
db $1C, $EF, $DC, $2F, $FC, $CF, $FE, $3F
db $B6, $7F, $64, $3F, $69, $3E, $58, $6F
db $4A, $7F, $6C, $7F, $D4, $6F, $85, $FE
db $6D, $FE, $26, $FC, $96, $7C, $1E, $F4
db $52, $FE, $36, $FE, $2B, $F6, $A1, $7F
db $DD, $FE, $EE, $F3, $D3, $E1, $DF, $EC
db $DF, $EC, $DE, $E1, $ED, $F3, $FF, $DF
db $FF, $0F, $D3, $31, $25, $E3, $F3, $CF
db $CE, $83, $CE, $83, $64, $9F, $E7, $1F
db $FF, $00, $FB, $07, $EC, $1F, $D0, $3F
db $E3, $3C, $A7, $78, $C7, $78, $47, $F8
db $FF, $00, $DF, $E0, $37, $F8, $0B, $FC
db $C7, $3C, $E5, $1E, $E3, $1E, $E2, $1F
db $1E, $1E, $21, $21, $50, $43, $41, $44
db $C0, $48, $E0, $A9, $F0, $98, $F8, $98
db $78, $78, $84, $84, $12, $02, $02, $E2
db $07, $12, $0D, $0F, $09, $0F, $19, $5F
db $FC, $00, $F8, $00, $F8, $00, $F8, $00
db $C0, $00, $80, $00, $80, $00, $80, $00
db $00, $00, $00, $00, $22, $22, $14, $14
db $08, $08, $14, $14, $22, $22, $00, $00
db $00, $FF, $00, $FF, $FF, $FF, $FF, $92
db $FF, $FF, $00, $FF, $00, $FF, $00, $FF
db $07, $FF, $F9, $F8, $41, $88, $45, $88
db $54, $88, $54, $88, $15, $88, $15, $88
db $FF, $F0, $CB, $8C, $A4, $C7, $CF, $F3
db $73, $C1, $73, $C1, $26, $F9, $E7, $F8
db $BB, $7F, $77, $CF, $CB, $87, $FB, $37
db $FB, $37, $7B, $87, $B7, $CF, $FF, $FB
db $DC, $FB, $8C, $FB, $8F, $F8, $8F, $F9
db $8F, $FE, $86, $FD, $C7, $FC, $F7, $FD
db $33, $DF, $31, $DF, $F9, $1F, $F1, $9F
db $F5, $7F, $61, $BF, $E1, $3F, $EB, $BF
db $88, $FF, $B9, $FF, $DA, $CE, $DE, $8C
db $FE, $8C, $EF, $9E, $7F, $5A, $3B, $31
db $11, $FF, $9D, $FF, $DB, $73, $FB, $31
db $BF, $71, $F7, $79, $7E, $DA, $DC, $8C
db $DE, $E3, $C2, $FF, $C2, $FF, $C2, $FF
db $43, $FE, $A3, $7E, $5E, $3F, $0F, $03
db $1C, $07, $1F, $04, $65, $9E, $62, $9F
db $9E, $03, $9A, $07, $73, $8F, $FF, $FF
db $00, $FF, $07, $FF, $1C, $FF, $30, $FF
db $63, $FC, $67, $F8, $C7, $F8, $C7, $F8
db $00, $FF, $E0, $FF, $38, $FF, $0C, $FF
db $C6, $3F, $E6, $1F, $E3, $1F, $E3, $1F
db $FC, $A4, $FF, $A7, $FF, $A2, $FF, $D2
db $FF, $8A, $7F, $44, $3F, $24, $1F, $1F
db $29, $3F, $C9, $FF, $C9, $7F, $C9, $7F
db $DD, $77, $FE, $22, $FC, $2C, $F9, $F8
db $3F, $00, $1F, $00, $0F, $00, $0F, $00
db $0F, $00, $0F, $00, $03, $00, $01, $00
db $00, $00, $00, $00, $22, $22, $14, $14
db $08, $08, $14, $14, $22, $22, $00, $00
db $55, $88, $51, $88, $41, $88, $45, $88
db $54, $88, $54, $88, $15, $88, $15, $88
db $51, $88, $51, $88, $45, $88, $40, $8F
db $07, $F8, $77, $88, $77, $8F, $F8, $FF
db $38, $E0, $F8, $20, $A6, $79, $46, $F9
db $79, $C0, $59, $E0, $CE, $F1, $FF, $FF
db $7B, $C7, $43, $FF, $43, $FF, $43, $FF
db $C2, $7F, $C5, $7E, $7A, $FC, $F0, $C0
db $01, $01, $06, $07, $0B, $0C, $16, $18
db $17, $18, $23, $3F, $2F, $3C, $74, $38
db $FF, $FF, $FE, $08, $1F, $04, $0F, $07
db $F8, $0A, $F2, $F4, $D3, $34, $78, $13
db $FF, $FF, $7F, $10, $F9, $20, $F0, $E0
db $1F, $50, $4F, $2F, $CB, $2C, $1E, $C8
db $00, $00, $C0, $C0, $B0, $70, $C8, $38
db $E8, $18, $C4, $FC, $F4, $3C, $6E, $1C
db $C0, $7F, $60, $3F, $78, $3F, $D7, $4F
db $8B, $87, $FD, $83, $86, $FE, $7C, $7C
db $9F, $E0, $8F, $F0, $87, $F8, $C0, $FF
db $F8, $FF, $7F, $C7, $FF, $BB, $FE, $BB
db $F1, $0F, $E1, $1F, $C1, $3F, $03, $FF
db $1F, $FF, $FF, $E3, $FF, $DD, $7F, $DD
db $03, $FE, $06, $FC, $1E, $FC, $EF, $F2
db $D9, $E1, $DF, $E1, $E1, $7F, $7F, $3E
db $FF, $FF, $7F, $10, $F9, $20, $F0, $E0
db $1F, $50, $4F, $2F, $CB, $2C, $1E, $C8
db $FF, $FF, $FE, $08, $1F, $04, $0F, $07
db $F8, $0A, $F2, $F4, $D3, $34, $78, $13
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $FF, $87, $FF, $F8, $FF, $80, $F8, $C7
db $C7, $78, $FF, $43, $FF, $FE, $FF, $80
db $FF, $E1, $FF, $1F, $FF, $01, $79, $87
db $CF, $31, $FF, $FF, $FF, $02, $E3, $1E
db $DB, $18, $AD, $2C, $4A, $4E, $89, $8F
db $99, $9F, $BD, $A7, $7E, $42, $BD, $3C
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $48, $70, $D8, $60, $9F, $E0, $9F, $E0
db $9F, $E0, $8F, $F0, $86, $F9, $80, $FF
db $6C, $18, $D7, $3F, $AF, $70, $5C, $E0
db $58, $E0, $98, $E0, $9C, $E0, $9F, $E0
db $36, $18, $EB, $FC, $C5, $3E, $62, $1F
db $32, $0F, $31, $0F, $71, $0F, $F1, $0F
db $32, $0E, $3B, $06, $F9, $07, $F9, $07
db $F9, $07, $F1, $0F, $61, $9F, $01, $FF
db $78, $08, $71, $10, $3C, $2D, $3E, $2D
db $2C, $33, $1F, $1F, $07, $00, $00, $00
db $FC, $46, $F8, $3C, $90, $78, $7B, $F0
db $9F, $F3, $1F, $F3, $CF, $38, $17, $0F
db $3E, $62, $DF, $3C, $69, $1E, $FE, $0F
db $F9, $CF, $F8, $CF, $F3, $1C, $E8, $F0
db $3E, $10, $9E, $08, $3C, $B4, $7C, $B4
db $34, $CC, $F8, $F8, $E0, $00, $00, $00
db $36, $18, $EB, $FC, $C5, $3E, $62, $1F
db $32, $0F, $31, $0F, $71, $0F, $F1, $0F
db $6C, $18, $D7, $3F, $AF, $70, $5C, $E0
db $58, $E0, $98, $E0, $9C, $E0, $9F, $E0
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $87, $F8, $FF, $C1, $FE, $7F, $FF, $41
db $8F, $F0, $FC, $83, $FF, $FC, $FF, $C3
db $FF, $01, $FF, $F1, $EF, $1E, $FF, $F1
db $FF, $01, $73, $8F, $FF, $01, $FF, $FF
db $E7, $00, $DB, $18, $A5, $24, $4E, $4A
db $4E, $4A, $5E, $52, $BD, $3C, $C3, $00
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $E7, $18, $C3, $3C, $00, $FF, $18, $FF
db $3C, $FF, $FF, $FF, $C3, $FF, $66, $81
db $C3, $C3, $24, $E7, $DB, $3C, $E7, $18
db $FF, $00, $FF, $00, $FF, $00, $FF, $00
db $9F, $E0, $DF, $E0, $E7, $F8, $EF, $70
db $FF, $60, $DF, $60, $9F, $E0, $9F, $E0
db $F9, $07, $FB, $07, $E7, $1F, $F7, $0E
db $FF, $06, $FB, $06, $F9, $07, $F9, $07
db $F3, $0C, $F9, $06, $F8, $07, $F8, $07
db $E3, $1F, $F1, $0F, $F9, $07, $F9, $07
db $CF, $30, $9F, $60, $1F, $E0, $1F, $E0
db $C7, $F8, $8F, $F0, $9F, $E0, $9F, $E0
db $F1, $0F, $F7, $08, $FF, $00, $FF, $00
db $FF, $00, $FF, $00, $FF, $00, $FF, $00
db $8F, $F0, $EF, $10, $FF, $00, $FF, $00
db $FF, $00, $FF, $00, $FF, $00, $FF, $00
db $8F, $F0, $83, $FC, $40, $FF, $B8, $7F
db $6C, $1F, $17, $0F, $0F, $07, $04, $03
db $F1, $0F, $C1, $3F, $02, $FF, $1D, $FE
db $36, $F8, $E8, $F0, $F0, $E0, $20, $C0
db $07, $03, $0C, $07, $0B, $0C, $77, $38
db $CF, $70, $9F, $E0, $9F, $E0, $9F, $E0
db $E0, $C0, $30, $E0, $D0, $30, $EE, $1C
db $F3, $0E, $F9, $07, $F9, $07, $F9, $07
db $00, $00, $00, $F8, $00, $64, $00, $54
db $00, $4A, $00, $21, $00, $1F, $00, $00
db $00, $00, $10, $00, $54, $00, $28, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $E9, $18, $E9, $18, $EB, $18, $F7, $0C
db $F3, $0F, $F8, $07, $FF, $00, $FF, $00
db $F8, $0F, $FF, $07, $F8, $20, $F8, $70
db $9C, $F0, $0F, $FF, $E7, $1F, $FF, $00
db $1F, $F0, $FF, $E0, $FF, $0C, $FF, $1F
db $F0, $1F, $E3, $FC, $CF, $F0, $FF, $00
db $37, $18, $17, $18, $A7, $38, $CF, $F0
db $3F, $C0, $FF, $00, $FF, $00, $FF, $00
db $FF, $00, $9F, $60, $1F, $E0, $3F, $C0
db $F9, $06, $F8, $07, $FC, $03, $FF, $00
db $E7, $18, $C0, $3F, $1F, $FF, $38, $FF
db $E3, $F8, $C3, $F0, $A7, $D0, $63, $90
db $E7, $18, $03, $FC, $F8, $FF, $1C, $FF
db $C7, $1F, $C3, $0F, $C5, $0B, $E6, $09
db $C7, $10, $C7, $10, $A3, $10, $A3, $10
db $A3, $10, $C7, $10, $C3, $10, $C3, $10
db $C3, $08, $C3, $08, $E3, $08, $C3, $08
db $C5, $08, $C5, $08, $E1, $08, $E3, $08
db $68, $97, $40, $B8, $48, $A0, $85, $40
db $0F, $87, $1F, $4F, $1F, $3F, $7F, $3F
db $16, $E9, $06, $19, $1A, $05, $A0, $03
db $F0, $E1, $F8, $F2, $F8, $FC, $FC, $FC
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $00, $00, $10, $00, $54, $00, $28, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $1F, $00, $26, $00, $2A
db $00, $52, $00, $84, $00, $F8, $00, $00
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $C3, $FF, $81, $FF, $3C, $C3, $FF, $00
db $99, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $07, $07, $1F, $18, $2F, $30
db $50, $6F, $83, $FF, $9C, $FF, $EB, $EC
db $03, $03, $85, $86, $49, $CE, $A9, $6E
db $55, $BF, $8E, $FA, $5A, $F2, $9B, $72
db $E0, $E0, $91, $71, $92, $73, $95, $76
db $A8, $FF, $71, $5F, $52, $5F, $D9, $4E
db $00, $00, $E0, $E0, $F8, $18, $F4, $0C
db $02, $FE, $C1, $FF, $39, $FF, $D7, $37
db $89, $F9, $93, $F3, $A7, $E5, $47, $45
db $07, $05, $03, $07, $07, $05, $09, $08
db $41, $BF, $42, $BF, $05, $FE, $0F, $FE
db $1F, $F9, $3E, $F8, $FF, $E9, $FF, $46
db $E1, $FE, $30, $FF, $D8, $3F, $EC, $3F
db $FE, $CF, $7B, $0F, $FF, $93, $FF, $72
db $49, $CF, $65, $E7, $73, $D3, $70, $D0
db $70, $D0, $70, $D0, $E0, $A0, $90, $10
db $F7, $07, $EA, $0D, $C7, $07, $80, $00
db $87, $07, $1B, $18, $37, $27, $39, $2C
db $AE, $AE, $55, $DB, $FE, $DE, $71, $70
db $DF, $D0, $5F, $D0, $FF, $D8, $B7, $7C
db $FE, $00, $CD, $30, $8C, $53, $8A, $54
db $A0, $5F, $C1, $20, $A0, $40, $27, $40
db $01, $78, $13, $88, $13, $E8, $2F, $10
db $D7, $08, $37, $C8, $56, $28, $8E, $30
db $F8, $00, $E0, $00, $C0, $00, $80, $00
db $80, $00, $00, $00, $00, $00, $00, $00
db $01, $00, $03, $00, $07, $00, $07, $00
db $0F, $00, $0F, $00, $1F, $00, $1F, $00
db $F8, $01, $E1, $02, $C3, $04, $86, $09
db $8F, $10, $0F, $20, $1E, $41, $2C, $93
db $01, $C0, $83, $40, $07, $C0, $C7, $20
db $8F, $70, $0F, $E0, $1F, $C0, $1F, $80
db $16, $19, $2C, $33, $38, $27, $51, $6F
db $41, $7F, $41, $7F, $83, $FF, $85, $FD
db $19, $F1, $4C, $FC, $86, $FC, $33, $CF
db $78, $87, $70, $8F, $60, $9F, $61, $9F
db $98, $8F, $30, $3F, $63, $3F, $CC, $F3
db $8E, $F1, $87, $F8, $83, $FC, $C1, $FE
db $E8, $18, $34, $CC, $14, $EC, $82, $FE
db $42, $FE, $42, $FE, $61, $FF, $71, $FF
db $11, $10, $1F, $10, $1F, $10, $0F, $0F
db $02, $01, $03, $00, $01, $00, $00, $00
db $FE, $70, $FE, $08, $FF, $09, $FF, $C6
db $7E, $E0, $BE, $70, $FF, $08, $07, $07
db $7F, $02, $7F, $1E, $FF, $90, $FF, $61
db $7E, $07, $79, $0E, $FF, $10, $E0, $E0
db $D8, $08, $F8, $08, $F8, $08, $F0, $F0
db $80, $00, $80, $00, $00, $00, $00, $00
db $73, $58, $7E, $51, $AC, $F3, $B1, $EE
db $A3, $FC, $80, $FF, $C0, $7F, $FF, $3F
db $26, $DC, $6A, $9E, $CA, $3E, $96, $7E
db $26, $FC, $CC, $F8, $38, $F0, $F0, $C0
db $3C, $43, $1C, $23, $18, $27, $08, $27
db $13, $4C, $BF, $00, $7F, $80, $7C, $00
db $4C, $90, $00, $DE, $38, $C1, $78, $86
db $F0, $00, $E0, $00, $80, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $03, $00
db $0F, $00, $3F, $00, $7F, $00, $FF, $00
db $3E, $00, $7E, $00, $FE, $00, $FC, $00
db $FC, $00, $F8, $00, $E0, $00, $00, $00
db $38, $C7, $00, $3E, $00, $1C, $03, $00
db $0F, $20, $0F, $50, $0F, $70, $FF, $00
db $3E, $00, $1E, $60, $8E, $50, $64, $88
db $B0, $44, $D8, $22, $EC, $13, $00, $0E
db $03, $03, $06, $04, $3D, $3E, $47, $47
db $9E, $82, $B6, $8A, $E6, $9A, $7C, $44
db $80, $80, $F0, $70, $D8, $88, $A8, $D8
db $5C, $7C, $36, $22, $3E, $22, $3E, $3E
db $3F, $38, $47, $44, $D7, $D4, $C7, $C4
db $FB, $FC, $E0, $BF, $B8, $9F, $D7, $CF
db $FD, $03, $FD, $03, $F9, $07, $F1, $7F
db $8B, $8F, $AF, $AD, $8D, $89, $FB, $F3
db $00, $00, $1E, $1E, $31, $31, $38, $28
db $3D, $25, $1E, $12, $1C, $14, $08, $08
db $07, $07, $08, $08, $70, $70, $91, $90
db $10, $10, $9C, $1C, $7F, $7F, $FF, $FC
db $F8, $F8, $3C, $24, $3F, $13, $1E, $12
db $1E, $12, $3E, $3E, $FE, $FE, $FF, $7F
db $00, $00, $0E, $0E, $91, $91, $63, $63
db $27, $25, $6F, $69, $FF, $B1, $FE, $2A
db $97, $9C, $A7, $BC, $C7, $FC, $97, $FC
db $97, $ED, $47, $7E, $29, $39, $10, $10
db $FF, $7F, $FF, $F3, $FF, $F3, $BF, $B3
db $9F, $93, $FE, $72, $FF, $01, $FF, $80
db $FF, $04, $FF, $94, $EF, $C4, $FF, $C5
db $7E, $67, $7C, $57, $F8, $8F, $F8, $0F
db $FD, $27, $F9, $2F, $F1, $FF, $85, $FF
db $85, $FB, $81, $FF, $B9, $FF, $C6, $C6
db $FF, $FF, $DB, $E7, $D3, $E7, $DB, $E7
db $CB, $F7, $DB, $E7, $CB, $E7, $DB, $E7
db $E0, $A0, $BF, $DF, $98, $E8, $CB, $FB
db $F9, $B9, $BD, $DD, $54, $7C, $3F, $3F
db $DB, $18, $AD, $2C, $4A, $4E, $89, $8F
db $99, $9F, $BD, $A7, $7E, $42, $BD, $3C
db $02, $00, $22, $00, $02, $00, $82, $00
db $0A, $00, $02, $00, $FC, $00, $00, $00
db $38, $38, $00, $00, $00, $00, $03, $03
db $0F, $0C, $1E, $10, $3E, $20, $3F, $20
db $66, $42, $E5, $83, $F9, $87, $E1, $FF
db $F9, $1F, $3E, $06, $3A, $06, $FE, $02
db $E0, $A0, $BF, $DF, $9F, $E4, $C4, $FF
db $FF, $BF, $BF, $D1, $51, $7F, $3F, $3F
db $07, $05, $FD, $FB, $F9, $27, $23, $FF
db $FF, $FD, $FD, $0B, $0A, $FE, $FC, $FC
db $09, $09, $1D, $15, $1F, $13, $1F, $11
db $1B, $15, $3B, $31, $4F, $4A, $8F, $8C
db $FF, $FC, $F7, $F4, $E7, $E4, $0F, $0F
db $10, $10, $E0, $E0, $C2, $40, $C0, $40
db $FF, $7F, $FF, $7F, $DF, $5F, $CF, $4F
db $C1, $C1, $61, $61, $7F, $5F, $FF, $88
db $FC, $24, $FE, $22, $FE, $62, $FE, $92
db $FE, $0A, $FE, $26, $DD, $07, $FD, $C7
db $12, $10, $38, $28, $3F, $27, $3F, $24
db $3F, $24, $1F, $14, $0F, $0F, $00, $00
db $FF, $E3, $9C, $9C, $84, $84, $FE, $FE
db $87, $FD, $FF, $FC, $07, $04, $03, $03
db $F8, $EF, $14, $1F, $14, $1F, $17, $1F
db $E4, $FC, $E4, $3C, $E8, $38, $F0, $F0
db $C2, $C2, $E2, $A2, $FE, $9E, $FE, $92
db $7E, $52, $3C, $3C, $00, $00, $00, $00
db $DB, $E7, $CB, $F7, $DB, $E7, $DB, $E7
db $D3, $E7, $5A, $E7, $7E, $24, $3C, $18
db $07, $05, $FD, $FB, $19, $17, $D3, $DF
db $9F, $9D, $BD, $AB, $2A, $3E, $FC, $FC
db $E7, $00, $DB, $18, $A5, $24, $4E, $4A
db $4E, $4A, $5E, $52, $BD, $3C, $C3, $00
db $55, $FF, $00, $FF, $AA, $55, $FF, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $18, $18, $28, $28, $2E, $2E, $5F, $49
db $BF, $9F, $B1, $B1, $F5, $F5, $B1, $B1
db $00, $00, $03, $03, $05, $05, $75, $75
db $F7, $95, $F7, $F5, $F7, $F7, $FD, $FD
db $04, $04, $03, $03, $1E, $1E, $36, $32
db $76, $52, $F7, $D3, $F7, $D0, $F0, $D0
db $40, $40, $80, $80, $F0, $F0, $D8, $98
db $DC, $94, $DE, $96, $DE, $16, $1E, $16
db $FE, $FF, $CF, $81, $9F, $A0, $BB, $80
db $BF, $80, $BF, $80, $92, $80, $CC, $80
db $7F, $FF, $FF, $81, $DF, $21, $FB, $01
db $FF, $01, $FF, $01, $19, $01, $C3, $01
db $0F, $0F, $18, $10, $2B, $30, $4B, $70
db $8B, $F0, $8B, $F0, $8B, $F0, $8B, $F0
db $FF, $FF, $00, $00, $FF, $00, $FF, $00
db $FF, $00, $FF, $00, $FF, $00, $FF, $00
db $F0, $F0, $18, $08, $D4, $0C, $D2, $0E
db $D1, $0F, $D1, $0F, $D1, $0F, $D1, $0F
db $8B, $F0, $8B, $F0, $8B, $F0, $8B, $F0
db $8B, $F0, $8B, $F0, $8B, $F0, $8B, $F0
db $7F, $7F, $C0, $80, $80, $80, $90, $9F
db $90, $9F, $FF, $9F, $9F, $9F, $9F, $9F
db $FE, $FE, $81, $01, $81, $01, $89, $F9
db $89, $F9, $FF, $F9, $F9, $F9, $F9, $F9
db $00, $00, $00, $00, $18, $18, $24, $24
db $5A, $42, $5A, $42, $46, $66, $4A, $5E
db $7F, $3F, $C0, $40, $87, $8F, $88, $88
db $C7, $CF, $80, $80, $8F, $8F, $40, $C0
db $EF, $00, $C7, $00, $BB, $00, $7C, $00
db $7C, $00, $BB, $00, $C7, $00, $EF, $00
db $00, $00, $01, $00, $01, $00, $01, $00
db $01, $00, $01, $00, $01, $00, $7F, $00
db $9F, $9F, $9F, $9E, $BF, $9F, $B3, $B3
db $E9, $A9, $C4, $C4, $06, $06, $05, $05
db $F5, $15, $FF, $DD, $F7, $D7, $F7, $F5
db $97, $95, $27, $25, $C7, $C5, $43, $43
db $FF, $DF, $FF, $DF, $FF, $C0, $FF, $DF
db $F0, $B0, $F5, $B5, $F0, $B0, $FF, $FF
db $FE, $F6, $FE, $F6, $FE, $06, $FE, $F6
db $1E, $1A, $5E, $5A, $1E, $1A, $FE, $FE
db $9F, $FF, $FF, $F1, $F3, $9D, $B3, $DF
db $FF, $FC, $FE, $85, $8C, $F7, $FF, $FF
db $F9, $FF, $FF, $8F, $CF, $B9, $CD, $FB
db $FF, $3F, $7F, $A1, $31, $EF, $FF, $FF
db $88, $F0, $8F, $F0, $90, $EF, $90, $EF
db $A0, $DF, $A0, $DF, $C0, $BF, $C0, $BF
db $00, $00, $FF, $00, $00, $FF, $00, $FF
db $00, $FF, $00, $FF, $00, $FF, $00, $FF
db $11, $0F, $F1, $0F, $09, $F7, $09, $F7
db $05, $FB, $05, $FB, $03, $FD, $03, $FD
db $D1, $0F, $D1, $0F, $D1, $0F, $D1, $0F
db $D1, $0F, $D1, $0F, $D1, $0F, $D1, $0F
db $9F, $9F, $80, $80, $C0, $80, $BF, $C0
db $80, $BF, $C0, $84, $7B, $44, $3F, $3F
db $F9, $F9, $81, $01, $83, $01, $7D, $83
db $01, $FD, $03, $11, $EE, $12, $FC, $FC
db $4A, $56, $4A, $56, $4A, $46, $4A, $56
db $6A, $56, $6A, $56, $3C, $3C, $00, $00
db $FF, $FF, $00, $00, $B3, $B3, $12, $12
db $1E, $9E, $92, $92, $33, $B3, $00, $00
db $FF, $FF, $00, $00, $39, $39, $44, $44
db $44, $44, $44, $44, $39, $39, $00, $00
db $FC, $FC, $03, $02, $E1, $F1, $91, $91
db $E3, $F3, $81, $81, $C1, $C1, $02, $03
db $8F, $F0, $C8, $B7, $A8, $D7, $98, $E7
db $8F, $F0, $C0, $BF, $A0, $DF, $90, $EF
db $F1, $0F, $03, $FD, $05, $FB, $09, $F7
db $F1, $0F, $13, $ED, $15, $EB, $19, $E7
db $3F, $FF, $7F, $C0, $FF, $87, $F8, $88
db $F0, $90, $F0, $90, $F2, $90, $F0, $90
db $FC, $FF, $FE, $03, $FF, $E1, $1F, $11
db $4F, $09, $0F, $09, $0F, $09, $0F, $09
db $00, $00, $00, $00, $10, $00, $03, $03
db $07, $04, $0F, $08, $0F, $08, $0F, $09
db $00, $00, $00, $00, $00, $00, $C0, $C0
db $E2, $20, $F0, $10, $F0, $10, $F0, $90
db $00, $00, $18, $18, $24, $24, $33, $23
db $38, $20, $70, $40, $6C, $4C, $E4, $84
db $00, $00, $38, $38, $58, $48, $B8, $88
db $1C, $04, $0E, $02, $6E, $62, $4F, $41
db $F0, $90, $F2, $90, $F0, $90, $F0, $90
db $F0, $90, $F1, $90, $F0, $90, $F0, $90
db $FF, $FF, $FF, $00, $FF, $FF, $00, $00
db $00, $00, $10, $00, $04, $00, $00, $00
db $FF, $FF, $81, $81, $BD, $81, $BD, $81
db $81, $81, $FF, $FF, $DB, $DB, $FF, $FF
db $FF, $00, $04, $FB, $04, $FB, $04, $FB
db $FF, $00, $80, $7F, $80, $7F, $80, $7F
db $FF, $87, $FF, $F8, $FF, $80, $F8, $C7
db $C7, $78, $FF, $43, $FF, $FE, $FF, $80
db $FF, $E1, $FF, $1F, $FF, $01, $79, $87
db $CF, $31, $FF, $FF, $FF, $02, $E3, $1E
db $00, $00, $80, $00, $80, $00, $80, $00
db $80, $00, $80, $00, $80, $00, $7E, $00
db $BF, $40, $DF, $20, $EF, $10, $F7, $08
db $EB, $14, $DD, $22, $BE, $41, $7F, $80
db $CF, $F0, $A0, $BF, $9F, $DF, $80, $E0
db $80, $FF, $C0, $FF, $FF, $7F, $FF, $3F
db $F3, $0F, $05, $FD, $F9, $FB, $01, $07
db $01, $FF, $03, $FF, $FF, $FE, $FF, $FC
db $F0, $90, $F8, $88, $FC, $84, $FF, $83
db $FF, $80, $FF, $C0, $BF, $E0, $9F, $FF
db $0F, $09, $1F, $11, $3F, $21, $FF, $C1
db $FF, $01, $FF, $03, $FD, $07, $F9, $FF
db $0F, $09, $07, $04, $43, $03, $00, $00
db $00, $00, $21, $00, $00, $00, $00, $00
db $F0, $90, $E0, $20, $C0, $C0, $04, $00
db $00, $00, $04, $00, $00, $00, $00, $00
db $EB, $8B, $CE, $AA, $E4, $A4, $E4, $A4
db $EE, $AE, $F9, $99, $79, $48, $7F, $48
db $1F, $01, $37, $09, $3F, $09, $3F, $09
db $7F, $19, $FF, $E1, $FE, $22, $FE, $46
db $0F, $09, $0F, $09, $2F, $09, $0F, $09
db $0F, $09, $0F, $09, $0F, $09, $0F, $09
db $00, $00, $10, $00, $00, $00, $FF, $FF
db $FF, $00, $FF, $00, $FF, $00, $FF, $FF
db $DB, $A5, $DF, $A1, $D7, $A9, $F7, $89
db $81, $81, $FF, $FF, $DB, $DB, $FF, $FF
db $FF, $00, $00, $FF, $FF, $FF, $00, $00
db $00, $FF, $00, $FF, $FF, $FF, $FF, $FF
db $87, $F8, $FF, $C1, $FE, $7F, $FF, $41
db $8F, $F0, $FC, $83, $FF, $FC, $FF, $C3
db $FF, $01, $FF, $F1, $EF, $1E, $FF, $F1
db $FF, $01, $73, $8F, $FF, $01, $FF, $FF
db $FF, $FF, $81, $81, $CB, $B5, $CB, $B5
db $DB, $A5, $E7, $99, $C3, $BD, $FF, $FF
db $FF, $FF, $FF, $FF, $55, $FF, $00, $FF
db $AA, $55, $FF, $00, $00, $00, $FF, $FF
db $3F, $3F, $40, $40, $90, $8F, $AF, $9F
db $9B, $B4, $BF, $A0, $B6, $A9, $BF, $A0
db $F8, $F8, $04, $04, $12, $E2, $EA, $F2
db $72, $9A, $EA, $1A, $FA, $0A, $BA, $4A
db $2E, $30, $24, $38, $24, $38, $2E, $30
db $6E, $70, $E4, $B8, $A4, $B8, $AC, $B0
db $28, $18, $68, $18, $48, $38, $48, $38
db $6C, $1C, $2E, $1A, $0A, $3A, $4A, $3A
db $CE, $9A, $D6, $8E, $FA, $BE, $C6, $C6
db $AA, $82, $AB, $AA, $AB, $AB, $EE, $AB
db $73, $59, $6B, $71, $5F, $7D, $63, $63
db $55, $41, $D5, $55, $D5, $D5, $77, $D5
db $3B, $3B, $3E, $24, $1F, $19, $0F, $0B
db $1F, $1B, $FF, $FF, $87, $82, $AF, $AB
db $DC, $DC, $7C, $24, $FE, $9E, $F5, $D5
db $F5, $D5, $FD, $9D, $FD, $35, $FF, $CF
db $8F, $86, $E6, $80, $F2, $E0, $D8, $F0
db $BC, $D8, $F6, $94, $D2, $92, $DA, $92
db $FF, $FF, $FF, $81, $BD, $FF, $81, $FF
db $FF, $FF, $FF, $81, $BD, $FF, $81, $FF
db $3C, $3C, $5E, $62, $83, $FD, $81, $E2
db $98, $D9, $98, $D9, $A2, $C1, $BE, $E3
db $3C, $3C, $7A, $46, $C1, $BF, $81, $47
db $19, $9B, $19, $9B, $45, $83, $7D, $C7
db $00, $00, $3D, $00, $45, $00, $45, $00
db $48, $00, $57, $00, $68, $00, $08, $00
db $00, $00, $FC, $00, $02, $00, $82, $00
db $72, $00, $0E, $00, $E0, $00, $2E, $00
db $00, $FF, $31, $8E, $3F, $80, $1F, $80
db $1F, $80, $1F, $80, $3C, $80, $00, $83
db $00, $FF, $FE, $01, $FE, $01, $DE, $21
db $DE, $01, $FE, $01, $7E, $01, $00, $81
db $8D, $92, $C0, $8F, $A0, $C0, $5F, $60
db $20, $3F, $3F, $3F, $27, $38, $26, $38
db $E2, $12, $06, $E2, $0A, $06, $F4, $0C
db $08, $F8, $F8, $F8, $C8, $38, $48, $38
db $AE, $B0, $A6, $B8, $B4, $98, $DF, $8F
db $A0, $C0, $5F, $60, $3F, $3F, $00, $00
db $6A, $1A, $2A, $1A, $1A, $32, $F6, $E2
db $0A, $06, $F4, $0C, $F8, $F8, $00, $00
db $FE, $AB, $FF, $AF, $FC, $FF, $FD, $C7
db $CE, $87, $8B, $87, $97, $8C, $F8, $F8
db $7F, $D5, $FF, $F7, $3F, $FF, $BF, $E3
db $73, $E1, $D1, $E1, $E9, $31, $1F, $1F
db $87, $82, $87, $83, $AF, $AB, $87, $83
db $87, $82, $AF, $AB, $FF, $83, $FF, $FF
db $D9, $09, $FD, $89, $F9, $F9, $FF, $8F
db $FD, $05, $FD, $FD, $FE, $86, $FC, $FC
db $F1, $61, $67, $01, $4F, $07, $1B, $0F
db $3D, $1B, $6F, $29, $4B, $49, $5B, $49
db $FF, $FF, $FF, $81, $FF, $81, $81, $81
db $81, $81, $81, $FF, $99, $FF, $FF, $FF
db $9C, $FF, $40, $7C, $63, $7B, $7B, $5B
db $79, $49, $5D, $65, $64, $3C, $3F, $1F
db $39, $FF, $02, $3E, $C6, $DE, $DE, $DA
db $9E, $92, $BA, $A6, $26, $3C, $FC, $F8
db $6C, $00, $57, $00, $48, $00, $46, $00
db $42, $00, $42, $00, $3E, $00, $00, $00
db $2A, $00, $EA, $00, $0A, $00, $E6, $00
db $98, $00, $84, $00, $FC, $00, $00, $00
db $00, $00, $FF, $00, $FF, $FF, $7E, $81
db $7E, $81, $00, $FF, $FF, $FF, $FF, $FF
db $FF, $FF, $83, $FF, $01, $FF, $FE, $01
db $00, $01, $01, $00, $81, $00, $7F, $00
db $FD, $1D, $E2, $3F, $CD, $73, $E6, $7A
db $F3, $1E, $E7, $3D, $D7, $6C, $A3, $DF
db $DF, $D8, $27, $FC, $B3, $CE, $4D, $7F
db $DF, $73, $EF, $BC, $EB, $36, $C5, $FB
db $EF, $3E, $FF, $19, $CE, $08, $8F, $0C
db $8F, $0A, $0F, $09, $1E, $18, $37, $24
db $F5, $7C, $FB, $98, $77, $10, $F7, $30
db $FF, $50, $FF, $90, $7F, $18, $FF, $2C
db $FF, $0F, $F0, $10, $F0, $20, $F0, $20
db $CB, $40, $DC, $40, $F0, $80, $89, $90
db $E1, $E0, $39, $18, $3C, $04, $26, $02
db $2B, $09, $CF, $0D, $47, $05, $A6, $43
db $B2, $66, $F2, $26, $E2, $26, $E2, $26
db $E0, $26, $E0, $26, $E0, $46, $C6, $80
db $3B, $46, $5F, $3C, $6F, $33, $7D, $25
db $7F, $25, $3F, $13, $18, $08, $14, $0C
db $FE, $0E, $F1, $11, $E8, $28, $DB, $5B
db $D3, $53, $C3, $43, $83, $93, $81, $80
db $03, $03, $85, $85, $4B, $4A, $2F, $2E
db $AF, $A0, $AF, $AC, $FA, $2A, $FD, $45
db $F0, $00, $C3, $03, $87, $04, $8E, $08
db $3E, $38, $2D, $2A, $1D, $1B, $0A, $0E
db $01, $00, $C3, $C0, $E3, $20, $77, $10
db $7F, $1C, $B7, $54, $BF, $D8, $5E, $70
db $F8, $00, $E0, $00, $C0, $00, $80, $00
db $80, $00, $00, $00, $00, $00, $00, $00
db $01, $00, $03, $00, $07, $00, $07, $00
db $0F, $00, $0F, $00, $1F, $00, $1F, $00
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $80, $FF, $B4, $FB, $D8, $D7, $29, $37
db $21, $3F, $62, $3F, $E5, $3E, $E7, $3C
db $01, $FF, $2D, $DF, $1F, $EB, $9C, $E8
db $84, $FC, $44, $FC, $A4, $7C, $E4, $3C
db $67, $45, $4F, $42, $76, $48, $3B, $3C
db $1F, $04, $3D, $06, $7E, $03, $FF, $01
db $FE, $A6, $FE, $62, $EE, $12, $DC, $3C
db $FC, $20, $B8, $60, $60, $C0, $80, $80
db $B9, $99, $B9, $B9, $B9, $BF, $B9, $B9
db $B9, $B8, $D0, $90, $F4, $96, $76, $D6
db $F6, $E3, $FB, $F2, $FB, $FA, $FB, $F9
db $FB, $F9, $FB, $71, $73, $01, $05, $03
db $C0, $80, $E6, $80, $7F, $60, $5B, $56
db $4E, $4F, $6F, $4F, $68, $2F, $FF, $18
db $14, $0C, $34, $0C, $E4, $7C, $D8, $98
db $92, $92, $B5, $95, $EF, $A9, $C6, $C6
db $E7, $E3, $7F, $3C, $0F, $00, $E7, $E7
db $B8, $B8, $C7, $87, $7F, $58, $FF, $70
db $FD, $85, $FF, $1D, $F5, $17, $FA, $0A
db $FA, $8A, $FE, $0A, $FE, $12, $1C, $1E
db $0D, $0B, $3D, $3A, $2D, $2B, $1A, $1E
db $0D, $0B, $1D, $0A, $3D, $06, $7F, $03
db $BE, $D0, $BE, $5C, $B4, $D4, $58, $78
db $B8, $D0, $B8, $50, $B8, $60, $E0, $C0
db $00, $00, $00, $00, $00, $00, $03, $00
db $0F, $00, $3F, $00, $7F, $00, $FF, $00
db $3E, $00, $7E, $00, $FE, $00, $FC, $00
db $FC, $00, $F8, $00, $E0, $00, $00, $00
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $00, $00, $03, $03, $06, $04, $0E, $08
db $0F, $08, $0F, $08, $07, $04, $07, $04
db $00, $00, $C0, $C0, $60, $20, $70, $10
db $F0, $10, $F0, $10, $D0, $30, $20, $E0
db $F8, $90, $BF, $C8, $5F, $67, $EF, $B0
db $B8, $9F, $D7, $8F, $A0, $C0, $9F, $E0
db $79, $27, $F2, $4E, $F2, $8E, $C7, $3D
db $1D, $F9, $EB, $F1, $05, $03, $F9, $07
db $00, $00, $00, $00, $88, $00, $D5, $08
db $7F, $88, $EA, $DD, $37, $FF, $FF, $00
db $D0, $60, $C0, $60, $EC, $40, $F8, $40
db $E0, $50, $D0, $60, $FE, $60, $E8, $70
db $00, $00, $00, $00, $38, $00, $50, $20
db $A0, $40, $AC, $C0, $F8, $C0, $70, $C0
db $0F, $03, $1D, $03, $27, $00, $06, $00
db $04, $00, $00, $00, $00, $00, $00, $00
db $FF, $00, $DF, $E0, $37, $F8, $4B, $3C
db $17, $0C, $0D, $06, $3B, $06, $0F, $02
db $FF, $00, $FB, $07, $EC, $1F, $D2, $3C
db $E8, $30, $B0, $60, $DC, $60, $F0, $40
db $FF, $7E, $BD, $C3, $C3, $81, $C3, $81
db $E3, $81, $C7, $81, $C3, $81, $C3, $81
db $FF, $FF, $00, $FF, $C3, $3C, $81, $42
db $18, $99, $18, $99, $81, $42, $C3, $3C
db $FF, $FF, $DB, $E7, $D3, $E7, $DB, $E7
db $CB, $F7, $DB, $E7, $CB, $E7, $DB, $E7
db $87, $FF, $84, $FC, $CB, $FB, $FB, $BB
db $B9, $C9, $8D, $FD, $44, $7C, $3F, $3F
db $0F, $08, $19, $10, $33, $20, $67, $40
db $7F, $47, $58, $68, $2F, $3F, $13, $13
db $02, $00, $22, $00, $02, $00, $82, $00
db $0A, $00, $02, $00, $FC, $00, $00, $00
db $0F, $08, $19, $10, $33, $20, $67, $40
db $7F, $47, $F8, $88, $F3, $93, $F3, $93
db $A0, $60, $D0, $30, $E8, $18, $F4, $0C
db $F2, $8E, $7A, $46, $39, $27, $39, $27
db $81, $FF, $C1, $FF, $E1, $BF, $BE, $DF
db $9F, $E8, $88, $FF, $48, $7F, $3F, $3F
db $81, $7F, $81, $7F, $E3, $FF, $FF, $1D
db $1D, $F3, $11, $FF, $12, $FE, $FC, $FC
db $FF, $00, $BB, $FF, $54, $EF, $AA, $44
db $44, $00, $00, $00, $00, $00, $00, $00
db $0B, $06, $03, $06, $37, $02, $1F, $02
db $07, $0A, $0B, $06, $7F, $06, $17, $0E
db $F0, $C0, $B8, $C0, $E4, $00, $60, $00
db $20, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $1C, $00, $0A, $04
db $05, $02, $35, $03, $1F, $03, $0E, $03
db $DD, $06, $5D, $26, $67, $1C, $E7, $1C
db $8B, $7C, $77, $F8, $BF, $C0, $FF, $00
db $BB, $60, $BA, $64, $E6, $38, $E7, $38
db $D1, $3E, $EE, $1F, $FD, $03, $FF, $00
db $BD, $C3, $81, $FF, $81, $FF, $C3, $FF
db $FF, $BD, $BD, $C3, $81, $FF, $FF, $FF
db $FF, $00, $C3, $3C, $81, $42, $18, $99
db $18, $99, $81, $42, $C3, $3C, $FF, $FF
db $DB, $E7, $CB, $F7, $DB, $E7, $DB, $E7
db $D3, $E7, $5A, $E7, $7E, $24, $3C, $18
db $E1, $FF, $21, $3F, $D3, $DF, $DF, $DD
db $9D, $93, $B1, $BF, $22, $3E, $FC, $FC
db $A0, $60, $D0, $30, $E8, $18, $F4, $0C
db $F2, $8E, $66, $5E, $7C, $7C, $C8, $C8
db $44, $FF, $FF, $FF, $EE, $11, $EE, $11
db $EE, $11, $FF, $FF, $00, $00, $00, $00
db $A2, $FF, $A2, $FF, $A2, $FF, $A2, $FF
db $A2, $FF, $E2, $FF, $9E, $FF, $97, $FB
db $FF, $03, $06, $FA, $1A, $F6, $07, $FA
db $4B, $F6, $17, $FA, $03, $FF, $FF, $FF
db $FB, $06, $A6, $5B, $C2, $3F, $AA, $5F
db $C2, $3F, $E2, $1F, $82, $7F, $FF, $FF
db $C9, $3F, $19, $FF, $09, $FF, $49, $FF
db $49, $FF, $0F, $FF, $35, $FF, $F5, $CF
db $93, $FC, $98, $FF, $90, $FF, $92, $FF
db $92, $FF, $F0, $FF, $AC, $FF, $AF, $F3
db $45, $FF, $45, $FF, $45, $FF, $45, $FF
db $45, $FF, $47, $FF, $79, $FF, $E9, $DF
db $18, $30, $D7, $30, $D5, $30, $D7, $30
db $D7, $30, $D7, $30, $17, $F8, $FF, $FF
db $8E, $00, $F1, $00, $FF, $00, $FF, $00
db $FF, $00, $7F, $80, $33, $CC, $FF, $FF
db $00, $00, $03, $03, $04, $07, $08, $0F
db $10, $1F, $20, $3F, $71, $4E, $5B, $64
db $00, $00, $E0, $E0, $90, $70, $88, $78
db $84, $7C, $82, $7E, $C6, $3A, $6E, $92
db $FC, $00, $F8, $00, $F8, $00, $F8, $00
db $C0, $00, $80, $00, $80, $00, $80, $00
db $FF, $0F, $F0, $10, $EE, $20, $EF, $26
db $DF, $4F, $DF, $4F, $DF, $58, $BF, $90
db $FF, $39, $E6, $A6, $78, $60, $7C, $38
db $C4, $7C, $CC, $F4, $DD, $FC, $DF, $7D
db $FF, $9C, $67, $65, $1E, $06, $3E, $1C
db $23, $3E, $33, $2F, $BB, $3F, $FB, $BE
db $FF, $F0, $0F, $08, $77, $04, $F7, $64
db $FB, $F2, $FB, $F2, $FB, $1A, $FD, $09
db $FF, $FF, $FF, $C0, $E0, $C0, $FF, $FF
db $FF, $FF, $FF, $C0, $E0, $C0, $FF, $FF
db $93, $FC, $98, $FF, $90, $FF, $92, $FF
db $92, $FF, $F0, $7F, $3E, $1F, $03, $01
db $DF, $60, $65, $DA, $43, $FC, $55, $FA
db $47, $F8, $47, $F8, $41, $FE, $FF, $FF
db $FF, $C0, $60, $5F, $58, $6F, $E0, $5F
db $D2, $6F, $E8, $5F, $C0, $FF, $FF, $FF
db $45, $FF, $45, $FF, $45, $FF, $45, $FF
db $45, $FF, $47, $FE, $7C, $F8, $C0, $80
db $A2, $FF, $A2, $FF, $A2, $FF, $A2, $FF
db $A2, $FF, $E2, $7F, $3E, $1F, $03, $01
db $C9, $3F, $19, $FF, $09, $FF, $49, $FF
db $49, $FF, $0F, $FE, $7C, $F8, $C0, $80
db $00, $FF, $07, $FF, $1C, $FF, $30, $FF
db $63, $FC, $67, $F8, $C7, $F8, $C7, $F8
db $00, $FF, $E0, $FF, $38, $FF, $0C, $FF
db $C6, $3F, $E6, $1F, $E3, $1F, $E3, $1F
db $DB, $67, $C4, $7C, $CB, $7B, $CB, $7B
db $C9, $79, $45, $7D, $64, $3C, $3F, $1F
db $DB, $E6, $23, $3E, $D3, $DE, $D3, $DE
db $93, $9E, $A2, $BE, $26, $3C, $FC, $F8
db $3F, $00, $1F, $00, $0F, $00, $0F, $00
db $0F, $00, $0F, $00, $03, $00, $01, $00
db $BF, $90, $BF, $92, $BF, $92, $BF, $92
db $BF, $97, $BF, $9C, $FF, $78, $FF, $FF
db $E6, $7E, $FE, $3C, $F8, $18, $FA, $4A
db $F8, $C8, $FE, $7C, $FF, $0E, $FF, $FF
db $67, $7E, $7F, $3C, $1F, $18, $5F, $52
db $1F, $13, $7F, $3E, $FF, $70, $FF, $FF
db $FD, $09, $FD, $49, $FD, $49, $FD, $49
db $FD, $E9, $FD, $39, $FF, $1E, $FF, $FF
db $FF, $FF, $FF, $03, $07, $03, $FF, $FF
db $FF, $FF, $FF, $03, $07, $03, $FF, $FF
db $FF, $00, $FF, $03, $F4, $07, $C4, $07
db $E8, $0F, $F1, $3E, $C3, $7C, $C7, $78
db $E3, $FF, $1C, $FF, $18, $E7, $31, $CE
db $03, $FC, $C3, $3C, $C1, $3E, $80, $7F
db $C7, $FF, $38, $FF, $18, $E7, $8C, $73
db $C0, $3F, $C3, $3C, $83, $7C, $01, $FE
db $FF, $00, $FF, $C0, $2F, $E0, $23, $E0
db $17, $F0, $8F, $7C, $C3, $3E, $C3, $3E
db $87, $FF, $C2, $FF, $C0, $7F, $A0, $3F
db $78, $5F, $6F, $5F, $28, $3F, $9E, $19
db $1C, $FF, $1C, $FF, $1C, $FF, $48, $FF
db $E0, $FF, $72, $FF, $7E, $DF, $39, $CF
db $38, $FF, $38, $FF, $38, $FF, $10, $FF
db $04, $FF, $1F, $FF, $36, $FB, $ED, $F3
db $E1, $FF, $43, $FF, $03, $FE, $05, $FC
db $1E, $FA, $F2, $FE, $1D, $FC, $79, $98
db $FF, $60, $DF, $53, $FF, $54, $DC, $6F
db $EB, $3F, $FD, $13, $F9, $27, $E3, $3E
db $FF, $3C, $FB, $C6, $23, $FF, $7D, $FF
db $F9, $8F, $F6, $26, $D9, $50, $FF, $50
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $00, $00, $40, $00, $00, $3C, $24, $42
db $7E, $81, $66, $99, $5B, $A4, $69, $96
db $00, $0C, $04, $12, $08, $14, $00, $14
db $00, $14, $00, $08, $00, $80, $00, $B8
db $38, $FF, $38, $FF, $38, $FF, $10, $FF
db $00, $FF, $21, $FE, $43, $FC, $47, $F8
db $87, $FF, $43, $FF, $E0, $7F, $B0, $3F
db $70, $5F, $71, $5E, $63, $7C, $C7, $78
db $87, $F8, $96, $F9, $B0, $FF, $A0, $FF
db $A0, $FF, $83, $FF, $87, $FF, $87, $FF
db $18, $E7, $39, $C6, $33, $CC, $03, $FC
db $03, $FC, $03, $FC, $01, $FE, $0C, $FF
db $18, $E7, $9C, $63, $CC, $33, $C0, $3F
db $C0, $3F, $C0, $3F, $80, $7F, $30, $FF
db $C1, $3F, $09, $FF, $0D, $FF, $05, $FF
db $05, $FF, $C1, $FF, $E1, $FF, $E1, $FF
db $AC, $33, $79, $47, $77, $4F, $6C, $5F
db $3F, $38, $82, $00, $C6, $00, $FF, $00
db $7B, $84, $F3, $8C, $EF, $9C, $FD, $9E
db $F3, $9E, $F3, $92, $61, $61, $0C, $00
db $DF, $21, $ED, $33, $BE, $73, $DE, $73
db $DF, $72, $EC, $4C, $91, $80, $3F, $00
db $75, $8C, $BE, $C2, $CE, $F2, $36, $FA
db $FC, $1C, $C1, $00, $E3, $00, $FF, $00
db $EF, $3C, $FB, $36, $DA, $66, $42, $7E
db $46, $7E, $3E, $3C, $8D, $00, $E3, $00
db $FF, $78, $B7, $CC, $B3, $FE, $DB, $CE
db $3B, $0E, $EE, $0E, $F1, $00, $FF, $00
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $39, $46, $01, $3A, $01, $02, $01, $62
db $41, $92, $20, $D2, $00, $52, $00, $61
db $28, $C4, $68, $94, $D8, $24, $80, $78
db $00, $40, $00, $40, $00, $40, $01, $80
db $1C, $FF, $1C, $FF, $08, $FF, $00, $FF
db $10, $FF, $8C, $7F, $C2, $3F, $E2, $1F
db $E1, $FF, $C3, $FF, $23, $FE, $25, $FC
db $1E, $FA, $8E, $7E, $C2, $3E, $E3, $1E
db $E1, $1F, $7F, $82, $3E, $FC, $7F, $E5
db $67, $C5, $DD, $C6, $FE, $C7, $DD, $E7
db $FF, $FF, $3F, $1F, $DF, $08, $F9, $8E
db $F8, $8F, $EB, $1F, $11, $FF, $E5, $FF
db $FF, $F8, $CE, $8D, $FC, $C7, $FE, $67
db $7E, $BF, $3F, $C7, $81, $FF, $BC, $FF
db $FF, $00, $1F, $E0, $1F, $FF, $3F, $F1
db $71, $E1, $ED, $C3, $DF, $83, $6B, $D7
db $06, $FC, $F4, $0C, $E8, $1C, $08, $FE
db $08, $FD, $0A, $FC, $1B, $FC, $FB, $FC
db $0A, $06, $16, $0C, $34, $0C, $6D, $18
db $ED, $18, $17, $F8, $13, $3C, $D8, $3F
db $50, $60, $68, $30, $2C, $30, $B6, $18
db $B7, $18, $E8, $1F, $C8, $3C, $1B, $FC
db $60, $3F, $2F, $30, $17, $38, $10, $7F
db $10, $BF, $50, $3F, $D8, $3F, $DF, $3F
db $FF, $FF, $FF, $FF, $0C, $FF, $00, $FF
db $40, $FF, $07, $FF, $1B, $FC, $E8, $30
db $FF, $FF, $FF, $FF, $0C, $FF, $00, $FF
db $00, $FF, $E0, $FF, $DF, $38, $17, $0C
db $3C, $FF, $43, $C3, $F9, $81, $FC, $F8
db $46, $FC, $5B, $E6, $2D, $F3, $FE, $FD
db $02, $FF, $04, $FF, $8E, $FF, $DD, $F9
db $7E, $64, $66, $42, $C2, $82, $C2, $82
db $C5, $03, $C2, $01, $60, $80, $38, $C0
db $B4, $D8, $BA, $DC, $AE, $CC, $B6, $C4
db $A3, $C0, $43, $80, $06, $01, $1C, $03
db $2D, $1B, $5D, $3B, $75, $33, $6D, $23
db $40, $FF, $20, $FF, $71, $FF, $BB, $9F
db $7E, $26, $66, $42, $5B, $59, $5B, $59
db $3C, $FF, $C2, $C3, $9F, $81, $3F, $1F
db $62, $3F, $DA, $67, $B4, $CF, $7F, $BF
db $EE, $F3, $F7, $99, $FB, $8C, $BE, $C7
db $DF, $E1, $6F, $F0, $F3, $FC, $FF, $FF
db $05, $FB, $E1, $FF, $31, $1F, $D9, $0F
db $F9, $CF, $FB, $0F, $EF, $1F, $FF, $FF
db $E4, $C7, $DC, $87, $F4, $8F, $EC, $9F
db $F9, $FF, $C3, $FE, $07, $FC, $FF, $FF
db $6E, $C7, $7C, $C7, $7E, $C3, $DB, $E5
db $EB, $F1, $F1, $7F, $FF, $7F, $FF, $FF
db $FB, $1C, $DB, $3C, $9B, $7C, $09, $FE
db $0C, $FF, $06, $FF, $03, $FF, $FF, $FF
db $D7, $3F, $D0, $38, $D3, $3C, $F1, $1E
db $E8, $1F, $64, $9F, $02, $FF, $FF, $FF
db $EB, $FC, $0B, $1C, $CB, $3C, $8F, $78
db $17, $F8, $26, $F9, $40, $FF, $FF, $FF
db $DF, $38, $DB, $3C, $D9, $3E, $90, $7F
db $30, $FF, $60, $FF, $C0, $FF, $FF, $FF
db $D0, $E0, $73, $C3, $F3, $43, $71, $41
db $59, $61, $AC, $70, $17, $F8, $FF, $FF
db $0B, $07, $CE, $C3, $CF, $C2, $8E, $82
db $9A, $86, $35, $0E, $E8, $1F, $FF, $FF
db $C3, $C2, $F9, $81, $FC, $F8, $46, $FC
db $5B, $E6, $5D, $E3, $2F, $F3, $FD, $FE
db $F6, $B2, $FE, $B2, $BA, $C6, $85, $FC
db $CE, $79, $7D, $F3, $F2, $FF, $ED, $1F
db $BE, $C4, $B4, $CF, $AF, $DF, $9C, $F0
db $B0, $E0, $60, $C0, $CF, $80, $B8, $07
db $7D, $23, $2D, $F3, $F5, $FB, $39, $0F
db $0D, $07, $06, $03, $F3, $01, $1D, $E0
db $67, $41, $5F, $61, $4D, $73, $A1, $3F
db $73, $9E, $BE, $CF, $4F, $FF, $B7, $F8
db $C3, $43, $9F, $81, $3F, $1F, $62, $3F
db $DA, $67, $BA, $C7, $F4, $CF, $BF, $7F
db $FE, $F1, $8F, $CF, $55, $E4, $23, $FC
db $25, $F3, $6F, $F3, $C2, $CF, $CA, $87
db $FD, $FE, $4E, $93, $69, $93, $F1, $FD
db $DB, $BD, $8F, $DD, $77, $CD, $C7, $FF
db $B2, $C1, $8D, $F3, $83, $CF, $AB, $C7
db $B1, $CF, $80, $F1, $D8, $E1, $CE, $F1
db $9D, $E3, $C1, $FF, $AB, $C7, $CD, $83
db $BD, $C3, $D9, $E7, $23, $FF, $1E, $3F
db $00, $00, $88, $00, $D5, $08, $7F, $88
db $EA, $DD, $FF, $FF, $70, $FF, $00, $FF
db $38, $F0, $20, $F0, $36, $E0, $3C, $E0
db $30, $E8, $28, $F0, $3F, $F0, $34, $F8
db $00, $00, $18, $00, $28, $10, $40, $30
db $96, $60, $DC, $E0, $48, $F0, $20, $F0
db $14, $0F, $1E, $07, $3B, $07, $4F, $00
db $0C, $00, $08, $00, $00, $00, $00, $00
db $03, $FC, $01, $FE, $F0, $FF, $18, $FF
db $2C, $1F, $16, $0F, $76, $0F, $1E, $07
db $C0, $3F, $80, $7F, $07, $FF, $0C, $FF
db $1A, $FC, $34, $F8, $37, $F8, $3C, $F0
db $FF, $60, $DF, $53, $FF, $54, $DC, $6F
db $EB, $3F, $FD, $13, $F9, $27, $E3, $3E
db $FF, $3C, $FB, $C6, $23, $FF, $7D, $FF
db $F9, $8F, $F6, $26, $D9, $50, $FF, $50
db $F0, $0F, $C0, $3F, $80, $7F, $20, $1F
db $C0, $07, $00, $7F, $00, $7F, $80, $3F
db $7F, $80, $1F, $E0, $0F, $F0, $07, $F8
db $03, $F8, $03, $F8, $07, $F0, $0F, $E0
db $FE, $FF, $C5, $03, $9A, $E1, $E5, $F8
db $FB, $FC, $ED, $CE, $B7, $CE, $87, $FE
db $7F, $FF, $A3, $C0, $59, $87, $A7, $1F
db $DF, $3F, $B7, $73, $ED, $73, $E1, $7F
db $D3, $8F, $E1, $93, $82, $E1, $DC, $E2
db $63, $FC, $39, $FE, $76, $EF, $F3, $C1
db $86, $CF, $64, $9F, $CC, $FF, $78, $3F
db $18, $3F, $CC, $3F, $AE, $43, $35, $C3
db $E0, $7F, $7E, $FF, $53, $E7, $AD, $C3
db $B9, $C7, $B1, $CF, $81, $FF, $C3, $FF
db $EF, $1F, $44, $BF, $06, $E7, $AA, $C7
db $BA, $C7, $82, $FF, $9B, $E7, $C7, $FF
db $00, $FF, $00, $FF, $FF, $FF, $54, $EF
db $AA, $44, $44, $00, $00, $00, $00, $00
db $14, $0F, $04, $0F, $6C, $07, $3C, $07
db $0C, $17, $14, $0F, $FC, $0F, $2C, $1F
db $28, $F0, $68, $F0, $DC, $E0, $F2, $00
db $30, $00, $10, $00, $00, $00, $00, $00
db $00, $00, $38, $00, $14, $08, $0A, $04
db $6B, $06, $3F, $07, $1E, $07, $04, $0F
db $58, $0F, $68, $1F, $48, $3F, $98, $7F
db $30, $FF, $E0, $FF, $01, $FE, $03, $FC
db $16, $F8, $16, $F8, $13, $FC, $18, $FF
db $0C, $FF, $07, $FF, $80, $7F, $C0, $3F
db $EF, $3C, $FB, $36, $DA, $66, $42, $7E
db $46, $7E, $3E, $3C, $8D, $00, $E3, $00
db $FF, $78, $B7, $CC, $B3, $FE, $DB, $CE
db $3B, $0E, $EE, $0E, $F1, $00, $FF, $00
db $C0, $0F, $F0, $00, $FF, $00, $CF, $00
db $FF, $00, $FE, $00, $FF, $00, $FF, $00
db $19, $80, $7F, $00, $87, $78, $03, $FC
db $0F, $F0, $01, $FC, $03, $78, $87, $00
db $CF, $FE, $7F, $FE, $BE, $7F, $7C, $9F
db $37, $F8, $58, $E0, $A7, $C0, $5C, $83
db $F3, $7F, $FE, $7F, $7D, $FE, $3E, $F9
db $EC, $1F, $1A, $07, $E5, $03, $3A, $C1
db $38, $38, $46, $46, $99, $81, $F0, $88
db $7F, $78, $09, $0E, $05, $06, $73, $73
db $01, $01, $02, $02, $06, $04, $C6, $C4
db $3F, $3C, $75, $06, $CA, $65, $A5, $C8
db $80, $80, $46, $46, $25, $25, $66, $24
db $F2, $12, $DF, $3C, $2C, $D0, $D5, $0A
db $3C, $3C, $62, $42, $8D, $81, $DE, $AE
db $30, $10, $B0, $10, $10, $F0, $20, $60
db $01, $01, $01, $01, $1F, $1D, $37, $23
db $3E, $21, $2F, $30, $10, $1F, $1A, $0F
db $BF, $5C, $BF, $5E, $BF, $5F, $AF, $4F
db $F3, $03, $DD, $31, $7F, $9C, $BF, $1F
db $FD, $3E, $FF, $3F, $FF, $7C, $FF, $7C
db $E7, $60, $DE, $41, $FF, $0C, $FF, $FC
db $FF, $39, $C7, $C7, $80, $80, $F8, $F8
db $CC, $84, $64, $9C, $88, $78, $D8, $F0
db $F8, $F8, $FC, $44, $BF, $AF, $91, $91
db $C7, $86, $FC, $98, $F6, $66, $FE, $2E
db $3F, $3F, $7F, $44, $FA, $EA, $12, $12
db $C6, $C2, $7E, $32, $DF, $CC, $FF, $E8
db $00, $00, $3C, $3C, $66, $42, $D7, $81
db $CA, $81, $A6, $D9, $DA, $BD, $E7, $A5
db $00, $00, $78, $78, $DC, $84, $8E, $02
db $D6, $02, $4A, $36, $B6, $7A, $CE, $4A
db $00, $00, $40, $00, $00, $3C, $24, $42
db $7E, $81, $66, $99, $5B, $A4, $69, $96
db $00, $0C, $04, $12, $08, $14, $00, $14
db $00, $14, $00, $08, $00, $80, $00, $B8
db $0F, $0F, $10, $10, $20, $20, $2F, $20
db $3F, $27, $3C, $2C, $3F, $2F, $79, $69
db $F0, $F0, $08, $08, $04, $04, $F4, $04
db $FC, $E4, $3C, $34, $FC, $F4, $9E, $96
db $88, $88, $A4, $84, $73, $43, $3A, $20
db $2F, $30, $6D, $52, $FF, $9C, $E3, $E3
db $A4, $C8, $BA, $E4, $C0, $C3, $39, $00
db $1C, $01, $F6, $09, $75, $9A, $FF, $EC
db $12, $09, $23, $11, $C3, $21, $1B, $05
db $11, $08, $26, $10, $EA, $14, $EB, $34
db $A0, $60, $40, $C0, $8C, $8C, $14, $14
db $E8, $E8, $5C, $0C, $FA, $02, $AD, $51
db $16, $0C, $18, $08, $1C, $10, $33, $10
db $33, $20, $3D, $23, $3F, $3E, $00, $00
db $27, $03, $FD, $01, $EC, $10, $96, $78
db $77, $F8, $8B, $FC, $FB, $0C, $07, $07
db $C7, $C0, $BF, $80, $63, $1C, $DB, $3C
db $E7, $3F, $BF, $60, $60, $C0, $C0, $80
db $E8, $30, $18, $10, $38, $08, $C4, $04
db $44, $84, $FC, $C4, $7C, $3C, $00, $00
db $FC, $2C, $B1, $60, $FC, $E5, $9C, $9D
db $44, $C5, $BC, $9C, $6D, $F5, $FB, $07
db $7F, $68, $1B, $0C, $7C, $4F, $70, $72
db $44, $46, $7B, $72, $6D, $5E, $BF, $C0
db $E7, $A5, $BE, $FD, $FF, $A5, $E7, $BD
db $FE, $BD, $FF, $A5, $E6, $E7, $00, $00
db $CE, $4A, $FE, $7A, $FE, $4A, $4A, $FE
db $FE, $7A, $CE, $7A, $C6, $CE, $00, $00
db $39, $46, $01, $3A, $01, $02, $01, $62
db $41, $92, $20, $D2, $00, $52, $00, $61
db $28, $C4, $68, $94, $D8, $24, $80, $78
db $00, $40, $00, $40, $00, $40, $01, $80
db $BF, $AF, $BA, $AA, $BF, $AF, $BF, $A0
db $BF, $BF, $80, $80, $FF, $98, $67, $67
db $FD, $F5, $5D, $55, $FD, $F5, $FD, $05
db $FD, $FD, $01, $01, $FF, $19, $E6, $E6
db $FF, $F0, $9F, $98, $EC, $4C, $E7, $24
db $E5, $24, $E6, $24, $EF, $24, $CF, $49
db $FF, $00, $87, $00, $60, $00, $FF, $00
db $FF, $39, $7E, $47, $8C, $F3, $E6, $F9
db $FF, $00, $FF, $0F, $FF, $30, $FF, $C0
db $F8, $07, $C0, $3F, $00, $FF, $0F, $FF
db $FF, $00, $FF, $F0, $FE, $0C, $FF, $03
db $1F, $E0, $03, $FC, $00, $FF, $F0, $FF
db $C7, $00, $83, $00, $38, $00, $FF, $00
db $FF, $9C, $7F, $E2, $31, $CF, $67, $9F
db $FF, $0F, $F9, $19, $76, $32, $E4, $24
db $E4, $24, $24, $24, $F4, $24, $F2, $92
db $E2, $43, $F1, $21, $F9, $10, $FE, $38
db $C6, $44, $87, $84, $83, $82, $81, $81
db $10, $F0, $F1, $F0, $61, $60, $61, $21
db $E1, $21, $E3, $21, $C3, $41, $83, $83
db $08, $0F, $8F, $0F, $86, $06, $86, $84
db $87, $84, $C7, $84, $C3, $82, $C1, $C1
db $47, $C2, $8F, $84, $9F, $08, $7F, $1C
db $63, $22, $E1, $21, $C1, $41, $81, $81
db $FF, $1E, $E1, $21, $C0, $43, $C0, $44
db $C0, $48, $E0, $A9, $F0, $98, $FC, $9C
db $FF, $78, $97, $84, $03, $02, $03, $E2
db $07, $16, $0B, $0E, $09, $0F, $39, $3F
db $FF, $87, $FF, $F8, $FF, $80, $F8, $C7
db $C7, $78, $FF, $43, $FF, $FE, $FF, $80
db $FF, $E1, $FF, $1F, $FF, $01, $79, $87
db $CF, $31, $FF, $FF, $FF, $02, $E3, $1E
db $DB, $18, $AD, $2C, $4A, $4E, $89, $8F
db $99, $9F, $BD, $A7, $7E, $42, $BD, $3C
db $02, $00, $22, $00, $02, $00, $82, $00
db $0A, $00, $02, $00, $FC, $00, $00, $00
db $5B, $4A, $D3, $92, $D7, $94, $D7, $94
db $D7, $94, $DF, $9C, $CD, $8E, $C4, $47
db $92, $1D, $09, $0F, $0A, $0E, $0C, $0C
db $0C, $0C, $B8, $38, $E8, $28, $F8, $38
db $70, $F0, $80, $80, $00, $00, $0F, $00
db $3F, $07, $7F, $18, $F0, $20, $E1, $61
db $0E, $0F, $01, $01, $00, $00, $F0, $00
db $FC, $E0, $FE, $18, $0F, $04, $87, $86
db $49, $B8, $90, $F0, $50, $70, $30, $30
db $30, $30, $1D, $1C, $17, $14, $1F, $1C
db $DA, $52, $CB, $49, $EB, $29, $EB, $29
db $EB, $29, $FB, $39, $B3, $71, $23, $E2
db $B8, $A0, $DC, $90, $6E, $48, $5B, $6C
db $39, $3E, $84, $07, $F3, $03, $F8, $00
db $03, $03, $07, $03, $0F, $03, $FB, $07
db $F3, $0F, $04, $FC, $F8, $F8, $07, $00
db $C0, $C0, $E0, $C0, $F0, $C0, $DF, $E0
db $CF, $F0, $20, $3F, $1F, $1F, $C0, $00
db $1D, $05, $3B, $09, $76, $12, $DA, $36
db $9C, $7C, $21, $E0, $CF, $C0, $1F, $00
db $FF, $97, $FF, $B2, $FF, $D2, $FF, $8A
db $7F, $44, $3F, $24, $9F, $1F, $E0, $00
db $E9, $FF, $C9, $7F, $C9, $7F, $DD, $77
db $FE, $22, $FC, $2C, $F9, $F8, $03, $00
db $87, $F8, $FF, $C1, $FE, $7F, $FF, $41
db $8F, $F0, $FC, $83, $FF, $FC, $FF, $C3
db $FF, $01, $FF, $F1, $EF, $1E, $FF, $F1
db $FF, $01, $73, $8F, $FF, $01, $FF, $FF
db $E7, $00, $DB, $18, $A5, $24, $4E, $4A
db $4E, $4A, $5E, $52, $BD, $3C, $C3, $00
db $C3, $FF, $81, $FF, $00, $FF, $00, $FF
db $3C, $C3, $C3, $81, $7E, $7E, $81, $00
db $FF, $00, $FF, $00, $FF, $03, $FE, $0C
db $F8, $10, $F0, $20, $C0, $40, $80, $80
db $FF, $0F, $FF, $70, $DF, $80, $0F, $00
db $03, $00, $00, $00, $00, $00, $00, $00
db $FF, $F0, $FF, $0F, $F9, $00, $F0, $00
db $C0, $00, $00, $00, $00, $00, $00, $00
db $FF, $00, $FF, $00, $FF, $C0, $7F, $30
db $1F, $08, $07, $04, $03, $02, $01, $01
db $C0, $80, $C0, $80, $C0, $80, $C0, $80
db $C0, $80, $C0, $80, $C0, $80, $C0, $80
db $03, $01, $03, $01, $03, $01, $03, $01
db $03, $01, $03, $01, $03, $01, $03, $01
db $FF, $00, $FB, $07, $EC, $1F, $D0, $3F
db $E3, $3C, $A7, $78, $C7, $78, $47, $F8
db $FF, $00, $DF, $E0, $37, $F8, $0B, $FC
db $C7, $3C, $E5, $1E, $E3, $1E, $E2, $1F
db $1E, $1E, $21, $21, $50, $43, $41, $44
db $C0, $48, $E0, $A9, $F0, $98, $F8, $98
db $78, $78, $84, $84, $12, $02, $02, $E2
db $07, $12, $0D, $0F, $09, $0F, $19, $5F
db $FC, $00, $F8, $00, $F8, $00, $F8, $00
db $C0, $00, $80, $00, $80, $00, $80, $00
db $67, $F8, $63, $FC, $B1, $7E, $B8, $7F
db $DC, $3F, $6E, $1F, $37, $0F, $1B, $07
db $E6, $1F, $C6, $3F, $8D, $7E, $1D, $FE
db $3B, $FC, $76, $F8, $EC, $F0, $D8, $E0
db $07, $FF, $F9, $F8, $41, $88, $45, $88
db $54, $88, $54, $88, $15, $88, $15, $88
db $3C, $00, $7E, $00, $FF, $00, $FF, $00
db $FF, $00, $FF, $00, $7E, $00, $3C, $00
db $00, $00, $00, $00, $18, $18, $3C, $3C
db $7E, $7E, $FF, $FF, $FF, $FF, $FF, $FF
db $FF, $01, $FE, $02, $FF, $04, $FF, $04
db $FF, $08, $FF, $08, $EE, $10, $FE, $10
db $FF, $80, $FF, $40, $7F, $20, $3F, $20
db $3F, $10, $1F, $10, $1F, $08, $0F, $08
db $FC, $F0, $30, $E0, $E0, $20, $60, $20
db $E0, $40, $C0, $40, $C0, $C0, $C0, $C0
db $0F, $0F, $1C, $07, $3F, $04, $3E, $04
db $3F, $02, $3F, $02, $1F, $03, $0F, $03
db $E0, $80, $E0, $80, $A0, $C0, $F0, $C0
db $F0, $C0, $D8, $E0, $DC, $E0, $EF, $F0
db $07, $01, $07, $01, $05, $03, $0F, $03
db $0F, $03, $1B, $07, $3B, $07, $F7, $0F
db $00, $FF, $07, $FF, $1C, $FF, $30, $FF
db $63, $FC, $67, $F8, $C7, $F8, $C7, $F8
db $00, $FF, $E0, $FF, $38, $FF, $0C, $FF
db $C6, $3F, $E6, $1F, $E3, $1F, $E3, $1F
db $FC, $A4, $FF, $A7, $FF, $A2, $FF, $D2
db $FF, $8A, $7F, $44, $3F, $24, $1F, $1F
db $29, $3F, $C9, $FF, $C9, $7F, $C9, $7F
db $DD, $77, $FE, $22, $FC, $2C, $F9, $F8
db $3F, $00, $1F, $00, $0F, $00, $0F, $00
db $0F, $00, $0F, $00, $03, $00, $01, $00
db $C0, $00, $F0, $00, $FF, $00, $7F, $80
db $1F, $E0, $07, $F8, $80, $FF, $C0, $FF
db $03, $00, $0F, $00, $FF, $00, $FE, $01
db $F8, $07, $E0, $1F, $01, $FF, $03, $FF
db $51, $88, $51, $88, $45, $88, $40, $8F
db $07, $F8, $77, $88, $77, $8F, $F8, $FF
db $00, $00, $00, $00, $00, $00, $FF, $00
db $FF, $00, $FF, $00, $FF, $00, $00, $FF
db $FF, $FF, $FF, $7E, $7E, $3C, $3C, $00
db $81, $81, $C3, $42, $FF, $3C, $00, $FF
db $BD, $7E, $5A, $E7, $A5, $C3, $A5, $C3
db $A5, $C3, $A5, $C3, $AD, $C3, $A5, $C3
db $BD, $7E, $5A, $E7, $A5, $C3, $FF, $FF
db $80, $80, $00, $00, $7F, $00, $FF, $3E
db $BD, $7E, $5A, $E7, $A5, $C3, $FF, $FF
db $00, $00, $00, $00, $FF, $00, $FF, $1C
db $BD, $7E, $5A, $E7, $A5, $C3, $FF, $FF
db $00, $00, $00, $00, $FF, $00, $FF, $7E
db $BD, $7E, $5A, $E7, $A5, $C3, $FF, $FF
db $01, $01, $00, $00, $FE, $00, $FF, $FE
db $BD, $7E, $5A, $E7, $A5, $C3, $A5, $C3
db $A5, $C3, $A5, $C3, $AD, $C3, $A5, $C3
db $FF, $00, $FB, $07, $EC, $1F, $D0, $3F
db $E3, $3C, $A7, $78, $C7, $78, $47, $F8
db $FF, $00, $DF, $E0, $37, $F8, $0B, $FC
db $C7, $3C, $E5, $1E, $E3, $1E, $E2, $1F
db $1E, $1E, $21, $21, $50, $43, $41, $44
db $C0, $48, $E0, $A9, $F0, $98, $F8, $98
db $78, $78, $84, $84, $12, $02, $02, $E2
db $07, $12, $0D, $0F, $09, $0F, $19, $5F
db $FC, $00, $F8, $00, $F8, $00, $F8, $00
db $C0, $00, $80, $00, $80, $00, $80, $00
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $00, $FF, $00, $FF, $FF, $FF, $FF, $92
db $FF, $FF, $00, $FF, $00, $FF, $00, $FF
db $07, $FF, $F9, $F8, $41, $88, $45, $88
db $54, $88, $54, $88, $15, $88, $15, $88
db $DB, $18, $AD, $2C, $4A, $4E, $89, $8F
db $99, $9F, $BD, $A7, $7E, $42, $BD, $3C
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $A5, $C3, $A5, $C3, $A5, $C3, $BD, $C3
db $99, $E7, $81, $FF, $42, $FF, $BD, $7E
db $FF, $11, $FF, $11, $FF, $1E, $FF, $14
db $FF, $14, $FF, $33, $FF, $80, $FF, $FF
db $FF, $14, $FF, $14, $FF, $22, $FF, $3E
db $FF, $22, $FF, $63, $FF, $00, $FF, $FF
db $FF, $22, $FF, $20, $FF, $38, $FF, $20
db $FF, $20, $FF, $70, $FF, $00, $FF, $FF
db $FF, $92, $FF, $10, $FF, $10, $FF, $10
db $FF, $10, $FF, $38, $FF, $01, $FF, $FF
db $A5, $C3, $A5, $C3, $A5, $C3, $BD, $C3
db $99, $E7, $81, $FF, $42, $FF, $BD, $7E
db $00, $FF, $07, $FF, $1C, $FF, $30, $FF
db $63, $FC, $67, $F8, $C7, $F8, $C7, $F8
db $00, $FF, $E0, $FF, $38, $FF, $0C, $FF
db $C6, $3F, $E6, $1F, $E3, $1F, $E3, $1F
db $FC, $A4, $FF, $A7, $FF, $A2, $FF, $D2
db $FF, $8A, $7F, $44, $3F, $24, $1F, $1F
db $29, $3F, $C9, $FF, $C9, $7F, $C9, $7F
db $DD, $77, $FE, $22, $FC, $2C, $F9, $F8
db $3F, $00, $1F, $00, $0F, $00, $0F, $00
db $0F, $00, $0F, $00, $03, $00, $01, $00
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
db $55, $88, $51, $88, $41, $88, $45, $88
db $54, $88, $54, $88, $15, $88, $15, $88
db $51, $88, $51, $88, $45, $88, $40, $8F
db $07, $F8, $77, $88, $77, $8F, $F8, $FF
db $E7, $00, $DB, $18, $A5, $24, $4E, $4A
db $4E, $4A, $5E, $52, $BD, $3C, $C3, $00
db $00, $00, $42, $42, $24, $24, $18, $18
db $18, $18, $24, $24, $42, $42, $00, $00
|
vscode/extensions/ms-vscode.cpptools-0.14.0/debugAdapters/bin/osxlaunchhelper.scpt | nlimpid/dotfiles | 0 | 3683 | #!/usr/bin/osascript
-- Copyright (c) Microsoft. All rights reserved.
-- Licensed under the MIT license. See LICENSE file in the project root for full license information.
on run argv
set debuggerTitle to (item 1 of argv)
set executeCommand to (item 2 of argv)
-- Note: if other tabs are open in the terminal window that is opened by this script, this won't behave properly.
set command to executeCommand & ¬
"osascript -e 'tell application \"Terminal\" to close (every window whose tty is \"'\"$(tty)\"'\")' & exit"
tell application "Terminal"
-- "do script" will open a new Terminal window if no window is specified
-- If Terminal is not already running, do script will open a window in addition
-- to the window opened by opening Terminal. Hence, specify the first window if not running
if it is running then
activate
set newTab to do script command
else
activate
set newTab to do script command in window 1
end if
set custom title of newTab to debuggerTitle
end tell
end run
|
Categories/SubCategory.agda | copumpkin/categories | 98 | 480 | module Categories.SubCategory where
open import Categories.Category
open import Data.Product
sub-category : ∀ {o ℓ e o′ ℓ′} -> (C : Category o ℓ e) -> let module C = Category C in
{A : Set o′} (U : A -> C.Obj) (R : ∀ {a b} -> U a C.⇒ U b -> Set ℓ′) ->
(∀ {a} -> R (C.id {U a})) -> (∀ {a b c} {f : U b C.⇒ U c} {g : U a C.⇒ U b} -> R f -> R g -> R (f C.∘ g)) →
Category _ _ _
sub-category C {A} U R Rid R∘ = record
{ Obj = A
; _⇒_ = λ a b → Σ (U a C.⇒ U b) R
; _≡_ = λ f g → proj₁ f C.≡ proj₁ g
; id = C.id , Rid
; _∘_ = λ f g → (proj₁ f C.∘ proj₁ g) , R∘ (proj₂ f) (proj₂ g)
; assoc = C.assoc
; identityˡ = C.identityˡ
; identityʳ = C.identityʳ
; equiv = record
{ refl = C.Equiv.refl
; sym = C.Equiv.sym
; trans = C.Equiv.trans
}
; ∘-resp-≡ = C.∘-resp-≡
}
where
module C = Category C
|
monads.agda | heades/AUGL | 0 | 5754 | <filename>monads.agda
module monad where
open import eq
record Monad (M : Set → Set) : Set₁ where
field
return : ∀{A : Set} → A → M A
bind : ∀{A B : Set} → M A → (A → M B) → M B
monad-left-id : ∀{A B : Set}{a : A}{f : A → M B}
→ bind (return a) f ≡ f a
monad-right-id : ∀{A : Set}{c : M A}
→ bind c return ≡ c
monad-assoc : ∀{A B C : Set}{c : M A}{f : A → M B}{g : B → M C}
→ bind (bind c f) g ≡ bind c (λ a → bind (f a) g)
|
oeis/316/A316671.asm | neoneye/loda-programs | 11 | 94072 | ; A316671: Squares visited by moving diagonally one square on a diagonally numbered board and moving to the lowest available unvisited square at each step.
; 1,5,4,12,11,23,22,38,37,57,56,80,79,107,106,138,137,173,172,212,211,255,254,302,301,353,352,408,407,467,466,530,529,597,596,668,667,743,742,822,821,905,904,992,991,1083,1082,1178,1177,1277,1276,1380,1379,1487,1486,1598,1597,1713,1712,1832,1831,1955,1954,2082,2081,2213,2212,2348,2347,2487,2486,2630,2629,2777,2776,2928,2927,3083,3082,3242,3241,3405,3404,3572,3571,3743,3742,3918,3917,4097,4096,4280,4279,4467,4466,4658,4657,4853,4852,5052
mov $1,$0
add $1,1
gcd $1,2
add $0,$1
bin $0,2
add $0,$1
|
test/Succeed/Issue2155.agda | hborum/agda | 3 | 980 | <reponame>hborum/agda
open import Agda.Builtin.Bool
open import Agda.Builtin.Equality
open import Agda.Builtin.Float
NaN : Float
NaN = primFloatDiv 0.0 0.0
defNaN : NaN ≡ NaN
defNaN = refl
primEqNaN : primFloatEquality NaN NaN ≡ true
primEqNaN = refl
|
source/resolver/program-type_resolvers.adb | reznikmm/gela | 0 | 960 | -- SPDX-FileCopyrightText: 2020-2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Constraints;
with Program.Elements.Defining_Names;
with Program.Elements.Discrete_Ranges;
with Program.Elements.Discriminant_Associations;
with Program.Elements.Identifiers;
with Program.Elements.Subtype_Indications;
with Program.Complete_Contexts;
with Program.Node_Symbols;
with Program.Nodes.Proxy_Calls;
with Program.Resolvers.Name_In_Region;
with Program.Safe_Element_Visitors;
with Program.Symbols;
package body Program.Type_Resolvers is
type Visitor
(Env : not null Program.Visibility.Context_Access;
Setter : not null
Program.Cross_Reference_Updaters.Cross_Reference_Updater_Access;
Sets : not null Program.Interpretations.Context_Access)
is new Program.Safe_Element_Visitors.Safe_Element_Visitor
with record
Has_View : Boolean := False;
View : Program.Visibility.View;
end record;
overriding procedure Identifier
(Self : in out Visitor;
Element : not null Program.Elements.Identifiers.Identifier_Access);
overriding procedure Subtype_Indication
(Self : in out Visitor;
Element : not null Program.Elements.Subtype_Indications
.Subtype_Indication_Access);
----------------
-- Identifier --
----------------
overriding procedure Identifier
(Self : in out Visitor;
Element : not null Program.Elements.Identifiers.Identifier_Access)
is
use type Program.Visibility.View_Cursor;
Def : Program.Elements.Defining_Names.Defining_Name_Access;
Symbol : constant Program.Symbols.Symbol :=
Program.Node_Symbols.Get_Symbol (Element);
begin
for View in Self.Env.Immediate_Visible (Symbol) loop
Self.View := +View;
Def := Program.Visibility.Name (Self.View);
Self.Setter.Set_Corresponding_Defining_Name (Element.all'Access, Def);
return;
end loop;
end Identifier;
------------------
-- Resolve_Type --
------------------
procedure Resolve_Type
(Element : Program.Elements.Expressions.Expression_Access;
Context : not null Program.Visibility.Context_Access;
Setter : not null Program.Cross_Reference_Updaters
.Cross_Reference_Updater_Access;
Sets : not null Program.Interpretations.Context_Access;
Value : out Program.Visibility.View)
is
V : Visitor (Context, Setter, Sets);
begin
V.Visit (Element);
Value := V.View;
end Resolve_Type;
-----------------------------
-- Resolve_Type_Definition --
-----------------------------
procedure Resolve_Type_Definition
(Element : Program.Elements.Element_Access;
Context : not null Program.Visibility.Context_Access;
Setter : not null
Program.Cross_Reference_Updaters.Cross_Reference_Updater_Access;
Sets : not null Program.Interpretations.Context_Access;
Value : out Program.Visibility.View)
is
V : Visitor (Context, Setter, Sets);
begin
V.Visit (Element);
Value := V.View;
end Resolve_Type_Definition;
------------------------
-- Subtype_Indication --
------------------------
overriding procedure Subtype_Indication
(Self : in out Visitor;
Element : not null Program.Elements.Subtype_Indications
.Subtype_Indication_Access)
is
Constr : constant Program.Elements.Constraints.Constraint_Access :=
Element.Constraint;
begin
Self.Visit (Element.Subtype_Mark);
if not Constr.Assigned then
return;
end if;
if Self.View.Kind in Program.Visibility.Array_Type_View then
if Constr.Is_Discriminant_Constraint
and then Constr.all in Program.Nodes.Proxy_Calls.Proxy_Call'Class
then
-- Fix parser assumption for `F(X)` to make it index constraint
Program.Nodes.Proxy_Calls.Proxy_Call'Class (Constr.all)
.Turn_To_Index_Constraint;
end if;
-- ARM:3.6.1(4): each discrete_range shall resolve to be of the type
-- of the corresponding index.
declare
List : constant Program.Visibility.View_Array :=
Program.Visibility.Indexes (Self.View);
Args : constant Program.Elements.Discrete_Ranges
.Discrete_Range_Vector_Access :=
Constr.To_Index_Constraint.Ranges;
begin
pragma Assert (List'Length = Args.Length);
for J in Args.Each_Element loop
Program.Complete_Contexts.Resolve_To_Expected_Type
(Sets => Self.Sets,
Setter => Self.Setter,
Expect => Program.Visibility.First_Subtype (List (J.Index)),
Element => J.Element);
end loop;
end;
elsif Self.View.Kind in Program.Visibility.Record_Type_View then
pragma Assert (Constr.Is_Discriminant_Constraint);
for J in
Constr.To_Discriminant_Constraint.Discriminants.Each_Element
loop
declare
Compon : Program.Visibility.View;
Assoc : constant Program.Elements.Discriminant_Associations
.Discriminant_Association_Access :=
J.Element.To_Discriminant_Association;
Choices : constant Program.Elements.Identifiers
.Identifier_Vector_Access := Assoc.Selector_Names;
begin
pragma Assert (Choices.Length > 0);
for K in Choices.Each_Element loop
Program.Resolvers.Name_In_Region.Resolve_Name
(Region => Self.View,
Name => K.Element.To_Expression,
Setter => Self.Setter);
Compon := Self.Sets.Env.Get_Name_View (K.Element);
Program.Complete_Contexts.Resolve_To_Expected_Type
(Assoc.Discriminant_Value.To_Element,
Self.Sets,
Self.Setter,
Expect => Program.Visibility.Subtype_Mark (Compon));
end loop;
end;
end loop;
end if;
end Subtype_Indication;
end Program.Type_Resolvers;
|
Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i9-9900K_12_0xca.log_21829_1297.asm | ljhsiun2/medusa | 9 | 90445 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x863f, %r11
nop
xor $32762, %r12
mov (%r11), %r8
nop
nop
nop
nop
cmp %r9, %r9
lea addresses_normal_ht+0x11e3f, %rsi
lea addresses_A_ht+0xb77f, %rdi
nop
nop
nop
and %r13, %r13
mov $76, %rcx
rep movsl
cmp %r11, %r11
lea addresses_normal_ht+0x9506, %r8
nop
nop
nop
nop
nop
and %r12, %r12
mov $0x6162636465666768, %rcx
movq %rcx, (%r8)
nop
mfence
lea addresses_A_ht+0x1ea3f, %r12
nop
nop
nop
nop
nop
inc %r9
mov (%r12), %r13d
nop
nop
nop
nop
nop
add $37550, %rcx
lea addresses_UC_ht+0x1cd09, %r8
clflush (%r8)
nop
nop
nop
nop
sub $32960, %rsi
mov (%r8), %r11d
and %r8, %r8
lea addresses_A_ht+0x2eff, %r11
nop
nop
add $5127, %rdi
mov (%r11), %rsi
nop
nop
add %rsi, %rsi
lea addresses_WC_ht+0x120bf, %rsi
lea addresses_A_ht+0x187f, %rdi
clflush (%rsi)
nop
nop
and %r8, %r8
mov $79, %rcx
rep movsq
nop
nop
nop
cmp %r13, %r13
lea addresses_WT_ht+0x1ef7, %rsi
lea addresses_D_ht+0xf03f, %rdi
nop
nop
nop
nop
nop
cmp %r13, %r13
mov $101, %rcx
rep movsw
nop
nop
and %r8, %r8
lea addresses_WT_ht+0x1787f, %rdi
sub %rsi, %rsi
vmovups (%rdi), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $0, %xmm6, %r11
nop
nop
nop
nop
nop
sub $34533, %rdi
lea addresses_A_ht+0x1347, %rdi
clflush (%rdi)
nop
nop
nop
and %r8, %r8
mov (%rdi), %r11
nop
sub $10446, %r13
lea addresses_A_ht+0xf6df, %rsi
clflush (%rsi)
nop
nop
nop
nop
nop
add $28089, %r12
movb (%rsi), %cl
nop
nop
nop
sub $18234, %r12
lea addresses_UC_ht+0x6cbf, %rsi
lea addresses_UC_ht+0x1023f, %rdi
nop
nop
nop
and %r11, %r11
mov $63, %rcx
rep movsw
nop
nop
nop
nop
dec %r9
lea addresses_normal_ht+0xd9af, %rdi
nop
nop
nop
nop
and %r12, %r12
vmovups (%rdi), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %rsi
nop
nop
nop
nop
xor $42398, %rdi
lea addresses_WC_ht+0x823f, %r8
nop
nop
nop
dec %r11
mov (%r8), %r9d
nop
nop
nop
nop
and $53123, %r11
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
// Load
mov $0xe3f, %rcx
and $26478, %rdi
mov (%rcx), %rax
nop
sub $8806, %r12
// Store
mov $0xf, %r12
cmp %r10, %r10
mov $0x5152535455565758, %rcx
movq %rcx, %xmm7
vmovaps %ymm7, (%r12)
nop
nop
nop
nop
dec %rcx
// Store
mov $0xe3f, %rax
nop
nop
nop
nop
xor $4797, %rdx
movw $0x5152, (%rax)
nop
nop
nop
add %rcx, %rcx
// Faulty Load
mov $0xe3f, %rbx
nop
nop
nop
nop
xor %rcx, %rcx
vmovaps (%rbx), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $1, %xmm2, %rdi
lea oracles, %rcx
and $0xff, %rdi
shlq $12, %rdi
mov (%rcx,%rdi,1), %rdi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_P', 'same': True, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': True, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_P', 'same': True, 'AVXalign': False, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_P', 'same': True, 'AVXalign': True, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 11}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 4}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 6}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 7}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 6}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 1}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 6}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 6}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_A_ht', 'same': True, 'AVXalign': False, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 7}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 10}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_normal_ht', 'same': True, 'AVXalign': False, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'44': 4, '08': 3, '49': 14663, '00': 7031, '48': 128}
00 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 00 49 49 49 49 00 49 00 49 49 49 49 49 49 00 00 49 49 00 00 00 49 00 00 49 00 49 49 49 49 00 49 00 49 49 00 49 49 49 49 00 49 48 00 49 00 49 49 49 00 00 48 00 48 00 49 49 00 49 00 49 49 49 00 49 00 49 49 49 49 00 49 00 49 00 00 49 00 00 49 49 00 49 00 49 00 49 00 49 49 49 49 49 00 49 49 49 00 00 49 00 49 49 49 00 49 49 00 49 49 49 49 49 49 00 49 00 49 49 00 49 00 49 49 00 00 00 49 49 00 49 00 00 49 49 49 49 49 49 00 00 00 49 00 49 00 49 49 49 49 00 49 00 49 00 00 00 49 49 49 00 49 00 49 49 49 49 00 49 49 49 49 49 00 49 00 00 00 00 49 49 49 49 49 49 00 00 49 49 49 49 00 49 00 00 00 49 49 00 00 49 49 49 00 49 49 49 00 49 00 00 49 49 49 49 49 49 49 00 49 00 49 00 49 00 49 49 49 00 49 49 00 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 00 49 49 49 49 49 49 00 49 00 00 49 49 49 49 49 00 49 00 49 49 00 00 00 49 49 00 00 00 49 49 49 49 00 49 49 00 00 49 49 49 00 49 49 49 49 49 00 49 00 49 00 49 49 49 49 49 00 49 49 00 49 00 00 49 49 49 49 49 49 49 00 00 49 49 49 00 49 00 49 49 49 00 49 49 49 49 49 00 49 49 00 49 00 49 00 49 00 49 49 00 00 49 00 49 49 49 00 49 00 49 00 49 49 49 49 49 49 49 00 49 49 49 49 49 00 49 49 49 49 49 00 49 49 00 49 00 00 00 49 00 49 00 00 00 49 49 00 00 49 49 49 00 00 49 00 49 49 49 00 49 49 49 00 49 00 49 00 49 49 00 49 00 00 49 49 49 49 00 49 00 00 49 49 49 49 49 49 00 49 49 49 49 00 49 49 00 49 49 49 49 00 00 00 49 49 49 49 49 49 00 49 49 00 49 49 49 49 00 49 49 00 48 00 00 48 49 00 49 00 00 00 49 49 00 49 00 49 00 49 49 49 49 49 49 49 49 49 00 49 49 49 00 49 49 49 00 49 49 49 00 49 49 00 49 49 49 00 49 00 00 49 49 49 00 49 00 49 49 49 49 49 49 49 49 49 00 00 49 00 00 49 00 49 00 49 49 49 00 49 49 49 00 49 49 49 49 00 49 49 00 49 00 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 00 49 49 49 49 49 49 49 49 00 00 49 00 49 00 49 00 49 00 00 49 49 49 00 49 49 00 00 49 00 49 49 49 00 00 49 49 00 49 49 49 49 00 49 49 00 49 49 49 49 49 49 49 00 49 00 49 49 49 00 00 49 49 49 49 49 49 49 49 49 49 49 00 00 00 49 49 00 49 00 00 00 49 49 00 49 49 49 00 49 49 49 49 49 49 49 49 49 00 00 49 00 49 49 49 49 49 49 49 00 49 49 00 49 00 49 00 00 49 49 49 49 00 49 49 49 48 00 49 49 00 49 00 49 00 00 49 00 49 49 00 00 49 00 49 49 49 49 49 49 49 49 49 49 00 00 00 49 49 49 49 49 49 49 49 49 00 00 00 49 49 49 49 00 49 49 00 49 49 00 49 49 49 49 49 00 49 00 49 49 49 49 49 00 49 49 49 49 49 00 00 49 49 00 49 49 00 49 49 49 49 00 49 00 49 49 49 49 49 49 49 49 49 49 49 00 49 49 00 00 49 49 00 49 00 00 49 49 49 49 49 49 00 49 49 00 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 00 49 00 49 00 49 00 49 00 49 49 49 00 49 00 49 49 49 00 49 00 49 49 49 00 00 49 00 49 49 00 49 49 49 49 00 00 49 00 49 49 49 00 49 49 49 49 49 00 49 49 00 49 00 49 00 00 49 48 00 49 49 00 49 00 49 00 49 49 00 49 49 00 49 49 49 49 49 49 49 49 49 49 49 00 00 49 00 49 49 49 49 49 49 49 49 49 49 00 49 00 00 49 00 00 49 49 49 00 49 49 49 00 49 49 49 00 00 49 49 00 00 49 00
*/
|
IntelFsp2Pkg/Library/BaseFspSwitchStackLib/Ia32/Stack.nasm | KaoTuz/edk2-stable202108 | 9 | 4269 | <filename>IntelFsp2Pkg/Library/BaseFspSwitchStackLib/Ia32/Stack.nasm
;------------------------------------------------------------------------------
;
; Copyright (c) 2016 - 2019, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Abstract:
;
; Switch the stack from temporary memory to permanent memory.
;
;------------------------------------------------------------------------------
SECTION .text
extern ASM_PFX(SwapStack)
;------------------------------------------------------------------------------
; UINT32
; EFIAPI
; Pei2LoaderSwitchStack (
; VOID
; )
;------------------------------------------------------------------------------
global ASM_PFX(Pei2LoaderSwitchStack)
ASM_PFX(Pei2LoaderSwitchStack):
xor eax, eax
jmp ASM_PFX(FspSwitchStack)
;------------------------------------------------------------------------------
; UINT32
; EFIAPI
; Loader2PeiSwitchStack (
; VOID
; )
;------------------------------------------------------------------------------
global ASM_PFX(Loader2PeiSwitchStack)
ASM_PFX(Loader2PeiSwitchStack):
jmp ASM_PFX(FspSwitchStack)
;------------------------------------------------------------------------------
; UINT32
; EFIAPI
; FspSwitchStack (
; VOID
; )
;------------------------------------------------------------------------------
global ASM_PFX(FspSwitchStack)
ASM_PFX(FspSwitchStack):
; Save current contexts
push eax
pushfd
cli
pushad
sub esp, 8
sidt [esp]
; Load new stack
push esp
call ASM_PFX(SwapStack)
mov esp, eax
; Restore previous contexts
lidt [esp]
add esp, 8
popad
popfd
add esp, 4
ret
|
src/life_pkg.ads | rkoeninger/life | 0 | 23526 | with Gtk.Window; use Gtk.Window;
with Gtk.Box; use Gtk.Box;
with Gtk.Menu; use Gtk.Menu;
with Gtk.Menu_Bar; use Gtk.Menu_Bar;
with Gtk.Menu_Item; use Gtk.Menu_Item;
with Gtk.Table; use Gtk.Table;
with Gtk.Button; use Gtk.Button;
with Gtk.Status_Bar; use Gtk.Status_Bar;
package Life_Pkg is
type Life_Record is new Gtk_Window_Record with record
Vbox1 : Gtk_Vbox;
Menubar1 : Gtk_Menu_Bar;
Life1 : Gtk_Menu_Item;
Life1_Menu : Gtk_Menu;
Exit1 : Gtk_Menu_Item;
end record;
type Life_Access is access all Life_Record'Class;
procedure Gtk_New (Life_Value : out Life_Access);
procedure Initialize (Life_Value : out Life_Record'Class);
Life_Value : Life_Access;
end;
|
src/main/java/visitor/generated/AldwychLexer.g4 | afarrukh125/AldwychImplementation | 1 | 1773 | lexer grammar AldwychLexer;
// StringBuilder in case we need to do some post-processing
@lexer::members {
StringBuilder buffer;
}
fragment DIGIT: '0'..'9';
fragment LOWERCASE: 'a'..'z';
fragment UPPERCASE: 'A'..'Z';
fragment LETTER: (LOWERCASE|UPPERCASE);
fragment WORD: (LETTER)+;
// Symbols
SEMICOLON : ';';
COLON : ':';
CURLY_OPEN : '{' ;
CURLY_CLOSE : '}' ;
PARENT_OPEN : '(' ;
PARENT_CLOSE : ')' ;
SQ_OPEN : '[' ;
SQ_CLOSE : ']' ;
RIGHT_ARROW : '->';
LEFT_ARROW : '<-';
PRED_SEPARATOR : '||';
ARRAY_SEPARATOR : '|';
HASH : '#';
EQUALS : '=';
GREATER_THAN : '>';
GREATER_EQ : '>=';
LESS_EQ : '<=';
LESS_THAN : '<';
NOT_EQUAL : '!=';
COMMA : ',';
/* Arithmetic operations */
PLUS_OPERATOR : '+';
MINUS_OPERATOR : '-';
MULT_OPERATOR : '*';
DIV_OPERATOR : '/';
TRUE : 'true';
FALSE : 'false';
/* Integers, strings */
INTEGER : DIGIT+;
BOOLEAN : TRUE | FALSE;
STRING_CONST : '"' { buffer = new StringBuilder(); } -> skip, pushMode(STRING_MODE);
WHITESPACE : [ \n\f\r\t\u000B]+ -> skip ;
/* Identifiers (variable declarations)*/
ID : LOWERCASE (LETTER|DIGIT|'_')*;
STRUCTURE_ID : UPPERCASE (LETTER|DIGIT|'_')*; // Structures that have an output variable must be defined as starting with a capital letter
mode STRING_MODE;
STRING_TEXT : ~[\\\n\r\u0000"]+ { buffer.append(getText()); } -> more;
STRING_END : '"' { setText(buffer.toString()); } -> type(STRING_CONST), popMode; |
oeis/287/A287805.asm | neoneye/loda-programs | 11 | 171194 | ; A287805: Number of quinary sequences of length n such that no two consecutive terms have distance 2.
; Submitted by <NAME>
; 1,5,19,73,281,1083,4175,16097,62065,239307,922711,3557761,13717913,52893147,203943935,786361409,3032030689,11690820555,45077144455,173807214241,670161078089,2583988659867,9963272432111,38416111919777,148123788152017,571131629935179
mov $1,-1
lpb $0
sub $0,1
add $1,$3
add $1,1
add $2,1
sub $4,$5
sub $4,2
sub $3,$4
add $3,$5
mov $4,$2
mov $2,$3
add $5,$4
mov $3,$5
mov $4,$1
add $5,$2
lpe
mov $0,$2
mul $0,2
add $0,1
|
software/hal/boards/common/tools/generic_bounded_image.adb | TUM-EI-RCS/StratoX | 12 | 30067 | -- @summary functions to provide a string image of numbers
package body Generic_Bounded_Image with SPARK_Mode is
function Image_32 (item : T) return String is
res : constant String := T'Image (item);
pragma Assume (res'Length > 0);
len : constant Natural := res'Length;
max : constant Natural := (if len > 32 then 32 else len);
begin
declare
ret : String (1 .. max) := res (res'First .. res'First - 1 + max);
begin
return ret;
end;
end Image_32;
function Image_4 (item : T) return String is
res : constant String := T'Image (item);
pragma Assume (res'Length > 0);
len : constant Natural := res'Length;
max : constant Natural := (if len > 4 then 4 else len);
begin
declare
ret : String (1 .. max) := res (res'First .. res'First - 1 + max);
--ret : String (1 .. max) := res (res'Last - max + 1 .. res'Last);
begin
return ret;
end;
end Image_4;
end Generic_Bounded_Image;
|
oeis/138/A138502.asm | neoneye/loda-programs | 11 | 177889 | ; A138502: Expansion of q^(-1/2) * (eta(q)^4 * eta(q^4)^2 / eta(q^2)^3)^2 in powers of q.
; Submitted by <NAME>
; 1,-8,26,-48,73,-120,170,-208,290,-360,384,-528,651,-656,842,-960,960,-1248,1370,-1360,1682,-1848,1898,-2208,2353,-2320,2810,-3120,2880,-3480,3722,-3504,4420,-4488,4224,-5040,5330,-5208,5760,-6240,5905,-6888,7540,-6736,7922,-8160,7680,-9360,9410,-8760,10202,-10608,9984,-11448,11882,-10960,12770,-13728,12410,-13920,14521,-13456,16276,-16128,14784,-17160,17280,-17056,18770,-19320,17664,-20400,21892,-18824,22202,-22800,21170,-24960,24650,-22480,25344,-26568,24960,-27888,28731,-26280,29930,-31248
mul $0,2
seq $0,2173 ; a(n) = Sum_{d|n, d == 1 mod 4} d^2 - Sum_{d|n, d == 3 mod 4} d^2.
|
oeis/187/A187824.asm | neoneye/loda-programs | 11 | 242073 | ; A187824: a(n) is the largest m such that n is congruent to -1, 0 or 1 mod k for all k from 1 to m.
; Submitted by <NAME>
; 3,4,5,6,3,4,4,5,3,6,4,4,3,5,5,4,3,6,5,5,3,4,6,6,3,4,4,7,3,6,4,4,3,7,7,4,3,5,5,8,3,4,5,5,3,4,4,8,3,5,4,4,3,9,5,4,3,6,6,6,3,4,5,6,3,4,4,5,3,10,4,4,3,5,5,4,3,6,5,5,3,4,7,7,3,4,4,6,3,7,4,4,3,6,6,4,3,5,5,6
add $0,3
mov $2,4
lpb $0
mov $3,$0
lpb $3
mov $4,$0
mod $4,$2
add $2,1
trn $4,2
cmp $4,0
sub $3,$4
lpe
mov $0,3
lpe
mov $0,$2
sub $0,1
|
src/strings.ads | python36/d0xfa | 0 | 317 | <filename>src/strings.ads
with ada.text_io;
with ada.strings.fixed;
with ada.strings.maps.constants;
with ada.strings.unbounded;
with numbers; use numbers;
package strings is
package natural_io is new ada.text_io.integer_io(natural);
package unb renames ada.strings.unbounded;
package fix renames ada.strings.fixed;
procedure print (s : string) renames ada.text_io.put_line;
procedure put (s : string) renames ada.text_io.put;
procedure put (s : character) renames ada.text_io.put;
procedure print (c : character);
procedure print (us : unb.unbounded_string);
function first_element (s : string) return character;
function last_element (s : string) return character;
function first_element (us : unb.unbounded_string) return character;
function last_element (us : unb.unbounded_string) return character;
function endswith (s, p : string) return boolean;
function endswith (s : string; c : character) return boolean;
function startswith (s, p : string) return boolean;
function startswith (s : string; c : character) return boolean;
function ltrim (s : string; c : character := ' ') return string;
function rtrim (s : string; c : character := ' ') return string;
function trim (s : string; c : character := ' ') return string;
procedure clear (us : out unb.unbounded_string);
function remove_ret_car (s : string) return string;
function lowercase (s : string) return string;
function uppercase (s : string) return string;
function car (s : string) return character renames first_element;
function cdr (str : string; offset : positive := 1) return string;
procedure void (s : string);
function "=" (us : unb.unbounded_string; s : string) return boolean;
function "=" (s : string; us : unb.unbounded_string) return boolean;
end strings; |
src/ada/AeonFlux/Parser/TokenReading.ads | marcello-s/AeonFlux | 0 | 296 | -- Copyright (c) 2015-2019 <NAME>
-- for details see License.txt
with TokenValue; use TokenValue;
package TokenReading is
type Object is interface;
function ReadToken (O : Object) return TokenValue.Object is abstract;
end TokenReading;
|
libsrc/video/tms9918/graphics/bkrestore.asm | jpoikela/z88dk | 640 | 170783 | <reponame>jpoikela/z88dk
;
; Fast background restore
;
; MSX version
;
; $Id: bkrestore.asm $
;
SECTION smc_clib
PUBLIC bkrestore
PUBLIC _bkrestore
EXTERN bkpixeladdress
EXTERN l_tms9918_disable_interrupts
EXTERN l_tms9918_enable_interrupts
EXTERN swapgfxbk
EXTERN __graphics_end
INCLUDE "video/tms9918/vdp.inc"
.bkrestore
._bkrestore
; __FASTCALL__ : sprite ptr in HL
push ix ;save callers
push hl
pop ix
call swapgfxbk
ld h,(ix+2)
ld l,(ix+3)
ld a,(ix+0)
ld b,(ix+1)
dec a
srl a
srl a
srl a
inc a
inc a ; INT ((Xsize-1)/8+2)
ld (rbytes+1),a
.bkrestores
push bc
call bkpixeladdress
.rbytes
ld a,0 ; <-SMC!
.rloop
ex af,af
call l_tms9918_disable_interrupts
IF VDP_CMD < 0
ld a,e
ld (-VDP_CMD),a
ld a,d ; MSB of video mem ptr
and @00111111 ; masked with "write command" bits
or @01000000
ld (-VDP_CMD),a
ld a,(ix+4)
ld (-VDP_DATA),a
ELSE
ld bc,VDP_CMD
out (c),e
ld a,d ; MSB of video mem ptr
and @00111111 ; masked with "write command" bits
or @01000000
out (c),a
ld bc,VDP_DATA
ld a,(ix+4)
out (c),a
ENDIF
call l_tms9918_enable_interrupts
ex de,hl
ld bc,8
add hl,bc
ex de,hl
inc ix
ex af,af
dec a
jr nz,rloop
inc l
pop bc
djnz bkrestores
jp __graphics_end ;restore callers
|
src/drivers/OPL3.asm | sharksym/vgmplay-sharksym | 6 | 18897 | ;
; YMF262 OPL3
;
OPL3_BASE_PORT: equ 0C0H
OPL3_STATUS: equ 00H
OPL3_FM_ADDRESS: equ 00H
OPL3_FM_DATA: equ 01H
OPL3_FM2_ADDRESS: equ 02H
OPL3_FM2_DATA: equ 03H
OPL3_FM2_NEW: equ 05H
OPL3_CLOCK: equ 14318182
OPL3_TIMER_1: equ 02H
OPL3_FLAG_CONTROL: equ 04H
OPL3: MACRO ?base = OPL3_BASE_PORT, ?name = OPL3_name
this:
super: Driver ?name, OPL3_CLOCK, Driver_PrintInfoImpl
; e = register
; d = value
SafeWriteRegister:
ld a,e
cp 20H
jr c,MaskControl
; a = register
; d = value
WriteRegister:
di
out (?base + OPL3_FM_ADDRESS),a
basePort: equ $ - 1
cp (hl) ; wait 32 / 14.32 µs
ld a,d
ei
out (?base + OPL3_FM_DATA),a
ret
MaskControl:
cp 8H
jr z,WriteRegister
cp 1H
ret nz
MaskTest:
ld a,d
and 00100000B ; pass waveform select enable for OPL2s
ld d,a
ld a,e
jr WriteRegister
; e = register
; d = value
SafeWriteRegister2:
ld a,e
; a = register
; d = value
WriteRegister2:
di
out (?base + OPL3_FM2_ADDRESS),a
cp (hl) ; wait 32 / 14.32 µs
ld a,d
ei
out (?base + OPL3_FM2_DATA),a
ret
; a <- value
ReadRegisterStatus:
in a,(?base + OPL3_STATUS)
ret
ENDM
; ix = this
; iy = drivers
OPL3_Construct:
call Driver_Construct
call OPL3_Detect
jp nc,Driver_NotFound
jr OPL3_Reset
; ix = this
OPL3_Destruct:
call Driver_IsFound
ret nc
jr OPL3_Mute
; e = register
; d = value
; ix = this
OPL3_WriteRegister:
ld a,e
ld bc,OPL3.WriteRegister
jp Utils_JumpIXOffsetBC
; e = register
; d = value
; ix = this
OPL3_WriteRegister2:
ld a,e
ld bc,OPL3.WriteRegister2
jp Utils_JumpIXOffsetBC
; ix = this
; a <- value
OPL3_ReadRegisterStatus:
ld bc,OPL3.ReadRegisterStatus
jp Utils_JumpIXOffsetBC
; b = count
; e = register base
; d = value
; ix = this
OPL3_FillRegisterPairs:
push bc
push de
call OPL3_WriteRegister
pop de
push de
call OPL3_WriteRegister2
pop de
pop bc
inc e
djnz OPL3_FillRegisterPairs
ret
; ix = this
OPL3_Mute:
ld de,00BDH
call OPL3_WriteRegister ; rhythm off
ld b,16H
ld de,0F80H
call OPL3_FillRegisterPairs ; max release rate
ld b,16H
ld de,3F40H
call OPL3_FillRegisterPairs ; min total level
ld b,09H
ld de,00A0H
call OPL3_FillRegisterPairs ; frequency 0
ld b,09H
ld de,00B0H
jr OPL3_FillRegisterPairs ; key off
; ix = this
OPL3_Reset:
ld de,00000001B << 8 | OPL3_FM2_NEW
call OPL3_WriteRegister2
ld b,0D6H
ld de,0020H
call OPL3_FillRegisterPairs
ld de,0001H
call OPL3_WriteRegister
ld de,0008H
call OPL3_WriteRegister
ld de,0004H
call OPL3_WriteRegister2
ld de,00000000B << 8 | OPL3_FM2_NEW
jr OPL3_WriteRegister2
; ix = this
; f <- c: Found
OPL3_Detect:
ld c,(ix + OPL3.basePort)
; c = base I/O port
; f <- c: Found
; c <- base I/O port
OPL3_DetectPort: PROC
in a,(c)
and 11111101B ; if OPL4 bit 1 can be set
ret nz
di
ld de,10000000B << 8 | OPL3_FLAG_CONTROL
call WriteRegister
ld de,0FFH << 8 | OPL3_TIMER_1 ; detect with timer
call WriteRegister
ld de,00111001B << 8 | OPL3_FLAG_CONTROL
call WriteRegister
ld de,10000000B << 8 | MSXAudio_ADPCM_CONTROL ; ensure it’s no MSX-AUDIO
call WriteRegister
ld b,0 ; wait >80 µs
djnz $
in a,(c)
push af
ld de,01111000B << 8 | OPL3_FLAG_CONTROL
call WriteRegister
ld de,00000000B << 8 | MSXAudio_ADPCM_CONTROL
call WriteRegister
ei
pop af
and 11111101B ; if OPL4 bit 1 can be set
xor 11000000B
ret nz
scf
ret
WriteRegister:
out (c),e
in a,(c) ; wait 12 / 3.58 µs (in case of MSX-AUDIO)
cp (hl) ; "
inc c
out (c),d
dec c
ret
ENDP
;
SECTION RAM
OPL3_instance: OPL3
ENDS
OPL3_interface:
InterfaceOffset OPL3.SafeWriteRegister
InterfaceOffset OPL3.SafeWriteRegister2
OPL3_interfaceY8950:
InterfaceOffset OPL3.SafeWriteRegister
InterfaceAddress Player_SkipDataBlock
OPL3_name:
db "OPL3",0
|
oeis/246/A246697.asm | neoneye/loda-programs | 11 | 244868 | ; A246697: Row sums of the triangular array A246696.
; Submitted by <NAME>(s3)
; 1,5,16,34,67,111,178,260,373,505,676,870,1111,1379,1702,2056,2473,2925,3448,4010,4651,5335,6106,6924,7837,8801,9868,10990,12223,13515,14926,16400,18001,19669,21472,23346,25363,27455,29698,32020,34501,37065,39796
mov $2,$0
mov $3,$0
mov $5,$0
mul $5,$0
mov $0,$5
div $0,2
add $0,4
mul $0,$3
add $0,2
bin $2,2
mov $4,$2
mul $4,3
add $0,$4
sub $0,1
|
Altair101/asm/programs/opInrDcr.asm | tigerfarm/arduino | 2 | 98961 | <filename>Altair101/asm/programs/opInrDcr.asm
; --------------------------------------
; Test INR and DCR.
; --------------------------------------
Start:
; --------------------------------------
mvi a,1 ; Initialize the register.
mvi b,2
mvi c,3
mvi d,4
mvi e,5
mvi h,6
mvi l,7
out 38 ; Print the register values.
; + regA: 1 = 001 = 00000001
; + regB: 2 = 002 = 00000010 regC: 3 = 003 = 00000011
; + regD: 4 = 004 = 00000100 regE: 5 = 005 = 00000101
; + regH: 6 = 006 = 00000110 regL: 7 = 007 = 00000111
;
; --------------------------------------
; Test by incrementing the registers up.
inr a ; Increment register A.
inr b
inr c
inr d
inr e
inr h
inr l
out 38 ; Print the register values.
; + regA: 2 = 002 = 00000010
; + regB: 3 = 003 = 00000011 regC: 4 = 004 = 00000100
; + regD: 5 = 005 = 00000101 regE: 6 = 006 = 00000110
; + regH: 7 = 007 = 00000111 regL: 8 = 010 = 00001000
;
; --------------------------------------
; Test by decrementing the registers down.
dcr a ; Decrement register A.
dcr b
dcr c
dcr d
dcr e
dcr h
dcr l
out 38 ; Print the register values.
; + regA: 1 = 001 = 00000001
; + regB: 2 = 002 = 00000010 regC: 3 = 003 = 00000011
; + regD: 4 = 004 = 00000100 regE: 5 = 005 = 00000101
; + regH: 6 = 006 = 00000110 regL: 7 = 007 = 00000111
;
; --------------------------------------
; Test by incrementing and decrementing the data value at address hb:lb.
;
mvi a,6 ; Move # to register A.
sta 128 ; Store register A's data value to the address H:L.
lda 128 ; Load register A from the address H:L.
out 37 ; Print register A = 6.
;
mvi l,128 ; Set address H:L to 128.
mvi h,0
inr m ; Increment the byte(M) at address H:L.
lda 128 ; Load register A from the address H:L.
out 37 ; Print register A = 7.
dcr m ; Decrement the byte(M) at address H:L.
lda 128 ; Load register A from the address H:L.
out 37 ; Print register A = 6.
; --------------------------------------
mvi a,'\n'
out 3
mvi a,'\r'
out 3
hlt
jmp Start
; --------------------------------------
end
; --------------------------------------
; Successful run:
+ runProcessor()
------------
+ regA: 1 = 001 = 00000001
+ regB: 2 = 002 = 00000010 regC: 3 = 003 = 00000011
+ regD: 4 = 004 = 00000100 regE: 5 = 005 = 00000101
+ regH: 6 = 006 = 00000110 regL: 7 = 007 = 00000111
------------------------
+ regA: 2 = 002 = 00000010
+ regB: 3 = 003 = 00000011 regC: 4 = 004 = 00000100
+ regD: 5 = 005 = 00000101 regE: 6 = 006 = 00000110
+ regH: 7 = 007 = 00000111 regL: 8 = 010 = 00001000
------------------------
+ regA: 1 = 001 = 00000001
+ regB: 2 = 002 = 00000010 regC: 3 = 003 = 00000011
+ regD: 4 = 004 = 00000100 regE: 5 = 005 = 00000101
+ regH: 6 = 006 = 00000110 regL: 7 = 007 = 00000111
------------
> Register A = 6 = 006 = 00000110
> Register A = 7 = 007 = 00000111
> Register A = 6 = 006 = 00000110
++ HALT, host_read_status_led_WAIT() = 0
;
; --------------------------------------
|
programs/oeis/189/A189510.asm | neoneye/loda | 22 | 165310 | ; A189510: Digital root of n^n.
; 1,1,4,9,4,2,9,7,1,9,1,5,9,4,7,9,7,8,9,1,4,9,4,2,9,7,1,9,1,5,9,4,7,9,7,8,9,1,4,9,4,2,9,7,1,9,1,5,9,4,7,9,7,8,9,1,4,9,4,2,9,7,1,9,1,5,9,4,7,9,7,8,9,1,4,9,4,2,9,7,1,9,1,5,9,4,7
pow $0,$0
lpb $0
sub $0,1
mod $0,9
add $0,1
lpe
|
src/kernel/thread_int.asm | rostislav-nikitin/socOS | 1 | 168991 | .cseg
.org 0x09
rjmp thread_TIM0_OVF_handler ; Timer0 Overflow Handler |
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-cofuba.adb | djamal2727/Main-Bearing-Analytical-Model | 0 | 9056 | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ADA.CONTAINERS.FUNCTIONAL_BASE --
-- --
-- B o d y --
-- --
-- Copyright (C) 2016-2020, Free Software Foundation, Inc. --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. The copyright notice above, and the license provisions that follow --
-- apply solely to the contents of the part following the private keyword. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
------------------------------------------------------------------------------
pragma Ada_2012;
with Ada.Unchecked_Deallocation;
package body Ada.Containers.Functional_Base with SPARK_Mode => Off is
function To_Count (Idx : Extended_Index) return Count_Type is
(Count_Type
(Extended_Index'Pos (Idx) -
Extended_Index'Pos (Extended_Index'First)));
function To_Index (Position : Count_Type) return Extended_Index is
(Extended_Index'Val
(Position + Extended_Index'Pos (Extended_Index'First)));
-- Conversion functions between Index_Type and Count_Type
function Find (C : Container; E : access Element_Type) return Count_Type;
-- Search a container C for an element equal to E.all, returning the
-- position in the underlying array.
procedure Resize (Base : Array_Base_Access);
-- Resize the underlying array if needed so that it can contain one more
-- element.
---------
-- "=" --
---------
function "=" (C1 : Container; C2 : Container) return Boolean is
begin
if C1.Length /= C2.Length then
return False;
end if;
for I in 1 .. C1.Length loop
if C1.Base.Elements (I).all /= C2.Base.Elements (I).all then
return False;
end if;
end loop;
return True;
end "=";
----------
-- "<=" --
----------
function "<=" (C1 : Container; C2 : Container) return Boolean is
begin
for I in 1 .. C1.Length loop
if Find (C2, C1.Base.Elements (I)) = 0 then
return False;
end if;
end loop;
return True;
end "<=";
---------
-- Add --
---------
function Add
(C : Container;
I : Index_Type;
E : Element_Type) return Container
is
begin
if To_Count (I) = C.Length + 1 and then C.Length = C.Base.Max_Length then
Resize (C.Base);
C.Base.Max_Length := C.Base.Max_Length + 1;
C.Base.Elements (C.Base.Max_Length) := new Element_Type'(E);
return Container'(Length => C.Base.Max_Length, Base => C.Base);
else
declare
A : constant Array_Base_Access := Content_Init (C.Length);
P : Count_Type := 0;
begin
A.Max_Length := C.Length + 1;
for J in 1 .. C.Length + 1 loop
if J /= To_Count (I) then
P := P + 1;
A.Elements (J) := C.Base.Elements (P);
else
A.Elements (J) := new Element_Type'(E);
end if;
end loop;
return Container'(Length => A.Max_Length,
Base => A);
end;
end if;
end Add;
------------------
-- Content_Init --
------------------
function Content_Init (L : Count_Type := 0) return Array_Base_Access
is
Max_Init : constant Count_Type := 100;
Size : constant Count_Type :=
(if L < Count_Type'Last - Max_Init then L + Max_Init
else Count_Type'Last);
Elements : constant Element_Array_Access :=
new Element_Array'(1 .. Size => <>);
begin
return new Array_Base'(Max_Length => 0, Elements => Elements);
end Content_Init;
----------
-- Find --
----------
function Find (C : Container; E : access Element_Type) return Count_Type is
begin
for I in 1 .. C.Length loop
if C.Base.Elements (I).all = E.all then
return I;
end if;
end loop;
return 0;
end Find;
function Find (C : Container; E : Element_Type) return Extended_Index is
(To_Index (Find (C, E'Unrestricted_Access)));
---------
-- Get --
---------
function Get (C : Container; I : Index_Type) return Element_Type is
(C.Base.Elements (To_Count (I)).all);
------------------
-- Intersection --
------------------
function Intersection (C1 : Container; C2 : Container) return Container is
L : constant Count_Type := Num_Overlaps (C1, C2);
A : constant Array_Base_Access := Content_Init (L);
P : Count_Type := 0;
begin
A.Max_Length := L;
for I in 1 .. C1.Length loop
if Find (C2, C1.Base.Elements (I)) > 0 then
P := P + 1;
A.Elements (P) := C1.Base.Elements (I);
end if;
end loop;
return Container'(Length => P, Base => A);
end Intersection;
------------
-- Length --
------------
function Length (C : Container) return Count_Type is (C.Length);
---------------------
-- Num_Overlaps --
---------------------
function Num_Overlaps (C1 : Container; C2 : Container) return Count_Type is
P : Count_Type := 0;
begin
for I in 1 .. C1.Length loop
if Find (C2, C1.Base.Elements (I)) > 0 then
P := P + 1;
end if;
end loop;
return P;
end Num_Overlaps;
------------
-- Remove --
------------
function Remove (C : Container; I : Index_Type) return Container is
begin
if To_Count (I) = C.Length then
return Container'(Length => C.Length - 1, Base => C.Base);
else
declare
A : constant Array_Base_Access := Content_Init (C.Length - 1);
P : Count_Type := 0;
begin
A.Max_Length := C.Length - 1;
for J in 1 .. C.Length loop
if J /= To_Count (I) then
P := P + 1;
A.Elements (P) := C.Base.Elements (J);
end if;
end loop;
return Container'(Length => C.Length - 1, Base => A);
end;
end if;
end Remove;
------------
-- Resize --
------------
procedure Resize (Base : Array_Base_Access) is
begin
if Base.Max_Length < Base.Elements'Length then
return;
end if;
pragma Assert (Base.Max_Length = Base.Elements'Length);
if Base.Max_Length = Count_Type'Last then
raise Constraint_Error;
end if;
declare
procedure Finalize is new Ada.Unchecked_Deallocation
(Object => Element_Array,
Name => Element_Array_Access_Base);
New_Length : constant Positive_Count_Type :=
(if Base.Max_Length > Count_Type'Last / 2 then Count_Type'Last
else 2 * Base.Max_Length);
Elements : constant Element_Array_Access :=
new Element_Array (1 .. New_Length);
Old_Elmts : Element_Array_Access_Base := Base.Elements;
begin
Elements (1 .. Base.Max_Length) := Base.Elements.all;
Base.Elements := Elements;
Finalize (Old_Elmts);
end;
end Resize;
---------
-- Set --
---------
function Set
(C : Container;
I : Index_Type;
E : Element_Type) return Container
is
Result : constant Container :=
Container'(Length => C.Length,
Base => Content_Init (C.Length));
begin
Result.Base.Max_Length := C.Length;
Result.Base.Elements (1 .. C.Length) := C.Base.Elements (1 .. C.Length);
Result.Base.Elements (To_Count (I)) := new Element_Type'(E);
return Result;
end Set;
-----------
-- Union --
-----------
function Union (C1 : Container; C2 : Container) return Container is
N : constant Count_Type := Num_Overlaps (C1, C2);
begin
-- if C2 is completely included in C1 then return C1
if N = Length (C2) then
return C1;
end if;
-- else loop through C2 to find the remaining elements
declare
L : constant Count_Type := Length (C1) - N + Length (C2);
A : constant Array_Base_Access := Content_Init (L);
P : Count_Type := Length (C1);
begin
A.Max_Length := L;
A.Elements (1 .. C1.Length) := C1.Base.Elements (1 .. C1.Length);
for I in 1 .. C2.Length loop
if Find (C1, C2.Base.Elements (I)) = 0 then
P := P + 1;
A.Elements (P) := C2.Base.Elements (I);
end if;
end loop;
return Container'(Length => L, Base => A);
end;
end Union;
end Ada.Containers.Functional_Base;
|
programs/oeis/131/A131914.asm | karttu/loda | 0 | 17107 | ; A131914: 3*A002024 - 2*A051340.
; 1,4,2,7,5,3,10,8,6,4,13,11,9,7,5,16,14,12,10,8,6,19,17,15,13,11,9,7,22,20,18,16,14,12,10,8,25,23,21,19,17,15,13,11,9,28,26,24,22,20,18,16,14,12,10
add $0,1
lpb $0,1
add $1,1
trn $2,$0
add $0,1
add $2,1
add $1,$2
sub $1,1
sub $0,$1
trn $0,1
add $2,$1
mov $1,$2
sub $1,1
lpe
|
programs/oeis/030/A030695.asm | karttu/loda | 1 | 5872 | <reponame>karttu/loda
; A030695: Smallest nontrivial extension of n-th cube which is a cube.
; 125,8000,2744,64000,125000,216000,343000,512000,729000,1000000,1331000,1728000,2197000,2744000,3375000,4096000,4913000,5832000,6859000,8000000,9261000,10648000,12167000,13824000,15625000
cal $0,30696 ; Cube root of A030695.
pow $0,3
mov $1,$0
|
4-high/gel/source/gel-world.ads | charlie5/lace | 20 | 27213 | <gh_stars>10-100
with
gel.remote.World,
gel.Sprite,
gel.Joint,
openGL.Model,
physics.Space,
-- physics.Engine,
physics.Model,
lace.Event,
lace.Observer,
lace.Subject,
lace.Subject_and_deferred_Observer,
lace.Any,
ada.Tags.generic_dispatching_Constructor,
ada.unchecked_Conversion,
ada.Containers.Vectors,
ada.Containers.hashed_Maps;
limited
with
openGL.Renderer.lean;
package gel.World
--
-- Provides a gel world.
--
is
type Item is limited new lace.Subject_and_deferred_Observer.item
and gel.remote.World.item
with private;
type View is access all Item'Class;
type Views is array (math.Index range <>) of View; -- TODO: Use a Positive type instead of 'math.Index'.
use Math;
---------
-- Forge
--
package Forge
is
function to_World (Name : in String;
Id : in world_Id;
space_Kind : in physics.space_Kind;
Renderer : access openGL.Renderer.lean.item'Class) return gel.World.item;
function new_World (Name : in String;
Id : in world_Id;
space_Kind : in physics.space_Kind;
Renderer : access openGL.Renderer.lean.item'Class) return gel.World.view;
end Forge;
overriding
procedure destroy (Self : in out Item);
procedure free (Self : in out View);
--------------
-- Attributes
--
function local_Observer (Self : in Item) return lace.Observer.view;
function local_Subject (Self : in Item) return lace.Subject .view;
function Id (Self : in Item) return world_Id;
function Age (Self : in Item) return Duration;
procedure Age_is (Self : in out Item; Now : in Duration);
procedure Gravity_is (Self : in out Item; Now : in Vector_3);
function space_Kind (Self : in Item) return physics.space_Kind;
function Space (Self : in Item) return physics.Space.view;
procedure update_Bounds (Self : in out Item; of_Sprite : in gel.Sprite.view);
procedure update_Site (Self : in out Item; of_Sprite : in gel.Sprite.view;
To : in Vector_3);
procedure update_Scale (Self : in out Item; of_Sprite : in gel.Sprite.view;
To : in Vector_3);
procedure set_Speed (Self : in out Item; of_Sprite : in gel.Sprite.view;
To : in Vector_3);
procedure set_xy_Spin (Self : in out Item; of_Sprite : in gel.Sprite.view;
To : in Radians);
procedure apply_Force (Self : in out Item; to_Sprite : in gel.Sprite.view;
Force : in Vector_3);
-----------
-- Sprites
--
function new_sprite_Id (Self : access Item) return sprite_Id;
function free_sprite_Set (Self : access Item) return gel.Sprite.views;
function Sprites (Self : in Item) return gel.Sprite.views;
function fetch_Sprite (Self : in Item; Id : in sprite_Id) return gel.Sprite.view;
procedure destroy (Self : in out Item; the_Sprite : in gel.Sprite.view);
procedure set_Scale (Self : in out Item; for_Sprite : in gel.Sprite.view;
To : in Vector_3);
type sprite_transform_Pair is
record
Sprite : gel.Sprite.view;
Transform : Matrix_4x4;
end record;
type sprite_transform_Pairs is array (Positive range <>) of sprite_transform_Pair;
function sprite_Transforms (Self : in Item) return sprite_transform_Pairs;
----------
--- Joints
--
procedure destroy (Self : in out Item; the_Joint : in gel.Joint.view);
procedure set_local_Anchor_on_A (Self : in out Item; for_Joint : in gel.Joint.view;
To : in Vector_3);
procedure set_local_Anchor_on_B (Self : in out Item; for_Joint : in gel.Joint.view;
To : in Vector_3);
--------------
--- Collisions
--
type a_Contact is
record
Site : Vector_3;
end record;
type Contacts is array (Positive range 1 .. 4) of a_Contact;
type a_Manifold is
record
Sprites : Sprite.views (1 .. 2);
Contact : a_Contact;
end record;
type Manifold_array is array (Positive range <>) of a_Manifold;
function manifold_Count (Self : in Item) return Natural;
function Manifold (Self : in Item; Index : in Positive) return a_Manifold;
function Manifolds (Self : in Item) return Manifold_array;
type impact_Filter is access function (the_Manifold : in a_Manifold) return Boolean;
--
-- Returns True if the impact is of interest and requires a response.
type impact_Response is access procedure (the_Manifold : in a_Manifold;
the_World : in World.view);
procedure add_impact_Response (Self : in out Item; Filter : in impact_Filter;
Response : in impact_Response);
--------------
--- Operations
--
procedure is_a_Mirror (Self : access Item'Class; of_World : in gel.remote.World.view);
procedure add (Self : in out Item; the_Model : in openGL .Model.view);
procedure add (Self : in out Item; the_Model : in physics.Model.view);
procedure add (Self : access Item; the_Sprite : in gel.Sprite.view;
and_Children : in Boolean := False);
procedure add (Self : in out Item; the_Joint : in gel.Joint.view);
procedure rid (Self : in out Item; the_Sprite : in gel.Sprite.view;
and_Children : in Boolean := False);
procedure rid (Self : in out Item; the_Joint : in gel.Joint.view);
procedure start (Self : access Item);
procedure evolve (Self : in out Item; By : in Duration);
procedure allow_broken_Joints (Self : out Item);
procedure handle_broken_Joints (Self : in out Item; the_Joints : in Joint.views);
--
-- Detaches any broken joints from associated sprites.
-- Override this to do custom handling of broken joints.
-- tbd: This should be in private section and only available to child packages.
---------------
--- Ray Casting
--
type ray_Collision is
record
near_Sprite : gel.Sprite.view;
hit_Fraction : Real;
Normal_world : Vector_3;
Site_world : Vector_3;
end record;
type Any_limited_view is access all lace.Any.limited_item'Class;
type raycast_collision_Event is new lace.Event.item with
record
near_Sprite : gel.Sprite.view;
Context : Any_limited_view;
Site_world : Vector_3;
end record;
overriding
procedure destruct (Self : in out raycast_collision_Event);
type no_Parameters is null record;
function to_raycast_collision_Event (Params : not null access no_Parameters) return raycast_collision_Event;
function raycast_collision_Event_dispatching_Constructor is new ada.Tags.generic_dispatching_Constructor (raycast_collision_Event,
Parameters => no_Parameters,
Constructor => to_raycast_collision_Event);
procedure cast_Ray (Self : in Item; From, To : in Vector_3;
Observer : in lace.Observer.view;
Context : access lace.Any.limited_Item'Class;
Event_Kind : in raycast_collision_Event'Class);
--
-- Casts a ray between From and To.
-- The Observer is informed of the 1st collision with a Sprite via a raycast_collision_Event.
-- Context is optional and is passed back to the Observer within the Context field of the raycast_collision_Event
-- for use by the raycast_collision_Event response.
--------------------
--- World Mirroring
--
overriding
procedure register (Self : access Item; the_Mirror : in remote.World.view;
Mirror_as_observer : in lace.Observer.view);
overriding
procedure deregister (Self : access Item; the_Mirror : in remote.World.view);
overriding
procedure motion_Updates_are (Self : in Item; Now : in remote.World.motion_Updates);
--
-- 'Self' must use 'in' as mode to ensure async transmission with DSA.
overriding
function graphics_Models (Self : in Item) return remote.World.graphics_Model_Set;
overriding
function physics_Models (Self : in Item) return remote.World.physics_Model_Set;
overriding
function Sprites (Self : in Item) return remote.World.sprite_model_Pairs;
----------
--- Models
--
-- Graphics Models
--
use type openGL.Model.view;
use type gel.graphics_model_Id;
function Hash is new ada.unchecked_Conversion (gel.graphics_model_Id, ada.Containers.Hash_type);
package id_Maps_of_model is new ada.Containers.hashed_Maps (gel.graphics_model_Id, openGL.Model.view,
Hash, "=");
function local_graphics_Models (Self : in Item) return id_Maps_of_model.Map;
-- Physics Models
--
use type Standard.physics.Model.view,
Standard.physics.model_Id;
function Hash is new ada.unchecked_Conversion (physics.model_Id, ada.Containers.Hash_type);
package id_Maps_of_physics_model is new ada.Containers.hashed_Maps (physics.model_Id, physics.Model.view,
Hash, "=");
function local_physics_Models (Self : in Item) return id_Maps_of_physics_model.Map;
---------
--- Misc
--
procedure wait_on_Evolve (Self : in out Item);
------------------
--- Testing/Debug
--
overriding
procedure kick_Sprite (Self : in out Item; sprite_Id : in gel.Sprite_Id);
private
----------
--- Engine
--
-- task
-- type Engine (the_World : access gel.World.item'Class)
-- is
-- entry start (space_Kind : in physics.space_Kind);
-- entry stop;
--
-- entry reset_Age;
--
-- pragma storage_Size (20_000_000);
-- end Engine;
--
-- type Engine_view is access all Engine;
-----------------
--- Signal Object
--
protected
type signal_Object
is
entry wait;
procedure signal;
private
Open : Boolean := False;
end signal_Object;
type signal_Object_view is access all signal_Object;
----------------------------
--- sprite_transform_Updater
--
-- task
-- type sprite_transform_Updater (the_World : access gel.World.item'Class)
-- is
-- entry stop;
-- end sprite_transform_Updater;
--
-- type sprite_transform_Updater_view is access all sprite_transform_Updater;
---------------------
--- id_Maps_of_sprite
--
use type Sprite.view;
function Hash is new ada.unchecked_Conversion (gel.sprite_Id, ada.Containers.Hash_type);
package id_Maps_of_sprite is new ada.Containers.hashed_Maps (gel.sprite_Id, gel.Sprite.view,
Hash => Hash,
equivalent_Keys => "=");
-----------------------------
--- sprite_Maps_of_transforms
--
function Hash is new ada.unchecked_Conversion (gel.Sprite.view, ada.Containers.Hash_type);
package sprite_Maps_of_transforms is new ada.Containers.hashed_Maps (Sprite.view, Matrix_4x4,
Hash => Hash,
equivalent_Keys => "=");
-------------------------
--- all_sprite_Transforms
--
protected
type all_sprite_Transforms
is
procedure add (the_Sprite : in Sprite.view;
Transform : in Matrix_4x4);
procedure set (To : in sprite_Maps_of_transforms.Map);
function fetch return sprite_Maps_of_transforms.Map;
private
sprite_Map_of_transforms : sprite_Maps_of_transforms.Map;
end all_sprite_Transforms;
-----------------
--- Duration_safe
--
protected
type Duration_safe
is
procedure Duration_is (Now : in Duration);
function Duration return Duration;
private
the_Duration : standard.Duration;
end Duration_safe;
-----------
--- Mirrors
--
use type remote.World.View;
package world_Vectors is new ada.Containers.Vectors (Positive, remote.World.view);
subtype world_Vector is world_Vectors.Vector;
-------------------
--- Engine Commands
--
-- type command_Kind is (add_Sprite,
-- rid_Sprite,
-- -- scale_Sprite,
-- destroy_Sprite,
-- -- update_Bounds,
-- update_Site,
-- -- set_Speed,
-- -- apply_Force,
-- -- set_xy_Spin,
-- -- add_Joint,
-- -- rid_Joint,
-- -- set_Joint_local_Anchor,
-- free_Joint,
-- cast_Ray,
-- new_impact_Response);
-- -- set_Gravity);
--
-- type Command (Kind : command_Kind := command_Kind'First) is
-- record
-- Sprite : gel.Sprite.view;
--
-- case Kind
-- is
-- when add_Sprite =>
-- add_Children : Boolean;
--
-- when rid_Sprite =>
-- rid_Children : Boolean;
--
-- when update_Site =>
-- Site : Vector_3;
--
-- -- when scale_Sprite =>
-- -- Scale : math.Vector_3;
--
-- -- when apply_Force =>
-- -- Force : math.Vector_3;
--
-- -- when set_Speed =>
-- -- Speed : math.Vector_3;
--
-- -- when set_xy_Spin =>
-- -- xy_Spin : math.Radians;
--
-- when --add_Joint |
-- -- rid_Joint |
-- free_Joint =>
-- Joint : gel.Joint.view;
--
-- -- when set_Joint_local_Anchor =>
-- -- anchor_Joint : gel.Joint.view;
-- -- is_Anchor_A : Boolean; -- When false, is anchor B.
-- -- local_Anchor : math.Vector_3;
--
-- when cast_Ray =>
-- From, To : Vector_3;
-- Observer : lace.Observer.view;
-- Context : Any_limited_view;
-- event_Kind : ada.Tags.Tag;
--
-- when new_impact_Response =>
-- Filter : impact_Filter;
-- Response : impact_Response;
--
-- -- when set_Gravity =>
-- -- Gravity : math.Vector_3;
--
-- when others =>
-- null;
-- end case;
-- end record;
--
-- type Commands is array (Positive range 1 .. 200_000) of Command;
--
--
-- protected
-- type safe_command_Set
-- is
-- function is_Empty return Boolean;
--
-- procedure add (the_Command : in Command);
-- procedure Fetch (To : out Commands;
-- Count : out Natural);
-- private
-- Set : Commands;
-- the_Count : Natural := 0;
-- end safe_command_Set;
--
-- type safe_command_Set_view is access all safe_command_Set;
type free_Set is
record
Sprites : gel.Sprite.views (1 .. 10_000);
Count : Natural := 0;
end record;
type free_Sets is array (1 .. 2) of free_Set;
---------------
--- safe_Joints
--
subtype safe_Joints is gel.Joint.views (1 .. 10_000);
protected
type safe_joint_Set
is
function is_Empty return Boolean;
procedure add (the_Joint : in gel.Joint.view);
procedure Fetch (To : out safe_Joints;
Count : out Natural);
private
Set : safe_Joints;
the_Count : Natural := 0;
end safe_joint_Set;
--------------
--- World Item
--
-- TODO: refactor into two subclasses 'local' and 'mirror'.
type Item is limited new lace.Subject_and_deferred_Observer.item
and gel.remote.World.item with
record
local_Subject_and_deferred_Observer : lace.Subject_and_deferred_Observer.view;
Id : world_Id;
space_Kind : physics.space_Kind;
physics_Space : aliased physics.Space.view;
-- physics_Engine : aliased physics.Engine.item;
Renderer : access openGL.Renderer.lean.item'Class; -- Is *not* owned by Item.
Age : Duration := 0.0;
graphics_Models : aliased id_Maps_of_model .Map;
physics_Models : aliased id_Maps_of_physics_model.Map;
Sprites : gel.Sprite.views (1 .. 100_000);
sprite_Count : Index;
all_sprite_Transforms : World.all_sprite_Transforms;
new_sprite_transforms_Available : Signal_Object;
-- sprite_transform_Updater : World.sprite_transform_Updater (Item'Access);
evolver_Done : Signal_Object;
-- Mirrors
--
is_a_Mirror : Boolean := False;
Age_at_last_mirror_update : Duration := 0.0;
Mirrors : World_vector; -- Used by a master world.
id_Map_of_Sprite : id_Maps_of_sprite.Map;
-- Ids
--
last_used_sprite_Id : gel.sprite_Id := 0;
last_used_model_Id : gel.graphics_model_Id := 0;
last_used_physics_model_Id : physics .model_Id := 0;
-- Command sets
--
-- Commands : safe_command_Set_view := new safe_command_Set;
free_Sets : World.free_Sets;
current_free_Set : Integer := 2;
-- Collisions
--
Manifolds : Manifold_array (1 .. 50_000);
manifold_Count : Natural := 0;
-- Broken Joints
--
broken_Joints : safe_joint_Set;
broken_joints_Allowed : Boolean := False;
-- Engine
--
-- Engine : World.Engine (Item'Access);
end record;
end gel.World;
|
programs/oeis/017/A017744.asm | neoneye/loda | 22 | 11653 | <gh_stars>10-100
; A017744: Binomial coefficients C(n,80).
; 1,81,3321,91881,1929501,32801517,470155077,5843355957,64276915527,635627275767,5720645481903,47325339895743,362827605867363,2595612872743443,17427686431277403,110375347398090219,662252084388541314,3778732481511088674,20573099066004816114,107196674080761936594,535983370403809682970,2577824781465941808570,11951733077705730203370,53522978565377835258570,231932907116637286120470,974118209889876601705974,3971405009551035376185894,15738530963776325379699654,60705762288851540750270094,228169934120166135923428974,836623091773942498385906238,2995650425384116687768890078,10484776488844408407191115273,35902416461800550000381697753,120378690489566550001279810113,395529983037147235718490804657,1274485500897474426204025926117,4030129827162283996374892793397,12514613673819723988743088147917,38185616081655055247703268964157,114556848244965165743109806892471,338082405796116708656494795950951,982048893026815201335532502524191,2809116600983680692192337158383151,7916601330044918314360222900897971,21990559250124773095445063613605475,60235010119906987174479956854658475,162762686919748667471467117458332475,434033831785996446590578979888886600
add $0,80
bin $0,80
|
src/Calf/Types/Bool.agda | jonsterling/agda-calf | 29 | 8883 | {-# OPTIONS --prop --without-K --rewriting #-}
module Calf.Types.Bool where
open import Calf.Prelude
open import Calf.Metalanguage
open import Data.Bool public using (Bool; true; false; if_then_else_)
bool : tp pos
bool = U (meta Bool)
|
oeis/325/A325941.asm | neoneye/loda-programs | 11 | 92351 | ; A325941: Expansion of Sum_{k>=1} k * x^(2*k) / (1 + x^k)^2.
; Submitted by <NAME>
; 0,1,-2,5,-4,4,-6,17,-14,6,-10,28,-12,8,-36,49,-16,13,-18,46,-52,12,-22,100,-44,14,-68,64,-28,24,-30,129,-84,18,-92,121,-36,20,-100,166,-40,32,-42,100,-192,24,-46,292,-90,31,-132,118,-52,40,-148,232,-148,30,-58,264,-60,32,-274,321,-176,48,-66,154,-180,48,-70,445,-72,38,-326,172,-212,56,-78,486,-284,42,-82,368,-232,44,-228,364,-88,78,-252,208,-244,48,-260,772,-96,57,-438,331
add $0,1
mov $2,$0
lpb $0
add $1,$2
mov $3,$2
dif $3,$0
sub $0,1
sub $1,$3
mul $1,-1
lpe
mov $0,$1
|
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_gstsegment_h.ads | persan/A-gst | 1 | 15352 | <reponame>persan/A-gst<gh_stars>1-10
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with GLIB; -- with GStreamer.GST_Low_Level.glibconfig_h;
with glib;
with glib.Values;
with System;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstformat_h;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstevent_h;
with glib;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstsegment_h is
-- unsupported macro: GST_TYPE_SEGMENT (gst_segment_get_type())
-- GStreamer
-- * Copyright (C) 2005 <NAME> <<EMAIL>>
-- *
-- * gstsegment.h: Header for GstSegment subsystem
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-- * Boston, MA 02111-1307, USA.
--
type GstSegment;
type u_GstSegment_u_gst_reserved_array is array (0 .. 23) of aliased GLIB.guint8;
--subtype GstSegment is u_GstSegment; -- gst/gstsegment.h:33
--*
-- * GstSegment:
-- * @rate: the rate of the segment
-- * @abs_rate: absolute value of @rate
-- * @format: the format of the segment values
-- * @flags: flags for this segment
-- * @start: the start of the segment
-- * @stop: the stop of the segment
-- * @time: the stream time of the segment
-- * @accum: accumulated segment
-- * @last_stop: last known stop time
-- * @duration: total duration of segment
-- * @applied_rate: the already applied rate to the segment
-- *
-- * A helper structure that holds the configured region of
-- * interest in a media file.
--
--< public >
type GstSegment is record
rate : aliased GLIB.gdouble; -- gst/gstsegment.h:54
abs_rate : aliased GLIB.gdouble; -- gst/gstsegment.h:55
format : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstformat_h.GstFormat; -- gst/gstsegment.h:56
flags : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstevent_h.GstSeekFlags; -- gst/gstsegment.h:57
start : aliased GLIB.gint64; -- gst/gstsegment.h:58
stop : aliased GLIB.gint64; -- gst/gstsegment.h:59
time : aliased GLIB.gint64; -- gst/gstsegment.h:60
accum : aliased GLIB.gint64; -- gst/gstsegment.h:61
last_stop : aliased GLIB.gint64; -- gst/gstsegment.h:63
duration : aliased GLIB.gint64; -- gst/gstsegment.h:64
applied_rate : aliased GLIB.gdouble; -- gst/gstsegment.h:67
u_gst_reserved : aliased u_GstSegment_u_gst_reserved_array; -- gst/gstsegment.h:71
end record;
pragma Convention (C_Pass_By_Copy, GstSegment); -- gst/gstsegment.h:52
-- API added 0.10.6
--< private >
--gpointer _gst_reserved[GST_PADDING-2];
function gst_segment_get_type return GLIB.GType; -- gst/gstsegment.h:74
pragma Import (C, gst_segment_get_type, "gst_segment_get_type");
function gst_segment_new return access GstSegment; -- gst/gstsegment.h:76
pragma Import (C, gst_segment_new, "gst_segment_new");
function gst_segment_copy (segment : access GstSegment) return access GstSegment; -- gst/gstsegment.h:77
pragma Import (C, gst_segment_copy, "gst_segment_copy");
procedure gst_segment_free (segment : access GstSegment); -- gst/gstsegment.h:78
pragma Import (C, gst_segment_free, "gst_segment_free");
procedure gst_segment_init (segment : access GstSegment; format : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstformat_h.GstFormat); -- gst/gstsegment.h:80
pragma Import (C, gst_segment_init, "gst_segment_init");
procedure gst_segment_set_duration
(segment : access GstSegment;
format : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstformat_h.GstFormat;
duration : GLIB.gint64); -- gst/gstsegment.h:82
pragma Import (C, gst_segment_set_duration, "gst_segment_set_duration");
procedure gst_segment_set_last_stop
(segment : access GstSegment;
format : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstformat_h.GstFormat;
position : GLIB.gint64); -- gst/gstsegment.h:83
pragma Import (C, gst_segment_set_last_stop, "gst_segment_set_last_stop");
procedure gst_segment_set_seek
(segment : access GstSegment;
rate : GLIB.gdouble;
format : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstformat_h.GstFormat;
flags : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstevent_h.GstSeekFlags;
start_type : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstevent_h.GstSeekType;
start : GLIB.gint64;
stop_type : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstevent_h.GstSeekType;
stop : GLIB.gint64;
update : access GLIB.gboolean); -- gst/gstsegment.h:85
pragma Import (C, gst_segment_set_seek, "gst_segment_set_seek");
procedure gst_segment_set_newsegment
(segment : access GstSegment;
update : GLIB.gboolean;
rate : GLIB.gdouble;
format : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstformat_h.GstFormat;
start : GLIB.gint64;
stop : GLIB.gint64;
time : GLIB.gint64); -- gst/gstsegment.h:91
pragma Import (C, gst_segment_set_newsegment, "gst_segment_set_newsegment");
procedure gst_segment_set_newsegment_full
(segment : access GstSegment;
update : GLIB.gboolean;
rate : GLIB.gdouble;
applied_rate : GLIB.gdouble;
format : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstformat_h.GstFormat;
start : GLIB.gint64;
stop : GLIB.gint64;
time : GLIB.gint64); -- gst/gstsegment.h:93
pragma Import (C, gst_segment_set_newsegment_full, "gst_segment_set_newsegment_full");
function gst_segment_to_stream_time
(segment : access GstSegment;
format : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstformat_h.GstFormat;
position : GLIB.gint64) return GLIB.gint64; -- gst/gstsegment.h:97
pragma Import (C, gst_segment_to_stream_time, "gst_segment_to_stream_time");
function gst_segment_to_running_time
(segment : access GstSegment;
format : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstformat_h.GstFormat;
position : GLIB.gint64) return GLIB.gint64; -- gst/gstsegment.h:98
pragma Import (C, gst_segment_to_running_time, "gst_segment_to_running_time");
function gst_segment_to_position
(segment : access GstSegment;
format : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstformat_h.GstFormat;
running_time : GLIB.gint64) return GLIB.gint64; -- gst/gstsegment.h:99
pragma Import (C, gst_segment_to_position, "gst_segment_to_position");
function gst_segment_clip
(segment : access GstSegment;
format : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstformat_h.GstFormat;
start : GLIB.gint64;
stop : GLIB.gint64;
clip_start : access GLIB.gint64;
clip_stop : access GLIB.gint64) return GLIB.gboolean; -- gst/gstsegment.h:101
pragma Import (C, gst_segment_clip, "gst_segment_clip");
function gst_segment_set_running_time
(segment : access GstSegment;
format : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstformat_h.GstFormat;
running_time : GLIB.gint64) return GLIB.gboolean; -- gst/gstsegment.h:104
pragma Import (C, gst_segment_set_running_time, "gst_segment_set_running_time");
end GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstsegment_h;
|
programs/oeis/177/A177065.asm | karttu/loda | 1 | 4031 | ; A177065: a(n) = (8*n+3)*(8*n+5).
; 15,143,399,783,1295,1935,2703,3599,4623,5775,7055,8463,9999,11663,13455,15375,17423,19599,21903,24335,26895,29583,32399,35343,38415,41615,44943,48399,51983,55695,59535,63503,67599,71823,76175,80655,85263,89999,94863,99855,104975,110223,115599,121103,126735,132495,138383,144399,150543,156815,163215,169743,176399,183183,190095,197135,204303,211599,219023,226575,234255,242063,249999,258063,266255,274575,283023,291599,300303,309135,318095,327183,336399,345743,355215,364815,374543,384399,394383,404495,414735,425103,435599,446223,456975,467855,478863,489999,501263,512655,524175,535823,547599,559503,571535,583695,595983,608399,620943,633615,646415,659343,672399,685583,698895,712335,725903,739599,753423,767375,781455,795663,809999,824463,839055,853775,868623,883599,898703,913935,929295,944783,960399,976143,992015,1008015,1024143,1040399,1056783,1073295,1089935,1106703,1123599,1140623,1157775,1175055,1192463,1209999,1227663,1245455,1263375,1281423,1299599,1317903,1336335,1354895,1373583,1392399,1411343,1430415,1449615,1468943,1488399,1507983,1527695,1547535,1567503,1587599,1607823,1628175,1648655,1669263,1689999,1710863,1731855,1752975,1774223,1795599,1817103,1838735,1860495,1882383,1904399,1926543,1948815,1971215,1993743,2016399,2039183,2062095,2085135,2108303,2131599,2155023,2178575,2202255,2226063,2249999,2274063,2298255,2322575,2347023,2371599,2396303,2421135,2446095,2471183,2496399,2521743,2547215,2572815,2598543,2624399,2650383,2676495,2702735,2729103,2755599,2782223,2808975,2835855,2862863,2889999,2917263,2944655,2972175,2999823,3027599,3055503,3083535,3111695,3139983,3168399,3196943,3225615,3254415,3283343,3312399,3341583,3370895,3400335,3429903,3459599,3489423,3519375,3549455,3579663,3609999,3640463,3671055,3701775,3732623,3763599,3794703,3825935,3857295,3888783,3920399,3952143,3984015
sub $1,$0
bin $1,2
mul $1,128
add $1,15
|
file/ada_basic/procedure.adb | gerr135/kdevelop_templates | 0 | 24878 | {% load kdev_filters %}
{% block license_header %}
{% if license %}
--
{{ license|lines_prepend:"-- " }}
--
{% endif %}
{% endblock license_header %}
procedure {{ name }} is
begin
end {{ name }};
|
Check Missing Pictures.applescript | AlexanderGalen/applescripts | 3 | 3482 | tell application "QuarkXPress"
tell document 1
set missingimages to missing of every image
if missingimages contains true then
tell application "Keyboard Maestro Engine"
make variable with properties {name:"Missing Images", value:true}
end tell
else
tell application "Keyboard Maestro Engine"
make variable with properties {name:"Missing Images", value:false}
end tell
end if
end tell
end tell |
programs/oeis/272/A272303.asm | jmorken/loda | 1 | 166813 | ; A272303: Magic sums of 4 X 4 semimagic squares composed of primes.
; 114,120,124,126,130,132,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226
mov $5,$0
mul $0,2
lpb $0
sub $0,1
sub $2,4
mov $3,$0
mov $4,$0
trn $0,2
trn $2,$4
add $2,$0
sub $0,1
add $4,1
sub $4,$3
mov $3,$2
add $2,3
add $3,$4
lpe
mov $1,$2
trn $3,4
sub $1,$3
trn $1,1
mul $1,2
lpb $5
add $1,2
sub $5,1
lpe
add $1,114
|
programs/oeis/219/A219636.asm | neoneye/loda | 22 | 245269 | <filename>programs/oeis/219/A219636.asm
; A219636: Complement of A035336.
; 0,1,3,4,5,6,8,9,11,12,13,14,16,17,18,19,21,22,24,25,26,27,29,30,32,33,34,35,37,38,39,40,42,43,45,46,47,48,50,51,52,53,55,56,58,59,60,61,63,64,66,67,68,69,71,72,73,74,76,77,79,80,81,82,84,85,87,88,89,90,92,93,94,95,97,98,100,101,102,103,105,106,107,108,110,111,113,114,115,116,118,119,121,122,123,124,126,127,128,129
seq $0,137709 ; Secondary Upper Wythoff Sequence.
div $0,2
sub $0,1
|
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_sut3.asm | prismotizm/gigaleak | 0 | 101815 | <reponame>prismotizm/gigaleak
Name: zel_sut3.asm
Type: file
Size: 67184
Last-Modified: '2016-05-13T04:25:37Z'
SHA-1: 55D9C0D82D631C9009940548E1A3339CFE66AF0B
Description: null
|
Fsm.g4 | jconallen/dcs906-fsm-dsl | 0 | 7239 | grammar Fsm;
@header {
package net.conallen.fsmdsl;
}
machine : LBRACE WS* statement ( ',' statement )* WS* RBRACE;
statement:
start_state WS* transition WS* end_state
;
transition :
HYPHEN input ARROW
;
input : CHAR | STRING;
start_state: state ;
end_state: state;
state: intermediate_state | final_state;
intermediate_state: LPAREN state_name RPAREN ;
final_state: LBRACKET state_name RBRACKET ;
state_name: CHAR | STRING;
WS : [ \t\r\n]+ -> skip ;
CHAR : ([a-z]|[A-Z]|[0-9]|SPACE) ;
STRING : CHAR CHAR* ;
LPAREN: '(';
RPAREN: ')';
LBRACKET: '[';
RBRACKET: ']';
LBRACE: '{';
RBRACE: '}';
ARROW: '->';
HYPHEN: '-';
SPACE: ' ';
COMMA: ',';
|
sources/ippcp/asm_intel64/pcprij128decryptcfbpipee9as.asm | idesai/ipp-crypto | 1 | 166401 | <filename>sources/ippcp/asm_intel64/pcprij128decryptcfbpipee9as.asm<gh_stars>1-10
;===============================================================================
; Copyright 2015-2018 Intel Corporation
; All Rights Reserved.
;
; If this software was obtained under the Intel Simplified Software License,
; the following terms apply:
;
; The source code, information and material ("Material") contained herein is
; owned by Intel Corporation or its suppliers or licensors, and title to such
; Material remains with Intel Corporation or its suppliers or licensors. The
; Material contains proprietary information of Intel or its suppliers and
; licensors. The Material is protected by worldwide copyright laws and treaty
; provisions. No part of the Material may be used, copied, reproduced,
; modified, published, uploaded, posted, transmitted, distributed or disclosed
; in any way without Intel's prior express written permission. No license under
; any patent, copyright or other intellectual property rights in the Material
; is granted to or conferred upon you, either expressly, by implication,
; inducement, estoppel or otherwise. Any license under such intellectual
; property rights must be express and approved by Intel in writing.
;
; Unless otherwise agreed by Intel in writing, you may not remove or alter this
; notice or any other notice embedded in Materials by Intel or Intel's
; suppliers or licensors in any way.
;
;
; If this software was obtained under the Apache License, Version 2.0 (the
; "License"), the following terms apply:
;
; You may not use this file except in compliance with the License. You may
; obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
;
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;
; See the License for the specific language governing permissions and
; limitations under the License.
;===============================================================================
;
;
; Purpose: Cryptography Primitive.
; Rijndael Inverse Cipher function
;
; Content:
; Decrypt_RIJ128_AES_NI()
;
;
include asmdefs.inc
include ia_32e.inc
include pcpvariant.inc
IF (_AES_NI_ENABLING_ EQ _FEATURE_ON_) OR (_AES_NI_ENABLING_ EQ _FEATURE_TICKTOCK_)
IF (_IPP32E GE _IPP32E_Y8)
COPY_8U MACRO dst, src, limit, tmp
LOCAL next_byte
xor rcx, rcx
next_byte:
mov tmp, byte ptr[src+rcx]
mov byte ptr[dst+rcx], tmp
add rcx, 1
cmp rcx, limit
jl next_byte
ENDM
COPY_32U MACRO dst, src, limit, tmp
LOCAL next_dword
xor rcx, rcx
next_dword:
mov tmp, dword ptr[src+rcx]
mov dword ptr[dst+rcx], tmp
add rcx, 4
cmp rcx, limit
jl next_dword
ENDM
COPY_128U MACRO dst, src, limit, tmp
LOCAL next_oword
xor rcx, rcx
next_oword:
movdqu tmp, oword ptr[src+rcx]
movdqu oword ptr[dst+rcx], tmp
add rcx, 16
cmp rcx, limit
jl next_oword
ENDM
IPPCODE SEGMENT 'CODE' ALIGN (IPP_ALIGN_FACTOR)
;***************************************************************
;* Purpose: pipelined RIJ128 CFB decryption
;*
;* void DecryptCFB_RIJ128pipe_AES_NI(const Ipp32u* inpBlk,
;* Ipp32u* outBlk,
;* int nr,
;* const Ipp32u* pRKey,
;* int cfbBlks,
;* int cfbSize,
;* const Ipp8u* pIV)
;***************************************************************
;;
;; Lib = Y8
;;
;; Caller = ippsRijndael128DecryptCFB
;;
ALIGN IPP_ALIGN_FACTOR
IPPASM DecryptCFB_RIJ128pipe_AES_NI PROC PUBLIC FRAME
USES_GPR rsi,rdi,r13,r14,r15
LOCAL_FRAME = (1+4+4)*16
USES_XMM xmm6,xmm7
COMP_ABI 7
;; rdi: pInpBlk: PTR DWORD, ; input blocks address
;; rsi: pOutBlk: PTR DWORD, ; output blocks address
;; rdx: nr: DWORD, ; number of rounds
;; rcx pKey: PTR DWORD ; key material address
;; r8d cfbBlks: DWORD ; length of stream in cfbSize
;; r9d cfbSize: DWORD ; cfb blk size
;; [rsp+ARG_7] pIV PTR BYTE ; pointer to the IV
SC equ (4)
BLKS_PER_LOOP = (4)
mov rax, [rsp+ARG_7] ; IV address
movdqu xmm4, oword ptr[rax] ; get IV
movdqa oword ptr [rsp+0*16], xmm4 ; into the stack
mov r13, rdi
mov r14, rsi
mov r15, rcx
movsxd r8, r8d ; length of stream
movsxd r9, r9d ; cfb blk size
sub r8, BLKS_PER_LOOP
jl short_input
;;
;; pipelined processing
;;
lea r10, [r9*BLKS_PER_LOOP]
blks_loop:
COPY_32U <rsp+16>, r13, r10, r11d ; move 4 input blocks to stack
movdqa xmm4, oword ptr[r15]
lea r10, [r9+r9*2]
movdqa xmm0, oword ptr [rsp] ; get encoded blocks
movdqu xmm1, oword ptr [rsp+r9]
movdqu xmm2, oword ptr [rsp+r9*2]
movdqu xmm3, oword ptr [rsp+r10]
mov r10, r15 ; set pointer to the key material
pxor xmm0, xmm4 ; whitening
pxor xmm1, xmm4
pxor xmm2, xmm4
pxor xmm3, xmm4
movdqa xmm4, oword ptr[r10+16] ; pre load operation's keys
add r10, 16
mov r11, rdx ; counter depending on key length
sub r11, 1
cipher_loop:
aesenc xmm0, xmm4 ; regular round
aesenc xmm1, xmm4
aesenc xmm2, xmm4
aesenc xmm3, xmm4
movdqa xmm4, oword ptr [r10+16]; pre load operation's keys
add r10, 16
dec r11
jnz cipher_loop
aesenclast xmm0, xmm4 ; irregular round and IV
aesenclast xmm1, xmm4
aesenclast xmm2, xmm4
aesenclast xmm3, xmm4
lea r10, [r9+r9*2] ; get src blocks from the stack
movdqa xmm4, oword ptr[rsp+16]
movdqu xmm5, oword ptr[rsp+16+r9]
movdqu xmm6, oword ptr[rsp+16+r9*2]
movdqu xmm7, oword ptr[rsp+16+r10]
pxor xmm0, xmm4 ; xor src
movdqa oword ptr[rsp+5*16],xmm0;and store into the stack
pxor xmm1, xmm5
movdqu oword ptr[rsp+5*16+r9], xmm1
pxor xmm2, xmm6
movdqu oword ptr[rsp+5*16+r9*2], xmm2
pxor xmm3, xmm7
movdqu oword ptr[rsp+5*16+r10], xmm3
lea r10, [r9*BLKS_PER_LOOP]
;COPY_8U r14, <rsp+5*16>, r10 ; move 4 blocks to output
COPY_32U r14, <rsp+5*16>, r10, r11d ; move 4 blocks to output
movdqu xmm0, oword ptr[rsp+r10]; update IV
movdqu oword ptr[rsp], xmm0
add r13, r10
add r14, r10
sub r8, BLKS_PER_LOOP
jge blks_loop
;;
;; block-by-block processing
;;
short_input:
add r8, BLKS_PER_LOOP
jz quit
lea r10, [r9*2]
lea r11, [r9+r9*2]
cmp r8, 2
cmovl r10, r9
cmovg r10, r11
COPY_8U <rsp+16>, r13, r10, al ; move recent input blocks to stack
; get actual address of key material: pRKeys += (nr-9) * SC
lea rax,[rdx*4]
lea rax, [r15+rax*4-9*(SC)*4] ; AES-128 round keys
xor r11, r11 ; index
single_blk_loop:
movdqu xmm0, oword ptr[rsp+r11] ; get encoded block
pxor xmm0, oword ptr [r15] ; whitening
cmp rdx,12 ; switch according to number of rounds
jl key_128_s
jz key_192_s
key_256_s:
aesenc xmm0, oword ptr[rax-4*4*SC]
aesenc xmm0, oword ptr[rax-3*4*SC]
key_192_s:
aesenc xmm0, oword ptr[rax-2*4*SC]
aesenc xmm0, oword ptr[rax-1*4*SC]
key_128_s:
aesenc xmm0, oword ptr[rax+0*4*SC]
aesenc xmm0, oword ptr[rax+1*4*SC]
aesenc xmm0, oword ptr[rax+2*4*SC]
aesenc xmm0, oword ptr[rax+3*4*SC]
aesenc xmm0, oword ptr[rax+4*4*SC]
aesenc xmm0, oword ptr[rax+5*4*SC]
aesenc xmm0, oword ptr[rax+6*4*SC]
aesenc xmm0, oword ptr[rax+7*4*SC]
aesenc xmm0, oword ptr[rax+8*4*SC]
aesenclast xmm0, oword ptr[rax+9*4*SC]
movdqu xmm1, oword ptr[rsp+r11+16] ; get input block from the stack
pxor xmm0, xmm1 ; xor src
movdqu oword ptr[rsp+5*16+r11], xmm0 ; and save output
add r11, r9
dec r8
jnz single_blk_loop
COPY_8U r14, <rsp+5*16>, r10, al ; copy rest output from the stack
quit:
REST_XMM
REST_GPR
ret
IPPASM DecryptCFB_RIJ128pipe_AES_NI ENDP
ALIGN IPP_ALIGN_FACTOR
IPPASM DecryptCFB32_RIJ128pipe_AES_NI PROC PUBLIC FRAME
USES_GPR rsi,rdi,r13,r14,r15
LOCAL_FRAME = (1+4+4)*16
USES_XMM xmm6,xmm7
COMP_ABI 7
;; rdi: pInpBlk: PTR DWORD, ; input blocks address
;; rsi: pOutBlk: PTR DWORD, ; output blocks address
;; rdx: nr: DWORD, ; number of rounds
;; rcx pKey: PTR DWORD ; key material address
;; r8d cfbBlks: DWORD ; length of stream in cfbSize
;; r9d cfbSize: DWORD ; cfb blk size (4 bytes multible)
;; [rsp+ARG_7] pIV PTR BYTE ; pointer to the IV
SC equ (4)
BLKS_PER_LOOP = (4)
mov rax, [rsp+ARG_7] ; IV address
movdqu xmm4, oword ptr[rax] ; get IV
movdqa oword ptr [rsp+0*16], xmm4 ; into the stack
mov r13, rdi
mov r14, rsi
mov r15, rcx
movsxd r8, r8d ; length of stream
movsxd r9, r9d ; cfb blk size
sub r8, BLKS_PER_LOOP
jl short_input
;;
;; pipelined processing
;;
lea r10, [r9*BLKS_PER_LOOP]
blks_loop:
COPY_128U <rsp+16>, r13, r10, xmm0 ; move 4 input blocks to stack
movdqa xmm4, oword ptr[r15]
lea r10, [r9+r9*2]
movdqa xmm0, oword ptr [rsp] ; get encoded blocks
movdqu xmm1, oword ptr [rsp+r9]
movdqu xmm2, oword ptr [rsp+r9*2]
movdqu xmm3, oword ptr [rsp+r10]
mov r10, r15 ; set pointer to the key material
pxor xmm0, xmm4 ; whitening
pxor xmm1, xmm4
pxor xmm2, xmm4
pxor xmm3, xmm4
movdqa xmm4, oword ptr[r10+16] ; pre load operation's keys
add r10, 16
mov r11, rdx ; counter depending on key length
sub r11, 1
cipher_loop:
aesenc xmm0, xmm4 ; regular round
aesenc xmm1, xmm4
aesenc xmm2, xmm4
aesenc xmm3, xmm4
movdqa xmm4, oword ptr [r10+16]; pre load operation's keys
add r10, 16
dec r11
jnz cipher_loop
aesenclast xmm0, xmm4 ; irregular round and IV
aesenclast xmm1, xmm4
aesenclast xmm2, xmm4
aesenclast xmm3, xmm4
lea r10, [r9+r9*2] ; get src blocks from the stack
movdqa xmm4, oword ptr[rsp+16]
movdqu xmm5, oword ptr[rsp+16+r9]
movdqu xmm6, oword ptr[rsp+16+r9*2]
movdqu xmm7, oword ptr[rsp+16+r10]
pxor xmm0, xmm4 ; xor src
movdqa oword ptr[rsp+5*16],xmm0;and store into the stack
pxor xmm1, xmm5
movdqu oword ptr[rsp+5*16+r9], xmm1
pxor xmm2, xmm6
movdqu oword ptr[rsp+5*16+r9*2], xmm2
pxor xmm3, xmm7
movdqu oword ptr[rsp+5*16+r10], xmm3
lea r10, [r9*BLKS_PER_LOOP]
COPY_128U r14, <rsp+5*16>, r10, xmm0 ; move 4 blocks to output
movdqu xmm0, oword ptr[rsp+r10] ; update IV
movdqu oword ptr[rsp], xmm0
add r13, r10
add r14, r10
sub r8, BLKS_PER_LOOP
jge blks_loop
;;
;; block-by-block processing
;;
short_input:
add r8, BLKS_PER_LOOP
jz quit
lea r10, [r9*2]
lea r11, [r9+r9*2]
cmp r8, 2
cmovl r10, r9
cmovg r10, r11
COPY_32U <rsp+16>, r13, r10, eax ; move recent input blocks to stack
; get actual address of key material: pRKeys += (nr-9) * SC
lea rax,[rdx*4]
lea rax, [r15+rax*4-9*(SC)*4] ; AES-128 round keys
xor r11, r11 ; index
single_blk_loop:
movdqu xmm0, oword ptr[rsp+r11] ; get encoded block
pxor xmm0, oword ptr [r15] ; whitening
cmp rdx,12 ; switch according to number of rounds
jl key_128_s
jz key_192_s
key_256_s:
aesenc xmm0, oword ptr[rax-4*4*SC]
aesenc xmm0, oword ptr[rax-3*4*SC]
key_192_s:
aesenc xmm0, oword ptr[rax-2*4*SC]
aesenc xmm0, oword ptr[rax-1*4*SC]
key_128_s:
aesenc xmm0, oword ptr[rax+0*4*SC]
aesenc xmm0, oword ptr[rax+1*4*SC]
aesenc xmm0, oword ptr[rax+2*4*SC]
aesenc xmm0, oword ptr[rax+3*4*SC]
aesenc xmm0, oword ptr[rax+4*4*SC]
aesenc xmm0, oword ptr[rax+5*4*SC]
aesenc xmm0, oword ptr[rax+6*4*SC]
aesenc xmm0, oword ptr[rax+7*4*SC]
aesenc xmm0, oword ptr[rax+8*4*SC]
aesenclast xmm0, oword ptr[rax+9*4*SC]
movdqu xmm1, oword ptr[rsp+r11+16] ; get input block from the stack
pxor xmm0, xmm1 ; xor src
movdqu oword ptr[rsp+5*16+r11], xmm0 ; and save output
add r11, r9
dec r8
jnz single_blk_loop
COPY_32U r14, <rsp+5*16>, r10, eax ; copy rest output from the stack
quit:
REST_XMM
REST_GPR
ret
IPPASM DecryptCFB32_RIJ128pipe_AES_NI ENDP
;;
;; Lib = Y8
;;
;; Caller = ippsRijndael128DecryptCFB
;;
ALIGN IPP_ALIGN_FACTOR
IPPASM DecryptCFB128_RIJ128pipe_AES_NI PROC PUBLIC FRAME
USES_GPR rsi,rdi
LOCAL_FRAME = 0
USES_XMM xmm6,xmm7
COMP_ABI 6
;; rdi: pInpBlk: PTR DWORD, ; input blocks address
;; rsi: pOutBlk: PTR DWORD, ; output blocks address
;; rdx: nr: DWORD, ; number of rounds
;; rcx pKey: PTR DWORD ; key material address
;; r8d lenBytes: DWORD ; length of stream in bytes
;; r9 pIV PTR BYTE ; pointer to the IV
SC equ (4)
BLKS_PER_LOOP = (4)
BYTES_PER_BLK = (16)
BYTES_PER_LOOP = (BYTES_PER_BLK*BLKS_PER_LOOP)
movdqu xmm0, oword ptr[r9] ; get IV
movsxd r8, r8d ; length of the stream
sub r8, BYTES_PER_LOOP
jl short_input
;;
;; pipelined processing
;;
blks_loop:
movdqa xmm7, oword ptr[rcx] ; get initial key material
mov r10, rcx ; set pointer to the key material
movdqu xmm1, oword ptr [rdi+0*BYTES_PER_BLK] ; get another encoded cblocks
movdqu xmm2, oword ptr [rdi+1*BYTES_PER_BLK]
movdqu xmm3, oword ptr [rdi+2*BYTES_PER_BLK]
pxor xmm0, xmm7 ; whitening
pxor xmm1, xmm7
pxor xmm2, xmm7
pxor xmm3, xmm7
movdqa xmm7, oword ptr[r10+16] ; pre load operation's keys
add r10, 16
mov r11, rdx ; counter depending on key length
sub r11, 1
cipher_loop:
aesenc xmm0, xmm7 ; regular round
aesenc xmm1, xmm7
aesenc xmm2, xmm7
aesenc xmm3, xmm7
movdqa xmm7, oword ptr [r10+16] ; pre load operation's keys
add r10, 16
dec r11
jnz cipher_loop
aesenclast xmm0, xmm7 ; irregular round and IV
movdqu xmm4, oword ptr[rdi+0*BYTES_PER_BLK] ; 4 input blocks
aesenclast xmm1, xmm7
movdqu xmm5, oword ptr[rdi+1*BYTES_PER_BLK]
aesenclast xmm2, xmm7
movdqu xmm6, oword ptr[rdi+2*BYTES_PER_BLK]
aesenclast xmm3, xmm7
movdqu xmm7, oword ptr[rdi+3*BYTES_PER_BLK]
add rdi, BYTES_PER_LOOP
pxor xmm0, xmm4 ; 4 output blocks
movdqu oword ptr[rsi+0*16], xmm0
pxor xmm1, xmm5
movdqu oword ptr[rsi+1*16], xmm1
pxor xmm2, xmm6
movdqu oword ptr[rsi+2*16], xmm2
pxor xmm3, xmm7
movdqu oword ptr[rsi+3*16], xmm3
add rsi, BYTES_PER_LOOP
movdqa xmm0, xmm7 ; update IV
sub r8, BYTES_PER_LOOP
jge blks_loop
;;
;; block-by-block processing
;;
short_input:
add r8, BYTES_PER_LOOP
jz quit
; get actual address of key material: pRKeys += (nr-9) * SC
lea rax,[rdx*4]
lea rax, [rcx+rax*4-9*(SC)*4] ; AES-128 round keys
single_blk_loop:
pxor xmm0, oword ptr [rcx] ; whitening
cmp rdx,12 ; switch according to number of rounds
jl key_128_s
jz key_192_s
key_256_s:
aesenc xmm0, oword ptr[rax-4*4*SC]
aesenc xmm0, oword ptr[rax-3*4*SC]
key_192_s:
aesenc xmm0, oword ptr[rax-2*4*SC]
aesenc xmm0, oword ptr[rax-1*4*SC]
key_128_s:
aesenc xmm0, oword ptr[rax+0*4*SC]
aesenc xmm0, oword ptr[rax+1*4*SC]
aesenc xmm0, oword ptr[rax+2*4*SC]
aesenc xmm0, oword ptr[rax+3*4*SC]
aesenc xmm0, oword ptr[rax+4*4*SC]
aesenc xmm0, oword ptr[rax+5*4*SC]
aesenc xmm0, oword ptr[rax+6*4*SC]
aesenc xmm0, oword ptr[rax+7*4*SC]
aesenc xmm0, oword ptr[rax+8*4*SC]
aesenclast xmm0, oword ptr[rax+9*4*SC]
movdqu xmm1, oword ptr[rdi] ; input block from the stream
add rdi, BYTES_PER_BLK
pxor xmm0, xmm1 ; xor src
movdqu oword ptr[rsi], xmm0 ; and save output
add rsi, BYTES_PER_BLK
movdqa xmm0, xmm1 ; update IV
sub r8, BYTES_PER_BLK
jnz single_blk_loop
quit:
REST_XMM
REST_GPR
ret
IPPASM DecryptCFB128_RIJ128pipe_AES_NI ENDP
ENDIF
ENDIF ;; _AES_NI_ENABLING_
END
|
Cubical/DStructures/Equivalences/PreXModReflGraph.agda | Schippmunk/cubical | 0 | 2994 |
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.DStructures.Equivalences.PreXModReflGraph where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.HLevels
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.Univalence
open import Cubical.Foundations.Structure
open import Cubical.Functions.FunExtEquiv
open import Cubical.Homotopy.Base
open import Cubical.Data.Sigma
open import Cubical.Data.Unit
open import Cubical.Relation.Binary
open import Cubical.Structures.Subtype
open import Cubical.Algebra.Group
open import Cubical.Structures.LeftAction
open import Cubical.Algebra.Group.Semidirect
open import Cubical.DStructures.Base
open import Cubical.DStructures.Meta.Properties
open import Cubical.DStructures.Meta.Isomorphism
open import Cubical.DStructures.Structures.Constant
open import Cubical.DStructures.Structures.Type
open import Cubical.DStructures.Structures.Group
open import Cubical.DStructures.Structures.SplitEpi
open import Cubical.DStructures.Structures.ReflGraph
open import Cubical.DStructures.Structures.Action
open import Cubical.DStructures.Structures.XModule
open import Cubical.DStructures.Equivalences.GroupSplitEpiAction
private
variable
ℓ ℓ' ℓ'' ℓ₁ ℓ₁' ℓ₁'' ℓ₂ ℓA ℓA' ℓ≅A ℓ≅A' ℓB ℓB' ℓ≅B ℓC ℓ≅C ℓ≅ᴰ ℓ≅ᴰ' ℓ≅B' : Level
open Kernel
open GroupHom -- such .fun!
open GroupLemmas
open MorphismLemmas
open ActionLemmas
{-
After associating, we have
B × isEqui - B × isSecRet
| / |
| / |
Action ≃ SplitMono
Fix any action and its
corresponding split mono
α π₂
G₀ --> H ↦ G₀ ↔ H ⋊⟨ α ⟩ G₀
ι₂
Precrossed module
α : G₀ --> H
φ : G₀ ← H
isEquivariant (α , φ)
gives internal reflexive graph
ι₂ : G₀ → H⋊⟨ α ⟩ G₀
G₀ ← H⋊⟨ α ⟩ G₀ : π₂
G₀ ← H⋊⟨ α ⟩ G₀ : τ_φ
τ_φ (h , g) := φ h + g
isSecRet (ι₂ , π₂)
isSecRet (ι₂ , τ_φ)
Conversely, a internal reflexive graph
ι₂ : G₀ → H⋊⟨ α ⟩ G₀
G₀ ← H⋊⟨ α ⟩ G₀ : π₂
G₀ ← H⋊⟨ α ⟩ G₀ : τ
isSecRet (ι₂ , π₂)
isSecRet (ι₂ , τ)
Then
ι₁ : H ≃ ker σ ↪ H ⋊⟨ α ⟩ G₀
α : G₀ --> H
G₀ ← H : φ
φ := τ ∘ ι₁ is equivariant
-}
module _ (ℓ ℓ' : Level) where
private
ℓℓ' = ℓ-max ℓ ℓ'
F = Iso.fun (IsoActionSplitEpi ℓ ℓℓ')
-- reassociate: Display B + isSplitEpi over SplitEpi
ReflGraph' = Σ[ (((G₀ , G₁) , (ι , σ)) , split-σ) ∈ SplitEpi ℓ ℓℓ' ] Σ[ τ ∈ GroupHom G₁ G₀ ] isGroupSplitEpi ι τ
𝒮ᴰ-ReflGraph' : URGStrᴰ (𝒮-SplitEpi ℓ ℓℓ')
(λ (((G₀ , G₁) , (ι , σ)) , split-σ) → Σ[ τ ∈ GroupHom G₁ G₀ ] isGroupSplitEpi ι τ)
ℓℓ'
𝒮ᴰ-ReflGraph' = splitTotal-𝒮ᴰ (𝒮-SplitEpi ℓ ℓℓ') (𝒮ᴰ-G²FBSplit\B ℓ ℓℓ') (𝒮ᴰ-ReflGraph ℓ ℓℓ')
-- reassociate: Display B + isEquivar over Action
PreXModule' = Σ[ (((G₀ , H) , _α_) , isAct) ∈ Action ℓ ℓℓ' ] Σ[ φ ∈ GroupHom H G₀ ] (isEquivariant (((G₀ , H) , _α_) , isAct) φ)
𝒮ᴰ-PreXModule' : URGStrᴰ (𝒮-Action ℓ ℓℓ')
(λ (((G₀ , H) , _α_) , isAct) → Σ[ φ ∈ GroupHom H G₀ ] (isEquivariant (((G₀ , H) , _α_) , isAct) φ))
ℓℓ'
𝒮ᴰ-PreXModule' = splitTotal-𝒮ᴰ (𝒮-Action ℓ ℓℓ') (𝒮ᴰ-Action\PreXModuleStr ℓ ℓℓ') (𝒮ᴰ-PreXModule ℓ ℓℓ')
-- Establish ♭-relational isomorphism of precrossed modules and reflexive graphs
-- over the isomorphism of actions and split epis
𝒮ᴰ-♭PIso-PreXModule'-ReflGraph' : 𝒮ᴰ-♭PIso F 𝒮ᴰ-PreXModule' 𝒮ᴰ-ReflGraph'
RelIso.fun (𝒮ᴰ-♭PIso-PreXModule'-ReflGraph' (((G₀ , H) , _α_) , isAct)) (φ , isEqui) .fst = τ
where
-- notation
open GroupNotation₀ G₀
open GroupNotationᴴ H
f = GroupHom.fun φ
A = groupaction _α_ isAct
H⋊G₀ : Group {ℓ-max ℓ ℓ'}
H⋊G₀ = H ⋊⟨ A ⟩ G₀
-- define the morphism τ
τ : GroupHom H⋊G₀ G₀
τ .fun (h , g) = f h +₀ g
τ .isHom (h , g) (h' , g') = q
where
abstract
q = f (h +ᴴ (g α h')) +₀ (g +₀ g')
≡⟨ cong (_+₀ (g +₀ g')) (φ .isHom h (g α h')) ⟩
(f h +₀ f (g α h')) +₀ (g +₀ g')
≡⟨ cong (λ z → (f h +₀ z) +₀ (g +₀ g')) (isEqui g h') ⟩
(f h +₀ ((g +₀ (f h')) -₀ g)) +₀ (g +₀ g')
≡⟨ cong (λ z → (f h +₀ z) +₀ (g +₀ g') ) (sym (assoc₀ g (f h') (-₀ g))) ⟩
(f h +₀ (g +₀ (f h' +₀ (-₀ g)))) +₀ (g +₀ g')
≡⟨ cong (_+₀ (g +₀ g')) (assoc₀ (f h) g (f h' +₀ (-₀ g))) ⟩
((f h +₀ g) +₀ (f h' +₀ (-₀ g))) +₀ (g +₀ g')
≡⟨ sym (assoc₀ (f h +₀ g) (f h' +₀ (-₀ g)) (g +₀ g')) ⟩
(f h +₀ g) +₀ ((f h' +₀ (-₀ g)) +₀ (g +₀ g'))
≡⟨ cong ((f h +₀ g) +₀_)
(sym (assoc₀ (f h') (-₀ g) (g +₀ g'))
∙ (cong (f h' +₀_)
(assoc₀ (-₀ g) g g'
∙∙ cong (_+₀ g') (lCancel₀ g)
∙∙ lId₀ g')))⟩
(f h +₀ g) +₀ (f h' +₀ g') ∎
RelIso.fun (𝒮ᴰ-♭PIso-PreXModule'-ReflGraph' (((G₀ , H) , _α_) , isAct)) (φ , isEqui) .snd = q
where
-- notation
open GroupNotation₀ G₀
open GroupNotationᴴ H
f = GroupHom.fun φ
τ = RelIso.fun (𝒮ᴰ-♭PIso-PreXModule'-ReflGraph' (((G₀ , H) , _α_) , isAct)) (φ , isEqui) .fst
ι = Iso.fun (IsoActionSplitEpi ℓ ℓℓ') (((G₀ , H) , _α_) , isAct) .fst .snd .fst
-- prove that τ as constructed above is split
abstract
q : isGroupSplitEpi ι τ
q = GroupMorphismExt λ g → f 0ᴴ +₀ g
≡⟨ cong (_+₀ g) (mapId φ) ⟩
0₀ +₀ g
≡⟨ lId₀ g ⟩
g ∎
-- end of RelIso.fun (𝒮ᴰ-♭PIso-PreXModule'-ReflGraph' (((G₀ , H) , _α_) , isAct)) (φ , isEqui)
RelIso.inv (𝒮ᴰ-♭PIso-PreXModule'-ReflGraph' (((G₀ , H) , _α_) , isAct)) (τ , split-τ) = φ , isEqui
where
-- notation
ℬ = F (((G₀ , H) , _α_) , isAct)
A = groupaction _α_ isAct
-- σ = snd (snd (fst ℬ))
-- φ should be τ| ker σ
-- but ker σ ≅ H so we "restrict" τ to that
-- by precomposing with the inclusion H → H⋊G₀
ι1 = ι₁ A
𝒾 = ι1 .fun
t = τ .fun
H⋊G₀ = H ⋊⟨ A ⟩ G₀
_+α_ = GroupStr._+_ (snd H⋊G₀)
open GroupNotationᴴ H
open GroupNotation₀ G₀
-- define φ
φ : GroupHom H G₀
φ = compGroupHom ι1 τ
f = φ .fun
-- prove equivariance
abstract
isEqui : isEquivariant (((G₀ , H) , _α_) , isAct) φ
isEqui g h = f (g α h)
≡⟨ refl ⟩
t (g α h , 0₀)
≡⟨ cong t
(g α h , 0₀
≡⟨ ΣPathP (sym ((cong (_+ᴴ ((g +₀ 0₀) α 0ᴴ)) (lIdᴴ (g α h)))
∙∙ cong ((g α h) +ᴴ_) (actOnUnit A (g +₀ 0₀))
∙∙ rIdᴴ (g α h))
, sym (cong (_+₀ (-₀ g)) (rId₀ g) ∙ rCancel₀ g)) ⟩
(0ᴴ +ᴴ (g α h)) +ᴴ ((g +₀ 0₀) α 0ᴴ) , (g +₀ 0₀) -₀ g
≡⟨ refl ⟩
((0ᴴ , g) +α (h , 0₀)) +α (0ᴴ , -₀ g) ∎) ⟩
t (((0ᴴ , g) +α (h , 0₀)) +α (0ᴴ , -₀ g))
≡⟨ hom-homl τ (0ᴴ , g) (h , 0₀) (0ᴴ , -₀ g) ⟩
((t (0ᴴ , g)) +₀ t (h , 0₀)) +₀ t (0ᴴ , -₀ g)
≡⟨ cong (((t (0ᴴ , g)) +₀ t (h , 0₀)) +₀_) (funExt⁻ (cong fun split-τ) (-₀ g)) ⟩
((t (0ᴴ , g)) +₀ t (h , 0₀)) -₀ g
≡⟨ cong (λ z → (z +₀ t (h , 0₀)) -₀ g) (funExt⁻ (cong fun split-τ) g) ⟩
(g +₀ f h) -₀ g ∎
-- RelIso.inv (𝒮ᴰ-♭PIso-PreXModule'-ReflGraph' (((G₀ , H) , _α_) , isAct)) (τ , split-τ)
RelIso.leftInv (𝒮ᴰ-♭PIso-PreXModule'-ReflGraph' (((G₀ , H) , _α_) , isAct)) (φ , isEqui) .fst = φ-≅
where
open GroupNotation₀ G₀
abstract
-- φ ≅ inv (fun φ) ≡ τ ∘ ι₁
φ-≅ : (h : ⟨ H ⟩) → φ .fun h +₀ 0₀ ≡ φ .fun h
φ-≅ h = rId₀ (φ .fun h)
RelIso.leftInv (𝒮ᴰ-♭PIso-PreXModule'-ReflGraph' (((G₀ , H) , _α_) , isAct)) (φ , isEqui) .snd = isEqui-≅
where
abstract
isEqui-≅ : Unit
isEqui-≅ = tt
-- end of RelIso.leftInv (𝒮ᴰ-♭PIso-PreXModule'-ReflGraph' (((G₀ , H) , _α_) , isAct)) (φ , isEqui)
RelIso.rightInv (𝒮ᴰ-♭PIso-PreXModule'-ReflGraph' (((G₀ , H) , _α_) , isAct)) (τ , split-τ) .fst = τ-≅
where
A = groupaction _α_ isAct
H⋊G₀ = H ⋊⟨ A ⟩ G₀
t = τ .fun
open GroupNotation₀ G₀
open GroupNotationᴴ H
abstract
τ-≅ : ((h , g) : ⟨ H⋊G₀ ⟩) → t (h , 0₀) +₀ g ≡ t (h , g)
τ-≅ (h , g) = t (h , 0₀) +₀ g
≡⟨ cong (t (h , 0₀) +₀_) (sym (funExt⁻ (cong GroupHom.fun split-τ) g)) ⟩
t (h , 0₀) +₀ t (0ᴴ , g)
≡⟨ sym (τ .isHom (h , 0₀) (0ᴴ , g)) ⟩
t (h +ᴴ (0₀ α 0ᴴ) , 0₀ +₀ g)
≡⟨ cong t (ΣPathP (cong (h +ᴴ_) (actOnUnit A 0₀) ∙ rIdᴴ h , lId₀ g)) ⟩
t (h , g) ∎
RelIso.rightInv (𝒮ᴰ-♭PIso-PreXModule'-ReflGraph' (((G₀ , H) , _α_) , isAct)) (τ , split-τ) .snd = split-τ-≅
where
abstract
split-τ-≅ : Unit
split-τ-≅ = tt
-- end of RelIso.rightInv (𝒮ᴰ-♭PIso-PreXModule'-ReflGraph' (((G₀ , H) , _α_) , isAct)) (τ , split-τ)
-- end of 𝒮ᴰ-♭PIso-PreXModule'-ReflGraph' : 𝒮ᴰ-♭PIso F 𝒮ᴰ-PreXModule' 𝒮ᴰ-ReflGraph'
-- turn the ♭-relational isomorphism into a (normal) iso
Iso-PreXModule-ReflGraph' : Iso PreXModule' ReflGraph'
Iso-PreXModule-ReflGraph' = 𝒮ᴰ-♭PIso-Over→TotalIso (IsoActionSplitEpi ℓ ℓℓ') 𝒮ᴰ-PreXModule' 𝒮ᴰ-ReflGraph' 𝒮ᴰ-♭PIso-PreXModule'-ReflGraph'
-- reassociate on both sides
Iso-PreXModule-ReflGraph : Iso (PreXModule ℓ ℓℓ') (ReflGraph ℓ ℓℓ')
Iso-PreXModule-ReflGraph = compIso (compIso Σ-assoc-Iso
Iso-PreXModule-ReflGraph')
(invIso Σ-assoc-Iso)
|
source/adam-any.ads | charlie5/aIDE | 3 | 12984 | package AdaM.Any
--
-- Allows any class to be made persistent.
--
is
type Item is interface;
function Id (Self : access Item) return AdaM.Id
is abstract;
type view_Resolver is access procedure;
procedure register_view_Resolver (the_Resolver : in view_Resolver);
procedure resolve_all_Views;
end AdaM.Any;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.