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
Lista_ASM/Q5.asm
maluwastaken/Infra_de_Software
0
7446
org 0x7c00 jmp 0x0000:main ;30x15 var db 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, 2, 10, 14, 14, 10, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 10, 14, 14, 14, 14, 14, 14, 10, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 10, 14, 14, 14, 7, 7, 7, 7, 14, 14, 14, 10, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 10, 14, 14, 14, 14, 8, 1, 1, 1, 1, 1, 7, 14, 14, 14, 10, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 10, 14, 14, 14, 14, 14, 8, 1, 1, 1, 1, 1, 1, 1, 7, 14, 14, 14, 14, 10, 2, 2, 2, 2, 2, 2, 2, 2, 2, 10, 14, 14, 14, 14, 14, 14, 8, 1, 1, 1, 1, 1, 1, 1, 7, 14, 14, 14, 14, 14, 10, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 10, 14, 14, 14, 14, 7, 1, 1, 1, 1, 1, 1, 1, 7, 14, 14, 14, 10, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 10, 14, 14, 14, 7, 8, 8, 1, 8, 7, 14, 14, 14, 10, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 10, 14, 14, 14, 14, 14, 14, 14, 14, 10, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 10, 14, 14, 14, 14, 10, 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, 10, 10, 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, 2, 2 main: xor ax, ax mov ds, ax mov es, ax mov ah, 4FH ;prox 4 linha inicializa a tela grafica 320 x200 mov al, 02H mov bx, 11BH ; 320 x 200 int 10h mov si, var mov cx, 0 mov dx, 0 mov ah, 0Ch laco: lodsb int 10h inc cx cmp cx, 30 je compara_eh_quinze jmp laco done: jmp $ compara_eh_quinze: cmp dx, 14 je done mov cx, 0 inc dx jmp laco times 510 - ($ - $$) db 0 dw 0xaa55
libsrc/target/spc1000/psg/set_psg_callee.asm
ahjelm/z88dk
640
171199
; ; TRS-80 (EG2000+HT1080) specific routines ; by <NAME>, Fall 2015 ; ; int set_psg(int reg, int val); ; ; Play a sound by PSG ; ; ; $Id: set_psg_callee.asm,v 1.2 2016-06-10 21:13:58 dom Exp $ ; SECTION code_clib PUBLIC set_psg_callee PUBLIC _set_psg_callee PUBLIC asm_set_psg set_psg_callee: _set_psg_callee: pop hl pop de ex (sp),hl .asm_set_psg ld bc,0x4000 out (c),l inc bc out (c),e ret
test/Succeed/Issue3079.agda
shlevy/agda
2
14950
module _ where module M (X : Set₁) where record Raw : Set₁ where field return : Set postulate fmap : Set module Fails = Raw ⦃ … ⦄ module Works ⦃ r : Raw ⦄ = Raw r open M postulate r : Raw Set fail : Set fail = Fails.fmap Set ⦃ r ⦄ -- C-c C-n fail -- M.Raw.fmap Set r good : Set good = Works.fmap Set ⦃ r ⦄ -- C-c C-n good -- M.Raw.fmap r -- Checking using reflection saves us an interaction test. open import Agda.Builtin.Reflection renaming (bindTC to _>>=_) open import Agda.Builtin.Equality open import Agda.Builtin.List open import Agda.Builtin.Unit macro `_ : Name → Term → TC ⊤ (` x) hole = do v ← normalise (def x []) `v ← quoteTC v unify hole `v pattern vArg x = arg (arg-info visible relevant) x pattern hArg x = arg (arg-info hidden relevant) x pattern `fmap x y = def (quote M.Raw.fmap) (x ∷ y ∷ []) `Set = agda-sort (lit 0) `r = def (quote r) [] check-good : ` good ≡ `fmap (hArg `Set) (vArg `r) check-good = refl check-bad : ` fail ≡ ` good check-bad = refl
OvmfPkg/ResetVector/Main.asm
ray-linn/myedk2
0
10225
;------------------------------------------------------------------------------ ; @file ; Main routine of the pre-SEC code up through the jump into SEC ; ; Copyright (c) 2008 - 2009, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ;------------------------------------------------------------------------------ BITS 16 ; ; Modified: EBX, ECX, EDX, EBP ; ; @param[in,out] RAX/EAX Initial value of the EAX register ; (BIST: Built-in Self Test) ; @param[in,out] DI 'BP': boot-strap processor, or ; 'AP': application processor ; @param[out] RBP/EBP Address of Boot Firmware Volume (BFV) ; @param[out] DS Selector allowing flat access to all addresses ; @param[out] ES Selector allowing flat access to all addresses ; @param[out] FS Selector allowing flat access to all addresses ; @param[out] GS Selector allowing flat access to all addresses ; @param[out] SS Selector allowing flat access to all addresses ; ; @return None This routine jumps to SEC and does not return ; Main16: OneTimeCall EarlyInit16 ; ; Transition the processor from 16-bit real mode to 32-bit flat mode ; OneTimeCall TransitionFromReal16To32BitFlat BITS 32 ; Clear the WorkArea header. The SEV probe routines will populate the ; work area when detected. mov byte[WORK_AREA_GUEST_TYPE], 0 %ifdef ARCH_X64 jmp SearchBfv ; ; Entry point of Main32 ; Main32: OneTimeCall InitTdx SearchBfv: %endif ; ; Search for the Boot Firmware Volume (BFV) ; OneTimeCall Flat32SearchForBfvBase ; ; EBP - Start of BFV ; ; ; Search for the SEC entry point ; OneTimeCall Flat32SearchForSecEntryPoint ; ; ESI - SEC Core entry point ; EBP - Start of BFV ; %ifdef ARCH_IA32 ; ; Restore initial EAX value into the EAX register ; mov eax, esp ; ; Jump to the 32-bit SEC entry point ; jmp esi %else ; ; Transition the processor from 32-bit flat mode to 64-bit flat mode ; OneTimeCall Transition32FlatTo64Flat BITS 64 ; ; Some values were calculated in 32-bit mode. Make sure the upper ; 32-bits of 64-bit registers are zero for these values. ; mov rax, 0x00000000ffffffff and rsi, rax and rbp, rax and rsp, rax ; ; RSI - SEC Core entry point ; RBP - Start of BFV ; ; ; Restore initial EAX value into the RAX register ; mov rax, rsp ; ; Jump to the 64-bit SEC entry point ; jmp rsi %endif
exercise2.asm
astrellon/moss
0
18354
main: PRINT "Input something will ya: " INPUT r0 PRINT "\nYou inputted: " PRINT r0 CMP r0 100 >= PRINT "\nToo old\n" >= JMP end CMP r0 20 >= PRINT "\nJust right\n" >= JMP end PRINT "\nToo young\n" end: PRINT "\nDone!\n"
bb-runtimes/examples/monitor/common/elf32.ads
JCGobbi/Nucleo-STM32G474RE
0
9797
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- Copyright (C) 2013, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- ELF definitions (for loaders) with Interfaces; use Interfaces; package Elf32 is type Elf32_Ehdr is record E_Ident_Mag0 : Unsigned_8; E_Ident_Mag1 : Unsigned_8; E_Ident_Mag2 : Unsigned_8; E_Ident_Mag3 : Unsigned_8; E_Ident_Class : Unsigned_8; E_Ident_Data : Unsigned_8; E_Ident_Version : Unsigned_8; E_Ident_Pad7 : Unsigned_8; E_Ident_Pad8 : Unsigned_8; E_Ident_Pad9 : Unsigned_8; E_Ident_Pad10 : Unsigned_8; E_Ident_Pad11 : Unsigned_8; E_Ident_Pad12 : Unsigned_8; E_Ident_Pad13 : Unsigned_8; E_Ident_Pad14 : Unsigned_8; E_Ident_Pad15 : Unsigned_8; E_Type : Unsigned_16; E_Machine : Unsigned_16; E_Version : Unsigned_32; E_Entry : Unsigned_32; E_Phoff : Unsigned_32; E_Shoff : Unsigned_32; E_Flags : Unsigned_32; E_Ehsize : Unsigned_16; E_Phentsize : Unsigned_16; E_Phnum : Unsigned_16; E_Shentsize : Unsigned_16; E_Shnum : Unsigned_16; E_Shstrndx : Unsigned_16; end record; -- Values for e_ident Ei_Mag0 : constant := 16#7f#; Ei_Mag1 : constant := Character'Pos ('E'); Ei_Mag2 : constant := Character'Pos ('L'); Ei_Mag3 : constant := Character'Pos ('F'); Elfclass32 : constant := 1; Elfdata2lsb : constant := 1; Elfdata2msb : constant := 2; -- Values for e_type Et_Exec : constant := 2; -- Values for e_version Ev_Current : constant := 1; type Elf32_Phdr is record P_Type : Unsigned_32; P_Offset : Unsigned_32; P_Vaddr : Unsigned_32; P_Paddr : Unsigned_32; P_Filesz : Unsigned_32; P_Memsz : Unsigned_32; P_Flags : Unsigned_32; P_Align : Unsigned_32; end record; -- Values for p_type Pt_Null : constant := 0; Pt_Load : constant := 1; Pt_Dynamic : constant := 2; Pt_Interp : constant := 3; Pt_Note : constant := 4; Pt_Shlib : constant := 5; Pt_Phdr : constant := 6; -- Value for p_flags Pf_X : constant := 1; Pf_W : constant := 2; Pf_R : constant := 3; end Elf32;
lib/string/string.asm
locodarwin/xc-basic3
11
166277
<gh_stars>10-100 IF TARGET == c64 STRING_WORKAREA EQU $CF00 ENDIF IF TARGET == vic20 STRING_WORKAREA EQU $1D00 ENDIF IF TARGET == vic20_3k STRING_WORKAREA EQU $0F00 ENDIF IF TARGET == vic20_8k || TARGET == c16 || TARGET == cplus4 STRING_WORKAREA EQU $3F00 ENDIF STRING_BUFFER1 EQU $033C STRING_BUFFER2 EQU $039D INCLUDE "string/_fn.asm" ; Reset stack pointer MAC spreset lda #$ff sta SP ENDM ; Push string to stack ; Allocating as many bytes as necessary MAC pstringvar lda #<{1} sta R0 lda #>{1} sta R0 + 1 lda {1} ; get string length import I_STRMOV jsr STRMOV ENDM ; Destination pointer = Stack pointer + {offset} MAC stackptrtodestptr lda RC ; Copy pointer clc adc #{1} ; Add offset to pointer sta R0 lda RC + 1 adc #0 sta R0 + 1 ENDM ; Destination pointer = THIS pointer + {offset} MAC thisptrtodestptr lda TH ; Copy pointer clc adc #{1} ; Add offset to pointer sta R0 lda TH + 1 adc #0 sta R0 + 1 ENDM ; Push dynamic string variable onto stack ; Var relative address in {1} MAC pdynstringvar stackptrtodestptr {1} ldy #{1} lda (RC),y ; get string length import I_STRMOV jsr STRMOV ENDM ; Pull string off of stack to variable ; Var address in {1} ; Max length (excluding length indicator) in {2} - The target var might be narrower MAC plstringvar lda #<{1} sta R0 lda #>{1} sta R0 + 1 lda #{2} import I_STRREMOV jsr STRREMOV ENDM ; Pull dynamic string on stack to variable ; Var relative address in {1} ; Max length (excluding length indicator) in {2} - The target var might be narrower MAC pldynstringvar stackptrtodestptr {1} lda #{2} import I_STRREMOV jsr STRREMOV ENDM ; Push string of an array onto stack ; (indexed by a word) MAC pstringarray ; @pull getaddr {1} ldy #0 lda (R0),y ; get string length import I_STRMOV jsr STRMOV ENDM ; Push string of an array onto stack ; (indexed by a byte) MAC pstringarrayfast ; @pull IF !FPULL pla ENDIF tax clc adc #<{1} ; R0 = {1} + A sta R0 lda #>{1} adc #0 sta R0 + 1 lda {1},x import I_STRMOV jsr STRMOV ENDM ; Pull string off of stack and store in array ; (indexed by a word) ; Max length in {2} MAC plstringarray ; @pull getaddr {1} lda #{2} import I_STRREMOV jsr STRREMOV ENDM ; Pull string off of stack and store in array ; (indexed by a byte) ; Max length in {2} MAC plstringarrayfast ; @pull IF !FPULL pla ENDIF tax clc adc #<{1} ; R0 = {1} + A sta R0 lda #>{1} adc #0 sta R0 + 1 lda #{2} import I_STRREMOV jsr STRREMOV ENDM ; Push relative string variable (e.g this.something$) MAC prelativestringvar thisptrtodestptr {1} ldy #{1} lda (TH),y ; get string length import I_STRMOV jsr STRMOV ENDM ; Pull byte value and store in relative string variable ; (e.g this.something$) MAC plrelativestringvar thisptrtodestptr {1} lda #{2} import I_STRREMOV jsr STRREMOV ENDM ; Move string on stack and update stack pointer ; Length in A ; String ptr in R0 IFCONST I_STRMOV_IMPORTED STRMOV SUBROUTINE pha ; save length tay ldx SP ; current stack pointer .loop lda (R0),y sta STRING_WORKAREA,x dex dey bne .loop pla ; restore length sta STRING_WORKAREA,x dex stx SP ; new stack pointer rts ENDIF IFCONST I_STRREMOV_IMPORTED ; Dest ptr to string in R0 ; Max length in A STRREMOV SUBROUTINE ldx SP inx cmp STRING_WORKAREA,x ; length of string on stack bcc .skip lda STRING_WORKAREA,x .skip tay ; X = X + A stx R2 clc adc R2 tax stx SP ; Move pointer to end of string .loop lda STRING_WORKAREA,x sta (R0),y dex dey bpl .loop .end rts ENDIF IFCONST I_STRREMOV_SC_IMPORTED ; Dest ptr to string in R0 ; Max length in A ; Same as above but converts PETSCII to screencode ; and does not copy length indicator ; Leaves string length in R3 STRREMOV_SC SUBROUTINE ldx SP inx cmp STRING_WORKAREA,x ; length of string on stack bcc .skip lda STRING_WORKAREA,x sta R3 .skip tay ; X = X + A stx R2 clc adc R2 tax stx SP ; Move pointer to end of string dey .loop lda STRING_WORKAREA,x import I_PET2SC jsr PET2SC sta (R0),y dex dey bpl .loop .end rts ENDIF IFCONST I_PET2SC_IMPORTED ; PETSCII to screencode conversion ; By Mace PET2SC SUBROUTINE cmp #$20 bcc .ddRev cmp #$60 bcc .dd1 cmp #$80 bcc .dd2 cmp #$a0 bcc .dd3 cmp #$c0 bcc .dd4 cmp #$ff bcc .ddRev lda #$7e bne .ddEnd .dd2: and #$5f bne .ddEnd .dd3: ora #$40 bne .ddEnd .dd4: eor #$c0 bne .ddEnd .dd1: and #$3f bpl .ddEnd .ddRev: eor #$80 .ddEnd: rts ENDIF IFCONST I_STRSCRATCH_IMPORTED ; Remove top string from stack without copying STRSCRATCH SUBROUTINE ldx SP inx stx R0 lda STRING_WORKAREA,x clc adc R0 sta SP rts ENDIF ; Concatenate top two strings on stack MAC addstring import I_STR_CONCAT jsr STR_CONCAT ENDM IFCONST I_STR_CONCAT_IMPORTED STR_CONCAT SUBROUTINE ; Pull string2 plstringvar STRING_BUFFER2, 96 ; Pull string1 plstringvar STRING_BUFFER1, 96 ; Push string2 pstringvar STRING_BUFFER2 ; Adjust pointer and push string2 inc SP pstringvar STRING_BUFFER1 ; Calculate and write total length lda STRING_BUFFER1 clc adc STRING_BUFFER2 ldx SP inx sta STRING_WORKAREA,x rts ENDIF ; Returns pointer (XY) and length (A) to null-terminated ; string converted from Pascal string on stack MAC strtonullterm import I_STR_TONULLTERM jsr STR_TONULLTERM lda R1 ldx #<STRING_BUFFER1 ldy #>STRING_BUFFER1 ENDM ; Converts Pascal string on stack to ; null-terminated string at STRING_BUFFER1 ; saves string length in R1 IFCONST I_STR_TONULLTERM_IMPORTED STR_TONULLTERM SUBROUTINE ldx SP inx lda STRING_WORKAREA,x sta R1 tay lda #0 sta STRING_BUFFER1,y ; X = X + Y + 1 sty R0 txa clc adc R0 tax inx stx SP ; point to next string .loop lda STRING_WORKAREA,x sta [STRING_BUFFER1 - 1],y dex dey bne .loop rts ENDIF
oeis/071/A071790.asm
neoneye/loda-programs
11
6972
<reponame>neoneye/loda-programs<filename>oeis/071/A071790.asm ; A071790: Decimal expansion of the second (of 10) decimal selvage numbers; the n-th digit of a decimal selvage number, x, is equal to the tenths digit of n*x. ; Submitted by <NAME> ; 2,4,7,9,2,4,7,9,2,4,7,9,2,4,7,9,2,4,7,9,2,4,7,9,1,4,6,9,1,4,6,9,1,4,6,9,1,4,6,9,1,4,6,9,1,4,6,9,1,3,6,8,1,3,6,8,1,3,6,8,1,3,6,8,1,3,6,8,1,3,6,8,0,3,5,8,0,3,5,8,0,3,5,8,0,3,5,8,0,3,5,8,0,3,5,8,0,2,5,7 mul $0,300 add $0,57 div $0,121 add $0,2 mod $0,10
src/main/java/it/univr/main/antlr/MuJs.g4
UniVE-SSV/rsubs
0
1108
grammar MuJs; @header { package it.univr.main; } EOL_COMMENT : '//' ~[\r\n]* -> skip; NAN: 'NaN' ; BOOL: 'true' | 'false'; ID: [a-zA-Z][a-zA-Z0-9]* ; SIGN: '+' | '-'; INT: SIGN? [0-9]+ ; STRING: '"' ~('\r' | '\n' | '"')* '"' | '\'' ~('\r' | '\n' )* '\'' ; program: stmt EOF #ProgramExecution ; val: INT #Integer | BOOL #Boolean | STRING #String | NAN #NaN ; object: '{' '}' #EmptyObject | '{' (ID ':' expression) (';' ID ':' expression)* '}' #Obj ; expression: val #PrimitiveValue | expression '-' expression #Diff | expression '*' expression #Mul | expression '/' expression #Div | expression '>' expression #Greater | expression '<' expression #Less | expression '&&' expression #And | expression '||' expression #Or | expression '.' 'substring' '(' expression ',' expression ')' #Substring | expression '+' expression #Sum | expression '.' 'charAt' '(' expression ')' #CharAt | expression '.' 'indexOf' '(' expression ')' #IndexOf | expression '.' 'length' #Length | expression '.' 'contains' '(' expression ')' #Contains | expression '.' 'repeat' '(' expression ')' #Repeat | expression '.' 'startsWith' '(' expression ')' #StartsWith | expression '.' 'endsWith' '(' expression ')' #EndsWith | expression '.' 'trim' '(' ')' #Trim | expression '.' 'trimLeft' '(' ')' #TrimLeft | expression '.' 'trimRight' '(' ')' #TrimRight | expression '.' 'slice' '(' expression ',' expression ')' #Slice | expression '.' 'toLowerCase' '(' ')' #ToLowerCase | expression '.' 'toUpperCase' '(' ')' #ToUpperCase | expression '.' 'replace' '(' expression ',' expression')' #Replace | '(' expression ')' #Parenthesis | expression '==' expression #Equals | expression '!=' expression #NotEquals | ID #Identifier | '!' expression #Not | object #ObjectExpression | ID'[' expression ']' #PropLookup | ID '(' expression ( ',' expression )* ')' #FunctionCall | 'randInt' '(' ')' #RandomInt | 'randStr' '(' ')' #RandomStr | 'randBool' '(' ')' #RandomBool ; stmt: ID '=' expression ';' #AssignmentStmt | 'if' '(' expression ')' block 'else' block #IfStmt | 'for' '(' ID 'in' ID ')' block #ForEach | 'while' '(' expression ')' block #WhileStmt | block #BlockStmt | 'return' expression ';' #ReturnStmt | <assoc=right> stmt stmt #Composition | ID '=' 'new' object ';' #ObjectAsg | ID '[' expression ']' '=' expression ';' #PropUpdate | 'function' ID '(' ID ( ',' ID)* ')' '{' stmt '}' #FunctionDeclaration | 'assert' '(' expression ')' ';' #Assert ; block: '{' '}' | '{' stmt '}' ; WS: [ \r\n\t] + -> skip ;
tss-occam-compiler/src/main/antlr4/uk/co/transputersystems/occam/Occam.g4
TransputerSystems/TSS
6
6727
grammar Occam; tokens { INDENT, DEDENT } @lexer::members { // A queue where extra tokens are pushed on (see the NEWLINE lexer rule). private java.util.LinkedList<Token> tokens = new java.util.LinkedList<>(); // The stack that keeps track of the indentation level. private java.util.Stack<Integer> indents = new java.util.Stack<>(); // The amount of opened braces, brackets and parenthesis. private int opened = 0; // The most recently produced token. private Token lastToken = null; @Override public void emit(Token t) { super.setToken(t); tokens.offer(t); } @Override public Token nextToken() { // Check if the end-of-file is ahead and there are still some DEDENTS expected. if (_input.LA(1) == EOF && !this.indents.isEmpty()) { // Remove any trailing EOF tokens from our buffer. for (int i = tokens.size() - 1; i >= 0; i--) { if (tokens.get(i).getType() == EOF) { tokens.remove(i); } } // First emit an extra line break that serves as the end of the statement. this.emit(commonToken(OccamParser.NL, "\n")); // Now emit as much DEDENT tokens as needed. while (!indents.isEmpty()) { this.emit(createDedent()); indents.pop(); } // Put the EOF back on the token stream. this.emit(commonToken(OccamParser.EOF, "<EOF>")); } Token next = super.nextToken(); if (next.getChannel() == Token.DEFAULT_CHANNEL) { // Keep track of the last token on the default channel. this.lastToken = next; } return tokens.isEmpty() ? next : tokens.poll(); } private Token createDedent() { CommonToken dedent = commonToken(OccamParser.DEDENT, ""); dedent.setLine(this.lastToken.getLine()); return dedent; } private CommonToken commonToken(int type, String text) { int stop = this.getCharIndex() - 1; int start = text.isEmpty() ? stop : stop - text.length() + 1; return new CommonToken(this._tokenFactorySourcePair, type, DEFAULT_TOKEN_CHANNEL, start, stop); } // Calculates the indentation of the provided spaces, taking the // following rules into account: // // "Tabs are replaced (from left to right) by one to eight spaces // such that the total number of characters up to and including // the replacement is a multiple of eight [...]" // // -- https://docs.python.org/3.1/reference/lexical_analysis.html#indentation static int getIndentationCount(String spaces) { int count = 0; for (char ch : spaces.toCharArray()) { switch (ch) { case '\t': count += 8 - (count % 8); break; default: // A normal space char. count++; } } return count; } boolean atStartOfInput() { return super.getCharPositionInLine() == 0 && super.getLine() == 1; } } NL : ( {atStartOfInput()}? SPACES | ('\r'? '\n' | '\r' ) SPACES? ) { String newLine = getText().replaceAll("[^\r\n]+", ""); String spaces = getText().replaceAll("[\r\n]+", ""); int next = _input.LA(1); int nextNext = _input.LA(2); if (opened > 0 || next == '\r' || next == '\n' || (next == '-' && nextNext == '-')) { // If we're inside a list or on a blank line, ignore all indents, // dedents and line breaks. skip(); } else { emit(commonToken(NL, newLine)); int indent = getIndentationCount(spaces); int previous = indents.isEmpty() ? 0 : indents.peek(); if (indent == previous) { // skip indents of the same size as the present indent-size skip(); } else if (indent > previous) { indents.push(indent); emit(commonToken(OccamParser.INDENT, spaces)); } else { // Possibly emit more than 1 DEDENT token. while(!indents.isEmpty() && indents.peek() > indent) { this.emit(createDedent()); indents.pop(); } } } } ; file_input : ( NL | specification ) * EOF; stmt : simple_stmt #stmt_simple_stmt | compound_stmt #stmt_compound_stmt ; simple_stmt : small_stmt NL ; small_stmt : assignment #small_stmt_assignment | input #small_stmt_input | output #small_stmt_output | SKIP_T #small_stmt_skip | STOP #small_stmt_stop | proc_instance #small_stmt_proc ; compound_stmt : sequence #compound_stmt_sequence | conditional #compound_stmt_conditional | selection #compound_stmt_selection | loop #compound_stmt_loop | parallel #compound_stmt_parallel | alternation #compound_stmt_alternation | case_input #compound_stmt_case_input | (specification | allocation) NL stmt #compound_stmt_spec_or_alloc_stmt ; abbreviation: NAME IS named_operand ':' #abbreviation_name_operand | specifier NAME IS named_operand ':' #abbreviation_spec_name_operand | VAL NAME IS expression ':' #abbreviation_expression | VAL specifier NAME IS expression ':' #abbreviation_spec_expression | NAME IS '[' channel ( ',' channel ) * ']' ':' #abbreviation_name_channel_list | specifier NAME IS '[' channel ( ',' channel ) * ']' ':' #abbreviation_spec_channel_list ; actual : named_operand #actual_named_operand | channel #actual_channel | expression #actual_expression ; allocation : PLACE NAME AT expression ':' ; alternation : PRI ? ALT NL INDENT alternative ( alternative ) * DEDENT #alternation_alternatives | PRI ? ALT replicator NL INDENT alternative DEDENT #alternation_replicator_alternative ; alternative : guarded_alternative #alternative_guarded | alternation #alternative_alternation | channel '?' CASE NL INDENT variant ( NL variant ) * DEDENT #alternative_channel | bool '&' channel '?' CASE NL INDENT variant ( NL variant ) * DEDENT #alternative_bool_channel | specification NL alternative #alternative_spec ; assignment : variable_list ':=' expression_list; base : expression; bool : expression; case_expression : expression ; case_input : channel '?' CASE NL INDENT variant ( NL variant ) * DEDENT ; channel : NAME #channel_name | channel '[' expression ']' #channel_channel_expression | '[' channel FROM base ( FOR count ) ? ']' #channel_from_base | '[' channel FOR count ']' #channel_for_count ; channel_type : CHANOF protocol #channel_type_protocol | '[' expression ']' channel_type #channel_expression_channel_type ; choice : guarded_choice #choice_guarded | conditional #choice_conditional | specification NL choice #choice_specification ; conditional : IF NL INDENT choice ( choice ) * DEDENT #conditional_choices | IF replicator NL INDENT choice DEDENT #conditional_replicator ; conversion : data_type ( ROUND | TRUNC ) ? operand ; count : expression ; data_type : BOOL #data_type_bool | BYTE_KWD #data_type_byte | INT #data_type_int | INT16 #data_type_int16 | INT32 #data_type_int32 | INT64 #data_type_int64 | REAL32 #data_type_real32 | REAL64 #data_type_real64 | NAME #data_type_name | '[' expression ']' data_type #data_type_expr_data_type ; declaration : ( data_type | channel_type | timer_type | port_type ) NAME ( ',' NAME )* ':' ; definition : DATA TYPE NAME (IS data_type | NL INDENT structured_type DEDENT ) ':' #def_DATA_Name | PROTOCOL NAME IS (simple_protocol | sequential_protocol) ':' #def_PROTOCOL_NAME_IS | PROTOCOL NAME INDENT CASE INDENT ( tagged_protocol ( NL tagged_protocol ) * ) ? DEDENT DEDENT ':' #def_PROTOCOL_NAME_INDENT | PROC NAME '(' ( formal (',' formal)* )? ')' NL ( INDENT stmt DEDENT )? ':' #def_PROC | data_type (',' data_type)* function_header NL INDENT value_process DEDENT ':' #def_function_value_process | data_type (',' data_type)* function_header IS expression_list ':' #def_function_expression_list | specifier NAME RETYPES named_operand ':' #def_specifier | specifier NAME (RETYPES | RESHAPES) named_operand ':' #def_specifier2 | VAL specifier NAME (RETYPES | RESHAPES) expression ':' #def_val ; delayed_input : named_operand '?' AFTER expression ; dyadic_operator : LTHAN | PLUS | MINUS | TIMES | DIVIDE | PLUS_MOD | MINUS_MOD | TIMES_MOD | REM | BITWISE_AND | AND_KWD | BITWISE_OR | OR_KWD | XOR | BITWISE_AND_KWD | GTHAN | REM_KWD | EQUAL | BITOR | NOTEQ | LTHANEQ | GTHANEQ | AFTER | RIGHTSHIFT | LEFTSHIFT ; expression : operand #expression_operand | monadic_operator operand #expression_monadic | operand dyadic_operator operand #expression_dyadic_operator | (MOSTPOS | MOSTNEG) data_type #expression_most_data_type | SIZE data_type #expression_size_of | conversion #expression_conversion ; expression_list : function_call #expression_list_function_call | expression ( ',' expression )* #expression_list_expressions //| '(' value_process NL ')' //todo: expression list, add new line support ; field_name : NAME ; formal : specifier NAME ( ',' NAME ) * | VAL specifier NAME ( ',' NAME ) * ; function_call : NAME '(' ( expression ( ',' expression) * ) ? ')' ; function_header : FUNCTION NAME '(' ( formal (',' formal )* )? ')' ; guard : input #guard_input | bool '&' ( input | SKIP_T ) #guard_bool_input_or_skip ; guarded_alternative : guard NL (INDENT stmt DEDENT); guarded_choice : bool NL (INDENT stmt DEDENT); input : named_operand '?' input_item ( ';' input_item ) * #input_named_operand_input_items | channel '?' CASE tagged_list #input_named_operand_tagged_list | delayed_input #input_delayed_input ; input_item : named_operand #input_item_variable | named_operand '::' named_operand #input_item_multiple_variables ; literal : INTEGER ('(' data_type ')')? #literal_integer | BYTE_LITERAL ('(' data_type ')')? #literal_byte | REAL ('(' data_type ')')? #literal_real | TRUE_LITERAL #literal_true | FALSE_LITERAL #literal_false ; loop : WHILE bool NL INDENT stmt DEDENT; monadic_operator : NOT_KWD | BITWISE_NOT | BITWISE_NOT_KWD | MINUS | MINUS_MOD | SIZE ; operand : named_operand #operand_variable | literal #operand_literal | table #operand_table | '(' expression ')' #operand_expression | '(' value_process NL ')' #operand_value_process | function_call #operand_function_call | operand '[' expression ']' #operand_operand_expression | BYTESIN '(' ( operand | data_type ) ')' #operand_bytesin | OFFSETOF '(' NAME ',' field_name ')' #operand_offsetof ; option : case_expression ( ',' case_expression ) * NL INDENT stmt DEDENT #option_case_expression_stmt | ELSE NL INDENT stmt DEDENT #option_else | specification NL option #option_spec_option ; output : named_operand '!' outputitem (';' outputitem ) * #output_named_operand_outputitems | named_operand '!' tag ( ';' outputitem ( ';' outputitem ) * ) ? #output_named_operand_tag_outputitems ; outputitem : expression #outputitem_single_expression | expression '::' expression #outputitem_multiple_expression ; parallel : PRI ? PAR suite #parallel_pripar_suite | PRI ? PAR replicator NL INDENT stmt DEDENT #parallel_pripar_replicator | placedpar #parallel_placedpar ; single_stmt : NL INDENT stmt DEDENT; suite : NL INDENT (stmt+ | simple_stmt) DEDENT ; placedpar : PLACED PAR NL INDENT placedpar ( NL placedpar ) * #placedpar_placedpars | PLACED PAR replicator NL INDENT placedpar DEDENT #placedpar_replicator_placedpar | PROCESSOR expression NL INDENT stmt DEDENT #placedpar_expression_stmt ; port_type : PORTOF data_type #port_type_data_type | '[' expression ']' port_type #port_type_expression_port_type ; proc_instance : NAME '(' ( actual (',' actual ) * ) ? ')'; protocol : NAME #protcol_name | simple_protocol #protcol_simple_protocol ; replicator : NAME EQUAL base FOR count; selection : CASE selector NL INDENT option * DEDENT ; selector : expression; sequence : SEQ suite #sequence_suite | SEQ replicator NL INDENT stmt DEDENT #sequence_replicator ; sequential_protocol : simple_protocol ( ';' simple_protocol ) *; simple_protocol : data_type #simple_protocol_data_type | ANY #simple_protocol_any | data_type '::' '['']' data_type #simple_protocol_data_type_data_type ; specification : declaration #specificationDec | abbreviation #specificationAbrv | definition #specificationDef ; specifier : data_type #specifier_data_type | channel_type #specifier_channel_type | timer_type #specifier_timer_type | port_type #specifier_port_type | '['(expression)?']'specifier #specifier_expression_specifier ; structured_type : PACKED ? RECORD NL INDENT ( single_record_declaration ) ( NL single_record_declaration) * NL DEDENT ; single_record_declaration : (data_type field_name ( ',' field_name ) * ':') ; table : STRING_LITERAL ( '(' NAME ')' ) ? #table_string | '[' expression ( ',' expression ) * ']' #table_expressions | table '[' expression ']' #table_table_expression | '[' table FROM base (FOR count) ? ']' #table_table_base_count | '[' table FOR count ']' #table_table_count ; tag : NAME; tagged_list : tag ( ';' input_item ( ';' input_item ) * ) ? ; tagged_protocol : tag ( ';' sequential_protocol ) ? ; timer_type : TIMER #timer_type_timer | '[' expression ']' timer_type #timer_expression_timer_type ; value_process : VALOF NL INDENT stmt RESULT expression_list NL DEDENT #value_process_stmt | specification NL value_process #value_process_specification ; named_operand : NAME #named_operand_name | named_operand '[' expression ']' #named_operand_expression | '[' named_operand FROM base (FOR count)? ']' #named_operand_base_count | '[' named_operand FOR count ']' #named_operand_count ; variable_list: named_operand ( ',' named_operand ) *; variant : tagged_list NL INDENT stmt DEDENT #variant_tagged_list_stmt | specification NL variant #variant_specification_variant ; // FLOW CONTROL CASE : 'CASE' ; ELSE : 'ELSE' ; FUNCTION : 'FUNCTION' ; IF : 'IF' ; PAR : 'PAR' ; PROC : 'PROC' ; SEQ : 'SEQ' ; SKIP_T : 'SKIP' ; STOP : 'STOP' ; WHILE : 'WHILE' ; // TYPES AND VARIABLES BOOL : 'BOOL' ; BYTE_KWD : 'BYTE' ; CHANOF : 'CHAN OF' ; DATA : 'DATA' ; INT : 'INT' ; INT16 : 'INT16' ; INT32 : 'INT32' ; INT64 : 'INT64' ; MOSTNEG : 'MOSTNEG' ; MOSTPOS : 'MOSTPOS' ; PACKED : 'PACKED' ; PORTOF : 'PORT OF' ; PROTOCOL : 'PROTOCOL' ; REAL32 : 'REAL32' ; REAL64 : 'REAL64' ; RECORD : 'RECORD' ; TIMER : 'TIMER' ; TYPE : 'TYPE' ; VAL : 'VAL' ; VALOF : 'VALOF' ; // OPERATORS AFTER : 'AFTER' ; AND_KWD : 'AND' ; //boolean AND BYTESIN : 'BYTESIN' ; // width, 'bytes in' BITWISE_AND_KWD : 'BITAND' ; BITWISE_NOT_KWD : 'BITNOT' ; BITOR : 'BITOR' ; MINUS_MOD : 'MINUS' ; // modulo subtraction/negation NOT_KWD : 'NOT' ; // boolean not OR_KWD : 'OR' ; //boolean OR PLUS_MOD : 'PLUS' ; // modulo addition REM_KWD : 'REM' ; // remainder ROUND : 'ROUND' ; SIZE : 'SIZE' ; TIMES_MOD : 'TIMES' ; // modulo multiplication TRUNC : 'TRUNC' ; // truncation PLUS : '+' ; MINUS : '-' ; TIMES : '*' ; DIVIDE : '/' ; // Symbols REM : '\\' ; BITWISE_AND : '/\\' ; BITWISE_OR : '\\/' ; XOR : '><' ; BITWISE_NOT : '~' ; LEFTSHIFT : '<<' ; RIGHTSHIFT : '>>' ; EQUAL : '=' ; LTHAN : '<' ; GTHAN : '>' ; LTHANEQ : '<=' ; GTHANEQ : '>=' ; NOTEQ : '<>' ; // LITERALS FALSE_LITERAL: 'FALSE' ; TRUE_LITERAL: 'TRUE' ; BYTE_LITERAL: '\'' CHARACTER '\'' ; STRING_LITERAL : '"' CHARACTER* ('*' NL '*' CHARACTER* )* '"'; INTEGER : DIGITS | '#'HEXDIGITS ; REAL : DIGITS '.' DIGITS ( 'E' EXPONENT )? ; fragment EXPONENT : ( '+' | '-' ) DIGITS ; // COMMUNICATION INPUT : '?' ; OUTPUT : '!' ; // OTHER KEYWORDS ALT : 'ALT' ; ANY : 'ANY' ; ASM : 'ASM' ; AT : 'AT' ; FOR : 'FOR'; FROM : 'FROM' ; INLINE : 'INLINE' ; IS : 'IS' ; OFFSETOF : 'OFFSETOF' ; PLACE : 'PLACE' ; PLACED : 'PLACED' ; PRI : 'PRI' ; PROCESSOR : 'PROCESSOR' ; RESHAPES : 'RESHAPES' ; RESULT : 'RESULT' ; RETYPES : 'RETYPES' ; NAME : [a-zA-Z][a-zA-Z0-9.]*; DIGITS : DIGIT+ ; HEXDIGITS : HEXDIGIT+ ; DIGIT : [0-9] ; HEXDIGIT : [0-9A-F] ; IGNORED : ( SPACES | COMMENT | LINE_JOINING ) -> skip ; fragment SPACES : [ \t]+ ; fragment COMMENT : '--' ~[\r\n]* ; fragment LINE_JOINING : '\\' SPACES? ( '\r'? '\n' | '\r' ) ; fragment CHARACTER : ~['"*] // any ASCII char | '*' ( [cC] | [nN] | [tT] | [sS] | '\'' | '"' | '*' ) // escape sequences | '*#' HEXDIGIT HEXDIGIT;
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1389.asm
ljhsiun2/medusa
9
92738
<filename>Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1389.asm .global s_prepare_buffers s_prepare_buffers: push %r13 push %r8 push %rcx push %rdi push %rsi lea addresses_normal_ht+0x10e5a, %rsi lea addresses_WT_ht+0x93d8, %rdi nop nop cmp %r8, %r8 mov $80, %rcx rep movsq nop nop nop nop xor $22086, %r13 pop %rsi pop %rdi pop %rcx pop %r8 pop %r13 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r14 push %rbp push %rcx push %rdi push %rsi // Load lea addresses_D+0x133f8, %r14 nop and $55492, %r12 movups (%r14), %xmm0 vpextrq $1, %xmm0, %r13 nop nop nop cmp %r11, %r11 // REPMOV lea addresses_RW+0x18bf8, %rsi lea addresses_A+0x166d8, %rdi nop nop inc %r11 mov $2, %rcx rep movsw nop nop mfence // Store lea addresses_WT+0x80b8, %r13 nop nop add $21222, %rsi movw $0x5152, (%r13) nop nop nop add %r14, %r14 // Faulty Load lea addresses_RW+0x18bf8, %r11 nop nop nop nop cmp $10452, %r14 movb (%r11), %r12b lea oracles, %rcx and $0xff, %r12 shlq $12, %r12 mov (%rcx,%r12,1), %r12 pop %rsi pop %rdi pop %rcx pop %rbp pop %r14 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_RW', 'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 8}} {'OP': 'REPM', 'src': {'same': True, 'congruent': 0, 'type': 'addresses_RW'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_A'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 5}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WT_ht'}} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization8_pkg2.ads
best08618/asylo
7
14350
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization8_pkg2.ads package Loop_Optimization8_Pkg2 is type Array_T is array (Natural range <>) of Integer; type Obj_T (Length : Natural) is record Elements : Array_T (1 .. Length); end record; type T is access Obj_T; function Length (Set : T) return Natural; function Index (Set : T; Position : Natural) return Integer; pragma Inline (Length, Index); end Loop_Optimization8_Pkg2;
sw/test_cases/add1.asm
JPShen-UWM/ThreadKraken
1
9677
<reponame>JPShen-UWM/ThreadKraken //simple test lbi r21 0xFF // lbi r22 0x1 add r23 r21 r22 # halt kill r1
cass.rollup/src/main/antlr4/Rollup.g4
Eduworks/ec
1
1326
/* Copyright 2015-2020 Eduworks Corporation 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. */ grammar Rollup; NUMBER : '0'..'9' + ('.' '0'..'9'+)? ; BOOLEAN : 'true' | 'false' ; LOGICAL_OPERATOR : 'AND' | 'OR' ; MATH_OPERATOR : '+' | '-' | '*' | '/' ; QUANTATIVE_OPERATOR : ':<' | ':>' | ':<=' | ':>=' | ':!=' | ':' ; WS : (' '|'\t'|'\r'|'\n')+ ; KEY : ('a'..'z'|'A'..'Z'|'.')+ ; LEFT_BRACE : '[' ; RIGHT_BRACE : ']' ; VALUE : 'http' ~' '+ ; s : token WS? (WS? cLogic=logical_or_math_operator WS? token WS?)* ; token : cNumber=NUMBER | query | cBoolean=BOOLEAN ; query : LEFT_BRACE WS? cQuery=innerquery WS? RIGHT_BRACE ; innerquery : cKey=KEY cOperator=QUANTATIVE_OPERATOR WS? (cValue=VALUE|cNumber=NUMBER) WS? (cLogic=LOGICAL_OPERATOR WS? innerquery)* ; logical_or_math_operator : cLogic=LOGICAL_OPERATOR | cMath=MATH_OPERATOR ;
programs/oeis/333/A333320.asm
karttu/loda
1
179376
; A333320: a(n) is the number of subsets of {1..n} that contain exactly 4 odd and 1 even numbers. ; 0,0,0,0,0,0,0,3,4,20,25,75,90,210,245,490,560,1008,1134,1890,2100,3300,3630,5445,5940,8580,9295,13013,14014,19110,20475,27300,29120,38080,40460,52020,55080,69768,73644,92055,96900,119700,125685,153615,160930,194810,203665,244398,255024,303600,316250,373750,388700,456300,473850,552825,573300,665028,688779,794745,822150,943950,975415,1114760,1150720,1309440,1350360,1530408,1576784,1780240,1832600,2061675,2120580,2377620,2443665,2731155,2804970,3125538,3207789,3564210,3655600,4050800,4152070,4589130,4701060,5183220,5306630,5837293,5973044,6555780,6704775,7343325,7506510,8204790,8383155,9145260,9339840,10170048,10381924,11284700,11515000,12495000,12744900,13806975,14077700,15226900,15519725,16761303,17077554,18416970,18758025,20200950,20568240,22120560,22515570,24183390,24607660,26397308,26852434,28770465,29258100,31311300,31833155,34028545,34586390,36931230,37526895,40028688,40664064,43330560,44007600,46846800,47567520,50587680,51354160,54563795,55378180,58786068,59650569,63265755,64182650,68014450,68986085,73044090,74072880,78366960,79455390,83995698,85146324,89943300,91158750,96223125,97506100,102848900,104202175,109834725,111261150,117195078,118697579,124944820,126526400,133099200,134762940,141673860,143422920,150684840,152522460,160148583,162078084,170081940,172106725,180502175,182625730,191426970,193652865,202874430,205206320,214863088,217304714,227411910,229967100,240540300,243212970,254268105,257062260,268615620,271535355,283603593,286653094,299253230,302436775,315586200,318908160,332624640,336089480,350391160,354003440,368908848,372673224,388201275,392122500,408292500,412375425,429207075,433456650,450970050,455391325,473606978,478205104,497143920,501924150,521607450,526575140,547024660,552185270,573423165,578782260,600831108,606394359,629277165,635050350,658790550,664779555,689401020,695611840,721138880,727577620,754034988,760707864,788120760,795034100,823428175,830588420,859989780,867403485,897838695,905512530,937008618,944949369,977533830,985748400,1019449200,1027944610,1062790190,1071573580,1107592860,1116671490,1153893873,1163275124,1201730500 mov $1,$0 div $0,2 sub $1,$0 bin $1,4 mul $1,$0
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/oalign1.ads
best08618/asylo
7
14492
<gh_stars>1-10 package Oalign1 is Klunk1 : Integer := 12; for Klunk1'Alignment use Standard'Maximum_Alignment; end;
programs/oeis/274/A274104.asm
karttu/loda
1
163554
<reponame>karttu/loda ; A274104: a(n) = Sum_{k=0..n} (3*k+2)*Catalan(k). ; 2,7,23,78,274,988,3628,13495,50675,191673,729145,2786655,10691111,41150011,158825371,614483086,2382366586,9253540456,36001307656,140269835866,547245301906,2137552658206,8358366985726,32715599554876,128168506456852,502538379368656,1971926625140816,7743211351169148 mul $0,2 mov $1,$0 add $1,1 cal $1,36256 ; a(n) = Sum_{i=0..n} binomial(i,floor(i/2)).
libsrc/math/z88math/atof.asm
Toysoft/z88dk
8
241797
; ; ; Z88 Maths Routines ; ; C Interface for Small C+ Compiler ; ; 30/1/20001 djm ;double atof(char *) - convert string to number, leave in fa SECTION code_fp INCLUDE "fpp.def" PUBLIC atof EXTERN stkequ2 .atof pop de pop hl ;the string push hl push de fpp(FP_VAL) jp stkequ2
src.orig/src/x_replier-untyped_impl.ads
persan/dds-requestreply
0
5574
<gh_stars>0 package Replier.Untyped_Impl is type Ref is new Replier.RTI_Connext_Replier with record null; end record; procedure RTI_Connext_EntityUntypedImpl_Wait_For_Any_Sample (Self : not null access Ref; Min_Count : DDS.Natural; Max_Wait : out DDS.Duration_T); function RTI_Connext_ReplierUntypedImpl_Create_Writer_Topic (Self : RTI_Connext_EntityUntypedImpl; Params : RTI_Connext_EntityParams; Reply_Type_Name : DDS.String) return DDS.Topic.Ref_Access; function RTI_Connext_ReplierUntypedImpl_Create_Reader_Topic (Self : RTI_Connext_EntityUntypedImpl; Params : RTI_Connext_EntityParams; Request_Type_Name : DDS.String) return DDS.Topic.Ref_Access; end Replier.Untyped_Impl;
cmd/command/tparse.asm
minblock/msdos
0
100383
page ,132 ; SCCSID = @(#)tparse.asm 4.1 87/04/28 ; SCCSID = @(#)tparse.asm 4.1 87/04/28 TITLE COMMAND interface to SYSPARSE ;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ .xlist .xcref include comsw.asm include comseg.asm ;an000; .list .cref TRANSPACE SEGMENT PUBLIC BYTE ;AN000; CmpxSW equ 0 ;AN000; do not check complex list KeySW equ 0 ;AN000; do not support keywords Val2SW equ 0 ;AN000; do not Support value definition 2 IncSW equ 0 ;AN000; do not include psdata.inc QusSW equ 0 ;AN025; do not include quoted string LFEOLSW equ 0 ;AN044; do not use 0ah as line terminator .xlist .xcref include psdata.inc ;AN000; .list .cref TRANSPACE ENDS ;AN000; TRANCODE SEGMENT PUBLIC BYTE ;AN000; ASSUME CS:TRANGROUP,DS:NOTHING,ES:NOTHING,SS:NOTHING ;AN054; ; **************************************************************** ; * ; * ROUTINE: CMD_PARSE ; * ; * FUNCTION: Interface for transient COMMAND to invoke ; * SYSPARSE. ; * ; * INPUT: inputs to SYSPARSE ; * ; * OUTPUT: outputs from SYSPARSE ; * ; **************************************************************** public Cmd_parse ;AN000; .xlist .xcref INCLUDE parse.asm ;AN000; .list .cref Cmd_parse Proc near ;AN000; call sysparse ;AN000; ret ;AN000; Cmd_parse endp ;AN000; public Append_parse ;AN010; Append_parse Proc Far ;AN010; call sysparse ;AN010; ret ;AN010; Append_parse endp ;AN010; trancode ends ;AN000; end ;AN000; 
src/test/resources/testData/codeinsight/set_var.scpt
stigger/AppleScript-IDEA
18
4057
<filename>src/test/resources/testData/codeinsight/set_var.scpt<gh_stars>10-100 set myVar to 123 get myVar<caret>
programs/oeis/162/A162255.asm
jmorken/loda
1
1378
; A162255: a(n) = 2*a(n-2) for n > 2; a(1) = 3, a(2) = 2. ; 3,2,6,4,12,8,24,16,48,32,96,64,192,128,384,256,768,512,1536,1024,3072,2048,6144,4096,12288,8192,24576,16384,49152,32768,98304,65536,196608,131072,393216,262144,786432,524288,1572864,1048576,3145728,2097152 mov $1,3 mov $2,1 lpb $0 sub $0,1 mul $2,2 mov $3,$1 mov $1,$2 mov $2,$3 lpe
Task/Factorial/Ada/factorial-1.ada
LaudateCorpus1/RosettaCodeData
1
11804
function Factorial (N : Positive) return Positive is Result : Positive := N; Counter : Natural := N - 1; begin for I in reverse 1..Counter loop Result := Result * I; end loop; return Result; end Factorial;
src/dos32a/loader.asm
amindlost/dos32a
5
2269
; ; Copyright (C) 1996-2006 by <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: ; ; 1. Redistributions of source code must retain the above copyright ; notice, this list of conditions and the following disclaimer. ; ; 2. Redistributions in binary form must reproduce the above copyright ; notice, this list of conditions and the following disclaimer in the ; documentation and/or other materials provided with the distribution. ; ; 3. The end-user documentation included with the redistribution, if any, ; must include the following acknowledgment: ; ; "This product uses DOS/32 Advanced DOS Extender technology." ; ; Alternately, this acknowledgment may appear in the software itself, if ; and wherever such third-party acknowledgments normally appear. ; ; 4. Products derived from this software may not be called "DOS/32A" or ; "DOS/32 Advanced". ; ; THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS" AND ANY EXPRESSED ; 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 AUTHORS OR COPYRIGHT HOLDERS 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. ; ; ;***************************************************************************** ; DOS/32A 32-bit application loader (LE/LX style file formats) ; ;***************************************************************************** PushState APP_MAXOBJECTS = 64 .386p ;============================================================================= load_le_app: mov _app_type,0 jmp load_application load_lx_app: mov _app_type,1 jmp load_application load_lc_app: mov _app_type,2 ;============================================================================= load_application: call load_header ; load 'LE'/'LX' exec header call verbose_showloadhdr mov ecx,1 ; start with Object #1 @@1: call load_object ; load object call create_selector ; allocate selector for loaded object call verbose_showloadobj push edx ; save Object Selector/Object Flags push edi ; save Address of loaded Object push esi ; save Page Table Index push ebx ; save # Page Table Entries inc cx ; increment Current_Object# cmp cx,word ptr _app_num_objects jbe @@1 ; loop until all objects are loaded call preload_fixups ; preload fixup tables and records mov ebp,esp ; base pointer to last loaded Object mov ebx,_app_num_objects ; number of Objects dec bx shl bx,4 mov _app_tmp_addr1,ebx @@4: call relocate_object sub bx,10h jnc @@4 call unload_fixups ; free allocated memory for fixups call close_exec ; close file mov esp,_sel_esp call verbose_showstartup jmp enter_32bit_code ;----------------------------------------------------------------------------- load_header: mov ecx,0A8h ; load 'LE' header mov edx,04h mov _err_code,3002h ; "error in app file" cmp _app_type,2 jz load_lc_header call load_fs_block mov edx,_exec_start mov ax,fs:[0010h] ; get Module Flags and ax,2000h ; check if not-loadable;/no-fixups mov ax,3005h jnz file_error mov ax,fs:[0044h] ; get # Objects mov cx,ax cmp ax,APP_MAXOBJECTS mov ax,4001h ; "too many objects" ja file_error mov _app_num_objects,ecx mov eax,fs:[0040h] ; get Object Table Offset add eax,edx mov _app_off_objects,eax mov eax,fs:[0048h] ; get Object PageTable Offset add eax,edx mov _app_off_objpagetab,eax mov eax,fs:[0068h] ; get Fixup PageTable Offset add eax,edx mov _app_off_fixpagetab,eax mov eax,fs:[006Ch] ; get Fixup Record Table Offset add eax,edx mov _app_off_fixrectab,eax mov eax,fs:[0080h] ; get Data Pages Offset add _app_off_datapages,eax mov eax,fs:[0018h] ; get EIP Object # mov _app_eip_object,eax mov eax,fs:[0020h] ; get ESP Object # mov _app_esp_object,eax mov eax,fs:[001Ch] ; get EIP mov _app_eip,eax mov eax,fs:[0024h] ; get ESP mov _app_esp,eax mov eax,fs:[0030h] ; get Fixup Records Size mov _app_siz_fixrecstab,eax mov eax,fs:[002Ch] ; get Bytes on Last Page (LE-only) mov _app_siz_lastpage,eax mov eax,0FFFh cmp _app_type,0 jz @@done mov ax,1 mov cx,fs:[002Ch] ; get Page Offset Shift for LX-type shl ax,cl ; max shift is 15 (8000h-1) dec ax @@done: mov _app_off_pageshift,eax ret ;----------------------------------------------------------------------------- load_object: push ecx cmp _app_type,2 jz load_lc_object mov _err_code,3002h ; "error in app file" mov edx,_app_off_objects call seek_from_start ; move to object header mov ecx,18h xor edx,edx call load_fs_block ; load object header add _app_off_objects,eax mov edx,_app_off_datapages ; get Data_Pages_Offset call seek_from_start ; move to object data mov eax,fs:[0000h] ; get Virtual_Size[Object] mov ebx,fs:[0010h] ; get # Page Table Entries mov ecx,fs:[0008h] ; get Flags[Object] mov esi,fs:[000Ch] ; get Page Table Index push ecx ; save Object Flags call alloc_block ; allocate EAX memory block to EDI mov ecx,eax ; ECX = bytes to read mov ebp,eax ; EBP = preserve Virtual Size mov edx,edi ; EDX = addres to read to call fill_zero_pages ; fill allocated memory with zeroes mov eax,ebx test eax,eax ; check if # Page Table Entries = 0 jz @@5 ; if yes, skip loading shl eax,12 ; convert # Page Table Entries to bytes cmp eax,ecx ; check if # bytes >= bytes to load jae @@1 ; if yes, jump mov ecx,eax ; else adjust number of bytes to read @@1: mov ax,[esp+4] ; get Object # cmp ax,word ptr _app_num_objects jnz @@3 cmp _app_type,0 jnz @@2 lea ecx,[ebx-1] ; load LE-style Last Object (BSS) shl ecx,12 add ecx,_app_siz_lastpage jmp @@3 @@2: mov ecx,ebx ; load LX-style Last Object (BSS) shl ecx,12 @@3: mov _err_code,3002h ; "error in app file" call load_gs_block ; load object data mov eax,ecx mov edx,_app_off_pageshift test eax,edx jz @@4 mov ecx,edx not edx and eax,edx lea eax,[eax+ecx+1] @@4: add _app_off_datapages,eax @@5: pop edx ; restore Object Flags @@done: pop ecx ret ;============================================================================= relocate_object: xor eax,eax cmp eax,[ebp+ebx+0] ; get # Page Table Entries[Object] jnz @@0 ; if zero, done ret @@0: cmp _app_type,0 jnz relocate_lx_object relocate_le_object: mov ecx,[ebp+ebx+4] ; get Page Table Index mov edx,_app_off_objpagetab ; get Object Page Table Offset in exec lea edx,[ecx*4+edx-4] mov _err_code,3002h ; "error in app file" call seek_from_start ; *1) move file ptr @@1: push eax ; EAX = counter mov ecx,4 xor edx,edx mov _err_code,3002h ; "error in app file" call load_fs_block ; load block xor ecx,ecx ; get index into FixupPageTab mov ch,fs:[0001h] mov cl,fs:[0002h] jcxz @@2 mov eax,_app_off_fixpagetab ; get Fixup Page Table Offset lea eax,[ecx*4+eax-4] mov esi,gs:[eax+00h] ; get offset of 1st fixup table mov ecx,gs:[eax+04h] ; get offset of 2nd fixup table sub ecx,esi ; calculate size of 1st tab jz @@2 ; if 1st == 2nd, no fixups add esi,_app_off_fixrectab ; get Fixup Record Table Offset mov edi,[esp] ; get current page number shl edi,12 add edi,[ebp+ebx+8] ; address of page target to fix in mem add ecx,esi call apply_fixups ; patch target with fixup data @@2: pop eax inc ax cmp ax,word ptr [ebp+ebx+0] jb @@1 ret relocate_lx_object: mov ecx,[ebp+ebx+4] ; get Page Table Index mov edx,_app_off_fixpagetab ; get Fixup Page Table Offset lea edx,[ecx*4+edx-4] @@1: push eax edx ; EAX = counter mov esi,gs:[edx+00h] ; get offset of 1st fixup table mov ecx,gs:[edx+04h] ; get offset of 2nd fixup table sub ecx,esi ; calculate size of 1st tab jz @@2 ; if 1st == 2nd, no fixups add esi,_app_off_fixrectab ; get Fixup Record Table Offset mov edi,[esp+4] ; get current page number shl edi,12 add edi,[ebp+ebx+8] ; address of page target to fix in mem add ecx,esi call apply_fixups ; patch target with fixup data @@2: pop edx eax add edx,4 inc ax cmp ax,word ptr [ebp+ebx+0] jb @@1 ret ;============================================================================= apply_fixups: @@0: push ecx edi mov _err_code,4005h ; "unrecognized fixup data" mov cx,gs:[esi+0] ; get SRC/FLAGS movsx edx,word ptr gs:[esi+2] ; get SRCOFF movzx eax,word ptr gs:[esi+4] ; get OBJNUM add edi,edx ; calculate dest addr to be fixed test cx,0F20h ; SrcLists/Imports not supported jnz file_errorm ; jump if one of these test cx,4000h ; test if 16bit object number jnz @@1 ; if yes, jump mov ah,0 dec esi @@1: add esi,6 dec eax ; Object Number - 1 shl eax,4 mov edx,_app_tmp_addr1 sub edx,eax jc file_errorm mov _app_tmp_addr2,edx mov edx,[ebp+edx+8] ; EDX = Destination Object Address mov al,cl and al,0Fh cmp al,02h ; check if 16bit Selector jz @@3 ; if yes, jump cmp al,08h ja file_errorm mov eax,gs:[esi] test cx,1000h ; check for Alias flag jnz @@2 ; if not, jump movzx eax,ax sub esi,2 @@2: add esi,4 @@3: cmp cl,07h jnz @@4 add eax,edx mov gs:[edi+0],eax @@5: pop edi ecx cmp esi,ecx jb @@0 ret @@4: push si mov si,cx and si,0Fh add si,si mov _err_code,4006h ; "16bit fixup overflow" call fix_tab[si] pop si jmp @@5 ; ; EAX = Data ; EDX = Address of Object ; EDI = Address to Fixup ; EBP:EBX = Ptr to Current Object Table ;----------------------------------------------------------------------------- fix_byte: mov gs:[edi+0],al ret fix_16off: mov gs:[edi+0],ax ret fix_32off: add eax,edx mov gs:[edi+0],eax ret fix_32selfrel: add eax,edx lea ecx,[edi+4] sub eax,ecx test word ptr [ebp+ebx+12],2000h jnz @@1 lea ecx,[eax+8002h] shr ecx,16 jnz file_errorm mov gs:[edi+0],ax ret @@1: mov gs:[edi+0],eax ret fix_16sel: call check_range mov gs:[edi+0],dx ret fix_1616ptr: call check_range mov gs:[edi+0],ax mov gs:[edi+2],dx ret fix_1632ptr: add eax,edx mov gs:[edi+0],eax call check_range mov gs:[edi+4],dx ret fix_invalid: mov ax,4005h ; "unrecognized fixup data" jmp file_error check_range: test word ptr [ebp+ebx+12],1000h ; check if 16:16 alias requird jnz @@1 ; if yes, jump test cl,10h jnz @@1 @@0: mov ecx,_app_tmp_addr2 mov dx,[ebp+ecx+14] ; get selector ret @@1: test cl,10h jz @@0 mov ecx,_app_tmp_addr2 mov dx,[ebp+ecx+14] ; get selector test eax,0FFFF0000h ; check 64K range jnz file_errorm ret evendata fix_tab label word dw fix_byte ; 00h dw fix_invalid ; 01h dw fix_16sel ; 02h dw fix_1616ptr ; 03h dw fix_invalid ; 04h dw fix_16off ; 05h dw fix_1632ptr ; 06h dw fix_32off ; 07h dw fix_32selfrel ; 08h ;----------------------------------------------------------------------------- ; In: ECX = size ; Out: EDI = address ; fill_zero_pages: push es dx eax ecx edi push gs pop es mov dl,cl shr ecx,2 xor eax,eax rep stos dword ptr es:[edi] mov cl,dl and cl,3 rep stos byte ptr es:[edi] pop edi ecx eax dx es ret ;----------------------------------------------------------------------------- ; In: EAX = size ; Out: EDI = address ; alloc_block: push dx test eax,eax ; if size of Object is zero jz @@null ; then report a warning 9005 mov dl,_misc_byte ; get misc byte shr dx,4 ; get memory alloc bits in bit1,0 and dx,3 ; mask them jz @@00 ; if 00b alloc scheme, jump dec dx jz @@01 dec dx jz @@10 dec dx jz @@11 @@done: pop dx ret @@null: push ax si mov si,[esp+0Ch] mov ax,9005h call report_error pop si ax dx xor edi,edi ret ; ; load 16bit/32bit -> low, then high, then error ;--------------------------------------- @@00: call alloc_dos_mem ; try to allocate DOS memory block jnc @@done ; if allocated, jump mov _err_code,4003h ; "not enough DPMI mem" call alloc_dpmi_mem ; try to allocate DPMI memory block jnc @@done ; if allocated, jump jmp file_errorm ; if failed, error ; ; load 16bit -> low, then high, then error ; load 32bit -> high only, then error ;--------------------------------------- @@01: test cx,2000h ; check if 32bit Object jnz @@01_1 ; if yes, jump mov _err_code,4002h ; "not enough DOS mem" call alloc_dos_mem jnc @@done ; if allocated, jump @@01_1: mov _err_code,4003h ; "not enough DPMI mem" call alloc_dpmi_mem jnc @@done ; if allocated, jump jmp file_errorm ; if failed, error ; ; load 16bit/32bit low, then error ;--------------------------------------- @@10: mov _err_code,4002h ; "not enough DOS mem" call alloc_dos_mem jnc @@done jmp file_errorm ; if failed, error ; ; load 16bit/32bit high, then error ;--------------------------------------- @@11: mov _err_code,4003h ; "not enough DPMI mem" call alloc_dpmi_mem jnc @@done jmp file_errorm ; if failed, error ;----------------------------------------------------------------------------- alloc_dos_mem: push eax ebp ; EAX = size to allocate add eax,0Fh ; align size on para shr eax,4 test eax,0FFFF0000h ; check high word of EAX stc jnz @@done sub esp,32h mov ebp,esp mov byte ptr [ebp+1Dh],48h ; DOS func: AH=48h mov word ptr [ebp+10h],ax ; DOS BX=size call int21h movzx edi,word ptr [ebp+1Ch] ; get returned value in EAX shl edi,4 ; NOTE: addres is relative to 0 bt word ptr [ebp+20h],0 ; check for errors lea esp,[esp+32h] @@done: pop ebp eax ret ;----------------------------------------------------------------------------- alloc_dpmi_mem: push esi ebx ecx edx eax mov ebx,eax mov ax,0FF91h ; allocate DPMI memory int 21h jc @@done mov eax,ebx xor edx,edx test _misc_byte2,00000100b ; check if para or page alignment jnz @@l1 test al,0Fh jz @@1 jmp @@l2 @@l1: test ax,0FFFh ; check if returned addr aligned jz @@1 ; on PAGE boundary, if yes, jump @@l2: test _misc_byte2,00000100b jnz @@l3 add ebx,0Fh and bl,0F0h jmp @@l4 @@l3: add ebx,0FFFh and bx,0F000h ; align linear addr on PAGE boundary @@l4: sub ebx,eax ; calculate difference mov edx,ebx add ebx,[esp] mov ax,0FF93h ; resize DPMI memory block int 21h jc @@done @@1: lea edi,[ebx+edx] ; adjust linear address test _misc_byte2,00000100b jnz @@l5 test di,000Fh jmp @@l6 @@l5: test di,0FFFh @@l6: stc jnz @@done clc @@done: pop eax edx ecx ebx esi ret ;----------------------------------------------------------------------------- create_selector: push ebx ecx edx esi edi mov ax,dx mov ecx,ebp ; ECX = Virtual Size[Object] mov dx,_acc_rights ; default: PAGE, USE32, DATA test al,0004h ; check if object is executable jz @@1 ; if not, jump or dl,0008h ; set selector to Code @@1: test ax,2000h ; check if object is 32bit jz @@2 ; if not, jump xor edi,edi ; set base to Zero or ecx,-1 ; set limit to 4Gb test al,0004h ; check if code or data Object mov ax,_sel32_cs ; AX = 32bit code selector jnz @@0 ; if code, then jump mov ax,_sel32_ss ; AX = 32bit data selector @@0: test ax,ax ; check if already allocated jnz @@4 ; if yes, use this selector jmp @@3 @@2: and dx,0BFFFh ; set selector to 16bit @@3: call set_descriptor ; allocate selector jc dpmi_error @@4: pop edi esi mov [esp+2],ax ; store selector in high word of EDX pop edx ecx ebx mov _app_buf_allocsel[ecx*2],ax mov _app_buf_allocbase[ecx*4],edi cmp cx,word ptr _app_eip_object; is Current_Object# == EIP_Object# jnz @@l1 ; if not, jump mov _sel32_cs,ax mov _unreloc_eip,edi test dx,2000h ; check if Object is 32bit jz @@l1 ; if not, leave _APP_EIP as is add _app_eip,edi @@l1: cmp cx,word ptr _app_esp_object; is Current_Object# == ESP_Object# jnz @@l2 ; if not, jump mov _sel32_ss,ax mov _unreloc_esp,edi add _app_esp,edi ; adjust ESP @@l2: ret preload_fixups: cmp _app_type,2 jz preload_lc_fixups mov ebx,_app_siz_fixrecstab ; allocate memory for fixups mov _app_load,0 ; default load fixups low mov ax,0FF95h int 21h jnc @@1 mov _app_load,1 ; try load fixups hi mov al,91h int 21h mov ax,4004h jc file_error ; if not enough memory, error @@1: mov _app_buf_fixrecstab,esi mov _err_code,3002h ; "error in app file" mov edx,_app_off_fixpagetab ; move file ptr to fixups call seek_from_start mov edx,ebx mov ecx,_app_siz_fixrecstab call load_gs_block mov eax,_app_off_fixrectab mov ebx,_app_off_fixpagetab sub eax,ebx add eax,edx mov _app_off_fixpagetab,edx mov _app_off_fixrectab,eax ret unload_fixups: cmp _app_type,2 jz unload_lc_fixups mov esi,_app_buf_fixrecstab mov ax,0FF96h cmp _app_load,0 jz @@1 mov al,92h @@1: int 21h ret PopState
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sdcc/___schar2fs_callee.asm
jpoikela/z88dk
0
98036
SECTION code_fp_math32 PUBLIC ___schar2fs_callee EXTERN cm32_sdcc___schar2fs_callee defc ___schar2fs_callee = cm32_sdcc___schar2fs_callee
libsrc/_DEVELOPMENT/stdio/c/sdcc_iy/feof_unlocked.asm
meesokim/z88dk
0
9344
; int feof_unlocked(FILE *stream) SECTION code_stdio PUBLIC _feof_unlocked EXTERN asm_feof_unlocked _feof_unlocked: pop af pop ix push hl push af jp asm_feof_unlocked
src/numerics-sparse_matrices-permute.adb
sciencylab/lagrangian-solver
0
11448
separate (Numerics.Sparse_Matrices) function Permute (Mat : in Sparse_Matrix; P : in Int_Array; By : in Permute_By_Type := Column) return Sparse_Matrix is begin pragma Assert (Mat.Format = CSC); case By is when Column => return Permute_By_Col (Mat, P); when Row => return Transpose (Permute_By_Col (Transpose (Mat), P)); end case; end Permute;
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/printf16.asm
gb-archive/really-old-stuff
10
19850
<reponame>gb-archive/really-old-stuff #include once <printnum.asm> #include once <printi16.asm> #include once <neg32.asm> __PRINTF16: ; Prints a 32bit 16.16 fixed point number PROC LOCAL __PRINT_FIX_LOOP LOCAL __PRINTF16_2 bit 7, d jr z, __PRINTF16_2 call __NEG32 call __PRINT_MINUS __PRINTF16_2: push hl ex de, hl call __PRINTU16 ; Prints integer part pop hl ld a, h or l ret z ; Returns if integer push hl ld a, '.' call __PRINT_DIGIT ; Prints decimal point pop hl __PRINT_FIX_LOOP: ld a, h or l ret z ; Returns if no more decimals xor a ld d, h ld e, l ; Fast NUM * 10 multiplication add hl, hl ; adc a, a ; AHL = AHL * 2 (= X * 2) add hl, hl ; adc a, a ; AHL = AHL * 2 (= X * 4) add hl, de ; adc a, 0 ; AHL = AHL + DE (= X * 5) add hl, hl adc a, a ; AHL = AHL * 2 (= X * 10) push hl or '0' call __PRINT_DIGIT pop hl jp __PRINT_FIX_LOOP ENDP
libsrc/math/mbf32/c/sccz80/modf.asm
ahjelm/z88dk
640
19310
SECTION code_fp_mbf32 PUBLIC modf EXTERN floor EXTERN ceil EXTERN msbios EXTERN ___mbf32_SUBCDE EXTERN ___mbf32_FPREG EXTERN l_glong EXTERN ___mbf32_return ; double modf(double value, double *iptr) modf: ld hl,4 add hl,sp call l_glong IF __CPU_INTEL__ ld a,e rra jp c,isnegative ELSE bit 7,e jr nz,isnegative ENDIF push de push hl call floor pop bc pop bc jr rejoin isnegative: push de push hl call ceil pop bc pop bc rejoin: ld c,l ld b,h ld hl,2 add hl,sp ld a,(hl) inc hl ld h,(hl) ld l,a ; Now store the float ld (hl),c inc hl ld (hl),b inc hl ld (hl),e inc hl ld (hl),d IF __CPU_INTEL__ ex de,hl ld (___mbf32_FPREG+2),hl ld l,c ld h,b ld (___mbf32_FPREG),hl ELIF __CPU_GBZ80__ ld hl,___mbf32_FPREG ld (hl),c inc hl ld (hl),b inc hl ld (hl),e inc hl ld (hl),d ELSE ld (___mbf32_FPREG),bc ld (___mbf32_FPREG+2),de ENDIF ld hl,4 add hl,sp ld e,(hl) inc hl ld d,(hl) inc hl ld c,(hl) inc hl ld b,(hl) IF __CPU_INTEL__ call ___mbf32_SUBCDE ld hl,(___mbf32_FPREG+2) ex de,hl ld hl,(___mbf32_FPREG) ELIF __CPU_GBZ80__ call ___mbf32_SUBCDE ld hl,___mbf32_FPREG+3 ld d,(hl) dec hl ld e,(hl) dec hl ld a,(hl-) ld l,(hl) ld h,a ELSE push ix ld ix,___mbf32_SUBCDE call msbios pop ix ld hl,(___mbf32_FPREG) ld de,(___mbf32_FPREG+2) ENDIF ; Now flip the sign ld a,e xor $80 ld e,a ret
programs/oeis/016/A016866.asm
neoneye/loda
22
88733
; A016866: (5n+1)^6. ; 1,46656,1771561,16777216,85766121,308915776,887503681,2176782336,4750104241,9474296896,17596287801,30840979456,51520374361,82653950016,128100283921,192699928576,282429536481 mul $0,5 add $0,1 pow $0,6
macros/legacy.asm
AtmaBuster/pokeplat-gen2
6
16217
<gh_stars>1-10 ; Legacy support for old pokecrystal. ; Allows porting scripts with as few edits as possible. ; Legacy support not in this file can be found by looking for the keyword: "LEGACY" ; macros/rst.asm callba EQUS "farcall" callab EQUS "callfar" ; macros/scripts/events.asm checkmorn EQUS "checktime MORN" checkday EQUS "checktime DAY" checknite EQUS "checktime NITE" jump EQUS "sjump" ;farjump EQUS "farsjump" priorityjump EQUS "sdefer" prioritysjump EQUS "sdefer" ptcall EQUS "memcall" ptjump EQUS "memjump" ptpriorityjump EQUS "stopandsjump" ptcallasm EQUS "memcallasm" if_equal EQUS "ifequal" if_not_equal EQUS "ifnotequal" if_greater_than EQUS "ifgreater" if_less_than EQUS "ifless" end_all EQUS "endall" checkmaptriggers EQUS "checkmapscene" domaptrigger EQUS "setmapscene" checktriggers EQUS "checkscene" dotrigger EQUS "setscene" faceperson EQUS "faceobject" moveperson EQUS "moveobject" writepersonxy EQUS "writeobjectxy" spriteface EQUS "turnobject" objectface EQUS "turnobject" applymovement2 EQUS "applymovementlasttalked" writebyte EQUS "setval" addvar EQUS "addval" copybytetovar EQUS "readmem" copyvartobyte EQUS "writemem" checkcode EQUS "readvar" writevarcode EQUS "writevar" writecode EQUS "loadvar" MEM_BUFFER_0 EQUS "STRING_BUFFER_3" MEM_BUFFER_1 EQUS "STRING_BUFFER_4" MEM_BUFFER_2 EQUS "STRING_BUFFER_5" vartomem EQUS "getnum" mapnametotext EQUS "getcurlandmarkname" readcoins EQUS "getcoins" pokenamemem: MACRO getmonname \2, \1 ENDM itemtotext: MACRO getitemname \2, \1 ENDM landmarktotext: MACRO getlandmarkname \2, \1 ENDM trainertotext: MACRO gettrainername \3, \1, \2 ENDM trainerclassname: MACRO gettrainerclassname \2, \1 ENDM name: MACRO getname \3, \1, \2 ENDM stringtotext: MACRO getstring \2, \1 ENDM readmoney: MACRO getmoney \2, \1 ENDM RAM2MEM EQUS "getnum" loadfont EQUS "opentext" loadmenudata EQUS "loadmenu" loadmenuheader EQUS "loadmenu" writebackup EQUS "closewindow" interpretmenu EQUS "_2dmenu" interpretmenu2 EQUS "verticalmenu" battlecheck EQUS "randomwildmon" loadtrainerdata EQUS "loadtemptrainer" loadpokedata EQUS "loadwildmon" returnafterbattle EQUS "reloadmapafterbattle" trainerstatus EQUS "trainerflagaction" talkaftercancel EQUS "endifjustbattled" talkaftercheck EQUS "checkjustbattled" playrammusic EQUS "encountermusic" reloadmapmusic EQUS "dontrestartmapmusic" resetfuncs EQUS "endall" storetext EQUS "battletowertext" displaylocation EQUS "landmarktotext" givepokeitem EQUS "givepokemail" checkpokeitem EQUS "checkpokemail" passtoengine EQUS "autoinput" verbosegiveitem2 EQUS "verbosegiveitemvar" loadbytec2cf EQUS "writeunusedbytebuffer" ; macros/scripts/maps.asm mapconst: MACRO map_const \1, \3, \2 ENDM maptrigger EQUS "scene_script" warp_def: MACRO warp_event \2, \1, \4, \3 ENDM xy_trigger: MACRO coord_event \3, \2, \1, \5 ENDM signpost: MACRO bg_event \2, \1, \3, \4 ENDM person_event: MACRO ; object_event \3, \2, \1, \4, \5, \6, \7, \8, \9, \10, \11, \12, \13 db \1, \2 + 4, \3 + 4, \4 dn \6, \5 db \7, \8 shift dn \8, \9 shift db \9 shift dw \9 shift dw \9 ENDM PERSONTYPE_SCRIPT EQUS "OBJECTTYPE_SCRIPT" PERSONTYPE_ITEMBALL EQUS "OBJECTTYPE_ITEMBALL" PERSONTYPE_TRAINER EQUS "OBJECTTYPE_TRAINER" ; macros/scripts/movement.asm show_person EQUS "show_object" hide_person EQUS "hide_object" remove_person EQUS "remove_object" turn_head_down EQUS "turn_head DOWN" turn_head_up EQUS "turn_head UP" turn_head_left EQUS "turn_head LEFT" turn_head_right EQUS "turn_head RIGHT" turn_step_down EQUS "turn_step DOWN" turn_step_up EQUS "turn_step UP" turn_step_left EQUS "turn_step LEFT" turn_step_right EQUS "turn_step RIGHT" slow_step_down EQUS "slow_step DOWN" slow_step_up EQUS "slow_step UP" slow_step_left EQUS "slow_step LEFT" slow_step_right EQUS "slow_step RIGHT" step_down EQUS "step DOWN" step_up EQUS "step UP" step_left EQUS "step LEFT" step_right EQUS "step RIGHT" big_step_down EQUS "big_step DOWN" big_step_up EQUS "big_step UP" big_step_left EQUS "big_step LEFT" big_step_right EQUS "big_step RIGHT" slow_slide_step_down EQUS "slow_slide_step DOWN" slow_slide_step_up EQUS "slow_slide_step UP" slow_slide_step_left EQUS "slow_slide_step LEFT" slow_slide_step_right EQUS "slow_slide_step RIGHT" slide_step_down EQUS "slide_step DOWN" slide_step_up EQUS "slide_step UP" slide_step_left EQUS "slide_step LEFT" slide_step_right EQUS "slide_step RIGHT" fast_slide_step_down EQUS "fast_slide_step DOWN" fast_slide_step_up EQUS "fast_slide_step UP" fast_slide_step_left EQUS "fast_slide_step LEFT" fast_slide_step_right EQUS "fast_slide_step RIGHT" turn_away_down EQUS "turn_away DOWN" turn_away_up EQUS "turn_away UP" turn_away_left EQUS "turn_away LEFT" turn_away_right EQUS "turn_away RIGHT" turn_in_down EQUS "turn_in DOWN" turn_in_up EQUS "turn_in UP" turn_in_left EQUS "turn_in LEFT" turn_in_right EQUS "turn_in RIGHT" turn_waterfall_down EQUS "turn_waterfall DOWN" turn_waterfall_up EQUS "turn_waterfall UP" turn_waterfall_left EQUS "turn_waterfall LEFT" turn_waterfall_right EQUS "turn_waterfall RIGHT" slow_jump_step_down EQUS "slow_jump_step DOWN" slow_jump_step_up EQUS "slow_jump_step UP" slow_jump_step_left EQUS "slow_jump_step LEFT" slow_jump_step_right EQUS "slow_jump_step RIGHT" jump_step_down EQUS "jump_step DOWN" jump_step_up EQUS "jump_step UP" jump_step_left EQUS "jump_step LEFT" jump_step_right EQUS "jump_step RIGHT" fast_jump_step_down EQUS "fast_jump_step DOWN" fast_jump_step_up EQUS "fast_jump_step UP" fast_jump_step_left EQUS "fast_jump_step LEFT" fast_jump_step_right EQUS "fast_jump_step RIGHT" step_sleep_1 EQUS "step_sleep 1" step_sleep_2 EQUS "step_sleep 2" step_sleep_3 EQUS "step_sleep 3" step_sleep_4 EQUS "step_sleep 4" step_sleep_5 EQUS "step_sleep 5" step_sleep_6 EQUS "step_sleep 6" step_sleep_7 EQUS "step_sleep 7" step_sleep_8 EQUS "step_sleep 8" ; macros/scripts/text.asm text_from_ram EQUS "text_ram" start_asm EQUS "text_asm" deciram EQUS "text_decimal" interpret_data EQUS "text_pause" limited_interpret_data EQUS "text_dots" link_wait_button EQUS "text_linkwaitbutton" current_day EQUS "text_today" text_jump EQUS "text_far" ; macros/scripts/battle_anims.asm anim_enemyfeetobj EQUS "anim_battlergfx_2row" anim_playerheadobj EQUS "anim_battlergfx_1row" anim_clearsprites EQUS "anim_keepsprites" ; macros/scripts/audio.asm unknownmusic0xde EQUS "sound_duty" __ EQU 0 CC EQU 13 musicheader: MACRO channel_count \1 channel \2, \3 ENDM sound: MACRO note \1, \2 db \3 dw \4 ENDM noise: MACRO note \1, \2 db \3 db \4 ENDM notetype: MACRO if _NARG >= 2 note_type \1, \2 >> 4, \2 & $0f else note_type \1 endc ENDM pitchoffset: MACRO transpose \1, \2 - 1 ENDM dutycycle EQUS "duty_cycle" intensity: MACRO volume_envelope \1 >> 4, \1 & $0f ENDM soundinput: MACRO pitch_sweep \1 >> 4, \1 & $0f ENDM ;unknownmusic0xde EQUS "sound_duty" sound_duty: MACRO db duty_cycle_pattern_cmd if _NARG == 4 db \1 | (\2 << 2) | (\3 << 4) | (\4 << 6) else db \1 endc ENDM togglesfx EQUS "toggle_sfx" slidepitchto: MACRO pitch_slide \1, (8 - \2), \3 ENDM togglenoise EQUS "toggle_noise" panning: MACRO force_stereo_panning ((\1 >> 4) & 1), (\1 & 1) ENDM tone EQUS "pitch_offset" restartchannel EQUS "restart_channel" newsong EQUS "new_song" sfxpriorityon EQUS "sfx_priority_on" sfxpriorityoff EQUS "sfx_priority_off" stereopanning: MACRO stereo_panning ((\1 >> 4) & 1), (\1 & 1) ENDM sfxtogglenoise EQUS "sfx_toggle_noise" setcondition EQUS "set_condition" jumpif EQUS "sound_jump_if" jumpchannel EQUS "sound_jump" loopchannel EQUS "sound_loop" callchannel EQUS "sound_call" endchannel EQUS "sound_ret"
release/src/router/gmp/mpn/x86_64/gcd_1.asm
ghsecuritylab/tomato-dnssec
5
6732
<filename>release/src/router/gmp/mpn/x86_64/gcd_1.asm<gh_stars>1-10 dnl AMD64 mpn_gcd_1 -- mpn by 1 gcd. dnl Based on the K7 gcd_1.asm, by <NAME>. Rehacked for AMD64 by Torbjorn dnl Granlund. dnl Copyright 2000-2002, 2005, 2009, 2011, 2012 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public License as published by the Free dnl Software Foundation; either version 3 of the License, or (at your dnl option) any later version. dnl dnl or dnl dnl * the GNU General Public License as published by the Free Software dnl Foundation; either version 2 of the License, or (at your option) any dnl later version. dnl dnl or both in parallel, as here. dnl dnl The GNU MP Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License dnl for more details. dnl dnl You should have received copies of the GNU General Public License and the dnl GNU Lesser General Public License along with the GNU MP Library. If not, dnl see https://www.gnu.org/licenses/. include(`../config.m4') C cycles/bit (approx) C AMD K8,K9 5.21 (4.95) C AMD K10 5.15 (5.00) C AMD bd1 5.42 (5.14) C AMD bobcat 6.71 (6.56) C Intel P4 13.5 (12.75) C Intel core2 6.20 (6.16) C Intel NHM 6.49 (6.25) C Intel SBR 7.75 (7.57) C Intel atom 8.77 (8.54) C VIA nano 6.60 (6.20) C Numbers measured with: speed -CD -s16-64 -t48 mpn_gcd_1 C ctz_table[n] is the number of trailing zeros on n, or MAXSHIFT if n==0. deflit(MAXSHIFT, 7) deflit(MASK, eval((m4_lshift(1,MAXSHIFT))-1)) DEF_OBJECT(ctz_table,64) .byte MAXSHIFT forloop(i,1,MASK, ` .byte m4_count_trailing_zeros(i) ') END_OBJECT(ctz_table) C Threshold of when to call bmod when U is one limb. Should be about C (time_in_cycles(bmod_1,1) + call_overhead) / (cycles/bit). define(`BMOD_THRES_LOG2', 8) C INPUT PARAMETERS define(`up', `%rdi') define(`n', `%rsi') define(`v0', `%rdx') ABI_SUPPORT(DOS64) ABI_SUPPORT(STD64) IFDOS(`define(`STACK_ALLOC', 40)') IFSTD(`define(`STACK_ALLOC', 8)') ASM_START() TEXT ALIGN(16) PROLOGUE(mpn_gcd_1) FUNC_ENTRY(3) mov (up), %rax C U low limb mov $-1, R32(%rcx) or v0, %rax C x | y L(twos): inc R32(%rcx) shr %rax jnc L(twos) shr R8(%rcx), v0 push %rcx C common twos L(divide_strip_y): shr v0 jnc L(divide_strip_y) adc v0, v0 cmp $1, n jnz L(reduce_nby1) C Both U and V are single limbs, reduce with bmod if u0 >> v0. mov (up), %r8 mov %r8, %rax shr $BMOD_THRES_LOG2, %r8 cmp %r8, v0 ja L(noreduce) push v0 sub $STACK_ALLOC, %rsp C maintain ABI required rsp alignment L(bmod): IFDOS(` mov %rdx, %r8 ') IFDOS(` mov %rsi, %rdx ') IFDOS(` mov %rdi, %rcx ') CALL( mpn_modexact_1_odd) L(reduced): add $STACK_ALLOC, %rsp pop %rdx L(noreduce): LEA( ctz_table, %rsi) test %rax, %rax mov %rax, %rcx jnz L(mid) jmp L(end) L(reduce_nby1): push v0 sub $STACK_ALLOC, %rsp C maintain ABI required rsp alignment cmp $BMOD_1_TO_MOD_1_THRESHOLD, n jl L(bmod) IFDOS(` mov %rdx, %r8 ') IFDOS(` mov %rsi, %rdx ') IFDOS(` mov %rdi, %rcx ') CALL( mpn_mod_1) jmp L(reduced) ALIGN(16) C K8 BC P4 NHM SBR L(top): cmovc %rcx, %rax C if x-y < 0 0 cmovc %rdi, %rdx C use x,y-x 0 L(mid): and $MASK, R32(%rcx) C 0 movzbl (%rsi,%rcx), R32(%rcx) C 1 jz L(shift_alot) C 1 shr R8(%rcx), %rax C 3 mov %rax, %rdi C 4 mov %rdx, %rcx C 3 sub %rax, %rcx C 4 sub %rdx, %rax C 4 jnz L(top) C 5 L(end): pop %rcx mov %rdx, %rax shl R8(%rcx), %rax FUNC_EXIT() ret L(shift_alot): shr $MAXSHIFT, %rax mov %rax, %rcx jmp L(mid) EPILOGUE()
dino/lcs/enemy/51.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
6
9746
<reponame>zengfr/arcade_game_romhacking_sourcecode_top_secret_data<filename>dino/lcs/enemy/51.asm<gh_stars>1-10 copyright zengfr site:http://github.com/zengfr/romhack 006088 tst.b ($51,A6) 00608C beq $60e0 [123p+ 51, enemy+51] 010864 tst.b ($51,A3) 010868 bne $10896 [enemy+51] 01091C tst.b ($51,A3) 010920 bne $1095a [enemy+51] 012CFE tst.b ($51,A6) [123p+ 50, enemy+50, etc+50, item+50] 012D02 bne $12d2e [123p+ 51, enemy+51, item+51] 012D1C move.b #$1, ($51,A6) 012D22 rts [123p+ 51, enemy+51, item+51] 012D48 move.b D1, ($51,A6) 012D4C rts 012E4A tst.b ($51,A6) [enemy+50] 012E4E bne $12e7a [enemy+51] 012E94 move.b D1, ($51,A6) 012E98 rts 013086 beq $13096 013096 move.w D0, ($c,A6) 02A656 tst.b ($51,A6) 02A65A bne $2a6c2 [enemy+51] 02A698 tst.b ($51,A6) 02A69C bne $2a84c [enemy+51] 02A768 move.b #$1, ($51,A6) 02A76E clr.b ($83,A6) [enemy+51] 02A7BA tst.b ($51,A6) 02A7BE bne $2a7f4 [enemy+51] 02A7C2 move.b #$1, ($51,A6) 02A7C8 lea ($23ea,PC) ; ($2cbb4), A0 [enemy+51] 02A818 tst.b ($51,A6) 02A81C bne $2a83c [enemy+51] 02A8F2 move.b #$1, ($51,A6) 02A8F8 clr.b ($83,A6) [enemy+51] 02A944 tst.b ($51,A6) 02A948 bne $2a97e [enemy+51] 02A94C move.b #$1, ($51,A6) 02A952 lea ($2270,PC) ; ($2cbc4), A0 [enemy+51] 02AA86 move.b #$1, ($51,A6) 02AA8C lea ($20b8,PC) ; ($2cb46), A1 [enemy+51] 02AB54 tst.b ($51,A6) 02AB58 bne $2ab8a [enemy+51] 02ABC6 tst.b ($51,A6) 02ABCA bne $2abee [enemy+51] 02AD00 move.b #$1, ($51,A6) [base+7B2] 02AD06 clr.b ($83,A6) [enemy+51] 02AD42 tst.b ($51,A6) 02AD46 bne $2ad80 [enemy+51] 02AD4E move.b #$1, ($51,A6) [enemy+23] 02AD54 lea ($1e7e,PC) ; ($2cbd4), A0 [enemy+51] 02AE02 tst.b ($51,A6) 02AE06 bne $2a6c2 02AED6 tst.b ($51,A6) 02AEDA bne $2a84c [enemy+51] 02B326 clr.b ($51,A6) [enemy+80] 02B32A move.w ($54,A6), D0 [enemy+51] 03141E clr.b ($51,A6) [enemy+ C, item+ C] 031422 rts [enemy+51, item+51] 033D32 move.b #$1, ($51,A6) [enemy+ C] 033D38 move.b #$4, ($7b,A6) [enemy+51] 033DA8 tst.b ($51,A6) 033DAC bne $33dda [enemy+51] 033DB0 move.b #$1, ($51,A6) 033DB6 move.w ($16,A6), D0 [enemy+51] 033DFA tst.b ($51,A6) 033DFE bne $33e20 [enemy+51] 033F74 tst.b ($51,A6) 033F78 bne $3474e 03401C tst.b ($51,A6) [enemy+A7] 034020 bne $3474e 034110 tst.b ($51,A6) [enemy+A0] 034114 bne $3474e 034240 tst.b ($51,A6) 034244 beq $3424a 034610 tst.b ($51,A6) 034614 bne $3474e 03470E tst.b ($51,A6) 034712 bne $3474e 035AEC tst.b ($51,A6) 035AF0 bne $36510 035B64 tst.b ($51,A6) 035B68 bne $35b92 03B9DA move.b #$1, ($51,A6) [enemy+ C] 03B9E0 move.b ($5b,A6), ($24,A6) [enemy+51] 03BC5C tst.b ($51,A6) 03BC60 bne $3ca32 [enemy+51] 03BCBE tst.b ($51,A6) 03BCC2 bne $3ca32 03C080 tst.b ($51,A6) 03C084 bne $3ca32 03C308 tst.b ($51,A6) 03C30C bne $3ca32 03C48E tst.b ($51,A6) 03C492 bne $3ca32 03C518 move.b #$1, ($51,A6) 03C51E move.w #$900, ($16,A6) [enemy+51] 03C52A tst.b ($51,A6) [enemy+1C] 03C52E beq $3c53c [enemy+51] 03C548 move.b #$1, ($51,A6) 03C54E move.w #$c, ($a8,A6) [enemy+51] 03C562 tst.b ($51,A6) [enemy+16] 03C566 beq $3c574 [enemy+51] 03C6AA tst.b ($51,A6) 03C6AE bne $3ca32 03CA78 tst.b ($51,A6) 03CA7C beq $3ca8a [enemy+51] 03E140 tst.b ($51,A6) 03E144 bne $3e3d4 03E226 tst.b ($51,A6) 03E22A bne $3e254 03F07C tst.b ($51,A6) 03F080 bne $3f08e [enemy+51] 03FE72 move.b #$1, ($51,A6) [enemy+AC] 03FE78 move.b #$4e, ($6,A6) [enemy+51] 040444 tst.b ($51,A6) 040448 beq $404a8 [enemy+51] 040658 tst.b ($51,A6) 04065C bne $40686 040786 tst.b ($51,A6) 04078A bne $41470 0414C2 move.b #$1, ($51,A6) [enemy+ 6] 0414C8 move.b #$34, ($58,A6) [enemy+51] 042B3A tst.b ($51,A6) 042B3E bne $43738 042B96 tst.b ($51,A6) 042B9A bne $42bac [enemy+51] 042BE0 tst.b ($51,A6) 042BE4 beq $42bec 042C6A tst.b ($51,A6) [enemy+B0] 042C6E bne $43738 042DAA tst.b ($51,A6) [enemy+24] 042DAE beq $42dc2 [enemy+51] 042DCE move.b #$1, ($51,A6) 042DD4 move.w #$700, ($16,A6) [enemy+51] 042EAE tst.b ($51,A6) [enemy+24] 042EB2 beq $42ec6 [enemy+51] 0430B2 tst.b ($51,A6) [enemy+B0] 0430B6 bne $43738 04324C move.b #$1, ($51,A6) 043252 move.w #$700, ($16,A6) [enemy+51] 043360 tst.b ($51,A6) 043364 beq $43378 [enemy+51] 043728 tst.b ($51,A6) 04372C bne $42bb4 [enemy+51] 0437E0 tst.b ($51,A6) 0437E4 beq $437f8 [enemy+51] 045D98 tst.b ($51,A6) 045D9C bne $469be 045DE0 tst.b ($51,A6) 045DE4 bne $469be 045E9C tst.b ($51,A6) [enemy+A9] 045EA0 bne $45eae [enemy+51] 045F0A tst.b ($51,A6) [enemy+22] 045F0E bne $469be 045F96 tst.b ($51,A6) 045F9A beq $45fae [enemy+51] 046028 tst.b ($51,A6) 04602C beq $46034 [enemy+51] 046060 move.b #$1, ($51,A6) 046066 clr.w ($14,A6) [enemy+51] 046098 move.b #$1, ($51,A6) 04609E move.w D1, ($14,A6) [enemy+51] 0462AC move.b #$1, ($51,A6) 0462B2 move.w D1, ($14,A6) [enemy+51] 0462DE tst.b ($51,A6) 0462E2 beq $462f6 [enemy+51] 046476 tst.b ($51,A6) [enemy+A0] 04647A bne $469be 046562 move.b #$1, ($51,A6) 046568 move.w D1, ($14,A6) [enemy+51] 0465B8 tst.b ($51,A6) 0465BC beq $465d0 [enemy+51] 046642 tst.b ($51,A6) 046646 bne $469be 0466C0 move.b #$1, ($51,A6) 0466C6 tst.b ($24,A6) [enemy+51] 046858 move.b #$1, ($51,A6) [enemy+8A] 04685E move.w #$800, ($16,A6) [enemy+51] 04716C tst.b ($51,A6) 047170 bne $4718a [enemy+51] 0484F0 tst.b ($51,A6) 0484F4 beq $48504 048D48 tst.b ($51,A6) 048D4C bne $48d6e 04E30C move.b #$1, ($51,A6) 04E312 move.b #$22, ($58,A6) [enemy+51] 04E5C0 tst.b ($51,A6) 04E5C4 bne $4e600 04E668 tst.b ($51,A6) 04E66C bne $4e6da 04EDDA tst.b ($51,A6) 04EDDE bne $4ee00 04EE6C move.b #$1, ($51,A6) 04EE72 moveq #$0, D0 [enemy+51] 04EE96 tst.b ($51,A6) 04EE9A bne $4eeb6 [enemy+51] 04F3B4 tst.b ($51,A6) 04F3B8 bne $4f3d8 04F3F0 tst.b ($51,A6) 04F3F4 bne $4f43c 05044A move.b #$1, ($51,A6) 050450 move.b #$4, ($7b,A6) [enemy+51] 050484 move.b #$1, ($51,A6) 05048A lea ($5c,PC) ; ($504e8), A0 [enemy+51] 051318 move.b #$1, ($51,A6) [enemy+ 6] 05131E move.w #$100, ($14,A6) [enemy+51] 05135C tst.b ($51,A6) 051360 bne $513c8 [enemy+51] 05594E move.b #$1, ($51,A6) [enemy+A2] 055954 move.b ($24,A1), ($24,A6) [enemy+51] 0559F0 move.b #$1, ($51,A6) 0559F6 tst.b ($24,A6) [enemy+51] 055A36 tst.b ($51,A6) 055A3A beq $55a44 [enemy+51] 055B5A tst.b ($51,A6) 055B5E beq $55b6e [enemy+51] 055D64 move.b #$1, ($51,A6) 055D6A move.w #$a00, ($16,A6) [enemy+51] 055DC2 move.b #$1, ($51,A6) 055DC8 move.w #$280, ($16,A6) [enemy+51] 055E22 move.b #$1, ($51,A6) 055E28 move.w #$280, ($16,A6) [enemy+51] 057376 tst.b ($51,A6) 05737A bne $573d2 [enemy+51] 057442 move.b #$1, ($51,A6) [enemy+ 5] 057448 move.w #$100, ($14,A6) [enemy+51] 059250 tst.b ($51,A6) 059254 bne $592ca [enemy+51] 05928C move.b #$1, ($51,A6) [enemy+A0] 059292 move.w #$40, ($14,A6) [enemy+51] 059440 tst.b ($51,A6) 059444 bne $59464 [enemy+51] 059B30 move.b #$1, ($51,A6) [enemy+ 6] 059B36 move.w #$a, ($ae,A6) [enemy+51] 059B7C move.b #$1, ($51,A6) [enemy+ 6] 059B82 tst.b ($bf,A6) [enemy+51] 05B3A2 move.b #$1, ($51,A6) 05B3A8 bra $5b3b2 [enemy+51] 05B3B6 tst.b ($51,A6) [enemy+A6] 05B3BA beq $5b3c8 [enemy+51] 05B42C move.b #$1, ($51,A6) 05B432 bra $5b43c [enemy+51] 05B440 tst.b ($51,A6) [enemy+A6] 05B444 beq $5b452 [enemy+51] 05B964 move.b #$1, ($51,A6) [enemy+6A] 05B96A move.l #$5bae0, ($40,A6) [enemy+51] 05B9EC tst.b ($51,A6) 05B9F0 bne $5ba2a [enemy+51] 05BA10 move.b #$1, ($51,A6) 05BA16 jsr $119c.l [enemy+51] 05C3CC move.b #$1, ($51,A6) [enemy+A4] 05C3D2 move.b #$4, ($6,A6) [enemy+51] 05C630 move.b #$1, ($51,A6) [enemy+16] 05C636 subq.b #1, ($a4,A6) [enemy+51] 05C646 clr.b ($51,A6) 05C64A move.l #$5c6f0, ($40,A6) 05EFF4 move.b #$1, ($51,A6) [enemy+25] 05EFFA move.w #$400, D1 [enemy+51] 05F020 tst.b ($51,A6) 05F024 beq $5f032 [enemy+51] 05F3EA tst.b ($51,A1) 05F3EE bne $5f436 [enemy+51] 093042 tst.b ($51,A0) 093046 beq $93054 [123p+ 51, enemy+51] copyright zengfr site:http://github.com/zengfr/romhack
programs/oeis/068/A068181.asm
neoneye/loda
22
167297
<gh_stars>10-100 ; A068181: a(n)=-1/b(2n) where 1/(e^y-e^(y/3))= sum(i=-1,inf,b(i)*y^i). ; 1,18,1944,524880,264539520,214277011200,254561089305600,416971064282572800,900657498850357248000,2480410751833883860992000,8483004771271882804592640000,35272333838948488701496197120000 mul $0,6 seq $0,7661 ; Triple factorial numbers a(n) = n!!!, defined by a(n) = n*a(n-3), a(0) = a(1) = 1, a(2) = 2. Sometimes written n!3.
sys/gdt.asm
pepsipu/xinOS-old
3
93552
global gdt_ptr gdt_ptr: dw gdt.end - gdt - 1 dq gdt gdt: .null: dq 0x0 .k_code_32: dd 0x0 db 0x0 db 10011010b db 00100000b db 0x0 .k_data_32: dd 0x0 db 0x0 db 10010010b dw 0x0 .u_code_32: dd 0x0 db 0x0 db 11111010b db 00100000b db 0x0 .u_data_32: dd 0x0 db 0x0 db 11110010b dw 0x0 .end:
2-low/neural/source/neural-forge.ads
charlie5/lace
20
2564
with neural.Set; package Neural.Forge -- -- Declares a factory for creation/destruction of core types. -- is -- Pattern -- function Creation (From : in Pattern) return Pattern; procedure Destroy (Self : in out Pattern); -- Patterns -- function Creation (From_File_Named : in String) return neural.Set.Patterns_view; procedure Destroy (Self : in out Patterns); procedure Destroy (Self : in out neural.Set.Patterns_view); procedure Store (Self : in Patterns; In_File_Named : in String); end Neural.Forge;
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc1227a.ada
best08618/asylo
7
20862
-- CC1227A.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, WHEN DERIVING FROM A FORMAL TYPE, THAT ALL THE PREDEFINED -- OPERATIONS ASSOCIATED WITH THE CLASS OF THE FORMAL TYPE ARE -- DECLARED FOR THE DERIVED TYPE. -- HISTORY: -- BCB 04/04/88 CREATED ORIGINAL TEST. WITH REPORT; USE REPORT; WITH SYSTEM; USE SYSTEM; PROCEDURE CC1227A IS GENERIC TYPE FORM IS RANGE <>; PACKAGE P IS TYPE DER_FORM IS NEW FORM; FUNCTION IDENT_DER(X : DER_FORM) RETURN DER_FORM; FUNCTION IDENT_ADR(Y : ADDRESS) RETURN ADDRESS; END P; PACKAGE BODY P IS DER_VAR : DER_FORM; DER_FORM_BASE_FIRST : DER_FORM; DER_FORM_FIRST : DER_FORM; DER_FORM_LAST : DER_FORM; DER_FORM_SIZE : DER_FORM; DER_FORM_WIDTH : DER_FORM; DER_FORM_POS : DER_FORM; DER_FORM_VAL : DER_FORM; DER_FORM_SUCC : DER_FORM; DER_FORM_PRED : DER_FORM; DER_FORM_IMAGE : STRING(1..5); DER_FORM_VALUE : DER_FORM; DER_VAR_SIZE : DER_FORM; DER_VAR_ADDRESS : ADDRESS; DER_EQUAL, DER_UNEQUAL : DER_FORM; DER_GREATER : DER_FORM; DER_MOD, DER_REM : DER_FORM; DER_ABS, DER_EXP : DER_FORM; INT : INTEGER := 5; FUNCTION IDENT_DER(X : DER_FORM) RETURN DER_FORM IS BEGIN IF EQUAL(3,3) THEN RETURN X; END IF; RETURN 0; END IDENT_DER; FUNCTION IDENT_ADR(Y : ADDRESS) RETURN ADDRESS IS X : DER_FORM; BEGIN IF EQUAL(3,3) THEN RETURN Y; END IF; RETURN X'ADDRESS; END IDENT_ADR; BEGIN TEST ("CC1227A", "CHECK, WHEN DERIVING FROM A FORMAL TYPE, " & "THAT ALL THE PREDEFINED OPERATIONS " & "ASSOCIATED WITH THE CLASS OF THE FORMAL " & "TYPE ARE DECLARED FOR THE DERIVED TYPE"); DER_VAR := IDENT_DER(1); IF DER_VAR /= 1 THEN FAILED ("IMPROPER VALUE FROM ASSIGNMENT OPERATION"); END IF; IF DER_VAR NOT IN DER_FORM THEN FAILED ("IMPROPER RESULT FROM MEMBERSHIP TEST"); END IF; DER_VAR := DER_FORM'(2); IF DER_VAR /= IDENT_DER(2) THEN FAILED ("IMPROPER RESULT FROM QUALIFICATION"); END IF; DER_VAR := DER_FORM(INT); IF DER_VAR /= IDENT_DER(5) THEN FAILED ("IMPROPER RESULT FROM EXPLICIT CONVERSION - " & "INTEGER"); END IF; DER_VAR := DER_FORM(3.0); IF DER_VAR /= IDENT_DER(3) THEN FAILED ("IMPROPER RESULT FROM EXPLICIT CONVERSION - " & "FLOAT"); END IF; DER_VAR := 1_000; IF DER_VAR /= IDENT_DER(1000) THEN FAILED ("IMPROPER RESULT FROM IMPLICIT CONVERSION"); END IF; DER_FORM_BASE_FIRST := DER_FORM'BASE'FIRST; DER_FORM_FIRST := DER_FORM'FIRST; IF DER_FORM_BASE_FIRST /= IDENT_DER(DER_FORM_FIRST) THEN FAILED ("IMPROPER VALUE FOR DER_FORM'BASE'FIRST"); END IF; IF DER_FORM_FIRST /= IDENT_DER(DER_FORM'FIRST) THEN FAILED ("IMPROPER VALUE FOR DER_FORM'FIRST"); END IF; DER_FORM_LAST := DER_FORM'LAST; IF DER_FORM_LAST /= IDENT_DER(DER_FORM'LAST) THEN FAILED ("IMPROPER VALUE FOR DER_FORM'LAST"); END IF; DER_FORM_SIZE := DER_FORM(DER_FORM'SIZE); IF DER_FORM_SIZE /= IDENT_DER(DER_FORM(DER_FORM'SIZE)) THEN FAILED ("IMPROPER VALUE FOR DER_FORM'SIZE"); END IF; DER_FORM_WIDTH := DER_FORM(DER_FORM'WIDTH); IF DER_FORM_WIDTH /= IDENT_DER(DER_FORM(DER_FORM'WIDTH)) THEN FAILED ("IMPROPER VALUE FOR DER_FORM'WIDTH"); END IF; DER_FORM_POS := DER_FORM(DER_FORM'POS(DER_VAR)); IF DER_FORM_POS /= IDENT_DER(DER_FORM(DER_FORM'POS(DER_VAR))) THEN FAILED ("IMPROPER VALUE FOR DER_FORM'POS(DER_VAR)"); END IF; DER_FORM_VAL := DER_FORM'VAL(DER_VAR); IF DER_FORM_VAL /= IDENT_DER(DER_FORM'VAL(DER_VAR)) THEN FAILED ("IMPROPER VALUE FOR DER_FORM'VAL(DER_VAR)"); END IF; DER_FORM_SUCC := DER_FORM'SUCC(DER_VAR); IF DER_FORM_SUCC /= IDENT_DER(DER_FORM'SUCC(DER_VAR)) THEN FAILED ("IMPROPER VALUE FOR DER_FORM'SUCC(DER_VAR)"); END IF; DER_FORM_PRED := DER_FORM'PRED(DER_VAR); IF DER_FORM_PRED /= IDENT_DER(DER_FORM'PRED(DER_VAR)) THEN FAILED ("IMPROPER VALUE FOR DER_FORM'PRED(DER_VAR)"); END IF; DER_FORM_IMAGE := DER_FORM'IMAGE(DER_VAR); IF DER_FORM_IMAGE(2..5) /= "1000" THEN FAILED ("IMPROPER VALUE FOR DER_FORM'IMAGE(DER_VAR)"); END IF; DER_FORM_VALUE := DER_FORM'VALUE(DER_FORM_IMAGE); IF DER_FORM_VALUE /= IDENT_DER(1000) THEN FAILED ("IMPROPER VALUE FOR DER_FORM'VALUE" & "(DER_FORM_IMAGE)"); END IF; DER_VAR_SIZE := DER_FORM(DER_VAR'SIZE); IF DER_VAR_SIZE /= IDENT_DER(DER_FORM(DER_VAR'SIZE)) THEN FAILED ("IMPROPER VALUE FOR DER_VAR'SIZE"); END IF; DER_VAR_ADDRESS := DER_VAR'ADDRESS; IF DER_VAR_ADDRESS /= IDENT_ADR(DER_VAR'ADDRESS) THEN FAILED ("IMPROPER VALUE FOR DER_VAR'ADDRESS"); END IF; DER_EQUAL := IDENT_DER(1000); IF DER_VAR /= DER_EQUAL THEN FAILED ("IMPROPER RESULT FROM INEQUALITY OPERATOR"); END IF; DER_UNEQUAL := IDENT_DER(500); IF DER_VAR = DER_UNEQUAL THEN FAILED ("IMPROPER RESULT FROM EQUALITY OPERATOR"); END IF; IF DER_VAR < DER_UNEQUAL THEN FAILED ("IMPROPER RESULT FROM LESS THAN OPERATOR"); END IF; IF DER_VAR <= DER_UNEQUAL THEN FAILED ("IMPROPER RESULT FROM LESS THAN OR EQUAL TO " & "OPERATOR"); END IF; DER_GREATER := IDENT_DER(1500); IF DER_VAR > DER_GREATER THEN FAILED ("IMPROPER RESULT FROM GREATER THAN OPERATOR"); END IF; IF DER_VAR >= DER_GREATER THEN FAILED ("IMPROPER RESULT FROM GREATER THAN OR EQUAL " & "TO OPERATOR"); END IF; DER_VAR := DER_VAR + DER_EQUAL; IF DER_VAR /= IDENT_DER(2000) THEN FAILED ("IMPROPER RESULT FROM ADDITION OPERATOR"); END IF; DER_VAR := DER_VAR - DER_EQUAL; IF DER_VAR /= IDENT_DER(1000) THEN FAILED ("IMPROPER RESULT FROM SUBTRACTION OPERATOR"); END IF; DER_VAR := DER_VAR * IDENT_DER(2); IF DER_VAR /= IDENT_DER(2000) THEN FAILED ("IMPROPER RESULT FROM MULTIPLICATION OPERATOR"); END IF; DER_VAR := DER_VAR / IDENT_DER(2); IF DER_VAR /= IDENT_DER(1000) THEN FAILED ("IMPROPER RESULT FROM DIVISION OPERATOR"); END IF; DER_MOD := DER_GREATER MOD DER_VAR; IF DER_MOD /= IDENT_DER(500) THEN FAILED ("IMPROPER RESULT FROM MOD OPERATOR"); END IF; DER_REM := DER_GREATER REM DER_VAR; IF DER_REM /= IDENT_DER(500) THEN FAILED ("IMPROPER RESULT FROM REM OPERATOR"); END IF; DER_ABS := ABS(IDENT_DER(-1500)); IF DER_ABS /= IDENT_DER(DER_GREATER) THEN FAILED ("IMPROPER RESULT FROM ABS OPERATOR"); END IF; DER_EXP := IDENT_DER(2) ** IDENT_INT(2); IF DER_EXP /= IDENT_DER(4) THEN FAILED ("IMPROPER RESULT FROM EXPONENTIATION OPERATOR"); END IF; RESULT; END P; PACKAGE PACK IS NEW P(INTEGER); BEGIN NULL; END CC1227A;
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/return2.adb
best08618/asylo
7
28726
-- { dg-do compile } -- { dg-options "-O" } with Return2_Pkg; use Return2_Pkg; package body Return2 is function Value_Internal (Image : String) return Result_Internal_T is begin return (Member => False); end; type Result_T is array (1 .. 2) of Result_Internal_T; function Value (Img : String) return T is My_F : constant String := F; Result : Result_T; Value : T; begin for I in Result'Range loop if G (My_F, I) /= "" then Result (I) := Value_Internal (G (My_F, I)); if Result (I).Member then Value (Result (I).Data) := True; else raise Program_Error; end if; end if; end loop; return Value; end; end Return2;
test/asset/agda-stdlib-1.0/Data/String/Base.agda
omega12345/agda-mode
0
3793
<filename>test/asset/agda-stdlib-1.0/Data/String/Base.agda ------------------------------------------------------------------------ -- The Agda standard library -- -- Strings: builtin type and basic operations ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.String.Base where open import Data.Nat.Base as Nat using (ℕ) open import Data.List.Base as List using (List) open import Data.List.NonEmpty as NE using (List⁺) open import Agda.Builtin.Char using (Char) open import Function ------------------------------------------------------------------------ -- From Agda.Builtin: type and renamed primitives -- Note that we do not re-export primStringAppend because we want to -- give it an infix definition and be able to assign it a level. import Agda.Builtin.String as String open String public using ( String ) renaming ( primStringToList to toList ; primStringFromList to fromList ; primShowString to show ) ------------------------------------------------------------------------ -- Operations -- Additional conversion functions fromList⁺ : List⁺ Char → String fromList⁺ = fromList ∘ NE.toList -- List-like functions infixr 5 _++_ _++_ : String → String → String _++_ = String.primStringAppend length : String → ℕ length = List.length ∘ toList replicate : ℕ → Char → String replicate n = fromList ∘ List.replicate n concat : List String → String concat = List.foldr _++_ "" -- String-specific functions unlines : List String → String unlines = concat ∘ List.intersperse "\n"
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0.log_21829_1010.asm
ljhsiun2/medusa
9
26914
<reponame>ljhsiun2/medusa<filename>Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0.log_21829_1010.asm .global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r8 push %r9 push %rbx push %rsi lea addresses_WT_ht+0x7540, %r8 xor %r12, %r12 movw $0x6162, (%r8) nop nop nop nop nop cmp $48185, %rbx lea addresses_UC_ht+0x4100, %r9 nop nop nop nop xor %r13, %r13 movw $0x6162, (%r9) nop nop nop and %r9, %r9 lea addresses_A_ht+0xfd29, %r12 nop nop and $2499, %r9 mov $0x6162636465666768, %r13 movq %r13, %xmm5 movups %xmm5, (%r12) nop nop nop nop nop cmp %rsi, %rsi lea addresses_WC_ht+0x40e0, %rsi nop nop nop sub $572, %rbx movb (%rsi), %r9b nop nop nop inc %r9 lea addresses_normal_ht+0x1b920, %rsi nop nop nop nop cmp $51612, %rbx mov (%rsi), %r13 nop nop nop nop xor %r11, %r11 lea addresses_WC_ht+0xd940, %r9 nop nop sub $42980, %r8 mov (%r9), %ebx nop nop nop nop dec %rbx lea addresses_normal_ht+0x6140, %r13 nop and %r8, %r8 mov $0x6162636465666768, %rsi movq %rsi, (%r13) nop cmp %r12, %r12 lea addresses_D_ht+0x1c140, %r12 nop nop nop nop cmp %r13, %r13 mov (%r12), %rbx and $11538, %r8 lea addresses_UC_ht+0x4600, %r11 nop nop sub %rsi, %rsi and $0xffffffffffffffc0, %r11 vmovaps (%r11), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $0, %xmm5, %r8 nop nop inc %r8 lea addresses_A_ht+0x9cda, %rbx nop and $37246, %rsi and $0xffffffffffffffc0, %rbx vmovntdqa (%rbx), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $1, %xmm0, %r13 nop nop and $48650, %r9 pop %rsi pop %rbx pop %r9 pop %r8 pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %rax push %rbp push %rbx push %rdi // Load lea addresses_normal+0xbe40, %rbx nop nop and $30892, %r12 vmovups (%rbx), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $0, %xmm2, %rbp nop nop sub $33794, %rdi // Store lea addresses_PSE+0xed3d, %rdi nop sub %r11, %r11 movl $0x51525354, (%rdi) nop add %rbp, %rbp // Store mov $0x1cc, %rdi nop nop nop and $43316, %rbp mov $0x5152535455565758, %r14 movq %r14, %xmm5 vmovups %ymm5, (%rdi) nop nop sub $29606, %rbp // Store lea addresses_WC+0x1abd8, %r12 clflush (%r12) nop nop nop dec %rbp movw $0x5152, (%r12) dec %rdi // Store lea addresses_PSE+0x15040, %rax nop nop inc %r12 movl $0x51525354, (%rax) cmp $57929, %r14 // Store lea addresses_UC+0x5d40, %rax nop nop nop add $8854, %r12 movb $0x51, (%rax) nop nop inc %r14 // Store lea addresses_PSE+0x1e440, %rdi nop nop nop and $48903, %r11 mov $0x5152535455565758, %rbx movq %rbx, %xmm6 movups %xmm6, (%rdi) nop nop inc %rbp // Store lea addresses_D+0x1870, %rbp nop nop nop nop and %r11, %r11 mov $0x5152535455565758, %rbx movq %rbx, %xmm0 vmovups %ymm0, (%rbp) nop nop nop cmp %rax, %rax // Store lea addresses_A+0x169c0, %r11 clflush (%r11) add %rbx, %rbx mov $0x5152535455565758, %r12 movq %r12, (%r11) nop nop nop nop nop add %r11, %r11 // Faulty Load mov $0x6e1e9a0000000140, %r11 nop nop nop add $6042, %r12 movb (%r11), %al lea oracles, %r11 and $0xff, %rax shlq $12, %rax mov (%r11,%rax,1), %rax pop %rdi pop %rbx pop %rbp pop %rax pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_normal', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_P', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 2, 'type': 'addresses_WC', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 10, 'type': 'addresses_UC', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_D', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_A', 'AVXalign': False, 'size': 8}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': True, 'same': True, 'congruent': 9, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16}} {'src': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 1}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': True, 'same': False, 'congruent': 7, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}} {'src': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': True, 'same': False, 'congruent': 5, 'type': 'addresses_UC_ht', 'AVXalign': True, 'size': 32}, 'OP': 'LOAD'} {'src': {'NT': True, 'same': False, 'congruent': 1, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
grammars/src/main/antlr/base_patterns14.g4
serefarikan/archie
44
5255
// // General purpose patterns used in all openEHR parser and lexer tools // grammar base_patterns14; import BaseLexer14; type_id : ALPHA_UC_ID ( '<' type_id ( ',' type_id )* '>' )? ; attribute_id : ALPHA_LC_ID ; identifier : ALPHA_UC_ID | ALPHA_LC_ID ; archetype_ref : ARCHETYPE_HRID | ARCHETYPE_REF ;
thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/sdltests/testgl.adb
Lucretia/old_nehe_ada95
0
739
<gh_stars>0 -- ----------------------------------------------------------------- -- -- -- -- This is free software; you can redistribute it and/or -- -- modify it under the terms of the GNU General Public -- -- License as published by the Free Software Foundation; either -- -- version 2 of the License, or (at your option) any later version. -- -- -- -- This software is distributed in the hope that it will be useful, -- -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- -- General Public License for more details. -- -- -- -- You should have received a copy of the GNU General Public -- -- License along with this library; if not, write to the -- -- Free Software Foundation, Inc., 59 Temple Place - Suite 330, -- -- Boston, MA 02111-1307, USA. -- -- -- -- ----------------------------------------------------------------- -- -- ----------------------------------------------------------------- -- -- This is a translation, to the Ada programming language, of the -- -- original C test files written by <NAME> - www.libsdl.org -- -- translation made by <NAME> - www.adapower.net/~avargas -- -- ----------------------------------------------------------------- -- with Interfaces.C; with Ada.Text_IO; use Ada.Text_IO; with Ada.Characters.Handling; with GNAT.OS_Lib; with SDL.Types; use SDL.Types; with TestGL_Sprogs; use TestGL_Sprogs; procedure TestGL is package C renames Interfaces.C; package CH renames Ada.Characters.Handling; use type Interfaces.C.int; use type V.Surface_Flags; package Int_IO is new Integer_IO (C.int); package CFloat_IO is new Float_IO (C.C_float); logo : Boolean := False; numtests : C.int := 1; bpp : C.int := 0; slowly : Boolean := False; gamma : C.C_float := 0.0; argc : Integer := CL.Argument_Count; video_flags : V.Surface_Flags := 0; begin while argc > 0 loop if (argc >= 2) and then (CL.Argument (argc - 1) = "-bpp") and then CH.Is_Digit (CL.Argument (argc) (1)) then declare last : Positive; begin Int_IO.Get (CL.Argument (argc), bpp, last); end; argc := argc - 2; elsif (argc >= 2) and then (CL.Argument (argc - 1) = "-gamma") and then CH.Is_Digit (CL.Argument (argc) (1)) then declare last : Positive; begin CFloat_IO.Get (CL.Argument (argc), gamma, last); end; argc := argc - 2; elsif CL.Argument (argc) = "-twice" then numtests := numtests + 1; argc := argc - 1; elsif CL.Argument (argc) = "-logo" then logo := True; argc := argc -1; elsif CL.Argument (argc) = "-slow" then slowly := True; argc := argc - 1; elsif CL.Argument (argc) = "-fullscreen" then video_flags := video_flags or V.FULLSCREEN; argc := argc - 1; elsif CL.Argument (argc) = "-h" then Put_Line ("Usage: " & CL.Command_Name & " " & "[-bpp N] [-gamma] [-twice] " & "[-logo] [-slow] [-fullscreen]"); argc := argc - 1; GNAT.OS_Lib.OS_Exit (0); else Put_Line ("Usage: " & CL.Command_Name & " " & "[-bpp N] [-gamma] [-twice] " & "[-logo] [-slow] [-fullscreen] [-h]"); argc := argc - 1; GNAT.OS_Lib.OS_Exit (0); end if; end loop; for i in 0 .. numtests - 1 loop RunGLTest (video_flags, logo, slowly, bpp, gamma); end loop; GNAT.OS_Lib.OS_Exit (0); end TestGL;
spectranet/libspectranet/ifconfig_inet.asm
speccytools/spectranet-gdbserver
40
86228
; process ; void __FASTCALL__ ifconfig_inet(in_addr_t *addr); PUBLIC ifconfig_inet EXTERN libspectranet include "spectranet.asm" .ifconfig_inet IXCALL IFCONFIG_INET_ROM ret
ada/src/nymph_client.ads
Watch-Later/NymphRPC
52
29248
<filename>ada/src/nymph_client.ads<gh_stars>10-100 -- nymph.ada - Package file for the NymphRPC package. -- -- Revision 0 -- -- 2018/09/24, <NAME> package NymphClient is -- end NymphClient;
programs/oeis/329/A329505.asm
karttu/loda
1
8171
<filename>programs/oeis/329/A329505.asm ; A329505: Expansion of (1 + x)*(1 + 2*x - x^2) / (1 - x). ; 1,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4 sub $0,1 mov $1,2 mov $2,2 trn $2,$0 sub $2,1 pow $2,2 sub $1,$2 add $1,3
source/webdriver-sessions.ads
reznikmm/webdriver
2
7892
<gh_stars>1-10 -- Copyright (c) 2017 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with League.Strings; with WebDriver.Elements; package WebDriver.Sessions is type Session is limited interface; type Session_Access is access all Session'Class with Storage_Size => 0; not overriding procedure Go (Self : access Session; URL : League.Strings.Universal_String) is abstract; -- Load a new web page in the current browser window. not overriding function Get_Current_URL (Self : access Session) return League.Strings.Universal_String is abstract; -- Gets the URL the browser is currently displaying. not overriding function Find_Element (Self : access Session; Strategy : WebDriver.Location_Strategy; Selector : League.Strings.Universal_String) return WebDriver.Elements.Element_Access is abstract; end WebDriver.Sessions;
src/firmware-tests/Ui/States/Boot/EnableLcdTest.asm
pete-restall/Cluck2Sesame-Prototype
1
27354
#include "Mcu.inc" #include "FarCalls.inc" #include "Ui.inc" #include "../../UiStates.inc" #include "../../../Platform/Lcd/EnableDisableLcdMocks.inc" #include "TestFixture.inc" radix decimal EnableLcdTest code global testArrange testArrange: fcall initialiseUi fcall initialiseEnableAndDisableLcdMocks testAct: setUiState UI_STATE_BOOT fcall pollUi testAssert: banksel calledEnableLcdCount .assert "calledEnableLcdCount == 1, 'Expected enableLcd() to be called.'" return end
1A/S5/PIM/tps/tp1/drone.adb
MOUDDENEHamza/ENSEEIHT
4
26105
<filename>1A/S5/PIM/tps/tp1/drone.adb with Ada.Text_IO; use Ada.Text_IO; procedure Drone is -- Create program that handles drone. Choice: Character; Altitude: Integer; Start: Integer; begin -- Initialize variables. Altitude := 0; Start := 0; -- Print menu for the first time. Put_Line("Current Altitude :" &Integer'Image(Altitude)); Put_Line("Menu"); Put_Line("s -- Start"); Put_Line("u -- Up"); Put_Line("d-- Down"); Put_Line("q -- Quit"); -- Get the action to do. Put("What to do : "); get(Choice); -- Handle drone. while true loop case Choice is when 's' | 'S' => -- Start engine. Start := 1; when 'u' | 'U' => -- Go up. if Altitude = 4 then -- Drone out of reach. Altitude := 5; Put_line("drone out of reach"); exit; -- Exit the program. end if; if Start = 0 then -- Engine shutting down. Put_line("Engine shutting down"); else Altitude := Altitude + 1; -- Increment altitude. end if; when 'd' | 'D' => -- Go down. if Start = 0 then -- Engine shutting down. Put_line("Engine shutting down"); end if; if Altitude = 0 then -- Impossible to go down when Altitude = 0. Put_line("Impossible move"); else Altitude := Altitude - 1; -- Decrement altitude. end if; when 'q' | 'Q' => -- Quit program. Put_Line("GOODBYE"); exit; -- Exit the program. when others => null; end case; -- Print menu for the seconde time. Put_Line("Current Altitude :" &Integer'Image(Altitude)); Put_Line("Menu"); Put_Line("s -- Start"); Put_Line("u -- Up"); Put_Line("d-- Down"); Put_Line("q -- Quit"); -- Get choice for the second time. Put("What to do : "); get(Choice); end loop; end Drone;
programs/oeis/173/A173562.asm
neoneye/loda
22
240413
<reponame>neoneye/loda<gh_stars>10-100 ; A173562: a(n) = n^2 + floor(n/4). ; 0,1,4,9,17,26,37,50,66,83,102,123,147,172,199,228,260,293,328,365,405,446,489,534,582,631,682,735,791,848,907,968,1032,1097,1164,1233,1305,1378,1453,1530,1610,1691,1774,1859,1947,2036,2127,2220,2316,2413,2512 mov $1,$0 div $0,4 pow $1,2 add $0,$1
alloy_model/memalloc/join.als
vasil-sd/engineering-sw-hw-model-checking-letures
16
3209
<reponame>vasil-sd/engineering-sw-hw-model-checking-letures module join[Time] open order[Time] open memory[Time] open block[Time] open address open size as s -- этот вспомогательный предикат объединяет блоки pred UpdateBlocks[now: Time, Bbelow, Babove: Block] { let past = now.prev { -- у нижнего блока остаётся старый адрес Bbelow.Addr.now = Bbelow.Addr.past -- размер увеличивается на размер верхнего блока Bbelow.Size.now = Sum[Bbelow.Size.past, Babove.Size.past] -- верхний блок уходит в невидимые -- следующие два утвержения можно записать короче: 'Babove.Invisible[now]' -- но такая запись понятнее Babove.Size.now = zero Babove.Addr.now = null } } -- это основной предикат объединения блоков pred JoinBlocks[now: Time, B1, B2: Block] { let past = now.prev { -- две ветки для случая разных положений блоков друг относительно друга { B2 = B1.Above[past] now.UpdateBlocks[B1, B2] } or { B1 = B2.Above[past] now.UpdateBlocks[B2, B1] } } } -- смотрим модели Example: run { all now: Time - first | let past = now.prev { past.MemStructureValid -- это утверждение сильнее чем нужно, как показано в видео, его можно немного ослабить some disj b1,b2: past.VisibleBlocks { -- для каких-то двух различных видимых блоков now.JoinBlocks[b1,b2] -- объединяем их в момент времени 'now' now.BlocksAreTheSameExcept[b1+b2] -- с 'past' до 'now' поменялись только 'b1' и 'b2' - рамочный предикат } } } for 6 but exactly 2 Time -- двух моментов времени вполне достаточно -- тут проверяем то, что 'JoinBlocks' сохраняет инвариант валидности структуры памяти assert JoinIsCorrectlyDefined { all now: Time - first | let past = now.prev | { #past.VisibleBlocks > 1 -- для работы 'JoinBlocks' нужно как минимум два блока в момент 'past' past.MemStructureValid -- и в 'past' структура памяти должна быть валидной } implies -- наличие двух и более видимых блоков и валидность памяти в 'past' -- позволяет проверить следующее: some disj b1, b2 : past.VisibleBlocks -- для любых двух различных видимых блоков в 'past' | past.Neighbors[b1 + b2] implies { -- если они соседние { now.JoinBlocks[b1,b2] -- то мы можем их объединить в момент времени 'now' now.BlocksAreTheSameExcept[b1 + b2] -- меняются только объединяемые блоки в момент 'now' } implies { -- и это вседга должно приводить к now.MemStructureValid -- валидной структуре памяти в момент 'now' now.SumOfBlockSizesIsConstant } } } -- тут проверяем удверждение о сохранении инварианта CheckJoin: check JoinIsCorrectlyDefined for 7 but exactly 2 Time -- двух моментов времени должно быть достаточно, так как все предикаты связанные с динамическими операциями -- определены на двух моментах времени: текущем и предыдущем -- в видео показан процесс отладки предикатов и модели, когда находятся контр-примеры
source/nodes/program-nodes-select_paths.ads
reznikmm/gela
0
8720
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Expressions; with Program.Element_Vectors; with Program.Elements.Select_Paths; with Program.Element_Visitors; package Program.Nodes.Select_Paths is pragma Preelaborate; type Select_Path is new Program.Nodes.Node and Program.Elements.Select_Paths.Select_Path and Program.Elements.Select_Paths.Select_Path_Text with private; function Create (When_Token : Program.Lexical_Elements.Lexical_Element_Access; Guard : Program.Elements.Expressions.Expression_Access; Arrow_Token : Program.Lexical_Elements.Lexical_Element_Access; Statements : not null Program.Element_Vectors.Element_Vector_Access) return Select_Path; type Implicit_Select_Path is new Program.Nodes.Node and Program.Elements.Select_Paths.Select_Path with private; function Create (Guard : Program.Elements.Expressions.Expression_Access; Statements : not null Program.Element_Vectors .Element_Vector_Access; Is_Part_Of_Implicit : Boolean := False; Is_Part_Of_Inherited : Boolean := False; Is_Part_Of_Instance : Boolean := False) return Implicit_Select_Path with Pre => Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance; private type Base_Select_Path is abstract new Program.Nodes.Node and Program.Elements.Select_Paths.Select_Path with record Guard : Program.Elements.Expressions.Expression_Access; Statements : not null Program.Element_Vectors.Element_Vector_Access; end record; procedure Initialize (Self : in out Base_Select_Path'Class); overriding procedure Visit (Self : not null access Base_Select_Path; Visitor : in out Program.Element_Visitors.Element_Visitor'Class); overriding function Guard (Self : Base_Select_Path) return Program.Elements.Expressions.Expression_Access; overriding function Statements (Self : Base_Select_Path) return not null Program.Element_Vectors.Element_Vector_Access; overriding function Is_Select_Path (Self : Base_Select_Path) return Boolean; overriding function Is_Path (Self : Base_Select_Path) return Boolean; type Select_Path is new Base_Select_Path and Program.Elements.Select_Paths.Select_Path_Text with record When_Token : Program.Lexical_Elements.Lexical_Element_Access; Arrow_Token : Program.Lexical_Elements.Lexical_Element_Access; end record; overriding function To_Select_Path_Text (Self : in out Select_Path) return Program.Elements.Select_Paths.Select_Path_Text_Access; overriding function When_Token (Self : Select_Path) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Arrow_Token (Self : Select_Path) return Program.Lexical_Elements.Lexical_Element_Access; type Implicit_Select_Path is new Base_Select_Path with record Is_Part_Of_Implicit : Boolean; Is_Part_Of_Inherited : Boolean; Is_Part_Of_Instance : Boolean; end record; overriding function To_Select_Path_Text (Self : in out Implicit_Select_Path) return Program.Elements.Select_Paths.Select_Path_Text_Access; overriding function Is_Part_Of_Implicit (Self : Implicit_Select_Path) return Boolean; overriding function Is_Part_Of_Inherited (Self : Implicit_Select_Path) return Boolean; overriding function Is_Part_Of_Instance (Self : Implicit_Select_Path) return Boolean; end Program.Nodes.Select_Paths;
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-dyntab.adb
orb-zhuchen/Orb
0
5023
<reponame>orb-zhuchen/Orb<filename>support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-dyntab.adb ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- G N A T . D Y N A M I C _ T A B L E S -- -- -- -- B o d y -- -- -- -- Copyright (C) 2000-2019, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ pragma Compiler_Unit_Warning; with GNAT.Heap_Sort_G; with Ada.Unchecked_Deallocation; with System; package body GNAT.Dynamic_Tables is ----------------------- -- Local Subprograms -- ----------------------- function Last_Allocated (T : Instance) return Table_Last_Type; pragma Inline (Last_Allocated); -- Return the index of the last allocated element procedure Grow (T : in out Instance; New_Last : Table_Last_Type); -- This is called when we are about to set the value of Last to a value -- that is larger than Last_Allocated. This reallocates the table to the -- larger size, as indicated by New_Last. At the time this is called, -- Last (T) is still the old value, and this does not modify it. -------------- -- Allocate -- -------------- procedure Allocate (T : in out Instance; Num : Integer := 1) is begin -- Note that Num can be negative pragma Assert (not T.Locked); Set_Last (T, Last (T) + Table_Index_Type'Base (Num)); end Allocate; ------------ -- Append -- ------------ procedure Append (T : in out Instance; New_Val : Table_Component_Type) is pragma Assert (not T.Locked); New_Last : constant Table_Last_Type := Last (T) + 1; begin if New_Last <= Last_Allocated (T) then -- Fast path T.P.Last := New_Last; T.Table (New_Last) := New_Val; else Set_Item (T, New_Last, New_Val); end if; end Append; ---------------- -- Append_All -- ---------------- procedure Append_All (T : in out Instance; New_Vals : Table_Type) is begin for J in New_Vals'Range loop Append (T, New_Vals (J)); end loop; end Append_All; -------------------- -- Decrement_Last -- -------------------- procedure Decrement_Last (T : in out Instance) is begin pragma Assert (not T.Locked); Allocate (T, -1); end Decrement_Last; ----------- -- First -- ----------- function First return Table_Index_Type is begin return Table_Low_Bound; end First; -------------- -- For_Each -- -------------- procedure For_Each (Table : Instance) is Quit : Boolean := False; begin for Index in First .. Last (Table) loop Action (Index, Table.Table (Index), Quit); exit when Quit; end loop; end For_Each; ---------- -- Grow -- ---------- procedure Grow (T : in out Instance; New_Last : Table_Last_Type) is -- Note: Type Alloc_Ptr below needs to be declared locally so we know -- the bounds. That means that the collection is local, so is finalized -- when leaving Grow. That's why this package doesn't support controlled -- types; the table elements would be finalized prematurely. An Ada -- implementation would also be within its rights to reclaim the -- storage. Fortunately, GNAT doesn't do that. pragma Assert (not T.Locked); pragma Assert (New_Last > Last_Allocated (T)); subtype Table_Length_Type is Table_Index_Type'Base range 0 .. Table_Index_Type'Base'Last; Old_Last_Allocated : constant Table_Last_Type := Last_Allocated (T); Old_Allocated_Length : constant Table_Length_Type := Old_Last_Allocated - First + 1; New_Length : constant Table_Length_Type := New_Last - First + 1; New_Allocated_Length : Table_Length_Type; begin if T.Table = Empty_Table_Ptr then New_Allocated_Length := Table_Length_Type (Table_Initial); else New_Allocated_Length := Table_Length_Type (Long_Long_Integer (Old_Allocated_Length) * (100 + Long_Long_Integer (Table_Increment)) / 100); end if; -- Make sure it really did grow if New_Allocated_Length <= Old_Allocated_Length then New_Allocated_Length := Old_Allocated_Length + 10; end if; if New_Allocated_Length <= New_Length then New_Allocated_Length := New_Length + 10; end if; pragma Assert (New_Allocated_Length > Old_Allocated_Length); pragma Assert (New_Allocated_Length > New_Length); T.P.Last_Allocated := First + New_Allocated_Length - 1; declare subtype Old_Alloc_Type is Table_Type (First .. Old_Last_Allocated); type Old_Alloc_Ptr is access all Old_Alloc_Type; procedure Free is new Ada.Unchecked_Deallocation (Old_Alloc_Type, Old_Alloc_Ptr); function To_Old_Alloc_Ptr is new Ada.Unchecked_Conversion (Table_Ptr, Old_Alloc_Ptr); subtype Alloc_Type is Table_Type (First .. First + New_Allocated_Length - 1); type Alloc_Ptr is access all Alloc_Type; function To_Table_Ptr is new Ada.Unchecked_Conversion (Alloc_Ptr, Table_Ptr); Old_Table : Old_Alloc_Ptr := To_Old_Alloc_Ptr (T.Table); New_Table : constant Alloc_Ptr := new Alloc_Type; begin if T.Table /= Empty_Table_Ptr then New_Table (First .. Last (T)) := Old_Table (First .. Last (T)); Free (Old_Table); end if; T.Table := To_Table_Ptr (New_Table); end; pragma Assert (New_Last <= Last_Allocated (T)); pragma Assert (T.Table /= null); pragma Assert (T.Table /= Empty_Table_Ptr); end Grow; -------------------- -- Increment_Last -- -------------------- procedure Increment_Last (T : in out Instance) is begin pragma Assert (not T.Locked); Allocate (T, 1); end Increment_Last; ---------- -- Init -- ---------- procedure Init (T : in out Instance) is pragma Assert (not T.Locked); subtype Alloc_Type is Table_Type (First .. Last_Allocated (T)); type Alloc_Ptr is access all Alloc_Type; procedure Free is new Ada.Unchecked_Deallocation (Alloc_Type, Alloc_Ptr); function To_Alloc_Ptr is new Ada.Unchecked_Conversion (Table_Ptr, Alloc_Ptr); Temp : Alloc_Ptr := To_Alloc_Ptr (T.Table); begin if T.Table = Empty_Table_Ptr then pragma Assert (T.P = (Last_Allocated | Last => First - 1)); null; else Free (Temp); T.Table := Empty_Table_Ptr; T.P := (Last_Allocated | Last => First - 1); end if; end Init; -------------- -- Is_Empty -- -------------- function Is_Empty (T : Instance) return Boolean is begin return Last (T) = First - 1; end Is_Empty; ---------- -- Last -- ---------- function Last (T : Instance) return Table_Last_Type is begin return T.P.Last; end Last; -------------------- -- Last_Allocated -- -------------------- function Last_Allocated (T : Instance) return Table_Last_Type is begin return T.P.Last_Allocated; end Last_Allocated; ---------- -- Move -- ---------- procedure Move (From, To : in out Instance) is begin pragma Assert (not From.Locked); pragma Assert (not To.Locked); pragma Assert (Is_Empty (To)); To := From; From.Table := Empty_Table_Ptr; From.Locked := False; From.P.Last_Allocated := First - 1; From.P.Last := First - 1; pragma Assert (Is_Empty (From)); end Move; ------------- -- Release -- ------------- procedure Release (T : in out Instance) is pragma Assert (not T.Locked); Old_Last_Allocated : constant Table_Last_Type := Last_Allocated (T); function New_Last_Allocated return Table_Last_Type; -- Compute the new value of Last_Allocated. This is normally equal to -- Last, but if Release_Threshold /= 0, then we need to take that into -- account. ------------------------ -- New_Last_Allocated -- ------------------------ function New_Last_Allocated return Table_Last_Type is subtype Table_Length_Type is Table_Index_Type'Base range 0 .. Table_Index_Type'Base'Last; Length : constant Table_Length_Type := Last (T) - First + 1; Comp_Size_In_Bytes : constant Table_Length_Type := Table_Type'Component_Size / System.Storage_Unit; Length_Threshold : constant Table_Length_Type := Table_Length_Type (Release_Threshold) / Comp_Size_In_Bytes; begin if Release_Threshold = 0 or else Length < Length_Threshold then return Last (T); else declare Extra_Length : constant Table_Length_Type := Length / 1000; begin return (Length + Extra_Length) - 1 + First; end; end if; end New_Last_Allocated; -- Local variables New_Last_Alloc : constant Table_Last_Type := New_Last_Allocated; -- Start of processing for Release begin if New_Last_Alloc < Last_Allocated (T) then pragma Assert (Last (T) < Last_Allocated (T)); pragma Assert (T.Table /= Empty_Table_Ptr); declare subtype Old_Alloc_Type is Table_Type (First .. Old_Last_Allocated); type Old_Alloc_Ptr is access all Old_Alloc_Type; procedure Free is new Ada.Unchecked_Deallocation (Old_Alloc_Type, Old_Alloc_Ptr); function To_Old_Alloc_Ptr is new Ada.Unchecked_Conversion (Table_Ptr, Old_Alloc_Ptr); subtype Alloc_Type is Table_Type (First .. New_Last_Alloc); type Alloc_Ptr is access all Alloc_Type; function To_Table_Ptr is new Ada.Unchecked_Conversion (Alloc_Ptr, Table_Ptr); Old_Table : Old_Alloc_Ptr := To_Old_Alloc_Ptr (T.Table); New_Table : constant Alloc_Ptr := new Alloc_Type; begin New_Table (First .. Last (T)) := Old_Table (First .. Last (T)); T.P.Last_Allocated := New_Last_Alloc; Free (Old_Table); T.Table := To_Table_Ptr (New_Table); end; end if; end Release; -------------- -- Set_Item -- -------------- procedure Set_Item (T : in out Instance; Index : Valid_Table_Index_Type; Item : Table_Component_Type) is begin pragma Assert (not T.Locked); -- If Set_Last is going to reallocate the table, we make a copy of Item, -- in case the call was "Set_Item (T, X, T.Table (Y));", and Item is -- passed by reference. Without the copy, we would deallocate the array -- containing Item, leaving a dangling pointer. if Index > Last_Allocated (T) then declare Item_Copy : constant Table_Component_Type := Item; begin Set_Last (T, Index); T.Table (Index) := Item_Copy; end; else if Index > Last (T) then Set_Last (T, Index); end if; T.Table (Index) := Item; end if; end Set_Item; -------------- -- Set_Last -- -------------- procedure Set_Last (T : in out Instance; New_Val : Table_Last_Type) is begin pragma Assert (not T.Locked); if New_Val > Last_Allocated (T) then Grow (T, New_Val); end if; T.P.Last := New_Val; end Set_Last; ---------------- -- Sort_Table -- ---------------- procedure Sort_Table (Table : in out Instance) is Temp : Table_Component_Type; -- A temporary position to simulate index 0 -- Local subprograms function Index_Of (Idx : Natural) return Table_Index_Type'Base; -- Return index of Idx'th element of table function Lower_Than (Op1, Op2 : Natural) return Boolean; -- Compare two components procedure Move (From : Natural; To : Natural); -- Move one component package Heap_Sort is new GNAT.Heap_Sort_G (Move, Lower_Than); -------------- -- Index_Of -- -------------- function Index_Of (Idx : Natural) return Table_Index_Type'Base is J : constant Integer'Base := Table_Index_Type'Base'Pos (First) + Idx - 1; begin return Table_Index_Type'Base'Val (J); end Index_Of; ---------- -- Move -- ---------- procedure Move (From : Natural; To : Natural) is begin if From = 0 then Table.Table (Index_Of (To)) := Temp; elsif To = 0 then Temp := Table.Table (Index_Of (From)); else Table.Table (Index_Of (To)) := Table.Table (Index_Of (From)); end if; end Move; ---------------- -- Lower_Than -- ---------------- function Lower_Than (Op1, Op2 : Natural) return Boolean is begin if Op1 = 0 then return Lt (Temp, Table.Table (Index_Of (Op2))); elsif Op2 = 0 then return Lt (Table.Table (Index_Of (Op1)), Temp); else return Lt (Table.Table (Index_Of (Op1)), Table.Table (Index_Of (Op2))); end if; end Lower_Than; -- Start of processing for Sort_Table begin Heap_Sort.Sort (Natural (Last (Table) - First) + 1); end Sort_Table; end GNAT.Dynamic_Tables;
Cubical/Homotopy/Spectrum.agda
FernandoLarrain/cubical
1
16818
<filename>Cubical/Homotopy/Spectrum.agda {-# OPTIONS --safe #-} {- This uses ideas from <NAME>'s phd thesis and the code in https://github.com/cmu-phil/Spectral/blob/master/spectrum/basic.hlean -} module Cubical.Homotopy.Spectrum where open import Cubical.Foundations.Prelude open import Cubical.Data.Unit.Pointed open import Cubical.Foundations.Equiv open import Cubical.Data.Int open import Cubical.Homotopy.Prespectrum private variable ℓ : Level Spectrum : (ℓ : Level) → Type (ℓ-suc ℓ) Spectrum ℓ = let open GenericPrespectrum in Σ[ P ∈ Prespectrum ℓ ] ((k : ℤ) → isEquiv (fst (map P k)))
date/randomDateAndTime.applescript
adriannier/applescript-functions
7
3653
log randomDateAndTimeInRange((current date) - 10 * 365 * 24 * 60 * 60, (current date), 9 * 60 * 60, 17 * 60 * 60) on randomDateAndTimeInRange(minDate, maxDate, minSeconds, maxSeconds) if minDate is false then set minDate to current date if maxDate is false then set maxDate to current date if minDate > maxDate then error "randomDate(): Minimum date needs to be the same as or later than maximum date" end if set secondSpan to maxDate - minDate set daySpan to secondSpan div 60 / 60 / 24 set randomDays to random number from 0 to daySpan set randomDate to minDate + randomDays * 24 * 60 * 60 set time of randomDate to random number from minSeconds to maxSeconds return randomDate end randomDateAndTimeInRange
bug-reports/missing-pos-attribute/src/main.adb
TUM-EI-RCS/StratoX
12
22239
<reponame>TUM-EI-RCS/StratoX with Interfaces; use Interfaces; with Ada.Text_IO; use Ada.Text_IO; procedure main with SPARK_Mode is type Some_Record is record c1 : Unsigned_8 := 0; c2 : Unsigned_8 := 0; end record; for Some_Record use record c1 at 0 range 0 .. 7; c2 at 1 range 0 .. 7; end record; for Some_Record'Size use 16; foo : Some_Record; off_c1 : constant Integer := foo.c1'Position; off_c2 : constant Integer := foo.c2'Position; begin pragma Assert (off_c1 < 10000); pragma Assert (off_c2 = 1); Put_Line ("Pos c1=" & Integer'Image (off_c1)); -- stdout: 0 Put_Line ("Pos c2=" & Integer'Image (off_c2)); -- stdout: 1 end main;
tools/ayacc/examples/calc/driver.adb
svn2github/matreshka
24
8664
with Calc, calc_lex.IO, Text_IO; procedure driver is in_file_name: string(1..80); last : natural; begin Text_IO.Put("Enter input file: "); Text_IO.Get_Line(in_file_name, last); calc_lex.IO.open_input(in_file_name(1..last)); --calc_lex.IO.open_input("/dev/tty"); calc_lex.IO.create_output; Calc.yyparse; calc_lex.IO.close_input; calc_lex.IO.close_output; end driver;
typeonly/TypeOnlyParser.g4
tomko-team/typeonly
23
7911
parser grammar TypeOnlyParser; options { tokenVocab = TypeOnlyLexer; } declarations: typeSep? declaration* EOF; typeSep: (NL | SEMI_COLON)+; declaration: importDecl (typeSep | EOF) | namedInterface typeSep? | namedType (typeSep | EOF); /* * Import */ importDecl: classicImport | namespacedImport; classicImport: IMPORT TYPE? NL* (namedImportContent NL* FROM NL*)? STRING_LITERAL; namedImportContent: OPEN_BRACE NL* namedMember (NL* COMMA NL* namedMember)* NL* CLOSE_BRACE; namedMember: IDENTIFIER (NL* AS NL* IDENTIFIER)?; namespacedImport: IMPORT NL* STAR NL* AS NL* IDENTIFIER NL* FROM NL* STRING_LITERAL; /* * NamedInterface */ namedInterface: (EXPORT NL*)? INTERFACE IDENTIFIER (NL* genericParameters)? ( NL* interfaceExtends )? NL* anonymousInterface; interfaceExtends: EXTENDS NL* typeName (NL* COMMA NL* typeName)*; anonymousInterface: OPEN_BRACE (NL* interfaceEntries)? CLOSE_BRACE; interfaceEntries: interfaceEntry (propertySeparator interfaceEntry)* propertySeparator?; interfaceEntry: indexSignature | property | functionProperty | mappedIndexSignature; property: (READONLY NL*)? propertyName (NL* QUESTION_MARK)? NL* COLON NL* aType; functionProperty: (READONLY NL*)? propertyName (NL* QUESTION_MARK)? NL* ( NL* genericParameters )? OPEN_PARENTHESE ( NL* functionParameter (NL* COMMA NL* functionParameter)* )? NL* CLOSE_PARENTHESE (NL* COLON NL* aType)?; /* * IndexSignature and MappedIndexSignature */ indexSignature: (READONLY NL*)? OPEN_BRACKET IDENTIFIER COLON signatureType CLOSE_BRACKET ( NL* QUESTION_MARK )? COLON aType; signatureType: STRING | NUMBER; mappedIndexSignature: (READONLY NL*)? OPEN_BRACKET IDENTIFIER IN aType CLOSE_BRACKET ( NL* QUESTION_MARK )? COLON aType; propertySeparator: (NL+ (propertyExplicitSeparator NL*)?) | (propertyExplicitSeparator NL*); propertyExplicitSeparator: (SEMI_COLON (NL* SEMI_COLON)*) | COMMA; propertyName: IDENTIFIER | JS_KEYWORD | typeOnlyKeywords; typeOnlyKeywords: INTERFACE | TYPE | EXPORT | EXTENDS | READONLY | KEYOF | STRING | NUMBER | IN | AS | FROM | IMPORT; typeName: IDENTIFIER | IDENTIFIER DOT IDENTIFIER; /* * NamedType */ namedType: (EXPORT NL*)? TYPE IDENTIFIER NL* ( NL* genericParameters )? ASSIGN NL* aType; /* * Common rules for NamedInterface and NamedType */ aType: inlineImportType | typeName | signatureType | literal | tupleType | memberParentType = aType OPEN_BRACKET memberName CLOSE_BRACKET | arrayItemType = aType NL* OPEN_BRACKET NL* CLOSE_BRACKET | KEYOF aType | anonymousInterface | typeWithParenthesis | aType NL* INTERSECTION NL* aType | aType NL* UNION NL* aType | genericInstance | (NL* genericParameters)? OPEN_PARENTHESE ( NL* functionParameter (NL* COMMA NL* functionParameter)* )? NL* CLOSE_PARENTHESE NL* ARROW NL* returnType = aType; memberName: STRING_LITERAL | INTEGER_LITERAL | IDENTIFIER; genericParameters: LESS_THAN genericParameter+ MORE_THAN; genericParameter: IDENTIFIER (EXTENDS extendsType = aType)? ( ASSIGN defaultType = aType )?; genericInstance: typeName NL* LESS_THAN NL* aType (NL* COMMA NL* aType)* NL* MORE_THAN; inlineImportType: IMPORT OPEN_PARENTHESE stringLiteral CLOSE_PARENTHESE DOT IDENTIFIER; stringLiteral: STRING_LITERAL | TEMPLATE_STRING_LITERAL; tupleType: OPEN_BRACKET (NL* aType (NL* COMMA NL* aType)*)? NL* CLOSE_BRACKET; typeWithParenthesis: OPEN_PARENTHESE NL* aType NL* CLOSE_PARENTHESE; functionParameter: IDENTIFIER (NL* QUESTION_MARK)? (NL* COLON NL* aType)?; /* * Literal */ literal: STRING_LITERAL | TEMPLATE_STRING_LITERAL | BOOLEAN_LITERAL | BIG_INT_LITERAL | INTEGER_LITERAL | DECIMAL_LITERAL | HEX_INTEGER_LITERAL | OCTAL_INTEGER_LITERAL | BINARY_INTEGER_LITERAL;
Base.agda
guillaumebrunerie/JamesConstruction
5
15746
<reponame>guillaumebrunerie/JamesConstruction<gh_stars>1-10 {-# OPTIONS --without-K --rewriting #-} module Base where {- With the HoTT-Agda library, the following import can be used instead: open import HoTT using (Type; lmax; lsucc; _==_; idp; !; ap; apd; Square; ids; vid-square; hid-square; SquareOver; ↓-ap-in; apd-square; app=; λ=; app=-β; transport; ℕ; O; S; ℕ-reader; _×_; _,_; fst; snd; _∘_; ap-∘; ap-!; PathOver; ↓-cst-in; apd=cst-in; ap-idf; ap-cst; square-symmetry; uncurry; ap-square; Cube; idc; ap-cube; is-contr) public -} open import Agda.Primitive public using (lzero) renaming (Level to ULevel; lsuc to lsucc; _⊔_ to lmax) Type : (i : ULevel) → Set (lsucc i) Type i = Set i Type₀ : Set (lsucc lzero) Type₀ = Type lzero infix 30 _==_ data _==_ {i} {A : Type i} (a : A) : A → Type i where idp : a == a PathOver : ∀ {i j} {A : Type i} (B : A → Type j) {x y : A} (p : x == y) (u : B x) (v : B y) → Type j PathOver B idp u v = (u == v) infix 30 PathOver syntax PathOver B p u v = u == v [ B ↓ p ] ap : ∀ {i j} {A : Type i} {B : Type j} (f : A → B) {x y : A} → (x == y → f x == f y) ap f idp = idp apd : ∀ {i j} {A : Type i} {B : A → Type j} (f : (a : A) → B a) {x y : A} → (p : x == y) → f x == f y [ B ↓ p ] apd f idp = idp transport : ∀ {i j} {A : Type i} (B : A → Type j) {x y : A} (p : x == y) → (B x → B y) transport B idp u = u infixr 60 _,_ record Σ {i j} (A : Type i) (B : A → Type j) : Type (lmax i j) where constructor _,_ field fst : A snd : B fst open Σ public _×_ : ∀ {i j} (A : Type i) (B : Type j) → Type (lmax i j) A × B = Σ A (λ _ → B) data ℕ : Type lzero where O : ℕ S : (n : ℕ) → ℕ Nat = ℕ {-# BUILTIN NATURAL ℕ #-} infixr 80 _∘_ _∘_ : ∀ {i j k} {A : Type i} {B : A → Type j} {C : (a : A) → (B a → Type k)} → (g : {a : A} → (x : B a) → (C a x)) → (f : (x : A) → B x) → (x : A) → C x (f x) g ∘ f = λ x → g (f x) uncurry : ∀ {i j k} {A : Type i} {B : A → Type j} {C : (x : A) → B x → Type k} → (∀ x y → C x y) → (∀ s → C (fst s) (snd s)) uncurry f (x , y) = f x y record FromNat {i} (A : Type i) : Type (lsucc i) where field in-range : ℕ → Type i read : ∀ n → ⦃ _ : in-range n ⦄ → A open FromNat ⦃...⦄ public using () renaming (read to from-nat) {-# BUILTIN FROMNAT from-nat #-} record ⊤ : Type lzero where instance constructor unit Unit = ⊤ instance ℕ-reader : FromNat ℕ FromNat.in-range ℕ-reader _ = ⊤ FromNat.read ℕ-reader n = n ! : ∀ {i} {A : Type i} {x y : A} → x == y → y == x ! idp = idp data Square {i} {A : Type i} {a₀₀ : A} : {a₀₁ a₁₀ a₁₁ : A} → a₀₀ == a₀₁ → a₀₀ == a₁₀ → a₀₁ == a₁₁ → a₁₀ == a₁₁ → Type i where ids : Square idp idp idp idp hid-square : ∀ {i} {A : Type i} {a₀₀ a₀₁ : A} {p : a₀₀ == a₀₁} → Square p idp idp p hid-square {p = idp} = ids vid-square : ∀ {i} {A : Type i} {a₀₀ a₁₀ : A} {p : a₀₀ == a₁₀} → Square idp p p idp vid-square {p = idp} = ids ap-square : ∀ {i j} {A : Type i} {B : Type j} (f : A → B) {a₀₀ a₀₁ a₁₀ a₁₁ : A} {p₀₋ : a₀₀ == a₀₁} {p₋₀ : a₀₀ == a₁₀} {p₋₁ : a₀₁ == a₁₁} {p₁₋ : a₁₀ == a₁₁} → Square p₀₋ p₋₀ p₋₁ p₁₋ → Square (ap f p₀₋) (ap f p₋₀) (ap f p₋₁) (ap f p₁₋) ap-square f ids = ids SquareOver : ∀ {i j} {A : Type i} (B : A → Type j) {a₀₀ a₀₁ a₁₀ a₁₁ : A} {p₀₋ : a₀₀ == a₀₁} {p₋₀ : a₀₀ == a₁₀} {p₋₁ : a₀₁ == a₁₁} {p₁₋ : a₁₀ == a₁₁} (sq : Square p₀₋ p₋₀ p₋₁ p₁₋) {b₀₀ : B a₀₀} {b₀₁ : B a₀₁} {b₁₀ : B a₁₀} {b₁₁ : B a₁₁} (q₀₋ : b₀₀ == b₀₁ [ B ↓ p₀₋ ]) (q₋₀ : b₀₀ == b₁₀ [ B ↓ p₋₀ ]) (q₋₁ : b₀₁ == b₁₁ [ B ↓ p₋₁ ]) (q₁₋ : b₁₀ == b₁₁ [ B ↓ p₁₋ ]) → Type j SquareOver B ids = Square apd-square : ∀ {i j} {A : Type i} {B : A → Type j} (f : (x : A) → B x) {a₀₀ a₀₁ a₁₀ a₁₁ : A} {p₀₋ : a₀₀ == a₀₁} {p₋₀ : a₀₀ == a₁₀} {p₋₁ : a₀₁ == a₁₁} {p₁₋ : a₁₀ == a₁₁} (sq : Square p₀₋ p₋₀ p₋₁ p₁₋) → SquareOver B sq (apd f p₀₋) (apd f p₋₀) (apd f p₋₁) (apd f p₁₋) apd-square f ids = ids square-symmetry : ∀ {i} {A : Type i} {a₀₀ a₀₁ a₁₀ a₁₁ : A} {p₀₋ : a₀₀ == a₀₁} {p₋₀ : a₀₀ == a₁₀} {p₋₁ : a₀₁ == a₁₁} {p₁₋ : a₁₀ == a₁₁} → Square p₀₋ p₋₀ p₋₁ p₁₋ → Square p₋₀ p₀₋ p₁₋ p₋₁ square-symmetry ids = ids module _ {i j k} {A : Type i} {B : Type j} (C : B → Type k) (f : A → B) where ↓-ap-in : {x y : A} {p : x == y} {u : C (f x)} {v : C (f y)} → u == v [ C ∘ f ↓ p ] → u == v [ C ↓ ap f p ] ↓-ap-in {p = idp} idp = idp -- We postulate function extensionality module _ {i j} {A : Type i} {P : A → Type j} {f g : (x : A) → P x} where app= : (p : f == g) (x : A) → f x == g x app= p x = ap (λ u → u x) p postulate λ= : (h : (x : A) → f x == g x) → f == g app=-β : (h : (x : A) → f x == g x) (x : A) → app= (λ= h) x == h x ap-∘ : ∀ {i j k} {A : Type i} {B : Type j} {C : Type k} (g : B → C) (f : A → B) {x y : A} (p : x == y) → ap (g ∘ f) p == ap g (ap f p) ap-∘ f g idp = idp ap-cst : ∀ {i j} {A : Type i} {B : Type j} (b : B) {x y : A} (p : x == y) → ap (λ _ → b) p == idp ap-cst b idp = idp ap-idf : ∀ {i} {A : Type i} {u v : A} (p : u == v) → ap (λ x → x) p == p ap-idf idp = idp module _ {i j} {A : Type i} {B : Type j} (f : A → B) where ap-! : {x y : A} (p : x == y) → ap f (! p) == ! (ap f p) ap-! idp = idp module _ {i j} {A : Type i} {B : Type j} where ↓-cst-in : {x y : A} {p : x == y} {u v : B} → u == v → u == v [ (λ _ → B) ↓ p ] ↓-cst-in {p = idp} q = q {- Used for defining the recursor from the eliminator for 1-HIT -} apd=cst-in : ∀ {i j} {A : Type i} {B : Type j} {f : A → B} {a a' : A} {p : a == a'} {q : f a == f a'} → apd f p == ↓-cst-in q → ap f p == q apd=cst-in {p = idp} x = x data Cube {i} {A : Type i} {a₀₀₀ : A} : {a₀₁₀ a₁₀₀ a₁₁₀ a₀₀₁ a₀₁₁ a₁₀₁ a₁₁₁ : A} {p₀₋₀ : a₀₀₀ == a₀₁₀} {p₋₀₀ : a₀₀₀ == a₁₀₀} {p₋₁₀ : a₀₁₀ == a₁₁₀} {p₁₋₀ : a₁₀₀ == a₁₁₀} (sq₋₋₀ : Square p₀₋₀ p₋₀₀ p₋₁₀ p₁₋₀) -- left {p₀₋₁ : a₀₀₁ == a₀₁₁} {p₋₀₁ : a₀₀₁ == a₁₀₁} {p₋₁₁ : a₀₁₁ == a₁₁₁} {p₁₋₁ : a₁₀₁ == a₁₁₁} (sq₋₋₁ : Square p₀₋₁ p₋₀₁ p₋₁₁ p₁₋₁) -- right {p₀₀₋ : a₀₀₀ == a₀₀₁} {p₀₁₋ : a₀₁₀ == a₀₁₁} {p₁₀₋ : a₁₀₀ == a₁₀₁} {p₁₁₋ : a₁₁₀ == a₁₁₁} (sq₀₋₋ : Square p₀₋₀ p₀₀₋ p₀₁₋ p₀₋₁) -- back (sq₋₀₋ : Square p₋₀₀ p₀₀₋ p₁₀₋ p₋₀₁) -- top (sq₋₁₋ : Square p₋₁₀ p₀₁₋ p₁₁₋ p₋₁₁) -- bottom (sq₁₋₋ : Square p₁₋₀ p₁₀₋ p₁₁₋ p₁₋₁) -- front → Type i where idc : Cube ids ids ids ids ids ids ap-cube : ∀ {i j} {A : Type i} {B : Type j} (f : A → B) {a₀₀₀ a₀₁₀ a₁₀₀ a₁₁₀ a₀₀₁ a₀₁₁ a₁₀₁ a₁₁₁ : A} {p₀₋₀ : a₀₀₀ == a₀₁₀} {p₋₀₀ : a₀₀₀ == a₁₀₀} {p₋₁₀ : a₀₁₀ == a₁₁₀} {p₁₋₀ : a₁₀₀ == a₁₁₀} {sq₋₋₀ : Square p₀₋₀ p₋₀₀ p₋₁₀ p₁₋₀} -- left {p₀₋₁ : a₀₀₁ == a₀₁₁} {p₋₀₁ : a₀₀₁ == a₁₀₁} {p₋₁₁ : a₀₁₁ == a₁₁₁} {p₁₋₁ : a₁₀₁ == a₁₁₁} {sq₋₋₁ : Square p₀₋₁ p₋₀₁ p₋₁₁ p₁₋₁} -- right {p₀₀₋ : a₀₀₀ == a₀₀₁} {p₀₁₋ : a₀₁₀ == a₀₁₁} {p₁₀₋ : a₁₀₀ == a₁₀₁} {p₁₁₋ : a₁₁₀ == a₁₁₁} {sq₀₋₋ : Square p₀₋₀ p₀₀₋ p₀₁₋ p₀₋₁} -- back {sq₋₀₋ : Square p₋₀₀ p₀₀₋ p₁₀₋ p₋₀₁} -- top {sq₋₁₋ : Square p₋₁₀ p₀₁₋ p₁₁₋ p₋₁₁} -- bottom {sq₁₋₋ : Square p₁₋₀ p₁₀₋ p₁₁₋ p₁₋₁} -- front → Cube sq₋₋₀ sq₋₋₁ sq₀₋₋ sq₋₀₋ sq₋₁₋ sq₁₋₋ → Cube (ap-square f sq₋₋₀) (ap-square f sq₋₋₁) (ap-square f sq₀₋₋) (ap-square f sq₋₀₋) (ap-square f sq₋₁₋) (ap-square f sq₁₋₋) ap-cube f idc = idc
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/inline9_pkg.ads
best08618/asylo
7
16039
package Inline9_Pkg is procedure Test (I : Integer); pragma Inline (Test); end Inline9_Pkg;
processor/arch/c64/inc.asm
HakierGrzonzo/bfc64
1
90462
<filename>processor/arch/c64/inc.asm lda ($fb),y cmp #$ff beq label() clc adc #$01 sta ($fb),y label():
libsrc/spectrum/zx_break.asm
grancier/z180
0
165164
; ; ZX Spectrum specific routines ; by <NAME>, 14/09/2006 ; Improved by <NAME>, Dec 2008 ; ; int zx_break(); ; ; Check if the CAPS-SPACE (BREAK) key is being pressed ; ( 1 = pressed; 0 = not pressed ) ; ; Caps-shift + space version A.Schifano 29/12/2008 ; ; $Id: zx_break.asm,v 1.4 2016/06/10 19:39:39 dom Exp $ ; SECTION code_clib PUBLIC zx_break PUBLIC _zx_break zx_break: _zx_break: ld hl,0 ; assume break is not pressed ld a,$7f in a,($fe) rra ret c ; space not pressed ld a,$fe in a,($fe) rra ret c inc l ; both shift & space pressed, ret
programs/oeis/194/A194990.asm
neoneye/loda
22
164003
<reponame>neoneye/loda<filename>programs/oeis/194/A194990.asm ; A194990: a(n) = 1+ floor(n/sqrt(8)). ; 1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,7,7,7,8,8,8,9,9,9,10,10,10,11,11,11,12,12,13,13,13,14,14,14,15,15,15,16,16,16,17,17,17,18,18,19,19,19,20,20,20,21,21,21,22,22,22,23,23,23,24,24,25,25,25,26,26,26,27,27,27,28,28,28,29,29,29,30,30,31,31,31,32,32,32,33,33,33,34,34,34,35,35,36,36 add $0,1 mov $1,$0 mov $0,0 pow $1,2 div $1,8 lpb $1 add $0,2 sub $1,1 trn $1,$0 lpe div $0,2 add $0,1
LAB 4/Lab4Task5.asm
smellycattt/Microprocessor-Programming
1
11375
.Model Tiny .386 .DATA FILE DB 'ABCD2.txt',0 READMAX DB 40 READACTUAL DB ? STORE DB 40 DUP('0') NEWLINE DB 0DH, 0AH READMAX2 DB 40 READACTUAL2 DB ? STORE2 DB 40 DUP('0') .CODE .Startup ;CREATING THE FILE MOV AH, 3CH LEA DX, FILE MOV CL, 2; INT 21H ;TAKING INPUT FROM THE KEYBOARD FOR NAME MOV AH, 0AH LEA DX, READMAX INT 21H ;TAKING INPUT FROM THE KEYBOARD FOR ID MOV AH, 0AH LEA DX, READMAX2 INT 21H ;OPENING THE FILE LEA DX, FILE MOV AH, 3DH MOV AL, 02H INT 21H ;WRITING DATA INTO THE FILE -- NAME MOV BX,AX ;TRANSFERRING THE FILE HANDLE MOV AH, 40H MOV CL, READACTUAL MOV CH, 00H LEA DX, STORE INT 21H ;MOVING THE POINTER TO THE END OF THE FILE MOV AH, 42H MOV DL, READACTUAL MOV DH, 00H MOV CX, 00H ; DISPLACEMENT STORED IN COMBINATION OF CX:DX MOV AL, 00H INT 21H ;WRITING DATA INTO THE FILE -- NEWLINE MOV AH, 40H MOV CL, READACTUAL MOV CH, 00H LEA DX, NEWLINE INT 21H ;MOVING THE POINTER TO THE END OF THE FILE MOV AH, 42H MOV DL, READACTUAL MOV DH, 00H ADD DX, 2 ;FOR NEWLINE CHARACTERS MOV CX, 00H ; DISPLACEMENT STORED IN COMBINATION OF CX:DX MOV AL, 00H INT 21H ;WRITING DATA INTO THE FILE --- ID MOV AH, 40H MOV CL, READACTUAL2 MOV CH, 00H LEA DX, STORE2 INT 21H ;CLOSING THE FILE MOV AH, 3EH INT 21H .EXIT END
Assembly/export_symbols.asm
Berserker66/Enemizer
2
27014
<gh_stars>1-10 ;export.open exported_symbols.txt ;export.label EnemizerTablesStart ;export.label EnemizerCodeStart ;export.label sprite_bush_spawn_table_overworld ;export.label sprite_bush_spawn_table_dungeons ;export.label sprite_bush_spawn_table_random_sprites ;export.label EnemizerFlags ;export.label EnemizerFlags_randomize_bushes ;export.label EnemizerFlags_close_blind_door ;export.label EnemizerFlags_moldorm_eye_count ;export.label EnemizerFlags_randomize_sprites ;export.label EnemizerFlags_agahnim_fun_balls ;export.label EnemizerFlags_enable_mimic_override ;export.label EnemizerFlags_enable_terrorpin_ai_fix ;export.label room_header_table ;export.label enemizer_info_table ;export.label moved_room_header_bank_value_address ;export.label modified_room_object_table ;export.label DMAKholdstare ;export.label swordgfx ;export.label shieldgfx ;export.label Spawn_Bees ;export.label notItemSprite_Mimic ;export.label sprite_bush_spawn_item_table ;export.label ;export.label ;export.label ;export.label ;export.label ;export.label ;export.label ;export.close
Library/Text/TextRegion/trSmallSet.asm
steakknife/pcgeos
504
28716
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: trSmallSet.asm AUTHOR: <NAME>, Feb 12, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- John 2/12/92 Initial revision DESCRIPTION: Code for setting region variables. $Id: trSmallSet.asm,v 1.1 97/04/07 11:21:47 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TextRegion segment resource SmallAdjustForReplacement proc near ret SmallAdjustForReplacement endp SmallAdjustNumberOfLines proc near ret SmallAdjustNumberOfLines endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SmallRegionSetTopLine %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the top line of a region in a small object. CALLED BY: TR_SetTopLine PASS: *ds:si = Instance ptr cx = Region bx.dx = Top line RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 2/12/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SmallRegionSetTopLine proc near EC < call ECSmallCheckRegionNumber > ret SmallRegionSetTopLine endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SmallRegionSetStartOffset %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the starting offset of a region in a small object. CALLED BY: TR_SetTopLine PASS: *ds:si = Instance ptr cx = Region dx.ax = Starting offset RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 2/12/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SmallRegionSetStartOffset proc near EC < call ECSmallCheckRegionNumber > ret SmallRegionSetStartOffset endp TextRegion ends
Typinator/typinator/Includes/Scripts/FinderPath.applescript
mbroski/config
2
690
<reponame>mbroski/config -- Version 1.0, (C) <NAME>, 2012-01-19 -- Feel free to modify the script for your own use, but leave the copyright notice intact. tell application "Finder" try return POSIX path of (target of first Finder window as alias) on error return POSIX path of (desktop as alias) end try end tell
programs/oeis/309/A309332.asm
neoneye/loda
22
94333
<gh_stars>10-100 ; A309332: Number of ways the n-th triangular number T(n) = A000217(n) can be written as the sum of two positive triangular numbers. ; 0,0,1,0,0,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,2,0,3,0,0,1,1,3,0,0,1,0,1,0,0,3,1,1,0,1,3,0,1,1,1,2,0,1,2,0,1,1,2,1,1,1,1,2,1,0,3,1,1,1,0,3,1,1,0,0,2,0,1,1,1,1,1,5,0,1,1,0,1,0,0,3,0,3,1,0,3,1,3,1,3,3,0,1,0,0 seq $0,73577 ; a(n) = 4*n^2 + 4*n - 1. mov $2,$0 mul $0,2 sub $0,2 pow $2,2 div $2,$0 mov $1,$2 div $1,2 seq $1,193773 ; Number of ways to write n as 2*x*y - x - y with 1 <= x <= y. sub $1,1 mov $0,$1
programs/oeis/131/A131068.asm
neoneye/loda
22
240790
<reponame>neoneye/loda ; A131068: Binomial transform of [1, 1, 7, 7, 7,...]. ; 1,2,10,32,82,188,406,848,1738,3524,7102,14264,28594,57260,114598,229280,458650,917396,1834894,3669896,7339906,14679932,29359990,58720112,117440362,234880868,469761886,939523928,1879048018,3758096204,7516192582,15032385344,30064770874,60129541940,120259084078,240518168360,481036336930,962072674076,1924145348374,3848290696976,7696581394186,15393162788612,30786325577470,61572651155192,123145302310642,246290604621548,492581209243366,985162418487008,1970324836974298,3940649673948884,7881299347898062,15762598695796424,31525197391593154,63050394783186620,126100789566373558,252201579132747440,504403158265495210,1008806316530990756,2017612633061981854,4035225266123964056,8070450532247928466,16140901064495857292,32281802128991714950,64563604257983430272,129127208515966860922,258254417031933722228,516508834063867444846,1033017668127734890088,2066035336255469780578,4132070672510939561564,8264141345021879123542,16528282690043758247504,33056565380087516495434,66113130760175032991300,132226261520350065983038,264452523040700131966520,528905046081400263933490,1057810092162800527867436,2115620184325601055735334,4231240368651202111471136,8462480737302404222942746,16924961474604808445885972,33849922949209616891772430,67699845898419233783545352,135399691796838467567091202,270799383593676935134182908,541598767187353870268366326,1083197534374707740536733168,2166395068749415481073466858,4332790137498830962146934244,8665580274997661924293869022,17331160549995323848587738584,34662321099990647697175477714,69324642199981295394350955980,138649284399962590788701912518,277298568799925181577403825600,554597137599850363154807651770,1109194275199700726309615304116,2218388550399401452619230608814,4436777100798802905238461218216 mov $1,2 pow $1,$0 sub $0,$1 mul $0,6 sub $1,$0 sub $1,6 mov $0,$1
libsrc/input/vz/in_LookupKey.asm
jpoikela/z88dk
640
83626
<filename>libsrc/input/vz/in_LookupKey.asm ; uint in_LookupKey(uchar c) SECTION code_clib PUBLIC in_LookupKey PUBLIC _in_LookupKey EXTERN in_keytranstbl ; Given the ascii code of a character, returns the scan row and mask ; corresponding to the key that needs to be pressed to generate the ; character. ; ; The scan row returned will have bit 7 set and bit 6 set to ; indicate if CAPS, SYM SHIFTS also have to be pressed to generate the ; ascii code, respectively. ; enter: L = ascii character code ; exit : L = mask + flags ; H = port ; bit 7 of L set if SHIFT needs to be pressed ; bit 6 of L set if CTRL needs to be pressed ; uses : AF,BC,HL ; The 16-bit value returned is a scan code understood by ; in_KeyPressed. .in_LookupKey ._in_LookupKey ld a,l ld hl,in_keytranstbl ld bc,48 * 4 cpir jr nz,notfound ld a,+(48 * 4) - 1 sub c ;A = position in table ld de,0 cp 48 * 3 jr c, not_control_shift ld e,@11000000 jr done not_control_shift: cp 48 * 2 jr c, not_control ld e,@01000000 jr done not_control: cp 48 jr c, done ld e,@10000000 done: ; e = modifier flags ; a = key offset ; Need to divide by 6 and figure out port ld c,255 find_offset_loop: inc c sub 6 jr nc,find_offset_loop ; Now calculate the mask of the residue add 6 ld b,@00100000 find_mask_loop: and a jr z,found_mask srl b dec a jr find_mask_loop found_mask: ; b = mask ; e = modifier flags ld a,e or b ld e,a ; e = mask + modifier flags ld d,@11111110 ld a,c find_port_loop: and a jr z,got_port rlc d dec a jr find_port_loop got_port: ex de,hl ; and into correct return values and a ret notfound: ld hl,0 scf ret
src/fot/FOTC/Program/Nest/PropertiesATP.agda
asr/fotc
11
7259
<filename>src/fot/FOTC/Program/Nest/PropertiesATP.agda ------------------------------------------------------------------------------ -- Properties for the nest function ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} {-# OPTIONS --without-K #-} module FOTC.Program.Nest.PropertiesATP where open import FOTC.Base open import FOTC.Data.Nat.Type open import FOTC.Program.Nest.Nest ------------------------------------------------------------------------------ nest-x≡0 : ∀ {n} → N n → nest n ≡ zero nest-x≡0 nzero = prf where postulate prf : nest zero ≡ zero {-# ATP prove prf #-} nest-x≡0 (nsucc {n} Nn) = prf (nest-x≡0 Nn) where postulate prf : nest n ≡ zero → nest (succ₁ n) ≡ zero {-# ATP prove prf #-} postulate nest-N : ∀ {n} → N n → N (nest n) {-# ATP prove nest-N nest-x≡0 #-}
Transynther/x86/_processed/NONE/_ht_zr_/i7-7700_9_0x48.log_276_2475.asm
ljhsiun2/medusa
9
84823
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %rax push %rcx push %rdi push %rsi lea addresses_normal_ht+0xd521, %r13 nop nop nop add %rax, %rax movb $0x61, (%r13) nop nop add %rcx, %rcx lea addresses_WC_ht+0x9da1, %rsi lea addresses_D_ht+0x1b821, %rdi nop nop nop cmp %r13, %r13 mov $79, %rcx rep movsq nop nop nop nop nop add %r13, %r13 lea addresses_D_ht+0x7521, %rdi sub %r11, %r11 mov (%rdi), %rax nop xor $41085, %rdi pop %rsi pop %rdi pop %rcx pop %rax pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r15 push %r8 push %rbx push %rdi push %rsi // Store lea addresses_PSE+0x14b91, %rsi nop nop cmp %r15, %r15 mov $0x5152535455565758, %r13 movq %r13, (%rsi) nop and %r12, %r12 // Store lea addresses_D+0xd421, %rbx nop nop nop xor $3251, %r8 movb $0x51, (%rbx) nop nop nop nop inc %r13 // Store lea addresses_WT+0x11721, %r15 nop nop add %rsi, %rsi mov $0x5152535455565758, %r12 movq %r12, (%r15) nop nop nop nop nop and %r15, %r15 // Store mov $0x4a7fcd0000000ce9, %r8 nop nop nop nop nop dec %r12 mov $0x5152535455565758, %rbx movq %rbx, %xmm6 vmovups %ymm6, (%r8) nop nop nop inc %r12 // Store lea addresses_PSE+0x6021, %rbx clflush (%rbx) nop nop nop nop nop and $23290, %r13 movw $0x5152, (%rbx) nop nop nop nop and %rbx, %rbx // Store lea addresses_A+0x5a11, %rbx nop nop nop add $41202, %rdi movl $0x51525354, (%rbx) cmp %r13, %r13 // Load mov $0x741ced00000007b1, %r12 nop nop nop add %r13, %r13 mov (%r12), %edi nop inc %r12 // Faulty Load lea addresses_UC+0xb521, %r15 nop nop nop nop nop cmp %r12, %r12 vmovups (%r15), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $1, %xmm4, %r8 lea oracles, %r12 and $0xff, %r8 shlq $12, %r8 mov (%r12,%r8,1), %r8 pop %rsi pop %rdi pop %rbx pop %r8 pop %r15 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 4, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': True, 'congruent': 7, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 7, 'size': 8, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 2, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 7, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': True, 'congruent': 3, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 3, 'size': 4, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 11, 'size': 8, 'same': False, 'NT': False}} {'48': 178, '00': 98} 48 00 48 48 48 48 48 48 48 48 48 00 00 48 48 48 48 48 48 00 48 00 48 48 48 48 00 00 00 00 00 48 00 48 48 48 48 48 48 48 48 48 48 00 48 48 48 48 48 00 00 48 48 00 48 48 48 00 48 48 48 48 00 48 00 48 00 00 48 48 48 00 48 00 00 00 48 48 00 00 48 48 00 48 48 48 48 48 48 48 00 00 00 48 00 48 48 48 48 48 48 00 48 00 00 48 48 00 48 48 48 00 00 48 48 48 00 48 48 48 48 48 00 48 00 48 00 00 48 00 48 48 00 00 00 48 48 48 48 48 48 00 48 00 48 48 48 00 48 00 48 48 00 48 00 00 48 00 48 48 48 48 48 48 00 48 48 48 48 48 00 48 48 00 00 00 00 00 48 48 00 48 48 48 00 48 00 48 48 00 00 48 48 48 00 48 48 48 48 48 00 48 48 48 48 48 00 00 48 00 48 48 48 48 00 48 00 48 48 48 00 48 48 00 00 48 48 48 48 00 00 00 48 00 00 48 48 48 48 48 48 48 48 48 48 48 48 00 48 48 48 48 00 00 48 48 00 00 48 48 48 00 48 00 00 00 00 00 00 00 00 00 00 48 00 48 */
annis-visualizers/src/main/antlr4/annis/visualizers/htmlvis/HTMLVisConfig.g4
commul/ANNIS
0
2474
/* * Copyright 2013 SFB 632. * * 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. */ grammar HTMLVisConfig; WS: [ \t]+; SEMICOLON : ';'; EQUALS : '='; TOK : 'tok'; VALUE : 'value'; ESCAPED_VALUE : 'escaped_value'; ANNO : 'anno'; META : 'meta'; STYLE : 'style'; COLON : ':'; BEGIN : 'annis:BEGIN'; END : 'annis:END'; QUOTE : '"'; NEWLINE : '\n'; COMMENT : '#' ~('\n')+ -> skip; ID: [a-zA-Z0-9\_\-*?]+; TXT : (.)+?; innervalue: ~(QUOTE)+; value : QUOTE innervalue QUOTE; innertype: ~(QUOTE)+; innermeta: ~(QUOTE|WS|NEWLINE)+; type : VALUE # typeValue | ESCAPED_VALUE # typeEscapedValue | ANNO # typeAnno | QUOTE innertype QUOTE # typeConstant | META COLON COLON innermeta # typeMeta ; element : ID # elementNoStyle | ID COLON ID # elementNoStyleAttribute | ID SEMICOLON WS? STYLE EQUALS value # elementWithStyle | ID COLON ID SEMICOLON WS? STYLE EQUALS value # elementWithStyleAttribute ; qName : (namespace=ID COLON)? name=ID; condition : BEGIN # conditionBegin | END # conditionEnd | qName # conditionName | TOK # conditionTok | qName EQUALS value # conditionNameAndValue | EQUALS value # conditionValue ; vis : condition WS element (WS type)? WS? NEWLINE* ; start : NEWLINE* vis (NEWLINE+ vis)* EOF ;
Applications/Finder/label index/label index of POSIX file.applescript
looking-for-a-job/applescript-examples
1
2771
#!/usr/bin/osascript tell application "Finder" label index of (POSIX file "/Users" as alias) end
Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xa0_notsx.log_21829_1526.asm
ljhsiun2/medusa
9
22578
<reponame>ljhsiun2/medusa<filename>Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xa0_notsx.log_21829_1526.asm .global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x139d4, %rbx add %r12, %r12 mov $0x6162636465666768, %rbp movq %rbp, %xmm5 and $0xffffffffffffffc0, %rbx vmovntdq %ymm5, (%rbx) nop and %r14, %r14 lea addresses_D_ht+0x25cb, %rsi lea addresses_UC_ht+0x61db, %rdi clflush (%rdi) nop nop nop sub %r14, %r14 mov $0, %rcx rep movsb nop nop nop cmp %r14, %r14 lea addresses_UC_ht+0x172f6, %rcx nop nop nop cmp $43480, %rbx movups (%rcx), %xmm7 vpextrq $0, %xmm7, %r12 nop nop nop nop nop and %rbp, %rbp pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %r9 push %rcx push %rdi push %rsi // Store lea addresses_WC+0x1bddb, %rcx nop cmp $35123, %r10 mov $0x5152535455565758, %r11 movq %r11, (%rcx) nop nop nop and %rdi, %rdi // REPMOV lea addresses_UC+0xf7db, %rsi lea addresses_PSE+0x101db, %rdi clflush (%rsi) inc %r9 mov $24, %rcx rep movsb nop nop nop nop add $65406, %rsi // Store lea addresses_A+0x99db, %rsi nop dec %r9 mov $0x5152535455565758, %r14 movq %r14, %xmm7 vmovntdq %ymm7, (%rsi) inc %r9 // Store mov $0x7c88100000006b3, %rcx sub $46391, %rsi mov $0x5152535455565758, %r10 movq %r10, (%rcx) nop nop nop sub %rsi, %rsi // Store mov $0x7a84120000000ddb, %r9 sub %r14, %r14 movb $0x51, (%r9) nop nop nop nop sub $19189, %r10 // Faulty Load lea addresses_PSE+0x101db, %rdi nop xor $43582, %r9 movups (%rdi), %xmm4 vpextrq $1, %xmm4, %r11 lea oracles, %rcx and $0xff, %r11 shlq $12, %r11 mov (%rcx,%r11,1), %r11 pop %rsi pop %rdi pop %rcx pop %r9 pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 7}} {'src': {'type': 'addresses_UC', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_PSE', 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 32, 'NT': True, 'same': False, 'congruent': 11}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 3}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 8}} [Faulty Load] {'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32, 'NT': True, 'same': False, 'congruent': 0}} {'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': True}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
src/exported/ewok-exported-interrupts.ads
PThierry/ewok-kernel
65
3986
<filename>src/exported/ewok-exported-interrupts.ads -- -- Copyright 2018 The wookey project team <<EMAIL>> -- - <NAME> -- - <NAME> -- - <NAME> -- - <NAME> -- - <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 ewok.tasks_shared; with ewok.interrupts; with soc.interrupts; package ewok.exported.interrupts with spark_mode => off is MAX_POSTHOOK_INSTR : constant := 10; type t_posthook_action is (POSTHOOK_NIL, POSTHOOK_READ, POSTHOOK_WRITE, POSTHOOK_WRITE_REG, -- C name "and" POSTHOOK_WRITE_MASK); -- C name "mask" -- value <- register type t_posthook_action_read is record offset : unsigned_32; value : unsigned_32; end record; -- register <- value & mask type t_posthook_action_write is record offset : unsigned_32; value : unsigned_32; mask : unsigned_32; end record; -- register(dest) <- register(src) & mask type t_posthook_action_write_reg is record offset_dest : unsigned_32; offset_src : unsigned_32; mask : unsigned_32; mode : unsigned_8; end record; -- register(dest) <- register(src) & register(mask) type t_posthook_action_write_mask is record offset_dest : unsigned_32; offset_src : unsigned_32; offset_mask : unsigned_32; mode : unsigned_8; end record; MODE_STANDARD : constant := 0; MODE_NOT : constant := 1; type t_posthook_instruction (instr : t_posthook_action := POSTHOOK_NIL) is record case instr is when POSTHOOK_NIL => null; when POSTHOOK_READ => read : t_posthook_action_read; when POSTHOOK_WRITE => write : t_posthook_action_write; when POSTHOOK_WRITE_REG => write_reg : t_posthook_action_write_reg; when POSTHOOK_WRITE_MASK => write_mask : t_posthook_action_write_mask; end case; end record; -- number of posthooks subtype t_posthook_instruction_number is integer range 1 .. MAX_POSTHOOK_INSTR; -- array of posthooks type t_posthook_instruction_list is array (t_posthook_instruction_number'range) of t_posthook_instruction; type t_interrupt_posthook is record action : t_posthook_instruction_list; -- Reading, writing, masking... status : unsigned_32; data : unsigned_32; end record; type t_interrupt_config is record handler : ewok.interrupts.t_interrupt_handler_access := NULL; interrupt : soc.interrupts.t_interrupt := soc.interrupts.INT_NONE; mode : ewok.tasks_shared.t_scheduling_post_isr; posthook : t_interrupt_posthook; end record; type t_interrupt_config_access is access all t_interrupt_config; end ewok.exported.interrupts;
src/main/antlr4/imports/mysql_view.g4
HieuMinh0609/kafka-maxwell
0
4662
<filename>src/main/antlr4/imports/mysql_view.g4<gh_stars>0 grammar mysql_view; import mysql_literal_tokens, mysql_idents; /* This in an intentionally incomplete grammar for parsing VIEW statements. It's designed to parse up to the (SELECT *), as that cruft is too tricky to capture with a regular-expression based blacklist. */ alter_view: ALTER view_options* VIEW name; create_view: CREATE (OR REPLACE)? view_options* VIEW name; view_options: ALGORITHM '=' (UNDEFINED | MERGE | TEMPTABLE) | DEFINER '=' (user | CURRENT_USER) | SQL SECURITY ( DEFINER | INVOKER );
programs/oeis/136/A136302.asm
neoneye/loda
22
160988
; A136302: Transform of A000027 by the T_{1,1} transformation (see link). ; 2,6,15,35,81,188,437,1016,2362,5491,12765,29675,68986,160373,372822,866706,2014847,4683951,10888865,25313540,58846841,136802308,318026782,739322571,1718716457,3995531011,9288482690,21593102505,50197873146,116695897118,271285047567,630661221611,1466109466817,3408291004796,7923315302365,18419473364320,42820080493026,99544610052803,231413142536677,537970287997451,1250629188971802,2907360133457181,6758792310425390,15712285853333610,36526633072607231,84914119821579863,197401379172858737,458902530948023716,1066818954319933537,2480053180236611916,5765424163017992390,13402985082900686875,31158160102902687761,72433934305924681923,168388467794869357122,391455694875661395281,910024083343170153522,2115549328073057027126,4918055512408492169615,11433091964422532608115,26578714196523670512241,61788014173134438490108,143639706090778507053957,333921804122590314693896,776274014359348368463882,1804618140923642983057811,4195228198174822526939565,9752722327036529983166955,22672328725683587878679546,52706769721152526196644293,122528374039126932815740742,284843911400759333932613186,662181755845176662363002367,1539385818773138252039521471,3578637856029820765325172865,8319323686388362454259478020,19340081165878584084167609801,44960233980888848109309046228,104519863297297738613851397102,242979203095994103707103708651,564858116674275682002917377977,1313135807128136577208396113731,3052670391131852471326457293890,7096597675813559941565497032185,16497588052305111459251972622506,38352239196420066965951381097038,89158139160463537920915695078287,207267527140855591290096295663291,481838542298059764994408877930337,1120138711772931650323949737542716,2604006577863531012273127752430765,6053580852342789501165892660137200,14072868113074238129275372213092786,32715449212400666397767459071434723,76054192263396312435917525448255797,176804546478461842641493030414990731,411020704120993569450411499419895322,955507211669453335504165962877960301 add $0,2 mov $1,2 mov $2,2 mov $3,3 lpb $0 sub $0,1 add $1,$3 add $3,$2 add $2,$1 sub $1,4 sub $2,4 lpe mov $0,$1
tests/tdsyev.adb
leo-brewin/ada-lapack
5
22179
<gh_stars>1-10 with Ada.Text_IO; with Ada.Text_IO.Complex_IO; with Ada.Numerics.Generic_Real_Arrays; with Ada.Numerics.Generic_Complex_Types; with Ada.Numerics.Generic_Complex_Arrays; with Ada.Numerics.Generic_Elementary_Functions; with Ada.Numerics.Generic_Complex_Elementary_Functions; with Ada_Lapack; use Ada.Text_IO; procedure tdsyev is type Real is digits 18; package Real_Arrays is new Ada.Numerics.Generic_Real_Arrays (Real); package Complex_Types is new Ada.Numerics.Generic_Complex_Types (Real); package Complex_Arrays is new Ada.Numerics.Generic_Complex_Arrays (Real_Arrays, Complex_Types); package Real_Maths is new Ada.Numerics.Generic_Elementary_Functions (Real); package Complex_Maths is new Ada.Numerics.Generic_Complex_Elementary_Functions (Complex_Types); package Real_IO is new Ada.Text_IO.Float_IO (Real); package Integer_IO is new Ada.Text_IO.Integer_IO (Integer); package Complex_IO is new Ada.Text_IO.Complex_IO (Complex_Types); package Lapack is new Ada_Lapack(Real, Complex_Types, Real_Arrays, Complex_Arrays); use Lapack; use Real_Arrays; use Complex_Types; use Complex_Arrays; use Real_IO; use Integer_IO; use Complex_IO; use Real_Maths; use Complex_Maths; matrix : Real_Matrix (1..5,1..5); matrix_rows : Integer := Matrix'Length (1); matrix_cols : Integer := Matrix'Length (2); eigenvalues : Real_Vector (1..matrix_rows); eigenvalues_rows : Integer := matrix_rows; short_vector : Real_Vector (1..1); return_code : Integer; begin matrix:= (( 1.96, -6.49, -0.47, -7.20, -0.65 ), ( -6.49, 3.80, -6.39, 1.50, -6.34 ), ( -0.47, -6.39, 4.17, -1.51, 2.67 ), ( -7.20, 1.50, -1.51, 5.70, 1.80 ), ( -0.65, -6.34, 2.67, 1.80, -7.10 )); SYEV ( JOBZ => 'V', UPLO => 'U', A => matrix, N => matrix_cols, LDA => matrix_rows, W => eigenvalues, WORK => short_vector, LWORK => -1, INFO => return_code ); declare work_vector_rows : Integer := Integer( short_vector(1) ); work_vector : Real_Vector (1 .. work_vector_rows); begin SYEV ( JOBZ => 'V', UPLO => 'U', A => matrix, N => matrix_cols, LDA => matrix_rows, W => eigenvalues, WORK => work_vector, LWORK => work_vector_rows, INFO => return_code ); end; if (return_code /= 0) then Put ("DSYEV failed, the return code was : "); Put ( return_code ); New_line; else Put_line("The eigenvalues"); for i in eigenvalues'range loop put(eigenvalues(i),3,4,0); put(" "); end loop; new_line; new_line; Put_line("The eigenvectors"); for i in 1..matrix_rows loop for j in 1..matrix_cols loop put(matrix(i,j),3,4,0); end loop; new_line; end loop; end if; end tdsyev;
IEAATParser/src/main/antlr4/nl/utwente/fmt/ieaatparser/antlr/VirtualEdges.g4
SwiftPengu/ProbabilisticVulnerabilityAnalysis
0
1519
<filename>IEAATParser/src/main/antlr4/nl/utwente/fmt/ieaatparser/antlr/VirtualEdges.g4<gh_stars>0 grammar VirtualEdges; path: 'self' ('.' ID)+ '->' 'asSet' '(' ')'; DASH: '-'; CHAR: 'a'..'z' | 'A'..'Z'; NUMBER: DIGIT+; DIGIT: [0-9]; ID : CHAR (CHAR | NUMBER | '_')* ; WS : [ \t\r\n]+ -> skip ; // skip spaces, tabs, newlines COMMENT : DASH DASH ~[\r\n]* -> skip;
alloy4fun_models/trashltl/models/4/EqoNbCBbNWTYqiffc.als
Kaixi26/org.alloytools.alloy
0
4402
open main pred idEqoNbCBbNWTYqiffc_prop5 { some File releases some Trash } pred __repair { idEqoNbCBbNWTYqiffc_prop5 } check __repair { idEqoNbCBbNWTYqiffc_prop5 <=> prop5o }
programs/oeis/099/A099638.asm
neoneye/loda
22
177443
<reponame>neoneye/loda ; A099638: a[n]=A098210[n]/15. ; 1,77,7437,741037,74077037,7407437037,740741037037,74074077037037,7407407437037037,740740741037037037,74074074077037037037,7407407407437037037037,740740740741037037037037 seq $0,199685 ; a(n) = 5*10^n+1. pow $0,2 div $0,135 mul $0,4 add $0,1
dos/DosSetDateTime.asm
osfree-project/FamilyAPI
0
171264
<reponame>osfree-project/FamilyAPI<filename>dos/DosSetDateTime.asm ;/*! ; @file ; ; @ingroup fapi ; ; @brief DosSetDateTime 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 dos.inc _TEXT SEGMENT BYTE PUBLIC 'CODE' USE16 @PROLOG DOSSETDATETIME DateTime DD ? @START DOSSETDATETIME LDS SI, [DS:BP].ARGS.DateTime SET_DATE WORD PTR [DS:SI+6], BYTE PTR [DS:SI+5], BYTE PTR [DS:SI+4] SET_TIME BYTE PTR [DS:SI], BYTE PTR [DS:SI+1], BYTE PTR [DS:SI+2], BYTE PTR [DS:SI+3] @EPILOG DOSSETDATETIME _TEXT ENDS END
dino/lcs/base/21.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
6
243738
<reponame>zengfr/arcade_game_romhacking_sourcecode_top_secret_data<gh_stars>1-10 copyright zengfr site:http://github.com/zengfr/romhack 0007EC move.b ($21,A5), D0 [base+ 24] 0007F0 move.b D0, D1 [base+ 21] 09D46A or.b D0, ($21,A5) 09D46E rts [base+ 21] 09D472 and.b D0, ($21,A5) 09D476 rts [base+ 21] 09D4AE or.b D0, ($21,A5) 09D4B2 rts [base+ 21] 09D4B8 and.b D0, ($21,A5) 09D4BC rts [base+ 21] copyright zengfr site:http://github.com/zengfr/romhack
oeis/239/A239909.asm
neoneye/loda-programs
11
104895
; A239909: Arises from a construction of equiangular lines in complex space of dimension 2. ; Submitted by <NAME> ; 1,1,2,3,5,9,15,26,45,77,133,229,394,679,1169,2013,3467,5970,10281,17705,30489,52505,90418,155707,268141,461761,795191,1369386,2358197,4061013,6993405,12043229,20739450,35715071,61504345,105915637,182395603,314100514,540907409,931487889,1604100209,2762394993,4757075682,8192082995,14107453461,24294217145,41836677919,72046265530,124069707133,213658433437,367937728181,633619603221,1091146057706,1879044955671,3235872888417,5572444298573,9596216084955,16525488316274,28458275811385,49007535914041 mov $1,1 lpb $0 sub $0,1 add $2,$1 add $1,$3 sub $4,$3 add $4,$2 add $3,$4 sub $4,$3 add $3,$4 lpe mov $0,$1
oeis/142/A142901.asm
neoneye/loda-programs
11
163763
; A142901: Primes congruent to 22 mod 63. ; Submitted by <NAME> ; 211,337,463,967,1093,1471,1597,1723,2731,2857,3109,3361,3613,3739,4243,4621,4999,5503,5881,6007,6133,6637,6763,7393,8527,8779,9157,9283,9661,9787,10039,11047,11173,11299,11551,11677,12433,13063,13441,13567,13693,14071,14197,14323,14449,14827,15331,15583,16087,16339,16843,17599,17851,17977,18229,18481,18859,19237,19489,19867,19993,20749,21001,21379,21757,22639,23017,23143,23269,23773,23899,24151,24781,24907,25033,25411,25537,26041,26293,27427,28057,28183,28309,28687,28813,29191,29443,29569,29947 mov $1,42 mov $2,$0 add $2,2 pow $2,2 lpb $2 sub $2,1 mov $3,$1 mul $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,63 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 mul $0,2 sub $0,125
cmd/diskcopy/dcopypar.asm
minblock/msdos
0
87426
<reponame>minblock/msdos PAGE 90,132 ;AN000;A2 TITLE DCOPYPAR.SAL - LOOK AT COMMAND LINE PARMS ;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ ;****************** START OF SPECIFICATIONS ***************************** ; MODULE NAME: DCOPYPAR.SAL ; ; DESCRIPTIVE NAME: Handle the definition of the DOS command line parameters ; and the interface to the DOS system PARSER. ; ;FUNCTION: The static data areas are prescribed by the DOS system PARSER ; to define the several parameters presented to DISKCOPY. These ; data areas are passed to the PARSER, and its responses checked ; to determine the nature of the user's specifications. Any errors ; found in the user's parameters are defined in messages back ; to the user. ; ; ENTRY POINT: PARSER, near ; ; INPUT: (DOS COMMAND LINE PARAMETERS) ; ; [d:][path] DISKCOPY [d: [d:]][/1] ; ; WHERE ; [d:][path] - Path where the DISKCOPY command resides. ; ; [d:] - To specify the Source drive ; ; [d:] - To specify the Destination drive ; ; [/1] - To copy only the first side of the diskette, ; regardless of the diskette or drive type. ; ; Upon entry to PARSER in this module, ; "CURRENT_PARM" = offset to start of parm text in command string ; "ORDINAL" = initialized to zero ; PSP+81H = text of DOS command line parms string ; EXIT-NORMAL: ; "SOURCE_DRIVE" = CHAR OF FIRST DRIVE ID SPECIFIED, BLANK IF NONE ; "TARGET_DRIVE" = CHAR OF SECOND DRIVE ID IF BOTH SPECIFIED, BLANK ; IF NONE OR ONLY ONE SPECIFIED ; "USER_OPTION" = 01 ON IF /1, -1 IF /1 NOT SPECIFIED. ; EXIT-ERROR: ; IF ERROR, ERROR MESSAGE IS DISPLAYED, AND "EXITFL" HAS "EXPAR". ; INTERNAL REFERENCES: ; ROUTINES: ; PARSER:NEAR Call the system Parser to decode command line ; PARSE_ERROR:NEAR Display the appropriate Parse error message. ; DATA AREAS: ; The several parameter control blocks, defined by the System ; PARSER interface, defining the DISKCOPY parameters. ; EXTERNAL REFERENCES: ; ROUTINES: ; SENDMSG:NEAR Uses Msg Descriptor to drive message handler. ; SYSPARSE:NEAR System Command Line Common Parser. ; ; DATA AREAS: ; EXITFL:BYTE Errorlevel return code. ; MSGNUM_PARSE:WORD Message descriptor for all parse errors. ; USER_OPTION:BYTE /1 parm indicator ; SOURCE_DRIVE:BYTE character of first specified drive ; TARGET_DRIVE:BYTE character of second specified drive ; ; NOTES: ; This module should be processed with the SALUT preprocessor ; with the re-alignment not requested, as: ; ; SALUT DCOPYPAR,NUL ; ; To assemble these modules, the alphabetical or sequential ; ordering of segments may be used. ; ; For LINK instructions, refer to the PROLOG of the main module, ; DISKCOPY.SAL. ; ;PROGRAM AUTHOR: DOS 4.00 EMK ;****************** END OF SPECIFICATIONS ***************************** IF1 ;AN000; %OUT COMPONENT=DISKCOPY, MODULE=DCOPYPAR.SAL... ;AN000; ENDIF ;AN000; ; = = = = = = = = = = = = INCLUDE PATHMAC.INC ;AN015;PATHGEN MACRO ; = = = = = = = = = = = = HEADER MACRO TEXT ;;AN000; .XLIST ;;AN000; SUBTTL TEXT ;;AN000; .LIST ;;AN000; PAGE ;;AN000; ENDM ;;AN000; ; = = = = = = = = = = = = ; $SALUT (4,23,28,36) ;AN000; ; LOCAL EQUATES FALSE EQU 0 ;AN000;RETURN VALUES FOR TRUE EQU NOT FALSE ;AN000; /1 SWITCH CHAR_A EQU "A" ;AN000;ASCII VALUE OF CHARACTER "A" BLANK EQU " " ;AN001; NUL EQU 0 ;AN003; ; = = = = = = = = = = = = ; EXIT CODES FROM SYSPARSE (WHEN CY=0) SYSPRM_EX_OK EQU 0 ;AN000; no error SYSPRM_EX_MANY EQU 1 ;AN000; too many operands SYSPRM_EX_MISSING EQU 2 ;AN000; required operand missing SYSPRM_EX_NOT_SWLIST EQU 3 ;AN000; not in switch list provided SYSPRM_EX_NOT_KEYLIST EQU 4 ;AN000; not in keyword list provided SYSPRM_EX_RANGE EQU 6 ;AN000; out of range specified SYSPRM_EX_VALUE EQU 7 ;AN000; not in value list provided SYSPRM_EX_STRING EQU 8 ;AN000; not in string list provided SYSPRM_EX_SYNTAX EQU 9 ;AN000; syntax error SYSPRM_EX_EOL EQU -1 ;AN000; end of command line ; = = = = = = = = = = = = HEADER <STRUC - DEFINITIONS OF EXTERNAL CONTROL BLOCKS> ;AN000; PSP STRUC ;AN000; DB 80H DUP (?) ;AN000;SKIP OVER FIRST HALF OF PSP PSP_PARMLEN DB ? ;AN000;NUMBER OF BYTES IN DOS COMMAND LINE PSP_COMMAND DB 127 DUP(?) ;AN000;TEXT OF DOS COMMAND LINE PSP ENDS ;AN000; MSG_DESC STRUC ;AN003; MSG_NUM DW ? ;AN003;MESSAGE NUMBER (TO AX) MSG_HANDLE DW ? ;AN003;HANDLE OF OUTPUT DEVICE (TO BX) MSG_SUBLIST DW ? ;AN003;POINTER TO SUBLIST (TO SI) MSG_COUNT DW ? ;AN003;SUBSTITUTION COUNT (TO CX) MSG_CLASS DW ? ;AN003;MESSAGE CLASS (IN HIGH BYTE, TO DH) ; LOW BYTE HAS 0 (FUNCTION "NO INPUT", TO DL) MSG_DESC ENDS ;AN003; ONE_SUBS EQU 1 ;AN003;NUMBER OF VARIABLES SUBLIST STRUC ;AN000; SUB_SIZE DB ? ;AN003;SUBLIST SIZE (POINTER TO NEXT SUBLIST) SUB_RES DB ? ;AN003;RESERVED ;NEXT FIELD IS TO BE USED AS A DOUBLE WORD SUB_VALUE DW ? ;AN003;TIME, DATE, OR PTR TO DATA ITEM SUB_VALUE_SEG DW ? ;AN003;SEG ID OF PTR ;(ABOVE FIELD MUST BE FILLED AT EXECUTION TIME ; IF THIS IS A .COM FILE) SUB_ID DB ? ;AN003;N OF %N SUB_FLAGS DB ? ;AN003;DATA TYPE FLAGS SUB_MAX_WIDTH DB ? ;AN003;MAXIMUM FIELD WIDTH (0=UNLIMITED) SUB_MIN_WIDTH DB ? ;AN003;MINIMUM FIELD WIDTH SUB_PAD_CHAR DB ? ;AN003;CHARACTER FOR PAD FIELD ; CAN BE " ", "0" OR ",". ; "," CAUSES INSERTION OF THE ACTIVE ; THOUSANDS SEPARATOR BETWEEN EVERY 3 DIGITS. SUBLIST ENDS ;AN003; ; = = = = = = = = = = = = HEADER <PARSING WORKAREAS> ;AN000; ; $SALUT (4,14,19,36) ;AN000; EXTRN EXPAR:ABS ;AN000;ERRORLEVEL VALUE FOR BAD PARMS EXTRN FINE:ABS ;AN000;RETURN STATUS INDICATOR CSEG SEGMENT PARA PUBLIC 'CODE' ;AN000; ASSUME CS:CSEG,DS:CSEG,ES:CSEG,SS:CSEG ;AN000; EXTRN SENDMSG:NEAR ;AN000;USES MSG DESCRIPTOR TO DRIVE MESSAGE HANDLR EXTRN SYSPARSE:NEAR ;AN000;SYSTEM COMMAND LINE PARSER EXTRN EXITFL:BYTE ;AN000;ERRORLEVEL RETURN CODE EXTRN SOURCE_DRIVE:BYTE ;AN000;FIRST DRIVE LETTER SPECIFIED IN PARMS EXTRN TARGET_DRIVE:BYTE ;AN000;SECOND DRIVE LETTER SPECIFIED EXTRN USER_OPTION:BYTE ;AN000;NO OPTION (-1) /1 (1), INVALID (9) EXTRN VERIFY_OPTION:BYTE ; 0 - do not verify, 1 - verify EXTRN SHOW_OPTIONS:BYTE ; 0 - do not show options, 1 - show 'em NO_OPTION EQU -1 ;AN000;NO OPTION "/1" SPECIFIED OPTION_1 EQU 1 ;AN000;OPTION "/1" SPECIFIED EXTRN MSGNUM_PARSE:WORD ;AN000;MESSAGE DESCRIPTOR FOR ALL PARSE ERRORS EXTRN MSGNUM_INVALID_PARM2:WORD ;AN005;HELP INFO EXTRN SUBLIST_PARSE:WORD ;AN003;POINTS TO INVALID PARM ; = = = = = = = = = = = = CURRENT_PARM DW 81H ;AN000;POINTER INTO COMMAND OF NEXT OPERAND PUBLIC CURRENT_PARM ;AN000; ORDINAL DW 0 ;AN000;ORDINAL NUMBER OF WHICH PARM TO PARSE PUBLIC ORDINAL ;AN000; ; = = = = = = = = = = = = HEADER <DOS COMMAND LINE PARSER CONTROL BLOCKS> ;AN000; ;INPUT PARAMETERS CONTROL BLOCK, POINTED TO BY ES:DI WHEN CALLING PARSER PUBLIC PARMS ;AN000;LET LINK MAKE PARMS BLOCK ADDRESSABLE PARMS LABEL BYTE ;AN000;PARMS CONTROL BLOCK DW PARMSX ;AN000;POINTER TO PARMS EXTENSION DB 0 ;AN000; NUMBER OF STRINGS (0, 1, 2) ; NEXT LIST WOULD BE EXTRA DELIM LIST ; (,& WHITESPACE ALWAYS) ; NEXT LIST WOULD BE EXTRA END OF LINE LIST ; (CR,LF,0 ALWAYS) ;SYSTEM PARSER PARAMETER EXTENSION CONTROL BLOCK PARMSX LABEL BYTE ;AN000;PARMS EXTENSION CONTROL BLOCK DB 0,2 ;AN000; MIN, MAX POSITIONAL OPERANDS ALLOWED DW CONTROL_POS ;AN000; DESCRIPTION OF POSITIONAL 1 DW CONTROL_POS ;AN000; DESCRIPTION OF POSITIONAL 2 DB 3 ;AN000; MAX SWITCH OPERANDS ALLOWED DW CONTROL_SW1 ;AN000; DESCRIPTION OF SWITCH 1 DW CONTROL_SW2 ;AN000; DESCRIPTION OF SWITCH 2 DW CONTROL_SW3 ;4/18/90 /? switch DB 0 ;AN000; MAX KEYWORD OPERANDS ALLOWED ; THERE IS NO CONTROL BLOCK ; DEFINING KEYWORDS ; = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = HEADER <POSITIONAL PARM DESCRIPTOR BLOCK> ;AN000; ;PARSER CONTROL BLOCK DEFINING THE ONLY POSITIONAL PARAMETER, OPTIONAL ;FIRST POSITIONAL PARAMETER IS: ; [D:] - SPECIFY THE SOURCE DRIVE. PUBLIC CONTROL_POS ;AN000;LET LINK MAKE THIS ADDRESSABLE CONTROL_POS LABEL BYTE ;AN000;FIRST POSITIONAL DESCRIPTOR FOR FILESPEC, ; OPTIONAL DW 0101H ;AN000; CONTROLS TYPE MATCHED ; SELECTED BITS: "DRIVE ONLY" AND "OPTIONAL" ; 8000H=NUMERIC VALUE, (VALUE LIST WILL BE CHECKED) ; 4000H=SIGNED NUMERIC VALUE (VALUE LIST WILL BE ; CHECKED) ; 2000H=SIMPLE STRING(VALUE LIST WILL BE CHECKED) ; 1000H=DATE STRING (VALUE LIST WON'T BE CHECKED) ; 0800H=TIME STRING (VALUE LIST WON'T BE CHECKED) ; 0400H=COMPLEX LIST (VALUE LIST WON'T BE CHECKED) ; 0200H=FILE SPEC (VALUE LIST WON'T BE CHECKED) ; 0100H=DRIVE ONLY (VALUE LIST WON'T BE CHECKED) ; 0080H=QUOTED STRING (VALUE LIST WON'T BE CHECKED) ; 0010H=IGNORE ":" AT END IN MATCH ; 0002H=REPEATS ALLOWED ; 0001H=OPTIONAL DW 0002H ;AN000;FUNCTION_FLAGS ; 0001H=CAP RESULT BY FILE TABLE ; 0002H=CAP RESULT BY CHAR TABLE ; 0010H=REMOVE ":" AT END DW RESULT1 ;AN000; RESULT BUFFER DW NOVALS ;AN000; NO VALUE LISTS DB 0 ;AN000; NUMBER OF KEYWORD/SWITCH SYNONYMS ; IN FOLLOWING LIST ;VALUE CONTROL BLOCK FOR THE POSITIONAL PARAMETERS NOVALS DB 0 ;AN000;NO VALUE DEFINITIONS ;RESULTS CONTROL BLOCK FOR THE POSITIONAL PARAMETER RESULT1 LABEL BYTE ;AN000; BELOW FILLED IN FOR DEFAULTS DB 6 ;AN000; TYPE RETURNED: 0=RESERVED, ; 1=NUMBER, 2=LIST INDEX, ; 3=STRING, 4=COMPLEX, ; 5=FILESPEC, 6=DRIVE ; 7=DATE, 8=TIME ; 9=QUOTED STRING RESULT_TAG DB 0FFH ;AN000; MATCHED ITEM TAG DW 0 ;AN000;POINTER TO SYNONYM RESULT_PTR1 DB ? ;AN000;DRIVE NUMBER (A=1, B=2, ETC) ; = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = HEADER <SWITCH PARM DESCRIPTOR BLOCK> ;AN000; ;PARSER CONTROL BLOCK DEFINING THE SWITCHES, OPTIONAL ;THE SWITCH IS "/1", MEANING ONLY COPY FIRST SIDE. PUBLIC CONTROL_SW1 ;AN000;LET LINK MAKE THIS ADDRESSABLE CONTROL_SW1 LABEL BYTE ;AN000;SWITCH DESCRIPTOR FOR /1 DW 0001H ;AN000; CONTROLS TYPE MATCHED ;SELECTED BITS: "OPTIONAL" ; 8000H=NUMERIC VALUE, (VALUE LIST WILL BE CHECKED) ; 4000H=SIGNED NUMERIC VALUE (VALUE LIST WILL BE ; CHECKED) ; 2000H=SIMPLE STRING(VALUE LIST WILL BE CHECKED) ; 1000H=DATE STRING (VALUE LIST WON'T BE CHECKED) ; 0800H=TIME STRING (VALUE LIST WON'T BE CHECKED) ; 0400H=COMPLEX LIST (VALUE LIST WON'T BE CHECKED) ; 0200H=FILE SPEC (VALUE LIST WON'T BE CHECKED) ; 0100H=DRIVE ONLY (VALUE LIST WON'T BE CHECKED) ; 0080H=QUOTED STRING (VALUE LIST WON'T BE CHECKED) ; 0010H=IGNORE ":" AT END IN MATCH ; 0002H=REPEATS ALLOWED ; 0001H=OPTIONAL DW 0002H ;AN000;FUNCTION_FLAGS ; 0001H=CAP RESULT BY FILE TABLE ; 0002H=CAP RESULT BY CHAR TABLE ; 0010H=REMOVE ":" AT END DW RESULTSW1 ;AN000; RESULT BUFFER DW NOVALS ;AN000; VALUE LISTS DB 1 ;AN000; NUMBER OF KEYWORD/SWITCH SYNONYMS ; IN FOLLOWING LIST SW_1 DB "/1",0 ;AN000; IF n >0, SWITCH 1 ;RESULTS CONTROL BLOCK FOR THE SWITCHES RESULTSW1 LABEL BYTE ;AN000; BELOW FILLED IN FOR DEFAULTS DB 3 ;AN000; TYPE RETURNED: 0=RESERVED, ; 1=NUMBER, 2=LIST INDEX, ; 3=STRING, 4=COMPLEX, ; 5=FILESPEC, 6=DRIVE ; 7=DATE, 8=TIME ; 9=QUOTED STRING DB 0FFh ;AN000; MATCHED ITEM TAG DW 0 ;AN000; SYNONYM POINTER (BASED ON ES:) RESULT_PTR21 DD ? ;AN000; OFFSET OF STRING VALUE ;THE SWITCH IS "/V", MEANING VERIFY ALL TRACK WRITES PUBLIC CONTROL_SW2 ;AN000;LET LINK MAKE THIS ADDRESSABLE CONTROL_SW2 LABEL BYTE ;AN000;SWITCH DESCRIPTOR FOR /1 DW 0001H ;AN000; CONTROLS TYPE MATCHED ;SELECTED BITS: "OPTIONAL" DW 0002H ;AN000;FUNCTION_FLAGS ; 0001H=CAP RESULT BY FILE TABLE ; 0002H=CAP RESULT BY CHAR TABLE ; 0010H=REMOVE ":" AT END DW RESULTSW2 ;AN000; RESULT BUFFER DW NOVALS ;AN000; VALUE LISTS DB 1 ;AN000; NUMBER OF KEYWORD/SWITCH SYNONYMS ; IN FOLLOWING LIST SW_2 DB "/V",0 ;AN000; IF n >0, SWITCH 1 ;RESULTS CONTROL BLOCK FOR THE SWITCHES RESULTSW2 LABEL BYTE ;AN000; BELOW FILLED IN FOR DEFAULTS DB 3 ;AN000; TYPE RETURNED: 0=RESERVED, ; 1=NUMBER, 2=LIST INDEX, ; 3=STRING, 4=COMPLEX, ; 5=FILESPEC, 6=DRIVE ; 7=DATE, 8=TIME ; 9=QUOTED STRING DB 0FFh ;AN000; MATCHED ITEM TAG DW 0 ;AN000; SYNONYM POINTER (BASED ON ES:) RESULT_PTR22 DD ? ;AN000; OFFSET OF STRING VALUE ;THE SWITCH IS "/?", MEANING DISPLAY OPTIONS MESSAGE PUBLIC CONTROL_SW3 CONTROL_SW3 LABEL BYTE DW 0000H ; MatchMask bits DW 0000H ; FuncMask bits DW RESULTSW3 ; ptr to Result Buffer DW NOVALS ; ptr to Value Buffer DB 1 ; count of synonyms that follow SW_3 DB "/?",0 ; text of /? switch ;RESULTS CONTROL BLOCK FOR THIS SWITCH RESULTSW3 LABEL BYTE DB 0 ; ValueType DB 0FFh ; Value List Tag DW 0 ; ptr to Synonym (filled in) RESULT_PTR3 DD ? ; Value returned (dummy) ; = = = = = = = = = = = = PATHLABL DCOPYPAR ;AN015; HEADER <PARSER - ASK SYSPARM TO DECODE PARAMETERS> ;AN000; ; $SALUT (4,4,9,36) ;AN000; PARSER PROC NEAR ;AN000; PUBLIC PARSER ;AN000; ;INPUT: "CURRENT_PARM" = OFFSET TO NEXT PARM IN COMMAND STRING ; "ORDINAL" = COUNT OF NEXT PARM TO PARSE ; PSP+81H = TEXT OF DOS COMMAND LINE PARMS STRING ;OUTPUT: "SOURCE_DRIVE" = VALUE OF FIRST DRIVE ID SPECIFIED, 0 IF NONE ; "TARGET_DRIVE" = VALUE OF SECOND DRIVE ID IF BOTH SPECIFIED, 0 ; IF NONE OR ONLY ONE SPECIFIED ; "USER_OPTION" = "OPTION_1" IF /1 SPECIFIED, -1 IF NOT SPECIFIED ; IF ERROR, ERROR MESSAGE IS DISPLAYED, AND "EXITFL" HAS "EXPAR". ; DX="FINE" IF NO ERROR, OR HAS OFFSET OF PARSE ERROR DESCRIPTOR IF PROBLEM ; = = = = = = = = = = = = mov VERIFY_OPTION, 0 ; assume no verify option MOV USER_OPTION, NO_OPTION ;AN000;ASSUME NO /1 IS ENTERED. ; $SEARCH COMPLEX ;AN000;LOOP THRU COMMAND LINE JMP SHORT $$SS1 $$DO1: ;LOOKING AT RETURN CODE FROM SYSPARSE... CMP AX,SYSPRM_EX_OK ;AN000;WERE THERE ANY ERRORS? ; $EXITIF NE ;AN000;HAD A PROBLEM JE $$IF1 CALL PARSE_ERROR ;AN000;DISPLAY REASON FOR ERROR ; $ORELSE ;AN000;SINCE NO PROBLEM, SO FAR JMP SHORT $$SR1 $$IF1: MOV ORDINAL,CX ;AN000;SAVE UPDATED COUNT MOV CURRENT_PARM,SI ;AN000;REMEMBER HOW FAR I GOT MOV BX,DX ;AN000;SET DATA BASE REG TO POINT TO THIS OPERAND CMP BX,OFFSET RESULT1 ;AN000;WAS POSITIONAL PARM SPECIFIED? ; $IF E ;AN000;IF POSITIONAL PARM SPECIFIED, JNE $$IF4 MOV SI,CX ;AN000;USE COUNT OF POSITIONALS AS INDEX MOV AL,RESULT_PTR1 ;AN000;GET VALUE OF DRIVE (A=1, B=2, ETC) MOV SOURCE_DRIVE-1[SI],AL ;AN000;SAVE RESPONSE VALUE ;IN EITHER SOURCE_DRIVE OR TARGET_DRIVE ;ACCORDING TO ORDINAL IN SI (FROM CX) ; $ELSE ;AN000;SINCE NOT POSITIONAL PARM SPECIFIED JMP SHORT $$EN4 $$IF4: ; Check to see if the parameter is one of ; the switches. ; Check Switch 1 (/1) cmp bx, offset RESULTSW1 ; was it /1 ? jne NotSwitch1 ; no, it should be /V MOV SW_1,BLANK ;AN001;AVOID GETTING DUPLICATE SWITCH MOV USER_OPTION,OPTION_1 ;AN000;MUST HAVE BEEN THE SWITCH, /1 jmp short sw_set NotSwitch1: ; Check Switch 2 (/V) cmp bx, offset RESULTSW2 ; was it /V? jne NotSwitch2 mov SW_2, BLANK ; only one /V allowed mov VERIFY_OPTION, 1 ; enable Verify operation jmp short sw_set NotSwitch2: ; Check Switch 3 (/?) cmp bx, offset RESULTSW3 ; was it /? jne NotSwitch3 ; jump if not mov SHOW_OPTIONS, 1 ; set flag for INIT jmp short sw_set ; (multiple /?s okay) NotSwitch3: ; Not one of the valid switches. ; What do we do now? ; When in doubt, fall thru to: sw_set: ; $ENDIF ;AN000; $$EN4: ; $STRTSRCH ;AN000; $$SS1: LEA DI,PARMS ;AN000; ES:DI = PARSE CONTROL DEFINITON MOV SI,CURRENT_PARM ;AN000; DS:SI = COMMAND STRING, NEXT PARM XOR DX,DX ;AN000; RESERVED, INIT TO ZERO MOV CX,ORDINAL ;AN000; OPERAND ORDINAL, INITIALLY ZERO CALL SYSPARSE ;AN000;LOOK AT DOS PARMS ; AX=EXIT CODE ; BL=TERMINATED DELIMETER CODE ; CX=NEW OPERAND ORDINAL ; SI=SET TO PAST SCANNED OPERAND ; DX=SELECTED RESULT BUFFER CMP AX,SYSPRM_EX_EOL ;AN000; IS THAT THE END OF THE PARMS? ;IF NOT, LOOP BACK AND FIND OUT ; WHAT THAT PARM IS ; $ENDLOOP E ;AN000;END OF LIST JNE $$DO1 MOV DX,FINE ;AN000;REPORT THAT PARSER WENT OK ; $ENDSRCH ;AN000;FINISHED WITH DOS COMMAND LINE $$SR1: RET ;AN000;RETURN TO CALLER PARSER ENDP ;AN000; ; = = = = = = = = = = = = HEADER <PARSE_ERROR - DISPLAY REASON FOR PARSE ERROR> ;AN000; PARSE_ERROR PROC NEAR ;AN000; ;INPUT: AX - ERROR NUMBER RETURNED FROM PARSE. ; "CURRENT_PARM" - OFFSET TO WHERE THE BAD PARM STARTED ;OUTPUT: APPROPRIATE ERROR MESSAGE IS PREPARED FOR DISPLAY. ; DX IS SET TO OFFSET OF PARSE ERROR DESCRIPTOR. ; = = = = = = = = = = = = MOV MSGNUM_PARSE,AX ;AN000;PASS MESSAGE NUMBER TO DESCRIPTOR MOV EXITFL,EXPAR ;AN000;ERRORLEVEL CODE TO "PARM ERROR" MOV AX,CURRENT_PARM ;AN003;GET POINTER TO START OF BAD PARM CMP SI,AX ;AN003;HAS THE INDEX TO COMMAND LINE MOVED? ; $IF NE ;AN003;YES, THERE IS A FAULTY PARM JE $$IF10 MOV BYTE PTR [SI],NUL ;AN003;DELIMIT THE BAD PARM MOV SUBLIST_PARSE.SUB_VALUE,AX ;AN000;POINT SUBLIST TO BAD PARM MOV MSGNUM_PARSE.MSG_SUBLIST,OFFSET SUBLIST_PARSE ;AN003;POINT TO SUBLIST MOV MSGNUM_PARSE.MSG_COUNT,ONE_SUBS ;AN003;SET COUNT OF SUBLISTS TO ONE ; $ENDIF ;AN003;INDEX MOVED? $$IF10: MOV DI,OFFSET MSGNUM_PARSE ;AC005;PASS BACK OFFSET TO PARSE ERR DESCRIPTOR CALL SENDMSG ;AN005;DISPLAY THE ERROR MESSAGE ; "Do not specify filename(s)",CR,LF ; "Command Format: DISKCOPY d: d: [/1]",CR,LF MOV DX,OFFSET MSGNUM_INVALID_PARM2 ;AN005;DISPLAY HELP INFO RET ;AN000;RETURN TO CALLER PARSE_ERROR ENDP ;AN000; ; = = = = = = = = = = = = PATHLABL DCOPYPAR ;AN015; CSEG ENDS ;AN000; END ;AN000; 
alloy4fun_models/trainstlt/models/8/5ZFv4nS23ovaQDeud.als
Kaixi26/org.alloytools.alloy
0
1036
<reponame>Kaixi26/org.alloytools.alloy open main pred id5ZFv4nS23ovaQDeud_prop9 { always (all t:Train| once(no t.pos and after one t.pos:>Entry) ) } pred __repair { id5ZFv4nS23ovaQDeud_prop9 } check __repair { id5ZFv4nS23ovaQDeud_prop9 <=> prop9o }
Data/Either/Equiv.agda
Lolirofle/stuff-in-agda
6
2766
<reponame>Lolirofle/stuff-in-agda<filename>Data/Either/Equiv.agda module Data.Either.Equiv where import Lvl open import Data.Either as Either open import Structure.Function.Domain open import Structure.Function open import Structure.Operator open import Structure.Setoid open import Type private variable ℓ ℓₑ ℓₑ₁ ℓₑ₂ : Lvl.Level private variable A B : Type{ℓ} record Extensionality ⦃ equiv-A : Equiv{ℓₑ₁}(A) ⦄ ⦃ equiv-B : Equiv{ℓₑ₂}(B) ⦄ (equiv : Equiv{ℓₑ}(A ‖ B)) : Type{Lvl.of(A) Lvl.⊔ Lvl.of(B) Lvl.⊔ ℓₑ₁ Lvl.⊔ ℓₑ₂ Lvl.⊔ ℓₑ} where constructor intro private instance _ = equiv field ⦃ Left-function ⦄ : Function Left ⦃ Right-function ⦄ : Function Right ⦃ Left-injective ⦄ : Injective Left ⦃ Right-injective ⦄ : Injective Right Left-Right-inequality : ∀{x : A}{y : B} → (Left x ≢ Right y)
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca.log_3585_1072.asm
ljhsiun2/medusa
9
16487
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x11b53, %rsi lea addresses_WC_ht+0x5691, %rdi nop nop nop nop lfence mov $73, %rcx rep movsw add $59602, %rdx lea addresses_WT_ht+0x8513, %rdx nop nop nop nop add $14150, %r15 mov (%rdx), %edi inc %r8 lea addresses_WC_ht+0x18d13, %rsi nop nop dec %r10 mov $0x6162636465666768, %rcx movq %rcx, (%rsi) inc %r15 lea addresses_UC_ht+0x18d13, %r15 nop nop nop nop nop cmp $14430, %rcx vmovups (%r15), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $1, %xmm7, %rdi nop nop nop nop sub %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %r8 pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %r8 push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_RW+0x5713, %rsi lea addresses_normal+0x1f913, %rdi nop nop nop nop and $46186, %r8 mov $35, %rcx rep movsb nop xor $12550, %rcx // Load lea addresses_UC+0x9d13, %rdi nop nop nop dec %r15 vmovups (%rdi), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $1, %xmm6, %r10 nop nop nop nop dec %r15 // Store lea addresses_WC+0x9537, %rsi clflush (%rsi) nop and $54982, %rdi movb $0x51, (%rsi) nop nop nop nop sub %r8, %r8 // Faulty Load mov $0x40f8950000000513, %r10 nop nop nop and $16738, %rdx movups (%r10), %xmm7 vpextrq $0, %xmm7, %rsi lea oracles, %r15 and $0xff, %rsi shlq $12, %rsi mov (%r15,%rsi,1), %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %r8 pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'} {'src': {'congruent': 5, 'same': False, 'type': 'addresses_RW'}, 'OP': 'REPM', 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_normal'}} {'src': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_UC'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WC'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 16, 'NT': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 11, 'AVXalign': False, 'same': True, 'size': 4, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'00': 3585} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
user/curros.asm
mohammad-yazdani/curros
0
16494
SYSCALL_VEC equ 51 SECTION .text BITS 64 GLOBAL syscall syscall: ; rdi = function number ; rsi = args int SYSCALL_VEC ret
ffmpeg-3.2.5/libavfilter/x86/vf_fspp.asm
huyu0415/FFmpeg
3,645
97904
<filename>ffmpeg-3.2.5/libavfilter/x86/vf_fspp.asm ;***************************************************************************** ;* x86-optimized functions for fspp filter ;* ;* Copyright (c) 2003 <NAME> <<EMAIL>> ;* Copyright (C) 2005 <NAME> <<EMAIL>> ;* ;* This file is part of FFmpeg. ;* ;* FFmpeg is free software; you can redistribute it and/or modify ;* it under the terms of the GNU General Public License as published by ;* the Free Software Foundation; either version 2 of the License, or ;* (at your option) any later version. ;* ;* FFmpeg is distributed in the hope that it will be useful, ;* but WITHOUT ANY WARRANTY; without even the implied warranty of ;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;* GNU General Public License for more details. ;* ;* You should have received a copy of the GNU General Public License along ;* with FFmpeg; if not, write to the Free Software Foundation, Inc., ;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ;****************************************************************************** %include "libavutil/x86/x86util.asm" SECTION_RODATA pb_dither: db 0, 48, 12, 60, 3, 51, 15, 63, 32, 16, 44, 28, 35, 19, 47, 31, \ 8, 56, 4, 52, 11, 59, 7, 55, 40, 24, 36, 20, 43, 27, 39, 23, \ 2, 50, 14, 62, 1, 49, 13, 61, 34, 18, 46, 30, 33, 17, 45, 29, \ 10, 58, 6, 54, 9, 57, 5, 53, 42, 26, 38, 22, 41, 25, 37, 21 pw_187E: times 4 dw 0x187E ; FIX64(0.382683433, 14) pw_22A3: times 4 dw 0x22A3 ; FIX64(1.082392200, 13) pw_2D41: times 4 dw 0x2D41 ; FIX64(1.414213562, 13) pw_539F: times 4 dw 0x539F ; FIX64(1.306562965, 14) pw_5A82: times 4 dw 0x5A82 ; FIX64(1.414213562, 14) pw_3B21: times 4 dw 0x3B21 ; FIX64(1.847759065, 13) pw_AC62: times 4 dw 0xAC62 ; FIX64(-2.613125930, 13) pw_3642: times 4 dw 0x3642 ; FIX64(0.847759065, 14) pw_2441: times 4 dw 0x2441 ; FIX64(0.566454497, 14) pw_0CBB: times 4 dw 0x0CBB ; FIX64(0.198912367, 14) pw_4: times 4 dw 4 pw_2: times 4 dw 2 SECTION .text %define DCTSIZE 8 INIT_MMX mmx ;void ff_store_slice_mmx(uint8_t *dst, int16_t *src, ; ptrdiff_t dst_stride, ptrdiff_t src_stride, ; ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale) %if ARCH_X86_64 cglobal store_slice, 7, 9, 0, dst, src, dst_stride, src_stride, width, dither_height, dither, tmp, tmp2 %else cglobal store_slice, 2, 7, 0, dst, src, width, dither_height, dither, tmp, tmp2 %define dst_strideq r2m %define src_strideq r3m mov widthq, r4m mov dither_heightq, r5m mov ditherq, r6m ; log2_scale %endif add widthq, 7 mov tmpq, src_strideq and widthq, ~7 sub dst_strideq, widthq movd m5, ditherd ; log2_scale xor ditherq, -1 ; log2_scale mov tmp2q, tmpq add ditherq, 7 ; log2_scale neg tmpq sub tmp2q, widthq movd m2, ditherd ; log2_scale add tmp2q, tmp2q lea ditherq, [pb_dither] mov src_strideq, tmp2q shl tmpq, 4 lea dither_heightq, [ditherq+dither_heightq*8] pxor m7, m7 .loop_height: movq m3, [ditherq] movq m4, m3 punpcklbw m3, m7 punpckhbw m4, m7 mov tmp2q, widthq psraw m3, m5 psraw m4, m5 .loop_width: movq [srcq+tmpq], m7 movq m0, [srcq] movq m1, [srcq+8] movq [srcq+tmpq+8], m7 paddw m0, m3 paddw m1, m4 movq [srcq], m7 psraw m0, m2 psraw m1, m2 movq [srcq+8], m7 packuswb m0, m1 add srcq, 16 movq [dstq], m0 add dstq, 8 sub tmp2q, 8 jg .loop_width add srcq, src_strideq add ditherq, 8 add dstq, dst_strideq cmp ditherq, dither_heightq jl .loop_height RET ;void ff_store_slice2_mmx(uint8_t *dst, int16_t *src, ; ptrdiff_t dst_stride, ptrdiff_t src_stride, ; ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale) %if ARCH_X86_64 cglobal store_slice2, 7, 9, 0, dst, src, dst_stride, src_stride, width, dither_height, dither, tmp, tmp2 %else cglobal store_slice2, 0, 7, 0, dst, src, width, dither_height, dither, tmp, tmp2 %define dst_strideq r2m %define src_strideq r3m mov dstq, dstm mov srcq, srcm mov widthq, r4m mov dither_heightq, r5m mov ditherq, r6m ; log2_scale %endif add widthq, 7 mov tmpq, src_strideq and widthq, ~7 sub dst_strideq, widthq movd m5, ditherd ; log2_scale xor ditherq, -1 ; log2_scale mov tmp2q, tmpq add ditherq, 7 ; log2_scale sub tmp2q, widthq movd m2, ditherd ; log2_scale add tmp2q, tmp2q lea ditherq, [pb_dither] mov src_strideq, tmp2q shl tmpq, 5 lea dither_heightq, [ditherq+dither_heightq*8] pxor m7, m7 .loop_height: movq m3, [ditherq] movq m4, m3 punpcklbw m3, m7 punpckhbw m4, m7 mov tmp2q,widthq psraw m3, m5 psraw m4, m5 .loop_width: movq m0, [srcq] movq m1, [srcq+8] paddw m0, m3 paddw m0, [srcq+tmpq] paddw m1, m4 movq m6, [srcq+tmpq+8] movq [srcq+tmpq], m7 psraw m0, m2 paddw m1, m6 movq [srcq+tmpq+8], m7 psraw m1, m2 packuswb m0, m1 movq [dstq], m0 add srcq, 16 add dstq, 8 sub tmp2q, 8 jg .loop_width add srcq, src_strideq add ditherq, 8 add dstq, dst_strideq cmp ditherq, dither_heightq jl .loop_height RET ;void ff_mul_thrmat_mmx(int16_t *thr_adr_noq, int16_t *thr_adr, int q); cglobal mul_thrmat, 3, 3, 0, thrn, thr, q movd m7, qd movq m0, [thrnq] punpcklwd m7, m7 movq m1, [thrnq+8] punpckldq m7, m7 pmullw m0, m7 movq m2, [thrnq+8*2] pmullw m1, m7 movq m3, [thrnq+8*3] pmullw m2, m7 movq [thrq], m0 movq m4, [thrnq+8*4] pmullw m3, m7 movq [thrq+8], m1 movq m5, [thrnq+8*5] pmullw m4, m7 movq [thrq+8*2], m2 movq m6, [thrnq+8*6] pmullw m5, m7 movq [thrq+8*3], m3 movq m0, [thrnq+8*7] pmullw m6, m7 movq [thrq+8*4], m4 movq m1, [thrnq+8*7+8] pmullw m0, m7 movq [thrq+8*5], m5 movq m2, [thrnq+8*7+8*2] pmullw m1, m7 movq [thrq+8*6], m6 movq m3, [thrnq+8*7+8*3] pmullw m2, m7 movq [thrq+8*7], m0 movq m4, [thrnq+8*7+8*4] pmullw m3, m7 movq [thrq+8*7+8], m1 movq m5, [thrnq+8*7+8*5] pmullw m4, m7 movq [thrq+8*7+8*2], m2 movq m6, [thrnq+8*7+8*6] pmullw m5, m7 movq [thrq+8*7+8*3], m3 movq m0, [thrnq+14*8] pmullw m6, m7 movq [thrq+8*7+8*4], m4 movq m1, [thrnq+14*8+8] pmullw m0, m7 movq [thrq+8*7+8*5], m5 pmullw m1, m7 movq [thrq+8*7+8*6], m6 movq [thrq+14*8], m0 movq [thrq+14*8+8], m1 RET %macro COLUMN_FDCT 1-3 0, 0 movq m1, [srcq+DCTSIZE*0*2] movq m7, [srcq+DCTSIZE*3*2] movq m0, m1 paddw m1, [srcq+DCTSIZE*7*2] movq m3, m7 paddw m7, [srcq+DCTSIZE*4*2] movq m5, m1 movq m6, [srcq+DCTSIZE*1*2] psubw m1, m7 movq m2, [srcq+DCTSIZE*2*2] movq m4, m6 paddw m6, [srcq+DCTSIZE*6*2] paddw m5, m7 paddw m2, [srcq+DCTSIZE*5*2] movq m7, m6 paddw m6, m2 psubw m7, m2 movq m2, m5 paddw m5, m6 psubw m2, m6 paddw m7, m1 movq m6, [thrq+4*16+%2] psllw m7, 2 psubw m5, [thrq+%2] psubw m2, m6 paddusw m5, [thrq+%2] paddusw m2, m6 pmulhw m7, [pw_2D41] paddw m5, [thrq+%2] paddw m2, m6 psubusw m5, [thrq+%2] psubusw m2, m6 paddw m5, [pw_2] movq m6, m2 paddw m2, m5 psubw m5, m6 movq m6, m1 paddw m1, m7 psubw m1, [thrq+2*16+%2] psubw m6, m7 movq m7, [thrq+6*16+%2] psraw m5, 2 paddusw m1, [thrq+2*16+%2] psubw m6, m7 paddw m1, [thrq+2*16+%2] paddusw m6, m7 psubusw m1, [thrq+2*16+%2] paddw m6, m7 psubw m3, [srcq+DCTSIZE*4*2] psubusw m6, m7 movq m7, m1 psraw m2, 2 psubw m4, [srcq+DCTSIZE*6*2] psubw m1, m6 psubw m0, [srcq+DCTSIZE*7*2] paddw m6, m7 psraw m6, 2 movq m7, m2 pmulhw m1, [pw_5A82] paddw m2, m6 movq [rsp], m2 psubw m7, m6 movq m2, [srcq+DCTSIZE*2*2] psubw m1, m6 psubw m2, [srcq+DCTSIZE*5*2] movq m6, m5 movq [rsp+8*3], m7 paddw m3, m2 paddw m2, m4 paddw m4, m0 movq m7, m3 psubw m3, m4 psllw m3, 2 psllw m7, 2 pmulhw m3, [pw_187E] psllw m4, 2 pmulhw m7, [pw_22A3] psllw m2, 2 pmulhw m4, [pw_539F] paddw m5, m1 pmulhw m2, [pw_2D41] psubw m6, m1 paddw m7, m3 movq [rsp+8], m5 paddw m4, m3 movq m3, [thrq+3*16+%2] movq m1, m0 movq [rsp+8*2], m6 psubw m1, m2 paddw m0, m2 movq m5, m1 movq m2, [thrq+5*16+%2] psubw m1, m7 paddw m5, m7 psubw m1, m3 movq m7, [thrq+16+%2] psubw m5, m2 movq m6, m0 paddw m0, m4 paddusw m1, m3 psubw m6, m4 movq m4, [thrq+7*16+%2] psubw m0, m7 psubw m6, m4 paddusw m5, m2 paddusw m6, m4 paddw m1, m3 paddw m5, m2 paddw m6, m4 psubusw m1, m3 psubusw m5, m2 psubusw m6, m4 movq m4, m1 por m4, m5 paddusw m0, m7 por m4, m6 paddw m0, m7 packssdw m4, m4 psubusw m0, m7 movd tmpd, m4 or tmpd, tmpd jnz %1 movq m4, [rsp] movq m1, m0 pmulhw m0, [pw_3642] movq m2, m1 movq m5, [outq+DCTSIZE*0*2] movq m3, m2 pmulhw m1, [pw_2441] paddw m5, m4 movq m6, [rsp+8] psraw m3, 2 pmulhw m2, [pw_0CBB] psubw m4, m3 movq m7, [outq+DCTSIZE*1*2] paddw m5, m3 movq [outq+DCTSIZE*7*2], m4 paddw m7, m6 movq m3, [rsp+8*2] psubw m6, m0 movq m4, [outq+DCTSIZE*2*2] paddw m7, m0 movq [outq], m5 paddw m4, m3 movq [outq+DCTSIZE*6*2], m6 psubw m3, m1 movq m5, [outq+DCTSIZE*5*2] paddw m4, m1 movq m6, [outq+DCTSIZE*3*2] paddw m5, m3 movq m0, [rsp+8*3] add srcq, 8+%3 movq [outq+DCTSIZE*1*2], m7 paddw m6, m0 movq [outq+DCTSIZE*2*2], m4 psubw m0, m2 movq m7, [outq+DCTSIZE*4*2] paddw m6, m2 movq [outq+DCTSIZE*5*2], m5 paddw m7, m0 movq [outq+DCTSIZE*3*2], m6 movq [outq+DCTSIZE*4*2], m7 add outq, 8+%3 %endmacro %macro COLUMN_IDCT 0-1 0 movq m3, m5 psubw m5, m1 psllw m5, 1 paddw m3, m1 movq m2, m0 psubw m0, m6 movq m1, m5 psllw m0, 1 pmulhw m1, [pw_AC62] paddw m5, m0 pmulhw m5, [pw_3B21] paddw m2, m6 pmulhw m0, [pw_22A3] movq m7, m2 movq m4, [rsp] psubw m2, m3 psllw m2, 1 paddw m7, m3 pmulhw m2, [pw_2D41] movq m6, m4 psraw m7, 2 paddw m4, [outq] psubw m6, m7 movq m3, [rsp+8] paddw m4, m7 movq [outq+DCTSIZE*7*2], m6 paddw m1, m5 movq [outq], m4 psubw m1, m7 movq m7, [rsp+8*2] psubw m0, m5 movq m6, [rsp+8*3] movq m5, m3 paddw m3, [outq+DCTSIZE*1*2] psubw m5, m1 psubw m2, m1 paddw m3, m1 movq [outq+DCTSIZE*6*2], m5 movq m4, m7 paddw m7, [outq+DCTSIZE*2*2] psubw m4, m2 paddw m4, [outq+DCTSIZE*5*2] paddw m7, m2 movq [outq+DCTSIZE*1*2], m3 paddw m0, m2 movq [outq+DCTSIZE*2*2], m7 movq m1, m6 paddw m6, [outq+DCTSIZE*4*2] psubw m1, m0 paddw m1, [outq+DCTSIZE*3*2] paddw m6, m0 movq [outq+DCTSIZE*5*2], m4 add srcq, 8+%1 movq [outq+DCTSIZE*4*2], m6 movq [outq+DCTSIZE*3*2], m1 add outq, 8+%1 %endmacro ;void ff_column_fidct_mmx(int16_t *thr_adr, int16_t *data, int16_t *output, int cnt); cglobal column_fidct, 4, 5, 0, 32, thr, src, out, cnt, tmp .fdct1: COLUMN_FDCT .idct1 jmp .fdct2 .idct1: COLUMN_IDCT .fdct2: COLUMN_FDCT .idct2, 8, 16 sub cntd, 2 jg .fdct1 RET .idct2: COLUMN_IDCT 16 sub cntd, 2 jg .fdct1 RET ;void ff_row_idct_mmx(int16_t *workspace, int16_t *output_adr, ptrdiff_t output_stride, int cnt); cglobal row_idct, 4, 5, 0, 16, src, dst, stride, cnt, stride3 add strideq, strideq lea stride3q, [strideq+strideq*2] .loop: movq m0, [srcq+DCTSIZE*0*2] movq m1, [srcq+DCTSIZE*1*2] movq m4, m0 movq m2, [srcq+DCTSIZE*2*2] punpcklwd m0, m1 movq m3, [srcq+DCTSIZE*3*2] punpckhwd m4, m1 movq m7, m2 punpcklwd m2, m3 movq m6, m0 punpckldq m0, m2 punpckhdq m6, m2 movq m5, m0 punpckhwd m7, m3 psubw m0, m6 pmulhw m0, [pw_5A82] movq m2, m4 punpckldq m4, m7 paddw m5, m6 punpckhdq m2, m7 movq m1, m4 psllw m0, 2 paddw m4, m2 movq m3, [srcq+DCTSIZE*0*2+8] psubw m1, m2 movq m2, [srcq+DCTSIZE*1*2+8] psubw m0, m5 movq m6, m4 paddw m4, m5 psubw m6, m5 movq m7, m1 movq m5, [srcq+DCTSIZE*2*2+8] paddw m1, m0 movq [rsp], m4 movq m4, m3 movq [rsp+8], m6 punpcklwd m3, m2 movq m6, [srcq+DCTSIZE*3*2+8] punpckhwd m4, m2 movq m2, m5 punpcklwd m5, m6 psubw m7, m0 punpckhwd m2, m6 movq m0, m3 punpckldq m3, m5 punpckhdq m0, m5 movq m5, m4 movq m6, m3 punpckldq m4, m2 psubw m3, m0 punpckhdq m5, m2 paddw m6, m0 movq m2, m4 movq m0, m3 psubw m4, m5 pmulhw m0, [pw_AC62] paddw m3, m4 pmulhw m3, [pw_3B21] paddw m2, m5 pmulhw m4, [pw_22A3] movq m5, m2 psubw m2, m6 paddw m5, m6 pmulhw m2, [pw_2D41] paddw m0, m3 psllw m0, 3 psubw m4, m3 movq m6, [rsp] movq m3, m1 psllw m4, 3 psubw m0, m5 psllw m2, 3 paddw m1, m0 psubw m2, m0 psubw m3, m0 paddw m4, m2 movq m0, m7 paddw m7, m2 psubw m0, m2 movq m2, [pw_4] psubw m6, m5 paddw m5, [rsp] paddw m1, m2 paddw m5, m2 psraw m1, 3 paddw m7, m2 psraw m5, 3 paddw m5, [dstq] psraw m7, 3 paddw m1, [dstq+strideq*1] paddw m0, m2 paddw m7, [dstq+strideq*2] paddw m3, m2 movq [dstq], m5 paddw m6, m2 movq [dstq+strideq*1], m1 psraw m0, 3 movq [dstq+strideq*2], m7 add dstq, stride3q movq m5, [rsp+8] psraw m3, 3 paddw m0, [dstq+strideq*2] psubw m5, m4 paddw m3, [dstq+stride3q*1] psraw m6, 3 paddw m4, [rsp+8] paddw m5, m2 paddw m6, [dstq+strideq*4] paddw m4, m2 movq [dstq+strideq*2], m0 psraw m5, 3 paddw m5, [dstq] psraw m4, 3 paddw m4, [dstq+strideq*1] add srcq, DCTSIZE*2*4 movq [dstq+stride3q*1], m3 movq [dstq+strideq*4], m6 movq [dstq], m5 movq [dstq+strideq*1], m4 sub dstq, stride3q add dstq, 8 dec r3d jnz .loop RET ;void ff_row_fdct_mmx(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size, int cnt); cglobal row_fdct, 4, 5, 0, 16, src, pix, stride, cnt, stride3 lea stride3q, [strideq+strideq*2] .loop: movd m0, [pixq] pxor m7, m7 movd m1, [pixq+strideq*1] punpcklbw m0, m7 movd m2, [pixq+strideq*2] punpcklbw m1, m7 punpcklbw m2, m7 add pixq,stride3q movq m5, m0 movd m3, [pixq+strideq*4] movq m6, m1 movd m4, [pixq+stride3q*1] punpcklbw m3, m7 psubw m5, m3 punpcklbw m4, m7 paddw m0, m3 psubw m6, m4 movd m3, [pixq+strideq*2] paddw m1, m4 movq [rsp], m5 punpcklbw m3, m7 movq [rsp+8], m6 movq m4, m2 movd m5, [pixq] paddw m2, m3 movd m6, [pixq+strideq*1] punpcklbw m5, m7 psubw m4, m3 punpcklbw m6, m7 movq m3, m5 paddw m5, m6 psubw m3, m6 movq m6, m0 movq m7, m1 psubw m0, m5 psubw m1, m2 paddw m7, m2 paddw m1, m0 movq m2, m7 psllw m1, 2 paddw m6, m5 pmulhw m1, [pw_2D41] paddw m7, m6 psubw m6, m2 movq m5, m0 movq m2, m7 punpcklwd m7, m6 paddw m0, m1 punpckhwd m2, m6 psubw m5, m1 movq m6, m0 movq m1, [rsp+8] punpcklwd m0, m5 punpckhwd m6, m5 movq m5, m0 punpckldq m0, m7 paddw m3, m4 punpckhdq m5, m7 movq m7, m6 movq [srcq+DCTSIZE*0*2], m0 punpckldq m6, m2 movq [srcq+DCTSIZE*1*2], m5 punpckhdq m7, m2 movq [srcq+DCTSIZE*2*2], m6 paddw m4, m1 movq [srcq+DCTSIZE*3*2], m7 psllw m3, 2 movq m2, [rsp] psllw m4, 2 pmulhw m4, [pw_2D41] paddw m1, m2 psllw m1, 2 movq m0, m3 pmulhw m0, [pw_22A3] psubw m3, m1 pmulhw m3, [pw_187E] movq m5, m2 pmulhw m1, [pw_539F] psubw m2, m4 paddw m5, m4 movq m6, m2 paddw m0, m3 movq m7, m5 paddw m2, m0 psubw m6, m0 movq m4, m2 paddw m1, m3 punpcklwd m2, m6 paddw m5, m1 punpckhwd m4, m6 psubw m7, m1 movq m6, m5 punpcklwd m5, m7 punpckhwd m6, m7 movq m7, m2 punpckldq m2, m5 sub pixq, stride3q punpckhdq m7, m5 movq m5, m4 movq [srcq+DCTSIZE*0*2+8], m2 punpckldq m4, m6 movq [srcq+DCTSIZE*1*2+8], m7 punpckhdq m5, m6 movq [srcq+DCTSIZE*2*2+8], m4 add pixq, 4 movq [srcq+DCTSIZE*3*2+8], m5 add srcq, DCTSIZE*4*2 dec cntd jnz .loop RET
02/print/print.asm
DaviNakamuraCardoso/assembly
0
81509
<filename>02/print/print.asm section .data text db "Hello, World!", 0x0a, 0x00 hey db "Hey!", 0x0a, 0x00 section .text global _start _start: mov rax, text call _print mov rax, hey call _print mov rax, 0x3c mov rdi, 0 syscall _print: push rax mov rbx, 0 _loop: inc rax inc rbx mov cl, [rax] cmp cl, 0x00 jne _loop mov rax, 1 mov rdi, 1 pop rsi mov rdx, rbx syscall ret
api/src/main/java/org/streamreasoning/rsp4j/api/querying/syntax/RSPQL.g4
semlanghi/rsp4j
0
2765
// Generate grammar files using the command: // $ antlr4 -visitor RSPQL.g4 -package it.polimi.yasper.core.querying.syntax grammar RSPQL; queryUnit : query ; query : prologue registerClause? ( selectQuery | constructQuery | describeQuery | askQuery ) valuesClause ; prologue : ( baseDecl | prefixDecl )* ; baseDecl : 'BASE' IRIREF ; prefixDecl : 'PREFIX' PNAME_NS IRIREF ; registerClause : 'REGISTER' outputStreamType outputStream 'AS' ; outputStreamType : 'ISTREAM' | 'RSTREAM' | 'DSTREAM' ; outputStream : sourceSelector ; selectQuery : selectClause datasetClause* whereClause solutionModifier ; subSelect : selectClause whereClause solutionModifier valuesClause ; selectClause : 'SELECT' ( distinct | reduced )? ( ( resultVar )+ | resultStar ) ; resultStar : '*' ; resultVar : var | ( '(' expression 'AS' var ')' ) ; distinct : 'DISTINCT' ; reduced : 'REDUCED' ; constructQuery : 'CONSTRUCT' ( constructTemplate datasetClause* whereClause solutionModifier | datasetClause* 'WHERE' '{' triplesTemplate? '}' solutionModifier ) ; describeQuery : 'DESCRIBE' ( varOrIri+ | resultStar ) datasetClause* whereClause? solutionModifier ; askQuery : 'ASK' datasetClause* whereClause solutionModifier ; datasetClause : 'FROM' ( defaultGraphClause | namedGraphClause | namedWindowClause ) ; defaultGraphClause : sourceSelector ; namedGraphClause : 'NAMED' sourceSelector ; namedWindowClause : 'NAMED' 'WINDOW' windowUri 'ON' streamUri '[' window ']' ; windowUri : sourceSelector ; streamUri : sourceSelector ; window : physicalWindow | logicalWindow ; physicalWindow : physicalRange physicalStep? ; physicalRange : 'ELEMENTS' integer ; physicalStep : 'STEP' integer ; logicalWindow : logicalRange logicalStep? ; logicalRange : 'RANGE' duration ; logicalStep : 'STEP' duration ; duration : DURATION ; sourceSelector : iri ; whereClause : 'WHERE'? groupGraphPattern ; solutionModifier : groupClause? havingClause? orderClause? limitOffsetClauses? ; groupClause : 'GROUP' 'BY' groupCondition+ ; groupCondition : builtInCall | functionCall | '(' expression ( 'AS' var )? ')' | var ; havingClause : 'HAVING' havingCondition+ ; havingCondition : constraint ; orderClause : 'ORDER' 'BY' orderCondition+ ; orderCondition : ( ( 'ASC' | 'DESC' ) brackettedExpression ) | ( constraint | var ) ; limitOffsetClauses : limitClause offsetClause? | offsetClause limitClause? ; limitClause : 'LIMIT' INTEGER ; offsetClause : 'OFFSET' INTEGER ; valuesClause : ( 'VALUES' dataBlock )? ; graphOrDefault : 'DEFAULT' | 'GRAPH'? iri ; graphRef : 'GRAPH' iri ; quadPattern : '{' quads '}' ; quads : triplesTemplate? ( quadsNotTriples '.'? triplesTemplate? )* ; quadsNotTriples : 'GRAPH' varOrIri '{' triplesTemplate? '}' ; triplesTemplate : triplesSameSubject ( '.' triplesTemplate? )? ; groupGraphPattern : '{' ( subSelect | groupGraphPatternSub ) '}' ; groupGraphPatternSub : triplesBlock? ( graphPatternNotTriples '.'? triplesBlock? )* ; triplesBlock : triplesSameSubjectPath ( '.' triplesBlock? )? ; graphPatternNotTriples : groupOrUnionGraphPattern | optionalGraphPattern | minusGraphPattern | graphGraphPattern | windowGraphPattern | serviceGraphPattern | filter | bind | inlineData ; optionalGraphPattern : 'OPTIONAL' groupGraphPattern ; graphGraphPattern : 'GRAPH' varOrIri groupGraphPattern ; windowGraphPattern : 'WINDOW' varOrIri groupGraphPattern ; serviceGraphPattern : 'SERVICE' 'SILENT'? varOrIri groupGraphPattern ; bind : 'BIND' '(' expression 'AS' var ')' ; inlineData : 'VALUES' dataBlock ; dataBlock : inlineDataOneVar | inlineDataFull ; inlineDataOneVar : var '{' dataBlockValue* '}' ; inlineDataFull : ( NIL | '(' var* ')' ) '{' ( dataBlockValues | NIL )* '}' ; dataBlockValues : '(' dataBlockValue* ')' ; dataBlockValue : iri | rdfliteral | numericLiteral | booleanLiteral | undef ; undef : 'UNDEF' ; minusGraphPattern : 'MINUS' groupGraphPattern ; groupOrUnionGraphPattern : groupGraphPattern ( 'UNION' groupGraphPattern )* ; filter : 'FILTER' constraint ; constraint : brackettedExpression | builtInCall | functionCall ; functionCall : iri argList ; argList : NIL | '(' distinct? expression ( ',' expression )* ')' ; expressionList : NIL | '(' expression ( ',' expression )* ')' ; constructTemplate : '{' quads '}' ; constructTriples : triplesSameSubject ( '.' constructTriples? )? ; triplesSameSubject : varOrTerm propertyListNotEmpty | triplesNode propertyListNotEmpty? ; propertyListNotEmpty : propertyList ( ';' ( propertyList )? )* ; propertyList : verb objectList ; verb : varOrIri | type ; type : TYPE ; objectList : object ( ',' object )* ; object : graphNode ; triplesSameSubjectPath : varOrTerm propertyListPathNotEmpty | triplesNodePath propertyListPathNotEmpty? ; // Implemented errata-query-3 https://www.w3.org/2013/sparql-errata#errata-query-3 propertyListPathNotEmpty : propertyListPath ( ';' propertyListPath )* ; propertyListPath : ( verbPath | verbSimple ) objectListPath ; verbPath : path ; verbSimple : var | type ; objectListPath : objectPath ( ',' objectPath )* ; objectPath : graphNodePath ; path : pathAlternative ; pathAlternative : pathSequence ( '|' pathSequence )* ; pathSequence : pathEltOrInverse ( '/' pathEltOrInverse )* ; pathElt : pathPrimary pathMod? ; pathEltOrInverse : pathElt | '^' pathElt ; pathMod : '?' | '*' | '+' ; pathPrimary : iri | type | '!' pathNegatedPropertySet | '(' path ')' ; pathNegatedPropertySet : pathOneInPropertySet | '(' ( pathOneInPropertySet ( '|' pathOneInPropertySet )* )? ')' ; pathOneInPropertySet : iri | type | '^' ( iri | type ) ; integer : INTEGER ; triplesNode : collection | blankNodePropertyList ; blankNodePropertyList : '[' propertyListNotEmpty ']' ; triplesNodePath : collectionPath | blankNodePropertyListPath ; blankNodePropertyListPath : '[' propertyListPathNotEmpty ']' ; collection : '(' graphNode+ ')' ; collectionPath : '(' graphNodePath+ ')' ; graphNode : varOrTerm | triplesNode ; graphNodePath : varOrTerm | triplesNodePath ; varOrTerm : var | graphTerm ; varOrIri : var | iri ; var : VAR1 | VAR2 ; graphTerm : iri | rdfliteral | numericLiteral | booleanLiteral | blankNode | NIL ; expression : conditionalOrExpression ; conditionalOrExpression : conditionalAndExpression ( '||' conditionalAndExpression )* ; conditionalAndExpression : valueLogical ( '&&' valueLogical )* ; valueLogical : relationalExpression ; relationalExpression : numericExpression ( '=' numericExpression | '!=' numericExpression | '<' numericExpression | '>' numericExpression | '<=' numericExpression | '>=' numericExpression | 'IN' expressionList | 'NOT' 'IN' expressionList )? ; numericExpression : additiveExpression ; additiveExpression : multiplicativeExpression ( multiExpr )* ; //( '+' multiplicativeExpression | '-' multiplicativeExpression | ( numericLiteralPositive | numericLiteralNegative ) ( ( '*' unaryExpression ) | ( '/' unaryExpression ) )* )* ; multiExpr : '+' multiplicativeExpression | '-' multiplicativeExpression | ( numericLiteralPositive | numericLiteralNegative ) ( '*' unaryExpression | '/' unaryExpression )* ; multiplicativeExpression : unaryExpression ( '*' unaryExpression | '/' unaryExpression )* ; unaryExpression : '!' primaryExpression | '+' primaryExpression | '-' primaryExpression | primaryExpression ; primaryExpression : brackettedExpression | builtInCall | iriOrFunction | rdfliteral | numericLiteral | booleanLiteral | var ; brackettedExpression : '(' expression ')' ; builtInCall : aggregate | 'STR' '(' expression ')' | 'LANG' '(' expression ')' | 'LANGMATCHES' '(' expression ',' expression ')' | 'DATATYPE' '(' expression ')' | 'BOUND' '(' var ')' | 'IRI' '(' expression ')' | 'URI' '(' expression ')' | 'BNODE' ( '(' expression ')' | NIL ) | 'RAND' NIL | 'ABS' '(' expression ')' | 'CEIL' '(' expression ')' | 'FLOOR' '(' expression ')' | 'ROUND' '(' expression ')' | 'CONCAT' expressionList | substringExpression | 'STRLEN' '(' expression ')' | strReplaceExpression | 'UCASE' '(' expression ')' | 'LCASE' '(' expression ')' | 'ENCODE_FOR_URI' '(' expression ')' | 'CONTAINS' '(' expression ',' expression ')' | 'STRSTARTS' '(' expression ',' expression ')' | 'STRENDS' '(' expression ',' expression ')' | 'STRBEFORE' '(' expression ',' expression ')' | 'STRAFTER' '(' expression ',' expression ')' | 'YEAR' '(' expression ')' | 'MONTH' '(' expression ')' | 'DAY' '(' expression ')' | 'HOURS' '(' expression ')' | 'MINUTES' '(' expression ')' | 'SECONDS' '(' expression ')' | 'TIMEZONE' '(' expression ')' | 'TZ' '(' expression ')' | 'NOW' NIL | 'UUID' NIL | 'STRUUID' NIL | 'MD5' '(' expression ')' | 'SHA1' '(' expression ')' | 'SHA256' '(' expression ')' | 'SHA384' '(' expression ')' | 'SHA512' '(' expression ')' | 'COALESCE' expressionList | 'IF' '(' expression ',' expression ',' expression ')' | 'STRLANG' '(' expression ',' expression ')' | 'STRDT' '(' expression ',' expression ')' | 'SAMETERM' '(' expression ',' expression ')' | 'ISIRI' '(' expression ')' | 'ISURI' '(' expression ')' | 'ISBLANK' '(' expression ')' | 'ISLITERAL' '(' expression ')' | 'ISNUMERIC' '(' expression ')' | regexExpression | existsFunc | notExistsFunc ; regexExpression : 'REGEX' '(' expression ',' expression ( ',' expression )? ')' ; substringExpression : 'SUBSTR' '(' expression ',' expression ( ',' expression )? ')' ; strReplaceExpression : 'REPLACE' '(' expression ',' expression ',' expression ( ',' expression )? ')' ; existsFunc : 'EXISTS' groupGraphPattern ; notExistsFunc : 'NOT' 'EXISTS' groupGraphPattern ; aggregate : 'COUNT' '(' distinct? ( '*' | expression ) ')' | 'SUM' '(' distinct? expression ')' | 'MIN' '(' distinct? expression ')' | 'MAX' '(' distinct? expression ')' | 'AVG' '(' distinct? expression ')' | 'SAMPLE' '(' distinct? expression ')' | 'GROUP_CONCAT' '(' distinct? expression ( ';' 'SEPARATOR' '=' string )? ')' ; iriOrFunction : iri argList? ; rdfliteral : string ( LANGTAG | ( '^^' iri ) )? ; numericLiteral : numericLiteralUnsigned | numericLiteralPositive | numericLiteralNegative ; numericLiteralUnsigned : INTEGER | DECIMAL | DOUBLE ; numericLiteralPositive : INTEGER_POSITIVE | DECIMAL_POSITIVE | DOUBLE_POSITIVE ; numericLiteralNegative : INTEGER_NEGATIVE | DECIMAL_NEGATIVE | DOUBLE_NEGATIVE ; booleanLiteral : 'TRUE' | 'FALSE' ; string : STRING_LITERAL1 | STRING_LITERAL2 | STRING_LITERAL_LONG1 | STRING_LITERAL_LONG2 ; iri : IRIREF | prefixedName ; prefixedName : PNAME_LN | PNAME_NS ; blankNode : BLANK_NODE_LABEL | ANON ; // Terminals TYPE : 'A' | 'a' ; COMMENT : '#' ( ~( '\r' | '\n' ) )* -> skip; DURATION : 'P' ( INTEGER 'Y' )? ( INTEGER 'M' )? ( INTEGER 'D' )? 'T' ( INTEGER 'H' )? ( INTEGER 'M' )? ( INTEGER ( '.' INTEGER )? 'S' )? ; IRIREF : '<' ~( '<' | '>' | '"' | '{' | '}' | '|' | '^' | '`' )* '>' ; // multi-character literals are not allowed in lexer sets PNAME_NS : PN_PREFIX? ':' ; PNAME_LN : PNAME_NS PN_LOCAL ; BLANK_NODE_LABEL : '_:' ( PN_CHARS_U | '0'..'9' ) ((PN_CHARS|'.')* PN_CHARS)? ; VAR1 : '?' VARNAME ; VAR2 : '$' VARNAME ; LANGTAG : '@' ( 'a'..'z' | 'A'..'Z' )+ ('-' ( 'a'..'z' | 'A'..'Z' | '0'..'9')+ )* ; INTEGER : '0'..'9'+ ; DECIMAL : '0'..'9'* '.' '0'..'9'+ ; DOUBLE : '0'..'9'+ '.' '0'..'9'* EXPONENT | '.' ('0'..'9')+ EXPONENT | ('0'..'9')+ EXPONENT ; INTEGER_POSITIVE : '+' INTEGER ; DECIMAL_POSITIVE : '+' DECIMAL ; DOUBLE_POSITIVE : '+' DOUBLE ; INTEGER_NEGATIVE : '-' INTEGER ; DECIMAL_NEGATIVE : '-' DECIMAL ; DOUBLE_NEGATIVE : '-' DOUBLE ; EXPONENT : ( 'e' | 'E' ) ( '+' | '-' )? '0'..'9'+ ; STRING_LITERAL1 : '\'' ( ~( '\'' ) | ECHAR )* '\'' ; // multi-character literals are not allowed in lexer sets STRING_LITERAL2 : '"' ( ~( '"' ) | ECHAR )*? '"' ; // multi-character literals are not allowed in lexer sets STRING_LITERAL_LONG1 : '\'\'\'' ( ( '\'' | '\'\'' )? ( ~('\'' | '\\' ) | ECHAR ) )* '\'\'\'' ; STRING_LITERAL_LONG2 : '"""' ( ( '"' | '""' )? ( ~( '"' | '\\' ) | ECHAR ) )* '"""' ; ECHAR : '\\' ( 't' | 'b' | 'n' | 'r' | 'f' | '"' | '\'') ; NIL : '(' WS* ')' ; WS : ( ' ' | '\t' | '\n' | 'r' ) -> skip ; ANON : '[' WS* ']' ; PN_CHARS_BASE : ( 'A'..'Z' | 'a'..'z' | '\u00C0'..'\u00D6' | '\u00D8'..'\u00F6' | '\u00F8'..'\u02FF' | '\u0370'..'\u037D' | '\u037F'..'\u1FFF' | '\u200C'..'\u200D' | '\u2070'..'\u218F' | '\u2C00'..'\u2FEF' | '\u3001'..'\uD7FF' | '\uF900'..'\uFDCF' | '\uFDF0'..'\uFFFD' ) ; // multi-character literals are not allowed in lexer sets PN_CHARS_U : PN_CHARS_BASE | '_' ; VARNAME : ( PN_CHARS_U | '0'..'9' ) ( PN_CHARS_U | '0'..'9' | '\u00B7' | '\u0300'..'\u036F' | '\u203F'..'\u2040' )* ; PN_CHARS : PN_CHARS_U | '-' | '0'..'9' | '\u00B7' | '\u0300'..'\u036F' | '\u203F'..'\u2040' ; PN_PREFIX : PN_CHARS_BASE ((PN_CHARS|'.')* PN_CHARS)? ; PN_LOCAL : (PN_CHARS_U | ':' | '0'..'9' | PLX ) ((PN_CHARS | '.' | ':' | PLX)* (PN_CHARS | ':' | PLX) )? ; PLX : PERCENT | PN_LOCAL_ESC ; PERCENT : '%' HEX HEX ; HEX : '0'..'9' | 'A'..'F' | 'a'..'f' ; PN_LOCAL_ESC : '\\' ( '_' | '~' | '.' | '-' | '!' | '$' | '&' | '\'' | '(' | ')' | '*' | '+' | ',' | ';' | '=' | '/' | '?' | '#' | '@' | '%' ) ; ANYCHAR : . ;
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_656.asm
ljhsiun2/medusa
9
27413
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r15 push %r9 push %rcx push %rdx lea addresses_D_ht+0x2f9, %r13 nop nop nop add %r12, %r12 mov (%r13), %r15 cmp %r10, %r10 lea addresses_WC_ht+0x1953a, %rcx nop nop nop nop nop add $58906, %rdx movb (%rcx), %r15b nop add %rdx, %rdx lea addresses_UC_ht+0x1910e, %r12 sub $64422, %r10 movb $0x61, (%r12) nop nop nop nop nop and $5626, %r13 lea addresses_WC_ht+0x1efce, %r12 nop nop nop nop nop add $57102, %r9 mov (%r12), %rdx nop nop nop nop nop sub %r9, %r9 lea addresses_WC_ht+0x7a4e, %rcx nop sub $45183, %r9 movw $0x6162, (%rcx) cmp %rdx, %rdx pop %rdx pop %rcx pop %r9 pop %r15 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %rbp push %rcx push %rdi push %rsi // Store lea addresses_A+0xe7ce, %r12 nop nop nop sub %rcx, %rcx mov $0x5152535455565758, %r14 movq %r14, %xmm4 movups %xmm4, (%r12) nop nop xor %rsi, %rsi // Store lea addresses_D+0x1b9ce, %rcx nop nop nop nop sub $2954, %r10 mov $0x5152535455565758, %r14 movq %r14, (%rcx) nop cmp $51553, %r10 // Store lea addresses_A+0x1064e, %rsi nop nop nop nop nop sub $16472, %rbp movw $0x5152, (%rsi) nop nop nop nop nop dec %r14 // Store lea addresses_PSE+0x7bce, %rbp nop nop nop nop cmp $9420, %r10 movw $0x5152, (%rbp) nop nop nop nop nop and %rbp, %rbp // Store lea addresses_WT+0x1593c, %r14 nop nop nop nop sub %r12, %r12 movw $0x5152, (%r14) sub %rbp, %rbp // Faulty Load lea addresses_RW+0x5fce, %rbp nop nop cmp $22712, %rdi mov (%rbp), %rsi lea oracles, %r10 and $0xff, %rsi shlq $12, %rsi mov (%r10,%rsi,1), %rsi pop %rsi pop %rdi pop %rcx pop %rbp pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': True, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 10, 'type': 'addresses_A', 'AVXalign': False, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 9, 'type': 'addresses_D', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_A', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_WT', 'AVXalign': True, 'size': 2}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': True, 'same': False, 'congruent': 0, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 5, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1}} {'src': {'NT': False, 'same': True, 'congruent': 10, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2}} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/conv_bug.adb
best08618/asylo
7
3295
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/conv_bug.adb -- { dg-do run } -- { dg-options "-gnatws" } with discr3; use discr3; with Text_IO; use Text_IO; procedure Conv_Bug is begin begin V2 := S2 (V1); exception when Constraint_Error => null; when others => Put_Line ("Wrong Exception raised"); end; begin V2 := S2(V1(V1'Range)); Put_Line ("No exception raised - 2"); exception when Constraint_Error => null; when others => Put_Line ("Wrong Exception raised"); end; begin V2 := S2 (V3); Put_Line ("No exception raised - 3"); exception when Constraint_Error => null; when others => Put_Line ("Wrong Exception raised"); end; end Conv_Bug;
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_net_gstnetclientclock_h.ads
persan/A-gst
1
815
<gh_stars>1-10 pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; with glib.Values; with System; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstsystemclock_h; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstclock_h; -- limited with GStreamer.GST_Low_Level.netinet_in_h; -- limited -- with GStreamer.GST_Low_Level.glib_2_0_glib_gthread_h; with System; with glib; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_net_gstnetclientclock_h is -- unsupported macro: GST_TYPE_NET_CLIENT_CLOCK (gst_net_client_clock_get_type()) -- arg-macro: function GST_NET_CLIENT_CLOCK (obj) -- return G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_NET_CLIENT_CLOCK,GstNetClientClock); -- arg-macro: function GST_NET_CLIENT_CLOCK_CLASS (klass) -- return G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_NET_CLIENT_CLOCK,GstNetClientClockClass); -- arg-macro: function GST_IS_NET_CLIENT_CLOCK (obj) -- return G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_NET_CLIENT_CLOCK); -- arg-macro: function GST_IS_NET_CLIENT_CLOCK_CLASS (klass) -- return G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NET_CLIENT_CLOCK); -- GStreamer -- * Copyright (C) 1999,2000 <NAME> <<EMAIL>> -- * 2005 <NAME> <<EMAIL>> -- * 2005 <NAME> <<EMAIL> <EMAIL>> -- * -- * gstnetclientclock.h: clock that synchronizes itself to a time provider over -- * the network -- * -- * This library is free software; you can redistribute it and/or -- * modify it under the terms of the GNU Library General Public -- * License as published by the Free Software Foundation; either -- * version 2 of the License, or (at your option) any later version. -- * -- * This library is distributed in the hope that it will be useful, -- * but WITHOUT ANY WARRANTY; without even the implied warranty of -- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- * Library General Public License for more details. -- * -- * You should have received a copy of the GNU Library General Public -- * License along with this library; if not, write to the -- * Free Software Foundation, Inc., 59 Temple Place - Suite 330, -- * Boston, MA 02111-1307, USA. -- type GstNetClientClock; type u_GstNetClientClock_control_sock_array is array (0 .. 1) of aliased int; type u_GstNetClientClock_u_gst_reserved_array is array (0 .. 2) of System.Address; --subtype GstNetClientClock is u_GstNetClientClock; -- gst/net/gstnetclientclock.h:60 type GstNetClientClockClass; type u_GstNetClientClockClass_u_gst_reserved_array is array (0 .. 3) of System.Address; --subtype GstNetClientClockClass is u_GstNetClientClockClass; -- gst/net/gstnetclientclock.h:61 -- skipped empty struct u_GstNetClientClockPrivate -- skipped empty struct GstNetClientClockPrivate --* -- * GstNetClientClock: -- * -- * Opaque #GstNetClientClock structure. -- type GstNetClientClock is record clock : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstsystemclock_h.GstSystemClock; -- gst/net/gstnetclientclock.h:70 address : access GLIB.gchar; -- gst/net/gstnetclientclock.h:73 port : aliased GLIB.gint; -- gst/net/gstnetclientclock.h:74 sock : aliased int; -- gst/net/gstnetclientclock.h:77 control_sock : aliased u_GstNetClientClock_control_sock_array; -- gst/net/gstnetclientclock.h:78 current_timeout : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstclock_h.GstClockTime; -- gst/net/gstnetclientclock.h:80 servaddr : System.Address; -- access GStreamer.GST_Low_Level.netinet_in_h.sockaddr_in; -- gst/net/gstnetclientclock.h:82 thread : access GStreamer.GST_Low_Level.glib_2_0_glib_gthread_h.GThread; -- gst/net/gstnetclientclock.h:84 priv : System.Address; -- gst/net/gstnetclientclock.h:87 u_gst_reserved : u_GstNetClientClock_u_gst_reserved_array; -- gst/net/gstnetclientclock.h:89 end record; pragma Convention (C_Pass_By_Copy, GstNetClientClock); -- gst/net/gstnetclientclock.h:69 --< protected > --< private > --< private > type GstNetClientClockClass is record parent_class : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstsystemclock_h.GstSystemClockClass; -- gst/net/gstnetclientclock.h:93 u_gst_reserved : u_GstNetClientClockClass_u_gst_reserved_array; -- gst/net/gstnetclientclock.h:96 end record; pragma Convention (C_Pass_By_Copy, GstNetClientClockClass); -- gst/net/gstnetclientclock.h:92 --< private > function gst_net_client_clock_get_type return GLIB.GType; -- gst/net/gstnetclientclock.h:99 pragma Import (C, gst_net_client_clock_get_type, "gst_net_client_clock_get_type"); function gst_net_client_clock_new (name : access GLIB.gchar; remote_address : access GLIB.gchar; remote_port : GLIB.gint; base_time : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstclock_h.GstClockTime) return access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstclock_h.GstClock; -- gst/net/gstnetclientclock.h:100 pragma Import (C, gst_net_client_clock_new, "gst_net_client_clock_new"); end GStreamer.GST_Low_Level.gstreamer_0_10_gst_net_gstnetclientclock_h;
OSX/x86_64/byteswapip.nasm
tobyoxborrow/msncsiasm
0
87945
; IP byte swapper ; ; Takes an IP address in dotted quad format, performs a byte swap and outputs ; the result in hex for your use elsewhere. ; Use case: You need an IP address (e.g. "192.0.2.57") in network byte order ; Using numbers (or any other character) outside this range is not expected and ; the results are undefined. ; ; Usage: byteswapip <ip-address> ; ; Example usage: ; $ ./byteswapip 192.0.2.57 ; 0x4D0200C0 ; $ ./byteswapip 8.8.8.8 ; 0x08080808 ; BITS 64 global _main section .text exit_1: mov rax, __NR_exit mov rdi, 0x1 syscall _main: ; require exactly 1 command-line argument cmp rdi, 0x2 ; argc jne exit_1 mov rdi, [rsi] ; dereference char **argv mov rax, 0x0 mov rcx, 0xFF cld repne scasb ; skip argv[0] (filename) ;mov rax, 0x0 ; temp for quad running total mov rbx, 0x0 ; current character mov rcx, 0x0 ; quad counter (to abort if there is the wrong number) mov rdx, 0xA ; for mul instruction in loop mov r8, 0x0 ; the address in full, as it is being constructed ; loop over each character converting the ASCII character codes into an ; actual number ; using rax, rbx so we can use their byte forms and easily detect overflows decode_loop: mov bl, [rdi] ; current character inc rdi cmp bl, '0' ; sanity test, ASCII code is digit jl exit_1 cmp bl, '9' jg exit_1 sub bl, 0x30 ; subtract 0x30 from ASCII character code add al, bl ; update quad running total jc exit_1 ; this quad is >255 (e.g. input was: 256) cmp byte [rdi], '.' ; end of the quad? je decode_loop_next_quad cmp byte [rdi], 0x0 ; end of the string? je decode_loop_end ; there is another digit, multiply current value by 10 to shift it over ; one power (i.e. 19 becomes 190) to accept the next character mul dl jc exit_1 ; this quad is >255 (e.g. input was: 999) jmp decode_loop decode_loop_next_quad: add r8, rax ; update address running total mov rax, 0x0 ; reset quad running total shl r8, 0x8 ; shift address to make space for next quad inc rcx cmp rcx, 0x3 ; sanity test, too many quads? ja exit_1 inc rdi ; skip over the '.' jmp decode_loop decode_loop_end: add r8, rax ; update address running total mov rax, r8 ; operate on the 32bit value bswap eax ; copy template to output string mov rcx, output_template_len mov rsi, output_template mov rdi, output cld rep movsb ; convert number back to ASCII for display and store in output string mov rcx, 0x8 mov rsi, output add rsi, 0x9 ; skip to the last position, write from right to left encode_loop: ; divide the number by 0x10 to get one digit (popped into edx) mov rdx, 0x0 mov rbx, 0x10 div rbx ; lookup edx against hex_chars mov rdi, hex_chars add rdi, rdx mov dl, byte [rdi] mov byte [rsi], dl ; store the result in output dec rsi loop encode_loop mov rax, __NR_write mov rdi, 0x1 ; stdout mov rsi, output mov rdx, output_template_len syscall mov rax, __NR_exit mov rdi, 0x0 syscall section .data ; bsd/kern/syscalls.master __NR_exit: equ 0x2000001 __NR_write: equ 0x2000004 hex_chars: db '0123456789ABCDEF' output_template: db '0x????????', 0xA output_template_len: equ $-output_template section .bss output: resb output_template_len
kernel/arch/idt.asm
nop-os/nop
9
81308
<reponame>nop-os/nop<gh_stars>1-10 [bits 32] ; IDT handlers 'n stuff global idt_table global idt_list extern idt_call idt_table: .entry_0: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_1: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_2: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_3: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_4: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_5: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_6: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_7: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_8: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_9: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_10: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_11: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_12: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_13: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_14: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_15: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_16: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_17: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_18: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_19: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_20: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_21: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_22: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_23: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_24: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_25: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_26: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_27: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_28: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_29: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_30: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_31: dw 0x0000 dw 0x0008 db 0x00 db 0x8F dw 0x0000 .entry_32: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_33: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_34: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_35: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_36: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_37: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_38: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_39: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_40: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_41: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_42: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_43: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_44: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_45: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_46: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_47: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_48: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_49: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_50: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_51: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_52: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_53: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_54: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_55: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_56: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_57: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_58: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_59: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_60: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_61: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_62: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_63: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_64: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_65: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_66: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_67: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_68: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_69: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_70: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_71: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_72: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_73: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_74: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_75: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_76: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_77: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_78: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_79: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_80: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_81: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_82: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_83: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_84: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_85: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_86: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_87: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_88: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_89: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_90: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_91: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_92: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_93: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_94: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_95: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_96: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_97: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_98: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_99: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_100: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_101: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_102: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_103: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_104: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_105: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_106: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_107: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_108: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_109: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_110: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_111: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_112: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_113: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_114: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_115: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_116: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_117: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_118: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_119: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_120: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_121: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_122: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_123: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_124: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_125: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_126: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_127: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_128: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_129: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_130: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_131: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_132: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_133: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_134: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_135: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_136: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_137: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_138: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_139: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_140: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_141: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_142: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_143: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_144: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_145: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_146: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_147: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_148: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_149: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_150: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_151: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_152: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_153: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_154: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_155: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_156: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_157: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_158: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_159: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_160: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_161: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_162: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_163: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_164: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_165: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_166: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_167: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_168: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_169: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_170: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_171: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_172: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_173: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_174: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_175: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_176: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_177: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_178: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_179: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_180: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_181: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_182: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_183: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_184: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_185: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_186: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_187: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_188: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_189: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_190: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_191: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_192: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_193: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_194: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_195: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_196: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_197: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_198: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_199: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_200: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_201: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_202: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_203: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_204: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_205: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_206: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_207: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_208: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_209: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_210: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_211: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_212: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_213: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_214: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_215: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_216: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_217: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_218: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_219: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_220: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_221: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_222: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_223: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_224: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_225: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_226: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_227: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_228: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_229: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_230: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_231: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_232: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_233: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_234: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_235: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_236: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_237: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_238: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_239: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_240: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_241: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_242: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_243: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_244: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_245: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_246: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_247: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_248: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_249: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_250: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_251: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_252: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_253: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_254: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 .entry_255: dw 0x0000 dw 0x0008 db 0x00 db 0x8E dw 0x0000 idt_list: dd idt_hand_0 dd idt_hand_1 dd idt_hand_2 dd idt_hand_3 dd idt_hand_4 dd idt_hand_5 dd idt_hand_6 dd idt_hand_7 dd idt_hand_8 dd idt_hand_9 dd idt_hand_10 dd idt_hand_11 dd idt_hand_12 dd idt_hand_13 dd idt_hand_14 dd idt_hand_15 dd idt_hand_16 dd idt_hand_17 dd idt_hand_18 dd idt_hand_19 dd idt_hand_20 dd idt_hand_21 dd idt_hand_22 dd idt_hand_23 dd idt_hand_24 dd idt_hand_25 dd idt_hand_26 dd idt_hand_27 dd idt_hand_28 dd idt_hand_29 dd idt_hand_30 dd idt_hand_31 dd idt_hand_32 dd idt_hand_33 dd idt_hand_34 dd idt_hand_35 dd idt_hand_36 dd idt_hand_37 dd idt_hand_38 dd idt_hand_39 dd idt_hand_40 dd idt_hand_41 dd idt_hand_42 dd idt_hand_43 dd idt_hand_44 dd idt_hand_45 dd idt_hand_46 dd idt_hand_47 dd idt_hand_48 dd idt_hand_49 dd idt_hand_50 dd idt_hand_51 dd idt_hand_52 dd idt_hand_53 dd idt_hand_54 dd idt_hand_55 dd idt_hand_56 dd idt_hand_57 dd idt_hand_58 dd idt_hand_59 dd idt_hand_60 dd idt_hand_61 dd idt_hand_62 dd idt_hand_63 dd idt_hand_64 dd idt_hand_65 dd idt_hand_66 dd idt_hand_67 dd idt_hand_68 dd idt_hand_69 dd idt_hand_70 dd idt_hand_71 dd idt_hand_72 dd idt_hand_73 dd idt_hand_74 dd idt_hand_75 dd idt_hand_76 dd idt_hand_77 dd idt_hand_78 dd idt_hand_79 dd idt_hand_80 dd idt_hand_81 dd idt_hand_82 dd idt_hand_83 dd idt_hand_84 dd idt_hand_85 dd idt_hand_86 dd idt_hand_87 dd idt_hand_88 dd idt_hand_89 dd idt_hand_90 dd idt_hand_91 dd idt_hand_92 dd idt_hand_93 dd idt_hand_94 dd idt_hand_95 dd idt_hand_96 dd idt_hand_97 dd idt_hand_98 dd idt_hand_99 dd idt_hand_100 dd idt_hand_101 dd idt_hand_102 dd idt_hand_103 dd idt_hand_104 dd idt_hand_105 dd idt_hand_106 dd idt_hand_107 dd idt_hand_108 dd idt_hand_109 dd idt_hand_110 dd idt_hand_111 dd idt_hand_112 dd idt_hand_113 dd idt_hand_114 dd idt_hand_115 dd idt_hand_116 dd idt_hand_117 dd idt_hand_118 dd idt_hand_119 dd idt_hand_120 dd idt_hand_121 dd idt_hand_122 dd idt_hand_123 dd idt_hand_124 dd idt_hand_125 dd idt_hand_126 dd idt_hand_127 dd idt_hand_128 dd idt_hand_129 dd idt_hand_130 dd idt_hand_131 dd idt_hand_132 dd idt_hand_133 dd idt_hand_134 dd idt_hand_135 dd idt_hand_136 dd idt_hand_137 dd idt_hand_138 dd idt_hand_139 dd idt_hand_140 dd idt_hand_141 dd idt_hand_142 dd idt_hand_143 dd idt_hand_144 dd idt_hand_145 dd idt_hand_146 dd idt_hand_147 dd idt_hand_148 dd idt_hand_149 dd idt_hand_150 dd idt_hand_151 dd idt_hand_152 dd idt_hand_153 dd idt_hand_154 dd idt_hand_155 dd idt_hand_156 dd idt_hand_157 dd idt_hand_158 dd idt_hand_159 dd idt_hand_160 dd idt_hand_161 dd idt_hand_162 dd idt_hand_163 dd idt_hand_164 dd idt_hand_165 dd idt_hand_166 dd idt_hand_167 dd idt_hand_168 dd idt_hand_169 dd idt_hand_170 dd idt_hand_171 dd idt_hand_172 dd idt_hand_173 dd idt_hand_174 dd idt_hand_175 dd idt_hand_176 dd idt_hand_177 dd idt_hand_178 dd idt_hand_179 dd idt_hand_180 dd idt_hand_181 dd idt_hand_182 dd idt_hand_183 dd idt_hand_184 dd idt_hand_185 dd idt_hand_186 dd idt_hand_187 dd idt_hand_188 dd idt_hand_189 dd idt_hand_190 dd idt_hand_191 dd idt_hand_192 dd idt_hand_193 dd idt_hand_194 dd idt_hand_195 dd idt_hand_196 dd idt_hand_197 dd idt_hand_198 dd idt_hand_199 dd idt_hand_200 dd idt_hand_201 dd idt_hand_202 dd idt_hand_203 dd idt_hand_204 dd idt_hand_205 dd idt_hand_206 dd idt_hand_207 dd idt_hand_208 dd idt_hand_209 dd idt_hand_210 dd idt_hand_211 dd idt_hand_212 dd idt_hand_213 dd idt_hand_214 dd idt_hand_215 dd idt_hand_216 dd idt_hand_217 dd idt_hand_218 dd idt_hand_219 dd idt_hand_220 dd idt_hand_221 dd idt_hand_222 dd idt_hand_223 dd idt_hand_224 dd idt_hand_225 dd idt_hand_226 dd idt_hand_227 dd idt_hand_228 dd idt_hand_229 dd idt_hand_230 dd idt_hand_231 dd idt_hand_232 dd idt_hand_233 dd idt_hand_234 dd idt_hand_235 dd idt_hand_236 dd idt_hand_237 dd idt_hand_238 dd idt_hand_239 dd idt_hand_240 dd idt_hand_241 dd idt_hand_242 dd idt_hand_243 dd idt_hand_244 dd idt_hand_245 dd idt_hand_246 dd idt_hand_247 dd idt_hand_248 dd idt_hand_249 dd idt_hand_250 dd idt_hand_251 dd idt_hand_252 dd idt_hand_253 dd idt_hand_254 dd idt_hand_255 idt_hand_0: pushad mov eax, esp push dword 0 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_1: pushad mov eax, esp push dword 1 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_2: pushad mov eax, esp push dword 2 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_3: pushad mov eax, esp push dword 3 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_4: pushad mov eax, esp push dword 4 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_5: pushad mov eax, esp push dword 5 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_6: pushad mov eax, esp push dword 6 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_7: pushad mov eax, esp push dword 7 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_8: pushad mov eax, esp push dword 8 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_9: pushad mov eax, esp push dword 9 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_10: pushad mov eax, esp push dword 10 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_11: pushad mov eax, esp push dword 11 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_12: pushad mov eax, esp push dword 12 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_13: pushad mov eax, esp push dword 13 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_14: mov eax, cr2 pushad mov eax, esp push dword 14 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_15: pushad mov eax, esp push dword 15 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_16: pushad mov eax, esp push dword 16 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_17: pushad mov eax, esp push dword 17 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_18: pushad mov eax, esp push dword 18 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_19: pushad mov eax, esp push dword 19 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_20: pushad mov eax, esp push dword 20 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_21: pushad mov eax, esp push dword 21 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_22: pushad mov eax, esp push dword 22 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_23: pushad mov eax, esp push dword 23 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_24: pushad mov eax, esp push dword 24 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_25: pushad mov eax, esp push dword 25 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_26: pushad mov eax, esp push dword 26 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_27: pushad mov eax, esp push dword 27 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_28: pushad mov eax, esp push dword 28 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_29: pushad mov eax, esp push dword 29 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_30: pushad mov eax, esp push dword 30 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_31: pushad mov eax, esp push dword 31 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_32: pushad mov eax, esp push dword 32 push eax call idt_call add esp, (2 * 4) mov al, 0x20 mov dx, 0x0020 out dx, al popad iret idt_hand_33: pushad mov eax, esp push dword 33 push eax call idt_call add esp, (2 * 4) mov al, 0x20 mov dx, 0x0020 out dx, al popad iret idt_hand_34: pushad mov eax, esp push dword 34 push eax call idt_call add esp, (2 * 4) mov al, 0x20 mov dx, 0x0020 out dx, al popad iret idt_hand_35: pushad mov eax, esp push dword 35 push eax call idt_call add esp, (2 * 4) mov al, 0x20 mov dx, 0x0020 out dx, al popad iret idt_hand_36: pushad mov eax, esp push dword 36 push eax call idt_call add esp, (2 * 4) mov al, 0x20 mov dx, 0x0020 out dx, al popad iret idt_hand_37: pushad mov eax, esp push dword 37 push eax call idt_call add esp, (2 * 4) mov al, 0x20 mov dx, 0x0020 out dx, al popad iret idt_hand_38: pushad mov eax, esp push dword 38 push eax call idt_call add esp, (2 * 4) mov al, 0x20 mov dx, 0x0020 out dx, al popad iret idt_hand_39: pushad mov eax, esp push dword 39 push eax call idt_call add esp, (2 * 4) mov al, 0x20 mov dx, 0x0020 out dx, al popad iret idt_hand_40: pushad mov eax, esp push dword 40 push eax call idt_call add esp, (2 * 4) mov dx, 0x0070 mov al, 0x0C inc dx in al, dx mov al, 0x20 mov dx, 0x0020 out dx, al mov dl, 0xA0 out dx, al popad iret idt_hand_41: pushad mov eax, esp push dword 41 push eax call idt_call add esp, (2 * 4) mov al, 0x20 mov dx, 0x0020 out dx, al mov dl, 0xA0 out dx, al popad iret idt_hand_42: pushad mov eax, esp push dword 42 push eax call idt_call add esp, (2 * 4) mov al, 0x20 mov dx, 0x0020 out dx, al mov dl, 0xA0 out dx, al popad iret idt_hand_43: pushad mov eax, esp push dword 43 push eax call idt_call add esp, (2 * 4) mov al, 0x20 mov dx, 0x0020 out dx, al mov dl, 0xA0 out dx, al popad iret idt_hand_44: pushad mov eax, esp push dword 44 push eax call idt_call add esp, (2 * 4) mov al, 0x20 mov dx, 0x0020 out dx, al mov dl, 0xA0 out dx, al popad iret idt_hand_45: pushad mov eax, esp push dword 45 push eax call idt_call add esp, (2 * 4) mov al, 0x20 mov dx, 0x0020 out dx, al mov dl, 0xA0 out dx, al popad iret idt_hand_46: pushad mov eax, esp push dword 46 push eax call idt_call add esp, (2 * 4) mov al, 0x20 mov dx, 0x0020 out dx, al mov dl, 0xA0 out dx, al popad iret idt_hand_47: pushad mov eax, esp push dword 47 push eax call idt_call add esp, (2 * 4) mov al, 0x20 mov dx, 0x0020 out dx, al mov dl, 0xA0 out dx, al popad iret idt_hand_48: pushad mov eax, esp push dword 48 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_49: pushad mov eax, esp push dword 49 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_50: pushad mov eax, esp push dword 50 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_51: pushad mov eax, esp push dword 51 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_52: pushad mov eax, esp push dword 52 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_53: pushad mov eax, esp push dword 53 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_54: pushad mov eax, esp push dword 54 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_55: pushad mov eax, esp push dword 55 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_56: pushad mov eax, esp push dword 56 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_57: pushad mov eax, esp push dword 57 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_58: pushad mov eax, esp push dword 58 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_59: pushad mov eax, esp push dword 59 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_60: pushad mov eax, esp push dword 60 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_61: pushad mov eax, esp push dword 61 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_62: pushad mov eax, esp push dword 62 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_63: pushad mov eax, esp push dword 63 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_64: pushad mov eax, esp push dword 64 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_65: pushad mov eax, esp push dword 65 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_66: pushad mov eax, esp push dword 66 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_67: pushad mov eax, esp push dword 67 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_68: pushad mov eax, esp push dword 68 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_69: pushad mov eax, esp push dword 69 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_70: pushad mov eax, esp push dword 70 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_71: pushad mov eax, esp push dword 71 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_72: pushad mov eax, esp push dword 72 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_73: pushad mov eax, esp push dword 73 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_74: pushad mov eax, esp push dword 74 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_75: pushad mov eax, esp push dword 75 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_76: pushad mov eax, esp push dword 76 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_77: pushad mov eax, esp push dword 77 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_78: pushad mov eax, esp push dword 78 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_79: pushad mov eax, esp push dword 79 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_80: pushad mov eax, esp push dword 80 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_81: pushad mov eax, esp push dword 81 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_82: pushad mov eax, esp push dword 82 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_83: pushad mov eax, esp push dword 83 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_84: pushad mov eax, esp push dword 84 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_85: pushad mov eax, esp push dword 85 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_86: pushad mov eax, esp push dword 86 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_87: pushad mov eax, esp push dword 87 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_88: pushad mov eax, esp push dword 88 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_89: pushad mov eax, esp push dword 89 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_90: pushad mov eax, esp push dword 90 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_91: pushad mov eax, esp push dword 91 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_92: pushad mov eax, esp push dword 92 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_93: pushad mov eax, esp push dword 93 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_94: pushad mov eax, esp push dword 94 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_95: pushad mov eax, esp push dword 95 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_96: pushad mov eax, esp push dword 96 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_97: pushad mov eax, esp push dword 97 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_98: pushad mov eax, esp push dword 98 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_99: pushad mov eax, esp push dword 99 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_100: pushad mov eax, esp push dword 100 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_101: pushad mov eax, esp push dword 101 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_102: pushad mov eax, esp push dword 102 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_103: pushad mov eax, esp push dword 103 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_104: pushad mov eax, esp push dword 104 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_105: pushad mov eax, esp push dword 105 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_106: pushad mov eax, esp push dword 106 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_107: pushad mov eax, esp push dword 107 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_108: pushad mov eax, esp push dword 108 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_109: pushad mov eax, esp push dword 109 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_110: pushad mov eax, esp push dword 110 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_111: pushad mov eax, esp push dword 111 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_112: pushad mov eax, esp push dword 112 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_113: pushad mov eax, esp push dword 113 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_114: pushad mov eax, esp push dword 114 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_115: pushad mov eax, esp push dword 115 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_116: pushad mov eax, esp push dword 116 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_117: pushad mov eax, esp push dword 117 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_118: pushad mov eax, esp push dword 118 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_119: pushad mov eax, esp push dword 119 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_120: pushad mov eax, esp push dword 120 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_121: pushad mov eax, esp push dword 121 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_122: pushad mov eax, esp push dword 122 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_123: pushad mov eax, esp push dword 123 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_124: pushad mov eax, esp push dword 124 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_125: pushad mov eax, esp push dword 125 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_126: pushad mov eax, esp push dword 126 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_127: pushad mov eax, esp push dword 127 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_128: pushad mov eax, esp push dword 128 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_129: pushad mov eax, esp push dword 129 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_130: pushad mov eax, esp push dword 130 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_131: pushad mov eax, esp push dword 131 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_132: pushad mov eax, esp push dword 132 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_133: pushad mov eax, esp push dword 133 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_134: pushad mov eax, esp push dword 134 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_135: pushad mov eax, esp push dword 135 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_136: pushad mov eax, esp push dword 136 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_137: pushad mov eax, esp push dword 137 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_138: pushad mov eax, esp push dword 138 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_139: pushad mov eax, esp push dword 139 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_140: pushad mov eax, esp push dword 140 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_141: pushad mov eax, esp push dword 141 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_142: pushad mov eax, esp push dword 142 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_143: pushad mov eax, esp push dword 143 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_144: pushad mov eax, esp push dword 144 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_145: pushad mov eax, esp push dword 145 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_146: pushad mov eax, esp push dword 146 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_147: pushad mov eax, esp push dword 147 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_148: pushad mov eax, esp push dword 148 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_149: pushad mov eax, esp push dword 149 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_150: pushad mov eax, esp push dword 150 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_151: pushad mov eax, esp push dword 151 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_152: pushad mov eax, esp push dword 152 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_153: pushad mov eax, esp push dword 153 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_154: pushad mov eax, esp push dword 154 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_155: pushad mov eax, esp push dword 155 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_156: pushad mov eax, esp push dword 156 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_157: pushad mov eax, esp push dword 157 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_158: pushad mov eax, esp push dword 158 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_159: pushad mov eax, esp push dword 159 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_160: pushad mov eax, esp push dword 160 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_161: pushad mov eax, esp push dword 161 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_162: pushad mov eax, esp push dword 162 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_163: pushad mov eax, esp push dword 163 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_164: pushad mov eax, esp push dword 164 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_165: pushad mov eax, esp push dword 165 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_166: pushad mov eax, esp push dword 166 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_167: pushad mov eax, esp push dword 167 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_168: pushad mov eax, esp push dword 168 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_169: pushad mov eax, esp push dword 169 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_170: pushad mov eax, esp push dword 170 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_171: pushad mov eax, esp push dword 171 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_172: pushad mov eax, esp push dword 172 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_173: pushad mov eax, esp push dword 173 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_174: pushad mov eax, esp push dword 174 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_175: pushad mov eax, esp push dword 175 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_176: pushad mov eax, esp push dword 176 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_177: pushad mov eax, esp push dword 177 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_178: pushad mov eax, esp push dword 178 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_179: pushad mov eax, esp push dword 179 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_180: pushad mov eax, esp push dword 180 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_181: pushad mov eax, esp push dword 181 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_182: pushad mov eax, esp push dword 182 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_183: pushad mov eax, esp push dword 183 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_184: pushad mov eax, esp push dword 184 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_185: pushad mov eax, esp push dword 185 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_186: pushad mov eax, esp push dword 186 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_187: pushad mov eax, esp push dword 187 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_188: pushad mov eax, esp push dword 188 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_189: pushad mov eax, esp push dword 189 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_190: pushad mov eax, esp push dword 190 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_191: pushad mov eax, esp push dword 191 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_192: pushad mov eax, esp push dword 192 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_193: pushad mov eax, esp push dword 193 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_194: pushad mov eax, esp push dword 194 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_195: pushad mov eax, esp push dword 195 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_196: pushad mov eax, esp push dword 196 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_197: pushad mov eax, esp push dword 197 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_198: pushad mov eax, esp push dword 198 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_199: pushad mov eax, esp push dword 199 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_200: pushad mov eax, esp push dword 200 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_201: pushad mov eax, esp push dword 201 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_202: pushad mov eax, esp push dword 202 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_203: pushad mov eax, esp push dword 203 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_204: pushad mov eax, esp push dword 204 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_205: pushad mov eax, esp push dword 205 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_206: pushad mov eax, esp push dword 206 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_207: pushad mov eax, esp push dword 207 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_208: pushad mov eax, esp push dword 208 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_209: pushad mov eax, esp push dword 209 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_210: pushad mov eax, esp push dword 210 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_211: pushad mov eax, esp push dword 211 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_212: pushad mov eax, esp push dword 212 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_213: pushad mov eax, esp push dword 213 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_214: pushad mov eax, esp push dword 214 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_215: pushad mov eax, esp push dword 215 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_216: pushad mov eax, esp push dword 216 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_217: pushad mov eax, esp push dword 217 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_218: pushad mov eax, esp push dword 218 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_219: pushad mov eax, esp push dword 219 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_220: pushad mov eax, esp push dword 220 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_221: pushad mov eax, esp push dword 221 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_222: pushad mov eax, esp push dword 222 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_223: pushad mov eax, esp push dword 223 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_224: pushad mov eax, esp push dword 224 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_225: pushad mov eax, esp push dword 225 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_226: pushad mov eax, esp push dword 226 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_227: pushad mov eax, esp push dword 227 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_228: pushad mov eax, esp push dword 228 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_229: pushad mov eax, esp push dword 229 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_230: pushad mov eax, esp push dword 230 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_231: pushad mov eax, esp push dword 231 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_232: pushad mov eax, esp push dword 232 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_233: pushad mov eax, esp push dword 233 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_234: pushad mov eax, esp push dword 234 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_235: pushad mov eax, esp push dword 235 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_236: pushad mov eax, esp push dword 236 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_237: pushad mov eax, esp push dword 237 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_238: pushad mov eax, esp push dword 238 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_239: pushad mov eax, esp push dword 239 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_240: pushad mov eax, esp push dword 240 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_241: pushad mov eax, esp push dword 241 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_242: pushad mov eax, esp push dword 242 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_243: pushad mov eax, esp push dword 243 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_244: pushad mov eax, esp push dword 244 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_245: pushad mov eax, esp push dword 245 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_246: pushad mov eax, esp push dword 246 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_247: pushad mov eax, esp push dword 247 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_248: pushad mov eax, esp push dword 248 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_249: pushad mov eax, esp push dword 249 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_250: pushad mov eax, esp push dword 250 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_251: pushad mov eax, esp push dword 251 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_252: pushad mov eax, esp push dword 252 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_253: pushad mov eax, esp push dword 253 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_254: pushad mov eax, esp push dword 254 push eax call idt_call add esp, (2 * 4) popad iret idt_hand_255: pushad mov eax, esp push dword 255 push eax call idt_call add esp, (2 * 4) popad iret idt_tmp: dd 0x00000000
alloy4fun_models/trainstlt/models/14/758CgPsei3BbcmE6j.als
Kaixi26/org.alloytools.alloy
0
3517
open main pred id758CgPsei3BbcmE6j_prop15 { all t:Train | one t.pos implies eventually (t.pos)' != t.pos } pred __repair { id758CgPsei3BbcmE6j_prop15 } check __repair { id758CgPsei3BbcmE6j_prop15 <=> prop15o }
src/main/fragment/mos6502-common/vdum1=vdum2_ror_vbuxx.asm
jbrandwood/kickc
2
175580
<reponame>jbrandwood/kickc lda {m2} sta {m1} lda {m2}+1 sta {m1}+1 lda {m2}+2 sta {m1}+2 lda {m2}+3 sta {m1}+3 cpx #0 beq !e+ !: lsr {m1}+3 ror {m1}+2 ror {m1}+1 ror {m1} dex bne !- !e: