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
lang/compiler-theory/src/test/resources/antlr/samples/CSV.g4
zizhizhan/jvm-snippets
0
6995
<filename>lang/compiler-theory/src/test/resources/antlr/samples/CSV.g4 grammar CSV; file : hdr row+ ; hdr : row ; row : field (',' field)* '\r'? '\n' ; field : TEXT | STRING | ; TEXT : ~[,\n\r"]+ ; STRING : '"' ('""'|~'"')* '"' ;
Aula03/IfMaior.asm
IgorGabrielTon/AssemblyX64
0
89677
segment .data Write equ 0x4 Read equ 0x3 ConsoleWrite equ 0x1 ConsoleRead equ 0x0 PularLinha equ 0xA FimDoTexto equ 0xD ExecutarCmd equ 0x80 SairApp equ 0x1 SemErros equ 0x0 LimiteChar equ 0x80 section .data x dd 5 y dd 2 msg1 db 'X maior', PularLinha, FimDoTexto tam1 equ $- msg1 msg2 db 'Y maior', PularLinha, FimDoTexto tam2 equ $- msg2 section .text global _start _start: MOV EAX, DWORD[x] MOV EBX, DWORD[y] CMP EAX, EBX ;Se for Maior JGE Maior ;Else MOV ECX, msg2 MOV EDX, tam2 ;Chama Final! JMP Fim Maior: MOV ECX, msg1 MOV EDX, tam1 Fim: MOV EAX, Write MOV EBX, ConsoleWrite int ExecutarCmd MOV EAX, SairApp MOV EBX, SemErros int ExecutarCmd
programs/oeis/213/A213809.asm
karttu/loda
0
87184
<filename>programs/oeis/213/A213809.asm ; A213809: Position of the maximum element in the simple continued fraction of Fibonacci(n+1)^5/Fibonacci(n)^5. ; 1,1,1,1,3,3,3,3,3,5,5,3,5,5,5,5,5,5,5,7,7,5,7,7,7,7,7,7,7,9,9,7,9,9,9,9,9,9,9,11,11,9,11,11,11,11,11,11,11,13,13,11,13,13,13,13,13,13,13,15,15,13,15,15,15,15,15,15,15,17,17,15,17,17,17,17,17,17,17,19,19,17,19,19,19,19,19,19,19,21,21,19,21,21,21,21,21,21,21,23,23,21,23,23,23,23,23,23,23 mov $4,2 mov $5,$0 lpb $4,1 mov $0,$5 sub $4,1 add $0,$4 sub $0,1 mov $3,$0 lpb $0,1 sub $0,1 trn $0,7 sub $3,1 add $3,$0 trn $0,2 lpe mov $2,$4 trn $3,2 lpb $2,1 mov $1,$3 sub $2,1 lpe lpe lpb $5,1 sub $1,$3 mov $5,0 lpe mul $1,2 add $1,1
projects/lua-parser/src/org/luaparser/Luazinha.g4
UFSCar-CS/compilers-2013-1
0
4701
/* * Declaracao da gramatica da linguagem de programacao LUA. * * Data de criacao: 12/07/2013 * Ultima modificacao: 12/07/2013 * * Grupo: * <NAME> 316520 * <NAME> 407917 * */ grammar Luazinha; @members{ PilhaDeTabelas pilhaDeTabelas = new PilhaDeTabelas(); } programa : { pilhaDeTabelas.empilhar(new TabelaDeSimbolos("global")); } trecho { pilhaDeTabelas.desempilhar(); } ; trecho : (comando ';'?])* (ultimocomando ';'?)? ; bloco : trecho ; comando : listavar '=' listaexp // adiciona variaveis ao ultimo escopo definido // caso ela ainda nao tenha sido declarada // em um dos escopos anteriores // isso deve vir abaixo de ** '=' listaexp **, para // que erros como j = j +1 sejam identificados { for (String nome : $listavar.nomes) if (! pilhaDeTabelas.existeSimbolo(nome)) pilhaDeTabelas.topo().adicionarSimbolo(nome, "variavel"); } | chamadadefuncao | 'do' bloco 'end' | 'while' exp 'do' bloco 'end' | 'repeat' bloco 'until' exp | 'if' exp 'then' bloco ('elseif' exp 'then' bloco)* ('else' bloco)? 'end' | 'for' // empilha escopo de for { pilhaDeTabelas.empilhar(new TabelaDeSimbolos("for")); } NOME // adiciona NOME ao escopo for, caso ele nao esteja def. { if (! pilhaDeTabelas.existeSimbolo($NOME.getText())) pilhaDeTabelas.topo().adicionarSimbolo($NOME.getText(), "variavel"); } '=' exp ',' exp (',' exp)? 'do' bloco { pilhaDeTabelas.desempilhar(); } 'end' | 'for' // empilha escopo de for { pilhaDeTabelas.empilhar(new TabelaDeSimbolos("for")); } listadenomes 'in' listaexp // adiciona variaveis ao escopo for // isso deve vir abaixo de ** listaexp **, para // que erros como for j in j +1 sejam identificados // e apos ** 'do' bloco ** para que as variaveis antes de 'in' // possam ser utilizadas dentro do escopo do for { pilhaDeTabelas.topo().adicionarSimbolos($listadenomes.nomes, "variavel"); } 'do' bloco { pilhaDeTabelas.desempilhar(); } 'end' | 'function' nomedafuncao // cria novo escopo com o nome da funcao { pilhaDeTabelas.empilhar(new TabelaDeSimbolos($nomedafuncao.nome)); if ($nomedafuncao.metodo) pilhaDeTabelas.topo().adicionarSimbolo("self", "parametro"); } corpodafuncao { pilhaDeTabelas.desempilhar(); } | 'local' 'function' NOME // cria novo escopo com o nome da funcao { pilhaDeTabelas.empilhar(new TabelaDeSimbolos($NOME.getText())); } corpodafuncao { pilhaDeTabelas.desempilhar(); } | 'local' listadenomes ('=' listaexp)? // adiciona variaveis ao ultimo escopo isso deve // vir abaixo de ** ('=' listaexp)? **, para // que erros como j = j +1 sejam identificados { pilhaDeTabelas.topo().adicionarSimbolos($listadenomes.nomes, "variavel"); } ; ultimocomando : 'return' (listaexp)? | 'break' ; nomedafuncao returns [ String nome, boolean metodo ] @init { $metodo = false; } : n1=NOME { $nome = $n1.getText(); } ('.' n2=NOME { $nome += "." + $n2.getText(); })* (':' n3=NOME { $metodo = true; $nome += "." + $n3.getText(); })? ; listavar returns [ List<String> nomes ] @init { $nomes = new ArrayList<String>(); } : v1=var { $nomes.add($v1.nome); } (',' v2=var { $nomes.add($v2.nome); } )* ; var returns [ String nome, int linha, int coluna ] : NOME { $nome = $NOME.getText(); $linha = $NOME.line; $coluna = $NOME.pos; } | expprefixo '[' exp ']' | expprefixo '.' NOME ; listadenomes returns [ List<String> nomes ] @init{ $nomes = new ArrayList<String>(); } : n1=NOME { $nomes.add($n1.getText()); } (',' n2=NOME { $nomes.add($n2.getText()); } )* ; listaexp : (exp ',')* exp ; exp : 'nil' | 'false' | 'true' | NUMERO | CADEIA | '...' | funcao | expprefixo2 | construtortabela | exp opbin exp | opunaria exp ; expprefixo : NOME ( '[' exp ']' | '.' NOME )* ; expprefixo2 : var // aqui uma variavel sera utilizada em // comparacoes atribuicoes etc. Verifica-se // se ela ja foi amarrada a algum escopo { if (! pilhaDeTabelas.existeSimbolo($var.nome)) Mensagens.erroVariavelNaoExiste($var.linha, $var.coluna, $var.nome); } | chamadadefuncao | '(' exp ')' ; chamadadefuncao : expprefixo args | expprefixo ':' NOME args ; args : '(' (listaexp)? ')' | construtortabela | CADEIA ; funcao : 'function' corpodafuncao ; corpodafuncao : '(' (listapar)? ')' bloco 'end' ; listapar : listadenomes (',' '...')? { pilhaDeTabelas.topo().adicionarSimbolos($listadenomes.nomes, "parametro"); } | '...' ; construtortabela : '{' (listadecampos)? '}' ; listadecampos : campo (separadordecampos campo)* (separadordecampos)? ; campo : '[' exp ']' '=' exp | NOME '=' exp | exp ; separadordecampos : ',' | ';' ; opbin : '+' | '-' | '*' | '/' | '^' | '%' | '..' | '<' | '<=' | '>' | '>=' | '==' | '~=' | 'and' | 'or' ; opunaria : '-' | 'not' | '#' ; NOME : ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '0'..'9' | '_')*; CADEIA : '\'' ~('\n' | '\r' | '\'')* '\'' | '"' ~('\n' | '\r' | '"')* '"'; NUMERO : ('0'..'9')+ EXPOENTE? | ('0'..'9')+ '.' ('0'..'9')* EXPOENTE? | '.' ('0'..'9')+ EXPOENTE?; fragment EXPOENTE : ('e' | 'E') ( '+' | '-')? ('0'..'9')+; COMENTARIO : '--' ~('\n' | '\r')* '\r'? '\n' {skip();}; WS : (' ' | '\t' | '\r' | '\n') {skip();};
programs/oeis/132/A132758.asm
neoneye/loda
22
14942
; A132758: a(n) = n*(n + 31)/2. ; 0,16,33,51,70,90,111,133,156,180,205,231,258,286,315,345,376,408,441,475,510,546,583,621,660,700,741,783,826,870,915,961,1008,1056,1105,1155,1206,1258,1311,1365,1420,1476,1533,1591,1650 mov $1,$0 add $1,31 mul $0,$1 div $0,2
mc-sema/validator/x86/tests/PEXTRWmr.asm
randolphwong/mcsema
2
104611
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_SF|FLAG_PF ;TEST_FILE_META_END mov eax, 0 mov ecx, 0 ;TEST_BEGIN_RECORDING lea ebx, [esp-4] mov dword [ebx], 0 lea ecx, [esp-0x30] and ecx, 0xFFFFFFF0 mov dword [ecx+0x00], 0xAAAAAAAA mov dword [ecx+0x04], 0xBBBBBBBB mov dword [ecx+0x08], 0xCCCCCCCC mov dword [ecx+0x0C], 0xDDDDDDDD movdqu xmm1, [ecx] pextrw [ebx], xmm1, 7 mov ebx, [ebx] mov ecx, 0 ;TEST_END_RECORDING cvtsi2sd xmm1, ecx
software/hal/boards/components/LSM303D/LSM303D.ads
TUM-EI-RCS/StratoX
12
16918
<gh_stars>10-100 -- Institution: Technische Universität München -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- Module: LSM303D Driver -- -- Authors: <NAME> (<EMAIL>) -- -- Description: SPI Driver for the LSM303D -- -- ToDo: -- [ ] Implementation package LSM303D is end LSM303D;
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_19357_1505.asm
ljhsiun2/medusa
9
162750
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x1dc20, %rsi lea addresses_normal_ht+0x16d81, %rdi nop nop xor $50798, %r9 mov $45, %rcx rep movsw xor %rdx, %rdx lea addresses_D_ht+0xace1, %rsi lea addresses_A_ht+0xee77, %rdi nop nop nop xor $34015, %r12 mov $27, %rcx rep movsl nop nop nop nop nop xor $9800, %rdx lea addresses_UC_ht+0x133e1, %rdi nop nop nop nop xor $2713, %rbp mov (%rdi), %r12w nop nop nop nop nop cmp $22936, %rdx lea addresses_WT_ht+0x8da1, %r9 nop sub %rsi, %rsi movw $0x6162, (%r9) nop nop nop sub $56801, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r12 ret .global s_faulty_load s_faulty_load: push %r12 push %r9 push %rbp push %rbx push %rcx // Faulty Load lea addresses_WC+0x2f81, %rbx nop nop nop cmp %rcx, %rcx mov (%rbx), %bp lea oracles, %r9 and $0xff, %rbp shlq $12, %rbp mov (%r9,%rbp,1), %rbp pop %rcx pop %rbx pop %rbp pop %r9 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'00': 19357} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
oeis/017/A017466.asm
neoneye/loda-programs
11
8526
<reponame>neoneye/loda-programs<gh_stars>10-100 ; A017466: a(n) = (11*n + 6)^6. ; 46656,24137569,481890304,3518743761,15625000000,51520374361,139314069504,326940373369,689869781056,1340095640625,2436396322816,4195872914689,6906762437184,10942526586601,16777216000000,25002110044521,36343632130624,51682540549249,72074394832896,98771297640625,133244912166976,177210755074809,232653764952064,301855146292441,387420489000000,492309163417681,619864990879744,773848189788129,958468597212736,1178420166015625,1438916737499136,1745729089577929,2105223260474944,2524400147941281 mul $0,11 add $0,6 pow $0,6
source/oasis/program-elements-extended_return_statements.ads
reznikmm/gela
0
24801
<filename>source/oasis/program-elements-extended_return_statements.ads -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Statements; with Program.Lexical_Elements; with Program.Elements.Return_Object_Specifications; with Program.Element_Vectors; with Program.Elements.Exception_Handlers; package Program.Elements.Extended_Return_Statements is pragma Pure (Program.Elements.Extended_Return_Statements); type Extended_Return_Statement is limited interface and Program.Elements.Statements.Statement; type Extended_Return_Statement_Access is access all Extended_Return_Statement'Class with Storage_Size => 0; not overriding function Return_Object (Self : Extended_Return_Statement) return not null Program.Elements.Return_Object_Specifications .Return_Object_Specification_Access is abstract; not overriding function Statements (Self : Extended_Return_Statement) return Program.Element_Vectors.Element_Vector_Access is abstract; not overriding function Exception_Handlers (Self : Extended_Return_Statement) return Program.Elements.Exception_Handlers .Exception_Handler_Vector_Access is abstract; type Extended_Return_Statement_Text is limited interface; type Extended_Return_Statement_Text_Access is access all Extended_Return_Statement_Text'Class with Storage_Size => 0; not overriding function To_Extended_Return_Statement_Text (Self : in out Extended_Return_Statement) return Extended_Return_Statement_Text_Access is abstract; not overriding function Return_Token (Self : Extended_Return_Statement_Text) return not null Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Do_Token (Self : Extended_Return_Statement_Text) return Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Exception_Token (Self : Extended_Return_Statement_Text) return Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function End_Token (Self : Extended_Return_Statement_Text) return Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Return_Token_2 (Self : Extended_Return_Statement_Text) return Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Semicolon_Token (Self : Extended_Return_Statement_Text) return not null Program.Lexical_Elements.Lexical_Element_Access is abstract; end Program.Elements.Extended_Return_Statements;
src/port_specification-makefile.ads
kraileth/ravenadm
18
9369
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Definitions; use Definitions; private with Ada.Text_IO; package Port_Specification.Makefile is -- This generates a makefile from the specification based on given parameters -- The variant must be "standard" or one of the specified variants -- The output_file must be blank (stdout) or a file to (over)write a file with output. procedure generator (specs : Portspecs; variant : String; opsys : supported_opsys; arch : supported_arch; output_file : String ); private package TIO renames Ada.Text_IO; dev_error : exception; -- Given a string GITHUB/account:project:tag(:directory) return a standard -- distname per github rules. Also works for GITHUB_PRIVATE and GHPRIV function generate_github_distname (download_site : String) return String; -- Given a string GITLAB/account:project:tag return a standard distname. -- Rare characters in account/project may have to be URL encoded function generate_gitlab_distname (download_site : String) return String; -- Given a string CRATES/project:version return a standard distname. function generate_crates_distname (download_site : String) return String; -- Used for non-custom (and not invalid) licenses, returns the full license name function standard_license_names (license : license_type) return String; procedure handle_github_relocations (specs : Portspecs; makefile : TIO.File_Type); -- Returns true if USES module should be omitted from Makefile USES definition function passive_uses_module (value : String) return Boolean; end Port_Specification.Makefile;
routines/flash.asm
jacobly0/Age-Of-CEmpires-I
0
100965
<gh_stars>0 assume ADL=0 FlashMbaseStart equ $ shr 16 fUnlockFlash: ld a, 08Ch out0 (024h), a ld c, 4 in0 a, (006h) or a, c out0 (006h), a out0 (028h), c ; Disable stack protector xor a, a out0 (03Ah), a out0 (03Bh), a out0 (03Ch), a ret.l fLockFlash: xor a, a out0 (028h), a in0 a, (006h) res 2, a out0 (006h), a ld a, 088h out0 (024h), a ; Restore stack protector ld a, 081h out0 (03Ah), a ld a, 098h out0 (03Bh), a ld a, 0D1h out0 (03Ch), a ret.l assume ADL=1 BackupRAM: ld a, 03Fh call EraseSector ld a, 03Eh call EraseSector ld a, 03Dh call EraseSector ld a, 03Ch call EraseSector ld hl, ramStart + 1 ld (hl), 0A5h ; Magic bytes <3 dec hl ld (hl), 05Ah ld de, RAM_BACKUP ld bc, 0040000h jp _WriteFlash EraseSector: ; Loooooool ld bc, 00000F8h push bc jp _EraseFlashSector
programs/oeis/228/A228221.asm
jmorken/loda
1
178188
; A228221: Number of second differences of arrays of length 6 of numbers in 0..n. ; 63,665,3151,9705,23351,47953,88215,149681,238735,362601,529343,747865,1027911,1380065,1815751,2347233,2987615,3750841,4651695,5705801,6929623,8340465,9956471,11796625,13880751,16229513,18864415,21807801,25082855 mov $4,$0 mul $4,2 add $4,1 mov $7,$0 add $0,$4 mov $5,1 lpb $0 sub $0,1 add $4,4 add $3,$4 mov $6,$4 trn $6,$5 add $3,$6 add $5,$3 lpe mov $1,2 sub $4,$4 add $4,$5 add $4,2 mul $4,2 add $4,3 mul $4,2 add $4,5 add $1,$4 add $1,2 mov $2,8 mov $8,$7 lpb $2 add $1,$8 sub $2,1 lpe mov $10,$7 lpb $10 add $9,$8 sub $10,1 lpe mov $2,13 mov $8,$9 lpb $2 add $1,$8 sub $2,1 lpe mov $9,0 mov $10,$7 lpb $10 add $9,$8 sub $10,1 lpe mov $2,46 mov $8,$9 lpb $2 add $1,$8 sub $2,1 lpe mov $9,0 mov $10,$7 lpb $10 add $9,$8 sub $10,1 lpe mov $2,35 mov $8,$9 lpb $2 add $1,$8 sub $2,1 lpe
programs/oeis/020/A020711.asm
karttu/loda
0
26577
<filename>programs/oeis/020/A020711.asm<gh_stars>0 ; A020711: Pisot sequences E(5,7), P(5,7). ; 5,7,10,14,20,29,42,61,89,130,190,278,407,596,873,1279,1874,2746,4024,5897,8642,12665,18561,27202,39866,58426,85627,125492,183917,269543,395034,578950,848492,1243525,1822474,2670965,3914489,5736962,8407926,12322414,18059375,26467300,38789713,56849087,83316386,122106098,178955184,262271569,384377666,563332849,825604417,1209982082,1773314930,2598919346,3808901427,5582216356,8181135701,11990037127,17572253482,25753389182,37743426308,55315679789,81069068970,118812495277,174128175065,255197244034,374009739310,548137914374,803335158407,1177344897716,1725482812089,2528817970495,3706162868210,5431645680298,7960463650792,11666626519001,17098272199298,25058735850089,36725362369089,53823634568386,78882370418474,115607732787562,169431367355947,248313737774420,363921470561981,533352837917927,781666575692346,1145588046254326,1678940884172252,2460607459864597,3606195506118922,5285136390291173,7745743850155769 add $0,4 mov $1,1 lpb $0,1 sub $0,1 mov $4,$1 add $1,$3 sub $4,$2 mov $2,$3 mov $3,$4 lpe add $0,3 add $1,1 add $1,$0 sub $1,3
alloy4fun_models/trashltl/models/11/d9ofTnDDSLYKvwGor.als
Kaixi26/org.alloytools.alloy
0
3340
open main pred idd9ofTnDDSLYKvwGor_prop12 { eventually (File in Trash) } pred __repair { idd9ofTnDDSLYKvwGor_prop12 } check __repair { idd9ofTnDDSLYKvwGor_prop12 <=> prop12o }
src/test/ref/cstyle-decl-var.asm
jbrandwood/kickc
2
241975
// Test declarations of variables without definition // Commodore 64 PRG executable file .file [name="cstyle-decl-var.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) // The actual declarations .label SCREEN = $400 .segment Code // And a little code using them main: { // SCREEN[idx++] = 'c' lda #'c' sta SCREEN // SCREEN[idx++] = 'm' lda #'m' sta SCREEN+1 // SCREEN[idx++] = 'l' lda #'l' sta SCREEN+2 // } rts }
unittests/ASM/VEX/pext.asm
fengjixuchui/FEX
0
6080
<gh_stars>0 %ifdef CONFIG { "RegData": { "RAX": "0x12345678", "RBX": "0xFF00FFF0", "RCX": "0x00012567", "RDX": "0x1234567812345678", "RSI": "0xFF00FF00FF00FF00", "RDI": "0x12561256" } } %endif ; 32-bit mov eax, 0x12345678 mov ebx, 0xFF00FFF0 pext ecx, eax, ebx ; 64-bit mov rdx, 0x1234567812345678 mov rsi, 0xFF00FF00FF00FF00 pext rdi, rdx, rsi hlt
Assembly/fileformats/familiarname/familiar_battle.asm
WildGenie/Ninokuni
14
90723
<gh_stars>10-100 ;;----------------------------------------------------------------------------;; ;; Use the new "long name" field. ;; Copyright 2014 <NAME> (aka pleonex) ;; ;; 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. ;;----------------------------------------------------------------------------;; @FamiliarGetStructPtr equ 0x0210DCA4 @FamiliarGetEntryPtr equ 0x021028DC @LongNameOffset equ 0xB4 ; Function that prints the text in "select target enemy" texboxes: 0x0207DBD0 ; - It does not need changes since I read it manually for the top screen ; Function that copy at some point the short name with hardcode size: 0x02083B74 ; - It does not need changes since I read it manually for the top screen ; - It was not possible to increase size since there are data after the name ; Load name pointer for the enemy name in the top screen ; Instead of uses the internal copy short name, read again from the file. .thumb .org 0x0207D728 .area 0x16 BL @FamiliarGetStructPtr ; Get the ptr to the struct for FamiliarGetEntryPtr ADD r6, 0xFF ; Familiar ID is in r6+0x228 ADD r6, 0xFF ; 0x228 = 0xFF + 0xFF + 0x3C LDRH r1, [r6, 0x3C] ; Get the ID of the current familiar BL @FamiliarGetEntryPtr ; Get the pointer to the ImagenParam entry ADD r0, @LongNameOffset ; Go to long name STR r0, [sp, #0x4] ; Store to print it MOV r0, #0xB ; Original code: written because I have sorted them STR r0, [sp,#0x0] ; "" .endarea ;; FUTURE: Put the above code in a function, to be able to use ;; long familiar names in the temp bottom screen msg like when trying to catch a ;; familiar with songs: 0x02081CD4
src/obfuscator.asm
krissemicolon/velcron
4
99315
; NASM XOR Obfuscator ; void encrypt_xor(LPBYTE lpBuffor, DWORD dwSize, DWORD dwKey) encrypt_xor: push ebp mov ebp,esp %stacksize flat %arg lpBuffor:dword, dwSize:dword, dwKey:dword mov eax,[lpBuffor] mov ecx,[dwSize] mov edx,[dwKey] next_byte: xor [eax+ecx-1],dl dec ecx jne next_byte mov esp, ebp pop ebp ret
programs/oeis/283/A283623.asm
neoneye/loda
22
7721
; A283623: a(n) = prime(n) + (1 + prime(1 + n))/2. ; 4,6,9,13,18,22,27,31,38,45,50,58,63,67,74,83,90,95,103,108,113,121,128,138,148,153,157,162,166,177,193,200,207,214,225,230,239,247,254,263,270,277,288,292,297,305,323,337,342,346,353,360,367,380,389,398,405,410,418,423,430,447,463,468,472,483,500,511,522,526,533,543,554,563,571,578,588,598,606,619,630,637,648,653,661,668,678,688,693,697,707,723,733,741,751,758,770,783,794,815 mov $1,$0 seq $0,40 ; The prime numbers. seq $1,98090 ; Numbers k such that 2k-3 is prime. sub $1,1 add $0,$1
unused/develop/obj/music_track_101__Data.asm
pau-tomas/gbvm
33
2608
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 4.1.4 #12246 (Mac OS X x86_64) ;-------------------------------------------------------- .module music_track_101__Data .optsdcc -mgbz80 ;-------------------------------------------------------- ; Public variables in this module ;-------------------------------------------------------- .globl _music_track_101__Data .globl ___bank_music_track_101__Data ;-------------------------------------------------------- ; special function registers ;-------------------------------------------------------- ;-------------------------------------------------------- ; ram data ;-------------------------------------------------------- .area _DATA ;-------------------------------------------------------- ; ram data ;-------------------------------------------------------- .area _INITIALIZED ;-------------------------------------------------------- ; absolute external ram data ;-------------------------------------------------------- .area _DABS (ABS) ;-------------------------------------------------------- ; global & static initialisations ;-------------------------------------------------------- .area _HOME .area _GSINIT .area _GSFINAL .area _GSINIT ;-------------------------------------------------------- ; Home ;-------------------------------------------------------- .area _HOME .area _HOME ;-------------------------------------------------------- ; code ;-------------------------------------------------------- .area _CODE_255 .area _CODE_255 _order_cnt: .db #0x10 ; 16 _P0: .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 _P1: .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x22 ; 34 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x32 ; 50 '2' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x22 ; 34 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x32 ; 50 '2' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x35 ; 53 '5' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x35 ; 53 '5' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' _P2: .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x1d ; 29 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x22 ; 34 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x32 ; 50 '2' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x22 ; 34 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x32 ; 50 '2' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x35 ; 53 '5' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x20 ; 32 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x35 ; 53 '5' .db #0x03 ; 3 .db #0x32 ; 50 '2' _P3: .db #0x1d ; 29 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x1d ; 29 .db #0x70 ; 112 'p' .db #0xcc ; 204 .db #0x1d ; 29 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x24 ; 36 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x24 ; 36 .db #0x70 ; 112 'p' .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x1d ; 29 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x24 ; 36 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x1d ; 29 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x29 ; 41 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x02 ; 2 .db #0x0a ; 10 .db #0x27 ; 39 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x29 ; 41 .db #0x70 ; 112 'p' .db #0xcc ; 204 .db #0x27 ; 39 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x24 ; 36 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x24 ; 36 .db #0x70 ; 112 'p' .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x1d ; 29 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x27 ; 39 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x1d ; 29 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x29 ; 41 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x02 ; 2 .db #0x0a ; 10 .db #0x26 ; 38 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x29 ; 41 .db #0x70 ; 112 'p' .db #0xcc ; 204 .db #0x26 ; 38 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x22 ; 34 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x22 ; 34 .db #0x70 ; 112 'p' .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x26 ; 38 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x24 ; 36 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x22 ; 34 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x24 ; 36 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x24 ; 36 .db #0x70 ; 112 'p' .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 _P4: .db #0x05 ; 5 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x05 ; 5 .db #0x3c ; 60 .db #0x09 ; 9 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x05 ; 5 .db #0x3c ; 60 .db #0x04 ; 4 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x05 ; 5 .db #0x3c ; 60 .db #0x00 ; 0 .db #0x11 ; 17 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x11 ; 17 .db #0x3c ; 60 .db #0x09 ; 9 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x08 ; 8 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x08 ; 8 .db #0x3c ; 60 .db #0x09 ; 9 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x08 ; 8 .db #0x3c ; 60 .db #0x04 ; 4 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x08 ; 8 .db #0x3c ; 60 .db #0x00 ; 0 .db #0x14 ; 20 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x14 ; 20 .db #0x3c ; 60 .db #0x09 ; 9 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x0a ; 10 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x0a ; 10 .db #0x3c ; 60 .db #0x09 ; 9 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x0a ; 10 .db #0x3c ; 60 .db #0x04 ; 4 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x0a ; 10 .db #0x3c ; 60 .db #0x00 ; 0 .db #0x0a ; 10 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x0a ; 10 .db #0x3c ; 60 .db #0x09 ; 9 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x0c ; 12 .db #0x04 ; 4 .db #0x14 ; 20 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x13 ; 19 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x0f ; 15 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x0f ; 15 .db #0x11 ; 17 .db #0x03 ; 3 .db #0x11 ; 17 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 _P5: .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 _P6: .db #0x30 ; 48 '0' .db #0x20 ; 32 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x22 ; 34 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x32 ; 50 '2' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x22 ; 34 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x32 ; 50 '2' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x35 ; 53 '5' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x20 ; 32 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x10 ; 16 .db #0xcc ; 204 .db #0x29 ; 41 .db #0x20 ; 32 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x29 ; 41 .db #0x10 ; 16 .db #0xcc ; 204 .db #0x29 ; 41 .db #0x20 ; 32 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 _P7: .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x22 ; 34 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x32 ; 50 '2' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x22 ; 34 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x32 ; 50 '2' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x35 ; 53 '5' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x35 ; 53 '5' .db #0x10 ; 16 .db #0x00 ; 0 .db #0x30 ; 48 '0' .db #0x13 ; 19 .db #0x03 ; 3 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x03 ; 3 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x03 ; 3 _P8: .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x05 ; 5 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x11 ; 17 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x05 ; 5 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x11 ; 17 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x05 ; 5 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x11 ; 17 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x05 ; 5 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x11 ; 17 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x08 ; 8 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x14 ; 20 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x08 ; 8 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x14 ; 20 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x08 ; 8 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x14 ; 20 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x08 ; 8 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x14 ; 20 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x0a ; 10 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x16 ; 22 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x0a ; 10 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x16 ; 22 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x0a ; 10 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x16 ; 22 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x0a ; 10 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x16 ; 22 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x05 ; 5 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x11 ; 17 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x05 ; 5 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x11 ; 17 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x05 ; 5 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x11 ; 17 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x05 ; 5 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x11 ; 17 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 _P9: .db #0x37 ; 55 '7' .db #0x90 ; 144 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x90 ; 144 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x90 ; 144 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x90 ; 144 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x90 ; 144 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x90 ; 144 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x90 ; 144 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x90 ; 144 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 _P10: .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x10 ; 16 .db #0x00 ; 0 .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x22 ; 34 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x32 ; 50 '2' .db #0x10 ; 16 .db #0x00 ; 0 .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x22 ; 34 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x32 ; 50 '2' .db #0x10 ; 16 .db #0x00 ; 0 .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x35 ; 53 '5' .db #0x10 ; 16 .db #0x00 ; 0 .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x35 ; 53 '5' .db #0x10 ; 16 .db #0x00 ; 0 .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' _P11: .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x10 ; 16 .db #0x00 ; 0 .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x29 ; 41 .db #0x70 ; 112 'p' .db #0xcc ; 204 .db #0x26 ; 38 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x22 ; 34 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x29 ; 41 .db #0x43 ; 67 'C' .db #0x10 ; 16 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x04 ; 4 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x04 ; 4 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x4c ; 76 'L' .db #0x04 ; 4 .db #0x2c ; 44 .db #0x40 ; 64 .db #0x00 ; 0 .db #0x2e ; 46 .db #0x4c ; 76 'L' .db #0x04 ; 4 .db #0x29 ; 41 .db #0x40 ; 64 .db #0x00 ; 0 .db #0x2c ; 44 .db #0x4c ; 76 'L' .db #0x04 ; 4 .db #0x27 ; 39 .db #0x40 ; 64 .db #0x00 ; 0 .db #0x26 ; 38 .db #0x40 ; 64 .db #0x00 ; 0 .db #0x27 ; 39 .db #0x4c ; 76 'L' .db #0x04 ; 4 .db #0x2c ; 44 .db #0x40 ; 64 .db #0x00 ; 0 .db #0x26 ; 38 .db #0x4c ; 76 'L' .db #0x04 ; 4 .db #0x27 ; 39 .db #0x40 ; 64 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x26 ; 38 .db #0x40 ; 64 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' _P12: .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x05 ; 5 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x11 ; 17 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x05 ; 5 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x11 ; 17 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x05 ; 5 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x11 ; 17 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x05 ; 5 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x11 ; 17 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x08 ; 8 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x14 ; 20 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x08 ; 8 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x14 ; 20 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x08 ; 8 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x14 ; 20 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x08 ; 8 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x14 ; 20 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x52 ; 82 'R' .db #0x90 ; 144 .db #0x0a ; 10 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x16 ; 22 .db #0x03 ; 3 .db #0x45 ; 69 'E' .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x45 ; 69 'E' .db #0x0a ; 10 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x16 ; 22 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x0a ; 10 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x16 ; 22 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x0a ; 10 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x16 ; 22 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x0a ; 10 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x1b ; 27 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' _P13: .db #0x1d ; 29 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x1d ; 29 .db #0x70 ; 112 'p' .db #0xcc ; 204 .db #0x1d ; 29 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x24 ; 36 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x24 ; 36 .db #0x70 ; 112 'p' .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x1d ; 29 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x24 ; 36 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x1d ; 29 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x29 ; 41 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x02 ; 2 .db #0x0a ; 10 .db #0x27 ; 39 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x29 ; 41 .db #0x70 ; 112 'p' .db #0xcc ; 204 .db #0x27 ; 39 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x24 ; 36 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x24 ; 36 .db #0x70 ; 112 'p' .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x1d ; 29 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0xcc ; 204 .db #0x27 ; 39 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x1d ; 29 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x29 ; 41 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x5a ; 90 'Z' .db #0x02 ; 2 .db #0x0a ; 10 .db #0x22 ; 34 .db #0x60 ; 96 .db #0xcc ; 204 .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x01 ; 1 .db #0x02 ; 2 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x10 ; 16 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x10 ; 16 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x04 ; 4 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x04 ; 4 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x3c ; 60 .db #0x04 ; 4 .db #0x2c ; 44 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x2e ; 46 .db #0x3c ; 60 .db #0x04 ; 4 .db #0x29 ; 41 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x2c ; 44 .db #0x3c ; 60 .db #0x04 ; 4 .db #0x27 ; 39 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x26 ; 38 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x27 ; 39 .db #0x3c ; 60 .db #0x04 ; 4 .db #0x2c ; 44 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x26 ; 38 .db #0x3c ; 60 .db #0x04 ; 4 .db #0x27 ; 39 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x26 ; 38 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x22 ; 34 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' _P14: .db #0x37 ; 55 '7' .db #0x90 ; 144 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x90 ; 144 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x90 ; 144 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x90 ; 144 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x80 ; 128 .db #0x00 ; 0 .db #0x37 ; 55 '7' .db #0x90 ; 144 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x40 ; 64 .db #0x00 ; 0 _P15: .db #0x24 ; 36 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x24 ; 36 .db #0x3c ; 60 .db #0x03 ; 3 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x29 ; 41 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x30 ; 48 '0' .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x30 ; 48 '0' .db #0x3c ; 60 .db #0x03 ; 3 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x35 ; 53 '5' .db #0x33 ; 51 '3' .db #0x03 ; 3 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x03 ; 3 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x33 ; 51 '3' .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x2c ; 44 .db #0x3c ; 60 .db #0x03 ; 3 .db #0x30 ; 48 '0' .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x3c ; 60 .db #0x03 ; 3 .db #0x2c ; 44 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x30 ; 48 '0' .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x02 ; 2 .db #0x01 ; 1 .db #0x5a ; 90 'Z' .db #0x02 ; 2 .db #0x01 ; 1 .db #0x2e ; 46 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x2c ; 44 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x29 ; 41 .db #0x3c ; 60 .db #0x03 ; 3 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x2e ; 46 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x29 ; 41 .db #0x3c ; 60 .db #0x03 ; 3 .db #0x2c ; 44 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x2e ; 46 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x2c ; 44 .db #0x3c ; 60 .db #0x03 ; 3 .db #0x2c ; 44 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x2e ; 46 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x2c ; 44 .db #0x3c ; 60 .db #0x03 ; 3 .db #0x30 ; 48 '0' .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x33 ; 51 '3' .db #0x3c ; 60 .db #0x03 ; 3 .db #0x35 ; 53 '5' .db #0x33 ; 51 '3' .db #0x01 ; 1 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x01 ; 1 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x01 ; 1 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x01 ; 1 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x01 ; 1 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x02 ; 2 .db #0x05 ; 5 .db #0x5a ; 90 'Z' .db #0x02 ; 2 .db #0x05 ; 5 .db #0x5a ; 90 'Z' .db #0x02 ; 2 .db #0x05 ; 5 .db #0x5a ; 90 'Z' .db #0x02 ; 2 .db #0x05 ; 5 _P16: .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x20 ; 32 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x10 ; 16 .db #0x00 ; 0 .db #0x2c ; 44 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x27 ; 39 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x22 ; 34 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x32 ; 50 '2' .db #0x10 ; 16 .db #0x00 ; 0 .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x22 ; 34 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x32 ; 50 '2' .db #0x10 ; 16 .db #0x00 ; 0 .db #0x2e ; 46 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x26 ; 38 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x35 ; 53 '5' .db #0x10 ; 16 .db #0x00 ; 0 .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x35 ; 53 '5' .db #0x10 ; 16 .db #0x00 ; 0 .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x03 ; 3 .db #0x32 ; 50 '2' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x32 ; 50 '2' _P17: .db #0x29 ; 41 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x27 ; 39 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x29 ; 41 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x2c ; 44 .db #0x03 ; 3 .db #0x04 ; 4 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x04 ; 4 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x04 ; 4 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x04 ; 4 .db #0x29 ; 41 .db #0x34 ; 52 '4' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x02 ; 2 .db #0x27 ; 39 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x29 ; 41 .db #0x3c ; 60 .db #0x03 ; 3 .db #0x24 ; 36 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x27 ; 39 .db #0x3c ; 60 .db #0x03 ; 3 .db #0x29 ; 41 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x27 ; 39 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0xa1 ; 161 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x00 ; 0 .db #0x2c ; 44 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x2e ; 46 .db #0x03 ; 3 .db #0x02 ; 2 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x02 ; 2 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0xa1 ; 161 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x00 ; 0 .db #0x30 ; 48 '0' .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x02 ; 2 .db #0x2e ; 46 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x2c ; 44 .db #0x3c ; 60 .db #0x03 ; 3 .db #0x29 ; 41 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x2c ; 44 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x29 ; 41 .db #0x3c ; 60 .db #0x03 ; 3 .db #0x2e ; 46 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x30 ; 48 '0' .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x2e ; 46 .db #0x3c ; 60 .db #0x03 ; 3 .db #0x2e ; 46 .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x30 ; 48 '0' .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x2e ; 46 .db #0x3c ; 60 .db #0x03 ; 3 .db #0x33 ; 51 '3' .db #0x30 ; 48 '0' .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0xa1 ; 161 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x02 ; 2 .db #0x35 ; 53 '5' .db #0x03 ; 3 .db #0x03 ; 3 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x1d ; 29 .db #0x03 ; 3 .db #0x07 ; 7 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x07 ; 7 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x07 ; 7 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x07 ; 7 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x07 ; 7 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x07 ; 7 _P18: .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x0e ; 14 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x0e ; 14 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x0e ; 14 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x1d ; 29 .db #0x1c ; 28 .db #0x03 ; 3 .db #0x29 ; 41 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x1c ; 28 .db #0x03 ; 3 .db #0x27 ; 39 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0xa1 ; 161 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x02 ; 2 .db #0x24 ; 36 .db #0x03 ; 3 .db #0x04 ; 4 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x04 ; 4 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x04 ; 4 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x27 ; 39 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x1d ; 29 .db #0x1c ; 28 .db #0x03 ; 3 .db #0x29 ; 41 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x27 ; 39 .db #0x1c ; 28 .db #0x03 ; 3 .db #0x26 ; 38 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x29 ; 41 .db #0x1c ; 28 .db #0x03 ; 3 .db #0x26 ; 38 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x22 ; 34 .db #0x03 ; 3 .db #0x06 ; 6 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x06 ; 6 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x26 ; 38 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x22 ; 34 .db #0x1c ; 28 .db #0x03 ; 3 .db #0x24 ; 36 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x22 ; 34 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x03 ; 3 .db #0x03 ; 3 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x03 ; 3 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x03 ; 3 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x03 ; 3 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' _P19: .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x24 ; 36 .db #0x03 ; 3 .db #0x0e ; 14 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x0e ; 14 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x0e ; 14 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x1d ; 29 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x1d ; 29 .db #0x1c ; 28 .db #0x03 ; 3 .db #0x29 ; 41 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x24 ; 36 .db #0x1c ; 28 .db #0x03 ; 3 .db #0x2c ; 44 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x2e ; 46 .db #0x03 ; 3 .db #0x05 ; 5 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x05 ; 5 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x05 ; 5 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x33 ; 51 '3' .db #0x10 ; 16 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x30 ; 48 '0' .db #0x10 ; 16 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x1c ; 28 .db #0x03 ; 3 .db #0x2c ; 44 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x27 ; 39 .db #0x1c ; 28 .db #0x03 ; 3 .db #0x2e ; 46 .db #0x10 ; 16 .db #0x00 ; 0 .db #0x30 ; 48 '0' .db #0x1c ; 28 .db #0x03 ; 3 .db #0x33 ; 51 '3' .db #0x10 ; 16 .db #0x00 ; 0 .db #0x35 ; 53 '5' .db #0x03 ; 3 .db #0x04 ; 4 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x04 ; 4 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x04 ; 4 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x35 ; 53 '5' .db #0x10 ; 16 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x1c ; 28 .db #0x03 ; 3 .db #0x30 ; 48 '0' .db #0x10 ; 16 .db #0x00 ; 0 .db #0x33 ; 51 '3' .db #0x10 ; 16 .db #0x00 ; 0 .db #0x5a ; 90 'Z' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x30 ; 48 '0' .db #0x03 ; 3 .db #0x02 ; 2 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x02 ; 2 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x02 ; 2 .db #0x5a ; 90 'Z' .db #0x03 ; 3 .db #0x02 ; 2 .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x04 ; 4 .db #0x42 ; 66 'B' .db #0x5a ; 90 'Z' .db #0x0b ; 11 .db #0x03 ; 3 _order1: .dw _P2 .dw _P6 .dw _P10 .dw _P11 .dw _P16 .dw _P16 .dw _P16 .dw _P16 .dw _P0 _order2: .dw _P1 .dw _P7 .dw _P3 .dw _P13 .dw _P15 .dw _P17 .dw _P18 .dw _P19 .dw _P0 _order3: .dw _P0 .dw _P4 .dw _P8 .dw _P12 .dw _P8 .dw _P8 .dw _P8 .dw _P8 .dw _P0 _order4: .dw _P0 .dw _P5 .dw _P9 .dw _P14 .dw _P9 .dw _P9 .dw _P9 .dw _P9 .dw _P0 _duty_instruments: .db #0x08 ; 8 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x80 ; 128 .db #0x08 ; 8 .db #0x80 ; 128 .db #0x20 ; 32 .db #0x80 ; 128 .db #0x08 ; 8 .db #0x40 ; 64 .db #0xa0 ; 160 .db #0x80 ; 128 .db #0x08 ; 8 .db #0x40 ; 64 .db #0x30 ; 48 '0' .db #0x80 ; 128 .db #0x08 ; 8 .db #0x80 ; 128 .db #0xf0 ; 240 .db #0x80 ; 128 .db #0x08 ; 8 .db #0x40 ; 64 .db #0x90 ; 144 .db #0x80 ; 128 .db #0x08 ; 8 .db #0x40 ; 64 .db #0x30 ; 48 '0' .db #0x80 ; 128 .db #0x08 ; 8 .db #0x80 ; 128 .db #0xf0 ; 240 .db #0x80 ; 128 .db #0x08 ; 8 .db #0x80 ; 128 .db #0xf0 ; 240 .db #0x80 ; 128 .db #0x08 ; 8 .db #0x80 ; 128 .db #0xf0 ; 240 .db #0x80 ; 128 .db #0x08 ; 8 .db #0x80 ; 128 .db #0xf0 ; 240 .db #0x80 ; 128 .db #0x08 ; 8 .db #0x80 ; 128 .db #0xf0 ; 240 .db #0x80 ; 128 .db #0x08 ; 8 .db #0x80 ; 128 .db #0xf0 ; 240 .db #0x80 ; 128 .db #0x08 ; 8 .db #0x80 ; 128 .db #0xf0 ; 240 .db #0x80 ; 128 .db #0x08 ; 8 .db #0x80 ; 128 .db #0xf0 ; 240 .db #0x80 ; 128 _wave_instruments: .db #0x00 ; 0 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x01 ; 1 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x80 ; 128 .db #0x00 ; 0 .db #0x20 ; 32 .db #0x00 ; 0 .db #0x80 ; 128 _noise_instruments: .db #0xf0 ; 240 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0xf0 ; 240 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0xf0 ; 240 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0xa2 ; 162 .db #0x49 ; 73 'I' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0xf0 ; 240 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0xf0 ; 240 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0xf0 ; 240 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x81 ; 129 .db #0x40 ; 64 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x90 ; 144 .db #0x7e ; 126 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0xf0 ; 240 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0xf0 ; 240 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0xf0 ; 240 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0xf0 ; 240 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0xf0 ; 240 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0xf0 ; 240 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 _waves: .db #0xff ; 255 .db #0xee ; 238 .db #0xdd ; 221 .db #0xcc ; 204 .db #0xbb ; 187 .db #0xaa ; 170 .db #0x99 ; 153 .db #0x88 ; 136 .db #0x77 ; 119 'w' .db #0x66 ; 102 'f' .db #0x55 ; 85 'U' .db #0x44 ; 68 'D' .db #0x33 ; 51 '3' .db #0x22 ; 34 .db #0x11 ; 17 .db #0x00 ; 0 .db #0x8a ; 138 .db #0xce ; 206 .db #0xff ; 255 .db #0xff ; 255 .db #0xff ; 255 .db #0xff ; 255 .db #0xfe ; 254 .db #0xca ; 202 .db #0x85 ; 133 .db #0x31 ; 49 '1' .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x00 ; 0 .db #0x01 ; 1 .db #0x35 ; 53 '5' .db #0xb0 ; 176 .db #0x9a ; 154 .db #0x90 ; 144 .db #0x93 ; 147 .db #0x5d ; 93 .db #0x72 ; 114 'r' .db #0x74 ; 116 't' .db #0x85 ; 133 .db #0x44 ; 68 'D' .db #0x59 ; 89 'Y' .db #0x92 ; 146 .db #0x19 ; 25 .db #0x55 ; 85 'U' .db #0xe1 ; 225 .db #0xb4 ; 180 .db #0x02 ; 2 .db #0x3b ; 59 .db #0x2d ; 45 .db #0x0a ; 10 .db #0xd1 ; 209 .db #0x33 ; 51 '3' .db #0x3e ; 62 .db #0x5a ; 90 'Z' .db #0x09 ; 9 .db #0x71 ; 113 'q' .db #0x3c ; 60 .db #0x80 ; 128 .db #0x00 ; 0 .db #0xe7 ; 231 .db #0x4b ; 75 'K' .db #0x02 ; 2 .db #0x01 ; 1 .db #0x6b ; 107 'k' .db #0xea ; 234 .db #0x7e ; 126 .db #0xdc ; 220 .db #0x07 ; 7 .db #0xcc ; 204 .db #0x99 ; 153 .db #0x5d ; 93 .db #0xd0 ; 208 .db #0x62 ; 98 'b' .db #0x3a ; 58 .db #0xc2 ; 194 .db #0x81 ; 129 .db #0x7a ; 122 'z' .db #0x38 ; 56 '8' .db #0x35 ; 53 '5' .db #0x46 ; 70 'F' .db #0xe9 ; 233 .db #0x52 ; 82 'R' .db #0x6e ; 110 'n' .db #0x58 ; 88 'X' .db #0xc7 ; 199 .db #0x03 ; 3 .db #0x06 ; 6 .db #0xa5 ; 165 .db #0x4e ; 78 'N' .db #0x96 ; 150 .db #0x3d ; 61 .db #0x0c ; 12 .db #0x7b ; 123 .db #0x25 ; 37 .db #0x5a ; 90 'Z' .db #0x7e ; 126 .db #0xa1 ; 161 .db #0x01 ; 1 .db #0x99 ; 153 .db #0x8d ; 141 .db #0x81 ; 129 .db #0x4a ; 74 'J' .db #0x8c ; 140 .db #0x3d ; 61 .db #0x45 ; 69 'E' .db #0xd5 ; 213 .db #0x9a ; 154 .db #0x20 ; 32 .db #0x84 ; 132 .db #0x73 ; 115 's' .db #0x3e ; 62 .db #0x38 ; 56 '8' .db #0x10 ; 16 .db #0x1e ; 30 .db #0x92 ; 146 .db #0x92 ; 146 .db #0xb7 ; 183 .db #0xe3 ; 227 .db #0xc7 ; 199 .db #0xe0 ; 224 .db #0x5e ; 94 .db #0x99 ; 153 .db #0x33 ; 51 '3' .db #0xd1 ; 209 .db #0x3b ; 59 .db #0xeb ; 235 .db #0x51 ; 81 'Q' .db #0x26 ; 38 .db #0x4b ; 75 'K' .db #0x1c ; 28 .db #0x68 ; 104 'h' .db #0xb8 ; 184 .db #0xda ; 218 .db #0xe4 ; 228 .db #0xc5 ; 197 .db #0x71 ; 113 'q' .db #0x80 ; 128 .db #0x0c ; 12 .db #0xee ; 238 .db #0x37 ; 55 '7' .db #0x8a ; 138 .db #0xe3 ; 227 .db #0x77 ; 119 'w' .db #0x35 ; 53 '5' .db #0x62 ; 98 'b' .db #0x3b ; 59 .db #0xa7 ; 167 .db #0xaa ; 170 .db #0x0c ; 12 .db #0x68 ; 104 'h' .db #0x49 ; 73 'I' .db #0x6e ; 110 'n' .db #0xd2 ; 210 .db #0x82 ; 130 .db #0x1c ; 28 .db #0x47 ; 71 'G' .db #0x9a ; 154 .db #0x37 ; 55 '7' .db #0x21 ; 33 .db #0x66 ; 102 'f' .db #0x8a ; 138 .db #0xea ; 234 .db #0xab ; 171 .db #0x6b ; 107 'k' .db #0x76 ; 118 'v' .db #0x6d ; 109 'm' .db #0xb9 ; 185 .db #0xd9 ; 217 .db #0x74 ; 116 't' .db #0x2b ; 43 .db #0x12 ; 18 .db #0x12 ; 18 .db #0xa1 ; 161 .db #0x2b ; 43 .db #0xb1 ; 177 .db #0x10 ; 16 .db #0x25 ; 37 .db #0x9d ; 157 .db #0x94 ; 148 .db #0xe3 ; 227 .db #0x8c ; 140 .db #0x36 ; 54 '6' .db #0xaa ; 170 .db #0x8a ; 138 .db #0x7b ; 123 .db #0xe3 ; 227 .db #0x83 ; 131 .db #0x39 ; 57 '9' .db #0xe5 ; 229 .db #0x70 ; 112 'p' .db #0x35 ; 53 '5' .db #0xb7 ; 183 .db #0x76 ; 118 'v' .db #0x52 ; 82 'R' .db #0x69 ; 105 'i' .db #0xea ; 234 .db #0x7e ; 126 .db #0xb5 ; 181 .db #0x62 ; 98 'b' .db #0x97 ; 151 .db #0x99 ; 153 .db #0xb5 ; 181 .db #0xc8 ; 200 .db #0xb7 ; 183 .db #0x80 ; 128 .db #0xce ; 206 .db #0x32 ; 50 '2' .db #0x29 ; 41 .db #0x3d ; 61 .db #0xa1 ; 161 .db #0x6e ; 110 'n' .db #0xb2 ; 178 .db #0x69 ; 105 'i' .db #0xe2 ; 226 .db #0x5e ; 94 .db #0x66 ; 102 'f' .db #0x8a ; 138 .db #0x91 ; 145 .db #0xee ; 238 .db #0x2a ; 42 .db #0xde ; 222 .db #0x2a ; 42 .db #0x9a ; 154 .db #0x62 ; 98 'b' .db #0xe3 ; 227 .db #0x78 ; 120 'x' .db #0xc2 ; 194 .db #0x14 ; 20 .db #0x49 ; 73 'I' .db #0xba ; 186 .db #0xa4 ; 164 .db #0xdc ; 220 .db #0x8b ; 139 .db #0xbc ; 188 .db #0x02 ; 2 .db #0x7a ; 122 'z' .db #0x32 ; 50 '2' .db #0xd1 ; 209 .db #0x08 ; 8 .db #0xb5 ; 181 .db #0xe3 ; 227 .db #0x4d ; 77 'M' .db #0x4d ; 77 'M' .db #0xb1 ; 177 .db #0x68 ; 104 'h' .db #0x6b ; 107 'k' .db #0x2a ; 42 .db #0xb1 ; 177 .db #0xb2 ; 178 .db #0x3b ; 59 .db #0xb1 ; 177 .db #0x2b ; 43 .db #0x6a ; 106 'j' .db #0xb1 ; 177 .db #0x99 ; 153 ___bank_music_track_101__Data = 0x00ff _music_track_101__Data: .db #0x07 ; 7 .dw _order_cnt .dw _order1 .dw _order2 .dw _order3 .dw _order4 .dw _duty_instruments .dw _wave_instruments .dw _noise_instruments .dw #0x0000 .dw _waves .area _INITIALIZER .area _CABS (ABS)
programs/bubbleSort.asm
bogas04/asm8085
1
169470
<reponame>bogas04/asm8085 LXI H,5000 ;Set pointer for array MOV C,M ;Load the Count DCR C ;Decrement Count REPEAT: MOV D,C LXI H,5001 LOOP: MOV A,M ;copy content of memory location to Accumulator INX H CMP M JC SKIP ;jump to skip if carry generated MOV B,M ;copy content of memory location to B - Register MOV M,A ;copy content of Accumulator to memory location DCX H ;Decrement content of HL pair of registers MOV M,B ;copy content of B - Register to memory location INX H ;Increment content of HL pair of registers SKIP: DCR D ;Decrement content of Register - D JNZ LOOP ;jump to loop if not equal to zero DCR C ;Decrement count JNZ REPEAT ;jump to repeat if not equal to zero HLT ;Terminate Program
bin/Alloy/models/cloudnet/LocationGraphs.als
ORANGE-XFM/Cloudnet-TOSCA-toolbox
21
3551
/****************************************************************************** * * Software Name : Cloudnet TOSCA toolbox * Version: 1.0 * SPDX-FileCopyrightText: Copyright (c) 2020 Orange * SPDX-License-Identifier: Apache-2.0 * * This software is distributed under the Apache License 2.0 * the text of which is available at http://www.apache.org/licenses/LICENSE-2.0 * or see the "LICENSE-2.0.txt" file for more details. * * Authors: * - <NAME> (INRIA) <<EMAIL>> * - <NAME> (INRIA) <<EMAIL>> * * A formal specification of Location Graphs in Alloy. * *******************************************************************************/ module LocationGraphs /******************************************************************************* * Location graphs: elements ******************************************************************************/ sig LocationGraph { locations : set Location } sig Location { name : one Name, process : one Process, sort : one Sort, provided : set Role, required : set Role } { no ( provided & required ) } // In a location, provided roles and required roles are disjoint. sig Value {} sig Name extends Value {} sig Role extends Value {} sig Process extends Value { patoms : set Name + Role } sig Sort extends Value { satoms : set Name + Role } one sig Null extends LocationGraph {} fact NullHasNoLocations { no Null.locations } /******************************************************************************* * Location graphs: static semantics ******************************************************************************/ /** Locations in a location graph are uniquely named. */ pred UniquelyNamedLocations[c : set Location] { no disj c1, c2 : c | c1.name = c2.name } /** A role is provided by a single location. */ pred UniquelyProvidedRoles[c : set Location] { no disj l, h : c | some l.provided & h.provided } /** A role is required by a single location. */ pred UniquelyRequiredRoles[c : set Location] { no disj l, h : c | some l.required & h.required } /** Well-formedness for location graphs */ pred WellFormedLocationSet[c : set Location] { UniquelyNamedLocations[c] and UniquelyProvidedRoles[c] and UniquelyRequiredRoles[c] } pred WellFormedLocationGraph[g: LocationGraph] { WellFormedLocationSet[g.locations] } /** Axiom for Location Graphs */ fact All_LocationGraph_Are_Well_Formed { all g: LocationGraph | WellFormedLocationGraph[g] } /******************************************************************************* * Some checks. ******************************************************************************/ /** Model means that there exist some well-formed location graphs. */ pred Model { some g: LocationGraph | #(g.locations) > 2 and #(g.locations.required) > 2 and #(g.locations.provided) > 3 } run Model for 10 /** In a well-formed location set, a role is provided and required by two distinct locations. */ assert RoleIsProvidedAndRequiredByTwoDistinctLocations { all lg : set Location, r : Role, l, h : Location | WellFormedLocationSet[lg] implies l in lg and h in lg and r in l.provided and r in h.required implies l != h } check RoleIsProvidedAndRequiredByTwoDistinctLocations for 40 expect 0 /** In a well-formed location set, a role binds at most two distinct locations. */ assert ARoleBindsAtMostTwoLocations { all lg : set Location, r : Role | WellFormedLocationSet[lg] implies all ls : set lg | (all h : ls | r in h.required + h.provided) implies #ls < 3 } check ARoleBindsAtMostTwoLocations for 40 expect 0
.emacs.d/elpa/wisi-3.1.3/wisitoken-generate-packrat.adb
caqg/linux-home
0
425
-- Abstract : -- -- See spec. -- -- Copyright (C) 2018 Free Software Foundation, Inc. -- -- This library 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 3, or (at your option) any later -- version. This library is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- As a special exception under Section 7 of GPL version 3, you are granted -- additional permissions described in the GCC Runtime Library Exception, -- version 3.1, as published by the Free Software Foundation. pragma License (Modified_GPL); package body WisiToken.Generate.Packrat is function Potential_Direct_Right_Recursive (Grammar : in WisiToken.Productions.Prod_Arrays.Vector; Empty : in Token_ID_Set) return Token_ID_Set is subtype Nonterminal is Token_ID range Grammar.First_Index .. Grammar.Last_Index; begin return Result : Token_ID_Set (Nonterminal) := (others => False) do for Prod of Grammar loop RHS_Loop : for RHS of Prod.RHSs loop ID_Loop : for I in reverse RHS.Tokens.First_Index + 1 .. RHS.Tokens.Last_Index loop declare ID : constant Token_ID := RHS.Tokens (I); begin if ID = Prod.LHS then Result (ID) := True; exit RHS_Loop; elsif not (ID in Nonterminal) then exit ID_Loop; elsif not Empty (ID) then exit ID_Loop; end if; end; end loop ID_Loop; end loop RHS_Loop; end loop; end return; end Potential_Direct_Right_Recursive; procedure Indirect_Left_Recursive (Data : in out Packrat.Data) is begin for Prod_I of Data.Grammar loop for Prod_J of Data.Grammar loop Data.Involved (Prod_I.LHS, Prod_J.LHS) := Data.First (Prod_I.LHS, Prod_J.LHS) and Data.First (Prod_J.LHS, Prod_I.LHS); end loop; end loop; end Indirect_Left_Recursive; ---------- -- Public subprograms function Initialize (Source_File_Name : in String; Grammar : in WisiToken.Productions.Prod_Arrays.Vector; Source_Line_Map : in Productions.Source_Line_Maps.Vector; First_Terminal : in Token_ID) return Packrat.Data is Empty : constant Token_ID_Set := WisiToken.Generate.Has_Empty_Production (Grammar); begin return Result : Packrat.Data := (First_Terminal => First_Terminal, First_Nonterminal => Grammar.First_Index, Last_Nonterminal => Grammar.Last_Index, Source_File_Name => +Source_File_Name, Grammar => Grammar, Source_Line_Map => Source_Line_Map, Empty => Empty, Direct_Left_Recursive => Potential_Direct_Left_Recursive (Grammar, Empty), First => WisiToken.Generate.First (Grammar, Empty, First_Terminal => First_Terminal), Involved => (others => (others => False))) do Indirect_Left_Recursive (Result); end return; end Initialize; procedure Check_Recursion (Data : in Packrat.Data; Descriptor : in WisiToken.Descriptor) is Right_Recursive : constant Token_ID_Set := Potential_Direct_Right_Recursive (Data.Grammar, Data.Empty); begin for Prod of Data.Grammar loop if Data.Direct_Left_Recursive (Prod.LHS) and Right_Recursive (Prod.LHS) then -- We only implement the simplest left recursion solution ([warth -- 2008] figure 3); [tratt 2010] section 6.3 gives this condition for -- that to be valid. -- FIXME: not quite? definite direct right recursive ok? -- FIXME: for indirect left recursion, need potential indirect right recursive check? Put_Error (Error_Message (-Data.Source_File_Name, Data.Source_Line_Map (Prod.LHS).Line, "'" & Image (Prod.LHS, Descriptor) & "' is both left and right recursive; not supported.")); end if; for I in Data.Involved'Range (2) loop if Prod.LHS /= I and then Data.Involved (Prod.LHS, I) then Put_Error (Error_Message (-Data.Source_File_Name, Data.Source_Line_Map (Prod.LHS).Line, "'" & Image (Prod.LHS, Descriptor) & "' is indirect recursive with " & Image (I, Descriptor) & ", not supported")); end if; end loop; end loop; end Check_Recursion; procedure Check_RHS_Order (Data : in Packrat.Data; Descriptor : in WisiToken.Descriptor) is use all type Ada.Containers.Count_Type; begin for Prod of Data.Grammar loop -- Empty must be last for I in Prod.RHSs.First_Index .. Prod.RHSs.Last_Index - 1 loop if Prod.RHSs (I).Tokens.Length = 0 then Put_Error (Error_Message (-Data.Source_File_Name, Data.Source_Line_Map (Prod.LHS).RHS_Map (I), "right hand side" & Integer'Image (I) & " in " & Image (Prod.LHS, Descriptor) & " is empty, but not last; no later right hand side will match.")); WisiToken.Generate.Error := True; end if; end loop; for I in Prod.RHSs.First_Index + 1 .. Prod.RHSs.Last_Index loop declare Cur : Token_ID_Arrays.Vector renames Prod.RHSs (I).Tokens; begin -- Shared prefix; longer must be first for J in Prod.RHSs.First_Index .. I - 1 loop declare Prev : Token_ID_Arrays.Vector renames Prod.RHSs (J).Tokens; K : constant Natural := Shared_Prefix (Prev, Cur); begin if K > 0 and Prev.Length < Cur.Length then Put_Error (Error_Message (-Data.Source_File_Name, Data.Source_Line_Map (Prod.LHS).RHS_Map (I), "right hand side" & Integer'Image (I) & " in " & Image (Prod.LHS, Descriptor) & " may never match; it shares a prefix with a shorter previous rhs" & Integer'Image (J) & ".")); end if; end; end loop; -- recursion; typical LALR list is written: -- -- statement_list -- : statement -- | statement_list statement -- ; -- association_list -- : association -- | association_list COMMA association -- ; -- -- a different recursive definition: -- -- name -- : IDENTIFIER -- | name LEFT_PAREN range_list RIGHT_PAREN -- | name actual_parameter_part -- ... -- ; -- -- For packrat, the recursive RHSs must come before others: -- -- statement_list -- : statement_list statement -- | statement -- ; -- association_list -- : association_list COMMA association -- | association -- ; -- name -- : name LEFT_PAREN range_list RIGHT_PAREN -- | name actual_parameter_part -- | IDENTIFIER -- ... -- ; declare Prev : Token_ID_Arrays.Vector renames Prod.RHSs (I - 1).Tokens; begin if Cur.Length > 0 and then Prev.Length > 0 and then Cur (1) = Prod.LHS and then Prev (1) /= Prod.LHS then Put_Error (Error_Message (-Data.Source_File_Name, Data.Source_Line_Map (Prod.LHS).Line, "recursive right hand sides must be before others.")); end if; end; end; end loop; end loop; end Check_RHS_Order; procedure Check_All (Data : in Packrat.Data; Descriptor : in WisiToken.Descriptor) is begin Check_Recursion (Data, Descriptor); Check_RHS_Order (Data, Descriptor); end Check_All; function Potential_Direct_Left_Recursive (Grammar : in WisiToken.Productions.Prod_Arrays.Vector; Empty : in Token_ID_Set) return Token_ID_Set is subtype Nonterminal is Token_ID range Grammar.First_Index .. Grammar.Last_Index; begin -- FIXME: this duplicates the computation of First; if keep First, -- change this to use it. return Result : Token_ID_Set (Nonterminal) := (others => False) do for Prod of Grammar loop RHS_Loop : for RHS of Prod.RHSs loop ID_Loop : for ID of RHS.Tokens loop if ID = Prod.LHS then Result (ID) := True; exit RHS_Loop; elsif not (ID in Nonterminal) then exit ID_Loop; elsif not Empty (ID) then exit ID_Loop; end if; end loop ID_Loop; end loop RHS_Loop; end loop; end return; end Potential_Direct_Left_Recursive; end WisiToken.Generate.Packrat;
sbsext/ut/lfloat.asm
olifink/smsqe
0
161719
* Float a long word in D1 onto the RI stack V0.2  1984 <NAME> QJUMP * assumes enough space already there * section utils * xdef ut_lfla1 xdef ut_lfloat xdef ut_rnorm * include dev8_sbsext_ext_keys * ut_lfla1 move.l bv_rip(a6),a1 set A1 to RI stack pointer * ut_lfloat subq.l #6,a1 put clr.w (a6,a1.l) zero exponent on tst.l d1 beq.s lfl_mant ... and zero mantissa move.w #$0820,d2 and set unnormalised exponent (+1) lfl_norm subq.w #1,d2 reduce exponent ut_rnorm asl.l #1,d1 and multiply mantissa by 2 bvc.s lfl_norm if not overflowed yet, try again roxr.l #1,d1 restore mantissa to non overflowed move.w d2,(a6,a1.l) put actual exponent on ri stack lfl_mant move.l d1,2(a6,a1.l) and mantissa rts end
src/compiling/ANTLR/grammar/BlockItemDeclarations.g4
jecassis/VSCode-SystemVerilog
75
7076
grammar BlockItemDeclarations; import InterfaceDeclarations; block_item_declaration : ( attribute_instance )* data_declaration | ( attribute_instance )* local_parameter_declaration ';' | ( attribute_instance )* parameter_declaration ';' | ( attribute_instance )* let_declaration ;
test/asset/agda-stdlib-1.0/Data/Nat/WithK.agda
omega12345/agda-mode
5
14881
------------------------------------------------------------------------ -- The Agda standard library -- -- Natural number types and operations requiring the axiom K. ------------------------------------------------------------------------ {-# OPTIONS --with-K --safe #-} module Data.Nat.WithK where open import Data.Nat.Base open import Relation.Binary.PropositionalEquality.WithK ≤″-erase : ∀ {m n} → m ≤″ n → m ≤″ n ≤″-erase (less-than-or-equal eq) = less-than-or-equal (≡-erase eq) ------------------------------------------------------------------------ -- DEPRECATED NAMES ------------------------------------------------------------------------ -- Please use the new names as continuing support for the old names is -- not guaranteed. -- Version 0.18 erase = ≤″-erase {-# WARNING_ON_USAGE erase "Warning: erase was deprecated in v0.18. Please use ≤″-erase instead." #-}
Task/Topological-sort/Ada/topological-sort-5.ada
LaudateCorpus1/RosettaCodeData
1
26824
with Ada.Text_IO, Digraphs, Set_Of_Names, Ada.Command_Line; procedure Toposort is -- shortcuts for package names, intantiation of generic package package TIO renames Ada.Text_IO; package DG renames Digraphs; package SN is new Set_Of_Names(DG.Node_Idx_With_Null); -- reat the graph from the file with the given Filename procedure Read(Filename: String; G: out DG.Graph_Type; N: out SN.Set) is -- finds the first word in S(Start .. S'Last), delimited by spaces procedure Find_Token(S: String; Start: Positive; First: out Positive; Last: out Natural) is begin First := Start; while First <= S'Last and then S(First)= ' ' loop First := First + 1; end loop; Last := First-1; while Last < S'Last and then S(Last+1) /= ' ' loop Last := Last + 1; end loop; end Find_Token; File: TIO.File_Type; begin TIO.Open(File, TIO.In_File, Filename); TIO.Skip_Line(File, 2); -- the first two lines contain header and "===...===" while not TIO.End_Of_File(File) loop declare Line: String := TIO.Get_Line(File); First: Positive; Last: Natural; To, From: DG.Node_Index; begin Find_Token(Line, Line'First, First, Last); if Last >= First then N.Add(Line(First .. Last), From); G.Add_Node(From); loop Find_Token(Line, Last+1, First, Last); exit when Last < First; N.Add(Line(First .. Last), To); G.Add_Connection(From, To); end loop; end if; end; end loop; TIO.Close(File); end Read; Graph: DG.Graph_Type; Names: SN.Set; begin Read(Ada.Command_Line.Argument(1), Graph, Names); -- eliminat self-cycles for Start in 1 .. Graph.Node_Count loop Graph.Del_Connection(Start, Start); end loop; -- perform the topological sort and output the result declare Result: DG.Node_Vec.Vector; begin Result := Graph.Top_Sort; for Index in Result.First_Index .. Result.Last_Index loop TIO.Put(Names.Name(Result.Element(Index))); if Index < Result.Last_Index then TIO.Put(" -> "); end if; end loop; TIO.New_Line; exception when DG.Graph_Is_Cyclic => TIO.Put_Line("There is no topological sorting -- the Graph is cyclic!"); end; end Toposort;
test/interaction/Issue5252.agda
cagix/agda
1,989
11554
open import Agda.Primitive open import Agda.Builtin.Sigma data Empty : Set where _≃_ : ∀ {ℓ ℓ'} (A : Set ℓ) (B : Set ℓ') → Set (ℓ ⊔ ℓ') A ≃ B = Σ (A → B) λ f → Empty record Iso {ℓ ℓ'} (A : Set ℓ) (B : Set ℓ') : Set (ℓ ⊔ ℓ') where field inv : B → A postulate isoToEquiv : ∀{ℓ ℓ'} {A : Set ℓ} {B : Set ℓ'} → Iso A B → A ≃ B works : Iso (∀ {a : Set} → a) Empty works = λ where .Iso.inv n → {!n!} -- something like (∀ {A : Set} → A) seems to be necessary to trigger test : (∀ {A : Set} → A) ≃ Empty test = isoToEquiv λ where .Iso.inv n → {!n!}
thirdparty/adasdl/thin/adasdl/AdaSDL-from-glut/book/genericgl.adb
Lucretia/old_nehe_ada95
0
18709
-- ----------------------------------------------------- -- Copyright (C) by: -- <NAME> - <NAME> - Azores - Portugal -- <EMAIL> -- www.adapower.net/~avargas -- ----------------------------------------------------- -- This program is in the public domain -- ----------------------------------------------------- -- Command line options: -- -info Print GL implementation information -- (this is the original option). -- -slow To slow down velocity under acelerated -- hardware. -- -window GUI window. Fullscreen is the default. -- -nosound To play without sound. -- -800x600 To create a video display of 800 by 600 -- the default mode is 640x480 -- -1024x768 To create a video display of 1024 by 768 -- ----------------------------------------------------- with Interfaces.C; with Ada.Numerics.Generic_Elementary_Functions; with Ada.Command_Line; with Ada.Text_IO; use Ada.Text_IO; with GNAT.OS_Lib; with SDL.Video; with SDL.Error; with SDL.Events; with SDL.Keyboard; with SDL.Keysym; with SDL.Types; use SDL.Types; with gl_h; use gl_h; with AdaGL; use AdaGL; procedure GenericGL is package CL renames Ada.Command_Line; package C renames Interfaces.C; use type C.unsigned; use type C.int; use type SDL.Init_Flags; package Vd renames SDL.Video; use type Vd.Surface_ptr; use type Vd.Surface_Flags; package Er renames SDL.Error; package Ev renames SDL.Events; package Kb renames SDL.Keyboard; package Ks renames SDL.Keysym; use type Ks.SDLMod; -- =================================================================== procedure init (info : Boolean) is begin null; end init; -- =================================================================== procedure draw is begin glClear (GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT); glPushMatrix; -- ... glPopMatrix; Vd.GL_SwapBuffers; end draw; -- =================================================================== procedure idle is begin null; end idle; -- =================================================================== -- New window size of exposure procedure reshape (width : C.int; height : C.int) is h : GLdouble := GLdouble (height) / GLdouble (width); begin glViewport (0, 0, GLint (width), GLint (height)); glMatrixMode (GL_PROJECTION); glLoadIdentity; glFrustum (-1.0, 1.0, -h, h, 5.0, 60.0); glMatrixMode (GL_MODELVIEW); glLoadIdentity; glTranslatef (0.0, 0.0, -40.0); end reshape; -- =================================================================== screen : Vd.Surface_ptr; done : Boolean; keys : Uint8_ptr; Screen_Width : C.int := 640; Screen_Hight : C.int := 480; Slowly : Boolean := False; Info : Boolean := False; Full_Screen : Boolean := True; argc : Integer := CL.Argument_Count; Video_Flags : Vd.Surface_Flags := 0; Initialization_Flags : SDL.Init_Flags := 0; -- =================================================================== procedure Manage_Command_Line is begin while argc > 0 loop if (argc >= 1) and then CL.Argument (argc) = "-slow" then Slowly := True; argc := argc - 1; elsif CL.Argument (argc) = "-window" then Full_Screen := False; argc := argc - 1; elsif CL.Argument (argc) = "-1024x768" then Screen_Width := 1024; Screen_Hight := 768; argc := argc - 1; elsif CL.Argument (argc) = "-800x600" then Screen_Width := 800; Screen_Hight := 600; argc := argc - 1; elsif CL.Argument (argc) = "-info" then Info := True; argc := argc - 1; else Put_Line ("Usage: " & CL.Command_Name & " " & "[-slow] [-window] [-h] [[-800x600] | [-1024x768]]"); argc := argc - 1; GNAT.OS_Lib.OS_Exit (0); end if; end loop; end Manage_Command_Line; -- =================================================================== procedure Main_System_Loop is begin while not done loop declare event : Ev.Event; PollEvent_Result : C.int; begin idle; loop Ev.PollEventVP (PollEvent_Result, event); exit when PollEvent_Result = 0; case event.the_type is when Ev.VIDEORESIZE => screen := Vd.SetVideoMode ( event.resize.w, event.resize.h, 16, Vd.OPENGL or Vd.RESIZABLE); if screen /= null then reshape (screen.w, screen.h); else -- Couldn't set the new video mode null; end if; when Ev.QUIT => done := True; when others => null; end case; end loop; keys := Kb.GetKeyState (null); if Kb.Is_Key_Pressed (keys, Ks.K_ESCAPE) then done := True; end if; draw; end; -- declare end loop; end Main_System_Loop; -- =================================================================== -- Gears Procedure body -- =================================================================== begin Manage_Command_Line; Initialization_Flags := SDL.INIT_VIDEO; if SDL.Init (Initialization_Flags) < 0 then Put_Line ("Couldn't load SDL: " & Er.Get_Error); GNAT.OS_Lib.OS_Exit (1); end if; Video_Flags := Vd.OPENGL or Vd.RESIZABLE; if Full_Screen then Video_Flags := Video_Flags or Vd.FULLSCREEN; end if; screen := Vd.SetVideoMode (Screen_Width, Screen_Hight, 16, Video_Flags); if screen = null then Put_Line ("Couldn't set " & C.int'Image (Screen_Width) & "x" & C.int'Image (Screen_Hight) & " GL video mode: " & Er.Get_Error); SDL.SDL_Quit; GNAT.OS_Lib.OS_Exit (2); end if; Vd.WM_Set_Caption ("Generic GL", "Generic"); init (Info); reshape (screen.w, screen.h); done := False; Main_System_Loop; SDL.SDL_Quit; end GenericGL;
agda-stdlib-0.9/src/Relation/Binary/Simple.agda
qwe2/try-agda
1
6337
<filename>agda-stdlib-0.9/src/Relation/Binary/Simple.agda ------------------------------------------------------------------------ -- The Agda standard library -- -- Some simple binary relations ------------------------------------------------------------------------ module Relation.Binary.Simple where open import Relation.Binary open import Data.Unit open import Data.Empty open import Level -- Constant relations. Const : ∀ {a b c} {A : Set a} {B : Set b} → Set c → REL A B c Const I = λ _ _ → I -- The universally true relation. Always : ∀ {a ℓ} {A : Set a} → Rel A ℓ Always = Const (Lift ⊤) Always-setoid : ∀ {a ℓ} (A : Set a) → Setoid a ℓ Always-setoid A = record { Carrier = A ; _≈_ = Always ; isEquivalence = record {} } -- The universally false relation. Never : ∀ {a ℓ} {A : Set a} → Rel A ℓ Never = Const (Lift ⊥)
etude/etude26.als
nishio/learning_alloy
1
1669
// 誤信念課題 open util/ordering[Time] sig Time {} abstract sig Belief {} // アイスクリーム屋はどこにいる? abstract sig InWhere extends Belief {} one sig InPark extends InWhere {} one sig InStation extends InWhere {} abstract sig Person { belief: Belief -> Time, others_belief: Person -> Belief -> Time } one sig Alice extends Person {} one sig Bob extends Person {} // 最初はみんな何も信念がない pred init(t: Time){ all p: Person { no p.belief.t no p.others_belief.t } } pred step(now, prev: Time, b: InWhere, targets: Person){ all p: Person { (p in targets) => { p.belief.now = p.belief.prev - InWhere + b p.others_belief.now = ( p.others_belief.prev ++ ((targets - p) -> b) ) }else{ p.belief.now = p.belief.prev p.others_belief.now = p.others_belief.prev } } } run { some times: seq Time{ #times = 4 all i: times.butlast.inds { times[i].next = times[plus[i, 1]] } init[times[0]] step[times[1], times[0], InPark, Alice + Bob] step[times[2], times[1], InStation, Alice] step[times[3], times[2], InStation, Bob] } } for 4 Time
examples/outdated-and-incorrect/Alonzo/Point.agda
shlevy/agda
1,989
15501
<reponame>shlevy/agda module Point where open import Nat open import Bool -- A record can be seen as a one constructor datatype. In this case: data Point' : Set where mkPoint : (x : Nat)(y : Nat) -> Point' getX : Point' -> Nat getX (mkPoint x y) = x getY : Point' -> Nat getY (mkPoint x y) = y
source/textio/a-teiote.adb
ytomino/drake
33
25626
<reponame>ytomino/drake<filename>source/textio/a-teiote.adb with Ada.Naked_Text_IO; package body Ada.Text_IO.Terminal is use type IO_Modes.File_Mode; use type IO_Modes.File_External; -- implementation function Is_Terminal ( File : File_Type) return Boolean is pragma Check (Dynamic_Predicate, Check => Is_Open (File) or else raise Status_Error); NC_File : Naked_Text_IO.Non_Controlled_File_Type renames Controlled.Reference (File).all; begin return Naked_Text_IO.External (NC_File) = IO_Modes.Terminal; end Is_Terminal; procedure Set_Size ( File : File_Type; Size : Size_Type) is begin Set_Size ( File, -- checking the predicate Size.Line_Length, Size.Page_Length); end Set_Size; procedure Set_Size ( File : File_Type; Line_Length, Page_Length : Count) is pragma Check (Dynamic_Predicate, Check => Is_Open (File) or else raise Status_Error); pragma Check (Dynamic_Predicate, Check => Mode (File) /= In_File or else raise Mode_Error); NC_File : Naked_Text_IO.Non_Controlled_File_Type renames Controlled.Reference (File).all; begin System.Native_Text_IO.Set_Terminal_Size ( Naked_Text_IO.Terminal_Handle (NC_File), Integer (Line_Length), Integer (Page_Length)); end Set_Size; function Size ( File : File_Type) return Size_Type is begin return Result : Size_Type do Size ( File, -- checking the predicate Result.Line_Length, Result.Page_Length); end return; end Size; procedure Size ( File : File_Type; Line_Length, Page_Length : out Count) is pragma Check (Dynamic_Predicate, Check => Is_Open (File) or else raise Status_Error); pragma Check (Dynamic_Predicate, Check => Mode (File) /= In_File or else raise Mode_Error); NC_File : Naked_Text_IO.Non_Controlled_File_Type renames Controlled.Reference (File).all; begin System.Native_Text_IO.Terminal_Size ( Naked_Text_IO.Terminal_Handle (NC_File), Natural'Base (Line_Length), Natural'Base (Page_Length)); end Size; function View ( File : File_Type) return View_Type is begin return Result : View_Type do View ( File, -- checking the predicate Result.Left, Result.Top, Result.Right, Result.Bottom); end return; end View; procedure View ( File : File_Type; Left, Top : out Positive_Count; Right, Bottom : out Count) is pragma Check (Dynamic_Predicate, Check => Is_Open (File) or else raise Status_Error); pragma Check (Dynamic_Predicate, Check => Mode (File) /= In_File or else raise Mode_Error); NC_File : Naked_Text_IO.Non_Controlled_File_Type renames Controlled.Reference (File).all; begin System.Native_Text_IO.Terminal_View ( Naked_Text_IO.Terminal_Handle (NC_File), Positive'Base (Left), Positive'Base (Top), Natural'Base (Right), Natural'Base (Bottom)); end View; procedure Set_Position ( File : File_Type; Position : Position_Type) is begin Set_Position ( File, -- checking the predicate Position.Col, Position.Line); end Set_Position; procedure Set_Position ( File : File_Type; Col, Line : Positive_Count) is pragma Check (Dynamic_Predicate, Check => Is_Open (File) or else raise Status_Error); pragma Check (Dynamic_Predicate, Check => Mode (File) /= In_File or else raise Mode_Error); NC_File : Naked_Text_IO.Non_Controlled_File_Type renames Controlled.Reference (File).all; begin System.Native_Text_IO.Set_Terminal_Position ( Naked_Text_IO.Terminal_Handle (NC_File), Integer (Col), Integer (Line)); end Set_Position; procedure Set_Col ( File : File_Type; To : Positive_Count) is pragma Check (Dynamic_Predicate, Check => Is_Open (File) or else raise Status_Error); pragma Check (Dynamic_Predicate, Check => Mode (File) /= In_File or else raise Mode_Error); NC_File : Naked_Text_IO.Non_Controlled_File_Type renames Controlled.Reference (File).all; begin System.Native_Text_IO.Set_Terminal_Col ( Naked_Text_IO.Terminal_Handle (NC_File), Integer (To)); end Set_Col; function Position ( File : File_Type) return Position_Type is begin return Result : Position_Type do Position ( File, -- checking the predicate Result.Col, Result.Line); end return; end Position; procedure Position ( File : File_Type; Col, Line : out Positive_Count) is pragma Check (Dynamic_Predicate, Check => Is_Open (File) or else raise Status_Error); pragma Check (Dynamic_Predicate, Check => Mode (File) /= In_File or else raise Mode_Error); NC_File : Naked_Text_IO.Non_Controlled_File_Type renames Controlled.Reference (File).all; begin System.Native_Text_IO.Terminal_Position ( Naked_Text_IO.Terminal_Handle (NC_File), Positive'Base (Col), Positive'Base (Line)); end Position; procedure Save_State ( File : File_Type; To_State : out Output_State) is pragma Check (Dynamic_Predicate, Check => Is_Open (File) or else raise Status_Error); pragma Check (Dynamic_Predicate, Check => Mode (File) /= In_File or else raise Mode_Error); NC_File : Naked_Text_IO.Non_Controlled_File_Type renames Controlled.Reference (File).all; begin System.Native_Text_IO.Save_State ( Naked_Text_IO.Terminal_Handle (NC_File), System.Native_Text_IO.Output_State (To_State)); end Save_State; procedure Reset_State ( File : File_Type; From_State : Output_State) is pragma Check (Dynamic_Predicate, Check => Is_Open (File) or else raise Status_Error); pragma Check (Dynamic_Predicate, Check => Mode (File) /= In_File or else raise Mode_Error); NC_File : Naked_Text_IO.Non_Controlled_File_Type renames Controlled.Reference (File).all; begin System.Native_Text_IO.Reset_State ( Naked_Text_IO.Terminal_Handle (NC_File), System.Native_Text_IO.Output_State (From_State)); end Reset_State; end Ada.Text_IO.Terminal;
addtab.asm
gp48k/lpfp
0
94626
INCLUDE "align.asm" ; 2.25 kilobyte shift-and-round table for addition and subtraction ADDTAB: DEFB $80, $81, $81, $82, $82, $83, $83, $84 DEFB $84, $85, $85, $86, $86, $87, $87, $88 DEFB $88, $89, $89, $8a, $8a, $8b, $8b, $8c DEFB $8c, $8d, $8d, $8e, $8e, $8f, $8f, $90 DEFB $90, $91, $91, $92, $92, $93, $93, $94 DEFB $94, $95, $95, $96, $96, $97, $97, $98 DEFB $98, $99, $99, $9a, $9a, $9b, $9b, $9c DEFB $9c, $9d, $9d, $9e, $9e, $9f, $9f, $a0 DEFB $a0, $a1, $a1, $a2, $a2, $a3, $a3, $a4 DEFB $a4, $a5, $a5, $a6, $a6, $a7, $a7, $a8 DEFB $a8, $a9, $a9, $aa, $aa, $ab, $ab, $ac DEFB $ac, $ad, $ad, $ae, $ae, $af, $af, $b0 DEFB $b0, $b1, $b1, $b2, $b2, $b3, $b3, $b4 DEFB $b4, $b5, $b5, $b6, $b6, $b7, $b7, $b8 DEFB $b8, $b9, $b9, $ba, $ba, $bb, $bb, $bc DEFB $bc, $bd, $bd, $be, $be, $bf, $bf, $c0 DEFB $c0, $c1, $c1, $c2, $c2, $c3, $c3, $c4 DEFB $c4, $c5, $c5, $c6, $c6, $c7, $c7, $c8 DEFB $c8, $c9, $c9, $ca, $ca, $cb, $cb, $cc DEFB $cc, $cd, $cd, $ce, $ce, $cf, $cf, $d0 DEFB $d0, $d1, $d1, $d2, $d2, $d3, $d3, $d4 DEFB $d4, $d5, $d5, $d6, $d6, $d7, $d7, $d8 DEFB $d8, $d9, $d9, $da, $da, $db, $db, $dc DEFB $dc, $dd, $dd, $de, $de, $df, $df, $e0 DEFB $e0, $e1, $e1, $e2, $e2, $e3, $e3, $e4 DEFB $e4, $e5, $e5, $e6, $e6, $e7, $e7, $e8 DEFB $e8, $e9, $e9, $ea, $ea, $eb, $eb, $ec DEFB $ec, $ed, $ed, $ee, $ee, $ef, $ef, $f0 DEFB $f0, $f1, $f1, $f2, $f2, $f3, $f3, $f4 DEFB $f4, $f5, $f5, $f6, $f6, $f7, $f7, $f8 DEFB $f8, $f9, $f9, $fa, $fa, $fb, $fb, $fc DEFB $fc, $fd, $fd, $fe, $fe, $ff, $ff, $00 DEFB $40, $40, $41, $41, $41, $41, $42, $42 DEFB $42, $42, $43, $43, $43, $43, $44, $44 DEFB $44, $44, $45, $45, $45, $45, $46, $46 DEFB $46, $46, $47, $47, $47, $47, $48, $48 DEFB $48, $48, $49, $49, $49, $49, $4a, $4a DEFB $4a, $4a, $4b, $4b, $4b, $4b, $4c, $4c DEFB $4c, $4c, $4d, $4d, $4d, $4d, $4e, $4e DEFB $4e, $4e, $4f, $4f, $4f, $4f, $50, $50 DEFB $50, $50, $51, $51, $51, $51, $52, $52 DEFB $52, $52, $53, $53, $53, $53, $54, $54 DEFB $54, $54, $55, $55, $55, $55, $56, $56 DEFB $56, $56, $57, $57, $57, $57, $58, $58 DEFB $58, $58, $59, $59, $59, $59, $5a, $5a DEFB $5a, $5a, $5b, $5b, $5b, $5b, $5c, $5c DEFB $5c, $5c, $5d, $5d, $5d, $5d, $5e, $5e DEFB $5e, $5e, $5f, $5f, $5f, $5f, $60, $60 DEFB $60, $60, $61, $61, $61, $61, $62, $62 DEFB $62, $62, $63, $63, $63, $63, $64, $64 DEFB $64, $64, $65, $65, $65, $65, $66, $66 DEFB $66, $66, $67, $67, $67, $67, $68, $68 DEFB $68, $68, $69, $69, $69, $69, $6a, $6a DEFB $6a, $6a, $6b, $6b, $6b, $6b, $6c, $6c DEFB $6c, $6c, $6d, $6d, $6d, $6d, $6e, $6e DEFB $6e, $6e, $6f, $6f, $6f, $6f, $70, $70 DEFB $70, $70, $71, $71, $71, $71, $72, $72 DEFB $72, $72, $73, $73, $73, $73, $74, $74 DEFB $74, $74, $75, $75, $75, $75, $76, $76 DEFB $76, $76, $77, $77, $77, $77, $78, $78 DEFB $78, $78, $79, $79, $79, $79, $7a, $7a DEFB $7a, $7a, $7b, $7b, $7b, $7b, $7c, $7c DEFB $7c, $7c, $7d, $7d, $7d, $7d, $7e, $7e DEFB $7e, $7e, $7f, $7f, $7f, $7f, $80, $80 DEFB $20, $20, $20, $20, $21, $21, $21, $21 DEFB $21, $21, $21, $21, $22, $22, $22, $22 DEFB $22, $22, $22, $22, $23, $23, $23, $23 DEFB $23, $23, $23, $23, $24, $24, $24, $24 DEFB $24, $24, $24, $24, $25, $25, $25, $25 DEFB $25, $25, $25, $25, $26, $26, $26, $26 DEFB $26, $26, $26, $26, $27, $27, $27, $27 DEFB $27, $27, $27, $27, $28, $28, $28, $28 DEFB $28, $28, $28, $28, $29, $29, $29, $29 DEFB $29, $29, $29, $29, $2a, $2a, $2a, $2a DEFB $2a, $2a, $2a, $2a, $2b, $2b, $2b, $2b DEFB $2b, $2b, $2b, $2b, $2c, $2c, $2c, $2c DEFB $2c, $2c, $2c, $2c, $2d, $2d, $2d, $2d DEFB $2d, $2d, $2d, $2d, $2e, $2e, $2e, $2e DEFB $2e, $2e, $2e, $2e, $2f, $2f, $2f, $2f DEFB $2f, $2f, $2f, $2f, $30, $30, $30, $30 DEFB $30, $30, $30, $30, $31, $31, $31, $31 DEFB $31, $31, $31, $31, $32, $32, $32, $32 DEFB $32, $32, $32, $32, $33, $33, $33, $33 DEFB $33, $33, $33, $33, $34, $34, $34, $34 DEFB $34, $34, $34, $34, $35, $35, $35, $35 DEFB $35, $35, $35, $35, $36, $36, $36, $36 DEFB $36, $36, $36, $36, $37, $37, $37, $37 DEFB $37, $37, $37, $37, $38, $38, $38, $38 DEFB $38, $38, $38, $38, $39, $39, $39, $39 DEFB $39, $39, $39, $39, $3a, $3a, $3a, $3a DEFB $3a, $3a, $3a, $3a, $3b, $3b, $3b, $3b DEFB $3b, $3b, $3b, $3b, $3c, $3c, $3c, $3c DEFB $3c, $3c, $3c, $3c, $3d, $3d, $3d, $3d DEFB $3d, $3d, $3d, $3d, $3e, $3e, $3e, $3e DEFB $3e, $3e, $3e, $3e, $3f, $3f, $3f, $3f DEFB $3f, $3f, $3f, $3f, $40, $40, $40, $40 DEFB $10, $10, $10, $10, $10, $10, $10, $10 DEFB $11, $11, $11, $11, $11, $11, $11, $11 DEFB $11, $11, $11, $11, $11, $11, $11, $11 DEFB $12, $12, $12, $12, $12, $12, $12, $12 DEFB $12, $12, $12, $12, $12, $12, $12, $12 DEFB $13, $13, $13, $13, $13, $13, $13, $13 DEFB $13, $13, $13, $13, $13, $13, $13, $13 DEFB $14, $14, $14, $14, $14, $14, $14, $14 DEFB $14, $14, $14, $14, $14, $14, $14, $14 DEFB $15, $15, $15, $15, $15, $15, $15, $15 DEFB $15, $15, $15, $15, $15, $15, $15, $15 DEFB $16, $16, $16, $16, $16, $16, $16, $16 DEFB $16, $16, $16, $16, $16, $16, $16, $16 DEFB $17, $17, $17, $17, $17, $17, $17, $17 DEFB $17, $17, $17, $17, $17, $17, $17, $17 DEFB $18, $18, $18, $18, $18, $18, $18, $18 DEFB $18, $18, $18, $18, $18, $18, $18, $18 DEFB $19, $19, $19, $19, $19, $19, $19, $19 DEFB $19, $19, $19, $19, $19, $19, $19, $19 DEFB $1a, $1a, $1a, $1a, $1a, $1a, $1a, $1a DEFB $1a, $1a, $1a, $1a, $1a, $1a, $1a, $1a DEFB $1b, $1b, $1b, $1b, $1b, $1b, $1b, $1b DEFB $1b, $1b, $1b, $1b, $1b, $1b, $1b, $1b DEFB $1c, $1c, $1c, $1c, $1c, $1c, $1c, $1c DEFB $1c, $1c, $1c, $1c, $1c, $1c, $1c, $1c DEFB $1d, $1d, $1d, $1d, $1d, $1d, $1d, $1d DEFB $1d, $1d, $1d, $1d, $1d, $1d, $1d, $1d DEFB $1e, $1e, $1e, $1e, $1e, $1e, $1e, $1e DEFB $1e, $1e, $1e, $1e, $1e, $1e, $1e, $1e DEFB $1f, $1f, $1f, $1f, $1f, $1f, $1f, $1f DEFB $1f, $1f, $1f, $1f, $1f, $1f, $1f, $1f DEFB $20, $20, $20, $20, $20, $20, $20, $20 DEFB $08, $08, $08, $08, $08, $08, $08, $08 DEFB $08, $08, $08, $08, $08, $08, $08, $08 DEFB $09, $09, $09, $09, $09, $09, $09, $09 DEFB $09, $09, $09, $09, $09, $09, $09, $09 DEFB $09, $09, $09, $09, $09, $09, $09, $09 DEFB $09, $09, $09, $09, $09, $09, $09, $09 DEFB $0a, $0a, $0a, $0a, $0a, $0a, $0a, $0a DEFB $0a, $0a, $0a, $0a, $0a, $0a, $0a, $0a DEFB $0a, $0a, $0a, $0a, $0a, $0a, $0a, $0a DEFB $0a, $0a, $0a, $0a, $0a, $0a, $0a, $0a DEFB $0b, $0b, $0b, $0b, $0b, $0b, $0b, $0b DEFB $0b, $0b, $0b, $0b, $0b, $0b, $0b, $0b DEFB $0b, $0b, $0b, $0b, $0b, $0b, $0b, $0b DEFB $0b, $0b, $0b, $0b, $0b, $0b, $0b, $0b DEFB $0c, $0c, $0c, $0c, $0c, $0c, $0c, $0c DEFB $0c, $0c, $0c, $0c, $0c, $0c, $0c, $0c DEFB $0c, $0c, $0c, $0c, $0c, $0c, $0c, $0c DEFB $0c, $0c, $0c, $0c, $0c, $0c, $0c, $0c DEFB $0d, $0d, $0d, $0d, $0d, $0d, $0d, $0d DEFB $0d, $0d, $0d, $0d, $0d, $0d, $0d, $0d DEFB $0d, $0d, $0d, $0d, $0d, $0d, $0d, $0d DEFB $0d, $0d, $0d, $0d, $0d, $0d, $0d, $0d DEFB $0e, $0e, $0e, $0e, $0e, $0e, $0e, $0e DEFB $0e, $0e, $0e, $0e, $0e, $0e, $0e, $0e DEFB $0e, $0e, $0e, $0e, $0e, $0e, $0e, $0e DEFB $0e, $0e, $0e, $0e, $0e, $0e, $0e, $0e DEFB $0f, $0f, $0f, $0f, $0f, $0f, $0f, $0f DEFB $0f, $0f, $0f, $0f, $0f, $0f, $0f, $0f DEFB $0f, $0f, $0f, $0f, $0f, $0f, $0f, $0f DEFB $0f, $0f, $0f, $0f, $0f, $0f, $0f, $0f DEFB $10, $10, $10, $10, $10, $10, $10, $10 DEFB $10, $10, $10, $10, $10, $10, $10, $10 DEFB $04, $04, $04, $04, $04, $04, $04, $04 DEFB $04, $04, $04, $04, $04, $04, $04, $04 DEFB $04, $04, $04, $04, $04, $04, $04, $04 DEFB $04, $04, $04, $04, $04, $04, $04, $04 DEFB $05, $05, $05, $05, $05, $05, $05, $05 DEFB $05, $05, $05, $05, $05, $05, $05, $05 DEFB $05, $05, $05, $05, $05, $05, $05, $05 DEFB $05, $05, $05, $05, $05, $05, $05, $05 DEFB $05, $05, $05, $05, $05, $05, $05, $05 DEFB $05, $05, $05, $05, $05, $05, $05, $05 DEFB $05, $05, $05, $05, $05, $05, $05, $05 DEFB $05, $05, $05, $05, $05, $05, $05, $05 DEFB $06, $06, $06, $06, $06, $06, $06, $06 DEFB $06, $06, $06, $06, $06, $06, $06, $06 DEFB $06, $06, $06, $06, $06, $06, $06, $06 DEFB $06, $06, $06, $06, $06, $06, $06, $06 DEFB $06, $06, $06, $06, $06, $06, $06, $06 DEFB $06, $06, $06, $06, $06, $06, $06, $06 DEFB $06, $06, $06, $06, $06, $06, $06, $06 DEFB $06, $06, $06, $06, $06, $06, $06, $06 DEFB $07, $07, $07, $07, $07, $07, $07, $07 DEFB $07, $07, $07, $07, $07, $07, $07, $07 DEFB $07, $07, $07, $07, $07, $07, $07, $07 DEFB $07, $07, $07, $07, $07, $07, $07, $07 DEFB $07, $07, $07, $07, $07, $07, $07, $07 DEFB $07, $07, $07, $07, $07, $07, $07, $07 DEFB $07, $07, $07, $07, $07, $07, $07, $07 DEFB $07, $07, $07, $07, $07, $07, $07, $07 DEFB $08, $08, $08, $08, $08, $08, $08, $08 DEFB $08, $08, $08, $08, $08, $08, $08, $08 DEFB $08, $08, $08, $08, $08, $08, $08, $08 DEFB $08, $08, $08, $08, $08, $08, $08, $08 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $03, $03, $03, $03, $03, $03, $03, $03 DEFB $03, $03, $03, $03, $03, $03, $03, $03 DEFB $03, $03, $03, $03, $03, $03, $03, $03 DEFB $03, $03, $03, $03, $03, $03, $03, $03 DEFB $03, $03, $03, $03, $03, $03, $03, $03 DEFB $03, $03, $03, $03, $03, $03, $03, $03 DEFB $03, $03, $03, $03, $03, $03, $03, $03 DEFB $03, $03, $03, $03, $03, $03, $03, $03 DEFB $03, $03, $03, $03, $03, $03, $03, $03 DEFB $03, $03, $03, $03, $03, $03, $03, $03 DEFB $03, $03, $03, $03, $03, $03, $03, $03 DEFB $03, $03, $03, $03, $03, $03, $03, $03 DEFB $03, $03, $03, $03, $03, $03, $03, $03 DEFB $03, $03, $03, $03, $03, $03, $03, $03 DEFB $03, $03, $03, $03, $03, $03, $03, $03 DEFB $03, $03, $03, $03, $03, $03, $03, $03 DEFB $04, $04, $04, $04, $04, $04, $04, $04 DEFB $04, $04, $04, $04, $04, $04, $04, $04 DEFB $04, $04, $04, $04, $04, $04, $04, $04 DEFB $04, $04, $04, $04, $04, $04, $04, $04 DEFB $04, $04, $04, $04, $04, $04, $04, $04 DEFB $04, $04, $04, $04, $04, $04, $04, $04 DEFB $04, $04, $04, $04, $04, $04, $04, $04 DEFB $04, $04, $04, $04, $04, $04, $04, $04 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $02, $02, $02, $02, $02, $02, $02, $02 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01 DEFB $01, $01, $01, $01, $01, $01, $01, $01
windowsAssembly/setbytes.asm
Jordank321/GaryLang
0
83388
<reponame>Jordank321/GaryLang cmp [$varName], byte 0 je allocate mov rcx, [$varName] call free allocate: mov rcx, $valLength call malloc mov [$varName], rax mov rcx, [$value] mov [rax], rcx
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca.log_1901_1715.asm
ljhsiun2/medusa
9
2493
<gh_stars>1-10 .global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r15 push %rax push %rbx push %rcx push %rsi lea addresses_D_ht+0x18672, %r15 nop nop nop nop add %rsi, %rsi vmovups (%r15), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %rcx nop sub $3991, %rax lea addresses_WT_ht+0x2e8a, %r10 nop nop nop nop nop xor $18135, %r11 vmovups (%r10), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $0, %xmm2, %rbx nop inc %rcx pop %rsi pop %rcx pop %rbx pop %rax pop %r15 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r8 push %r9 push %rdi push %rdx // Store lea addresses_normal+0xd0c2, %r10 nop nop nop dec %r12 movl $0x51525354, (%r10) nop nop nop nop nop inc %r11 // Store lea addresses_WC+0x1e8e2, %r11 nop nop add $42640, %r12 mov $0x5152535455565758, %rdi movq %rdi, %xmm5 movups %xmm5, (%r11) nop nop nop nop add %rdx, %rdx // Load mov $0x2c2, %r11 nop nop nop nop cmp %r8, %r8 vmovups (%r11), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $0, %xmm3, %r9 nop nop nop xor $48725, %r12 // Faulty Load lea addresses_US+0x16cc2, %r8 add %r12, %r12 movntdqa (%r8), %xmm0 vpextrq $0, %xmm0, %r10 lea oracles, %r11 and $0xff, %r10 shlq $12, %r10 mov (%r11,%r10,1), %r10 pop %rdx pop %rdi pop %r9 pop %r8 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_normal'}} {'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WC'}} {'src': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_P'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 16, 'NT': True, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'00': 1901} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
llvm-gcc-4.2-2.9/gcc/ada/s-thread.adb
vidkidz/crossbridge
1
8228
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . T H R E A D S -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2003 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, 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. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This is a dummy version of this package. with Unchecked_Conversion; with System.Threads.Initialization; package body System.Threads is ----------------------- -- Get_Current_Excep -- ----------------------- function Get_Current_Excep return EOA is begin return null; end Get_Current_Excep; ------------------------ -- Get_Jmpbuf_Address -- ------------------------ function Get_Jmpbuf_Address return Address is begin return Null_Address; end Get_Jmpbuf_Address; ------------------------ -- Get_Sec_Stack_Addr -- ------------------------ function Get_Sec_Stack_Addr return Address is begin return Null_Address; end Get_Sec_Stack_Addr; ------------------------ -- Set_Jmpbuf_Address -- ------------------------ procedure Set_Jmpbuf_Address (Addr : Address) is pragma Unreferenced (Addr); begin null; end Set_Jmpbuf_Address; ------------------------ -- Set_Sec_Stack_Addr -- ------------------------ procedure Set_Sec_Stack_Addr (Addr : Address) is pragma Unreferenced (Addr); begin null; end Set_Sec_Stack_Addr; ----------------------- -- Thread_Body_Enter -- ----------------------- procedure Thread_Body_Enter (Sec_Stack_Address : System.Address; Sec_Stack_Size : Natural; Process_ATSD_Address : System.Address) is pragma Unreferenced (Sec_Stack_Address); pragma Unreferenced (Sec_Stack_Size); pragma Unreferenced (Process_ATSD_Address); begin null; end Thread_Body_Enter; ---------------------------------- -- Thread_Body_Exceptional_Exit -- ---------------------------------- procedure Thread_Body_Exceptional_Exit (EO : Ada.Exceptions.Exception_Occurrence) is pragma Unreferenced (EO); begin null; end Thread_Body_Exceptional_Exit; ----------------------- -- Thread_Body_Leave -- ----------------------- procedure Thread_Body_Leave is begin null; end Thread_Body_Leave; end System.Threads;
test/interaction/Issue4125.agda
shlevy/agda
1,989
10553
<filename>test/interaction/Issue4125.agda -- Andreas, 2019-10-13, issue 4125 -- Avoid unnecessary normalization in type checker. -- Print to the user what they wrote, not its expanded form. -- {-# OPTIONS -v tc:25 #-} postulate We-do-not-want-to : Set → Set see-this-in-the-output : Set A = We-do-not-want-to see-this-in-the-output postulate P : A → Set test : ∀{a} → P a → P a test p = {!!} -- C-c C-, -- Expected to see -- a : A -- in the context, not the expanded monster of A. -- Testing that the etaExpandVar strategy of the unifier -- does not reduce the context. record ⊤ : Set where data D : ⊤ → Set where c : ∀{x} → D x etaExp : ∀{a} → D record{} → P a etaExp c = {!!} -- C-c C-, -- WAS (2.5.x-2.6.0): -- a : We-do-not-want-to see-this-in-the-output (not in scope) -- EXPECTED -- a : A
middleware/src/BLE/bluetooth_low_energy-packets.ads
rocher/Ada_Drivers_Library
192
30183
<filename>middleware/src/BLE/bluetooth_low_energy-packets.ads<gh_stars>100-1000 ------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ with System; with Interfaces; package Bluetooth_Low_Energy.Packets is type BLE_Packet is private; function Memory_Address (This : BLE_Packet) return System.Address; -- Return memory address of the radio data to be transmitted procedure Set_Header (This : in out BLE_Packet; Header : UInt8); procedure Push (This : in out BLE_Packet; Data : UInt8); procedure Push (This : in out BLE_Packet; Data : Interfaces.Integer_8); procedure Push (This : in out BLE_Packet; Data : UInt16); procedure Push (This : in out BLE_Packet; Data : UInt32); procedure Push (This : in out BLE_Packet; Data : UInt8_Array); procedure Push_UUID (This : in out BLE_Packet; UUID : BLE_UUID); private BLE_PACKET_MIC_SIZE : constant := 4; -- Size of Message integrity check (MIC) field BLE_PACKET_MAX_PAYLOAD : constant := 37; -- Maximum size of BLE payload (without header, MIC or CRC) type BLE_Data is array (1 .. BLE_PACKET_MAX_PAYLOAD + BLE_PACKET_MIC_SIZE) of UInt8 with Pack; -- BLE Payload plus optional MIC field type BLE_Packet is record Header : UInt8; Packet_Length : UInt8 := 0; Data : BLE_Data; end record with Pack; end Bluetooth_Low_Energy.Packets;
src/data/cast-vwf-names.asm
Iemnur/Mother2GbaTranslation
149
173748
<gh_stars>100-1000 .loadtable "data/cast-table.tbl" .strn 078h, 000h, 050h, "\cpaula's mom[END]" .strn 078h, 000h, 0A0h, "\cpaula's dad[END]" .strn 080h, 000h, 078h, "\cpaula[END]" .strn 01Ah, 001h, 078h, "\cjeff[END]" .strn 0A2h, 001h, 078h, "\cpoo[END]" .strn 0ADh, 001h, 0B0h, "\cpoo's Master[END]" .strn 03Ah, 002h, 090h, "\cking[END]" .str 043h, 002h, 078h, "\cness[END]"
data/test_ldy.asm
colinw7/C6502
0
164208
LDY #$37 OUT Y
src/emojis.ads
onox/emojis
7
9027
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2021 onox <<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.Strings.Unbounded; with Strings; package Emojis is subtype String_List is Strings.String_List; subtype Completion_Mappings is String_List; ---------------------------------------------------------------------------- package SU renames Ada.Strings.Unbounded; function "+" (Value : String) return SU.Unbounded_String renames SU.To_Unbounded_String; function "+" (Value : SU.Unbounded_String) return String renames SU.To_String; type Text_Label_Pair is record Text, Label : SU.Unbounded_String; end record; type Label_Mappings is array (Positive range <>) of Text_Label_Pair; Text_Emojis : constant Label_Mappings := ((+":)", +"slightly_smiling_face"), (+";)", +"wink"), (+":D", +"grinning"), (+":'D", +"sweat_smile"), (+":')", +"sweat_smile"), (+":"")", +"joy"), (+"XD", +"laughing"), (+"X'D", +"rolling_on_the_floor_laughing"), (+":o", +"open_mouth"), (+":O", +"open_mouth"), (+">:(", +"angry"), (+":(", +"slightly_frowning_face"), (+"-_-", +"unamused"), (+":'(", +"cry"), (+":""(", +"sob"), (+":p", +"stuck_out_tongue"), (+":P", +"stuck_out_tongue"), (+";p", +"stuck_out_tongue_winking_eye"), (+";P", +"stuck_out_tongue_winking_eye"), (+"B)", +"sunglasses"), (+":+)", +"clown_face"), (+":(=", +"hot_face"), (+"o_O", +"face_with_raised_eyebrow"), (+"O_o", +"face_with_raised_eyebrow"), (+"XO=", +"face_vomiting"), (+"<3", +"orange_heart")); Lower_Case_Text_Emojis : constant Completion_Mappings := (+":o", +":p", +"XD"); ---------------------------------------------------------------------------- function Labels return String_List; function Replace (Text : String; Mappings : Label_Mappings := Text_Emojis; Completions : Completion_Mappings := (1 .. 0 => <>)) return String; private type Text_1_Points_Pair is record Text : SU.Unbounded_String; Point_1 : Long_Integer; end record; type Text_2_Points_Pair is record Text : SU.Unbounded_String; Point_1 : Long_Integer; Point_2 : Long_Integer; end record; type Text_3_Points_Pair is record Text : SU.Unbounded_String; Point_1 : Long_Integer; Point_2 : Long_Integer; Point_3 : Long_Integer; end record; Name_Emojis_3 : constant array (Positive range <>) of Text_3_Points_Pair := ((+"hash", 16#0023#, 16#FE0F#, 16#20E3#), (+"keycap_star", 16#002A#, 16#FE0F#, 16#20E3#), (+"zero", 16#0030#, 16#FE0F#, 16#20E3#), (+"one", 16#0031#, 16#FE0F#, 16#20E3#), (+"two", 16#0032#, 16#FE0F#, 16#20E3#), (+"three", 16#0033#, 16#FE0F#, 16#20E3#), (+"four", 16#0034#, 16#FE0F#, 16#20E3#), (+"five", 16#0035#, 16#FE0F#, 16#20E3#), (+"six", 16#0036#, 16#FE0F#, 16#20E3#), (+"seven", 16#0037#, 16#FE0F#, 16#20E3#), (+"eight", 16#0038#, 16#FE0F#, 16#20E3#), (+"nine", 16#0039#, 16#FE0F#, 16#20E3#), (+"black_cat", 16#1F408#, 16#200D#, 16#2B1B#), (+"service_dog", 16#1F415#, 16#200D#, 16#1F9BA#), (+"male-farmer", 16#1F468#, 16#200D#, 16#1F33E#), (+"male-cook", 16#1F468#, 16#200D#, 16#1F373#), (+"man_feeding_baby", 16#1F468#, 16#200D#, 16#1F37C#), (+"male-student", 16#1F468#, 16#200D#, 16#1F393#), (+"male-singer", 16#1F468#, 16#200D#, 16#1F3A4#), (+"male-artist", 16#1F468#, 16#200D#, 16#1F3A8#), (+"male-teacher", 16#1F468#, 16#200D#, 16#1F3EB#), (+"male-factory-worker", 16#1F468#, 16#200D#, 16#1F3ED#), (+"man-boy", 16#1F468#, 16#200D#, 16#1F466#), (+"man-girl", 16#1F468#, 16#200D#, 16#1F467#), (+"male-technologist", 16#1F468#, 16#200D#, 16#1F4BB#), (+"male-office-worker", 16#1F468#, 16#200D#, 16#1F4BC#), (+"male-mechanic", 16#1F468#, 16#200D#, 16#1F527#), (+"male-scientist", 16#1F468#, 16#200D#, 16#1F52C#), (+"male-astronaut", 16#1F468#, 16#200D#, 16#1F680#), (+"male-firefighter", 16#1F468#, 16#200D#, 16#1F692#), (+"man_with_probing_cane", 16#1F468#, 16#200D#, 16#1F9AF#), (+"red_haired_man", 16#1F468#, 16#200D#, 16#1F9B0#), (+"curly_haired_man", 16#1F468#, 16#200D#, 16#1F9B1#), (+"bald_man", 16#1F468#, 16#200D#, 16#1F9B2#), (+"white_haired_man", 16#1F468#, 16#200D#, 16#1F9B3#), (+"man_in_motorized_wheelchair", 16#1F468#, 16#200D#, 16#1F9BC#), (+"man_in_manual_wheelchair", 16#1F468#, 16#200D#, 16#1F9BD#), (+"female-farmer", 16#1F469#, 16#200D#, 16#1F33E#), (+"female-cook", 16#1F469#, 16#200D#, 16#1F373#), (+"woman_feeding_baby", 16#1F469#, 16#200D#, 16#1F37C#), (+"female-student", 16#1F469#, 16#200D#, 16#1F393#), (+"female-singer", 16#1F469#, 16#200D#, 16#1F3A4#), (+"female-artist", 16#1F469#, 16#200D#, 16#1F3A8#), (+"female-teacher", 16#1F469#, 16#200D#, 16#1F3EB#), (+"female-factory-worker", 16#1F469#, 16#200D#, 16#1F3ED#), (+"woman-boy", 16#1F469#, 16#200D#, 16#1F466#), (+"woman-girl", 16#1F469#, 16#200D#, 16#1F467#), (+"female-technologist", 16#1F469#, 16#200D#, 16#1F4BB#), (+"female-office-worker", 16#1F469#, 16#200D#, 16#1F4BC#), (+"female-mechanic", 16#1F469#, 16#200D#, 16#1F527#), (+"female-scientist", 16#1F469#, 16#200D#, 16#1F52C#), (+"female-astronaut", 16#1F469#, 16#200D#, 16#1F680#), (+"female-firefighter", 16#1F469#, 16#200D#, 16#1F692#), (+"woman_with_probing_cane", 16#1F469#, 16#200D#, 16#1F9AF#), (+"red_haired_woman", 16#1F469#, 16#200D#, 16#1F9B0#), (+"curly_haired_woman", 16#1F469#, 16#200D#, 16#1F9B1#), (+"bald_woman", 16#1F469#, 16#200D#, 16#1F9B2#), (+"white_haired_woman", 16#1F469#, 16#200D#, 16#1F9B3#), (+"woman_in_motorized_wheelchair", 16#1F469#, 16#200D#, 16#1F9BC#), (+"woman_in_manual_wheelchair", 16#1F469#, 16#200D#, 16#1F9BD#), (+"face_exhaling", 16#1F62E#, 16#200D#, 16#1F4A8#), (+"face_with_spiral_eyes", 16#1F635#, 16#200D#, 16#1F4AB#), (+"farmer", 16#1F9D1#, 16#200D#, 16#1F33E#), (+"cook", 16#1F9D1#, 16#200D#, 16#1F373#), (+"person_feeding_baby", 16#1F9D1#, 16#200D#, 16#1F37C#), (+"mx_claus", 16#1F9D1#, 16#200D#, 16#1F384#), (+"student", 16#1F9D1#, 16#200D#, 16#1F393#), (+"singer", 16#1F9D1#, 16#200D#, 16#1F3A4#), (+"artist", 16#1F9D1#, 16#200D#, 16#1F3A8#), (+"teacher", 16#1F9D1#, 16#200D#, 16#1F3EB#), (+"factory_worker", 16#1F9D1#, 16#200D#, 16#1F3ED#), (+"technologist", 16#1F9D1#, 16#200D#, 16#1F4BB#), (+"office_worker", 16#1F9D1#, 16#200D#, 16#1F4BC#), (+"mechanic", 16#1F9D1#, 16#200D#, 16#1F527#), (+"scientist", 16#1F9D1#, 16#200D#, 16#1F52C#), (+"astronaut", 16#1F9D1#, 16#200D#, 16#1F680#), (+"firefighter", 16#1F9D1#, 16#200D#, 16#1F692#), (+"person_with_probing_cane", 16#1F9D1#, 16#200D#, 16#1F9AF#), (+"red_haired_person", 16#1F9D1#, 16#200D#, 16#1F9B0#), (+"curly_haired_person", 16#1F9D1#, 16#200D#, 16#1F9B1#), (+"bald_person", 16#1F9D1#, 16#200D#, 16#1F9B2#), (+"white_haired_person", 16#1F9D1#, 16#200D#, 16#1F9B3#), (+"person_in_motorized_wheelchair", 16#1F9D1#, 16#200D#, 16#1F9BC#), (+"person_in_manual_wheelchair", 16#1F9D1#, 16#200D#, 16#1F9BD#)); Name_Emojis_2 : constant array (Positive range <>) of Text_2_Points_Pair := ((+"copyright", 16#00A9#, 16#FE0F#), (+"registered", 16#00AE#, 16#FE0F#), (+"a", 16#1F170#, 16#FE0F#), (+"b", 16#1F171#, 16#FE0F#), (+"o2", 16#1F17E#, 16#FE0F#), (+"parking", 16#1F17F#, 16#FE0F#), (+"flag-ac", 16#1F1E6#, 16#1F1E8#), (+"flag-ad", 16#1F1E6#, 16#1F1E9#), (+"flag-ae", 16#1F1E6#, 16#1F1EA#), (+"flag-af", 16#1F1E6#, 16#1F1EB#), (+"flag-ag", 16#1F1E6#, 16#1F1EC#), (+"flag-ai", 16#1F1E6#, 16#1F1EE#), (+"flag-al", 16#1F1E6#, 16#1F1F1#), (+"flag-am", 16#1F1E6#, 16#1F1F2#), (+"flag-ao", 16#1F1E6#, 16#1F1F4#), (+"flag-aq", 16#1F1E6#, 16#1F1F6#), (+"flag-ar", 16#1F1E6#, 16#1F1F7#), (+"flag-as", 16#1F1E6#, 16#1F1F8#), (+"flag-at", 16#1F1E6#, 16#1F1F9#), (+"flag-au", 16#1F1E6#, 16#1F1FA#), (+"flag-aw", 16#1F1E6#, 16#1F1FC#), (+"flag-ax", 16#1F1E6#, 16#1F1FD#), (+"flag-az", 16#1F1E6#, 16#1F1FF#), (+"flag-ba", 16#1F1E7#, 16#1F1E6#), (+"flag-bb", 16#1F1E7#, 16#1F1E7#), (+"flag-bd", 16#1F1E7#, 16#1F1E9#), (+"flag-be", 16#1F1E7#, 16#1F1EA#), (+"flag-bf", 16#1F1E7#, 16#1F1EB#), (+"flag-bg", 16#1F1E7#, 16#1F1EC#), (+"flag-bh", 16#1F1E7#, 16#1F1ED#), (+"flag-bi", 16#1F1E7#, 16#1F1EE#), (+"flag-bj", 16#1F1E7#, 16#1F1EF#), (+"flag-bl", 16#1F1E7#, 16#1F1F1#), (+"flag-bm", 16#1F1E7#, 16#1F1F2#), (+"flag-bn", 16#1F1E7#, 16#1F1F3#), (+"flag-bo", 16#1F1E7#, 16#1F1F4#), (+"flag-bq", 16#1F1E7#, 16#1F1F6#), (+"flag-br", 16#1F1E7#, 16#1F1F7#), (+"flag-bs", 16#1F1E7#, 16#1F1F8#), (+"flag-bt", 16#1F1E7#, 16#1F1F9#), (+"flag-bv", 16#1F1E7#, 16#1F1FB#), (+"flag-bw", 16#1F1E7#, 16#1F1FC#), (+"flag-by", 16#1F1E7#, 16#1F1FE#), (+"flag-bz", 16#1F1E7#, 16#1F1FF#), (+"flag-ca", 16#1F1E8#, 16#1F1E6#), (+"flag-cc", 16#1F1E8#, 16#1F1E8#), (+"flag-cd", 16#1F1E8#, 16#1F1E9#), (+"flag-cf", 16#1F1E8#, 16#1F1EB#), (+"flag-cg", 16#1F1E8#, 16#1F1EC#), (+"flag-ch", 16#1F1E8#, 16#1F1ED#), (+"flag-ci", 16#1F1E8#, 16#1F1EE#), (+"flag-ck", 16#1F1E8#, 16#1F1F0#), (+"flag-cl", 16#1F1E8#, 16#1F1F1#), (+"flag-cm", 16#1F1E8#, 16#1F1F2#), (+"flag-cn", 16#1F1E8#, 16#1F1F3#), (+"flag-co", 16#1F1E8#, 16#1F1F4#), (+"flag-cp", 16#1F1E8#, 16#1F1F5#), (+"flag-cr", 16#1F1E8#, 16#1F1F7#), (+"flag-cu", 16#1F1E8#, 16#1F1FA#), (+"flag-cv", 16#1F1E8#, 16#1F1FB#), (+"flag-cw", 16#1F1E8#, 16#1F1FC#), (+"flag-cx", 16#1F1E8#, 16#1F1FD#), (+"flag-cy", 16#1F1E8#, 16#1F1FE#), (+"flag-cz", 16#1F1E8#, 16#1F1FF#), (+"flag-de", 16#1F1E9#, 16#1F1EA#), (+"flag-dg", 16#1F1E9#, 16#1F1EC#), (+"flag-dj", 16#1F1E9#, 16#1F1EF#), (+"flag-dk", 16#1F1E9#, 16#1F1F0#), (+"flag-dm", 16#1F1E9#, 16#1F1F2#), (+"flag-do", 16#1F1E9#, 16#1F1F4#), (+"flag-dz", 16#1F1E9#, 16#1F1FF#), (+"flag-ea", 16#1F1EA#, 16#1F1E6#), (+"flag-ec", 16#1F1EA#, 16#1F1E8#), (+"flag-ee", 16#1F1EA#, 16#1F1EA#), (+"flag-eg", 16#1F1EA#, 16#1F1EC#), (+"flag-eh", 16#1F1EA#, 16#1F1ED#), (+"flag-er", 16#1F1EA#, 16#1F1F7#), (+"flag-es", 16#1F1EA#, 16#1F1F8#), (+"flag-et", 16#1F1EA#, 16#1F1F9#), (+"flag-eu", 16#1F1EA#, 16#1F1FA#), (+"flag-fi", 16#1F1EB#, 16#1F1EE#), (+"flag-fj", 16#1F1EB#, 16#1F1EF#), (+"flag-fk", 16#1F1EB#, 16#1F1F0#), (+"flag-fm", 16#1F1EB#, 16#1F1F2#), (+"flag-fo", 16#1F1EB#, 16#1F1F4#), (+"flag-fr", 16#1F1EB#, 16#1F1F7#), (+"flag-ga", 16#1F1EC#, 16#1F1E6#), (+"flag-gb", 16#1F1EC#, 16#1F1E7#), (+"flag-gd", 16#1F1EC#, 16#1F1E9#), (+"flag-ge", 16#1F1EC#, 16#1F1EA#), (+"flag-gf", 16#1F1EC#, 16#1F1EB#), (+"flag-gg", 16#1F1EC#, 16#1F1EC#), (+"flag-gh", 16#1F1EC#, 16#1F1ED#), (+"flag-gi", 16#1F1EC#, 16#1F1EE#), (+"flag-gl", 16#1F1EC#, 16#1F1F1#), (+"flag-gm", 16#1F1EC#, 16#1F1F2#), (+"flag-gn", 16#1F1EC#, 16#1F1F3#), (+"flag-gp", 16#1F1EC#, 16#1F1F5#), (+"flag-gq", 16#1F1EC#, 16#1F1F6#), (+"flag-gr", 16#1F1EC#, 16#1F1F7#), (+"flag-gs", 16#1F1EC#, 16#1F1F8#), (+"flag-gt", 16#1F1EC#, 16#1F1F9#), (+"flag-gu", 16#1F1EC#, 16#1F1FA#), (+"flag-gw", 16#1F1EC#, 16#1F1FC#), (+"flag-gy", 16#1F1EC#, 16#1F1FE#), (+"flag-hk", 16#1F1ED#, 16#1F1F0#), (+"flag-hm", 16#1F1ED#, 16#1F1F2#), (+"flag-hn", 16#1F1ED#, 16#1F1F3#), (+"flag-hr", 16#1F1ED#, 16#1F1F7#), (+"flag-ht", 16#1F1ED#, 16#1F1F9#), (+"flag-hu", 16#1F1ED#, 16#1F1FA#), (+"flag-ic", 16#1F1EE#, 16#1F1E8#), (+"flag-id", 16#1F1EE#, 16#1F1E9#), (+"flag-ie", 16#1F1EE#, 16#1F1EA#), (+"flag-il", 16#1F1EE#, 16#1F1F1#), (+"flag-im", 16#1F1EE#, 16#1F1F2#), (+"flag-in", 16#1F1EE#, 16#1F1F3#), (+"flag-io", 16#1F1EE#, 16#1F1F4#), (+"flag-iq", 16#1F1EE#, 16#1F1F6#), (+"flag-ir", 16#1F1EE#, 16#1F1F7#), (+"flag-is", 16#1F1EE#, 16#1F1F8#), (+"flag-it", 16#1F1EE#, 16#1F1F9#), (+"flag-je", 16#1F1EF#, 16#1F1EA#), (+"flag-jm", 16#1F1EF#, 16#1F1F2#), (+"flag-jo", 16#1F1EF#, 16#1F1F4#), (+"flag-jp", 16#1F1EF#, 16#1F1F5#), (+"flag-ke", 16#1F1F0#, 16#1F1EA#), (+"flag-kg", 16#1F1F0#, 16#1F1EC#), (+"flag-kh", 16#1F1F0#, 16#1F1ED#), (+"flag-ki", 16#1F1F0#, 16#1F1EE#), (+"flag-km", 16#1F1F0#, 16#1F1F2#), (+"flag-kn", 16#1F1F0#, 16#1F1F3#), (+"flag-kp", 16#1F1F0#, 16#1F1F5#), (+"flag-kr", 16#1F1F0#, 16#1F1F7#), (+"flag-kw", 16#1F1F0#, 16#1F1FC#), (+"flag-ky", 16#1F1F0#, 16#1F1FE#), (+"flag-kz", 16#1F1F0#, 16#1F1FF#), (+"flag-la", 16#1F1F1#, 16#1F1E6#), (+"flag-lb", 16#1F1F1#, 16#1F1E7#), (+"flag-lc", 16#1F1F1#, 16#1F1E8#), (+"flag-li", 16#1F1F1#, 16#1F1EE#), (+"flag-lk", 16#1F1F1#, 16#1F1F0#), (+"flag-lr", 16#1F1F1#, 16#1F1F7#), (+"flag-ls", 16#1F1F1#, 16#1F1F8#), (+"flag-lt", 16#1F1F1#, 16#1F1F9#), (+"flag-lu", 16#1F1F1#, 16#1F1FA#), (+"flag-lv", 16#1F1F1#, 16#1F1FB#), (+"flag-ly", 16#1F1F1#, 16#1F1FE#), (+"flag-ma", 16#1F1F2#, 16#1F1E6#), (+"flag-mc", 16#1F1F2#, 16#1F1E8#), (+"flag-md", 16#1F1F2#, 16#1F1E9#), (+"flag-me", 16#1F1F2#, 16#1F1EA#), (+"flag-mf", 16#1F1F2#, 16#1F1EB#), (+"flag-mg", 16#1F1F2#, 16#1F1EC#), (+"flag-mh", 16#1F1F2#, 16#1F1ED#), (+"flag-mk", 16#1F1F2#, 16#1F1F0#), (+"flag-ml", 16#1F1F2#, 16#1F1F1#), (+"flag-mm", 16#1F1F2#, 16#1F1F2#), (+"flag-mn", 16#1F1F2#, 16#1F1F3#), (+"flag-mo", 16#1F1F2#, 16#1F1F4#), (+"flag-mp", 16#1F1F2#, 16#1F1F5#), (+"flag-mq", 16#1F1F2#, 16#1F1F6#), (+"flag-mr", 16#1F1F2#, 16#1F1F7#), (+"flag-ms", 16#1F1F2#, 16#1F1F8#), (+"flag-mt", 16#1F1F2#, 16#1F1F9#), (+"flag-mu", 16#1F1F2#, 16#1F1FA#), (+"flag-mv", 16#1F1F2#, 16#1F1FB#), (+"flag-mw", 16#1F1F2#, 16#1F1FC#), (+"flag-mx", 16#1F1F2#, 16#1F1FD#), (+"flag-my", 16#1F1F2#, 16#1F1FE#), (+"flag-mz", 16#1F1F2#, 16#1F1FF#), (+"flag-na", 16#1F1F3#, 16#1F1E6#), (+"flag-nc", 16#1F1F3#, 16#1F1E8#), (+"flag-ne", 16#1F1F3#, 16#1F1EA#), (+"flag-nf", 16#1F1F3#, 16#1F1EB#), (+"flag-ng", 16#1F1F3#, 16#1F1EC#), (+"flag-ni", 16#1F1F3#, 16#1F1EE#), (+"flag-nl", 16#1F1F3#, 16#1F1F1#), (+"flag-no", 16#1F1F3#, 16#1F1F4#), (+"flag-np", 16#1F1F3#, 16#1F1F5#), (+"flag-nr", 16#1F1F3#, 16#1F1F7#), (+"flag-nu", 16#1F1F3#, 16#1F1FA#), (+"flag-nz", 16#1F1F3#, 16#1F1FF#), (+"flag-om", 16#1F1F4#, 16#1F1F2#), (+"flag-pa", 16#1F1F5#, 16#1F1E6#), (+"flag-pe", 16#1F1F5#, 16#1F1EA#), (+"flag-pf", 16#1F1F5#, 16#1F1EB#), (+"flag-pg", 16#1F1F5#, 16#1F1EC#), (+"flag-ph", 16#1F1F5#, 16#1F1ED#), (+"flag-pk", 16#1F1F5#, 16#1F1F0#), (+"flag-pl", 16#1F1F5#, 16#1F1F1#), (+"flag-pm", 16#1F1F5#, 16#1F1F2#), (+"flag-pn", 16#1F1F5#, 16#1F1F3#), (+"flag-pr", 16#1F1F5#, 16#1F1F7#), (+"flag-ps", 16#1F1F5#, 16#1F1F8#), (+"flag-pt", 16#1F1F5#, 16#1F1F9#), (+"flag-pw", 16#1F1F5#, 16#1F1FC#), (+"flag-py", 16#1F1F5#, 16#1F1FE#), (+"flag-qa", 16#1F1F6#, 16#1F1E6#), (+"flag-re", 16#1F1F7#, 16#1F1EA#), (+"flag-ro", 16#1F1F7#, 16#1F1F4#), (+"flag-rs", 16#1F1F7#, 16#1F1F8#), (+"flag-ru", 16#1F1F7#, 16#1F1FA#), (+"flag-rw", 16#1F1F7#, 16#1F1FC#), (+"flag-sa", 16#1F1F8#, 16#1F1E6#), (+"flag-sb", 16#1F1F8#, 16#1F1E7#), (+"flag-sc", 16#1F1F8#, 16#1F1E8#), (+"flag-sd", 16#1F1F8#, 16#1F1E9#), (+"flag-se", 16#1F1F8#, 16#1F1EA#), (+"flag-sg", 16#1F1F8#, 16#1F1EC#), (+"flag-sh", 16#1F1F8#, 16#1F1ED#), (+"flag-si", 16#1F1F8#, 16#1F1EE#), (+"flag-sj", 16#1F1F8#, 16#1F1EF#), (+"flag-sk", 16#1F1F8#, 16#1F1F0#), (+"flag-sl", 16#1F1F8#, 16#1F1F1#), (+"flag-sm", 16#1F1F8#, 16#1F1F2#), (+"flag-sn", 16#1F1F8#, 16#1F1F3#), (+"flag-so", 16#1F1F8#, 16#1F1F4#), (+"flag-sr", 16#1F1F8#, 16#1F1F7#), (+"flag-ss", 16#1F1F8#, 16#1F1F8#), (+"flag-st", 16#1F1F8#, 16#1F1F9#), (+"flag-sv", 16#1F1F8#, 16#1F1FB#), (+"flag-sx", 16#1F1F8#, 16#1F1FD#), (+"flag-sy", 16#1F1F8#, 16#1F1FE#), (+"flag-sz", 16#1F1F8#, 16#1F1FF#), (+"flag-ta", 16#1F1F9#, 16#1F1E6#), (+"flag-tc", 16#1F1F9#, 16#1F1E8#), (+"flag-td", 16#1F1F9#, 16#1F1E9#), (+"flag-tf", 16#1F1F9#, 16#1F1EB#), (+"flag-tg", 16#1F1F9#, 16#1F1EC#), (+"flag-th", 16#1F1F9#, 16#1F1ED#), (+"flag-tj", 16#1F1F9#, 16#1F1EF#), (+"flag-tk", 16#1F1F9#, 16#1F1F0#), (+"flag-tl", 16#1F1F9#, 16#1F1F1#), (+"flag-tm", 16#1F1F9#, 16#1F1F2#), (+"flag-tn", 16#1F1F9#, 16#1F1F3#), (+"flag-to", 16#1F1F9#, 16#1F1F4#), (+"flag-tr", 16#1F1F9#, 16#1F1F7#), (+"flag-tt", 16#1F1F9#, 16#1F1F9#), (+"flag-tv", 16#1F1F9#, 16#1F1FB#), (+"flag-tw", 16#1F1F9#, 16#1F1FC#), (+"flag-tz", 16#1F1F9#, 16#1F1FF#), (+"flag-ua", 16#1F1FA#, 16#1F1E6#), (+"flag-ug", 16#1F1FA#, 16#1F1EC#), (+"flag-um", 16#1F1FA#, 16#1F1F2#), (+"flag-un", 16#1F1FA#, 16#1F1F3#), (+"flag-us", 16#1F1FA#, 16#1F1F8#), (+"flag-uy", 16#1F1FA#, 16#1F1FE#), (+"flag-uz", 16#1F1FA#, 16#1F1FF#), (+"flag-va", 16#1F1FB#, 16#1F1E6#), (+"flag-vc", 16#1F1FB#, 16#1F1E8#), (+"flag-ve", 16#1F1FB#, 16#1F1EA#), (+"flag-vg", 16#1F1FB#, 16#1F1EC#), (+"flag-vi", 16#1F1FB#, 16#1F1EE#), (+"flag-vn", 16#1F1FB#, 16#1F1F3#), (+"flag-vu", 16#1F1FB#, 16#1F1FA#), (+"flag-wf", 16#1F1FC#, 16#1F1EB#), (+"flag-ws", 16#1F1FC#, 16#1F1F8#), (+"flag-xk", 16#1F1FD#, 16#1F1F0#), (+"flag-ye", 16#1F1FE#, 16#1F1EA#), (+"flag-yt", 16#1F1FE#, 16#1F1F9#), (+"flag-za", 16#1F1FF#, 16#1F1E6#), (+"flag-zm", 16#1F1FF#, 16#1F1F2#), (+"flag-zw", 16#1F1FF#, 16#1F1FC#), (+"flag-sa", 16#1F202#, 16#FE0F#), (+"u6708", 16#1F237#, 16#FE0F#), (+"thermometer", 16#1F321#, 16#FE0F#), (+"mostly_sunny", 16#1F324#, 16#FE0F#), (+"barely_sunny", 16#1F325#, 16#FE0F#), (+"partly_sunny_rain", 16#1F326#, 16#FE0F#), (+"rain_cloud", 16#1F327#, 16#FE0F#), (+"snow_cloud", 16#1F328#, 16#FE0F#), (+"lightning", 16#1F329#, 16#FE0F#), (+"tornado", 16#1F32A#, 16#FE0F#), (+"fog", 16#1F32B#, 16#FE0F#), (+"wind_blowing_face", 16#1F32C#, 16#FE0F#), (+"hot_pepper", 16#1F336#, 16#FE0F#), (+"knife_fork_plate", 16#1F37D#, 16#FE0F#), (+"medal", 16#1F396#, 16#FE0F#), (+"reminder_ribbon", 16#1F397#, 16#FE0F#), (+"studio_microphone", 16#1F399#, 16#FE0F#), (+"level_slider", 16#1F39A#, 16#FE0F#), (+"control_knobs", 16#1F39B#, 16#FE0F#), (+"film_frames", 16#1F39E#, 16#FE0F#), (+"admission_tickets", 16#1F39F#, 16#FE0F#), (+"weight_lifter", 16#1F3CB#, 16#FE0F#), (+"golfer", 16#1F3CC#, 16#FE0F#), (+"racing_motorcycle", 16#1F3CD#, 16#FE0F#), (+"racing_car", 16#1F3CE#, 16#FE0F#), (+"snow_capped_mountain", 16#1F3D4#, 16#FE0F#), (+"camping", 16#1F3D5#, 16#FE0F#), (+"beach_with_umbrella", 16#1F3D6#, 16#FE0F#), (+"building_construction", 16#1F3D7#, 16#FE0F#), (+"house_buildings", 16#1F3D8#, 16#FE0F#), (+"cityscape", 16#1F3D9#, 16#FE0F#), (+"derelict_house_building", 16#1F3DA#, 16#FE0F#), (+"classical_building", 16#1F3DB#, 16#FE0F#), (+"desert", 16#1F3DC#, 16#FE0F#), (+"desert_island", 16#1F3DD#, 16#FE0F#), (+"national_park", 16#1F3DE#, 16#FE0F#), (+"stadium", 16#1F3DF#, 16#FE0F#), (+"waving_white_flag", 16#1F3F3#, 16#FE0F#), (+"rosette", 16#1F3F5#, 16#FE0F#), (+"label", 16#1F3F7#, 16#FE0F#), (+"chipmunk", 16#1F43F#, 16#FE0F#), (+"eye", 16#1F441#, 16#FE0F#), (+"film_projector", 16#1F4FD#, 16#FE0F#), (+"om_symbol", 16#1F549#, 16#FE0F#), (+"dove_of_peace", 16#1F54A#, 16#FE0F#), (+"candle", 16#1F56F#, 16#FE0F#), (+"mantelpiece_clock", 16#1F570#, 16#FE0F#), (+"hole", 16#1F573#, 16#FE0F#), (+"man_in_business_suit_levitating", 16#1F574#, 16#FE0F#), (+"sleuth_or_spy", 16#1F575#, 16#FE0F#), (+"dark_sunglasses", 16#1F576#, 16#FE0F#), (+"spider", 16#1F577#, 16#FE0F#), (+"spider_web", 16#1F578#, 16#FE0F#), (+"joystick", 16#1F579#, 16#FE0F#), (+"linked_paperclips", 16#1F587#, 16#FE0F#), (+"lower_left_ballpoint_pen", 16#1F58A#, 16#FE0F#), (+"lower_left_fountain_pen", 16#1F58B#, 16#FE0F#), (+"lower_left_paintbrush", 16#1F58C#, 16#FE0F#), (+"lower_left_crayon", 16#1F58D#, 16#FE0F#), (+"raised_hand_with_fingers_splayed", 16#1F590#, 16#FE0F#), (+"desktop_computer", 16#1F5A5#, 16#FE0F#), (+"printer", 16#1F5A8#, 16#FE0F#), (+"three_button_mouse", 16#1F5B1#, 16#FE0F#), (+"trackball", 16#1F5B2#, 16#FE0F#), (+"frame_with_picture", 16#1F5BC#, 16#FE0F#), (+"card_index_dividers", 16#1F5C2#, 16#FE0F#), (+"card_file_box", 16#1F5C3#, 16#FE0F#), (+"file_cabinet", 16#1F5C4#, 16#FE0F#), (+"wastebasket", 16#1F5D1#, 16#FE0F#), (+"spiral_note_pad", 16#1F5D2#, 16#FE0F#), (+"spiral_calendar_pad", 16#1F5D3#, 16#FE0F#), (+"compression", 16#1F5DC#, 16#FE0F#), (+"old_key", 16#1F5DD#, 16#FE0F#), (+"rolled_up_newspaper", 16#1F5DE#, 16#FE0F#), (+"dagger_knife", 16#1F5E1#, 16#FE0F#), (+"speaking_head_in_silhouette", 16#1F5E3#, 16#FE0F#), (+"left_speech_bubble", 16#1F5E8#, 16#FE0F#), (+"right_anger_bubble", 16#1F5EF#, 16#FE0F#), (+"ballot_box_with_ballot", 16#1F5F3#, 16#FE0F#), (+"world_map", 16#1F5FA#, 16#FE0F#), (+"couch_and_lamp", 16#1F6CB#, 16#FE0F#), (+"shopping_bags", 16#1F6CD#, 16#FE0F#), (+"bellhop_bell", 16#1F6CE#, 16#FE0F#), (+"bed", 16#1F6CF#, 16#FE0F#), (+"hammer_and_wrench", 16#1F6E0#, 16#FE0F#), (+"shield", 16#1F6E1#, 16#FE0F#), (+"oil_drum", 16#1F6E2#, 16#FE0F#), (+"motorway", 16#1F6E3#, 16#FE0F#), (+"railway_track", 16#1F6E4#, 16#FE0F#), (+"motor_boat", 16#1F6E5#, 16#FE0F#), (+"small_airplane", 16#1F6E9#, 16#FE0F#), (+"satellite", 16#1F6F0#, 16#FE0F#), (+"passenger_ship", 16#1F6F3#, 16#FE0F#), (+"bangbang", 16#203C#, 16#FE0F#), (+"interrobang", 16#2049#, 16#FE0F#), (+"tm", 16#2122#, 16#FE0F#), (+"information_source", 16#2139#, 16#FE0F#), (+"left_right_arrow", 16#2194#, 16#FE0F#), (+"arrow_up_down", 16#2195#, 16#FE0F#), (+"arrow_upper_left", 16#2196#, 16#FE0F#), (+"arrow_upper_right", 16#2197#, 16#FE0F#), (+"arrow_lower_right", 16#2198#, 16#FE0F#), (+"arrow_lower_left", 16#2199#, 16#FE0F#), (+"leftwards_arrow_with_hook", 16#21A9#, 16#FE0F#), (+"arrow_right_hook", 16#21AA#, 16#FE0F#), (+"keyboard", 16#2328#, 16#FE0F#), (+"eject", 16#23CF#, 16#FE0F#), (+"black_right_pointing_double_triangle_with_vertical_bar", 16#23ED#, 16#FE0F#), (+"black_left_pointing_double_triangle_with_vertical_bar", 16#23EE#, 16#FE0F#), (+"black_right_pointing_triangle_with_double_vertical_bar", 16#23EF#, 16#FE0F#), (+"stopwatch", 16#23F1#, 16#FE0F#), (+"timer_clock", 16#23F2#, 16#FE0F#), (+"double_vertical_bar", 16#23F8#, 16#FE0F#), (+"black_square_for_stop", 16#23F9#, 16#FE0F#), (+"black_circle_for_record", 16#23FA#, 16#FE0F#), (+"m", 16#24C2#, 16#FE0F#), (+"black_small_square", 16#25AA#, 16#FE0F#), (+"white_small_square", 16#25AB#, 16#FE0F#), (+"arrow_forward", 16#25B6#, 16#FE0F#), (+"arrow_backward", 16#25C0#, 16#FE0F#), (+"white_medium_square", 16#25FB#, 16#FE0F#), (+"black_medium_square", 16#25FC#, 16#FE0F#), (+"sunny", 16#2600#, 16#FE0F#), (+"cloud", 16#2601#, 16#FE0F#), (+"umbrella", 16#2602#, 16#FE0F#), (+"snowman", 16#2603#, 16#FE0F#), (+"comet", 16#2604#, 16#FE0F#), (+"phone", 16#260E#, 16#FE0F#), (+"ballot_box_with_check", 16#2611#, 16#FE0F#), (+"shamrock", 16#2618#, 16#FE0F#), (+"point_up", 16#261D#, 16#FE0F#), (+"skull_and_crossbones", 16#2620#, 16#FE0F#), (+"radioactive_sign", 16#2622#, 16#FE0F#), (+"biohazard_sign", 16#2623#, 16#FE0F#), (+"orthodox_cross", 16#2626#, 16#FE0F#), (+"star_and_crescent", 16#262A#, 16#FE0F#), (+"peace_symbol", 16#262E#, 16#FE0F#), (+"yin_yang", 16#262F#, 16#FE0F#), (+"wheel_of_dharma", 16#2638#, 16#FE0F#), (+"white_frowning_face", 16#2639#, 16#FE0F#), (+"relaxed", 16#263A#, 16#FE0F#), (+"female_sign", 16#2640#, 16#FE0F#), (+"male_sign", 16#2642#, 16#FE0F#), (+"chess_pawn", 16#265F#, 16#FE0F#), (+"spades", 16#2660#, 16#FE0F#), (+"clubs", 16#2663#, 16#FE0F#), (+"hearts", 16#2665#, 16#FE0F#), (+"diamonds", 16#2666#, 16#FE0F#), (+"hotsprings", 16#2668#, 16#FE0F#), (+"recycle", 16#267B#, 16#FE0F#), (+"infinity", 16#267E#, 16#FE0F#), (+"hammer_and_pick", 16#2692#, 16#FE0F#), (+"crossed_swords", 16#2694#, 16#FE0F#), (+"medical_symbol", 16#2695#, 16#FE0F#), (+"scales", 16#2696#, 16#FE0F#), (+"alembic", 16#2697#, 16#FE0F#), (+"gear", 16#2699#, 16#FE0F#), (+"atom_symbol", 16#269B#, 16#FE0F#), (+"fleur_de_lis", 16#269C#, 16#FE0F#), (+"warning", 16#26A0#, 16#FE0F#), (+"transgender_symbol", 16#26A7#, 16#FE0F#), (+"coffin", 16#26B0#, 16#FE0F#), (+"funeral_urn", 16#26B1#, 16#FE0F#), (+"thunder_cloud_and_rain", 16#26C8#, 16#FE0F#), (+"pick", 16#26CF#, 16#FE0F#), (+"helmet_with_white_cross", 16#26D1#, 16#FE0F#), (+"chains", 16#26D3#, 16#FE0F#), (+"shinto_shrine", 16#26E9#, 16#FE0F#), (+"mountain", 16#26F0#, 16#FE0F#), (+"umbrella_on_ground", 16#26F1#, 16#FE0F#), (+"ferry", 16#26F4#, 16#FE0F#), (+"skier", 16#26F7#, 16#FE0F#), (+"ice_skate", 16#26F8#, 16#FE0F#), (+"person_with_ball", 16#26F9#, 16#FE0F#), (+"scissors", 16#2702#, 16#FE0F#), (+"airplane", 16#2708#, 16#FE0F#), (+"email", 16#2709#, 16#FE0F#), (+"v", 16#270C#, 16#FE0F#), (+"writing_hand", 16#270D#, 16#FE0F#), (+"pencil2", 16#270F#, 16#FE0F#), (+"black_nib", 16#2712#, 16#FE0F#), (+"heavy_check_mark", 16#2714#, 16#FE0F#), (+"heavy_multiplication_x", 16#2716#, 16#FE0F#), (+"latin_cross", 16#271D#, 16#FE0F#), (+"star_of_david", 16#2721#, 16#FE0F#), (+"eight_spoked_asterisk", 16#2733#, 16#FE0F#), (+"eight_pointed_black_star", 16#2734#, 16#FE0F#), (+"snowflake", 16#2744#, 16#FE0F#), (+"sparkle", 16#2747#, 16#FE0F#), (+"heavy_heart_exclamation_mark_ornament", 16#2763#, 16#FE0F#), (+"heart", 16#2764#, 16#FE0F#), (+"arrow_right", 16#27A1#, 16#FE0F#), (+"arrow_heading_up", 16#2934#, 16#FE0F#), (+"arrow_heading_down", 16#2935#, 16#FE0F#), (+"arrow_left", 16#2B05#, 16#FE0F#), (+"arrow_up", 16#2B06#, 16#FE0F#), (+"arrow_down", 16#2B07#, 16#FE0F#), (+"wavy_dash", 16#3030#, 16#FE0F#), (+"part_alternation_mark", 16#303D#, 16#FE0F#), (+"congratulations", 16#3297#, 16#FE0F#), (+"secret", 16#3299#, 16#FE0F#)); Name_Emojis_1 : constant array (Positive range <>) of Text_1_Points_Pair := ((+"mahjong", 16#1F004#), (+"black_joker", 16#1F0CF#), (+"ab", 16#1F18E#), (+"cl", 16#1F191#), (+"cool", 16#1F192#), (+"free", 16#1F193#), (+"id", 16#1F194#), (+"new", 16#1F195#), (+"ng", 16#1F196#), (+"ok", 16#1F197#), (+"sos", 16#1F198#), (+"up", 16#1F199#), (+"vs", 16#1F19A#), (+"koko", 16#1F201#), (+"u7121", 16#1F21A#), (+"u6307", 16#1F22F#), (+"u7981", 16#1F232#), (+"u7a7a", 16#1F233#), (+"u5408", 16#1F234#), (+"u6e80", 16#1F235#), (+"u6709", 16#1F236#), (+"u7533", 16#1F238#), (+"u5272", 16#1F239#), (+"u55b6", 16#1F23A#), (+"ideograph_advantage", 16#1F250#), (+"accept", 16#1F251#), (+"cyclone", 16#1F300#), (+"foggy", 16#1F301#), (+"closed_umbrella", 16#1F302#), (+"night_with_stars", 16#1F303#), (+"sunrise_over_mountains", 16#1F304#), (+"sunrise", 16#1F305#), (+"city_sunset", 16#1F306#), (+"city_sunrise", 16#1F307#), (+"rainbow", 16#1F308#), (+"bridge_at_night", 16#1F309#), (+"ocean", 16#1F30A#), (+"volcano", 16#1F30B#), (+"milky_way", 16#1F30C#), (+"earth_africa", 16#1F30D#), (+"earth_americas", 16#1F30E#), (+"earth_asia", 16#1F30F#), (+"globe_with_meridians", 16#1F310#), (+"new_moon", 16#1F311#), (+"waxing_crescent_moon", 16#1F312#), (+"first_quarter_moon", 16#1F313#), (+"moon", 16#1F314#), (+"full_moon", 16#1F315#), (+"waning_gibbous_moon", 16#1F316#), (+"last_quarter_moon", 16#1F317#), (+"waning_crescent_moon", 16#1F318#), (+"crescent_moon", 16#1F319#), (+"new_moon_with_face", 16#1F31A#), (+"first_quarter_moon_with_face", 16#1F31B#), (+"last_quarter_moon_with_face", 16#1F31C#), (+"full_moon_with_face", 16#1F31D#), (+"sun_with_face", 16#1F31E#), (+"star2", 16#1F31F#), (+"stars", 16#1F320#), (+"hotdog", 16#1F32D#), (+"taco", 16#1F32E#), (+"burrito", 16#1F32F#), (+"chestnut", 16#1F330#), (+"seedling", 16#1F331#), (+"evergreen_tree", 16#1F332#), (+"deciduous_tree", 16#1F333#), (+"palm_tree", 16#1F334#), (+"cactus", 16#1F335#), (+"tulip", 16#1F337#), (+"cherry_blossom", 16#1F338#), (+"rose", 16#1F339#), (+"hibiscus", 16#1F33A#), (+"sunflower", 16#1F33B#), (+"blossom", 16#1F33C#), (+"corn", 16#1F33D#), (+"ear_of_rice", 16#1F33E#), (+"herb", 16#1F33F#), (+"four_leaf_clover", 16#1F340#), (+"maple_leaf", 16#1F341#), (+"fallen_leaf", 16#1F342#), (+"leaves", 16#1F343#), (+"mushroom", 16#1F344#), (+"tomato", 16#1F345#), (+"eggplant", 16#1F346#), (+"grapes", 16#1F347#), (+"melon", 16#1F348#), (+"watermelon", 16#1F349#), (+"tangerine", 16#1F34A#), (+"lemon", 16#1F34B#), (+"banana", 16#1F34C#), (+"pineapple", 16#1F34D#), (+"apple", 16#1F34E#), (+"green_apple", 16#1F34F#), (+"pear", 16#1F350#), (+"peach", 16#1F351#), (+"cherries", 16#1F352#), (+"strawberry", 16#1F353#), (+"hamburger", 16#1F354#), (+"pizza", 16#1F355#), (+"meat_on_bone", 16#1F356#), (+"poultry_leg", 16#1F357#), (+"rice_cracker", 16#1F358#), (+"rice_ball", 16#1F359#), (+"rice", 16#1F35A#), (+"curry", 16#1F35B#), (+"ramen", 16#1F35C#), (+"spaghetti", 16#1F35D#), (+"bread", 16#1F35E#), (+"fries", 16#1F35F#), (+"sweet_potato", 16#1F360#), (+"dango", 16#1F361#), (+"oden", 16#1F362#), (+"sushi", 16#1F363#), (+"fried_shrimp", 16#1F364#), (+"fish_cake", 16#1F365#), (+"icecream", 16#1F366#), (+"shaved_ice", 16#1F367#), (+"ice_cream", 16#1F368#), (+"doughnut", 16#1F369#), (+"cookie", 16#1F36A#), (+"chocolate_bar", 16#1F36B#), (+"candy", 16#1F36C#), (+"lollipop", 16#1F36D#), (+"custard", 16#1F36E#), (+"honey_pot", 16#1F36F#), (+"cake", 16#1F370#), (+"bento", 16#1F371#), (+"stew", 16#1F372#), (+"fried_egg", 16#1F373#), (+"fork_and_knife", 16#1F374#), (+"tea", 16#1F375#), (+"sake", 16#1F376#), (+"wine_glass", 16#1F377#), (+"cocktail", 16#1F378#), (+"tropical_drink", 16#1F379#), (+"beer", 16#1F37A#), (+"beers", 16#1F37B#), (+"baby_bottle", 16#1F37C#), (+"champagne", 16#1F37E#), (+"popcorn", 16#1F37F#), (+"ribbon", 16#1F380#), (+"gift", 16#1F381#), (+"birthday", 16#1F382#), (+"jack_o_lantern", 16#1F383#), (+"christmas_tree", 16#1F384#), (+"santa", 16#1F385#), (+"fireworks", 16#1F386#), (+"sparkler", 16#1F387#), (+"balloon", 16#1F388#), (+"tada", 16#1F389#), (+"confetti_ball", 16#1F38A#), (+"tanabata_tree", 16#1F38B#), (+"crossed_flags", 16#1F38C#), (+"bamboo", 16#1F38D#), (+"dolls", 16#1F38E#), (+"flags", 16#1F38F#), (+"wind_chime", 16#1F390#), (+"rice_scene", 16#1F391#), (+"school_satchel", 16#1F392#), (+"mortar_board", 16#1F393#), (+"carousel_horse", 16#1F3A0#), (+"ferris_wheel", 16#1F3A1#), (+"roller_coaster", 16#1F3A2#), (+"fishing_pole_and_fish", 16#1F3A3#), (+"microphone", 16#1F3A4#), (+"movie_camera", 16#1F3A5#), (+"cinema", 16#1F3A6#), (+"headphones", 16#1F3A7#), (+"art", 16#1F3A8#), (+"tophat", 16#1F3A9#), (+"circus_tent", 16#1F3AA#), (+"ticket", 16#1F3AB#), (+"clapper", 16#1F3AC#), (+"performing_arts", 16#1F3AD#), (+"video_game", 16#1F3AE#), (+"dart", 16#1F3AF#), (+"slot_machine", 16#1F3B0#), (+"8ball", 16#1F3B1#), (+"game_die", 16#1F3B2#), (+"bowling", 16#1F3B3#), (+"flower_playing_cards", 16#1F3B4#), (+"musical_note", 16#1F3B5#), (+"notes", 16#1F3B6#), (+"saxophone", 16#1F3B7#), (+"guitar", 16#1F3B8#), (+"musical_keyboard", 16#1F3B9#), (+"trumpet", 16#1F3BA#), (+"violin", 16#1F3BB#), (+"musical_score", 16#1F3BC#), (+"running_shirt_with_sash", 16#1F3BD#), (+"tennis", 16#1F3BE#), (+"ski", 16#1F3BF#), (+"basketball", 16#1F3C0#), (+"checkered_flag", 16#1F3C1#), (+"snowboarder", 16#1F3C2#), (+"runner", 16#1F3C3#), (+"surfer", 16#1F3C4#), (+"sports_medal", 16#1F3C5#), (+"trophy", 16#1F3C6#), (+"horse_racing", 16#1F3C7#), (+"football", 16#1F3C8#), (+"rugby_football", 16#1F3C9#), (+"swimmer", 16#1F3CA#), (+"cricket_bat_and_ball", 16#1F3CF#), (+"volleyball", 16#1F3D0#), (+"field_hockey_stick_and_ball", 16#1F3D1#), (+"ice_hockey_stick_and_puck", 16#1F3D2#), (+"table_tennis_paddle_and_ball", 16#1F3D3#), (+"house", 16#1F3E0#), (+"house_with_garden", 16#1F3E1#), (+"office", 16#1F3E2#), (+"post_office", 16#1F3E3#), (+"european_post_office", 16#1F3E4#), (+"hospital", 16#1F3E5#), (+"bank", 16#1F3E6#), (+"atm", 16#1F3E7#), (+"hotel", 16#1F3E8#), (+"love_hotel", 16#1F3E9#), (+"convenience_store", 16#1F3EA#), (+"school", 16#1F3EB#), (+"department_store", 16#1F3EC#), (+"factory", 16#1F3ED#), (+"izakaya_lantern", 16#1F3EE#), (+"japanese_castle", 16#1F3EF#), (+"european_castle", 16#1F3F0#), (+"waving_black_flag", 16#1F3F4#), (+"badminton_racquet_and_shuttlecock", 16#1F3F8#), (+"bow_and_arrow", 16#1F3F9#), (+"amphora", 16#1F3FA#), (+"skin-tone-2", 16#1F3FB#), (+"skin-tone-3", 16#1F3FC#), (+"skin-tone-4", 16#1F3FD#), (+"skin-tone-5", 16#1F3FE#), (+"skin-tone-6", 16#1F3FF#), (+"rat", 16#1F400#), (+"mouse2", 16#1F401#), (+"ox", 16#1F402#), (+"water_buffalo", 16#1F403#), (+"cow2", 16#1F404#), (+"tiger2", 16#1F405#), (+"leopard", 16#1F406#), (+"rabbit2", 16#1F407#), (+"cat2", 16#1F408#), (+"dragon", 16#1F409#), (+"crocodile", 16#1F40A#), (+"whale2", 16#1F40B#), (+"snail", 16#1F40C#), (+"snake", 16#1F40D#), (+"racehorse", 16#1F40E#), (+"ram", 16#1F40F#), (+"goat", 16#1F410#), (+"sheep", 16#1F411#), (+"monkey", 16#1F412#), (+"rooster", 16#1F413#), (+"chicken", 16#1F414#), (+"dog2", 16#1F415#), (+"pig2", 16#1F416#), (+"boar", 16#1F417#), (+"elephant", 16#1F418#), (+"octopus", 16#1F419#), (+"shell", 16#1F41A#), (+"bug", 16#1F41B#), (+"ant", 16#1F41C#), (+"bee", 16#1F41D#), (+"ladybug", 16#1F41E#), (+"fish", 16#1F41F#), (+"tropical_fish", 16#1F420#), (+"blowfish", 16#1F421#), (+"turtle", 16#1F422#), (+"hatching_chick", 16#1F423#), (+"baby_chick", 16#1F424#), (+"hatched_chick", 16#1F425#), (+"bird", 16#1F426#), (+"penguin", 16#1F427#), (+"koala", 16#1F428#), (+"poodle", 16#1F429#), (+"dromedary_camel", 16#1F42A#), (+"camel", 16#1F42B#), (+"dolphin", 16#1F42C#), (+"mouse", 16#1F42D#), (+"cow", 16#1F42E#), (+"tiger", 16#1F42F#), (+"rabbit", 16#1F430#), (+"cat", 16#1F431#), (+"dragon_face", 16#1F432#), (+"whale", 16#1F433#), (+"horse", 16#1F434#), (+"monkey_face", 16#1F435#), (+"dog", 16#1F436#), (+"pig", 16#1F437#), (+"frog", 16#1F438#), (+"hamster", 16#1F439#), (+"wolf", 16#1F43A#), (+"bear", 16#1F43B#), (+"panda_face", 16#1F43C#), (+"pig_nose", 16#1F43D#), (+"feet", 16#1F43E#), (+"eyes", 16#1F440#), (+"ear", 16#1F442#), (+"nose", 16#1F443#), (+"lips", 16#1F444#), (+"tongue", 16#1F445#), (+"point_up_2", 16#1F446#), (+"point_down", 16#1F447#), (+"point_left", 16#1F448#), (+"point_right", 16#1F449#), (+"facepunch", 16#1F44A#), (+"wave", 16#1F44B#), (+"ok_hand", 16#1F44C#), (+"+1", 16#1F44D#), (+"-1", 16#1F44E#), (+"clap", 16#1F44F#), (+"open_hands", 16#1F450#), (+"crown", 16#1F451#), (+"womans_hat", 16#1F452#), (+"eyeglasses", 16#1F453#), (+"necktie", 16#1F454#), (+"shirt", 16#1F455#), (+"jeans", 16#1F456#), (+"dress", 16#1F457#), (+"kimono", 16#1F458#), (+"bikini", 16#1F459#), (+"womans_clothes", 16#1F45A#), (+"purse", 16#1F45B#), (+"handbag", 16#1F45C#), (+"pouch", 16#1F45D#), (+"mans_shoe", 16#1F45E#), (+"athletic_shoe", 16#1F45F#), (+"high_heel", 16#1F460#), (+"sandal", 16#1F461#), (+"boot", 16#1F462#), (+"footprints", 16#1F463#), (+"bust_in_silhouette", 16#1F464#), (+"busts_in_silhouette", 16#1F465#), (+"boy", 16#1F466#), (+"girl", 16#1F467#), (+"man", 16#1F468#), (+"woman", 16#1F469#), (+"family", 16#1F46A#), (+"man_and_woman_holding_hands", 16#1F46B#), (+"two_men_holding_hands", 16#1F46C#), (+"two_women_holding_hands", 16#1F46D#), (+"cop", 16#1F46E#), (+"dancers", 16#1F46F#), (+"bride_with_veil", 16#1F470#), (+"person_with_blond_hair", 16#1F471#), (+"man_with_gua_pi_mao", 16#1F472#), (+"man_with_turban", 16#1F473#), (+"older_man", 16#1F474#), (+"older_woman", 16#1F475#), (+"baby", 16#1F476#), (+"construction_worker", 16#1F477#), (+"princess", 16#1F478#), (+"japanese_ogre", 16#1F479#), (+"japanese_goblin", 16#1F47A#), (+"ghost", 16#1F47B#), (+"angel", 16#1F47C#), (+"alien", 16#1F47D#), (+"space_invader", 16#1F47E#), (+"imp", 16#1F47F#), (+"skull", 16#1F480#), (+"information_desk_person", 16#1F481#), (+"guardsman", 16#1F482#), (+"dancer", 16#1F483#), (+"lipstick", 16#1F484#), (+"nail_care", 16#1F485#), (+"massage", 16#1F486#), (+"haircut", 16#1F487#), (+"barber", 16#1F488#), (+"syringe", 16#1F489#), (+"pill", 16#1F48A#), (+"kiss", 16#1F48B#), (+"love_letter", 16#1F48C#), (+"ring", 16#1F48D#), (+"gem", 16#1F48E#), (+"couplekiss", 16#1F48F#), (+"bouquet", 16#1F490#), (+"couple_with_heart", 16#1F491#), (+"wedding", 16#1F492#), (+"heartbeat", 16#1F493#), (+"broken_heart", 16#1F494#), (+"two_hearts", 16#1F495#), (+"sparkling_heart", 16#1F496#), (+"heartpulse", 16#1F497#), (+"cupid", 16#1F498#), (+"blue_heart", 16#1F499#), (+"green_heart", 16#1F49A#), (+"yellow_heart", 16#1F49B#), (+"purple_heart", 16#1F49C#), (+"gift_heart", 16#1F49D#), (+"revolving_hearts", 16#1F49E#), (+"heart_decoration", 16#1F49F#), (+"diamond_shape_with_a_dot_inside", 16#1F4A0#), (+"bulb", 16#1F4A1#), (+"anger", 16#1F4A2#), (+"bomb", 16#1F4A3#), (+"zzz", 16#1F4A4#), (+"boom", 16#1F4A5#), (+"sweat_drops", 16#1F4A6#), (+"droplet", 16#1F4A7#), (+"dash", 16#1F4A8#), (+"hankey", 16#1F4A9#), (+"muscle", 16#1F4AA#), (+"dizzy", 16#1F4AB#), (+"speech_balloon", 16#1F4AC#), (+"thought_balloon", 16#1F4AD#), (+"white_flower", 16#1F4AE#), (+"100", 16#1F4AF#), (+"moneybag", 16#1F4B0#), (+"currency_exchange", 16#1F4B1#), (+"heavy_dollar_sign", 16#1F4B2#), (+"credit_card", 16#1F4B3#), (+"yen", 16#1F4B4#), (+"dollar", 16#1F4B5#), (+"euro", 16#1F4B6#), (+"pound", 16#1F4B7#), (+"money_with_wings", 16#1F4B8#), (+"chart", 16#1F4B9#), (+"seat", 16#1F4BA#), (+"computer", 16#1F4BB#), (+"briefcase", 16#1F4BC#), (+"minidisc", 16#1F4BD#), (+"floppy_disk", 16#1F4BE#), (+"cd", 16#1F4BF#), (+"dvd", 16#1F4C0#), (+"file_folder", 16#1F4C1#), (+"open_file_folder", 16#1F4C2#), (+"page_with_curl", 16#1F4C3#), (+"page_facing_up", 16#1F4C4#), (+"date", 16#1F4C5#), (+"calendar", 16#1F4C6#), (+"card_index", 16#1F4C7#), (+"chart_with_upwards_trend", 16#1F4C8#), (+"chart_with_downwards_trend", 16#1F4C9#), (+"bar_chart", 16#1F4CA#), (+"clipboard", 16#1F4CB#), (+"pushpin", 16#1F4CC#), (+"round_pushpin", 16#1F4CD#), (+"paperclip", 16#1F4CE#), (+"straight_ruler", 16#1F4CF#), (+"triangular_ruler", 16#1F4D0#), (+"bookmark_tabs", 16#1F4D1#), (+"ledger", 16#1F4D2#), (+"notebook", 16#1F4D3#), (+"notebook_with_decorative_cover", 16#1F4D4#), (+"closed_book", 16#1F4D5#), (+"book", 16#1F4D6#), (+"green_book", 16#1F4D7#), (+"blue_book", 16#1F4D8#), (+"orange_book", 16#1F4D9#), (+"books", 16#1F4DA#), (+"name_badge", 16#1F4DB#), (+"scroll", 16#1F4DC#), (+"memo", 16#1F4DD#), (+"telephone_receiver", 16#1F4DE#), (+"pager", 16#1F4DF#), (+"fax", 16#1F4E0#), (+"satellite_antenna", 16#1F4E1#), (+"loudspeaker", 16#1F4E2#), (+"mega", 16#1F4E3#), (+"outbox_tray", 16#1F4E4#), (+"inbox_tray", 16#1F4E5#), (+"package", 16#1F4E6#), (+"e-mail", 16#1F4E7#), (+"incoming_envelope", 16#1F4E8#), (+"envelope_with_arrow", 16#1F4E9#), (+"mailbox_closed", 16#1F4EA#), (+"mailbox", 16#1F4EB#), (+"mailbox_with_mail", 16#1F4EC#), (+"mailbox_with_no_mail", 16#1F4ED#), (+"postbox", 16#1F4EE#), (+"postal_horn", 16#1F4EF#), (+"newspaper", 16#1F4F0#), (+"iphone", 16#1F4F1#), (+"calling", 16#1F4F2#), (+"vibration_mode", 16#1F4F3#), (+"mobile_phone_off", 16#1F4F4#), (+"no_mobile_phones", 16#1F4F5#), (+"signal_strength", 16#1F4F6#), (+"camera", 16#1F4F7#), (+"camera_with_flash", 16#1F4F8#), (+"video_camera", 16#1F4F9#), (+"tv", 16#1F4FA#), (+"radio", 16#1F4FB#), (+"vhs", 16#1F4FC#), (+"prayer_beads", 16#1F4FF#), (+"twisted_rightwards_arrows", 16#1F500#), (+"repeat", 16#1F501#), (+"repeat_one", 16#1F502#), (+"arrows_clockwise", 16#1F503#), (+"arrows_counterclockwise", 16#1F504#), (+"low_brightness", 16#1F505#), (+"high_brightness", 16#1F506#), (+"mute", 16#1F507#), (+"speaker", 16#1F508#), (+"sound", 16#1F509#), (+"loud_sound", 16#1F50A#), (+"battery", 16#1F50B#), (+"electric_plug", 16#1F50C#), (+"mag", 16#1F50D#), (+"mag_right", 16#1F50E#), (+"lock_with_ink_pen", 16#1F50F#), (+"closed_lock_with_key", 16#1F510#), (+"key", 16#1F511#), (+"lock", 16#1F512#), (+"unlock", 16#1F513#), (+"bell", 16#1F514#), (+"no_bell", 16#1F515#), (+"bookmark", 16#1F516#), (+"link", 16#1F517#), (+"radio_button", 16#1F518#), (+"back", 16#1F519#), (+"end", 16#1F51A#), (+"on", 16#1F51B#), (+"soon", 16#1F51C#), (+"top", 16#1F51D#), (+"underage", 16#1F51E#), (+"keycap_ten", 16#1F51F#), (+"capital_abcd", 16#1F520#), (+"abcd", 16#1F521#), (+"1234", 16#1F522#), (+"symbols", 16#1F523#), (+"abc", 16#1F524#), (+"fire", 16#1F525#), (+"flashlight", 16#1F526#), (+"wrench", 16#1F527#), (+"hammer", 16#1F528#), (+"nut_and_bolt", 16#1F529#), (+"hocho", 16#1F52A#), (+"gun", 16#1F52B#), (+"microscope", 16#1F52C#), (+"telescope", 16#1F52D#), (+"crystal_ball", 16#1F52E#), (+"six_pointed_star", 16#1F52F#), (+"beginner", 16#1F530#), (+"trident", 16#1F531#), (+"black_square_button", 16#1F532#), (+"white_square_button", 16#1F533#), (+"red_circle", 16#1F534#), (+"large_blue_circle", 16#1F535#), (+"large_orange_diamond", 16#1F536#), (+"large_blue_diamond", 16#1F537#), (+"small_orange_diamond", 16#1F538#), (+"small_blue_diamond", 16#1F539#), (+"small_red_triangle", 16#1F53A#), (+"small_red_triangle_down", 16#1F53B#), (+"arrow_up_small", 16#1F53C#), (+"arrow_down_small", 16#1F53D#), (+"kaaba", 16#1F54B#), (+"mosque", 16#1F54C#), (+"synagogue", 16#1F54D#), (+"menorah_with_nine_branches", 16#1F54E#), (+"clock1", 16#1F550#), (+"clock2", 16#1F551#), (+"clock3", 16#1F552#), (+"clock4", 16#1F553#), (+"clock5", 16#1F554#), (+"clock6", 16#1F555#), (+"clock7", 16#1F556#), (+"clock8", 16#1F557#), (+"clock9", 16#1F558#), (+"clock10", 16#1F559#), (+"clock11", 16#1F55A#), (+"clock12", 16#1F55B#), (+"clock130", 16#1F55C#), (+"clock230", 16#1F55D#), (+"clock330", 16#1F55E#), (+"clock430", 16#1F55F#), (+"clock530", 16#1F560#), (+"clock630", 16#1F561#), (+"clock730", 16#1F562#), (+"clock830", 16#1F563#), (+"clock930", 16#1F564#), (+"clock1030", 16#1F565#), (+"clock1130", 16#1F566#), (+"clock1230", 16#1F567#), (+"man_dancing", 16#1F57A#), (+"middle_finger", 16#1F595#), (+"spock-hand", 16#1F596#), (+"black_heart", 16#1F5A4#), (+"mount_fuji", 16#1F5FB#), (+"tokyo_tower", 16#1F5FC#), (+"statue_of_liberty", 16#1F5FD#), (+"japan", 16#1F5FE#), (+"moyai", 16#1F5FF#), (+"grinning", 16#1F600#), (+"grin", 16#1F601#), (+"joy", 16#1F602#), (+"smiley", 16#1F603#), (+"smile", 16#1F604#), (+"sweat_smile", 16#1F605#), (+"laughing", 16#1F606#), (+"innocent", 16#1F607#), (+"smiling_imp", 16#1F608#), (+"wink", 16#1F609#), (+"blush", 16#1F60A#), (+"yum", 16#1F60B#), (+"relieved", 16#1F60C#), (+"heart_eyes", 16#1F60D#), (+"sunglasses", 16#1F60E#), (+"smirk", 16#1F60F#), (+"neutral_face", 16#1F610#), (+"expressionless", 16#1F611#), (+"unamused", 16#1F612#), (+"sweat", 16#1F613#), (+"pensive", 16#1F614#), (+"confused", 16#1F615#), (+"confounded", 16#1F616#), (+"kissing", 16#1F617#), (+"kissing_heart", 16#1F618#), (+"kissing_smiling_eyes", 16#1F619#), (+"kissing_closed_eyes", 16#1F61A#), (+"stuck_out_tongue", 16#1F61B#), (+"stuck_out_tongue_winking_eye", 16#1F61C#), (+"stuck_out_tongue_closed_eyes", 16#1F61D#), (+"disappointed", 16#1F61E#), (+"worried", 16#1F61F#), (+"angry", 16#1F620#), (+"rage", 16#1F621#), (+"cry", 16#1F622#), (+"persevere", 16#1F623#), (+"triumph", 16#1F624#), (+"disappointed_relieved", 16#1F625#), (+"frowning", 16#1F626#), (+"anguished", 16#1F627#), (+"fearful", 16#1F628#), (+"weary", 16#1F629#), (+"sleepy", 16#1F62A#), (+"tired_face", 16#1F62B#), (+"grimacing", 16#1F62C#), (+"sob", 16#1F62D#), (+"open_mouth", 16#1F62E#), (+"hushed", 16#1F62F#), (+"cold_sweat", 16#1F630#), (+"scream", 16#1F631#), (+"astonished", 16#1F632#), (+"flushed", 16#1F633#), (+"sleeping", 16#1F634#), (+"dizzy_face", 16#1F635#), (+"no_mouth", 16#1F636#), (+"mask", 16#1F637#), (+"smile_cat", 16#1F638#), (+"joy_cat", 16#1F639#), (+"smiley_cat", 16#1F63A#), (+"heart_eyes_cat", 16#1F63B#), (+"smirk_cat", 16#1F63C#), (+"kissing_cat", 16#1F63D#), (+"pouting_cat", 16#1F63E#), (+"crying_cat_face", 16#1F63F#), (+"scream_cat", 16#1F640#), (+"slightly_frowning_face", 16#1F641#), (+"slightly_smiling_face", 16#1F642#), (+"upside_down_face", 16#1F643#), (+"face_with_rolling_eyes", 16#1F644#), (+"no_good", 16#1F645#), (+"ok_woman", 16#1F646#), (+"bow", 16#1F647#), (+"see_no_evil", 16#1F648#), (+"hear_no_evil", 16#1F649#), (+"speak_no_evil", 16#1F64A#), (+"raising_hand", 16#1F64B#), (+"raised_hands", 16#1F64C#), (+"person_frowning", 16#1F64D#), (+"person_with_pouting_face", 16#1F64E#), (+"pray", 16#1F64F#), (+"rocket", 16#1F680#), (+"helicopter", 16#1F681#), (+"steam_locomotive", 16#1F682#), (+"railway_car", 16#1F683#), (+"bullettrain_side", 16#1F684#), (+"bullettrain_front", 16#1F685#), (+"train2", 16#1F686#), (+"metro", 16#1F687#), (+"light_rail", 16#1F688#), (+"station", 16#1F689#), (+"tram", 16#1F68A#), (+"train", 16#1F68B#), (+"bus", 16#1F68C#), (+"oncoming_bus", 16#1F68D#), (+"trolleybus", 16#1F68E#), (+"busstop", 16#1F68F#), (+"minibus", 16#1F690#), (+"ambulance", 16#1F691#), (+"fire_engine", 16#1F692#), (+"police_car", 16#1F693#), (+"oncoming_police_car", 16#1F694#), (+"taxi", 16#1F695#), (+"oncoming_taxi", 16#1F696#), (+"car", 16#1F697#), (+"oncoming_automobile", 16#1F698#), (+"blue_car", 16#1F699#), (+"truck", 16#1F69A#), (+"articulated_lorry", 16#1F69B#), (+"tractor", 16#1F69C#), (+"monorail", 16#1F69D#), (+"mountain_railway", 16#1F69E#), (+"suspension_railway", 16#1F69F#), (+"mountain_cableway", 16#1F6A0#), (+"aerial_tramway", 16#1F6A1#), (+"ship", 16#1F6A2#), (+"rowboat", 16#1F6A3#), (+"speedboat", 16#1F6A4#), (+"traffic_light", 16#1F6A5#), (+"vertical_traffic_light", 16#1F6A6#), (+"construction", 16#1F6A7#), (+"rotating_light", 16#1F6A8#), (+"triangular_flag_on_post", 16#1F6A9#), (+"door", 16#1F6AA#), (+"no_entry_sign", 16#1F6AB#), (+"smoking", 16#1F6AC#), (+"no_smoking", 16#1F6AD#), (+"put_litter_in_its_place", 16#1F6AE#), (+"do_not_litter", 16#1F6AF#), (+"potable_water", 16#1F6B0#), (+"non-potable_water", 16#1F6B1#), (+"bike", 16#1F6B2#), (+"no_bicycles", 16#1F6B3#), (+"bicyclist", 16#1F6B4#), (+"mountain_bicyclist", 16#1F6B5#), (+"walking", 16#1F6B6#), (+"no_pedestrians", 16#1F6B7#), (+"children_crossing", 16#1F6B8#), (+"mens", 16#1F6B9#), (+"womens", 16#1F6BA#), (+"restroom", 16#1F6BB#), (+"baby_symbol", 16#1F6BC#), (+"toilet", 16#1F6BD#), (+"wc", 16#1F6BE#), (+"shower", 16#1F6BF#), (+"bath", 16#1F6C0#), (+"bathtub", 16#1F6C1#), (+"passport_control", 16#1F6C2#), (+"customs", 16#1F6C3#), (+"baggage_claim", 16#1F6C4#), (+"left_luggage", 16#1F6C5#), (+"sleeping_accommodation", 16#1F6CC#), (+"place_of_worship", 16#1F6D0#), (+"octagonal_sign", 16#1F6D1#), (+"shopping_trolley", 16#1F6D2#), (+"hindu_temple", 16#1F6D5#), (+"hut", 16#1F6D6#), (+"elevator", 16#1F6D7#), (+"airplane_departure", 16#1F6EB#), (+"airplane_arriving", 16#1F6EC#), (+"scooter", 16#1F6F4#), (+"motor_scooter", 16#1F6F5#), (+"canoe", 16#1F6F6#), (+"sled", 16#1F6F7#), (+"flying_saucer", 16#1F6F8#), (+"skateboard", 16#1F6F9#), (+"auto_rickshaw", 16#1F6FA#), (+"pickup_truck", 16#1F6FB#), (+"roller_skate", 16#1F6FC#), (+"large_orange_circle", 16#1F7E0#), (+"large_yellow_circle", 16#1F7E1#), (+"large_green_circle", 16#1F7E2#), (+"large_purple_circle", 16#1F7E3#), (+"large_brown_circle", 16#1F7E4#), (+"large_red_square", 16#1F7E5#), (+"large_blue_square", 16#1F7E6#), (+"large_orange_square", 16#1F7E7#), (+"large_yellow_square", 16#1F7E8#), (+"large_green_square", 16#1F7E9#), (+"large_purple_square", 16#1F7EA#), (+"large_brown_square", 16#1F7EB#), (+"pinched_fingers", 16#1F90C#), (+"white_heart", 16#1F90D#), (+"brown_heart", 16#1F90E#), (+"pinching_hand", 16#1F90F#), (+"zipper_mouth_face", 16#1F910#), (+"money_mouth_face", 16#1F911#), (+"face_with_thermometer", 16#1F912#), (+"nerd_face", 16#1F913#), (+"thinking_face", 16#1F914#), (+"face_with_head_bandage", 16#1F915#), (+"robot_face", 16#1F916#), (+"hugging_face", 16#1F917#), (+"the_horns", 16#1F918#), (+"call_me_hand", 16#1F919#), (+"raised_back_of_hand", 16#1F91A#), (+"left-facing_fist", 16#1F91B#), (+"right-facing_fist", 16#1F91C#), (+"handshake", 16#1F91D#), (+"crossed_fingers", 16#1F91E#), (+"i_love_you_hand_sign", 16#1F91F#), (+"face_with_cowboy_hat", 16#1F920#), (+"clown_face", 16#1F921#), (+"nauseated_face", 16#1F922#), (+"rolling_on_the_floor_laughing", 16#1F923#), (+"drooling_face", 16#1F924#), (+"lying_face", 16#1F925#), (+"face_palm", 16#1F926#), (+"sneezing_face", 16#1F927#), (+"face_with_raised_eyebrow", 16#1F928#), (+"star-struck", 16#1F929#), (+"zany_face", 16#1F92A#), (+"shushing_face", 16#1F92B#), (+"face_with_symbols_on_mouth", 16#1F92C#), (+"face_with_hand_over_mouth", 16#1F92D#), (+"face_vomiting", 16#1F92E#), (+"exploding_head", 16#1F92F#), (+"pregnant_woman", 16#1F930#), (+"breast-feeding", 16#1F931#), (+"palms_up_together", 16#1F932#), (+"selfie", 16#1F933#), (+"prince", 16#1F934#), (+"person_in_tuxedo", 16#1F935#), (+"mrs_claus", 16#1F936#), (+"shrug", 16#1F937#), (+"person_doing_cartwheel", 16#1F938#), (+"juggling", 16#1F939#), (+"fencer", 16#1F93A#), (+"wrestlers", 16#1F93C#), (+"water_polo", 16#1F93D#), (+"handball", 16#1F93E#), (+"diving_mask", 16#1F93F#), (+"wilted_flower", 16#1F940#), (+"drum_with_drumsticks", 16#1F941#), (+"clinking_glasses", 16#1F942#), (+"tumbler_glass", 16#1F943#), (+"spoon", 16#1F944#), (+"goal_net", 16#1F945#), (+"first_place_medal", 16#1F947#), (+"second_place_medal", 16#1F948#), (+"third_place_medal", 16#1F949#), (+"boxing_glove", 16#1F94A#), (+"martial_arts_uniform", 16#1F94B#), (+"curling_stone", 16#1F94C#), (+"lacrosse", 16#1F94D#), (+"softball", 16#1F94E#), (+"flying_disc", 16#1F94F#), (+"croissant", 16#1F950#), (+"avocado", 16#1F951#), (+"cucumber", 16#1F952#), (+"bacon", 16#1F953#), (+"potato", 16#1F954#), (+"carrot", 16#1F955#), (+"baguette_bread", 16#1F956#), (+"green_salad", 16#1F957#), (+"shallow_pan_of_food", 16#1F958#), (+"stuffed_flatbread", 16#1F959#), (+"egg", 16#1F95A#), (+"glass_of_milk", 16#1F95B#), (+"peanuts", 16#1F95C#), (+"kiwifruit", 16#1F95D#), (+"pancakes", 16#1F95E#), (+"dumpling", 16#1F95F#), (+"fortune_cookie", 16#1F960#), (+"takeout_box", 16#1F961#), (+"chopsticks", 16#1F962#), (+"bowl_with_spoon", 16#1F963#), (+"cup_with_straw", 16#1F964#), (+"coconut", 16#1F965#), (+"broccoli", 16#1F966#), (+"pie", 16#1F967#), (+"pretzel", 16#1F968#), (+"cut_of_meat", 16#1F969#), (+"sandwich", 16#1F96A#), (+"canned_food", 16#1F96B#), (+"leafy_green", 16#1F96C#), (+"mango", 16#1F96D#), (+"moon_cake", 16#1F96E#), (+"bagel", 16#1F96F#), (+"smiling_face_with_3_hearts", 16#1F970#), (+"yawning_face", 16#1F971#), (+"smiling_face_with_tear", 16#1F972#), (+"partying_face", 16#1F973#), (+"woozy_face", 16#1F974#), (+"hot_face", 16#1F975#), (+"cold_face", 16#1F976#), (+"ninja", 16#1F977#), (+"disguised_face", 16#1F978#), (+"pleading_face", 16#1F97A#), (+"sari", 16#1F97B#), (+"lab_coat", 16#1F97C#), (+"goggles", 16#1F97D#), (+"hiking_boot", 16#1F97E#), (+"womans_flat_shoe", 16#1F97F#), (+"crab", 16#1F980#), (+"lion_face", 16#1F981#), (+"scorpion", 16#1F982#), (+"turkey", 16#1F983#), (+"unicorn_face", 16#1F984#), (+"eagle", 16#1F985#), (+"duck", 16#1F986#), (+"bat", 16#1F987#), (+"shark", 16#1F988#), (+"owl", 16#1F989#), (+"fox_face", 16#1F98A#), (+"butterfly", 16#1F98B#), (+"deer", 16#1F98C#), (+"gorilla", 16#1F98D#), (+"lizard", 16#1F98E#), (+"rhinoceros", 16#1F98F#), (+"shrimp", 16#1F990#), (+"squid", 16#1F991#), (+"giraffe_face", 16#1F992#), (+"zebra_face", 16#1F993#), (+"hedgehog", 16#1F994#), (+"sauropod", 16#1F995#), (+"t-rex", 16#1F996#), (+"cricket", 16#1F997#), (+"kangaroo", 16#1F998#), (+"llama", 16#1F999#), (+"peacock", 16#1F99A#), (+"hippopotamus", 16#1F99B#), (+"parrot", 16#1F99C#), (+"raccoon", 16#1F99D#), (+"lobster", 16#1F99E#), (+"mosquito", 16#1F99F#), (+"microbe", 16#1F9A0#), (+"badger", 16#1F9A1#), (+"swan", 16#1F9A2#), (+"mammoth", 16#1F9A3#), (+"dodo", 16#1F9A4#), (+"sloth", 16#1F9A5#), (+"otter", 16#1F9A6#), (+"orangutan", 16#1F9A7#), (+"skunk", 16#1F9A8#), (+"flamingo", 16#1F9A9#), (+"oyster", 16#1F9AA#), (+"beaver", 16#1F9AB#), (+"bison", 16#1F9AC#), (+"seal", 16#1F9AD#), (+"guide_dog", 16#1F9AE#), (+"probing_cane", 16#1F9AF#), (+"bone", 16#1F9B4#), (+"leg", 16#1F9B5#), (+"foot", 16#1F9B6#), (+"tooth", 16#1F9B7#), (+"superhero", 16#1F9B8#), (+"supervillain", 16#1F9B9#), (+"safety_vest", 16#1F9BA#), (+"ear_with_hearing_aid", 16#1F9BB#), (+"motorized_wheelchair", 16#1F9BC#), (+"manual_wheelchair", 16#1F9BD#), (+"mechanical_arm", 16#1F9BE#), (+"mechanical_leg", 16#1F9BF#), (+"cheese_wedge", 16#1F9C0#), (+"cupcake", 16#1F9C1#), (+"salt", 16#1F9C2#), (+"beverage_box", 16#1F9C3#), (+"garlic", 16#1F9C4#), (+"onion", 16#1F9C5#), (+"falafel", 16#1F9C6#), (+"waffle", 16#1F9C7#), (+"butter", 16#1F9C8#), (+"mate_drink", 16#1F9C9#), (+"ice_cube", 16#1F9CA#), (+"bubble_tea", 16#1F9CB#), (+"standing_person", 16#1F9CD#), (+"kneeling_person", 16#1F9CE#), (+"deaf_person", 16#1F9CF#), (+"face_with_monocle", 16#1F9D0#), (+"adult", 16#1F9D1#), (+"child", 16#1F9D2#), (+"older_adult", 16#1F9D3#), (+"bearded_person", 16#1F9D4#), (+"person_with_headscarf", 16#1F9D5#), (+"person_in_steamy_room", 16#1F9D6#), (+"person_climbing", 16#1F9D7#), (+"person_in_lotus_position", 16#1F9D8#), (+"mage", 16#1F9D9#), (+"fairy", 16#1F9DA#), (+"vampire", 16#1F9DB#), (+"merperson", 16#1F9DC#), (+"elf", 16#1F9DD#), (+"genie", 16#1F9DE#), (+"zombie", 16#1F9DF#), (+"brain", 16#1F9E0#), (+"orange_heart", 16#1F9E1#), (+"billed_cap", 16#1F9E2#), (+"scarf", 16#1F9E3#), (+"gloves", 16#1F9E4#), (+"coat", 16#1F9E5#), (+"socks", 16#1F9E6#), (+"red_envelope", 16#1F9E7#), (+"firecracker", 16#1F9E8#), (+"jigsaw", 16#1F9E9#), (+"test_tube", 16#1F9EA#), (+"petri_dish", 16#1F9EB#), (+"dna", 16#1F9EC#), (+"compass", 16#1F9ED#), (+"abacus", 16#1F9EE#), (+"fire_extinguisher", 16#1F9EF#), (+"toolbox", 16#1F9F0#), (+"bricks", 16#1F9F1#), (+"magnet", 16#1F9F2#), (+"luggage", 16#1F9F3#), (+"lotion_bottle", 16#1F9F4#), (+"thread", 16#1F9F5#), (+"yarn", 16#1F9F6#), (+"safety_pin", 16#1F9F7#), (+"teddy_bear", 16#1F9F8#), (+"broom", 16#1F9F9#), (+"basket", 16#1F9FA#), (+"roll_of_paper", 16#1F9FB#), (+"soap", 16#1F9FC#), (+"sponge", 16#1F9FD#), (+"receipt", 16#1F9FE#), (+"nazar_amulet", 16#1F9FF#), (+"ballet_shoes", 16#1FA70#), (+"one-piece_swimsuit", 16#1FA71#), (+"briefs", 16#1FA72#), (+"shorts", 16#1FA73#), (+"thong_sandal", 16#1FA74#), (+"drop_of_blood", 16#1FA78#), (+"adhesive_bandage", 16#1FA79#), (+"stethoscope", 16#1FA7A#), (+"yo-yo", 16#1FA80#), (+"kite", 16#1FA81#), (+"parachute", 16#1FA82#), (+"boomerang", 16#1FA83#), (+"magic_wand", 16#1FA84#), (+"pinata", 16#1FA85#), (+"nesting_dolls", 16#1FA86#), (+"ringed_planet", 16#1FA90#), (+"chair", 16#1FA91#), (+"razor", 16#1FA92#), (+"axe", 16#1FA93#), (+"diya_lamp", 16#1FA94#), (+"banjo", 16#1FA95#), (+"military_helmet", 16#1FA96#), (+"accordion", 16#1FA97#), (+"long_drum", 16#1FA98#), (+"coin", 16#1FA99#), (+"carpentry_saw", 16#1FA9A#), (+"screwdriver", 16#1FA9B#), (+"ladder", 16#1FA9C#), (+"hook", 16#1FA9D#), (+"mirror", 16#1FA9E#), (+"window", 16#1FA9F#), (+"plunger", 16#1FAA0#), (+"sewing_needle", 16#1FAA1#), (+"knot", 16#1FAA2#), (+"bucket", 16#1FAA3#), (+"mouse_trap", 16#1FAA4#), (+"toothbrush", 16#1FAA5#), (+"headstone", 16#1FAA6#), (+"placard", 16#1FAA7#), (+"rock", 16#1FAA8#), (+"fly", 16#1FAB0#), (+"worm", 16#1FAB1#), (+"beetle", 16#1FAB2#), (+"cockroach", 16#1FAB3#), (+"potted_plant", 16#1FAB4#), (+"wood", 16#1FAB5#), (+"feather", 16#1FAB6#), (+"anatomical_heart", 16#1FAC0#), (+"lungs", 16#1FAC1#), (+"people_hugging", 16#1FAC2#), (+"blueberries", 16#1FAD0#), (+"bell_pepper", 16#1FAD1#), (+"olive", 16#1FAD2#), (+"flatbread", 16#1FAD3#), (+"tamale", 16#1FAD4#), (+"fondue", 16#1FAD5#), (+"teapot", 16#1FAD6#), (+"watch", 16#231A#), (+"hourglass", 16#231B#), (+"fast_forward", 16#23E9#), (+"rewind", 16#23EA#), (+"arrow_double_up", 16#23EB#), (+"arrow_double_down", 16#23EC#), (+"alarm_clock", 16#23F0#), (+"hourglass_flowing_sand", 16#23F3#), (+"white_medium_small_square", 16#25FD#), (+"black_medium_small_square", 16#25FE#), (+"umbrella_with_rain_drops", 16#2614#), (+"coffee", 16#2615#), (+"aries", 16#2648#), (+"taurus", 16#2649#), (+"gemini", 16#264A#), (+"cancer", 16#264B#), (+"leo", 16#264C#), (+"virgo", 16#264D#), (+"libra", 16#264E#), (+"scorpius", 16#264F#), (+"sagittarius", 16#2650#), (+"capricorn", 16#2651#), (+"aquarius", 16#2652#), (+"pisces", 16#2653#), (+"wheelchair", 16#267F#), (+"anchor", 16#2693#), (+"zap", 16#26A1#), (+"white_circle", 16#26AA#), (+"black_circle", 16#26AB#), (+"soccer", 16#26BD#), (+"baseball", 16#26BE#), (+"snowman_without_snow", 16#26C4#), (+"partly_sunny", 16#26C5#), (+"ophiuchus", 16#26CE#), (+"no_entry", 16#26D4#), (+"church", 16#26EA#), (+"fountain", 16#26F2#), (+"golf", 16#26F3#), (+"boat", 16#26F5#), (+"tent", 16#26FA#), (+"fuelpump", 16#26FD#), (+"white_check_mark", 16#2705#), (+"fist", 16#270A#), (+"hand", 16#270B#), (+"sparkles", 16#2728#), (+"x", 16#274C#), (+"negative_squared_cross_mark", 16#274E#), (+"question", 16#2753#), (+"grey_question", 16#2754#), (+"grey_exclamation", 16#2755#), (+"exclamation", 16#2757#), (+"heavy_plus_sign", 16#2795#), (+"heavy_minus_sign", 16#2796#), (+"heavy_division_sign", 16#2797#), (+"curly_loop", 16#27B0#), (+"loop", 16#27BF#), (+"black_large_square", 16#2B1B#), (+"white_large_square", 16#2B1C#), (+"star", 16#2B50#), (+"o", 16#2B55#)); end Emojis;
programs/oeis/025/A025704.asm
neoneye/loda
22
173345
; A025704: Index of 4^n within sequence of numbers of form 4^i*7^j. ; 1,2,4,7,10,14,19,24,30,37,45,53,62,72,82,93,105,118,131,145,160,175,191,208,226,244,263,283,303,324,346,369,392,416,441,466,492,519,547,575,604,634,664,695,727,760,793,827,862,897,933,970,1008,1046,1085,1125,1165 mov $3,$0 add $3,1 mov $4,$0 lpb $3 mov $0,$4 mov $2,0 sub $3,1 sub $0,$3 add $2,$0 mul $0,3 mov $5,$2 cmp $5,0 add $2,$5 sub $0,$2 div $0,7 sub $2,$0 add $1,$2 lpe mov $0,$1
src/Categories/Utils/EqReasoning.agda
Trebor-Huang/agda-categories
279
2872
{-# OPTIONS --without-K --safe #-} module Categories.Utils.EqReasoning where open import Level open import Relation.Binary.PropositionalEquality open import Data.Product using (Σ; _,_; _×_) open import Categories.Utils.Product subst₂-sym-subst₂ : {ℓa ℓb ℓp : Level} {A : Set ℓa} {B : Set ℓb} {a₁ a₂ : A} {b₁ b₂ : B} (R : A → B → Set ℓp) {p : R a₁ b₁} (eq₁ : a₁ ≡ a₂) (eq₂ : b₁ ≡ b₂) → subst₂ R (sym eq₁) (sym eq₂) (subst₂ R eq₁ eq₂ p) ≡ p subst₂-sym-subst₂ R refl refl = refl subst₂-subst₂-sym : {ℓa ℓb ℓp : Level} {A : Set ℓa} {B : Set ℓb} {a₁ a₂ : A} {b₁ b₂ : B} (R : A → B → Set ℓp) {p : R a₁ b₁} (eq₁ : a₂ ≡ a₁) (eq₂ : b₂ ≡ b₁) → subst₂ R eq₁ eq₂ (subst₂ R (sym eq₁) (sym eq₂) p) ≡ p subst₂-subst₂-sym R refl refl = refl subst₂-subst₂ : {ℓa ℓb ℓp : Level} {A : Set ℓa} {B : Set ℓb} {a₁ a₂ a₃ : A} {b₁ b₂ b₃ : B} (R : A → B → Set ℓp) {p : R a₁ b₁} (eq-a₁₂ : a₁ ≡ a₂) (eq-a₂₃ : a₂ ≡ a₃) (eq-b₁₂ : b₁ ≡ b₂) (eq-b₂₃ : b₂ ≡ b₃) → subst₂ R eq-a₂₃ eq-b₂₃ (subst₂ R eq-a₁₂ eq-b₁₂ p) ≡ subst₂ R (trans eq-a₁₂ eq-a₂₃) (trans eq-b₁₂ eq-b₂₃) p subst₂-subst₂ R refl refl refl refl = refl subst₂-app : ∀ {a₁ a₂ a₃ a₄ b₁ b₂} {A₁ : Set a₁} {A₂ : Set a₂} {A₃ : Set a₃} {A₄ : Set a₄} (B₁ : A₁ → A₃ → Set b₁) {B₂ : A₂ → A₄ → Set b₂} {f : A₂ → A₁} {h : A₄ → A₃} {x₁ x₂ : A₂} {x₃ x₄ : A₄} (y : B₂ x₁ x₃) (g : ∀ w z → B₂ w z → B₁ (f w) (h z)) (eq₁ : x₁ ≡ x₂) (eq₂ : x₃ ≡ x₄) → subst₂ B₁ (cong f eq₁) (cong h eq₂) (g x₁ x₃ y) ≡ g x₂ x₄ (subst₂ B₂ eq₁ eq₂ y) subst₂-app _ _ _ refl refl = refl subst₂-prod : ∀ {ℓa ℓb ℓr ℓs} {A : Set ℓa} {B : Set ℓb} (R : A → A → Set ℓr) (S : B → B → Set ℓs) {a b c d : A} {x y z w : B} {f : R a b} {g : S x y} (eq₁ : a ≡ c) (eq₂ : b ≡ d) (eq₃ : x ≡ z) (eq₄ : y ≡ w) → subst₂ (λ { (p , q) (r , s) → R p r × S q s }) (sym (cong₂ _,_ (sym eq₁) (sym eq₃))) (sym (cong₂ _,_ (sym eq₂) (sym eq₄))) (f , g) ≡ (subst₂ R eq₁ eq₂ f , subst₂ S eq₃ eq₄ g) subst₂-prod R S refl refl refl refl = refl ------------------ -- For reasoning with things from Categories.Utils.Product subst₂-expand : ∀ {a b ℓ ℓ′ p q} {A : Set a} {B : Set b} {P : A → Set p} {Q : B → Set q} (_∙_ : A → B → Set ℓ) → (_∘_ : ∀ {x y} → P x → Q y → Set ℓ′) → {a₁ a₂ : A} {b₁ b₂ : B} {p₁ p₂ : P a₁} {q₁ q₂ : Q b₁} (eq₁ : a₁ ≡ a₂) (eq₂ : p₁ ≡ p₂) (eq₃ : b₁ ≡ b₂) (eq₄ : q₁ ≡ q₂) → (F : a₁ ∙ b₁) → (G : p₁ ∘ q₁) → subst₂ (_∙_ -< _×_ >- _∘_) (cong₂ _,_ eq₁ eq₂) (cong₂ _,_ eq₃ eq₄) (F , G) ≡ (subst₂ _∙_ eq₁ eq₃ F , subst₂ _∘_ eq₂ eq₄ G) subst₂-expand T₁ T₂ refl refl refl refl F G = refl
test/asset/agda-stdlib-1.0/Function/Endomorphism/Propositional.agda
omega12345/agda-mode
0
14487
<reponame>omega12345/agda-mode<filename>test/asset/agda-stdlib-1.0/Function/Endomorphism/Propositional.agda ------------------------------------------------------------------------ -- The Agda standard library -- -- Endomorphisms on a Set ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Function.Endomorphism.Propositional {a} (A : Set a) where open import Algebra using (Magma; Semigroup; Monoid) open import Algebra.FunctionProperties.Core using (Op₂) open import Algebra.Morphism; open Definitions open import Algebra.Structures using (IsMagma; IsSemigroup; IsMonoid) open import Data.Nat.Base using (ℕ; zero; suc; _+_) open import Data.Nat.Properties using (+-0-monoid; +-semigroup) open import Data.Product using (_,_) open import Function open import Function.Equality using (_⟨$⟩_) open import Relation.Binary using (_Preserves_⟶_) open import Relation.Binary.PropositionalEquality as P using (_≡_; refl) import Function.Endomorphism.Setoid (P.setoid A) as Setoid Endo : Set a Endo = A → A ------------------------------------------------------------------------ -- Conversion back and forth with the Setoid-based notion of Endomorphism fromSetoidEndo : Setoid.Endo → Endo fromSetoidEndo = _⟨$⟩_ toSetoidEndo : Endo → Setoid.Endo toSetoidEndo f = record { _⟨$⟩_ = f ; cong = P.cong f } ------------------------------------------------------------------------ -- N-th composition _^_ : Endo → ℕ → Endo f ^ zero = id f ^ suc n = f ∘′ (f ^ n) ^-homo : ∀ f → Homomorphic₂ ℕ Endo _≡_ (f ^_) _+_ _∘′_ ^-homo f zero n = refl ^-homo f (suc m) n = P.cong (f ∘′_) (^-homo f m n) ------------------------------------------------------------------------ -- Structures ∘-isMagma : IsMagma _≡_ (Op₂ Endo ∋ _∘′_) ∘-isMagma = record { isEquivalence = P.isEquivalence ; ∙-cong = P.cong₂ _∘′_ } ∘-magma : Magma _ _ ∘-magma = record { isMagma = ∘-isMagma } ∘-isSemigroup : IsSemigroup _≡_ (Op₂ Endo ∋ _∘′_) ∘-isSemigroup = record { isMagma = ∘-isMagma ; assoc = λ _ _ _ → refl } ∘-semigroup : Semigroup _ _ ∘-semigroup = record { isSemigroup = ∘-isSemigroup } ∘-id-isMonoid : IsMonoid _≡_ _∘′_ id ∘-id-isMonoid = record { isSemigroup = ∘-isSemigroup ; identity = (λ _ → refl) , (λ _ → refl) } ∘-id-monoid : Monoid _ _ ∘-id-monoid = record { isMonoid = ∘-id-isMonoid } ------------------------------------------------------------------------ -- Homomorphism ^-isSemigroupMorphism : ∀ f → IsSemigroupMorphism +-semigroup ∘-semigroup (f ^_) ^-isSemigroupMorphism f = record { ⟦⟧-cong = P.cong (f ^_) ; ∙-homo = ^-homo f } ^-isMonoidMorphism : ∀ f → IsMonoidMorphism +-0-monoid ∘-id-monoid (f ^_) ^-isMonoidMorphism f = record { sm-homo = ^-isSemigroupMorphism f ; ε-homo = refl }
test/Fail/ShapeIrrelevantParameterNoBecauseOfRecursion.agda
alhassy/agda
1
9684
<reponame>alhassy/agda {-# OPTIONS --experimental-irrelevance #-} module ShapeIrrelevantParameterNoBecauseOfRecursion where data ⊥ : Set where record ⊤ : Set where data Bool : Set where true false : Bool True : Bool → Set True false = ⊥ True true = ⊤ data D ..(b : Bool) : Set where c : True b → D b -- should fail -- Jesper, 2017-09-14: I think the definition of D is fine, but the definition -- of cast below should fail since `D a` and `D b` are different types. fromD : {b : Bool} → D b → True b fromD (c p) = p cast : .(a b : Bool) → D a → D b cast _ _ x = x bot : ⊥ bot = fromD (cast true false (c _))
Agda/abelian-subgroups.agda
UlrikBuchholtz/HoTT-Intro
333
2620
{-# OPTIONS --without-K --exact-split #-} module abelian-subgroups where import abelian-groups import subgroups open abelian-groups public open subgroups public {- Subsets of abelian groups -} subset-Ab : (l : Level) {l1 : Level} (A : Ab l1) → UU ((lsuc l) ⊔ l1) subset-Ab l A = subset-Group l (group-Ab A) is-set-subset-Ab : (l : Level) {l1 : Level} (A : Ab l1) → is-set (subset-Ab l A) is-set-subset-Ab l A = is-set-subset-Group l (group-Ab A) {- Defining subgroups -} contains-zero-subset-Ab : {l1 l2 : Level} (A : Ab l1) (P : subset-Ab l2 A) → UU l2 contains-zero-subset-Ab A = contains-unit-subset-Group (group-Ab A) is-prop-contains-zero-subset-Ab : {l1 l2 : Level} (A : Ab l1) (P : subset-Ab l2 A) → is-prop (contains-zero-subset-Ab A P) is-prop-contains-zero-subset-Ab A = is-prop-contains-unit-subset-Group (group-Ab A) closed-under-add-subset-Ab : {l1 l2 : Level} (A : Ab l1) (P : subset-Ab l2 A) → UU (l1 ⊔ l2) closed-under-add-subset-Ab A = closed-under-mul-subset-Group (group-Ab A) is-prop-closed-under-add-subset-Ab : {l1 l2 : Level} (A : Ab l1) (P : subset-Ab l2 A) → is-prop (closed-under-add-subset-Ab A P) is-prop-closed-under-add-subset-Ab A = is-prop-closed-under-mul-subset-Group (group-Ab A) closed-under-neg-subset-Ab : {l1 l2 : Level} (A : Ab l1) (P : subset-Ab l2 A) → UU (l1 ⊔ l2) closed-under-neg-subset-Ab A = closed-under-inv-subset-Group (group-Ab A) is-prop-closed-under-neg-subset-Ab : {l1 l2 : Level} (A : Ab l1) (P : subset-Ab l2 A) → is-prop (closed-under-neg-subset-Ab A P) is-prop-closed-under-neg-subset-Ab A = is-prop-closed-under-inv-subset-Group (group-Ab A) is-subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : subset-Ab l2 A) → UU (l1 ⊔ l2) is-subgroup-Ab A = is-subgroup-Group (group-Ab A) is-prop-is-subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : subset-Ab l2 A) → is-prop (is-subgroup-Ab A P) is-prop-is-subgroup-Ab A = is-prop-is-subgroup-Group (group-Ab A) {- Introducing the type of all subgroups of a group G -} Subgroup-Ab : (l : Level) {l1 : Level} (A : Ab l1) → UU ((lsuc l) ⊔ l1) Subgroup-Ab l A = Subgroup l (group-Ab A) subset-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) → ( Subgroup-Ab l2 A) → ( subset-Ab l2 A) subset-Subgroup-Ab A = subset-Subgroup (group-Ab A) is-emb-subset-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) → is-emb (subset-Subgroup-Ab {l2 = l2} A) is-emb-subset-Subgroup-Ab A = is-emb-subset-Subgroup (group-Ab A) type-subset-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → (type-Ab A → UU l2) type-subset-Subgroup-Ab A = type-subset-Subgroup (group-Ab A) is-prop-type-subset-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → (x : type-Ab A) → is-prop (type-subset-Subgroup-Ab A P x) is-prop-type-subset-Subgroup-Ab A = is-prop-type-subset-Subgroup (group-Ab A) is-subgroup-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → is-subgroup-Ab A (subset-Subgroup-Ab A P) is-subgroup-Subgroup-Ab A = is-subgroup-Subgroup (group-Ab A) contains-zero-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → contains-zero-subset-Ab A (subset-Subgroup-Ab A P) contains-zero-Subgroup-Ab A = contains-unit-Subgroup (group-Ab A) closed-under-add-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → closed-under-add-subset-Ab A (subset-Subgroup-Ab A P) closed-under-add-Subgroup-Ab A = closed-under-mul-Subgroup (group-Ab A) closed-under-neg-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → closed-under-neg-subset-Ab A (subset-Subgroup-Ab A P) closed-under-neg-Subgroup-Ab A = closed-under-inv-Subgroup (group-Ab A) {- Given a subgroup of an abelian group, we construct an abelian group -} type-ab-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → UU (l1 ⊔ l2) type-ab-Subgroup-Ab A = type-group-Subgroup (group-Ab A) incl-ab-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → type-ab-Subgroup-Ab A P → type-Ab A incl-ab-Subgroup-Ab A = incl-group-Subgroup (group-Ab A) is-emb-incl-ab-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → is-emb (incl-ab-Subgroup-Ab A P) is-emb-incl-ab-Subgroup-Ab A = is-emb-incl-group-Subgroup (group-Ab A) eq-subgroup-ab-eq-ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → {x y : type-ab-Subgroup-Ab A P} → Id (incl-ab-Subgroup-Ab A P x) (incl-ab-Subgroup-Ab A P y) → Id x y eq-subgroup-ab-eq-ab A = eq-subgroup-eq-group (group-Ab A) set-ab-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) → Subgroup-Ab l2 A → UU-Set (l1 ⊔ l2) set-ab-Subgroup-Ab A = set-group-Subgroup (group-Ab A) zero-ab-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → type-ab-Subgroup-Ab A P zero-ab-Subgroup-Ab A = unit-group-Subgroup (group-Ab A) add-ab-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → ( x y : type-ab-Subgroup-Ab A P) → type-ab-Subgroup-Ab A P add-ab-Subgroup-Ab A = mul-group-Subgroup (group-Ab A) neg-ab-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → type-ab-Subgroup-Ab A P → type-ab-Subgroup-Ab A P neg-ab-Subgroup-Ab A = inv-group-Subgroup (group-Ab A) is-associative-add-ab-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → ( x y z : type-ab-Subgroup-Ab A P) → Id (add-ab-Subgroup-Ab A P (add-ab-Subgroup-Ab A P x y) z) (add-ab-Subgroup-Ab A P x (add-ab-Subgroup-Ab A P y z)) is-associative-add-ab-Subgroup-Ab A = is-associative-mul-group-Subgroup (group-Ab A) left-zero-law-ab-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → ( x : type-ab-Subgroup-Ab A P) → Id (add-ab-Subgroup-Ab A P (zero-ab-Subgroup-Ab A P) x) x left-zero-law-ab-Subgroup-Ab A = left-unit-law-group-Subgroup (group-Ab A) right-zero-law-ab-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → ( x : type-ab-Subgroup-Ab A P) → Id (add-ab-Subgroup-Ab A P x (zero-ab-Subgroup-Ab A P)) x right-zero-law-ab-Subgroup-Ab A = right-unit-law-group-Subgroup (group-Ab A) left-neg-law-ab-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → ( x : type-ab-Subgroup-Ab A P) → Id ( add-ab-Subgroup-Ab A P (neg-ab-Subgroup-Ab A P x) x) ( zero-ab-Subgroup-Ab A P) left-neg-law-ab-Subgroup-Ab A = left-inverse-law-group-Subgroup (group-Ab A) right-neg-law-ab-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → ( x : type-ab-Subgroup-Ab A P) → Id ( add-ab-Subgroup-Ab A P x (neg-ab-Subgroup-Ab A P x)) ( zero-ab-Subgroup-Ab A P) right-neg-law-ab-Subgroup-Ab A = right-inverse-law-group-Subgroup (group-Ab A) is-commutative-add-ab-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → ( x y : type-ab-Subgroup-Ab A P) → Id ( add-ab-Subgroup-Ab A P x y) (add-ab-Subgroup-Ab A P y x) is-commutative-add-ab-Subgroup-Ab A P (pair x p) (pair y q) = eq-subgroup-ab-eq-ab A P (is-commutative-add-Ab A x y) ab-Subgroup-Ab : {l1 l2 : Level} (A : Ab l1) → Subgroup-Ab l2 A → Ab (l1 ⊔ l2) ab-Subgroup-Ab A P = pair (group-Subgroup (group-Ab A) P) (is-commutative-add-ab-Subgroup-Ab A P) {- We show that the inclusion from ab-Subgroup-Ab A P → A is a group homomorphism -} preserves-add-incl-ab-Subgroup-Ab : { l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → preserves-add (ab-Subgroup-Ab A P) A (incl-ab-Subgroup-Ab A P) preserves-add-incl-ab-Subgroup-Ab A = preserves-mul-incl-group-Subgroup (group-Ab A) hom-ab-Subgroup-Ab : { l1 l2 : Level} (A : Ab l1) (P : Subgroup-Ab l2 A) → hom-Ab (ab-Subgroup-Ab A P) A hom-ab-Subgroup-Ab A = hom-group-Subgroup (group-Ab A) {- We define another type of subgroups of A as the type of group inclusions -} emb-Ab : { l1 l2 : Level} (A : Ab l1) (B : Ab l2) → UU (l1 ⊔ l2) emb-Ab A B = emb-Group (group-Ab A) (group-Ab B) emb-Ab-Slice : (l : Level) {l1 : Level} (A : Ab l1) → UU ((lsuc l) ⊔ l1) emb-Ab-Slice l A = emb-Group-Slice l (group-Ab A) emb-ab-slice-Subgroup-Ab : { l1 l2 : Level} (A : Ab l1) → Subgroup-Ab l2 A → emb-Ab-Slice (l1 ⊔ l2) A emb-ab-slice-Subgroup-Ab A = emb-group-slice-Subgroup (group-Ab A)
Laburi/Lab7/0-mean/0-recap-mean.asm
DanBrezeanu/IOCLA
2
26177
%include "io.inc" %define ARRAY_SIZE 13 %define DECIMAL_PLACES 5 section .data num_array dw 76, 12, 65, 19, 781, 671, 431, 761, 782, 12, 91, 25, 9 array_sum_prefix db "Sum of numbers: ",0 array_mean_prefix db "Numbers mean: ",0 decimal_point db ".",0 section .text global CMAIN CMAIN: xor eax, eax mov ecx, ARRAY_SIZE ; TODO1 - compute the sum of the vector numbers - store it in ax sum_array: add ax, [num_array + (ecx - 1) * 2] loop sum_array PRINT_STRING array_sum_prefix PRINT_UDEC 2, ax NEWLINE ; TODO2 - compute the quotient of the mean xor dx, dx mov cx, ARRAY_SIZE div cx PRINT_STRING array_mean_prefix PRINT_UDEC 2, ax PRINT_STRING decimal_point mov ecx, DECIMAL_PLACES compute_decimal_place: ; TODO3 - compute the current decimal place - store it in ax mov ax, 10 mul dx xor dx, dx mov bx, ARRAY_SIZE div bx PRINT_UDEC 2, ax dec ecx cmp ecx, 0 jg compute_decimal_place NEWLINE xor eax, eax ret
game/data/tilesets/magma.asm
benoitryder/super-tilt-bro
91
18017
TILESET_MAGMA_BANK_NUMBER = CURRENT_BANK_NUMBER tileset_magma: ; Tileset's size in tiles (zero means 256) .byt $32 TILESET_MAGMA_0 = (*-(tileset_magma+1))/16 .byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000 .byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000 TILESET_MAGMA_1 = (*-(tileset_magma+1))/16 .byt %11010101, %11101011, %11010111, %11101111, %11110111, %11111111, %11111111, %11111111 .byt %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %11111111 TILESET_MAGMA_2 = (*-(tileset_magma+1))/16 .byt %01111110, %00111100, %00111100, %00011000, %00011000, %10000000, %01000001, %10100010 .byt %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %11111111 TILESET_MAGMA_3 = (*-(tileset_magma+1))/16 .byt %00000000, %00001000, %00011100, %01111110, %01111111, %11111111, %11111111, %11111111 .byt %00011000, %00010100, %01100010, %10000001, %10000000, %00000000, %01111110, %11111111 TILESET_MAGMA_4 = (*-(tileset_magma+1))/16 .byt %00000001, %00000111, %00011110, %00111011, %01111111, %11101111, %11110110, %01011010 .byt %00000001, %00000011, %00011101, %00111101, %01111011, %11110111, %11101111, %11100111 TILESET_MAGMA_5 = (*-(tileset_magma+1))/16 .byt %00110000, %01111000, %11111110, %10101100, %11111101, %01100101, %11111011, %11110111 .byt %11101000, %11110100, %00110000, %11011110, %10011110, %10011110, %00110100, %01111000 TILESET_MAGMA_6 = (*-(tileset_magma+1))/16 .byt %00000000, %00000000, %00000000, %00000000, %00000000, %00011010, %00110101, %01101111 .byt %00000000, %00000000, %00000000, %00000000, %00000000, %00011100, %00111010, %01111100 TILESET_MAGMA_7 = (*-(tileset_magma+1))/16 .byt %00000000, %00000000, %00110000, %01111000, %11111000, %10001101, %01011011, %11011011 .byt %00000000, %00000000, %00111000, %01111100, %11111110, %11110010, %11101100, %11111100 TILESET_MAGMA_8 = (*-(tileset_magma+1))/16 .byt %11111111, %01111111, %00011111, %00000000, %01111111, %00111111, %00011111, %00001111 .byt %11111111, %11111111, %11111111, %01111111, %00000000, %00000000, %00000000, %00000000 TILESET_MAGMA_9 = (*-(tileset_magma+1))/16 .byt %11111111, %11111111, %11111111, %00000000, %01000000, %11101111, %11111111, %11111110 .byt %11111111, %11111111, %11111111, %11111111, %10111111, %00010000, %00000000, %00000000 TILESET_MAGMA_10 = (*-(tileset_magma+1))/16 .byt %11111111, %11111111, %11111111, %11111100, %00000000, %11000001, %11111111, %11111111 .byt %11111111, %11111111, %11111111, %11111111, %11111111, %00111110, %00000000, %00000000 TILESET_MAGMA_11 = (*-(tileset_magma+1))/16 .byt %11111111, %11111110, %11111100, %00000000, %01100011, %11111110, %11111110, %00111110 .byt %11111111, %11111111, %11111111, %11111111, %10011100, %00000000, %00000000, %00000000 TILESET_MAGMA_12 = (*-(tileset_magma+1))/16 .byt %00000000, %00000000, %00100000, %00000000, %00000000, %00000110, %00000011, %00000011 .byt %00000000, %01000011, %00000111, %00000111, %00000110, %00111000, %01101000, %01000000 TILESET_MAGMA_13 = (*-(tileset_magma+1))/16 .byt %00000000, %00001000, %00000000, %00000010, %00000010, %00000011, %00000011, %00000111 .byt %11100000, %11110000, %11111000, %11110000, %10100000, %01000000, %00000000, %00000000 TILESET_MAGMA_14 = (*-(tileset_magma+1))/16 .byt %00001111, %10001111, %11111111, %11111100, %11111100, %11110000, %11100000, %00000000 .byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000 TILESET_MAGMA_15 = (*-(tileset_magma+1))/16 .byt %00000000, %00000000, %00000000, %00000000, %00000000, %01100000, %01110000, %11010000 .byt %00000000, %00000000, %00000000, %00000000, %00000000, %01010000, %01100000, %11101000 TILESET_MAGMA_16 = (*-(tileset_magma+1))/16 .byt %01011100, %00110011, %00100001, %01110000, %01111000, %00111111, %00001111, %00000000 .byt %00000000, %00001100, %00010100, %00001000, %00000000, %00000000, %00000000, %00000000 TILESET_MAGMA_17 = (*-(tileset_magma+1))/16 .byt %11101111, %01111100, %11111010, %11010100, %11101000, %00000000, %00000000, %00000000 .byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000 TILESET_MAGMA_18 = (*-(tileset_magma+1))/16 .byt %00000000, %00000000, %00000000, %00000000, %00101011, %01010011, %01111110, %00011100 .byt %00111100, %01101110, %01110110, %11100000, %10000000, %00000000, %00000000, %00000000 TILESET_MAGMA_19 = (*-(tileset_magma+1))/16 .byt %00010000, %00011000, %10010000, %11110000, %01100000, %11100000, %10100000, %00000000 .byt %01100011, %11000111, %00001110, %00001101, %00011010, %00010001, %01000000, %01000000 TILESET_MAGMA_20 = (*-(tileset_magma+1))/16 .byt %00000000, %00100000, %00110000, %01010000, %10110000, %11100000, %10000000, %00000000 .byt %10000000, %00000000, %00000000, %00000000, %00000000, %00011000, %01111110, %10001110 TILESET_MAGMA_21 = (*-(tileset_magma+1))/16 .byt %00110000, %01111000, %11111110, %10101101, %11111101, %01100101, %11111011, %11110111 .byt %11101000, %11110100, %00110000, %11011110, %10011110, %10011110, %00110100, %01111000 TILESET_MAGMA_22 = (*-(tileset_magma+1))/16 .byt %00011011, %00011111, %00000111, %00000011, %00001101, %00111100, %00011000, %00000000 .byt %00000000, %00000000, %00110000, %01100000, %00100000, %00000000, %00000000, %00000000 TILESET_MAGMA_23 = (*-(tileset_magma+1))/16 .byt %01111111, %01111111, %10011111, %11001111, %11100000, %11111001, %11111111, %11111111 .byt %11111111, %11111111, %01111111, %00111111, %00011111, %00000110, %00000000, %00000000 TILESET_MAGMA_24 = (*-(tileset_magma+1))/16 .byt %11111111, %11111111, %11111111, %11111111, %11111111, %00111110, %11000000, %11111111 .byt %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %00111111, %00000000 TILESET_MAGMA_25 = (*-(tileset_magma+1))/16 .byt %11111111, %11111111, %11111111, %11000011, %00000001, %00111100, %01111111, %11111111 .byt %11111111, %11111111, %11111111, %11111111, %11111111, %11000011, %10000000, %00000000 TILESET_MAGMA_26 = (*-(tileset_magma+1))/16 .byt %11111110, %11111110, %11111001, %11110011, %11000111, %00001111, %11111111, %11111111 .byt %11111111, %11111111, %11111110, %11111100, %11111000, %11110000, %00000000, %00000000 TILESET_MAGMA_27 = (*-(tileset_magma+1))/16 .byt %11100000, %11100110, %11110100, %11110000, %11100000, %11000000, %11011100, %11011000 .byt %00011111, %00011001, %00001011, %00001111, %00011111, %00111111, %00100011, %00100111 TILESET_MAGMA_28 = (*-(tileset_magma+1))/16 .byt %11111111, %01110111, %10101010, %00000101, %00000000, %00000000, %00000000, %00000000 .byt %00000000, %10001000, %01010101, %11111010, %11111111, %11111111, %11111111, %11111111 TILESET_MAGMA_29 = (*-(tileset_magma+1))/16 .byt %11101011, %11010101, %10101010, %01000001, %00000000, %00000000, %00000000, %00000000 .byt %00010100, %00101010, %01010101, %10111110, %11111111, %11111111, %11111111, %11111111 TILESET_MAGMA_30 = (*-(tileset_magma+1))/16 .byt %00111100, %01101110, %01110110, %11100000, %10101011, %01010011, %01111110, %00011100 .byt %11111111, %11111111, %11111111, %11111111, %11010100, %10101100, %10000001, %11100011 TILESET_MAGMA_31 = (*-(tileset_magma+1))/16 .byt %00000111, %01100111, %00101111, %00001111, %00000111, %00000011, %00111011, %00011011 .byt %11111000, %10011000, %11010000, %11110000, %11111000, %11111100, %11000100, %11100100 TILESET_MAGMA_32 = (*-(tileset_magma+1))/16 .byt %00000000, %00000000, %00000000, %00000000, %00101000, %01010101, %10101010, %11111111 .byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000 TILESET_MAGMA_33 = (*-(tileset_magma+1))/16 .byt %11000000, %11100000, %11110100, %11100110, %11110000, %11110000, %11101100, %11001000 .byt %00111111, %00011111, %00001011, %00011001, %00001111, %00001111, %00010011, %00110111 TILESET_MAGMA_34 = (*-(tileset_magma+1))/16 .byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000 .byt %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %11111111 TILESET_MAGMA_35 = (*-(tileset_magma+1))/16 .byt %01110011, %11011111, %10011110, %11111101, %01111010, %11110001, %11100000, %01000000 .byt %11101111, %11100111, %01101111, %00001111, %10011111, %00011111, %01011111, %11111111 TILESET_MAGMA_36 = (*-(tileset_magma+1))/16 .byt %11100000, %11111000, %11111000, %11110010, %10100010, %01000011, %00000011, %00000111 .byt %11111111, %11110111, %11111111, %11111101, %11111101, %11111100, %11111100, %11111000 TILESET_MAGMA_37 = (*-(tileset_magma+1))/16 .byt %00000000, %01000011, %00100111, %00000111, %00000110, %00111110, %01101011, %01000011 .byt %11111111, %11111111, %11011111, %11111111, %11111111, %11111001, %11111100, %11111100 TILESET_MAGMA_38 = (*-(tileset_magma+1))/16 .byt %10000000, %00100000, %00110000, %01010000, %10110000, %11111000, %11111110, %10001110 .byt %11111111, %11011111, %11001111, %10101111, %01001111, %00011111, %01111111, %11111111 TILESET_MAGMA_39 = (*-(tileset_magma+1))/16 .byt %00000011, %00000111, %00101111, %01100111, %00001111, %00001111, %00110111, %00010011 .byt %11111100, %11111000, %11010000, %10011000, %11110000, %11110000, %11001000, %11101100 TILESET_MAGMA_40 = (*-(tileset_magma+1))/16 .byt %00000000, %10101010, %01010101, %10101110, %01011111, %11111011, %10110101, %11111111 .byt %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %11111111 TILESET_MAGMA_41 = (*-(tileset_magma+1))/16 .byt %01011100, %00111111, %00110101, %01111000, %01111000, %00111111, %00001111, %00000000 .byt %10100011, %11001100, %11011110, %10001111, %10000111, %11000000, %11110000, %11111111 TILESET_MAGMA_42 = (*-(tileset_magma+1))/16 .byt %00001111, %10001111, %11111111, %11111100, %11111100, %11110000, %11100000, %00000000 .byt %11110000, %01110000, %00000000, %00000011, %00000011, %00001111, %00011111, %11111111 TILESET_MAGMA_43 = (*-(tileset_magma+1))/16 .byt %11101111, %01111100, %11111010, %11010100, %11101000, %00000000, %00000000, %00000000 .byt %00010000, %10000011, %00000101, %00101011, %00010111, %11111111, %11111111, %11111111 TILESET_MAGMA_44 = (*-(tileset_magma+1))/16 .byt %00011011, %00011111, %00110111, %01100011, %00101101, %00111100, %00011000, %00000000 .byt %11100100, %11100000, %11111000, %11111100, %11110010, %11000011, %11100111, %11111111 TILESET_MAGMA_45 = (*-(tileset_magma+1))/16 .byt %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %11111111 .byt %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %11111111 TILESET_MAGMA_46 = (*-(tileset_magma+1))/16 .byt %00000111, %00011110, %00110101, %01101011, %11010101, %10101001, %11011111, %10100111 .byt %11111111, %11111111, %11111111, %11111110, %11111110, %11111110, %11110001, %11111001 TILESET_MAGMA_47 = (*-(tileset_magma+1))/16 .byt %11111000, %10001100, %00100010, %10100010, %11110101, %11111001, %11111001, %01111111 .byt %11000111, %11110011, %11111101, %11011101, %00011010, %11100110, %10101110, %10010000 TILESET_MAGMA_48 = (*-(tileset_magma+1))/16 .byt %11010011, %10100001, %10000010, %10000101, %11000011, %01000011, %01001111, %00111000 .byt %11111100, %11111110, %11111101, %01111010, %00111100, %10111100, %10110000, %11000111 TILESET_MAGMA_49 = (*-(tileset_magma+1))/16 .byt %00100111, %10101011, %11010110, %11111100, %11111000, %11100000, %00000000, %00000000 .byt %11011000, %01010100, %00101001, %00000011, %00000111, %00011111, %11111111, %11111111
Main.asm
AYCEdemo/LostInTranslation
0
86042
; ====================== ; Retroboyz GB/GBC shell ; ====================== ; If set to 1, enable debugging features. DebugMode = 1 ; Defines include "Defines.asm" ; ============= ; Reset vectors ; ============= section "Reset $00",rom0[$00] ResetGame:: jp EntryPoint section "Reset $08",rom0[$08] FillRAM:: jp _FillRAM section "Reset $10",rom0[$10] WaitVBlank:: jp _WaitVBlank section "Reset $18",rom0[$18] WaitTimer:: jp _WaitTimer section "Reset $20",rom0[$20] WaitLCDC:: jp _WaitLCDC section "Reset $30",rom0[$30] DoOAMDMA:: jp $ff80 section "Reset $38",rom0[$38] Trap:: jr Trap ; ================== ; Interrupt handlers ; ================== section "VBlank IRQ",rom0[$40] IRQ_VBlank:: jp DoVBlank section "STAT IRQ",rom0[$48] IRQ_Stat:: jp DoStat section "Timer IRQ",rom0[$50] IRQ_Timer:: jp DoTimer section "Serial IRQ",rom0[$58] IRQ_Serial:: reti section "Joypad IRQ",rom0[$60] IRQ_Joypad:: reti ; =============== ; System routines ; =============== include "SystemRoutines.asm" ; ========== ; ROM header ; ========== section "ROM header",rom0[$100] EntryPoint:: nop jp ProgramStart NintendoLogo: ds 48,0 ; handled by post-linking tool ROMTitle: romTitle "LOST INTRO" ; ROM title (15 bytes) GBCSupport: db $00 ; GBC support (0 = DMG only, $80 = DMG/GBC, $C0 = GBC only) NewLicenseCode: db "AC" ; new license code (2 bytes) SGBSupport: db 0 ; SGB support CartType: db $0 ; Cart type, see hardware.inc for a list of values ROMSize: db ; ROM size (handled by post-linking tool) RAMSize: db 0 ; RAM size DestCode: db 1 ; Destination code (0 = Japan, 1 = All others) OldLicenseCode: db $33 ; Old license code (if $33, check new license code) ROMVersion: db 0 ; ROM version HeaderChecksum: db 0 ; Header checksum (handled by post-linking tool) ROMChecksum: dw ; ROM checksum (2 bytes) (handled by post-linking tool) ; ===================== ; Start of program code ; ===================== ProgramStart:: di ld sp,$e000 push bc push af ; init memory ld hl,$c000 ; start of WRAM ld bc,$1ffa ; don't clear stack xor a rst $08 ld bc,$7f80 xor a .loop ld [c],a inc c dec b jr nz,.loop call CopyDMARoutine call $ff80 ; clear OAM ; check GB type ; sets sys_GBType to 0 if DMG/SGB/GBP/GBL/SGB2, 1 if GBC, 2 if GBA/GBA SP/GB Player ; TODO: Improve checks to allow for GBP/SGB/SGB2 to be detected separately pop af pop bc cp $11 jr nz,.dmg .gbc and 1 ; a = 1 add b ; b = 1 if on GBA ld [sys_GBType],a jr .continue .dmg xor a ld [sys_GBType],a .continue ld a,IEF_VBLANK ldh [rIE],a ; enable VBlank ld a,%01000000 ldh [rSTAT],a ; enable LYC interrupt ld a,32 ld [DemoTimer],a ei jr IntroLoop1 FadeTable: db %00000000,%01010100,%10101000,%11111100 IntroLoop1: ld a,[DemoTimer] dec a ld [DemoTimer],a push af rra ; /2 rra ; /4 rra ; /8 and 3 ld hl,FadeTable add l ld l,a ld a,[hl+] ldh [rBGP],a pop af halt jr nz,IntroLoop1 ; Intro pic part xor a ldh [rLCDC],a ld hl,IntroPicTiles ld de,$8000 call DecodeWLE ld hl,IntroPicMap1 ld de,$9840 call DecodeWLE ld hl,IntroPicMap2 ld de,$9c40 call DecodeWLE SetDMGPal rBGP,0,1,2,3 ld a,IEF_VBLANK+IEF_LCDC ldh [rIE],a ; enable VBlank + LYC interrupt xor a ld [DemoTimer],a call GBM_LoadModule IntroLoop3: ld a,[sys_CurrentFrame] rrca ld a,%10010001 jr nc,.even ld a,%10001001 .even ldh [rLCDC],a ld hl,.fadebgps ld a,[DemoTimer] cp 32 jr nc,.nofadeout cpl add 33 srl a jr .fade .nofadeout sub 240 jr c,.fadeindone .fade srl a srl a ld [FadeLevel],a add l ld l,a .fadeindone ld a,[hl] ldh [rBGP],a call GBM_Update ld a,111 ldh [rLYC],a ld a,[sys_CurrentFrame] cpl add a ld b,a ; time for a fun part, since I don't want to touch DevEd's ; LCDC interrupt routine so I will just do the dihalt trick xor a di halt ldh [rIF],a ; manually acknowledge the interrupt ei ld c,-7 .loop ldh a,[rSTAT] and STATF_LCD jr nz,.loop ldh a,[rLY] cp 135 jr z, .done add a add a add b ld h,high(LogoSineTable) ld l,a ld a,c add [hl] ldh [rSCY],a ldh a,[rLY] add low(.fadelevels)-111 ld h,high(.fadelevels) ld l,a ld a,[FadeLevel] add [hl] add low(.fadebgps) ld l,a ld a,[hl] ldh [rBGP],a dec c dec c .loop2 ldh a,[rSTAT] and STATF_LCD jr z,.loop2 jr .loop .fadelevels db 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 3, 2, 3, 2, 3, 2 .fadebgps db %11100100, %10010000, %01000000, 0, 0, 0, 0 .done xor a ldh [rSCY],a rst $10 ld a,[sys_CurrentFrame] rrca jp c,IntroLoop3 ld a,[DemoTimer] dec a ld [DemoTimer],a jp nz,IntroLoop3 xor a ldh [rLCDC],a ldh [rWX],a ; clear $9c00 for transition ld hl,$9c40 ld bc,32*12 call FillRAM ld hl,Font ld de,$8000 call DecodeWLE ld hl,AYCELogoTiles ld de,$9000 call DecodeWLE ld hl,AYCELogoMap ld de,$9800 call DecodeWLE ld a,8 ld [ScrollerOffset],a SetDMGPal rBGP,0,1,2,3 SetDMGPal rOBP0,3,2,1,0 ld a,%11100011 ldh [rLCDC],a ld a,20 ldh [rLYC],a ld a,WindowScrollTable_End-WindowScrollTable ld [DemoTimer],a jr IntroLoop2 WindowScrollTable: db 1,3,6,10,15,21,28,36,45,55,65,75,85,95,105,115,125,135,145,155,160,168 db 167,165,163,163,162,161,160,160,159,159 db 159,159,160,160,161,162,162,163,165,167,168 WindowScrollTable_End: IntroLoop2: ld a,[DemoTimer] dec a ld [DemoTimer],a push af ld b,a ld a,WindowScrollTable_End-WindowScrollTable-1 sub b ld hl,WindowScrollTable add l ld l,a jr nc,.nocarry inc h .nocarry ld a,[hl+] ldh [rWX],a pop af rst $10 jr nz,IntroLoop2 MainLoop:: ; do stuff call DoScroller rst $10 jr MainLoop ScrollText:: db " " incbin "Scrolltext.txt" ScrollText_End: db " " ScrollTextSize equ (ScrollText_End-ScrollText) ; ================= ; Scroller routines ; ================= DoScroller: ld hl,ScrollerPos push hl ld a,[hl+] ld h,[hl] ld l,a ld a,h cp high(ScrollTextSize) jr nz,.skip3 ld a,l cp low(ScrollTextSize) jr nz,.skip3 xor a ld [ScrollerPos],a ld [ScrollerPos+1],a ; fall through .skip3 ld a,[ScrollerOffset] dec a jr nz,.skip2 pop hl ld a,[hl+] ld b,[hl] ld c,a inc bc ld a,b ld h,b ld [ScrollerPos+1],a ld a,c ld l,c ld [ScrollerPos],a ld a,8 ld [ScrollerOffset],a jr .skip .skip2 ld [ScrollerOffset],a pop hl ld a,[hl+] ld h,[hl] ld l,a .skip ld bc,ScrollText add hl,bc ld de,SpriteBuffer ld b,21 .loop ; sprite Y pos push hl push bc ld a,b dec a add a add a add a ld b,a ld a,[ScrollerOffset] ld c,a ld a,[sys_CurrentFrame] sub c add b pop bc ld h,high(ScrollerSineTable) ld l,a ld a,[hl] add 16 ld [de],a inc e ; sprite x pos ld a,21 sub b add a ; x2 add a ; x4 add a ; x8 ld l,a ld a,[ScrollerOffset] add l dec a ld [de],a inc e ; tile number pop hl ld a,[hl+] sub 32 ld [de],a inc e ; attributes xor a ld [de],a inc e dec b jr nz,.loop ret ; ================== ; Interrupt handlers ; ================== DoVBlank:: push af ld a,[sys_CurrentFrame] inc a ld [sys_CurrentFrame],a ; increment current frame ld a,20 ldh [rLYC],a ; reset LYC to 20 ld a,1 ld [sys_VBlankFlag],a ; set VBlank flag rst $30 ; do OAM DMA xor a ldh [rSCX],a ; call GBM_Update pop af reti DoStat:: push af push bc push hl ld a,[rLY] ld b,a and a jr z,.skip2 xor a ld [sys_VBlankFlag],a ; HACK inc a ld [sys_LCDCFlag],a ldh a,[rLYC] inc a cp 108 jr nc,.skip2 ldh [rLYC],a ld a,[sys_CurrentFrame] add b bit 0,a jr nz,.noflip cpl .noflip ld l,a ld h,high(LogoSineTable) ld a,[hl] ldh [rSCX],a .skip pop hl pop bc pop af reti .skip2 xor a ldh [rSCX],a call GBM_Update jr .skip DoTimer:: push af ld a,1 ld [sys_TimerFlag],a pop af reti ; ======================= ; Interrupt wait routines ; ======================= _WaitVBlank:: push af ldh a,[rIE] bit 0,a jr z,.done .wait halt ld a,[sys_VBlankFlag] and a jr z,.wait xor a ld [sys_VBlankFlag],a .done pop af ret _WaitTimer:: push af ldh a,[rIE] bit 2,a jr z,.done .wait halt ld a,[sys_TimerFlag] and a jr z,.wait xor a ld [sys_VBlankFlag],a .done pop af ret _WaitLCDC:: ldh a,[rIE] bit 1,a jr z,.done .wait halt ld a,[sys_LCDCFlag] and a jr z,.wait xor a ld [sys_LCDCFlag],a .done pop af ret ; ================= ; Graphics routines ; ================= _CopyTileset:: ; WARNING: Do not use while LCD is on! ld a,[hl+] ; get byte ld [de],a ; write byte inc de dec bc ld a,b ; check if bc = 0 or c jr nz,_CopyTileset ; if bc != 0, loop ret _CopyTilesetSafe:: ; same as _CopyTileset, but waits for VRAM accessibility before writing data ldh a,[rSTAT] and 2 ; check if VRAM is accessible jr nz,_CopyTilesetSafe ; if it isn't, loop until it is ld a,[hl+] ; get byte ld [de],a ; write byte inc de dec bc ld a,b ; check if bc = 0 or c jr nz,_CopyTilesetSafe ; if bc != 0, loop ret _CopyTileset1BPP:: ; WARNING: Do not use while LCD is on! ld a,[hl+] ; get byte ld [de],a ; write byte inc de ; increment destination address ld [de],a ; write byte again inc de ; increment destination address again dec bc dec bc ; since we're copying two bytes, we need to dec bc twice ld a,b ; check if bc = 0 or c jr nz,_CopyTileset1BPP ; if bc != 0, loop ret _CopyTileset1BPPSafe:: ; same as _CopyTileset1BPP, but waits for VRAM accessibility before writing data ldh a,[rSTAT] and 2 ; check if VRAM is accessible jr nz,_CopyTileset1BPPSafe ; if it isn't, loop until it is ld a,[hl+] ; get byte ld [de],a ; write byte inc de ; increment destination address ld [de],a ; write byte again inc de ; increment destination address again dec bc dec bc ; since we're copying two bytes, we need to dec bc twice ld a,b ; check if bc = 0 or c jr nz,_CopyTileset1BPP ; if bc != 0, loop ret ; ============ ; Sprite stuff ; ============ CopyDMARoutine:: ld bc,$80 + ((_OAM_DMA_End-_OAM_DMA) << 8) ld hl,_OAM_DMA .loop ld a,[hl+] ld [c],a inc c dec b jr nz,.loop ret _OAM_DMA:: ld a,high(SpriteBuffer) ldh [rDMA],a ld a,$28 .wait dec a jr nz,.wait ret _OAM_DMA_End: ; ============= ; Misc routines ; ============= ; Fill RAM with a value. ; INPUT: a = value ; hl = address ; bc = size _FillRAM:: ld e,a .loop ld [hl],e inc hl dec bc ld a,b or c jr nz,.loop ret ; Fill up to 256 bytes of RAM with a value. ; INPUT: a = value ; hl = address ; b = size _FillRAMSmall:: ld e,a .loop ld [hl],e inc hl dec b jr nz,.loop ret ; Copy up to 65536 bytes to RAM. ; INPUT: hl = source ; de = destination ; bc = size _CopyRAM:: ld a,[hl+] ld [de],a inc de dec bc ld a,b or c jr nz,_CopyRAM ret ; Copy up to 256 bytes to RAM. ; INPUT: hl = source ; de = destination ; b = size _CopyRAMSmall:: ld a,[hl+] ld [de],a inc de dec b jr nz,_CopyRAMSmall ret DecodeWLE: ; Walle Length Encoding decoder ld c,0 DecodeWLELoop: ld a,[hl+] ld b,a and $c0 jr z,.literal cp $40 jr z,.repeat cp $80 jr z,.increment .copy ld a,b inc b ret z and $3f inc a ld b,a ld a,[hl+] push hl ld l,a ld a,e scf sbc l ld l,a ld a,d sbc 0 ld h,a call _CopyRAMSmall pop hl jr DecodeWLELoop .literal ld a,b and $1f bit 5,b ld b,a jr nz,.longl inc b call _CopyRAMSmall jr DecodeWLELoop .longl push bc ld a,[hl+] ld c,a inc bc call _CopyRAM pop bc jr DecodeWLELoop .repeat call .repeatIncrementCommon .loopr ld [de],a inc de dec b jr nz,.loopr jr DecodeWLELoop .increment call .repeatIncrementCommon .loopi ld [de],a inc de inc a dec b jr nz,.loopi ld c,a jr DecodeWLELoop .repeatIncrementCommon bit 5,b jr z,.nonewr ld c,[hl] inc hl .nonewr ld a,b and $1f inc a ld b,a ld a,c ret ; ============= ; Graphics data ; ============= Font:: incbin "GFX/Font.bin.wle" IntroPicTiles: incbin "GFX/IntroPic.bin.wle" IntroPicMap1: incbin "GFX/IntroPic1.map.wle" IntroPicMap2: incbin "GFX/IntroPic2.map.wle" ; ==================== ; GBMod music routines ; ==================== include "GBMod_Player.asm" ; ========= ; Misc data ; ========= section "Sine tables",rom0,align[8] ; alignment used to speed up processing ScrollerSineTable: ; used for scrolltext db $44,$46,$47,$49,$4b,$4c,$4e,$50,$51,$53,$55,$56,$58,$59,$5b,$5c db $5e,$60,$61,$63,$64,$66,$67,$68,$6a,$6b,$6d,$6e,$6f,$70,$72,$73 db $74,$75,$76,$77,$79,$7a,$7b,$7c,$7d,$7d,$7e,$7f,$80,$81,$81,$82 db $83,$83,$84,$85,$85,$86,$86,$86,$87,$87,$87,$87,$88,$88,$88,$88 db $88,$88,$88,$88,$88,$87,$87,$87,$87,$86,$86,$86,$85,$85,$84,$83 db $83,$82,$81,$81,$80,$7f,$7e,$7d,$7d,$7c,$7b,$7a,$79,$77,$76,$75 db $74,$73,$72,$70,$6f,$6e,$6d,$6b,$6a,$68,$67,$66,$64,$63,$61,$60 db $5e,$5c,$5b,$59,$58,$56,$55,$53,$51,$50,$4e,$4c,$4b,$49,$47,$46 db $44,$42,$41,$3f,$3d,$3c,$3a,$38,$37,$35,$33,$32,$30,$2f,$2d,$2c db $2a,$28,$27,$25,$24,$22,$21,$20,$1e,$1d,$1b,$1a,$19,$18,$16,$15 db $14,$13,$12,$11,$0f,$0e,$0d,$0c,$0b,$0b,$0a,$09,$08,$07,$07,$06 db $05,$05,$04,$03,$03,$02,$02,$02,$01,$01,$01,$01,$00,$00,$00,$00 db $00,$00,$00,$00,$00,$01,$01,$01,$01,$02,$02,$02,$03,$03,$04,$05 db $05,$06,$07,$07,$08,$09,$0a,$0b,$0b,$0c,$0d,$0e,$0f,$11,$12,$13 db $14,$15,$16,$18,$19,$1a,$1b,$1d,$1e,$20,$21,$22,$24,$25,$27,$28 db $2a,$2c,$2d,$2f,$30,$32,$33,$35,$37,$38,$3a,$3c,$3d,$3f,$41,$42 LogoSineTable: db 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5 db 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 db -1,-1,-1,-1,-2,-2,-2,-2,-3,-3,-3,-3,-4,-4,-4,-4,-4,-4,-4,-5,-5,-5,-5,-5,-5,-6,-6,-6,-6,-6,-6,-6 db -6,-6,-6,-6,-6,-6,-6,-5,-5,-5,-5,-5,-5,-4,-4,-4,-4,-4,-4,-4,-3,-3,-3,-3,-2,-2,-2,-2,-1,-1,-1,-1 db 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5 db 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 db -1,-1,-1,-1,-2,-2,-2,-2,-3,-3,-3,-3,-4,-4,-4,-4,-4,-4,-4,-5,-5,-5,-5,-5,-5,-6,-6,-6,-6,-6,-6,-6 db -6,-6,-6,-6,-6,-6,-6,-5,-5,-5,-5,-5,-5,-4,-4,-4,-4,-4,-4,-4,-3,-3,-3,-3,-2,-2,-2,-2,-1,-1,-1,-1 ; ========== ; Music data ; ========== section "Music data",romx[$4000] incbin "Demotune.bin" section "Graphics Data 2",romx AYCELogoTiles:: incbin "GFX/AyceLogo.bin.wle" AYCELogoMap: incbin "GFX/AyceLogo.map.wle"
programs/oeis/081/A081854.asm
neoneye/loda
22
7745
; A081854: (8*n-3)*(4*n-1)*(8*n^2-5*n+1). ; 3,60,2093,13398,47415,123728,268065,512298,894443,1458660,2255253,3340670,4777503,6634488,8986505,11914578,15505875,19853708,25057533,31222950,38461703,46891680,56636913,67827578,80599995,95096628,111466085,129863118,150448623 mul $0,8 sub $0,2 bin $0,2 add $0,1 bin $0,2 div $0,2
libsrc/_DEVELOPMENT/adt/ba_stack/z80/asm_ba_stack_init.asm
meesokim/z88dk
0
169909
; =============================================================== ; Mar 2014 ; =============================================================== ; ; ba_stack_t *ba_stack_init(void *p, void *data, size_t capacity) ; ; Initialize a byte array stack structure at address p and set the ; stack's initial data and capacity members. stack.size = 0 ; ; =============================================================== SECTION code_adt_ba_stack PUBLIC asm_ba_stack_init EXTERN asm_b_array_init defc asm_ba_stack_init = asm_b_array_init ; enter : hl = p ; de = data ; bc = capacity ; ; exit : hl = stack * = p ; ; uses : af
samples/xmi.adb
RREE/ada-util
60
13741
<filename>samples/xmi.adb ----------------------------------------------------------------------- -- xmi -- XMI parser example -- Copyright (C) 2012 <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.Text_IO; with Ada.Command_Line; with Util.Log.Loggers; with Util.Beans; with Util.Beans.Objects; with Util.Serialize.Mappers.Record_Mapper; with Util.Serialize.IO.XML; -- This sample reads an UML 1.4 model saved in XMI 1.2 format. It uses the serialization -- framework to indicate what XML nodes and attributes must be reported. procedure XMI is use type Ada.Text_IO.Count; Reader : Util.Serialize.IO.XML.Parser; Count : constant Natural := Ada.Command_Line.Argument_Count; type XMI_Fields is (FIELD_CLASS_NAME, FIELD_CLASS_ID, FIELD_STEREOTYPE, FIELD_ATTRIBUTE_NAME, FIELD_PACKAGE_NAME, FIELD_PACKAGE_END, FIELD_VISIBILITY, FIELD_DATA_TYPE, FIELD_ENUM_DATA_TYPE, FIELD_ENUM_NAME, FIELD_ENUM_END, FIELD_ENUM_LITERAL, FIELD_ENUM_LITERAL_END, FIELD_CLASS_END, FIELD_MULTIPLICITY_LOWER, FIELD_MULTIPLICITY_UPPER, FIELD_ASSOCIATION_AGGREGATION, FIELD_ASSOCIATION_NAME, FIELD_ASSOCIATION_VISIBILITY, FIELD_ASSOCIATION_END_ID, FIELD_ASSOCIATION_END, FIELD_TAG_DEFINITION_ID, FIELD_TAG_DEFINITION_NAME, FIELD_OPERATION_NAME, FIELD_COMMENT_NAME, FIELD_COMMENT_BODY, FIELD_COMMENT_CLASS_ID, FIELD_TAGGED_VALUE_TYPE, FIELD_TAGGED_VALUE_VALUE); type XMI_Info is record Indent : Ada.Text_IO.Count := 1; end record; type XMI_Access is access all XMI_Info; procedure Set_Member (P : in out XMI_Info; Field : in XMI_Fields; Value : in Util.Beans.Objects.Object); procedure Print (Col : in Ada.Text_IO.Count; Line : in String) is begin Ada.Text_IO.Set_Col (Col); Ada.Text_IO.Put_Line (Line); end Print; procedure Set_Member (P : in out XMI_Info; Field : in XMI_Fields; Value : in Util.Beans.Objects.Object) is begin case Field is when FIELD_CLASS_NAME => Print (P.Indent, "Class " & Util.Beans.Objects.To_String (Value)); P.Indent := P.Indent + 2; when FIELD_VISIBILITY => Print (P.Indent, "visibility: " & Util.Beans.Objects.To_String (Value)); when FIELD_CLASS_ID => Print (P.Indent, "id: " & Util.Beans.Objects.To_String (Value)); when FIELD_ATTRIBUTE_NAME => Ada.Text_IO.Set_Col (P.Indent); Ada.Text_IO.Put ("attr: " & Util.Beans.Objects.To_String (Value)); when FIELD_MULTIPLICITY_LOWER => Ada.Text_IO.Set_Col (P.Indent); Ada.Text_IO.Put (" multiplicity: " & Util.Beans.Objects.To_String (Value)); when FIELD_MULTIPLICITY_UPPER => Ada.Text_IO.Put_Line (".." & Util.Beans.Objects.To_String (Value)); when FIELD_STEREOTYPE => Print (P.Indent, "<<" & Util.Beans.Objects.To_String (Value) & ">>"); when FIELD_DATA_TYPE => Print (P.Indent, " data-type:" & Util.Beans.Objects.To_String (Value)); when FIELD_ENUM_DATA_TYPE => Print (P.Indent, " enum-type:" & Util.Beans.Objects.To_String (Value)); P.Indent := P.Indent + 2; when FIELD_ENUM_NAME => Print (P.Indent, " enum " & Util.Beans.Objects.To_String (Value)); P.Indent := P.Indent + 2; when FIELD_ENUM_LITERAL => Print (P.Indent, " enum:" & Util.Beans.Objects.To_String (Value)); P.Indent := P.Indent + 2; when FIELD_OPERATION_NAME => Print (P.Indent, "operation:" & Util.Beans.Objects.To_String (Value)); when FIELD_ASSOCIATION_NAME => Print (P.Indent, "association " & Util.Beans.Objects.To_String (Value)); P.Indent := P.Indent + 2; when FIELD_ASSOCIATION_VISIBILITY => Print (P.Indent, "visibility: " & Util.Beans.Objects.To_String (Value)); when FIELD_ASSOCIATION_AGGREGATION => Print (P.Indent, " aggregate: " & Util.Beans.Objects.To_String (Value)); when FIELD_ASSOCIATION_END_ID => Print (P.Indent, " end-id: " & Util.Beans.Objects.To_String (Value)); when FIELD_PACKAGE_NAME => Print (P.Indent, "package " & Util.Beans.Objects.To_String (Value)); P.Indent := P.Indent + 2; when FIELD_TAGGED_VALUE_VALUE => Print (P.Indent, "-- " & Util.Beans.Objects.To_String (Value)); when FIELD_TAGGED_VALUE_TYPE => Print (P.Indent, "tag-type: " & Util.Beans.Objects.To_String (Value)); when FIELD_TAG_DEFINITION_NAME => Print (P.Indent, "Tag: " & Util.Beans.Objects.To_String (Value)); when FIELD_TAG_DEFINITION_ID => Print (P.Indent, " tag-id: " & Util.Beans.Objects.To_String (Value)); when FIELD_COMMENT_NAME => Print (P.Indent, "Comment: " & Util.Beans.Objects.To_String (Value)); when FIELD_COMMENT_BODY => Print (P.Indent, " text: " & Util.Beans.Objects.To_String (Value)); when FIELD_COMMENT_CLASS_ID => Print (P.Indent, " for-id: " & Util.Beans.Objects.To_String (Value)); when FIELD_PACKAGE_END | FIELD_CLASS_END | FIELD_ENUM_END | FIELD_ENUM_LITERAL_END | FIELD_ASSOCIATION_END => P.Indent := P.Indent - 2; end case; end Set_Member; package XMI_Mapper is new Util.Serialize.Mappers.Record_Mapper (Element_Type => XMI_Info, Element_Type_Access => XMI_Access, Fields => XMI_Fields, Set_Member => Set_Member); XMI_Mapping : aliased XMI_Mapper.Mapper; Mapper : Util.Serialize.Mappers.Processing; begin -- Util.Log.Loggers.Initialize ("samples/log4j.properties"); if Count = 0 then Ada.Text_IO.Put_Line ("Usage: xmi file..."); Ada.Text_IO.Put_Line ("Example xmi samples/demo-atlas.xmi"); return; end if; -- Define the XMI mapping. XMI_Mapping.Add_Mapping ("**/Package/@name", FIELD_PACKAGE_NAME); XMI_Mapping.Add_Mapping ("**/Package/@visibility", FIELD_VISIBILITY); XMI_Mapping.Add_Mapping ("**/Package", FIELD_PACKAGE_END); XMI_Mapping.Add_Mapping ("**/Class/@name", FIELD_CLASS_NAME); XMI_Mapping.Add_Mapping ("**/Class/@xmi.idref", FIELD_CLASS_NAME); XMI_Mapping.Add_Mapping ("**/Class/@xmi.id", FIELD_CLASS_ID); XMI_Mapping.Add_Mapping ("**/Class/@visibility", FIELD_VISIBILITY); XMI_Mapping.Add_Mapping ("**/Class", FIELD_CLASS_END); XMI_Mapping.Add_Mapping ("**/Stereotype/@href", FIELD_STEREOTYPE); XMI_Mapping.Add_Mapping ("**/Stereotype/@name", FIELD_STEREOTYPE); XMI_Mapping.Add_Mapping ("**/Attribute/@name", FIELD_ATTRIBUTE_NAME); XMI_Mapping.Add_Mapping ("**/Attribute/@visibility", FIELD_VISIBILITY); XMI_Mapping.Add_Mapping ("**/TaggedValue.dataValue", FIELD_TAGGED_VALUE_VALUE); XMI_Mapping.Add_Mapping ("**/DataType/@href", FIELD_DATA_TYPE); XMI_Mapping.Add_Mapping ("**/Enumeration/@href", FIELD_ENUM_NAME); XMI_Mapping.Add_Mapping ("**/Enumeration/@name", FIELD_ENUM_NAME); XMI_Mapping.Add_Mapping ("**/Enumeration", FIELD_ENUM_END); XMI_Mapping.Add_Mapping ("**/EnumerationLiteral/@name", FIELD_ENUM_LITERAL); XMI_Mapping.Add_Mapping ("**/EnumerationLiteral", FIELD_ENUM_LITERAL_END); XMI_Mapping.Add_Mapping ("**/MultiplicityRange/@lower", FIELD_MULTIPLICITY_LOWER); XMI_Mapping.Add_Mapping ("**/MultiplicityRange/@upper", FIELD_MULTIPLICITY_UPPER); XMI_Mapping.Add_Mapping ("**/Operation/@name", FIELD_OPERATION_NAME); XMI_Mapping.Add_Mapping ("**/Operation/@visibility", FIELD_VISIBILITY); XMI_Mapping.Add_Mapping ("**/Association/@name", FIELD_ASSOCIATION_NAME); XMI_Mapping.Add_Mapping ("**/Association/@visibility", FIELD_ASSOCIATION_VISIBILITY); XMI_Mapping.Add_Mapping ("**/Association/@aggregation", FIELD_ASSOCIATION_AGGREGATION); XMI_Mapping.Add_Mapping ("**/AssociationEnd.participant/Class/@xmi.idref", FIELD_ASSOCIATION_END_ID); XMI_Mapping.Add_Mapping ("**/Association", FIELD_ASSOCIATION_END); XMI_Mapping.Add_Mapping ("**/TagDefinition/@name", FIELD_TAG_DEFINITION_NAME); XMI_Mapping.Add_Mapping ("**/TagDefinition/@xm.id", FIELD_TAG_DEFINITION_ID); XMI_Mapping.Add_Mapping ("**/Comment/@name", FIELD_COMMENT_NAME); XMI_Mapping.Add_Mapping ("**/Comment/@body", FIELD_COMMENT_BODY); XMI_Mapping.Add_Mapping ("**/Comment/Comment.annotatedElement/Class/@xmi.idref", FIELD_COMMENT_CLASS_ID); Mapper.Add_Mapping ("XMI", XMI_Mapping'Unchecked_Access); for I in 1 .. Count loop declare S : constant String := Ada.Command_Line.Argument (I); Data : aliased XMI_Info; begin XMI_Mapper.Set_Context (Mapper, Data'Unchecked_Access); Reader.Parse (S, Mapper); end; end loop; end XMI;
programs/oeis/053/A053470.asm
neoneye/loda
22
243540
<gh_stars>10-100 ; A053470: a(n) is the cototient of n (A051953) iterated twice. ; 0,0,0,1,0,2,0,2,1,4,0,4,0,4,1,4,0,8,0,8,3,8,0,8,1,8,3,8,0,12,0,8,1,12,1,16,0,12,7,16,0,22,0,16,9,16,0,16,1,22,1,16,0,24,7,16,9,22,0,24,0,16,9,16,1,24,0,24,5,24,0,32,0,20,11,24,1,36,0,32,9,30,0,44,9,24,1,32,0,46,1,32,13,32,1,32,0,32,15,44 seq $0,16035 ; a(n) = Sum_{j|n, 1 < j < n} phi(j). Also a(n) = n - phi(n) - 1 for n > 1. seq $0,51953 ; Cototient(n) := n - phi(n).
Transynther/x86/_processed/NONE/_zr_un_/i7-8650U_0xd2.log_18841_1320.asm
ljhsiun2/medusa
9
29747
<reponame>ljhsiun2/medusa<gh_stars>1-10 .global s_prepare_buffers s_prepare_buffers: push %r12 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x108a8, %rsi lea addresses_WC_ht+0x1e8a8, %rdi nop nop xor %rax, %rax mov $83, %rcx rep movsq nop nop nop nop add $51005, %rcx lea addresses_A_ht+0x7e44, %rbp nop and %r12, %r12 movb (%rbp), %bl nop nop cmp %r12, %r12 lea addresses_UC_ht+0x1797b, %rdi nop nop nop nop dec %rbp mov (%rdi), %si nop nop nop cmp $4715, %rdi lea addresses_normal_ht+0x16ba8, %rbx nop nop cmp %rax, %rax mov $0x6162636465666768, %rdi movq %rdi, %xmm2 movups %xmm2, (%rbx) nop nop nop nop add %rdi, %rdi lea addresses_normal_ht+0x1d8a8, %rsi clflush (%rsi) nop dec %rbp mov (%rsi), %rdi nop and $63440, %rbp lea addresses_normal_ht+0x9aa8, %rsi lea addresses_A_ht+0x20e8, %rdi nop nop and $13600, %rbp mov $55, %rcx rep movsb nop nop nop cmp $42129, %r12 pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r12 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r14 push %r9 push %rcx push %rsi // Faulty Load lea addresses_WC+0x100a8, %rcx nop nop nop nop nop xor %rsi, %rsi mov (%rcx), %r13d lea oracles, %rcx and $0xff, %r13 shlq $12, %r13 mov (%rcx,%r13,1), %r13 pop %rsi pop %rcx pop %r9 pop %r14 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}} {'d0': 18791, '00': 47, 'b0': 3} d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 00 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 00 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 00 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 d0 */
Pruebas/test.adb
Arles96/PCompiladores
0
5832
procedure Numbers is Mike, Alice: Integer; John_Smith: Integer; F: Float := 1.0; procedure x2 (x3:Integer) is x: Integer := 1; begin Mike := 1; end x2; begin x2(Alice, 2, 3); end Numbers;
test/Succeed/Issue2954.agda
cruhland/agda
1,989
14305
open import Agda.Builtin.String open import Agda.Builtin.Equality test : String → String → String test "x" b = "left" test a "x" = "right" test a b = "nowhere" _ : test "a" "x" ≡ "right" _ = refl
wof/lcs/base/1DD.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
6
91718
copyright zengfr site:http://github.com/zengfr/romhack 012EE8 move.w ($6,PC,D0.w), D1 [base+1DD] 012F10 addq.b #2, ($1dd,A5) [base+1DF] 012F14 rts [base+1DD] 01AD52 move.b #$2, ($1dd,A5) [base+1DE] 01AD58 rts [base+1DD] copyright zengfr site:http://github.com/zengfr/romhack
qick_demos/03b.asm
Fermilab-Quantum-Science/qick_interpreter
0
16305
// Program regwi 0, $1, 50; regwi 0, $2, 10; regwi 3, $16, 69905067; //freq = 100.00000047683716 MHz regwi 3, $17, 0; //phase = 0 regwi 3, $19, 1000; //gain = 1000 regwi 3, $21, 0; //t = 0 regwi 3, $20, 589844; //stdysel | mode | outsel = 0b01001 | length = 20 synci 200; regwi 0, $15, 0; regwi 0, $14, 0; LOOP_J: regwi 0, $31, 49152; //out = 0b1100000000000000 seti 0, 0, $31, 100; //ch =0 out = $31 @t = 0 regwi 0, $31, 0; //out = 0b0000000000000000 seti 0, 0, $31, 110; //ch =0 out = $31 @t = 0 condj 0, $2, <, $1, @LABEL; regwi 3, $20, 589844; //stdysel | mode | outsel = 0b01001 | length = 20 regwi 3, $21, 0; //t = 0 set 7, 3, $16, $17, $18, $19, $20, $21; //ch = 7, out = $16,$18,$19,$20 @t = $21 LABEL: synci 20; mathi 0, $15, $15, +, 1; memwi 0, $15, 1; loopnz 0, $14, @LOOP_J; end;
arch/ARM/NXP/svd/lpc55s6x/nxp_svd-flash_key_store.ads
morbos/Ada_Drivers_Library
2
2684
<reponame>morbos/Ada_Drivers_Library -- Copyright 2016-2019 NXP -- All rights reserved.SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from LPC55S6x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package NXP_SVD.FLASH_KEY_STORE is pragma Preelaborate; --------------- -- Registers -- --------------- -- . -- . type ACTIVATION_CODE_Registers is array (0 .. 297) of HAL.UInt32 with Volatile; subtype SBKEY_HEADER1_TYPE_Field is HAL.UInt2; subtype SBKEY_HEADER1_INDEX_Field is HAL.UInt4; subtype SBKEY_HEADER1_SIZE_Field is HAL.UInt6; -- . type SBKEY_HEADER1_Register is record -- . TYPE_k : SBKEY_HEADER1_TYPE_Field := 16#0#; -- unspecified Reserved_2_7 : HAL.UInt6 := 16#0#; -- . INDEX : SBKEY_HEADER1_INDEX_Field := 16#0#; -- unspecified Reserved_12_23 : HAL.UInt12 := 16#0#; -- . SIZE : SBKEY_HEADER1_SIZE_Field := 16#0#; -- unspecified Reserved_30_31 : HAL.UInt2 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SBKEY_HEADER1_Register use record TYPE_k at 0 range 0 .. 1; Reserved_2_7 at 0 range 2 .. 7; INDEX at 0 range 8 .. 11; Reserved_12_23 at 0 range 12 .. 23; SIZE at 0 range 24 .. 29; Reserved_30_31 at 0 range 30 .. 31; end record; subtype USER_KEK_HEADER1_TYPE_Field is HAL.UInt2; subtype USER_KEK_HEADER1_INDEX_Field is HAL.UInt4; subtype USER_KEK_HEADER1_SIZE_Field is HAL.UInt6; -- . type USER_KEK_HEADER1_Register is record -- . TYPE_k : USER_KEK_HEADER1_TYPE_Field := 16#0#; -- unspecified Reserved_2_7 : HAL.UInt6 := 16#0#; -- . INDEX : USER_KEK_HEADER1_INDEX_Field := 16#0#; -- unspecified Reserved_12_23 : HAL.UInt12 := 16#0#; -- . SIZE : USER_KEK_HEADER1_SIZE_Field := 16#0#; -- unspecified Reserved_30_31 : HAL.UInt2 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for USER_KEK_HEADER1_Register use record TYPE_k at 0 range 0 .. 1; Reserved_2_7 at 0 range 2 .. 7; INDEX at 0 range 8 .. 11; Reserved_12_23 at 0 range 12 .. 23; SIZE at 0 range 24 .. 29; Reserved_30_31 at 0 range 30 .. 31; end record; subtype UDS_HEADER1_TYPE_Field is HAL.UInt2; subtype UDS_HEADER1_INDEX_Field is HAL.UInt4; subtype UDS_HEADER1_SIZE_Field is HAL.UInt6; -- . type UDS_HEADER1_Register is record -- . TYPE_k : UDS_HEADER1_TYPE_Field := 16#0#; -- unspecified Reserved_2_7 : HAL.UInt6 := 16#0#; -- . INDEX : UDS_HEADER1_INDEX_Field := 16#0#; -- unspecified Reserved_12_23 : HAL.UInt12 := 16#0#; -- . SIZE : UDS_HEADER1_SIZE_Field := 16#0#; -- unspecified Reserved_30_31 : HAL.UInt2 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for UDS_HEADER1_Register use record TYPE_k at 0 range 0 .. 1; Reserved_2_7 at 0 range 2 .. 7; INDEX at 0 range 8 .. 11; Reserved_12_23 at 0 range 12 .. 23; SIZE at 0 range 24 .. 29; Reserved_30_31 at 0 range 30 .. 31; end record; subtype PRINCE_REGION0_HEADER1_TYPE_Field is HAL.UInt2; subtype PRINCE_REGION0_HEADER1_INDEX_Field is HAL.UInt4; subtype PRINCE_REGION0_HEADER1_SIZE_Field is HAL.UInt6; -- . type PRINCE_REGION0_HEADER1_Register is record -- . TYPE_k : PRINCE_REGION0_HEADER1_TYPE_Field := 16#0#; -- unspecified Reserved_2_7 : HAL.UInt6 := 16#0#; -- . INDEX : PRINCE_REGION0_HEADER1_INDEX_Field := 16#0#; -- unspecified Reserved_12_23 : HAL.UInt12 := 16#0#; -- . SIZE : PRINCE_REGION0_HEADER1_SIZE_Field := 16#0#; -- unspecified Reserved_30_31 : HAL.UInt2 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for PRINCE_REGION0_HEADER1_Register use record TYPE_k at 0 range 0 .. 1; Reserved_2_7 at 0 range 2 .. 7; INDEX at 0 range 8 .. 11; Reserved_12_23 at 0 range 12 .. 23; SIZE at 0 range 24 .. 29; Reserved_30_31 at 0 range 30 .. 31; end record; subtype PRINCE_REGION1_HEADER1_TYPE_Field is HAL.UInt2; subtype PRINCE_REGION1_HEADER1_INDEX_Field is HAL.UInt4; subtype PRINCE_REGION1_HEADER1_SIZE_Field is HAL.UInt6; -- . type PRINCE_REGION1_HEADER1_Register is record -- . TYPE_k : PRINCE_REGION1_HEADER1_TYPE_Field := 16#0#; -- unspecified Reserved_2_7 : HAL.UInt6 := 16#0#; -- . INDEX : PRINCE_REGION1_HEADER1_INDEX_Field := 16#0#; -- unspecified Reserved_12_23 : HAL.UInt12 := 16#0#; -- . SIZE : PRINCE_REGION1_HEADER1_SIZE_Field := 16#0#; -- unspecified Reserved_30_31 : HAL.UInt2 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for PRINCE_REGION1_HEADER1_Register use record TYPE_k at 0 range 0 .. 1; Reserved_2_7 at 0 range 2 .. 7; INDEX at 0 range 8 .. 11; Reserved_12_23 at 0 range 12 .. 23; SIZE at 0 range 24 .. 29; Reserved_30_31 at 0 range 30 .. 31; end record; subtype PRINCE_REGION2_HEADER1_TYPE_Field is HAL.UInt2; subtype PRINCE_REGION2_HEADER1_INDEX_Field is HAL.UInt4; subtype PRINCE_REGION2_HEADER1_SIZE_Field is HAL.UInt6; -- . type PRINCE_REGION2_HEADER1_Register is record -- . TYPE_k : PRINCE_REGION2_HEADER1_TYPE_Field := 16#0#; -- unspecified Reserved_2_7 : HAL.UInt6 := 16#0#; -- . INDEX : PRINCE_REGION2_HEADER1_INDEX_Field := 16#0#; -- unspecified Reserved_12_23 : HAL.UInt12 := 16#0#; -- . SIZE : PRINCE_REGION2_HEADER1_SIZE_Field := 16#0#; -- unspecified Reserved_30_31 : HAL.UInt2 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for PRINCE_REGION2_HEADER1_Register use record TYPE_k at 0 range 0 .. 1; Reserved_2_7 at 0 range 2 .. 7; INDEX at 0 range 8 .. 11; Reserved_12_23 at 0 range 12 .. 23; SIZE at 0 range 24 .. 29; Reserved_30_31 at 0 range 30 .. 31; end record; ----------------- -- Peripherals -- ----------------- type FLASH_KEY_STORE_Disc is ( Header0, Key_Code0, Header1, Key_Code1, Body0, Key_Code2, Body1, Key_Code3, Body2, Key_Code4, Body3, Key_Code5, Body4, Key_Code6, Body5, Key_Code7, Body6, Key_Code8, Body7, Key_Code9, Body8, Key_Code10, Body9, Key_Code11, Body10, Key_Code12, Body11, Key_Code13); -- FLASH_KEY_STORE type FLASH_KEY_STORE_Peripheral (Discriminent : FLASH_KEY_STORE_Disc := Header0) is record -- Valid Key Sore Header : 0x95959595 HEADER : aliased HAL.UInt32; -- puf discharge time in ms. puf_discharge_time_in_ms : aliased HAL.UInt32; -- . ACTIVATION_CODE : aliased ACTIVATION_CODE_Registers; case Discriminent is when Header0 => -- . SBKEY_HEADER0 : aliased HAL.UInt32; -- . USER_KEK_HEADER0 : aliased HAL.UInt32; -- . UDS_HEADER0 : aliased HAL.UInt32; -- . PRINCE_REGION0_HEADER0 : aliased HAL.UInt32; -- . PRINCE_REGION1_HEADER0 : aliased HAL.UInt32; -- . PRINCE_REGION2_HEADER0 : aliased HAL.UInt32; when Key_Code0 => -- . SBKEY_KEY_CODE0 : aliased HAL.UInt32; -- . USER_KEK_KEY_CODE0 : aliased HAL.UInt32; -- . UDS_KEY_CODE0 : aliased HAL.UInt32; -- . PRINCE_REGION0_KEY_CODE0 : aliased HAL.UInt32; -- . PRINCE_REGION1_KEY_CODE0 : aliased HAL.UInt32; -- . PRINCE_REGION2_KEY_CODE0 : aliased HAL.UInt32; when Header1 => -- . SBKEY_HEADER1 : aliased SBKEY_HEADER1_Register; -- . USER_KEK_HEADER1 : aliased USER_KEK_HEADER1_Register; -- . UDS_HEADER1 : aliased UDS_HEADER1_Register; -- . PRINCE_REGION0_HEADER1 : aliased PRINCE_REGION0_HEADER1_Register; -- . PRINCE_REGION1_HEADER1 : aliased PRINCE_REGION1_HEADER1_Register; -- . PRINCE_REGION2_HEADER1 : aliased PRINCE_REGION2_HEADER1_Register; when Key_Code1 => -- . SBKEY_KEY_CODE1 : aliased HAL.UInt32; -- . USER_KEK_KEY_CODE1 : aliased HAL.UInt32; -- . UDS_KEY_CODE1 : aliased HAL.UInt32; -- . PRINCE_REGION0_KEY_CODE1 : aliased HAL.UInt32; -- . PRINCE_REGION1_KEY_CODE1 : aliased HAL.UInt32; -- . PRINCE_REGION2_KEY_CODE1 : aliased HAL.UInt32; when Body0 => -- . SBKEY_BODY0 : aliased HAL.UInt32; -- . USER_KEK_BODY0 : aliased HAL.UInt32; -- . UDS_BODY0 : aliased HAL.UInt32; -- . PRINCE_REGION0_BODY0 : aliased HAL.UInt32; -- . PRINCE_REGION1_BODY0 : aliased HAL.UInt32; -- . PRINCE_REGION2_BODY0 : aliased HAL.UInt32; when Key_Code2 => -- . SBKEY_KEY_CODE2 : aliased HAL.UInt32; -- . USER_KEK_KEY_CODE2 : aliased HAL.UInt32; -- . UDS_KEY_CODE2 : aliased HAL.UInt32; -- . PRINCE_REGION0_KEY_CODE2 : aliased HAL.UInt32; -- . PRINCE_REGION1_KEY_CODE2 : aliased HAL.UInt32; -- . PRINCE_REGION2_KEY_CODE2 : aliased HAL.UInt32; when Body1 => -- . SBKEY_BODY1 : aliased HAL.UInt32; -- . USER_KEK_BODY1 : aliased HAL.UInt32; -- . UDS_BODY1 : aliased HAL.UInt32; -- . PRINCE_REGION0_BODY1 : aliased HAL.UInt32; -- . PRINCE_REGION1_BODY1 : aliased HAL.UInt32; -- . PRINCE_REGION2_BODY1 : aliased HAL.UInt32; when Key_Code3 => -- . SBKEY_KEY_CODE3 : aliased HAL.UInt32; -- . USER_KEK_KEY_CODE3 : aliased HAL.UInt32; -- . UDS_KEY_CODE3 : aliased HAL.UInt32; -- . PRINCE_REGION0_KEY_CODE3 : aliased HAL.UInt32; -- . PRINCE_REGION1_KEY_CODE3 : aliased HAL.UInt32; -- . PRINCE_REGION2_KEY_CODE3 : aliased HAL.UInt32; when Body2 => -- . SBKEY_BODY2 : aliased HAL.UInt32; -- . USER_KEK_BODY2 : aliased HAL.UInt32; -- . UDS_BODY2 : aliased HAL.UInt32; -- . PRINCE_REGION0_BODY2 : aliased HAL.UInt32; -- . PRINCE_REGION1_BODY2 : aliased HAL.UInt32; -- . PRINCE_REGION2_BODY2 : aliased HAL.UInt32; when Key_Code4 => -- . SBKEY_KEY_CODE4 : aliased HAL.UInt32; -- . USER_KEK_KEY_CODE4 : aliased HAL.UInt32; -- . UDS_KEY_CODE4 : aliased HAL.UInt32; -- . PRINCE_REGION0_KEY_CODE4 : aliased HAL.UInt32; -- . PRINCE_REGION1_KEY_CODE4 : aliased HAL.UInt32; -- . PRINCE_REGION2_KEY_CODE4 : aliased HAL.UInt32; when Body3 => -- . SBKEY_BODY3 : aliased HAL.UInt32; -- . USER_KEK_BODY3 : aliased HAL.UInt32; -- . UDS_BODY3 : aliased HAL.UInt32; -- . PRINCE_REGION0_BODY3 : aliased HAL.UInt32; -- . PRINCE_REGION1_BODY3 : aliased HAL.UInt32; -- . PRINCE_REGION2_BODY3 : aliased HAL.UInt32; when Key_Code5 => -- . SBKEY_KEY_CODE5 : aliased HAL.UInt32; -- . USER_KEK_KEY_CODE5 : aliased HAL.UInt32; -- . UDS_KEY_CODE5 : aliased HAL.UInt32; -- . PRINCE_REGION0_KEY_CODE5 : aliased HAL.UInt32; -- . PRINCE_REGION1_KEY_CODE5 : aliased HAL.UInt32; -- . PRINCE_REGION2_KEY_CODE5 : aliased HAL.UInt32; when Body4 => -- . SBKEY_BODY4 : aliased HAL.UInt32; -- . USER_KEK_BODY4 : aliased HAL.UInt32; -- . UDS_BODY4 : aliased HAL.UInt32; -- . PRINCE_REGION0_BODY4 : aliased HAL.UInt32; -- . PRINCE_REGION1_BODY4 : aliased HAL.UInt32; -- . PRINCE_REGION2_BODY4 : aliased HAL.UInt32; when Key_Code6 => -- . SBKEY_KEY_CODE6 : aliased HAL.UInt32; -- . USER_KEK_KEY_CODE6 : aliased HAL.UInt32; -- . UDS_KEY_CODE6 : aliased HAL.UInt32; -- . PRINCE_REGION0_KEY_CODE6 : aliased HAL.UInt32; -- . PRINCE_REGION1_KEY_CODE6 : aliased HAL.UInt32; -- . PRINCE_REGION2_KEY_CODE6 : aliased HAL.UInt32; when Body5 => -- . SBKEY_BODY5 : aliased HAL.UInt32; -- . USER_KEK_BODY5 : aliased HAL.UInt32; -- . UDS_BODY5 : aliased HAL.UInt32; -- . PRINCE_REGION0_BODY5 : aliased HAL.UInt32; -- . PRINCE_REGION1_BODY5 : aliased HAL.UInt32; -- . PRINCE_REGION2_BODY5 : aliased HAL.UInt32; when Key_Code7 => -- . SBKEY_KEY_CODE7 : aliased HAL.UInt32; -- . USER_KEK_KEY_CODE7 : aliased HAL.UInt32; -- . UDS_KEY_CODE7 : aliased HAL.UInt32; -- . PRINCE_REGION0_KEY_CODE7 : aliased HAL.UInt32; -- . PRINCE_REGION1_KEY_CODE7 : aliased HAL.UInt32; -- . PRINCE_REGION2_KEY_CODE7 : aliased HAL.UInt32; when Body6 => -- . SBKEY_BODY6 : aliased HAL.UInt32; -- . USER_KEK_BODY6 : aliased HAL.UInt32; -- . UDS_BODY6 : aliased HAL.UInt32; -- . PRINCE_REGION0_BODY6 : aliased HAL.UInt32; -- . PRINCE_REGION1_BODY6 : aliased HAL.UInt32; -- . PRINCE_REGION2_BODY6 : aliased HAL.UInt32; when Key_Code8 => -- . SBKEY_KEY_CODE8 : aliased HAL.UInt32; -- . USER_KEK_KEY_CODE8 : aliased HAL.UInt32; -- . UDS_KEY_CODE8 : aliased HAL.UInt32; -- . PRINCE_REGION0_KEY_CODE8 : aliased HAL.UInt32; -- . PRINCE_REGION1_KEY_CODE8 : aliased HAL.UInt32; -- . PRINCE_REGION2_KEY_CODE8 : aliased HAL.UInt32; when Body7 => -- . SBKEY_BODY7 : aliased HAL.UInt32; -- . USER_KEK_BODY7 : aliased HAL.UInt32; -- . UDS_BODY7 : aliased HAL.UInt32; -- . PRINCE_REGION0_BODY7 : aliased HAL.UInt32; -- . PRINCE_REGION1_BODY7 : aliased HAL.UInt32; -- . PRINCE_REGION2_BODY7 : aliased HAL.UInt32; when Key_Code9 => -- . SBKEY_KEY_CODE9 : aliased HAL.UInt32; -- . USER_KEK_KEY_CODE9 : aliased HAL.UInt32; -- . UDS_KEY_CODE9 : aliased HAL.UInt32; -- . PRINCE_REGION0_KEY_CODE9 : aliased HAL.UInt32; -- . PRINCE_REGION1_KEY_CODE9 : aliased HAL.UInt32; -- . PRINCE_REGION2_KEY_CODE9 : aliased HAL.UInt32; when Body8 => -- . SBKEY_BODY8 : aliased HAL.UInt32; -- . USER_KEK_BODY8 : aliased HAL.UInt32; -- . UDS_BODY8 : aliased HAL.UInt32; -- . PRINCE_REGION0_BODY8 : aliased HAL.UInt32; -- . PRINCE_REGION1_BODY8 : aliased HAL.UInt32; -- . PRINCE_REGION2_BODY8 : aliased HAL.UInt32; when Key_Code10 => -- . SBKEY_KEY_CODE10 : aliased HAL.UInt32; -- . USER_KEK_KEY_CODE10 : aliased HAL.UInt32; -- . UDS_KEY_CODE10 : aliased HAL.UInt32; -- . PRINCE_REGION0_KEY_CODE10 : aliased HAL.UInt32; -- . PRINCE_REGION1_KEY_CODE10 : aliased HAL.UInt32; -- . PRINCE_REGION2_KEY_CODE10 : aliased HAL.UInt32; when Body9 => -- . SBKEY_BODY9 : aliased HAL.UInt32; -- . USER_KEK_BODY9 : aliased HAL.UInt32; -- . UDS_BODY9 : aliased HAL.UInt32; -- . PRINCE_REGION0_BODY9 : aliased HAL.UInt32; -- . PRINCE_REGION1_BODY9 : aliased HAL.UInt32; -- . PRINCE_REGION2_BODY9 : aliased HAL.UInt32; when Key_Code11 => -- . SBKEY_KEY_CODE11 : aliased HAL.UInt32; -- . USER_KEK_KEY_CODE11 : aliased HAL.UInt32; -- . UDS_KEY_CODE11 : aliased HAL.UInt32; -- . PRINCE_REGION0_KEY_CODE11 : aliased HAL.UInt32; -- . PRINCE_REGION1_KEY_CODE11 : aliased HAL.UInt32; -- . PRINCE_REGION2_KEY_CODE11 : aliased HAL.UInt32; when Body10 => -- . SBKEY_BODY10 : aliased HAL.UInt32; -- . USER_KEK_BODY10 : aliased HAL.UInt32; -- . UDS_BODY10 : aliased HAL.UInt32; -- . PRINCE_REGION0_BODY10 : aliased HAL.UInt32; -- . PRINCE_REGION1_BODY10 : aliased HAL.UInt32; -- . PRINCE_REGION2_BODY10 : aliased HAL.UInt32; when Key_Code12 => -- . SBKEY_KEY_CODE12 : aliased HAL.UInt32; -- . USER_KEK_KEY_CODE12 : aliased HAL.UInt32; -- . UDS_KEY_CODE12 : aliased HAL.UInt32; -- . PRINCE_REGION0_KEY_CODE12 : aliased HAL.UInt32; -- . PRINCE_REGION1_KEY_CODE12 : aliased HAL.UInt32; -- . PRINCE_REGION2_KEY_CODE12 : aliased HAL.UInt32; when Body11 => -- . SBKEY_BODY11 : aliased HAL.UInt32; -- . USER_KEK_BODY11 : aliased HAL.UInt32; -- . UDS_BODY11 : aliased HAL.UInt32; -- . PRINCE_REGION0_BODY11 : aliased HAL.UInt32; -- . PRINCE_REGION1_BODY11 : aliased HAL.UInt32; -- . PRINCE_REGION2_BODY11 : aliased HAL.UInt32; when Key_Code13 => -- . SBKEY_KEY_CODE13 : aliased HAL.UInt32; -- . USER_KEK_KEY_CODE13 : aliased HAL.UInt32; -- . UDS_KEY_CODE13 : aliased HAL.UInt32; -- . PRINCE_REGION0_KEY_CODE13 : aliased HAL.UInt32; -- . PRINCE_REGION1_KEY_CODE13 : aliased HAL.UInt32; -- . PRINCE_REGION2_KEY_CODE13 : aliased HAL.UInt32; end case; end record with Unchecked_Union, Volatile; for FLASH_KEY_STORE_Peripheral use record HEADER at 16#0# range 0 .. 31; puf_discharge_time_in_ms at 16#4# range 0 .. 31; ACTIVATION_CODE at 16#8# range 0 .. 9535; SBKEY_HEADER0 at 16#4B0# range 0 .. 31; USER_KEK_HEADER0 at 16#4E8# range 0 .. 31; UDS_HEADER0 at 16#520# range 0 .. 31; PRINCE_REGION0_HEADER0 at 16#558# range 0 .. 31; PRINCE_REGION1_HEADER0 at 16#590# range 0 .. 31; PRINCE_REGION2_HEADER0 at 16#5C8# range 0 .. 31; SBKEY_KEY_CODE0 at 16#4B0# range 0 .. 31; USER_KEK_KEY_CODE0 at 16#4E8# range 0 .. 31; UDS_KEY_CODE0 at 16#520# range 0 .. 31; PRINCE_REGION0_KEY_CODE0 at 16#558# range 0 .. 31; PRINCE_REGION1_KEY_CODE0 at 16#590# range 0 .. 31; PRINCE_REGION2_KEY_CODE0 at 16#5C8# range 0 .. 31; SBKEY_HEADER1 at 16#4B4# range 0 .. 31; USER_KEK_HEADER1 at 16#4EC# range 0 .. 31; UDS_HEADER1 at 16#524# range 0 .. 31; PRINCE_REGION0_HEADER1 at 16#55C# range 0 .. 31; PRINCE_REGION1_HEADER1 at 16#594# range 0 .. 31; PRINCE_REGION2_HEADER1 at 16#5CC# range 0 .. 31; SBKEY_KEY_CODE1 at 16#4B4# range 0 .. 31; USER_KEK_KEY_CODE1 at 16#4EC# range 0 .. 31; UDS_KEY_CODE1 at 16#524# range 0 .. 31; PRINCE_REGION0_KEY_CODE1 at 16#55C# range 0 .. 31; PRINCE_REGION1_KEY_CODE1 at 16#594# range 0 .. 31; PRINCE_REGION2_KEY_CODE1 at 16#5CC# range 0 .. 31; SBKEY_BODY0 at 16#4B8# range 0 .. 31; USER_KEK_BODY0 at 16#4F0# range 0 .. 31; UDS_BODY0 at 16#528# range 0 .. 31; PRINCE_REGION0_BODY0 at 16#560# range 0 .. 31; PRINCE_REGION1_BODY0 at 16#598# range 0 .. 31; PRINCE_REGION2_BODY0 at 16#5D0# range 0 .. 31; SBKEY_KEY_CODE2 at 16#4B8# range 0 .. 31; USER_KEK_KEY_CODE2 at 16#4F0# range 0 .. 31; UDS_KEY_CODE2 at 16#528# range 0 .. 31; PRINCE_REGION0_KEY_CODE2 at 16#560# range 0 .. 31; PRINCE_REGION1_KEY_CODE2 at 16#598# range 0 .. 31; PRINCE_REGION2_KEY_CODE2 at 16#5D0# range 0 .. 31; SBKEY_BODY1 at 16#4BC# range 0 .. 31; USER_KEK_BODY1 at 16#4F4# range 0 .. 31; UDS_BODY1 at 16#52C# range 0 .. 31; PRINCE_REGION0_BODY1 at 16#564# range 0 .. 31; PRINCE_REGION1_BODY1 at 16#59C# range 0 .. 31; PRINCE_REGION2_BODY1 at 16#5D4# range 0 .. 31; SBKEY_KEY_CODE3 at 16#4BC# range 0 .. 31; USER_KEK_KEY_CODE3 at 16#4F4# range 0 .. 31; UDS_KEY_CODE3 at 16#52C# range 0 .. 31; PRINCE_REGION0_KEY_CODE3 at 16#564# range 0 .. 31; PRINCE_REGION1_KEY_CODE3 at 16#59C# range 0 .. 31; PRINCE_REGION2_KEY_CODE3 at 16#5D4# range 0 .. 31; SBKEY_BODY2 at 16#4C0# range 0 .. 31; USER_KEK_BODY2 at 16#4F8# range 0 .. 31; UDS_BODY2 at 16#530# range 0 .. 31; PRINCE_REGION0_BODY2 at 16#568# range 0 .. 31; PRINCE_REGION1_BODY2 at 16#5A0# range 0 .. 31; PRINCE_REGION2_BODY2 at 16#5D8# range 0 .. 31; SBKEY_KEY_CODE4 at 16#4C0# range 0 .. 31; USER_KEK_KEY_CODE4 at 16#4F8# range 0 .. 31; UDS_KEY_CODE4 at 16#530# range 0 .. 31; PRINCE_REGION0_KEY_CODE4 at 16#568# range 0 .. 31; PRINCE_REGION1_KEY_CODE4 at 16#5A0# range 0 .. 31; PRINCE_REGION2_KEY_CODE4 at 16#5D8# range 0 .. 31; SBKEY_BODY3 at 16#4C4# range 0 .. 31; USER_KEK_BODY3 at 16#4FC# range 0 .. 31; UDS_BODY3 at 16#534# range 0 .. 31; PRINCE_REGION0_BODY3 at 16#56C# range 0 .. 31; PRINCE_REGION1_BODY3 at 16#5A4# range 0 .. 31; PRINCE_REGION2_BODY3 at 16#5DC# range 0 .. 31; SBKEY_KEY_CODE5 at 16#4C4# range 0 .. 31; USER_KEK_KEY_CODE5 at 16#4FC# range 0 .. 31; UDS_KEY_CODE5 at 16#534# range 0 .. 31; PRINCE_REGION0_KEY_CODE5 at 16#56C# range 0 .. 31; PRINCE_REGION1_KEY_CODE5 at 16#5A4# range 0 .. 31; PRINCE_REGION2_KEY_CODE5 at 16#5DC# range 0 .. 31; SBKEY_BODY4 at 16#4C8# range 0 .. 31; USER_KEK_BODY4 at 16#500# range 0 .. 31; UDS_BODY4 at 16#538# range 0 .. 31; PRINCE_REGION0_BODY4 at 16#570# range 0 .. 31; PRINCE_REGION1_BODY4 at 16#5A8# range 0 .. 31; PRINCE_REGION2_BODY4 at 16#5E0# range 0 .. 31; SBKEY_KEY_CODE6 at 16#4C8# range 0 .. 31; USER_KEK_KEY_CODE6 at 16#500# range 0 .. 31; UDS_KEY_CODE6 at 16#538# range 0 .. 31; PRINCE_REGION0_KEY_CODE6 at 16#570# range 0 .. 31; PRINCE_REGION1_KEY_CODE6 at 16#5A8# range 0 .. 31; PRINCE_REGION2_KEY_CODE6 at 16#5E0# range 0 .. 31; SBKEY_BODY5 at 16#4CC# range 0 .. 31; USER_KEK_BODY5 at 16#504# range 0 .. 31; UDS_BODY5 at 16#53C# range 0 .. 31; PRINCE_REGION0_BODY5 at 16#574# range 0 .. 31; PRINCE_REGION1_BODY5 at 16#5AC# range 0 .. 31; PRINCE_REGION2_BODY5 at 16#5E4# range 0 .. 31; SBKEY_KEY_CODE7 at 16#4CC# range 0 .. 31; USER_KEK_KEY_CODE7 at 16#504# range 0 .. 31; UDS_KEY_CODE7 at 16#53C# range 0 .. 31; PRINCE_REGION0_KEY_CODE7 at 16#574# range 0 .. 31; PRINCE_REGION1_KEY_CODE7 at 16#5AC# range 0 .. 31; PRINCE_REGION2_KEY_CODE7 at 16#5E4# range 0 .. 31; SBKEY_BODY6 at 16#4D0# range 0 .. 31; USER_KEK_BODY6 at 16#508# range 0 .. 31; UDS_BODY6 at 16#540# range 0 .. 31; PRINCE_REGION0_BODY6 at 16#578# range 0 .. 31; PRINCE_REGION1_BODY6 at 16#5B0# range 0 .. 31; PRINCE_REGION2_BODY6 at 16#5E8# range 0 .. 31; SBKEY_KEY_CODE8 at 16#4D0# range 0 .. 31; USER_KEK_KEY_CODE8 at 16#508# range 0 .. 31; UDS_KEY_CODE8 at 16#540# range 0 .. 31; PRINCE_REGION0_KEY_CODE8 at 16#578# range 0 .. 31; PRINCE_REGION1_KEY_CODE8 at 16#5B0# range 0 .. 31; PRINCE_REGION2_KEY_CODE8 at 16#5E8# range 0 .. 31; SBKEY_BODY7 at 16#4D4# range 0 .. 31; USER_KEK_BODY7 at 16#50C# range 0 .. 31; UDS_BODY7 at 16#544# range 0 .. 31; PRINCE_REGION0_BODY7 at 16#57C# range 0 .. 31; PRINCE_REGION1_BODY7 at 16#5B4# range 0 .. 31; PRINCE_REGION2_BODY7 at 16#5EC# range 0 .. 31; SBKEY_KEY_CODE9 at 16#4D4# range 0 .. 31; USER_KEK_KEY_CODE9 at 16#50C# range 0 .. 31; UDS_KEY_CODE9 at 16#544# range 0 .. 31; PRINCE_REGION0_KEY_CODE9 at 16#57C# range 0 .. 31; PRINCE_REGION1_KEY_CODE9 at 16#5B4# range 0 .. 31; PRINCE_REGION2_KEY_CODE9 at 16#5EC# range 0 .. 31; SBKEY_BODY8 at 16#4D8# range 0 .. 31; USER_KEK_BODY8 at 16#510# range 0 .. 31; UDS_BODY8 at 16#548# range 0 .. 31; PRINCE_REGION0_BODY8 at 16#580# range 0 .. 31; PRINCE_REGION1_BODY8 at 16#5B8# range 0 .. 31; PRINCE_REGION2_BODY8 at 16#5F0# range 0 .. 31; SBKEY_KEY_CODE10 at 16#4D8# range 0 .. 31; USER_KEK_KEY_CODE10 at 16#510# range 0 .. 31; UDS_KEY_CODE10 at 16#548# range 0 .. 31; PRINCE_REGION0_KEY_CODE10 at 16#580# range 0 .. 31; PRINCE_REGION1_KEY_CODE10 at 16#5B8# range 0 .. 31; PRINCE_REGION2_KEY_CODE10 at 16#5F0# range 0 .. 31; SBKEY_BODY9 at 16#4DC# range 0 .. 31; USER_KEK_BODY9 at 16#514# range 0 .. 31; UDS_BODY9 at 16#54C# range 0 .. 31; PRINCE_REGION0_BODY9 at 16#584# range 0 .. 31; PRINCE_REGION1_BODY9 at 16#5BC# range 0 .. 31; PRINCE_REGION2_BODY9 at 16#5F4# range 0 .. 31; SBKEY_KEY_CODE11 at 16#4DC# range 0 .. 31; USER_KEK_KEY_CODE11 at 16#514# range 0 .. 31; UDS_KEY_CODE11 at 16#54C# range 0 .. 31; PRINCE_REGION0_KEY_CODE11 at 16#584# range 0 .. 31; PRINCE_REGION1_KEY_CODE11 at 16#5BC# range 0 .. 31; PRINCE_REGION2_KEY_CODE11 at 16#5F4# range 0 .. 31; SBKEY_BODY10 at 16#4E0# range 0 .. 31; USER_KEK_BODY10 at 16#518# range 0 .. 31; UDS_BODY10 at 16#550# range 0 .. 31; PRINCE_REGION0_BODY10 at 16#588# range 0 .. 31; PRINCE_REGION1_BODY10 at 16#5C0# range 0 .. 31; PRINCE_REGION2_BODY10 at 16#5F8# range 0 .. 31; SBKEY_KEY_CODE12 at 16#4E0# range 0 .. 31; USER_KEK_KEY_CODE12 at 16#518# range 0 .. 31; UDS_KEY_CODE12 at 16#550# range 0 .. 31; PRINCE_REGION0_KEY_CODE12 at 16#588# range 0 .. 31; PRINCE_REGION1_KEY_CODE12 at 16#5C0# range 0 .. 31; PRINCE_REGION2_KEY_CODE12 at 16#5F8# range 0 .. 31; SBKEY_BODY11 at 16#4E4# range 0 .. 31; USER_KEK_BODY11 at 16#51C# range 0 .. 31; UDS_BODY11 at 16#554# range 0 .. 31; PRINCE_REGION0_BODY11 at 16#58C# range 0 .. 31; PRINCE_REGION1_BODY11 at 16#5C4# range 0 .. 31; PRINCE_REGION2_BODY11 at 16#5FC# range 0 .. 31; SBKEY_KEY_CODE13 at 16#4E4# range 0 .. 31; USER_KEK_KEY_CODE13 at 16#51C# range 0 .. 31; UDS_KEY_CODE13 at 16#554# range 0 .. 31; PRINCE_REGION0_KEY_CODE13 at 16#58C# range 0 .. 31; PRINCE_REGION1_KEY_CODE13 at 16#5C4# range 0 .. 31; PRINCE_REGION2_KEY_CODE13 at 16#5FC# range 0 .. 31; end record; -- FLASH_KEY_STORE FLASH_KEY_STORE_Periph : aliased FLASH_KEY_STORE_Peripheral with Import, Address => System'To_Address (16#9E600#); end NXP_SVD.FLASH_KEY_STORE;
src/notcurses-strings.adb
JeremyGrosser/notcursesada
5
978
with Ada.Strings.UTF_Encoding.Wide_Wide_Strings; with Interfaces.C.Strings; with Notcurses_Thin; package body Notcurses.Strings is function Width (Str : Wide_Wide_String) return Natural is use Ada.Strings.UTF_Encoding.Wide_Wide_Strings; use Interfaces.C.Strings; Chars : constant chars_ptr := New_String (Encode (Str)); begin return Natural (Notcurses_Thin.ncstrwidth (Chars)); end Width; end Notcurses.Strings;
oeis/095/A095795.asm
neoneye/loda-programs
11
84971
<reponame>neoneye/loda-programs ; A095795: a(0)=2, a(1)=5, a(n+2) = a(n+1) + (-1)^n a(n). ; Submitted by <NAME>(s4) ; 2,5,7,2,9,7,16,9,25,16,41,25,66,41,107,66,173,107,280,173,453,280,733,453,1186,733,1919,1186,3105,1919,5024,3105,8129,5024,13153,8129,21282,13153,34435,21282,55717,34435,90152,55717,145869,90152,236021,145869 mov $1,3 mov $2,2 lpb $0 sub $0,2 add $1,$2 add $2,$1 mul $1,-1 lpe lpb $0 bin $0,3 add $2,$1 lpe mov $0,$2
src/configure.ads
kraileth/ravenadm
0
2259
<reponame>kraileth/ravenadm -- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Definitions; use Definitions; private with Ada.Characters.Latin_1; private with Parameters; package Configure is menu_error : exception; -- Interactive configuration menu procedure launch_configure_menu; -- Print out configuration value -- If input not 'A' - 'Q', return "Error: Input must be character 'A'...'Q'" procedure print_configuration_value (option : Character); private package LAT renames Ada.Characters.Latin_1; package PM renames Parameters; indent : constant String (1 .. 3) := (others => LAT.Space); type option is range 1 .. 17; type default is range 1 .. 10; subtype ofield is String (1 .. 30); type desc_type is array (option) of ofield; type default_type is array (default) of ofield; descriptions : constant desc_type := ( "[A] System root directory ", "[B] Toolchain directory ", "[C] Localbase directory ", "[D] Conspiracy directory ", "[E] Custom ports directory ", "[F] Distfiles directory ", "[G] Profile directory (logs+) ", "[H] Packages directory ", "[I] Compiler cache directory ", "[J] Build base directory ", "[K] Num. concurrent builders ", "[L] Max. jobs per builder ", "[M] Avoid use of tmpfs ", "[N] Fetch prebuilt packages ", "[O] Display using ncurses ", "[P] Always record options ", "[Q] Assume default options " ); version_desc : constant default_type := ( "[A] Firebird SQL server ", "[B] Lua (language) ", "[C] MySQL-workalike server ", "[D] Perl (language) ", "[E] PHP (language) ", "[F] PostgreSQL server ", "[G] Python 3 (language) ", "[H] Ruby (language) ", "[I] SSL/TLS library ", "[J] TCL/TK toolkit " ); optX5A : constant String := "[V] Set version defaults (e.g. perl, ruby, mysql ...)"; optX1A : constant String := "[>] Switch/create profiles (changes discarded)"; optX1B : constant String := "[>] Switch/create profiles"; optX4B : constant String := "[<] Delete alternative profile"; optX2A : constant String := "[ESC] Exit without saving changes"; optX3A : constant String := "[RET] Save changes (starred) "; optX3B : constant String := "[RET] Exit "; dupe : PM.configuration_record; version_A : constant String := default_firebird & ":3.0"; version_B : constant String := "5.2:" & default_lua & ":5.4"; version_C : constant String := "oracle-5.6:oracle-5.7:" & default_mysql & ":" & "mariadb-10.2:mariadb-10.3:mariadb-10.4:mariadb-10.5:" & "percona-5.6:percona-5.7:percona-8.0"; version_D : constant String := default_perl & ":5.32"; version_E : constant String := "7.3:" & default_php & ":8.0"; version_F : constant String := "9.6:10:11:" & default_pgsql & ":13"; version_G : constant String := default_python3 & ":3.9"; version_H : constant String := "2.6:" & default_ruby & ":3.0"; version_I : constant String := "openssl:openssl-devel:" & default_ssl & ":libressl-devel"; version_J : constant String := "8.5:" & default_tcltk; procedure clear_screen; procedure print_header; procedure print_opt (opt : option; pristine : in out Boolean); procedure change_directory_option (opt : option; pristine : in out Boolean); procedure change_boolean_option (opt : option; pristine : in out Boolean); procedure change_positive_option (opt : option; pristine : in out Boolean); procedure delete_profile; procedure switch_profile; procedure move_to_defaults_menu (pristine_def : in out Boolean); procedure print_default (def : default; pristine_def : in out Boolean); procedure update_version (def : default; choices : String; label : String); procedure print_menu (pristine : in out Boolean; extra_profiles : Boolean; pristine_def : Boolean); end Configure;
MailArchiver.scpt
dbcm/mailArchiver
1
2501
(* <NAME> - <EMAIL> XPTO:: Portuguese OpenSource Community *) -- Archive POP mails to IMAP account? property ArchivePOP2IMAP : true -- What is the name of the IMAP Account to move POP mails? property MainIMAPAccount : "Profundos" -- Do log? property DoLog : true on run {input, parameters} using terms from application "Mail" my logThis("---------- Mail.app Archiver starting") tell application "Mail" set selectedMails to the selection set nCount to count of selection my logThis("Starting loop...") repeat with eachMessage in selectedMails my logThis("repeat, msg: " & subject of eachMessage) -- generic info about the message set msgDate to date received of eachMessage set msgMonth to month of msgDate as integer set msgYear to year of msgDate as integer -- message endpoint set mboxName to "Archive/" & msgYear & "/" & msgYear & "-" & msgMonth try set msgAccount to name of account of mailbox of eachMessage as string set msgAccountType to account type of account of mailbox of eachMessage on error errText -- no account, lets move them to IMAP set msgAccountType to "local" end try my logThis("accountType " & msgAccountType) if msgAccountType is imap or msgAccountType is iCloud then -- mails alive in a IMAP account tell account msgAccount my logThis("with account: " & msgAccount) try set mbox to mailbox named mboxName get name of mbox on error make new mailbox with properties {name:mboxName} set mbox to mailbox named mboxName end try try move eachMessage to mbox on error errText number errNum my logThis("Err: " & errNum & " . " & errText) end try end tell else -- mails sent and received from a pop account try my logThis("mail is on pop or local") if ArchivePOP2IMAP then -- Archive POP or LOCAL mails to IMAP account my logThis("ArchivePOP2IMAP is active") tell account MainIMAPAccount if the mailbox mboxName exists then else make new mailbox with properties {name:mboxName} end if set mbox to mailbox named mboxName end tell move eachMessage to mbox end if on error myErr display dialog "Something gone mad (" & myErr & ")" buttons "OK" end try (* else my logThis("Account type: " & (msgAccountType as string) & " _ " & subject of eachMessage) *) end if end repeat end tell end using terms from return input end run on logThis(str) if DoLog then -- only log if this is true (WOW) set LogFile to a reference to (path to desktop as string) & "Mail.app Archiver.log" set tStamp to current date set myNow to ((year of tStamp as string) & (month of tStamp as string) & (day of tStamp as string)) try open for access file LogFile with write permission -- set eof of file logFile to 0 write myNow & " : " & str & return to file LogFile starting at eof close access file LogFile log str on error errText number errNum close access file LogFile --display dialog logThiserrText end try end if end logThis
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1303.asm
ljhsiun2/medusa
9
101624
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r15 push %rax push %rcx push %rdi push %rsi lea addresses_normal_ht+0x4301, %r11 nop dec %r15 mov (%r11), %r14d nop nop nop nop sub $14795, %r15 lea addresses_D_ht+0xe319, %rsi lea addresses_A_ht+0x18119, %rdi nop nop nop nop nop cmp $21465, %r13 mov $81, %rcx rep movsw nop nop cmp $14270, %r13 lea addresses_normal_ht+0x11b19, %r11 nop nop xor %rcx, %rcx mov (%r11), %r13d nop add $35005, %r14 lea addresses_D_ht+0x1fb9, %rsi lea addresses_D_ht+0x3819, %rdi nop dec %r13 mov $67, %rcx rep movsl xor $34673, %rsi lea addresses_A_ht+0xc429, %r14 nop nop nop nop nop sub %rsi, %rsi movw $0x6162, (%r14) nop cmp %rcx, %rcx lea addresses_WC_ht+0x1a089, %rdi nop inc %r11 mov (%rdi), %cx nop nop cmp %r15, %r15 lea addresses_UC_ht+0x1a15d, %rdi clflush (%rdi) add $29497, %r13 mov (%rdi), %r11w nop nop nop xor $40601, %rsi lea addresses_UC_ht+0x12319, %r13 nop add $44958, %rcx movw $0x6162, (%r13) and $9124, %r14 lea addresses_WT_ht+0x1c95, %r15 nop nop nop nop and $24233, %r14 mov (%r15), %r11 nop and %r13, %r13 lea addresses_WC_ht+0x63cb, %rsi lea addresses_normal_ht+0x129d1, %rdi clflush (%rdi) nop nop sub %rax, %rax mov $19, %rcx rep movsl nop nop nop nop cmp $12397, %r11 lea addresses_D_ht+0xce5f, %rcx nop and %r15, %r15 vmovups (%rcx), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $0, %xmm2, %r13 nop cmp $1349, %rcx pop %rsi pop %rdi pop %rcx pop %rax pop %r15 pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %rax push %rbp push %rcx push %rsi // Faulty Load lea addresses_WC+0x18b19, %rax nop nop nop nop nop inc %r12 movups (%rax), %xmm1 vpextrq $1, %xmm1, %rbp lea oracles, %rsi and $0xff, %rbp shlq $12, %rbp mov (%rsi,%rbp,1), %rbp pop %rsi pop %rcx pop %rbp pop %rax pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WC', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_WC', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 2}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}} {'src': {'type': 'addresses_normal_ht', 'AVXalign': True, 'size': 4, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2, 'NT': True, 'same': False, 'congruent': 4}} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2, 'NT': True, 'same': False, 'congruent': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 11}} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'} {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_284.asm
ljhsiun2/medusa
9
15040
<filename>Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_284.asm .global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r8 push %rdx // Faulty Load lea addresses_WC+0xab08, %r11 nop nop nop and $42030, %r13 movups (%r11), %xmm2 vpextrq $0, %xmm2, %rdx lea oracles, %r11 and $0xff, %rdx shlq $12, %rdx mov (%r11,%rdx,1), %rdx pop %rdx pop %r8 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC', 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC', 'congruent': 0}} <gen_prepare_buffer> {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
source/core/web-core-connectables.adb
godunko/adawebui
2
16873
<reponame>godunko/adawebui ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2016-2020, <NAME> <<EMAIL>> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision: 5728 $ $Date: 2017-01-26 00:48:05 +0300 (Thu, 26 Jan 2017) $ ------------------------------------------------------------------------------ with Ada.Unchecked_Deallocation; package body Web.Core.Connectables is procedure Disconnect (Signal : Signal_End_Access; Slot : Slot_End_Access); ------------ -- Attach -- ------------ procedure Attach (Self : in out Signal_End_Base'Class) is begin if Self.Emitter.Head = null then Self.Emitter.Head := Self'Unchecked_Access; Self.Emitter.Tail := Self'Unchecked_Access; else Self.Previous := Self.Emitter.Tail; Self.Emitter.Tail.Next := Self'Unchecked_Access; Self.Emitter.Tail := Self'Unchecked_Access; end if; end Attach; ------------ -- Attach -- ------------ procedure Attach (Self : in out Slot_End_Base'Class) is Owner : constant not null Object_Access := Self.Owner; begin if Owner.Head = null then Owner.Head := Self'Unchecked_Access; Owner.Tail := Self'Unchecked_Access; else Self.Previous := Owner.Tail; Owner.Tail.Next := Self'Unchecked_Access; Owner.Tail := Self'Unchecked_Access; end if; end Attach; ------------ -- Detach -- ------------ procedure Detach (Self : in out Signal_End_Base'Class) is begin if Self.Emitter.Head = Self'Unchecked_Access then Self.Emitter.Head := Self.Next; end if; if Self.Emitter.Tail = Self'Unchecked_Access then Self.Emitter.Tail := Self.Previous; end if; if Self.Next /= null then Self.Next.Previous := Self.Previous; end if; if Self.Previous /= null then Self.Previous.Next := Self.Next; end if; end Detach; ------------ -- Detach -- ------------ procedure Detach (Self : in out Slot_End_Base'Class) is Owner : constant not null Object_Access := Self.Owner; begin if Owner.Head = Self'Unchecked_Access then Owner.Head := Self.Next; end if; if Owner.Tail = Self'Unchecked_Access then Owner.Tail := Self.Previous; end if; if Self.Next /= null then Self.Next.Previous := Self.Previous; end if; if Self.Previous /= null then Self.Previous.Next := Self.Next; end if; end Detach; ---------------- -- Disconnect -- ---------------- procedure Disconnect (Signal : Signal_End_Access; Slot : Slot_End_Access) is procedure Free is new Ada.Unchecked_Deallocation (Signal_End_Base'Class, Signal_End_Access); procedure Free is new Ada.Unchecked_Deallocation (Slot_End_Base'Class, Slot_End_Access); Aux_Signal : Signal_End_Access := Signal; Aux_Slot : Slot_End_Access := Slot; begin Aux_Signal.Detach; Aux_Slot.Detach; Free (Aux_Signal); Free (Aux_Slot); end Disconnect; -------------- -- Finalize -- -------------- not overriding procedure Finalize (Self : in out Connectable_Object) is begin while Self.Head /= null loop Disconnect (Self.Head.Signal_End, Self.Head); end loop; end Finalize; end Web.Core.Connectables;
alloy4fun_models/trashltl/models/4/dSd8kR2G8Q9TdxCcS.als
Kaixi26/org.alloytools.alloy
0
408
open main pred iddSd8kR2G8Q9TdxCcS_prop5 { always some f : Trash | eventually f not in File } pred __repair { iddSd8kR2G8Q9TdxCcS_prop5 } check __repair { iddSd8kR2G8Q9TdxCcS_prop5 <=> prop5o }
programs/oeis/184/A184042.asm
neoneye/loda
22
95819
; A184042: 1/9 the number of (n+1) X 4 0..2 arrays with all 2 X 2 subblocks having the same four values. ; 25,31,41,61,97,169,305,577,1105,2161,4241,8401,16657,33169,66065,131857,263185,525841,1050641,2100241,4198417,8394769,16785425,33566737,67125265,134242321,268468241,536920081,1073807377,2147581969,4295098385,8590131217,17180131345,34360131601,68720001041,137439739921,274878955537,549757386769,1099513724945,2199026401297,4398050705425,8796099313681,17592194433041,35184384671761,70368760954897,140737513521169,281475010265105,562950003752977,1125899973951505,2251799914348561,4503599761588241,9007199456067601,18014398777917457,36028797421617169,72057594574798865,144115188881162257,288230377225453585,576460753914036241,1152921506754330641,2305843012434919441,4611686022722355217,9223372043297226769,18446744082299486225,36893488160304005137,73786976312018075665,147573952615446216721,295147905213712564241,590295810410245259281,1180591620786130780177,2361183241537901821969,4722366483007084167185,9444732965945448857617,18889465931753458761745,37778931863369478570001,75557863726464079233041,151115727452653280559121,302231454904756805304337,604462909808963854794769,1208925819616828197961745,2417851639232556884295697,4835703278462914745335825,9671406556923630467416081,19342813113842862888321041,38685626227681327730130961,77371252455353859367239697,154742504910698922641457169,309485009821380253096869905,618970019642742914007695377,1237940039285450643643301905,2475880078570866102914514961,4951760157141661837084852241,9903520314283253305425526801,19807040628566365873362698257,39614081257132591009237041169,79228162514264900543497371665,158456325028529519612018032657,316912650057058476274082643985,633825300114116389598211866641,1267650600228231653296516890641,2535301200456462180693126938641 mov $1,3 mov $2,$0 lpb $0 mul $1,2 add $1,$2 sub $1,$0 sub $0,1 trn $2,2 lpe sub $1,3 mul $1,2 add $1,25 mov $0,$1
src/Web/Semantic/DL/FOL/Model.agda
agda/agda-web-semantic
9
10355
open import Data.Product using ( _×_ ; _,_ ) open import Data.Sum using ( _⊎_ ) open import Relation.Unary using ( _∈_ ; _∉_ ) open import Web.Semantic.DL.FOL using ( Formula ; true ; false ; _∧_ ; _∈₁_ ; _∈₁_⇒_ ; _∈₂_ ; _∈₂_⇒_ ; _∼_ ; _∼_⇒_ ; ∀₁ ) open import Web.Semantic.DL.Signature using ( Signature ) open import Web.Semantic.DL.TBox.Interp using ( Interp ; Δ ; _⊨_≈_ ; con ; rol ) open import Web.Semantic.Util using ( True ; False ) module Web.Semantic.DL.FOL.Model {Σ : Signature} where _⊨f_ : (I : Interp Σ) → Formula Σ (Δ I) → Set I ⊨f true = True I ⊨f false = False I ⊨f (F ∧ G) = (I ⊨f F) × (I ⊨f G) I ⊨f (x ∈₁ c) = x ∈ (con I c) I ⊨f (x ∈₁ c ⇒ F) = (x ∈ (con I c)) → (I ⊨f F) I ⊨f ((x , y) ∈₂ r) = (x , y) ∈ (rol I r) I ⊨f ((x , y) ∈₂ r ⇒ F) = ((x , y) ∈ (rol I r)) → (I ⊨f F) I ⊨f (x ∼ y) = I ⊨ x ≈ y I ⊨f (x ∼ y ⇒ F) = (I ⊨ x ≈ y) → (I ⊨f F) I ⊨f ∀₁ F = ∀ x → (I ⊨f F x)
Ex.asm
Ahmed-ata112/processor_simulation_game
1
10143
;; Hany-> command; ;; Mena -> second; ;EXTRN mainGame:_AX, _BX, _CX, _DX, _SI, _DI, _SP, _BP,_AL, _BL, _CL, _DL, _AH, _BH, _CH, _DH ;EXTRN mainGame:command ;EXTRN mainGame:_00,_01,_02,_03,_04,_05,_06,_07,_08,_09,_A,_B,_C,_D,_E,_F ;PUBLIC result ;include valid_in.inc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Hany split_operands MACRO source des1 des2 ; to split the two operand (des1->first oper && des2->second oper) mov SI,offset source mov DI,offset des1 mov al,',' MOV AH,'$' moving1: MOVSB CMP AH,[SI] JE FIN cmp al,[SI] jnz moving1 inc SI ;; to skip (,) mov DI,offset des2 mov al,'$' moving2: MOVSB cmp al,[SI] jnz moving2 FIN: dec di ; to remove enter mov [DI],AH ENDM split_operands ;; HASHING operand HASHING_op MACRO STR HASH local moving111 mov SI,offset STR mov DI, offset HASH mov al,'$' ;; to check END MOV [DI],0H MOV BX,[DI] MOV CL,[SI] MOV CH,00H ;; first time ADD BX,CX MOV [DI],BX MOV BX,[DI] MOV CL,[SI] ;; second time MOV CH,00H ADD BX,CX MOV [DI],BX moving111: MOV BX,[DI] MOV CL,[SI] MOV CH,00H ADD BX,CX ADD BX,CX ADD BX,CX MOV [DI],BX INC SI cmp al,[SI] jnz moving111 ENDM HASHING_op ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; .MODEL SMALL .STACK 64 .DATA _AX dw 1234h _BX dw 50H _CX dw 2H _DX dw 1000H _SI dw ? _DI dw ? _SP dw ? _BP dw ? _00 db 56h _01 db 78H _02 db ? _03 db ? _04 db ? _05 db ? _06 db ? _07 db ? _08 db ? _09 db ? _A db ? _B db ? _C db ? _D db ? _E db ? _F db ? command_splited db 5 dup('$') Operand1 db 5 dup('$') Operand2 db 5 dup('$') Two_Operands_Together_splited db 10 dup('$') Operand2_Value dw ? Operand1_Value dw ? sizeIndex db 0 ;MOV [00],AX DONE ;MOV [00],Al DONE HASH DW ? ;MOV AX,[00] DONE HASH_Operand2 DW ? ;MOV Al,[00] DONE HASH_Operand1 DW ? ; ADD AX,[00] DONE ;ADC DX,BX DONE command DB 'MOV [00],AXe','$' ;SUB DX,BX DONE ;SBB DX,BX DONE ;................................................ .code ;DIV CX DisplayString MACRO STR ;DIV CL mov ah,9h ;MUL CX mov dx,offset STR ;MUL CL int 21h ;XOR AX,[00] ENDM DisplayString ;AND AX,[00] ;OR AX,[00] ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;NOP ;SHR ; Hany ;INC ;; HASHING ;DEC HASHING MACRO STR HASH ;CLC local moving111 ;SHL mov SI,offset STR ;SAR mov DI, offset HASH ;ROR mov al,'$' ;; to check END ;RCL MOV [DI],0H ;RCR ;ROL MOV BX,[DI] MOV CL,[SI] MOV CH,00H ADD BX,CX MOV [DI],BX moving111: MOV BX,[DI] MOV CL,[SI] MOV CH,00H ADD BX,CX ADD BX,CX ADD BX,CX MOV [DI],BX INC SI cmp al,[SI] jnz moving111 ENDM HASHING ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; MAIN PROC far MOV AX,@DATA MOV DS,AX mov es,ax CALL split_command split_operands Two_Operands_Together_splited Operand1 Operand2 HASHING command_splited HASH HASHING_op Operand1 HASH_Operand1 HASHING_op Operand2 HASH_Operand2 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; check_Operand HASH_Operand1 Operand1_Value Operand1 sizeIndex ;; 0 for byte, 1 for word check_Operand HASH_Operand2 Operand2_Value Operand2 sizeIndex CALL check_command HLT MAIN ENDP ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Hany ;; split operand and store it in split_command ;; split operands and store it in Two_Operands_Together_splited split_command PROC mov SI, offset command mov DI, offset command_splited mov al,' ' ;; to check space moving11: MOVSB cmp al,[SI] jnz moving11 ;; Mena mov DI, offset Two_Operands_Together_splited mov al,'$' ;; to check end inc SI ;; to skip space moving22: MOVSB cmp al,[SI] jnz moving22 ret split_command ENDP check_command PROC MOV SI,offset HASH MOV DI,offset command_splited ;; ADD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; CMP [SI],29CH JNZ CHECK1 MOV AX,Operand1_Value MOV BX,Operand2_Value ADD AX,BX put_Operand HASH_Operand1 AX sizeIndex CHECK1: ;; ADC CMP [SI],299H JNZ CHECK2 ;; CODE MOV AX,Operand1_Value MOV BX,Operand2_Value ADC AX,BX put_Operand HASH_Operand1 AX sizeIndex CHECK2: ;; SUB CMP [SI],311H JNZ CHECK3 ;; CODE DisplayString command_splited MOV AX,Operand1_Value MOV BX,Operand2_Value SUB AX,BX put_Operand HASH_Operand1 AX sizeIndex CHECK3: ;; SBB CMP [SI],2D8H JNZ CHECK4 ;; CODE MOV AX,Operand1_Value MOV BX,Operand2_Value SBB AX,BX put_Operand HASH_Operand1 AX sizeIndex CHECK4: ;; DIV CMP [SI],2EDH JNZ CHECK5 ;; CODE MOV BX,Operand1_Value MOV CL,sizeIndex CMP CL,1 JNE BYTE MOV AX,_AX ;;;;;; div error div overflow DIV BX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; MOV HASH_Operand1,24DH put_Operand HASH_Operand1 AX sizeIndex ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; MOV HASH_Operand1,25CH ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; put_Operand HASH_Operand1 DX sizeIndex JMP CONT ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; BYTE: MOV AX,_AX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DIV BL MOV HASH_Operand1,24DH ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; put_Operand HASH_Operand1 AX sizeIndex CONT: CHECK5: ;; MUL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; CMP [SI],317H JNZ CHECK6 ;; CODE MOV BX,Operand1_Value MOV CL,sizeIndex CMP CL,1 JNE BYTE1 MOV AX,_AX MUL BX MOV HASH_Operand1,24DH put_Operand HASH_Operand1 AX sizeIndex MOV HASH_Operand1,25CH put_Operand HASH_Operand1 DX sizeIndex JMP CONT BYTE1: MOV AX,_AX MUL BL MOV HASH_Operand1,24DH put_Operand HASH_Operand1 AX sizeIndex CONT1: CHECK6: ;; MOV CMP [SI],323H JNZ CHECK7 ;; CODE put_Operand HASH_Operand1 Operand2_Value Operand1 sizeIndex CHECK7: ;; XOR CMP [SI],343H JNZ CHECK8 ;; CODE MOV AX,Operand1_Value MOV BX,Operand2_Value XOR AX,BX put_Operand HASH_Operand1 AX sizeIndex CHECK8: ;; AND CMP [SI],2BAH JNZ CHECK9 ;; CODE MOV AX,Operand1_Value MOV BX,Operand2_Value AND AX,BX put_Operand HASH_Operand1 AX sizeIndex CHECK9: ;; OR CMP [SI],232H JNZ CHECK10 ;; CODE MOV AX,Operand1_Value MOV BX,Operand2_Value OR AX,BX put_Operand HASH_Operand1 AX sizeIndex CHECK10: ;; NOP CMP [SI],315H JNZ CHECK11 ;; CODE CHECK11: ;; SHR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; CL CX CH CMP [SI],31AH ; xxxx xxxx xxxx xxxx JNZ CHECK15 ;; CODE MOV AX,Operand1_Value MOV CX,Operand2_Value SHR AX,CL put_Operand HASH_Operand1 AX sizeIndex CHECK15: ;; INC CMP [SI],2D7H JNZ CHECK12 ;; CODE MOV AX,Operand1_Value INC AX put_Operand HASH_Operand1 AX sizeIndex CHECK12: ;; DEC CMP [SI],2A8H JNZ CHECK13 ;; CODE MOV AX,Operand1_Value DEC AX put_Operand HASH_Operand1 AX sizeIndex CHECK13: ;; CLC CMP [SI],2B9H JNZ CHECK14 ;; CODE CLC CHECK14: ;; SHL CMP [SI],308H JNZ CHECK16 ;; CODE MOV AX,Operand1_Value MOV CX,Operand2_Value SHL AX,CL put_Operand HASH_Operand1 AX sizeIndex CHECK16: ;; SAR CMP [SI],305H JNZ CHECK17 ;; CODE MOV AX,Operand1_Value MOV CX,Operand2_Value SAR AX,CL put_Operand HASH_Operand1 AX sizeIndex CHECK17: ;; ROR CMP [SI],32BH JNZ CHECK18 ;; CODE MOV AX,Operand1_Value MOV CX,Operand2_Value ROR AX,CL put_Operand HASH_Operand1 AX sizeIndex CHECK18: ;; RCL CMP [SI],2F5H JNZ CHECK19 ;; CODE MOV AX,Operand1_Value MOV CX,Operand2_Value RCL AX,CL put_Operand HASH_Operand1 AX sizeIndex CHECK19: ;; RCR CMP [SI],307H JNZ CHECK20 ;; CODE MOV AX,Operand1_Value MOV CX,Operand2_Value RCR AX,CL put_Operand HASH_Operand1 AX sizeIndex CHECK20: ;; ROL CMP [SI],319H JNZ CHECK21 ;; CODE MOV AX,Operand1_Value MOV CX,Operand2_Value ROL AX,CL put_Operand HASH_Operand1 AX sizeIndex CHECK21: RET check_command ENDP ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;Mena check_Operand MACRO HASH_Operand Operand_Value Operand sizeIndex LOCAL CHECKBX,CHECKCX,CHECKDX, CHECKSI,CHECKDI ,CHECKSP ,CHECKBP,CHECKAL ,CHECKBL,CHECKCL,,CHECKDL,CHECKAH,CHECKBH,CHECKCH,CHECKDH,CHECK00,CHECK01,CHECK02,CHECK03,CHECK04,CHECK05,CHECK06,CHECK07,CHECK08,CHECK09,CHECKA,CHECKB,CHECKC,CHECKD,CHECKE,CHECKF,CHECKmlSI,CHECKmlBI,CHECKmlBX,movml00,movml1,movml2,movml3,movml4,movml5,movml6,movml7,movml9,movmlA,movml8,movmlB,movmlC,movmlD,movmlE,movmlF,CHECKdata,CHECKmlDI,end MOV SI,offset HASH_Operand ;; AX CMP [SI],24dH JNZ CHECKBX mov ax,_AX;; CODE mov Operand_Value,ax mov sizeIndex,1h jmp end CHECKBX: ;; BX CMP [SI],252H JNZ CHECKCX mov ax,_BX;; CODE mov Operand_Value,ax mov sizeIndex,1h jmp end CHECKCX: ;; CX CMP [SI],257H JNZ CHECKDX mov ax,_CX;; CODE mov Operand_Value,ax mov sizeIndex,1h jmp end CHECKDX: ;; DX CMP [SI],25cH JNZ CHECKSI mov ax,_DX;; CODE mov Operand_Value,ax mov sizeIndex,1h jmp end CHECKSI: ;; SI CMP [SI],27aH JNZ CHECKDI mov ax,_SI;; CODE mov Operand_Value,ax mov sizeIndex,1h jmp end CHECKDI: ;; DI CMP [SI],22fH JNZ CHECKSP mov ax,_DI;; CODE mov Operand_Value,ax mov sizeIndex,1h jmp end CHECKSP: ;; SP CMP [SI],28fH JNZ CHECKBP mov ax,_SP;; CODE mov Operand_Value,ax mov sizeIndex,1h jmp end CHECKBP: ;; BP CMP [SI],23aH JNZ CHECKAL mov ax,_BP;; CODE mov Operand_Value,ax mov sizeIndex,1h jmp end CHECKAL: ;; AL CMP [SI],229H JNZ CHECKBL mov ax,_AX;; CODE mov Ah,00H mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECKBL: ;; BL CMP [SI],22eH JNZ CHECKCL mov ax,_BX;; CODE MOV AH,00H mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECKCL: ;; CL CMP [SI],233H JNZ CHECKDL mov ax,_CX;; CODE MOV AH,00H mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECKDL: ;; DL CMP [SI],238H JNZ CHECKAH mov ax,_DX;; CODE MOV AH,00H mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECKAH: ;; AH CMP [SI],21dH JNZ CHECKBH mov ax,_AX;; CODE MOV AL,AH MOV AH,00H mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECKBH: ;; BH CMP [SI],222H JNZ CHECKCH mov ax,_BX;; CODE MOV AL,AH MOV AH,00H mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECKCH: ;; CH CMP [SI],227H JNZ CHECKDH mov ax,_CX;; CODE MOV AL,AH MOV AH,00H mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECKDH: ;; DH CMP [SI],22cH JNZ CHECK00 mov ax,_DX;; CODE MOV AL,AH MOV AH,00H mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECK00: ;; 00 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;TO CHECK CMP [SI],3feH JNZ CHECK01 movml00: mov aL,_00 MOV AH,_01 mov Operand_Value,ax jmp end CHECK01: ; ;; 01 CMP [SI],401H JNZ CHECK02 movml1: mov aL,_01 MOV AH,_02 mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECK02: ; ;; 02 CMP [SI],404H JNZ CHECK03 movml2: mov aL,_02 MOV AH,_03 mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECK03: ; ;; 03 CMP [SI],407H JNZ CHECK04 movml3: mov aL,_03 MOV AH,_04 mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECK04: ; ;; 04 CMP [SI],40aH JNZ CHECK05 movml4: mov aL,_04 MOV AH,_05 mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECK05: ; ;; 05 CMP [SI],40dH JNZ CHECK06 movml5: mov aL,_05 MOV AH,_06 mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECK06: ; ;; 06 CMP [SI],410H JNZ CHECK07 movml6: mov aL,_06 MOV AH,_07 mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECK07: ; ;; 07 CMP [SI],413H JNZ CHECK08 movml7: mov aL,_07 MOV AH,_08 mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECK08: ; ;; 08 CMP [SI],416H JNZ CHECK09 movml8: mov aL,_08 MOV AH,_09 mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECK09: ; ;; 09 CMP [SI],419H JNZ CHECKA movml9: mov aL,_09 MOV AH,_A mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECKA: ; ;; A CMP [SI],3a1H JNZ CHECKB movmlA: mov aL,_A MOV AH,_B mov Operand_Value,aX ;mov sizeIndex,0h jmp end CHECKB: ; ;; B CMP [SI],3a4H JNZ CHECKC movmlB: mov aL,_B MOV AH,_C mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECKC: ; ;; C CMP [SI],3a7H JNZ CHECKD movmlC: mov aL,_C MOV AH,_D mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECKD: ; ;; D CMP [SI],3aaH JNZ CHECKE movmlD: mov aL,_D MOV AH,_E mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECKE: ; ;; E CMP [SI],3adH JNZ CHECKF movmlE: mov aL,_E MOV AH,_F mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECKF: ;; F CMP [SI],3b0H JNZ CHECKmlSI movmlF: mov aL,_F MOV AH,_00 mov Operand_Value,ax ;mov sizeIndex,0h jmp end CHECKmlSI: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; TO CHECK ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; TO CHECK ;[SI] CMP [SI],4b2H JNZ CHECKmlDI ;; cmp _SI,0H jz movml00 cmp _SI,1H jz movml1 cmp _SI,2H jz movml2 cmp _SI,3H jz movml3 cmp _SI,4H jz movml4 cmp _SI,5H jz movml5 cmp _SI,6H jz movml6 cmp _SI,7H jz movml7 cmp _SI,8H jz movml8 cmp _SI,9H jz movml9 cmp _SI,0AH jz movmlA cmp _SI,0BH jz movmlB cmp _SI,0CH jz movmlC cmp _SI,0DH jz movmlD cmp _SI,0EH jz movmlE cmp _SI,0FH jz movmlF ; ; ;RegisterIndirect_Addressing_Mode _SI jmp end CHECKmlDI: ; ;; [DI] CMP [SI],485H JNZ CHECKmlBX ; cmp _DI,0H jz movml00 cmp _DI,1H jz movml1 cmp _DI,2H jz movml2 cmp _DI,3H jz movml3 cmp _DI,4H jz movml4 cmp _DI,5H jz movml5 cmp _DI,6H jz movml6 cmp _DI,7H jz movml7 cmp _DI,8H jz movml8 cmp _DI,9H jz movml9 cmp _DI,0AH jz movmlA cmp _DI,0BH jz movmlB cmp _DI,0CH jz movmlC cmp _DI,0DH jz movmlD cmp _DI,0EH jz movmlE cmp _DI,0FH jz movmlF ; ; ;RegisterIndirect_Addressing_Mode _DI CHECKmlBX: ;; [BX] CMP [SI],4acH JNZ CHECKdata ; cmp _BX,0H jz movml00 cmp _BX,1H jz movml1 cmp _BX,2H jz movml2 cmp _BX,3H jz movml3 cmp _BX,4H jz movml4 cmp _BX,5H jz movml5 cmp _BX,6H jz movml6 cmp _BX,7H jz movml7 cmp _BX,8H jz movml8 cmp _BX,9H jz movml9 cmp _BX,0AH jz movmlA cmp _BX,0BH jz movmlB cmp _BX,0CH jz movmlC cmp _BX,0DH jz movmlD cmp _BX,0EH jz movmlE cmp _BX,0FH jz movmlF ; ;RegisterIndirect_Addressing_Mode _BX CHECKdata: Convert_OP_TO_HEXA Operand mov Operand_Value,ax end: check_Operand ENDM ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Convert_OP_TO_HEXA MACRO OPERAND local l1, l2, numb, SKIP_NUM, end_of_op,FINISHED ;;STORES THE RESULT in AX mov cx,0 mov dx,0 MOV DI, offset OPERAND l1: cmp [DI],'$' je end_of_op inc cx ;;counter (LENTGH OF STRING) mov dl, [DI] ;; store it to proccedd cmp dl,'A' jb numb cmp dl, 'F' ja numb ;; from A-F sub dl,55 ;; convertd A-F to 10-16 jmp SKIP_NUM numb: ;; from 1 - 9 sub dl,'0' SKIP_NUM: push dx ;; STORE IN STACK TO TAKE IT BACK inc di ;; next Char jmp l1 end_of_op: mov bx,1 mov di,0 ; to store result CMP CX,0 ;;STRING WAS EMPTY JE FINISHED l2: ; pop and multi then add to dx pop ax mul bx ;; MULTIPLY AX BY THE SUITABLE WEIGHT add di,ax mov ax,bx ;; INCREASE THE WEIGHT mov bx,16 ;;in AX mul bx mov bx,ax ;;get it in BX loop l2 FINISHED: mov ax,di ;; STORE THE RESULT ENDM Convert_OP_TO_HEXA ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; done put_Operand MACRO HASH_Operand Operand_Value sizeIndex LOCAL CHECKBX,CHECKCX,CHECKDX, CHECKSI,CHECKDI ,CHECKSP ,CHECKBP,CHECKAL ,CHECKBL,CHECKCL,,CHECKDL,CHECKAH,CHECKBH,CHECKCH,CHECKDH,CHECK00,CHECK01,CHECK02,CHECK03,CHECK04,CHECK05,CHECK06,CHECK07,CHECK08,CHECK09,CHECKA,CHECKB,CHECKC,CHECKD,CHECKE,CHECKF,CHECKmlSI,CHECKmlBI,CHECKmlBX,movml00,movml1,movml2,movml3,movml4,movml5,movml6,movml7,movml9,movmlA,movml8,movmlB,movmlC,movmlD,movmlE,movmlF,CHECKdata ,CHECKmlDI,end MOV SI,offset HASH_Operand mov cl,sizeIndex mov ch,1h ;; AX CMP [SI],24dH JNZ CHECKBX mov ax,Operand_Value;; CODE mov _AX,ax jmp end CHECKBX: ;; BX CMP [SI],252H JNZ CHECKCX mov ax,Operand_Value;; CODE mov _BX,ax jmp end CHECKCX: ;; CX CMP [SI],257H JNZ CHECKDX mov ax,Operand_Value;; CODE mov _CX,ax jmp end CHECKDX: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; DX CMP [SI],25cH JNZ CHECKSI mov ax,Operand_Value;; CODE mov _DX,ax jmp end CHECKSI: ;; SI CMP [SI],27aH JNZ CHECKDI mov ax,Operand_Value;; CODE mov _SI,ax jmp end CHECKDI: ;; DI CMP [SI],22fH JNZ CHECKSP mov ax,Operand_Value;; CODE mov _DI,ax jmp end CHECKSP: ;; SP CMP [SI],28fH JNZ CHECKBP mov ax,Operand_Value;; CODE mov _SP,ax jmp end CHECKBP: ;; BP CMP [SI],23aH JNZ CHECKAL mov ax,Operand_Value;; CODE mov _BP,ax jmp end CHECKAL:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; AL CMP [SI],229H JNZ CHECKBL mov ax,Operand_Value;; CODE mov bx,_AX mov bl,al mov _AX,bx jmp end CHECKBL: ;; BL CMP [SI],22eH JNZ CHECKCL mov ax,Operand_Value;; CODE mov bx,_BX mov bl,al mov _bX,bx jmp end CHECKCL: ;; CL CMP [SI],233H JNZ CHECKDL mov ax,Operand_Value;; CODE mov bx,_CX mov bl,al mov _CX,bx jmp end CHECKDL: ;; DL CMP [SI],238H JNZ CHECKAH mov ax,Operand_Value;; CODE mov bx,_DX mov bl,al mov _DX,bx jmp end CHECKAH: ;; AH CMP [SI],21dH JNZ CHECKBH mov ax,Operand_Value;; CODE mov bx,_AX mov bh,al mov _AX,bx jmp end CHECKBH: ;; BH CMP [SI],222H JNZ CHECKCH mov ax,Operand_Value;; CODE mov bx,_BX mov bh,al mov _BX,bx jmp end CHECKCH: ;; CH CMP [SI],227H JNZ CHECKDH mov ax,Operand_Value;; CODE mov bx,_CX mov bh,al mov _CX,bx jmp end CHECKDH: ;; DH CMP [SI],22cH JNZ CHECK00 mov ax,Operand_Value;; CODE mov bx,_DX mov bh,al mov _DX,bx jmp end CHECK00: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; 00 CMP [SI],3feH JNZ CHECK01 movml00: mov ax,Operand_Value;; CODE mov _00,al cmp cl,ch jne end mov _01,ah jmp end CHECK01: ; ;; 01 CMP [SI],401H JNZ CHECK02 movml1: mov ax,Operand_Value;; CODE mov _01,al cmp cl,ch jne end mov _02,ah jmp end CHECK02: ; ;; 02 CMP [SI],404H JNZ CHECK03 movml2: mov ax,Operand_Value;; CODE mov _02,al cmp cl,ch jne end mov _03,ah jmp end CHECK03: ; ;; 03 CMP [SI],407H JNZ CHECK04 movml3: mov ax,Operand_Value;; CODE mov _03,al cmp cl,ch jne end mov _04,ah jmp end CHECK04: ; ;; 04 CMP [SI],40aH JNZ CHECK05 movml4: mov ax,Operand_Value;; CODE mov _04,al cmp cl,ch jne end mov _05,ah jmp end CHECK05: ; ;; 05 CMP [SI],40dH JNZ CHECK06 movml5: mov ax,Operand_Value;; CODE mov _05,ax cmp cl,ch jne end mov _06,ah jmp end CHECK06: ; ;; 06 CMP [SI],410H JNZ CHECK07 movml6: mov ax,Operand_Value;; CODE mov _06,ax cmp cl,ch jne end mov _07,ah jmp end CHECK07: ; ;; 07 CMP [SI],413H JNZ CHECK08 movml7: mov ax,Operand_Value;; CODE mov _07,al cmp cl,ch jne end mov _08,ah jmp end CHECK08: ; ;; 08 CMP [SI],416H JNZ CHECK09 movml8: mov ax,Operand_Value;; CODE mov _08,al cmp cl,ch jne end mov _09,ah jmp end CHECK09: ; ;; 09 CMP [SI],419H JNZ CHECKA movml9: mov ax,Operand_Value;; CODE mov _09,al cmp cl,ch jne end mov _A,ah jmp end CHECKA: ; ;; A CMP [SI],3a1H JNZ CHECKB movmlA: mov ax,Operand_Value;; CODE mov _A,al cmp cl,ch jne end mov _B,ah jmp end CHECKB: ; ;; B CMP [SI],3a4H JNZ CHECKC movmlB: mov ax,Operand_Value;; CODE mov _B,al cmp cl,ch jne end mov _C,ah jmp end CHECKC: ; ;; C CMP [SI],3a7H JNZ CHECKD movmlC: mov ax,Operand_Value;; CODE mov _C,al cmp cl,ch jne end mov _D,ah jmp end CHECKD: ; ;; D CMP [SI],3aaH JNZ CHECKE movmlD: mov ax,Operand_Value;; CODE mov _D,al cmp cl,ch jne end mov _E,ah jmp end CHECKE: ; ;; E CMP [SI],3adH JNZ CHECKF movmlE: mov ax,Operand_Value;; CODE mov _E,al cmp cl,ch jne end mov _F,ah jmp end CHECKF: ; ;; F CMP [SI],3b0H JNZ CHECKmlSI movmlF: mov ax,Operand_Value;; CODE mov _F,al cmp cl,ch jne end mov _00,ah jmp end CHECKmlSI: ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ;[SI] CMP [SI],4b2H JNZ CHECKmlDI ;; cmp _SI,0H jz movml00 cmp _SI,1H jz movml1 cmp _SI,2H jz movml2 cmp _SI,3H jz movml3 cmp _SI,4H jz movml4 cmp _SI,5H jz movml5 cmp _SI,6H jz movml6 cmp _SI,7H jz movml7 cmp _SI,8H jz movml8 cmp _SI,9H jz movml9 cmp _SI,0AH jz movmlA cmp _SI,0BH jz movmlB cmp _SI,0CH jz movmlC cmp _SI,0DH jz movmlD cmp _SI,0EH jz movmlE cmp _SI,0FH jz movmlF ; ; ; ;RegisterIndirect_Addressing_Mode _SI jmp end CHECKmlDI: ; ;; [DI] CMP [SI],485H JNZ CHECKmlBX ; cmp _DI,0H jz movml00 cmp _DI,1H jz movml1 cmp _DI,2H jz movml2 cmp _DI,3H jz movml3 cmp _DI,4H jz movml4 cmp _DI,5H jz movml5 cmp _DI,6H jz movml6 cmp _DI,7H jz movml7 cmp _DI,8H jz movml8 cmp _DI,9H jz movml9 cmp _DI,0AH jz movmlA cmp _DI,0BH jz movmlB cmp _DI,0CH jz movmlC cmp _DI,0DH jz movmlD cmp _DI,0EH jz movmlE cmp _DI,0FH jz movmlF ; ; ; ;RegisterIndirect_Addressing_Mode _DI CHECKmlBX: ;; [BX] CMP [SI],4acH JNZ end ; cmp _BX,0H jz movml00 cmp _BX,1H jz movml1 cmp _BX,2H jz movml2 cmp _BX,3H jz movml3 cmp _BX,4H jz movml4 cmp _BX,5H jz movml5 cmp _BX,6H jz movml6 cmp _BX,7H jz movml7 cmp _BX,8H jz movml8 cmp _BX,9H jz movml9 cmp _BX,0AH jz movmlA cmp _BX,0BH jz movmlB cmp _BX,0CH jz movmlC cmp _BX,0DH jz movmlD cmp _BX,0EH jz movmlE cmp _BX,0FH jz movmlF ; ;RegisterIndirect_Addressing_Mode _BX end: put_Operand ENDM END MAIN ; ;..................................... ; check_command MACRO command result;; command is a string that contain the command-- Result -> 1 means sucess -- -> 0 failed ; ;; determine the command ; cmp ; jnz ; ;; checing validation ; ;; split two operands ; ;;des 1 -- des 2 ; ;; call macro-> move ; cmp ; ;;call macro-> add ; ENDM check_command ; move MACRO des1 des2 _Ax _BX _CX ; ;; Es ; ;; second reg, memory -> ; ; ; ; ; ; move ES ; ;; first ; ; ; ; ; ;mov variable es ; ;................. ; ;; reg cehck ; ;;ax ;;mov [_al], ; ; l h ; ;;memory ; ;;[] ; ;;reg ; ;; location num ; ;exec ; ENDM move ; ;...........
asm-tests/test-6.asm
TheShoutingParrot/jaz80
0
178801
; A test program for the jasmZ80 assembler ; This assembly program tests the following instructions: ; - ld (bc/de), a ; - ld a, (bc/de) ; - jp (hl) ; - ld (**), hl ; - ld hl, (**) ; - ld (**), a ; ; NOTE: This program's intention is to test the jasmZ80 assembler ; (and possibly other assemblers) NOT to test emulators! stackpointer equ AAAAh pointer equ BBBBh org 100h ld hl, stackpointer ld sp, hl ld c, 9 ld de, helloworld test1: ld b, 8 call 5 djnz -5 ld de, test1str call 5 test2: ld a, FCh neg jr 3 ; jr z, -5 jumps here jp failed ; this should neverr be executed (always skipped) dec a ; jr 3 jumps here jr nz, -3 ld de, test2str call 5 test3: ld bc, 1234h ld (pointer), bc ld hl, (pointer) sbc hl, hl sbc hl, de sbc hl, bc sbc hl, sp adc hl, de adc hl, bc adc hl, sp ldi sbc hl, de rrd ld a, r ld bc, 0 ld bc, (pointer) ld c, 9 ld de, test3str in d, (c) rl a rlc b rlc c rlc d rlc e rlc h rlc l rlc (hl) rr b rrc c sla a sra l srl c ld c, 9 ld de, test4str in d, (c) bit 0, b bit 1, (hl) bit 2, c bit 3, a bit 4, d bit 5, e bit 6, l bit 7, h ld c, 9 ld de, test5str in d, (c) ld e, FFh res 0, e res 1, e res 2, e res 3, e res 4, e res 5, e res 6, e res 7, e ld c, 9 ld de, test6str in d, (c) ld a, 0 set 7, a set 6, a set 5, a set 4, a set 3, a set 2, a set 1, a set 0, a ; tests the cp/m bios printing exit: ld c, 9 ld de, exitstr call 5 jp 0 failed: ld c, 9 ld de, failure call 5 jp exit helloworld db "Hello, world!", Ah, "$" test1str db "test 1 executed succesfully!", Ah, "$" test2str db "test 2 executed succesfully!", Ah, "$" test3str db "test 3 executed succesfully!", Ah, "$" test4str db "testing the bit instruction...", Ah, "$" test5str db "testing the reset instruction...", Ah, "$" test6str db "testing the set instruction...", Ah, "$" failure db "test failed!", Ah, "$" exitstr db "program exiting...", Ah, "$" db "This is a test program for the jasmZ80 assembler which has been probably and hopefully assembled by the jasmZ80 assembler", Ah, "$" db "MADE ON EARTH BY HUMANS$"
slot_mgt.asm
axtens/bose_plus
0
247727
<filename>slot_mgt.asm SEGetSlot PROC STDCALL MOV EAX, currentSlot RET SEGetSlot endp SESetSlot PROC STDCALL uses EDI ESI nSlot:DWORD PUSH EDX MOV EDX, nSlot MOV EDI, [EDX] .if EDI < 0d || EDI > SLOT_COUNT fn Log_Error, "SESetSlot", EDI, E_INVALID_SLOT, -1 fn Set_Error, E_ERROR_LOGGED JMP @F .endif MOV ESI, rv(IntMul, EDI, SIZEOF Slot) MOV EDX, Slots[ESI].instantiated .if EDX == 0 PUSH EDX fn Instantiate, EDI POP EDX .endif MOV currentSlot, EDI fn Set_Error, E_NO_ERROR @@: POP EDX RET SESetSlot endp SESetGlobalSlotSize PROC STDCALL nSize:DWORD PUSH EDX PUSH ECX MOV EDX, nSize MOV ECX, [EDX] .if ECX < 0d || ECX > 65535 fn Log_Error, "SESetGlobalSlotSize", ECX, E_INVALID_SLOT, -1 fn Set_Error, E_ERROR_LOGGED JMP @F .endif MOV slotSize, ECX ; .if Slots[0].slotbase != 0d ; fn SysFreeString, Slots[0].slotbase ; .endif fn Instantiate, 0 ;reinstantiate slot 0 with the new size fn Set_Error, E_NO_ERROR @@: POP ECX POP EDX RET SESetGlobalSlotSize endp SEGetGlobalSlotSize PROC STDCALL MOV EAX, slotSize RET SEGetGlobalSlotSize endp SESwapSlot PROC STDCALL uses EBX EDI ESI nSlotFrom:DWORD, nSlotTo:DWORD LOCAL nFrom:DWORD LOCAL nTo:DWORD LOCAL dSlot:Slot PUSH ECX PUSH EDX MOV EDX, nSlotFrom MOV EAX, [EDX] .if EAX < 0d || EAX > SLOT_COUNT fn Log_Error, "SESwapSlot", EAX, E_INVALID_SLOT, -1 fn Set_Error, E_ERROR_LOGGED JMP @F .endif MOV nFrom,EAX MOV EDX, nSlotTo MOV EAX, [EDX] .if EAX < 0d || EAX > SLOT_COUNT fn Log_Error, "SESWapSlot", EAX, E_INVALID_SLOT, -1 fn Set_Error, E_ERROR_LOGGED JMP @F .endif MOV nTo, EAX .if EAX == nFrom ; Swapping from the same slot. Treat as a NOP. fn Set_Error, E_NO_ERROR JMP @F .endif MOV EDI, rv(IntMul, EAX, SIZEOF Slot) MOV EAX, nFrom MOV ESI, rv(IntMul, EAX, SIZEOF Slot) fn MemCopy, ADDR Slots[ESI], ADDR dSlot, SIZEOF Slot fn MemCopy, ADDR Slots[EDI], ADDR Slots[ESI], SIZEOF Slot fn MemCopy, ADDR dSlot, ADDR Slots[EDI], SIZEOF Slot fn Set_Error, E_NO_ERROR @@: POP EDX POP ECX Ret SESwapSlot EndP SEForget PROC STDCALL uses EDI ESI nSlot:DWORD PUSH ECX PUSH EDX MOV EDX, nSlot MOV EDI, [EDX] ; PrintDec EDI, "Trying to forget" .if EDI > 0 .if EDI < (SLOT_COUNT + 1) MOV ESI, rv(IntMul, EDI, SIZEOF Slot) MOV Slots[ESI].instantiated, 0 MOV Slots[ESI].occupied, 0 fn SysFreeString, Slots[ESI].slotbase MOV Slots[ESI].slotbase, 0 MOV Slots[ESI].slotlength, 0 MOV Slots[ESI].textbase, 0 MOV Slots[ESI].textlength, 0 fn Set_Error, E_NO_ERROR JMP @F .endif .endif fn Log_Error, "SEForget", EDI, E_INVALID_SLOT, -1 fn Set_Error, E_ERROR_LOGGED @@: POP EDX POP ECX RET SEForget endp CopyAndOrForget PROC STDCALL uses EDI ESI nFrom:DWORD, nTo:DWORD, bForget:DWORD PUSH ECX PUSH EDX MOV ESI, nFrom MOV EDI, nTo ; PrintLine ; PrintText "CopyAndOrForget" ; PrintLine .if Slots[EDI].occupied == 1 ; PrintText "CopyAndOrForget occupied" ; if there's enough room in the slot, copy, else reallocate and then copy ; this will clobber whatever values are already in textbase and textlength MOV ECX, Slots[EDi].slotlength .if Slots[ESI].slotlength > ECX ;if greater then need to reallocate ; PrintText "CopyAndOrForget need to reallocate" ; free destination slot's slotbase fn SysFreeString, Slots[EDI].slotbase fn CalculateAndAllocate, ESI, EDI .else ;else just use what's there ; PrintText "CopyAndOrForget Just using what's there" ; get destination slot's length, divide by two MOV ECX, Slots[EDI].slotlength SHR ECX, 1 ; add to destination slot's base to find destination slot's middle ADD ECX, Slots[EDI].slotbase ; get source text's length, divide by two MOV EAX, Slots[ESI].textlength SHR EAX, 1 ; subtract from destination slot's middle address to find copy_to address SUB ECX, EAX ; copy MOV EAX, Slots[ESI].textbase ; PrintHex EAX, "CopyAndOrForget Slots at ESI textbase" ; PrintHex ECX, "CopyAndOrForget Where to put it" fn MemCopy, Slots[ESI].textbase, ECX, Slots[ESI].textlength m2m Slots[EDI].textlength, Slots[ESI].textlength ; update slot details ; ? .endif .else ; destination slot not occupied ; PrintText "CopyAndOrForget not occupied" ; calculate new allocation length as source's text length plus BUFFER_INCREMENT ; allocate and store in destination slot's slotbase ; store new length in destination slot's slotlength ; halve that figure, add to slotbase, giving address of halfway ; halve length of source slot's text, subtract from address of halfway ; copy to that address the text in source slot ; update other slot details fn CalculateAndAllocate, ESI, EDI .endif .if bForget == 1 ; PrintDec ESI, "Forgetting" ;forget the source slot MOV Slots[ESI].instantiated, 0d MOV Slots[ESI].occupied, 0d fn SysFreeString, Slots[ESI].slotbase MOV Slots[ESI].slotbase, 0d MOV Slots[ESI].slotlength, 0d MOV Slots[ESI].textbase, 0d MOV Slots[ESI].textlength, 0d .endif POP EDX POP ECX Ret CopyAndOrForget EndP SEMoveSlot PROC STDCALL uses EBX EDI ESI nSlotFrom:DWORD, nSlotTo:DWORD ; first, make sure that nSlotFrom and nSlotTo are allowable, ie. between 0 and SLOT_COUNT ; if source slot not instantiated, error ; if source slot not occupied, error ; if destination slot not instantiated, instantiate with size of source's text plus BUFFER_INCREMENT and copy ; else if destination slot is instantiated ; if text already big enough for source's text, copy ; otherwise free destination's text and reallocate with size of source's text plus BUFFER_INCREMENT ; then copy ; once copied, release all storage in source slot, and reset all slot flags LOCAL dFrom:DWORD LOCAL dTo:DWORD LOCAL dHalfway:DWORD LOCAL dSlot:Slot PUSH ECX PUSH EDX ; PrintLine ; PrintText "SEMoveSlot" ; PrintLine MOV EDX, nSlotFrom MOV EAX, [EDX] MOV dFrom, EAX MOV EDX, nSlotTo MOV EAX, [EDX] MOV dTo, EAX ; PrintText "SEMoveSlot" .if dFrom < 0d || dFrom > SLOT_COUNT fn Log_Error, "SEMoveSlot", dFrom, E_INVALID_SLOT, -1 fn Set_Error, E_ERROR_LOGGED JMP @F .endif .if dTo < 0d || dTo > SLOT_COUNT fn Log_Error, "SEMoveSlot", dTo, E_INVALID_SLOT, -1 fn Set_Error, E_ERROR_LOGGED JMP @F .endif MOV EAX, dFrom .if EAX == dTo ; moving to self is self-destructive. throw an error fn Log_Error, "SEMoveSlot", dTo, E_MOVE_SELF_TO_SELF, -1 fn Set_Error, E_ERROR_LOGGED JMP @F .endif MOV EDI, dFrom ; PrintDec EDI, "SEMoveSlot dFrom" MOV ESI, rv(IntMul, EDI, SIZEOF Slot) fn MemCopy, ADDR Slots[ESI], ADDR dSlot, SIZEOF Slot ; DumpMem ADDR dSlot, SIZEOF Slot, "dSlot" ; PrintDec dSlot.instantiated ; MOV EDX, OFFSET Slots ; PrintHex EDX, "Slots is supposed to be here" ; ADD EDX, ESI ; PrintHex EDX, "Add this is where the data's supposed to be" ; DumpMem EDX, SIZEOF Slot, "really?" .if Slots[ESI].instantiated == 0d fn Log_Error, "SEMoveSlot", EDI, E_SLOT_NOT_INSTANTIATED, -1 fn Set_Error, E_ERROR_LOGGED JMP @F .endif .if Slots[ESI].occupied == 0d fn Log_Error, "SEMoveSlot", EDI, E_SLOT_NOT_OCCUPIED, -1 fn Set_Error, E_ERROR_LOGGED JMP @F .endif MOV EBX, dTo ; PrintDec EBX, "dTo in SEMoveSlot" MOV EDX, rv(IntMul, EBX, SIZEOF Slot) ; DumpMem ADDR Slots[EDX], SIZEOF Slot, "Slots @ EDX in SEMoveSlot" .if Slots[EDX].instantiated == 0d ; PrintDec EBX, "SEMoveSlot Instantiating" fn Instantiate, EBX .endif fn CopyAndOrForget, ESI, EDX, 1 fn Set_Error, E_NO_ERROR @@: POP EDX POP ECX Ret SEMoveSlot EndP SECopySlot PROC STDCALL uses EBX EDI ESI nSlotFrom:DWORD, nSlotTo:DWORD ; first, make sure that nSlotFrom and nSlotTo are allowable, ie. between 0 and SLOT_COUNT ; if source slot not instantiated, error ; if source slot not occupied, error ; if destination slot not instantiated, instantiate with size of source's text plus BUFFER_INCREMENT and copy ; else if destination slot is instantiated ; if text already big enough for source's text, copy ; otherwise free destination's text and reallocate with size of source's text plus BUFFER_INCREMENT ; then copy LOCAL dFrom:DWORD LOCAL dTo:DWORD LOCAL dHalfway:DWORD PUSH ECX PUSH EDX ; PrintLine ; PrintText "SECopySlot" ; PrintLine MOV EDX, nSlotFrom MOV EAX, [EDX] MOV dFrom, EAX MOV EDX, nSlotTo MOV EAX, [EDX] MOV dTo, EAX ; PrintText "SECopySlot" .if dFrom < 0d || dFrom > SLOT_COUNT fn Log_Error, "SECopySlot", dFrom, E_INVALID_SLOT, -1 fn Set_Error, E_ERROR_LOGGED JMP @F .endif .if dTo < 0d || dTo > SLOT_COUNT fn Log_Error, "SECopySlot", dTo, E_INVALID_SLOT, -1 fn Set_Error, E_ERROR_LOGGED JMP @F .endif MOV EAX, dFrom .if EAX == dTo ; copying to self in a NOP fn Set_Error, E_NO_ERROR JMP @F .endif MOV EDI, dFrom MOV ESI, rv(IntMul, EDI, SIZEOF Slot) .if Slots[ESI].instantiated == 0d fn Log_Error, "SECopySlot", EDI, E_SLOT_NOT_INSTANTIATED, -1 fn Set_Error, E_ERROR_LOGGED JMP @F .endif .if Slots[ESI].occupied == 0d fn Log_Error, "SECopySlot", EDI, E_SLOT_NOT_OCCUPIED, -1 fn Set_Error, E_ERROR_LOGGED JMP @F .endif MOV EBX, dTo MOV EDX, rv(IntMul, EBX, SIZEOF Slot) .if Slots[EDX].instantiated == 0d ; PrintDec EBX, "SECopySlot Instantiating" fn Instantiate, EBX .endif ; PrintDec EDI, "Copying from" ; PrintDec EBX, "Copying to" fn CopyAndOrForget, ESI, EDX, 0d ;no forgetting fn Set_Error, E_NO_ERROR @@: POP EDX POP ECX Ret SECopySlot EndP Instantiate PROC STDCALL uses EDI ESI nSlot:DWORD ;LOCAL dSlot:Slot ;allocate space and store pointer in Slots[ESI].slotbase ; store slotSize in Slots[ESI].slotlength ; ADD slotSize / 2 to slotbase and store in Slots[EDI*32].textbase ; store 0 in Slots[ESI].textlength ; store 0 in Slots[ESI].occupied ; store 1 in Slots[ESI].instantiated PUSH ECX PUSH EDX MOV EDI, nSlot MOV ESI, rv(IntMul, EDI, SIZEOF Slot) .if Slots[ESI].slotbase != 0d fn SysFreeString, Slots[ESI].slotbase .endif MOV Slots[ESI].slotbase, rv( SysAllocStringByteLen, 0, slotSize ) ; MOV EDX, OFFSET Slots ; PrintHex EDX, "Instantiate: Slots's offset" ; ADD EDX, ESI ; PrintHex EDX, "Instantiate: Slots's offset + the slot's offset" PUSH EAX MOV EAX, slotSize MOV Slots[ESI].slotlength, EAX MOV ECX, slotSize SHR ECX, 1 ; divide by two POP EAX ADD ECX, EAX ; ECX new points halfway along slot MOV Slots[ESI].textbase, ECX MOV Slots[ESI].textlength, 0 MOV Slots[ESI].occupied, 0 MOV Slots[ESI].instantiated, 1 fn Set_Error, E_NO_ERROR POP EDX POP ECX RET Instantiate endp SpaceAtBase PROC STDCALL uses EDI ESI ;in currentSlot MOV EDI, currentSlot MOV ESI, rv(IntMul, EDI, SIZEOF Slot) ; return number of bytes between slotbase and textbase MOV EAX, Slots[ESI].textbase SUB EAX, Slots[ESI].slotbase RET SpaceAtBase endp SpaceToTop PROC STDCALL uses EDI ESI ;in currentSlot PUSH ECX MOV EDI, currentSlot MOV ESI, rv(IntMul, EDI, SIZEOF Slot) ; return number of bytes between (slotbase+slotlength) and (textbase+textlength) MOV EAX, Slots[ESI].slotbase ADD EAX, Slots[ESI].slotlength MOV ECX, Slots[ESI].textbase ADD ECX, Slots[ESI].textlength SUB EAX, ECX POP ECX RET SpaceToTop endp WillFitAtBase PROC STDCALL uses EDI ESI nSize:DWORD ;in currentSlot PUSH ECX MOV EDI, currentSlot MOV ESI, rv(IntMul, EDI, SIZEOF Slot) ; if slotbase + nSize > textbase, return 0, else return 1 MOV EAX, Slots[ESI].slotbase ADD EAX, nSize MOV ECX, Slots[ESI].textbase .if EAX > ECX MOV EAX, 0 .else MOV EAX, 1 .endif POP ECX RET WillFitAtBase endp WillFitAtTop PROC STDCALL uses EDI ESI nSize:DWORD ;in currentSlot PUSH ECX MOV EDI, currentSlot MOV ESI, rv(IntMul, EDI, SIZEOF Slot) ; if textbase + textlength + nSize > slotbase + slotlength, return 0, else return 1 MOV EAX, Slots[ESI].textbase ADD EAX, Slots[ESI].textlength ADD EAX, nSize MOV ECX, Slots[ESI].slotbase ADD ECX, Slots[ESI].slotlength .if EAX > ECX MOV EAX, 0 .else MOV EAX, 1 .endif POP ECX RET WillFitAtTop endp Verify PROC STDCALL uses EDI ESI ;on currentSlot ;make sure that: ; slotbase is less than textbase ; slotbase + slotlength is greater than textbase + textlength ; occupied == 1 if instantiated == 1 PUSH ECX PUSH EDX MOV EDI, currentSlot MOV ESI, rv(IntMul, EDI, SIZEOF Slot) MOV EDX, Slots[ESI].slotbase MOV ECX, Slots[ESI].textbase .if ECX < EDX ;if textbase < slotbase fn MessageBox, 0, "Textbase less than Slotbase", "BOSE", MB_OK .endif MOV EDX, Slots[ESI].slotbase ADD EDX, Slots[ESI].slotlength MOV ECX, Slots[ESI].textbase ADD EDX, Slots[ESI].textlength .if ECX > EDX ; if top pointer of text over the top of the slot fn MessageBox, 0, "Text extends beyond slot", "BOSE", MB_OK .endif MOV EDX, Slots[ESI].instantiated MOV ECX, Slots[ESI].occupied .if ECX == 1 .if EDX != 1 fn MessageBox, 0, "Occupied by not instantiated?", "BOSE", MB_OK .endif .endif POP EDX POP ECX RET Verify endp CalculateAndAllocate PROC STDCALL uses EDI ESI nFrom:DWORD, nTo:DWORD PUSH ECX PUSH EDX ; PrintLine ; PrintText "CalculateAndAllocate" ; PrintLine MOV ESI, nFrom MOV EDI, nTo ; PrintDec ESI, "From Offset" ; PrintDec EDI, "To Offset" ; calculate new allocation length as source's text length plus BUFFER_INCREMENT MOV ECX, Slots[ESI].textlength ADD ECX, BUFFER_INCREMENT ; PrintDec ECX, "CalculateAndAllocate new allocation size" ; allocate and store in destination slot's slotbase PUSH ECX MOV Slots[EDI].slotbase, rv(SysAllocStringByteLen, 0d, ECX) ; PrintHex EAX, "CalculateAndAllocate Allocated here" POP EAX ; store new length in destination slot's slotlength MOV Slots[EDI].slotlength, EAX ; halve that figure, add to slotbase, giving address of halfway SHR EAX, 1 ADD EAX, Slots[EDI].slotbase ; PrintHex EAX, "half way" ; halve length of source slot's text, subtract from address of halfway MOV ECX, Slots[ESI].textlength ; PrintDec ECX, "source slot's text length" SHR ECX, 1 ; PrintDec ECX, "half source slot's text length" SUB EAX, ECX ; PrintHex EAX, "new textbase" MOV Slots[EDI].textbase, EAX ; copy to that address the text in source slot ; PrintText "CalculateAndAllocate copying" ; MOV EDX, Slots[ESI].textbase ; PrintHex EDX, "CalculateAndAllocate Slots ESI textbase" ; MOV EDX, EAX ; PrintHex EAX, "CalculateAndAllocate new destination" ; MOV EDX, Slots[ESI].textlength ; PrintDec EDX, "CalculateAndAllocate Slots ESI textlength" fn MemCopy, Slots[ESI].textbase, EAX, Slots[ESI].textlength ; update other slot details m2m Slots[EDI].textlength, Slots[ESI].textlength MOV Slots[EDI].occupied, 1 ;??? MOV Slots[EDI].instantiated, 1 ; DumpMem ADDR Slots[ESI], SIZEOF Slot, "source was" ; DumpMem ADDR Slots[EDI], SIZEOF Slot, "destination is" POP EDX POP ECX Ret CalculateAndAllocate EndP
45/beef/drv/csd/inc/csd_code.asm
minblock/msdos
0
176010
;* ;* CW : Character Windows ;* ;* csd_code.asm : Start of CSD code ;***************************************************************************** sBegin DRV assumes CS,DRV assumes ds,NOTHING assumes ss,NOTHING ORG 0H ;* start of .CSD file ;***************************************************************************** ;* * Format of Start of CSD file ;* * DO NOT CHANGE THIS FORMAT !!! lpwDataCsd label dword ;* allocated by driver loader OFF_lpwDataCsd DW cbDataCsd ;* at load time: cbData ;* after loading: OFF_lpwDataCsd SEG_lpwDataCsd DW fmemDataCsd ;* at load time: fmemData ;* after loading: SEG_lpwDataCsd pinos DW 0 ;* pinos pincs DW 0 ;* pincs DW cpfnCsdMin ;* # of entries in table rgpfn: ;* * init/term DW ImodeGuessCurrentCsd DW FQueryInstCsd DW FInitCsd DW TermCsd ;* * special DW MoveHwCursCsd DW FQueryInftCsd DW FGetColorPaletteCsd DW SetColorPaletteCsd ;* * update DW PrepUpdateCsd DW DoUpdateCsd DW DoneUpdateCsd DW SpecialUpdateCsd ;* * screen saving routines DW CbSizeVidsCsd DW FSaveVidsCsd DW FRestoreVidsCsd DW SaveVidDataCsd DW RestoreVidDataCsd DW EnableVidsMonitorCsd DW BltArcCsd DW GetCharMapCsd Assert <(($ - rgpfn) / 2) EQ cpfnCsdMin> ;***************************************************************************** 
tools/configure/configure-tests-postgresql.adb
svn2github/matreshka
24
4638
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Localization, Internationalization, Globalization for Ada -- -- -- -- Tools Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011, <NAME> <<EMAIL>> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Ada.Strings.Fixed; with GNAT.Expect; with Configure.Builder; package body Configure.Tests.PostgreSQL is Has_PostgreSQL : constant Unbounded_String := +"HAS_POSTGRESQL"; PostgreSQL_Library_Options : constant Unbounded_String := +"POSTGRESQL_LIBRARY_OPTIONS"; ------------- -- Execute -- ------------- overriding procedure Execute (Self : in out PostgreSQL_Test; Arguments : in out Unbounded_String_Vector) is use Ada.Strings; use Ada.Strings.Fixed; use GNAT.Expect; function Has_Pg_Config return Boolean; -- Returns True when pg_config is found. -- function Pg_Libs return Unbounded_String_Vectors.Vector; -- -- Returns command line switches for linker. function Pg_Libdir return String; -- Returns library directory as reported by pg_config. ------------------- -- Has_Pg_Config -- ------------------- function Has_Pg_Config return Boolean is begin declare Status : aliased Integer; Output : constant String := Get_Command_Output ("pg_config", (1 => new String'("--version")), "", Status'Access, True); begin return Status = 0; end; exception when GNAT.Expect.Invalid_Process => return False; end Has_Pg_Config; --------------- -- Pg_Libdir -- --------------- function Pg_Libdir return String is Status : aliased Integer; Output : constant String := Trim (Get_Command_Output ("pg_config", (1 => new String'("--libdir")), "", Status'Access, True), Both); begin if Status = 0 then return Output; else return ""; end if; end Pg_Libdir; -- ------------- -- -- Pg_Libs -- -- ------------- -- -- function Pg_Libs return Unbounded_String_Vectors.Vector is -- Status : aliased Integer; -- Output : constant String := -- Trim -- (Get_Command_Output -- ("pg_config", -- (1 => new String'("--libs")), -- "", -- Status'Access, -- True), -- Both); -- Aux : Unbounded_String_Vectors.Vector; -- First : Positive; -- Last : Natural; -- -- begin -- if Status = 0 then -- First := Output'First; -- Last := Output'First; -- -- while Last <= Output'Last loop -- if Output (Last) = ' ' then -- -- Parameter separator found, add detected parameter to -- -- result. -- -- Aux.Append (To_Unbounded_String (Output (First .. Last - 1))); -- -- First := Last; -- -- -- Skip spaces. -- -- while First <= Output'Last loop -- exit when Output (First) /= ' '; -- -- First := First + 1; -- end loop; -- -- Last := First; -- end if; -- -- Last := Last + 1; -- end loop; -- end if; -- -- return Aux; -- end Pg_Libs; begin -- Command line parameter has preference other automatic detection. Self.Report_Check ("checking whether to build PostgreSQL module"); Self.Switches.Parse_Switches (Arguments); if Self.Switches.Is_Enabled then if Self.Switches.Is_Libdir_Specified then Substitutions.Insert (PostgreSQL_Library_Options, +"""-L" & Self.Switches.Libdir & """, ""-lpq"""); Self.Report_Status ("yes (command line)"); -- When pg_config is installed, it is used to check whether -- PostgreSQL is installed and to retrieve linker switches to link elsif Has_Pg_Config then Self.Report_Status ("yes (pg_config)"); Substitutions.Insert (PostgreSQL_Library_Options, +"""-L" & Pg_Libdir & """, ""-lpq"""); else Self.Report_Status ("no (pg_config not found)"); end if; else Self.Report_Status ("no (command line)"); end if; -- Check that PostgreSQL application can be linked with -- specified/detected set of options. if Substitutions.Contains (PostgreSQL_Library_Options) then Self.Report_Check ("checking whether PostgreSQL library is usable"); if Configure.Builder.Build ("config.tests/postgresql/") then Self.Report_Status ("yes"); else Self.Report_Status ("no"); -- Switches don't allow to build application, remove them. Substitutions.Delete (PostgreSQL_Library_Options); end if; end if; -- Insert empty value for substitution variable when PostgreSQL driver -- module is disabled. if not Substitutions.Contains (PostgreSQL_Library_Options) then Substitutions.Insert (PostgreSQL_Library_Options, Null_Unbounded_String); Substitutions.Insert (Has_PostgreSQL, Null_Unbounded_String); if Self.Switches.Is_Enabled and Self.Switches.Is_Enable_Specified then Fatal_Error ("PostgreSQL library is not found but support is requested"); else Information ("PostgreSQL driver module is disabled"); end if; else Substitutions.Insert (Has_PostgreSQL, To_Unbounded_String ("true")); end if; end Execute; ---------- -- Help -- ---------- overriding function Help (Self : PostgreSQL_Test) return Unbounded_String_Vector is begin return Self.Switches.Help; end Help; ---------- -- Name -- ---------- overriding function Name (Self : PostgreSQL_Test) return String is begin return "postgresql"; end Name; end Configure.Tests.PostgreSQL;
tests/vice-tests/interrupts/irq-ackn-bug/irq-ack-vicii.asm
PhylumChordata/chips-test
330
168810
; --- Code *=$0801 basic: ; BASIC stub: "1 SYS 2061" !by $0b,$08,$01,$00,$9e,$32,$30,$36,$31,$00,$00,$00 start: jmp testsetup * = $0a00 testsetup: ldx #$f0 colorloop: lda #$01 sta $d7ff,x lda #$20 sta $03ff,x dex bne colorloop lda #$00 sta screensetup+1 sta spritesetup+1 lda #$01 sta irq_type+1 lda #$28 sta toscreen+1 lda #$03 sta nextrasterirq+1 lda #$3f sta firstdelay+1 lda #<reference sta refloop+1 lda #>reference sta refloop+2 entrypoint: sei lda #$7f sta $dc0d sta $dd0d lda #$00 sta $dc0e sta $dc0f lda $dc0d lda $dd0d lda #$35 sta $01 lda #<irq_handler sta $fffe lda #>irq_handler sta $ffff lda #$1b sta $d011 lda #$45 sta $d012 lda #$05 sta $d01a sta $d019 lda #$00 sta $f5 lda #<testtable sta $fe lda #>testtable sta $ff lda #$06 sta $fd screensetup: lda #$00 sta screenptr+1 spritesetup: lda #$00 sta $d015 lda #$f8 sta $d000 sta $d002 lda #$49 sta $d001 sta $d003 ldx #$40 lda #$00 spritepatternloop: sta $3fc0,x dex bne spritepatternloop lda #$80 sta $3fc0 lda #$ff sta $07f8 sta $07f9 cli entry_loop: jmp entry_loop irq_handler: lda #<irq_handler_2 sta $fffe lda #>irq_handler_2 sta $ffff lda #$01 sta $d019 ldx $d012 inx stx $d012 cli ror $02 ror $02 ror $02 nop nop nop nop nop nop nop nop nop nop nop rti irq_handler_2: lda #$01 sta $d019 ldx #$07 irq_handler_2_wait_1: dex bne irq_handler_2_wait_1 nop nop lda $d012 cmp $d012 beq irq_handler_2_skip_1 irq_handler_2_skip_1: nop nop ldx #$04 irq_handler_2_wait_2: dex bne irq_handler_2_wait_2 inc $d021 dec $d021 clc lda $d012 nextrasterirq: adc #$03 sta $d012 lda $d01e cli lda #<irq_handler_3 sta $fffe lda #>irq_handler_3 sta $ffff firstdelay: lda #$3f jsr delay ldy #$01 lda ($fe),y bne noend: jmp referenceoutput noend: sta $c000 iny lda ($fe),y sta $c001 lda #'-' sta $fb ldy #$00 lda ($fe),y clc adc $fd jsr delay jmp ($c000) irq_handler_3: pha lda #'*' sta $fb irq_type: lda #$01 sta $d019 pla rti irq_ack_test1: lda #$05 sta $d019 jmp irq_reset_frame irq_ack_test2: inc $d019 jmp irq_reset_frame irq_ack_test3: asl $d019 jmp irq_reset_frame irq_ack_test4: sei lda $d019 and #$87 sta $fb jmp irq_reset_frame irq_reset_frame: lda $d01e lda #$45 sta $d012 lda #$05 sta $d019 lda $fb ldy $fd screenptr: sta $0400,y lda #$01 lda #<irq_handler sta $fffe lda #>irq_handler sta $ffff dec $fd bne same_test lda #$06 sta $fd clc lda $fe adc #$03 sta $fe clc lda screenptr+1 adc #$08 sta screenptr+1 same_test: rti end_of_testset: lda spritesetup+1 bne end_of_tests clc adc #$03 sta spritesetup+1 lda screensetup+1 clc adc #$78 sta screensetup+1 lda toscreen+1 clc adc #$78 sta toscreen+1 lda #$04 sta irq_type+1 lda #$b8 sta nextrasterirq+1 lda #$19 sta firstdelay+1 jmp entrypoint end_of_tests: ldy #2 ldx #0 endlp: lda $0401,x cmp $0401+40,x bne fail lda $0401+(3*40),x cmp $0401+(4*40),x bne fail ; txa ; sta $0401+(6*40),x inx cpx #30 bne endlp ldy #5 fail: sty $d020 lda $d020 and #$0f ldx #0 ; success cmp #5 beq nofail ldx #$ff ; failure nofail: stx $d7ff jmp * * = $0900 testtable: !by $30, <irq_ack_test1, >irq_ack_test1 !by $30, <irq_ack_test2, >irq_ack_test2 !by $30, <irq_ack_test3, >irq_ack_test3 !by $30, <irq_ack_test4, >irq_ack_test4 !by $00, $00, $00 reference: !scr " ***-** ***-** ****** " !by $81, $81, $81, $81, $00, $00 !scr " raster " !scr " sta inc asl lda" !by $ff !scr " ***-** ****** ****** " !by $84, $84, $84, $84, $00, $00 !scr " ss-col " !scr " sta inc asl lda" !by $ff referenceoutput: sei ldx #$00 refloop: lda reference inc refloop+1 bne *+5 inc refloop+2 cmp #$ff bne toscreen jmp end_of_testset toscreen: sta $0428,x inx jmp refloop * = $0850 delay: ;delay 80-accu cycles, 0<=accu<=64 lsr ;2 cycles akku=akku/2 carry=1 if accu was odd, 0 otherwise bcc waste1cycle ;2/3 cycles, depending on lowest bit, same operation for both waste1cycle: sta smod+1 ;4 cycles selfmodifies the argument of branch clc ;2 cycles ;now we have burned 10/11 cycles.. and jumping into a nopfield smod: bcc *+10 !by $EA,$EA,$EA,$EA,$EA,$EA,$EA,$EA !by $EA,$EA,$EA,$EA,$EA,$EA,$EA,$EA !by $EA,$EA,$EA,$EA,$EA,$EA,$EA,$EA !by $EA,$EA,$EA,$EA,$EA,$EA,$EA,$EA rts ;6 cycles
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/goto_loop_v2.adb
ouankou/rose
488
21435
with Ada.Text_IO; procedure goto_loop_Text_IO is begin <<Start>> Ada.Text_IO.Put_Line ("Goto Loop!"); goto Start; end goto_loop_Text_IO;
include/bits_types_struct_timeval_h.ads
docandrew/troodon
5
26365
<gh_stars>1-10 pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with bits_types_h; package bits_types_struct_timeval_h is -- A time value that is accurate to the nearest -- microsecond but also has a range of years. -- Seconds. type timeval is record tv_sec : aliased bits_types_h.uu_time_t; -- /usr/include/bits/types/struct_timeval.h:10 tv_usec : aliased bits_types_h.uu_suseconds_t; -- /usr/include/bits/types/struct_timeval.h:11 end record with Convention => C_Pass_By_Copy; -- /usr/include/bits/types/struct_timeval.h:8 -- Microseconds. end bits_types_struct_timeval_h;
Tests/sublime-syntax tests/syntax_test_labels.nasm
13xforever/x86-assembly-textmate-bundle
69
168698
<filename>Tests/sublime-syntax tests/syntax_test_labels.nasm ; SYNTAX TEST "Packages/User/x86_64 Assembly.tmbundle/Syntaxes/Nasm Assembly.sublime-syntax" label label: la12bel la12bel: la_$#@~.?bel_? la_$#@~.?bel_?: .local_label .local_label: .123 .1234: label ; ^^^^^ entity.name.constant label: ; ^^^^^ entity.name.constant ; ^ punctuation.separator la12bel ; ^^^^^^^ entity.name.constant la12bel: ; ^^^^^^^ entity.name.constant ; ^ punctuation.separator la_$#@~.?bel_? ; ^^^^^^^^^^^^^^ entity.name.constant la_$#@~.?bel_?: ; ^^^^^^^^^^^^^^ entity.name.constant ; ^ punctuation.separator .local_label ; ^ punctuation.separator storage.modifier ; ^^^^^^^^^^^ entity.name.constant .local_label: ; ^ punctuation.separator storage.modifier ; ^^^^^^^^^^^ entity.name.constant ; ^ punctuation.separator ..@special_label ; ^^^ punctuation.separator storage.modifier ; ^^^^^^^^^^^^^ entity.name.constant ..@special_label: ; ^^^ punctuation.separator storage.modifier ; ^^^^^^^^^^^^^ entity.name.constant ; ^ punctuation.separator .123 ; ^ punctuation.separator storage.modifier ; ^^^ entity.name.constant .123: ; ^ punctuation.separator storage.modifier ; ^^^ entity.name.constant ; ^ punctuation.separator ..start ; ^^^^^^^ support.constant ..imagebase ; ^^^^^^^^^^^ support.constant ..tlvp ; ^^^^^^ support.constant ..gotpcrel ; ^^^^^^^^^^ support.constant ..gotpc ; ^^^^^^^ support.constant ..gotoff ; ^^^^^^^^ support.constant ..got ; ^^^^^ support.constant ..plt ; ^^^^^ support.constant ..sym ; ^^^^^ support.constant ..tlsie ; ^^^^^^^ support.constant ..gottpoff ; ^^^^^^^^^^ support.constant 0asdlfh @not_a_label: ~not_a_label: #not_a_label: $not_a_label: $variable ..not_a_label: ..not_a_label mov ax, bx ; ^^^ keyword.operator.word.mnemonic ; ^^ constant.language.register ; ^^ constant.language.register
programs/oeis/002/A002901.asm
jmorken/loda
1
104565
; A002901: n^3 - floor( n/3 ). ; 0,1,8,26,63,124,214,341,510,726,997,1328,1724,2193,2740,3370,4091,4908,5826,6853,7994,9254,10641,12160,13816,15617,17568,19674,21943,24380,26990,29781,32758,35926,39293 mov $1,$0 div $0,3 pow $1,3 sub $1,$0
Transynther/x86/_processed/P/_zr_/i3-7100_9_0x84_notsx.log_21829_468.asm
ljhsiun2/medusa
9
21609
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0xd381, %rbp nop nop xor $8226, %r10 and $0xffffffffffffffc0, %rbp movntdqa (%rbp), %xmm0 vpextrq $1, %xmm0, %rdi nop nop xor %rax, %rax lea addresses_WT_ht+0x1e813, %rdi clflush (%rdi) nop nop nop and $59585, %r8 mov (%rdi), %r11 inc %r8 lea addresses_UC_ht+0x15791, %rax nop and %rcx, %rcx movl $0x61626364, (%rax) nop cmp %rax, %rax lea addresses_UC_ht+0x140fd, %rsi lea addresses_D_ht+0x9e0d, %rdi and %r10, %r10 mov $14, %rcx rep movsq nop nop nop cmp $20573, %r8 lea addresses_D_ht+0x10229, %rsi lea addresses_A_ht+0x8f3a, %rdi nop nop nop dec %r8 mov $54, %rcx rep movsq add $26621, %rdi lea addresses_WC_ht+0xf611, %rsi lea addresses_D_ht+0x13991, %rdi nop xor %r8, %r8 mov $60, %rcx rep movsl nop nop nop xor $53367, %rax lea addresses_WC_ht+0xbc91, %rcx nop nop inc %r10 movb $0x61, (%rcx) nop nop nop nop nop sub %rdi, %rdi lea addresses_normal_ht+0x5191, %rcx nop nop nop nop inc %rbp mov $0x6162636465666768, %rax movq %rax, %xmm6 vmovups %ymm6, (%rcx) nop nop nop nop cmp $45098, %rbp lea addresses_WC_ht+0x1eec1, %rbp nop nop sub $55496, %rdi mov (%rbp), %rsi nop and %rax, %rax lea addresses_WT_ht+0x4381, %rdi nop nop nop nop nop sub %rsi, %rsi movb (%rdi), %r11b cmp %r11, %r11 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %r9 push %rax push %rbx // Faulty Load mov $0x191, %rbx nop nop nop nop nop dec %r9 mov (%rbx), %rax lea oracles, %r14 and $0xff, %rax shlq $12, %rax mov (%r14,%rax,1), %rax pop %rbx pop %rax pop %r9 pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_P', 'same': True, 'size': 32, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_P', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 4, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'same': True, 'size': 8, 'congruent': 1, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_UC_ht', 'same': True, 'size': 4, 'congruent': 7, 'NT': True, 'AVXalign': True}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': True}, 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': True}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': True}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 32, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 8, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
original version (1984)/asm/map10-exec.asm
fa8ntomas/bclk-samples
0
93723
; Map 10 exec Map10Exec: lda MapVar1 bmi L33DF lda Map10Lamps+0*4 ora Map10Lamps+1*4 bne L33DF dec MapVar1 lda #$04 ldy #$26 jsr EntranceL31D4 L33DF: jmp UpdateTrees
src/ada/src/utils/bounded_stack.adb
VVCAS-Sean/OpenUxAS
88
7100
<filename>src/ada/src/utils/bounded_stack.adb package body Bounded_Stack with SPARK_Mode is procedure Push (S : in out Stack; E : Element_Type) is begin S.Content (S.Top + 1) := E; S.Top := S.Top + 1; end Push; procedure Pop (S : in out Stack; E : out Element_Type) is begin E := S.Content (S.Top); S.Top := S.Top - 1; end Pop; end Bounded_Stack;
src/NfModelMonad.agda
andreasabel/ipl
19
4857
--------------------------------------------------------------------------- -- Normalization by Evaluation for Intuitionistic Propositional Logic -- -- We employ a monadic interpreter for the soundness part, -- and a special class of monads, called cover monads, -- for the completeness part. -- -- Normalization is completeness after soundness. -- -- We give two instances of a cover monad: the free cover monad -- and the continuation monad with normal forms as answer type. --------------------------------------------------------------------------- {-# OPTIONS --postfix-projections #-} open import Library module NfModelMonad (Base : Set) where import Formulas ; open module Form = Formulas Base import Derivations; open module Der = Derivations Base --------------------------------------------------------------------------- -- Specification of a strong monad on presheaves. -- Devoid of monad laws. record Monad : Set₁ where -- Presheaf transformer. field C : (P : Cxt → Set) (Γ : Cxt) → Set monC : ∀{P} (monP : Mon P) → Mon (C P) -- Strong functor. field mapC' : ∀{P Q} → ⟨ P ⇒̂ Q ⊙ C P ⟩→̇ C Q -- Ordinary functor: an instance of mapC'. mapC : ∀{P Q} → (P →̇ Q) → (C P →̇ C Q) mapC f = mapC' λ τ → f -- Monad. field return : ∀{P} (monP : Mon P) → P →̇ C P joinC : ∀{P} → C (C P) →̇ C P -- Kleisli extension. extC : ∀{P Q} → (P →̇ C Q) → C P →̇ C Q extC f = joinC ∘ mapC f -- Strong bind. bindC' : ∀{P Q} (monP : Mon P) → C P →̇ (P ⇒̂ C Q) ⇒̂ C Q bindC' monP c τ k = joinC (mapC' k (monC monP τ c)) --------------------------------------------------------------------------- -- A model of IPL parametrized by a strong monad. module Soundness (monad : Monad) (open Monad monad) where -- The negative connectives True, ∧, and ⇒ are explained as usual by η-expansion -- and the meta-level connective. -- The positive connectives False and ∨ are inhabited by case trees. -- In case False, the tree has no leaves. -- In case A ∨ B, each leaf must be in the semantics of either A or B. T⟦_⟧ : (A : Form) (Γ : Cxt) → Set T⟦ Atom P ⟧ = C (Ne' (Atom P)) T⟦ False ⟧ = C λ Δ → ⊥ T⟦ A ∨ B ⟧ = C λ Δ → T⟦ A ⟧ Δ ⊎ T⟦ B ⟧ Δ T⟦ True ⟧ Γ = ⊤ T⟦ A ∧ B ⟧ Γ = T⟦ A ⟧ Γ × T⟦ B ⟧ Γ T⟦ A ⇒ B ⟧ Γ = ∀{Δ} (τ : Δ ≤ Γ) → T⟦ A ⟧ Δ → T⟦ B ⟧ Δ -- Monotonicity of the model is proven by induction on the proposition, -- using monotonicity of covers and the built-in monotonicity at implication. -- monT : ∀ A {Γ Δ} (τ : Δ ≤ Γ) → T⟦ A ⟧ Γ → T⟦ A ⟧ Δ monFalse : Mon (λ Γ → ⊥) monFalse τ () mutual monT : ∀ A → Mon T⟦ A ⟧ monT (Atom P) = monC monNe monT False = monC monFalse monT (A ∨ B) = monC (monOr A B) monT True = _ monT (A ∧ B) τ (a , b) = monT A τ a , monT B τ b monT (A ⇒ B) τ f σ = f (σ • τ) monOr : ∀ A B → Mon (λ Γ → T⟦ A ⟧ Γ ⊎ T⟦ B ⟧ Γ) monOr A B τ = map-⊎ (monT A τ) (monT B τ) returnOr : ∀ A B {Γ} → T⟦ A ⟧ Γ ⊎ T⟦ B ⟧ Γ → T⟦ A ∨ B ⟧ Γ returnOr A B = return (monOr A B) -- We can run computations of semantic values. -- This replaces the paste (weak sheaf condition) of Beth models. run : ∀ A → C T⟦ A ⟧ →̇ T⟦ A ⟧ run (Atom P) = joinC run False = joinC run (A ∨ B) = joinC run True = _ run (A ∧ B) = < run A ∘ mapC proj₁ , run B ∘ mapC proj₂ > run (A ⇒ B) c τ a = run B $ mapC' (λ δ f → f id≤ (monT A δ a)) $ monC (monT (A ⇒ B)) τ c -- Remark: A variant of run in the style of bind. run' : ∀ {P} (monP : Mon P) A → C P →̇ (P ⇒̂ T⟦ A ⟧) ⇒̂ T⟦ A ⟧ run' monP (Atom p) = bindC' monP run' monP False = bindC' monP run' monP (A ∨ B) = bindC' monP run' monP True = _ run' monP (A ∧ B) c τ k = run' monP A c τ (λ σ → proj₁ ∘ k σ) , run' monP B c τ (λ σ → proj₂ ∘ k σ) run' monP (A ⇒ B) c τ k σ a = run' monP B c (σ • τ) λ σ' p → k (σ' • σ) p id≤ (monT A σ' a) -- Fundamental theorem (interpretation / soundness). -- Pointwise extension of T⟦_⟧ to contexts. G⟦_⟧ : ∀ (Γ Δ : Cxt) → Set G⟦ ε ⟧ Δ = ⊤ G⟦ Γ ∙ A ⟧ Δ = G⟦ Γ ⟧ Δ × T⟦ A ⟧ Δ -- monG : ∀{Γ Δ Φ} (τ : Φ ≤ Δ) → G⟦ Γ ⟧ Δ → G⟦ Γ ⟧ Φ monG : ∀{Γ} → Mon G⟦ Γ ⟧ monG {ε} τ _ = _ monG {Γ ∙ A} τ (γ , a) = monG τ γ , monT A τ a -- Variable case. lookup : ∀{Γ A} (x : Hyp A Γ) → G⟦ Γ ⟧ →̇ T⟦ A ⟧ lookup top = proj₂ lookup (pop x) = lookup x ∘ proj₁ -- A lemma for the orE case. orElim : ∀ A B C → ⟨ T⟦ A ∨ B ⟧ ⊙ T⟦ A ⇒ C ⟧ ⊙ T⟦ B ⇒ C ⟧ ⟩→̇ T⟦ C ⟧ orElim A B C c g h = run C (mapC' (λ τ → [ g τ , h τ ]) c) orElim' : ∀ A B C → ⟨ T⟦ A ∨ B ⟧ ⊙ T⟦ A ⇒ C ⟧ ⊙ T⟦ B ⇒ C ⟧ ⟩→̇ T⟦ C ⟧ orElim' A B C c g h = run' (monOr A B) C c id≤ λ τ → [ g τ , h τ ] -- A lemma for the falseE case. -- Casts an empty cover into any semantic value (by contradiction). falseElim : ∀ C → T⟦ False ⟧ →̇ T⟦ C ⟧ falseElim C = run C ∘ mapC ⊥-elim -- The fundamental theorem eval : ∀{A Γ} (t : Γ ⊢ A) → G⟦ Γ ⟧ →̇ T⟦ A ⟧ eval (hyp x) = lookup x eval (impI t) γ τ a = eval t (monG τ γ , a) eval (impE t u) γ = eval t γ id≤ (eval u γ) eval (andI t u) γ = eval t γ , eval u γ eval (andE₁ t) = proj₁ ∘ eval t eval (andE₂ t) = proj₂ ∘ eval t eval (orI₁ {A} {B} t) γ = returnOr A B (inj₁ (eval t γ)) eval (orI₂ {A} {B} t) γ = returnOr A B (inj₂ (eval t γ)) eval (orE {A = A} {B} {C} t u v) γ = orElim A B C (eval t γ) (λ τ a → eval u (monG τ γ , a)) (λ τ b → eval v (monG τ γ , b)) eval {C} (falseE t) γ = falseElim C (eval t γ) eval trueI γ = _ --------------------------------------------------------------------------- -- A strong monad with services to provide a cover. -- Devoid of laws. record CoverMonad : Set₁ where field monad : Monad open Monad monad public renaming (C to Cover) -- Services for case distinction. field falseC : ∀{P} → Ne' False →̇ Cover P orC : ∀{P Γ C D} (t : Ne Γ (C ∨ D)) (c : Cover P (Γ ∙ C)) (d : Cover P (Γ ∙ D)) → Cover P Γ -- Service for reification of into case trees. field runNf : ∀{A} → Cover (Nf' A) →̇ Nf' A -- A continuation version of runNf. runNf' : ∀ {A P} (monP : Mon P) → Cover P →̇ (P ⇒̂ Nf' A) ⇒̂ Nf' A runNf' monP c τ k = runNf (mapC' k (monC monP τ c)) --------------------------------------------------------------------------- -- Completeness of IPL via a cover monad. module Completeness (covM : CoverMonad) (open CoverMonad covM) where open Soundness monad -- Reflection / reification, proven simultaneously by induction on the proposition. -- Reflection is η-expansion (and recursively reflection); -- at positive connections we build a case tree with a single scrutinee: the neutral -- we are reflecting. -- At implication, we need reification, which produces introductions -- and reifies the stored case trees. mutual fresh : ∀ {Γ} A → T⟦ A ⟧ (Γ ∙ A) fresh A = reflect A (hyp top) reflect : ∀ A → Ne' A →̇ T⟦ A ⟧ reflect (Atom P) t = return monNe t reflect False t = falseC t reflect (A ∨ B) t = orC t (returnOr A B (inj₁ (fresh A))) (returnOr A B (inj₂ (fresh B))) reflect True t = _ reflect (A ∧ B) t = reflect A (andE₁ t) , reflect B (andE₂ t) reflect (A ⇒ B) t τ a = reflect B (impE (monNe τ t) (reify A a)) reify : ∀ A → T⟦ A ⟧ →̇ Nf' A reify (Atom P) = runNf ∘ mapC ne reify False = runNf ∘ mapC ⊥-elim reify (A ∨ B) = runNf ∘ mapC [ orI₁ ∘ reify A , orI₂ ∘ reify B ] reify True _ = trueI reify (A ∧ B) (a , b) = andI (reify A a) (reify B b) reify (A ⇒ B) ⟦f⟧ = impI (reify B (⟦f⟧ (weak id≤) (fresh A))) --------------------------------------------------------------------------- -- Normalization is completeness (reification) after soundness (evaluation) module Normalization (covM : CoverMonad) (open CoverMonad covM) where open Soundness monad open Completeness covM -- Identity environment, constructed by reflection. freshG : ∀ Γ → G⟦ Γ ⟧ Γ freshG ε = _ freshG (Γ ∙ A) = monG (weak id≤) (freshG Γ) , fresh A -- A variant (no improvement). freshG' : ∀ Γ {Δ} (τ : Δ ≤ Γ) → G⟦ Γ ⟧ Δ freshG' ε τ = _ freshG' (Γ ∙ A) τ = freshG' Γ (τ • weak id≤) , monT A τ (fresh A) -- Normalization norm : ∀{A} → Tm A →̇ Nf' A norm t = reify _ (eval t (freshG _)) --------------------------------------------------------------------------- -- Case tree instance of cover monad module CaseTree where data Cover (P : Cxt → Set) (Γ : Cxt) : Set where returnC : (p : P Γ) → Cover P Γ falseC : (t : Ne Γ False) → Cover P Γ orC : ∀{C D} (t : Ne Γ (C ∨ D)) (c : Cover P (Γ ∙ C)) (d : Cover P (Γ ∙ D)) → Cover P Γ return : ∀{P} (monP : Mon P) → P →̇ Cover P return monP p = returnC p -- Syntactic paste. runNf : ∀{A} → Cover (Nf' A) →̇ Nf' A runNf (returnC p) = p runNf (falseC t) = falseE t runNf (orC t c d) = orE t (runNf c) (runNf d) -- Weakening covers: A case tree in Γ can be transported to a thinning Δ -- by weakening all the scrutinees. monC : ∀{P} → (monP : Mon P) → Mon (Cover P) monC monP τ (returnC p) = returnC (monP τ p) monC monP τ (falseC t) = falseC (monNe τ t) monC monP τ (orC t c d) = orC (monNe τ t) (monC monP (lift τ) c) (monC monP (lift τ) d) -- Monad. mapC : ∀{P Q} → (P →̇ Q) → (Cover P →̇ Cover Q) mapC f (returnC p) = returnC (f p) mapC f (falseC t) = falseC t mapC f (orC t c d) = orC t (mapC f c) (mapC f d) joinC : ∀{P} → Cover (Cover P) →̇ Cover P joinC (returnC p) = p joinC (falseC t) = falseC t joinC (orC t c d) = orC t (joinC c) (joinC d) -- Strong functoriality. mapC' : ∀{P Q Γ} → KFun P Q Γ → Cover P Γ → Cover Q Γ mapC' f (returnC p) = returnC (f id≤ p) mapC' f (falseC t) = falseC t mapC' f (orC t c d) = orC t (mapC' (λ τ → f (τ • weak id≤)) c) (mapC' (λ τ → f (τ • weak id≤)) d) caseTreeMonad : CoverMonad caseTreeMonad = record {monad = record{CaseTree}; CaseTree} -- A normalization function using case trees. open Normalization caseTreeMonad using () renaming (norm to normCaseTree) --------------------------------------------------------------------------- -- Continuation instance of cover monad module Continuation where record Cover (P : Cxt → Set) (Γ : Cxt) : Set where field runNf' : ∀ {A} → ((P ⇒̂ Nf' A) ⇒̂ Nf' A) Γ open Cover -- Services. runNf : ∀{A} → Cover (Nf' A) →̇ Nf' A runNf {A} {Γ} c = c .runNf' id≤ (λ τ → id) falseC : ∀{P} → Ne' False →̇ Cover P falseC t .runNf' τ k = falseE (monNe τ t) orC : ∀{P Γ C D} (t : Ne Γ (C ∨ D)) (c : Cover P (Γ ∙ C)) (d : Cover P (Γ ∙ D)) → Cover P Γ orC t c d .runNf' τ k = orE (monNe τ t) (c .runNf' (lift τ) (λ δ → k (δ • weak id≤))) (d .runNf' (lift τ) (λ δ → k (δ • weak id≤))) -- Monad infrastructure. monC : ∀{P} → (monP : Mon P) → Mon (Cover P) monC monP τ c .runNf' τ₁ k = c .runNf' (τ₁ • τ) k mapC' : ∀{P Q} → ⟨ P ⇒̂ Q ⊙ Cover P ⟩→̇ Cover Q mapC' k c .runNf' τ l = c .runNf' τ λ δ p → l δ (k (δ • τ) p) mapC : ∀{P Q} → (P →̇ Q) → (Cover P →̇ Cover Q) mapC f = mapC' λ τ → f return : ∀{P} (monP : Mon P) → P →̇ Cover P return monP p .runNf' τ k = k id≤ (monP τ p) joinC : ∀{P} → Cover (Cover P) →̇ Cover P joinC c .runNf' τ k = c .runNf' τ λ δ c' → c' .runNf' id≤ λ δ' → k (δ' • δ) extC : ∀{P Q} → (P →̇ Cover Q) → Cover P →̇ Cover Q extC f = joinC ∘ mapC f bindC' : ∀{P Q} → Cover P →̇ (P ⇒̂ Cover Q) ⇒̂ Cover Q bindC' c τ k .runNf' τ' k' = c .runNf' (τ' • τ) λ σ p → k (σ • τ') p .runNf' id≤ λ σ' → k' (σ' • σ) continuationMonad : CoverMonad continuationMonad = record{monad = record{Continuation}; Continuation} -- A normalization function using continuations. open Normalization continuationMonad using () renaming (norm to normContinuation) -- Q.E.D. -- -} -- -} -- -}
src/L/Data/Bool/Core.agda
borszag/smallib
0
10837
module L.Data.Bool.Core where open import L.Base.Coproduct.Core open import L.Base.Unit.Core -- Deriving the introduction rule as a special case of Coproducts. Bool : Set Bool = ⊤ + ⊤ ff : Bool ff = inr ⋆ tt : Bool tt = inl ⋆ -- And the elimination rule if : ∀{c} (C : Bool → Set c) → C tt → C ff → (e : Bool) → C e if = λ C c d e → case C (λ _ → c) (λ _ → d) e
Video009/Video009.asm
fraser125/N64_ASM_Videos
23
100892
<reponame>fraser125/N64_ASM_Videos<gh_stars>10-100 // N64 Lesson 02 Simple Initialize arch n64.cpu endian msb output "Video009.N64", create // 1024 KB + 4 KB = 1028 KB fill $0010'1000 // Set ROM Size origin $00000000 base $80000000 include "../LIB/N64.INC" include "../LIB/A64.INC" include "../LIB/PIXEL8_UTIL.INC" include "../LIB/COLORS16.INC" include "N64_Header.asm" insert "../LIB/N64_BOOTCODE.BIN" constant yellow_blue($A020'1000) // white text, black background constant red_silver($A020'5000) // red text, black background constant fb1($A010'0000) Start: // NOTE: base $80001000 init() ScreenNTSC(320,240, BPP16, fb1) // 153,600 = 0x2'5800 nop nop nop // pixel8_init16(yellow_blue, PAPAYA_WHIP16, LIGHT_STEEL_BLUE16) // 12,160 = 0x2F80 yellow foreground, blue background pixel8_init16(red_silver, CRIMSON16, SILVER16) // Red foreground, Silver background nop nop nop // 8x8 pixel font, 16bpp // pixel8_static16(yellow_blue, fb1, 16, 16, hello_world_text, 12) // top, left // 10240, 10240 + 16 // font_name, framebuffer, top, left, string_label, length pixel8_static16(red_silver, fb1, 32, 16, hello_world_text, 12) Loop: // while(true); j Loop nop ALIGN(8) hello_world_text: db "Hello World!" ALIGN(8) include "../LIB/PIXEL8_UTIL.S"
oeis/287/A287454.asm
neoneye/loda-programs
11
20691
; A287454: Positions of 2 in A287451. ; Submitted by <NAME> ; 3,4,8,11,15,16,19,23,27,28,32,36,39,40,44,47,51,52,56,60,61,64,68,72,75,76,80,83,87,88,91,95,99,102,103,107,111,112,116,119,123,124,127,131,135,136,140,144,147,148,152,155,159,160,163,167,171,174,175,179,182,186,187,191,195,196,199,203,207,210,211,215,219,220,224,227,231,232,235,239,243,244,248,252,255,256,260,263,267,268,272,276,277,280,284,288,291,292,296,300 mov $1,$0 mul $0,3 seq $1,60582 ; If the final digit of n in base 3 is the same as a([n/3]) then this digit, otherwise a(n)= mod 3-sum of these two digits, with a(0)=0. sub $0,$1 add $0,3
src/tests/shapematchingtests.adb
sebsgit/textproc
0
21988
<reponame>sebsgit/textproc<gh_stars>0 with Ada.Containers; with AUnit.Assertions; use AUnit.Assertions; with Interfaces.C.Strings; with ImageIO; with PixelArray; with ShapeDatabase; with Morphology; with ImageFilters; with ImageRegions; with ImageThresholds; use Ada.Containers; package body ShapeMatchingTests is procedure Register_Tests (T: in out TestCase) is use AUnit.Test_Cases.Registration; begin Register_Routine (T, testBasicShapes'Access, "basic shapes"); Register_Routine (T, testComplexImage'Access, "complex image"); end Register_Tests; function Name(T: TestCase) return Test_String is begin return Format("Shape Matcher Tests"); end Name; function testShape(db: ShapeDatabase.DB; path: String) return ShapeDatabase.MatchScore is regions: ImageRegions.RegionVector.Vector; image: constant PixelArray.ImagePlane := ShapeDatabase.Preprocess_And_Detect_Regions(ImageIO.load(path), regions); begin return db.match(image, regions.First_Element); end testShape; procedure testBasicShapes(T : in out Test_Cases.Test_Case'Class) is db: ShapeDatabase.DB; score: ShapeDatabase.MatchScore; begin db := ShapeDatabase.getDB; score := testShape(db, "1.jpg"); Assert(score.cc = '1', "test 1"); end testBasicShapes; procedure testComplexImage(T: in out Test_Cases.Test_Case'Class) is db: ShapeDatabase.DB; testImage: PixelArray.ImagePlane := ImageIO.load("test_complex.jpg"); regions: ImageRegions.RegionVector.Vector; score: ShapeDatabase.MatchScore; function matchAt(index: Integer) return ShapeDatabase.MatchScore is begin return db.match(image => testImage, region => regions(index)); end matchAt; begin db := ShapeDatabase.getDB; testImage.assign(ShapeDatabase.Preprocess_And_Detect_Regions(testImage, regions)); ImageRegions.sortRegions(regions); Assert(regions.Length = 11, "count of detected regions"); score := matchAt(0); Assert(score.cc = '1', "match0: 1"); score := matchAt(1); Assert(score.cc = '2', "match1: 2"); score := matchAt(2); Assert(score.cc = '1', "match2: 1"); score := matchAt(3); Assert(score.cc = '0', "match3: 0"); score := matchAt(4); Assert(score.cc = '2', "match4: 2"); score := matchAt(5); Assert(score.cc = '1', "match5: 1"); score := matchAt(6); Assert(score.cc = '8', "match6: 8"); score := matchAt(7); Assert(score.cc = '8', "match7: 8"); --fix with histograms score := matchAt(8); Assert(score.cc = '9', "match8: 9"); score := matchAt(9); Assert(score.cc = '1', "match9: 1"); score := matchAt(10); Assert(score.cc = '4', "match10: 4"); end testComplexImage; end ShapeMatchingTests;
Univalence/OldUnivalence/TypeEquivalences.agda
JacquesCarette/pi-dual
14
11341
<reponame>JacquesCarette/pi-dual {-# OPTIONS --without-K #-} module TypeEquivalences where open import Data.Empty open import Data.Unit open import Data.Unit.Core open import Data.Nat renaming (_⊔_ to _⊔ℕ_) open import Data.Sum renaming (map to _⊎→_) open import Data.Product renaming (map to _×→_) open import Function renaming (_∘_ to _○_) -- explicit using to show how little of HoTT is needed open import SimpleHoTT using (refl; ap; ap2) open import Equivalences ------------------------------------------------------------------------------ -- Type Equivalences -- for each type combinator, define two functions that are inverses, and -- establish an equivalence. These are all in the 'semantic space' with -- respect to Pi combinators. -- swap₊ swap₊ : {A B : Set} → A ⊎ B → B ⊎ A swap₊ (inj₁ a) = inj₂ a swap₊ (inj₂ b) = inj₁ b swapswap₊ : {A B : Set} → swap₊ ○ swap₊ {A} {B} ∼ id swapswap₊ (inj₁ a) = refl (inj₁ a) swapswap₊ (inj₂ b) = refl (inj₂ b) swap₊equiv : {A B : Set} → (A ⊎ B) ≃ (B ⊎ A) swap₊equiv = (swap₊ , equiv₁ (mkqinv swap₊ swapswap₊ swapswap₊)) -- unite₊ and uniti₊ unite₊ : {A : Set} → ⊥ ⊎ A → A unite₊ (inj₁ ()) unite₊ (inj₂ y) = y uniti₊ : {A : Set} → A → ⊥ ⊎ A uniti₊ a = inj₂ a uniti₊∘unite₊ : {A : Set} → uniti₊ ○ unite₊ ∼ id {A = ⊥ ⊎ A} uniti₊∘unite₊ (inj₁ ()) uniti₊∘unite₊ (inj₂ y) = refl (inj₂ y) -- this is so easy, Agda can figure it out by itself (see below) unite₊∙uniti₊ : {A : Set} → unite₊ ○ uniti₊ ∼ id {A = A} unite₊∙uniti₊ = refl unite₊equiv : {A : Set} → (⊥ ⊎ A) ≃ A unite₊equiv = (unite₊ , mkisequiv uniti₊ refl uniti₊ uniti₊∘unite₊) uniti₊equiv : {A : Set} → A ≃ (⊥ ⊎ A) uniti₊equiv = uniti₊ , mkisequiv unite₊ uniti₊∘unite₊ unite₊ unite₊∙uniti₊ -- unite⋆ and uniti⋆ unite⋆ : {A : Set} → ⊤ × A → A unite⋆ (tt , x) = x uniti⋆ : {A : Set} → A → ⊤ × A uniti⋆ x = tt , x uniti⋆∘unite⋆ : {A : Set} → uniti⋆ ○ unite⋆ ∼ id {A = ⊤ × A} uniti⋆∘unite⋆ (tt , x) = refl (tt , x) unite⋆equiv : {A : Set} → (⊤ × A) ≃ A unite⋆equiv = unite⋆ , mkisequiv uniti⋆ refl uniti⋆ uniti⋆∘unite⋆ uniti⋆equiv : {A : Set} → A ≃ (⊤ × A) uniti⋆equiv = uniti⋆ , mkisequiv unite⋆ uniti⋆∘unite⋆ unite⋆ refl -- swap⋆ swap⋆ : {A B : Set} → A × B → B × A swap⋆ (a , b) = (b , a) swapswap⋆ : {A B : Set} → swap⋆ ○ swap⋆ ∼ id {A = A × B} swapswap⋆ (a , b) = refl (a , b) swap⋆equiv : {A B : Set} → (A × B) ≃ (B × A) swap⋆equiv = swap⋆ , mkisequiv swap⋆ swapswap⋆ swap⋆ swapswap⋆ -- assocl₊ and assocr₊ assocl₊ : {A B C : Set} → (A ⊎ (B ⊎ C)) → ((A ⊎ B) ⊎ C) assocl₊ (inj₁ a) = inj₁ (inj₁ a) assocl₊ (inj₂ (inj₁ b)) = inj₁ (inj₂ b) assocl₊ (inj₂ (inj₂ c)) = inj₂ c assocr₊ : {A B C : Set} → ((A ⊎ B) ⊎ C) → (A ⊎ (B ⊎ C)) assocr₊ (inj₁ (inj₁ a)) = inj₁ a assocr₊ (inj₁ (inj₂ b)) = inj₂ (inj₁ b) assocr₊ (inj₂ c) = inj₂ (inj₂ c) assocl₊∘assocr₊ : {A B C : Set} → assocl₊ ○ assocr₊ ∼ id {A = ((A ⊎ B) ⊎ C)} assocl₊∘assocr₊ (inj₁ (inj₁ a)) = refl (inj₁ (inj₁ a)) assocl₊∘assocr₊ (inj₁ (inj₂ b)) = refl (inj₁ (inj₂ b)) assocl₊∘assocr₊ (inj₂ c) = refl (inj₂ c) assocr₊∘assocl₊ : {A B C : Set} → assocr₊ ○ assocl₊ ∼ id {A = (A ⊎ (B ⊎ C))} assocr₊∘assocl₊ (inj₁ a) = refl (inj₁ a) assocr₊∘assocl₊ (inj₂ (inj₁ b)) = refl (inj₂ (inj₁ b)) assocr₊∘assocl₊ (inj₂ (inj₂ c)) = refl (inj₂ (inj₂ c)) assocl₊equiv : {A B C : Set} → (A ⊎ (B ⊎ C)) ≃ ((A ⊎ B) ⊎ C) assocl₊equiv = assocl₊ , mkisequiv assocr₊ assocl₊∘assocr₊ assocr₊ assocr₊∘assocl₊ assocr₊equiv : {A B C : Set} → ((A ⊎ B) ⊎ C) ≃ (A ⊎ (B ⊎ C)) assocr₊equiv = assocr₊ , mkisequiv assocl₊ assocr₊∘assocl₊ assocl₊ assocl₊∘assocr₊ -- assocl⋆ and assocr⋆ assocl⋆ : {A B C : Set} → (A × (B × C)) → ((A × B) × C) assocl⋆ (a , (b , c)) = ((a , b) , c) assocr⋆ : {A B C : Set} → ((A × B) × C) → (A × (B × C)) assocr⋆ ((a , b) , c) = (a , (b , c)) assocl⋆∘assocr⋆ : {A B C : Set} → assocl⋆ ○ assocr⋆ ∼ id {A = ((A × B) × C)} assocl⋆∘assocr⋆ x = refl x assocr⋆∘assocl⋆ : {A B C : Set} → assocr⋆ ○ assocl⋆ ∼ id {A = (A × (B × C))} assocr⋆∘assocl⋆ x = refl x assocl⋆equiv : {A B C : Set} → (A × (B × C)) ≃ ((A × B) × C) assocl⋆equiv = assocl⋆ , mkisequiv assocr⋆ assocl⋆∘assocr⋆ assocr⋆ assocr⋆∘assocl⋆ assocr⋆equiv : {A B C : Set} → ((A × B) × C) ≃ (A × (B × C)) assocr⋆equiv = assocr⋆ , mkisequiv assocl⋆ assocr⋆∘assocl⋆ assocl⋆ assocl⋆∘assocr⋆ -- distz and factorz distz : { A : Set} → (⊥ × A) → ⊥ distz (() , _) factorz : {A : Set} → ⊥ → (⊥ × A) factorz () distz∘factorz : {A : Set} → distz ○ factorz {A} ∼ id distz∘factorz () factorz∘distz : {A : Set} → factorz {A} ○ distz ∼ id factorz∘distz (() , proj₂) distzequiv : {A : Set} → (⊥ × A) ≃ ⊥ distzequiv {A} = distz , mkisequiv factorz (distz∘factorz {A}) factorz factorz∘distz factorzequiv : {A : Set} → ⊥ ≃ (⊥ × A) factorzequiv {A} = factorz , mkisequiv distz factorz∘distz distz (distz∘factorz {A}) -- dist and factor dist : {A B C : Set} → ((A ⊎ B) × C) → (A × C) ⊎ (B × C) dist (inj₁ x , c) = inj₁ (x , c) dist (inj₂ y , c) = inj₂ (y , c) factor : {A B C : Set} → (A × C) ⊎ (B × C) → ((A ⊎ B) × C) factor (inj₁ (a , c)) = inj₁ a , c factor (inj₂ (b , c)) = inj₂ b , c dist∘factor : {A B C : Set} → dist {A} {B} {C} ○ factor ∼ id dist∘factor (inj₁ x) = refl (inj₁ x) dist∘factor (inj₂ y) = refl (inj₂ y) factor∘dist : {A B C : Set} → factor {A} {B} {C} ○ dist ∼ id factor∘dist (inj₁ x , c) = refl (inj₁ x , c) factor∘dist (inj₂ y , c) = refl (inj₂ y , c) distequiv : {A B C : Set} → ((A ⊎ B) × C) ≃ ((A × C) ⊎ (B × C)) distequiv = dist , mkisequiv factor dist∘factor factor factor∘dist factorequiv : {A B C : Set} → ((A × C) ⊎ (B × C)) ≃ ((A ⊎ B) × C) factorequiv = factor , (mkisequiv dist factor∘dist dist dist∘factor) -- ⊕ _⊎∼_ : {A B C D : Set} {f : A → C} {finv : C → A} {g : B → D} {ginv : D → B} → (α : f ○ finv ∼ id) → (β : g ○ ginv ∼ id) → (f ⊎→ g) ○ (finv ⊎→ ginv) ∼ id {A = C ⊎ D} _⊎∼_ α β (inj₁ x) = ap inj₁ (α x) _⊎∼_ α β (inj₂ y) = ap inj₂ (β y) path⊎ : {A B C D : Set} → A ≃ C → B ≃ D → (A ⊎ B) ≃ (C ⊎ D) path⊎ (fp , eqp) (fq , eqq) = Data.Sum.map fp fq , mkisequiv (P.g ⊎→ Q.g) (P.α ⊎∼ Q.α) (P.h ⊎→ Q.h) (P.β ⊎∼ Q.β) where module P = isequiv eqp module Q = isequiv eqq -- ⊗ _×∼_ : {A B C D : Set} {f : A → C} {finv : C → A} {g : B → D} {ginv : D → B} → (α : f ○ finv ∼ id) → (β : g ○ ginv ∼ id) → (f ×→ g) ○ (finv ×→ ginv) ∼ id {A = C × D} _×∼_ α β (x , y) = ap2 _,_ (α x) (β y) path× : {A B C D : Set} → A ≃ C → B ≃ D → (A × B) ≃ (C × D) path× {A} {B} {C} {D} (fp , eqp) (fq , eqq) = Data.Product.map fp fq , mkisequiv (P.g ×→ Q.g) (_×∼_ {A} {B} {C} {D} {fp} {P.g} {fq} {Q.g} P.α Q.α) (P.h ×→ Q.h) (_×∼_ {C} {D} {A} {B} {P.h} {fp} {Q.h} {fq} P.β Q.β) where module P = isequiv eqp module Q = isequiv eqq idequiv : {A : Set} → A ≃ A idequiv = id≃
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1699.asm
ljhsiun2/medusa
9
92942
<filename>Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1699.asm<gh_stars>1-10 .global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %r8 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0xc2b1, %rsi lea addresses_D_ht+0x129c5, %rdi nop nop nop nop nop cmp %rax, %rax mov $123, %rcx rep movsb cmp %rsi, %rsi lea addresses_WC_ht+0xaeb1, %r14 nop nop nop nop nop cmp $37467, %rdx mov $0x6162636465666768, %rax movq %rax, %xmm4 vmovups %ymm4, (%r14) nop nop nop nop add $38361, %rsi lea addresses_D_ht+0x32b1, %rcx nop nop nop cmp $26949, %r15 movb (%rcx), %al nop nop add %rax, %rax lea addresses_normal_ht+0x166f1, %rsi lea addresses_UC_ht+0xb2d3, %rdi nop nop nop nop nop xor $59139, %r15 mov $21, %rcx rep movsb nop nop nop nop nop and $55868, %rdx lea addresses_D_ht+0xa631, %r14 nop nop nop nop and %rdi, %rdi vmovups (%r14), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $1, %xmm6, %r15 nop nop nop nop cmp $64374, %rax lea addresses_WT_ht+0x1bfe9, %rdx nop nop nop nop nop sub %r15, %r15 movb (%rdx), %cl nop nop nop nop nop cmp %rsi, %rsi lea addresses_D_ht+0x1b151, %rdx nop nop nop nop nop and %r14, %r14 movb (%rdx), %r15b nop nop nop nop cmp %rcx, %rcx lea addresses_WC_ht+0xb3b1, %rsi lea addresses_UC_ht+0x79fe, %rdi nop nop nop nop nop xor %r14, %r14 mov $27, %rcx rep movsq nop xor $61621, %r14 lea addresses_WC_ht+0x1d2b1, %rdi and %r14, %r14 mov $0x6162636465666768, %rdx movq %rdx, (%rdi) nop nop nop nop nop inc %rdi lea addresses_normal_ht+0x1d8c5, %rsi lea addresses_normal_ht+0x15ad1, %rdi nop nop nop nop nop add %r8, %r8 mov $58, %rcx rep movsq nop sub $24768, %rsi lea addresses_WC_ht+0x1d981, %rsi lea addresses_normal_ht+0xc081, %rdi nop nop nop nop add %r15, %r15 mov $82, %rcx rep movsw nop nop nop nop nop dec %rdi lea addresses_WC_ht+0x1ecb1, %rsi lea addresses_WT_ht+0x77c9, %rdi nop nop nop and %r8, %r8 mov $11, %rcx rep movsl nop nop nop nop dec %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r8 pop %r15 pop %r14 ret .global s_faulty_load s_faulty_load: push %r10 push %r9 push %rax push %rbp push %rbx push %rdx push %rsi // Store lea addresses_US+0x9191, %rbp nop and %rbx, %rbx movw $0x5152, (%rbp) nop cmp $5236, %rbx // Store lea addresses_WT+0x9c31, %rbx nop nop nop nop xor $38578, %rax mov $0x5152535455565758, %r10 movq %r10, %xmm6 movups %xmm6, (%rbx) add $61410, %rbx // Load lea addresses_US+0x4ab1, %rbx nop and $34038, %r10 vmovups (%rbx), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %r9 nop nop nop and %rbp, %rbp // Faulty Load lea addresses_UC+0x22b1, %rdx nop nop inc %r10 movb (%rdx), %bl lea oracles, %r10 and $0xff, %rbx shlq $12, %rbx mov (%r10,%rbx,1), %rbx pop %rsi pop %rdx pop %rbx pop %rbp pop %rax pop %r9 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 3, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 4, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 9, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 7, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
.emacs.d/elpa/wisi-3.0.1/wisitoken-parse-lr-parser_no_recover.adb
caqg/linux-home
0
1091
-- Abstract : -- -- See spec. -- -- Copyright (C) 2002 - 2005, 2008 - 2015, 2017 - 2019 Free Software Foundation, Inc. -- -- This file is part of the WisiToken package. -- -- The WisiToken package is free software; you can redistribute it -- and/or modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation; either version 3, or -- (at your option) any later version. The WisiToken package is -- distributed in the hope that it will be useful, but WITHOUT ANY -- WARRANTY; without even the implied warranty of MERCHANTABILITY or -- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public -- License for more details. You should have received a copy of the -- GNU General Public License distributed with the WisiToken package; -- see file GPL.txt. If not, write to the Free Software Foundation, -- 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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. pragma License (Modified_GPL); with Ada.Exceptions; package body WisiToken.Parse.LR.Parser_No_Recover is procedure Reduce_Stack_1 (Current_Parser : in Parser_Lists.Cursor; Action : in Reduce_Action_Rec; Nonterm : out WisiToken.Syntax_Trees.Valid_Node_Index; Trace : in out WisiToken.Trace'Class) is Parser_State : Parser_Lists.Parser_State renames Current_Parser.State_Ref.Element.all; Children_Tree : Syntax_Trees.Valid_Node_Index_Array (1 .. SAL.Base_Peek_Type (Action.Token_Count)); -- for Set_Children. begin for I in reverse Children_Tree'Range loop Children_Tree (I) := Parser_State.Stack.Pop.Token; end loop; Nonterm := Parser_State.Tree.Add_Nonterm (Action.Production, Children_Tree, Action.Action, Default_Virtual => False); -- Computes Nonterm.Byte_Region if Trace_Parse > Detail then Trace.Put_Line (Parser_State.Tree.Image (Nonterm, Trace.Descriptor.all, Include_Children => True)); end if; end Reduce_Stack_1; procedure Do_Action (Action : in Parse_Action_Rec; Current_Parser : in Parser_Lists.Cursor; Shared_Parser : in Parser) is Parser_State : Parser_Lists.Parser_State renames Current_Parser.State_Ref; Trace : WisiToken.Trace'Class renames Shared_Parser.Trace.all; Nonterm : WisiToken.Syntax_Trees.Valid_Node_Index; begin if Trace_Parse > Detail then Trace.Put (Integer'Image (Current_Parser.Label) & ": " & Trimmed_Image (Parser_State.Stack.Peek.State) & ": " & Parser_State.Tree.Image (Parser_State.Current_Token, Trace.Descriptor.all) & " : "); Put (Trace, Action); Trace.New_Line; end if; case Action.Verb is when Shift => Current_Parser.Set_Verb (Shift); Parser_State.Stack.Push ((Action.State, Parser_State.Current_Token)); Parser_State.Tree.Set_State (Parser_State.Current_Token, Action.State); when Reduce => Current_Parser.Set_Verb (Reduce); declare New_State : constant Unknown_State_Index := Goto_For (Table => Shared_Parser.Table.all, State => Parser_State.Stack (SAL.Base_Peek_Type (Action.Token_Count) + 1).State, ID => Action.Production.LHS); begin if New_State = Unknown_State then -- This is due to a bug in the LALR parser generator (see -- lalr_generator_bug_01.wy); we treat it as a syntax error. Current_Parser.Set_Verb (Error); if Trace_Parse > Detail then Trace.Put_Line (" ... error"); end if; else Reduce_Stack_1 (Current_Parser, Action, Nonterm, Trace); Parser_State.Stack.Push ((New_State, Nonterm)); Parser_State.Tree.Set_State (Nonterm, New_State); if Trace_Parse > Detail then Trace.Put_Line (" ... goto state " & Trimmed_Image (New_State)); end if; end if; end; when Accept_It => Current_Parser.Set_Verb (Accept_It); Reduce_Stack_1 (Current_Parser, (Reduce, Action.Production, Action.Action, Action.Check, Action.Token_Count), Nonterm, Trace); Parser_State.Tree.Set_Root (Nonterm); when Error => Current_Parser.Set_Verb (Action.Verb); -- We don't raise Syntax_Error here; another parser may be able to -- continue. declare Expecting : constant Token_ID_Set := LR.Expecting (Shared_Parser.Table.all, Current_Parser.State_Ref.Stack.Peek.State); begin Parser_State.Errors.Append ((Label => LR.Action, First_Terminal => Trace.Descriptor.First_Terminal, Last_Terminal => Trace.Descriptor.Last_Terminal, Error_Token => Parser_State.Current_Token, Expecting => Expecting, Recover => (others => <>))); if Trace_Parse > Outline then Put (Trace, Integer'Image (Current_Parser.Label) & ": expecting: " & Image (Expecting, Trace.Descriptor.all)); Trace.New_Line; end if; end; end case; end Do_Action; -- Return the type of parser cycle to execute. -- -- Accept : all Parsers.Verb return Accept - done parsing. -- -- Shift : some Parsers.Verb return Shift. -- -- Reduce : some Parsers.Verb return Reduce. -- -- Error : all Parsers.Verb return Error. procedure Parse_Verb (Shared_Parser : in out Parser; Verb : out All_Parse_Action_Verbs) is Shift_Count : SAL.Base_Peek_Type := 0; Accept_Count : SAL.Base_Peek_Type := 0; Error_Count : SAL.Base_Peek_Type := 0; begin for Parser_State of Shared_Parser.Parsers loop case Parser_State.Verb is when Shift => Shift_Count := Shift_Count + 1; when Reduce => Verb := Reduce; return; when Accept_It => Accept_Count := Accept_Count + 1; when Error => Error_Count := Error_Count + 1; when Pause => -- This is parser_no_recover raise SAL.Programmer_Error; end case; end loop; if Shared_Parser.Parsers.Count = Accept_Count then Verb := Accept_It; elsif Shared_Parser.Parsers.Count = Error_Count then Verb := Error; elsif Shift_Count > 0 then Verb := Shift; else raise SAL.Programmer_Error; end if; end Parse_Verb; ---------- -- Public subprograms, declaration order overriding procedure Finalize (Object : in out Parser) is begin Free_Table (Object.Table); end Finalize; procedure New_Parser (Parser : out LR.Parser_No_Recover.Parser; Trace : not null access WisiToken.Trace'Class; Lexer : in WisiToken.Lexer.Handle; Table : in Parse_Table_Ptr; User_Data : in WisiToken.Syntax_Trees.User_Data_Access; Max_Parallel : in SAL.Base_Peek_Type := Default_Max_Parallel; First_Parser_Label : in Integer := 1; Terminate_Same_State : in Boolean := True) is use all type Syntax_Trees.User_Data_Access; begin Parser.Lexer := Lexer; Parser.Trace := Trace; Parser.Table := Table; Parser.User_Data := User_Data; Parser.Max_Parallel := Max_Parallel; Parser.First_Parser_Label := First_Parser_Label; Parser.Terminate_Same_State := Terminate_Same_State; if User_Data /= null then User_Data.Set_Lexer_Terminals (Lexer, Parser.Terminals'Unchecked_Access); end if; end New_Parser; overriding procedure Parse (Shared_Parser : aliased in out Parser) is use all type Syntax_Trees.User_Data_Access; Trace : WisiToken.Trace'Class renames Shared_Parser.Trace.all; Current_Verb : All_Parse_Action_Verbs; Current_Parser : Parser_Lists.Cursor; Action : Parse_Action_Node_Ptr; procedure Check_Error (Check_Parser : in out Parser_Lists.Cursor) is begin if Check_Parser.Verb = Error then -- This parser errored on last input. This is how grammar conflicts -- are resolved when the input text is valid, so we terminate this -- parser. if Shared_Parser.Parsers.Count = 1 then raise Syntax_Error; else Shared_Parser.Parsers.Terminate_Parser (Check_Parser, "", Shared_Parser.Trace.all, Shared_Parser.Terminals); end if; else Check_Parser.Next; end if; end Check_Error; begin if Shared_Parser.User_Data /= null then Shared_Parser.User_Data.Reset; end if; Shared_Parser.Lex_All; Shared_Parser.Shared_Tree.Clear; Shared_Parser.Parsers := Parser_Lists.New_List (Shared_Tree => Shared_Parser.Shared_Tree'Unchecked_Access); Shared_Parser.Parsers.First.State_Ref.Stack.Push ((Shared_Parser.Table.State_First, others => <>)); Main_Loop : loop -- exit on Accept_It action or syntax error. Parse_Verb (Shared_Parser, Current_Verb); case Current_Verb is when Shift => -- All parsers just shifted a token; get the next token for Parser_State of Shared_Parser.Parsers loop Parser_State.Shared_Token := Parser_State.Shared_Token + 1; Parser_State.Current_Token := Parser_State.Tree.Add_Terminal (Parser_State.Shared_Token, Shared_Parser.Terminals); end loop; when Accept_It => -- All parsers accepted. declare Count : constant SAL.Base_Peek_Type := Shared_Parser.Parsers.Count; begin if Count = 1 then -- Nothing more to do if Trace_Parse > Outline then Trace.Put_Line (Integer'Image (Shared_Parser.Parsers.First.Label) & ": succeed"); end if; exit Main_Loop; else -- More than one parser is active; ambiguous parse. declare Token : Base_Token renames Shared_Parser.Terminals (Shared_Parser.Terminals.Last_Index); begin raise WisiToken.Parse_Error with Error_Message (Shared_Parser.Lexer.File_Name, Token.Line, Token.Column, "Ambiguous parse:" & SAL.Base_Peek_Type'Image (Count) & " parsers active."); end; end if; end; when Reduce => null; when Error => -- All parsers errored; terminate with error. Semantic_State has all -- the required info (recorded by Error in Do_Action), so we just -- raise the exception. raise Syntax_Error; when Pause => -- This is parser_no_recover raise SAL.Programmer_Error; end case; -- We don't use 'for Parser_State of Parsers loop' here, -- because terminate on error and spawn on conflict require -- changing the parser list. Current_Parser := Shared_Parser.Parsers.First; loop exit when Current_Parser.Is_Done; if Shared_Parser.Terminate_Same_State and Current_Verb = Shift then Shared_Parser.Parsers.Duplicate_State (Current_Parser, Shared_Parser.Trace.all, Shared_Parser.Terminals); -- If Duplicate_State terminated Current_Parser, Current_Parser now -- points to the next parser. Otherwise it is unchanged. end if; exit when Current_Parser.Is_Done; if Trace_Parse > Extra then Trace.Put_Line ("current_verb: " & Parse_Action_Verbs'Image (Current_Verb) & "," & Integer'Image (Current_Parser.Label) & ".verb: " & Parse_Action_Verbs'Image (Current_Parser.Verb)); end if; -- Each branch of the following 'if' calls either Current_Parser.Free -- (which advances to the next parser) or Current_Parser.Next. if Current_Parser.Verb = Current_Verb then if Trace_Parse > Extra then Parser_Lists.Put_Top_10 (Trace, Current_Parser); end if; declare State : Parser_Lists.Parser_State renames Current_Parser.State_Ref.Element.all; begin Action := Action_For (Table => Shared_Parser.Table.all, State => State.Stack.Peek.State, ID => State.Tree.ID (State.Current_Token)); end; declare Conflict : Parse_Action_Node_Ptr := Action.Next; begin loop exit when Conflict = null; -- Spawn a new parser (before modifying Current_Parser stack). if Shared_Parser.Parsers.Count = Shared_Parser.Max_Parallel then declare Parser_State : Parser_Lists.Parser_State renames Current_Parser.State_Ref; Token : Base_Token renames Shared_Parser.Terminals (Parser_State.Shared_Token); begin raise WisiToken.Parse_Error with Error_Message (Shared_Parser.Lexer.File_Name, Token.Line, Token.Column, ": too many parallel parsers required in grammar state" & State_Index'Image (Parser_State.Stack.Peek.State) & "; simplify grammar, or increase max-parallel (" & SAL.Base_Peek_Type'Image (Shared_Parser.Max_Parallel) & ")"); end; else if Trace_Parse > Outline then declare Parser_State : Parser_Lists.Parser_State renames Current_Parser.State_Ref; begin Trace.Put_Line (Integer'Image (Current_Parser.Label) & ": " & Trimmed_Image (Parser_State.Stack.Peek.State) & ": " & Parser_State.Tree.Image (Parser_State.Current_Token, Trace.Descriptor.all) & " : " & "spawn" & Integer'Image (Shared_Parser.Parsers.Last_Label + 1) & ", (" & Trimmed_Image (1 + Integer (Shared_Parser.Parsers.Count)) & " active)"); end; end if; Shared_Parser.Parsers.Prepend_Copy (Current_Parser); Do_Action (Conflict.Item, Shared_Parser.Parsers.First, Shared_Parser); declare Temp : Parser_Lists.Cursor := Shared_Parser.Parsers.First; begin Check_Error (Temp); end; end if; Conflict := Conflict.Next; end loop; end; Do_Action (Action.Item, Current_Parser, Shared_Parser); Check_Error (Current_Parser); else -- Current parser is waiting for others to catch up Current_Parser.Next; end if; end loop; end loop Main_Loop; -- We don't raise Syntax_Error for lexer errors, since they are all -- recovered, either by inserting a quote, or by ignoring the -- character. end Parse; overriding procedure Execute_Actions (Parser : in out LR.Parser_No_Recover.Parser) is use all type Syntax_Trees.User_Data_Access; procedure Process_Node (Tree : in out Syntax_Trees.Tree; Node : in Syntax_Trees.Valid_Node_Index) is use all type Syntax_Trees.Node_Label; begin if Tree.Label (Node) /= Nonterm then return; end if; declare use all type Syntax_Trees.Semantic_Action; Tree_Children : constant Syntax_Trees.Valid_Node_Index_Array := Tree.Children (Node); begin Parser.User_Data.Reduce (Tree, Node, Tree_Children); if Tree.Action (Node) /= null then begin Tree.Action (Node) (Parser.User_Data.all, Tree, Node, Tree_Children); exception when E : others => declare Token : Base_Token renames Parser.Terminals (Tree.Min_Terminal_Index (Node)); begin raise WisiToken.Parse_Error with Error_Message (Parser.Lexer.File_Name, Token.Line, Token.Column, "action raised exception " & Ada.Exceptions.Exception_Name (E) & ": " & Ada.Exceptions.Exception_Message (E)); end; end; end if; end; end Process_Node; begin if Parser.User_Data /= null then if Parser.Parsers.Count > 1 then raise Syntax_Error with "ambiguous parse; can't execute actions"; end if; declare Parser_State : Parser_Lists.Parser_State renames Parser.Parsers.First_State_Ref.Element.all; begin Parser.User_Data.Initialize_Actions (Parser_State.Tree); Parser_State.Tree.Process_Tree (Process_Node'Access); end; end if; end Execute_Actions; overriding function Tree (Parser : in LR.Parser_No_Recover.Parser) return Syntax_Trees.Tree is begin if Parser.Parsers.Count > 1 then raise WisiToken.Parse_Error with "ambigous parse"; else return Parser.Parsers.First_State_Ref.Tree; end if; end Tree; overriding function Any_Errors (Parser : in LR.Parser_No_Recover.Parser) return Boolean is use all type Ada.Containers.Count_Type; Parser_State : Parser_Lists.Parser_State renames Parser.Parsers.First_Constant_State_Ref; begin pragma Assert (Parser_State.Tree.Flushed); return Parser.Parsers.Count > 1 or Parser_State.Errors.Length > 0 or Parser.Lexer.Errors.Length > 0; end Any_Errors; overriding procedure Put_Errors (Parser : in LR.Parser_No_Recover.Parser) is use Ada.Text_IO; Parser_State : Parser_Lists.Parser_State renames Parser.Parsers.First_Constant_State_Ref; Descriptor : WisiToken.Descriptor renames Parser.Trace.Descriptor.all; begin for Item of Parser.Lexer.Errors loop Put_Line (Current_Error, Parser.Lexer.File_Name & ":0:0: lexer unrecognized character at" & Buffer_Pos'Image (Item.Char_Pos)); end loop; for Item of Parser_State.Errors loop case Item.Label is when Action => declare Token : Base_Token renames Parser.Terminals (Parser_State.Tree.Min_Terminal_Index (Item.Error_Token)); begin Put_Line (Current_Error, Error_Message (Parser.Lexer.File_Name, Token.Line, Token.Column, "syntax error: expecting " & Image (Item.Expecting, Descriptor) & ", found '" & Parser.Lexer.Buffer_Text (Token.Byte_Region) & "'")); end; when Check => null; when Message => Put_Line (Current_Error, -Item.Msg); end case; end loop; end Put_Errors; end WisiToken.Parse.LR.Parser_No_Recover;
programs/oeis/060/A060541.asm
neoneye/loda
22
101394
<reponame>neoneye/loda ; A060541: C(4n,4). ; 1,70,495,1820,4845,10626,20475,35960,58905,91390,135751,194580,270725,367290,487635,635376,814385,1028790,1282975,1581580,1929501,2331890,2794155,3321960,3921225,4598126,5359095,6210820,7160245,8214570,9381251,10668000,12082785,13633830,15329615,17178876,19190605,21374050,23738715,26294360,29051001,32018910,35208615,38630900,42296805,46217626,50404915,54870480,59626385,64684950,70058751,75760620,81803645,88201170,94966795,102114376,109658025,117612110,125991255,134810340,144084501,153829130,164059875,174792640,186043585,197829126,210165935,223070940,236561325,250654530,265368251,280720440,296729305,313413310,330791175,348881876,367704645,387278970,407624595,428761520,450710001,473490550,497123935,521631180,547033565,573352626,600610155,628828200,658029065,688235310,719469751,751755460,785115765,819574250,855154755,891881376,929778465,968870630,1009182735,1050739900 mul $0,4 mov $1,-5 bin $1,$0 mov $0,$1
test/link/publics/seg1b.asm
nigelperks/BasicAssembler
0
179490
IDEAL ASSUME CS:SEG1,DS:SEG1,ES:SEG1,SS:SEG1 SEGMENT SEG1 PUBLIC mov bx, OFFSET thing mov al, 42 add dl, ch thing: int 21h ENDS END
agda-stdlib/src/Data/List/Relation/Permutation/Inductive/Properties.agda
DreamLinuxer/popl21-artifact
5
16396
<filename>agda-stdlib/src/Data/List/Relation/Permutation/Inductive/Properties.agda ------------------------------------------------------------------------ -- The Agda standard library -- -- This module is DEPRECATED. Please use -- Data.List.Relation.Binary.Permutation.Inductive.Properties directly. ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.List.Relation.Permutation.Inductive.Properties where open import Data.List.Relation.Binary.Permutation.Inductive.Properties public {-# WARNING_ON_IMPORT "Data.List.Relation.Permutation.Inductive.Properties was deprecated in v1.0. Use Data.List.Relation.Binary.Permutation.Inductive.Properties instead." #-}
mkeflg.asm
jschrab/mkeflg
0
177924
processor 6502 include vcs.h include macro.h ;============================================================================== ; MKEFLG - Render The People's Flag of Milwaukee ; ; Kernel pattern and many tips from: ; https://www.randomterrain.com/atari-2600-memories-tutorial-andrew-davie-01.html ; ; JDS - 18-Jan-2020 ;============================================================================== ; Top half of flag "Orange" is #FFA500 ; 2600 NTSC $2A = #FF8900 ; 2600 NTSC $2C = #FFB100 (closer) FLAG_COLOR_TOP = $2C ; Orange SUN_COLOR_TOP = $0E ; "White" ; Bottom half of flag "Navy Blue" is #052241 ; 2600 NTSC $80 = #050077 FLAG_COLOR_BTM = $80 ; Blue SUN_COLOR_BTM = $98 ; Light Blue SCREEN_HALF = ((192/2) / 8) ;============================================================================== ; START ; SEG ORG $F000 ; Starting location of ROM Start SEI ; Disable any interrupts ;============================================================================== ; RESET ; Reset CLD ; Clear BCD math bit LDX #$FF TXS ; Set stack to beginning LDA #0 ; Loop backwards from $FF to $00 .ClearLoop STA $00,X ; and clear each memory location DEX BNE .ClearLoop ;============================================================================== ; INIT ; Initialize LDA #FLAG_COLOR_TOP STA COLUBK LDA #SUN_COLOR_TOP STA COLUPF ; set the playfield color LDA #%00000001 STA CTRLPF ; reflect playfield ;============================================================================== ; MAIN LOOP ; MainLoop JSR VerticalSync JSR VerticalBlank JSR FrameSetup JSR Scanline JSR OverScan JMP MainLoop ;============================================================================== ; V-SYNC (3 Scanlines) ; ; Reset TV Signal to indicate new frame ; D1 but must be enabled here which is 00000010 (e.g 2 in dec.) ; VerticalSync LDA #0 STA VBLANK LDA #2 STA VSYNC ; Begin VSYNC period STA WSYNC ; Halt 6502 until end of scanline 1 STA WSYNC ; Halt 6502 until end of scanline 2 RTS ;============================================================================== ; V-BLANK (37 Scanlines) ; ; Start a timer for enough cycles to approximate 36 scanlines ; Ideally, we're putting logic here instead. ; At 228 clock counts per scan line, we get 36 * 228 = 8208 ; therefore 6502 instruction count would be 8208 / 3 = 2736 ; 42 * 64 = 2688 (close enough, we'll fix it on the last line) ; VerticalBlank LDA #42 STA TIM64T ; Start the timer with 42 ticks LDA #$00 STA WSYNC ; Halt 6502 until end of scanline 3 STA VSYNC ; End VSYNC period RTS ;============================================================================== ; FRAME SETUP ; FrameSetup LDA #FLAG_COLOR_TOP STA COLUBK LDA #$00 STA PF0 ; Stays unchanged throughout execution STA PF1 ; Stays unchanged throughout execution STA PF2 RTS ; V-BLANK is finished at start of Scanline ;============================================================================== ; SCANLINE (192 Scanlines) ; Scanline LDA INTIM ; Loop until the V-Blank timer finishes BNE Scanline LDA #SUN_COLOR_TOP STA COLUPF ; set the playfield color LDX #SCREEN_HALF; LDY #$00 LDA #$00 ; End V-BLANK period with 0 STA WSYNC ; Halt 6502 until end of scanline STA VBLANK ; Begin drawing to screen again .TopHalfLoop LDA PFData2,Y STA PF2 STA WSYNC ; Halt 6502 until end of scanline STA WSYNC ; Halt 6502 until end of scanline STA WSYNC ; Halt 6502 until end of scanline STA WSYNC ; Halt 6502 until end of scanline STA WSYNC ; Halt 6502 until end of scanline STA WSYNC ; Halt 6502 until end of scanline STA WSYNC ; Halt 6502 until end of scanline STA WSYNC ; Halt 6502 until end of scanline INY DEX BNE .TopHalfLoop ;================================== STA WSYNC ; Halt 6502 until end of scanline LDA #FLAG_COLOR_BTM STA COLUBK LDA #FLAG_COLOR_BTM STA COLUP0 LDA #SUN_COLOR_BTM STA COLUPF ; set the playfield color ;================================== LDX #SCREEN_HALF; .BtmHalfLoop LDA PFData2,Y STA PF2 STA WSYNC ; Halt 6502 until end of scanline STA WSYNC ; Halt 6502 until end of scanline STA WSYNC ; Halt 6502 until end of scanline STA WSYNC ; Halt 6502 until end of scanline STA WSYNC ; Halt 6502 until end of scanline STA WSYNC ; Halt 6502 until end of scanline STA WSYNC ; Halt 6502 until end of scanline STA WSYNC ; Halt 6502 until end of scanline INY DEX BNE .BtmHalfLoop ;================================== ; End ; LDA #2 STA VBLANK ; Suppress drawing to screen RTS ;============================================================================== ; OVERSCAN (30 Scanlines) ; OverScan LDX #30 ; x = 30; LDA #2 .OSLoop STA WSYNC ; Halt 6502 until end of scanline DEX ; x-- BNE .OSLoop ; if x !== 0 goto .OSLoop RTS ;============================================================================== ; Rising sun data ; ;============================================================================== PFData2 .byte #%00000000 .byte #%00000000 .byte #%00000000 .byte #%00000000 .byte #%00000000 .byte #%00000000 .byte #%00000000 .byte #%00000000 .byte #%11100000 .byte #%11110000 .byte #%11111000 .byte #%11111100 .byte #%00000000 .byte #%11111100 .byte #%00000000 .byte #%11111000 .byte #%00000000 .byte #%11100000 .byte #%00000000 .byte #%00000000 .byte #%00000000 .byte #%00000000 .byte #%00000000 .byte #%00000000 ;============================================================================== ; INTERRUPT VECTORS ; org $FFFC ; 6502 looks here to start execution .word Start ; NMI .word Start ; Reset .word Start ; IRQ
Ada95/samples/rain.adb
ProtonAOSP-platina/android_external_libncurses
269
1261
<reponame>ProtonAOSP-platina/android_external_libncurses<filename>Ada95/samples/rain.adb ------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- Rain -- -- -- -- B O D Y -- -- -- ------------------------------------------------------------------------------ -- Copyright 2020 <NAME> -- -- Copyright 1998-2007,2008 Free Software Foundation, Inc. -- -- -- -- 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, distribute with modifications, 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 ABOVE 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. -- -- -- -- Except as contained in this notice, the name(s) of the above copyright -- -- holders shall not be used in advertising or otherwise to promote the -- -- sale, use or other dealings in this Software without prior written -- -- authorization. -- ------------------------------------------------------------------------------ -- Author: <NAME> <<EMAIL>> -- Modified by: <NAME>, 1997 -- Version Control -- $Revision: 1.9 $ -- $Date: 2020/02/02 23:34:34 $ -- Binding Version 01.00 ------------------------------------------------------------------------------ -- -- with ncurses2.util; use ncurses2.util; with Ada.Numerics.Float_Random; use Ada.Numerics.Float_Random; with Status; use Status; with Terminal_Interface.Curses; use Terminal_Interface.Curses; procedure Rain is Visibility : Cursor_Visibility; subtype X_Position is Line_Position; subtype Y_Position is Column_Position; Xpos : array (1 .. 5) of X_Position; Ypos : array (1 .. 5) of Y_Position; done : Boolean; c : Key_Code; N : Integer; G : Generator; Max_X, X : X_Position; Max_Y, Y : Y_Position; procedure Next (J : in out Integer); procedure Cursor (X : X_Position; Y : Y_Position); procedure Next (J : in out Integer) is begin if J = 5 then J := 1; else J := J + 1; end if; end Next; procedure Cursor (X : X_Position; Y : Y_Position) is begin Move_Cursor (Line => X, Column => Y); end Cursor; pragma Inline (Cursor); begin Init_Screen; Set_NL_Mode; Set_Echo_Mode (False); Visibility := Invisible; Set_Cursor_Visibility (Visibility); Set_Timeout_Mode (Standard_Window, Non_Blocking, 0); Max_X := Lines - 5; Max_Y := Columns - 5; for I in Xpos'Range loop Xpos (I) := X_Position (Float (Max_X) * Random (G)) + 2; Ypos (I) := Y_Position (Float (Max_Y) * Random (G)) + 2; end loop; N := 1; done := False; while not done and Process.Continue loop X := X_Position (Float (Max_X) * Random (G)) + 2; Y := Y_Position (Float (Max_Y) * Random (G)) + 2; Cursor (X, Y); Add (Ch => '.'); Cursor (Xpos (N), Ypos (N)); Add (Ch => 'o'); -- Next (N); Cursor (Xpos (N), Ypos (N)); Add (Ch => 'O'); -- Next (N); Cursor (Xpos (N) - 1, Ypos (N)); Add (Ch => '-'); Cursor (Xpos (N), Ypos (N) - 1); Add (Str => "|.|"); Cursor (Xpos (N) + 1, Ypos (N)); Add (Ch => '-'); -- Next (N); Cursor (Xpos (N) - 2, Ypos (N)); Add (Ch => '-'); Cursor (Xpos (N) - 1, Ypos (N) - 1); Add (Str => "/\\"); Cursor (Xpos (N), Ypos (N) - 2); Add (Str => "| O |"); Cursor (Xpos (N) + 1, Ypos (N) - 1); Add (Str => "\\/"); Cursor (Xpos (N) + 2, Ypos (N)); Add (Ch => '-'); -- Next (N); Cursor (Xpos (N) - 2, Ypos (N)); Add (Ch => ' '); Cursor (Xpos (N) - 1, Ypos (N) - 1); Add (Str => " "); Cursor (Xpos (N), Ypos (N) - 2); Add (Str => " "); Cursor (Xpos (N) + 1, Ypos (N) - 1); Add (Str => " "); Cursor (Xpos (N) + 2, Ypos (N)); Add (Ch => ' '); Xpos (N) := X; Ypos (N) := Y; c := Getchar; case c is when Character'Pos ('q') => done := True; when Character'Pos ('Q') => done := True; when Character'Pos ('s') => Set_NoDelay_Mode (Standard_Window, False); when Character'Pos (' ') => Set_NoDelay_Mode (Standard_Window, True); when others => null; end case; Nap_Milli_Seconds (50); end loop; Visibility := Normal; Set_Cursor_Visibility (Visibility); End_Windows; Curses_Free_All; end Rain;
cmd/attrib/attriba.asm
minblock/msdos
0
172017
<gh_stars>0 page ,132 title New_C.C - DOS entry to the KWC's 'C' programs ;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ ; ; This module has been modified extensively for my personal ; use. ; ; name XCMAIN -- initiate execution of C program ; ; description This is the main module for a C program on the ; DOS implementation. It initializes the segment ; registers, sets up the stack, and calls the C main ; function _main with a pointer to the remainder of ; the command line. ; ; Also defined in this module is the exit entry point ; XCEXIT. ; SETBLOCK EQU 4AH ;MODIFY ALLOCATED MEMORY BLOCKS ;ES = SEGMENT OF THE BLOCK ;BX = NEW REQUESTED BLOCK SIZE ; IN PARAGRAPHS ;OUTPUT: BX=MAX SIZE POSSIBLE IF CY SET ;AX = ERROR CODE IF CY SET RET_CD_EXIT EQU 4CH ;EXIT TO DOS, PASSING RETURN CODE ;AL=RETURN CODE RET_EXIT equ 4ch ;AN000; ;terminate ABORT equ 2 ;AN000; ;if >=, retry XABORT equ 1 ;AN000; ;errorlevel return in al extrn _inmain:near ;AC000; extrn _Reset_appendx:near ;AN000; extrn _old_int24_off:dword ;AN000; psp segment at 0 ;<--emk psp_ret dw ? ;int 20h psp_memsz dw ? ;memory size org 2ch psp_env dw ? ;segid of environment org 80h psp_parlen db ? ;length of DOS command line parms psp_par db 127 dup(?) ;DOS command line parms psp ends page ; ; The following segment serves only to force "pgroup" lower in ; memory. ; base segment PARA PUBLIC 'DATA' db 00dh,00ah db "----------\x0d\x0a" db " DOS ATTRIB function \x0d\x0a" db "--------------------\x0d\x0a" db 00dh,00ah,01ah base ends ; ; The data segment defines locations which contain the offsets ; of the base and top of the stack. ; _data segment PARA public 'DATA' irp name,<_top,_base,_cs,_ss,_psp,_env,_rax,_rbx,_rcx,_rdx,_rds,_rsi,_rbp,_res,_rdi> public name name dw 0 endm _data ends ; ; The stack segment is included to prevent the warning from the ; linker, and also to define the base (lowest address) of the stack. ; stack segment PARA stack 'stack' SBase dw 128 dup (?) stack ends null segment para public 'BEGDATA' null ends const segment word public 'CONST' const ends _bss segment word public 'BSS' extrn _end:near _bss ends pgroup group base,_text dgroup group null, _data, const, _bss, stack page ; ; The main program must set up the initial segment registers ; and the stack pointer, and set up a far return to the DOS ; exit point at ES:0. The command line bytes from the program ; segment prefix are moved onto the stack, and a pointer to ; them supplied to the C main module _main (which calls main). ; _text segment PARA public 'CODE' public XCMAIN assume cs:pgroup assume ds:psp ;<--emk assume es:psp ;<--emk assume ss:stack ;<--emk XCMAIN proc far mov ax,dgroup mov ds,ax ;initialize ds and ss assume ds:dgroup ; mov bx,psp_memsz ;total memory size (paragraphs) ; sub bx,ax ; test bx,0f000h ; $IF Z ;branch if more than or equal 64K bytes ; mov cl,4 ; shl bx,cl ;highest available byte ; $ELSE ; mov bx,0fff0h ; $ENDIF cli ; disable interrupts while changing stack <---kwc mov ss,ax ; set ss <---kwc ;; the original code requested enough space to allow attrib.c to do an "EXEC" ;; which had the effect of disallowing attrib from running in under 75K mem. ;; the attrib.c code never, in fact, did any exec's and so i am modifying it ;; to simply request 4K (256 paragraphs) which is enough for subsequent ;; memory allocation calls. FEB 1990, Lea F ;; Make that 8K since /s ran out of stack space sometimes. May 1990 MOV sp, offset DGroup:_end + 18384 ; mov sp,bx ; set stack pointer <---kwc sti ;enable interrupts assume ss:DGroup ;<--emk mov _ss,ss mov _cs,cs mov _top,bx ;save top of stack mov ax,offset DGroup:SBase mov _base,ax ;store ptr to bottom of stack ; COMMENTS WITH TWO SEMICOLONS means the comments themselves have ; also been commented out, i.e. are no longer valid, but left in as ; an explanation of previous methodology ;; code added here to allow allocates and exec's in the c code ;; we will have to calculate the size of the code that has been loaded mov bx,sp ; bx = length of the stack shr bx,1 shr bx,1 shr bx,1 shr bx,1 ; bx = number of paragraphs in stack, add bx,1 ; (fudge factor!)<--emk ,was 10 mov ax,ss add bx,ax ; bx = paragraph a little past the stack mov ax,es ; ax = paragraph of the psp sub bx,ax ; bx = number of paragraphs in code mov ah,setblock int 021h ; end of added code! mov _psp,es ; save pointer to psp for setblock <---kwc mov cl,psp_parlen ;get number of bytes <--emk xor ch,ch ;cx = number of bytes of parms! mov si,offset psp_par ;point to DOS command line parms <--emk ; more modified code, picking up argv[0] from the environment! mov ds,psp_env ;set ds to segid of environment from es:psp assume ds:nothing mov _env,ds ;remember where environment is mov si,0 ;clear index to step thru env ;The env has a set of keyword=operand, each one ending with a single null byte. ;At the end of the last one is a double null. We are looking for the end of ;all these keywords, by looking for the double null. ; $DO COMPLEX JMP SHORT $$SD1 $$DO1: inc si ;bump index to look at next byte in env ; $STRTDO $$SD1: cmp word ptr [si],0 ;is this a double null delimiter? ; $ENDDO E ;ifdouble null found, exit JNE $$DO1 ;At end of env is the double null and a word counter add si,4 ;step over this double null delimiter ; and the following word counter push si ;save pointer to next field in env ;This is the invocation statement, including the path name, even if not specified ;but supplied by PATH. ;continue stepping thru env looking for one more null byte, which indicates ;the end of the invocation command. ; $DO $$DO4: lodsb ;get a byte from env to al cmp al,0 ;is this a null byte? ; $ENDDO E ;quit if null is found JNE $$DO4 mov bx,si ; bx -> asciiz zero pop si ; si -> first byte of agrv[0], the invocation command sub bx,si ; bx = length of argv[0] mov dx,bx ; (save for the copy later) dec dx add bx,cx ; add in the length of the rest of the parms inc bx ; add one for the asciiz zero! and bx,0fffeh ;force even number of bytes add bx,2 ;adjust for possible rounding error sub sp,bx ;allocate space on stack mov di,sp ; (es:di) -> where we will put the stuff push es mov ax,ss mov es,ax xchg cx,dx ; length of argv[0] to copy, save length of parms rep movsb ; (ds:si) already point to argv[0] pop es mov ss:byte ptr [di],' ' ;store trailing blank! inc di mov _rdi,di ;AN000; save start of command parms xchg cx,dx ; restore length of parms ; $IF NCXZ ;if some bytes to move, JCXZ $$IF6 mov si,offset psp_par ;point to DOS command line parms in psp ; $DO $$DO7: mov al,es:[si] ;move bytes to stack mov ss:[di],al inc si inc di ; $ENDDO LOOP LOOP $$DO7 ; $ENDIF ;bytes to move? $$IF6: xor ax,ax mov ss:[di],al ;store null byte mov ax,ss mov ds,ax ;es, ds, and ss are all equal assume ds:DGroup mov es,ax ;es, ds, and ss are all equal assume es:DGroup mov ax,_rdi ;AN000; restore offset of parms on stack push ax ;ptr to command line call _inmain ;AC000; call C main mov ah,ret_cd_exit ;return to DOS int 21h ;errorlevel ret code in al XCMAIN endp page ; ; name XCEXIT -- terminate execution of C program ; ; description This function terminates execution of the current ; program by returning to DOS. The error code ; argument normally supplied to XCEXIT is ignored ; in this implementation. ; ; input - al = binary return code for dos/ERRORLEVEL ; assume cs:PGroup assume ds:DGroup assume es:DGroup assume ss:DGroup public xcexit XCEXIT proc far mov ah,ret_cd_exit ; <--- kwc int 021h ; <--- kwc XCEXIT endp ;-------------------------------------------------------------------------- PAGE CENTER MACRO NAMELIST PUSH BP ; SAVE CURRENT BP MOV BP,SP ; POINT AT STACK WITH BP WORKOFS = 0 IRP ANAME,<NAMELIST> ; FOR EACH WORKING VARIABLE IFNB <&ANAME> WORKOFS = WORKOFS-2 ; WE WILL ALLOCATE ONE DOEQU &ANAME,%WORKOFS ; WORD ON THE STACK THAT ENDIF ENDM ; IS UNDER SS,BP ADD SP,WORKOFS ENDM DOEQU MACRO NAME,VALUE &NAME EQU &VALUE ENDM CEXIT MACRO VALUE MOV SP,BP POP BP RET ENDM PAGE ; INPUT PARAMATERS PASSED ON STACK PARMS STRUC OLD_BP DW ? ; SAVED BP RETADD DW ? ; RETURN ADDRESS PARM_1 DW ? PARM_2 DW ? PARM_3 DW ? PARM_4 DW ? PARM_5 DW ? PARM_6 DW ? PARM_7 DW ? PARM_8 DW ? PARMS ENDS SAVE_SS DW 0 SAVE_SP DW 0 PAGE ;************************************************************************ ; ; ; Subroutine Name: ; ; getpspbyte ; ; ; ; Subroutine Function: ; ; get a byte from PSP ; ; ; ; ; Input: ; ; SS:[BP]+PARM1 = offset in PSP ; ; ; ; Output: ; ; AL = byte from PSP:offset ; ; ; ; C calling convention: ; ; char = getpspbyte(offset); ; ; ; ;************************************************************************ MOFFSET EQU PARM_1 ;AN000; ASSUME CS:PGROUP ;AN000; ASSUME DS:DGROUP ;AN000; ASSUME ES:DGROUP ;AN000; ASSUME SS:DGROUP ;AN000; PUBLIC _GETPSPBYTE ;AN000; _GETPSPBYTE PROC NEAR ;AN000; CENTER ;AN000; PUSH DS ;AN000; MOV DS,_PSP ;AN000; get save PSP segment MOV SI,[BP].MOFFSET ;AN000; get offset into PSP LODSB ;AN000; get PSP byte MOV AH,0 ;AN000; zero high byte POP DS ;AN000; CEXIT ;AN000; _GETPSPBYTE ENDP ;************************************************************************ ; ; ; Subroutine Name: ; ; putpspbyte ; ; ; ; Subroutine Function: ; ; put a byte into PSP ; ; ; ; ; Input: ; ; SS:[BP]+MVALUE = byte in AL ; ; SS:[BP]+MOFFSET = offset in PSP ; ; ; ; Output: ; ; none ; ; ; ; C calling convention: ; ; putpspbyte(offset,char); ; ; ; ;************************************************************************ MVALUE EQU PARM_2 ;AN000; MOFFSET EQU PARM_1 ;AN000; ASSUME CS:PGROUP ;AN000; ASSUME DS:DGROUP ;AN000; ASSUME ES:DGROUP ;AN000; ASSUME SS:DGROUP ;AN000; PUBLIC _PUTPSPBYTE ;AN000; _PUTPSPBYTE PROC NEAR ;AN000; CENTER ;AN000; PUSH ES ;AN000; MOV AX,[BP].MVALUE ;AN000; get byte to store in PSP MOV ES,_PSP ;AN000; get saved PSP segment MOV DI,[BP].MOFFSET ;AN000; get offset in PSP STOSB ;AN000; store the byte POP ES ;AN000; CEXIT ;AN000; _PUTPSPBYTE ENDP ;------------------------------------------------------------------- ; ; MODULE: crit_err_handler() ; ; PURPOSE: Supplies assembler exit routines for ; critical error situations ; ; CALLING FORMAT: ; crit_err_handler; ;------------------------------------------------------------------- public _crit_err_handler ;AN000; public vector ;AN000; vector dd 0 ;AN000; ; ;AN000; _crit_err_handler proc near ;AN000; pushf ;AN000; push ax ; save registers ;AN000; push ds ;AN000; mov ax,dgroup ;get C data segment ;AN000; mov ds,ax ;AN000; mov ax,word ptr ds:_old_int24_off ;get int24 offset ;AN000; mov word ptr cs:vector,ax ;AN000; mov ax,word ptr ds:_old_int24_off+2 ;get int24 segment ;AN000; mov word ptr cs:vector+2,ax ;AN000; pop ds ;restore registers ;AN000; pop ax ;AN000; ; ;AN000; call dword ptr cs:vector ; invoke DOS err hndlr ;AN000; cmp al,ABORT ; what was the user's response ;AN000; jnge retry ; ;AN000; ; ;AN000; mov ax,dgroup ;get C data segment ;AN000; mov ds,ax ;AN000; mov es,ax ;AN000; call _Reset_appendx ; restore user's orig append/x ;AN000; ; ;AN000; mov ax,(RET_EXIT shl 8)+XABORT ; return to DOS w/criterr error ;AN000; int 21h ; ;AN000; retry: ;AN000; iret ;AN000; ; ;AN000; _crit_err_handler endp ;AN000; _text ends ;AN000; end XCMAIN ;AN000; 
src/asf-components-utils-files.ads
jquorning/ada-asf
12
18839
<gh_stars>10-100 ----------------------------------------------------------------------- -- components-utils-files -- Include raw files in the output -- Copyright (C) 2012 <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 Util.Streams; with ASF.Components.Core; with ASF.Contexts.Faces; package ASF.Components.Utils.Files is -- ------------------------------ -- UIFile -- ------------------------------ -- The <b>UIFile</b> component allows to include an external file in a view. -- The file is identified by the <b>src</b> attribute. It is searched in the -- application search path. type UIFile is new ASF.Components.Core.UILeaf with null record; -- Get the resource path that must be included. -- The resource path is identified by the <b>src</b> attribute. function Get_Resource (UI : in UIFile; Context : in ASF.Contexts.Faces.Faces_Context'Class) return String; -- Copy the stream represented by <b>From</b> in the output stream associated with -- the context <b>Context</b>. When <b>Escape</b> is True, escape any special character -- using HTML escape rules. procedure Copy (UI : in UIFile; From : in out Util.Streams.Input_Stream'Class; Escape : in Boolean; Context : in out ASF.Contexts.Faces.Faces_Context'Class); -- Include in the output stream the resource identified by the <b>Get_Resource</b> -- function. overriding procedure Encode_Begin (UI : in UIFile; Context : in out ASF.Contexts.Faces.Faces_Context'Class); end ASF.Components.Utils.Files;
ADL/drivers/stm32f334/stm32-adc.ads
JCGobbi/Nucleo-STM32F334R8
0
25527
<reponame>JCGobbi/Nucleo-STM32F334R8<filename>ADL/drivers/stm32f334/stm32-adc.ads ------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of STMicroelectronics nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- -- -- -- This file is based on: -- -- -- -- @file stm32f4xx_hal_adc.h -- -- @author MCD Application Team -- -- @version V1.3.1 -- -- @date 25-March-2015 -- -- @brief Header file of ADC HAL module. -- -- -- -- COPYRIGHT(c) 2014 STMicroelectronics -- ------------------------------------------------------------------------------ -- This file provides interfaces for the analog-to-digital converters on the -- STM32F3 (ARM Cortex M4F) microcontrollers from ST Microelectronics. -- Channels are mapped to GPIO_Point values as follows. See -- the STM32F334x datasheet, Table 13. "STM32F334x pin definitions" -- -- Channel ADC ADC -- # 1 2 -- -- 0 -- 1 PA0 PA4 -- 2 PA1 PA5 -- 3 PA2 PA6 -- 4 PA3 PA7 -- 5 PC4 -- 6 PC0 PC0 -- 7 PC1 PC1 -- 8 PC2 PC2 -- 9 PC3 PC3 -- 10 -- 11 PB0 PC5 -- 12 PB1 PB2 -- 13 PB13 PB12 -- 14 PB14 -- 15 PB15 with System; use System; with Ada.Real_Time; use Ada.Real_Time; private with STM32_SVD.ADC; package STM32.ADC is pragma Elaborate_Body; type Analog_To_Digital_Converter is limited private; subtype Analog_Input_Channel is UInt5 range 0 .. 18; type ADC_Point is record ADC : access Analog_To_Digital_Converter; Channel : Analog_Input_Channel; end record; VRef_Channel : constant Analog_Input_Channel := 18; -- See RM pg 277 section 13.3.32 -- Note available with ADC_1 and ADC_2 VBat_Channel : constant Analog_Input_Channel := 17; -- See RM pg 276, section 13.3.31 also pg 214 -- Note only available with ADC_1 subtype TemperatureSensor_Channel is Analog_Input_Channel; -- TODO: ??? The below predicate does not compile with GNAT GPL 2015. -- with Static_Predicate => TemperatureSensor_Channel in 16 | VBat_Channel; -- See RM pg 389 section 13.3.3. On some MCUs the temperature channel is -- the same as the VBat channel, on others it is channel 16. Note only -- available with ADC_1 ADC_Supply_Voltage : constant := 3000; -- millivolts -- This is the ideal value, likely not the actual procedure Enable (This : in out Analog_To_Digital_Converter) with Pre => not Enabled (This) and not Conversion_Started (This) and not Injected_Conversion_Started (This), Post => Enabled (This); procedure Disable (This : in out Analog_To_Digital_Converter) with Pre => Enabled (This) and not Conversion_Started (This) and not Injected_Conversion_Started (This), Post => not Enabled (This); function Enabled (This : Analog_To_Digital_Converter) return Boolean; function Disabled (This : Analog_To_Digital_Converter) return Boolean; type ADC_Resolution is (ADC_Resolution_12_Bits, -- 15 ADC Clock cycles ADC_Resolution_10_Bits, -- 12 ADC Clock cycles ADC_Resolution_8_Bits, -- 10 ADC Clock cycles ADC_Resolution_6_Bits); -- 8 ADC Clock cycles type Data_Alignment is (Right_Aligned, Left_Aligned); procedure Configure_Unit (This : in out Analog_To_Digital_Converter; Resolution : ADC_Resolution; Alignment : Data_Alignment) with Post => Current_Resolution (This) = Resolution and Current_Alignment (This) = Alignment; function Current_Resolution (This : Analog_To_Digital_Converter) return ADC_Resolution; function Current_Alignment (This : Analog_To_Digital_Converter) return Data_Alignment; type Channel_Sampling_Times is (Sample_1P5_Cycles, Sample_2P5_Cycles, Sample_4P5_Cycles, Sample_7P5_Cycles, Sample_19P5_Cycles, Sample_61P5_Cycles, Sample_181P5_Cycles, Sample_601P5_Cycles) with Size => 3; -- The elapsed time between the start of a conversion and the end of -- conversion is the sum of the configured sampling time plus the -- successive approximation time (SAR = 12.5 for 12 bit) depending on data -- resolution. See RM0364 rev 4 chapter 13.3.16 Timing. type External_Trigger is (Trigger_Disabled, Trigger_Rising_Edge, Trigger_Falling_Edge, Trigger_Both_Edges); type Regular_Channel_Rank is new Natural range 1 .. 16; type Injected_Channel_Rank is new Natural range 1 .. 4; type External_Events_Regular_Group is (Timer1_CC1_Event, Timer1_CC2_Event, Timer1_CC3_Event, Timer2_CC2_Event, Timer3_TRGO_Event, EXTI_Line11, HRTimer_ADCTRG1_Event, HRTimer_ADCTRG3_Event, Timer1_TRGO_Event, Timer1_TRGO2_Event, Timer2_TRGO_Event, Timer6_TRGO_Event, Timer15_TRGO_Event, Timer3_CC4_Event); -- External triggers for regular channels. for External_Events_Regular_Group use -- RM pg. 231 (Timer1_CC1_Event => 2#0000#, Timer1_CC2_Event => 2#0001#, Timer1_CC3_Event => 2#0010#, Timer2_CC2_Event => 2#0011#, Timer3_TRGO_Event => 2#0100#, EXTI_Line11 => 2#0110#, HRTimer_ADCTRG1_Event => 2#0111#, HRTimer_ADCTRG3_Event => 2#1000#, Timer1_TRGO_Event => 2#1001#, Timer1_TRGO2_Event => 2#1010#, Timer2_TRGO_Event => 2#1011#, Timer6_TRGO_Event => 2#1101#, Timer15_TRGO_Event => 2#1110#, Timer3_CC4_Event => 2#1111#); type Regular_Channel_Conversion_Trigger (Enabler : External_Trigger) is record case Enabler is when Trigger_Disabled => null; when others => Event : External_Events_Regular_Group; end case; end record; Software_Triggered : constant Regular_Channel_Conversion_Trigger := (Enabler => Trigger_Disabled); type Regular_Channel_Conversion is record Channel : Analog_Input_Channel; Sample_Time : Channel_Sampling_Times; end record; type Regular_Channel_Conversions is array (Regular_Channel_Rank range <>) of Regular_Channel_Conversion; procedure Configure_Regular_Conversions (This : in out Analog_To_Digital_Converter; Continuous : Boolean; Trigger : Regular_Channel_Conversion_Trigger; Conversions : Regular_Channel_Conversions) with Pre => Conversions'Length > 0, Post => Length_Matches_Expected (This, Conversions) and -- if there are multiple channels to be converted, we must want to -- scan them so we set Scan_Mode accordingly (if Conversions'Length > 1 then Scan_Mode_Enabled (This)) and -- The VBat and VRef internal connections are enabled if This is -- ADC_1 and the corresponding channels are included in the lists. (VBat_May_Be_Enabled (This, Conversions) or else VRef_TemperatureSensor_May_Be_Enabled (This, Conversions)); -- Configures all the regular channel conversions described in the array -- Conversions. Note that the order of conversions in the array is the -- order in which they are scanned, ie, their index is their "rank" in -- the data structure. Note that if the VBat and Temperature channels are -- the same channel, then only the VBat conversion takes place and only -- that one will be enabled, so we must check the two in that order. function Regular_Conversions_Expected (This : Analog_To_Digital_Converter) return Natural; -- Returns the total number of regular channel conversions specified in the -- hardware function Scan_Mode_Enabled (This : Analog_To_Digital_Converter) return Boolean; -- Returns whether only one channel is converted, or if multiple channels -- are converted (i.e., scanned). Note that this is independent of whether -- the conversions are continuous. type External_Events_Injected_Group is (Timer1_TRGO_Event, Timer1_CC4_Event, Timer2_TRGO_Event, Timer2_CC1_Event, Timer3_CC4_Event, EXTI_Line15, Timer1_TRGO2_Event, HRTimer_ADCTRG2_Event, HRTimer_ADCTRG4_Event, Timer3_CC3_Event, Timer3_TRGO_Event, Timer3_CC1_Event, Timer6_TRGO_Event, Timer15_TRGO_Event); -- External triggers for injected channels for External_Events_Injected_Group use -- RM pg. 232 (Timer1_TRGO_Event => 2#0000#, Timer1_CC4_Event => 2#0001#, Timer2_TRGO_Event => 2#0010#, Timer2_CC1_Event => 2#0011#, Timer3_CC4_Event => 2#0100#, EXTI_Line15 => 2#0110#, Timer1_TRGO2_Event => 2#1000#, HRTimer_ADCTRG2_Event => 2#1001#, HRTimer_ADCTRG4_Event => 2#1010#, Timer3_CC3_Event => 2#1011#, Timer3_TRGO_Event => 2#1100#, Timer3_CC1_Event => 2#1101#, Timer6_TRGO_Event => 2#1110#, Timer15_TRGO_Event => 2#1111#); type Injected_Channel_Conversion_Trigger (Enabler : External_Trigger) is record case Enabler is when Trigger_Disabled => null; when others => Event : External_Events_Injected_Group; end case; end record; Software_Triggered_Injected : constant Injected_Channel_Conversion_Trigger := (Enabler => Trigger_Disabled); subtype Injected_Data_Offset is UInt12; type Injected_Channel_Conversion is record Channel : Analog_Input_Channel; Sample_Time : Channel_Sampling_Times; Offset : Injected_Data_Offset := 0; end record; type Injected_Channel_Conversions is array (Injected_Channel_Rank range <>) of Injected_Channel_Conversion; procedure Configure_Injected_Conversions (This : in out Analog_To_Digital_Converter; AutoInjection : Boolean; Trigger : Injected_Channel_Conversion_Trigger; Conversions : Injected_Channel_Conversions) with Pre => Conversions'Length > 0 and (if AutoInjection then Trigger = Software_Triggered_Injected) and (if AutoInjection then not Discontinuous_Mode_Injected_Enabled (This)), Post => Length_Is_Expected (This, Conversions) and -- The VBat and VRef internal connections are enabled if This is -- ADC_1 and the corresponding channels are included in the lists. (VBat_May_Be_Enabled (This, Conversions) or else VRef_TemperatureSensor_May_Be_Enabled (This, Conversions)); -- Configures all the injected channel conversions described in the array -- Conversions. Note that the order of conversions in the array is the -- order in which they are scanned, ie, their index is their "rank" in -- the data structure. Note that if the VBat and Temperature channels are -- the same channel, then only the VBat conversion takes place and only -- that one will be enabled, so we must check the two in that order. function Injected_Conversions_Expected (This : Analog_To_Digital_Converter) return Natural; -- Returns the total number of injected channel conversions to be done function VBat_Enabled return Boolean; -- Returns whether the hardware has the VBat internal connection enabled function VRef_TemperatureSensor_Enabled return Boolean; -- Returns whether the hardware has the VRef or temperature sensor internal -- connection enabled procedure Start_Conversion (This : in out Analog_To_Digital_Converter) with Pre => Enabled (This) and Regular_Conversions_Expected (This) > 0; -- Starts the conversion(s) for the regular channels procedure Stop_Conversion (This : in out Analog_To_Digital_Converter) with Pre => Conversion_Started (This) and not Disabled (This); -- Stops the conversion(s) for the regular channels function Conversion_Started (This : Analog_To_Digital_Converter) return Boolean; -- Returns whether the regular channels' conversions have started. Note -- that the ADC hardware clears the corresponding bit immediately, as -- part of starting. function Conversion_Value (This : Analog_To_Digital_Converter) return UInt16 with Inline; -- Returns the latest regular conversion result for the specified ADC unit function Data_Register_Address (This : Analog_To_Digital_Converter) return System.Address with Inline; -- Returns the address of the ADC Data Register. This is exported -- STRICTLY for the sake of clients using DMA. All other -- clients of this package should use the Conversion_Value functions! -- Seriously, don't use this function otherwise. procedure Start_Injected_Conversion (This : in out Analog_To_Digital_Converter) with Pre => Enabled (This) and Injected_Conversions_Expected (This) > 0; -- Note that the ADC hardware clears the corresponding bit immediately, as -- part of starting. function Injected_Conversion_Started (This : Analog_To_Digital_Converter) return Boolean; -- Returns whether the injected channels' conversions have started function Injected_Conversion_Value (This : Analog_To_Digital_Converter; Rank : Injected_Channel_Rank) return UInt16 with Inline; -- Returns the latest conversion result for the analog input channel at -- the injected sequence position given by Rank on the specified ADC unit. -- -- Note that the offset corresponding to the specified Rank is subtracted -- automatically, so check the sign bit for a negative result. type CDR_Data is (Master, Slave); function Multimode_Conversion_Value (Value : CDR_Data) return UInt16; function Multimode_Conversion_Value return UInt32 with inline; -- Returns the latest ADC_1, ADC_2 and ADC_3 regular channel conversions' -- results based the selected multi ADC mode -- Discontinuous Management -------------------------------------------------------- type Discontinuous_Mode_Channel_Count is range 1 .. 8; -- Note this uses a biased representation implicitly because the underlying -- representational bit values are 0 ... 7 procedure Enable_Discontinuous_Mode (This : in out Analog_To_Digital_Converter; Regular : Boolean; -- if False, applies to Injected channels Count : Discontinuous_Mode_Channel_Count) with Pre => not AutoInjection_Enabled (This), Post => (if Regular then (Discontinuous_Mode_Regular_Enabled (This)) and (not Discontinuous_Mode_Injected_Enabled (This)) else (not Discontinuous_Mode_Regular_Enabled (This)) and (Discontinuous_Mode_Injected_Enabled (This))); -- Enables discontinuous mode and sets the count. If Regular is True, -- enables the mode only for regular channels. If Regular is False, enables -- the mode only for Injected channels. The note in RM 13.3.10, pg 393, -- says we cannot enable the mode for both regular and injected channels -- at the same time, so this flag ensures we follow that rule. procedure Disable_Discontinuous_Mode_Regular (This : in out Analog_To_Digital_Converter) with Post => not Discontinuous_Mode_Regular_Enabled (This); procedure Disable_Discontinuous_Mode_Injected (This : in out Analog_To_Digital_Converter) with Post => not Discontinuous_Mode_Injected_Enabled (This); function Discontinuous_Mode_Regular_Enabled (This : Analog_To_Digital_Converter) return Boolean; function Discontinuous_Mode_Injected_Enabled (This : Analog_To_Digital_Converter) return Boolean; function AutoInjection_Enabled (This : Analog_To_Digital_Converter) return Boolean; -- DMA Management -------------------------------------------------------- procedure Enable_DMA (This : in out Analog_To_Digital_Converter) with Pre => not Conversion_Started (This) and not Injected_Conversion_Started (This), Post => DMA_Enabled (This); procedure Disable_DMA (This : in out Analog_To_Digital_Converter) with Pre => not Conversion_Started (This) and not Injected_Conversion_Started (This), Post => not DMA_Enabled (This); function DMA_Enabled (This : Analog_To_Digital_Converter) return Boolean; procedure Enable_DMA_After_Last_Transfer (This : in out Analog_To_Digital_Converter) with Pre => not Conversion_Started (This) and not Injected_Conversion_Started (This), Post => DMA_Enabled_After_Last_Transfer (This); procedure Disable_DMA_After_Last_Transfer (This : in out Analog_To_Digital_Converter) with Pre => not Conversion_Started (This) and not Injected_Conversion_Started (This), Post => not DMA_Enabled_After_Last_Transfer (This); function DMA_Enabled_After_Last_Transfer (This : Analog_To_Digital_Converter) return Boolean; -- Analog Watchdog ------------------------------------------------------- subtype Watchdog_Threshold is UInt12; type Analog_Watchdog_Modes is (Watchdog_All_Regular_Channels, Watchdog_All_Injected_Channels, Watchdog_All_Both_Kinds, Watchdog_Single_Regular_Channel, Watchdog_Single_Injected_Channel, Watchdog_Single_Both_Kinds); subtype Multiple_Channels_Watchdog is Analog_Watchdog_Modes range Watchdog_All_Regular_Channels .. Watchdog_All_Both_Kinds; procedure Watchdog_Enable_Channels (This : in out Analog_To_Digital_Converter; Mode : Multiple_Channels_Watchdog; Low : Watchdog_Threshold; High : Watchdog_Threshold) with Pre => not Watchdog_Enabled (This), Post => Watchdog_Enabled (This); -- Enables the watchdog on all channels; channel kind depends on Mode. -- A call to this routine is considered a complete configuration of the -- watchdog so do not call the other enabler routine (for a single channel) -- while this configuration is active. You must first disable the watchdog -- if you want to enable the watchdog for a single channel. -- see RM0364 rev 4 Chapter 13.3.28, pg 257, Table 44. subtype Single_Channel_Watchdog is Analog_Watchdog_Modes range Watchdog_Single_Regular_Channel .. Watchdog_Single_Both_Kinds; procedure Watchdog_Enable_Channel (This : in out Analog_To_Digital_Converter; Mode : Single_Channel_Watchdog; Channel : Analog_Input_Channel; Low : Watchdog_Threshold; High : Watchdog_Threshold) with Pre => not Watchdog_Enabled (This), Post => Watchdog_Enabled (This); -- Enables the watchdog on this single channel, and no others. The kind of -- channel depends on Mode. A call to this routine is considered a complete -- configuration of the watchdog so do not call the other enabler routine -- (for all channels) while this configuration is active. You must -- first disable the watchdog if you want to enable the watchdog for -- all channels. -- see RM0364 rev 4 Chapter 13.3.28, pg 257, Table 44. procedure Watchdog_Disable (This : in out Analog_To_Digital_Converter) with Post => not Watchdog_Enabled (This); -- Whether watching a single channel or all of them, the watchdog is now -- disabled function Watchdog_Enabled (This : Analog_To_Digital_Converter) return Boolean; type Analog_Window_Watchdog is (Watchdog_2, Watchdog_3); type Analog_Input_Channels is array (Analog_Input_Channel range <>) of Analog_Input_Channel; procedure Watchdog_Enable_Channels (This : in out Analog_To_Digital_Converter; Watchdog : Analog_Window_Watchdog; Channels : Analog_Input_Channels; Low : Watchdog_Threshold; High : Watchdog_Threshold) with Pre => not Conversion_Started (This), Post => Watchdog_Enabled (This, Watchdog); -- Enable the watchdog 2 or 3 for any selected channel. The channels -- selected by AWDxCH must be also selected into the ADC regular or injected -- sequence registers SQRi or JSQRi registers. The watchdog is disabled when -- none channel is selected. procedure Watchdog_Disable_Channels (This : in out Analog_To_Digital_Converter; Watchdog : Analog_Window_Watchdog; Channels : Analog_Input_Channels) with Pre => not Conversion_Started (This); procedure Watchdog_Disable (This : in out Analog_To_Digital_Converter; Watchdog : Analog_Window_Watchdog) with Post => not Watchdog_Enabled (This, Watchdog); -- The watchdog is disabled when none channel is selected. function Watchdog_Enabled (This : Analog_To_Digital_Converter; Watchdog : Analog_Window_Watchdog) return Boolean; -- The watchdog is enabled when any channel is selected. -- Status Management ----------------------------------------------------- type ADC_Status_Flag is (ADC_Ready, Regular_Channel_Conversion_Completed, Regular_Sequence_Conversion_Completed, Injected_Channel_Conversion_Completed, Injected_Sequence_Conversion_Completed, Analog_Watchdog_1_Event_Occurred, Analog_Watchdog_2_Event_Occurred, Analog_Watchdog_3_Event_Occurred, Sampling_Completed, Overrun, Injected_Context_Queue_Overflow); function Status (This : Analog_To_Digital_Converter; Flag : ADC_Status_Flag) return Boolean with Inline; -- Returns whether Flag is indicated, ie set in the Status Register procedure Clear_Status (This : in out Analog_To_Digital_Converter; Flag : ADC_Status_Flag) with Inline, Post => not Status (This, Flag); procedure Poll_For_Status (This : in out Analog_To_Digital_Converter; Flag : ADC_Status_Flag; Success : out Boolean; Timeout : Time_Span := Time_Span_Last); -- Continuously polls for the specified status flag to be set, up to the -- deadline computed by the value of Clock + Timeout. Sets the Success -- argument accordingly. The default Time_Span_Last value is the largest -- possible value, thereby setting a very long, but not infinite, timeout. -- Interrupt Management -------------------------------------------------- type ADC_Interrupts is (ADC_Ready, Regular_Channel_Conversion_Complete, Regular_Sequence_Conversion_Complete, Injected_Channel_Conversion_Complete, Injected_Sequence_Conversion_Complete, Analog_Watchdog_1_Event_Occurr, Analog_Watchdog_2_Event_Occurr, Analog_Watchdog_3_Event_Occurr, Sampling_Complete, Overrun, Injected_Context_Queue_Overflow); procedure Enable_Interrupts (This : in out Analog_To_Digital_Converter; Source : ADC_Interrupts) with Inline, Post => Interrupt_Enabled (This, Source); procedure Disable_Interrupts (This : in out Analog_To_Digital_Converter; Source : ADC_Interrupts) with Inline, Post => not Interrupt_Enabled (This, Source); function Interrupt_Enabled (This : Analog_To_Digital_Converter; Source : ADC_Interrupts) return Boolean with Inline; procedure Clear_Interrupt_Pending (This : in out Analog_To_Digital_Converter; Source : ADC_Interrupts) with Inline; -- Common Properties ------------------------------------------------------ type ADC_Clock_Mode is (CLK_ADC, PCLK2_Div_1, PCLK2_Div_2, PCLK2_Div_4); type Dual_ADC_DMA_Modes is (Disabled, DMA_Mode_1, DMA_Mode_2); for Dual_ADC_DMA_Modes use (Disabled => 2#00#, DMA_Mode_1 => 2#10#, DMA_Mode_2 => 2#11#); type Sampling_Delay_Selections is (Sampling_Delay_5_Cycles, Sampling_Delay_6_Cycles, Sampling_Delay_7_Cycles, Sampling_Delay_8_Cycles, Sampling_Delay_9_Cycles, Sampling_Delay_10_Cycles, Sampling_Delay_11_Cycles, Sampling_Delay_12_Cycles, Sampling_Delay_13_Cycles, Sampling_Delay_14_Cycles, Sampling_Delay_15_Cycles, Sampling_Delay_16_Cycles, Sampling_Delay_17_Cycles, Sampling_Delay_18_Cycles, Sampling_Delay_19_Cycles, Sampling_Delay_20_Cycles); type Multi_ADC_Mode_Selections is (Independent, Dual_Combined_Regular_Injected_Simultaneous, Dual_Combined_Regular_Simultaneous_Alternate_Trigger, Dual_Combined_Interleaved_Injected_Simultaneous, Dual_Injected_Simultaneous, Dual_Regular_Simultaneous, Dual_Interleaved, Dual_Alternate_Trigger); for Multi_ADC_Mode_Selections use (Independent => 2#00000#, Dual_Combined_Regular_Injected_Simultaneous => 2#00001#, Dual_Combined_Regular_Simultaneous_Alternate_Trigger => 2#00010#, Dual_Combined_Interleaved_Injected_Simultaneous => 2#00011#, Dual_Injected_Simultaneous => 2#00101#, Dual_Regular_Simultaneous => 2#00110#, Dual_Interleaved => 2#00111#, Dual_Alternate_Trigger => 2#01001#); procedure Configure_Common_Properties (Mode : Multi_ADC_Mode_Selections; Clock_Mode : ADC_Clock_Mode; DMA_Mode : Dual_ADC_DMA_Modes; Sampling_Delay : Sampling_Delay_Selections); -- These properties are common to all the ADC units on the board. -- These Multi_DMA_Mode commands needs to be separate from the -- Configure_Common_Properties procedure for the sake of dealing -- with overruns etc. procedure Multi_Enable_DMA_After_Last_Transfer with Post => Multi_DMA_Enabled_After_Last_Transfer; -- Make shure to execute this procedure only when conversion is -- not started. procedure Multi_Disable_DMA_After_Last_Transfer with Post => not Multi_DMA_Enabled_After_Last_Transfer; -- Make shure to execute this procedure only when conversion is -- not started. function Multi_DMA_Enabled_After_Last_Transfer return Boolean; -- Queries ---------------------------------------------------------------- function VBat_Conversion (This : Analog_To_Digital_Converter; Channel : Analog_Input_Channel) return Boolean with Inline; function VRef_TemperatureSensor_Conversion (This : Analog_To_Digital_Converter; Channel : Analog_Input_Channel) return Boolean with Inline; -- Returns whether the ADC unit and channel specified are that of a VRef -- OR a temperature sensor conversion. Note that one control bit is used -- to enable either one, ie it is shared. function VBat_May_Be_Enabled (This : Analog_To_Digital_Converter; These : Regular_Channel_Conversions) return Boolean is ((for all Conversion of These => (if VBat_Conversion (This, Conversion.Channel) then VBat_Enabled))); function VBat_May_Be_Enabled (This : Analog_To_Digital_Converter; These : Injected_Channel_Conversions) return Boolean is ((for all Conversion of These => (if VBat_Conversion (This, Conversion.Channel) then VBat_Enabled))); function VRef_TemperatureSensor_May_Be_Enabled (This : Analog_To_Digital_Converter; These : Regular_Channel_Conversions) return Boolean is (for all Conversion of These => (if VRef_TemperatureSensor_Conversion (This, Conversion.Channel) then VRef_TemperatureSensor_Enabled)); function VRef_TemperatureSensor_May_Be_Enabled (This : Analog_To_Digital_Converter; These : Injected_Channel_Conversions) return Boolean is (for all Conversion of These => (if VRef_TemperatureSensor_Conversion (This, Conversion.Channel) then VRef_TemperatureSensor_Enabled)); -- The *_Conversions_Expected functions will always return at least the -- value 1 because the hardware uses a biased representation (in which -- zero indicates the value one, one indicates the value two, and so on). -- Therefore, we don't invoke the functions unless we know they will be -- greater than zero. function Length_Matches_Expected (This : Analog_To_Digital_Converter; These : Regular_Channel_Conversions) return Boolean is (if These'Length > 0 then Regular_Conversions_Expected (This) = These'Length); function Length_Is_Expected (This : Analog_To_Digital_Converter; These : Injected_Channel_Conversions) return Boolean is (if These'Length > 0 then Injected_Conversions_Expected (This) = These'Length); private ADC_Stabilization : constant Time_Span := Microseconds (3); Temperature_Sensor_Stabilization : constant Time_Span := Microseconds (10); -- The RM, section 13.3.6, says stabilization times are required. These -- values are specified in the datasheets, eg section 5.3.20, pg 129, -- and section 5.3.21, pg 134, of the STM32F405/7xx, DocID022152 Rev 4. procedure Configure_Regular_Channel (This : in out Analog_To_Digital_Converter; Channel : Analog_Input_Channel; Rank : Regular_Channel_Rank; Sample_Time : Channel_Sampling_Times); procedure Configure_Injected_Channel (This : in out Analog_To_Digital_Converter; Channel : Analog_Input_Channel; Rank : Injected_Channel_Rank; Sample_Time : Channel_Sampling_Times; Offset : Injected_Data_Offset); procedure Enable_VBat_Connection with Post => VBat_Enabled; procedure Enable_VRef_TemperatureSensor_Connection with Post => VRef_TemperatureSensor_Enabled; -- One bit controls both the VRef and the temperature internal connections type Analog_To_Digital_Converter is new STM32_SVD.ADC.ADC1_Peripheral; function VBat_Conversion (This : Analog_To_Digital_Converter; Channel : Analog_Input_Channel) return Boolean is (This'Address = STM32_SVD.ADC.ADC1_Periph'Address and Channel = VBat_Channel); function VRef_TemperatureSensor_Conversion (This : Analog_To_Digital_Converter; Channel : Analog_Input_Channel) return Boolean is (This'Address = STM32_SVD.ADC.ADC1_Periph'Address and (Channel in VRef_Channel | TemperatureSensor_Channel)); end STM32.ADC;