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
antlrv4-grammar/CTE.g4
kstenerud/concise-encoding
168
5914
// Copyright 2021 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or // sell copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS // IN THE SOFTWARE. parser grammar CTE; options { tokenVocab=CTELexer; } cte : version value ; value : valueString | valueRid | valueUid | valueBool | valueNull | valueInt | valueFloat | valueTime | arrayBit | arrayI8 | arrayI8b | arrayI8o | arrayI8x | arrayU8 | arrayU8b | arrayU8o | arrayU8x | arrayI16 | arrayI16b | arrayI16o | arrayI16x | arrayU16 | arrayU16b | arrayU16o | arrayU16x | arrayI32 | arrayI32b | arrayI32o | arrayI32x | arrayU32 | arrayU32b | arrayU32o | arrayU32x | arrayI64 | arrayI64b | arrayI64o | arrayI64x | arrayU64 | arrayU64b | arrayU64o | arrayU64x | arrayF16 | arrayF16x | arrayF32 | arrayF32x | arrayF64 | arrayF64x | customBinary | customText | media | containerMap | containerList | containerEdge | containerNode | containerMarkup | marker | reference | remoteRef ; version: VERSION; valueNull: NULL; valueUid: UID; valueBool: TRUE | FALSE; valueInt : PINT_BIN | NINT_BIN | PINT_OCT | NINT_OCT | PINT_DEC | NINT_DEC | PINT_HEX | NINT_HEX ; valueFloat : FLOAT_DEC | FLOAT_HEX | INF | NAN | SNAN ; valueTime: DATE | TIME; valueString: STRING; valueRid: RID; customText: CUSTOM_TEXT; kvPair: value KV_SEPARATOR value; markerID: MARKER; marker: markerID value; reference: REFRENCE; remoteRef: REMOTE_REF; markupName: MARKUP_NAME | MARKUP_SUB_NAME; markupContents: MARKUP_CONTENTS | containerMarkup; containerMap: MAP_BEGIN kvPair* MAP_END; containerList: LIST_BEGIN value* LIST_END; containerEdge: EDGE_BEGIN value value value EDGE_NODE_END; containerNode: NODE_BEGIN value+ EDGE_NODE_END; containerMarkup : (MARKUP_BEGIN | MARKUP_SUB_BEGIN) markupName kvPair* (MARKUP_CONTENT_BEGIN markupContents*)? (MARKUP_END | MARKUP_CONTENTS_END); arrayElemBits: ARRAY_BIT_BITS; arrayElemInt: ARRAY_I_ELEM_D | ARRAY_I_ELEM_B | ARRAY_I_ELEM_O | ARRAY_I_ELEM_H; arrayElemIntB: ARRAY_I_B_ELEM; arrayElemIntO: ARRAY_I_O_ELEM; arrayElemIntX: ARRAY_I_X_ELEM; arrayElemUint: ARRAY_U_ELEM_D | ARRAY_U_ELEM_B | ARRAY_U_ELEM_O | ARRAY_U_ELEM_H; arrayElemUintB: ARRAY_U_B_ELEM; arrayElemUintO: ARRAY_U_O_ELEM; arrayElemUintX: ARRAY_U_X_ELEM; arrayElemFloat: ARRAY_F_ELEM_D | ARRAY_F_ELEM_H; arrayElemFloatX: ARRAY_F_X_ELEM; arrayElemByteX: CUSTOM_BINARY_ELEM | MEDIA_ELEM; arrayBit: ARRAY_BIT_BEGIN arrayElemBits* ARRAY_BIT_END; arrayI8: ARRAY_I8_BEGIN arrayElemInt* ARRAY_I_END; arrayI8b: ARRAY_I8B_BEGIN arrayElemIntB* ARRAY_I_B_END; arrayI8o: ARRAY_I8O_BEGIN arrayElemIntO* ARRAY_I_O_END; arrayI8x: ARRAY_I8X_BEGIN arrayElemIntX* ARRAY_I_X_END; arrayU8: ARRAY_U8_BEGIN arrayElemUint* ARRAY_U_END; arrayU8b: ARRAY_U8B_BEGIN arrayElemUintB* ARRAY_U_B_END; arrayU8o: ARRAY_U8O_BEGIN arrayElemUintO* ARRAY_U_O_END; arrayU8x: ARRAY_U8X_BEGIN arrayElemUintX* ARRAY_U_X_END; arrayI16: ARRAY_I16_BEGIN arrayElemInt* ARRAY_I_END; arrayI16b: ARRAY_I16B_BEGIN arrayElemIntB* ARRAY_I_B_END; arrayI16o: ARRAY_I16O_BEGIN arrayElemIntO* ARRAY_I_O_END; arrayI16x: ARRAY_I16X_BEGIN arrayElemIntX* ARRAY_I_X_END; arrayU16: ARRAY_U16_BEGIN arrayElemUint* ARRAY_U_END; arrayU16b: ARRAY_U16B_BEGIN arrayElemUintB* ARRAY_U_B_END; arrayU16o: ARRAY_U16O_BEGIN arrayElemUintO* ARRAY_U_O_END; arrayU16x: ARRAY_U16X_BEGIN arrayElemUintX* ARRAY_U_X_END; arrayI32: ARRAY_I32_BEGIN arrayElemInt* ARRAY_I_END; arrayI32b: ARRAY_I32B_BEGIN arrayElemIntB* ARRAY_I_B_END; arrayI32o: ARRAY_I32O_BEGIN arrayElemIntO* ARRAY_I_O_END; arrayI32x: ARRAY_I32X_BEGIN arrayElemIntX* ARRAY_I_X_END; arrayU32: ARRAY_U32_BEGIN arrayElemUint* ARRAY_U_END; arrayU32b: ARRAY_U32B_BEGIN arrayElemUintB* ARRAY_U_B_END; arrayU32o: ARRAY_U32O_BEGIN arrayElemUintO* ARRAY_U_O_END; arrayU32x: ARRAY_U32X_BEGIN arrayElemUintX* ARRAY_U_X_END; arrayI64: ARRAY_I64_BEGIN arrayElemInt* ARRAY_I_END; arrayI64b: ARRAY_I64B_BEGIN arrayElemIntB* ARRAY_I_B_END; arrayI64o: ARRAY_I64O_BEGIN arrayElemIntO* ARRAY_I_O_END; arrayI64x: ARRAY_I64X_BEGIN arrayElemIntX* ARRAY_I_X_END; arrayU64: ARRAY_U64_BEGIN arrayElemUint* ARRAY_U_END; arrayU64b: ARRAY_U64B_BEGIN arrayElemUintB* ARRAY_U_B_END; arrayU64o: ARRAY_U64O_BEGIN arrayElemUintO* ARRAY_U_O_END; arrayU64x: ARRAY_U64X_BEGIN arrayElemUintX* ARRAY_U_X_END; arrayF16: ARRAY_F16_BEGIN arrayElemFloat* ARRAY_F_END; arrayF16x: ARRAY_F16X_BEGIN arrayElemFloatX* ARRAY_F_X_END; arrayF32: ARRAY_F32_BEGIN arrayElemFloat* ARRAY_F_END; arrayF32x: ARRAY_F32X_BEGIN arrayElemFloatX* ARRAY_F_X_END; arrayF64: ARRAY_F64_BEGIN arrayElemFloat* ARRAY_F_END; arrayF64x: ARRAY_F64X_BEGIN arrayElemFloatX* ARRAY_F_X_END; customBinary: CUSTOM_BINARY_BEGIN arrayElemByteX* CUSTOM_BINARY_END; media: MEDA_BEGIN arrayElemByteX* MEDIA_END;
programs/oeis/177/A177228.asm
karttu/loda
1
18088
<reponame>karttu/loda<filename>programs/oeis/177/A177228.asm ; A177228: A combinatorial differential triangle sequence:q=3;t=1/q;f(t,n)=d^n/dt^n*(t/(1+t); c(t.n,m)=(1/(1+t)*f(n,t)/(f(t,m)*f(t,(n-m)) ; 3,3,3,3,-2,3,3,-3,-3,3,3,-4,-6,-4,3,3,-5,-10,-10,-5,3,3,-6,-15,-20,-15,-6,3,3,-7,-21,-35,-35,-21,-7,3,3,-8,-28,-56,-70,-56,-28,-8,3,3,-9,-36,-84,-126,-126,-84,-36,-9,3,3,-10,-45,-120,-210,-252,-210,-120,-45,-10 cal $0,141540 ; Duplicate of A132046. mov $1,4 trn $1,$0 mul $1,3 sub $1,$0 mul $1,2 sub $1,13 div $1,4 add $1,3
oeis/194/A194475.asm
neoneye/loda-programs
11
97092
<reponame>neoneye/loda-programs ; A194475: Number of ways to arrange 3 indistinguishable points on an n X n X n triangular grid so that no three points are in the same row or diagonal. ; Submitted by <NAME> ; 0,1,17,105,410,1225,3066,6762,13560,25245,44275,73931,118482,183365,275380,402900,576096,807177,1110645,1503565,2005850,2640561,3434222,4417150,5623800,7093125,8868951,11000367,13542130,16555085,20106600,24271016,29130112,34773585,41299545,48815025,57436506,67290457,78513890,91254930,105673400,121941421,140244027,160779795,183761490,209416725,237988636,269736572,304936800,343883225,386888125,434282901,486418842,543667905,606423510,675101350,750140216,832002837,921176735,1018175095,1123537650 mov $2,$0 pow $0,2 mov $1,$0 add $0,4 mul $0,$1 add $0,$1 add $0,$2 mov $4,$2 add $2,$1 mul $0,$2 mul $4,$2 add $0,$4 mul $4,$2 mov $3,$4 mul $3,8 add $0,$3 div $0,48
game/logic/game_states/game/game_logic.asm
pompshuffle/super-tilt-bro
2
103184
init_game_state: .( .( ; Clear background of nametable 2 jsr clear_bg_bot_left ; Store characters' tiles in CHR ldx #0 jsr place_character_ppu_tiles ldx #1 jsr place_character_ppu_tiles ldx #0 jsr place_character_ppu_illustrations ldx #1 jsr place_character_ppu_illustrations ; Ensure game state is zero ldx #$00 lda #$00 zero_game_state: sta $00, x inx cpx #ZERO_PAGE_GLOBAL_FIELDS_BEGIN bne zero_game_state ; Copy stage's tileset .( tileset_addr = tmpfield1 ; Not movable, used by cpu_to_ppu_copy_tiles ;tileset_addr_msb = tmpfield2 ; Not movable, used by cpu_to_ppu_copy_tiles tiles_count = tmpfield3 ; Not movable, used by cpu_to_ppu_copy_tiles ; Save tileset's vector ldx config_selected_stage lda stages_tileset_lsb, x sta tileset_addr lda stages_tileset_msb, x sta tileset_addr+1 ; Switch to tileset's bank SWITCH_BANK(stages_tileset_bank COMMA x) ; Copy tileset ldy #0 lda (tileset_addr), y sta tiles_count inc tileset_addr bne update_addr_end inc tileset_addr+1 update_addr_end: lda PPUSTATUS lda #$10 sta PPUADDR lda #$00 sta PPUADDR jsr cpu_to_ppu_copy_tiles .) ; Call stage initialization routine ldx config_selected_stage SWITCH_BANK(stages_bank COMMA x) txa asl tax lda stages_init_routine, x sta tmpfield1 lda stages_init_routine+1, x sta tmpfield2 jsr call_pointed_subroutine ; Reset screen shaking lda #0 sta screen_shake_counter ; Setup logical game state to the game startup configuration lda DIRECTION_LEFT sta player_b_direction lda DIRECTION_RIGHT sta player_a_direction lda HITBOX_DISABLED sta player_a_hitbox_enabled sta player_b_hitbox_enabled ldx #0 position_player_loop: lda #0 sta player_a_x_screen, x sta player_a_y_screen, x lda stage_data+STAGE_HEADER_OFFSET_PAY_HIGH, x sta player_a_y, x lda stage_data+STAGE_HEADER_OFFSET_PAY_LOW, x sta player_a_y_low, x lda stage_data+STAGE_HEADER_OFFSET_PAX_HIGH, x sta player_a_x, x lda stage_data+STAGE_HEADER_OFFSET_PAX_LOW, x sta player_a_x_low, x inx cpx #2 bne position_player_loop lda #DEFAULT_GRAVITY sta player_a_gravity sta player_b_gravity lda config_initial_stocks sta player_a_stocks sta player_b_stocks lda #<player_a_animation ; sta tmpfield11 ; lda #>player_a_animation ; sta tmpfield12 ; jsr animation_init_state ; lda #INGAME_PLAYER_A_FIRST_SPRITE ; sta player_a_animation+ANIMATION_STATE_OFFSET_FIRST_SPRITE_NUM ; lda #INGAME_PLAYER_A_LAST_SPRITE ; sta player_a_animation+ANIMATION_STATE_OFFSET_LAST_SPRITE_NUM ; Initialize players animation state lda #<player_b_animation ; (voluntarily let garbage in data vector, it will be overriden by initializing player's state) sta tmpfield11 ; lda #>player_b_animation ; sta tmpfield12 ; jsr animation_init_state ; lda #INGAME_PLAYER_B_FIRST_SPRITE ; sta player_b_animation+ANIMATION_STATE_OFFSET_FIRST_SPRITE_NUM ; lda #INGAME_PLAYER_B_LAST_SPRITE ; sta player_b_animation+ANIMATION_STATE_OFFSET_LAST_SPRITE_NUM ; ; Initialize out of screen indicators animation state lda #<player_a_out_of_screen_indicator sta tmpfield11 lda #>player_a_out_of_screen_indicator sta tmpfield12 lda #<anim_out_of_screen_bubble sta tmpfield13 lda #>anim_out_of_screen_bubble sta tmpfield14 jsr animation_init_state lda #INGAME_PLAYER_A_FIRST_SPRITE sta player_a_out_of_screen_indicator+ANIMATION_STATE_OFFSET_FIRST_SPRITE_NUM lda #INGAME_PLAYER_A_LAST_SPRITE sta player_a_out_of_screen_indicator+ANIMATION_STATE_OFFSET_LAST_SPRITE_NUM lda #<player_b_out_of_screen_indicator sta tmpfield11 lda #>player_b_out_of_screen_indicator jsr animation_init_state lda #INGAME_PLAYER_B_FIRST_SPRITE sta player_b_out_of_screen_indicator+ANIMATION_STATE_OFFSET_FIRST_SPRITE_NUM lda #INGAME_PLAYER_B_LAST_SPRITE sta player_b_out_of_screen_indicator+ANIMATION_STATE_OFFSET_LAST_SPRITE_NUM ; Clear players' elements lda #STAGE_ELEMENT_END sta player_a_objects sta player_b_objects ; Initialize players' state ldx #$00 initialize_one_player: ; Select character's bank ldy config_player_a_character, x SWITCH_BANK(characters_bank_number COMMA y) ; Call character's start routine lda PLAYER_STATE_SPAWN sta player_a_state, x lda characters_start_routines_table_lsb, y sta tmpfield1 lda characters_start_routines_table_msb, y sta tmpfield2 jsr player_state_action ; Next player inx cpx #2 bne initialize_one_player ; Construct players palette swap buffers ldx #0 ; X points on players_palettes's next byte ldy config_player_a_character SWITCH_BANK(characters_bank_number COMMA y) jsr place_player_a_header ldy #0 jsr place_character_normal_palette jsr place_player_a_header ldy #0 jsr place_character_alternate_palette ldy config_player_b_character SWITCH_BANK(characters_bank_number COMMA y) jsr place_player_b_header ldy #1 jsr place_character_normal_palette jsr place_player_b_header ldy #1 jsr place_character_alternate_palette ; Initialize weapons palettes bit PPUSTATUS ; lda #$80 ; Wait the begining of a VBI before wait_vbi: ; writing data to PPU's palettes bit PPUSTATUS ; beq wait_vbi ; ldx config_player_a_character SWITCH_BANK(characters_bank_number COMMA x) lda characters_weapon_palettes_lsb, x sta tmpfield2 lda characters_weapon_palettes_msb, x sta tmpfield3 ldx #$15 lda config_player_a_weapon_palette sta tmpfield1 jsr copy_palette_to_ppu ldx config_player_b_character SWITCH_BANK(characters_bank_number COMMA x) lda characters_weapon_palettes_lsb, x sta tmpfield2 lda characters_weapon_palettes_msb, x sta tmpfield3 ldx #$1d lda config_player_b_weapon_palette sta tmpfield1 jsr copy_palette_to_ppu ; Move sprites according to the initial state jsr update_sprites ; Change for ingame music jsr audio_music_power ; Initialize game mode ldx config_game_mode lda game_modes_init_lsb, x sta tmpfield1 lda game_modes_init_msb, x sta tmpfield2 jsr call_pointed_subroutine rts .) place_player_a_header: .( ldy #0 copy_one_byte: lda header_player_a, y sta players_palettes, x iny inx cpy #4 bne copy_one_byte rts .) place_player_b_header: .( ldy #0 copy_one_byte: lda header_player_b, y sta players_palettes, x iny inx cpy #4 bne copy_one_byte rts .) ; Copy character's normal palette in players_palettes ; X - current offset in players_palettes ; Y - player number ; ; Output ; X - Updated offset in players_palettes ; ; Overwrites all registers, tmpfield1 and tmpfield2 place_character_normal_palette: .( txa pha ldx config_player_a_character, y lda characters_palettes_lsb, x sta tmpfield1 lda characters_palettes_msb, x sta tmpfield2 pla tax jmp place_character_palette ;rts ; useless, use place_character_palette's rts .) place_character_alternate_palette: .( txa pha ldx config_player_a_character, y lda characters_alternate_palettes_lsb, x sta tmpfield1 lda characters_alternate_palettes_msb, x sta tmpfield2 pla tax jmp place_character_palette ;rts ; useless, use place_character_palette's rts .) ; Copy pointed palette in players_palettes ; X - current offset in players_palettes ; Y - player number ; tmpfield1, tmpfield2 - palettes table of player's character ; ; Output ; X - Updated offset in players_palettes ; ; Overwrites all registers, tmpfield1 and tmpfield2 place_character_palette: .( lda config_player_a_character_palette, y asl ;clc ; useless, asl shall not overflow adc config_player_a_character_palette, y tay lda (tmpfield1), y sta players_palettes, x iny inx lda (tmpfield1), y sta players_palettes, x iny inx lda (tmpfield1), y sta players_palettes, x iny inx lda #0 sta players_palettes, x inx rts .) place_character_ppu_illustrations: .( ldy config_player_a_character, x SWITCH_BANK(characters_bank_number COMMA y) lda PPUSTATUS lda illustrations_addr_msb, x sta PPUADDR lda illustrations_addr_lsb, x sta PPUADDR lda characters_properties_lsb, y sta tmpfield4 lda characters_properties_msb, y sta tmpfield5 ldy #CHARACTERS_PROPERTIES_ILLUSTRATIONS_ADDR_OFFSET lda (tmpfield4), y sta tmpfield1 iny lda (tmpfield4), y sta tmpfield2 lda #5 sta tmpfield3 jsr cpu_to_ppu_copy_tiles rts illustrations_addr_msb: .byt $1d, $1d illustrations_addr_lsb: .byt $00, $50 .) header_player_a: .byt $01, $3f, $11, $03 header_player_b: .byt $01, $3f, $19, $03 .) game_tick: .( ; Remove processed nametable buffers jsr reset_nt_buffers ; Tick game mode ldx config_game_mode lda game_modes_pre_update_lsb, x sta tmpfield1 lda game_modes_pre_update_msb, x sta tmpfield2 jsr call_pointed_subroutine ; Shake screen and do nothing until shaking is over lda screen_shake_counter beq no_screen_shake jsr shake_screen lda network_rollback_mode bne end_effects ldx #0 jsr player_effects ldx #1 jsr player_effects jsr particle_draw end_effects: rts no_screen_shake: ; Do nothing during a slowdown skipped frame lda slow_down_counter beq no_slowdown jsr slowdown lda tmpfield1 bne end no_slowdown: ; Call stage's logic ldx config_selected_stage SWITCH_BANK(stages_bank COMMA x) txa asl tax lda stages_tick_routine, x sta tmpfield1 lda stages_tick_routine+1, x sta tmpfield2 jsr call_pointed_subroutine ; Update game state jsr update_players ; Update screen jsr update_sprites end: rts .) ; Set tmpfield1 to 1 if ne current frame need to be skipped, follow to gameover ; screen when the counter goes to zero slowdown: .( dec slow_down_counter beq next_screen lda slow_down_counter and #%00000011 beq keep_frame lda #1 sta tmpfield1 jmp end keep_frame: lda #0 sta tmpfield1 jmp end next_screen: lda #0 sta network_rollback_mode lda #GAME_STATE_GAMEOVER jsr change_global_game_state end: rts .) update_players: .( ; Decrement hitstun counters ldx #$00 hitstun_one_player: lda player_a_hitstun, x beq hitstun_next_player dec player_a_hitstun, x hitstun_next_player: inx cpx #$02 bne hitstun_one_player ; Check hitbox collisions ldx #$00 hitbox_one_player: jsr check_player_hit inx cpx #$02 bne hitbox_one_player ; Update both players ldx #$00 ; player number update_one_player: ; Select character's bank ldy config_player_a_character, x SWITCH_BANK(characters_bank_number COMMA y) ; Call the state update routine lda characters_update_routines_table_lsb, y sta tmpfield1 lda characters_update_routines_table_msb, y sta tmpfield2 jsr player_state_action ; Call the state input routine if input changed lda controller_a_btns, x cmp controller_a_last_frame_btns, x beq end_input_event ldy config_player_a_character, x lda characters_input_routines_table_lsb, y sta tmpfield1 lda characters_input_routines_table_msb, y sta tmpfield2 jsr player_state_action end_input_event: ; Call generic update routines jsr move_player jsr check_player_position lda network_rollback_mode bne end_visuals jsr write_player_damages jsr player_effects end_visuals: inx cpx #$02 bne update_one_player rts .) ; Calls a subroutine depending on player's state ; register X - Player number ; tmpfield1 - Jump table address (low byte) ; tmpfield2 - Jump table address (high bute) player_state_action: .( jump_table = tmpfield1 ; Convert player state number to vector address (relative to table begining) lda player_a_state, x ; Y = state * 2 asl ; (as each element is 2 bytes long) tay ; ; Push the state's routine address to the stack lda (jump_table), y pha iny lda (jump_table), y pha ; Return to the state's routine, it will itself return to player_state_action's caller rts .) ; Update a player's state according to hitbox collisions ; register X - player number ; ; Overwrite all registers and all tmpfields check_player_hit: .( ; Parameters of boxes_overlap striking_box_left = tmpfield1 striking_box_right = tmpfield2 striking_box_top = tmpfield3 striking_box_bottom = tmpfield4 striking_box_left_msb = tmpfield9 striking_box_right_msb = tmpfield10 striking_box_top_msb = tmpfield11 striking_box_bottom_msb = tmpfield12 smashed_box_left = tmpfield5 smashed_box_right = tmpfield6 smashed_box_top = tmpfield7 smashed_box_bottom = tmpfield8 smashed_box_left_msb = tmpfield13 smashed_box_right_msb = tmpfield14 smashed_box_top_msb = tmpfield15 smashed_box_bottom_msb = tmpfield16 ; Parameters of onhurt callbacks current_player = tmpfield10 opponent_player = tmpfield11 ; Store current player number (at stack+1) txa pha ; Check that player's hitbox is enabled lda player_a_hitbox_enabled, x bne process_checks jmp end process_checks: ; Store current player's hitbox lda player_a_hitbox_left, x sta striking_box_left lda player_a_hitbox_left_msb, x sta striking_box_left_msb lda player_a_hitbox_right, x sta striking_box_right lda player_a_hitbox_right_msb, x sta striking_box_right_msb lda player_a_hitbox_top, x sta striking_box_top lda player_a_hitbox_top_msb, x sta striking_box_top_msb lda player_a_hitbox_bottom, x sta striking_box_bottom lda player_a_hitbox_bottom_msb, x sta striking_box_bottom_msb ; Switch current player to select the opponent jsr switch_selected_player ; If opponent's hitbox is enabled, check hitbox on hitbox collisions lda player_a_hitbox_enabled, x beq check_hitbox_hurtbox ; Store opponent's hitbox lda player_a_hitbox_left, x sta smashed_box_left lda player_a_hitbox_left_msb, x sta smashed_box_left_msb lda player_a_hitbox_right, x sta smashed_box_right lda player_a_hitbox_right_msb, x sta smashed_box_right_msb lda player_a_hitbox_top, x sta smashed_box_top lda player_a_hitbox_top_msb, x sta smashed_box_top_msb lda player_a_hitbox_bottom, x sta smashed_box_bottom lda player_a_hitbox_bottom_msb, x sta smashed_box_bottom_msb ; Check collisions between hitbox and hitbox jsr boxes_overlap bne check_hitbox_hurtbox ; Play parry sound jsr audio_play_parry ; Hitboxes collide, set opponent in thrown mode without momentum lda #HITSTUN_PARRY_NB_FRAMES sta player_a_hitstun, x lda #$00 sta player_a_velocity_h, x sta player_a_velocity_h_low, x sta player_a_velocity_v, x sta player_a_velocity_v_low, x lda PLAYER_STATE_THROWN sta player_a_state, x ldy config_player_a_character, x SWITCH_BANK(characters_bank_number COMMA y) lda characters_start_routines_table_lsb, y sta tmpfield1 lda characters_start_routines_table_msb, y sta tmpfield2 jsr player_state_action lda #SCREENSHAKE_PARRY_INTENSITY sta screen_shake_nextval_x sta screen_shake_nextval_y lda #SCREENSHAKE_PARRY_NB_FRAMES sta screen_shake_counter jmp end check_hitbox_hurtbox: ; Store opponent's hurtbox lda player_a_hurtbox_left, x sta smashed_box_left lda player_a_hurtbox_left_msb, x sta smashed_box_left_msb lda player_a_hurtbox_right, x sta smashed_box_right lda player_a_hurtbox_right_msb, x sta smashed_box_right_msb lda player_a_hurtbox_top, x sta smashed_box_top lda player_a_hurtbox_top_msb, x sta smashed_box_top_msb lda player_a_hurtbox_bottom, x sta smashed_box_bottom lda player_a_hurtbox_bottom_msb, x sta smashed_box_bottom_msb ; Check collisions between hitbox and hurtbox jsr boxes_overlap bne end ; Fire on-hurt event stx opponent_player jsr switch_selected_player stx current_player jsr switch_selected_player ldy config_player_a_character, x SWITCH_BANK(characters_bank_number COMMA y) lda characters_onhurt_routines_table_lsb, y sta tmpfield1 lda characters_onhurt_routines_table_msb, y sta tmpfield2 jsr player_state_action end: ; Reset register X to the current player pla tax rts .) ; Throw the hurted player depending on the hitbox hurting him ; tmpfield10 - Player number of the striker ; tmpfield11 - Player number of the stroke ; register X - Player number of the stroke (equals to tmpfield11) ; ; Can overwrite any register and any tmpfield except tmpfield10 and tmpfield11. ; The currently selected bank must be the current character's bank hurt_player: .( current_player = tmpfield10 opponent_player = tmpfield11 ; Play hit sound jsr audio_play_hit ; Apply force vector to the opponent jsr apply_force_vector ; Apply damages to the opponent ldx current_player lda player_a_hitbox_damages, x ; Put hitbox damages in A ldx opponent_player clc ; adc player_a_damages, x ; cmp #200 ; bcs cap_damages ; Apply damages, capped to 199 jmp apply_damages: ; cap_damages: ; lda #199 ; apply_damages: ; sta player_a_damages, x ; ; Set opponent to thrown state lda PLAYER_STATE_THROWN sta player_a_state, x ldy config_player_a_character, x lda characters_start_routines_table_lsb, y sta tmpfield1 lda characters_start_routines_table_msb, y sta tmpfield2 lda current_player pha lda opponent_player pha jsr player_state_action pla sta opponent_player pla sta current_player ; Disable the hitbox to avoid multi-hits ldx current_player lda HITBOX_DISABLED sta player_a_hitbox_enabled, x rts .) ; Apply force in current player's hitbox to it's opponent ; ; Overwrites every tmpfields except "current_player" and "opponent_player". ; Overwrites registers A and X (set to the opponent player's number). apply_force_vector: .( base_h_low = tmpfield6 base_h_high = tmpfield7 base_v_low = tmpfield8 base_v_high = tmpfield9 current_player = tmpfield10 opponent_player = tmpfield11 force_h = tmpfield12 force_v = tmpfield13 force_h_low = tmpfield14 force_v_low = tmpfield15 knockback_h_high = force_h ; knockback_h reuses force_h memory location knockback_h_low = force_h_low ; it is only writen after the last read of force_h knockback_v_high = force_v ; knockback_v reuses force_v memory location knockback_v_low = force_v_low ; it is only writen after the last read of force_v ; Apply force vector to the opponent ldx current_player lda player_a_hitbox_force_h, x ; sta force_h ; lda player_a_hitbox_force_h_low, x ; sta force_h_low ; Save force vector to a player independent lda player_a_hitbox_force_v, x ; location sta force_v ; lda player_a_hitbox_force_v_low, x ; sta force_v_low ; lda player_a_hitbox_base_knock_up_h_high, x ; sta base_h_high ; lda player_a_hitbox_base_knock_up_h_low, x ; sta base_h_low ; Save base knock up to a player independent lda player_a_hitbox_base_knock_up_v_high, x ; location sta base_v_high ; lda player_a_hitbox_base_knock_up_v_low, x ; sta base_v_low ; ldx opponent_player lda player_a_damages, x ; lsr ; Get force multiplier lsr ; "damages / 4" sta tmpfield3 ; lda force_h ; sta tmpfield2 ; lda force_h_low ; sta tmpfield1 ; jsr multiply ; Compute horizontal knockback lda base_h_low ; "force_h * multiplier + base_h" clc ; adc tmpfield4 ; sta tmpfield4 ; lda base_h_high ; adc tmpfield5 ; sta player_a_velocity_h, x ; lda tmpfield4 ; Apply horizontal knockback sta player_a_velocity_h_low, x ; lda force_v ; sta tmpfield2 ; lda force_v_low ; sta tmpfield1 ; jsr multiply ; Compute vertical knockback lda base_v_low ; "force_v * multiplier + base_v" clc ; adc tmpfield4 ; lda base_v_high ; adc tmpfield5 ; sta player_a_velocity_v, x ; lda tmpfield4 ; Apply vertical knockback sta player_a_velocity_v_low, x ; ; Apply hitstun to the opponent ; hitstun duration = high byte of 2 * (abs(velotcity_v) + abs(velocity_h)) lda player_a_velocity_h, x ; bpl passthrough_kb_h ; lda player_a_velocity_h_low, x ; eor #%11111111 ; clc ; adc #$01 ; sta knockback_h_low ; lda player_a_velocity_h, x ; eor #%11111111 ; knockback_h = abs(velocity_h) adc #$00 ; sta knockback_h_high ; jmp end_abs_kb_h ; passthrough_kb_h: ; sta knockback_h_high ; lda player_a_velocity_h_low, x ; sta knockback_h_low ; end_abs_kb_h: ; lda player_a_velocity_v, x ; bpl passthrough_kb_v ; lda player_a_velocity_v_low, x ; eor #%11111111 ; clc ; adc #$01 ; sta knockback_v_low ; lda player_a_velocity_v, x ; eor #%11111111 ; knockback_v = abs(velocity_v) adc #$00 ; sta knockback_v_high ; jmp end_abs_kb_v ; passthrough_kb_v: ; sta knockback_v_high ; lda player_a_velocity_v_low, x ; sta knockback_v_low ; end_abs_kb_v: ; lda knockback_h_low ; clc ; adc knockback_v_low ; sta knockback_h_low ; knockback_h = knockback_v + knockback_h lda knockback_h_high ; adc knockback_v_high ; sta knockback_h_high ; asl knockback_h_low ; lda knockback_h_high ; Oponent player hitstun = high byte of 2 * knockback_h rol ; sta player_a_hitstun, x ; ; Start screenshake of duration = hitstun / 2 lsr sta screen_shake_counter lda player_a_velocity_h, x sta screen_shake_nextval_x lda player_a_velocity_v, x sta screen_shake_nextval_y ; Start directional indicator particles jsr particle_directional_indicator_start rts .) ; Move the player according to it's velocity and collisions with obstacles ; register X - player number ; ; When returning ; - player's position is updated ; - tmpfield1 contains its old X ;TODO check, seems bugged ; - tmpfield2 contains its old Y ;TODO check, seems bugged ; - tmpfield13 contains its old screen_x ; - tmpfield14 contains its old screen_y ; ; Note - As a side effect, new position is stored in some tmpfields ; some code may use it as an easy optimization (to fetch it ; from zero page instead of "zero-page, x"). ; If this behaviour is changed, take care of dependent code. move_player: .( ;TODO harmonize component names "subpixel", "pixel" and "screen" old_x_collision = tmpfield1 ; Not movable, return value and parameter of check_collision old_y_collision = tmpfield2 ; Not movable, return value and parameter of check_collision final_x_low = tmpfield9 ; Not movable, parameter of check_collision final_x_high = tmpfield3 ; Not movable, parameter of check_collision final_y_low = tmpfield10 ; Not movable, parameter of check_collision final_y_high = tmpfield4 ; Not movable, parameter of check_collision obstacle_left = tmpfield5 ; Not movable, parameter of check_collision obstacle_top = tmpfield6 ; Not movable, parameter of check_collision obstacle_right = tmpfield7 ; Not movable, parameter of check_collision obstacle_bottom = tmpfield8 ; Not movable, parameter of check_collision final_x_screen = tmpfield11 ; Not movable, parameter of check_collision final_y_screen = tmpfield12 ; Not movable, parameter of check_collision old_x_screen = tmpfield13 ; Not movable, parameter of check_collision old_y_screen = tmpfield14 ; Not movable, parameter of check_collision action_vector = tmpfield15 old_x = extra_tmpfield1 old_y = extra_tmpfield2 elements_action_vector = tmpfield1 ; Not movable, parameter of stage_iterate_all_elements ; Save X to ensure it is not modified by this routine txa pha ; Save old position lda player_a_x, x sta old_x lda player_a_y, x sta old_y lda player_a_x_screen, x sta old_x_screen lda player_a_y_screen, x sta old_y_screen ; Apply velocity to position lda player_a_velocity_h_low, x clc adc player_a_x_low, x sta final_x_low lda player_a_velocity_h, x adc old_x sta final_x_high lda player_a_velocity_h, x SIGN_EXTEND() adc old_x_screen sta final_x_screen lda player_a_velocity_v_low, x clc adc player_a_y_low, x sta final_y_low lda player_a_velocity_v, x adc old_y sta final_y_high lda player_a_velocity_v, x SIGN_EXTEND() adc old_y_screen sta final_y_screen ; Check collisions with stage plaforms ldy #0 ; TODO seems useless, not used bu stage_iterate_all_elements check_platform_collision: lda #<handle_one_platform sta elements_action_vector lda #>handle_one_platform sta elements_action_vector+1 jsr stage_iterate_all_elements ; HACK perform the check twice to mitigate the following issue ; With two pateforms (A and B), if the final position is outside A ; and inside B. A does not impacts movement, but collision with B ; may replace the player inside A. ; ; To mitigate it more elegantly we may ; - recheck only platforms before the last colliding platform (and do it until no platform collide) ; - use a better formula for collision detection that does not let player cut the corners ; ; TODO implement a cleaner solution lda #<handle_one_platform sta elements_action_vector lda #>handle_one_platform sta elements_action_vector+1 jsr stage_iterate_all_elements end: ; Restore X pla tax ; Store final velocity in player's position lda final_x_screen sta player_a_x_screen, x lda final_y_screen sta player_a_y_screen, x lda final_x_high sta player_a_x, x lda final_y_high sta player_a_y, x lda final_x_low sta player_a_x_low, x lda final_y_low sta player_a_y_low, x rts handle_one_platform: .( ; Use element type as jump-table index ldx stage_data, y dex ; Jump to correct action lda platform_actions_low, x sta action_vector lda platform_actions_high, x sta action_vector+1 jmp (action_vector) ;rts ; useless, we jump to a routine .) solid_platform_collision: .( ; Prepare parameters for check_collision lda old_x sta old_x_collision lda old_y sta old_y_collision lda stage_data+STAGE_PLATFORM_OFFSET_LEFT, y sta obstacle_left lda stage_data+STAGE_PLATFORM_OFFSET_TOP, y sta obstacle_top lda stage_data+STAGE_PLATFORM_OFFSET_RIGHT, y sta obstacle_right lda stage_data+STAGE_PLATFORM_OFFSET_BOTTOM, y sta obstacle_bottom lda #0 pha pha pha pha ; Call check collision and clean stack parameters jsr check_collision pla pla pla pla ; Move computed position to its non-conflicting place lda old_x_collision sta old_x lda old_y_collision sta old_y ; Restore iteration action vector, erased by "old position" parameter lda #<handle_one_platform sta elements_action_vector lda #>handle_one_platform sta elements_action_vector+1 rts .) smooth_platform_collision: .( ; Prepare parameters for check_top_collision lda old_x sta old_x_collision lda old_y sta old_y_collision lda stage_data+STAGE_PLATFORM_OFFSET_LEFT, y sta obstacle_left lda stage_data+STAGE_PLATFORM_OFFSET_TOP, y sta obstacle_top lda stage_data+STAGE_PLATFORM_OFFSET_RIGHT, y sta obstacle_right lda #0 pha pha pha ; Call check collision and clean stack parameters jsr check_top_collision pla pla pla ; Move computed position to its non-conflicting place lda old_x_collision sta old_x lda old_y_collision sta old_y ; Restore iteration action vector, erased by "old position" parameter lda #<handle_one_platform sta elements_action_vector lda #>handle_one_platform sta elements_action_vector+1 rts .) oos_solid_platform_collision: .( ; Prepare parameters for check_collision lda old_x sta old_x_collision lda old_y sta old_y_collision lda stage_data+STAGE_OOS_PLATFORM_OFFSET_LEFT_LSB, y sta obstacle_left lda stage_data+STAGE_OOS_PLATFORM_OFFSET_TOP_LSB, y sta obstacle_top lda stage_data+STAGE_OOS_PLATFORM_OFFSET_RIGHT_LSB, y sta obstacle_right lda stage_data+STAGE_OOS_PLATFORM_OFFSET_BOTTOM_LSB, y sta obstacle_bottom lda stage_data+STAGE_OOS_PLATFORM_OFFSET_LEFT_MSB, y pha lda stage_data+STAGE_OOS_PLATFORM_OFFSET_TOP_MSB, y pha lda stage_data+STAGE_OOS_PLATFORM_OFFSET_RIGHT_MSB, y pha lda stage_data+STAGE_OOS_PLATFORM_OFFSET_BOTTOM_MSB, y pha ; Call check collision and clean stack parameters jsr check_collision pla pla pla pla ; Move computed position to its non-conflicting place lda old_x_collision sta old_x lda old_y_collision sta old_y ; Restore iteration action vector, erased by "old position" parameter lda #<handle_one_platform sta elements_action_vector lda #>handle_one_platform sta elements_action_vector+1 rts .) oos_smooth_platform_collision: .( ; Prepare parameters for check_top_collision lda old_x sta old_x_collision lda old_y sta old_y_collision lda stage_data+STAGE_OOS_PLATFORM_OFFSET_LEFT_LSB, y sta obstacle_left lda stage_data+STAGE_OOS_PLATFORM_OFFSET_TOP_LSB, y sta obstacle_top lda stage_data+STAGE_OOS_PLATFORM_OFFSET_RIGHT_LSB, y sta obstacle_right lda stage_data+STAGE_OOS_PLATFORM_OFFSET_LEFT_MSB, y pha lda stage_data+STAGE_OOS_PLATFORM_OFFSET_TOP_MSB, y pha lda stage_data+STAGE_OOS_PLATFORM_OFFSET_RIGHT_MSB, y pha ; Call check collision and clean stack parameters jsr check_top_collision pla pla pla ; Move computed position to its non-conflicting place lda old_x_collision sta old_x lda old_y_collision sta old_y ; Restore iteration action vector, erased by "old position" parameter lda #<handle_one_platform sta elements_action_vector lda #>handle_one_platform sta elements_action_vector+1 rts .) platform_actions_low: .byt <solid_platform_collision .byt <smooth_platform_collision .byt <oos_solid_platform_collision .byt <oos_smooth_platform_collision platform_actions_high: .byt >solid_platform_collision .byt >smooth_platform_collision .byt >oos_solid_platform_collision .byt >oos_smooth_platform_collision .) ; Check the player's position and modify the current state accordingly ; register X - player number ; tmpfield3 - player's current X pixel ; tmpfield4 - player's current Y pixel ; tmpfield11 - player's current X screen ; tmpfield12 - player's current Y screen ; ; The selected bank must be the correct character's bank. ; ; Overwrites tmpfield1 and tmpfield2 check_player_position: .( capped_x = tmpfield1 ; Not movable, used by particle_death_start capped_y = tmpfield2 ; Not movable, used by particle_death_start current_x_pixel = tmpfield3 ; Dispensable, shall be equal to "player_a_x, x" current_y_pixel = tmpfield4 ; Dispensable, shall be equal to "player_a_y, x" current_x_screen = tmpfield11 current_y_screen = tmpfield12 ; Check death SIGNED_CMP(current_x_pixel, current_x_screen, #<STAGE_BLAST_LEFT, #>STAGE_BLAST_LEFT) bmi set_death_state SIGNED_CMP(#<STAGE_BLAST_RIGHT, #>STAGE_BLAST_RIGHT, current_x_pixel, current_x_screen) bmi set_death_state SIGNED_CMP(current_y_pixel, current_y_screen, #<STAGE_BLAST_TOP, #>STAGE_BLAST_TOP) bmi set_death_state SIGNED_CMP(#<STAGE_BLAST_BOTTOM, #>STAGE_BLAST_BOTTOM, current_y_pixel, current_y_screen) bmi set_death_state ; Check if on ground jsr check_on_ground bne offground ; On ground ; Reset aerial jumps counter lda #$00 sta player_a_num_aerial_jumps, x ; Reset gravity modifications lda #DEFAULT_GRAVITY sta player_a_gravity, x ; Fire on-ground event ldy config_player_a_character, x lda characters_onground_routines_table_lsb, y sta tmpfield1 lda characters_onground_routines_table_msb, y sta tmpfield2 jsr player_state_action jmp end offground: ; Fire off-ground event ldy config_player_a_character, x lda characters_offground_routines_table_lsb, y sta tmpfield1 lda characters_offground_routines_table_msb, y sta tmpfield2 jsr player_state_action jmp end set_death_state: ; Play death sound jsr audio_play_death ; Reset aerial jumps counter lda #$00 sta player_a_num_aerial_jumps, x ; Reset hitstun counter sta player_a_hitstun, x ; Reset gravity lda #DEFAULT_GRAVITY sta player_a_gravity, x ; Death particles animation ; It takes on-screen unsigned coordinates, ; so we cap actual coordinates to a minimum ; of zero and a maxium of 255 .( lda current_x_screen bmi left_edge beq pass_cap_vertical_blast lda #$ff jmp cap_vertical_blast pass_cap_vertical_blast: lda current_x_pixel jmp cap_vertical_blast left_edge: lda #$0 cap_vertical_blast: sta capped_x end_cap_vertical_blast: .) .( lda current_y_screen bmi top_edge beq pass_cap_horizontal_blast lda #$ff jmp cap_horizontal_blast pass_cap_horizontal_blast: lda current_y_pixel jmp cap_horizontal_blast top_edge: lda #$0 cap_horizontal_blast: sta capped_y end_cap_horizontal_blast: .) jsr particle_death_start ; Decrement stocks counter and check for gameover dec player_a_stocks, x bmi gameover ; Set respawn state lda PLAYER_STATE_RESPAWN sta player_a_state, x ldy config_player_a_character, x lda characters_start_routines_table_lsb, y sta tmpfield1 lda characters_start_routines_table_msb, y sta tmpfield2 jsr player_state_action jmp end gameover: ; Set the winner for gameover screen lda slow_down_counter bne no_set_winner jsr switch_selected_player txa sta gameover_winner jsr switch_selected_player no_set_winner: ; Do not keep an invalid number of stocks lda #0 sta player_a_stocks, x ; Hide dead player lda PLAYER_STATE_INNEXISTANT sta player_a_state, x ldy config_player_a_character, x lda characters_start_routines_table_lsb, y sta tmpfield1 lda characters_start_routines_table_msb, y sta tmpfield2 jsr player_state_action ; Start slow down (restart it if the second player die to ; show that heroic death's animation) lda #SLOWDOWN_TIME sta slow_down_counter end: rts .) ; Show on screen player's damages ; register X must contain the player number write_player_damages: .( damages_ppu_position = tmpfield4 stocks_ppu_position = tmpfield7 player_stocks = tmpfield8 character_icon = tmpfield9 ; Save X txa pha ; Set on-screen text position depending on the player cpx #$00 beq prepare_player_a lda #$54 sta damages_ppu_position lda #$14 sta stocks_ppu_position jmp end_player_variables prepare_player_a: lda #$48 sta damages_ppu_position lda #$08 sta stocks_ppu_position end_player_variables: ; Put damages value parameter for number_to_tile_indexes lda player_a_damages, x sta tmpfield1 lda player_a_stocks, x sta player_stocks ; Get player's character icon while we have player index at hand lda character_icons, x sta character_icon ; Write the begining of the damage buffer jsr last_nt_buffer lda #$01 ; Continuation byte sta nametable_buffers, x ; inx lda #$23 ; PPU address MSB sta nametable_buffers, x ; inx lda damages_ppu_position ; PPU address LSB sta nametable_buffers, x ; inx lda #$03 ; Tiles count sta nametable_buffers, x ; inx ; Store the tiles address as destination parameter for number_to_tile_indexes #if (nametable_buffers & $ff) <> 0 #error Code bellow expects nametable_buffer to be page-aligned #endif txa sta tmpfield2 lda #>nametable_buffers sta tmpfield3 ; Set the next continuation byte to 0 inx inx inx lda #$00 sta nametable_buffers, x ; Populate tiles data for damage buffer jsr number_to_tile_indexes ; Construct stocks buffers ldy #$00 jsr last_nt_buffer stocks_buffer: lda #$01 ; Continuation byte sta nametable_buffers, x ; inx lda #$23 ; PPU address MSB sta nametable_buffers, x ; inx lda stocks_ppu_position ; PPU address LSB clc ; adc stocks_positions, y ; sta nametable_buffers, x ; inx lda #$01 ; Tiles count sta nametable_buffers, x ; inx cpy player_stocks ; bcs empty_stock ; lda character_icon ; jmp set_stock_tile ; Set stock tile depending of the empty_stock: ; stock's availability lda #TILE_SOLID_0 ; set_stock_tile: ; sta nametable_buffers, x ; inx iny ; cpy #$04 ; Loop for each stock to print bne stocks_buffer ; lda #$00 ; Next continuation byte to 0 sta nametable_buffers, x ; ; Restore X pla tax rts stocks_positions: .byt 0, 3, 32, 35 character_icons: .byt $d0, $d5 .) ; Update comestic effects on the player ; register X must contain the player number player_effects: .( .( jsr blinking jsr particle_directional_indicator_tick jsr particle_death_tick rts .) ; Change palette according to player's state ; register X must contain the player number blinking: .( palette_buffer = tmpfield1 ; tmpfield2 #define PLAYER_EFFECTS_PALLETTE_SIZE 8 lda #<players_palettes ; sta palette_buffer ; palette_buffer points on the first players' palette lda #>players_palettes ; sta palette_buffer+1 ; ; Add palette offset related to hitstun state lda player_a_hitstun, x and #%00000010 beq no_hitstun lda palette_buffer clc adc #PLAYER_EFFECTS_PALLETTE_SIZE sta palette_buffer lda palette_buffer+1 adc #0 sta palette_buffer+1 no_hitstun: ; Add palette offset related to player number cpx #1 bne player_one lda palette_buffer clc adc #PLAYER_EFFECTS_PALLETTE_SIZE*2 sta palette_buffer lda palette_buffer+1 adc #0 sta palette_buffer+1 player_one: ; Copy pointed palette to a nametable buffer txa ; pha ; Initialize working values jsr last_nt_buffer ; X = destination's offset (from nametable_buffers) ldy #0 ; Y = source's offset (from (palette_buffer) origin) copy_one_byte: lda (palette_buffer), y ; Copy a byte sta nametable_buffers, x ; inx ; iny ; Prepare next byte cpy #PLAYER_EFFECTS_PALLETTE_SIZE ; bne copy_one_byte ; pla ; Restore X tax ; rts .) .) update_sprites: .( ; Pretty names animation_vector = tmpfield11 ; Not movable - Used as parameter for stb_animation_draw subroutine camera_x = tmpfield13 ; Not movable - Used as parameter for stb_animation_draw subroutine camera_y = tmpfield15 ; Not movable - Used as parameter for stb_animation_draw subroutine ldx #0 ; X is the player number ldy #0 ; Y is the offset of player's animation state update_one_player_sprites: ; Select character's bank tya pha ldy config_player_a_character, x SWITCH_BANK(characters_bank_number COMMA y) pla tay ; Player lda player_a_x, x sta player_a_animation+ANIMATION_STATE_OFFSET_X_LSB, y lda player_a_y, x sta player_a_animation+ANIMATION_STATE_OFFSET_Y_LSB, y lda player_a_x_screen, x sta player_a_animation+ANIMATION_STATE_OFFSET_X_MSB, y lda player_a_y_screen, x sta player_a_animation+ANIMATION_STATE_OFFSET_Y_MSB, y lda #<player_a_animation sta animation_vector tya clc adc animation_vector sta animation_vector lda #>player_a_animation adc #0 sta animation_vector+1 lda #0 sta camera_x sta camera_x+1 sta camera_y sta camera_y+1 txa sta player_number pha tya pha jsr stb_animation_draw jsr animation_tick pla tay pla tax ; Player's out of screen indicator .( lda player_a_x_screen, x bmi oos_left bne oos_right lda player_a_y_screen, x bmi oss_top bne oos_bot jmp oos_indicator_drawn oos_left: lda player_a_y, x ; TODO cap to min 0 - max 240-8 sta player_a_out_of_screen_indicator+ANIMATION_STATE_OFFSET_Y_LSB, y lda DIRECTION_LEFT sta player_a_out_of_screen_indicator+ANIMATION_STATE_OFFSET_DIRECTION, y lda #0 sta player_a_out_of_screen_indicator+ANIMATION_STATE_OFFSET_X_LSB, y jmp oos_indicator_placed oos_right: lda player_a_y, x ; TODO cap to min 0 - max 240-8 sta player_a_out_of_screen_indicator+ANIMATION_STATE_OFFSET_Y_LSB, y lda DIRECTION_RIGHT sta player_a_out_of_screen_indicator+ANIMATION_STATE_OFFSET_DIRECTION, y lda #255-8 sta player_a_out_of_screen_indicator+ANIMATION_STATE_OFFSET_X_LSB, y jmp oos_indicator_placed oss_top: lda player_a_x, x ; TODO cap to min 0 - max 255-8 sta player_a_out_of_screen_indicator+ANIMATION_STATE_OFFSET_X_LSB, y lda DIRECTION_LEFT sta player_a_out_of_screen_indicator+ANIMATION_STATE_OFFSET_DIRECTION, y lda #0 sta player_a_out_of_screen_indicator+ANIMATION_STATE_OFFSET_Y_LSB, y jmp oos_indicator_placed oos_bot: lda player_a_x, x ; TODO cap to min 0 - max 255-8 sta player_a_out_of_screen_indicator+ANIMATION_STATE_OFFSET_X_LSB, y lda DIRECTION_RIGHT sta player_a_out_of_screen_indicator+ANIMATION_STATE_OFFSET_DIRECTION, y lda #240-8 sta player_a_out_of_screen_indicator+ANIMATION_STATE_OFFSET_Y_LSB, y ;jmp oos_indicator_placed oos_indicator_placed: lda #<player_a_out_of_screen_indicator sta animation_vector tya clc adc animation_vector sta animation_vector lda #>player_a_out_of_screen_indicator adc #0 sta animation_vector+1 lda #0 sta camera_x sta camera_x+1 sta camera_y sta camera_y+1 txa sta player_number pha tya pha jsr animation_draw jsr animation_tick pla tay pla tax oos_indicator_drawn: .) ; Loop for both players inx tya clc adc #ANIMATION_STATE_LENGTH tay cpx #2 beq all_player_sprites_updated jmp update_one_player_sprites all_player_sprites_updated: ; Enhancement sprites jsr particle_draw ;jsr show_hitboxes rts .) ; Debug subroutine to show hitboxes and hurtboxes ;show_hitboxes: ;.( ; pha ; txa ; pha ; tya ; pha ; ; ; Player A hurtbox ; ldx #$fc ; lda player_a_hurtbox_top ; sta oam_mirror, x ; inx ; lda #$0d ; sta oam_mirror, x ; inx ; lda #$03 ; sta oam_mirror, x ; inx ; lda player_a_hurtbox_left ; sta oam_mirror, x ; inx ; ldx #$f8 ; lda player_a_hurtbox_bottom ; sec ; sbc #$07 ; sta oam_mirror, x ; inx ; lda #$0d ; sta oam_mirror, x ; inx ; lda #$03 ; sta oam_mirror, x ; inx ; lda player_a_hurtbox_right ; sec ; sbc #$07 ; sta oam_mirror, x ; inx ; ; ; Player B hurtbox ; ldx #$f4 ; lda player_b_hurtbox_top ; sta oam_mirror, x ; inx ; lda #$0d ; sta oam_mirror, x ; inx ; lda #$03 ; sta oam_mirror, x ; inx ; lda player_b_hurtbox_left ; sta oam_mirror, x ; inx ; ldx #$f0 ; lda player_b_hurtbox_bottom ; sec ; sbc #$07 ; sta oam_mirror, x ; inx ; lda #$0d ; sta oam_mirror, x ; inx ; lda #$03 ; sta oam_mirror, x ; inx ; lda player_b_hurtbox_right ; sec ; sbc #$07 ; sta oam_mirror, x ; inx ; ; ; Player A hitbox ; lda player_a_hitbox_enabled ; bne show_player_a_hitbox ; lda #$fe ; ; sta $02e8 ; ; sta $02e9 ; ; sta $02ea ; ; sta $02eb ; Hide disabled hitbox ; sta $02ec ; ; sta $02ed ; ; sta $02ee ; ; sta $02ef ; ; jmp end_player_a_hitbox ; show_player_a_hitbox: ; ldx #$ec ; lda player_a_hitbox_top ; sta oam_mirror, x ; inx ; lda #$0e ; sta oam_mirror, x ; inx ; lda #$03 ; sta oam_mirror, x ; inx ; lda player_a_hitbox_left ; sta oam_mirror, x ; inx ; ldx #$e8 ; lda player_a_hitbox_bottom ; sec ; sbc #$07 ; sta oam_mirror, x ; inx ; lda #$0e ; sta oam_mirror, x ; inx ; lda #$03 ; sta oam_mirror, x ; inx ; lda player_a_hitbox_right ; sec ; sbc #$07 ; sta oam_mirror, x ; inx ; end_player_a_hitbox ; ; ; Player B hitbox ; lda player_b_hitbox_enabled ; bne show_player_b_hitbox ; lda #$fe ; ; sta $02e0 ; ; sta $02e1 ; ; sta $02e2 ; ; sta $02e3 ; Hide disabled hitbox ; sta $02e4 ; ; sta $02e5 ; ; sta $02e6 ; ; sta $02e7 ; ; jmp end_player_b_hitbox ; show_player_b_hitbox: ; ldx #$e4 ; lda player_b_hitbox_top ; sta oam_mirror, x ; inx ; lda #$0e ; sta oam_mirror, x ; inx ; lda #$03 ; sta oam_mirror, x ; inx ; lda player_b_hitbox_left ; sta oam_mirror, x ; inx ; ldx #$e0 ; lda player_b_hitbox_bottom ; sec ; sbc #$07 ; sta oam_mirror, x ; inx ; lda #$0e ; sta oam_mirror, x ; inx ; lda #$03 ; sta oam_mirror, x ; inx ; lda player_b_hitbox_right ; sec ; sbc #$07 ; sta oam_mirror, x ; inx ; end_player_b_hitbox ; ; ; Player A hitstun indicator ; lda player_a_hitstun ; bne show_player_a_hitstun ; lda #$fe ; ; sta $02dc ; ; sta $02dd ; Hide disabled hitstun ; sta $02de ; ; sta $02df ; ; jmp end_player_a_hitstun ; show_player_a_hitstun: ; ldx #$dc ; lda #$10 ; sta oam_mirror, x ; sta oam_mirror+3, x ; lda #$0e ; sta oam_mirror+1, x ; lda #$03 ; sta oam_mirror+2, x ; end_player_a_hitstun: ; ; ; Player B hitstun indicator ; lda player_b_hitstun ; bne show_player_b_hitstun ; lda #$fe ; ; sta $02d8 ; ; sta $02d9 ; Hide disabled hitstun ; sta $02da ; ; sta $02db ; ; jmp end_player_b_hitstun ; show_player_b_hitstun: ; ldx #$d8 ; lda #$10 ; sta oam_mirror, x ; lda #$20 ; sta oam_mirror+3, x ; lda #$0e ; sta oam_mirror+1, x ; lda #$03 ; sta oam_mirror+2, x ; end_player_b_hitstun: ; ; pla ; tay ; pla ; tax ; pla ; rts ;.)
programs/oeis/152/A152993.asm
neoneye/loda
22
162339
<reponame>neoneye/loda ; A152993: a(n) = n - d(n) - pi(n) + 1. ; 1,0,0,0,1,0,2,1,3,3,5,2,6,5,6,6,9,6,10,7,10,11,13,8,14,14,15,14,18,13,19,16,19,20,21,17,24,23,24,21,27,22,28,25,26,29,31,24,32,30,33,32,36,31,36,33,38,39,41,32,42,41,40,40,44,41,47,44,47,44,50,41,51,50,49,50,53,50,56,49,55,57,59,50,59,60,61,58,64,55,64,63,66,67,68,61,71,68,69,67 mov $1,$0 add $0,3 seq $1,82514 ; a(n)=A000720(n)+A000005(n). sub $0,$1 sub $0,1
samplecode/hello.asm
adamedx/jabba
0
1180
<gh_stars>0 .globl main .data hello: .asciiz "Hello, world" endl: .asciiz "\n" .text main: # # println("Hello, world"); # li $v0,4 # system call code for PRINT_STR la $a0,hello # get address of string to print syscall # print string li $v0,4 # system call code for PRINT_STR la $a0,endl # get address of NEWLINE string syscall # print string # # finally, RETURN # jr $ra # return
linear_algebra/tridiagonal.adb
jscparker/math_packages
30
29767
--------------------------------------------------------------------------- -- package body Tridiagonal, symmetric matrix tridiagonalization -- Copyright (C) 2018 <NAME> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --------------------------------------------------------------------------- with Ada.Numerics; with Ada.Numerics.Generic_Elementary_Functions; with Givens_Rotation; package body Tridiagonal is package math is new Ada.Numerics.Generic_Elementary_Functions (Real); use math; package Rotate is new Givens_Rotation (Real); use Rotate; Zero : constant Real := +0.0; One : constant Real := +1.0; Two : constant Real := +2.0; function Identity return A_Matrix is Q : A_Matrix; begin Q := (others => (others => Zero)); for c in C_Index loop Q(c, c) := One; end loop; return Q; end Identity; type Rotation is record sn : Real := Zero; cs : Real := One; cs_minus_1 : Real := Zero; sn_minus_1 : Real := Zero; hypotenuse : Real := Zero; P_bigger_than_L : Boolean := True; Skip_Rotation : Boolean := True; Pivot_Col : C_Index := C_Index'First; Hi_Row : R_Index := R_Index'First; Lo_Row : R_Index := R_Index'First; end record; type Row is array(C_Index) of Real; -- Sum = Small + Large. Lost_Bits = Small - (Sum - Large) procedure Sum_with_Dropped_Bits (A, B : in Real; Sum : out Real; Dropped_Bits : out Real) is begin Sum := A + B; if Abs A > Abs B then Dropped_Bits := B - (Sum - A); else Dropped_Bits := A - (Sum - B); end if; end Sum_with_Dropped_Bits; --------------------------------------- -- Arg_1_is_Negligible_Respect_Arg_2 -- --------------------------------------- -- If Abs_x is negligible in comparison to Abs_y then return True. function Arg_1_is_Negligible_Respect_Arg_2 (x, y : Real) return Boolean is Abs_x : constant Real := Abs x; Abs_y : constant Real := Abs y; Min_Allowed_Real : constant Real := Two**(Real'Machine_Emin + 16); Added_Range : constant := 3; -- 2, 3 seem bst; 3 gives 2**(-53) Eps_Factor : constant Real := Real'Epsilon * Two**(-Added_Range); begin if Abs_x < Min_Allowed_Real and then Abs_x <= Abs_y then -- eg, Abs_x = 0 return True; elsif Abs_x < Abs_y * Eps_Factor then return True; else return False; end if; end Arg_1_is_Negligible_Respect_Arg_2; --------------------------------- -- Lower_Diagonal_QR_Iteration -- --------------------------------- -- Operates only on square real blocks. procedure Lower_Diagonal_QR_Iteration (A : in out A_Matrix; Q : in out A_Matrix; Shift : in Real; Final_Shift_Col : in C_Index := C_Index'Last; Starting_Col : in C_Index := C_Index'First; Final_Col : in C_Index := C_Index'Last; Q_Matrix_Desired : in Boolean := True) is Rotations : array (C_Index) of Rotation; ----------------------------------------- -- Multiply_A_on_RHS_with_Transpose_of -- ----------------------------------------- -- multiply A on the right by R_transpose: -- A = A * R_transpose procedure Multiply_A_on_RHS_with_Transpose_of (R : in Rotation) is sn : Real renames R.sn; cs : Real renames R.cs; cs_minus_1 : Real renames R.cs_minus_1; sn_minus_1 : Real renames R.sn_minus_1; P_bigger_than_L : Boolean renames R.P_bigger_than_L; Skip_Rotation : Boolean renames R.Skip_Rotation; Pivot_Row : R_Index renames R.Hi_Row; Low_Row : R_Index renames R.Lo_Row; A_pvt, A_low : Real; begin if Skip_Rotation then return; end if; -- Rotate corresponding columns. Multiply on RHS by transpose -- of above givens matrix (second step of similarity transformation). -- (Low_Row is Lo visually, but its index is higher than Pivot's.) if P_bigger_than_L then -- |s| < |c| for r in Index'Base'Max(Starting_Col, Pivot_Row-1) .. Pivot_Row+1 loop A_pvt := A(r, Pivot_Row); A_low := A(r, Low_Row); A(r, Pivot_Row) := A_pvt + ( cs_minus_1*A_pvt + sn*A_low); A(r, Low_Row) := A_low + (-sn*A_pvt + cs_minus_1*A_low); end loop; else -- Abs_P <= Abs_L, so abs t := abs (P / L) <= 1 for r in Index'Base'Max(Starting_Col, Pivot_Row-1) .. Pivot_Row+1 loop A_pvt := A(r, Pivot_Row); A_low := A(r, Low_Row); A(r, Pivot_Row) := A_low + ( cs*A_pvt + sn_minus_1*A_low); A(r, Low_Row) :=-A_pvt + (-sn_minus_1*A_pvt + cs*A_low); end loop; end if; end Multiply_A_on_RHS_with_Transpose_of; --------------------------------------- -- Rotate_to_Kill_Element_Lo_of_pCol -- --------------------------------------- -- Try to zero out A(Lo_Row, Pivot_Col) with a similarity transformation. -- In other words, multiply A on left by R: -- -- A = R * A -- -- and multiply Q on right by R_transpose: -- -- Q = Q * R_transpose -- procedure Rotate_to_Kill_Element_Lo_of_pCol (R : in Rotation) is sn : constant Real := R.sn; cs : constant Real := R.cs; cs_minus_1 : constant Real := R.cs_minus_1; sn_minus_1 : constant Real := R.sn_minus_1; P_bigger_than_L : constant Boolean := R.P_bigger_than_L; Skip_Rotation : constant Boolean := R.Skip_Rotation; Pivot_Col : constant C_Index := R.Pivot_Col; Pivot_Row : constant R_Index := R.Hi_Row; Low_Row : constant R_Index := R.Lo_Row; A_pvt, A_low, Q_pvt, Q_low : Real; begin if Skip_Rotation then return; end if; if P_bigger_than_L then -- |s| < |c| --for c in Starting_Col .. Final_Col loop --for c in Pivot_Col .. Final_Col loop -- works only for upper hessenbergs for c in Pivot_Col .. Pivot_Col+2 loop -- works only for Tridiagonals A_pvt := A(Pivot_Row, c); A_low := A(Low_Row, c); A(Pivot_Row, c) := A_pvt + ( cs_minus_1*A_pvt + sn*A_low); A(Low_Row, c) := A_low + (-sn*A_pvt + cs_minus_1*A_low); end loop; else -- Abs_P <= Abs_L, so abs t := abs (P / L) <= 1 --for c in Starting_Col .. Final_Col loop --for c in Pivot_Col .. Final_Col loop -- works only for upper hessenbergs for c in Pivot_Col .. Pivot_Col+2 loop -- works only for Tridiagonals A_pvt := A(Pivot_Row, c); A_low := A(Low_Row, c); A(Pivot_Row, c) := A_low + ( cs*A_pvt + sn_minus_1*A_low); A(Low_Row, c) :=-A_pvt + (-sn_minus_1*A_pvt + cs*A_low); end loop; end if; -- Rotate corresponding columns of Q. (Multiply on RHS by transpose -- of above givens matrix to accumulate full Q.) if Q_Matrix_Desired then if P_bigger_than_L then -- |s| < |c| for r in Starting_Col .. Final_Col loop Q_pvt := Q(r, Pivot_Row); Q_low := Q(r, Low_Row); Q(r, Pivot_Row) := Q_pvt + (cs_minus_1*Q_pvt + sn*Q_low); Q(r, Low_Row) := Q_low + (-sn*Q_pvt + cs_minus_1*Q_low); end loop; else -- Abs_P <= Abs_L, so abs t := abs (P / L) <= 1 for r in Starting_Col .. Final_Col loop Q_pvt := Q(r, Pivot_Row); Q_low := Q(r, Low_Row); Q(r, Pivot_Row) := Q_low + (cs*Q_pvt + sn_minus_1*Q_low); Q(r, Low_Row) :=-Q_pvt + (-sn_minus_1*Q_pvt + cs*Q_low); end loop; end if; -- P_bigger_than_L end if; -- Q_Matrix_Desired end Rotate_to_Kill_Element_Lo_of_pCol; type Diag_Storage is array(Index) of Real; Matrix_Size : constant Integer := Integer (Final_Col)-Integer (Starting_Col)+1; tst1, tst2 : Real; Lost_Bits : Diag_Storage; hypot, sn, cs, cs_minus_1, sn_minus_1 : Real; P_bigger_than_L : Boolean; Skip_Rotation : Boolean; Hi_Row, Lo_Row : R_Index; P, L : Real; begin if Matrix_Size < 3 then return; end if; -- can't QR it. Lost_Bits := (others => 0.0); -- Subtract 'Shift' from each diagonal element of A. -- Sum = A(c, c) + (-Shift) -- Sum = Small + Large. Lost_Bits = Small - (Sum - Large) declare Sum, Dropped_Bits : Real; begin for c in Starting_Col .. Final_Shift_Col loop Sum_with_Dropped_Bits (A(c,c), -Shift, Sum, Dropped_Bits); A(c, c) := Sum; Lost_Bits(c) := Dropped_Bits; end loop; end; for Pivot_Col in Starting_Col .. Final_Shift_Col-1 loop Hi_Row := Pivot_Col; Lo_Row := Hi_Row + 1; P := A(Hi_Row, Pivot_Col); L := A(Lo_Row, Pivot_Col); tst1 := Abs A(Lo_Row, Pivot_Col); tst2 := Abs A(Pivot_Col, Pivot_Col) + Abs A(Lo_Row, Lo_Row); if Arg_1_is_Negligible_Respect_Arg_2 (tst1, tst2) then Rotations(Pivot_Col).Skip_Rotation := True; -- Rotations is initialized. A(Lo_Row, Pivot_Col) := Zero; A(Pivot_Col, Lo_Row) := Zero; else Get_Rotation_That_Zeros_Out_Low (P, L, sn, cs, cs_minus_1, sn_minus_1, hypot, P_bigger_than_L, Skip_Rotation); Rotations(Pivot_Col) := (sn => sn, cs => cs, cs_minus_1 => cs_minus_1, sn_minus_1 => sn_minus_1, hypotenuse => hypot, P_bigger_than_L => P_bigger_than_L, Skip_Rotation => Skip_Rotation, Pivot_Col => Pivot_Col, Hi_Row => Hi_Row, Lo_Row => Lo_Row); -- Zero out A(Lo_Row, Pivot_Col). Update A and Q as global memory. -- Apply rotation by multiplying Givens Matrix on LHS of A. -- Then multiply transpose of Givens Matrix on RHS of Q. Rotate_to_Kill_Element_Lo_of_pCol (Rotations(Pivot_Col)); A(Hi_Row, Pivot_Col) := Real'Copy_Sign (hypot, A(Hi_Row, Pivot_Col)); A(Lo_Row, Pivot_Col) := Zero; end if; end loop; -- over Pivot_Col -- These can be done inside the above loop (after a delay of 1 step): for Pivot_Col in Starting_Col .. Final_Shift_Col-1 loop Multiply_A_on_RHS_with_Transpose_of (Rotations(Pivot_Col)); end loop; -- Add Shift back to A: for c in Starting_Col .. Final_Shift_Col loop A(c, c) := (A(c, c) + Shift) + Lost_Bits(c); -- best default end loop; for c in Starting_Col+1 .. Final_Col loop --A(c-1, c) := Half * (A(c, c-1) + A(c-1, c)); A(c, c-1) := A(c-1, c); end loop; for c in Starting_Col+2 .. Final_Col loop A(c-2, c) := Zero; end loop; end Lower_Diagonal_QR_Iteration; -------------------- -- Tridiagonalize -- -------------------- -- Operates only on square real blocks. -- -- Want to use similarity transforms to make A into T, -- Tridiagonal. Let Qj be a 2x2 givens rotation matrix, -- and let Qj' be its transpose (and inverse). Then form -- -- A = -- -- (Q1*...*Qn) * (Qn'*...*Q1') * A * (Q1*...*Qn) * (Qn'*...*Q1') = -- -- Q * T * Q', -- -- where T = Q' * A * Q. -- -- To complete the decomposition of A to T, insert Qj * Qj' into -- Q * T * Q' to get Q * (Qj * Qj') * T * (Qj * Qj') * Q'. -- -- So to develop Q, we rotate columns of Q by multiplying on RHS with -- Qj. H gets multiplied on the LHS by Qj' (rotating rows to zero out -- the lower triangular region) and on the RHS by Qj. -- -- Wind up with the eigenvalue equation A = Q * T * Q' which becomes -- -- A * Q = Q * T. -- -- If T were diagonal, then the column vectors of Q would be the eigenvectors -- and the diagonal elements of T would be the eigenvalues. procedure Tridiagonalize (A : in out A_Matrix; Q : out A_Matrix; Starting_Col : in C_Index := C_Index'First; Final_Col : in C_Index := C_Index'Last; Initial_Q : in A_Matrix := Identity; Q_Matrix_Desired : in Boolean := True) is ----------------------------------------- -- Rotate_to_Kill_Element_Hi_of_pRow -- ----------------------------------------- -- Zero out A(Lo_Row, pCol) with a similarity transformation. In -- other words, multiply A on left by Q_tr and on right by Q: -- A_t = Q_transpose * A * Q -- Use enhanced precision rotations here. procedure Rotate_to_Kill_Element_Hi_of_pRow (pRow : in R_Index; Hi_Col : in C_Index; Lo_Col : in C_Index) is sn, cs : Real; cs_minus_1 : Real; sn_minus_1 : Real; P_bigger_than_L : Boolean; Skip_Rotation : Boolean; Pivot_Row : R_Index renames pRow; Pivot_Col : C_Index renames Lo_Col; A_pvt, A_low, Q_pvt, Q_low : Real; P : constant Real := A(Pivot_Row, Pivot_Col); -- P is for Pivot L : constant Real := A(Pivot_Row, Hi_Col); hypot : Real; begin --if not A(Pivot_Row, Pivot_Col)'valid or else not A(Pivot_Row, Hi_Col)'valid then -- raise Constraint_Error with "Invalid input in Rotate_to_Kill.."; --end if; Get_Rotation_That_Zeros_Out_Low (P, L, sn, cs, cs_minus_1, sn_minus_1, hypot, P_bigger_than_L, Skip_Rotation); if Skip_Rotation then return; end if; -- Rotate rows. Multiply on LHS by givens rotation G. -- Want Q' A Q = H = upper hessenberg. -- Each step is: G A G' = partial H -- So the desired Q will be the product of the G' matrices -- which we obtain by repeatedly multiplying I on the RHS by G'. if P_bigger_than_L then -- |s| < |c| for r in Pivot_Row .. Final_Col loop A_pvt := A(r, Pivot_Col); A_low := A(r, Hi_Col); A(r, Pivot_Col) := A_pvt + ( cs_minus_1*A_pvt + sn*A_low); A(r, Hi_Col) := A_low + (-sn*A_pvt + cs_minus_1*A_low); end loop; else -- Abs_P <= Abs_L, so abs t := abs (P / L) <= 1 for r in Pivot_Row .. Final_Col loop A_pvt := A(r, Pivot_Col); A_low := A(r, Hi_Col); A(r, Pivot_Col) := A_low + ( cs*A_pvt + sn_minus_1*A_low); A(r, Hi_Col) :=-A_pvt + (-sn_minus_1*A_pvt + cs*A_low); end loop; end if; -- Rotate corresponding columns. Multiply on RHS by transpose -- of above givens matrix (second step of similarity transformation). -- (Hi_Col is Lo visually, but its index is higher than Pivot's.) -- Do the above 2 rotations in a single step (tho' it hardly matters): -- -- A(Pivot_Col, Pivot_Col) := cs**2*x + cs*sn*2.0*z + sn**2*y; -- A(Hi_Col, Hi_Col) := sn**2*x - cs*sn*2.0*z + cs**2*y; -- A(Pivot_Col, Hi_Col) := cn**2*z - sn**2*z + sn*cs*(y - x); -- -- x_new := A(Pivot_Col, Pivot_Col) := x + (cs*sn*2.0*z + sn**2*(y - x)); -- y_new := A(Hi_Col, Hi_Col) := y - (cs*sn*2.0*z + sn**2*(y - x)); -- z_new := A(Pivot_Col, Hi_Col) := z - sn**2*z2 + sn*cs*(y - x); -- -- x_new := A(Pivot_Col, Pivot_Col) := x + sn*(cs*2.0*z + sn*(y - x)); -- y_new := A(Hi_Col, Hi_Col) := y - sn*(cs*2.0*z + sn*(y - x)); -- z_new := A(Pivot_Col, Hi_Col) := z - sn*(sn*2.0*z - cs*(y - x)); if P_bigger_than_L then -- |s| < |c| declare r : constant Index := Pivot_Col; begin A_pvt := A(Pivot_Col, r); A_low := A(Hi_Col, r); A(Pivot_Col, r) := A_pvt + ( cs_minus_1*A_pvt + sn*A_low); A(Hi_Col, r) := A_low + (-sn*A_pvt + cs_minus_1*A_low); end; declare r : constant Index := Hi_Col; begin A_pvt := A(Pivot_Col, r); A_low := A(Hi_Col, r); --A(Pivot_Col, r) := A_pvt + ( cs_minus_1*A_pvt + sn*A_low); A(Hi_Col, r) := A_low + (-sn*A_pvt + cs_minus_1*A_low); end; else -- Abs_P <= Abs_L, so abs t := abs (P / L) <= 1 declare r : constant Index := Pivot_Col; begin A_pvt := A(Pivot_Col, r); A_low := A(Hi_Col, r); A(Pivot_Col, r) := A_low + ( cs*A_pvt + sn_minus_1*A_low); A(Hi_Col, r) :=-A_pvt + (-sn_minus_1*A_pvt + cs*A_low); end; declare r : constant Index := Hi_Col; begin A_pvt := A(Pivot_Col, r); A_low := A(Hi_Col, r); --A(Pivot_Col, r) := A_low + ( cs*A_pvt + sn_minus_1*A_low); A(Hi_Col, r) :=-A_pvt + (-sn_minus_1*A_pvt + cs*A_low); end; end if; -- Have modified 2 cols of entire (symmetric) matrix: Pivot_Col, Hi_Col. -- Now copy the cols to the 2 rows you get by transposing the 2 cols. for c in Starting_Col .. Final_Col loop A(Pivot_Col, c) := A(c, Pivot_Col); end loop; for c in Starting_Col .. Final_Col loop A(Hi_Col, c) := A(c, Hi_Col); end loop; -- Rotate corresponding columns of Q. (Multiply on RHS by transpose -- of above givens matrix to accumulate full Q.) if Q_Matrix_Desired then if P_bigger_than_L then -- |s| < |c| for r in Starting_Col .. Final_Col loop Q_pvt := Q(r, Pivot_Col); Q_low := Q(r, Hi_Col); Q(r, Pivot_Col) := Q_pvt + ( cs_minus_1*Q_pvt + sn*Q_low); Q(r, Hi_Col) := Q_low + (-sn*Q_pvt + cs_minus_1*Q_low); end loop; else -- Abs_P <= Abs_L, so abs t := abs (P / L) <= 1 for r in Starting_Col .. Final_Col loop Q_pvt := Q(r, Pivot_Col); Q_low := Q(r, Hi_Col); Q(r, Pivot_Col) := Q_low + ( cs*Q_pvt + sn_minus_1*Q_low); Q(r, Hi_Col) :=-Q_pvt + (-sn_minus_1*Q_pvt + cs*Q_low); end loop; end if; -- P_bigger_than_L end if; -- Q_Matrix_Desired end Rotate_to_Kill_Element_Hi_of_pRow; procedure Get_Sqrt_of_Sum_of_Sqrs_of_Row (Row_Id : in R_Index; Starting_Col : in C_Index; Ending_Col : in C_Index; Row_Sums : out Row) is Emin : constant Integer := Real'Machine_Emin; Emax : constant Integer := Real'Machine_Emax; Max : Real := Zero; Un_Scale, Scale : Real := Zero; Abs_A : Real := Zero; M_exp : Integer := 0; begin Max := Abs A(Row_Id, Starting_Col); if Ending_Col > Starting_Col then for c in Starting_Col+1 .. Ending_Col loop Abs_A := Abs A(Row_Id, c); if Abs_A > Max then Max := Abs_A; end if; end loop; end if; if Max < Two**Emin then Row_Sums := (others => Zero); return; end if; if Max < Two**(Emin / 2) or else Max > Two**(Emax / 4) then M_Exp := Real'Exponent (Max); Scale := Two ** (-M_Exp); Un_Scale := Two ** ( M_Exp); else Scale := One; Un_Scale := One; end if; Row_Sums(Starting_Col) := Abs A(Row_Id, Starting_Col); if Ending_Col > Starting_Col then Compensated_Sum: declare Term, Sum_tmp, Err, Sum : Real := Zero; begin for c in Starting_Col .. Ending_Col loop Term := (Scale * A(Row_Id, c)) ** 2; Term := Term - Err; -- correction to Term, next term in sum. Sum_tmp := Sum + Term; -- now increment Sum Err := (Sum_tmp - Sum) - Term; Sum := Sum_tmp; Row_Sums(c) := Un_Scale * Sqrt (Sum); end loop; end Compensated_Sum; end if; end Get_Sqrt_of_Sum_of_Sqrs_of_Row; Row_Sums : Row := (others => Zero); type Int64 is range -2**63+1 .. 2**63-1; Matrix_Size : constant Int64 := Int64 (Final_Col)-Int64 (Starting_Col)+1; Pivot_Col : C_Index; begin if Matrix_Size < 4 then return; end if; -- already tridiagonalized. Q := Initial_Q; for Pivot_Row in Starting_Col .. Final_Col-2 loop Pivot_Col := Pivot_Row + 1; Get_Sqrt_of_Sum_of_Sqrs_of_Row (Row_Id => Pivot_Row, Starting_Col => Pivot_Col, Ending_Col => Final_Col, Row_Sums => Row_Sums); for Hi_Col in Pivot_Col+1 .. Final_Col loop Rotate_to_Kill_Element_Hi_of_pRow -- zero out A(Pivot_Row, Hi_Col) (pRow => Pivot_Row, Hi_Col => Hi_Col, -- Hi = high to eye; its id is lower than Lo_Row. Lo_Col => Pivot_Col); A(Pivot_Row, Hi_Col) := Zero; A(Hi_Col, Pivot_Row) := Zero; A(Pivot_Row, Pivot_Col) := Real'Copy_Sign (Row_Sums(Hi_Col), A(Pivot_Row, Pivot_Col)); A(Pivot_Col, Pivot_Row) := A(Pivot_Row, Pivot_Col); end loop; -- over Hi_Col end loop; -- over Pivot_Col; max val of Pivot_Col is Final_Col-1 end Tridiagonalize; end Tridiagonal;
programs/oeis/196/A196792.asm
neoneye/loda
22
11512
; A196792: a(n)=T(10,n), array T given by A047848. ; 1,2,15,184,2381,30942,402235,5229044,67977561,883708282,11488207655,149346699504,1941507093541,25239592216022,328114698808275,4265491084507564,55451384098598321,720867993281778162,9371283912663116095,121826690864620509224,1583746981240066619901,20588710756120866058702,267653239829571258763115,3479492117784426363920484,45233397531197542730966281,588034167905568055502561642,7644444182772384721533301335,99377774376041001379932917344,1291911066888533017939127925461,16794843869550929233208663030982,218332970304162080031712619402755,2838328613954107040412264052235804,36898271981403391525359432679065441,479677535758244089829672624827850722 mov $1,13 pow $1,$0 div $1,12 add $1,1 mov $0,$1
regtests/keystore-properties-tests.adb
stcarrez/ada-keystore
25
24525
<reponame>stcarrez/ada-keystore ----------------------------------------------------------------------- -- keystore-properties-tests -- Tests for Keystore.Properties -- Copyright (C) 2020 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Util.Beans.Objects; with Util.Test_Caller; package body Keystore.Properties.Tests is package Caller is new Util.Test_Caller (Test, "Keystore.Properties"); procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is begin Caller.Add_Test (Suite, "Test Keystore.Properties.Files", Test_Properties'Access); Caller.Add_Test (Suite, "Test Keystore.Properties.Iterate", Test_Iterate'Access); end Add_Tests; procedure Test_Properties (T : in out Test; Props : in out Util.Properties.Manager'Class) is begin Props.Set ("p1", "a"); Props.Set ("p2", "b"); Props.Set ("p3", "c"); T.Assert (Props.Exists ("p1"), "Property 'p1' not found"); T.Assert (Props.Exists ("p2"), "Property 'p2' not found"); T.Assert (Props.Exists ("p3"), "Property 'p3' not found"); T.Assert (not Props.Exists ("p4"), "Exists returned true for 'p4'"); Util.Tests.Assert_Equals (T, "a", String '(Props.Get ("p1")), "Invalid property 'p1'"); Util.Tests.Assert_Equals (T, "b", String '(Props.Get ("p2")), "Invalid property 'p2'"); Util.Tests.Assert_Equals (T, "c", String '(Props.Get ("p3")), "Invalid property 'p3'"); Props.Remove ("p2"); T.Assert (not Props.Exists ("p2"), "Property 'p2' not removed"); declare V : constant Util.Beans.Objects.Object := Props.Get_Value ("p5"); begin T.Assert (Util.Beans.Objects.Is_Null (V), "Value should be null"); end; end Test_Properties; -- ------------------------------ -- Test the accessing the keystore through property manager. -- ------------------------------ procedure Test_Properties (T : in out Test) is Path : constant String := Util.Tests.Get_Test_Path ("test-prop.akt"); Password : constant Keystore.Secret_Key := Keystore.Create ("mypassword"); Wallet : aliased Keystore.Files.Wallet_File; Props : Keystore.Properties.Manager; Config : Keystore.Wallet_Config := Unsecure_Config; begin Config.Overwrite := True; Props.Initialize (Wallet'Unchecked_Access); Wallet.Create (Path => Path, Password => Password, Config => Config); T.Test_Properties (Props); Wallet.Close; Wallet.Open (Path => Path, Password => Password); declare P3 : Keystore.Properties.Manager; begin P3 := Props; T.Test_Properties (P3); end; declare P2 : Util.Properties.Manager; begin Props.Copy (P2); T.Test_Properties (P2); end; end Test_Properties; -- ------------------------------ -- Test iterating over the property manager. -- ------------------------------ procedure Test_Iterate (T : in out Test) is use Util.Properties; procedure Process (Name : in String; Item : in Util.Properties.Value); Path : constant String := Util.Tests.Get_Test_Path ("test-prop.akt"); Password : constant Keystore.Secret_Key := Keystore.Create ("mypassword"); Wallet : aliased Keystore.Files.Wallet_File; Props : Keystore.Properties.Manager; Config : Keystore.Wallet_Config := Unsecure_Config; Count : Natural := 0; procedure Process (Name : in String; Item : in Util.Properties.Value) is begin Count := Count + 1; if Name = "p1" then Util.Tests.Assert_Equals (T, "a", To_String (Item), "Invalid property " & Name); elsif Name = "p2" then Util.Tests.Assert_Equals (T, "b", To_String (Item), "Invalid property " & Name); elsif Name = "p3" then Util.Tests.Assert_Equals (T, "c", To_String (Item), "Invalid property " & Name); else T.Fail ("Invalid property " & Name); end if; end Process; begin Config.Overwrite := True; Props.Initialize (Wallet'Unchecked_Access); Wallet.Create (Path => Path, Password => Password, Config => Config); T.Test_Properties (Props); Props.Iterate (Process'Access); Wallet.Close; end Test_Iterate; end Keystore.Properties.Tests;
Lab_Task/lab 3.asm
WardunIslam/CSE331L_Section_7_Summer_2020_NSU
0
96684
<reponame>WardunIslam/CSE331L_Section_7_Summer_2020_NSU DATA SEGMENT MSG1 DB "Hello World$" MSG2 DB "Assembly LAnguage CSE331$" START: MOV AX, DATA MOV DS, AX LEA DX, MSG1 MOV AH, 9 INT 21H LEA DX, MSG2 MOV AH, 9 INT 21H MOV AH, 4cH INT 21H END START
output/assembleurtrue.asm
jodorganistaca/Projet_SI
0
240651
AFC 1 5 COP 20 1 AFC 2 5 INF 3 20 2 JMF 3 11 AFC 4 2 AFC 5 2 MUL 6 4 5 COP 20 6 JMP 37 AFC 7 5 SUP 8 20 7 JMF 8 29 AFC 9 2 EQU 10 20 9 JMF 10 20 AFC 11 3 COP 20 11 JMP 26 AFC 12 2 SUP 13 20 12 JMF 13 26 AFC 14 4 COP 20 14 JMP 26 AFC 15 0 COP 20 15 JMP 37 AFC 16 5 EQU 17 20 16 JMF 17 35 AFC 18 2 COP 20 18 JMP 37 AFC 19 4 COP 20 19 PRI 20
programs/oeis/083/A083065.asm
neoneye/loda
22
180
<filename>programs/oeis/083/A083065.asm ; A083065: 4th row of number array A083064. ; 1,4,19,94,469,2344,11719,58594,292969,1464844,7324219,36621094,183105469,915527344,4577636719,22888183594,114440917969,572204589844,2861022949219,14305114746094,71525573730469,357627868652344,1788139343261719,8940696716308594,44703483581542969,223517417907714844,1117587089538574219,5587935447692871094,27939677238464355469,139698386192321777344,698491930961608886719,3492459654808044433594,17462298274040222167969,87311491370201110839844,436557456851005554199219,2182787284255027770996094,10913936421275138854980469,54569682106375694274902344,272848410531878471374511719,1364242052659392356872558594,6821210263296961784362792969,34106051316484808921813964844,170530256582424044609069824219,852651282912120223045349121094,4263256414560601115226745605469,21316282072803005576133728027344,106581410364015027880668640136719,532907051820075139403343200683594,2664535259100375697016716003417969,13322676295501878485083580017089844,66613381477509392425417900085449219,333066907387546962127089500427246094 mov $1,5 pow $1,$0 div $1,4 mul $1,3 add $1,1 mov $0,$1
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/mak/kart-calc.asm
prismotizm/gigaleak
0
22330
Name: kart-calc.asm Type: file Size: 23387 Last-Modified: '1992-08-31T05:35:23Z' SHA-1: 43C93F029D67B583F45F2F22137AE6BE9E3EE868 Description: null
programs/oeis/324/A324964.asm
neoneye/loda
22
172375
; A324964: a(n) = A000139(n) mod 2; Characteristic function of odd fibbinary numbers (A022341). ; 0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0 mov $1,1 lpb $0 mul $1,2 div $0,$1 mov $2,$0 mul $0,2 add $2,10 gcd $2,4 mov $1,$2 lpe sub $1,1 mov $0,$1
src/main/resources/project-templates/microbit_example/src/display.ads
WinterAlexander/Ada-IntelliJ
17
10119
------------------------------------------------------------------------------ -- Copyright (C) 2018, AdaCore -- -- -- -- This 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. This software is distributed in the hope that it will be useful, -- -- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- -- -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public -- -- License for more details. You should have received a copy of the GNU -- -- General Public License distributed with this software; see file -- -- COPYING3. If not, go to http://www.gnu.org/licenses for a complete copy -- -- of the license. -- ------------------------------------------------------------------------------ package Display is procedure Scroll_Text (Str : String); -- Scroll a string from right to left across the LED matrix private subtype LED_Row_Coord is Natural range 0 .. 4; -- Row coordinate in LED matrix subtype LED_Column_Coord is Natural range 0 .. 4; -- Column coordinate in LED matrix subtype GPIO_Pin_Index is Natural range 0 .. 31; -- Pin index of the nRF51 GPIO points ---------------------- -- Pixel to IO Pins -- ---------------------- -- There is no one to one correspondence between the GPIO matrix and LED -- matrix. The GPIO matrix is 3x9 where the LED matrix is 5x5. The types -- and data below define the mapping from LED matrix coordinates to the -- GPIO points. type Row_Range is new Natural range 1 .. 3; -- Row coordinate in the GPIO matrix type Column_Range is new Natural range 1 .. 9; -- Column coordinate in the GPIO matrix type LED_Point is record Row_Id : Row_Range; Column_Id : Column_Range; end record; -- Address of an LED in the GPIO matrix Row_Points : array (Row_Range) of GPIO_Pin_Index := (13, 14, 15); -- Pins for the GPIO matrix rows Column_Points : array (Column_Range) of GPIO_Pin_Index := (04, 05, 06, 07, 08, 09, 10, 11, 12); -- Pins for the GPIO matrix columns Map : constant array (LED_Column_Coord, LED_Row_Coord) of LED_Point := (((1, 1), (3, 4), (2, 2), (1, 8), (3, 3)), ((2, 4), (3, 5), (1, 9), (1, 7), (2, 7)), ((1, 2), (3, 6), (2, 3), (1, 6), (3, 1)), ((2, 5), (3, 7), (3, 9), (1, 5), (2, 6)), ((1, 3), (3, 8), (2, 1), (1, 4), (3, 2)) ); -- Address of each LED in the GPIO matrix end Display;
ee/hot/go.asm
olifink/smsqe
0
172783
; Procedure to start HOTKEY V2.00  1988 <NAME> QJUMP section hotkey xdef hot_go xref hot_thus xref hot_thfr xref hk_cjob ;+++ ; Start the hotkey job ;--- hot_go jsr hot_thus ; use thing bne.s hg_rts jsr hk_cjob ; create job jmp hot_thfr ; free thing hg_rts rts end
diolan-plus2-toad5/fw/boot_asm.asm
nyholku/TOAD4
0
91305
<reponame>nyholku/TOAD4 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; BootLoader. ;; ;; Copyright (C) 2007 Diolan ( http://www.diolan.com ) ;; ;; ;; ;; This program is free software: you can redistribute it and/or modify ;; ;; it under the terms of the GNU General Public License as published by ;; ;; the Free Software Foundation, either version 3 of the License, or ;; ;; (at your option) any later version. ;; ;; ;; ;; This program is distributed in the hope that it will be useful, ;; ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; ;; GNU General Public License for more details. ;; ;; ;; ;; You should have received a copy of the GNU General Public License ;; ;; along with this program. If not, see <http://www.gnu.org/licenses/> ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; Copyright (c) 2015 <NAME> / SpareTimeLabs ; - modified NOT to use Extended Instruction Set (for compatibility with SDCC) ; - extensively optimized to still fit in the 2 kB boot block ;----------------------------------------------------------------------------- ; ; Flash Reading / Writing ;----------------------------------------------------------------------------- #include "mpasmx.inc" #include "boot.inc" #include "boot_if.inc" #include "usb_defs.inc" ;----------------------------------------------------------------------------- ; Constants ;----------------------------------------------------------------------------- ; boot_cmd & boot_rep CMD_OFFS equ 0 ID_OFFS equ 1 ADDR_LO_OFFS equ 2 ADDR_HI_OFFS equ 3 SIZE_OFFS equ 5 CODE_OFFS equ 6 VER_MAJOR_OFFS equ 2 VER_MINOR_OFFS equ 3 VER_SMINOR_OFFS equ 4 EEDATA_OFFS equ 6 ;----------------------------------------------------------------------------- ; Global Variables ;----------------------------------------------------------------------------- EXTERN boot_cmd EXTERN boot_rep EXTERN hid_report_in ;----------------------------------------------------------------------------- ; Extern Functions ;----------------------------------------------------------------------------- EXTERN store_fsr1_fsr2 EXTERN restore_fsr1_fsr2 EXTERN xtea_encode EXTERN xtea_decode ;----------------------------------------------------------------------------- ; Local Variables ;----------------------------------------------------------------------------- BOOT_DATA UDATA cntr res 1 hold_r res 1 ; Current Holding Register for tblwt global eep_mark_set eep_mark_set res 1 ;----------------------------------------------------------------------------- ; START ;----------------------------------------------------------------------------- BOOT_ASM_CODE CODE ; GLOBAL read_code ; GLOBAL write_code ; GLOBAL erase_code ; GLOBAL set_eep_mark ; GLOBAL clr_eep_mark GLOBAL bootloader_soft_reset GLOBAL hid_process_cmd GLOBAL copy_boot_rep ;----------------------------------------------------------------------------- ; erase_code ;----------------------------------------------------------------------------- ; DESCR : ; INPUT : boot_cmd ; OUTPUT: ; NOTES : Assume TBLPTRU=0 ;----------------------------------------------------------------------------- erase_code rcall load_address ; TBLPTR = addr erase_code_loop ; while( size_x64 ) ; Erase 64 bytes block bsf EECON1, FREE ; Enable row Erase (not PRORGRAMMING) rcall flash_write ; Erase block. EECON1.FREE will be cleared by HW ; TBLPTR += 64 movlw 0x40 addwf TBLPTRL movlw 0x00 addwfc TBLPTRH decfsz boot_cmd + SIZE_OFFS,f bra erase_code_loop return ;----------------------------------------------------------------------------- ; read_code ;----------------------------------------------------------------------------- ; DESCR : ; INPUT : boot_cmd ; OUTPUT: boot_rep ; NOTES : Assume TBLPTRU=0 ;----------------------------------------------------------------------------- read_code rcall load_address_size8 ; TBLPTR=addr cntr=size8 & 0x3C lfsr FSR0, boot_rep + CODE_OFFS ; FSR0=&boot_rep.data ; while( cntr-- ) read_code_loop tblrd*+ movff TABLAT, POSTINC0 decfsz cntr,f bra read_code_loop ; Encode and return ;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ;bra xtea_encode goto xtea_encode ;----------------------------------------------------------------------------- ; write_code ;----------------------------------------------------------------------------- ; DESCR : ; INPUT : boot_cmd ; OUTPUT: ; NOTES : Assume TBLPTRU=0 ;----------------------------------------------------------------------------- write_code ; Decode ;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ;rcall xtea_decode call xtea_decode ; TBLPTR = addr rcall load_address_size8 ; TBLPTR=addr cntr=size8 & 0x3C lfsr FSR0,boot_cmd + CODE_OFFS ; FSR0=&boot_cmd.data tblrd*- ; TBLPTR-- ; while( cntr-- ) write_code_loop movff POSTINC0, TABLAT tblwt+* ; *(++Holding_Register) = *data++ incf hold_r,f ; hold_r++ btfsc hold_r, 5 ; if( hold_r == 0x20 ) End of Holding Area rcall flash_write ; write_flash Dump Holding Area to Flash decfsz cntr,f bra write_code_loop tstfsz hold_r ; if( hold_r != 0 ) Holding Area not dumped rcall flash_write ; write_flash Dump Holding Area to Flash return ;----------------------------------------------------------------------------- ; read_id ;----------------------------------------------------------------------------- ; DESCR : ; INPUT : ; OUTPUT: boot_rep ; NOTES : Will leave TBLPTRU=0 ;----------------------------------------------------------------------------- read_id rcall rdwr_id_init lfsr FSR0, boot_rep + CODE_OFFS ; FSR0=&boot_rep.data ; while( cntr-- ) read_id_loop tblrd*+ movff TABLAT, POSTINC0 decfsz cntr,f bra read_id_loop rdwr_id_return clrf TBLPTRU #if ENCODE_ID ; Encode and return ;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! bra xtea_encode #else return #endif ;----------------------------------------------------------------------------- ; write_id ;----------------------------------------------------------------------------- ; DESCR : ; INPUT : boot_cmd ; OUTPUT: ; NOTES : Will leave TBLPTRU=0 ;----------------------------------------------------------------------------- write_id #if ENCODE_ID ; Decode ;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! rcall xtea_decode #endif rcall rdwr_id_init lfsr FSR0, boot_cmd + CODE_OFFS ; FSR0=&boot_cmd.data ; Erase bsf EECON1, FREE ; Enable row Erase (not PRORGRAMMING) rcall flash_write ; Erase block. EECON1.FREE will be cleared by HW ; while( cntr-- ) write_id_loop movff POSTINC0, TABLAT tblwt*+ decfsz cntr,f bra write_id_loop rcall flash_write bra rdwr_id_return rdwr_id_init movlw 0x20 movwf TBLPTRU clrf TBLPTRH clrf TBLPTRL ; TBLPTR=0x200000 movlw 0x08 movwf cntr ; cntr=8 movwf boot_rep + SIZE_OFFS return ;----------------------------------------------------------------------------- ; DESCR : Write data to EEPROM ; INPUT : boot_cmd ; OUTPUT: boot_rep ; NOTES : ;----------------------------------------------------------------------------- write_eeprom #if ENCODE_EEPROM ; Decode ;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! call xtea_decode #endif rcall eeprom_init lfsr FSR0, boot_cmd + EEDATA_OFFS ; FSR0=&boot_cmd.write_eeprom.data ; while( cntr-- ) write_eeprom_loop movff POSTINC0, EEDATA rcall eeprom_write btfsc EECON1, WR ; Is WRITE completed? bra $ - 2 ; Wait until WRITE complete incf EEADR, F ; Next address decfsz cntr,f bra write_eeprom_loop return ;----------------------------------------------------------------------------- ; DESCR : Read data from EEPROM ; INPUT : boot_cmd ; OUTPUT: boot_rep ; NOTES : ;----------------------------------------------------------------------------- read_eeprom rcall eeprom_init lfsr FSR0, boot_rep + EEDATA_OFFS ; FSR0=&boot_rsp.read_eeprom.data ; while( cntr-- ) read_eeprom_loop bsf EECON1, RD ; Read data movff EEDATA, POSTINC0 incf EEADR, F ; Next address decfsz cntr,f bra read_eeprom_loop #if ENCODE_EEPROM ; Encode and return ;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! bra xtea_encode #else return #endif ;----------------------------------------------------------------------------- ; DESCR : Setup EEPROM registers and vars ; INPUT : boot_cmd ; OUTPUT: ; NOTES : ;----------------------------------------------------------------------------- eeprom_init movf boot_cmd + ADDR_LO_OFFS, W ; EEPEOM address to read movwf EEADR movf boot_cmd + SIZE_OFFS, W ; Size of data to read movwf cntr movwf boot_rep + SIZE_OFFS clrf EECON1, W return ;----------------------------------------------------------------------------- ; Assembler Functions written to save code space ;----------------------------------------------------------------------------- ;----------------------------------------------------------------------------- ; hid_process_cmd ;----------------------------------------------------------------------------- ; DESCR : Process HID command in boot_cmd ; INPUT : ; OUTPUT: ; NOTES : ;----------------------------------------------------------------------------- hid_process_cmd movf boot_cmd + CMD_OFFS, W ; W = boot_cmd.cmd bz return_hid_process_cmd ; if( boot_cmd.cmd == 0 ) return ; Start processing movwf boot_rep + CMD_OFFS ; boot_rep.cmd = boot_cmd.cmd movff boot_cmd + ID_OFFS, boot_rep + ID_OFFS ; boot_rep.id = boot_cmd.id #if USE_EEPROM_MARK ; Set EEPROM Mark on first command received btfss eep_mark_set, 0 ; if( eeprom_mark_set == 0 ) rcall set_eep_mark ; set_eeprom_mark ; WREG corrupted, reload command movf boot_cmd + CMD_OFFS, W ; W = boot_cmd.cmd #endif clrf boot_cmd + CMD_OFFS ; boot_cmd.cmd = 0 ; switch( boot_cmd.cmd ) dcfsnz WREG bra read_code ; cmd=1 BOOT_READ_FLASH dcfsnz WREG bra write_code ; cmd=2 BOOT_WRITE_FLASH dcfsnz WREG bra erase_code ; cmd=3 BOOT_ERASE_FLASH dcfsnz WREG bra get_fw_version ; cmd=4 BOOT_GET_FW_VER dcfsnz WREG bra soft_reset ; cmd=5 BOOT_RESET dcfsnz WREG bra read_id ; cmd=6 BOOT_READ_ID dcfsnz WREG bra write_id ; cmd=7 BOOT_WRITE_ID dcfsnz WREG bra read_eeprom ; cmd=8 BOOT_READ_EEPROM dcfsnz WREG bra write_eeprom ; cmd=9 BOOT_WRITE_EEPROM ; If command is not processed sned back BOOT_CMD_UNKNOWN unknown_cmd movlw BOOT_CMD_UNKNOWN movwf boot_rep + CMD_OFFS ; boot_rep.cmd = BOOT_CMD_UNKNOWN return_hid_process_cmd return ;----------------------------------------------------------------------------- ; get_fw_version ;----------------------------------------------------------------------------- ; DESCR : get_fw_version ; INPUT : ; OUTPUT: ; NOTES : ;----------------------------------------------------------------------------- get_fw_version #if FW_VER_MAJOR == FW_VER_SUB_MINOR && FW_VER_MAJOR != FW_VER_MINOR #if FW_VER_MAJOR != 0 movlw FW_VER_MAJOR #endif movwf boot_rep + VER_MAJOR_OFFS movwf boot_rep + VER_SMINOR_OFFS movlw FW_VER_MINOR movwf boot_rep + VER_MINOR_OFFS #else #if FW_VER_MAJOR != 0 movlw FW_VER_MAJOR #endif movwf boot_rep + VER_MAJOR_OFFS #if FW_VER_MINOR != FW_VER_MAJOR movlw FW_VER_MINOR #endif movwf boot_rep + VER_MINOR_OFFS #if FW_VER_SUB_MINOR != FW_VER_MINOR movlw FW_VER_SUB_MINOR #endif movwf boot_rep + VER_SMINOR_OFFS #endif return ;----------------------------------------------------------------------------- ; soft_reset ; bootloader_soft_reset ;----------------------------------------------------------------------------- ; DESCR : Reset ; INPUT : ; OUTPUT: ; NOTES : ;----------------------------------------------------------------------------- ; Soft Reset and run bootloader FW bootloader_soft_reset #if USE_EEPROM_MARK ; Set EEPROM Mark rcall set_eep_mark bra soft_reset2 #endif ; Soft Reset and run Application FW soft_reset #if USE_EEPROM_MARK ; Remove EEPROM Mark rcall clr_eep_mark #endif ; Reset USB soft_reset2 bcf UCON,USBEN ; Disable USB Engine ; Delay to show USB device reset clrf cntr clrf WREG decfsz WREG bra $ - 2 decfsz cntr,f bra $ - 8 reset ;----------------------------------------------------------------------------- ; copy_boot_rep ;----------------------------------------------------------------------------- ; DESCR : boot_rep => hid_report_in, boot_rep <= 0 ; INPUT : boot_rep ; OUTPUT: ; NOTES : ;----------------------------------------------------------------------------- copy_boot_rep rcall store_fsr1_fsr2 lfsr FSR0, boot_rep lfsr FSR1, hid_report_in movlw HID_IN_EP_SIZE ; while( w ) copy_boot_rep_loop movff INDF0, POSTINC1 clrf POSTINC0 decfsz WREG bra copy_boot_rep_loop ; restore FSR1,FSR2 and return bra restore_fsr1_fsr2 ;----------------------------------------------------------------------------- ; set_eep_mask ; clr_eep_mask ;----------------------------------------------------------------------------- ; DESCR : ; INPUT : ; OUTPUT: ; NOTES : ;----------------------------------------------------------------------------- clr_eep_mark movlw ~(EEPROM_MARK) clrf eep_mark_set ; EEP_MARK will be cleared bra write_eep_mark set_eep_mark movlw EEPROM_MARK bsf eep_mark_set, 0 ; EEP_MARK will be set write_eep_mark movwf EEDATA ; Set Data movlw EEPROM_MARK_ADDR movwf EEADR ; Set Address bcf EECON1, EEPGD ; Access EEPROM (not code memory) rcall eeprom_write ; Perform write sequence btfsc EECON1, WR bra $ - 2 ; Wait EEIF=1 write completed bcf EECON1, WREN ; Disable writes return ;----------------------------------------------------------------------------- ; Local Functions ;----------------------------------------------------------------------------- ; cntr = boot_rep_size8 = boot_cmd.size8 & 0x3C load_address_size8 movf boot_cmd + SIZE_OFFS, W andlw 0x3C movwf cntr movwf boot_rep + SIZE_OFFS ; TBLPTR = boot_rep.addr = boot_cmd.addr; hold_r = boot_cmd.addr_lo & 0x1F load_address movf boot_cmd + ADDR_HI_OFFS, W movwf TBLPTRH movwf boot_rep + ADDR_HI_OFFS movf boot_cmd + ADDR_LO_OFFS, W movwf TBLPTRL movwf boot_rep + ADDR_LO_OFFS andlw 0x1F movwf hold_r return ; write flash (if EECON1.FREE is set will perform block erase) flash_write bsf EECON1, EEPGD ; Access code memory (not EEPROM) ; write eeprom EEADR,EEDATA must be preset, EEPGD must be cleared eeprom_write bcf EECON1, CFGS ; Access code memory (not Config) bsf EECON1, WREN ; Enable write movlw 0x55 movwf EECON2 movlw 0xAA movwf EECON2 bsf EECON1, WR ; Start flash/eeprom writing clrf hold_r ; hold_r=0 return ;----------------------------------------------------------------------------- END
src/ini-parameters.ads
SSOCsoft/Log_Reporter
0
27604
<reponame>SSOCsoft/Log_Reporter With INI.Read_INI; Package INI.Parameters is Parameters : INI.Instance renames Read_INI("Parameters.ini"); End INI.Parameters;
scripts/notes-to-json.applescript
jbriales/lifelogger
26
3675
<filename>scripts/notes-to-json.applescript #!/usr/bin/osascript -- Dump notes from Notes.app to a json file as a list of objects. -- Pass 1 argument - the filename to write the json notes into. on run argv set argc to 0 try set argc to (count of argv) end try if argc is not 1 error 128 end if set filename to item 1 of argv -- delete file if it exists tell application "Finder" try delete POSIX file filename on error log "fail" set a to 1 end try end tell set jsonNotes to my getJsonNotes() my saveJsonNotes(filename, jsonNotes) end run on getJsonNotes() set jsonNotes to {} tell application "Notes" set counter to 0 repeat with each in every note set noteId to id of each set noteBody to body of each set creationDate to creation date of each set modificationDate to modification date of each set noteJson to my buildNoteJson(noteId, noteBody as text, creationDate, modificationDate) if length of noteBody is less than 3000 then copy noteJson to the end of jsonNotes end if set counter to counter + 1 end repeat end tell return jsonNotes end getJsonNotes on buildNoteJson(noteId, body, creationDate, modificationDate) set normalizedBody to replace(body, "\n", "\\n") set normalizedBody to replace(normalizedBody, "\"", "\\\"") set json to ("{\"id\": \"" & noteId & "\", \"body\": \"" & normalizedBody & "\", \"creationDate\": \"" & creationDate & "\", \"modificationDate\": \"" & modificationDate & "\"}") return json end buildNoteJson on replace(originalText, fromText, toText) set AppleScript's text item delimiters to the fromText set the item_list to every text item of originalText set AppleScript's text item delimiters to the toText set originalText to the item_list as string set AppleScript's text item delimiters to "" return originalText end replace on saveJsonNotes(filename, jsonNotes) set the output to open for access filename with write permission write "[" to the output set counter to 1 set num to length of jsonNotes repeat with each in jsonNotes write each to the output if counter is less than num write "," to the output end if set counter to counter + 1 end repeat write "]" to the output close access the output end saveJsonNotes
programs/oeis/074/A074225.asm
neoneye/loda
22
173418
<reponame>neoneye/loda ; A074225: a(n) = n * Sum_{d|n} d*2^(d-1). ; 1,10,39,148,405,1254,3143,8488,20853,52050,123915,297804,692237,1611974,3687795,8405584,18939921,42512562,94634003,209819940,462431697,1015269486,2218786839,4832458392,10485762025,22684180610,48922424415,105229923596,225754218525,483191355870,1031865892895,2199040066720,4677219757485,9930002268330,21045339768915,44530306835940,94076963651621,198462038081726,418089298539003,879609721901640,1848279046291497,3879077952482250,8131987999031339,17029238121535068,35624176751109465,74450135777542374,155444555888459823,324259182860758320,675821419082307057,1407374904525060250,2928465657754485399,6088866741573273476,12650611353283723317,26264993124796994070,54493555491183625575,112986307661930908184,234115123029511766757,484803493138687590690,1003329939384108580923,2075258709259337890620,4290020918642077597757,8863660529481171337526,18303781807139690031219,37778931867355241843008,77937493711422859043985,160708034379515098271202,331229736587528708816963,682381956794523737917908,1405199176558905460261761,2892449470799748381313470,5951362360036470380560455,12240373923687195503160264,25165490987212339343786057,51719357720576508307702130,106253245864567048783878975,218211110440837490110630652,447982574030946023552959245,919388085817761734009528238,1886226510053725169835311183,3868562622768572578545509520,7931762302491582162014493981,16257634422181229699541238170,33313159885300721538203385939,68241444665614346125401350676,139751824747451132596128652005,286118891579849780012058149294,585623009834440206971729609835,1198325958028282164578595409080,2451430762794874289368990744665,5013657159105861363144719603610,10251381465322234056439652585371,20955848985023066193763929951564,42827773599117015993505699333305,87507505497005271761181070066134,178758541672808911695434011123215,365083372865730716156013314431584,745457781096713152417655028711521,1521814545573990748139630373907818,3106060883209219091031328688473095,6338253001141149822233326125579700 add $0,1 mov $1,$0 mov $2,$0 lpb $1 mul $0,2 mov $3,$2 mov $4,$1 cmp $4,0 add $1,$4 dif $3,$1 cmp $3,$2 cmp $3,0 mul $3,$2 mul $3,$1 sub $1,1 sub $3,$2 add $0,$3 lpe
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/set_in_pproc.adb
best08618/asylo
7
21590
-- { dg-do compile } with Ada.Containers.Ordered_Sets; procedure Set_In_Pproc is protected type Ptype is procedure Pproc; end; protected body Ptype is procedure Pproc is package Sets is new Ada.Containers.Ordered_Sets (Element_Type => Integer); begin null; end; end; begin null; end;
oeis/015/A015562.asm
neoneye/loda-programs
11
167878
<reponame>neoneye/loda-programs ; A015562: Expansion of x/(1 - 7*x - 5*x^2). ; Submitted by <NAME> ; 0,1,7,54,413,3161,24192,185149,1417003,10844766,82998377,635212469,4861479168,37206416521,284752311487,2179298263014,16678849398533,127648437104801,976933306726272,7476775332607909,57222093861886723,437938533696246606,3351680205183159857,25651454104763352029,196318579759259263488,1502487328838631604561,11499004200666717549367,88005466048860180868374,673533283345354853825453,5154760313661784881120041,39450988612359268436967552,301930721854823803464373069,2310769996045562966435449243 mov $1,1 lpb $0 sub $0,1 mov $3,$1 mov $1,$2 mul $1,5 mul $2,7 add $2,$3 lpe mov $0,$2
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_20_326.asm
ljhsiun2/medusa
9
97339
<reponame>ljhsiun2/medusa .global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x19c93, %r15 nop add $16962, %r9 movb (%r15), %r12b nop nop nop nop nop sub %rdi, %rdi lea addresses_UC_ht+0xac93, %r10 nop nop nop inc %r12 mov (%r10), %ebp nop nop nop cmp %r12, %r12 lea addresses_normal_ht+0x14c93, %r9 nop nop nop nop add %rcx, %rcx mov $0x6162636465666768, %rbp movq %rbp, %xmm1 movups %xmm1, (%r9) nop nop dec %rdi lea addresses_WT_ht+0x1dc93, %rsi lea addresses_normal_ht+0x7393, %rdi nop nop cmp %r12, %r12 mov $60, %rcx rep movsl nop nop nop add %r12, %r12 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r8 push %r9 push %rbx push %rdi push %rdx // Store mov $0x5ec633000000090f, %r8 nop nop nop nop nop and $35305, %rdi mov $0x5152535455565758, %rdx movq %rdx, %xmm4 vmovups %ymm4, (%r8) add %r10, %r10 // Load lea addresses_PSE+0x1e493, %rbx nop nop nop xor $15414, %r12 movups (%rbx), %xmm3 vpextrq $1, %xmm3, %rdx nop nop nop nop add %r12, %r12 // Store lea addresses_D+0x4d9e, %r8 nop nop nop nop nop add %r9, %r9 movb $0x51, (%r8) // Exception!!! nop nop nop nop nop mov (0), %rbx nop nop cmp $27359, %r9 // Load lea addresses_UC+0xc893, %rbx nop nop nop nop nop sub $62260, %r9 mov (%rbx), %r10w nop nop nop nop xor %r9, %r9 // Store lea addresses_D+0xd093, %rdi nop nop cmp %rbx, %rbx mov $0x5152535455565758, %rdx movq %rdx, %xmm4 movups %xmm4, (%rdi) nop nop nop and $48972, %r8 // Faulty Load lea addresses_RW+0x1b493, %r9 sub %rdx, %rdx movups (%r9), %xmm6 vpextrq $0, %xmm6, %r8 lea oracles, %r10 and $0xff, %r8 shlq $12, %r8 mov (%r10,%r8,1), %r8 pop %rdx pop %rdi pop %rbx pop %r9 pop %r8 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_RW', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_NC', 'size': 32, 'AVXalign': False}} {'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_PSE', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': True, 'type': 'addresses_D', 'size': 1, 'AVXalign': True}} {'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_UC', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_D', 'size': 16, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_RW', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': True, 'congruent': 11, 'NT': True, 'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}} {'32': 20} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
src/Parse/GeneratedParser.g4
Naios/swy
19
2714
/** Copyright(c) 2016 - 2017 <NAME> <denis.blank at outlook dot com> 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. **/ parser grammar GeneratedParser; options { tokenVocab = GeneratedLexer; superClass=BasicParser; // contextSuperClass=MyRuleNode; // ParserRuleContext } @parser::header { #include "AST.hpp" #include "ASTScope.hpp" #include "BasicParser.hpp" } // Actual grammar start. compilationUnit : (runtimeGlobalScopeNode | metaDecl)* EOF; runtimeGlobalScopeNode : functionDecl | { isInMetaDecl() }? metaStmt ; functionDecl : Identifier OpenPar argumentDeclList ClosePar returnDecl Arrow { if (isInMetaDecl()) { assert(isInMetaDepth(MetaDepth::DepthGlobalScope)); enterDepth(MetaDepth::DepthLocalScope); } } statement { if (isInMetaDecl()) { leaveDepth(); assert(isInMetaDepth(MetaDepth::DepthGlobalScope)); } }; metaDecl : Identifier OperatorLessThan argumentDeclList OperatorGreaterThan Arrow { assert(!isInMetaDecl()); enterDepth(MetaDepth::DepthGlobalScope); } metaContribution { leaveDepth(); assert(!isInMetaDecl()); } ; metaContribution : /*(metaScopeNode | (*/ OpenCurly metaScopeNode* CloseCurly /*))*/ ; metaScopeNode : ({ isInMetaDepth(MetaDepth::DepthGlobalScope) }? runtimeGlobalScopeNode) | ({ isInMetaDepth(MetaDepth::DepthLocalScope) }? statement) ; metaStmt : metaCalculationStmt | metaIfStmt ; metaCalculationStmt : { enterDepth(MetaDepth::DepthNone); } Meta unscopedCompoundStmt { leaveDepth(); } ; metaIfStmt : Meta If metaCalculationExpr metaContribution metaElseStmt? ; metaElseStmt : Else metaContribution ; returnDecl : argumentDecl? ; argumentDeclList : (argumentDecl (Comma argumentDecl)*)? ; argumentDecl : argumentType argumentName? ; argumentType : Identifier ; argumentName : Identifier ; statement : declStmt | exprStmt | returnStmt | ifStmt | compoundStmt | { isInMetaDecl() && !isInMetaDepth(MetaDepth::DepthNone) }? metaStmt ; compoundStmt : basicCompoundStmt ; unscopedCompoundStmt : basicCompoundStmt ; basicCompoundStmt : OpenCurly statement* CloseCurly ; // forStmt // : For forOptionalT0 compoundStmt declStmt : varDecl OperatorAssign expr Semicolon ; varDecl : varDeclType varDeclName ; varDeclType : Identifier ; varDeclName : Identifier ; exprStmt : expr Semicolon ; returnStmt : Return expr? Semicolon ; ifStmt : If expr compoundStmt elseStmt? ; elseStmt : Else compoundStmt ; metaCalculationExpr : { enterDepth(MetaDepth::DepthNone); } expr { leaveDepth(); } ; // exprs with precedences expr : unaryExpr | metaInstantiationExpr | declRefExpr | OpenPar expr ClosePar | integerLiteralExpr | booleanLiteralExpr | expr binaryOperator expr ; unaryExpr : enclosingExpr ; enclosingExpr : callOperatorExpr ; callOperatorExpr : (declRefExpr | metaInstantiationExpr) OpenPar exprList ClosePar ; exprList : (expr (Comma expr)*)? ; integerLiteralExpr : IntegerLiteral ; booleanLiteralExpr : True | False ; declRefExpr : Identifier ; metaInstantiationExpr : declRefExpr OperatorLessThan exprList OperatorGreaterThan ; // No operator precedence support binaryOperator : <assoc = right>OperatorAssign | OperatorMul | OperatorDiv | OperatorPlus | OperatorMinus | OperatorLessThan | OperatorGreaterThan | OperatorLessThanOrEq | OperatorGreaterThanOrEq | OperatorEqual | OperatorNotEqual ;
helloos/Kernel/kernel.pic.asm
kbu1564/HelloOS
15
86836
; I/O Port 함수 ; ; o port byte _out_port_byte: push edx out dx, al pop edx ret ; o port word _out_port_word: out dx, ax ret ; i port byte _in_port_byte: push edx mov dh, 0 in al, dx pop edx ret ; i port word _in_port_word: in ax, dx ret ; PIC 관련 Master와 Slave를 초기화 셋팅하는 함수 _init_pic: mov dl, 0x20 mov al, 0x11 call _out_port_byte ; LTIM : 0, SNGL : 0, IC4 : 1 mov dl, 0x21 mov al, 0x20 call _out_port_byte ; 0 ~ 31은 시스템에서 예외 처리에 사용하려 예약된 벡터 이므로 ; 32번 이후 부터 등록 mov dl, 0x21 mov al, 0x04 call _out_port_byte ; 슬레이브 컨트롤러 -> 마스터 컨트롤러 PIC 2번에 연결 mov dl, 0x21 mov al, 0x01 call _out_port_byte ; uPM : 1 mov dl, 0xA0 mov al, 0x11 call _out_port_byte ; LTIM : 0, SNGL : 0, IC4 : 1 mov dl, 0xA1 mov al, 0x20 + 8 call _out_port_byte ; 인터럽트 백터를 40번부터 할당 mov dl, 0xA1 mov al, 0x02 call _out_port_byte ; 슬레이브 컨트롤러 -> 마스터 컨트롤러 PIC 2번에 연결 mov dl, 0xA1 mov al, 0x01 call _out_port_byte ; uPM : 1 ret ; 특정 인터럽트를 발생시키지 않도록 셋팅하는 함수 ; eax : maks_int_num _mask_pic: mov dl, 0x21 call _out_port_byte ; IRQ 0 ~ IRQ 7 까지 마스크 셋팅 ; 해당 비트에 1이 셋팅된 경우 인터럽트가 호출되지 않는다. ; Master PIC shr ax, 8 mov dl, 0xA1 call _out_port_byte ; IRQ 8 ~ IRQ 15 ; Slave PIC ret ; EOI 처리용 함수 ; eoi : end of interrupt ; void send_eoi_to_pic(int eoi_int_num); _send_eoi_to_pic: push ebp mov ebp, esp pusha xor edx, edx mov eax, dword [ebp+8] mov dl, 0x20 mov al, 0x20 call _out_port_byte ; Master PIC에게 EOI 전송 cmp eax, 8 jb .end ; IRQ 번호가 8이상일 경우 슬레이브 PIC 인터럽트 이므로 슬레이브 PIC에게도 ; EOI 전송 mov dl, 0xA0 mov al, 0x20 call _out_port_byte ; Master PIC에게 EOI 전송 .end: popa mov esp, ebp pop ebp ret 4
programs/oeis/023/A023531.asm
jmorken/loda
1
165083
; A023531: a(n) = 1 if n is of the form m(m+3)/2, otherwise 0. ; 1,0,1,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0 mul $0,2 add $0,1 mov $2,4 lpb $0 sub $0,$2 add $2,2 lpe sub $0,1 bin $1,$0
.emacs.d/elpa/wisi-3.1.3/wisitoken-bnf-generate_utils.ads
caqg/linux-home
0
23337
-- Abstract : -- -- Utilities for translating input file structures to WisiToken -- structures needed for LALR.Generate. -- -- Copyright (C) 2014, 2015, 2017 - 2020 Free Software Foundation, Inc. -- -- The WisiToken package is free software; you can redistribute it -- and/or modify it under terms of the GNU General Public License as -- published by the Free Software Foundation; either version 3, or -- (at your option) any later version. This library is distributed in -- the hope that it will be useful, but WITHOUT ANY WARRANTY; without -- even the implied warranty of 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. pragma License (Modified_GPL); with Ada.Iterator_Interfaces; with WisiToken.Generate.LR; with WisiToken.Parse.LR; with WisiToken.Productions; with WisiToken_Grammar_Runtime; package WisiToken.BNF.Generate_Utils is EOI_Name : constant String := "Wisi_EOI"; -- EOI_Name is used for Descriptor.EOI_ID token; it must match Emacs ada-mode -- wisi.el wisi-eoi-term. It must be a valid Ada identifier when -- "_ID" is appended. WisiToken_Accept_Name : constant String := "wisitoken_accept"; type Generate_Data (Tokens : not null access constant WisiToken.BNF.Tokens) is limited record Descriptor : WisiToken.Descriptor_Access; Grammar : WisiToken.Productions.Prod_Arrays.Vector; Action_Names : Names_Array_Array_Access; Check_Names : Names_Array_Array_Access; -- Names of subprograms for each grammar semantic action and check; -- non-null only if there is an action or check in the grammar. Start_ID : WisiToken.Token_ID; Source_Line_Map : WisiToken.Productions.Source_Line_Maps.Vector; -- The following fields are LR specific; so far, it's not worth -- splitting them out. Ignore_Conflicts : Boolean := False; Conflicts : WisiToken.Generate.LR.Conflict_Lists.List; LR_Parse_Table : WisiToken.Parse.LR.Parse_Table_Ptr; Parser_State_Count : WisiToken.Unknown_State_Index := 0; end record; function Initialize (Input_Data : aliased in WisiToken_Grammar_Runtime.User_Data_Type; Ignore_Conflicts : in Boolean := False) return Generate_Data; function Find_Token_ID (Data : aliased in Generate_Data; Token : in String) return Token_ID; type Token_Container (Data : not null access constant Generate_Data) is tagged null record with Constant_Indexing => Constant_Reference, Default_Iterator => Iterate, Iterator_Element => Ada.Strings.Unbounded.Unbounded_String; -- We need a container type to define an iterator; the actual data is -- in Data.Tokens. The Iterator_Element is given by Token_Name below. function All_Tokens (Data : aliased in Generate_Data) return Token_Container; type Token_Constant_Reference_Type (Element : not null access constant Ada.Strings.Unbounded.Unbounded_String) is null record with Implicit_Dereference => Element; type Token_Cursor (<>) is private; -- Iterate thru Keywords, Tokens, Rules in a canonical order: -- -- 1. Non_Grammar -- 2. Keywords -- 3. other terminal tokens, in declaration order -- 4. EOI -- 5. Accept -- 6. Nonterminals -- -- Within each group, tokens occur in the order they were declared in -- the grammar file. function Constant_Reference (Container : aliased in Token_Container'Class; Cursor : in Token_Cursor) return Token_Constant_Reference_Type; function Is_Done (Cursor : in Token_Cursor) return Boolean; function Has_Element (Cursor : in Token_Cursor) return Boolean is (not Is_Done (Cursor)); package Iterator_Interfaces is new Ada.Iterator_Interfaces (Token_Cursor, Has_Element); function Iterate (Container : aliased Token_Container; Non_Grammar : in Boolean := True; Nonterminals : in Boolean := True) return Iterator_Interfaces.Forward_Iterator'Class; function First (Data : aliased in Generate_Data; Non_Grammar : in Boolean; Nonterminals : in Boolean) return Token_Cursor; procedure Next (Cursor : in out Token_Cursor; Nonterminals : in Boolean); function ID (Cursor : in Token_Cursor) return Token_ID; function Name (Cursor : in Token_Cursor) return String; -- Return the token name from the .wy file: -- Keywords: Keywords (i).name -- Tokens : Tokens (i).Tokens (j).name -- Rules : Rules (i).Left_Hand_Side function Kind (Cursor : in Token_Cursor) return String; -- Return the token kind from the .wy file: -- Keywords: "keyword" -- Tokens : Tokens (i).Kind -- Rules : "nonterminal" function Value (Cursor : in Token_Cursor) return String; -- Return the token value from the .wy file: -- Keywords: Keywords (i).value -- Tokens : Tokens (i).Tokens (j).Value -- Rules : empty string (they have no Value) function Repair_Image (Cursor : in Token_Cursor) return String; -- Return the token repair image from the .wy file: -- Keywords: empty string -- Tokens : Tokens (i).Tokens (j).Repair_Image -- Rules : empty string function To_Conflicts (Data : aliased in out Generate_Data; Conflicts : in WisiToken.BNF.Conflict_Lists.List; Source_File_Name : in String) return WisiToken.Generate.LR.Conflict_Lists.List; -- Not included in Initialize because algorithms have no conflicts. function To_Nonterminal_ID_Set (Data : aliased in Generate_Data; Item : in String_Lists.List) return Token_ID_Set; function To_McKenzie_Param (Data : aliased in Generate_Data; Item : in McKenzie_Recover_Param_Type) return WisiToken.Parse.LR.McKenzie_Param_Type; procedure Put_Stats (Input_Data : in WisiToken_Grammar_Runtime.User_Data_Type; Generate_Data : in Generate_Utils.Generate_Data); private type Token_Cursor_Kind is (Non_Grammar_Kind, Terminals_Keywords, Terminals_Others, EOI, WisiToken_Accept, Nonterminal, Done); type Token_Cursor (Data : not null access constant Generate_Data) is record Kind : Token_Cursor_Kind; ID : Token_ID; Token_Kind : WisiToken.BNF.Token_Lists.Cursor; -- Non_Grammar or Tokens, depending on Kind Token_Item : String_Triple_Lists.Cursor; Keyword : String_Pair_Lists.Cursor; Nonterminal : Rule_Lists.Cursor; end record; end WisiToken.BNF.Generate_Utils;
gfx/pokemon/raticate/anim.asm
Dev727/ancientplatinum
28
164277
frame 2, 24 setrepeat 2 frame 0, 04 frame 1, 04 dorepeat 2 endanim
src/ExecBlock/win-X86_Stub.asm
ufo2011/QBDI
1
20078
<gh_stars>1-10 ; This file is part of QBDI. ; ; Copyright 2017 Quarkslab ; ; 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. .386 .xmm .model flat, C _TEXT segment PUBLIC qbdi_runCodeBlockSSE PUBLIC qbdi_runCodeBlockAVX .CODE qbdi_runCodeBlockSSE PROC mov eax, [esp+4]; mov edx, esp; sub esp, 512; and esp, -512; fxsave [esp]; pushad; call eax; popad; fxrstor [esp]; mov esp, edx; ret; qbdi_runCodeBlockSSE ENDP qbdi_runCodeBlockAVX PROC mov eax, [esp+4]; mov edx, esp; sub esp, 1024; and esp, -1024; fxsave [esp]; vextractf128 xmmword ptr [esp+512], ymm0, 1; vextractf128 xmmword ptr [esp+528], ymm1, 1; vextractf128 xmmword ptr [esp+544], ymm2, 1; vextractf128 xmmword ptr [esp+560], ymm3, 1; vextractf128 xmmword ptr [esp+576], ymm4, 1; vextractf128 xmmword ptr [esp+592], ymm5, 1; vextractf128 xmmword ptr [esp+608], ymm6, 1; vextractf128 xmmword ptr [esp+624], ymm7, 1; pushad; call eax; popad; fxrstor [esp]; vinsertf128 ymm0, ymm0, xmmword ptr [esp+512], 1; vinsertf128 ymm1, ymm1, xmmword ptr [esp+528], 1; vinsertf128 ymm2, ymm2, xmmword ptr [esp+544], 1; vinsertf128 ymm3, ymm3, xmmword ptr [esp+560], 1; vinsertf128 ymm4, ymm4, xmmword ptr [esp+576], 1; vinsertf128 ymm5, ymm5, xmmword ptr [esp+592], 1; vinsertf128 ymm6, ymm6, xmmword ptr [esp+608], 1; vinsertf128 ymm7, ymm7, xmmword ptr [esp+624], 1; mov esp, edx; ret; qbdi_runCodeBlockAVX ENDP END
libsrc/stdio/z9001/conio_vars.asm
jpoikela/z88dk
640
8118
<filename>libsrc/stdio/z9001/conio_vars.asm ; ; Shared variables between the VT100 and VT52 engines MODULE conio_vars SECTION data_clib PUBLIC __z9001_attr .__z9001_attr defb $70 ; White on Black
bb-runtimes/src/s-bbcppr__ppc.adb
JCGobbi/Nucleo-STM32G474RE
0
1617
<reponame>JCGobbi/Nucleo-STM32G474RE ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . B B . C P U _ P R I M I T I V E S -- -- -- -- B o d y -- -- -- -- Copyright (C) 1999-2002 Universidad Politecnica de Madrid -- -- Copyright (C) 2003-2005 The European Space Agency -- -- Copyright (C) 2003-2017, 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. -- -- -- -- The port of GNARL to bare board targets was initially developed by the -- -- Real-Time Systems Group at the Technical University of Madrid. -- -- -- ------------------------------------------------------------------------------ -- This package implements PowerPC architecture specific support for the GNAT -- Ravenscar run time. with System.Machine_Code; use System.Machine_Code; with System.Multiprocessors; with System.BB.Threads.Queues; with System.BB.Board_Support; package body System.BB.CPU_Primitives is package SSE renames System.Storage_Elements; use type SSE.Integer_Address; use type SSE.Storage_Offset; type MSR_Type is mod 2 ** 32; for MSR_Type'Size use 32; MSR_EE : constant MSR_Type := 2 ** 15; function Get_MSR return MSR_Type; pragma Inline (Get_MSR); -- Read the MSR procedure Set_MSR (MSR : MSR_Type); pragma Inline (Set_MSR); -- Write the MSR type Context_Switch_Params is record Running_Thread_Address : Address; -- Address of the running thread entry for the current cpu First_Thread_Address : Address; -- Address of the first read thread for the current cpu end record; pragma Convention (C, Context_Switch_Params); pragma Suppress_Initialization (Context_Switch_Params); -- This record describe data that are passed from Pre_Context_Switch -- to Context_Switch. In the assembly code we take advantage of the ABI -- so that the data returned are in the registers of the incoming call. -- So there is no need to copy or to move the data between both calls. function Pre_Context_Switch return Context_Switch_Params; pragma Export (Asm, Pre_Context_Switch, "__gnat_pre_context_switch"); -- The full context switch is split in 2 stages: -- - Pre_Context_Switch: adjust the current priority (but don't modify -- the MSR.EE bit), and return the running and first thread queue -- addresses. -- - The assembly routine (context_switch) which does the real context -- switch. -- When called from interrupt handler, the stack pointer is saved before -- and restore after the context switch. Therefore the context switch -- cannot allocate a frame but only assembly code can guarantee that. We -- also take advantage of this two stage call to extract queue pointers -- in the Ada code. ------------------------ -- Pre_Context_Switch -- ------------------------ function Pre_Context_Switch return Context_Switch_Params is use System.BB.Threads.Queues; use System.BB.Threads; CPU_Id : constant System.Multiprocessors.CPU := Board_Support.Multiprocessors.Current_CPU; New_Priority : constant Integer := First_Thread_Table (CPU_Id).Active_Priority; begin -- Called with interrupts disabled -- Set interrupt priority. Unlike the SPARC implementation, the -- interrupt priority is not part of the context (not in a register). -- However full interrupt disabling is part of the context switch. if New_Priority < Interrupt_Priority'Last then Board_Support.Interrupts.Set_Current_Priority (New_Priority); end if; return (Running_Thread_Table (CPU_Id)'Address, First_Thread_Table (CPU_Id)'Address); end Pre_Context_Switch; -------------------- -- Context_Switch -- -------------------- procedure Context_Switch is procedure Context_Switch_Asm (Running_Thread_Table_Element_Address : System.Address; Ready_Thread_Table_Element_Address : System.Address); pragma Import (Asm, Context_Switch_Asm, "__gnat_context_switch"); -- Real context switch in assembly code Params : Context_Switch_Params; begin -- First set priority and get pointers Params := Pre_Context_Switch; -- Then the real context switch Context_Switch_Asm (Params.Running_Thread_Address, Params.First_Thread_Address); end Context_Switch; ------------------------ -- Disable_Interrupts -- ------------------------ procedure Disable_Interrupts is begin Set_MSR (Get_MSR and not MSR_EE); end Disable_Interrupts; ----------------------- -- Enable_Interrupts -- ----------------------- procedure Enable_Interrupts (Level : Integer) is begin if Level /= System.Interrupt_Priority'Last then Board_Support.Interrupts.Set_Current_Priority (Level); -- Really enable interrupts Set_MSR (Get_MSR or MSR_EE); end if; end Enable_Interrupts; ------------- -- Get_MSR -- ------------- function Get_MSR return MSR_Type is Res : MSR_Type; begin Asm ("mfmsr %0", Outputs => MSR_Type'Asm_Output ("=r", Res), Volatile => True); return Res; end Get_MSR; ---------------------- -- Initialize_Stack -- ---------------------- procedure Initialize_Stack (Base : Address; Size : Storage_Elements.Storage_Offset; Stack_Pointer : out Address) is use System.Storage_Elements; Minimum_Stack_Size_In_Bytes : constant Integer_Address := CPU_Specific.Stack_Alignment; Initial_SP : constant System.Address := To_Address (To_Integer (Base + Size) - Minimum_Stack_Size_In_Bytes); LR_Save_Word : System.Address; for LR_Save_Word'Address use Initial_SP + Storage_Offset'(4); Back_Chain_Word : System.Address; for Back_Chain_Word'Address use Initial_SP; begin -- Put Null to these two values to clear the stack. LR_Save_Word := Null_Address; Back_Chain_Word := Null_Address; Stack_Pointer := Initial_SP; end Initialize_Stack; ------------------------ -- Initialize_Context -- ------------------------ procedure Initialize_Context (Buffer : not null access Context_Buffer; Program_Counter : System.Address; Argument : System.Address; Stack_Pointer : System.Address) is procedure Start_Thread_Asm; pragma Import (Asm, Start_Thread_Asm, "__gnat_start_thread"); Initial_SP : Address; begin -- No need to initialize the context of the environment task if Program_Counter = Null_Address then return; end if; -- We cheat as we don't know the stack size nor the stack base Initialize_Stack (Stack_Pointer, 0, Initial_SP); -- Overwrite Stack Pointer and Program Counter with values that have -- been passed as arguments. The Stack Pointer of the task is 2 words -- below Stack_Pointer. These two words correspond to the header of the -- new stack. This header contains the LR_Save_Word and Back_Chain_Word. -- Program_Counter points to the task_wrapper procedure. -- We create a new stack pointer with a size of at least 8 which are -- reserved for the header, but we also have to make sure that the stack -- is aligned with Standard'Maximum_Alignment Buffer.R1 := Initial_SP; Buffer.LR := Start_Thread_Asm'Address; Buffer.R14 := Program_Counter; Buffer.R15 := Argument; CPU_Specific.Finish_Initialize_Context (Buffer); end Initialize_Context; -------------------- -- Initialize_CPU -- -------------------- procedure Initialize_CPU is begin CPU_Specific.Initialize_CPU; end Initialize_CPU; ---------------------------- -- Install_Error_Handlers -- ---------------------------- procedure Install_Error_Handlers renames CPU_Specific.Install_Error_Handlers; ------------- -- Set_MSR -- ------------- -- Note: there is no context synchronization. If required, this must be -- done explicitly by the caller. procedure Set_MSR (MSR : MSR_Type) is begin Asm ("mtmsr %0", Inputs => MSR_Type'Asm_Input ("r", MSR), Volatile => True); end Set_MSR; end System.BB.CPU_Primitives;
asm/6502/os/6502os.asm
rampa069/clc88
1
29122
<filename>asm/6502/os/6502os.asm icl 'symbols.asm' CHARSET_SIZE = $0400 PALETTE_SIZE = $0200 VRAM_CHARSET = VRAM VRAM_PAL_ATARI = VRAM + CHARSET_SIZE VRAM_PAL_ZX = VRAM_PAL_ATARI + PALETTE_SIZE VRAM_SCREEN = VRAM_PAL_ZX + PALETTE_SIZE TEXT_SCREEN_SIZE = 40*24 TEXT_SCREEN_SIZE_WIDE = 20*24 TEXT_SCREEN_SIZE_BLOCK = 20*12 TEXT_SCREEN_DLIST_SIZE = 32 org $FFFA .word nmi .word boot .word irq org OS_CALL init: pha txa asl tax mwa os_vector_table,x OS_VECTOR pla jmp (OS_VECTOR) boot: lda #0 sta VSTATUS sta CHRONI_ENABLED ; init interrupt vectors ldx #0 copy_vector: lda interrupt_vectors, x sta NMI_VECTOR, x inx cpx #$0C bne copy_vector mwa #0 CHARSET_START mwa #0 VCHARSET mwa #copy_params_charset COPY_PARAMS jsr copy_block_with_params mwa #copy_params_pal_atari COPY_PARAMS jsr copy_block_with_params mwa #copy_params_pal_spectrum COPY_PARAMS jsr copy_block_with_params lda #$ff jsr set_video_mode lda #1 sta CHRONI_ENABLED lda VSTATUS ora #VSTATUS_EN_INTS sta VSTATUS jmp BOOTADDR interrupt_vectors: .word nmi_os .word irq_os .word hblank_os .word vblank_os .word hblank_user .word vblank_user nmi_os: cld bit VSTATUS bvc nmi_check_vblank jmp (HBLANK_VECTOR) nmi_check_vblank: bpl nmi_done jmp (VBLANK_VECTOR) nmi_done: rti irq_os: rti hblank_os: jsr call_hblank_user rti vblank_os: pha adw FRAMECOUNT #1 lda CHRONI_ENABLED beq set_chroni_disabled lda VSTATUS ora #VSTATUS_ENABLE sta VSTATUS bne chroni_enabled_set set_chroni_disabled: lda VSTATUS and #($FF - VSTATUS_ENABLE) sta VSTATUS chroni_enabled_set: jsr call_vblank_user pla rti vblank_user: rts hblank_user: rts call_vblank_user: jmp (VBLANK_VECTOR_USER) call_hblank_user: jmp (HBLANK_VECTOR_USER) set_video_mode: pha jsr set_video_disabled pla cmp #$ff beq set_video_mode_off jmp set_video_mode_std rts set_video_mode_off: ldx #0 lda #112 create_dl_mode_off: sta VRAM_SCREEN, x inx cpx #24 bne create_dl_mode_off lda #$41 sta VRAM_SCREEN, x jmp set_video_mode_dl os_vector_table .word set_video_mode .word copy_block .word copy_block_with_params .word mem_set_bytes .word ram2vram .word vram2ram .word vram_set_bytes .word keyb_poll .word storage_dir_open .word storage_dir_read .word storage_dir_close .word storage_file_open .word storage_file_read_byte .word storage_file_read_block .word storage_file_close copy_params_charset: .word charset, VRAM_CHARSET, CHARSET_SIZE copy_params_pal_atari: .word atari_palette_ntsc, VRAM_PAL_ATARI, PALETTE_SIZE copy_params_pal_spectrum: .word spectrum_palette, VRAM_PAL_ZX, PALETTE_SIZE copy_block_with_params: ldy #5 copy_block_params: lda (COPY_PARAMS), y sta SRC_ADDR, y dey bpl copy_block_params copy_block: ldy #0 copy_block_short: lda (SRC_ADDR), y sta (DST_ADDR), y iny cpy SIZE bne copy_block_short inc SRC_ADDR+1 inc DST_ADDR+1 copy_skip_short: lda SIZE+1 beq copy_block_end dec SIZE+1 jmp copy_block_short copy_block_end rts mem_set_bytes: ldy #0 ldx SIZE+1 beq mem_set_bytes_short mem_set_bytes_page: sta (DST_ADDR), y iny bne mem_set_bytes_page inc DST_ADDR+1 dex bne mem_set_bytes_page ldx SIZE beq mem_set_bytes_end mem_set_bytes_short: sta (DST_ADDR), y iny dex bne mem_set_bytes_short mem_set_bytes_end: rts .proc keyb_poll lda KEY_STATUS + 8 and #$3F sta KEY_META lda KEY_STATUS + 15 sta KEY_PRESSED rts .endp nmi: jmp (NMI_VECTOR) irq: jmp (IRQ_VECTOR) icl 'graphics.asm' icl 'storage.asm' charset: ins '../../../res/charset.bin' icl 'palette_atari_ntsc.asm' icl 'palette_spectrum.asm'
Save Namebadge GP.applescript
AlexanderGalen/applescripts
3
3525
tell application "QuarkXPress" tell document 1 set tool mode to drag mode --saves first so later we can close without saving save set docPath to file path as string set finishedPDFName to characters 1 thru ((length of docPath) - 4) of docPath & ".pdf" as string end tell set activeSpace to active layout space of project 1 try --export activeSpace in finishedPDFName as "PDF" PDF output style "PDF Proof" on error number 12 display dialog "File Already Exists. Overwrite?" tell application "Finder" delete file finishedPDFName end tell --export activeSpace in finishedPDFName as "PDF" PDF output style "PDF Proof" end try --loops through all layout spaces and saves out a group picture of each one. tell project 1 set allSpaces to layout spaces end tell repeat with thisSpace in allSpaces set thisName to name of thisSpace tell project 1 to set active layout space to layout space thisName set finishedGPName to characters 1 thru ((length of docPath) - 4) of docPath & "-" & thisName & ".gp" as string tell document 1 set selected of every generic box of layer "Default" to true set theSelection to selection if class of theSelection is group box then set grouped of theSelection to true set isGroupBox to true else set isGroupBox to false end if copy theSelection set {y1, x1, y2, x2} to bounds of theSelection as list set x1 to (coerce x1 to real) set x2 to (coerce x2 to real) set y1 to (coerce y1 to real) set y2 to (coerce y2 to real) set theWidth to x2 - x1 set theHeight to y2 - y1 set newDocProperties to {page height:theHeight, page width:theWidth} end tell make new document with properties newDocProperties tell document 1 activate paste if isGroupBox then set bounds of group box 1 to {0, 0, theHeight, theWidth} else set bounds of picture box 1 to {0, 0, theHeight, theWidth} end if save in finishedGPName close end tell end repeat tell document 1 close without saving end tell end tell
20/main.adb
Zeyu-Li/advent-of-code-2021
1
11867
<reponame>Zeyu-Li/advent-of-code-2021 -- run with `gnat make 20.adb && ./20` with Ada.Text_IO; with Ada.Integer_Text_IO; with Ada.Strings; with Ada.Strings.Fixed; use Ada.Text_IO; use Ada.Integer_Text_IO; use Ada.Strings; use Ada.Strings.Fixed; procedure Main is Fp : File_Type; File_Name : constant String := "20.in"; Dark : constant String := "#"; Lookup : constant String := "#.#....########.......##..##.#.#####...#..#..##.###.##.#..##.....#.#....#...####.#...#.##.#.#.#....###...#.##.#...#.#....#...#.#..#....###.##.....#.######.#.##.#..####..#...#.##.##...#....###..#.##..###..#..#.....#.###.##....##...#....###.#.......#.#####...#.##..###....##.#.##..##.######...##..##.#..###.###.....###...##.##.#..#...##..#.###..#..###..##...#...#.#..#..#..##....###...........###.#....#######...#####.#..##...#..#....##.##.#.###...####...#.#..#...#.##.#.#..#.###.#.#####.#.##.###.##..#..#...###.#."; Map : array(1..100) of String(1..100); count : Positive; counter : Integer := 0; size : Positive := 100; begin -- get file count := 1; Open (Fp, In_File, File_Name); while not End_Of_File (Fp) loop -- Put_Line (Get_Line(Fp)); Map(count) := Get_Line(Fp)(1..100); count := count + 1; -- Put_Line (Integer'Image( Integer'Value("16#" & Get_Line(Fp) & "#") )); end loop; Close (Fp); -- calculate for i in 1 .. 2 loop -- for each cell -- will flip twice so keep dark for i in 1 .. size loop counter := counter + Ada.Strings.Fixed.Count (Source => Map(i), Pattern => Dark); -- Put_Line (Map(i)); end loop; Put (i); end loop; -- count for i in 1 .. size loop counter := counter + Ada.Strings.Fixed.Count (Source => Map(i), Pattern => Dark); -- Put_Line (Map(i)); end loop; Put ("Answer: "); Put (counter); end Main;
programs/oeis/194/A194886.asm
karttu/loda
1
90328
<filename>programs/oeis/194/A194886.asm ; A194886: Units' digits of the nonzero decagonal numbers. ; 1,0,7,2,5,6,5,2,7,0,1,0,7,2,5,6,5,2,7,0,1,0,7,2,5,6,5,2,7,0,1,0,7,2,5,6,5,2,7,0,1,0,7,2,5,6,5,2,7,0,1,0,7,2,5,6,5,2,7,0,1,0,7,2,5,6,5,2,7,0,1,0,7,2,5,6,5,2,7,0,1,0,7,2,5,6 pow $0,2 mov $1,$0 add $1,7 mul $1,9 mod $1,10 sub $1,2
tools/scitools/conf/understand/ada/ada95/a-wticio.ads
brucegua/moocos
1
13810
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- A D A . W I D E _ T E X T _ I O . C O M P L E X _ I O -- -- -- -- S p e c -- -- -- -- $Revision: 2 $ -- -- -- -- Copyright (c) 1992,1993,1994 NYU, All Rights Reserved -- -- -- -- 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, 675 Mass Ave, Cambridge, MA 02139, USA. -- -- -- ------------------------------------------------------------------------------ with Ada.Numerics.Generic_Complex_Types; generic with package Complex_Types is new Ada.Numerics.Generic_Complex_Types (<>); package Ada.Wide_Text_IO.Complex_IO is use Complex_Types; Default_Fore : Field := 2; Default_Aft : Field := Real'Digits - 1; Default_Exp : Field := 3; procedure Get (File : in File_Type; Item : out Complex; Width : in Field := 0); procedure Get (Item : out Complex; Width : in Field := 0); procedure Put (File : in File_Type; Item : in Complex; Fore : in Field := Default_Fore; Aft : in Field := Default_Aft; Exp : in Field := Default_Exp); procedure Put (Item : in Complex; Fore : in Field := Default_Fore; Aft : in Field := Default_Aft; Exp : in Field := Default_Exp); procedure Get (From : in Wide_String; Item : out Complex; Last : out Positive); procedure Put (To : out Wide_String; Item : in Complex; Aft : in Field := Default_Aft; Exp : in Field := Default_Exp); end Ada.Wide_Text_IO.Complex_IO;
test/Fail/Issue2467.agda
cruhland/agda
1,989
3768
<reponame>cruhland/agda -- Andreas, 2017-02-20, issue #2467 -- Proper error on missing BUILTIN REWRITE {-# OPTIONS --rewriting #-} postulate A : Set {-# REWRITE A #-} -- Should fail with error like
Driver/Printer/Fax/CComRem/ccomremPDL.asm
steakknife/pcgeos
504
86933
<reponame>steakknife/pcgeos COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1993 -- All Rights Reserved PROJECT: MODULE: FILE: ccomremPDL.asm AUTHOR: <NAME>, Sep 28, 1993 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- Adam 9/28/93 Initial revision DESCRIPTION: Empty PDL functions that keep the spooler from doing too much work for us when we've copied the spool file over wholesale. $Id: ccomremPDL.asm,v 1.1 97/04/18 11:52:47 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FaxPrintGString proc far mov ax, GSRT_COMPLETE clc ret FaxPrintGString endp FaxSetPageTransform proc far clc ret FaxSetPageTransform endp
ada/euler1.adb
procrastiraptor/euler
1
27466
with Ada.Integer_Text_IO; procedure Euler1 is Sum: Integer := 0; begin for I in Integer range 1 .. 999 loop if I mod 3 = 0 or I mod 5 = 0 then Sum := Sum + I; end if; end loop; Ada.Integer_Text_IO.Put(Sum); end Euler1;
source/amf/uml/amf-umldi-uml_stereotype_property_value_labels.ads
svn2github/matreshka
24
18730
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, <NAME> <<EMAIL>> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ -- For showing Property values of Stereotypes applied to UML abstract syntax -- elements. ------------------------------------------------------------------------------ limited with AMF.UML.Elements; limited with AMF.UML.Properties; with AMF.UMLDI.UML_Labels; package AMF.UMLDI.UML_Stereotype_Property_Value_Labels is pragma Preelaborate; type UMLDI_UML_Stereotype_Property_Value_Label is limited interface and AMF.UMLDI.UML_Labels.UMLDI_UML_Label; type UMLDI_UML_Stereotype_Property_Value_Label_Access is access all UMLDI_UML_Stereotype_Property_Value_Label'Class; for UMLDI_UML_Stereotype_Property_Value_Label_Access'Storage_Size use 0; not overriding function Get_Model_Element (Self : not null access constant UMLDI_UML_Stereotype_Property_Value_Label) return AMF.UML.Properties.UML_Property_Access is abstract; -- Getter of UMLStereotypePropertyValueLabel::modelElement. -- -- A Property of a Stereotype applied to the stereotypedElement. not overriding procedure Set_Model_Element (Self : not null access UMLDI_UML_Stereotype_Property_Value_Label; To : AMF.UML.Properties.UML_Property_Access) is abstract; -- Setter of UMLStereotypePropertyValueLabel::modelElement. -- -- A Property of a Stereotype applied to the stereotypedElement. not overriding function Get_Stereotyped_Element (Self : not null access constant UMLDI_UML_Stereotype_Property_Value_Label) return AMF.UML.Elements.UML_Element_Access is abstract; -- Getter of UMLStereotypePropertyValueLabel::stereotypedElement. -- -- Element to which a Stereotype having the modelElement (Property) is -- applied. not overriding procedure Set_Stereotyped_Element (Self : not null access UMLDI_UML_Stereotype_Property_Value_Label; To : AMF.UML.Elements.UML_Element_Access) is abstract; -- Setter of UMLStereotypePropertyValueLabel::stereotypedElement. -- -- Element to which a Stereotype having the modelElement (Property) is -- applied. end AMF.UMLDI.UML_Stereotype_Property_Value_Labels;
grammar/WebIDLParser.g4
raefko/idl2js
6
4071
<reponame>raefko/idl2js parser grammar WebIDLParser; options { tokenVocab=WebIDLLexer; } webIDL : definitions? EOF ; definitions : extendedDefinition+ ; extendedDefinition : extendedAttributeList? definition ; definition : callbackOrInterfaceOrMixin | namespace | partial | dictionary | enum_ | typedef | includesStatement ; callbackOrInterfaceOrMixin : CALLBACK callbackRestOrInterface | INTERFACE interfaceOrMixin ; interfaceOrMixin : interfaceRest | mixinRest ; interfaceRest : IDENTIFIER inheritance? LEFT_BRACE interfaceMembers* RIGHT_BRACE SEMI ; partial : PARTIAL INTERFACE partialInterfaceOrPartialMixin ; partialInterfaceOrPartialMixin : partialInterfaceRest | mixinRest ; partialInterfaceRest : IDENTIFIER LEFT_BRACE partialInterfaceMembers* RIGHT_BRACE SEMI ; interfaceMembers : extendedAttributeList? interfaceMember ; interfaceMember : partialInterfaceMember | constructor ; partialInterfaceMembers : extendedAttributeList? partialInterfaceMember ; partialInterfaceMember : const_ | operation | stringifier | staticMember | iterable | readOnlyMember | readWriteAttribute | readWriteMaplike | readWriteSetlike | inheritAttribute ; inheritance : COLON IDENTIFIER ; mixinRest : MIXIN IDENTIFIER LEFT_BRACE mixinMembers* RIGHT_BRACE SEMI ; mixinMembers : extendedAttributeList? mixinMember ; mixinMember : const_ | regularOperation | stringifier | READONLY? attributeRest ; includesStatement : target=IDENTIFIER INCLUDES includes=IDENTIFIER SEMI ; callbackRestOrInterface : callbackRest | INTERFACE IDENTIFIER LEFT_BRACE callbackInterfaceMembers* RIGHT_BRACE SEMI ; callbackInterfaceMembers : extendedAttributeList? callbackInterfaceMember ; callbackInterfaceMember : const_ | regularOperation ; const_ : CONST constType IDENTIFIER EQUAL_SYMBOL constValue SEMI ; constValue : booleanLiteral | floatLiteral | IntegerLiteral ; readOnlyMember : READONLY readOnlyMemberRest ; readOnlyMemberRest : attributeRest | maplikeRest | setlikeRest ; readWriteAttribute : attributeRest ; inheritAttribute : INHERIT attributeRest ; attributeRest : ATTRIBUTE typeWithExtendedAttributes attributeName SEMI ; attributeName : attributeNameKeyword=(ASYNC | REQUIRED) | IDENTIFIER ; defaultValue : constValue | StringLiteral | LEFT_BRACKET RIGHT_BRACKET | LEFT_BRACE RIGHT_BRACE | NULL ; operation : special=(GETTER | SETTER | DELETER)? regularOperation ; regularOperation : returnType operationRest ; operationRest : operationName? LEFT_PAREN argumentList? RIGHT_PAREN SEMI ; operationName : operationNameKeyword | IDENTIFIER ; operationNameKeyword : INCLUDES ; argumentList : argument (COMMA argument)* ; argument : extendedAttributeList? argumentRest ; argumentRest : OPTIONAL typeWithExtendedAttributes argumentName default_? | type_ ELLIPSIS? argumentName ; argumentName : argumentNameKeyword | IDENTIFIER ; constructor : CONSTRUCTOR LEFT_PAREN argumentList? RIGHT_PAREN SEMI ; stringifier : STRINGIFIER (stringifierRest | SEMI) ; stringifierRest : READONLY? attributeRest | regularOperation ; staticMember : STATIC staticMemberRest ; staticMemberRest : READONLY? attributeRest | regularOperation ; iterable : ITERABLE LEFT_ANGLE typeWithExtendedAttributes (COMMA typeWithExtendedAttributes)? RIGHT_ANGLE SEMI | ASYNC ITERABLE LEFT_ANGLE typeWithExtendedAttributes (COMMA typeWithExtendedAttributes)? RIGHT_ANGLE optionalArgumentList? SEMI ; optionalArgumentList : LEFT_PAREN argumentList? RIGHT_PAREN ; readWriteMaplike : maplikeRest ; maplikeRest : READONLY? MAPLIKE LEFT_ANGLE typeWithExtendedAttributes COMMA typeWithExtendedAttributes RIGHT_ANGLE SEMI ; readWriteSetlike : setlikeRest ; setlikeRest : READONLY? SETLIKE LEFT_ANGLE typeWithExtendedAttributes RIGHT_ANGLE SEMI ; namespace : PARTIAL? NAMESPACE IDENTIFIER LEFT_BRACE namespaceMembers* RIGHT_BRACE SEMI ; namespaceMembers : extendedAttributeList? namespaceMember ; namespaceMember : regularOperation | READONLY attributeRest ; dictionary : DICTIONARY IDENTIFIER inheritance? LEFT_BRACE dictionaryMembers* RIGHT_BRACE SEMI | PARTIAL DICTIONARY IDENTIFIER LEFT_BRACE dictionaryMembers* RIGHT_BRACE SEMI ; dictionaryMembers : extendedAttributeList? dictionaryMember ; dictionaryMember : REQUIRED typeWithExtendedAttributes IDENTIFIER SEMI | type_ IDENTIFIER default_? SEMI ; default_ : EQUAL_SYMBOL defaultValue ; enum_ : ENUM IDENTIFIER LEFT_BRACE StringLiteral (COMMA StringLiteral?)* RIGHT_BRACE SEMI ; callbackRest : IDENTIFIER EQUAL_SYMBOL returnType LEFT_PAREN argumentList? RIGHT_PAREN SEMI ; typedef : TYPEDEF typeWithExtendedAttributes IDENTIFIER SEMI ; type_ : singleType | unionType null_? ; typeWithExtendedAttributes : extendedAttributeList? type_ ; extendedAttributeList : LEFT_BRACKET extendedAttribute (COMMA extendedAttribute)* RIGHT_BRACKET ; extendedAttribute : name=IDENTIFIER #extendedAttributeNoArgs | name=IDENTIFIER EQUAL_SYMBOL LEFT_PAREN identifierList RIGHT_PAREN #extendedAttributeIdentList | name=IDENTIFIER EQUAL_SYMBOL rhs=IDENTIFIER LEFT_PAREN argumentList RIGHT_PAREN #extendedAttributeNamedArgList | name=IDENTIFIER EQUAL_SYMBOL rhs=identifier #extendedAttributeIdent | name=IDENTIFIER LEFT_PAREN argumentList RIGHT_PAREN #extendedAttributeArgList ; identifierList : identifier (COMMA identifier)* ; identifier : other ; returnType : type_ | VOID ; singleType : distinguishableType null_? | genericType null_? | promiseType | ANY ; unionType : LEFT_PAREN unionMemberType (OR unionMemberType)+ RIGHT_PAREN ; unionMemberType : extendedAttributeList? distinguishableType null_? | extendedAttributeList? genericType null_? | unionType null_? ; genericType : generic=(SEQUENCE | FROZEN_ARRAY | OBSERVABLE_ARRAY) LEFT_ANGLE typeWithExtendedAttributes RIGHT_ANGLE ; distinguishableType : primitiveType | stringType | bufferRelatedType | recordType | IDENTIFIER | OBJECT | SYMBOL ; primitiveType : unsignedIntegerType | unrestrictedFloatType | BOOLEAN | BYTE | OCTET ; constType : primitiveType | IDENTIFIER ; promiseType : PROMISE LEFT_ANGLE returnType RIGHT_ANGLE ; recordType : RECORD LEFT_ANGLE stringType COMMA typeWithExtendedAttributes RIGHT_ANGLE ; unrestrictedFloatType : UNRESTRICTED? floatType ; floatType : FLOAT | DOUBLE ; unsignedIntegerType : UNSIGNED? integerType ; integerType : SHORT | LONG LONG? ; stringType : BYTE_STRING | DOM_STRING | USV_STRING ; bufferRelatedType : ARRAY_BUFFER | DATA_VIEW | INT_8_ARRAY | INT_16_ARRAY | INT_32_ARRAY | UINT_8_ARRAY | UINT_16_ARRAY | UINT_32_ARRAY | UINT_8_CLAMPED_ARRAY | FLOAT_32_ARRAY | FLOAT_64_ARRAY ; booleanLiteral : TRUE | FALSE ; floatLiteral : DecimalLiteral | MINUS_INFINITY | INFINITY | NAN ; null_ : QUESTION_SYMBOL ; other : IntegerLiteral | DecimalLiteral | IDENTIFIER | StringLiteral | OTHER | MINUS | MINUS_INFINITY | DOT | ELLIPSIS | COLON | SEMI | LEFT_ANGLE | EQUAL_SYMBOL | RIGHT_ANGLE | QUESTION_SYMBOL | BYTE_STRING | DOM_STRING | FROZEN_ARRAY | INFINITY | NAN | OBSERVABLE_ARRAY | PROMISE | USV_STRING | ANY | BOOLEAN | BYTE | DOUBLE | FALSE | FLOAT | LONG | NULL | OBJECT | OCTET | OR | OPTIONAL | RECORD | SEQUENCE | SHORT | SYMBOL | TRUE | UNSIGNED | VOID | argumentNameKeyword | bufferRelatedType ; argumentNameKeyword : ASYNC | ATTRIBUTE | CALLBACK | CONST | CONSTRUCTOR | DELETER | DICTIONARY | ENUM | GETTER | INCLUDES | INHERIT | INTERFACE | ITERABLE | MAPLIKE | MIXIN | NAMESPACE | PARTIAL | READONLY | REQUIRED | SETLIKE | SETTER | STATIC | STRINGIFIER | TYPEDEF | UNRESTRICTED ;
src/ordt/parse/grammars/ExtParms.g4
prdwivedi/open-register-design-tool
157
5725
<filename>src/ordt/parse/grammars/ExtParms.g4<gh_stars>100-1000 // External parameter file grammar // // Copyright (c) 2016 Juniper Networks, Inc. All rights reserved. grammar ExtParms; import CommonExtParms; @header { package ordt.parse.parameters; }
TinyC/ch15/c02-hello-macro-nasm/hello.nasm
zh921/TinyC
0
103043
<gh_stars>0 %include "macro.inc" print "Hello world!" print "Hello again!" exit 0
asm/prch.asm
pedroreissantos/pepe
0
84144
<reponame>pedroreissantos/pepe ; PEPE gerado por 'lcc' (IST: prs 2005) ; 'rl' serve como frame-pointer e 'r0' como acumulador ; os registos 'r1' a 'r10' sao preservados nas chamadas PLACE 0 CALL main SWE 240 ; exit(code in r0) ; global main ; TEXT main: ; ncalls=1 PUSH r8 PUSH r9 PUSH r10 PUSH rl MOV rl, sp SUB sp, 2 MOV r10, -2 ADD r10, rl MOV r9,L2 MOV [r10],r9 JMP L4 L3: MOV r10, -2 ADD r10, rl MOV r10,[r10] MOV r9, -2 ADD r9, rl MOV r8,r10 ADD r8,1 MOV [r9],r8 MOVB r10, [r10] PUSH r10 CALL printch ADD sp,2 L4: MOV r10, -2 ADD r10, rl MOV r10,[r10] MOVB r10, [r10] CMP r10,0 JNE L3 MOV r0,0 L1: MOV sp, rl POP rl POP r8 POP r9 POP r10 RET ; extern printch ; RODATA L2: STRING "Era uma vez os tr", 234, "s porquinhos e um lobo Mau!", 10, 0
test/Succeed/Issue2255.agda
cruhland/agda
1,989
14469
<reponame>cruhland/agda<gh_stars>1000+ open import Agda.Builtin.Equality open import Agda.Builtin.Nat foo : Nat → (Nat → Nat) → Nat foo zero f = f zero foo (suc n) f = foo n λ n → f (suc n) fsuc : (Nat → Nat) → Nat → Nat fsuc f n = f (suc n) foo' : Nat → (Nat → Nat) → Nat foo' zero f = f zero foo' (suc n) f = foo' n (fsuc f) foo'' : Nat → (Nat → Nat) → Nat foo'' zero f = f zero foo'' (suc n) f = foo'' n λ { n → f (suc n) } test : foo 50000 (λ n → n) ≡ 50000 test = refl test' : foo' 50000 (λ n → n) ≡ 50000 test' = refl test'' : foo'' 50000 (λ n → n) ≡ 50000 test'' = refl
language/src/main/antlr4/com/guillermomolina/lazyscript/parser/LazyScriptParser.g4
guillermomolina/lazyscript
0
4745
/* * Copyright (c) 2012, 2018, <NAME>. All rights reserved. DO NOT ALTER OR REMOVE * COPYRIGHT NOTICES OR THIS FILE HEADER. * * The Universal Permissive License (UPL), Version 1.0 * * Subject to the condition set forth below, permission is hereby granted to any person obtaining a * copy of this software, associated documentation and/or data (collectively the "Software"), free * of charge and under any and all copyright rights in the Software, and any and all patent rights * owned or freely licensable by each licensor hereunder covering either (i) the unmodified Software * as contributed to or provided by such licensor, or (ii) the Larger Works (as defined below), to * deal in both * * (a) the Software, and * * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if one is included with * the Software each a "Larger Work" to which the Software is contributed by such licensors), * without restriction, including without limitation the rights to copy, create derivative works of, * display, perform, and distribute the Software and make, use, sell, offer for sale, import, * export, have made, and have sold the Software and the Larger Work(s), and to sublicense the * foregoing rights on either these or other terms. * * This license is subject to the following condition: * * The above copyright notice and either this complete permission notice or at a minimum a reference * to the UPL must be included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT * NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ parser grammar LazyScriptParser; options { tokenVocab = LazyScriptLexer; superClass = LSParserBase; } module: statement* EOF; statement: whileStatement | ifStatement | breakStatement | continueStatement | returnStatement | expressionStatement; whileStatement: WHILE LPAREN condition = expression RPAREN block; breakStatement: BREAK eos; continueStatement: CONTINUE eos; ifStatement: IF LPAREN condition = expression RPAREN then = block ( ELSE block )?; debuggerStatement: DEBUGGER eos; returnStatement: RETURN ({this.notEOL()}? expression)? eos; expressionStatement: {this.notLCURLYAndNotFUNCTION()}? expression eos; eos: SEMI | EOF | {this.eolAhead()}? | {this.rcurly()}?; expression: expression index | expression member | expression arguments | operator = SUB expression | expression operator = (MUL | DIV) expression | expression operator = (ADD | SUB) expression | expression operator = (LT | GT | LE | GE) expression | expression operator = (EQUAL | NOT_EQUAL) expression | expression operator = BITAND expression | expression operator = BITOR expression | expression operator = AND expression | expression operator = OR expression | <assoc = right> expression operator = ASSIGN expression | thisLiteral | identifier | nullLiteral | booleanLiteral | stringLiteral | numericLiteral | arrayLiteral | objectLiteral | functionLiteral | blockLiteral | parenExpression; index: LBRACK expression RBRACK; member: DOT identifier; thisLiteral: THIS; identifier: IDENTIFIER; parenExpression: LPAREN expression RPAREN; arguments: LPAREN argumentList? RPAREN; argumentList: expression (COMMA expression)*; nullLiteral: NULL; booleanLiteral: TRUE | FALSE; stringLiteral: STRING_LITERAL; numericLiteral: DECIMAL_LITERAL | DECIMAL_INTEGER_LITERAL | HEX_INTEGER_LITERAL | OCTAL_INTEGER_LITERAL | BINARY_INTEGER_LITERAL; arrayLiteral: LBRACK elementList RBRACK; elementList: COMMA* expression? (COMMA+ expression)* COMMA*; objectLiteral: LCURLY (propertyAssignment (COMMA propertyAssignment)*)? COMMA? RCURLY; propertyAssignment: propertyName COLON expression; propertyName: identifier | stringLiteral | numericLiteral; functionLiteral: FUNCTION identifier LPAREN parameterList? RPAREN block; blockLiteral: LPAREN parameterList? RPAREN ARROW block; parameterList: identifier ( COMMA identifier)*; block: LCURLY statement* RCURLY;
libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sccz80/mul2_fastcall.asm
ahjelm/z88dk
640
179656
SECTION code_fp_am9511 PUBLIC mul2_fastcall EXTERN asm_am9511_fmul2_fastcall defc mul2_fastcall = asm_am9511_fmul2_fastcall ; SDCC bridge for Classic IF __CLASSIC PUBLIC _mul2_fastcall defc _mul2_fastcall = asm_am9511_fmul2_fastcall ENDIF
programs/oeis/141/A141325.asm
karttu/loda
0
14002
<filename>programs/oeis/141/A141325.asm ; A141325: a(n) = A000045(n) + A131531(n+3). ; 1,1,1,1,3,5,9,13,21,33,55,89,145,233,377,609,987,1597,2585,4181,6765,10945,17711,28657,46369,75025,121393,196417,317811,514229,832041,1346269,2178309,3524577,5702887,9227465,14930353,24157817,39088169,63245985,102334155,165580141,267914297,433494437,701408733,1134903169,1836311903,2971215073,4807526977,7778742049,12586269025,20365011073,32951280099,53316291173,86267571273,139583862445,225851433717,365435296161,591286729879,956722026041,1548008755921,2504730781961,4052739537881,6557470319841,10610209857723,17167680177565,27777890035289,44945570212853,72723460248141,117669030460993,190392490709135,308061521170129,498454011879265,806515533049393,1304969544928657,2111485077978049,3416454622906707,5527939700884757,8944394323791465 sub $0,1 cal $0,173434 ; a(n) = (A000045(n)-A173432(n))/2. mov $1,$0 mul $1,2 add $1,1
c/01-10-pretty/main.asm
willbr/gameboy-tests
0
103628
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 4.0.0 #11528 (MINGW64) ;-------------------------------------------------------- .module main .optsdcc -mgbz80 ;-------------------------------------------------------- ; Public variables in this module ;-------------------------------------------------------- .globl _main .globl _countdown_to_scroll .globl _cursor_position .globl _offset .globl _random_number .globl _init .globl _update_random_number .globl _print .globl _fill_vram .globl _wait_for_v_blank .globl _set_cursor ;-------------------------------------------------------- ; special function registers ;-------------------------------------------------------- G$rSCX$0_0$0 == 0x00d0 _rSCX = 0x00d0 G$LCD_STATUS$0_0$0 == 0xff41 _LCD_STATUS = 0xff41 G$LCD_SCROLL_Y$0_0$0 == 0xff42 _LCD_SCROLL_Y = 0xff42 G$LCD_Y_COORDINATE$0_0$0 == 0xff44 _LCD_Y_COORDINATE = 0xff44 G$LCD_BG_PALETTE$0_0$0 == 0xff47 _LCD_BG_PALETTE = 0xff47 ;-------------------------------------------------------- ; ram data ;-------------------------------------------------------- .area _DATA G$random_number$0_0$0==. _random_number:: .ds 1 G$offset$0_0$0==. _offset:: .ds 1 G$cursor_position$0_0$0==. _cursor_position:: .ds 1 G$countdown_to_scroll$0_0$0==. _countdown_to_scroll:: .ds 1 ;-------------------------------------------------------- ; absolute external ram data ;-------------------------------------------------------- .area _DABS (ABS) ;-------------------------------------------------------- ; global & static initialisations ;-------------------------------------------------------- .area _HOME .area _GSINIT .area _GSFINAL .area _GSINIT ;-------------------------------------------------------- ; Home ;-------------------------------------------------------- .area _HOME .area _HOME ;-------------------------------------------------------- ; code ;-------------------------------------------------------- .area _CODE G$main$0$0 = . .globl G$main$0$0 C$main.c$33$0_0$1 = . .globl C$main.c$33$0_0$1 ;main.c:33: void main() { ; --------------------------------- ; Function main ; --------------------------------- _main:: C$main.c$35$1_0$1 = . .globl C$main.c$35$1_0$1 ;main.c:35: init(); call _init C$main.c$37$1_0$1 = . .globl C$main.c$37$1_0$1 ;main.c:37: while (1) { 00102$: C$main.c$38$2_0$2 = . .globl C$main.c$38$2_0$2 ;main.c:38: update_random_number(); call _update_random_number C$main.c$40$2_0$2 = . .globl C$main.c$40$2_0$2 ;main.c:40: offset = random_number & 1; ld hl, #_random_number ld a, (hl) and a, #0x01 ld hl, #_offset C$main.c$41$2_0$2 = . .globl C$main.c$41$2_0$2 ;main.c:41: offset += 1; ld (hl),a inc a ld (hl), a C$main.c$43$2_0$2 = . .globl C$main.c$43$2_0$2 ;main.c:43: print(); call _print jr 00102$ C$main.c$45$1_0$1 = . .globl C$main.c$45$1_0$1 ;main.c:45: } C$main.c$45$1_0$1 = . .globl C$main.c$45$1_0$1 XG$main$0$0 = . .globl XG$main$0$0 ret G$init$0$0 = . .globl G$init$0$0 C$main.c$47$1_0$4 = . .globl C$main.c$47$1_0$4 ;main.c:47: void init() { ; --------------------------------- ; Function init ; --------------------------------- _init:: C$main.c$49$1_0$4 = . .globl C$main.c$49$1_0$4 ;main.c:49: } C$main.c$49$1_0$4 = . .globl C$main.c$49$1_0$4 XG$init$0$0 = . .globl XG$init$0$0 ret G$update_random_number$0$0 = . .globl G$update_random_number$0$0 C$main.c$51$1_0$6 = . .globl C$main.c$51$1_0$6 ;main.c:51: void update_random_number() { ; --------------------------------- ; Function update_random_number ; --------------------------------- _update_random_number:: C$main.c$53$1_0$6 = . .globl C$main.c$53$1_0$6 ;main.c:53: } C$main.c$53$1_0$6 = . .globl C$main.c$53$1_0$6 XG$update_random_number$0$0 = . .globl XG$update_random_number$0$0 ret G$print$0$0 = . .globl G$print$0$0 C$main.c$55$1_0$7 = . .globl C$main.c$55$1_0$7 ;main.c:55: void print() { ; --------------------------------- ; Function print ; --------------------------------- _print:: C$main.c$56$1_0$7 = . .globl C$main.c$56$1_0$7 ;main.c:56: fill_vram(); call _fill_vram C$main.c$57$1_0$7 = . .globl C$main.c$57$1_0$7 ;main.c:57: LCD_SCROLL_Y += 16; ldh a, (_LCD_SCROLL_Y+0) add a, #0x10 ldh (_LCD_SCROLL_Y+0),a C$main.c$58$1_0$7 = . .globl C$main.c$58$1_0$7 ;main.c:58: wait_for_v_blank(); call _wait_for_v_blank C$main.c$59$1_0$7 = . .globl C$main.c$59$1_0$7 ;main.c:59: set_cursor(); C$main.c$60$1_0$7 = . .globl C$main.c$60$1_0$7 ;main.c:60: } C$main.c$60$1_0$7 = . .globl C$main.c$60$1_0$7 XG$print$0$0 = . .globl XG$print$0$0 jp _set_cursor G$fill_vram$0$0 = . .globl G$fill_vram$0$0 C$main.c$62$1_0$9 = . .globl C$main.c$62$1_0$9 ;main.c:62: void fill_vram() { ; --------------------------------- ; Function fill_vram ; --------------------------------- _fill_vram:: C$main.c$64$1_0$9 = . .globl C$main.c$64$1_0$9 ;main.c:64: } C$main.c$64$1_0$9 = . .globl C$main.c$64$1_0$9 XG$fill_vram$0$0 = . .globl XG$fill_vram$0$0 ret G$wait_for_v_blank$0$0 = . .globl G$wait_for_v_blank$0$0 C$main.c$66$1_0$10 = . .globl C$main.c$66$1_0$10 ;main.c:66: void wait_for_v_blank() { ; --------------------------------- ; Function wait_for_v_blank ; --------------------------------- _wait_for_v_blank:: C$main.c$67$1_0$10 = . .globl C$main.c$67$1_0$10 ;main.c:67: while (LCD_Y_COORDINATE != 144) {}; 00101$: ldh a, (_LCD_Y_COORDINATE+0) sub a, #0x90 jr NZ,00101$ C$main.c$68$1_0$10 = . .globl C$main.c$68$1_0$10 ;main.c:68: } C$main.c$68$1_0$10 = . .globl C$main.c$68$1_0$10 XG$wait_for_v_blank$0$0 = . .globl XG$wait_for_v_blank$0$0 ret G$set_cursor$0$0 = . .globl G$set_cursor$0$0 C$main.c$70$1_0$13 = . .globl C$main.c$70$1_0$13 ;main.c:70: void set_cursor() { ; --------------------------------- ; Function set_cursor ; --------------------------------- _set_cursor:: C$main.c$72$1_0$13 = . .globl C$main.c$72$1_0$13 ;main.c:72: } C$main.c$72$1_0$13 = . .globl C$main.c$72$1_0$13 XG$set_cursor$0$0 = . .globl XG$set_cursor$0$0 ret .area _CODE .area _CABS (ABS)
test/link/uninit1/module1.asm
nigelperks/BasicAssembler
0
171145
IDEAL ASSUME CS:MAIN,DS:UDATA SEGMENT MAIN ORG 100h ENDS MAIN SEGMENT UDATA UNINIT PUBLIC EXTRN _bill: WORD ENDS UDATA SEGMENT MAIN start: mov ax, [_fred] mov dx, [_bill] mov si, OFFSET _fred mov di, OFFSET _bill int 20h ENDS MAIN SEGMENT UDATA UNINIT PUBLIC _fred DW ? ENDS UDATA END start
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-exextr.adb
orb-zhuchen/Orb
0
20376
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ADA.EXCEPTIONS.EXCEPTION_TRACES -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2019, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 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. -- -- -- ------------------------------------------------------------------------------ with Ada.Unchecked_Conversion; pragma Warnings (Off); with Ada.Exceptions.Last_Chance_Handler; pragma Warnings (On); -- Bring last chance handler into closure separate (Ada.Exceptions) package body Exception_Traces is Nline : constant String := String'(1 => ASCII.LF); -- Convenient shortcut type Exception_Action is access procedure (E : Exception_Occurrence); Global_Action : Exception_Action := null; pragma Export (Ada, Global_Action, "__gnat_exception_actions_global_action"); -- Global action, executed whenever an exception is raised. Changing the -- export name must be coordinated with code in g-excact.adb. Raise_Hook_Initialized : Boolean := False; pragma Export (Ada, Raise_Hook_Initialized, "__gnat_exception_actions_initialized"); procedure Last_Chance_Handler (Except : Exception_Occurrence); pragma Import (C, Last_Chance_Handler, "__gnat_last_chance_handler"); pragma No_Return (Last_Chance_Handler); -- Users can replace the default version of this routine, -- Ada.Exceptions.Last_Chance_Handler. function To_Action is new Ada.Unchecked_Conversion (Raise_Action, Exception_Action); ----------------------- -- Local Subprograms -- ----------------------- procedure Notify_Exception (Excep : EOA; Is_Unhandled : Boolean); -- Factorizes the common processing for Notify_Handled_Exception and -- Notify_Unhandled_Exception. Is_Unhandled is set to True only in the -- latter case because Notify_Handled_Exception may be called for an -- actually unhandled occurrence in the Front-End-SJLJ case. ---------------------- -- Notify_Exception -- ---------------------- procedure Notify_Exception (Excep : EOA; Is_Unhandled : Boolean) is begin -- Output the exception information required by the Exception_Trace -- configuration. Take care not to output information about internal -- exceptions. if not Excep.Id.Not_Handled_By_Others and then (Exception_Trace = Every_Raise or else (Is_Unhandled and then (Exception_Trace = Unhandled_Raise or else Exception_Trace = Unhandled_Raise_In_Main))) then -- Exception trace messages need to be protected when several tasks -- can issue them at the same time. Lock_Task.all; To_Stderr (Nline); if Exception_Trace /= Unhandled_Raise_In_Main then if Is_Unhandled then To_Stderr ("Unhandled "); end if; To_Stderr ("Exception raised"); To_Stderr (Nline); end if; To_Stderr (Exception_Information (Excep.all)); Unlock_Task.all; end if; -- Call the user-specific actions -- ??? We should presumably look at the reraise status here. if Raise_Hook_Initialized and then Exception_Data_Ptr (Excep.Id).Raise_Hook /= null then To_Action (Exception_Data_Ptr (Excep.Id).Raise_Hook) (Excep.all); end if; if Global_Action /= null then Global_Action (Excep.all); end if; end Notify_Exception; ------------------------------ -- Notify_Handled_Exception -- ------------------------------ procedure Notify_Handled_Exception (Excep : EOA) is begin Notify_Exception (Excep, Is_Unhandled => False); end Notify_Handled_Exception; -------------------------------- -- Notify_Unhandled_Exception -- -------------------------------- procedure Notify_Unhandled_Exception (Excep : EOA) is begin -- Check whether there is any termination handler to be executed for -- the environment task, and execute it if needed. Here we handle both -- the Abnormal and Unhandled_Exception task termination. Normal -- task termination routine is executed elsewhere (either in the -- Task_Wrapper or in the Adafinal routine for the environment task). Task_Termination_Handler.all (Excep.all); Notify_Exception (Excep, Is_Unhandled => True); Debug_Unhandled_Exception (SSL.Exception_Data_Ptr (Excep.Id)); end Notify_Unhandled_Exception; ----------------------------------- -- Unhandled_Exception_Terminate -- ----------------------------------- procedure Unhandled_Exception_Terminate (Excep : EOA) is Occ : Exception_Occurrence; -- This occurrence will be used to display a message after finalization. -- It is necessary to save a copy here, or else the designated value -- could be overwritten if an exception is raised during finalization -- (even if that exception is caught). The occurrence is saved on the -- stack to avoid dynamic allocation (if this exception is due to lack -- of space in the heap, we therefore avoid a second failure). We assume -- that there is enough room on the stack however. begin Save_Occurrence (Occ, Excep.all); Last_Chance_Handler (Occ); end Unhandled_Exception_Terminate; ------------------------------------ -- Handling GNAT.Exception_Traces -- ------------------------------------ -- The bulk of exception traces output is centralized in Notify_Exception, -- for both the Handled and Unhandled cases. Extra task specific output is -- triggered in the task wrapper for unhandled occurrences in tasks. It is -- not performed in this unit to avoid dependencies on the tasking units -- here. -- We used to rely on the output performed by Unhanded_Exception_Terminate -- for the case of an unhandled occurrence in the environment thread, and -- the task wrapper was responsible for the whole output in the tasking -- case. -- This initial scheme had a drawback: the output from Terminate only -- occurs after finalization is done, which means possibly never if some -- tasks keep hanging around. -- The first "presumably obvious" fix consists in moving the Terminate -- output before the finalization. It has not been retained because it -- introduces annoying changes in output orders when the finalization -- itself issues outputs, this also in "regular" cases not resorting to -- Exception_Traces. -- Today's solution has the advantage of simplicity and better isolates -- the Exception_Traces machinery. end Exception_Traces;
algorithms/election/ringlead.als
c-luu/alloy-specs
89
672
<reponame>c-luu/alloy-specs /* * Model of leader election on a ring * * Each process has a unique ID, IDs are ordered. * The algorithm elects the process with the highest * ID the leader, as follows. First, each process * sends its own ID to its right neighbor. * Then, whenever a process receives an ID, if the * ID is greater than the process' own ID it forwards * the ID to its right neighbor, otherwise does nothing. * When a process receives its own ID that process * is the leader. */ open util/boolean as bool open examples/algorithms/messaging as msg open util/ordering[msg/Node] as nodeOrd open util/ordering[msg/Tick] as tickOrd sig RingLeadNode extends msg/Node { rightNeighbor: msg/Node } fact DefineRing { (one msg/Node || (no n: msg/Node | n = n.rightNeighbor)) all n: msg/Node | msg/Node in n.^rightNeighbor } sig RingLeadMsgState extends msg/MsgState { id: msg/Node } sig MsgViz extends msg/Msg { vFrom: msg/Node, vTo: set msg/Node, vId: msg/Node } fact { MsgViz = msg/Msg vFrom = state.from vTo = state.to vId = state.id } sig RingLeadNodeState extends msg/NodeState { leader: Bool } pred RingLeadFirstTrans [self: msg/Node, pre, post: msg/NodeState, sees, reads, sends, needsToSend: set msg/Msg] { one sends # needsToSend = 1 sends.state.to = self.rightNeighbor sends.state.id = self post.leader = False } fact InitRingLeadState { all n: msg/Node | tickOrd/first.state[n].leader = False } pred RingLeadRestTrans [self: msg/Node, pre, post: msg/NodeState, sees, reads, sends, needsToSend: set msg/Msg] { RingLeadTransHelper[self, sees, reads, sends, needsToSend] post.leader = True iff (pre.leader = True || self in reads.state.id) } /** * we take any messages whose node ids are higher than ours, * and we forward them to the right neighbor. we drop * all other messages. if we get a message with our own * id, we're the leader. */ pred RingLeadTransHelper[self: msg/Node, sees, reads, sends, needsToSend: set msg/Msg] { reads = sees all received: reads | (received.state.id in nodeOrd/nexts[self]) => (one weSend: sends | (weSend.state.id = received.state.id && weSend.state.to = self.rightNeighbor)) all weSend: sends | { let mID = weSend.state.id | { mID in nodeOrd/nexts[self] mID in reads.state.id weSend.state.to = self.rightNeighbor } //weSend.sentBecauseOf = { received : reads | received.id = weSend.id } //all otherWeSend: sends - weSend | otherWeSend.id != weSend.id } # needsToSend = # { m: reads | m.state.id in nodeOrd/nexts[self] } } fact RingLeadTransitions { all n: msg/Node { all t: msg/Tick - tickOrd/last | { t = tickOrd/first => RingLeadFirstTrans[n, t.state[n], tickOrd/next[t].state[n], t.visible[n], t.read[n], t.sent[n], t.needsToSend[n]] else RingLeadRestTrans[n, t.state[n], tickOrd/next[t].state[n], t.visible[n], t.read[n], t.sent[n], t.needsToSend[n]] } // also constrain last tick RingLeadTransHelper[n, tickOrd/last.visible[n], tickOrd/last.read[n], tickOrd/last.sent[n], tickOrd/last.needsToSend[n]] } } assert OneLeader { all t: msg/Tick | lone n: msg/Node | t.state[n].leader = True } fact CleanupViz { RingLeadNode = msg/Node RingLeadMsgState = msg/MsgState RingLeadNodeState = msg/NodeState } pred SomeLeaderAtTick[t: msg/Tick] { some n: msg/Node | t.state[n].leader = True } pred NeverFindLeader { msg/Loop all t: msg/Tick | ! SomeLeaderAtTick[t] } assert Liveness { (msg/NoLostMessages && msg/NoMessageShortage) => ! NeverFindLeader } pred SomeLeader { some t: msg/Tick | SomeLeaderAtTick[t] } assert LeaderHighest { all t: msg/Tick, n: msg/Node | t.state[n].leader = True => n = nodeOrd/last } run NeverFindLeader for 1 but 3 msg/Tick, 2 Bool, 2 msg/NodeState expect 1 check Liveness for 3 but 6 msg/Msg, 2 Bool, 2 msg/NodeState expect 0 check OneLeader for 5 but 2 Bool, 2 msg/NodeState expect 0 run SomeLeader for 2 but 3 msg/Node, 5 msg/Msg, 5 msg/Tick, 5 msg/MsgState expect 1 check LeaderHighest for 3 but 2 msg/NodeState, 5 msg/Msg, 5 msg/MsgState, 5 msg/Tick expect 0
data/mapObjects/ceruleancity.asm
etdv-thevoid/pokemon-rgb-enhanced
1
161688
<reponame>etdv-thevoid/pokemon-rgb-enhanced CeruleanCityObject: db $f ; border block db $a ; warps db $b, $1b, $0, TRASHED_HOUSE db $f, $f, $0, CERULEAN_HOUSE_1 db $11, $13, $0, CERULEAN_POKECENTER db $13, $1e, $0, CERULEAN_GYM db $19, $d, $0, BIKE_SHOP db $19, $19, $0, CERULEAN_MART db $b, $4, $0, UNKNOWN_DUNGEON_1 db $9, $1b, $2, TRASHED_HOUSE db $b, $b, $1, CERULEAN_HOUSE_2 db $9, $b, $0, CERULEAN_HOUSE_2 db $6 ; signs db $13, $17, $c ; CeruleanCityText12 db $1d, $11, $d ; CeruleanCityText13 db $19, $1a, $e ; MartSignText db $11, $14, $f ; PokeCenterSignText db $19, $b, $10 ; CeruleanCityText16 db $15, $1b, $11 ; CeruleanCityText17 db $b ; objects object SPRITE_BLUE, $14, $2, STAY, DOWN, $1 ; person object SPRITE_ROCKET, $1e, $8, STAY, NONE, $2, OPP_ROCKET, $5 object SPRITE_BLACK_HAIR_BOY_1, $1f, $14, STAY, DOWN, $3 ; person object SPRITE_BLACK_HAIR_BOY_2, $f, $12, WALK, $1, $4 ; person object SPRITE_BLACK_HAIR_BOY_2, $9, $15, WALK, $2, $5 ; person object SPRITE_COP_GUARD, $1c, $c, STAY, DOWN, $6 ; person object SPRITE_LASS, $1d, $1a, STAY, LEFT, $7 ; person object SPRITE_SLOWBRO, $1c, $1a, STAY, DOWN, $8 ; person object SPRITE_LASS, $9, $1b, WALK, $2, $9 ; person object SPRITE_BLACK_HAIR_BOY_2, $4, $c, STAY, DOWN, $a ; person object SPRITE_COP_GUARD, $1b, $c, STAY, DOWN, $b ; person ; warp-to EVENT_DISP CERULEAN_CITY_WIDTH, $b, $1b ; TRASHED_HOUSE EVENT_DISP CERULEAN_CITY_WIDTH, $f, $f ; CERULEAN_HOUSE_1 EVENT_DISP CERULEAN_CITY_WIDTH, $11, $13 ; CERULEAN_POKECENTER EVENT_DISP CERULEAN_CITY_WIDTH, $13, $1e ; CERULEAN_GYM EVENT_DISP CERULEAN_CITY_WIDTH, $19, $d ; BIKE_SHOP EVENT_DISP CERULEAN_CITY_WIDTH, $19, $19 ; CERULEAN_MART EVENT_DISP CERULEAN_CITY_WIDTH, $b, $4 ; UNKNOWN_DUNGEON_1 EVENT_DISP CERULEAN_CITY_WIDTH, $9, $1b ; TRASHED_HOUSE EVENT_DISP CERULEAN_CITY_WIDTH, $b, $b ; CERULEAN_HOUSE_2 EVENT_DISP CERULEAN_CITY_WIDTH, $9, $b ; CERULEAN_HOUSE_2
orka/src/orka/implementation/orka-cameras-look_from_cameras.adb
onox/orka
52
14805
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <<EMAIL>> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. with Orka.Transforms.Doubles.Matrices; with Orka.Transforms.Doubles.Matrix_Conversions; package body Orka.Cameras.Look_From_Cameras is procedure Set_Orientation (Object : in out Look_From_Camera; Roll, Pitch, Yaw : Angle) is begin Object.Roll := Roll; Object.Pitch := Pitch; Object.Yaw := Yaw; end Set_Orientation; procedure Change_Orientation (Object : in out Look_From_Camera; Value : Vector4) is begin Object.Updater.Set (Value); end Change_Orientation; overriding procedure Update (Object : in out Look_From_Camera; Delta_Time : Duration) is Change : Vector4; use Orka.Transforms.Doubles.Vectors; begin Object.Updater.Get (Change); Object.Yaw := Normalize_Angle (Object.Yaw + Change (X) * Object.Scale (X)); Object.Pitch := Normalize_Angle (Object.Pitch + Change (Y) * Object.Scale (Y)); end Update; use Orka.Transforms.Doubles.Matrices; use Orka.Transforms.Doubles.Matrix_Conversions; overriding function View_Matrix (Object : Look_From_Camera) return Transforms.Matrix4 is (Convert (Ry (Object.Roll) * Rx (Object.Pitch) * Ry (Object.Yaw) * Object.Rotate_To_Up)); overriding function View_Matrix_Inverse (Object : Look_From_Camera) return Transforms.Matrix4 is (Convert (Transpose (Object.Rotate_To_Up) * Ry (-Object.Yaw) * Rx (-Object.Pitch) * Ry (-Object.Roll))); overriding function Create_Camera (Lens : Camera_Lens) return Look_From_Camera is begin return (Lens => Lens, others => <>); end Create_Camera; end Orka.Cameras.Look_From_Cameras;
src/TemporalOps/Common/Other.agda
DimaSamoz/temporal-type-systems
4
7519
<reponame>DimaSamoz/temporal-type-systems {- Other common operations and lemmas. -} module TemporalOps.Common.Other where open import Relation.Binary.HeterogeneousEquality as ≅ hiding (inspect) open import Relation.Binary.PropositionalEquality hiding (inspect) -- Time indexing (for clarity, synonym of function appliation at any level) _at_ : ∀ {a b} {A : Set a} {B : A → Set b} → ((x : A) → B x) → ((x : A) → B x) f at n = f n infixl 45 _at_ -- Inspect idiom data Singleton {a} {A : Set a} (x : A) : Set a where _with≡_ : (y : A) → x ≡ y → Singleton x inspect : ∀ {a} {A : Set a} (x : A) → Singleton x inspect x = x with≡ refl
prototyping/Luau/OpSem.agda
FreakingBarbarians/luau
1
3310
<gh_stars>1-10 module Luau.OpSem where open import Agda.Builtin.Equality using (_≡_) open import FFI.Data.Maybe using (just) open import Luau.Heap using (Heap; _≡_⊕_↦_; lookup; function_⟨_⟩_end) open import Luau.Substitution using (_[_/_]ᴮ) open import Luau.Syntax using (Expr; Stat; Block; nil; addr; var; function⟨_⟩_end; _$_; block_is_end; local_←_; _∙_; done; function_⟨_⟩_end; return) open import Luau.Value using (addr; val) data _⊢_⟶ᴮ_⊣_ : Heap → Block → Block → Heap → Set data _⊢_⟶ᴱ_⊣_ : Heap → Expr → Expr → Heap → Set data _⊢_⟶ᴱ_⊣_ where nil : ∀ {H} → ------------------- H ⊢ nil ⟶ᴱ nil ⊣ H function : ∀ {H H′ a x B} → H′ ≡ H ⊕ a ↦ (function "anon" ⟨ x ⟩ B end) → ------------------------------------------- H ⊢ (function⟨ x ⟩ B end) ⟶ᴱ (addr a) ⊣ H′ app : ∀ {H H′ M M′ N} → H ⊢ M ⟶ᴱ M′ ⊣ H′ → ----------------------------- H ⊢ (M $ N) ⟶ᴱ (M′ $ N) ⊣ H′ beta : ∀ {H M a f x B} → (lookup H a) ≡ just(function f ⟨ x ⟩ B end) → ----------------------------------------------------- H ⊢ (addr a $ M) ⟶ᴱ (block f is local x ← M ∙ B end) ⊣ H block : ∀ {H H′ B B′ b} → H ⊢ B ⟶ᴮ B′ ⊣ H′ → ---------------------------------------------------- H ⊢ (block b is B end) ⟶ᴱ (block b is B′ end) ⊣ H′ return : ∀ {H V B b} → -------------------------------------------------------- H ⊢ (block b is return (val V) ∙ B end) ⟶ᴱ (val V) ⊣ H done : ∀ {H b} → --------------------------------- H ⊢ (block b is done end) ⟶ᴱ nil ⊣ H data _⊢_⟶ᴮ_⊣_ where local : ∀ {H H′ x M M′ B} → H ⊢ M ⟶ᴱ M′ ⊣ H′ → ------------------------------------------------- H ⊢ (local x ← M ∙ B) ⟶ᴮ (local x ← M′ ∙ B) ⊣ H′ subst : ∀ {H x v B} → ------------------------------------------------- H ⊢ (local x ← val v ∙ B) ⟶ᴮ (B [ v / x ]ᴮ) ⊣ H function : ∀ {H H′ a f x B C} → H′ ≡ H ⊕ a ↦ (function f ⟨ x ⟩ C end) → -------------------------------------------------------------- H ⊢ (function f ⟨ x ⟩ C end ∙ B) ⟶ᴮ (B [ addr a / f ]ᴮ) ⊣ H′ return : ∀ {H H′ M M′ B} → H ⊢ M ⟶ᴱ M′ ⊣ H′ → -------------------------------------------- H ⊢ (return M ∙ B) ⟶ᴮ (return M′ ∙ B) ⊣ H′ data _⊢_⟶*_⊣_ : Heap → Block → Block → Heap → Set where refl : ∀ {H B} → ---------------- H ⊢ B ⟶* B ⊣ H step : ∀ {H H′ H″ B B′ B″} → H ⊢ B ⟶ᴮ B′ ⊣ H′ → H′ ⊢ B′ ⟶* B″ ⊣ H″ → ------------------ H ⊢ B ⟶* B″ ⊣ H″
release/src/router/gmp/source/mpn/alpha/lshift.asm
zhoutao0712/rtn11pb1
12
241908
<reponame>zhoutao0712/rtn11pb1 dnl Alpha mpn_lshift -- Shift a number left. dnl Copyright 1994, 1995, 2000, 2002, 2003 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Public License as published dnl by the Free Software Foundation; either version 3 of the License, or (at dnl your option) any later version. 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 Lesser General Public dnl License for more details. dnl You should have received a copy of the GNU Lesser General Public License dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. include(`../config.m4') C cycles/limb C EV4: 4.75 C EV5: 4 C EV6: 2 C INPUT PARAMETERS C rp r16 C up r17 C n r18 C cnt r19 ASM_START() PROLOGUE(mpn_lshift) s8addq r18,r17,r17 C make r17 point at end of s1 ldq r4,-8(r17) C load first limb subq r17,8,r17 subq r31,r19,r7 s8addq r18,r16,r16 C make r16 point at end of RES subq r18,1,r18 and r18,4-1,r20 C number of limbs in first loop srl r4,r7,r0 C compute function result beq r20,$L0 subq r18,r20,r18 ALIGN(8) $Loop0: ldq r3,-8(r17) subq r16,8,r16 subq r17,8,r17 subq r20,1,r20 sll r4,r19,r5 srl r3,r7,r6 bis r3,r3,r4 bis r5,r6,r8 stq r8,0(r16) bne r20,$Loop0 $L0: beq r18,$Lend ALIGN(8) $Loop: ldq r3,-8(r17) subq r16,32,r16 subq r18,4,r18 sll r4,r19,r5 srl r3,r7,r6 ldq r4,-16(r17) sll r3,r19,r1 bis r5,r6,r8 stq r8,24(r16) srl r4,r7,r2 ldq r3,-24(r17) sll r4,r19,r5 bis r1,r2,r8 stq r8,16(r16) srl r3,r7,r6 ldq r4,-32(r17) sll r3,r19,r1 bis r5,r6,r8 stq r8,8(r16) srl r4,r7,r2 subq r17,32,r17 bis r1,r2,r8 stq r8,0(r16) bgt r18,$Loop $Lend: sll r4,r19,r8 stq r8,-8(r16) ret r31,(r26),1 EPILOGUE(mpn_lshift) ASM_END()
library/fmGUI_ManageDatabase/fmGUI_ManageDb_ListOfTableNames.applescript
NYHTC/applescript-fm-helper
1
3769
<gh_stars>1-10 -- fmGUI_ManageDb_ListOfTableNames({stayOpen:false}) -- <NAME>, NYHTC -- Return a list of FileMaker table names. (* HISTORY: 1.2.1 - 2017-11-02 ( eshagdar ): narrowed scope of sysEvents. added stayOpen param. 1.2 - ONLY return tables that are in FileMaker (no SQL shadow tables) 1.1 - 1.0 - created REQUIRES: fmGUI_ManageDb_GoToTab_Tables fmGUI_ManageDB_Save *) on run fmGUI_ManageDb_ListOfTableNames({}) end run -------------------- -- START OF CODE -------------------- on fmGUI_ManageDb_ListOfTableNames(prefs) -- version 1.2.1 try set defaultPrefs to {stayOpen:false} set prefs to prefs & defaultPrefs fmGUI_ManageDb_GoToTab_Tables({}) tell application "System Events" tell application process "FileMaker Pro Advanced" set fmTableNames to value of static text 1 of (every row of (table 1 of scroll area 1 of tab group 1 of window 1) whose value of static text 2 is "FileMaker") end tell end tell if not stayOpen of prefs then fmGUI_ManageDB_Save({}) return fmTableNames on error errMsg number errNum error "unable to fmGUI_ManageDb_ListOfTableNames - " & errMsg number errNum end try end fmGUI_ManageDb_ListOfTableNames -------------------- -- END OF CODE -------------------- on fmGUI_ManageDb_GoToTab_Tables(prefs) tell application "htcLib" to fmGUI_ManageDb_GoToTab_Tables(prefs) end fmGUI_ManageDb_GoToTab_Tables on fmGUI_ManageDB_Save(prefs) tell application "htcLib" to fmGUI_ManageDB_Save(prefs) end fmGUI_ManageDB_Save
Source/Levels/L0212.asm
AbePralle/FGB
0
94881
<gh_stars>0 ; L0212.asm ; Generated 08.31.2000 by mlevel ; Modified 08.31.2000 by <NAME> INCLUDE "Source/Defs.inc" INCLUDE "Source/Levels.inc" ;--------------------------------------------------------------------- SECTION "Level0212Section",ROMX ;--------------------------------------------------------------------- L0212_Contents:: DW L0212_Load DW L0212_Init DW L0212_Check DW L0212_Map ;--------------------------------------------------------------------- ; Load ;--------------------------------------------------------------------- L0212_Load: DW ((L0212_LoadFinished - L0212_Load2)) ;size L0212_Load2: call ParseMap ret L0212_LoadFinished: ;--------------------------------------------------------------------- ; Map ;--------------------------------------------------------------------- L0212_Map: INCBIN "Data/Levels/L0212_sunsethouseup.lvl" ;--------------------------------------------------------------------- ; Init ;--------------------------------------------------------------------- L0212_Init: DW ((L0212_InitFinished - L0212_Init2)) ;size L0212_Init2: ret L0212_InitFinished: ;--------------------------------------------------------------------- ; Check ;--------------------------------------------------------------------- L0212_Check: DW ((L0212_CheckFinished - L0212_Check2)) ;size L0212_Check2: ret L0212_CheckFinished: PRINT "0212 Script Sizes (Load/Init/Check) (of $500): " PRINT (L0212_LoadFinished - L0212_Load2) PRINT " / " PRINT (L0212_InitFinished - L0212_Init2) PRINT " / " PRINT (L0212_CheckFinished - L0212_Check2) PRINT "\n"
Binding_Zstandard/zstandard-functions-streaming_decompression.ads
jrmarino/zstd-ada
13
22011
<gh_stars>10-100 -- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Ada.Streams; package Zstandard.Functions.Streaming_Decompression is package STR renames Ada.Streams; Output_container_size : constant Thin.IC.size_t := Thin.ZSTD_DStreamOutSize; subtype Output_Data_Container is STR.Stream_Element_Array (1 .. STR.Stream_Element_Offset (Output_container_size)); type Decompressor is tagged private; -- This is the initialization procedure. -- The input stream and output buffer capacity are externally provided procedure Initialize (mechanism : out Decompressor; input_stream : not null access STR.Root_Stream_Type'Class); -- Decompress data as each input chunk is received -- if "complete" then the decompression is complete (don't call procedure any more) -- The "last_element" is the end of the container range (e.g. 1 .. last_element) procedure Decompress_Data (mechanism : Decompressor; complete : out Boolean; output_data : out Output_Data_Container; last_element : out Natural); streaming_decompression_initialization : exception; streaming_decompression_error : exception; private Recommended_Chunk_Size : constant Thin.IC.size_t := Thin.ZSTD_DStreamInSize; type Decompressor is tagged record source_stream : access STR.Root_Stream_Type'Class; zstd_stream : Thin.ZSTD_DStream_ptr := Thin.Null_DStream_pointer; end record; function convert_to_stream_array (char_data : Thin.IC.char_array; number_characters : Thin.IC.size_t) return STR.Stream_Element_Array; function convert_to_char_array (stream_data : STR.Stream_Element_Array; output_array_size : Thin.IC.size_t) return Thin.IC.char_array; end Zstandard.Functions.Streaming_Decompression;
llvm-gcc-4.2-2.9/gcc/ada/s-taenca.adb
vidkidz/crossbridge
1
11026
<filename>llvm-gcc-4.2-2.9/gcc/ada/s-taenca.adb<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . T A S K I N G . E N T R Y _ C A L L S -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2005, Free Software Foundation, Inc. -- -- -- -- GNARL is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNARL is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNARL; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNARL was developed by the GNARL team at Florida State University. -- -- Extensive contributions were provided by Ada Core Technologies, Inc. -- -- -- ------------------------------------------------------------------------------ with System.Task_Primitives.Operations; -- used for STPO.Write_Lock -- Unlock -- STPO.Get_Priority -- Sleep -- Timed_Sleep with System.Tasking.Initialization; -- used for Change_Base_Priority -- Dynamic_Priority_Support -- Defer_Abort/Undefer_Abort with System.Tasking.Protected_Objects.Entries; -- used for To_Protection with System.Tasking.Protected_Objects.Operations; -- used for PO_Service_Entries with System.Tasking.Queuing; -- used for Requeue_Call_With_New_Prio -- Onqueue -- Dequeue_Call with System.Tasking.Utilities; -- used for Exit_One_ATC_Level with System.Parameters; -- used for Single_Lock -- Runtime_Traces with System.Traces; -- used for Send_Trace_Info package body System.Tasking.Entry_Calls is package STPO renames System.Task_Primitives.Operations; use Parameters; use Task_Primitives; use Protected_Objects.Entries; use Protected_Objects.Operations; use System.Traces; -- DO NOT use Protected_Objects.Lock or Protected_Objects.Unlock -- internally. Those operations will raise Program_Error, which -- we are not prepared to handle inside the RTS. Instead, use -- System.Task_Primitives lock operations directly on Protection.L. ----------------------- -- Local Subprograms -- ----------------------- procedure Lock_Server (Entry_Call : Entry_Call_Link); -- This locks the server targeted by Entry_Call. -- -- This may be a task or a protected object, -- depending on the target of the original call or any subsequent -- requeues. -- -- This routine is needed because the field specifying the server -- for this call must be protected by the server's mutex. If it were -- protected by the caller's mutex, accessing the server's queues would -- require locking the caller to get the server, locking the server, -- and then accessing the queues. This involves holding two ATCB -- locks at once, something which we can guarantee that it will always -- be done in the same order, or locking a protected object while we -- hold an ATCB lock, something which is not permitted. Since -- the server cannot be obtained reliably, it must be obtained unreliably -- and then checked again once it has been locked. -- -- If Single_Lock and server is a PO, release RTS_Lock. -- -- This should only be called by the Entry_Call.Self. -- It should be holding no other ATCB locks at the time. procedure Unlock_Server (Entry_Call : Entry_Call_Link); -- STPO.Unlock the server targeted by Entry_Call. The server must -- be locked before calling this. -- -- If Single_Lock and server is a PO, take RTS_Lock on exit. procedure Unlock_And_Update_Server (Self_ID : Task_Id; Entry_Call : Entry_Call_Link); -- Similar to Unlock_Server, but services entry calls if the -- server is a protected object. -- -- If Single_Lock and server is a PO, take RTS_Lock on exit. procedure Check_Pending_Actions_For_Entry_Call (Self_ID : Task_Id; Entry_Call : Entry_Call_Link); -- This procedure performs priority change of a queued call and -- dequeuing of an entry call when the call is cancelled. -- If the call is dequeued the state should be set to Cancelled. -- Call only with abort deferred and holding lock of Self_ID. This -- is a bit of common code for all entry calls. The effect is to do -- any deferred base priority change operation, in case some other -- task called STPO.Set_Priority while the current task had abort deferred, -- and to dequeue the call if the call has been aborted. procedure Poll_Base_Priority_Change_At_Entry_Call (Self_ID : Task_Id; Entry_Call : Entry_Call_Link); pragma Inline (Poll_Base_Priority_Change_At_Entry_Call); -- A specialized version of Poll_Base_Priority_Change, -- that does the optional entry queue reordering. -- Has to be called with the Self_ID's ATCB write-locked. -- May temporariliy release the lock. --------------------- -- Check_Exception -- --------------------- procedure Check_Exception (Self_ID : Task_Id; Entry_Call : Entry_Call_Link) is pragma Warnings (Off, Self_ID); use type Ada.Exceptions.Exception_Id; procedure Internal_Raise (X : Ada.Exceptions.Exception_Id); pragma Import (C, Internal_Raise, "__gnat_raise_with_msg"); E : constant Ada.Exceptions.Exception_Id := Entry_Call.Exception_To_Raise; begin -- pragma Assert (Self_ID.Deferral_Level = 0); -- The above may be useful for debugging, but the Florist packages -- contain critical sections that defer abort and then do entry calls, -- which causes the above Assert to trip. if E /= Ada.Exceptions.Null_Id then Internal_Raise (E); end if; end Check_Exception; ------------------------------------------ -- Check_Pending_Actions_For_Entry_Call -- ------------------------------------------ procedure Check_Pending_Actions_For_Entry_Call (Self_ID : Task_Id; Entry_Call : Entry_Call_Link) is begin pragma Assert (Self_ID = Entry_Call.Self); Poll_Base_Priority_Change_At_Entry_Call (Self_ID, Entry_Call); if Self_ID.Pending_ATC_Level < Self_ID.ATC_Nesting_Level and then Entry_Call.State = Now_Abortable then STPO.Unlock (Self_ID); Lock_Server (Entry_Call); if Queuing.Onqueue (Entry_Call) and then Entry_Call.State = Now_Abortable then Queuing.Dequeue_Call (Entry_Call); if Entry_Call.Cancellation_Attempted then Entry_Call.State := Cancelled; else Entry_Call.State := Done; end if; Unlock_And_Update_Server (Self_ID, Entry_Call); else Unlock_Server (Entry_Call); end if; STPO.Write_Lock (Self_ID); end if; end Check_Pending_Actions_For_Entry_Call; ----------------- -- Lock_Server -- ----------------- procedure Lock_Server (Entry_Call : Entry_Call_Link) is Test_Task : Task_Id; Test_PO : Protection_Entries_Access; Ceiling_Violation : Boolean; Failures : Integer := 0; begin Test_Task := Entry_Call.Called_Task; loop if Test_Task = null then -- Entry_Call was queued on a protected object, -- or in transition, when we last fetched Test_Task. Test_PO := To_Protection (Entry_Call.Called_PO); if Test_PO = null then -- We had very bad luck, interleaving with TWO different -- requeue operations. Go around the loop and try again. if Single_Lock then STPO.Unlock_RTS; STPO.Yield; STPO.Lock_RTS; else STPO.Yield; end if; else if Single_Lock then STPO.Unlock_RTS; end if; Lock_Entries (Test_PO, Ceiling_Violation); -- ???? -- The following code allows Lock_Server to be called -- when cancelling a call, to allow for the possibility -- that the priority of the caller has been raised -- beyond that of the protected entry call by -- Ada.Dynamic_Priorities.Set_Priority. -- If the current task has a higher priority than the ceiling -- of the protected object, temporarily lower it. It will -- be reset in Unlock. if Ceiling_Violation then declare Current_Task : constant Task_Id := STPO.Self; Old_Base_Priority : System.Any_Priority; begin if Single_Lock then STPO.Lock_RTS; end if; STPO.Write_Lock (Current_Task); Old_Base_Priority := Current_Task.Common.Base_Priority; Current_Task.New_Base_Priority := Test_PO.Ceiling; System.Tasking.Initialization.Change_Base_Priority (Current_Task); STPO.Unlock (Current_Task); if Single_Lock then STPO.Unlock_RTS; end if; -- Following lock should not fail Lock_Entries (Test_PO); Test_PO.Old_Base_Priority := Old_Base_Priority; Test_PO.Pending_Action := True; end; end if; exit when To_Address (Test_PO) = Entry_Call.Called_PO; Unlock_Entries (Test_PO); if Single_Lock then STPO.Lock_RTS; end if; end if; else STPO.Write_Lock (Test_Task); exit when Test_Task = Entry_Call.Called_Task; STPO.Unlock (Test_Task); end if; Test_Task := Entry_Call.Called_Task; Failures := Failures + 1; pragma Assert (Failures <= 5); end loop; end Lock_Server; --------------------------------------------- -- Poll_Base_Priority_Change_At_Entry_Call -- --------------------------------------------- procedure Poll_Base_Priority_Change_At_Entry_Call (Self_ID : Task_Id; Entry_Call : Entry_Call_Link) is begin if Dynamic_Priority_Support and then Self_ID.Pending_Priority_Change then -- Check for ceiling violations ??? Self_ID.Pending_Priority_Change := False; if Self_ID.Common.Base_Priority = Self_ID.New_Base_Priority then if Single_Lock then STPO.Unlock_RTS; STPO.Yield; STPO.Lock_RTS; else STPO.Unlock (Self_ID); STPO.Yield; STPO.Write_Lock (Self_ID); end if; else if Self_ID.Common.Base_Priority < Self_ID.New_Base_Priority then -- Raising priority Self_ID.Common.Base_Priority := Self_ID.New_Base_Priority; STPO.Set_Priority (Self_ID, Self_ID.Common.Base_Priority); else -- Lowering priority Self_ID.Common.Base_Priority := Self_ID.New_Base_Priority; STPO.Set_Priority (Self_ID, Self_ID.Common.Base_Priority); if Single_Lock then STPO.Unlock_RTS; STPO.Yield; STPO.Lock_RTS; else STPO.Unlock (Self_ID); STPO.Yield; STPO.Write_Lock (Self_ID); end if; end if; end if; -- Requeue the entry call at the new priority. -- We need to requeue even if the new priority is the same than -- the previous (see ACVC cxd4006). STPO.Unlock (Self_ID); Lock_Server (Entry_Call); Queuing.Requeue_Call_With_New_Prio (Entry_Call, STPO.Get_Priority (Self_ID)); Unlock_And_Update_Server (Self_ID, Entry_Call); STPO.Write_Lock (Self_ID); end if; end Poll_Base_Priority_Change_At_Entry_Call; -------------------- -- Reset_Priority -- -------------------- procedure Reset_Priority (Acceptor : Task_Id; Acceptor_Prev_Priority : Rendezvous_Priority) is begin pragma Assert (Acceptor = STPO.Self); -- Since we limit this kind of "active" priority change to be done -- by the task for itself, we don't need to lock Acceptor. if Acceptor_Prev_Priority /= Priority_Not_Boosted then STPO.Set_Priority (Acceptor, Acceptor_Prev_Priority, Loss_Of_Inheritance => True); end if; end Reset_Priority; ------------------------------ -- Try_To_Cancel_Entry_Call -- ------------------------------ procedure Try_To_Cancel_Entry_Call (Succeeded : out Boolean) is Entry_Call : Entry_Call_Link; Self_ID : constant Task_Id := STPO.Self; use type Ada.Exceptions.Exception_Id; begin Entry_Call := Self_ID.Entry_Calls (Self_ID.ATC_Nesting_Level)'Access; -- Experimentation has shown that abort is sometimes (but not -- always) already deferred when Cancel_xxx_Entry_Call is called. -- That may indicate an error. Find out what is going on. ??? pragma Assert (Entry_Call.Mode = Asynchronous_Call); Initialization.Defer_Abort_Nestable (Self_ID); if Single_Lock then STPO.Lock_RTS; end if; STPO.Write_Lock (Self_ID); Entry_Call.Cancellation_Attempted := True; if Self_ID.Pending_ATC_Level >= Entry_Call.Level then Self_ID.Pending_ATC_Level := Entry_Call.Level - 1; end if; Entry_Calls.Wait_For_Completion (Entry_Call); STPO.Unlock (Self_ID); if Single_Lock then STPO.Unlock_RTS; end if; Succeeded := Entry_Call.State = Cancelled; if Succeeded then Initialization.Undefer_Abort_Nestable (Self_ID); else -- ??? Initialization.Undefer_Abort_Nestable (Self_ID); -- Ideally, abort should no longer be deferred at this -- point, so we should be able to call Check_Exception. -- The loop below should be considered temporary, -- to work around the possiblility that abort may be deferred -- more than one level deep. if Entry_Call.Exception_To_Raise /= Ada.Exceptions.Null_Id then while Self_ID.Deferral_Level > 0 loop System.Tasking.Initialization.Undefer_Abort_Nestable (Self_ID); end loop; Entry_Calls.Check_Exception (Self_ID, Entry_Call); end if; end if; end Try_To_Cancel_Entry_Call; ------------------------------ -- Unlock_And_Update_Server -- ------------------------------ procedure Unlock_And_Update_Server (Self_ID : Task_Id; Entry_Call : Entry_Call_Link) is Called_PO : Protection_Entries_Access; Caller : Task_Id; begin if Entry_Call.Called_Task /= null then STPO.Unlock (Entry_Call.Called_Task); else Called_PO := To_Protection (Entry_Call.Called_PO); PO_Service_Entries (Self_ID, Called_PO, False); if Called_PO.Pending_Action then Called_PO.Pending_Action := False; Caller := STPO.Self; if Single_Lock then STPO.Lock_RTS; end if; STPO.Write_Lock (Caller); Caller.New_Base_Priority := Called_PO.Old_Base_Priority; Initialization.Change_Base_Priority (Caller); STPO.Unlock (Caller); if Single_Lock then STPO.Unlock_RTS; end if; end if; Unlock_Entries (Called_PO); if Single_Lock then STPO.Lock_RTS; end if; end if; end Unlock_And_Update_Server; ------------------- -- Unlock_Server -- ------------------- procedure Unlock_Server (Entry_Call : Entry_Call_Link) is Caller : Task_Id; Called_PO : Protection_Entries_Access; begin if Entry_Call.Called_Task /= null then STPO.Unlock (Entry_Call.Called_Task); else Called_PO := To_Protection (Entry_Call.Called_PO); if Called_PO.Pending_Action then Called_PO.Pending_Action := False; Caller := STPO.Self; if Single_Lock then STPO.Lock_RTS; end if; STPO.Write_Lock (Caller); Caller.New_Base_Priority := Called_PO.Old_Base_Priority; Initialization.Change_Base_Priority (Caller); STPO.Unlock (Caller); if Single_Lock then STPO.Unlock_RTS; end if; end if; Unlock_Entries (Called_PO); if Single_Lock then STPO.Lock_RTS; end if; end if; end Unlock_Server; ------------------------- -- Wait_For_Completion -- ------------------------- procedure Wait_For_Completion (Entry_Call : Entry_Call_Link) is Self_Id : constant Task_Id := Entry_Call.Self; begin -- If this is a conditional call, it should be cancelled when it -- becomes abortable. This is checked in the loop below. if Parameters.Runtime_Traces then Send_Trace_Info (W_Completion); end if; -- Try to remove calls to Sleep in the loop below by letting the caller -- a chance of getting ready immediately, using Unlock & Yield. -- See similar action in Wait_For_Call & Selective_Wait. if Single_Lock then STPO.Unlock_RTS; else STPO.Unlock (Self_Id); end if; if Entry_Call.State < Done then STPO.Yield; end if; if Single_Lock then STPO.Lock_RTS; else STPO.Write_Lock (Self_Id); end if; Self_Id.Common.State := Entry_Caller_Sleep; loop Check_Pending_Actions_For_Entry_Call (Self_Id, Entry_Call); exit when Entry_Call.State >= Done; STPO.Sleep (Self_Id, Entry_Caller_Sleep); end loop; Self_Id.Common.State := Runnable; Utilities.Exit_One_ATC_Level (Self_Id); if Parameters.Runtime_Traces then Send_Trace_Info (M_Call_Complete); end if; end Wait_For_Completion; -------------------------------------- -- Wait_For_Completion_With_Timeout -- -------------------------------------- procedure Wait_For_Completion_With_Timeout (Entry_Call : Entry_Call_Link; Wakeup_Time : Duration; Mode : Delay_Modes; Yielded : out Boolean) is Self_Id : constant Task_Id := Entry_Call.Self; Timedout : Boolean := False; use type Ada.Exceptions.Exception_Id; begin -- This procedure waits for the entry call to be served, with a timeout. -- It tries to cancel the call if the timeout expires before the call is -- served. -- If we wake up from the timed sleep operation here, it may be for -- several possible reasons: -- 1) The entry call is done being served. -- 2) There is an abort or priority change to be served. -- 3) The timeout has expired (Timedout = True) -- 4) There has been a spurious wakeup. -- Once the timeout has expired we may need to continue to wait if the -- call is already being serviced. In that case, we want to go back to -- sleep, but without any timeout. The variable Timedout is used to -- control this. If the Timedout flag is set, we do not need to -- STPO.Sleep with a timeout. We just sleep until we get a wakeup for -- some status change. -- The original call may have become abortable after waking up. We want -- to check Check_Pending_Actions_For_Entry_Call again in any case. pragma Assert (Entry_Call.Mode = Timed_Call); Yielded := False; Self_Id.Common.State := Entry_Caller_Sleep; -- Looping is necessary in case the task wakes up early from the -- timed sleep, due to a "spurious wakeup". Spurious wakeups are -- a weakness of POSIX condition variables. A thread waiting for -- a condition variable is allowed to wake up at any time, not just -- when the condition is signaled. See the same loop in the -- ordinary Wait_For_Completion, above. if Parameters.Runtime_Traces then Send_Trace_Info (WT_Completion, Wakeup_Time); end if; loop Check_Pending_Actions_For_Entry_Call (Self_Id, Entry_Call); exit when Entry_Call.State >= Done; STPO.Timed_Sleep (Self_Id, Wakeup_Time, Mode, Entry_Caller_Sleep, Timedout, Yielded); if Timedout then if Parameters.Runtime_Traces then Send_Trace_Info (E_Timeout); end if; -- Try to cancel the call (see Try_To_Cancel_Entry_Call for -- corresponding code in the ATC case). Entry_Call.Cancellation_Attempted := True; if Self_Id.Pending_ATC_Level >= Entry_Call.Level then Self_Id.Pending_ATC_Level := Entry_Call.Level - 1; end if; -- The following loop is the same as the loop and exit code -- from the ordinary Wait_For_Completion. If we get here, we -- have timed out but we need to keep waiting until the call -- has actually completed or been cancelled successfully. loop Check_Pending_Actions_For_Entry_Call (Self_Id, Entry_Call); exit when Entry_Call.State >= Done; STPO.Sleep (Self_Id, Entry_Caller_Sleep); end loop; Self_Id.Common.State := Runnable; Utilities.Exit_One_ATC_Level (Self_Id); return; end if; end loop; -- This last part is the same as ordinary Wait_For_Completion, -- and is only executed if the call completed without timing out. if Parameters.Runtime_Traces then Send_Trace_Info (M_Call_Complete); end if; Self_Id.Common.State := Runnable; Utilities.Exit_One_ATC_Level (Self_Id); end Wait_For_Completion_With_Timeout; -------------------------- -- Wait_Until_Abortable -- -------------------------- procedure Wait_Until_Abortable (Self_ID : Task_Id; Call : Entry_Call_Link) is begin pragma Assert (Self_ID.ATC_Nesting_Level > 0); pragma Assert (Call.Mode = Asynchronous_Call); if Parameters.Runtime_Traces then Send_Trace_Info (W_Completion); end if; STPO.Write_Lock (Self_ID); Self_ID.Common.State := Entry_Caller_Sleep; loop Check_Pending_Actions_For_Entry_Call (Self_ID, Call); exit when Call.State >= Was_Abortable; STPO.Sleep (Self_ID, Async_Select_Sleep); end loop; Self_ID.Common.State := Runnable; STPO.Unlock (Self_ID); if Parameters.Runtime_Traces then Send_Trace_Info (M_Call_Complete); end if; end Wait_Until_Abortable; end System.Tasking.Entry_Calls;
libsrc/_DEVELOPMENT/target/yaz180/device/asci/c/asci0_getc.asm
jpoikela/z88dk
640
240182
SECTION code_driver PUBLIC _asci0_getc EXTERN asm_asci0_getc defc _asci0_getc = asm_asci0_getc EXTERN asm_asci0_need defc NEED = asm_asci0_need
vu_meter.asm
wojciech-gancza/vu-meter
0
170656
;------------------------------------------------------------------------------- .include "m32adef.inc" ; ATMega32 ;------------------------------------------------------------------------------- ; Register usage: ; R0 - value to be displayed at left bar - cleared after displaying ; R1 - value to be displayed at left as a dot - not cleared ; R2 - value to be displayed at right bar - cleared after displaying ; R3 - value to be displayed at right as a dot - not cleared ; R4 - counter incremented as each 1ms timer tick, bits 0 and 1 used as diplay ; marker selection what is currently displayed ; R5 - decay counter counting down time to decrease dot value - left bar ; R6 - decay counter counting down time to decrease dot value - right bar ; R7 - low byte of left channel voltage ; R8 - high byte of left channel voltage ; R9 - low byte of right channel voltage ; R10 - high byte of right channel voltage ; ... ; R16 - commonly used as accumulator. For local use and passing parameters ; R17 - temporary register - just to keep locally some values ; ... ; R30 - ZL - used as address register. To free local use ; R31 - ZH - used as address register. To free local use ;------------------------------------------------------------------------------- .dseg .equ os_stack_size = 128 ; size of machine stack os_system_stack: .byte os_stack_size ;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .cseg .org 0 ; interupt vector ivect: jmp initOS ; RESET jmp empty ; INT0 jmp empty ; INT1 jmp empty ; INT2 jmp empty ; TIMER2 COMP jmp timerTick1ms ; TIMER2 OVF jmp empty ; TIMER1 CAPT jmp empty ; TIMER1 COMPA jmp empty ; TIMER1 COMPB jmp empty ; TIMER1 OVF jmp empty ; TIMER0 COMP jmp empty ; TIMER0 OVF jmp empty ; SPI, STC jmp empty ; USART, RXC jmp empty ; USART, UDRE jmp empty ; USART, TXC jmp adcReady ; ADC jmp empty ; EE_RDY jmp empty ; ANA_COMP jmp empty ; TWI jmp empty ; SPM_RDY empty: reti ;------------------------------------------------------------------------------- ; main excution flow initOS: cli ; setting stack pointer to the end of the stack ldi zh, high(os_system_stack+os_stack_size-1) ldi zl, low(os_system_stack+os_stack_size-1) out SPH, zh out SPL, zl ; set ports direction ; output: (inactive: high) ; 20 lines: PD0-7, PC0-7, PA4-7 - lines ; 2 rows: PB6-7 ldi r16, 0b11111111 out PORTC, r16 out PORTD, r16 out DDRC, r16 out DDRD, r16 ldi r16, 0b11110000 out PORTA, r16 out DDRA, r16 ldi r16, 0b11000000 out PORTB, r16 out DDRB, r16 ; set TIMER2 as main clock source 1ms at 8MHz: ; FOC2 = 0 - default ; WGM2 = 00 - normal ; COM2 = 00 - OC2 disconnected ; CS2 = 100 - /64 ldi r16, 0b00000100 out TCCR2, r16 ; count 125 tick until interupt ldi r16, -125 out TCNT2, r16 ; enable timer2 overflow interupt ; OCIE2 = 0 ; TOIE2 = 1 ldi r16, 0b01000000 out TIMSK, r16 ; initialize display ldi r16, 0 mov r0, r16 ; left bar value on bits 0:4 mov r1, r16 ; left dot value on bits 0:4 mov r2, r16 ; right bar value on bits 0:4 mov r3, r16 ; right dot value on bits 0:4 mov r4, r16 ; display step counter rcall displayOff rcall clearBar ; initialize analog to digitap converter - set ADMUX ; REFS = 01 - full voltage range (5v) ; ALDAR = 0 - right aligned value ; MUX = 00000 - single ended ADC0 ldi r16, 0b01000000 out ADMUX, r16 ; setting ADCSRA ; ADEN = 1 - ADC converter enabled ; ADSC = 1 - start conversion ; ADATE = 0 - auto trigger disabled ; ADIF = 0 - this is interupt flag - do not pay with it ; ADIE = 1 - ADC interupt enable ; ADPS = 110 - clock division factor = 64 ldi r16, 0b11001110 out ADCSRA, r16 ; main loop - reads interface and reacts on changes ; all the important functionality is in inerupts sei mainLoop: rjmp mainLoop ;------------------------------------------------------------------------------- ; timer interupt - called each 1ms, handles display multiplexion and decay ; of dot display .equ DOT_DELAY = 200 .equ DOT_DECAY = 3 timerTick1ms: push r16 in r16, SREG push r16 ; set counter back to -125 ldi r16, -125 out TCNT2, r16 ; update state of the display push r17 push zl push zh rcall clearBar handleDisplay: ; R4: bit0: 0:Left, 1:Right ; bit1: 0:Dot+Bar, 1:Bar inc r4 sbrc r4, 0 rjmp timerStep_1 rcall selectL sbrc r4, 1 rjmp timerStep10 timerStep00: mov r16, r0 eor r0, r0 rcall showBar timerStep10: mov r16, r1 rcall addDot rjmp handleDisplayEnd timerStep_1: rcall selectR sbrc r4, 1 rjmp timerStep11 timerStep01: mov r16, r2 eor r2, r2 rcall showBar timerStep11: mov r16, r3 rcall addDot handleDisplayEnd: nop handleDotDecay: ldi r16, $03 ; mask for tic counter - to perform dot decay and r16, r4 brne handleDotDecayEnd handleFirstDot: and r1, r1 breq handleSecondDot dec r5 brne handleSecondDot dec r1 ldi r16, DOT_DECAY mov r5, r16 handleSecondDot: and r3, r3 breq handleDotDecayEnd dec r6 brne handleDotDecayEnd dec r3 ldi r16, DOT_DECAY mov r6, r16 handleDotDecayEnd: nop timerEnd: ; additional tick handling can be placed here endOfInterupt: pop zh pop zl pop r17 pop r16 out SREG, r16 pop r16 reti ;------------------------------------------------------------------------------- ; ADC ready interupt handler adcReady: push r16 in r16, SREG push r16 push r17 in r16, ADMUX andi r16, $01 brne adcRight adcLeft: in r7, ADCL in r8, ADCH ldi r16, 0b01000001 out ADMUX, r16 rjmp adcNext adcRight: in r9, ADCL in r10, ADCH ldi r16, 0b01000000 out ADMUX, r16 adcNext: ldi r17, 0b11001110 out ADCSRA, r17 andi r16, 0b00000001 brne adcEnd ; use value - both channel were read mov r16, r7 mov r17, r8 rcall voltageToLedsCnt rcall setLeftLeds mov r16, r9 mov r17, r10 rcall voltageToLedsCnt rcall setRightLeds adcEnd: pop r17 pop r16 out SREG, r16 pop r16 reti ;------------------------------------------------------------------------------- ; display procedures setting state of led diodes in VU led bars. selectL: ; modify R16 in r16, PORTB ori r16, 0b11000000 andi r16, 0b10111111 out PORTB, r16 ret selectR: ; modify R16 in r16, PORTB ori r16, 0b11000000 andi r16, 0b01111111 out PORTB, r16 ret displayOff: ; modify R16 in r16, PORTB ori r16, 0b11000000 out PORTB, r16 ret clearBar: ; modify R16 ldi r16, 0b11111111 out PORTD, r16 out PORTC, r16 in r16, PORTA andi r16, 0b00001111 ori r16, 0b11110000 out PORTA, r16 ret showBar: ; R16 - number of dots ; modify ZL, ZH mov zl, r16 add r16, r16 add r16, zl ldi zl, low(2*barValues) ldi zh, high(2*barValues) add zl, r16 ldi r16, 0 adc zh, r16 lpm r16, z+ out PORTD, r16 lpm r16, z+ out PORTC, r16 lpm r16, z in zl, PORTA andi zl, $0f or r16, zl out PORTA, r16 ret addDot: ; R16 - dot position ; modify R17, ZL, ZH mov zl, r16 add r16, r16 add r16, zl ldi zl, low(2*dotValues) ldi zh, high(2*dotValues) add zl, r16 ldi r16, 0 adc zh, r16 in r17, PORTD lpm r16, z+ and r16, r17 out PORTD, r16 in r17, PORTC lpm r16, z+ and r16, r17 out PORTC, r16 in r17, PORTA lpm r16, z and r16, r17 out PORTA, r16 ret barValues: .db 0b11111111, 0b11111111, 0b11110000, \ 0b11111111, 0b11111111, 0b11100000, \ 0b11111111, 0b11111111, 0b11000000, \ 0b11111111, 0b11111111, 0b10000000, \ 0b11111111, 0b11111111, 0b00000000, \ 0b11111111, 0b01111111, 0b00000000, \ 0b11111111, 0b00111111, 0b00000000, \ 0b11111111, 0b00011111, 0b00000000, \ 0b11111111, 0b00001111, 0b00000000, \ 0b11111111, 0b00000111, 0b00000000, \ 0b11111111, 0b00000011, 0b00000000, \ 0b11111111, 0b00000001, 0b00000000, \ 0b11111111, 0b00000000, 0b00000000, \ 0b01111111, 0b00000000, 0b00000000, \ 0b00111111, 0b00000000, 0b00000000, \ 0b00011111, 0b00000000, 0b00000000, \ 0b00001111, 0b00000000, 0b00000000, \ 0b00000111, 0b00000000, 0b00000000, \ 0b00000011, 0b00000000, 0b00000000, \ 0b00000001, 0b00000000, 0b00000000, \ 0b00000000, 0b00000000, 0b00000000, \ $00 ; align to full bytes count dotValues: .db 0b11111111, 0b11111111, 0b11110000, \ 0b11111111, 0b11111111, 0b11100000, \ 0b11111111, 0b11111111, 0b11010000, \ 0b11111111, 0b11111111, 0b10110000, \ 0b11111111, 0b11111111, 0b01110000, \ 0b11111111, 0b01111111, 0b11110000, \ 0b11111111, 0b10111111, 0b11110000, \ 0b11111111, 0b11011111, 0b11110000, \ 0b11111111, 0b11101111, 0b11110000, \ 0b11111111, 0b11110111, 0b11110000, \ 0b11111111, 0b11111011, 0b11110000, \ 0b11111111, 0b11111101, 0b11110000, \ 0b11111111, 0b11111110, 0b11110000, \ 0b01111111, 0b11111111, 0b11110000, \ 0b10111111, 0b11111111, 0b11110000, \ 0b11011111, 0b11111111, 0b11110000, \ 0b11101111, 0b11111111, 0b11110000, \ 0b11110111, 0b11111111, 0b11110000, \ 0b11111011, 0b11111111, 0b11110000, \ 0b11111101, 0b11111111, 0b11110000, \ 0b11111110, 0b11111111, 0b11110000, \ $00 ; align to full bytes count ;------------------------------------------------------------------------------- ; setting value to display - for left and right led bar. contain logic of ; setting dot indicating peak values setLeftLeds: ; r16 - value cp r16, r0 brlt notSet mov r0, r16 cp r16, r1 brlt notSet mov r1, r16 ldi r16, DOT_DELAY mov r5, r16 notSet: ret setRightLeds: ; r16 - value cp r16, r2 brlt notSet mov r2, r16 cp r16, r3 brlt notSet mov r3, r16 ldi r16, DOT_DELAY mov r6, r16 ret ;------------------------------------------------------------------------------- ; Conversion from value to count of lighted diodes. This is inlined to minimise ; conversion time. .equ LEVEL_20 = 514 .equ LEVEL_19 = 408 .equ LEVEL_18 = 324 .equ LEVEL_17 = 257 .equ LEVEL_16 = 204 .equ LEVEL_15 = 162 .equ LEVEL_14 = 129 .equ LEVEL_13 = 102 .equ LEVEL_12 = 81 .equ LEVEL_11 = 64 .equ LEVEL_10 = 51 .equ LEVEL_09 = 40 .equ LEVEL_08 = 32 .equ LEVEL_07 = 25 .equ LEVEL_06 = 20 .equ LEVEL_05 = 16 .equ LEVEL_04 = 12 .equ LEVEL_03 = 10 .equ LEVEL_02 = 8 .equ LEVEL_01 = 6 voltageToLedsCnt: ; Input: R17:R16 - value to convert ; Output: r16 - count of leds to display ; compare with 16 cpi r17, high(LEVEL_16) brlo values_00_15 brne values_16_20 cpi r16, low(LEVEL_16) brlo values_00_15 values_16_20: ; compare with 20 cpi r17, high(LEVEL_20) brlo values_16_19 brne value_20 cpi r16, low(LEVEL_20) brlo values_16_19 value_20: ldi r16, 20 ret values_16_19: ; compare with 18 cpi r17, high(LEVEL_18) brlo values_16_17 brne values_18_19 cpi r16, low(LEVEL_18) brlo values_16_17 values_18_19: ; compare with 19 cpi r17, high(LEVEL_19) brlo value_18 brne value_19 cpi r16, low(LEVEL_19) brlo value_18 value_19: ldi r16, 19 ret value_18: ldi r16, 18 ret values_16_17: ; compare with 17 cpi r17, high(LEVEL_17) brlo value_16 brne value_17 cpi r16, low(LEVEL_17) brlo value_16 value_17: ldi r16, 17 ret value_16: ldi r16, 16 ret values_00_15: ; compare with 08 cpi r17, high(LEVEL_08) brlo values_00_07 brne values_08_15 cpi r16, low(LEVEL_08) brlo values_00_07 values_08_15: ; compare with 12 cpi r17, high(LEVEL_12) brlo values_08_11 brne values_12_15 cpi r16, low(LEVEL_12) brlo values_08_11 values_12_15: ; compare with 14 cpi r17, high(LEVEL_14) brlo values_12_13 brne values_14_15 cpi r16, low(LEVEL_14) brlo values_12_13 values_14_15: ; compare with 15 cpi r17, high(LEVEL_15) brlo value_14 brne value_15 cpi r16, low(LEVEL_15) brlo value_14 value_15: ldi r16, 15 ret value_14: ldi r16, 14 ret values_12_13: ; compare with 13 cpi r17, high(LEVEL_13) brlo value_12 brne value_13 cpi r16, low(LEVEL_13) brlo value_12 value_13: ldi r16, 13 ret value_12: ldi r16, 12 ret values_08_11: ; compare with 10 cpi r17, high(LEVEL_10) brlo values_08_09 brne values_10_11 cpi r16, low(LEVEL_10) brlo values_08_09 values_10_11: ; compare with 11 cpi r17, high(LEVEL_11) brlo value_10 brne value_11 cpi r16, low(LEVEL_11) brlo value_10 value_11: ldi r16, 11 ret value_10: ldi r16, 10 ret values_08_09: ; compare with 9 cpi r17, high(LEVEL_09) brlo value_08 brne value_09 cpi r16, low(LEVEL_09) brlo value_08 value_09: ldi r16, 9 ret value_08: ldi r16, 8 ret values_00_07: ; compare with 04 cpi r17, high(LEVEL_04) brlo values_00_03 brne values_04_07 cpi r16, low(LEVEL_04) brlo values_00_03 values_04_07: ; compare with 06 cpi r17, high(LEVEL_06) brlo values_04_05 brne values_06_07 cpi r16, low(LEVEL_06) brlo values_04_05 values_06_07: ; compare with 05 cpi r17, high(LEVEL_07) brlo value_06 brne value_07 cpi r16, low(LEVEL_07) brlo value_06 value_07: ldi r16, 7 ret value_06: ldi r16, 6 ret values_04_05: ; compare with 05 cpi r17, high(LEVEL_05) brlo value_04 brne value_05 cpi r16, low(LEVEL_05) brlo value_04 value_05: ldi r16, 5 ret value_04: ldi r16, 4 ret values_00_03: ; compare with 02 cpi r17, high(LEVEL_02) brlo values_00_01 brne values_02_03 cpi r16, low(LEVEL_02) brlo values_00_01 values_02_03: ; compare with 01 cpi r17, high(LEVEL_03) brlo value_02 brne value_03 cpi r16, low(LEVEL_03) brlo value_02 value_03: ldi r16, 3 ret value_02: ldi r16, 2 ret values_00_01: ; compare with 01 cpi r17, high(LEVEL_01) brlo value_00 brne value_01 cpi r16, low(LEVEL_01) brlo value_00 value_01: ldi r16, 1 ret value_00: ldi r16, 0 ret ;-------------------------------------------------------------------------------
tests/symbol_label_nested/5.asm
NullMember/customasm
414
90569
#ruledef test { ld {x} => 0x55 @ x`8 } ; referencing symbols at levels above global1: .local1_1: ..local2_1: ...local3_1: ld global1 ; = 0x5500 ld .local1_1 ; = 0x5500 ld ..local2_1 ; = 0x5500 ld ...local3_1 ; = 0x5500 ..local2_2: ...local3_1: ld global1 ; = 0x5500 ld .local1_1 ; = 0x5500 ld ..local2_1 ; = 0x5500 ld ...local3_1 ; = 0x5508 ld ..local2_2 ; = 0x5508 ld ...local3_1 ; = 0x5508 ld ..local2_1.local3_1 ; = 0x5500
programs/oeis/131/A131421.asm
jmorken/loda
1
164511
<filename>programs/oeis/131/A131421.asm ; A131421: Triangle read by rows (n>=1, 1<=k<=n): T(n,k) = 2*(n+k) - 3. ; 1,3,5,5,7,9,7,9,11,13,9,11,13,15,17,11,13,15,17,19,21,13,15,17,19,21,23,25,15,17,19,21,23,25,27,29,17,19,21,23,25,27,29,31,33,19,21,23,25,27,29,31,33,35,37,21,23,25,27,29,31,33,35,37,39,41,23,25,27,29,31,33,35,37,39,41,43,45,25,27,29,31,33,35,37,39,41,43,45,47,49,27,29,31,33,35,37,39,41,43,45,47,49,51,53,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79 lpb $0 sub $0,1 mov $2,$3 add $2,$0 add $4,1 trn $0,$4 add $1,2 lpe add $1,$2 add $2,6 add $1,$2 sub $1,5
src/calculation/test.asm
emm035/tommysulo
0
247706
ADD R1 1 4 SUB R0 R1 1 ADD R2 R1 R0 ADD R1 2 4
programs/oeis/158/A158370.asm
karttu/loda
1
86573
<filename>programs/oeis/158/A158370.asm ; A158370: 576n + 1. ; 577,1153,1729,2305,2881,3457,4033,4609,5185,5761,6337,6913,7489,8065,8641,9217,9793,10369,10945,11521,12097,12673,13249,13825,14401,14977,15553,16129,16705,17281,17857,18433,19009,19585,20161,20737,21313,21889,22465,23041,23617,24193,24769,25345,25921,26497,27073,27649,28225,28801,29377,29953,30529,31105,31681,32257,32833,33409,33985,34561,35137,35713,36289,36865,37441,38017,38593,39169,39745,40321,40897,41473,42049,42625,43201,43777,44353,44929,45505,46081,46657,47233,47809,48385,48961,49537,50113,50689,51265,51841,52417,52993,53569,54145,54721,55297,55873,56449,57025,57601,58177,58753,59329,59905,60481,61057,61633,62209,62785,63361,63937,64513,65089,65665,66241,66817,67393,67969,68545,69121,69697,70273,70849,71425,72001,72577,73153,73729,74305,74881,75457,76033,76609,77185,77761,78337,78913,79489,80065,80641,81217,81793,82369,82945,83521,84097,84673,85249,85825,86401,86977,87553,88129,88705,89281,89857,90433,91009,91585,92161,92737,93313,93889,94465,95041,95617,96193,96769,97345,97921,98497,99073,99649,100225,100801,101377,101953,102529,103105,103681,104257,104833,105409,105985,106561,107137,107713,108289,108865,109441,110017,110593,111169,111745,112321,112897,113473,114049,114625,115201,115777,116353,116929,117505,118081,118657,119233,119809,120385,120961,121537,122113,122689,123265,123841,124417,124993,125569,126145,126721,127297,127873,128449,129025,129601,130177,130753,131329,131905,132481,133057,133633,134209,134785,135361,135937,136513,137089,137665,138241,138817,139393,139969,140545,141121,141697,142273,142849,143425,144001 mov $1,$0 mul $1,576 add $1,577
src/kernel.asm
AlessandroSangiuliano/Uros-microkerkel
3
1063
<reponame>AlessandroSangiuliano/Uros-microkerkel [BITS 32] global _start extern kernel_main CODE_SEG equ 0x08 DATA_SEG equ 0x10 _start: mov ax, DATA_SEG mov es, ax mov ds, ax mov fs, ax mov ss, ax mov gs, ax mov ebp, 0x00200000 mov esp, ebp ;enable a20 line in al, 0x92 or al, 2 out 0x92, al .init_pic: jmp pic_init end_pic_init: call kernel_main jmp $ pic_init: mov al, 00010001b out 0x20, al ; tell master ;out 0xA0, al ; tell slave mov al, 0x20 out 0x21, al mov al, 00000001b out 0x21, al ;out 0xA1, al jmp end_pic_init times 512-($ - $$) db 0
Task/Sorting-algorithms-Merge-sort/Ada/sorting-algorithms-merge-sort-2.ada
LaudateCorpus1/RosettaCodeData
1
26016
<gh_stars>1-10 package body Mergesort is ----------- -- Merge -- ----------- function Merge(Left, Right : Collection_Type) return Collection_Type is Result : Collection_Type(Left'First..Right'Last); Left_Index : Index_Type := Left'First; Right_Index : Index_Type := Right'First; Result_Index : Index_Type := Result'First; begin while Left_Index <= Left'Last and Right_Index <= Right'Last loop if Left(Left_Index) <= Right(Right_Index) then Result(Result_Index) := Left(Left_Index); Left_Index := Index_Type'Succ(Left_Index); -- increment Left_Index else Result(Result_Index) := Right(Right_Index); Right_Index := Index_Type'Succ(Right_Index); -- increment Right_Index end if; Result_Index := Index_Type'Succ(Result_Index); -- increment Result_Index end loop; if Left_Index <= Left'Last then Result(Result_Index..Result'Last) := Left(Left_Index..Left'Last); end if; if Right_Index <= Right'Last then Result(Result_Index..Result'Last) := Right(Right_Index..Right'Last); end if; return Result; end Merge; ---------- -- Sort -- ---------- function Sort (Item : Collection_Type) return Collection_Type is Result : Collection_Type(Item'range); Middle : Index_Type; begin if Item'Length <= 1 then return Item; else Middle := Index_Type'Val((Item'Length / 2) + Index_Type'Pos(Item'First)); declare Left : Collection_Type(Item'First..Index_Type'Pred(Middle)); Right : Collection_Type(Middle..Item'Last); begin for I in Left'range loop Left(I) := Item(I); end loop; for I in Right'range loop Right(I) := Item(I); end loop; Left := Sort(Left); Right := Sort(Right); Result := Merge(Left, Right); end; return Result; end if; end Sort; end Mergesort;
oeis/189/A189154.asm
neoneye/loda-programs
11
13861
; A189154: Number of n X 2 binary arrays without the pattern 0 0 1 1 diagonally, vertically or horizontally ; 4,16,64,225,784,2704,9216,31329,106276,360000,1218816,4124961,13957696,47224384,159769600,540516001,1828588644,6186137104,20927672896,70798034241,239508444816,810252019600,2741064339456,9272956793409,31370192828100,106124610822400,359017002689536,1214545849612225,4108779232057600,13899900676665600,47023027347460096,159077762384818369,538156215976246596,1820569439128204944,6158942298444289600,20835552555400694049,70486169412903805584,238453003109347685136,806680731327231222784 add $0,2 seq $0,8937 ; a(n) = Sum_{k=0..n} T(k) where T(n) are the tribonacci numbers A000073. pow $0,2
test/asset/agda-stdlib-1.0/Data/Maybe/Categorical.agda
omega12345/agda-mode
0
3870
<gh_stars>0 ------------------------------------------------------------------------ -- The Agda standard library -- -- A categorical view of Maybe ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.Maybe.Categorical where open import Data.Maybe.Base open import Category.Functor open import Category.Applicative open import Category.Monad import Function.Identity.Categorical as Id open import Function ------------------------------------------------------------------------ -- Maybe applicative functor functor : ∀ {f} → RawFunctor {f} Maybe functor = record { _<$>_ = map } applicative : ∀ {f} → RawApplicative {f} Maybe applicative = record { pure = just ; _⊛_ = maybe map (const nothing) } applicativeZero : ∀ {f} → RawApplicativeZero {f} Maybe applicativeZero = record { applicative = applicative ; ∅ = nothing } alternative : ∀ {f} → RawAlternative {f} Maybe alternative = record { applicativeZero = applicativeZero ; _∣_ = _<∣>_ } ------------------------------------------------------------------------ -- Maybe monad transformer monadT : ∀ {f} → RawMonadT {f} (_∘′ Maybe) monadT M = record { return = M.return ∘ just ; _>>=_ = λ m f → m M.>>= maybe f (M.return nothing) } where module M = RawMonad M ------------------------------------------------------------------------ -- Maybe monad monad : ∀ {f} → RawMonad {f} Maybe monad = monadT Id.monad monadZero : ∀ {f} → RawMonadZero {f} Maybe monadZero = record { monad = monad ; applicativeZero = applicativeZero } monadPlus : ∀ {f} → RawMonadPlus {f} Maybe monadPlus {f} = record { monad = monad ; alternative = alternative } ------------------------------------------------------------------------ -- Get access to other monadic functions module _ {f F} (App : RawApplicative {f} F) where open RawApplicative App sequenceA : ∀ {A} → Maybe (F A) → F (Maybe A) sequenceA nothing = pure nothing sequenceA (just x) = just <$> x mapA : ∀ {a} {A : Set a} {B} → (A → F B) → Maybe A → F (Maybe B) mapA f = sequenceA ∘ map f forA : ∀ {a} {A : Set a} {B} → Maybe A → (A → F B) → F (Maybe B) forA = flip mapA module _ {m M} (Mon : RawMonad {m} M) where private App = RawMonad.rawIApplicative Mon sequenceM = sequenceA App mapM = mapA App forM = forA App
tests-antlr4/src/main/resources/grammar/Hello.g4
f1194361820/tests
0
3243
grammar Hello; import basic, operation; program: statement+ ; statement: expr NEWLINE | ID '=' expr NEWLINE | NEWLINE ; expr: ID | INT | '(' expr ')' | expr UNARY_OPERATION | expr BINARY_OPERATION expr ;
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/size_attribute1_pkg2.adb
best08618/asylo
7
13896
package body Size_Attribute1_Pkg2 is procedure Proc is I : Integer := T'Size; begin null; end; end Size_Attribute1_Pkg2;
programs/oeis/049/A049072.asm
neoneye/loda
22
85745
; A049072: Expansion of 1/(1 - 3*x + 4*x^2). ; 1,3,5,3,-11,-45,-91,-93,85,627,1541,2115,181,-7917,-24475,-41757,-27371,84915,364229,753027,802165,-605613,-5025499,-12654045,-17860139,-2964237,62547845,199500483,348310069,246928275,-652455451,-2945079453,-6225416555,-6895931853,4213870661,40225339395,103820535541,150560249043,36398604965,-493045181277,-1624729963691,-2902009165965,-2207107643131,4986713734467,23788571775925,51418860389907,59102294066021,-28368559361565,-321514854348779,-851070325600077,-1267151559405115,-397173375815037,3877086110175349,13219951833786195,24151511060657189,19574725846826787,-37881866702148395,-191944503493752333,-424306043672663419,-505140117042980925,181803823561710901,2565971938857056403,6970700522324325605,10648213811544751203,4061839345336951189,-30407337210168151245,-107469369011852258491,-200778758194884170493,-172458798537243477515,285738637167806249427,1547051105652392658341,3498198768285952977315,4306391882248288298581,-1073619426398947013517,-20446425808189994234875,-57044799718974194650557,-89348695924162607012171,-39866888896591042434285,237794117006877300745829,872849906606996071974627,1667373251793479012940565,1510720128952452750923187,-2137332620316557798992699,-12454878376759484400670845,-28815304649012222006041739,-36626400439998728415441837,5382017276052702777841445,162651653588153021995291683,466426891660248254874509269,748674060628132676642361075,380314615243405010429046149,-1853752396782315675282305853,-7082515651320567067563102155,-13832537366832438501560083053,-13167549495215047234427840539,15827500981684612302956810595,100152700925914025846581793941,237148098851003628327918139443,310833492849354781597427242565,-16091916855950168519390830077 mov $1,1 mov $2,2 lpb $0 sub $0,1 sub $2,$1 mul $2,2 add $1,$2 mul $2,2 lpe mov $0,$1
grammars/CIF2Lexer.g4
Sylvan-Materials/cifio
0
2323
lexer grammar CIF2Lexer; Magic_Code = '#\#CIF_2.0' ; Data_Token : [Dd] [Aa] [Tt] [Aa] '_'; Save_Token : [Ss] [Aa] [Vv] [Ee] '_'; Loop_Token : [Ll] [Oo] [Oo] [Pp] '_' ; Global_Token : [Gg] [Ll] [Oo] [Bb] [Aa] [Ll] '_' ; Stop_Token : [Ss] [Tt] [Oo] [Pp] '_' ; WSpace : ( Inline_WSpace | Line_Term ) WSpace_Any; WSpace_Lines : ( Inline_WSpace Inline_WSpace* ( Comment )? )? Line_Term WSpace_To_Eol* ; WSpace_Any : ( WSpace_To_Eol | Inline_WSpace )+ ; WSpace_To_Eol : Inline_WSpace* Comment? Line_Term ; Comment : '#' Char ; fragment Char : ~('\u000A')* ; Inline_WSpace : '\u0020' | '\u0009' ; Line_Term : ( '\u000D' '\u000A'? ) | '\u000A' ; AllChars : '\u0009' | '\u000A' | '\u000D' | '\u0020'..'\u007E' | '\u00A0'..'\uD7FF' | '\uE000'..'\uFDCF' | '\uFDF0'..'\uFFFD' | '\u{10000}'..'\u{1FFFD}' | '\u{20000}'..'\u{2FFFD}' | '\u{30000}'..'\u{3FFFD}' | '\u{40000}'..'\u{4FFFD}' | '\u{50000}'..'\u{5FFFD}' | '\u{60000}'..'\u{6FFFD}' | '\u{70000}'..'\u{7FFFD}' | '\u{80000}'..'\u{8FFFD}' | '\u{90000}'..'\u{9FFFD}' | '\u{A0000}'..'\u{AFFFD}' | '\u{B0000}'..'\u{BFFFD}' | '\u{C0000}'..'\u{CFFFD}' | '\u{D0000}'..'\u{DFFFD}' | '\u{E0000}'..'\u{EFFFD}' | '\u{F0000}'..'\u{FFFFD}' | '\u{100000}'..'\u{10FFFD}' ;
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1800.asm
ljhsiun2/medusa
9
241055
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r8 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x13bce, %r8 nop and $6942, %r10 mov $0x6162636465666768, %rax movq %rax, %xmm5 and $0xffffffffffffffc0, %r8 vmovntdq %ymm5, (%r8) nop nop nop nop add $27593, %rax lea addresses_A_ht+0x16b4e, %rsi lea addresses_WT_ht+0x161d6, %rdi nop and $4870, %rax mov $97, %rcx rep movsw nop nop nop nop nop xor %rcx, %rcx lea addresses_UC_ht+0x19bee, %r10 nop nop nop nop nop add %r8, %r8 mov (%r10), %ecx nop add $47445, %rax lea addresses_D_ht+0x2948, %rsi lea addresses_A_ht+0xa11e, %rdi nop nop sub $1186, %r10 mov $117, %rcx rep movsl nop nop nop add %rsi, %rsi lea addresses_A_ht+0xdace, %rdi nop nop nop nop nop sub %rdx, %rdx movups (%rdi), %xmm1 vpextrq $0, %xmm1, %r10 nop nop sub $1098, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r8 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r14 push %r15 push %rbp push %rbx push %rsi // Store lea addresses_PSE+0x19e8, %rsi nop nop nop and %rbx, %rbx movb $0x51, (%rsi) nop add $50158, %r14 // Faulty Load lea addresses_PSE+0xbce, %rsi cmp $19974, %r13 movups (%rsi), %xmm0 vpextrq $0, %xmm0, %rbp lea oracles, %r14 and $0xff, %rbp shlq $12, %rbp mov (%r14,%rbp,1), %rbp pop %rsi pop %rbx pop %rbp pop %r15 pop %r14 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_PSE', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_PSE', 'congruent': 1}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_PSE', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 32, 'type': 'addresses_A_ht', 'congruent': 10}, 'OP': 'STOR'} {'dst': {'same': True, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC_ht', 'congruent': 5}} {'dst': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_D_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_A_ht', 'congruent': 6}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
programs/oeis/189/A189674.asm
neoneye/loda
22
13053
<filename>programs/oeis/189/A189674.asm ; A189674: Partial sums of A189673. ; 0,1,1,2,3,3,3,4,4,5,6,6,7,8,8,8,9,9,9,10,10,11,12,12,12,13,13,14,15,15,16,17,17,17,18,18,19,20,20,21,22,22,22,23,23,23,24,24,25,26,26,26,27,27,27,28,28,29,30,30,30,31,31,32,33,33,34,35,35,35,36,36,36,37,37,38,39,39,39,40,40 mov $1,$0 lpb $1 mov $2,$1 div $1,3 add $2,$1 mod $2,2 add $0,$2 lpe div $0,2
oeis/276/A276666.asm
neoneye/loda-programs
11
177344
<reponame>neoneye/loda-programs ; A276666: a(n) = (n-1)*Catalan(n). ; -1,0,2,10,42,168,660,2574,10010,38896,151164,587860,2288132,8914800,34767720,135727830,530365050,2074316640,8119857900,31810737420,124718287980,489325340400,1921133836440,7547311500300,29667795388452,116686713634848,459183826803800,1807872323816104,7121194697259720,28062782066238304,110634608560676816,436339081176807270,1721556011188494138,6794756173191779520,26827153390941115212,105953706826848242908,418592943505115872220,1654228955686382725104,6539152923119247951800,25856164125739080414820 mov $2,$0 seq $0,108 ; Catalan numbers: C(n) = binomial(2n,n)/(n+1) = (2n)!/(n!(n+1)!). sub $2,1 mul $0,$2
x86/TimeMng.asm
lucabrivio/asmFish-fasmg
1
179603
remaining: ; in: ebx us ; r8d ply (preserved) ; r9d type ; out: time mov edi, dword[limits.time+4*rbx] mov esi, dword[limits.incr+4*rbx] mov edx, dword[options.moveOverhead] mov ecx, dword[limits.movestogo] xor eax, eax test edi, edi mov r10d, edx jle .Return lea eax, [r8+1] mov r11d, 2 _vmovsd xmm0, qword[.LC6] _vmovsd xmm3, qword[.LC7] shr eax, 1 _vcvtsi2sd xmm2, xmm2, esi test ecx, ecx _vmovsd xmm4, qword[.LC1] lea edx, qword[rax-25] _vcvtsi2sd xmm1, xmm1, edx _vmulsd xmm0, xmm0, xmm1 _vmulsd xmm1, xmm1, xmm0 _vsubsd xmm3, xmm3, xmm1 _vmaxsd xmm0, xmm3, qword[.LC0] _vmulsd xmm3, xmm2, xmm0 je .NoMovesToGo .YesMovesToGo: _vmovsd xmm2, qword[.LC1+8*r9] cmp ecx, 49 jle @1f mov ecx, 50 @1: _vcvtsi2sd xmm0, xmm0, ecx cmp eax, 40 _vmovsd xmm1, qword[.LC5] _vdivsd xmm2, xmm2, xmm0 jg .L8 sub eax, 20 _vcvtsi2sd xmm0, xmm0, eax _vmulsd xmm5, xmm0, qword[.LC8] _vmulsd xmm5, xmm5, xmm0 _vmovsd xmm0, qword[.LC9] _vsubsd xmm0, xmm0, xmm5 _vmulsd xmm2, xmm2, xmm0 jmp .L21 .L8: _vmulsd xmm2, xmm2, qword[.LC10] .L21: _vmovapd xmm0, xmm1 jmp .L9 .NoMovesToGo: _vcvtsi2sd xmm0, xmm0, eax imul edx, eax, 20 _vmovsd xmm2, qword[.LC3] _vcvtsi2sd xmm1, xmm1, edx _vaddsd xmm0, xmm0, qword[.LC11] _vdivsd xmm1, xmm1, xmm0 _vaddsd xmm0, xmm1, xmm4 _vmulsd xmm2, xmm0, qword[.LC3+8*r9] .L9: _vcvtsi2sd xmm1, xmm1, edi mov eax, 0 sub edi, r10d cmovs edi, eax _vmulsd xmm0, xmm0, xmm1 _vdivsd xmm3, xmm3, xmm0 _vmovapd xmm0, xmm3 _vaddsd xmm0, xmm0, xmm4 _vmulsd xmm2, xmm2, xmm0 _vcvtsi2sd xmm0, xmm0, edi _vminsd xmm2, xmm2, xmm4 _vmulsd xmm0, xmm0, xmm2 _vcvttsd2si eax, xmm0 .Return: ret calign 8 .LC0: dq 55.0 .LC1: dq 1.0, 6.0 .LC3: dq 0.017, 0.07 .LC5: dq 8.5 .LC6: dq 0.12 .LC7: dq 120.0 .LC8: dq 0.001 .LC9: dq 1.1 .LC10: dq 1.5 .LC11: dq 500.0 TimeMng_Init: ; in: ecx color us ; edx ply push rbx rsi rdi mov ebx, ecx mov r8d, edx mov rax, qword[limits.startTime] mov qword[time.startTime], rax xor r9d, r9d call remaining mov rcx, rax shr rcx, 2 add rcx, rax cmp byte[options.ponder], 0 cmovne rax, rcx mov qword[time.optimumTime], rax mov r9d, 1 call remaining mov qword[time.maximumTime], rax pop rdi rsi rbx ret
source/xml/sax/matreshka-internals-sax_locators.ads
svn2github/matreshka
24
15044
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- XML Processor -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011, <NAME> <<EMAIL>> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the <NAME>, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This package provides abstract root type to implement SAX Locator for the -- specific reader. XML.SAX.Locators.SAX_Locator provides capability to wrap -- reader specific locator and to access its attributes. -- -- For perforamnce reasons, internal locator provides trampoline to access -- reader's internal data structures, thus locator should not be updated -- each time when user callback is called. ------------------------------------------------------------------------------ with League.IRIs; with League.Strings; with Matreshka.Atomics.Counters; package Matreshka.Internals.SAX_Locators is pragma Preelaborate; type Shared_Abstract_Locator is abstract tagged limited record Counter : Matreshka.Atomics.Counters.Counter; end record; not overriding function Line (Self : not null access constant Shared_Abstract_Locator) return Natural is abstract; not overriding function Column (Self : not null access constant Shared_Abstract_Locator) return Natural is abstract; not overriding function Encoding (Self : not null access constant Shared_Abstract_Locator) return League.Strings.Universal_String is abstract; not overriding function Version (Self : not null access constant Shared_Abstract_Locator) return League.Strings.Universal_String is abstract; not overriding function Public_Id (Self : not null access constant Shared_Abstract_Locator) return League.Strings.Universal_String is abstract; not overriding function System_Id (Self : not null access constant Shared_Abstract_Locator) return League.Strings.Universal_String is abstract; not overriding function Base_URI (Self : not null access constant Shared_Abstract_Locator) return League.IRIs.IRI is abstract; type Shared_Locator_Access is access all Shared_Abstract_Locator'Class; procedure Reference (Self : not null Shared_Locator_Access); pragma Inline (Reference); procedure Dereference (Self : in out Shared_Locator_Access); end Matreshka.Internals.SAX_Locators;
smsq/gold/ser/rxen.asm
olifink/smsqe
0
8117
; SER receive enable / disable V2.00  1994 <NAME> section ser xdef ser_rxen xdef ser_iopr xdef ser_rxdi xref iob_room xref ql_hcmdn include 'dev8_keys_k' include 'dev8_mac_assert' include 'dev8_keys_par' include 'dev8_keys_sys' include 'dev8_keys_buf' ;+++ ; SER input operation ; ; a3 c p SER linkage block ; all other egisters preserved ; status returned according to D0 ;--- ser_iopr tst.b prd_iact(a3) ; already ready? beq.s sio_room ; ... no, must be xon / xoff tst.l d0 rts sio_room move.l d0,-(sp) move.l prd_ibuf(a3),d0 ; any buffer? ble.s srxe_exd0 ; ... no, unusual this move.l a2,-(sp) move.l d0,a2 jsr iob_room ; enough room cmp.l prd_room(a3),d0 move.l (sp)+,a2 ble.s srxe_exd0 ; ... no srxe_xon move.b #k.xon,prd_xonf(a3) ; set xon char to be sent srxe_exd0 move.l (sp)+,d0 rts ;+++ ; SER receive enable. ; ; a3 c p SER linkage block ; all other egisters preserved ; status returned according to D0 ;--- ser_rxen move.l d0,-(sp) move.l a2,-(sp) tst.b prd_hand(a3) ble.s srxe_ena move.b #k.xon,prd_xonf(a3) ; set xon char to be sent srxe_ena move.l prc_ibuf(a0),a2 add.w #buf_eoff,a2 ; 'queue' st prd_iact(a3) ; ready now moveq #1,d0 ; rx enable -1 ser_cmd movem.l d1/d2/a4/a5,-(sp) moveq #0,d1 move.b prd_serx(a3),d1 add.b d1,d0 ; command lsl.w #2,d1 lea -4(a6,d1.w),a5 move.l a2,sys_qls1r(a5) ; set 'queue' pointer move.w sr,-(sp) or.w #$0700,sr jsr ql_hcmdn ; send nibble move.w (sp)+,sr movem.l (sp)+,d1/d2/a4/a5 move.l (sp)+,a2 move.l (sp)+,d0 rts ;+++ ; SER receive disable. ; ; a3 c p SER linkage block ; all other registers preserved ; status returned according to D0 ;--- ser_rxdi move.l d0,-(sp) move.l a2,-(sp) sub.l a2,a2 ; no queue moveq #3,d0 ; rx disable -1 sf prd_iact(a3) ; not ready now bra.s ser_cmd end
arch/x86/boot/boot1.asm
Augustu/mOS
0
178771
org 0x0 bits 16 jmp main Print: lodsb or al, al jz PrintDone mov ah, 0eh int 10h jmp Print PrintDone: ret main: cli push cs pop ds mov si, Msg call Print cli hlt Msg db "Preparing to load operating system...", 13, 10, 0
projects/batfish/src/main/antlr4/org/batfish/grammar/arista/AristaLexer.g4
adiapel/batfish
0
7268
<gh_stars>0 lexer grammar AristaLexer; options { superClass = 'org.batfish.grammar.arista.parsing.AristaBaseLexer'; } tokens { BANNER_DELIMITER_EOS, BANNER_BODY, HEX_FRAGMENT, IS_LOCAL, ISO_ADDRESS, PAREN_LEFT_LITERAL, PAREN_RIGHT_LITERAL, PASSWORD_SEED, PIPE, QUOTED_TEXT, RAW_TEXT, SELF_SIGNED, STATEFUL_DOT1X, STATEFUL_KERBEROS, STATEFUL_NTLM, TEXT, WIRED, WISPR, WORD } // Cisco Keywords AAA: 'aaa'; AAA_PROFILE: 'aaa-profile'; AAA_USER: 'aaa-user'; ABSOLUTE_TIMEOUT: 'absolute-timeout'; ACAP: 'acap'; ACCEPT: 'accept'; ACCEPT_DIALIN: 'accept-dialin'; ACCEPT_LIFETIME: 'accept-lifetime'; ACCEPT_OWN: 'accept-own'; ACCEPT_REGISTER: 'accept-register'; ACCEPT_RP: 'accept-rp'; ACCESS: 'access'; ACCESS_CLASS: 'access-class'; ACCESS_GROUP: 'access-group'; ACCESS_LIST : 'access-list' { if (lastTokenType() == IP || lastTokenType() == IPV6) { pushMode(M_Ip_access_list); } } ; ACCESS_SESSION: 'access-session'; ACCOUNTING: 'accounting'; ACCOUNTING_SERVER_GROUP: 'accounting-server-group'; ACCT_PORT: 'acct-port'; ACFE: 'acfe'; ACK: 'ack'; ACL: 'acl'; ACR_NEMA: 'acr-nema'; ACTION: 'action'; ACTION_TYPE: 'action-type'; ACTIVATE: 'activate'; ACTIVATED_SERVICE_TEMPLATE: 'activated-service-template'; ACTIVATION_CHARACTER: 'activation-character'; ACTIVE: 'active'; ADD: 'add'; ADDITIONAL_PATHS: 'additional-paths'; ADDITIVE: 'additive'; ADDRESS: 'address'; ADDRESS_FAMILY: 'address-family'; ADDRESS_HIDING: 'address-hiding'; ADDRESS_POOL: 'address-pool'; ADDRGROUP: 'addrgroup'; ADJACENCY: 'adjacency'; ADJACENCY_CHECK: 'adjacency-check'; ADJUST: 'adjust'; ADMIN_DIST: 'admin-dist'; ADMIN_DISTANCE: 'admin-distance'; ADMIN_STATE: 'admin-state'; ADMIN_VDC: 'admin-vdc'; ADMINISTRATIVELY_PROHIBITED: 'administratively-prohibited'; ADMISSION_CONTROL: 'admission-control'; ADVERTISE: 'advertise'; ADVERTISEMENT: 'advertisement'; ADVERTISE_INACTIVE: 'advertise-inactive'; ADVERTISE_ONLY: 'advertise-only'; AES: 'aes'; AES128: 'aes128'; AES192: 'aes192'; AES256: 'aes256'; AF11: 'af11'; AF12: 'af12'; AF13: 'af13'; AF21: 'af21'; AF22: 'af22'; AF23: 'af23'; AF31: 'af31'; AF32: 'af32'; AF33: 'af33'; AF41: 'af41'; AF42: 'af42'; AF43: 'af43'; AFFINITY: 'affinity'; AFFINITY_MAP: 'affinity-map'; AFPOVERTCP: 'afpovertcp'; AGE: 'age'; AGING: 'aging'; AGGREGATE: 'aggregate'; AGGREGATE_ADDRESS: 'aggregate-address'; AGGREGATE_ROUTE: 'aggregate-route'; AH: 'ah'; AH_MD5_HMAC: 'ah-md5-hmac'; AH_SHA_HMAC: 'ah-sha-hmac'; AHP: 'ahp'; AIRGROUPSERVICE: 'airgroupservice'; AIS_SHUT: 'ais-shut'; ALARM: 'alarm'; ALARM_REPORT: 'alarm-report'; ALERT: 'alert'; ALERT_GROUP: 'alert-group'; ALERTS: 'alerts'; ALG: 'alg'; ALG_BASED_CAC: 'alg-based-cac'; ALIAS : 'alias' -> pushMode ( M_Alias ) ; ALL: 'all'; ALL_ALARMS: 'all-alarms'; ALL_OF_ROUTER: 'all-of-router'; ALL_SUBNETS: 'all-subnets'; ALLOCATE: 'allocate'; ALLOCATION: 'allocation'; ALLOW: 'allow'; ALLOW_CONNECTIONS: 'allow-connections'; ALLOW_DEFAULT: 'allow-default'; ALLOW_FAIL_THROUGH: 'allow-fail-through'; ALLOW_NOPASSWORD_REMOTE_LOGIN: 'allow-nopassword-remote-login'; ALLOWED: 'allowed'; ALLOWAS_IN: 'allowas-in'; ALTERNATE_ADDRESS: 'alternate-address'; ALWAYS: 'always'; ALWAYS_COMPARE_MED: 'always-compare-med'; ALWAYS_ON: 'always-on'; ALWAYS_ON_VPN: 'always-on-vpn'; AM_DISABLE: 'am-disable'; AM_SCAN_PROFILE: 'am-scan-profile'; AMT: 'amt'; ANTENNA: 'antenna'; ANY: 'any'; ANY4: 'any4'; ANY6: 'any6'; ANYCONNECT: 'anyconnect'; ANYCONNECT_ESSENTIALS: 'anyconnect-essentials'; AOL: 'aol'; AP: 'ap'; AP_BLACKLIST_TIME: 'ap-blacklist-time'; AP_CLASSIFICATION_RULE: 'ap-classification-rule'; AP_GROUP: 'ap-group'; AP_NAME: 'ap-name'; AP_RULE_MATCHING: 'ap-rule-matching'; AP_SYSTEM_PROFILE: 'ap-system-profile'; API: 'api'; APP: 'app'; APPCATEGORY: 'appcategory'; APPLICATION: 'application'; ARAP: 'arap'; ARCHIVE: 'archive'; ARCHIVE_LENGTH: 'archive-length'; AREA: 'area'; AREA_PASSWORD: '<PASSWORD>'; ARM_PROFILE: 'arm-profile'; ARM_RF_DOMAIN_PROFILE: 'arm-rf-domain-profile'; ARP : 'arp' ; ARNS: 'arns'; AS: 'as'; AS_NUMBER: 'as-number'; AS_PATH : 'as-path' -> pushMode ( M_AsPath ) ; AS_RANGE: 'as-range'; ASPATH_CMP_INCLUDE_NEXTHOP: 'aspath-cmp-include-nexthop'; AS_SET: 'as-set'; ASCENDING: 'ascending'; ASCII_AUTHENTICATION: 'ascii-authentication'; ASDM: 'asdm'; ASDM_BUFFER_SIZE: 'asdm-buffer-size'; ASDOT: 'asdot'; ASF_RMCP: 'asf-rmcp'; ASIP_WEBADMIN: 'asip-webadmin'; ASN: 'asn'; ASPLAIN: 'asplain'; ASSIGNMENT: 'assignment'; ASSOC_RETRANSMIT: 'assoc-retransmit'; ASSOCIATE: 'associate'; ASSOCIATION: 'association'; ASYNC: 'async'; ASYNCHRONOUS: 'asynchronous'; ATTACHED_HOST: 'attached-host'; ATTACHED_HOSTS: 'attached-hosts'; ATTACHED_ROUTES: 'attached-routes'; ATM: 'atm'; ATTEMPTS: 'attempts'; ATTRIBUTE: 'attribute'; ATTRIBUTE_MAP: 'attribute-map'; ATTRIBUTE_NAMES: 'attribute-names'; ATTRIBUTE_SET: 'attribute-set'; ATTRIBUTES: 'attributes'; AT_RTMP: 'at-rtmp'; AURP: 'aurp'; AUTH: 'auth'; AUTH_FAILURE_BLACKLIST_TIME: 'auth-failure-blacklist-time'; AUTH_PORT: 'auth-port'; AUTH_PROXY: 'auth-proxy'; AUTH_SERVER: 'auth-server'; AUTH_TYPE: 'auth-type'; AUTHENTICATE: 'authenticate'; AUTHENTICATION : 'authentication' -> pushMode ( M_Authentication ) ; AUTHENTICATION_DOT1X: 'authentication-dot1x'; AUTHENTICATION_KEY: 'authentication-key'; AUTHENTICATION_MAC: 'authentication-mac'; AUTHENTICATION_RESTART: 'authentication-restart'; AUTHENTICATION_RETRIES: 'authentication-retries'; AUTHENTICATION_SERVER: 'authentication-server'; AUTHENTICATION_SERVER_GROUP: 'authentication-server-group'; AUTHORITATIVE: 'authoritative'; AUTHORIZATION: 'authorization'; AUTHORIZATION_STATUS: 'authorization-status'; AUTHORIZE: 'authorize'; AUTHORIZED: 'authorized'; AUTO: 'auto'; AUTO_CERT_ALLOW_ALL: 'auto-cert-allow-all'; AUTO_CERT_ALLOWED_ADDRS: 'auto-cert-allowed-addrs'; AUTO_CERT_PROV: 'auto-cert-prov'; AUTO_COST: 'auto-cost'; AUTO_DISCARD: 'auto-discard'; AUTO_IMPORT: 'auto-import'; AUTO_LOCAL_ADDR: 'auto-local-addr'; AUTO_RECOVERY: 'auto-recovery'; AUTO_RP: 'auto-rp'; AUTO_SUMMARY: 'auto-summary'; AUTO_SYNC: 'auto-sync'; AUTO_TUNNEL: 'auto-tunnel'; AUTO_UPGRADE: 'auto-upgrade'; AUTOHANGUP: 'autohangup'; AUTOROUTE: 'autoroute'; AUTORP: 'autorp'; AUTOSELECT: 'autoselect'; AUTOSTATE: 'autostate'; AUX: 'aux'; BACKBONEFAST: 'backbonefast'; BACKOFF_TIME: 'backoff-time'; BACKUP: 'backup'; BAND_STEERING: 'band-steering'; BANDWIDTH: 'bandwidth'; BANDWIDTH_CONTRACT: 'bandwidth-contract'; BANNER : 'banner' -> pushMode ( M_Banner ) ; BATCH_SIZE: 'batch-size'; BCMC_OPTIMIZATION: 'bcmc-optimization'; BCN_RPT_REQ_PROFILE: 'bcn-rpt-req-profile'; BEACON: 'beacon'; BESTPATH: 'bestpath'; BEYOND_SCOPE: 'beyond-scope'; BFD: 'bfd'; BFD_ECHO: 'bfd-echo'; BFD_INSTANCE: 'bfd-instance'; BFD_TEMPLATE: 'bfd-template'; BFTP: 'bftp'; BGMP: 'bgmp'; BGP: 'bgp'; BGP_POLICY: 'bgp-policy'; BIDIRECTIONAL: 'bidirectional'; BIDIR_ENABLE: 'bidir-enable'; BIDIR_OFFER_INTERVAL: 'bidir-offer-interval'; BIDIR_OFFER_LIMIT: 'bidir-offer-limit'; BIDIR_RP_LIMIT: 'bidir-rp-limit'; BIFF: 'biff'; BIND: 'bind'; BITTORRENT: 'bittorrent'; BITTORRENT_APPLICATION: 'bittorrent-application'; BKUP_LMS_IP: 'bkup-lms-ip'; BLACKLIST: 'blacklist'; BLACKLIST_TIME: 'blacklist-time'; BLOCK: 'block'; BOOT: 'boot'; BOOT_END_MARKER: 'boot-end-marker'; BOOT_START_MARKER: 'boot-start-marker'; BOOTFILE: 'bootfile'; BOOTPC: 'bootpc'; BOOTPS: 'bootps'; BORDER: 'border'; BORDER_ROUTER: 'border-router'; BOTH: 'both'; BOUNDARY : 'boundary' { if (lastTokenType() == MULTICAST) { pushMode(M_Prefix_Or_Standard_Acl); } } ; BPDUFILTER: 'bpdufilter'; BPDUGUARD: 'bpduguard'; BREAKOUT: 'breakout'; BRIDGE: 'bridge'; BRIDGE_DOMAIN: 'bridge-domain'; BRIDGE_GROUP: 'bridge-group'; BROADCAST: 'broadcast'; BROADCAST_FILTER: 'broadcast-filter'; BSR: 'bsr'; BSR_BORDER: 'bsr-border'; BSR_CANDIDATE: 'bsr-candidate'; BUCKETS: 'buckets'; BUFFER_LIMIT: 'buffer-limit'; BUFFER_SIZE: 'buffer-size'; BUFFERED: 'buffered'; BUG_ALERT: 'bug-alert'; BURST: 'burst'; BURST_SIZE: 'burst-size'; BYPASS: 'bypass'; BYTES: 'bytes'; CA: 'ca'; CABLE: 'cable'; CABLE_DOWNSTREAM: 'cable-downstream'; CABLE_RANGE: 'cable-range'; CABLE_UPSTREAM: 'cable-upstream'; CABLELENGTH : 'cablelength' -> pushMode ( M_COMMENT ) ; CACHE: 'cache'; CALL: 'call'; CALL_BLOCK: 'call-block'; CALL_FORWARD: 'call-forward'; CALL_HOME: 'call-home'; CALL_MANAGER_FALLBACK: 'call-manager-fallback'; CALLER_ID: 'caller-id'; CALLHOME: 'callhome'; CAPABILITY: 'capability'; CAPACITY: 'capacity'; CAPTIVE: 'captive'; CAPTIVE_PORTAL: 'captive-portal'; CAPTIVE_PORTAL_CERT: 'captive-portal-cert'; CAPTURE: 'capture'; CARD_TRAP_INH: 'card-trap-inh'; CARRIER_DELAY: 'carrier-delay'; CASE: 'case'; CAUSE: 'cause'; CCAP_CORE: 'ccap-core'; CDP: 'cdp'; CDP_URL: 'cdp-url'; CEILING: 'ceiling'; CENTRALIZED_LICENSING_ENABLE: 'centralized-licensing-enable'; CERTIFICATE : 'certificate' -> pushMode ( M_Certificate ) ; CHAIN: 'chain'; CHANGES: 'changes'; CHANNEL: 'channel'; CHANNEL_GROUP: 'channel-group'; CHANNEL_PROTOCOL: 'channel-protocol'; CHAP: 'chap'; CHARGEN: 'chargen'; CHASSIS_ID: 'chassis-id'; CHECK: 'check'; CIFS: 'cifs'; CIPC: 'cipc'; CIR: 'cir'; CIRCUIT_ID : 'circuit-id' -> pushMode ( M_Word ) ; CIRCUIT_TYPE: 'circuit-type'; CISCO_TDP: 'cisco_TDP'; CITADEL: 'citadel'; CITRIX_ICA: 'citrix-ica'; CLASS: 'class'; CLASS_DEFAULT: 'class-default'; CLASS_MAP: 'class-map'; CLEAR: 'clear'; CLEARCASE: 'clearcase'; CLEAR_SESSION: 'clear-session'; CLIENT: 'client'; CLIENT_IDENTIFIER: 'client-identifier'; CLIENT_NAME: 'client-name'; CLIENT_TO_CLIENT: 'client-to-client'; CLNS: 'clns'; CLOCK: 'clock'; CLOCK_PERIOD: 'clock-period'; CLOSED: 'closed'; CLUSTER: 'cluster'; CLUSTER_ID: 'cluster-id'; CLUSTER_LIST_LENGTH: 'cluster-list-length'; CMD: 'cmd'; CMTS: 'cmts'; CODEC: 'codec'; COLLECT: 'collect'; COLLECT_STATS: 'collect-stats'; COMM_LIST: 'comm-list'; COMMAND : 'command' -> pushMode ( M_Command ) ; COMMANDS: 'commands'; COMMERCE: 'commerce'; COMMIT: 'commit'; COMMON: 'common'; COMMON_NAME: 'common-name'; COMMUNITY : 'community' ; COMMUNITY_LIST : 'community-list' -> pushMode(M_CommunityList) ; COMMUNITY_MAP : 'community-map' -> pushMode ( M_Name ) ; COMPATIBLE: 'compatible'; CON: 'con'; CONF_LEVEL_INCR: 'conf-level-incr'; CONFED: 'confed'; CONFEDERATION: 'confederation'; CONFIG_COMMANDS: 'config-commands'; CONFIGURATION: 'configuration'; CONFIGURE: 'configure'; CONFORM_ACTION: 'conform-action'; CONGESTION_DROPS: 'congestion-drops'; CONGESTION_CONTROL: 'congestion-control'; CONNECT_SOURCE: 'connect-source'; CONNECTED: 'connected'; CONNECTION: 'connection'; CONNECTION_MODE: 'connection-mode'; CONNECTION_REUSE: 'connection-reuse'; CONSOLE: 'console'; CONSORTIUM: 'consortium'; CONTACT: 'contact'; CONTACT_EMAIL_ADDR: 'contact-email-addr'; CONTACT_NAME : 'contact-name' -> pushMode ( M_Description ) ; CONTENT_TYPE: 'content-type'; CONTEXT: 'context'; CONTEXT_NAME: 'context-name'; CONTINUE : ( 'continue' ) | ( 'Continue' ) ; CONTRACT_ID: 'contract-id'; CONTROL: 'control'; CONTROL_DIRECTION: 'control-direction'; CONTROL_PLANE: 'control-plane'; CONTROL_PLANE_FILTER: 'control-plane-filter'; CONTROL_PLANE_SECURITY: 'control-plane-security'; CONTROLLER : 'controller' -> pushMode ( M_Interface ) ; CONVERGENCE: 'convergence'; CONVERSION_ERROR: 'conversion-error'; COOKIE: 'cookie'; COPS: 'cops'; COS: 'cos'; COS_QUEUE_GROUP: 'cos-queue-group'; COST: 'cost'; COUNT: 'count'; COUNTRY: 'country'; COUNTRY_CODE: 'country-code'; COUNTER: 'counter'; COUNTERS: 'counters'; COURIER: 'courier'; CPTONE: 'cptone'; CRC: 'crc'; CRITICAL: 'critical'; CRYPTO: 'crypto'; CRYPTOGRAPHIC_ALGORITHM: 'cryptographic-algorithm'; CRL: 'crl'; CS1: 'cs1'; CS2: 'cs2'; CS3: 'cs3'; CS4: 'cs4'; CS5: 'cs5'; CS6: 'cs6'; CS7: 'cs7'; CSD: 'csd'; CSNP_INTERVAL: 'csnp-interval'; CSNET_NS: 'csnet-ns'; CSR_PARAMS: 'csr-params'; CTIQBE: 'ctiqbe'; CTL_FILE: 'ctl-file'; CUSTOM: 'custom'; CUSTOMER_ID: 'customer-id'; CVX: 'cvx'; CVX_CLUSTER: 'cvx-cluster'; CVX_LICENSE: 'cvx-license'; CWR: 'cwr'; D20_GGRP_DEFAULT: 'd20-ggrp-default'; D30_GGRP_DEFAULT: 'd30-ggrp-default'; DAD: 'dad'; DAEMON: 'daemon'; DAMPENING: 'dampening'; DATA_PRIVACY: 'data-privacy'; DATABASE: 'database'; DATABITS: 'databits'; DAYTIME: 'daytime'; DBL: 'dbl'; DCB: 'dcb'; DCB_POLICY: 'dcb-policy'; DCBX: 'dcbx'; DCE_MODE: 'dce-mode'; DEAD_INTERVAL: 'dead-interval'; DEADTIME: 'deadtime'; DEBUG: 'debug'; DEBUG_TRACE: 'debug-trace'; DEBUGGING: 'debugging'; DEFAULT: 'default'; DEFAULT_ACTION: 'default-action'; DEFAULT_ALLOW: 'default-allow'; DEFAULT_COST: 'default-cost'; DEFAULT_DESTINATION: 'default-destination'; DEFAULT_GATEWAY: 'default-gateway'; DEFAULT_GROUP_POLICY: 'default-group-policy'; DEFAULT_GUEST_ROLE: 'default-guest-role'; DEFAULT_GW: 'default-gw'; DEFAULT_INFORMATION: 'default-information'; DEFAULT_INFORMATION_ORIGINATE: 'default-information-originate'; DEFAULT_INSPECTION_TRAFFIC: 'default-inspection-traffic'; DEFAULT_METRIC: 'default-metric'; DEFAULT_ORIGINATE: 'default-originate'; DEFAULT_ROLE: 'default-role'; DEFAULT_ROUTER: 'default-router'; DEFAULT_ROUTE: 'default-route'; DEFAULT_TASKGROUP: 'default-taskgroup'; DEFAULT_TOS_QOS10: 'default-tos-qos10'; DEFINITION: 'definition' -> pushMode(M_Word); DEL: 'Del'; DELIMITER: 'delimiter'; DELAY: 'delay'; DELAY_START: 'delay-start'; DELETE: 'delete'; DELETE_DYNAMIC_LEARN: 'delete-dynamic-learn'; DENY: 'deny'; DENY_IN_OUT: 'deny-in-out'; DENY_INTER_USER_TRAFFIC: 'deny-inter-user-traffic'; DEPI_CLASS: 'depi-class'; DEPI_TUNNEL: 'depi-tunnel'; DERIVATION_RULES: 'derivation-rules'; DES: 'des'; DESCENDING: 'descending'; DESCRIPTION : 'description' -> pushMode ( M_Description ) ; DESIGNATED_FORWARDER: 'designated-forwarder'; DESIRABLE: 'desirable'; DEST_IP: 'dest-ip'; DESTINATION: 'destination'; DESTINATION_PATTERN: 'destination-pattern'; DESTINATION_PROFILE: 'destination-profile'; DESTINATION_UNREACHABLE: 'destination-unreachable'; DETAIL: 'detail'; DETECT_ADHOC_NETWORK: 'detect-adhoc-network'; DETECT_AP_FLOOD: 'detect-ap-flood'; DETECT_AP_IMPERSONATION: 'detect-ap-impersonation'; DETECT_BAD_WEP: 'detect-bad-wep'; DETECT_BEACON_WRONG_CHANNEL: 'detect-beacon-wrong-channel'; DETECT_CHOPCHOP_ATTACK: 'detect-chopchop-attack'; DETECT_CLIENT_FLOOD: 'detect-client-flood'; DETECT_CTS_RATE_ANOMALY: 'detect-cts-rate-anomaly'; DETECT_EAP_RATE_ANOMALY: 'detect-eap-rate-anomaly'; DETECT_HOTSPOTTER: 'detect-hotspotter'; DETECT_HT_40MHZ_INTOLERANCE: 'detect-ht-40mhz-intolerance'; DETECT_HT_GREENFIELD: 'detect-ht-greenfield'; DETECT_INVALID_ADDRESS_COMBINATION: 'detect-invalid-address-combination'; DETECT_INVALID_MAC_OUI: 'detect-invalid-mac-oui'; DETECT_MALFORMED_ASSOCIATION_REQUEST: 'detect-malformed-association-request'; DETECT_MALFORMED_AUTH_FRAME: 'detect-malformed-auth-frame'; DETECT_MALFORMED_HTIE: 'detect-malformed-htie'; DETECT_MALFORMED_LARGE_DURATION: 'detect-malformed-large-duration'; DETECT_MISCONFIGURED_AP: 'detect-misconfigured-ap'; DETECT_OVERFLOW_EAPOL_KEY: 'detect-overflow-eapol-key'; DETECT_OVERFLOW_IE: 'detect-overflow-ie'; DETECT_RATE_ANOMALIES: 'detect-rate-anomalies'; DETECT_RTS_RATE_ANOMALY: 'detect-rts-rate-anomaly'; DETECT_TKIP_REPLAY_ATTACK: 'detect-tkip-replay-attack'; DETECT_VALID_SSID_MISUSE: 'detect-valid-ssid-misuse'; DETECT_WIRELESS_BRIDGE: 'detect-wireless-bridge'; DETECT_WIRELESS_HOSTED_NETWORK: 'detect-wireless-hosted-network'; DEVICE: 'device'; DEVICE_ID: 'device-id'; DISCARDS: 'discards'; DISCRIMINATOR: 'discriminator'; DISPUTE: 'dispute'; DF: 'df'; DF_BIT: 'df-bit'; DFS: 'dfs'; DHCP: 'dhcp'; DHCP_FAILOVER2: 'dhcp-failover2'; DHCPV6_CLIENT: 'dhcpv6-client'; DHCPV6_SERVER: 'dhcpv6-server'; DIAGNOSTIC_SIGNATURE: 'diagnostic-signature'; DIAL_PEER: 'dial-peer'; DIAL_STRING: 'dial-string'; DIALER: 'dialer'; DIALER_GROUP: 'dialer-group'; DIALPLAN_PATTERN: 'dialplan-pattern'; DIALPLAN_PROFILE: 'dialplan-profile'; DIRECT: 'direct'; DIRECT_INSTALL: 'direct-install'; DIRECT_INWARD_DIAL: 'direct-inward-dial'; DIRECTED_BROADCAST: 'directed-broadcast'; DIRECTED_REQUEST: 'directed-request'; DIRECTION: 'direction'; DISABLE: 'disable'; DISABLED: 'disabled'; DISCARD: 'discard'; DISCARD_ROUTE: 'discard-route'; DISCOVERED_AP_CNT: 'discovered-ap-cnt'; DISCOVERY: 'discovery'; DISTANCE: 'distance'; DISTRIBUTE: 'distribute'; DISTRIBUTE_LIST: 'distribute-list'; DM_FALLBACK: 'dm-fallback'; DNS: 'dns'; DNS_DOMAIN: 'dns-domain'; DNS_SERVER: 'dns-server'; DNS_SERVERS: 'dns-servers'; DNS_SUFFIXES: 'dns-suffixes'; DNSIX: 'dnsix'; DO_UNTIL_FAILURE: 'do-until-failure'; DOCSIS_ENABLE: 'docsis-enable'; DOCSIS_GROUP: 'docsis-group'; DOCSIS_POLICY: 'docsis-policy'; DOCSIS_VERSION: 'docsis-version'; DOCSIS30_ENABLE: 'docsis30-enable'; DOD_HOST_PROHIBITED: 'dod-host-prohibited'; DOD_NET_PROHIBITED: 'dod-net-prohibited'; DOMAIN: 'domain'; DOMAIN_ID: 'domain-id'; DOMAIN_LIST: 'domain-list'; DOMAIN_NAME: 'domain-name'; DONT_CAPABILITY_NEGOTIATE: 'dont-capability-negotiate'; DOS_PROFILE: 'dos-profile'; DOT11: 'dot11'; DOT11A_RADIO_PROFILE: 'dot11a-radio-profile'; DOT11G_RADIO_PROFILE: 'dot11g-radio-profile'; DOT11K_PROFILE: 'dot11k-profile'; DOT11R_PROFILE: 'dot11r-profile'; DOT1P_PRIORITY: 'dot1p-priority'; DOT1Q : 'dot1' [Qq] ; DOT1Q_TUNNEL: 'dot1q-tunnel'; DOT1X: 'dot1x'; DOT1X_DEFAULT_ROLE: 'dot1x-default-role'; DOT1X_SERVER_GROUP: 'dot1x-server-group'; DOWNSTREAM: 'downstream'; DOWNSTREAM_START_THRESHOLD: 'downstream-start-threshold'; DPG: 'dpg'; DR_PRIORITY: 'dr-priority'; DROP: 'drop'; DS_HELLO_INTERVAL: 'ds-hello-interval'; DS_MAX_BURST: 'ds-max-burst'; DSCP: 'dscp'; DSCP_VALUE: 'dscp-value'; DSG: 'dsg'; DSL: 'dsl'; DSP: 'dsp'; DSPFARM: 'dspfarm'; DST_NAT: 'dst-nat'; DSU: 'dsu'; DTMF_RELAY: 'dtmf-relay'; DTP: 'dtp'; DUAL_ACTIVE: 'dual-active'; DUPLEX: 'duplex'; DUPLICATE_MESSAGE: 'duplicate-message'; DURATION: 'duration'; DYNAMIC: 'dynamic'; DYNAMIC_ACCESS_POLICY_RECORD: 'dynamic-access-policy-record'; DYNAMIC_AUTHOR: 'dynamic-author'; DYNAMIC_MAP: 'dynamic-map'; DYNAMIC_MCAST_OPTIMIZATION: 'dynamic-mcast-optimization'; DYNAMIC_MCAST_OPTIMIZATION_THRESH: 'dynamic-mcast-optimization-thresh'; E164: 'e164'; E164_PATTERN_MAP: 'e164-pattern-map'; EAP_PASSTHROUGH: 'eap-passthrough'; EAPOL_RATE_OPT: 'eapol-rate-opt'; EARLY_OFFER: 'early-offer'; EBGP_MULTIHOP: 'ebgp-multihop'; ECE: 'ece'; ECHO: 'echo'; ECHO_CANCEL: 'echo-cancel'; ECHO_REPLY: 'echo-reply'; ECHO_REQUEST: 'echo-request'; ECHO_RX_INTERVAL: 'echo-rx-interval'; ECMP: 'ecmp'; ECMP_FAST: 'ecmp-fast'; ECN: 'ecn'; EDCA_PARAMETERS_PROFILE: 'edca-parameters-profile'; EDGE: 'edge'; EF: 'ef'; EFP: 'EFP'; EFS: 'efs'; EGP: 'egp'; EGRESS: 'egress'; EGRESS_INTERFACE_SELECTION: 'egress-interface-selection'; ELECTION: 'election'; EMAIL: 'email'; EMAIL_ADDR : 'email-addr' -> pushMode ( M_Description ) ; EMAIL_CONTACT : 'email-contact' -> pushMode ( M_Description ) ; EMERGENCIES: 'emergencies'; EMPTY: 'empty'; ENABLE: 'enable'; ENABLE_AUTHENTICATION: 'enable-authentication'; ENABLE_WELCOME_PAGE: 'enable-welcome-page'; ENABLED: 'enabled'; ENCAPSULATION: 'encapsulation'; ENCODING: 'encoding'; ENCODING_WEIGHTED: 'encoding-weighted'; ENCR: 'encr'; ENCRYPTED: 'encrypted'; ENCRYPTED_PASSWORD: '<PASSWORD>'; ENCRYPTION: 'encryption'; END: 'end'; END_CLASS_MAP: 'end-class-map'; END_POLICY_MAP: 'end-policy-map'; ENET_LINK_PROFILE: 'enet-link-profile'; ENFORCE_DHCP: 'enforce-dhcp'; ENFORCE_FIRST_AS: 'enforce-first-as'; ENFORCE_RULE: 'enforce-rule'; ENFORCED: 'enforced'; ENGINE: 'engine'; ENGINEID : ( 'engineid' | 'engineID' ) -> pushMode ( M_COMMENT ) ; ENROLLMENT: 'enrollment'; EOU: 'eou'; EPHONE_DN_TEMPLATE: 'ephone-dn-template'; EPP: 'epp'; EQ: 'eq'; ERRDISABLE: 'errdisable'; ERROR: 'error'; ERROR_CORRECTION: 'error-correction'; ERROR_ENABLE: 'error-enable'; ERROR_RATE_THRESHOLD: 'error-rate-threshold'; ERROR_PASSTHRU: 'error-passthru'; ERROR_RECOVERY: 'error-recovery'; ERROR_REPORTING: 'error-reporting'; ERRORS: 'errors'; ERSPAN_ID: 'erspan-id'; ESCAPE_CHARACTER: 'escape-character'; ESM: 'esm'; ESP: 'esp'; ESP_3DES: 'esp-3des'; ESP_AES: 'esp-aes'; ESP_AES128: 'esp-aes128'; ESP_AES192: 'esp-aes192'; ESP_AES256: 'esp-aes256'; ESP_DES: 'esp-des'; ESP_GCM: 'esp-gcm'; ESP_AES128_GCM: 'esp-aes128-gcm'; ESP_AES256_GCM: 'esp-aes256-gcm'; ESP_GMAC: 'esp-gmac'; ESP_MD5_HMAC: 'esp-md5-hmac'; ESP_NULL: 'esp-null'; ESP_SEAL: 'esp-seal'; ESP_SHA_HMAC: 'esp-sha-hmac'; ESP_SHA256_HMAC: 'esp-sha256-hmac'; ESP_SHA512_HMAC: 'esp-sha512-hmac'; ESRO_GEN: 'esro-gen'; ESSID: 'essid'; ESTABLISHED: 'established'; ETH: 'eth'; ETHERCHANNEL: 'etherchannel'; ETHERNET: 'ethernet'; ETHERNET_SEGMENT: 'ethernet-segment'; ETHERNET_SERVICES: 'ethernet-services'; ETHERTYPE: 'ethertype'; ETYPE: 'etype'; EVALUATE: 'evaluate'; EVENT: 'event'; EVENT_HANDLER: 'event-handler'; EVENT_HISTORY: 'event-history'; EVENT_MONITOR: 'event-monitor'; EVENT_THRESHOLDS_PROFILE: 'event-thresholds-profile'; EVENTS: 'events'; EVPN: 'evpn'; EXCEED_ACTION: 'exceed-action'; EXCEPT: 'except'; EXCEPTION: 'exception'; EXCLUDE: 'exclude'; EXCLUDED_ADDRESS: 'excluded-address'; EXEC: 'exec'; EXEC_TIMEOUT: 'exec-timeout'; EXIT: 'exit'; EXIT_ADDRESS_FAMILY: 'exit-address-family'; EXPIRE: 'expire'; EXPLICIT_NULL: 'explicit-null'; EXPORT: 'export'; EXPORT_LOCALPREF: 'export-localpref'; EXPORT_PROTOCOL: 'export-protocol'; EXPORTER: 'exporter'; EXPORTER_MAP: 'exporter-map'; EXPANDED: 'expanded'; EXTCOMMUNITY : 'extcommunity' { if (lastTokenType() == SET) { pushMode(M_Extcommunity); } } ; EXTEND: 'extend'; EXTENDED: 'extended'; EXTENDED_COUNTERS: 'extended-counters'; EXTENDED_DELAY: 'extended-delay'; EXTERNAL: 'external'; EXTERNAL_LSA: 'external-lsa'; FABRIC: 'fabric'; FABRIC_MODE: 'fabric-mode'; FABRICPATH: 'fabricpath'; FACILITY : 'facility' -> pushMode ( M_Word ) ; FAIL_MESSAGE: 'fail-message'; FAILED_LIST: 'failed-list'; FAILOVER: 'failover'; FAILURE: 'failure'; FAIR_QUEUE: 'fair-queue'; FALL_OVER: 'fall-over'; FALLBACK: 'fallback'; FALLBACK_DN: 'fallback-dn'; FAST_AGE: 'fast-age'; FAST_DETECT: 'fast-detect'; FAST_FLOOD: 'fast-flood'; FAST_REROUTE: 'fast-reroute'; FASTDROP: 'fastdrop'; FAX: 'fax'; FCOE: 'fcoe'; FDL : 'fdl' ; FEATURE: 'feature'; FEC: 'fec'; FEX: 'fex'; FEX_FABRIC: 'fex-fabric'; FIB: 'fib'; FIBER_NODE : 'fiber-node' -> pushMode ( M_FiberNode ) ; FILE_TRANSFER: 'file-transfer'; FILTER: 'filter'; FILTER_LIST: 'filter-list'; FIN: 'fin'; FINGER: 'finger'; FLAP_LIST: 'flap-list'; FLASH: 'flash'; FLASH_OVERRIDE: 'flash-override'; FLOOD: 'flood'; FLOW: 'flow'; FLOW_SAMPLER_MAP: 'flow-sampler-map'; FLOW_SPEC: 'flow-spec'; FLOWCONTROL: 'flowcontrol'; FLUSH_AT_ACTIVATION: 'flush-at-activation'; FLUSH_R1_ON_NEW_R0: 'flush-r1-on-new-r0'; FORCED: 'forced'; FOR: 'for'; FORMAT: 'format'; FORTYG_FULL: '40gfull'; FORWARD: 'forward'; FORWARD_DIGITS: 'forward-digits'; FORWARDER: 'forwarder'; FORWARDING: 'forwarding'; FQDN: 'fqdn'; FRAGMENTATION: 'fragmentation'; FRAGMENT_RULES: 'fragment-rules'; FRAGMENTS: 'fragments'; FRAME_RELAY: 'frame-relay'; FRAMING: 'framing'; FREE_CHANNEL_INDEX: 'free-channel-index'; FREQUENCY: 'frequency'; FROM: 'from'; FROM_USER: 'from-user'; FTP: 'ftp'; FTP_DATA: 'ftp-data'; FTPS: 'ftps'; FTPS_DATA: 'ftps-data'; FULL_DUPLEX: 'full-duplex'; FULL_TXT: 'full-txt'; G709: 'g709'; G729: 'g729'; GBPS: 'Gbps'; GDOI: 'gdoi'; GE: 'ge'; GENERAL_GROUP_DEFAULTS: 'general-group-defaults'; GENERAL_PARAMETER_PROBLEM: 'general-parameter-problem'; GENERAL_PROFILE: 'general-profile'; GENERATE: 'generate'; GIG_DEFAULT: 'gig-default'; GLBP: 'glbp'; GLOBAL: 'global'; GLOBALENFORCEPRIV: 'globalEnforcePriv'; GLOBAL_PORT_SECURITY: 'global-port-security'; GOPHER: 'gopher'; GODI: 'godi'; GRACEFUL: 'graceful'; GRACE_PERIOD: 'grace-period'; GRACEFUL_RESTART: 'graceful-restart'; GRACEFUL_RESTART_HELPER: 'graceful-restart-helper'; GRACETIME: 'gracetime'; GRANT: 'grant'; GRATUITOUS: 'gratuitous'; GRE: 'gre'; GREEN: 'green'; GROUP: 'group'; GROUP_LIST: 'group-list'; GROUP_LOCK: 'group-lock'; GROUP_RANGE: 'group-range'; GROUP_TIMEOUT: 'group-timeout'; GROUP_URL: 'group-url'; GROUP1: 'group1'; GROUP14: 'group14'; GROUP15: 'group15'; GROUP16: 'group16'; GROUP19: 'group19'; GROUP2: 'group2'; GROUP20: 'group20'; GROUP21: 'group21'; GROUP24: 'group24'; GROUP5: 'group5'; GSHUT: 'GSHUT'; GT: 'gt'; GTP_C: 'gtp-c'; GTP_PRIME: 'gtp-prime'; GTP_U: 'gtp-u'; GUARANTEED: 'guaranteed'; GUARD: 'guard'; GUEST_ACCESS_EMAIL: 'guest-access-email'; GUEST_LOGON: 'guest-logon'; GUEST_MODE: 'guest-mode'; H225: 'h225'; H323: 'h323'; H323_GATEWAY: 'h323-gateway'; HA_CLUSTER: 'ha-cluster'; HALF_DUPLEX: 'half-duplex'; HANDOVER_TRIGGER_PROFILE: 'handover-trigger-profile'; HARDWARE: 'hardware'; HARDWARE_ADDRESS: 'hardware-address'; HASH: 'hash'; HEADER_PASSING: 'header-passing'; HEARTBEAT: 'heartbeat'; HEARTBEAT_INTERVAL: 'heartbeat-interval'; HEARTBEAT_TIMEOUT: 'heartbeat-timeout'; HELLO: 'hello'; HELLO_INTERVAL: 'hello-interval'; HELLO_MULTIPLIER: 'hello-multiplier'; HELLO_PADDING: 'hello-padding'; HELLO_PASSWORD: '<PASSWORD>'; HELPER_ADDRESS: 'helper-address'; HEX_KEY: 'hex-key'; HIDDEN_LITERAL: 'hidden'; HIDEKEYS: 'hidekeys'; HIGH: 'high'; HIGH_RESOLUTION: 'high-resolution'; HISTORY: 'history'; HOLD_TIME: 'hold-time'; HOLD_QUEUE: 'hold-queue'; HOP_LIMIT: 'hop-limit'; HOPLIMIT: 'hoplimit'; HOPS_OF_STATISTICS_KEPT: 'hops-of-statistics-kept'; HOST : 'host' { if (lastTokenType() == LOGGING || secondToLastTokenType() == VRF) { pushMode(M_Word); } } ; HOST_ASSOCIATION: 'host-association'; HOST_FLAP: 'host-flap'; HOST_ISOLATED: 'host-isolated'; HOST_PRECEDENCE_UNREACHABLE: 'host-precedence-unreachable'; HOST_PROXY: 'host-proxy'; HOST_REDIRECT: 'host-redirect'; HOST_ROUTE: 'host-route'; HOST_ROUTES: 'host-routes'; HOST_TOS_REDIRECT: 'host-tos-redirect'; HOST_TOS_UNREACHABLE: 'host-tos-unreachable'; HOST_UNKNOWN: 'host-unknown'; HOST_UNREACHABLE: 'host-unreachable'; HOSTNAME: 'hostname'; HOSTNAMEPREFIX: 'hostnameprefix'; HOTSPOT: 'hotspot'; HP_ALARM_MGR: 'hp-alarm-mgr'; HSC: 'hsc'; HT_SSID_PROFILE: 'ht-ssid-profile'; HTTP: 'http'; HTTP_ALT: 'http-alt'; HTTP_COMMANDS: 'http-commands'; HTTP_MGMT: 'http-mgmt'; HTTP_RPC_EPMAP: 'http-tpc-epmap'; HTTPS: 'https'; HUNT: 'hunt'; IBURST: 'iburst'; ICMP: 'icmp'; ICMP_ECHO: 'icmp-echo'; ICMP6: 'icmp6'; ICMPV6: 'icmpv6'; ID: 'id'; ID_MISMATCH: 'id-mismatch'; ID_RANDOMIZATION: 'id-randomization'; IDEAL_COVERAGE_INDEX: 'ideal-coverage-index'; IDENT: 'ident'; IDENTIFIER: 'identifier'; IDENTITY: 'identity'; IDLE_TIMEOUT: 'idle-timeout'; IDLE_RESTART_TIMER: 'idle-restart-timer'; IDP_CERT: 'idp-cert'; IDS: 'ids'; IDS_PROFILE: 'ids-profile'; IEC: 'iec'; IEEE: 'ieee'; IEEE_MMS_SSL: 'ieee-mms-ssl'; IFACL: 'ifacl'; IF_NEEDED: 'if-needed'; IFINDEX: 'ifindex'; IFMAP: 'ifmap'; IFMIB: 'ifmib'; IFP: 'IFP'; IGMP: 'igmp'; IGP_COST: 'igp-cost'; IGRP: 'igrp'; IGNORE: 'ignore'; IGNORE_ATTACHED_BIT: 'ignore-attached-bit'; IGP: 'igp'; IKE: 'ike'; IKEV1: 'ikev1'; IKEV2: 'ikev2'; IKEV2_PROFILE: 'ikev2-profile'; IMAP: 'imap'; IMAP3: 'imap3'; IMAP4: 'imap4'; IMAPS: 'imaps'; IMMEDIATE: 'immediate'; IMPERSONATION_PROFILE: 'impersonation-profile'; IMPLICIT_USER: 'implicit-user'; IMPORT: 'import'; IMPORT_LOCALPREF: 'import-localpref'; IN: 'in'; IN_PLACE: 'in-place'; INACTIVITY_TIMER: 'inactivity-timer'; INBAND: 'inband'; INBOUND: 'inbound'; INCLUDE: 'include'; INCLUDE_STUB: 'include-stub'; INCOMING: 'incoming'; INCOMPLETE: 'incomplete'; INDEX: 'index'; INFINITY: 'infinity'; INFORM: 'inform'; INFORMATION: 'information'; INFORMATION_REPLY: 'information-reply'; INFORMATION_REQUEST: 'information-request'; INFORMATIONAL: 'informational'; INFORMS: 'informs'; INGRESS: 'ingress'; INHERITANCE: 'inheritance'; INIT: 'init'; INIT_STRING: 'init-string'; INIT_TECH_LIST: 'init-tech-list'; INITIAL_ROLE: 'initial-role'; INPUT: 'input'; INSPECT: 'inspect'; INSTALL: 'install'; INSTALL_MAP: 'install-map'; INSTALL_OIFS: 'install-oifs'; INSTANCE: 'instance' { if (lastTokenType() == VRF) { pushMode(M_Word); } }; INTEGRITY: 'integrity'; INTERCEPT: 'intercept'; INTERFACE : 'int' 'erface'? -> pushMode(M_Interface) ; INTERNAL: 'internal'; INTERNET: 'internet'; INTERVAL: 'interval'; INVALID_SPI_RECOVERY: 'invalid-spi-recovery'; INVALID_USERNAME_LOG: 'invalid-username-log'; INVERT: 'invert'; IP: 'ip'; IPADDRESS: 'ipaddress'; IPC: 'ipc'; IPENACL: 'ipenacl'; IPINIP: 'ipinip'; IPP: 'ipp'; IPSEC: 'ipsec'; IPSEC_ISAKMP: 'ipsec-isakmp'; IPSEC_MANUAL: 'ipsec-manual'; IPSEC_OVER_TCP: 'ipsec-over-tcp'; IPSEC_PROPOSAL: 'ipsec-proposal'; IPSLA: 'ipsla'; IPV4 : [iI] [pP] [vV] '4' ; IPV4_L5: 'ipv4-l5'; IPV4_UNICAST: 'ipv4-unicast'; IPV6 : [iI] [pP] [vV] '6' ; IPV6_ADDRESS_POOL: 'ipv6-address-pool'; IPV6_UNICAST: 'ipv6-unicast'; IPV6IP: 'ipv6ip'; IPX: 'ipx'; IRC: 'irc'; IRIS_BEEP: 'iris-beep'; ISAKMP: 'isakmp'; ISAKMP_PROFILE: 'isakmp-profile'; ISDN: 'isdn'; IS_TYPE: 'is-type'; ISCSI: 'iscsi'; ISI_GL: 'isi-gl'; ISIS: 'isis'; ISL: 'isl'; ISO_TSAP: 'iso-tsap'; ISOLATE: 'isolate'; ISPF: 'ispf'; ISSUER_NAME: 'issuer-name'; IUC: 'iuc'; JOIN_GROUP: 'join-group'; JOIN_PRUNE: 'join-prune'; JOIN_PRUNE_COUNT: 'join-prune-count'; JOIN_PRUNE_INTERVAL: 'join-prune-interval'; JUMBO: 'jumbo'; JUMBOMTU: 'jumbomtu'; KBPS: 'kbps'; KBYTES: 'kbytes'; KEEPALIVE: 'keepalive'; KEEPALIVE_ENABLE: 'keepalive-enable'; KEEPOUT: 'keepout'; KERBEROS: 'kerberos'; KERBEROS_ADM: 'kerberos-adm'; KEY: 'key'; KEY_CHAIN: 'key-chain'; KEY_EXCHANGE: 'key-exchange'; KEY_HASH: 'key-hash'; KEY_SOURCE: 'key-source'; KEY_STRING: 'key-string'; KEYED_SHA1 : [kK][eE][yY][eE][dD]'-'[sS][hH][aA]'1' ; KEYID: 'keyid'; KEYPAIR: 'keypair'; KEYRING: 'keyring'; KLOGIN: 'klogin'; KOD: 'kod'; KPASSWD: '<PASSWORD>'; KRB5: 'krb5'; KRB5_TELNET: 'krb5-telnet'; KSHELL: 'kshell'; L2: 'l2'; L2_FILTER: 'l2-filter'; L2_PROTOCOL: 'l2-protocol'; L2PROTOCOL: 'l2protocol'; L2PROTOCOL_TUNNEL: 'l2protocol-tunnel'; L2TP: 'l2tp'; L2TP_CLASS: 'l2tp-class'; L2TRANSPORT: 'l2transport'; L2VPN: 'l2vpn'; LABEL: 'label'; LA_MAINT: 'la-maint'; LABELED_UNICAST: 'labeled-unicast'; LACP: 'lacp'; LANE: 'lane'; LANZ: 'lanz'; LAPB: 'lapb'; LAST_AS: 'last-as'; LAST_LISTENER_QUERY_COUNT: 'last-listener-query-count'; LAST_LISTENER_QUERY_INTERVAL: 'last-listener-query-interval'; LAST_MEMBER_QUERY_COUNT: 'last-member-query-count'; LAST_MEMBER_QUERY_INTERVAL: 'last-member-query-interval'; LAST_MEMBER_QUERY_RESPONSE_TIME: 'last-member-query-response-time'; LDAP: 'ldap'; LDAPS: 'ldaps'; LDP: 'ldp'; LE: 'le'; LEARNED: 'learned'; LEARNING: 'learning'; LEASE: 'lease'; LEVEL : 'level' { if (lastTokenType() == LOGGING) { pushMode(M_Word); } } ; LEVEL_1: 'level-1'; LEVEL_1_2: 'level-1-2'; LEVEL_2: 'level-2'; LEVEL_2_ONLY: 'level-2-only'; LENGTH: 'length'; LICENSE: 'license'; LIFE: 'life'; LIFETIME: 'lifetime'; LIMIT: 'limit'; LIMIT_DN: 'limit-dn'; LINE: 'line'; LINE_PROTOCOL: 'line-protocol'; LINE_TERMINATION: 'line-termination'; LINECARD: 'linecard'; LINECARD_GROUP: 'linecard-group'; LINECODE: 'linecode'; LINK: 'link'; LINK_BANDWIDTH: 'link-bandwidth'; LINK_CHANGE: 'link-change'; LINK_DEBOUNCE: 'link-debounce'; LINK_FAIL: 'link-fail'; LINK_FAULT_SIGNALING: 'link-fault-signaling'; LINK_STATUS: 'link-status'; LINK_TYPE: 'link-type'; LINKSEC: 'linksec'; LINKDEBOUNCE: 'linkdebounce'; LIST: 'list'; LISTEN: 'listen'; LISTEN_PORT: 'listen-port'; LISTENER: 'listener'; LLDP: 'lldp'; LMP: 'lmp'; LMS_IP: 'lms-ip'; LMS_PREEMPTION: 'lms-preemption'; LOAD_BALANCE: 'load-balance'; LOAD_BALANCING: 'load-balancing'; LOAD_INTERVAL: 'load-interval'; LOCAL: 'local'; LOCALITY: 'locality'; LOCAL_ADDRESS: 'local-address'; LOCAL_AS : [Ll][Oo][Cc][Aa][Ll]'-'[Aa][Ss] ; LOCAL_CASE: 'local-case'; LOCAL_INTERFACE: 'local-interface'; LOCAL_IP: 'local-ip'; LOCAL_PORT: 'local-port'; LOCAL_PREFERENCE: 'local-preference'; LOCAL_PROXY_ARP: 'local-proxy-arp'; LOCAL_V4_ADDR: 'local-v4-addr'; LOCAL_V6_ADDR: 'local-v6-addr'; LOCAL_VOLATILE: 'local-volatile'; LOCATION : 'location' -> pushMode ( M_COMMENT ) ; LOG: 'log'; LOG_ADJ_CHANGES: 'log-adj-changes'; LOG_ADJACENCY_CHANGES: 'log-adjacency-changes'; LOG_CONSOLE: 'log-console'; LOG_FILE: 'log-file'; LOG_SYSLOG: 'log-syslog'; LOG_ENABLE: 'log-enable'; LOG_INPUT: 'log-input'; LOG_INTERNAL_SYNC: 'log-internal-sync'; LOG_NEIGHBOR_CHANGES: 'log-neighbor-changes'; LOGFILE: 'logfile'; LOGGING: 'logging'; LOGIN: 'login'; LOGIN_ATTEMPTS: 'login-attempts'; LOGIN_AUTHENTICATION: 'login-authentication'; LOGIN_PAGE: 'login-page'; LOGOUT_WARNING: 'logout-warning'; LOOKUP: 'lookup'; LOOPBACK: 'loopback'; LOOPGUARD: 'loopguard'; LOOSE: 'loose'; LOTUSNOTES: 'lotusnotes'; LPD: 'lpd'; LPTS: 'lpts'; LRE: 'lre'; LSP_GEN_INTERVAL: 'lsp-gen-interval'; LSP_INTERVAL: 'lsp-interval'; LSP_PASSWORD: '<PASSWORD>'; LSP_REFRESH_INTERVAL: 'lsp-refresh-interval'; LT: 'lt'; MAB: 'mab'; MAC: 'mac'; MAC_ADDRESS: 'mac-address'; MAC_DEFAULT_ROLE: 'mac-default-role'; MAC_MOVE: 'mac-move'; MAC_SERVER_GROUP: 'mac-server-group'; MAC_SRVR_ADMIN: 'mac-srvr-admin'; MACHINE_AUTHENTICATION: 'machine-authentication'; MACRO: 'macro'; MAIL_SERVER: 'mail-server'; MAIN_CPU: 'main-cpu'; MAINTENANCE: 'maintenance'; MANAGED_CONFIG_FLAG: 'managed-config-flag'; MANAGEMENT: 'management'; MANAGEMENT_ONLY: 'management-only'; MANAGEMENT_PLANE: 'management-plane'; MANAGEMENT_PROFILE: 'management-profile'; MANAGER: 'manager'; MAP: 'map'; MAP_CLASS: 'map-class'; MAP_GROUP: 'map-group'; MAPPING: 'mapping'; MASK: 'mask'; MASK_REPLY: 'mask-reply'; MASK_REQUEST: 'mask-request'; MASTER: 'master'; MATCH: 'match'; MATCH_ALL: 'match-all'; MATCH_ANY: 'match-any'; MATCH_MAP: 'match-map'; MATCH_NONE: 'match-none'; MATIP_TYPE_A: 'matip-type-a'; MATIP_TYPE_B: 'matip-type-b'; MAX: 'max'; MAX_ASSOCIATIONS: 'max-associations'; MAX_AUTHENTICATION_FAILURES: 'max-authentication-failures'; MAX_BURST: 'max-burst'; MAX_CLIENTS: 'max-clients'; MAX_CONCAT_BURST: 'max-concat-burst'; MAX_CONFERENCES: 'max-conferences'; MAX_CONNECTIONS: 'max-connections'; MAX_DN: 'max-dn'; MAX_EPHONES: 'max-ephones'; MAX_IFINDEX_PER_MODULE: 'max-ifindex-per-module'; MAX_LSA: 'max-lsa'; MAX_LSP_LIFETIME: 'max-lsp-lifetime'; MAX_METRIC: 'max-metric'; MAX_RATE: 'max-rate'; MAX_ROUTE: 'max-route'; MAX_SESSIONS: 'max-sessions'; MAX_TX_POWER: 'max-tx-power'; MAXIMUM: 'maximum'; MAXIMUM_ACCEPTED_ROUTES: 'maximum-accepted-routes'; MAXIMUM_HOPS: 'maximum-hops'; MAXIMUM_PATHS: 'maximum-paths'; MAXIMUM_PREFIX: 'maximum-prefix'; MAXIMUM_ROUTES: 'maximum-routes'; MAXPOLL: 'maxpoll'; MAXSTARTUPS: 'maxstartups'; MBPS: 'Mbps'; MBSSID: 'mbssid'; MBYTES: 'mbytes'; MCAST_RATE_OPT: 'mcast-rate-opt'; MD5: 'md5'; MDIX: 'mdix'; MDT: 'mdt'; MED: 'med'; MEDIUM: 'medium'; MEDIA: 'media'; MEDIA_TERMINATION: 'media-termination'; MEDIA_TYPE: 'media-type'; MEMBER: 'member'; MEMBER_INTERFACE : 'member-interface' -> pushMode(M_Interface) ; MENU: 'menu'; MESH_CLUSTER_PROFILE: 'mesh-cluster-profile'; MESH_GROUP: 'mesh-group'; MESH_HT_SSID_PROFILE: 'mesh-ht-ssid-profile'; MESH_RADIO_PROFILE: 'mesh-radio-profile'; MESSAGE: 'message'; MESSAGE_COUNTER: 'message-counter'; MESSAGE_DIGEST: 'message-digest'; MESSAGE_DIGEST_KEY: 'message-digest-key'; MESSAGE_LENGTH: 'message-length'; MESSAGE_LEVEL: 'message-level'; MESSAGE_SIZE: 'message-size'; METERING: 'metering'; METHOD: 'method'; METHOD_UTILIZATION: 'method-utilization'; METRIC: 'metric'; METRIC_OUT: 'metric-out'; METRIC_STYLE: 'metric-style'; METRIC_TYPE: 'metric-type'; MFIB: 'mfib'; MGMT: 'mgmt'; MGMT_AUTH: 'mgmt-auth'; MIB: 'mib'; MICRO_BFD: 'micro-bfd'; MICROSOFT_DS: 'microsoft-ds'; MIDCALL_SIGNALING: 'midcall-signaling'; MIN_PACKET_SIZE: 'min-packet-size'; MIN_RATE: 'min-rate'; MIN_RX: 'min-rx'; MIN_RX_VAR: 'min_rx'; MIN_TX_POWER: 'min-tx-power'; MINIMUM: 'minimum'; MINIMUM_INTERVAL: 'minimum-interval'; MINIMUM_LINKS: 'minimum-links'; MINIMUM_THRESHOLD: 'minimum-threshold'; MINPOLL: 'minpoll'; MISMATCH: 'mismatch'; MISSING_AS_WORST: 'missing-as-worst'; MISSING_POLICY: 'missing-policy'; MLAG: 'mlag'; MLAG_SYSTEM_ID: 'mlag-system-id'; MLD: 'mld'; MLD_QUERY: 'mld-query'; MLD_REDUCTION: 'mld-reduction'; MLD_REPORT: 'mld-report'; MLDV2: 'mldv2'; MLS: 'mls'; MOBILE_HOST_REDIRECT: 'mobile-host-redirect'; MOBILE_IP: 'mobile-ip'; MOBILITY: 'mobility'; MODE: 'mode'; MODEM: 'modem'; MODULATION_PROFILE: 'modulation-profile'; MODULE: 'module'; MODULE_TYPE: 'module-type'; MONITOR: 'monitor'; MONITOR_MAP: 'monitor-map'; MONITOR_SESSION: 'monitor-session'; MONITORING: 'monitoring'; MONITORING_BASICS: 'monitoring-basics'; MOP: 'mop'; MOTD: 'motd'; MPP: 'mpp'; MPLS: 'mpls'; MPLS_LABEL: 'mpls-label'; MROUTE: 'mroute'; MS_SQL_M: 'ms-sql-m'; MS_SQL_S: 'ms-sql-s'; MSCHAP: 'mschap'; MSCHAPV2: 'mschapv2'; MSDP: 'msdp'; MSEC: 'msec'; MSEXCH_ROUTING: 'msexch-routing'; MSG_ICP: 'msg-icp'; MSP: 'msp'; MSRP: 'msrp'; MSRPC: 'msrpc'; MSS: 'mss'; MST: 'mst'; MTU: 'mtu'; MTU_IGNORE: 'mtu-ignore'; MULTICAST: 'multicast'; MULTICAST_GROUP: 'multicast-group'; MULTICAST_ROUTING: 'multicast-routing'; MULTICAST_STATIC_ONLY: 'multicast-static-only'; MULTIPATH: 'multipath'; MULTIPATH_RELAX: 'multipath-relax'; MULTIPLIER: 'multiplier'; MULTIPOINT: 'multipoint'; MULTI_TOPOLOGY: 'multi-topology'; MUST_SECURE: 'must-secure'; MVRP: 'mvrp'; NAME : 'name' -> pushMode ( M_Name ) ; NAME_RESOLUTION: 'name-resolution'; NAME_SERVER: 'name-server'; NAMED_KEY: 'named-key'; NAMESERVER: 'nameserver'; NAS: 'nas'; NAT : [Nn][Aa][Tt] ; NAT_TRANSPARENCY: 'nat-transparency'; NAT_TRAVERSAL: 'nat-traversal'; NATIVE: 'native'; NBAR: 'nbar'; NCP: 'ncp'; ND: 'nd'; ND_NA: 'nd-na'; ND_NS: 'nd-ns'; ND_TYPE: 'nd-type'; NEGOTIATE: 'negotiate'; NEGOTIATION: 'negotiation'; NEIGHBOR : 'neighbor' { if (lastTokenType() != TRACE) { pushMode ( M_NEIGHBOR ); } } ; NEIGHBOR_FILTER: 'neighbor-filter'; NEIGHBOR_IS: 'neighbor-is'; NEQ: 'neq'; NESTED: 'nested'; NET : 'net' -> pushMode ( M_ISO_Address ) ; NET_REDIRECT: 'net-redirect'; NET_TOS_REDIRECT: 'net-tos-redirect'; NET_TOS_UNREACHABLE: 'net-tos-unreachable'; NET_UNREACHABLE: 'net-unreachable'; NETBIOS_DGM: 'netbios-dgm'; NETBIOS_NS: 'netbios-ns'; NETBIOS_SS: 'netbios-ss'; NETBIOS_SSN: 'netbios-ssn'; NETDESTINATION: 'netdestination'; NETDESTINATION6: 'netdestination6'; NETMASK: 'netmask'; NETRJS_1: 'netrjs-1'; NETRJS_2: 'netrjs-2'; NETRJS_3: 'netrjs-3'; NETRJS_4: 'netrjs-4'; NETSERVICE: 'netservice'; NETWALL: 'netwall'; NETWNEWS: 'netwnews'; NETWORK: 'network'; NETWORK_DELAY: 'network-delay'; NETWORK_POLICY: 'network-policy'; NETWORK_QOS: 'network-qos'; NETWORK_UNKNOWN: 'network-unknown'; NEW_MODEL: 'new-model'; NEW_RWHO: 'new-rwho'; NEWINFO: 'newinfo'; NEXT_HOP: 'next-hop'; NEXT_HOP_PEER: 'next-hop-peer'; NEXT_HOP_SELF: 'next-hop-self'; NEXT_HOP_UNCHANGED: 'next-hop-unchanged'; NEXT_HOP_V6_ADDR: 'next-hop-v6-addr'; NEXT_SERVER: 'next-server'; NEXTHOP1: 'nexthop1'; NEXTHOP2: 'nexthop2'; NFS: 'nfs'; NHOP_ONLY: 'nhop-only'; NLRI: 'nlri'; NMSP: 'nmsp'; NNTP: 'nntp'; NNTPS: 'nntps'; NO: 'no'; NOPASSWORD: 'nopassword'; NO_ADVERTISE: 'no-advertise'; NO_EXPORT: 'no-export'; NO_PREPEND: 'no-prepend'; NO_REDISTRIBUTION: 'no-redistribution'; NO_ROOM_FOR_OPTION: 'no-room-for-option'; NO_SUMMARY: 'no-summary'; NOAUTH: 'noauth'; NOE: 'noe'; NOHANGUP: 'nohangup'; NON500_ISAKMP: 'non500-isakmp'; NON_BROADCAST: 'non-broadcast'; NON_CLIENT_NRT: 'non-client-nrt'; NON_DR: 'non-dr'; NON_ECT: 'non-ect'; NON_MLAG: 'non-mlag'; NONE: 'none'; NONEGOTIATE: 'nonegotiate'; NORMAL: 'normal'; NOS: 'nos'; NOT: 'not'; NOTATION: 'notation'; NOT_ADVERTISE: 'not-advertise'; NOTIFICATION_TIMER: 'notification-timer'; NOTIFICATIONS: 'notifications'; NOTIFY: 'notify'; NOTIFY_FILTER: 'notify-filter'; NSF: 'nsf'; NSR: 'nsr'; NSSA: 'nssa'; NSSA_EXTERNAL: 'nssa-external'; NSW_FE: 'nsw-fe'; NT_ENCRYPTED: 'nt-encrypted'; NTP: 'ntp'; NULL: 'null'; NV: 'nv'; OBJECT: 'object'; ODMR: 'odmr'; OLSR: 'olsr'; ON: 'on'; ON_FAILURE: 'on-failure'; ON_PASSIVE: 'on-passive'; ON_STARTUP: 'on-startup'; ON_SUCCESS: 'on-success'; ONE_HUNDRED_FULL: '100full'; ONE_HUNDREDG_FULL: '100gfull'; ONE_OUT_OF: 'one-out-of'; ONE_THOUSAND_FULL: '1000full'; ONEP: 'onep'; OPEN: 'open'; OPENFLOW: 'openflow'; OPENSTACK: 'openstack'; OPENVPN: 'openvpn'; OPERATION: 'operation'; OPMODE: 'opmode'; OPTICAL_MONITOR: 'optical-monitor'; OPTIMIZATION_PROFILE: 'optimization-profile'; OPTIMIZE: 'optimize'; OPTION: 'option'; OPTION_MISSING: 'option-missing'; OPTIONAL: 'optional'; OPTIONS: 'options'; ORGANIZATION_NAME: 'organization-name'; ORGANIZATION_UNIT: 'organization-unit'; ORIGIN: 'origin'; ORIGIN_ID: 'origin-id'; ORIGINATE: 'originate'; ORIGINATES_FROM: 'originates-from'; ORIGINATOR_ID: 'originator-id'; OSPF: 'ospf'; OSPF3: 'ospf3'; OSPFV3: 'ospfv3'; OTHER_ACCESS: 'other-access'; OTHER_CONFIG_FLAG: 'other-config-flag'; OUT: 'out'; OUT_DELAY: 'out-delay'; OUT_OF_BAND: 'out-of-band'; OUTBOUND_ACL_CHECK: 'outbound-acl-check'; OUTER: 'outer'; OUTPUT: 'output'; OVERLOAD: 'overload'; OVERLOAD_CONTROL: 'overload-control'; OVERRIDE: 'override'; OVSDB_SHUTDOWN: 'ovsdb-shutdown'; OWNER: 'owner'; P2P: 'p2p'; PACKET: 'packet'; PACKET_TOO_BIG: 'packet-too-big'; PACKETS: 'packets'; PACKETSIZE: 'packetsize'; PAGP: 'pagp'; PARAM: 'param'; PARAMETER_PROBLEM: 'parameter-problem'; PARAMETERS: 'parameters'; PARTICIPATE: 'participate'; PASS: 'pass'; PASSES_THROUGH: 'passes-through'; PASSIVE: 'passive'; PASSIVE_INTERFACE : 'passive-interface' -> pushMode ( M_Interface ) ; PASSIVE_ONLY: 'passive-only'; PASSPHRASE: 'passphrase'; PASSWORD: 'password'; PASSWORD_POLICY: 'password-policy'; PASSWORD_PROMPT: 'password-prompt'; PASSWD: '<PASSWORD>'; PATH_ECHO: 'path-echo'; PATH_MTU_DISCOVERY: 'path-mtu-discovery'; PATH_OPTION: 'path-option'; PATH_RETRANSMIT: 'path-retransmit'; PATHCOST: 'pathcost'; PATH: 'path'; PATHS: 'paths'; PATHS_OF_STATISTICS_KEPT: 'paths-of-statistics-kept'; PAUSE: 'pause'; PBKDF2: 'pbkdf2'; PBR: 'pbr'; PCANYWHERE_DATA: 'pcanywhere-data'; PCANYWHERE_STATUS: 'pcanywhere-status'; PCP: 'pcp'; PCP_VALUE: 'pcp-value'; PDP: 'pdp'; PEAKDETECT: 'peakdetect'; PEER: 'peer'; PEER_ADDRESS: 'peer-address'; PEER_CONFIG_CHECK_BYPASS: 'peer-config-check-bypass'; PEER_FILTER : 'peer-filter' -> pushMode (M_Word) ; PEER_GROUP : 'peer-group' -> pushMode ( M_NEIGHBOR ) ; PEER_GATEWAY: 'peer-gateway'; PEER_KEEPALIVE: 'peer-keepalive'; PEER_LINK: 'peer-link'; PEER_MAC_RESOLUTION_TIMEOUT: 'peer-mac-resolution-timeout'; PEER_SWITCH: 'peer-switch'; PEER_TO_PEER: 'peer-to-peer'; PEERS: 'peers'; PENALTY_PERIOD: 'penalty-period'; PERCENT_LITERAL: 'percent'; PERIODIC: 'periodic'; PERIODIC_INVENTORY: 'periodic-inventory'; PERMANENT: 'permanent'; PERMISSION: 'permission'; PERMIT: 'permit'; PERMIT_HOSTDOWN: 'permit-hostdown'; PERSIST_DATABASE: 'persist-database'; PFC: 'pfc'; PFS: 'pfs'; PHONE: 'phone'; PHONE_CONTACT : 'phone-contact' -> pushMode ( M_Description ) ; PHONE_NUMBER: 'phone-number'; PHONE_PROXY: 'phone-proxy'; PHY: 'phy'; PHYSICAL_LAYER: 'physical-layer'; PICKUP: 'pickup'; PIM: 'pim'; PIM_AUTO_RP: 'pim-auto-rp'; PKI: 'pki'; PKIX_TIMESTAMP: 'pkix-timestamp'; PKT_KRB_IPSEC: 'pkt-krb-ipsec'; PLATFORM: 'platform'; PM: 'pm'; PMTUD: 'pmtud'; POINT_TO_MULTIPOINT: 'point-to-multipoint'; POINT_TO_POINT: 'point-to-point'; POLICE: 'police'; POLICY: 'policy'; POLICY_LIST: 'policy-list'; POLICY_MAP: 'policy-map'; POOL: 'pool'; POP: 'pop'; POP2: 'pop2'; POP3: 'pop3'; POP3S: 'pop3s'; PORT: 'port'; PORTFAST: 'portfast'; PORT_CHANNEL: 'port-channel'; PORT_CHANNEL_PROTOCOL: 'port-channel-protocol'; PORT_NAME: 'port-name'; PORT_PRIORITY: 'port-priority'; PORT_SECURITY: 'port-security'; PORT_TYPE: 'port-type'; PORT_UNREACHABLE: 'port-unreachable'; PORTMODE: 'portmode'; POS: 'pos'; POST_POLICY: 'post-policy'; POWER: 'power'; POWER_LEVEL: 'power-level'; PPP: 'ppp'; PPTP: 'pptp'; PRC_INTERVAL: 'prc-interval'; PRE_EQUALIZATION: 'pre-equalization'; PRE_POLICY: 'pre-policy'; PRE_SHARE: 'pre-share'; PRE_SHARED_KEY: 'pre-shared-key'; PRECEDENCE: 'precedence'; PRECEDENCE_UNREACHABLE: 'precedence-unreachable'; PRECONFIGURE: 'preconfigure'; PREEMPT: 'preempt'; PREFER: 'prefer'; PREFERENCE: 'preference'; PREFERRED: 'preferred'; PREFIX: 'prefix'; PREFIX_LENGTH: 'prefix-length'; PREFIX_LIST : 'prefix-list' -> pushMode(M_PrefixList) ; PREPEND: 'prepend'; PREPEND_OWN: 'prepend-own'; PRESERVE_ATTRIBUTES: 'preserve-attributes'; PRF: 'prf'; PRI_GROUP: 'pri-group'; PRINT_SRV: 'print-srv'; PRIORITY: 'priority'; PRIORITY_FLOW_CONTROL: 'priority-flow-control'; PRIORITY_FORCE: 'priority-force'; PRIORITY_LEVEL: 'priority-level'; PRIORITY_MAPPING: 'priority-mapping'; PRIORITY_QUEUE: 'priority-queue'; PRIV: 'priv'; PRIVACY: 'privacy'; PRIVATE_AS: 'private-as'; PRIVATE_VLAN: 'private-vlan'; PRIVILEGE: 'privilege'; PRIVILEGE_MODE: 'privilege-mode'; PROACTIVE: 'proactive'; PROBE: 'probe'; PROCESS_MAX_TIME: 'process-max-time'; PROFILE: 'profile'; PROGRESS_IND: 'progress_ind'; PROPAGATE: 'propagate'; PROPOSAL: 'proposal'; PROPRIETARY: 'proprietary'; PROTECT: 'protect'; PROTECT_SSID: 'protect-ssid'; PROTECT_TUNNEL: 'protect-tunnel'; PROTECT_VALID_STA: 'protect-valid-sta'; PROTECTION: 'protection'; PROTOCOL: 'protocol'; PROTOCOL_DISCOVERY: 'protocol-discovery'; PROTOCOL_HTTP: 'protocol-http'; PROTOCOL_UNREACHABLE: 'protocol-unreachable'; PROTOCOL_VIOLATION: 'protocol-violation'; PROVISIONING_PROFILE: 'provisioning-profile'; PROXY_ARP: 'proxy-arp'; PROXY_SERVER: 'proxy-server'; PSEUDO_INFORMATION: 'pseudo-information'; PSEUDOWIRE: 'pseudowire'; PSH: 'psh'; PTP: 'ptp'; PTP_EVENT: 'ptp-event'; PTP_GENERAL: 'ptp-general'; PUBKEY_CHAIN: 'pubkey-chain'; PVC: 'pvc'; QMTP: 'qmtp'; QOS: 'qos'; QOS_GROUP: 'qos-group'; QOS_MAPPING: 'qos-mapping'; QOTD: 'qotd'; QUERY_COUNT: 'query-count'; QUERY_INTERVAL: 'query-interval'; QUERY_MAX_RESPONSE_TIME: 'query-max-response-time'; QUERY_ONLY: 'query-only'; QUERY_RESPONSE_INTERVAL: 'query-response-interval'; QUERY_TIMEOUT: 'query-timeout'; QUEUE: 'queue'; QUEUE_BUFFERS: 'queue-buffers'; QUEUE_LENGTH: 'queue-length'; QUEUE_LIMIT: 'queue-limit'; QUEUE_MONITOR: 'queue-monitor'; QUEUE_SET: 'queue-set'; QUEUEING: 'queueing'; QUEUING: 'queuing'; QUIT: 'quit'; RA: 'ra'; RADIUS: 'radius'; RADIUS_ACCOUNTING: 'radius-accounting'; RADIUS_ACCT: 'radius-acct'; RADIUS_INTERIM_ACCOUNTING: 'radius-interim-accounting'; RADIUS_SERVER: 'radius-server'; RANDOM: 'random'; RANDOM_DETECT: 'random-detect'; RANDOM_DETECT_LABEL: 'random-detect-label'; RANGE: 'range'; RATE: 'rate'; RATE_LIMIT: 'rate-limit'; RATE_MODE: 'rate-mode'; RATE_THRESHOLDS_PROFILE: 'rate-thresholds-profile'; RBACL: 'rbacl'; RCP: 'rcp'; RCV_QUEUE: 'rcv-queue'; RD: 'rd'; RE_MAIL_CK: 're-mail-ck'; REACHABLE_TIME: 'reachable-time'; REACHABLE_VIA: 'reachable-via'; REACT: 'react'; REACTION: 'reaction'; READ_ONLY_PASSWORD: '<PASSWORD>'; REAL_TIME_CONFIG: 'real-time-config'; REASSEMBLY_TIMEOUT: 'reassembly-timeout'; REAUTHENTICATION: 'reauthentication'; RECEIVE: 'receive'; RECEIVE_WINDOW: 'receive-window'; RECEIVED: 'received'; RECIRCULATION: 'recirculation'; RECORD: 'record'; RECORD_ENTRY: 'record-entry'; RECURSIVE: 'recursive'; RED: 'red'; REDIRECT: 'redirect'; REDIRECT_FQDN: 'redirect-fqdn'; REDIRECT_LIST: 'redirect-list'; REDIRECT_PAUSE: 'redirect-pause'; REDIRECTS: 'redirects'; REDISTRIBUTE: 'redistribute'; REDISTRIBUTE_INTERNAL: 'redistribute-internal'; REDISTRIBUTED_PREFIXES: 'redistributed-prefixes'; REDUNDANCY: 'redundancy'; REDUNDANCY_GROUP: 'redundancy-group'; REED_SOLOMON: 'reed-solomon'; REFERENCE_BANDWIDTH: 'reference-bandwidth'; REFLECT: 'reflect'; REFLECTION: 'reflection'; REGEX_MODE: 'regex-mode'; REGEXP: 'regexp'; REGISTER_RATE_LIMIT: 'register-rate-limit'; REGISTER_SOURCE: 'register-source'; REGISTERED: 'registered'; REGULATORY_DOMAIN_PROFILE: 'regulatory-domain-profile'; REJECT: 'reject'; RELAY: 'relay'; RELOAD: 'reload'; RELOAD_DELAY: 'reload-delay'; RELOGGING_INTERVAL: 'relogging-interval'; REPEAT_MESSAGES: 'repeat-messages'; REMARK : 'remark' -> pushMode ( M_REMARK ) ; REMOTE: 'remote'; REMOTE_ACCESS: 'remote-access'; REMOTE_AS: 'remote-as'; REMOTE_IP: 'remote-ip'; REMOTE_PORT: 'remote-port'; REMOTE_PORTS: 'remote-ports'; REMOTE_SERVER: 'remote-server'; REMOTEFS: 'remotefs'; REMOVE: 'remove'; REMOVE_PRIVATE_AS : 'remove-private-' [Aa] [Ss] ; REOPTIMIZE: 'reoptimize'; REPCMD: 'repcmd'; REPLACE_AS: 'replace-as'; REPLACE: 'replace'; REPLY: 'reply'; REPLY_TO: 'reply-to'; REPORT_INTERVAL: 'report-interval'; REQ_RESP: 'req-resp'; REQ_TRANS_POLICY: 'req-trans-policy'; REQUEST: 'request'; REQUEST_DATA_SIZE: 'request-data-size'; REQUIRE_WPA: 'require-wpa'; REQUIRED: 'required'; RESOLUTION: 'resolution'; RESPONDER: 'responder'; RESPONSE: 'response'; RESTART_TIME: 'restart-time'; RESTRICT: 'restrict'; RESTRICTED: 'restricted'; RESULT: 'result'; RESULT_TYPE: 'result-type'; RESUME: 'resume'; RESYNC_PERIOD: 'resync-period'; RETAIN: 'retain'; RETRANSMIT: 'retransmit'; RETRANSMIT_TIMEOUT: 'retransmit-timeout'; RETRIES: 'retries'; RETRY: 'retry'; REVERSE_ACCESS: 'reverse-access'; REVERSE_ROUTE: 'reverse-route'; REVERTIVE: 'revertive'; REVISION: 'revision'; REVOCATION_CHECK: 'revocation-check'; REWRITE: 'rewrite'; RF: 'rf'; RF_CHANNEL: 'rf-channel'; RF_POWER: 'rf-power'; RF_SHUTDOWN: 'rf-shutdown'; RF_SWITCH: 'rf-switch'; RFC_3576_SERVER: 'rfc-3576-server'; RFC1583: 'rfc1583'; RFC1583COMPATIBILITY: 'rfc1583compatibility'; RIB: 'rib'; RIB_IN: 'rib-in'; RIBS: 'ribs'; RIP: 'rip'; RJE: 'rje'; RLP: 'rlp'; RLZDBASE: 'rlzdbase'; RMC: 'rmc'; RMONITOR: 'rmonitor'; RO : [rR] [oO] ; ROBUSTNESS: 'robustness'; ROBUSTNESS_VARIABLE: 'robustness-variable'; ROGUE_AP_AWARE: 'rogue-ap-aware'; ROLE: 'role'; ROOT: 'root'; ROTARY: 'rotary'; ROUTE: 'route'; ROUTE_CACHE: 'route-cache'; ROUTE_KEY: 'route-key'; ROUTE_MAP : 'route-map' -> pushMode ( M_RouteMap ) ; ROUTE_ONLY: 'route-only'; ROUTE_REFLECTOR: 'route-reflector'; ROUTE_REFLECTOR_CLIENT: 'route-reflector-client'; ROUTE_SOURCE: 'route-source'; ROUTE_TARGET: 'route-target'; ROUTE_TO_PEER: 'route-to-peer'; ROUTE_TYPE: 'route-type'; ROUTED: 'routed'; ROUTER: 'router'; ROUTER_ADVERTISEMENT: 'router-advertisement'; ROUTER_ALERT: 'router-alert'; ROUTER_ID: 'router-id'; ROUTER_LSA: 'router-lsa'; ROUTER_MAC: 'router-mac'; ROUTER_PREFERENCE: 'router-preference'; ROUTER_SOLICITATION: 'router-solicitation'; ROUTES: 'routes'; ROUTING: 'routing'; RP_ADDRESS: 'rp-address'; RP_ANNOUNCE_FILTER: 'rp-announce-filter'; RP_CANDIDATE : 'rp-candidate' -> pushMode(M_Interface) ; RP_LIST: 'rp-list'; RPC2PORTMAP: 'rpc2portmap'; RPF_VECTOR: 'rpf-vector'; RRM_IE_PROFILE: 'rrm-ie-profile'; RSA: 'rsa'; RSA_ENCR: 'rsa-encr'; RSA_SIG: 'rsa-sig'; RSAKEYPAIR: 'rsakeypair'; RSH: 'rsh'; RST: 'rst'; RSTP: 'rstp'; RSVP: 'rsvp'; RSYNC: 'rsync'; RT: 'rt'; RTCP_INACTIVITY: 'rtcp-inactivity'; RTELNET: 'rtelnet'; RTP: 'rtp'; RTP_PORT: 'rtp-port'; RTR_ADV: 'rtr-adv'; RTSP: 'rtsp'; RULE: 'rule'; RULE_NAME: 'rule-name'; RUN: 'run'; RW : [Rr] [Ww] ; RX: 'rx'; RXSPEED: 'rxspeed'; SA_FILTER: 'sa-filter'; SAMPLED: 'sampled'; SAMPLES_OF_HISTORY_KEPT: 'samples-of-history-kept'; SATELLITE: 'satellite'; SATELLITE_FABRIC_LINK: 'satellite-fabric-link'; SCALE_FACTOR: 'scale-factor'; SCANNING: 'scanning'; SCCP: 'sccp'; SCHED_TYPE: 'sched-type'; SCHEDULE: 'schedule'; SCHEME: 'scheme'; SCOPE: 'scope'; SCP: 'scp'; SCRAMBLE: 'scramble'; SCRIPT: 'script'; SCTP: 'sctp'; SDROWNER: 'SDROwner'; SECONDARY: 'secondary'; SECONDARY_DIALTONE: 'secondary-dialtone'; SECRET: 'secret'; SECUREID_UDP: 'secureid-udp'; SECURITY: 'security'; SECURITY_ASSOCIATION: 'security-association'; SELF_IDENTITY: 'self-identity'; SEND: 'send'; SEND_COMMUNITY: 'send-community'; SEND_LIFETIME: 'send-lifetime'; SEND_RP_ANNOUNCE : 'send-rp-announce' -> pushMode(M_Interface) ; SEND_RP_DISCOVERY: 'send-rp-discovery'; SEND_TIME: 'send-time'; SENDER: 'sender'; SEQ: 'seq'; SEQUENCE: 'sequence'; SEQUENCE_NUMS: 'sequence-nums'; SERIAL: 'serial'; SERIAL_NUMBER: 'serial-number'; SERVE: 'serve'; SERVE_ONLY: 'serve-only'; SERVER: 'server'; SERVER_ARP: 'server-arp'; SERVER_GROUP: 'server-group'; SERVER_KEY: 'server-key'; SERVER_PRIVATE: 'server-private'; SERVICE: 'service'; SERVICE_CLASS: 'service-class'; SERVICE_LIST: 'service-list'; SERVICE_MODULE: 'service-module'; SERVICE_POLICY: 'service-policy'; SERVICE_TEMPLATE: 'service-template'; SESSION: 'session'; SESSION_AUTHORIZATION: 'session-authorization'; SESSION_DISCONNECT_WARNING : 'session-disconnect-warning' -> pushMode ( M_COMMENT ) ; SESSION_ID: 'session-id'; SESSION_KEY: 'session-key'; SESSION_LIMIT: 'session-limit'; SESSION_PROTECTION: 'session-protection'; SESSION_TIMEOUT: 'session-timeout'; SET: 'set'; SET_COLOR: 'set-color'; SET_OVERLOAD_BIT: 'set-overload-bit'; SEVERITY: 'severity'; SFLOW: 'sflow'; SFTP: 'sftp'; SG_EXPIRY_TIMER: 'sg-expiry-timer'; SGBP: 'sgbp'; SGMP: 'sgmp'; SHA: 'sha'; SHA2_256_128: 'sha2-256-128'; SHA512: 'sha512'; SHA512_PASSWORD : '$<PASSWORD>$' [0-9]+ '$' F_Base64String '$' F_Base64String -> pushMode ( M_SeedWhitespace ) ; SHAPE: 'shape'; SHARED_SECONDARY_SECRET: 'shared-secondary-secret'; SHARED_SECRET: 'shared-secret'; SHIFT: 'shift'; SHORT_TXT: 'short-txt'; SHOULD_SECURE: 'should-secure'; SHOW: 'show'; SHUTDOWN : 'shut' 'down'? ; SIGNAL: 'signal'; SIGNALING: 'signaling'; SIGNALLED_BANDWIDTH: 'signalled-bandwidth'; SIGNALLED_NAME: 'signalled-name'; SIGNALLING: 'signalling'; SIGNATURE: 'signature'; SIGNATURE_MATCHING_PROFILE: 'signature-matching-profile'; SIGNATURE_PROFILE: 'signature-profile'; SILC: 'silc'; SINGLE_CONNECTION: 'single-connection'; SINGLE_HOP: 'single-hop'; SINGLE_TOPOLOGY: 'single-topology'; SIP: 'sip'; SIP_MIDCALL_REQ_TIMEOUT: 'sip-midcall-req-timeout'; SIP_PROFILES: 'sip-profiles'; SIP_SERVER: 'sip-server'; SIP_UA: 'sip-ua'; SIPS: 'sips'; SITE_ID: 'site-id'; SIXPE: '6pe'; // cannot declare a rule with reserved name SKIP SKIP_LITERAL: 'skip'; SLA: 'sla'; SLOT: 'slot'; SLOW_PEER: 'slow-peer'; SMALL_HELLO: 'small-hello'; SMART_RELAY: 'smart-relay'; SMTP: 'smtp'; SMTP_SERVER: 'smtp-server'; SMUX: 'smux'; SNAGAS: 'snagas'; SNMP_AUTHFAIL: 'snmp-authfail'; SNMP: 'snmp'; // must be kept above SNMP_SERVER SNMP_SERVER_COMMUNITY : 'snmp-server' {(lastTokenType() == NEWLINE || lastTokenType() == -1) && isWhitespace(_input.LA(1)) && lookAheadStringSkipWhitespace("community ".length()).equals("community ")}? -> type ( SNMP_SERVER ) , pushMode ( M_SnmpServerCommunity ) ; SNMP_SERVER: 'snmp-server'; SNMP_TRAP: 'snmp-trap'; SNMPTRAP: 'snmptrap'; SNOOPING: 'snooping'; SNP: 'snp'; SNPP: 'snpp'; SNR_MAX: 'snr-max'; SNR_MIN: 'snr-min'; SNTP: 'sntp'; SOFT_PREEMPTION: 'soft-preemption'; SOFT_RECONFIGURATION : 'soft' '-reconfiguration'? ; SONET: 'sonet'; SOURCE: 'source'; SOURCE_ADDRESS: 'source-address'; SOURCE_INTERFACE : 'source-interface' -> pushMode ( M_Interface ) ; SOURCE_IP_ADDRESS: 'source-ip-address'; SOURCE_PROTOCOL: 'source-protocol'; SOURCE_ROUTE: 'source-route'; SOURCE_ROUTE_FAILED: 'source-route-failed'; SOURCE_QUENCH: 'source-quench'; SPAN: 'span'; SPANNING_TREE: 'spanning-tree'; SPARSE_MODE: 'sparse-mode'; SPECTRUM: 'spectrum'; SPECTRUM_LOAD_BALANCING: 'spectrum-load-balancing'; SPECTRUM_MONITORING: 'spectrum-monitoring'; SPEED: 'speed'; SPEED_DUPLEX: 'speed-duplex'; SPF_INTERVAL: 'spf-interval'; SPLIT_HORIZON: 'split-horizon'; SPT_THRESHOLD: 'spt-threshold'; SQLNET: 'sqlnet'; SQLSRV: 'sqlsrv'; SQLSERV: 'sqlserv'; SRC_IP: 'src-ip'; SRC_NAT: 'src-nat'; SRLG: 'srlg'; SRR_QUEUE: 'srr-queue'; SR_TE: 'sr-te'; SRST: 'srst'; SSH: 'ssh'; SSH_CERTIFICATE: 'ssh-certificate'; SSH_PUBLICKEY: 'ssh-publickey'; SSID: 'ssid'; SSID_ENABLE: 'ssid-enable'; SSID_PROFILE: 'ssid-profile'; SSL: 'ssl'; SSM: 'ssm'; STACK_MIB: 'stack-mib'; STALEPATH_TIME: 'stalepath-time'; STANDARD: 'standard'; STANDBY: 'standby'; START_STOP: 'start-stop'; START_TIME: 'start-time'; STARTUP_QUERY_COUNT: 'startup-query-count'; STARTUP_QUERY_INTERVAL: 'startup-query-interval'; STATE: 'state'; STATIC: 'static'; STATIC_GROUP: 'static-group'; STATION: 'station'; STATION_ROLE: 'station-role'; STATISTICS: 'statistics'; STBC: 'stbc'; STCAPP: 'stcapp'; STOP_ONLY: 'stop-only'; STOP_RECORD: 'stop-record'; STOPBITS: 'stopbits'; STORM_CONTROL: 'storm-control'; STP: 'stp'; STREAMING: 'streaming'; STREET_ADDRESS: 'street-address'; STREETADDRESS : 'streetaddress' -> pushMode ( M_Description ) ; STRICT: 'strict'; STRICTHOSTKEYCHECK: 'stricthostkeycheck'; STRING: 'string'; STRIP: 'strip'; STS_1: 'sts-1'; STUB: 'stub'; SUBINTERFACE: 'subinterface'; SUBJECT_NAME: 'subject-name'; SUBMGMT: 'submgmt'; SUBNET_MASK: 'subnet-mask'; SUBNETS: 'subnets'; SUB_OPTION: 'sub-option'; SUB_ROUTE_MAP: 'sub-route-map'; SUBMISSION: 'submission'; SUBSCRIBE_TO_ALERT_GROUP: 'subscribe-to-alert-group'; SUBSCRIBER: 'subscriber'; SUCCESS: 'success'; SUMMARY_ADDRESS: 'summary-address'; SUMMARY_LSA: 'summary-lsa'; SUMMARY_ONLY: 'summary-only'; SUNRPC: 'sunrpc'; SUPER_USER_PASSWORD: '<PASSWORD>'; SUPPLEMENTARY_SERVICE: 'supplementary-service'; SUPPRESS: 'suppress'; SUPPRESS_ARP: 'suppress-arp'; SUPPRESSED: 'suppressed'; SUSPECT_ROGUE_CONF_LEVEL: 'suspect-rogue-conf-level'; SUSPEND: 'suspend'; SVC: 'svc'; SVP: 'svp'; SVRLOC: 'svrloc'; SWITCH_CERT: 'switch-cert'; SWITCH_PRIORITY: 'switch-priority'; SWITCHBACK: 'switchback'; SWITCHING_MODE: 'switching-mode'; SWITCHNAME: 'switchname'; SWITCHPORT: 'switchport'; SYN: 'syn'; SYNCHRONOUS: 'synchronous'; SYSLOG: 'syslog'; SYSTAT: 'systat'; SYSTEM: 'system'; SYSTEM_CONNECTED: 'system-connected'; SYSTEM_PRIORITY: 'system-priority'; SYSTEM_PROFILE: 'system-profile'; SYSTEM_SHUTDOWN: 'system-shutdown'; SYSTEM_TUNNEL_RIB: 'system-tunnel-rib'; SYSTEM_UNICAST_RIB: 'system-unicast-rib'; SYSTEMOWNER: 'SystemOwner'; TABLE: 'table'; TABLE_MAP: 'table-map'; TACACS: 'tacacs'; TACACS_DS: 'tacacs-ds'; TACACS_PLUS : 'tacacs+' ; TACACS_SERVER: 'tacacs-server'; TAC_PLUS: 'tac_plus'; TAG: 'tag'; TAG_SWITCHING: 'tag-switching'; TAGGED: 'tagged'; TALK: 'talk'; TAP: 'tap'; TBRPF: 'tbrpf'; TCAM: 'tcam'; TCP: 'tcp'; TCP_INSPECTION: 'tcp-inspection'; TCP_SESSION: 'tcp-session'; TCP_UDP: 'tcp-udp'; TCPMUX: 'tcpmux'; TCPNETHASPSRV: 'tcpnethaspsrv'; TCS_LOAD_BALANCE: 'tcs-load-balance'; TELEPHONY_SERVICE: 'telephony-service'; TELNET: 'telnet'; TEMPLATE: 'template'; TEN_THOUSAND_FULL: '10000full'; TERMINAL: 'terminal'; TERMINAL_TYPE: 'terminal-type'; TERMINATE: 'terminate'; TERMINATION: 'termination'; TEST: 'test'; TFTP: 'tftp'; TFTP_SERVER: 'tftp-server'; TFTP_SERVER_LIST: 'tftp-server-list'; THREE_DES: '3des'; THRESHOLD: 'threshold'; THRESHOLDS: 'thresholds'; TIE_BREAK: 'tie-break'; TIME: 'time'; TIME_EXCEEDED: 'time-exceeded'; TIME_FORMAT: 'time-format'; TIME_RANGE: 'time-range'; TIME_OUT: 'time-out'; TIMED: 'timed'; TIMEOUT: 'timeout'; TIMEOUTS: 'timeouts'; TIMER: 'timer'; TIMERS: 'timers'; TIMESOURCE: 'timesource'; TIMESTAMP: 'timestamp'; TIMESTAMP_REPLY: 'timestamp-reply'; TIMESTAMP_REQUEST: 'timestamp-request'; TIME_ZONE: 'time-zone'; TIMING: 'timing'; TLS: 'tls'; TLS_PROXY: 'tls-proxy'; TM_VOQ_COLLECTION: 'tm-voq-collection'; TO: 'to'; TOKEN: 'token'; TOOL: 'tool'; TOS: 'tos'; TOS_OVERWRITE: 'tos-overwrite'; TRACE: 'trace'; TRACER: 'tracer'; TRACEROUTE: 'traceroute'; TRACK: 'track'; TRACKED: 'tracked'; TRACKER: 'tracker'; TRADITIONAL: 'traditional'; TRAFFIC_CLASS: 'traffic-class'; TRAFFIC_ENG: 'traffic-eng'; TRAFFIC_FILTER: 'traffic-filter'; TRAFFIC_INDEX: 'traffic-index'; TRAFFIC_LOOPBACK: 'traffic-loopback'; TRANSFER_SYSTEM: 'transfer-system'; TRANSFORM_SET: 'transform-set'; TRANSCEIVER: 'transceiver'; TRANSLATE: 'translate'; TRANSLATION: 'translation'; TRANSLATION_RULE: 'translation-rule'; TRANSLATION_PROFILE: 'translation-profile'; TRANSMIT: 'transmit'; TRANSMITTER: 'transmitter'; TRANSPORT: 'transport'; TRANSPORT_METHOD: 'transport-method'; TRANSPORT_MODE: 'transport-mode'; TRAP: 'trap'; TRAP_NEW_MASTER: 'trap-new-master'; TRAP_SOURCE : 'trap-source' -> pushMode ( M_Interface ) ; TRAP_TIMEOUT: 'trap-timeout'; TRAPS: 'traps'; TRIGGER: 'trigger'; TRIMODE: 'trimode'; TRUNCATION: 'truncation'; TRUNK: 'trunk'; TRUST: 'trust'; TRUSTED: 'trusted'; TRUSTED_KEY: 'trusted-key'; TRUSTPOINT: 'trustpoint'; TRUSTPOOL: 'trustpool'; TSID: 'tsid'; TSM_REQ_PROFILE: 'tsm-req-profile'; TTL: 'ttl'; TTL_EXCEEDED: 'ttl-exceeded'; TTL_EXCEPTION: 'ttl-exception'; TTY: 'tty'; TUNABLE_OPTIC: 'tunable-optic'; TUNNEL: 'tunnel'; TUNNEL_GROUP: 'tunnel-group'; TUNNEL_GROUP_LIST: 'tunnel-group-list'; TUNNEL_ID: 'tunnel-id'; TUNNEL_RIB: 'tunnel-rib'; TUNNELED: 'tunneled'; TWENTY_FIVE_GBASE_CR: '25gbase-cr'; TX_QUEUE: 'tx-queue'; TXSPEED: 'txspeed'; TYPE: 'type'; UCMP: 'ucmp'; UC_TX_QUEUE: 'uc-tx-queue'; UDLD: 'udld'; UDP: 'udp'; UDP_JITTER: 'udp-jitter'; UDP_PORT: 'udp-port'; UDP_TIMEOUT: 'udp-timeout'; UNAUTHORIZED: 'unauthorized'; UNAUTHORIZED_DEVICE_PROFILE: 'unauthorized-device-profile'; UNICAST: 'unicast'; UNIDIRECTIONAL: 'unidirectional'; UNIX_SOCKET: 'unix-socket'; UNIQUE: 'unique'; UNKNOWN_UNICAST: 'unknown-unicast'; UNREACHABLE: 'unreachable'; UNTAGGED: 'untagged'; UPDATE: 'update'; UPDATE_CALENDAR: 'update-calendar'; UPDATE_DELAY: 'update-delay'; UPDATE_INTERVAL: 'update-interval'; UPDATE_SOURCE : 'update-source' -> pushMode ( M_Interface ) ; UPLINK_FAILURE_DETECTION: 'uplink-failure-detection'; UPLINKFAST: 'uplinkfast'; UPS: 'ups'; UPSTREAM: 'upstream'; UPSTREAM_START_THRESHOLD: 'upstream-start-threshold'; URG: 'urg'; URI: 'uri'; URL: 'url'; URL_LIST: 'url-list'; URPF: 'urpf'; USE: 'use'; USE_ACL: 'use-acl'; USE_CONFIG_SESSION: 'use-config-session'; USE_GLOBAL: 'use-global'; USE_IPV4_ACL: 'use-ipv4-acl'; USE_IPV6_ACL: 'use-ipv6-acl'; USE_LINK_ADDRESS: 'use-link-address'; USER: 'user'; USERINFO : 'userinfo' ; USER_MESSAGE : 'user-message' -> pushMode ( M_Description ) ; USER_ROLE: 'user-role'; USER_STATISTICS: 'user-statistics'; USERNAME: 'username'; USERNAME_PROMPT: 'username-prompt'; UTIL_INTERVAL: 'util-interval'; UUCP: 'uucp'; UUCP_PATH: 'uucp-path'; V1_RP_REACHABILITY: 'v1-rp-reachability'; V2: 'v2'; VACANT_MESSAGE: 'vacant-message'; VACL: 'vacl'; VAD: 'vad'; VALID_11A_40MHZ_CHANNEL_PAIR: 'valid-11a-40mhz-channel-pair'; VALID_11A_80MHZ_CHANNEL_GROUP: 'valid-11a-80mhz-channel-group'; VALID_11A_CHANNEL: 'valid-11a-channel'; VALID_11G_40MHZ_CHANNEL_PAIR: 'valid-11g-40mhz-channel-pair'; VALID_11G_CHANNEL: 'valid-11g-channel'; VALID_AND_PROTECTED_SSID: 'valid-and-protected-ssid'; VALIDATION_USAGE: 'validation-usage'; VAP_ENABLE: 'vap-enable'; VENDOR_OPTION: 'vendor-option'; VERIFICATION: 'verification'; VERIFY: 'verify'; VERIFY_DATA: 'verify-data'; VERSION: 'version'; VIEW: 'view'; VIOLATE_ACTION: 'violate-action'; VIRTUAL: 'virtual'; VIRTUAL_ADDRESS: 'virtual-address'; VIRTUAL_AP: 'virtual-ap'; VIRTUAL_ROUTER: 'virtual-router'; VIRTUAL_TEMPLATE: 'virtual-template'; VFI: 'vfi'; VFP: 'VFP'; VLAN: 'vlan'; VLAN_AWARE_BUNDLE: 'vlan-aware-bundle'; VLAN_NAME: 'vlan-name'; VLT_PEER_LAG: 'vlt-peer-lag'; VMNET: 'vmnet'; VMTRACER: 'vmtracer'; VNI: 'vni'; VOCERA: 'vocera'; VOICE: 'voice'; VOICE_CARD: 'voice-card'; VOICE_CLASS: 'voice-class'; VOICE_PORT: 'voice-port'; VOICE_SERVICE: 'voice-service'; VOIP: 'voip'; VOIP_CAC_PROFILE: 'voip-cac-profile'; VPC: 'vpc'; VPDN_GROUP: 'vpdn-group'; VPN: 'vpn'; VPN_DIALER: 'vpn-dialer'; VPN_GROUP_POLICY: 'vpn-group-policy'; VPN_IPV4: 'vpn-ipv4'; VPN_IPV6: 'vpn-ipv6'; VRF: 'vrf' -> pushMode(M_Vrf); VRF_ALSO: 'vrf-also'; VRF_UNICAST_RIB: 'vrf-unicast-rib'; VRRP: 'vrrp'; VTEP: 'vtep'; VTP: 'vtp'; VTY: 'vty'; VXLAN: 'vxlan'; VXLAN_ENCAPSULATION: 'vxlan-encapsulation'; VXLAN_VTEP_LEARN: 'vxlan-vtep-learn'; WAIT_FOR: 'wait-for'; WAIT_FOR_BGP: 'wait-for-bgp'; WAIT_FOR_CONVERGENCE: 'wait-for-convergence'; WAIT_INSTALL: 'wait-install'; WAIT_START: 'wait-start'; WARNINGS: 'warnings'; WARNING_LIMIT: 'warning-limit'; WARNING_ONLY: 'warning-only'; WARNTIME: 'warntime'; WATCHDOG: 'watchdog'; WATCH_LIST: 'watch-list'; WAVELENGTH: 'wavelength'; WCCP: 'wccp'; WEB_CACHE: 'web-cache'; WEB_HTTPS_PORT_443: 'web-https-port-443'; WEB_MAX_CLIENTS: 'web-max-clients'; WEB_SERVER: 'web-server'; WEBAUTH: 'webauth'; WEBVPN: 'webvpn'; WEEKDAY: 'weekday'; WEEKEND: 'weekend'; WEIGHT: 'weight'; WEIGHTING: 'weighting'; WELCOME_PAGE: 'welcome-page'; WHITE_LIST: 'white-list'; WHO: 'who'; WHOIS: 'whois'; WIDE: 'wide'; WIDE_METRIC: 'wide-metric'; WIDEBAND: 'wideband'; WINDOW: 'window'; WINDOW_SIZE: 'window-size'; WIRED_AP_PROFILE: 'wired-ap-profile'; WIRED_CONTAINMENT: 'wired-containment'; WIRED_PORT_PROFILE: 'wired-port-profile'; WIRED_TO_WIRELESS_ROAM: 'wired-to-wireless-roam'; WIRELESS_CONTAINMENT: 'wireless-containment'; WLAN: 'wlan'; WMM: 'wmm'; WMS_GENERAL_PROFILE: 'wms-general-profile'; WMS_LOCAL_SYSTEM_PROFILE: 'wms-local-system-profile'; WPA_FAST_HANDOVER: 'wpa-fast-handover'; WRITE_MEMORY: 'write-memory'; WRR_QUEUE: 'wrr-queue'; WSMA: 'wsma'; WWW: 'www'; X25: 'x25'; XCONNECT: 'xconnect'; XCVR_MISCONFIGURED: 'xcvr-misconfigured'; XCVR_OVERHEAT: 'xcvr-overheat'; XCVR_POWER_UNSUPPORTED: 'xcvr-power-unsupported'; XCVR_UNSUPPORTED: 'xcvr-unsupported'; XDMCP: 'xdmcp'; XML : 'XML' | 'xml' ; XNS_CH: 'xns-ch'; XNS_MAIL: 'xns-mail'; XNS_TIME: 'xns-time'; YELLOW: 'yellow'; Z39_50: 'z39-50'; /* Other Tokens */ MD5_ARISTA : '$1$' F_AristaBase64String '$' F_AristaBase64String ; SHA512_ARISTA : '$6$' F_AristaBase64String '$' F_AristaBase64String ; POUND : '#' -> pushMode ( M_Description ) ; MAC_ADDRESS_LITERAL : F_HexDigit F_HexDigit F_HexDigit F_HexDigit '.' F_HexDigit F_HexDigit F_HexDigit F_HexDigit '.' F_HexDigit F_HexDigit F_HexDigit F_HexDigit ; HEX : '0x' F_HexDigit+ ; AMPERSAND : '&' ; ANGLE_BRACKET_LEFT : '<' ; ANGLE_BRACKET_RIGHT : '>' ; ASTERISK : '*' ; AT : '@' ; BACKSLASH : '\\' ; BRACE_LEFT : '{' ; BRACE_RIGHT : '}' ; BRACKET_LEFT : '[' ; BRACKET_RIGHT : ']' ; CARAT : '^' ; COLON : ':' ; COMMA : ',' ; COMMENT_LINE : ( F_Whitespace )* [!#] { // TODO: in JDK 12. can use inline switch case ((java.util.function.Supplier<Boolean>)() -> { switch(lastTokenType()) { case -1: case BANNER_DELIMITER_EOS: case NEWLINE: return true; default: return false; }}).get() }? F_NonNewline* F_Newline -> channel ( HIDDEN ) ; COMMENT_TAIL : '!' F_NonNewline* -> channel ( HIDDEN ) ; ARISTA_PAGINATION_DISABLED : 'Pagination disabled.' F_Newline -> channel ( HIDDEN ) ; ARISTA_PROMPT_SHOW_RUN : F_NonWhitespace+ [>#] {lastTokenType() == NEWLINE || lastTokenType() == -1}? 'show' F_Whitespace+ 'run' ( 'n' ( 'i' ( 'n' ( 'g' ( '-' ( 'c' ( 'o' ( 'n' ( 'f' ( 'i' 'g'? )? )? )? )? )? )? )? )? )? )? F_Whitespace* F_Newline -> channel ( HIDDEN ) ; DASH: '-'; DOLLAR : '$' ; // Numbers: keep in order UINT8: F_Uint8; UINT16: F_Uint16; UINT32: F_Uint32; // Hope to kill these two eventually DEC: F_Digit+; DIGIT: F_Digit; DOUBLE_QUOTE : '"' ; EQUALS : '=' ; FLOAT : ( F_PositiveDigit F_Digit* '.' F_Digit+ ) ; FORWARD_SLASH : '/' ; IP_ADDRESS : F_IpAddress ; IP_PREFIX : F_IpPrefix ; IPV6_ADDRESS : F_Ipv6Address ; IPV6_PREFIX : F_Ipv6Prefix ; NEWLINE : F_Newline ; PAREN_LEFT : '(' ; PAREN_RIGHT : ')' ; PERCENT : '%' ; PERIOD : '.' ; PLUS : '+' ; SEMICOLON : ';' ; SINGLE_QUOTE : '\'' ; UNDERSCORE: '_'; WS : F_Whitespace+ -> channel ( HIDDEN ) ; // Fragments // Variable should be last unless we can find a reason not to. VARIABLE : F_Variable_VarChar* F_Variable_RequiredVarChar F_Variable_VarChar* ; fragment F_AristaBase64Char : [0-9A-Za-z/.] ; fragment F_AristaBase64String : F_AristaBase64Char+ ; fragment F_Base64Char : [0-9A-Za-z/+] ; fragment F_Base64Quadruple : F_Base64Char F_Base64Char F_Base64Char F_Base64Char ; fragment F_Base64String : F_Base64Quadruple* ( F_Base64Quadruple | F_Base64Char F_Base64Char '==' | F_Base64Char F_Base64Char F_Base64Char '=' ) ; fragment F_Digit : [0-9] ; fragment F_HexDigit : [0-9A-Fa-f] ; fragment F_HexWord : F_HexDigit F_HexDigit? F_HexDigit? F_HexDigit? ; fragment F_HexWord2 : F_HexWord ':' F_HexWord ; fragment F_HexWord3 : F_HexWord2 ':' F_HexWord ; fragment F_HexWord4 : F_HexWord3 ':' F_HexWord ; fragment F_HexWord5 : F_HexWord4 ':' F_HexWord ; fragment F_HexWord6 : F_HexWord5 ':' F_HexWord ; fragment F_HexWord7 : F_HexWord6 ':' F_HexWord ; fragment F_HexWord8 : F_HexWord6 ':' F_HexWordFinal2 ; fragment F_HexWordFinal2 : F_HexWord2 | F_IpAddress ; fragment F_HexWordFinal3 : F_HexWord ':' F_HexWordFinal2 ; fragment F_HexWordFinal4 : F_HexWord ':' F_HexWordFinal3 ; fragment F_HexWordFinal5 : F_HexWord ':' F_HexWordFinal4 ; fragment F_HexWordFinal6 : F_HexWord ':' F_HexWordFinal5 ; fragment F_HexWordFinal7 : F_HexWord ':' F_HexWordFinal6 ; fragment F_HexWordLE1 : F_HexWord? ; fragment F_HexWordLE2 : F_HexWordLE1 | F_HexWordFinal2 ; fragment F_HexWordLE3 : F_HexWordLE2 | F_HexWordFinal3 ; fragment F_HexWordLE4 : F_HexWordLE3 | F_HexWordFinal4 ; fragment F_HexWordLE5 : F_HexWordLE4 | F_HexWordFinal5 ; fragment F_HexWordLE6 : F_HexWordLE5 | F_HexWordFinal6 ; fragment F_HexWordLE7 : F_HexWordLE6 | F_HexWordFinal7 ; fragment F_IpAddress : F_Uint8 '.' F_Uint8 '.' F_Uint8 '.' F_Uint8 ; fragment F_IpPrefix : F_IpAddress '/' F_IpPrefixLength ; fragment F_IpPrefixLength : F_Digit | [12] F_Digit | [3] [012] ; fragment F_Ipv6Address : '::' F_HexWordLE7 | F_HexWord '::' F_HexWordLE6 | F_HexWord2 '::' F_HexWordLE5 | F_HexWord3 '::' F_HexWordLE4 | F_HexWord4 '::' F_HexWordLE3 | F_HexWord5 '::' F_HexWordLE2 | F_HexWord6 '::' F_HexWordLE1 | F_HexWord7 '::' | F_HexWord8 ; fragment F_Ipv6Prefix : F_Ipv6Address '/' F_Ipv6PrefixLength ; fragment F_Ipv6PrefixLength : F_Digit | F_PositiveDigit F_Digit | '1' [01] F_Digit | '12' [0-8] ; fragment F_Letter : F_LowerCaseLetter | F_UpperCaseLetter ; fragment F_LowerCaseLetter : 'a' .. 'z' ; // Any number of newlines, allowing whitespace in between fragment F_Newline : F_NewlineChar (F_Whitespace* F_NewlineChar+)* ; // A single newline character [sequence - allowing \r, \r\n, or \n] fragment F_NewlineChar : '\r' '\n'? | '\n' ; fragment F_NonNewline : ~[\n\r] ; fragment F_NonWhitespace : ~( ' ' | '\t' | '\u000C' | '\u00A0' | '\n' | '\r' ) ; fragment F_PositiveDigit : [1-9] ; fragment F_StandardCommunity : F_Uint16 ':' F_Uint16 ; fragment F_Uint8 : F_Digit | F_PositiveDigit F_Digit | '1' F_Digit F_Digit | '2' [0-4] F_Digit | '25' [0-5] ; fragment F_Uint16 : F_Digit | F_PositiveDigit F_Digit F_Digit? F_Digit? | [1-5] F_Digit F_Digit F_Digit F_Digit | '6' [0-4] F_Digit F_Digit F_Digit | '65' [0-4] F_Digit F_Digit | '655' [0-2] F_Digit | '6553' [0-5] ; fragment F_Uint32 : // 0-4294967295 F_Digit | F_PositiveDigit F_Digit F_Digit? F_Digit? F_Digit? F_Digit? F_Digit? F_Digit? F_Digit? | [1-3] F_Digit F_Digit F_Digit F_Digit F_Digit F_Digit F_Digit F_Digit F_Digit | '4' [0-1] F_Digit F_Digit F_Digit F_Digit F_Digit F_Digit F_Digit F_Digit | '42' [0-8] F_Digit F_Digit F_Digit F_Digit F_Digit F_Digit F_Digit | '429' [0-3] F_Digit F_Digit F_Digit F_Digit F_Digit F_Digit | '4294' [0-8] F_Digit F_Digit F_Digit F_Digit F_Digit | '42949' [0-5] F_Digit F_Digit F_Digit F_Digit | '429496' [0-6] F_Digit F_Digit F_Digit | '4294967' [0-1] F_Digit F_Digit | '42949672' [0-8] F_Digit | '429496729' [0-5] ; fragment F_UpperCaseLetter : 'A' .. 'Z' ; fragment F_Variable_RequiredVarChar : ~( '0' .. '9' | '-' | [ \t\u000C\u00A0\n\r(),!+$'"*#] | '[' | ']' | [/.] | ':' ) ; fragment F_Variable : F_Variable_VarChar* F_Variable_RequiredVarChar F_Variable_VarChar* ; fragment F_Variable_VarChar : ~( [ \t\u000C\u00A0\n\r(),!$'"*#] | '[' | ']' ) ; fragment F_Variable_VarChar_Ipv6 : ~( [ \t\u000C\u00A0\n\r(),!$'"*#] | '[' | ']' | ':' ) ; fragment F_Whitespace : ' ' | '\t' | '\u000C' | '\u00A0' ; mode M_Alias; M_Alias_VARIABLE : F_NonWhitespace+ -> type ( VARIABLE ) , popMode ; M_Alias_WS : F_Whitespace+ -> channel ( HIDDEN ) ; mode M_AsPath; M_AsPath_ACCESS_LIST : 'access-list' -> type ( ACCESS_LIST ) , mode ( M_AsPathAccessList ) ; M_AsPath_CONFED : 'confed' -> type ( CONFED ) , popMode ; M_AsPath_DEC : F_Digit+ -> type ( DEC ) , popMode ; M_AsPath_IGNORE : 'ignore' -> type ( IGNORE ) , popMode ; M_AsPath_IN : 'in' -> type ( IN ) , popMode ; M_AsPath_IS_LOCAL : 'is-local' -> type ( IS_LOCAL ) , popMode ; M_AsPath_MULTIPATH_RELAX : 'multipath-relax' -> type ( MULTIPATH_RELAX ) , popMode ; M_AsPath_NEIGHBOR_IS : 'neighbor-is' -> type ( NEIGHBOR_IS ) , popMode ; M_AsPath_PASSES_THROUGH : 'passes-through' -> type ( PASSES_THROUGH ) , popMode ; M_AsPath_PREPEND : 'prepend' -> type ( PREPEND ) , popMode ; M_AsPath_PREPEND_OWN : 'prepend-own' -> type ( PREPEND_OWN ) , popMode ; M_AsPath_ORIGINATES_FROM : 'originates-from' -> type ( ORIGINATES_FROM ) , popMode ; M_AsPath_REGEX_MODE : 'regex-mode' -> type ( REGEX_MODE ) , popMode ; M_AsPath_REMOTE_AS : 'remote-as' -> type ( REMOTE_AS ) , popMode ; M_AsPath_TAG : 'tag' -> type ( TAG ) , popMode ; M_AsPath_VARIABLE : F_Variable_RequiredVarChar F_Variable_VarChar* -> type ( VARIABLE ) , popMode ; M_AsPath_WS : F_Whitespace+ -> channel ( HIDDEN ) ; mode M_AsPathAccessList; M_AsPathAccessList_WORD : F_NonWhitespace+ -> type(WORD), mode(M_AsPathAccessList_Action) ; M_AsPathAccessList_NEWLINE : F_Newline -> type(NEWLINE), popMode ; M_AsPathAccessList_WS : F_Whitespace+ -> channel(HIDDEN) ; mode M_AsPathAccessList_Action; M_AsPathAccessList_Action_DENY : 'deny' -> type(DENY), mode(M_Word) ; M_AsPathAccessList_Action_PERMIT : 'permit' -> type(PERMIT), mode(M_Word) ; M_AsPathAccessList_Action_NEWLINE : F_Newline -> type(NEWLINE), popMode ; M_AsPathAccessList_Action_WS : F_Whitespace+ -> channel(HIDDEN) ; mode M_Authentication; M_Authentication_DOUBLE_QUOTE : '"' -> mode ( M_DoubleQuote ) ; M_Authentication_BANNER : 'banner' F_Whitespace+ -> type ( BANNER ) ; M_Authentication_ARAP : 'arap' -> type ( ARAP ) , popMode ; M_Authentication_ATTEMPTS : 'attempts' -> type ( ATTEMPTS ) , popMode ; M_Authentication_CAPTIVE_PORTAL : 'captive-portal' -> type ( CAPTIVE_PORTAL ) , popMode ; M_Authentication_COMMAND : 'command' -> type ( COMMAND ) , popMode ; M_Authentication_CONTROL_DIRECTION : 'control-direction' -> type ( CONTROL_DIRECTION ) , popMode ; M_Authentication_DEC : F_Digit+ -> type ( DEC ) , popMode ; M_Authentication_DOT1X : 'dot1x' -> type ( DOT1X ) , popMode ; M_Authentication_ENABLE : 'enable' -> type ( ENABLE ) , popMode ; M_Authentication_EOU : 'eou' -> type ( EOU ) , popMode ; M_Authentication_FAIL_MESSAGE : 'fail-message' -> type ( FAIL_MESSAGE ) , popMode ; M_Authentication_FAILURE : 'failure' -> type ( FAILURE ) , popMode ; M_Authentication_HTTP : 'http' -> type ( HTTP ) , popMode ; M_Authentication_INCLUDE : 'include' -> type ( INCLUDE ) , popMode ; M_Authentication_KEY_CHAIN : 'key-chain' -> type ( KEY_CHAIN ) , popMode ; M_Authentication_KEYED_SHA1 : [kK][eE][yY][eE][dD]'-'[sS][hH][aA]'1' -> type ( KEYED_SHA1 ) , popMode ; M_Authentication_LOGIN : 'login' -> type ( LOGIN ) , popMode ; M_Authentication_MAC : 'mac' -> type ( MAC ) , popMode ; M_Authentication_MAC_MOVE : 'mac-move' -> type ( MAC_MOVE ) , popMode ; M_Authentication_MESSAGE_DIGEST : 'message-digest' -> type ( MESSAGE_DIGEST ) , popMode ; M_Authentication_MGMT : 'mgmt' -> type ( MGMT ) , popMode ; M_Authentication_MODE : 'mode' -> type ( MODE ) , popMode ; M_Authentication_NEWLINE : F_Newline -> type ( NEWLINE ) , popMode ; M_Authentication_ONEP : 'onep' -> type ( ONEP ) , popMode ; M_Authentication_PASSWORD_PROMPT : 'password-prompt' -> type ( PASSWORD_PROMPT ) , popMode ; M_Authentication_POLICY : 'policy' -> type ( POLICY ) , popMode ; M_Authentication_PPP : 'ppp' -> type ( PPP ) , popMode ; M_Authentication_PRE_SHARE : 'pre-share' -> type ( PRE_SHARE ) , popMode ; M_Authentication_RSA_ENCR : 'rsa-encr' -> type ( RSA_ENCR ) , popMode ; M_Authentication_RSA_SIG : 'rsa-sig' -> type ( RSA_SIG ) , popMode ; M_Authentication_SGBP : 'sgbp' -> type ( SGBP ) , popMode ; M_Authentication_SERIAL : 'serial' -> type ( SERIAL ) , popMode ; M_Authentication_SSH : 'ssh' -> type ( SSH ) , popMode ; M_Authentication_STATEFUL_DOT1X : 'stateful-dot1x' -> type ( STATEFUL_DOT1X ) , popMode ; M_Authentication_STATEFUL_KERBEROS : 'stateful-kerberos' -> type ( STATEFUL_KERBEROS ) , popMode ; M_Authentication_STATEFUL_NTLM : 'stateful-ntlm' -> type ( STATEFUL_NTLM ) , popMode ; M_Authentication_SUCCESS : 'success' -> type ( SUCCESS ) , popMode ; M_Authentication_SUPPRESS : 'suppress' -> type ( SUPPRESS ) , popMode ; M_Authentication_TELNET : 'telnet' -> type ( TELNET ) , popMode ; M_Authentication_TEXT : 'text' -> type ( TEXT ) , popMode ; M_Authentication_USERNAME_PROMPT : 'username-prompt' -> type ( USERNAME_PROMPT ) , mode ( M_AuthenticationUsernamePrompt ) ; M_Authentication_VPN : 'vpn' -> type ( VPN ) , popMode ; M_Authentication_WIRED : 'wired' -> type ( WIRED ) , popMode ; M_Authentication_WISPR : 'wispr' -> type ( WISPR ) , popMode ; M_Authentication_VARIABLE : F_Variable -> type ( VARIABLE ) , popMode ; M_Authentication_WS : F_Whitespace+ -> channel ( HIDDEN ) ; mode M_AuthenticationUsernamePrompt; M_AuthenticationUsernamePrompt_DOUBLE_QUOTE : '"' -> type ( DOUBLE_QUOTE ) , mode ( M_AuthenticationUsernamePromptText ) ; M_AuthenticationUsernamePrompt_WS : F_Whitespace+ -> channel ( HIDDEN ) ; mode M_AuthenticationUsernamePromptText; M_AuthenticationUsernamePromptText_RAW_TEXT : ~'"'+ -> type ( RAW_TEXT ) ; M_AuthenticationUsernamePromptText_DOUBLE_QUOTE : '"' -> type ( DOUBLE_QUOTE ) , popMode ; mode M_Banner; M_Banner_EXEC : 'exec' -> type ( EXEC ), mode ( M_BannerEos ) ; M_Banner_LOGIN : 'login' -> type ( LOGIN ), mode ( M_BannerEos ) ; M_Banner_MOTD : 'motd' -> type ( MOTD ), mode ( M_BannerEos ) ; M_Banner_NEWLINE : // Did not get a banner type, so exit banner mode F_Newline -> type ( NEWLINE ) , popMode ; M_Banner_WS : F_Whitespace+ -> channel ( HIDDEN ) ; mode M_BannerEos; M_BannerEos_NEWLINE : // Consume single newline. Subsequent newlines are part of banner. F_Newline -> type(NEWLINE), mode(M_BannerEosText) ; M_BannerEos_WS : F_Whitespace+ -> channel(HIDDEN) ; mode M_BannerEosText; M_BannerEos_BANNER_DELIMITER_EOS : 'EOF' F_Newline -> type(BANNER_DELIMITER_EOS), popMode ; M_BannerEos_BODY : F_NonNewline* F_Newline { if (bannerEosDelimiterFollows()) { setType(BANNER_BODY); } else { more(); } } ; mode M_Certificate; M_Certificate_CA : 'ca' -> type ( CA ) , pushMode ( M_CertificateText ) ; M_Certificate_CHAIN : 'chain' -> type ( CHAIN ) , popMode ; M_Certificate_SELF_SIGNED : 'self-signed' -> type ( SELF_SIGNED ) , pushMode ( M_CertificateText ) ; M_Cerficate_HEX_FRAGMENT : [A-Fa-f0-9]+ -> type ( HEX_FRAGMENT ) , pushMode ( M_CertificateText ) ; M_Certificate_WS : F_Whitespace+ -> channel ( HIDDEN ) ; mode M_CertificateText; M_CertificateText_QUIT : 'quit' -> type ( QUIT ) , mode ( DEFAULT_MODE ) ; M_CertificateText_HEX_FRAGMENT : [A-Fa-f0-9]+ -> type ( HEX_FRAGMENT ) ; M_CertificateText_WS : ( F_Whitespace | F_Newline )+ -> channel ( HIDDEN ) ; mode M_Command; M_Command_QuotedString : '"' ( ~'"' )* '"' -> type ( QUOTED_TEXT ) ; M_Command_Newline : F_Newline -> type ( NEWLINE ) , popMode ; M_Command_Variable : F_NonWhitespace+ -> type ( VARIABLE ) ; M_Command_WS : F_Whitespace+ -> channel ( HIDDEN ) ; mode M_COMMENT; M_COMMENT_NEWLINE : F_Newline -> type ( NEWLINE ) , popMode ; M_COMMENT_NON_NEWLINE : F_NonNewline+ ; //////// // <4.23 // ip community-list NAME standard <permit|deny> communities... // ip community-list NAME expanded <permit|deny> regex // 4.23+ // ip community-list NAME <permit|deny> communities... // ip community-list regexp NAME <permit|deny> regex /////// mode M_CommunityList; M_CommunityList_EXPANDED : // expanded list, old style 'expanded' -> type(EXPANDED), mode(M_CommunityList_Regexp) ; M_CommunityList_REGEXP : // expanded list, new style 'regexp' -> type(REGEXP), mode(M_CommunityList_Regexp) ; M_CommunityList_STANDARD : // standard list, old style. Action and communities can be lexed normally 'standard' -> type(STANDARD), mode(M_Word) ; M_CommunityList_WORD : // standard list, communities can be parsed normally F_NonWhitespace+ -> type(WORD), popMode ; M_CommunityList_NEWLINE : // bail in case of short line F_Newline -> type(NEWLINE), popMode ; M_CommunityList_WS : F_Whitespace+ -> channel(HIDDEN) ; mode M_CommunityList_Regexp; M_CommunityList_Regexp_WORD : // name, now need action F_NonWhitespace+ -> type(WORD), mode(M_CommunityList_Regexp_Action) ; M_CommunityList_Regexp_NEWLINE : // bail in case of short line F_Newline -> type(NEWLINE), popMode ; M_CommunityList_Regexp_WS : F_Whitespace+ -> channel(HIDDEN) ; mode M_CommunityList_Regexp_Action; M_CommunityList_Regexp_Action_DENY : 'deny' -> type(DENY), mode(M_Word) ; M_CommunityList_Regexp_Action_PERMIT : 'permit' -> type(PERMIT), mode(M_Word) ; M_CommunityList_Regexp_Action_NEWLINE : // bail in case of short line F_Newline -> type(NEWLINE), popMode ; M_CommunityList_Regexp_Action_WS : F_Whitespace+ -> channel(HIDDEN) ; mode M_Description; M_Description_NEWLINE : F_Newline -> type ( NEWLINE ) , popMode ; M_Description_NON_NEWLINE : F_NonNewline+ -> type ( RAW_TEXT ) ; mode M_DoubleQuote; M_DoubleQuote_DOUBLE_QUOTE : '"' -> type ( DOUBLE_QUOTE ) , popMode ; M_DoubleQuote_TEXT : ~'"'+ ; mode M_Extcommunity; M_Extcommunity_COLON : ':' -> type ( COLON ) ; M_Extcommunity_DEC : F_Digit+ -> type ( DEC ) ; M_ExtCommunity_NEWLINE : F_Newline -> type ( NEWLINE ) , popMode ; M_Extcommunity_RT : 'rt' -> type ( RT ) ; M_Extcommunity_WS : F_Whitespace+ -> channel ( HIDDEN ) ; mode M_FiberNode; M_FiberNode_DEC : F_Digit+ -> type ( DEC ) , popMode ; M_FiberNode_DOUBLE_QUOTE : '"' -> type ( DOUBLE_QUOTE ) , mode ( M_DoubleQuote ) ; M_FiberNode_WS : F_Whitespace+ -> channel ( HIDDEN ) ; mode M_Interface; M_Interface_ALL : 'all' -> type ( ALL ) , popMode ; M_Interface_BREAKOUT : 'breakout' -> type ( BREAKOUT ) , popMode ; M_Interface_CABLE : 'cable' -> type ( CABLE ) , popMode ; M_Interface_DEFAULT : 'default' -> type ( DEFAULT ) , popMode ; M_Interface_DOLLAR : '$' -> type ( DOLLAR ) , popMode ; M_Interface_EQ : 'eq' -> type ( EQ ) , popMode ; M_Interface_GLOBAL : 'global' -> type ( GLOBAL ) , popMode ; M_Interface_GT : 'gt' -> type ( GT ) , popMode ; M_Interface_INFORM : 'inform' -> type ( INFORM ) ; M_Interface_INFORMS : 'informs' -> type ( INFORMS ) ; M_Interface_IP : 'ip' -> type ( IP ) , popMode ; M_Interface_IPV4 : 'IPv4' -> type ( IPV4 ) ; M_Interface_POINT_TO_POINT : 'point-to-point' -> type ( POINT_TO_POINT ) , popMode ; M_Interface_POLICY : 'policy' -> type ( POLICY ) , popMode ; M_Interface_L2TRANSPORT : 'l2transport' -> type ( L2TRANSPORT ) , popMode ; M_Interface_LT : 'lt' -> type ( LT ) , popMode ; M_Interface_MODULE : 'module' -> type ( MODULE ) ; M_Interface_NO : 'no' -> type ( NO ) , popMode ; M_Interface_LINE_PROTOCOL : 'line-protocol' -> type ( LINE_PROTOCOL ) , popMode ; M_Interface_MULTIPOINT : 'multipoint' -> type ( MULTIPOINT ) , popMode ; M_Interface_SHUTDOWN : 'shutdown' -> type ( SHUTDOWN ) , popMode ; M_Interface_TRAP : 'trap' -> type ( TRAP ) ; M_Interface_TRAPS : 'traps' -> type ( TRAPS ) ; M_Interface_VRF : 'vrf' -> type (VRF), mode(M_Vrf) ; M_Interface_COLON : ':' -> type ( COLON ) ; M_Interface_COMMA : ',' -> type ( COMMA ) ; M_Interface_DASH : '-' -> type ( DASH ) ; M_Interface_NEWLINE : F_Newline -> type ( NEWLINE ) , popMode ; M_Interface_NUMBER : DEC -> type ( DEC ) ; M_Interface_PERIOD : '.' -> type ( PERIOD ) ; M_Interface_PIPE : '|' -> type ( PIPE ) , popMode ; M_Interface_PRECFONFIGURE : 'preconfigure' -> type ( PRECONFIGURE ) ; // M_Interface_VXLAN must come before M_Interface_PREFIX M_Interface_VXLAN : [Vv]'xlan' -> type (VXLAN) ; M_Interface_PREFIX : ( F_Letter ( F_Letter | '-' | '_' )* ) | [Ee]'1' | [Tt]'1' ; M_Interface_RELAY : 'relay' -> type ( RELAY ) , popMode ; M_Interface_SLASH : '/' -> type ( FORWARD_SLASH ) ; M_Interface_WS : F_Whitespace+ -> channel ( HIDDEN ) ; mode M_Ip_access_list; M_Ip_access_list_STANDARD : 'standard' -> type(STANDARD), mode(M_Word) ; M_Ip_access_list_NEWLINE : F_Newline -> type(NEWLINE), popMode ; M_Ip_access_list_WORD : F_NonWhitespace+ -> type(WORD), popMode ; M_Ip_access_list_WS : F_Whitespace+ -> channel(HIDDEN) ; mode M_ISO_Address; M_ISO_Address_ISO_ADDRESS : F_HexDigit+ ( '.' F_HexDigit+ )+ -> type ( ISO_ADDRESS ) , popMode ; M_ISO_Address_WS : F_Whitespace+ -> channel ( HIDDEN ) ; mode M_Name; M_Name_NAME : ( F_NonWhitespace+ | '"' ~'"'* '"' ) -> type ( VARIABLE ) , popMode ; M_Name_NEWLINE : F_Newline -> type ( NEWLINE ) , popMode ; M_Name_WS : F_Whitespace+ -> channel ( HIDDEN ) ; mode M_NEIGHBOR; M_NEIGHBOR_CHANGES : 'changes' -> type ( CHANGES ) , popMode ; M_NEIGHBOR_DEFAULT : 'default' -> type ( DEFAULT ) , popMode ; M_NEIGHBOR_IP_ADDRESS : F_IpAddress -> type ( IP_ADDRESS ) , popMode ; M_NEIGHBOR_IP_PREFIX : F_IpPrefix -> type ( IP_PREFIX ) , popMode ; M_NEIGHBOR_IPV6_ADDRESS : F_Ipv6Address -> type ( IPV6_ADDRESS ) , popMode ; M_NEIGHBOR_IPV6_PREFIX : F_Ipv6Prefix -> type ( IPV6_PREFIX ) , popMode ; M_NEIGHBOR_NLRI : 'nlri' -> type ( NLRI ) , popMode ; M_NEIGHBOR_PASSIVE : 'passive' -> type ( PASSIVE ) , popMode ; M_NEIGHBOR_SRC_IP : 'src-ip' -> type ( SRC_IP ) , popMode ; M_NEIGHBOR_NEWLINE : F_Newline -> type ( NEWLINE ) , popMode ; M_NEIGHBOR_VARIABLE : F_Variable_VarChar+ -> type ( VARIABLE ) , popMode ; M_NEIGHBOR_WS : F_Whitespace+ -> channel ( HIDDEN ) ; mode M_Prefix_Or_Standard_Acl; M_Prefix_Or_Standard_Acl_IP_ADDRESS : F_IpAddress -> type ( IP_ADDRESS ) , popMode ; M_Prefix_Or_Standard_Acl_IP_PREFIX : F_IpPrefix -> type ( IP_PREFIX ) , popMode ; M_Prefix_Or_Standard_Acl_WORD : F_NonWhitespace+ -> type ( WORD ) , popMode ; M_Prefix_Or_Standard_Acl_NEWLINE : F_Newline -> type ( NEWLINE ) , popMode ; M_Prefix_Or_Standard_Acl_WS : F_Whitespace+ -> channel ( HIDDEN ) ; mode M_PrefixList; M_PrefixList_IN : 'in' -> type ( IN ) ; M_PrefixList_OUT : 'out' -> type ( OUT ) ; M_PrefixList_NEWLINE : F_Newline -> type ( NEWLINE ) , popMode ; M_PrefixList_VARIABLE : F_NonWhitespace+ -> type ( VARIABLE ) , popMode ; M_PrefixList_WS : F_Whitespace+ -> channel ( HIDDEN ) ; mode M_REMARK; M_REMARK_NEWLINE : F_Newline -> type ( NEWLINE ) , popMode ; M_REMARK_REMARK : F_NonNewline+ -> type(RAW_TEXT) ; mode M_RouteMap; M_RouteMap_IN : 'in' -> type ( IN ) ; M_RouteMap_OUT : 'out' -> type ( OUT ) ; M_RouteMap_NEWLINE : F_Newline -> type ( NEWLINE ) , popMode ; M_RouteMap_VARIABLE : F_NonWhitespace+ -> type ( VARIABLE ) , popMode ; M_RouteMap_WS : F_Whitespace+ -> channel ( HIDDEN ) ; mode M_Seed; M_Seed_PASSWORD_SEED : F_NonWhitespace+ -> type ( PASSWORD_SEED ) , popMode ; mode M_SeedWhitespace; M_Seed_WS : F_Whitespace+ -> channel ( HIDDEN ) , mode ( M_Seed ) ; mode M_SnmpServerCommunity; M_SnmpServerCommunity_COMMUNITY : 'community' -> type ( COMMUNITY ) ; M_SnmpServerCommunity_WS : F_Whitespace+ -> channel ( HIDDEN ) ; M_SnmpServerCommunity_DOUBLE_QUOTE : '"' -> type ( DOUBLE_QUOTE ), mode ( M_DoubleQuote ) ; M_SnmpServerCommunity_CHAR : F_NonWhitespace -> mode ( M_Name ), more ; mode M_Vrf; M_Vrf_DEFINITION : 'definition' -> type(DEFINITION), mode(M_Word) ; M_Vrf_FORWARDING : 'forwarding' -> type(FORWARDING), mode(M_Word) ; M_Vrf_INSTANCE : 'instance' -> type(INSTANCE), mode(M_Word) ; M_Vrf_WORD : F_NonWhitespace+ -> type(WORD), popMode ; M_Vrf_NEWLINE : F_Newline -> type (NEWLINE), popMode ; M_Vrf_WS : F_Whitespace+ -> channel(HIDDEN) ; mode M_Word; M_Word_WORD : F_NonWhitespace+ -> type ( WORD ) , popMode ; M_Word_NEWLINE : F_Newline -> type ( NEWLINE ) , popMode ; M_Word_WS : F_Whitespace+ -> channel ( HIDDEN ) ; mode M_Words; M_Words_WORD : F_NonWhitespace+ -> type(WORD) ; M_Words_NEWLINE : F_Newline -> type(NEWLINE), popMode ; M_Words_WS : F_Whitespace+ -> channel(HIDDEN) ;
README.agda
nad/dependently-typed-syntax
5
7411
------------------------------------------------------------------------ -- A library for working with dependently typed syntax -- <NAME> ------------------------------------------------------------------------ -- This library is leaning heavily on two of Conor McBride's papers: -- -- * Type-Preserving Renaming and Substitution. -- -- * Outrageous but Meaningful Coincidences: Dependent type-safe -- syntax and evaluation. -- This module gives a brief overview of the modules in the library. module README where ------------------------------------------------------------------------ -- The library -- Contexts, variables, context morphisms, context extensions, etc. import deBruijn.Context -- Parallel substitutions (defined using an inductive family). import deBruijn.Substitution.Data.Basics -- A map function for the substitutions. import deBruijn.Substitution.Data.Map -- Some simple substitution combinators. (Given a term type which -- supports weakening and transformation of variables to terms various -- substitutions are defined and various lemmas proved.) import deBruijn.Substitution.Data.Simple -- Given an operation which applies a substitution to a term, -- satisfying some properties, more operations and lemmas are -- defined/proved. -- -- (This module reexports various other modules.) import deBruijn.Substitution.Data.Application -- A module which repackages (and reexports) the development under -- deBruijn.Substitution.Data. import deBruijn.Substitution.Data -- Some modules mirroring the development under -- deBruijn.Substitution.Data, but using substitutions defined as -- functions rather than data. -- -- The functional version of substitutions is in some respects easier -- to work with than the one based on data, but in other respects more -- awkward. I maintain both developments so that they can be compared. import deBruijn.Substitution.Function.Basics import deBruijn.Substitution.Function.Map import deBruijn.Substitution.Function.Simple -- The two definitions of substitutions are isomorphic (assuming -- extensionality). import deBruijn.Substitution.Isomorphic ------------------------------------------------------------------------ -- An example showing how the library can be used -- A well-typed representation of a dependently typed language. import README.DependentlyTyped.Term -- Normal and neutral terms. import README.DependentlyTyped.NormalForm -- Instantiation of deBruijn.Substitution.Data for terms. import README.DependentlyTyped.Term.Substitution -- Instantiation of deBruijn.Substitution.Data for normal and neutral -- terms. import README.DependentlyTyped.NormalForm.Substitution -- Normalisation by evaluation. import README.DependentlyTyped.NBE -- Various equality checkers (some complete, all sound). import README.DependentlyTyped.Equality-checker -- Raw terms. import README.DependentlyTyped.Raw-term -- A type-checker (sound). import README.DependentlyTyped.Type-checker -- A definability result: A "closed value" is the semantics of a -- closed term if and only if it satisfies all "Kripke predicates". import README.DependentlyTyped.Definability -- An observation: There is a term without a corresponding syntactic -- type (given some assumptions). import README.DependentlyTyped.Term-without-type -- Another observation: If the "Outrageous but Meaningful -- Coincidences" approach is used to formalise a language, then you -- can end up with an extensional type theory (with equality -- reflection). import README.DependentlyTyped.Extensional-type-theory -- Inductively defined beta-eta-equality. import README.DependentlyTyped.Beta-Eta -- TODO: Add an untyped example.
examples/ada-help-binary/src/resources.ads
stcarrez/resource-embedder
7
9979
<reponame>stcarrez/resource-embedder<gh_stars>1-10 package Resources is end Resources;
programs/oeis/166/A166931.asm
neoneye/loda
22
3766
<reponame>neoneye/loda ; A166931: Numbers n with property that n mod k is k-1 for all k = 2..9. ; 2519,5039,7559,10079,12599,15119,17639,20159,22679,25199,27719,30239,32759,35279,37799,40319,42839,45359,47879,50399,52919,55439,57959,60479,62999,65519,68039,70559,73079,75599,78119,80639,83159,85679,88199,90719,93239,95759,98279,100799,103319,105839,108359,110879,113399,115919,118439,120959,123479,125999,128519,131039,133559,136079,138599,141119,143639,146159,148679,151199,153719,156239,158759,161279,163799,166319,168839,171359,173879,176399,178919,181439,183959,186479,188999,191519,194039,196559,199079,201599,204119,206639,209159,211679,214199,216719,219239,221759,224279,226799,229319,231839,234359,236879,239399,241919,244439,246959,249479,251999 mul $0,2520 add $0,2519
programs/oeis/132/A132688.asm
neoneye/loda
22
91862
; A132688: a(n) = binomial(2^n + 3*n, n). ; 1,5,45,680,20475,1533939,350161812,280384608504,847073824772175,9894081531608130857,446730013630787463700695,77328499046923986969058944720,50891283683781760304442885961988100 mov $1,$0 mul $1,3 mov $2,2 pow $2,$0 add $1,$2 bin $1,$0 mov $0,$1
oeis/284/A284964.asm
neoneye/loda-programs
11
240934
; A284964: Numbers with digits 3 and 9 only. ; Submitted by <NAME> ; 3,9,33,39,93,99,333,339,393,399,933,939,993,999,3333,3339,3393,3399,3933,3939,3993,3999,9333,9339,9393,9399,9933,9939,9993,9999,33333,33339,33393,33399,33933,33939,33993,33999,39333,39339,39393,39399,39933,39939 add $0,1 mov $2,1 lpb $0 mov $3,$0 mul $0,2 sub $0,1 div $0,4 mod $3,2 mul $3,$2 add $1,$3 mul $2,10 lpe mul $1,6 sub $2,$1 mul $2,7 mov $0,$2 sub $0,28 div $0,7 add $0,3
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i3-7100_9_0xca_notsx.log_21829_627.asm
ljhsiun2/medusa
9
247868
<filename>Transynther/x86/_processed/AVXALIGN/_ht_zr_/i3-7100_9_0xca_notsx.log_21829_627.asm<gh_stars>1-10 .global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r9 push %rcx push %rdx lea addresses_normal_ht+0x12ec6, %r9 nop nop nop nop xor $3401, %rcx mov $0x6162636465666768, %r11 movq %r11, %xmm0 and $0xffffffffffffffc0, %r9 vmovntdq %ymm0, (%r9) nop nop nop add %rdx, %rdx lea addresses_WC_ht+0x138a6, %r12 nop nop nop nop and $5554, %r11 vmovups (%r12), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $0, %xmm3, %rdx nop inc %r9 pop %rdx pop %rcx pop %r9 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %rax push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_US+0x4cf6, %rsi lea addresses_WC+0x17d76, %rdi nop nop add %rdx, %rdx mov $44, %rcx rep movsl nop xor $45890, %rsi // Faulty Load lea addresses_US+0x4cf6, %rdx and $8900, %rsi movaps (%rdx), %xmm3 vpextrq $1, %xmm3, %r12 lea oracles, %rdi and $0xff, %r12 shlq $12, %r12 mov (%rdi,%r12,1), %r12 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_US', 'congruent': 0, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC', 'congruent': 7, 'same': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 16, 'AVXalign': True}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': True, 'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False}} {'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'00': 21682, '48': 147} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1461.asm
ljhsiun2/medusa
9
172569
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x19d21, %rsi lea addresses_A_ht+0x3621, %rdi nop and %r9, %r9 mov $44, %rcx rep movsw nop nop nop nop inc %r10 lea addresses_WT_ht+0x105c7, %rbp nop nop and $31518, %rax mov $0x6162636465666768, %r10 movq %r10, %xmm1 and $0xffffffffffffffc0, %rbp vmovntdq %ymm1, (%rbp) nop sub $24161, %rbp lea addresses_WT_ht+0x19151, %rcx nop nop add %rdi, %rdi mov $0x6162636465666768, %r10 movq %r10, (%rcx) nop nop nop nop nop and %r10, %r10 lea addresses_UC_ht+0x1e41d, %rsi nop nop nop nop cmp $55305, %rbp mov $0x6162636465666768, %r10 movq %r10, %xmm5 movups %xmm5, (%rsi) nop nop xor %rbp, %rbp lea addresses_WT_ht+0x1b9a1, %rsi nop nop add %rax, %rax vmovups (%rsi), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $1, %xmm5, %rdi nop dec %rbp pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r8 push %rbp push %rbx push %rsi // Load lea addresses_PSE+0xbf5, %r10 nop nop nop and $9694, %rsi movb (%r10), %r13b nop nop nop dec %r13 // Store lea addresses_US+0x1e821, %r8 dec %r11 movb $0x51, (%r8) sub $26279, %rsi // Store lea addresses_US+0x1bd61, %rbp nop nop nop add %r11, %r11 mov $0x5152535455565758, %r13 movq %r13, %xmm6 vmovaps %ymm6, (%rbp) nop nop nop dec %r10 // Store lea addresses_WC+0x17621, %r8 nop nop nop nop add $13593, %r13 mov $0x5152535455565758, %rbp movq %rbp, (%r8) nop add $58965, %r11 // Store lea addresses_RW+0x9c21, %rbp add $56535, %r11 movl $0x51525354, (%rbp) xor $34790, %rbp // Faulty Load lea addresses_A+0x1e421, %r11 clflush (%r11) nop nop nop sub %rbp, %rbp mov (%r11), %rbx lea oracles, %rsi and $0xff, %rbx shlq $12, %rbx mov (%rsi,%rbx,1), %rbx pop %rsi pop %rbx pop %rbp pop %r8 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': True, 'congruent': 6, 'size': 32, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 9, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 11, 'size': 4, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 4, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 6, 'size': 32, 'same': False, 'NT': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
Admin Tools/temporary client/temporary client.applescript
smaddock/BlueSkyConnect
38
992
global sshPid global itsGone on run set adminLoc to path to resource "blueskyclient.pub" in bundle (path to me) set adminPos to POSIX path of adminLoc --do we need to turn on SSH and Screen Sharing? set sshState to do shell script "netstat -an | grep '*.22';exit 0" set vncState to do shell script "cat /Library/Preferences/com.apple.ScreenSharing.launchd; exit 0" if vncState is "" then set vncState to do shell script "ps -ax | grep ARDAgent | grep -v grep;exit 0" end if if (sshState is "") or (vncState is "") then display dialog "We will need you to turn on some system services to allow us to work. Your tech will walk you through it." buttons {"OK"} default button 1 do shell script "open /System/Library/PreferencePanes/SharingPref.prefpane" end if --do we need to look for proxy info set myPath to POSIX path of (path to me as string) set proxyConf to do shell script "'" & myPath & "/Contents/Resources/proxy-config' -s" --get my server set serverAddr to do shell script "cat '" & myPath & "/Contents/Resources/server.txt'" --will output like this: --http://webcache:8080/ try do shell script "mkdir ~/.ssh" do shell script "touch ~/.ssh/known_hosts" do shell script "touch ~/.ssh/config" end try try if proxyConf is not "" then set proxyTemp to do shell script "echo $proxyConf | cut -f 3 -d \"/\"" set proxyServer to do shell script "echo $proxyTemp | cut -f 1 -d \":\"" set proxyPort to do shell script "echo $proxyTemp | cut -f 2 -d \":\"" set proxyCommand to "--proxy " & proxyConf set knownChk to do shell script "grep " & serverAddr & " ~/.ssh/config; exit 0" if knownChk is "" then do shell script "echo \"Host " & serverAddr & "\" >> ~/.ssh/config" do shell script "echo \" ProxyCommand '" & myPath & "Contents/Resources/corkscrew' $proxyServer $proxyPort %h %p\" >> ~/.ssh/config" end if else set proxyCommand to "" end if on error errStr display dialog "Please tell your tech that there was a configuration failure: " & errStr buttons {"Quit"} default button 1 quit end try try do shell script "rm -f ~/.ssh/bluesky_tmp" do shell script "rm -f ~/.ssh/bluesky_tmp.pub" end try try do shell script "ssh-keygen -q -t ssh-ed25519 -N \"\" -f ~/.ssh/bluesky_tmp -C \"tmp-`date +%s`\"" on error errStr display dialog "Please tell your tech that there was a key failure: " & errStr buttons {"Quit"} default button 1 quit end try set uploadResult to do shell script "pubKey=`openssl smime -encrypt -aes256 -in ~/.ssh/bluesky_tmp.pub -outform PEM " & the quoted form of adminPos & "`;curl " & proxyCommand & " -s -S -m 60 -1 --retry 4 -X POST --data-urlencode \"newpub=$pubKey\" https://" & serverAddr & "/cgi-bin/collector.php" if uploadResult does not contain "Installed" then display dialog "Please tell your tech that there was an upload failure: " & uploadResult buttons {"Quit"} default button 1 quit end if delay 2 --pick a random port set portNum to random number from 1950 to 1999 set sshPort to (22000 + portNum) set vncPort to (24000 + portNum) do shell script "ssh -o StrictHostKeyChecking=no -c <EMAIL>2<EMAIL>@openssh.com -o HostKeyAlgorithms=ssh-ed25519 -m hmac-sha2-512-etm@openssh.com -o KexAlgorithms=curve25519-sha256<EMAIL> -i ~/.ssh/bluesky_tmp -nNT -R " & sshPort & ":localhost:22 -R " & vncPort & ":localhost:5900 -p 3122 bluesky@" & serverAddr & " &> /dev/null & echo $!" set sshPid to the result try delay 2 do shell script "ps -p " & sshPid & " | grep ssh" set itsGone to false display dialog "You are now connected with ID " & portNum & ". Quit this app to disconnect." buttons {"OK"} giving up after 29 on error display dialog "Please tell your tech that connecting failed." buttons {"Quit"} default button 1 quit end try end run on idle try do shell script "ps -p " & sshPid & " | grep ssh" on error if itsGone is not true then display dialog "The connection has become disconnected." buttons {"Quit"} default button 1 end if quit end try return 5 end idle on quit try do shell script "kill -9 " & sshPid end try try do shell script "rm -f ~/.ssh/bluesky_tmp" do shell script "rm -f ~/.ssh/bluesky_tmp.pub" end try set itsGone to true continue quit end quit
bug-reports/const-unit-argument/src/units-navigation.adb
TUM-EI-RCS/StratoX
12
7910
<filename>bug-reports/const-unit-argument/src/units-navigation.adb with Units; use Units; package body Units.Navigation with SPARK_Mode is function foo return Heading_Type is result : Angle_Type; -- SPARK GPL 2016: everything okay. -- SPARK Pro 18.0w: error with DEGREE 360; remove "constant" and it works A : Angle_Type := DEGREE_360; begin return Heading_Type( result ); end foo; function bar return Length_Type is EPS : constant := 1.0E-12; pragma Assert (EPS > Float'Small); begin return 0.0*Meter; end bar; end Units.Navigation;
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0.log_4_546.asm
ljhsiun2/medusa
9
103764
<reponame>ljhsiun2/medusa .global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %rax push %rbx push %rdi push %rdx push %rsi lea addresses_WC_ht+0xc39c, %rbx nop cmp $54382, %rsi movups (%rbx), %xmm5 vpextrq $1, %xmm5, %rdi nop nop sub %r10, %r10 lea addresses_WT_ht+0x41d0, %rax nop nop nop add %r10, %r10 movb (%rax), %dl nop nop and %r10, %r10 lea addresses_normal_ht+0x1a364, %rdi nop nop nop nop nop sub %r11, %r11 mov $0x6162636465666768, %rbx movq %rbx, %xmm3 movups %xmm3, (%rdi) nop nop nop cmp %rbx, %rbx pop %rsi pop %rdx pop %rdi pop %rbx pop %rax pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %r9 push %rbp push %rbx push %rcx push %rdx // Store lea addresses_A+0xa99c, %rbx inc %r14 movl $0x51525354, (%rbx) nop nop nop nop nop and $27220, %r14 // Store lea addresses_PSE+0x8ac0, %rcx nop nop nop nop cmp $60232, %r9 mov $0x5152535455565758, %r15 movq %r15, %xmm5 movups %xmm5, (%rcx) cmp %r9, %r9 // Store lea addresses_normal+0x1a19c, %r14 nop nop cmp %rcx, %rcx movb $0x51, (%r14) nop and %rbx, %rbx // Store lea addresses_normal+0xf4ae, %r15 nop and %r9, %r9 movl $0x51525354, (%r15) nop nop nop nop cmp $30947, %r14 // Faulty Load lea addresses_A+0xa99c, %r9 and %rbx, %rbx mov (%r9), %r14w lea oracles, %rbp and $0xff, %r14 shlq $12, %r14 mov (%rbp,%r14,1), %r14 pop %rdx pop %rcx pop %rbx pop %rbp pop %r9 pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 8, 'type': 'addresses_normal', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_normal', 'AVXalign': False, 'size': 4}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'src': {'NT': True, 'same': False, 'congruent': 1, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16}} {'54': 4} 54 54 54 54 */
oeis/140/A140354.asm
neoneye/loda-programs
11
100286
<reponame>neoneye/loda-programs ; A140354: a(n) = binomial(n+9,9)*2^n. ; 1,20,220,1760,11440,64064,320320,1464320,6223360,24893440,94595072,343982080,1203937280,4074864640,13388840960,42844291072,133888409600,409541017600,1228623052800,3621204787200,10501493882880,30004268236800,84557483212800,235290388070400,647048567193600,1759972102766592,4738386430525440,12635697148067840,33394342462750720,87516207833415680,227542140366880768,587205523527434240,1504714154039050240,3830181483008491520,9688106104080302080,24358666775973330944,60896666939933327360 mov $1,-2 pow $1,$0 mov $2,-10 bin $2,$0 mul $1,$2 mov $0,$1
oeis/015/A015482.asm
neoneye/loda-programs
11
171809
<gh_stars>10-100 ; A015482: q-Fibonacci numbers for q=10. ; Submitted by <NAME> ; 0,1,10,1001,1001010,10010101001,1001010101101010,1001010101111020101001,10010101011111202020111101010,1001010101111121203021211212020101001,1001010101111121213031312223131303021111101010,10010101011111212131314132332424151414132221312020101001,1001010101111121213132414243343526262626253443425141403121111101010,1001010101111121213132424253444537373838384757557473827272525233231312020101001,10010101011111212131324243535455474849505060707988981616251514958566563626151413121111101010 mov $2,1 mov $3,1 lpb $0 sub $0,1 mov $1,$3 mul $2,10 mul $3,$2 add $3,$4 mov $4,$1 lpe mov $0,$4
libsrc/sprites/software/sp1/ts2068hr/tiles/sp1_PrintAtInv.asm
ahjelm/z88dk
640
4092
; void sp1_PrintAtInv(uchar row, uchar col, uint tile) ; CALLER linkage for function pointers SECTION code_sprite_sp1 PUBLIC sp1_PrintAtInv EXTERN sp1_PrintAtInv_callee EXTERN ASMDISP_SP1_PRINTATINV_CALLEE .sp1_PrintAtInv ld hl,2 add hl,sp ld c,(hl) inc hl ld b,(hl) inc hl ld e,(hl) inc hl inc hl ld d,(hl) jp sp1_PrintAtInv_callee + ASMDISP_SP1_PRINTATINV_CALLEE
programs/oeis/193/A193832.asm
jmorken/loda
1
104237
; A193832: Irregular triangle read by rows in which row n lists 2n-1 copies of 2n-1 and n copies of 2n, for n >= 1. ; 1,2,3,3,3,4,4,5,5,5,5,5,6,6,6,7,7,7,7,7,7,7,8,8,8,8,9,9,9,9,9,9,9,9,9,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26 mov $1,1 mov $2,$0 mul $2,2 lpb $2 sub $2,$1 lpb $1 add $3,2 mov $1,$3 add $2,1 lpe add $1,1 trn $2,1 lpe
src/asf-lifecycles-validation.ads
jquorning/ada-asf
12
6580
<filename>src/asf-lifecycles-validation.ads ----------------------------------------------------------------------- -- asf-lifecycles-validation -- Validation phase -- Copyright (C) 2010 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- -- The <b>ASF.Lifecycles.Validation</b> package defines the behavior -- of the validation phase. package ASF.Lifecycles.Validation is -- ------------------------------ -- Validation controller -- ------------------------------ type Validation_Controller is new Phase_Controller with null record; -- Execute the validation phase. overriding procedure Execute (Controller : in Validation_Controller; Context : in out ASF.Contexts.Faces.Faces_Context'Class); end ASF.Lifecycles.Validation;
next_level/demosrc/s_itwasnicetoknowyou.asm
viznut/demoscene
14
10502
<gh_stars>10-100 ;,; lyrics_itwasnicetoknowyou .withinpagefrom=lyrics ;,; <- lyrics !byte $31,$19,$1d ; IT !byte $26,$30,$14,$09 ; WAS !byte $22,$2a,$21,$24 ; NICE !byte $29,$1d,$36 ; TO !byte $22,$30,$36 ; KNOW !byte $21,$06 ; YOU !byte $06,$09,$89 !byte $31,$19,$1d ; IT !byte $26,$30,$14 ; WAS !byte $22,$3a,$21,$24 ; NICE !byte $29,$1d,$36 ; TO !byte $22,$30,$36 ; KNOW !byte $21,$a6 ; YOU !byte $0f ;,; deps_itwasnicetoknowyou ;,; <- lyrics_itwasnicetoknowyou ;,; <- ibpcaablocks ;,; SC63_000 ;,; <- deps_itwasnicetoknowyou ;,; <- streamvars ;,; <- player_ivars !src "demosrc/smac.inc" +s8bpc +sAddr nextlyrictosing !byte $00,lyrics_itwasnicetoknowyou-lyrics ; method 4 ( clrscr0 bytes ) -- 382 bytes (382 cumu) ; method 5 ( clrscr0 ibpc0 bytes ) -- 432 bytes (432 cumu) ; method 6 ( clrscr0 bytes ) -- 382 bytes (382 cumu) ; method 7 ( clrscr0 ibpc0 ibpcaa bytes ) -- 308 bytes (308 cumu) ; method 8 ( clrscr1 bytes ) -- 389 bytes (389 cumu) ; method 9 ( clrscr1 ibpc0 bytes ) -- 439 bytes (439 cumu) ; method 10 ( clrscr1 bytes ) -- 389 bytes (389 cumu) ; method 11 ( clrscr1 ibpc0 ibpcaa bytes ) -- 315 bytes (315 cumu) ; method 12 ( clrscr2 bytes ) -- 398 bytes (398 cumu) ; method 13 ( clrscr2 ibpc0 bytes ) -- 446 bytes (446 cumu) ; method 14 ( clrscr2 bytes ) -- 398 bytes (398 cumu) ; method 15 ( clrscr2 ibpc0 ibpcaa bytes ) -- 322 bytes (322 cumu) ; method 16 ( clrscr3 bytes ) -- 405 bytes (405 cumu) ; method 17 ( clrscr3 ibpc0 bytes ) -- 453 bytes (453 cumu) ; method 18 ( clrscr3 bytes ) -- 405 bytes (405 cumu) ; method 19 ( clrscr3 ibpc0 ibpcaa bytes ) -- 329 bytes (329 cumu) ; METHOD 7 CHOSEN !byte $e4,3,chFFFFFFFFFFFFFFFF ; clrscr ;,; <- chFCFC303030303030 ; 4 ;,; <- chFFFFFFFFFFFFFFFF ; 340 ;,; <- chC6C6C6C6C6C6C6C6 ; 2 ;,; <- chFCFCDCCCCCCCCCCC ; 7 ;,; <- chFCFCE0C0C0C0C0C0 ; 3 ;,; <- chCCCCCCCCCCCCCCCC ; 4 ;,; <- chCCCCCCCCCCECFCFC ; 5 ;,; <- ch303030303030FCFC ; 2 ;,; <- ch3030303030303030 ; 3 ;,; <- chD6D6D6D6D6F6FEFE ; 2 ;,; <- chFCFC1C0C0C1CFCFC ; 1 ;,; <- chC0C0C0C0C0E0FCFC ; 1 ;,; <- chFCFCE0C0C0E0FCFC ; 1 ;,; <- chF0F8CCCCCCCCCCCC ; 1 ;,; <- ch0000FFFFFFFFFFFF ; 28 ;,; <- ch0000FFFFFFFF0000 ; 2 ;,; <- chFEFCF8F0E0C08000 ; 5 ;,; <- ch0000000000000000 ; 48 ;,; <- ch7F3F1F0F07030100 ; 5 ;,; <- chFCFCFCFCFCFCFCFC ; 16 ;,; <- ch3F3F3F3F3F3F3F3F ; 16 ;,; <- ch0080C0E0F0F8FCFE ; 2 ;,; <- ch000103070F1F3F7F ; 2 ;,; <- ch000018183C3C3C3C ; 2 ;,; <- ch3C3C3C3C3C3C3C3C ; 2 ; total unique chars in pic: 25 (worst case req 200 bytes) !byte $DA,$00 ;addr !byte $e2,1;mode4 !byte $1A ;data4 !byte $11 !byte $10 !byte $11 !byte $10 !byte $11 !byte $01 !byte $11 !byte $10 !byte $11 !byte $01 !byte $11 !byte $01 !byte $11 !byte $10 !byte $11 !byte $10 !byte $11 !byte $01 !byte $11 !byte $10 !byte $11 !byte $01 !byte $11 !byte $01 !byte $22 !byte $22 !byte $31 !byte $8A ;skip !byte $05 ;data4 !byte $21 !byte $22 !byte $22 !byte $20 !byte $22 !byte $12 !byte $8B ;skip !byte $05 ;data4 !byte $21 !byte $22 !byte $22 !byte $20 !byte $22 !byte $12 !byte $8B ;skip !byte $05 ;data4 !byte $21 !byte $22 !byte $22 !byte $20 !byte $22 !byte $12 !byte $8B ;skip !byte $05 ;data4 !byte $21 !byte $22 !byte $22 !byte $20 !byte $22 !byte $12 !byte $8B ;skip !byte $05 ;data4 !byte $21 !byte $22 !byte $22 !byte $20 !byte $22 !byte $12 !byte $8B ;skip !byte $05 ;data4 !byte $21 !byte $22 !byte $22 !byte $20 !byte $22 !byte $12 !byte $8B ;skip !byte $05 ;data4 !byte $21 !byte $22 !byte $22 !byte $20 !byte $22 !byte $12 !byte $8B ;skip !byte $05 ;data4 !byte $21 !byte $22 !byte $22 !byte $00 !byte $00 !byte $10 !byte $8B ;skip !byte $00 ;data4 !byte $01 !byte $DB,$02 ;addr !byte $48,$00 ;fill !byte $00 ;data4 !byte $31 !byte $8A ;skip !byte $00 ;data4 !byte $01 !byte $DB,$1A ;addr !byte $48,$00 ;fill !byte $00 ;data4 !byte $31 !byte $8A ;skip !byte $00 ;data4 !byte $01 !byte $DB,$32 ;addr !byte $48,$00 ;fill !byte $00 ;data4 !byte $31 !byte $8A ;skip !byte $00 ;data4 !byte $01 !byte $DB,$4A ;addr !byte $48,$00 ;fill !byte $00 ;data4 !byte $31 !byte $8A ;skip !byte $00 ;data4 !byte $01 !byte $DB,$62 ;addr !byte $48,$00 ;fill !byte $00 ;data4 !byte $31 !byte $8A ;skip !byte $00 ;data4 !byte $01 !byte $DB,$7A ;addr !byte $48,$00 ;fill !byte $00 ;data4 !byte $31 !byte $8A ;skip !byte $00 ;data4 !byte $01 !byte $DB,$92 ;addr !byte $48,$00 ;fill !byte $00 ;data4 !byte $31 !byte $8A ;skip !byte $00 ;data4 !byte $01 !byte $DB,$AA ;addr !byte $48,$00 ;fill !byte $00 ;data4 !byte $31 !byte $8A ;skip !byte $00 ;data4 !byte $01 !byte $DB,$C2 ;addr !byte $48,$00 ;fill !byte $00 ;data4 !byte $31 !byte $8A ;skip !byte $00 ;data4 !byte $01 !byte $DB,$DA ;addr !byte $5D,$00 ;fill !byte $CE,$52 ;addr !byte $e2,$ff;mode1 !byte $30 ;data1 !byte $C0 !byte $00 !byte $01 !byte $E0 !byte $00 !byte $01 !byte $E0 !byte $00 !byte $01 !byte $E0 !byte $00 !byte $00 !byte $C0 !byte $00 !byte $00 !byte $C0 !byte $00 !byte $01 !byte $E0 !byte $00 !byte $02 !byte $D0 !byte $00 !byte $02 !byte $D0 !byte $00 !byte $00 !byte $C0 !byte $00 !byte $00 !byte $C0 !byte $00 !byte $01 !byte $20 !byte $00 !byte $01 !byte $20 !byte $00 !byte $01 !byte $20 !byte $00 !byte $01 !byte $20 !byte $00 !byte $01 !byte $20 !byte $00 !byte $03 !byte $30 !byte $e3 ;run ibpcaa !byte $CE,$00 ;addr !byte $e2,0;mode8 !byte $2F ;data8 !byte chFCFC303030303030 !byte chFCFC303030303030 !byte chFFFFFFFFFFFFFFFF !byte chC6C6C6C6C6C6C6C6 !byte chFCFCDCCCCCCCCCCC !byte chFCFCE0C0C0C0C0C0 !byte chFFFFFFFFFFFFFFFF !byte chFCFCDCCCCCCCCCCC !byte chFCFC303030303030 !byte chFCFCE0C0C0C0C0C0 !byte chFCFCE0C0C0C0C0C0 !byte chFFFFFFFFFFFFFFFF !byte chFCFC303030303030 !byte chFCFCDCCCCCCCCCCC !byte chFFFFFFFFFFFFFFFF !byte chCCCCCCCCCCCCCCCC !byte chFCFCDCCCCCCCCCCC !byte chFCFCDCCCCCCCCCCC !byte chC6C6C6C6C6C6C6C6 !byte chFFFFFFFFFFFFFFFF !byte chCCCCCCCCCCECFCFC !byte chFCFCDCCCCCCCCCCC !byte chCCCCCCCCCCCCCCCC !byte chFFFFFFFFFFFFFFFF !byte ch303030303030FCFC !byte ch3030303030303030 !byte chFFFFFFFFFFFFFFFF !byte chD6D6D6D6D6F6FEFE !byte chFCFCDCCCCCCCCCCC !byte chFCFC1C0C0C1CFCFC !byte chFFFFFFFFFFFFFFFF !byte chCCCCCCCCCCCCCCCC !byte ch303030303030FCFC !byte chC0C0C0C0C0E0FCFC !byte chFCFCE0C0C0E0FCFC !byte chFFFFFFFFFFFFFFFF !byte ch3030303030303030 !byte chCCCCCCCCCCECFCFC !byte chFFFFFFFFFFFFFFFF !byte chF0F8CCCCCCCCCCCC !byte chCCCCCCCCCCCCCCCC !byte chCCCCCCCCCCECFCFC !byte chD6D6D6D6D6F6FEFE !byte chFFFFFFFFFFFFFFFF !byte ch3030303030303030 !byte chCCCCCCCCCCECFCFC !byte chCCCCCCCCCCECFCFC !byte chFFFFFFFFFFFFFFFF !byte $48,ch0000FFFFFFFFFFFF ;fill !byte $01 ;data8 !byte ch0000FFFFFFFF0000 !byte ch0000FFFFFFFF0000 !byte $4A,ch0000FFFFFFFFFFFF ;fill !byte $CF,$E8 ;addr !byte $05 ;data8 !byte ch0000FFFFFFFFFFFF !byte ch0000FFFFFFFFFFFF !byte chFFFFFFFFFFFFFFFF !byte chFFFFFFFFFFFFFFFF !byte ch0000FFFFFFFFFFFF !byte ch0000FFFFFFFFFFFF !byte $e1,12 ;,; *_001 ;,; <- deps_itwasnicetoknowyou ; method 0 ( bytes ) -- 103 bytes (411 cumu) ; method 1 ( ibpc0 bytes ) -- 100 bytes (408 cumu) ; method 2 ( bytes ) -- 103 bytes (411 cumu) ; method 3 ( ibpc0 ibpcaa bytes ) -- 172 bytes (480 cumu) ; method 4 ( clrscr0 bytes ) -- 431 bytes (739 cumu) ; method 5 ( clrscr0 ibpc0 bytes ) -- 437 bytes (745 cumu) ; method 6 ( clrscr0 bytes ) -- 431 bytes (739 cumu) ; method 7 ( clrscr0 ibpc0 ibpcaa bytes ) -- 378 bytes (686 cumu) ; method 8 ( clrscr1 bytes ) -- 452 bytes (760 cumu) ; method 9 ( clrscr1 ibpc0 bytes ) -- 458 bytes (766 cumu) ; method 10 ( clrscr1 bytes ) -- 452 bytes (760 cumu) ; method 11 ( clrscr1 ibpc0 ibpcaa bytes ) -- 399 bytes (707 cumu) ; method 12 ( clrscr2 bytes ) -- 441 bytes (749 cumu) ; method 13 ( clrscr2 ibpc0 bytes ) -- 450 bytes (758 cumu) ; method 14 ( clrscr2 bytes ) -- 441 bytes (749 cumu) ; method 15 ( clrscr2 ibpc0 ibpcaa bytes ) -- 391 bytes (699 cumu) ; method 16 ( clrscr3 bytes ) -- 462 bytes (770 cumu) ; method 17 ( clrscr3 ibpc0 bytes ) -- 471 bytes (779 cumu) ; method 18 ( clrscr3 bytes ) -- 462 bytes (770 cumu) ; method 19 ( clrscr3 ibpc0 ibpcaa bytes ) -- 412 bytes (720 cumu) ; METHOD 1 CHOSEN ;,; <- chFCFC303030303030 ; 4 ;,; <- chFFFFFFFFFFFFFFFF ; 240 ;,; <- chC6C6C6C6C6C6C6C6 ; 2 ;,; <- chFCFCDCCCCCCCCCCC ; 7 ;,; <- chFCFCE0C0C0C0C0C0 ; 3 ;,; <- chCCCCCCCCCCCCCCCC ; 4 ;,; <- chCCCCCCCCCCECFCFC ; 5 ;,; <- ch3030303030303030 ; 4 ;,; <- ch303030303030FCFC ; 2 ;,; <- chD6D6D6D6D6F6FEFE ; 2 ;,; <- chFCFC1C0C0C1CFCFC ; 1 ;,; <- chC0C0C0C0C0E0FCFC ; 1 ;,; <- chFCFCE0C0C0E0FCFC ; 1 ;,; <- chF0F8CCCCCCCCCCCC ; 1 ;,; <- ch0000000000303030 ; 1 ;,; <- ch0000FFFFFFFFFFFF ; 28 ;,; <- ch0000FFFFFFFF0000 ; 2 ;,; <- chFEFCF8F0E0C08000 ; 5 ;,; <- ch0000000000000000 ; 148 ;,; <- ch7F3F1F0F07030100 ; 5 ;,; <- chFCFCFCFCFCFCFCFC ; 15 ;,; <- ch3F3F3F3F3F3F3F3F ; 15 ;,; <- ch0080C0E0F0F8FCFE ; 2 ;,; <- ch000103070F1F3F7F ; 2 ;,; <- ch000018183C3C3C3C ; 2 ;,; <- ch3C3C3C3C3C3C3C3C ; 2 ; total unique chars in pic: 26 (worst case req 208 bytes) !byte $DA,$17 ;addr !byte $e2,1;mode4 !byte $00 ;data4 !byte $11 !byte $95 ;skip !byte $00 ;data4 !byte $21 !byte $95 ;skip !byte $00 ;data4 !byte $22 !byte $95 ;skip !byte $00 ;data4 !byte $22 !byte $95 ;skip !byte $00 ;data4 !byte $22 !byte $95 ;skip !byte $00 ;data4 !byte $22 !byte $95 ;skip !byte $00 ;data4 !byte $22 !byte $95 ;skip !byte $00 ;data4 !byte $22 !byte $95 ;skip !byte $00 ;data4 !byte $22 !byte $95 ;skip !byte $00 ;data4 !byte $02 !byte $CE,$F0 ;addr !byte $e2,$ff;mode1 !byte $1D ;data1 !byte $F0 !byte $B4 !byte $3F !byte $F0 !byte $B4 !byte $3F !byte $F0 !byte $30 !byte $3F !byte $F0 !byte $70 !byte $3F !byte $F0 !byte $48 !byte $3F !byte $F0 !byte $48 !byte $3F !byte $F0 !byte $48 !byte $3F !byte $F0 !byte $48 !byte $3F !byte $F0 !byte $C8 !byte $3F !byte $F0 !byte $0C !byte $3F !byte $CE,$17 ;addr !byte $e2,0;mode8 !byte $00 ;data8 !byte ch3030303030303030 !byte $96 ;skip !byte $00 ;data8 !byte ch0000000000303030 !byte $CF,$29 ;addr !byte $00 ;data8 !byte chFEFCF8F0E0C08000 !byte $95 ;skip !byte $00 ;data8 !byte chFCFCFCFCFCFCFCFC !byte $CF,$A0 ;addr !byte $00 ;data8 !byte chFEFCF8F0E0C08000 !byte $95 ;skip !byte $00 ;data8 !byte chFCFCFCFCFCFCFCFC !byte $96 ;skip !byte $03 ;data8 !byte chFFFFFFFFFFFFFFFF !byte ch0000FFFFFFFFFFFF !byte ch0000FFFFFFFFFFFF !byte chFFFFFFFFFFFFFFFF !byte $94 ;skip !byte $40,chFFFFFFFFFFFFFFFF ;fill !byte $e1,12 ;,; *_002 ;,; <- deps_itwasnicetoknowyou ; method 0 ( bytes ) -- 53 bytes (461 cumu) ; method 1 ( ibpc0 bytes ) -- 60 bytes (468 cumu) ; method 2 ( bytes ) -- 53 bytes (461 cumu) ; method 3 ( ibpc0 ibpcaa bytes ) -- 63 bytes (471 cumu) ; method 4 ( clrscr0 bytes ) -- 383 bytes (791 cumu) ; method 5 ( clrscr0 ibpc0 bytes ) -- 433 bytes (841 cumu) ; method 6 ( clrscr0 bytes ) -- 383 bytes (791 cumu) ; method 7 ( clrscr0 ibpc0 ibpcaa bytes ) -- 311 bytes (719 cumu) ; method 8 ( clrscr1 bytes ) -- 404 bytes (812 cumu) ; method 9 ( clrscr1 ibpc0 bytes ) -- 454 bytes (862 cumu) ; method 10 ( clrscr1 bytes ) -- 404 bytes (812 cumu) ; method 11 ( clrscr1 ibpc0 ibpcaa bytes ) -- 332 bytes (740 cumu) ; method 12 ( clrscr2 bytes ) -- 399 bytes (807 cumu) ; method 13 ( clrscr2 ibpc0 bytes ) -- 447 bytes (855 cumu) ; method 14 ( clrscr2 bytes ) -- 399 bytes (807 cumu) ; method 15 ( clrscr2 ibpc0 ibpcaa bytes ) -- 325 bytes (733 cumu) ; method 16 ( clrscr3 bytes ) -- 420 bytes (828 cumu) ; method 17 ( clrscr3 ibpc0 bytes ) -- 468 bytes (876 cumu) ; method 18 ( clrscr3 bytes ) -- 420 bytes (828 cumu) ; method 19 ( clrscr3 ibpc0 ibpcaa bytes ) -- 346 bytes (754 cumu) ; METHOD 0 CHOSEN ;,; <- chFCFC303030303030 ; 4 ;,; <- chFFFFFFFFFFFFFFFF ; 343 ;,; <- chC6C6C6C6C6C6C6C6 ; 2 ;,; <- chFCFCDCCCCCCCCCCC ; 7 ;,; <- chFCFCE0C0C0C0C0C0 ; 3 ;,; <- chCCCCCCCCCCCCCCCC ; 4 ;,; <- chCCCCCCCCCCECFCFC ; 5 ;,; <- ch3030303030303030 ; 4 ;,; <- ch303030303030FCFC ; 2 ;,; <- chD6D6D6D6D6F6FEFE ; 2 ;,; <- chFCFC1C0C0C1CFCFC ; 1 ;,; <- chC0C0C0C0C0E0FCFC ; 1 ;,; <- chFCFCE0C0C0E0FCFC ; 1 ;,; <- chF0F8CCCCCCCCCCCC ; 1 ;,; <- ch0000000000303030 ; 1 ;,; <- ch0000FFFFFFFFFFFF ; 28 ;,; <- ch0000FFFFFFFF0000 ; 2 ;,; <- chFEFCF8F0E0C08000 ; 5 ;,; <- ch0000000000000000 ; 46 ;,; <- ch7F3F1F0F07030100 ; 5 ;,; <- chFCFCFCFCFCFCFCFC ; 14 ;,; <- ch3F3F3F3F3F3F3F3F ; 15 ;,; <- ch0080C0E0F0F8FCFE ; 2 ;,; <- ch000103070F1F3F7F ; 1 ;,; <- ch000018183C3C3C3C ; 3 ;,; <- ch3C3C3C3C3C3C3C3C ; 2 ; total unique chars in pic: 26 (worst case req 208 bytes) !byte $CE,$F0 ;addr !byte $42,chFFFFFFFFFFFFFFFF ;fill !byte $8D ;skip !byte $48,chFFFFFFFFFFFFFFFF ;fill !byte $8D ;skip !byte $48,chFFFFFFFFFFFFFFFF ;fill !byte $8D ;skip !byte $48,chFFFFFFFFFFFFFFFF ;fill !byte $85 ;skip !byte $00 ;data8 !byte ch000018183C3C3C3C !byte $86 ;skip !byte $48,chFFFFFFFFFFFFFFFF ;fill !byte $85 ;skip !byte $00 ;data8 !byte ch3F3F3F3F3F3F3F3F !byte $86 ;skip !byte $48,chFFFFFFFFFFFFFFFF ;fill !byte $8D ;skip !byte $48,chFFFFFFFFFFFFFFFF ;fill !byte $83 ;skip !byte $00 ;data8 !byte chFEFCF8F0E0C08000 !byte $88 ;skip !byte $48,chFFFFFFFFFFFFFFFF ;fill !byte $04 ;data8 !byte chFFFFFFFFFFFFFFFF !byte chFFFFFFFFFFFFFFFF !byte chFFFFFFFFFFFFFFFF !byte chFCFCFCFCFCFCFCFC !byte ch0000000000000000 !byte $88 ;skip !byte $4C,chFFFFFFFFFFFFFFFF ;fill !byte $02 ;data8 !byte ch0000FFFFFFFFFFFF !byte ch0000FFFFFFFFFFFF !byte chFFFFFFFFFFFFFFFF !byte $86 ;skip !byte $4E,chFFFFFFFFFFFFFFFF ;fill !byte $87 ;skip !byte $44,chFFFFFFFFFFFFFFFF ;fill !byte $e1,12 ;,; *_003 ;,; <- deps_itwasnicetoknowyou ; method 0 ( bytes ) -- 44 bytes (505 cumu) ; method 1 ( ibpc0 bytes ) -- 54 bytes (515 cumu) ; method 2 ( bytes ) -- 44 bytes (505 cumu) ; method 3 ( ibpc0 ibpcaa bytes ) -- 59 bytes (520 cumu) ; method 4 ( clrscr0 bytes ) -- 394 bytes (855 cumu) ; method 5 ( clrscr0 ibpc0 bytes ) -- 444 bytes (905 cumu) ; method 6 ( clrscr0 bytes ) -- 394 bytes (855 cumu) ; method 7 ( clrscr0 ibpc0 ibpcaa bytes ) -- 319 bytes (780 cumu) ; method 8 ( clrscr1 bytes ) -- 409 bytes (870 cumu) ; method 9 ( clrscr1 ibpc0 bytes ) -- 459 bytes (920 cumu) ; method 10 ( clrscr1 bytes ) -- 409 bytes (870 cumu) ; method 11 ( clrscr1 ibpc0 ibpcaa bytes ) -- 334 bytes (795 cumu) ; method 12 ( clrscr2 bytes ) -- 410 bytes (871 cumu) ; method 13 ( clrscr2 ibpc0 bytes ) -- 458 bytes (919 cumu) ; method 14 ( clrscr2 bytes ) -- 410 bytes (871 cumu) ; method 15 ( clrscr2 ibpc0 ibpcaa bytes ) -- 333 bytes (794 cumu) ; method 16 ( clrscr3 bytes ) -- 425 bytes (886 cumu) ; method 17 ( clrscr3 ibpc0 bytes ) -- 473 bytes (934 cumu) ; method 18 ( clrscr3 bytes ) -- 425 bytes (886 cumu) ; method 19 ( clrscr3 ibpc0 ibpcaa bytes ) -- 348 bytes (809 cumu) ; METHOD 0 CHOSEN ;,; <- chFCFC303030303030 ; 4 ;,; <- chFFFFFFFFFFFFFFFF ; 343 ;,; <- chC6C6C6C6C6C6C6C6 ; 2 ;,; <- chFCFCDCCCCCCCCCCC ; 7 ;,; <- chFCFCE0C0C0C0C0C0 ; 3 ;,; <- chCCCCCCCCCCCCCCCC ; 4 ;,; <- chCCCCCCCCCCECFCFC ; 5 ;,; <- ch3030303030303030 ; 4 ;,; <- ch303030303030FCFC ; 2 ;,; <- chD6D6D6D6D6F6FEFE ; 2 ;,; <- chFCFC1C0C0C1CFCFC ; 1 ;,; <- chC0C0C0C0C0E0FCFC ; 1 ;,; <- chFCFCE0C0C0E0FCFC ; 1 ;,; <- chF0F8CCCCCCCCCCCC ; 1 ;,; <- ch0000000000303030 ; 1 ;,; <- ch0000FFFFFFFFFFFF ; 28 ;,; <- ch0000FFFFFFFF0000 ; 2 ;,; <- chFEFCF8F0E0C08000 ; 4 ;,; <- ch0000000000000000 ; 46 ;,; <- ch7F3F1F0F07030100 ; 5 ;,; <- chFCFCFCFCFCFCFCFC ; 15 ;,; <- ch3F3F3F3F3F3F3F3F ; 14 ;,; <- ch0080C0E0F0F8FCFE ; 2 ;,; <- ch000103070F1F3F7F ; 2 ;,; <- ch000018183C3C3C3C ; 2 ;,; <- ch3C3C3C3C3C3C3C3C ; 2 ;,; <- chFFFFFFFFFFFF0000 ; 1 ; total unique chars in pic: 27 (worst case req 216 bytes) !byte $DB,$88 ;addr !byte $e2,1;mode4 !byte $00 ;data4 !byte $31 !byte $94 ;skip !byte $01 ;data4 !byte $11 !byte $31 !byte $93 ;skip !byte $01 ;data4 !byte $11 !byte $31 !byte $93 ;skip !byte $01 ;data4 !byte $11 !byte $31 !byte $CF,$42 ;addr !byte $e2,0;mode8 !byte $00 ;data8 !byte ch0000000000000000 !byte $96 ;skip !byte $00 ;data8 !byte ch000103070F1F3F7F !byte $AC ;skip !byte $00 ;data8 !byte chFCFCFCFCFCFCFCFC !byte $95 ;skip !byte $03 ;data8 !byte chFFFFFFFFFFFFFFFF !byte chFFFFFFFFFFFF0000 !byte ch0000FFFFFFFFFFFF !byte chFFFFFFFFFFFFFFFF !byte $93 ;skip !byte $02 ;data8 !byte chFCFCFCFCFCFCFCFC !byte ch0000000000000000 !byte ch3F3F3F3F3F3F3F3F !byte $95 ;skip !byte $00 ;data8 !byte ch0000FFFFFFFFFFFF !byte $e1,12 ;,; *_004 ;,; <- deps_itwasnicetoknowyou ; method 0 ( bytes ) -- 120 bytes (625 cumu) ; method 1 ( ibpc0 bytes ) -- 148 bytes (653 cumu) ; method 2 ( bytes ) -- 120 bytes (625 cumu) ; method 3 ( ibpc0 ibpcaa bytes ) -- 91 bytes (596 cumu) ; method 4 ( clrscr0 bytes ) -- 335 bytes (840 cumu) ; method 5 ( clrscr0 ibpc0 bytes ) -- 389 bytes (894 cumu) ; method 6 ( clrscr0 bytes ) -- 335 bytes (840 cumu) ; method 7 ( clrscr0 ibpc0 ibpcaa bytes ) -- 259 bytes (764 cumu) ; method 8 ( clrscr1 bytes ) -- 352 bytes (857 cumu) ; method 9 ( clrscr1 ibpc0 bytes ) -- 406 bytes (911 cumu) ; method 10 ( clrscr1 bytes ) -- 352 bytes (857 cumu) ; method 11 ( clrscr1 ibpc0 ibpcaa bytes ) -- 276 bytes (781 cumu) ; method 12 ( clrscr2 bytes ) -- 355 bytes (860 cumu) ; method 13 ( clrscr2 ibpc0 bytes ) -- 400 bytes (905 cumu) ; method 14 ( clrscr2 bytes ) -- 355 bytes (860 cumu) ; method 15 ( clrscr2 ibpc0 ibpcaa bytes ) -- 271 bytes (776 cumu) ; method 16 ( clrscr3 bytes ) -- 372 bytes (877 cumu) ; method 17 ( clrscr3 ibpc0 bytes ) -- 417 bytes (922 cumu) ; method 18 ( clrscr3 bytes ) -- 372 bytes (877 cumu) ; method 19 ( clrscr3 ibpc0 ibpcaa bytes ) -- 288 bytes (793 cumu) ; METHOD 3 CHOSEN ;,; <- chFFFFFFFFFFFFFFFF ; 406 ;,; <- chFFFFFFFFFFFF0000 ; 2 ;,; <- chFEFCF8F0E0C08000 ; 4 ;,; <- ch0000000000000000 ; 45 ;,; <- ch7F3F1F0F07030100 ; 5 ;,; <- chFCFCFCFCFCFCFCFC ; 14 ;,; <- ch3F3F3F3F3F3F3F3F ; 14 ;,; <- ch0080C0E0F0F8FCFE ; 2 ;,; <- ch000103070F1F3F7F ; 1 ;,; <- ch000018183C3C3C3C ; 3 ;,; <- ch3C3C3C3C3C3C3C3C ; 2 ;,; <- ch0000FFFFFFFFFFFF ; 5 ;,; <- ch0000FFFFFFFF0000 ; 1 ; total unique chars in pic: 13 (worst case req 104 bytes) !byte $DA,$00 ;addr !byte $e2,1;mode4 !byte $02 ;data4 !byte $22 !byte $22 !byte $31 !byte $DA,$05 ;addr !byte $4A,$03 ;fill !byte $00 ;data4 !byte $21 !byte $DA,$12 ;addr !byte $48,$02 ;fill !byte $00 ;data4 !byte $31 !byte $DA,$1D ;addr !byte $4A,$03 ;fill !byte $00 ;data4 !byte $21 !byte $DA,$2A ;addr !byte $44,$02 ;fill !byte $DB,$58 ;addr !byte $01 ;data4 !byte $11 !byte $31 !byte $93 ;skip !byte $01 ;data4 !byte $11 !byte $31 !byte $94 ;skip !byte $00 ;data4 !byte $31 !byte $CE,$3A ;addr !byte $e2,$ff;mode1 !byte $03 ;data1 !byte $C0 !byte $00 !byte $01 !byte $E0 !byte $BE ;skip !byte $00 ;data1 !byte $60 !byte $A7 ;skip !byte $03 ;data1 !byte $E0 !byte $00 !byte $01 !byte $70 !byte $A6 ;skip !byte $00 ;data1 !byte $34 !byte $A9 ;skip !byte $02 ;data1 !byte $40 !byte $00 !byte $00 !byte $CF,$B8 ;addr !byte $00 ;data1 !byte $08 !byte $e3 ;run ibpcaa !byte $CE,$00 ;addr !byte $60,chFFFFFFFFFFFFFFFF ;fill !byte $e2,0;mode8 !byte $01 ;data8 !byte chFFFFFFFFFFFF0000 !byte chFFFFFFFFFFFF0000 !byte $53,chFFFFFFFFFFFFFFFF ;fill !byte $03 ;data8 !byte chFEFCF8F0E0C08000 !byte ch0000000000000000 !byte ch0000000000000000 !byte ch7F3F1F0F07030100 !byte $49,chFFFFFFFFFFFFFFFF ;fill !byte $e1,12 ;,; *_005 ;,; <- deps_itwasnicetoknowyou ; method 0 ( bytes ) -- 148 bytes (744 cumu) ; method 1 ( ibpc0 bytes ) -- 177 bytes (773 cumu) ; method 2 ( bytes ) -- 148 bytes (744 cumu) ; method 3 ( ibpc0 ibpcaa bytes ) -- 95 bytes (691 cumu) ; method 4 ( clrscr0 bytes ) -- 327 bytes (923 cumu) ; method 5 ( clrscr0 ibpc0 bytes ) -- 378 bytes (974 cumu) ; method 6 ( clrscr0 bytes ) -- 327 bytes (923 cumu) ; method 7 ( clrscr0 ibpc0 ibpcaa bytes ) -- 261 bytes (857 cumu) ; method 8 ( clrscr1 bytes ) -- 322 bytes (918 cumu) ; method 9 ( clrscr1 ibpc0 bytes ) -- 373 bytes (969 cumu) ; method 10 ( clrscr1 bytes ) -- 322 bytes (918 cumu) ; method 11 ( clrscr1 ibpc0 ibpcaa bytes ) -- 256 bytes (852 cumu) ; method 12 ( clrscr2 bytes ) -- 346 bytes (942 cumu) ; method 13 ( clrscr2 ibpc0 bytes ) -- 392 bytes (988 cumu) ; method 14 ( clrscr2 bytes ) -- 346 bytes (942 cumu) ; method 15 ( clrscr2 ibpc0 ibpcaa bytes ) -- 275 bytes (871 cumu) ; method 16 ( clrscr3 bytes ) -- 341 bytes (937 cumu) ; method 17 ( clrscr3 ibpc0 bytes ) -- 387 bytes (983 cumu) ; method 18 ( clrscr3 bytes ) -- 341 bytes (937 cumu) ; method 19 ( clrscr3 ibpc0 ibpcaa bytes ) -- 270 bytes (866 cumu) ; METHOD 3 CHOSEN ;,; <- chFFFFFFFFFFFFFFFF ; 422 ;,; <- chFFFFFFFFFFFF0000 ; 3 ;,; <- chFEFCF8F0E0C08000 ; 2 ;,; <- ch0000000000000000 ; 38 ;,; <- ch7F3F1F0F07030100 ; 5 ;,; <- chFCFCFCFCFCFCFCFC ; 9 ;,; <- ch3F3F3F3F3F3F3F3F ; 10 ;,; <- ch0000F0FCFCF00000 ; 2 ;,; <- ch00000F3F3F0F0000 ; 1 ;,; <- ch0080C0E0F0F8FCFE ; 4 ;,; <- ch000103070F1F3F7F ; 1 ;,; <- ch000018183C3C3C3C ; 1 ;,; <- ch3C3C3C3C3C3C3C3C ; 2 ;,; <- ch0000FFFFFFFFFFFF ; 4 ; total unique chars in pic: 14 (worst case req 112 bytes) !byte $DA,$3A ;addr !byte $e2,1;mode4 !byte $00 ;data4 !byte $11 !byte $94 ;skip !byte $01 ;data4 !byte $11 !byte $31 !byte $92 ;skip !byte $01 ;data4 !byte $11 !byte $11 !byte $93 ;skip !byte $01 ;data4 !byte $11 !byte $11 !byte $93 ;skip !byte $01 ;data4 !byte $11 !byte $11 !byte $93 ;skip !byte $01 ;data4 !byte $11 !byte $11 !byte $93 ;skip !byte $02 ;data4 !byte $11 !byte $11 !byte $31 !byte $90 ;skip !byte $02 ;data4 !byte $11 !byte $11 !byte $31 !byte $91 ;skip !byte $02 ;data4 !byte $11 !byte $31 !byte $31 !byte $91 ;skip !byte $02 ;data4 !byte $11 !byte $11 !byte $31 !byte $93 ;skip !byte $01 ;data4 !byte $11 !byte $31 !byte $93 ;skip !byte $00 ;data4 !byte $11 !byte $DB,$B7 ;addr !byte $41,$03 ;fill !byte $94 ;skip !byte $41,$03 ;fill !byte $CE,$69 ;addr !byte $e2,$ff;mode1 !byte $00 ;data1 !byte $60 !byte $CE,$CC ;addr !byte $03 ;data1 !byte $80 !byte $00 !byte $03 !byte $40 !byte $A5 ;skip !byte $00 ;data1 !byte $40 !byte $A6 ;skip !byte $00 ;data1 !byte $30 !byte $A7 ;skip !byte $03 ;data1 !byte $10 !byte $00 !byte $00 !byte $10 !byte $AB ;skip !byte $03 ;data1 !byte $80 !byte $00 !byte $00 !byte $00 !byte $e3 ;run ibpcaa !byte $8E ;skip !byte $40,chFFFFFFFFFFFFFFFF ;fill !byte $e1,12 ;,; *_006 ;,; <- deps_itwasnicetoknowyou ; method 0 ( bytes ) -- 137 bytes (828 cumu) ; method 1 ( ibpc0 bytes ) -- 175 bytes (866 cumu) ; method 2 ( bytes ) -- 137 bytes (828 cumu) ; method 3 ( ibpc0 ibpcaa bytes ) -- 81 bytes (772 cumu) ; method 4 ( clrscr0 bytes ) -- 313 bytes (1004 cumu) ; method 5 ( clrscr0 ibpc0 bytes ) -- 360 bytes (1051 cumu) ; method 6 ( clrscr0 bytes ) -- 313 bytes (1004 cumu) ; method 7 ( clrscr0 ibpc0 ibpcaa bytes ) -- 250 bytes (941 cumu) ; method 8 ( clrscr1 bytes ) -- 323 bytes (1014 cumu) ; method 9 ( clrscr1 ibpc0 bytes ) -- 370 bytes (1061 cumu) ; method 10 ( clrscr1 bytes ) -- 323 bytes (1014 cumu) ; method 11 ( clrscr1 ibpc0 ibpcaa bytes ) -- 260 bytes (951 cumu) ; method 12 ( clrscr2 bytes ) -- 333 bytes (1024 cumu) ; method 13 ( clrscr2 ibpc0 bytes ) -- 380 bytes (1071 cumu) ; method 14 ( clrscr2 bytes ) -- 333 bytes (1024 cumu) ; method 15 ( clrscr2 ibpc0 ibpcaa bytes ) -- 270 bytes (961 cumu) ; method 16 ( clrscr3 bytes ) -- 343 bytes (1034 cumu) ; method 17 ( clrscr3 ibpc0 bytes ) -- 390 bytes (1081 cumu) ; method 18 ( clrscr3 bytes ) -- 343 bytes (1034 cumu) ; method 19 ( clrscr3 ibpc0 ibpcaa bytes ) -- 280 bytes (971 cumu) ; METHOD 3 CHOSEN ;,; <- chFFFFFFFFFFFFFFFF ; 430 ;,; <- chFFFFFFFFFFFF0000 ; 5 ;,; <- chFCFCFCFCFCFCFCFC ; 12 ;,; <- ch0000000000000000 ; 28 ;,; <- ch3F3F3F3F3F3F3F3F ; 11 ;,; <- chFEFCF8F0E0C08000 ; 1 ;,; <- ch7F3F1F0F07030100 ; 4 ;,; <- ch0080C0E0F0F8FCFE ; 2 ;,; <- ch000103070F1F3F7F ; 2 ;,; <- ch0000F0FCFCF00000 ; 2 ;,; <- ch0000183C3C180000 ; 1 ;,; <- ch000018183C3C3C3C ; 1 ;,; <- ch0000FFFFFFFFFFFF ; 5 ; total unique chars in pic: 13 (worst case req 104 bytes) !byte $DA,$3A ;addr !byte $40,$03 ;fill !byte $94 ;skip !byte $41,$03 ;fill !byte $95 ;skip !byte $40,$03 ;fill !byte $95 ;skip !byte $40,$03 ;fill !byte $95 ;skip !byte $40,$03 ;fill !byte $96 ;skip !byte $e2,1;mode4 !byte $00 ;data4 !byte $33 !byte $96 ;skip !byte $00 ;data4 !byte $33 !byte $DB,$2B ;addr !byte $00 ;data4 !byte $33 !byte $AA ;skip !byte $41,$03 ;fill !byte $94 ;skip !byte $41,$03 ;fill !byte $94 ;skip !byte $40,$03 ;fill !byte $94 ;skip !byte $41,$03 ;fill !byte $CE,$51 ;addr !byte $e2,$ff;mode1 !byte $06 ;data1 !byte $60 !byte $00 !byte $00 !byte $F0 !byte $00 !byte $00 !byte $60 !byte $A8 ;skip !byte $09 ;data1 !byte $40 !byte $00 !byte $00 !byte $A0 !byte $00 !byte $02 !byte $50 !byte $00 !byte $00 !byte $90 !byte $90 ;skip !byte $06 ;data1 !byte $00 !byte $00 !byte $00 !byte $C0 !byte $00 !byte $00 !byte $40 !byte $CF,$A5 ;addr !byte $03 ;data1 !byte $80 !byte $00 !byte $00 !byte $00 !byte $e3 ;run ibpcaa !byte $e1,12 ;,; *_007 ;,; <- deps_itwasnicetoknowyou ; method 0 ( bytes ) -- 140 bytes (912 cumu) ; method 1 ( ibpc0 bytes ) -- 180 bytes (952 cumu) ; method 2 ( bytes ) -- 140 bytes (912 cumu) ; method 3 ( ibpc0 ibpcaa bytes ) -- 89 bytes (861 cumu) ; method 4 ( clrscr0 bytes ) -- 293 bytes (1065 cumu) ; method 5 ( clrscr0 ibpc0 bytes ) -- 325 bytes (1097 cumu) ; method 6 ( clrscr0 bytes ) -- 293 bytes (1065 cumu) ; method 7 ( clrscr0 ibpc0 ibpcaa bytes ) -- 237 bytes (1009 cumu) ; method 8 ( clrscr1 bytes ) -- 294 bytes (1066 cumu) ; method 9 ( clrscr1 ibpc0 bytes ) -- 326 bytes (1098 cumu) ; method 10 ( clrscr1 bytes ) -- 294 bytes (1066 cumu) ; method 11 ( clrscr1 ibpc0 ibpcaa bytes ) -- 238 bytes (1010 cumu) ; method 12 ( clrscr2 bytes ) -- 314 bytes (1086 cumu) ; method 13 ( clrscr2 ibpc0 bytes ) -- 361 bytes (1133 cumu) ; method 14 ( clrscr2 bytes ) -- 314 bytes (1086 cumu) ; method 15 ( clrscr2 ibpc0 ibpcaa bytes ) -- 273 bytes (1045 cumu) ; method 16 ( clrscr3 bytes ) -- 315 bytes (1087 cumu) ; method 17 ( clrscr3 ibpc0 bytes ) -- 362 bytes (1134 cumu) ; method 18 ( clrscr3 bytes ) -- 315 bytes (1087 cumu) ; method 19 ( clrscr3 ibpc0 ibpcaa bytes ) -- 274 bytes (1046 cumu) ; METHOD 3 CHOSEN ;,; <- chFFFFFFFFFFFFFFFF ; 452 ;,; <- chFFFFFFFFFFFF0000 ; 8 ;,; <- chFCFCFCFCFCFCFCFC ; 10 ;,; <- ch0000000000000000 ; 13 ;,; <- ch3C3C3C3C3C3C3C3C ; 2 ;,; <- ch3F3F3F3F3F3F3F3F ; 9 ;,; <- ch0000FFFFFFFFFFFF ; 9 ;,; <- ch7F3F1F0F07030100 ; 1 ; total unique chars in pic: 8 (worst case req 64 bytes) !byte $DA,$38 ;addr !byte $e2,1;mode4 !byte $02 ;data4 !byte $11 !byte $11 !byte $31 !byte $91 ;skip !byte $02 ;data4 !byte $11 !byte $11 !byte $31 !byte $93 ;skip !byte $01 ;data4 !byte $11 !byte $31 !byte $93 ;skip !byte $01 ;data4 !byte $11 !byte $11 !byte $93 ;skip !byte $01 ;data4 !byte $11 !byte $11 !byte $94 ;skip !byte $01 ;data4 !byte $11 !byte $31 !byte $94 ;skip !byte $00 ;data4 !byte $11 !byte $95 ;skip !byte $00 ;data4 !byte $11 !byte $93 ;skip !byte $01 ;data4 !byte $11 !byte $11 !byte $95 ;skip !byte $00 ;data4 !byte $31 !byte $94 ;skip !byte $00 ;data4 !byte $11 !byte $95 ;skip !byte $00 ;data4 !byte $11 !byte $CE,$3A ;addr !byte $e2,$ff;mode1 !byte $06 ;data1 !byte $00 !byte $00 !byte $01 !byte $40 !byte $00 !byte $00 !byte $00 !byte $90 ;skip !byte $03 ;data1 !byte $40 !byte $00 !byte $00 !byte $00 !byte $A6 ;skip !byte $06 ;data1 !byte $00 !byte $00 !byte $00 !byte $10 !byte $00 !byte $00 !byte $10 !byte $90 ;skip !byte $03 ;data1 !byte $80 !byte $00 !byte $00 !byte $00 !byte $CF,$8D ;addr !byte $03 ;data1 !byte $80 !byte $00 !byte $00 !byte $00 !byte $e3 ;run ibpcaa !byte $e1,12 ;,; *_008 ;,; <- deps_itwasnicetoknowyou ; method 0 ( bytes ) -- 82 bytes (943 cumu) ; method 1 ( ibpc0 bytes ) -- 113 bytes (974 cumu) ; method 2 ( bytes ) -- 82 bytes (943 cumu) ; method 3 ( ibpc0 ibpcaa bytes ) -- 73 bytes (934 cumu) ; method 4 ( clrscr0 bytes ) -- 228 bytes (1089 cumu) ; method 5 ( clrscr0 ibpc0 bytes ) -- 238 bytes (1099 cumu) ; method 6 ( clrscr0 bytes ) -- 228 bytes (1089 cumu) ; method 7 ( clrscr0 ibpc0 ibpcaa bytes ) -- 214 bytes (1075 cumu) ; method 8 ( clrscr1 bytes ) -- 230 bytes (1091 cumu) ; method 9 ( clrscr1 ibpc0 bytes ) -- 240 bytes (1101 cumu) ; method 10 ( clrscr1 bytes ) -- 230 bytes (1091 cumu) ; method 11 ( clrscr1 ibpc0 ibpcaa bytes ) -- 216 bytes (1077 cumu) ; method 12 ( clrscr2 bytes ) -- 245 bytes (1106 cumu) ; method 13 ( clrscr2 ibpc0 bytes ) -- 296 bytes (1157 cumu) ; method 14 ( clrscr2 bytes ) -- 245 bytes (1106 cumu) ; method 15 ( clrscr2 ibpc0 ibpcaa bytes ) -- 272 bytes (1133 cumu) ; method 16 ( clrscr3 bytes ) -- 247 bytes (1108 cumu) ; method 17 ( clrscr3 ibpc0 bytes ) -- 298 bytes (1159 cumu) ; method 18 ( clrscr3 bytes ) -- 247 bytes (1108 cumu) ; method 19 ( clrscr3 ibpc0 ibpcaa bytes ) -- 274 bytes (1135 cumu) ; METHOD 3 CHOSEN ;,; <- chFFFFFFFFFFFFFFFF ; 494 ;,; <- chFFFFFFFFFFFF0000 ; 2 ;,; <- chFCFCFCFCFCFCFCFC ; 2 ;,; <- ch0000000000000000 ; 2 ;,; <- ch3F3F3F3F3F3F3F3F ; 2 ;,; <- ch0000FFFFFFFFFFFF ; 2 ; total unique chars in pic: 6 (worst case req 48 bytes) !byte $DA,$DF ;addr !byte $e2,1;mode4 !byte $00 ;data4 !byte $33 !byte $95 ;skip !byte $03 ;data4 !byte $33 !byte $11 !byte $11 !byte $11 !byte $8F ;skip !byte $03 ;data4 !byte $33 !byte $11 !byte $11 !byte $11 !byte $95 ;skip !byte $00 ;data4 !byte $11 !byte $95 ;skip !byte $00 ;data4 !byte $31 !byte $93 ;skip !byte $01 ;data4 !byte $11 !byte $31 !byte $93 ;skip !byte $01 ;data4 !byte $11 !byte $31 !byte $93 ;skip !byte $01 ;data4 !byte $11 !byte $31 !byte $94 ;skip !byte $00 ;data4 !byte $11 !byte $95 ;skip !byte $00 ;data4 !byte $11 !byte $CE,$51 ;addr !byte $e2,$ff;mode1 !byte $00 ;data1 !byte $00 !byte $A8 ;skip !byte $00 ;data1 !byte $00 !byte $A8 ;skip !byte $00 ;data1 !byte $00 !byte $A9 ;skip !byte $06 ;data1 !byte $00 !byte $00 !byte $00 !byte $00 !byte $00 !byte $00 !byte $80 !byte $A6 ;skip !byte $03 ;data1 !byte $00 !byte $00 !byte $00 !byte $00 !byte $A7 ;skip !byte $00 ;data1 !byte $00 !byte $e3 ;run ibpcaa !byte $e1,12 ;,; *_009 ;,; <- deps_itwasnicetoknowyou ; method 0 ( bytes ) -- 52 bytes (986 cumu) ; method 1 ( ibpc0 bytes ) -- 62 bytes (996 cumu) ; method 2 ( bytes ) -- 52 bytes (986 cumu) ; method 3 ( ibpc0 ibpcaa bytes ) -- 56 bytes (990 cumu) ; method 4 ( clrscr0 bytes ) -- 197 bytes (1131 cumu) ; method 5 ( clrscr0 ibpc0 bytes ) -- 197 bytes (1131 cumu) ; method 6 ( clrscr0 bytes ) -- 197 bytes (1131 cumu) ; method 7 ( clrscr0 ibpc0 ibpcaa bytes ) -- 198 bytes (1132 cumu) ; method 8 ( clrscr1 bytes ) -- 217 bytes (1151 cumu) ; method 9 ( clrscr1 ibpc0 bytes ) -- 217 bytes (1151 cumu) ; method 10 ( clrscr1 bytes ) -- 217 bytes (1151 cumu) ; method 11 ( clrscr1 ibpc0 ibpcaa bytes ) -- 218 bytes (1152 cumu) ; method 12 ( clrscr2 bytes ) -- 215 bytes (1149 cumu) ; method 13 ( clrscr2 ibpc0 bytes ) -- 265 bytes (1199 cumu) ; method 14 ( clrscr2 bytes ) -- 215 bytes (1149 cumu) ; method 15 ( clrscr2 ibpc0 ibpcaa bytes ) -- 266 bytes (1200 cumu) ; method 16 ( clrscr3 bytes ) -- 235 bytes (1169 cumu) ; method 17 ( clrscr3 ibpc0 bytes ) -- 285 bytes (1219 cumu) ; method 18 ( clrscr3 bytes ) -- 235 bytes (1169 cumu) ; method 19 ( clrscr3 ibpc0 ibpcaa bytes ) -- 286 bytes (1220 cumu) ; METHOD 0 CHOSEN ;,; <- chFFFFFFFFFFFFFFFF ; 504 ; total unique chars in pic: 1 (worst case req 8 bytes) !byte $DA,$38 ;addr !byte $43,$03 ;fill !byte $92 ;skip !byte $43,$03 ;fill !byte $92 ;skip !byte $43,$03 ;fill !byte $92 ;skip !byte $e2,1;mode4 !byte $02 ;data4 !byte $13 !byte $31 !byte $33 !byte $91 ;skip !byte $02 ;data4 !byte $13 !byte $31 !byte $33 !byte $91 ;skip !byte $44,$03 ;fill !byte $91 ;skip !byte $01 ;data4 !byte $33 !byte $33 !byte $94 ;skip !byte $01 ;data4 !byte $33 !byte $13 !byte $93 ;skip !byte $00 ;data4 !byte $33 !byte $95 ;skip !byte $00 ;data4 !byte $33 !byte $95 ;skip !byte $00 ;data4 !byte $33 !byte $95 ;skip !byte $00 ;data4 !byte $33 !byte $CE,$FD ;addr !byte $6F,chFFFFFFFFFFFFFFFF ;fill !byte $AD ;skip !byte $6F,chFFFFFFFFFFFFFFFF ;fill !byte $e1,12 ;,; *_010 ;,; <- deps_itwasnicetoknowyou ; method 0 ( bytes ) -- 42 bytes (1028 cumu) ; method 1 ( ibpc0 bytes ) -- 42 bytes (1028 cumu) ; method 2 ( bytes ) -- 42 bytes (1028 cumu) ; method 3 ( ibpc0 ibpcaa bytes ) -- 43 bytes (1029 cumu) ; method 4 ( clrscr0 bytes ) -- 185 bytes (1171 cumu) ; method 5 ( clrscr0 ibpc0 bytes ) -- 185 bytes (1171 cumu) ; method 6 ( clrscr0 bytes ) -- 185 bytes (1171 cumu) ; method 7 ( clrscr0 ibpc0 ibpcaa bytes ) -- 186 bytes (1172 cumu) ; method 8 ( clrscr1 bytes ) -- 218 bytes (1204 cumu) ; method 9 ( clrscr1 ibpc0 bytes ) -- 218 bytes (1204 cumu) ; method 10 ( clrscr1 bytes ) -- 218 bytes (1204 cumu) ; method 11 ( clrscr1 ibpc0 ibpcaa bytes ) -- 219 bytes (1205 cumu) ; method 12 ( clrscr2 bytes ) -- 203 bytes (1189 cumu) ; method 13 ( clrscr2 ibpc0 bytes ) -- 253 bytes (1239 cumu) ; method 14 ( clrscr2 bytes ) -- 203 bytes (1189 cumu) ; method 15 ( clrscr2 ibpc0 ibpcaa bytes ) -- 254 bytes (1240 cumu) ; method 16 ( clrscr3 bytes ) -- 236 bytes (1222 cumu) ; method 17 ( clrscr3 ibpc0 bytes ) -- 286 bytes (1272 cumu) ; method 18 ( clrscr3 bytes ) -- 236 bytes (1222 cumu) ; method 19 ( clrscr3 ibpc0 ibpcaa bytes ) -- 287 bytes (1273 cumu) ; METHOD 0 CHOSEN ;,; <- chFFFFFFFFFFFFFFFF ; 504 ; total unique chars in pic: 1 (worst case req 8 bytes) !byte $DA,$81 ;addr !byte $40,$03 ;fill !byte $95 ;skip !byte $40,$03 ;fill !byte $B0 ;skip !byte $00 ;data4 !byte $33 !byte $95 ;skip !byte $00 ;data4 !byte $33 !byte $94 ;skip !byte $01 ;data4 !byte $33 !byte $33 !byte $93 ;skip !byte $01 ;data4 !byte $33 !byte $31 !byte $93 ;skip !byte $01 ;data4 !byte $33 !byte $33 !byte $93 ;skip !byte $01 ;data4 !byte $33 !byte $33 !byte $93 ;skip !byte $01 ;data4 !byte $33 !byte $33 !byte $93 ;skip !byte $00 ;data4 !byte $13 !byte $95 ;skip !byte $00 ;data4 !byte $13 !byte $AE ;skip !byte $00 ;data4 !byte $33 !byte $e1,12 ;,; *_011 ;,; <- deps_itwasnicetoknowyou ; method 0 ( bytes ) -- 14 bytes (1042 cumu) ; method 1 ( ibpc0 bytes ) -- 14 bytes (1042 cumu) ; method 2 ( bytes ) -- 14 bytes (1042 cumu) ; method 3 ( ibpc0 ibpcaa bytes ) -- 15 bytes (1043 cumu) ; method 4 ( clrscr0 bytes ) -- 183 bytes (1211 cumu) ; method 5 ( clrscr0 ibpc0 bytes ) -- 183 bytes (1211 cumu) ; method 6 ( clrscr0 bytes ) -- 183 bytes (1211 cumu) ; method 7 ( clrscr0 ibpc0 ibpcaa bytes ) -- 184 bytes (1212 cumu) ; method 8 ( clrscr1 bytes ) -- 210 bytes (1238 cumu) ; method 9 ( clrscr1 ibpc0 bytes ) -- 210 bytes (1238 cumu) ; method 10 ( clrscr1 bytes ) -- 210 bytes (1238 cumu) ; method 11 ( clrscr1 ibpc0 ibpcaa bytes ) -- 211 bytes (1239 cumu) ; method 12 ( clrscr2 bytes ) -- 201 bytes (1229 cumu) ; method 13 ( clrscr2 ibpc0 bytes ) -- 251 bytes (1279 cumu) ; method 14 ( clrscr2 bytes ) -- 201 bytes (1229 cumu) ; method 15 ( clrscr2 ibpc0 ibpcaa bytes ) -- 252 bytes (1280 cumu) ; method 16 ( clrscr3 bytes ) -- 228 bytes (1256 cumu) ; method 17 ( clrscr3 ibpc0 bytes ) -- 278 bytes (1306 cumu) ; method 18 ( clrscr3 bytes ) -- 228 bytes (1256 cumu) ; method 19 ( clrscr3 ibpc0 ibpcaa bytes ) -- 279 bytes (1307 cumu) ; METHOD 0 CHOSEN ;,; <- chFFFFFFFFFFFFFFFF ; 504 ; total unique chars in pic: 1 (worst case req 8 bytes) !byte $DB,$15 ;addr !byte $00 ;data4 !byte $33 !byte $DB,$74 ;addr !byte $00 ;data4 !byte $33 !byte $95 ;skip !byte $00 ;data4 !byte $33 !byte $95 ;skip !byte $00 ;data4 !byte $33 ;!byte $e1,12 ;;,; *_012 ;,; <- deps_itwasnicetoknowyou ; method 0 ( bytes ) -- 107 bytes (1149 cumu) ; method 1 ( ibpc0 bytes ) -- 111 bytes (1153 cumu) ; method 2 ( bytes ) -- 107 bytes (1149 cumu) ; method 3 ( ibpc0 ibpcaa bytes ) -- 116 bytes (1158 cumu) ; method 4 ( clrscr0 bytes ) -- 258 bytes (1300 cumu) ; method 5 ( clrscr0 ibpc0 bytes ) -- 262 bytes (1304 cumu) ; method 6 ( clrscr0 bytes ) -- 258 bytes (1300 cumu) ; method 7 ( clrscr0 ibpc0 ibpcaa bytes ) -- 267 bytes (1309 cumu) ; method 8 ( clrscr1 bytes ) -- 279 bytes (1321 cumu) ; method 9 ( clrscr1 ibpc0 bytes ) -- 283 bytes (1325 cumu) ; method 10 ( clrscr1 bytes ) -- 279 bytes (1321 cumu) ; method 11 ( clrscr1 ibpc0 ibpcaa bytes ) -- 288 bytes (1330 cumu) ; method 12 ( clrscr2 bytes ) -- 272 bytes (1314 cumu) ; method 13 ( clrscr2 ibpc0 bytes ) -- 322 bytes (1364 cumu) ; method 14 ( clrscr2 bytes ) -- 272 bytes (1314 cumu) ; method 15 ( clrscr2 ibpc0 ibpcaa bytes ) -- 327 bytes (1369 cumu) ; method 16 ( clrscr3 bytes ) -- 293 bytes (1335 cumu) ; method 17 ( clrscr3 ibpc0 bytes ) -- 343 bytes (1385 cumu) ; method 18 ( clrscr3 bytes ) -- 293 bytes (1335 cumu) ; method 19 ( clrscr3 ibpc0 ibpcaa bytes ) -- 348 bytes (1390 cumu) ; METHOD 0 CHOSEN ;,; <- chFFFFFFFFFFFFFFFF ; 420 ;,; <- ch0000000000000000 ; 9 ;,; <- chFFFFFFFFFFFF0000 ; 14 ;,; <- chFCFC303030303030 ; 4 ;,; <- chC6C6C6C6C6C6C6C6 ; 2 ;,; <- chFCFCDCCCCCCCCCCC ; 7 ;,; <- chFCFCE0C0C0C0C0C0 ; 3 ;,; <- chCCCCCCCCCCCCCCCC ; 4 ;,; <- chCCCCCCCCCCECFCFC ; 5 ;,; <- ch3030303030303030 ; 4 ;,; <- ch303030303030FCFC ; 2 ;,; <- chD6D6D6D6D6F6FEFE ; 2 ;,; <- chFCFC1C0C0C1CFCFC ; 1 ;,; <- chC0C0C0C0C0E0FCFC ; 1 ;,; <- chFCFCE0C0C0E0FCFC ; 1 ;,; <- chF0F8CCCCCCCCCCCC ; 1 ;,; <- ch0000000000303030 ; 1 ;,; <- ch5555555555555555 ; 23 ; total unique chars in pic: 18 (worst case req 144 bytes) !byte $DB,$98 ;addr !byte $01 ;data4 !byte $11 !byte $10 !byte $8D ;skip !byte $1D ;data4 !byte $01 !byte $11 !byte $01 !byte $11 !byte $10 !byte $11 !byte $10 !byte $11 !byte $01 !byte $11 !byte $10 !byte $11 !byte $01 !byte $11 !byte $11 !byte $11 !byte $10 !byte $11 !byte $10 !byte $11 !byte $01 !byte $11 !byte $10 !byte $11 !byte $01 !byte $11 !byte $11 !byte $AA !byte $AA !byte $B9 !byte $DB,$E5 ;addr !byte $4A,$0B ;fill !byte $02 ;data4 !byte $A9 !byte $AA !byte $AA !byte $CF,$98 ;addr !byte $42,ch0000000000000000 ;fill !byte $4C,chFFFFFFFFFFFF0000 ;fill !byte $43,ch0000000000000000 ;fill !byte $e2,0;mode8 !byte $30 ;data8 !byte chFFFFFFFFFFFFFFFF !byte chFCFC303030303030 !byte chFCFC303030303030 !byte chFFFFFFFFFFFFFFFF !byte chC6C6C6C6C6C6C6C6 !byte chFCFCDCCCCCCCCCCC !byte chFCFCE0C0C0C0C0C0 !byte chFFFFFFFFFFFFFFFF !byte chFCFCDCCCCCCCCCCC !byte chFCFC303030303030 !byte chFCFCE0C0C0C0C0C0 !byte chFCFCE0C0C0C0C0C0 !byte chFFFFFFFFFFFFFFFF !byte chFCFC303030303030 !byte chFCFCDCCCCCCCCCCC !byte chFFFFFFFFFFFFFFFF !byte chCCCCCCCCCCCCCCCC !byte chFCFCDCCCCCCCCCCC !byte chFCFCDCCCCCCCCCCC !byte chC6C6C6C6C6C6C6C6 !byte chFFFFFFFFFFFFFFFF !byte chCCCCCCCCCCECFCFC !byte chFCFCDCCCCCCCCCCC !byte chCCCCCCCCCCCCCCCC !byte ch3030303030303030 !byte ch303030303030FCFC !byte ch3030303030303030 !byte chFFFFFFFFFFFFFFFF !byte chD6D6D6D6D6F6FEFE !byte chFCFCDCCCCCCCCCCC !byte chFCFC1C0C0C1CFCFC !byte chFFFFFFFFFFFFFFFF !byte chCCCCCCCCCCCCCCCC !byte ch303030303030FCFC !byte chC0C0C0C0C0E0FCFC !byte chFCFCE0C0C0E0FCFC !byte chFFFFFFFFFFFFFFFF !byte ch3030303030303030 !byte chCCCCCCCCCCECFCFC !byte chFFFFFFFFFFFFFFFF !byte chF0F8CCCCCCCCCCCC !byte chCCCCCCCCCCCCCCCC !byte chCCCCCCCCCCECFCFC !byte chD6D6D6D6D6F6FEFE !byte chFFFFFFFFFFFFFFFF !byte ch3030303030303030 !byte chCCCCCCCCCCECFCFC !byte chCCCCCCCCCCECFCFC !byte ch0000000000303030 !byte $55,ch5555555555555555 ;fill !byte $e1,48+12 ; total compressed size 1149 bytes
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_7765_953.asm
ljhsiun2/medusa
9
3359
<filename>Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_7765_953.asm .global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r8 push %rax push %rbx // Faulty Load lea addresses_WC+0xc0c5, %rax nop nop nop nop nop dec %r12 movntdqa (%rax), %xmm0 vpextrq $0, %xmm0, %r8 lea oracles, %rbx and $0xff, %r8 shlq $12, %r8 mov (%rbx,%r8,1), %r8 pop %rbx pop %rax pop %r8 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WC', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_WC', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'00': 7765} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */