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
oeis/122/A122194.asm
neoneye/loda-programs
11
161911
; A122194: Numbers that are the sum of exactly two sets of Fibonacci numbers. ; Submitted by <NAME> ; 3,5,6,9,10,15,17,25,28,41,46,67,75,109,122,177,198,287,321,465,520,753,842,1219,1363,1973,2206,3193,3570,5167,5777,8361,9348,13529,15126,21891,24475,35421,39602,57313,64078,92735,103681,150049,167760,242785,271442,392835,439203,635621,710646,1028457,1149850,1664079,1860497,2692537,3010348,4356617,4870846,7049155,7881195,11405773,12752042,18454929,20633238,29860703,33385281,48315633,54018520,78176337,87403802,126491971,141422323,204668309,228826126,331160281,370248450,535828591,599074577 mov $2,$0 add $0,1 div $0,2 lpb $0 sub $0,1 add $2,2 mov $3,$2 add $2,$5 sub $3,$0 sub $3,1 mov $4,$3 sub $4,$0 mov $5,$4 lpe mov $0,$3 add $0,3
software/driver/led.adb
TUM-EI-RCS/StratoX
12
3602
-- todo: use HAL --with STM32_SVD.GPIO; use STM32_SVD.GPIO; with HIL.GPIO; use HIL.GPIO; package body LED with SPARK_Mode is procedure init is begin null; end init; procedure on is begin write (RED_LED, HIGH); -- LED on end on; procedure off is begin write (RED_LED, LOW); -- LED off end off; end LED;
solutions/09-Zero-Preservation-Initiative-5.25/5.28-danielfreer.asm
danielfreer/human-resource-machine
0
82632
-- HUMAN RESOURCE MACHINE PROGRAM -- -- 09-Zero-Preservation-Initiative - SIZE 5/5 - SPEED 25/28 -- a: b: INBOX JUMPZ c JUMP a c: OUTBOX JUMP b
UFAL/OAC/Lista 1/Q6.asm
NelsonGomesNeto/ProgramC
3
19467
<gh_stars>1-10 # Main addi $a0, $zero, 7 # n = 7 jal fib # fib(7) add $s0, $zero, $v0 # s0 = fib(n) j END # Functions fib: addi $sp, $sp, -12 # prepare stack sw $ra, 8($sp) # save return address sw $a0, 0($sp) # save n addi $t1, $zero, 2 # t1 = 2 slt $t0, $a0, $t1 # t0 = (a < 2) beq $t0, $zero, continue # if (a >= 2) goto continue # addi $v0, $zero, 1 # v0 = 1 (IF FIRST FIB == 1) add $v0, $zero, $a0 # v0 = a0 (IF FIRST FIB == 0) jr $ra # return(1) continue: addi $a0, $a0, -1 # n -= 1 jal fib # fib(n - 1) addi $sp, $sp, 12 # pop stack add $t2, $zero, $v0 # t2 = fib(n - 1) sw $t2, 4($sp) # save return of fib(n - 1) lw $a0, 0($sp) # load prev n addi $a0, $a0, -2 # n -= 2 jal fib # fib(n - 2) addi $sp, $sp, 12 # pop stack lw $t2, 4($sp) # load return of fib(n - 1) lw $ra, 8($sp) # load prev return address add $v0, $v0, $t2 # v0 = fib(n - 2) + fib(n - 1) jr $ra # return(fib(n - 1) + fib(n - 2)) END: nop
oeis/177/A177728.asm
neoneye/loda-programs
11
244915
; A177728: Expansion of (1 + 14*x) / ((1 - x)*(1 - 2*x)*(1 - 4*x)*(1 - 8*x)*(1 - 16*x)). ; Submitted by <NAME> ; 1,45,1085,20925,366141,6120765,100080445,1618667325,26038501181,417737748285,6692790374205,107156587499325,1715081133346621,27445904805580605,439171333486530365,7027036201446788925,112434938199985606461,1798977883220621905725,28783797108521397636925,460541961555572465848125,7368681047456194405584701,117898974059888166630051645,1886384203363134221371821885,30182152201050380409073028925,482914474794731327181611585341,7726631913339116670795675586365,123626113146413244263044385853245 mov $2,$0 add $2,1 mov $3,$0 lpb $2 mov $0,$3 seq $0,28258 ; Expansion of 1/((1-2*x)*(1-4*x)(1-8*x)(1-16*x)). div $1,2 add $1,$0 sub $2,1 lpe mov $0,$1
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_1911.asm
ljhsiun2/medusa
9
2044
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x1b27c, %rsi lea addresses_UC_ht+0x1724c, %rdi inc %rbx mov $91, %rcx rep movsw inc %rbx lea addresses_normal_ht+0x1979, %rsi lea addresses_UC_ht+0x1d42c, %rdi clflush (%rsi) nop nop nop nop sub %r11, %r11 mov $117, %rcx rep movsq nop nop nop inc %rbx lea addresses_D_ht+0x516c, %rsi lea addresses_A_ht+0x588e, %rdi nop nop xor %r10, %r10 mov $36, %rcx rep movsw and %rcx, %rcx lea addresses_WT_ht+0x17233, %rdi nop nop nop nop and %r11, %r11 movw $0x6162, (%rdi) nop nop nop nop and %rdi, %rdi lea addresses_D_ht+0x5e6c, %rsi lea addresses_UC_ht+0x96c, %rdi nop and %r9, %r9 mov $112, %rcx rep movsl nop nop nop sub %rbx, %rbx lea addresses_UC_ht+0x1b36c, %rsi lea addresses_UC_ht+0x1bd2c, %rdi nop nop nop nop xor $31932, %r9 mov $88, %rcx rep movsw nop nop nop nop cmp %r9, %r9 lea addresses_WC_ht+0x1cda4, %rsi lea addresses_WC_ht+0x11665, %rdi nop nop nop nop nop dec %r11 mov $66, %rcx rep movsw nop nop sub $40711, %rcx lea addresses_WC_ht+0x11d6c, %r11 nop nop and $61805, %rcx movups (%r11), %xmm6 vpextrq $1, %xmm6, %r9 nop nop and %r10, %r10 lea addresses_D_ht+0x1ecc2, %rsi lea addresses_D_ht+0xab5c, %rdi nop inc %rbx mov $73, %rcx rep movsq nop nop sub $24275, %r11 lea addresses_UC_ht+0x129fc, %rsi lea addresses_normal_ht+0x59a3, %rdi nop cmp %r11, %r11 mov $118, %rcx rep movsb nop sub %rbx, %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %r9 push %rbp push %rdi push %rsi // Store mov $0xef8, %r14 nop nop nop nop dec %rbp mov $0x5152535455565758, %r12 movq %r12, %xmm0 vmovups %ymm0, (%r14) nop nop nop nop nop xor %r12, %r12 // Store mov $0xd6c, %r9 clflush (%r9) nop nop nop add $17596, %rbp movw $0x5152, (%r9) nop nop nop and %rbp, %rbp // Store lea addresses_normal+0x1396c, %r9 cmp %r10, %r10 movl $0x51525354, (%r9) nop nop nop nop cmp $62765, %rsi // Faulty Load lea addresses_A+0x15d6c, %rbp nop nop nop nop nop sub %rdi, %rdi movb (%rbp), %r12b lea oracles, %r10 and $0xff, %r12 shlq $12, %r12 mov (%r10,%r12,1), %r12 pop %rsi pop %rdi pop %rbp pop %r9 pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 2, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 8, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 9, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}} {'52': 21829} 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 */
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/inline4_pkg.ads
best08618/asylo
7
12165
package Inline4_Pkg is procedure Test (I : Integer); pragma Inline_Always (Test); end Inline4_Pkg;
3-mid/opengl/source/lean/support/opengl-frame_counter.ads
charlie5/lace
20
11887
<filename>3-mid/opengl/source/lean/support/opengl-frame_counter.ads private with ada.Calendar; package openGL.frame_Counter -- -- A utility which reports frames per second. -- is type Item is tagged private; procedure increment (Self : in out Item); private type Item is tagged record frame_Count : Natural := 0; next_FPS_Time : ada.Calendar.Time := ada.Calendar.Clock; end record; end openGL.frame_Counter;
commands/apps/openvpn/connect-openvpn.applescript
daviddzhou/script-commands
3,305
2995
<gh_stars>1000+ #!/usr/bin/osascript # Note: OpenVPN v3.3+ recommended # Install via https://openvpn.net/vpn-client/ # # Required parameters: # @raycast.schemaVersion 1 # @raycast.title Connect OpenVPN # @raycast.mode silent # # Optional parameters: # @raycast.icon ./images/openvpn.png # @raycast.packageName OpenVPN # # Documentation: # @raycast.description Prepares OpenVPN Connect client to connect or reconnect. # @raycast.author <NAME> # @raycast.authorURL https://github.com/aaronhmiller if application "OpenVPN Connect" is running then -- no op else tell application "OpenVPN Connect" to activate delay 3 --wait for init end if ignoring application responses --removes 5 sec delay (via caching?) tell application "System Events" to tell process "OpenVPN Connect" to click menu bar item 1 of menu bar 2 end ignoring delay 0.1 do shell script "killall System\\ Events" tell application "System Events" to tell process "OpenVPN Connect" to tell menu bar item 1 of menu bar 2 click get menu items of menu 1 try click menu item "Connect" of menu 1 do shell script "echo OpenVPN ready to connect" on error --menu item toggles between connect/disconnect key code 53 --escape key to close menu do shell script "echo Already connected" end try end tell
src/test/ref/index-sizeof-reuse-2.asm
jbrandwood/kickc
2
21273
<reponame>jbrandwood/kickc // Test that the multiplication of a idx*sizeof(element) is reused inside loops // Commodore 64 PRG executable file .file [name="index-sizeof-reuse-2.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) .label VICII_RASTER = $d012 .label VICII_BG_COLOR = $d020 .label SCREEN = $400 .segment Code main: { // Move the entities .label line = 5 .label i = 2 .label __11 = 3 // asm sei // Wait for raster refresh __b1: // while(*VICII_RASTER!=0xff) lda #$ff cmp VICII_RASTER bne __b1 // *VICII_BG_COLOR = 0 lda #0 sta VICII_BG_COLOR lda #<SCREEN sta.z line lda #>SCREEN sta.z line+1 lda #0 sta.z i __b3: // for(char i=0;i<NUM_ENTITIES;i++) lda.z i cmp #$19 bcc __b4 // *VICII_BG_COLOR = 15 lda #$f sta VICII_BG_COLOR jmp __b1 __b4: // line[(char)entities[i]] = ' ' lda.z i asl tax lda entities,x // Delete old symbol tay lda #' ' sta (line),y // entities[i] += 1 // Move by velocity inc entities,x bne !+ inc entities+1,x !: // if(entities[i]>39) lda entities+1,x bne !+ lda entities,x cmp #$27+1 bcc __b6 !: // entities[i] =0 lda #0 sta entities,x sta entities+1,x __b6: // line[entities[i]] = '*' clc lda.z line adc entities,x sta.z __11 lda.z line+1 adc entities+1,x sta.z __11+1 // Draw symbol lda #'*' ldy #0 sta (__11),y // line +=40 // Next line lda #$28 clc adc.z line sta.z line bcc !+ inc.z line+1 !: // for(char i=0;i<NUM_ENTITIES;i++) inc.z i jmp __b3 } .segment Data entities: .fill 2*$19, 0
src/runtime/grammar/SQL.g4
johnrwolfe/ciera
0
3781
<filename>src/runtime/grammar/SQL.g4 grammar SQL; @header { package io.ciera.runtime.instanceloading.sql.parser; } sql_file: ( insert_statement | link_statement )*; insert_statement: 'INSERT' 'INTO' table_name 'VALUES' LPAREN values RPAREN SEMI; link_statement: link rel_number 'IDS' LPAREN ids RPAREN SEMI; link: 'LINK2' | 'LINK3'; table_name: ID; values: value | value COMMA values ; value: STRING | REAL | INTEGER; rel_number: INTEGER; ids: id | id COMMA ids ; id: STRING; COMMENT: '--' ~( '\n' )* '\n' -> skip; ID: [a-zA-Z][a-zA-Z0-9_]*; INTEGER: '-'? [0-9]+; REAL: '-'? [0-9]+ '.' [0-9]+; STRING: ( '\'' ( ~( '\'' ) | '\'' '\'' )* '\'' ) | ( '"' ( ~( '"' ) )* '"' ); LPAREN: '('; RPAREN: ')'; SEMI: ';'; COMMA: ','; WS: [ \t\r\n]+ -> skip;
source/oasis/program-elements-package_body_declarations.ads
optikos/oasis
0
2759
-- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Declarations; with Program.Lexical_Elements; with Program.Elements.Defining_Names; with Program.Elements.Aspect_Specifications; with Program.Element_Vectors; with Program.Elements.Exception_Handlers; with Program.Elements.Expressions; package Program.Elements.Package_Body_Declarations is pragma Pure (Program.Elements.Package_Body_Declarations); type Package_Body_Declaration is limited interface and Program.Elements.Declarations.Declaration; type Package_Body_Declaration_Access is access all Package_Body_Declaration'Class with Storage_Size => 0; not overriding function Name (Self : Package_Body_Declaration) return not null Program.Elements.Defining_Names.Defining_Name_Access is abstract; not overriding function Aspects (Self : Package_Body_Declaration) return Program.Elements.Aspect_Specifications .Aspect_Specification_Vector_Access is abstract; not overriding function Declarations (Self : Package_Body_Declaration) return Program.Element_Vectors.Element_Vector_Access is abstract; not overriding function Statements (Self : Package_Body_Declaration) return not null Program.Element_Vectors.Element_Vector_Access is abstract; not overriding function Exception_Handlers (Self : Package_Body_Declaration) return Program.Elements.Exception_Handlers .Exception_Handler_Vector_Access is abstract; not overriding function End_Name (Self : Package_Body_Declaration) return Program.Elements.Expressions.Expression_Access is abstract; type Package_Body_Declaration_Text is limited interface; type Package_Body_Declaration_Text_Access is access all Package_Body_Declaration_Text'Class with Storage_Size => 0; not overriding function To_Package_Body_Declaration_Text (Self : aliased in out Package_Body_Declaration) return Package_Body_Declaration_Text_Access is abstract; not overriding function Package_Token (Self : Package_Body_Declaration_Text) return not null Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Body_Token (Self : Package_Body_Declaration_Text) return not null Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function With_Token (Self : Package_Body_Declaration_Text) return Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Is_Token (Self : Package_Body_Declaration_Text) return not null Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Begin_Token (Self : Package_Body_Declaration_Text) return not null Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Exception_Token (Self : Package_Body_Declaration_Text) return Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function End_Token (Self : Package_Body_Declaration_Text) return not null Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Semicolon_Token (Self : Package_Body_Declaration_Text) return not null Program.Lexical_Elements.Lexical_Element_Access is abstract; end Program.Elements.Package_Body_Declarations;
Cubical/Algebra/Matrix/Elementaries.agda
howsiyu/cubical
0
13267
{- Technical results about elementary transformations -} {-# OPTIONS --safe #-} module Cubical.Algebra.Matrix.Elementaries where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Function open import Cubical.Data.Nat hiding (_+_ ; _·_) open import Cubical.Data.Nat.Order open import Cubical.Data.Empty as Empty open import Cubical.Data.Bool open import Cubical.Data.FinData renaming (znots to znotsFin ; snotz to snotzFin) open import Cubical.Relation.Nullary open import Cubical.Algebra.RingSolver.Reflection open import Cubical.Algebra.Ring.BigOps open import Cubical.Algebra.CommRing open import Cubical.Algebra.Matrix open import Cubical.Algebra.Matrix.CommRingCoefficient open import Cubical.Algebra.Matrix.RowTransformation private variable ℓ : Level A : Type ℓ m n k l : ℕ module ElemTransformation (𝓡 : CommRing ℓ) where private R = 𝓡 .fst open CommRingStr (𝓡 .snd) renaming ( is-set to isSetR ) open KroneckerDelta (CommRing→Ring 𝓡) open Sum (CommRing→Ring 𝓡) open Coefficient 𝓡 open LinearTransformation 𝓡 open SimRel open Sim open isLinear open isLinear2×2 -- Swapping the first row with another swapMat : Mat 2 2 swapMat zero zero = 0r swapMat zero one = 1r swapMat one zero = 1r swapMat one one = 0r uniSwapMat : swapMat ⋆ swapMat ≡ 𝟙 uniSwapMat t zero zero = (mul2 swapMat swapMat zero zero ∙ helper) t where helper : 0r · 0r + 1r · 1r ≡ 1r helper = solve 𝓡 uniSwapMat t zero one = (mul2 swapMat swapMat zero one ∙ helper) t where helper : 0r · 1r + 1r · 0r ≡ 0r helper = solve 𝓡 uniSwapMat t one zero = (mul2 swapMat swapMat one zero ∙ helper) t where helper : 1r · 0r + 0r · 1r ≡ 0r helper = solve 𝓡 uniSwapMat t one one = (mul2 swapMat swapMat one one ∙ helper) t where helper : 1r · 1r + 0r · 0r ≡ 1r helper = solve 𝓡 isInvSwapMat2 : isInv swapMat isInvSwapMat2 .fst = swapMat isInvSwapMat2 .snd .fst = uniSwapMat isInvSwapMat2 .snd .snd = uniSwapMat swapRow2 : Mat 2 n → Mat 2 n swapRow2 M zero = M one swapRow2 M one = M zero isLinear2×2SwapRow2 : isLinear2×2 {n = n} swapRow2 isLinear2×2SwapRow2 .transMat _ = swapMat isLinear2×2SwapRow2 .transEq M t zero j = ((mul2 swapMat M zero j) ∙ helper _ _) (~ t) where helper : (a b : R) → 0r · a + 1r · b ≡ b helper = solve 𝓡 isLinear2×2SwapRow2 .transEq M t one j = ((mul2 swapMat M one j) ∙ helper _ _) (~ t) where helper : (a b : R) → 1r · a + 0r · b ≡ a helper = solve 𝓡 swapRow : (i₀ : Fin m)(M : Mat (suc m) n) → Mat (suc m) n swapRow i M zero = M (suc i) swapRow zero M one = M zero swapRow zero M (suc (suc i)) = M (suc (suc i)) swapRow (suc i₀) M one = M one swapRow (suc i₀) M (suc (suc i)) = swapRow i₀ (takeRowsᶜ M) (suc i) swapRowMat : (i₀ : Fin m) → Mat (suc m) (suc m) swapRowMat = trans2RowsMat swapMat swapRowEq : (i₀ : Fin m)(M : Mat (suc m) n) → swapRow i₀ M ≡ swapRowMat i₀ ⋆ M swapRowEq {m = suc m} zero M t zero j = (helper1 _ _ ∙ (λ t → 0r · M zero j + ∑Mulr1 _ (λ i → M (suc i) j) zero (~ t)) ∙ (λ t → 0r · M zero j + ∑ (λ i → helper2 (δ i zero) (M (suc i) j) t))) t where helper1 : (a b : R) → b ≡ 0r · a + b helper1 = solve 𝓡 helper2 : (a b : R) → b · a ≡ (1r · a) · b helper2 = solve 𝓡 swapRowEq {m = suc m} zero M t one j = (helper _ ∙ (λ t → (1r · 1r) · M zero j + ∑Mul0r (λ i → M (suc i) j) (~ t))) t where helper : (a : R) → a ≡ (1r · 1r) · a + 0r helper = solve 𝓡 swapRowEq {m = suc m} zero M t (suc (suc i)) j = (helper _ _ ∙ (λ t → (1r · 0r) · M zero j + ∑Mul1r _ (λ l → M (suc l) j) (suc i) (~ t))) t where helper : (a b : R) → b ≡ (1r · 0r) · a + b helper = solve 𝓡 swapRowEq {m = suc m} (suc i₀) M t zero j = (helper1 _ _ ∙ (λ t → 0r · M zero j + ∑Mul1r _ (λ i → M (suc i) j) (suc i₀) (~ t)) ∙ (λ t → 0r · M zero j + ∑ (λ l → helper2 (δ (suc i₀) l) (M (suc l) j) t))) t where helper1 : (a b : R) → b ≡ 0r · a + b helper1 = solve 𝓡 helper2 : (a b : R) → a · b ≡ (1r · a) · b helper2 = solve 𝓡 swapRowEq {m = suc m} (suc i₀) M t one j = (helper _ _ --helper1 _ _ ∙ (λ t → (1r · 0r) · M zero j + ∑Mul1r _ (λ i → M (suc i) j) zero (~ t))) t where helper : (a b : R) → b ≡ (1r · 0r) · a + b helper = solve 𝓡 swapRowEq {m = suc m} (suc i₀) M t (suc (suc i)) j = ((λ t → swapRowEq i₀ (takeRowsᶜ M) t (suc i) j) ∙ helper _ (M one j) _) t where helper : (a b c : R) → a + c ≡ a + (0r · b + c) helper = solve 𝓡 isLinearSwapRow : (i : Fin m) → isLinear (swapRow {n = n} i) isLinearSwapRow i .transMat _ = swapRowMat i isLinearSwapRow i .transEq = swapRowEq i isInvSwapMat : (i : Fin m)(M : Mat (suc m) (suc n)) → isInv (isLinearSwapRow i .transMat M) isInvSwapMat i _ = isInvTrans2RowsMat _ i isInvSwapMat2 -- Similarity defined by swapping record SwapFirstRow (i : Fin m)(M : Mat (suc m) (suc n)) : Type ℓ where field sim : Sim M swapEq : (j : Fin (suc n)) → M (suc i) j ≡ sim .result zero j record SwapFirstCol (j : Fin n)(M : Mat (suc m) (suc n)) : Type ℓ where field sim : Sim M swapEq : (i : Fin (suc m)) → M i (suc j) ≡ sim .result i zero record SwapPivot (i : Fin (suc m))(j : Fin (suc n))(M : Mat (suc m) (suc n)) : Type ℓ where field sim : Sim M swapEq : M i j ≡ sim .result zero zero open SwapFirstRow open SwapFirstCol open SwapPivot swapFirstRow : (i : Fin m)(M : Mat (suc m) (suc n)) → SwapFirstRow i M swapFirstRow i M .sim .result = swapRow i M swapFirstRow i M .sim .simrel .transMatL = isLinearSwapRow i .transMat M swapFirstRow i M .sim .simrel .transMatR = 𝟙 swapFirstRow i M .sim .simrel .transEq = isLinearSwapRow i .transEq _ ∙ sym (⋆rUnit _) swapFirstRow i M .sim .simrel .isInvTransL = isInvSwapMat i M swapFirstRow i M .sim .simrel .isInvTransR = isInv𝟙 swapFirstRow i M .swapEq j = refl swapFirstCol : (j : Fin n)(M : Mat (suc m) (suc n)) → SwapFirstCol j M swapFirstCol j M .sim .result = (swapRow j (M ᵗ))ᵗ swapFirstCol j M .sim .simrel .transMatL = 𝟙 swapFirstCol j M .sim .simrel .transMatR = (isLinearSwapRow j .transMat (M ᵗ))ᵗ swapFirstCol j M .sim .simrel .transEq = let P = isLinearSwapRow j .transMat (M ᵗ) in (λ t → (isLinearSwapRow j .transEq (M ᵗ) t)ᵗ) ∙ compᵗ P (M ᵗ) ∙ (λ t → idemᵗ M t ⋆ P ᵗ) ∙ (λ t → ⋆lUnit M (~ t) ⋆ P ᵗ) swapFirstCol j M .sim .simrel .isInvTransL = isInv𝟙 swapFirstCol j M .sim .simrel .isInvTransR = isInvᵗ {M = isLinearSwapRow j .transMat (M ᵗ)} (isInvSwapMat j (M ᵗ)) swapFirstCol j M .swapEq i t = M i (suc j) swapPivot : (i : Fin (suc m))(j : Fin (suc n))(M : Mat (suc m) (suc n)) → SwapPivot i j M swapPivot zero zero M .sim = idSim M swapPivot zero zero M .swapEq = refl swapPivot (suc i) zero M .sim = swapFirstRow i M .sim swapPivot (suc i) zero M .swapEq = refl swapPivot zero (suc j) M .sim = swapFirstCol j M .sim swapPivot zero (suc j) M .swapEq = refl swapPivot (suc i) (suc j) M .sim = compSim (swapFirstRow i M .sim) (swapFirstCol j _ .sim) swapPivot (suc i) (suc j) M .swapEq = refl -- Add the first row to another addMat : Mat 2 2 addMat zero zero = 1r addMat zero one = 0r addMat one zero = 1r addMat one one = 1r subMat : Mat 2 2 subMat zero zero = 1r subMat zero one = 0r subMat one zero = - 1r subMat one one = 1r add⋆subMat : addMat ⋆ subMat ≡ 𝟙 add⋆subMat t zero zero = (mul2 addMat subMat zero zero ∙ helper) t where helper : 1r · 1r + 0r · - 1r ≡ 1r helper = solve 𝓡 add⋆subMat t zero one = (mul2 addMat subMat zero one ∙ helper) t where helper : 1r · 0r + 0r · 1r ≡ 0r helper = solve 𝓡 add⋆subMat t one zero = (mul2 addMat subMat one zero ∙ helper) t where helper : 1r · 1r + 1r · - 1r ≡ 0r helper = solve 𝓡 add⋆subMat t one one = (mul2 addMat subMat one one ∙ helper) t where helper : 1r · 0r + 1r · 1r ≡ 1r helper = solve 𝓡 sub⋆addMat : subMat ⋆ addMat ≡ 𝟙 sub⋆addMat t zero zero = (mul2 subMat addMat zero zero ∙ helper) t where helper : 1r · 1r + 0r · 1r ≡ 1r helper = solve 𝓡 sub⋆addMat t zero one = (mul2 subMat addMat zero one ∙ helper) t where helper : 1r · 0r + 0r · 1r ≡ 0r helper = solve 𝓡 sub⋆addMat t one zero = (mul2 subMat addMat one zero ∙ helper) t where helper : - 1r · 1r + 1r · 1r ≡ 0r helper = solve 𝓡 sub⋆addMat t one one = (mul2 subMat addMat one one ∙ helper) t where helper : - 1r · 0r + 1r · 1r ≡ 1r helper = solve 𝓡 isInvAddMat2 : isInv addMat isInvAddMat2 .fst = subMat isInvAddMat2 .snd .fst = add⋆subMat isInvAddMat2 .snd .snd = sub⋆addMat addRow2 : Mat 2 n → Mat 2 n addRow2 M zero = M zero addRow2 M one j = M zero j + M one j isLinear2AddRow2 : isLinear2×2 {n = n} addRow2 isLinear2AddRow2 .transMat _ = addMat isLinear2AddRow2 .transEq M t zero j = ((mul2 addMat M zero j) ∙ helper _ _) (~ t) where helper : (a b : R) → 1r · a + 0r · b ≡ a helper = solve 𝓡 isLinear2AddRow2 .transEq M t one j = ((mul2 addMat M one j) ∙ helper _ _) (~ t) where helper : (a b : R) → 1r · a + 1r · b ≡ a + b helper = solve 𝓡 -- Add the first row to all other rows addRows : Mat (suc m) n → Mat (suc m) n addRows M zero = M zero addRows M (suc i) j = M zero j + M (suc i) j private firstRowStayInvariant : (M : Mat (suc m) n) → M zero ≡ transRows addRow2 M zero firstRowStayInvariant = invRow₀ _ (λ _ → refl) addRowsEq : (M : Mat (suc m) n) → transRows addRow2 M ≡ addRows M addRowsEq M t zero = firstRowStayInvariant M (~ t) addRowsEq M t one j = M zero j + M one j addRowsEq M t (suc (suc i)) j = takeCombShufRows addRow2 (λ N → addRowsEq N t) M (suc (suc i)) j isLinearAddRows : isLinear (addRows {m = m} {n = suc n}) isLinearAddRows = let isLinear = isLinearTransRows _ isLinear2AddRow2 _ in record { transMat = isLinear .transMat ; transEq = (λ M → sym (addRowsEq M) ∙ isLinear .transEq M) } isInvAddRows : (M : Mat (suc m) (suc n)) → isInv (isLinearAddRows .transMat M) isInvAddRows = isInvTransRows _ _ (λ _ → isInvAddMat2) -- Similarity defined by adding rows record AddFirstRow (M : Mat (suc m) (suc n)) : Type ℓ where field sim : Sim M inv₀ : M zero ≡ sim .result zero addEq : (i : Fin m)(j : Fin (suc n)) → M zero j + M (suc i) j ≡ sim .result (suc i) j open AddFirstRow addFirstRow : (M : Mat (suc m) (suc n)) → AddFirstRow M addFirstRow M .sim .result = addRows M addFirstRow M .sim .simrel .transMatL = isLinearAddRows .transMat M addFirstRow M .sim .simrel .transMatR = 𝟙 addFirstRow M .sim .simrel .transEq = isLinearAddRows .transEq _ ∙ sym (⋆rUnit _) addFirstRow M .sim .simrel .isInvTransL = isInvAddRows M addFirstRow M .sim .simrel .isInvTransR = isInv𝟙 addFirstRow M .inv₀ = refl addFirstRow M .addEq i j = refl
bug-reports/array_len/src/main.adb
TUM-EI-RCS/StratoX
12
20368
<filename>bug-reports/array_len/src/main.adb with Constants; use constants; with Interfaces; use Interfaces; with Ada.Real_Time; use Ada.Real_Time; procedure main with SPARK_Mode is begin Do_Something; end main;
intcode/tests/aoc_test_suite.ads
jwarwick/aoc_2019_ada
0
22106
with AUnit.Test_Suites; use AUnit.Test_Suites; package AOC_Test_Suite is function Suite return Access_Test_Suite; end AOC_Test_Suite;
test/08-epsilons.g4
nsumner/antlr2cnf
3
1877
<filename>test/08-epsilons.g4 grammar test08; entry: a; a: b c d; b: '0'; c: d | e; d: '1'; e: '2' | ;
libsrc/_DEVELOPMENT/l/sccz80/5-z80/i64/l_i64_asl.asm
ahjelm/z88dk
640
101060
<filename>libsrc/_DEVELOPMENT/l/sccz80/5-z80/i64/l_i64_asl.asm SECTION code_l_sccz80 PUBLIC l_i64_asl PUBLIC l_i64_aslo EXTERN __i64_acc EXTERN l_lsl_dehldehl ; Entry: __i64_acc = shift count ; sp + 2 = value to shift l_i64_asl: ld a,(__i64_acc+0) l_i64_aslo: pop bc pop hl pop de exx pop hl pop de exx push bc call l_lsl_dehldehl ld (__i64_acc+0),hl ld (__i64_acc+2),de exx ld (__i64_acc+4),hl ld (__i64_acc+6),de ret
functions_16.asm
FoxForge/Intel86-16bitOS-Assembler-HexEdit
0
160361
; Various sub-routines that will be useful to the boot loader code ; Output Carriage-Return/Line-Feed (CRLF) sequence to screen using BIOS Console_Write_ASCII: mov ah, 0Eh mov al, byte [si] ; take the byte from the location of the pointer cmp al, 32 ; compare the ascii value so it's not junk jbe Console_Write_Underscore ; write an underscore if junk int 10h ret Console_Write_Underscore: mov ah, 0Eh mov al, 5Fh ; Output underscore int 10h ret Console_Write_Space: mov ah, 0Eh mov al, 20h ; Output space int 10h ret Console_Write_CRLF: mov ah, 0Eh ; Output CR mov al, 0Dh int 10h mov al, 0Ah ; Output LF int 10h ret ; Write to the console using BIOS. ; ; Input: SI points to a null-terminated string Console_Write_16: mov ah, 0Eh ; BIOS call to output value in AL to screen Console_Write_16_Repeat: lodsb ; Load byte at SI into AL and increment SI test al, al ; If the byte is 0, we are done je Console_Write_16_Done int 10h ; Output character to screen jmp Console_Write_16_Repeat Console_Write_16_Done: ret ; Write string to the console using BIOS followed by CRLF ; ; Input: SI points to a null-terminated string Console_WriteLine_16: call Console_Write_16 call Console_Write_CRLF ret ;move 8 bit value to bx before calling Console_Write_Hex_8: mov cx, 2 ; create loop for two outputs rol bx, 8 ; rotate the 2 bytes so they are read the correct way call Hex_Loop ; call the hex loop to output to screen ret ;move 16 bit value to bx before calling Console_Write_Hex_16: mov cx, 4 ; create loop for four outputs Hex_Loop: rol bx, 4 ; each 4 bits is a hex value mov si, bx and si, 000Fh mov al, byte [si + HexChars] ; use si as an index for looking up the chars mov ah, 0Eh ; output to screen int 10h ; shift the mask loop Hex_Loop ret Console_Write_Int: mov si, IntBuffer + 4 mov ax, bx GetDigit: xor dx, dx mov cx, 10 div cx add dl, 48 mov [si], dl ; dl to point to position of si dec si ; move si back to point back down the number cmp ax, 0 jne GetDigit inc si ; increment si to point back to the beginning call Console_Write_16 ret IntBuffer db ' ', 0 HexChars db '0123456789ABCDEF'
brokenthorn os dev test 2 os-phil/dng.pgm/osdev/osdev8-stage2.asm
kwccoin/bare_metal
0
175478
; osdev8-stage2.asm ; osdev5 cannot work as you cannot just put a code to anywhere you like ... I guess ; mount this and copy like normal file need ; sudo mkdir -p /media/osdev8 ; sudo mount -o loop /home/chichunng/Desktop/hgfs/2016-05-20c-mac.osdev/dng.pgm/osdev/osdev8.flp /media/osev6/ ; ?sudo? cp osdev8-steage2.bin /media/floppy6/STAGE2.SYS ; sudo umount /media/floppy6 ; Note: Here, we are executed like a normal ; COM program, but we are still in Ring 0. ; We will use this loader to set up 32 bit ; mode and basic exception handling ; This loaded program will be our 32 bit Kernel. ; We do not have the limitation of 512 bytes here, ; so we can add anything we want here! ; above old stage2 ; below new stage2 bits 16 ; Remember the memory map-- 0x500 through 0x7bff is unused above the BIOS data area. ; We are loaded at 0x500 (0x50:0) org 0x500 jmp main ; go to start ;******************************************************* ; Preprocessor directives ;******************************************************* %include "osdev8-stdio.inc" ; basic i/o routines %include "osdev8-Gdt.inc" ; Gdt routines ;******************************************************* ; Data Section ;******************************************************* LoadingMsg db "Preparing to load operating system...", 0x0D, 0x0A, 0x00 ;******************************************************* ; STAGE 2 ENTRY POINT ; ; -Store BIOS information ; -Load Kernel ; -Install GDT; go into protected mode (pmode) ; -Jump to Stage 3 ;******************************************************* main: ;-------------------------------; ; Setup segments and stack ; ;-------------------------------; xchg bx,bx cli ; clear interrupts xor ax, ax ; null segments mov ds, ax mov es, ax mov ax, 0x9000 ; stack begins at 0x9000-0xffff mov ss, ax mov sp, 0xFFFF sti ; enable interrupts ;-------------------------------; ; Print loading message ; ;-------------------------------; mov si, LoadingMsg call Puts16 ;-------------------------------; ; Install our GDT ; ;-------------------------------; call InstallGDT ; install our GDT ;-------------------------------; ; Go into pmode ; ;-------------------------------; cli ; clear interrupts mov eax, cr0 ; set bit 0 in cr0--enter pmode or eax, 1 mov cr0, eax xchg bx,bx xchg bx,bx xchg bx,bx xchg bx,bx jmp 08h:Stage3 ; far jump to fix CS. Remember that the code selector is 0x8! ; Note: Do NOT re-enable interrupts! Doing so will triple fault! ; We will fix this in Stage 3. ;****************************************************** ; ENTRY POINT FOR STAGE 3 ;****************************************************** bits 32 ; Welcome to the 32 bit world! Stage3: ;-------------------------------; ; Set registers ; ;-------------------------------; xchg bx,bx mov ax, 0x10 ; set data segments to data selector (0x10) mov ds, ax mov ss, ax mov es, ax mov esp, 90000h ; stack begins from 90000h ;******************************************************* ; Stop execution ;******************************************************* STOP: xchg bx,bx xchg bx,bx xchg bx,bx xchg bx,bx xchg bx,bx xchg bx,bx cli hlt
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_1693.asm
ljhsiun2/medusa
9
247023
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r8 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0xa498, %rsi lea addresses_A_ht+0x12dd8, %rdi nop nop nop nop nop cmp %r13, %r13 mov $116, %rcx rep movsl nop nop nop nop nop and $64228, %rbp lea addresses_WC_ht+0xeb98, %rbp nop nop nop nop nop add $32498, %r8 movb (%rbp), %al nop nop nop inc %r13 lea addresses_normal_ht+0x5498, %rsi lea addresses_A_ht+0x169d8, %rdi nop nop nop nop and %rdx, %rdx mov $64, %rcx rep movsq nop nop nop xor %r8, %r8 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r13 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %r8 push %rax push %rcx push %rsi // Load mov $0xc8, %r8 nop nop nop inc %rcx mov (%r8), %si nop nop nop nop nop add %rcx, %rcx // Store lea addresses_D+0x19318, %rax nop sub %r11, %r11 movw $0x5152, (%rax) nop nop add $38426, %r12 // Faulty Load mov $0x7dc51a0000000dd8, %rsi nop nop nop add $21255, %rcx movb (%rsi), %r12b lea oracles, %r8 and $0xff, %r12 shlq $12, %r12 mov (%r8,%r12,1), %r12 pop %rsi pop %rcx pop %rax pop %r8 pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 6}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_NC', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 6}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 10}} {'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 */
test/interaction/Issue2574.agda
cruhland/agda
1,989
5245
<filename>test/interaction/Issue2574.agda -- Andreas, 2017-05-17, issue #2574 reported by <NAME> open import Issue2574Import -- The imported module should be clickable. open import Issue2574ImportBlank -- The imported module should be clickable.
oeis/083/A083320.asm
neoneye/loda-programs
11
160883
; A083320: a(n) = 5^n + 4^n - 3^n. ; Submitted by <NAME> ; 1,6,32,162,800,3906,18992,92322,449600,2195586,10755152,52845282,260386400,1286217666,6367168112,31576971042,156839811200,779990182146,3883029321872,19347201973602,96463456484000,481224744361026 mov $3,$0 seq $0,5058 ; a(n) = 5^n - 3^n. add $0,1 mov $2,4 pow $2,$3 add $0,$2 sub $0,1
1A/S5/PIM/projet/src/test_registre.adb
MOUDDENEHamza/ENSEEIHT
4
13162
<reponame>MOUDDENEHamza/ENSEEIHT<gh_stars>1-10 with Ada.Text_IO; use Ada.Text_IO; with registre; use registre; with Ada.Characters.Latin_1; use Ada.Characters.Latin_1; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; procedure test_registre is -- Création d'un registre avec un Id et ses données. procedure Initialiser_Le_Test (Registre : out T_Registre) is Donnee : T_Donnee; Date_N : T_Date; Date_D : T_Date; begin -- Initialisation du registre. Initialiser_R(Registre); -- Inscription d'une donnée. Date_N := Initialiser_Date(18,09,1999); Date_D := Initialiser_Date(0,0,0); Donnee := Initialiser_Donnee (To_Unbounded_String("Max"),To_Unbounded_String("Lili"),Date_N,To_Unbounded_String("Paris"),Date_D,To_Unbounded_String("Vivant"),'F',To_Unbounded_String("<EMAIL>"),0678953421); Inserer_R(Registre, 3, Donnee); end Initialiser_Le_Test; -- Création d'un registre avec un Id et ses données. procedure Initialiser_Le_Test_Avec_3_Elts (Registre : in out T_Registre) is Donnee1 : T_Donnee; Donnee2 : T_Donnee; Donnee3 : T_Donnee; Date_N1, Date_D1, Date_N2, Date_D2, Date_N3, Date_D3 : T_Date; begin -- Initialisation du registre. Initialiser_R(Registre); -- Inscription de Donnee1. Date_N1 := Initialiser_Date(18,09,1999); Date_D1 := Initialiser_Date(0,0,0); Donnee1 := Initialiser_Donnee (To_Unbounded_String("Max"),To_Unbounded_String("Lili"),Date_N1,To_Unbounded_String("Paris"),Date_D1,To_Unbounded_String("Vivant"),'F',To_Unbounded_String("<EMAIL>"),0678953421); -- Insertion de l'Id 3, avec Donnee1, dans Registre. Inserer_R(Registre, 3, Donnee1); -- Inscription de Donnee2. Date_N2 := Initialiser_Date(21,12,1925); Date_D2 := Initialiser_Date(01,09,2001); Donnee2 := Initialiser_Donnee (To_Unbounded_String("Dupont"),To_Unbounded_String("Baptiste"),Date_N2,To_Unbounded_String("Toulouse"),Date_D2,To_Unbounded_String("Toulouse"),'H',To_Unbounded_String("<EMAIL>"),0656673421); -- Insertion de l'Id 8, avec Donnee2, dans Registre. Inserer_R(Registre, 8, Donnee2); -- Inscription de Donnee3. Date_D3 := Initialiser_Date(02,05,2019); Date_N3 := Initialiser_Date(11,02,1998); Donnee3 := Initialiser_Donnee (To_Unbounded_String("Halwani"),To_Unbounded_String("Jad"),Date_N3,To_Unbounded_String("Lille"), Date_D3,To_Unbounded_String("Toulouse"),'H',To_Unbounded_String("<EMAIL>"),0656693421); -- Insertion de l'Id 20, avec Donnee3, dans Registre. Inserer_R(Registre, 20, Donnee3); end Initialiser_Le_Test_Avec_3_Elts; -- Tester les procédures Initialiser_R et Est_Vide_R procedure Tester_Initialiser_R_Et_Est_Vide_R is Registre : T_Registre; begin -- Initialisation du registre. Initialiser_R(Registre); pragma Assert (Est_Vide_R(Registre)); -- Libération de la mémoire. Vider_R(Registre); New_Line; Put_Line (ESC & "[32m" & "RÉUSSI : " & ESC & "[0m" & "Procedure Tester_Initialiser_R_Et_Est_Vide_R est "); Put_Line (" testée avec succès."); New_Line; end Tester_Initialiser_R_Et_Est_Vide_R; -- Tester la procédure Taille_R procedure Tester_Taille_R is Registre : T_Registre; begin -- Création d'un registre avec un 3 Id et leurs données. Initialiser_Le_Test_Avec_3_Elts(Registre); pragma Assert(Taille_R(Registre)=3); pragma Assert(not(Taille_R(Registre)=5)); -- Suppression de l'Id 3 et de ses données du registre. Supprimer_R(Registre,3); pragma Assert(Taille_R(Registre)=2); pragma Assert(not(Taille_R(Registre)=8)); -- Suppression de l'Id 8 et de ses données du registre. Supprimer_R(Registre,8); pragma Assert(Taille_R(Registre)=1); pragma Assert(not(Taille_R(Registre)=2)); -- Libération de la mémoire. Vider_R(Registre); New_Line; Put_Line (ESC & "[32m" & "RÉUSSI : " & ESC & "[0m" & "Procedure Tester_Taille_R est testée avec succès."); New_Line; end Tester_Taille_R; -- Tester la procédure Inserer_R procedure Tester_Inserer_R is Registre : T_Registre; Donnee : T_Donnee; Date_D, Date_N : T_Date; begin -- Création d'un registre avec un Id et ses données. Initialiser_Le_Test(Registre); -- Inscription d'une donnée. Date_N := Initialiser_Date(21,12,1925); Date_D := Initialiser_Date(01,09,2001); Donnee := Initialiser_Donnee (To_Unbounded_String("Dupont"),To_Unbounded_String("Baptiste"),Date_N,To_Unbounded_String("Toulouse"),Date_D,To_Unbounded_String("Toulouse"),'H',To_Unbounded_String("<EMAIL>"),0656673421); -- Insertion de l'Id 8 avec ses données dans le registre. Inserer_R(Registre, 8, Donnee); pragma Assert(La_Donnee_R(Registre,8)=Donnee); -- Libération de la mémoire. Vider_R(Registre); New_Line; Put_Line (ESC & "[32m" & "RÉUSSI : " & ESC & "[0m" & "Procedure Tester_Inserer_R est testée avec succès."); New_Line; end Tester_Inserer_R; -- Tester la procédure Modifier_R procedure Tester_Modifier_R is Registre : T_Registre; Donnee : T_Donnee; -- la donnée avec laquelle on en modifie une autre. Date_D, Date_N : T_Date; begin -- Création d'un registre avec un Id et ses données. Initialiser_Le_Test(Registre); -- Inscription d'une donnée. Date_N := Initialiser_Date(21,12,1925); Date_D := Initialiser_Date(01,09,2001); Donnee := Initialiser_Donnee (To_Unbounded_String("Dupont"),To_Unbounded_String("Baptiste"),Date_N,To_Unbounded_String("Toulouse"),Date_D,To_Unbounded_String("Toulouse"),'H',To_Unbounded_String("<EMAIL>"),0656673421); -- Modification des données de l'Id présent avec Donnee. Modifier_R(Registre, 3, Donnee); pragma Assert(La_Donnee_R(Registre, 3) = Donnee); New_Line; Put_Line (ESC & "[32m" & "RÉUSSI : " & ESC & "[0m" & "Procedure Tester_Modifier_R est testée avec succès."); New_Line; end Tester_Modifier_R; -- Tester la procédure Supprimer_R procedure Tester_Supprimer_R is Registre : T_Registre; begin -- Création d'un registre avec un 3 Id et leurs données. Initialiser_Le_Test_Avec_3_Elts(Registre); pragma Assert (Taille_R (Registre) = 3); -- Suppression de l'Id 3 et de ses données du registre. Supprimer_R(Registre, 3); pragma Assert (Taille_R (Registre) = 2); -- Suppression de l'Id 8 et de ses données du registre. Supprimer_R(Registre, 8); pragma Assert (Taille_R (Registre) = 1); -- Suppression de l'Id 20 et de ses données du registre. Supprimer_R(Registre, 20); pragma Assert (Taille_R (Registre) = 0); pragma Assert (Est_Vide_R (Registre)); New_Line; Put_Line (ESC & "[32m" & "RÉUSSI : " & ESC & "[0m" & "Procedure Tester_Supprimer_R est testée avec succès."); New_Line; end Tester_Supprimer_R; -- Tester la procédure La_Donnee_R procedure Tester_La_Donnee_R is Registre : T_Registre; Donnee1 : T_Donnee; Donnee2 : T_Donnee; Donnee3 : T_Donnee; Date_N1, Date_D1, Date_N2, Date_D2, Date_N3, Date_D3 : T_Date; begin -- Création d'un registre avec un 3 Id et leurs données. Initialiser_Le_Test_Avec_3_Elts(Registre); Date_N1 := Initialiser_Date(18,09,1999); Date_D1 := Initialiser_Date(0,0,0); Date_N2 := Initialiser_Date(21,12,1925); Date_D2 := Initialiser_Date(01,09,2001); Date_D3 := Initialiser_Date(02,05,2019); Date_N3 := Initialiser_Date(11,02,1998); Donnee1 := Initialiser_Donnee (To_Unbounded_String("Max"),To_Unbounded_String("Lili"),Date_N1,To_Unbounded_String("Paris"),Date_D1,To_Unbounded_String("Vivant"),'F',To_Unbounded_String("<EMAIL>"),0678953421); Donnee2 := Initialiser_Donnee (To_Unbounded_String("Dupont"),To_Unbounded_String("Baptiste"),Date_N2,To_Unbounded_String("Toulouse"),Date_D2,To_Unbounded_String("Toulouse"),'H',To_Unbounded_String("<EMAIL>"),0656673421); Donnee3 := Initialiser_Donnee (To_Unbounded_String("Halwani"),To_Unbounded_String("Jad"),Date_N3,To_Unbounded_String("Lille"), Date_D3,To_Unbounded_String("Toulouse"),'H',To_Unbounded_String("<EMAIL>"),0656693421); pragma Assert(La_Donnee_R(Registre,3) = Donnee1); pragma Assert(La_Donnee_R(Registre,8) = Donnee2); pragma Assert(La_Donnee_R(Registre,20) = Donnee3); New_Line; Put_Line (ESC & "[32m" & "RÉUSSI : " & ESC & "[0m" & "Procedure Tester_La_Donnee_R est testée avec succès."); New_Line; end Tester_La_Donnee_R; -- Tester la fonction Vider_R procedure Tester_Vider_R is Registre : T_Registre; begin -- Création d'un registre avec un Id et ses données. Initialiser_Le_Test(Registre); Vider_R(Registre); pragma Assert(Taille_R(Registre)=0); New_Line; Put_Line (ESC & "[32m" & "RÉUSSI : " & ESC & "[0m" & "Procedure Tester_Vider_R est testée avec succès."); New_Line; end Tester_Vider_R; -- Tester la fonction Ecart_Age_Parent_Enfant_R procedure Tester_Ecart_Age_Parent_Enfant_R is Registre : T_Registre; Id : constant Integer := 3; -- Identifiant de l'enfant Parent_1 : T_Tab; -- l'enfant a un parent begin -- Création d'un registre avec un Id et ses données. Initialiser_Le_Test_Avec_3_Elts(Registre); -- L'individu d'identifiant 3 a un parent d'identifiant 8. Parent_1.Taille := 1; Parent_1.Elt(1) := 8; pragma Assert(Ecart_Age_Parent_Enfant_R(Registre,Id, Parent_1)); New_Line; Put_Line (ESC & "[32m" & "RÉUSSI : " & ESC & "[0m" & "Procedure Tester_Ecart_Age_Parent_EnfantSupprimer_R "); Put_Line(" est testée avec succès."); New_Line; end Tester_Ecart_Age_Parent_Enfant_R; -- Tester la fonction Age procedure Tester_Age is Registre : T_Registre; Age_Individu1, Age_Individu2, Age_Individu3 : Integer; begin Initialiser_Le_Test_Avec_3_Elts(Registre); Age_Individu1 := Age(Registre,3); Age_Individu2 := Age(Registre,8); Age_Individu3 := Age(Registre,20); pragma Assert(Age_Individu1 = 20); pragma Assert(Age_Individu2 = 75); pragma Assert(Age_Individu3 = 21); New_Line; Put_Line (ESC & "[32m" & "RÉUSSI : " & ESC & "[0m" & "Procedure Tester_Age est testée avec succès."); New_Line; end Tester_Age; begin New_Line; Put_Line("*************************** Début ****************************"); New_Line; Tester_Initialiser_R_Et_Est_Vide_R; Tester_Taille_R; Tester_Inserer_R; Tester_Modifier_R; Tester_Supprimer_R; Tester_La_Donnee_R; Tester_Vider_R; Tester_Age; Tester_Ecart_Age_Parent_Enfant_R; New_Line; Put_Line("***************************** Fin ****************************"); New_Line; end test_registre;
player.asm
rzo42/MIDI-KEYS
0
169819
; ======================================== ; Project : MIDI KEYS ; Target : Commodore VIC 20 ; Comments : note calculator and player routines ; Author : <NAME> ; ======================================== ;CLACULATE NOTE (a contains base note) player$ clc adc tran_reg$ ;add transpose value sta cur_note$ ;store as current note ldx oct_reg$ ;load x with octave register lda oct_inc$,x ;load a with octave value clc adc cur_note$ ;add octave value to current note value sta cur_note$ ;store as current note value arp_con$ ldx arp_count$ ;load x w/ arp counter lda arp_string$,x ;load a with arp increment clc adc cur_note$ ;add to current note sta cur_note$ ;store as current note ;ARP TIMER AND COUNTER jsr _rdtim$ ;check jiffy clock cmp arp_time$ ;compare to arp speed bcc play_note$ ;if <= then jump to retrigger beq play_note$ lda #0 ;else... tax tay ;..if >= jsr _setim$ ;reset jiffy clock lda arp_reg$ ;load a with arp length cmp arp_count$ ;compare to arp counter bne a_count$ ; if != jump to a_count$ lda #0 ; else if = sta arp_count$ ; reset arp counter jmp play_note$ ;jump to retrigger a_count$ inc arp_count$ ;increment arp counter ;PLAY NOTE play_note$ lda cur_note$ ;if current note cmp off_reg$ ;=off_reg$ beq on_pass$ ;bypass routine to continue the current note. pha ;store current note in the stack retrigger$ lda ret_reg$ ;if retrigger is on bne ret_on$ ;branch to ret_on$ pla ;pull current note from the stack jmp trigger$ ;else jump to note trigger ret_on$ pla pha jsr trig_off$ ;jump to subroutine @ trig_off$ pla sta prv_note$ ;set current note to previous note trigger$ tax ldy vel_reg$ ; load y with velocity jsr NOTEON ;play note lda ret_reg$ ;if retrigger is on bne on_pass$ ;jump to end of routine ret_off$ lda cur_note$ ;load current note pha ;save to stack jsr trig_off$ ;jump to subroutine @ trig_off$ pla ;pull current note from the stack sta prv_note$ ;store as previous note on_pass$ jmp loop_0$ ;return to control routine ;===============================================================================
src/LibraBFT/Impl/Consensus/TestUtils/MockStorage.agda
LaudateCorpus1/bft-consensus-agda
0
12388
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9. Copyright (c) 2021, Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl -} open import LibraBFT.Base.Types import LibraBFT.Impl.Consensus.RecoveryData as RecoveryData import LibraBFT.Impl.Consensus.TestUtils.MockSharedStorage as MockSharedStorage open import LibraBFT.Impl.OBM.Logging.Logging import LibraBFT.Impl.Storage.DiemDB.LedgerStore.LedgerStore as LedgerStore import LibraBFT.Impl.Types.LedgerInfo as LedgerInfo open import LibraBFT.ImplShared.Consensus.Types open import LibraBFT.ImplShared.Util.Dijkstra.All open import Optics.All import Util.KVMap as Map open import Util.Prelude ------------------------------------------------------------------------------ open import Data.String using (String) module LibraBFT.Impl.Consensus.TestUtils.MockStorage where ------------------------------------------------------------------------------ postulate -- TODO-2: sortOn sortOn : (Block → Round) → List Block → List Block ------------------------------------------------------------------------------ start : MockStorage → Either ErrLog RecoveryData ------------------------------------------------------------------------------ newWithLedgerInfo : MockSharedStorage → LedgerInfo → Either ErrLog MockStorage newWithLedgerInfo sharedStorage ledgerInfo = do li ← if ledgerInfo ^∙ liEndsEpoch then pure ledgerInfo else LedgerInfo.mockGenesis (just (sharedStorage ^∙ mssValidatorSet)) let lis = LedgerInfoWithSignatures∙new li Map.empty pure $ MockStorage∙new (sharedStorage & mssLis %~ Map.insert (lis ^∙ liwsLedgerInfo ∙ liVersion) lis) li (DiemDB∙new LedgerStore.new) getLedgerRecoveryData : MockStorage → LedgerRecoveryData getLedgerRecoveryData self = LedgerRecoveryData∙new (self ^∙ msStorageLedger) tryStart : MockStorage → Either ErrLog RecoveryData tryStart self = withErrCtx' (here' []) $ RecoveryData.new (self ^∙ msSharedStorage ∙ mssLastVote) (getLedgerRecoveryData self) (sortOn (_^∙ bRound) (Map.elems (self ^∙ msSharedStorage ∙ mssBlock))) RootMetadata∙new (Map.elems (self ^∙ msSharedStorage ∙ mssQc)) (self ^∙ msSharedStorage ∙ mssHighestTimeoutCertificate) where here' : List String → List String here' t = "MockStorage" ∷ "tryStart" ∷ t startForTesting : ValidatorSet → Maybe LedgerInfoWithSignatures → Either ErrLog (RecoveryData × PersistentLivenessStorage) startForTesting validatorSet obmMLIWS = do (sharedStorage , genesisLi) ← case obmMLIWS of λ where nothing → do g ← LedgerInfo.mockGenesis (just validatorSet) pure (MockSharedStorage.new validatorSet , g) (just liws) → pure (MockSharedStorage.newObmWithLIWS validatorSet liws , liws ^∙ liwsLedgerInfo) storage ← newWithLedgerInfo sharedStorage genesisLi ss ← withErrCtx' (here' []) (start storage) pure (ss , storage) where here' : List String → List String here' t = "MockStorage" ∷ "startForTesting" ∷ t abstract startForTesting-ed-abs : ValidatorSet → Maybe LedgerInfoWithSignatures → EitherD ErrLog (RecoveryData × PersistentLivenessStorage) startForTesting-ed-abs vs mliws = fromEither $ startForTesting vs mliws ------------------------------------------------------------------------------ saveTreeE : List Block → List QuorumCert → MockStorage → Either ErrLog MockStorage saveTreeM : List Block → List QuorumCert → MockStorage → LBFT (Either ErrLog MockStorage) saveTreeM bs qcs db = do logInfo fakeInfo -- [ "MockStorage", "saveTreeM", show (length bs), show (length qcs) ] pure (saveTreeE bs qcs db) saveTreeE bs qcs db = pure (db & msSharedStorage ∙ mssBlock %~ insertBs & msSharedStorage ∙ mssQc %~ insertQCs) where insertBs : Map.KVMap HashValue Block → Map.KVMap HashValue Block insertBs m = foldl' (λ acc b → Map.insert (b ^∙ bId) b acc) m bs insertQCs : Map.KVMap HashValue QuorumCert → Map.KVMap HashValue QuorumCert insertQCs m = foldl' (λ acc qc → Map.insert (qc ^∙ qcCertifiedBlock ∙ biId) qc acc) m qcs pruneTreeM : List HashValue → MockStorage → LBFT (Either ErrLog MockStorage) pruneTreeM ids db = do logInfo fakeInfo -- ["MockStorage", "pruneTreeM", show (fmap lsHV ids)] ok (db & msSharedStorage ∙ mssBlock %~ deleteBs & msSharedStorage ∙ mssQc %~ deleteQCs) -- TODO : verifyConsistency where deleteBs : Map.KVMap HashValue Block → Map.KVMap HashValue Block deleteBs m = foldl' (flip Map.delete) m ids deleteQCs : Map.KVMap HashValue QuorumCert → Map.KVMap HashValue QuorumCert deleteQCs m = foldl' (flip Map.delete) m ids saveStateM : Vote → MockStorage → LBFT (Either ErrLog MockStorage) saveStateM v db = do logInfo fakeInfo -- ["MockStorage", "saveStateM", lsV v] ok (db & msSharedStorage ∙ mssLastVote ?~ v) start = tryStart saveHighestTimeoutCertificateM : TimeoutCertificate → MockStorage → LBFT (Either ErrLog MockStorage) saveHighestTimeoutCertificateM tc db = do logInfo fakeInfo -- ["MockStorage", "saveHighestTimeoutCertificateM", lsTC tc] ok (db & msSharedStorage ∙ mssHighestTimeoutCertificate ?~ tc) retrieveEpochChangeProofED : Version → MockStorage → EitherD ErrLog EpochChangeProof retrieveEpochChangeProofED v db = case Map.lookup v (db ^∙ msSharedStorage ∙ mssLis) of λ where nothing → LeftD fakeErr -- ["MockStorage", "retrieveEpochChangeProofE", "not found", show v]) (just lis) → pure (EpochChangeProof∙new (lis ∷ []) false) abstract retrieveEpochChangeProofED-abs = retrieveEpochChangeProofED retrieveEpochChangeProofED-abs-≡ : retrieveEpochChangeProofED-abs ≡ retrieveEpochChangeProofED retrieveEpochChangeProofED-abs-≡ = refl
programs/oeis/086/A086161.asm
karttu/loda
1
80566
; A086161: Number of monomial ideals in two variables x, y that are Artinian, integrally closed, of colength n and contain x^2. ; 1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,8,8,8,9,9,9,10,10,10,11,11,11,12,12,12,13,13,13,14,14,14,15,15,15,16,16,16,17,17,17,18,18,18,19,19,19,20,20,20,21,21 mov $1,4 add $1,$0 div $1,3
maps/ViridianForestNorthGate.asm
Ebernacher90/pokecrystal-allworld
0
82806
object_const_def ; object_event constants ViridianForestNorthGate_MapScripts: db 0 ; scene scripts db 0 ; callbacks ViridianForestNorthGate_MapEvents: db 0, 0 ; filler db 3 ; warp events warp_event 5, 0, ROUTE_2, 7 warp_event 4, 7, VIRIDIAN_FOREST, 2 warp_event 5, 7, VIRIDIAN_FOREST, 2 db 0 ; coord events db 0 ; bg events db 0 ; object events
cmd/doskey/display.asm
minblock/msdos
0
178834
<gh_stars>0 page ,132 ;****************************************************************************** TITLE DISPLAY.ASM - Screen Display for DOSKEY ;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ ;****************************************************************************** ; ; (C) Copyright MICROSOFT Corp., 1989 ; ; include gendef.inc include dbcs.sw video_int equ 10h ; ;****************************************************************************** ; I N S T A N C E D A T A ; (This data is all collectively defined in Win386.Asm in the instance block) ;****************************************************************************** ; Purely Local extrn num_cols:word extrn active_page:byte extrn cur_col:byte extrn over_cursor:word extrn mark_row:byte extrn mark_col:byte extrn rows_advanced:byte extrn macro_base:word extrn macro_last:word extrn macro_end:word extrn buf_base:word extrn buf_end:word extrn buf_front:word extrn buf_back:word extrn buf_current:word extrn text_ptr:word extrn macro_ptr:word extrn end_dsp:word extrn more_prompt:byte extrn rows:word extrn getkey:near ifdef DBCS extrn IsDBCSLeadByte:near endif text segment byte public 'CODE' assume cs:text, ds:nothing, es:nothing, ss:nothing public number_of_display_columns public get_video_mode public get_cursor_pos public set_cursor_type public set_cursor_pos public number_of_display_columns public backspace public display_char public beep public dumphist if debug_version public dumpdebug endif public dstring public newline public word10 ;****************************************************************************** ; ; get_video_mode ; ; description: Use BIOS Int16 function 0fh to setup ; num_cols and active_page ; and function 03h to setup over_cursor ; ;============================================================================== get_video_mode proc near assume ds:text,es:nothing mov ah,0fh ; get video mode int video_int mov al,ah xor ah,ah mov [num_cols],ax mov [active_page],bh mov ah,3 int video_int mov [over_cursor],cx ; save "overstrike" cursor mov [cur_col],dl ; save the actual column ret get_video_mode endp ;****************************************************************************** ; ; get_cursor_pos Gets the current cursor position and stores it into ; cur_col, mark_col & mark_row. Also sets rows_advanced ; to zero. ; ;============================================================================== get_cursor_pos proc near assume ds:text,es:nothing mov ah,3 ; get cursor position mov bh,[active_page] int video_int mov [cur_col], dl mov [mark_row],dh mov [mark_col],dl mov [rows_advanced],0 ; number of rows advanced ret get_cursor_pos endp ;****************************************************************************** ; ; set_cursor_pos Sets the cursor position to the marked position ; Note: if (rows_advanced != 0) then set mark_row = ; (get_cursor_pos_row) - rows_advanced ; ;============================================================================== set_cursor_pos proc near assume ds:text,es:nothing cmp [rows_advanced],0 je rcp_1 mov ah,3 ; get cursor position mov bh,[active_page] int video_int sub dh,[rows_advanced] ; find the original mov [mark_row],dh rcp_1: mov ah,2 ; set cursor position mov bh,[active_page] mov dh,[mark_row] mov dl,[mark_col] mov [cur_col],dl int video_int ret set_cursor_pos endp ;****************************************************************************** ; ; set_cursor_type Sets cursor type via ROM BIOS to type in CX ; ;============================================================================== set_cursor_type proc near assume ds:text,es:nothing mov ah,1 ; set cursor type int video_int ret set_cursor_type endp ;****************************************************************************** ; ; number_of_display_columns ; ; description: Returns the number of character positions required ; to display the character in al. Note: if al=tab, we'll ; use cur_col in our calculations. ; ; entry: al contains character ; exit: cx number of chars corresponding to display ; al still contains the character ; ;============================================================================== number_of_display_columns proc near assume ds:text,es:nothing cmp al,TAB ; is it a tab character? je nodc_tab ; brif so mov cx,1 ; assume it is just 1 char cmp al,' ' ; is it a control character? jae nodc_ret cmp al,CTRL_T ; these are just je nodc_ret cmp al,CTRL_U ; 1 character. je nodc_ret inc cl ; two characters then nodc_ret: ret nodc_tab: mov cx,708h ; ch=mask, cl=8 and ch,[cur_col] sub cl,ch xor ch,ch ret number_of_display_columns endp ;****************************************************************************** ; ; backspace backspace cursor over character ; entry: cx number of characters to backspace ; uses: mark_row, mark_col ; ;============================================================================== backspace proc near assume ds:text,es:nothing push cx call get_cursor_pos ; get current position. pop cx mov al,[mark_col] ; ax = current column xor ah,ah sub ax,cx ; back up column by count jnb bs_2 ; brif no wrap to previous line(s) bs_1: dec [mark_row] add ax,[num_cols] jnc bs_1 ; loop until we go positive again bs_2: mov [mark_col],al call set_cursor_pos ; and position the cursor there ret backspace endp ;****************************************************************************** ; ; display_char Processes character and displays on screen ; entry: al char to display ; exit: ax = number of display positions ; Preserves: si, di, bx, cx ; ;============================================================================== display_char proc near assume ds:text,es:nothing push si push cx call number_of_display_columns push cx cmp al,TAB je dc_tab cmp al,' ' ; is it a ^ control char display? jae dc_3 ; jump if not cmp al,cr je dc_3 cmp al,LF je dc_3 cmp al,CTRL_T ; control t is not processed je dc_3 cmp al,CTRL_U ; control u is also not processed. je dc_3 ; ctrl character display mov cl,al mov al,'^' call display mov al,cl add al,40h ; make control character displayable ; normal character display dc_3: call display dc_4: pop ax ; number of columns into ax pop cx ; restore cx pop si ; restore si ret dc_tab: mov al,' ' dc_tab_1: call display loop dc_tab_1 jmp short dc_4 display_char endp ;****************************************************************************** ; ; beep sound a beep via int10 (ttyoutput) ; ;============================================================================== beep proc near mov ax,(0eh shl 8) + bell ; tty output int video_int ret beep endp ;****************************************************************************** ; ; dumphist dump the history buffer to console output ; al = non-zero if we want line numbers and <more> ; (rows must be set to the size of the screen if so) ; ;============================================================================== dumphist proc near ; *note: We use the high bit of bx to indicate the need to ; display a newline and a line number on the next character ; displayed. The reason for delaying the newline/line number ; is that we don't want an extra line number on the end. mov bx,8000h ; start line numbering at 1 ; ; bit7 means next char forces newline mov si,buf_front cmp si,buf_back ; is it a split buffer? jbe dumphist_01 ; skip if not mov cx,buf_end sub cx,si ; get length to end of buffer call dumphist_doblock ; do a simple dump for now mov si,buf_base dumphist_01: mov cx,buf_back sub cx,si dumphist_doblock: jcxz xret_dumphist dumphist_doblock_1: push ax ; save <more> flag test bh,80h ; time to do a line number? jz dumphist_doblock_1ax ; brif not and bh,7fh or al,al ; suppress line numbering? jz dumphist_doblock_cronly or bx,bx jz no_more_check mov ax,bx xor dx,dx div rows ; time to do (more)? or dx,dx ; only if remainder == 0 jnz no_more_check ; now display "press any key for more" and wait for key push cx push si mov si,offset more_prompt call dstring pop si call getkey pop cx no_more_check: inc bx ; increment number call newline mov ax,bx call decout_ax mov al,':' call display_char mov al,' ' cmp si,buf_current ; are we at the current line? jnz not_at_current_line mov al,'>' ; display '>' pointing to it if so not_at_current_line: call display_char jmp short dumphist_doblock_1ax dumphist_doblock_cronly: or bx,bx ; don't do newline on first line jz dumphist_doblock_1ay call newline dumphist_doblock_1ay: inc bx ; keep count of lines dumphist_doblock_1ax: lodsb or al,al jnz dumphist_doblock_2 or bh,80h ; set flag for newline on next char. jmp short dumphist_doblock_3 dumphist_doblock_2: call display_char dumphist_doblock_3: pop ax ; restore <more> flag loop dumphist_doblock_1 xret_dumphist: ret dumphist endp if debug_version ;****************************************************************************** ; ; dumpdebug: debug hotkey displays buffer pointers ; ;============================================================================== dk_cs dw 0 dumpdebug proc near mov dk_cs,cs mov si,offset debug_info dumpdebug_t1: call newline call dstring ; display a string lodsw mov bx,ax mov ax,[bx] call hex16 cmp byte ptr [si],0 jnz dumpdebug_t1 ; ret debug_info: db 'segment = ',0 dw dk_cs db 'text_ptr = ',0 dw text_ptr db 'end_dsp = ',0 dw end_dsp db 'macro_ptr = ',0 dw macro_ptr db 'macro_base = ',0 dw macro_base db 'macro_last = ',0 dw macro_last db 'macro_end = ',0 dw macro_end db 'buf_base = ',0 dw buf_base db 'buf_end = ',0 dw buf_end db 'buf_front = ',0 dw buf_front db 'buf_back = ',0 dw buf_back db 'buf_current = ',0 dw buf_current db 0 ; dumpdebug endp endif ;************************************************************** ; display a crlf ;************************************************************** newline proc near mov al,cr call display_char mov al,lf jmp display_char newline endp ;********************************************************* ; ; display ax in decimal, leading zero suppressed ; trash ax,dx ; ; Note: algorithm taken from code published by our esteemed leader ; years ago in his programming column in the MITS newsletter ; ; may use up to 20 bytes of stack ; ;********************************************************* word10 dw 10 decout_ax proc near xor dx,dx assume ds:nothing div word10 assume ds:text or ax,ax ; any remaining digits to display? push dx ; save the units digit jz decout_ax_1 ; done if no more digits call decout_ax ; do the rest recursively decout_ax_1: pop ax ; recover digit from stack add al,'0' ; make it ascii jmp display_char decout_ax endp ;************************************** ; display zero terminated string at si. trash al,cx. ; return si->after null ;************************************** dstring_1: call display_char dstring: lodsb or al,al jnz dstring_1 dstring_ret: ret if debug_version hex16: push ax mov al,ah call hex8 pop ax hex8: push ax shr al,1 shr al,1 shr al,1 shr al,1 call hexnib pop ax hexnib: and al,0fh add al,90h daa adc al,3ah daa jmp display_char endif ;****************************************************************************** ; L O C A L R O U T I N E S ;****************************************************************************** ;****************************************************************************** ; ; display display the processed character on the screen ; through dos_int function char_output ; entry: al char ; ; Note: this code keeps cur_col and rows_advanced up to date. ; It assumes that all characters displayed through here ; take one column to display, except <cr>. ; ;============================================================================== ifdef DBCS public display disp_flag db 0 ; 0=single, 1=lead byte, 2=tail byte endif display proc near assume ds:text,es:nothing ifdef DBCS ; if DBCS ---------------------------- cmp disp_flag,1 jz set_dbcs ; if it was lead byte cmp disp_flag,2 jnz @f ; if it was not tail byte mov disp_flag,0 ; reset @@: call IsDBCSLeadByte jnz @f ; if this is not lead byte set_dbcs: inc disp_flag @@: cmp disp_flag,1 jnz @f ; if this is not lead byte mov dl,[cur_col] inc dl cmp dl,byte ptr [num_cols] jb @f ; if this is not last column push ax mov ah,char_output mov dl,0 ; mark it and go to next row int dos_int pop ax mov [cur_col],0 inc [rows_advanced] @@: endif ; end if DBCS ------------------------ mov ah,char_output mov dl,al int dos_int xor ah,ah ; reset column to zero if 'cr' cmp al,cr je prt_2 mov ah,[cur_col] inc ah cmp ah,byte ptr [num_cols] jb prt_2 ; Note: We come here if the display should have wrapped. Unfortunately, ; there are times when ANSI.SYS (or another display driver) has wrap ; disabled. Therefore, we must inquire the column number and force ; a CRLF if it is == [num_cols]. push bx push cx mov ah,3 ; get cursor position mov bh,[active_page] int video_int pop cx pop bx inc dl cmp dl,byte ptr [num_cols] ; are we still at the end of line? jnz prt_00a ; brif no need to force wrap mov dl,0dh mov ah,char_output int dos_int mov dl,0ah mov ah,char_output int dos_int prt_00a: xor ah,ah inc [rows_advanced] prt_2: mov [cur_col],ah ret display endp ifdef DBCS ; if DBCS ---------------------------- public read_character ; ; Read Character at cursor ; ; input: dh = cursor row ; dl = cursor column ; output: al = character ; read_character proc near push dx mov cx,dx ; save original cursor position push cx mov ah,3 ; get cursor position mov bh,[active_page] int video_int pop cx xchg dx,cx ; cursor position to read mov ah,2 ; set cursor int video_int mov ah,8 ; read character int video_int mov dx,cx ; original cursor position mov ah,2 ; set cursor int video_int pop dx ret read_character endp endif ; end if DBCS text ends end 
bb-runtimes/arm/stm32/stm32f0xx/stm32f0x0/svd/a-intnam.ads
JCGobbi/Nucleo-STM32G474RE
0
21376
-- -- Copyright (C) 2020, AdaCore -- -- This spec has been automatically generated from STM32F0x0.svd -- This is a version for the STM32F0x0 MCU package Ada.Interrupts.Names is -- All identifiers in this unit are implementation defined pragma Implementation_Defined; ---------------- -- Interrupts -- ---------------- -- System tick Sys_Tick_Interrupt : constant Interrupt_ID := -1; -- Window Watchdog interrupt WWDG_Interrupt : constant Interrupt_ID := 0; -- PVD and VDDIO2 supply comparator interrupt PVD_Interrupt : constant Interrupt_ID := 1; -- RTC interrupts RTC_Interrupt : constant Interrupt_ID := 2; -- Flash global interrupt FLASH_Interrupt : constant Interrupt_ID := 3; -- RCC global interruptr RCC_Interrupt : constant Interrupt_ID := 4; -- EXTI Line[1:0] interrupts EXTI0_1_Interrupt : constant Interrupt_ID := 5; -- EXTI Line[3:2] interrupts EXTI2_3_Interrupt : constant Interrupt_ID := 6; -- EXTI Line15 and EXTI4 interrupts EXTI4_15_Interrupt : constant Interrupt_ID := 7; -- DMA1 channel 1 interrupt DMA1_CH1_Interrupt : constant Interrupt_ID := 9; -- DMA1 channel 2 and 3 interrupt DMA1_CH2_3_Interrupt : constant Interrupt_ID := 10; -- DMA1 channel 4 and 5 interrupt DMA1_CH4_5_Interrupt : constant Interrupt_ID := 11; -- ADC interrupt ADC_Interrupt : constant Interrupt_ID := 12; -- TIM1 break, update, trigger and commutation interrupt TIM1_BRK_UP_TRG_COM_Interrupt : constant Interrupt_ID := 13; -- TIM1 Capture Compare interrupt TIM1_CC_Interrupt : constant Interrupt_ID := 14; -- TIM3 global interrupt TIM3_Interrupt : constant Interrupt_ID := 16; -- TIM6 global interrupt TIM6_Interrupt : constant Interrupt_ID := 17; -- TIM14 global interrupt TIM14_Interrupt : constant Interrupt_ID := 19; -- TIM15 global interrupt TIM15_Interrupt : constant Interrupt_ID := 20; -- TIM16 global interrupt TIM16_Interrupt : constant Interrupt_ID := 21; -- TIM17 global interrupt TIM17_Interrupt : constant Interrupt_ID := 22; -- I2C1 global interrupt I2C1_Interrupt : constant Interrupt_ID := 23; -- I2C2 global interrupt I2C2_Interrupt : constant Interrupt_ID := 24; -- SPI1_global_interrupt SPI1_Interrupt : constant Interrupt_ID := 25; -- SPI2 global interrupt SPI2_Interrupt : constant Interrupt_ID := 26; -- USART1 global interrupt USART1_Interrupt : constant Interrupt_ID := 27; -- USART2 global interrupt USART2_Interrupt : constant Interrupt_ID := 28; -- USART3, USART4, USART5, USART6 global interrupt USART3_4_5_6_Interrupt : constant Interrupt_ID := 29; -- USB global interrupt USB_Interrupt : constant Interrupt_ID := 31; end Ada.Interrupts.Names;
scripts/Move to cut list.applescript
samschloegel/qlab-scripts
8
4267
<reponame>samschloegel/qlab-scripts -- For help, bug reports, or feature suggestions, please visit https://github.com/samschloegel/qlab-scripts -- Built for QLab 4. v211121-01 set cutListName to "Cut Cues" tell application id "com.figure53.QLab.4" to tell front workspace set theSelection to (selected as list) try set cutList to first cue list whose q display name is cutListName on error return end try repeat with eachCue in theSelection if q number of eachCue is not "" then set q name of eachCue to ("(" & q number of eachCue & ") " & q list name of eachCue) set q number of eachCue to "" end if set cueID to uniqueID of eachCue set midi trigger of eachCue to disabled set hotkey trigger of eachCue to disabled set timecode trigger of eachCue to disabled set wall clock trigger of eachCue to disabled set armed of eachCue to false if parent list of eachCue is not cutList then move cue id cueID of parent of eachCue to beginning of cutList end if end repeat end tell
alloy4fun_models/trainstlt/models/16/seMR4A9zgWmqzXx2h.als
Kaixi26/org.alloytools.alloy
0
4661
<gh_stars>0 open main pred idseMR4A9zgWmqzXx2h_prop17 { always( one Train.pos:>Exit since one pos ) } pred __repair { idseMR4A9zgWmqzXx2h_prop17 } check __repair { idseMR4A9zgWmqzXx2h_prop17 <=> prop17o }
02/c/hi.asm
DaviNakamuraCardoso/assembly
0
4278
section .data hello db "Hi", 0x0a len equ $ - hello section .text global hi hi: mov rax, 1 mov rdi, 1 mov rsi, hello mov rdx, len syscall ret
12-disk/disk_load.asm
soumitradev/assembly-fun
2
167124
disk_load: ; Push dx to stack so we can store how many sectors were requested to be read push dx ; Put device into READ mode (BIOS Thing) mov ah, 0x02 ; Read dh sectors mov al, dh ; Select cylinder 0 mov ch, 0x00 ; Select head 0 mov dh, 0x00 ; Start reading at second sector (i.e. after boot sector) mov cl, 0x02 ; Start reading int 0x13 ; Jump if error jc disk_error ; Restore dx pop dx ; If all sectors are read, do nothing. Else, error out cmp dh, al jne disk_error ret ; Print disk error message on error disk_error: mov bx, DISK_ERROR_MSG call print_str ; Loop infinitely after finishing jmp $ ; Write our byte to memory DISK_ERROR_MSG: db "Disk error.", 0
shell/ShellUtil.applescript
GitSyncApp/applescripts
6
1962
--Note: All shell calls resets previouse shell variables, append with ";" after each shell command if you need to run many shell calls in a row --Note: Alot of FAQ's about Shell in applescript here: https://developer.apple.com/library/mac/technotes/tn2065/_index.html (* * Touch creates files *) on touch() --touch creates an index.html file set retMSG to do shell script "cd ~/test/" --touch ~/test/error.html log "retMSG: " & retMSG end touch (* * Removes file or folder * Param: the_name: name of file or folder * Param: posix_file_path: the path of the file or folder * Note: rm -rf ~/testing/.git *) on remove(posix_file_path) do shell script "rm -rf " & posix_file_path end remove (* * Note: Instead of loading a .sh shell script into terminal, we compile it as a string and run it directly in terminal * Note: the upside of running the script directly as a string is that we dont have to include a .sh in every project * Note: When including shell scripts inside applescripts, be carefull with using linebreaks as "return" or end calls with ";" and avoid ending a line with &, use only & in none end places * Note Using a shell script file, returns the same result: log do shell script "cd ~/;" & "sh hexatoascii.sh x6162634028292F3132335F262F25242F26242325242226C2A7E2889E7CC2A7E2889E7" * Example: --log hex_to_ascii("x6162634028292F3132335F262F25242F26242325242226C2A7E2889E7CC2A7E2889E7")--abc@()/123_&/%$/&$#%$"&��|�� * Caution: seems to work without the x infront of the hex aswell, 0x00FF00 format doesnt seem to work *) on hex_to_ascii(the_hex_text) set the_shell_script to "#!/bin/bash string=`echo " & the_hex_text & " | tr -d \\x` i=1 max=$(( ${#string} + 1 )) while [ $i -lt $max ] do hex='\\x'`echo $string | cut -c $i-$(( i + 1 ))` strhex=$strhex$hex i=$(( i + 2 )) done printf $strhex" #was echo -e, but printf returns a the ascci text without the -e chars infront of it, one les thing to take care of --log the_shell_script return do shell script the_shell_script end hex_to_ascii (* * Delays 5 secs, then checks for internet, if it doesnt have internet, the process is repeated * NOTE: Just add a call to this method when you need to check for internet *) on wait_for_internet() repeat while has_internet_connection() = false delay 5 --delays 5 seconds end repeat return true --convenince return call end wait_for_internet (* * Asserts if there is internet connection *) on has_internet_connection() try --try to make a git commit --try something here log "has internet connection" set retVal to do shell script ("ping -c 1 www.apple.com") --0.0% packet loss is the opposite if (retVal contains "0.0% packet loss") then return true else return false end if on error errMsg --you may omit the errMsg log tab & "error:" & errMsg log "no internet connection" return false end try end has_internet_connection
catfish.asm
compiling/z3randomizer
26
82515
;================================================================================ ; Randomize Catfish ;-------------------------------------------------------------------------------- !HEART_REDRAW = "$7F5000" LoadCatfishItemGFX: LDA.l $1DE185 ; location randomizer writes catfish item to JML PrepDynamicTile ;-------------------------------------------------------------------------------- DrawThrownItem: LDA $8A : CMP.b #$81 : BNE .catfish .zora LDA.b #$01 : STA !HEART_REDRAW LDA.l $1DE1C3 ; location randomizer writes zora item to BRA .draw .catfish LDA.l $1DE185 ; location randomizer writes catfish item to .draw JML DrawDynamicTile ;-------------------------------------------------------------------------------- MarkThrownItem: JSL Link_ReceiveItem ; thing we wrote over LDA $8A : CMP.b #$81 : BNE .catfish .zora JML ItemSet_ZoraKing .catfish JML ItemSet_Catfish ;--------------------------------------------------------------------------------
Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-7700_9_0x48.log_21829_582.asm
ljhsiun2/medusa
9
85396
<reponame>ljhsiun2/medusa .global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0xec90, %rsi lea addresses_D_ht+0x4390, %rdi nop nop nop nop cmp %r10, %r10 mov $78, %rcx rep movsb nop nop sub %rbx, %rbx lea addresses_normal_ht+0x9c90, %rbp nop nop nop xor $23187, %r9 mov $0x6162636465666768, %rsi movq %rsi, (%rbp) nop nop nop nop and $3059, %rcx lea addresses_WT_ht+0x1db90, %r10 nop inc %rbx mov (%r10), %r9w nop lfence lea addresses_WC_ht+0x2010, %rsi lea addresses_UC_ht+0x4410, %rdi nop nop sub %r9, %r9 mov $31, %rcx rep movsw nop nop nop nop sub %r9, %r9 lea addresses_A_ht+0x1c790, %rcx clflush (%rcx) nop nop cmp $32687, %r9 movups (%rcx), %xmm4 vpextrq $0, %xmm4, %rbx nop nop nop add %r10, %r10 lea addresses_D_ht+0x11d58, %r9 and %rbx, %rbx mov (%r9), %r10 nop nop cmp $30461, %r9 lea addresses_D_ht+0x1ad90, %rsi lea addresses_D_ht+0x13490, %rdi nop and %r10, %r10 mov $73, %rcx rep movsq nop nop nop sub $62376, %rsi lea addresses_normal_ht+0x13390, %rsi lea addresses_UC_ht+0xf990, %rdi nop nop sub $29649, %r14 mov $80, %rcx rep movsq nop nop nop nop nop cmp $64540, %rbp lea addresses_D_ht+0x16878, %r14 clflush (%r14) nop cmp $45536, %r9 movb (%r14), %cl sub $19515, %r10 pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r15 push %rbp push %rbx push %rcx // Store lea addresses_US+0x9590, %r12 nop nop nop dec %rbx movl $0x51525354, (%r12) nop nop nop nop nop and %rbx, %rbx // Store lea addresses_UC+0x1f430, %rbx nop nop nop add $7049, %r15 movw $0x5152, (%rbx) nop nop nop nop and $4553, %rcx // Store lea addresses_UC+0xfb90, %r12 nop nop nop nop cmp %rbx, %rbx mov $0x5152535455565758, %r13 movq %r13, (%r12) nop nop nop inc %r11 // Store mov $0x8e4, %r15 and %rbp, %rbp mov $0x5152535455565758, %r13 movq %r13, (%r15) nop nop nop nop sub %rcx, %rcx // Faulty Load lea addresses_UC+0xfb90, %rbx nop nop nop nop nop cmp %r13, %r13 mov (%rbx), %ebp lea oracles, %r13 and $0xff, %rbp shlq $12, %rbp mov (%r13,%rbp,1), %rbp pop %rcx pop %rbx pop %rbp pop %r15 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': True, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 9, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 5, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 6, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 11, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 10, 'size': 16, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 3, 'size': 1, 'same': False, 'NT': False}} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
programs/oeis/173/A173864.asm
karttu/loda
0
103423
<filename>programs/oeis/173/A173864.asm ; A173864: Expansion of 9/8 in base phi. ; 1,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0 mov $1,$0 lpb $0,1 mod $1,2 mul $1,$0 mov $0,2 add $1,8 div $1,4 lpe gcd $1,3 div $1,2
roms/tests/apu/blargg_apu_2005.07.30/source/04.clock_jitter.asm
MrKOSMOS/ANESE
1,461
26410
; Tests for APU clock jitter. Also tests basic timing of frame irq flag ; since it's needed to determine jitter. .include "prefix_apu.a" jitter = 1 reset: jsr setup_apu lda #2;) Frame irq is set too soon sta result lda #$40 ; clear frame irq flag sta $4017 lda #$00 ; begin mode 0, frame irq enabled sta $4017 ldy #48 ; 29826 delay lda #123 jsr delay_ya1 lda $4015 ; read at 29830 and #$40 bne error lda #3;) Frame irq is set too late sta result lda #$40 ; clear frame irq flag sta $4017 lda #$00 ; begin mode 0, frame irq enabled sta $4017 ldy #48 ; 29828 delay lda #123 jsr delay_ya3 lda $4015 ; read at 29832 and #$40 beq error lda #4;) Even jitter not handled properly sta result jsr get_jitter sta <jitter sta <jitter ; keep on even clocks jsr get_jitter cmp <jitter bne error lda #5;) Odd jitter not handled properly sta result jsr get_jitter sta <jitter jsr get_jitter ; occurs on odd clock cmp <jitter beq error lda #1;) Passed tests sta result error: jmp report_final_result ; Return current jitter in A. Takes an even number of clocks. get_jitter: lda <0 ; make routine total an even number of clocks lda #$40 ; clear frame irq flag sta $4017 lda #$00 ; begin mode 0, frame irq enabled sta $4017 ldy #48 ; 29827 delay lda #123 jsr delay_ya2 lda $4015 ; read at 29831 and #$40 rts
programs/oeis/022/A022838.asm
jmorken/loda
1
166097
; A022838: Beatty sequence for sqrt(3); complement of A054406. ; 1,3,5,6,8,10,12,13,15,17,19,20,22,24,25,27,29,31,32,34,36,38,39,41,43,45,46,48,50,51,53,55,57,58,60,62,64,65,67,69,71,72,74,76,77,79,81,83,84,86,88,90,91,93,95,96,98,100,102,103,105,107,109,110,112,114,116,117,119,121,122,124,126,128,129,131,133,135,136,138,140,142,143,145,147,148,150,152,154,155,157,159,161,162,164,166,168,169,171,173,174,176,178,180,181,183,185,187,188,190,192,193,195,197,199,200,202,204,206,207,209,211,213,214,216,218,219,221,223,225,226,228,230,232,233,235,237,239,240,242,244,245,247,249,251,252,254,256,258,259,261,263,265,266,268,270,271,273,275,277,278,280,282,284,285,287,289,290,292,294,296,297,299,301,303,304,306,308,310,311,313,315,316,318,320,322,323,325,327,329,330,332,334,336,337,339,341,342,344,346,348,349,351,353,355,356,358,360,361,363,365,367,368,370,372,374,375,377,379,381,382,384,386,387,389,391,393,394,396,398,400,401,403,405,407,408,410,412,413,415,417,419,420,422,424,426,427,429,431,433 add $0,1 pow $0,2 mul $0,3 lpb $0 add $1,2 sub $0,$1 trn $0,1 lpe sub $1,2 div $1,2 add $1,1
src/main/antlr4/com/cbrew/demo/demo.g4
cbrew/quadruplet
0
5393
grammar demo; LINE_COMMENT : '#' ~( '\r' | '\n' )* -> skip; WS : [ \t\r\n]+ -> skip; Arrow: '->'; Pipe: '|'; Quoted: '\'' [A-Za-z]+([ ][A-Za-z]+)*'\''; Equals : '=' ; Category : [A-Z][A-Za-z0-9]* ; cfg: cfgrule +; cfgrule: Category Arrow cfgrhs; cfgrhs: rhspart (Pipe rhspart)*; rhspart: (Category | Quoted)*;
alloy4fun_models/trashltl/models/5/pKoEcY32AWrygDPex.als
Kaixi26/org.alloytools.alloy
0
3642
open main pred idpKoEcY32AWrygDPex_prop6 { always all f:File | f in Trash implies Trash'=Trash+f } pred __repair { idpKoEcY32AWrygDPex_prop6 } check __repair { idpKoEcY32AWrygDPex_prop6 <=> prop6o }
oeis/036/A036701.asm
neoneye/loda-programs
11
81453
<gh_stars>10-100 ; A036701: a(n)=number of Gaussian integers z=a+bi satisfying n-1<|z|<=n, a>=0, 0<=b<a. ; Submitted by <NAME> ; 0,1,1,2,3,4,4,5,6,7,8,8,8,11,11,12,11,13,14,15,16,15,18,17,18,21,20,21,21,22,24,23,26,25,27,29,25,30,28,33,31,30,33,33,36,36,33,37,37,39,40,41,41,39,42,42,46,43,46,45,47,49,48,49,50,53,50,50,54,56,53,55,54,61,58,59,58,60,63,59,63,64,64,66,63,71,65,69,68,67,75,69,71,73,73,77,72,76,78,76 seq $0,36694 ; a(n) = (1/4)*A036693(n) for n >= 1. add $0,1 div $0,2
Source/Levels/L0506.asm
AbePralle/FGB
0
96189
<gh_stars>0 ; L0506.asm ; Generated 11.08.2000 by mlevel ; Modified 11.08.2000 by <NAME> INCLUDE "Source/Defs.inc" INCLUDE "Source/Levels.inc" ;--------------------------------------------------------------------- SECTION "Level0506Section",ROMX ;--------------------------------------------------------------------- L0506_Contents:: DW L0506_Load DW L0506_Init DW L0506_Check DW L0506_Map ;--------------------------------------------------------------------- ; Load ;--------------------------------------------------------------------- L0506_Load: DW ((L0506_LoadFinished - L0506_Load2)) ;size L0506_Load2: call ParseMap ld a,LEVELSTATEBANK ldio [$ff70],a ld a,[levelState+$3c] ;rescue from tower or a jr z,.notRescued ;rescued, open gates ld a,MAPBANK ldio [$ff70],a xor a ld hl,$d04f ld [hl+],a ld [hl],a ld hl,$d06f ld [hl+],a ld [hl],a .notRescued ret L0506_LoadFinished: ;--------------------------------------------------------------------- ; Map ;--------------------------------------------------------------------- L0506_Map: INCBIN "Data/Levels/L0506_garden.lvl" ;--------------------------------------------------------------------- ; Init ;--------------------------------------------------------------------- L0506_Init: DW ((L0506_InitFinished - L0506_Init2)) ;size L0506_Init2: ret L0506_InitFinished: ;--------------------------------------------------------------------- ; Check ;--------------------------------------------------------------------- L0506_Check: DW ((L0506_CheckFinished - L0506_Check2)) ;size L0506_Check2: ret L0506_CheckFinished: PRINT "0506 Script Sizes (Load/Init/Check) (of $500): " PRINT (L0506_LoadFinished - L0506_Load2) PRINT " / " PRINT (L0506_InitFinished - L0506_Init2) PRINT " / " PRINT (L0506_CheckFinished - L0506_Check2) PRINT "\n"
test/Fail/PatternShadowsConstructor.agda
cruhland/agda
1,989
13814
<gh_stars>1000+ module PatternShadowsConstructor where module A where data B : Set where x : B data C : Set where c : B → C open A using (C; c) f : C → C f (c x) = x
mat/src/events/mat-events-timelines.adb
stcarrez/mat
7
11704
----------------------------------------------------------------------- -- mat-events-timelines - Timelines -- Copyright (C) 2015, 2019 <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 MAT.Frames; package body MAT.Events.Timelines is use MAT.Events.Targets; ITERATE_COUNT : constant MAT.Events.Event_Id_Type := 10_000; procedure Extract (Target : in out MAT.Events.Targets.Target_Events'Class; Level : in Positive; Into : in out Timeline_Info_Vector) is use type MAT.Types.Target_Time; procedure Collect (Event : in MAT.Events.Target_Event_Type); First_Event : MAT.Events.Target_Event_Type; Last_Event : MAT.Events.Target_Event_Type; Prev_Event : MAT.Events.Target_Event_Type; Info : Timeline_Info; First_Id : MAT.Events.Event_Id_Type; Limit : constant MAT.Types.Target_Time := MAT.Types.Target_Time (Level * 1_000_000); procedure Collect (Event : in MAT.Events.Target_Event_Type) is Dt : constant MAT.Types.Target_Time := Event.Time - Prev_Event.Time; begin if Dt > Limit then Into.Append (Info); Info.Malloc_Count := 0; Info.Realloc_Count := 0; Info.Free_Count := 0; Info.First_Event := Event; Info.Free_Size := 0; Info.Alloc_Size := 0; Prev_Event := Event; end if; Info.Last_Event := Event; if Event.Index = MAT.Events.MSG_MALLOC then Info.Malloc_Count := Info.Malloc_Count + 1; Info.Alloc_Size := Info.Alloc_Size + Event.Size; elsif Event.Index = MAT.Events.MSG_REALLOC then Info.Realloc_Count := Info.Realloc_Count + 1; Info.Alloc_Size := Info.Alloc_Size + Event.Size; Info.Free_Size := Info.Free_Size + Event.Old_Size; elsif Event.Index = MAT.Events.MSG_FREE then Info.Free_Count := Info.Free_Count + 1; Info.Free_Size := Info.Free_Size + Event.Size; end if; end Collect; begin Target.Get_Limits (First_Event, Last_Event); Prev_Event := First_Event; Info.First_Event := First_Event; First_Id := First_Event.Id; while First_Id < Last_Event.Id loop Target.Iterate (Start => First_Id, Finish => First_Id + ITERATE_COUNT, Process => Collect'Access); First_Id := First_Id + ITERATE_COUNT; end loop; end Extract; -- ------------------------------ -- Find in the events stream the events which are associated with a given event. -- When the <tt>Event</tt> is a memory allocation, find the associated reallocation -- and free events. When the event is a free, find the associated allocations. -- Collect at most <tt>Max</tt> events. -- ------------------------------ procedure Find_Related (Target : in out MAT.Events.Targets.Target_Events'Class; Event : in MAT.Events.Target_Event_Type; Max : in Positive; List : in out MAT.Events.Tools.Target_Event_Vector) is procedure Collect_Free (Event : in MAT.Events.Target_Event_Type); procedure Collect_Alloc (Event : in MAT.Events.Target_Event_Type); First_Id : MAT.Events.Event_Id_Type; Last_Id : MAT.Events.Event_Id_Type; First_Event : MAT.Events.Target_Event_Type; Last_Event : MAT.Events.Target_Event_Type; Addr : MAT.Types.Target_Addr := Event.Addr; Done : exception; procedure Collect_Free (Event : in MAT.Events.Target_Event_Type) is begin if Event.Index = MAT.Events.MSG_FREE and then Event.Addr = Addr then List.Append (Event); raise Done; end if; if Event.Index = MAT.Events.MSG_REALLOC and then Event.Old_Addr = Addr then List.Append (Event); if Positive (List.Length) >= Max then raise Done; end if; Addr := Event.Addr; end if; end Collect_Free; procedure Collect_Alloc (Event : in MAT.Events.Target_Event_Type) is begin if Event.Index = MAT.Events.MSG_MALLOC and then Event.Addr = Addr then List.Append (Event); raise Done; end if; if Event.Index = MAT.Events.MSG_REALLOC and then Event.Addr = Addr then List.Append (Event); if Positive (List.Length) >= Max then raise Done; end if; Addr := Event.Old_Addr; end if; end Collect_Alloc; begin Target.Get_Limits (First_Event, Last_Event); First_Id := Event.Id; if Event.Index = MAT.Events.MSG_FREE then -- Search backward for MSG_MALLOC and MSG_REALLOC. First_Id := First_Id - 1; while First_Id > First_Event.Id loop if First_Id > ITERATE_COUNT then Last_Id := First_Id - ITERATE_COUNT; else Last_Id := First_Event.Id; end if; Target.Iterate (Start => First_Id, Finish => Last_Id, Process => Collect_Alloc'Access); First_Id := Last_Id; end loop; else -- Search forward for MSG_REALLOC and MSG_FREE First_Id := First_Id + 1; while First_Id < Last_Event.Id loop Target.Iterate (Start => First_Id, Finish => First_Id + ITERATE_COUNT, Process => Collect_Free'Access); First_Id := First_Id + ITERATE_COUNT; end loop; end if; exception when Done => null; end Find_Related; -- ------------------------------ -- Find the sizes of malloc and realloc events which is selected by the given filter. -- Update the <tt>Sizes</tt> map to keep track of the first event and last event and -- the number of events found for the corresponding size. -- ------------------------------ procedure Find_Sizes (Target : in out MAT.Events.Targets.Target_Events'Class; Filter : in MAT.Expressions.Expression_Type; Sizes : in out MAT.Events.Tools.Size_Event_Info_Map) is procedure Collect_Event (Event : in MAT.Events.Target_Event_Type); procedure Collect_Event (Event : in MAT.Events.Target_Event_Type) is procedure Update_Size (Size : in MAT.Types.Target_Size; Info : in out MAT.Events.Tools.Event_Info_Type); procedure Update_Size (Size : in MAT.Types.Target_Size; Info : in out MAT.Events.Tools.Event_Info_Type) is pragma Unreferenced (Size); begin MAT.Events.Tools.Collect_Info (Info, Event); end Update_Size; begin -- Look for malloc or realloc events which are selected by the filter. if (Event.Index /= MAT.Events.MSG_MALLOC and Event.Index /= MAT.Events.MSG_FREE and Event.Index /= MAT.Events.MSG_REALLOC) or else not Filter.Is_Selected (Event) then return; end if; declare Pos : constant MAT.Events.Tools.Size_Event_Info_Cursor := Sizes.Find (Event.Size); begin if MAT.Events.Tools.Size_Event_Info_Maps.Has_Element (Pos) then -- Increment the count and update the last event. Sizes.Update_Element (Pos, Update_Size'Access); else declare Info : MAT.Events.Tools.Event_Info_Type; begin -- Insert a new size with the event. Info.First_Event := Event; MAT.Events.Tools.Collect_Info (Info, Event); Sizes.Insert (Event.Size, Info); end; end if; end; end Collect_Event; begin Target.Iterate (Process => Collect_Event'Access); end Find_Sizes; -- ------------------------------ -- Find the function address from the call event frames for the events which is selected -- by the given filter. The function addresses are collected up to the given frame depth. -- Update the <tt>Frames</tt> map to keep track of the first event and last event and -- the number of events found for the corresponding frame address. -- ------------------------------ procedure Find_Frames (Target : in out MAT.Events.Targets.Target_Events'Class; Filter : in MAT.Expressions.Expression_Type; Depth : in Positive; Exact : in Boolean; Frames : in out MAT.Events.Tools.Frame_Event_Info_Map) is procedure Collect_Event (Event : in MAT.Events.Target_Event_Type); procedure Collect_Event (Event : in MAT.Events.Target_Event_Type) is procedure Update_Size (Key : in MAT.Events.Tools.Frame_Key_Type; Info : in out MAT.Events.Tools.Event_Info_Type); procedure Update_Size (Key : in MAT.Events.Tools.Frame_Key_Type; Info : in out MAT.Events.Tools.Event_Info_Type) is pragma Unreferenced (Key); begin MAT.Events.Tools.Collect_Info (Info, Event); end Update_Size; begin -- Look for events which are selected by the filter. if not Filter.Is_Selected (Event) then return; end if; declare Backtrace : constant MAT.Frames.Frame_Table := MAT.Frames.Backtrace (Event.Frame); Key : MAT.Events.Tools.Frame_Key_Type; First : Natural; Last : Natural; begin if Exact then First := Depth; else First := Backtrace'First; end if; if Depth < Backtrace'Last then Last := Depth; else Last := Backtrace'Last; end if; for I in First .. Last loop Key.Addr := Backtrace (Backtrace'Last - I + 1); Key.Level := I; declare Pos : constant MAT.Events.Tools.Frame_Event_Info_Cursor := Frames.Find (Key); begin if MAT.Events.Tools.Frame_Event_Info_Maps.Has_Element (Pos) then -- Increment the count and update the last event. Frames.Update_Element (Pos, Update_Size'Access); else declare Info : MAT.Events.Tools.Event_Info_Type; begin -- Insert a new size with the event. Info.First_Event := Event; Info.Count := 0; MAT.Events.Tools.Collect_Info (Info, Event); Frames.Insert (Key, Info); end; end if; end; end loop; end; end Collect_Event; begin Target.Iterate (Process => Collect_Event'Access); end Find_Frames; -- ------------------------------ -- Collect the events that match the filter and append them to the events vector. -- ------------------------------ procedure Filter_Events (Target : in out MAT.Events.Targets.Target_Events'Class; Filter : in MAT.Expressions.Expression_Type; Events : in out MAT.Events.Tools.Target_Event_Vector) is procedure Collect_Event (Event : in MAT.Events.Target_Event_Type); procedure Collect_Event (Event : in MAT.Events.Target_Event_Type) is begin if Filter.Is_Selected (Event) then Events.Append (Event); end if; end Collect_Event; begin Target.Iterate (Process => Collect_Event'Access); end Filter_Events; end MAT.Events.Timelines;
programs/oeis/285/A285054.asm
jmorken/loda
1
23241
; A285054: Numbers whose sum of digits are congruent (mod 10) to the string 1,2, ..., 9. ; 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,29,20,21,22,23,24,25,26,27,38,39,30,31,32,33,34,35,36,47,48,49,40,41,42,43,44,45,56,57,58,59,50,51,52,53,54,65,66,67,68,69,60,61,62,63,74,75,76,77,78,79,70,71,72,83 mov $2,$0 div $0,9 mov $1,$2 mov $3,$2 sub $3,1 lpb $0 mov $0,$1 add $0,1 div $0,10 add $3,15 mov $1,$3 sub $1,4 lpe add $1,1
data/mapObjects/ceruleanhouse1.asm
adhi-thirumala/EvoYellow
16
94907
<reponame>adhi-thirumala/EvoYellow CeruleanHouse1Object: db $a ; border block db $2 ; warps db $7, $2, $1, $ff db $7, $3, $1, $ff db $0 ; signs db $4 ; objects object SPRITE_GIRL, $3, $1, STAY, DOWN, $1 ; person object SPRITE_BULBASAUR, $4, $1, STAY, DOWN, $2 ; person object SPRITE_ODDISH, $1, $4, STAY, NONE, $3 ; person object SPRITE_SANDSHREW, $5, $3, STAY, LEFT, $4 ; person ; warp-to EVENT_DISP CERULEAN_HOUSE_1_WIDTH, $7, $2 EVENT_DISP CERULEAN_HOUSE_1_WIDTH, $7, $3
bms/BmsGetNumButtons.asm
osfree-project/FamilyAPI
0
85413
<filename>bms/BmsGetNumButtons.asm<gh_stars>0 ;/*! ; @file ; ; @ingroup fapi ; ; @brief BmsGetNumButtons DOS wrapper ; ; (c) osFree Project 2018, <http://www.osFree.org> ; for licence see licence.txt in root directory, or project website ; ; This is Family API implementation for DOS, used with BIND tools ; to link required API ; ; @author <NAME> (<EMAIL>) ; ;*/ .8086 ; Helpers INCLUDE helpers.inc INCLUDE bseerr.inc INCL_MOU EQU 1 INCLUDE bsesub.inc _TEXT SEGMENT BYTE PUBLIC 'CODE' USE16 @BMSPROLOG BMSGETNUMBUTTONS MOUHANDLE DW ? ;MOUSE HANDLE NUMBEROFBUTTONS DD ? ;NUMBER OF MOUSE BUTTONS @BMSSTART BMSGETNUMBUTTONS ; @DosDevIOCtl @BMSEPILOG BMSGETNUMBUTTONS _TEXT ENDS END
src/converters.ads
Kurinkitos/Twizy-Security
1
5781
with Interfaces.C; use Interfaces.C; with common_data_h; use common_data_h; with speed_data_h; use speed_data_h; with types; package converters with SPARK_Mode is use Types; function double_to_speed (d : double) return Types.speed with Pre => d > Double(-80.0) and d < Double(80.0), Post => double_to_speed'Result = Types.Speed(d); function point_to_cart_x (p : point_3d) return Types.Cartesian_Coordinate with pre => p.x < 180.0 and -180.0 < p.x ; function point_to_cart_y (p : point_3d) return Types.Cartesian_Coordinate with pre => p.y < 180.0 and -180.0 < p.y ; function point_to_cart_z (p : point_3d) return Types.Cartesian_Coordinate with pre => p.z < 180.0 and -180.0 < p.z ; function speed_ada_to_speed (s : speed_ada) return Types.Speed with pre => s.speed > Double(-80.0) and s.speed < Double(80.0), Post => Types.Speed(s.speed) = speed_ada_to_speed'Result; end converters;
arch/ARM/NXP/svd/lpc55s6x/nxp_svd-pint.ads
morbos/Ada_Drivers_Library
2
17802
<reponame>morbos/Ada_Drivers_Library<gh_stars>1-10 -- 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.PINT is pragma Preelaborate; --------------- -- Registers -- --------------- subtype ISEL_PMODE_Field is HAL.UInt8; -- Pin Interrupt Mode register type ISEL_Register is record -- Selects the interrupt mode for each pin interrupt. Bit n configures -- the pin interrupt selected in PINTSELn. 0 = Edge sensitive 1 = Level -- sensitive PMODE : ISEL_PMODE_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for ISEL_Register use record PMODE at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype IENR_ENRL_Field is HAL.UInt8; -- Pin interrupt level or rising edge interrupt enable register type IENR_Register is record -- Enables the rising edge or level interrupt for each pin interrupt. -- Bit n configures the pin interrupt selected in PINTSELn. 0 = Disable -- rising edge or level interrupt. 1 = Enable rising edge or level -- interrupt. ENRL : IENR_ENRL_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for IENR_Register use record ENRL at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype SIENR_SETENRL_Field is HAL.UInt8; -- Pin interrupt level or rising edge interrupt set register type SIENR_Register is record -- Write-only. Ones written to this address set bits in the IENR, thus -- enabling interrupts. Bit n sets bit n in the IENR register. 0 = No -- operation. 1 = Enable rising edge or level interrupt. SETENRL : SIENR_SETENRL_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SIENR_Register use record SETENRL at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype CIENR_CENRL_Field is HAL.UInt8; -- Pin interrupt level (rising edge interrupt) clear register type CIENR_Register is record -- Write-only. Ones written to this address clear bits in the IENR, thus -- disabling the interrupts. Bit n clears bit n in the IENR register. 0 -- = No operation. 1 = Disable rising edge or level interrupt. CENRL : CIENR_CENRL_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CIENR_Register use record CENRL at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype IENF_ENAF_Field is HAL.UInt8; -- Pin interrupt active level or falling edge interrupt enable register type IENF_Register is record -- Enables the falling edge or configures the active level interrupt for -- each pin interrupt. Bit n configures the pin interrupt selected in -- PINTSELn. 0 = Disable falling edge interrupt or set active interrupt -- level LOW. 1 = Enable falling edge interrupt enabled or set active -- interrupt level HIGH. ENAF : IENF_ENAF_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for IENF_Register use record ENAF at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype SIENF_SETENAF_Field is HAL.UInt8; -- Pin interrupt active level or falling edge interrupt set register type SIENF_Register is record -- Write-only. Ones written to this address set bits in the IENF, thus -- enabling interrupts. Bit n sets bit n in the IENF register. 0 = No -- operation. 1 = Select HIGH-active interrupt or enable falling edge -- interrupt. SETENAF : SIENF_SETENAF_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SIENF_Register use record SETENAF at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype CIENF_CENAF_Field is HAL.UInt8; -- Pin interrupt active level or falling edge interrupt clear register type CIENF_Register is record -- Write-only. Ones written to this address clears bits in the IENF, -- thus disabling interrupts. Bit n clears bit n in the IENF register. 0 -- = No operation. 1 = LOW-active interrupt selected or falling edge -- interrupt disabled. CENAF : CIENF_CENAF_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CIENF_Register use record CENAF at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype RISE_RDET_Field is HAL.UInt8; -- Pin interrupt rising edge register type RISE_Register is record -- Rising edge detect. Bit n detects the rising edge of the pin selected -- in PINTSELn. Read 0: No rising edge has been detected on this pin -- since Reset or the last time a one was written to this bit. Write 0: -- no operation. Read 1: a rising edge has been detected since Reset or -- the last time a one was written to this bit. Write 1: clear rising -- edge detection for this pin. RDET : RISE_RDET_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for RISE_Register use record RDET at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype FALL_FDET_Field is HAL.UInt8; -- Pin interrupt falling edge register type FALL_Register is record -- Falling edge detect. Bit n detects the falling edge of the pin -- selected in PINTSELn. Read 0: No falling edge has been detected on -- this pin since Reset or the last time a one was written to this bit. -- Write 0: no operation. Read 1: a falling edge has been detected since -- Reset or the last time a one was written to this bit. Write 1: clear -- falling edge detection for this pin. FDET : FALL_FDET_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FALL_Register use record FDET at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype IST_PSTAT_Field is HAL.UInt8; -- Pin interrupt status register type IST_Register is record -- Pin interrupt status. Bit n returns the status, clears the edge -- interrupt, or inverts the active level of the pin selected in -- PINTSELn. Read 0: interrupt is not being requested for this interrupt -- pin. Write 0: no operation. Read 1: interrupt is being requested for -- this interrupt pin. Write 1 (edge-sensitive): clear rising- and -- falling-edge detection for this pin. Write 1 (level-sensitive): -- switch the active level for this pin (in the IENF register). PSTAT : IST_PSTAT_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for IST_Register use record PSTAT at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; -- Specifies whether the 8 pin interrupts are controlled by the pin -- interrupt function or by the pattern match function. type PMCTRL_SEL_PMATCH_Field is ( -- Pin interrupt. Interrupts are driven in response to the standard pin -- interrupt function. Pin_Interrupt, -- Pattern match. Interrupts are driven in response to pattern matches. Pattern_Match) with Size => 1; for PMCTRL_SEL_PMATCH_Field use (Pin_Interrupt => 0, Pattern_Match => 1); -- Enables the RXEV output to the CPU and/or to a GPIO output when the -- specified boolean expression evaluates to true. type PMCTRL_ENA_RXEV_Field is ( -- Disabled. RXEV output to the CPU is disabled. Disabled, -- Enabled. RXEV output to the CPU is enabled. Enabled) with Size => 1; for PMCTRL_ENA_RXEV_Field use (Disabled => 0, Enabled => 1); subtype PMCTRL_PMAT_Field is HAL.UInt8; -- Pattern match interrupt control register type PMCTRL_Register is record -- Specifies whether the 8 pin interrupts are controlled by the pin -- interrupt function or by the pattern match function. SEL_PMATCH : PMCTRL_SEL_PMATCH_Field := NXP_SVD.PINT.Pin_Interrupt; -- Enables the RXEV output to the CPU and/or to a GPIO output when the -- specified boolean expression evaluates to true. ENA_RXEV : PMCTRL_ENA_RXEV_Field := NXP_SVD.PINT.Disabled; -- unspecified Reserved_2_23 : HAL.UInt22 := 16#0#; -- This field displays the current state of pattern matches. A 1 in any -- bit of this field indicates that the corresponding product term is -- matched by the current state of the appropriate inputs. PMAT : PMCTRL_PMAT_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for PMCTRL_Register use record SEL_PMATCH at 0 range 0 .. 0; ENA_RXEV at 0 range 1 .. 1; Reserved_2_23 at 0 range 2 .. 23; PMAT at 0 range 24 .. 31; end record; -- Selects the input source for bit slice 0 type PMSRC_SRC0_Field is ( -- Input 0. Selects the pin selected in the PINTSEL0 register as the -- source to bit slice 0. Input0, -- Input 1. Selects the pin selected in the PINTSEL1 register as the -- source to bit slice 0. Input1, -- Input 2. Selects the pin selected in the PINTSEL2 register as the -- source to bit slice 0. Input2, -- Input 3. Selects the pin selected in the PINTSEL3 register as the -- source to bit slice 0. Input3, -- Input 4. Selects the pin selected in the PINTSEL4 register as the -- source to bit slice 0. Input4, -- Input 5. Selects the pin selected in the PINTSEL5 register as the -- source to bit slice 0. Input5, -- Input 6. Selects the pin selected in the PINTSEL6 register as the -- source to bit slice 0. Input6, -- Input 7. Selects the pin selected in the PINTSEL7 register as the -- source to bit slice 0. Input7) with Size => 3; for PMSRC_SRC0_Field use (Input0 => 0, Input1 => 1, Input2 => 2, Input3 => 3, Input4 => 4, Input5 => 5, Input6 => 6, Input7 => 7); -- Selects the input source for bit slice 1 type PMSRC_SRC1_Field is ( -- Input 0. Selects the pin selected in the PINTSEL0 register as the -- source to bit slice 1. Input0, -- Input 1. Selects the pin selected in the PINTSEL1 register as the -- source to bit slice 1. Input1, -- Input 2. Selects the pin selected in the PINTSEL2 register as the -- source to bit slice 1. Input2, -- Input 3. Selects the pin selected in the PINTSEL3 register as the -- source to bit slice 1. Input3, -- Input 4. Selects the pin selected in the PINTSEL4 register as the -- source to bit slice 1. Input4, -- Input 5. Selects the pin selected in the PINTSEL5 register as the -- source to bit slice 1. Input5, -- Input 6. Selects the pin selected in the PINTSEL6 register as the -- source to bit slice 1. Input6, -- Input 7. Selects the pin selected in the PINTSEL7 register as the -- source to bit slice 1. Input7) with Size => 3; for PMSRC_SRC1_Field use (Input0 => 0, Input1 => 1, Input2 => 2, Input3 => 3, Input4 => 4, Input5 => 5, Input6 => 6, Input7 => 7); -- Selects the input source for bit slice 2 type PMSRC_SRC2_Field is ( -- Input 0. Selects the pin selected in the PINTSEL0 register as the -- source to bit slice 2. Input0, -- Input 1. Selects the pin selected in the PINTSEL1 register as the -- source to bit slice 2. Input1, -- Input 2. Selects the pin selected in the PINTSEL2 register as the -- source to bit slice 2. Input2, -- Input 3. Selects the pin selected in the PINTSEL3 register as the -- source to bit slice 2. Input3, -- Input 4. Selects the pin selected in the PINTSEL4 register as the -- source to bit slice 2. Input4, -- Input 5. Selects the pin selected in the PINTSEL5 register as the -- source to bit slice 2. Input5, -- Input 6. Selects the pin selected in the PINTSEL6 register as the -- source to bit slice 2. Input6, -- Input 7. Selects the pin selected in the PINTSEL7 register as the -- source to bit slice 2. Input7) with Size => 3; for PMSRC_SRC2_Field use (Input0 => 0, Input1 => 1, Input2 => 2, Input3 => 3, Input4 => 4, Input5 => 5, Input6 => 6, Input7 => 7); -- Selects the input source for bit slice 3 type PMSRC_SRC3_Field is ( -- Input 0. Selects the pin selected in the PINTSEL0 register as the -- source to bit slice 3. Input0, -- Input 1. Selects the pin selected in the PINTSEL1 register as the -- source to bit slice 3. Input1, -- Input 2. Selects the pin selected in the PINTSEL2 register as the -- source to bit slice 3. Input2, -- Input 3. Selects the pin selected in the PINTSEL3 register as the -- source to bit slice 3. Input3, -- Input 4. Selects the pin selected in the PINTSEL4 register as the -- source to bit slice 3. Input4, -- Input 5. Selects the pin selected in the PINTSEL5 register as the -- source to bit slice 3. Input5, -- Input 6. Selects the pin selected in the PINTSEL6 register as the -- source to bit slice 3. Input6, -- Input 7. Selects the pin selected in the PINTSEL7 register as the -- source to bit slice 3. Input7) with Size => 3; for PMSRC_SRC3_Field use (Input0 => 0, Input1 => 1, Input2 => 2, Input3 => 3, Input4 => 4, Input5 => 5, Input6 => 6, Input7 => 7); -- Selects the input source for bit slice 4 type PMSRC_SRC4_Field is ( -- Input 0. Selects the pin selected in the PINTSEL0 register as the -- source to bit slice 4. Input0, -- Input 1. Selects the pin selected in the PINTSEL1 register as the -- source to bit slice 4. Input1, -- Input 2. Selects the pin selected in the PINTSEL2 register as the -- source to bit slice 4. Input2, -- Input 3. Selects the pin selected in the PINTSEL3 register as the -- source to bit slice 4. Input3, -- Input 4. Selects the pin selected in the PINTSEL4 register as the -- source to bit slice 4. Input4, -- Input 5. Selects the pin selected in the PINTSEL5 register as the -- source to bit slice 4. Input5, -- Input 6. Selects the pin selected in the PINTSEL6 register as the -- source to bit slice 4. Input6, -- Input 7. Selects the pin selected in the PINTSEL7 register as the -- source to bit slice 4. Input7) with Size => 3; for PMSRC_SRC4_Field use (Input0 => 0, Input1 => 1, Input2 => 2, Input3 => 3, Input4 => 4, Input5 => 5, Input6 => 6, Input7 => 7); -- Selects the input source for bit slice 5 type PMSRC_SRC5_Field is ( -- Input 0. Selects the pin selected in the PINTSEL0 register as the -- source to bit slice 5. Input0, -- Input 1. Selects the pin selected in the PINTSEL1 register as the -- source to bit slice 5. Input1, -- Input 2. Selects the pin selected in the PINTSEL2 register as the -- source to bit slice 5. Input2, -- Input 3. Selects the pin selected in the PINTSEL3 register as the -- source to bit slice 5. Input3, -- Input 4. Selects the pin selected in the PINTSEL4 register as the -- source to bit slice 5. Input4, -- Input 5. Selects the pin selected in the PINTSEL5 register as the -- source to bit slice 5. Input5, -- Input 6. Selects the pin selected in the PINTSEL6 register as the -- source to bit slice 5. Input6, -- Input 7. Selects the pin selected in the PINTSEL7 register as the -- source to bit slice 5. Input7) with Size => 3; for PMSRC_SRC5_Field use (Input0 => 0, Input1 => 1, Input2 => 2, Input3 => 3, Input4 => 4, Input5 => 5, Input6 => 6, Input7 => 7); -- Selects the input source for bit slice 6 type PMSRC_SRC6_Field is ( -- Input 0. Selects the pin selected in the PINTSEL0 register as the -- source to bit slice 6. Input0, -- Input 1. Selects the pin selected in the PINTSEL1 register as the -- source to bit slice 6. Input1, -- Input 2. Selects the pin selected in the PINTSEL2 register as the -- source to bit slice 6. Input2, -- Input 3. Selects the pin selected in the PINTSEL3 register as the -- source to bit slice 6. Input3, -- Input 4. Selects the pin selected in the PINTSEL4 register as the -- source to bit slice 6. Input4, -- Input 5. Selects the pin selected in the PINTSEL5 register as the -- source to bit slice 6. Input5, -- Input 6. Selects the pin selected in the PINTSEL6 register as the -- source to bit slice 6. Input6, -- Input 7. Selects the pin selected in the PINTSEL7 register as the -- source to bit slice 6. Input7) with Size => 3; for PMSRC_SRC6_Field use (Input0 => 0, Input1 => 1, Input2 => 2, Input3 => 3, Input4 => 4, Input5 => 5, Input6 => 6, Input7 => 7); -- Selects the input source for bit slice 7 type PMSRC_SRC7_Field is ( -- Input 0. Selects the pin selected in the PINTSEL0 register as the -- source to bit slice 7. Input0, -- Input 1. Selects the pin selected in the PINTSEL1 register as the -- source to bit slice 7. Input1, -- Input 2. Selects the pin selected in the PINTSEL2 register as the -- source to bit slice 7. Input2, -- Input 3. Selects the pin selected in the PINTSEL3 register as the -- source to bit slice 7. Input3, -- Input 4. Selects the pin selected in the PINTSEL4 register as the -- source to bit slice 7. Input4, -- Input 5. Selects the pin selected in the PINTSEL5 register as the -- source to bit slice 7. Input5, -- Input 6. Selects the pin selected in the PINTSEL6 register as the -- source to bit slice 7. Input6, -- Input 7. Selects the pin selected in the PINTSEL7 register as the -- source to bit slice 7. Input7) with Size => 3; for PMSRC_SRC7_Field use (Input0 => 0, Input1 => 1, Input2 => 2, Input3 => 3, Input4 => 4, Input5 => 5, Input6 => 6, Input7 => 7); -- Pattern match interrupt bit-slice source register type PMSRC_Register is record -- unspecified Reserved_0_7 : HAL.UInt8 := 16#0#; -- Selects the input source for bit slice 0 SRC0 : PMSRC_SRC0_Field := NXP_SVD.PINT.Input0; -- Selects the input source for bit slice 1 SRC1 : PMSRC_SRC1_Field := NXP_SVD.PINT.Input0; -- Selects the input source for bit slice 2 SRC2 : PMSRC_SRC2_Field := NXP_SVD.PINT.Input0; -- Selects the input source for bit slice 3 SRC3 : PMSRC_SRC3_Field := NXP_SVD.PINT.Input0; -- Selects the input source for bit slice 4 SRC4 : PMSRC_SRC4_Field := NXP_SVD.PINT.Input0; -- Selects the input source for bit slice 5 SRC5 : PMSRC_SRC5_Field := NXP_SVD.PINT.Input0; -- Selects the input source for bit slice 6 SRC6 : PMSRC_SRC6_Field := NXP_SVD.PINT.Input0; -- Selects the input source for bit slice 7 SRC7 : PMSRC_SRC7_Field := NXP_SVD.PINT.Input0; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for PMSRC_Register use record Reserved_0_7 at 0 range 0 .. 7; SRC0 at 0 range 8 .. 10; SRC1 at 0 range 11 .. 13; SRC2 at 0 range 14 .. 16; SRC3 at 0 range 17 .. 19; SRC4 at 0 range 20 .. 22; SRC5 at 0 range 23 .. 25; SRC6 at 0 range 26 .. 28; SRC7 at 0 range 29 .. 31; end record; -- Determines whether slice 0 is an endpoint. type PMCFG_PROD_ENDPTS0_Field is ( -- No effect. Slice 0 is not an endpoint. No_Effect, -- endpoint. Slice 0 is the endpoint of a product term (minterm). Pin -- interrupt 0 in the NVIC is raised if the minterm evaluates as true. Endpoint) with Size => 1; for PMCFG_PROD_ENDPTS0_Field use (No_Effect => 0, Endpoint => 1); -- Determines whether slice 1 is an endpoint. type PMCFG_PROD_ENDPTS1_Field is ( -- No effect. Slice 1 is not an endpoint. No_Effect, -- endpoint. Slice 1 is the endpoint of a product term (minterm). Pin -- interrupt 1 in the NVIC is raised if the minterm evaluates as true. Endpoint) with Size => 1; for PMCFG_PROD_ENDPTS1_Field use (No_Effect => 0, Endpoint => 1); -- Determines whether slice 2 is an endpoint. type PMCFG_PROD_ENDPTS2_Field is ( -- No effect. Slice 2 is not an endpoint. No_Effect, -- endpoint. Slice 2 is the endpoint of a product term (minterm). Pin -- interrupt 2 in the NVIC is raised if the minterm evaluates as true. Endpoint) with Size => 1; for PMCFG_PROD_ENDPTS2_Field use (No_Effect => 0, Endpoint => 1); -- Determines whether slice 3 is an endpoint. type PMCFG_PROD_ENDPTS3_Field is ( -- No effect. Slice 3 is not an endpoint. No_Effect, -- endpoint. Slice 3 is the endpoint of a product term (minterm). Pin -- interrupt 3 in the NVIC is raised if the minterm evaluates as true. Endpoint) with Size => 1; for PMCFG_PROD_ENDPTS3_Field use (No_Effect => 0, Endpoint => 1); -- Determines whether slice 4 is an endpoint. type PMCFG_PROD_ENDPTS4_Field is ( -- No effect. Slice 4 is not an endpoint. No_Effect, -- endpoint. Slice 4 is the endpoint of a product term (minterm). Pin -- interrupt 4 in the NVIC is raised if the minterm evaluates as true. Endpoint) with Size => 1; for PMCFG_PROD_ENDPTS4_Field use (No_Effect => 0, Endpoint => 1); -- Determines whether slice 5 is an endpoint. type PMCFG_PROD_ENDPTS5_Field is ( -- No effect. Slice 5 is not an endpoint. No_Effect, -- endpoint. Slice 5 is the endpoint of a product term (minterm). Pin -- interrupt 5 in the NVIC is raised if the minterm evaluates as true. Endpoint) with Size => 1; for PMCFG_PROD_ENDPTS5_Field use (No_Effect => 0, Endpoint => 1); -- Determines whether slice 6 is an endpoint. type PMCFG_PROD_ENDPTS6_Field is ( -- No effect. Slice 6 is not an endpoint. No_Effect, -- endpoint. Slice 6 is the endpoint of a product term (minterm). Pin -- interrupt 6 in the NVIC is raised if the minterm evaluates as true. Endpoint) with Size => 1; for PMCFG_PROD_ENDPTS6_Field use (No_Effect => 0, Endpoint => 1); -- Specifies the match contribution condition for bit slice 0. type PMCFG_CFG0_Field is ( -- Constant HIGH. This bit slice always contributes to a product term -- match. Constant_High, -- Sticky rising edge. Match occurs if a rising edge on the specified -- input has occurred since the last time the edge detection for this -- bit slice was cleared. This bit is only cleared when the PMCFG or the -- PMSRC registers are written to. Sticky_Rising_Edge, -- Sticky falling edge. Match occurs if a falling edge on the specified -- input has occurred since the last time the edge detection for this -- bit slice was cleared. This bit is only cleared when the PMCFG or the -- PMSRC registers are written to. Sticky_Falling_Edge, -- Sticky rising or falling edge. Match occurs if either a rising or -- falling edge on the specified input has occurred since the last time -- the edge detection for this bit slice was cleared. This bit is only -- cleared when the PMCFG or the PMSRC registers are written to. Sticky_Rising_Falling_Edge, -- High level. Match (for this bit slice) occurs when there is a high -- level on the input specified for this bit slice in the PMSRC -- register. High_Level, -- Low level. Match occurs when there is a low level on the specified -- input. Low_Level, -- Constant 0. This bit slice never contributes to a match (should be -- used to disable any unused bit slices). Constant_Zero, -- Event. Non-sticky rising or falling edge. Match occurs on an event - -- i.e. when either a rising or falling edge is first detected on the -- specified input (this is a non-sticky version of value 0x3) . This -- bit is cleared after one clock cycle. Event) with Size => 3; for PMCFG_CFG0_Field use (Constant_High => 0, Sticky_Rising_Edge => 1, Sticky_Falling_Edge => 2, Sticky_Rising_Falling_Edge => 3, High_Level => 4, Low_Level => 5, Constant_Zero => 6, Event => 7); -- PMCFG_CFG array type PMCFG_CFG_Field_Array is array (0 .. 7) of PMCFG_CFG0_Field with Component_Size => 3, Size => 24; -- Type definition for PMCFG_CFG type PMCFG_CFG_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CFG as a value Val : HAL.UInt24; when True => -- CFG as an array Arr : PMCFG_CFG_Field_Array; end case; end record with Unchecked_Union, Size => 24; for PMCFG_CFG_Field use record Val at 0 range 0 .. 23; Arr at 0 range 0 .. 23; end record; -- Pattern match interrupt bit slice configuration register type PMCFG_Register is record -- Determines whether slice 0 is an endpoint. PROD_ENDPTS0 : PMCFG_PROD_ENDPTS0_Field := NXP_SVD.PINT.No_Effect; -- Determines whether slice 1 is an endpoint. PROD_ENDPTS1 : PMCFG_PROD_ENDPTS1_Field := NXP_SVD.PINT.No_Effect; -- Determines whether slice 2 is an endpoint. PROD_ENDPTS2 : PMCFG_PROD_ENDPTS2_Field := NXP_SVD.PINT.No_Effect; -- Determines whether slice 3 is an endpoint. PROD_ENDPTS3 : PMCFG_PROD_ENDPTS3_Field := NXP_SVD.PINT.No_Effect; -- Determines whether slice 4 is an endpoint. PROD_ENDPTS4 : PMCFG_PROD_ENDPTS4_Field := NXP_SVD.PINT.No_Effect; -- Determines whether slice 5 is an endpoint. PROD_ENDPTS5 : PMCFG_PROD_ENDPTS5_Field := NXP_SVD.PINT.No_Effect; -- Determines whether slice 6 is an endpoint. PROD_ENDPTS6 : PMCFG_PROD_ENDPTS6_Field := NXP_SVD.PINT.No_Effect; -- unspecified Reserved_7_7 : HAL.Bit := 16#0#; -- Specifies the match contribution condition for bit slice 0. CFG : PMCFG_CFG_Field := (As_Array => False, Val => 16#0#); end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for PMCFG_Register use record PROD_ENDPTS0 at 0 range 0 .. 0; PROD_ENDPTS1 at 0 range 1 .. 1; PROD_ENDPTS2 at 0 range 2 .. 2; PROD_ENDPTS3 at 0 range 3 .. 3; PROD_ENDPTS4 at 0 range 4 .. 4; PROD_ENDPTS5 at 0 range 5 .. 5; PROD_ENDPTS6 at 0 range 6 .. 6; Reserved_7_7 at 0 range 7 .. 7; CFG at 0 range 8 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Pin interrupt and pattern match (PINT) type PINT_Peripheral is record -- Pin Interrupt Mode register ISEL : aliased ISEL_Register; -- Pin interrupt level or rising edge interrupt enable register IENR : aliased IENR_Register; -- Pin interrupt level or rising edge interrupt set register SIENR : aliased SIENR_Register; -- Pin interrupt level (rising edge interrupt) clear register CIENR : aliased CIENR_Register; -- Pin interrupt active level or falling edge interrupt enable register IENF : aliased IENF_Register; -- Pin interrupt active level or falling edge interrupt set register SIENF : aliased SIENF_Register; -- Pin interrupt active level or falling edge interrupt clear register CIENF : aliased CIENF_Register; -- Pin interrupt rising edge register RISE : aliased RISE_Register; -- Pin interrupt falling edge register FALL : aliased FALL_Register; -- Pin interrupt status register IST : aliased IST_Register; -- Pattern match interrupt control register PMCTRL : aliased PMCTRL_Register; -- Pattern match interrupt bit-slice source register PMSRC : aliased PMSRC_Register; -- Pattern match interrupt bit slice configuration register PMCFG : aliased PMCFG_Register; end record with Volatile; for PINT_Peripheral use record ISEL at 16#0# range 0 .. 31; IENR at 16#4# range 0 .. 31; SIENR at 16#8# range 0 .. 31; CIENR at 16#C# range 0 .. 31; IENF at 16#10# range 0 .. 31; SIENF at 16#14# range 0 .. 31; CIENF at 16#18# range 0 .. 31; RISE at 16#1C# range 0 .. 31; FALL at 16#20# range 0 .. 31; IST at 16#24# range 0 .. 31; PMCTRL at 16#28# range 0 .. 31; PMSRC at 16#2C# range 0 .. 31; PMCFG at 16#30# range 0 .. 31; end record; -- Pin interrupt and pattern match (PINT) PINT_Periph : aliased PINT_Peripheral with Import, Address => System'To_Address (16#40004000#); -- Pin interrupt and pattern match (PINT) SECPINT_Periph : aliased PINT_Peripheral with Import, Address => System'To_Address (16#40005000#); end NXP_SVD.PINT;
alloy4fun_models/trashltl/models/16/Eh53ZeLfKrzhzxFXm.als
Kaixi26/org.alloytools.alloy
0
1225
<reponame>Kaixi26/org.alloytools.alloy open main pred idEh53ZeLfKrzhzxFXm_prop17 { all f: File |always (eventually f in Trash) implies File' = File - f } pred __repair { idEh53ZeLfKrzhzxFXm_prop17 } check __repair { idEh53ZeLfKrzhzxFXm_prop17 <=> prop17o }
source/tasking/required/s-taprob.ads
ytomino/drake
33
7493
<filename>source/tasking/required/s-taprob.ads pragma License (Unrestricted); -- implementation unit required by compiler with System.Synchronous_Objects; package System.Tasking.Protected_Objects is -- required by compiler subtype Protected_Entry_Index is Entry_Index range Null_Entry .. Max_Entry; subtype Positive_Protected_Entry_Index is Protected_Entry_Index range 1 .. Max_Entry; -- not req type Barrier_Function_Pointer is access function ( O : Address; E : Protected_Entry_Index) return Boolean; type Entry_Action_Pointer is access procedure ( O : Address; P : Address; E : Protected_Entry_Index); -- required by compiler type Entry_Body is record Barrier : Barrier_Function_Pointer; Action : Entry_Action_Pointer; end record; pragma Suppress_Initialization (Entry_Body); -- required for protected object by compiler type Protection is limited record Lock : Synchronous_Objects.RW_Lock; end record; pragma Suppress_Initialization (Protection); procedure Initialize_Protection ( Object : not null access Protection; Ceiling_Priority : Integer); procedure Finalize_Protection (Object : in out Protection); -- required for protected procedure by compiler procedure Lock (Object : not null access Protection); -- required for protected function by compiler procedure Lock_Read_Only (Object : not null access Protection); -- required for protected procedure/function by compiler procedure Unlock (Object : not null access Protection); -- required by compiler (s-taprob.ads) function Get_Ceiling (Object : not null access Protection) return Any_Priority; -- unimplemented subprograms required by compiler -- Set_Ceiling -- protected type be expanded below: -- -- protected type protected1__rwT is -- ... subprograms ... -- end protected1__rwT; -- type protected1__rwTV is limited record -- _object : aliased system__tasking__protected_objects__protection; -- end record; -- procedure protected1__rw__procN (_object : in out protected1__rwTV); -- procedure protected1__rw__procP (_object : in out protected1__rwTV); -- freeze protected1__rwTV [ -- procedure protected1__rwTVIP (_init : in out protected1__rwTV) is -- begin -- $system__tasking__protected_objects__initialize_protection ( -- _init._object'unchecked_access, -- system__tasking__unspecified_priority, objectL => 0); -- return; -- end protected1__rwTVIP; -- ] -- -- procedure protected1___finalizer is -- A24b : constant boolean := $ada__exceptions__triggered_by_abort; -- E25b : ada__exceptions__exception_occurrence; -- R26b : boolean := false; -- begin -- system__soft_links__abort_defer.all; -- if ... initialization is completed ... then -- B27b : begin -- ... finalize components ... -- exception -- when others => -- null; -- end B27b; -- $system__tasking__protected_objects__finalize_protection ( -- protected1__rwTV!(rw)._object); -- end if; -- if R26b and then not A24b then -- $ada__exceptions__raise_from_controlled_operation (E25b); -- end if; -- system__soft_links__abort_undefer.all; -- return; -- end protected1___finalizer; -- -- procedure protected1__rw__procP (_object : in out protected1__rwTV) is -- procedure protected1__rw__procP___finalizer is -- begin -- $system__tasking__protected_objects__unlock (_object._object' -- unchecked_access, objectL => 0); -- system__soft_links__abort_undefer.all; -- return; -- end protected1__rw__procP___finalizer; -- begin -- system__soft_links__abort_defer.all; -- $system__tasking__protected_objects__lock (_object._object' -- unchecked_access, objectL => 0); -- B12b : begin -- protected1__rw__procN (_object); -- at end -- protected1__rw__procP___finalizer; -- end B12b; -- return; -- end protected1__rw__procP; -- suffix N is body of protected subprogram -- suffix P is locking wrapper end System.Tasking.Protected_Objects;
programs/oeis/211/A211668.asm
karttu/loda
0
8246
<reponame>karttu/loda ; A211668: Number of iterations sqrt(sqrt(sqrt(...(n)...))) such that the result is < 3. ; 0,0,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3 mov $1,8 lpb $0,1 div $0,$1 add $0,1 add $1,3 lpe sub $1,8 div $1,3
src/grammar/STQLL.g4
andersonjwan/tltk-mtl-ext
1
2576
/** * Spatio-Temporal Quality Logic Lexer (STQLL). */ lexer grammar STQLL; WS : [ \t\r\n]+ -> skip ; SET : ('EMPTYSET' | 'UNIVERSE') ; LPAREN : '(' ; RPAREN : ')' ; LBRACK : '[' ; RBRACK : ']' ; AT : '@' ; COMMA : ',' ; UNDERSCORE : '_' ; NEGATION : ('~' | '!' | 'not') ; MINUS : '-' ; RELOP : ('<' | '>' | '<=' | '>=') ; EQUALITYOP : ('==' | '!=') ; NEXTOP : ('next' | 'X') ('_')? (TIME_RNGE | FRAME_RNGE)? ; FUTUREOP : ('finally' | 'eventually' | 'F' | '<>') ('_')? (TIME_RNGE | FRAME_RNGE)? ; GLOBALLYOP : ('globally' | 'always' | 'G' | '[]')+ ('_')? (TIME_RNGE | FRAME_RNGE)? ; UNTILOP : ('until' | 'U') ('_')? (TIME_RNGE | FRAME_RNGE)? ; RELEASEOP : ('release' | 'R') ('_')? (TIME_RNGE | FRAME_RNGE)? ; UNTILNSOP : ('untilns' | 'Uns') ('_')? (TIME_RNGE | FRAME_RNGE)? ; RELEASENSOP : ('releasens' | 'Rns') ('_')? (TIME_RNGE | FRAME_RNGE)? ; ANDOP : ('and' | '/\\' | '&&' | '&') ; OROP : ('or' | '\\/' | '||' | '|') ; QUANTIFIEROP : (ExistsOp | ForAllOp) ; fragment ExistsOp : ('EXISTS' | 'E') ; fragment ForAllOp : ('FORALL' | 'A') ; SPQUANTIFIEROP : ('is_nonempty' | 'is_universe') ; PROPOP : (IMPLIESOP | EQUIVOP) ; IMPLIESOP : ('implies' | '->') ; EQUIVOP : ('iff' | '<->') ; SPACEOP : ('I' | 'C') ; // Constants CONST_TIME : 'C_TIME' ; CONST_FRAME : 'C_FRAME' ; CRT : ('LM' | 'RM' | 'TM' | 'BM' | 'CT') ; // Literals BOOLEAN : (TRUE | FALSE) ; fragment TRUE : ('TRUE' | 'true') ; fragment FALSE : ('FALSE' | 'false') ; INF : 'inf' ; REAL : (Digits '.' Digits) ; INT : (Digits) ; fragment Digits : [0-9]+ ; // Variables VAR : PREFIX LETTER (LETTER | [0-9] | '_')* ; fragment PREFIX : 'Var_' ; fragment LETTER : [a-zA-Z]+ ; fragment TIME_RNGE : 'ts:' ; fragment FRAME_RNGE : 'fr:' ; PREDICATE : [a-z]+ ([a-zA-Z] | [0-9] | '_')* ;
syntax-antlr/src/main/antlr/Lazo.g4
rpfister102/lazo-specification
1
4790
grammar Lazo; @header { package bazolang; } // Parser Rules // ------------ program : NLS* versionDirective interfaceDeclaration* contractDeclaration EOF ; versionDirective : 'version' INTEGER '.' INTEGER NLS ; interfaceDeclaration : 'interface' IDENTIFIER '{' NLS* interfacePart* '}' NLS ; interfacePart : functionSignature NLS ; functionSignature : annotation* ( type | '(' type (',' type)* ')' ) IDENTIFIER '(' paramList? ')' ; contractDeclaration : 'contract' IDENTIFIER ('is' IDENTIFIER (',' IDENTIFIER)* )? '{' (NLS | contractPart)* '}' NLS? ; contractPart : variableDeclaration | structDeclaration | errorDeclaration | enumDeclaration | eventDeclaration | constructorDeclaration | functionDeclaration ; // Declarations // ------------ variableDeclaration : 'readonly'? type IDENTIFIER assignment? NLS; structDeclaration : 'struct' IDENTIFIER '{' NLS* structField* '}' NLS ; errorDeclaration : 'error' IDENTIFIER '{' NLS* structField* '}' NLS ; structField : type IDENTIFIER NLS; eventDeclaration : 'event' IDENTIFIER '(' paramList? ')' NLS; enumDeclaration : 'enum' IDENTIFIER '{' NLS* IDENTIFIER (',' NLS* IDENTIFIER)* NLS*'}' NLS ; constructorDeclaration : annotation* 'constructor' '(' paramList? ')' statementBlock ; functionDeclaration : annotation* functionHead statementBlock ; functionHead : 'internal'? 'function' (type | '(' type (',' type)*')') IDENTIFIER '(' paramList? ')' ; annotation : '[' IDENTIFIER (':' expression)? ']' NLS ; paramList : parameter (',' parameter)* (',' defaultParameter)* ; parameter : type IDENTIFIER ; defaultParameter : parameter assignment ; // Types // ----- type : arrayType | mapType | IDENTIFIER ; arrayType : IDENTIFIER '[' ']' ; mapType : 'Map' '<' type ',' type '>' ; // Statements // ---------- statementBlock : '{' ( NLS | statement )* '}'; statement : assignmentStatement | returnStatement | expressionStatement | sendStatement | emitStatement | variableDeclaration | ifStatement | forEachStatement | forStatement | mapForEachStatement | breakStatement | continueStatement | throwStatement ; emitStatement : 'emit' expression NLS ; deleteStatement : 'delete' expression NLS ; ifStatement : 'if' '(' expression ')' statementBlock ('else if' '(' expression ')' statementBlock)? ('else' statementBlock)? ; forStatement : 'for' '(' IDENTIFIER ':' rangeStatement ')' statementBlock ; forEachStatement : 'foreach' '(' (IDENTIFIER ',')? type IDENTIFIER ':' expression ')' statementBlock ; mapForEachStatement : 'foreach' '(' type IDENTIFIER ',' type IDENTIFIER ':' expression ')' statementBlock ; breakStatement : 'break' NLS ; continueStatement : 'continue' NLS ; rangeStatement : expression? 'to' expression ('by' expression)? ; expressionStatement : expression NLS ; sendStatement : expression '.' 'send' '(' expression? ')' NLS ; argumentList : expression (',' expression)* (',' namedArgument)* | namedArgument (',' namedArgument)* ; namedArgument : IDENTIFIER '=' expression ; assignmentStatement : expression assignment NLS ; assignment : '=' expression ; designator : IDENTIFIER ; throwStatement : 'throw' IDENTIFIER '{' argumentList? '}' NLS ; returnStatement : 'return' (expression (',' expression)*)? NLS ; // Expressions // ----------- expression : expression ( '++' | '--' ) | expression '[' expression ']' // index access | expression '.' IDENTIFIER // member access | expression '(' argumentList? ')' // call | newCreation | '(' expression ')' // --- End of Level 1 ---- | <assoc=right> ( '++' | '--' | '+' | '-' | '!' | TILDE ) expression | <assoc=right> '(' type ')' expression // cast | <assoc=right> expression '**' expression | expression ('*' | '/' | '%') expression | expression ('+' | '-') expression | expression ('<<' | '>>') expression | expression ('<' | '>' | '<=' | '>=') expression | expression ('==' | '!=') expression | expression '&' expression | expression '^' expression | expression '|' expression | expression '&&' expression | expression '||' expression | <assoc=right> expression '?' expression ':' expression | <assoc=right> expression ( '+' | '-' | '**' | '*' | '/' | '%' | '<<' | '>>' | '&' | '^' | '|' ) '=' expression | operand ; newCreation : structCreation | arrayCreation | mapCreation ; structCreation : 'new' IDENTIFIER '(' argumentList? ')' ; arrayCreation : 'new' IDENTIFIER ( '[' expression ']' ('{' '}')? | '[' ']' '{' expression (',' expression)* '}' ); mapCreation : 'new' mapType '(' ')'; operand : literal | designator ; literal : INTEGER | CHARACTER | STRING | BOOL ; // End of Expressions // --------------------------------------------------- // Lexer Tokens // --------------------------------------------------- // Reserved Keywords (Hint: Order by asc) // ----------------- BREAK: 'break' ; BY: 'by' ; CONSTRUCTOR: 'constructor' ; CONTINUE: 'continue' ; CONTRACT: 'contract' ; ELSE: 'else' ; EMIT: 'emit' ; ENUM: 'enum' ; EVENT: 'event' ; FOR: 'for' ; FOREACH: 'foreach' ; FUNCTION: 'function' ; INTERFACE: 'interface' ; INTERNAL: 'internal' ; IF: 'if' ; IS: 'is' ; MAP: 'Map' ; READONLY: 'readonly' ; RETURN: 'return' ; STRUCT: 'struct' ; THROW: 'throw'; TO: 'to' ; VERSION: 'version' ; BOOL : 'true' | 'false' ; // Reserved Keywords which are not used in the language (prohibited) - Hint: Order by asc // ---------------- ABSTRACT: 'abstract' ; AS: 'as' ; CASE: 'case' ; CATCH: 'catch' ; CONST: 'const' ; EXTENDS: 'extends' ; EXTERNAL: 'external' ; FINALLY: 'finally' ; GOTO: 'goto' ; IMPLEMENTS: 'implements' ; NULL: 'null'; OUT: 'out' ; OVERRIDE: 'override' ; PRIVATE: 'private' ; PUBLIC: 'public' ; REF: 'ref' ; STATIC: 'static' ; SWITCH: 'switch' ; TRY: 'try' ; VAR: 'var' ; VIRTUAL: 'virtual' ; WHILE: 'while' ; // ---------------- // Punctuation marks // ---------------- LPAREN: '(' ; RPAREN: ')' ; LBRACE: '{' ; RBRACE: '}' ; LBRACK: '[' ; RBRACK: ']' ; SEMI: ';'; COMMA: ','; DOT: '.'; // ----- // Arithmatics // ----------- PLUS: '+'; MIN: '-'; MUL: '*'; DIV: '/'; MOD: '%'; EXP: '**'; LSHIFT: '<<'; RSHIFT: '>>'; // Logical Operators AND: '&&'; OR: '||'; NOT: '!'; BITWISE_AND: '&'; BITWISE_OR: '|'; CARET: '^'; TILDE: [\u007e]; // Comparison // --------- EQ: '=='; NEQ: '!='; GT: '>'; GT_EQ: '>='; LT: '<'; LT_EQ: '<='; // --------- IDENTIFIER : ( '_' | ALPHA_LETTER) ( '_' | ALPHA_LETTER | DEC_DIGIT )* ; fragment ALPHA_LETTER : [a-zA-Z] ; INTEGER : DEC_DIGIT_LIT | HEX_DIGIT_LIT ; HEX_DIGIT_LIT : '0x' HEX_DIGIT+ ; fragment HEX_DIGIT : [0-9a-fA-F] ; DEC_DIGIT_LIT : DEC_DIGIT+ ; fragment DEC_DIGIT : [0-9] ; STRING : '"' UNICODE_CHAR* '"' ; CHARACTER : '\'' ( ESCAPED_CHAR | UNICODE_CHAR ) '\'' ; fragment ESCAPED_CHAR : '\\' ( '0' | 'n' | '\\' | '\'' | '"' ) ; fragment UNICODE_CHAR : ~[\r\n] // any Unicode code point except carrige return & new line ; NLS : NL+; fragment NL : [\n] | [\r\n] ; // Skip Rules // -------- WHITE_SPACE : [ \t\f\r]+ -> skip // skip spaces, tabs, form feed and carrige return ; LINE_COMMENT : '//' ~[\r\n]* -> skip ; BLOCK_COMMENT : '/*' .*? '*/' -> skip ;
lista1/q3.asm
vags-cin/awesome-bootloader
8
104509
<reponame>vags-cin/awesome-bootloader<filename>lista1/q3.asm org 0x7c00 jmp 0x0000:start ; ♥ ♥ ♥ ♥ ♥ ; Assembly is love ; @ovictoraurelio stringH: times 64 db 0 stringL: times 64 db 0 stringMesmoTamanho: db 13, 10, 'As strings tem o mesmo tamanho' , 13, 10 , 0 start: ; ax is a reg to geral use ; ds mov ax,0 ;ax = 0 mov ds, ax mov es, ax read1: mov di, stringH mov ch,0 ; clear counter thats have length of stringH call get_string call new_line read2: mov di, stringL mov cl,0 ; clear counter thats have length of stringL call get_string sub ch,cl ; removing the stringL.length of stringH.length because I have INCREMENT ch and cl always .. call new_line logical: cmp cl,ch je .mesmoTamanho cmp cl,ch jl .printH .printL: mov cl,0 mov si, stringL call print_string call new_line jmp read1 .printH: mov cl,0 mov si, stringH call print_string call new_line jmp read1 .mesmoTamanho: mov si, stringMesmoTamanho call print_string call new_line jmp read1 get_string: .loop: mov ah, 0 ;instruction to read of keyboard int 16h ;interruption to read of keyboard cmp al, 0x1B je end ;if equal ESC jump to end cmp al, 0x0D je .done ;if equal ENTER done of string call print_char ;show char on screen stosb ;saves char on memory ;;counters... inc ch ;; counter that contain length of stringH inc cl ;; counter that contain length of stringL jmp .loop ;return to loop, read antoher char .done: mov al, 0 ;adding 0 to knows end of string stosb ret ;*** ; ** Print a string ; print_string: lodsb ; load al, si index and si++ cmp al,0 ; compare al with 0 (0, was set as end of string) je endprintstring mov ah,0xe ; instruction to show on screen mov bh,13h int 10h ; call video interrupt jmp print_string endprintstring: ret ;*** ; ** Print new line ;*** new_line: mov al, 10 call print_char mov al, 13 call print_char ret ;*** ; ** Print a char ;***/ print_char: ;imprime o caracter em al mov ah, 0x0e ;instrução para imprimir na tela int 10h ;interrup de tela ret end: jmp $ times 510 - ($ - $$) db 0 dw 0xaa55
Sintatico/analiseSintANTLR/src/gramaticacmenos.g4
heullvers/TPCompiladores
0
2963
grammar gramaticacmenos; programa: declaracao_lista; declaracao_lista: (declaracao)+; declaracao: var_declaracao | fun_declaracao; var_declaracao: tipo_especificador ident ';' | tipo_especificador ident abre_colchete num_int fecha_colchete (abre_colchete num_int fecha_colchete)*; tipo_especificador: 'int'|'float'|'char'|'void'|'struct' ident abre_chave atributos_declaracao fecha_chave; atributos_declaracao: var_declaracao (var_declaracao)*; fun_declaracao: tipo_especificador ident '(' params ')' composto_decl; params: param_lista | 'void'; param_lista: param (',' param)*; param: tipo_especificador ident | tipo_especificador ident abre_colchete fecha_colchete; composto_decl: abre_chave local_declaracoes comando_lista fecha_chave; local_declaracoes: (var_declaracao)*; comando_lista: (comando)*; comando: expressao_decl | composto_decl | selecao_decl | iteracao_decl | retorno_decl; expressao_decl: expressao ';' | ';'; selecao_decl: 'if' '(' expressao ')' comando | 'if' '(' expressao ')' comando 'else' comando; iteracao_decl: 'while' '(' expressao ')' comando; retorno_decl: 'return' ';' | 'return' expressao; expressao: var '=' expressao | expressao_simples; var: ident | ident abre_colchete expressao fecha_colchete (abre_colchete expressao fecha_colchete)*; expressao_simples: expressao_soma relacional expressao_soma | expressao_soma; relacional: '<=' | '<' | '>' | '>=' | '==' | '!='; expressao_soma: termo ( soma termo )*; soma: '+' | '-'; termo: fator (mult fator)*; mult: '*' | '/'; fator: '(' expressao ')' | var | ativacao | num | num_int; ativacao: ident '(' args ')'; args: arg_lista; arg_lista: expressao (',' expressao)*; num: soma digito (digito '.' digito (digito)*)* | digito (digito '.' digito (digito)*)*; num_int: digito (digito)*; digito: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'; ident: letra ( letra | digito )*; letra: 'a'|'b'|'c'|'d'|'e'|'f'|'g'|'h'|'i'|'j'|'k'|'l'|'m'|'n'|'o'|'p'|'q'| 'r'|'s'|'t'|'u'|'v'|'w'|'x'|'y'|'z'; abre_chave: '{'; fecha_chave: '}'; abre_colchete: '['; fecha_colchete: ']'; WS:[ \t\r\n\u000C]+ -> skip;
source/asis/asis-gela-visibility-create.adb
faelys/gela-asis
4
30279
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- - - - - - - - - - - - - - - - -- -- Read copyright and license at the end of this file -- ------------------------------------------------------------------------------ -- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $: with Asis.Clauses; with Asis.Elements; with Asis.Statements; with Asis.Declarations; with Asis.Compilation_Units; with Asis.Gela.Debug; with Asis.Gela.Utils; with Asis.Gela.Classes; with Asis.Gela.Errors; with Asis.Gela.Element_Utils; with Asis.Gela.Visibility.Utils; with Asis.Gela.Private_Operations; with XASIS.Types; with XASIS.Utils; with Ada.Wide_Text_IO; package body Asis.Gela.Visibility.Create is procedure Find_Homograph (Defining_Name : in Asis.Defining_Name; Point : in Visibility.Point; Homograph : out Asis.Defining_Name; Prev : out Region_Item_Access); procedure Region_Item (Defining_Name : in Asis.Defining_Name; Point : in out Visibility.Point; Tipe : in Asis.Declaration; Overridden : out Boolean); function Is_Public_Unit (Element : in Asis.Declaration) return Boolean; function Is_Overridden (First, Second : Asis.Defining_Name) return Boolean; procedure Is_Character (Name : in Asis.Defining_Name; Is_Wide_Wide : out Boolean; Is_Wide_Char : out Boolean; Is_Char : out Boolean); function Is_Library_Unit_Decl (Element : Asis.Element) return Boolean; -------------- -- New_Part -- -------------- procedure New_Part (Region : in Region_Access; Kind : in Part_Kinds; Parent_Item : in Region_Item_Access; Element : in Asis.Element; Check_Private : in Boolean; Result : out Part_Access) is use Asis.Elements; -------------------------------- -- Is_Private_Part_Of_Package -- -------------------------------- function Is_Private_Part_Of_Package return Boolean is Parent : Asis.Element := Enclosing_Element (Element); begin if Kind = A_Private_Part and Declaration_Kind (Parent) = A_Package_Declaration then return True; else return False; end if; end Is_Private_Part_Of_Package; Part : Part_Access; Next : Part_Access := Region.Last_Part; Prev : Part_Access; Start : Point; begin -- Iterate over region parts -- Invariant: (Prev = null and Next = Region.Last_Part) -- or (Prev != null and Prev.Next = Next) while Next /= null loop if Next.Kind = Kind then Result := Next; return; end if; exit when Next.Kind < Kind; Prev := Next; Next := Prev.Next; end loop; if Region.First_Part.Region = null then Part := Region.First_Part'Access; else Part := new Part_Node; end if; Part.Dummy_Item.Part := Part; Part.Region := Region; Part.Next := Next; Part.Kind := Kind; Part.Parent_Item := Parent_Item; Part.Last_Item := Part.Dummy_Item'Access; Part.Element := Element; if Prev = null then Region.Last_Part := Part; else Prev.Next := Part; end if; if Check_Private and then Is_Private_Part_Of_Package and then not Is_Part_Of_Instance (Element) then Start := (Item => Part.Last_Item); -- if not empty private part: if Element_Kind (Element) /= A_Defining_Name then Utils.Set_Place (Element, Start); -- set place to private part to enable visibility check when -- we call Type_From_Declaration (List (J), Spec_View); -- where Spec_View is this Element (first in private part). end if; Private_Operations.On_Private_Part (Enclosing_Element (Element), Start); end if; Result := Part; end New_Part; ------------ -- Region -- ------------ procedure Region (Element : in Asis.Element; Point : in out Visibility.Point) is use Asis.Elements; function Debug_Image return Wide_String is Spaces : constant Wide_String (1 .. 20) := (others => ' '); Depth : Natural := 0; begin if Point.Item.Part.Region /= null then Depth := Point.Item.Part.Region.Depth; end if; return Spaces (1 .. 2 * Depth) & Debug_Image (Element) & " ==> " & Debug_Image (Point.Item.Part.Region.First_Part.Element); end Debug_Image; pragma Assert (Debug.Run (Element, Debug.Create_Region) or else Debug.Dump (Debug_Image)); Child : Region_Access := new Region_Node; Part : Part_Access; Kind : Part_Kinds; begin Child.Next := Point.Item.Part.Region.First_Child; Child.Depth := Point.Item.Part.Region.Depth + 1; if Is_Part_Of_Implicit (Element) then Kind := A_Public_Limited_View_Part; else Kind := A_Visible_Part; end if; if Is_Nil (Enclosing_Element (Element)) then Child.Library_Unit := True; Child.Public_Child := Is_Public_Unit (Element); else Child.Library_Unit := False; Child.Public_Child := True; end if; New_Part (Region => Child, Kind => Kind, Parent_Item => Point.Item, Element => Element, Check_Private => False, Result => Part); Point.Item.Part.Region.First_Child := Child; Point := (Item => Part.Last_Item); end Region; ----------------------- -- Completion_Region -- ----------------------- procedure Completion_Region (Element : in Asis.Element; Point : in out Visibility.Point; Is_Instance : in Boolean; RR_Clause : in Boolean) is use Asis.Declarations; Name : Asis.Expression; Decl : Asis.Declaration; Prev : Visibility.Point; Next : Part_Access; Kind : Part_Kinds; begin if RR_Clause then Name := Representation_Clause_Name (Element.all); Decl := Corresponding_Name_Declaration (Name.all); elsif Is_Instance then Decl := Asis.Elements.Enclosing_Element (Element); elsif Is_Subunit (Element) then Decl := Corresponding_Body_Stub (Element); if XASIS.Utils.Is_Completion (Decl) then Decl := XASIS.Utils.Declaration_For_Completion (Decl); end if; else Decl := XASIS.Utils.Declaration_For_Completion (Element); end if; if Asis.Elements.Declaration_Kind (Element) = A_Package_Declaration then Kind := A_Visible_Part; else Kind := A_Body_Part; end if; Prev := Utils.Find_Region (Decl); New_Part (Region => Prev.Item.Part.Region, Kind => Kind, Parent_Item => Point.Item, Element => Element, Check_Private => False, Result => Next); Point.Item := Next.Last_Item; end Completion_Region; ---------------------- ---------------- -- Check_Part -- ---------------- procedure Check_Part (Item : in Region_Item_Access; Kind : in Part_Kinds; Element : in Asis.Element) is Part : Part_Access; Next : Region_Item_Access := Item; begin if Item.Part.Kind /= Kind then New_Part (Region => Item.Part.Region, Kind => Kind, Parent_Item => Item.Part.Parent_Item, Element => Element, Result => Part, Check_Private => True); Item.Part := Part; else Part := Item.Part; end if; Item.Next := Part.Last_Item; Part.Last_Item := Item; end Check_Part; -------------------- -- Find_Homograph -- -------------------- procedure Find_Homograph (Defining_Name : in Asis.Defining_Name; Point : in Visibility.Point; Homograph : out Asis.Defining_Name; Prev : out Region_Item_Access) is use Asis.Gela.Utils; Name : constant Asis.Program_Text := XASIS.Utils.Direct_Name (Defining_Name); Decl : constant Asis.Element := Asis.Elements.Enclosing_Element (Defining_Name); begin Prev := Utils.Find_Name (Name, Point, No_Parent_Region => True); if Prev = null or else Prev.Count = 0 or else Asis.Elements.Declaration_Kind (Decl) in A_Procedure_Instantiation .. A_Function_Instantiation then -- Instantiation hasn't expanded at this moment yet, so we can't -- check it's profile and find homographs Homograph := Asis.Nil_Element; return; end if; declare Item : aliased Visibility.Region_Item (Definition); Index : Asis.ASIS_Natural := 0; Unit : constant Asis.Compilation_Unit := Asis.Elements.Enclosing_Compilation_Unit (Defining_Name); List : Asis.Defining_Name_List (1 .. Prev.Count + 1); begin Item.Part := Point.Item.Part; Item.Next := Point.Item.Part.Last_Item; Item.Defining_Name := Defining_Name; Item.Count := Prev.Count + 1; Item.Prev := Prev; Item.Still_Hidden := False; Utils.Find_All (Item'Unchecked_Access, Index, List, Unit, (Item => Item'Unchecked_Access), True); for I in 1 .. Index loop if not Asis.Elements.Is_Equal (Defining_Name, List (I)) and then Are_Homographs (Defining_Name, List (I), Decl) then Homograph := List (I); return; end if; end loop; Homograph := Asis.Nil_Element; end; end Find_Homograph; ------------------ -- Is_Character -- ------------------ Char : Classes.Type_Info; Wide : Classes.Type_Info; Wide_Wide : Classes.Type_Info; procedure Is_Character (Name : in Asis.Defining_Name; Is_Wide_Wide : out Boolean; Is_Wide_Char : out Boolean; Is_Char : out Boolean) is use Asis.Elements; Kind : constant Asis.Defining_Name_Kinds := Defining_Name_Kind (Name); Decl : Asis.Declaration := Enclosing_Element (Name); Tipe : Classes.Type_Info; begin Is_Wide_Wide := False; Is_Wide_Char := False; Is_Char := False; if Kind /= A_Defining_Character_Literal then return; end if; if Classes.Is_Not_Type (Char) then Char := Classes.Type_From_Declaration (XASIS.Types.Character, XASIS.Types.Character); Wide := Classes.Type_From_Declaration (XASIS.Types.Wide_Character, XASIS.Types.Wide_Character); Wide_Wide := Classes.Type_From_Declaration (XASIS.Types.Wide_Wide_Character, XASIS.Types.Wide_Wide_Character); end if; Decl := Enclosing_Element (Enclosing_Element (Decl)); Tipe := Classes.Type_From_Declaration (Decl, Decl); if Classes.Is_Child_Of (Tipe, Char) then Is_Wide_Wide := True; Is_Wide_Char := True; Is_Char := True; return; elsif Classes.Is_Child_Of (Tipe, Wide) then Is_Wide_Wide := True; Is_Wide_Char := True; Is_Char := False; return; elsif Classes.Is_Child_Of (Tipe, Wide_Wide) then Is_Wide_Wide := True; Is_Wide_Char := False; Is_Char := False; return; end if; end Is_Character; -------------------------- -- Is_Library_Unit_Decl -- -------------------------- function Is_Library_Unit_Decl (Element : Asis.Element) return Boolean is use Asis.Elements; use Asis.Compilation_Units; Class : Unit_Classes; Enclosing_Unit : constant Compilation_Unit := Enclosing_Compilation_Unit (Element); begin if Utils.Is_Top_Declaration (Element) then Class := Unit_Class (Enclosing_Unit); return Class = A_Public_Declaration or else Class = A_Public_Declaration_And_Body or else Class = A_Private_Declaration; else return False; end if; end Is_Library_Unit_Decl; ------------------- -- Is_Overridden -- ------------------- function Is_Overridden (First : Asis.Defining_Name; Second : Asis.Defining_Name) return Boolean is -- If First Overridden by Second use Asis.Elements; begin if not Is_Part_Of_Implicit (First) then -- If redeclaration return False; elsif not Is_Part_Of_Implicit (Second) then return True; elsif Is_Part_Of_Inherited (Second) then return True; elsif Operator_Kind (Second) = A_Not_Equal_Operator then -- This case not in RM, but when user defines "=" there is -- an implicit declaration of "/=" and it should override -- predefined "/=". return True; else return False; end if; end Is_Overridden; -------------------- -- Is_Public_Unit -- -------------------- function Is_Public_Unit (Element : in Asis.Declaration) return Boolean is use Asis.Compilation_Units; use type Asis.Unit_Classes; Unit : constant Asis.Compilation_Unit := Asis.Elements.Enclosing_Compilation_Unit (Element); Class : constant Asis.Unit_Classes := Unit_Class (Unit); begin if Class = Asis.A_Private_Declaration then return False; end if; return True; end Is_Public_Unit; ----------------- -- Region_Item -- ----------------- procedure Region_Item (Defining_Name : in Asis.Defining_Name; Point : in out Visibility.Point; Tipe : in Asis.Declaration; Overridden : out Boolean) is use Asis.Elements; use type Asis.List_Index; Item : Region_Item_Access; Prev : Region_Item_Access; Homograph : Asis.Defining_Name; Is_Wide_Wide : Boolean; Is_Wide_Char : Boolean; Is_Char : Boolean; Library_Unit : Boolean := False; Part_Kind : Part_Kinds; Decl : constant Asis.Element := Enclosing_Element (Defining_Name); begin Overridden := False; if Asis.Declarations.Is_Subunit (Decl) or Utils.Is_Template (Decl) then return; end if; Find_Homograph (Defining_Name, Point, Homograph, Prev); if Assigned (Homograph) then Overridden := not Is_Overridden (Homograph, Defining_Name); if Overridden then return; end if; Element_Utils.Set_Override (Defining_Name, Homograph); end if; Is_Character (Defining_Name, Is_Wide_Wide, Is_Wide_Char, Is_Char); if Is_Wide_Wide then if Is_Char then Item := new Visibility.Region_Item (Visibility.Char); elsif Is_Wide_Char then Item := new Visibility.Region_Item (Visibility.Wide_Char); else Item := new Visibility.Region_Item (Visibility.Wide_Wide_Char); end if; else Item := new Visibility.Region_Item (Definition); Item.Still_Hidden := Element_Kind (Decl) /= A_Statement; Item.Library_Unit := Is_Library_Unit_Decl (Decl); Item.Prev := Prev; Library_Unit := Item.Library_Unit; if Prev /= null then Item.Count := Prev.Count + 1; else Item.Count := 0; end if; end if; Item.Defining_Name := Defining_Name; Item.Part := Point.Item.Part; Part_Kind := Point.Item.Part.Kind; if Library_Unit then if Is_Part_Of_Implicit (Decl) then if Is_Public_Unit (Decl) then Part_Kind := A_Public_Limited_View_Part; else Part_Kind := A_Private_Limited_View_Part; end if; else if Is_Public_Unit (Decl) then Part_Kind := A_Public_Children_Part; else Part_Kind := A_Private_Children_Part; end if; end if; elsif not Assigned (Tipe) and then Part_Kind = A_Visible_Part and then not Gela.Utils.In_Visible_Part (Decl) then Part_Kind := A_Private_Part; end if; Check_Part (Item, Part_Kind, Decl); Point.Item := Item; Utils.Set_Name_Place (Defining_Name, Point); end Region_Item; ------------------ -- Region_Items -- ------------------ procedure Region_Items (Element : in Asis.Element; Point : in out Visibility.Point; Tipe : in Asis.Declaration; Overridden : out Boolean) is use type Asis.Element_Kinds; begin Overridden := False; case Asis.Elements.Element_Kind (Element) is when Asis.A_Declaration => declare Names : constant Asis.Defining_Name_List := Asis.Declarations.Names (Element); begin for I in Names'Range loop Create.Region_Item (Names (I), Point, Tipe, Overridden); if Overridden then return; end if; end loop; end; when A_Statement => declare Names : constant Asis.Defining_Name_List := Asis.Statements.Label_Names (Element); begin for I in Names'Range loop Create.Region_Item (Names (I), Point, Tipe, Overridden); if Overridden then return; end if; end loop; end; when others => null; end case; end Region_Items; ---------------- -- Use_Clause -- ---------------- procedure Use_Clause (Element : in Asis.Element; Point : in out Visibility.Point) is use Asis.Elements; Kind : Item_Kinds; begin case Clause_Kind (Element) is when A_Use_Package_Clause => Kind := Use_Package; when A_Use_Type_Clause => Kind := Use_Type; when others => return; end case; declare use XASIS.Utils; use Asis.Gela.Utils; use Asis.Gela.Errors; Declaration : Asis.Declaration; Item : Region_Item_Access; Name_List : constant Asis.Name_List := Clauses.Clause_Names (Element); Visible : constant Boolean := In_Visible_Part (Element) or else In_Context_Clause (Element); begin for I in Name_List'Range loop Declaration := Selected_Name_Declaration (Name_List (I), True, True); Item := new Visibility.Region_Item (Kind); Item.Part := Point.Item.Part; Point.Item := Item; if Kind = Use_Package then Item.Declaration := Declaration; else Item.Tipe := Classes.Type_From_Declaration (Declaration, Element); end if; if not Visible and Item.Part.Kind = A_Visible_Part then Check_Part (Item, A_Private_Part, Element); else Item.Next := Item.Part.Last_Item; Item.Part.Last_Item := Item; end if; if not Assigned (Declaration) then Report (Name_List (I), Error_Unknown_Name); end if; end loop; end; end Use_Clause; end Asis.Gela.Visibility.Create; ------------------------------------------------------------------------------ -- Copyright (c) 2006-2013, <NAME> -- 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 <NAME>, 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 OWNER 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. ------------------------------------------------------------------------------
source/resolver/program-interpretations-symbols.adb
reznikmm/gela
0
22910
<filename>source/resolver/program-interpretations-symbols.adb -- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Interpretations.Symbols is procedure Step (Self : Iterator'Class; Cursor : in out Symbols.Cursor); ---------- -- Each -- ---------- function Each (Set : Interpretation_Set) return Iterator is begin return (Set => Set); end Each; ----------- -- First -- ----------- overriding function First (Self : Iterator) return Cursor is begin return Result : Cursor := (Index => Self.Set.From, Symbol => <>) do Self.Step (Result); end return; end First; ---------- -- Next -- ---------- overriding function Next (Self : Iterator; Position : Cursor) return Cursor is begin return Result : Cursor := Position do Result.Index := Result.Index + 1; Self.Step (Result); end return; end Next; ---------- -- Step -- ---------- procedure Step (Self : Iterator'Class; Cursor : in out Symbols.Cursor) is begin while Cursor.Index <= Self.Set.To loop declare Item : Interpretation renames Self.Set.Context.Data (Cursor.Index); begin case Item.Kind is when Symbol => Cursor.Symbol := Item.Symbol; when Name | Expression | Expression_Category => null; end case; end; Cursor.Index := Cursor.Index + 1; end loop; Cursor.Index := 0; end Step; end Program.Interpretations.Symbols;
asm/battle.ext.asm
RockmanEXEZone/MMBN45-English-Translation
6
85252
<reponame>RockmanEXEZone/MMBN45-English-Translation<filename>asm/battle.ext.asm .align 4 battle_whichEnemyTilemap: .dh 0xA051,0xA053,0xA055,0xA057,0xA059,0xA05B,0xA05D .dh 0xA052,0xA054,0xA056,0xA058,0xA05A,0xA05C,0xA05E .dh 0xA05F,0xA061,0xA063,0xA065,0xA067,0xA069,0xA06B .dh 0xA060,0xA062,0xA064,0xA066,0xA068,0xA06A,0xA06C
scripts/route11gateupstairs.asm
etdv-thevoid/pokemon-rgb-enhanced
1
24201
Route11GateUpstairsScript: jp DisableAutoTextBoxDrawing Route11GateUpstairsTextPointers: dw Route11GateUpstairsText1 dw Route11GateUpstairsText2 dw Route11GateUpstairsText3 dw Route11GateUpstairsText4 Route11GateUpstairsText1: TX_ASM xor a ld [wWhichTrade], a predef DoInGameTradeDialogue Route11GateUpstairsScriptEnd: jp TextScriptEnd Route11GateUpstairsText2: TX_ASM CheckEvent EVENT_GOT_ITEMFINDER, 1 jr c, .asm_4949b ld a, 30 ; pokemon needed ld [hOaksAideRequirement], a ld a, ITEMFINDER ; oak's aide reward ld [hOaksAideRewardItem], a ld [wd11e], a call GetItemName ld h, d ld l, e ld de, wOaksAideRewardItemName ld bc, ITEM_NAME_LENGTH call CopyData predef OaksAideScript ld a, [hOaksAideResult] dec a jr nz, .asm_494a1 SetEvent EVENT_GOT_ITEMFINDER .asm_4949b ld hl, Route11GateUpstairsText_494a3 call PrintText .asm_494a1 jr Route11GateUpstairsScriptEnd Route11GateUpstairsText_494a3: TX_FAR _Route11GateUpstairsText_494a3 db "@" Route11GateUpstairsText3: TX_ASM ld a, [wSpriteStateData1 + 9] cp SPRITE_FACING_UP jp nz, GateUpstairsScript_PrintIfFacingUp CheckEvent EVENT_BEAT_ROUTE12_SNORLAX ld hl, BinocularsSnorlaxText jr z, .print ld hl, BinocularsNoSnorlaxText .print call PrintText jp TextScriptEnd BinocularsSnorlaxText: TX_FAR _BinocularsSnorlaxText db "@" BinocularsNoSnorlaxText: TX_FAR _BinocularsNoSnorlaxText db "@" Route11GateUpstairsText4: TX_ASM ld hl, Route11GateUpstairsText_494d5 jp GateUpstairsScript_PrintIfFacingUp Route11GateUpstairsText_494d5: TX_FAR _Route11GateUpstairsText_494d5 db "@"
oeis/020/A020781.asm
neoneye/loda-programs
11
92421
; A020781: Decimal expansion of 1/sqrt(24). ; Submitted by <NAME> ; 2,0,4,1,2,4,1,4,5,2,3,1,9,3,1,5,0,8,1,8,3,1,0,7,0,0,6,2,2,5,4,9,0,9,4,9,3,3,0,4,9,5,6,2,3,3,8,8,0,5,5,8,4,4,0,3,6,0,5,7,7,1,3,9,3,7,5,8,0,0,3,1,4,5,4,7,7,6,2,5,2,2,1,1,6,5,4,9,5,2,7,5,8,7,2,0,0,1,9,5 mov $1,1 mov $2,1 mov $3,$0 add $3,8 mov $4,$0 add $4,3 mov $7,10 pow $7,$4 mov $9,10 lpb $3 mov $0,2 mov $4,$2 pow $4,2 mul $4,24 mov $5,$1 pow $5,2 add $4,$5 mov $6,$1 mov $1,$4 mul $6,$2 mul $6,2 mov $2,$6 mov $8,$4 div $8,$7 max $8,2 div $1,$8 div $2,$8 sub $3,1 lpe mov $3,$9 pow $3,$0 div $2,$3 mov $0,$2 mod $0,10
text/searchAndReplace.applescript
adriannier/applescript-functions
7
3030
searchAndReplace("Wello world?", {"W", "w", "?"}, {"H", "W", "!"}) on searchAndReplace(aText, aPattern, aReplacement) (* Search for a pattern and replace it in a string. Pattern and replacement can be a list of multiple values. *) if (class of aPattern) is list and (class of aReplacement) is list then -- Replace multiple patterns with a corresponding replacement -- Check patterns and replacements count if (count of aPattern) is not (count of aReplacement) then error "The count of patterns and replacements needs to match." end if -- Process matching list of patterns and replacements repeat with i from 1 to count of aPattern set aText to searchAndReplace(aText, item i of aPattern, item i of aReplacement) end repeat return aText else if class of aPattern is list then -- Replace multiple patterns with the same text repeat with i from 1 to count of aPattern set aText to searchAndReplace(aText, item i of aPattern, aReplacement) end repeat return aText else if aText does not contain aPattern then return aText else set prvDlmt to text item delimiters -- considering case try set text item delimiters to aPattern set tempList to text items of aText set text item delimiters to aReplacement set aText to tempList as text end try -- end considering set text item delimiters to prvDlmt return aText end if end if end searchAndReplace
src/linted-drawer/src/linted-update_reader.ads
mstewartgallus/linted
0
342
<reponame>mstewartgallus/linted -- Copyright 2016,2017 <NAME> -- -- 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 Linted.Errors; with Linted.KOs; with Linted.Update; with Linted.Triggers; package Linted.Update_Reader is pragma Elaborate_Body; type Event is record Data : Update.Packet; Err : Errors.Error := 0; end record; type Future is limited private with Preelaborable_Initialization; function Is_Live (F : Future) return Boolean; procedure Read (Object : KOs.KO; Signaller : Triggers.Signaller; F : out Future) with Post => Is_Live (F); procedure Read_Wait (F : in out Future; E : out Event) with Pre => Is_Live (F), Post => not Is_Live (F); procedure Read_Poll (F : in out Future; E : out Event; Init : out Boolean) with Pre => Is_Live (F), Post => (if Init then not Is_Live (F) else Is_Live (F)); private Max_Nodes : constant := 2; type Future is range 0 .. Max_Nodes + 1 with Default_Value => 0; end Linted.Update_Reader;
oeis/285/A285347.asm
neoneye/loda-programs
11
89611
<gh_stars>10-100 ; A285347: Positions of 1 in A285345; complement of A285346. ; Submitted by <NAME>(s4) ; 1,2,5,6,9,11,13,14,17,18,21,23,25,26,29,31,32,35,37,38,41,42,45,47,49,50,53,54,57,59,61,62,65,67,68,71,73,74,77,78,81,83,85,86,89,91,92,95,96,99,101,103,104,107,109,110,113,114,117,119,121,122,125,126,129,131,133,134,137,139,140,143,145,146,149,150,153,155,157,158,161,162,165,167,169,170,173,175,176,179,181,182,185,186,189,191,193,194,197,199 mul $0,2 mov $1,$0 seq $1,284905 ; Fixed point of the morphism 0 -> 01, 1 -> 1001. sub $1,1 sub $0,$1
Examples/ch10/MacTest.asm
satadriver/LiunuxOS
0
102735
<reponame>satadriver/LiunuxOS TITLE Macro Library Test (MacTest.asm) ; This program demonstrates various macros from ; the Macros.inc file. ; Last update: 1/19/02 INCLUDE Irvine32.inc INCLUDE Macros.inc NAME_SIZE = 30 .data str1 BYTE NAME_SIZE DUP(?) array DWORD 5 DUP(12345678h) .code main PROC mGotoxy 10,0 mDumpMem OFFSET array, LENGTHOF array, TYPE array mGotoxy 10,8 mWrite "Please enter your first name: " mReadStr OFFSET str1, 10 mGotoxy 10,10 mWrite "Your name is " mWriteStr str1 NewLine exit main ENDP END main
programs/oeis/010/A010980.asm
karttu/loda
1
96227
<filename>programs/oeis/010/A010980.asm ; A010980: a(n) = binomial(n,27). ; 1,28,406,4060,31465,201376,1107568,5379616,23535820,94143280,348330136,1203322288,3910797436,12033222880,35240152720,98672427616,265182149218,686353797976,1715884494940,4154246671960,9762479679106,22314239266528,49699896548176,108043253365600,229591913401900,477551179875952,973469712824056,1946939425648112,3824345300380220,7384942649010080 add $0,27 mov $1,$0 bin $1,27
boot.asm
galaGOlol/Lazurite
0
102962
;Large credit to OSDEV wiki ;boot.asm cli ;clear interupts hang: jmp hang times 510-($-$$) db 0 ;for compatibility db 0x55 db 0xAA
ioq3/build/release-js-js/missionpack/cgame/cg_draw.asm
RawTechnique/quake-port
1
173425
data export menuScoreboard align 4 LABELV menuScoreboard byte 4 0 export CG_Text_Width code proc CG_Text_Width 60 4 ADDRLP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 12 ADDRGP4 cgDC+228+12 ASGNP4 ADDRFP4 4 INDIRF4 ADDRGP4 cg_smallFont+8 INDIRF4 GTF4 $83 ADDRLP4 12 ADDRGP4 cgDC+228+20560 ASGNP4 ADDRGP4 $84 JUMPV LABELV $83 ADDRFP4 4 INDIRF4 ADDRGP4 cg_bigFont+8 INDIRF4 LEF4 $88 ADDRLP4 12 ADDRGP4 cgDC+228+41108 ASGNP4 LABELV $88 LABELV $84 ADDRLP4 24 ADDRFP4 4 INDIRF4 ADDRLP4 12 INDIRP4 CNSTI4 20480 ADDP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 20 CNSTF4 0 ASGNF4 ADDRFP4 0 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $93 ADDRFP4 0 INDIRP4 ARGP4 ADDRLP4 28 ADDRGP4 qk_strlen CALLU4 ASGNU4 ADDRLP4 8 ADDRLP4 28 INDIRU4 CVUI4 4 ASGNI4 ADDRLP4 32 ADDRFP4 8 INDIRI4 ASGNI4 ADDRLP4 32 INDIRI4 CNSTI4 0 LEI4 $95 ADDRLP4 8 INDIRI4 ADDRLP4 32 INDIRI4 LEI4 $95 ADDRLP4 8 ADDRFP4 8 INDIRI4 ASGNI4 LABELV $95 ADDRLP4 4 CNSTI4 0 ASGNI4 ADDRGP4 $98 JUMPV LABELV $97 ADDRLP4 0 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $100 ADDRLP4 0 INDIRP4 INDIRI1 CVII4 1 CNSTI4 94 NEI4 $100 ADDRLP4 40 ADDRLP4 0 INDIRP4 CNSTI4 1 ADDP4 INDIRI1 CVII4 1 ASGNI4 ADDRLP4 40 INDIRI4 CNSTI4 0 EQI4 $100 ADDRLP4 40 INDIRI4 CNSTI4 65 LTI4 $103 ADDRLP4 40 INDIRI4 CNSTI4 90 LEI4 $102 LABELV $103 ADDRLP4 44 ADDRLP4 0 INDIRP4 CNSTI4 1 ADDP4 INDIRI1 CVII4 1 ASGNI4 ADDRLP4 44 INDIRI4 CNSTI4 97 LTI4 $104 ADDRLP4 44 INDIRI4 CNSTI4 122 LEI4 $102 LABELV $104 ADDRLP4 48 ADDRLP4 0 INDIRP4 CNSTI4 1 ADDP4 INDIRI1 CVII4 1 ASGNI4 ADDRLP4 48 INDIRI4 CNSTI4 48 LTI4 $100 ADDRLP4 48 INDIRI4 CNSTI4 57 GTI4 $100 LABELV $102 ADDRLP4 0 ADDRLP4 0 INDIRP4 CNSTI4 2 ADDP4 ASGNP4 ADDRGP4 $98 JUMPV LABELV $100 ADDRLP4 16 CNSTI4 80 ADDRLP4 0 INDIRP4 INDIRI1 CVII4 1 MULI4 ADDRLP4 12 INDIRP4 ADDP4 ASGNP4 ADDRLP4 20 ADDRLP4 20 INDIRF4 ADDRLP4 16 INDIRP4 CNSTI4 16 ADDP4 INDIRI4 CVIF4 4 ADDF4 ASGNF4 ADDRLP4 56 CNSTI4 1 ASGNI4 ADDRLP4 0 ADDRLP4 0 INDIRP4 ADDRLP4 56 INDIRI4 ADDP4 ASGNP4 ADDRLP4 4 ADDRLP4 4 INDIRI4 ADDRLP4 56 INDIRI4 ADDI4 ASGNI4 LABELV $98 ADDRLP4 0 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $106 ADDRLP4 0 INDIRP4 INDIRI1 CVII4 1 CNSTI4 0 EQI4 $106 ADDRLP4 4 INDIRI4 ADDRLP4 8 INDIRI4 LTI4 $97 LABELV $106 LABELV $93 ADDRLP4 20 INDIRF4 ADDRLP4 24 INDIRF4 MULF4 CVFI4 4 RETI4 LABELV $80 endproc CG_Text_Width 60 4 export CG_Text_Height proc CG_Text_Height 56 4 ADDRLP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 20 ADDRGP4 cgDC+228+12 ASGNP4 ADDRFP4 4 INDIRF4 ADDRGP4 cg_smallFont+8 INDIRF4 GTF4 $110 ADDRLP4 20 ADDRGP4 cgDC+228+20560 ASGNP4 ADDRGP4 $111 JUMPV LABELV $110 ADDRFP4 4 INDIRF4 ADDRGP4 cg_bigFont+8 INDIRF4 LEF4 $115 ADDRLP4 20 ADDRGP4 cgDC+228+41108 ASGNP4 LABELV $115 LABELV $111 ADDRLP4 24 ADDRFP4 4 INDIRF4 ADDRLP4 20 INDIRP4 CNSTI4 20480 ADDP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 16 CNSTF4 0 ASGNF4 ADDRFP4 0 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $120 ADDRFP4 0 INDIRP4 ARGP4 ADDRLP4 28 ADDRGP4 qk_strlen CALLU4 ASGNU4 ADDRLP4 8 ADDRLP4 28 INDIRU4 CVUI4 4 ASGNI4 ADDRLP4 32 ADDRFP4 8 INDIRI4 ASGNI4 ADDRLP4 32 INDIRI4 CNSTI4 0 LEI4 $122 ADDRLP4 8 INDIRI4 ADDRLP4 32 INDIRI4 LEI4 $122 ADDRLP4 8 ADDRFP4 8 INDIRI4 ASGNI4 LABELV $122 ADDRLP4 4 CNSTI4 0 ASGNI4 ADDRGP4 $125 JUMPV LABELV $124 ADDRLP4 0 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $127 ADDRLP4 0 INDIRP4 INDIRI1 CVII4 1 CNSTI4 94 NEI4 $127 ADDRLP4 40 ADDRLP4 0 INDIRP4 CNSTI4 1 ADDP4 INDIRI1 CVII4 1 ASGNI4 ADDRLP4 40 INDIRI4 CNSTI4 0 EQI4 $127 ADDRLP4 40 INDIRI4 CNSTI4 65 LTI4 $130 ADDRLP4 40 INDIRI4 CNSTI4 90 LEI4 $129 LABELV $130 ADDRLP4 44 ADDRLP4 0 INDIRP4 CNSTI4 1 ADDP4 INDIRI1 CVII4 1 ASGNI4 ADDRLP4 44 INDIRI4 CNSTI4 97 LTI4 $131 ADDRLP4 44 INDIRI4 CNSTI4 122 LEI4 $129 LABELV $131 ADDRLP4 48 ADDRLP4 0 INDIRP4 CNSTI4 1 ADDP4 INDIRI1 CVII4 1 ASGNI4 ADDRLP4 48 INDIRI4 CNSTI4 48 LTI4 $127 ADDRLP4 48 INDIRI4 CNSTI4 57 GTI4 $127 LABELV $129 ADDRLP4 0 ADDRLP4 0 INDIRP4 CNSTI4 2 ADDP4 ASGNP4 ADDRGP4 $125 JUMPV LABELV $127 ADDRLP4 12 CNSTI4 80 ADDRLP4 0 INDIRP4 INDIRI1 CVII4 1 MULI4 ADDRLP4 20 INDIRP4 ADDP4 ASGNP4 ADDRLP4 16 INDIRF4 ADDRLP4 12 INDIRP4 INDIRI4 CVIF4 4 GEF4 $132 ADDRLP4 16 ADDRLP4 12 INDIRP4 INDIRI4 CVIF4 4 ASGNF4 LABELV $132 ADDRLP4 52 CNSTI4 1 ASGNI4 ADDRLP4 0 ADDRLP4 0 INDIRP4 ADDRLP4 52 INDIRI4 ADDP4 ASGNP4 ADDRLP4 4 ADDRLP4 4 INDIRI4 ADDRLP4 52 INDIRI4 ADDI4 ASGNI4 LABELV $125 ADDRLP4 0 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $135 ADDRLP4 0 INDIRP4 INDIRI1 CVII4 1 CNSTI4 0 EQI4 $135 ADDRLP4 4 INDIRI4 ADDRLP4 8 INDIRI4 LTI4 $124 LABELV $135 LABELV $120 ADDRLP4 16 INDIRF4 ADDRLP4 24 INDIRF4 MULF4 CVFI4 4 RETI4 LABELV $107 endproc CG_Text_Height 56 4 export CG_Text_PaintChar proc CG_Text_PaintChar 12 36 ADDRLP4 8 ADDRFP4 16 INDIRF4 ASGNF4 ADDRLP4 0 ADDRFP4 8 INDIRF4 ADDRLP4 8 INDIRF4 MULF4 ASGNF4 ADDRLP4 4 ADDRFP4 12 INDIRF4 ADDRLP4 8 INDIRF4 MULF4 ASGNF4 ADDRFP4 0 ARGP4 ADDRFP4 4 ARGP4 ADDRLP4 0 ARGP4 ADDRLP4 4 ARGP4 ADDRGP4 CG_AdjustFrom640 CALLV pop ADDRFP4 0 INDIRF4 ARGF4 ADDRFP4 4 INDIRF4 ARGF4 ADDRLP4 0 INDIRF4 ARGF4 ADDRLP4 4 INDIRF4 ARGF4 ADDRFP4 20 INDIRF4 ARGF4 ADDRFP4 24 INDIRF4 ARGF4 ADDRFP4 28 INDIRF4 ARGF4 ADDRFP4 32 INDIRF4 ARGF4 ADDRFP4 36 INDIRI4 ARGI4 ADDRGP4 trap_R_DrawStretchPic CALLV pop LABELV $136 endproc CG_Text_PaintChar 12 36 export CG_Text_Paint proc CG_Text_Paint 88 40 ADDRFP4 0 ADDRFP4 0 INDIRF4 ASGNF4 ADDRFP4 4 ADDRFP4 4 INDIRF4 ASGNF4 ADDRFP4 12 ADDRFP4 12 INDIRP4 ASGNP4 ADDRFP4 28 ADDRFP4 28 INDIRI4 ASGNI4 ADDRLP4 28 ADDRGP4 cgDC+228+12 ASGNP4 ADDRFP4 8 INDIRF4 ADDRGP4 cg_smallFont+8 INDIRF4 GTF4 $140 ADDRLP4 28 ADDRGP4 cgDC+228+20560 ASGNP4 ADDRGP4 $141 JUMPV LABELV $140 ADDRFP4 8 INDIRF4 ADDRGP4 cg_bigFont+8 INDIRF4 LEF4 $145 ADDRLP4 28 ADDRGP4 cgDC+228+41108 ASGNP4 LABELV $145 LABELV $141 ADDRLP4 20 ADDRFP4 8 INDIRF4 ADDRLP4 28 INDIRP4 CNSTI4 20480 ADDP4 INDIRF4 MULF4 ASGNF4 ADDRFP4 16 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $150 ADDRLP4 36 ADDRFP4 16 INDIRP4 ASGNP4 ADDRFP4 12 INDIRP4 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop ADDRLP4 4 ARGP4 ADDRFP4 12 INDIRP4 ARGP4 CNSTU4 16 ARGU4 ADDRGP4 qk_memcpy CALLP4 pop ADDRFP4 16 INDIRP4 ARGP4 ADDRLP4 40 ADDRGP4 qk_strlen CALLU4 ASGNU4 ADDRLP4 32 ADDRLP4 40 INDIRU4 CVUI4 4 ASGNI4 ADDRLP4 44 ADDRFP4 24 INDIRI4 ASGNI4 ADDRLP4 44 INDIRI4 CNSTI4 0 LEI4 $152 ADDRLP4 32 INDIRI4 ADDRLP4 44 INDIRI4 LEI4 $152 ADDRLP4 32 ADDRFP4 24 INDIRI4 ASGNI4 LABELV $152 ADDRLP4 24 CNSTI4 0 ASGNI4 ADDRGP4 $155 JUMPV LABELV $154 ADDRLP4 0 CNSTI4 80 ADDRLP4 36 INDIRP4 INDIRI1 CVII4 1 MULI4 ADDRLP4 28 INDIRP4 ADDP4 ASGNP4 ADDRLP4 36 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $157 ADDRLP4 36 INDIRP4 INDIRI1 CVII4 1 CNSTI4 94 NEI4 $157 ADDRLP4 52 ADDRLP4 36 INDIRP4 CNSTI4 1 ADDP4 INDIRI1 CVII4 1 ASGNI4 ADDRLP4 52 INDIRI4 CNSTI4 0 EQI4 $157 ADDRLP4 52 INDIRI4 CNSTI4 65 LTI4 $160 ADDRLP4 52 INDIRI4 CNSTI4 90 LEI4 $159 LABELV $160 ADDRLP4 56 ADDRLP4 36 INDIRP4 CNSTI4 1 ADDP4 INDIRI1 CVII4 1 ASGNI4 ADDRLP4 56 INDIRI4 CNSTI4 97 LTI4 $161 ADDRLP4 56 INDIRI4 CNSTI4 122 LEI4 $159 LABELV $161 ADDRLP4 60 ADDRLP4 36 INDIRP4 CNSTI4 1 ADDP4 INDIRI1 CVII4 1 ASGNI4 ADDRLP4 60 INDIRI4 CNSTI4 48 LTI4 $157 ADDRLP4 60 INDIRI4 CNSTI4 57 GTI4 $157 LABELV $159 ADDRLP4 4 ARGP4 ADDRLP4 36 INDIRP4 CNSTI4 1 ADDP4 INDIRI1 CVII4 1 CNSTI4 48 SUBI4 CNSTI4 7 BANDI4 CNSTI4 4 LSHI4 ADDRGP4 g_color_table ADDP4 ARGP4 CNSTU4 16 ARGU4 ADDRGP4 qk_memcpy CALLP4 pop ADDRLP4 4+12 ADDRFP4 12 INDIRP4 CNSTI4 12 ADDP4 INDIRF4 ASGNF4 ADDRLP4 4 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop ADDRLP4 36 ADDRLP4 36 INDIRP4 CNSTI4 2 ADDP4 ASGNP4 ADDRGP4 $155 JUMPV LABELV $157 ADDRLP4 64 ADDRLP4 20 INDIRF4 ADDRLP4 0 INDIRP4 CNSTI4 4 ADDP4 INDIRI4 CVIF4 4 MULF4 ASGNF4 ADDRFP4 28 INDIRI4 CNSTI4 3 EQI4 $165 ADDRFP4 28 INDIRI4 CNSTI4 6 NEI4 $163 LABELV $165 ADDRFP4 28 INDIRI4 CNSTI4 3 NEI4 $167 ADDRLP4 76 CNSTI4 1 ASGNI4 ADDRGP4 $168 JUMPV LABELV $167 ADDRLP4 76 CNSTI4 2 ASGNI4 LABELV $168 ADDRLP4 72 ADDRLP4 76 INDIRI4 ASGNI4 ADDRGP4 colorBlack+12 ADDRLP4 4+12 INDIRF4 ASGNF4 ADDRGP4 colorBlack ARGP4 ADDRGP4 trap_R_SetColor CALLV pop ADDRLP4 80 ADDRLP4 72 INDIRI4 CVIF4 4 ASGNF4 ADDRFP4 0 INDIRF4 ADDRLP4 80 INDIRF4 ADDF4 ARGF4 ADDRFP4 4 INDIRF4 ADDRLP4 64 INDIRF4 SUBF4 ADDRLP4 80 INDIRF4 ADDF4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 20 ADDP4 INDIRI4 CVIF4 4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 24 ADDP4 INDIRI4 CVIF4 4 ARGF4 ADDRLP4 20 INDIRF4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 28 ADDP4 INDIRF4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 32 ADDP4 INDIRF4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 36 ADDP4 INDIRF4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 40 ADDP4 INDIRF4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 44 ADDP4 INDIRI4 ARGI4 ADDRGP4 CG_Text_PaintChar CALLV pop ADDRGP4 colorBlack+12 CNSTF4 1065353216 ASGNF4 ADDRLP4 4 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop LABELV $163 ADDRFP4 0 INDIRF4 ARGF4 ADDRFP4 4 INDIRF4 ADDRLP4 64 INDIRF4 SUBF4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 20 ADDP4 INDIRI4 CVIF4 4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 24 ADDP4 INDIRI4 CVIF4 4 ARGF4 ADDRLP4 20 INDIRF4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 28 ADDP4 INDIRF4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 32 ADDP4 INDIRF4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 36 ADDP4 INDIRF4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 40 ADDP4 INDIRF4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 44 ADDP4 INDIRI4 ARGI4 ADDRGP4 CG_Text_PaintChar CALLV pop ADDRFP4 0 ADDRFP4 0 INDIRF4 ADDRLP4 0 INDIRP4 CNSTI4 16 ADDP4 INDIRI4 CVIF4 4 ADDRLP4 20 INDIRF4 MULF4 ADDRFP4 20 INDIRF4 ADDF4 ADDF4 ASGNF4 ADDRLP4 76 CNSTI4 1 ASGNI4 ADDRLP4 36 ADDRLP4 36 INDIRP4 ADDRLP4 76 INDIRI4 ADDP4 ASGNP4 ADDRLP4 24 ADDRLP4 24 INDIRI4 ADDRLP4 76 INDIRI4 ADDI4 ASGNI4 LABELV $155 ADDRLP4 36 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $173 ADDRLP4 36 INDIRP4 INDIRI1 CVII4 1 CNSTI4 0 EQI4 $173 ADDRLP4 24 INDIRI4 ADDRLP4 32 INDIRI4 LTI4 $154 LABELV $173 CNSTP4 0 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop LABELV $150 LABELV $137 endproc CG_Text_Paint 88 40 export CG_Draw3DModel proc CG_Draw3DModel 512 16 ADDRLP4 508 CNSTI4 0 ASGNI4 ADDRGP4 cg_draw3dIcons+12 INDIRI4 ADDRLP4 508 INDIRI4 EQI4 $179 ADDRGP4 cg_drawIcons+12 INDIRI4 ADDRLP4 508 INDIRI4 NEI4 $175 LABELV $179 ADDRGP4 $174 JUMPV LABELV $175 ADDRFP4 0 ARGP4 ADDRFP4 4 ARGP4 ADDRFP4 8 ARGP4 ADDRFP4 12 ARGP4 ADDRGP4 CG_AdjustFrom640 CALLV pop ADDRLP4 0 ARGP4 CNSTI4 0 ARGI4 CNSTU4 368 ARGU4 ADDRGP4 qk_memset CALLP4 pop ADDRLP4 368 ARGP4 CNSTI4 0 ARGI4 CNSTU4 140 ARGU4 ADDRGP4 qk_memset CALLP4 pop ADDRFP4 28 INDIRP4 ARGP4 ADDRLP4 368+28 ARGP4 ADDRGP4 AnglesToAxis CALLV pop ADDRLP4 368+68 ADDRFP4 24 INDIRP4 INDIRB ASGNB 12 ADDRLP4 368+8 ADDRFP4 16 INDIRI4 ASGNI4 ADDRLP4 368+108 ADDRFP4 20 INDIRI4 ASGNI4 ADDRLP4 368+4 CNSTI4 64 ASGNI4 ADDRLP4 0+76 CNSTI4 1 ASGNI4 ADDRLP4 0+36 ARGP4 ADDRGP4 AxisClear CALLV pop ADDRLP4 0+16 CNSTF4 1106247680 ASGNF4 ADDRLP4 0+20 CNSTF4 1106247680 ASGNF4 ADDRLP4 0 ADDRFP4 0 INDIRF4 CVFI4 4 ASGNI4 ADDRLP4 0+4 ADDRFP4 4 INDIRF4 CVFI4 4 ASGNI4 ADDRLP4 0+8 ADDRFP4 8 INDIRF4 CVFI4 4 ASGNI4 ADDRLP4 0+12 ADDRFP4 12 INDIRF4 CVFI4 4 ASGNI4 ADDRLP4 0+72 ADDRGP4 cg+107604 INDIRI4 ASGNI4 ADDRGP4 trap_R_ClearScene CALLV pop ADDRLP4 368 ARGP4 ADDRGP4 trap_R_AddRefEntityToScene CALLV pop ADDRLP4 0 ARGP4 ADDRGP4 trap_R_RenderScene CALLV pop LABELV $174 endproc CG_Draw3DModel 512 16 export CG_DrawHead proc CG_DrawHead 56 32 ADDRLP4 0 CNSTI4 1716 ADDRFP4 16 INDIRI4 MULI4 ADDRGP4 cgs+40972 ADDP4 ASGNP4 ADDRGP4 cg_draw3dIcons+12 INDIRI4 CNSTI4 0 EQI4 $196 ADDRLP4 40 ADDRLP4 0 INDIRP4 CNSTI4 540 ADDP4 INDIRI4 ASGNI4 ADDRLP4 40 INDIRI4 CNSTI4 0 NEI4 $199 ADDRGP4 $194 JUMPV LABELV $199 ADDRLP4 40 INDIRI4 ARGI4 ADDRLP4 16 ARGP4 ADDRLP4 28 ARGP4 ADDRGP4 trap_R_ModelBounds CALLV pop ADDRLP4 4+8 CNSTF4 3204448256 ADDRLP4 16+8 INDIRF4 ADDRLP4 28+8 INDIRF4 ADDF4 MULF4 ASGNF4 ADDRLP4 4+4 CNSTF4 1056964608 ADDRLP4 16+4 INDIRF4 ADDRLP4 28+4 INDIRF4 ADDF4 MULF4 ASGNF4 ADDRLP4 44 CNSTF4 1060320051 ADDRLP4 28+8 INDIRF4 ADDRLP4 16+8 INDIRF4 SUBF4 MULF4 ASGNF4 ADDRLP4 4 ADDRLP4 44 INDIRF4 CNSTF4 1049179980 DIVF4 ASGNF4 ADDRLP4 4 ADDRLP4 4 INDIRF4 ADDRLP4 0 INDIRP4 CNSTI4 504 ADDP4 INDIRF4 ADDF4 ASGNF4 ADDRLP4 4+4 ADDRLP4 4+4 INDIRF4 ADDRLP4 0 INDIRP4 CNSTI4 508 ADDP4 INDIRF4 ADDF4 ASGNF4 ADDRLP4 4+8 ADDRLP4 4+8 INDIRF4 ADDRLP4 0 INDIRP4 CNSTI4 512 ADDP4 INDIRF4 ADDF4 ASGNF4 ADDRFP4 0 INDIRF4 ARGF4 ADDRFP4 4 INDIRF4 ARGF4 ADDRFP4 8 INDIRF4 ARGF4 ADDRFP4 12 INDIRF4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 540 ADDP4 INDIRI4 ARGI4 ADDRLP4 0 INDIRP4 CNSTI4 544 ADDP4 INDIRI4 ARGI4 ADDRLP4 4 ARGP4 ADDRFP4 20 INDIRP4 ARGP4 ADDRGP4 CG_Draw3DModel CALLV pop ADDRGP4 $197 JUMPV LABELV $196 ADDRGP4 cg_drawIcons+12 INDIRI4 CNSTI4 0 EQI4 $213 ADDRFP4 0 INDIRF4 ARGF4 ADDRFP4 4 INDIRF4 ARGF4 ADDRFP4 8 INDIRF4 ARGF4 ADDRFP4 12 INDIRF4 ARGF4 ADDRLP4 0 INDIRP4 CNSTI4 548 ADDP4 INDIRI4 ARGI4 ADDRGP4 CG_DrawPic CALLV pop LABELV $213 LABELV $197 ADDRLP4 0 INDIRP4 CNSTI4 488 ADDP4 INDIRI4 CNSTI4 0 EQI4 $216 ADDRFP4 0 INDIRF4 ARGF4 ADDRFP4 4 INDIRF4 ARGF4 ADDRFP4 8 INDIRF4 ARGF4 ADDRFP4 12 INDIRF4 ARGF4 ADDRGP4 cgs+152852+164 INDIRI4 ARGI4 ADDRGP4 CG_DrawPic CALLV pop LABELV $216 LABELV $194 endproc CG_DrawHead 56 32 export CG_DrawFlagModel proc CG_DrawFlagModel 72 32 ADDRLP4 60 CNSTI4 0 ASGNI4 ADDRFP4 20 INDIRI4 ADDRLP4 60 INDIRI4 NEI4 $221 ADDRGP4 cg_draw3dIcons+12 INDIRI4 ADDRLP4 60 INDIRI4 EQI4 $221 ADDRLP4 64 CNSTF4 0 ASGNF4 ADDRLP4 0+8 ADDRLP4 64 INDIRF4 ASGNF4 ADDRLP4 0+4 ADDRLP4 64 INDIRF4 ASGNF4 ADDRLP4 0 ADDRLP4 64 INDIRF4 ASGNF4 ADDRLP4 48 ADDRGP4 cgs+152852+36 INDIRI4 ASGNI4 ADDRLP4 48 INDIRI4 ARGI4 ADDRLP4 24 ARGP4 ADDRLP4 36 ARGP4 ADDRGP4 trap_R_ModelBounds CALLV pop ADDRLP4 12+8 CNSTF4 3204448256 ADDRLP4 24+8 INDIRF4 ADDRLP4 36+8 INDIRF4 ADDF4 MULF4 ASGNF4 ADDRLP4 12+4 CNSTF4 1056964608 ADDRLP4 24+4 INDIRF4 ADDRLP4 36+4 INDIRF4 ADDF4 MULF4 ASGNF4 ADDRLP4 52 CNSTF4 1056964608 ADDRLP4 36+8 INDIRF4 ADDRLP4 24+8 INDIRF4 SUBF4 MULF4 ASGNF4 ADDRLP4 12 ADDRLP4 52 INDIRF4 CNSTF4 1049179980 DIVF4 ASGNF4 ADDRGP4 cg+107604 INDIRI4 CVIF4 4 CNSTF4 1157234688 DIVF4 ARGF4 ADDRLP4 68 ADDRGP4 qk_sin CALLF4 ASGNF4 ADDRLP4 0+4 CNSTF4 1114636288 ADDRLP4 68 INDIRF4 MULF4 ASGNF4 ADDRFP4 16 INDIRI4 CNSTI4 1 NEI4 $238 ADDRLP4 56 ADDRGP4 cgs+152852+36 INDIRI4 ASGNI4 ADDRGP4 $239 JUMPV LABELV $238 ADDRFP4 16 INDIRI4 CNSTI4 2 NEI4 $242 ADDRLP4 56 ADDRGP4 cgs+152852+40 INDIRI4 ASGNI4 ADDRGP4 $243 JUMPV LABELV $242 ADDRFP4 16 INDIRI4 CNSTI4 0 NEI4 $220 ADDRLP4 56 ADDRGP4 cgs+152852+44 INDIRI4 ASGNI4 LABELV $247 LABELV $243 LABELV $239 ADDRFP4 0 INDIRF4 ARGF4 ADDRFP4 4 INDIRF4 ARGF4 ADDRFP4 8 INDIRF4 ARGF4 ADDRFP4 12 INDIRF4 ARGF4 ADDRLP4 56 INDIRI4 ARGI4 CNSTI4 0 ARGI4 ADDRLP4 12 ARGP4 ADDRLP4 0 ARGP4 ADDRGP4 CG_Draw3DModel CALLV pop ADDRGP4 $222 JUMPV LABELV $221 ADDRGP4 cg_drawIcons+12 INDIRI4 CNSTI4 0 EQI4 $250 ADDRFP4 16 INDIRI4 CNSTI4 1 NEI4 $253 CNSTI4 7 ARGI4 ADDRLP4 68 ADDRGP4 BG_FindItemForPowerup CALLP4 ASGNP4 ADDRLP4 64 ADDRLP4 68 INDIRP4 ASGNP4 ADDRGP4 $254 JUMPV LABELV $253 ADDRFP4 16 INDIRI4 CNSTI4 2 NEI4 $255 CNSTI4 8 ARGI4 ADDRLP4 68 ADDRGP4 BG_FindItemForPowerup CALLP4 ASGNP4 ADDRLP4 64 ADDRLP4 68 INDIRP4 ASGNP4 ADDRGP4 $256 JUMPV LABELV $255 ADDRFP4 16 INDIRI4 CNSTI4 0 NEI4 $220 CNSTI4 9 ARGI4 ADDRLP4 68 ADDRGP4 BG_FindItemForPowerup CALLP4 ASGNP4 ADDRLP4 64 ADDRLP4 68 INDIRP4 ASGNP4 LABELV $258 LABELV $256 LABELV $254 ADDRLP4 64 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $259 ADDRFP4 0 INDIRF4 ARGF4 ADDRFP4 4 INDIRF4 ARGF4 ADDRFP4 8 INDIRF4 ARGF4 ADDRFP4 12 INDIRF4 ARGF4 CNSTI4 24 ADDRLP4 64 INDIRP4 CVPU4 4 ADDRGP4 bg_itemlist CVPU4 4 SUBU4 CVUI4 4 CNSTI4 52 DIVI4 MULI4 ADDRGP4 cg_items+20 ADDP4 INDIRI4 ARGI4 ADDRGP4 CG_DrawPic CALLV pop LABELV $259 LABELV $250 LABELV $222 LABELV $220 endproc CG_DrawFlagModel 72 32 export CG_DrawTeamBackground proc CG_DrawTeamBackground 20 20 ADDRLP4 0+12 ADDRFP4 16 INDIRF4 ASGNF4 ADDRFP4 20 INDIRI4 CNSTI4 1 NEI4 $264 ADDRLP4 0 CNSTF4 1065353216 ASGNF4 ADDRLP4 0+4 CNSTF4 0 ASGNF4 ADDRLP4 0+8 CNSTF4 0 ASGNF4 ADDRGP4 $265 JUMPV LABELV $264 ADDRFP4 20 INDIRI4 CNSTI4 2 NEI4 $262 ADDRLP4 16 CNSTF4 0 ASGNF4 ADDRLP4 0 ADDRLP4 16 INDIRF4 ASGNF4 ADDRLP4 0+4 ADDRLP4 16 INDIRF4 ASGNF4 ADDRLP4 0+8 CNSTF4 1065353216 ASGNF4 LABELV $269 LABELV $265 ADDRLP4 0 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop ADDRFP4 0 INDIRI4 CVIF4 4 ARGF4 ADDRFP4 4 INDIRI4 CVIF4 4 ARGF4 ADDRFP4 8 INDIRI4 CVIF4 4 ARGF4 ADDRFP4 12 INDIRI4 CVIF4 4 ARGF4 ADDRGP4 cgs+152852+160 INDIRI4 ARGI4 ADDRGP4 CG_DrawPic CALLV pop CNSTP4 0 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop LABELV $262 endproc CG_DrawTeamBackground 20 20 proc CG_DrawAttacker 52 24 ADDRFP4 0 ADDRFP4 0 INDIRF4 ASGNF4 ADDRGP4 cg+107636+184 INDIRI4 CNSTI4 0 GTI4 $275 ADDRFP4 0 INDIRF4 RETF4 ADDRGP4 $274 JUMPV LABELV $275 ADDRGP4 cg+124400 INDIRI4 CNSTI4 0 NEI4 $279 ADDRFP4 0 INDIRF4 RETF4 ADDRGP4 $274 JUMPV LABELV $279 ADDRLP4 0 ADDRGP4 cg+107636+248+24 INDIRI4 ASGNI4 ADDRLP4 0 INDIRI4 CNSTI4 0 LTI4 $289 ADDRLP4 0 INDIRI4 CNSTI4 64 GEI4 $289 ADDRLP4 0 INDIRI4 ADDRGP4 cg+36 INDIRP4 CNSTI4 184 ADDP4 INDIRI4 NEI4 $285 LABELV $289 ADDRFP4 0 INDIRF4 RETF4 ADDRGP4 $274 JUMPV LABELV $285 ADDRLP4 24 ADDRGP4 cg+107604 INDIRI4 ADDRGP4 cg+124400 INDIRI4 SUBI4 ASGNI4 ADDRLP4 24 INDIRI4 CNSTI4 10000 LEI4 $292 ADDRGP4 cg+124400 CNSTI4 0 ASGNI4 ADDRFP4 0 INDIRF4 RETF4 ADDRGP4 $274 JUMPV LABELV $292 ADDRLP4 4 CNSTF4 1114636288 ASGNF4 ADDRLP4 8 CNSTF4 0 ASGNF4 ADDRLP4 8+4 CNSTF4 1127481344 ASGNF4 ADDRLP4 8+8 CNSTF4 0 ASGNF4 CNSTF4 1142947840 ADDRLP4 4 INDIRF4 SUBF4 ARGF4 ADDRFP4 0 INDIRF4 ARGF4 ADDRLP4 4 INDIRF4 ARGF4 ADDRLP4 4 INDIRF4 ARGF4 ADDRLP4 0 INDIRI4 ARGI4 ADDRLP4 8 ARGP4 ADDRGP4 CG_DrawHead CALLV pop ADDRLP4 0 INDIRI4 CNSTI4 544 ADDI4 ARGI4 ADDRLP4 40 ADDRGP4 CG_ConfigString CALLP4 ASGNP4 ADDRLP4 28 ADDRLP4 40 INDIRP4 ASGNP4 ADDRLP4 28 INDIRP4 ARGP4 ADDRGP4 $297 ARGP4 ADDRLP4 44 ADDRGP4 Info_ValueForKey CALLP4 ASGNP4 ADDRLP4 20 ADDRLP4 44 INDIRP4 ASGNP4 ADDRFP4 0 ADDRFP4 0 INDIRF4 ADDRLP4 4 INDIRF4 ADDF4 ASGNF4 ADDRLP4 20 INDIRP4 ARGP4 ADDRLP4 48 ADDRGP4 Q_PrintStrlen CALLI4 ASGNI4 CNSTI4 640 ADDRLP4 48 INDIRI4 CNSTI4 4 LSHI4 SUBI4 ARGI4 ADDRFP4 0 INDIRF4 CVFI4 4 ARGI4 ADDRLP4 20 INDIRP4 ARGP4 CNSTF4 1056964608 ARGF4 ADDRGP4 CG_DrawBigString CALLV pop ADDRFP4 0 INDIRF4 CNSTF4 1098907648 ADDF4 CNSTF4 1073741824 ADDF4 RETF4 LABELV $274 endproc CG_DrawAttacker 52 24 proc CG_DrawSnapshot 16 16 ADDRGP4 $299 ARGP4 ADDRGP4 cg+36 INDIRP4 CNSTI4 8 ADDP4 INDIRI4 ARGI4 ADDRGP4 cg+28 INDIRI4 ARGI4 ADDRGP4 cgs+31444 INDIRI4 ARGI4 ADDRLP4 8 ADDRGP4 va CALLP4 ASGNP4 ADDRLP4 0 ADDRLP4 8 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 ARGP4 ADDRLP4 12 ADDRGP4 CG_DrawStrlen CALLI4 ASGNI4 ADDRLP4 4 ADDRLP4 12 INDIRI4 CNSTI4 4 LSHI4 ASGNI4 CNSTI4 635 ADDRLP4 4 INDIRI4 SUBI4 ARGI4 ADDRFP4 0 INDIRF4 CNSTF4 1073741824 ADDF4 CVFI4 4 ARGI4 ADDRLP4 0 INDIRP4 ARGP4 CNSTF4 1065353216 ARGF4 ADDRGP4 CG_DrawBigString CALLV pop ADDRFP4 0 INDIRF4 CNSTF4 1098907648 ADDF4 CNSTF4 1082130432 ADDF4 RETF4 LABELV $298 endproc CG_DrawSnapshot 16 16 bss align 4 LABELV $304 skip 16 align 4 LABELV $305 skip 4 align 4 LABELV $306 skip 4 code proc CG_DrawFPS 56 16 ADDRLP4 28 ADDRGP4 trap_Milliseconds CALLI4 ASGNI4 ADDRLP4 8 ADDRLP4 28 INDIRI4 ASGNI4 ADDRLP4 36 ADDRGP4 $306 ASGNP4 ADDRLP4 12 ADDRLP4 8 INDIRI4 ADDRLP4 36 INDIRP4 INDIRI4 SUBI4 ASGNI4 ADDRLP4 36 INDIRP4 ADDRLP4 8 INDIRI4 ASGNI4 ADDRGP4 $305 INDIRI4 CNSTI4 4 MODI4 CNSTI4 2 LSHI4 ADDRGP4 $304 ADDP4 ADDRLP4 12 INDIRI4 ASGNI4 ADDRLP4 40 ADDRGP4 $305 ASGNP4 ADDRLP4 40 INDIRP4 ADDRLP4 40 INDIRP4 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 ADDRLP4 40 INDIRP4 INDIRI4 CNSTI4 4 LEI4 $307 ADDRLP4 44 CNSTI4 0 ASGNI4 ADDRLP4 4 ADDRLP4 44 INDIRI4 ASGNI4 ADDRLP4 0 ADDRLP4 44 INDIRI4 ASGNI4 LABELV $309 ADDRLP4 4 ADDRLP4 4 INDIRI4 ADDRLP4 0 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 $304 ADDP4 INDIRI4 ADDI4 ASGNI4 LABELV $310 ADDRLP4 0 ADDRLP4 0 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 ADDRLP4 0 INDIRI4 CNSTI4 4 LTI4 $309 ADDRLP4 4 INDIRI4 CNSTI4 0 NEI4 $313 ADDRLP4 4 CNSTI4 1 ASGNI4 LABELV $313 ADDRLP4 24 CNSTI4 4000 ADDRLP4 4 INDIRI4 DIVI4 ASGNI4 ADDRGP4 $315 ARGP4 ADDRLP4 24 INDIRI4 ARGI4 ADDRLP4 48 ADDRGP4 va CALLP4 ASGNP4 ADDRLP4 16 ADDRLP4 48 INDIRP4 ASGNP4 ADDRLP4 16 INDIRP4 ARGP4 ADDRLP4 52 ADDRGP4 CG_DrawStrlen CALLI4 ASGNI4 ADDRLP4 20 ADDRLP4 52 INDIRI4 CNSTI4 4 LSHI4 ASGNI4 CNSTI4 635 ADDRLP4 20 INDIRI4 SUBI4 ARGI4 ADDRFP4 0 INDIRF4 CNSTF4 1073741824 ADDF4 CVFI4 4 ARGI4 ADDRLP4 16 INDIRP4 ARGP4 CNSTF4 1065353216 ARGF4 ADDRGP4 CG_DrawBigString CALLV pop LABELV $307 ADDRFP4 0 INDIRF4 CNSTF4 1098907648 ADDF4 CNSTF4 1082130432 ADDF4 RETF4 LABELV $303 endproc CG_DrawFPS 56 16 proc CG_DrawTimer 56 16 ADDRLP4 20 ADDRGP4 cg+107604 INDIRI4 ADDRGP4 cgs+34796 INDIRI4 SUBI4 ASGNI4 ADDRLP4 0 ADDRLP4 20 INDIRI4 CNSTI4 1000 DIVI4 ASGNI4 ADDRLP4 28 CNSTI4 60 ASGNI4 ADDRLP4 8 ADDRLP4 0 INDIRI4 ADDRLP4 28 INDIRI4 DIVI4 ASGNI4 ADDRLP4 0 ADDRLP4 0 INDIRI4 ADDRLP4 28 INDIRI4 ADDRLP4 8 INDIRI4 MULI4 SUBI4 ASGNI4 ADDRLP4 40 CNSTI4 10 ASGNI4 ADDRLP4 12 ADDRLP4 0 INDIRI4 ADDRLP4 40 INDIRI4 DIVI4 ASGNI4 ADDRLP4 0 ADDRLP4 0 INDIRI4 ADDRLP4 40 INDIRI4 ADDRLP4 12 INDIRI4 MULI4 SUBI4 ASGNI4 ADDRGP4 $319 ARGP4 ADDRLP4 8 INDIRI4 ARGI4 ADDRLP4 12 INDIRI4 ARGI4 ADDRLP4 0 INDIRI4 ARGI4 ADDRLP4 48 ADDRGP4 va CALLP4 ASGNP4 ADDRLP4 4 ADDRLP4 48 INDIRP4 ASGNP4 ADDRLP4 4 INDIRP4 ARGP4 ADDRLP4 52 ADDRGP4 CG_DrawStrlen CALLI4 ASGNI4 ADDRLP4 16 ADDRLP4 52 INDIRI4 CNSTI4 4 LSHI4 ASGNI4 CNSTI4 635 ADDRLP4 16 INDIRI4 SUBI4 ARGI4 ADDRFP4 0 INDIRF4 CNSTF4 1073741824 ADDF4 CVFI4 4 ARGI4 ADDRLP4 4 INDIRP4 ARGP4 CNSTF4 1065353216 ARGF4 ADDRGP4 CG_DrawBigString CALLV pop ADDRFP4 0 INDIRF4 CNSTF4 1098907648 ADDF4 CNSTF4 1082130432 ADDF4 RETF4 LABELV $316 endproc CG_DrawTimer 56 16 proc CG_DrawTeamOverlay 152 36 ADDRFP4 0 ADDRFP4 0 INDIRF4 ASGNF4 ADDRFP4 4 ADDRFP4 4 INDIRI4 ASGNI4 ADDRGP4 cg_drawTeamOverlay+12 INDIRI4 CNSTI4 0 NEI4 $321 ADDRFP4 0 INDIRF4 RETF4 ADDRGP4 $320 JUMPV LABELV $321 ADDRLP4 92 CNSTI4 304 ASGNI4 ADDRGP4 cg+36 INDIRP4 ADDRLP4 92 INDIRI4 ADDP4 INDIRI4 CNSTI4 1 EQI4 $324 ADDRGP4 cg+36 INDIRP4 ADDRLP4 92 INDIRI4 ADDP4 INDIRI4 CNSTI4 2 EQI4 $324 ADDRFP4 0 INDIRF4 RETF4 ADDRGP4 $320 JUMPV LABELV $324 ADDRLP4 100 CNSTI4 0 ASGNI4 ADDRLP4 76 ADDRLP4 100 INDIRI4 ASGNI4 ADDRLP4 56 ADDRLP4 100 INDIRI4 ASGNI4 ADDRGP4 numSortedTeamPlayers INDIRI4 CNSTI4 8 LEI4 $329 ADDRLP4 96 CNSTI4 8 ASGNI4 ADDRGP4 $330 JUMPV LABELV $329 ADDRLP4 96 ADDRGP4 numSortedTeamPlayers INDIRI4 ASGNI4 LABELV $330 ADDRLP4 48 ADDRLP4 96 INDIRI4 ASGNI4 ADDRLP4 8 CNSTI4 0 ASGNI4 ADDRGP4 $334 JUMPV LABELV $331 ADDRLP4 4 CNSTI4 1716 ADDRLP4 8 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 sortedTeamPlayers ADDP4 INDIRI4 MULI4 ADDRGP4 cgs+40972 ADDP4 ASGNP4 ADDRLP4 4 INDIRP4 INDIRI4 CNSTI4 0 EQI4 $336 ADDRLP4 4 INDIRP4 CNSTI4 68 ADDP4 INDIRI4 ADDRGP4 cg+36 INDIRP4 CNSTI4 304 ADDP4 INDIRI4 NEI4 $336 ADDRLP4 76 ADDRLP4 76 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 ADDRLP4 4 INDIRP4 CNSTI4 4 ADDP4 ARGP4 ADDRLP4 108 ADDRGP4 CG_DrawStrlen CALLI4 ASGNI4 ADDRLP4 40 ADDRLP4 108 INDIRI4 ASGNI4 ADDRLP4 40 INDIRI4 ADDRLP4 56 INDIRI4 LEI4 $339 ADDRLP4 56 ADDRLP4 40 INDIRI4 ASGNI4 LABELV $339 LABELV $336 LABELV $332 ADDRLP4 8 ADDRLP4 8 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 LABELV $334 ADDRLP4 8 INDIRI4 ADDRLP4 48 INDIRI4 LTI4 $331 ADDRLP4 76 INDIRI4 CNSTI4 0 NEI4 $341 ADDRFP4 0 INDIRF4 RETF4 ADDRGP4 $320 JUMPV LABELV $341 ADDRLP4 56 INDIRI4 CNSTI4 12 LEI4 $343 ADDRLP4 56 CNSTI4 12 ASGNI4 LABELV $343 ADDRLP4 44 CNSTI4 0 ASGNI4 ADDRLP4 8 CNSTI4 1 ASGNI4 LABELV $345 ADDRLP4 8 INDIRI4 CNSTI4 608 ADDI4 ARGI4 ADDRLP4 104 ADDRGP4 CG_ConfigString CALLP4 ASGNP4 ADDRLP4 20 ADDRLP4 104 INDIRP4 ASGNP4 ADDRLP4 20 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $349 ADDRLP4 20 INDIRP4 INDIRI1 CVII4 1 CNSTI4 0 EQI4 $349 ADDRLP4 20 INDIRP4 ARGP4 ADDRLP4 112 ADDRGP4 CG_DrawStrlen CALLI4 ASGNI4 ADDRLP4 40 ADDRLP4 112 INDIRI4 ASGNI4 ADDRLP4 40 INDIRI4 ADDRLP4 44 INDIRI4 LEI4 $351 ADDRLP4 44 ADDRLP4 40 INDIRI4 ASGNI4 LABELV $351 LABELV $349 LABELV $346 ADDRLP4 8 ADDRLP4 8 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 ADDRLP4 8 INDIRI4 CNSTI4 64 LTI4 $345 ADDRLP4 44 INDIRI4 CNSTI4 16 LEI4 $353 ADDRLP4 44 CNSTI4 16 ASGNI4 LABELV $353 ADDRLP4 80 ADDRLP4 56 INDIRI4 ADDRLP4 44 INDIRI4 ADDI4 CNSTI4 3 LSHI4 CNSTI4 32 ADDI4 CNSTI4 56 ADDI4 ASGNI4 ADDRFP4 4 INDIRI4 CNSTI4 0 EQI4 $355 ADDRLP4 52 CNSTI4 640 ADDRLP4 80 INDIRI4 SUBI4 ASGNI4 ADDRGP4 $356 JUMPV LABELV $355 ADDRLP4 52 CNSTI4 0 ASGNI4 LABELV $356 ADDRLP4 84 ADDRLP4 76 INDIRI4 CNSTI4 3 LSHI4 ASGNI4 ADDRFP4 8 INDIRI4 CNSTI4 0 EQI4 $357 ADDRLP4 88 ADDRFP4 0 INDIRF4 ADDRLP4 84 INDIRI4 CVIF4 4 ADDF4 CVFI4 4 ASGNI4 ADDRGP4 $358 JUMPV LABELV $357 ADDRFP4 0 ADDRFP4 0 INDIRF4 ADDRLP4 84 INDIRI4 CVIF4 4 SUBF4 ASGNF4 ADDRLP4 88 ADDRFP4 0 INDIRF4 CVFI4 4 ASGNI4 LABELV $358 ADDRGP4 cg+36 INDIRP4 CNSTI4 304 ADDP4 INDIRI4 CNSTI4 1 NEI4 $359 ADDRLP4 24 CNSTF4 1065353216 ASGNF4 ADDRLP4 24+4 CNSTF4 0 ASGNF4 ADDRLP4 24+8 CNSTF4 0 ASGNF4 ADDRLP4 24+12 CNSTF4 1051260355 ASGNF4 ADDRGP4 $360 JUMPV LABELV $359 ADDRLP4 104 CNSTF4 0 ASGNF4 ADDRLP4 24 ADDRLP4 104 INDIRF4 ASGNF4 ADDRLP4 24+4 ADDRLP4 104 INDIRF4 ASGNF4 ADDRLP4 24+8 CNSTF4 1065353216 ASGNF4 ADDRLP4 24+12 CNSTF4 1051260355 ASGNF4 LABELV $360 ADDRLP4 24 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop ADDRLP4 52 INDIRI4 CVIF4 4 ARGF4 ADDRFP4 0 INDIRF4 ARGF4 ADDRLP4 80 INDIRI4 CVIF4 4 ARGF4 ADDRLP4 84 INDIRI4 CVIF4 4 ARGF4 ADDRGP4 cgs+152852+160 INDIRI4 ARGI4 ADDRGP4 CG_DrawPic CALLV pop CNSTP4 0 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop ADDRLP4 8 CNSTI4 0 ASGNI4 ADDRGP4 $373 JUMPV LABELV $370 ADDRLP4 4 CNSTI4 1716 ADDRLP4 8 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 sortedTeamPlayers ADDP4 INDIRI4 MULI4 ADDRGP4 cgs+40972 ADDP4 ASGNP4 ADDRLP4 4 INDIRP4 INDIRI4 CNSTI4 0 EQI4 $375 ADDRLP4 4 INDIRP4 CNSTI4 68 ADDP4 INDIRI4 ADDRGP4 cg+36 INDIRP4 CNSTI4 304 ADDP4 INDIRI4 NEI4 $375 ADDRLP4 108 CNSTF4 1065353216 ASGNF4 ADDRLP4 24+12 ADDRLP4 108 INDIRF4 ASGNF4 ADDRLP4 24+8 ADDRLP4 108 INDIRF4 ASGNF4 ADDRLP4 24+4 ADDRLP4 108 INDIRF4 ASGNF4 ADDRLP4 24 ADDRLP4 108 INDIRF4 ASGNF4 ADDRLP4 112 CNSTI4 8 ASGNI4 ADDRLP4 12 ADDRLP4 52 INDIRI4 ADDRLP4 112 INDIRI4 ADDI4 ASGNI4 ADDRLP4 12 INDIRI4 ARGI4 ADDRFP4 0 INDIRF4 CVFI4 4 ARGI4 ADDRLP4 4 INDIRP4 CNSTI4 4 ADDP4 ARGP4 ADDRLP4 24 ARGP4 ADDRLP4 116 CNSTI4 0 ASGNI4 ADDRLP4 116 INDIRI4 ARGI4 ADDRLP4 116 INDIRI4 ARGI4 ADDRLP4 112 INDIRI4 ARGI4 ADDRLP4 112 INDIRI4 ARGI4 CNSTI4 12 ARGI4 ADDRGP4 CG_DrawStringExt CALLV pop ADDRLP4 44 INDIRI4 CNSTI4 0 EQI4 $381 ADDRLP4 4 INDIRP4 CNSTI4 112 ADDP4 INDIRI4 CNSTI4 608 ADDI4 ARGI4 ADDRLP4 120 ADDRGP4 CG_ConfigString CALLP4 ASGNP4 ADDRLP4 20 ADDRLP4 120 INDIRP4 ASGNP4 ADDRLP4 20 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $385 ADDRLP4 20 INDIRP4 INDIRI1 CVII4 1 CNSTI4 0 NEI4 $383 LABELV $385 ADDRLP4 20 ADDRGP4 $386 ASGNP4 LABELV $383 ADDRLP4 128 CNSTI4 16 ASGNI4 ADDRLP4 12 ADDRLP4 52 INDIRI4 ADDRLP4 128 INDIRI4 ADDI4 ADDRLP4 56 INDIRI4 CNSTI4 3 LSHI4 ADDI4 ASGNI4 ADDRLP4 12 INDIRI4 ARGI4 ADDRFP4 0 INDIRF4 CVFI4 4 ARGI4 ADDRLP4 20 INDIRP4 ARGP4 ADDRLP4 24 ARGP4 ADDRLP4 132 CNSTI4 0 ASGNI4 ADDRLP4 132 INDIRI4 ARGI4 ADDRLP4 132 INDIRI4 ARGI4 ADDRLP4 136 CNSTI4 8 ASGNI4 ADDRLP4 136 INDIRI4 ARGI4 ADDRLP4 136 INDIRI4 ARGI4 ADDRLP4 128 INDIRI4 ARGI4 ADDRGP4 CG_DrawStringExt CALLV pop LABELV $381 ADDRLP4 4 INDIRP4 CNSTI4 116 ADDP4 INDIRI4 ARGI4 ADDRLP4 4 INDIRP4 CNSTI4 120 ADDP4 INDIRI4 ARGI4 ADDRLP4 24 ARGP4 ADDRGP4 CG_GetColorForHealth CALLV pop ADDRLP4 60 ARGP4 CNSTI4 16 ARGI4 ADDRGP4 $387 ARGP4 ADDRLP4 4 INDIRP4 CNSTI4 116 ADDP4 INDIRI4 ARGI4 ADDRLP4 4 INDIRP4 CNSTI4 120 ADDP4 INDIRI4 ARGI4 ADDRGP4 Com_sprintf CALLI4 pop ADDRLP4 128 CNSTI4 3 ASGNI4 ADDRLP4 12 ADDRLP4 52 INDIRI4 CNSTI4 24 ADDI4 ADDRLP4 56 INDIRI4 ADDRLP4 128 INDIRI4 LSHI4 ADDI4 ADDRLP4 44 INDIRI4 ADDRLP4 128 INDIRI4 LSHI4 ADDI4 ASGNI4 ADDRLP4 12 INDIRI4 ARGI4 ADDRFP4 0 INDIRF4 CVFI4 4 ARGI4 ADDRLP4 60 ARGP4 ADDRLP4 24 ARGP4 ADDRLP4 132 CNSTI4 0 ASGNI4 ADDRLP4 132 INDIRI4 ARGI4 ADDRLP4 132 INDIRI4 ARGI4 ADDRLP4 136 CNSTI4 8 ASGNI4 ADDRLP4 136 INDIRI4 ARGI4 ADDRLP4 136 INDIRI4 ARGI4 ADDRLP4 132 INDIRI4 ARGI4 ADDRGP4 CG_DrawStringExt CALLV pop ADDRLP4 12 ADDRLP4 12 INDIRI4 CNSTI4 24 ADDI4 ASGNI4 CNSTI4 132 ADDRLP4 4 INDIRP4 CNSTI4 124 ADDP4 INDIRI4 MULI4 ADDRGP4 cg_weapons+68 ADDP4 INDIRI4 CNSTI4 0 EQI4 $388 ADDRLP4 12 INDIRI4 CVIF4 4 ARGF4 ADDRFP4 0 INDIRF4 ARGF4 ADDRLP4 140 CNSTF4 1090519040 ASGNF4 ADDRLP4 140 INDIRF4 ARGF4 ADDRLP4 140 INDIRF4 ARGF4 CNSTI4 132 ADDRLP4 4 INDIRP4 CNSTI4 124 ADDP4 INDIRI4 MULI4 ADDRGP4 cg_weapons+68 ADDP4 INDIRI4 ARGI4 ADDRGP4 CG_DrawPic CALLV pop ADDRGP4 $389 JUMPV LABELV $388 ADDRLP4 12 INDIRI4 CVIF4 4 ARGF4 ADDRFP4 0 INDIRF4 ARGF4 ADDRLP4 140 CNSTF4 1090519040 ASGNF4 ADDRLP4 140 INDIRF4 ARGF4 ADDRLP4 140 INDIRF4 ARGF4 ADDRGP4 cgs+152852+164 INDIRI4 ARGI4 ADDRGP4 CG_DrawPic CALLV pop LABELV $389 ADDRFP4 4 INDIRI4 CNSTI4 0 EQI4 $394 ADDRLP4 12 ADDRLP4 52 INDIRI4 ASGNI4 ADDRGP4 $395 JUMPV LABELV $394 ADDRLP4 12 ADDRLP4 52 INDIRI4 ADDRLP4 80 INDIRI4 ADDI4 CNSTI4 8 SUBI4 ASGNI4 LABELV $395 ADDRLP4 0 CNSTI4 0 ASGNI4 LABELV $396 ADDRLP4 4 INDIRP4 CNSTI4 148 ADDP4 INDIRI4 CNSTI4 1 ADDRLP4 0 INDIRI4 LSHI4 BANDI4 CNSTI4 0 EQI4 $400 ADDRLP4 0 INDIRI4 ARGI4 ADDRLP4 140 ADDRGP4 BG_FindItemForPowerup CALLP4 ASGNP4 ADDRLP4 16 ADDRLP4 140 INDIRP4 ASGNP4 ADDRLP4 16 INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $402 ADDRLP4 16 INDIRP4 CNSTI4 24 ADDP4 INDIRP4 ARGP4 ADDRLP4 144 ADDRGP4 trap_R_RegisterShader CALLI4 ASGNI4 ADDRLP4 12 INDIRI4 CVIF4 4 ARGF4 ADDRFP4 0 INDIRF4 ARGF4 ADDRLP4 148 CNSTF4 1090519040 ASGNF4 ADDRLP4 148 INDIRF4 ARGF4 ADDRLP4 148 INDIRF4 ARGF4 ADDRLP4 144 INDIRI4 ARGI4 ADDRGP4 CG_DrawPic CALLV pop ADDRFP4 4 INDIRI4 CNSTI4 0 EQI4 $404 ADDRLP4 12 ADDRLP4 12 INDIRI4 CNSTI4 8 SUBI4 ASGNI4 ADDRGP4 $405 JUMPV LABELV $404 ADDRLP4 12 ADDRLP4 12 INDIRI4 CNSTI4 8 ADDI4 ASGNI4 LABELV $405 LABELV $402 LABELV $400 LABELV $397 ADDRLP4 0 ADDRLP4 0 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 ADDRLP4 0 INDIRI4 CNSTI4 15 LEI4 $396 ADDRFP4 0 ADDRFP4 0 INDIRF4 CNSTF4 1090519040 ADDF4 ASGNF4 LABELV $375 LABELV $371 ADDRLP4 8 ADDRLP4 8 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 LABELV $373 ADDRLP4 8 INDIRI4 ADDRLP4 48 INDIRI4 LTI4 $370 ADDRLP4 88 INDIRI4 CVIF4 4 RETF4 LABELV $320 endproc CG_DrawTeamOverlay 152 36 proc CG_DrawUpperRight 16 12 ADDRLP4 0 CNSTF4 0 ASGNF4 ADDRGP4 cgs+31456 INDIRI4 CNSTI4 3 LTI4 $407 ADDRGP4 cg_drawTeamOverlay+12 INDIRI4 CNSTI4 1 NEI4 $407 ADDRLP4 0 INDIRF4 ARGF4 ADDRLP4 4 CNSTI4 1 ASGNI4 ADDRLP4 4 INDIRI4 ARGI4 ADDRLP4 4 INDIRI4 ARGI4 ADDRLP4 8 ADDRGP4 CG_DrawTeamOverlay CALLF4 ASGNF4 ADDRLP4 0 ADDRLP4 8 INDIRF4 ASGNF4 LABELV $407 ADDRGP4 cg_drawSnapshot+12 INDIRI4 CNSTI4 0 EQI4 $411 ADDRLP4 0 INDIRF4 ARGF4 ADDRLP4 4 ADDRGP4 CG_DrawSnapshot CALLF4 ASGNF4 ADDRLP4 0 ADDRLP4 4 INDIRF4 ASGNF4 LABELV $411 ADDRLP4 4 CNSTI4 0 ASGNI4 ADDRGP4 cg_drawFPS+12 INDIRI4 ADDRLP4 4 INDIRI4 EQI4 $414 ADDRLP4 8 ADDRFP4 0 INDIRI4 ASGNI4 ADDRLP4 8 INDIRI4 ADDRLP4 4 INDIRI4 EQI4 $417 ADDRLP4 8 INDIRI4 CNSTI4 2 NEI4 $414 LABELV $417 ADDRLP4 0 INDIRF4 ARGF4 ADDRLP4 12 ADDRGP4 CG_DrawFPS CALLF4 ASGNF4 ADDRLP4 0 ADDRLP4 12 INDIRF4 ASGNF4 LABELV $414 ADDRGP4 cg_drawTimer+12 INDIRI4 CNSTI4 0 EQI4 $418 ADDRLP4 0 INDIRF4 ARGF4 ADDRLP4 12 ADDRGP4 CG_DrawTimer CALLF4 ASGNF4 ADDRLP4 0 ADDRLP4 12 INDIRF4 ASGNF4 LABELV $418 ADDRGP4 cg_drawAttacker+12 INDIRI4 CNSTI4 0 EQI4 $421 ADDRLP4 0 INDIRF4 ARGF4 ADDRLP4 12 ADDRGP4 CG_DrawAttacker CALLF4 ASGNF4 ADDRLP4 0 ADDRLP4 12 INDIRF4 ASGNF4 LABELV $421 LABELV $406 endproc CG_DrawUpperRight 16 12 proc CG_DrawReward 68 36 ADDRGP4 cg_drawRewards+12 INDIRI4 CNSTI4 0 NEI4 $425 ADDRGP4 $424 JUMPV LABELV $425 ADDRGP4 cg+124412 INDIRI4 ARGI4 CNSTI4 3000 ARGI4 ADDRLP4 52 ADDRGP4 CG_FadeColor CALLP4 ASGNP4 ADDRLP4 16 ADDRLP4 52 INDIRP4 ASGNP4 ADDRLP4 16 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $429 ADDRGP4 cg+124408 INDIRI4 CNSTI4 0 LEI4 $424 ADDRLP4 0 CNSTI4 0 ASGNI4 ADDRGP4 $437 JUMPV LABELV $434 ADDRLP4 56 ADDRLP4 0 INDIRI4 CNSTI4 2 LSHI4 ASGNI4 ADDRLP4 56 INDIRI4 ADDRGP4 cg+124496 ADDP4 ADDRLP4 56 INDIRI4 ADDRGP4 cg+124496+4 ADDP4 INDIRI4 ASGNI4 ADDRLP4 60 ADDRLP4 0 INDIRI4 CNSTI4 2 LSHI4 ASGNI4 ADDRLP4 60 INDIRI4 ADDRGP4 cg+124456 ADDP4 ADDRLP4 60 INDIRI4 ADDRGP4 cg+124456+4 ADDP4 INDIRI4 ASGNI4 ADDRLP4 64 ADDRLP4 0 INDIRI4 CNSTI4 2 LSHI4 ASGNI4 ADDRLP4 64 INDIRI4 ADDRGP4 cg+124416 ADDP4 ADDRLP4 64 INDIRI4 ADDRGP4 cg+124416+4 ADDP4 INDIRI4 ASGNI4 LABELV $435 ADDRLP4 0 ADDRLP4 0 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 LABELV $437 ADDRLP4 0 INDIRI4 ADDRGP4 cg+124408 INDIRI4 LTI4 $434 ADDRGP4 cg+124412 ADDRGP4 cg+107604 INDIRI4 ASGNI4 ADDRLP4 56 ADDRGP4 cg+124408 ASGNP4 ADDRLP4 56 INDIRP4 ADDRLP4 56 INDIRP4 INDIRI4 CNSTI4 1 SUBI4 ASGNI4 ADDRGP4 cg+124412 INDIRI4 ARGI4 CNSTI4 3000 ARGI4 ADDRLP4 60 ADDRGP4 CG_FadeColor CALLP4 ASGNP4 ADDRLP4 16 ADDRLP4 60 INDIRP4 ASGNP4 ADDRGP4 cg+124496 INDIRI4 ARGI4 CNSTI4 7 ARGI4 ADDRGP4 trap_S_StartLocalSound CALLV pop LABELV $432 LABELV $429 ADDRLP4 16 INDIRP4 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop ADDRGP4 cg+124416 INDIRI4 CNSTI4 10 LTI4 $453 ADDRLP4 8 CNSTF4 1113587712 ASGNF4 ADDRLP4 4 CNSTF4 1133772800 ASGNF4 ADDRLP4 4 INDIRF4 ARGF4 ADDRLP4 8 INDIRF4 ARGF4 ADDRLP4 56 CNSTF4 1110441984 ASGNF4 ADDRLP4 56 INDIRF4 ARGF4 ADDRLP4 56 INDIRF4 ARGF4 ADDRGP4 cg+124456 INDIRI4 ARGI4 ADDRGP4 CG_DrawPic CALLV pop ADDRLP4 20 ARGP4 CNSTI4 32 ARGI4 ADDRGP4 $457 ARGP4 ADDRGP4 cg+124416 INDIRI4 ARGI4 ADDRGP4 Com_sprintf CALLI4 pop ADDRLP4 20 ARGP4 ADDRLP4 60 ADDRGP4 CG_DrawStrlen CALLI4 ASGNI4 ADDRLP4 4 CNSTI4 640 ADDRLP4 60 INDIRI4 CNSTI4 3 LSHI4 SUBI4 CNSTI4 2 DIVI4 CVIF4 4 ASGNF4 ADDRLP4 4 INDIRF4 CVFI4 4 ARGI4 ADDRLP4 8 INDIRF4 CNSTF4 1111490560 ADDF4 CVFI4 4 ARGI4 ADDRLP4 20 ARGP4 ADDRLP4 16 INDIRP4 ARGP4 ADDRLP4 64 CNSTI4 0 ASGNI4 ADDRLP4 64 INDIRI4 ARGI4 CNSTI4 1 ARGI4 CNSTI4 8 ARGI4 CNSTI4 16 ARGI4 ADDRLP4 64 INDIRI4 ARGI4 ADDRGP4 CG_DrawStringExt CALLV pop ADDRGP4 $454 JUMPV LABELV $453 ADDRLP4 12 ADDRGP4 cg+124416 INDIRI4 ASGNI4 ADDRLP4 8 CNSTF4 1113587712 ASGNF4 ADDRLP4 4 CNSTI4 320 CNSTI4 48 ADDRLP4 12 INDIRI4 MULI4 CNSTI4 2 DIVI4 SUBI4 CVIF4 4 ASGNF4 ADDRLP4 0 CNSTI4 0 ASGNI4 ADDRGP4 $463 JUMPV LABELV $460 ADDRLP4 4 INDIRF4 ARGF4 ADDRLP4 8 INDIRF4 ARGF4 ADDRLP4 56 CNSTF4 1110441984 ASGNF4 ADDRLP4 56 INDIRF4 ARGF4 ADDRLP4 56 INDIRF4 ARGF4 ADDRGP4 cg+124456 INDIRI4 ARGI4 ADDRGP4 CG_DrawPic CALLV pop ADDRLP4 4 ADDRLP4 4 INDIRF4 CNSTF4 1111490560 ADDF4 ASGNF4 LABELV $461 ADDRLP4 0 ADDRLP4 0 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 LABELV $463 ADDRLP4 0 INDIRI4 ADDRLP4 12 INDIRI4 LTI4 $460 LABELV $454 CNSTP4 0 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop LABELV $424 endproc CG_DrawReward 68 36 export CG_AddLagometerFrameInfo proc CG_AddLagometerFrameInfo 8 0 ADDRLP4 0 ADDRGP4 cg+107604 INDIRI4 ADDRGP4 cg+32 INDIRI4 SUBI4 ASGNI4 ADDRGP4 lagometer+512 INDIRI4 CNSTI4 127 BANDI4 CNSTI4 2 LSHI4 ADDRGP4 lagometer ADDP4 ADDRLP4 0 INDIRI4 ASGNI4 ADDRLP4 4 ADDRGP4 lagometer+512 ASGNP4 ADDRLP4 4 INDIRP4 ADDRLP4 4 INDIRP4 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 LABELV $466 endproc CG_AddLagometerFrameInfo 8 0 export CG_AddLagometerSnapshotInfo proc CG_AddLagometerSnapshotInfo 4 0 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 0 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $472 ADDRGP4 lagometer+1540 INDIRI4 CNSTI4 127 BANDI4 CNSTI4 2 LSHI4 ADDRGP4 lagometer+1028 ADDP4 CNSTI4 -1 ASGNI4 ADDRLP4 0 ADDRGP4 lagometer+1540 ASGNP4 ADDRLP4 0 INDIRP4 ADDRLP4 0 INDIRP4 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 ADDRGP4 $471 JUMPV LABELV $472 ADDRGP4 lagometer+1540 INDIRI4 CNSTI4 127 BANDI4 CNSTI4 2 LSHI4 ADDRGP4 lagometer+1028 ADDP4 ADDRFP4 0 INDIRP4 CNSTI4 4 ADDP4 INDIRI4 ASGNI4 ADDRGP4 lagometer+1540 INDIRI4 CNSTI4 127 BANDI4 CNSTI4 2 LSHI4 ADDRGP4 lagometer+516 ADDP4 ADDRFP4 0 INDIRP4 INDIRI4 ASGNI4 ADDRLP4 0 ADDRGP4 lagometer+1540 ASGNP4 ADDRLP4 0 INDIRP4 ADDRLP4 0 INDIRP4 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 LABELV $471 endproc CG_AddLagometerSnapshotInfo 4 0 proc CG_DrawDisconnect 64 20 ADDRLP4 44 ADDRGP4 trap_GetCurrentCmdNumber CALLI4 ASGNI4 ADDRLP4 36 ADDRLP4 44 INDIRI4 CNSTI4 64 SUBI4 CNSTI4 1 ADDI4 ASGNI4 ADDRLP4 36 INDIRI4 ARGI4 ADDRLP4 0 ARGP4 ADDRGP4 trap_GetUserCmd CALLI4 pop ADDRLP4 48 ADDRLP4 0 INDIRI4 ASGNI4 ADDRLP4 48 INDIRI4 ADDRGP4 cg+36 INDIRP4 CNSTI4 44 ADDP4 INDIRI4 LEI4 $487 ADDRLP4 48 INDIRI4 ADDRGP4 cg+107604 INDIRI4 LEI4 $483 LABELV $487 ADDRGP4 $482 JUMPV LABELV $483 ADDRLP4 24 ADDRGP4 $488 ASGNP4 ADDRLP4 24 INDIRP4 ARGP4 ADDRLP4 52 ADDRGP4 CG_DrawStrlen CALLI4 ASGNI4 ADDRLP4 40 ADDRLP4 52 INDIRI4 CNSTI4 4 LSHI4 ASGNI4 CNSTI4 320 ADDRLP4 40 INDIRI4 CNSTI4 2 DIVI4 SUBI4 ARGI4 CNSTI4 100 ARGI4 ADDRLP4 24 INDIRP4 ARGP4 CNSTF4 1065353216 ARGF4 ADDRGP4 CG_DrawBigString CALLV pop ADDRGP4 cg+107604 INDIRI4 CNSTI4 9 RSHI4 CNSTI4 1 BANDI4 CNSTI4 0 EQI4 $489 ADDRGP4 $482 JUMPV LABELV $489 ADDRLP4 28 CNSTF4 1142161408 ASGNF4 ADDRLP4 32 CNSTF4 1138229248 ASGNF4 ADDRGP4 $492 ARGP4 ADDRLP4 56 ADDRGP4 trap_R_RegisterShader CALLI4 ASGNI4 ADDRLP4 28 INDIRF4 ARGF4 ADDRLP4 32 INDIRF4 ARGF4 ADDRLP4 60 CNSTF4 1111490560 ASGNF4 ADDRLP4 60 INDIRF4 ARGF4 ADDRLP4 60 INDIRF4 ARGF4 ADDRLP4 56 INDIRI4 ARGI4 ADDRGP4 CG_DrawPic CALLV pop LABELV $482 endproc CG_DrawDisconnect 64 20 proc CG_DrawLagometer 76 36 ADDRLP4 52 CNSTI4 0 ASGNI4 ADDRGP4 cg_lagometer+12 INDIRI4 ADDRLP4 52 INDIRI4 EQI4 $498 ADDRGP4 cgs+31452 INDIRI4 ADDRLP4 52 INDIRI4 EQI4 $494 LABELV $498 ADDRGP4 CG_DrawDisconnect CALLV pop ADDRGP4 $493 JUMPV LABELV $494 ADDRLP4 44 CNSTI4 592 ASGNI4 ADDRLP4 48 CNSTI4 336 ASGNI4 CNSTP4 0 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop ADDRLP4 44 INDIRI4 CVIF4 4 ARGF4 ADDRLP4 48 INDIRI4 CVIF4 4 ARGF4 ADDRLP4 56 CNSTF4 1111490560 ASGNF4 ADDRLP4 56 INDIRF4 ARGF4 ADDRLP4 56 INDIRF4 ARGF4 ADDRGP4 cgs+152852+296 INDIRI4 ARGI4 ADDRGP4 CG_DrawPic CALLV pop ADDRLP4 24 ADDRLP4 44 INDIRI4 CVIF4 4 ASGNF4 ADDRLP4 36 ADDRLP4 48 INDIRI4 CVIF4 4 ASGNF4 ADDRLP4 60 CNSTF4 1111490560 ASGNF4 ADDRLP4 12 ADDRLP4 60 INDIRF4 ASGNF4 ADDRLP4 32 ADDRLP4 60 INDIRF4 ASGNF4 ADDRLP4 24 ARGP4 ADDRLP4 36 ARGP4 ADDRLP4 12 ARGP4 ADDRLP4 32 ARGP4 ADDRGP4 CG_AdjustFrom640 CALLV pop ADDRLP4 20 CNSTI4 -1 ASGNI4 ADDRLP4 16 ADDRLP4 32 INDIRF4 CNSTF4 1077936128 DIVF4 ASGNF4 ADDRLP4 40 ADDRLP4 36 INDIRF4 ADDRLP4 16 INDIRF4 ADDF4 ASGNF4 ADDRLP4 28 ADDRLP4 16 INDIRF4 CNSTF4 1133903872 DIVF4 ASGNF4 ADDRLP4 4 CNSTI4 0 ASGNI4 ADDRGP4 $504 JUMPV LABELV $501 ADDRLP4 8 ADDRGP4 lagometer+512 INDIRI4 CNSTI4 1 SUBI4 ADDRLP4 4 INDIRI4 SUBI4 CNSTI4 127 BANDI4 ASGNI4 ADDRLP4 0 ADDRLP4 8 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 lagometer ADDP4 INDIRI4 CVIF4 4 ASGNF4 ADDRLP4 0 ADDRLP4 0 INDIRF4 ADDRLP4 28 INDIRF4 MULF4 ASGNF4 ADDRLP4 0 INDIRF4 CNSTF4 0 LEF4 $506 ADDRLP4 20 INDIRI4 CNSTI4 1 EQI4 $508 ADDRLP4 20 CNSTI4 1 ASGNI4 ADDRGP4 g_color_table+48 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop LABELV $508 ADDRLP4 0 INDIRF4 ADDRLP4 16 INDIRF4 LEF4 $511 ADDRLP4 0 ADDRLP4 16 INDIRF4 ASGNF4 LABELV $511 ADDRLP4 24 INDIRF4 ADDRLP4 12 INDIRF4 ADDF4 ADDRLP4 4 INDIRI4 CVIF4 4 SUBF4 ARGF4 ADDRLP4 40 INDIRF4 ADDRLP4 0 INDIRF4 SUBF4 ARGF4 CNSTF4 1065353216 ARGF4 ADDRLP4 0 INDIRF4 ARGF4 ADDRLP4 72 CNSTF4 0 ASGNF4 ADDRLP4 72 INDIRF4 ARGF4 ADDRLP4 72 INDIRF4 ARGF4 ADDRLP4 72 INDIRF4 ARGF4 ADDRLP4 72 INDIRF4 ARGF4 ADDRGP4 cgs+152852+16 INDIRI4 ARGI4 ADDRGP4 trap_R_DrawStretchPic CALLV pop ADDRGP4 $507 JUMPV LABELV $506 ADDRLP4 0 INDIRF4 CNSTF4 0 GEF4 $515 ADDRLP4 20 INDIRI4 CNSTI4 2 EQI4 $517 ADDRLP4 20 CNSTI4 2 ASGNI4 ADDRGP4 g_color_table+64 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop LABELV $517 ADDRLP4 0 ADDRLP4 0 INDIRF4 NEGF4 ASGNF4 ADDRLP4 0 INDIRF4 ADDRLP4 16 INDIRF4 LEF4 $520 ADDRLP4 0 ADDRLP4 16 INDIRF4 ASGNF4 LABELV $520 ADDRLP4 24 INDIRF4 ADDRLP4 12 INDIRF4 ADDF4 ADDRLP4 4 INDIRI4 CVIF4 4 SUBF4 ARGF4 ADDRLP4 40 INDIRF4 ARGF4 CNSTF4 1065353216 ARGF4 ADDRLP4 0 INDIRF4 ARGF4 ADDRLP4 68 CNSTF4 0 ASGNF4 ADDRLP4 68 INDIRF4 ARGF4 ADDRLP4 68 INDIRF4 ARGF4 ADDRLP4 68 INDIRF4 ARGF4 ADDRLP4 68 INDIRF4 ARGF4 ADDRGP4 cgs+152852+16 INDIRI4 ARGI4 ADDRGP4 trap_R_DrawStretchPic CALLV pop LABELV $515 LABELV $507 LABELV $502 ADDRLP4 4 ADDRLP4 4 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 LABELV $504 ADDRLP4 4 INDIRI4 CVIF4 4 ADDRLP4 12 INDIRF4 LTF4 $501 ADDRLP4 16 ADDRLP4 32 INDIRF4 CNSTF4 1073741824 DIVF4 ASGNF4 ADDRLP4 28 ADDRLP4 16 INDIRF4 CNSTF4 1147207680 DIVF4 ASGNF4 ADDRLP4 4 CNSTI4 0 ASGNI4 ADDRGP4 $527 JUMPV LABELV $524 ADDRLP4 8 ADDRGP4 lagometer+1540 INDIRI4 CNSTI4 1 SUBI4 ADDRLP4 4 INDIRI4 SUBI4 CNSTI4 127 BANDI4 ASGNI4 ADDRLP4 0 ADDRLP4 8 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 lagometer+1028 ADDP4 INDIRI4 CVIF4 4 ASGNF4 ADDRLP4 0 INDIRF4 CNSTF4 0 LEF4 $530 ADDRLP4 8 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 lagometer+516 ADDP4 INDIRI4 CNSTI4 1 BANDI4 CNSTI4 0 EQI4 $532 ADDRLP4 20 INDIRI4 CNSTI4 5 EQI4 $533 ADDRLP4 20 CNSTI4 5 ASGNI4 ADDRGP4 g_color_table+48 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop ADDRGP4 $533 JUMPV LABELV $532 ADDRLP4 20 INDIRI4 CNSTI4 3 EQI4 $538 ADDRLP4 20 CNSTI4 3 ASGNI4 ADDRGP4 g_color_table+32 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop LABELV $538 LABELV $533 ADDRLP4 0 ADDRLP4 0 INDIRF4 ADDRLP4 28 INDIRF4 MULF4 ASGNF4 ADDRLP4 0 INDIRF4 ADDRLP4 16 INDIRF4 LEF4 $541 ADDRLP4 0 ADDRLP4 16 INDIRF4 ASGNF4 LABELV $541 ADDRLP4 24 INDIRF4 ADDRLP4 12 INDIRF4 ADDF4 ADDRLP4 4 INDIRI4 CVIF4 4 SUBF4 ARGF4 ADDRLP4 36 INDIRF4 ADDRLP4 32 INDIRF4 ADDF4 ADDRLP4 0 INDIRF4 SUBF4 ARGF4 CNSTF4 1065353216 ARGF4 ADDRLP4 0 INDIRF4 ARGF4 ADDRLP4 72 CNSTF4 0 ASGNF4 ADDRLP4 72 INDIRF4 ARGF4 ADDRLP4 72 INDIRF4 ARGF4 ADDRLP4 72 INDIRF4 ARGF4 ADDRLP4 72 INDIRF4 ARGF4 ADDRGP4 cgs+152852+16 INDIRI4 ARGI4 ADDRGP4 trap_R_DrawStretchPic CALLV pop ADDRGP4 $531 JUMPV LABELV $530 ADDRLP4 0 INDIRF4 CNSTF4 0 GEF4 $545 ADDRLP4 20 INDIRI4 CNSTI4 4 EQI4 $547 ADDRLP4 20 CNSTI4 4 ASGNI4 ADDRGP4 g_color_table+16 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop LABELV $547 ADDRLP4 24 INDIRF4 ADDRLP4 12 INDIRF4 ADDF4 ADDRLP4 4 INDIRI4 CVIF4 4 SUBF4 ARGF4 ADDRLP4 36 INDIRF4 ADDRLP4 32 INDIRF4 ADDF4 ADDRLP4 16 INDIRF4 SUBF4 ARGF4 CNSTF4 1065353216 ARGF4 ADDRLP4 16 INDIRF4 ARGF4 ADDRLP4 72 CNSTF4 0 ASGNF4 ADDRLP4 72 INDIRF4 ARGF4 ADDRLP4 72 INDIRF4 ARGF4 ADDRLP4 72 INDIRF4 ARGF4 ADDRLP4 72 INDIRF4 ARGF4 ADDRGP4 cgs+152852+16 INDIRI4 ARGI4 ADDRGP4 trap_R_DrawStretchPic CALLV pop LABELV $545 LABELV $531 LABELV $525 ADDRLP4 4 ADDRLP4 4 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 LABELV $527 ADDRLP4 4 INDIRI4 CVIF4 4 ADDRLP4 12 INDIRF4 LTF4 $524 CNSTP4 0 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop ADDRLP4 68 CNSTI4 0 ASGNI4 ADDRGP4 cg_nopredict+12 INDIRI4 ADDRLP4 68 INDIRI4 NEI4 $556 ADDRGP4 cg_synchronousClients+12 INDIRI4 ADDRLP4 68 INDIRI4 EQI4 $552 LABELV $556 ADDRLP4 44 INDIRI4 ARGI4 ADDRLP4 48 INDIRI4 ARGI4 ADDRGP4 $557 ARGP4 CNSTF4 1065353216 ARGF4 ADDRGP4 CG_DrawBigString CALLV pop LABELV $552 ADDRGP4 CG_DrawDisconnect CALLV pop LABELV $493 endproc CG_DrawLagometer 76 36 export CG_CenterPrint proc CG_CenterPrint 8 12 ADDRGP4 cg+123352 ARGP4 ADDRFP4 0 INDIRP4 ARGP4 CNSTI4 1024 ARGI4 ADDRGP4 Q_strncpyz CALLV pop ADDRGP4 cg+123340 ADDRGP4 cg+107604 INDIRI4 ASGNI4 ADDRGP4 cg+123348 ADDRFP4 4 INDIRI4 ASGNI4 ADDRGP4 cg+123344 ADDRFP4 8 INDIRI4 ASGNI4 ADDRGP4 cg+124376 CNSTI4 1 ASGNI4 ADDRLP4 0 ADDRGP4 cg+123352 ASGNP4 ADDRGP4 $568 JUMPV LABELV $567 ADDRLP4 0 INDIRP4 INDIRI1 CVII4 1 CNSTI4 10 NEI4 $570 ADDRLP4 4 ADDRGP4 cg+124376 ASGNP4 ADDRLP4 4 INDIRP4 ADDRLP4 4 INDIRP4 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 LABELV $570 ADDRLP4 0 ADDRLP4 0 INDIRP4 CNSTI4 1 ADDP4 ASGNP4 LABELV $568 ADDRLP4 0 INDIRP4 INDIRI1 CVII4 1 CNSTI4 0 NEI4 $567 LABELV $558 endproc CG_CenterPrint 8 12 proc CG_DrawCenterString 1068 32 ADDRGP4 cg+123340 INDIRI4 CNSTI4 0 NEI4 $574 ADDRGP4 $573 JUMPV LABELV $574 ADDRGP4 cg+123340 INDIRI4 ARGI4 CNSTF4 1148846080 ADDRGP4 cg_centertime+8 INDIRF4 MULF4 CVFI4 4 ARGI4 ADDRLP4 28 ADDRGP4 CG_FadeColor CALLP4 ASGNP4 ADDRLP4 24 ADDRLP4 28 INDIRP4 ASGNP4 ADDRLP4 24 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $579 ADDRGP4 $573 JUMPV LABELV $579 ADDRLP4 24 INDIRP4 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop ADDRLP4 0 ADDRGP4 cg+123352 ASGNP4 ADDRLP4 12 ADDRGP4 cg+123348 INDIRI4 ADDRGP4 cg+124376 INDIRI4 CNSTI4 4 LSHI4 CNSTI4 2 DIVI4 SUBI4 ASGNI4 ADDRGP4 $585 JUMPV LABELV $584 ADDRLP4 4 CNSTI4 0 ASGNI4 LABELV $587 ADDRLP4 1056 ADDRLP4 4 INDIRI4 ADDRLP4 0 INDIRP4 ADDP4 INDIRI1 CVII4 1 ASGNI4 ADDRLP4 1056 INDIRI4 CNSTI4 0 EQI4 $593 ADDRLP4 1056 INDIRI4 CNSTI4 10 NEI4 $591 LABELV $593 ADDRGP4 $589 JUMPV LABELV $591 ADDRLP4 4 INDIRI4 ADDRLP4 32 ADDP4 ADDRLP4 4 INDIRI4 ADDRLP4 0 INDIRP4 ADDP4 INDIRI1 ASGNI1 LABELV $588 ADDRLP4 4 ADDRLP4 4 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 ADDRLP4 4 INDIRI4 CNSTI4 50 LTI4 $587 LABELV $589 ADDRLP4 4 INDIRI4 ADDRLP4 32 ADDP4 CNSTI1 0 ASGNI1 ADDRLP4 32 ARGP4 CNSTF4 1056964608 ARGF4 CNSTI4 0 ARGI4 ADDRLP4 1056 ADDRGP4 CG_Text_Width CALLI4 ASGNI4 ADDRLP4 20 ADDRLP4 1056 INDIRI4 ASGNI4 ADDRLP4 32 ARGP4 CNSTF4 1056964608 ARGF4 CNSTI4 0 ARGI4 ADDRLP4 1060 ADDRGP4 CG_Text_Height CALLI4 ASGNI4 ADDRLP4 8 ADDRLP4 1060 INDIRI4 ASGNI4 ADDRLP4 16 CNSTI4 640 ADDRLP4 20 INDIRI4 SUBI4 CNSTI4 2 DIVI4 ASGNI4 ADDRLP4 16 INDIRI4 CVIF4 4 ARGF4 ADDRLP4 12 INDIRI4 ADDRLP4 8 INDIRI4 ADDI4 CVIF4 4 ARGF4 CNSTF4 1056964608 ARGF4 ADDRLP4 24 INDIRP4 ARGP4 ADDRLP4 32 ARGP4 CNSTF4 0 ARGF4 CNSTI4 0 ARGI4 CNSTI4 6 ARGI4 ADDRGP4 CG_Text_Paint CALLV pop ADDRLP4 12 ADDRLP4 12 INDIRI4 ADDRLP4 8 INDIRI4 CNSTI4 6 ADDI4 ADDI4 ASGNI4 ADDRGP4 $595 JUMPV LABELV $594 ADDRLP4 0 ADDRLP4 0 INDIRP4 CNSTI4 1 ADDP4 ASGNP4 LABELV $595 ADDRLP4 1064 ADDRLP4 0 INDIRP4 INDIRI1 CVII4 1 ASGNI4 ADDRLP4 1064 INDIRI4 CNSTI4 0 EQI4 $597 ADDRLP4 1064 INDIRI4 CNSTI4 10 NEI4 $594 LABELV $597 ADDRLP4 0 INDIRP4 INDIRI1 CVII4 1 CNSTI4 0 NEI4 $598 ADDRGP4 $586 JUMPV LABELV $598 ADDRLP4 0 ADDRLP4 0 INDIRP4 CNSTI4 1 ADDP4 ASGNP4 LABELV $585 ADDRGP4 $584 JUMPV LABELV $586 CNSTP4 0 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop LABELV $573 endproc CG_DrawCenterString 1068 32 proc CG_DrawCrosshair 56 36 ADDRGP4 cg_drawCrosshair+12 INDIRI4 CNSTI4 0 NEI4 $601 ADDRGP4 $600 JUMPV LABELV $601 ADDRGP4 cg+36 INDIRP4 CNSTI4 304 ADDP4 INDIRI4 CNSTI4 3 NEI4 $604 ADDRGP4 $600 JUMPV LABELV $604 ADDRGP4 cg+107628 INDIRI4 CNSTI4 0 EQI4 $607 ADDRGP4 $600 JUMPV LABELV $607 ADDRGP4 cg_crosshairHealth+12 INDIRI4 CNSTI4 0 EQI4 $610 ADDRLP4 28 ARGP4 ADDRGP4 CG_ColorForHealth CALLV pop ADDRLP4 28 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop ADDRGP4 $611 JUMPV LABELV $610 CNSTP4 0 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop LABELV $611 ADDRLP4 28 ADDRGP4 cg_crosshairSize+8 INDIRF4 ASGNF4 ADDRLP4 4 ADDRLP4 28 INDIRF4 ASGNF4 ADDRLP4 0 ADDRLP4 28 INDIRF4 ASGNF4 ADDRLP4 8 ADDRGP4 cg+107604 INDIRI4 ADDRGP4 cg+124656 INDIRI4 SUBI4 CVIF4 4 ASGNF4 ADDRLP4 8 INDIRF4 CNSTF4 0 LEF4 $616 ADDRLP4 8 INDIRF4 CNSTF4 1128792064 GEF4 $616 ADDRLP4 8 ADDRLP4 8 INDIRF4 CNSTF4 1128792064 DIVF4 ASGNF4 ADDRLP4 36 ADDRLP4 8 INDIRF4 CNSTF4 1065353216 ADDF4 ASGNF4 ADDRLP4 0 ADDRLP4 0 INDIRF4 ADDRLP4 36 INDIRF4 MULF4 ASGNF4 ADDRLP4 4 ADDRLP4 4 INDIRF4 ADDRLP4 36 INDIRF4 MULF4 ASGNF4 LABELV $616 ADDRLP4 16 ADDRGP4 cg_crosshairX+12 INDIRI4 CVIF4 4 ASGNF4 ADDRLP4 20 ADDRGP4 cg_crosshairY+12 INDIRI4 CVIF4 4 ASGNF4 ADDRLP4 16 ARGP4 ADDRLP4 20 ARGP4 ADDRLP4 0 ARGP4 ADDRLP4 4 ARGP4 ADDRGP4 CG_AdjustFrom640 CALLV pop ADDRLP4 12 ADDRGP4 cg_drawCrosshair+12 INDIRI4 ASGNI4 ADDRLP4 12 INDIRI4 CNSTI4 0 GEI4 $621 ADDRLP4 12 CNSTI4 0 ASGNI4 LABELV $621 ADDRLP4 24 ADDRLP4 12 INDIRI4 CNSTI4 10 MODI4 CNSTI4 2 LSHI4 ADDRGP4 cgs+152852+256 ADDP4 INDIRI4 ASGNI4 ADDRLP4 36 CNSTF4 1056964608 ASGNF4 ADDRLP4 40 ADDRLP4 0 INDIRF4 ASGNF4 ADDRLP4 16 INDIRF4 ADDRGP4 cg+109032 INDIRI4 CVIF4 4 ADDF4 ADDRLP4 36 INDIRF4 ADDRGP4 cg+109032+8 INDIRI4 CVIF4 4 ADDRLP4 40 INDIRF4 SUBF4 MULF4 ADDF4 ARGF4 ADDRLP4 44 ADDRLP4 4 INDIRF4 ASGNF4 ADDRLP4 20 INDIRF4 ADDRGP4 cg+109032+4 INDIRI4 CVIF4 4 ADDF4 ADDRLP4 36 INDIRF4 ADDRGP4 cg+109032+12 INDIRI4 CVIF4 4 ADDRLP4 44 INDIRF4 SUBF4 MULF4 ADDF4 ARGF4 ADDRLP4 40 INDIRF4 ARGF4 ADDRLP4 44 INDIRF4 ARGF4 ADDRLP4 48 CNSTF4 0 ASGNF4 ADDRLP4 48 INDIRF4 ARGF4 ADDRLP4 48 INDIRF4 ARGF4 ADDRLP4 52 CNSTF4 1065353216 ASGNF4 ADDRLP4 52 INDIRF4 ARGF4 ADDRLP4 52 INDIRF4 ARGF4 ADDRLP4 24 INDIRI4 ARGI4 ADDRGP4 trap_R_DrawStretchPic CALLV pop LABELV $600 endproc CG_DrawCrosshair 56 36 proc CG_DrawCrosshair3D 392 28 ADDRGP4 cg_drawCrosshair+12 INDIRI4 CNSTI4 0 NEI4 $633 ADDRGP4 $632 JUMPV LABELV $633 ADDRGP4 cg+36 INDIRP4 CNSTI4 304 ADDP4 INDIRI4 CNSTI4 3 NEI4 $636 ADDRGP4 $632 JUMPV LABELV $636 ADDRGP4 cg+107628 INDIRI4 CNSTI4 0 EQI4 $639 ADDRGP4 $632 JUMPV LABELV $639 ADDRLP4 356 ADDRGP4 cg_crosshairSize+8 INDIRF4 ASGNF4 ADDRLP4 276 ADDRGP4 cg+107604 INDIRI4 ADDRGP4 cg+124656 INDIRI4 SUBI4 CVIF4 4 ASGNF4 ADDRLP4 276 INDIRF4 CNSTF4 0 LEF4 $645 ADDRLP4 276 INDIRF4 CNSTF4 1128792064 GEF4 $645 ADDRLP4 276 ADDRLP4 276 INDIRF4 CNSTF4 1128792064 DIVF4 ASGNF4 ADDRLP4 356 ADDRLP4 356 INDIRF4 ADDRLP4 276 INDIRF4 CNSTF4 1065353216 ADDF4 MULF4 ASGNF4 LABELV $645 ADDRLP4 292 ADDRGP4 cg_drawCrosshair+12 INDIRI4 ASGNI4 ADDRLP4 292 INDIRI4 CNSTI4 0 GEI4 $648 ADDRLP4 292 CNSTI4 0 ASGNI4 LABELV $648 ADDRLP4 360 ADDRLP4 292 INDIRI4 CNSTI4 10 MODI4 CNSTI4 2 LSHI4 ADDRGP4 cgs+152852+256 ADDP4 INDIRI4 ASGNI4 ADDRGP4 $652 ARGP4 ADDRLP4 140 ARGP4 CNSTI4 128 ARGI4 ADDRGP4 trap_Cvar_VariableStringBuffer CALLV pop ADDRLP4 140 ARGP4 ADDRLP4 372 ADDRGP4 qk_atof CALLF4 ASGNF4 ADDRLP4 268 ADDRLP4 372 INDIRF4 ASGNF4 ADDRGP4 $653 ARGP4 ADDRLP4 140 ARGP4 CNSTI4 128 ARGI4 ADDRGP4 trap_Cvar_VariableStringBuffer CALLV pop ADDRLP4 140 ARGP4 ADDRLP4 376 ADDRGP4 qk_atof CALLF4 ASGNF4 ADDRLP4 364 ADDRLP4 268 INDIRF4 ADDRLP4 376 INDIRF4 DIVF4 ASGNF4 CNSTF4 1078530011 ADDRGP4 cg+109032+16 INDIRF4 MULF4 CNSTF4 1135869952 DIVF4 ARGF4 ADDRLP4 380 ADDRGP4 qk_tan CALLF4 ASGNF4 ADDRLP4 352 ADDRLP4 268 INDIRF4 ADDRLP4 380 INDIRF4 MULF4 ASGNF4 ADDRLP4 272 ADDRGP4 cgs+20100+11304 INDIRI4 CVIF4 4 ADDRLP4 364 INDIRF4 MULF4 ADDRLP4 268 INDIRF4 MULF4 CNSTF4 1073741824 ADDRLP4 352 INDIRF4 MULF4 DIVF4 ASGNF4 ADDRLP4 280 ADDRGP4 cg+109032+24 INDIRF4 ADDRGP4 cg+109032+36 INDIRF4 ADDRLP4 272 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 280+4 ADDRGP4 cg+109032+24+4 INDIRF4 ADDRGP4 cg+109032+36+4 INDIRF4 ADDRLP4 272 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 280+8 ADDRGP4 cg+109032+24+8 INDIRF4 ADDRGP4 cg+109032+36+8 INDIRF4 ADDRLP4 272 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 296 ARGP4 ADDRGP4 cg+109032+24 ARGP4 ADDRLP4 388 CNSTP4 0 ASGNP4 ADDRLP4 388 INDIRP4 ARGP4 ADDRLP4 388 INDIRP4 ARGP4 ADDRLP4 280 ARGP4 CNSTI4 0 ARGI4 CNSTI4 100663297 ARGI4 ADDRGP4 CG_Trace CALLV pop ADDRLP4 0 ARGP4 CNSTI4 0 ARGI4 CNSTU4 140 ARGU4 ADDRGP4 qk_memset CALLP4 pop ADDRLP4 0 CNSTI4 2 ASGNI4 ADDRLP4 0+4 CNSTI4 24 ASGNI4 ADDRLP4 0+68 ADDRLP4 296+12 INDIRB ASGNB 12 ADDRLP4 0+132 ADDRLP4 356 INDIRF4 CNSTF4 1142947840 DIVF4 ADDRLP4 352 INDIRF4 MULF4 ADDRLP4 296+8 INDIRF4 MULF4 ADDRLP4 272 INDIRF4 MULF4 ADDRLP4 268 INDIRF4 DIVF4 ASGNF4 ADDRLP4 0+112 ADDRLP4 360 INDIRI4 ASGNI4 ADDRLP4 0 ARGP4 ADDRGP4 trap_R_AddRefEntityToScene CALLV pop LABELV $632 endproc CG_DrawCrosshair3D 392 28 proc CG_ScanForCrosshairEntity 96 28 ADDRLP4 56 ADDRGP4 cg+109032+24 INDIRB ASGNB 12 ADDRLP4 84 CNSTF4 1207959552 ASGNF4 ADDRLP4 68 ADDRLP4 56 INDIRF4 ADDRLP4 84 INDIRF4 ADDRGP4 cg+109032+36 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 68+4 ADDRLP4 56+4 INDIRF4 ADDRLP4 84 INDIRF4 ADDRGP4 cg+109032+36+4 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 68+8 ADDRLP4 56+8 INDIRF4 CNSTF4 1207959552 ADDRGP4 cg+109032+36+8 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 0 ARGP4 ADDRLP4 56 ARGP4 ADDRLP4 88 ADDRGP4 vec3_origin ASGNP4 ADDRLP4 88 INDIRP4 ARGP4 ADDRLP4 88 INDIRP4 ARGP4 ADDRLP4 68 ARGP4 ADDRGP4 cg+36 INDIRP4 CNSTI4 184 ADDP4 INDIRI4 ARGI4 CNSTI4 33554433 ARGI4 ADDRGP4 CG_Trace CALLV pop ADDRLP4 0+52 INDIRI4 CNSTI4 64 LTI4 $700 ADDRGP4 $684 JUMPV LABELV $700 ADDRLP4 0+12 ARGP4 CNSTI4 0 ARGI4 ADDRLP4 92 ADDRGP4 CG_PointContents CALLI4 ASGNI4 ADDRLP4 80 ADDRLP4 92 INDIRI4 ASGNI4 ADDRLP4 80 INDIRI4 CNSTI4 64 BANDI4 CNSTI4 0 EQI4 $704 ADDRGP4 $684 JUMPV LABELV $704 CNSTI4 716 ADDRLP4 0+52 INDIRI4 MULI4 ADDRGP4 cg_entities+188 ADDP4 INDIRI4 CNSTI4 16 BANDI4 CNSTI4 0 EQI4 $706 ADDRGP4 $684 JUMPV LABELV $706 ADDRGP4 cg+124384 ADDRLP4 0+52 INDIRI4 ASGNI4 ADDRGP4 cg+124388 ADDRGP4 cg+107604 INDIRI4 ASGNI4 LABELV $684 endproc CG_ScanForCrosshairEntity 96 28 proc CG_DrawCrosshairNames 24 32 ADDRGP4 cg_drawCrosshair+12 INDIRI4 CNSTI4 0 NEI4 $715 ADDRGP4 $714 JUMPV LABELV $715 ADDRGP4 cg_drawCrosshairNames+12 INDIRI4 CNSTI4 0 NEI4 $718 ADDRGP4 $714 JUMPV LABELV $718 ADDRGP4 cg+107628 INDIRI4 CNSTI4 0 EQI4 $721 ADDRGP4 $714 JUMPV LABELV $721 ADDRGP4 CG_ScanForCrosshairEntity CALLV pop ADDRGP4 cg+124388 INDIRI4 ARGI4 CNSTI4 1000 ARGI4 ADDRLP4 12 ADDRGP4 CG_FadeColor CALLP4 ASGNP4 ADDRLP4 0 ADDRLP4 12 INDIRP4 ASGNP4 ADDRLP4 0 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $725 CNSTP4 0 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop ADDRGP4 $714 JUMPV LABELV $725 ADDRLP4 4 CNSTI4 1716 ADDRGP4 cg+124384 INDIRI4 MULI4 ADDRGP4 cgs+40972+4 ADDP4 ASGNP4 ADDRLP4 16 ADDRLP4 0 INDIRP4 CNSTI4 12 ADDP4 ASGNP4 ADDRLP4 16 INDIRP4 CNSTF4 1056964608 ADDRLP4 16 INDIRP4 INDIRF4 MULF4 ASGNF4 ADDRLP4 4 INDIRP4 ARGP4 CNSTF4 1050253722 ARGF4 CNSTI4 0 ARGI4 ADDRLP4 20 ADDRGP4 CG_Text_Width CALLI4 ASGNI4 ADDRLP4 8 ADDRLP4 20 INDIRI4 CVIF4 4 ASGNF4 CNSTF4 1134559232 ADDRLP4 8 INDIRF4 CNSTF4 1073741824 DIVF4 SUBF4 ARGF4 CNSTF4 1128136704 ARGF4 CNSTF4 1050253722 ARGF4 ADDRLP4 0 INDIRP4 ARGP4 ADDRLP4 4 INDIRP4 ARGP4 CNSTF4 0 ARGF4 CNSTI4 0 ARGI4 CNSTI4 3 ARGI4 ADDRGP4 CG_Text_Paint CALLV pop CNSTP4 0 ARGP4 ADDRGP4 trap_R_SetColor CALLV pop LABELV $714 endproc CG_DrawCrosshairNames 24 32 proc CG_DrawSpectator 0 16 CNSTI4 248 ARGI4 CNSTI4 440 ARGI4 ADDRGP4 $731 ARGP4 CNSTF4 1065353216 ARGF4 ADDRGP4 CG_DrawBigString CALLV pop ADDRGP4 cgs+31456 INDIRI4 CNSTI4 1 NEI4 $732 CNSTI4 200 ARGI4 CNSTI4 460 ARGI4 ADDRGP4 $735 ARGP4 CNSTF4 1065353216 ARGF4 ADDRGP4 CG_DrawBigString CALLV pop ADDRGP4 $733 JUMPV LABELV $732 ADDRGP4 cgs+31456 INDIRI4 CNSTI4 3 LTI4 $736 CNSTI4 8 ARGI4 CNSTI4 460 ARGI4 ADDRGP4 $739 ARGP4 CNSTF4 1065353216 ARGF4 ADDRGP4 CG_DrawBigString CALLV pop LABELV $736 LABELV $733 LABELV $730 endproc CG_DrawSpectator 0 16 proc CG_DrawVote 12 20 ADDRGP4 cgs+31676 INDIRI4 CNSTI4 0 NEI4 $741 ADDRGP4 $740 JUMPV LABELV $741 ADDRGP4 cgs+31688 INDIRI4 CNSTI4 0 EQI4 $744 ADDRGP4 cgs+31688 CNSTI4 0 ASGNI4 ADDRGP4 cgs+152852+900 INDIRI4 ARGI4 CNSTI4 6 ARGI4 ADDRGP4 trap_S_StartLocalSound CALLV pop LABELV $744 ADDRLP4 4 CNSTI4 30000 ADDRGP4 cg+107604 INDIRI4 ADDRGP4 cgs+31676 INDIRI4 SUBI4 SUBI4 CNSTI4 1000 DIVI4 ASGNI4 ADDRLP4 4 INDIRI4 CNSTI4 0 GEI4 $752 ADDRLP4 4 CNSTI4 0 ASGNI4 LABELV $752 ADDRGP4 $754 ARGP4 ADDRLP4 4 INDIRI4 ARGI4 ADDRGP4 cgs+31692 ARGP4 ADDRGP4 cgs+31680 INDIRI4 ARGI4 ADDRGP4 cgs+31684 INDIRI4 ARGI4 ADDRLP4 8 ADDRGP4 va CALLP4 ASGNP4 ADDRLP4 0 ADDRLP4 8 INDIRP4 ASGNP4 CNSTI4 0 ARGI4 CNSTI4 58 ARGI4 ADDRLP4 0 INDIRP4 ARGP4 CNSTF4 1065353216 ARGF4 ADDRGP4 CG_DrawSmallString CALLV pop ADDRLP4 0 ADDRGP4 $758 ASGNP4 CNSTI4 0 ARGI4 CNSTI4 76 ARGI4 ADDRLP4 0 INDIRP4 ARGP4 CNSTF4 1065353216 ARGF4 ADDRGP4 CG_DrawSmallString CALLV pop LABELV $740 endproc CG_DrawVote 12 20 proc CG_DrawTeamVote 24 20 CNSTI4 1716 ADDRGP4 cg+4 INDIRI4 MULI4 ADDRGP4 cgs+40972+68 ADDP4 INDIRI4 CNSTI4 1 NEI4 $760 ADDRLP4 0 CNSTI4 0 ASGNI4 ADDRGP4 $761 JUMPV LABELV $760 CNSTI4 1716 ADDRGP4 cg+4 INDIRI4 MULI4 ADDRGP4 cgs+40972+68 ADDP4 INDIRI4 CNSTI4 2 NEI4 $759 ADDRLP4 0 CNSTI4 1 ASGNI4 LABELV $766 LABELV $761 ADDRLP4 0 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 cgs+32716 ADDP4 INDIRI4 CNSTI4 0 NEI4 $770 ADDRGP4 $759 JUMPV LABELV $770 ADDRLP4 0 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 cgs+32740 ADDP4 INDIRI4 CNSTI4 0 EQI4 $773 ADDRLP4 0 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 cgs+32740 ADDP4 CNSTI4 0 ASGNI4 ADDRGP4 cgs+152852+900 INDIRI4 ARGI4 CNSTI4 6 ARGI4 ADDRGP4 trap_S_StartLocalSound CALLV pop LABELV $773 ADDRLP4 4 CNSTI4 30000 ADDRGP4 cg+107604 INDIRI4 ADDRLP4 0 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 cgs+32716 ADDP4 INDIRI4 SUBI4 SUBI4 CNSTI4 1000 DIVI4 ASGNI4 ADDRLP4 4 INDIRI4 CNSTI4 0 GEI4 $781 ADDRLP4 4 CNSTI4 0 ASGNI4 LABELV $781 ADDRGP4 $783 ARGP4 ADDRLP4 4 INDIRI4 ARGI4 ADDRLP4 0 INDIRI4 CNSTI4 10 LSHI4 ADDRGP4 cgs+32748 ADDP4 ARGP4 ADDRLP4 16 ADDRLP4 0 INDIRI4 CNSTI4 2 LSHI4 ASGNI4 ADDRLP4 16 INDIRI4 ADDRGP4 cgs+32724 ADDP4 INDIRI4 ARGI4 ADDRLP4 16 INDIRI4 ADDRGP4 cgs+32732 ADDP4 INDIRI4 ARGI4 ADDRLP4 20 ADDRGP4 va CALLP4 ASGNP4 ADDRLP4 8 ADDRLP4 20 INDIRP4 ASGNP4 CNSTI4 0 ARGI4 CNSTI4 90 ARGI4 ADDRLP4 8 INDIRP4 ARGP4 CNSTF4 1065353216 ARGF4 ADDRGP4 CG_DrawSmallString CALLV pop LABELV $759 endproc CG_DrawTeamVote 24 20 data align 4 LABELV $788 byte 4 1 code proc CG_DrawScoreboard 12 8 ADDRGP4 menuScoreboard INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $789 ADDRLP4 0 ADDRGP4 menuScoreboard INDIRP4 CNSTI4 68 ADDP4 ASGNP4 ADDRLP4 0 INDIRP4 ADDRLP4 0 INDIRP4 INDIRI4 CNSTI4 -1048577 BANDI4 ASGNI4 LABELV $789 ADDRGP4 cg_paused+12 INDIRI4 CNSTI4 0 EQI4 $791 ADDRGP4 cg+16 CNSTI4 0 ASGNI4 ADDRGP4 $788 CNSTI4 1 ASGNI4 CNSTI4 0 RETI4 ADDRGP4 $787 JUMPV LABELV $791 ADDRGP4 cgs+31456 INDIRI4 CNSTI4 2 NEI4 $795 ADDRGP4 cg+107636+4 INDIRI4 CNSTI4 5 NEI4 $795 ADDRGP4 cg+16 CNSTI4 0 ASGNI4 ADDRGP4 $788 CNSTI4 1 ASGNI4 CNSTI4 0 RETI4 ADDRGP4 $787 JUMPV LABELV $795 ADDRLP4 0 CNSTI4 0 ASGNI4 ADDRGP4 cg+124640 INDIRI4 ADDRLP4 0 INDIRI4 EQI4 $801 ADDRGP4 cg+114308 INDIRI4 ADDRLP4 0 INDIRI4 NEI4 $801 CNSTI4 0 RETI4 ADDRGP4 $787 JUMPV LABELV $801 ADDRGP4 cg+114308 INDIRI4 CNSTI4 0 NEI4 $813 ADDRGP4 cg+107636+4 INDIRI4 CNSTI4 3 EQI4 $813 ADDRGP4 cg+107636+4 INDIRI4 CNSTI4 5 NEI4 $805 LABELV $813 ADDRGP4 $806 JUMPV LABELV $805 ADDRGP4 cg+114316 INDIRI4 ARGI4 CNSTI4 200 ARGI4 ADDRLP4 4 ADDRGP4 CG_FadeColor CALLP4 ASGNP4 ADDRLP4 4 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $814 ADDRGP4 cg+16 CNSTI4 0 ASGNI4 ADDRGP4 cg+114320 CNSTI1 0 ASGNI1 ADDRGP4 $788 CNSTI4 1 ASGNI4 CNSTI4 0 RETI4 ADDRGP4 $787 JUMPV LABELV $814 LABELV $806 ADDRGP4 menuScoreboard INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $819 ADDRGP4 cgs+31456 INDIRI4 CNSTI4 3 LTI4 $821 ADDRGP4 $824 ARGP4 ADDRLP4 4 ADDRGP4 Menus_FindByName CALLP4 ASGNP4 ADDRGP4 menuScoreboard ADDRLP4 4 INDIRP4 ASGNP4 ADDRGP4 $822 JUMPV LABELV $821 ADDRGP4 $825 ARGP4 ADDRLP4 4 ADDRGP4 Menus_FindByName CALLP4 ASGNP4 ADDRGP4 menuScoreboard ADDRLP4 4 INDIRP4 ASGNP4 LABELV $822 LABELV $819 ADDRGP4 menuScoreboard INDIRP4 CVPU4 4 CNSTU4 0 EQU4 $826 ADDRGP4 $788 INDIRI4 CNSTI4 0 EQI4 $828 ADDRGP4 menuScoreboard INDIRP4 ARGP4 ADDRGP4 CG_SetScoreSelection CALLV pop ADDRGP4 $788 CNSTI4 0 ASGNI4 LABELV $828 ADDRGP4 menuScoreboard INDIRP4 ARGP4 CNSTI4 1 ARGI4 ADDRGP4 Menu_Paint CALLV pop LABELV $826 ADDRLP4 4 ADDRGP4 cg+16 ASGNP4 ADDRLP4 8 ADDRLP4 4 INDIRP4 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 ADDRLP4 4 INDIRP4 ADDRLP4 8 INDIRI4 ASGNI4 ADDRLP4 8 INDIRI4 CNSTI4 10 LEI4 $830 ADDRGP4 CG_LoadDeferredPlayers CALLV pop LABELV $830 CNSTI4 1 RETI4 LABELV $787 endproc CG_DrawScoreboard 12 8 proc CG_DrawIntermission 4 0 ADDRGP4 cg+114316 ADDRGP4 cg+107604 INDIRI4 ASGNI4 ADDRLP4 0 ADDRGP4 CG_DrawScoreboard CALLI4 ASGNI4 ADDRGP4 cg+114312 ADDRLP4 0 INDIRI4 ASGNI4 LABELV $833 endproc CG_DrawIntermission 4 0 proc CG_DrawFollow 36 36 ADDRGP4 cg+36 INDIRP4 CNSTI4 56 ADDP4 INDIRI4 CNSTI4 4096 BANDI4 CNSTI4 0 NEI4 $838 CNSTI4 0 RETI4 ADDRGP4 $837 JUMPV LABELV $838 ADDRLP4 24 CNSTF4 1065353216 ASGNF4 ADDRLP4 0 ADDRLP4 24 INDIRF4 ASGNF4 ADDRLP4 0+4 ADDRLP4 24 INDIRF4 ASGNF4 ADDRLP4 0+8 CNSTF4 1065353216 ASGNF4 ADDRLP4 0+12 CNSTF4 1065353216 ASGNF4 CNSTI4 248 ARGI4 CNSTI4 24 ARGI4 ADDRGP4 $844 ARGP4 CNSTF4 1065353216 ARGF4 ADDRGP4 CG_DrawBigString CALLV pop ADDRLP4 16 CNSTI4 1716 ADDRGP4 cg+36 INDIRP4 CNSTI4 184 ADDP4 INDIRI4 MULI4 ADDRGP4 cgs+40972+4 ADDP4 ASGNP4 ADDRLP4 16 INDIRP4 ARGP4 ADDRLP4 28 ADDRGP4 CG_DrawStrlen CALLI4 ASGNI4 ADDRLP4 20 CNSTF4 1056964608 CNSTI4 640 ADDRLP4 28 INDIRI4 CNSTI4 5 LSHI4 SUBI4 CVIF4 4 MULF4 ASGNF4 ADDRLP4 20 INDIRF4 CVFI4 4 ARGI4 CNSTI4 40 ARGI4 ADDRLP4 16 INDIRP4 ARGP4 ADDRLP4 0 ARGP4 ADDRLP4 32 CNSTI4 1 ASGNI4 ADDRLP4 32 INDIRI4 ARGI4 ADDRLP4 32 INDIRI4 ARGI4 CNSTI4 32 ARGI4 CNSTI4 48 ARGI4 CNSTI4 0 ARGI4 ADDRGP4 CG_DrawStringExt CALLV pop CNSTI4 1 RETI4 LABELV $837 endproc CG_DrawFollow 36 36 proc CG_DrawAmmoWarning 12 16 ADDRGP4 cg_drawAmmoWarning+12 INDIRI4 CNSTI4 0 NEI4 $849 ADDRGP4 $848 JUMPV LABELV $849 ADDRGP4 cg+124380 INDIRI4 CNSTI4 0 NEI4 $852 ADDRGP4 $848 JUMPV LABELV $852 ADDRGP4 cg+124380 INDIRI4 CNSTI4 2 NEI4 $855 ADDRLP4 0 ADDRGP4 $858 ASGNP4 ADDRGP4 $856 JUMPV LABELV $855 ADDRLP4 0 ADDRGP4 $859 ASGNP4 LABELV $856 ADDRLP4 0 INDIRP4 ARGP4 ADDRLP4 8 ADDRGP4 CG_DrawStrlen CALLI4 ASGNI4 ADDRLP4 4 ADDRLP4 8 INDIRI4 CNSTI4 4 LSHI4 ASGNI4 CNSTI4 320 ADDRLP4 4 INDIRI4 CNSTI4 2 DIVI4 SUBI4 ARGI4 CNSTI4 64 ARGI4 ADDRLP4 0 INDIRP4 ARGP4 CNSTF4 1065353216 ARGF4 ADDRGP4 CG_DrawBigString CALLV pop LABELV $848 endproc CG_DrawAmmoWarning 12 16 bss align 4 LABELV $861 skip 4 align 4 LABELV $862 skip 4 align 4 LABELV $863 skip 4 code proc CG_DrawProxWarning 44 16 ADDRGP4 cg+36 INDIRP4 CNSTI4 148 ADDP4 INDIRI4 CNSTI4 2 BANDI4 CNSTI4 0 NEI4 $864 ADDRGP4 $861 CNSTI4 0 ASGNI4 ADDRGP4 $860 JUMPV LABELV $864 ADDRGP4 $861 INDIRI4 CNSTI4 0 NEI4 $867 ADDRGP4 $861 ADDRGP4 cg+107604 INDIRI4 CNSTI4 5000 ADDI4 ASGNI4 ADDRGP4 $862 CNSTI4 5 ASGNI4 ADDRGP4 $863 CNSTI4 0 ASGNI4 LABELV $867 ADDRGP4 cg+107604 INDIRI4 ADDRGP4 $861 INDIRI4 LEI4 $870 ADDRLP4 40 ADDRGP4 $862 ASGNP4 ADDRLP4 36 ADDRLP4 40 INDIRP4 INDIRI4 ASGNI4 ADDRLP4 40 INDIRP4 ADDRLP4 36 INDIRI4 CNSTI4 1 SUBI4 ASGNI4 ADDRGP4 $863 ADDRLP4 36 INDIRI4 ASGNI4 ADDRGP4 $861 ADDRGP4 cg+107604 INDIRI4 CNSTI4 1000 ADDI4 ASGNI4 LABELV $870 ADDRGP4 $863 INDIRI4 CNSTI4 0 EQI4 $874 ADDRLP4 0 ARGP4 CNSTI4 32 ARGI4 ADDRGP4 $876 ARGP4 ADDRGP4 $863 INDIRI4 ARGI4 ADDRGP4 Com_sprintf CALLI4 pop ADDRGP4 $875 JUMPV LABELV $874 ADDRLP4 0 ARGP4 CNSTI4 32 ARGI4 ADDRGP4 $877 ARGP4 ADDRGP4 Com_sprintf CALLI4 pop LABELV $875 ADDRLP4 0 ARGP4 ADDRLP4 36 ADDRGP4 CG_DrawStrlen CALLI4 ASGNI4 ADDRLP4 32 ADDRLP4 36 INDIRI4 CNSTI4 4 LSHI4 ASGNI4 CNSTI4 320 ADDRLP4 32 INDIRI4 CNSTI4 2 DIVI4 SUBI4 ARGI4 CNSTI4 80 ARGI4 ADDRLP4 0 ARGP4 ADDRGP4 g_color_table+16 ARGP4 ADDRGP4 CG_DrawBigStringColor CALLV pop LABELV $860 endproc CG_DrawProxWarning 44 16 proc CG_DrawWarmup 48 32 ADDRLP4 4 ADDRGP4 cg+124640 INDIRI4 ASGNI4 ADDRLP4 4 INDIRI4 CNSTI4 0 NEI4 $881 ADDRGP4 $879 JUMPV LABELV $881 ADDRLP4 4 INDIRI4 CNSTI4 0 GEI4 $883 ADDRLP4 8 ADDRGP4 $885 ASGNP4 ADDRLP4 8 INDIRP4 ARGP4 ADDRLP4 28 ADDRGP4 CG_DrawStrlen CALLI4 ASGNI4 ADDRLP4 16 ADDRLP4 28 INDIRI4 CNSTI4 4 LSHI4 ASGNI4 CNSTI4 320 ADDRLP4 16 INDIRI4 CNSTI4 2 DIVI4 SUBI4 ARGI4 CNSTI4 24 ARGI4 ADDRLP4 8 INDIRP4 ARGP4 CNSTF4 1065353216 ARGF4 ADDRGP4 CG_DrawBigString CALLV pop ADDRGP4 cg+124644 CNSTI4 0 ASGNI4 ADDRGP4 $879 JUMPV LABELV $883 ADDRGP4 cgs+31456 INDIRI4 CNSTI4 1 NEI4 $887 ADDRLP4 28 CNSTP4 0 ASGNP4 ADDRLP4 12 ADDRLP4 28 INDIRP4 ASGNP4 ADDRLP4 20 ADDRLP4 28 INDIRP4 ASGNP4 ADDRLP4 0 CNSTI4 0 ASGNI4 ADDRGP4 $893 JUMPV LABELV $890 ADDRLP4 32 CNSTI4 1716 ADDRLP4 0 INDIRI4 MULI4 ASGNI4 ADDRLP4 36 CNSTI4 0 ASGNI4 ADDRLP4 32 INDIRI4 ADDRGP4 cgs+40972 ADDP4 INDIRI4 ADDRLP4 36 INDIRI4 EQI4 $895 ADDRLP4 32 INDIRI4 ADDRGP4 cgs+40972+68 ADDP4 INDIRI4 ADDRLP4 36 INDIRI4 NEI4 $895 ADDRLP4 12 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $900 ADDRLP4 12 CNSTI4 1716 ADDRLP4 0 INDIRI4 MULI4 ADDRGP4 cgs+40972 ADDP4 ASGNP4 ADDRGP4 $901 JUMPV LABELV $900 ADDRLP4 20 CNSTI4 1716 ADDRLP4 0 INDIRI4 MULI4 ADDRGP4 cgs+40972 ADDP4 ASGNP4 LABELV $901 LABELV $895 LABELV $891 ADDRLP4 0 ADDRLP4 0 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 LABELV $893 ADDRLP4 0 INDIRI4 ADDRGP4 cgs+31480 INDIRI4 LTI4 $890 ADDRLP4 32 CNSTU4 0 ASGNU4 ADDRLP4 12 INDIRP4 CVPU4 4 ADDRLP4 32 INDIRU4 EQU4 $888 ADDRLP4 20 INDIRP4 CVPU4 4 ADDRLP4 32 INDIRU4 EQU4 $888 ADDRGP4 $906 ARGP4 ADDRLP4 36 CNSTI4 4 ASGNI4 ADDRLP4 12 INDIRP4 ADDRLP4 36 INDIRI4 ADDP4 ARGP4 ADDRLP4 20 INDIRP4 ADDRLP4 36 INDIRI4 ADDP4 ARGP4 ADDRLP4 40 ADDRGP4 va CALLP4 ASGNP4 ADDRLP4 8 ADDRLP4 40 INDIRP4 ASGNP4 ADDRLP4 8 INDIRP4 ARGP4 CNSTF4 1058642330 ARGF4 CNSTI4 0 ARGI4 ADDRLP4 44 ADDRGP4 CG_Text_Width CALLI4 ASGNI4 ADDRLP4 16 ADDRLP4 44 INDIRI4 ASGNI4 CNSTI4 320 ADDRLP4 16 INDIRI4 CNSTI4 2 DIVI4 SUBI4 CVIF4 4 ARGF4 CNSTF4 1114636288 ARGF4 CNSTF4 1058642330 ARGF4 ADDRGP4 colorWhite ARGP4 ADDRLP4 8 INDIRP4 ARGP4 CNSTF4 0 ARGF4 CNSTI4 0 ARGI4 CNSTI4 6 ARGI4 ADDRGP4 CG_Text_Paint CALLV pop ADDRGP4 $888 JUMPV LABELV $887 ADDRGP4 cgs+31456 INDIRI4 CNSTI4 0 NEI4 $907 ADDRLP4 8 ADDRGP4 $910 ASGNP4 ADDRGP4 $908 JUMPV LABELV $907 ADDRGP4 cgs+31456 INDIRI4 CNSTI4 3 NEI4 $911 ADDRLP4 8 ADDRGP4 $914 ASGNP4 ADDRGP4 $912 JUMPV LABELV $911 ADDRGP4 cgs+31456 INDIRI4 CNSTI4 4 NEI4 $915 ADDRLP4 8 ADDRGP4 $918 ASGNP4 ADDRGP4 $916 JUMPV LABELV $915 ADDRGP4 cgs+31456 INDIRI4 CNSTI4 5 NEI4 $919 ADDRLP4 8 ADDRGP4 $922 ASGNP4 ADDRGP4 $920 JUMPV LABELV $919 ADDRGP4 cgs+31456 INDIRI4 CNSTI4 6 NEI4 $923 ADDRLP4 8 ADDRGP4 $926 ASGNP4 ADDRGP4 $924 JUMPV LABELV $923 ADDRGP4 cgs+31456 INDIRI4 CNSTI4 7 NEI4 $927 ADDRLP4 8 ADDRGP4 $930 ASGNP4 ADDRGP4 $928 JUMPV LABELV $927 ADDRLP4 8 ADDRGP4 $931 ASGNP4 LABELV $928 LABELV $924 LABELV $920 LABELV $916 LABELV $912 LABELV $908 ADDRLP4 8 INDIRP4 ARGP4 CNSTF4 1058642330 ARGF4 CNSTI4 0 ARGI4 ADDRLP4 28 ADDRGP4 CG_Text_Width CALLI4 ASGNI4 ADDRLP4 16 ADDRLP4 28 INDIRI4 ASGNI4 CNSTI4 320 ADDRLP4 16 INDIRI4 CNSTI4 2 DIVI4 SUBI4 CVIF4 4 ARGF4 CNSTF4 1119092736 ARGF4 CNSTF4 1058642330 ARGF4 ADDRGP4 colorWhite ARGP4 ADDRLP4 8 INDIRP4 ARGP4 CNSTF4 0 ARGF4 CNSTI4 0 ARGI4 CNSTI4 6 ARGI4 ADDRGP4 CG_Text_Paint CALLV pop LABELV $888 ADDRLP4 4 ADDRLP4 4 INDIRI4 ADDRGP4 cg+107604 INDIRI4 SUBI4 CNSTI4 1000 DIVI4 ASGNI4 ADDRLP4 4 INDIRI4 CNSTI4 0 GEI4 $933 ADDRGP4 cg+124640 CNSTI4 0 ASGNI4 ADDRLP4 4 CNSTI4 0 ASGNI4 LABELV $933 ADDRGP4 $936 ARGP4 ADDRLP4 4 INDIRI4 CNSTI4 1 ADDI4 ARGI4 ADDRLP4 28 ADDRGP4 va CALLP4 ASGNP4 ADDRLP4 8 ADDRLP4 28 INDIRP4 ASGNP4 ADDRLP4 4 INDIRI4 ADDRGP4 cg+124644 INDIRI4 EQI4 $937 ADDRGP4 cg+124644 ADDRLP4 4 INDIRI4 ASGNI4 ADDRLP4 4 INDIRI4 CNSTI4 0 EQI4 $943 ADDRLP4 4 INDIRI4 CNSTI4 1 EQI4 $946 ADDRLP4 4 INDIRI4 CNSTI4 2 EQI4 $949 ADDRGP4 $942 JUMPV LABELV $943 ADDRGP4 cgs+152852+1136 INDIRI4 ARGI4 CNSTI4 7 ARGI4 ADDRGP4 trap_S_StartLocalSound CALLV pop ADDRGP4 $942 JUMPV LABELV $946 ADDRGP4 cgs+152852+1132 INDIRI4 ARGI4 CNSTI4 7 ARGI4 ADDRGP4 trap_S_StartLocalSound CALLV pop ADDRGP4 $942 JUMPV LABELV $949 ADDRGP4 cgs+152852+1128 INDIRI4 ARGI4 CNSTI4 7 ARGI4 ADDRGP4 trap_S_StartLocalSound CALLV pop LABELV $942 LABELV $937 ADDRLP4 32 ADDRGP4 cg+124644 INDIRI4 ASGNI4 ADDRLP4 32 INDIRI4 CNSTI4 0 EQI4 $955 ADDRLP4 32 INDIRI4 CNSTI4 1 EQI4 $956 ADDRLP4 32 INDIRI4 CNSTI4 2 EQI4 $957 ADDRGP4 $952 JUMPV LABELV $955 ADDRLP4 24 CNSTF4 1057635697 ASGNF4 ADDRGP4 $953 JUMPV LABELV $956 ADDRLP4 24 CNSTF4 1057132380 ASGNF4 ADDRGP4 $953 JUMPV LABELV $957 ADDRLP4 24 CNSTF4 1056293519 ASGNF4 ADDRGP4 $953 JUMPV LABELV $952 ADDRLP4 24 CNSTF4 1055286886 ASGNF4 LABELV $953 ADDRLP4 8 INDIRP4 ARGP4 ADDRLP4 24 INDIRF4 ARGF4 CNSTI4 0 ARGI4 ADDRLP4 36 ADDRGP4 CG_Text_Width CALLI4 ASGNI4 ADDRLP4 16 ADDRLP4 36 INDIRI4 ASGNI4 CNSTI4 320 ADDRLP4 16 INDIRI4 CNSTI4 2 DIVI4 SUBI4 CVIF4 4 ARGF4 CNSTF4 1123680256 ARGF4 ADDRLP4 24 INDIRF4 ARGF4 ADDRGP4 colorWhite ARGP4 ADDRLP4 8 INDIRP4 ARGP4 CNSTF4 0 ARGF4 CNSTI4 0 ARGI4 CNSTI4 6 ARGI4 ADDRGP4 CG_Text_Paint CALLV pop LABELV $879 endproc CG_DrawWarmup 48 32 export CG_DrawTimedMenus proc CG_DrawTimedMenus 4 8 ADDRGP4 cg+124404 INDIRI4 CNSTI4 0 EQI4 $959 ADDRLP4 0 ADDRGP4 cg+107604 INDIRI4 ADDRGP4 cg+124404 INDIRI4 SUBI4 ASGNI4 ADDRLP4 0 INDIRI4 CNSTI4 2500 LEI4 $964 ADDRGP4 $966 ARGP4 ADDRGP4 Menus_CloseByName CALLV pop ADDRGP4 $967 ARGP4 ADDRGP4 $968 ARGP4 ADDRGP4 trap_Cvar_Set CALLV pop ADDRGP4 cg+124404 CNSTI4 0 ASGNI4 LABELV $964 LABELV $959 LABELV $958 endproc CG_DrawTimedMenus 4 8 proc CG_Draw2D 8 4 ADDRGP4 cgs+152796 INDIRI4 CNSTI4 0 EQI4 $971 ADDRGP4 cg+107604 INDIRI4 ADDRGP4 cgs+152800 INDIRI4 LEI4 $971 ADDRGP4 CG_CheckOrderPending CALLV pop LABELV $971 ADDRGP4 cg+12 INDIRI4 CNSTI4 0 EQI4 $976 ADDRGP4 $970 JUMPV LABELV $976 ADDRGP4 cg_draw2D+12 INDIRI4 CNSTI4 0 NEI4 $979 ADDRGP4 $970 JUMPV LABELV $979 ADDRGP4 cg+36 INDIRP4 CNSTI4 48 ADDP4 INDIRI4 CNSTI4 5 NEI4 $982 ADDRGP4 CG_DrawIntermission CALLV pop ADDRGP4 $970 JUMPV LABELV $982 ADDRGP4 cg+36 INDIRP4 CNSTI4 304 ADDP4 INDIRI4 CNSTI4 3 NEI4 $985 ADDRGP4 CG_DrawSpectator CALLV pop ADDRFP4 0 INDIRI4 CNSTI4 0 NEI4 $988 ADDRGP4 CG_DrawCrosshair CALLV pop LABELV $988 ADDRGP4 CG_DrawCrosshairNames CALLV pop ADDRGP4 $986 JUMPV LABELV $985 ADDRLP4 0 CNSTI4 0 ASGNI4 ADDRGP4 cg+114308 INDIRI4 ADDRLP4 0 INDIRI4 NEI4 $990 ADDRGP4 cg+36 INDIRP4 CNSTI4 228 ADDP4 INDIRI4 ADDRLP4 0 INDIRI4 LEI4 $990 ADDRGP4 cg_drawStatus+12 INDIRI4 CNSTI4 0 EQI4 $994 ADDRGP4 Menu_PaintAll CALLV pop ADDRGP4 CG_DrawTimedMenus CALLV pop LABELV $994 ADDRGP4 CG_DrawAmmoWarning CALLV pop ADDRGP4 CG_DrawProxWarning CALLV pop ADDRFP4 0 INDIRI4 CNSTI4 0 NEI4 $997 ADDRGP4 CG_DrawCrosshair CALLV pop LABELV $997 ADDRGP4 CG_DrawCrosshairNames CALLV pop ADDRGP4 CG_DrawWeaponSelect CALLV pop ADDRGP4 CG_DrawReward CALLV pop LABELV $990 ADDRGP4 cgs+31456 INDIRI4 CNSTI4 3 LTI4 $999 LABELV $999 LABELV $986 ADDRGP4 CG_DrawVote CALLV pop ADDRGP4 CG_DrawTeamVote CALLV pop ADDRGP4 CG_DrawLagometer CALLV pop ADDRGP4 cg_paused+12 INDIRI4 CNSTI4 0 NEI4 $1002 ADDRFP4 0 INDIRI4 ARGI4 ADDRGP4 CG_DrawUpperRight CALLV pop LABELV $1002 ADDRLP4 0 ADDRGP4 CG_DrawFollow CALLI4 ASGNI4 ADDRLP4 0 INDIRI4 CNSTI4 0 NEI4 $1005 ADDRGP4 CG_DrawWarmup CALLV pop LABELV $1005 ADDRLP4 4 ADDRGP4 CG_DrawScoreboard CALLI4 ASGNI4 ADDRGP4 cg+114312 ADDRLP4 4 INDIRI4 ASGNI4 ADDRGP4 cg+114312 INDIRI4 CNSTI4 0 NEI4 $1008 ADDRGP4 CG_DrawCenterString CALLV pop LABELV $1008 LABELV $970 endproc CG_Draw2D 8 4 proc CG_DrawTourneyScoreboard 0 0 LABELV $1011 endproc CG_DrawTourneyScoreboard 0 0 export CG_DrawActive proc CG_DrawActive 0 4 ADDRGP4 cg+36 INDIRP4 CVPU4 4 CNSTU4 0 NEU4 $1013 ADDRGP4 CG_DrawInformation CALLV pop ADDRGP4 $1012 JUMPV LABELV $1013 ADDRGP4 cg+36 INDIRP4 CNSTI4 304 ADDP4 INDIRI4 CNSTI4 3 NEI4 $1016 ADDRGP4 cg+36 INDIRP4 CNSTI4 56 ADDP4 INDIRI4 CNSTI4 8192 BANDI4 CNSTI4 0 EQI4 $1016 ADDRGP4 CG_DrawTourneyScoreboard CALLV pop ADDRGP4 $1012 JUMPV LABELV $1016 ADDRGP4 CG_TileClear CALLV pop ADDRFP4 0 INDIRI4 CNSTI4 0 EQI4 $1020 ADDRGP4 CG_DrawCrosshair3D CALLV pop LABELV $1020 ADDRGP4 cg+109032 ARGP4 ADDRGP4 trap_R_RenderScene CALLV pop ADDRFP4 0 INDIRI4 ARGI4 ADDRGP4 CG_Draw2D CALLV pop LABELV $1012 endproc CG_DrawActive 0 4 bss export lagometer align 4 LABELV lagometer skip 1544 import cgDC import trap_PC_SourceFileAndLine import trap_PC_ReadToken import trap_PC_FreeSource import trap_PC_LoadSource import trap_PC_AddGlobalDefine import Controls_SetDefaults import Controls_SetConfig import Controls_GetConfig import UI_OutOfMemory import UI_InitMemory import UI_Alloc import Display_CacheAll import Menu_SetFeederSelection import Menu_Paint import Menus_CloseAll import LerpColor import Display_HandleKey import Menus_CloseByName import Menus_ShowByName import Menus_FindByName import Menus_OpenByName import Display_KeyBindPending import Display_CursorType import Display_MouseMove import Display_CaptureItem import Display_GetContext import Menus_Activate import Menus_AnyFullScreenVisible import Menu_Reset import Menus_ActivateByName import Menu_PaintAll import Menu_New import Menu_Count import PC_Script_Parse import PC_String_Parse import PC_Rect_Parse import PC_Int_Parse import PC_Color_Parse import PC_Float_Parse import Script_Parse import String_Parse import Rect_Parse import Int_Parse import Color_Parse import Float_Parse import Menu_ScrollFeeder import Menu_HandleMouseMove import Menu_HandleKey import Menu_GetFocused import Menu_PostParse import Item_Init import Menu_Init import Display_ExpandMacros import Init_Display import String_Report import String_Init import String_Alloc import CG_NewParticleArea import initparticles import CG_ParticleExplosion import CG_ParticleMisc import CG_ParticleDust import CG_ParticleSparks import CG_ParticleBulletDebris import CG_ParticleSnowFlurry import CG_AddParticleShrapnel import CG_ParticleSmoke import CG_ParticleSnow import CG_AddParticles import CG_ClearParticles import trap_GetEntityToken import trap_getCameraInfo import trap_startCamera import trap_loadCamera import trap_SnapVector import trap_RealTime import trap_CIN_SetExtents import trap_CIN_DrawCinematic import trap_CIN_RunCinematic import trap_CIN_StopCinematic import trap_CIN_PlayCinematic import trap_Key_GetKey import trap_Key_SetCatcher import trap_Key_GetCatcher import trap_Key_IsDown import trap_R_RegisterFont import trap_MemoryRemaining import testPrintFloat import testPrintInt import trap_SetUserCmdValue import trap_GetUserCmd import trap_GetCurrentCmdNumber import trap_GetServerCommand import trap_GetSnapshot import trap_GetCurrentSnapshotNumber import trap_GetGameState import trap_GetGlconfig import trap_R_inPVS import trap_R_RemapShader import trap_R_LerpTag import trap_R_ModelBounds import trap_R_DrawStretchPic import trap_R_SetColor import trap_R_RenderScene import trap_R_LightForPoint import trap_R_AddAdditiveLightToScene import trap_R_AddLightToScene import trap_R_AddPolysToScene import trap_R_AddPolyToScene import trap_R_AddRefEntityToScene import trap_R_ClearScene import trap_R_RegisterShaderNoMip import trap_R_RegisterShader import trap_R_RegisterSkin import trap_R_RegisterModel import trap_R_LoadWorldMap import trap_S_StopBackgroundTrack import trap_S_StartBackgroundTrack import trap_S_RegisterSound import trap_S_Respatialize import trap_S_UpdateEntityPosition import trap_S_AddRealLoopingSound import trap_S_AddLoopingSound import trap_S_ClearLoopingSounds import trap_S_StartLocalSound import trap_S_StopLoopingSound import trap_S_StartSound import trap_CM_MarkFragments import trap_CM_TransformedCapsuleTrace import trap_CM_TransformedBoxTrace import trap_CM_CapsuleTrace import trap_CM_BoxTrace import trap_CM_TransformedPointContents import trap_CM_PointContents import trap_CM_TempBoxModel import trap_CM_InlineModel import trap_CM_NumInlineModels import trap_CM_LoadMap import trap_UpdateScreen import trap_SendClientCommand import trap_RemoveCommand import trap_AddCommand import trap_SendConsoleCommand import trap_FS_Seek import trap_FS_FCloseFile import trap_FS_Write import trap_FS_Read import trap_FS_FOpenFile import trap_Args import trap_Argv import trap_Argc import trap_Cvar_VariableStringBuffer import trap_Cvar_Set import trap_Cvar_Update import trap_Cvar_Register import trap_Milliseconds import trap_Error import trap_Print import CG_CheckChangedPredictableEvents import CG_TransitionPlayerState import CG_Respawn import CG_PlayBufferedVoiceChats import CG_VoiceChatLocal import CG_LoadVoiceChats import CG_ShaderStateChanged import CG_SetConfigValues import CG_ParseServerinfo import CG_ExecuteNewServerCommands import CG_InitConsoleCommands import CG_ConsoleCommand import CG_DrawOldTourneyScoreboard import CG_DrawOldScoreboard import CG_DrawInformation import CG_LoadingClient import CG_LoadingItem import CG_LoadingString import CG_ProcessSnapshots import CG_MakeExplosion import CG_Bleed import CG_BigExplode import CG_GibPlayer import CG_ScorePlum import CG_LightningBoltBeam import CG_InvulnerabilityJuiced import CG_InvulnerabilityImpact import CG_ObeliskPain import CG_ObeliskExplode import CG_KamikazeEffect import CG_SpawnEffect import CG_BubbleTrail import CG_SmokePuff import CG_AddLocalEntities import CG_AllocLocalEntity import CG_InitLocalEntities import CG_ImpactMark import CG_AddMarks import CG_InitMarkPolys import CG_OutOfAmmoChange import CG_DrawWeaponSelect import CG_AddPlayerWeapon import CG_AddViewWeapon import CG_GrappleTrail import CG_RailTrail import CG_Bullet import CG_ShotgunFire import CG_MissileHitPlayer import CG_MissileHitWall import CG_FireWeapon import CG_RegisterItemVisuals import CG_RegisterWeapon import CG_Weapon_f import CG_PrevWeapon_f import CG_NextWeapon_f import CG_PositionRotatedEntityOnTag import CG_PositionEntityOnTag import CG_AdjustPositionForMover import CG_Beam import CG_AddPacketEntities import CG_SetEntitySoundPosition import CG_PainEvent import CG_EntityEvent import CG_PlaceString import CG_CheckEvents import CG_LoadDeferredPlayers import CG_PredictPlayerState import CG_Trace import CG_PointContents import CG_BuildSolidList import CG_CustomSound import CG_NewClientInfo import CG_AddRefEntityWithPowerups import CG_ResetPlayerEntity import CG_Player import CG_StatusHandle import CG_OtherTeamHasFlag import CG_YourTeamHasFlag import CG_GameTypeString import CG_CheckOrderPending import CG_GetKillerText import CG_GetGameStatusText import CG_GetTeamColor import CG_InitTeamChat import CG_SetPrintString import CG_ShowResponseHead import CG_RunMenuScript import CG_OwnerDrawVisible import CG_GetValue import CG_SelectNextPlayer import CG_SelectPrevPlayer import CG_OwnerDraw export teamChat2 align 1 LABELV teamChat2 skip 256 export teamChat1 align 1 LABELV teamChat1 skip 256 export systemChat align 1 LABELV systemChat skip 256 import drawTeamOverlayModificationCount export numSortedTeamPlayers align 4 LABELV numSortedTeamPlayers skip 4 export sortedTeamPlayers align 4 LABELV sortedTeamPlayers skip 128 import CG_DrawTopBottom import CG_DrawSides import CG_DrawRect import UI_DrawProportionalString import CG_GetColorForHealth import CG_ColorForHealth import CG_TileClear import CG_TeamColor import CG_FadeColor import CG_DrawStrlen import CG_DrawSmallStringColor import CG_DrawSmallString import CG_DrawBigStringColor import CG_DrawBigString import CG_DrawStringExt import CG_DrawString import CG_DrawPic import CG_FillRect import CG_AdjustFrom640 import CG_DrawActiveFrame import CG_AddBufferedSound import CG_ZoomUp_f import CG_ZoomDown_f import CG_TestModelPrevSkin_f import CG_TestModelNextSkin_f import CG_TestModelPrevFrame_f import CG_TestModelNextFrame_f import CG_TestGun_f import CG_TestModel_f import CG_BuildSpectatorString import CG_GetSelectedScore import CG_SetScoreSelection import CG_RankRunFrame import CG_EventHandling import CG_MouseEvent import CG_KeyEvent import CG_LoadMenus import CG_LastAttacker import CG_CrosshairPlayer import CG_UpdateCvars import CG_StartMusic import CG_Error import CG_Printf import CG_Argv import CG_ConfigString import cg_obeliskRespawnDelay import cg_recordSPDemoName import cg_recordSPDemo import cg_singlePlayerActive import cg_enableBreath import cg_enableDust import cg_singlePlayer import cg_currentSelectedPlayerName import cg_currentSelectedPlayer import cg_blueTeamName import cg_redTeamName import cg_trueLightning import cg_oldPlasma import cg_oldRocket import cg_oldRail import cg_noProjectileTrail import cg_noTaunt import cg_bigFont import cg_smallFont import cg_cameraMode import cg_timescale import cg_timescaleFadeSpeed import cg_timescaleFadeEnd import cg_cameraOrbitDelay import cg_cameraOrbit import pmove_msec import pmove_fixed import cg_smoothClients import cg_scorePlum import cg_noVoiceText import cg_noVoiceChats import cg_teamChatsOnly import cg_drawFriend import cg_deferPlayers import cg_predictItems import cg_blood import cg_paused import cg_buildScript import cg_forceModel import cg_stats import cg_teamChatHeight import cg_teamChatTime import cg_synchronousClients import cg_drawAttacker import cg_lagometer import cg_thirdPerson import cg_thirdPersonAngle import cg_thirdPersonRange import cg_zoomFov import cg_fov import cg_simpleItems import cg_ignore import cg_autoswitch import cg_tracerLength import cg_tracerWidth import cg_tracerChance import cg_viewsize import cg_drawGun import cg_gun_z import cg_gun_y import cg_gun_x import cg_gun_frame import cg_brassTime import cg_addMarks import cg_footsteps import cg_showmiss import cg_noPlayerAnims import cg_nopredict import cg_errorDecay import cg_railTrailTime import cg_debugEvents import cg_debugPosition import cg_debugAnim import cg_animSpeed import cg_draw2D import cg_drawStatus import cg_crosshairHealth import cg_crosshairSize import cg_crosshairY import cg_crosshairX import cg_teamOverlayUserinfo import cg_drawTeamOverlay import cg_drawRewards import cg_drawCrosshairNames import cg_drawCrosshair import cg_drawAmmoWarning import cg_drawIcons import cg_draw3dIcons import cg_drawSnapshot import cg_drawFPS import cg_drawTimer import cg_gibs import cg_shadows import cg_swingSpeed import cg_bobroll import cg_bobpitch import cg_bobup import cg_runroll import cg_runpitch import cg_centertime import cg_markPolys import cg_items import cg_weapons import cg_entities import cg import cgs import BG_PlayerTouchesItem import BG_PlayerStateToEntityStateExtraPolate import BG_PlayerStateToEntityState import BG_TouchJumpPad import BG_AddPredictableEventToPlayerstate import BG_EvaluateTrajectoryDelta import BG_EvaluateTrajectory import BG_CanItemBeGrabbed import BG_FindItemForHoldable import BG_FindItemForPowerup import BG_FindItemForWeapon import BG_FindItem import bg_numItems import bg_itemlist import Pmove import PM_UpdateViewAngles import Com_Printf import Com_Error import Info_NextPair import Info_Validate import Info_SetValueForKey_Big import Info_SetValueForKey import Info_RemoveKey_Big import Info_RemoveKey import Info_ValueForKey import Com_TruncateLongString import va import Q_CountChar import Q_CleanStr import Q_PrintStrlen import Q_strcat import Q_strncpyz import Q_stristr import Q_strupr import Q_strlwr import Q_stricmpn import Q_strncmp import Q_stricmp import Q_isintegral import Q_isanumber import Q_isalpha import Q_isupper import Q_islower import Q_isprint import Com_RandomBytes import Com_SkipCharset import Com_SkipTokens import Com_sprintf import Com_HexStrToInt import Parse3DMatrix import Parse2DMatrix import Parse1DMatrix import SkipRestOfLine import SkipBracedSection import COM_MatchToken import COM_ParseWarning import COM_ParseError import COM_Compress import COM_ParseExt import COM_Parse import COM_GetCurrentParseLine import COM_BeginParseSession import COM_DefaultExtension import COM_CompareExtension import COM_StripExtension import COM_GetExtension import COM_SkipPath import Com_Clamp import PerpendicularVector import AngleVectors import MatrixMultiply import MakeNormalVectors import RotateAroundDirection import RotatePointAroundVector import ProjectPointOnPlane import PlaneFromPoints import AngleDelta import AngleNormalize180 import AngleNormalize360 import AnglesSubtract import AngleSubtract import LerpAngle import AngleMod import BoundsIntersectPoint import BoundsIntersectSphere import BoundsIntersect import BoxOnPlaneSide import SetPlaneSignbits import AxisCopy import AxisClear import AnglesToAxis import vectoangles import Q_crandom import Q_random import Q_rand import Q_acos import Q_log2 import VectorRotate import Vector4Scale import VectorNormalize2 import VectorNormalize import CrossProduct import VectorInverse import VectorNormalizeFast import DistanceSquared import Distance import VectorLengthSquared import VectorLength import VectorCompare import AddPointToBounds import ClearBounds import RadiusFromBounds import NormalizeColor import ColorBytes4 import ColorBytes3 import _VectorMA import _VectorScale import _VectorCopy import _VectorAdd import _VectorSubtract import _DotProduct import ByteToDir import DirToByte import ClampShort import ClampChar import Q_rsqrt import Q_fabs import Q_isnan import axisDefault import vec3_origin import g_color_table import colorDkGrey import colorMdGrey import colorLtGrey import colorWhite import colorCyan import colorMagenta import colorYellow import colorBlue import colorGreen import colorRed import colorBlack import bytedirs import Hunk_AllocDebug import FloatSwap import LongSwap import ShortSwap import CopyLongSwap import CopyShortSwap import qk_acos import qk_fabs import qk_abs import qk_tan import qk_atan2 import qk_cos import qk_sin import qk_sqrt import qk_floor import qk_ceil import qk_memcpy import qk_memset import qk_memmove import qk_sscanf import qk_vsnprintf import qk_strtol import qk_atoi import qk_strtod import qk_atof import qk_toupper import qk_tolower import qk_strncpy import qk_strstr import qk_strrchr import qk_strchr import qk_strcmp import qk_strcpy import qk_strcat import qk_strlen import qk_rand import qk_srand import qk_qsort lit align 1 LABELV $968 byte 1 48 byte 1 0 align 1 LABELV $967 byte 1 99 byte 1 108 byte 1 95 byte 1 99 byte 1 111 byte 1 110 byte 1 88 byte 1 79 byte 1 102 byte 1 102 byte 1 115 byte 1 101 byte 1 116 byte 1 0 align 1 LABELV $966 byte 1 118 byte 1 111 byte 1 105 byte 1 99 byte 1 101 byte 1 77 byte 1 101 byte 1 110 byte 1 117 byte 1 0 align 1 LABELV $936 byte 1 83 byte 1 116 byte 1 97 byte 1 114 byte 1 116 byte 1 115 byte 1 32 byte 1 105 byte 1 110 byte 1 58 byte 1 32 byte 1 37 byte 1 105 byte 1 0 align 1 LABELV $931 byte 1 0 align 1 LABELV $930 byte 1 72 byte 1 97 byte 1 114 byte 1 118 byte 1 101 byte 1 115 byte 1 116 byte 1 101 byte 1 114 byte 1 0 align 1 LABELV $926 byte 1 79 byte 1 118 byte 1 101 byte 1 114 byte 1 108 byte 1 111 byte 1 97 byte 1 100 byte 1 0 align 1 LABELV $922 byte 1 79 byte 1 110 byte 1 101 byte 1 32 byte 1 70 byte 1 108 byte 1 97 byte 1 103 byte 1 32 byte 1 67 byte 1 84 byte 1 70 byte 1 0 align 1 LABELV $918 byte 1 67 byte 1 97 byte 1 112 byte 1 116 byte 1 117 byte 1 114 byte 1 101 byte 1 32 byte 1 116 byte 1 104 byte 1 101 byte 1 32 byte 1 70 byte 1 108 byte 1 97 byte 1 103 byte 1 0 align 1 LABELV $914 byte 1 84 byte 1 101 byte 1 97 byte 1 109 byte 1 32 byte 1 68 byte 1 101 byte 1 97 byte 1 116 byte 1 104 byte 1 109 byte 1 97 byte 1 116 byte 1 99 byte 1 104 byte 1 0 align 1 LABELV $910 byte 1 70 byte 1 114 byte 1 101 byte 1 101 byte 1 32 byte 1 70 byte 1 111 byte 1 114 byte 1 32 byte 1 65 byte 1 108 byte 1 108 byte 1 0 align 1 LABELV $906 byte 1 37 byte 1 115 byte 1 32 byte 1 118 byte 1 115 byte 1 32 byte 1 37 byte 1 115 byte 1 0 align 1 LABELV $885 byte 1 87 byte 1 97 byte 1 105 byte 1 116 byte 1 105 byte 1 110 byte 1 103 byte 1 32 byte 1 102 byte 1 111 byte 1 114 byte 1 32 byte 1 112 byte 1 108 byte 1 97 byte 1 121 byte 1 101 byte 1 114 byte 1 115 byte 1 0 align 1 LABELV $877 byte 1 89 byte 1 79 byte 1 85 byte 1 32 byte 1 72 byte 1 65 byte 1 86 byte 1 69 byte 1 32 byte 1 66 byte 1 69 byte 1 69 byte 1 78 byte 1 32 byte 1 77 byte 1 73 byte 1 78 byte 1 69 byte 1 68 byte 1 0 align 1 LABELV $876 byte 1 73 byte 1 78 byte 1 84 byte 1 69 byte 1 82 byte 1 78 byte 1 65 byte 1 76 byte 1 32 byte 1 67 byte 1 79 byte 1 77 byte 1 66 byte 1 85 byte 1 83 byte 1 84 byte 1 73 byte 1 79 byte 1 78 byte 1 32 byte 1 73 byte 1 78 byte 1 58 byte 1 32 byte 1 37 byte 1 105 byte 1 0 align 1 LABELV $859 byte 1 76 byte 1 79 byte 1 87 byte 1 32 byte 1 65 byte 1 77 byte 1 77 byte 1 79 byte 1 32 byte 1 87 byte 1 65 byte 1 82 byte 1 78 byte 1 73 byte 1 78 byte 1 71 byte 1 0 align 1 LABELV $858 byte 1 79 byte 1 85 byte 1 84 byte 1 32 byte 1 79 byte 1 70 byte 1 32 byte 1 65 byte 1 77 byte 1 77 byte 1 79 byte 1 0 align 1 LABELV $844 byte 1 102 byte 1 111 byte 1 108 byte 1 108 byte 1 111 byte 1 119 byte 1 105 byte 1 110 byte 1 103 byte 1 0 align 1 LABELV $825 byte 1 115 byte 1 99 byte 1 111 byte 1 114 byte 1 101 byte 1 95 byte 1 109 byte 1 101 byte 1 110 byte 1 117 byte 1 0 align 1 LABELV $824 byte 1 116 byte 1 101 byte 1 97 byte 1 109 byte 1 115 byte 1 99 byte 1 111 byte 1 114 byte 1 101 byte 1 95 byte 1 109 byte 1 101 byte 1 110 byte 1 117 byte 1 0 align 1 LABELV $783 byte 1 84 byte 1 69 byte 1 65 byte 1 77 byte 1 86 byte 1 79 byte 1 84 byte 1 69 byte 1 40 byte 1 37 byte 1 105 byte 1 41 byte 1 58 byte 1 37 byte 1 115 byte 1 32 byte 1 121 byte 1 101 byte 1 115 byte 1 58 byte 1 37 byte 1 105 byte 1 32 byte 1 110 byte 1 111 byte 1 58 byte 1 37 byte 1 105 byte 1 0 align 1 LABELV $758 byte 1 111 byte 1 114 byte 1 32 byte 1 112 byte 1 114 byte 1 101 byte 1 115 byte 1 115 byte 1 32 byte 1 69 byte 1 83 byte 1 67 byte 1 32 byte 1 116 byte 1 104 byte 1 101 byte 1 110 byte 1 32 byte 1 99 byte 1 108 byte 1 105 byte 1 99 byte 1 107 byte 1 32 byte 1 86 byte 1 111 byte 1 116 byte 1 101 byte 1 0 align 1 LABELV $754 byte 1 86 byte 1 79 byte 1 84 byte 1 69 byte 1 40 byte 1 37 byte 1 105 byte 1 41 byte 1 58 byte 1 37 byte 1 115 byte 1 32 byte 1 121 byte 1 101 byte 1 115 byte 1 58 byte 1 37 byte 1 105 byte 1 32 byte 1 110 byte 1 111 byte 1 58 byte 1 37 byte 1 105 byte 1 0 align 1 LABELV $739 byte 1 112 byte 1 114 byte 1 101 byte 1 115 byte 1 115 byte 1 32 byte 1 69 byte 1 83 byte 1 67 byte 1 32 byte 1 97 byte 1 110 byte 1 100 byte 1 32 byte 1 117 byte 1 115 byte 1 101 byte 1 32 byte 1 116 byte 1 104 byte 1 101 byte 1 32 byte 1 74 byte 1 79 byte 1 73 byte 1 78 byte 1 32 byte 1 109 byte 1 101 byte 1 110 byte 1 117 byte 1 32 byte 1 116 byte 1 111 byte 1 32 byte 1 112 byte 1 108 byte 1 97 byte 1 121 byte 1 0 align 1 LABELV $735 byte 1 119 byte 1 97 byte 1 105 byte 1 116 byte 1 105 byte 1 110 byte 1 103 byte 1 32 byte 1 116 byte 1 111 byte 1 32 byte 1 112 byte 1 108 byte 1 97 byte 1 121 byte 1 0 align 1 LABELV $731 byte 1 83 byte 1 80 byte 1 69 byte 1 67 byte 1 84 byte 1 65 byte 1 84 byte 1 79 byte 1 82 byte 1 0 align 1 LABELV $653 byte 1 114 byte 1 95 byte 1 115 byte 1 116 byte 1 101 byte 1 114 byte 1 101 byte 1 111 byte 1 83 byte 1 101 byte 1 112 byte 1 97 byte 1 114 byte 1 97 byte 1 116 byte 1 105 byte 1 111 byte 1 110 byte 1 0 align 1 LABELV $652 byte 1 114 byte 1 95 byte 1 122 byte 1 80 byte 1 114 byte 1 111 byte 1 106 byte 1 0 align 1 LABELV $557 byte 1 115 byte 1 110 byte 1 99 byte 1 0 align 1 LABELV $492 byte 1 103 byte 1 102 byte 1 120 byte 1 47 byte 1 50 byte 1 100 byte 1 47 byte 1 110 byte 1 101 byte 1 116 byte 1 46 byte 1 116 byte 1 103 byte 1 97 byte 1 0 align 1 LABELV $488 byte 1 67 byte 1 111 byte 1 110 byte 1 110 byte 1 101 byte 1 99 byte 1 116 byte 1 105 byte 1 111 byte 1 110 byte 1 32 byte 1 73 byte 1 110 byte 1 116 byte 1 101 byte 1 114 byte 1 114 byte 1 117 byte 1 112 byte 1 116 byte 1 101 byte 1 100 byte 1 0 align 1 LABELV $457 byte 1 37 byte 1 100 byte 1 0 align 1 LABELV $387 byte 1 37 byte 1 51 byte 1 105 byte 1 32 byte 1 37 byte 1 51 byte 1 105 byte 1 0 align 1 LABELV $386 byte 1 117 byte 1 110 byte 1 107 byte 1 110 byte 1 111 byte 1 119 byte 1 110 byte 1 0 align 1 LABELV $319 byte 1 37 byte 1 105 byte 1 58 byte 1 37 byte 1 105 byte 1 37 byte 1 105 byte 1 0 align 1 LABELV $315 byte 1 37 byte 1 105 byte 1 102 byte 1 112 byte 1 115 byte 1 0 align 1 LABELV $299 byte 1 116 byte 1 105 byte 1 109 byte 1 101 byte 1 58 byte 1 37 byte 1 105 byte 1 32 byte 1 115 byte 1 110 byte 1 97 byte 1 112 byte 1 58 byte 1 37 byte 1 105 byte 1 32 byte 1 99 byte 1 109 byte 1 100 byte 1 58 byte 1 37 byte 1 105 byte 1 0 align 1 LABELV $297 byte 1 110 byte 1 0
alloy4fun_models/trashltl/models/11/huzh8jf7rP7hg7LND.als
Kaixi26/org.alloytools.alloy
0
1742
<filename>alloy4fun_models/trashltl/models/11/huzh8jf7rP7hg7LND.als<gh_stars>0 open main pred idhuzh8jf7rP7hg7LND_prop12 { always some f : File | f not in Trash until (eventually f in Trash) } pred __repair { idhuzh8jf7rP7hg7LND_prop12 } check __repair { idhuzh8jf7rP7hg7LND_prop12 <=> prop12o }
libsrc/_DEVELOPMENT/compress/zx7/c/sccz80/dzx7_standard_back.asm
jpoikela/z88dk
640
241639
; void dzx7_standard_back(void *src, void *dst) SECTION code_clib SECTION code_compress_zx7 PUBLIC dzx7_standard_back EXTERN asm_dzx7_standard_back dzx7_standard_back: pop af pop de pop hl push hl push de push af jp asm_dzx7_standard_back
src/rejuvenation-file_utils.ads
TNO/Rejuvenation-Ada
1
23787
<reponame>TNO/Rejuvenation-Ada with Ada.Directories; use Ada.Directories; package Rejuvenation.File_Utils is procedure Write_String_To_File (Contents : String; File_Name : String); -- Write the Contents string to a file with the given File_Name. function Get_String_From_File (File_Name : String) return String; -- Return the contents string of a file with the given File_Name. procedure Walk_Files (Directory_Name : String; File_Pattern : String; Process_File : not null access procedure (Item : Directory_Entry_Type); Recursive : Boolean := True); -- Apply the procedure to all files that match the pattern -- in the given directory. -- The Recursive flags determines whether subdirectory are also include. end Rejuvenation.File_Utils;
src/skill-tasks.adb
skill-lang/adaCommon
0
19157
<filename>src/skill-tasks.adb<gh_stars>0 -- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ tasks package -- -- |___/_|\_\_|_|____| by: <NAME> -- -- -- pragma Ada_2012; package body Skill.Tasks is task body Run is begin accept Start (C : Closure) do Runnable.all (C => C); end Start; end Run; end Skill.Tasks;
oeis/077/A077897.asm
neoneye/loda-programs
11
12191
<reponame>neoneye/loda-programs ; A077897: Expansion of (1-x)^(-1)/(1+x-2*x^2-x^3). ; Submitted by <NAME> ; 1,0,3,-1,8,-6,22,-25,64,-91,195,-312,612,-1040,1953,-3420,6287,-11173,20328,-36386,65870,-118313,213668,-384423,693447,-1248624,2251096,-4054896,7308465,-13167160,23729195,-42755049,77046280,-138827182,250164694,-450772777,812274984,-1463655843 add $0,1 lpb $0 sub $0,1 div $2,2 mov $1,$2 mov $2,$4 mul $2,2 add $3,1 sub $4,$2 add $4,$3 mov $3,$2 add $3,$1 lpe mov $0,$4
oeis/194/A194385.asm
neoneye/loda-programs
11
171260
<reponame>neoneye/loda-programs ; A194385: Numbers m such that Sum_{k=1..m} (<1/2 + k*r> - <k*r>) = 0, where r=sqrt(10) and < > denotes fractional part. ; Submitted by <NAME> ; 6,12,18,24,30,36,228,234,240,246,252,258,264,456,462,468,474,480,486,492,684,690,696,702,708,714,720 mov $1,$0 add $1,1 div $1,9 mov $3,$0 sub $0,$1 div $0,6 mul $0,93 add $0,3 mov $2,$3 mul $2,3 add $0,$2 mul $0,2
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xa0.log_1_302.asm
ljhsiun2/medusa
9
178531
<reponame>ljhsiun2/medusa .global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x1e66, %rsi lea addresses_WT_ht+0x19dc6, %rdi nop nop nop nop cmp $31749, %rax mov $10, %rcx rep movsl nop nop nop add $43407, %r15 lea addresses_D_ht+0x14066, %rdx nop nop nop nop sub $47015, %r14 vmovups (%rdx), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $0, %xmm6, %r15 nop nop nop nop sub $54529, %rdx lea addresses_D_ht+0x11596, %rdx nop nop nop add $10938, %rcx mov $0x6162636465666768, %rdi movq %rdi, (%rdx) nop nop cmp %rdx, %rdx lea addresses_WT_ht+0x1e066, %r15 nop and $25189, %rdi mov (%r15), %rsi nop nop nop nop nop add $63776, %rdi lea addresses_WT_ht+0x1c3ae, %rdx cmp %rax, %rax mov $0x6162636465666768, %r15 movq %r15, (%rdx) nop nop nop cmp %r15, %r15 lea addresses_WT_ht+0x13e66, %rsi nop nop nop nop inc %r14 mov (%rsi), %di nop nop nop nop inc %r14 lea addresses_WT_ht+0x10fcb, %rdi nop nop cmp %rax, %rax mov (%rdi), %dx nop add %rdx, %rdx lea addresses_D_ht+0x1156e, %rdi nop nop mfence vmovups (%rdi), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $0, %xmm7, %r15 nop nop nop nop nop sub %rax, %rax lea addresses_normal_ht+0x26c6, %rsi nop nop cmp $37576, %r14 movl $0x61626364, (%rsi) nop xor %rdx, %rdx lea addresses_A_ht+0x11766, %rsi nop and $17809, %rax mov (%rsi), %r14w nop nop nop nop cmp %rdx, %rdx lea addresses_D_ht+0x1ab00, %r15 sub $36844, %r14 movups (%r15), %xmm1 vpextrq $1, %xmm1, %rsi sub %r15, %r15 lea addresses_D_ht+0x12b25, %r14 cmp $54870, %r15 mov (%r14), %rcx nop cmp %r15, %r15 lea addresses_D_ht+0x13bc6, %rsi lea addresses_WC_ht+0x2466, %rdi and $48269, %rax mov $56, %rcx rep movsw add $36742, %rdx lea addresses_WT_ht+0x85c6, %r14 cmp $34063, %rdi movb (%r14), %r15b nop nop add $64419, %r15 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r15 pop %r14 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r8 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi // Load mov $0x138e810000000876, %rdx nop nop nop nop cmp %r8, %r8 mov (%rdx), %ax nop nop nop nop xor $22969, %r9 // Store lea addresses_A+0x139e6, %rdi nop nop xor $17789, %r12 mov $0x5152535455565758, %r8 movq %r8, %xmm5 vmovups %ymm5, (%rdi) nop dec %r9 // Store lea addresses_US+0x19166, %r12 nop nop nop nop xor $62068, %r14 mov $0x5152535455565758, %rdx movq %rdx, %xmm7 movaps %xmm7, (%r12) nop nop nop nop nop add %r9, %r9 // Store lea addresses_RW+0x2a5b, %r14 nop nop nop nop nop and $13759, %r12 movw $0x5152, (%r14) and %r12, %r12 // Store lea addresses_WC+0x1da5e, %rdx add $13214, %rax mov $0x5152535455565758, %r8 movq %r8, %xmm2 vmovups %ymm2, (%rdx) nop nop nop sub $31971, %r9 // Load mov $0x513e1600000009e6, %r9 nop cmp %rdi, %rdi movb (%r9), %r12b dec %r12 // Store lea addresses_US+0x12382, %r8 nop xor $52278, %rdi movl $0x51525354, (%r8) nop nop nop nop xor $43935, %rdi // REPMOV mov $0x312d260000000c1b, %rsi lea addresses_UC+0x12866, %rdi nop nop and $6877, %r8 mov $63, %rcx rep movsb nop nop nop nop nop xor $6159, %rdi // Store lea addresses_A+0x14866, %r8 and %rsi, %rsi movw $0x5152, (%r8) nop nop and %rcx, %rcx // Store lea addresses_UC+0x5c66, %rcx nop nop nop add $49773, %rdx mov $0x5152535455565758, %r14 movq %r14, %xmm5 vmovups %ymm5, (%rcx) nop nop nop nop nop dec %r8 // Store lea addresses_RW+0x1a8e6, %r14 and $55179, %r8 movl $0x51525354, (%r14) nop nop nop cmp $32318, %r8 // Store lea addresses_US+0x6666, %r8 clflush (%r8) nop nop cmp %rax, %rax mov $0x5152535455565758, %rdx movq %rdx, %xmm7 movups %xmm7, (%r8) nop nop nop nop inc %r12 // Store lea addresses_A+0x1b9c6, %r14 nop nop nop nop nop xor $47495, %rax mov $0x5152535455565758, %rcx movq %rcx, (%r14) xor $34910, %rdx // Load lea addresses_US+0xbc66, %rdi nop nop nop and %rax, %rax mov (%rdi), %cx nop nop nop sub %rsi, %rsi // Store lea addresses_US+0xbc66, %r9 sub $46662, %rax mov $0x5152535455565758, %rdx movq %rdx, (%r9) nop sub %rdx, %rdx // Faulty Load lea addresses_US+0xbc66, %rdi cmp $57059, %rax mov (%rdi), %r8d lea oracles, %r8 and $0xff, %r8 shlq $12, %r8 mov (%r8,%r8,1), %r8 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r8 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_NC', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_A', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_US', 'AVXalign': True, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_WC', 'AVXalign': False, 'size': 32}} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_NC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': True, 'size': 4}} {'src': {'same': False, 'congruent': 0, 'type': 'addresses_NC'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_UC'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_A', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_UC', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_RW', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_US', 'AVXalign': False, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_A', 'AVXalign': False, 'size': 8}} {'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': True, 'size': 8}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 8, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WT_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8}} {'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8}} {'src': {'NT': True, 'same': True, 'congruent': 9, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 2}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 4}} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': True, 'congruent': 1, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 1, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_WC_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'00': 1} 00 */
src/main/antlr4/com/github/aadavydov/fastjsonquery/grammars/Query.g4
a-a-davydov/fast-json-query
0
6351
grammar Query; GT : '>' ; GE : '>=' ; LT : '<' ; LE : '<=' ; EQ : '==' ; NEQ : '!=' ; LPAREN : '(' ; RPAREN : ')' ; NUM : '-'? INT ('.' [0-9] +)? EXP? ; fragment INT : '0' | [1-9] [0-9]* ; // no leading zeros fragment EXP : [Ee] [+\-]? INT ; // \- since - means "range" inside [...] STRING : '"' (ESC | ~ ["\\])* '"' ; fragment ESC : '\\' (["\\/bfnrt] | UNICODE) ; fragment UNICODE : 'u' HEX HEX HEX HEX ; fragment HEX : [0-9a-fA-F] ; fragment IDENTIFIER : [a-zA-Z_][a-zA-Z_0-9]* ; INDEX : '.'? '[' INT ']' ; CHILD_NODE : '.' (STRING | IDENTIFIER) ; path : '@' (INDEX | CHILD_NODE)+ ; filter : logical_expr EOF; logical_expr : logical_expr and logical_expr | logical_expr or logical_expr | comparison_expr | path | LPAREN logical_expr RPAREN ; and : '&&'; or : '||'; comparison_expr : comparison_operand comp_operator comparison_operand ; null_operand : 'null'; bool_operand : 'true' | 'false'; num_operand : NUM; str_operand : STRING; comparison_operand : path | null_operand | bool_operand | num_operand | str_operand; comp_operator : GT | GE | LT | LE | EQ | NEQ ; WS : [ \t\n\r]+ -> skip ;
sw/552tests/rand_simple/t_1_stu.asm
JPShen-UWM/ThreadKraken
1
10720
// seed 1 lbi r0, 96 // icount 0 slbi r0, 82 // icount 1 lbi r1, 221 // icount 2 slbi r1, 89 // icount 3 lbi r2, 151 // icount 4 slbi r2, 102 // icount 5 lbi r3, 141 // icount 6 slbi r3, 228 // icount 7 lbi r4, 112 // icount 8 slbi r4, 216 // icount 9 lbi r5, 88 // icount 10 slbi r5, 226 // icount 11 lbi r6, 152 // icount 12 slbi r6, 239 // icount 13 lbi r7, 74 // icount 14 slbi r7, 251 // icount 15 andni r7, r7, 1 // icount 16 stu r3, r7, 8 // icount 17 andni r7, r7, 1 // icount 18 stu r3, r7, 0 // icount 19 andni r3, r3, 1 // icount 20 stu r2, r3, 12 // icount 21 andni r7, r7, 1 // icount 22 stu r0, r7, 10 // icount 23 andni r3, r3, 1 // icount 24 stu r5, r3, 14 // icount 25 andni r3, r3, 1 // icount 26 stu r6, r3, 0 // icount 27 andni r5, r5, 1 // icount 28 stu r3, r5, 8 // icount 29 andni r2, r2, 1 // icount 30 stu r2, r2, 10 // icount 31 andni r0, r0, 1 // icount 32 stu r3, r0, 12 // icount 33 andni r5, r5, 1 // icount 34 stu r5, r5, 12 // icount 35 andni r4, r4, 1 // icount 36 stu r3, r4, 8 // icount 37 andni r4, r4, 1 // icount 38 stu r7, r4, 8 // icount 39 andni r0, r0, 1 // icount 40 stu r3, r0, 4 // icount 41 andni r4, r4, 1 // icount 42 stu r7, r4, 6 // icount 43 andni r7, r7, 1 // icount 44 stu r2, r7, 8 // icount 45 andni r0, r0, 1 // icount 46 stu r6, r0, 12 // icount 47 halt // icount 48
project/adl/testsuite/tests/fat_driver/src/tc_fat_read.adb
corentingay/ada_epita
0
18685
<gh_stars>0 with Ada.Text_IO; use Ada.Text_IO; with Filesystem.Native; use Filesystem.Native; with Test_Directories; use Test_Directories; with File_Block_Drivers; use File_Block_Drivers; with File_IO; use File_IO; with Filesystem.FAT; use Filesystem.FAT; with HAL.Filesystem; use HAL.Filesystem; with Compare_Files; procedure TC_FAT_Read is function Check_Dir (Dirname : String) return Boolean; function Check_File (Basename : String; Dirname : String) return Boolean; function Check_Expected_Number return Boolean; Number_Of_Files_Checked : Natural := 0; --------------- -- Check_Dir -- --------------- function Check_Dir (Dirname : String) return Boolean is DD : Directory_Descriptor; Status : File_IO.Status_Code; begin Put_Line ("Checking directory: '" & Dirname & "'"); Status := Open (DD, Dirname); if Status /= OK then Put_Line ("Cannot open directory: '" & Dirname & "'"); Put_Line ("Status: " & Status'Img); return False; end if; loop declare Ent : constant Directory_Entry := Read (DD); begin if Ent /= Invalid_Dir_Entry then if Ent.Name = "." or else Ent.Name = ".." then null; -- do nothing elsif Ent.Subdirectory then if not Check_Dir (Dirname & "/" & Ent.Name) then return False; end if; elsif not Ent.Symlink then if not Check_File (Ent.Name, Dirname) then return False; end if; end if; else exit; end if; end; end loop; return True; end Check_Dir; ---------------- -- Check_File -- ---------------- function Check_File (Basename : String; Dirname : String) return Boolean is FD : File_Descriptor; Status : File_IO.Status_Code; Path : constant String := Dirname & "/" & Basename; begin Status := Open (FD, Path, Read_Only); if Status /= OK then Put_Line ("Cannot open file: '" & Path & "'"); Put_Line ("Status: " & Status'Img); return False; end if; declare Hash_Str : constant String := Compare_Files.Compute_Hash (FD); begin if Hash_Str /= Basename then Put_Line ("Error: Hash is different than filename"); return False; else Number_Of_Files_Checked := Number_Of_Files_Checked + 1; return True; end if; end; end Check_File; --------------------------- -- Check_Expected_Number -- --------------------------- function Check_Expected_Number return Boolean is FD : File_Descriptor; Status : File_IO.Status_Code; Path : constant String := "/disk_img/number_of_files_to_check"; C : Character; Amount : File_IO.File_Size; begin Status := Open (FD, Path, Read_Only); if Status /= OK then Put_Line ("Cannot open file: '" & Path & "'"); Put_Line ("Status: " & Status'Img); return False; end if; Amount := 1; if Read (FD, C'Address, Amount) /= Amount then Put_Line ("Cannot read file: '" & Path & "'"); Put_Line ("Status: " & Status'Img); return False; end if; if C in '0' .. '9' and then Number_Of_Files_Checked = (Character'Pos (C) - Character'Pos ('0')) then return True; else Put_Line ("Incorrect number of files"); return False; end if; end Check_Expected_Number; Disk_Img_Path : constant String := "/test_dir/fat.fs"; Disk : aliased File_Block_Driver; FAT_FS : access FAT_Filesystem; FIO_Status : File_IO.Status_Code; HALFS_Status : HAL.Filesystem.Status_Code; begin Test_Directories.Mount_Test_Directory ("test_dir"); FIO_Status := Disk.Open (Disk_Img_Path, Read_Only); if FIO_Status /= OK then Put_Line ("Cannot open disk image '" & Disk_Img_Path & "': " & FIO_Status'Img); return; end if; FAT_FS := new FAT_Filesystem; HALFS_Status := Open (Controller => Disk'Unchecked_Access, LBA => 0, FS => FAT_FS.all); if HALFS_Status /= OK then Put_Line ("Cannot open FAT FS - Status:" & HALFS_Status'Img); return; end if; FIO_Status := File_IO.Mount_Volume (Mount_Point => "disk_img", FS => FAT_FS); if FIO_Status /= OK then Put_Line ("Cannot mount volume - Status: " & FIO_Status'Img); return; end if; if Check_Dir ("/disk_img/read_test") and then Check_Expected_Number then Put_Line ("PASS"); else Put_Line ("FAIL"); end if; end TC_FAT_Read;
randomly-solved-programs/hex input and hex output.asm
informramiz/Assembly-Language-Programs
0
243315
.MODEL SMALL .STACK 100H .DATA INPUT_MSG DB 'Enter hex numbers: $' BIT_MSG DB 0AH,0DH,'Entered number is:$' .CODE MAIN PROC ;making the DS to point to data segment MOV AX,@DATA MOV DS,AX LEA DX,INPUT_MSG MOV AH,9 INT 21H XOR BX,BX MOV CL,4 MOV AH,1 INT 21H WHILE_: CMP AL,0DH JE END_WHILE_ CMP AL,39H JG LETTER AND AL,0FH JMP SHIFT LETTER: SUB AL,37H SHIFT: SHL BX,CL OR BL,AL INT 21H JMP WHILE_ END_WHILE_: LEA DX,BIT_MSG MOV AH,9 INT 21H MOV CH,4 MOV AH,2 TOP: MOV DL,BH SHR DL,CL CMP DL,9H JG CHARACTER OR DL,30H INT 21H ROL BX,CL DEC CH JNZ TOP JMP EXIT CHARACTER: ADD DL,37H INT 21H ROL BX,CL DEC CH JNZ TOP EXIT: MOV AH,4CH INT 21H MAIN ENDP END MAIN
oeis/167/A167710.asm
neoneye/loda-programs
11
22176
<reponame>neoneye/loda-programs ; A167710: a(n) = 10*2^n - 3*A083658(n+2). ; Submitted by <NAME>(w2) ; 1,5,13,35,79,185,397,875,1831,3905,8053,16835,34399,70985,144157,294875,596311,1212305,2444293,4947635,9954319,20085785,40348717,81228875,162989191,327572705,656739733,1318262435,2641307839,5296964585,10608278077,21259602875,42562252471,85253645105,170636430373,341660281235,683707982959,1368578227385,2738318716237,5480124216875,10963735218151,21937930789505,43886321932213,87804024924035,175639430907679,351373004994185,702840153167197,1405962735870875,2812207901278231,5625263091165905 mov $1,1 lpb $0 sub $0,1 mul $1,2 add $3,1 add $1,$3 mov $2,$4 mul $2,3 mov $4,$3 mov $3,$2 lpe mul $1,2 mov $0,$1 sub $0,1
libsrc/stdio/mtx/fgetc_cons.asm
jpoikela/z88dk
640
23600
; ; Memotech MTX stdio ; ; getkey() Wait for keypress ; ; <NAME> - Aug. 2010 ; ; ; $Id: fgetc_cons.asm,v 1.3+ (now on GIT) $ ; SECTION code_clib PUBLIC fgetc_cons PUBLIC _fgetc_cons .fgetc_cons ._fgetc_cons call $79 jr z,fgetc_cons IF STANDARDESCAPECHARS cp 13 jr nz,not_return ld a,10 .not_return ENDIF ld h,0 ld l,a ret
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce2208b.ada
best08618/asylo
7
17419
-- CE2208B.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- OBJECTIVE: -- CHECK THAT DATA CAN BE OVERWRITTEN IN THE SEQUENTIAL FILE AND THE -- CORRECT VALUES CAN LATER BE READ. ALSO CHECK THAT OVERWRITING -- TRUNCATES THE FILE TO THE LAST ELEMENT WRITTEN. -- APPLICABILITY CRITERIA: -- THIS TEST IS APPLICABLE ONLY TO IMPLEMENTATIONS WHICH SUPPORT -- THE CREATING AND OPENING OF SEQUENTIAL FILES. -- HISTORY: -- TBN 09/30/86 CREATED ORIGINAL TEST. -- GMT 07/24/87 ADDED CHECKS FOR USE_ERROR AND REMOVED SOME CODE. -- BCB 10/03/90 CHANGED CODE TO CHECK THAT OVERWRITING TRUNCATES -- INSTEAD OF WHETHER IT TRUNCATES. WITH SEQUENTIAL_IO; WITH REPORT; USE REPORT; PROCEDURE CE2208B IS PACKAGE SEQ_IO IS NEW SEQUENTIAL_IO (INTEGER); USE SEQ_IO; FILE1 : FILE_TYPE; INCOMPLETE : EXCEPTION; BEGIN TEST ("CE2208B", "CHECK THAT DATA CAN BE OVERWRITTEN IN THE SEQUENTIAL " & "FILE AND THE CORRECT VALUES CAN LATER BE READ. ALSO " & "CHECK THAT OVERWRITING TRUNCATES THE FILE." ); -- INITIALIZE TEST FILE BEGIN CREATE (FILE1, OUT_FILE, LEGAL_FILE_NAME); EXCEPTION WHEN NAME_ERROR => NOT_APPLICABLE ("NAME_ERROR RAISED DURING CREATE"); RAISE INCOMPLETE; WHEN USE_ERROR => NOT_APPLICABLE ("USE_ERROR RAISED DURING CREATE"); RAISE INCOMPLETE; WHEN OTHERS => FAILED ("UNKNOWN EXCEPTION RAISED DURING CREATE"); RAISE INCOMPLETE; END; BEGIN FOR I IN 1 .. 25 LOOP WRITE (FILE1, I); END LOOP; EXCEPTION WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED DURING WRITE"); RAISE INCOMPLETE; END; BEGIN CLOSE (FILE1); EXCEPTION WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED DURING CLOSE"); RAISE INCOMPLETE; END; BEGIN OPEN (FILE1, OUT_FILE, LEGAL_FILE_NAME); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ( "OPEN WITH OUT_FILE MODE NOT " & "SUPPORTED FOR SEQUENTIAL FILES" ); RAISE INCOMPLETE; WHEN OTHERS => FAILED ("EXCEPTION RAISED DURING OPEN"); RAISE INCOMPLETE; END; BEGIN FOR I IN 26 .. 36 LOOP WRITE (FILE1, I); END LOOP; EXCEPTION WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED DURING OVERWRITE"); RAISE INCOMPLETE; END; BEGIN CLOSE (FILE1); EXCEPTION WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED DURING 2ND CLOSE"); RAISE INCOMPLETE; END; BEGIN OPEN (FILE1, IN_FILE, LEGAL_FILE_NAME); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ( "OPEN WITH IN_FILE MODE NOT " & "SUPPORTED FOR SEQUENTIAL FILES" ); RAISE INCOMPLETE; WHEN OTHERS => FAILED ("EXCEPTION RAISED DURING SECOND OPEN"); RAISE INCOMPLETE; END; DECLARE END_REACHED : BOOLEAN := FALSE; COUNT : INTEGER := 26; NUM : INTEGER; BEGIN WHILE COUNT <= 36 AND NOT END_REACHED LOOP BEGIN READ (FILE1, NUM); IF NUM /= COUNT THEN FAILED ("INCORRECT RESULTS READ FROM FILE " & INTEGER'IMAGE (NUM)); END IF; COUNT := COUNT + 1; EXCEPTION WHEN END_ERROR => END_REACHED := TRUE; WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED DURING " & "READING - 1"); RAISE INCOMPLETE; END; END LOOP; IF COUNT <= 36 THEN FAILED ("FILE WAS INCOMPLETE"); RAISE INCOMPLETE; ELSE BEGIN READ (FILE1, NUM); FAILED ("END_ERROR NOT RAISED BY ATTEMPT TO READ"); EXCEPTION WHEN END_ERROR => NULL; WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED " & "DURING READING - 2"); RAISE INCOMPLETE; END; END IF; END; BEGIN DELETE (FILE1); EXCEPTION WHEN USE_ERROR => NULL; END; RESULT; EXCEPTION WHEN INCOMPLETE => RESULT; END CE2208B;
libsrc/rect/r_IntersectIval8.asm
jpoikela/z88dk
640
25496
; Rectangle, Intervals and Points ; 05.2006 aralbrec SECTION code_clib PUBLIC r_IntersectIval8 PUBLIC _r_IntersectIval8 EXTERN RIntersectIval8 ; int r_IntersectIval8(struct r_Ival8 *i1, struct r_Ival8 *i2, struct r_Ival8 *result) .r_IntersectIval8 ._r_IntersectIval8 ld hl,7 add hl,sp ld d,(hl) dec hl ld e,(hl) dec hl ex de,hl ld b,(hl) inc hl ld c,(hl) ex de,hl ld d,(hl) dec hl ld e,(hl) dec hl push hl ex de,hl ld d,(hl) inc hl ld e,(hl) call RIntersectIval8 jr nc, no pop hl ld d,(hl) dec hl ld e,(hl) ex de,hl ld (hl),b inc hl ld (hl),c ld hl,1 ret .no pop hl ld hl,0 ret
kernel/scallarch.asm
jpbottaro/minios
2
24001
<filename>kernel/scallarch.asm BITS 32 extern reset_intr_pic1 extern reset_intr_pic2 extern system_calls global scall_handler scall_handler: pushad push edx push ecx push ebx mov eax, [system_calls + eax * 4] call eax mov [res], eax add esp, 12 call reset_intr_pic2 popad mov eax, [res] iret res: dd 0
New/Correctness.agda
inc-lc/ilc-agda
10
1086
<reponame>inc-lc/ilc-agda<filename>New/Correctness.agda module New.Correctness where open import Function hiding (const) open import New.Lang open import New.Changes open import New.Derive open import New.LangChanges open import New.LangOps open import New.FunctionLemmas open import New.Unused ⟦Γ≼ΔΓ⟧ : ∀ {Γ} (ρ : ⟦ Γ ⟧Context) (dρ : ChΓ Γ) → validΓ ρ dρ → ρ ≡ ⟦ Γ≼ΔΓ ⟧≼ dρ ⟦Γ≼ΔΓ⟧ ∅ ∅ tt = refl ⟦Γ≼ΔΓ⟧ (v • ρ) (dv • .v • dρ) (vdv , refl , ρdρ) = cong₂ _•_ refl (⟦Γ≼ΔΓ⟧ ρ dρ ρdρ) fit-sound : ∀ {Γ τ} → (t : Term Γ τ) → (ρ : ⟦ Γ ⟧Context) (dρ : ChΓ Γ) → validΓ ρ dρ → ⟦ t ⟧Term ρ ≡ ⟦ fit t ⟧Term dρ fit-sound t ρ dρ ρdρ = trans (cong ⟦ t ⟧Term (⟦Γ≼ΔΓ⟧ ρ dρ ρdρ)) (sym (weaken-sound t _)) correctDeriveConst : ∀ {τ} (c : Const τ) → ⟦ c ⟧Const ≡ ⟦ c ⟧Const ⊕ (⟦_⟧ΔConst c) correctDeriveConst (lit n) = sym (right-id-int n) correctDeriveConst plus = ext (λ m → ext (lemma m)) where lemma : ∀ m n → m + n ≡ m + n + (m + - m + (n + - n)) lemma m n rewrite right-inv-int m | right-inv-int n | right-id-int (m + n) = refl correctDeriveConst minus = ext (λ m → ext (λ n → lemma m n)) where lemma : ∀ m n → m - n ≡ m - n + (m + - m - (n + - n)) lemma m n rewrite right-inv-int m | right-inv-int n | right-id-int (m - n) = refl correctDeriveConst cons = ext (λ v1 → ext (λ v2 → sym (update-nil (v1 , v2)))) correctDeriveConst fst = ext (λ vp → sym (update-nil (proj₁ vp))) correctDeriveConst snd = ext (λ vp → sym (update-nil (proj₂ vp))) correctDeriveConst linj = ext (λ va → sym (cong inj₁ (update-nil va))) correctDeriveConst rinj = ext (λ vb → sym (cong inj₂ (update-nil vb))) correctDeriveConst (match {t1} {t2} {t3}) = ext³ lemma where lemma : ∀ s f g → ⟦ match {t1} {t2} {t3} ⟧Const s f g ≡ (⟦ match ⟧Const ⊕ ⟦ match ⟧ΔConst) s f g lemma (inj₁ x) f g rewrite update-nil x | update-nil (f x) = refl lemma (inj₂ y) f g rewrite update-nil y | update-nil (g y) = refl validDeriveConst : ∀ {τ} (c : Const τ) → valid ⟦ c ⟧Const (⟦_⟧ΔConst c) validDeriveConst (lit n) = tt validDeriveConst {τ = t1 ⇒ t2 ⇒ pair .t1 .t2} cons = binary-valid (λ a da ada b db bdb → (ada , bdb)) dcons-eq where open BinaryValid ⟦ cons {t1} {t2} ⟧Const (⟦ cons ⟧ΔConst) dcons-eq : binary-valid-eq-hp dcons-eq a da ada b db bdb rewrite update-nil (a ⊕ da) | update-nil (b ⊕ db) = refl validDeriveConst fst (a , b) (da , db) (ada , bdb) = ada , update-nil (a ⊕ da) validDeriveConst snd (a , b) (da , db) (ada , bdb) = bdb , update-nil (b ⊕ db) validDeriveConst plus = binary-valid (λ a da ada b db bdb → tt) dplus-eq where open BinaryValid ⟦ plus ⟧Const (⟦ plus ⟧ΔConst) dplus-eq : binary-valid-eq-hp dplus-eq a da ada b db bdb rewrite right-inv-int (a + da) | right-inv-int (b + db) | right-id-int (a + da + (b + db)) = mn·pq=mp·nq {a} {da} {b} {db} validDeriveConst minus = binary-valid (λ a da ada b db bdb → tt) dminus-eq where open BinaryValid ⟦ minus ⟧Const (⟦ minus ⟧ΔConst) dminus-eq : binary-valid-eq-hp dminus-eq a da ada b db bdb rewrite right-inv-int (a + da) | right-inv-int (b + db) | right-id-int (a + da - (b + db)) | sym (-m·-n=-mn {b} {db}) = mn·pq=mp·nq {a} {da} { - b} { - db} validDeriveConst linj a da ada = sv₁ a da ada , cong inj₁ (update-nil (a ⊕ da)) validDeriveConst rinj b db bdb = sv₂ b db bdb , cong inj₂ (update-nil (b ⊕ db)) validDeriveConst (match {t1} {t2} {t3}) = ternary-valid dmatch-valid dmatch-eq where open TernaryValid {{chAlgt (sum t1 t2)}} {{chAlgt (t1 ⇒ t3)}} {{chAlgt (t2 ⇒ t3)}} {{chAlgt t3}} ⟦ match ⟧Const (⟦ match ⟧ΔConst) dmatch-valid : ternary-valid-preserve-hp dmatch-valid .(inj₁ a) .(inj₁ (inj₁ da)) (sv₁ a da ada) f df fdf g dg gdg = proj₁ (fdf a da ada) dmatch-valid .(inj₂ b) .(inj₁ (inj₂ db)) (sv₂ b db bdb) f df fdf g dg gdg = proj₁ (gdg b db bdb) dmatch-valid .(inj₁ a1) .(inj₂ (inj₂ b2)) (svrp₁ a1 b2) f df fdf g dg gdg rewrite changeMatchSem-lem1 f df g dg a1 b2 = ⊝-valid (f a1) (g b2 ⊕ dg b2 (nil b2)) dmatch-valid .(inj₂ b1) .(inj₂ (inj₁ a2)) (svrp₂ b1 a2) f df fdf g dg gdg rewrite changeMatchSem-lem2 f df g dg b1 a2 = ⊝-valid (g b1) (f a2 ⊕ df a2 (nil a2)) dmatch-eq : ternary-valid-eq-hp dmatch-eq .(inj₁ a) .(inj₁ (inj₁ da)) (sv₁ a da ada) f df fdf g dg gdg rewrite update-nil (a ⊕ da) | update-nil (f (a ⊕ da) ⊕ df (a ⊕ da) (nil (a ⊕ da))) = proj₂ (fdf a da ada) dmatch-eq .(inj₂ b) .(inj₁ (inj₂ db)) (sv₂ b db bdb) f df fdf g dg gdg rewrite update-nil (b ⊕ db) | update-nil (g (b ⊕ db) ⊕ dg (b ⊕ db) (nil (b ⊕ db))) = proj₂ (gdg b db bdb) dmatch-eq .(inj₁ a1) .(inj₂ (inj₂ b2)) (svrp₁ a1 b2) f df fdf g dg gdg rewrite changeMatchSem-lem1 f df g dg a1 b2 | update-nil b2 | update-diff (g b2 ⊕ dg b2 (nil b2)) (f a1) | update-nil (g b2 ⊕ dg b2 (nil b2)) = refl dmatch-eq .(inj₂ b1) .(inj₂ (inj₁ a2)) (svrp₂ b1 a2) f df fdf g dg gdg rewrite changeMatchSem-lem2 f df g dg b1 a2 | update-nil a2 | update-diff (f a2 ⊕ df a2 (nil a2)) (g b1) | update-nil (f a2 ⊕ df a2 (nil a2)) = refl validDeriveVar : ∀ {Γ τ} → (x : Var Γ τ) → (ρ : ⟦ Γ ⟧Context) (dρ : ChΓ Γ) → validΓ ρ dρ → valid (⟦ x ⟧Var ρ) (⟦ x ⟧ΔVar ρ dρ) validDeriveVar this (v • ρ) (dv • .v • dρ) (vdv , refl , ρdρ) = vdv validDeriveVar (that x) (v • ρ) (dv • .v • dρ) (vdv , refl , ρdρ) = validDeriveVar x ρ dρ ρdρ correctDeriveVar : ∀ {Γ τ} → (x : Var Γ τ) → IsDerivative ⟦ x ⟧Var (⟦ x ⟧ΔVar) correctDeriveVar this (v • ρ) (dv • v' • dρ) ρdρ = refl correctDeriveVar (that x) (v • ρ) (dv • .v • dρ) (vdv , refl , ρdρ) = correctDeriveVar x ρ dρ ρdρ validDerive : ∀ {Γ τ} → (t : Term Γ τ) → (ρ : ⟦ Γ ⟧Context) (dρ : ChΓ Γ) → validΓ ρ dρ → valid (⟦ t ⟧Term ρ) (⟦ t ⟧ΔTerm ρ dρ) correctDerive : ∀ {Γ τ} → (t : Term Γ τ) → IsDerivative ⟦ t ⟧Term ⟦ t ⟧ΔTerm correctDerive (const c) ρ dρ ρdρ rewrite ⟦ c ⟧ΔConst-rewrite ρ dρ = correctDeriveConst c correctDerive (var x) ρ dρ ρdρ = correctDeriveVar x ρ dρ ρdρ correctDerive (app s t) ρ dρ ρdρ rewrite sym (fit-sound t ρ dρ ρdρ) = let open ≡-Reasoning a0 = ⟦ t ⟧Term ρ da0 = ⟦ derive t ⟧Term dρ a0da0 = validDerive t ρ dρ ρdρ in begin ⟦ s ⟧Term (ρ ⊕ dρ) (⟦ t ⟧Term (ρ ⊕ dρ)) ≡⟨ correctDerive s ρ dρ ρdρ ⟨$⟩ correctDerive t ρ dρ ρdρ ⟩ (⟦ s ⟧Term ρ ⊕ ⟦ s ⟧ΔTerm ρ dρ) (⟦ t ⟧Term ρ ⊕ ⟦ t ⟧ΔTerm ρ dρ) ≡⟨ proj₂ (validDerive s ρ dρ ρdρ a0 da0 a0da0) ⟩ ⟦ s ⟧Term ρ (⟦ t ⟧Term ρ) ⊕ (⟦ s ⟧ΔTerm ρ dρ) (⟦ t ⟧Term ρ) (⟦ t ⟧ΔTerm ρ dρ) ∎ where open import Theorem.CongApp correctDerive (abs t) ρ dρ ρdρ = ext $ λ a → let open ≡-Reasoning ρ1 = a • ρ dρ1 = nil a • a • dρ ρ1dρ1 = nil-valid a , refl , ρdρ in -- equal-future-expand-derivative ⟦ t ⟧Term ⟦ t ⟧ΔTerm (correctDerive t) -- ρ1 dρ1 ρ1dρ1 -- (a • (ρ ⊕ dρ)) -- (cong (_• ρ ⊕ dρ) (sym (update-nil a))) begin ⟦ t ⟧Term (a • ρ ⊕ dρ) ≡⟨ cong (λ a′ → ⟦ t ⟧Term (a′ • ρ ⊕ dρ)) (sym (update-nil a)) ⟩ ⟦ t ⟧Term (ρ1 ⊕ dρ1) ≡⟨ correctDerive t ρ1 dρ1 ρ1dρ1 ⟩ ⟦ t ⟧Term ρ1 ⊕ ⟦ t ⟧ΔTerm ρ1 dρ1 ∎ validDerive (app s t) ρ dρ ρdρ = let f = ⟦ s ⟧Term ρ df = ⟦ derive s ⟧Term dρ v = ⟦ t ⟧Term ρ dv = ⟦ derive t ⟧Term dρ vdv = validDerive t ρ dρ ρdρ fdf = validDerive s ρ dρ ρdρ fvdfv = proj₁ (fdf v dv vdv) in subst (λ v′ → valid (f v) (df v′ dv)) (fit-sound t ρ dρ ρdρ) fvdfv validDerive (abs t) ρ dρ ρdρ = λ a da ada → let ρ1 = a ⊕ da • ρ dρ1 = nil (a ⊕ da) • (a ⊕ da) • dρ ρ2 = a • ρ dρ2 = da • a • dρ ρ1dρ1 = nil-valid (a ⊕ da) , refl , ρdρ ρ2dρ2 = ada , refl , ρdρ rdr = validDerive t ρ2 dρ2 ρ2dρ2 open ≡-Reasoning in rdr , equal-future-derivative ⟦ t ⟧Term ⟦ t ⟧ΔTerm (correctDerive t) ρ1 dρ1 ρ1dρ1 ρ2 dρ2 ρ2dρ2 (cong (λ a′ → (a′ • ρ ⊕ dρ)) (update-nil (a ⊕ da))) validDerive (var x) ρ dρ ρdρ = validDeriveVar x ρ dρ ρdρ validDerive (const c) ρ dρ ρdρ rewrite ⟦ c ⟧ΔConst-rewrite ρ dρ = validDeriveConst c
lab09/1-hello-world/hello-world.asm
adinasm/iocla-demos
0
6455
%include "../utils/printf32.asm" section .data msg db 'Hello, world!', 0 section .text extern puts global main main: push ebp mov ebp, esp push msg call puts add esp, 4 leave ret
programs/oeis/130/A130675.asm
jmorken/loda
1
26545
<gh_stars>1-10 ; A130675: Factorial of bigomega(n). ; 1,1,1,2,1,2,1,6,2,2,1,6,1,2,2,24,1,6,1,6,2,2,1,24,2,2,6,6,1,6,1,120,2,2,2,24,1,2,2,24,1,6,1,6,6,2,1,120,2,6,2,6,1,24,2,24,2,2,1,24,1,2,6,720,2,6,1,6,2,6,1,120,1,2,6,6,2,6,1,120,24,2,1,24,2,2,2,24,1,24,2,6,2,2,2,720,1,6,6,24,1,6,1,24,6,2,1,120,1,6,2,120,1,6,2,6,6,2,2,120,2,2,2,6,6,24,1,5040,2,6,1,24,2,2,24,24,1,6,1,24,2,2,2,720,2,2,6,6,1,24,1,24,6,6,2,24,1,2,2,720,2,120,1,6,6,2,1,120,2,6,6,6,1,6,6,120,2,2,1,120,1,6,2,24,2,6,2,6,24,6,1,5040,1,2,6,24,1,24,1,120,2,2,2,24,2,2,6,120,2,24,1,6,2,2,2,720,2,2,2,24,2,6,1,720,24,2,1,24,1,6,6,24,1,24,2,6,2,6,1,720,1,6,120,6,6,6,2,24,2,24 cal $0,86436 ; Maximum number of parts possible in a factorization of n; a(1) = 1, and for n > 1, a(n) = A001222(n) = bigomega(n). cal $0,142 mov $1,$0
src/main/fragment/mos6502-common/vbuaa=vbuaa_minus__deref_pbuz1.asm
jbrandwood/kickc
2
19717
sec ldy #0 sbc ({z1}),y
oeis/040/A040238.asm
neoneye/loda-programs
11
81319
<filename>oeis/040/A040238.asm ; A040238: Continued fraction for sqrt(254). ; Submitted by <NAME>(s1) ; 15,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14 gcd $0,262156 mul $0,42 mod $0,13 mov $1,$0 div $1,5 mul $1,10 add $0,$1 sub $0,2
src/ada-pulse/src/pulse-stream.ads
mstewartgallus/linted
0
19162
<gh_stars>0 -- Copyright 2016 <NAME> -- -- 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 System; with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; with Libc.Stddef; with Libc.Stdint; with Pulse.Context; with Pulse.Sample; limited with Pulse.Channelmap; with Pulse.Def; limited with Pulse.Volume; limited with Pulse.Format; with Pulse.Proplist; package Pulse.Stream with Spark_Mode => Off is type pa_stream is limited private; type pa_stream_access is access all pa_stream; type pa_stream_success_cb_t is access procedure (arg1 : System.Address; arg2 : int; arg3 : System.Address); pragma Convention (C, pa_stream_success_cb_t); -- /usr/include/pulse/stream.h:325 type pa_stream_request_cb_t is access procedure (s : pa_stream_access; nbytes : Libc.Stddef.size_t; userdata : System.Address); pragma Convention (C, pa_stream_request_cb_t); -- /usr/include/pulse/stream.h:328 type pa_stream_notify_cb_t is access procedure (arg1 : System.Address; arg2 : System.Address); pragma Convention (C, pa_stream_notify_cb_t); -- /usr/include/pulse/stream.h:331 type pa_stream_event_cb_t is access procedure (arg1 : System.Address; arg2 : Interfaces.C.Strings.chars_ptr; arg3 : System.Address; arg4 : System.Address); pragma Convention (C, pa_stream_event_cb_t); -- /usr/include/pulse/stream.h:339 function pa_stream_new (c : Pulse.Context.pa_context_access; name : Interfaces.C.Strings.chars_ptr; ss : Pulse.Sample.pa_sample_spec; map : access constant Pulse.Channelmap.pa_channel_map) return pa_stream_access; -- /usr/include/pulse/stream.h:344 pragma Import (C, pa_stream_new, "pa_stream_new"); function pa_stream_new_with_proplist (c : Pulse.Context.pa_context_access; name : Interfaces.C.Strings.chars_ptr; ss : Pulse.Sample.pa_sample_spec; map : access constant Pulse.Channelmap.pa_channel_map; p : pa_stream_access) return System.Address; -- /usr/include/pulse/stream.h:353 pragma Import (C, pa_stream_new_with_proplist, "pa_stream_new_with_proplist"); function pa_stream_new_extended (c : Pulse.Context.pa_context_access; name : Interfaces.C.Strings.chars_ptr; formats : pa_stream_access; n_formats : unsigned; p : pa_stream_access) return System.Address; -- /usr/include/pulse/stream.h:364 pragma Import (C, pa_stream_new_extended, "pa_stream_new_extended"); procedure pa_stream_unref (s : pa_stream_access); -- /usr/include/pulse/stream.h:372 pragma Import (C, pa_stream_unref, "pa_stream_unref"); function pa_stream_ref (s : pa_stream_access) return System.Address; -- /usr/include/pulse/stream.h:375 pragma Import (C, pa_stream_ref, "pa_stream_ref"); function pa_stream_get_state (p : pa_stream_access) return Pulse.Def.pa_stream_state_t; -- /usr/include/pulse/stream.h:378 pragma Import (C, pa_stream_get_state, "pa_stream_get_state"); function pa_stream_get_context (p : pa_stream_access) return System.Address; -- /usr/include/pulse/stream.h:381 pragma Import (C, pa_stream_get_context, "pa_stream_get_context"); function pa_stream_get_index (s : pa_stream_access) return Libc.Stdint.uint32_t; -- /usr/include/pulse/stream.h:387 pragma Import (C, pa_stream_get_index, "pa_stream_get_index"); function pa_stream_get_device_index (s : pa_stream_access) return Libc.Stdint.uint32_t; -- /usr/include/pulse/stream.h:398 pragma Import (C, pa_stream_get_device_index, "pa_stream_get_device_index"); function pa_stream_get_device_name (s : pa_stream_access) return Interfaces.C.Strings.chars_ptr; -- /usr/include/pulse/stream.h:409 pragma Import (C, pa_stream_get_device_name, "pa_stream_get_device_name"); function pa_stream_is_suspended (s : pa_stream_access) return int; -- /usr/include/pulse/stream.h:415 pragma Import (C, pa_stream_is_suspended, "pa_stream_is_suspended"); function pa_stream_is_corked (s : pa_stream_access) return int; -- /usr/include/pulse/stream.h:419 pragma Import (C, pa_stream_is_corked, "pa_stream_is_corked"); function pa_stream_connect_playback (s : pa_stream_access; dev : Interfaces.C.Strings.chars_ptr; attr : Pulse.Def.pa_buffer_attr; flags : Pulse.Def.pa_stream_flags_t; volume : access constant Pulse.Volume.pa_cvolume; sync_stream : System.Address) return int; -- /usr/include/pulse/stream.h:439 pragma Import (C, pa_stream_connect_playback, "pa_stream_connect_playback"); function pa_stream_connect_record (s : pa_stream_access; dev : Interfaces.C.Strings.chars_ptr; attr : Pulse.Def.pa_buffer_attr; flags : Pulse.Def.pa_stream_flags_t) return int; -- /usr/include/pulse/stream.h:448 pragma Import (C, pa_stream_connect_record, "pa_stream_connect_record"); function pa_stream_disconnect (s : pa_stream_access) return int; -- /usr/include/pulse/stream.h:455 pragma Import (C, pa_stream_disconnect, "pa_stream_disconnect"); function pa_stream_begin_write (p : pa_stream_access; data : System.Address; nbytes : access Libc.Stddef.size_t) return int; -- /usr/include/pulse/stream.h:489 pragma Import (C, pa_stream_begin_write, "pa_stream_begin_write"); function pa_stream_cancel_write (p : pa_stream_access) return int; -- /usr/include/pulse/stream.h:503 pragma Import (C, pa_stream_cancel_write, "pa_stream_cancel_write"); function pa_stream_write (p : pa_stream_access; data : System.Address; nbytes : Libc.Stddef.size_t; free_cb : Pulse.Def.pa_free_cb_t; offset : Libc.Stdint.int64_t; seek : Pulse.Def.pa_seek_mode_t) return int; -- /usr/include/pulse/stream.h:528 pragma Import (C, pa_stream_write, "pa_stream_write"); function pa_stream_peek (p : pa_stream_access; data : System.Address; nbytes : access Libc.Stddef.size_t) return int; -- /usr/include/pulse/stream.h:552 pragma Import (C, pa_stream_peek, "pa_stream_peek"); function pa_stream_drop (p : pa_stream_access) return int; -- /usr/include/pulse/stream.h:559 pragma Import (C, pa_stream_drop, "pa_stream_drop"); function pa_stream_writable_size (p : pa_stream_access) return Libc.Stddef.size_t; -- /usr/include/pulse/stream.h:562 pragma Import (C, pa_stream_writable_size, "pa_stream_writable_size"); function pa_stream_readable_size (p : pa_stream_access) return Libc.Stddef.size_t; -- /usr/include/pulse/stream.h:565 pragma Import (C, pa_stream_readable_size, "pa_stream_readable_size"); function pa_stream_drain (s : pa_stream_access; cb : pa_stream_success_cb_t; userdata : System.Address) return System.Address; -- /usr/include/pulse/stream.h:571 pragma Import (C, pa_stream_drain, "pa_stream_drain"); function pa_stream_update_timing_info (p : pa_stream_access; cb : pa_stream_success_cb_t; userdata : System.Address) return System.Address; -- /usr/include/pulse/stream.h:577 pragma Import (C, pa_stream_update_timing_info, "pa_stream_update_timing_info"); procedure pa_stream_set_state_callback (s : pa_stream_access; cb : pa_stream_notify_cb_t; userdata : System.Address); -- /usr/include/pulse/stream.h:580 pragma Import (C, pa_stream_set_state_callback, "pa_stream_set_state_callback"); procedure pa_stream_set_write_callback (p : pa_stream_access; cb : pa_stream_request_cb_t; userdata : System.Address); -- /usr/include/pulse/stream.h:584 pragma Import (C, pa_stream_set_write_callback, "pa_stream_set_write_callback"); procedure pa_stream_set_read_callback (p : pa_stream_access; cb : pa_stream_request_cb_t; userdata : System.Address); -- /usr/include/pulse/stream.h:587 pragma Import (C, pa_stream_set_read_callback, "pa_stream_set_read_callback"); procedure pa_stream_set_overflow_callback (p : pa_stream_access; cb : pa_stream_notify_cb_t; userdata : System.Address); -- /usr/include/pulse/stream.h:590 pragma Import (C, pa_stream_set_overflow_callback, "pa_stream_set_overflow_callback"); function pa_stream_get_underflow_index (p : pa_stream_access) return Libc.Stdint.int64_t; -- /usr/include/pulse/stream.h:596 pragma Import (C, pa_stream_get_underflow_index, "pa_stream_get_underflow_index"); procedure pa_stream_set_underflow_callback (p : pa_stream_access; cb : pa_stream_notify_cb_t; userdata : System.Address); -- /usr/include/pulse/stream.h:599 pragma Import (C, pa_stream_set_underflow_callback, "pa_stream_set_underflow_callback"); procedure pa_stream_set_started_callback (p : pa_stream_access; cb : pa_stream_notify_cb_t; userdata : System.Address); -- /usr/include/pulse/stream.h:606 pragma Import (C, pa_stream_set_started_callback, "pa_stream_set_started_callback"); procedure pa_stream_set_latency_update_callback (p : pa_stream_access; cb : pa_stream_notify_cb_t; userdata : System.Address); -- /usr/include/pulse/stream.h:611 pragma Import (C, pa_stream_set_latency_update_callback, "pa_stream_set_latency_update_callback"); procedure pa_stream_set_moved_callback (p : pa_stream_access; cb : pa_stream_notify_cb_t; userdata : System.Address); -- /usr/include/pulse/stream.h:618 pragma Import (C, pa_stream_set_moved_callback, "pa_stream_set_moved_callback"); procedure pa_stream_set_suspended_callback (p : pa_stream_access; cb : pa_stream_notify_cb_t; userdata : System.Address); -- /usr/include/pulse/stream.h:628 pragma Import (C, pa_stream_set_suspended_callback, "pa_stream_set_suspended_callback"); procedure pa_stream_set_event_callback (p : pa_stream_access; cb : pa_stream_event_cb_t; userdata : System.Address); -- /usr/include/pulse/stream.h:632 pragma Import (C, pa_stream_set_event_callback, "pa_stream_set_event_callback"); procedure pa_stream_set_buffer_attr_callback (p : pa_stream_access; cb : pa_stream_notify_cb_t; userdata : System.Address); -- /usr/include/pulse/stream.h:639 pragma Import (C, pa_stream_set_buffer_attr_callback, "pa_stream_set_buffer_attr_callback"); function pa_stream_cork (s : pa_stream_access; b : int; cb : pa_stream_success_cb_t; userdata : System.Address) return System.Address; -- /usr/include/pulse/stream.h:651 pragma Import (C, pa_stream_cork, "pa_stream_cork"); function pa_stream_flush (s : pa_stream_access; cb : pa_stream_success_cb_t; userdata : System.Address) return System.Address; -- /usr/include/pulse/stream.h:657 pragma Import (C, pa_stream_flush, "pa_stream_flush"); function pa_stream_prebuf (s : pa_stream_access; cb : pa_stream_success_cb_t; userdata : System.Address) return System.Address; -- /usr/include/pulse/stream.h:661 pragma Import (C, pa_stream_prebuf, "pa_stream_prebuf"); function pa_stream_trigger (s : pa_stream_access; cb : pa_stream_success_cb_t; userdata : System.Address) return System.Address; -- /usr/include/pulse/stream.h:666 pragma Import (C, pa_stream_trigger, "pa_stream_trigger"); function pa_stream_set_name (s : pa_stream_access; name : Interfaces.C.Strings.chars_ptr; cb : pa_stream_success_cb_t; userdata : System.Address) return System.Address; -- /usr/include/pulse/stream.h:669 pragma Import (C, pa_stream_set_name, "pa_stream_set_name"); function pa_stream_get_time (s : pa_stream_access; r_usec : access Pulse.Sample.pa_usec_t) return int; -- /usr/include/pulse/stream.h:702 pragma Import (C, pa_stream_get_time, "pa_stream_get_time"); function pa_stream_get_latency (s : pa_stream_access; r_usec : access Pulse.Sample.pa_usec_t; negative : access int) return int; -- /usr/include/pulse/stream.h:716 pragma Import (C, pa_stream_get_latency, "pa_stream_get_latency"); function pa_stream_get_timing_info (s : pa_stream_access) return access constant Pulse.Def .pa_timing_info; -- /usr/include/pulse/stream.h:732 pragma Import (C, pa_stream_get_timing_info, "pa_stream_get_timing_info"); function pa_stream_get_sample_spec (s : pa_stream_access) return access constant Pulse.Sample .pa_sample_spec; -- /usr/include/pulse/stream.h:735 pragma Import (C, pa_stream_get_sample_spec, "pa_stream_get_sample_spec"); function pa_stream_get_channel_map (s : pa_stream_access) return access constant Pulse.Channelmap .pa_channel_map; -- /usr/include/pulse/stream.h:738 pragma Import (C, pa_stream_get_channel_map, "pa_stream_get_channel_map"); function pa_stream_get_format_info (s : pa_stream_access) return access constant Pulse.Format .pa_format_info; -- /usr/include/pulse/stream.h:741 pragma Import (C, pa_stream_get_format_info, "pa_stream_get_format_info"); function pa_stream_get_buffer_attr (s : pa_stream_access) return access constant Pulse.Def .pa_buffer_attr; -- /usr/include/pulse/stream.h:751 pragma Import (C, pa_stream_get_buffer_attr, "pa_stream_get_buffer_attr"); function pa_stream_set_buffer_attr (s : pa_stream_access; attr : Pulse.Def.pa_buffer_attr; cb : pa_stream_success_cb_t; userdata : System.Address) return System.Address; -- /usr/include/pulse/stream.h:761 pragma Import (C, pa_stream_set_buffer_attr, "pa_stream_set_buffer_attr"); function pa_stream_update_sample_rate (s : pa_stream_access; rate : Libc.Stdint.uint32_t; cb : pa_stream_success_cb_t; userdata : System.Address) return System.Address; -- /usr/include/pulse/stream.h:768 pragma Import (C, pa_stream_update_sample_rate, "pa_stream_update_sample_rate"); function pa_stream_proplist_update (s : pa_stream_access; mode : Pulse.Proplist.pa_update_mode_t; p : pa_stream_access; cb : pa_stream_success_cb_t; userdata : System.Address) return System.Address; -- /usr/include/pulse/stream.h:776 pragma Import (C, pa_stream_proplist_update, "pa_stream_proplist_update"); function pa_stream_proplist_remove (s : pa_stream_access; keys : pa_stream_access; cb : pa_stream_success_cb_t; userdata : System.Address) return System.Address; -- /usr/include/pulse/stream.h:780 pragma Import (C, pa_stream_proplist_remove, "pa_stream_proplist_remove"); function pa_stream_set_monitor_stream (s : pa_stream_access; sink_input_idx : Libc.Stdint.uint32_t) return int; -- /usr/include/pulse/stream.h:786 pragma Import (C, pa_stream_set_monitor_stream, "pa_stream_set_monitor_stream"); function pa_stream_get_monitor_stream (s : pa_stream_access) return Libc.Stdint.uint32_t; -- /usr/include/pulse/stream.h:791 pragma Import (C, pa_stream_get_monitor_stream, "pa_stream_get_monitor_stream"); private type pa_stream is limited record null; end record; end Pulse.Stream;
programs/oeis/047/A047469.asm
neoneye/loda
22
1813
<filename>programs/oeis/047/A047469.asm ; A047469: Numbers that are congruent to {0, 1, 2} mod 8. ; 0,1,2,8,9,10,16,17,18,24,25,26,32,33,34,40,41,42,48,49,50,56,57,58,64,65,66,72,73,74,80,81,82,88,89,90,96,97,98,104,105,106,112,113,114,120,121,122,128,129,130,136,137,138,144,145,146,152,153,154 mov $1,$0 div $1,3 mul $1,5 add $0,$1
uuu/src/cells/io/serial/serilium/serilium.asm
ekscrypto/Unununium
7
7473
;====---------------------------------------------------------------------==== ; Serial Handler Cell (c) 2001 <NAME> ; Serilium SuperCell Distributed under BSD License ;====---------------------------------------------------------------------==== [bits 32] section .c_info ;version db 0,0,1,'a' ;0.0.1 alpha dd str_cellname dd str_author dd str_copyright str_cellname: db "Serilium SuperCell Serial Handler",0 str_author: db "<NAME> (Raptor-32)",0 str_copyright: db "(c) 2001 <NAME>",0 ;====------[ INITIALIZATION ]-------===== section .c_init push eax push ecx mov ax, [0x00000400] or ax, 0 jz .com2 mov [com1_port], ax .com2: mov bx, [0x00000402] or bx, 0 jz .com3 mov [com2_port], bx .com3: mov cx, [0x00000404] or cx, 0 jz .com4 mov [com3_port], cx .com4: mov dx, [0x00000406] or dx, 0 jz .end_detect mov [com4_port], dx .end_detect: pop ecx pop eax ;in al, 0x80 ;xor cx, cx ;mov cl, al ;no port available signal ;externfunc showregs, debug_ack ;mov dx, 0x3F8 + 5 ;in ax, dx ;externfunc showregs, debug_ack ;cmp ax, cx ;je .check_com2 ;mov [com1_port], word 0x3F8 ;.check_com2: ;mov dx, 0x2F8 + 5 ;in ax, dx ;externfunc showregs, debug_ack ;cmp ax, cx ;je .check_com3 ;mov [com2_port], word 0x2F8 ;.check_com3: ;mov dx, 0x3E8 + 5 ;in ax, dx ;externfunc showregs, debug_ack ;cmp ax, cx ;je .check_com4 ;mov [com3_port], word 0x3E8 ;.check_com4: ;mov dx, 0x2E8 + 5 ;in ax, dx ;externfunc showregs, debug_ack ;cmp ax, cx ;je .done_check ;mov [com4_port], word 0x2E8 ;.done_check: ;note: the register switching there can save a few cycles on modern CPUs section .text found_com1: db "Serial COM1 found at i/o address:",0 found_com2: db "Serial COM2 found at i/o address:",0 found_com3: db "Serial COM3 found at i/o address:",0 found_com4: db "Serial COM4 found at i/o address:",0 globalfunc enable_port, com, 1, 10 ;in : ; eax = com port ; bl = baud rate divisor high ; bh = baud rate divisor low ; cl = data format, (0 = 8data bits, 1 stop bit |1 = 7 data bits, 2 stop bits) ; esi = function to call ; push eax ;push com port to set irq later xor edx, edx and eax, 0x0000FFFF or eax, eax ;check for 0 jz .com_too_high cmp eax, 4 ja .com_too_high shl eax, 1 sub eax, 2 mov edi, com_ports add edi, eax mov dx, [edi] cmp dx, -1 je .no_such_port ;dx is now location for i/o for port requested push dx add dx, 3 mov al, 0x80 out dx, al pop dx mov al, bl ;baud rate divisor high should be in bl out dx, al ;baud rate divisor inc dx mov al, bh out dx, al ;baud rate divisor low add dx, 2 mov al, cl out dx, al ;set stop bits xor al, 00000011b ;data bits out dx, al dec dx mov al, 0xC7 out dx, al add dx, 2 mov al, 0x0B out dx, al sub dx, 3 mov al, 0x01 out dx, al ;interupt when data in. ;find com again, set irq client, irqsharing. pop eax cmp al, 2 jb .use_com1 je .use_com2 cmp al, 4 jb .use_com3 je .use_com4 ;still here? got an error jmp .error_irq .use_com1: xor eax, eax mov al, 4 ;irq 4 mov edi, esi mov esi, serial_irq4 cmp [com_clients.com3_client], dword -1 je .done_set1 ;if com3 has a client, then now we have to share irq4 mov [irq4share], byte 1 .done_set1: mov [com_clients.com1_client], edi externfunc hook_irq, noclass retn .use_com2: xor eax, eax mov al, 3 ;irq3 mov edi, esi ;save client mov esi, serial_irq3 cmp [com_clients.com4_client], dword -1 je .done_set2 ;if com4 has a client, we must now share irq3 mov [irq3share], byte 1 .done_set2: mov [com_clients.com2_client], edi externfunc hook_irq, noclass retn .use_com3: mov al, 4 ;irq 4 mov edi, esi ;save client mov esi, serial_irq4 cmp [com_clients.com1_client], dword -1 je .done_set3 ;if com1 has a client, we must share irq4 mov [irq4share], byte 1 .done_set3: mov [com_clients.com3_client], dword edi externfunc hook_irq, noclass retn .use_com4: mov al, 3 ;irq 3 mov edi, esi ;save client mov esi, serial_irq3 cmp [com_clients.com2_client], dword -1 je .done_set4 ;if com2 has a client, we must share irq3 mov [irq3share], byte 1 .done_set4: mov [com_clients.com4_client], dword edi externfunc hook_irq, noclass retn ;====-------[ERRORS]--------===== .com_too_high: pop eax stc mov eax, dword 2 ;error 2, com too high retn .no_such_port: pop eax stc mov eax, dword 3 ;error 3, no such com port retn .error_irq: stc mov eax, dword 4 ;error 4, couldnt find irq needed retn ;=======-------[IRQ SHARERS]-------======= serial_irq4: ;for coms 1 and 3 push ebx push edx push edi push ebp mov al, byte [irq4share] or al, 0 jz .do_com1 ;ok, we are sharing IRQ4 for com 1 and 3, check status bits to see ;which com just got sent data ;checking COM3 first mov dx, 0x3E8 + 3 ;base + 3 = LSR, Line Status Register in al, dx and al, 00000001b ;if bit 0 is set, keep it. or al, 0 jz .do_com1 ;not com3, check com1 ;something awaits in com3, lets get it. xor ax, ax mov dx, 0x3E8 in al, dx mov bx, ax mov al, 0x20 out 0x20, al ;ack the PIC mov ax, bx mov edx, com_clients.com3_client call [edx] pop ebp pop edi pop edx pop ebx retn .do_com1: ;irq was called, either com3 doesnt exist, or nothing was there ;so we can just get whatever came in. mov dx, 0x3F8 xor ax, ax in al, dx push eax ;mov bx, ax mov al, 0x20 out 0x20, al ;ack the PIC pop eax ;mov ax, bx call [com_clients.com1_client] ;call [edx] pop ebp pop edi pop edx pop ebx retn serial_irq3: ;for coms 2 and 4 push ebx push edx push edi push ebp mov al, byte [irq3share] or al, 0 ;check if sharing irq3 jz .do_com2 ;sharing IRQ, check to see if it was com4 mov dx, 0x2E8 + 3 ;base + 3 = LSR, Line Status Register in al, dx and al, 00000001b ;only keep bit0 up if it is up. or al, 0 ;is al 0? if yes it was com2 that got called jz .do_com2 ;it was com4 at this point xor ax, ax mov dx, 0x2E8 in al, dx mov bx, ax mov al, 0x20 out 0x20, al ;ack the PIC mov ax, bx mov edx, com_clients.com4_client call [edx] pop ebp pop edi pop edx pop ebx retn .do_com2: ;if it gets here, we either have no com4, or it wasnt com4 that was called xor ax, ax mov dx, 0x2F8 in al, dx mov bx, ax mov al, 0x20 out 0x20, al ;ack the PIC mov edx, com_clients.com2_client call [edx] pop ebp pop edi pop edx pop ebx retn globalfunc disable_port, com, 2, 10 ;in EAX= com port and eax, 0x0000FFFF ;make SURE that top 16bits are cleared or eax, eax ;check for zero jz .no_com cmp eax, 4 ;check for a com above 4 ja .no_com push eax ;we have a POSSIBLE com, find its addres. shl eax, 1 sub eax, 2 mov edi, com_ports add edi, eax mov dx, [edi] cmp dx, -1 je .no_com ;if dx = -1, we never detect an address for that com. ;base address to com port now in dx. ;first, stop the com from interupting the CPU. inc dx ;address to out to cancel interupt generation mov al, 0x00 out dx, al ;check to see if you can cancel the IRQ all together. pop eax cmp eax, 2 jb .dis_com1 je .dis_com2 cmp eax, 4 jb .dis_com3 je .dis_com4 .no_com: stc mov eax, 1 ;error 1, no com port found. retn .dis_com1: mov [com_clients.com1_client], dword -1 cmp [com_clients.com3_client], dword -1 jne .no_unhook1 ;unhook irq mov al, 4 mov esi, serial_irq4 ;externfunc unhook_irq, noclass ;------NOTE!!!!!---------- ;it was commented cause function not coded yet. .no_unhook1: clc retn .dis_com2: mov [com_clients.com2_client], dword -1 cmp [com_clients.com4_client], dword -1 jne .no_unhook2 ;unhook irq mov al, 3 mov esi, serial_irq3 ;externfunc unhook_irq, noclass .no_unhook2: clc retn .dis_com3: mov [com_clients.com3_client], dword -1 cmp [com_clients.com1_client], dword -1 jne .no_unhook3 ;unhook irq mov al, 4 mov esi, serial_irq4 ;externfunc unhook_irq, noclass .no_unhook3: clc retn .dis_com4: mov [com_clients.com4_client], dword -1 cmp [com_clients.com2_client], dword -1 jne .no_unhook4 ;unhook irq mov al, 3 mov esi, serial_irq3 ;externfunc unhook_irq, noclass .no_unhook4: clc retn ;====------[ VARIABLES ]------===== com_ports: global com1_port global com2_port global com3_port global com4_port com1_port: dw -1 com2_port: dw -1 com3_port: dw -1 com4_port: dw -1 divisors: .2400: db 0x30 .4800: db 0x18 .9600: db 0x0C .19200: db 0x06 .38400: db 0x03 .57600: db 0x02 .115200: db 0x01 com_clients: .com1_client: dd -1 .com2_client: dd -1 .com3_client: dd -1 .com4_client: dd -1 irq3share: db 0 ;boolean to see whether we are sharing IRQ3 or not. irq4share: db 0 ;same but for IRQ4. struc com_buffer ;size is 11bytes .com: resb 1 .location: resd 1 .size: resw 1 .in: resw 1 .out: resw 1 endstruc ;===-----[ COM BUFFERS ]------=== com1_buffer: .location: dd -1 .size: dw -1 .in: dw 0 .out: dw 0 com2_buffer: .location: dd -1 .size: dw -1 .in: dw 0 .out: dw 0 com3_buffer: .location: dd -1 .size: dw -1 .in: dw 0 .out: dw 0 com4_buffer: .location: dd -1 .size: dw -1 .in: dw 0 .out: dw 0
basics/assignment.als
nowavailable/alloy_als_study
0
986
/* var a, x, y; // 1) 代入その一 a = x + 1; // 2) 分岐 if (a == 1) { y = 1; } else { y = a; } // 3) 代入その二 y = x + 1; */ open util/integer sig Env { x: Int } pred fin [x,y: Int] { // 3) の事後 eq[y, x + 1] } pred proc_1 (x,a: Int) { // 2) の事後 = if文そのもの && 3) の事後に引数を渡す ((a = 1 and fin[x,1]) or (a != 1 and fin[x,a])) } pred start (x: Int) { // 1) の事後 = 2) の事後に引数を渡す proc_1[x, x + 1] } run { all env: Env | start[env.x]} check { all env: Env | start[env.x]} /* pred fin [x,y: Int] { // 3) の事後 eq[y, add[x,1]] } pred proc_1 (x,a: Int) { // 2) の事後 = if文そのもの && 3) の事後に引数を渡す ((eq[a,1] and fin[x,1]) or (not(eq[a,1]) and fin[x,a])) } pred start (x: Int) { // 1) の事後 = 2) の事後に引数を渡す proc_1[x,add[x,1]] } */
chat_procedures.ads
cborao/Ada-P3
0
15772
--PRÁCTICA 3: <NAME> (Chat_Procedures.ads) with Maps_G; with Ada.Text_IO; with Ada.Calendar; with Lower_Layer_UDP; with Ada.Command_Line; with Ada.Strings.Unbounded; package Chat_Procedures is package ATI renames Ada.Text_IO; package LLU renames Lower_Layer_UDP; package ACL renames Ada.Command_Line; package ASU renames Ada.Strings.Unbounded; use type ASU.Unbounded_String; type Data is record Client_EP: LLU.End_Point_Type; Time: Ada.Calendar.Time; end record; function Max_Valid (Max_Clients: Natural) return Boolean; package Active_Clients is new Maps_G (Key_Type => ASU.Unbounded_String, Value_Type => Data, Max_Clients => Natural'Value(ACL.Argument(2)), "=" => ASU."="); package Old_Clients is new Maps_G (Key_Type => ASU.Unbounded_String, Value_Type => Ada.Calendar.Time, Max_Clients => 150, "=" => ASU."="); Active_Map: Active_Clients.Map; Old_Map: Old_Clients.Map; procedure Print_Active_Map; procedure Print_Old_Map; procedure Case_Init (I_Buffer: access LLU.Buffer_Type; O_Buffer: access LLU.Buffer_Type); procedure Case_Writer (I_Buffer: access LLU.Buffer_Type; O_Buffer: access LLU.Buffer_Type); procedure Case_Logout (I_Buffer: access LLU.Buffer_Type; O_Buffer: access LLU.Buffer_Type); end Chat_Procedures;
src/print.asm
cmounce/all-purpose-tsr
0
96026
<reponame>cmounce/all-purpose-tsr<gh_stars>0 ;; Routines for printing %ifndef PRINT_ASM %define PRINT_ASM %include 'string.asm' %include 'system.asm' ;------------------------------------------------------------------------------ ; Macros ;------------------------------------------------------------------------------ ; Internal macro for making print macros (e.g., printf) easier to write. ; Code outside of print.asm should not call this directly. %macro process_fprintf_args 1-* ; Process all macro arguments in backward order %assign %%i %0 %rep %0 ; Update current argument, loop variable ; %%i takes values n-1 through 0 %rotate -1 %assign %%i %%i - 1 %ifstr %1 ; Save string to .data section .data %%str%[%%i]: db_wstring %1 section .text %define %%val %%str%[%%i] %else %define %%val %1 %endif ; Generate code %if %%i == 0 ; TODO: How many bytes does this special-case save, if any? mov dx, %%val ; Format string goes in DX %else push %%val ; Format arguments go on stack %endif %endrep %endmacro ; Print a formatted string to stdout ; Examples: ; - printf "Hello, world!" ; - printf "BX's string value is: %s", bx %macro printf 1-* process_fprintf_args %{1:-1} call printf_raw %endmacro ; Like printf, but prints to stderr %macro eprintf 1-* process_fprintf_args %{1:-1} call eprintf_raw %endmacro ; Like printf, but prints to AX = file handle %macro fprintf 1-* process_fprintf_args %{1:-1} call fprintf_raw %endmacro ; Helper for terminating with an error message. ; Example: 'die 123, "foo"' prints "foo" to stderr and exits with code 123. %macro die 2-* %strcat %%fmt_str %2, `\r\n` %if %0 == 2 eprintf %%fmt_str %else eprintf %%fmt_str, %{3:-1} %endif exit %1 %endmacro ;------------------------------------------------------------------------------ ; Functions ;------------------------------------------------------------------------------ section .text ; Wrapper around fprintf_raw for printing to stdout printf_raw: mov ax, 1 jmp fprintf_raw ; Wrapper around fprintf_raw for printing to stderr eprintf_raw: mov ax, 2 jmp fprintf_raw ; Print a format string to the given file handle ; ; AX = handle to write to ; DX = wstring containing format-string data ; Format string arguments should be pushed to the stack in reverse order. fprintf_raw: push bp mov bp, sp push bx push di push si ; Set BX = handle to write to mov bx, ax ; Set BP = address of first format string argument add bp, 4 ; Skip old value of BP + return address ; Set SI/DI = start/end of format string contents mov si, dx mov di, [si] ; Get length of format string add si, 2 ; SI = start of format string add di, si ; DI = just past end of format string ; Print contents of format string while_condition cmp si, di begin_while b cmp byte [si], '%' begin_if e ; This is a format specifier. ; Advance SI to point past the percent sign. inc si cmp si, di ; Make sure SI is still in bounds jae break cmp byte [si], 's' begin_if e ; Format specifier: print string push bp mov bp, [bp] ; BP = address of wstring mov cx, [bp] ; CX = length of wstring lea dx, [bp + 2] ; DX = contents of wstring pop bp ; TODO: save a few bytes by deduplicating this mov ah, 40h ; Write to handle int 21h add bp, 2 ; BP = next format arg inc si ; SI = character following "%s" else ; Format specifier not recognized: print literal character mov cx, 1 ; Print 1 byte mov dx, si ; Print from SI mov ah, 40h ; Write to handle int 21h ; TODO: Advance past format specifier in a more elegant way. ; Maybe a separate parsing function that advances SI? inc si ; Move SI past this byte end_if else call fprintf_print_literals end_if end_while pop si pop di pop bx pop bp ret ; Helper for fprintf_raw: print literal characters up to the next percent sign. ; ; BX = file handle to print to ; SI = memory location to start printing ; DI = end of format string (exclusive) ; Advances SI past the last byte printed. fprintf_print_literals: ; Save DX = start of bytes to print mov dx, si ; Advance SI past all bytes we're printing while_condition cmp si, di ; Iterate SI as far as the end of the format string begin_while b cmp byte [si], '%' ; Break early if we hit a format specifier je break inc si end_while ; Print bytes from DX to SI mov cx, si ; CX = number of bytes to print = SI - DX sub cx, dx mov ah, 40h ; Write data to handle in BX int 21h ret ; PRINT_ASM %endif
Task/Best-shuffle/Ada/best-shuffle.ada
djgoku/RosettaCodeData
0
3112
with Ada.Text_IO; procedure Best_Shuffle is function Best_Shuffle(S: String) return String is T: String(S'Range) := S; Tmp: Character; begin for I in S'Range loop for J in S'Range loop if I /= J and S(I) /= T(J) and S(J) /= T(I) then Tmp := T(I); T(I) := T(J); T(J) := Tmp; end if; end loop; end loop; return T; end Best_Shuffle; Stop : Boolean := False; begin -- main procedure while not Stop loop declare Original: String := Ada.Text_IO.Get_Line; Shuffle: String := Best_Shuffle(Original); Score: Natural := 0; begin for I in Original'Range loop if Original(I) = Shuffle(I) then Score := Score + 1; end if; end loop; Ada.Text_Io.Put_Line(Original & ", " & Shuffle & ", (" & Natural'Image(Score) & " )"); if Original = "" then Stop := True; end if; end; end loop; end Best_Shuffle;
programs/oeis/000/A000277.asm
karttu/loda
0
97568
; A000277: 3*n - 2*floor(sqrt(4*n+5)) + 5. ; 1,2,5,6,9,10,13,16,17,20,23,24,27,30,33,34,37,40,43,44,47,50,53,56,57,60,63,66,69,70,73,76,79,82,85,86,89,92,95,98,101,102,105,108,111,114,117,120,121,124,127,130,133,136,139,140,143,146,149,152,155,158,161,162,165,168,171,174,177,180,183,184,187,190,193,196,199,202,205,208,209,212,215,218,221,224,227,230,233,234,237,240,243,246,249,252,255,258,261,262,265,268,271,274,277,280,283,286,289,290,293,296,299,302,305,308,311,314,317,320,321,324,327,330,333,336,339,342,345,348,351,352,355,358,361,364,367,370,373,376,379,382,385,386,389,392,395,398,401,404,407,410,413,416,419,420,423,426,429,432,435,438,441,444,447,450,453,456,457,460,463,466,469,472,475,478,481,484,487,490,493,494,497,500,503,506,509,512,515,518,521,524,527,530,533,534,537,540,543,546,549,552,555,558,561,564,567,570,573,574,577,580,583,586,589,592,595,598,601,604,607,610,613,616,617,620,623,626,629,632,635,638,641,644,647,650,653,656,659,660,663,666,669,672,675,678,681,684,687,690 mov $1,$0 mul $1,2 add $1,$0 add $0,$1 add $0,1 add $1,2 lpb $0,1 sub $0,$2 trn $0,3 sub $1,2 trn $2,2 add $2,4 lpe add $1,1
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sdcc/___hadd.asm
ahjelm/z88dk
640
7141
SECTION code_fp_math16 PUBLIC ___hadd PUBLIC _addf16 EXTERN cm16_sdcc_add defc ___hadd = cm16_sdcc_add defc _addf16 = cm16_sdcc_add
src/arch/x86_64/boot.asm
ayush7788/discitix_x86_64
8
97060
<filename>src/arch/x86_64/boot.asm section .stivale2hdr write stivale2_header: .entry_point: dq 0 .stack: dq stack.top .flags: dq 0 .tags: dq fb_tag section .bss stack: resb 4096 .top: section .data fb_tag: .id: dq 0x3ecc1bc43d0f7971 .next: dq fb_mtrr ;define it later .fb_width: dw 0 ;best find .fb_height: dw 0 ;best find .fb_bpp: dw 32 ;not less than 32 bpp fb_mtrr: .id: dq 0x4c7bb07731282e00 .next: dq 0 section .text global _start extern kmain _start: cli call kmain hlt jmp loop loop: cli hlt jmp $