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 |
|---|---|---|---|---|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sso2.ads | best08618/asylo | 7 | 30094 | with System;
package SSO2 is
type Arr1 is array (1 .. 4) of Character;
for Arr1'Scalar_Storage_Order use System.High_Order_First;
type Arr2 is array (1 .. 4) of Character;
for Arr2'Scalar_Storage_Order use System.Low_Order_First;
procedure Proc (A1 : Arr1; A2 : out Arr2);
end SSO2;
|
src/vectors.asm | Xkeeper0/tcrf-birthday | 10 | 103037 | ; Ensure our vectors are always here
.pad $FFFA, $FF
; Vectors for the NES CPU. These should ALWAYS be at $FFFA!
; NMI = VBlank
; RESET = ...well, reset.
; IRQ is where the CPU goes when it has problems.
NESVectorTables:
.dw NMI
.dw RESET
.dw IRQ
|
enceladus-core/src/main/resources/antlr/DataType.g4 | milanqiu/enceladus | 0 | 5968 | <filename>enceladus-core/src/main/resources/antlr/DataType.g4
grammar DataType;
@parser::header {
import net.milanqiu.enceladus.antlr.AltNumberStoredParserRuleContext;
}
options {
language = Java;
contextSuperClass = AltNumberStoredParserRuleContext;
}
WS: [ \t]+ -> skip;
fragment DIGIT: [0-9];
fragment LETTER: [a-zA-Z];
fragment UNDERLINE: [_];
IDENTIFIER: (LETTER|UNDERLINE) (DIGIT|LETTER|UNDERLINE)*;
NONNEGATIVE_INTEGER: DIGIT+;
dataType: IDENTIFIER ('(' paramList ')')?;
paramList: param (',' param)*;
param: NONNEGATIVE_INTEGER | dataType | ('{' propertyList '}');
propertyList: property (',' property)*;
property: '"' IDENTIFIER '":' dataType; |
asm/mips/progs/program1.asm | TomRegan/synedoche | 1 | 171792 | <reponame>TomRegan/synedoche<gh_stars>1-10
##########################################################################
##Author : <NAME> <<EMAIL>> ##
##Last modified : 2011-07-21 ##
##Description : MIPS assembly program: finds the sum of all numbers ##
## below 1000 that are multiples of 3 or 5 ##
##Modifies : registers : $s(0,1,2,3,4), $t0, $hi, $hi ##
## memory : none ##
##Result : 233168 in v1 ##
##########################################################################
#####################################################
##This block initializes counters and variables. ##
#####################################################
Main:
addi $s0, $zero, 0 # counter
addi $s1, $zero, 0 # sum (0)
addi $s2, $zero, 1000 # end (1000)
addi $s3, $zero, 3 # constant 3
addi $s4, $zero, 5 # constant 5
#####################################################
##This loop calculates the remainder of candidates.##
#####################################################
L0:
addi $s0, $s0, 1 # increment variable s0
beq $s0, $s2, Exit # if s0 = 1000, Exit
div $s0, $s3 # s0<-s0/3 (result in HI)
mfhi $t0 # t0<-HI (remainder)
beq $t0, $zero, L1 # goto L1 if rem = 0
# there is _no_ dependency on t0
div $s0, $s4 # s0<-s0/5 (result in HI)
mfhi $t0 # t0<-HI (remainder)
beq $t0, $zero, L1 # goto L1 if rem = 0
nop # fill delay slot
j L0 # continue loop
nop # branch delay slot
#####################################################
##Short loop to increment the sum. ##
#####################################################
L1:
add $s1, $s1, $s0 # increment the total
j L0 # loop
#####################################################
##This block terminates the program. ##
#####################################################
Exit:
add $v1, $zero, $s1 # return value in s1
addi $v0, $zero, 10 # exit code
syscall
#include <stdio.h>
#
#int
#main(void)
#{
# int i = 0;
# int sum = 0;
#
# L0: if(i == 1000) goto Exit;
# if (i % 3 == 0 || i % 5 ==0) sum = sum + i;
# i = i + 1;
# goto L0;
#
# Exit: fprintf(stdout, "%i\n", sum);
# return 0;
#}
#
|
data/pokemon/base_stats/cacturne.asm | AtmaBuster/pokeplat-gen2 | 6 | 7365 | db 0 ; species ID placeholder
db 70, 115, 60, 55, 115, 60
; hp atk def spd sat sdf
db GRASS, DARK ; type
db 60 ; catch rate
db 177 ; base exp
db NO_ITEM, POISON_BARB ; items
db GENDER_F50 ; gender ratio
db 20 ; step cycles to hatch
INCBIN "gfx/pokemon/cacturne/front.dimensions"
db GROWTH_MEDIUM_SLOW ; growth rate
dn EGG_PLANT, EGG_HUMANSHAPE ; egg groups
db 35 ; happiness
; tm/hm learnset
tmhm FOCUS_PUNCH, TOXIC, BULLET_SEED, HIDDEN_POWER, SUNNY_DAY, HYPER_BEAM, PROTECT, GIGA_DRAIN, FRUSTRATION, SOLARBEAM, RETURN, BRICK_BREAK, DOUBLE_TEAM, SANDSTORM, FACADE, SECRET_POWER, REST, ATTRACT, FOCUS_BLAST, ENERGY_BALL, FLING, ENDURE, DRAIN_PUNCH, EMBARGO, PAYBACK, GIGA_IMPACT, FLASH, SWORDS_DANCE, CAPTIVATE, DARK_PULSE, SLEEP_TALK, NATURAL_GIFT, POISON_JAB, GRASS_KNOT, SWAGGER, SUBSTITUTE, CUT, STRENGTH, FURY_CUTTER, MUD_SLAP, SEED_BOMB, SNORE, SPITE, SUCKER_PUNCH, SUPERPOWER, SYNTHESIS, THUNDERPUNCH
; end
|
src/bitmap_graphics.ads | KLOC-Karsten/adaoled | 0 | 3605 |
with Interfaces; use Interfaces;
package Bitmap_Graphics is
type Color is (Black, White);
for Color use (Black => 0, White => 255);
type Point is record
X : Natural;
Y : Natural;
end record;
type Size is record
Width : Natural;
Height : Natural;
end record;
type Byte_Array is array (Natural range <>) of Unsigned_8;
type Byte_Array_Access is access all Byte_Array;
type Bitmap_Icon is (Signal, Message, Battery, Bluetooth, GPRS, Alarm);
procedure Get_Icon
(Icon : Bitmap_Icon;
Width : out Natural;
Height: out Natural;
Data : out Byte_Array_Access);
type Font is record
Width, Height : Natural;
Data : Byte_Array_Access;
end record;
type Font_Access is access all Font;
function Get_Font(Size: Positive) return Font_Access;
end Bitmap_Graphics;
|
examples and results/MEM/user_code[for user].asm | Hollbrok/CPU_cpp_version | 5 | 101676 | <reponame>Hollbrok/CPU_cpp_version
mem ; be careful, because u need to have Mem.bmp in the folder
hlt |
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca_notsx.log_1340_965.asm | ljhsiun2/medusa | 9 | 84435 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x6935, %rsi
lea addresses_D_ht+0x15d85, %rdi
clflush (%rdi)
nop
nop
nop
sub %r15, %r15
mov $85, %rcx
rep movsl
nop
nop
nop
nop
nop
inc %r10
lea addresses_WT_ht+0x19155, %r9
nop
nop
nop
cmp %rbp, %rbp
mov $0x6162636465666768, %rcx
movq %rcx, (%r9)
nop
xor $48601, %r15
lea addresses_D_ht+0x19ef5, %rsi
lea addresses_UC_ht+0xbf35, %rdi
nop
sub %r8, %r8
mov $90, %rcx
rep movsq
cmp $19544, %rbp
lea addresses_A_ht+0x5db5, %r15
nop
nop
nop
nop
and $23405, %rsi
movw $0x6162, (%r15)
add %rdi, %rdi
lea addresses_WC_ht+0xd3f5, %rsi
lea addresses_A_ht+0x1901, %rdi
nop
nop
sub $30604, %r9
mov $42, %rcx
rep movsl
nop
nop
add $34565, %r9
lea addresses_WC_ht+0x1ab35, %rcx
nop
nop
xor $64688, %r9
mov (%rcx), %rsi
nop
nop
sub $4999, %rcx
lea addresses_WC_ht+0x3681, %rsi
lea addresses_WT_ht+0x28dd, %rdi
clflush (%rsi)
nop
nop
nop
xor $2544, %r8
mov $121, %rcx
rep movsq
nop
nop
and $23301, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r15
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r14
push %r9
push %rdx
push %rsi
// Load
lea addresses_WT+0x57b0, %r10
nop
nop
and %rdx, %rdx
movb (%r10), %r13b
nop
add $11079, %r13
// Store
lea addresses_PSE+0x7f35, %r13
nop
nop
nop
add %r14, %r14
movw $0x5152, (%r13)
nop
nop
nop
cmp $51882, %r11
// Store
lea addresses_PSE+0x7f35, %rsi
nop
nop
nop
nop
nop
and $32634, %rdx
movw $0x5152, (%rsi)
nop
nop
nop
nop
nop
dec %rdx
// Store
lea addresses_D+0xa235, %r9
and %rsi, %rsi
mov $0x5152535455565758, %r13
movq %r13, %xmm3
movaps %xmm3, (%r9)
nop
nop
nop
nop
nop
and %r9, %r9
// Store
lea addresses_normal+0x1064d, %r9
nop
nop
nop
nop
inc %r14
movb $0x51, (%r9)
nop
nop
nop
nop
sub $6997, %r14
// Faulty Load
lea addresses_PSE+0x7f35, %r9
nop
nop
nop
nop
nop
xor %r14, %r14
mov (%r9), %si
lea oracles, %r10
and $0xff, %rsi
shlq $12, %rsi
mov (%r10,%rsi,1), %rsi
pop %rsi
pop %rdx
pop %r9
pop %r14
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_UC_ht'}, 'dst': {'same': True, 'congruent': 4, 'type': 'addresses_D_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 0}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_A_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 10}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}}
{'52': 1340}
52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52
*/
|
Transynther/x86/_processed/NC/_ht_zr_/i3-7100_9_0xca_notsx.log_21829_859.asm | ljhsiun2/medusa | 9 | 179905 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x908b, %rsi
lea addresses_A_ht+0x11eef, %rdi
clflush (%rsi)
nop
add $11131, %rbx
mov $20, %rcx
rep movsw
add %rcx, %rcx
lea addresses_normal_ht+0x14a8b, %r11
nop
cmp %r12, %r12
mov (%r11), %ebp
nop
nop
nop
nop
and $57107, %rdi
lea addresses_A_ht+0x1c08b, %rsi
nop
nop
nop
add $23314, %rcx
mov (%rsi), %ebx
nop
nop
nop
sub %rbp, %rbp
lea addresses_UC_ht+0x1677f, %rsi
lea addresses_normal_ht+0x968b, %rdi
clflush (%rsi)
nop
nop
nop
nop
and $40391, %r11
mov $95, %rcx
rep movsq
nop
nop
nop
nop
and %r12, %r12
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r9
push %rax
push %rbp
push %rcx
push %rdx
// Faulty Load
mov $0x30381b0000000e8b, %rdx
inc %r9
movups (%rdx), %xmm5
vpextrq $1, %xmm5, %rcx
lea oracles, %rdx
and $0xff, %rcx
shlq $12, %rcx
mov (%rdx,%rcx,1), %rcx
pop %rdx
pop %rcx
pop %rbp
pop %rax
pop %r9
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}}
{'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}}
{'00': 20093, '49': 1736}
00 00 00 00 00 00 00 49 00 00 00 49 00 00 00 49 49 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 49 00 00 00 49 00 00 00 00 49 00 49 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 49 00 49 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 49 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 49 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 49 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 49 00 00 00 00 00 00 00 00 00 00 49 00 49 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 49 00 49 00 49 00 49 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 49 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 49 00 49 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 49 00 00 00 00 00 49 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 49 00 00 00 49 00 00 00 00 00 49 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 49 00 00 49 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 49 00 00 00 49 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 49 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 49 00 00 00 00 00 00 00 00 00 00 49 00 49 00 00 00 49 00 49 00 00 00 00 00 00 00 00 00 00 00 00 49 00 49 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 49 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 49 00 49 00 00 00 00
*/
|
Theory-and-Practice-of-Formal-Languages-Parsing/Grammars/GrammarSample/GrammarSample.g4 | KvanTTT/Samples | 0 | 4010 | grammar GrammarSample;
expr
: expr '*' expr
| expr '+' expr
//| <assoc=right> expr '^' expr // Right associativity rule 2^2^3
| token '(' args ')'
| token
;
args
: expr (',' expr)*
;
token
: ID
| DIGIT
;
MULT: '*';
PLUS: '+';
LPAREN: '(';
RPAREN: ')';
COMMA: ',';
ID: [a-zA-Z]+;
DIGIT: [0-9]+;
SPACES: [ \r\n\t]+ -> channel(HIDDEN);
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_281.asm | ljhsiun2/medusa | 9 | 25870 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %rdi
lea addresses_WT_ht+0x156d, %r15
xor $59334, %r11
mov (%r15), %rdi
nop
nop
nop
and $52254, %r14
pop %rdi
pop %r15
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r15
push %r8
push %rax
push %rbp
push %rdx
// Store
lea addresses_UC+0x10bf7, %rax
clflush (%rax)
nop
nop
nop
nop
sub $53263, %r8
movw $0x5152, (%rax)
nop
add %r8, %r8
// Faulty Load
lea addresses_WT+0x196d, %rdx
nop
nop
add %r12, %r12
movups (%rdx), %xmm2
vpextrq $1, %xmm2, %rbp
lea oracles, %rdx
and $0xff, %rbp
shlq $12, %rbp
mov (%rdx,%rbp,1), %rbp
pop %rdx
pop %rbp
pop %rax
pop %r8
pop %r15
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': True, 'type': 'addresses_UC', 'size': 2, 'AVXalign': True}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'39': 21829}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
|
rts/src/common/last_chance_handler.adb | ScottWLoyd/bare-metal-ada-tools | 0 | 15416 | <reponame>ScottWLoyd/bare-metal-ada-tools<gh_stars>0
procedure Last_Chance_Handler
(Source_Location : System.Address; Line : Integer) is
pragma Unreferenced (Source_Location, Line);
begin
-- TODO: Add in code to dump the info to serial/screen which
-- is obviously board specific.
loop
null;
end loop;
end Last_Chance_Handler;
|
gfx/pokemon/medicham/anim_idle.asm | Ebernacher90/pokecrystal-allworld | 0 | 9538 | setrepeat 2
frame 4, 06
frame 0, 06
dorepeat 1
frame 5, 12
frame 0, 12
frame 6, 12
endanim |
src/UnSizedIO/Base.agda | agda/ooAgda | 23 | 9122 | {-# OPTIONS --postfix-projections #-}
module UnSizedIO.Base where
open import Data.Maybe.Base
open import Data.Sum renaming (inj₁ to left; inj₂ to right; [_,_]′ to either)
open import Function
open import NativeIO
record IOInterface : Set₁ where
field
Command : Set
Response : (m : Command) → Set
open IOInterface public
module _ (I : IOInterface) (let C = Command I) (let R = Response I) (A : Set)
where
mutual
record IO : Set where
coinductive
constructor delay
field
force : IO'
data IO' : Set where
exec' : (c : C) (f : R c → IO) → IO'
return' : (a : A) → IO'
open IO public
module _ {I : IOInterface} (let C = Command I) (let R = Response I)
where
return : ∀{A} (a : A) → IO I A
return a .force = return' a
exec : ∀{A} (c : C) (f : R c → IO I A) → IO I A
exec c f .force = exec' c f
exec1 : (c : C) → IO I (R c)
exec1 c = exec c return
infixl 2 _>>=_ _>>='_ _>>_
mutual
_>>='_ : ∀{A B} (m : IO' I A) (k : A → IO I B) → IO' I B
exec' c f >>=' k = exec' c λ x → f x >>= k
return' a >>=' k = force (k a)
_>>=_ : ∀{A B} (m : IO I A) (k : A → IO I B) → IO I B
force (m >>= k) = force m >>=' k
_>>_ : ∀{B} (m : IO I Unit) (k : IO I B) → IO I B
m >> k = m >>= λ _ → k
module _ {I : IOInterface} (let C = Command I) (let R = Response I)
where
{-# NON_TERMINATING #-}
translateIO : ∀ {A}
→ (translateLocal : (c : C) → NativeIO (R c))
→ IO I A
→ NativeIO A
translateIO translateLocal m = case (m .force) of
λ{ (exec' c f) → (translateLocal c) native>>= λ r →
translateIO translateLocal (f r)
; (return' a) → nativeReturn a
}
-- Recursion
-- trampoline provides a generic form of loop (generalizing while/repeat).
-- Starting at state s : S, step function f is iterated until it returns
-- a result in A.
module _ (I : IOInterface)(let C = Command I) (let R = Response I)
where
data IO+ (A : Set) : Set where
exec' : (c : C) (f : R c → IO I A) → IO+ A
module _ {I : IOInterface}(let C = Command I) (let R = Response I)
where
fromIO+' : ∀{A} → IO+ I A → IO' I A
fromIO+' (exec' c f) = exec' c f
fromIO+ : ∀{A} → IO+ I A → IO I A
fromIO+ (exec' c f) .force = exec' c f
_>>=+'_ : ∀{A B} (m : IO+ I A) (k : A → IO I B) → IO' I B
exec' c f >>=+' k = exec' c λ x → f x >>= k
_>>=+_ : ∀{A B} (m : IO+ I A) (k : A → IO I B) → IO I B
force (m >>=+ k) = m >>=+' k
mutual
_>>+_ : ∀{A B} (m : IO I (A ⊎ B)) (k : A → IO I B) → IO I B
force (m >>+ k) = force m >>+' k
_>>+'_ : ∀{A B} (m : IO' I (A ⊎ B)) (k : A → IO I B) → IO' I B
exec' c f >>+' k = exec' c λ x → f x >>+ k
return' (left a) >>+' k = force (k a)
return' (right b) >>+' k = return' b
-- loop
{-# TERMINATING #-}
trampoline : ∀{A S} (f : S → IO+ I (S ⊎ A)) (s : S) → IO I A
force (trampoline f s) = case (f s) of
\{ (exec' c k) → exec' c λ r → k r >>+ trampoline f }
-- simple infinite loop
{-# TERMINATING #-}
forever : ∀{A B} → IO+ I A → IO I B
force (forever (exec' c f)) = exec' c λ r → f r >>= λ _ → forever (exec' c f)
whenJust : {A : Set} → Maybe A → (A → IO I Unit) → IO I Unit
whenJust nothing k = return _
whenJust (just a) k = k a
module _ (I : IOInterface )
(let C = I .Command)
(let R = I .Response)
where
data IOind (A : Set) : Set where
exec'' : (c : C) (f : (r : R c) → IOind A) → IOind A
return'' : (a : A) → IOind A
main : NativeIO Unit
main = nativePutStrLn "Hello, world!"
|
examples/0_template/src/main.adb | pvrego/adaino | 8 | 22875 | procedure Main is
begin
null;
end Main;
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/dynamic_elab2.ads | best08618/asylo | 7 | 7540 | with Dynamic_Elab_Pkg; use Dynamic_Elab_Pkg;
package Dynamic_Elab2 is
type Plot is record
B : Boolean;
Data : R;
end record;
pragma Pack (Plot);
function Get_Plot return Plot;
end Dynamic_Elab2;
|
Categories/Adjunction.agda | p-pavel/categories | 1 | 1178 | <gh_stars>1-10
{-# OPTIONS --universe-polymorphism #-}
module Categories.Adjunction where
open import Level
open import Relation.Binary using (Rel; IsEquivalence)
open import Data.Sum
open import Data.Product
open import Function using (flip)
open import Categories.Category
open import Categories.Functor hiding (equiv; assoc; identityˡ; identityʳ; ∘-resp-≡) renaming (id to idF; _≡_ to _≡F_; _∘_ to _∘F_)
open import Categories.NaturalTransformation hiding (equiv; setoid) renaming (id to idT; _≡_ to _≡T_)
open import Categories.Monad
open import Categories.Support.Equivalence
record Adjunction {o ℓ e} {o₁ ℓ₁ e₁} {C : Category o ℓ e} {D : Category o₁ ℓ₁ e₁} (F : Functor D C) (G : Functor C D) : Set (o ⊔ ℓ ⊔ e ⊔ o₁ ⊔ ℓ₁ ⊔ e₁) where
field
unit : NaturalTransformation idF (G ∘F F)
counit : NaturalTransformation (F ∘F G) idF
.zig : idT ≡T (counit ∘ʳ F) ∘₁ (F ∘ˡ unit)
.zag : idT ≡T (G ∘ˡ counit) ∘₁ (unit ∘ʳ G)
private module C = Category C
private module D = Category D
private module F = Functor F
private module G = Functor G renaming (F₀ to G₀; F₁ to G₁; F-resp-≡ to G-resp-≡)
open F hiding (op)
open G hiding (op)
private module unit = NaturalTransformation unit
private module counit = NaturalTransformation counit
monad : Monad D
monad = record
{ F = G ∘F F
; η = unit
; μ = G ∘ˡ (counit ∘ʳ F)
; assoc = assoc′
; identityˡ = identityˡ′
; identityʳ = identityʳ′
}
where
.assoc′ : ∀ {x}
→ G₁ (counit.η (F₀ x)) D.∘ G₁ (F₁ (G₁ (counit.η (F₀ x)))) D.≡ G₁ (counit.η (F₀ x)) D.∘ G₁ (counit.η (F₀ (G₀ (F₀ x))))
assoc′ {x} =
begin
G₁ (counit.η (F₀ x)) D.∘ G₁ (F₁ (G₁ (counit.η (F₀ x))))
↑⟨ G.homomorphism ⟩
G₁ ((counit.η (F₀ x)) C.∘ (F₁ (G₁ (counit.η (F₀ x)))))
↓⟨ G-resp-≡ (NaturalTransformation.commute counit (counit.η (F₀ x))) ⟩
G₁ (counit.η (F₀ x) C.∘ counit.η (F₀ (G₀ (F₀ x))))
↓⟨ G.homomorphism ⟩
G₁ (counit.η (F₀ x)) D.∘ G₁ (counit.η (F₀ (G₀ (F₀ x))))
∎
where
open D.HomReasoning
.identityˡ′ : ∀ {x} → G₁ (counit.η (F₀ x)) D.∘ G₁ (F₁ (unit.η x)) D.≡ D.id
identityˡ′ {x} =
begin
G₁ (counit.η (F₀ x)) D.∘ G₁ (F₁ (unit.η x))
↑⟨ G.homomorphism ⟩
G₁ ((counit.η (F₀ x)) C.∘ (F₁ (unit.η x)))
↑⟨ G-resp-≡ zig ⟩
G₁ C.id
↓⟨ G.identity ⟩
D.id
∎
where
open D.HomReasoning
.identityʳ′ : ∀ {x} → G₁ (counit.η (F₀ x)) D.∘ unit.η (G₀ (F₀ x)) D.≡ D.id
identityʳ′ = D.Equiv.sym zag
op : Adjunction {C = D.op} {D = C.op} G.op F.op
op = record { unit = counit.op; counit = unit.op; zig = zag; zag = zig }
infixr 5 _⊣_
_⊣_ = Adjunction
id : ∀ {o ℓ e} {C : Category o ℓ e} → Adjunction (idF {C = C}) (idF {C = C})
id {C = C} = record
{ unit = idT
; counit = idT
; zig = Equiv.sym C.identityˡ
; zag = Equiv.sym C.identityˡ
}
where
module C = Category C
open C
infix 4 _≡_
_≡_ : ∀ {o ℓ e} {o₁ ℓ₁ e₁} {C : Category o ℓ e} {D : Category o₁ ℓ₁ e₁} {F : Functor D C} {G : Functor C D} → Rel (F ⊣ G) (o ⊔ e ⊔ o₁ ⊔ e₁)
_≡_ {C = C} {D} {F} {G} X Y = Adjunction.unit X ≡T Adjunction.unit Y ×
Adjunction.counit X ≡T Adjunction.counit Y
.equiv : ∀ {o ℓ e} {o₁ ℓ₁ e₁} {C : Category o ℓ e} {D : Category o₁ ℓ₁ e₁} {F : Functor D C} {G : Functor C D} → IsEquivalence (_≡_ {F = F} {G})
equiv {C = C} {D} {F} {G} = record
{ refl = (D.Equiv.refl), (C.Equiv.refl)
; sym = λ {T U : F ⊣ G} → sym' {T = T} {U = U}
; trans = λ {T U V : F ⊣ G} → trans' {T = T} {U = U} {V = V}
}
where
module C = Category C
module D = Category D
sym' : {T U : F ⊣ G} → (H : T ≡ U) → flip _≡_ T U
sym' {T} {U} (H₁ , H₂) = (λ {x} → D.Equiv.sym H₁) , (λ {x} → C.Equiv.sym H₂)
trans' : {T U V : F ⊣ G} → T ≡ U → U ≡ V → T ≡ V
trans' {T} {U} {V} (H₁ , H₂) (H₃ , H₄) = (λ {x} → D.Equiv.trans H₁ H₃) , (C.Equiv.trans H₂ H₄)
setoid : ∀ {o ℓ e} {o₁ ℓ₁ e₁} {C : Category o ℓ e} {D : Category o₁ ℓ₁ e₁} {F : Functor D C} {G : Functor C D}
→ Setoid (o ⊔ ℓ ⊔ e ⊔ o₁ ⊔ ℓ₁ ⊔ e₁) (o ⊔ e ⊔ o₁ ⊔ e₁)
setoid {C = C} {D} {F} {G} = record
{ Carrier = Adjunction F G
; _≈_ = _≡_
; isEquivalence = equiv {F = F} {G = G}
}
|
isra.asm | icefoxen/old-sol-bianca | 0 | 244569 | <gh_stars>0
; isra.asm
; Okay, it looks like we need to write an asm wrapper for the C
; ISR's. That might explain why my comp spuriously resets when I try to
; call the thing...
; Interrupts 2 and 15 are Intel reserved...
;
; Python rocks.
; -----
;import sys
;sys.stdout = open( "foo.txt", "w" )
;for i in range( 40 ):
; print """
;extern handleInterrupt%02d
;global int_handler%02d
;int_handler%02d:
; pusha
; push ds
; push es
; push fs
; push gs
;
; call handleInterrupt%02d
;
; pop gs
; pop fs
; pop es
; pop ds
; popa
; iret
;""" % (i, i, i, i)
; -----
;
; <NAME>
; 16/6/2003
extern sbErrorThang
; Interrupts 00-16 are CPU EXCEPTIONS
; Interrupts 17-31 are RESERVED by Intel
; Interrupts 32-48 are IRQ's, as re-mapped by pic.m
extern handleInterrupt00
global int_handler00
int_handler00:
pusha
push ds
push es
push fs
push gs
call handleInterrupt00
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt01
global int_handler01
int_handler01:
pusha
push ds
push es
push fs
push gs
call handleInterrupt01
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt02
global int_handler02
int_handler02:
pusha
push ds
push es
push fs
push gs
call handleInterrupt02
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt03
global int_handler03
int_handler03:
pusha
push ds
push es
push fs
push gs
call handleInterrupt03
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt04
global int_handler04
int_handler04:
pusha
push ds
push es
push fs
push gs
call handleInterrupt04
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt05
global int_handler05
int_handler05:
pusha
push ds
push es
push fs
push gs
call handleInterrupt05
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt06
global int_handler06
int_handler06:
pusha
push ds
push es
push fs
push gs
call handleInterrupt06
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt07
global int_handler07
int_handler07:
pusha
push ds
push es
push fs
push gs
call handleInterrupt07
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt08
global int_handler08
int_handler08:
pusha
push ds
push es
push fs
push gs
call handleInterrupt08
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt09
global int_handler09
int_handler09:
pusha
push ds
push es
push fs
push gs
call handleInterrupt09
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt10
global int_handler10
int_handler10:
pusha
push ds
push es
push fs
push gs
call handleInterrupt10
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt11
global int_handler11
int_handler11:
pusha
push ds
push es
push fs
push gs
call handleInterrupt11
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt12
global int_handler12
int_handler12:
pusha
push ds
push es
push fs
push gs
call handleInterrupt12
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt13
global int_handler13
int_handler13:
pusha
push ds
push es
push fs
push gs
call handleInterrupt13
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt14
global int_handler14
int_handler14:
pusha
push ds
push es
push fs
push gs
call handleInterrupt14
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt15
global int_handler15
int_handler15:
pusha
push ds
push es
push fs
push gs
call handleInterrupt15
pop gs
pop fs
pop es
pop ds
popa
iret
; RESERVED INTERRUPTS START HERE
extern handleInterrupt16
global int_handler16
int_handler16:
pusha
push ds
push es
push fs
push gs
call handleInterrupt16
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt17
global int_handler17
int_handler17:
pusha
push ds
push es
push fs
push gs
call handleInterrupt17
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt18
global int_handler18
int_handler18:
pusha
push ds
push es
push fs
push gs
call handleInterrupt18
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt19
global int_handler19
int_handler19:
pusha
push ds
push es
push fs
push gs
call handleInterrupt19
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt20
global int_handler20
int_handler20:
pusha
push ds
push es
push fs
push gs
call handleInterrupt20
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt21
global int_handler21
int_handler21:
pusha
push ds
push es
push fs
push gs
call handleInterrupt21
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt22
global int_handler22
int_handler22:
pusha
push ds
push es
push fs
push gs
call handleInterrupt22
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt23
global int_handler23
int_handler23:
pusha
push ds
push es
push fs
push gs
call handleInterrupt23
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt24
global int_handler24
int_handler24:
pusha
push ds
push es
push fs
push gs
call handleInterrupt24
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt25
global int_handler25
int_handler25:
pusha
push ds
push es
push fs
push gs
call handleInterrupt25
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt26
global int_handler26
int_handler26:
pusha
push ds
push es
push fs
push gs
call handleInterrupt26
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt27
global int_handler27
int_handler27:
pusha
push ds
push es
push fs
push gs
call handleInterrupt27
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt28
global int_handler28
int_handler28:
pusha
push ds
push es
push fs
push gs
call handleInterrupt28
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt29
global int_handler29
int_handler29:
pusha
push ds
push es
push fs
push gs
call handleInterrupt29
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt30
global int_handler30
int_handler30:
pusha
push ds
push es
push fs
push gs
call handleInterrupt30
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt31
global int_handler31
int_handler31:
pusha
push ds
push es
push fs
push gs
call handleInterrupt31
pop gs
pop fs
pop es
pop ds
popa
iret
; RESERVED EXCEPTIONS END
; IRQ INTERRUPTS START int's 32-48, 0x20-0x30
extern handleInterrupt32
global int_handler32
int_handler32:
pusha
push ds
push es
push fs
push gs
call handleInterrupt32
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt33
global int_handler33
int_handler33:
pusha
push ds
push es
push fs
push gs
call handleInterrupt33
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt34
global int_handler34
int_handler34:
pusha
push ds
push es
push fs
push gs
call handleInterrupt34
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt35
global int_handler35
int_handler35:
pusha
push ds
push es
push fs
push gs
call handleInterrupt35
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt36
global int_handler36
int_handler36:
pusha
push ds
push es
push fs
push gs
call handleInterrupt36
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt37
global int_handler37
int_handler37:
pusha
push ds
push es
push fs
push gs
call handleInterrupt37
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt38
global int_handler38
int_handler38:
pusha
push ds
push es
push fs
push gs
call handleInterrupt38
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt39
global int_handler39
int_handler39:
pusha
push ds
push es
push fs
push gs
call handleInterrupt39
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt40
global int_handler40
int_handler40:
pusha
push ds
push es
push fs
push gs
call handleInterrupt40
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt41
global int_handler41
int_handler41:
pusha
push ds
push es
push fs
push gs
call handleInterrupt41
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt42
global int_handler42
int_handler42:
pusha
push ds
push es
push fs
push gs
call handleInterrupt42
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt43
global int_handler43
int_handler43:
pusha
push ds
push es
push fs
push gs
call handleInterrupt43
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt44
global int_handler44
int_handler44:
pusha
push ds
push es
push fs
push gs
call handleInterrupt44
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt45
global int_handler45
int_handler45:
pusha
push ds
push es
push fs
push gs
call handleInterrupt45
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt46
global int_handler46
int_handler46:
pusha
push ds
push es
push fs
push gs
call handleInterrupt46
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt47
global int_handler47
int_handler47:
pusha
push ds
push es
push fs
push gs
call handleInterrupt47
pop gs
pop fs
pop es
pop ds
popa
iret
extern handleInterrupt48
global int_handler48
int_handler48:
pusha
push ds
push es
push fs
push gs
call handleInterrupt48
pop gs
pop fs
pop es
pop ds
popa
iret
|
oeis/072/A072998.asm | neoneye/loda-programs | 11 | 16690 | ; A072998: To get a(n), write n in balanced ternary notation (using only digits -1, 0, 1, -1), then change -1's to 0's, 0's to 1's, and 1's to 2's.
; Submitted by <NAME>(s4)
; 1,2,20,21,22,200,201,202,210,211,212,220,221,222,2000,2001,2002,2010,2011,2012,2020,2021,2022,2100,2101,2102,2110,2111,2112,2120,2121,2122,2200,2201,2202,2210,2211,2212,2220,2221,2222,20000,20001,20002,20010
bin $2,$0
mov $3,1
lpb $0
mov $2,$0
add $0,1
div $0,3
add $2,7
mod $2,3
mul $2,$3
add $1,$2
mov $2,$1
mul $3,10
lpe
mov $0,$2
|
programs/oeis/276/A276391.asm | neoneye/loda | 22 | 160851 | ; A276391: G.f. satisfies A(x) - 4*A(x^2) = x/(1+x).
; 1,3,1,11,1,3,1,43,1,3,1,11,1,3,1,171,1,3,1,11,1,3,1,43,1,3,1,11,1,3,1,683,1,3,1,11,1,3,1,43,1,3,1,11,1,3,1,171,1,3,1,11,1,3,1,43,1,3,1,11,1,3,1,2731,1,3,1,11,1,3,1,43,1,3,1,11,1,3,1,171,1,3,1,11,1,3,1,43,1,3,1,11,1,3,1,683,1,3,1,11
add $0,1
mov $1,1
lpb $0
dif $0,2
mul $1,4
lpe
div $1,3
mul $1,2
add $1,1
mov $0,$1
|
src/main/antlr4/com/flat/FLAT.g4 | JoshuaCrotts/Formal-Logic-Aiding-Tool | 0 | 5667 | <filename>src/main/antlr4/com/flat/FLAT.g4
grammar FLAT;
//=========== Lexeme patterns and tokens. ==============
/* Miscellaneous and skippable lexemes. */
WHITESPACE : [ \r\n\t]+ -> channel(HIDDEN) ;
COMMENT : '//' (~ [\r\n])* NEWLINE -> skip ; // Match any text that has // preceding.
fragment DIGIT : [0-9] ;
fragment LOWER_CASE_LTR : [a-z] ;
fragment UPPER_CASE_LTR : [A-Z] ;
fragment ANY_CASE_LTR : [a-zA-Z] ;
fragment UNDERSCORE : '_' ;
fragment SINGLE_QUOTE : '\'' ;
fragment DOUBLE_QUOTE : '"' ;
fragment ANYCHAR : . ;
fragment NEWLINE : '\n' ;
fragment CARRIAGE_RET : '\r' ;
fragment TAB : '\t' ;
fragment NULL_CHAR : '\\0' ;
fragment ESCAPED_CHAR : ('\\' .) ;
/* Word literals for logic (if they want to type it out). */
fragment AND_LIT: 'AND';
fragment OR_LIT: 'OR';
fragment IMP_LIT: 'IMPLIES';
fragment BICOND_LIT: 'IFF';
fragment NEG_LIT: 'NOT';
fragment XOR_LIT: 'XOR';
fragment IDENTITY_LIT: 'EQUIVALENT';
/* Other symbols. */
OPEN_PAREN : '(';
CLOSE_PAREN: ')';
COMMA : ',';
SEMICOLON : ';';
/* Binary and unary operators for propositional logic. */
AND : '&' | '∧' | '^' | '·' | AND_LIT;
OR : '|' | '∨' | '+' | '||' | OR_LIT;
IMP : '->' | '→' | '⇒' | '⊃' | '>' | IMP_LIT;
BICOND : '<->' | '⇔' | '≡' | '↔' | '<>' | BICOND_LIT ;
NEG : '˜' | '\u007e' | '\uff5e' | '\u223c' | '¬' | '!' | NEG_LIT ;
XOR : '⊕' | '⊻' | '≢' | '⩒' | '↮' | XOR_LIT ;
IDENTITY: '=' | IDENTITY_LIT;
/* Atoms. */
ATOM: UPPER_CASE_LTR;
/* Constants. */
CONSTANT: [a-t];
/* Variables. */
VARIABLE: [u-z];
/* Quantifiers. */
EXISTENTIAL: '∃' ;
UNIVERSAL: '∀' ;
/* Conclusion Indicator Symbols. */
THEREFORE: '⊢' | '∴' | '=>' | '/';
/* Semantic entailment (models). */
SEMANTIC_ENTAILMENT: '⊧' | '⊨' ;
//=========== Parser rules. ==============
program: (predProof EOF)
| (propProof EOF)
| (predSemanticEntailment EOF)
| (propSemanticEntailment EOF)
| (propositionalWff COMMA propositionalWff EOF)
| (predicateWff COMMA predicateWff EOF)
| (propositionalWff EOF)
| (predicateWff EOF);
/* Propositional Logic Rules. */
atom: ATOM;
/* Starting rule. */
propositionalWff: propWff;
propWff: atom
| propNegRule
| propAndRule
| propOrRule
| propImpRule
| propBicondRule
| propExclusiveOrRule;
propNegRule: NEG propWff;
propAndRule: OPEN_PAREN propWff AND propWff CLOSE_PAREN;
propOrRule : OPEN_PAREN propWff OR propWff CLOSE_PAREN;
propImpRule: OPEN_PAREN propWff IMP propWff CLOSE_PAREN;
propBicondRule: OPEN_PAREN propWff BICOND propWff CLOSE_PAREN;
propExclusiveOrRule: OPEN_PAREN propWff XOR propWff CLOSE_PAREN;
/* Predicate Logic Rules. We use constants for the quantifiers to allow the parser to do semantic analysis and correct
the user. */
constant: CONSTANT;
variable: VARIABLE;
universal: (OPEN_PAREN UNIVERSAL (constant | variable) CLOSE_PAREN) | (OPEN_PAREN (constant | variable) CLOSE_PAREN);
existential: OPEN_PAREN EXISTENTIAL (constant | variable) CLOSE_PAREN;
predicate: atom ((OPEN_PAREN ((constant|variable)+ | (((constant|variable) COMMA)*(constant|variable))) CLOSE_PAREN) |
((constant|variable)+ | (((constant|variable) COMMA)*(constant|variable))));
/* Starting rule. */
predicateWff: predWff;
predWff: predicate
| predNegRule
| predQuantifier
| predAndRule
| predOrRule
| predImpRule
| predBicondRule
| predExclusiveOrRule
| predIdentityRule;
predQuantifier: NEG? (existential | universal) predWff;
predNegRule: NEG predWff;
predAndRule: OPEN_PAREN predWff AND predWff CLOSE_PAREN;
predOrRule : OPEN_PAREN predWff OR predWff CLOSE_PAREN;
predImpRule: OPEN_PAREN predWff IMP predWff CLOSE_PAREN;
predBicondRule: OPEN_PAREN predWff BICOND predWff CLOSE_PAREN;
predExclusiveOrRule: OPEN_PAREN predWff XOR predWff CLOSE_PAREN;
predIdentityRule: (constant|variable) IDENTITY (constant|variable);
/* Proof rules. */
/* Proof for predicate logic. */
predPremise: ((predicateWff (COMMA|SEMICOLON)) | predicateWff);
predConclusion: predicateWff;
predProof: predPremise+ THEREFORE predConclusion;
/* Proof for propositional logic. */
propPremise: ((propositionalWff (COMMA|SEMICOLON)) | propositionalWff);
propConclusion: propositionalWff;
propProof: propPremise+ THEREFORE propConclusion;
/* Semantic entailment for predicate logic. */
predSemanticEntailment: predPremise+ SEMANTIC_ENTAILMENT predicateWff;
/* Semantic entailment for propositional logic. */
propSemanticEntailment: propPremise+ SEMANTIC_ENTAILMENT propositionalWff;
|
source/strings/a-stmana.adb | ytomino/drake | 33 | 20528 | <reponame>ytomino/drake
package body Ada.Strings.Maps.Naked is
function To_Set return Character_Set is
begin
return Create (Set_Data_Access (Source));
end To_Set;
function To_Mapping return Character_Mapping is
begin
return Create (Map_Data_Access (Source));
end To_Mapping;
end Ada.Strings.Maps.Naked;
|
oeis/017/A017452.asm | neoneye/loda-programs | 11 | 11122 | ; A017452: a(n) = (11*n + 5)^4.
; 625,65536,531441,2085136,5764801,12960000,25411681,45212176,74805201,116985856,174900625,252047376,352275361,479785216,639128961,835210000,1073283121,1358954496,1698181681,2097273616,2562890625,3102044416,3722098081,4430766096,5236114321,6146560000,7170871761,8318169616,9597924961,11019960576,12594450625,14331920656,16243247601,18339659776,20632736881,23134410000,25856961601,28813025536,32015587041,35477982736,39213900625,43237380096,47562811921,52204938256,57178852641,62500000000,68184176641
mul $0,11
add $0,5
pow $0,4
|
programs/oeis/097/A097787.asm | neoneye/loda | 22 | 26378 | <filename>programs/oeis/097/A097787.asm
; A097787: a(n)=3a(n-1)+C(n+4,4),n>0, a(0)=1.
; 1,8,39,152,526,1704,5322,16296,49383,148864,447593,1344144,4034252,12105136,36318468,108959280,326882685,980654040,2941969435,8825917160,26477762106,79433298968,238299911854,714899753112,2144699279811
lpb $0
mov $2,$0
sub $0,1
seq $2,97786 ; a(n)=3a(n-1)+C(n+3,3),n>0, a(0)=1.
add $1,$2
lpe
add $1,1
mov $0,$1
|
oeis/181/A181591.asm | neoneye/loda-programs | 11 | 81428 | ; A181591: a(n) = binomial(bigOmega(n),omega(n)), where omega = A001221 and bigOmega = A001222.
; Submitted by <NAME>
; 1,1,1,2,1,1,1,3,2,1,1,3,1,1,1,4,1,3,1,3,1,1,1,6,2,1,3,3,1,1,1,5,1,1,1,6,1,1,1,6,1,1,1,3,3,1,1,10,2,3,1,3,1,6,1,6,1,1,1,4,1,1,3,6,1,1,1,3,1,1,1,10,1,1,3,3,1,1,1,10,4,1,1,4,1,1,1,6,1,4,1,3,1,1,1,15,1,3,3,6
mov $1,$0
seq $0,1221 ; Number of distinct primes dividing n (also called omega(n)).
seq $1,86436 ; Maximum number of parts possible in a factorization of n; a(1) = 1, and for n > 1, a(n) = A001222(n) = bigomega(n).
bin $1,$0
mov $0,$1
|
oeis/085/A085814.asm | neoneye/loda-programs | 11 | 98002 | ; A085814: Even entries (A048967) minus the odd entries (A001316) in row n of Pascal's triangle (A007318).
; Submitted by <NAME>
; -1,-2,0,-8,12,8,0,-128,252,472,840,1120,2112,128,0,-32768,65532,131000,261528,519648,1029192,1991728,3865664,6825984,13835328,21056128,39611520,20680192,134234112,32768,0,-2147483648,4294967292,8589934456,17179866936,34359709664,68719241112,137436945552
mov $2,2
mov $3,$0
seq $0,88560 ; Sum of odd entries in row n of Pascal's triangle.
mul $0,-2
pow $2,$3
add $0,$2
|
llvm-gcc-4.2-2.9/gcc/ada/s-tpoben.adb | vidkidz/crossbridge | 1 | 7223 | <reponame>vidkidz/crossbridge
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . T A S K I N G . P R O T E C T E D _ O B J E C T S . --
-- E N T R I E S --
-- --
-- B o d y --
-- --
-- Copyright (C) 1998-2005, Free Software Foundation, Inc. --
-- --
-- GNARL 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 2, or (at your option) any later ver- --
-- sion. GNARL 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. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNARL; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. --
-- Extensive contributions were provided by Ada Core Technologies, Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains all the simple primitives related to protected
-- objects with entries (i.e init, lock, unlock).
-- The handling of protected objects with no entries is done in
-- System.Tasking.Protected_Objects, the complex routines for protected
-- objects with entries in System.Tasking.Protected_Objects.Operations.
-- The split between Entries and Operations is needed to break circular
-- dependencies inside the run time.
-- Note: the compiler generates direct calls to this interface, via Rtsfind
with Ada.Exceptions;
-- Used for Exception_Occurrence_Access
-- Raise_Exception
with System.Task_Primitives.Operations;
-- Used for Initialize_Lock
-- Write_Lock
-- Unlock
-- Get_Priority
-- Wakeup
with System.Tasking.Initialization;
-- Used for Defer_Abort,
-- Undefer_Abort,
-- Change_Base_Priority
pragma Elaborate_All (System.Tasking.Initialization);
-- This insures that tasking is initialized if any protected objects are
-- created.
with System.Parameters;
-- Used for Single_Lock
package body System.Tasking.Protected_Objects.Entries is
package STPO renames System.Task_Primitives.Operations;
use Parameters;
use Task_Primitives.Operations;
use Ada.Exceptions;
----------------
-- Local Data --
----------------
Locking_Policy : Character;
pragma Import (C, Locking_Policy, "__gl_locking_policy");
--------------
-- Finalize --
--------------
procedure Finalize (Object : in out Protection_Entries) is
Entry_Call : Entry_Call_Link;
Caller : Task_Id;
Ceiling_Violation : Boolean;
Self_ID : constant Task_Id := STPO.Self;
Old_Base_Priority : System.Any_Priority;
begin
if Object.Finalized then
return;
end if;
STPO.Write_Lock (Object.L'Unrestricted_Access, Ceiling_Violation);
if Single_Lock then
Lock_RTS;
end if;
if Ceiling_Violation then
-- Dip our own priority down to ceiling of lock. See similar code in
-- Tasking.Entry_Calls.Lock_Server.
STPO.Write_Lock (Self_ID);
Old_Base_Priority := Self_ID.Common.Base_Priority;
Self_ID.New_Base_Priority := Object.Ceiling;
Initialization.Change_Base_Priority (Self_ID);
STPO.Unlock (Self_ID);
if Single_Lock then
Unlock_RTS;
end if;
STPO.Write_Lock (Object.L'Unrestricted_Access, Ceiling_Violation);
if Ceiling_Violation then
Raise_Exception (Program_Error'Identity, "Ceiling Violation");
end if;
if Single_Lock then
Lock_RTS;
end if;
Object.Old_Base_Priority := Old_Base_Priority;
Object.Pending_Action := True;
end if;
-- Send program_error to all tasks still queued on this object
for E in Object.Entry_Queues'Range loop
Entry_Call := Object.Entry_Queues (E).Head;
while Entry_Call /= null loop
Caller := Entry_Call.Self;
Entry_Call.Exception_To_Raise := Program_Error'Identity;
STPO.Write_Lock (Caller);
Initialization.Wakeup_Entry_Caller (Self_ID, Entry_Call, Done);
STPO.Unlock (Caller);
exit when Entry_Call = Object.Entry_Queues (E).Tail;
Entry_Call := Entry_Call.Next;
end loop;
end loop;
Object.Finalized := True;
if Single_Lock then
Unlock_RTS;
end if;
STPO.Unlock (Object.L'Unrestricted_Access);
STPO.Finalize_Lock (Object.L'Unrestricted_Access);
end Finalize;
-------------------------------------
-- Has_Interrupt_Or_Attach_Handler --
-------------------------------------
function Has_Interrupt_Or_Attach_Handler
(Object : Protection_Entries_Access)
return Boolean
is
pragma Warnings (Off, Object);
begin
return False;
end Has_Interrupt_Or_Attach_Handler;
-----------------------------------
-- Initialize_Protection_Entries --
-----------------------------------
procedure Initialize_Protection_Entries
(Object : Protection_Entries_Access;
Ceiling_Priority : Integer;
Compiler_Info : System.Address;
Entry_Bodies : Protected_Entry_Body_Access;
Find_Body_Index : Find_Body_Index_Access)
is
Init_Priority : Integer := Ceiling_Priority;
Self_ID : constant Task_Id := STPO.Self;
begin
if Init_Priority = Unspecified_Priority then
Init_Priority := System.Priority'Last;
end if;
if Locking_Policy = 'C'
and then Has_Interrupt_Or_Attach_Handler (Object)
and then Init_Priority not in System.Interrupt_Priority
then
-- Required by C.3.1(11)
raise Program_Error;
end if;
Initialization.Defer_Abort (Self_ID);
Initialize_Lock (Init_Priority, Object.L'Access);
Initialization.Undefer_Abort (Self_ID);
Object.Ceiling := System.Any_Priority (Init_Priority);
Object.Owner := Null_Task;
Object.Compiler_Info := Compiler_Info;
Object.Pending_Action := False;
Object.Call_In_Progress := null;
Object.Entry_Bodies := Entry_Bodies;
Object.Find_Body_Index := Find_Body_Index;
for E in Object.Entry_Queues'Range loop
Object.Entry_Queues (E).Head := null;
Object.Entry_Queues (E).Tail := null;
end loop;
end Initialize_Protection_Entries;
------------------
-- Lock_Entries --
------------------
procedure Lock_Entries
(Object : Protection_Entries_Access; Ceiling_Violation : out Boolean)
is
begin
if Object.Finalized then
Raise_Exception
(Program_Error'Identity, "Protected Object is finalized");
end if;
-- If pragma Detect_Blocking is active then, as described in the ARM
-- 9.5.1, par. 15, we must check whether this is an external call on a
-- protected subprogram with the same target object as that of the
-- protected action that is currently in progress (i.e., if the caller
-- is already the protected object's owner). If this is the case hence
-- Program_Error must be raised.
if Detect_Blocking and then Object.Owner = Self then
raise Program_Error;
end if;
-- The lock is made without defering abort
-- Therefore the abort has to be deferred before calling this routine.
-- This means that the compiler has to generate a Defer_Abort call
-- before the call to Lock.
-- The caller is responsible for undeferring abort, and compiler
-- generated calls must be protected with cleanup handlers to ensure
-- that abort is undeferred in all cases.
pragma Assert (STPO.Self.Deferral_Level > 0);
Write_Lock (Object.L'Access, Ceiling_Violation);
-- We are entering in a protected action, so that we increase the
-- protected object nesting level (if pragma Detect_Blocking is
-- active), and update the protected object's owner.
if Detect_Blocking then
declare
Self_Id : constant Task_Id := Self;
begin
-- Update the protected object's owner
Object.Owner := Self_Id;
-- Increase protected object nesting level
Self_Id.Common.Protected_Action_Nesting :=
Self_Id.Common.Protected_Action_Nesting + 1;
end;
end if;
end Lock_Entries;
procedure Lock_Entries (Object : Protection_Entries_Access) is
Ceiling_Violation : Boolean;
begin
Lock_Entries (Object, Ceiling_Violation);
if Ceiling_Violation then
Raise_Exception (Program_Error'Identity, "Ceiling Violation");
end if;
end Lock_Entries;
----------------------------
-- Lock_Read_Only_Entries --
----------------------------
procedure Lock_Read_Only_Entries (Object : Protection_Entries_Access) is
Ceiling_Violation : Boolean;
begin
if Object.Finalized then
Raise_Exception
(Program_Error'Identity, "Protected Object is finalized");
end if;
-- If pragma Detect_Blocking is active then, as described in the ARM
-- 9.5.1, par. 15, we must check whether this is an external call on a
-- protected subprogram with the same target object as that of the
-- protected action that is currently in progress (i.e., if the caller
-- is already the protected object's owner). If this is the case hence
-- Program_Error must be raised.
-- Note that in this case (getting read access), several tasks may
-- have read ownership of the protected object, so that this method of
-- storing the (single) protected object's owner does not work
-- reliably for read locks. However, this is the approach taken for two
-- major reasosn: first, this function is not currently being used (it
-- is provided for possible future use), and second, it largely
-- simplifies the implementation.
if Detect_Blocking and then Object.Owner = Self then
raise Program_Error;
end if;
Read_Lock (Object.L'Access, Ceiling_Violation);
if Ceiling_Violation then
Raise_Exception (Program_Error'Identity, "Ceiling Violation");
end if;
-- We are entering in a protected action, so that we increase the
-- protected object nesting level (if pragma Detect_Blocking is
-- active), and update the protected object's owner.
if Detect_Blocking then
declare
Self_Id : constant Task_Id := Self;
begin
-- Update the protected object's owner
Object.Owner := Self_Id;
-- Increase protected object nesting level
Self_Id.Common.Protected_Action_Nesting :=
Self_Id.Common.Protected_Action_Nesting + 1;
end;
end if;
end Lock_Read_Only_Entries;
--------------------
-- Unlock_Entries --
--------------------
procedure Unlock_Entries (Object : Protection_Entries_Access) is
begin
-- We are exiting from a protected action, so that we decrease the
-- protected object nesting level (if pragma Detect_Blocking is
-- active), and remove ownership of the protected object.
if Detect_Blocking then
declare
Self_Id : constant Task_Id := Self;
begin
-- Calls to this procedure can only take place when being within
-- a protected action and when the caller is the protected
-- object's owner.
pragma Assert (Self_Id.Common.Protected_Action_Nesting > 0
and then Object.Owner = Self_Id);
-- Remove ownership of the protected object
Object.Owner := Null_Task;
Self_Id.Common.Protected_Action_Nesting :=
Self_Id.Common.Protected_Action_Nesting - 1;
end;
end if;
Unlock (Object.L'Access);
end Unlock_Entries;
end System.Tasking.Protected_Objects.Entries;
|
3-mid/opengl/source/lean/geometry/opengl-primitive-short_indexed.adb | charlie5/lace | 20 | 27697 | <gh_stars>10-100
with
openGL.Errors,
openGL.Buffer,
openGL.Tasks,
GL.Binding,
ada.unchecked_Deallocation;
package body openGL.Primitive.short_indexed
is
---------
--- Forge
--
procedure define (Self : in out Item; Kind : in facet_Kind;
Indices : in short_Indices)
is
use Buffer.short_indices.Forge;
buffer_Indices : aliased short_Indices := (Indices'Range => <>);
begin
for Each in buffer_Indices'Range
loop
buffer_Indices (Each) := Indices (Each) - 1; -- Adjust indices to zero-based indexing for GL.
end loop;
Self.facet_Kind := Kind;
Self.Indices := new Buffer.short_indices.Object' (to_Buffer (buffer_Indices'Access,
usage => Buffer.static_Draw));
end define;
procedure define (Self : in out Item; Kind : in facet_Kind;
Indices : in openGL.Indices)
is
use Buffer.short_indices.Forge;
buffer_Indices : aliased short_Indices := (Indices'Range => <>);
begin
for Each in buffer_Indices'Range
loop
buffer_Indices (Each) := short_Index_t (Indices (Each) - 1); -- Adjust indices to zero-based indexing for GL.
end loop;
Self.facet_Kind := Kind;
Self.Indices := new Buffer.short_indices.Object' (to_Buffer (buffer_Indices'Access,
usage => Buffer.static_Draw));
end define;
procedure define (Self : in out Item; Kind : in facet_Kind;
Indices : in long_Indices)
is
use Buffer.short_indices.Forge;
buffer_Indices : aliased short_indices := (Indices'Range => <>);
begin
for Each in buffer_Indices'Range
loop
buffer_Indices (Each) := short_Index_t (Indices (Each) - 1); -- Adjust indices to zero-based indexing for GL.
end loop;
Self.facet_Kind := Kind;
Self.Indices := new Buffer.short_indices.Object' (to_Buffer (buffer_Indices'Access,
usage => Buffer.static_Draw));
end define;
function new_Primitive (Kind : in facet_Kind;
Indices : in short_Indices) return Primitive.short_indexed.view
is
Self : constant View := new Item;
begin
define (Self.all, Kind, Indices);
return Self;
end new_Primitive;
function new_Primitive (Kind : in facet_Kind;
Indices : in openGL.Indices) return Primitive.short_indexed.view
is
Self : constant View := new Item;
begin
define (Self.all, Kind, Indices);
return Self;
end new_Primitive;
function new_Primitive (Kind : in facet_Kind;
Indices : in openGL.long_Indices) return Primitive.short_indexed.view
is
Self : constant View := new Item;
begin
define (Self.all, Kind, Indices);
return Self;
end new_Primitive;
overriding
procedure destroy (Self : in out Item)
is
procedure free is new ada.unchecked_Deallocation (Buffer.short_Indices.Object'Class,
Buffer.short_Indices.view);
begin
Buffer.destroy (Self.Indices.all);
free (Self.Indices);
end destroy;
--------------
-- Attributes
--
procedure Indices_are (Self : in out Item; Now : in short_Indices)
is
use Buffer.short_indices;
buffer_Indices : aliased short_Indices := (Now'Range => <>);
begin
for Each in buffer_Indices'Range
loop
buffer_Indices (Each) := Now (Each) - 1; -- Adjust indices to zero-based-indexing for GL.
end loop;
Self.Indices.set (to => buffer_Indices);
end Indices_are;
procedure Indices_are (Self : in out Item; Now : in Indices)
is
use Buffer.short_indices;
buffer_Indices : aliased short_Indices := (Now'Range => <>);
begin
for Each in buffer_Indices'Range
loop
buffer_Indices (Each) := short_Index_t (Now (Each) - 1); -- Adjust indices to zero-based-indexing for GL.
end loop;
Self.Indices.set (to => buffer_Indices);
end Indices_are;
procedure Indices_are (Self : in out Item; Now : in long_Indices)
is
use Buffer.short_indices;
buffer_Indices : aliased short_Indices := (Now'Range => <>);
begin
for Each in buffer_Indices'Range
loop
buffer_Indices (Each) := short_Index_t (Now (Each) - 1); -- Adjust indices to zero-based-indexing for GL.
end loop;
Self.Indices.set (to => buffer_Indices);
end Indices_are;
--------------
-- Operations
--
overriding
procedure render (Self : in out Item)
is
use GL,
GL.Binding;
begin
Tasks.check;
openGL.Primitive.item (Self).render; -- Do base class render.
Self.Indices.enable;
glDrawElements (Thin (Self.facet_Kind),
gl.GLint (Self.Indices.Length),
GL_UNSIGNED_BYTE,
null);
Errors.log;
end render;
end openGL.Primitive.short_indexed;
|
src/fltk-widgets-charts.adb | micahwelf/FLTK-Ada | 1 | 13970 |
with
Interfaces.C,
System;
use type
Interfaces.C.int,
System.Address;
package body FLTK.Widgets.Charts is
procedure chart_set_draw_hook
(W, D : in System.Address);
pragma Import (C, chart_set_draw_hook, "chart_set_draw_hook");
pragma Inline (chart_set_draw_hook);
procedure chart_set_handle_hook
(W, H : in System.Address);
pragma Import (C, chart_set_handle_hook, "chart_set_handle_hook");
pragma Inline (chart_set_handle_hook);
function new_fl_chart
(X, Y, W, H : in Interfaces.C.int;
Text : in Interfaces.C.char_array)
return System.Address;
pragma Import (C, new_fl_chart, "new_fl_chart");
pragma Inline (new_fl_chart);
procedure free_fl_chart
(B : in System.Address);
pragma Import (C, free_fl_chart, "free_fl_chart");
pragma Inline (free_fl_chart);
procedure fl_chart_add
(C : in System.Address;
V : in Interfaces.C.double;
L : in Interfaces.C.char_array;
P : in Interfaces.C.unsigned);
pragma Import (C, fl_chart_add, "fl_chart_add");
pragma Inline (fl_chart_add);
procedure fl_chart_insert
(C : in System.Address;
I : in Interfaces.C.int;
V : in Interfaces.C.double;
L : in Interfaces.C.char_array;
P : in Interfaces.C.unsigned);
pragma Import (C, fl_chart_insert, "fl_chart_insert");
pragma Inline (fl_chart_insert);
procedure fl_chart_replace
(C : in System.Address;
I : in Interfaces.C.int;
V : in Interfaces.C.double;
L : in Interfaces.C.char_array;
P : in Interfaces.C.unsigned);
pragma Import (C, fl_chart_replace, "fl_chart_replace");
pragma Inline (fl_chart_replace);
procedure fl_chart_clear
(C : in System.Address);
pragma Import (C, fl_chart_clear, "fl_chart_clear");
pragma Inline (fl_chart_clear);
function fl_chart_get_autosize
(C : in System.Address)
return Interfaces.C.int;
pragma Import (C, fl_chart_get_autosize, "fl_chart_get_autosize");
pragma Inline (fl_chart_get_autosize);
procedure fl_chart_set_autosize
(C : in System.Address;
A : in Interfaces.C.int);
pragma Import (C, fl_chart_set_autosize, "fl_chart_set_autosize");
pragma Inline (fl_chart_set_autosize);
procedure fl_chart_get_bounds
(C : in System.Address;
L, U : out Interfaces.C.double);
pragma Import (C, fl_chart_get_bounds, "fl_chart_get_bounds");
pragma Inline (fl_chart_get_bounds);
procedure fl_chart_set_bounds
(C : in System.Address;
L, U : in Interfaces.C.double);
pragma Import (C, fl_chart_set_bounds, "fl_chart_set_bounds");
pragma Inline (fl_chart_set_bounds);
function fl_chart_get_maxsize
(C : in System.Address)
return Interfaces.C.int;
pragma Import (C, fl_chart_get_maxsize, "fl_chart_get_maxsize");
pragma Inline (fl_chart_get_maxsize);
procedure fl_chart_set_maxsize
(C : in System.Address;
T : in Interfaces.C.int);
pragma Import (C, fl_chart_set_maxsize, "fl_chart_set_maxsize");
pragma Inline (fl_chart_set_maxsize);
function fl_chart_size
(C : in System.Address)
return Interfaces.C.int;
pragma Import (C, fl_chart_size, "fl_chart_size");
pragma Inline (fl_chart_size);
function fl_chart_get_textcolor
(C : in System.Address)
return Interfaces.C.unsigned;
pragma Import (C, fl_chart_get_textcolor, "fl_chart_get_textcolor");
pragma Inline (fl_chart_get_textcolor);
procedure fl_chart_set_textcolor
(C : in System.Address;
T : in Interfaces.C.unsigned);
pragma Import (C, fl_chart_set_textcolor, "fl_chart_set_textcolor");
pragma Inline (fl_chart_set_textcolor);
function fl_chart_get_textfont
(C : in System.Address)
return Interfaces.C.int;
pragma Import (C, fl_chart_get_textfont, "fl_chart_get_textfont");
pragma Inline (fl_chart_get_textfont);
procedure fl_chart_set_textfont
(C : in System.Address;
T : in Interfaces.C.int);
pragma Import (C, fl_chart_set_textfont, "fl_chart_set_textfont");
pragma Inline (fl_chart_set_textfont);
function fl_chart_get_textsize
(C : in System.Address)
return Interfaces.C.int;
pragma Import (C, fl_chart_get_textsize, "fl_chart_get_textsize");
pragma Inline (fl_chart_get_textsize);
procedure fl_chart_set_textsize
(C : in System.Address;
T : in Interfaces.C.int);
pragma Import (C, fl_chart_set_textsize, "fl_chart_set_textsize");
pragma Inline (fl_chart_set_textsize);
procedure fl_chart_size2
(C : in System.Address;
W, H : in Interfaces.C.int);
pragma Import (C, fl_chart_size2, "fl_chart_size2");
pragma Inline (fl_chart_size2);
procedure fl_chart_draw
(W : in System.Address);
pragma Import (C, fl_chart_draw, "fl_chart_draw");
pragma Inline (fl_chart_draw);
function fl_chart_handle
(W : in System.Address;
E : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_chart_handle, "fl_chart_handle");
pragma Inline (fl_chart_handle);
procedure Finalize
(This : in out Chart) is
begin
if This.Void_Ptr /= System.Null_Address and then
This in Chart'Class
then
free_fl_chart (This.Void_Ptr);
This.Void_Ptr := System.Null_Address;
end if;
Finalize (Widget (This));
end Finalize;
package body Forge is
function Create
(X, Y, W, H : in Integer;
Text : in String)
return Chart is
begin
return This : Chart do
This.Void_Ptr := new_fl_chart
(Interfaces.C.int (X),
Interfaces.C.int (Y),
Interfaces.C.int (W),
Interfaces.C.int (H),
Interfaces.C.To_C (Text));
fl_widget_set_user_data
(This.Void_Ptr,
Widget_Convert.To_Address (This'Unchecked_Access));
chart_set_draw_hook (This.Void_Ptr, Draw_Hook'Address);
chart_set_handle_hook (This.Void_Ptr, Handle_Hook'Address);
end return;
end Create;
end Forge;
procedure Add
(This : in out Chart;
Data_Value : in Long_Float;
Data_Label : in String := "";
Data_Color : in Color := No_Color) is
begin
fl_chart_add
(This.Void_Ptr,
Interfaces.C.double (Data_Value),
Interfaces.C.To_C (Data_Label),
Interfaces.C.unsigned (Data_Color));
end Add;
procedure Insert
(This : in out Chart;
Position : in Natural;
Data_Value : in Long_Float;
Data_Label : in String := "";
Data_Color : in Color := No_Color) is
begin
fl_chart_insert
(This.Void_Ptr,
Interfaces.C.int (Position),
Interfaces.C.double (Data_Value),
Interfaces.C.To_C (Data_Label),
Interfaces.C.unsigned (Data_Color));
end Insert;
procedure Replace
(This : in out Chart;
Position : in Natural;
Data_Value : in Long_Float;
Data_Label : in String := "";
Data_Color : in Color := No_Color) is
begin
fl_chart_replace
(This.Void_Ptr,
Interfaces.C.int (Position),
Interfaces.C.double (Data_Value),
Interfaces.C.To_C (Data_Label),
Interfaces.C.unsigned (Data_Color));
end Replace;
procedure Clear
(This : in out Chart) is
begin
fl_chart_clear (This.Void_Ptr);
end Clear;
function Will_Autosize
(This : in Chart)
return Boolean is
begin
return fl_chart_get_autosize (This.Void_Ptr) /= 0;
end Will_Autosize;
procedure Set_Autosize
(This : in out Chart;
To : in Boolean) is
begin
fl_chart_set_autosize (This.Void_Ptr, Boolean'Pos (To));
end Set_Autosize;
procedure Get_Bounds
(This : in Chart;
Lower, Upper : out Long_Float) is
begin
fl_chart_get_bounds
(This.Void_Ptr,
Interfaces.C.double (Lower),
Interfaces.C.double (Upper));
end Get_Bounds;
procedure Set_Bounds
(This : in out Chart;
Lower, Upper : in Long_Float) is
begin
fl_chart_set_bounds
(This.Void_Ptr,
Interfaces.C.double (Lower),
Interfaces.C.double (Upper));
end Set_Bounds;
function Get_Maximum_Size
(This : in Chart)
return Natural is
begin
return Natural (fl_chart_get_maxsize (This.Void_Ptr));
end Get_Maximum_Size;
procedure Set_Maximum_Size
(This : in out Chart;
To : in Natural) is
begin
fl_chart_set_maxsize (This.Void_Ptr, Interfaces.C.int (To));
end Set_Maximum_Size;
function Get_Size
(This : in Chart)
return Natural is
begin
return Natural (fl_chart_size (This.Void_Ptr));
end Get_Size;
function Get_Text_Color
(This : in Chart)
return Color is
begin
return Color (fl_chart_get_textcolor (This.Void_Ptr));
end Get_Text_Color;
procedure Set_Text_Color
(This : in out Chart;
To : in Color) is
begin
fl_chart_set_textcolor (This.Void_Ptr, Interfaces.C.unsigned (To));
end Set_Text_Color;
function Get_Text_Font
(This : in Chart)
return Font_Kind is
begin
return Font_Kind'Val (fl_chart_get_textfont (This.Void_Ptr));
end Get_Text_Font;
procedure Set_Text_Font
(This : in out Chart;
To : in Font_Kind) is
begin
fl_chart_set_textfont (This.Void_Ptr, Font_Kind'Pos (To));
end Set_Text_Font;
function Get_Text_Size
(This : in Chart)
return Font_Size is
begin
return Font_Size (fl_chart_get_textsize (This.Void_Ptr));
end Get_Text_Size;
procedure Set_Text_Size
(This : in out Chart;
To : in Font_Size) is
begin
fl_chart_set_textsize (This.Void_Ptr, Interfaces.C.int (To));
end Set_Text_Size;
procedure Resize
(This : in out Chart;
W, H : in Integer) is
begin
fl_chart_size2 (This.Void_Ptr, Interfaces.C.int (W), Interfaces.C.int (H));
end Resize;
procedure Draw
(This : in out Chart) is
begin
fl_chart_draw (This.Void_Ptr);
end Draw;
function Handle
(This : in out Chart;
Event : in Event_Kind)
return Event_Outcome is
begin
return Event_Outcome'Val
(fl_chart_handle (This.Void_Ptr, Event_Kind'Pos (Event)));
end Handle;
end FLTK.Widgets.Charts;
|
cmd/cps/mirror/mir_org.asm | minblock/msdos | 0 | 15479 | <filename>cmd/cps/mirror/mir_org.asm
; Copyright (c) 1990-1991 Central Point Software, Inc.
; All rights reserved
;
; This is the 1st module of MIRROR.COM
;
; Change Log:
;
; Date Who # Description
; -------- --- ---- -----------------------------------------------------
; 02/11/91 DLB M006 Changed "entry" symbol to "$entry"
CODE SEGMENT PARA PUBLIC 'CODE'
ASSUME CS:CODE, DS:nothing, ES:nothing
major_ver EQU 6
minor_ver EQU 6
;
major_digit EQU major_ver + "0"
minor_digit EQU minor_ver + "0"
;
EXTRN start:near ;In the _DTRK module.
EXTRN end_prog:byte ;In the _LAST module.
;
PUBLIC major_digit, minor_digit
PUBLIC $entry, org_id_length ;M006
PUBLIC org_id2, org_id2_length
;
asm_message MACRO x1,x2,x3,x4,x5,x6,x7
%OUT *MSG: x1&x2&x3&x4&x5&x6&x7
ENDM
;
IF2
asm_message <Mirror version >,%major_ver,<.>,%minor_ver
ENDIF
;
ORG 100h
$entry: jmp start ;M006
;
ORG $entry + 3 ;M006
org_id2 LABEL byte
DB " Mirror "
org_id2_length EQU ($ - org_id2)
;
version_text LABEL byte
DB major_digit
DB "."
DB minor_digit
DB "m "
DB 1Ah
;
DW end_prog ;Changes with program size.
;
org_id_length EQU ($ - $entry) ;M006
;
CODE ENDS
END $entry
|
wof/lcs/enemy/86.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | 6 | 25064 | <gh_stars>1-10
copyright zengfr site:http://github.com/zengfr/romhack
001590 lea ($20,A0), A0
00827C move.w A1, ($86,A0) [enemy+68]
008280 move.b ($30,A0), ($79,A1) [enemy+86]
008D88 move.w A1, ($86,A0) [enemy+68]
008D8C move.b ($30,A0), ($79,A1) [enemy+86]
01228E move.l (A2)+, (A3)+ [enemy+80, enemy+82]
012290 move.l (A2)+, (A3)+ [enemy+84, enemy+86]
01A75E dbra D4, $1a75c
025366 beq $2537e [enemy+86]
02537E move.l A7, ($1e4,A5) [enemy+86]
026732 beq $2674a [enemy+86]
02674A move.l A7, ($1e4,A5) [enemy+86]
02915A beq $29172 [enemy+86]
029172 move.l A7, ($1e4,A5) [enemy+86]
02A51C beq $2a534 [enemy+86]
02A534 move.l A7, ($1e4,A5) [enemy+86]
02B748 beq $2b760 [enemy+86]
02B760 move.l A7, ($1e4,A5) [enemy+86]
0328B0 beq $328c8 [enemy+86]
0328C8 move.l A7, ($1e4,A5) [enemy+86]
0366E4 beq $366fc [enemy+86]
0366FC move.l A7, ($1e4,A5) [enemy+86]
046826 beq $4683e
04719C beq $471b4
049558 beq $49570
049A0E beq $49a26
copyright zengfr site:http://github.com/zengfr/romhack
|
src/main/resources/Examples/System Calls/Trap 000105.asm | jimw278/MIPS | 3 | 82361 | ;trap 105 sleeps for the numbers of milliseconds in register 4
loop:
addi $4, $0, string ;loads the address of the string into register 4
addi $5, $0, 1 ;sets the step ammount to 1
trap 4 ;prints the ascii string to userIO
addi $4, $0, 1000 ;moves 1000 into register 4
trap 105 ;waits 1000 ms
j loop ;jumps back to loop
string:
.ascii "delay of 1000 ms"
.byte 10,0 ;new line and termination |
libsrc/_DEVELOPMENT/alloc/balloc/c/sdcc_iy/balloc_alloc_fastcall.asm | jpoikela/z88dk | 640 | 165201 |
; void *balloc_alloc_fastcall(unsigned char queue)
SECTION code_clib
SECTION code_alloc_balloc
PUBLIC _balloc_alloc_fastcall
EXTERN asm_balloc_alloc
defc _balloc_alloc_fastcall = asm_balloc_alloc
|
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0.log_21829_1171.asm | ljhsiun2/medusa | 9 | 247725 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x19621, %r8
nop
and %r10, %r10
mov (%r8), %rcx
nop
nop
nop
nop
nop
sub %r11, %r11
lea addresses_WC_ht+0x3481, %rbp
nop
and $2004, %r12
vmovups (%rbp), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %r8
nop
nop
and $13115, %rbp
lea addresses_D_ht+0x16c35, %rsi
lea addresses_normal_ht+0x1c0b3, %rdi
nop
nop
nop
nop
sub %r12, %r12
mov $43, %rcx
rep movsl
nop
nop
dec %r12
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r13
push %r9
push %rcx
push %rsi
// Store
mov $0x555, %r9
clflush (%r9)
nop
dec %rcx
movb $0x51, (%r9)
nop
nop
nop
nop
nop
cmp $2416, %rsi
// Faulty Load
lea addresses_normal+0x1d995, %rsi
clflush (%rsi)
cmp $58741, %r12
mov (%rsi), %r13d
lea oracles, %rsi
and $0xff, %r13
shlq $12, %r13
mov (%rsi,%r13,1), %r13
pop %rsi
pop %rcx
pop %r9
pop %r13
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_normal', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_P', 'AVXalign': False, 'size': 1}}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_normal', 'AVXalign': True, 'size': 4}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': True, 'same': False, 'congruent': 1, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 5, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_normal_ht'}}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
|
oeis/313/A313704.asm | neoneye/loda-programs | 11 | 97459 | ; A313704: Coordination sequence Gal.6.323.4 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; Submitted by <NAME>(s3)
; 1,5,10,15,19,25,29,35,39,44,49,54,59,64,69,73,79,83,89,93,98,103,108,113,118,123,127,133,137,143,147,152,157,162,167,172,177,181,187,191,197,201,206,211,216,221,226,231,235,241
mov $1,$0
mul $0,15
add $0,5
div $0,11
mul $1,39
sub $1,6
div $1,11
add $1,1
add $0,$1
|
Cubical/HITs/Bouquet/FundamentalGroupProof.agda | thomas-lamiaux/cubical | 1 | 11977 | <reponame>thomas-lamiaux/cubical<gh_stars>1-10
{-
This file contains:
- Definition of functions of the equivalence between FreeGroup and the FundamentalGroup
- Definition of encode decode functions
- Proof that for all x : Bouquet A → p : base ≡ x → decode x (encode x p) ≡ p (no truncations)
- Proof of the truncated versions of encodeDecode and of right-homotopy
- Definition of truncated encode decode functions
- Proof of the truncated versions of decodeEncode and encodeDecode
- Proof that π₁Bouquet ≡ FreeGroup A
-}
{-# OPTIONS --safe #-}
module Cubical.HITs.Bouquet.FundamentalGroupProof where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Function
open import Cubical.Foundations.Pointed
open import Cubical.Foundations.Univalence
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.GroupoidLaws renaming (assoc to pathAssoc)
open import Cubical.HITs.SetTruncation hiding (rec2)
open import Cubical.HITs.PropositionalTruncation hiding (map ; elim) renaming (rec to propRec)
open import Cubical.Algebra.Group
open import Cubical.Homotopy.Group.Base
open import Cubical.Homotopy.Loopspace
open import Cubical.HITs.Bouquet.Base
open import Cubical.HITs.FreeGroup.Base
open import Cubical.HITs.FreeGroupoid
private
variable
ℓ : Level
A : Type ℓ
-- Pointed versions of the non truncated types
ΩBouquet : {A : Type ℓ} → Pointed ℓ
ΩBouquet {A = A} = Ω (Bouquet∙ A)
FreeGroupoid∙ : {A : Type ℓ} → Pointed ℓ
FreeGroupoid∙ {A = A} = FreeGroupoid A , ε
-- Functions without using the truncated forms of types
looping : FreeGroupoid A → typ ΩBouquet
looping (η a) = loop a
looping (g1 · g2) = looping g1 ∙ looping g2
looping ε = refl
looping (inv g) = sym (looping g)
looping (assoc g1 g2 g3 i) = pathAssoc (looping g1) (looping g2) (looping g3) i
looping (idr g i) = rUnit (looping g) i
looping (idl g i) = lUnit (looping g) i
looping (invr g i) = rCancel (looping g) i
looping (invl g i) = lCancel (looping g) i
looping∙ : FreeGroupoid∙ →∙ ΩBouquet {A = A}
looping∙ = looping , refl
code : {A : Type ℓ} → (Bouquet A) → Type ℓ
code {A = A} base = (FreeGroupoid A)
code (loop a i) = pathsInU (η a) i
winding : typ ΩBouquet → FreeGroupoid A
winding l = subst code l ε
winding∙ : ΩBouquet →∙ FreeGroupoid∙ {A = A}
winding∙ = winding , refl
-- Functions using the truncated forms of types
π₁Bouquet : {A : Type ℓ} → Type ℓ
π₁Bouquet {A = A} = π 1 (Bouquet∙ A)
loopingT : ∥ FreeGroupoid A ∥₂ → π₁Bouquet
loopingT = map looping
windingT : π₁Bouquet → ∥ FreeGroupoid A ∥₂
windingT = map winding
-- Utility proofs
substPathsR : {C : Type ℓ}{y z : C} → (x : C) → (p : y ≡ z) → subst (λ y → x ≡ y) p ≡ λ q → q ∙ p
substPathsR {y = y} x p = funExt homotopy where
homotopy : ∀ q → subst (λ y → x ≡ y) p q ≡ q ∙ p
homotopy q = J P d p where
P : ∀ z' → y ≡ z' → Type _
P z' p' = subst (λ y → x ≡ y) p' q ≡ q ∙ p'
d : P y refl
d =
subst (λ y → x ≡ y) refl q
≡⟨ substRefl {B = λ y → x ≡ y} q ⟩
q
≡⟨ rUnit q ⟩
q ∙ refl ∎
substFunctions : {B C : A → Type ℓ}{x y : A}
→ (p : x ≡ y)
→ (f : B x → C x)
→ subst (λ z → (B z → C z)) p f ≡ subst C p ∘ f ∘ subst B (sym p)
substFunctions {B = B} {C = C} {x = x} p f = J P d p where
auxC : idfun (C x) ≡ subst C refl
auxC = funExt (λ c → sym (substRefl {B = C} c))
auxB : idfun (B x) ≡ subst B refl
auxB = funExt (λ b → sym (substRefl {B = B} b))
P : ∀ y' → x ≡ y' → Type _
P y' p' = subst (λ z → (B z → C z)) p' f ≡ subst C p' ∘ f ∘ subst B (sym p')
d : P x refl
d =
subst (λ z → (B z → C z)) refl f
≡⟨ substRefl {B = λ z → (B z → C z)} f ⟩
f
≡⟨ cong (λ h → h ∘ f ∘ idfun (B x)) auxC ⟩
subst C refl ∘ f ∘ idfun (B x)
≡⟨ cong (λ h → subst C refl ∘ f ∘ h) auxB ⟩
subst C refl ∘ f ∘ subst B (sym refl) ∎
-- Definition of the encode - decode functions over the family of types Π(x : W A) → code x
encode : (x : Bouquet A) → base ≡ x → code x
encode x l = subst code l ε
decode : {A : Type ℓ}(x : Bouquet A) → code x → base ≡ x
decode {A = A} base = looping
decode {A = A} (loop a i) = path i where
pathover : PathP (λ i → (code (loop a i) → base ≡ (loop a i))) looping (subst (λ z → (code z → base ≡ z)) (loop a) looping)
pathover = subst-filler (λ z → (code z → base ≡ z)) (loop a) looping
aux : (a : A) → subst code (sym (loop a)) ≡ action (inv (η a))
aux a = funExt homotopy where
homotopy : ∀ (g : FreeGroupoid A) → subst code (sym (loop a)) g ≡ action (inv (η a)) g
homotopy g =
subst code (sym (loop a)) g
≡⟨ cong (λ x → transport x g) (sym (invPathsInUNaturality (η a))) ⟩
transport (pathsInU (inv (η a))) g
≡⟨ uaβ (equivs (inv (η a))) g ⟩
action (inv (η a)) g ∎
calculations : ∀ (a : A) → ∀ g → looping (g · (inv (η a))) ∙ loop a ≡ looping g
calculations a g =
looping (g · (inv (η a))) ∙ loop a
≡⟨ sym (pathAssoc (looping g) (sym (loop a)) (loop a)) ⟩
looping g ∙ (sym (loop a) ∙ loop a)
≡⟨ cong (λ x → looping g ∙ x) (lCancel (loop a)) ⟩
looping g ∙ refl
≡⟨ sym (rUnit (looping g)) ⟩
looping g ∎
path' : subst (λ z → (code z → base ≡ z)) (loop a) looping ≡ looping
path' =
subst (λ z → (code z → base ≡ z)) (loop a) looping
≡⟨ substFunctions {B = code} {C = λ z → base ≡ z} (loop a) looping ⟩
subst (λ z → base ≡ z) (loop a) ∘ looping ∘ subst code (sym (loop a))
≡⟨ cong (λ x → x ∘ looping ∘ subst code (sym (loop a))) (substPathsR base (loop a)) ⟩
(λ p → p ∙ loop a) ∘ looping ∘ subst code (sym (loop a))
≡⟨ cong (λ x → (λ p → p ∙ loop a) ∘ looping ∘ x) (aux a) ⟩
(λ p → p ∙ loop a) ∘ looping ∘ action (inv (η a))
≡⟨ funExt (calculations a) ⟩
looping ∎
path'' : PathP (λ i → code ((loop a ∙ refl) i) → base ≡ ((loop a ∙ refl) i)) looping looping
path'' = compPathP' {A = Bouquet A} {B = λ z → code z → base ≡ z} pathover path'
p''≡p : PathP (λ i → code ((loop a ∙ refl) i) → base ≡ ((loop a ∙ refl) i)) looping looping ≡
PathP (λ i → code (loop a i) → base ≡ (loop a i)) looping looping
p''≡p = cong (λ x → PathP (λ i → code (x i) → base ≡ (x i)) looping looping) (sym (rUnit (loop a)))
path : PathP (λ i → code (loop a i) → base ≡ (loop a i)) looping looping
path = transport p''≡p path''
-- Non truncated Left Homotopy
decodeEncode : (x : Bouquet A) → (p : base ≡ x) → decode x (encode x p) ≡ p
decodeEncode x p = J P d p where
P : (x' : Bouquet A) → base ≡ x' → Type _
P x' p' = decode x' (encode x' p') ≡ p'
d : P base refl
d =
decode base (encode base refl)
≡⟨ cong (λ e' → looping e') (transportRefl ε) ⟩
refl ∎
left-homotopy : ∀ (l : typ (ΩBouquet {A = A})) → looping (winding l) ≡ l
left-homotopy l = decodeEncode base l
-- Truncated proofs of right homotopy of winding/looping functions
truncatedPathEquality : (g : FreeGroupoid A) → ∥ cong code (looping g) ≡ ua (equivs g) ∥₁
truncatedPathEquality = elimProp
Bprop
(λ a → ∣ η-ind a ∣₁)
(λ g1 g2 → λ ∣ind1∣₁ ∣ind2∣₁ → rec2 squash₁ (λ ind1 ind2 → ∣ ·-ind g1 g2 ind1 ind2 ∣₁) ∣ind1∣₁ ∣ind2∣₁)
∣ ε-ind ∣₁
(λ g → λ ∣ind∣₁ → propRec squash₁ (λ ind → ∣ inv-ind g ind ∣₁) ∣ind∣₁) where
B : ∀ g → Type _
B g = cong code (looping g) ≡ ua (equivs g)
Bprop : ∀ g → isProp ∥ B g ∥₁
Bprop g = squash₁
η-ind : ∀ a → B (η a)
η-ind a = refl
·-ind : ∀ g1 g2 → B g1 → B g2 → B (g1 · g2)
·-ind g1 g2 ind1 ind2 =
cong code (looping (g1 · g2))
≡⟨ cong (λ x → x ∙ cong code (looping g2)) ind1 ⟩
pathsInU g1 ∙ cong code (looping g2)
≡⟨ cong (λ x → pathsInU g1 ∙ x) ind2 ⟩
pathsInU g1 ∙ pathsInU g2
≡⟨ sym (multPathsInUNaturality g1 g2) ⟩
pathsInU (g1 · g2) ∎
ε-ind : B ε
ε-ind =
cong code (looping ε)
≡⟨ sym idPathsInUNaturality ⟩
pathsInU ε ∎
inv-ind : ∀ g → B g → B (inv g)
inv-ind g ind =
cong code (looping (inv g))
≡⟨ cong sym ind ⟩
sym (pathsInU g)
≡⟨ sym (invPathsInUNaturality g) ⟩
ua (equivs (inv g)) ∎
truncatedRight-homotopy : (g : FreeGroupoid A) → ∥ winding (looping g) ≡ g ∥₁
truncatedRight-homotopy g = propRec squash₁ recursion (truncatedPathEquality g) where
recursion : cong code (looping g) ≡ ua (equivs g) → ∥ winding (looping g) ≡ g ∥₁
recursion hyp = ∣ aux ∣₁ where
aux : winding (looping g) ≡ g
aux =
winding (looping g)
≡⟨ cong (λ x → transport x ε) hyp ⟩
transport (ua (equivs g)) ε
≡⟨ uaβ (equivs g) ε ⟩
ε · g
≡⟨ sym (idl g) ⟩
g ∎
right-homotopyInTruncatedGroupoid : (g : FreeGroupoid A) → ∣ winding (looping g) ∣₂ ≡ ∣ g ∣₂
right-homotopyInTruncatedGroupoid g = Iso.inv PathIdTrunc₀Iso (truncatedRight-homotopy g)
-- Truncated encodeDecode over all fibrations
truncatedEncodeDecode : (x : Bouquet A) → (g : code x) → ∥ encode x (decode x g) ≡ g ∥₁
truncatedEncodeDecode base = truncatedRight-homotopy
truncatedEncodeDecode (loop a i) = isProp→PathP prop truncatedRight-homotopy truncatedRight-homotopy i where
prop : ∀ i → isProp (∀ (g : code (loop a i)) → ∥ encode (loop a i) (decode (loop a i) g) ≡ g ∥₁)
prop i f g = funExt pointwise where
pointwise : (x : code (loop a i)) → PathP (λ _ → ∥ encode (loop a i) (decode (loop a i) x) ≡ x ∥₁) (f x) (g x)
pointwise x = isProp→PathP (λ i → squash₁) (f x) (g x)
encodeDecodeInTruncatedGroupoid : (x : Bouquet A) → (g : code x) → ∣ encode x (decode x g) ∣₂ ≡ ∣ g ∣₂
encodeDecodeInTruncatedGroupoid x g = Iso.inv PathIdTrunc₀Iso (truncatedEncodeDecode x g)
-- Encode Decode over the truncated versions of the types
encodeT : (x : Bouquet A) → ∥ base ≡ x ∥₂ → ∥ code x ∥₂
encodeT x = map (encode x)
decodeT : (x : Bouquet A) → ∥ code x ∥₂ → ∥ base ≡ x ∥₂
decodeT x = map (decode x)
decodeEncodeT : (x : Bouquet A) → (p : ∥ base ≡ x ∥₂) → decodeT x (encodeT x p) ≡ p
decodeEncodeT x g = elim sethood induction g where
sethood : (q : ∥ base ≡ x ∥₂) → isSet (decodeT x (encodeT x q) ≡ q)
sethood q = isProp→isSet (squash₂ (decodeT x (encodeT x q)) q)
induction : (l : base ≡ x) → ∣ decode x (encode x l) ∣₂ ≡ ∣ l ∣₂
induction l = cong (λ l' → ∣ l' ∣₂) (decodeEncode x l)
encodeDecodeT : (x : Bouquet A) → (g : ∥ code x ∥₂) → encodeT x (decodeT x g) ≡ g
encodeDecodeT x g = elim sethood induction g where
sethood : (z : ∥ code x ∥₂) → isSet (encodeT x (decodeT x z) ≡ z)
sethood z = isProp→isSet (squash₂ (encodeT x (decodeT x z)) z)
induction : (a : code x) → ∣ encode x (decode x a) ∣₂ ≡ ∣ a ∣₂
induction a = encodeDecodeInTruncatedGroupoid x a
-- Final equivalences
TruncatedFamiliesIso : (x : Bouquet A) → Iso ∥ base ≡ x ∥₂ ∥ code x ∥₂
Iso.fun (TruncatedFamiliesIso x) = encodeT x
Iso.inv (TruncatedFamiliesIso x) = decodeT x
Iso.rightInv (TruncatedFamiliesIso x) = encodeDecodeT x
Iso.leftInv (TruncatedFamiliesIso x) = decodeEncodeT x
TruncatedFamiliesEquiv : (x : Bouquet A) → ∥ base ≡ x ∥₂ ≃ ∥ code x ∥₂
TruncatedFamiliesEquiv x = isoToEquiv (TruncatedFamiliesIso x)
TruncatedFamilies≡ : (x : Bouquet A) → ∥ base ≡ x ∥₂ ≡ ∥ code x ∥₂
TruncatedFamilies≡ x = ua (TruncatedFamiliesEquiv x)
π₁Bouquet≡∥FreeGroupoid∥₂ : π₁Bouquet ≡ ∥ FreeGroupoid A ∥₂
π₁Bouquet≡∥FreeGroupoid∥₂ = TruncatedFamilies≡ base
π₁Bouquet≡FreeGroup : {A : Type ℓ} → π₁Bouquet ≡ FreeGroup A
π₁Bouquet≡FreeGroup {A = A} =
π₁Bouquet
≡⟨ π₁Bouquet≡∥FreeGroupoid∥₂ ⟩
∥ FreeGroupoid A ∥₂
≡⟨ sym freeGroupTruncIdempotent ⟩
FreeGroup A ∎
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/regpat1.adb | best08618/asylo | 7 | 25566 | <gh_stars>1-10
-- { dg-do run }
with GNAT.Regpat; use GNAT.Regpat;
procedure regpat1 is
begin
declare
Re : Pattern_Matcher := Compile ("a[]b");
begin
raise Program_Error;
end;
exception
when Expression_Error => null;
end regpat1;
|
Kernel/asm/ioports.asm | tdorado/so-tp2 | 0 | 168784 | GLOBAL _ioRead
GLOBAL _ioWrite
section .text
; _ioRead -- Reads in port
; IN: RDI = port
; OUT: RAX = result from port read
_ioRead:
push rbp
mov rbp, rsp
xor rax, rax
push rdx
mov rdx, rdi
in al, dx
pop rdx
pop rbp
ret
; _ioWrite -- Writes in port
; IN: RDI = port
; RSI = data for port
; OUT: void
_ioWrite:
push rbp
mov rbp, rsp
push rdx
push rax
mov rdx, rdi
mov rax, rsi
out dx, al
pop rax
pop rdx
pop rbp
ret |
programs/oeis/047/A047494.asm | neoneye/loda | 22 | 84596 | <filename>programs/oeis/047/A047494.asm
; A047494: Numbers that are congruent to {0, 1, 4, 5, 7} mod 8.
; 0,1,4,5,7,8,9,12,13,15,16,17,20,21,23,24,25,28,29,31,32,33,36,37,39,40,41,44,45,47,48,49,52,53,55,56,57,60,61,63,64,65,68,69,71,72,73,76,77,79,80,81,84,85,87,88,89,92,93,95,96,97,100,101,103,104,105,108,109,111,112,113,116,117,119,120,121,124,125,127,128,129,132,133,135,136,137,140,141,143,144,145,148,149,151,152,153,156,157,159
add $0,1
mov $1,$0
mul $0,2
add $0,5
div $0,5
mul $0,6
div $0,4
add $0,$1
sub $0,2
|
1-base/lace/source/text/lace-text-utility.adb | charlie5/lace-alire | 1 | 20902 | <reponame>charlie5/lace-alire
with
lace.Text.all_Tokens;
package body lace.Text.utility
is
function replace (Self : in Text.item; Pattern : in String;
By : in String) return Text.item
is
Tail_matches_Pattern : Boolean := False;
begin
-- Corner case: Pattern exactly matches Self.
--
if Self.Data (1 .. Self.Length) = Pattern
then
declare
Result : Text.item (Capacity => Natural'Max (By'Length,
Self.Capacity));
begin
Result.Length := By'Length;
Result.Data (1 .. By'Length) := By;
return Result;
end;
end if;
-- Corner case: Pattern exactly matches tail of Self.
--
if Self.Data (Self.Length - Pattern'Length + 1 .. Self.Length) = Pattern
then
Tail_matches_Pattern := True;
end if;
-- General case.
--
declare
use lace.Text.all_Tokens;
the_Tokens : constant Text.items_1k := Tokens (Self, Delimiter => Pattern);
Size : Natural := 0;
begin
for Each of the_Tokens
loop
Size := Size + Each.Length;
end loop;
Size := Size + (the_Tokens'Length - 1) * By'Length;
if Tail_matches_Pattern
then
Size := Size + By'Length;
end if;
declare
First : Positive := 1;
Last : Natural;
Result : Text.item (Capacity => Natural'Max (Size,
Self.Capacity));
begin
for Each of the_Tokens
loop
Last := First + Each.Length - 1;
Result.Data (First .. Last) := Each.Data (1 .. Each.Length);
exit when Last = Size;
First := Last + 1;
Last := First + By'Length - 1;
Result.Data (First .. Last) := By;
First := Last + 1;
end loop;
Result.Length := Size;
return Result;
end;
end;
end replace;
procedure replace (Self : in out Item; Pattern : in String;
By : in String)
is
Result : Item (Self.Capacity);
Cursor : Positive := 1;
First : Natural := 1;
Last : Natural;
begin
loop
Last := First + Pattern'Length - 1;
if Last > Self.Length
then
Last := Self.Length;
end if;
if Self.Data (First .. Last) = Pattern
then
Result.Data (Cursor .. Cursor + By'Length - 1) := By;
Cursor := Cursor + By'Length;
First := Last + 1;
else
Result.Data (Cursor) := Self.Data (First);
Cursor := Cursor + 1;
First := First + 1;
end if;
exit when First > Self.Length;
end loop;
Self.Length := Cursor - 1;
Self.Data (1 .. Self.Length) := Result.Data (1 .. Self.Length);
exception
when constraint_Error =>
raise Text.Error with "'replace' failed ~ insufficient capacity";
end replace;
end lace.Text.utility;
|
programs/oeis/255/A255873.asm | jmorken/loda | 1 | 171467 | ; A255873: The first nonzero digit of n/7.
; 1,2,4,5,7,8,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,8,8,8,9,9,9,9,9,9,9,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3
add $0,1
mul $0,143
lpb $0
mov $1,$0
div $0,10
mov $3,$2
mov $2,1
mul $3,8
mul $1,$3
lpe
sub $1,8
div $1,8
add $1,1
|
programs/oeis/243/A243306.asm | jmorken/loda | 1 | 14608 | <filename>programs/oeis/243/A243306.asm
; A243306: 2^phi(n) - phi(n).
; 1,1,2,2,12,2,58,12,58,12,1014,12,4084,58,248,248,65520,58,262126,248,4084,1014,4194282,248,1048556,4084,262126,4084,268435428,248,1073741794,65520,1048556,65520,16777192,4084,68719476700,262126,16777192,65520,1099511627736,4084,4398046511062,1048556,16777192,4194282,70368744177618,65520,4398046511062,1048556,4294967264,16777192,4503599627370444,262126,1099511627736,16777192,68719476700,268435428
cal $0,10 ; Euler totient function phi(n): count numbers <= n and prime to n.
mov $2,1
mul $2,$0
mov $0,2
pow $0,$2
sub $0,$2
mov $1,$0
|
test/Fail/NonUniqueInstance2.agda | shlevy/agda | 1,989 | 4714 | open import Common.Prelude hiding (tt)
instance
tt : ⊤
tt = record{}
_<_ : Nat → Nat → Set
m < zero = ⊥
zero < suc n = ⊤
suc m < suc n = m < n
instance
<-suc : ∀ {m n} {{_ : m < n}} → m < suc n
<-suc {zero} = tt
<-suc {suc m} {zero} {{}}
<-suc {suc m} {suc n} = <-suc {m} {n}
|
alloy4fun_models/trashltl/models/9/usmGQ2nGu5iDw9yPR.als | Kaixi26/org.alloytools.alloy | 0 | 2742 | <filename>alloy4fun_models/trashltl/models/9/usmGQ2nGu5iDw9yPR.als
open main
pred idusmGQ2nGu5iDw9yPR_prop10 {
always (all f:File | f in Protected implies always f in Protected)
}
pred __repair { idusmGQ2nGu5iDw9yPR_prop10 }
check __repair { idusmGQ2nGu5iDw9yPR_prop10 <=> prop10o } |
testutil/ahven/ahven-framework.ads | Letractively/ada-util | 0 | 19842 | <reponame>Letractively/ada-util<filename>testutil/ahven/ahven-framework.ads
--
-- Copyright (c) 2007-2009 <NAME> <<EMAIL>>
--
-- Permission to use, copy, modify, and distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
--
with Ada.Finalization;
with Ahven;
with Ahven.Listeners;
with Ahven.SList;
with Ahven.AStrings;
pragma Elaborate_All (Ahven);
pragma Elaborate_All (Ahven.SList);
package Ahven.Framework is
Three_Hours : constant := 10800.0;
subtype Test_Duration is Duration range 0.0 .. Three_Hours;
type Test_Count_Type is new Natural;
-- Type for the test count. This effectively
-- limits the amount tests to whatever Natural is.
--
-- Although, in practice when adding tests the limit
-- is not checked.
type Test is abstract new Ada.Finalization.Controlled with null record;
-- A type, which provides the base for Test_Case and
-- Test_Suite types.
type Test_Class_Access is access all Test'Class;
procedure Set_Up (T : in out Test);
-- Set_Up is called before executing the test procedure.
--
-- By default, the procedure does nothing, but derived
-- types can overwrite this method and add their own
-- customisations.
--
-- One should not call this explicitly by herself.
-- The framework calls it when necessary.
procedure Tear_Down (T : in out Test);
-- Tear_Down is called after the test procedure is executed.
--
-- By default, the procedure does nothing, but derived
-- types can overwrite this method and add their own
-- customisations.
--
-- One should not call this explicitly by herself.
-- The framework calls it when necessary.
function Get_Name (T : Test) return String is abstract;
-- Return the name of the test.
--
-- Types derived from the Test type are required to overwrite
-- this procedure.
procedure Run (T : in out Test;
Listener : in out Listeners.Result_Listener'Class);
-- Run the test and place the test result to Result.
--
-- Calls Run (T, Listener, Timeout) with Timeout value 0.0.
procedure Run (T : in out Test;
Listener : in out Listeners.Result_Listener'Class;
Timeout : Test_Duration)
is abstract;
-- Run the test and place the test result to Result.
-- Timeout specifies the maximum runtime for a single test.
--
-- Types derived from the Test type are required to overwrite
-- this procedure.
procedure Run (T : in out Test;
Test_Name : String;
Listener : in out Listeners.Result_Listener'Class);
-- Run the test and place the test result to Result.
--
-- Calls Run (T, Test_Name, Listener, Timeout) with Timeout value 0.0.
procedure Run (T : in out Test;
Test_Name : String;
Listener : in out Listeners.Result_Listener'Class;
Timeout : Test_Duration)
is abstract;
-- Run the test with given name and place the test result to Result.
-- Timeout specifies the maximum runtime for a single test.
-- Notice: If multiple tests have same name this might call all of
-- them.
--
-- Types derived from the Test type are required to overwrite
-- this procedure.
function Test_Count (T : Test) return Test_Count_Type is abstract;
-- Return the amount of tests (test routines) which will be executed when
-- the Run (T) procedure is called.
function Test_Count (T : Test; Test_Name : String)
return Test_Count_Type is abstract;
-- Return the amount of tests (test routines) which will be executed when
-- the Run (T, Test_Name) procedure is called.
procedure Execute (T : in out Test'Class;
Listener : in out Listeners.Result_Listener'Class;
Timeout : Test_Duration);
-- Call Test class' Run method and place the test outcome to Result.
-- The procedure calls Start_Test of every listener before calling
-- the Run procedure and End_Test after calling the Run procedure.
--
-- This procedure is meant to be called from Runner package(s).
-- There should be no need for other to use this.
procedure Execute (T : in out Test'Class;
Test_Name : String;
Listener : in out Listeners.Result_Listener'Class;
Timeout : Test_Duration);
-- Same as Execute above, but call the Run procedure which
-- takes Test_Name parameter.
type Test_Case is abstract new Test with private;
-- The base type for other test cases.
function Get_Name (T : Test_Case) return String;
-- Return the name of the test case.
procedure Run (T : in out Test_Case;
Listener : in out Listeners.Result_Listener'Class;
Timeout : Test_Duration);
-- Run Test_Case's test routines.
procedure Run (T : in out Test_Case;
Test_Name : String;
Listener : in out Listeners.Result_Listener'Class;
Timeout : Test_Duration);
-- Run Test_Case's test routine which matches to the Name.
function Test_Count (T : Test_Case) return Test_Count_Type;
-- Implementation of Test_Count (T : Test).
function Test_Count (T : Test_Case; Test_Name : String)
return Test_Count_Type;
-- Implementation of Test_Count (T : Test, Test_Name : String).
procedure Finalize (T : in out Test_Case);
-- Finalize procedure of the Test_Case.
procedure Set_Name (T : in out Test_Case; Name : String);
-- Set Test_Case's name.
--
-- If longer than 160 characters, the name is truncated
-- to 160 characters.
type Object_Test_Routine_Access is
access procedure (T : in out Test_Case'Class);
-- A pointer to a test routine which takes Test_Case'Class object
-- as an argument.
--
-- For this kind of test routines, the framework will
-- call Set_Up and Tear_Down routines before and after
-- test routine execution.
type Simple_Test_Routine_Access is access procedure;
-- A pointer to a test routine which does not take arguments.
procedure Add_Test_Routine (T : in out Test_Case'Class;
Routine : Object_Test_Routine_Access;
Name : String);
-- Register a test routine to the Test_Case object.
--
-- The routine must have signature
-- "procedure R (T : in out Test_Case'Class)".
procedure Add_Test_Routine (T : in out Test_Case'Class;
Routine : Simple_Test_Routine_Access;
Name : String);
-- Register a simple test routine to the Test_Case.
--
-- The routine must have signature
-- "procedure R".
type Test_Suite is new Test with private;
-- A collection of Tests.
--
-- You can either fill a Test_Suite object with Test_Case objects
-- or nest multiple Test_Suite objects. You can even mix
-- Test_Case and Test_Suite objects, if necessary.
type Test_Suite_Access is access all Test_Suite;
function Create_Suite (Suite_Name : String)
return Test_Suite_Access;
-- Create a new Test_Suite.
-- Caller must free the returned Test_Suite using Release_Suite.
function Create_Suite (Suite_Name : String)
return Test_Suite;
-- Create a new Test_Suite. The suite and its children are
-- released automatically.
procedure Add_Test (Suite : in out Test_Suite; T : Test_Class_Access);
-- Add a Test to the suite. The suite frees the Test automatically
-- when it is no longer needed.
procedure Add_Test (Suite : in out Test_Suite; T : Test_Suite_Access);
-- Add a Test suite to the suite. The suite frees the Test automatically
-- when it is no longer needed.
--
-- This is a helper function, which internally calls
-- Add_Test (Suite : in out Test_Suite; T : Test_Class_Access).
procedure Add_Static_Test
(Suite : in out Test_Suite; T : Test'Class);
-- Add a Test to the suite. This procedure is meant for statically
-- allocated Test_Case objects.
--
-- Please note, that a copy of the Test'Class object is saved to
-- the suite. Original test object is not modified and changes
-- made to it after adding the test are not propagated to
-- the added object.
function Get_Name (T : Test_Suite) return String;
-- Return the name of Test_Suite.
procedure Run (T : in out Test_Suite;
Listener : in out Listeners.Result_Listener'Class;
Timeout : Test_Duration);
-- Run Test_Suite's Test_Cases.
procedure Run (T : in out Test_Suite;
Test_Name : String;
Listener : in out Listeners.Result_Listener'Class;
Timeout : Test_Duration);
-- Run test suite's child which matches to the given name.
function Test_Count (T : Test_Suite) return Test_Count_Type;
-- Implementation of Test_Count (T : Test).
function Test_Count (T : Test_Suite; Test_Name : String)
return Test_Count_Type;
-- Implementation of Test_Count (T : Test, Test_Name : String).
procedure Adjust (T : in out Test_Suite);
-- Adjust procedure of Test_Suite.
-- Handles the copying of the structure properly
procedure Finalize (T : in out Test_Suite);
-- Finalize procedure of Test_Suite. Frees all added Tests.
procedure Release_Suite (T : Test_Suite_Access);
-- Release the memory of Test_Suite.
-- All added tests are released automatically.
private
type Command_Object_Enum is (SIMPLE, OBJECT);
type Test_Command (Command_Kind : Command_Object_Enum := SIMPLE) is record
Name : AStrings.Bounded_String;
case Command_Kind is
when SIMPLE =>
Simple_Routine : Simple_Test_Routine_Access;
when OBJECT =>
Object_Routine : Object_Test_Routine_Access;
end case;
end record;
-- Name attribute tells the name of the test routine.
procedure Run (Command : Test_Command; T : in out Test_Case'Class);
-- Run the specified command.
-- Calls Set_Up and Tear_Down if necessary.
package Test_Command_List is
new Ahven.SList (Element_Type => Test_Command);
type Test_Case is abstract new Test with record
Routines : Test_Command_List.List := Test_Command_List.Empty_List;
Name : AStrings.Bounded_String := AStrings.Null_Bounded_String;
end record;
-- Our test case type. It holds a list of test routines
-- (test command objects) and the name of the test case.
procedure Run_Command (Command : Test_Command;
Info : Listeners.Context;
Timeout : Test_Duration;
Listener : in out Listeners.Result_Listener'Class;
T : in out Test_Case'Class);
-- Handle dispatching to the right Run (Command : Test_Command)
-- procedure and record test routine result to the Result object.
--
-- Timeout parameter defines the longest time the test is allowed
-- to run. Value 0.0 means infinite time.
type Test_Class_Wrapper is record
Ptr : Test_Class_Access;
end record;
package Test_List is
new Ahven.SList (Element_Type => Test_Class_Wrapper);
package Indefinite_Test_List is
type List is new Ada.Finalization.Controlled with private;
Empty_List : constant List;
procedure Append (Target : in out List; Node_Data : Test'Class);
-- Append an element at the end of the list.
procedure Clear (Target : in out List);
-- Remove all elements from the list.
generic
with procedure Action (T : in out Test'Class) is <>;
procedure For_Each (Target : List);
-- A generic procedure for walk through every item
-- in the list and call Action procedure for them.
private
type Node;
type Node_Access is access Node;
procedure Remove (Ptr : Node_Access);
-- A procedure to release memory pointed by Ptr.
type Node is record
Next : Node_Access := null;
Data : Test_Class_Access := null;
end record;
type List is new Ada.Finalization.Controlled with record
First : Node_Access := null;
Last : Node_Access := null;
end record;
procedure Initialize (Target : in out List);
procedure Finalize (Target : in out List);
procedure Adjust (Target : in out List);
Empty_List : constant List :=
(Ada.Finalization.Controlled with First => null,
Last => null);
end Indefinite_Test_List;
type Test_Suite is new Test with record
Suite_Name : AStrings.Bounded_String := AStrings.Null_Bounded_String;
Test_Cases : Test_List.List := Test_List.Empty_List;
Static_Test_Cases : Indefinite_Test_List.List :=
Indefinite_Test_List.Empty_List;
end record;
-- A suite type which holds a list of test cases and the name
-- of the suite.
end Ahven.Framework;
|
oeis/333/A333170.asm | neoneye/loda-programs | 11 | 1653 | <reponame>neoneye/loda-programs
; A333170: a(n) = Sum_{k=0..n} phi(k^2 + 1), where phi is the Euler totient function (A000010).
; 1,2,6,10,26,38,74,94,142,182,282,342,454,518,714,826,1082,1194,1434,1614,2014,2206,2590,2798,3374,3686,4362,4650,5274,5694,6526,6958,7758,8190,9246,9858,11154,11698,12786,13546,15146,15958,17366,18086,19862,20874,22890,23658,25498,26698,29098,30398,32558,33678,36594,38002,41138,42338,45026,46766,50078,51938,55010,56594,60434,62546,66902,68694,72294,74674,79042,81562,85402,87322,92798,95486,101102,103470,108334,111454,117646,120718,126078,128574,135630,139242,146058,149082,155274,158986,167086
mov $3,$0
add $3,1
lpb $3
mov $0,$2
sub $3,1
sub $0,$3
pow $0,2
seq $0,10 ; Euler totient function phi(n): count numbers <= n and prime to n.
add $1,$0
lpe
mov $0,$1
|
lab2.asm | ToBadForYou/tsea28-labs | 0 | 100243 | ;*******************************
;*
;* Malldokument Lab2 i Datorteknik Y (Darma)
;*
;* KPa 180212
;* 180219 Fix initGPIOE, GPIODATA def
;* 180301 Move definitions to top of file, use only english comments
;* 190213 Update definitions to use .equ/mov/movt instead of .field/ldr
;* OAn 200131 Last line in interrupt printout different from other lines
;*
;* Lab 2: Use two ports for interrupts: Port F pin 4 and Port D pin 7
;*
;* Port B pin 0-7 defined as outputs
;* Port D pin 2,3,6,7 defined as inputs, pin 7 interrupt on rising edge
;* Port E pin 0-5 defined as outputs
;* Port F pin 0-3 defined as outputs
;* Port F pin 4 defined as input with pull-up, pin 4 interrupt on rising edge
;*
;* Predefined subroutines
;*
;* inituart: Initialize uart0 to use 115200 baud, 8N1.
;* initGPIOB: Initialize port B
;* initGPIOD: Initialize port D
;* initGPIOE: Initialize port E
;* initGPIOF: Initialize port F
;* initint: Initialize NVIC to have GPIOF prio 5, GPIOD prio 2
;* SKBAK: Print "Bakgrundsprogram"
;* SKAVH: Print " <NAME>"
;* SKAVV: Print " <NAME>"
;* DELAY: Delay, r1=number of ms to wait
;*
.thumb ; Code is using Thumb mode
.text ; Code is put into the program memory
;*****************************************************
;*
;* Constants that are not stored in pogram memory
;*
;* Used together with offset constants defined below
;*
;*****************************************************
UART0_base .equ 0x4000c000 ; Start adress for UART
GPIOA_base .equ 0x40004000 ; General Purpose IO port A start adress
GPIOB_base .equ 0x40005000 ; General Purpose IO port B start adress
GPIOC_base .equ 0x40006000 ; General Purpose IO port C start adress
GPIOD_base .equ 0x40007000 ; General Purpose IO port D start adress
GPIOE_base .equ 0x40024000 ; General Purpose IO port E start adress
GPIOF_base .equ 0x40025000 ; General Purpose IO port F start adress
GPIO_HBCTL .equ 0x400FE06C ; GPIO buss choise
NVIC_base .equ 0xe000e000 ; Nested Vectored Interrupt Controller
GPIO_KEY .equ <KEY> ; Key value to unlock configuration registers
RCGCUART .equ 0x400FE618 ; Enable UART port
RCGCGPIO .equ 0x400fe608 ; Enable GPIO port
;*****************************************************
;
; Use as offset together with base-definitions above
;
;*****************************************************
UARTDR .equ 0x0000 ; Data register
UARTFR .equ 0x0018 ; Flag register
UARTIBRD .equ 0x0024 ; Baud rate control1
UARTFBRD .equ 0x0028 ; Baud rate control2
UARTLCRH .equ 0x002c ;
UARTCTL .equ 0x0030 ; Control register
GPIODATA .equ 0x03fc ; Data register
GPIODIR .equ 0x0400 ; Direction select
GPIOIS .equ 0x0404 ; interrupt sense
GPIOIBE .equ 0x0408 ; interrupt both edges
GPIOIEV .equ 0x040c ; interrupt event
GPIOIM .equ 0x0410 ; interrupt mask
GPIORIS .equ 0x0414 ; raw interrupt status
GPIOMIS .equ 0x0418 ; masked interrupt status
GPIOICR .equ 0x041c ; interrupt clear
GPIOAFSEL .equ 0x0420 ; alternate function select
GPIODR2R .equ 0x0500 ; 2 mA Drive select
GPIODR4R .equ 0x0504 ; 4 mA Drive select
GPIODR8R .equ 0x0508 ; 8 mA Drive select
GPIOODR .equ 0x050c ; Open drain select
GPIOPUR .equ 0x510 ; pull-up select
GPIOPDR .equ 0x514 ; pull-down select
GPIOSLR .equ 0x518 ; slew rate control select
GPIODEN .equ 0x51c ; digital enable
GPIOLOCK .equ 0x520 ; lock register
GPIOCR .equ 0x524 ; commit
GPIOAMSEL .equ 0x528 ; analog mode select
GPIOPCTL .equ 0x52c ; port control
NVIC_EN0 .equ 0x100 ; Enable interrupt 0-31
NVIC_PRI0 .equ 0x400 ; Select priority interrupts 0-3
NVIC_PRI1 .equ 0x404 ; Select priority interrupts 4-7
NVIC_PRI7 .equ 0x41c ; Select priority interrupts 28-31
NVIC_PRI12 .equ 0x430 ; Select priority interrupts 48-51
;*****************************************************
;
; Definitions found in "Introduktion till Darma"
;
;*****************************************************
GPIOB_GPIODATA .equ 0x400053fc ; dataregister port B
GPIOB_GPIODIR .equ 0x40005400 ; riktningsregister port B
GPIOD_GPIODATA .equ 0x40007330 ; dataregister port D
GPIOD_GPIODIR .equ 0x40007400 ; riktningsregister port D
GPIOD_GPIOICR .equ 0x4000741c ; rensa avbrottsrequest port D
GPIOE_GPIODATA .equ 0x400240fc ; dataregister port E
GPIOE_GPIODIR .equ 0x40024400 ; riktningsregister port E
GPIOF_GPIODATA .equ 0x4002507c ; dataregister port F
GPIOF_GPIODIR .equ 0x40025400 ; riktningsregister port F
GPIOF_GPIOICR .equ 0x4002541c ; rensa avbrottrequest port F
RESULT_A .equ 0x20001000
RESULT_B .equ 0x20001004
BALL_DIR .equ 0x20001008
SERVE_STATUS .equ 0x2000100c
;*****************************************************
;
; Texts used by SKBAK, SKAVH, SKAVV
;
;*****************************************************
.align 4 ; make sure these constants start on 4 byte boundary
Bakgrundstext .string "Bakgrundsprogram",13,10,0
Lefttextstart .string " AVBROTT v",0xe4, "nster",13,10,0
Leftstar .string " *",13,10,0
Lefttextend .string " SLUT v",0xe4, "nster",13,10,0
Righttextstart .string " AVBROTT h",0xf6, "ger",13,10,0
Rightstar .string " *",13,10,0
Righttextend .string " SLUT h",0xf6, "ger",13,10,0
.global main ; main is defined in this file
.global intgpiod ; intgpiod is defined in this file
.global intgpiof ; intgpiof is defined in this file
.align 0x100 ; Start main at an adress ending with two zeros
;*************************************************************************
;*
;* Place your main program here
;*
main:
bl mainlaba
mainlaba:
bl inituart
bl initGPIOD
bl initGPIOF
bl initint
bl initregisters
loopsoup:
bl SKBAK
mov r1,#1000
bl DELAY
b loopsoup
mainpong:
bl inituart
bl initGPIOB
bl initGPIOD
bl initGPIOF
bl initint
bl initpong
pongloop:
bl servestatus
cmp r0,#0x01
beq pongloop
mov r1,#300
bl DELAY
bl servestatus
cmp r0,#0x01
beq pongloop
mov r1,#(GPIOB_GPIODATA & 0xffff)
movt r1,#(GPIOB_GPIODATA >> 16)
ldr r1,[r1]
mov r2,#0
cmp r1,r2
beq balloutside
bl moveball
b pongloop
balloutside:
bl getdirection
bl setserve
bl addscore
b pongloop
initpong:
push{lr}
mov r0,#0xff
mov r1,#(RESULT_A & 0xffff)
movt r1,#(RESULT_A >> 16)
mov r2,#(RESULT_B & 0xffff)
movt r2,#(RESULT_B >> 16)
mov r3,#0
str r3,[r2]
str r3,[r1]
bl setserve
pop{lr}
bx lr
;inparameters r0, ff for player1, 00 for player2
addscore:
cmp r0,#0xff
beq rightscore
leftscore:
mov r1,#(RESULT_A & 0xffff)
movt r1,#(RESULT_A >> 16)
b returnaddscore
rightscore:
mov r1,#(RESULT_B & 0xffff)
movt r1,#(RESULT_B >> 16)
returnaddscore:
ldr r0,[r1]
add r0,r0,#1
bx lr
;Set servestatus to true
;inparameters r0, 00 for rightserve, ff for leftserve
setserve:
push{lr}
mov r1,#(SERVE_STATUS & 0xffff)
movt r1,#(SERVE_STATUS >> 16)
mov r2,#0xff
str r2,[r1]
bl setdirection
mov r1,#(GPIOB_GPIODATA & 0xffff)
movt r1,#(GPIOB_GPIODATA >> 16)
cmp r0,#0x00
beq rightserve
leftserve:
mov r2,#0x80
b returnsetserve
rightserve:
mov r2,#0x01
returnsetserve:
str r2,[r1]
pop{lr}
bx lr
; returns 1 in r0 if serve and 0 if not
servestatus:
mov r0,#(SERVE_STATUS & 0xffff)
movt r0,#(SERVE_STATUS >> 16)
ldr r1,[r0]
cmp r1,#0xff
beq servetrue
mov r0,#0
bx lr
servetrue:
mov r0,#1
bx lr
;inparameters r0, 00 for left, ff for right
setdirection:
mov r1,#(BALL_DIR & 0xffff)
movt r1,#(BALL_DIR >> 16)
str r0,[r1]
bx lr
;returns direction in r0
getdirection:
mov r1,#(BALL_DIR & 0xffff)
movt r1,#(BALL_DIR >> 16)
ldr r0,[r1]
bx lr
performserve:
mov r1,#(SERVE_STATUS & 0xffff)
movt r1,#(SERVE_STATUS >> 16)
mov r2,#0x00
str r2,[r1]
moveball:
push{lr}
bl getdirection
mov r1,#(GPIOB_GPIODATA & 0xffff)
movt r1,#(GPIOB_GPIODATA >> 16)
ldr r2,[r1]
cmp r0,#0xff
beq moveright
moveleft:
lsl r2,r2,#1
b moveend
moveright:
lsr r2,r2,#1
moveend:
str r2,[r1]
pop{lr}
bx lr
;pingpong RIGHT
intgpiod:
push{lr}
mov r1,#(GPIOD_base & 0xffff)
movt r1,#(GPIOD_base >> 16)
; clear interrupts (unnecessary)
mov r0,#0x80 ; clear interrupts
str r0,[r1,#GPIOICR]
;kolla om det är serve
bl servestatus
cmp r0,#1
beq servingright
mov r1,#(GPIOB_GPIODATA & 0xffff)
movt r1,#(GPIOB_GPIODATA >> 16)
ldr r2,[r1]
cmp r2,#1
bne missright
hitright:
mov r0,#0x00
bl setdirection
b end2
missright:
mov r0,#0xff
bl setserve
bl addscore
b end2
servingright:
bl getdirection
cmp r0,#0x00
bne end2
bl performserve
end2:
pop{lr}
bx lr
.align 0x100 ; Place interrupt routine for GPIO port F at an adress that ends with two zeros
;***********************************************
;LEFT
intgpiof:
push{lr}
mov r1,#(GPIOF_base & 0xffff)
movt r1,#(GPIOF_base >> 16)
; clear interrupts (unnecessary)
mov r0,#0x10 ; clear interrupts
str r0,[r1,#GPIOICR]
bl servestatus
cmp r0,#1
beq servingleft
mov r1,#(GPIOB_GPIODATA & 0xffff)
movt r1,#(GPIOB_GPIODATA >> 16)
ldr r2,[r1]
cmp r2,#0x80
bne missleft
hitleft:
mov r0,#0xff
bl setdirection
b end1
missleft:
mov r0,#0
bl setserve
bl addscore
b end1
servingleft:
bl getdirection
cmp r0,#0xff
bne end1
bl performserve
end1:
pop{lr}
bx lr
.align 0x100 ; Next routine is started at an adress in the program memory that ends with two zeros
;*******************************************************************************************************
;*
;* Subrutines. Nothing of this needs to be changed in the lab.
;*
.align 2
;PINGPONG END
initregisters:
mov r0,#(0x00010203 & 0xffff)
movt r0,#(0x00010203 >> 16)
mov r1,#(0x10111213 & 0xffff)
movt r1,#(0x10111213 >> 16)
mov r2,#(0x20212223 & 0xffff)
movt r2,#(0x20212223 >> 16)
mov r3,#(0x30313233 & 0xffff)
movt r3,#(0x30313233 >> 16)
mov r4,#(0x40414243 & 0xffff)
movt r4,#(0x40414243 >> 16)
mov r5,#(0x50617253 & 0xffff)
movt r5,#(0x50617253 >> 16)
mov r6,#(0x60717263 & 0xffff)
movt r6,#(0x60717263 >> 16)
mov r7,#(0x70717273 & 0xffff)
movt r7,#(0x70717273 >> 16)
mov r8,#(0x80818283 & 0xffff)
movt r8,#(0x80818283 >> 16)
mov r9,#(0x90919293 & 0xffff)
movt r9,#(0x90919293 >> 16)
mov r10,#(0xa0a1a2a3 & 0xffff)
movt r10,#(0xa0a1a2a3 >> 16)
mov r11,#(0xb0b1b2b3 & 0xffff)
movt r11,#(0xb0b1b2b3 >> 16)
mov r12,#(0xc0c1c2c3 & 0xffff)
movt r12,#(0xc0c1c2c3 >> 16)
bx lr
.align 0x100 ; Place interrupt routine for GPIO port D
; at an adress that ends with two zeros
;**********************************************
;*
;* Place your interrupt routine for GPIO port D here
;*
intgpioda:
push{lr}
mov r1,#(GPIOD_base & 0xffff)
movt r1,#(GPIOD_base >> 16)
; clear interrupts (unnecessary)
mov r0,#0x80 ; clear interrupts
str r0,[r1,#GPIOICR]
bl SKAVH
pop{lr}
bx lr
; Here is the interrupt routine triggered by port D
.align 0x100 ; Place interrupt routine for GPIO port F at an adress that ends with two zeros
;***********************************************
;*
;* Place your interrupt routine for GPIO port F here
;*
intgpiofa:
push{lr}
mov r1,#(GPIOF_base & 0xffff)
movt r1,#(GPIOF_base >> 16)
; clear interrupts (unnecessary)
mov r0,#0x10 ; clear interrupts
str r0,[r1,#GPIOICR]
bl SKAVV
pop{lr}
bx lr
.align 0x100 ; Next routine is started at an adress in the program memory that ends with two zeros
;*******************************************************************************************************
;*
;* Subrutines. Nothing of this needs to be changed in the lab.
;*
.align 2
;* SKBAK: Prints the text "Bakgrundsprogram" slowly
;* Destroys r3, r2, r1, r0
SKBAK:
push {lr}
adr r3,Bakgrundstext
bl slowprintstring
pop {lr}
bx lr
;* SKAVV: Prints the text "<NAME>" followed by 5 lines with a star at the end
;* Destroys r3, r2, r1, r0
SKAVV:
push {lr}
adr r3,Lefttextstart
bl slowprintstring
mov r2,#5
leftloop:
mov r1,#600
bl DELAY
adr r3,Leftstar
bl slowprintstring
subs r2,r2,#1
bne leftloop
adr r3,Lefttextend
bl slowprintstring
pop {lr}
bx lr
;* SKAVH: Prints the text "<NAME>" followed by 5 lines with a star at the end
;* Destroys r3, r2, r1, r0
SKAVH:
push {lr}
adr r3,Righttextstart
bl slowprintstring
mov r2,#5
rightloop:
mov r1,#600
bl DELAY
adr r3,Rightstar
bl slowprintstring
subs r2,r2,#1
bne rightloop
adr r3,Righttextend
bl slowprintstring
pop {lr}
bx lr
;* DELAY:
;* r1 = number of ms, destroys r1
DELAY:
push {r0}
loop_millisecond:
mov r0,#0x1300
loop_delay:
subs r0,r0,#1
bne loop_delay
subs r1,r1,#1
bne loop_millisecond
pop {r0}
bx lr
;* inituart: Initialize serial communiation (enable UART0, set baudrate 115200, 8N1 format)
inituart:
mov r1,#(RCGCUART & 0xffff)
movt r1,#(RCGCUART >> 16)
ldr r0,[r1]
orr r0,#0x01
str r0,[r1]
; activate GPIO Port A
mov r1,#(RCGCGPIO & 0xffff)
movt r1,#(RCGCGPIO >> 16)
ldr r0,[r1]
orr r0,#0x01
str r0,[r1]
nop
nop
nop
; Connect pin 0 and 1 on GPIO port A to the UART function (default for UART0)
; Allow alt function and enable digital I/O on port A pin 0 and 1
mov r1,#(GPIOA_base & 0xffff)
movt r1,#(GPIOA_base >> 16)
ldr r0,[r1,#GPIOAFSEL]
orr r0,#0x03
str r0,[r1,#GPIOAFSEL]
ldr r0,[r1,#GPIODEN]
orr r0,#0x03
str r0,[r1,#GPIODEN]
; Set clockfrequency on the uart, calculated as BRD = 16 MHz / (16 * 115200) = 8.680556
; => BRDI = 8, BRDF=0.6805556, DIVFRAC=(0.6805556*64+0.5)=44
; Final settting of uart clock:
; 8 in UARTIBRD (bit 15 to 0 in UARTIBRD)
mov r1,#(UART0_base & 0xffff)
movt r1,#(UART0_base >> 16)
mov r0,#0x08
str r0,[r1,#UARTIBRD]
; 44 in UARTFBRD (bit 5 to 0 in UARTFBRD)
mov r0,#44
str r0,[r1,#UARTFBRD]
; initialize 8 bit, no FIFO buffert, 1 stop bit, no paritety bit (0x60 to bit 7 to 0 in UARTLCRH)
mov r0,#0x60
str r0,[r1,#UARTLCRH]
; activate uart (0 to bits 15 and 14, 0 to bit 11, 0x6 to bits 9 to 7, 0x01 to bits 5 downto 0 in UARTCTL)
mov r0,#0x0301
str r0,[r1,#UARTCTL]
bx lr
.align 0x10
; initGPIOB, set GPIO port B pin 7 downto 0 as outputs
; destroys r0, r1
initGPIOB:
mov r1,#(RCGCGPIO & 0xffff)
movt r1,#(RCGCGPIO >> 16)
ldr r0,[r1]
orr r0,#0x02 ; Activate GPIO port B
str r0,[r1]
nop ; 5 clock cycles before the port can be used
nop
nop
mov r1,#(GPIO_HBCTL & 0xffff) ; Select bus for GPIOB
movt r1,#(GPIO_HBCTL >> 16)
ldr r0,[r1]
bic r0,#0x02 ; Select apb bus for GPIOB (reset bit 1)
str r0,[r1]
mov r1,#(GPIOB_base & 0xffff)
movt r1,#(GPIOB_base >> 16)
mov r0,#0xff ; all pins are outputs
str r0,[r1,#GPIODIR]
mov r0,#0 ; all pins connects to the GPIO port
str r0,[r1,#GPIOAFSEL]
mov r0,#0x00 ; disable analog function
str r0,[r1,#GPIOAMSEL]
mov r0,#0x00 ; Use port B as GPIO without special functions
str r0,[r1,#GPIOPCTL]
mov r0,#0x00 ; No pullup pins on port B
str r0,[r1,#GPIOPUR]
mov r0,#0xff ; all pins are digital I/O
str r0,[r1,#GPIODEN]
bx lr
; initGPIOD, set pins 2,3,6,7 as inputs
; destroy r0, r1
initGPIOD:
mov r1,#(RCGCGPIO & 0xffff)
movt r1,#(RCGCGPIO >> 16)
ldr r0,[r1]
orr r0,#0x08 ; aktivera GPIO port D clocking
str r0,[r1]
nop ; 5 clock cycles before the port can be used
nop
nop
mov r1,#(GPIO_HBCTL & 0xffff) ; do not use ahb for GPIOD
movt r1,#(GPIO_HBCTL >> 16)
ldr r0,[r1]
bic r0,#0x08 ; use apb bus for GPIOD
str r0,[r1]
mov r1,#(GPIOD_base & 0xffff)
movt r1,#(GPIOD_base >> 16)
mov r0,#(GPIO_KEY & 0xffff)
movt r0,#(GPIO_KEY >> 16)
str r0,[r1,#GPIOLOCK] ; unlock port D configuration register
mov r0,#0xcc ; Allow the 4 pins in the port to be configured
str r0,[r1,#GPIOCR]
mov r0,#0x0 ; all are inputs
str r0,[r1,#GPIODIR]
mov r0,#0 ; all pins are GPIO pins
str r0,[r1,#GPIOAFSEL]
mov r0,#0x00 ; disable analog function
str r0,[r1,#GPIOAMSEL]
mov r0,#0x00 ; Use port D as GPIO without special functions
str r0,[r1,#GPIOPCTL]
mov r0,#0x00 ; No pullup on port D
str r0,[r1,#GPIOPUR]
mov r0,#0xff ; all pins are digital I/O
str r0,[r1,#GPIODEN]
bx lr
; initGPIOE, set pins bit 0-5 as outputs
; destroys r0, r1
initGPIOE:
mov r1,#(RCGCGPIO & 0xffff)
movt r1,#(RCGCGPIO >> 16)
ldr r0,[r1]
orr r0,#0x10 ; activate GPIO port E
str r0,[r1]
nop ; 5 clock cycles before the port can be used
nop
nop
mov r1,#(GPIO_HBCTL & 0xffff) ; Do not use ahb (high performance bus) for GPIOE
movt r1,#(GPIO_HBCTL >> 16)
ldr r0,[r1]
bic r0,#0x10 ; use apb bus for GPIOE
str r0,[r1]
mov r1,#(GPIOE_base & 0xffff)
movt r1,#(GPIOE_base >> 16)
mov r0,#0x3f ; all pins are outputs
str r0,[r1,#GPIODIR]
mov r0,#0 ; all port bits used as GPIO
str r0,[r1,#GPIOAFSEL]
mov r0,#0x00 ; disable analog functionality
str r0,[r1,#GPIOAMSEL]
mov r0,#0x00 ; use port E as GPIO without special funtionality
str r0,[r1,#GPIOPCTL]
mov r0,#0x00 ; No pullup on port E
str r0,[r1,#GPIOPUR]
mov r0,#0x3f ; all pins are digital I/O
str r0,[r1,#GPIODEN]
bx lr
; initGPIOF, set pin 0-3 as outputs, pin 4 as input with pullup
; destroys r0, r1
initGPIOF:
mov r1,#(RCGCGPIO & 0xffff)
movt r1,#(RCGCGPIO >> 16)
ldr r0,[r1]
orr r0,#0x20 ; activate GPIO port F
str r0,[r1]
nop ; 5 clock cycles before the port can be used
nop
nop
mov r1,#(GPIO_HBCTL & 0xffff) ; Choose bus type for GPIOF
movt r1,#(GPIO_HBCTL >> 16)
ldr r0,[r1]
bic r0,#0x20 ; Select GPIOF port connected to the apb bus
str r0,[r1]
mov r1,#(GPIOF_base & 0xffff)
movt r1,#(GPIOF_base >> 16)
mov r0,#(GPIO_KEY & 0xffff)
movt r0,#(GPIO_KEY >> 16)
str r0,[r1,#GPIOLOCK] ; unlock port F configuration registers
mov r0,#0x1f ; allow all 5 pins to be configured
str r0,[r1,#GPIOCR]
mov r0,#0x00 ; disable analog function
str r0,[r1,#GPIOAMSEL]
mov r0,#0x00 ; use port F as GPIO
str r0,[r1,#GPIOPCTL]
mov r0,#0x0f ; use bit 0-3 as outputs (do NOT press the black buttons on Darma!)
str r0,[r1,#GPIODIR]
mov r0,#0 ; all pins is used by GPIO
str r0,[r1,#GPIOAFSEL]
mov r0,#0x10 ; weak pull-up for pin 4
str r0,[r1,#GPIOPUR]
mov r0,#0xff ; all pins are digitala I/O
str r0,[r1,#GPIODEN]
bx lr
; initint, initialize interrupt management
; destroys r0,r1
; Enable interrupts from pin 7 port D and pin 4 port F
initint:
; disable interrupts while configuring
cpsid i
; Generate interrupt from port D, GPIO port D is interrupt nr 3 (vector 19)
; positiv edge, high priority interrupt
; Generete interrupt from port F, GPIO port F is interrupt nr 30 (vector 46)
; positiv edge, low priority interrupt
; GPIO port F setup
; interrupt activated by input signal edge
mov r1,#(GPIOF_base & 0xffff)
movt r1,#(GPIOF_base >> 16)
mov r0,#0x00 ; edge detection
str r0,[r1,#GPIOIS]
; clear interrupts (unnecessary)
mov r0,#0xff ; clear interrupts
str r0,[r1,#GPIOICR]
; Enable positive edge (ignore falling edge)
mov r0,#0x00 ; Use IEV to control
str r0,[r1,#GPIOIBE]
mov r0,#0x10 ; rising edge
str r0,[r1,#GPIOIEV]
; clear interrupt
mov r0,#0xff ; clear interrupts
str r0,[r1,#GPIOICR]
; enable interrupts from bit 4
mov r0,#0x10 ; Send interrupt to controller
str r0,[r1,#GPIOIM]
; NVIC setup to handle GPIO port F generated interrupt requests
; NVIC_priority interrupt 30
mov r1,#(NVIC_base & 0xffff)
movt r1,#(NVIC_base >> 16)
ldr r0,[r1,#NVIC_PRI7] ; Set priority 5
mvn r2,#0x00e00000 ; clear bits 23 downto 21
and r0,r2
orr r0,#0x00a00000
str r0,[r1,#NVIC_PRI7]
; NVIC_enable allow interrupt nr 30 (port F)
ldr r0,[r1,#NVIC_EN0]
orr r0,#0x40000000
str r0,[r1,#NVIC_EN0]
; GPIO Port D setup
; interrupt generated by positive edge
mov r1,#(GPIOD_base & 0xffff)
movt r1,#(GPIOD_base >> 16)
mov r0,#0x00 ; edge detection
str r0,[r1,#GPIOIS]
; clear interrupts (unnecessary)
mov r0,#0xff ; clear interrupts
str r0,[r1,#GPIOICR]
; ignorera fallande flank
mov r0,#0x00 ; Use IEV to control
str r0,[r1,#GPIOIBE]
; stigande flank edge
mov r0,#0xcc ; rising edge
str r0,[r1,#GPIOIEV]
;clear interrupts
mov r0,#0xff ; clear interrupts
str r0,[r1,#GPIOICR]
; enable interrupts from bit 7
mov r0,#0x80 ; Send interrupt to controller
str r0,[r1,#GPIOIM]
; NVIC management of interrupts from GPIOport D
; NVIC_priority interrupt setup
mov r1,#(NVIC_base & 0xffff)
movt r1,#(NVIC_base >> 16)
ldr r0,[r1,#NVIC_PRI0] ; Set priority 2
bic r0,r0,#0xe0000000 ; clear bits 31-29
orr r0,r0,#0x40000000
str r0,[r1,#NVIC_PRI0]
; NVIC_enable port D interrupt
ldr r0,[r1,#NVIC_EN0]
orr r0,#0x00000008 ; enable interrupt nr 3
str r0,[r1,#NVIC_EN0]
; enable interrupts
cpsie i
bx lr
; Start adress in r3, string terminated with the value 0
; destroy r0, r1, r3
slowprintstring:
push {lr}
cpsid i
nextchar:
ldrb r0,[r3],#1
cmp r0,#0
beq slowprintstringdone
bl printchar
mov r1,#40
bl DELAY
b nextchar
slowprintstringdone:
cpsie i
pop {lr}
bx lr
printchar:
; Print character located in r0 (bit 7 - bit 0)
; Check bit 5 (TXFF) in UART0_FR, wait until it is 0
; send bit 7-0 to UART0_DR
push {r1}
loop1:
mov r1,#(UART0_base & 0xffff)
movt r1,#(UART0_base >> 16)
ldr r1,[r1,#UARTFR]
ands r1,#0x20 ; Check if send buffer is full
bne loop1 ; branch if full
mov r1,#(UART0_base & 0xffff)
movt r1,#(UART0_base >> 16)
str r0,[r1,#UARTDR] ; send character
pop {r1}
bx lr
|
data/pokemon/dex_entries/dragonair.asm | Dev727/ancientplatinum | 28 | 19544 | <filename>data/pokemon/dex_entries/dragonair.asm
db "DRAGON@" ; species name
dw 1301, 360 ; height, weight
db "It is called the"
next "divine #MON."
next "When its entire"
page "body brightens"
next "slightly, the"
next "weather changes.@"
|
tools-src/gnu/gcc/gcc/ada/sem_util.ads | enfoTek/tomato.linksys.e2000.nvram-mod | 80 | 16992 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S E M _ U T I L --
-- --
-- S p e c --
-- --
-- $Revision$
-- --
-- Copyright (C) 1992-2001, Free Software Foundation, Inc. --
-- --
-- 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 2, 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. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
-- MA 02111-1307, USA. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- Package containing utility procedures used throughout the semantics
with Einfo; use Einfo;
with Types; use Types;
with Uintp; use Uintp;
with Urealp; use Urealp;
package Sem_Util is
procedure Add_Access_Type_To_Process (E : Entity_Id; A : Entity_Id);
-- Add A to the list of access types to process when expanding the
-- freeze node of E.
function Alignment_In_Bits (E : Entity_Id) return Uint;
-- If the alignment of the type or object E is currently known to the
-- compiler, then this function returns the alignment value in bits.
-- Otherwise Uint_0 is returned, indicating that the alignment of the
-- entity is not yet known to the compiler.
procedure Apply_Compile_Time_Constraint_Error
(N : Node_Id;
Msg : String;
Ent : Entity_Id := Empty;
Typ : Entity_Id := Empty;
Loc : Source_Ptr := No_Location;
Rep : Boolean := True);
-- N is a subexpression which will raise constraint error when evaluated
-- at runtime. Msg is a message that explains the reason for raising the
-- exception. The last character is ? if the message is always a
-- warning, even in Ada 95, and is not a ? if the message represents an
-- illegality (because of violation of static expression rules) in Ada 95
-- (but not in Ada 83). Typically this routine posts all messages at
-- the Sloc of node N. However, if Loc /= No_Location, Loc is the Sloc
-- used to output the message. After posting the appropriate message,
-- and if the flag Rep is set, this routine replaces the expression
-- with an N_Raise_Constraint_Error node. This node is then marked as
-- being static if the original node is static, but sets the flag
-- Raises_Constraint_Error, preventing further evaluation.
-- The error message may contain a } or & insertion character.
-- This normally references Etype (N), unless the Ent argument is given
-- explicitly, in which case it is used instead. The type of the raise
-- node that is built is normally Etype (N), but if the Typ parameter
-- is present, this is used instead.
function Build_Actual_Subtype
(T : Entity_Id;
N : Node_Or_Entity_Id)
return Node_Id;
-- Build an anonymous subtype for an entity or expression, using the
-- bounds of the entity or the discriminants of the enclosing record.
-- T is the type for which the actual subtype is required, and N is either
-- a defining identifier, or any subexpression.
function Build_Actual_Subtype_Of_Component
(T : Entity_Id;
N : Node_Id)
return Node_Id;
-- Determine whether a selected component has a type that depends on
-- discriminants, and build actual subtype for it if so.
function Build_Discriminal_Subtype_Of_Component
(T : Entity_Id)
return Node_Id;
-- Determine whether a record component has a type that depends on
-- discriminants, and build actual subtype for it if so.
procedure Build_Elaboration_Entity (N : Node_Id; Spec_Id : Entity_Id);
-- Given a compilation unit node N, allocate an elaboration boolean for
-- the compilation unit, and install it in the Elaboration_Entity field
-- of Spec_Id, the entity for the compilation unit.
procedure Check_Fully_Declared (T : Entity_Id; N : Node_Id);
-- Verify that the full declaration of type T has been seen. If not,
-- place error message on node N. Used in object declarations, type
-- conversions, qualified expressions.
procedure Check_Potentially_Blocking_Operation (N : Node_Id);
-- N is one of the statement forms that is a potentially blocking
-- operation. If it appears within a protected action, emit warning
-- and raise Program_Error.
procedure Check_VMS (Construct : Node_Id);
-- Check that this the target is OpenVMS, and if so, return with
-- no effect, otherwise post an error noting this can only be used
-- with OpenVMS ports. The argument is the construct in question
-- and is used to post the error message.
function Collect_Primitive_Operations (T : Entity_Id) return Elist_Id;
-- Called upon type derivation and extension. We scan the declarative
-- part in which the type appears, and collect subprograms that have
-- one subsidiary subtype of the type. These subprograms can only
-- appear after the type itself.
function Compile_Time_Constraint_Error
(N : Node_Id;
Msg : String;
Ent : Entity_Id := Empty;
Loc : Source_Ptr := No_Location)
return Node_Id;
-- Subsidiary to Apply_Compile_Time_Constraint_Error and Checks routines.
-- Does not modify any nodes, but generates a warning (or error) message.
-- For convenience, the function always returns its first argument.
procedure Conditional_Delay (New_Ent, Old_Ent : Entity_Id);
-- Sets the Has_Delayed_Freeze flag of New if the Delayed_Freeze flag
-- of Old is set and Old has no yet been Frozen (i.e. Is_Frozen is false);
function Current_Entity (N : Node_Id) return Entity_Id;
-- Find the currently visible definition for a given identifier, that is to
-- say the first entry in the visibility chain for the Chars of N.
function Current_Entity_In_Scope (N : Node_Id) return Entity_Id;
-- Find whether there is a previous definition for identifier N in the
-- current scope. Because declarations for a scope are not necessarily
-- contiguous (e.g. for packages) the first entry on the visibility chain
-- for N is not necessarily in the current scope.
function Current_Scope return Entity_Id;
-- Get entity representing current scope
function Current_Subprogram return Entity_Id;
-- Returns current enclosing subprogram. If Current_Scope is a subprogram,
-- then that is what is returned, otherwise the Enclosing_Subprogram of
-- the Current_Scope is returned. The returned value is Empty if this
-- is called from a library package which is not within any subprogram.
function Defining_Entity (N : Node_Id) return Entity_Id;
-- Given a declaration N, returns the associated defining entity. If
-- the declaration has a specification, the entity is obtained from
-- the specification. If the declaration has a defining unit name,
-- then the defining entity is obtained from the defining unit name
-- ignoring any child unit prefixes.
function Denotes_Discriminant (N : Node_Id) return Boolean;
-- Returns True if node N is an N_Identifier node for a discriminant.
-- Returns False for any other kind of node, or for an N_Identifier
-- node that does not denote a discriminant.
function Depends_On_Discriminant (N : Node_Id) return Boolean;
-- Returns True if N denotes a discriminant or if N is a range, a subtype
-- indication or a scalar subtype where one of the bounds is a
-- discriminant.
function Designate_Same_Unit
(Name1 : Node_Id;
Name2 : Node_Id)
return Boolean;
-- Return true if Name1 and Name2 designate the same unit name;
-- each of these names is supposed to be a selected component name,
-- an expanded name, a defining program unit name or an identifier
function Enclosing_Generic_Body
(E : Entity_Id)
return Node_Id;
-- Returns the Node_Id associated with the innermost enclosing
-- generic body, if any. If none, then returns Empty.
function Enclosing_Lib_Unit_Entity return Entity_Id;
-- Returns the entity of enclosing N_Compilation_Unit Node which is the
-- root of the current scope (which must not be Standard_Standard, and
-- the caller is responsible for ensuring this condition).
function Enclosing_Lib_Unit_Node (N : Node_Id) return Node_Id;
-- Returns the enclosing N_Compilation_Unit Node that is the root
-- of a subtree containing N.
function Enclosing_Subprogram (E : Entity_Id) return Entity_Id;
-- Utility function to return the Ada entity of the subprogram enclosing
-- the entity E, if any. Returns Empty if no enclosing subprogram.
procedure Ensure_Freeze_Node (E : Entity_Id);
-- Make sure a freeze node is allocated for entity E. If necessary,
-- build and initialize a new freeze node and set Has_Delayed_Freeze
-- true for entity E.
procedure Enter_Name (Def_Id : Node_Id);
-- Insert new name in symbol table of current scope with check for
-- duplications (error message is issued if a conflict is found)
-- Note: Enter_Name is not used for overloadable entities, instead
-- these are entered using Sem_Ch6.Enter_Overloadable_Entity.
function Find_Corresponding_Discriminant
(Id : Node_Id;
Typ : Entity_Id)
return Entity_Id;
-- Because discriminants may have different names in a generic unit
-- and in an instance, they are resolved positionally when possible.
-- A reference to a discriminant carries the discriminant that it
-- denotes when analyzed. Subsequent uses of this id on a different
-- type denote the discriminant at the same position in this new type.
function First_Actual (Node : Node_Id) return Node_Id;
-- Node is an N_Function_Call or N_Procedure_Call_Statement node. The
-- result returned is the first actual parameter in declaration order
-- (not the order of parameters as they appeared in the source, which
-- can be quite different as a result of the use of named parameters).
-- Empty is returned for a call with no parameters. The procedure for
-- iterating through the actuals in declaration order is to use this
-- function to find the first actual, and then use Next_Actual to obtain
-- the next actual in declaration order. Note that the value returned
-- is always the expression (not the N_Parameter_Association nodes
-- even if named association is used).
function Full_Qualified_Name (E : Entity_Id) return String_Id;
-- Generates the string literal corresponding to the E's full qualified
-- name in upper case. An ASCII.NUL is appended as the last character
procedure Gather_Components
(Typ : Entity_Id;
Comp_List : Node_Id;
Governed_By : List_Id;
Into : Elist_Id;
Report_Errors : out Boolean);
-- The purpose of this procedure is to gather the valid components
-- in a record type according to the values of its discriminants, in order
-- to validate the components of a record aggregate.
--
-- Typ is the type of the aggregate when its constrained discriminants
-- need to be collected, otherwise it is Empty.
--
-- Comp_List is an N_Component_List node.
--
-- Governed_By is a list of N_Component_Association nodes,
-- where each choice list contains the name of a discriminant and
-- the expression field gives its value. The values of the
-- discriminants governing the (possibly nested) variant parts in
-- Comp_List are found in this Component_Association List.
--
-- Into is the list where the valid components are appended.
-- Note that Into need not be an Empty list. If it's not, components
-- are attached to its tail.
--
-- Report_Errors is set to True if the values of the discriminants
-- are non-static.
-- This procedure is also used when building a record subtype. If the
-- discriminant constraint of the subtype is static, the components of the
-- subtype are only those of the variants selected by the values of the
-- discriminants. Otherwise all components of the parent must be included
-- in the subtype for semantic analysis.
function Get_Actual_Subtype (N : Node_Id) return Entity_Id;
-- Given a node for an expression, obtain the actual subtype of the
-- expression. In the case of a parameter where the formal is an
-- unconstrained array or discriminated type, this will be the
-- previously constructed subtype of the actual. Note that this is
-- not quite the "Actual Subtype" of the RM, since it is always
-- a constrained type, i.e. it is the subtype of the value of the
-- actual. The actual subtype is also returned in other cases where
-- it has already been constructed for an object. Otherwise the
-- expression type is returned unchanged, except for the case of an
-- unconstrained array type, where an actual subtype is created, using
-- Insert_Actions if necessary to insert any associated actions.
function Get_Actual_Subtype_If_Available (N : Node_Id) return Entity_Id;
-- This is like Get_Actual_Subtype, except that it never constructs an
-- actual subtype. If an actual subtype is already available, i.e. the
-- Actual_Subtype field of the corresponding entity is set, then it is
-- returned. Otherwise the Etype of the node is returned.
function Get_Default_External_Name (E : Node_Or_Entity_Id) return Node_Id;
-- This is used to construct the string literal node representing a
-- default external name, i.e. one that is constructed from the name
-- of an entity, or (in the case of extended DEC import/export pragmas,
-- an identifier provided as the external name. Letters in the name are
-- according to the setting of Opt.External_Name_Default_Casing.
procedure Get_Index_Bounds (N : Node_Id; L, H : out Node_Id);
-- This procedure assigns to L and H respectively the values of the
-- low and high bounds of node N, which must be a range, subtype
-- indication, or the name of a scalar subtype. The result in L, H
-- may be set to Error if there was an earlier error in the range.
function Get_Enum_Lit_From_Pos
(T : Entity_Id;
Pos : Uint;
Loc : Source_Ptr)
return Entity_Id;
-- This function obtains the E_Enumeration_Literal entity for the
-- specified value from the enumneration type or subtype T. The
-- second argument is the Pos value, which is assumed to be in range.
-- The third argument supplies a source location for constructed
-- nodes returned by this function.
function Get_Name_Entity_Id (Id : Name_Id) return Entity_Id;
-- An entity value is associated with each name in the name table. The
-- Get_Name_Entity_Id function fetches the Entity_Id of this entity,
-- which is the innermost visible entity with the given name. See the
-- body of Sem_Ch8 for further details on handling of entity visibility.
function Get_Referenced_Object (N : Node_Id) return Node_Id;
-- Given a node, return the renamed object if the node represents
-- a renamed object, otherwise return the node unchanged. The node
-- may represent an arbitrary expression.
function Get_Subprogram_Body (E : Entity_Id) return Node_Id;
-- Given the entity for a subprogram (E_Function or E_Procedure),
-- return the corresponding N_Subprogram_Body node. If the corresponding
-- body of the declaration is missing (as for an imported subprogram)
-- return Empty.
function Get_Task_Body_Procedure (E : Entity_Id) return Node_Id;
pragma Inline (Get_Task_Body_Procedure);
-- Given an entity for a task type or subtype, retrieves the
-- Task_Body_Procedure field from the corresponding task type
-- declaration.
function Has_Infinities (E : Entity_Id) return Boolean;
-- Determines if the range of the floating-point type E includes
-- infinities. Returns False if E is not a floating-point type.
function Has_Private_Component (Type_Id : Entity_Id) return Boolean;
-- Check if a type has a (sub)component of a private type that has not
-- yet received a full declaration.
function Has_Tagged_Component (Typ : Entity_Id) return Boolean;
-- Typ must be a composite type (array or record). This function is used
-- to check if '=' has to be expanded into a bunch component comparaisons.
function In_Instance return Boolean;
-- Returns True if the current scope is within a generic instance.
function In_Instance_Body return Boolean;
-- Returns True if current scope is within the body of an instance, where
-- several semantic checks (e.g. accessibility checks) are relaxed.
function In_Instance_Not_Visible return Boolean;
-- Returns True if current scope is with the private part or the body of
-- an instance. Other semantic checks are suppressed in this context.
function In_Instance_Visible_Part return Boolean;
-- Returns True if current scope is within the visible part of a package
-- instance, where several additional semantic checks apply.
function In_Subprogram_Or_Concurrent_Unit return Boolean;
-- Determines if the current scope is within a subprogram compilation
-- unit (inside a subprogram declaration, subprogram body, or generic
-- subprogram declaration) or within a task or protected body. The test
-- is for appearing anywhere within such a construct (that is it does not
-- need to be directly within).
function In_Visible_Part (Scope_Id : Entity_Id) return Boolean;
-- Determine whether a declaration occurs within the visible part of a
-- package specification. The package must be on the scope stack, and the
-- corresponding private part must not.
function Is_AAMP_Float (E : Entity_Id) return Boolean;
-- Defined for all type entities. Returns True only for the base type
-- of float types with AAMP format. The particular format is determined
-- by the Digits_Value value which is 6 for the 32-bit floating point type,
-- or 9 for the 48-bit type. This is not an attribute function (like
-- VAX_Float) in order to not use up an extra flag and to prevent
-- the dependency of Einfo on Targparm which would be required for a
-- synthesized attribute.
function Is_Dependent_Component_Of_Mutable_Object
(Object : Node_Id)
return Boolean;
-- Returns True if Object is the name of a subcomponent that
-- depends on discriminants of a variable whose nominal subtype
-- is unconstrained and not indefinite, and the variable is
-- not aliased. Otherwise returns False. The nodes passed
-- to this function are assumed to denote objects.
function Is_Actual_Parameter (N : Node_Id) return Boolean;
-- Determines if N is an actual parameter in a subprogram call.
function Is_Aliased_View (Obj : Node_Id) return Boolean;
-- Determine if Obj is an aliased view, i.e. the name of an
-- object to which 'Access or 'Unchecked_Access can apply.
function Is_Atomic_Object (N : Node_Id) return Boolean;
-- Determines if the given node denotes an atomic object in the sense
-- of the legality checks described in RM C.6(12).
function Is_False (U : Uint) return Boolean;
-- The argument is a Uint value which is the Boolean'Pos value of a
-- Boolean operand (i.e. is either 0 for False, or 1 for True). This
-- function simply tests if it is False (i.e. zero)
function Is_Fixed_Model_Number (U : Ureal; T : Entity_Id) return Boolean;
-- Returns True iff the number U is a model number of the fixed-
-- point type T, i.e. if it is an exact multiple of Small.
function Is_Fully_Initialized_Type (Typ : Entity_Id) return Boolean;
-- Typ is a type entity. This function returns true if this type is
-- fully initialized, meaning that an object of the type is fully
-- initialized. Note that initialization resulting from the use of
-- pragma Normalized_Scalars does not count.
function Is_Inherited_Operation (E : Entity_Id) return Boolean;
-- E is a subprogram. Return True is E is an implicit operation inherited
-- by a derived type declarations.
function Is_Library_Level_Entity (E : Entity_Id) return Boolean;
-- A library-level declaration is one that is accessible from Standard,
-- i.e. a library unit or an entity declared in a library package.
function Is_Local_Variable_Reference (Expr : Node_Id) return Boolean;
-- Determines whether Expr is a refeference to a variable or IN OUT
-- mode parameter of the current enclosing subprogram.
function Is_Object_Reference (N : Node_Id) return Boolean;
-- Determines if the tree referenced by N represents an object. Both
-- variable and constant objects return True (compare Is_Variable).
function Is_OK_Variable_For_Out_Formal (AV : Node_Id) return Boolean;
-- Used to test if AV is an acceptable formal for an OUT or IN OUT
-- formal. Note that the Is_Variable function is not quite the right
-- test because this is a case in which conversions whose expression
-- is a variable (in the Is_Variable sense) with a non-tagged type
-- target are considered view conversions and hence variables.
function Is_RCI_Pkg_Spec_Or_Body (Cunit : Node_Id) return Boolean;
-- Return True if a compilation unit is the specification or the
-- body of a remote call interface package.
function Is_Remote_Access_To_Class_Wide_Type (E : Entity_Id) return Boolean;
-- Return True if E is a remote access-to-class-wide-limited_private type
function Is_Remote_Access_To_Subprogram_Type (E : Entity_Id) return Boolean;
-- Return True if E is a remote access to subprogram type.
function Is_Remote_Call (N : Node_Id) return Boolean;
-- Return True if N denotes a potentially remote call
function Is_Selector_Name (N : Node_Id) return Boolean;
-- Given an N_Identifier node N, determines if it is a Selector_Name.
-- As described in Sinfo, Selector_Names are special because they
-- represent use of the N_Identifier node for a true identifier, when
-- normally such nodes represent a direct name.
function Is_Statement (N : Node_Id) return Boolean;
-- Check if the node N is a statement node. Note that this includes
-- the case of procedure call statements (unlike the direct use of
-- the N_Statement_Other_Than_Procedure_Call subtype from Sinfo)
function Is_Transfer (N : Node_Id) return Boolean;
-- Returns True if the node N is a statement which is known to cause
-- an unconditional transfer of control at runtime, i.e. the following
-- statement definitely will not be executed.
function Is_True (U : Uint) return Boolean;
-- The argument is a Uint value which is the Boolean'Pos value of a
-- Boolean operand (i.e. is either 0 for False, or 1 for True). This
-- function simply tests if it is True (i.e. non-zero)
function Is_Variable (N : Node_Id) return Boolean;
-- Determines if the tree referenced by N represents a variable, i.e.
-- can appear on the left side of an assignment. There is one situation,
-- namely formal parameters, in which non-tagged type conversions are
-- also considered variables, but Is_Variable returns False for such
-- cases, since it has no knowledge of the context. Note that this is
-- the point at which Assignment_OK is checked, and True is returned
-- for any tree thus marked.
function Is_Volatile_Object (N : Node_Id) return Boolean;
-- Determines if the given node denotes an volatile object in the sense
-- of the legality checks described in RM C.6(12).
procedure Kill_Size_Check_Code (E : Entity_Id);
-- Called when an address clause or pragma Import is applied to an
-- entity. If the entity is a variable or a constant, and size check
-- code is present, this size check code is killed, since the object
-- will not be allocated by the program.
function New_External_Entity
(Kind : Entity_Kind;
Scope_Id : Entity_Id;
Sloc_Value : Source_Ptr;
Related_Id : Entity_Id;
Suffix : Character;
Suffix_Index : Nat := 0;
Prefix : Character := ' ')
return Entity_Id;
-- This function creates an N_Defining_Identifier node for an internal
-- created entity, such as an implicit type or subtype, or a record
-- initialization procedure. The entity name is constructed with a call
-- to New_External_Name (Related_Id, Suffix, Suffix_Index, Prefix), so
-- that the generated name may be referenced as a public entry, and the
-- Is_Public flag is set if needed (using Set_Public_Status). If the
-- entity is for a type or subtype, the size/align fields are initialized
-- to unknown (Uint_0).
function New_Internal_Entity
(Kind : Entity_Kind;
Scope_Id : Entity_Id;
Sloc_Value : Source_Ptr;
Id_Char : Character)
return Entity_Id;
-- This function is similar to New_External_Entity, except that the
-- name is constructed by New_Internal_Name (Id_Char). This is used
-- when the resulting entity does not have to be referenced as a
-- public entity (and in this case Is_Public is not set).
procedure Next_Actual (Actual_Id : in out Node_Id);
pragma Inline (Next_Actual);
-- Next_Actual (N) is equivalent to N := Next_Actual (N)
function Next_Actual (Actual_Id : Node_Id) return Node_Id;
-- Find next actual parameter in declaration order. As described for
-- First_Actual, this is the next actual in the declaration order, not
-- the call order, so this does not correspond to simply taking the
-- next entry of the Parameter_Associations list. The argument is an
-- actual previously returned by a call to First_Actual or Next_Actual.
-- Note tha the result produced is always an expression, not a parameter
-- assciation node, even if named notation was used.
procedure Normalize_Actuals
(N : Node_Id;
S : Entity_Id;
Report : Boolean;
Success : out Boolean);
-- Reorders lists of actuals according to names of formals, value returned
-- in Success indicates success of reordering. For more details, see body.
-- Errors are reported only if Report is set to True.
procedure Note_Possible_Modification (N : Node_Id);
-- This routine is called if the sub-expression N maybe the target of
-- an assignment (e.g. it is the left side of an assignment, used as
-- an out parameters, or used as prefixes of access attributes). It
-- sets May_Be_Modified in the associated entity if there is one,
-- taking into account the rule that in the case of renamed objects,
-- it is the flag in the renamed object that must be set.
function Object_Access_Level (Obj : Node_Id) return Uint;
-- Return the accessibility level of the view of the object Obj.
-- For convenience, qualified expressions applied to object names
-- are also allowed as actuals for this function.
function Private_Component (Type_Id : Entity_Id) return Entity_Id;
-- Returns some private component (if any) of the given Type_Id.
-- Used to enforce the rules on visibility of operations on composite
-- types, that depend on the full view of the component type. For a
-- record type there may be several such components, we just return
-- the first one.
procedure Process_End_Label (N : Node_Id; Typ : Character);
-- N is a node whose End_Label is to be processed, generating all
-- appropriate cross-reference entries, and performing style checks
-- for any identifier references in the end label. Typ is either
-- 'e' or 't indicating the type of the cross-reference entity
-- (e for spec, t for body, see Lib.Xref spec for details).
function Real_Convert (S : String) return Node_Id;
-- S is a possibly signed syntactically valid real literal. The result
-- returned is an N_Real_Literal node representing the literal value.
function Requires_Transient_Scope (Id : Entity_Id) return Boolean;
-- E is a type entity. The result is True when temporaries of this
-- type need to be wrapped in a transient scope to be reclaimed
-- properly when a secondary stack is in use. Examples of types
-- requiring such wrapping are controlled types and variable-sized
-- types including unconstrained arrays
procedure Reset_Analyzed_Flags (N : Node_Id);
-- Reset the Analyzed flags in all nodes of the tree whose root is N
function Same_Name (N1, N2 : Node_Id) return Boolean;
-- Determine if two (possibly expanded) names are the same name
function Same_Type (T1, T2 : Entity_Id) return Boolean;
-- Determines if T1 and T2 represent exactly the same type. Two types
-- are the same if they are identical, or if one is an unconstrained
-- subtype of the other, or they are both common subtypes of the same
-- type with identical constraints. The result returned is conservative.
-- It is True if the types are known to be the same, but a result of
-- False is indecisive (e.g. the compiler may not be able to tell that
-- two constraints are identical).
function Scope_Within_Or_Same (Scope1, Scope2 : Entity_Id) return Boolean;
-- Determines if the entity Scope1 is the same as Scope2, or if it is
-- inside it, where both entities represent scopes. Note that scopes
-- are only partially ordered, so Scope_Within_Or_Same (A,B) and
-- Scope_Within_Or_Same (B,A) can both be False for a given pair A,B.
function Scope_Within (Scope1, Scope2 : Entity_Id) return Boolean;
-- Like Scope_Within_Or_Same, except that this function returns
-- False in the case where Scope1 and Scope2 are the same scope.
procedure Set_Current_Entity (E : Entity_Id);
-- Establish the entity E as the currently visible definition of its
-- associated name (i.e. the Node_Id associated with its name)
procedure Set_Entity_With_Style_Check (N : Node_Id; Val : Entity_Id);
-- This procedure has the same calling sequence as Set_Entity, but
-- if Style_Check is set, then it calls a style checking routine which
-- can check identifier spelling style.
procedure Set_Name_Entity_Id (Id : Name_Id; Val : Entity_Id);
-- Sets the Entity_Id value associated with the given name, which is the
-- Id of the innermost visible entity with the given name. See the body
-- of package Sem_Ch8 for further details on the handling of visibility.
procedure Set_Next_Actual (Ass1_Id : Node_Id; Ass2_Id : Node_Id);
-- The arguments may be parameter associations, whose descendants
-- are the optional formal name and the actual parameter. Positional
-- parameters are already members of a list, and do not need to be
-- chained separately. See also First_Actual and Next_Actual.
procedure Set_Public_Status (Id : Entity_Id);
-- If an entity (visible or otherwise) is defined in a library
-- package, or a package that is itself public, then this subprogram
-- labels the entity public as well.
procedure Set_Scope_Is_Transient (V : Boolean := True);
-- Set the flag Is_Transient of the current scope
procedure Set_Size_Info (T1, T2 : Entity_Id);
-- Copies the Esize field and Has_Biased_Representation flag from
-- (sub)type entity T2 to (sub)type entity T1. Also copies the
-- Is_Unsigned_Type flag in the fixed-point and discrete cases,
-- and also copies the alignment value from T2 to T1. It does NOT
-- copy the RM_Size field, which must be separately set if this
-- is required to be copied also.
function Scope_Is_Transient return Boolean;
-- True if the current scope is transient.
function Static_Integer (N : Node_Id) return Uint;
-- This function analyzes the given expression node and then resolves it
-- as any integer type. If the result is static, then the value of the
-- universal expression is returned, otherwise an error message is output
-- and a value of No_Uint is returned.
function Statically_Different (E1, E2 : Node_Id) return Boolean;
-- Return True if it can be statically determined that the Expressions
-- E1 and E2 refer to different objects
function Subprogram_Access_Level (Subp : Entity_Id) return Uint;
-- Return the accessibility level of the view denoted by Subp.
procedure Trace_Scope (N : Node_Id; E : Entity_Id; Msg : String);
-- Print debugging information on entry to each unit being analyzed.
procedure Transfer_Entities (From : Entity_Id; To : Entity_Id);
-- Move a list of entities from one scope to another, and recompute
-- Is_Public based upon the new scope.
function Type_Access_Level (Typ : Entity_Id) return Uint;
-- Return the accessibility level of Typ.
function Unit_Declaration_Node (Unit_Id : Entity_Id) return Node_Id;
-- Unit_Id is the simple name of a program unit, this function returns
-- the corresponding xxx_Declaration node for the entity. Also applies
-- to the body entities for subprograms in tasks, in which case it
-- returns the subprogram or task body node for it. The unit may be
-- a child unit with any number of ancestors.
function Within_Init_Proc return Boolean;
-- Determines if Current_Scope is within an Init_Proc
procedure Wrong_Type (Expr : Node_Id; Expected_Type : Entity_Id);
-- Output error message for incorrectly typed expression. Expr is the
-- node for the incorrectly typed construct (Etype (Expr) is the type
-- found), and Expected_Type is the entity for the expected type. Note
-- that Expr does not have to be a subexpression, anything with an
-- Etype field may be used.
private
pragma Inline (Current_Entity);
pragma Inline (Get_Name_Entity_Id);
pragma Inline (Is_False);
pragma Inline (Is_Statement);
pragma Inline (Is_True);
pragma Inline (Set_Current_Entity);
pragma Inline (Set_Name_Entity_Id);
pragma Inline (Set_Size_Info);
end Sem_Util;
|
45/beef/drv/csd/src/genius.asm | minblock/msdos | 0 | 243559 | <filename>45/beef/drv/csd/src/genius.asm
;*
;* CW : Character Windows Drivers
;*
;* genius.asm : MDS (Micro Display System) Genius CSD
;*****************************************************************************
include csd_head.inc
include csd_data.inc
;*****************************************************************************
include csd_code.asm ;* first part of code
;* * Display modes table
rgdm:
;;;* mode = 7(IBM), 8(MDS)
;* #0 - IBM text mode
DB 0ffh ;* any
DB 0ffh ;* any
DB 7 ;* mode
DW finstText or finstMonoChrome ;* flags
DB 80,25 ;* screen size
DB 2 ;* coMac
DB 0, 0, 0, 0 ;* INFT
DW 0B000H ;* video address
DW 0C0DH ;* cursor
DW 0800H ;* port 3B8/3D8H
Assert <($-rgdm) EQ SIZE DM>
;* #1 - MDS text mode (80 col)
DB 0ffh ;* any
DB 0ffh ;* any
DB 8 ;* mode
DW finstText or finstMonoChrome ;* flags
DB 80,66 ;* screen size
DB 2 ;* coMac
DB 0, 0, 0, 0 ;* INFT
DW 0B000H ;* video address
DW 0D0EH ;* cursor
DW 0800H ;* port 3B8/3D8H
;* #2 - MDS graphics text mode (63 row)
DB 0ffh ;* any
DB 0ffh ;* any
DB 8 ;* mode
DW finstGraphics or finstMonoChrome OR finstFont ;* flags
DB 91,63 ;* screen size
DB 2 ;* coMac
DB 8, 16, 0, 0 ;* INFT
DW 0 ;* video address
DW 0E0FH ;* cursor
DW 0008H ;* port 3B8/3D8H
cdmMax equ ($ - rgdm) / (size DM) ;* # of modes
Genius_Mode EQU 8 ; Special Genius mode for full screen
CRTPort2 EQU 3B0H ; Genius CRT Control Port # 2
MDSMode_Mask EQU 00000001B ; 1 = MDS Mode, 0 = IBM Mode
Upper_Screen EQU 0A000H
Lower_Screen EQU 0B800H
BWModeCtrlReg EQU 3B8H
ColorModeCtrlReg EQU 3D8H
;*****************************************************************************
;* * Special routines
NonStandard ModeGetCur
NonStandard FInitCsd
;*****************************************************************************
;********** ModeGetCur *********
;* entry: n/a
;* * get current machine mode
;* exit: al = mode, ah = ayMac (or 0 if unknown)
cProc ModeGetCur, <NEAR, PUBLIC, ATOMIC>, <ES>
cBegin ModeGetCur
mov dx,3B0h
in al,dx
and al,1
jnz @F
mov ax,1907h ;ibm 80x25 mono
jmp short exitMGCur
@@:
mov ax,40H
mov es,ax
mov ah,es:[0084H] ;* read BIOS rows
inc ah ;* screen height
cmp ah,66 ;MDS text
je @F
cmp ah,63 ;MDS graphics
je @F
mov ah,66 ;* default to text mode
@@:
mov al,8 ;* MDS mode 8
exitMGCur:
cEnd ModeGetCur
;********** FInitCsd **********
;* entry:
;* pinch = near pointer to INCH structure to fill
;* * Initialize the screen to the given mode
;* exit: AX != 0 if ok
cProc FInitCsd, <FAR, PUBLIC, ATOMIC>, <ds,di>
parmDP pinst
parmDP pinch
localB modeCur
localB fInverse
cBegin FInitCsd
mov di,OFF_lpwDataCsd ;* Data in data segment
;* * save old mode
cCall ModeGetCur ;* al = mode, ah = ayMac
mov modeCur,al ;* current mode
mov bx,pinst
cmp ds:[bx].ayMacInst,ah
je @F ;* same resolution
mov modeCur,0 ;* cause mode reset
@@:
;* * set mode
mov [di].pinstDrv,bx
mov bx,ds:[bx].pdmInst ;* CS:BX => DM info
;* * copy mode info into driver globals
mov ax,cs:[bx].vparmCursOnDm
mov [di].vparmCursOn,ax
mov [di].vparmCursSize,ax
mov ax,cs:[bx].wExtraDm
mov [di].wExtra,ax
mov al,cs:[bx].modeDm
cmp al,modeCur
jne @F
jmp initdone ;* don't reset
@@:
mov dx,3B0h
in al,dx
and al,00100000b ;get inverse bit
mov fInverse,al
mov al,cs:[bx].modeDm
xor ah,ah ;* set mode
int 10h
in al,dx
and al,11011111b
or al,fInverse
cmp cs:[bx].modeDm,7
jne @F
cmp fInverse,0
je @F
or al,10h ;clear bottom graphics screen
@@:
out dx,al
mov ax,40H
mov es,ax
mov al,cs:[bx].modeDm
mov byte ptr es:[0049H],al ;* modes
mov al,cs:[bx].ayMacDm
dec al ; rows - 1
mov byte ptr es:[0084H],al ;* update BIOS rows
mov ax,cs:[bx].wExtraDm
mov dx,3D8h
out dx,al
mov al,ah
mov dx,3B8h
out dx,al
xor al,al
cmp cs:[bx].modeDm,7 ;IBM 80x25 text ?
jne @F
mov al,90h ;set double height character
@@:
mov dx,3B1h
out dx,al
test cs:[bx].finstDm,finstGraphics
jz finittext
; KLUDGE ALERT!! Genius designed themselves into a box, so we need to
; communicate with the mouse through the cursor position for
; page 3 (an arbitrarily chosen location, hopefully safe).
mov ax,40H ;IBM segment
mov es,ax
mov al,cs:[bx].modeDm
mov byte ptr es:[50h + (3 * 2)],al ;CURSOR_POSN
initdone:
xor ah,ah
mov al,cs:[bx].dyCharDm
mov [di].ayBox,ax ;* points
mov [di].SEG_lpbFont,cs ;* 8x16 font
mov [di].OFF_lpbFont,drvOffset rgbVectFont8x16
finitdone:
;* * normally the INCH array would be copied (but since it is already
;* * setup in DATA just leave it alone).
;* * Do other diddling
test cs:[bx].finstDm,finstText
jz @F
finittext:
cCall DiddleBlinkBit
@@:
mov ax,sp ;* success
cEnd FInitCsd
;*****************************************************************************
GENIUSCSD = 1
include update2.asm
include vect8x16.inc ;* hard code font table
;*****************************************************************************
include csd_std.asm ;* standard init/term
include csd_ibm.asm ;* IBM specific routines
;*****************************************************************************
include csd_vram.asm ;* default procs for direct video I/O
include csd_save.asm ;* default screen save (none)
;*****************************************************************************
include csd_tail.asm ;* tail file
;*****************************************************************************
END
|
src/dw1000-types.ads | SALLYPEMDAS/DW1000 | 9 | 30312 | <filename>src/dw1000-types.ads
-------------------------------------------------------------------------------
-- Copyright (c) 2016 <NAME>
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the "Software"),
-- to deal in the Software without restriction, including without limitation
-- the rights to use, copy, modify, merge, publish, distribute, sublicense,
-- and/or sell copies of the Software, and to permit persons to whom the
-- Software is furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in
-- all copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-- DEALINGS IN THE SOFTWARE.
-------------------------------------------------------------------------------
with Interfaces;
package DW1000.Types
with SPARK_Mode => On
is
type Bits_1 is mod 2**1 with Size => 1;
type Bits_2 is mod 2**2 with Size => 2;
type Bits_3 is mod 2**3 with Size => 3;
type Bits_4 is mod 2**4 with Size => 4;
type Bits_5 is mod 2**5 with Size => 5;
type Bits_6 is mod 2**6 with Size => 6;
type Bits_7 is mod 2**7 with Size => 7;
subtype Bits_8 is Interfaces.Unsigned_8;
type Bits_9 is mod 2**9 with Size => 9;
type Bits_10 is mod 2**10 with Size => 10;
type Bits_11 is mod 2**11 with Size => 11;
type Bits_12 is mod 2**12 with Size => 12;
type Bits_13 is mod 2**13 with Size => 13;
type Bits_14 is mod 2**14 with Size => 14;
type Bits_15 is mod 2**15 with Size => 15;
subtype Bits_16 is Interfaces.Unsigned_16;
type Bits_17 is mod 2**17 with Size => 17;
type Bits_18 is mod 2**18 with Size => 18;
type Bits_19 is mod 2**19 with Size => 19;
type Bits_20 is mod 2**20 with Size => 20;
type Bits_21 is mod 2**21 with Size => 21;
type Bits_22 is mod 2**22 with Size => 22;
type Bits_23 is mod 2**23 with Size => 23;
type Bits_24 is mod 2**24 with Size => 24;
type Bits_25 is mod 2**25 with Size => 25;
type Bits_26 is mod 2**26 with Size => 26;
type Bits_27 is mod 2**27 with Size => 27;
type Bits_28 is mod 2**28 with Size => 28;
type Bits_29 is mod 2**29 with Size => 29;
type Bits_30 is mod 2**30 with Size => 30;
type Bits_31 is mod 2**31 with Size => 31;
subtype Bits_32 is Interfaces.Unsigned_32;
type Bits_33 is mod 2**33 with Size => 33;
type Bits_34 is mod 2**34 with Size => 34;
type Bits_35 is mod 2**35 with Size => 35;
type Bits_36 is mod 2**36 with Size => 36;
type Bits_37 is mod 2**37 with Size => 37;
type Bits_38 is mod 2**38 with Size => 38;
type Bits_39 is mod 2**39 with Size => 39;
type Bits_40 is mod 2**40 with Size => 40;
type Bits_41 is mod 2**41 with Size => 41;
type Bits_42 is mod 2**42 with Size => 42;
type Bits_43 is mod 2**43 with Size => 43;
type Bits_44 is mod 2**44 with Size => 44;
type Bits_45 is mod 2**45 with Size => 45;
type Bits_46 is mod 2**46 with Size => 46;
type Bits_47 is mod 2**47 with Size => 47;
type Bits_48 is mod 2**48 with Size => 48;
type Bits_49 is mod 2**49 with Size => 49;
type Bits_50 is mod 2**50 with Size => 50;
type Bits_51 is mod 2**51 with Size => 51;
type Bits_52 is mod 2**52 with Size => 52;
type Bits_53 is mod 2**53 with Size => 53;
type Bits_54 is mod 2**54 with Size => 54;
type Bits_55 is mod 2**55 with Size => 55;
type Bits_56 is mod 2**56 with Size => 56;
type Bits_57 is mod 2**57 with Size => 57;
type Bits_58 is mod 2**58 with Size => 58;
type Bits_59 is mod 2**59 with Size => 59;
type Bits_60 is mod 2**60 with Size => 60;
type Bits_61 is mod 2**61 with Size => 61;
type Bits_62 is mod 2**62 with Size => 62;
type Bits_63 is mod 2**63 with Size => 63;
subtype Bits_64 is Interfaces.Unsigned_64;
subtype Index is Natural range 0 .. Natural'Last - 1;
type Byte_Array is array (Index range <>) of Bits_8;
end DW1000.Types;
|
3-mid/opengl/source/lean/geometry/opengl-geometry.adb | charlie5/lace | 20 | 21859 | <gh_stars>10-100
with
openGL.Primitive.indexed,
openGL.Primitive.long_indexed,
ada.unchecked_Deallocation,
ada.unchecked_Conversion;
package body openGL.Geometry
is
---------
-- Forge
--
procedure destroy (Self : in out Item)
is
use openGL.Buffer;
begin
free (Self.Vertices);
Self.free_Primitives;
end destroy;
procedure free (Self : in out View)
is
procedure deallocate is new ada.unchecked_Deallocation (Item'Class, View);
begin
if Self = null then
return;
end if;
Self.destroy;
deallocate (Self);
end free;
procedure free_Primitives (Self : in out Item)
is
begin
for Each in 1 .. Self.primitive_Count
loop
Primitive.free (Self.Primitives (Each));
end loop;
Self.primitive_Count := 0;
end free_Primitives;
--------------
-- Attributes
--
function Label (Self : in Item'Class) return String
is
begin
return to_String (Self.Label);
end Label;
procedure Label_is (Self : in out Item'Class; Now : in String)
is
begin
overwrite (Self.Label, 1, Now);
end Label_is;
procedure Indices_are (Self : in out Item; Now : in Indices;
for_Facia : in Positive)
is
the_Primitive : constant Primitive.indexed.view
:= Primitive.indexed.view (Self.Primitives (Index_t (for_Facia)));
begin
the_Primitive.Indices_are (Now);
end Indices_are;
procedure Indices_are (Self : in out Item; Now : in long_Indices;
for_Facia : in Positive)
is
the_Primitive : constant Primitive.long_indexed.view
:= Primitive.long_indexed.view (Self.Primitives (Index_t (for_Facia)));
begin
the_Primitive.Indices_are (Now);
end Indices_are;
function Primitives (Self : in Item'Class) return Primitive.views
is
begin
return Self.Primitives (1 .. Self.primitive_Count);
end Primitives;
function Texture (Self : in Item'Class) return openGL.Texture.Object
is
begin
return Self.Texture;
end Texture;
procedure Texture_is (Self : in out Item'Class; Now : in openGL.Texture.Object)
is
begin
Self.Texture := Now;
Self.is_Transparent := Self.is_Transparent
or Now .is_Transparent;
end Texture_is;
procedure Program_is (Self : in out Item; Now : in openGL.Program.view)
is
begin
Self.Program := Now;
end Program_is;
function Program (Self : in Item) return openGL.Program.view
is
begin
return Self.Program;
end Program;
function Bounds (self : in Item'Class) return openGL.Bounds
is
begin
return Self.Bounds;
end Bounds;
procedure Bounds_are (Self : in out Item'Class; Now : in openGL.Bounds)
is
begin
Self.Bounds := Now;
end Bounds_are;
function is_Transparent (Self : in Item) return Boolean
is
begin
return Self.is_Transparent
or Self.Texture.is_Transparent;
end is_Transparent;
procedure is_Transparent (Self : in out Item; Now : in Boolean := True)
is
begin
Self.is_Transparent := Now;
end is_Transparent;
--------------
-- Operations
--
procedure add (Self : in out Item'Class; the_Primitive : in Primitive.view)
is
begin
Self.primitive_Count := Self.primitive_Count + 1;
Self.Primitives (self.primitive_Count) := the_Primitive;
end add;
procedure render (Self : in out Item'Class)
is
begin
if Self.primitive_Count = 0
then
raise Error with "Unable to render geometry with no primitives.";
end if;
Self .enable_Texture;
Self.Program .set_Uniforms;
Self.Vertices.enable;
Self.Program .enable_Attributes;
for Each in 1 .. self.primitive_Count -- Render each primitive.
loop
Self.Primitives (Each).render;
end loop;
end render;
-----------
-- Normals
--
generic
type any_Index_t is range <>;
type any_Indices is array (long_Index_t range <>) of any_Index_t;
function any_vertex_Id_in (face_Kind : in primitive.facet_Kind;
Indices : in any_Indices;
for_Facet : in long_Index_t;
for_Point : in long_Index_t) return any_Index_t;
function any_vertex_Id_in (face_Kind : in Primitive.facet_Kind;
Indices : in any_Indices;
for_Facet : in long_Index_t;
for_Point : in long_Index_t) return any_Index_t
is
use openGL.Primitive;
begin
case face_Kind
is
when Triangles =>
return Indices (3 * (for_Facet - 1) + for_Point);
when triangle_Strip =>
return Indices (for_Facet - 1 + for_Point);
when triangle_Fan =>
if for_Point = 1
then return 1;
else return Indices (for_Facet - 1 + for_Point);
end if;
when others =>
raise Error with "openGL primitive " & face_Kind'Image & " not yet supported.";
end case;
end any_vertex_Id_in;
generic
type any_Index_t is range <>;
type any_Indices is array (long_Index_t range <>) of any_Index_t;
function any_facet_Count_in (face_Kind : in primitive.facet_Kind;
Indices : in any_Indices) return long_Index_t;
--
-- Returns the maximum possible facet count, which includes redundant facets.
function any_facet_Count_in (face_Kind : in primitive.facet_Kind;
Indices : in any_Indices) return long_Index_t
is
use Primitive;
begin
case face_Kind
is
when Triangles =>
return Indices'Length / 3;
when triangle_Strip
| triangle_Fan =>
return Indices'Length - 2;
when others =>
raise Error with "openGL primitive " & face_Kind'Image & " not yet supported.";
end case;
end any_facet_Count_in;
function facet_Count_in is new any_facet_Count_in (any_Index_t => Index_t,
any_Indices => Indices);
----------
-- Facets
--
type Facet is array ( Index_t range 1 .. 3) of Index_t; -- An 'indexed' triangle.
type Facets is array (long_Index_t range <> ) of Facet;
type Facets_view is access all Facets;
procedure free is new ada.unchecked_Deallocation (Facets, Facets_view);
generic
type any_Index_t is range <>;
type any_Indices is array (long_Index_t range <>) of any_Index_t;
function any_Facets_of (face_Kind : in primitive.facet_Kind;
Indices : in any_Indices) return access Facets;
--
-- 'Facets_of' returns all non-redundant facets.
function any_Facets_of (face_Kind : in primitive.facet_Kind;
Indices : in any_Indices) return access Facets
is
use openGL.Primitive;
function facet_Count_in is new any_facet_Count_in (any_Index_t => any_Index_t,
any_Indices => any_Indices);
function vertex_Id_in is new any_vertex_Id_in (any_Index_t => any_Index_t,
any_Indices => any_Indices);
the_Facets : Facets_view := new Facets (1 .. facet_Count_in (face_Kind, Indices));
Count : long_Index_t := 0;
begin
for Each in the_Facets'Range
loop
declare
P1 : constant Index_t := Index_t (vertex_Id_in (face_Kind, Indices, Each, 1));
P2 : constant Index_t := Index_t (vertex_Id_in (face_Kind, Indices, Each, 2));
P3 : constant Index_t := Index_t (vertex_Id_in (face_Kind, Indices, Each, 3));
begin
if not ( P1 = P2
or P1 = P3
or P2 = P3)
then
Count := Count + 1;
case face_Kind
is
when Triangles
| triangle_Fan =>
the_Facets (Count) := (P1, P2, P3);
when triangle_Strip =>
if Each mod 2 = 0
then -- Is an even facet.
the_Facets (Count) := (P1, P3, P2);
else
the_Facets (Count) := (P1, P2, P3);
end if;
when others =>
raise Error with "openGL primitive " & face_Kind'Image & " not yet supported.";
end case;
end if;
end;
end loop;
declare
Result : constant Facets_view := new Facets' (the_Facets (1 .. Count));
begin
free (the_Facets);
return Result;
end;
end any_Facets_of;
function Facets_of is new any_Facets_of (Index_t,
Indices);
-----------
-- Normals
--
generic
type any_Index_t is range <>;
type any_Indices is array (long_Index_t range <>) of any_Index_t;
function any_Normals_of (face_Kind : in primitive.facet_Kind;
Indices : in any_Indices;
Sites : in openGL.Sites) return access Normals;
function any_Normals_of (face_Kind : in primitive.facet_Kind;
Indices : in any_Indices;
Sites : in openGL.Sites) return access Normals
is
function Facets_of is new any_Facets_of (any_Index_t,
any_Indices);
the_Normals : constant access Normals := new Normals (Sites'Range);
the_Facets : Facets_view := Facets_of (face_Kind,
Indices).all'unchecked_Access;
type facet_Normals is array (long_Index_t range 1 .. the_Facets'Length) of Normal;
type facet_Normals_view is access all facet_Normals;
procedure free is new ada.unchecked_Deallocation (facet_Normals, facet_Normals_view); -- TODO: Should not be needed since freeing will occur when 'facet_Normals_view' goes out of scope ?
the_facet_Normals : facet_Normals_view := new facet_Normals;
N : Vector_3;
length_N : Real;
begin
-- Calculate normal at each facet.
--
for Each in the_Facets'Range
loop
N := (Sites (the_Facets (Each)(2)) - Sites (the_Facets (Each)(1)))
* (Sites (the_Facets (Each)(3)) - Sites (the_Facets (Each)(1)));
length_N := abs (N);
if almost_Zero (length_N)
then the_facet_Normals (Each) := N; -- 0 vector !
else the_facet_Normals (Each) := (1.0 / length_N) * N;
end if;
end loop;
-- Calculate normal at each vertex.
--
declare
Id : Index_t;
Length : Real;
begin
for Each in the_Normals'Range
loop
the_Normals (Each) := Origin_3D;
end loop;
for f in the_Facets'Range
loop
for p in Index_t' (1) .. 3
loop
Id := the_Facets (f) (p);
the_Normals (Id) := the_Normals (Id) + the_facet_Normals (f);
end loop;
end loop;
for p in the_Normals'Range
loop
Length := abs (the_Normals (p));
if almost_Zero (Length)
then the_Normals (p) := (0.0, -1.0, 0.0);
else the_Normals (p) := (1.0 / Length) * the_Normals (p);
end if;
end loop;
end;
free (the_Facets);
free (the_facet_Normals);
return the_Normals.all'Unchecked_Access;
end any_Normals_of;
function Normals_of (face_Kind : in primitive.facet_Kind;
Indices : in openGL.Indices;
Sites : in openGL.Sites) return access Normals
is
function my_Normals_of is new any_Normals_of (any_Index_t => Index_t,
any_Indices => openGL.Indices);
begin
return my_Normals_of (face_Kind,
Indices,
Sites).all'unchecked_Access;
end Normals_of;
function Normals_of (face_Kind : in primitive.facet_Kind;
Indices : in openGL.long_Indices;
Sites : in openGL.Sites) return access Normals
is
function my_Normals_of is new any_Normals_of (any_Index_t => long_Index_t,
any_Indices => openGL.long_Indices);
begin
return my_Normals_of (face_Kind,
Indices,
Sites).all'unchecked_Access;
end Normals_of;
---------
-- Bounds
--
function get_Bounds (Count : in Natural) return openGL.Bounds
is
use Geometry_3D;
the_Bounds : openGL.Bounds := null_Bounds;
begin
for i in 1 .. any_Index_t (Count)
loop
the_Bounds.Box := the_Bounds.Box
or get_Site (i);
the_Bounds.Ball := Real'Max (the_Bounds.Ball,
abs (get_Site (i)));
end loop;
return the_Bounds;
end get_Bounds;
---------------
-- Transparency
--
function get_Transparency (Count : in Natural) return Boolean
is
use type color_Value;
begin
for i in 1 .. any_Index_t (Count)
loop
if get_Color (i).Opacity /= Opaque
then
return True;
end if;
end loop;
return False;
end get_Transparency;
end openGL.Geometry;
|
src/templates/ada/avtas/lmcp/avtas-lmcp.ads | joffreyhuguet/LmcpGen | 0 | 18996 | <reponame>joffreyhuguet/LmcpGen<filename>src/templates/ada/avtas/lmcp/avtas-lmcp.ads
package avtas.lmcp is
end avtas.lmcp;
|
test_draw_line_major/src/points.adb | rogermc2/GA_Ada | 3 | 6796 |
package body Points is
function Set_Draw_Colour (Colour : Singles.Vector4) return Colour_Data is
begin
return (others => Colour);
end Set_Draw_Colour;
end Points;
|
libsrc/_DEVELOPMENT/adt/bv_stack/c/sdcc_iy/bv_stack_size_fastcall.asm | jpoikela/z88dk | 640 | 174565 |
; size_t bv_stack_size_fastcall(bv_stack_t *s)
SECTION code_clib
SECTION code_adt_bv_stack
PUBLIC _bv_stack_size_fastcall
EXTERN asm_bv_stack_size
defc _bv_stack_size_fastcall = asm_bv_stack_size
|
sw/552tests/inst_tests/unaligned/bgez_0.asm | JPShen-UWM/ThreadKraken | 1 | 163992 | <gh_stars>1-10
// Original test: ./divya/hw4/problem6/bgez_0.asm
// Author: divya
// Test source code follows
lbi r1,-3
bgez r1,3
lbi r2,0
bgez r2,9
|
src/tocompress/map-medusa1.asm | santiontanon/talesofpopolon-ext | 4 | 28419 | <reponame>santiontanon/talesofpopolon-ext
include "../constants.asm"
org #0000
skybox:
db 0
texture_set:
db 2
floortypeandcolor:
; db 0
db #e0
ceilingtypeandcolor:
; db 0
db #40
map:
db 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7
db 7,7,7,0,0,0,7,0,7,7,7,0,0,0,7,7
db 7,7,7,0,7,0,7,0,7,7,7,0,7,7,7,7
db 7,7,7,0,7,0,3,0,7,7,7,0,7,7,7,7
db 7,7,7,0,7,7,7,7,7,7,7,0,7,7,7,7
db 7,7,0,0,0,7,7,7,7,7,7,3,7,7,7,7
db 7,0,0,0,0,0,0,0,9,0,0,0,0,0,9,7
db 7,7,0,0,0,7,7,7,7,0,0,0,0,0,7,7
db 7,7,7,0,7,7,7,7,7,0,0,0,0,0,7,7
db 7,7,7,0,0,0,0,7,9,0,0,0,0,0,9,7
db 7,7,7,7,7,7,0,7,7,7,7,0,7,7,7,7
db 7,0,7,7,9,7,3,7,7,9,7,0,7,7,7,7
db 7,6,7,7,0,0,0,0,7,0,0,0,0,7,7,7
db 7,0,0,0,0,0,0,0,1,0,0,0,0,1,0,4
db 7,0,7,7,0,0,0,0,7,9,7,0,7,7,7,7
db 7,5,7,7,9,7,7,7,7,7,7,2,7,7,7,7
pickups:
db 4
; item type, x, y, sprite
db ITEM_KEY , 7*16+8,1*16+8,SPRITE_PATTERN_KEY
db ITEM_KEY ,13*16+8,1*16+8,SPRITE_PATTERN_KEY
db ITEM_GOLDSWORD , 1*16+8,11*16+8,SPRITE_PATTERN_CHEST
db ITEM_ICEARROW , 11*16+8,14*16+8,SPRITE_PATTERN_CHEST
enemies:
db 14
; enemy type, x, y, sprite, color, hit points, state1, state2, state3
; switch puzzle:
db ENEMY_SWITCH , 9*16+8, 7*16+8, ENEMY_SWITCH_RIGHT_SPRITE_PATTERN, 15, 1,SWITCH_STATE_RIGHT,EVENT_CHANGE_OTHER_SWITCH,2
db ENEMY_SWITCH ,10*16+8, 7*16+8, ENEMY_SWITCH_RIGHT_SPRITE_PATTERN, 15, 1,SWITCH_STATE_RIGHT,EVENT_CHANGE_OTHER_SWITCH,0
db ENEMY_SWITCH ,11*16+8, 7*16+8, ENEMY_SWITCH_RIGHT_SPRITE_PATTERN, 15, 1,SWITCH_STATE_RIGHT,EVENT_CHANGE_OTHER_SWITCH,4
db ENEMY_SWITCH ,12*16+8, 7*16+8, ENEMY_SWITCH_RIGHT_SPRITE_PATTERN, 15, 1,SWITCH_STATE_RIGHT,EVENT_CHANGE_OTHER_SWITCH,2
db ENEMY_SWITCH ,13*16+8, 7*16+8, ENEMY_SWITCH_RIGHT_SPRITE_PATTERN, 15, 1,SWITCH_STATE_RIGHT,EVENT_OPEN_MEDUSA1_GATE,11+5*16
db ENEMY_SWITCH , 7*16+8,12*16+8, ENEMY_SWITCH_RIGHT_SPRITE_PATTERN, 15, 1,SWITCH_STATE_RIGHT,EVENT_OPEN_GATE,6+11*16
db ENEMY_SWITCH , 7*16+8, 6*16+8, ENEMY_SWITCH_RIGHT_SPRITE_PATTERN, 15, 1,SWITCH_STATE_RIGHT,EVENT_OPEN_GATE,6+3*16
db ENEMY_SKELETON , 6*16+4,14*16+8, ENEMY_SKELETON_SPRITE_PATTERN, 15, 2,0,0,0
db ENEMY_SKELETON , 6*16+4,12*16+8, ENEMY_SKELETON_SPRITE_PATTERN, 15, 2,0,0,0
db ENEMY_KNIGHT , 1*16+4, 6*16+8, ENEMY_KNIGHT_SPRITE_PATTERN, 7, 3,0,0,0
db ENEMY_KNIGHT , 6*16+4, 6*16+8, ENEMY_KNIGHT_SPRITE_PATTERN, 7, 3,0,0,0
db ENEMY_KNIGHT , 3*16+4, 1*16+8, ENEMY_KNIGHT_SPRITE_PATTERN, 7, 3,0,0,0
db ENEMY_KNIGHT , 7*16+4, 1*16+8, ENEMY_KNIGHT_SPRITE_PATTERN, 7, 3,0,0,0
db ENEMY_SKELETON ,11*16+4, 1*16+8, ENEMY_SKELETON_SPRITE_PATTERN, 11, 4,0,0,0
events_map:
db 0
; x, y, event ID (the first 4 IDs are reserved for 4 potential messages below (each of them
; 4 lines of 22 characters each))
; db #b0, #e0, 0
messages_map:
dw 0 ;; length of the message data block below
|
LogicalFormulae.agda | Smaug123/agdaproofs | 4 | 1564 | {-# OPTIONS --safe --warning=error --without-K #-}
open import Agda.Primitive using (Level; lzero; lsuc; _⊔_)
module LogicalFormulae where
infix 5 _≡_
data _≡_ {a} {A : Set a} (x : A) : A → Set a where
refl : x ≡ x
{-# BUILTIN EQUALITY _≡_ #-}
data False : Set where
data False' {a : _} : Set a where
record True : Set where
{-# BUILTIN UNIT True #-}
record True' {a : _} : Set a where
infix 10 _||_
data _||_ {a b} (A : Set a) (B : Set b) : Set (a ⊔ b) where
inl : A → A || B
inr : B → A || B
infix 15 _&&_
record _&&_ {a b} (A : Set a) (B : Set b) : Set (a ⊔ b) where
constructor _,,_
field
fst : A
snd : B
equalityLeft : {a b : _} {A : Set a} {B : Set b} {x1 x2 : A && B} → (x1 ≡ x2) → _&&_.fst x1 ≡ _&&_.fst x2
equalityLeft {x1 = a ,, _} {.a ,, _} refl = refl
equalityRight : {a b : _} {A : Set a} {B : Set b} {x1 x2 : A && B} → (x1 ≡ x2) → _&&_.snd x1 ≡ _&&_.snd x2
equalityRight {x1 = _ ,, a} {_ ,, .a} refl = refl
infix 15 _&_&_
record _&_&_ {a b c} (A : Set a) (B : Set b) (C : Set c) : Set (a ⊔ b ⊔ c) where
field
one : A
two : B
three : C
data Sg {n : _} {m : _} (A : Set m) (B : A → Set n) : Set (m ⊔ n) where
_,_ : (a : A) → (b : B a) → Sg A B
underlying : {n m : _} {A : _} {prop : _} → Sg {n} {m} A prop -> A
underlying (a , b) = a
underlyingRefl : {n m : _} {A : _} {prop : _} → {r s : Sg {n} {m} A prop} → r ≡ s → underlying r ≡ underlying s
underlyingRefl {r = (a , b)} {(.a , .b)} refl = refl
transitivity : {a : _} {A : Set a} {x y z : A} → (x ≡ y) → (y ≡ z) → (x ≡ z)
transitivity refl refl = refl
liftEquality : {a : _} {A B : Set a} (f g : A → B) → (x y : A) → (f ≡ g) → (x ≡ y) → ((f x) ≡ (g y))
liftEquality f .f x .x refl refl = refl
applyEquality : {a : _} {b : _} {A : Set a} {B : Set b} (f : A → B) → {x y : A} → (x ≡ y) → ((f x) ≡ (f y))
applyEquality {A} {B} f {x} {.x} refl = refl
applyEquality2 : {a b c : _} {A : Set a} {B : Set b} {C : Set c} (f : A → B → C) → {x y : A} → (x ≡ y) → {m n : B} → (m ≡ n) → f x m ≡ f y n
applyEquality2 f x=y m=n rewrite x=y | m=n = refl
identityOfIndiscernablesLeft : {m n o : _} {A : Set m} {B : Set n} {a : A} {b : B} {c : A} → (prop : A → B → Set o) → (prop a b) → (a ≡ c) → (prop c b)
identityOfIndiscernablesLeft {a = a} {b} {.a} prop pAB refl = pAB
identityOfIndiscernablesRight : {m n o : _} {A : Set m} {B : Set n} {a : A} {b c : B} → (prop : A → B → Set o) → (prop a b) → (b ≡ c) → (prop a c)
identityOfIndiscernablesRight {a = a} {b} {.b} prop prAB refl = prAB
equalityCommutative : {a : _} {A : Set a} {x y : A} → (x ≡ y) → (y ≡ x)
equalityCommutative refl = refl
exFalso : {n : _} {A : Set n} → .(x : False) → A
exFalso {a} = λ ()
exFalso' : {r n : _} {A : Set n} → .(x : False' {r}) → A
exFalso' ()
orIsAssociative : {n : _} {a b c : Set n} → ((a || b) || c) → (a || (b || c))
orIsAssociative (inl (inl x)) = inl x
orIsAssociative (inl (inr x)) = inr (inl x)
orIsAssociative (inr x) = inr (inr x)
lemConstructive : {n : _} → {p : Set n} → (p || (p → False)) → (((p → False) → False) → p)
lemConstructive (inl p) = λ _ → p
lemConstructive (inr notP) = λ negnegP → exFalso (negnegP notP)
lemConverse : {n : _} → {p : Set n} → p → ((p → False) → False)
lemConverse p = λ notP → notP p
typeCast : {a : _} {A : Set a} {B : Set a} (el : A) (pr : A ≡ B) → B
typeCast {a} {A} {.A} elt refl = elt
data Singleton {a} {A : Set a} (x : A) : Set a where
_with≡_ : (y : A) → x ≡ y → Singleton x
inspect : ∀ {a} {A : Set a} (x : A) → Singleton x
inspect x = x with≡ refl
curry : {a b c : _} {A : Set a} {B : Set b} {C : Set c} (f : A → B → C) → ((Sg A (λ _ → B)) → C)
curry f (a , b) = f a b
uncurry : {a b c : _} {A : Set a} {B : Set b} {C : Set c} (f : (Sg A (λ _ → B)) → C) → (A → B → C)
uncurry f a b = f (a , b)
decidableOr : {a b : _} → (A : Set a) → (B : Set b) → (A || (A → False)) → (A || B) → (A || ((A → False) && B))
decidableOr {a} {b} A B decidable (inl x) = inl x
decidableOr {a} {b} A B (inl y) (inr x) = inl y
decidableOr {a} {b} A B (inr y) (inr x) = inr (record { fst = y ; snd = x})
embedLevel : {a b : _} → Set a → Set (a ⊔ b)
embedLevel {a} {b} A = A && (True' {b})
|
src/parse_args-generic_discrete_options.ads | AntonMeep/parse_args | 9 | 30182 | -- parse_args-generic_discrete_option.ads
-- A simple command line option parser
-- Copyright (c) 2015, <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-- PERFORMANCE OF THIS SOFTWARE.
pragma Profile(No_Implementation_Extensions);
with Parse_Args.Generic_Options;
generic
type Element is (<>);
Fallback_Default : Element;
with procedure Valid (Arg : in Element; Result : in out Boolean) is null;
package Parse_Args.Generic_Discrete_Options is
package Inner is new Parse_Args.Generic_Options(Element => Element,
Fallback_Default => Fallback_Default,
Value => Element'Value,
Image => Element'Image,
Valid => Valid);
subtype Element_Option is Inner.Element_Option;
function Image (O : in Element_Option) return String renames Inner.Image;
function Value (O : in Element_Option) return Element renames Inner.Value;
function Value(A : in Argument_Parser; Name : in String) return Element renames Inner.Value;
function Make_Option(Default : in Element := Fallback_Default)
return Option_Ptr renames Inner.Make_Option;
end Parse_Args.Generic_Discrete_Options;
|
tests/natools-getopt_long_tests.adb | faelys/natools | 0 | 16073 | <filename>tests/natools-getopt_long_tests.adb
------------------------------------------------------------------------------
-- Copyright (c) 2011, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose with or without fee is hereby granted, provided that the above --
-- copyright notice and this permission notice appear in all copies. --
-- --
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --
-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF --
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR --
-- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES --
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN --
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF --
-- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --
------------------------------------------------------------------------------
with Ada.Containers.Indefinite_Vectors;
with Ada.Exceptions;
with Ada.Strings.Unbounded;
with Natools.Getopt_Long;
package body Natools.Getopt_Long_Tests is
package US renames Ada.Strings.Unbounded;
----------------------------------------
-- Dynamic command line argument list --
----------------------------------------
package String_Vectors is new Ada.Containers.Indefinite_Vectors
(Index_Type => Positive, Element_Type => String);
Command_Line : String_Vectors.Vector;
function Argument_Count return Natural;
function Argument (Number : Positive) return String;
function Argument_Count return Natural is
begin
return Natural (Command_Line.Length);
end Argument_Count;
function Argument (Number : Positive) return String is
begin
return Command_Line.Element (Number);
end Argument;
--------------------------------
-- Arguments used for testing --
--------------------------------
type Option_Id is
(Short_No_Arg, Short_No_Arg_2, Short_Opt_Arg, Short_Arg,
Long_No_Arg, Long_Opt_Arg, Long_Arg, Long_Ambiguous,
Mixed_No_Arg, Mixed_Opt_Arg, Mixed_Arg,
Command_Argument);
type Flag_Seen_Array is array (Option_Id) of Boolean;
type Flag_Argument_Array is array (Option_Id) of US.Unbounded_String;
Separator : constant Character := ';';
package Getopt is new Natools.Getopt_Long (Option_Id);
function Getopt_Config
(Posixly_Correct, Long_Only : Boolean)
return Getopt.Configuration;
-- Create the Getopt.Configuration object used for these tests.
function Getopt_Config
(Posixly_Correct, Long_Only : Boolean)
return Getopt.Configuration is
begin
return OD : Getopt.Configuration do
OD.Add_Option ('a', Getopt.No_Argument, Short_No_Arg);
OD.Add_Option ('q', Getopt.No_Argument, Short_No_Arg_2);
OD.Add_Option ('f', Getopt.Required_Argument, Short_Arg);
OD.Add_Option ('v', Getopt.Optional_Argument, Short_Opt_Arg);
OD.Add_Option ("aq", Getopt.No_Argument, Long_Ambiguous);
OD.Add_Option ("aquatic", Getopt.No_Argument, Long_No_Arg);
OD.Add_Option ("color", Getopt.Optional_Argument, Long_Opt_Arg);
OD.Add_Option ("input", Getopt.Required_Argument, Long_Arg);
OD.Add_Option ("execute", 'e', Getopt.Required_Argument, Mixed_Arg);
OD.Add_Option ("ignore-case", 'i', Getopt.No_Argument, Mixed_No_Arg);
OD.Add_Option ("write", 'w', Getopt.Optional_Argument, Mixed_Opt_Arg);
OD.Posixly_Correct (Posixly_Correct);
OD.Use_Long_Only (Long_Only);
end return;
end Getopt_Config;
-------------------
-- Test Handlers --
-------------------
package Handlers is
type Basic is new Getopt.Handlers.Callback with record
Flag_Seen : Flag_Seen_Array := (others => False);
Flag_Argument : Flag_Argument_Array;
Flag_Error : String_Vectors.Vector;
end record;
overriding
procedure Option (Handler : in out Basic;
Id : Option_Id;
Argument : String);
-- Process the given option, by recording it as seen in Flag_Seen
-- and appending the argument to Flag_Argument.
overriding
procedure Argument (Handler : in out Basic;
Argument : String);
-- Process the given argument, by recording it
-- in Flag_Seen (Command_Argument) and appending it
-- to Flag_Argument (Command_Argument).
not overriding
procedure Dump (Handler : Basic;
Report : in out NT.Reporter'Class);
-- Dump the current state (Flag_* variables) into the Report.
type Error_Count is record
Missing_Argument_Long : Natural := 0;
Missing_Argument_Short : Natural := 0;
Unexpected_Argument : Natural := 0;
Unknown_Long_Option : Natural := 0;
Unknown_Short_Option : Natural := 0;
end record;
type Recovering is new Basic with record
Count : Error_Count;
end record;
procedure Increment (Number : in out Natural);
overriding
procedure Missing_Argument
(Handler : in out Recovering;
Id : Option_Id;
Name : Getopt.Any_Name);
overriding
procedure Unexpected_Argument
(Handler : in out Recovering;
Id : Option_Id;
Name : Getopt.Any_Name;
Argument : String);
overriding
procedure Unknown_Option
(Handler : in out Recovering;
Name : Getopt.Any_Name);
end Handlers;
package body Handlers is
overriding
procedure Option (Handler : in out Basic;
Id : Option_Id;
Argument : String) is
begin
Handler.Flag_Seen (Id) := True;
US.Append (Handler.Flag_Argument (Id), Argument & Separator);
end Option;
overriding
procedure Argument (Handler : in out Basic;
Argument : String) is
begin
Option (Handler, Command_Argument, Argument);
end Argument;
not overriding
procedure Dump (Handler : Basic;
Report : in out NT.Reporter'Class)
is
procedure Process (Position : String_Vectors.Cursor);
function Seen_String (Seen : Boolean) return String;
procedure Process (Position : String_Vectors.Cursor) is
begin
Report.Info ("Error """ & String_Vectors.Element (Position) & '"');
end Process;
function Seen_String (Seen : Boolean) return String is
begin
if Seen then
return "Seen";
else
return "Not seen";
end if;
end Seen_String;
begin
Report.Info ("Flags:");
for Id in Option_Id loop
Report.Info (" "
& Option_Id'Image (Id) & ": "
& Seen_String (Handler.Flag_Seen (Id)) & ", """
& US.To_String (Handler.Flag_Argument (Id)) & '"');
end loop;
Handler.Flag_Error.Iterate (Process'Access);
end Dump;
procedure Increment (Number : in out Natural) is
begin
Number := Number + 1;
end Increment;
overriding
procedure Missing_Argument
(Handler : in out Recovering;
Id : Option_Id;
Name : Getopt.Any_Name)
is
pragma Unreferenced (Id);
begin
case Name.Style is
when Getopt.Short =>
Increment (Handler.Count.Missing_Argument_Short);
when Getopt.Long =>
Increment (Handler.Count.Missing_Argument_Long);
end case;
end Missing_Argument;
overriding
procedure Unexpected_Argument
(Handler : in out Recovering;
Id : Option_Id;
Name : Getopt.Any_Name;
Argument : String)
is
pragma Unreferenced (Id);
pragma Unreferenced (Name);
pragma Unreferenced (Argument);
begin
Increment (Handler.Count.Unexpected_Argument);
end Unexpected_Argument;
overriding
procedure Unknown_Option
(Handler : in out Recovering;
Name : Getopt.Any_Name) is
begin
case Name.Style is
when Getopt.Short =>
Increment (Handler.Count.Unknown_Short_Option);
when Getopt.Long =>
Increment (Handler.Count.Unknown_Long_Option);
end case;
end Unknown_Option;
end Handlers;
----------------------------
-- Generic test procedure --
----------------------------
procedure Test
(Report : in out NT.Reporter'Class;
Name : String;
Expected_Seen : Flag_Seen_Array;
Expected_Argument : Flag_Argument_Array;
Expected_Error : String_Vectors.Vector := String_Vectors.Empty_Vector;
Posixly_Correct : Boolean := True;
Long_Only : Boolean := False);
procedure Test
(Report : in out NT.Reporter'Class;
Name : String;
Expected_Seen : Flag_Seen_Array;
Expected_Argument : Flag_Argument_Array;
Expected_Error : String_Vectors.Vector := String_Vectors.Empty_Vector;
Posixly_Correct : Boolean := True;
Long_Only : Boolean := False)
is
use type String_Vectors.Vector;
Config : constant Getopt.Configuration
:= Getopt_Config (Posixly_Correct, Long_Only);
Handler : Handlers.Basic;
begin
begin
Getopt.Process
(Config => Config,
Handler => Handler,
Argument_Count => Argument_Count'Access,
Argument => Argument'Access);
exception
when Error : Getopt.Option_Error =>
Handler.Flag_Error.Append
(Ada.Exceptions.Exception_Message (Error));
end;
if Handler.Flag_Seen = Expected_Seen and
Handler.Flag_Argument = Expected_Argument and
Handler.Flag_Error = Expected_Error
then
Report.Item (Name, NT.Success);
else
Report.Item (Name, NT.Fail);
Handler.Dump (Report);
end if;
exception
when Error : others =>
Report.Report_Exception (Name, Error);
Handler.Dump (Report);
end Test;
---------------------------
-- Public test functions --
---------------------------
procedure All_Tests (Report : in out NT.Reporter'Class) is
begin
Test_Arguments (Report);
Test_Empty (Report);
Test_Error_Callbacks (Report);
Test_Everything (Report);
Test_Long (Report);
Test_Long_Only (Report);
Test_Long_Partial (Report);
Test_Long_Partial_Ambiguous (Report);
Test_Missing_Argument_Long (Report);
Test_Missing_Argument_Short (Report);
Test_Mixed_Arg (Report);
Test_Mixed_No_Arg (Report);
Test_Posixly_Correct (Report);
Test_Short_Argument (Report);
Test_Short_Compact (Report);
Test_Short_Expanded (Report);
Test_Unexpected_Argument (Report);
Test_Unknown_Long (Report);
Test_Unknown_Short (Report);
end All_Tests;
procedure Test_Arguments (Report : in out NT.Reporter'Class) is
begin
Command_Line.Clear;
Command_Line.Append ("Argument 1");
Command_Line.Append ("Argument 2");
Command_Line.Append ("Argument 3");
Test (Report, "Arguments without flag",
(Command_Argument => True,
others => False),
(Command_Argument
=> US.To_Unbounded_String ("Argument 1;Argument 2;Argument 3;"),
others => US.Null_Unbounded_String));
end Test_Arguments;
procedure Test_Empty (Report : in out NT.Reporter'Class) is
begin
Command_Line.Clear;
Test (Report, "Empty command line",
(others => False),
(others => US.Null_Unbounded_String));
end Test_Empty;
procedure Test_Error_Callbacks (Report : in out NT.Reporter'Class) is
procedure Local_Test
(Name : String;
Expected_Seen : Flag_Seen_Array;
Expected_Argument : Flag_Argument_Array;
Expected_Count : Handlers.Error_Count);
procedure Local_Test
(Name : String;
Expected_Seen : Flag_Seen_Array;
Expected_Argument : Flag_Argument_Array;
Expected_Count : Handlers.Error_Count)
is
use type Handlers.Error_Count;
Config : constant Getopt.Configuration := Getopt_Config (True, False);
Handler : Handlers.Recovering;
begin
Getopt.Process
(Config => Config,
Handler => Handler,
Argument_Count => Argument_Count'Access,
Argument => Argument'Access);
if Handler.Count /= Expected_Count then
Report.Item (Name, NT.Fail);
if Handler.Count.Missing_Argument_Long
/= Expected_Count.Missing_Argument_Long
then
Report.Info ("Missing argument to long option callback called"
& Natural'Image (Handler.Count.Missing_Argument_Long)
& " times, expected"
& Natural'Image (Expected_Count.Missing_Argument_Long));
end if;
if Handler.Count.Missing_Argument_Short
/= Expected_Count.Missing_Argument_Short
then
Report.Info ("Missing argument to short option callback called"
& Natural'Image (Handler.Count.Missing_Argument_Short)
& " times, expected"
& Natural'Image (Expected_Count.Missing_Argument_Short));
end if;
if Handler.Count.Unexpected_Argument
/= Expected_Count.Unexpected_Argument
then
Report.Info ("Unexpected argument callback called"
& Natural'Image (Handler.Count.Unexpected_Argument)
& " times, expected"
& Natural'Image (Expected_Count.Unexpected_Argument));
end if;
if Handler.Count.Unknown_Long_Option
/= Expected_Count.Unknown_Long_Option
then
Report.Info ("Unknown long option callback called"
& Natural'Image (Handler.Count.Unknown_Long_Option)
& " times, expected"
& Natural'Image (Expected_Count.Unknown_Long_Option));
end if;
if Handler.Count.Unknown_Short_Option
/= Expected_Count.Unknown_Short_Option
then
Report.Info ("Unknown short option callback called"
& Natural'Image (Handler.Count.Unknown_Short_Option)
& " times, expected"
& Natural'Image (Expected_Count.Unknown_Short_Option));
end if;
elsif Handler.Flag_Seen /= Expected_Seen or
Handler.Flag_Argument /= Expected_Argument
then
Report.Item (Name, NT.Fail);
Handler.Dump (Report);
else
Report.Item (Name, NT.Success);
end if;
exception
when Error : others =>
Report.Report_Exception (Name, Error);
Handler.Dump (Report);
end Local_Test;
begin
Report.Section ("Error-handling callbacks");
Command_Line.Clear;
Command_Line.Append ("-af");
Local_Test ("Missing argument for short option",
(Short_No_Arg => True, others => False),
(Short_No_Arg => US.To_Unbounded_String (";"),
others => US.Null_Unbounded_String),
(Missing_Argument_Short => 1, others => 0));
Command_Line.Clear;
Command_Line.Append ("--color");
Command_Line.Append ("--input");
Local_Test ("Missing argument for long option",
(Long_Opt_Arg => True, others => False),
(Long_Opt_Arg => US.To_Unbounded_String (";"),
others => US.Null_Unbounded_String),
(Missing_Argument_Long => 1, others => 0));
Command_Line.Clear;
Command_Line.Append ("--aquatic=extra");
Local_Test ("Unexpected argument",
(others => False),
(others => US.Null_Unbounded_String),
(Unexpected_Argument => 1, others => 0));
Command_Line.Clear;
Command_Line.Append ("-a");
Command_Line.Append ("--ignore-case=true");
Command_Line.Append ("--execute");
Command_Line.Append ("command");
Command_Line.Append ("file");
Local_Test ("Process continues after caught unexpected argument",
(Short_No_Arg | Mixed_Arg | Command_Argument => True,
others => False),
(Short_No_Arg => US.To_Unbounded_String (";"),
Mixed_Arg => US.To_Unbounded_String ("command;"),
Command_Argument => US.To_Unbounded_String ("file;"),
others => US.Null_Unbounded_String),
(Unexpected_Argument => 1, others => 0));
Command_Line.Clear;
Command_Line.Append ("-abqffoo");
Local_Test ("Unknown short option",
(Short_No_Arg | Short_No_Arg_2 | Short_Arg => True,
others => False),
(Short_No_Arg => US.To_Unbounded_String (";"),
Short_No_Arg_2 => US.To_Unbounded_String (";"),
Short_Arg => US.To_Unbounded_String ("foo;"),
others => US.Null_Unbounded_String),
(Unknown_Short_Option => 1, others => 0));
Command_Line.Clear;
Command_Line.Append ("--execute");
Command_Line.Append ("command");
Command_Line.Append ("--unknown=argument");
Command_Line.Append ("file");
Local_Test ("Unknown long option",
(Mixed_Arg | Command_Argument => True, others => False),
(Mixed_Arg => US.To_Unbounded_String ("command;"),
Command_Argument => US.To_Unbounded_String ("file;"),
others => US.Null_Unbounded_String),
(Unknown_Long_Option => 1, others => 0));
Command_Line.Clear;
Command_Line.Append ("--ignore-case");
Command_Line.Append ("-bffoo");
Command_Line.Append ("--aq=unexpected");
Command_Line.Append ("-ecommand");
Command_Line.Append ("--unknown");
Command_Line.Append ("--input");
Local_Test ("All errors simultaneously",
(Short_Arg | Mixed_No_Arg | Mixed_Arg => True,
others => False),
(Short_Arg => US.To_Unbounded_String ("foo;"),
Mixed_Arg => US.To_Unbounded_String ("command;"),
Mixed_No_Arg => US.To_Unbounded_String (";"),
others => US.Null_Unbounded_String),
(Missing_Argument_Long => 1,
Missing_Argument_Short => 0,
Unexpected_Argument => 1,
Unknown_Long_Option => 1,
Unknown_Short_Option => 1));
Report.End_Section;
end Test_Error_Callbacks;
procedure Test_Everything (Report : in out NT.Reporter'Class) is
begin
Command_Line.Clear;
Command_Line.Append ("--write=arg 1");
Command_Line.Append ("-awvfarg 2");
Command_Line.Append ("--aq");
Command_Line.Append ("-e");
Command_Line.Append ("arg 3");
Command_Line.Append ("--ignore-case");
Command_Line.Append ("--color=arg 4");
Command_Line.Append ("-iv");
Command_Line.Append ("--execute=arg 5");
Command_Line.Append ("--color");
Command_Line.Append ("--input");
Command_Line.Append ("arg 6");
Command_Line.Append ("arg 7");
Command_Line.Append ("arg 8");
Test (Report, "Everything together",
(Short_No_Arg_2 | Long_No_Arg => False, others => True),
(Short_No_Arg => US.To_Unbounded_String (";"),
Short_No_Arg_2 => US.Null_Unbounded_String,
Short_Arg => US.To_Unbounded_String ("arg 2;"),
Short_Opt_Arg => US.To_Unbounded_String (";;"),
Long_Ambiguous => US.To_Unbounded_String (";"),
Long_No_Arg => US.Null_Unbounded_String,
Long_Opt_Arg => US.To_Unbounded_String ("arg 4;;"),
Long_Arg => US.To_Unbounded_String ("arg 6;"),
Mixed_Arg => US.To_Unbounded_String ("arg 3;arg 5;"),
Mixed_No_Arg => US.To_Unbounded_String (";;"),
Mixed_Opt_Arg => US.To_Unbounded_String ("arg 1;;"),
Command_Argument => US.To_Unbounded_String ("arg 7;arg 8;")));
end Test_Everything;
procedure Test_Long (Report : in out NT.Reporter'Class) is
begin
Command_Line.Clear;
Command_Line.Append ("--aquatic");
Command_Line.Append ("--input=i equal");
Command_Line.Append ("--color=c equal");
Command_Line.Append ("--input");
Command_Line.Append ("i space");
Command_Line.Append ("--color");
Command_Line.Append ("c space");
Command_Line.Append ("top level");
Test (Report, "Long flags",
(Long_No_Arg | Long_Opt_Arg | Long_Arg | Command_Argument => True,
others => False),
(Long_No_Arg => US.To_Unbounded_String (";"),
Long_Opt_Arg => US.To_Unbounded_String ("c equal;;"),
Long_Arg => US.To_Unbounded_String ("i equal;i space;"),
Command_Argument => US.To_Unbounded_String ("c space;top level;"),
others => US.Null_Unbounded_String));
end Test_Long;
procedure Test_Long_Only (Report : in out NT.Reporter'Class) is
begin
Command_Line.Clear;
Command_Line.Append ("-aq");
-- Can be either 'a' and 'q' short flags or "aq" long flag, depending
-- on Long_Only parameter
-- Without Long_Only (default)
Test (Report, "Long_Only disabled (default)",
(Short_No_Arg | Short_No_Arg_2 => True, others => False),
(Short_No_Arg | Short_No_Arg_2 => US.To_Unbounded_String (";"),
others => US.Null_Unbounded_String),
Long_Only => False);
-- With Long_Only
Test (Report, "Long_Only enabled",
(Long_Ambiguous => True, others => False),
(Long_Ambiguous => US.To_Unbounded_String (";"),
others => US.Null_Unbounded_String),
Long_Only => True);
end Test_Long_Only;
procedure Test_Long_Partial (Report : in out NT.Reporter'Class) is
begin
Command_Line.Clear;
Command_Line.Append ("--aqu");
Command_Line.Append ("--co=foo");
Command_Line.Append ("--in");
Command_Line.Append ("bar");
Test (Report, "Partial matches for long flags",
(Long_No_Arg | Long_Opt_Arg | Long_Arg => True, others => False),
(Long_No_Arg => US.To_Unbounded_String (";"),
Long_Opt_Arg => US.To_Unbounded_String ("foo;"),
Long_Arg => US.To_Unbounded_String ("bar;"),
others => US.Null_Unbounded_String));
end Test_Long_Partial;
procedure Test_Long_Partial_Ambiguous (Report : in out NT.Reporter'Class) is
begin
Command_Line.Clear;
Command_Line.Append ("--i");
-- partial match for both "input" and "ignore-case" long flags
Test (Report, "Ambiguous partial match for long flags",
(others => False),
(others => US.Null_Unbounded_String),
String_Vectors.To_Vector ("Unknown option --i", 1));
Command_Line.Clear;
Command_Line.Append ("--aq");
-- partial match for both "aq" and "aquatic" long flags
-- but exact match is preferred
Test (Report, "Ambiguous exact match for long flags",
(Long_Ambiguous => True, others => False),
(Long_Ambiguous => US.To_Unbounded_String (";"),
others => US.Null_Unbounded_String));
end Test_Long_Partial_Ambiguous;
procedure Test_Missing_Argument_Long (Report : in out NT.Reporter'Class) is
begin
Command_Line.Clear;
Command_Line.Append ("--color");
Command_Line.Append ("--input");
Test (Report, "Missing argument for long option",
(Long_Opt_Arg => True, others => False),
(Long_Opt_Arg => US.To_Unbounded_String (";"),
others => US.Null_Unbounded_String),
String_Vectors.To_Vector
("Missing argument to option --input", 1));
end Test_Missing_Argument_Long;
procedure Test_Missing_Argument_Short (Report : in out NT.Reporter'Class) is
begin
Command_Line.Clear;
Command_Line.Append ("-v");
Command_Line.Append ("-f");
Test (Report, "Missing argument for long option",
(Short_Opt_Arg => True, others => False),
(Short_Opt_Arg => US.To_Unbounded_String (";"),
others => US.Null_Unbounded_String),
String_Vectors.To_Vector ("Missing argument to option -f", 1));
end Test_Missing_Argument_Short;
procedure Test_Mixed_Arg (Report : in out NT.Reporter'Class) is
begin
Command_Line.Clear;
Command_Line.Append ("-efoo");
Command_Line.Append ("-qe");
Command_Line.Append ("bar");
Command_Line.Append ("-aebaz");
Command_Line.Append ("--execute=long");
Test (Report, "Short and long options with arguments",
(Mixed_Arg | Short_No_Arg | Short_No_Arg_2 => True,
others => False),
(Mixed_Arg => US.To_Unbounded_String ("foo;bar;baz;long;"),
Short_No_Arg | Short_No_Arg_2 => US.To_Unbounded_String (";"),
others => US.Null_Unbounded_String));
end Test_Mixed_Arg;
procedure Test_Mixed_No_Arg (Report : in out NT.Reporter'Class) is
begin
Command_Line.Clear;
Command_Line.Append ("-ai");
Command_Line.Append ("--ignore-case");
Test (Report, "Short and long options without arguments",
(Mixed_No_Arg | Short_No_Arg => True, others => False),
(Mixed_No_Arg => US.To_Unbounded_String (";;"),
Short_No_Arg => US.To_Unbounded_String (";"),
others => US.Null_Unbounded_String));
end Test_Mixed_No_Arg;
procedure Test_Posixly_Correct (Report : in out NT.Reporter'Class) is
begin
Command_Line.Clear;
Command_Line.Append ("-a");
Command_Line.Append ("top level");
Command_Line.Append ("-q");
-- Posixly_Correct defines whether this "-q" is a top-level argument
-- or a short flag
-- With the flag
Test (Report, "Posixly correct behavior",
(Short_No_Arg | Command_Argument => True,
others => False),
(Short_No_Arg => US.To_Unbounded_String (";"),
Command_Argument => US.To_Unbounded_String ("top level;-q;"),
others => US.Null_Unbounded_String),
Posixly_Correct => True);
-- Without the flag
Test (Report, "GNU (posixly incorrect) behavior",
(Short_No_Arg | Short_No_Arg_2 | Command_Argument => True,
others => False),
(Short_No_Arg | Short_No_Arg_2 => US.To_Unbounded_String (";"),
Command_Argument => US.To_Unbounded_String ("top level;"),
others => US.Null_Unbounded_String),
Posixly_Correct => False);
end Test_Posixly_Correct;
procedure Test_Short_Argument (Report : in out NT.Reporter'Class) is
begin
Command_Line.Clear;
Command_Line.Append ("-faq");
-- "aq" is argument for 'f' short flag, not 'a' and 'q' short flags
Command_Line.Append ("-f");
Command_Line.Append ("-a");
-- "-a" is argument for 'f' short flag, not 'a' short flag
Command_Line.Append ("-v");
Command_Line.Append ("bar");
-- "bar" is top level argument, because optional argument for short
-- flags are never set
Test (Report, "Arguments to short flags",
(Short_Arg | Short_Opt_Arg | Command_Argument => True,
others => False),
(Short_Arg => US.To_Unbounded_String ("aq;-a;"),
Short_Opt_Arg => US.To_Unbounded_String (";"),
Command_Argument => US.To_Unbounded_String ("bar;"),
others => US.Null_Unbounded_String));
end Test_Short_Argument;
procedure Test_Short_Compact (Report : in out NT.Reporter'Class) is
begin
Command_Line.Clear;
Command_Line.Append ("-avq");
-- "q" is not argument to 'v' short flag, but a short flag itself
Test (Report, "Argumentless compact short flags",
(Short_No_Arg | Short_No_Arg_2 | Short_Opt_Arg => True,
others => False),
(Short_No_Arg | Short_No_Arg_2 | Short_Opt_Arg =>
US.To_Unbounded_String (";"),
others => US.Null_Unbounded_String));
end Test_Short_Compact;
procedure Test_Short_Expanded (Report : in out NT.Reporter'Class) is
begin
Command_Line.Clear;
Command_Line.Append ("-a");
Command_Line.Append ("-v");
Command_Line.Append ("-q");
Test (Report, "Argumentless expanded short flags",
(Short_No_Arg | Short_No_Arg_2 | Short_Opt_Arg => True,
others => False),
(Short_No_Arg | Short_No_Arg_2 | Short_Opt_Arg =>
US.To_Unbounded_String (";"),
others => US.Null_Unbounded_String));
end Test_Short_Expanded;
procedure Test_Unexpected_Argument (Report : in out NT.Reporter'Class) is
begin
Command_Line.Clear;
Command_Line.Append ("--color=foo");
Command_Line.Append ("--aq=bar");
Test (Report, "Unexpected argument to long option",
(Long_Opt_Arg => True, others => False),
(Long_Opt_Arg => US.To_Unbounded_String ("foo;"),
others => US.Null_Unbounded_String),
String_Vectors.To_Vector
("Unexpected argument ""bar"" to option --aq", 1));
end Test_Unexpected_Argument;
procedure Test_Unknown_Long (Report : in out NT.Reporter'Class) is
begin
Command_Line.Clear;
Command_Line.Append ("--long-flag");
Test (Report, "Unknown long flag",
(others => False), (others => US.Null_Unbounded_String),
String_Vectors.To_Vector ("Unknown option --long-flag", 1));
end Test_Unknown_Long;
procedure Test_Unknown_Short (Report : in out NT.Reporter'Class) is
begin
Command_Line.Clear;
Command_Line.Append ("-g");
Test (Report, "Unknown short flag",
(others => False), (others => US.Null_Unbounded_String),
String_Vectors.To_Vector ("Unknown option -g", 1));
end Test_Unknown_Short;
end Natools.Getopt_Long_Tests;
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/gnat_malloc.adb | best08618/asylo | 7 | 15960 | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/gnat_malloc.adb
-- { dg-do run }
-- { dg-options "-O2" }
with Unchecked_Conversion;
procedure gnat_malloc is
type int1 is new integer;
type int2 is new integer;
type a1 is access int1;
type a2 is access int2;
function to_a2 is new Unchecked_Conversion (a1, a2);
v1 : a1 := new int1;
v2 : a2 := to_a2 (v1);
begin
v1.all := 1;
v2.all := 0;
if v1.all /= 0 then
raise Program_Error;
end if;
end;
|
test/interaction/Issue1326.agda | cruhland/agda | 1,989 | 1501 | <gh_stars>1000+
-- Andreas, 2014-10-23
data Bool : Set where
true false : Bool
module _ (b : Bool) where
f : Set
f = {!b!}
-- Agda produces garbage when splitting on b.
-- Splitting on module parameters should be forbidden outright.
|
programs/oeis/245/A245345.asm | neoneye/loda | 22 | 160594 | <reponame>neoneye/loda
; A245345: Sum of digits of n written in fractional base 9/2.
; 0,1,2,3,4,5,6,7,8,2,3,4,5,6,7,8,9,10,4,5,6,7,8,9,10,11,12,6,7,8,9,10,11,12,13,14,8,9,10,11,12,13,14,15,16,3,4,5,6,7,8,9,10,11,5,6,7,8,9,10,11,12,13,7,8,9,10,11,12,13,14,15,9,10,11,12
lpb $0
add $1,530
lpb $0
dif $0,9
mul $0,2
lpe
sub $0,1
lpe
div $1,530
mov $0,$1
|
src/definitions.ads | jfouquart/synth | 0 | 7242 | <filename>src/definitions.ads
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
package Definitions is
pragma Pure;
synth_version_major : constant String := "2";
synth_version_minor : constant String := "04";
copyright_years : constant String := "2015-2018";
host_localbase : constant String := "/usr/local";
host_make : constant String := "/usr/bin/make";
host_pkg8 : constant String := host_localbase & "/sbin/pkg";
host_bmake : constant String := host_localbase & "/bin/bmake";
host_make_program : constant String := host_make;
chroot_make : constant String := "/usr/bin/make";
chroot_bmake : constant String := "/usr/pkg/bin/bmake -m /usr/pkg/share/mk";
chroot_make_program : constant String := chroot_make;
jobs_per_cpu : constant := 2;
type cpu_range is range 1 .. 32;
type scanners is range cpu_range'First .. cpu_range'Last;
type builders is range cpu_range'First .. cpu_range'Last * jobs_per_cpu;
type package_system is (ports_collection, pkgsrc);
software_framework : constant package_system := ports_collection;
-- Notes for tailoring Synth. Use sed to:
-- 1. Modify host_localbase to value of LOCALBASE
-- 2. Change software_framework to "pkgsrc" for pkgsrc version
-- 3. Change host_make_program to "host_bmake" for Non-NetBSD pkgsrc platforms
-- 4. Change chroot_make_program to "chroot_bmake" for pkgsrc version
-- 5. On replicant.ads, change "/usr/local" to "/usr/pkg" on pkgsrc
end Definitions;
|
src/API/protypo-api-consumers.ads | fintatarta/protypo | 0 | 20102 | <gh_stars>0
--
-- ## What is a consumer?
-- A consumer is an object that implement the `Consumer_Interface`.
-- It is expected to accept a single string as argument and it can do
-- whatever it wants with it. A consumer receives its parameter from
-- the builtin function `@` after the `#...#` processing has taken
-- place.
--
-- In most cases it is expected that the consumer will be an
-- instance of `File_Writer`
--
package Protypo.API.Consumers is
type Consumer_Interface is limited interface;
type Consumer_Access is access all Consumer_Interface'Class;
procedure Process (Consumer : in out Consumer_Interface;
Parameter : String)
is abstract;
end Protypo.API.Consumers;
|
hackvm/testdata/BasicLoop.asm | nobishino/gocode | 0 | 87522 | // push constant 0
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
// pop local 0
@LCL
D=M
@0
D=D+A
@R13 // general register
M=D
@SP
M=M-1
A=M
D=M
@R13 // general register
A=M
M=D
// label LOOP_START
(label_BasicLoop_LOOP_START)
// push argument 0
@0
D=A
@ARG
D=D+M
A=D
D=M
@SP
A=M
M=D
@SP
M=M+1
// push local 0
@0
D=A
@LCL
D=D+M
A=D
D=M
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
M=M-1
A=M
D=M
@SP
M=M-1
A=M
M=D+M
@SP
M=M+1
// pop local 0
@LCL
D=M
@0
D=D+A
@R13 // general register
M=D
@SP
M=M-1
A=M
D=M
@R13 // general register
A=M
M=D
// push argument 0
@0
D=A
@ARG
D=D+M
A=D
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 1
@1
D=A
@SP
A=M
M=D
@SP
M=M+1
// sub
@SP
M=M-1
A=M
D=M
@SP
M=M-1
A=M
M=M-D
@SP
M=M+1
// pop argument 0
@ARG
D=M
@0
D=D+A
@R13 // general register
M=D
@SP
M=M-1
A=M
D=M
@R13 // general register
A=M
M=D
// push argument 0
@0
D=A
@ARG
D=D+M
A=D
D=M
@SP
A=M
M=D
@SP
M=M+1
// if-goto LOOP_START
@SP
M=M-1
A=M
D=M
@label_BasicLoop_LOOP_START
D;JNE
// push local 0
@0
D=A
@LCL
D=D+M
A=D
D=M
@SP
A=M
M=D
@SP
M=M+1
|
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_1190.asm | ljhsiun2/medusa | 9 | 164717 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xa4b7, %r12
nop
cmp %r15, %r15
movb (%r12), %r9b
nop
nop
nop
nop
dec %rdi
lea addresses_WT_ht+0xbdd7, %rax
nop
xor $20144, %rsi
movw $0x6162, (%rax)
nop
cmp %r15, %r15
lea addresses_WC_ht+0x3cf5, %rax
nop
and %rdi, %rdi
mov $0x6162636465666768, %r15
movq %r15, %xmm4
vmovups %ymm4, (%rax)
nop
nop
nop
nop
sub $56117, %r9
lea addresses_A_ht+0xb377, %r9
nop
nop
nop
cmp $24199, %r15
mov (%r9), %ax
nop
nop
nop
nop
sub %rax, %rax
lea addresses_UC_ht+0x93d7, %rsi
lea addresses_UC_ht+0x465f, %rdi
nop
nop
nop
nop
add %rbx, %rbx
mov $19, %rcx
rep movsq
cmp %r15, %r15
lea addresses_WT_ht+0x1a7d7, %rcx
cmp $1750, %rdi
movw $0x6162, (%rcx)
sub %r15, %r15
lea addresses_normal_ht+0xa94b, %rcx
clflush (%rcx)
nop
add $27647, %rax
movb $0x61, (%rcx)
nop
nop
nop
nop
nop
sub %rax, %rax
lea addresses_D_ht+0x55f, %r12
nop
nop
xor %r15, %r15
mov $0x6162636465666768, %rsi
movq %rsi, %xmm2
and $0xffffffffffffffc0, %r12
vmovaps %ymm2, (%r12)
nop
nop
nop
nop
nop
lfence
lea addresses_normal_ht+0x187d7, %rax
nop
and %rcx, %rcx
movw $0x6162, (%rax)
nop
nop
nop
nop
inc %r12
lea addresses_WT_ht+0x19fd7, %rsi
lea addresses_A_ht+0x193d7, %rdi
nop
and %rax, %rax
mov $123, %rcx
rep movsb
nop
cmp %r12, %r12
lea addresses_WT_ht+0x193d7, %rbx
nop
nop
nop
nop
and $47791, %rcx
mov $0x6162636465666768, %rax
movq %rax, %xmm2
movups %xmm2, (%rbx)
nop
nop
nop
nop
nop
cmp %r12, %r12
lea addresses_D_ht+0x107d7, %rbx
cmp %rax, %rax
mov $0x6162636465666768, %rdi
movq %rdi, (%rbx)
nop
and $1231, %r9
lea addresses_UC_ht+0x12887, %rsi
nop
nop
nop
nop
xor %r12, %r12
movb (%rsi), %cl
nop
nop
nop
nop
nop
add $16901, %rbx
lea addresses_WT_ht+0xfe87, %rbx
nop
nop
nop
nop
add $19967, %r15
movb (%rbx), %r12b
nop
nop
xor %r12, %r12
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r15
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r8
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
// Store
lea addresses_PSE+0x7f, %rbx
nop
nop
nop
nop
nop
add $4460, %r11
movw $0x5152, (%rbx)
nop
nop
nop
nop
xor $7859, %r10
// REPMOV
lea addresses_PSE+0x1d43, %rsi
lea addresses_WT+0xf5b7, %rdi
clflush (%rsi)
nop
nop
nop
lfence
mov $104, %rcx
rep movsq
nop
nop
nop
nop
nop
xor %r11, %r11
// Store
lea addresses_WC+0x8bd7, %rbp
and %r9, %r9
movw $0x5152, (%rbp)
nop
add $26018, %rdi
// Store
lea addresses_WC+0x192d7, %rsi
nop
nop
nop
nop
inc %rbx
movb $0x51, (%rsi)
sub $44369, %rcx
// Store
lea addresses_WC+0x4957, %r9
nop
sub $60128, %r10
mov $0x5152535455565758, %rbx
movq %rbx, (%r9)
nop
nop
nop
nop
add $9183, %rbx
// Load
lea addresses_normal+0x47d7, %r10
nop
nop
nop
nop
add $46797, %r11
mov (%r10), %ecx
nop
nop
nop
nop
nop
sub $13044, %r11
// Store
lea addresses_UC+0x12fd7, %r10
nop
nop
nop
nop
xor $29766, %r8
movw $0x5152, (%r10)
nop
nop
nop
nop
dec %rsi
// Faulty Load
lea addresses_normal+0x47d7, %r10
nop
nop
sub %rsi, %rsi
mov (%r10), %r8
lea oracles, %r9
and $0xff, %r8
shlq $12, %r8
mov (%r9,%r8,1), %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r8
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_normal', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_PSE', 'same': False, 'size': 2, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_PSE', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WT', 'congruent': 5, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WC', 'same': False, 'size': 2, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WC', 'same': False, 'size': 1, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WC', 'same': False, 'size': 8, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_UC', 'same': False, 'size': 2, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_normal', 'same': True, 'size': 8, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WT_ht', 'same': True, 'size': 2, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 1, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
|
bssn/code/src/metric.ads | leo-brewin/adm-bssn-numerical | 1 | 1441 | <filename>bssn/code/src/metric.ads
package Metric is
end Metric;
|
FormalAnalyzer/models/meta/cap_carbonMonoxideDetector.als | Mohannadcse/IoTCOM_BehavioralRuleExtractor | 0 | 5189 | <filename>FormalAnalyzer/models/meta/cap_carbonMonoxideDetector.als
// filename: cap_carbonMonoxideDetector.als
module cap_carbonMonoxideDetector
open IoTBottomUp
one sig cap_carbonMonoxideDetector extends Capability {}
{
attributes = cap_carbonMonoxideDetector_attr
}
abstract sig cap_carbonMonoxideDetector_attr extends Attribute {}
one sig cap_carbonMonoxideDetector_attr_carbonMonoxide extends cap_carbonMonoxideDetector_attr {}
{
values = cap_carbonMonoxideDetector_attr_carbonMonoxide_val
}
abstract sig cap_carbonMonoxideDetector_attr_carbonMonoxide_val extends AttrValue {}
one sig cap_carbonMonoxideDetector_attr_carbonMonoxide_val_clear extends cap_carbonMonoxideDetector_attr_carbonMonoxide_val {}
one sig cap_carbonMonoxideDetector_attr_carbonMonoxide_val_detected extends cap_carbonMonoxideDetector_attr_carbonMonoxide_val {}
one sig cap_carbonMonoxideDetector_attr_carbonMonoxide_val_tested extends cap_carbonMonoxideDetector_attr_carbonMonoxide_val {}
|
dos/diskonchip/dload.asm | sergev/vak-opensource | 34 | 102197 | <filename>dos/diskonchip/dload.asm
ifndef ??version
?debug macro
endm
$comm macro name,dist,size,count
comm dist name:BYTE:count*size
endm
else
$comm macro name,dist,size,count
comm dist name[size]:BYTE:count
endm
endif
?debug S "dload.c"
?debug C E9C8A27C2F07646C6F61642E63
?debug C E90008A41415433A5C54435C494E434C5544455C737464696F2E68
?debug C E984930A2B13433A5C54435C494E434C5544455C646F732E68
_TEXT segment byte public 'CODE'
_TEXT ends
DGROUP group _DATA,_BSS
assume cs:_TEXT,ds:DGROUP
_DATA segment word public 'DATA'
d@ label byte
d@w label word
_DATA ends
_BSS segment word public 'BSS'
b@ label byte
b@w label word
_BSS ends
_TEXT segment byte public 'CODE'
;
; unsigned char wait_ready ()
;
assume cs:_TEXT
_wait_ready proc near
push bp
mov bp,sp
push si
;
; {
; int count;
;
; ChipID++;
;
mov ax,55296
mov es,ax
inc word ptr es:[4096]
;
; for (count=1000; count>0; --count)
;
mov si,1000
jmp short @1@122
@1@50:
;
; if (CDSNControl & 0x80) /* FR_B */
;
mov ax,55296
mov es,ax
test byte ptr es:[4100],128
je short @1@98
jmp short @1@170
@1@98:
dec si
@1@122:
or si,si
jg short @1@50
;
; return CDSNControl;
; printf ("Wait error, count = %d.\n", count);
;
push si
mov ax,offset DGROUP:s@
push ax
call near ptr _printf
pop cx
pop cx
;
; return CDSNControl;
;
@1@170:
mov ax,55296
mov es,ax
mov al,byte ptr es:[4100]
;
; }
;
pop si
pop bp
ret
_wait_ready endp
;
; void send_command (unsigned char cmd)
;
assume cs:_TEXT
_send_command proc near
push bp
mov bp,sp
;
; {
; CDSNControl = 0x1b; /* FLASH_IO,WP,CLE,CE */
;
mov ax,55296
mov es,ax
mov byte ptr es:[4100],27
;
; ChipID++;
;
mov es,ax
inc word ptr es:[4096]
;
; CDSNSlowIO = cmd;
;
mov dl,byte ptr [bp+4]
mov es,ax
mov byte ptr es:[4109],dl
;
; CDSN_IO = cmd;
;
mov es,ax
mov byte ptr es:[6144],dl
;
;
; wait_ready ();
;
call near ptr _wait_ready
;
; }
;
pop bp
ret
_send_command endp
;
; void dump (char *filename, char far *data, int len)
;
assume cs:_TEXT
_dump proc near
push bp
mov bp,sp
push si
push di
mov di,word ptr [bp+10]
;
; {
; FILE *fd;
;
; fd = fopen (filename, "wb");
;
mov ax,offset DGROUP:s@+25
push ax
push word ptr [bp+4]
call near ptr _fopen
pop cx
pop cx
mov si,ax
;
; if (! fd) {
;
or ax,ax
jne short @3@74
;
; fprintf (stderr, "%s: cannot create\n", filename);
;
push word ptr [bp+4]
mov ax,offset DGROUP:s@+28
push ax
mov ax,offset DGROUP:__streams+32
push ax
call near ptr _fprintf
add sp,6
;
; return;
;
jmp short @3@170
@3@74:
;
; }
; printf ("Dump %d bytes to %s.\n", len, filename);
;
push word ptr [bp+4]
push di
mov ax,offset DGROUP:s@+47
push ax
call near ptr _printf
add sp,6
jmp short @3@122
@3@98:
;
; while (len-- > 0)
; fputc (*data++, fd);
;
push si
les bx,dword ptr [bp+6]
inc word ptr [bp+6]
mov al,byte ptr es:[bx]
cbw
push ax
call near ptr _fputc
pop cx
pop cx
@3@122:
mov ax,di
dec di
or ax,ax
jg short @3@98
;
;
; fclose (fd);
;
push si
call near ptr _fclose
pop cx
@3@170:
;
; }
;
pop di
pop si
pop bp
ret
_dump endp
;
; int main ()
;
assume cs:_TEXT
_main proc near
push bp
mov bp,sp
sub sp,4
push si
;
; {
; unsigned short dst, len;
; unsigned char sum, c;
;
; printf ("DiskOnChip loader.\n");
;
mov ax,offset DGROUP:s@+69
push ax
call near ptr _printf
pop cx
;
;
; DOCControl = 0x85;
;
mov ax,55296
mov es,ax
mov byte ptr es:[4098],133
;
; DOCControl = 0x85;
;
mov es,ax
mov byte ptr es:[4098],133
;
; send_command (0xff);
;
mov al,255
push ax
call near ptr _send_command
pop cx
;
; send_command (0);
;
mov al,0
push ax
call near ptr _send_command
pop cx
;
;
; printf ("Loading %d bytes to 0x%04x:0000.\n", NBYTES, TARGET);
;
mov ax,32768
push ax
mov ax,8192
push ax
mov ax,offset DGROUP:s@+89
push ax
call near ptr _printf
add sp,6
;
; printf ("Disk initialized.\n");
;
mov ax,offset DGROUP:s@+123
push ax
call near ptr _printf
pop cx
;
; dst = 0;
;
mov word ptr [bp-2],0
;
; sum = 0;
;
mov byte ptr [bp-3],0
;
; len = NBYTES;
;
mov si,8192
;
; for (dst=0; dst<NBYTES; ++dst, --len) {
;
mov word ptr [bp-2],0
jmp @4@146
@4@50:
;
; if ((len & 0x0f) == 0) {
;
test si,15
jne short @4@98
;
; printf (".");
;
mov ax,offset DGROUP:s@+142
push ax
call near ptr _printf
pop cx
;
; fflush (stdout);
;
mov ax,offset DGROUP:__streams+16
push ax
call near ptr _fflush
pop cx
;
;
; CDSNControl = 0x1d; /* FLASH_IO,WP,ALE,CE */
;
mov ax,55296
mov es,ax
mov byte ptr es:[4100],29
;
; ChipID++;
;
mov es,ax
inc word ptr es:[4096]
;
; CDSNSlowIO = (unsigned char) dst;
;
mov dl,byte ptr [bp-2]
mov es,ax
mov byte ptr es:[4109],dl
;
; CDSN_IO = (unsigned char) dst;
;
mov es,ax
mov byte ptr es:[6144],dl
;
; CDSNSlowIO = (unsigned char) (dst >> 8);
;
mov ax,word ptr [bp-2]
mov cl,8
shr ax,cl
mov dx,55296
mov es,dx
mov byte ptr es:[4109],al
;
; CDSN_IO = (unsigned char) (dst >> 8);
;
mov ax,word ptr [bp-2]
shr ax,cl
mov es,dx
mov byte ptr es:[6144],al
;
; CDSNSlowIO = 0;
;
mov ax,55296
mov es,ax
mov byte ptr es:[4109],0
;
; CDSN_IO = 0;
;
mov es,ax
mov byte ptr es:[6144],0
;
; CDSNControl = 0x19; /* FLASH_IO,WP,CE */
;
mov es,ax
mov byte ptr es:[4100],25
;
;
; wait_ready ();
;
call near ptr _wait_ready
@4@98:
;
; }
; c = CDSNSlowIO;
;
mov ax,55296
mov es,ax
mov al,byte ptr es:[4109]
mov byte ptr [bp-4],al
;
; c = CDSN_IO;
;
mov ax,55296
mov es,ax
mov al,byte ptr es:[6144]
mov byte ptr [bp-4],al
;
; sum += c;
;
add byte ptr [bp-3],al
;
; *(char far*) MK_FP (TARGET, dst) = c;
;
mov ax,32768
mov bx,word ptr [bp-2]
mov dl,byte ptr [bp-4]
mov es,ax
mov byte ptr es:[bx],dl
mov ax,word ptr [bp-2]
inc ax
mov word ptr [bp-2],ax
mov ax,si
dec ax
mov si,ax
@4@146:
cmp word ptr [bp-2],8192
jae @@0
jmp @4@50
@@0:
;
; }
; printf (" done\n", dst);
;
push word ptr [bp-2]
mov ax,offset DGROUP:s@+144
push ax
call near ptr _printf
pop cx
pop cx
;
; if (sum != 0x55) {
;
cmp byte ptr [bp-3],85
je short @4@218
;
; printf ("Checksum error: 0x%x (must be 0x55).\n", sum);
;
mov al,byte ptr [bp-3]
mov ah,0
push ax
mov ax,offset DGROUP:s@+151
push ax
call near ptr _printf
pop cx
pop cx
;
; exit (1);
;
mov ax,1
push ax
call near ptr _exit
pop cx
@4@218:
;
; }
; /* dump ("boot2.bin", MK_FP (TARGET, 0), NBYTES); */
;
; printf ("Calling secondary boot at 0x%04x:0000.\n", TARGET);
;
mov ax,32768
push ax
mov ax,offset DGROUP:s@+189
push ax
call near ptr _printf
pop cx
pop cx
;
;
; asm {
; push CS
;
push CS
;
; mov CX, offset back_label
;
mov CX, offset back_label
;
; push CX
;
push CX
;
; mov CX, BIOS
;
mov CX, 0d800H
;
; push CX
;
push CX
;
; mov CX, 83Eh
;
mov CX, 83Eh
;
; push CX
;
push CX
;
; mov CX, TARGET
;
mov CX, 08000H
;
; push CX
;
push CX
;
; mov CX, 0
;
mov CX, 0
;
; push CX
;
push CX
;
; db 0CBh /* retf */
;
db 0CBh
;
; back_label:
;
back_label :
;
; }
;
; printf ("Done.\n");
;
mov ax,offset DGROUP:s@+229
push ax
call near ptr _printf
pop cx
;
; return 0;
;
xor ax,ax
;
; }
;
pop si
mov sp,bp
pop bp
ret
_main endp
?debug C E9
_TEXT ends
_DATA segment word public 'DATA'
s@ label byte
db 'Wait error, count = %d.'
db 10
db 0
db 'wb'
db 0
db '%s: cannot create'
db 10
db 0
db 'Dump %d bytes to %s.'
db 10
db 0
db 'DiskOnChip loader.'
db 10
db 0
db 'Loading %d bytes to 0x%04x:0000.'
db 10
db 0
db 'Disk initialized.'
db 10
db 0
db '.'
db 0
db ' done'
db 10
db 0
db 'Checksum error: 0x%x (must be 0x55).'
db 10
db 0
db 'Calling secondary boot at 0x%04x:0000.'
db 10
db 0
db 'Done.'
db 10
db 0
_DATA ends
_TEXT segment byte public 'CODE'
_TEXT ends
public _send_command
extrn _fopen:near
extrn _printf:near
extrn _fflush:near
public _wait_ready
public _dump
extrn _fprintf:near
public _main
extrn _fputc:near
extrn __streams:word
extrn _exit:near
extrn _fclose:near
end
|
src/asis/asis-extensions-flat_kinds.ads | My-Colaborations/dynamo | 15 | 29790 | ------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- A S I S . E X T E N S I O N S . F L A T _ K I N D S --
-- --
-- S p e c --
-- --
-- Copyright (C) 1995-2012, Free Software Foundation, Inc. --
-- --
-- ASIS-for-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 --
-- Software Foundation; either version 2, or (at your option) any later --
-- version. ASIS-for-GNAT is distributed in the hope that it will be use- --
-- ful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- --
-- CHANTABILITY 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 distributed with ASIS-for-GNAT; see file --
-- COPYING. If not, write to the Free Software Foundation, 51 Franklin --
-- Street, Fifth Floor, Boston, MA 02110-1301, USA. --
-- --
-- --
-- --
-- --
-- --
-- --
-- --
-- --
-- ASIS-for-GNAT was originally developed by the ASIS-for-GNAT team at the --
-- Software Engineering Laboratory of the Swiss Federal Institute of --
-- Technology (LGL-EPFL) in Lausanne, Switzerland, in cooperation with the --
-- Scientific Research Computer Center of Moscow State University (SRCC --
-- MSU), Russia, with funding partially provided by grants from the Swiss --
-- National Science Foundation and the Swiss Academy of Engineering --
-- Sciences. ASIS-for-GNAT is now maintained by AdaCore --
-- (http://www.adacore.com). --
-- --
------------------------------------------------------------------------------
-- This package provides the "flat" Element classification as a part of ASIS
-- extensions provided by ASIS-for-GNAT. This classification is equivalent
-- to the element classification hierarchy defined in the Asis package.
with A4G.Int_Knds;
package Asis.Extensions.Flat_Kinds is
type Flat_Element_Kinds is new A4G.Int_Knds.Internal_Element_Kinds
range Not_An_Element .. An_Exception_Handler;
-- This type provides the flat Element classification for using in ASIS
-- applications. The main reasons to define it as a type derived from
-- the type providing similar flat classification for implementation
-- purposes are to hide the implementation-specific values added to
-- the internal flat classification (they are of no use for applications)
-- and to simplify the possible maintenance problems by having only one
-- set of enumeration literals representing the flat Element
-- classification. The set of enumeration literals inherited by the
-- Flat_Element_Kinds type is given below as a "commented" copy of
-- a part of the declaration of the A4G.Int_Knds.Internal_Element_Kinds
-- type.
--
-- The way how the flat classification is obtained from the hierarchy is
-- strightforward: all the enumeration values of the ASIS Element_Kinds
-- type, which represent kinds having subordinate subkinds are recursively
-- replaced with the enumeration values of the subordinate kinds
-- (excluding Not_A_... starting values). A very few exceptions corresponds
-- to the situation where in the ASIS-defined Element classification we
-- have not hierarchy, but some kind of a net (for example, there is a
-- classification of access types applied bot to ordinary type definitions
-- and to formal type definitions. For such cases, the flat classification
-- introduces new (self-descriptive) names.
--
-- In the definition of Internal_Element_Kinds we keep most of the
-- documentation from the Element classification hierarchy as it is defined
-- in the Asis package, slightly reformatted to staicfy the GNAT coding
-- style.
--
-- Below is the commented copy of a part of the definition of the
-- Internal_Element_Kinds type.
----------------------------------------------------------
-- Element_Kinds Hierarchy, as defined by Asis package: --
----------------------------------------------------------
--
-- Element_Kinds -> Subordinate Kinds
---------------------------------------------------------------------
--
-- Key: Read "->" as "can be further categorized by its"
--
-- A_Pragma -> Pragma_Kinds
--
-- A_Defining_Name -> Defining_Name_Kinds
-- -> Operator_Kinds
--
-- A_Declaration -> Declaration_Kinds
-- -> Trait_Kinds
-- -> Declaration_Origin
-- -> Mode_Kinds
-- -> Default_Kinds
--
-- A_Definition -> Definition_Kinds
-- -> Trait_Kinds
-- -> Type_Kinds
-- -> Trait_Kinds
-- -> Formal_Type_Kinds
-- -> Trait_Kinds
-- -> Access_Type_Kinds
-- -> Root_Type_Kinds
-- -> Constraint_Kinds
-- -> Discrete_Range_Kinds
--
-- An_Expression -> Expression_Kinds
-- -> Operator_Kinds
-- -> Attribute_Kinds
--
-- An_Association -> Association_Kinds
--
-- A_Statement -> Statement_Kinds
--
-- A_Path -> Path_Kinds
--
-- A_Clause -> Clause_Kinds
-- -> Representation_Clause_Kinds
--
-- An_Exception_Handler
--
-------------------------------------------------------------------------
-- type Internal_Element_Kinds is
-- (Not_An_Element, -- Nil_Element
-- All the other Not_A_XXX values for subordinate kinds are not included
-- in the flat element classification - they just are not needed.
-------------------------------------------------------------
-- A_Pragma, -- Asis.Elements
-- Detailed classification for Asis.Element_Kinds (A_Pragma) literal,
-- corresponds to subtype Internal_Pragma_Kinds
------------------------------------------------------------
-- An_All_Calls_Remote_Pragma, -- E.2.3(4)
-- An_Asynchronous_Pragma, -- E.4.1(2)
-- An_Atomic_Pragma, -- C.6(2)
-- An_Atomic_Components_Pragma, -- C.6(2)
-- An_Attach_Handler_Pragma, -- C.3.1(3)
-- A_Controlled_Pragma, -- 13.11.3(2)
-- A_Convention_Pragma, -- B.1(4)
-- A_Discard_Names_Pragma, -- C.5(2),
-- An_Elaborate_Pragma, -- 10.2.1(19),
-- An_Elaborate_All_Pragma, -- 10.2.1(19)
-- An_Elaborate_Body_Pragma, -- 10.2.1(19)
-- An_Export_Pragma, -- B.1(4)
-- An_Import_Pragma, -- B.1(4)
-- An_Inline_Pragma, -- 6.3.2(2)
-- An_Inspection_Point_Pragma, -- H.3.2(2)
-- An_Interrupt_Handler_Pragma, -- C.3.1(1)
-- An_Interrupt_Priority_Pragma, -- D.1(4)
-- A_Linker_Options_Pragma, -- B.1(4),
-- A_List_Pragma, -- 2.8(20)
-- A_Locking_Policy_Pragma, -- D.3(2)
-- A_Normalize_Scalars_Pragma, -- H.1(2)
-- An_Optimize_Pragma, -- 2.8(20)
-- A_Pack_Pragma, -- 13.2(2)
-- A_Page_Pragma, -- 2.8(20)
-- A_Preelaborate_Pragma, -- 10.2.1(2)
-- A_Priority_Pragma, -- D.1(2)
-- A_Pure_Pragma, -- 10.2.1(13)
-- A_Queuing_Policy_Pragma, -- D.4(2)
-- A_Remote_Call_Interface_Pragma, -- E.2.3(2)
-- A_Remote_Types_Pragma, -- E.2.2(2)
-- A_Restrictions_Pragma, -- 13.12(2)
-- A_Reviewable_Pragma, -- H.3.1(2)
-- A_Shared_Passive_Pragma, -- E.2.1(2)
-- A_Storage_Size_Pragma, -- 13.3(62),
-- A_Suppress_Pragma, -- 11.5(3)
-- A_Task_Dispatching_Policy_Pragma, -- D.2.2(2)
-- A_Volatile_Pragma, -- C.6(2)
-- A_Volatile_Components_Pragma, -- C.6(2)
--
-- An_Implementation_Defined_Pragma, -- Vendor Appendix M
-- An_Unknown_Pragma, -- Unknown to the compiler.
------------------------------------------------------------
-- A_Defining_Name, -- Asis.Declarations
-- Detailed classification for Asis.Element_Kinds (A_Defining_Name)
-- literal, corresponds to subtype Internal_Defining_Name_Kinds
------------------------------------------------------------
-- A_Defining_Identifier, -- 3.1
-- A_Defining_Character_Literal, -- 3.5.1
-- A_Defining_Enumeration_Literal, -- 3.5.1
-- A_Defining_Operator_Symbol
-- Detailed classification for
-- Asis.Operator_Kinds (A_Defining_Operator_Symbol) literal,
-- corresponds to subtype Internal_Defining_Operator_Kinds
-- A_Defining_And_Operator, -- and
-- A_Defining_Or_Operator, -- or
-- A_Defining_Xor_Operator, -- xor
-- A_Defining_Equal_Operator, -- =
-- A_Defining_Not_Equal_Operator, -- /=
-- A_Defining_Less_Than_Operator, -- <
-- A_Defining_Less_Than_Or_Equal_Operator, -- <=
-- A_Defining_Greater_Than_Operator, -- >
-- A_Defining_Greater_Than_Or_Equal_Operator, -- >=
-- A_Defining_Plus_Operator, -- +
-- A_Defining_Minus_Operator, -- -
-- A_Defining_Concatenate_Operator, -- &
-- A_Defining_Unary_Plus_Operator, -- +
-- A_Defining_Unary_Minus_Operator, -- -
-- A_Defining_Multiply_Operator, -- *
-- A_Defining_Divide_Operator, -- /
-- A_Defining_Mod_Operator, -- mod
-- A_Defining_Rem_Operator, -- rem
-- A_Defining_Exponentiate_Operator, -- **
-- A_Defining_Abs_Operator, -- abs
-- A_Defining_Not_Operator, -- not
--
-- A_Defining_Expanded_Name,
-- 6.1 program_unit_name.defining_identifier
--
------------------------------------------------------------
-- A_Declaration, -- Asis.Declarations
-- Detailed classification for
-- Asis.Element_Kinds (A_Declaration) literal
-- corresponds to subtype Internal_Declaration_Kinds
------------------------------------------------------------
-- An_Ordinary_Type_Declaration, -- 3.2.1
-- A_Task_Type_Declaration, -- 3.2.1
-- A_Protected_Type_Declaration, -- 3.2.1
-- An_Incomplete_Type_Declaration, -- 3.2.1
-- A_Private_Type_Declaration, -- 3.2.1
-- A_Private_Extension_Declaration, -- 3.2.1
--
-- A_Subtype_Declaration, -- 3.2.2
--
-- A_Variable_Declaration, -- 3.3.1 -> Trait_Kinds
-- A_Constant_Declaration, -- 3.3.1 -> Trait_Kinds
-- A_Deferred_Constant_Declaration, -- 3.3.1 -> Trait_Kinds
-- A_Single_Task_Declaration, -- 3.3.1
-- A_Single_Protected_Declaration, -- 3.3.1
--
-- An_Integer_Number_Declaration, -- 3.3.2
-- A_Real_Number_Declaration, -- 3.3.2
--
-- An_Enumeration_Literal_Specification, -- 3.5.1
--
-- A_Discriminant_Specification, -- 3.7 -> Trait_Kinds
--
-- A_Component_Declaration, -- 3.8
--
-- A_Loop_Parameter_Specification, -- 5.5 -> Trait_Kinds
-- A_Generalized_Iterator_Specification, -- 5.5.2 -> Trait_Kinds
-- An_Element_Iterator_Specification, -- 5.5.2 -> Trait_Kinds
--
-- A_Procedure_Declaration, -- 6.1 -> Trait_Kinds
-- A_Function_Declaration, -- 6.1 -> Trait_Kinds
--
-- A_Parameter_Specification, -- 6.1 -> Trait_Kinds
-- -- -> Mode_Kinds
--
-- A_Procedure_Body_Declaration, -- 6.3
-- A_Function_Body_Declaration, -- 6.3
--
-- A_Package_Declaration, -- 7.1
-- A_Package_Body_Declaration, -- 7.2
--
-- An_Object_Renaming_Declaration, -- 8.5.1
-- An_Exception_Renaming_Declaration, -- 8.5.2
-- A_Package_Renaming_Declaration, -- 8.5.3
-- A_Procedure_Renaming_Declaration, -- 8.5.4
-- A_Function_Renaming_Declaration, -- 8.5.4
-- A_Generic_Package_Renaming_Declaration, -- 8.5.5
-- A_Generic_Procedure_Renaming_Declaration, -- 8.5.5
-- A_Generic_Function_Renaming_Declaration, -- 8.5.5
--
-- A_Task_Body_Declaration, -- 9.1
-- A_Protected_Body_Declaration, -- 9.4
--
-- An_Entry_Declaration, -- 9.5.2
-- An_Entry_Body_Declaration, -- 9.5.2
-- An_Entry_Index_Specification, -- 9.5.2
--
-- A_Procedure_Body_Stub, -- 10.1.3
-- A_Function_Body_Stub, -- 10.1.3
-- A_Package_Body_Stub, -- 10.1.3
-- A_Task_Body_Stub, -- 10.1.3
-- A_Protected_Body_Stub, -- 10.1.3
--
-- An_Exception_Declaration, -- 11.1
-- A_Choice_Parameter_Specification, -- 11.2
--
-- A_Generic_Procedure_Declaration, -- 12.1
-- A_Generic_Function_Declaration, -- 12.1
-- A_Generic_Package_Declaration, -- 12.1
--
-- A_Package_Instantiation, -- 12.3
-- A_Procedure_Instantiation, -- 12.3
-- A_Function_Instantiation, -- 12.3
--
-- A_Formal_Object_Declaration, -- 12.4 -> Mode_Kinds
-- A_Formal_Type_Declaration, -- 12.5
-- A_Formal_Procedure_Declaration, -- 12.6 -> Default_Kinds
-- A_Formal_Function_Declaration, -- 12.6 -> Default_Kinds
-- A_Formal_Package_Declaration, -- 12.7
-- A_Formal_Package_Declaration_With_Box, -- 12.7
--
------------------------------------------------------------
-- A_Definition, -- Asis.Definitions
--
-- Detailed classification for Asis.Element_Kinds (A_Definition)
-- literal, corresponds to subtype Internal_Definition_Kinds
------------------------------------------------------------
-- A_Type_Definition, -- 3.2.1 -> Type_Kinds
-- Detailed classification for Asis.Definition_Kinds (A_Type_Definition)
-- literal, corresponds to subtype Internal_Type_Kinds
-- A_Derived_Type_Definition, -- 3.4 -> Trait_Kinds
-- A_Derived_Record_Extension_Definition, -- 3.4 -> Trait_Kinds
--
-- An_Enumeration_Type_Definition, -- 3.5.1
--
-- A_Signed_Integer_Type_Definition, -- 3.5.4
-- A_Modular_Type_Definition, -- 3.5.4
--
-- A_Root_Type_Definition, -- 3.5.4(10), 3.5.6(4)
-- -> Root_Type_Kinds
-- Detailed classification for Asis.Type_Kinds (A_Root_Type_Definition)
-- literal, corresponds to subtype Internal_Root_Type_Kinds
-- A_Root_Integer_Definition, -- 3.5.4(9)
-- A_Root_Real_Definition, -- 3.5.6(2)
--
-- A_Universal_Integer_Definition, -- 3.5.4(10)
-- A_Universal_Real_Definition, -- 3.5.6(4)
-- A_Universal_Fixed_Definition, -- 3.5.6(4)
--
--
-- A_Floating_Point_Definition, -- 3.5.7
--
-- An_Ordinary_Fixed_Point_Definition, -- 3.5.9
-- A_Decimal_Fixed_Point_Definition, -- 3.5.9
--
-- An_Unconstrained_Array_Definition, -- 3.6
-- A_Constrained_Array_Definition, -- 3.6
--
-- A_Record_Type_Definition, -- 3.8 -> Trait_Kinds
-- A_Tagged_Record_Type_Definition, -- 3.8 -> Trait_Kinds
-- An_Access_Type_Definition, -- 3.10 -> Access_Type_Kinds
-- Detailed classification for
-- Asis.Type_Kinds (An_Access_Type_Definition) literal,
-- corresponds to subtype Internal_Access_Type_Kinds
-- A_Pool_Specific_Access_To_Variable, -- access subtype_indication
-- An_Access_To_Variable, -- access all subtype_indication
-- An_Access_To_Constant, -- access constant subtype_indication
--
-- An_Access_To_Procedure, -- access procedure
-- An_Access_To_Protected_Procedure, -- access protected procedure
-- An_Access_To_Function, -- access function
-- An_Access_To_Protected_Function, -- access protected function
-- A_Subtype_Indication, -- 3.2.2
-- A_Constraint, -- 3.2.2 -> Constraint_Kinds
-- Detailed classification for Asis.Definition_Kinds (A_Constraint)
-- literal, corresponds to subtype Internal_Constraint_Kinds
-- A_Range_Attribute_Reference, -- 3.2.2, 3.5
-- A_Simple_Expression_Range, -- 3.2.2, 3.5
-- A_Digits_Constraint, -- 3.2.2, 3.5.9
-- A_Delta_Constraint, -- 3.2.2, N.3
-- An_Index_Constraint, -- 3.2.2, 3.6.1
-- A_Discriminant_Constraint, -- 3.2.2
--
-- A_Component_Definition, -- 3.6
-- A_Discrete_Subtype_Definition, -- 3.6 -> Discrete_Range_Kinds
-- Detailed classification for
-- Asis.Definition_Kinds (A_Discrete_Subtype_Definition) literal,
-- corresponds to subtype Internal_Discrete_Subtype_Definition_Kinds
-- A_Discrete_Subtype_Indication_As_Subtype_Definition, -- 3.6.1, 3.2.2
-- A_Discrete_Range_Attribute_Reference_As_Subtype_Definition,
-- -- 3.6.1, 3.5
-- A_Discrete_Simple_Expression_Range_As_Subtype_Definition,
-- -- 3.6.1, 3.5
-- There is no syntactical difference between
-- A_Discrete_Subtype_Definition kinds and A_Discrete_Range kinds, the
-- difference is in the context in which they occur - the first defines
-- subtype in an array type definition, the second should corresponds to
-- some existing subtype in a range constraint
--
-- This is the case when in the ASIS-defined Element classification
-- we have a net instead of a hierarchy
-- A_Discrete_Range, -- 3.6.1 -> Discrete_Range_Kinds
-- Detailed classification for Asis.Definition_Kinds (A_Discrete_Range)
-- literal, corresponds to subtype Internal_Discrete_Range_Kinds
-- A_Discrete_Subtype_Indication, -- 3.6.1, 3.2.2
-- A_Discrete_Range_Attribute_Reference, -- 3.6.1, 3.5
-- A_Discrete_Simple_Expression_Range, -- 3.6.1, 3.5
--
--
-- An_Unknown_Discriminant_Part, -- 3.7
-- A_Known_Discriminant_Part, -- 3.7
--
-- A_Record_Definition, -- 3.8
-- A_Null_Record_Definition, -- 3.8
--
-- A_Null_Component, -- 3.8
-- A_Variant_Part, -- 3.8
-- A_Variant, -- 3.8
--
-- An_Others_Choice, -- 3.8.1, 4.3.1, 4.3.3, 11.2
--
-- A_Private_Type_Definition, -- 7.3 -> Trait_Kinds
-- A_Tagged_Private_Type_Definition, -- 7.3 -> Trait_Kinds
-- A_Private_Extension_Definition, -- 7.3 -> Trait_Kinds
--
-- A_Task_Definition, -- 9.1
-- A_Protected_Definition, -- 9.4
--
-- A_Formal_Type_Definition, -- 12.5 -> Formal_Type_Kinds
-- Detailed classification for
-- Asis.Definition_Kinds (A_Formal_Type_Definition) literal,
-- corresponds to subtype Internal_Formal_Type_Kinds
-- A_Formal_Private_Type_Definition, -- 12.5.1 -> Trait_Kinds
-- A_Formal_Tagged_Private_Type_Definition, -- 12.5.1 -> Trait_Kinds
--
-- A_Formal_Derived_Type_Definition, -- 12.5.1 -> Trait_Kinds
--
-- A_Formal_Discrete_Type_Definition, -- 12.5.2
--
-- A_Formal_Signed_Integer_Type_Definition, -- 12.5.2
-- A_Formal_Modular_Type_Definition, -- 12.5.2
--
-- A_Formal_Floating_Point_Definition, -- 12.5.2
--
-- A_Formal_Ordinary_Fixed_Point_Definition, -- 12.5.2
-- A_Formal_Decimal_Fixed_Point_Definition, -- 12.5.2
--
-- A_Formal_Unconstrained_Array_Definition, -- 12.5.3
-- A_Formal_Constrained_Array_Definition, -- 12.5.3
-- A_Formal_Access_Type_Definition, -- 12.5.4 -> Access_Type_Kinds
-- Detailed classification for
-- Asis.Definition_Kinds.Internal_Formal_Type_Kinds
-- (A_Formal_Access_Type_Definition) literal,
-- corresponds to subtype Internal_Formal_Access_Type_Kinds
-- A_Formal_Pool_Specific_Access_To_Variable,
-- -- access subtype_indication
-- A_Formal_Access_To_Variable, -- access all subtype_indication
-- A_Formal_Access_To_Constant, -- access constant subtype_indication
--
-- A_Formal_Access_To_Procedure, -- access procedure
-- A_Formal_Access_To_Protected_Procedure, -- access protected procedure
-- A_Formal_Access_To_Function, -- access function
-- A_Formal_Access_To_Protected_Function, -- access protected function
-- An_Aspect_Specification, -- Ada 2012
------------------------------------------------------------
-- An_Expression, -- Asis.Expressions
-- Detailed classification for Asis.Element_Kinds (An_Expression)
-- literal corresponds to subtype Internal_Expression_Kinds
------------------------------------------------------------
-- An_Integer_Literal, -- 2.4
-- A_Real_Literal, -- 2.4.1
-- A_String_Literal, -- 2.6
-- An_Identifier, -- 4.1
-- An_Operator_Symbol, -- 4.1
-- Detailed classification for
-- Asis.Expression_Kinds (An_Operator_Symbol) literal
-- corresponds to subtype Internal_Operator_Symbol_Kinds
-- An_And_Operator, -- and
-- An_Or_Operator, -- or
-- An_Xor_Operator, -- xor
-- An_Equal_Operator, -- =
-- A_Not_Equal_Operator, -- /=
-- A_Less_Than_Operator, -- <
-- A_Less_Than_Or_Equal_Operator, -- <=
-- A_Greater_Than_Operator, -- >
-- A_Greater_Than_Or_Equal_Operator, -- >=
-- A_Plus_Operator, -- +
-- A_Minus_Operator, -- -
-- A_Concatenate_Operator, -- &
-- A_Unary_Plus_Operator, -- +
-- A_Unary_Minus_Operator, -- -
-- A_Multiply_Operator, -- *
-- A_Divide_Operator, -- /
-- A_Mod_Operator, -- mod
-- A_Rem_Operator, -- rem
-- An_Exponentiate_Operator, -- **
-- An_Abs_Operator, -- abs
-- A_Not_Operator, -- not
--
-- A_Character_Literal, -- 4.1
-- An_Enumeration_Literal, -- 4.1
-- An_Explicit_Dereference, -- 4.1
-- A_Function_Call, -- 4.1
--
-- An_Indexed_Component, -- 4.1.1
-- A_Slice, -- 4.1.2
-- A_Selected_Component, -- 4.1.3
--
-- An_Attribute_Reference, -- 4.1.4
-- Detailed classification for
-- Asis.Expression_Kinds (An_Attribute_Reference) literal
-- corresponds to subtype Internal_Attribute_Reference_Kinds
-- An_Access_Attribute, -- 3.10.2(24), 3.10.2(32), K(2), K(4)
-- An_Address_Attribute, -- 13.3(11), J.7.1(5), K(6)
-- An_Adjacent_Attribute, -- A.5.3(48), K(8)
-- An_Aft_Attribute, -- 3.5.10(5), K(12)
-- An_Alignment_Attribute, -- 13.3(23), K(14)
-- A_Base_Attribute, -- 3.5(15), K(17)
-- A_Bit_Order_Attribute, -- 13.5.3(4), K(19)
-- A_Body_Version_Attribute, -- E.3(4), K(21)
-- A_Callable_Attribute, -- 9.9(2), K(23)
-- A_Caller_Attribute, -- C.7.1(14), K(25)
-- A_Ceiling_Attribute, -- A.5.3(33), K(27)
-- A_Class_Attribute, -- 3.9(14), 7.3.1(9), K(31), K(34)
-- A_Component_Size_Attribute, -- 13.3(69), K(36)
-- A_Compose_Attribute, -- A.5.3(24), K(38)
-- A_Constrained_Attribute, -- 3.7.2(3), J.4(2), K(42)
-- A_Copy_Sign_Attribute, -- A.5.3(51), K(44)
-- A_Count_Attribute, -- 9.9(5), K(48)
-- A_Definite_Attribute, -- 12.5.1(23), K(50)
-- A_Delta_Attribute, -- 3.5.10(3), K(52)
-- A_Denorm_Attribute, -- A.5.3(9), K(54)
-- A_Digits_Attribute, -- 3.5.8(2), 3.5.10(7), K(56), K(58)
-- An_Exponent_Attribute, -- A.5.3(18), K(60)
-- An_External_Tag_Attribute, -- 13.3(75), K(64)
-- A_First_Attribute, -- 3.5(12), 3.6.2(3), K(68), K(70)
-- A_First_Bit_Attribute, -- 13.5.2(3), K(72)
-- A_Floor_Attribute, -- A.5.3(30), K(74)
-- A_Fore_Attribute, -- 3.5.10(4), K(78)
-- A_Fraction_Attribute, -- A.5.3(21), K(80)
-- An_Identity_Attribute, -- 11.4.1(9), C.7.1(12), K(84), K(86)
-- An_Image_Attribute, -- 3.5(35), K(88)
-- An_Input_Attribute, -- 13.13.2(22), 13.13.2(32), K(92), K(96)
-- A_Last_Attribute, -- 3.5(13), 3.6.2(5), K(102), K(104)
-- A_Last_Bit_Attribute, -- 13.5.2(4), K(106)
-- A_Leading_Part_Attribute, -- A.5.3(54), K(108)
-- A_Length_Attribute, -- 3.6.2(9), K(117)
-- A_Machine_Attribute, -- A.5.3(60), K(119)
-- A_Machine_Emax_Attribute, -- A.5.3(8), K(123)
-- A_Machine_Emin_Attribute, -- A.5.3(7), K(125)
-- A_Machine_Mantissa_Attribute, -- A.5.3(6), K(127)
-- A_Machine_Overflows_Attribute, -- A.5.3(12), A.5.4(4), K(129), K(131)
-- A_Machine_Radix_Attribute, -- A.5.3(2), A.5.4(2), K(133), K(135)
-- A_Machine_Rounds_Attribute, -- A.5.3(11), A.5.4(3), K(137), K(139)
-- A_Max_Attribute, -- 3.5(19), K(141)
-- A_Max_Size_In_Storage_Elements_Attribute, -- 13.11.1(3), K(145)
-- A_Min_Attribute, -- 3.5(16), K(147)
-- A_Model_Attribute, -- A.5.3(68), G.2.2(7), K(151)
-- A_Model_Emin_Attribute, -- A.5.3(65), G.2.2(4), K(155)
-- A_Model_Epsilon_Attribute, -- A.5.3(66), K(157)
-- A_Model_Mantissa_Attribute, -- A.5.3(64), G.2.2(3), K(159)
-- A_Model_Small_Attribute, -- A.5.3(67), K(161)
-- A_Modulus_Attribute, -- 3.5.4(17), K(163)
-- An_Output_Attribute, -- 13.13.2(19), 13.13.2(29), K(165), K(169)
-- A_Partition_ID_Attribute, -- E.1(9), K(173)
-- A_Pos_Attribute, -- 3.5.5(2), K(175)
-- A_Position_Attribute, -- 13.5.2(2), K(179)
-- A_Pred_Attribute, -- 3.5(25), K(181)
-- A_Range_Attribute, -- 3.5(14), 3.6.2(7), K(187), K(189)
-- A_Read_Attribute, -- 13.13.2(6), 13.13.2(14), K(191), K(195)
-- A_Remainder_Attribute, -- A.5.3(45), K(199)
-- A_Round_Attribute, -- 3.5.10(12), K(203)
-- A_Rounding_Attribute, -- A.5.3(36), K(207)
-- A_Safe_First_Attribute, -- A.5.3(71), G.2.2(5), K(211)
-- A_Safe_Last_Attribute, -- A.5.3(72), G.2.2(6), K(213)
-- A_Scale_Attribute, -- 3.5.10(11), K(215)
-- A_Scaling_Attribute, -- A.5.3(27), K(217)
-- A_Signed_Zeros_Attribute, -- A.5.3(13), K(221)
-- A_Size_Attribute, -- 13.3(40), 13.3(45), K(223), K(228)
-- A_Small_Attribute, -- 3.5.10(2), K(230)
-- A_Storage_Pool_Attribute, -- 13.11(13), K(232)
-- A_Storage_Size_Attribute, -- 13.3(60), 13.11(14), J.9(2), K(234),
-- -- K(236)
-- A_Succ_Attribute, -- 3.5(22), K(238)
-- A_Tag_Attribute, -- 3.9(16), 3.9(18), K(242), K(244)
-- A_Terminated_Attribute, -- 9.9(3), K(246)
-- A_Truncation_Attribute, -- A.5.3(42), K(248)
-- An_Unbiased_Rounding_Attribute, -- A.5.3(39), K(252)
-- An_Unchecked_Access_Attribute, -- 13.10(3), H.4(18), K(256)
-- A_Val_Attribute, -- 3.5.5(5), K(258)
-- A_Valid_Attribute, -- 13.9.2(3), H(6), K(262)
-- A_Value_Attribute, -- 3.5(52), K(264)
-- A_Version_Attribute, -- E.3(3), K(268)
-- A_Wide_Image_Attribute, -- 3.5(28), K(270)
-- A_Wide_Value_Attribute, -- 3.5(40), K(274)
-- A_Wide_Width_Attribute, -- 3.5(38), K(278)
-- A_Width_Attribute, -- 3.5(39), K(280)
-- A_Write_Attribute, -- 13.13.2(3), 13.13.2(11), K(282), K(286)
--
-- An_Implementation_Defined_Attribute, -- Vendor Annex M
-- An_Unknown_Attribute,
--
-- A_Record_Aggregate, -- 4.3
-- An_Extension_Aggregate, -- 4.3
-- A_Positional_Array_Aggregate, -- 4.3
-- A_Named_Array_Aggregate, -- 4.3
--
-- An_And_Then_Short_Circuit, -- 4.4
-- An_Or_Else_Short_Circuit, -- 4.4
--
-- An_In_Range_Membership_Test, -- 4.4
-- A_Not_In_Range_Membership_Test, -- 4.4
-- An_In_Type_Membership_Test, -- 4.4
-- A_Not_In_Type_Membership_Test, -- 4.4
--
-- A_Null_Literal, -- 4.4
-- A_Parenthesized_Expression, -- 4.4
--
-- A_Type_Conversion, -- 4.6
-- A_Qualified_Expression, -- 4.7
--
-- An_Allocation_From_Subtype, -- 4.8
-- An_Allocation_From_Qualified_Expression, -- 4.8
--
------------------------------------------------------------
-- An_Association, -- Asis.Expressions
-- Detailed classification for Asis.Element_Kinds (An_Association)
-- literal corresponds to subtype Internal_Association_Kinds
------------------------------------------------------------
-- A_Pragma_Argument_Association, -- 2.8
-- A_Discriminant_Association, -- 3.7.1
-- A_Record_Component_Association, -- 4.3.1
-- An_Array_Component_Association, -- 4.3.3
-- A_Parameter_Association, -- 6.4
-- A_Generic_Association, -- 12.3
--
------------------------------------------------------------
-- A_Statement, -- Asis.Statements
-- Detailed classification for Asis.Element_Kinds (A_Statement) literal
-- corresponds to subtype Internal_Statement_Kinds
------------------------------------------------------------
-- A_Null_Statement, -- 5.1
-- An_Assignment_Statement, -- 5.2
-- An_If_Statement, -- 5.3
-- A_Case_Statement, -- 5.4
--
-- A_Loop_Statement, -- 5.5
-- A_While_Loop_Statement, -- 5.5
-- A_For_Loop_Statement, -- 5.5
-- A_Block_Statement, -- 5.6
-- An_Exit_Statement, -- 5.7
-- A_Goto_Statement, -- 5.8
--
-- A_Procedure_Call_Statement, -- 6.4
-- A_Return_Statement, -- 6.5
--
-- An_Accept_Statement, -- 9.5.2
-- An_Entry_Call_Statement, -- 9.5.3
--
-- A_Requeue_Statement, -- 9.5.4
-- A_Requeue_Statement_With_Abort, -- 9.5.4
--
-- A_Delay_Until_Statement, -- 9.6
-- A_Delay_Relative_Statement, -- 9.6
--
-- A_Terminate_Alternative_Statement, -- 9.7.1
--
-- A_Selective_Accept_Statement, -- 9.7.2
-- A_Timed_Entry_Call_Statement, -- 9.7.3
-- A_Conditional_Entry_Call_Statement, -- 9.7.3
-- An_Asynchronous_Select_Statement, -- 9.7.4
--
-- An_Abort_Statement, -- 9.8
-- A_Raise_Statement, -- 11.3
-- A_Code_Statement, -- 13.8
------------------------------------------------------------
-- Path_Kinds
-- Literals -- Ada RM
--
-- Detailed classification for Asis.Element_Kinds (A_Path) literal
-- corresponds to subtype Internal_Path_Kinds
------------------------------------------------------------
-- An_If_Path, -- 5.3:
-- if condition then
-- sequence_of_statements
-- An_Elsif_Path, -- 5.3:
-- elsif condition then
-- sequence_of_statements
-- An_Else_Path, -- 5.3, 9.7.1, 9.7.3:
-- else sequence_of_statements
-- A_Case_Path, -- 5.4:
-- when discrete_choice_list =>
-- sequence_of_statements
-- A_Select_Path, -- 9.7.1:
-- select [guard] select_alternative
-- 9.7.2, 9.7.3:
-- select entry_call_alternative
-- 9.7.4:
-- select triggering_alternative
-- An_Or_Path, -- 9.7.1:
-- or [guard] select_alternative
-- 9.7.2:
-- or delay_alternative
-- A_Then_Abort_Path, -- 9.7.4
-- then abort sequence_of_statements
------------------------------------------------------------
-- A_Clause, -- Asis.Clauses
-- Detailed classification for Asis.Element_Kinds (A_Clause) literal
-- corresponds to subtype Internal_Clause_Kinds
------------------------------------------------------------
-- A_Use_Package_Clause, -- 8.4
-- A_Use_Type_Clause, -- 8.4
-- A_With_Clause, -- 10.1.2
-- A_Representation_Clause, -- 13.1 -> Representation_Clause_Kinds
-- Detailed classification for
-- Asis.Clause_Kinds (A_Representation_Clause) literal,
-- corresponds to subtype Internal_Representation_Clause_Kinds
-- An_Attribute_Definition_Clause, -- 13.3.1
-- An_Enumeration_Representation_Clause, -- 13.4
-- A_Record_Representation_Clause, -- 13.5.3
-- An_At_Clause, -- N.7
--
-- A_Component_Clause, -- 13.5.3
--
------------------------------------------------------------
-- An_Exception_Handler, -- Asis.Statements
-- The rest of the A4G.Int_Knds.Internal_Element_Kinds values are the
-- special values added the ASIS implementation needs.
-- The subtype definitions below define ranges corresponding to the
-- positions (subordinate kinds) in the original Element kinds
-- classification hierarchy defined in the Asis package, as well as
-- some other ranges which may be useful for applications
subtype Flat_Pragma_Kinds is Flat_Element_Kinds
range An_All_Calls_Remote_Pragma .. An_Unknown_Pragma;
subtype Flat_Defining_Name_Kinds is Flat_Element_Kinds
range A_Defining_Identifier .. A_Defining_Expanded_Name;
subtype Flat_Defining_Operator_Kinds is Flat_Defining_Name_Kinds
range A_Defining_And_Operator .. A_Defining_Not_Operator;
subtype Flat_Declaration_Kinds is Flat_Element_Kinds range
An_Ordinary_Type_Declaration .. A_Formal_Package_Declaration_With_Box;
subtype A_Flat_Type_Declaration is Flat_Declaration_Kinds
range An_Ordinary_Type_Declaration .. A_Private_Extension_Declaration;
subtype A_Flat_Full_Type_Declaration is Flat_Declaration_Kinds
range An_Ordinary_Type_Declaration .. A_Protected_Type_Declaration;
subtype A_Flat_Object_Declaration is Flat_Declaration_Kinds
range A_Variable_Declaration .. A_Single_Protected_Declaration;
subtype A_Flat_Number_Declaration is Flat_Declaration_Kinds
range An_Integer_Number_Declaration .. A_Real_Number_Declaration;
subtype A_Flat_Renaming_Declaration is Flat_Declaration_Kinds
range An_Object_Renaming_Declaration ..
A_Generic_Function_Renaming_Declaration;
subtype A_Flat_Body_Stub is Flat_Declaration_Kinds
range A_Procedure_Body_Stub .. A_Protected_Body_Stub;
subtype A_Flat_Generic_Declaration is Flat_Declaration_Kinds
range A_Generic_Procedure_Declaration .. A_Generic_Package_Declaration;
subtype A_Flat_Generic_Instantiation is Flat_Declaration_Kinds
range A_Package_Instantiation .. A_Function_Instantiation;
subtype A_Flat_Formal_Declaration is Flat_Declaration_Kinds range
A_Formal_Object_Declaration .. A_Formal_Package_Declaration_With_Box;
subtype Flat_Definition_Kinds is Flat_Element_Kinds range
A_Derived_Type_Definition .. An_Aspect_Specification;
subtype Flat_Type_Kinds is Flat_Definition_Kinds
range A_Derived_Type_Definition .. An_Access_To_Protected_Function;
subtype Flat_Interface_Kinds is Flat_Type_Kinds range
An_Ordinary_Interface .. A_Synchronized_Interface;
subtype Flat_Access_Type_Kinds is Flat_Type_Kinds range
A_Pool_Specific_Access_To_Variable .. An_Access_To_Protected_Function;
subtype Flat_Access_To_Object_Definition is Flat_Access_Type_Kinds
range A_Pool_Specific_Access_To_Variable .. An_Access_To_Constant;
subtype Flat_Access_To_Subprogram_Definition is Flat_Access_Type_Kinds
range An_Access_To_Procedure .. An_Access_To_Protected_Function;
subtype Flat_Access_Definition_Kinds is Flat_Definition_Kinds
range An_Anonymous_Access_To_Variable ..
An_Anonymous_Access_To_Protected_Function;
subtype Flat_Root_Type_Kinds is Flat_Type_Kinds
range A_Root_Integer_Definition .. A_Universal_Fixed_Definition;
subtype Flat_Constraint_Kinds is Flat_Definition_Kinds
range A_Range_Attribute_Reference .. A_Discriminant_Constraint;
subtype Flat_Discrete_Subtype_Definition_Kinds is Flat_Definition_Kinds
range A_Discrete_Subtype_Indication_As_Subtype_Definition ..
A_Discrete_Simple_Expression_Range_As_Subtype_Definition;
subtype Flat_Discrete_Range_Kinds is Flat_Definition_Kinds range
A_Discrete_Subtype_Indication .. A_Discrete_Simple_Expression_Range;
subtype Flat_Formal_Type_Kinds is Flat_Definition_Kinds
range A_Formal_Private_Type_Definition ..
A_Formal_Access_To_Protected_Function;
subtype Flat_Formal_Interface_Kinds is Flat_Formal_Type_Kinds
range A_Formal_Ordinary_Interface .. A_Formal_Synchronized_Interface;
subtype Flat_Formal_Access_Type_Kinds is Flat_Formal_Type_Kinds
range A_Formal_Pool_Specific_Access_To_Variable ..
A_Formal_Access_To_Protected_Function;
subtype Flat_Association_Kinds is Flat_Element_Kinds
range A_Pragma_Argument_Association .. A_Generic_Association;
subtype Flat_Expression_Kinds is Flat_Element_Kinds
range An_Integer_Literal .. An_Allocation_From_Qualified_Expression;
subtype Flat_Operator_Symbol_Kinds is Flat_Expression_Kinds
range An_And_Operator .. A_Not_Operator;
subtype Flat_Attribute_Reference_Kinds is Flat_Expression_Kinds
range An_Access_Attribute .. An_Unknown_Attribute;
subtype Flat_Statement_Kinds is Flat_Element_Kinds
range A_Null_Statement .. A_Code_Statement;
subtype Flat_Loop_Statement is Flat_Statement_Kinds
range A_Loop_Statement .. A_For_Loop_Statement;
subtype Flat_Path_Kinds is Flat_Element_Kinds
range An_If_Path .. A_Then_Abort_Path;
subtype Flat_Expression_Path_Kinds is Flat_Element_Kinds
range An_If_Expression_Path .. An_Else_Expression_Path;
subtype Flat_Clause_Kinds is Flat_Element_Kinds
range A_Use_Package_Clause .. A_Component_Clause;
subtype Flat_Use_Clause_Kinds is Flat_Clause_Kinds
range A_Use_Package_Clause .. A_Use_All_Type_Clause;
subtype Flat_Context_Clause_Kinds is Flat_Clause_Kinds
range A_Use_Package_Clause .. A_With_Clause;
subtype Flat_Representation_Clause_Kinds is Flat_Clause_Kinds
range An_Attribute_Definition_Clause .. An_At_Clause;
---------------------------------------------------------------
-- Queries implementing the flat Element classification and --
-- mapping it onto the ASIS-defined classification hierarchy --
---------------------------------------------------------------
function Flat_Element_Kind
(Element : Asis.Element)
return Flat_Element_Kinds;
-- Returns the Flat_Element_Kinds value of Element. Not_An_Element is
-- returned if and only if Element is Nil_Element
-- The following functions convert the value of Flat_Element_Kinds
-- given as their argument into the corresponding value of the
-- corresponding Asis Element Classification subordinate kind.
-- Not_A_XXX is returned if the argument does not belong to the
-- corresponding subordinate kind of the Element classification
-- hierarchy (and, thereforo to the corresponding flat classification
-- subtype.
function Asis_From_Flat_Kind
(Flat_Kind : Flat_Element_Kinds)
return Asis.Element_Kinds;
function Pragma_Kind_From_Flat
(Flat_Kind : Flat_Element_Kinds)
return Asis.Pragma_Kinds;
function Defining_Name_Kind_From_Flat
(Flat_Kind : Flat_Element_Kinds)
return Asis.Defining_Name_Kinds;
function Declaration_Kind_From_Flat
(Flat_Kind : Flat_Element_Kinds)
return Asis.Declaration_Kinds;
function Definition_Kind_From_Flat
(Flat_Kind : Flat_Element_Kinds)
return Asis.Definition_Kinds;
function Type_Kind_From_Flat
(Flat_Kind : Flat_Element_Kinds)
return Asis.Type_Kinds;
function Formal_Type_Kind_From_Flat
(Flat_Kind : Flat_Element_Kinds)
return Asis.Formal_Type_Kinds;
function Access_Type_Kind_From_Flat
(Flat_Kind : Flat_Element_Kinds)
return Asis.Access_Type_Kinds;
function Root_Type_Kind_From_Flat
(Flat_Kind : Flat_Element_Kinds)
return Asis.Root_Type_Kinds;
function Constraint_Kind_From_Flat
(Flat_Kind : Flat_Element_Kinds)
return Asis.Constraint_Kinds;
function Discrete_Range_Kind_From_Flat
(Flat_Kind : Flat_Element_Kinds)
return Asis.Discrete_Range_Kinds;
function Expression_Kind_From_Flat
(Flat_Kind : Flat_Element_Kinds)
return Asis.Expression_Kinds;
function Operator_Kind_From_Flat
(Flat_Kind : Flat_Element_Kinds)
return Asis.Operator_Kinds;
function Attribute_Kind_From_Flat
(Flat_Kind : Flat_Element_Kinds)
return Asis.Attribute_Kinds;
function Association_Kind_From_Flat
(Flat_Kind : Flat_Element_Kinds)
return Asis.Association_Kinds;
function Statement_Kind_From_Flat
(Flat_Kind : Flat_Element_Kinds)
return Asis.Statement_Kinds;
function Path_Kind_From_Flat
(Flat_Kind : Flat_Element_Kinds)
return Asis.Path_Kinds;
function Clause_Kind_From_Flat
(Flat_Kind : Flat_Element_Kinds)
return Asis.Clause_Kinds;
function Representation_Clause_Kind_From_Flat
(Flat_Kind : Flat_Element_Kinds)
return Asis.Representation_Clause_Kinds;
-------------------------------------
-- Additional Classification items --
-------------------------------------
function Def_Operator_Kind
(Op_Kind : Flat_Element_Kinds)
return Flat_Element_Kinds;
-- this function "converts" the value of Flat_Operator_Symbol_Kinds
-- into the corresponding value of Flat_Defining_Operator_Kinds,
-- implementing the "mapping" between usage and defining occurences of tthe
-- operator signs. It is an error to call it to an Flat_Element_Kinds
-- value which does not belong to Flat_Operator_Symbol_Kinds
end Asis.Extensions.Flat_Kinds;
|
text/titleCase.applescript | adriannier/applescript-functions | 7 | 3031 | <filename>text/titleCase.applescript<gh_stars>1-10
(*
Converts a text to title case.
*)
log convertTextToTitleCase("In episode iv: MAC MINI finally speed bumped.")
log convertTextToTitleCase("DON'T EVEN TRIP, o.k.? (FEAT. <NAME>)")
on convertTextToTitleCase(aText)
script TitleCaser
property pInitialized : false
property pConvertRestToLowercase : true
property pLowercaseCharacters : {}
property pUppercaseCharacters : {}
property pWordsToKeepLowercase : {"a", "an", "and", "as", "at"} & ¬
{"but", "by"} & ¬
{"en"} & ¬
{"featuring", "feat.", "feat", "for"} & ¬
{"if", "in"} & ¬
{"of", "on", "or"} & ¬
{"the", "to"} & ¬
{"v", "v.", "via", "vs", "vs."}
property pSpecialPhrases : {"iPod touch", "Mac mini", "(featuring", "[featuring", "(feat.", "[feat.", "(feat", "[feat."}
property pSpecialWords : {"iBook", "iDVD", "iLife", "iMac", "iMovie", "iPhone", "iPhoto", "iPod", "iWeb", "iWork", "eMac", "eMail", "AT&T", "Q&A"}
property pWordAndPhraseAdditions : {"'s", "’s", "s'", "s’", "s", "es"}
-- Define characters that require the next character to be upper case
property pCharsCausingUppercaseForNextChar : {"\"", "'", "“", "‘", "(", "{", "[", "_"}
-- Define characters that are the last character of one word and require the next word to be upper case
property pLastCharsCausingUppercaseForNextWord : {":", ".", "?", "!"}
property pCharactersThatBreakWords : {":", "-", return}
on init()
-- Generate variations for special words
set originalSpecialWordsCount to count of pSpecialWords
repeat with i from 1 to count of pWordAndPhraseAdditions
repeat with j from 1 to originalSpecialWordsCount
set end of pSpecialWords to (item j of pSpecialWords & item i of pWordAndPhraseAdditions)
end repeat
end repeat
-- Generate variations for special phrases
set _originalSpecialPhrasesCount to count of pSpecialPhrases
repeat with i from 1 to count of pWordAndPhraseAdditions
repeat with j from 1 to _originalSpecialPhrasesCount
set end of pSpecialPhrases to (item j of pSpecialPhrases & item i of pWordAndPhraseAdditions)
end repeat
end repeat
-- Reverse the list of phrases so that "Mac minis" produces a positive match before "Mac mini" does.
set pSpecialPhrases to reverse of pSpecialPhrases
-- Define character sets
set lowercaseCharacters to characters of "abcdefghijklmnopqrstuvwxyz"
set uppercaseCharacters to characters of "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
-- Add special characters by using their ASCII numbers
-- Currently scripts encoded into applescript:// protocol URLs do not open in Script Editor when they contain high-ascii characters
set lowercaseSpecialCharacters to {138, 140, 136, 139, 135, 137, 190, 141, 142, 144, 145, 143, 146, 148, 149, 147, 150, 154, 155, 151, 153, 152, 207, 159, 156, 158, 157, 216}
set uppercaseSpecialCharacters to {128, 129, 203, 204, 231, 229, 174, 130, 131, 230, 232, 233, 234, 235, 236, 237, 132, 133, 205, 238, 239, 241, 206, 134, 242, 243, 244, 217}
-- Add special characters to the character lists
repeat with i from 1 to count of lowercaseSpecialCharacters
set end of lowercaseCharacters to ASCII character (item i of lowercaseSpecialCharacters)
end repeat
repeat with i from 1 to count of uppercaseSpecialCharacters
set end of uppercaseCharacters to ASCII character (item i of uppercaseSpecialCharacters)
end repeat
set pLowercaseCharacters to lowercaseCharacters
set pUppercaseCharacters to uppercaseCharacters
set pInitialized to true
end init
on convertText(aText)
if pInitialized is false then init()
-- Protect special phrases from being parsed
set aText to protectSpecialPhrasesInText(aText)
-- Convert string to list of words
set prvDlmt to text item delimiters
set text item delimiters to " "
set wordList to text items of aText
set text item delimiters to prvDlmt
set convertedWords to {}
set previousWord to false
repeat with i from 1 to count of wordList
try
set nextWord to item (i + 1) of wordList
on error
set nextWord to false
end try
set end of convertedWords to processWord(item i of wordList, previousWord, nextWord)
set previousWord to item i of wordList
end repeat
-- Convert list of words to string
set prvDlmt to text item delimiters
set text item delimiters to " "
set convertedText to convertedWords as text
set text item delimiters to prvDlmt
-- Restore special phrases
set convertedText to restoreSpecialPhrasesInText(convertedText)
return convertedText
end convertText
on protectSpecialPhrasesInText(aText)
set specialPhraseCount to count of pSpecialPhrases
set paddingLength to count of (specialPhraseCount as text)
repeat with i from 1 to specialPhraseCount
set specialPhrase to item i of pSpecialPhrases
set replacementIndex to padWithPrefix((i as text), paddingLength, "0")
set replacementCode to "<TCProtectedSpecialPhrase" & replacementIndex & ">"
set aText to snr(aText, specialPhrase, replacementCode)
end repeat
return aText
end protectSpecialPhrasesInText
on snr(aText, aPattern, aReplacement)
if aText does not contain aPattern then return aText
set prvDlmt to text item delimiters
try
set text item delimiters to aPattern
set tempList to text items of aText
set text item delimiters to aReplacement
set aText to tempList as text
end try
set text item delimiters to prvDlmt
return aText
end snr
on padWithPrefix(aText, aPadding, newWidth)
repeat newWidth - (count of aText) times
set aText to aPadding & aText
end repeat
return aText
end padWithPrefix
on restoreSpecialPhrasesInText(aText)
set prvDlmt to text item delimiters
set text item delimiters to "<TCProtectedSpecialPhrase"
set tempList to text items of aText
set text item delimiters to prvDlmt
set restoredItems to {item 1 of tempList}
if (count of tempList) > 1 then
repeat with i from 2 to count of tempList
set prvDlmt to text item delimiters
set text item delimiters to ">"
try
set phraseNumber to text item 1 of (item i of tempList) as integer
set theRemainder to text items 2 thru -1 of (item i of tempList) as text
on error
set phraseNumber to 0
end try
set text item delimiters to prvDlmt
if phraseNumber ≠ 0 then
set end of restoredItems to (item phraseNumber of pSpecialPhrases & theRemainder)
else
set end of restoredItems to (item i of tempList)
end if
end repeat
end if
set prvDlmt to text item delimiters
set text item delimiters to ""
set restoredItems to restoredItems as text
set text item delimiters to prvDlmt
return restoredItems
end restoreSpecialPhrasesInText
on processWord(aWord, previousWord, nextWord)
repeat with i from 1 to count of pCharactersThatBreakWords
if aWord contains (item i of pCharactersThatBreakWords) then
return breakWordUsingCharacter(aWord, item i of pCharactersThatBreakWords, previousWord, nextWord)
end if
end repeat
set action to actionForWord(aWord, previousWord, nextWord)
if action is "TCUppercaseFirstChar" then
set aWord to uppercaseFirstCharacterInText(aWord)
else if action is "TCReplaceWithSpecialWord" then
set aWord to replaceSpecialWord(aWord)
else if action is "TCUppercaseSecondChar" then
set aWord to uppercaseSecondCharacterInText(aWord)
else if action is "TCLowercase" then
set aWord to lowercaseText(aWord)
else if action is "TCUppercase" then
set aWord to uppercaseText(aWord)
else if action is "TCNoChange" then
-- Do nothing
else if pConvertRestToLowercase then
set aWord to lowercaseText(aWord)
end if
return aWord
end processWord
on actionForWord(aText, previousWord, nextWord)
if previousWord is "" then set previousWord to " "
if aText is "" then
return "TCNoChange"
else if aText starts with "<TCProtectedSpecialPhrase" then
return "TCNoChange"
else if aText is in pSpecialWords then
return "TCReplaceWithSpecialWord"
else if isRomanNumeral(aText) then
return "TCUppercase"
else if isAbbreviation(aText) then
return "TCUppercase"
else if isEmailAddress(aText) then
return "TCLowercase"
else if isProtocol(aText) then
return "TCLowercase"
else if containsInsideDot(aText) then
return "TCNoChange"
else if (character 1 of aText) is in pCharsCausingUppercaseForNextChar then
return "TCUppercaseSecondChar"
else if previousWord is false then
return "TCUppercaseFirstChar"
else if (character -1 of previousWord) is in pLastCharsCausingUppercaseForNextWord then
return "TCUppercaseFirstChar"
else if nextWord is false or nextWord is return then
return "TCUppercaseFirstChar"
else if aText is in pWordsToKeepLowercase then
return "TCLowercase"
else
return "TCUppercaseFirstChar"
end if
end actionForWord
on breakWordUsingCharacter(aWord, breakCharacter, previousWord, nextWord)
set prvDlmt to text item delimiters
set text item delimiters to breakCharacter
set subWords to text items of aWord
set text item delimiters to prvDlmt
set convertedWords to {}
repeat with i from 1 to count of subWords
try
set nextWord to item (i + 1) of subWords
on error
set nextWord to false
end try
set aWord to processWord(item i of subWords, previousWord, nextWord)
set previousWord to aWord
set end of convertedWords to aWord
end repeat
set prvDlmt to text item delimiters
set text item delimiters to breakCharacter
set aWord to convertedWords as text
set text item delimiters to prvDlmt
return aWord
end breakWordUsingCharacter
on containsInsideDot(aText)
if aText contains "." and character -1 of aText is not "." then
return true
else
return false
end if
end containsInsideDot
on isEmailAddress(aText)
if aText contains "@" and aText contains "." then
return true
else
return false
end if
end isEmailAddress:
on isProtocol(aText)
if aText contains "://" then
return true
else
return false
end if
end isProtocol:
on isAbbreviation(aText)
set allLetters to "abcdefghijklmnopqrstuvwxyz"
try
if character 1 of aText is in allLetters and character 2 of aText is "." and character 3 of aText is in allLetters and character 4 of aText is "." then return true
end try
return false
end isAbbreviation
on isRomanNumeral(aText)
set romanNumeralSymbols to {"I", "V", "X", "L", "C", "D", "M"}
repeat with i from 1 to count of characters of aText
if character i of aText is not in romanNumeralSymbols then return false
end repeat
return true
end isRomanNumeral:
on replaceSpecialWord(aText)
ignoring case
repeat with i from 1 to count of pSpecialWords
if item i of pSpecialWords is aText then exit repeat
end repeat
end ignoring
return item i of pSpecialWords
end replaceSpecialWord
on uppercaseFirstCharacterInText(aText)
if pConvertRestToLowercase then set aText to lowercaseText(aText)
set firstChar to uppercaseText(character 1 of aText)
if (count of characters in aText) < 2 then
set remainingChars to ""
else
set remainingChars to text 2 thru -1 of aText
end if
set aText to firstChar & remainingChars
return aText
end uppercaseFirstCharacterInText
on uppercaseSecondCharacterInText(aText)
if (count of characters in aText) < 2 then return aText
if pConvertRestToLowercase then set aText to lowercaseText(aText)
set firstChar to character 1 of aText
set secondChar to uppercaseText(character 2 of aText)
if (count of characters in aText) < 3 then
set remainingChars to ""
else
set remainingChars to text 3 thru -1 of aText
end if
set aText to firstChar & secondChar & remainingChars
return aText
end uppercaseSecondCharacterInText
on uppercaseText(aText)
set lowercaseCharacters to pLowercaseCharacters & (ASCII character 167)
set uppercaseCharacters to pUppercaseCharacters & "SS"
set prvDlmt to text item delimiters
-- Loop through every lower case character
repeat with i from 1 to count of lowercaseCharacters
considering case
if aText contains (item i of lowercaseCharacters) then
-- Delimit string by lower case character
set text item delimiters to (item i of lowercaseCharacters)
set tempList to text items of aText
-- Join list by upper case character
set text item delimiters to (item i of uppercaseCharacters)
set aText to tempList as text
end if
end considering
end repeat
set text item delimiters to prvDlmt
return aText
end uppercaseText
on lowercaseText(aText)
set lowercaseCharacters to pLowercaseCharacters
set uppercaseCharacters to pUppercaseCharacters
set prvDlmt to text item delimiters
-- Loop through every upper case character
repeat with i from 1 to count of uppercaseCharacters
considering case
if aText contains (item i of uppercaseCharacters) then
-- Delimit string by upper case character
set text item delimiters to (item i of uppercaseCharacters)
set tempList to text items of aText
-- Join list by lower case character
set text item delimiters to (item i of lowercaseCharacters)
set aText to tempList as text
end if
end considering
end repeat
set text item delimiters to prvDlmt
return aText
end lowercaseText
end script
tell TitleCaser to convertText(aText)
end convertTextToTitleCase |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/inline8_pkg2.ads | best08618/asylo | 7 | 23144 | <reponame>best08618/asylo<gh_stars>1-10
package Inline8_Pkg2 is
generic
D : Integer;
function Calc (A : Integer) return Integer;
end Inline8_Pkg2;
|
programs/oeis/196/A196661.asm | karttu/loda | 1 | 26572 | <reponame>karttu/loda
; A196661: Expansion of (1-2x)/(1-7x).
; 1,5,35,245,1715,12005,84035,588245,4117715,28824005,201768035,1412376245,9886633715,69206436005,484445052035,3391115364245,23737807549715,166164652848005,1163152569936035,8142067989552245,56994475926865715
mov $1,7
pow $1,$0
mul $1,5
div $1,14
mul $1,2
add $1,1
|
Dino Game.asm | DADi590/Chrome-Dino-Game-in-Assembly | 0 | 6155 | <reponame>DADi590/Chrome-Dino-Game-in-Assembly
; Copyright 2021 DADi590
;
; Licensed to the Apache Software Foundation (ASF) under one
; or more contributor license agreements. See the NOTICE file
; distributed with this work for additional information
; regarding copyright ownership. The ASF licenses this file
; to you under the Apache License, Version 2.0 (the
; "License"); 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.
; Main note: this was tested with MASM 9.00.21022.08 and passed from OBJ to EXE with LINK 5.60.339 Dec 5 1994, so it
; can be compiled with it.
; Also works on a 32 bit Windows - except INT 86h doesn't seem to be emulated on Windows 7 Ultimate x86, at least (the
; program won't slow down, it's at maximum speed).
; Note: should also be compatible with MAS 6.15 (freely available from Microsoft's website - which comes with the LINK
; that was used here), since we didn't use directives newer than those used with MASM 6.
name "ProjF_AC" ; Deprecated as of MASM something, but EMU8086 is outdated (old version of FASM), so this is still used
; there.
; Small note: not much attention was paied to the stack, so probably there are bugs on that. Sooner or later the stack
; may get full because we're not clearing it in all places we should. A bit more time would be needed to transform the
; function calls into jumps or put more "mov sp, bp / push bp".
; Another small note: already happened twice a bush coming out of nowhere in the beginning of the screen --> that's not
; supposed to happen, because the vector of random has values from 80 to 255, not from 0 to 255...
; No idea hot to fix that. Should even be happening hahaha.
; And another small note: the music works only outside the emulator. It doesn't recognize a call to a custom segment or
; something like that. So with sound, the program must be assembled with MASM.
.8086
.model small
.stack 100h
.data
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Drawing arrays
;DRAW_DATA_TEMP db 0, 0, 0, 0, 0, 0
; Dinossaur (head)
DRAW_DATA_DINO_ORIGINAL db 12, 0, 21, 02, 00001100b, "#", 07
DRAW_DATA_DINOSSAUR db 12, 0, 21, 02, 00001100b, "#", 07
X_DRAW_DINOSSAUR db 00, 01, 02,02, 03, 04,04, 05,05, 06,06, 07
T_BEGIN_DRAW_DINOSSAUR db 00, -1, -01,1, -1, -1,03, -1,03, -1,03, 00
TIMES_WRITE_Y_DRAW_DINOSSAUR db 04, 05, 01,03, 05, 03,01, 03,01, 03,01, 02
; Dinossaur (head)
; Big bush
DRAW_DATA_BUSH1_ORIGINAL db 03, 0, 16, 200, 00001010b, "#", 03
DRAW_DATA_BUSH1 db 03, 0, 16, 200, 00001010b, "#", 03
X_DRAW_BUSH1 db 00, 01, 02
T_BEGIN_DRAW_BUSH1 db 00, 00, 00
TIMES_WRITE_Y_DRAW_BUSH1 db 09, 09, 09
; Bug bush
; Small bush
DRAW_DATA_BUSH2_ORIGINAL db 03, 0, 19, 140, 00001010b, "#", 03
DRAW_DATA_BUSH2 db 03, 0, 19, 140, 00001010b, "#", 03
X_DRAW_BUSH2 db 00, 01, 02
T_BEGIN_DRAW_BUSH2 db 00, 00, 00
TIMES_WRITE_Y_DRAW_BUSH2 db 06, 06, 06
; Small bush
; Bird
DRAW_DATA_BIRD_ORIGINAL db 14, 0, 8, 80, 00001110b, "#", 14
DRAW_DATA_BIRD db 14, 0, 8, 80, 00001110b, "#", 14
X_DRAW_BIRD db 00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13
T_BEGIN_DRAW_BIRD db 00, 00, -1, -2, 01, -5, -4, -2, -2, -1, 00, 00, 00, 00
TIMES_WRITE_Y_DRAW_BIRD db 01, 01, 02, 04, 01, 07, 07, 05, 05, 04, 02, 01, 01, 01
; Bird
; GAME OVER
DRAW_DATA_GAMEOVER db 105, 0, 9, 05, 11001010b, " ", 0
X_DRAW_GAMEOVER db 00, 01, 02,02, 03,03, 04,04, 05,05,05, 06,06, 07,07, 08, 09, 10, 11, 12,12, 13,13, 14,14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27
db 28,28,28, 29,29,29, 30,30,30, 31,31, 32,32, 33, 34, 35, 36, 37, 38, 39, 40,40, 41,41, 42,42, 43,43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53
db 54, 55, 56, 57,57,57, 58,58,58, 59,59,59, 60,60, 61,61, 62, 63, 64, 65,65, 66,66, 67,67, 68,68, 69,69
T_BEGIN_DRAW_GAMEOVER db 02, 01, 00,05, 00,06, 00,06, 00,03,06, 00,03, 00,03, 01, 00, 02, 01, 00,04, 00,04, 00,04, 01, 02, 00, 00, 00, 01, 02, 01, 00, 00, 00, 00, 00
db 00,03,06, 00,03,06, 00,03,06, 00,06, 00,06, 00, 00, 00, 00, 00, 01, 00, 00,06, 00,06, 00,06, 00,06, 00, 01, 00, 00, 00, 03, 04, 03, 00, 00
db 00, 00, 00, 00,03,06, 00,03,06, 00,03,06, 00,06, 00,06, 00, 00, 00, 00,04, 00,04, 00,03, 00,05, 01,06
TIMES_WRITE_Y_DRAW_GAMEOVER db 03, 05, 02,02, 01,01, 01,01, 01,01,01, 01,04, 01,04, 01, 00, 05, 06, 03,01, 02,01, 03,01, 06, 05, 00, 07, 07, 02, 02, 02, 07, 07, 00, 07, 07
db 01,01,01, 01,01,01, 01,01,01, 01,01, 01,01, 00, 00, 00, 00, 00, 05, 07, 01,01, 01,01, 01,01, 01,01, 07, 05, 00, 04, 05, 03, 03, 03, 05, 04
db 00, 07, 07, 01,01,01, 01,01,01, 01,01,01, 01,01, 01,01, 00, 07, 07, 01,01, 01,02, 01,04, 04,02, 03,01
; GAME OVER
; START
DRAW_DATA_START db 55, 0, 08, 20, 10101100b, " ", 0
X_DRAW_START db 00,00, 01,01, 02,02,02, 03,03,03, 04,04,04, 05,05, 06,06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17,17, 18,18, 19,19, 20, 21, 22, 23, 24
db 25,25, 26,26, 27,27, 28,28, 29,29, 30, 31, 32, 33, 34, 35, 36
T_BEGIN_DRAW_START db 01,05, 00,05, 00,03,06, 00,03,06, 00,03,06, 00,03, 01,04, 00, 00, 00, 00, 00, 00, 00, 00, 02, 01, 00,04, 00,04, 00,04, 01, 02, 00, 00, 00
db 00,04, 00,04, 00,03, 00,05, 01,06, 00, 00, 00, 00, 00, 00, 00
TIMES_WRITE_Y_DRAW_START db 02,01, 04,02, 01,01,01, 01,01,01, 01,01,01, 02,04, 01,02, 00, 02, 02, 07, 07, 02, 02, 00, 05, 06, 03,01, 02,01, 03,01, 06, 05, 00, 07, 07
db 01,01, 01,02, 01,04, 04,02, 03,01, 00, 02, 02, 07, 07, 02, 02
; START
; DINO GAME - unused
DRAW_DATA_DINO_GAME db 91, 0, 15, 01
X_DRAW_DINO_GAME db 00, 01, 02,02, 03,03, 04,04, 05,05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,22, 23,23, 24,24, 25,25, 26, 27, 28, 29
db 30, 31, 32, 33, 34,34, 35,35, 36,36, 37,37,37, 38,38, 39,39, 40, 41, 42, 43, 44,44, 45,45, 46,46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57
db 58, 59, 60,60,60, 61,61,61, 62,62,62, 63,63, 64,64
T_BEGIN_DRAW_DINO_GAME db 00, 00, 00,06, 00,06, 00,06, 01,05, 02, 00, 00, 00, 00, 00, 00, 01, 02, 03, 04, 00, 00, 00, 01, 00, 00,06, 00,06, 00,06, 00,06, 00, 01, 00, 00
db 00, 00, 02, 01, 00,05, 00,06, 00,06, 00,03,06, 00,03, 00,03, 01, 00, 02, 01, 00,04, 00,04, 00,04, 01, 02, 00, 00, 00, 01, 02, 01, 00, 00, 00
db 00, 00, 00,03,06, 00,03,06, 00,03,06, 00,06, 00,06
TIMES_WRITE_Y_DRAW_DINO_GAME db 07, 07, 01,01, 01,01, 01,01, 01,01, 03, 00, 07, 07, 00, 07, 07, 01, 01, 01, 01, 07, 07, 00, 05, 07, 01,01, 01,01, 01,01, 01,01, 07, 05, 00, 00
db 00, 00, 03, 05, 02,02, 01,01, 01,01, 01,01,01, 01,04, 01,04, 01, 00, 05, 06, 03,01, 02,01, 03,01, 06, 05, 00, 07, 07, 02, 02, 02, 07, 07, 00
db 07, 07, 01,01,01, 01,01,01, 01,01,01, 01,01, 01,01
; DINO GAME - unused
; Dinossaur (head) - but on the main menu
DRAW_DATA_DINOSSAUR_MAIN_MENU db 36, 0, 16, 05, 10011111b, " ", 0
X_DRAW_DINOSSAUR_MAIN_MENU db 00, 01, 02,02, 03,03, 04,04, 05,05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,22, 23,23, 24,24, 25,25, 26, 27
T_BEGIN_DRAW_DINOSSAUR_MAIN_MENU db 00, 00, 00,06, 00,06, 00,06, 01,05, 02, 00, 00, 00, 00, 00, 00, 01, 02, 03, 04, 00, 00, 00, 01, 00, 00,06, 00,06, 00,06, 00,06, 00, 01
TIMES_WRITE_Y_DRAW_DINOSSAUR_MAIN_MENU db 07, 07, 01,01, 01,01, 01,01, 01,01, 03, 00, 07, 07, 00, 07, 07, 01, 01, 01, 01, 07, 07, 00, 05, 07, 01,01, 01,01, 01,01, 01,01, 07, 05
; Dinossaur (head) - but on the main menu
; GAME
DRAW_DATA_GAME db 51, 0, 10, 42, 10011111b, " ", 0
X_DRAW_GAME db 00, 01, 02,02, 03,03, 04,04, 05,05,05, 06,06, 07,07, 08, 09, 10, 11, 12,12, 13,13, 14,14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,28,28
db 29,29,29, 30,30,30, 31,31, 32,32
T_BEGIN_DRAW_GAME db 02, 01, 00,05, 00,06, 00,06, 00,03,06, 00,03, 00,03, 01, 00, 02, 01, 00,04, 00,04, 00,04, 01, 02, 00, 00, 00, 01, 02, 01, 00, 00, 00, 00, 00, 00,03,06
db 00,03,06, 00,03,06, 00,06, 00,06
TIMES_WRITE_Y_DRAW_GAME db 03, 05, 02,02, 01,01, 01,01, 01,01,01, 01,04, 01,04, 01, 00, 05, 06, 03,01, 02,01, 03,01, 06, 05, 00, 07, 07, 02, 02, 02, 07, 07, 00, 07, 07, 01,01,01
db 01,01,01, 01,01,01, 01,01, 01,01
; GAME
; Drawing arrays
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; PROCEDURES
JUMP_DATA_DINOSSAUR_ORIGINAL db 0, 0, 0, 0
JUMP_DATA_DINOSSAUR db 0, 0, 0, 0
DRAW_ERASE_FIGURE_data dw 0000h, 0000h, 0000h, 0000h, 0;, "#", 00001111b
ADVANCE_SCENERARIO_data_vector_positions_x_random dw 1055, 0
ADVANCE_SCENERARIO_positions_x_random db 172, 104, 95, 182, 126, 97, 96, 203, 152, 149, 80, 139, 122, 157, 209, 158, 249, 163, 237, 109, 194, 181, 98, 125, 153, 193, 120, 251, 189, 255, 226, 222, 179, 202, 112, 252, 228, 148, 200, 254, 239, 178, 85, 135, 171
db 210, 121, 211, 205, 92, 102, 188, 216, 165, 246, 89, 204, 88, 197, 115, 142, 111, 234, 105, 133, 207, 177, 156, 150, 187, 151, 247, 123, 119, 86, 108, 170, 143, 81, 128, 176, 236, 218, 232, 175, 103, 227, 223, 248, 230, 214
db 199, 124, 106, 217, 131, 241, 213, 174, 117, 107, 186, 136, 183, 225, 167, 191, 140, 90, 215, 113, 118, 184, 116, 220, 84, 82, 137, 160, 253, 91, 180, 212, 147, 130, 93, 155, 196, 192, 233, 94, 83, 243, 166, 132, 161, 129
db 221, 159, 145, 154, 185, 162, 146, 195, 250, 127, 169, 168, 110, 231, 198, 134, 99, 238, 206, 245, 240, 219, 138, 208, 100, 190, 144, 224, 244, 201, 173, 235, 141, 229, 87, 164, 114, 101, 242, 172, 160, 181, 191, 244, 115, 234
db 206, 90, 95, 130, 123, 143, 246, 103, 229, 194, 254, 161, 134, 214, 138, 226, 222, 245, 117, 135, 232, 133, 165, 184, 88, 240, 235, 162, 182, 231, 127, 237, 210, 152, 220, 252, 171, 215, 144, 241, 247, 251, 175, 196, 96, 159
db 86, 208, 190, 198, 225, 174, 238, 255, 148, 120, 118, 216, 147, 239, 164, 186, 122, 156, 99, 155, 178, 207, 157, 223, 145, 150, 183, 132, 221, 106, 94, 200, 129, 109, 121, 179, 248, 195, 108, 83, 211, 253, 219, 91, 205, 89
db 202, 158, 80, 199, 169, 81, 151, 153, 176, 110, 224, 92, 213, 188, 124, 173, 97, 189, 209, 243, 185, 204, 116, 249, 154, 227, 107, 168, 140, 136, 228, 131, 166, 87, 218, 236, 142, 217, 170, 93, 119, 163, 114, 187, 146, 201
db 212, 100, 192, 177, 137, 233, 126, 180, 105, 112, 128, 104, 193, 167, 102, 125, 84, 111, 139, 203, 250, 85, 230, 82, 113, 98, 141, 197, 101, 149, 177, 205, 160, 179, 248, 255, 209, 87, 118, 236, 194, 207, 201, 170, 138, 123
db 133, 221, 152, 119, 182, 229, 115, 157, 159, 245, 185, 193, 144, 217, 214, 134, 204, 113, 234, 156, 249, 117, 188, 184, 84, 222, 235, 112, 104, 243, 158, 89, 246, 150, 226, 242, 253, 165, 190, 108, 146, 186, 101, 254, 141, 191
db 147, 228, 181, 213, 251, 163, 128, 225, 239, 208, 211, 137, 145, 110, 187, 241, 206, 130, 196, 216, 240, 126, 149, 197, 143, 106, 161, 90, 199, 96, 135, 97, 148, 231, 136, 86, 250, 127, 154, 167, 153, 233, 218, 98, 223, 219
db 238, 155, 100, 227, 94, 82, 173, 83, 200, 93, 120, 131, 107, 198, 85, 224, 88, 116, 168, 109, 210, 175, 237, 124, 111, 169, 139, 232, 171, 166, 176, 183, 230, 162, 95, 129, 140, 164, 189, 80, 247, 195, 121, 172, 151, 174
db 180, 192, 103, 125, 132, 92, 203, 99, 202, 105, 122, 81, 244, 178, 252, 142, 102, 215, 220, 212, 114, 91, 97, 206, 252, 141, 177, 179, 205, 248, 154, 229, 183, 225, 186, 112, 81, 171, 219, 153, 201, 166, 122, 223, 181, 106
db 129, 218, 109, 176, 189, 208, 145, 149, 168, 134, 237, 182, 167, 231, 175, 151, 84, 180, 142, 190, 82, 212, 158, 140, 105, 191, 195, 86, 118, 104, 246, 245, 157, 188, 100, 170, 102, 146, 98, 222, 91, 120, 136, 244, 164, 243
db 148, 87, 95, 240, 119, 194, 235, 228, 200, 117, 174, 202, 96, 253, 165, 234, 85, 172, 178, 161, 83, 111, 185, 94, 192, 230, 220, 135, 204, 247, 159, 80, 249, 88, 187, 196, 143, 251, 131, 101, 93, 173, 236, 147, 139, 241
db 90, 116, 113, 193, 215, 216, 125, 239, 133, 108, 217, 184, 127, 138, 110, 211, 160, 103, 238, 114, 107, 92, 121, 221, 132, 156, 99, 162, 232, 214, 169, 203, 255, 163, 155, 198, 199, 89, 137, 123, 209, 233, 130, 213, 254, 152
db 227, 150, 224, 250, 128, 207, 124, 144, 126, 242, 115, 226, 210, 197, 222, 102, 221, 200, 198, 224, 121, 244, 181, 133, 164, 241, 252, 243, 255, 127, 151, 140, 81, 191, 118, 98, 138, 82, 215, 225, 150, 188, 249, 220, 120, 174
db 160, 167, 245, 185, 149, 106, 227, 111, 84, 187, 210, 155, 240, 178, 157, 152, 144, 122, 168, 93, 248, 199, 175, 238, 107, 226, 192, 203, 163, 96, 208, 137, 179, 139, 236, 216, 124, 86, 158, 89, 104, 91, 205, 197, 156, 129
db 126, 88, 100, 108, 228, 172, 99, 143, 195, 109, 113, 92, 209, 234, 239, 206, 134, 162, 154, 207, 161, 183, 146, 201, 153, 141, 119, 204, 233, 148, 186, 223, 214, 85, 90, 232, 235, 95, 132, 97, 182, 242, 230, 114, 131, 237
db 101, 211, 105, 184, 128, 253, 247, 171, 250, 219, 246, 136, 218, 194, 116, 212, 229, 173, 103, 112, 254, 87, 176, 110, 142, 169, 177, 159, 147, 130, 83, 231, 117, 193, 94, 202, 251, 123, 213, 135, 80, 115, 125, 180, 145, 217
db 170, 166, 189, 165, 190, 196, 249, 142, 141, 214, 220, 106, 189, 97, 116, 105, 158, 204, 111, 229, 88, 170, 83, 153, 89, 81, 155, 184, 95, 195, 212, 104, 80, 165, 183, 231, 129, 143, 242, 245, 110, 117, 182, 166, 145, 124
db 235, 251, 177, 186, 178, 223, 132, 85, 221, 86, 199, 248, 252, 82, 238, 222, 98, 224, 208, 176, 144, 205, 255, 109, 226, 171, 190, 202, 188, 239, 84, 93, 115, 228, 92, 173, 151, 118, 254, 128, 119, 157, 137, 227, 139, 101
db 253, 172, 219, 156, 209, 232, 185, 121, 194, 206, 169, 187, 179, 96, 135, 152, 180, 244, 241, 103, 149, 233, 213, 90, 225, 198, 247, 114, 211, 136, 250, 87, 150, 127, 203, 174, 207, 191, 146, 216, 100, 91, 167, 246, 162, 201
db 161, 125, 130, 147, 107, 120, 134, 196, 236, 138, 113, 181, 234, 131, 164, 218, 133, 175, 243, 192, 168, 154, 112, 126, 99, 200, 163, 197, 122, 123, 160, 102, 217, 140, 215, 210, 237, 230, 148, 108, 94, 159, 240, 193
;ADVANCE_SCENERARIO_positions_x_random db 80, 80, 80, 140, 240, 80, 240, 140, 140, 140, 80, 80, 240, 80, 140, 140, 250, 140, 250, 80, 80, 80, 250, 140, 240, 140, 80, 140, 240, 140, 140, 140, 240, 80, 250, 80, 250, 140, 140, 250, 250, 80, 80, 140, 80, 80, 80, 140
;ADVANCE_SCENERARIO_positions_x_random_cont db 250, 250, 80, 80, 250, 140, 80, 250, 80, 240, 240, 240, 240, 80, 240, 80, 140, 250, 240, 140, 250, 250, 140, 250, 250, 250, 140, 240, 240, 250, 240, 80, 140, 240, 240, 80, 80, 240, 250, 140, 80, 250, 240, 250, 240, 80, 240, 80
;ADVANCE_SCENERARIO_positions_x_random_cont_2 db 250, 140, 80, 250
MAIN_MENU_begin_game db "1 - Being game", "$"
MAIN_MENU_instructions db "$";"2 - Instructions", "$"
MAIN_MENU_exit db "3 - Exit", "$"
; PROCEDURES
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
SCORE_STR db "Score: ", "$"
SCORE dw 0, 0, 0
sb16_environment db "A220 I7 D1 H5 T6", 0
.code
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; MACROS
LOAD_FIGURE_FUNCTION macro vector1, vector2, vector3, vector4
push bp
mov bp, sp
;push ax
push bx
;push cx
;push dx
;push si
;push di
lea bx, vector1
mov DRAW_ERASE_FIGURE_data[2*0], bx
lea bx, vector2
mov DRAW_ERASE_FIGURE_data[2*1], bx
lea bx, vector3
mov DRAW_ERASE_FIGURE_data[2*2], bx
lea bx, vector4
mov DRAW_ERASE_FIGURE_data[2*3], bx
;pop di
;pop si
;pop dx
;pop cx
pop bx
;pop ax
mov sp, bp
pop bp
endm
CLEAR_SCREAN macro
push bp
mov bp, sp
push ax
;push bx
;push cx
;push dx
;push si
;push di
; To clear the screen, all there is to do is reset the video mode.
; set video mode
mov ah, 0 ; ou mov ah, 0 (para por tudo a zeros e depois change a parte inferior)
mov al, 03h ; text mode 80x25, 16 colors, 8 pages (ah=0, al=3)
int 10h ; do it!
;pop di
;pop si
;pop dx
;pop cx
;pop bx
pop ax
mov sp, bp
pop bp
endm
COPY_ARRAY macro source, destination, length
LOCAL COPY_ARRAY_loop1
push bp
mov bp, sp
push ax
push bx
;push cx
push dx
push si
;push di
mov si, 1
COPY_ARRAY_loop1:
lea bx, source
mov dl, byte ptr [bx+si-1]
lea bx, destination
mov byte ptr [bx+si-1], dl
inc si
cmp si, length
jne COPY_ARRAY_loop1
;pop di
pop si
pop dx
;pop cx
pop bx
pop ax
mov sp, bp
pop bp
endm
SUM_32BIT macro
; To sum a number in DX:AX and another one in CX:BX.
; The add instruction adds the two values and sets the C (carry) bit to 1 or 0 depending on whether there was a carry or not.
; The adc instruction adds the two values plus the value of the carry bit (and then sets the carry bit again).
; In this way, you can add values of any size by continuing with more adc instructions.
; Add the least significant bytes first, keep the carry. Add the most significant bytes considering the carry from LSBs.
add ax, bx
adc dx, cx
endm
; MACROS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
START:
mov ax, @data
mov ds, ax
; We used direct writing to the memory because it's faster than asking BIOS to write on the screen
;mov ax, 0A000h ; Endereço da placa VGA no modo gráfico
mov ax, 0B800h ; Endereço da placa VGA no modo de texto
mov es, ax
; set video mode
mov ah, 0 ; or mov ah, 0 (to put all to zeroes and then change the inferior part)
mov al, 03h ; text mode 80x25, 16 colors, 8 pages (ah=0, al=3)
int 10h ; do it!
; cancel blinking and enable all 16 colors:
mov ah, 10h
mov al, 03h
mov bx, 0
int 10h
; Prepare the speakers
mov ax, 10110110b
out 43h, ax
; Prepare Sound Blaster 16
; Note: the string came from executing the command "set blaster" on DOSBox
mov bx, 2
mov dx, ds
lea ax, sb16_environment
call driver:ctmidi_drv
; Initialize Sound Blaster 16
mov bx, 3
call driver:ctmidi_drv
jmp MAIN_MENU
;jmp end
begin_game:
CLEAR_SCREAN
LOAD_FIGURE_FUNCTION DRAW_DATA_START X_DRAW_START T_BEGIN_DRAW_START TIMES_WRITE_Y_DRAW_START
mov ax, 0
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
mov cx, 0020h
mov dx, 0000h
mov ah, 86h
int 15h
LOAD_FIGURE_FUNCTION DRAW_DATA_START X_DRAW_START T_BEGIN_DRAW_START TIMES_WRITE_Y_DRAW_START
mov ax, 0
mov dl, 1
call DRAW_ERASE_FIGURE_MAIN
mov ah, 02h
mov dh, 1
mov dl, 60
mov bh, 0
int 10h
mov ah, 09h
lea dx, SCORE_STR
int 21h
; Activate the columns
;in ax, 61h
;or ax, 00000011b
;out 61h, ax
; Give the song to Sound Blaster 16 for it to be pre-processes (for some reason, it has to be pre-processed again
; after the stop, even though we haven't seen that in the documentation, but ok).
; Note: both the string and the driver were included through a program called bin2db, version 3.
; This is EXACTLY equivalent to opening the file (either the MID or the DRV) with HxD (or any other hexadecimal
; editor) and copy/paste everything to byte declarations. Just the program does that automatically, which is
; infinitely easier and faster. NASM seems to have incbine, but MASM doesn't, and this is a solution.
; Another solution is to use MASM to generate an OBJ file and then link it to the final program, but we don't know
; how to do that (we think MASM will throw an error when it doesn't know where the labels come from, so there's some
; way to that which we don't know about).
mov bx, 8
mov dx, songs_midi
lea ax, queen_i_want_to_break_free
call driver:ctmidi_drv
; Play the song
mov bx, 9
call driver:ctmidi_drv
loop_principal_novo:
call DETECT_KEY
loop_principal_novo_continue:
; This is to put the BIOS stopping the program during the microseconds on CX:DX (32 bit number).
mov cx, 0000h
mov dx, 20E8h
;mov dx, 80E8h ; --> 30 FPS
;mov dx, 411Ah ; --> 60 FPS
mov ah, 86h
int 15h
LOAD_FIGURE_FUNCTION DRAW_DATA_DINOSSAUR X_DRAW_DINOSSAUR T_BEGIN_DRAW_DINOSSAUR TIMES_WRITE_Y_DRAW_DINOSSAUR
mov ax, 0
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
call ADVANCE_SCENARIO
call JUMP
call PRINT_SCORE
jmp loop_principal_novo
mov ah, 07h
int 21h
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Return to the operating system - end of the program
FIM:
; Disable Sound Blaster 16
mov bx, 4
call driver:ctmidi_drv
CLEAR_SCREAN
mov al, 0 ; Return code of 0
mov ah, 4Ch ; Exit back to MS/PCDOS
int 21h
; Return to the operating system - end of the program
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; PROCEDURES
MAIN_MENU:
CLEAR_SCREAN
; Load the figure's drawing vectors to the vector of drawing data of the DRAW_ERASE_FIGURE function.
LOAD_FIGURE_FUNCTION DRAW_DATA_DINOSSAUR X_DRAW_DINOSSAUR T_BEGIN_DRAW_DINOSSAUR TIMES_WRITE_Y_DRAW_DINOSSAUR
; Copy the data from the original vetor back to the vector in use. Which means, reset the positions to the
; original ones of game. It's useful this is here too, because after a game, the values must be all reset.
COPY_ARRAY DRAW_DATA_DINO_ORIGINAL DRAW_DATA_DINOSSAUR 6
; Change the position of the figure
lea bx, DRAW_DATA_DINOSSAUR
mov byte ptr [bx+2], 5
mov byte ptr [bx+3], 20
mov ax, 0
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
COPY_ARRAY DRAW_DATA_DINO_ORIGINAL DRAW_DATA_DINOSSAUR 6
COPY_ARRAY JUMP_DATA_DINOSSAUR_ORIGINAL JUMP_DATA_DINOSSAUR 4
LOAD_FIGURE_FUNCTION DRAW_DATA_BUSH1 X_DRAW_BUSH1 T_BEGIN_DRAW_BUSH1 TIMES_WRITE_Y_DRAW_BUSH1
COPY_ARRAY DRAW_DATA_BUSH1_ORIGINAL DRAW_DATA_BUSH1 6
lea bx, DRAW_DATA_BUSH1
mov byte ptr [bx+2], 5
mov byte ptr [bx+3], 5
mov ax, 0
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
COPY_ARRAY DRAW_DATA_BUSH1_ORIGINAL DRAW_DATA_BUSH1 6
LOAD_FIGURE_FUNCTION DRAW_DATA_BUSH2 X_DRAW_BUSH2 T_BEGIN_DRAW_BUSH2 TIMES_WRITE_Y_DRAW_BUSH2
COPY_ARRAY DRAW_DATA_BUSH2_ORIGINAL DRAW_DATA_BUSH2 6
lea bx, DRAW_DATA_BUSH2
mov byte ptr [bx+2], 8
mov byte ptr [bx+3], 35
mov ax, 0
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
COPY_ARRAY DRAW_DATA_BUSH2_ORIGINAL DRAW_DATA_BUSH2 6
LOAD_FIGURE_FUNCTION DRAW_DATA_BIRD X_DRAW_BIRD T_BEGIN_DRAW_BIRD TIMES_WRITE_Y_DRAW_BIRD
COPY_ARRAY DRAW_DATA_BIRD_ORIGINAL DRAW_DATA_BIRD 6
lea bx, DRAW_DATA_BIRD
mov byte ptr [bx+2], 6
mov byte ptr [bx+3], 60
mov ax, 0
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
COPY_ARRAY DRAW_DATA_BIRD_ORIGINAL DRAW_DATA_BIRD 6
LOAD_FIGURE_FUNCTION DRAW_DATA_DINOSSAUR_MAIN_MENU X_DRAW_DINOSSAUR_MAIN_MENU T_BEGIN_DRAW_DINOSSAUR_MAIN_MENU TIMES_WRITE_Y_DRAW_DINOSSAUR_MAIN_MENU
mov ax, 0
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
LOAD_FIGURE_FUNCTION DRAW_DATA_GAME X_DRAW_GAME T_BEGIN_DRAW_GAME TIMES_WRITE_Y_DRAW_GAME
mov ax, 0
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
mov ah, 02h
mov dh, 19
mov dl, 45
mov bh, 0
int 10h
mov ah, 09h
lea dx, MAIN_MENU_begin_game
int 21h
mov ah, 02h
mov dh, 21
mov dl, 45
mov bh, 0
int 10h
mov ah, 09h
lea dx, MAIN_MENU_instructions
int 21h
mov ah, 02h
mov dh, 23
mov dl, 45
mov bh, 0
int 10h
mov ah, 09h
lea dx, MAIN_MENU_exit
int 21h
call DETECT_KEY
mov ah, 07h
int 21h
cmp al, "1"
je begin_game
cmp al, "3"
je FIM
jmp MAIN_MENU
GAME_OVER:
;;;;;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
; This "function" ends the game, printing GAME OVER in the center of the screen. Before getting back to the main
; menu, it waits for the user to press any key.
; NOTE: this "function" must not be called. It must be jumped to. The reason of this is written on the collision
; detection, and because of that, this "function" doesn't return. It jumps directly to another place (main menu).
; Documentation of the function
;;;;;;;;;;;;;;;;;;;;;;;;
; Disable the speakers
;in ax, 61h
;and ax, 11111100b
;out 61h, ax
LOAD_FIGURE_FUNCTION DRAW_DATA_GAMEOVER X_DRAW_GAMEOVER T_BEGIN_DRAW_GAMEOVER TIMES_WRITE_Y_DRAW_GAMEOVER
call DRAW_ERASE_FIGURE
; Stop the song
mov bx, 10
call driver:ctmidi_drv
mov ah, 07h
int 21h
jmp MAIN_MENU
PRINT_SCORE proc near
;;;;;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
; This function prints the current user score.
;;;;;;;;;;;;;;;;;;;;
; Needed arrays
;SCORE dw 0, 0, 0
; Format:
; - Upper score 16 bits (leave on 0 - the function will take care of increasing it);
; - Lower score 16 bits (leave on 0 - the function will take care of increasing it);
; - Number to slow down the score count (leave on 0 - the function changes the number on its own).
; Needed arrays
;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
;;;;;;;;;;;;;;;;;;;;;;;;
push bp
mov bp, sp
push ax
push bx
push cx
push dx
;push si
;push di
; This is just to not count so fast. This way, it was decreased to half the speed
lea bx, SCORE
cmp word ptr [bx+2*2], 0
jne PRINT_SCORE_end
; Put the cursor always in the same position before beginning writting the number
mov ah, 02h
mov dh, 1
mov dl, 68
mov bh, 0
int 10h
; Get the number from the SCORE vector, sum 1 and keep the result in the vector
lea bx, SCORE
mov dx, word ptr [bx+2*0]
mov ax, word ptr [bx+2*1]
mov cx, 0
mov bx, 1
SUM_32BIT
lea bx, SCORE
mov word ptr [bx+2*0], dx
mov word ptr [bx+2*1], ax
; Display the current score
call PRINT_NUM_UNSIGNED
PRINT_SCORE_end:
; This instruction is part of the slow down of the score count
NOT word ptr [bx+2*2]
;pop di
;pop si
pop dx
pop cx
pop bx
pop ax
mov sp, bp
pop bp
ret
PRINT_SCORE endp
PRINT_NUM_UNSIGNED proc near
;;;;;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
; Main note: This function was copied from somewhere and wasn't completely understood. Though, it was enough to
; to be changed and improved to not throw error of overflow.
; The unsigned number to print must be in DX:AX.
; NOTE: the highest number DX:AX is 9FFFFh, which means 65359 in decimal. As of that number, the function will
; keep printing 65359 until the registers have a value below that maximum.
; Explanation of the above: the division divides the number in DX:AX by the number in BX and keeps the result
; of the division in AX, and the rest of the devision in DX. So, the number resulting from the division must
; be inside 16 bits. If it does not, an overflow error will be thrown ("Divide overflow").
; 9FFFFh / 10 = 0FFFFh, which is the maximum in 16 bit. Which means, this is dependent of the number we are
; dividing.
; This divides the number in 10 and prints each digit that resulted from the division (for example, 1234 / 10,
; prints 4; 123 / 10 and prints 3...).
; Documentation of the function
;;;;;;;;;;;;;;;;;;;;;;;;
push bp
mov bp, sp
push ax
push bx
push cx
push dx
;push si
;push di
; This is the improvement to not throw overflow on the program. If DX has 10 or above there, no matter the
; contents of AX, the division will result in a 9 bits number --> overflow error.
cmp dx, 10
jl PRINT_NUM_UNSIGNED_continue
; So when that happens, it stays on the same number. At least until it's given to the function a number with
; DX below 10.
mov ax, 0FFFFh
mov dx, 09h
PRINT_NUM_UNSIGNED_continue:
mov cx, 0
;mov dx, 0 --> We think this is here because it's not normal to print 32 bits numbers? So now it's commented out.
; Read the updated description of the function.
PRINT_NUM_UNSIGNED_label1:
cmp ax, 0
je PRINT_NUM_UNSIGNED_print1
; Base on which print the number (in this case it's base 10 - decimal -, so it's 10, but we wanted in
; hexadecimal, it would be 16 here, which would work too).
mov bx, 10
div bx
push dx
inc cx
xor dx, dx
jmp PRINT_NUM_UNSIGNED_label1
PRINT_NUM_UNSIGNED_print1:
cmp cx, 0
je PRINT_NUM_UNSIGNED_exit
pop dx
add dx, 48 ; Add the number of characters to pass from real number to string number (equivalent to add dx, "0").
; Print the string number
mov ah, 02h
int 21h
dec cx
jmp PRINT_NUM_UNSIGNED_print1
PRINT_NUM_UNSIGNED_exit:
;pop di
;pop si
pop dx
pop cx
pop bx
pop ax
mov sp, bp
pop bp
ret
PRINT_NUM_UNSIGNED endp
ADVANCE_SCENARIO proc near
;;;;;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
; This function advanced the scenario a character at a time, at each function call. When one of the objects
; disappears completely from the screen, the function puts the object back in a position much ahead, defined
; through an array of positions automatically generated externally by a website.
; We tried putting the game generating random numbers, but as the function was always called in the same period
; of time (the game doesn't request to insert anything coming from human control), nothing would stay random.
; So we generated random numbers on the Internet and put them in vectors.
; The vector has 1055 positions (separated in various because MASM doesn't allow too big instructions - "too
; complex instruction"), and with numbers actually random between 80 (minimum of the window) and 255 (8 bit
; maximum to interruption 10h, at least in case it's to be used again).
;;;;;;;;;;;;;;;;;;;;
; Needed arrays
;ADVANCE_SCENERARIO_data_vector_positions_x_random dw 1055, 0
; Format: length of the random x positions vector; current index of iterating the vector (always leave on 0 -
; this value is changed by the function).
;ADVANCE_SCENERARIO_positions_x_random db 172, 104, 95, 182, 126, 97, 96, 203, 152, 149, 80, 139, 122, 157, 209, 158, 249, 163, 237, 109, 194, 181, 98, 125, 153, 193, 120, 251, 189, 255, 226, 222, 179, 202, 112, 252, 228, 148, 200, 254, 239, 178, 85, 135, 171
; Format: in each index of the array, put a random position generated between 80 and 255. Separate in various
; arrays if necessary, and leave the declarations one after another.
;DRAW_DATA_BUSH1 db [ignorado], [ignorado], [ignorado], 200, [ignorado], 03
; Format:
; - [See on the function DRAW_ERASE_FIGURE];
; - [See on the function DRAW_ERASE_FIGURE];
; - [See on the function DRAW_ERASE_FIGURE];
; - [See on the function DRAW_ERASE_FIGURE];
; - [See on the function DRAW_ERASE_FIGURE];
; - Maximum width of the object (look for the biggest line of the object and count the number of characters on
; that line);
; Needed arrays
;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
;;;;;;;;;;;;;;;;;;;;;;;;
push bp
mov bp, sp
push ax
push bx
push cx
push dx
push si
push di
; Here the x position is summed with the maximum object width. If it results in 0, then it just disappeard
; completely from the screen.
; In that case, call the part of the function that changes the x position of the object. Otherwise, keep
; advancing the scenario normally.
mov al, byte ptr DRAW_DATA_BIRD[3]
add al, byte ptr DRAW_DATA_BIRD[6]
cmp al, 0
jne ADVANCE_SCENARIO_continue1
lea di, DRAW_DATA_BIRD
call ADVANCE_SCENARIO_change_x
ADVANCE_SCENARIO_continue1:
mov al, byte ptr DRAW_DATA_BUSH1[3]
add al, byte ptr DRAW_DATA_BUSH1[6]
cmp al, 0
jne ADVANCE_SCENARIO_continue2
lea di, DRAW_DATA_BUSH1
call ADVANCE_SCENARIO_change_x
ADVANCE_SCENARIO_continue2:
mov al, byte ptr DRAW_DATA_BUSH2[3]
add al, byte ptr DRAW_DATA_BUSH2[6]
cmp al, 0
jne ADVANCE_SCENARIO_continue3
lea di, DRAW_DATA_BUSH2
call ADVANCE_SCENARIO_change_x
ADVANCE_SCENARIO_continue3:
; Here is the part of the function where the scenario is advanced a character to the right.
LOAD_FIGURE_FUNCTION DRAW_DATA_BUSH1 X_DRAW_BUSH1 T_BEGIN_DRAW_BUSH1 TIMES_WRITE_Y_DRAW_BUSH1
mov ax, 0
mov al, -1
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
LOAD_FIGURE_FUNCTION DRAW_DATA_BUSH2 X_DRAW_BUSH2 T_BEGIN_DRAW_BUSH2 TIMES_WRITE_Y_DRAW_BUSH2
mov ax, 0
mov al, -1
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
LOAD_FIGURE_FUNCTION DRAW_DATA_BIRD X_DRAW_BIRD T_BEGIN_DRAW_BIRD TIMES_WRITE_Y_DRAW_BIRD
mov ax, 0
mov al, -1
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
pop di
pop si
pop dx
pop cx
pop bx
pop ax
mov sp, bp
pop bp
ret
ADVANCE_SCENARIO_change_x:
; This is to be used not with a jump but with a call. A call can be used with any label.
; That stores the IP on stack, makes a jump, and the Return removes the IP from the stack and jumps there.
; So it's not exclusive to procedures.
; This part of the function changes the x position of each object in the following way:
; - Gets the index of random positions vector iteration;
; - Uses that index to go get the position to put on the object;
; - Before it's set, checks if other objects are in an internal defined between its position and the position
; gotten from the random positions vetor;
; - In case any object is inside that interval, goes to the next position on the vector;
; - In case no object is inside that interval, that position is picked, the index of the vetor iteration is
; incremented, and the label returns to where it was called.
lea bx, ADVANCE_SCENERARIO_data_vector_positions_x_random
mov cx, word ptr [bx+2*0]
ADVANCE_SCENARIO_loop1:
;lea bx, ADVANCE_SCENERARIO_data_vector_positions_x_random --> This is in the end, so it's not needed
; This checks if it's gotten already to the end of the vector. If that's true, reset the counter to 0.
mov ax, word ptr [bx+2*1]
cmp ax, word ptr [bx+2*0]
je ADVANCE_SCENARIO_repor_contagem_pos_aleat
ADVANCE_SCENARIO_loop1_continue:
mov si, ax
lea bx, ADVANCE_SCENERARIO_positions_x_random
xor ah, ah
mov al, byte ptr [bx+si]
mov si, ax ; The gotten position remains permanently on AX register, whilst SI is used to calculate if
; the object is in the interval or not.
; Got like that because below we need an 8 bit register.
lea bx, DRAW_DATA_BIRD
mov si, ax ; Put AX back in SI
xor dh, dh ; Equivalent to mov dh, 0
mov dl, byte ptr [bx+3] ; Put in DL, the position x of the bird
sub si, dx ; Subtracts DX to SI - this checks if the object is in an interval of, in this case, 25
; characters until the position gotten from the random positions vector.
call ADVANCE_SCENARIO_abs ; If the value is negative (depends where the objects are), call the absolute
; value of the fuction
cmp si, 25 ; Here is the number of characters interval
jle ADVANCE_SCENARIO_loop1_end ; If it's up to 25 characters at most, go to the next value of the vector
lea bx, DRAW_DATA_BUSH1
mov si, ax
xor dh, dh
mov dl, byte ptr [bx+3]
sub si, dx
call ADVANCE_SCENARIO_abs
cmp si, 55
jle ADVANCE_SCENARIO_loop1_end
lea bx, DRAW_DATA_BUSH2
mov si, ax
xor dh, dh
mov dl, byte ptr [bx+3]
sub si, dx
call ADVANCE_SCENARIO_abs
cmp si, 45
jle ADVANCE_SCENARIO_loop1_end
mov bx, di ; Here the address stored on the main part of the function is reset (the address of the
; object currently being analysed).
mov byte ptr [bx+3], al ; The chosen position of the vector is put on the vector of figure data in the
; index of position x.
; Here the current iteration index of the random positions vector is incremented.
lea bx, ADVANCE_SCENERARIO_data_vector_positions_x_random
inc word ptr [bx+2*1]
ret ; And returnes to where this part of the function was called.
ADVANCE_SCENARIO_loop1_end:
lea bx, ADVANCE_SCENERARIO_data_vector_positions_x_random
inc word ptr [bx+2*1]
;loop ADVANCE_SCENARIO_loop1 --> disabled by the same reason that on the function DRAW_ERASE_FIGURE.
dec cx
jnz ADVANCE_SCENARIO_loop1
; It won't get here, supposedly, but it's just in case it does, to get back
ret
ADVANCE_SCENARIO_repor_contagem_pos_aleat:
mov word ptr [bx+2*1], 0
jmp ADVANCE_SCENARIO_loop1_continue
ADVANCE_SCENARIO_abs:
; This is to be used not as a jump but as a call.
; This part of the function calculates the absolute value of a number. First it stores it in another
; register, and then applies of the Complement of Two.
; If after that, the number is negative, return the stored value in the other register. If it's positive,
; return the new value instead.
; Note: the Complement of Two is the Complement of One adding 1 (which means negate all bits and add 1
; to the result).
mov dx, si ;store eax in ebx
neg si
jge ADVANCE_SCENARIO_abs_end
mov si, dx ;if eax is now negative, restore its saved value
ADVANCE_SCENARIO_abs_end:
ret
ADVANCE_SCENARIO endp
JUMP proc near
;;;;;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
; This function puts the dinossaur jumping a square each time it's called. Aside from that, it tries to simulate
; the gravity, which means, when the dinossaur is finishing the climb, it starts slowing down, and when it
; starts falling, it starts accelerating.
;;;;;;;;;;;;;;;;;;;;
; Needed arrays
;JUMP_DATA_DINOSSAUR db 0, 0, 0, 0
; Format:
; - Is the dinossaur jumping? 1 if yet, 0 if not;
; - If yet, is it going up (0) or down (1)?;
; - Number of coordinates already added to jump;
; - Number of function calls ignored because of the gravity.
; Leave all on 0. The function changes the values automatically, except the first one which must be put to 1
; before calling the function to start the jump.
; Needed arrays
;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
;;;;;;;;;;;;;;;;;;;;;;;;
push bp
mov bp, sp
push ax
push bx
;push cx
;push dx
;push si
;push di
lea bx, JUMP_DATA_DINOSSAUR
; Check if it's to put the dinossaur jumping or not
cmp byte ptr [bx+0], 1
jne JUMP_end
; Call the gravity simulator and, if a 1 comes on AX, ignore the function call and jump directly to the end. Ou
; carry on, in case AX is 0.
call GRAVITY_SIMULATION_JUMP
cmp ax, 1
je JUMP_end
LOAD_FIGURE_FUNCTION DRAW_DATA_DINOSSAUR X_DRAW_DINOSSAUR T_BEGIN_DRAW_DINOSSAUR TIMES_WRITE_Y_DRAW_DINOSSAUR
; Check if the dinossaur is rising or falling.
mov al, byte ptr [bx+1]
cmp byte ptr [bx+1], 0
je JUMP_subida
jne JUMP_descida
JUMP_subida:
; Check if it's already in the maximum height defined below
cmp byte ptr [bx+2], 16
jl JUMP_subida_cont1
; If it is, put int the array information of being to initiate the fall in the next function call
mov byte ptr [bx+1], 1
jmp JUMP_descida
JUMP_subida_cont1:
; Put AL to 0 and AH to -1 to decrement 1 to the current y coordinate of the dinossaur
xor al, al
mov ah, -1
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
; Increment the number of coordinates already added
inc byte ptr [bx+2]
jmp JUMP_end
JUMP_descida:
; Check if it's gotten to the height it starts
cmp byte ptr [bx+2], 0
jg JUMP_descida_cont1
; If it has, put information in the array that is to start the rise in the next function call and also
; information to stop the jump.
mov byte ptr [bx+1], 0
mov byte ptr [bx+0], 0
jmp JUMP_end
JUMP_descida_cont1:
; Put AL to 0 and AH to -1 to increment 1 to the current y coordinate of the dinossaur
xor al, al
mov ah, 1
mov dl, 0
call DRAW_ERASE_FIGURE_MAIN
; Decrement the number of coordinates already added
dec byte ptr [bx+2]
jmp JUMP_end
JUMP_end:
;pop di
;pop si
;pop dx
;pop cx
pop bx
pop ax
mov sp, bp
pop bp
ret
JUMP endp
GRAVITY_SIMULATION_JUMP proc near
;;;;;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
; This function is supposed to be used only by the JUMP function.
; It simulates the gravity and tells the JUMP function to ignore the drawing of the dinossaur in various function
; calls, depending of how high the dinossaur is.
; The function needs to have in the BX register, the address of the vector of the dinossaur's jump data, and
; returns on the AX register if the function JUMP should be ignored or not.
; Documentation of the function
;;;;;;;;;;;;;;;;;;;;;;;;
push bp
mov bp, sp
;push ax
;push bx
;push cx
;push dx
;push si
;push di
; Com y = 14 ou mais, ignora 2 chamadas da função
cmp byte ptr [bx+2], 14
jge GRAVITY_SIMULATION_JUMP_ignore_2
; With y = 10 or more (except 14 and above), ignores 1 function call
cmp byte ptr [bx+2], 12
jge GRAVITY_SIMULATION_JUMP_ignore_1
; In case the 2 cases above are not verified, the function call is not ignored
mov ax, 0
jmp GRAVITY_SIMULATION_JUMP_end
GRAVITY_SIMULATION_JUMP_end:
;pop di
;pop si
;pop dx
;pop cx
;pop bx
;pop ax
mov sp, bp
pop bp
ret
GRAVITY_SIMULATION_JUMP_ignore_1:
; The comparision is the number of function calls to ignore (the bigger, the more time it stays in the air)
cmp byte ptr [bx+3], 1
je GRAVITY_SIMULATION_JUMP_ignore_end
; Increase the count of how many times the function was ignored if it hasn't got to the limit
inc byte ptr [bx+3]
; Here it says to ignore the function call by putting 1 in AX
mov ax, 1
jmp GRAVITY_SIMULATION_JUMP_end
GRAVITY_SIMULATION_JUMP_ignore_2:
cmp byte ptr [bx+3], 2
je GRAVITY_SIMULATION_JUMP_ignore_end
inc byte ptr [bx+3]
mov ax, 1
jmp GRAVITY_SIMULATION_JUMP_end
GRAVITY_SIMULATION_JUMP_ignore_end:
mov byte ptr [bx+3], 0
mov ax, 0
jmp GRAVITY_SIMULATION_JUMP_end
GRAVITY_SIMULATION_JUMP endp
DETECT_KEY proc near
;;;;;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
; This function detects any pressed key without stopping the program, and processes it.
; Documentation of the function
;;;;;;;;;;;;;;;;;;;;;;;;
push bp
mov bp, sp
push ax
push bx
;push cx
;push dx
;push si
;push di
mov ah, 01h ; This checks if there's any key in processing list (doesn't get any out of the list)
int 16h
jz DETECT_KEY_end ; This deletes the key from the buffer and goes back to the beginning of the loop, instead
; of comparing everything
mov ah, 00h ; This gets the last key on the list to the AX register and deletes it from the list
int 16h
; Key comparision
cmp ax, 3920h ; Space?
je DETECT_KEY_continue_space
cmp ax, 0231h ; 1?
je DETECT_KEY_continue_1
cmp ax, 0332h ; 2?
je DETECT_KEY_continue_2
cmp ax, 0433h ; 3?
je DETECT_KEY_continue_3
; None of the said ones? Then back to the beginning
jmp DETECT_KEY_end ; jmp loop1
DETECT_KEY_continue_space:
; Check if it's already jumping, so it's not possible to make infinite sound (which would also slow the game
; down because this has to wait a bit while playing the sound, or it would be instantaneos and it wouldn't
; be heard).
lea bx, JUMP_DATA_DINOSSAUR
cmp byte ptr [bx+0], 1
je DETECT_KEY_end
; If it's not jumping, active the jump
mov byte ptr [bx+0], 1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::
; Play beep when jumping
; Could have been with the beep character, but DOSBox doesn't support that (said by one of the authors), so
; we used the PC Speaker. We also thought in keeping the speakers always On, but for some reason, this has
; interference even while not playing anything, so we put the note, activate, wait, and disable the speakers.
; In an attempt of improvement by what was told to us of starting and going instantly to the maximum and
; not being that good idea, we put this going to the maximum before activating the speakers.
; Update: we put a loop going to the wanted frequency after enabling the speakers. So it goes from 0 to the
; correct note one by one to go slower, like a sin function (but much faster on the rise).
; Update 2: we think it's the with the loop and the old way, so we left it like this becuase it doesn't need
; to be in a loop and slow then the game more than the BIOS wait time will.
; Give the PIT a frequency to put on the square waves of the speakers
mov ax, 4560 ; Central C Major's frequency --> 1,193,180 / 261.63 = 4560 (rounded down as a PC does)
out 42h, al
mov al, ah
out 42h, al
; Active the speakers
in ax, 61h
or ax, 00000011b
out 61h, ax
; Increase the frequency one by one until it gets to the wanted frequency
;mov cx, 0
;DETECT_KEY_loop1:
; ; Give the PIT a frequency to put on the square waves of the speakers
; mov ax, cx ; Central C Major's frequency --> 1,193,180 / 261.63 = 4560 (rounded down as a PC does)
; out 42h, al
; mov al, ah
; out 42h, al
;
; inc cx
; cmp cx, 4561 ; +1 than the wanted frequency to stop on the wanted one
; jne DETECT_KEY_loop1
; Wait a bit to have time to play the sound. 0000h:5000h was the time that was thought to be the best to not
; delay too much but to still be possible to hear the sound decently.
mov cx, 0000h
mov dx, 5000h
mov ah, 86h
int 15h
;mov cx, 4560
;DETECT_KEY_loop2:
; ; Give the PIT a frequency to put on the square waves of the speakers
; mov ax, cx ; Central C Major's frequency --> 1,193,180 / 261.63 = 4560 (rounded down as a PC does)
; out 42h, al
; mov al, ah
; out 42h, al
;
; loop DETECT_KEY_loop2 ; This makes it so that AX doesn't get to 0, because when CX is 0, it doesn't go
; up again
; Give a frequency to the PIT again to put on the speakers, but this time 0. This is to try to minimize the
; noise that happens.
;mov ax, 1 ; NOTE: this has to be in more than 0 or it won't work and the speakers will make VERY weird
; sounds. Must not like like 0, of being stopped haha.
;out 42h, al
;mov al, ah
;out 42h, al
; Deactive the speakers
in ax, 61h
and ax, 11111100b
out 61h, ax
; Play beep when jumping
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::
jmp DETECT_KEY_end
DETECT_KEY_continue_1:
jmp begin_game
DETECT_KEY_continue_2:
; SEM USO AINDA
jmp DETECT_KEY_end
DETECT_KEY_continue_3:
jmp FIM
DETECT_KEY_end:
;pop di
;pop si
;pop dx
;pop cx
pop bx
pop ax
mov sp, bp
pop bp
ret
DETECT_KEY endp
DRAW_ERASE_FIGURE_MAIN proc near
;;;;;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
; This function should be called instead of DRAW_ERASE_FIGURE. It adds to the coordinates x and y the given
; number before calling DRAW_ERASE_FIGURE. If at least one of the numbers to add is different than 0, the function
; erases the figure in the current position, changes its coordinates and draws it again in the new place.
; In case both numbers to add are 0, the function just redraws the figure in the same place without changing
; its coordinates and without deleting it before redrawing.
; It must have on the AH register the number to add to the y coordinate and on the AL register, the number to
; add to the x coordinate, both initial coordinates of the figure (can be positive or negative - or zero).
; NOTE: this will change the initial coordinates stored on the original vectors!
; In the BL register there must be a 1 in case it's to only delete the figure in the current position, or a 0 in
; case it's to act as described above.
; Documentation of the function
;;;;;;;;;;;;;;;;;;;;;;;;
push bp
mov bp, sp
;push ax
push bx
;push cx
push dx
;push si
;push di
; Check if it's to just delete
cmp dl, 1
jne DRAW_ERASE_FIGURE_MAIN_continue2
; Put on the vector of drawing data of the figure of the DATA_ERASE_FIGURE function that is to delete and not to
; write.
mov word ptr DRAW_ERASE_FIGURE_data[2*4], 1
call DRAW_ERASE_FIGURE
jmp DRAW_ERASE_FIGURE_MAIN_end
DRAW_ERASE_FIGURE_MAIN_continue2:
; Check if AX is 0. If it is, jump to the immediate drawing of the figure. Otherwise, erase it first and then
; draw it in the new position.
cmp ah, 0
jne DRAW_ERASE_FIGURE_MAIN_continue
cmp al, 0
jne DRAW_ERASE_FIGURE_MAIN_continue
jmp DRAW_ERASE_FIGURE_MAIN_continue1
DRAW_ERASE_FIGURE_MAIN_continue:
; Put on the vector of drawing data of the figure of the DATA_ERASE_FIGURE function that is to delete and not to
; write.
mov word ptr DRAW_ERASE_FIGURE_data[2*4], 1
call DRAW_ERASE_FIGURE
; Part in which the function changes the initial coordinates in the figure's vecotr of drawing data
mov bx, word ptr DRAW_ERASE_FIGURE_data[2*0] ; --> DRAW_DATA_DINOSSAUR // Address
add byte ptr [bx+2], ah ; --> DRAW_DATA_DINOSSAUR[2]
add byte ptr [bx+3], al ; --> DRAW_DATA_DINOSSAUR[3]
DRAW_ERASE_FIGURE_MAIN_continue1:
; Put on the vector of drawing data of the figure of the DATA_ERASE_FIGURE function that is to delete and not to
; write.
mov word ptr DRAW_ERASE_FIGURE_data[2*4], 0
call DRAW_ERASE_FIGURE
DRAW_ERASE_FIGURE_MAIN_end:
;pop di
;pop si
pop dx
;pop cx
pop bx
;pop ax
mov sp, bp
pop bp
ret
DRAW_ERASE_FIGURE_MAIN endp
DRAW_ERASE_FIGURE proc near
;;;;;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
; This function draws any figure from an initial coordinate (all defined in the follwing arrays is relative to
; the first coordinate to be easier to change the place of drawing of the figure).
; Weak points:
; - it draws only in a default color on the function --> it does now;
; - doesn't erase in case it's needed --> it does now;
; - doesn't store the used pixels by the picture in an array, so must calculate everything every time.
; Linked to this procedure is:
; - The array "DRAW_ERASE_FIGURE_data".
; Format:
; - Address of DRAW_DATA_DINOSSAUR;
; - Address of X_DRAW_DINOSSAUR;
; - Address of T_BEGIN_DRAW_DINOSSAUR;
; - Address of TIMES_WRITE_Y_DRAW_DINOSSAUR;
; - Write (0) or erase (1);
; - [X] character to use to write (default: # - number sign); --> deprecated
; - [X] color in binary (text mode: 1st 4 bits to background color, 2nd 4 bits to the character cpde / graphics
; mode: 8 bits to all colors (8 bit colors)). --> deprecated (it's now on the figure data array)
;;;;;;;;;;;;;;;;;;;;
; Needed arrays
; It's here an example that draws the head of the dinossaur which has 4 irregularities, caused by empty places
; in the image (the eye, which is 1 character, and the mouth art, which are 3 characters).
; Format:
; - Size of the coordinate arrays;
; - Last processed index of the arrays, to keep being increased (always leave on 0 - the function takes care of it);
; - Initial y;
; - Initial x;
; - Color in binary (text mode: 1st 4 bits to background, 2nd 4 bits to character / graphics mode: 8 bits to all colors).
; - [See on the function ADVANCE_SCENARIO];
;DRAW_DATA_DINOSSAUR db 12, 0, 21, 02, 00001100b, 07
; Format: number to ---sum--- to the initial x coordinate to indicate where to draw vertically (in this case,
; the numbers that are closer together [no idea what this means XD] are drawn on the same column -
; they're drawing irregularities, like empty places)
;X_DRAW_DINOSSAUR db 00, 01, 02,02, 03, 04,04, 05,05, 06,06, 07
; Format: number to ---sum--- to the initial y coordinate to indicate where to draw vertically (in this case,
; the numbers that are closer together [no idea what this means XD] are drawn on the same column -
; they're drawing irregularities, like empty places)
; Note: the function draws from above to bottom (in each column, starts by the highest coordinate and draws down)
;T_BEGIN_DRAW_DINOSSAUR db 00, -1, -01,1, -1, -1,03, -1,03, -1,03, 00
; Format: number of characters to draw minus 1 (n-1), as of the initial coordinate defined on the array above
;TIMES_WRITE_Y_DRAW_DINOSSAUR db 03, 04, 00,02, 04, 02,00, 02,00, 02,00, 01
; Needed arrays
;;;;;;;;;;;;;;;;;;;;
; Documentation of the function
;;;;;;;;;;;;;;;;;;;;;;;;
push bp
mov bp, sp
; Store the value of all registers on the stack (even of those not used - so can't forget of anything)
push ax
push bx
push cx
push dx
push si
push di
DRAW_ERASE_FIGURE_inicio:
; Compare the last processed index of the arrays with the size of the drawing arrays
mov bx, DRAW_ERASE_FIGURE_data[2*0] ; --> DRAW_DATA_DINOSSAUR // Address
mov ah, [bx+0] ; --> DRAW_DATA_DINOSSAUR[0] // Size of the arrays
mov al, [bx+1] ; --> DRAW_DATA_DINOSSAUR[1] // Last processed index of the arrays
cmp al, ah
je DRAW_ERASE_FIGURE_end
xor ah, ah ; Equivalent to mov ah, 0 (aside from being faster and also takes less memory (opcode of 1 byte) -
; Stackoverflow with confirmation of the reference optimization manual of the architectures 64 IA-32 of Intel -->
; it's said on it that it's only on Intel Core that is preferable, but why not use anyways)
mov si, ax ; Index to use to know the number of characters to write. In this case, the first one (AL didn't change)
xor ch, ch
mov bx, DRAW_ERASE_FIGURE_data[2*3] ; --> TIMES_WRITE_Y_DRAW_DINOSSAUR // Address
mov cl, [bx+si] ; --> TIMES_WRITE_Y_DRAW_DINOSSAUR[bx] // Number of characters to draw is in the last drawing array (address gotten above)
cmp cx, 0
je DRAW_ERASE_FIGURE_depois_do_loop1
DRAW_ERASE_FIGURE_loop1:
mov bx, DRAW_ERASE_FIGURE_data[2*0] ; --> DRAW_DATA_DINOSSAUR // Address
xor ah, ah
mov al, [bx+1] ; --> DRAW_DATA_DINOSSAUR[1] // Current column in index
mov si, ax ; This is just to use the correct register to better understanding of the program (SI - Source INDEX / BX - Base ADDRESS)
mov dh, [bx+2] ; --> DRAW_DATA_DINOSSAUR[2] // Initial y coordinate
mov bx, DRAW_ERASE_FIGURE_data[2*2] ; --> T_BEGIN_DRAW_DINOSSAUR
add dh, [bx+si] ; --> T_BEGIN_DRAW_DINOSSAUR[bx] // Sum the initial coordinate with a number to know the coordinate where to start drawing the column
mov bx, DRAW_ERASE_FIGURE_data[2*3] ; --> TIMES_WRITE_Y_DRAW_DINOSSAUR // Address
add dh, [bx+si] ; --> TIMES_WRITE_Y_DRAW_DINOSSAUR[bx]
sub dh, cl ; Sum the coordinate where to start drawing the column with CL, to know in which current column position it's in
mov bx, DRAW_ERASE_FIGURE_data[2*0] ; --> DRAW_DATA_DINOSSAUR // Address
mov dl, [bx+3] ; --> DRAW_DATA_DINOSSAUR[3] // Initial x coordinate
mov bx, DRAW_ERASE_FIGURE_data[2*1] ; --> X_DRAW_DINOSSAUR // Address
add dl, [bx+si] ; --> X_DRAW_DINOSSAUR[bx] // Current x coordinate
; In case it's going to draw outside the screen limits, doesn't continue and go to the next character
cmp dh, 25
jge DRAW_ERASE_FIGURE_direto_ao_loop1
cmp dh, 0
jl DRAW_ERASE_FIGURE_direto_ao_loop1
cmp dl, 80
jge DRAW_ERASE_FIGURE_direto_ao_loop1
cmp dl, 0
jl DRAW_ERASE_FIGURE_direto_ao_loop1
; In case it's going to draw outside the screen limits, doesn't continue and go to the next character
mov si, cx ; Store of the CX value in a non-used register
mov cx, dx
xor ax, ax
mov al, ch
mov bx, 80
mul bx
xor ch, ch
add ax, cx
mov bx, 2
mul bx
mov di, ax
;offset = (80*y + x) * 2
mov cx, si ; Put the CX value back in a non-used register
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Collision detector
; Checks if the figure is being written or erased. This can only check if if there's anything already written
; in the new dinossaur position after it's erased, or it would see itself written there (not very helpful haha).
; In case it's being erased, continue the program
cmp DRAW_ERASE_FIGURE_data[2*4], 0
jne DRAW_ERASE_FIGURE_continue1
; Check if it's the dinossaur that's being written, comparing the address of the dinossaur data vector
; (for example that one) with the first index of the functions's vector of drawing data
; If it's not the dinossaur, continue the program
lea bx, DRAW_DATA_DINOSSAUR
mov dx, DRAW_ERASE_FIGURE_data[2*0]
cmp bx, dx
jne DRAW_ERASE_FIGURE_continue1
; Checks if there's any character written on the position on which the current character of the figure
; In case there's not an hashtag already there, continue the program
cmp byte ptr es:[di], "#"
jne DRAW_ERASE_FIGURE_continue1
cmp byte ptr es:[di+1], 00001100b
je DRAW_ERASE_FIGURE_continue1
; In case all the described above happens, simulates a normal exit of the function removing everything that
; was on the stack, including the IP value previous to this function's call, and then calls the GAME_OVER function.
; This so there are no stack memory failures, since this would keep storing infinitely until the memory limit
; (in this case, it's defined as 100h in the beginning of the code).
mov sp, bp
pop bp
add sp, 2 ; This is to remove the IP stored on the stack
; A jump to not store the current IP on the stack for anything, because the game will restart
jmp GAME_OVER
DRAW_ERASE_FIGURE_continue1:
; Collision detector
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Compares if it's to erase or write
cmp DRAW_ERASE_FIGURE_data[2*4], 0
jne DRAW_ERASE_FIGURE_apagar
mov bx, DRAW_ERASE_FIGURE_data[2*0] ; --> DRAW_DATA_DINOSSAUR // Address
mov al, byte ptr [bx+4]
mov ah, [bx+5] ; Character to use to write
mov byte ptr es:[di], ah
mov byte ptr es:[di+1], al
jmp DRAW_ERASE_FIGURE_continue
DRAW_ERASE_FIGURE_apagar:
mov byte ptr es:[di], " "
mov byte ptr es:[di+1], 00000000b
DRAW_ERASE_FIGURE_continue:
DRAW_ERASE_FIGURE_direto_ao_loop1:
;loop DRAW_ERASE_FIGURE_loop1 ; loop can only jump between -128 and +127 bytes (StackOverflow) - this was
; exceeded on the DRAW_ERASE_FIGURE function. So goes a normal jump:
dec cx
jnz DRAW_ERASE_FIGURE_loop1
DRAW_ERASE_FIGURE_depois_do_loop1:
mov bx, DRAW_ERASE_FIGURE_data[2*0] ; --> DRAW_DATA_DINOSSAUR // Address
inc byte ptr [bx+1] ; --> DRAW_DATA_DINOSSAUR[1] // Increment the last processed index of the arrays
; byte ptr we think it's because if it was a word, without this statement, it would increase the next 8 bits (it
; would change a total of 16 bits), and that's an array of numbers of 8 bits, so it would change the number next,
; therefore it has to know that it's 8 bits to change the correct number and not the next one too.
; Yep, that's it. Confirmed below with move byte ptr after half an hour without knowing the problem...
; Put ALWAYS ALWAYS ALWYAS byte/word/... prt before an address with an index if the other operand doesn't say
; the type (AL/AX say byte/word by themselves, respectively; 0 doesn't say anything --> YEAH).
; In this case, MASM assumed as being a word and it wasn't working, while on EMU8086 it was assumed to be a byte
; and was working. To don't exist any confusion, DON'T FORGET OF DOING THIS!!!!!
; On MASM/TASM it's byte ptr; on NASM/YASM it's just byte. byte, word, or quad, whatever.
jmp DRAW_ERASE_FIGURE_inicio
DRAW_ERASE_FIGURE_end:
mov bx, DRAW_ERASE_FIGURE_data[2*0] ; --> DRAW_DATA_DINOSSAUR // Address
mov byte ptr [bx+1], 0 ; --> DRAW_DATA_DINOSSAUR[1]
; Reset the value of all registers stored on the stack in the opposite order
pop di
pop si
pop dx
pop cx
pop bx
pop ax
mov sp, bp ; Won't do anything because we didn't use function paramters, but why not leave it here (can't forget
; if it's already here).
pop bp
; Return to the next instruction next to that in which the function was called
ret
DRAW_ERASE_FIGURE endp
; PROCEDURES
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
driver segment READONLY para ; The para isn't needed because it's the default, but why not keep it.
; PS: it's mandatory to leave the driver with offset 0 for some reason we didn't understand. So that's why it's being
; put in a separate segment.
; Note: the driver seems to be activated right after it's called, so it's to put the right parameters and call it, and it
; will start automatically - it's not needed to call some sub-function or something.
; Note 2: this works because, as it was told to us, the processor will just read what's here since we jumped here -
; it's like trying to read what's in the segment data as code (which will not go very well, because they're not supposed
; to be instructions, even though the processor can't distinguish).
; Note 3: this doesn't work on Windows 7. Must not have support to Sound Blaster 16 (or any other old sound card? - no
; idea if it works with PC Speaker, but we think maybe it should, since is it not supposed for PCs to still have that?
; Even though we haven't tested).
ctmidi_drv:
db 233,173,0,67,84,77,73,68,73,0,67,114,101,97,116,105
db 118,101,32,83,111,117,110,100,32,66,108,97,115,116,101,114
db 32,49,54,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,13,10,22,1,8,8,67,114,101,97,116,105,118,101,32
db 76,111,97,100,97,98,108,101,32,77,73,68,73,32,68,114
db 105,118,101,114,44,32,32,86,101,114,115,105,111,110,32,49
db 46,50,50,13,10,67,111,112,121,114,105,103,104,116,32,40
db 99,41,32,67,114,101,97,116,105,118,101,32,84,101,99,104
db 110,111,108,111,103,121,32,76,116,100,46,44,32,49,57,57
db 48,45,49,57,57,51,46,32,32,65,108,108,32,114,105,103
db 104,116,115,32,114,101,115,101,114,118,101,100,46,13,10,26
db 156,250,30,6,80,83,81,82,87,86,85,139,236,80,140,200
db 142,216,142,192,88,131,78,18,1,199,70,12,255,255,128,62
db 111,32,0,117,36,198,6,111,32,1,251,252,129,251,40,0
db 114,5,184,0,128,235,13,131,102,18,254,209,227,255,151,140
db 32,137,70,12,198,6,111,32,0,93,94,95,90,89,91,88
db 7,31,157,203,30,6,80,83,81,82,87,86,85,140,200,142
db 216,142,192,198,6,112,32,1,128,62,110,32,1,116,108,198
db 6,110,32,1,250,140,22,138,32,137,38,136,32,140,216,142
db 208,188,220,34,251,252,131,62,151,35,1,117,3,232,198,8
db 128,62,43,35,0,116,4,255,6,117,32,161,121,32,139,22
db 123,32,3,6,115,32,131,210,0,59,6,113,32,115,5,131
db 250,1,114,17,156,255,30,132,32,198,6,112,32,0,43,6
db 113,32,131,218,0,163,121,32,137,22,123,32,250,142,22,138
db 32,139,38,136,32,198,6,110,32,0,251,128,62,112,32,0
db 116,4,176,32,230,32,93,94,95,90,89,91,88,7,31,207
db 156,30,209,227,209,227,250,80,43,192,142,216,88,137,7,137
db 87,2,31,157,195,156,30,209,227,209,227,250,43,192,142,216
db 139,7,139,87,2,31,157,195,187,8,0,232,231,255,140,203
db 59,211,117,8,61,4,1,117,3,248,235,1,249,195,161,51
db 0,195,30,6,86,87,83,82,38,129,14,220,31,3,128,128
db 62,109,32,0,116,3,233,130,0,38,129,38,220,31,255,127
db 142,218,139,240,191,236,31,232,243,1,139,215,139,247,6,31
db 232,250,1,191,224,31,232,109,0,115,28,139,216,128,63,49
db 114,21,128,63,50,119,16,138,7,180,0,44,49,38,163,62
db 35,38,131,38,220,31,254,191,231,31,232,73,0,115,60,139
db 216,128,63,71,116,12,128,63,69,116,16,128,63,66,116,20
db 235,41,38,199,6,56,35,0,0,235,16,38,199,6,56,35
db 1,0,235,7,38,199,6,56,35,2,0,38,255,54,56,35
db 38,143,6,58,35,38,131,38,220,31,253,38,161,220,31,90
db 91,95,94,7,31,195,86,87,83,81,82,185,0,0,139,215
db 38,138,5,10,192,116,32,138,28,10,219,116,26,56,216,116
db 15,11,201,116,8,185,0,0,139,250,70,235,227,70,235,231
db 185,1,0,70,71,235,217,11,201,117,3,248,235,3,139,198
db 249,90,89,91,95,94,195,6,30,232,153,0,11,192,117,0
db 31,7,195,128,62,109,32,0,116,5,184,1,0,235,59,232
db 6,17,11,192,116,3,64,235,49,232,234,1,232,5,2,11
db 192,116,5,131,192,7,235,34,232,147,1,187,8,0,232,180
db 254,163,132,32,137,22,134,32,187,8,0,140,202,184,4,1
db 232,141,254,198,6,109,32,1,43,192,195,128,62,109,32,0
db 116,44,131,78,18,1,232,159,254,114,26,187,8,0,161,132
db 32,139,22,134,32,232,104,254,131,62,62,35,0,116,3,232
db 15,19,232,169,14,198,6,109,32,0,51,192,235,3,184,1
db 0,195,156,250,232,205,1,232,124,1,232,151,1,51,192,157
db 195,184,0,128,195,129,14,222,31,7,128,128,62,109,32,0
db 116,3,233,132,0,129,38,222,31,255,127,142,218,139,240,191
db 236,31,232,120,0,139,215,139,247,6,31,232,127,0,6,86
db 176,65,232,152,0,114,34,139,216,232,170,0,114,27,128,252
db 2,117,22,36,240,60,128,119,16,60,16,114,12,168,16,117
db 8,163,125,32,131,38,222,31,254,176,80,232,111,0,114,19
db 139,216,232,129,0,114,12,163,127,32,64,163,129,32,131,38
db 222,31,251,176,73,232,85,0,114,24,139,216,232,103,0,114
db 17,37,255,0,60,9,118,2,44,6,162,131,32,131,38,222
db 31,253,161,222,31,94,7,235,3,184,255,255,195,86,87,80
db 172,10,192,116,3,170,235,248,170,88,95,94,195,86,80,139
db 242,252,172,60,96,114,5,44,32,136,68,255,10,192,117,242
db 88,94,195,252,172,174,117,4,10,192,117,248,195,30,86,6
db 31,138,224,252,172,10,192,116,9,56,224,117,247,139,198,248
db 235,1,249,94,31,195,43,210,38,138,7,67,60,32,116,60
db 60,0,116,56,177,4,211,226,60,48,114,10,60,57,119,6
db 44,48,10,208,235,22,60,97,114,6,60,122,119,2,44,97
db 60,65,114,24,60,70,119,20,44,55,10,208,38,138,7,67
db 60,32,116,4,10,192,117,204,139,194,235,1,249,195,80,83
db 81,82,187,0,0,185,0,128,176,194,186,67,0,238,186,64
db 0,236,236,138,224,236,134,224,59,195,114,2,139,216,226,232
db 131,251,240,114,3,187,255,255,137,30,113,32,137,30,115,32
db 90,89,91,88,195,80,228,97,168,16,117,250,228,97,168,16
db 116,250,226,242,88,195,199,6,170,35,0,0,199,6,161,35
db 0,0,199,6,176,35,0,1,255,54,58,35,143,6,56,35
db 232,19,0,195,232,76,15,11,192,117,10,232,37,15,198,6
db 246,34,1,51,192,195,87,86,185,8,0,139,54,56,35,209
db 230,209,230,209,230,209,230,129,198,82,35,191,66,35,252,243
db 165,94,95,195,80,232,11,15,232,55,15,184,0,0,232,202
db 2,161,113,32,232,102,4,88,195,135,22,226,34,135,6,224
db 34,51,192,195,156,250,6,87,128,62,222,34,1,116,10,131
db 62,151,35,0,116,3,232,203,255,199,6,146,35,0,0,137
db 22,53,35,163,51,35,142,194,139,248,232,191,2,129,250,84
db 77,116,3,233,191,0,61,100,104,116,3,233,183,0,232,171
db 2,232,178,2,131,248,2,114,3,233,169,0,232,167,2,163
db 159,35,232,161,2,10,228,120,42,163,155,35,198,6,237,35
db 0,199,6,178,35,0,0,235,35,52,18,134,228,202,194,232
db 210,236,202,64,168,202,198,208,220,222,216,222,206,242,64,152
db 232,200,92,246,220,246,228,43,210,232,10,3,139,14,159,35
db 131,249,65,114,3,185,65,0,139,54,8,42,73,227,10,198
db 68,9,1,3,54,6,42,226,246,198,68,9,129,139,54,8
db 42,232,56,2,61,107,114,117,60,129,250,84,77,117,54,232
db 42,2,87,6,80,82,232,54,2,137,60,140,68,2,137,68
db 4,137,84,6,90,88,7,95,246,68,9,128,117,13,232,128
db 2,198,68,9,1,3,54,6,42,235,198,199,6,146,35,1
db 0,43,192,235,3,184,1,0,95,7,157,195,184,255,255,131
db 62,146,35,0,116,17,232,250,13,232,215,13,232,183,3,184
db 1,0,232,166,1,43,192,195,128,62,150,35,1,116,249,156
db 250,232,192,254,199,6,146,35,0,0,157,195,131,62,151,35
db 1,117,13,232,189,13,184,2,0,232,127,1,51,192,235,3
db 184,1,0,195,131,62,151,35,2,117,16,232,149,13,232,61
db 0,184,1,0,232,100,1,51,192,235,3,184,1,0,195,87
db 86,6,30,139,240,142,218,185,8,0,191,3,0,209,231,209
db 231,209,231,209,231,129,199,82,35,252,243,165,31,198,6,55
db 35,1,184,3,0,232,167,0,51,192,7,94,95,195,81,83
db 86,87,156,250,131,62,146,35,0,117,3,233,135,0,161,151
db 35,163,153,35,184,2,0,232,17,1,198,6,222,34,1,255
db 54,8,42,199,6,8,42,120,38,255,54,6,42,199,6,6
db 42,14,0,139,22,53,35,161,51,35,251,232,54,254,190,238
db 35,187,120,38,139,4,137,71,10,139,68,2,137,71,12,246
db 68,9,128,117,8,131,198,10,131,195,14,235,231,198,6,223
db 34,0,199,6,182,35,255,255,255,54,180,35,199,6,180,35
db 1,0,232,193,2,128,62,223,34,1,116,2,235,244,143,6
db 180,35,143,6,6,42,143,6,8,42,198,6,222,34,0,161
db 153,35,232,150,0,157,95,94,91,89,195,161,56,35,195,156
db 250,128,62,246,34,0,116,41,131,248,3,114,12,131,248,3
db 117,26,128,62,55,35,0,116,19,232,167,12,163,56,35,232
db 116,253,232,142,12,232,54,255,51,192,235,8,184,2,0,235
db 3,184,1,0,157,195,161,62,35,195,83,156,250,128,62,246
db 34,0,116,65,11,192,116,5,131,248,1,117,51,232,115,12
db 139,30,62,35,137,30,60,35,163,62,35,232,26,12,11,192
db 116,3,64,235,7,232,28,253,11,192,116,13,80,139,30,60
db 35,137,30,62,35,232,12,253,88,80,232,225,254,88,235,8
db 184,1,0,235,3,184,1,0,157,91,195,6,87,131,62,226
db 34,0,117,9,131,62,224,34,0,117,2,235,7,196,62,224
db 34,38,137,5,163,151,35,95,7,195,38,138,5,71,11,255
db 117,9,80,140,192,5,0,16,142,192,88,195,232,235,255,138
db 240,232,230,255,138,208,232,225,255,138,224,232,220,255,195,43
db 210,42,228,232,212,255,10,192,121,86,138,224,128,228,127,232
db 200,255,10,192,120,6,208,224,209,232,235,68,138,212,138,224
db 128,228,127,232,180,255,10,192,120,21,208,224,209,232,208,202
db 208,202,138,242,128,230,192,10,230,50,214,42,246,235,33,138
db 242,138,212,138,224,128,228,127,232,143,255,208,226,208,224,209
db 232,209,202,209,202,209,202,138,238,128,229,63,10,229,51,209
db 195,3,248,131,210,0,116,10,140,192,5,0,16,74,117,250
db 142,192,195,80,86,87,6,30,60,240,117,3,232,105,12,81
db 232,87,255,139,200,50,237,232,80,255,232,91,12,226,248,89
db 31,7,95,94,88,195,83,43,201,137,14,174,35,11,210,116
db 7,209,234,209,216,65,235,245,187,128,1,131,248,19,115,3
db 184,19,0,59,195,118,28,87,139,248,65,209,232,59,195,119
db 249,43,210,151,247,247,139,194,139,215,232,40,0,163,174,35
db 139,199,95,163,157,35,184,1,0,211,224,163,172,35,186,18
db 0,184,220,52,247,54,157,35,3,210,131,208,0,232,43,0
db 232,106,0,91,195,83,81,82,43,219,11,192,116,23,11,210
db 116,19,185,0,128,209,224,114,4,59,194,114,4,11,217,43
db 194,209,233,117,240,139,195,90,89,91,195,247,38,176,35,2
db 192,128,212,0,131,210,0,10,246,116,6,184,255,255,249,235
db 13,138,194,134,224,59,6,236,34,115,3,161,236,34,195,80
db 83,81,82,86,139,216,161,117,32,139,14,115,32,247,225,247
db 243,163,119,32,163,117,32,94,90,89,91,88,195,80,83,82
db 156,250,131,62,148,35,0,116,3,232,211,255,163,115,32,199
db 6,121,32,0,0,199,6,123,32,0,0,139,30,234,34,186
db 0,0,247,243,161,113,32,139,30,115,32,137,30,232,34,80
db 186,0,0,247,243,163,228,34,137,22,230,34,88,147,163,115
db 32,176,54,186,67,0,238,235,0,235,0,160,115,32,230,64
db 235,0,235,0,138,196,230,64,235,0,235,0,198,6,247,34
db 1,157,90,91,88,195,128,62,150,35,1,117,3,233,76,1
db 198,6,150,35,1,6,139,54,8,42,198,6,236,35,0,128
db 62,222,34,1,116,19,139,14,174,35,1,14,178,35,161,172
db 35,131,208,0,163,180,35,235,6,199,6,182,35,255,255,196
db 60,246,68,9,1,117,3,233,180,0,198,6,236,35,1,131
db 124,4,0,117,6,131,124,6,0,116,26,161,180,35,41,68
db 4,131,92,6,0,120,14,116,3,233,146,0,131,124,4,0
db 116,3,233,137,0,138,68,8,162,12,42,38,246,5,128,116
db 9,232,150,253,136,68,8,162,12,42,138,92,8,138,203,128
db 251,240,115,30,42,255,128,227,15,138,135,66,35,152,163,64
db 35,81,138,14,12,42,128,225,240,36,15,10,200,136,14,12
db 42,89,138,217,131,227,112,209,235,209,235,209,235,255,151,184
db 35,246,68,9,1,116,55,128,62,222,34,1,117,18,59,124
db 10,114,13,140,193,59,76,12,114,6,128,100,9,254,235,30
db 232,92,253,11,192,117,4,11,210,116,138,1,68,4,17,84
db 6,120,130,117,9,131,124,4,0,117,3,233,119,255,128,62
db 222,34,1,117,23,139,68,4,139,84,6,11,210,117,13,11
db 192,116,9,59,6,182,35,115,3,163,182,35,246,68,9,128
db 117,12,137,60,140,68,2,3,54,6,42,233,17,255,128,62
db 222,34,1,117,6,161,182,35,163,180,35,137,60,140,68,2
db 128,62,236,35,0,117,15,198,6,223,34,1,128,62,222,34
db 1,116,3,232,206,249,7,198,6,150,35,0,195,82,232,185
db 252,138,224,232,180,252,128,62,222,34,1,116,40,131,62,64
db 35,255,116,33,131,62,170,35,0,116,23,131,62,64,35,9
db 116,16,127,10,139,22,170,35,247,218,42,226,235,4,2,38
db 170,35,232,243,8,90,195,82,232,127,252,138,224,232,122,252
db 128,62,222,34,1,116,45,131,62,64,35,255,116,38,131,62
db 170,35,0,116,23,131,62,64,35,9,116,16,127,10,139,22
db 170,35,247,218,42,226,235,4,2,38,170,35,128,252,127,119
db 3,232,204,8,90,195,232,65,252,138,224,232,60,252,131,62
db 64,35,255,116,3,232,204,8,195,232,46,252,138,224,232,41
db 252,131,62,64,35,255,116,3,232,200,8,195,232,27,252,138
db 224,131,62,64,35,255,116,3,232,212,8,195,138,224,232,9
db 252,131,62,64,35,255,116,3,232,224,8,195,232,251,251,138
db 224,232,246,251,131,62,64,35,255,116,3,232,220,8,195,138
db 217,128,227,15,208,227,42,255,255,151,200,35,195,232,218,8
db 232,252,251,232,91,252,195,232,208,251,232,205,251,195,232,201
db 251,195,195,195,195,195,195,195,195,232,190,251,6,87,140,217
db 142,193,191,10,42,185,2,0,242,174,117,19,139,223,95,7
db 6,87,232,202,251,129,235,11,42,209,227,255,151,232,35,95
db 7,232,187,251,232,26,252,195,83,81,82,199,6,164,35,1
db 0,128,62,237,35,0,116,3,233,204,0,185,4,0,209,234
db 209,216,226,250,131,208,0,131,210,0,185,36,244,11,210,117
db 25,61,36,244,119,20,61,9,61,115,3,184,9,61,145,247
db 241,145,146,232,111,252,139,209,235,39,11,210,116,26,131,250
db 1,119,5,61,54,110,118,6,186,1,0,184,230,99,209,234
db 209,216,209,233,11,210,117,246,139,208,139,194,232,70,252,43
db 210,139,202,247,38,155,35,3,192,131,210,0,139,218,139,193
db 247,38,155,35,3,195,131,210,0,86,83,82,80,139,240,139
db 194,153,185,20,0,247,241,139,216,139,198,247,241,139,211,91
db 94,147,135,214,139,14,161,35,198,6,163,35,1,11,201,116
db 36,121,7,247,217,198,6,163,35,0,129,249,128,0,115,27
db 128,62,163,35,0,116,8,3,195,19,214,226,250,235,6,43
db 195,27,214,226,250,199,6,164,35,0,0,91,94,131,62,164
db 35,0,117,3,232,111,251,161,164,35,90,89,91,195,82,232
db 168,250,138,208,232,163,250,138,224,232,158,250,163,166,35,137
db 22,168,35,232,2,255,90,195,82,57,6,161,35,116,31,139
db 208,11,210,121,2,247,218,131,250,20,118,5,184,1,0,235
db 15,163,161,35,161,166,35,139,22,168,35,232,218,254,51,192
db 90,195,82,156,250,57,6,170,35,116,30,139,208,11,210,121
db 2,247,218,131,250,12,118,5,184,1,0,235,14,163,170,35
db 232,96,6,232,77,6,232,245,248,51,192,157,90,195,83,6
db 87,187,1,0,128,62,109,32,0,116,69,156,250,252,80,139
db 216,42,255,128,227,15,138,135,66,35,152,163,64,35,191,250
db 34,138,194,170,138,193,170,88,128,62,150,35,1,116,249,138
db 14,12,42,162,12,42,138,216,131,227,112,209,235,209,235,209
db 235,191,250,34,255,151,184,35,136,14,12,42,157,187,0,0
db 139,195,95,7,91,195,51,219,232,1,0,195,83,6,87,86
db 199,6,220,34,1,0,128,62,109,32,0,116,119,139,248,139
db 194,142,192,87,190,120,38,198,68,9,1,3,249,19,195,137
db 60,137,68,2,95,38,138,5,71,235,16,38,138,5,71,168
db 128,117,248,38,138,5,71,168,128,116,73,80,139,216,42,255
db 128,227,15,138,135,66,35,152,163,64,35,88,128,62,150,35
db 1,116,249,81,138,14,12,42,162,12,42,138,200,138,216,131
db 227,112,209,235,209,235,209,235,255,151,184,35,136,14,12,42
db 89,59,60,114,182,140,192,59,68,2,115,2,226,173,199,6
db 220,34,0,0,161,220,34,94,95,7,91,195,128,100,9,254
db 195,6,87,131,62,20,35,0,117,9,131,62,18,35,0,117
db 2,235,7,196,62,18,35,38,137,5,163,148,35,95,7,195
db 80,209,232,209,232,209,232,209,232,3,208,88,131,224,15,195
db 86,87,83,81,156,250,176,0,186,67,0,238,235,0,235,0
db 228,64,134,224,228,64,134,224,251,139,62,117,32,59,62,119
db 32,116,17,119,7,51,192,186,0,0,235,94,163,232,34,186
db 0,0,235,9,59,6,232,34,118,3,71,235,239,139,14,115
db 32,43,200,163,232,34,139,193,186,0,0,137,62,119,32,139
db 216,139,199,247,38,115,32,3,195,131,210,0,139,240,139,194
db 153,139,14,234,34,247,241,139,248,139,198,247,241,139,215,163
db 238,34,137,22,240,34,139,216,139,242,43,6,242,34,27,22
db 244,34,137,30,242,34,137,54,244,34,157,89,91,95,94,195
db 30,6,80,83,81,82,87,86,85,140,200,142,216,142,192,139
db 22,125,32,131,194,4,176,130,238,235,0,235,0,235,0,235
db 0,66,236,168,4,117,3,233,48,1,198,6,49,35,1,138
db 14,131,32,232,129,1,250,140,22,16,35,137,38,14,35,140
db 216,142,208,188,14,43,251,232,50,1,252,191,64,0,232,232
db 6,114,3,233,209,0,232,200,6,128,62,43,35,0,117,11
db 198,6,43,35,1,199,6,117,32,0,0,6,87,128,62,44
db 35,0,116,47,196,62,26,35,80,161,8,35,139,22,10,35
db 64,131,210,0,59,22,6,35,114,15,59,6,4,35,118,9
db 88,199,6,12,35,1,0,235,108,163,8,35,137,22,10,35
db 88,235,5,14,7,191,0,35,137,62,38,35,140,195,137,30
db 40,35,170,232,186,254,128,62,47,35,1,117,7,161,238,34
db 139,22,240,34,171,139,194,170,131,62,30,35,0,117,9,131
db 62,32,35,0,117,2,235,22,80,255,54,40,35,255,54,38
db 35,255,54,36,35,255,54,34,35,255,30,30,35,88,128,62
db 44,35,0,116,16,139,30,38,35,131,195,4,131,22,28,35
db 0,137,30,26,35,95,7,128,62,44,35,0,116,17,131,62
db 12,35,0,116,10,198,6,50,35,1,232,243,2,235,36,79
db 11,255,116,3,233,39,255,128,62,44,35,0,116,21,80,82
db 161,26,35,139,22,28,35,232,38,254,163,26,35,137,22,28
db 35,90,88,250,139,38,14,35,142,22,16,35,198,6,49,35
db 0,138,14,131,32,232,52,0,235,24,131,62,252,34,0,117
db 12,131,62,254,34,0,117,5,232,17,0,235,5,156,255,30
db 252,34,93,94,95,90,89,91,88,7,31,207,80,176,32,128
db 62,131,32,7,118,2,230,160,230,32,88,195,80,82,156,250
db 128,249,8,115,5,186,33,0,235,6,186,161,0,128,233,8
db 184,0,1,210,228,246,212,236,235,0,235,0,34,196,238,235
db 0,235,0,157,90,88,195,80,82,156,250,128,249,8,115,5
db 186,33,0,235,6,186,161,0,128,233,8,184,0,1,210,228
db 236,235,0,235,0,10,196,238,235,0,235,0,157,90,88,195
db 83,139,30,45,35,232,61,240,140,203,59,211,117,8,61,144
db 15,117,3,248,235,1,249,91,195,80,83,81,82,156,250,160
db 131,32,60,8,115,4,4,8,235,4,44,8,4,112,42,228
db 163,45,35,139,30,45,35,232,11,240,137,22,254,34,163,252
db 34,139,30,45,35,140,202,184,144,15,232,227,239,138,14,131
db 32,128,249,8,115,5,186,33,0,235,6,186,161,0,128,233
db 8,184,0,1,210,228,236,34,196,162,42,35,138,14,131,32
db 232,57,255,198,6,48,35,1,157,90,89,91,88,195,82,156
db 250,128,62,48,35,0,116,45,232,117,255,114,40,128,62,131
db 32,8,115,5,186,33,0,235,3,186,161,0,236,10,6,42
db 35,238,139,30,45,35,139,22,254,34,161,252,34,232,128,239
db 198,6,48,35,0,157,90,195,80,156,250,199,6,121,32,0
db 0,199,6,123,32,0,0,128,62,247,34,0,117,17,161,248
db 34,57,6,113,32,115,6,161,113,32,163,248,34,235,3,161
db 115,32,232,72,247,157,88,195,128,62,109,32,0,116,31,128
db 62,131,32,255,117,5,184,1,0,235,17,135,22,20,35,135
db 6,18,35,80,43,192,232,88,252,88,51,192,235,3,184,1
db 0,195,128,62,131,32,255,117,5,184,1,0,235,5,162,47
db 35,51,192,195,81,128,62,109,32,0,116,58,128,62,131,32
db 255,117,5,184,1,0,235,44,73,137,14,4,35,137,62,6
db 35,232,60,252,163,22,35,131,192,4,163,26,35,137,22,24
db 35,131,210,0,137,22,28,35,198,6,44,35,1,198,6,43
db 35,0,51,192,235,3,184,1,0,89,195,128,62,109,32,0
db 116,32,128,62,131,32,255,117,5,184,1,0,235,18,135,22
db 32,35,135,6,30,35,135,62,36,35,135,14,34,35,51,192
db 235,3,184,1,0,195,156,250,128,62,109,32,0,116,124,131
db 62,148,35,0,117,112,131,62,125,32,255,116,14,128,62,131
db 32,255,116,7,232,229,3,114,2,235,5,184,1,0,235,84
db 161,248,34,59,6,234,34,115,5,184,1,0,235,70,6,87
db 80,196,62,22,35,161,8,35,171,161,10,35,171,88,95,7
db 248,131,62,151,35,0,117,5,232,132,2,235,10,131,62,62
db 35,0,117,3,232,120,2,115,5,184,1,0,235,22,232,90
db 2,232,180,254,184,255,255,232,87,251,232,12,254,198,6,50
db 35,0,51,192,235,8,184,1,0,235,3,184,1,0,157,195
db 131,62,148,35,0,116,8,156,250,232,4,0,51,192,157,195
db 156,250,82,131,62,151,35,0,117,9,161,113,32,232,237,245
db 232,158,2,232,1,2,43,192,232,22,251,232,48,254,6,87
db 80,128,62,50,35,1,116,7,128,62,49,35,1,116,249,198
db 6,50,35,0,250,196,62,22,35,161,8,35,171,161,10,35
db 171,88,95,7,90,157,195,0,131,62,62,35,1,116,25,161
db 125,32,131,248,255,117,5,184,1,0,235,38,232,107,3,11
db 192,116,31,184,2,0,235,26,131,62,127,32,255,117,5,184
db 3,0,235,14,232,245,2,115,5,184,4,0,235,4,51,192
db 43,192,195,131,62,62,35,0,116,5,232,109,1,235,3,232
db 73,4,195,131,62,62,35,0,116,5,232,248,0,235,3,232
db 66,6,195,131,62,62,35,0,116,18,131,62,148,35,0,117
db 7,232,139,1,51,192,235,2,51,192,235,5,232,78,3,51
db 192,195,131,62,62,35,0,116,2,235,3,232,164,3,195,80
db 160,12,42,232,178,0,88,134,224,232,172,0,134,224,232,167
db 0,195,232,234,255,195,235,250,131,62,62,35,0,116,5,232
db 240,255,235,3,232,136,9,195,10,192,116,234,232,208,255,195
db 131,62,62,35,0,116,5,232,238,255,235,3,232,228,9,195
db 232,188,255,195,131,62,62,35,0,116,3,232,242,255,195,232
db 173,255,195,131,62,62,35,0,116,5,232,242,255,235,3,232
db 62,10,195,80,160,12,42,232,78,0,88,232,74,0,195,131
db 62,62,35,0,116,5,232,234,255,235,3,232,80,10,195,80
db 160,12,42,232,50,0,88,232,46,0,195,131,62,62,35,0
db 116,3,232,234,255,195,232,102,255,195,131,62,62,35,0,116
db 5,232,242,255,235,3,232,113,10,195,131,62,62,35,0,116
db 5,232,143,243,235,0,195,0,80,82,81,156,250,232,98,1
db 157,89,90,88,195,80,83,81,82,128,62,150,35,0,116,2
db 226,247,156,250,131,62,62,35,1,117,17,131,62,151,35,0
db 117,10,128,62,15,43,1,116,3,232,131,0,184,176,0,232
db 198,255,80,176,120,232,192,255,176,0,232,187,255,88,232,183
db 255,80,176,121,232,177,255,176,0,232,172,255,88,232,168,255
db 80,176,123,232,162,255,176,0,232,157,255,88,254,192,168,15
db 116,2,235,203,157,90,89,91,88,195,80,184,176,0,232,135
db 255,80,176,7,232,129,255,176,100,232,124,255,88,254,192,168
db 15,116,2,235,233,88,195,80,82,139,22,125,32,131,194,4
db 176,131,238,66,236,36,251,238,90,88,195,80,82,139,22,125
db 32,131,194,4,176,131,238,66,236,12,4,238,90,88,195,80
db 81,82,156,250,248,128,62,15,43,1,116,91,131,62,148,35
db 1,116,84,185,2,0,81,176,255,139,22,129,32,238,185,0
db 16,236,10,192,121,5,226,249,249,235,1,248,89,115,4,226
db 229,235,42,139,22,127,32,236,52,254,117,33,176,63,139,22
db 129,32,238,185,0,16,236,10,192,121,5,226,249,249,235,13
db 139,22,127,32,236,52,254,116,3,249,235,1,248,139,22,127
db 32,236,198,6,15,43,1,139,22,127,32,236,157,90,89,88
db 195,80,81,82,156,250,248,128,62,15,43,0,116,47,131,62
db 148,35,1,116,40,185,2,0,81,176,255,139,22,129,32,238
db 185,0,16,236,10,192,121,5,226,249,249,235,1,248,89,115
db 2,226,229,139,22,127,32,236,198,6,15,43,0,157,90,89
db 88,195,81,82,80,185,0,16,139,22,129,32,236,168,64,116
db 6,226,249,249,88,235,7,88,139,22,127,32,238,248,90,89
db 195,81,82,185,0,16,139,22,129,32,236,10,192,121,2,226
db 249,139,22,127,32,236,90,89,195,80,82,139,22,129,32,236
db 10,192,121,3,248,235,1,249,90,88,195,81,82,156,250,248
db 187,0,0,80,139,208,66,176,255,238,185,0,16,226,254,236
db 176,255,238,185,0,16,236,10,192,121,3,226,249,249,74,236
db 88,114,2,235,3,187,1,0,157,90,89,195,83,161,127,32
db 128,62,14,43,1,117,2,235,18,232,191,255,11,219,116,3
db 249,235,9,198,6,14,43,1,163,127,32,248,91,195,80,81
db 82,3,22,125,32,134,224,238,185,1,0,232,135,237,66,138
db 196,238,185,3,0,232,125,237,90,89,88,195,81,82,185,0
db 1,138,224,128,228,224,139,22,125,32,236,36,224,56,196,116
db 5,226,247,249,235,1,248,90,89,195,186,0,0,184,0,1
db 232,187,255,184,96,4,232,181,255,184,128,4,232,175,255,176
db 0,232,200,255,114,35,184,255,2,232,162,255,184,33,4,232
db 156,255,176,192,232,181,255,114,16,184,96,4,232,143,255,184
db 128,4,232,137,255,43,192,235,3,184,1,0,195,186,0,0
db 184,96,4,232,120,255,184,128,4,232,114,255,186,2,0,184
db 1,5,232,105,255,184,63,4,232,99,255,199,6,16,43,6
db 0,186,0,0,184,32,1,232,84,255,184,0,8,232,78,255
db 184,32,189,232,72,255,232,1,0,195,186,0,0,184,0,166
db 232,59,255,184,10,182,232,53,255,184,11,167,232,47,255,184
db 10,183,232,41,255,184,87,168,232,35,255,184,9,184,232,29
db 255,195,186,2,0,184,48,192,232,19,255,254,196,128,252,200
db 118,246,176,0,43,219,180,192,2,167,70,70,232,255,254,67
db 131,251,18,114,241,186,0,0,184,48,192,232,240,254,254,196
db 128,252,200,118,246,176,0,43,219,180,192,2,167,70,70,232
db 220,254,67,131,251,18,114,241,186,2,0,184,0,4,232,205
db 254,184,0,5,232,199,254,6,87,140,216,142,192,252,176,255
db 185,11,0,191,66,69,243,170,95,7,195,6,87,140,223,142
db 199,252,43,192,163,18,43,198,6,3,70,32,184,48,48,185
db 8,0,191,100,68,243,171,43,192,185,8,0,191,116,68,243
db 171,43,192,185,8,0,191,132,68,243,171,43,192,185,16,0
db 191,148,68,243,171,184,0,1,185,16,0,191,180,68,243,171
db 176,255,185,11,0,191,110,69,243,170,186,0,0,184,32,189
db 232,91,254,232,20,255,95,7,195,80,81,86,138,225,172,232
db 76,254,172,138,200,128,225,192,136,141,127,69,138,200,128,225
db 63,128,233,63,246,217,136,141,171,69,128,196,32,232,46,254
db 172,128,196,32,232,39,254,172,128,196,32,232,32,254,70,172
db 128,196,96,232,24,254,94,89,88,195,81,87,86,139,62,64
db 35,138,141,100,68,136,143,44,69,177,5,42,228,211,224,139
db 240,129,198,20,49,138,68,31,152,177,4,211,224,209,227,137
db 135,22,69,209,235,138,68,4,138,100,16,37,1,1,208,224
db 10,196,136,135,99,69,42,246,138,151,212,68,138,143,223,68
db 139,251,232,116,255,138,167,121,69,138,68,4,36,15,136,133
db 215,69,10,135,44,69,232,181,253,128,193,3,131,198,6,131
db 199,11,232,84,255,131,198,6,128,193,5,131,199,11,232,72
db 255,138,167,121,69,128,196,3,138,68,4,36,15,136,133,215
db 69,10,135,44,69,232,134,253,128,193,3,131,198,6,131,199
db 11,232,37,255,94,95,89,195,81,86,198,135,44,69,48,42
db 228,45,128,0,209,224,209,224,209,224,209,224,190,20,65,3
db 240,138,68,3,128,251,7,114,3,138,68,2,138,224,37,63
db 192,136,167,127,69,44,63,246,216,136,135,171,69,128,251,6
db 117,85,138,167,223,68,186,0,0,172,232,49,253,128,196,3
db 172,232,42,253,128,236,3,128,196,32,172,232,32,253,70,185
db 2,0,128,196,32,172,232,21,253,128,196,3,172,232,14,253
db 128,236,3,226,237,128,196,96,172,232,2,253,128,196,3,172
db 232,251,252,128,236,3,138,227,128,196,192,172,36,63,10,135
db 44,69,232,233,252,235,58,138,167,223,68,186,0,0,172,70
db 232,219,252,128,196,32,172,70,232,211,252,185,2,0,128,196
db 32,172,70,232,200,252,226,246,128,196,96,172,70,232,190,252
db 138,167,3,70,128,196,192,172,10,135,44,69,36,63,232,173
db 252,94,89,195,80,83,82,186,0,0,128,38,3,70,32,160
db 3,70,180,189,232,151,252,139,30,16,43,75,128,191,66,69
db 127,119,3,232,63,0,254,203,121,242,90,91,88,195,87,43
db 219,160,23,70,60,35,114,39,60,75,119,35,42,228,44,35
db 162,23,70,139,248,138,157,4,68,10,219,116,18,129,235,128
db 0,209,227,209,227,209,227,209,227,138,159,31,65,42,255,139
db 195,11,192,95,195,81,82,128,143,66,69,128,198,135,110,69
db 255,209,227,139,135,234,68,209,235,138,204,42,246,138,151,212
db 68,138,167,223,68,128,196,128,232,35,252,138,193,128,196,16
db 232,27,252,90,89,195,87,232,148,255,117,3,233,132,0,160
db 23,70,42,228,139,248,138,133,4,68,232,139,254,138,135,254
db 69,8,6,3,70,160,24,70,232,106,0,232,63,1,128,251
db 6,116,5,128,251,8,117,80,160,23,70,42,228,139,248,138
db 133,52,68,232,80,1,114,75,138,204,42,246,138,151,212,68
db 138,167,12,70,232,199,251,138,193,128,196,16,232,191,251,128
db 251,8,117,36,160,23,70,42,228,139,248,138,133,52,68,4
db 7,232,34,1,114,29,138,204,180,167,186,0,0,232,158,251
db 138,193,128,196,16,232,150,251,160,3,70,180,189,186,0,0
db 232,139,251,95,195,87,42,228,249,209,208,139,62,64,35,209
db 231,247,165,180,68,138,196,208,232,208,232,208,232,208,232,20
db 0,42,228,139,248,209,231,139,133,25,70,95,195,42,228,3
db 193,131,248,63,118,11,11,192,120,5,184,63,0,235,2,43
db 192,131,232,63,247,216,195,81,87,86,42,246,138,151,212,68
db 81,138,143,99,69,42,237,139,249,138,141,14,70,42,237,139
db 241,89,139,251,247,198,1,0,116,21,138,133,171,69,232,188
db 255,10,133,127,69,138,167,223,68,128,196,32,232,15,251,131
db 199,11,247,198,2,0,116,21,138,133,171,69,232,158,255,10
db 133,127,69,138,167,223,68,128,196,35,232,241,250,131,199,11
db 247,198,4,0,116,21,138,133,171,69,232,128,255,10,133,127
db 69,138,167,223,68,128,196,40,232,211,250,131,199,11,247,198
db 8,0,116,21,138,133,171,69,232,98,255,10,133,127,69,138
db 167,223,68,128,196,43,232,181,250,94,95,89,195,87,139,251
db 42,228,2,133,171,69,43,201,232,66,255,10,135,127,69,138
db 167,223,68,128,251,6,117,3,128,196,3,128,196,32,186,0
db 0,232,138,250,95,195,87,138,224,42,192,209,232,209,232,209
db 227,3,135,22,69,209,235,139,62,64,35,209,231,3,133,148
db 68,191,0,3,43,199,114,42,61,0,24,245,114,36,43,210
db 247,247,208,224,208,224,138,224,42,192,139,250,209,231,11,133
db 20,43,209,227,137,135,234,68,139,14,18,43,137,143,0,69
db 209,235,95,195,6,87,140,217,142,193,139,14,16,43,138,224
db 12,128,191,66,69,242,174,116,32,139,14,16,43,176,255,191
db 66,69,242,174,116,19,139,14,16,43,176,128,191,66,69,132
db 5,117,5,71,226,249,235,3,71,235,65,86,43,246,139,14
db 16,43,191,0,69,187,66,69,139,195,80,139,5,43,6,18
db 43,153,51,194,43,194,139,208,88,59,214,118,4,139,242,139
db 195,71,71,67,73,117,227,11,246,117,3,249,235,11,45,66
db 69,139,216,232,127,253,139,195,248,94,235,7,129,239,67,69
db 139,199,248,95,7,195,42,228,249,208,224,139,30,64,35,209
db 227,137,135,180,68,209,235,195,131,62,64,35,9,116,89,180
db 16,60,42,118,8,180,48,60,84,118,2,180,32,139,30,64
db 35,136,167,100,68,86,190,66,69,139,14,16,43,42,246,172
db 36,127,58,6,64,35,117,44,139,222,129,235,67,69,136,167
db 44,69,80,138,196,138,151,212,68,138,167,223,68,128,196,160
db 10,135,215,69,232,87,249,36,48,128,196,3,10,135,237,69
db 232,75,249,88,73,117,200,94,195,6,87,131,62,64,35,9
db 116,42,139,30,64,35,136,135,132,68,10,192,117,30,140,217
db 142,193,185,11,0,191,110,69,160,64,35,242,174,117,13,139
db 223,129,235,111,69,232,205,252,11,201,117,239,95,7,195,252
db 136,38,23,70,162,24,70,139,14,16,43,128,62,64,35,9
db 117,30,232,121,252,116,89,139,216,138,135,254,69,246,208,34
db 6,3,70,162,3,70,180,189,186,0,0,232,224,248,235,64
db 6,87,140,216,142,192,160,23,70,138,38,64,35,191,55,69
db 139,14,16,43,242,174,117,38,139,223,129,235,56,69,58,167
db 66,69,116,4,227,24,235,236,139,62,64,35,128,189,132,68
db 0,116,8,139,199,136,135,110,69,235,3,232,87,252,95,7
db 195,235,148,252,136,38,23,70,10,192,116,245,162,24,70,139
db 30,64,35,138,195,60,9,117,5,232,106,252,235,97,255,6
db 18,43,232,63,254,114,88,139,216,160,64,35,134,135,66,69
db 36,127,58,6,64,35,116,13,87,139,62,64,35,138,133,116
db 68,232,70,250,95,160,24,70,232,202,252,139,200,232,7,253
db 160,23,70,136,135,55,69,232,188,253,115,7,128,143,66,69
db 128,235,28,42,246,138,151,212,68,138,204,138,167,223,68,128
db 196,128,232,41,248,138,193,12,32,128,196,16,232,31,248,195
db 252,128,252,123,114,5,232,107,251,235,34,6,87,134,196,140
db 223,142,199,191,61,70,185,3,0,242,174,139,223,95,7,117
db 12,134,196,129,235,62,70,209,227,255,151,64,70,195,252,139
db 30,64,35,136,167,116,68,6,87,140,216,142,192,128,62,64
db 35,9,116,51,139,14,16,43,160,64,35,12,128,191,66,69
db 242,174,117,8,198,69,255,255,11,201,117,244,139,14,16,43
db 191,66,69,160,64,35,242,174,117,13,139,223,129,235,67,69
db 232,98,251,11,201,117,236,95,7,195,252,87,139,62,64,35
db 131,255,9,116,68,208,228,209,192,44,128,152,209,231,137,133
db 148,68,43,219,160,64,35,58,135,66,69,117,37,138,135,55
db 69,232,242,252,114,28,138,204,138,167,223,68,128,196,128,42
db 246,138,151,212,68,232,102,247,138,193,12,32,128,196,16,232
db 92,247,67,59,30,16,43,114,203,95,195,0,3,128,7,128
db 83,89,78,84,72,58,0,77,65,80,58,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255
db 255,0,0,255,0,0,0,0,0,0,0,0,222,1,226,1
db 199,2,211,2,27,3,82,3,159,6,57,5,68,5,60,6
db 88,6,108,6,132,6,107,7,111,7,136,13,178,13,222,13
db 54,14,97,3,97,3,97,3,97,3,97,3,97,3,97,3
db 97,3,97,3,166,7,170,7,88,18,130,18,148,18,219,18
db 6,19,144,19,97,3,97,3,97,3,97,3,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,169,4,169,4,0,0
db 0,0,0,0,0,0,0,0,0,128,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0
db 0,0,0,1,2,3,4,5,6,7,8,9,255,255,255,255
db 255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13
db 14,15,0,1,2,3,4,5,6,7,8,9,255,255,255,255
db 255,255,255,255,255,255,255,255,255,255,255,255,255,255,12,13
db 14,9,255,255,255,255,255,255,255,255,255,255,255,255,255,255
db 255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,1,0,0,0,0,0,0,93,11,151,11,214,11,233,11
db 252,11,12,12,28,12,47,12,61,12,60,12,71,12,78,12
db 60,12,60,12,82,12,61,12,84,12,60,12,85,12,86,12
db 87,12,60,12,88,12,89,12,110,13,204,14,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,10,0,238,35,81,47,0,0,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195
db 195,195,195,195,195,195,195,195,195,195,195,195,195,195,0,0
db 6,0,0,0,87,1,87,1,88,1,88,1,88,1,88,1
db 89,1,89,1,89,1,90,1,90,1,90,1,91,1,91,1
db 91,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1
db 94,1,94,1,94,1,95,1,95,1,95,1,96,1,96,1
db 96,1,97,1,97,1,97,1,98,1,98,1,98,1,99,1
db 99,1,99,1,100,1,100,1,100,1,100,1,101,1,101,1
db 101,1,102,1,102,1,102,1,103,1,103,1,103,1,104,1
db 104,1,104,1,105,1,105,1,105,1,106,1,106,1,106,1
db 107,1,107,1,107,1,108,1,108,1,108,1,109,1,109,1
db 109,1,110,1,110,1,110,1,111,1,111,1,111,1,112,1
db 112,1,112,1,113,1,113,1,113,1,114,1,114,1,114,1
db 115,1,115,1,115,1,116,1,116,1,116,1,117,1,117,1
db 117,1,118,1,118,1,118,1,119,1,119,1,119,1,120,1
db 120,1,120,1,121,1,121,1,121,1,122,1,122,1,122,1
db 123,1,123,1,123,1,124,1,124,1,124,1,125,1,125,1
db 125,1,126,1,126,1,126,1,127,1,127,1,128,1,128,1
db 128,1,129,1,129,1,129,1,130,1,130,1,130,1,131,1
db 131,1,131,1,132,1,132,1,132,1,133,1,133,1,133,1
db 134,1,134,1,135,1,135,1,135,1,136,1,136,1,136,1
db 137,1,137,1,137,1,138,1,138,1,138,1,139,1,139,1
db 139,1,140,1,140,1,141,1,141,1,141,1,142,1,142,1
db 142,1,143,1,143,1,143,1,144,1,144,1,145,1,145,1
db 145,1,146,1,146,1,146,1,147,1,147,1,147,1,148,1
db 148,1,149,1,149,1,149,1,150,1,150,1,150,1,151,1
db 151,1,151,1,152,1,152,1,153,1,153,1,153,1,154,1
db 154,1,154,1,155,1,155,1,156,1,156,1,156,1,157,1
db 157,1,157,1,158,1,158,1,158,1,159,1,159,1,160,1
db 160,1,160,1,161,1,161,1,161,1,162,1,162,1,163,1
db 163,1,163,1,164,1,164,1,165,1,165,1,165,1,166,1
db 166,1,166,1,167,1,167,1,168,1,168,1,168,1,169,1
db 169,1,169,1,170,1,170,1,171,1,171,1,171,1,172,1
db 172,1,173,1,173,1,173,1,174,1,174,1,174,1,175,1
db 175,1,176,1,176,1,176,1,177,1,177,1,178,1,178,1
db 178,1,179,1,179,1,180,1,180,1,180,1,181,1,181,1
db 182,1,182,1,182,1,183,1,183,1,184,1,184,1,184,1
db 185,1,185,1,186,1,186,1,186,1,187,1,187,1,188,1
db 188,1,188,1,189,1,189,1,190,1,190,1,190,1,191,1
db 191,1,192,1,192,1,192,1,193,1,193,1,194,1,194,1
db 194,1,195,1,195,1,196,1,196,1,196,1,197,1,197,1
db 198,1,198,1,198,1,199,1,199,1,200,1,200,1,201,1
db 201,1,201,1,202,1,202,1,203,1,203,1,203,1,204,1
db 204,1,205,1,205,1,205,1,206,1,206,1,207,1,207,1
db 208,1,208,1,208,1,209,1,209,1,210,1,210,1,211,1
db 211,1,211,1,212,1,212,1,213,1,213,1,213,1,214,1
db 214,1,215,1,215,1,216,1,216,1,216,1,217,1,217,1
db 218,1,218,1,219,1,219,1,219,1,220,1,220,1,221,1
db 221,1,222,1,222,1,222,1,223,1,223,1,224,1,224,1
db 225,1,225,1,225,1,226,1,226,1,227,1,227,1,228,1
db 228,1,229,1,229,1,229,1,230,1,230,1,231,1,231,1
db 232,1,232,1,232,1,233,1,233,1,234,1,234,1,235,1
db 235,1,236,1,236,1,236,1,237,1,237,1,238,1,238,1
db 239,1,239,1,240,1,240,1,240,1,241,1,241,1,242,1
db 242,1,243,1,243,1,244,1,244,1,245,1,245,1,245,1
db 246,1,246,1,247,1,247,1,248,1,248,1,249,1,249,1
db 250,1,250,1,250,1,251,1,251,1,252,1,252,1,253,1
db 253,1,254,1,254,1,255,1,255,1,255,1,0,2,0,2
db 1,2,1,2,2,2,2,2,3,2,3,2,4,2,4,2
db 5,2,5,2,6,2,6,2,6,2,7,2,7,2,8,2
db 8,2,9,2,9,2,10,2,10,2,11,2,11,2,12,2
db 12,2,13,2,13,2,14,2,14,2,14,2,15,2,15,2
db 16,2,16,2,17,2,17,2,18,2,18,2,19,2,19,2
db 20,2,20,2,21,2,21,2,22,2,22,2,23,2,23,2
db 24,2,24,2,25,2,25,2,26,2,26,2,26,2,27,2
db 27,2,28,2,28,2,29,2,29,2,30,2,30,2,31,2
db 31,2,32,2,32,2,33,2,33,2,34,2,34,2,35,2
db 35,2,36,2,36,2,37,2,37,2,38,2,38,2,39,2
db 39,2,40,2,40,2,41,2,41,2,42,2,42,2,43,2
db 43,2,44,2,44,2,45,2,45,2,46,2,46,2,47,2
db 47,2,48,2,48,2,49,2,49,2,50,2,50,2,51,2
db 51,2,52,2,52,2,53,2,53,2,54,2,54,2,55,2
db 55,2,56,2,56,2,57,2,57,2,58,2,59,2,59,2
db 60,2,60,2,61,2,61,2,62,2,62,2,63,2,63,2
db 64,2,64,2,65,2,65,2,66,2,66,2,67,2,67,2
db 68,2,68,2,69,2,69,2,70,2,70,2,71,2,72,2
db 72,2,73,2,73,2,74,2,74,2,75,2,75,2,76,2
db 76,2,77,2,77,2,78,2,78,2,79,2,79,2,80,2
db 81,2,81,2,82,2,82,2,83,2,83,2,84,2,84,2
db 85,2,85,2,86,2,86,2,87,2,88,2,88,2,89,2
db 89,2,90,2,90,2,91,2,91,2,92,2,92,2,93,2
db 94,2,94,2,95,2,95,2,96,2,96,2,97,2,97,2
db 98,2,98,2,99,2,100,2,100,2,101,2,101,2,102,2
db 102,2,103,2,103,2,104,2,105,2,105,2,106,2,106,2
db 107,2,107,2,108,2,108,2,109,2,110,2,110,2,111,2
db 111,2,112,2,112,2,113,2,114,2,114,2,115,2,115,2
db 116,2,116,2,117,2,117,2,118,2,119,2,119,2,120,2
db 120,2,121,2,121,2,122,2,123,2,123,2,124,2,124,2
db 125,2,125,2,126,2,127,2,127,2,128,2,128,2,129,2
db 130,2,130,2,131,2,131,2,132,2,132,2,133,2,134,2
db 134,2,135,2,135,2,136,2,137,2,137,2,138,2,138,2
db 139,2,139,2,140,2,141,2,141,2,142,2,142,2,143,2
db 144,2,144,2,145,2,145,2,146,2,147,2,147,2,148,2
db 148,2,149,2,150,2,150,2,151,2,151,2,152,2,153,2
db 153,2,154,2,154,2,155,2,156,2,156,2,157,2,157,2
db 158,2,159,2,159,2,160,2,160,2,161,2,162,2,162,2
db 163,2,163,2,164,2,165,2,165,2,166,2,166,2,167,2
db 168,2,168,2,169,2,170,2,170,2,171,2,171,2,172,2
db 173,2,173,2,20,171,255,255,15,0,20,158,255,255,0,1
db 18,25,240,240,14,1,17,0,243,244,0,0,0,0,0,0
db 0,0,0,0,18,0,255,255,0,0,18,26,255,255,0,5
db 19,27,243,245,0,1,1,0,244,245,0,0,0,0,0,0
db 0,0,0,0,49,147,253,205,1,2,114,147,253,221,0,3
db 50,21,255,36,0,1,241,2,211,243,0,0,0,0,0,0
db 0,0,0,0,49,148,223,255,1,0,114,148,223,255,0,4
db 50,18,217,41,0,2,241,2,211,185,0,0,0,0,0,0
db 0,0,0,0,16,0,255,249,14,0,16,9,255,175,0,2
db 1,16,244,233,15,1,17,1,243,201,0,0,0,0,0,0
db 0,0,0,0,179,193,223,223,0,0,243,215,220,255,0,7
db 178,23,211,211,1,2,241,128,210,243,0,0,0,0,0,0
db 0,0,0,0,0,28,239,175,1,0,2,18,255,160,0,1
db 1,1,223,34,0,0,1,4,245,213,0,0,0,0,0,0
db 0,0,0,0,0,0,255,255,15,0,2,30,255,6,0,4
db 2,37,243,245,14,0,0,3,179,245,0,0,0,0,0,0
db 0,0,0,48,0,8,255,255,0,0,0,30,156,255,0,0
db 2,28,212,247,1,0,1,0,212,247,0,0,0,0,0,0
db 0,0,0,0,48,225,251,224,14,3,50,220,244,230,0,3
db 53,148,240,243,15,2,1,1,244,245,0,0,0,0,0,0
db 0,0,0,0,18,18,223,255,1,0,23,20,223,253,0,6
db 28,11,246,252,1,6,1,0,212,245,0,0,0,0,0,0
db 0,0,0,0,128,0,255,255,14,0,128,54,255,255,0,1
db 140,92,243,245,14,1,194,0,243,245,0,0,0,0,0,0
db 0,0,0,0,0,0,255,255,0,0,0,14,159,255,0,0
db 2,24,245,245,1,0,1,0,245,245,0,0,0,0,0,0
db 0,0,0,0,3,18,255,255,14,1,3,210,255,254,0,1
db 5,207,248,88,15,6,1,0,243,246,0,0,0,0,0,0
db 0,0,0,0,33,28,207,239,0,0,33,18,245,230,0,1
db 36,23,245,229,1,0,1,6,196,228,0,0,0,0,0,0
db 0,0,0,0,1,158,255,239,14,0,2,158,243,239,0,2
db 1,30,247,67,14,3,17,0,243,212,0,0,0,0,0,0
db 0,0,0,0,34,82,127,191,4,7,34,82,127,159,0,6
db 34,78,115,255,5,5,225,3,115,255,0,0,0,0,0,0
db 0,0,0,0,34,82,127,191,4,7,34,82,127,159,0,6
db 33,142,115,255,5,5,226,3,115,255,0,0,0,0,0,0
db 0,0,0,0,2,72,255,191,4,0,2,72,255,158,0,2
db 2,78,243,255,5,2,1,0,244,255,0,0,0,0,0,0
db 0,0,0,0,34,91,127,191,4,0,34,92,127,159,0,0
db 33,24,115,252,5,5,225,0,116,255,0,0,0,0,0,0
db 0,0,0,0,32,67,127,191,4,0,32,18,127,159,0,0
db 33,20,115,252,5,4,225,0,116,255,0,0,0,0,0,0
db 0,0,0,0,49,37,80,255,14,4,49,0,80,255,0,5
db 50,45,255,255,15,2,177,0,85,255,0,0,0,0,0,0
db 0,0,0,0,193,69,127,255,0,0,193,104,125,255,0,2
db 193,30,116,255,1,3,193,0,116,255,0,0,0,0,0,0
db 0,0,0,0,17,33,80,255,14,4,17,0,64,255,0,4
db 19,0,255,255,15,2,209,0,85,255,0,0,0,0,0,0
db 0,0,0,0,17,0,242,255,14,0,16,28,252,255,0,5
db 18,27,241,242,14,1,1,0,212,255,0,0,0,0,0,0
db 0,0,0,0,17,8,255,255,8,0,16,40,255,255,0,3
db 1,8,244,243,8,1,2,1,244,255,0,0,0,0,0,0
db 0,0,0,0,17,18,255,255,14,0,18,30,255,255,0,5
db 19,30,243,255,14,1,1,0,211,255,0,0,0,0,0,0
db 0,0,0,0,0,37,255,255,0,0,0,33,255,255,0,5
db 1,5,240,240,1,0,1,0,244,246,0,0,0,0,0,0
db 0,0,0,0,0,8,255,255,0,0,0,5,255,255,0,2
db 1,8,240,255,1,1,2,1,244,255,0,0,0,0,0,0
db 0,0,0,0,32,8,255,255,1,0,32,8,255,255,0,0
db 33,8,240,255,0,1,34,0,243,255,0,0,0,0,0,0
db 0,0,0,0,32,8,255,255,1,0,32,8,255,255,0,0
db 33,8,240,255,0,1,34,1,243,255,0,0,0,0,0,0
db 0,0,0,0,16,28,255,255,1,0,16,8,255,255,0,0
db 20,76,240,241,0,1,24,11,240,244,0,0,0,0,0,0
db 0,0,0,0,17,0,196,239,9,0,16,143,223,239,0,7
db 16,23,239,240,9,7,209,0,227,246,0,4,0,0,0,0
db 0,0,0,0,17,2,243,239,7,5,16,161,215,239,0,3
db 16,30,229,255,6,2,209,0,227,255,0,0,0,0,0,0
db 0,0,0,0,1,30,255,239,6,0,2,0,255,239,0,0
db 1,18,240,246,7,2,2,0,244,245,0,0,0,0,0,0
db 0,0,0,0,32,28,255,255,1,0,32,23,243,255,0,2
db 35,0,243,255,1,0,34,3,255,255,0,0,0,0,0,0
db 0,0,0,0,1,28,255,247,1,0,1,30,244,247,0,2
db 1,14,242,255,0,0,2,1,245,255,0,0,0,0,0,0
db 0,0,0,0,1,28,255,247,1,0,1,30,244,247,0,2
db 1,78,242,255,0,0,2,0,245,255,0,0,0,0,0,0
db 0,0,0,0,0,33,245,239,14,2,0,29,245,239,0,2
db 0,144,243,239,14,0,0,0,245,249,0,0,0,0,0,0
db 0,0,0,0,1,25,255,247,1,0,1,19,244,247,0,2
db 1,83,242,255,0,0,2,1,245,255,0,0,0,0,0,0
db 0,0,0,0,18,31,81,242,14,0,17,0,80,246,0,1
db 18,64,79,255,15,0,18,28,95,255,0,0,0,0,0,0
db 0,0,0,0,17,31,81,210,14,0,17,0,80,211,0,1
db 19,64,79,255,15,0,19,28,95,255,0,0,0,0,0,0
db 0,0,0,0,17,30,81,242,14,0,17,0,80,249,0,1
db 17,0,79,255,15,0,17,28,95,255,0,0,0,0,0,0
db 0,0,0,0,17,31,80,210,14,0,17,0,81,211,0,1
db 16,147,79,255,15,3,18,23,95,255,0,2,0,0,0,0
db 0,0,0,0,209,30,66,243,14,4,209,0,64,244,0,1
db 210,7,79,255,15,3,209,28,79,255,0,2,0,0,0,0
db 0,0,0,0,0,0,255,255,0,0,0,38,223,255,0,1
db 1,28,246,255,0,1,1,0,181,245,0,0,0,0,0,0
db 0,0,0,0,16,41,143,223,0,1,16,41,161,210,0,0
db 18,41,209,210,0,0,16,6,146,210,0,0,0,0,0,0
db 0,0,0,48,17,0,244,246,7,0,18,0,252,253,0,0
db 18,30,254,255,7,0,17,0,252,255,0,0,0,0,0,0
db 0,0,0,0,49,30,79,255,14,0,49,30,79,255,0,0
db 49,19,64,243,15,1,241,3,64,243,0,0,0,0,0,0
db 0,0,0,0,49,30,47,255,14,0,49,30,47,255,0,0
db 49,19,32,240,15,1,241,3,32,244,0,0,0,0,0,0
db 0,0,0,0,49,30,79,255,14,0,49,30,79,255,0,0
db 49,19,64,243,15,1,240,1,64,243,0,0,0,0,0,0
db 0,0,0,0,0,7,79,255,6,0,0,33,79,255,0,1
db 2,19,68,198,7,2,1,8,68,198,0,0,0,0,0,0
db 0,0,0,0,80,23,127,255,0,1,80,69,127,255,0,4
db 80,82,128,255,1,4,209,1,113,255,0,0,0,0,0,0
db 0,0,0,0,17,18,79,255,0,4,17,87,79,255,0,4
db 17,75,66,242,1,2,17,3,65,243,0,0,0,0,0,0
db 0,0,0,0,192,0,95,255,0,0,192,38,79,255,0,5
db 192,19,64,240,1,2,49,0,81,244,0,0,0,0,0,0
db 0,0,0,0,18,192,255,251,1,0,18,192,255,253,0,2
db 18,192,252,253,1,3,17,0,196,105,0,4,0,0,0,0
db 0,0,0,0,1,29,127,255,14,2,1,28,85,249,0,1
db 1,16,114,239,14,1,1,4,130,252,0,0,0,0,0,0
db 0,0,0,0,1,26,241,255,14,0,2,1,115,255,0,0
db 0,0,255,255,15,1,128,0,127,255,0,2,0,0,0,0
db 0,0,0,0,1,33,241,255,14,0,2,0,116,255,0,0
db 1,158,255,255,15,1,128,0,87,247,0,2,0,0,0,0
db 0,0,0,0,208,25,255,255,6,2,16,28,78,253,0,2
db 18,20,64,215,7,1,81,3,64,216,0,0,0,0,0,0
db 0,0,0,0,1,29,241,255,14,0,2,0,116,255,0,0
db 0,94,255,255,15,1,128,0,87,247,0,2,0,0,0,0
db 0,0,0,0,1,38,127,255,14,2,1,30,116,255,0,1
db 1,20,114,255,14,1,1,0,114,255,0,0,0,0,0,0
db 0,0,0,0,1,29,127,223,14,2,1,92,116,249,0,1
db 1,18,112,239,14,1,2,3,114,252,0,0,0,0,0,0
db 0,0,0,0,1,40,127,255,14,2,1,40,85,255,0,1
db 3,83,114,231,14,1,1,1,129,248,0,0,0,0,0,0
db 0,0,0,0,209,58,83,135,7,3,17,31,64,135,0,2
db 17,23,64,167,6,1,81,2,64,168,0,0,0,0,0,0
db 0,0,0,0,209,58,83,135,7,3,17,31,64,135,0,2
db 17,23,64,167,6,1,82,2,64,168,0,0,0,0,0,0
db 0,0,0,0,128,40,255,255,15,0,128,51,255,255,0,0
db 65,72,242,249,14,0,146,0,82,249,0,0,0,0,0,0
db 0,0,0,0,128,40,255,255,15,0,128,51,255,255,0,0
db 65,8,242,249,14,0,146,0,82,249,0,0,0,0,0,0
db 0,0,0,0,16,33,95,255,14,0,16,33,95,255,0,1
db 17,15,80,240,15,0,17,0,80,255,0,0,0,0,0,0
db 0,0,0,0,1,28,241,255,14,0,2,5,115,255,0,0
db 0,64,255,255,15,1,128,0,127,255,0,2,0,0,0,0
db 0,0,0,0,16,33,95,255,14,0,16,33,95,255,0,1
db 17,15,80,240,15,0,17,0,80,255,0,0,0,0,0,0
db 0,0,0,0,17,82,95,253,14,0,17,97,95,253,0,0
db 18,151,80,235,15,1,16,2,80,248,0,0,0,0,0,0
db 0,0,0,0,2,94,159,255,1,0,2,83,114,253,0,0
db 1,87,115,204,0,0,2,2,114,188,0,0,0,0,0,0
db 0,0,0,0,1,64,95,191,4,3,1,97,95,255,0,2
db 1,77,82,240,5,2,17,0,80,255,0,0,0,0,0,0
db 0,0,0,0,1,82,111,205,0,2,1,102,111,205,0,1
db 1,72,98,207,1,2,1,2,98,207,0,0,0,0,0,0
db 0,0,0,0,1,83,111,254,0,0,1,72,109,254,0,0
db 1,83,97,252,1,1,65,0,97,252,0,0,0,0,0,0
db 0,0,0,0,2,105,95,191,4,0,1,155,95,255,0,2
db 1,79,97,255,5,1,17,0,65,255,0,0,0,0,0,0
db 0,0,0,0,129,64,255,255,0,0,129,75,255,255,0,1
db 193,91,146,246,1,3,193,0,146,247,0,0,0,0,0,0
db 0,0,0,0,0,158,60,255,6,2,2,158,60,254,0,1
db 1,158,2,255,7,4,2,0,98,255,0,0,0,0,0,0
db 0,0,0,0,145,78,95,253,14,2,145,83,95,253,0,0
db 146,85,80,235,15,1,145,0,80,248,0,0,0,0,0,0
db 0,0,0,0,16,8,95,255,14,6,0,41,95,255,0,6
db 6,192,255,255,15,6,1,5,242,246,0,6,0,0,0,0
db 0,0,0,0,16,1,255,255,14,0,16,0,255,255,0,3
db 18,0,255,226,14,0,16,0,144,249,0,3,0,0,0,0
db 0,0,0,0,32,33,127,191,4,7,32,33,127,191,0,6
db 33,19,115,249,5,5,226,1,115,249,0,0,0,0,0,0
db 0,0,0,0,32,30,159,191,14,7,32,30,159,191,0,6
db 33,19,147,249,15,5,226,1,147,249,0,0,0,0,0,0
db 0,0,0,0,16,30,79,255,14,0,16,5,79,255,0,7
db 1,94,64,247,15,7,17,0,65,247,0,0,0,0,0,0
db 0,0,0,0,2,98,108,191,4,3,2,91,108,255,0,2
db 2,84,99,250,5,2,17,64,96,250,0,0,0,0,0,0
db 0,0,0,0,16,30,255,255,14,0,16,30,255,255,0,7
db 1,94,240,247,15,7,17,0,65,247,0,0,0,0,0,0
db 0,0,0,0,16,18,255,255,14,2,16,17,255,169,0,2
db 1,68,243,231,15,1,17,0,240,198,0,0,0,0,0,0
db 0,0,0,0,32,8,255,255,4,2,32,28,255,255,0,2
db 33,24,242,245,5,2,225,0,242,245,0,0,0,0,0,0
db 0,0,0,0,32,30,95,255,4,2,32,30,95,255,0,2
db 34,94,82,245,5,2,225,0,82,245,0,0,0,0,0,0
db 0,0,0,0,1,25,83,245,10,1,3,18,83,229,0,0
db 1,8,83,229,11,1,129,0,83,245,0,0,0,0,0,0
db 0,0,0,0,17,28,63,255,0,0,17,28,255,255,0,3
db 18,28,50,245,0,2,145,0,49,229,0,0,0,0,0,0
db 0,0,0,0,18,107,255,251,0,2,18,171,255,251,0,3
db 18,146,66,245,0,2,145,0,65,245,0,0,0,0,0,0
db 0,0,0,0,49,30,79,255,14,0,49,30,79,255,0,0
db 49,19,64,243,15,1,241,3,64,243,0,0,0,0,0,0
db 0,0,0,0,2,40,95,239,14,0,1,28,95,239,0,0
db 1,22,81,233,15,2,1,0,81,233,0,0,0,0,0,0
db 0,0,0,0,17,33,49,241,14,0,210,0,50,241,0,1
db 81,37,63,255,15,0,209,0,20,255,0,0,0,0,0,0
db 0,0,0,0,0,33,207,237,14,1,1,33,252,237,0,0
db 6,33,245,229,15,2,2,3,196,228,0,0,0,0,0,0
db 0,0,0,0,0,0,111,239,14,1,0,41,111,239,0,0
db 2,30,99,226,15,2,1,1,96,229,0,0,0,0,0,0
db 0,0,0,0,5,33,207,239,14,0,1,33,255,239,0,0
db 1,72,244,231,15,1,1,0,195,229,0,0,0,0,0,0
db 0,0,0,0,0,28,207,238,14,0,0,28,255,238,0,2
db 1,18,244,228,15,2,1,0,244,244,0,0,0,0,0,0
db 0,0,0,0,16,1,255,255,10,0,16,1,255,255,0,0
db 17,94,241,242,10,3,209,0,242,244,0,0,0,0,0,0
db 0,0,0,0,18,31,33,245,14,4,209,3,34,245,0,1
db 82,0,3,245,15,7,209,0,34,245,0,4,0,0,0,0
db 0,0,0,0,20,0,255,255,14,2,210,8,255,253,0,1
db 80,192,244,245,15,2,209,0,243,245,0,0,0,0,0,0
db 0,0,0,0,209,29,66,243,14,4,209,0,64,244,0,1
db 210,3,79,255,15,3,209,29,79,255,0,2,0,0,0,0
db 0,0,0,0,129,72,253,254,14,4,129,94,254,254,0,3
db 130,13,244,244,15,1,193,5,180,246,0,0,0,0,0,0
db 0,0,0,0,131,102,159,255,14,2,195,83,159,255,0,0
db 131,81,149,245,15,0,193,0,148,245,0,0,0,0,0,0
db 0,0,0,0,0,50,244,148,1,0,3,22,244,7,0,4
db 2,37,243,6,0,0,192,0,243,5,0,3,0,0,0,0
db 0,0,0,0,128,128,255,255,15,2,131,24,255,255,0,3
db 130,146,243,244,14,1,129,0,244,245,0,0,0,0,0,0
db 0,0,0,0,128,0,255,255,1,0,131,82,255,38,0,2
db 129,28,245,246,0,0,129,0,244,245,0,0,0,0,0,0
db 0,0,0,0,49,38,80,255,14,4,49,0,64,255,0,5
db 48,25,255,255,15,2,177,0,85,255,0,5,0,0,0,0
db 0,0,0,0,49,28,242,255,14,4,49,3,66,255,0,5
db 48,28,242,255,15,2,178,0,82,255,0,0,0,0,0,0
db 0,0,0,0,17,97,95,255,14,0,17,97,95,255,0,1
db 17,11,80,240,15,0,17,0,80,255,0,0,0,0,0,0
db 0,0,0,0,0,0,15,255,0,0,0,0,15,255,0,0
db 2,0,5,245,1,0,2,0,245,245,0,0,0,0,0,0
db 0,0,0,0,13,116,242,243,0,0,12,94,242,245,0,1
db 6,200,242,245,0,1,2,0,244,214,0,0,0,0,0,0
db 0,0,0,0,0,0,255,239,0,0,0,192,255,239,0,0
db 5,20,244,230,1,2,130,0,246,229,0,0,0,0,0,0
db 0,0,0,0,1,3,255,255,1,0,2,19,246,255,0,0
db 1,3,248,245,1,0,129,0,213,245,0,0,0,0,0,0
db 0,0,0,0,0,64,255,255,0,0,0,192,252,255,0,7
db 0,0,252,83,1,5,0,0,196,38,0,0,0,0,0,0
db 0,0,0,0,0,0,255,255,0,0,0,0,252,255,0,2
db 0,0,252,83,1,2,3,0,196,38,0,0,0,0,0,0
db 0,0,0,0,16,64,255,255,1,3,16,64,255,255,0,1
db 16,64,249,249,1,1,17,0,148,245,0,6,0,0,0,0
db 0,0,0,0,0,20,240,255,14,0,0,2,240,255,0,0
db 0,2,240,255,14,0,0,5,63,255,0,0,0,0,0,0
db 0,0,0,0,49,30,66,255,15,0,49,211,66,255,0,2
db 48,19,50,255,15,2,40,8,77,255,0,0,0,0,0,0
db 0,0,0,0,4,5,73,255,14,0,2,69,153,255,0,0
db 2,5,150,255,14,1,1,5,66,159,0,0,0,0,0,0
db 0,0,0,0,0,0,240,241,14,0,0,2,240,241,0,0
db 0,2,240,241,14,0,0,8,34,242,0,0,0,0,0,0
db 0,0,0,0,192,0,13,255,15,0,192,0,14,207,0,1
db 195,0,13,255,15,1,195,0,66,251,0,0,0,0,0,0
db 0,0,0,0,15,18,204,255,1,5,15,236,252,255,0,5
db 7,151,252,17,0,5,6,0,252,5,0,0,0,0,0,0
db 0,0,0,0,2,28,159,255,14,0,2,33,31,255,0,0
db 0,0,145,241,14,0,1,0,50,50,0,0,0,0,0,0
db 0,0,0,208,0,0,240,241,14,0,0,8,242,241,0,0
db 0,8,112,241,14,0,0,13,114,242,0,0,0,0,0,0
db 0,0,0,0,0,64,255,255,0,0,0,192,252,255,0,6
db 0,0,252,83,1,4,0,0,196,38,0,0,0,0,0,0
db 0,0,0,0,0,0,11,0,168,214,76,69,0,0,0,6
db 0,0,0,0,0,0,11,0,170,210,200,183,0,0,0,6
db 0,0,0,0,38,0,0,0,240,250,240,183,3,3,14,6
db 0,0,0,0,16,194,7,35,247,224,245,65,2,2,130,7
db 0,0,0,0,242,241,10,56,136,173,244,136,2,2,2,7
db 0,0,0,0,208,194,129,35,166,224,246,65,2,2,129,7
db 0,0,0,0,64,194,0,35,245,224,56,65,0,2,5,8
db 0,0,0,0,1,194,3,35,184,224,181,65,1,2,125,10
db 0,0,0,0,64,194,0,35,245,224,56,65,0,2,241,8
db 0,0,0,0,1,179,8,193,136,24,165,80,1,0,163,10
db 0,0,0,0,0,194,0,35,198,224,152,65,0,2,131,8
db 0,0,0,0,1,179,9,193,134,24,165,80,1,0,163,10
db 0,0,0,0,0,194,0,35,198,224,152,65,0,2,3,8
db 0,0,0,0,0,194,0,35,198,224,152,65,0,2,5,8
db 0,0,0,0,4,194,12,35,197,224,246,65,0,2,5,9
db 0,0,0,0,1,194,0,35,198,224,152,65,0,2,5,8
db 0,0,0,0,1,194,130,35,246,224,213,65,1,2,131,10
db 0,0,0,0,3,191,9,255,227,208,151,80,0,0,187,10
db 0,0,0,0,14,191,7,255,181,209,21,80,1,0,187,10
db 0,0,0,0,1,191,7,193,119,209,115,80,1,0,187,10
db 0,0,0,0,14,241,199,56,149,173,120,142,0,2,2,9
db 0,0,0,0,1,191,0,255,248,210,182,80,1,0,186,10
db 0,0,0,0,10,194,199,35,149,224,120,65,0,2,124,9
db 0,0,0,0,1,191,7,193,249,212,181,80,0,0,187,9
db 0,0,0,0,209,194,5,35,231,224,101,65,1,2,157,9
db 0,0,0,0,1,254,0,56,231,169,148,130,0,2,3,8
db 0,0,0,0,1,191,0,255,231,216,148,80,0,0,187,8
db 0,0,0,0,1,191,0,255,150,216,103,80,0,0,186,8
db 0,0,0,0,1,191,0,255,180,218,38,80,0,0,186,8
db 0,0,0,0,1,191,0,193,180,219,38,80,0,0,186,8
db 0,0,0,0,149,19,129,0,231,149,1,101,0,0,14,6
db 0,0,0,0,149,19,129,0,231,149,1,101,0,0,14,6
db 0,0,0,0,16,191,0,193,150,222,103,80,0,0,186,9
db 0,0,0,0,17,191,0,255,150,223,103,80,0,0,186,9
db 0,0,0,0,0,191,14,193,88,208,220,80,2,0,186,7
db 0,0,0,0,0,191,14,255,90,210,214,80,2,0,186,7
db 0,0,0,0,82,191,7,193,73,211,4,80,3,0,187,8
db 0,0,0,0,82,191,7,193,65,212,2,80,3,0,187,8
db 0,0,0,0,0,191,14,255,90,213,214,80,1,0,186,7
db 0,0,0,0,16,191,14,193,83,214,159,80,1,0,186,7
db 0,0,0,0,17,254,0,56,245,169,117,128,0,2,2,8
db 0,0,0,0,4,194,0,35,248,224,182,65,1,2,3,8
db 0,0,0,0,4,194,0,35,248,224,183,65,1,2,3,8
db 0,0,0,0,1,191,11,193,94,216,220,80,1,0,186,7
db 0,0,0,0,0,191,7,193,92,218,220,80,1,0,186,7
db 0,0,0,0,197,213,79,0,242,244,96,122,0,0,8,6
db 0,0,0,0,197,213,79,0,242,242,96,114,0,0,8,6
db 0,0,0,0,128,129,130,131,132,0,143,135,143,137,143,139
db 143,143,142,143,144,0,0,147,0,160,0,0,0,153,154,155
db 156,157,143,143,160,161,162,163,164,165,166,0,168,0,0,0
db 0,0,0,0,47,36,67,60,60,60,48,60,52,60,55,60
db 60,64,60,67,60,60,60,60,60,48,60,60,60,67,62,67
db 67,60,60,55,53,48,60,60,79,79,60,60,91,60,53,60
db 60,79,79,0,48,48,48,48,48,48,48,48,48,48,48,48
db 48,48,48,48,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,32
db 33,34,32,33,34,48,52,50,53,49,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,255,255,255,255,255,255,255,255,255,255,255,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255
db 255,255,255,255,255,255,255,255,255,192,193,194,192,193,194,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,16,8,4,2,1,6,7,8,8,7,8,10
db 9,13,166,167,168,168,167,0,0,193,255,240,255,248,255,250
db 255,252,255,253,255,254,255,255,255,0,0,2,0,4,0,5
db 0,6,0,7,0,8,0,9,0,10,0,12,0,10,7,64
db 136,29,118,29,233,29,32,33,34,35,36,37,40,41,42,43
db 44,45,48,49,50,51,52,53
driver ends
songs_midi segment READONLY para ; The para isn't needed because it's the default, but why not keep it.
; On the other hand, the song file doesn't need to have offest 0, but was put on another segment in case more songs
; want to be used, to exist space for them - since every segment can only have 64 kB of data.
; IT would be possible to put more sons, it would be just open the files, read and put in an array, and send to the Sound
; Blaster for it to read that, but more time would be needed.
queen_i_want_to_break_free:
db 77,84,104,100,0,0,0,6,0,1,0,15,0,240,77,84
db 114,107,0,0,0,19,0,255,88,4,4,2,24,8,0,255
db 81,3,8,122,35,0,255,47,0,77,84,114,107,0,0,0
db 138,0,255,3,12,83,111,102,116,32,75,97,114,97,111,107
db 101,0,255,1,19,64,75,77,73,68,73,32,75,65,82,65
db 79,75,69,32,70,73,76,69,0,255,1,6,64,86,48,49
db 48,48,0,255,1,24,64,73,87,114,105,116,116,101,110,32
db 98,121,32,74,111,104,110,32,68,101,97,99,111,110,0,255
db 1,29,64,73,77,73,68,73,32,102,105,108,101,32,98,121
db 32,84,114,105,115,116,97,32,76,121,99,111,115,107,121,0
db 255,1,20,64,73,75,65,82,32,102,105,108,101,32,98,121
db 32,77,97,114,107,32,66,0,255,47,0,77,84,114,107,0
db 0,8,161,0,255,3,5,87,111,114,100,115,0,255,1,6
db 64,76,69,78,71,76,0,255,1,22,64,84,73,32,87,97
db 110,116,32,116,111,32,66,114,101,97,107,32,70,114,101,101
db 0,255,1,7,64,84,81,85,69,69,78,153,40,255,1,3
db 92,73,32,120,255,1,5,119,97,110,116,32,129,36,255,1
db 3,116,111,32,129,38,255,1,6,98,114,101,97,107,32,129
db 22,255,1,5,102,114,101,101,32,120,255,1,0,137,48,255
db 1,3,47,73,32,120,255,1,5,119,97,110,116,32,129,36
db 255,1,3,116,111,32,129,38,255,1,6,98,114,101,97,107
db 32,129,82,255,1,4,102,114,101,101,137,108,255,1,3,47
db 73,32,120,255,1,5,119,97,110,116,32,129,36,255,1,3
db 116,111,32,129,38,255,1,6,98,114,101,97,107,32,129,22
db 255,1,5,102,114,101,101,32,129,36,255,1,5,102,114,111
db 109,32,129,38,255,1,5,121,111,117,114,32,129,22,255,1
db 4,108,105,101,115,129,36,255,1,8,47,89,111,117,39,114
db 101,32,129,38,255,1,3,115,111,32,130,58,255,1,5,115
db 101,108,102,32,129,38,255,1,10,115,97,116,105,115,102,105
db 101,100,32,74,255,1,0,129,68,255,1,0,120,255,1,3
db 47,73,32,120,255,1,6,100,111,110,39,116,32,120,255,1
db 5,110,101,101,100,32,130,104,255,1,0,60,255,1,0,60
db 255,1,4,121,111,117,32,120,255,1,0,133,80,255,1,6
db 47,73,39,118,101,32,120,255,1,4,103,111,116,32,129,36
db 255,1,3,116,111,32,129,38,255,1,6,98,114,101,97,107
db 32,129,22,255,1,5,102,114,101,101,32,120,255,1,0,60
db 255,1,0,139,92,255,1,5,47,71,111,100,32,129,112,255
db 1,6,107,110,111,119,115,32,129,52,255,1,0,60,255,1
db 0,133,80,255,1,5,47,71,111,100,32,129,36,255,1,6
db 107,110,111,119,115,32,129,38,255,1,2,73,32,129,22,255
db 1,5,119,97,110,116,32,129,36,255,1,3,116,111,32,129
db 38,255,1,6,98,114,101,97,107,32,129,22,255,1,5,102
db 114,101,101,32,129,52,255,1,0,136,116,255,1,6,92,73
db 39,118,101,32,120,255,1,7,102,97,108,108,101,110,32,129
db 52,255,1,0,129,52,255,1,3,105,110,32,120,255,1,5
db 108,111,118,101,32,120,255,1,0,137,48,255,1,6,47,73
db 39,118,101,32,120,255,1,7,102,97,108,108,101,110,32,129
db 52,255,1,0,129,52,255,1,3,105,110,32,120,255,1,5
db 108,111,118,101,32,129,36,255,1,4,102,111,114,32,129,38
db 255,1,4,116,104,101,32,129,22,255,1,6,102,105,114,115
db 116,32,129,36,255,1,4,116,105,109,101,129,38,255,1,5
db 47,65,110,100,32,129,22,255,1,5,116,104,105,115,32,129
db 36,255,1,5,116,105,109,101,32,129,38,255,1,2,73,32
db 129,22,255,1,5,107,110,111,119,32,129,36,255,1,5,105
db 116,39,115,32,129,38,255,1,4,102,111,114,32,129,22,255
db 1,5,114,101,97,108,32,130,104,255,1,0,60,255,1,0
db 60,255,1,0,120,255,1,0,120,255,1,0,132,88,255,1
db 6,47,73,39,118,101,32,120,255,1,7,102,97,108,108,101
db 110,32,120,255,1,0,60,255,1,3,105,110,32,129,52,255
db 1,6,108,111,118,101,44,32,129,112,255,1,0,60,255,1
db 0,132,28,255,1,4,121,101,97,104,135,64,255,1,5,47
db 71,111,100,32,129,112,255,1,6,107,110,111,119,115,32,129
db 52,255,1,0,60,255,1,0,133,80,255,1,5,47,71,111
db 100,32,129,36,255,1,6,107,110,111,119,115,32,129,38,255
db 1,5,73,39,118,101,32,129,22,255,1,7,102,97,108,108
db 101,110,32,129,36,255,1,0,129,38,255,1,3,105,110,32
db 74,255,1,5,108,111,118,101,32,129,68,255,1,0,60,255
db 1,0,60,255,1,0,140,24,255,1,6,92,73,116,39,115
db 32,120,255,1,8,115,116,114,97,110,103,101,32,131,96,255
db 1,4,98,117,116,32,120,255,1,5,105,116,39,115,32,129
db 112,255,1,5,116,114,117,101,32,129,112,255,1,0,60,255
db 1,0,131,36,255,1,3,47,73,32,131,96,255,1,6,99
db 97,110,39,116,32,120,255,1,4,103,101,116,32,120,255,1
db 5,111,118,101,114,32,120,255,1,0,120,255,1,0,60,255
db 1,4,116,104,101,32,60,255,1,4,119,97,121,32,120,255
db 1,4,121,111,117,32,120,255,1,5,108,111,118,101,32,120
db 255,1,3,109,101,32,120,255,1,5,108,105,107,101,32,120
db 255,1,4,121,111,117,32,60,255,1,3,100,111,32,60,255
db 1,0,129,112,255,1,5,47,66,117,116,32,120,255,1,2
db 73,32,120,255,1,5,104,97,118,101,32,129,36,255,1,3
db 116,111,32,129,38,255,1,3,98,101,32,129,22,255,1,4
db 115,117,114,101,129,112,255,1,6,47,87,104,101,110,32,120
db 255,1,2,73,32,120,255,1,5,119,97,108,107,32,129,36
db 255,1,4,111,117,116,32,129,38,255,1,5,116,104,97,116
db 32,129,22,255,1,5,100,111,111,114,32,60,255,1,0,60
db 255,1,0,60,255,1,0,131,36,255,1,4,47,79,104,32
db 120,255,1,4,104,111,119,32,120,255,1,2,73,32,120,255
db 1,5,119,97,110,116,32,129,36,255,1,3,116,111,32,129
db 38,255,1,3,98,101,32,129,22,255,1,6,102,114,101,101
db 44,32,130,104,255,1,5,98,97,98,121,32,120,255,1,0
db 132,88,255,1,4,47,79,104,32,120,255,1,4,104,111,119
db 32,120,255,1,2,73,32,120,255,1,5,119,97,110,116,32
db 129,112,255,1,3,116,111,32,120,255,1,3,98,101,32,120
db 255,1,5,102,114,101,101,32,120,255,1,0,60,255,1,0
db 133,20,255,1,4,47,79,104,32,130,104,255,1,4,104,111
db 119,32,120,255,1,2,73,32,120,255,1,5,119,97,110,116
db 32,129,112,255,1,3,116,111,32,120,255,1,6,98,114,101
db 97,107,32,60,255,1,0,129,52,255,1,4,102,114,101,101
db 227,48,255,1,5,92,66,117,116,32,120,255,1,5,108,105
db 102,101,32,129,36,255,1,6,115,116,105,108,108,32,129,38
db 255,1,5,103,111,101,115,32,129,22,255,1,3,111,110,32
db 120,255,1,0,137,48,255,1,3,47,73,32,120,255,1,6
db 99,97,110,39,116,32,120,255,1,4,103,101,116,32,120,255
db 1,5,117,115,101,100,32,120,255,1,3,116,111,32,120,255
db 1,7,108,105,118,105,110,103,32,60,255,1,0,60,255,1
db 8,119,105,116,104,111,117,116,32,60,255,1,0,129,52,255
db 1,8,47,76,105,118,105,110,103,32,60,255,1,0,60,255
db 1,8,119,105,116,104,111,117,116,32,60,255,1,0,129,52
db 255,1,8,47,76,105,118,105,110,103,32,60,255,1,0,60
db 255,1,8,119,105,116,104,111,117,116,32,60,255,1,0,120
db 255,1,4,121,111,117,32,120,255,1,3,98,121,32,131,36
db 255,1,3,109,121,32,120,255,1,5,115,105,100,101,32,120
db 255,1,0,120,255,1,0,137,48,255,1,3,47,73,32,120
db 255,1,6,100,111,110,39,116,32,120,255,1,5,119,97,110
db 116,32,120,255,1,3,116,111,32,120,255,1,5,108,105,118
db 101,32,120,255,1,6,97,108,111,110,101,32,120,255,1,0
db 120,255,1,0,120,255,1,0,120,255,1,0,133,80,255,1
db 6,47,72,101,121,44,32,132,88,255,1,4,71,111,100,32
db 129,112,255,1,5,107,110,111,119,115,137,48,255,1,5,47
db 71,111,116,32,120,255,1,3,116,111,32,120,255,1,5,109
db 97,107,101,32,120,255,1,3,105,116,32,120,255,1,3,111
db 110,32,120,255,1,3,109,121,32,129,112,255,1,3,111,119
db 110,137,48,255,1,4,47,83,111,32,120,255,1,5,98,97
db 98,121,32,120,255,1,0,120,255,1,6,99,97,110,39,116
db 32,120,255,1,4,121,111,117,32,120,255,1,4,115,101,101
db 32,120,255,1,0,129,112,255,1,0,135,64,255,1,6,47
db 73,39,118,101,32,120,255,1,4,103,111,116,32,129,36,255
db 1,3,116,111,32,129,38,255,1,6,98,114,101,97,107,32
db 129,22,255,1,5,102,114,101,101,32,129,52,255,1,0,135
db 124,255,1,6,92,73,39,118,101,32,129,112,255,1,4,103
db 111,116,32,129,36,255,1,3,116,111,32,129,38,255,1,6
db 98,114,101,97,107,32,129,82,255,1,5,102,114,101,101,32
db 60,255,1,0,60,255,1,0,136,116,255,1,3,47,73,32
db 120,255,1,5,119,97,110,116,32,129,36,255,1,3,116,111
db 32,129,38,255,1,6,98,114,101,97,107,32,131,6,255,1
db 4,102,114,101,101,134,72,255,1,6,47,89,101,97,104,32
db 60,255,1,0,149,12,255,1,3,92,73,32,120,255,1,6
db 119,97,110,116,44,32,129,112,255,1,2,73,32,120,255,1
db 6,119,97,110,116,44,32,129,112,255,1,2,73,32,120,255
db 1,6,119,97,110,116,44,32,129,112,255,1,2,73,32,120
db 255,1,5,119,97,110,116,32,129,112,255,1,3,116,111,32
db 120,255,1,6,98,114,101,97,107,32,138,40,255,1,4,102
db 114,101,101,157,8,255,1,5,47,89,101,97,104,144,112,255
db 1,3,47,73,32,132,12,255,1,5,119,97,110,116,32,129
db 38,255,1,3,116,111,32,74,255,1,6,98,114,101,97,107
db 32,76,255,1,5,102,114,101,101,32,129,112,255,1,0,131
db 20,255,1,4,47,84,111,32,129,38,255,1,6,98,114,101
db 97,107,32,129,22,255,1,4,102,114,101,101,136,116,255,1
db 6,47,87,97,110,116,32,60,255,1,3,116,111,32,60,255
db 1,6,98,114,101,97,107,32,60,255,1,4,102,114,101,101
db 0,255,47,0,77,84,114,107,0,0,7,180,0,255,3,5
db 86,111,99,97,108,0,196,82,153,40,148,71,64,90,71,0
db 30,76,64,129,6,76,0,30,78,64,129,6,78,0,32,78
db 64,129,6,78,0,16,78,64,120,80,64,30,78,0,60,80
db 0,136,86,71,64,90,71,0,30,76,64,129,6,76,0,30
db 78,64,129,6,78,0,32,81,64,129,52,81,0,30,80,64
db 131,6,80,0,134,102,71,64,90,71,0,30,76,64,129,6
db 76,0,30,78,64,129,6,78,0,32,78,64,129,6,78,0
db 16,81,64,129,6,81,0,30,80,64,129,6,80,0,32,78
db 64,129,6,78,0,16,81,64,129,6,81,0,30,80,64,129
db 6,80,0,32,78,64,129,6,78,0,129,52,81,64,129,6
db 81,0,32,80,64,44,80,0,30,78,64,44,78,0,129,24
db 81,64,90,81,0,30,80,64,90,80,0,30,78,64,90,78
db 0,30,78,64,130,104,80,64,14,78,0,46,80,0,0,78
db 64,30,78,0,30,76,64,120,73,64,44,76,0,130,30,73
db 0,131,6,78,64,90,78,0,30,78,64,129,6,78,0,30
db 76,64,129,6,76,0,32,73,64,129,6,73,0,16,71,64
db 120,69,64,14,71,0,46,68,64,14,69,0,130,0,68,0
db 137,78,80,64,0,76,64,129,82,76,0,0,80,0,30,75
db 64,0,78,64,129,52,73,64,0,76,64,14,78,0,0,75
db 0,46,71,64,0,75,64,14,73,0,0,76,0,76,71,0
db 0,75,0,132,118,81,64,129,6,81,0,30,80,64,129,6
db 80,0,32,81,64,129,6,81,0,16,80,64,129,6,80,0
db 30,76,64,129,6,76,0,32,78,64,129,22,76,64,30,78
db 0,120,76,0,30,76,64,130,14,76,0,134,102,71,64,90
db 71,0,30,76,64,129,22,76,0,30,78,64,90,78,0,90
db 78,64,0,81,64,90,81,0,0,78,0,30,78,64,0,81
db 64,120,80,64,0,83,64,14,81,0,0,78,0,76,80,0
db 0,83,0,136,86,71,64,90,71,0,30,76,64,129,22,76
db 0,30,78,64,90,78,0,90,78,64,90,78,0,30,81,64
db 129,6,81,0,30,80,64,129,6,80,0,32,81,64,129,6
db 81,0,16,80,64,129,6,80,0,30,76,64,129,6,76,0
db 32,71,64,129,6,71,0,16,81,64,129,6,81,0,30,80
db 64,129,6,80,0,32,81,64,129,6,81,0,16,80,64,129
db 6,80,0,30,78,64,129,6,78,0,32,78,64,129,6,78
db 0,16,78,64,0,74,64,130,104,80,64,0,76,64,14,74
db 0,0,78,0,46,78,64,0,73,64,14,80,0,0,76,0
db 46,76,64,0,69,64,14,78,0,0,73,0,106,73,64,14
db 76,0,106,64,64,30,69,0,129,52,64,0,0,73,0,131
db 6,78,64,90,78,0,30,78,64,90,78,0,30,76,64,30
db 76,0,30,73,64,129,22,73,0,30,71,64,129,112,69,64
db 14,71,0,46,69,0,0,68,64,30,68,0,131,126,68,64
db 90,68,0,134,102,80,64,0,76,64,129,82,76,0,0,80
db 0,30,78,64,0,75,64,129,22,75,0,0,78,0,30,76
db 64,0,73,64,60,75,64,0,71,64,14,73,0,0,76,0
db 76,75,0,0,71,0,132,118,81,64,129,6,81,0,30,80
db 64,129,6,80,0,32,81,64,129,6,81,0,16,80,64,129
db 6,80,0,30,76,64,129,6,76,0,32,76,64,44,76,0
db 30,76,64,129,68,71,64,14,76,0,46,73,64,14,71,0
db 46,76,64,14,73,0,76,76,0,139,62,76,64,90,76,0
db 30,75,64,131,66,75,0,30,75,64,90,75,0,30,75,64
db 129,82,75,0,30,76,64,129,112,75,64,14,76,0,46,75
db 0,0,73,64,30,73,0,131,6,78,64,129,82,78,0,130
db 14,78,64,90,78,0,30,78,64,90,78,0,30,78,64,90
db 78,0,30,78,64,90,78,0,30,78,64,30,78,0,30,78
db 64,30,78,0,30,78,64,90,78,0,30,80,64,90,80,0
db 30,78,64,90,78,0,30,76,64,90,76,0,30,76,64,90
db 76,0,30,73,64,30,73,0,30,76,64,60,73,64,30,76
db 0,60,73,0,129,22,76,64,90,76,0,30,78,64,90,78
db 0,30,80,64,129,6,80,0,30,78,64,129,6,78,0,32
db 76,64,129,6,76,0,16,73,64,129,82,73,0,30,76,64
db 90,76,0,30,78,64,90,78,0,30,80,64,129,6,80,0
db 30,85,64,129,6,85,0,32,80,64,129,6,80,0,16,78
db 64,60,80,64,14,78,0,46,78,64,14,80,0,46,78,0
db 0,76,64,30,76,0,131,6,81,64,90,81,0,30,81,64
db 90,81,0,30,81,64,90,81,0,30,80,64,129,6,80,0
db 30,78,64,129,6,78,0,32,76,64,129,6,76,0,16,76
db 64,130,74,76,0,30,73,64,90,73,0,30,76,64,129,82
db 76,0,131,6,76,64,90,76,0,30,76,64,90,76,0,30
db 76,64,90,76,0,30,75,64,129,82,75,0,30,73,64,90
db 73,0,30,71,64,90,71,0,30,73,64,120,71,64,14,73
db 0,46,68,64,14,71,0,130,0,68,0,131,6,81,64,130
db 74,81,0,30,81,64,90,81,0,30,83,64,90,83,0,30
db 80,64,129,82,80,0,30,78,64,90,78,0,30,80,64,60
db 78,64,14,80,0,129,8,78,0,30,78,64,132,58,78,0
db 222,118,71,64,90,71,0,30,76,64,129,6,76,0,30,78
db 64,129,6,78,0,32,78,64,129,6,78,0,16,78,64,120
db 80,64,30,78,0,60,80,0,136,86,71,64,90,71,0,30
db 71,64,90,71,0,30,71,64,90,71,0,30,73,64,90,73
db 0,30,75,64,90,75,0,30,76,64,30,76,0,30,76,64
db 30,76,0,30,76,64,30,76,0,30,75,64,129,22,75,0
db 30,75,64,30,75,0,30,75,64,30,75,0,30,75,64,30
db 75,0,30,73,64,129,22,73,0,30,73,64,30,73,0,30
db 73,64,30,73,0,30,73,64,30,73,0,30,71,64,90,71
db 0,30,73,64,120,68,64,30,73,0,129,112,68,0,129,22
db 69,64,90,69,0,30,71,64,90,71,0,30,73,64,120,76
db 64,30,73,0,133,20,76,0,131,126,81,64,0,76,64,90
db 76,0,0,81,0,30,81,64,0,76,64,90,76,0,0,81
db 0,30,81,64,0,76,64,90,76,0,0,81,0,30,81,64
db 0,76,64,90,76,0,0,81,0,30,81,64,0,78,64,90
db 78,0,0,81,0,30,81,64,0,78,64,90,78,0,0,81
db 0,30,80,64,0,71,64,104,71,0,16,71,64,0,68,64
db 30,80,0,90,73,64,0,69,64,30,68,0,0,71,0,90
db 71,64,0,68,64,30,73,0,0,69,0,130,44,71,0,0
db 68,0,131,6,80,64,129,82,80,0,131,6,80,64,0,76
db 64,129,82,76,0,0,80,0,30,75,64,0,78,64,129,82
db 78,0,0,75,0,135,94,81,64,90,81,0,30,81,64,90
db 81,0,30,80,64,90,80,0,30,76,64,90,76,0,30,76
db 64,90,76,0,30,78,64,129,82,78,0,30,76,64,130,74
db 76,0,134,102,80,64,90,80,0,30,80,64,90,80,0,30
db 80,64,90,80,0,30,80,64,90,80,0,30,80,64,90,80
db 0,30,80,64,120,78,64,30,80,0,129,82,80,64,30,78
db 0,130,44,80,0,132,118,81,64,90,81,0,30,80,64,129
db 6,80,0,30,76,64,129,6,76,0,32,78,64,129,22,76
db 64,30,78,0,120,76,0,30,76,64,131,126,76,0,131,126
db 80,64,129,82,80,0,30,83,64,129,6,83,0,30,80,64
db 129,6,80,0,32,78,64,129,6,78,0,76,76,64,60,78
db 64,14,76,0,46,76,64,30,78,0,129,112,76,0,134,102
db 80,64,90,80,0,30,83,64,129,6,83,0,30,80,64,129
db 6,80,0,32,85,64,130,104,85,0,30,80,64,134,42,80
db 0,30,78,64,60,76,64,30,78,0,129,112,76,0,146,126
db 71,64,90,71,0,30,73,64,129,82,73,0,30,71,64,90
db 71,0,30,73,64,129,82,73,0,30,71,64,90,71,0,30
db 76,64,129,82,76,0,30,71,64,90,71,0,30,80,64,129
db 82,80,0,30,76,64,90,76,0,30,78,64,138,10,78,0
db 30,76,64,137,18,76,0,141,46,180,7,110,134,72,148,83
db 64,120,180,7,90,129,82,148,83,0,133,110,180,7,70,135
db 64,7,50,120,148,80,64,131,110,80,0,30,80,64,129,6
db 80,0,32,78,64,74,76,64,16,78,0,28,76,0,32,76
db 64,0,180,7,30,129,82,148,76,0,30,76,64,129,82,76
db 0,129,66,75,64,129,6,75,0,32,73,64,129,6,73,0
db 16,71,64,0,180,7,20,129,82,148,71,0,133,110,180,7
db 10,129,52,148,71,64,30,71,0,30,73,64,30,73,0,30
db 76,64,30,76,0,30,78,64,132,72,78,0,0,255,47,0
db 77,84,114,107,0,0,16,50,0,255,3,4,66,97,115,115
db 0,194,33,0,146,52,64,90,52,0,30,52,64,30,52,0
db 30,52,64,30,52,0,30,52,64,90,52,0,30,52,64,90
db 52,0,129,22,52,64,90,52,0,30,52,64,129,82,52,0
db 30,52,64,90,52,0,30,52,64,30,52,0,30,52,64,30
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,129,22
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,30,52,0,30,52,64
db 30,52,0,30,52,64,90,52,0,30,52,64,90,52,0,129
db 22,52,64,90,52,0,30,47,64,90,47,0,30,44,64,90
db 44,0,30,40,64,90,40,0,134,102,52,64,90,52,0,30
db 52,64,30,52,0,30,52,64,30,52,0,30,52,64,90,52
db 0,30,52,64,90,52,0,129,22,52,64,90,52,0,30,52
db 64,90,52,0,30,52,64,90,52,0,30,52,64,90,52,0
db 30,52,64,30,52,0,30,52,64,30,52,0,30,52,64,90
db 52,0,30,52,64,90,52,0,129,22,52,64,90,52,0,30
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,30,52,0,30,52,64,30,52,0,30,52,64
db 90,52,0,30,52,64,90,52,0,129,22,52,64,90,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,30,52,64,90
db 52,0,30,52,64,30,52,0,30,52,64,30,52,0,30,52
db 64,90,52,0,30,52,64,90,52,0,129,22,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,30,52,64,30,52,0,30,52,64,30,52,0,30
db 52,64,90,52,0,30,52,64,90,52,0,129,22,52,64,90
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,30,52
db 64,90,52,0,30,52,64,30,52,0,30,52,64,30,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,129,22,52,64
db 90,52,0,30,52,64,90,52,0,30,45,64,90,45,0,30
db 45,64,90,45,0,30,45,64,30,45,0,30,45,64,30,45
db 0,30,45,64,90,45,0,30,45,64,90,45,0,129,22,45
db 64,90,45,0,30,45,64,90,45,0,30,45,64,90,45,0
db 30,45,64,90,45,0,30,45,64,30,45,0,30,45,64,30
db 45,0,30,45,64,90,45,0,30,45,64,90,45,0,129,22
db 45,64,90,45,0,30,45,64,90,45,0,30,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,30,52,0,30,52,64
db 30,52,0,30,52,64,90,52,0,30,52,64,90,52,0,129
db 22,52,64,90,52,0,30,52,64,90,52,0,30,52,64,90
db 52,0,30,52,64,90,52,0,30,52,64,30,52,0,30,52
db 64,30,52,0,30,52,64,90,52,0,30,52,64,90,52,0
db 129,22,52,64,90,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,30,47,64,90,47,0,30,47,64,90,47,0,30
db 47,64,90,47,0,30,47,64,90,47,0,30,47,64,90,47
db 0,30,47,64,90,47,0,30,47,64,90,47,0,30,45,64
db 90,45,0,30,45,64,90,45,0,30,45,64,90,45,0,30
db 45,64,90,45,0,30,45,64,90,45,0,30,45,64,90,45
db 0,30,45,64,90,45,0,30,45,64,90,45,0,30,45,64
db 90,45,0,30,52,64,90,52,0,30,52,64,30,52,0,30
db 52,64,30,52,0,30,52,64,90,52,0,30,52,64,90,52
db 0,129,22,52,64,90,52,0,30,47,64,90,47,0,30,44
db 64,90,44,0,30,40,64,90,40,0,134,102,52,64,90,52
db 0,30,52,64,30,52,0,30,52,64,30,52,0,30,52,64
db 90,52,0,30,52,64,90,52,0,129,22,52,64,90,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,30,52,64,90
db 52,0,30,52,64,30,52,0,30,52,64,30,52,0,30,52
db 64,90,52,0,30,52,64,90,52,0,129,22,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,30,52,64,30,52,0,30,52,64,30,52,0,30
db 52,64,90,52,0,30,52,64,90,52,0,129,22,52,64,90
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,30,52
db 64,90,52,0,30,52,64,30,52,0,30,52,64,30,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,129,22,52,64
db 90,52,0,30,52,64,90,52,0,30,45,64,90,45,0,30
db 45,64,90,45,0,30,45,64,30,45,0,30,45,64,30,45
db 0,30,45,64,90,45,0,30,45,64,90,45,0,129,22,45
db 64,90,45,0,30,45,64,90,45,0,30,45,64,90,45,0
db 30,45,64,90,45,0,30,45,64,30,45,0,30,45,64,30
db 45,0,30,45,64,90,45,0,30,45,64,90,45,0,129,22
db 45,64,90,45,0,30,45,64,90,45,0,129,22,52,64,90
db 52,0,30,52,64,30,52,0,30,52,64,30,52,0,30,52
db 64,90,52,0,30,52,64,90,52,0,129,22,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,30,52,64,30,52,0,30,52,64,30,52,0,30
db 52,64,90,52,0,30,52,64,90,52,0,129,22,52,64,90
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,30,47
db 64,90,47,0,30,47,64,90,47,0,30,47,64,90,47,0
db 30,47,64,90,47,0,30,47,64,90,47,0,30,47,64,90
db 47,0,30,47,64,90,47,0,30,45,64,90,45,0,30,45
db 64,90,45,0,30,45,64,90,45,0,30,45,64,90,45,0
db 30,45,64,90,45,0,30,45,64,90,45,0,30,45,64,90
db 45,0,30,45,64,90,45,0,30,45,64,90,45,0,30,52
db 64,90,52,0,30,52,64,30,52,0,30,52,64,30,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,129,22,52,64
db 90,52,0,30,47,64,90,47,0,30,44,64,90,44,0,30
db 40,64,90,40,0,30,40,64,90,40,0,30,44,64,90,44
db 0,30,44,64,90,44,0,30,50,64,90,50,0,30,50,64
db 90,50,0,30,44,64,30,44,0,30,45,64,90,45,0,30
db 45,64,30,45,0,30,47,64,90,47,0,30,47,64,90,47
db 0,30,47,64,90,47,0,30,47,64,90,47,0,30,47,64
db 90,47,0,30,47,64,90,47,0,30,47,64,90,47,0,30
db 47,64,90,47,0,30,45,64,90,45,0,30,45,64,90,45
db 0,30,45,64,90,45,0,30,45,64,90,45,0,30,45,64
db 90,45,0,30,45,64,90,45,0,30,45,64,90,45,0,30
db 45,64,90,45,0,30,47,64,90,47,0,30,47,64,90,47
db 0,30,47,64,90,47,0,30,47,64,90,47,0,30,47,64
db 90,47,0,30,47,64,90,47,0,30,47,64,90,47,0,30
db 47,64,90,47,0,30,45,64,90,45,0,30,45,64,90,45
db 0,30,45,64,90,45,0,30,45,64,90,45,0,30,45,64
db 90,45,0,30,45,64,90,45,0,30,45,64,90,45,0,30
db 45,64,90,45,0,30,49,64,90,49,0,30,49,64,90,49
db 0,30,49,64,90,49,0,30,49,64,90,49,0,30,49,64
db 90,49,0,30,49,64,90,49,0,30,49,64,90,49,0,30
db 49,64,90,49,0,30,42,64,90,42,0,30,42,64,90,42
db 0,30,42,64,90,42,0,30,42,64,90,42,0,30,42,64
db 90,42,0,30,42,64,90,42,0,30,42,64,90,42,0,30
db 42,64,90,42,0,30,45,64,129,82,45,0,30,45,64,129
db 82,45,0,30,47,64,129,82,47,0,30,47,64,129,82,47
db 0,30,49,64,90,49,0,30,49,64,90,49,0,30,49,64
db 90,49,0,30,49,64,90,49,0,30,49,64,90,49,0,129
db 22,47,64,90,47,0,129,22,45,64,130,74,45,0,30,45
db 64,90,45,0,30,47,64,129,82,47,0,30,47,64,129,82
db 47,0,30,49,64,90,49,0,30,49,64,90,49,0,30,49
db 64,90,49,0,30,49,64,90,49,0,30,49,64,90,49,0
db 129,22,47,64,90,47,0,129,22,45,64,129,82,45,0,30
db 45,64,90,45,0,30,45,64,90,45,0,30,47,64,129,82
db 47,0,30,47,64,129,82,47,0,30,52,64,0,40,64,90
db 40,0,0,52,0,30,52,64,0,40,64,30,40,0,0,52
db 0,30,52,64,0,40,64,30,40,0,0,52,0,30,52,64
db 0,40,64,90,40,0,0,52,0,30,52,64,0,40,64,90
db 40,0,0,52,0,129,22,52,64,90,52,0,30,47,64,90
db 47,0,30,44,64,90,44,0,30,40,64,90,40,0,134,102
db 52,64,90,52,0,30,52,64,30,52,0,30,52,64,30,52
db 0,30,52,64,90,52,0,30,52,64,90,52,0,129,22,52
db 64,90,52,0,30,52,64,90,52,0,30,52,64,90,52,0
db 30,52,64,90,52,0,30,52,64,30,52,0,30,52,64,30
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,129,22
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,30,52,0,30,52,64
db 30,52,0,30,52,64,90,52,0,30,52,64,90,52,0,129
db 22,52,64,90,52,0,30,52,64,90,52,0,30,52,64,90
db 52,0,30,52,64,90,52,0,30,52,64,30,52,0,30,52
db 64,30,52,0,30,52,64,90,52,0,30,52,64,90,52,0
db 129,22,52,64,90,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,30,45,64,90,45,0,30,45,64,30,45,0,30
db 45,64,30,45,0,30,45,64,90,45,0,30,45,64,90,45
db 0,129,22,45,64,90,45,0,30,45,64,90,45,0,30,45
db 64,90,45,0,30,45,64,90,45,0,30,45,64,30,45,0
db 30,45,64,30,45,0,30,45,64,90,45,0,30,45,64,90
db 45,0,129,22,45,64,90,45,0,30,45,64,90,45,0,30
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,30,52
db 0,30,52,64,30,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,129,22,52,64,90,52,0,30,52,64,90,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,30,52,64,30
db 52,0,30,52,64,30,52,0,30,52,64,90,52,0,30,52
db 64,90,52,0,129,22,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,90,52,0,30,47,64,90,47,0,30,47,64
db 90,47,0,30,47,64,90,47,0,30,47,64,90,47,0,30
db 47,64,90,47,0,30,47,64,90,47,0,30,47,64,90,47
db 0,30,45,64,90,45,0,30,45,64,90,45,0,30,45,64
db 90,45,0,30,45,64,90,45,0,30,45,64,90,45,0,30
db 45,64,90,45,0,30,45,64,90,45,0,30,45,64,90,45
db 0,30,45,64,90,45,0,30,52,64,90,52,0,30,52,64
db 30,52,0,30,52,64,30,52,0,30,52,64,90,52,0,30
db 52,64,90,52,0,129,22,52,64,90,52,0,30,47,64,90
db 47,0,30,44,64,90,44,0,30,40,64,90,40,0,134,102
db 52,64,90,52,0,30,52,64,30,52,0,30,52,64,30,52
db 0,30,52,64,90,52,0,30,52,64,90,52,0,129,22,52
db 64,90,52,0,30,52,64,90,52,0,30,52,64,90,52,0
db 30,52,64,90,52,0,30,52,64,30,52,0,30,52,64,30
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,129,22
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,30,52,0,30,52,64
db 30,52,0,30,52,64,90,52,0,30,52,64,90,52,0,129
db 22,52,64,90,52,0,30,52,64,90,52,0,30,52,64,90
db 52,0,30,52,64,90,52,0,30,52,64,30,52,0,30,52
db 64,30,52,0,30,52,64,90,52,0,30,52,64,90,52,0
db 129,22,52,64,90,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,30,45,64,90,45,0,30,45,64,30,45,0,30
db 45,64,30,45,0,30,45,64,90,45,0,30,45,64,90,45
db 0,129,22,45,64,90,45,0,30,45,64,90,45,0,30,45
db 64,90,45,0,30,45,64,90,45,0,30,45,64,30,45,0
db 30,45,64,30,45,0,30,45,64,90,45,0,30,45,64,90
db 45,0,129,22,45,64,90,45,0,30,45,64,90,45,0,30
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,30,52
db 0,30,52,64,30,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,129,22,52,64,90,52,0,30,52,64,90,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,30,52,64,30
db 52,0,30,52,64,30,52,0,30,52,64,90,52,0,30,52
db 64,90,52,0,129,22,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,90,52,0,30,47,64,129,82,47,0,30,47
db 64,90,47,0,30,47,64,90,47,0,30,47,64,129,82,47
db 0,30,47,64,90,47,0,30,47,64,90,47,0,30,45,64
db 129,82,45,0,30,45,64,90,45,0,30,45,64,90,45,0
db 30,45,64,129,82,45,0,30,45,64,90,45,0,30,45,64
db 90,45,0,30,52,64,90,52,0,30,52,64,30,52,0,30
db 52,64,30,52,0,30,52,64,90,52,0,30,52,64,90,52
db 0,129,22,52,64,90,52,0,30,52,64,90,52,0,30,52
db 64,90,52,0,30,40,64,90,40,0,30,40,64,90,40,0
db 30,44,64,90,44,0,30,44,64,90,44,0,30,50,64,90
db 50,0,30,50,64,90,50,0,30,44,64,90,44,0,30,45
db 64,90,45,0,30,47,64,129,82,47,0,30,47,64,90,47
db 0,30,47,64,90,47,0,30,47,64,90,47,0,30,47,64
db 90,47,0,30,47,64,90,47,0,30,45,64,90,45,0,30
db 45,64,130,74,45,0,30,45,64,90,45,0,30,45,64,129
db 82,45,0,30,45,64,90,45,0,30,45,64,90,45,0,30
db 52,64,90,52,0,30,52,64,30,52,0,30,52,64,30,52
db 0,30,52,64,90,52,0,30,52,64,90,52,0,129,22,52
db 64,90,52,0,30,47,64,90,47,0,30,44,64,90,44,0
db 30,40,64,90,40,0,134,102,52,64,90,52,0,30,52,64
db 30,52,0,30,52,64,30,52,0,30,52,64,90,52,0,30
db 52,64,90,52,0,129,22,52,64,90,52,0,30,52,64,90
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,30,52
db 64,30,52,0,30,52,64,30,52,0,30,52,64,90,52,0
db 30,52,64,90,52,0,129,22,52,64,90,52,0,30,52,64
db 90,52,0,30,52,64,90,52,0,30,52,64,90,52,0,30
db 52,64,30,52,0,30,52,64,30,52,0,30,52,64,90,52
db 0,30,52,64,90,52,0,129,22,52,64,90,52,0,30,52
db 64,90,52,0,30,52,64,90,52,0,30,52,64,90,52,0
db 30,52,64,30,52,0,30,52,64,30,52,0,30,52,64,90
db 52,0,30,52,64,90,52,0,129,22,52,64,90,52,0,30
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,30,52,0,30,52,64,30,52,0,30,52,64
db 90,52,0,30,52,64,90,52,0,129,22,52,64,90,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,30,52,64,90
db 52,0,30,52,64,30,52,0,30,52,64,30,52,0,30,52
db 64,90,52,0,30,52,64,90,52,0,129,22,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,30,52,64,30,52,0,30,52,64,30,52,0,30
db 52,64,90,52,0,30,52,64,90,52,0,129,22,52,64,90
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,30,52
db 64,90,52,0,30,52,64,30,52,0,30,52,64,30,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,129,22,52,64
db 90,52,0,30,52,64,90,52,0,30,52,64,90,52,0,30
db 52,64,90,52,0,30,52,64,30,52,0,30,52,64,30,52
db 0,30,52,64,90,52,0,30,52,64,90,52,0,129,22,52
db 64,90,52,0,30,52,64,90,52,0,30,52,64,90,52,0
db 30,52,64,90,52,0,30,52,64,30,52,0,30,52,64,30
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,129,22
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,30,52,0,30,52,64
db 30,52,0,30,52,64,90,52,0,30,52,64,90,52,0,129
db 22,52,64,90,52,0,30,52,64,90,52,0,30,52,64,90
db 52,0,30,52,64,90,52,0,30,52,64,30,52,0,30,52
db 64,30,52,0,30,52,64,90,52,0,30,52,64,90,52,0
db 129,22,52,64,90,52,0,30,52,64,90,52,0,30,52,64
db 90,52,0,30,52,64,0,178,7,110,90,146,52,0,30,52
db 64,30,52,0,30,52,64,30,52,0,30,52,64,90,52,0
db 30,52,64,90,52,0,129,22,52,64,90,52,0,30,52,64
db 90,52,0,30,52,64,90,52,0,30,52,64,0,178,7,90
db 90,146,52,0,30,52,64,30,52,0,30,52,64,30,52,0
db 30,52,64,90,52,0,30,52,64,90,52,0,129,22,52,64
db 90,52,0,30,52,64,90,52,0,30,52,64,90,52,0,30
db 52,64,0,178,7,70,90,146,52,0,30,52,64,30,52,0
db 30,52,64,30,52,0,30,52,64,90,52,0,30,52,64,90
db 52,0,129,22,52,64,90,52,0,30,52,64,90,52,0,30
db 52,64,90,52,0,30,52,64,0,178,7,50,90,146,52,0
db 30,52,64,30,52,0,30,52,64,30,52,0,30,52,64,90
db 52,0,30,52,64,90,52,0,129,22,52,64,90,52,0,30
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,0,178
db 7,30,90,146,52,0,30,52,64,30,52,0,30,52,64,30
db 52,0,30,52,64,90,52,0,30,52,64,90,52,0,129,22
db 52,64,90,52,0,30,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,0,178,7,20,90,146,52,0,30,52,64,30
db 52,0,30,52,64,30,52,0,30,52,64,90,52,0,30,52
db 64,90,52,0,129,22,52,64,90,52,0,30,52,64,90,52
db 0,30,52,64,90,52,0,30,52,64,0,178,7,10,90,146
db 52,0,30,52,64,30,52,0,30,52,64,30,52,0,30,52
db 64,90,52,0,30,52,64,90,52,0,30,178,7,0,120,146
db 52,64,90,52,0,14,178,7,2,16,146,52,64,90,52,0
db 30,52,64,90,52,0,0,255,47,0,77,84,114,107,0,0
db 41,136,0,255,3,5,68,114,117,109,115,0,201,16,0,153
db 36,64,0,42,64,0,69,64,0,56,64,90,56,0,0,36
db 0,0,42,0,0,69,0,30,42,64,30,42,0,30,42,64
db 30,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 36,64,0,42,64,0,69,64,0,56,64,90,56,0,0,36
db 0,0,42,0,0,69,0,30,36,64,0,42,64,0,69,64
db 0,56,64,90,56,0,0,36,0,0,42,0,0,69,0,30
db 42,64,90,42,0,30,38,64,0,42,64,90,42,0,0,38
db 0,30,42,64,90,42,0,30,36,64,0,42,64,0,69,64
db 0,56,64,90,56,0,0,36,0,0,42,0,0,69,0,30
db 42,64,30,42,0,30,42,64,30,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,36,64,0,42,64,0,69,64
db 0,56,64,90,56,0,0,36,0,0,42,0,0,69,0,30
db 36,64,0,42,64,0,69,64,0,56,64,90,56,0,0,36
db 0,0,42,0,0,69,0,30,42,64,90,42,0,30,38,64
db 0,42,64,90,42,0,0,38,0,30,42,64,90,42,0,30
db 36,64,0,42,64,0,69,64,0,56,64,90,56,0,0,36
db 0,0,42,0,0,69,0,30,42,64,30,42,0,30,42,64
db 30,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 36,64,0,42,64,0,69,64,0,56,64,90,56,0,0,36
db 0,0,42,0,0,69,0,30,36,64,0,42,64,0,69,64
db 0,56,64,90,56,0,0,36,0,0,42,0,0,69,0,30
db 42,64,90,42,0,30,38,64,0,42,64,90,42,0,0,38
db 0,30,42,64,90,42,0,30,36,64,0,42,64,0,56,64
db 0,69,64,90,69,0,0,36,0,0,42,0,0,56,0,133
db 110,42,64,90,42,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,30,42,0,30,42,64,30,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,90,42,0,30,38,64,0
db 42,64,90,42,0,0,38,0,30,42,64,90,42,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,30,42,0,30,42,64,30
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,90,42,0,30,38,64,0,42,64,90,42,0,0,38,0
db 30,42,64,90,42,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,30,42,0,30,42,64,30,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,90,42,0,30,38,64,0
db 42,64,90,42,0,0,38,0,30,42,64,90,42,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,30,42,0,30,42,64,30
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,90,42,0,30,38,64,0,42,64,90,42,0,0,38,0
db 30,42,64,90,42,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,30,42,0,30,42,64,30,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,90,42,0,30,38,64,0
db 42,64,90,42,0,0,38,0,30,42,64,90,42,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,30,42,0,30,42,64,30
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,90,42,0,30,38,64,0,42,64,90,42,0,0,38,0
db 30,42,64,90,42,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,30,42,0,30,42,64,30,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,90,42,0,30,38,64,0
db 42,64,90,42,0,0,38,0,30,42,64,90,42,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,30,42,0,30,42,64,30
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,90,42,0,30,38,64,0,42,64,90,42,0,0,38,0
db 30,42,64,90,42,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,30,42,0,30,42,64,30,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,90,42,0,30,38,64,0
db 42,64,90,42,0,0,38,0,30,42,64,90,42,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,30,42,0,30,42,64,30
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,90,42,0,30,38,64,0,42,64,90,42,0,0,38,0
db 30,42,64,90,42,0,30,42,64,0,36,64,0,69,64,90
db 69,0,0,36,0,0,42,0,30,42,64,90,42,0,30,42
db 64,0,38,64,0,45,64,90,45,0,0,38,0,0,42,0
db 30,42,64,0,36,64,0,69,64,90,69,0,0,36,0,0
db 42,0,30,42,64,0,36,64,0,69,64,90,69,0,0,36
db 0,0,42,0,30,42,64,90,42,0,30,42,64,0,38,64
db 0,45,64,90,45,0,0,38,0,0,42,0,30,42,64,90
db 42,0,30,42,64,0,36,64,0,69,64,90,69,0,0,36
db 0,0,42,0,30,42,64,90,42,0,30,42,64,0,38,64
db 0,45,64,90,45,0,0,38,0,0,42,0,30,42,64,0
db 36,64,0,69,64,90,69,0,0,36,0,0,42,0,30,42
db 64,0,36,64,0,69,64,90,69,0,0,36,0,0,42,0
db 30,42,64,90,42,0,30,42,64,0,38,64,0,45,64,90
db 45,0,0,38,0,0,42,0,30,42,64,90,42,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,42,64,30,42,0,30,42,64,30
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,36
db 64,0,42,64,0,69,64,0,56,64,90,56,0,0,36,0
db 0,42,0,0,69,0,30,36,64,0,42,64,0,69,64,0
db 56,64,90,56,0,0,36,0,0,42,0,0,69,0,30,42
db 64,90,42,0,30,38,64,0,42,64,90,42,0,0,38,0
db 30,42,64,90,42,0,30,36,64,0,42,64,90,42,0,0
db 36,0,134,102,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,42,64,30,42
db 0,30,42,64,30,42,0,30,38,64,0,42,64,90,42,0
db 0,38,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,90,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,42,64,90,42,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,30,42,0,30,42,64,30,42,0,30
db 38,64,0,42,64,90,42,0,0,38,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,42,64,90,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,42,64
db 90,42,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,42,64,30,42
db 0,30,42,64,30,42,0,30,38,64,0,42,64,90,42,0
db 0,38,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,90,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,42,64,90,42,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,30,42,0,30,42,64,30,42,0,30
db 38,64,0,42,64,90,42,0,0,38,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,42,64,90,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,42,64
db 90,42,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,42,64,30,42
db 0,30,42,64,30,42,0,30,38,64,0,42,64,90,42,0
db 0,38,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,90,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,42,64,90,42,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,30,42,0,30,42,64,30,42,0,30
db 38,64,0,42,64,90,42,0,0,38,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,42,64,90,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,42,64
db 90,42,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,42,64,30,42
db 0,30,42,64,30,42,0,30,38,64,0,42,64,90,42,0
db 0,38,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,90,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,42,64,90,42,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,30,42,0,30,42,64,30,42,0,30
db 38,64,0,42,64,90,42,0,0,38,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,42,64,90,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,42,64
db 90,42,0,30,42,64,0,36,64,0,69,64,90,69,0,0
db 36,0,0,42,0,30,42,64,90,42,0,30,42,64,0,38
db 64,0,45,64,90,45,0,0,38,0,0,42,0,30,42,64
db 0,36,64,0,69,64,90,69,0,0,36,0,0,42,0,30
db 42,64,0,36,64,0,69,64,90,69,0,0,36,0,0,42
db 0,30,42,64,90,42,0,30,42,64,0,38,64,0,45,64
db 90,45,0,0,38,0,0,42,0,30,42,64,90,42,0,30
db 42,64,0,36,64,0,69,64,90,69,0,0,36,0,0,42
db 0,30,42,64,90,42,0,30,42,64,0,38,64,0,45,64
db 90,45,0,0,38,0,0,42,0,30,42,64,0,36,64,0
db 69,64,90,69,0,0,36,0,0,42,0,30,42,64,0,36
db 64,0,69,64,90,69,0,0,36,0,0,42,0,30,42,64
db 90,42,0,30,42,64,0,38,64,0,45,64,90,45,0,0
db 38,0,0,42,0,30,42,64,90,42,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,30,42,0,30,42,64,30,42,0,30
db 38,64,0,42,64,90,42,0,0,38,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,42,64,90,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,42,64
db 90,42,0,30,36,64,0,42,64,0,56,64,0,69,64,90
db 69,0,0,36,0,0,42,0,0,56,0,30,42,64,30,42
db 0,30,42,64,30,42,0,30,42,64,0,38,64,90,38,0
db 0,42,0,30,42,64,0,36,64,0,56,64,0,69,64,90
db 69,0,0,42,0,0,36,0,0,56,0,30,42,64,0,36
db 64,0,56,64,0,69,64,90,69,0,0,42,0,0,36,0
db 0,56,0,30,42,64,0,38,64,90,38,0,0,42,0,30
db 42,64,0,38,64,30,38,0,30,38,64,30,42,0,30,42
db 64,30,38,0,30,38,64,30,38,0,0,42,0,30,59,64
db 0,36,64,0,54,64,0,69,64,90,69,0,0,59,0,0
db 36,0,0,54,0,129,22,59,64,0,38,64,0,54,64,90
db 54,0,0,38,0,0,59,0,30,36,64,0,69,64,90,69
db 0,0,36,0,30,59,64,0,36,64,0,54,64,0,69,64
db 90,69,0,0,59,0,0,36,0,0,54,0,129,22,59,64
db 0,38,64,0,54,64,90,54,0,0,38,0,0,59,0,129
db 22,59,64,0,36,64,0,54,64,0,69,64,90,69,0,0
db 59,0,0,36,0,0,54,0,129,22,59,64,0,38,64,0
db 54,64,90,54,0,0,38,0,0,59,0,30,36,64,0,69
db 64,90,69,0,0,36,0,30,59,64,0,36,64,0,54,64
db 0,69,64,90,69,0,0,59,0,0,36,0,0,54,0,129
db 22,59,64,0,38,64,0,54,64,90,54,0,0,38,0,0
db 59,0,30,36,64,90,36,0,30,59,64,0,36,64,0,54
db 64,0,69,64,90,69,0,0,59,0,0,36,0,0,54,0
db 129,22,59,64,0,38,64,0,54,64,90,54,0,0,38,0
db 0,59,0,30,36,64,90,36,0,30,59,64,0,36,64,0
db 54,64,0,69,64,90,69,0,0,59,0,0,36,0,0,54
db 0,129,22,59,64,0,38,64,0,54,64,90,54,0,0,38
db 0,0,59,0,129,22,59,64,0,36,64,0,54,64,0,69
db 64,90,69,0,0,59,0,0,36,0,0,54,0,129,22,59
db 64,0,38,64,0,54,64,90,54,0,0,38,0,0,59,0
db 30,36,64,0,69,64,90,69,0,0,36,0,30,59,64,0
db 36,64,0,54,64,0,69,64,90,69,0,0,59,0,0,36
db 0,0,54,0,129,22,59,64,0,38,64,0,54,64,90,54
db 0,0,38,0,0,59,0,30,69,64,0,36,64,90,36,0
db 0,69,0,30,59,64,0,36,64,0,54,64,0,69,64,90
db 69,0,0,59,0,0,36,0,0,54,0,129,22,59,64,0
db 38,64,0,54,64,90,54,0,0,38,0,0,59,0,30,36
db 64,90,36,0,30,59,64,0,36,64,0,54,64,0,69,64
db 90,69,0,0,59,0,0,36,0,0,54,0,129,22,59,64
db 0,38,64,0,54,64,90,54,0,0,38,0,0,59,0,129
db 22,59,64,0,36,64,0,54,64,0,69,64,90,69,0,0
db 59,0,0,36,0,0,54,0,129,22,59,64,0,38,64,0
db 54,64,90,54,0,0,38,0,0,59,0,30,36,64,90,36
db 0,30,59,64,0,36,64,0,54,64,0,69,64,90,69,0
db 0,59,0,0,36,0,0,54,0,129,22,59,64,0,38,64
db 0,54,64,90,54,0,0,38,0,0,59,0,30,69,64,0
db 36,64,90,36,0,0,69,0,30,59,64,0,36,64,0,54
db 64,0,69,64,90,69,0,0,59,0,0,36,0,0,54,0
db 129,22,59,64,0,38,64,0,54,64,90,54,0,0,38,0
db 0,59,0,30,36,64,90,36,0,30,59,64,0,36,64,0
db 54,64,0,69,64,90,69,0,0,59,0,0,36,0,0,54
db 0,129,22,59,64,0,38,64,0,54,64,90,54,0,0,38
db 0,0,59,0,129,22,59,64,0,36,64,0,54,64,0,69
db 64,90,69,0,0,59,0,0,36,0,0,54,0,129,22,59
db 64,0,38,64,0,54,64,90,54,0,0,38,0,0,59,0
db 30,36,64,0,69,64,90,69,0,0,36,0,30,59,64,0
db 36,64,0,54,64,0,69,64,90,69,0,0,59,0,0,36
db 0,0,54,0,129,22,59,64,0,38,64,0,54,64,90,54
db 0,0,38,0,0,59,0,30,69,64,0,36,64,90,36,0
db 0,69,0,30,59,64,0,36,64,0,54,64,0,69,64,90
db 69,0,0,59,0,0,36,0,0,54,0,129,22,59,64,0
db 38,64,0,54,64,90,54,0,0,38,0,0,59,0,30,36
db 64,90,36,0,30,59,64,0,36,64,0,54,64,0,69,64
db 90,69,0,0,59,0,0,36,0,0,54,0,129,22,59,64
db 0,38,64,0,54,64,90,54,0,0,38,0,0,59,0,129
db 22,59,64,0,36,64,0,54,64,0,69,64,90,69,0,0
db 59,0,0,36,0,0,54,0,129,22,59,64,0,38,64,0
db 54,64,90,54,0,0,38,0,0,59,0,30,36,64,0,69
db 64,90,69,0,0,36,0,30,36,64,0,54,64,0,69,64
db 0,57,64,90,57,0,0,36,0,0,54,0,0,69,0,129
db 22,38,64,0,36,64,0,54,64,0,57,64,90,57,0,0
db 38,0,0,36,0,0,54,0,30,69,64,0,36,64,90,36
db 0,0,69,0,30,59,64,0,36,64,0,54,64,0,69,64
db 90,69,0,0,59,0,0,36,0,0,54,0,129,22,59,64
db 0,38,64,0,54,64,90,54,0,0,38,0,0,59,0,30
db 36,64,90,36,0,30,36,64,0,54,64,0,69,64,0,59
db 64,90,59,0,0,36,0,0,54,0,0,69,0,129,22,38
db 64,0,54,64,0,59,64,90,59,0,0,54,0,0,38,0
db 129,22,59,64,0,36,64,0,54,64,0,69,64,90,69,0
db 0,59,0,0,36,0,0,54,0,129,22,59,64,0,38,64
db 0,54,64,90,54,0,0,38,0,0,59,0,30,36,64,90
db 36,0,30,36,64,0,59,64,0,57,64,14,57,0,0,57
db 64,14,57,0,2,57,64,14,57,0,0,57,64,14,57,0
db 2,57,64,14,57,0,0,57,64,14,57,0,2,59,0,0
db 36,0,0,57,64,14,57,0,0,57,64,14,57,0,2,57
db 64,14,57,0,0,57,64,14,57,0,2,57,64,14,57,0
db 0,57,64,14,57,0,2,57,64,14,57,0,0,57,64,14
db 57,0,2,57,64,14,57,0,0,57,64,14,57,0,2,59
db 64,0,38,64,0,57,64,14,57,0,0,57,64,14,57,0
db 2,57,64,14,57,0,0,57,64,14,57,0,2,57,64,14
db 57,0,0,57,64,14,57,0,2,38,0,0,59,0,0,57
db 64,14,57,0,0,57,64,14,57,0,2,36,64,0,57,64
db 14,57,0,0,57,64,14,57,0,2,57,64,14,57,0,0
db 57,64,14,57,0,2,57,64,14,57,0,0,57,64,14,57
db 0,2,36,0,0,57,64,14,57,0,0,57,64,16,36,64
db 90,36,0,14,57,0,133,96,42,64,90,42,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,30,42,0,30,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,90,42,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,30,42,0,30,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,90,42,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,30,42,0,30,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,90,42,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,30,42,0,30,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,0,57,64,14,57,0
db 0,57,64,14,57,0,2,57,64,14,57,0,0,57,64,14
db 57,0,2,57,64,14,57,0,0,57,64,14,57,0,2,42
db 0,0,57,64,14,57,0,0,57,64,16,36,64,0,42,64
db 0,69,64,0,54,64,90,54,0,0,42,0,0,69,0,0
db 36,0,30,42,64,30,42,0,30,42,64,28,57,0,2,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,90,69,0,0,42,0,0,36,0,30
db 36,64,0,42,64,0,69,64,0,54,64,90,54,0,0,36
db 0,0,42,0,0,69,0,30,42,64,90,42,0,30,38,64
db 0,42,64,90,42,0,0,38,0,30,42,64,90,42,0,30
db 36,64,0,42,64,0,69,64,0,54,64,90,54,0,0,36
db 0,0,42,0,0,69,0,30,42,64,30,42,0,30,42,64
db 30,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 36,64,0,42,64,0,69,64,90,69,0,0,42,0,0,36
db 0,30,36,64,0,42,64,0,69,64,0,54,64,90,54,0
db 0,36,0,0,42,0,0,69,0,30,42,64,90,42,0,30
db 38,64,0,42,64,90,42,0,0,38,0,30,42,64,90,42
db 0,30,36,64,0,42,64,0,69,64,0,56,64,90,56,0
db 0,36,0,0,42,0,0,69,0,30,42,64,30,42,0,30
db 42,64,30,42,0,30,38,64,0,42,64,90,42,0,0,38
db 0,30,36,64,0,42,64,0,69,64,0,56,64,90,56,0
db 0,36,0,0,42,0,0,69,0,30,36,64,0,42,64,0
db 69,64,0,56,64,0,57,64,14,57,0,0,57,64,14,57
db 0,2,57,64,14,57,0,0,57,64,14,57,0,2,57,64
db 14,57,0,0,57,64,14,57,0,2,56,0,0,36,0,0
db 42,0,0,69,0,0,57,64,14,57,0,0,57,64,14,57
db 0,2,42,64,0,57,64,14,57,0,0,57,64,14,57,0
db 2,57,64,14,57,0,0,57,64,14,57,0,2,57,64,14
db 57,0,0,57,64,14,57,0,2,42,0,0,57,64,14,57
db 0,0,57,64,14,57,0,2,38,64,0,42,64,0,57,64
db 14,57,0,0,57,64,14,57,0,2,57,64,14,57,0,0
db 57,64,14,57,0,2,57,64,14,57,0,0,57,64,14,57
db 0,2,42,0,0,38,0,0,57,64,14,57,0,0,57,64
db 14,57,0,2,42,64,0,57,64,14,57,0,0,57,64,14
db 57,0,2,57,64,14,57,0,0,57,64,14,57,0,2,57
db 64,14,57,0,0,57,64,14,57,0,2,42,0,0,57,64
db 14,57,0,0,57,64,16,57,0,0,69,64,0,42,64,0
db 36,64,90,36,0,0,42,0,0,69,0,134,102,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,42,64,30,42,0,30,42,64,30,42,0
db 30,38,64,0,42,64,90,42,0,0,38,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,42,64,90
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,42
db 64,90,42,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,42,64,30
db 42,0,30,42,64,30,42,0,30,38,64,0,42,64,90,42
db 0,0,38,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,42,64,90,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,42,64,90,42,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,42,64,30,42,0,30,42,64,30,42,0
db 30,38,64,0,42,64,90,42,0,0,38,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,42,64,90
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,42
db 64,90,42,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,42,64,30
db 42,0,30,42,64,30,42,0,30,38,64,0,42,64,90,42
db 0,0,38,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,42,64,90,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,42,64,90,42,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,42,64,30,42,0,30,42,64,30,42,0
db 30,38,64,0,42,64,90,42,0,0,38,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,42,64,90
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,42
db 64,90,42,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,42,64,30
db 42,0,30,42,64,30,42,0,30,38,64,0,42,64,90,42
db 0,0,38,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,42,64,90,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,42,64,90,42,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,42,64,30,42,0,30,42,64,30,42,0
db 30,38,64,0,42,64,90,42,0,0,38,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,42,64,90
db 42,0,30,38,64,0,42,64,90,42,0,0,38,0,30,42
db 64,90,42,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,42,64,30
db 42,0,30,42,64,30,42,0,30,38,64,0,42,64,90,42
db 0,0,38,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,42,64,90,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,42,64,0,57,64,14,57,0,0
db 57,64,14,57,0,2,57,64,14,57,0,0,57,64,14,57
db 0,2,57,64,14,57,0,0,57,64,14,57,0,2,42,0
db 0,57,64,14,57,0,0,57,64,16,36,64,0,42,64,0
db 69,64,90,69,0,0,42,0,0,36,0,30,42,64,30,42
db 0,30,42,64,28,57,0,2,42,0,30,38,64,0,42,64
db 0,45,64,90,45,0,0,42,0,0,38,0,30,36,64,0
db 42,64,0,69,64,90,69,0,0,42,0,0,36,0,30,36
db 64,0,42,64,0,69,64,90,69,0,0,42,0,0,36,0
db 30,42,64,90,42,0,30,38,64,0,42,64,0,45,64,90
db 45,0,0,42,0,0,38,0,30,42,64,90,42,0,30,36
db 64,0,42,64,0,69,64,90,69,0,0,42,0,0,36,0
db 30,42,64,30,42,0,30,42,64,30,42,0,30,38,64,0
db 42,64,0,45,64,90,45,0,0,42,0,0,38,0,30,36
db 64,0,42,64,0,69,64,90,69,0,0,42,0,0,36,0
db 30,36,64,0,42,64,0,69,64,90,69,0,0,42,0,0
db 36,0,30,42,64,90,42,0,30,38,64,0,42,64,0,45
db 64,90,45,0,0,42,0,0,38,0,30,42,64,90,42,0
db 30,36,64,0,42,64,0,69,64,0,56,64,90,56,0,0
db 36,0,0,42,0,0,69,0,30,42,64,30,42,0,30,42
db 64,30,42,0,30,38,64,0,42,64,90,42,0,0,38,0
db 30,36,64,0,42,64,0,69,64,0,56,64,90,56,0,0
db 36,0,0,42,0,0,69,0,30,36,64,0,42,64,0,69
db 64,0,56,64,90,56,0,0,36,0,0,42,0,0,69,0
db 30,42,64,90,42,0,30,38,64,0,42,64,90,42,0,0
db 38,0,30,42,64,90,42,0,30,36,64,0,42,64,0,69
db 64,0,56,64,90,56,0,0,36,0,0,42,0,0,69,0
db 30,42,64,30,42,0,30,42,64,30,42,0,30,38,64,0
db 42,64,90,42,0,0,38,0,30,36,64,0,42,64,0,69
db 64,0,56,64,90,56,0,0,36,0,0,42,0,0,69,0
db 30,36,64,0,42,64,0,69,64,0,56,64,90,56,0,0
db 36,0,0,42,0,0,69,0,30,42,64,90,42,0,30,38
db 64,0,42,64,90,42,0,0,38,0,30,42,64,90,42,0
db 30,36,64,0,42,64,0,69,64,90,69,0,0,42,0,0
db 36,0,30,42,64,30,42,0,30,42,64,30,42,0,30,38
db 64,0,42,64,0,45,64,90,45,0,0,42,0,0,38,0
db 30,36,64,0,42,64,0,69,64,90,69,0,0,42,0,0
db 36,0,30,36,64,0,42,64,0,69,64,90,69,0,0,42
db 0,0,36,0,30,42,64,90,42,0,30,38,64,0,42,64
db 0,45,64,90,45,0,0,42,0,0,38,0,30,42,64,90
db 42,0,30,36,64,0,42,64,0,69,64,90,69,0,0,42
db 0,0,36,0,30,42,64,30,42,0,30,42,64,30,42,0
db 30,38,64,0,42,64,0,45,64,90,45,0,0,42,0,0
db 38,0,30,36,64,0,42,64,0,69,64,90,69,0,0,42
db 0,0,36,0,30,36,64,0,42,64,0,69,64,90,69,0
db 0,42,0,0,36,0,30,42,64,90,42,0,30,38,64,0
db 42,64,0,45,64,90,45,0,0,42,0,0,38,0,30,42
db 64,90,42,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,42,64,30
db 42,0,30,42,64,30,42,0,30,38,64,0,42,64,90,42
db 0,0,38,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,30,36,64,0
db 42,64,0,69,64,0,56,64,90,56,0,0,36,0,0,42
db 0,0,69,0,30,42,64,90,42,0,30,38,64,0,42,64
db 90,42,0,0,38,0,30,42,64,90,42,0,30,36,64,0
db 42,64,0,56,64,0,69,64,90,69,0,0,36,0,0,42
db 0,0,56,0,134,102,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,90,42,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,30,42,0,30,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,90,42,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,30,42,0,30,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,90,42,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,30,42,0,30,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,90,42,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,30,42,0,30,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,0,57,64,14,57,0
db 0,57,64,14,57,0,2,57,64,14,57,0,0,57,64,14
db 57,0,2,57,64,14,57,0,0,57,64,14,57,0,2,42
db 0,0,57,64,14,57,0,0,57,64,16,36,64,0,42,64
db 0,69,64,0,56,64,90,56,0,0,42,0,0,69,0,0
db 36,0,30,42,64,30,42,0,30,42,64,28,57,0,2,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 30,42,0,30,42,64,30,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,90,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,42,64,90,42,0,30,36,64
db 0,42,64,0,69,64,0,56,64,0,57,64,90,56,0,0
db 69,0,0,36,0,0,42,0,30,42,64,30,42,0,30,42
db 64,30,42,0,0,57,0,30,38,64,0,42,64,90,42,0
db 0,38,0,30,36,64,0,42,64,0,69,64,0,56,64,90
db 56,0,0,36,0,0,42,0,0,69,0,30,36,64,0,42
db 64,0,69,64,0,56,64,90,56,0,0,36,0,0,42,0
db 0,69,0,30,42,64,90,42,0,30,38,64,0,42,64,90
db 42,0,0,38,0,30,42,64,90,42,0,30,36,64,0,42
db 64,0,69,64,0,56,64,0,185,7,110,90,153,56,0,0
db 36,0,0,42,0,0,69,0,30,42,64,30,42,0,30,42
db 64,30,42,0,30,38,64,0,42,64,90,42,0,0,38,0
db 30,36,64,0,42,64,0,69,64,0,56,64,90,56,0,0
db 36,0,0,42,0,0,69,0,30,36,64,0,42,64,0,69
db 64,0,56,64,90,56,0,0,36,0,0,42,0,0,69,0
db 30,42,64,90,42,0,30,38,64,0,42,64,90,42,0,0
db 38,0,30,42,64,90,42,0,30,36,64,0,42,64,0,69
db 64,0,56,64,0,185,7,90,90,153,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,28,42,0,32,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,0,57,64,0,185,7,70,90,153,56,0,0,69,0,0
db 36,0,0,42,0,30,42,64,30,42,0,30,42,64,30,42
db 0,0,57,0,30,38,64,0,42,64,90,42,0,0,38,0
db 30,36,64,0,42,64,0,69,64,0,56,64,90,56,0,0
db 36,0,0,42,0,0,69,0,30,36,64,0,42,64,0,69
db 64,0,56,64,90,56,0,0,36,0,0,42,0,0,69,0
db 30,42,64,90,42,0,30,38,64,0,42,64,90,42,0,0
db 38,0,30,42,64,90,42,0,30,36,64,0,42,64,0,69
db 64,0,56,64,0,185,7,50,90,153,56,0,0,36,0,0
db 42,0,0,69,0,30,42,64,30,42,0,30,42,64,30,42
db 0,30,38,64,0,42,64,90,42,0,0,38,0,30,36,64
db 0,42,64,0,69,64,0,56,64,90,56,0,0,36,0,0
db 42,0,0,69,0,30,36,64,0,42,64,0,69,64,0,56
db 64,90,56,0,0,36,0,0,42,0,0,69,0,30,42,64
db 90,42,0,30,38,64,0,42,64,90,42,0,0,38,0,30
db 42,64,90,42,0,30,36,64,0,42,64,0,69,64,0,56
db 64,0,185,7,30,90,153,56,0,0,36,0,0,42,0,0
db 69,0,30,42,64,30,42,0,30,42,64,30,42,0,30,38
db 64,0,42,64,90,42,0,0,38,0,30,36,64,0,42,64
db 0,69,64,0,56,64,90,56,0,0,36,0,0,42,0,0
db 69,0,30,36,64,0,42,64,0,69,64,0,56,64,90,56
db 0,0,36,0,0,42,0,0,69,0,30,42,64,90,42,0
db 30,38,64,0,42,64,90,42,0,0,38,0,30,42,64,90
db 42,0,30,36,64,0,42,64,0,69,64,0,56,64,0,185
db 7,20,90,153,56,0,0,36,0,0,42,0,0,69,0,30
db 42,64,30,42,0,30,42,64,30,42,0,30,38,64,0,42
db 64,90,42,0,0,38,0,30,36,64,0,42,64,0,69,64
db 0,56,64,90,56,0,0,36,0,0,42,0,0,69,0,30
db 36,64,0,42,64,0,69,64,0,56,64,90,56,0,0,36
db 0,0,42,0,0,69,0,30,42,64,90,42,0,30,38,64
db 0,42,64,90,42,0,0,38,0,30,42,64,0,57,64,14
db 57,0,0,57,64,14,57,0,2,57,64,14,57,0,0,57
db 64,14,57,0,2,57,64,14,57,0,0,57,64,14,57,0
db 2,42,0,0,57,64,14,57,0,0,57,64,16,36,64,0
db 42,64,0,69,64,0,56,64,0,185,7,10,74,153,57,0
db 16,69,0,0,36,0,0,42,0,0,56,0,30,42,64,30
db 42,0,30,42,64,30,42,0,30,38,64,0,42,64,90,42
db 0,0,38,0,30,36,64,0,42,64,0,69,64,0,56,64
db 90,56,0,0,36,0,0,42,0,0,69,0,14,185,7,5
db 16,153,36,64,0,42,64,0,69,64,0,56,64,90,56,0
db 0,36,0,0,42,0,0,69,0,30,42,64,90,42,0,14
db 185,7,2,16,153,38,64,0,42,64,90,42,0,0,38,0
db 30,42,64,90,42,0,0,255,47,0,77,84,114,107,0,0
db 61,190,0,255,3,6,71,117,105,116,97,114,0,195,29,0
db 147,64,64,0,71,64,0,76,64,0,52,64,90,52,0,0
db 64,0,0,71,0,0,76,0,30,64,64,0,76,64,0,71
db 64,0,52,64,30,52,0,0,64,0,0,76,0,0,71,0
db 30,64,64,0,71,64,0,76,64,0,52,64,30,52,0,0
db 64,0,0,71,0,0,76,0,30,64,64,0,76,64,0,71
db 64,0,52,64,90,52,0,0,64,0,0,76,0,0,71,0
db 30,64,64,0,76,64,0,71,64,0,52,64,90,52,0,0
db 64,0,0,76,0,0,71,0,129,22,76,64,0,68,64,0
db 64,64,0,52,64,90,52,0,0,76,0,0,68,0,0,64
db 0,30,64,64,0,71,64,0,76,64,0,52,64,90,52,0
db 0,64,0,0,71,0,0,76,0,30,52,64,90,52,0,30
db 64,64,0,71,64,0,76,64,0,52,64,90,52,0,0,64
db 0,0,71,0,0,76,0,30,64,64,0,76,64,0,71,64
db 0,52,64,30,52,0,0,64,0,0,76,0,0,71,0,30
db 64,64,0,71,64,0,76,64,0,52,64,30,52,0,0,64
db 0,0,71,0,0,76,0,30,64,64,0,76,64,0,71,64
db 0,52,64,90,52,0,0,64,0,0,76,0,0,71,0,30
db 64,64,0,76,64,0,71,64,0,52,64,90,52,0,0,64
db 0,0,76,0,0,71,0,129,22,68,64,0,64,64,0,52
db 64,0,71,64,90,71,0,0,68,0,0,64,0,0,52,0
db 30,64,64,0,71,64,0,76,64,0,52,64,90,52,0,0
db 64,0,0,71,0,0,76,0,30,52,64,0,64,64,0,71
db 64,0,76,64,90,76,0,0,52,0,0,64,0,0,71,0
db 30,64,64,0,71,64,0,76,64,0,52,64,90,52,0,0
db 64,0,0,71,0,0,76,0,30,64,64,0,76,64,0,71
db 64,0,52,64,30,52,0,0,64,0,0,76,0,0,71,0
db 30,64,64,0,71,64,0,76,64,0,52,64,30,52,0,0
db 64,0,0,71,0,0,76,0,30,64,64,0,76,64,0,71
db 64,0,52,64,90,52,0,0,64,0,0,76,0,0,71,0
db 30,64,64,0,76,64,0,71,64,0,52,64,90,52,0,0
db 64,0,0,76,0,0,71,0,129,22,68,64,0,64,64,0
db 52,64,0,71,64,0,76,64,90,76,0,0,52,0,0,68
db 0,0,64,0,0,71,0,30,64,64,0,71,64,0,76,64
db 0,52,64,90,52,0,0,64,0,0,71,0,0,76,0,30
db 52,64,0,64,64,0,71,64,0,76,64,90,76,0,0,52
db 0,0,64,0,0,71,0,30,64,64,0,71,64,0,76,64
db 0,52,64,90,52,0,0,64,0,0,71,0,0,76,0,134
db 102,64,64,0,71,64,0,76,64,0,52,64,90,52,0,0
db 64,0,0,71,0,0,76,0,30,76,64,0,71,64,0,64
db 64,0,52,64,30,52,0,0,76,0,0,71,0,0,64,0
db 30,76,64,0,71,64,0,64,64,0,52,64,30,52,0,0
db 76,0,0,71,0,0,64,0,30,64,64,0,76,64,0,71
db 64,0,52,64,90,52,0,0,64,0,0,76,0,0,71,0
db 30,64,64,0,71,64,0,76,64,0,52,64,90,52,0,0
db 64,0,0,71,0,0,76,0,129,22,64,64,0,68,64,0
db 52,64,0,71,64,90,71,0,0,64,0,0,68,0,0,52
db 0,30,64,64,0,52,64,0,71,64,90,71,0,0,52,0
db 0,64,0,30,64,64,0,52,64,0,71,64,90,71,0,0
db 52,0,0,64,0,30,64,64,0,71,64,0,76,64,0,52
db 64,90,52,0,0,64,0,0,71,0,0,76,0,30,76,64
db 0,71,64,0,64,64,0,52,64,30,52,0,0,76,0,0
db 71,0,0,64,0,30,76,64,0,71,64,0,64,64,0,52
db 64,30,52,0,0,76,0,0,71,0,0,64,0,30,64,64
db 0,76,64,0,71,64,0,52,64,90,52,0,0,64,0,0
db 76,0,0,71,0,30,64,64,0,71,64,0,76,64,0,52
db 64,90,52,0,0,64,0,0,71,0,0,76,0,129,22,64
db 64,0,68,64,0,52,64,0,71,64,90,71,0,0,64,0
db 0,68,0,0,52,0,30,64,64,0,52,64,0,71,64,90
db 71,0,0,52,0,0,64,0,30,64,64,0,52,64,0,71
db 64,90,71,0,0,52,0,0,64,0,30,64,64,0,71,64
db 0,76,64,0,52,64,90,52,0,0,64,0,0,71,0,0
db 76,0,30,76,64,0,71,64,0,64,64,0,52,64,30,52
db 0,0,76,0,0,71,0,0,64,0,30,76,64,0,71,64
db 0,64,64,0,52,64,30,52,0,0,76,0,0,71,0,0
db 64,0,30,64,64,0,76,64,0,71,64,0,52,64,90,52
db 0,0,64,0,0,76,0,0,71,0,30,64,64,0,71,64
db 0,76,64,0,52,64,90,52,0,0,64,0,0,71,0,0
db 76,0,129,22,64,64,0,68,64,0,52,64,0,71,64,90
db 71,0,0,64,0,0,68,0,0,52,0,30,64,64,0,52
db 64,0,71,64,90,71,0,0,52,0,0,64,0,30,64,64
db 0,52,64,0,71,64,90,71,0,0,52,0,0,64,0,30
db 64,64,0,71,64,0,76,64,0,52,64,90,52,0,0,64
db 0,0,71,0,0,76,0,30,76,64,0,71,64,0,64,64
db 0,52,64,30,52,0,0,76,0,0,71,0,0,64,0,30
db 76,64,0,71,64,0,64,64,0,52,64,30,52,0,0,76
db 0,0,71,0,0,64,0,30,64,64,0,76,64,0,71,64
db 0,52,64,90,52,0,0,64,0,0,76,0,0,71,0,30
db 64,64,0,71,64,0,76,64,0,52,64,90,52,0,0,64
db 0,0,71,0,0,76,0,129,22,64,64,0,68,64,0,52
db 64,0,71,64,90,71,0,0,64,0,0,68,0,0,52,0
db 30,64,64,0,52,64,0,71,64,90,71,0,0,52,0,0
db 64,0,30,64,64,0,52,64,0,71,64,90,71,0,0,52
db 0,0,64,0,30,64,64,0,71,64,0,76,64,0,52,64
db 90,52,0,0,64,0,0,71,0,0,76,0,30,76,64,0
db 71,64,0,64,64,0,52,64,30,52,0,0,76,0,0,71
db 0,0,64,0,30,76,64,0,71,64,0,64,64,0,52,64
db 30,52,0,0,76,0,0,71,0,0,64,0,30,64,64,0
db 76,64,0,71,64,0,52,64,90,52,0,0,64,0,0,76
db 0,0,71,0,30,64,64,0,71,64,0,76,64,0,52,64
db 90,52,0,0,64,0,0,71,0,0,76,0,129,22,64,64
db 0,68,64,0,52,64,0,71,64,90,71,0,0,64,0,0
db 68,0,0,52,0,30,64,64,0,52,64,0,71,64,90,71
db 0,0,52,0,0,64,0,30,64,64,0,52,64,0,71,64
db 90,71,0,0,52,0,0,64,0,30,64,64,0,71,64,0
db 76,64,0,52,64,90,52,0,0,64,0,0,71,0,0,76
db 0,30,76,64,0,71,64,0,64,64,0,52,64,30,52,0
db 0,76,0,0,71,0,0,64,0,30,76,64,0,71,64,0
db 64,64,0,52,64,30,52,0,0,76,0,0,71,0,0,64
db 0,30,64,64,0,76,64,0,71,64,0,52,64,90,52,0
db 0,64,0,0,76,0,0,71,0,30,64,64,0,71,64,0
db 76,64,0,52,64,90,52,0,0,64,0,0,71,0,0,76
db 0,129,22,64,64,0,52,64,0,71,64,0,76,64,90,76
db 0,0,64,0,0,52,0,0,71,0,30,64,64,0,52,64
db 0,71,64,0,76,64,90,76,0,0,64,0,0,52,0,0
db 71,0,30,64,64,0,52,64,0,71,64,0,76,64,0,57
db 64,90,57,0,0,71,0,0,64,0,0,52,0,0,76,0
db 30,69,64,0,64,64,0,57,64,0,52,64,90,52,0,0
db 69,0,0,64,0,0,57,0,30,69,64,0,64,64,0,57
db 64,0,52,64,30,52,0,0,69,0,0,64,0,0,57,0
db 30,69,64,0,64,64,0,57,64,0,52,64,30,52,0,0
db 69,0,0,64,0,0,57,0,30,69,64,0,64,64,0,57
db 64,0,52,64,90,52,0,0,69,0,0,64,0,0,57,0
db 30,69,64,0,64,64,0,57,64,0,52,64,90,52,0,0
db 69,0,0,64,0,0,57,0,129,22,69,64,0,64,64,0
db 57,64,0,52,64,90,52,0,0,69,0,0,64,0,0,57
db 0,30,69,64,0,64,64,0,57,64,90,57,0,0,64,0
db 0,69,0,30,69,64,0,64,64,0,57,64,0,52,64,90
db 52,0,0,69,0,0,64,0,0,57,0,30,69,64,0,64
db 64,0,57,64,0,52,64,90,52,0,0,69,0,0,64,0
db 0,57,0,30,69,64,0,64,64,0,57,64,0,52,64,30
db 52,0,0,69,0,0,64,0,0,57,0,30,69,64,0,64
db 64,0,57,64,0,52,64,30,52,0,0,69,0,0,64,0
db 0,57,0,30,69,64,0,64,64,0,57,64,0,52,64,90
db 52,0,0,69,0,0,64,0,0,57,0,30,69,64,0,64
db 64,0,57,64,0,52,64,90,52,0,0,69,0,0,64,0
db 0,57,0,129,22,69,64,0,64,64,0,57,64,0,52,64
db 90,52,0,0,69,0,0,64,0,0,57,0,30,69,64,0
db 64,64,0,57,64,90,57,0,0,64,0,0,69,0,30,69
db 64,0,64,64,0,57,64,0,52,64,90,52,0,0,69,0
db 0,64,0,0,57,0,30,64,64,0,71,64,0,76,64,0
db 52,64,90,52,0,0,64,0,0,71,0,0,76,0,30,76
db 64,0,71,64,0,64,64,0,52,64,30,52,0,0,76,0
db 0,71,0,0,64,0,30,76,64,0,71,64,0,64,64,0
db 52,64,30,52,0,0,76,0,0,71,0,0,64,0,30,64
db 64,0,76,64,0,71,64,0,52,64,90,52,0,0,64,0
db 0,76,0,0,71,0,30,64,64,0,71,64,0,76,64,0
db 52,64,90,52,0,0,64,0,0,71,0,0,76,0,129,22
db 64,64,0,68,64,0,52,64,0,71,64,90,71,0,0,64
db 0,0,68,0,0,52,0,30,64,64,0,52,64,0,71,64
db 90,71,0,0,52,0,0,64,0,30,64,64,0,52,64,0
db 71,64,90,71,0,0,52,0,0,64,0,30,64,64,0,71
db 64,0,76,64,0,52,64,90,52,0,0,64,0,0,71,0
db 0,76,0,30,76,64,0,71,64,0,64,64,0,52,64,30
db 52,0,0,76,0,0,71,0,0,64,0,30,76,64,0,71
db 64,0,64,64,0,52,64,30,52,0,0,76,0,0,71,0
db 0,64,0,30,64,64,0,76,64,0,71,64,0,52,64,90
db 52,0,0,64,0,0,76,0,0,71,0,30,64,64,0,71
db 64,0,76,64,0,52,64,90,52,0,0,64,0,0,71,0
db 0,76,0,129,22,64,64,0,68,64,0,52,64,0,71,64
db 90,71,0,0,64,0,0,68,0,0,52,0,30,64,64,0
db 52,64,0,71,64,90,71,0,0,52,0,0,64,0,30,64
db 64,0,52,64,0,71,64,90,71,0,0,52,0,0,64,0
db 30,66,64,0,59,64,0,54,64,90,54,0,0,59,0,0
db 66,0,30,66,64,0,59,64,0,54,64,90,54,0,0,59
db 0,0,66,0,30,54,64,0,59,64,0,66,64,90,66,0
db 0,59,0,0,54,0,30,54,64,0,59,64,0,66,64,90
db 66,0,0,59,0,0,54,0,30,54,64,0,59,64,0,66
db 64,90,66,0,0,59,0,0,54,0,30,54,64,0,59,64
db 0,66,64,90,66,0,0,59,0,0,54,0,30,54,64,0
db 59,64,0,66,64,90,66,0,0,59,0,0,54,0,30,54
db 64,0,59,64,0,66,64,90,66,0,0,59,0,0,54,0
db 30,64,64,0,57,64,0,52,64,90,52,0,0,57,0,0
db 64,0,30,64,64,0,57,64,0,52,64,90,52,0,0,57
db 0,0,64,0,30,64,64,0,57,64,0,52,64,90,52,0
db 0,57,0,0,64,0,30,64,64,0,57,64,0,52,64,90
db 52,0,0,57,0,0,64,0,30,64,64,0,57,64,0,52
db 64,90,52,0,0,57,0,0,64,0,30,64,64,0,57,64
db 0,52,64,90,52,0,0,57,0,0,64,0,30,64,64,0
db 57,64,0,52,64,90,52,0,0,57,0,0,64,0,30,64
db 64,0,57,64,0,52,64,90,52,0,0,57,0,0,64,0
db 30,64,64,0,71,64,0,76,64,0,52,64,90,52,0,0
db 64,0,0,71,0,0,76,0,30,76,64,0,71,64,0,64
db 64,0,52,64,30,52,0,0,76,0,0,71,0,0,64,0
db 30,76,64,0,71,64,0,64,64,0,52,64,30,52,0,0
db 76,0,0,71,0,0,64,0,30,64,64,0,76,64,0,71
db 64,0,52,64,90,52,0,0,64,0,0,76,0,0,71,0
db 30,64,64,0,71,64,0,76,64,0,52,64,90,52,0,0
db 64,0,0,71,0,0,76,0,129,22,64,64,0,52,64,0
db 71,64,0,76,64,90,76,0,0,64,0,0,52,0,0,71
db 0,30,64,64,0,52,64,0,71,64,0,76,64,90,76,0
db 0,64,0,0,52,0,0,71,0,30,64,64,0,52,64,0
db 71,64,0,76,64,90,76,0,0,64,0,0,52,0,0,71
db 0,30,76,64,0,71,64,0,64,64,0,52,64,90,52,0
db 0,76,0,0,71,0,0,64,0,134,102,76,64,0,71,64
db 0,64,64,0,52,64,90,52,0,0,76,0,0,71,0,0
db 64,0,30,76,64,0,71,64,0,64,64,0,52,64,30,52
db 0,0,76,0,0,71,0,0,64,0,30,76,64,0,71,64
db 0,64,64,0,52,64,30,52,0,0,76,0,0,71,0,0
db 64,0,30,76,64,0,71,64,0,64,64,0,52,64,90,52
db 0,0,76,0,0,71,0,0,64,0,30,76,64,0,71,64
db 0,64,64,0,52,64,90,52,0,0,76,0,0,71,0,0
db 64,0,129,22,76,64,0,71,64,0,64,64,0,52,64,90
db 52,0,0,76,0,0,71,0,0,64,0,30,76,64,0,71
db 64,0,64,64,0,52,64,90,52,0,0,76,0,0,71,0
db 0,64,0,30,76,64,0,71,64,0,64,64,0,69,64,0
db 52,64,90,52,0,0,64,0,0,76,0,0,71,0,0,69
db 0,30,76,64,0,71,64,0,64,64,0,52,64,90,52,0
db 0,76,0,0,71,0,0,64,0,30,76,64,0,71,64,0
db 64,64,0,52,64,30,52,0,0,76,0,0,71,0,0,64
db 0,30,76,64,0,71,64,0,64,64,0,52,64,30,52,0
db 0,76,0,0,71,0,0,64,0,30,76,64,0,71,64,0
db 64,64,0,52,64,90,52,0,0,76,0,0,71,0,0,64
db 0,30,76,64,0,71,64,0,64,64,0,52,64,90,52,0
db 0,76,0,0,71,0,0,64,0,129,22,76,64,0,71,64
db 0,64,64,0,52,64,90,52,0,0,76,0,0,71,0,0
db 64,0,30,76,64,0,71,64,0,64,64,0,52,64,90,52
db 0,0,76,0,0,71,0,0,64,0,30,76,64,0,71,64
db 0,64,64,0,52,64,90,52,0,0,76,0,0,71,0,0
db 64,0,30,76,64,0,71,64,0,64,64,0,52,64,90,52
db 0,0,76,0,0,71,0,0,64,0,30,76,64,0,71,64
db 0,64,64,0,52,64,30,52,0,0,76,0,0,71,0,0
db 64,0,30,76,64,0,71,64,0,64,64,0,52,64,30,52
db 0,0,76,0,0,71,0,0,64,0,30,76,64,0,71,64
db 0,64,64,0,52,64,90,52,0,0,76,0,0,71,0,0
db 64,0,30,76,64,0,71,64,0,64,64,0,52,64,90,52
db 0,0,76,0,0,71,0,0,64,0,129,22,76,64,0,71
db 64,0,64,64,0,52,64,90,52,0,0,76,0,0,71,0
db 0,64,0,30,76,64,0,71,64,0,64,64,0,52,64,90
db 52,0,0,76,0,0,71,0,0,64,0,30,76,64,0,71
db 64,0,64,64,0,52,64,90,52,0,0,76,0,0,71,0
db 0,64,0,30,76,64,0,71,64,0,64,64,0,52,64,90
db 52,0,0,76,0,0,71,0,0,64,0,30,76,64,0,71
db 64,0,64,64,0,52,64,30,52,0,0,76,0,0,71,0
db 0,64,0,30,76,64,0,71,64,0,64,64,0,52,64,30
db 52,0,0,76,0,0,71,0,0,64,0,30,76,64,0,71
db 64,0,64,64,0,52,64,90,52,0,0,76,0,0,71,0
db 0,64,0,30,76,64,0,71,64,0,64,64,0,52,64,90
db 52,0,0,76,0,0,71,0,0,64,0,129,22,76,64,0
db 71,64,0,64,64,0,52,64,90,52,0,0,76,0,0,71
db 0,0,64,0,30,76,64,0,71,64,0,64,64,0,52,64
db 90,52,0,0,76,0,0,71,0,0,64,0,30,76,64,0
db 71,64,0,64,64,0,52,64,0,57,64,90,57,0,0,64
db 0,0,76,0,0,71,0,0,52,0,30,69,64,0,64,64
db 0,57,64,0,52,64,0,74,64,90,74,0,0,57,0,0
db 69,0,0,64,0,0,52,0,30,69,64,0,64,64,0,57
db 64,0,52,64,0,74,64,30,74,0,0,57,0,0,69,0
db 0,64,0,0,52,0,30,69,64,0,64,64,0,57,64,0
db 52,64,0,74,64,30,74,0,0,57,0,0,69,0,0,64
db 0,0,52,0,30,69,64,0,64,64,0,57,64,0,52,64
db 0,74,64,90,74,0,0,57,0,0,69,0,0,64,0,0
db 52,0,30,69,64,0,64,64,0,57,64,0,52,64,0,74
db 64,90,74,0,0,57,0,0,69,0,0,64,0,0,52,0
db 129,22,69,64,0,64,64,0,57,64,0,52,64,0,74,64
db 90,74,0,0,57,0,0,69,0,0,64,0,0,52,0,30
db 69,64,0,64,64,0,57,64,0,74,64,90,74,0,0,69
db 0,0,64,0,0,57,0,30,69,64,0,64,64,0,57,64
db 0,52,64,0,74,64,90,74,0,0,57,0,0,69,0,0
db 64,0,0,52,0,30,69,64,0,64,64,0,57,64,0,52
db 64,90,52,0,0,69,0,0,64,0,0,57,0,30,69,64
db 0,64,64,0,57,64,0,52,64,30,52,0,0,69,0,0
db 64,0,0,57,0,30,69,64,0,64,64,0,57,64,0,52
db 64,30,52,0,0,69,0,0,64,0,0,57,0,30,69,64
db 0,64,64,0,57,64,0,52,64,90,52,0,0,69,0,0
db 64,0,0,57,0,30,69,64,0,64,64,0,57,64,0,52
db 64,90,52,0,0,69,0,0,64,0,0,57,0,129,22,69
db 64,0,64,64,0,57,64,0,52,64,90,52,0,0,69,0
db 0,64,0,0,57,0,30,69,64,0,64,64,0,57,64,90
db 57,0,0,64,0,0,69,0,30,69,64,0,64,64,0,57
db 64,0,52,64,90,52,0,0,69,0,0,64,0,0,57,0
db 30,76,64,0,71,64,0,64,64,0,52,64,90,52,0,0
db 76,0,0,71,0,0,64,0,30,76,64,0,71,64,0,64
db 64,0,52,64,30,52,0,0,76,0,0,71,0,0,64,0
db 30,76,64,0,71,64,0,64,64,0,52,64,30,52,0,0
db 76,0,0,71,0,0,64,0,30,76,64,0,71,64,0,64
db 64,0,52,64,90,52,0,0,76,0,0,71,0,0,64,0
db 30,76,64,0,71,64,0,64,64,0,52,64,90,52,0,0
db 76,0,0,71,0,0,64,0,129,22,71,64,0,64,64,0
db 52,64,0,68,64,90,68,0,0,71,0,0,64,0,0,52
db 0,30,71,64,0,64,64,0,52,64,90,52,0,0,64,0
db 0,71,0,30,71,64,0,64,64,0,52,64,90,52,0,0
db 64,0,0,71,0,30,76,64,0,71,64,0,64,64,0,52
db 64,90,52,0,0,76,0,0,71,0,0,64,0,30,76,64
db 0,71,64,0,64,64,0,52,64,30,52,0,0,76,0,0
db 71,0,0,64,0,30,76,64,0,71,64,0,64,64,0,52
db 64,30,52,0,0,76,0,0,71,0,0,64,0,30,76,64
db 0,71,64,0,64,64,0,52,64,90,52,0,0,76,0,0
db 71,0,0,64,0,30,76,64,0,71,64,0,64,64,0,52
db 64,90,52,0,0,76,0,0,71,0,0,64,0,129,22,71
db 64,0,64,64,0,52,64,0,68,64,90,68,0,0,71,0
db 0,64,0,0,52,0,30,71,64,0,64,64,0,52,64,90
db 52,0,0,64,0,0,71,0,30,71,64,0,64,64,0,52
db 64,90,52,0,0,64,0,0,71,0,30,66,64,0,59,64
db 0,54,64,90,54,0,0,59,0,0,66,0,30,66,64,0
db 59,64,0,54,64,90,54,0,0,59,0,0,66,0,30,54
db 64,0,59,64,0,66,64,90,66,0,0,59,0,0,54,0
db 30,54,64,0,59,64,0,66,64,90,66,0,0,59,0,0
db 54,0,30,54,64,0,59,64,0,66,64,90,66,0,0,59
db 0,0,54,0,30,54,64,0,59,64,0,66,64,90,66,0
db 0,59,0,0,54,0,30,54,64,0,59,64,0,66,64,90
db 66,0,0,59,0,0,54,0,30,54,64,0,59,64,0,66
db 64,90,66,0,0,59,0,0,54,0,30,64,64,0,57,64
db 0,52,64,90,52,0,0,57,0,0,64,0,30,64,64,0
db 57,64,0,52,64,90,52,0,0,57,0,0,64,0,30,64
db 64,0,57,64,0,52,64,90,52,0,0,57,0,0,64,0
db 30,64,64,0,57,64,0,52,64,90,52,0,0,57,0,0
db 64,0,30,64,64,0,57,64,0,52,64,90,52,0,0,57
db 0,0,64,0,30,64,64,0,57,64,0,52,64,90,52,0
db 0,57,0,0,64,0,30,64,64,0,57,64,0,52,64,90
db 52,0,0,57,0,0,64,0,30,64,64,0,57,64,0,52
db 64,90,52,0,0,57,0,0,64,0,30,64,64,0,71,64
db 0,76,64,0,52,64,90,52,0,0,64,0,0,71,0,0
db 76,0,30,76,64,0,71,64,0,64,64,0,52,64,30,52
db 0,0,76,0,0,71,0,0,64,0,30,76,64,0,71,64
db 0,64,64,0,52,64,30,52,0,0,76,0,0,71,0,0
db 64,0,30,64,64,0,76,64,0,71,64,0,52,64,90,52
db 0,0,64,0,0,76,0,0,71,0,30,64,64,0,71,64
db 0,76,64,0,52,64,90,52,0,0,64,0,0,71,0,0
db 76,0,129,22,64,64,0,52,64,0,71,64,0,76,64,90
db 76,0,0,64,0,0,52,0,0,71,0,30,64,64,0,52
db 64,0,71,64,0,76,64,90,76,0,0,64,0,0,52,0
db 0,71,0,30,64,64,0,52,64,0,71,64,0,76,64,90
db 76,0,0,64,0,0,52,0,0,71,0,30,76,64,0,71
db 64,0,64,64,0,52,64,90,52,0,0,76,0,0,71,0
db 0,64,0,30,52,64,0,64,64,0,71,64,0,76,64,90
db 76,0,0,52,0,0,64,0,0,71,0,30,52,64,0,76
db 64,0,71,64,0,64,64,0,56,64,90,56,0,0,71,0
db 0,52,0,0,76,0,0,64,0,30,52,64,0,64,64,0
db 71,64,0,76,64,0,56,64,90,56,0,0,71,0,0,52
db 0,0,64,0,0,76,0,30,52,64,0,64,64,0,76,64
db 0,71,64,0,62,64,90,62,0,0,76,0,0,52,0,0
db 64,0,0,71,0,30,52,64,0,64,64,0,76,64,0,71
db 64,0,62,64,90,62,0,0,76,0,0,52,0,0,64,0
db 0,71,0,30,52,64,0,64,64,0,71,64,0,76,64,0
db 56,64,30,56,0,30,57,64,30,71,0,0,76,0,0,52
db 0,0,64,0,30,52,64,0,64,64,0,71,64,0,76,64
db 30,57,0,30,57,64,30,57,0,0,76,0,0,52,0,0
db 64,0,0,71,0,30,71,64,0,66,64,0,59,64,90,59
db 0,0,66,0,0,71,0,30,71,64,0,66,64,0,59,64
db 90,59,0,0,66,0,0,71,0,30,71,64,0,66,64,0
db 59,64,90,59,0,0,66,0,0,71,0,30,71,64,0,66
db 64,0,59,64,90,59,0,0,66,0,0,71,0,30,71,64
db 0,66,64,0,59,64,90,59,0,0,66,0,0,71,0,30
db 71,64,0,66,64,0,59,64,90,59,0,0,66,0,0,71
db 0,30,71,64,0,66,64,0,59,64,90,59,0,0,66,0
db 0,71,0,30,57,64,90,57,0,30,57,64,0,64,64,0
db 71,64,90,71,0,0,64,0,0,57,0,30,57,64,0,64
db 64,0,71,64,90,71,0,0,64,0,0,57,0,30,57,64
db 0,64,64,0,71,64,90,71,0,0,64,0,0,57,0,30
db 57,64,0,64,64,0,71,64,90,71,0,0,64,0,0,57
db 0,30,57,64,0,64,64,0,71,64,90,71,0,0,64,0
db 0,57,0,30,57,64,0,64,64,0,71,64,90,71,0,0
db 64,0,0,57,0,30,57,64,0,64,64,0,71,64,90,71
db 0,0,64,0,0,57,0,30,57,64,0,64,64,0,71,64
db 90,71,0,0,64,0,0,57,0,30,71,64,0,66,64,0
db 59,64,90,59,0,0,66,0,0,71,0,30,71,64,0,66
db 64,0,59,64,90,59,0,0,66,0,0,71,0,30,71,64
db 0,66,64,0,59,64,90,59,0,0,66,0,0,71,0,30
db 71,64,0,66,64,0,59,64,90,59,0,0,66,0,0,71
db 0,30,71,64,0,66,64,0,59,64,90,59,0,0,66,0
db 0,71,0,30,71,64,0,66,64,0,59,64,90,59,0,0
db 66,0,0,71,0,30,71,64,0,66,64,0,59,64,90,59
db 0,0,66,0,0,71,0,30,57,64,90,57,0,30,57,64
db 0,64,64,0,71,64,90,71,0,0,64,0,0,57,0,30
db 57,64,0,64,64,0,71,64,90,71,0,0,64,0,0,57
db 0,30,57,64,0,64,64,0,71,64,90,71,0,0,64,0
db 0,57,0,30,57,64,0,64,64,0,71,64,90,71,0,0
db 64,0,0,57,0,30,57,64,0,64,64,0,71,64,90,71
db 0,0,64,0,0,57,0,30,57,64,0,64,64,0,71,64
db 90,71,0,0,64,0,0,57,0,30,57,64,0,64,64,0
db 71,64,90,71,0,0,64,0,0,57,0,30,57,64,0,64
db 64,0,71,64,90,71,0,0,64,0,0,57,0,30,61,64
db 0,68,64,0,73,64,90,73,0,0,68,0,0,61,0,30
db 73,64,0,68,64,0,61,64,90,61,0,0,68,0,0,73
db 0,30,61,64,0,68,64,0,73,64,90,73,0,0,68,0
db 0,61,0,30,61,64,0,68,64,0,73,64,90,73,0,0
db 68,0,0,61,0,30,61,64,0,68,64,0,73,64,90,73
db 0,0,68,0,0,61,0,30,61,64,0,68,64,0,73,64
db 90,73,0,0,68,0,0,61,0,30,61,64,0,68,64,0
db 73,64,90,73,0,0,68,0,0,61,0,30,61,64,0,68
db 64,0,73,64,90,73,0,0,68,0,0,61,0,30,66,64
db 0,61,64,0,57,64,90,57,0,0,61,0,0,66,0,30
db 57,64,0,61,64,0,66,64,90,66,0,0,61,0,0,57
db 0,30,57,64,0,61,64,0,66,64,90,66,0,0,61,0
db 0,57,0,30,57,64,0,61,64,0,66,64,90,66,0,0
db 61,0,0,57,0,30,57,64,0,61,64,0,66,64,90,66
db 0,0,61,0,0,57,0,30,57,64,0,61,64,0,66,64
db 90,66,0,0,61,0,0,57,0,30,57,64,0,61,64,0
db 66,64,90,66,0,0,61,0,0,57,0,30,57,64,0,61
db 64,0,66,64,90,66,0,0,61,0,0,57,0,30,69,64
db 0,64,64,0,57,64,90,57,0,0,64,0,0,69,0,30
db 57,64,0,64,64,0,69,64,90,69,0,0,64,0,0,57
db 0,30,57,64,0,69,64,0,64,64,90,64,0,0,69,0
db 0,57,0,30,57,64,0,64,64,0,69,64,90,69,0,0
db 64,0,0,57,0,30,71,64,0,66,64,0,59,64,90,59
db 0,0,66,0,0,71,0,129,22,59,64,0,66,64,0,71
db 64,90,71,0,0,66,0,0,59,0,129,22,61,64,0,68
db 64,0,73,64,90,73,0,0,68,0,0,61,0,30,61,64
db 0,68,64,0,73,64,30,68,0,30,68,64,30,68,0,0
db 73,0,0,61,0,30,61,64,0,68,64,0,73,64,90,73
db 0,0,68,0,0,61,0,30,61,64,0,68,64,0,73,64
db 0,76,64,90,76,0,0,61,0,0,68,0,0,73,0,30
db 73,64,0,68,64,0,61,64,90,61,0,0,68,0,0,73
db 0,129,22,59,64,0,66,64,0,71,64,90,71,0,0,66
db 0,0,59,0,129,22,69,64,0,64,64,0,57,64,90,57
db 0,0,64,0,0,69,0,30,57,64,0,64,64,0,69,64
db 90,69,0,0,64,0,0,57,0,30,57,64,0,69,64,0
db 64,64,90,64,0,0,69,0,0,57,0,30,57,64,0,64
db 64,0,69,64,90,69,0,0,64,0,0,57,0,30,71,64
db 0,66,64,0,59,64,90,59,0,0,66,0,0,71,0,30
db 71,64,90,71,0,30,59,64,0,66,64,0,71,64,90,71
db 0,0,66,0,0,59,0,30,71,64,90,71,0,30,61,64
db 0,68,64,0,73,64,90,73,0,0,68,0,0,61,0,30
db 61,64,0,68,64,0,73,64,30,68,0,30,68,64,30,68
db 0,0,73,0,0,61,0,30,61,64,0,68,64,0,73,64
db 90,73,0,0,68,0,0,61,0,30,61,64,0,68,64,0
db 73,64,0,76,64,90,76,0,0,61,0,0,68,0,0,73
db 0,30,73,64,0,68,64,0,61,64,90,61,0,0,68,0
db 0,73,0,129,22,59,64,0,66,64,0,71,64,90,71,0
db 0,66,0,0,59,0,129,22,69,64,0,64,64,0,57,64
db 90,57,0,0,64,0,0,69,0,30,57,64,0,64,64,0
db 69,64,90,69,0,0,64,0,0,57,0,30,57,64,0,69
db 64,0,64,64,90,64,0,0,69,0,0,57,0,30,57,64
db 0,64,64,0,69,64,90,69,0,0,64,0,0,57,0,30
db 71,64,0,66,64,0,59,64,90,59,0,0,66,0,0,71
db 0,30,71,64,90,71,0,30,59,64,0,66,64,0,71,64
db 90,71,0,0,66,0,0,59,0,30,71,64,90,71,0,30
db 71,64,0,76,64,0,52,64,0,64,64,90,64,0,0,71
db 0,0,76,0,0,52,0,30,71,64,0,76,64,0,52,64
db 0,64,64,0,59,64,30,59,0,0,52,0,0,71,0,0
db 76,0,0,64,0,30,71,64,0,76,64,0,52,64,0,64
db 64,30,64,0,0,71,0,0,76,0,0,52,0,30,71,64
db 0,76,64,0,52,64,0,64,64,0,68,64,90,68,0,0
db 52,0,0,71,0,0,76,0,0,64,0,30,71,64,0,76
db 64,0,52,64,0,64,64,90,64,0,0,71,0,0,76,0
db 0,52,0,30,76,64,90,76,0,30,71,64,0,76,64,0
db 64,64,0,52,64,90,52,0,0,71,0,0,76,0,0,64
db 0,30,71,64,0,76,64,0,64,64,0,52,64,0,69,64
db 90,69,0,0,64,0,0,71,0,0,76,0,0,52,0,30
db 71,64,0,76,64,0,64,64,0,52,64,0,69,64,90,69
db 0,0,64,0,0,71,0,0,76,0,0,52,0,30,64,64
db 0,71,64,0,76,64,0,52,64,0,68,64,0,59,64,90
db 59,0,0,71,0,0,76,0,0,64,0,0,68,0,0,52
db 0,134,102,64,64,0,71,64,0,76,64,0,52,64,90,52
db 0,0,64,0,0,71,0,0,76,0,30,76,64,0,71,64
db 0,64,64,0,52,64,30,52,0,0,76,0,0,71,0,0
db 64,0,30,76,64,0,71,64,0,64,64,0,52,64,30,52
db 0,0,76,0,0,71,0,0,64,0,30,64,64,0,76,64
db 0,71,64,0,52,64,90,52,0,0,64,0,0,76,0,0
db 71,0,30,64,64,0,71,64,0,76,64,0,52,64,90,52
db 0,0,64,0,0,71,0,0,76,0,129,22,64,64,0,68
db 64,0,52,64,0,71,64,90,71,0,0,64,0,0,68,0
db 0,52,0,30,64,64,0,52,64,0,71,64,90,71,0,0
db 52,0,0,64,0,30,64,64,0,52,64,0,71,64,90,71
db 0,0,52,0,0,64,0,30,64,64,0,71,64,0,76,64
db 0,52,64,90,52,0,0,64,0,0,71,0,0,76,0,30
db 76,64,0,71,64,0,64,64,0,52,64,30,52,0,0,76
db 0,0,71,0,0,64,0,30,76,64,0,71,64,0,64,64
db 0,52,64,30,52,0,0,76,0,0,71,0,0,64,0,30
db 64,64,0,76,64,0,71,64,0,52,64,90,52,0,0,64
db 0,0,76,0,0,71,0,30,64,64,0,71,64,0,76,64
db 0,52,64,90,52,0,0,64,0,0,71,0,0,76,0,129
db 22,64,64,0,68,64,0,52,64,0,71,64,90,71,0,0
db 64,0,0,68,0,0,52,0,30,64,64,0,52,64,0,71
db 64,90,71,0,0,52,0,0,64,0,30,64,64,0,52,64
db 0,71,64,90,71,0,0,52,0,0,64,0,30,64,64,0
db 71,64,0,76,64,0,52,64,90,52,0,0,64,0,0,71
db 0,0,76,0,30,76,64,0,71,64,0,64,64,0,52,64
db 30,52,0,0,76,0,0,71,0,0,64,0,30,76,64,0
db 71,64,0,64,64,0,52,64,30,52,0,0,76,0,0,71
db 0,0,64,0,30,64,64,0,76,64,0,71,64,0,52,64
db 90,52,0,0,64,0,0,76,0,0,71,0,30,64,64,0
db 71,64,0,76,64,0,52,64,90,52,0,0,64,0,0,71
db 0,0,76,0,129,22,64,64,0,68,64,0,52,64,0,71
db 64,90,71,0,0,64,0,0,68,0,0,52,0,30,64,64
db 0,52,64,0,71,64,90,71,0,0,52,0,0,64,0,30
db 64,64,0,52,64,0,71,64,90,71,0,0,52,0,0,64
db 0,30,64,64,0,71,64,0,76,64,0,52,64,90,52,0
db 0,64,0,0,71,0,0,76,0,30,76,64,0,71,64,0
db 64,64,0,52,64,30,52,0,0,76,0,0,71,0,0,64
db 0,30,76,64,0,71,64,0,64,64,0,52,64,30,52,0
db 0,76,0,0,71,0,0,64,0,30,64,64,0,76,64,0
db 71,64,0,52,64,90,52,0,0,64,0,0,76,0,0,71
db 0,30,64,64,0,71,64,0,76,64,0,52,64,90,52,0
db 0,64,0,0,71,0,0,76,0,129,22,64,64,0,68,64
db 0,52,64,0,71,64,90,71,0,0,64,0,0,68,0,0
db 52,0,30,64,64,0,52,64,0,71,64,90,71,0,0,52
db 0,0,64,0,30,64,64,0,52,64,0,71,64,90,71,0
db 0,52,0,0,64,0,30,69,64,0,64,64,0,57,64,0
db 52,64,90,52,0,0,69,0,0,64,0,0,57,0,30,69
db 64,0,64,64,0,57,64,0,52,64,30,52,0,0,69,0
db 0,64,0,0,57,0,30,69,64,0,64,64,0,57,64,0
db 52,64,30,52,0,0,69,0,0,64,0,0,57,0,30,69
db 64,0,64,64,0,57,64,0,52,64,90,52,0,0,69,0
db 0,64,0,0,57,0,30,69,64,0,64,64,0,57,64,0
db 52,64,90,52,0,0,69,0,0,64,0,0,57,0,129,22
db 69,64,0,64,64,0,57,64,0,52,64,90,52,0,0,69
db 0,0,64,0,0,57,0,30,69,64,0,64,64,0,57,64
db 90,57,0,0,64,0,0,69,0,30,69,64,0,64,64,0
db 57,64,0,52,64,90,52,0,0,69,0,0,64,0,0,57
db 0,30,69,64,0,64,64,0,57,64,0,52,64,90,52,0
db 0,69,0,0,64,0,0,57,0,30,69,64,0,64,64,0
db 57,64,0,52,64,30,52,0,0,69,0,0,64,0,0,57
db 0,30,69,64,0,64,64,0,57,64,0,52,64,30,52,0
db 0,69,0,0,64,0,0,57,0,30,69,64,0,64,64,0
db 57,64,0,52,64,90,52,0,0,69,0,0,64,0,0,57
db 0,30,69,64,0,64,64,0,57,64,0,52,64,90,52,0
db 0,69,0,0,64,0,0,57,0,129,22,69,64,0,64,64
db 0,57,64,0,52,64,90,52,0,0,69,0,0,64,0,0
db 57,0,30,69,64,0,64,64,0,57,64,90,57,0,0,64
db 0,0,69,0,30,64,64,0,52,64,90,52,0,0,64,0
db 30,64,64,0,71,64,0,76,64,0,52,64,90,52,0,0
db 64,0,0,71,0,0,76,0,30,76,64,0,71,64,0,64
db 64,0,52,64,30,52,0,0,76,0,0,71,0,0,64,0
db 30,76,64,0,71,64,0,64,64,0,52,64,30,52,0,0
db 76,0,0,71,0,0,64,0,30,64,64,0,76,64,0,71
db 64,0,52,64,90,52,0,0,64,0,0,76,0,0,71,0
db 30,64,64,0,71,64,0,76,64,0,52,64,90,52,0,0
db 64,0,0,71,0,0,76,0,129,22,64,64,0,68,64,0
db 52,64,0,71,64,90,71,0,0,64,0,0,68,0,0,52
db 0,30,64,64,0,52,64,0,71,64,90,71,0,0,52,0
db 0,64,0,30,64,64,0,52,64,0,71,64,90,71,0,0
db 52,0,0,64,0,30,64,64,0,71,64,0,76,64,0,52
db 64,90,52,0,0,64,0,0,71,0,0,76,0,30,76,64
db 0,71,64,0,64,64,0,52,64,30,52,0,0,76,0,0
db 71,0,0,64,0,30,76,64,0,71,64,0,64,64,0,52
db 64,30,52,0,0,76,0,0,71,0,0,64,0,30,64,64
db 0,76,64,0,71,64,0,52,64,90,52,0,0,64,0,0
db 76,0,0,71,0,30,64,64,0,71,64,0,76,64,0,52
db 64,90,52,0,0,64,0,0,71,0,0,76,0,129,22,64
db 64,0,68,64,0,52,64,0,71,64,90,71,0,0,64,0
db 0,68,0,0,52,0,30,64,64,0,52,64,0,71,64,90
db 71,0,0,52,0,0,64,0,30,64,64,0,52,64,0,71
db 64,90,71,0,0,52,0,0,64,0,30,66,64,0,59,64
db 0,54,64,90,54,0,0,59,0,0,66,0,30,66,64,0
db 59,64,0,54,64,90,54,0,0,59,0,0,66,0,30,54
db 64,0,59,64,0,66,64,90,66,0,0,59,0,0,54,0
db 30,54,64,0,59,64,0,66,64,90,66,0,0,59,0,0
db 54,0,30,54,64,0,59,64,0,66,64,90,66,0,0,59
db 0,0,54,0,30,54,64,0,59,64,0,66,64,90,66,0
db 0,59,0,0,54,0,30,54,64,0,59,64,0,66,64,90
db 66,0,0,59,0,0,54,0,30,54,64,0,59,64,0,66
db 64,90,66,0,0,59,0,0,54,0,30,64,64,0,57,64
db 0,52,64,90,52,0,0,57,0,0,64,0,30,64,64,0
db 57,64,0,52,64,90,52,0,0,57,0,0,64,0,30,64
db 64,0,57,64,0,52,64,90,52,0,0,57,0,0,64,0
db 30,64,64,0,57,64,0,52,64,90,52,0,0,57,0,0
db 64,0,30,64,64,0,57,64,0,52,64,90,52,0,0,57
db 0,0,64,0,30,64,64,0,57,64,0,52,64,90,52,0
db 0,57,0,0,64,0,30,64,64,0,57,64,0,52,64,90
db 52,0,0,57,0,0,64,0,30,64,64,0,57,64,0,52
db 64,90,52,0,0,57,0,0,64,0,30,64,64,0,71,64
db 0,76,64,0,52,64,90,52,0,0,64,0,0,71,0,0
db 76,0,30,76,64,0,71,64,0,64,64,0,52,64,30,52
db 0,0,76,0,0,71,0,0,64,0,30,76,64,0,71,64
db 0,64,64,0,52,64,30,52,0,0,76,0,0,71,0,0
db 64,0,30,64,64,0,76,64,0,71,64,0,52,64,90,52
db 0,0,64,0,0,76,0,0,71,0,30,64,64,0,71,64
db 0,76,64,0,52,64,90,52,0,0,64,0,0,71,0,0
db 76,0,129,22,64,64,0,52,64,0,71,64,0,76,64,90
db 76,0,0,64,0,0,52,0,0,71,0,30,64,64,0,52
db 64,0,71,64,0,76,64,90,76,0,0,64,0,0,52,0
db 0,71,0,30,64,64,0,52,64,0,71,64,0,76,64,90
db 76,0,0,64,0,0,52,0,0,71,0,30,52,64,0,64
db 64,0,71,64,0,76,64,90,76,0,0,52,0,0,64,0
db 0,71,0,134,102,64,64,0,71,64,0,76,64,0,52,64
db 90,52,0,0,64,0,0,71,0,0,76,0,30,76,64,0
db 71,64,0,64,64,0,52,64,30,52,0,0,76,0,0,71
db 0,0,64,0,30,76,64,0,71,64,0,64,64,0,52,64
db 30,52,0,0,76,0,0,71,0,0,64,0,30,64,64,0
db 76,64,0,71,64,0,52,64,90,52,0,0,64,0,0,76
db 0,0,71,0,30,64,64,0,71,64,0,76,64,0,52,64
db 90,52,0,0,64,0,0,71,0,0,76,0,129,22,64,64
db 0,68,64,0,52,64,0,71,64,90,71,0,0,64,0,0
db 68,0,0,52,0,30,64,64,0,52,64,0,71,64,90,71
db 0,0,52,0,0,64,0,30,64,64,0,52,64,0,71,64
db 90,71,0,0,52,0,0,64,0,30,64,64,0,71,64,0
db 76,64,0,52,64,90,52,0,0,64,0,0,71,0,0,76
db 0,30,76,64,0,71,64,0,64,64,0,52,64,30,52,0
db 0,76,0,0,71,0,0,64,0,30,76,64,0,71,64,0
db 64,64,0,52,64,30,52,0,0,76,0,0,71,0,0,64
db 0,30,64,64,0,76,64,0,71,64,0,52,64,90,52,0
db 0,64,0,0,76,0,0,71,0,30,64,64,0,71,64,0
db 76,64,0,52,64,90,52,0,0,64,0,0,71,0,0,76
db 0,129,22,64,64,0,68,64,0,52,64,0,71,64,90,71
db 0,0,64,0,0,68,0,0,52,0,30,64,64,0,52,64
db 0,71,64,90,71,0,0,52,0,0,64,0,30,64,64,0
db 52,64,0,71,64,90,71,0,0,52,0,0,64,0,30,64
db 64,0,71,64,0,76,64,0,52,64,90,52,0,0,64,0
db 0,71,0,0,76,0,30,76,64,0,71,64,0,64,64,0
db 52,64,30,52,0,0,76,0,0,71,0,0,64,0,30,76
db 64,0,71,64,0,64,64,0,52,64,30,52,0,0,76,0
db 0,71,0,0,64,0,30,64,64,0,76,64,0,71,64,0
db 52,64,90,52,0,0,64,0,0,76,0,0,71,0,30,64
db 64,0,71,64,0,76,64,0,52,64,90,52,0,0,64,0
db 0,71,0,0,76,0,129,22,64,64,0,68,64,0,52,64
db 0,71,64,90,71,0,0,64,0,0,68,0,0,52,0,30
db 64,64,0,52,64,0,71,64,90,71,0,0,52,0,0,64
db 0,30,64,64,0,52,64,0,71,64,90,71,0,0,52,0
db 0,64,0,30,64,64,0,71,64,0,76,64,0,52,64,90
db 52,0,0,64,0,0,71,0,0,76,0,30,76,64,0,71
db 64,0,64,64,0,52,64,30,52,0,0,76,0,0,71,0
db 0,64,0,30,76,64,0,71,64,0,64,64,0,52,64,30
db 52,0,0,76,0,0,71,0,0,64,0,30,64,64,0,76
db 64,0,71,64,0,52,64,90,52,0,0,64,0,0,76,0
db 0,71,0,30,64,64,0,71,64,0,76,64,0,52,64,90
db 52,0,0,64,0,0,71,0,0,76,0,129,22,64,64,0
db 68,64,0,52,64,0,71,64,90,71,0,0,64,0,0,68
db 0,0,52,0,30,64,64,0,52,64,0,71,64,90,71,0
db 0,52,0,0,64,0,30,64,64,0,52,64,0,71,64,90
db 71,0,0,52,0,0,64,0,30,69,64,0,64,64,0,57
db 64,0,52,64,90,52,0,0,69,0,0,64,0,0,57,0
db 30,69,64,0,57,64,0,64,64,0,52,64,30,52,0,0
db 69,0,0,57,0,0,64,0,30,69,64,0,64,64,0,57
db 64,0,52,64,30,52,0,0,69,0,0,64,0,0,57,0
db 30,69,64,0,57,64,0,64,64,0,52,64,90,52,0,0
db 69,0,0,57,0,0,64,0,30,69,64,0,64,64,0,57
db 64,0,52,64,90,52,0,0,69,0,0,64,0,0,57,0
db 129,22,69,64,0,57,64,0,64,64,0,52,64,90,52,0
db 0,69,0,0,57,0,0,64,0,30,69,64,0,57,64,0
db 64,64,90,64,0,0,57,0,0,69,0,30,69,64,0,64
db 64,0,57,64,0,52,64,90,52,0,0,69,0,0,64,0
db 0,57,0,30,69,64,0,64,64,0,57,64,0,52,64,90
db 52,0,0,69,0,0,64,0,0,57,0,30,69,64,0,57
db 64,0,64,64,0,52,64,30,52,0,0,69,0,0,57,0
db 0,64,0,30,69,64,0,64,64,0,57,64,0,52,64,30
db 52,0,0,69,0,0,64,0,0,57,0,30,69,64,0,57
db 64,0,64,64,0,52,64,90,52,0,0,69,0,0,57,0
db 0,64,0,30,69,64,0,64,64,0,57,64,0,52,64,90
db 52,0,0,69,0,0,64,0,0,57,0,129,22,69,64,0
db 57,64,0,64,64,0,52,64,90,52,0,0,69,0,0,57
db 0,0,64,0,30,69,64,0,57,64,0,64,64,90,64,0
db 0,57,0,0,69,0,30,64,64,0,52,64,90,52,0,0
db 64,0,30,64,64,0,71,64,0,76,64,0,52,64,90,52
db 0,0,64,0,0,71,0,0,76,0,30,76,64,0,71,64
db 0,64,64,0,52,64,30,52,0,0,76,0,0,71,0,0
db 64,0,30,76,64,0,71,64,0,64,64,0,52,64,30,52
db 0,0,76,0,0,71,0,0,64,0,30,64,64,0,76,64
db 0,71,64,0,52,64,90,52,0,0,64,0,0,76,0,0
db 71,0,30,64,64,0,71,64,0,76,64,0,52,64,90,52
db 0,0,64,0,0,71,0,0,76,0,129,22,64,64,0,68
db 64,0,52,64,0,71,64,90,71,0,0,64,0,0,68,0
db 0,52,0,30,64,64,0,52,64,0,71,64,90,71,0,0
db 52,0,0,64,0,30,64,64,0,52,64,0,71,64,90,71
db 0,0,52,0,0,64,0,30,64,64,0,71,64,0,76,64
db 0,52,64,90,52,0,0,64,0,0,71,0,0,76,0,30
db 76,64,0,71,64,0,64,64,0,52,64,30,52,0,0,76
db 0,0,71,0,0,64,0,30,76,64,0,71,64,0,64,64
db 0,52,64,30,52,0,0,76,0,0,71,0,0,64,0,30
db 64,64,0,76,64,0,71,64,0,52,64,90,52,0,0,64
db 0,0,76,0,0,71,0,30,64,64,0,71,64,0,76,64
db 0,52,64,90,52,0,0,64,0,0,71,0,0,76,0,129
db 22,64,64,0,68,64,0,52,64,0,71,64,90,71,0,0
db 64,0,0,68,0,0,52,0,30,64,64,0,52,64,0,71
db 64,90,71,0,0,52,0,0,64,0,30,64,64,0,52,64
db 0,71,64,90,71,0,0,52,0,0,64,0,30,66,64,0
db 59,64,0,54,64,90,54,0,0,59,0,0,66,0,30,66
db 64,0,59,64,0,54,64,0,71,64,90,71,0,0,66,0
db 0,59,0,0,54,0,30,66,64,0,59,64,0,54,64,90
db 54,0,0,59,0,0,66,0,30,66,64,0,59,64,0,54
db 64,0,71,64,90,71,0,0,66,0,0,59,0,0,54,0
db 30,66,64,0,59,64,0,54,64,90,54,0,0,59,0,0
db 66,0,30,66,64,0,59,64,0,54,64,0,71,64,90,71
db 0,0,66,0,0,59,0,0,54,0,30,66,64,0,59,64
db 0,54,64,90,54,0,0,59,0,0,66,0,30,66,64,0
db 59,64,0,54,64,0,71,64,90,71,0,0,66,0,0,59
db 0,0,54,0,30,52,64,0,57,64,0,64,64,90,64,0
db 0,57,0,0,52,0,30,69,64,0,64,64,0,57,64,0
db 52,64,90,52,0,0,69,0,0,64,0,0,57,0,30,52
db 64,0,57,64,0,64,64,90,64,0,0,57,0,0,52,0
db 30,69,64,0,64,64,0,57,64,0,52,64,90,52,0,0
db 69,0,0,64,0,0,57,0,30,52,64,0,57,64,0,64
db 64,90,64,0,0,57,0,0,52,0,30,69,64,0,64,64
db 0,57,64,0,52,64,90,52,0,0,69,0,0,64,0,0
db 57,0,30,52,64,0,57,64,0,64,64,90,64,0,0,57
db 0,0,52,0,30,69,64,0,64,64,0,57,64,0,52,64
db 90,52,0,0,69,0,0,64,0,0,57,0,30,64,64,0
db 71,64,0,76,64,0,52,64,90,52,0,0,64,0,0,71
db 0,0,76,0,30,76,64,0,71,64,0,64,64,0,52,64
db 30,52,0,0,76,0,0,71,0,0,64,0,30,76,64,0
db 71,64,0,64,64,0,52,64,30,52,0,0,76,0,0,71
db 0,0,64,0,30,64,64,0,76,64,0,71,64,0,52,64
db 90,52,0,0,64,0,0,76,0,0,71,0,30,64,64,0
db 71,64,0,76,64,0,52,64,90,52,0,0,64,0,0,71
db 0,0,76,0,129,22,64,64,0,52,64,0,71,64,90,71
db 0,0,52,0,0,64,0,30,64,64,0,52,64,0,71,64
db 90,71,0,0,52,0,0,64,0,30,64,64,0,52,64,0
db 71,64,0,57,64,90,57,0,0,64,0,0,52,0,0,71
db 0,30,52,64,0,64,64,0,71,64,0,76,64,90,76,0
db 0,52,0,0,64,0,0,71,0,30,52,64,0,64,64,0
db 71,64,0,76,64,30,76,0,0,52,0,0,64,0,0,71
db 0,30,52,64,0,64,64,0,71,64,0,76,64,30,76,0
db 0,52,0,0,64,0,0,71,0,30,56,64,0,68,64,0
db 64,64,0,71,64,0,76,64,90,76,0,0,64,0,0,56
db 0,0,68,0,0,71,0,30,56,64,0,71,64,0,64,64
db 0,76,64,90,76,0,0,56,0,0,71,0,0,64,0,30
db 62,64,0,74,64,0,71,64,90,71,0,0,74,0,0,62
db 0,30,62,64,0,74,64,0,64,64,0,71,64,0,76,64
db 90,76,0,0,64,0,0,62,0,0,74,0,0,71,0,30
db 56,64,0,68,64,0,64,64,0,71,64,0,76,64,90,76
db 0,0,64,0,0,56,0,0,68,0,0,71,0,30,57,64
db 0,69,64,0,64,64,0,71,64,0,76,64,90,76,0,0
db 64,0,0,57,0,0,69,0,0,71,0,30,66,64,0,59
db 64,0,54,64,90,54,0,0,59,0,0,66,0,30,66,64
db 0,59,64,0,54,64,0,71,64,90,71,0,0,66,0,0
db 59,0,0,54,0,30,66,64,0,59,64,0,54,64,90,54
db 0,0,59,0,0,66,0,30,66,64,0,59,64,0,54,64
db 0,71,64,90,71,0,0,66,0,0,59,0,0,54,0,30
db 66,64,0,59,64,0,54,64,90,54,0,0,59,0,0,66
db 0,30,66,64,0,59,64,0,54,64,0,71,64,90,71,0
db 0,66,0,0,59,0,0,54,0,30,66,64,0,59,64,0
db 54,64,90,54,0,0,59,0,0,66,0,30,66,64,0,59
db 64,0,54,64,0,71,64,90,71,0,0,66,0,0,59,0
db 0,54,0,30,52,64,0,57,64,0,64,64,90,64,0,0
db 57,0,0,52,0,30,69,64,0,64,64,0,57,64,0,52
db 64,90,52,0,0,69,0,0,64,0,0,57,0,30,52,64
db 0,57,64,0,64,64,90,64,0,0,57,0,0,52,0,30
db 69,64,0,64,64,0,57,64,0,52,64,90,52,0,0,69
db 0,0,64,0,0,57,0,30,52,64,0,57,64,0,64,64
db 90,64,0,0,57,0,0,52,0,30,69,64,0,64,64,0
db 57,64,0,52,64,90,52,0,0,69,0,0,64,0,0,57
db 0,30,52,64,0,57,64,0,64,64,90,64,0,0,57,0
db 0,52,0,30,69,64,0,64,64,0,57,64,0,52,64,90
db 52,0,0,69,0,0,64,0,0,57,0,30,52,64,0,64
db 64,0,71,64,0,76,64,90,76,0,0,52,0,0,64,0
db 0,71,0,30,52,64,0,64,64,0,71,64,0,76,64,30
db 76,0,0,52,0,0,64,0,0,71,0,14,59,64,14,59
db 0,2,52,64,0,64,64,0,71,64,0,76,64,30,76,0
db 0,52,0,0,64,0,0,71,0,0,64,64,14,64,0,16
db 52,64,0,64,64,0,71,64,0,76,64,90,76,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,76,64,90,76,0,0,52,0,0,64,0,0,71,0,129
db 22,52,64,0,64,64,0,71,64,0,76,64,90,76,0,0
db 52,0,0,64,0,0,71,0,30,52,64,0,64,64,0,71
db 64,0,76,64,90,76,0,0,52,0,0,64,0,0,71,0
db 30,52,64,0,64,64,0,71,64,0,76,64,0,59,64,90
db 59,0,0,71,0,0,52,0,0,64,0,0,76,0,30,52
db 64,0,64,64,0,71,64,0,76,64,90,76,0,0,52,0
db 0,64,0,0,71,0,134,102,64,64,0,71,64,0,52,64
db 0,68,64,90,68,0,0,64,0,0,71,0,0,52,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,73,64,0,69,64,90,69,0,0,52
db 0,0,64,0,0,73,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 64,64,0,71,64,0,52,64,0,68,64,90,68,0,0,64
db 0,0,71,0,0,52,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,73,64
db 0,69,64,90,69,0,0,52,0,0,64,0,0,73,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,64,64,0,71,64,0,52,64
db 0,68,64,90,68,0,0,64,0,0,71,0,0,52,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,73,64,0,69,64,90,69,0,0,52
db 0,0,64,0,0,73,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 64,64,0,71,64,0,52,64,0,68,64,90,68,0,0,64
db 0,0,71,0,0,52,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,73,64
db 0,69,64,90,69,0,0,52,0,0,64,0,0,73,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,64,64,0,71,64,0,52,64
db 0,68,64,90,68,0,0,64,0,0,71,0,0,52,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,73,64,0,69,64,90,69,0,0,52
db 0,0,64,0,0,73,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 64,64,0,71,64,0,52,64,0,68,64,90,68,0,0,64
db 0,0,71,0,0,52,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,73,64
db 0,69,64,90,69,0,0,52,0,0,64,0,0,73,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,64,64,0,71,64,0,52,64
db 0,68,64,90,68,0,0,64,0,0,71,0,0,52,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,73,64,0,69,64,90,69,0,0,52
db 0,0,64,0,0,73,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 64,64,0,71,64,0,52,64,0,68,64,90,68,0,0,64
db 0,0,71,0,0,52,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,73,64
db 0,69,64,90,69,0,0,52,0,0,64,0,0,73,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,64,64,0,71,64,0,52,64
db 0,68,64,90,68,0,0,64,0,0,71,0,0,52,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,73,64,0,69,64,90,69,0,0,52
db 0,0,64,0,0,73,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 64,64,0,71,64,0,52,64,0,68,64,90,68,0,0,64
db 0,0,71,0,0,52,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,73,64
db 0,69,64,90,69,0,0,52,0,0,64,0,0,73,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,64,64,0,71,64,0,52,64
db 0,68,64,90,68,0,0,64,0,0,71,0,0,52,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,73,64,0,69,64,90,69,0,0,52
db 0,0,64,0,0,73,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 64,64,0,71,64,0,52,64,0,68,64,90,68,0,0,64
db 0,0,71,0,0,52,0,30,52,64,0,64,64,0,71,64
db 0,68,64,30,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,30,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,52,64,0,64,64,0,73,64
db 0,69,64,90,69,0,0,52,0,0,64,0,0,73,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,30,64,64,0,71,64,0,52,64
db 0,68,64,0,179,7,110,90,147,68,0,0,64,0,0,71
db 0,0,52,0,30,52,64,0,64,64,0,71,64,0,68,64
db 30,68,0,0,52,0,0,64,0,0,71,0,30,52,64,0
db 64,64,0,71,64,0,68,64,30,68,0,0,52,0,0,64
db 0,0,71,0,30,52,64,0,64,64,0,71,64,0,68,64
db 90,68,0,0,52,0,0,64,0,0,71,0,30,52,64,0
db 64,64,0,71,64,0,68,64,90,68,0,0,52,0,0,64
db 0,0,71,0,30,52,64,0,64,64,0,71,64,0,68,64
db 90,68,0,0,52,0,0,64,0,0,71,0,30,52,64,0
db 64,64,0,71,64,0,68,64,90,68,0,0,52,0,0,64
db 0,0,71,0,30,52,64,0,64,64,0,73,64,0,69,64
db 90,69,0,0,52,0,0,64,0,0,73,0,30,52,64,0
db 64,64,0,71,64,0,68,64,90,68,0,0,52,0,0,64
db 0,0,71,0,30,64,64,0,71,64,0,52,64,0,68,64
db 0,179,7,90,90,147,68,0,0,64,0,0,71,0,0,52
db 0,30,52,64,0,64,64,0,71,64,0,68,64,30,68,0
db 0,52,0,0,64,0,0,71,0,30,52,64,0,64,64,0
db 71,64,0,68,64,30,68,0,0,52,0,0,64,0,0,71
db 0,30,52,64,0,64,64,0,71,64,0,68,64,90,68,0
db 0,52,0,0,64,0,0,71,0,30,52,64,0,64,64,0
db 71,64,0,68,64,90,68,0,0,52,0,0,64,0,0,71
db 0,30,52,64,0,64,64,0,71,64,0,68,64,90,68,0
db 0,52,0,0,64,0,0,71,0,30,52,64,0,64,64,0
db 71,64,0,68,64,90,68,0,0,52,0,0,64,0,0,71
db 0,30,52,64,0,64,64,0,73,64,0,69,64,90,69,0
db 0,52,0,0,64,0,0,73,0,30,52,64,0,64,64,0
db 71,64,0,68,64,90,68,0,0,52,0,0,64,0,0,71
db 0,30,64,64,0,71,64,0,52,64,0,68,64,0,179,7
db 70,90,147,68,0,0,64,0,0,71,0,0,52,0,30,52
db 64,0,64,64,0,71,64,0,68,64,30,68,0,0,52,0
db 0,64,0,0,71,0,30,52,64,0,64,64,0,71,64,0
db 68,64,30,68,0,0,52,0,0,64,0,0,71,0,30,52
db 64,0,64,64,0,71,64,0,68,64,90,68,0,0,52,0
db 0,64,0,0,71,0,30,52,64,0,64,64,0,71,64,0
db 68,64,90,68,0,0,52,0,0,64,0,0,71,0,30,52
db 64,0,64,64,0,71,64,0,68,64,90,68,0,0,52,0
db 0,64,0,0,71,0,30,52,64,0,64,64,0,71,64,0
db 68,64,90,68,0,0,52,0,0,64,0,0,71,0,30,52
db 64,0,64,64,0,73,64,0,69,64,90,69,0,0,52,0
db 0,64,0,0,73,0,30,52,64,0,64,64,0,71,64,0
db 68,64,90,68,0,0,52,0,0,64,0,0,71,0,30,64
db 64,0,71,64,0,52,64,0,68,64,0,179,7,50,90,147
db 68,0,0,64,0,0,71,0,0,52,0,30,52,64,0,64
db 64,0,71,64,0,68,64,30,68,0,0,52,0,0,64,0
db 0,71,0,30,52,64,0,64,64,0,71,64,0,68,64,30
db 68,0,0,52,0,0,64,0,0,71,0,30,52,64,0,64
db 64,0,71,64,0,68,64,90,68,0,0,52,0,0,64,0
db 0,71,0,30,52,64,0,64,64,0,71,64,0,68,64,90
db 68,0,0,52,0,0,64,0,0,71,0,30,52,64,0,64
db 64,0,71,64,0,68,64,90,68,0,0,52,0,0,64,0
db 0,71,0,30,52,64,0,64,64,0,71,64,0,68,64,90
db 68,0,0,52,0,0,64,0,0,71,0,30,52,64,0,64
db 64,0,73,64,0,69,64,90,69,0,0,52,0,0,64,0
db 0,73,0,30,52,64,0,64,64,0,71,64,0,68,64,90
db 68,0,0,52,0,0,64,0,0,71,0,30,64,64,0,71
db 64,0,52,64,0,68,64,0,179,7,30,90,147,68,0,0
db 64,0,0,71,0,0,52,0,30,52,64,0,64,64,0,71
db 64,0,68,64,30,68,0,0,52,0,0,64,0,0,71,0
db 30,52,64,0,64,64,0,71,64,0,68,64,30,68,0,0
db 52,0,0,64,0,0,71,0,30,52,64,0,64,64,0,71
db 64,0,68,64,90,68,0,0,52,0,0,64,0,0,71,0
db 30,52,64,0,64,64,0,71,64,0,68,64,90,68,0,0
db 52,0,0,64,0,0,71,0,30,52,64,0,64,64,0,71
db 64,0,68,64,90,68,0,0,52,0,0,64,0,0,71,0
db 30,52,64,0,64,64,0,71,64,0,68,64,90,68,0,0
db 52,0,0,64,0,0,71,0,30,52,64,0,64,64,0,73
db 64,0,69,64,90,69,0,0,52,0,0,64,0,0,73,0
db 30,52,64,0,64,64,0,71,64,0,68,64,90,68,0,0
db 52,0,0,64,0,0,71,0,30,64,64,0,71,64,0,52
db 64,0,68,64,0,179,7,20,90,147,68,0,0,64,0,0
db 71,0,0,52,0,30,52,64,0,64,64,0,71,64,0,68
db 64,30,68,0,0,52,0,0,64,0,0,71,0,30,52,64
db 0,64,64,0,71,64,0,68,64,30,68,0,0,52,0,0
db 64,0,0,71,0,30,52,64,0,64,64,0,71,64,0,68
db 64,90,68,0,0,52,0,0,64,0,0,71,0,30,52,64
db 0,64,64,0,71,64,0,68,64,90,68,0,0,52,0,0
db 64,0,0,71,0,30,52,64,0,64,64,0,71,64,0,68
db 64,90,68,0,0,52,0,0,64,0,0,71,0,30,52,64
db 0,64,64,0,71,64,0,68,64,90,68,0,0,52,0,0
db 64,0,0,71,0,30,52,64,0,64,64,0,73,64,0,69
db 64,90,69,0,0,52,0,0,64,0,0,73,0,30,52,64
db 0,64,64,0,71,64,0,68,64,90,68,0,0,52,0,0
db 64,0,0,71,0,30,64,64,0,71,64,0,52,64,0,68
db 64,0,179,7,10,90,147,68,0,0,64,0,0,71,0,0
db 52,0,30,52,64,0,64,64,0,71,64,0,68,64,30,68
db 0,0,52,0,0,64,0,0,71,0,30,52,64,0,64,64
db 0,71,64,0,68,64,30,68,0,0,52,0,0,64,0,0
db 71,0,30,52,64,0,64,64,0,71,64,0,68,64,90,68
db 0,0,52,0,0,64,0,0,71,0,30,52,64,0,64,64
db 0,71,64,0,68,64,90,68,0,0,52,0,0,64,0,0
db 71,0,14,179,7,5,16,147,52,64,0,64,64,0,71,64
db 0,68,64,90,68,0,0,52,0,0,64,0,0,71,0,30
db 52,64,0,64,64,0,71,64,0,68,64,90,68,0,0,52
db 0,0,64,0,0,71,0,14,179,7,2,16,147,52,64,0
db 64,64,0,73,64,0,69,64,90,69,0,0,52,0,0,64
db 0,0,73,0,30,52,64,0,64,64,0,71,64,0,68,64
db 90,68,0,0,52,0,0,64,0,0,71,0,0,255,47,0
db 77,84,114,107,0,0,13,84,0,255,3,11,76,101,97,100
db 32,71,117,105,116,97,114,0,192,30,129,217,64,144,93,64
db 0,85,64,0,81,64,0,74,64,0,69,64,44,69,0,0
db 81,0,0,93,0,0,85,0,0,74,0,120,92,64,0,83
db 64,0,80,64,0,71,64,0,68,64,44,68,0,0,80,0
db 0,92,0,0,83,0,0,71,0,122,88,64,0,85,64,0
db 76,64,0,74,64,0,64,64,44,64,0,0,76,0,0,88
db 0,0,85,0,0,74,0,90,90,64,0,81,64,0,78,64
db 0,66,64,0,62,64,14,62,0,0,78,0,0,90,0,0
db 81,0,0,66,0,2,92,64,0,83,64,0,80,64,0,68
db 64,0,64,64,104,64,0,0,80,0,0,92,0,0,83,0
db 0,68,0,16,90,64,0,81,64,0,78,64,0,66,64,0
db 62,64,30,66,0,0,78,0,14,90,0,16,88,64,0,76
db 64,0,64,64,30,64,0,0,88,0,0,62,0,0,81,0
db 0,76,0,30,90,64,0,80,64,0,78,64,0,66,64,0
db 59,64,30,59,0,0,78,0,0,90,0,0,80,0,0,66
db 0,30,76,64,0,88,64,0,64,64,0,57,64,44,57,0
db 0,76,0,0,88,0,0,64,0,129,8,59,64,0,66,64
db 0,76,64,0,81,64,0,85,64,0,88,64,0,93,64,2
db 93,0,0,85,0,0,81,0,0,76,0,0,88,0,12,78
db 64,0,83,64,0,87,64,0,90,64,0,95,64,133,36,59
db 0,129,22,57,64,0,64,64,0,69,64,0,73,64,30,73
db 0,0,69,0,0,57,0,0,64,0,30,57,64,0,64,64
db 0,69,64,0,73,64,28,95,0,0,83,0,0,87,0,0
db 90,0,0,78,0,2,66,0,0,73,0,0,69,0,0,57
db 0,0,64,0,30,57,64,0,64,64,0,69,64,0,73,64
db 134,102,73,0,0,57,0,0,64,0,0,69,0,30,75,64
db 0,71,64,0,66,64,0,59,64,30,59,0,0,75,0,0
db 71,0,0,66,0,30,59,64,0,66,64,0,71,64,0,75
db 64,134,42,75,0,0,59,0,0,66,0,0,71,0,30,57
db 64,0,73,64,0,69,64,0,64,64,30,64,0,0,57,0
db 0,73,0,0,69,0,30,57,64,0,73,64,0,69,64,0
db 64,64,30,64,0,0,57,0,0,73,0,0,69,0,30,73
db 64,0,69,64,0,64,64,0,57,64,133,50,64,0,0,73
db 0,0,69,0,30,69,64,0,73,64,0,76,64,44,76,0
db 16,78,64,129,22,78,0,0,73,0,0,69,0,0,57,0
db 30,61,64,0,68,64,0,71,64,0,76,64,0,80,64,135
db 34,80,0,0,71,0,0,61,0,0,68,0,0,76,0,30
db 64,64,0,61,64,0,71,64,0,54,64,130,74,71,0,30
db 70,64,90,70,0,30,70,64,90,70,0,30,66,64,90,66
db 0,0,61,0,30,61,64,90,61,0,30,66,64,0,70,64
db 90,70,0,0,54,0,0,64,0,0,66,0,30,57,64,0
db 64,64,0,69,64,0,73,64,131,66,73,0,0,57,0,0
db 64,0,0,69,0,30,75,64,0,71,64,0,66,64,0,59
db 64,131,66,59,0,0,75,0,0,71,0,0,66,0,30,61
db 64,0,68,64,0,73,64,0,76,64,131,66,76,0,0,61
db 0,0,68,0,0,73,0,30,76,64,0,73,64,0,68,64
db 0,61,64,90,61,0,0,76,0,0,73,0,0,68,0,129
db 22,59,64,0,66,64,0,71,64,0,75,64,90,75,0,0
db 59,0,0,66,0,0,71,0,129,22,57,64,0,64,64,0
db 69,64,0,73,64,131,66,73,0,0,57,0,0,64,0,0
db 69,0,30,75,64,0,71,64,0,66,64,0,59,64,131,66
db 59,0,0,75,0,0,71,0,0,66,0,30,61,64,0,68
db 64,0,73,64,0,76,64,131,66,76,0,0,61,0,0,68
db 0,0,73,0,30,76,64,0,73,64,0,68,64,0,61,64
db 90,61,0,0,76,0,0,73,0,0,68,0,129,22,59,64
db 0,66,64,0,71,64,0,75,64,90,75,0,0,59,0,0
db 66,0,0,71,0,129,22,57,64,0,64,64,0,69,64,0
db 73,64,131,66,73,0,0,57,0,0,64,0,0,69,0,30
db 75,64,0,71,64,0,66,64,0,59,64,131,66,59,0,0
db 75,0,0,71,0,0,66,0,30,52,64,0,64,64,0,71
db 64,0,76,64,136,26,76,0,0,52,0,0,64,0,0,71
db 0,130,14,71,64,90,71,0,120,76,64,60,76,0,90,78
db 64,60,78,0,104,80,64,60,80,0,129,8,80,64,129,112
db 81,64,30,80,0,90,80,64,30,81,0,129,22,80,0,0
db 79,64,14,79,0,0,78,64,14,78,0,2,77,64,14,77
db 0,0,76,64,2,76,0,132,102,71,64,90,71,0,120,76
db 64,60,76,0,90,78,64,60,78,0,104,80,64,60,80,0
db 76,80,64,120,81,64,30,80,0,30,80,64,30,81,0,60
db 80,0,30,76,64,30,76,0,30,71,64,30,71,0,90,80
db 64,120,81,64,14,80,0,46,80,64,14,81,0,16,80,0
db 30,76,64,30,76,0,30,71,64,30,71,0,30,69,64,30
db 69,0,30,68,64,129,82,68,0,0,67,64,14,67,0,0
db 66,64,2,66,0,132,72,85,64,129,96,86,64,30,85,0
db 46,85,64,28,86,0,32,85,0,30,81,64,60,81,0,14
db 76,64,60,76,0,16,74,64,60,74,0,30,73,64,30,73
db 0,30,74,64,30,74,0,30,73,64,60,73,0,30,69,64
db 2,69,0,88,64,64,129,6,64,0,0,63,64,14,63,0
db 2,62,64,14,61,64,2,61,0,14,62,0,132,28,85,64
db 60,85,0,0,86,64,44,86,0,0,85,64,44,85,0,2
db 86,64,14,86,0,16,85,64,30,85,0,30,81,64,30,81
db 0,30,76,64,30,76,0,90,80,64,30,80,0,0,81,64
db 30,81,0,0,80,64,30,80,0,0,81,64,30,81,0,0
db 80,64,30,80,0,0,81,64,30,81,0,0,80,64,14,80
db 0,16,76,64,44,76,0,30,71,64,2,71,0,74,69,64
db 90,69,0,30,68,64,131,36,68,0,0,67,64,14,67,0
db 0,66,64,14,66,0,2,65,64,14,65,0,0,64,64,2
db 64,0,131,94,176,7,100,16,144,71,64,0,75,64,0,66
db 64,0,59,64,74,58,64,0,65,64,0,70,64,0,74,64
db 16,59,0,0,66,0,0,71,0,0,75,0,0,57,64,0
db 64,64,0,69,64,0,73,64,14,58,0,0,70,0,0,74
db 0,0,65,0,0,56,64,0,63,64,0,68,64,0,72,64
db 16,57,0,0,69,0,0,73,0,0,64,0,0,55,64,0
db 62,64,0,67,64,0,71,64,14,56,0,0,68,0,0,72
db 0,0,63,0,0,54,64,0,61,64,0,66,64,0,70,64
db 16,55,0,0,67,0,0,71,0,0,62,0,0,53,64,0
db 60,64,0,65,64,0,69,64,14,54,0,0,66,0,0,70
db 0,0,61,0,0,52,64,0,59,64,0,64,64,0,68,64
db 16,53,0,0,65,0,0,69,0,0,60,0,0,51,64,0
db 58,64,0,63,64,0,67,64,14,52,0,0,64,0,0,68
db 0,0,59,0,0,50,64,0,57,64,0,62,64,0,66,64
db 16,51,0,0,63,0,0,67,0,0,58,0,0,49,64,0
db 56,64,0,61,64,0,65,64,14,50,0,0,62,0,0,66
db 0,0,57,0,0,48,64,0,55,64,0,60,64,0,64,64
db 0,176,7,115,16,144,49,0,0,61,0,0,65,0,0,56
db 0,0,78,64,0,47,64,0,54,64,0,59,64,0,63,64
db 14,48,0,0,60,0,0,64,0,0,55,0,0,46,64,0
db 53,64,0,58,64,0,62,64,16,47,0,0,59,0,0,63
db 0,0,54,0,0,45,64,0,52,64,0,57,64,0,61,64
db 14,46,0,0,58,0,0,62,0,0,53,0,0,44,64,0
db 51,64,0,56,64,0,60,64,16,45,0,0,57,0,0,61
db 0,0,52,0,0,43,64,0,50,64,0,55,64,0,59,64
db 14,44,0,0,56,0,0,60,0,0,51,0,0,42,64,0
db 49,64,0,54,64,0,58,64,16,43,0,0,55,0,0,59
db 0,0,50,0,0,41,64,0,48,64,0,53,64,0,57,64
db 14,42,0,0,54,0,0,58,0,0,49,0,0,40,64,0
db 47,64,0,52,64,0,56,64,16,41,0,0,53,0,0,57
db 0,0,48,0,0,39,64,0,46,64,0,51,64,0,55,64
db 14,40,0,0,52,0,0,56,0,0,47,0,0,38,64,0
db 45,64,0,50,64,0,54,64,16,39,0,0,51,0,0,55
db 0,0,46,0,0,37,64,0,44,64,0,49,64,0,53,64
db 14,38,0,0,50,0,0,54,0,0,45,0,0,36,64,0
db 43,64,0,48,64,0,52,64,16,37,0,0,49,0,0,53
db 0,0,44,0,0,35,64,0,42,64,0,47,64,0,51,64
db 14,36,0,0,48,0,0,52,0,0,43,0,0,34,64,0
db 41,64,0,46,64,0,50,64,16,35,0,0,47,0,0,51
db 0,0,42,0,0,33,64,0,40,64,0,45,64,0,49,64
db 14,34,0,0,46,0,0,50,0,0,41,0,16,33,0,0
db 45,0,0,49,0,0,40,0,0,80,64,0,75,64,0,71
db 64,0,66,64,0,59,64,30,78,0,90,78,64,30,80,0
db 130,28,75,0,0,78,0,0,77,64,14,77,0,2,76,64
db 14,76,0,0,75,64,2,75,0,131,80,59,0,0,66,0
db 0,71,0,30,80,64,120,81,64,30,80,0,90,81,0,0
db 80,64,14,80,0,30,76,64,14,76,0,32,71,64,14,71
db 0,16,80,64,129,6,80,0,30,76,64,14,76,0,32,71
db 64,14,71,0,16,80,64,129,22,80,0,30,76,64,30,76
db 0,30,71,64,14,71,0,30,68,64,14,68,0,32,68,64
db 30,68,0,0,69,64,30,69,0,0,70,64,30,70,0,0
db 69,64,30,69,0,0,70,64,30,70,0,0,69,64,30,69
db 0,30,68,64,30,68,0,30,64,64,30,64,0,30,59,64
db 30,59,0,30,57,64,30,57,0,30,56,64,30,56,0,90
db 67,64,2,67,0,12,69,64,129,36,69,0,2,67,64,14
db 67,0,30,64,64,30,64,0,16,62,64,14,62,0,16,59
db 64,30,59,0,14,57,64,14,57,0,32,55,64,30,55,0
db 0,52,64,131,126,51,64,14,52,0,0,50,64,16,51,0
db 0,49,64,14,50,0,0,48,64,16,49,0,0,47,64,14
db 48,0,0,46,64,16,47,0,0,45,64,14,46,0,0,44
db 64,16,45,0,0,43,64,14,44,0,0,42,64,16,43,0
db 0,41,64,14,42,0,0,40,64,16,41,0,14,40,0,235
db 0,52,64,129,82,52,0,141,46,40,64,90,40,0,30,40
db 64,30,40,0,30,40,64,30,40,0,30,38,64,90,38,0
db 30,40,64,90,40,0,129,22,38,64,90,38,0,30,38,64
db 30,38,0,30,40,64,30,40,0,30,44,64,30,44,0,30
db 40,64,30,40,0,30,40,64,90,40,0,30,40,64,30,40
db 0,30,40,64,30,40,0,30,38,64,90,38,0,30,40,64
db 90,40,0,129,22,40,64,90,40,0,30,40,64,90,40,0
db 129,22,40,64,90,40,0,30,40,64,30,40,0,30,40,64
db 30,40,0,30,38,64,90,38,0,30,40,64,90,40,0,129
db 22,40,64,90,40,0,30,38,64,90,38,0,30,40,64,90
db 40,0,30,40,64,90,40,0,30,40,64,30,40,0,30,40
db 64,30,40,0,30,38,64,90,38,0,30,40,64,90,40,0
db 129,22,40,64,90,40,0,30,38,64,90,38,0,30,40,64
db 90,40,0,30,40,64,90,40,0,30,44,64,30,44,0,30
db 40,64,30,40,0,30,40,64,90,40,0,30,40,64,90,40
db 0,129,22,38,64,90,38,0,30,38,64,30,38,0,30,40
db 64,30,40,0,30,44,64,30,44,0,30,40,64,30,40,0
db 30,40,64,90,40,0,30,40,64,30,40,0,30,40,64,30
db 40,0,30,38,64,90,38,0,30,40,64,90,40,0,129,22
db 40,64,90,40,0,30,40,64,90,40,0,30,40,64,90,40
db 0,30,40,64,90,40,0,30,40,64,30,40,0,30,40,64
db 30,40,0,30,40,64,90,40,0,30,40,64,90,40,0,129
db 22,40,64,90,40,0,30,40,64,90,40,0,30,40,64,90
db 40,0,30,40,64,90,40,0,30,40,64,30,40,0,30,40
db 64,30,40,0,30,40,64,90,40,0,30,40,64,90,40,0
db 129,22,40,64,90,40,0,30,40,64,90,40,0,30,40,64
db 90,40,0,30,40,64,90,40,0,30,40,64,30,40,0,30
db 40,64,30,40,0,30,40,64,90,40,0,30,40,64,90,40
db 0,129,22,40,64,90,40,0,30,40,64,90,40,0,30,40
db 64,90,40,0,30,40,64,90,40,0,30,44,64,30,44,0
db 30,40,64,30,40,0,30,35,64,90,35,0,30,40,64,90
db 40,0,129,22,40,64,90,40,0,30,40,64,90,40,0,30
db 40,64,90,40,0,30,40,64,90,40,0,30,40,64,30,40
db 0,30,40,64,30,40,0,30,40,64,90,40,0,30,40,64
db 90,40,0,129,22,38,64,90,38,0,30,38,64,30,38,0
db 30,40,64,30,40,0,30,44,64,30,44,0,30,40,64,30
db 40,0,30,40,64,90,40,0,30,40,64,30,40,0,30,40
db 64,30,40,0,30,35,64,90,35,0,30,40,64,90,40,0
db 129,22,40,64,90,40,0,30,40,64,90,40,0,30,40,64
db 90,40,0,30,40,64,0,176,7,110,90,144,40,0,30,40
db 64,30,40,0,30,40,64,30,40,0,30,40,64,90,40,0
db 30,40,64,90,40,0,129,22,38,64,90,38,0,30,38,64
db 30,38,0,30,40,64,30,40,0,30,44,64,30,44,0,30
db 40,64,30,40,0,30,40,64,0,176,7,90,90,144,40,0
db 30,40,64,30,40,0,30,40,64,30,40,0,30,35,64,90
db 35,0,30,40,64,90,40,0,129,22,40,64,90,40,0,30
db 40,64,90,40,0,30,40,64,90,40,0,30,40,64,0,176
db 7,70,90,144,40,0,30,32,64,90,32,0,30,35,64,90
db 35,0,30,40,64,90,40,0,129,22,40,64,90,40,0,30
db 40,64,90,40,0,30,40,64,90,40,0,30,40,64,0,176
db 7,50,90,144,40,0,30,40,64,30,40,0,30,40,64,30
db 40,0,30,40,64,90,40,0,30,40,64,90,40,0,129,22
db 40,64,90,40,0,30,40,64,90,40,0,30,40,64,90,40
db 0,30,40,64,0,176,7,30,90,144,40,0,30,40,64,30
db 40,0,30,40,64,30,40,0,30,40,64,90,40,0,30,40
db 64,90,40,0,129,22,40,64,90,40,0,30,40,64,90,40
db 0,30,40,64,90,40,0,30,40,64,0,176,7,20,90,144
db 40,0,30,40,64,30,40,0,30,40,64,30,40,0,30,40
db 64,90,40,0,30,40,64,90,40,0,129,22,38,64,90,38
db 0,30,38,64,30,38,0,30,40,64,30,40,0,30,44,64
db 30,44,0,30,40,64,30,40,0,30,40,64,0,176,7,10
db 90,144,40,0,30,40,64,30,40,0,30,40,64,30,40,0
db 30,40,64,90,40,0,30,40,64,90,40,0,30,176,7,5
db 120,144,40,64,90,40,0,14,176,7,2,16,144,40,64,90
db 40,0,30,40,64,90,40,0,0,255,47,0,77,84,114,107
db 0,0,5,159,0,255,3,7,83,116,114,105,110,103,115,0
db 193,44,129,255,0,145,49,64,0,56,64,0,61,64,0,64
db 64,0,68,64,135,34,68,0,0,56,0,0,49,0,0,64
db 0,30,66,64,0,59,64,0,52,64,0,42,64,131,66,59
db 0,30,58,64,131,66,58,0,0,42,0,0,61,0,0,66
db 0,0,52,0,30,61,64,0,64,64,0,69,64,0,45,64
db 131,66,45,0,0,61,0,0,64,0,0,69,0,30,47,64
db 0,63,64,0,66,64,0,71,64,131,66,71,0,0,47,0
db 0,63,0,0,66,0,30,73,64,0,68,64,0,64,64,0
db 49,64,133,50,49,0,0,73,0,0,68,0,0,64,0,30
db 47,64,0,63,64,0,66,64,0,71,64,129,82,71,0,0
db 47,0,0,63,0,0,66,0,30,61,64,0,64,64,0,69
db 64,0,45,64,131,66,45,0,0,61,0,0,64,0,0,69
db 0,30,47,64,0,63,64,0,66,64,0,71,64,131,66,71
db 0,0,47,0,0,63,0,0,66,0,30,73,64,0,68,64
db 0,64,64,0,49,64,133,50,49,0,0,73,0,0,68,0
db 0,64,0,30,47,64,0,63,64,0,66,64,0,71,64,129
db 82,71,0,0,47,0,0,63,0,0,66,0,30,61,64,0
db 64,64,0,69,64,0,45,64,131,66,45,0,0,61,0,0
db 64,0,0,69,0,30,47,64,0,63,64,0,66,64,0,71
db 64,131,66,71,0,0,47,0,0,63,0,0,66,0,30,68
db 64,0,71,64,0,76,64,0,52,64,0,40,64,136,26,40
db 0,0,76,0,0,68,0,0,71,0,0,52,0,130,14,59
db 64,90,59,0,120,64,64,60,64,0,90,66,64,60,66,0
db 104,68,64,60,68,0,129,8,68,64,129,112,69,64,30,68
db 0,90,209,0,0,145,68,64,30,69,0,129,22,68,0,0
db 67,64,14,67,0,0,66,64,14,66,0,2,65,64,14,65
db 0,0,64,64,2,64,0,132,102,59,64,90,59,0,120,64
db 64,60,64,0,90,66,64,60,66,0,104,68,64,60,68,0
db 76,68,64,120,69,64,30,68,0,30,68,64,30,69,0,60
db 68,0,30,64,64,30,64,0,30,59,64,30,59,0,90,68
db 64,120,69,64,14,68,0,46,68,64,14,69,0,16,68,0
db 30,64,64,30,64,0,30,59,64,30,59,0,30,57,64,30
db 57,0,30,56,64,129,82,56,0,0,55,64,14,55,0,0
db 54,64,2,54,0,132,72,73,64,129,96,74,64,30,73,0
db 46,73,64,28,74,0,32,73,0,30,69,64,60,69,0,14
db 64,64,60,64,0,16,62,64,60,62,0,30,61,64,30,61
db 0,30,62,64,30,62,0,30,61,64,60,61,0,30,57,64
db 2,57,0,88,52,64,129,6,52,0,0,51,64,14,51,0
db 2,50,64,14,49,64,2,49,0,14,50,0,132,28,73,64
db 60,73,0,0,74,64,44,74,0,0,73,64,44,73,0,2
db 74,64,14,74,0,16,73,64,30,73,0,30,69,64,30,69
db 0,30,64,64,30,64,0,90,68,64,30,68,0,0,69,64
db 30,69,0,0,68,64,30,68,0,0,69,64,30,69,0,0
db 68,64,30,68,0,0,69,64,30,69,0,0,68,64,14,68
db 0,16,64,64,44,64,0,30,59,64,2,59,0,74,57,64
db 90,57,0,30,56,64,131,36,56,0,0,55,64,14,55,0
db 0,54,64,14,54,0,2,53,64,14,53,0,0,52,64,2
db 52,0,133,94,66,64,129,112,68,64,30,66,0,90,66,64
db 30,68,0,130,28,66,0,0,65,64,14,65,0,2,64,64
db 14,64,0,0,63,64,2,63,0,131,110,68,64,120,69,64
db 30,68,0,90,69,0,0,68,64,14,68,0,30,64,64,14
db 64,0,32,59,64,14,59,0,16,68,64,129,6,68,0,30
db 64,64,14,64,0,32,59,64,14,59,0,16,68,64,129,22
db 68,0,30,64,64,30,64,0,30,59,64,14,59,0,30,56
db 64,14,56,0,32,56,64,30,56,0,0,57,64,30,57,0
db 0,58,64,30,58,0,0,57,64,30,57,0,0,58,64,30
db 58,0,0,57,64,30,57,0,30,57,64,30,57,0,30,52
db 64,30,52,0,30,47,64,30,47,0,30,45,64,30,45,0
db 30,44,64,30,44,0,90,55,64,2,55,0,12,57,64,129
db 36,57,0,2,55,64,14,55,0,30,52,64,30,52,0,16
db 50,64,14,50,0,16,47,64,30,47,0,14,45,64,14,45
db 0,32,43,64,30,43,0,0,40,64,131,126,39,64,14,40
db 0,0,38,64,16,39,0,0,37,64,14,38,0,0,36,64
db 16,37,0,0,35,64,14,36,0,0,34,64,16,35,0,0
db 33,64,14,34,0,0,32,64,16,33,0,0,31,64,14,32
db 0,0,30,64,16,31,0,0,29,64,14,30,0,0,28,64
db 16,29,0,14,28,0,130,0,64,64,0,68,64,0,71,64
db 0,52,64,140,114,71,0,0,68,0,30,73,64,0,69,64
db 129,82,69,0,0,73,0,0,64,0,30,71,64,0,68,64
db 0,64,64,142,98,64,0,0,52,0,0,71,0,0,68,0
db 30,64,64,0,61,64,0,45,64,140,114,64,0,30,66,64
db 129,82,66,0,0,45,0,0,61,0,30,68,64,0,64,64
db 0,52,64,142,98,52,0,0,64,0,0,68,0,30,66,64
db 0,63,64,0,47,64,135,34,47,0,0,63,0,0,66,0
db 30,45,64,0,61,64,0,64,64,0,69,64,135,34,69,0
db 0,45,0,0,61,0,0,64,0,30,68,64,0,64,64,0
db 59,64,0,52,64,142,98,52,0,0,68,0,0,64,0,0
db 59,0,30,66,64,0,63,64,0,47,64,135,34,47,0,0
db 63,0,0,66,0,30,61,64,0,64,64,0,69,64,0,57
db 64,135,34,57,0,0,61,0,0,64,0,0,69,0,30,68
db 64,0,71,64,0,76,64,0,64,64,136,26,64,0,0,68
db 0,0,71,0,0,76,0,134,102,83,64,139,32,71,64,131
db 66,83,0,135,94,59,64,130,74,71,0,139,62,71,64,90
db 59,0,135,94,59,64,129,82,71,0,141,16,59,0,145,14
db 83,64,131,66,83,0,130,14,83,64,129,82,83,0,133,110
db 83,64,0,177,7,110,131,66,145,83,0,131,126,83,64,0
db 177,7,90,131,66,145,83,0,131,126,71,64,0,177,7,70
db 131,66,145,71,0,131,126,59,64,0,177,7,50,131,66,145
db 59,0,131,126,177,7,30,135,64,7,20,135,64,7,10,0
db 255,47,0,77,84,114,107,0,0,0,28,0,255,3,20,43
db 61,43,61,43,61,43,61,43,61,43,61,43,61,43,61,43
db 61,43,61,0,255,47,0,77,84,114,107,0,0,2,226,0
db 255,3,12,72,97,114,109,111,110,121,32,76,101,97,100,0
db 206,84,130,189,104,158,59,64,90,59,0,120,64,64,60,64
db 0,90,66,64,60,66,0,104,68,64,60,68,0,129,8,68
db 64,129,112,69,64,30,68,0,90,222,0,0,158,68,64,30
db 69,0,129,22,68,0,0,67,64,14,67,0,0,66,64,14
db 66,0,2,65,64,14,65,0,0,64,64,2,64,0,132,102
db 59,64,90,59,0,120,64,64,60,64,0,90,66,64,60,66
db 0,104,68,64,60,68,0,76,68,64,120,69,64,30,68,0
db 30,68,64,30,69,0,60,68,0,30,64,64,30,64,0,30
db 59,64,30,59,0,90,68,64,120,69,64,14,68,0,46,68
db 64,14,69,0,16,68,0,30,64,64,30,64,0,30,59,64
db 30,59,0,30,57,64,30,57,0,30,56,64,129,82,56,0
db 0,55,64,14,55,0,0,54,64,2,54,0,132,72,73,64
db 129,96,74,64,30,73,0,46,73,64,28,74,0,32,73,0
db 30,69,64,60,69,0,14,64,64,60,64,0,16,62,64,60
db 62,0,30,61,64,30,61,0,30,62,64,30,62,0,30,61
db 64,60,61,0,30,57,64,2,57,0,88,52,64,129,6,52
db 0,0,51,64,14,51,0,2,50,64,14,49,64,2,49,0
db 14,50,0,132,28,73,64,60,73,0,0,74,64,44,74,0
db 0,73,64,44,73,0,2,74,64,14,74,0,16,73,64,30
db 73,0,30,69,64,30,69,0,30,64,64,30,64,0,90,68
db 64,30,68,0,0,69,64,30,69,0,0,68,64,30,68,0
db 0,69,64,30,69,0,0,68,64,30,68,0,0,69,64,30
db 69,0,0,68,64,14,68,0,16,64,64,44,64,0,30,59
db 64,2,59,0,74,57,64,90,57,0,30,56,64,131,36,56
db 0,0,55,64,14,55,0,0,54,64,14,54,0,2,53,64
db 14,53,0,0,52,64,2,52,0,133,94,66,64,129,112,68
db 64,30,66,0,90,66,64,30,68,0,130,28,66,0,0,65
db 64,14,65,0,2,64,64,14,64,0,0,63,64,2,63,0
db 131,110,68,64,120,69,64,30,68,0,90,69,0,0,68,64
db 14,68,0,30,64,64,14,64,0,32,59,64,14,59,0,16
db 68,64,129,6,68,0,30,64,64,14,64,0,32,59,64,14
db 59,0,16,68,64,129,22,68,0,30,64,64,30,64,0,30
db 59,64,14,59,0,30,56,64,14,56,0,32,56,64,30,56
db 0,0,57,64,30,57,0,0,58,64,30,58,0,0,57,64
db 30,57,0,0,58,64,30,58,0,0,57,64,30,57,0,30
db 57,64,30,57,0,30,52,64,30,52,0,30,47,64,30,47
db 0,30,45,64,30,45,0,30,44,64,30,44,0,90,55,64
db 2,55,0,12,57,64,129,36,57,0,2,55,64,14,55,0
db 30,52,64,30,52,0,16,50,64,14,50,0,16,47,64,30
db 47,0,14,45,64,14,45,0,32,43,64,30,43,0,0,40
db 64,131,126,39,64,14,40,0,0,38,64,16,39,0,0,37
db 64,14,38,0,0,36,64,16,37,0,0,35,64,14,36,0
db 0,34,64,16,35,0,0,33,64,14,34,0,0,32,64,16
db 33,0,0,31,64,14,32,0,0,30,64,16,31,0,0,29
db 64,14,30,0,0,28,64,16,29,0,14,28,0,0,255,47
db 0,77,84,114,107,0,0,0,28,0,255,3,20,73,32,87
db 97,110,116,32,116,111,32,66,114,101,97,107,32,70,114,101
db 101,0,255,47,0,77,84,114,107,0,0,0,13,0,255,3
db 5,81,85,69,69,78,0,255,47,0,77,84,114,107,0,0
db 0,20,0,255,3,12,83,101,113,117,101,110,99,101,100,32
db 98,121,0,255,47,0,77,84,114,107,0,0,0,22,0,255
db 3,14,84,114,105,115,116,97,32,76,121,99,111,115,107,121
db 0,255,47,0,10
songs_midi ends
END START
|
src/search-tokenizers.ads | stcarrez/ada-search | 9 | 5583 | <filename>src/search-tokenizers.ads
-----------------------------------------------------------------------
-- search-tokenizers -- Search engine tokenizers
-- Copyright (C) 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- 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.
-----------------------------------------------------------------------
with Ada.Finalization;
with Util.Streams;
private with Util.Strings.Builders;
private with Ada.Streams;
-- == Tokenizers ==
-- Tokenizers read the input stream to identify the token string and give them
-- to the analyzer.
package Search.Tokenizers is
type Consumer_Type is limited Interface;
procedure Push_Token (Filter : in out Consumer_Type;
Token : in String;
Consumer : not null
access procedure (Token : in String)) is abstract;
type Tokenizer_Type is limited new Ada.Finalization.Limited_Controlled with private;
overriding
procedure Initialize (Lexer : in out Tokenizer_Type);
procedure Parse (Lexer : in out Tokenizer_Type;
Stream : in out Util.Streams.Input_Stream'Class;
Filter : in out Consumer_Type'Class;
Consumer : not null
access procedure (Token : in String));
procedure Fill (Lexer : in out Tokenizer_Type;
Stream : in out Util.Streams.Input_Stream'Class);
procedure Skip_Spaces (Lexer : in out Tokenizer_Type;
Stream : in out Util.Streams.Input_Stream'Class);
procedure Read_Token (Lexer : in out Tokenizer_Type;
Stream : in out Util.Streams.Input_Stream'Class);
private
subtype Lexer_Offset is Ada.Streams.Stream_Element_Offset;
type Element_Bitmap is array (Ada.Streams.Stream_Element) of Boolean with Pack;
type Element_Bitmap_Access is access all Element_Bitmap;
type Tokenizer_Type is limited new Ada.Finalization.Limited_Controlled with record
Separators : Element_Bitmap;
Pos : Lexer_Offset := 0;
Last : Lexer_Offset := 0;
Buffer : Ada.Streams.Stream_Element_Array (1 .. 1024);
Text : Util.Strings.Builders.Builder (128);
end record;
end Search.Tokenizers;
|
iTMW - Detect Phone.applescript | GloomyJD/itmw | 0 | 3762 | <filename>iTMW - Detect Phone.applescript
on adding folder items to this_folder after receiving added_items
try
set pref to do shell script "/usr/bin/defaults read com.itmw.itmw phoneDetected"
set phonedetected to pref as number
on error
return
end try
if phonedetected = 1 then return
try
set musicpath to do shell script "/usr/bin/defaults read com.itmw.itmw musicPath | /usr/bin/sed 's/\\\\\\\\/\\\\/'"
set dir to do shell script "/bin/ls -d " & musicpath
on error
return
end try
if dir = "" then return
if dir contains return then return
set phonepath to POSIX file dir as string
tell application "Finder"
repeat with x in added_items
if disk of folder phonepath = disk of x then
if phonedetected = 2 then
tell me to set sync to choose from list {"Unmount", "Open Image Capture", "Open iPhoto", "Synchronize"} with title "iTuneMyWalkman" with prompt "iTuneMyWalkman has detected the phone. What do you want to do?" with multiple selections allowed
if sync = false then return
if sync contains "Unmount" then
eject disk of x
return
end if
if sync contains "Synchronize" then
my openapp()
end if
if sync contains "Open Image Capture" then open application file id "icac"
if sync contains "Open iPhoto" then open application file id "iPho"
else if phonedetected = 3 then
my openapp()
end if
end if
end repeat
end tell
end adding folder items to
-- This method is used to hide the tell block from Xcode during compile time.
-- Otherwise the compiling would fail, if the application is not found.
on openapp()
do shell script "/usr/bin/osascript -e \\
'tell application \"iTuneMyWalkman\"
launch
activate
ignoring application responses
tell button \"sync\" of window \"main\" to perform action
end ignoring
end tell'"
end openapp |
projects/batfish/src/main/antlr4/org/batfish/grammar/palo_alto/PaloAltoLexer.g4 | netarch/batfish | 0 | 7712 | lexer grammar PaloAltoLexer;
options {
superClass = 'org.batfish.grammar.BatfishLexer';
}
@members {
// Java code to end up in PaloAltoLexer.java goes here
}
// Keywords
ACTION
:
'action'
;
ADMIN_DIST
:
'admin-dist'
;
AES_128_CBC
:
'aes-128-cbc'
;
AES_128_GCM
:
'aes-128-gcm'
;
AES_192_CBC
:
'aes-192-cbc'
;
AES_256_CBC
:
'aes-256-cbc'
;
AES_256_GCM
:
'aes-256-gcm'
;
ALLOW
:
'allow'
;
ANY
:
'any'
;
APPLICATION
:
'application'
;
AUTHENTICATION
:
'authentication'
;
AUTHENTICATION_TYPE
:
'authentication-type'
;
AUTO
:
'auto'
;
CLOSE_BRACKET
:
']'
;
COMMENT
:
'comment'
;
CONFIG
:
'config'
;
CRYPTO_PROFILES
:
'crypto-profiles'
;
DAYS
:
'days'
;
DEFAULT_GATEWAY
:
'default-gateway'
;
DENY
:
'deny'
;
DES
:
'des'
;
DESCRIPTION
:
'description'
;
DESTINATION
:
'destination'
;
DEVICES
:
'devices'
;
DEVICECONFIG
:
'deviceconfig'
;
DH_GROUP
:
'dh-group'
;
DISABLED
:
'disabled'
;
DNS
:
'dns'
;
DNS_SETTING
:
'dns-setting'
;
DOWN
:
'down'
;
DROP
:
'drop'
;
ENCRYPTION
:
'encryption'
;
ESP
:
'esp'
;
ETHERNET
:
'ethernet'
;
FROM
:
'from'
;
GATEWAY
:
'gateway'
;
GLOBAL_PROTECT_APP_CRYPTO_PROFILES
:
'global-protect-app-crypto-profiles'
;
GROUP1
:
'group1'
;
GROUP2
:
'group2'
;
GROUP5
:
'group5'
;
GROUP14
:
'group14'
;
GROUP19
:
'group19'
;
GROUP20
:
'group20'
;
HASH
:
'hash'
;
HOSTNAME
:
'hostname'
;
HOURS
:
'hours'
;
ICMP
:
'icmp'
;
IKE
:
'ike'
;
IKE_CRYPTO_PROFILES
:
'ike-crypto-profiles'
;
INTERFACE
:
'interface'
;
IP
:
'ip'
;
IP_ADDRESS_LITERAL
:
'ip-address'
;
IPSEC_CRYPTO_PROFILES
:
'ipsec-crypto-profiles'
;
LAYER3
:
'layer3'
;
LIFETIME
:
'lifetime'
;
LINK_STATUS
:
'link-status'
;
LOG_SETTINGS
:
'log-settings'
;
MD5
:
'md5'
;
MINUTES
:
'minutes'
;
MEMBERS
:
'members'
;
METRIC
:
'metric'
;
MTU
:
'mtu'
;
NETMASK
:
'netmask'
;
NETWORK
:
'network'
;
NEXTHOP
:
'nexthop'
;
NO
:
'no'
;
NONE
:
'none'
;
NTP_SERVER_ADDRESS
:
'ntp-server-address'
;
NTP_SERVERS
:
'ntp-servers'
;
NULL
:
'null'
;
OPEN_BRACKET
:
'['
;
PANORAMA_SERVER
:
'panorama-server'
;
PORT
:
'port'
;
PRIMARY
:
'primary'
;
PRIMARY_NTP_SERVER
:
'primary-ntp-server'
;
PROFILES
:
'profiles'
;
PROTOCOL
:
'protocol'
;
QOS
:
'qos'
;
RESET_BOTH
:
'reset-both'
;
RESET_CLIENT
:
'reset-client'
;
RESET_SERVER
:
'reset-server'
;
ROUTING_TABLE
:
'routing-table'
;
RULEBASE
:
'rulebase'
;
RULES
:
'rules'
;
SCTP
:
'sctp'
;
SECONDARY
:
'secondary'
;
SECONDARY_NTP_SERVER
:
'secondary-ntp-server'
;
SECONDS
:
'seconds'
;
SECURITY
:
'security'
;
SERVER
:
'server'
;
SERVERS
:
'servers'
;
SERVICE
:
'service'
;
SERVICE_GROUP
:
'service-group'
;
SET
:
'set'
;
SHA1
:
'sha1'
;
SHA256
:
'sha256'
;
SHA384
:
'sha384'
;
SHA512
:
'sha512'
;
SHARED
:
'shared'
;
SOURCE
:
'source'
;
SOURCE_PORT
:
'source-port'
;
STATIC_ROUTE
:
'static-route'
;
SYSLOG
:
'syslog'
;
SYSTEM
:
'system'
;
TAG
:
'tag'
;
TCP
:
'tcp'
;
THREE_DES
:
'3des'
;
TIMEZONE
:
'timezone'
;
TO
:
'to'
;
TYPE
:
'type'
;
UDP
:
'udp'
;
UNITS
:
'units'
;
UP
:
'up'
;
UPDATE_SCHEDULE
:
'update-schedule'
;
UPDATE_SERVER
:
'update-server'
;
VIRTUAL_ROUTER
:
'virtual-router'
;
YES
:
'yes'
;
VSYS
:
'vsys'
;
ZONE
:
'zone'
;
// Complex tokens
COMMA
:
','
;
DEC
:
F_Digit+
;
DOUBLE_QUOTED_STRING
:
'"' ~'"'* '"'
;
IP_ADDRESS
:
F_IpAddress
;
IP_PREFIX
:
F_IpAddress '/' F_PrefixLength
;
IP_RANGE
:
F_IpAddress '-' F_IpAddress
;
LINE_COMMENT
:
(
'#'
| '!'
)
F_NonNewlineChar* F_Newline+ -> channel ( HIDDEN )
;
NEWLINE
:
F_Newline+
;
SINGLE_QUOTED_STRING
:
'\'' ~'\''* '\''
;
VARIABLE
:
F_Variable_VarChar+
;
WS
:
F_Whitespace+ -> channel(HIDDEN) // parser never sees tokens on hidden channel
;
// Fragments
fragment
F_DecByte
:
(
F_Digit
| F_DecByteTwoDigit
| F_DecByteThreeDigit
)
;
fragment
F_DecByteThreeDigit
:
(
([1] F_Digit F_Digit)
| ([2] [0-4] F_Digit)
| ([2] [5] [0-5])
)
;
fragment
F_DecByteTwoDigit
:
[1-9] F_Digit
;
fragment
F_Digit
:
[0-9]
;
fragment
F_IpAddress
:
F_DecByte '.' F_DecByte '.' F_DecByte '.' F_DecByte
;
fragment
F_Newline
:
[\r\n] // carriage return or line feed
;
fragment
F_PrefixLength
:
(
F_Digit
| [12] F_Digit
| [3] [012]
)
;
fragment
F_NonNewlineChar
:
~[\r\n] // carriage return or line feed
;
fragment
F_Whitespace
:
[ \t\u000C] // tab or space or unicode 0x000C
;
fragment
F_Variable_VarChar
:
~[ \t\n\r;,{}[\]&|()"']
;
// Modes
// Blank for now, not all lexers will require modes
|
hexToBcd.asm | tamim87/Assembly-Samples | 0 | 168003 | <reponame>tamim87/Assembly-Samples
;hex to bcd
org 100h
mov al,0Fh
mov bl,0Ah
div bl
ror al,04h
or al,ah
ret
|
data/jpred4/jp_batch_1613899824__FgcMqfI/jp_batch_1613899824__FgcMqfI.als | jonriege/predict-protein-structure | 0 | 4066 | SILENT_MODE
BLOCK_FILE jp_batch_1613899824__FgcMqfI.concise.blc
MAX_NSEQ 831
MAX_INPUT_LEN 833
OUTPUT_FILE jp_batch_1613899824__FgcMqfI.concise.ps
PORTRAIT
POINTSIZE 8
IDENT_WIDTH 12
X_OFFSET 2
Y_OFFSET 2
DEFINE_FONT 0 Helvetica DEFAULT
DEFINE_FONT 1 Helvetica REL 0.75
DEFINE_FONT 7 Helvetica REL 0.6
DEFINE_FONT 3 Helvetica-Bold DEFAULT
DEFINE_FONT 4 Times-Bold DEFAULT
DEFINE_FONT 5 Helvetica-BoldOblique DEFAULT
#
DEFINE_COLOUR 3 1 0.62 0.67 # Turquiose
DEFINE_COLOUR 4 1 1 0 # Yellow
DEFINE_COLOUR 5 1 0 0 # Red
DEFINE_COLOUR 7 1 0 1 # Purple
DEFINE_COLOUR 8 0 0 1 # Blue
DEFINE_COLOUR 9 0 1 0 # Green
DEFINE_COLOUR 10 0.41 0.64 1.00 # Pale blue
DEFINE_COLOUR 11 0.41 0.82 0.67 # Pale green
DEFINE_COLOUR 50 0.69 0.18 0.37 # Pink (helix)
DEFINE_COLOUR 51 1.00 0.89 0.00 # Gold (strand)
NUMBER_INT 10
SETUP
#
# Highlight specific residues.
# Avoid highlighting Lupas 'C' predictions by
# limiting the highlighting to the alignments
Scol_CHARS C 1 1 194 820 4
Ccol_CHARS H ALL 5
Ccol_CHARS P ALL 8
SURROUND_CHARS LIV ALL
#
# Replace known structure types with whitespace
SUB_CHARS 1 821 194 830 H SPACE
SUB_CHARS 1 821 194 830 E SPACE
SUB_CHARS 1 821 194 830 - SPACE
STRAND 10 824 14
COLOUR_TEXT_REGION 10 824 14 824 51
STRAND 36 824 37
COLOUR_TEXT_REGION 36 824 37 824 51
STRAND 90 824 93
COLOUR_TEXT_REGION 90 824 93 824 51
STRAND 115 824 119
COLOUR_TEXT_REGION 115 824 119 824 51
STRAND 170 824 174
COLOUR_TEXT_REGION 170 824 174 824 51
HELIX 22 824 31
COLOUR_TEXT_REGION 22 824 31 824 50
HELIX 40 824 49
COLOUR_TEXT_REGION 40 824 49 824 50
HELIX 53 824 61
COLOUR_TEXT_REGION 53 824 61 824 50
HELIX 69 824 82
COLOUR_TEXT_REGION 69 824 82 824 50
HELIX 99 824 107
COLOUR_TEXT_REGION 99 824 107 824 50
HELIX 143 824 166
COLOUR_TEXT_REGION 143 824 166 824 50
HELIX 179 824 192
COLOUR_TEXT_REGION 179 824 192 824 50
STRAND 10 829 14
COLOUR_TEXT_REGION 10 829 14 829 51
STRAND 36 829 37
COLOUR_TEXT_REGION 36 829 37 829 51
STRAND 90 829 93
COLOUR_TEXT_REGION 90 829 93 829 51
STRAND 114 829 119
COLOUR_TEXT_REGION 114 829 119 829 51
STRAND 170 829 174
COLOUR_TEXT_REGION 170 829 174 829 51
HELIX 22 829 30
COLOUR_TEXT_REGION 22 829 30 829 50
HELIX 39 829 48
COLOUR_TEXT_REGION 39 829 48 829 50
HELIX 53 829 62
COLOUR_TEXT_REGION 53 829 62 829 50
HELIX 69 829 82
COLOUR_TEXT_REGION 69 829 82 829 50
HELIX 99 829 107
COLOUR_TEXT_REGION 99 829 107 829 50
HELIX 128 829 129
COLOUR_TEXT_REGION 128 829 129 829 50
HELIX 143 829 166
COLOUR_TEXT_REGION 143 829 166 829 50
HELIX 179 829 192
COLOUR_TEXT_REGION 179 829 192 829 50
STRAND 9 830 14
COLOUR_TEXT_REGION 9 830 14 830 51
STRAND 36 830 38
COLOUR_TEXT_REGION 36 830 38 830 51
STRAND 91 830 93
COLOUR_TEXT_REGION 91 830 93 830 51
STRAND 95 830 96
COLOUR_TEXT_REGION 95 830 96 830 51
STRAND 116 830 119
COLOUR_TEXT_REGION 116 830 119 830 51
STRAND 124 830 127
COLOUR_TEXT_REGION 124 830 127 830 51
STRAND 169 830 173
COLOUR_TEXT_REGION 169 830 173 830 51
HELIX 22 830 31
COLOUR_TEXT_REGION 22 830 31 830 50
HELIX 41 830 52
COLOUR_TEXT_REGION 41 830 52 830 50
HELIX 55 830 61
COLOUR_TEXT_REGION 55 830 61 830 50
HELIX 70 830 81
COLOUR_TEXT_REGION 70 830 81 830 50
HELIX 97 830 108
COLOUR_TEXT_REGION 97 830 108 830 50
HELIX 143 830 153
COLOUR_TEXT_REGION 143 830 153 830 50
HELIX 158 830 166
COLOUR_TEXT_REGION 158 830 166 830 50
HELIX 179 830 192
COLOUR_TEXT_REGION 179 830 192 830 50
|
programs/oeis/101/A101626.asm | neoneye/loda | 22 | 168940 | <gh_stars>10-100
; A101626: Initial decimal digit of n^12.
; 1,4,5,1,2,2,1,6,2,1,3,8,2,5,1,2,5,1,2,4,7,1,2,3,5,9,1,2,3,5,7,1,1,2,3,4,6,9,1,1,2,3,3,5,6,8,1,1,1,2,3,3,4,6,7,9,1,1,1,2,2,3,3,4,5,6,8,9,1,1,1,1,2,2,3,3,4,5,5,6,7,9,1,1,1,1,1,2,2,2,3,3,4,4,5,6,6,7,8,1
add $0,1
pow $0,12
lpb $0
mov $1,$0
div $0,10
lpe
mov $0,$1
|
2ndSemester/Operating Systems/Lab3-4/COM-Template-2/Template2COM.asm | xairaven/kpi_labs | 0 | 179723 | <reponame>xairaven/kpi_labs
CODE SEGMENT
ASSUME CS:CODE, DS:CODE, SS:CODE
ORG 100h
START:
mov AH, 09h
mov DX, offset msg
int 21h
mov AH, 4Ch
mov Al, 0
int 21h
msg db "Hello World!", 0Dh, 0Ah, '$'
CODE ENDS
END START |
src/x86/eh_helpers.asm | CrackerCat/vcrtl | 124 | 88563 | <gh_stars>100-1000
.model flat
assume fs:nothing
public __EH_prolog3
public __EH_prolog3_catch
public __EH_epilog3
extern ___security_cookie: dword
.code
__EH_prolog3_catch proc
__EH_prolog3::
; This is a special helper routine that is called at the beginning
; of a function when optimizing for size. The caller's prolog might look
; like this.
;
; push 8
; mov eax, 6C2CB4h
; call _EH_prolog3_catch
;
; In `eax`, we receive the address of the caller's frame handler, which
; we are expected to register. Upon entry, the stack looks as follows.
;
; esp : our return address
; esp+04h: the size of the stack allocation
; esp+08h: caller's return address
;
; The caller expects us to setup its FH3 stack frame, allocate space
; for its local variables, save nonvolatile registers, and store
; the frame cookie at the top of the frame.
;
; We must not touch `ecx` and `edx`, since they may contain caller's
; parameters. This leave `eax` as our only volatile register.
;
; Upon return, the stack should look like this.
;
; esp : frame cookie
; esp+04h: saved edi
; esp+08h: saved esi
; esp+0ch: saved ebx
; esp+10h: stack allocation
; ... :
; ebp-10h: frame limit (i.e. esp after return)
; ebp-0ch: next frame handler registration
; ebp-08h: frame handler
; ebp-04h: 0xffffffff (current FH3 function state)
; ebp : saved ebp
; ebp+04h: caller's return address
push eax
push dword ptr fs:[0]
; esp : next frame handler registration
; esp+04h: frame handler
; esp+08h: our return address
; esp+0ch: the size of the stack allocation
; esp+10h: caller's return address
mov eax, [esp+0ch]
mov [esp+0ch], ebp
lea ebp, [esp+0ch]
; At this point the frame looks this way.
;
; ebp-0ch: next frame handler registration
; ebp-08h: frame handler
; ebp-04h: our return address
; ebp : saved ebp
; ebp+04h: caller's return address
;
; The stack allocation size is now in `eax`. We now extend the stack
; to include the stack allocation, which frees `eax` for further use.
sub esp, 4
sub esp, eax
; Save non-volatile registers.
push ebx
push esi
push edi
; Setup the frame cookie.
mov eax, [___security_cookie]
xor eax, ebp
push eax
mov [ebp-10h], esp
push dword ptr [ebp-04h]
mov dword ptr [ebp-04h], -1
lea eax, [ebp+0ch]
mov fs:[0], eax
ret
__EH_prolog3_catch endp
__EH_epilog3 proc
; This is called right before `ret` to tear down a stack frame.
; We are supposed to unregister the frame handler and restore
; non-volatile registers to pre-prolog state (including `ebp` and `esp`).
;
; We must not touch `eax` as it contains the caller's return value.
mov ecx, [ebp-0ch]
mov fs:[0], ecx
pop ecx
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
jmp ecx
__EH_epilog3 endp
end
|
projects/batfish/src/main/antlr4/org/batfish/grammar/cisco_xr/CiscoXr_bfd.g4 | pranavbj-amzn/batfish | 763 | 6425 | parser grammar CiscoXr_bfd;
import CiscoXr_common;
options {
tokenVocab = CiscoXrLexer;
}
s_bfd: BFD (bfd_inner | NEWLINE bfd_inner*);
bfd_inner
:
bfd_no
| bfd_null
;
bfd_no: NO bfd_no_null;
bfd_no_null
:
(
BUNDLE
| DAMPENING
| ECHO
| INTERFACE
| IPV6
| MULTIHOP
| MULTIPATH
| TRAP
) null_rest_of_line
;
bfd_null
:
(
BUNDLE
| DAMPENING
| ECHO
| INTERFACE
| IPV6
| MULTIHOP
| MULTIPATH
| TRAP
) null_rest_of_line
;
|
ADL/drivers/stm32g474/stm32-lptimers.adb | JCGobbi/Nucleo-STM32G474RE | 0 | 23964 | <filename>ADL/drivers/stm32g474/stm32-lptimers.adb<gh_stars>0
with STM32.Device;
package body STM32.LPTimers is
------------
-- Enable --
------------
procedure Enable (This : in out LPTimer) is
begin
This.CR.ENABLE := True;
end Enable;
-------------
-- Disable --
-------------
procedure Disable (This : in out LPTimer) is
begin
This.CR.ENABLE := False;
end Disable;
-------------
-- Enabled --
-------------
function Enabled (This : LPTimer) return Boolean is
begin
return This.CR.ENABLE;
end Enabled;
-------------------------
-- Configure_Prescaler --
-------------------------
procedure Configure_Prescaler
(This : in out LPTimer;
Prescaler : LPTimer_Prescaler)
is
begin
This.CFGR.PRESC := Prescaler'Enum_Rep;
end Configure_Prescaler;
-----------------------
-- Current_Prescaler --
-----------------------
function Current_Prescaler (This : LPTimer) return LPTimer_Prescaler is
begin
return LPTimer_Prescaler'Val (This.CFGR.PRESC);
end Current_Prescaler;
-----------------------
-- Set_Compare_Value --
-----------------------
procedure Set_Compare_Value
(This : in out LPTimer;
Value : UInt16)
is
begin
This.CMP.CMP := Value;
end Set_Compare_Value;
---------------------------
-- Current_Compare_Value --
---------------------------
function Current_Compare_Value (This : LPTimer) return UInt16 is
begin
return This.CMP.CMP;
end Current_Compare_Value;
--------------------------
-- Set_Autoreload_Value --
--------------------------
procedure Set_Autoreload_Value
(This : in out LPTimer;
Value : UInt16)
is
begin
This.ARR.ARR := Value;
end Set_Autoreload_Value;
------------------------
-- Current_Autoreload --
------------------------
function Current_Autoreload (This : LPTimer) return UInt16 is
begin
return This.ARR.ARR;
end Current_Autoreload;
---------------
-- Configure --
---------------
procedure Configure
(This : in out LPTimer;
Prescaler : LPTimer_Prescaler;
Period : UInt16)
is
begin
This.CFGR.PRESC := Prescaler'Enum_Rep;
This.ARR.ARR := Period;
end Configure;
----------------------------------
-- Compute_Prescaler_and_Period --
----------------------------------
procedure Compute_Prescaler_And_Period
(This : LPTimer;
Requested_Frequency : UInt32;
Prescaler : out LPTimer_Prescaler;
Period : out UInt32)
is
Max_Prescaler : constant LPTimer_Prescaler := LPTimer_Prescaler'Last;
Max_Period : constant := 16#FFFF#; -- UInt16'Last
Prescaler_Enum : UInt8; -- Counter for LPTimer_Prescaler'Enum_Rep
Hardware_Frequency : UInt32;
CK_CNT : UInt32;
begin
Hardware_Frequency := STM32.Device.Get_Clock_Frequency (This);
if Requested_Frequency > Hardware_Frequency then
raise Invalid_Request with "Frequency too high";
end if;
-- We use a numeric prescaler value to calculate the Hardware_Frequency
-- division considering that the clock prescaler is a power of 2 of this
-- value, as are the LPTimer_Prescaler discrete values.
Prescaler_Enum := 0;
loop
-- Compute the Counter's clock
CK_CNT := Hardware_Frequency / UInt32 (2**Integer (Prescaler_Enum));
-- Determine the CK_CNT periods to achieve the requested frequency
Period := CK_CNT / Requested_Frequency;
exit when ((Period <= Max_Period) or
(Prescaler_Enum > Max_Prescaler'Enum_Rep));
Prescaler_Enum := Prescaler_Enum + 1;
end loop;
if Prescaler_Enum > Max_Prescaler'Enum_Rep then
raise Invalid_Request with "Frequency too low";
end if;
Prescaler := LPTimer_Prescaler'Val (Prescaler_Enum);
end Compute_Prescaler_And_Period;
------------------------------
-- Set_Counter_Clock_Source --
------------------------------
procedure Set_Counter_Clock_Source
(This : in out LPTimer;
Mode : LPTimer_Clock_Source)
is
begin
This.CFGR.COUNTMODE := Mode = External;
end Set_Counter_Clock_Source;
-----------------------
-- Set_Counter_Value --
-----------------------
procedure Set_Counter_Value
(This : in out LPTimer;
Value : UInt16)
is
begin
This.CNT.CNT := Value;
end Set_Counter_Value;
---------------------
-- Current_Counter --
---------------------
function Current_Counter (This : LPTimer) return UInt16 is
begin
return This.CNT.CNT;
end Current_Counter;
----------------------------
-- Set_Counter_Reset_Mode --
----------------------------
procedure Set_Counter_Reset_Mode
(This : in out LPTimer;
Mode : LPTimer_Counter_Reset_Mode;
Enable : Boolean := True)
is
begin
case Mode is
when After_Read_Counter =>
This.CR.RSTARE := Enable;
when Now =>
if Enable then
while This.CR.COUNTRST loop
null;
end loop;
This.CR.COUNTRST := True;
end if;
end case;
end Set_Counter_Reset_Mode;
----------------------
-- Set_Preload_Mode --
----------------------
procedure Set_Preload_Mode
(This : in out LPTimer;
Mode : LPTimer_Preload_Mode)
is
begin
This.CFGR.PRELOAD := Mode = End_Current_Period;
end Set_Preload_Mode;
----------------------
-- Enable_Interrupt --
----------------------
procedure Enable_Interrupt
(This : in out LPTimer;
Source : LPTimer_Interrupt)
is
begin
case Source is
when Compare_Match =>
This.IER.CMPMIE := True;
when Autorreload_Match =>
This.IER.ARRMIE := True;
when External_Trigger_Valid_Edge =>
This.IER.EXTTRIGIE := True;
when Compare_Register_Update_Ok =>
This.IER.CMPOKIE := True;
when Autorreload_Register_Update_Ok =>
This.IER.ARROKIE := True;
when Direction_Change_To_Up =>
This.IER.UPIE := True;
when Direction_Change_To_Down =>
This.IER.DOWNIE := True;
end case;
end Enable_Interrupt;
-----------------------
-- Disable_Interrupt --
-----------------------
procedure Disable_Interrupt
(This : in out LPTimer;
Source : LPTimer_Interrupt)
is
begin
case Source is
when Compare_Match =>
This.IER.CMPMIE := False;
when Autorreload_Match =>
This.IER.ARRMIE := False;
when External_Trigger_Valid_Edge =>
This.IER.EXTTRIGIE := False;
when Compare_Register_Update_Ok =>
This.IER.CMPOKIE := False;
when Autorreload_Register_Update_Ok =>
This.IER.ARROKIE := False;
when Direction_Change_To_Up =>
This.IER.UPIE := False;
when Direction_Change_To_Down =>
This.IER.DOWNIE := False;
end case;
end Disable_Interrupt;
----------------------
-- Enable_Interrupt --
----------------------
procedure Enable_Interrupt
(This : in out LPTimer;
Sources : LPTimer_Interrupt_List)
is
begin
for Source of Sources loop
case Source is
when Compare_Match =>
This.IER.CMPMIE := True;
when Autorreload_Match =>
This.IER.ARRMIE := True;
when External_Trigger_Valid_Edge =>
This.IER.EXTTRIGIE := True;
when Compare_Register_Update_Ok =>
This.IER.CMPOKIE := True;
when Autorreload_Register_Update_Ok =>
This.IER.ARROKIE := True;
when Direction_Change_To_Up =>
This.IER.UPIE := True;
when Direction_Change_To_Down =>
This.IER.DOWNIE := True;
end case;
end loop;
end Enable_Interrupt;
-----------------------------
-- Clear_Pending_Interrupt --
-----------------------------
procedure Clear_Pending_Interrupt
(This : in out LPTimer;
Source : LPTimer_Interrupt)
is
begin
case Source is
when Compare_Match =>
This.ICR.CMPMCF := True;
when Autorreload_Match =>
This.ICR.ARRMCF := True;
when External_Trigger_Valid_Edge =>
This.ICR.EXTTRIGCF := True;
when Compare_Register_Update_Ok =>
This.ICR.CMPOKCF := True;
when Autorreload_Register_Update_Ok =>
This.ICR.ARROKCF := True;
when Direction_Change_To_Up =>
This.ICR.UPCF := True;
when Direction_Change_To_Down =>
This.ICR.DOWNCF := True;
end case;
end Clear_Pending_Interrupt;
-----------------------
-- Interrupt_Enabled --
-----------------------
function Interrupt_Enabled
(This : LPTimer;
Source : LPTimer_Interrupt)
return Boolean
is
begin
case Source is
when Compare_Match =>
return This.IER.CMPMIE;
when Autorreload_Match =>
return This.IER.ARRMIE;
when External_Trigger_Valid_Edge =>
return This.IER.EXTTRIGIE;
when Compare_Register_Update_Ok =>
return This.IER.CMPOKIE;
when Autorreload_Register_Update_Ok =>
return This.IER.ARROKIE;
when Direction_Change_To_Up =>
return This.IER.UPIE;
when Direction_Change_To_Down =>
return This.IER.DOWNIE;
end case;
end Interrupt_Enabled;
------------
-- Status --
------------
function Status (This : LPTimer;
Flag : LPTimer_Status_Flag) return Boolean is
begin
case Flag is
when Compare_Match =>
return This.IER.CMPMIE;
when Autorreload_Match =>
return This.IER.ARRMIE;
when External_Trigger_Valid_Edge =>
return This.IER.EXTTRIGIE;
when Compare_Register_Update_Ok =>
return This.IER.CMPOKIE;
when Autorreload_Register_Update_Ok =>
return This.IER.ARROKIE;
when Direction_Change_To_Up =>
return This.IER.UPIE;
when Direction_Change_To_Down =>
return This.IER.DOWNIE;
end case;
end Status;
------------------
-- Clear_Status --
------------------
procedure Clear_Status (This : in out LPTimer;
Flag : LPTimer_Status_Flag) is
begin
case Flag is
when Compare_Match =>
This.ICR.CMPMCF := True;
when Autorreload_Match =>
This.ICR.ARRMCF := True;
when External_Trigger_Valid_Edge =>
This.ICR.EXTTRIGCF := True;
when Compare_Register_Update_Ok =>
This.ICR.CMPOKCF := True;
when Autorreload_Register_Update_Ok =>
This.ICR.ARROKCF := True;
when Direction_Change_To_Up =>
This.ICR.UPCF := True;
when Direction_Change_To_Down =>
This.ICR.DOWNCF := True;
end case;
end Clear_Status;
-------------------------
-- Select_Clock_Source --
-------------------------
procedure Select_Clock_Source
(This : in out LPTimer;
Source : LPTimer_Clock_Source)
is
begin
This.CFGR.CKSEL := Source = External;
end Select_Clock_Source;
----------------------
-- Get_Clock_Source --
----------------------
function Get_Clock_Source (This : LPTimer) return LPTimer_Clock_Source is
begin
if This.CFGR.CKSEL then
return External;
else
return Internal;
end if;
end Get_Clock_Source;
------------------------------
-- Configure_External_Clock --
------------------------------
procedure Configure_External_Clock
(This : in out LPTimer;
Polarity : LPTimer_External_Clock_Polarity;
Filter : LPTimer_Digital_Filter)
is
begin
This.CFGR.CKPOL := Polarity'Enum_Rep;
This.CFGR.CKFLT := Filter'Enum_Rep;
end Configure_External_Clock;
---------------------------
-- Configure_Input_Clock --
---------------------------
procedure Configure_Input_Clock
(This : in out LPTimer;
Input : LPTimer_Input;
Clock : LPTimer_Input_Clock)
is
begin
case Input is
when Input_1 =>
This.OR_k.IN1_0 := Clock.Internal;
This.OR_k.IN1_1 := Clock.Value'Enum_Rep;
when Input_2 =>
This.OR_k.IN2_0 := Clock.Internal;
This.OR_k.IN2_1 := Clock.Value'Enum_Rep;
end case;
end Configure_Input_Clock;
---------------------------
-- Select_Trigger_Source --
---------------------------
procedure Select_Trigger_Source
(This : in out LPTimer;
Source : LPTimer_Trigger_Source)
is
begin
if Source'Enum_Rep > 7 then
This.CFGR.TRIGSEL_1 := True;
else
This.CFGR.TRIGSEL_1 := False;
end if;
This.CFGR.TRIGSEL_0 := UInt3 (Source'Enum_Rep);
end Select_Trigger_Source;
---------------------------
-- Select_Trigger_Filter --
---------------------------
procedure Select_Trigger_Filter
(This : in out LPTimer;
Filter : LPTimer_Digital_Filter)
is
begin
This.CFGR.TRGFLT := Filter'Enum_Rep;
end Select_Trigger_Filter;
----------------------
-- Set_Trigger_Timeout --
----------------------
procedure Set_Trigger_Timeout
(This : in out LPTimer;
Enable : Boolean)
is
begin
This.CFGR.TIMOUT := not Enable;
end Set_Trigger_Timeout;
-----------------------
-- Configure_Trigger --
-----------------------
procedure Configure_Trigger
(This : in out LPTimer;
Source : LPTimer_Trigger_Source;
Filter : LPTimer_Digital_Filter;
Timeout : Boolean)
is
begin
if Source'Enum_Rep > 7 then
This.CFGR.TRIGSEL_1 := True;
else
This.CFGR.TRIGSEL_1 := False;
end if;
This.CFGR.TRIGSEL_0 := UInt3 (Source'Enum_Rep);
This.CFGR.TRGFLT := Filter'Enum_Rep;
This.CFGR.TIMOUT := not Timeout;
end Configure_Trigger;
-----------------------
-- Select_Pulse_Mode --
-----------------------
procedure Select_Pulse_Mode
(This : in out LPTimer;
Mode : LPTimer_Pulse_Mode)
is
begin
case Mode is
when Repetitive =>
This.CR.CNTSTRT := True;
This.CR.SNGSTRT := False;
when Single =>
This.CR.CNTSTRT := False;
This.CR.SNGSTRT := True;
end case;
end Select_Pulse_Mode;
------------------------
-- Set_Waveform_Shape --
------------------------
procedure Set_Waveform_Shape
(This : in out LPTimer;
Shape : LPTimer_Waveform_Shape)
is
begin
This.CFGR.WAVE := Shape = Set_Once;
end Set_Waveform_Shape;
---------------------------
-- Set_Waveform_Polarity --
---------------------------
procedure Set_Waveform_Polarity
(This : in out LPTimer;
Polarity : LPTimer_Waveform_Polarity)
is
begin
This.CFGR.WAVPOL := Polarity = Inverse;
end Set_Waveform_Polarity;
------------------------------
-- Configure_Waveform_Shape --
------------------------------
procedure Configure_Waveform_Shape
(This : in out LPTimer;
Shape : LPTimer_Waveform_Shape;
Polarity : LPTimer_Waveform_Polarity)
is
begin
This.CFGR.WAVE := Shape = Set_Once;
This.CFGR.WAVPOL := Polarity = Inverse;
end Configure_Waveform_Shape;
----------------------
-- Set_Encoder_Mode --
----------------------
procedure Set_Encoder_Mode
(This : in out LPTimer;
Enable : Boolean)
is
begin
This.CFGR.ENC := Enable;
end Set_Encoder_Mode;
end STM32.LPTimers;
|
src/timestamp.ads | dshadrin/AProxy | 1 | 12859 | <gh_stars>1-10
----------------------------------------
-- Copyright (C) 2019 <NAME> --
-- All rights reserved. --
----------------------------------------
with Pal; use Pal;
with Interfaces.C;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
--------------------------------------------------------------------------------
package TimeStamp is
procedure SetTimeCorrectValue (val : in Long_Integer) with inline;
-----------------------------------------------------------------------------
type timespec is
record
tv_sec : Interfaces.C.long;
tv_nsec : Interfaces.C.long;
end record;
function "<" (lhd : in Interfaces.C.long; rhd : in Interfaces.C.long) return bool is
(Long_Integer (lhd) < Long_Integer (rhd)) with inline;
function "=" (lhd : in Interfaces.C.long; rhd : in Interfaces.C.long) return bool is
(Long_Integer (lhd) = Long_Integer (rhd)) with inline;
function "<" (lhd : in timespec; rhd : in timespec) return bool with inline;
-----------------------------------------------------------------------------
type tm is
record
tm_year : Interfaces.C.int;
tm_mon : Interfaces.C.int;
tm_day : Interfaces.C.int;
tm_hour : Interfaces.C.int;
tm_min : Interfaces.C.int;
tm_sec : Interfaces.C.int;
tm_isdst : Interfaces.C.int;
end record;
-----------------------------------------------------------------------------
procedure TimestampAdjust (tv : in out timespec; deltaMicrosec : Integer);
procedure ConvertTimestamp (tv : in timespec;
tmStruct : out tm;
us : out Long_Integer;
deltaMicrosec : Integer := 0);
function GetTimestamp return timespec;
function GetTimestampStr (tmStruct : in tm; us : in Long_Integer) return String with inline;
function GetTimestampStr (tv : in timespec) return String;
function GetTimestampStr return String with inline;
function FormatDateTime(fmt : in String; tmStruct : in tm; us : in Long_Integer) return String;
private
TIME_CORRECT_VALUE : Long_Integer;
end TimeStamp;
|
source/asis/spec/annex_d/ada-execution_time.ads | faelys/gela-asis | 4 | 21114 | <reponame>faelys/gela-asis
------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- - - - - - - - - - - - - - - - --
-- Read copyright and license at the end of ada.ads file --
------------------------------------------------------------------------------
-- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $
with Ada.Real_Time;
with Ada.Task_Identification;
package Ada.Execution_Time is
type CPU_Time is private;
CPU_Time_First : constant CPU_Time;
CPU_Time_Last : constant CPU_Time;
CPU_Time_Unit : constant := implementation-defined-real-number;
CPU_Tick : constant Ada.Real_Time.Time_Span;
function Clock (T : in Ada.Task_Identification.Task_Id
:= Ada.Task_Identification.Current_Task)
return CPU_Time;
function "+" (Left : in CPU_Time;
Right : in Ada.Real_Time.Time_Span)
return CPU_Time;
function "+" (Left : in Ada.Real_Time.Time_Span;
Right : in CPU_Time)
return CPU_Time;
function "-" (Left : in CPU_Time;
Right : in Ada.Real_Time.Time_Span)
return CPU_Time;
function "-" (Left : in CPU_Time;
Right : in CPU_Time)
return Ada.Real_Time.Time_Span;
function "<" (Left : in CPU_Time;
Right : in CPU_Time)
return Boolean;
function "<=" (Left : in CPU_Time;
Right : in CPU_Time)
return Boolean;
function ">" (Left : in CPU_Time;
Right : in CPU_Time)
return Boolean;
function ">=" (Left : in CPU_Time;
Right : in CPU_Time)
return Boolean;
procedure Split (T : in CPU_Time;
SC : out Ada.Real_Time.Seconds_Count;
TS : out Ada.Real_Time.Time_Span);
function Time_Of (SC : in Ada.Real_Time.Seconds_Count;
TS : in Ada.Real_Time.Time_Span
:= Ada.Real_Time.Time_Span_Zero)
return CPU_Time;
private
pragma Import (Ada, CPU_Time);
pragma Import (Ada, CPU_Time_First);
pragma Import (Ada, CPU_Time_Last);
pragma Import (Ada, CPU_Tick);
end Ada.Execution_Time;
|
oeis/048/A048696.asm | neoneye/loda-programs | 11 | 161333 | ; A048696: Generalized Pellian with second term equal to 9.
; Submitted by <NAME>(s2)
; 1,9,19,47,113,273,659,1591,3841,9273,22387,54047,130481,315009,760499,1836007,4432513,10701033,25834579,62370191,150574961,363520113,877615187,2118750487,5115116161,12348982809,29813081779,71975146367,173763374513,419501895393,1012767165299,2445036225991,5902839617281,14250715460553,34404270538387,83059256537327,200522783613041,484104823763409,1168732431139859,2821569686043127,6811871803226113,16445313292495353,39702498388216819,95850310068928991,231403118526074801,558656547121078593
mov $2,3
lpb $0
sub $0,1
add $2,1
add $2,$4
mov $3,$4
add $4,$2
mov $2,$3
lpe
mov $0,$4
mul $0,2
add $0,1
|
programs/oeis/298/A298267.asm | karttu/loda | 1 | 96711 | ; A298267: a(n) is the maximum number of heptiamonds in a hexagon of order n.
; 0,3,7,13,21,30,42,54,69,85,103,123,144,168,192,219,247,277,309,342,378,414,453,493,535,579,624,672,720,771,823,877,933,990,1050,1110,1173,1237,1303,1371,1440,1512,1584,1659,1735,1813,1893,1974,2058,2142,2229,2317,2407,2499,2592,2688,2784,2883,2983,3085,3189,3294,3402,3510,3621,3733,3847,3963,4080,4200,4320,4443,4567,4693,4821,4950,5082,5214,5349,5485,5623,5763,5904,6048,6192,6339,6487,6637,6789,6942,7098,7254,7413,7573,7735,7899,8064,8232,8400,8571,8743,8917,9093,9270,9450,9630,9813,9997,10183,10371,10560,10752,10944,11139,11335,11533,11733,11934,12138,12342,12549,12757,12967,13179,13392,13608,13824,14043,14263,14485,14709,14934,15162,15390,15621,15853,16087,16323,16560,16800,17040,17283,17527,17773,18021,18270,18522,18774,19029,19285,19543,19803,20064,20328,20592,20859,21127,21397,21669,21942,22218,22494,22773,23053,23335,23619,23904,24192,24480,24771,25063,25357,25653,25950,26250,26550,26853,27157,27463,27771,28080,28392,28704,29019,29335,29653,29973,30294,30618,30942,31269,31597,31927,32259,32592,32928,33264,33603,33943,34285,34629,34974,35322,35670,36021,36373,36727,37083,37440,37800,38160,38523,38887,39253,39621,39990,40362,40734,41109,41485,41863,42243,42624,43008,43392,43779,44167,44557,44949,45342,45738,46134,46533,46933,47335,47739,48144,48552,48960,49371,49783,50197,50613,51030,51450,51870,52293,52717,53143,53571
add $0,1
mov $1,$0
pow $1,2
mul $1,6
div $1,7
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/cond_expr1.ads | best08618/asylo | 7 | 503 | -- { dg-do compile }
-- { dg-options "-gnat12 -gnato" }
package Cond_Expr1 is
function Tail (S : String) return String is
(if S'Last <= S'First then "" else S (S'First + 1 .. S'Last));
end Cond_Expr1;
|
src/clocks-virtual_clocks.adb | Jellix/virtual_clocks | 0 | 2225 | ------------------------------------------------------------------------
-- Copyright (C) 2010-2020 by <<EMAIL>> --
-- --
-- This work is free. You can redistribute it and/or modify it under --
-- the terms of the Do What The Fuck You Want To Public License, --
-- Version 2, as published by Sam Hocevar. See the LICENSE file for --
-- more details. --
------------------------------------------------------------------------
pragma License (Unrestricted);
package body Clocks.Virtual_Clocks is
---------------------------------------------------------------------
-- Virtual Clock, tagged protected type
---------------------------------------------------------------------
protected body Virtual_Clock is
------------------------------------------------------------------
-- Virtual_Clock.Activated (private)
------------------------------------------------------------------
function Activated return Boolean is
begin
return Is_Active;
end Activated;
------------------------------------------------------------------
-- Virtual_Clock.Forward_Time
------------------------------------------------------------------
procedure Forward_Time (Amount : in Duration) is
use type Time;
begin
Current_Time := Current_Time + Amount;
end Forward_Time;
------------------------------------------------------------------
-- Virtual_Clock.Get_Time
------------------------------------------------------------------
function Get_Time return Time is
begin
return Current_Time;
end Get_Time;
------------------------------------------------------------------
-- Virtual_Clock.Pulse
------------------------------------------------------------------
procedure Pulse (Amount : in Duration) is
use type Time;
begin
if Activated then
Current_Time := Current_Time + (Amount * Speed);
end if;
end Pulse;
------------------------------------------------------------------
-- Virtual_Clock.Set_Speed
------------------------------------------------------------------
procedure Set_Speed (New_Speed : in Speedup) is
begin
Speed := New_Speed;
end Set_Speed;
------------------------------------------------------------------
-- Virtual_Clock.Set_Time
------------------------------------------------------------------
procedure Set_Time (New_Time : in Time) is
begin
Current_Time := New_Time;
end Set_Time;
----------------------------------------------------------------
-- Virtual_Clock.Resume
----------------------------------------------------------------
entry Resume when not Is_Active is
begin
Is_Active := True;
end Resume;
------------------------------------------------------------------
-- Virtual_Clock.Suspend
------------------------------------------------------------------
entry Suspend when Is_Active is
begin
Is_Active := False;
end Suspend;
end Virtual_Clock;
---------------------------------------------------------------------
-- Virtual_Clock.Create
---------------------------------------------------------------------
overriding
procedure Create (Clock : out Virtual_Clock;
Start_Time : in Time := START_DATE;
Speed : in Speedup := UNCHANGED_TIME) is
use type Clock_Lists.Cursor;
begin
Clock.Set_Time (Start_Time);
Clock.Set_Speed (Speed);
if Clock_Lists.Find (Clock_List, Clock'Unrestricted_Access) /=
Clock_Lists.No_Element
then
raise Constraint_Error;
end if;
Clock_Lists.Append (Clock_List, Clock'Unrestricted_Access);
end Create;
end Clocks.Virtual_Clocks;
|
programs/oeis/072/A072442.asm | jmorken/loda | 1 | 12656 | <reponame>jmorken/loda<gh_stars>1-10
; A072442: Least k such that Sum( Cos(1/Sqrt(i)) i=1..k) > n.
; 1,3,4,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74
mov $4,$0
lpb $0
add $0,1
add $2,1
add $3,4
mov $1,$3
sub $1,2
add $3,$1
mul $1,2
trn $0,$1
mul $3,2
add $3,1
lpe
mov $1,$2
lpb $4
add $1,1
sub $4,1
lpe
add $1,1
|
render.asm | PROSMSoft/mode-6 | 2 | 178827 | ; ==================================================================================================
; === RENDER CURRENT VIEW
; ==================================================================================================
m6_render:
; This routine draws the 3D view of the map into the viewport buffer. It takes around 1.5 - 2 frames
; to execute. Interrupts can be left enabled, UNLESS the CPU is in interrupt mode 1, in which case
; interrupts must be disabled, since this routine uses the IY register.
; Handle animation offset
ld a,(m6_render_core_tile_smc+1)
add a,$20 ; Advance to next frame of tileset
ld (m6_render_core_tile_smc+1),a
; Initialise rendering variables
ld hl,m6_render_iseg
ld (m6_render_width),hl ; Store initial segment width
ld hl,(m6_player_x) ; Get X coord of player
ld de,m6_render_ox
add hl,de ; Add left side offset
ld (m6_render_x),hl ; Store rendering X value
ld c,h ; Make copy of MSB for map pointer calc.
ld hl,(m6_player_y) ; Get Y coord of player
ld de,m6_render_oy
add hl,de ; Add offset for bottom of screen
ld (m6_render_y),hl ; Store rendering Y value
ld a,13
ld (m6_render_dy),a ; Store initial delta Y value
ld iyh,m6_edgetab/256 ; Set high byte of edge table pointer
xor a
ld (m6_render_row),a ; Initialise loop counter
; Calculate map pointer
ld l,a
ld a,h ; Retrieve Y value
and 31
ld h,a
rr h
rr l
rr h
rr l
ld a,c ; Retrieve X value
and 63 ; Limit to acceptable range (0-63)
add a,l
ld l,a
ld a,m6_map/256
add a,h
ld h,a
ld (m6_render_map),hl
exx
ld hl,m6_gfxbuffer-1
exx
m6_render_newline:
; We have reached a new line, so let's set up the registers for the next loop
ld a,(m6_render_row)
inc a ; Increment loop counter
cp 41 ; All rows rendered?
ret nc ; ...then exit the renderer
ld (m6_render_row),a
ld l,a ; Make copy of row number
ld a,(m6_render_dy) ; Get delta Y
inc a ; Increment delta Y
ld (m6_render_dy),a ; Store new delta Y in memory
m6_render_newline_l1:
; Keep delta Y in the shadow accumulator for now
ex af,af'
ld a,l
exx ; LINE SET =================================
push hl ; Save buffer address
; Now calculate graphics page
ld l,a
and 3
add a,m6_tiledata/256
ld ixh,a ; Calculate page for this line of graphics
; Add offset for the delta table
ld a,l
add a,0+(m6_centretab-1)%256
ld l,a
adc a,0+(m6_centretab-1)/256
sub l
ld h,a ; Form address to centre table
ld e,(hl) ; Get delta from memory
ld d,0 ; Extend to 16-bit (could've optimised by
; using 8 to 16 trick a few lines above)
ld hl,(m6_render_x)
ld a,h ; For later comparison
add hl,de ; Add delta
ld (m6_render_x),hl
cp h ; Change?
call nz,m6_render_map_left ; Adjust map pointer if so
; Now let's process our Y coord using our delta Y from the shadow accumulator
ex af,af'
ld hl,(m6_render_y)
add a,l
ld l,a
call c,m6_render_map_up ; Adjust map pointer on overflow to MSB
ld (m6_render_y),a ; Store LSB
; Prepare the line set
pop hl ; Restore buffer address
inc hl ; Move up a line
ld (hl),d ; Zero out left-hand column
ld de,$02ff
exx ; MAP SET ==================================
; Now retrieve width
ld hl,(m6_render_width)
ld de,m6_render_dw
add hl,de
ex de,hl
ld (m6_render_width),de
; Multiply the high byte of the width by the fractional component of X using the quarter-square
; multiplication technique. This routine has been adapted from an article in issue 92 of the
; "MSX Computer and Club Webmagazine"
push de ; Make a copy of width
ld a,(m6_render_x) ; Load LSB of camera position
srl a
srl a ; Truncate to 6 bits
ld e,a ; Get inverted fractional part
sub d ; Work out (a-b)
ld h,m6_multab/256
ld l,a ; Form address to quarter-square table
ld c,(hl)
inc h
ld b,(hl) ; Load ((a-b)^2)/4 into BC
ld a,e
add a,d ; Work out (a+b)
ld l,a
ld e,(hl)
dec h
ld l,(hl)
ld h,e ; Load ((a+b)^2)/4 into HL
; N.B. Ordinarily, OR A would be required to prevent a carry flag mishap. However, the carry was
; reset by the ADD A,D instruction a few lines ago
sbc hl,bc ; Result = ((a+b)^2)/4 - ((a-b)^2)/4
add hl,hl
add hl,hl ; Scale back up to account for truncation
; Now add an extra bit of accuracy
pop de ; Restore segment width
ld a,(m6_render_x)
bit 1,a
jr z,m6_render_newline_l2
ld a,l
add a,d
ld l,a
adc a,h
sub l
ld h,a
m6_render_newline_l2:
; Initialise the other registers
ld bc,(m6_render_map) ; Get current map address
ld a,(bc) ; Get tile
dec c ; Move to next tile - first tile guraranteed
; to be a match
ld (m6_render_core_comparison_smc+1),a ; Set current run for first tile of row
; Now prepare the map set. We must calculate the partial width
m6_render_core:
; This is the core rendering loop. Here, we keep checking map tiles until we hit a different tile.
; Then, we draw the segment representing that run of map tiles.
ld a,(bc) ; Get map byte
m6_render_core_comparison_smc:
cp 0 ; Current byte? (self-modifying code)
jr nz,m6_render_core_l2 ; Exit loop if not
m6_render_core_l1:
; Bytes match, so add width to right edge.
dec c ; Advance map pointer
add hl,de ; Add width to segment
jp nc,m6_render_core ; Jump back if no overflow
; The edge counter has overflowed, so we must have hit the end of this row. We need
; to draw the last segment, and then we can move up a row.
ld h,255 ; Clip right edge to screen boundary
m6_render_core_l2:
; Now we must get the pattern byte and draw the segment in question
ld a,(m6_render_core_comparison_smc+1) ; Get run
m6_render_core_tile_smc:
add a,0 ; Add animation index (self-modifying code)
ld ixl,a ; Store in IXL
ld a,h ; Copy right edge to A
exx ; LINE SET =================================
ld c,a
and 7 ; Keep bit-wise position
ld iyl,a ; Form address to edge table
ld a,c
rrca
rrca
rrca
and 31 ; Keep byte-wise portion
ld b,a
inc b ; This will set the carry flag for lines
inc b ; with no run of bytes in the middle
sub d ; Subtract left edge
ld d,b ; Copy new edge to left edge
jp c,m6_render_core_edge ; Jump ahead for edge handling
; We have worked out the width of the central run in bytes, so now to adjust the
; upcoming relative jump for the filling code
add a,a ; Double run length
cpl
add a,63 ; Equivalent to subtracting from 64
ld (m6_render_core_jump_smc+1),a ; Store offset
ld c,(ix+0) ; Load texture byte
ld a,e ; Get old mask
and c ; AND against texture byte
or (hl) ; OR to the buffer
ld (hl),a ; Store back in buffer
m6_render_core_jump_smc:
; This part is the filling stage, which copies the raw line graphic into the buffer
jr $ ; (self-modifying code)
rept 32
inc l ; Next byte of buffer
ld (hl),c ; Copy pattern byte into buffer
endm
inc l
m6_render_core_l3:
ld a,(iy+0) ; Get new edge mask
ld e,a
cpl ; Invert mask
and c ; AND against graphic
ld (hl),a ; Load into buffer
m6_render_core_endline:
; We have now plotted our line, so do some clean up work for the next one
exx ; MAP SET ==================================
ld a,(bc) ; Grab tile
ld (m6_render_core_comparison_smc+1),a ; Store new tile into comparison
ld a,255
cp h ; End of screen?
jp nz,m6_render_core_l1 ; Not overflowed, so loop back
jp m6_render_newline ; Now for next line of buffer
m6_render_core_edge:
; This branch handles lines made up of only two edges (16 - 9px)
inc a ; Just a small edge case?
jr nz,m6_render_core_edge_single
; This must be a double edge situation.
ld c,(ix+0) ; Load texture byte
ld a,e ; Get old mask
and c ; AND against texture byte
or (hl) ; OR to the buffer
ld (hl),a ; Store back in buffer
inc l
m6_render_core_edge_left:
ld a,(iy+0) ; Get new edge mask
ld e,a
cpl ; Invert mask
and c ; AND against graphic
ld (hl),a ; Load into buffer
jp m6_render_core_endline
m6_render_core_edge_single:
; This must be a single edge situation
ld a,c
ld c,(ix+0) ; Load texture byte
inc a ; Check X coordinate of right edge
jr nz,m6_render_core_edge_left ; Jump behind if byte is on left side
ld a,e ; Get old mask
and c ; AND against texture byte
or (hl) ; OR to the buffer
ld (hl),a ; Store back in buffer
jp m6_render_core_endline
m6_render_map_up:
; The Y addition has overflowed, so we must adjust the map pointer
inc h
ld (m6_render_y),hl
ld bc,(m6_render_map) ; Get map pointer
ld a,c
add a,64 ; Move to next row of map pointer
ld c,a
adc a,b
sub c
cp 8+(m6_map/256) ; Out of bounds?
jr nz,m6_render_map_up_l1
ld a,m6_map/256 ; Reset line counter
m6_render_map_up_l1:
ld b,a
ld (m6_render_map),bc ; Store map pointer
ld a,l
ret
m6_render_map_left:
; The X addition has overflowed, so we must adjust the map pointer
ld bc,(m6_render_map) ; Get map pointer
inc c
ld (m6_render_map),bc ; Store map pointer
ret
; ==================================================================================================
; === RENDERING VARIABLES
; ==================================================================================================
m6_render_x: dw 0
m6_render_y: dw 0
m6_render_dy: dw 0
m6_render_row: db 0
m6_render_map: dw 0
m6_render_width: dw 0
; ==================================================================================================
; === RENDERING EQUATES
; ==================================================================================================
m6_render_oy: equ 0-265
m6_render_ox: equ 650
m6_render_dw: equ 0-174
m6_render_iseg: equ 13107
; ==================================================================================================
; === RENDERING DATA
; ==================================================================================================
m6_centretab:
db 0, 9, 9, 9, 9, 10, 10, 10
db 10, 11, 11, 11, 12, 12, 13, 13
db 13, 14, 14, 15, 15, 16, 17, 17
db 18, 19, 19, 20, 21, 22, 23, 24
db 25, 26, 28, 29, 30, 32, 34, 36
|
oeis/187/A187756.asm | neoneye/loda-programs | 11 | 84923 | ; A187756: a(n) = n^2 * (4*n^2 - 1) / 3.
; 0,1,20,105,336,825,1716,3185,5440,8721,13300,19481,27600,38025,51156,67425,87296,111265,139860,173641,213200,259161,312180,372945,442176,520625,609076,708345,819280,942761,1079700,1231041,1397760,1580865,1781396,2000425,2239056,2498425,2779700,3084081,3412800,3767121,4148340,4557785,4996816,5466825,5969236,6505505,7077120,7685601,8332500,9019401,9747920,10519705,11336436,12199825,13111616,14073585,15087540,16155321,17278800,18459881,19700500,21002625,22368256,23799425,25298196,26866665,28506960
mul $0,2
pow $0,2
bin $0,2
div $0,6
|
src/plfa-code/Bin.agda | chirsz-ever/plfa-code | 0 | 5863 | module plfa-code.Bin where
-- I collect code about Bin there. other definitions I use the std-lib version
import Relation.Binary.PropositionalEquality as Eq
open Eq using (_≡_; refl; cong; sym; trans)
open Eq.≡-Reasoning using (begin_; _≡⟨⟩_; _∎)
open import Data.Nat using (ℕ; zero; suc; _+_; _*_; _∸_; _≤_; z≤n; s≤s)
open import Data.Nat.Properties using (+-comm; +-suc; +-mono-≤)
infixr 2 _≡⟨_⟩_
_≡⟨_⟩_ : ∀ {A : Set} (x : A) {y z : A}
→ x ≡ y
→ y ≡ z
-------
→ x ≡ z
x ≡⟨ x≡y ⟩ y≡z = trans x≡y y≡z
data Bin : Set where
nil : Bin
x0_ : Bin → Bin
x1_ : Bin → Bin
inc : Bin → Bin
inc nil = x1 nil
inc (x0 t) = x1 t
inc (x1 t) = x0 (inc t)
to : ℕ → Bin
to zero = x0 nil
to (suc n) = inc (to n)
from : Bin → ℕ
from nil = 0
from (x0 t) = 2 * (from t)
from (x1 t) = suc (2 * (from t))
+1≡suc : ∀ {n : ℕ} → n + 1 ≡ suc n
+1≡suc {zero} = refl
+1≡suc {suc n} = cong suc +1≡suc
suc-from-inc : ∀ (x : Bin) → from (inc x) ≡ suc (from x)
suc-from-inc nil = refl
suc-from-inc (x0 x) rewrite +1≡suc {from x * 2} = refl
suc-from-inc (x1 x) rewrite suc-from-inc x
| +-suc (from x) (from x + 0) = refl
-- t4 is ⊥ , because `to (from nil) ≡ x0 nil ≢ nil`
-- t4 : ∀ (x : Bin) → to (from x) ≡ x
from-to-const : ∀ (n : ℕ) → from (to n) ≡ n
from-to-const zero = refl
from-to-const (suc n) rewrite suc-from-inc (to n)
| from-to-const n = refl
data Can : Bin → Set
data One : Bin → Set
data One where
one : One (x1 nil)
x0_ : ∀ {b : Bin} → One b → One(x0 b)
x1_ : ∀ {b : Bin} → One b → One(x1 b)
data Can where
zero : Can (x0 nil)
can-one : ∀ {b : Bin} → One b → Can b
one-inc : ∀ {x : Bin} → One x → One (inc x)
one-inc one = x0 one
one-inc (x0 x) = x1 x
one-inc (x1 x) = x0 (one-inc x)
can-inc : ∀ {x : Bin} → Can x → Can (inc x)
can-inc zero = can-one one
can-inc (can-one x) = can-one (one-inc x)
one-to-n : ∀ (n : ℕ) → One (to (suc n))
one-to-n zero = one
one-to-n (suc n) = one-inc (one-to-n n)
can-to-n : ∀ (n : ℕ) → Can (to n)
can-to-n zero = zero
can-to-n (suc n) = can-one (one-to-n n)
open Data.Nat.Properties using (+-identityʳ; +-suc)
l0 : ∀ (n) → to (suc n) ≡ inc (to n)
l0 zero = refl
l0 (suc n) = refl
2n-eq-x0 : ∀ (n) → 1 ≤ n → to (n + n) ≡ x0 (to n)
2n-eq-x0 zero ()
2n-eq-x0 (suc zero) (s≤s z≤n) = refl
2n-eq-x0 (suc (suc n)) (s≤s z≤n) =
begin to (suc (suc n) + suc (suc n))
≡⟨ cong (λ x → to x) (+-suc (suc (suc n)) (suc n)) ⟩ to (suc (suc (suc n + suc n)))
≡⟨⟩ inc (inc (to (suc n + suc n)))
≡⟨ cong (λ x → (inc (inc x))) (2n-eq-x0 (suc n) (s≤s z≤n)) ⟩ inc (inc (x0 (to (suc n))))
≡⟨⟩ x0 (inc (to (suc n)))
≡⟨⟩ x0 (to (suc (suc n)))
∎
one-b-iff-1≤b : ∀ (b) → One b → 1 ≤ from b
one-b-iff-1≤b (x0 b) (x0 ob)
rewrite +-identityʳ (from b) = +-mono-≤ (one-b-iff-1≤b b ob) z≤n
where n = from b
one-b-iff-1≤b (x1 .nil) one = s≤s z≤n
one-b-iff-1≤b (x1 b) (x1 ob) = s≤s z≤n
one-tf-eq : ∀ {b} → One b → to (from b) ≡ b
one-tf-eq {_} one = refl
one-tf-eq {x0 b} (x0 x) =
begin
to (from (x0 b))
≡⟨⟩
to (from b + (from b + zero))
≡⟨ cong (λ n → to (from b + n)) (+-identityʳ (from b)) ⟩
to (from b + from b)
≡⟨ 2n-eq-x0 (from b) (one-b-iff-1≤b b x) ⟩
x0 (to (from b))
≡⟨ cong x0_ (one-tf-eq x) ⟩
x0 b
∎
one-tf-eq {x1 b} (x1 x) =
begin
to (from (x1 b))
≡⟨⟩
inc (to (from b + (from b + zero)))
≡⟨ cong (λ n → inc (to (from b + n))) (+-identityʳ (from b)) ⟩
inc (to (from b + from b))
≡⟨ cong inc (2n-eq-x0 (from b) (one-b-iff-1≤b b x)) ⟩
inc (x0 (to (from b)))
≡⟨⟩
x1 (to (from b))
≡⟨ cong x1_ (one-tf-eq x) ⟩
x1 b
∎
can-tf-eq : ∀ {x} → Can x → to (from x) ≡ x
can-tf-eq {_} zero = refl
can-tf-eq {b} (can-one x) = one-tf-eq x
open import Function.LeftInverse using (_↞_)
ℕ-embedding-Bin : ℕ ↞ Bin
ℕ-embedding-Bin =
record
{ to = record { _⟨$⟩_ = to ; cong = cong to }
; from = record { _⟨$⟩_ = from ; cong = cong from }
; left-inverse-of = from-to-const
}
open import Function.Inverse using (_↔_)
open import Data.Product
using (Σ; ∃; Σ-syntax; ∃-syntax) renaming (_,_ to ⟨_,_⟩)
open import Function using (_∘_)
one-assim : ∀ {b : Bin} → (x : One b) → (y : One b) → x ≡ y
one-assim one one = refl
one-assim (x0 x) (x0 y) = sym (cong x0_ (one-assim y x))
one-assim (x1 x) (x1 y) = sym (cong x1_ (one-assim y x))
can-assim : ∀ {b : Bin} → (x : Can b) → (y : Can b) → x ≡ y
can-assim zero zero = refl
can-assim zero (can-one (x0 ()))
can-assim (can-one (x0 ())) zero
can-assim (can-one one) (can-one one) = refl
can-assim (can-one (x0 x)) (can-one (x0 y)) = cong (can-one ∘ x0_) (one-assim x y)
can-assim (can-one (x1 x)) (can-one (x1 y)) = cong (can-one ∘ x1_) (one-assim x y)
∃-proj₁ : {A : Set} {B : A → Set} → ∃[ x ] B x → A
∃-proj₁ ⟨ x , _ ⟩ = x
∃≡ : ∀ {A : Set} {B : A → Set} (p₁ : ∃[ x ](B x)) (p₂ : ∃[ y ](B y))
→ ∃-proj₁ p₁ ≡ ∃-proj₁ p₂ → (∀ (x) → (b₁ : B x) → (b₂ : B x) → b₁ ≡ b₂)
→ p₁ ≡ p₂
∃≡ ⟨ x , bx ⟩ ⟨ .x , by ⟩ refl f = sym (cong (⟨_,_⟩ x) (f x by bx))
Bin-isomorphism : ℕ ↔ ∃[ x ](Can x)
Bin-isomorphism =
record
{ to = record { _⟨$⟩_ = to′; cong = cong to′}
; from = record { _⟨$⟩_ = from′; cong = cong from′}
; inverse-of = record
{ left-inverse-of = from-to-const
; right-inverse-of = to∘from′
}
}
where
to′ : ℕ → ∃[ x ](Can x)
to′ n = ⟨ to n , can-to-n n ⟩
from′ : ∃[ x ](Can x) → ℕ
from′ ⟨ b , can-b ⟩ = from b
to∘from′ : ∀ y → to′ (from′ y) ≡ y
to∘from′ ⟨ b , can-b ⟩ = ∃≡ ⟨ to (from b) , can-to-n (from b) ⟩ ⟨ b , can-b ⟩ (can-tf-eq can-b) (λ x → can-assim {x})
|
Test/TEST/test4-target-ram.asm | sparks-c16/zasm | 43 | 25132 | #!/usr/local/bin/zasm -x --target=ram -o original/test4-target-ram.hex
.org 1000
rst 0
|
data/baseStats/sirfetchd.asm | longlostsoul/EvoYellow | 16 | 99731 | <filename>data/baseStats/sirfetchd.asm<gh_stars>10-100
db DEX_SIRFETCHD ; pokedex id
db 62 ; base hp
db 135 ; base attack
db 95 ; base defense
db 65 ; base speed
db 82 ; base special
db FIGHTING ; species type 1
db FLYING ; species type 2
db 35 ; catch rate, protein
db 94 ; base exp yield
INCBIN "pic/ymon/farfetchd.pic",0,1 ; 66, sprite dimensions
dw SirfetchdPicFront
dw SirfetchdPicBack
; attacks known at lvl 0
db PECK
db SAND_ATTACK
db KARATE_CHOP
db 0
db 0 ; growth rate
; learnset
tmlearn 2,3,4,6,7,8
tmlearn 9,10
tmlearn 20
tmlearn 31,32
tmlearn 33,34,37,39,40
tmlearn 44
tmlearn 50,51,52
db BANK(SirfetchdPicFront)
|
game/banks/data_bank.asm | benoitryder/super-tilt-bro | 0 | 8515 | #echo
#echo ====== DATA-BANK =====
* = $8000
bank_data_begin:
#include "game/data/data.asm"
bank_data_stage_selection_extra_data_begin:
#include "game/data/menu_stage_select/anims.asm"
#include "game/data/menu_stage_select/screen.asm"
bank_data_stage_selection_extra_data_end:
bank_data_stage_selection_extra_code_begin:
#include "game/logic/game_states/stage_selection_screen/stage_selection_extra_code.asm"
bank_data_stage_selection_extra_code_end:
bank_data_online_mode_extra_data_begin:
#include "game/data/menu_online_mode/anims.asm"
#include "game/data/menu_online_mode/screen.asm"
#include "game/data/menu_online_mode/tileset.asm"
bank_data_online_mode_extra_data_end:
bank_data_online_mode_extra_code_begin:
#include "game/logic/game_states/online_mode_screen/online_mode_screen_extra_code.asm"
bank_data_online_mode_extra_code_end:
bank_data_end:
#echo
#echo DATA-bank used size:
#print bank_data_end-bank_data_begin
#echo
#echo DATA-bank data size:
#print data_end-data_begin
#echo
#echo DATA-bank nametables size:
#print data_nt_end-data_nt_begin
#echo
#echo DATA-bank stage select extra data size:
#print bank_data_stage_selection_extra_data_end-bank_data_stage_selection_extra_data_begin
#echo
#echo DATA-bank stage select extra code size:
#print bank_data_stage_selection_extra_code_end-bank_data_stage_selection_extra_code_begin
#echo
#echo DATA-bank online mode extra data size:
#print bank_data_online_mode_extra_data_end-bank_data_online_mode_extra_data_begin
#echo
#echo DATA-bank online mode extra code size:
#print bank_data_online_mode_extra_code_end-bank_data_online_mode_extra_code_begin
#echo
#echo DATA-bank free space:
#print $c000-*
#if $c000-* < 0
#echo *** Error: Data bank occupies too much space
#else
.dsb $c000-*, CURRENT_BANK_NUMBER
#endif
|
data/maps/headers/Route8Gate.asm | opiter09/ASM-Machina | 1 | 168357 |
map_header Route8Gate, ROUTE_8_GATE, GATE, 0
end_map_header
|
script/click_done.scpt | k0kubun/rebuild | 16 | 1796 | <reponame>k0kubun/rebuild<filename>script/click_done.scpt
#!/usr/bin/env osascript
-- Click Done Button
set timeoutSeconds to 8.0
my doWithTimeout("click UI Element \"Done\" of window 1 of application process \"Install Command Line Developer Tools\"", timeoutSeconds)
on doWithTimeout(uiScript, timeoutSeconds)
set endDate to (current date) + timeoutSeconds
repeat
try
run script "tell application \"System Events\"
" & uiScript & "
end tell"
exit repeat
on error errorMessage
if ((current date) > endDate) then
error errorMessage & "; Can not " & uiScript
end if
end try
end repeat
end doWithTimeout
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.