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 |
|---|---|---|---|---|
programs/oeis/135/A135278.asm | neoneye/loda | 22 | 20957 | ; A135278: Triangle read by rows, giving the numbers T(n,m) = binomial(n+1, m+1); or, Pascal's triangle A007318 with its left-hand edge removed.
; 1,2,1,3,3,1,4,6,4,1,5,10,10,5,1,6,15,20,15,6,1,7,21,35,35,21,7,1,8,28,56,70,56,28,8,1,9,36,84,126,126,84,36,9,1,10,45,120,210,252,210,120,45,10,1,11,55,165,330,462,462,330,165,55,11,1,12,66,220,495,792,924,792,495,220,66,12,1,13,78,286,715,1287,1716,1716,1287,715,286,78,13,1,14,91,364,1001,2002,3003,3432,3003,2002
add $0,1
seq $0,74909 ; Running sum of Pascal's triangle (A007318), or beheaded Pascal's triangle read by beheaded rows.
|
src/maps.asm | santiontanon/talesofpopolon-ext | 4 | 7279 | <gh_stars>1-10
;-----------------------------------------------
; Decompresses and Copies the map pointed by hl to currentMap.
; It assumes that the variable (player_map) already contains the ID of the map
; we are loading, and re-opens the doors that should be open, and removes pickups
; that were already picked up.
; - hl: pointer to the map to load
loadMap:
ld de,raycast_buffer
push de
call pletter_unpack
pop hl ; recover "raycast_buffer"
; skybox, textures, floor and ceiling types:
ld de,raycast_ceiling_type
ldi ; raycast_ceiling_type
ldi ; raycast_texture_set
ldi ; raycast_floor_texture_color
ldi ; raycast_ceiling_texture_color
; copy the map:
ld de,currentMap
ld bc,16*16
ldir
; copy the pickups:
ld de,currentMapPickups
ld a,(hl) ; n pickups
add a,a
add a,a
inc a
ld c,a
; ld b,0 ; b must be 0 at this point
ldir
; copy the enemies:
ld de,currentMapEnemies
ld a,(hl) ; n enemies
add a,a
add a,a
add a,a
add a,(hl) ; a = a*9
inc a
ld c,a
; ld b,0 ; b must be 0 at this point
ldir
; copy the events:
ld de,currentMapEvents
ld a,(hl) ; n events
add a,a
add a,(hl) ; a = a*3
inc a
ld c,a
; ld b,0 ; b must be 0 at this point
ldir
; copy the messages:
ld de,currentMapMessages
ld c,(hl)
inc hl
ld b,(hl)
inc hl
ld a,b
or c
jr z,loadMap_finding_doors ;; skip if we need to just copy 0 bytes
ldir
loadMap_finding_doors:
; find all the doors:
xor a
ld hl,currentMapDoorLocations
ld (hl),a
inc hl
ld (hl),a ;; this assumes that MAX_DOORS_PER_MAP = 2
dec hl
ld de,currentMap
ld b,0
loadMap_find_all_doors:
ld a,(de)
cp MAP_TILE_DOOR
jr nz,loadMap_find_all_doors_nodoor
ld (hl),e
inc hl
loadMap_find_all_doors_nodoor:
inc de
djnz loadMap_find_all_doors
; reopen the doors that are supposed to be open:
ld a,(player_map)
add a,a ; a = (player_map)*2
ld ix,currentMapDoorLocations
ld hl,globalState_doorsOpen
ADD_HL_A ; hl = globalState_doorsOpen + (player_map)*2
ld b,MAX_DOORS_PER_MAP
loadMap_reopening_doors_loop:
ld d,currentMap/256
ld a,(hl)
or a
jr z,loadMap_reopening_doors_loop_doorclosed
ld e,(ix) ; get the position of the door
xor a
ld (de),a
loadMap_reopening_doors_loop_doorclosed:
inc hl
inc ix
djnz loadMap_reopening_doors_loop
loadMap_reopening_doors_loop_done:
; remove already picked-up items:
ld a,(player_map)
add a,a
add a,a
add a,a
add a,a
ld hl,globalState_itemsPickedUp
ADD_HL_A ; hl = globalState_itemsPickedUp + (player_map)*16
ld de,currentMapPickups+1
ld b,MAX_PICKUPS_PER_MAP
loadMap_remove_pickedup_items_loop:
ld a,(hl)
or a
jr z,loadMap_remove_pickedup_items_loop_not_picked_up
; picked up
xor a
ld (de),a ; clear the pick-up
loadMap_remove_pickedup_items_loop_not_picked_up:
inc hl
inc de
inc de
inc de
inc de
djnz loadMap_remove_pickedup_items_loop
; load map-specific textures:
ld hl,raycast_texture_set
ld b,0
ld c,(hl)
ld hl,texture_pointers
add hl,bc
add hl,bc
ld e,(hl)
inc hl
ld d,(hl)
ex de,hl
ld de,textures+6*32*16
call pletter_unpack
; remove killed bosses:
ld a,(player_map)
cp MAP_CATACOMBS2
jr z,loadmap_remove_killed_ker
cp MAP_MEDUSA2
jr z,loadmap_remove_killed_medusa
cp MAP_KERES2
jr z,loadmap_remove_killed_final_kers
ret
loadmap_remove_killed_ker:
ld a,(globalState_BossesKilled)
loadmap_remove_killed_ker_2:
or a
ret z
xor a
ld (currentMapEnemies+1),a
ret
loadmap_remove_killed_medusa:
ld a,(globalState_BossesKilled+1)
jr loadmap_remove_killed_ker_2
; or a
; ret z
; xor a
; ld (currentMapEnemies+1),a
; ret
loadmap_remove_killed_final_kers:
ld a,(globalState_BossesKilled+3)
or a
jp z,loadmap_remove_killed_final_kers2
xor a
ld (currentMapEnemies+1+ENEMY_STRUCT_SIZE),a
loadmap_remove_killed_final_kers2:
ld a,(globalState_BossesKilled+2)
jr loadmap_remove_killed_ker_2
; or a
; ret z
; xor a
; ld (currentMapEnemies+1),a
; ret
;-----------------------------------------------
; Gets the tile type at the position in the map indicated by (player_x), (player_y)
; - input;
; - b: y coordinate
; - c: x coordinate
; - output:
; - a: currentMap[(c/16)+(b/16)*16];
getMapPosition:
push hl
ld a,b
and #f0
ld l,c
ld h,raycast_divide_by16_table/256
add a,(hl)
ld h,currentMap/256
ld l,a
ld a,(hl)
pop hl
ret
;-----------------------------------------------
; opens the door in the map in position:
; - b: y coordinate
; - c: x coordinate
; returns:
; - a: tile in the map in the specified position after opening the door
openDoor:
ld a,(player_keys)
or a
jp z,openDoor_nokeys
dec a
ld (player_keys),a
call update_UI_keys
ld a,b
and #f0
ld b,a
ld a,c
rlca
rlca
rlca
rlca
and #0f ; these sequence of 5 instructions, is equivalent to 4 srl a, but faster
add a,b
push hl
ld h,currentMap/256
ld l,a
xor a
ld (hl),a ;; currentMap[(player_x/16)+(player_y/16)*16] = 0;
ld b,l ;; offset of the door
; record the open door in the first empty position of globalState_doorsOpen+(player_map)*2:
ld a,(player_map)
add a,a ; a = (player_map)*2
ld de,currentMapDoorLocations
ld hl,globalState_doorsOpen
ADD_HL_A ; hl = globalState_doorsOpen + (player_map)*2
openDoor_findSpot_loop:
ld a,(de)
cp b
jp z,openDoor_foundSpot
inc de
inc hl
jr openDoor_findSpot_loop
openDoor_foundSpot:
ld (hl),1 ; mark the door as open
ld hl,SFX_door_open
call play_ingame_SFX
pop hl
xor a
ret
openDoor_nokeys:
ld a,MAP_TILE_DOOR
ret
;-----------------------------------------------
; checks whether a given position is in the light of sight of the camera
; for this, this function uses a Bresenham line drawing algorithm to draw a line from:
; - ((last_raycast_camera_x),(last_raycast_camera_y)) to ((ix+1),(ix+2))
; - z flag is set if the position is in line of sight
lineOfSightCheck:
ld a,(last_raycast_camera_y)
xor (ix+2)
and #f0
jp z,quick_lineOfSightCheck_x
ld a,(last_raycast_camera_x)
xor (ix+1)
and #f0
jp z,quick_lineOfSightCheck_y
ld a,(last_raycast_camera_y)
ld d,a
ld a,(ix+2)
sub d
ld d,a ; d = delta_y
ld a,(last_raycast_camera_x)
ld e,a
ld a,(ix+1)
sub e
ld e,a ; e = delta_x
ld c,10 ; c > 0 marks that we just started, and that the camera might be inside of a wall, but it's fine
; the value of c is the amount of steps that the camera can still go through a wall
; start position in ((last_raycast_camera_x),(last_raycast_camera_y)):
ld hl,(last_raycast_camera_x)
lineOfSightCheck_deltas_computed:
ld a,e
or a
jp m,lineOfSightCheck_negative_delta_x
ld a,d
or a
jp m,lineOfSightCheck_3rd_4th_quadrant
lineOfSightCheck_1st_2nd_quadrant:
; we know we are either in the 1st or 2nd quadrant:
; y
; | /
; | 1 /
; | /
; | / 2
; |/
; +-----x
cp e
jp m,lineOfSightCheck_2nd_quadrant
lineOfSightCheck_1st_quadrant:
; delta_y is positive and |delta_y| > |delta_x|
ld a,e
add a,a
sub d ; a = error_term = 2*|delta_x| - delta_y
ld b,d ; we will execute "d" iterations
lineOfSightCheck_1st_quadrant_loop:
call lineOfSightCheck_collision_check
ret nz
or a
jp m,lineOfSightCheck_1st_quadrant_continue
inc l ; move on the x dimension
sub d
lineOfSightCheck_1st_quadrant_continue:
add a,e
inc h ; move on the y dimension
djnz lineOfSightCheck_1st_quadrant_loop
xor a
ret
lineOfSightCheck_2nd_quadrant:
; delta_y is positive and |delta_y| < |delta_x|
ld a,d
add a,a
sub e ; a = error_term = 2*|delta_y| - delta_x
ld b,e ; we will execute "e" iterations
lineOfSightCheck_2nd_quadrant_loop:
call lineOfSightCheck_collision_check
ret nz
or a
jp m,lineOfSightCheck_2nd_quadrant_continue
inc h ; move on the y dimension
sub e
lineOfSightCheck_2nd_quadrant_continue:
add a,d
inc l ; move on the x dimension
djnz lineOfSightCheck_2nd_quadrant_loop
xor a
ret
lineOfSightCheck_3rd_4th_quadrant:
; we know we are either in the 3rd or 4th quadrant:
; +-----x
; |\
; | \ 3
; | \
; | 4 \
; | \
; -y
ld a,e
add a,d ; a = |delta_x| - |delta_y|
jp m,lineOfSightCheck_4th_quadrant
lineOfSightCheck_3rd_quadrant:
; delta_y is negative and |delta_y| < |delta_x|
xor a
sub d
add a,a
sub e ; a = error_term = 2*|delta_y| - delta_x
ld b,e ; we will execute "e" iterations
lineOfSightCheck_3rd_quadrant_loop:
call lineOfSightCheck_collision_check
ret nz
or a
jp m,lineOfSightCheck_3rd_quadrant_continue
dec h ; move on the y dimension
sub e
lineOfSightCheck_3rd_quadrant_continue:
sub d ; we subtract, since d is negative
inc l ; move on the x dimension
djnz lineOfSightCheck_3rd_quadrant_loop
xor a
ret
lineOfSightCheck_4th_quadrant:
; delta_y is negative and |delta_y| > |delta_x|
xor a
sub d
ld b,a ; we will execute "|d|" iterations
ld a,e
add a,a
add a,d ; a = error_term = 2*|delta_x| - |delta_y|
lineOfSightCheck_4th_quadrant_loop:
call lineOfSightCheck_collision_check
ret nz
or a
jp m,lineOfSightCheck_4th_quadrant_continue
inc l ; move on the x dimension
add a,d ; we add, since d is negative
lineOfSightCheck_4th_quadrant_continue:
add a,e
dec h ; move on the y dimension
djnz lineOfSightCheck_4th_quadrant_loop
xor a
ret
lineOfSightCheck_negative_delta_x:
ld a,d
or a
jp m,lineOfSightCheck_5th_6th_quadrant
lineOfSightCheck_7th_8th_quadrant:
; we know we are either in the 7th or 8th quadrant:
; y
; \ |
; \ 8 |
; \ |
; 7 \ |
; \|
; -x----+
add a,e ; a = |delta_y| - |delta_x|
jp m,lineOfSightCheck_7th_quadrant
lineOfSightCheck_8th_quadrant:
; delta_y is positive and |delta_y| > |delta_x|
ld a,e
neg
add a,a
sub d ; a = error_term = 2*|delta_x| - |delta_y|
ld b,d ; we will execute "d" iterations
lineOfSightCheck_8th_quadrant_loop:
call lineOfSightCheck_collision_check
ret nz
or a
jp m,lineOfSightCheck_8th_quadrant_continue
dec l ; move on the x dimension
sub d
lineOfSightCheck_8th_quadrant_continue:
sub e
inc h ; move on the y dimension
djnz lineOfSightCheck_8th_quadrant_loop
xor a
ret
lineOfSightCheck_7th_quadrant:
; delta_y is positive and |delta_y| < |delta_x|
ld a,e
neg
ld b,a ; we will execute "|e|" iterations
ld a,d
add a,a
add a,e ; a = error_term = 2*|delta_y| - |delta_x|
lineOfSightCheck_7th_quadrant_loop:
call lineOfSightCheck_collision_check
ret nz
or a
jp m,lineOfSightCheck_7th_quadrant_continue
inc h ; move on the y dimension
add a,e
lineOfSightCheck_7th_quadrant_continue:
add a,d
dec l ; move on the x dimension
djnz lineOfSightCheck_7th_quadrant_loop
xor a
ret
lineOfSightCheck_5th_6th_quadrant:
; we know we are either in the 5th or 6th quadrant:
; -x----+
; /|
; 6 / |
; / |
; / 5 |
; / |
; -y
neg
add a,e ; a = |delta_y| - |delta_x|
jp p,lineOfSightCheck_5th_quadrant
lineOfSightCheck_6th_quadrant:
; delta_y is negative and |delta_y| < |delta_x|
ld a,e
neg
ld b,a ; we will execute "|e|" iterations
xor a
sub d
add a,a
add a,e ; a = error_term = 2*|delta_y| - |delta_x|
lineOfSightCheck_6th_quadrant_loop:
call lineOfSightCheck_collision_check
ret nz
or a
jp m,lineOfSightCheck_6th_quadrant_continue
dec h ; move on the y dimension
add a,e
lineOfSightCheck_6th_quadrant_continue:
sub d ; we subtract, since d is negative
dec l ; move on the x dimension
djnz lineOfSightCheck_6th_quadrant_loop
xor a
ret
lineOfSightCheck_5th_quadrant:
; delta_y is negative and |delta_y| > |delta_x|
xor a
sub d
ld b,a ; we will execute "|d|" iterations
ld a,e
neg
add a,a
add a,d ; a = error_term = 2*|delta_x| - |delta_y|
lineOfSightCheck_5th_quadrant_loop:
call lineOfSightCheck_collision_check
ret nz
or a
jp m,lineOfSightCheck_5th_quadrant_continue
dec l ; move on the x dimension
add a,d ; we add, since d is negative
lineOfSightCheck_5th_quadrant_continue:
sub e
dec h ; move on the y dimension
djnz lineOfSightCheck_5th_quadrant_loop
xor a
ret
lineOfSightCheck_collision_check:
push hl
push de
ld d,a
ld a,l
rlca
rlca
rlca
rlca
and #0f ; these sequence of 5 instructions, is equivalent to 4 srl a, but faster
ld l,a
ld a,h
and #f0
add a,l
ld l,a
ld h,currentMap/256
ld a,(hl)
or a
jp z,lineOfSightCheck_collision_no_wall
ld a,c
or a
jp z,lineOfSightCheck_collision_wall
; it's a wall, but since c > 0 (it might be the camera starting inside of a wall, so ignore)
dec c ; we decrease "c", since the camera can only go through a fixed amount of wall
xor a ; clear the flags as if there was no collision
ld a,d
pop de
pop hl
ret
lineOfSightCheck_collision_wall:
or #80 ; set the flags for collision
ld a,d
pop de
pop hl
ret
lineOfSightCheck_collision_no_wall:
ld a,d
pop de
pop hl
ld c,0 ; we mark that we have reached a stated where we are not inside of a wall
ret
quick_lineOfSightCheck_x:
; this code does a line-of-sight-check at coarse map coordinates:
ld a,(last_raycast_camera_x)
rlca
rlca
rlca
rlca
and #0f ; these sequence of 5 instructions, is equivalent to 4 srl a, but faster
ld b,a ; we store coarse "x" coordinates for later
ld a,(last_raycast_camera_y)
and #f0
add a,b
ld l,a
ld h,currentMap/256 ; hl now has the map pointer of ((last_raycast_camera_x),(last_raycast_camera_y))
ld c,(ix+1)
srl c
srl c
srl c
srl c ; now "b" has the coarse start "x", and "c" the coarse target "x"
;; we skip the first tile of the map, since the camera could start inside of a wall
ld a,b
cp c ; if we made it to "x", no collision! return! (z flag is set, so, we are good)
ret z
jp p,quick_lineOfSightCheck_x_decrease
jp quick_lineOfSightCheck_x_increase
quick_lineOfSightCheck_x_loop:
ld a,(hl)
or a
ret nz ; if we find a wall, we stop!
ld a,b
cp c ; if we made it to "x", no collision! return! (z flag is set, so, we are good)
ret z
jp p,quick_lineOfSightCheck_x_decrease
quick_lineOfSightCheck_x_increase:
inc a
ld b,a
inc l
jp quick_lineOfSightCheck_x_loop
quick_lineOfSightCheck_x_decrease:
dec a
ld b,a
dec l
jp quick_lineOfSightCheck_x_loop
quick_lineOfSightCheck_y:
; this code does a line-of-sight-check at coarse map coordinates:
ld a,(last_raycast_camera_x)
rlca
rlca
rlca
rlca
and #0f ; these sequence of 5 instructions, is equivalent to 4 srl a, but faster
ld c,a
ld a,(last_raycast_camera_y)
ld b,a
and #f0
add a,c
ld l,a
ld h,currentMap/256 ; hl now has the map pointer of ((last_raycast_camera_x),(last_raycast_camera_y))
srl b
srl b
srl b
srl b
ld c,(ix+2)
srl c
srl c
srl c
srl c ; now "b" has the coarse start "y", and "c" the coarse target "y"
;; we skip the first tile of the map, since the camera could start inside of a wall
ld a,b
cp c ; if we made it to "y", no collision! return! (z flag is set, so, we are good)
ret z
jp p,quick_lineOfSightCheck_y_decrease
jp quick_lineOfSightCheck_y_increase
quick_lineOfSightCheck_y_loop:
ld a,(hl)
or a
ret nz ; if we find a wall, we stop!
ld a,b
cp c ; if we made it to "y", no collision! return! (z flag is set, so, we are good)
ret z
jp p,quick_lineOfSightCheck_y_decrease
quick_lineOfSightCheck_y_increase:
inc a
ld b,a
ld a,l
add a,16
ld l,a
jp quick_lineOfSightCheck_y_loop
quick_lineOfSightCheck_y_decrease:
dec a
ld b,a
ld a,l
add a,-16
ld l,a
jp quick_lineOfSightCheck_y_loop
|
tests/bonus.asm | meryacine/MIPS-VHDL | 4 | 16618 | <filename>tests/bonus.asm
int1: 0x2000
inv
rti # POP PC and flags restored
main: 0x10
ldm R1, 0x30 # R1=30
ldm R2, 0x50 # R2=50
ldm R3, 0x100 # R3=100
ldm R4, 0x300 # R4=300
Push R4 # sp=FFFFFFFE, M[FFFFFFFF]=300
INT 0 # SP=FFFFFFFC, M[FFFFFFFD]=half next PC,M[FFFFFFFE]=other half next PC
hlt
func6: 0x3000
out R1, 0x30
out R2, 0x50
out R3, 0x100
out R4, 0x300
ret |
Formalization/PredicateLogic/Syntax/Substitution.agda | Lolirofle/stuff-in-agda | 6 | 4178 | <reponame>Lolirofle/stuff-in-agda
open import Formalization.PredicateLogic.Signature
module Formalization.PredicateLogic.Syntax.Substitution (𝔏 : Signature) where
open Signature(𝔏)
open import Data.Boolean
open import Data.ListSized
import Data.ListSized.Functions as List
open import Formalization.PredicateLogic.Syntax(𝔏)
open import Functional using (_∘_ ; _∘₂_ ; id ; apply)
open import Numeral.CoordinateVector as Vector using (Vector)
open import Numeral.Finite
open import Numeral.Natural
open import Syntax.Function
open import Type
private variable args n vars vars₁ vars₂ : ℕ
-- Substitutes the variables of a term by mapping every variable index to a term.
substituteTerm : Vector(vars₁)(Term(vars₂)) → Term(vars₁) → Term(vars₂)
substituteTerm₊ : Vector(vars₁)(Term(vars₂)) → List(Term(vars₁))(args) → List(Term(vars₂))(args)
substituteTerm t (var v) = Vector.proj t v
substituteTerm t (func f x) = func f (substituteTerm₊ t x)
substituteTerm₊ t ∅ = ∅
substituteTerm₊ t (x ⊰ xs) = (substituteTerm t x) ⊰ (substituteTerm₊ t xs)
-- Adds a new untouched variable to a term mapper.
-- Example: termMapper𝐒(0 ↦ t0 ; 1 ↦ t1 ; 2 ↦ t2) = (0 ↦ var 0 ; 1 ↦ t0 ; 2 ↦ t1 ; 3 ↦ t2)
termMapper𝐒 : Vector(vars₁)(Term(vars₂)) → Vector(𝐒(vars₁))(Term(𝐒(vars₂)))
termMapper𝐒 = Vector.prepend(var 𝟎) ∘ Vector.map(substituteTerm(var ∘ 𝐒))
-- Substitutes the variables of a formula by mapping every variable index to a term.
substitute : Vector(vars₁)(Term(vars₂)) → Formula(vars₁) → Formula(vars₂)
substitute t (P $ x) = P $ (substituteTerm₊ t x)
substitute t ⊤ = ⊤
substitute t ⊥ = ⊥
substitute t (φ ∧ ψ) = (substitute t φ) ∧ (substitute t ψ)
substitute t (φ ∨ ψ) = (substitute t φ) ∨ (substitute t ψ)
substitute t (φ ⟶ ψ) = (substitute t φ) ⟶ (substitute t ψ)
substitute t (Ɐ φ) = Ɐ(substitute (termMapper𝐒 t) φ)
substitute t (∃ φ) = ∃(substitute (termMapper𝐒 t) φ)
-- Substitutes the most recent variable of a formula by mapping it to a term.
substitute0 : Term(vars) → Formula(𝐒(vars)) → Formula(vars)
substitute0 = substitute ∘ (t ↦ Vector.prepend t var)
-- Substitutes a single arbitrary variable of a formula by mapping it to a term.
-- Note: (substituteN 𝟎) normalizes to substitute0 because of the definition for Vector.insert.
substituteN : 𝕟₌(vars) → Term(vars) → Formula(𝐒(vars)) → Formula(vars)
substituteN n = substitute ∘ (t ↦ Vector.insert₊ n t var)
open import Data
open import Function.Equals
import Function.Names as Names
import Lvl
open import Relator.Equals
open import Relator.Equals.Proofs
open import Structure.Function
open import Structure.Operator
open import Syntax.Number
private variable ℓ : Lvl.Level
private variable A B : Type{ℓ}
private variable f g : A → B
private variable φ : Formula(vars)
termMapper𝐒-identity : (termMapper𝐒{vars₁ = vars} var ⊜ var)
_⊜_.proof termMapper𝐒-identity {x = 𝟎} = [≡]-intro
_⊜_.proof termMapper𝐒-identity {x = 𝐒 v} = [≡]-intro
module _ {f g : 𝕟(vars₁) → Term(vars₂)} (eq : f ⊜ g) where
termMapper𝐒-equal-functions : (termMapper𝐒 f ⊜ termMapper𝐒 g)
_⊜_.proof termMapper𝐒-equal-functions {𝟎} = [≡]-intro
_⊜_.proof termMapper𝐒-equal-functions {𝐒 v} rewrite _⊜_.proof eq{v} = [≡]-intro
substituteTerm-equal-functions-raw : (substituteTerm f Names.⊜ substituteTerm g)
substituteTerm₊-equal-functions-raw : (substituteTerm₊{args = args} f Names.⊜ substituteTerm₊ g)
(substituteTerm-equal-functions-raw) {var x} = _⊜_.proof eq
(substituteTerm-equal-functions-raw) {func f x}
rewrite substituteTerm₊-equal-functions-raw {x = x}
= [≡]-intro
(substituteTerm₊-equal-functions-raw) {x = ∅} = [≡]-intro
(substituteTerm₊-equal-functions-raw) {x = x ⊰ xs}
rewrite substituteTerm-equal-functions-raw {x}
rewrite substituteTerm₊-equal-functions-raw {x = xs}
= [≡]-intro
substituteTerm-equal-functions : (substituteTerm f ⊜ substituteTerm g)
substituteTerm-equal-functions = intro(\{x} → substituteTerm-equal-functions-raw{x})
substituteTerm₊-equal-functions : (substituteTerm₊{args = args} f ⊜ substituteTerm₊ g)
substituteTerm₊-equal-functions = intro substituteTerm₊-equal-functions-raw
substitute-equal-functions : (f ⊜ g) → (substitute f ⊜ substitute g)
substitute-equal-functions = intro ∘ p where
p : (f ⊜ g) → (substitute f Names.⊜ substitute g)
p eq {P $ x}
rewrite _⊜_.proof (substituteTerm₊-equal-functions eq) {x}
= [≡]-intro
p eq {⊤} = [≡]-intro
p eq {⊥} = [≡]-intro
p eq {φ ∧ ψ}
rewrite p eq {φ}
rewrite p eq {ψ}
= [≡]-intro
p eq {φ ∨ ψ}
rewrite p eq {φ}
rewrite p eq {ψ}
= [≡]-intro
p eq {φ ⟶ ψ}
rewrite p eq {φ}
rewrite p eq {ψ}
= [≡]-intro
p eq {Ɐ φ}
rewrite p (termMapper𝐒-equal-functions eq) {φ}
= [≡]-intro
p eq {∃ φ}
rewrite p (termMapper𝐒-equal-functions eq) {φ}
= [≡]-intro
substituteTerm-identity-raw : (substituteTerm{vars₁ = vars} var Names.⊜ id)
substituteTerm₊-identity-raw : (substituteTerm₊{vars₁ = vars}{args = args} var Names.⊜ id)
substituteTerm-identity-raw {x = var x} = [≡]-intro
substituteTerm-identity-raw {x = func f x} rewrite substituteTerm₊-identity-raw{x = x} = [≡]-intro
substituteTerm₊-identity-raw {x = ∅} = [≡]-intro
substituteTerm₊-identity-raw {x = x ⊰ xs}
rewrite substituteTerm-identity-raw{x = x}
rewrite substituteTerm₊-identity-raw{x = xs}
= [≡]-intro
substituteTerm-identity : (substituteTerm{vars₁ = vars} var ⊜ id)
substituteTerm-identity = intro substituteTerm-identity-raw
substituteTerm₊-identity : (substituteTerm₊{vars₁ = vars}{args = args} var ⊜ id)
substituteTerm₊-identity = intro substituteTerm₊-identity-raw
substitute-identity : (substitute{vars₁ = vars} var ⊜ id)
substitute-identity = intro p where
p : (substitute{vars₁ = vars} var Names.⊜ id)
p {x = P $ x} rewrite _⊜_.proof substituteTerm₊-identity {x} = [≡]-intro
p {x = ⊤} = [≡]-intro
p {x = ⊥} = [≡]-intro
p {x = φ ∧ ψ} rewrite p {x = φ} rewrite p {x = ψ} = [≡]-intro
p {x = φ ∨ ψ} rewrite p {x = φ} rewrite p {x = ψ} = [≡]-intro
p {x = φ ⟶ ψ} rewrite p {x = φ} rewrite p {x = ψ} = [≡]-intro
p {x = Ɐ φ}
rewrite _⊜_.proof (substitute-equal-functions termMapper𝐒-identity) {φ}
rewrite p {x = φ}
= [≡]-intro
p {x = ∃ φ}
rewrite _⊜_.proof (substitute-equal-functions termMapper𝐒-identity) {φ}
rewrite p {x = φ}
= [≡]-intro
{-
test1 : ∀{t : Term(vars)}{n : 𝕟(𝐒(𝐒 vars))} → (termMapper𝐒 (introduceVar t) n ≡ introduceVar (termVar𝐒 t) n)
test1 {t = var 𝟎} {𝟎} = {!introduceVar(termVar𝐒{_}(?)) 0!}
test1 {t = var 𝟎} {𝐒 n} = {!termMapper𝐒(introduceVar(?)) 1!}
test1 {t = var (𝐒 v)}{n} = {!!}
test1 {t = func f x}{n} = {!!}
test : ∀{t}{φ : Formula(𝐒 vars)} → (substitute(introduceVar t) φ ≡ substitute0 t φ)
test {vars} {t} {P $ x} = {!!}
test {vars} {t} {⊤} = [≡]-intro
test {vars} {t} {⊥} = [≡]-intro
test {vars} {t} {φ ∧ ψ} rewrite test {vars}{t}{φ} rewrite test{vars}{t}{ψ} = [≡]-intro
test {vars} {t} {φ ∨ ψ} rewrite test {vars}{t}{φ} rewrite test{vars}{t}{ψ} = [≡]-intro
test {vars} {t} {φ ⟶ ψ} rewrite test {vars}{t}{φ} rewrite test{vars}{t}{ψ} = [≡]-intro
test {vars} {t} {Ɐ φ} = {!test{𝐒 vars}{termVar𝐒 t}{φ}!}
test {vars} {t} {∃ φ} = {!!}
-}
|
Library/Hash/hHeapEC.asm | steakknife/pcgeos | 504 | 84913 | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1994 -- All Rights Reserved
PROJECT: Legos
MODULE: Hash library
FILE: hheapec.asm
AUTHOR: <NAME>, Nov 9, 1994
ROUTINES:
Name Description
---- -----------
GLB ECCheckMiniHeap Perform general sanity checking
GLB ECCheckMHFreeList Do some checks on the free list
GLB ECCheckUsedChunklet Check the offset of a Mini heap entry.
Assert that it is used (only with
ERROR_CHECK_TAG)
GLB ECCheckChunklet Check the offset of a Mini heap entry
REVISION HISTORY:
Name Date Description
---- ---- -----------
dubois 11/ 9/94 Initial revision
DESCRIPTION:
Error checking routines for mini heap module.
$Id: hheapec.asm,v 1.1 97/05/30 06:48:53 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ECCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ECCheckMiniHeap
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Perform general sanity checking
CALLED BY: GLOBAL
PASS: ds:si - mini heap
RETURN: nothing
DESTROYED: nothing
SIDE EFFECTS:
May fatal error
PSEUDO CODE/STRATEGY:
Besides checking free list, checks that
(MHH_size * MHH_entrySize) + size of header == chunk size
REVISION HISTORY:
Name Date Description
---- ---- -----------
dubois 11/ 9/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ECCheckMiniHeap proc far
if ERROR_CHECK
uses ax,cx,dx
.enter
Assert chunkPtr, si, ds
mov ax, ds:[si].MHH_size
mov cx, ds:[si].MHH_entrySize
mul cx
tst dx
ERROR_NZ MINI_HEAP_CORRUPT
ChunkSizePtr ds, si, cx
add ax, size MiniHeapHeader
cmp ax, cx
ERROR_NE MINI_HEAP_CORRUPT
call ECCheckMHFreeList
.leave
endif
ret
ECCheckMiniHeap endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ECCheckMHFreeList
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Do some checks on the free list
CALLED BY: EXTERNAL (not exported cause its not generally useful)
PASS: ds:si - Mini Heap
RETURN: nothing
DESTROYED: nothing
SIDE EFFECTS:
May fatal error
PSEUDO CODE/STRATEGY:
FIXME: just punts on checks if free entries are marked
(should probably walk through entire heap and count free entries)
REVISION HISTORY:
Name Date Description
---- ---- -----------
dubois 11/ 9/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ECCheckMHFreeList proc far
if ERROR_CHECK
uses ax,bx,cx,dx
.enter
cmp ds:[si].MHH_freeHead, MH_FREE_ELEMENT
je done
clr ax ; ax <- # elements on free list...
ChunkSizePtr ds, si, cx
mov dx, ds:[si].MHH_size
; Walk through the free list:
; * check that offset is valid
; * count the number of free entries
; * check that # free entries <= total # entries
mov bx, ds:[si].MHH_freeHead
traverseList:
cmp bx, MH_NULL_ELEMENT
je gotEnd
inc ax
call ECCheckChunklet
cmp ax, dx
ERROR_A MINI_HEAP_ENTRIES_DONT_ADD_UP
if ERROR_CHECK_TAG
add bx, ds:[si].MHH_entrySize
cmp {byte}ds:[si+bx][-1], MHT_FREE
ERROR_NE MINI_HEAP_ENTRY_BAD_TAG
sub bx, ds:[si].MHH_entrySize
endif
mov bx, ds:[si+bx].MHE_next
jmp traverseList
; check that # free + # used = total # entries
gotEnd:
add ax, ds:[si].MHH_count
cmp ax, dx
ERROR_NE MINI_HEAP_ENTRIES_DONT_ADD_UP
done:
.leave
endif
ret
ECCheckMHFreeList endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ECCheckUsedChunklet
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Check the offset of a Mini heap entry. Assert that it is
used (only with ERROR_CHECK_TAG)
CALLED BY: GLOBAL
PASS: ds:si - mini heap
ds:si+bx - alleged (used) mini heap entry
RETURN: nothing
DESTROYED: nothing
SIDE EFFECTS:
May fatal error
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
dubois 11/17/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ECCheckUsedChunklet proc far
if ERROR_CHECK
if ERROR_CHECK_TAG
add bx, ds:[si].MHH_entrySize
cmp {byte}ds:[si+bx][-1], MHT_USED
ERROR_NE MINI_HEAP_ENTRY_BAD_TAG
sub bx, ds:[si].MHH_entrySize
endif
call ECCheckChunklet
endif
ret
ECCheckUsedChunklet endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ECCheckChunklet
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Check the offset of a Mini heap entry
CALLED BY: GLOBAL
PASS: ds:si - mini heap
ds:si+bx - alleged mini heap entry
RETURN: nothing
DESTROYED: nothing
SIDE EFFECTS:
May fatal error
PSEUDO CODE/STRATEGY:
assert that (offset - (size MiniHeapHeader)) % entry size = 0
and also offset < chunk size
assumes that MHH_size can be trusted.
REVISION HISTORY:
Name Date Description
---- ---- -----------
dubois 11/ 9/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ECCheckChunklet proc far
if ERROR_CHECK
Assert chunkPtr, si, ds
push ax, cx, dx
mov ax, bx
sub ax, size MiniHeapHeader
mov cx, ds:[si].MHH_entrySize
clr dx
div cx ; remainder in dx
tst dx
ERROR_NZ MINI_HEAP_BAD_OFFSET
cmp ax, ds:[si].MHH_size
ERROR_NB MINI_HEAP_BAD_OFFSET
pop ax, cx, dx
endif
ret
ECCheckChunklet endp
ECCode ends
|
programs/oeis/191/A191900.asm | karttu/loda | 1 | 242022 | ; A191900: Number of compositions of odd natural numbers into 7 parts <=n
; 0,64,1093,8192,39062,139968,411771,1048576,2391484,5000000,9743585,17915904,31374258,52706752,85429687,134217728,205169336,306110016,446935869,640000000,900544270,1247178944,1702412723,2293235712,3051757812,4015905088
mov $1,$0
add $1,1
pow $1,7
div $1,2
|
core_logic.asm | adi-g15/assembly_stopwatch | 0 | 179764 | global sleep_for
extern update_display
section .data
timeval:
tv_sec dd 0
tv_usec dd 0
; Input -> eax - stores hours
; -> ebx - stores minutes
; -> ecx - stores seconds
section .text
sleep_for:
; NOTE: edx is also modified by mul and div instructions, storing higher half of result of mul, and remainder of div
push ecx ; Push seconds onto stack for now
mov ecx, 3600
mul ecx ; eax *= 3600
; eax has hours * 3600
pop ecx
add ecx, eax
push ecx ; Push again, since i am using that to store the constant
mov eax, ebx
mov ecx, 60
mul ecx ; eax is storing value of ebx here, edx is 60
; eax has minutes * 60
pop ecx
add eax, ecx ; add eax and earlier stored ecx
.waiting_loop:
call update_display
dec eax ; decrement eax
;call sleep_for_1_sec ; seg fault at int 15G
call sleep_for_1_sec_linux
cmp eax, 0
jg .waiting_loop ; if num_seconds > 0, loop again
call update_display ; one last time call update to show 0 sec left
ret
sleep_for_1_sec_linux:
; https://stackoverflow.com/a/19580595/12339402 -> sys_nanosleep : eax = 162, ebx = struct timespec *, ecx = struct timespec *
push eax ; Store eax
mov eax, 162 ; nanosleep system call
mov dword [tv_sec], 1 ; 1 second
mov ebx, timeval
mov ecx, 0 ; nullptr
int 0x80
pop eax ; Restore eax
ret
sleep_for_1_sec:
mov cx, 0FH
mov dx, 4240H
mov ax, 86H
int 15H
ret
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2393.asm | ljhsiun2/medusa | 9 | 25416 | <reponame>ljhsiun2/medusa<filename>Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2393.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1bec6, %rsi
lea addresses_A_ht+0x1e546, %rdi
nop
nop
inc %rbp
mov $17, %rcx
rep movsw
nop
inc %r10
lea addresses_UC_ht+0xb806, %rsi
lea addresses_D_ht+0x4796, %rdi
nop
nop
nop
nop
nop
add %r14, %r14
mov $71, %rcx
rep movsl
sub %rdi, %rdi
lea addresses_UC_ht+0x5fc6, %rsi
nop
nop
nop
xor %rdi, %rdi
movb $0x61, (%rsi)
nop
and %rcx, %rcx
lea addresses_WC_ht+0x3546, %rcx
nop
sub %rbp, %rbp
mov $0x6162636465666768, %r14
movq %r14, %xmm1
vmovups %ymm1, (%rcx)
dec %rcx
lea addresses_D_ht+0xe5c6, %rdi
nop
and $34287, %r10
mov $0x6162636465666768, %r14
movq %r14, %xmm2
and $0xffffffffffffffc0, %rdi
vmovaps %ymm2, (%rdi)
nop
nop
nop
nop
nop
add %rbp, %rbp
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r8
push %rbx
push %rcx
// Faulty Load
lea addresses_A+0x14546, %r10
nop
nop
nop
and $8894, %r8
movb (%r10), %bl
lea oracles, %r13
and $0xff, %rbx
shlq $12, %rbx
mov (%r13,%rbx,1), %rbx
pop %rcx
pop %rbx
pop %r8
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 4, 'size': 1, 'same': False, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 9, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': True, 'congruent': 7, '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
*/
|
src/shaders/h264/ildb/AVC_ILDB_Child_Mbaff_UV.asm | martin-kokos/intel-vaapi-driver | 192 | 104074 | /*
* Copyright © <2010>, Intel Corporation.
*
* 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, sub license, 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 (including the
* next paragraph) 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 NON-INFRINGEMENT.
* IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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.
*
* This file was originally licensed under the following license
*
* 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.
*
*/
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
// AVC Child Kernel (Vertical and horizontal de-block a 4:2:0 MB UV comp)
//
// First de-block vertical edges from left to right.
// Second de-block horizontal edge from top to bottom.
//
// For 4:2:0, chroma is always de-blocked at 8x8.
// NV12 format allows to filter U and V together.
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
#define AVC_ILDB
.kernel AVC_ILDB_CHILD_MBAFF_UV
#if defined(COMBINED_KERNEL)
ILDB_LABEL(AVC_ILDB_CHILD_UV):
#endif
#include "SetupVPKernel.asm"
#include "AVC_ILDB.inc"
#if defined(_DEBUG)
mov (1) EntrySignatureC:w 0xE997:w
#endif
// Setup temp buf used by load and save code
#define BUF_B RTempB
#define BUF_W RTempW
#define BUF_D RTempD
// Init local variables
mul (4) ORIX_CUR<2>:w ORIX<0;1,0>:w 16:w { NoDDClr } // Expand X addr to bytes, repeat 4 times
mul (4) ORIY_CUR<2>:w ORIY<0;1,0>:w 32:w { NoDDChk } // Expand Y addr to bytes, repeat 4 times
mov (2) f0.0<1>:w 0:w
mov (1) GateWayOffsetC:uw ORIY:uw // Use row # as Gateway offset
//=== Null Kernel ===============================================================
// jmpi ILDB_LABEL(POST_ILDB_UV)
//===============================================================================
//====================================================================================
// Assuming the MB control data is laid out in scan line order in a rectangle with width = 16 bytes.
// Control data has dimension of X x Y = 16 x N bytes, where N = W x H / 16
// Each MB has 256 bytes of control data
// For CRESTLINE, 256 bytes are stored in memory and fetched into GRF.
// MB_offset = MBsCntX * CurRow + CurCol
// Byte_offset = MB_offset * (256 << Mbaff_flag), Mbaff_flag = 0 or 1.
// Base address of a control data block = (x, y) = (0, y'=y/x), region width is 16 bytes
// where y' = Byte_offset / 16 = MB_offset * (16 << Mbaff_flag)
// MBCntrlDataOffsetY holds y'.
// For BearLake-C, 64 bytes are stored in memory and dataport expands to 256 bytes. Need to use a special read command on BL-C.
// MB_offset = MBsCntX * CurRow + CurCol
// Byte_offset = MB_offset * (64 << Mbaff_flag), Mbaff_flag = 0 or 1.
// MBCntrlDataOffsetY holds globel byte offset.
#if !defined(DEV_CL)
mul (1) CntrlDataOffsetY:ud MBsCntX:w ORIY:w
add (1) CntrlDataOffsetY:ud CntrlDataOffsetY:ud ORIX:w
mul (1) CntrlDataOffsetY:ud CntrlDataOffsetY:ud 128:uw
#endif
//====================================================================================
add (1) ORIX_LEFT:w ORIX_LEFT:w -4:w
add (1) ORIY_TOP:w ORIY_TOP:w -4:w
//=========== Process Top MB ============
and (1) BitFields:w BitFields:w TopFieldFlag:w // Reset BotFieldFlag
// Build a ramp from 0 to 15
mov (16) RRampW(0)<1> RampConstC<0;8,1>:ub
add (8) RRampW(0,8)<1> RRampW(0,8) 8:w // RRampW = ramp 15-0
ILDB_LABEL(RE_ENTRY_UV): // for bootom field
// Load current MB control data
#if defined(DEV_CL)
#include "Load_ILDB_Cntrl_Data_64DW.asm" // Crestline
#else
#include "Load_ILDB_Cntrl_Data_16DW.asm" // Cantiga and beyond
#endif
// Init addr register for vertical control data
mov (1) ECM_AddrReg<1>:w CNTRL_DATA_BASE:w // Init ECM_AddrReg
// Use free cycles here
// Check loaded control data
and.z.f0.1 (16) null<1>:uw r[ECM_AddrReg, wEdgeCntlMap_IntLeftVert]<16;16,1>:uw 0xFFFF:uw // Skip ILDB?
and.nz.f0.0 (1) null:w r[ECM_AddrReg, ExtBitFlags]:ub DISABLE_ILDB_FLAG:w // Skip ILDB?
// Set DualFieldMode for all data read, write and deblocking
and (1) CTemp1_W:uw r[ECM_AddrReg, BitFlags]:ub FieldModeAboveMbFlag+FieldModeCurrentMbFlag:uw
// Get Vert Edge Pattern (frame vs. field MBs)
and (1) VertEdgePattern:uw r[ECM_AddrReg, BitFlags]:ub FieldModeLeftMbFlag+FieldModeCurrentMbFlag:uw
(f0.1.all16h) jmpi ILDB_LABEL(SKIP_ILDB_UV) // Skip ILDB
(f0.0) jmpi ILDB_LABEL(SKIP_ILDB_UV) // Skip ILDB
// Set DualFieldMode for all data read, write and deblocking
// and (1) CTemp1_W:uw r[ECM_AddrReg, BitFlags]:ub FieldModeAboveMbFlag+FieldModeCurrentMbFlag:uw
cmp.z.f0.0 (1) null:w CTemp1_W:uw ABOVE_FIELD_CUR_FRAME:w
and (1) DualFieldMode:w f0.0:w 0x0001:w
#include "load_Cur_UV_8x8T_Mbaff.asm" // Load transposed data 8x8
#include "load_Left_UV_2x8T_Mbaff.asm" // Load left MB (2x8) UV data from memory if exists
#include "Transpose_Cur_UV_8x8.asm"
#include "Transpose_Left_UV_2x8.asm"
//---------- Perform vertical ILDB filting on UV ----------
#include "AVC_ILDB_Filter_Mbaff_UV_v.asm"
//---------------------------------------------------------
#include "save_Left_UV_8x2T_Mbaff.asm" // Write left MB (2x8) Y data to memory if exists
#include "load_Top_UV_8x2_Mbaff.asm" // Load top MB (8x2) Y data from memory if exists
#include "Transpose_Cur_UV_8x8.asm" // Transpose a MB for horizontal edge de-blocking
//---------- Perform horizontal ILDB filting on UV ----------
#include "AVC_ILDB_Filter_Mbaff_UV_h.asm"
//-----------------------------------------------------------
#include "save_Cur_UV_8x8_Mbaff.asm" // Write 8x8
#include "save_Top_UV_8x2_Mbaff.asm" // Write top MB (8x2) if not the top row
//-----------------------------------------------------------
ILDB_LABEL(SKIP_ILDB_UV):
and.z.f0.0 (1) null:w BitFields:w BotFieldFlag:w
//=========== Process Bottom MB ============
or (1) BitFields:w BitFields:w BotFieldFlag:w // Set BotFieldFlag to 1
(f0.0) jmpi ILDB_LABEL(RE_ENTRY_UV) // Loop back for bottom deblocking
// Fall through to finish
//=========== Check write commit of the last write ============
mov (8) WritebackResponse(0)<1> WritebackResponse(0)
ILDB_LABEL(POST_ILDB_UV):
// Send notification thru Gateway to root thread, update chroma Status[CurRow]
#include "AVC_ILDB_ForwardMsg.asm"
#if !defined(GW_DCN) // For non-ILK chipsets
//child send EOT : Request type = 1
END_CHILD_THREAD
#endif // !defined(DEV_ILK)
// The thread finishs here
//------------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////
// Include other subrutines being called
#include "AVC_ILDB_Chroma_Core_Mbaff.asm"
#if !defined(COMBINED_KERNEL) // For standalone kernel only
.end_code
.end_kernel
#endif
|
oeis/033/A033583.asm | neoneye/loda-programs | 11 | 170182 | <reponame>neoneye/loda-programs
; A033583: a(n) = 10*n^2.
; 0,10,40,90,160,250,360,490,640,810,1000,1210,1440,1690,1960,2250,2560,2890,3240,3610,4000,4410,4840,5290,5760,6250,6760,7290,7840,8410,9000,9610,10240,10890,11560,12250,12960,13690,14440,15210,16000,16810,17640,18490,19360,20250,21160,22090,23040,24010,25000,26010,27040,28090,29160,30250,31360,32490,33640,34810,36000,37210,38440,39690,40960,42250,43560,44890,46240,47610,49000,50410,51840,53290,54760,56250,57760,59290,60840,62410,64000,65610,67240,68890,70560,72250,73960,75690,77440,79210,81000
pow $0,2
mul $0,10
|
oeis/105/A105995.asm | neoneye/loda-programs | 11 | 12803 | ; A105995: Fibonacci sequence (mod 14).
; 0,1,1,2,3,5,8,13,7,6,13,5,4,9,13,8,7,1,8,9,3,12,1,13,0,13,13,12,11,9,6,1,7,8,1,9,10,5,1,6,7,13,6,5,11,2,13,1,0,1,1,2,3,5,8,13,7,6,13,5,4,9,13,8,7,1,8,9,3,12,1,13,0,13,13,12,11,9,6,1,7,8,1,9,10,5,1,6,7,13,6,5,11,2,13,1,0,1,1,2
seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.
mod $0,14
|
test/Succeed/Issue1597/Main.agda | shlevy/agda | 1,989 | 7706 | -- <NAME>, 2015-07-02 Error in copyScope
-- To trigger the bug, it is important that
-- the main module is in a subdirectory of the imported module.
module Issue1597.Main where
open import Issue1597 -- external import is needed
module B where
open A public -- public is needed
module C = B
postulate p : C.M.Nat
-- ERROR WAS: not in scope C.M.Nat
|
Transynther/x86/_processed/P/_zr_/i7-7700_9_0x48_notsx.log_174_423.asm | ljhsiun2/medusa | 9 | 9933 | <filename>Transynther/x86/_processed/P/_zr_/i7-7700_9_0x48_notsx.log_174_423.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xae6d, %rsi
lea addresses_A_ht+0xba6d, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
cmp $38418, %rbx
mov $30, %rcx
rep movsb
nop
nop
nop
cmp $46584, %r9
lea addresses_D_ht+0x12e75, %r9
nop
nop
nop
nop
dec %r13
vmovups (%r9), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $0, %xmm7, %rbx
sub $51394, %rbx
lea addresses_normal_ht+0x1e66d, %rcx
nop
xor $54104, %r14
mov $0x6162636465666768, %rsi
movq %rsi, (%rcx)
nop
and $24925, %rcx
lea addresses_UC_ht+0x1eed, %rcx
nop
nop
nop
nop
nop
cmp $32847, %r13
movw $0x6162, (%rcx)
nop
nop
nop
nop
sub %r9, %r9
lea addresses_UC_ht+0x6ced, %rbx
nop
nop
nop
nop
cmp $26578, %rsi
movb $0x61, (%rbx)
nop
nop
nop
nop
nop
sub $60755, %rbx
lea addresses_D_ht+0x2f67, %r9
xor %rdi, %rdi
and $0xffffffffffffffc0, %r9
vmovntdqa (%r9), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $1, %xmm2, %r13
sub $48797, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r14
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r9
push %rax
push %rbp
push %rcx
push %rsi
// Store
lea addresses_WT+0x1636d, %r12
nop
sub %r9, %r9
mov $0x5152535455565758, %rax
movq %rax, (%r12)
nop
nop
nop
nop
inc %rbp
// Faulty Load
mov $0xb6d, %rcx
nop
nop
add $59743, %r12
mov (%rcx), %ebp
lea oracles, %r12
and $0xff, %rbp
shlq $12, %rbp
mov (%r12,%rbp,1), %rbp
pop %rsi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_P', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WT', 'congruent': 10}, 'OP': 'STOR'}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_P', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'congruent': 8, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_D_ht', 'congruent': 3}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal_ht', 'congruent': 5}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 2, 'type': 'addresses_UC_ht', 'congruent': 7}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 6}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 32, 'type': 'addresses_D_ht', 'congruent': 0}}
{'00': 174}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
oeis/076/A076342.asm | neoneye/loda-programs | 11 | 100456 | ; A076342: a(n) = A076340(A000040(n)), real part of primes mapped as defined in A076340, A076341.
; Submitted by <NAME>(s1)
; 2,4,4,8,12,12,16,20,24,28,32,36,40,44,48,52,60,60,68,72,72,80,84,88,96,100,104,108,108,112,128,132,136,140,148,152,156,164,168,172,180,180,192,192,196,200,212,224,228,228,232,240,240,252,256,264,268,272,276,280,284,292,308,312,312,316,332,336,348,348,352,360,368,372,380,384,388,396,400,408,420,420,432,432,440,444,448,456,460,464,468,480,488,492,500,504,508,520,524,540
mov $2,$0
add $2,1
pow $2,2
lpb $2
sub $2,1
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,2
mov $4,$0
max $4,1
cmp $4,$0
mul $2,$4
lpe
div $1,4
mul $1,2
add $1,29
add $3,5
sub $1,$3
mov $0,$1
sub $0,23
mul $0,2
|
libsrc/_DEVELOPMENT/network/arpa/c/sdcc_iy/htonl.asm | jpoikela/z88dk | 640 | 10739 | <gh_stars>100-1000
; uint32_t htonl(uint32_t)
SECTION code_clib
SECTION code_network
PUBLIC _htonl
EXTERN asm_htonl
_htonl:
pop af
pop hl
pop de
push de
push hl
push af
jp asm_htonl
|
Source/halt.asm | djgaven588/Simple-Operating-System | 0 | 25160 | <filename>Source/halt.asm
halt:
cli
hlt
jmp halt |
oeis/208/A208890.asm | neoneye/loda-programs | 11 | 89659 | <filename>oeis/208/A208890.asm<gh_stars>10-100
; A208890: a(n) = A000984(n)*A004981(n), the term-wise product of the coefficients in (1-4*x)^(-1/2) and (1-8*x)^(-1/4).
; Submitted by <NAME>
; 1,4,60,1200,27300,668304,17153136,455083200,12372574500,342766138000,9638583800560,274341178587840,7887308884400400,228685287180840000,6678543795015960000,196260140322869011200,5798873833602270315300,172160337343624495866000
mov $1,1
mov $3,$0
mov $4,1
lpb $3
mul $1,$4
add $4,1
mul $1,$4
mul $1,4
add $2,$4
div $1,$2
sub $3,1
add $4,3
lpe
mov $0,$1
|
Userland/SampleCodeModule/asm/time.asm | Estebank94/ClicOSNapEdition | 0 | 99779 | <gh_stars>0
GLOBAL time
SECTION .text
; -----------------------------------------------------------------------------
; Returns the interpreted data from the RTC.
; Parameters:
; -rdi: the id of the data requested. (See rtc.h)
; Return:
; The time data requested.
; -----------------------------------------------------------------------------
time:
push rbp
mov rbp,rsp
mov rax, 13
mov rbx, rdi
int 80h
mov rsp,rbp
pop rbp
ret
|
oeis/265/A265319.asm | neoneye/loda-programs | 11 | 7418 | <reponame>neoneye/loda-programs
; A265319: Binary representation of the n-th iteration of the "Rule 102" elementary cellular automaton starting with a single ON (black) cell.
; Submitted by <NAME>
; 1,110,10100,1111000,100010000,11001100000,1010101000000,111111110000000,10000000100000000,1100000011000000000,101000001010000000000,11110000111100000000000,1000100010001000000000000,110011001100110000000000000,10101010101010100000000000000,1111111111111111000000000000000,100000000000000010000000000000000,11000000000000001100000000000000000,1010000000000000101000000000000000000,111100000000000011110000000000000000000,10001000000000001000100000000000000000000
mov $1,$0
seq $0,6943 ; Rows of Sierpiński's triangle (Pascal's triangle mod 2).
lpb $1
mul $0,10
sub $1,1
lpe
|
tools/aflex/src/skeleton_manager.ads | svn2github/matreshka | 24 | 21241 | <reponame>svn2github/matreshka
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- This software was developed by <NAME> of the Arcadia project
-- at the University of California, Irvine.
--
-- Redistribution and use in source and binary forms are permitted
-- provided that the above copyright notice and this paragraph are
-- duplicated in all such forms and that any documentation,
-- advertising materials, and other materials related to such
-- distribution and use acknowledge that the software was developed
-- by the University of California, Irvine. The name of the
-- University may not be used to endorse or promote products derived
-- from this software without specific prior written permission.
-- THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-- IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-- WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-- TITLE skeleton manager
-- AUTHOR: <NAME> (UCI)
-- DESCRIPTION outputs skeleton sections when called by gen.
-- NOTES allows use of internal or external skeleton
-- $Header: /co/ua/self/arcadia/aflex/ada/src/RCS/skeleton_managerS.a,v 1.3 90/01/12 15:20:38 self Exp Locker: self $
package Skeleton_Manager is
procedure Skel_Out;
-- skelout - write out one section of the skeleton file
--
-- DESCRIPTION
-- Either outputs internal skeleton, or from a file with "%%" dividers
-- if a skeleton file is specified by the user.
-- Copies from skelfile to stdout until a line beginning with "%%" or
-- EOF is found.
procedure Set_External_Skeleton;
end Skeleton_Manager;
|
emc_512/lab/PSpice/SCHEMATICS/Schematicpreslusavanje.als | antelk/teaching | 0 | 4631 | * Schematics Aliases *
.ALIASES
V_V1 V1(+=$N_0001 -=0 )
R_R1 R1(1=$N_0001 2=$N_0002 )
R_R3 R3(1=0 2=$N_0003 )
R_R4 R4(1=0 2=$N_0004 )
R_R2 R2(1=0 2=$N_0005 )
X_T1 T1(in1=$N_0002 in2=$N_0003 out1=$N_0005 out2=$N_0004 )
.ENDALIASES
|
src/lv-color.ads | Fabien-Chouteau/ada-lvlg | 3 | 17748 | with LV.Color_Types;
package Lv.Color is
subtype Color_T is LV.Color_Types.Color_T;
subtype Color_Int_T is LV.Color_Types.Color_Int_T;
subtype Opa_T is Uint8_T;
type Color_Hsv_T is record
H : aliased Uint16_T;
S : aliased Uint8_T;
V : aliased Uint8_T;
end record;
pragma Convention (C_Pass_By_Copy, Color_Hsv_T);
function Color_Make
(R8, G8, B8 : Uint8_T)
return Color_T
renames LV.Color_Types.Color_Make
with Inline_Always;
Color_White : constant Color_T := Color_Make (16#FF#, 16#FF#, 16#FF#);
Color_Silver : constant Color_T := Color_Make (16#C0#, 16#C0#, 16#C0#);
Color_Gray : constant Color_T := Color_Make (16#80#, 16#80#, 16#80#);
Color_Black : constant Color_T := Color_Make (16#00#, 16#00#, 16#00#);
Color_Red : constant Color_T := Color_Make (16#FF#, 16#00#, 16#00#);
Color_Maroon : constant Color_T := Color_Make (16#80#, 16#00#, 16#00#);
Color_Yellow : constant Color_T := Color_Make (16#FF#, 16#FF#, 16#00#);
Color_Olive : constant Color_T := Color_Make (16#80#, 16#80#, 16#00#);
Color_Lime : constant Color_T := Color_Make (16#00#, 16#FF#, 16#00#);
Color_Green : constant Color_T := Color_Make (16#00#, 16#80#, 16#00#);
Color_Cyan : constant Color_T := Color_Make (16#00#, 16#FF#, 16#FF#);
Color_Aqua : constant Color_T := Color_Cyan;
Color_Teal : constant Color_T := Color_Make (16#00#, 16#80#, 16#80#);
Color_Blue : constant Color_T := Color_Make (16#00#, 16#00#, 16#FF#);
Color_Navy : constant Color_T := Color_Make (16#00#, 16#00#, 16#80#);
Color_Magenta : constant Color_T := Color_Make (16#FF#, 16#00#, 16#FF#);
Color_Purple : constant Color_T := Color_Make (16#80#, 16#00#, 16#80#);
Color_Orange : constant Color_T := Color_Make (16#FF#, 16#A5#, 16#00#);
Opa_Transp : constant := 0;
Opa_0 : constant := 0;
Opa_10 : constant := 25;
Opa_20 : constant := 51;
Opa_30 : constant := 76;
Opa_40 : constant := 102;
Opa_50 : constant := 127;
Opa_60 : constant := 153;
Opa_70 : constant := 178;
Opa_80 : constant := 204;
Opa_90 : constant := 229;
Opa_100 : constant := 255;
Opa_Cover : constant := 255;
Opa_Min : constant := 16;
Opa_Max : constant := 251;
-- In color conversations:
-- - When converting to bigger color type the LSB weight of 1 LSB is calculated
-- E.g. 16 bit Red has 5 bits
-- 8 bit Red has 2 bits
-- ----------------------
-- 8 bit red LSB = (2^5 - 1) / (2^2 - 1) = 31 / 3 = 10
--
-- - When calculating to smaller color type simply shift out the LSBs
-- E.g. 8 bit Red has 2 bits
-- 16 bit Red has 5 bits
-- ----------------------
-- Shift right with 5 - 3 = 2
function Color_To1 (Color : Color_T) return Uint8_T;
function Color_To8 (Color : Color_T) return Uint8_T;
function Color_To16 (Color : Color_T) return Uint16_T;
function Color_To32 (Color : Color_T) return Uint32_T;
function Color_Mix
(C1 : Color_T;
C2 : Color_T;
Mix : Uint8_T) return Color_T;
-- Get the brightness of a color
-- @param color a color
-- @return the brightness [0..255]
function Color_Brightness (Color : Color_T) return Uint8_T;
-- Convert a HSV color to RGB
-- @param h hue [0..359]
-- @param s saturation [0..100]
-- @param v value [0..100]
-- @return the given RGB color in RGB (with LV_COLOR_DEPTH depth)
function Color_Hsv_To_Rgb
(H : Uint16_T;
S : Uint8_T;
V : Uint8_T) return Color_T;
-- Convert an RGB color to HSV
-- @param r red
-- @param g green
-- @param b blue
-- @return the given RGB color n HSV
function Color_Rgb_To_Hsv
(R : Uint8_T;
G : Uint8_T;
B : Uint8_T) return Color_Hsv_T;
-------------
-- Imports --
-------------
pragma Import (C, Color_To1, "lv_color_to1_inline");
pragma Import (C, Color_To8, "lv_color_to8_inline");
pragma Import (C, Color_To16, "lv_color_to16_inline");
pragma Import (C, Color_To32, "lv_color_to32_inline");
pragma Import (C, Color_Mix, "lv_color_mix_inline");
pragma Import (C, Color_Brightness, "lv_color_brightness_inline");
pragma Import (C, Color_Hsv_To_Rgb, "lv_color_hsv_to_rgb");
pragma Import (C, Color_Rgb_To_Hsv, "lv_color_rgb_to_hsv");
end Lv.Color;
|
Display Settings/Toggle Dark Mode.applescript | rogues-gallery/applescript | 360 | 2437 | tell application "System Events"
tell appearance preferences
if dark mode is false then
set dark mode to true
else
set dark mode to false
end if
end tell
end tell |
Task/Stem-and-leaf-plot/Ada/stem-and-leaf-plot.ada | LaudateCorpus1/RosettaCodeData | 1 | 9289 | <filename>Task/Stem-and-leaf-plot/Ada/stem-and-leaf-plot.ada
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Gnat.Heap_Sort_G;
procedure stemleaf is
data : array(Natural Range <>) of Integer := (
0,12,127,28,42,39,113, 42,18,44,118,44,37,113,124,37,48,127,36,29,31,
125,139,131,115,105,132,104,123,35,113,122,42,117,119,58,109,23,105,
63,27,44,105,99,41,128,121,116,125,32,61,37,127,29,113,121,58,114,126,
53,114,96,25,109,7,31,141,46,13,27,43,117,116,27,7,68,40,31,115,124,42,
128,52,71,118,117,38,27,106,33,117,116,111,40,119,47,105,57,122,109,
124,115,43,120,43,27,27,18,28,48,125,107,114,34,133,45,120, 30,127,
31,116,146); -- Position 0 is used for storage during sorting, initialized as 0
procedure Move (from, to : in Natural) is
begin data(to) := data(from);
end Move;
function Cmp (p1, p2 : Natural) return Boolean is
begin return data(p1)<data(p2);
end Cmp;
package Sorty is new GNAT.Heap_Sort_G(Move,Cmp);
min,max,p,stemw: Integer;
begin
Sorty.Sort(data'Last);
min := data(1);
max := data(data'Last);
stemw := Integer'Image(max)'Length;
p := 1;
for stem in min/10..max/10 loop
put(stem,Width=>stemw); put(" |");
Leaf_Loop:
while data(p)/10=stem loop
put(" "); put(data(p) mod 10,Width=>1);
exit Leaf_loop when p=data'Last;
p := p+1;
end loop Leaf_Loop;
new_line;
end loop;
end stemleaf;
|
programs/oeis/288/A288203.asm | karttu/loda | 0 | 15339 | ; A288203: Fixed point of the mapping 00->0010, 1->010, starting with 00.
; 0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0
mov $7,$0
mov $9,2
lpb $9,1
clr $0,7
mov $0,$7
sub $9,1
add $0,$9
mov $2,$0
lpb $2,1
mov $3,$2
mul $4,2
add $4,2
sub $2,$4
trn $2,1
lpe
add $4,$3
sub $4,1
div $4,4
mov $1,$4
mov $10,$9
lpb $10,1
mov $8,$1
sub $10,1
lpe
lpe
lpb $7,1
mov $7,0
sub $8,$1
lpe
mov $1,$8
|
Project2.a51 | FireMechs/IntroMicroP | 0 | 23583 | ORG 000H // starting address
SJMP LABEL //jumps to the LABEL
ORG 003H // starting address for the ISR(INT0)
ACALL ISR // calls the ISR (interrupt service routine)
RETI // returns from the interrupt
LABEL: MOV A,#10000000B // sets the initial stage of the LEDs (D1 OFF & D2 ON)
MAIN: // main function that sets the interrupt parameters
SETB IP.0 // sets highest priority for the interrupt INT0
SETB TCON.0 // interrupt generated by a falling edge signal at INT0 (pin12)
SETB IE.0 // enables the external interrupt
SETB IE.7 // enables the global interrupt control
SJMP MAIN // jumps back to the MAIN subroutine
ISR: // interrupt service routine
CPL A // complements the current value in accumulator A
MOV P0,A // moves the current accumulator value to port 1
RET // jumps to RETI
END // end |
project/ntstub/amd64/6_0_6002_sp2_ssdt_sysenter.asm | mehrdad-shokri/windows-syscall-table | 372 | 177276 | <filename>project/ntstub/amd64/6_0_6002_sp2_ssdt_sysenter.asm
; DO NOT MODIFY THIS FILE DIRECTLY!
; author: @TinySecEx
; ssdt asm stub for 6.0.6002-sp2-windows-vista amd64
option casemap:none
option prologue:none
option epilogue:none
.code
; ULONG64 __stdcall NtMapUserPhysicalPagesScatter( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtMapUserPhysicalPagesScatter PROC STDCALL
mov r10 , rcx
mov eax , 0
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtMapUserPhysicalPagesScatter ENDP
; ULONG64 __stdcall NtWaitForSingleObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtWaitForSingleObject PROC STDCALL
mov r10 , rcx
mov eax , 1
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtWaitForSingleObject ENDP
; ULONG64 __stdcall NtCallbackReturn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtCallbackReturn PROC STDCALL
mov r10 , rcx
mov eax , 2
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCallbackReturn ENDP
; ULONG64 __stdcall NtReadFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 );
_6_0_6002_sp2_windows_vista_NtReadFile PROC STDCALL
mov r10 , rcx
mov eax , 3
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtReadFile ENDP
; ULONG64 __stdcall NtDeviceIoControlFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 );
_6_0_6002_sp2_windows_vista_NtDeviceIoControlFile PROC STDCALL
mov r10 , rcx
mov eax , 4
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtDeviceIoControlFile ENDP
; ULONG64 __stdcall NtWriteFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 );
_6_0_6002_sp2_windows_vista_NtWriteFile PROC STDCALL
mov r10 , rcx
mov eax , 5
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtWriteFile ENDP
; ULONG64 __stdcall NtRemoveIoCompletion( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtRemoveIoCompletion PROC STDCALL
mov r10 , rcx
mov eax , 6
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRemoveIoCompletion ENDP
; ULONG64 __stdcall NtReleaseSemaphore( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtReleaseSemaphore PROC STDCALL
mov r10 , rcx
mov eax , 7
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtReleaseSemaphore ENDP
; ULONG64 __stdcall NtReplyWaitReceivePort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtReplyWaitReceivePort PROC STDCALL
mov r10 , rcx
mov eax , 8
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtReplyWaitReceivePort ENDP
; ULONG64 __stdcall NtReplyPort( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtReplyPort PROC STDCALL
mov r10 , rcx
mov eax , 9
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtReplyPort ENDP
; ULONG64 __stdcall NtSetInformationThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtSetInformationThread PROC STDCALL
mov r10 , rcx
mov eax , 10
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetInformationThread ENDP
; ULONG64 __stdcall NtSetEvent( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtSetEvent PROC STDCALL
mov r10 , rcx
mov eax , 11
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetEvent ENDP
; ULONG64 __stdcall NtClose( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtClose PROC STDCALL
mov r10 , rcx
mov eax , 12
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtClose ENDP
; ULONG64 __stdcall NtQueryObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryObject PROC STDCALL
mov r10 , rcx
mov eax , 13
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryObject ENDP
; ULONG64 __stdcall NtQueryInformationFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryInformationFile PROC STDCALL
mov r10 , rcx
mov eax , 14
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryInformationFile ENDP
; ULONG64 __stdcall NtOpenKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtOpenKey PROC STDCALL
mov r10 , rcx
mov eax , 15
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenKey ENDP
; ULONG64 __stdcall NtEnumerateValueKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtEnumerateValueKey PROC STDCALL
mov r10 , rcx
mov eax , 16
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtEnumerateValueKey ENDP
; ULONG64 __stdcall NtFindAtom( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtFindAtom PROC STDCALL
mov r10 , rcx
mov eax , 17
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtFindAtom ENDP
; ULONG64 __stdcall NtQueryDefaultLocale( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtQueryDefaultLocale PROC STDCALL
mov r10 , rcx
mov eax , 18
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryDefaultLocale ENDP
; ULONG64 __stdcall NtQueryKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryKey PROC STDCALL
mov r10 , rcx
mov eax , 19
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryKey ENDP
; ULONG64 __stdcall NtQueryValueKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtQueryValueKey PROC STDCALL
mov r10 , rcx
mov eax , 20
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryValueKey ENDP
; ULONG64 __stdcall NtAllocateVirtualMemory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtAllocateVirtualMemory PROC STDCALL
mov r10 , rcx
mov eax , 21
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAllocateVirtualMemory ENDP
; ULONG64 __stdcall NtQueryInformationProcess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryInformationProcess PROC STDCALL
mov r10 , rcx
mov eax , 22
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryInformationProcess ENDP
; ULONG64 __stdcall NtWaitForMultipleObjects32( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtWaitForMultipleObjects32 PROC STDCALL
mov r10 , rcx
mov eax , 23
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtWaitForMultipleObjects32 ENDP
; ULONG64 __stdcall NtWriteFileGather( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 );
_6_0_6002_sp2_windows_vista_NtWriteFileGather PROC STDCALL
mov r10 , rcx
mov eax , 24
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtWriteFileGather ENDP
; ULONG64 __stdcall NtSetInformationProcess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtSetInformationProcess PROC STDCALL
mov r10 , rcx
mov eax , 25
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetInformationProcess ENDP
; ULONG64 __stdcall NtCreateKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 );
_6_0_6002_sp2_windows_vista_NtCreateKey PROC STDCALL
mov r10 , rcx
mov eax , 26
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateKey ENDP
; ULONG64 __stdcall NtFreeVirtualMemory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtFreeVirtualMemory PROC STDCALL
mov r10 , rcx
mov eax , 27
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtFreeVirtualMemory ENDP
; ULONG64 __stdcall NtImpersonateClientOfPort( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtImpersonateClientOfPort PROC STDCALL
mov r10 , rcx
mov eax , 28
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtImpersonateClientOfPort ENDP
; ULONG64 __stdcall NtReleaseMutant( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtReleaseMutant PROC STDCALL
mov r10 , rcx
mov eax , 29
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtReleaseMutant ENDP
; ULONG64 __stdcall NtQueryInformationToken( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryInformationToken PROC STDCALL
mov r10 , rcx
mov eax , 30
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryInformationToken ENDP
; ULONG64 __stdcall NtRequestWaitReplyPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtRequestWaitReplyPort PROC STDCALL
mov r10 , rcx
mov eax , 31
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRequestWaitReplyPort ENDP
; ULONG64 __stdcall NtQueryVirtualMemory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtQueryVirtualMemory PROC STDCALL
mov r10 , rcx
mov eax , 32
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryVirtualMemory ENDP
; ULONG64 __stdcall NtOpenThreadToken( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtOpenThreadToken PROC STDCALL
mov r10 , rcx
mov eax , 33
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenThreadToken ENDP
; ULONG64 __stdcall NtQueryInformationThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryInformationThread PROC STDCALL
mov r10 , rcx
mov eax , 34
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryInformationThread ENDP
; ULONG64 __stdcall NtOpenProcess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtOpenProcess PROC STDCALL
mov r10 , rcx
mov eax , 35
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenProcess ENDP
; ULONG64 __stdcall NtSetInformationFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtSetInformationFile PROC STDCALL
mov r10 , rcx
mov eax , 36
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetInformationFile ENDP
; ULONG64 __stdcall NtMapViewOfSection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 );
_6_0_6002_sp2_windows_vista_NtMapViewOfSection PROC STDCALL
mov r10 , rcx
mov eax , 37
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtMapViewOfSection ENDP
; ULONG64 __stdcall NtAccessCheckAndAuditAlarm( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 );
_6_0_6002_sp2_windows_vista_NtAccessCheckAndAuditAlarm PROC STDCALL
mov r10 , rcx
mov eax , 38
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAccessCheckAndAuditAlarm ENDP
; ULONG64 __stdcall NtUnmapViewOfSection( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtUnmapViewOfSection PROC STDCALL
mov r10 , rcx
mov eax , 39
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtUnmapViewOfSection ENDP
; ULONG64 __stdcall NtReplyWaitReceivePortEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtReplyWaitReceivePortEx PROC STDCALL
mov r10 , rcx
mov eax , 40
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtReplyWaitReceivePortEx ENDP
; ULONG64 __stdcall NtTerminateProcess( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtTerminateProcess PROC STDCALL
mov r10 , rcx
mov eax , 41
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtTerminateProcess ENDP
; ULONG64 __stdcall NtSetEventBoostPriority( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtSetEventBoostPriority PROC STDCALL
mov r10 , rcx
mov eax , 42
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetEventBoostPriority ENDP
; ULONG64 __stdcall NtReadFileScatter( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 );
_6_0_6002_sp2_windows_vista_NtReadFileScatter PROC STDCALL
mov r10 , rcx
mov eax , 43
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtReadFileScatter ENDP
; ULONG64 __stdcall NtOpenThreadTokenEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtOpenThreadTokenEx PROC STDCALL
mov r10 , rcx
mov eax , 44
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenThreadTokenEx ENDP
; ULONG64 __stdcall NtOpenProcessTokenEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtOpenProcessTokenEx PROC STDCALL
mov r10 , rcx
mov eax , 45
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenProcessTokenEx ENDP
; ULONG64 __stdcall NtQueryPerformanceCounter( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtQueryPerformanceCounter PROC STDCALL
mov r10 , rcx
mov eax , 46
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryPerformanceCounter ENDP
; ULONG64 __stdcall NtEnumerateKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtEnumerateKey PROC STDCALL
mov r10 , rcx
mov eax , 47
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtEnumerateKey ENDP
; ULONG64 __stdcall NtOpenFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtOpenFile PROC STDCALL
mov r10 , rcx
mov eax , 48
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenFile ENDP
; ULONG64 __stdcall NtDelayExecution( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtDelayExecution PROC STDCALL
mov r10 , rcx
mov eax , 49
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtDelayExecution ENDP
; ULONG64 __stdcall NtQueryDirectoryFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 );
_6_0_6002_sp2_windows_vista_NtQueryDirectoryFile PROC STDCALL
mov r10 , rcx
mov eax , 50
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryDirectoryFile ENDP
; ULONG64 __stdcall NtQuerySystemInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtQuerySystemInformation PROC STDCALL
mov r10 , rcx
mov eax , 51
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQuerySystemInformation ENDP
; ULONG64 __stdcall NtOpenSection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtOpenSection PROC STDCALL
mov r10 , rcx
mov eax , 52
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenSection ENDP
; ULONG64 __stdcall NtQueryTimer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryTimer PROC STDCALL
mov r10 , rcx
mov eax , 53
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryTimer ENDP
; ULONG64 __stdcall NtFsControlFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 );
_6_0_6002_sp2_windows_vista_NtFsControlFile PROC STDCALL
mov r10 , rcx
mov eax , 54
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtFsControlFile ENDP
; ULONG64 __stdcall NtWriteVirtualMemory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtWriteVirtualMemory PROC STDCALL
mov r10 , rcx
mov eax , 55
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtWriteVirtualMemory ENDP
; ULONG64 __stdcall NtCloseObjectAuditAlarm( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtCloseObjectAuditAlarm PROC STDCALL
mov r10 , rcx
mov eax , 56
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCloseObjectAuditAlarm ENDP
; ULONG64 __stdcall NtDuplicateObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 );
_6_0_6002_sp2_windows_vista_NtDuplicateObject PROC STDCALL
mov r10 , rcx
mov eax , 57
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtDuplicateObject ENDP
; ULONG64 __stdcall NtQueryAttributesFile( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtQueryAttributesFile PROC STDCALL
mov r10 , rcx
mov eax , 58
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryAttributesFile ENDP
; ULONG64 __stdcall NtClearEvent( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtClearEvent PROC STDCALL
mov r10 , rcx
mov eax , 59
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtClearEvent ENDP
; ULONG64 __stdcall NtReadVirtualMemory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtReadVirtualMemory PROC STDCALL
mov r10 , rcx
mov eax , 60
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtReadVirtualMemory ENDP
; ULONG64 __stdcall NtOpenEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtOpenEvent PROC STDCALL
mov r10 , rcx
mov eax , 61
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenEvent ENDP
; ULONG64 __stdcall NtAdjustPrivilegesToken( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtAdjustPrivilegesToken PROC STDCALL
mov r10 , rcx
mov eax , 62
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAdjustPrivilegesToken ENDP
; ULONG64 __stdcall NtDuplicateToken( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtDuplicateToken PROC STDCALL
mov r10 , rcx
mov eax , 63
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtDuplicateToken ENDP
; ULONG64 __stdcall NtContinue( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtContinue PROC STDCALL
mov r10 , rcx
mov eax , 64
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtContinue ENDP
; ULONG64 __stdcall NtQueryDefaultUILanguage( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtQueryDefaultUILanguage PROC STDCALL
mov r10 , rcx
mov eax , 65
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryDefaultUILanguage ENDP
; ULONG64 __stdcall NtQueueApcThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueueApcThread PROC STDCALL
mov r10 , rcx
mov eax , 66
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueueApcThread ENDP
; ULONG64 __stdcall NtYieldExecution( );
_6_0_6002_sp2_windows_vista_NtYieldExecution PROC STDCALL
mov r10 , rcx
mov eax , 67
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtYieldExecution ENDP
; ULONG64 __stdcall NtAddAtom( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtAddAtom PROC STDCALL
mov r10 , rcx
mov eax , 68
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAddAtom ENDP
; ULONG64 __stdcall NtCreateEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtCreateEvent PROC STDCALL
mov r10 , rcx
mov eax , 69
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateEvent ENDP
; ULONG64 __stdcall NtQueryVolumeInformationFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryVolumeInformationFile PROC STDCALL
mov r10 , rcx
mov eax , 70
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryVolumeInformationFile ENDP
; ULONG64 __stdcall NtCreateSection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 );
_6_0_6002_sp2_windows_vista_NtCreateSection PROC STDCALL
mov r10 , rcx
mov eax , 71
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateSection ENDP
; ULONG64 __stdcall NtFlushBuffersFile( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtFlushBuffersFile PROC STDCALL
mov r10 , rcx
mov eax , 72
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtFlushBuffersFile ENDP
; ULONG64 __stdcall NtApphelpCacheControl( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtApphelpCacheControl PROC STDCALL
mov r10 , rcx
mov eax , 73
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtApphelpCacheControl ENDP
; ULONG64 __stdcall NtCreateProcessEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 );
_6_0_6002_sp2_windows_vista_NtCreateProcessEx PROC STDCALL
mov r10 , rcx
mov eax , 74
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateProcessEx ENDP
; ULONG64 __stdcall NtCreateThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 );
_6_0_6002_sp2_windows_vista_NtCreateThread PROC STDCALL
mov r10 , rcx
mov eax , 75
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateThread ENDP
; ULONG64 __stdcall NtIsProcessInJob( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtIsProcessInJob PROC STDCALL
mov r10 , rcx
mov eax , 76
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtIsProcessInJob ENDP
; ULONG64 __stdcall NtProtectVirtualMemory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtProtectVirtualMemory PROC STDCALL
mov r10 , rcx
mov eax , 77
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtProtectVirtualMemory ENDP
; ULONG64 __stdcall NtQuerySection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQuerySection PROC STDCALL
mov r10 , rcx
mov eax , 78
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQuerySection ENDP
; ULONG64 __stdcall NtResumeThread( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtResumeThread PROC STDCALL
mov r10 , rcx
mov eax , 79
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtResumeThread ENDP
; ULONG64 __stdcall NtTerminateThread( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtTerminateThread PROC STDCALL
mov r10 , rcx
mov eax , 80
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtTerminateThread ENDP
; ULONG64 __stdcall NtReadRequestData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtReadRequestData PROC STDCALL
mov r10 , rcx
mov eax , 81
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtReadRequestData ENDP
; ULONG64 __stdcall NtCreateFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 );
_6_0_6002_sp2_windows_vista_NtCreateFile PROC STDCALL
mov r10 , rcx
mov eax , 82
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateFile ENDP
; ULONG64 __stdcall NtQueryEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryEvent PROC STDCALL
mov r10 , rcx
mov eax , 83
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryEvent ENDP
; ULONG64 __stdcall NtWriteRequestData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtWriteRequestData PROC STDCALL
mov r10 , rcx
mov eax , 84
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtWriteRequestData ENDP
; ULONG64 __stdcall NtOpenDirectoryObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtOpenDirectoryObject PROC STDCALL
mov r10 , rcx
mov eax , 85
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenDirectoryObject ENDP
; ULONG64 __stdcall NtAccessCheckByTypeAndAuditAlarm( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 , ULONG64 arg_14 , ULONG64 arg_15 , ULONG64 arg_16 );
_6_0_6002_sp2_windows_vista_NtAccessCheckByTypeAndAuditAlarm PROC STDCALL
mov r10 , rcx
mov eax , 86
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAccessCheckByTypeAndAuditAlarm ENDP
; ULONG64 __stdcall NtQuerySystemTime( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtQuerySystemTime PROC STDCALL
mov r10 , rcx
mov eax , 87
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQuerySystemTime ENDP
; ULONG64 __stdcall NtWaitForMultipleObjects( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtWaitForMultipleObjects PROC STDCALL
mov r10 , rcx
mov eax , 88
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtWaitForMultipleObjects ENDP
; ULONG64 __stdcall NtSetInformationObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtSetInformationObject PROC STDCALL
mov r10 , rcx
mov eax , 89
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetInformationObject ENDP
; ULONG64 __stdcall NtCancelIoFile( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtCancelIoFile PROC STDCALL
mov r10 , rcx
mov eax , 90
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCancelIoFile ENDP
; ULONG64 __stdcall NtTraceEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtTraceEvent PROC STDCALL
mov r10 , rcx
mov eax , 91
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtTraceEvent ENDP
; ULONG64 __stdcall NtPowerInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtPowerInformation PROC STDCALL
mov r10 , rcx
mov eax , 92
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtPowerInformation ENDP
; ULONG64 __stdcall NtSetValueKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtSetValueKey PROC STDCALL
mov r10 , rcx
mov eax , 93
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetValueKey ENDP
; ULONG64 __stdcall NtCancelTimer( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtCancelTimer PROC STDCALL
mov r10 , rcx
mov eax , 94
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCancelTimer ENDP
; ULONG64 __stdcall NtSetTimer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 );
_6_0_6002_sp2_windows_vista_NtSetTimer PROC STDCALL
mov r10 , rcx
mov eax , 95
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetTimer ENDP
; ULONG64 __stdcall NtAcceptConnectPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtAcceptConnectPort PROC STDCALL
mov r10 , rcx
mov eax , 96
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAcceptConnectPort ENDP
; ULONG64 __stdcall NtAccessCheck( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 );
_6_0_6002_sp2_windows_vista_NtAccessCheck PROC STDCALL
mov r10 , rcx
mov eax , 97
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAccessCheck ENDP
; ULONG64 __stdcall NtAccessCheckByType( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 );
_6_0_6002_sp2_windows_vista_NtAccessCheckByType PROC STDCALL
mov r10 , rcx
mov eax , 98
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAccessCheckByType ENDP
; ULONG64 __stdcall NtAccessCheckByTypeResultList( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 );
_6_0_6002_sp2_windows_vista_NtAccessCheckByTypeResultList PROC STDCALL
mov r10 , rcx
mov eax , 99
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAccessCheckByTypeResultList ENDP
; ULONG64 __stdcall NtAccessCheckByTypeResultListAndAuditAlarm( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 , ULONG64 arg_14 , ULONG64 arg_15 , ULONG64 arg_16 );
_6_0_6002_sp2_windows_vista_NtAccessCheckByTypeResultListAndAuditAlarm PROC STDCALL
mov r10 , rcx
mov eax , 100
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAccessCheckByTypeResultListAndAuditAlarm ENDP
; ULONG64 __stdcall NtAccessCheckByTypeResultListAndAuditAlarmByHandle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 , ULONG64 arg_14 , ULONG64 arg_15 , ULONG64 arg_16 , ULONG64 arg_17 );
_6_0_6002_sp2_windows_vista_NtAccessCheckByTypeResultListAndAuditAlarmByHandle PROC STDCALL
mov r10 , rcx
mov eax , 101
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAccessCheckByTypeResultListAndAuditAlarmByHandle ENDP
; ULONG64 __stdcall NtAcquireCMFViewOwnership( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtAcquireCMFViewOwnership PROC STDCALL
mov r10 , rcx
mov eax , 102
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAcquireCMFViewOwnership ENDP
; ULONG64 __stdcall NtAddBootEntry( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtAddBootEntry PROC STDCALL
mov r10 , rcx
mov eax , 103
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAddBootEntry ENDP
; ULONG64 __stdcall NtAddDriverEntry( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtAddDriverEntry PROC STDCALL
mov r10 , rcx
mov eax , 104
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAddDriverEntry ENDP
; ULONG64 __stdcall NtAdjustGroupsToken( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtAdjustGroupsToken PROC STDCALL
mov r10 , rcx
mov eax , 105
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAdjustGroupsToken ENDP
; ULONG64 __stdcall NtAlertResumeThread( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtAlertResumeThread PROC STDCALL
mov r10 , rcx
mov eax , 106
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlertResumeThread ENDP
; ULONG64 __stdcall NtAlertThread( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtAlertThread PROC STDCALL
mov r10 , rcx
mov eax , 107
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlertThread ENDP
; ULONG64 __stdcall NtAllocateLocallyUniqueId( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtAllocateLocallyUniqueId PROC STDCALL
mov r10 , rcx
mov eax , 108
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAllocateLocallyUniqueId ENDP
; ULONG64 __stdcall NtAllocateUserPhysicalPages( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtAllocateUserPhysicalPages PROC STDCALL
mov r10 , rcx
mov eax , 109
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAllocateUserPhysicalPages ENDP
; ULONG64 __stdcall NtAllocateUuids( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtAllocateUuids PROC STDCALL
mov r10 , rcx
mov eax , 110
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAllocateUuids ENDP
; ULONG64 __stdcall NtAlpcAcceptConnectPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 );
_6_0_6002_sp2_windows_vista_NtAlpcAcceptConnectPort PROC STDCALL
mov r10 , rcx
mov eax , 111
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcAcceptConnectPort ENDP
; ULONG64 __stdcall NtAlpcCancelMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtAlpcCancelMessage PROC STDCALL
mov r10 , rcx
mov eax , 112
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcCancelMessage ENDP
; ULONG64 __stdcall NtAlpcConnectPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 );
_6_0_6002_sp2_windows_vista_NtAlpcConnectPort PROC STDCALL
mov r10 , rcx
mov eax , 113
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcConnectPort ENDP
; ULONG64 __stdcall NtAlpcCreatePort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtAlpcCreatePort PROC STDCALL
mov r10 , rcx
mov eax , 114
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcCreatePort ENDP
; ULONG64 __stdcall NtAlpcCreatePortSection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtAlpcCreatePortSection PROC STDCALL
mov r10 , rcx
mov eax , 115
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcCreatePortSection ENDP
; ULONG64 __stdcall NtAlpcCreateResourceReserve( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtAlpcCreateResourceReserve PROC STDCALL
mov r10 , rcx
mov eax , 116
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcCreateResourceReserve ENDP
; ULONG64 __stdcall NtAlpcCreateSectionView( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtAlpcCreateSectionView PROC STDCALL
mov r10 , rcx
mov eax , 117
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcCreateSectionView ENDP
; ULONG64 __stdcall NtAlpcCreateSecurityContext( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtAlpcCreateSecurityContext PROC STDCALL
mov r10 , rcx
mov eax , 118
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcCreateSecurityContext ENDP
; ULONG64 __stdcall NtAlpcDeletePortSection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtAlpcDeletePortSection PROC STDCALL
mov r10 , rcx
mov eax , 119
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcDeletePortSection ENDP
; ULONG64 __stdcall NtAlpcDeleteResourceReserve( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtAlpcDeleteResourceReserve PROC STDCALL
mov r10 , rcx
mov eax , 120
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcDeleteResourceReserve ENDP
; ULONG64 __stdcall NtAlpcDeleteSectionView( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtAlpcDeleteSectionView PROC STDCALL
mov r10 , rcx
mov eax , 121
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcDeleteSectionView ENDP
; ULONG64 __stdcall NtAlpcDeleteSecurityContext( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtAlpcDeleteSecurityContext PROC STDCALL
mov r10 , rcx
mov eax , 122
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcDeleteSecurityContext ENDP
; ULONG64 __stdcall NtAlpcDisconnectPort( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtAlpcDisconnectPort PROC STDCALL
mov r10 , rcx
mov eax , 123
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcDisconnectPort ENDP
; ULONG64 __stdcall NtAlpcImpersonateClientOfPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtAlpcImpersonateClientOfPort PROC STDCALL
mov r10 , rcx
mov eax , 124
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcImpersonateClientOfPort ENDP
; ULONG64 __stdcall NtAlpcOpenSenderProcess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtAlpcOpenSenderProcess PROC STDCALL
mov r10 , rcx
mov eax , 125
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcOpenSenderProcess ENDP
; ULONG64 __stdcall NtAlpcOpenSenderThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtAlpcOpenSenderThread PROC STDCALL
mov r10 , rcx
mov eax , 126
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcOpenSenderThread ENDP
; ULONG64 __stdcall NtAlpcQueryInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtAlpcQueryInformation PROC STDCALL
mov r10 , rcx
mov eax , 127
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcQueryInformation ENDP
; ULONG64 __stdcall NtAlpcQueryInformationMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtAlpcQueryInformationMessage PROC STDCALL
mov r10 , rcx
mov eax , 128
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcQueryInformationMessage ENDP
; ULONG64 __stdcall NtAlpcRevokeSecurityContext( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtAlpcRevokeSecurityContext PROC STDCALL
mov r10 , rcx
mov eax , 129
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcRevokeSecurityContext ENDP
; ULONG64 __stdcall NtAlpcSendWaitReceivePort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 );
_6_0_6002_sp2_windows_vista_NtAlpcSendWaitReceivePort PROC STDCALL
mov r10 , rcx
mov eax , 130
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcSendWaitReceivePort ENDP
; ULONG64 __stdcall NtAlpcSetInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtAlpcSetInformation PROC STDCALL
mov r10 , rcx
mov eax , 131
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAlpcSetInformation ENDP
; ULONG64 __stdcall NtAreMappedFilesTheSame( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtAreMappedFilesTheSame PROC STDCALL
mov r10 , rcx
mov eax , 132
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAreMappedFilesTheSame ENDP
; ULONG64 __stdcall NtAssignProcessToJobObject( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtAssignProcessToJobObject PROC STDCALL
mov r10 , rcx
mov eax , 133
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtAssignProcessToJobObject ENDP
; ULONG64 __stdcall NtCancelDeviceWakeupRequest( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtCancelDeviceWakeupRequest PROC STDCALL
mov r10 , rcx
mov eax , 134
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCancelDeviceWakeupRequest ENDP
; ULONG64 __stdcall NtCancelIoFileEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtCancelIoFileEx PROC STDCALL
mov r10 , rcx
mov eax , 135
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCancelIoFileEx ENDP
; ULONG64 __stdcall NtCancelSynchronousIoFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtCancelSynchronousIoFile PROC STDCALL
mov r10 , rcx
mov eax , 136
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCancelSynchronousIoFile ENDP
; ULONG64 __stdcall NtCommitComplete( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtCommitComplete PROC STDCALL
mov r10 , rcx
mov eax , 137
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCommitComplete ENDP
; ULONG64 __stdcall NtCommitEnlistment( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtCommitEnlistment PROC STDCALL
mov r10 , rcx
mov eax , 138
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCommitEnlistment ENDP
; ULONG64 __stdcall NtCommitTransaction( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtCommitTransaction PROC STDCALL
mov r10 , rcx
mov eax , 139
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCommitTransaction ENDP
; ULONG64 __stdcall NtCompactKeys( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtCompactKeys PROC STDCALL
mov r10 , rcx
mov eax , 140
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCompactKeys ENDP
; ULONG64 __stdcall NtCompareTokens( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtCompareTokens PROC STDCALL
mov r10 , rcx
mov eax , 141
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCompareTokens ENDP
; ULONG64 __stdcall NtCompleteConnectPort( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtCompleteConnectPort PROC STDCALL
mov r10 , rcx
mov eax , 142
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCompleteConnectPort ENDP
; ULONG64 __stdcall NtCompressKey( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtCompressKey PROC STDCALL
mov r10 , rcx
mov eax , 143
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCompressKey ENDP
; ULONG64 __stdcall NtConnectPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 );
_6_0_6002_sp2_windows_vista_NtConnectPort PROC STDCALL
mov r10 , rcx
mov eax , 144
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtConnectPort ENDP
; ULONG64 __stdcall NtCreateDebugObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtCreateDebugObject PROC STDCALL
mov r10 , rcx
mov eax , 145
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateDebugObject ENDP
; ULONG64 __stdcall NtCreateDirectoryObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtCreateDirectoryObject PROC STDCALL
mov r10 , rcx
mov eax , 146
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateDirectoryObject ENDP
; ULONG64 __stdcall NtCreateEnlistment( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 );
_6_0_6002_sp2_windows_vista_NtCreateEnlistment PROC STDCALL
mov r10 , rcx
mov eax , 147
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateEnlistment ENDP
; ULONG64 __stdcall NtCreateEventPair( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtCreateEventPair PROC STDCALL
mov r10 , rcx
mov eax , 148
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateEventPair ENDP
; ULONG64 __stdcall NtCreateIoCompletion( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtCreateIoCompletion PROC STDCALL
mov r10 , rcx
mov eax , 149
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateIoCompletion ENDP
; ULONG64 __stdcall NtCreateJobObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtCreateJobObject PROC STDCALL
mov r10 , rcx
mov eax , 150
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateJobObject ENDP
; ULONG64 __stdcall NtCreateJobSet( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtCreateJobSet PROC STDCALL
mov r10 , rcx
mov eax , 151
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateJobSet ENDP
; ULONG64 __stdcall NtCreateKeyTransacted( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 );
_6_0_6002_sp2_windows_vista_NtCreateKeyTransacted PROC STDCALL
mov r10 , rcx
mov eax , 152
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateKeyTransacted ENDP
; ULONG64 __stdcall NtCreateKeyedEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtCreateKeyedEvent PROC STDCALL
mov r10 , rcx
mov eax , 153
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateKeyedEvent ENDP
; ULONG64 __stdcall NtCreateMailslotFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 );
_6_0_6002_sp2_windows_vista_NtCreateMailslotFile PROC STDCALL
mov r10 , rcx
mov eax , 154
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateMailslotFile ENDP
; ULONG64 __stdcall NtCreateMutant( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtCreateMutant PROC STDCALL
mov r10 , rcx
mov eax , 155
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateMutant ENDP
; ULONG64 __stdcall NtCreateNamedPipeFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 , ULONG64 arg_14 );
_6_0_6002_sp2_windows_vista_NtCreateNamedPipeFile PROC STDCALL
mov r10 , rcx
mov eax , 156
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateNamedPipeFile ENDP
; ULONG64 __stdcall NtCreatePagingFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtCreatePagingFile PROC STDCALL
mov r10 , rcx
mov eax , 157
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreatePagingFile ENDP
; ULONG64 __stdcall NtCreatePort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtCreatePort PROC STDCALL
mov r10 , rcx
mov eax , 158
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreatePort ENDP
; ULONG64 __stdcall NtCreatePrivateNamespace( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtCreatePrivateNamespace PROC STDCALL
mov r10 , rcx
mov eax , 159
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreatePrivateNamespace ENDP
; ULONG64 __stdcall NtCreateProcess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 );
_6_0_6002_sp2_windows_vista_NtCreateProcess PROC STDCALL
mov r10 , rcx
mov eax , 160
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateProcess ENDP
; ULONG64 __stdcall NtCreateProfile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 );
_6_0_6002_sp2_windows_vista_NtCreateProfile PROC STDCALL
mov r10 , rcx
mov eax , 161
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateProfile ENDP
; ULONG64 __stdcall NtCreateResourceManager( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 );
_6_0_6002_sp2_windows_vista_NtCreateResourceManager PROC STDCALL
mov r10 , rcx
mov eax , 162
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateResourceManager ENDP
; ULONG64 __stdcall NtCreateSemaphore( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtCreateSemaphore PROC STDCALL
mov r10 , rcx
mov eax , 163
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateSemaphore ENDP
; ULONG64 __stdcall NtCreateSymbolicLinkObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtCreateSymbolicLinkObject PROC STDCALL
mov r10 , rcx
mov eax , 164
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateSymbolicLinkObject ENDP
; ULONG64 __stdcall NtCreateThreadEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 );
_6_0_6002_sp2_windows_vista_NtCreateThreadEx PROC STDCALL
mov r10 , rcx
mov eax , 165
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateThreadEx ENDP
; ULONG64 __stdcall NtCreateTimer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtCreateTimer PROC STDCALL
mov r10 , rcx
mov eax , 166
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateTimer ENDP
; ULONG64 __stdcall NtCreateToken( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 );
_6_0_6002_sp2_windows_vista_NtCreateToken PROC STDCALL
mov r10 , rcx
mov eax , 167
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateToken ENDP
; ULONG64 __stdcall NtCreateTransaction( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 );
_6_0_6002_sp2_windows_vista_NtCreateTransaction PROC STDCALL
mov r10 , rcx
mov eax , 168
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateTransaction ENDP
; ULONG64 __stdcall NtCreateTransactionManager( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtCreateTransactionManager PROC STDCALL
mov r10 , rcx
mov eax , 169
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateTransactionManager ENDP
; ULONG64 __stdcall NtCreateUserProcess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 );
_6_0_6002_sp2_windows_vista_NtCreateUserProcess PROC STDCALL
mov r10 , rcx
mov eax , 170
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateUserProcess ENDP
; ULONG64 __stdcall NtCreateWaitablePort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtCreateWaitablePort PROC STDCALL
mov r10 , rcx
mov eax , 171
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateWaitablePort ENDP
; ULONG64 __stdcall NtCreateWorkerFactory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 );
_6_0_6002_sp2_windows_vista_NtCreateWorkerFactory PROC STDCALL
mov r10 , rcx
mov eax , 172
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtCreateWorkerFactory ENDP
; ULONG64 __stdcall NtDebugActiveProcess( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtDebugActiveProcess PROC STDCALL
mov r10 , rcx
mov eax , 173
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtDebugActiveProcess ENDP
; ULONG64 __stdcall NtDebugContinue( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtDebugContinue PROC STDCALL
mov r10 , rcx
mov eax , 174
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtDebugContinue ENDP
; ULONG64 __stdcall NtDeleteAtom( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtDeleteAtom PROC STDCALL
mov r10 , rcx
mov eax , 175
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtDeleteAtom ENDP
; ULONG64 __stdcall NtDeleteBootEntry( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtDeleteBootEntry PROC STDCALL
mov r10 , rcx
mov eax , 176
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtDeleteBootEntry ENDP
; ULONG64 __stdcall NtDeleteDriverEntry( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtDeleteDriverEntry PROC STDCALL
mov r10 , rcx
mov eax , 177
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtDeleteDriverEntry ENDP
; ULONG64 __stdcall NtDeleteFile( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtDeleteFile PROC STDCALL
mov r10 , rcx
mov eax , 178
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtDeleteFile ENDP
; ULONG64 __stdcall NtDeleteKey( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtDeleteKey PROC STDCALL
mov r10 , rcx
mov eax , 179
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtDeleteKey ENDP
; ULONG64 __stdcall NtDeleteObjectAuditAlarm( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtDeleteObjectAuditAlarm PROC STDCALL
mov r10 , rcx
mov eax , 180
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtDeleteObjectAuditAlarm ENDP
; ULONG64 __stdcall NtDeletePrivateNamespace( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtDeletePrivateNamespace PROC STDCALL
mov r10 , rcx
mov eax , 181
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtDeletePrivateNamespace ENDP
; ULONG64 __stdcall NtDeleteValueKey( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtDeleteValueKey PROC STDCALL
mov r10 , rcx
mov eax , 182
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtDeleteValueKey ENDP
; ULONG64 __stdcall NtDisplayString( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtDisplayString PROC STDCALL
mov r10 , rcx
mov eax , 183
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtDisplayString ENDP
; ULONG64 __stdcall NtEnumerateBootEntries( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtEnumerateBootEntries PROC STDCALL
mov r10 , rcx
mov eax , 184
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtEnumerateBootEntries ENDP
; ULONG64 __stdcall NtEnumerateDriverEntries( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtEnumerateDriverEntries PROC STDCALL
mov r10 , rcx
mov eax , 185
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtEnumerateDriverEntries ENDP
; ULONG64 __stdcall NtEnumerateSystemEnvironmentValuesEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtEnumerateSystemEnvironmentValuesEx PROC STDCALL
mov r10 , rcx
mov eax , 186
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtEnumerateSystemEnvironmentValuesEx ENDP
; ULONG64 __stdcall NtEnumerateTransactionObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtEnumerateTransactionObject PROC STDCALL
mov r10 , rcx
mov eax , 187
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtEnumerateTransactionObject ENDP
; ULONG64 __stdcall NtExtendSection( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtExtendSection PROC STDCALL
mov r10 , rcx
mov eax , 188
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtExtendSection ENDP
; ULONG64 __stdcall NtFilterToken( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtFilterToken PROC STDCALL
mov r10 , rcx
mov eax , 189
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtFilterToken ENDP
; ULONG64 __stdcall NtFlushInstallUILanguage( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtFlushInstallUILanguage PROC STDCALL
mov r10 , rcx
mov eax , 190
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtFlushInstallUILanguage ENDP
; ULONG64 __stdcall NtFlushInstructionCache( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtFlushInstructionCache PROC STDCALL
mov r10 , rcx
mov eax , 191
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtFlushInstructionCache ENDP
; ULONG64 __stdcall NtFlushKey( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtFlushKey PROC STDCALL
mov r10 , rcx
mov eax , 192
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtFlushKey ENDP
; ULONG64 __stdcall NtFlushProcessWriteBuffers( );
_6_0_6002_sp2_windows_vista_NtFlushProcessWriteBuffers PROC STDCALL
mov r10 , rcx
mov eax , 193
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtFlushProcessWriteBuffers ENDP
; ULONG64 __stdcall NtFlushVirtualMemory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtFlushVirtualMemory PROC STDCALL
mov r10 , rcx
mov eax , 194
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtFlushVirtualMemory ENDP
; ULONG64 __stdcall NtFlushWriteBuffer( );
_6_0_6002_sp2_windows_vista_NtFlushWriteBuffer PROC STDCALL
mov r10 , rcx
mov eax , 195
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtFlushWriteBuffer ENDP
; ULONG64 __stdcall NtFreeUserPhysicalPages( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtFreeUserPhysicalPages PROC STDCALL
mov r10 , rcx
mov eax , 196
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtFreeUserPhysicalPages ENDP
; ULONG64 __stdcall NtFreezeRegistry( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtFreezeRegistry PROC STDCALL
mov r10 , rcx
mov eax , 197
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtFreezeRegistry ENDP
; ULONG64 __stdcall NtFreezeTransactions( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtFreezeTransactions PROC STDCALL
mov r10 , rcx
mov eax , 198
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtFreezeTransactions ENDP
; ULONG64 __stdcall NtGetContextThread( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtGetContextThread PROC STDCALL
mov r10 , rcx
mov eax , 199
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtGetContextThread ENDP
; ULONG64 __stdcall NtGetCurrentProcessorNumber( );
_6_0_6002_sp2_windows_vista_NtGetCurrentProcessorNumber PROC STDCALL
mov r10 , rcx
mov eax , 200
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtGetCurrentProcessorNumber ENDP
; ULONG64 __stdcall NtGetDevicePowerState( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtGetDevicePowerState PROC STDCALL
mov r10 , rcx
mov eax , 201
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtGetDevicePowerState ENDP
; ULONG64 __stdcall NtGetMUIRegistryInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtGetMUIRegistryInfo PROC STDCALL
mov r10 , rcx
mov eax , 202
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtGetMUIRegistryInfo ENDP
; ULONG64 __stdcall NtGetNextProcess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtGetNextProcess PROC STDCALL
mov r10 , rcx
mov eax , 203
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtGetNextProcess ENDP
; ULONG64 __stdcall NtGetNextThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtGetNextThread PROC STDCALL
mov r10 , rcx
mov eax , 204
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtGetNextThread ENDP
; ULONG64 __stdcall NtGetNlsSectionPtr( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtGetNlsSectionPtr PROC STDCALL
mov r10 , rcx
mov eax , 205
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtGetNlsSectionPtr ENDP
; ULONG64 __stdcall NtGetNotificationResourceManager( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 );
_6_0_6002_sp2_windows_vista_NtGetNotificationResourceManager PROC STDCALL
mov r10 , rcx
mov eax , 206
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtGetNotificationResourceManager ENDP
; ULONG64 __stdcall NtGetPlugPlayEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtGetPlugPlayEvent PROC STDCALL
mov r10 , rcx
mov eax , 207
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtGetPlugPlayEvent ENDP
; ULONG64 __stdcall NtGetWriteWatch( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 );
_6_0_6002_sp2_windows_vista_NtGetWriteWatch PROC STDCALL
mov r10 , rcx
mov eax , 208
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtGetWriteWatch ENDP
; ULONG64 __stdcall NtImpersonateAnonymousToken( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtImpersonateAnonymousToken PROC STDCALL
mov r10 , rcx
mov eax , 209
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtImpersonateAnonymousToken ENDP
; ULONG64 __stdcall NtImpersonateThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtImpersonateThread PROC STDCALL
mov r10 , rcx
mov eax , 210
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtImpersonateThread ENDP
; ULONG64 __stdcall NtInitializeNlsFiles( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtInitializeNlsFiles PROC STDCALL
mov r10 , rcx
mov eax , 211
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtInitializeNlsFiles ENDP
; ULONG64 __stdcall NtInitializeRegistry( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtInitializeRegistry PROC STDCALL
mov r10 , rcx
mov eax , 212
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtInitializeRegistry ENDP
; ULONG64 __stdcall NtInitiatePowerAction( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtInitiatePowerAction PROC STDCALL
mov r10 , rcx
mov eax , 213
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtInitiatePowerAction ENDP
; ULONG64 __stdcall NtIsSystemResumeAutomatic( );
_6_0_6002_sp2_windows_vista_NtIsSystemResumeAutomatic PROC STDCALL
mov r10 , rcx
mov eax , 214
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtIsSystemResumeAutomatic ENDP
; ULONG64 __stdcall NtIsUILanguageComitted( );
_6_0_6002_sp2_windows_vista_NtIsUILanguageComitted PROC STDCALL
mov r10 , rcx
mov eax , 215
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtIsUILanguageComitted ENDP
; ULONG64 __stdcall NtListenPort( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtListenPort PROC STDCALL
mov r10 , rcx
mov eax , 216
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtListenPort ENDP
; ULONG64 __stdcall NtLoadDriver( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtLoadDriver PROC STDCALL
mov r10 , rcx
mov eax , 217
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtLoadDriver ENDP
; ULONG64 __stdcall NtLoadKey( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtLoadKey PROC STDCALL
mov r10 , rcx
mov eax , 218
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtLoadKey ENDP
; ULONG64 __stdcall NtLoadKey2( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtLoadKey2 PROC STDCALL
mov r10 , rcx
mov eax , 219
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtLoadKey2 ENDP
; ULONG64 __stdcall NtLoadKeyEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 );
_6_0_6002_sp2_windows_vista_NtLoadKeyEx PROC STDCALL
mov r10 , rcx
mov eax , 220
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtLoadKeyEx ENDP
; ULONG64 __stdcall NtLockFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 );
_6_0_6002_sp2_windows_vista_NtLockFile PROC STDCALL
mov r10 , rcx
mov eax , 221
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtLockFile ENDP
; ULONG64 __stdcall NtLockProductActivationKeys( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtLockProductActivationKeys PROC STDCALL
mov r10 , rcx
mov eax , 222
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtLockProductActivationKeys ENDP
; ULONG64 __stdcall NtLockRegistryKey( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtLockRegistryKey PROC STDCALL
mov r10 , rcx
mov eax , 223
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtLockRegistryKey ENDP
; ULONG64 __stdcall NtLockVirtualMemory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtLockVirtualMemory PROC STDCALL
mov r10 , rcx
mov eax , 224
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtLockVirtualMemory ENDP
; ULONG64 __stdcall NtMakePermanentObject( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtMakePermanentObject PROC STDCALL
mov r10 , rcx
mov eax , 225
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtMakePermanentObject ENDP
; ULONG64 __stdcall NtMakeTemporaryObject( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtMakeTemporaryObject PROC STDCALL
mov r10 , rcx
mov eax , 226
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtMakeTemporaryObject ENDP
; ULONG64 __stdcall NtMapCMFModule( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtMapCMFModule PROC STDCALL
mov r10 , rcx
mov eax , 227
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtMapCMFModule ENDP
; ULONG64 __stdcall NtMapUserPhysicalPages( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtMapUserPhysicalPages PROC STDCALL
mov r10 , rcx
mov eax , 228
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtMapUserPhysicalPages ENDP
; ULONG64 __stdcall NtModifyBootEntry( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtModifyBootEntry PROC STDCALL
mov r10 , rcx
mov eax , 229
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtModifyBootEntry ENDP
; ULONG64 __stdcall NtModifyDriverEntry( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtModifyDriverEntry PROC STDCALL
mov r10 , rcx
mov eax , 230
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtModifyDriverEntry ENDP
; ULONG64 __stdcall NtNotifyChangeDirectoryFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 );
_6_0_6002_sp2_windows_vista_NtNotifyChangeDirectoryFile PROC STDCALL
mov r10 , rcx
mov eax , 231
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtNotifyChangeDirectoryFile ENDP
; ULONG64 __stdcall NtNotifyChangeKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 );
_6_0_6002_sp2_windows_vista_NtNotifyChangeKey PROC STDCALL
mov r10 , rcx
mov eax , 232
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtNotifyChangeKey ENDP
; ULONG64 __stdcall NtNotifyChangeMultipleKeys( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 );
_6_0_6002_sp2_windows_vista_NtNotifyChangeMultipleKeys PROC STDCALL
mov r10 , rcx
mov eax , 233
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtNotifyChangeMultipleKeys ENDP
; ULONG64 __stdcall NtOpenEnlistment( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtOpenEnlistment PROC STDCALL
mov r10 , rcx
mov eax , 234
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenEnlistment ENDP
; ULONG64 __stdcall NtOpenEventPair( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtOpenEventPair PROC STDCALL
mov r10 , rcx
mov eax , 235
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenEventPair ENDP
; ULONG64 __stdcall NtOpenIoCompletion( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtOpenIoCompletion PROC STDCALL
mov r10 , rcx
mov eax , 236
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenIoCompletion ENDP
; ULONG64 __stdcall NtOpenJobObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtOpenJobObject PROC STDCALL
mov r10 , rcx
mov eax , 237
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenJobObject ENDP
; ULONG64 __stdcall NtOpenKeyTransacted( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtOpenKeyTransacted PROC STDCALL
mov r10 , rcx
mov eax , 238
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenKeyTransacted ENDP
; ULONG64 __stdcall NtOpenKeyedEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtOpenKeyedEvent PROC STDCALL
mov r10 , rcx
mov eax , 239
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenKeyedEvent ENDP
; ULONG64 __stdcall NtOpenMutant( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtOpenMutant PROC STDCALL
mov r10 , rcx
mov eax , 240
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenMutant ENDP
; ULONG64 __stdcall NtOpenObjectAuditAlarm( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 );
_6_0_6002_sp2_windows_vista_NtOpenObjectAuditAlarm PROC STDCALL
mov r10 , rcx
mov eax , 241
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenObjectAuditAlarm ENDP
; ULONG64 __stdcall NtOpenPrivateNamespace( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtOpenPrivateNamespace PROC STDCALL
mov r10 , rcx
mov eax , 242
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenPrivateNamespace ENDP
; ULONG64 __stdcall NtOpenProcessToken( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtOpenProcessToken PROC STDCALL
mov r10 , rcx
mov eax , 243
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenProcessToken ENDP
; ULONG64 __stdcall NtOpenResourceManager( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtOpenResourceManager PROC STDCALL
mov r10 , rcx
mov eax , 244
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenResourceManager ENDP
; ULONG64 __stdcall NtOpenSemaphore( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtOpenSemaphore PROC STDCALL
mov r10 , rcx
mov eax , 245
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenSemaphore ENDP
; ULONG64 __stdcall NtOpenSession( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtOpenSession PROC STDCALL
mov r10 , rcx
mov eax , 246
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenSession ENDP
; ULONG64 __stdcall NtOpenSymbolicLinkObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtOpenSymbolicLinkObject PROC STDCALL
mov r10 , rcx
mov eax , 247
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenSymbolicLinkObject ENDP
; ULONG64 __stdcall NtOpenThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtOpenThread PROC STDCALL
mov r10 , rcx
mov eax , 248
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenThread ENDP
; ULONG64 __stdcall NtOpenTimer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtOpenTimer PROC STDCALL
mov r10 , rcx
mov eax , 249
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenTimer ENDP
; ULONG64 __stdcall NtOpenTransaction( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtOpenTransaction PROC STDCALL
mov r10 , rcx
mov eax , 250
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenTransaction ENDP
; ULONG64 __stdcall NtOpenTransactionManager( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtOpenTransactionManager PROC STDCALL
mov r10 , rcx
mov eax , 251
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtOpenTransactionManager ENDP
; ULONG64 __stdcall NtPlugPlayControl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtPlugPlayControl PROC STDCALL
mov r10 , rcx
mov eax , 252
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtPlugPlayControl ENDP
; ULONG64 __stdcall NtPrePrepareComplete( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtPrePrepareComplete PROC STDCALL
mov r10 , rcx
mov eax , 253
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtPrePrepareComplete ENDP
; ULONG64 __stdcall NtPrePrepareEnlistment( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtPrePrepareEnlistment PROC STDCALL
mov r10 , rcx
mov eax , 254
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtPrePrepareEnlistment ENDP
; ULONG64 __stdcall NtPrepareComplete( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtPrepareComplete PROC STDCALL
mov r10 , rcx
mov eax , 255
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtPrepareComplete ENDP
; ULONG64 __stdcall NtPrepareEnlistment( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtPrepareEnlistment PROC STDCALL
mov r10 , rcx
mov eax , 256
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtPrepareEnlistment ENDP
; ULONG64 __stdcall NtPrivilegeCheck( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtPrivilegeCheck PROC STDCALL
mov r10 , rcx
mov eax , 257
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtPrivilegeCheck ENDP
; ULONG64 __stdcall NtPrivilegeObjectAuditAlarm( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtPrivilegeObjectAuditAlarm PROC STDCALL
mov r10 , rcx
mov eax , 258
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtPrivilegeObjectAuditAlarm ENDP
; ULONG64 __stdcall NtPrivilegedServiceAuditAlarm( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtPrivilegedServiceAuditAlarm PROC STDCALL
mov r10 , rcx
mov eax , 259
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtPrivilegedServiceAuditAlarm ENDP
; ULONG64 __stdcall NtPropagationComplete( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtPropagationComplete PROC STDCALL
mov r10 , rcx
mov eax , 260
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtPropagationComplete ENDP
; ULONG64 __stdcall NtPropagationFailed( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtPropagationFailed PROC STDCALL
mov r10 , rcx
mov eax , 261
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtPropagationFailed ENDP
; ULONG64 __stdcall NtPulseEvent( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtPulseEvent PROC STDCALL
mov r10 , rcx
mov eax , 262
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtPulseEvent ENDP
; ULONG64 __stdcall NtQueryBootEntryOrder( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtQueryBootEntryOrder PROC STDCALL
mov r10 , rcx
mov eax , 263
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryBootEntryOrder ENDP
; ULONG64 __stdcall NtQueryBootOptions( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtQueryBootOptions PROC STDCALL
mov r10 , rcx
mov eax , 264
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryBootOptions ENDP
; ULONG64 __stdcall NtQueryDebugFilterState( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtQueryDebugFilterState PROC STDCALL
mov r10 , rcx
mov eax , 265
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryDebugFilterState ENDP
; ULONG64 __stdcall NtQueryDirectoryObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 );
_6_0_6002_sp2_windows_vista_NtQueryDirectoryObject PROC STDCALL
mov r10 , rcx
mov eax , 266
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryDirectoryObject ENDP
; ULONG64 __stdcall NtQueryDriverEntryOrder( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtQueryDriverEntryOrder PROC STDCALL
mov r10 , rcx
mov eax , 267
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryDriverEntryOrder ENDP
; ULONG64 __stdcall NtQueryEaFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 );
_6_0_6002_sp2_windows_vista_NtQueryEaFile PROC STDCALL
mov r10 , rcx
mov eax , 268
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryEaFile ENDP
; ULONG64 __stdcall NtQueryFullAttributesFile( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtQueryFullAttributesFile PROC STDCALL
mov r10 , rcx
mov eax , 269
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryFullAttributesFile ENDP
; ULONG64 __stdcall NtQueryInformationAtom( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryInformationAtom PROC STDCALL
mov r10 , rcx
mov eax , 270
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryInformationAtom ENDP
; ULONG64 __stdcall NtQueryInformationEnlistment( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryInformationEnlistment PROC STDCALL
mov r10 , rcx
mov eax , 271
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryInformationEnlistment ENDP
; ULONG64 __stdcall NtQueryInformationJobObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryInformationJobObject PROC STDCALL
mov r10 , rcx
mov eax , 272
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryInformationJobObject ENDP
; ULONG64 __stdcall NtQueryInformationPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryInformationPort PROC STDCALL
mov r10 , rcx
mov eax , 273
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryInformationPort ENDP
; ULONG64 __stdcall NtQueryInformationResourceManager( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryInformationResourceManager PROC STDCALL
mov r10 , rcx
mov eax , 274
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryInformationResourceManager ENDP
; ULONG64 __stdcall NtQueryInformationTransaction( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryInformationTransaction PROC STDCALL
mov r10 , rcx
mov eax , 275
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryInformationTransaction ENDP
; ULONG64 __stdcall NtQueryInformationTransactionManager( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryInformationTransactionManager PROC STDCALL
mov r10 , rcx
mov eax , 276
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryInformationTransactionManager ENDP
; ULONG64 __stdcall NtQueryInformationWorkerFactory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryInformationWorkerFactory PROC STDCALL
mov r10 , rcx
mov eax , 277
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryInformationWorkerFactory ENDP
; ULONG64 __stdcall NtQueryInstallUILanguage( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtQueryInstallUILanguage PROC STDCALL
mov r10 , rcx
mov eax , 278
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryInstallUILanguage ENDP
; ULONG64 __stdcall NtQueryIntervalProfile( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtQueryIntervalProfile PROC STDCALL
mov r10 , rcx
mov eax , 279
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryIntervalProfile ENDP
; ULONG64 __stdcall NtQueryIoCompletion( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryIoCompletion PROC STDCALL
mov r10 , rcx
mov eax , 280
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryIoCompletion ENDP
; ULONG64 __stdcall NtQueryLicenseValue( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryLicenseValue PROC STDCALL
mov r10 , rcx
mov eax , 281
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryLicenseValue ENDP
; ULONG64 __stdcall NtQueryMultipleValueKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtQueryMultipleValueKey PROC STDCALL
mov r10 , rcx
mov eax , 282
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryMultipleValueKey ENDP
; ULONG64 __stdcall NtQueryMutant( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQueryMutant PROC STDCALL
mov r10 , rcx
mov eax , 283
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryMutant ENDP
; ULONG64 __stdcall NtQueryOpenSubKeys( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtQueryOpenSubKeys PROC STDCALL
mov r10 , rcx
mov eax , 284
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryOpenSubKeys ENDP
; ULONG64 __stdcall NtQueryOpenSubKeysEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtQueryOpenSubKeysEx PROC STDCALL
mov r10 , rcx
mov eax , 285
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryOpenSubKeysEx ENDP
; ULONG64 __stdcall NtQueryPortInformationProcess( );
_6_0_6002_sp2_windows_vista_NtQueryPortInformationProcess PROC STDCALL
mov r10 , rcx
mov eax , 286
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryPortInformationProcess ENDP
; ULONG64 __stdcall NtQueryQuotaInformationFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 );
_6_0_6002_sp2_windows_vista_NtQueryQuotaInformationFile PROC STDCALL
mov r10 , rcx
mov eax , 287
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryQuotaInformationFile ENDP
; ULONG64 __stdcall NtQuerySecurityObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQuerySecurityObject PROC STDCALL
mov r10 , rcx
mov eax , 288
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQuerySecurityObject ENDP
; ULONG64 __stdcall NtQuerySemaphore( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQuerySemaphore PROC STDCALL
mov r10 , rcx
mov eax , 289
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQuerySemaphore ENDP
; ULONG64 __stdcall NtQuerySymbolicLinkObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtQuerySymbolicLinkObject PROC STDCALL
mov r10 , rcx
mov eax , 290
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQuerySymbolicLinkObject ENDP
; ULONG64 __stdcall NtQuerySystemEnvironmentValue( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtQuerySystemEnvironmentValue PROC STDCALL
mov r10 , rcx
mov eax , 291
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQuerySystemEnvironmentValue ENDP
; ULONG64 __stdcall NtQuerySystemEnvironmentValueEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtQuerySystemEnvironmentValueEx PROC STDCALL
mov r10 , rcx
mov eax , 292
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQuerySystemEnvironmentValueEx ENDP
; ULONG64 __stdcall NtQueryTimerResolution( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtQueryTimerResolution PROC STDCALL
mov r10 , rcx
mov eax , 293
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtQueryTimerResolution ENDP
; ULONG64 __stdcall NtRaiseException( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtRaiseException PROC STDCALL
mov r10 , rcx
mov eax , 294
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRaiseException ENDP
; ULONG64 __stdcall NtRaiseHardError( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtRaiseHardError PROC STDCALL
mov r10 , rcx
mov eax , 295
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRaiseHardError ENDP
; ULONG64 __stdcall NtReadOnlyEnlistment( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtReadOnlyEnlistment PROC STDCALL
mov r10 , rcx
mov eax , 296
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtReadOnlyEnlistment ENDP
; ULONG64 __stdcall NtRecoverEnlistment( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtRecoverEnlistment PROC STDCALL
mov r10 , rcx
mov eax , 297
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRecoverEnlistment ENDP
; ULONG64 __stdcall NtRecoverResourceManager( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtRecoverResourceManager PROC STDCALL
mov r10 , rcx
mov eax , 298
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRecoverResourceManager ENDP
; ULONG64 __stdcall NtRecoverTransactionManager( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtRecoverTransactionManager PROC STDCALL
mov r10 , rcx
mov eax , 299
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRecoverTransactionManager ENDP
; ULONG64 __stdcall NtRegisterProtocolAddressInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtRegisterProtocolAddressInformation PROC STDCALL
mov r10 , rcx
mov eax , 300
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRegisterProtocolAddressInformation ENDP
; ULONG64 __stdcall NtRegisterThreadTerminatePort( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtRegisterThreadTerminatePort PROC STDCALL
mov r10 , rcx
mov eax , 301
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRegisterThreadTerminatePort ENDP
; ULONG64 __stdcall NtReleaseCMFViewOwnership( );
_6_0_6002_sp2_windows_vista_NtReleaseCMFViewOwnership PROC STDCALL
mov r10 , rcx
mov eax , 302
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtReleaseCMFViewOwnership ENDP
; ULONG64 __stdcall NtReleaseKeyedEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtReleaseKeyedEvent PROC STDCALL
mov r10 , rcx
mov eax , 303
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtReleaseKeyedEvent ENDP
; ULONG64 __stdcall NtReleaseWorkerFactoryWorker( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtReleaseWorkerFactoryWorker PROC STDCALL
mov r10 , rcx
mov eax , 304
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtReleaseWorkerFactoryWorker ENDP
; ULONG64 __stdcall NtRemoveIoCompletionEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtRemoveIoCompletionEx PROC STDCALL
mov r10 , rcx
mov eax , 305
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRemoveIoCompletionEx ENDP
; ULONG64 __stdcall NtRemoveProcessDebug( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtRemoveProcessDebug PROC STDCALL
mov r10 , rcx
mov eax , 306
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRemoveProcessDebug ENDP
; ULONG64 __stdcall NtRenameKey( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtRenameKey PROC STDCALL
mov r10 , rcx
mov eax , 307
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRenameKey ENDP
; ULONG64 __stdcall NtRenameTransactionManager( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtRenameTransactionManager PROC STDCALL
mov r10 , rcx
mov eax , 308
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRenameTransactionManager ENDP
; ULONG64 __stdcall NtReplaceKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtReplaceKey PROC STDCALL
mov r10 , rcx
mov eax , 309
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtReplaceKey ENDP
; ULONG64 __stdcall NtReplacePartitionUnit( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtReplacePartitionUnit PROC STDCALL
mov r10 , rcx
mov eax , 310
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtReplacePartitionUnit ENDP
; ULONG64 __stdcall NtReplyWaitReplyPort( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtReplyWaitReplyPort PROC STDCALL
mov r10 , rcx
mov eax , 311
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtReplyWaitReplyPort ENDP
; ULONG64 __stdcall NtRequestDeviceWakeup( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtRequestDeviceWakeup PROC STDCALL
mov r10 , rcx
mov eax , 312
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRequestDeviceWakeup ENDP
; ULONG64 __stdcall NtRequestPort( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtRequestPort PROC STDCALL
mov r10 , rcx
mov eax , 313
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRequestPort ENDP
; ULONG64 __stdcall NtRequestWakeupLatency( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtRequestWakeupLatency PROC STDCALL
mov r10 , rcx
mov eax , 314
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRequestWakeupLatency ENDP
; ULONG64 __stdcall NtResetEvent( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtResetEvent PROC STDCALL
mov r10 , rcx
mov eax , 315
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtResetEvent ENDP
; ULONG64 __stdcall NtResetWriteWatch( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtResetWriteWatch PROC STDCALL
mov r10 , rcx
mov eax , 316
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtResetWriteWatch ENDP
; ULONG64 __stdcall NtRestoreKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtRestoreKey PROC STDCALL
mov r10 , rcx
mov eax , 317
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRestoreKey ENDP
; ULONG64 __stdcall NtResumeProcess( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtResumeProcess PROC STDCALL
mov r10 , rcx
mov eax , 318
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtResumeProcess ENDP
; ULONG64 __stdcall NtRollbackComplete( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtRollbackComplete PROC STDCALL
mov r10 , rcx
mov eax , 319
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRollbackComplete ENDP
; ULONG64 __stdcall NtRollbackEnlistment( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtRollbackEnlistment PROC STDCALL
mov r10 , rcx
mov eax , 320
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRollbackEnlistment ENDP
; ULONG64 __stdcall NtRollbackTransaction( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtRollbackTransaction PROC STDCALL
mov r10 , rcx
mov eax , 321
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRollbackTransaction ENDP
; ULONG64 __stdcall NtRollforwardTransactionManager( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtRollforwardTransactionManager PROC STDCALL
mov r10 , rcx
mov eax , 322
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtRollforwardTransactionManager ENDP
; ULONG64 __stdcall NtSaveKey( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtSaveKey PROC STDCALL
mov r10 , rcx
mov eax , 323
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSaveKey ENDP
; ULONG64 __stdcall NtSaveKeyEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtSaveKeyEx PROC STDCALL
mov r10 , rcx
mov eax , 324
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSaveKeyEx ENDP
; ULONG64 __stdcall NtSaveMergedKeys( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtSaveMergedKeys PROC STDCALL
mov r10 , rcx
mov eax , 325
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSaveMergedKeys ENDP
; ULONG64 __stdcall NtSecureConnectPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 );
_6_0_6002_sp2_windows_vista_NtSecureConnectPort PROC STDCALL
mov r10 , rcx
mov eax , 326
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSecureConnectPort ENDP
; ULONG64 __stdcall NtSetBootEntryOrder( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtSetBootEntryOrder PROC STDCALL
mov r10 , rcx
mov eax , 327
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetBootEntryOrder ENDP
; ULONG64 __stdcall NtSetBootOptions( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtSetBootOptions PROC STDCALL
mov r10 , rcx
mov eax , 328
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetBootOptions ENDP
; ULONG64 __stdcall NtSetContextThread( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtSetContextThread PROC STDCALL
mov r10 , rcx
mov eax , 329
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetContextThread ENDP
; ULONG64 __stdcall NtSetDebugFilterState( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtSetDebugFilterState PROC STDCALL
mov r10 , rcx
mov eax , 330
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetDebugFilterState ENDP
; ULONG64 __stdcall NtSetDefaultHardErrorPort( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtSetDefaultHardErrorPort PROC STDCALL
mov r10 , rcx
mov eax , 331
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetDefaultHardErrorPort ENDP
; ULONG64 __stdcall NtSetDefaultLocale( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtSetDefaultLocale PROC STDCALL
mov r10 , rcx
mov eax , 332
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetDefaultLocale ENDP
; ULONG64 __stdcall NtSetDefaultUILanguage( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtSetDefaultUILanguage PROC STDCALL
mov r10 , rcx
mov eax , 333
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetDefaultUILanguage ENDP
; ULONG64 __stdcall NtSetDriverEntryOrder( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtSetDriverEntryOrder PROC STDCALL
mov r10 , rcx
mov eax , 334
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetDriverEntryOrder ENDP
; ULONG64 __stdcall NtSetEaFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtSetEaFile PROC STDCALL
mov r10 , rcx
mov eax , 335
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetEaFile ENDP
; ULONG64 __stdcall NtSetHighEventPair( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtSetHighEventPair PROC STDCALL
mov r10 , rcx
mov eax , 336
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetHighEventPair ENDP
; ULONG64 __stdcall NtSetHighWaitLowEventPair( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtSetHighWaitLowEventPair PROC STDCALL
mov r10 , rcx
mov eax , 337
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetHighWaitLowEventPair ENDP
; ULONG64 __stdcall NtSetInformationDebugObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtSetInformationDebugObject PROC STDCALL
mov r10 , rcx
mov eax , 338
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetInformationDebugObject ENDP
; ULONG64 __stdcall NtSetInformationEnlistment( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtSetInformationEnlistment PROC STDCALL
mov r10 , rcx
mov eax , 339
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetInformationEnlistment ENDP
; ULONG64 __stdcall NtSetInformationJobObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtSetInformationJobObject PROC STDCALL
mov r10 , rcx
mov eax , 340
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetInformationJobObject ENDP
; ULONG64 __stdcall NtSetInformationKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtSetInformationKey PROC STDCALL
mov r10 , rcx
mov eax , 341
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetInformationKey ENDP
; ULONG64 __stdcall NtSetInformationResourceManager( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtSetInformationResourceManager PROC STDCALL
mov r10 , rcx
mov eax , 342
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetInformationResourceManager ENDP
; ULONG64 __stdcall NtSetInformationToken( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtSetInformationToken PROC STDCALL
mov r10 , rcx
mov eax , 343
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetInformationToken ENDP
; ULONG64 __stdcall NtSetInformationTransaction( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtSetInformationTransaction PROC STDCALL
mov r10 , rcx
mov eax , 344
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetInformationTransaction ENDP
; ULONG64 __stdcall NtSetInformationTransactionManager( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtSetInformationTransactionManager PROC STDCALL
mov r10 , rcx
mov eax , 345
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetInformationTransactionManager ENDP
; ULONG64 __stdcall NtSetInformationWorkerFactory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtSetInformationWorkerFactory PROC STDCALL
mov r10 , rcx
mov eax , 346
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetInformationWorkerFactory ENDP
; ULONG64 __stdcall NtSetIntervalProfile( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtSetIntervalProfile PROC STDCALL
mov r10 , rcx
mov eax , 347
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetIntervalProfile ENDP
; ULONG64 __stdcall NtSetIoCompletion( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtSetIoCompletion PROC STDCALL
mov r10 , rcx
mov eax , 348
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetIoCompletion ENDP
; ULONG64 __stdcall NtSetLdtEntries( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtSetLdtEntries PROC STDCALL
mov r10 , rcx
mov eax , 349
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetLdtEntries ENDP
; ULONG64 __stdcall NtSetLowEventPair( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtSetLowEventPair PROC STDCALL
mov r10 , rcx
mov eax , 350
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetLowEventPair ENDP
; ULONG64 __stdcall NtSetLowWaitHighEventPair( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtSetLowWaitHighEventPair PROC STDCALL
mov r10 , rcx
mov eax , 351
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetLowWaitHighEventPair ENDP
; ULONG64 __stdcall NtSetQuotaInformationFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtSetQuotaInformationFile PROC STDCALL
mov r10 , rcx
mov eax , 352
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetQuotaInformationFile ENDP
; ULONG64 __stdcall NtSetSecurityObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtSetSecurityObject PROC STDCALL
mov r10 , rcx
mov eax , 353
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetSecurityObject ENDP
; ULONG64 __stdcall NtSetSystemEnvironmentValue( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtSetSystemEnvironmentValue PROC STDCALL
mov r10 , rcx
mov eax , 354
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetSystemEnvironmentValue ENDP
; ULONG64 __stdcall NtSetSystemEnvironmentValueEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtSetSystemEnvironmentValueEx PROC STDCALL
mov r10 , rcx
mov eax , 355
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetSystemEnvironmentValueEx ENDP
; ULONG64 __stdcall NtSetSystemInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtSetSystemInformation PROC STDCALL
mov r10 , rcx
mov eax , 356
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetSystemInformation ENDP
; ULONG64 __stdcall NtSetSystemPowerState( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtSetSystemPowerState PROC STDCALL
mov r10 , rcx
mov eax , 357
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetSystemPowerState ENDP
; ULONG64 __stdcall NtSetSystemTime( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtSetSystemTime PROC STDCALL
mov r10 , rcx
mov eax , 358
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetSystemTime ENDP
; ULONG64 __stdcall NtSetThreadExecutionState( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtSetThreadExecutionState PROC STDCALL
mov r10 , rcx
mov eax , 359
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetThreadExecutionState ENDP
; ULONG64 __stdcall NtSetTimerResolution( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 );
_6_0_6002_sp2_windows_vista_NtSetTimerResolution PROC STDCALL
mov r10 , rcx
mov eax , 360
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetTimerResolution ENDP
; ULONG64 __stdcall NtSetUuidSeed( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtSetUuidSeed PROC STDCALL
mov r10 , rcx
mov eax , 361
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetUuidSeed ENDP
; ULONG64 __stdcall NtSetVolumeInformationFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtSetVolumeInformationFile PROC STDCALL
mov r10 , rcx
mov eax , 362
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSetVolumeInformationFile ENDP
; ULONG64 __stdcall NtShutdownSystem( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtShutdownSystem PROC STDCALL
mov r10 , rcx
mov eax , 363
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtShutdownSystem ENDP
; ULONG64 __stdcall NtShutdownWorkerFactory( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtShutdownWorkerFactory PROC STDCALL
mov r10 , rcx
mov eax , 364
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtShutdownWorkerFactory ENDP
; ULONG64 __stdcall NtSignalAndWaitForSingleObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtSignalAndWaitForSingleObject PROC STDCALL
mov r10 , rcx
mov eax , 365
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSignalAndWaitForSingleObject ENDP
; ULONG64 __stdcall NtSinglePhaseReject( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtSinglePhaseReject PROC STDCALL
mov r10 , rcx
mov eax , 366
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSinglePhaseReject ENDP
; ULONG64 __stdcall NtStartProfile( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtStartProfile PROC STDCALL
mov r10 , rcx
mov eax , 367
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtStartProfile ENDP
; ULONG64 __stdcall NtStopProfile( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtStopProfile PROC STDCALL
mov r10 , rcx
mov eax , 368
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtStopProfile ENDP
; ULONG64 __stdcall NtSuspendProcess( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtSuspendProcess PROC STDCALL
mov r10 , rcx
mov eax , 369
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSuspendProcess ENDP
; ULONG64 __stdcall NtSuspendThread( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtSuspendThread PROC STDCALL
mov r10 , rcx
mov eax , 370
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSuspendThread ENDP
; ULONG64 __stdcall NtSystemDebugControl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtSystemDebugControl PROC STDCALL
mov r10 , rcx
mov eax , 371
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtSystemDebugControl ENDP
; ULONG64 __stdcall NtTerminateJobObject( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtTerminateJobObject PROC STDCALL
mov r10 , rcx
mov eax , 372
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtTerminateJobObject ENDP
; ULONG64 __stdcall NtTestAlert( );
_6_0_6002_sp2_windows_vista_NtTestAlert PROC STDCALL
mov r10 , rcx
mov eax , 373
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtTestAlert ENDP
; ULONG64 __stdcall NtThawRegistry( );
_6_0_6002_sp2_windows_vista_NtThawRegistry PROC STDCALL
mov r10 , rcx
mov eax , 374
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtThawRegistry ENDP
; ULONG64 __stdcall NtThawTransactions( );
_6_0_6002_sp2_windows_vista_NtThawTransactions PROC STDCALL
mov r10 , rcx
mov eax , 375
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtThawTransactions ENDP
; ULONG64 __stdcall NtTraceControl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 );
_6_0_6002_sp2_windows_vista_NtTraceControl PROC STDCALL
mov r10 , rcx
mov eax , 376
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtTraceControl ENDP
; ULONG64 __stdcall NtTranslateFilePath( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtTranslateFilePath PROC STDCALL
mov r10 , rcx
mov eax , 377
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtTranslateFilePath ENDP
; ULONG64 __stdcall NtUnloadDriver( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtUnloadDriver PROC STDCALL
mov r10 , rcx
mov eax , 378
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtUnloadDriver ENDP
; ULONG64 __stdcall NtUnloadKey( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtUnloadKey PROC STDCALL
mov r10 , rcx
mov eax , 379
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtUnloadKey ENDP
; ULONG64 __stdcall NtUnloadKey2( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtUnloadKey2 PROC STDCALL
mov r10 , rcx
mov eax , 380
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtUnloadKey2 ENDP
; ULONG64 __stdcall NtUnloadKeyEx( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtUnloadKeyEx PROC STDCALL
mov r10 , rcx
mov eax , 381
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtUnloadKeyEx ENDP
; ULONG64 __stdcall NtUnlockFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 );
_6_0_6002_sp2_windows_vista_NtUnlockFile PROC STDCALL
mov r10 , rcx
mov eax , 382
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtUnlockFile ENDP
; ULONG64 __stdcall NtUnlockVirtualMemory( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtUnlockVirtualMemory PROC STDCALL
mov r10 , rcx
mov eax , 383
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtUnlockVirtualMemory ENDP
; ULONG64 __stdcall NtVdmControl( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtVdmControl PROC STDCALL
mov r10 , rcx
mov eax , 384
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtVdmControl ENDP
; ULONG64 __stdcall NtWaitForDebugEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtWaitForDebugEvent PROC STDCALL
mov r10 , rcx
mov eax , 385
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtWaitForDebugEvent ENDP
; ULONG64 __stdcall NtWaitForKeyedEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 );
_6_0_6002_sp2_windows_vista_NtWaitForKeyedEvent PROC STDCALL
mov r10 , rcx
mov eax , 386
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtWaitForKeyedEvent ENDP
; ULONG64 __stdcall NtWaitForWorkViaWorkerFactory( ULONG64 arg_01 , ULONG64 arg_02 );
_6_0_6002_sp2_windows_vista_NtWaitForWorkViaWorkerFactory PROC STDCALL
mov r10 , rcx
mov eax , 387
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtWaitForWorkViaWorkerFactory ENDP
; ULONG64 __stdcall NtWaitHighEventPair( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtWaitHighEventPair PROC STDCALL
mov r10 , rcx
mov eax , 388
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtWaitHighEventPair ENDP
; ULONG64 __stdcall NtWaitLowEventPair( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtWaitLowEventPair PROC STDCALL
mov r10 , rcx
mov eax , 389
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtWaitLowEventPair ENDP
; ULONG64 __stdcall NtWorkerFactoryWorkerReady( ULONG64 arg_01 );
_6_0_6002_sp2_windows_vista_NtWorkerFactoryWorkerReady PROC STDCALL
mov r10 , rcx
mov eax , 390
;syscall
db 0Fh , 05h
ret
_6_0_6002_sp2_windows_vista_NtWorkerFactoryWorkerReady ENDP
|
Task/Averages-Pythagorean-means/Ada/averages-pythagorean-means-2.ada | LaudateCorpus1/RosettaCodeData | 1 | 5715 | with Ada.Numerics.Generic_Elementary_Functions;
package body Pythagorean_Means is
package Math is new Ada.Numerics.Generic_Elementary_Functions (Float);
function "**" (Left, Right : Float) return Float renames Math."**";
function Arithmetic_Mean (Data : Set) return Float is
Sum : Float := 0.0;
begin
for I in Data'Range loop
Sum := Sum + Data (I);
end loop;
return Sum / Float (Data'Length);
end Arithmetic_Mean;
function Geometric_Mean (Data : Set) return Float is
Product : Float := 1.0;
begin
for I in Data'Range loop
Product := Product * Data (I);
end loop;
return Product**(1.0/Float(Data'Length));
end Geometric_Mean;
function Harmonic_Mean (Data : Set) return Float is
Reciprocal_Sum : Float := 0.0;
begin
for I in Data'Range loop
Reciprocal_Sum := Reciprocal_Sum + Data (I)**(-1);
end loop;
return Float (Data'Length) / Reciprocal_Sum;
end Harmonic_Mean;
end Pythagorean_Means;
|
programs/oeis/180/A180598.asm | neoneye/loda | 22 | 86247 | <filename>programs/oeis/180/A180598.asm
; A180598: Digital root of 8n.
; 0,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9
mul $0,8
sub $0,1
mod $0,9
add $0,1
|
test/link/group5/module2.asm | nigelperks/BasicAssembler | 0 | 92758 | IDEAL
ASSUME CS:_CODE,DS:_DATA,ES:_DATA,SS:_DATA
SEGMENT _CODE PUBLIC
start2:
jmp thingy
mov ax, 0FACEh
mov dx, OFFSET bill
int 40h
thingy:
ENDS _CODE
SEGMENT _DATA PUBLIC
bill DW 1111h
DW 2222h
DW 3333h
ENDS _DATA
GROUP DGROUP _CODE, _DATA
END
|
deBruijn/Context/Extension/Isomorphic.agda | nad/dependently-typed-syntax | 5 | 8011 | <reponame>nad/dependently-typed-syntax
------------------------------------------------------------------------
-- The two definitions of context extensions are isomorphic
------------------------------------------------------------------------
open import Data.Universe.Indexed
module deBruijn.Context.Extension.Isomorphic
{i u e} (Uni : IndexedUniverse i u e) where
import deBruijn.Context.Basics as Basics
import deBruijn.Context.Extension.Left as Left
import deBruijn.Context.Extension.Right as Right
open import Function.Base
open import Function.Inverse using (_↔_)
import Relation.Binary.PropositionalEquality as P
open Basics Uni
open Left Uni
open Right Uni
open P.≡-Reasoning
-- Ctxt₊-s can be turned into Ctxt⁺-s.
₊-to-⁺ : ∀ {Γ} → Ctxt₊ Γ → Ctxt⁺ Γ
₊-to-⁺ ε = ε
₊-to-⁺ (σ ◅ Γ₊) = ε ▻ σ ⁺++⁺ ₊-to-⁺ Γ₊
abstract
-- The semantics is preserved.
++⁺-₊-to-⁺ : ∀ {Γ} (Γ₊ : Ctxt₊ Γ) → Γ ++₊ Γ₊ ≅-Ctxt Γ ++⁺ ₊-to-⁺ Γ₊
++⁺-₊-to-⁺ ε = P.refl
++⁺-₊-to-⁺ {Γ} (σ ◅ Γ₊) = begin
Γ ▻ σ ++₊ Γ₊ ≡⟨ ++⁺-₊-to-⁺ Γ₊ ⟩
Γ ▻ σ ++⁺ ₊-to-⁺ Γ₊ ≡⟨ ++⁺-++⁺ (ε ▻ σ) (₊-to-⁺ Γ₊) ⟩
Γ ++⁺ (ε ▻ σ ⁺++⁺ ₊-to-⁺ Γ₊) ∎
mutual
-- Ctxt⁺-s can be turned into Ctxt₊-s.
⁺-to-₊ : ∀ {Γ} → Ctxt⁺ Γ → Ctxt₊ Γ
⁺-to-₊ ε = ε
⁺-to-₊ (Γ⁺ ▻ σ) =
⁺-to-₊ Γ⁺ ₊++₊ P.subst Ctxt₊ (++₊-⁺-to-₊ Γ⁺) (σ ◅ ε)
abstract
-- The semantics is preserved.
++₊-⁺-to-₊ : ∀ {Γ} (Γ⁺ : Ctxt⁺ Γ) → Γ ++⁺ Γ⁺ ≅-Ctxt Γ ++₊ ⁺-to-₊ Γ⁺
++₊-⁺-to-₊ ε = P.refl
++₊-⁺-to-₊ {Γ} (Γ⁺ ▻ σ) =
let σ◅ε = P.subst Ctxt₊ (++₊-⁺-to-₊ Γ⁺) (σ ◅ ε)
in begin
Γ ++⁺ Γ⁺ ▻ σ ≡⟨ P.refl ⟩
Γ ++⁺ Γ⁺ ++₊ (σ ◅ ε) ≡⟨ P.sym $ ++₊-cong $ drop-subst-Ctxt₊ id (++₊-⁺-to-₊ Γ⁺) ⟩
Γ ++₊ ⁺-to-₊ Γ⁺ ++₊ σ◅ε ≡⟨ ++₊-++₊ (⁺-to-₊ Γ⁺) σ◅ε ⟩
Γ ++₊ (⁺-to-₊ Γ⁺ ₊++₊ σ◅ε) ∎
-- Some congruence lemmas.
₊-to-⁺-cong : ∀ {Γ₁} {Γ₊₁ : Ctxt₊ Γ₁}
{Γ₂} {Γ₊₂ : Ctxt₊ Γ₂} →
Γ₊₁ ≅-Ctxt₊ Γ₊₂ → ₊-to-⁺ Γ₊₁ ≅-Ctxt⁺ ₊-to-⁺ Γ₊₂
₊-to-⁺-cong P.refl = P.refl
⁺-to-₊-cong : ∀ {Γ₁} {Γ⁺₁ : Ctxt⁺ Γ₁}
{Γ₂} {Γ⁺₂ : Ctxt⁺ Γ₂} →
Γ⁺₁ ≅-Ctxt⁺ Γ⁺₂ → ⁺-to-₊ Γ⁺₁ ≅-Ctxt₊ ⁺-to-₊ Γ⁺₂
⁺-to-₊-cong P.refl = P.refl
-- Ctxt⁺ and Ctxt₊ are isomorphic.
Ctxt⁺↔Ctxt₊ : ∀ Γ → Ctxt⁺ Γ ↔ Ctxt₊ Γ
Ctxt⁺↔Ctxt₊ Γ = record
{ to = P.→-to-⟶ ⁺-to-₊
; from = P.→-to-⟶ ₊-to-⁺
; inverse-of = record
{ left-inverse-of = λ Γ⁺ → ≅-Ctxt⁺-⇒-≡ $ ₊-to-⁺-⁺-to-₊ Γ⁺
; right-inverse-of = λ Γ₊ → ≅-Ctxt₊-⇒-≡ $ ⁺-to-₊-₊-to-⁺ Γ₊
}
}
where
abstract
₊-to-⁺-⁺-to-₊ : (Γ⁺ : Ctxt⁺ Γ) → ₊-to-⁺ (⁺-to-₊ Γ⁺) ≅-Ctxt⁺ Γ⁺
₊-to-⁺-⁺-to-₊ Γ⁺ = cancel-++⁺-left _ _ (begin
Γ ++⁺ ₊-to-⁺ (⁺-to-₊ Γ⁺) ≡⟨ P.sym $ ++⁺-₊-to-⁺ (⁺-to-₊ Γ⁺) ⟩
Γ ++₊ (⁺-to-₊ Γ⁺) ≡⟨ P.sym $ ++₊-⁺-to-₊ Γ⁺ ⟩
Γ ++⁺ Γ⁺ ∎)
⁺-to-₊-₊-to-⁺ : (Γ₊ : Ctxt₊ Γ) → ⁺-to-₊ (₊-to-⁺ Γ₊) ≅-Ctxt₊ Γ₊
⁺-to-₊-₊-to-⁺ Γ₊ = cancel-++₊-left _ _ (begin
Γ ++₊ ⁺-to-₊ (₊-to-⁺ Γ₊) ≡⟨ P.sym $ ++₊-⁺-to-₊ (₊-to-⁺ Γ₊) ⟩
Γ ++⁺ (₊-to-⁺ Γ₊) ≡⟨ P.sym $ ++⁺-₊-to-⁺ Γ₊ ⟩
Γ ++₊ Γ₊ ∎)
|
library/fmGUI_FMATools/fmGUI_2empowerFM_Toolbox_Close.applescript | NYHTC/applescript-fm-helper | 1 | 4529 | -- fmGUI_2empowerFM_Toolbox_Close()
-- <NAME>, NYHTC
-- Closes floating 2empowerFM Toolbox utility window.
(*
HISTORY:
2020-03-04 ( dshockley ): first created
REQUIRES:
fmGUI_AppFrontMost
*)
on run
fmGUI_2empowerFM_Toolbox_Close()
end run
--------------------
-- START OF CODE
--------------------
on fmGUI_2empowerFM_Toolbox_Close()
-- version 2020-03-04-1645
fmGUI_AppFrontMost()
tell application "System Events"
tell process "FileMaker Pro Advanced"
try
click button 1 of (first window whose name is "2empowerFM Toolbox")
-- gets an error even if button exists, but still works.
end try
return true
end tell
end tell
end fmGUI_2empowerFM_Toolbox_Close
--------------------
-- END OF CODE
--------------------
on fmGUI_AppFrontMost()
tell application "htcLib" to fmGUI_AppFrontMost()
end fmGUI_AppFrontMost
|
data/actors/stars.asm | sinusoid-studios/rhythm-land | 11 | 167332 | INCLUDE "constants/hardware.inc"
INCLUDE "constants/actors.inc"
INCLUDE "macros/actors.inc"
SECTION "Title Screen Large Star 1 Actor Animation Data", ROMX
xActorLargeStar1Animation::
animation LargeStar1
cel largeStar1, ANIMATION_DURATION_FOREVER
SECTION "Title Screen Large Star 1 Actor Meta-Sprite Data", ROMX
xActorLargeStar1Metasprites::
metasprite .largeStar1
.largeStar1
obj 0, 0, $00, 0
obj 0, 8, $02, 0
obj 16, 0, $1A, 0
obj 16, 8, $1C, 0
obj 16, 16, $1E, 0
DB METASPRITE_END
SECTION "Title Screen Large Star 2 Actor Animation Data", ROMX
xActorLargeStar2Animation::
animation LargeStar2
cel largeStar2, ANIMATION_DURATION_FOREVER
SECTION "Title Screen Large Star 2 Actor Meta-Sprite Data", ROMX
xActorLargeStar2Metasprites::
metasprite .largeStar2
.largeStar2
obj 0, 0, $04, 0
obj 0, 8, $06, 0
obj 0, 16, $08, 0
obj 16, 0, $20, 0
obj 16, 8, $22, 0
obj 16, 16, $24, 0
DB METASPRITE_END
SECTION "Title Screen Large Star 3 Actor Animation Data", ROMX
xActorLargeStar3Animation::
animation LargeStar3
cel largeStar3, ANIMATION_DURATION_FOREVER
SECTION "Title Screen Large Star 3 Actor Meta-Sprite Data", ROMX
xActorLargeStar3Metasprites::
metasprite .largeStar3
.largeStar3
obj 0, 0, $0A, 0
obj 0, 8, $0C, 0
obj 0, 16, $0E, 0
obj 0, 24, $10, 0
obj 16, 0, $26, 0
obj 16, 8, $28, 0
obj 16, 16, $2A, 0
DB METASPRITE_END
SECTION "Title Screen Large Star 4 Actor Animation Data", ROMX
xActorLargeStar4Animation::
animation LargeStar4
cel largeStar4, ANIMATION_DURATION_FOREVER
SECTION "Title Screen Large Star 4 Actor Meta-Sprite Data", ROMX
xActorLargeStar4Metasprites::
metasprite .largeStar4
.largeStar4
obj 0, 0, $12, 0
obj 0, 8, $14, 0
obj 0, 16, $16, 0
obj 0, 24, $18, 0
obj 16, 0, $2C, 0
obj 16, 8, $2E, 0
obj 16, 16, $30, 0
DB METASPRITE_END
SECTION "Title Screen Small Star 1 Actor Animation Data", ROMX
xActorSmallStar1Animation::
animation SmallStar1
cel smallStar1, ANIMATION_DURATION_FOREVER
SECTION "Title Screen Small Star 1 Actor Meta-Sprite Data", ROMX
xActorSmallStar1Metasprites::
metasprite .smallStar1
.smallStar1
obj 0, 0, $32, 0
DB METASPRITE_END
SECTION "Title Screen Small Star 2 Actor Animation Data", ROMX
xActorSmallStar2Animation::
animation SmallStar2
cel smallStar2, ANIMATION_DURATION_FOREVER
SECTION "Title Screen Small Star 2 Actor Meta-Sprite Data", ROMX
xActorSmallStar2Metasprites::
metasprite .smallStar2
.smallStar2
obj 0, 0, $34, 0
DB METASPRITE_END
SECTION "Title Screen Small Star 3 Actor Animation Data", ROMX
xActorSmallStar3Animation::
animation SmallStar3
cel smallStar3, ANIMATION_DURATION_FOREVER
SECTION "Title Screen Small Star 3 Actor Meta-Sprite Data", ROMX
xActorSmallStar3Metasprites::
metasprite .smallStar3
.smallStar3
obj 0, 0, $36, 0
DB METASPRITE_END
SECTION "Title Screen Small Star 4 Actor Animation Data", ROMX
xActorSmallStar4Animation::
animation SmallStar4
cel smallStar4, ANIMATION_DURATION_FOREVER
SECTION "Title Screen Small Star 4 Actor Meta-Sprite Data", ROMX
xActorSmallStar4Metasprites::
metasprite .smallStar4
.smallStar4
obj 0, 0, $38, 0
DB METASPRITE_END
SECTION "Title Screen Small Star 5 Actor Animation Data", ROMX
xActorSmallStar5Animation::
animation SmallStar5
cel smallStar5, ANIMATION_DURATION_FOREVER
SECTION "Title Screen Small Star 5 Actor Meta-Sprite Data", ROMX
xActorSmallStar5Metasprites::
metasprite .smallStar5
.smallStar5
obj 0, 0, $3A, 0
DB METASPRITE_END
SECTION "Title Screen Small Star 6 Actor Animation Data", ROMX
xActorSmallStar6Animation::
animation SmallStar6
cel smallStar6, ANIMATION_DURATION_FOREVER
SECTION "Title Screen Small Star 6 Actor Meta-Sprite Data", ROMX
xActorSmallStar6Metasprites::
metasprite .smallStar6
.smallStar6
obj 0, 0, $3C, 0
DB METASPRITE_END
SECTION "Title Screen Small Star 7 Actor Animation Data", ROMX
xActorSmallStar7Animation::
animation SmallStar7
cel smallStar7, ANIMATION_DURATION_FOREVER
SECTION "Title Screen Small Star 7 Actor Meta-Sprite Data", ROMX
xActorSmallStar7Metasprites::
metasprite .smallStar7
.smallStar7
obj 0, 0, $3E, 0
DB METASPRITE_END
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca_notsx.log_21829_1752.asm | ljhsiun2/medusa | 9 | 163199 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x7c0f, %r11
nop
nop
nop
nop
add %rbp, %rbp
mov $0x6162636465666768, %r8
movq %r8, %xmm1
vmovups %ymm1, (%r11)
nop
nop
nop
nop
xor $28116, %rsi
lea addresses_D_ht+0x1aec3, %rsi
lea addresses_UC_ht+0x18823, %rdi
nop
nop
nop
nop
nop
and $40876, %r15
mov $94, %rcx
rep movsq
sub %r8, %r8
lea addresses_WC_ht+0x1efe3, %rbp
nop
xor %r8, %r8
movups (%rbp), %xmm4
vpextrq $0, %xmm4, %r15
nop
nop
add %rcx, %rcx
lea addresses_A_ht+0x341f, %rbp
clflush (%rbp)
nop
nop
nop
nop
and $29908, %rdi
mov (%rbp), %ecx
nop
nop
dec %rbp
lea addresses_UC_ht+0x97a3, %rsi
lea addresses_normal_ht+0x1e2a3, %rdi
nop
nop
nop
inc %r11
mov $92, %rcx
rep movsq
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_D_ht+0x253b, %rsi
lea addresses_WT_ht+0x52ae, %rdi
nop
nop
nop
sub %r11, %r11
mov $50, %rcx
rep movsb
nop
nop
add $53462, %rbp
lea addresses_D_ht+0x149c3, %r15
nop
nop
nop
xor %rdi, %rdi
movb $0x61, (%r15)
inc %r15
lea addresses_UC_ht+0x23a3, %rsi
lea addresses_UC_ht+0x6f43, %rdi
clflush (%rdi)
nop
dec %rbx
mov $12, %rcx
rep movsb
nop
nop
nop
and %rsi, %rsi
lea addresses_normal_ht+0x128c3, %rdi
cmp %rbx, %rbx
movb $0x61, (%rdi)
nop
nop
and $23335, %r8
lea addresses_WC_ht+0xb2c3, %r8
clflush (%r8)
nop
add $12685, %r11
vmovups (%r8), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %rdi
nop
nop
nop
nop
nop
sub $49259, %r15
lea addresses_WT_ht+0x5ce6, %rsi
nop
nop
nop
nop
nop
sub $65286, %rcx
mov $0x6162636465666768, %r15
movq %r15, %xmm3
and $0xffffffffffffffc0, %rsi
vmovaps %ymm3, (%rsi)
nop
nop
nop
nop
nop
lfence
lea addresses_WC_ht+0x1c2c3, %rdi
nop
nop
dec %rcx
movw $0x6162, (%rdi)
nop
cmp %rdi, %rdi
lea addresses_UC_ht+0x111e7, %rdi
nop
nop
nop
sub %rsi, %rsi
mov (%rdi), %ecx
cmp %rsi, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r8
pop %r15
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
// REPMOV
lea addresses_RW+0xf103, %rsi
lea addresses_PSE+0x18fa3, %rdi
add $39055, %rdx
mov $21, %rcx
rep movsl
nop
nop
inc %r11
// Faulty Load
mov $0x2594400000002c3, %rsi
nop
nop
dec %r15
movb (%rsi), %r11b
lea oracles, %rdi
and $0xff, %r11
shlq $12, %r11
mov (%rdi,%r11,1), %r11
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r15
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_RW'}, 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_PSE'}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 2}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_UC_ht'}}
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5}}
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 2}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_normal_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 5}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_UC_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 2}}
{'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
*/
|
software/hal/hpl/STM32/drivers/stm32-dcmi.adb | TUM-EI-RCS/StratoX | 12 | 15799 | <reponame>TUM-EI-RCS/StratoX
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of STMicroelectronics nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
-- --
-- This file is based on: --
-- --
-- @file stm32f4xx_hal_dcmi.c --
-- @author MCD Application Team --
-- @version V1.0.0 --
-- @date 18-February-2014 --
-- @brief Header file of DCMI HAL module. --
-- --
-- COPYRIGHT(c) 2014 STMicroelectronics --
------------------------------------------------------------------------------
package body STM32.DCMI is
procedure Set_Interrupt (Int : DCMI_Interrupts;
Set : Boolean);
------------------
-- DCMI_Enabled --
------------------
function DCMI_Enabled return Boolean is (DCMI_Periph.CR.ENABLE);
-----------------
-- Enable_DCMI --
-----------------
procedure Enable_DCMI is
begin
DCMI_Periph.CR.ENABLE := True;
end Enable_DCMI;
------------------
-- Disable_DCMI --
------------------
procedure Disable_DCMI is
begin
DCMI_Periph.CR.ENABLE := False;
end Disable_DCMI;
-------------------
-- Start_Capture --
-------------------
procedure Start_Capture (Mode : DCMI_Capture_Mode) is
begin
case Mode is
when Continous =>
DCMI_Periph.CR.CM := False;
when Snapshot =>
DCMI_Periph.CR.CM := True;
end case;
DCMI_Periph.CR.CAPTURE := True;
end Start_Capture;
------------------
-- Stop_Capture --
------------------
procedure Stop_Capture is
begin
DCMI_Periph.CR.CAPTURE := False;
end Stop_Capture;
------------------------
-- Capture_In_Progess --
------------------------
function Capture_In_Progess return Boolean is (DCMI_Periph.CR.CAPTURE);
---------------
-- Configure --
---------------
procedure Configure (Data_Mode : DCMI_Data_Mode;
Capture_Rate : DCMI_Capture_Rate;
Vertical_Polarity : DCMI_Polarity;
Horizontal_Polarity : DCMI_Polarity;
Pixel_Clock_Polarity : DCMI_Polarity;
Hardware_Sync : Boolean;
JPEG : Boolean)
is
begin
DCMI_Periph.CR.EDM := (case Data_Mode is
when DCMI_8bit => 2#00#,
when DCMI_10bit => 2#01#,
when DCMI_12bit => 2#10#,
when DCMI_14bit => 2#11#);
DCMI_Periph.CR.FCRC := (case Capture_Rate is
when Capture_All => 2#00#,
when Capture_Half => 2#01#,
when Capture_Quarter => 2#10#);
DCMI_Periph.CR.VSPOL := Vertical_Polarity = Active_High;
DCMI_Periph.CR.HSPOL := Horizontal_Polarity = Active_High;
DCMI_Periph.CR.PCKPOL := Pixel_Clock_Polarity = Active_High;
DCMI_Periph.CR.JPEG := JPEG;
DCMI_Periph.CR.ESS := not Hardware_Sync;
end Configure;
----------------------------------------
-- Set_Software_Synchronization_Codes --
----------------------------------------
procedure Set_Software_Synchronization_Codes
(Frame_Start : Byte;
Frame_End : Byte;
Line_Start : Byte;
Line_End : Byte)
is
begin
DCMI_Periph.ESCR.FSC := Frame_Start;
DCMI_Periph.ESCR.LSC := Line_Start;
DCMI_Periph.ESCR.FEC := Frame_End;
DCMI_Periph.ESCR.LEC := Line_End;
end Set_Software_Synchronization_Codes;
----------------------------------------
-- Set_Software_Synchronization_Masks --
----------------------------------------
procedure Set_Software_Synchronization_Masks
(Frame_Start : Byte;
Frame_End : Byte;
Line_Start : Byte;
Line_End : Byte)
is
begin
DCMI_Periph.ESUR.FSU := Frame_Start;
DCMI_Periph.ESUR.LSU := Line_Start;
DCMI_Periph.ESUR.FEU := Frame_End;
DCMI_Periph.ESUR.LEU := Line_End;
end Set_Software_Synchronization_Masks;
---------------------
-- Set_Crop_Window --
---------------------
procedure Set_Crop_Window
(X : UInt13;
Y : UInt14;
Width : UInt14;
Height : UInt14)
is
begin
DCMI_Periph.CWSTRT.VST := X;
DCMI_Periph.CWSTRT.HOFFCNT := Y;
DCMI_Periph.CWSIZE.CAPCNT := Width;
DCMI_Periph.CWSIZE.VLINE := Height;
end Set_Crop_Window;
-----------------
-- Enable_Crop --
-----------------
procedure Enable_Crop is
begin
DCMI_Periph.CR.CROP := True;
end Enable_Crop;
------------------
-- Disable_Crop --
------------------
procedure Disable_Crop is
begin
DCMI_Periph.CR.CROP := False;
end Disable_Crop;
----------
-- Data --
----------
function Data return Word is (DCMI_Periph.DR.Val);
----------
-- Data --
----------
function Data return DR_Byte_Field_Array is (DCMI_Periph.DR.Arr);
---------------------------
-- Data_Register_Address --
---------------------------
function Data_Register_Address return System.Address is
(DCMI_Periph.DR'Address);
--------------------
-- FIFO_Not_Empty --
--------------------
function FIFO_Not_Empty return Boolean is
(DCMI_Periph.SR.FNE);
------------------------
-- VSYNC_Active_Frame --
------------------------
function VSYNC_Active_Frame return Boolean is
(not DCMI_Periph.SR.VSYNC);
-----------------------
-- HSYNC_Active_Line --
-----------------------
function HSYNC_Active_Line return Boolean is
(not DCMI_Periph.SR.HSYNC);
-------------------
-- Set_Interrupt --
-------------------
procedure Set_Interrupt (Int : DCMI_Interrupts;
Set : Boolean)
is
begin
case Int is
when Line_Interrupt =>
DCMI_Periph.IER.LINE_IE := Set;
when VSYNC_Interrupt =>
DCMI_Periph.IER.VSYNC_IE := Set;
when SYNC_Error_Interrupt =>
DCMI_Periph.IER.ERR_IE := Set;
when Overrun_Interrupt =>
DCMI_Periph.IER.OVR_IE := Set;
when Frame_Interrupt =>
DCMI_Periph.IER.FRAME_IE := Set;
end case;
end Set_Interrupt;
----------------------
-- Enable_Interrupt --
----------------------
procedure Enable_Interrupt (Int : DCMI_Interrupts) is
begin
Set_Interrupt (Int, True);
end Enable_Interrupt;
-----------------------
-- Disable_Interrupt --
-----------------------
procedure Disable_Interrupt (Int : DCMI_Interrupts) is
begin
Set_Interrupt (Int, False);
end Disable_Interrupt;
---------------------
-- Clear_Interrupt --
---------------------
procedure Clear_Interrupt (Int : DCMI_Interrupts) is
begin
case Int is
when Line_Interrupt =>
DCMI_Periph.ICR.LINE_ISC := True;
when VSYNC_Interrupt =>
DCMI_Periph.ICR.VSYNC_ISC := True;
when SYNC_Error_Interrupt =>
DCMI_Periph.ICR.ERR_ISC := True;
when Overrun_Interrupt =>
DCMI_Periph.ICR.OVR_ISC := True;
when Frame_Interrupt =>
DCMI_Periph.ICR.FRAME_ISC := True;
end case;
end Clear_Interrupt;
--------------------------
-- Raw_Interrupt_Status --
--------------------------
function Raw_Interrupt_Status (Int : DCMI_Interrupts) return Boolean is
begin
case Int is
when Line_Interrupt =>
return DCMI_Periph.RIS.LINE_RIS;
when VSYNC_Interrupt =>
return DCMI_Periph.RIS.VSYNC_RIS;
when SYNC_Error_Interrupt =>
return DCMI_Periph.RIS.ERR_RIS;
when Overrun_Interrupt =>
return DCMI_Periph.RIS.OVR_RIS;
when Frame_Interrupt =>
return DCMI_Periph.RIS.FRAME_RIS;
end case;
end Raw_Interrupt_Status;
-----------------------------
-- Masked_Interrupt_Status --
-----------------------------
function Masked_Interrupt_Status (Int : DCMI_Interrupts) return Boolean is
begin
case Int is
when Line_Interrupt =>
return DCMI_Periph.MIS.LINE_MIS;
when VSYNC_Interrupt =>
return DCMI_Periph.MIS.VSYNC_MIS;
when SYNC_Error_Interrupt =>
return DCMI_Periph.MIS.ERR_MIS;
when Overrun_Interrupt =>
return DCMI_Periph.MIS.OVR_MIS;
when Frame_Interrupt =>
return DCMI_Periph.MIS.FRAME_MIS;
end case;
end Masked_Interrupt_Status;
end STM32.DCMI;
|
libsrc/strings/strsep_callee.asm | meesokim/z88dk | 0 | 167528 | <reponame>meesokim/z88dk<gh_stars>0
; char __CALLEE__ *strsep_callee(char *s, char *delim)
; on each call, return next token in s using delimiters from string delim
; 01.2007 aralbrec
PUBLIC strsep_callee
PUBLIC ASMDISP_STRSEP_CALLEE
EXTERN strchr_callee
EXTERN ASMDISP_STRCHR_CALLEE
;
.strsep_callee
pop hl ; ret addr
pop de ; *delim
ex (sp),hl ; ret addr <> **s
; enter : de = char *delim
; hl = char **s
; exit : token found : hl = ptr, C flag set
; else : hl = 0, NC flag set
; uses : af, c, de, hl
.asmentry
; ld a,h
; or l
; jr nz, newstart
; ld hl,(lastpos)
; ld a,h
; or l
; ret z
;.newstart
; keep **s
push hl
; **s -> *s
ld a,(hl)
inc hl
ld h,(hl)
ld l,a
ex de,hl
; hl = char *delim
; de = char *s
push de
.loop
ld a,(de)
or a
jr z, endstring
ld c,a
push hl
call strchr_callee + ASMDISP_STRCHR_CALLEE
pop hl
jr nc, endtoken
inc de
jp loop
.endstring
ld l,a
ld h,a
jr doret
.endtoken
ex de,hl
ld (hl),0
inc hl
scf
.doret
;ld (lastpos),hl
;pop hl
;pop de ; *s
;pop hl ; **s
pop de ; original *s
ex de,hl
ex (sp),hl ; *s <> **s
ld (hl),e ; update **s
inc hl
ld (hl),d
;ex de,hl
pop hl ; *s
ret
;.lastpos
;
; defw 0
DEFC ASMDISP_STRSEP_CALLEE = # asmentry - strsep_callee
|
libs/kernel/src/asm_paging.asm | AlexandreRouma/MemeOS | 12 | 179570 | .text
.globl ASM_LOAD_PAGE_DIRECTORY
ASM_LOAD_PAGE_DIRECTORY:
push %ebp
mov %esp, %ebp
mov 8(%esp), %eax
mov %eax, %cr3
mov %ebp, %esp
pop %ebp
ret
.text
.globl ASM_ENABLE_PAGING
ASM_ENABLE_PAGING:
push %ebp
mov %esp, %ebp
mov %cr0, %eax
or $0x80000000, %eax
mov %eax, %cr0
mov %ebp, %esp
pop %ebp
ret
|
examples/src/wuclient.adb | sonneveld/adazmq | 0 | 14139 | -- Weather update client
-- Connects SUB socket to tcp://localhost:5556
-- Collects weather updates and finds avg temp in zipcode
with Ada.Command_Line;
with Ada.Text_IO;
with GNAT.Formatted_String;
with ZMQ;
procedure WUClient is
use type GNAT.Formatted_String.Formatted_String;
Number_Iterations : constant := 100;
type Zip_Code_T is range 0 .. 100000;
type Temperature_T is range -80 .. 135;
type Rel_Humidity_T is range 10 .. 60;
package Zip_Code_Text_IO is new Ada.Text_IO.Integer_IO (Zip_Code_T);
package Temperature_Text_IO is new Ada.Text_IO.Integer_IO (Temperature_T);
package Rel_Humidity_Text_IO is new Ada.Text_IO.Integer_IO (Rel_Humidity_T);
function Client (Zip_Code : Zip_Code_T := 10001) return Ada.Command_Line.Exit_Status
is
begin
-- Socket to talk to server
Ada.Text_IO.Put_Line ("Collecting updates from weather server...");
declare
-- Prepare our context and publisher
Context : ZMQ.Context_Type := ZMQ.New_Context;
Subscriber : ZMQ.Socket_Type'Class := Context.New_Socket (ZMQ.ZMQ_SUB);
begin
Subscriber.Connect ("tcp://localhost:5556");
-- Subscribe to zipcode, default is NYC, 10001
declare
Filter : constant String := -(+"%05d "&Integer (Zip_Code));
begin
Subscriber.Set_Sock_Opt (ZMQ.ZMQ_SUBSCRIBE, Filter);
end;
-- Process 100 updates
declare
Total_Temp : Long_Integer := 0;
Average : Long_Integer;
begin
for Update_Nbr in 1 .. Number_Iterations loop
declare
Buf : constant String := Subscriber.Recv;
Zip_Code : Zip_Code_T;
Temperature : Temperature_T;
Rel_Humidity : Rel_Humidity_T;
Last : Positive;
begin
Zip_Code_Text_IO.Get (From => Buf, Item => Zip_Code, Last => Last);
Temperature_Text_IO.Get (From => Buf (Last+1 .. Buf'Last), Item => Temperature, Last => Last);
Rel_Humidity_Text_IO.Get (From => Buf (Last+1 .. Buf'Last), Item => Rel_Humidity, Last => Last);
Total_Temp := Total_Temp + Long_Integer (Temperature);
end;
end loop;
Average := Total_Temp / Long_Integer (Number_Iterations);
Ada.Text_IO.Put_Line (-(+"Average temperature for zipcode '%05d' was %dF" & Integer (Zip_Code) & Average));
end;
Subscriber.Close;
Context.Term;
end;
return 0;
end Client;
function Main return Ada.Command_Line.Exit_Status
is
begin
if Ada.Command_Line.Argument_Count = 1 then
return Client (Zip_Code_T'Value (Ada.Command_Line.Argument(1)));
elsif Ada.Command_Line.Argument_Count = 0 then
return Client;
else
Ada.Text_IO.Put_Line (Ada.Text_IO.Standard_Error, "Usage: wuclient [zipcode]");
return 1;
end if;
end Main;
begin
Ada.Command_Line.Set_Exit_Status (Main);
end WUClient;
|
methods/getGameItemOwner.asm | caffeinum/pravda-contracts | 3 | 24469 | <reponame>caffeinum/pravda-contracts
push 1
push "getGameItemOwner"
push xF5AB1676D87235E4B5B1830C00A5BC783B9A58D2DC9AFE23D5FA387F1C80736E
push 2
pcall
|
src/uebertragungsverhalten_2.als | hemmerling/spice-schaltungssimulation | 0 | 5076 | * Schematics Aliases *
.ALIASES
V_V1 V1(+=$N_0001 -=0 )
R_R2 R2(1=$N_0003 2=$N_0002 )
R_R1 R1(1=0 2=$N_0003 )
V_V- V-(+=$N_0004 -=0 )
X_N1A N1A(+=$N_0003 -=$N_0001 V+=$N_0004 V-=$N_0005 OUT=$N_0002 )
V_V+ V+(+=0 -=$N_0005 )
.ENDALIASES
|
gbasm/tests/test.asm | MrCairo/pygbasm | 2 | 5823 | <filename>gbasm/tests/test.asm
SECTION "NewSection", WRAM0[$C100]
IMAGES EQU $10
BIGVAL EQU $C020
.program_start:
ld B, $16 ; This is a comment
ld BC, $FFD2
ld a, IMAGES
LD (BC), A
JR .program_start
LD (BIGVAL), A
ret
|
svg_helpers.ads | zyron92/banana_tree_generator | 0 | 4060 | with Parseur, Ada.Text_Io, Ada.Integer_Text_Io;
use Parseur, Ada.Text_Io, Ada.Integer_Text_Io;
package Svg_Helpers is
type RGB is record
R,G,B : Natural;
end record;
procedure Header(Width, Height: in Float; Fichier: in File_type);
procedure Footer(Fichier: in File_Type);
--Translation de l'image pour qu'elle reste toujours visible car nous pouvons avoir des points avec des coordonnées négatives
procedure Translation_Image(Coord_X, Coord_Y: in Float; Fichier: in File_type);
--Application d'une couleur et d'une épaisseur pour l'ensemble des lignes droites ou des courbes
procedure Appliquer_Couleur_Epaisseur(Est_Arrete: in Boolean; Couleur: in RGB; Epaisseur: in String; Fichier: in File_type);
procedure Fin_Couleur_Translation(Fichier: in File_type);
--Tracé du segment entre P1 et P2
procedure Tracer_Ligne_Droite(P1,P2: in Coord_Point; Fichier: in File_type);
--Tracé de la courbe de bézier
procedure Tracer_Courbe(Point_Dep,Ctl_Dep,Ctl_Arv,Point_Arv: in Coord_Point; Fichier: in File_type);
--Calcul de la taille (largeur x hauteur) de fichier rendu SVG et de la translation de la figure grâce aux informations sur les coordonnées des sommets
procedure Taille_SVG_Translation(W,H,Translat_X,Translat_Y: out Float);
end Svg_Helpers;
|
Categories/Functor/Construction/Product.agda | elpinal/exsub-ccc | 3 | 6552 | <filename>Categories/Functor/Construction/Product.agda
module Categories.Functor.Construction.Product where
open import Categories.Category
open import Categories.Category.Cartesian
open import Categories.Category.BinaryProducts
open import Categories.Functor.Bifunctor
open import Data.Product using (_,_)
module _ {o ℓ e} (𝒞 : Category o ℓ e) (cartesian : Cartesian 𝒞) where
open Cartesian cartesian
open BinaryProducts products
open Category 𝒞
Product : Bifunctor 𝒞 𝒞 𝒞
Product = record
{ F₀ = λ (x , y) → x × y
; F₁ = λ (f , g) → f ⁂ g
; identity = Equiv.trans (⟨⟩-cong₂ identityˡ identityˡ) η
; homomorphism = Equiv.sym ⁂∘⁂
; F-resp-≈ = λ (x , y) → ⁂-cong₂ x y
}
|
oeis/072/A072987.asm | neoneye/loda-programs | 11 | 1540 | <reponame>neoneye/loda-programs
; A072987: FIBMOD numbers: a(1) = a(2) = 1, a(n) = a(n-1) mod (n-1) + a(n-2) mod (n-2).
; Submitted by <NAME>(s4)
; 1,1,1,2,3,5,8,6,7,13,10,13,11,12,23,20,12,16,28,25,14,19,33,29,15,20,35,28,8,8,16,24,40,31,38,34,37,34,34,68,62,49,28,35,63,53,25,32,57,40,48,88,84,67,44,57,45,46,91,78,50,68,56,62,118,115,102,84,51,67,118,114,89,58,74,132,130,109,84,36,41,77,118,112,63,91,68,73,141,125,87,122,117,54,78,132,114,53,70,123
mov $1,2
mov $2,1
mov $4,1
lpb $0
sub $0,1
sub $1,1
mod $2,$1
add $1,2
mov $3,$4
mov $4,$2
add $2,$3
lpe
mov $0,$2
|
agda/topic/order/2013-04-01-sorting-francesco-mazzo/x1-Base.agda | haroldcarr/learn-haskell-coq-ml-etc | 36 | 4157 | <reponame>haroldcarr/learn-haskell-coq-ml-etc
module x1-Base where
data List (X : Set) : Set where
[] : List X
_∷_ : X → List X → List X
infixr 5 _∷_
foldr : ∀ {A} {B : Set} → (A → B → B) → B → List A → B
foldr f b [] = b
foldr f b (a ∷ as) = f a (foldr f b as)
data Either (A : Set) (B : Set) : Set where
left : A → Either A B
right : B → Either A B
[_,_] : ∀ {A B} {C : Set} → (A → C) → (B → C) → Either A B → C
[ f , g ] (left x) = f x
[ f , g ] (right x) = g x
-- Unhabited type
data Empty : Set where
absurd : {X : Set} → Empty → X
absurd ()
-- use Empty to define something close to negation in logic:
-- e.g., terms of type ¬ (3 > 4)
infix 3 ¬_
¬_ : Set → Set
¬ X = X → Empty
-- binary relation on a type X
Rel : Set → Set₁
Rel X = X → X → Set
-- decidable relations
Decidable : ∀ {X} → Rel X → Set
Decidable R = ∀ x y → Either (R x y) (¬ (R x y))
-- To sort a list, need two relations on elements of list:
-- equality
record Equivalence {X} (_≈_ : Rel X) : Set₁ where
field
refl : ∀ {x} → x ≈ x
sym : ∀ {x y} → x ≈ y → y ≈ x
trans : ∀ {x y z} → x ≈ y → y ≈ z → x ≈ z
-- and ordering
record TotalOrder {X} (_≈_ : Rel X) (_≤_ : Rel X) : Set₁ where
field
antisym : ∀ {x y} → x ≤ y → y ≤ x → x ≈ y
trans : ∀ {x y z} → x ≤ y → y ≤ z → x ≤ z
total : ∀ x y → Either (x ≤ y) (y ≤ x)
reflexive : ∀ {x y} → x ≈ y → x ≤ y
equivalence : Equivalence _≈_
|
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/Net.asm | prismotizm/gigaleak | 0 | 10937 | Name: Net.asm
Type: file
Size: 14595
Last-Modified: '1992-11-18T01:48:24Z'
SHA-1: 5779A79E0059201779C4052E55B5ED4AA3F39C2A
Description: null
|
oeis/217/A217736.asm | neoneye/loda-programs | 11 | 103442 | ; A217736: Sum of first n squares of semiprimes.
; Submitted by <NAME>
; 16,52,133,233,429,654,1095,1579,2204,2880,3969,5125,6350,7794,9315,11431,13832,16433,19458,22707,26071,29915,34140,38901,44377,50306,57030,64255,71651,79220,87501,96150,104986,114011,125247,137568,150793,164717,178878,193519,208403,223532,240173,257862,275818,295699,315863,336312,357337,378653,402678,427642,452923,478844,506400,534961,566290,597974,631463,665688,700657,738293,778694,819498,860707,902732,945168,988849,1034218,1080014,1126239,1173328,1220852,1268813,1317654,1368730,1423955
lpb $0
mov $2,$0
sub $0,1
seq $2,74985 ; Squares of semiprimes (A001358).
add $3,$2
lpe
mov $0,$3
add $0,16
|
libsrc/math/genmath/norm4.asm | meesokim/z88dk | 0 | 21024 | ;
; Z88dk Generic Floating Point Math Library
;
; Normalise 48bit number in c ix de b
; current exponent in fa+5
; Result -> fa +5
;
; $Id: norm4.asm,v 1.3 2015/01/19 01:32:56 pauloscustodio Exp $:
PUBLIC norm4
EXTERN fa
.norm4 XOR A
.norm6 LD (fa+5),A
RET
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_21829_433.asm | ljhsiun2/medusa | 9 | 98833 | <reponame>ljhsiun2/medusa<filename>Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_21829_433.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r13
push %r15
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1a74f, %r12
nop
nop
nop
nop
nop
sub %r10, %r10
mov $0x6162636465666768, %r15
movq %r15, (%r12)
cmp $2691, %rbp
lea addresses_UC_ht+0x1daf5, %r11
nop
nop
nop
nop
nop
add %rcx, %rcx
mov (%r11), %r13w
nop
cmp %r10, %r10
lea addresses_normal_ht+0xc14f, %rsi
lea addresses_normal_ht+0xad2f, %rdi
nop
nop
nop
nop
nop
xor $46277, %r15
mov $74, %rcx
rep movsq
nop
nop
xor $20348, %r10
lea addresses_A_ht+0x1b94f, %rsi
nop
nop
nop
nop
sub $19698, %r15
movb (%rsi), %cl
nop
nop
add %rbp, %rbp
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r13
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r15
push %r9
push %rbp
push %rbx
push %rdi
// Load
lea addresses_D+0x820f, %r15
nop
and $42517, %r9
movb (%r15), %r14b
inc %r9
// Store
lea addresses_WT+0xf37d, %rbp
clflush (%rbp)
sub %rbx, %rbx
mov $0x5152535455565758, %r13
movq %r13, %xmm6
vmovups %ymm6, (%rbp)
nop
nop
nop
nop
nop
inc %r9
// Store
mov $0xf8f, %r15
nop
xor $31181, %r13
movb $0x51, (%r15)
nop
and $56820, %r9
// Faulty Load
mov $0x453cdd000000094f, %rbx
inc %rbp
mov (%rbx), %r14
lea oracles, %r13
and $0xff, %r14
shlq $12, %r14
mov (%r13,%r14,1), %r14
pop %rdi
pop %rbx
pop %rbp
pop %r9
pop %r15
pop %r14
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 6}}
[Faulty Load]
{'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 8, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 7}}
{'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
source/sql/firebird/matreshka-internals-sql_drivers-firebird-queries.adb | svn2github/matreshka | 24 | 11102 | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- SQL Database Access --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2014, <NAME> <<EMAIL>> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with Ada.Numerics.Discrete_Random;
with Matreshka.Internals.SQL_Drivers.Firebird.Fields;
with Matreshka.Internals.SQL_Parameter_Rewriters.Firebird;
package body Matreshka.Internals.SQL_Drivers.Firebird.Queries is
SQL_Dialect : constant Isc_Db_Dialect := 3;
Rewriter : SQL_Parameter_Rewriters.Firebird.Firebird_Parameter_Rewriter;
function Random_String (Length : Interfaces.C.size_t) return Isc_String;
----------------
-- Bind_Value --
----------------
overriding procedure Bind_Value
(Self : not null access Firebird_Query;
Name : League.Strings.Universal_String;
Value : League.Holders.Holder;
Direction : SQL.Parameter_Directions)
is
pragma Unreferenced (Direction);
begin
Self.Parameters.Set_Value (Name, Value);
end Bind_Value;
-----------------
-- Bound_Value --
-----------------
overriding function Bound_Value
(Self : not null access Firebird_Query;
Name : League.Strings.Universal_String) return League.Holders.Holder
is
pragma Unreferenced (Self);
pragma Unreferenced (Name);
begin
return League.Holders.Empty_Holder;
end Bound_Value;
-------------------
-- Error_Message --
-------------------
overriding function Error_Message
(Self : not null access Firebird_Query)
return League.Strings.Universal_String is
begin
return Self.Error;
end Error_Message;
-------------
-- Execute --
-------------
overriding function Execute
(Self : not null access Firebird_Query) return Boolean
is
Value : League.Holders.Holder;
Result : Isc_Result_Code;
begin
-- Prepare parameter values.
for Idx in 1 .. Self.Parameters.Number_Of_Positional loop
Value := Self.Parameters.Value (Idx);
Self.Sql_Params.Fields.Element
(Isc_Valid_Field_Index (Idx)).Value (Value);
end loop;
Self.Sql_Record.Clear_Values;
if Self.Sql_Type = DDL then
return Self.Execute_Immediate;
end if;
case Self.Sql_Type is
when Simple_Select | Select_For_Update =>
Result := Isc_Dsql_Execute
(Self.Status'Access, Databases.Firebird_Database'Class
(Self.Database.all).Transaction_Handle,
Self.Stmt_Handle'Access, Sql_Dialect, Self.Sql_Params.Sqlda);
if Result > 0 then
Self.Error := Get_Error (Self.Status'Access);
return False;
end if;
Self.State := Active;
Self.Sql_Record.Clear_Values;
when Exec_Procedure =>
Result := Isc_Dsql_Execute2
(Self.Status'Access, Databases.Firebird_Database'Class
(Self.Database.all).Transaction_Handle,
Self.Stmt_Handle'Access, Sql_Dialect,
Self.Sql_Params.Sqlda, Self.Sql_Record.Sqlda);
if Self.Status (1) = 1
and then Self.Status (2) > 0
then
Self.Error := Get_Error (Self.Status'Access);
return False;
end if;
when Commit | Rollback =>
return False;
when Unknown | Insert | Update |
Delete | DDL | Get_Segment |
Put_Segment | Start_Transaction |
Set_Generator | Save_Point_Operation =>
Result := Isc_Dsql_Execute
(Self.Status'Access, Databases.Firebird_Database'Class
(Self.Database.all).Transaction_Handle,
Self.Stmt_Handle'Access, Sql_Dialect, Self.Sql_Params.Sqlda);
if Result > 0 then
Self.Error := Get_Error (Self.Status'Access);
return False;
end if;
end case;
Self.Is_Valid := False;
return True;
exception
when others =>
Self.Free_Handle;
return False;
end Execute;
-----------------------
-- Execute_Immediate --
-----------------------
function Execute_Immediate
(Self : not null access Firebird_Query) return Boolean
is
Result : Isc_Result_Code;
begin
Self.Free_Handle;
declare
Statement : constant Isc_String := To_Isc_String (Self.Sql_Text);
begin
Result :=
Isc_Dsql_Execute_Immediate
(Self.Status'Access,
Databases.Firebird_Database'Class
(Self.Database.all).Database_Handle,
Databases.Firebird_Database'Class
(Self.Database.all).Transaction_Handle,
Statement'Length, Statement,
Sql_Dialect,
Self.Sql_Params.Sqlda);
end;
if Result > 0 then
Self.Error := Get_Error (Self.Status'Access);
return False;
end if;
return True;
end Execute_Immediate;
------------
-- Finish --
------------
overriding procedure Finish (Self : not null access Firebird_Query) is
use type Isc_Long;
EC : constant Isc_Result_Codes (1 .. 2)
:= (Isc_Bad_Stmt_Handle, Isc_Dsql_Cursor_Close_Err);
Result : Isc_Result_Code;
pragma Warnings (Off, Result);
begin
if Self.Stmt_Handle /= Null_Isc_Stmt_Handle then
case Self.Sql_Type is
when Simple_Select | Select_For_Update =>
Result :=
Isc_Dsql_Free_Statement
(Self.Status'Access, Self.Stmt_Handle'Access, Isc_Sql_Close);
if Self.Status (1) = 1
and then Self.Status (2) > 0
and then not Check_For_Error (Self.Status'Access, EC)
then
Self.Error := Get_Error (Self.Status'Access);
end if;
when others =>
Self.Free_Handle;
end case;
end if;
Self.State := Inactive;
end Finish;
-----------------
-- Free_Handle --
-----------------
procedure Free_Handle (Self : not null access Firebird_Query) is
use type Isc_Long;
Result : Isc_Result_Code;
begin
Self.Sql_Record.Count (0);
if Self.Stmt_Handle /= Null_Isc_Stmt_Handle then
Result :=
Isc_Dsql_Free_Statement
(Self.Status'Access, Self.Stmt_Handle'Access, Isc_Sql_Drop);
Self.Stmt_Handle := Null_Isc_Stmt_Handle;
Self.State := Inactive;
if Self.Status (1) = 1
and then Result > 0
and then Result /= Isc_Bad_Stmt_Handle
then
Self.Error := Get_Error (Self.Status'Access);
end if;
end if;
end Free_Handle;
----------------
-- Initialize --
----------------
procedure Initialize
(Self : not null access Firebird_Query'Class;
Database : not null access Databases.Firebird_Database'Class;
Codec : access League.Text_Codecs.Text_Codec;
Utf : Boolean) is
begin
Self.Sql_Record.Codec := Codec;
Self.Sql_Params.Codec := Codec;
Self.Sql_Record.Utf := Utf;
Self.Sql_Params.Utf := Utf;
Self.Is_Valid := False;
SQL_Drivers.Initialize (Self, Database_Access (Database));
end Initialize;
----------------
-- Invalidate --
----------------
overriding procedure Invalidate (Self : not null access Firebird_Query) is
begin
Self.Finish;
if Self.Stmt_Handle /= Null_Isc_Stmt_Handle then
Self.Free_Handle;
end if;
Self.Sql_Params.Finalize;
Self.Sql_Record.Finalize;
-- Call Invalidate of parent tagged type.
Abstract_Query (Self.all).Invalidate;
end Invalidate;
---------------
-- Is_Active --
---------------
overriding function Is_Active
(Self : not null access Firebird_Query) return Boolean is
begin
return Self.State = Active;
end Is_Active;
--------------
-- Is_Valid --
--------------
overriding function Is_Valid
(Self : not null access Firebird_Query) return Boolean is
begin
return Self.Is_Valid;
end Is_Valid;
----------
-- Next --
----------
overriding function Next
(Self : not null access Firebird_Query) return Boolean
is
use type Isc_Long;
Result : Isc_Result_Code;
begin
Result :=
Isc_Dsql_Fetch
(Self.Status'Access,
Self.Stmt_Handle'Access,
Sql_Dialect,
Self.Sql_Record.Sqlda);
if Result > 0 then
if Result = 100 then
Self.Is_Valid := False;
return False;
else
declare
EC : constant Isc_Result_Codes (1 .. 1)
:= (others => Isc_Dsql_Cursor_Err);
begin
if Check_For_Error (Self.Status'Access, EC) then
Self.Is_Valid := False;
return False;
else
Self.Error := Get_Error (Self.Status'Access);
Self.Finish;
Self.Is_Valid := False;
return False;
end if;
end;
end if;
else
Self.Is_Valid := True;
return True;
end if;
end Next;
-------------
-- Prepare --
-------------
overriding function Prepare
(Self : not null access Firebird_Query;
Query : League.Strings.Universal_String) return Boolean
is
use type Records.Isc_Sqlda_Access;
Result : Isc_Result_Code;
Field : Fields.Field_Access;
begin
Self.Finish;
Rewriter.Rewrite (Query, Self.Sql_Text, Self.Parameters);
Self.Sql_Params.Count
(Isc_Field_Index (Self.Parameters.Number_Of_Positional));
-- add params
for Idx
in 1 .. Isc_Field_Index (Self.Parameters.Number_Of_Positional)
loop
Field := Self.Sql_Params.Fields.Element (Idx);
Field.Set_Null (True);
Field.Sqlvar.Sqltype := Isc_Type_Empty;
end loop;
Result :=
Isc_Dsql_Alloc_Statement2
(Self.Status'Access,
Databases.Firebird_Database'Class
(Self.Database.all).Database_Handle,
Self.Stmt_Handle'Access);
if Result > 0 then
Self.Error := Get_Error (Self.Status'Access);
return False;
end if;
Self.Sql_Record.Count (1);
declare
Statement : constant Isc_String := To_Isc_String (Self.Sql_Text);
begin
Result :=
Isc_Dsql_Prepare
(Self.Status'Access,
Databases.Firebird_Database'Class
(Self.Database.all).Transaction_Handle,
Self.Stmt_Handle'Access, 0, Statement,
Sql_Dialect,
Self.Sql_Record.Sqlda);
if Result > 0 then
Self.Error := Get_Error (Self.Status'Access);
return False;
end if;
end;
-- Get the type of the statement
declare
use type Interfaces.C.char;
Len : Isc_Long;
Buffer : aliased Isc_String := (1 .. 9 => Interfaces.C.nul);
Item : Isc_String (1 .. 1);
begin
Item (1) := Isc_Info_Sql_Stmt_Type;
Result :=
Isc_Dsql_Sql_Info
(Self.Status'Access,
Self.Stmt_Handle'Access,
1,
Item,
8,
Buffer'Access);
if Result > 0 then
Self.Error := Get_Error (Self.Status'Access);
return False;
end if;
if Buffer (1) /= Isc_Info_Sql_Stmt_Type then
return False;
end if;
Len := Isc_Vax_Integer (Buffer (2 .. 4), 2);
Self.Sql_Type :=
Query_Sql_Type'Val
(Isc_Vax_Integer (Buffer (4 .. 9), Isc_Short (Len)));
end;
if Self.Sql_Type = Select_For_Update then
Self.Cursor_Name := Random_String (10);
Result :=
Isc_Dsql_Set_Cursor_Name
(Self.Status'Access, Self.Stmt_Handle'Access, Self.Cursor_Name, 0);
if Result > 0 then
Self.Error := Get_Error (Self.Status'Access);
return False;
end if;
end if;
-- Done getting the type
case Self.Sql_Type is
when Get_Segment | Put_Segment | Start_Transaction =>
Self.Free_Handle;
return False;
when Insert
| Update
| Delete
| Simple_Select
| Select_For_Update
| Exec_Procedure
=>
if Self.Sql_Params.Sqlda /= null then
Result :=
Isc_Dsql_Describe_Bind
(Self.Status'Access,
Self.Stmt_Handle'Access,
Sql_Dialect,
Self.Sql_Params.Sqlda);
if Result > 0 then
Self.Error := Get_Error (Self.Status'Access);
return False;
end if;
end if;
Self.Sql_Params.Init;
case Self.Sql_Type is
when Simple_Select | Select_For_Update | Exec_Procedure =>
if Self.Sql_Record.Sqlda.Sqld
> Self.Sql_Record.Sqlda.Sqln
then
Self.Sql_Record.Count (Self.Sql_Record.Sqlda.Sqld);
Result :=
Isc_Dsql_Describe
(Self.Status'Access,
Self.Stmt_Handle'Access,
Sql_Dialect,
Self.Sql_Record.Sqlda);
if Result > 0 then
Self.Error := Get_Error (Self.Status'Access);
return False;
end if;
else
if Self.Sql_Record.Sqlda.Sqld = 0 then
Self.Sql_Record.Count (0);
end if;
end if;
Self.Sql_Record.Init;
when Unknown
| Insert
| Update
| Delete
| DDL
| Get_Segment
| Put_Segment
| Start_Transaction
| Commit
| Rollback
| Set_Generator
| Save_Point_Operation
=>
Self.Sql_Record.Count (0);
end case;
when Unknown
| DDL
| Commit
| Rollback
| Set_Generator
| Save_Point_Operation
=>
null;
end case;
return True;
exception
when others =>
if Self.Stmt_Handle /= Null_Isc_Stmt_Handle then
Self.Free_Handle;
end if;
return False;
end Prepare;
-------------------
-- Random_String --
-------------------
function Random_String (Length : Interfaces.C.size_t) return Isc_String is
use type Interfaces.C.size_t;
use type Interfaces.C.char;
subtype A_Z is Interfaces.C.char range '0' .. 'z';
package Rand is new Ada.Numerics.Discrete_Random (A_Z);
Gen : Rand.Generator;
Str : Isc_String (1 .. Length);
Char : Interfaces.C.char;
begin
Rand.Reset (Gen);
for Idx in 1 .. Length - 1 loop
loop
Char := Rand.Random (Gen);
exit when
(Char >= '0' and then Char <= '9')
or else (Char >= 'A' and then Char <= 'Z')
or else (Char >= 'a' and then Char <= 'z');
end loop;
Str (Idx) := Char;
end loop;
Str (Str'Last) := Interfaces.C.nul;
return Str;
end Random_String;
-----------
-- Value --
-----------
overriding function Value
(Self : not null access Firebird_Query;
Index : Positive) return League.Holders.Holder is
begin
return
Self.Sql_Record.Fields.Element (Isc_Valid_Field_Index (Index)).Value;
end Value;
end Matreshka.Internals.SQL_Drivers.Firebird.Queries;
|
mc-sema/validator/x86_64/tests/SBB8i8.asm | randolphwong/mcsema | 2 | 92097 | <reponame>randolphwong/mcsema<filename>mc-sema/validator/x86_64/tests/SBB8i8.asm
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; SBB8i8
mov al, 0x7
;TEST_BEGIN_RECORDING
sbb al, 0x5
;TEST_END_RECORDING
|
Source/GBSound.asm | AbePralle/GameBoySoundManipulator | 0 | 245836 | <filename>Source/GBSound.asm
;===============================================================================
; GBSound.asm
; 2000.03.06 by <NAME>
;===============================================================================
MPRINT: MACRO
push bc
ld a,\4
ld [textColor],a
ld b,\2
ld c,\3
ld hl,\1
call PrintText
pop bc
ENDM
PRINTCURSOR: MACRO
ld a,\2
ld [textColor],a
ld hl,\1
call PrintTextAtCursor
ENDM
UPDATESCREEN: MACRO
ld a,1
ldio [backBufferReady],a
ENDM
LOADA: MACRO
ld a,\2
ld \1,a
ENDM
DPAD_RIGHT EQU $01
DPAD_LEFT EQU $02
DPAD_UP EQU $04
DPAD_DOWN EQU $08
BUTTON_A EQU $10
BUTTON_B EQU $20
BUTTON_SELECT EQU $40
BUTTON_START EQU $80
BUTTON_ALL EQU $f0
;---------------------------------------------------------------------
; Variables
;---------------------------------------------------------------------
SECTION "UserVars",WRAM0[$c000]
backBuffer: DS 608 ;must start on even $10 address
waveBuffer: DS 128 ;must start on even $10 address
padding: DS 32
attributeBuffer: DS 608 ;must start on even $10 address
padding2: DS 160
spriteOAMBuffer: DS 160 ;must start on even $100 address
curJoy1: DS 1
curSound: DS 1 ;sound type being manipulated
textColor: DS 1
state1_data: DS 5
state2_data: DS 4
state3_data: DS 22
state4_data: DS 4
curByte: DS 1
curByteMask: DS 1
cursor_x: DS 1
cursor_y: DS 1
copyWaveChars: DS 1
SECTION "User",ROM0
;---------------------------------------------------------------------
; Routine: UserMain
; Description: Sets up stuff then goes into main loop
;---------------------------------------------------------------------
UserMain::
call InitGraphics
call InitSound
call ClearScreen
xor a
ld [copyWaveChars],a
;turn on the vblank interrupt
ld a,[$ffff]
or 1
ld [$ffff],a
;set up initial values for sounds
LOADA [state1_data],%00000000 ;sweep
LOADA [state1_data+1],%10000000 ;duty+length
LOADA [state1_data+2],%11110000 ;envelope
LOADA [state1_data+3],%00000000 ;freq_lo
LOADA [state1_data+4],%11000001 ;freq_hi
LOADA [state2_data],%10000000 ;duty+length
LOADA [state2_data+1],%11110000 ;envelope
LOADA [state2_data+2],%00000000 ;freq_lo
LOADA [state2_data+3],%11000001 ;freq_hi
LOADA [state3_data], %10000000 ;play sound
LOADA [state3_data+1],%00000000 ;length
LOADA [state3_data+2],%00100000 ;output level
LOADA [state3_data+3],%00000000 ;frequency lo
LOADA [state3_data+4],%11000001 ;frequency hi
LOADA [state4_data], %00000000 ;length
LOADA [state4_data+1],%11110000 ;envelope
LOADA [state4_data+2],%00000000 ;frequency
LOADA [state4_data+3],%11000000 ;init/consecutive
ld hl,state3_data+5
ld c,8
ld a,$ff
.fill1 ld [hl+],a
dec c
jr nz,.fill1
xor a
ld c,8
.fill2 ld [hl+],a
dec c
jr nz,.fill2
ei
call ShowInfo
ld a,0
ld [curSound],a
jr .advanceState
.stateLoop
ldio a,[backBufferReady] ;screen been drawn yet?
or a
jr nz,.stateLoop
call GetInput
ld a,[curJoy1]
and BUTTON_SELECT
jr z,.checkState1
;advance state
.advanceState
.waitSelectRelease
call GetInput
ld a,[curJoy1]
and BUTTON_SELECT
jr nz,.waitSelectRelease
xor a
ld [curByte],a
ld a,[curSound]
and %11
inc a
;cp 3
;jr nz,.soundOkay
;inc a ;skip sound 3 for now
.soundOkay
ld [curSound],a
cp 1
jr nz,.checkInitSound2
ld a,%01110000
ld [curByteMask],a
jp .checkState1
.checkInitSound2
cp 2
jr nz,.checkInitSound3
ld a,1
ld [$ff1a],a ;turn sound on
ld a,%11000000
ld [curByteMask],a
jr .checkState1
.checkInitSound3
cp 3
jr nz,.checkInitSound4
ld a,1
ld [curByte],a
ld a,%11110000
ld [curByteMask],a
jr .checkState1
.checkInitSound4
ld a,%00111111
ld [curByteMask],a
jr .checkState1
.checkState1
;handle value increase/decrease
ld a,[curJoy1]
bit 2,a
jr z,.tryDown
call IncrementBits
jr .tryButtonA
.tryDown
bit 3,a
jr z,.tryButtonA
call DecrementBits
.tryButtonA
ld a,[curJoy1]
and (BUTTON_A | BUTTON_START)
jr z,.reallyCheckState1
call PlayCurrentSound
.waitRelease
call GetInput
ld a,[curJoy1]
and (BUTTON_A | BUTTON_START)
jr nz,.waitRelease
.reallyCheckState1
ld a,[curSound]
cp a,1
jr nz,.checkState2
call OnState1
jp .stateLoop
.checkState2
cp a,2
jr nz,.checkState3
call OnState2
jp .stateLoop
.checkState3
cp a,3
jr nz,.checkState4
call OnState3
jp .stateLoop
.checkState4
cp a,4
jr nz,.done
call OnState4
.done
jp .stateLoop
;---------------------------------------------------------------------
; Routine: InitSound
; Description: Turns on the sound at full volume both output
; channels
;---------------------------------------------------------------------
InitSound:
;turn on sound at master control
ld a,%10000000
ld [$ff26],a
ld a,$ff
ld [$ff24],a ;full volume
ld [$ff25],a ;both channels
ret
;---------------------------------------------------------------------
; Routine: InitGraphics
; Alters: af
; Description: Sets the display, defines colors, and loads the font.
;---------------------------------------------------------------------
InitGraphics:
push bc
push de
push hl
call DisplayOffWaitVRAM
call SetupSpriteHandler
;set screen offsets to 0
xor a
ldh [$ff43], a
ldh [$ff42], a
call SetupColorPalette
call LoadFont
;turn LCD on
ld a,%11000011
ld [$ff40], a ;lcdc control
pop hl
pop de
pop bc
ret
;---------------------------------------------------------------------
; Routine: DisplayOffWaitVRAM
; Alters: af
; Description: Turns off the screen and waits until the VRAM
; is accessible
;---------------------------------------------------------------------
DisplayOffWaitVRAM:
;turn display off
ld a,[$ffff] ;get interrupts enabled
push af ;save original value
and %11111110 ;turn off vblank interrupt
ld [$ffff],a ;"interrupt THIS!"
.wait ld a,[$ff44] ;get line being drawn
cp 144 ;wait until line is >= 144
jr c,.wait
ld a,[$ff40] ;LCDC register
and %01111111 ;turn off screen
ld [$ff40],a
pop af ;retrieve original interrupt settings
ld [$ffff],a
.waitVRAM
ld a,[$ff41] ;STAT register
and %00000010 ;bit 1 needs to be zero to access VRAM
jr nz,.waitVRAM
ret
;---------------------------------------------------------------------
; Routine: SetupSpriteHandler
; Description: Copies the routine required for sprite DMA to high
; RAM and initializes the sprites to "off"
;---------------------------------------------------------------------
SetupSpriteHandler:
ld hl,oamHandlerStart ;src addr
ld de,SpriteDMAHandler ;dest addr
ld c,(oamHandlerFinish - oamHandlerStart) ;# of bytes
.loop ld a,[hl+]
ld [de],a
inc de
dec c
jr nz,.loop
;clear oam buffer by setting each y-coordinate to zero
ld c,40
ld hl,spriteOAMBuffer
ld de,3 ;add to address hl every time
xor a
.loop2 ld [hl+],a
add hl,de
dec c
jr nz,.loop2
ret
oamHandlerStart:
;addr of start (in $100's)
ld a,((spriteOAMBuffer>>8) & $ff)
ld [$ff00+$46],a ;start sprite dma
ld a,$28 ;start a delay loop
.wait dec a
jr nz,.wait
ret
oamHandlerFinish:
;---------------------------------------------------------------------
; Routine: SetupColorPalette
; Alters: af
; Description: Sets up the background & sprite color palettes
;---------------------------------------------------------------------
SetupColorPalette:
push bc
push hl
ld a,%00100111 ;background color order (0213)
ld [$ff47],a
ld a,$80
ld [$ff68],a ;background specifier
ld [$ff6a],a ;sprite specifier
ld c,8*4 ;copy 32 bytes
ld hl,.paletteData
.loop ld a,[hl+] ;get a byte of data
ld [$ff69],a ;copy to bg color...
ld [$ff6b],a ;...and fg color
dec c
jr nz,.loop
pop bc
pop hl
ret
.paletteData
; black, grey, white, green
DW $0000, $3def, $5ef7, $7fff ;grey/white
DW $23e8, $14a5, $03e0, $0000 ;green bg black fg
DW $0000, $ffff, $ffff, $3def ;grey
DW $0000, $14a5, $ffff, $23e8 ;green & grey fg
;---------------------------------------------------------------------
; Routine: LoadFont
; Alters: af
; Description: Loads in the font data to tile pattern memory (bank 0)
; by copying 2048 bytes from ROM to tile mem.
;---------------------------------------------------------------------
LoadFont:
push bc
push de
push hl
;Switch to VRAM bank 0
xor a
ld [$ff00+$4f],a ;(VRAM bank 0)
ld hl,font ;source address
ld de,$9000 ;destination address
ld b,128 ;copy 128 tiles
.outer
ld c,16 ;16 bytes per tile
.inner ld a,[hl+]
ld [de],a
inc de
dec c
jr nz,.inner
;first 128 tiles from $9000 to $97ff, second 128 tiles from
;$8800-$8fff. If dest points >= $9800 reset to $8800.
ld a,d
cp $98
jr c,.destPtrOkay
ld de,$8800
.destPtrOkay
dec b
jr nz,.outer
pop bc
pop de
pop hl
ret
;---------------------------------------------------------------------
; Routine: ClearScreen
; Alters: af
; Description: Clears the background tile & attribute buffers
;---------------------------------------------------------------------
ClearScreen:
push bc
push de
push hl
;clear background buffer
xor a ;data
ld hl,backBuffer ;addr of tile buffer
ld de,attributeBuffer ;addr of attribute buffer
ld b,18 ;clear 18 lines
.outer
ld c,32 ;32 chars per line
.inner
ld [hl+],a
ld [de],a
inc de
dec c
jr nz,.inner
dec b
jr nz,.outer
pop hl
pop de
pop bc
ret
;---------------------------------------------------------------------
; Routine: PrintText
; Arguments: b - horizonal location (0-19)
; c - vertical location (0-18)
; hl - ptr to null-terminated text
; [textColor] - palette color of text
; Alters: af
; Description: Draws the specified text to the back-buffer
;---------------------------------------------------------------------
PrintTextAtCursor: ;same as printtext but sets up b & c from cursor
push bc
push de
push hl
ld a,[cursor_x]
ld b,a
ld a,[cursor_y]
ld c,a
jr PrintTextCommon
PrintText:
push bc
push de
push hl
PrintTextCommon:
;store b & c in cursor_x/y
ld a,b
ld [cursor_x],a
ld a,c
ld [cursor_y],a
ld d,h ;strptr into de
ld e,l
;convert bc from indices into a memory location
; bc = (c*32) + b + backBuffer
xor a
sla c ;*2
rla
sla c ;*4
rla
sla c ;*8
rla
sla c ;*16
rla
sla c ;*32
rla ;now a+c is a 16 bit value
ld h,a ;save off a
ld a,c ;get low byte
add b ;plus horizontal offset
ld c,a ;is now low byte
ld b,h ;b is high byte, bc is 16 bit offset
ld hl,backBuffer
add hl,bc ;hl now points to backbuffer
;copy the tile indicies
.loop ld a,[de] ;get a character
inc de
or a ;finished if it's null
jr z,.done
ld [hl],a ;write it to the buffer
push hl
ld a,h ;switch to attribute buffer
add 3
ld h,a
ld a,[textColor] ;get the color for this character
ld [hl],a ;write it to attribute buffer
ld a,[cursor_x] ;increment x cursor
inc a
ld [cursor_x],a
pop hl
inc hl
jr .loop
.done
pop hl
pop de
pop bc
ret
;---------------------------------------------------------------------
; Routine: OnVBlank
; Description: Called every vertical blank. Sets "vblankFlag" to
; 1 to indicate a vertical blank has occurred
;---------------------------------------------------------------------
OnVBlank::
push af ;save all registers on stack
push bc
push de
push hl
ld a,1 ;set "vblankFlag" to 1
ldio [vblankFlag],a
;is the backBuffer ready for DMA blit to screen?
ldio a,[backBufferReady]
or a
jr z,.done ;wasn't ready
xor a
ldio [backBufferReady],a ;signal we've blitted it
;store current VRAM bank in use
ld a,[$ff00+$4f]
push af
;set VRAM bank to 0
xor a
ld [$ff00+$4f],a
;use DMA to transfer sprite OAM buffer to VRAM
call SpriteDMAHandler
;Initiate DMA transfer of backbuffer to VRAM
ld hl,backBuffer
ld a,h
ld [$ff00+$51],a ;high byte of source
ld a,l
ld [$ff00+$52],a ;low byte of source
ld a,$98
ld [$ff00+$53],a ;high byte of dest
xor a
ld [$ff00+$54],a ;low byte of dest
ld a,37 ;copy (37+1)*16 = 608 bytes
ld [$ff00+$55],a ;store length to start DMA
;set VRAM bank to 1 (tile attributes)
ld a,1
ld [$ff00+$4f],a
;Initiate DMA transfer of tile attributes to VRAM
ld hl,attributeBuffer
ld a,h
ld [$ff00+$51],a ;high byte of source
ld a,l
ld [$ff00+$52],a ;low byte of source
ld a,$98
ld [$ff00+$53],a ;high byte of dest
xor a
ld [$ff00+$54],a ;low byte of dest
ld a,37 ;copy (37+1)*16 = 608 bytes
ld [$ff00+$55],a ;store length to start DMA
;copy wave chars using dma
ld hl,copyWaveChars
ld a,[hl]
or a
jr z,.afterWaveCopy
xor a
ld [hl],a
ld [$ff00+$4f],a ;set VRAM bank to 0
;Initiate DMA transfer of wave tiles to VRAM
ld a,((waveBuffer>>8) & $ff)
ld [$ff00+$51],a ;high byte of source
ld a,(waveBuffer & $ff)
ld [$ff00+$52],a ;low byte of source
ld a,$90
ld [$ff00+$53],a ;high byte of dest
ld a,$50
ld [$ff00+$54],a ;low byte of dest
ld a,7 ;copy (7+1)*16 = 128 bytes
ld [$ff00+$55],a ;store length to start DMA
.afterWaveCopy
;restore VRAM bank that was in use
pop af
ld [$ff00+$4f],a
.done pop hl ;restore all regs from stack
pop de
pop bc
pop af
reti ;return from interrupt
;---------------------------------------------------------------------
; Routine: GetInput
; Alters: af
; Description: Polls the buttons and stores the input in [curJoy1]
; $80 - Start
; $40 - Select
; $20 - B
; $10 - A
; $08 - Down
; $04 - Up
; $02 - Left
; $01 - Right
;---------------------------------------------------------------------
GetInput::
push bc
ld a,$20
ld [$ff00],a ;select P14
ld a,[$ff00]
ld a,[$ff00] ;wait a few cycles
cpl
and $0f
ld b,a ;b has direction info
ld a,$10 ;select P15
ld [$ff00],a
ld a,[$ff00] ;wait mo
ld a,[$ff00] ;wait mo
ld a,[$ff00] ;wait mo
ld a,[$ff00] ;wait mo
ld a,[$ff00] ;wait mo
ld a,[$ff00] ;wait mo
cpl
and $0f
swap a
or b ;a has all buttons
ld [curJoy1],a
ld a,$30 ;deselect P14 and P15
ld [$ff00],a
pop bc
ret
;---------------------------------------------------------------------
; Routine: WaitKey
; Arguments: a - bits to wait for
; Returns: a - button pressed
; Alters: af
; Description: Waits until all specified bits are not pressed, then
; waits till one is pressed, then waits till all are
; released before returning.
;---------------------------------------------------------------------
WaitKey:
push bc
ld b,a
.waitRelease1
call GetInput
ld a,[curJoy1]
and b
jr nz,.waitRelease1
.waitPress
call GetInput
ld a,[curJoy1]
and b
jr z,.waitPress
ld c,a
.waitRelease2
call GetInput
ld a,[curJoy1]
and b
jr nz,.waitRelease2
ld c,a
pop bc
ret
;---------------------------------------------------------------------
; Routine: ShowInfo
; Description: Displays startup info & waits for a keypress
;---------------------------------------------------------------------
ShowInfo:
call ClearScreen
MPRINT .introText1,0,0,1
MPRINT .introText2,0,1,1
MPRINT .introText2_1,0,2,0
MPRINT .introText3,0,4,0
MPRINT .introText4,0,5,0
MPRINT .introText5,0,7,0
MPRINT .introText6,0,10,1
MPRINT .introText7,0,11,1
MPRINT .introText8,0,12,1
MPRINT .introText9,0,16,0
MPRINT .introText10,0,17,0
UPDATESCREEN
ld a,BUTTON_ALL
call WaitKey
ret
.introText1 DB " GameBoy Sound ",0
.introText2 DB " Manipulator ",0
.introText2_1 DB " v1.1.1 ",0
.introText3 DB " ",15,"2022.01.08 by ",0
.introText4 DB "<EMAIL>",0
.introText5 DB " ",0
.introText6 DB "SELECT = change type",0
.introText7 DB " D-PAD = settings ",0
.introText8 DB " A = play sound ",0
.introText9 DB " May be freely used ",0
.introText10 DB " and distributed ",0
;---------------------------------------------------------------------
; Routine: OnState1
; Alters: All registers.
; Description: Allows fiddling with sound 1 parameters
;---------------------------------------------------------------------
OnState1:
call ClearScreen
MPRINT .state1Text1,0,0,1
MPRINT .state1Text2,0,16,2
xor a
ld [cursor_x],a
inc a
ld [cursor_y],a
ld c,0 ;display 5 bytes
ld hl,state1_data
.loop
ld a,[hl+]
call DrawByte
inc c
ld a,c
cp 5
jr nz,.loop
ld hl,state1_data
ld d,0
ld a,[curByte]
ld e,a
add hl,de
ld a,[hl]
call DrawBinary
;what is the cursor highlighting?
ld a,[curByte]
or a
jr nz,.checkState1
;state 0
ld a,[curByteMask]
cp %01110000
jr nz,.check0_3
;state 0_64
ld a,0
call PrintInfo
ld a,%00001000
ld b,0
call NewMaskIfRight
ld a,%00000111
ld b,4
call NewMaskIfLeft
jp .done
.check0_3
cp %00001000
jr nz,.check0_20
;state 0_3
ld a,1
call PrintInfo
ld a,%00000111
ld b,0
call NewMaskIfRight
ld a,%01110000
ld b,0
call NewMaskIfLeft
jp .done
.check0_20
ld a,2
call PrintInfo
ld a,%11000000
ld b,1
call NewMaskIfRight
ld a,%00001000
ld b,0
call NewMaskIfLeft
jp .done
.checkState1
cp 1
jr nz,.checkState2
ld a,[curByteMask]
cp %11000000
jr nz,.check1_50
;mask 1_76
ld a,3
call PrintInfo
ld a,%00111111
ld b,1
call NewMaskIfRight
ld a,%00000111
ld b,0
call NewMaskIfLeft
jp .done
.check1_50
ld a,4
call PrintInfo
ld a,%11110000
ld b,2
call NewMaskIfRight
ld a,%11000000
ld b,1
call NewMaskIfLeft
jp .done
.checkState2
cp 2
jr nz,.checkState3
ld a,[curByteMask]
cp %11110000
jr nz,.check2_3
;state 2_74
ld a,5
call PrintInfo
ld a,%00001000
ld b,2
call NewMaskIfRight
ld a,%00011111
ld b,1
call NewMaskIfLeft
jp .done
.check2_3
cp %00001000
jr nz,.check2_20
ld a,6
call PrintInfo
ld a,%00000111
ld b,2
call NewMaskIfRight
ld a,%11110000
ld b,2
call NewMaskIfLeft
jp .done
.check2_20
ld a,7
call PrintInfo
ld a,%11110000
ld b,3
call NewMaskIfRight
ld a,%00001000
ld b,2
call NewMaskIfLeft
jp .done
.checkState3
cp 3
jr nz,.checkState4
ld a,[curByteMask]
cp %11110000
jr nz,.check3_30
;state 3_74
ld a,8
call PrintInfo
ld a,%00001111
ld b,3
call NewMaskIfRight
ld a,%00000111
ld b,2
call NewMaskIfLeft
jp .done
.check3_30
ld a,9
call PrintInfo
ld a,%01000000
ld b,4
call NewMaskIfRight
ld a,%11110000
ld b,3
call NewMaskIfLeft
jr .done
.checkState4
ld a,[curByteMask]
cp %01000000
jr nz,.check4_20
;state 4_6
ld a,10
call PrintInfo
ld a,%00000111
ld b,4
call NewMaskIfRight
ld a,%00001111
ld b,3
call NewMaskIfLeft
jr .done
.check4_20
ld a,11
call PrintInfo
ld a,%11100000
ld b,0
call NewMaskIfRight
ld a,%01000000
ld b,4
call NewMaskIfLeft
.done
UPDATESCREEN
ret
.state1Text1 DB "Sound 1: Quad+Sweep ",0
.state1Text2 DB "REGS FF10-FF14 ",0
;---------------------------------------------------------------------
; Routine: OnState2
; Alters: All registers.
; Description: Allows fiddling with sound 2 parameters
;---------------------------------------------------------------------
OnState2:
call ClearScreen
MPRINT .state2Text1,0,0,1
MPRINT .state2Text2,0,16,2
xor a
ld [cursor_x],a
inc a
ld [cursor_y],a
ld c,0 ;display 4 bytes
ld hl,state2_data
.loop
ld a,[hl+]
call DrawByte
inc c
ld a,c
cp 4
jr nz,.loop
ld hl,state2_data
ld d,0
ld a,[curByte]
ld e,a
add hl,de
ld a,[hl]
call DrawBinary
;what is the cursor highlighting?
ld a,[curByte]
or a
jr nz,.checkState1
.checkState0
ld a,[curByteMask]
cp %11000000
jr nz,.check0_50
;mask 0_76
ld a,3
call PrintInfo
ld a,%00111111
ld b,0
call NewMaskIfRight
ld a,%00000111
ld b,3
call NewMaskIfLeft
jp .done
.check0_50
ld a,4
call PrintInfo
ld a,%11110000
ld b,1
call NewMaskIfRight
ld a,%11000000
ld b,0
call NewMaskIfLeft
jp .done
.checkState1
cp 1
jr nz,.checkState2
ld a,[curByteMask]
cp %11110000
jr nz,.check1_3
;state 1_74
ld a,5
call PrintInfo
ld a,%00001000
ld b,1
call NewMaskIfRight
ld a,%00011111
ld b,0
call NewMaskIfLeft
jp .done
.check1_3
cp %00001000
jr nz,.check1_20
ld a,6
call PrintInfo
ld a,%00000111
ld b,1
call NewMaskIfRight
ld a,%11110000
ld b,1
call NewMaskIfLeft
jp .done
.check1_20
ld a,7
call PrintInfo
ld a,%11110000
ld b,2
call NewMaskIfRight
ld a,%00001000
ld b,1
call NewMaskIfLeft
jp .done
.checkState2
cp 2
jr nz,.checkState3
ld a,[curByteMask]
cp %11110000
jr nz,.check2_30
;state 2_74
ld a,8
call PrintInfo
ld a,%00001111
ld b,2
call NewMaskIfRight
ld a,%00000111
ld b,1
call NewMaskIfLeft
jp .done
.check2_30
ld a,9
call PrintInfo
ld a,%01000000
ld b,3
call NewMaskIfRight
ld a,%11110000
ld b,2
call NewMaskIfLeft
jr .done
.checkState3
ld a,[curByteMask]
cp %01000000
jr nz,.check3_20
;state 3_6
ld a,10
call PrintInfo
ld a,%00000111
ld b,3
call NewMaskIfRight
ld a,%00001111
ld b,2
call NewMaskIfLeft
jr .done
.check3_20
ld a,11
call PrintInfo
ld a,%11100000
ld b,0
call NewMaskIfRight
ld a,%01000000
ld b,3
call NewMaskIfLeft
.done
UPDATESCREEN
ret
.state2Text1 DB "Sound 2: Quadrangulr",0
.state2Text2 DB "REGS FF16-FF19 ",0
;---------------------------------------------------------------------
; Routine: OnState3
; Alters: All registers.
; Description: Allows fiddling with sound 3 parameters
;---------------------------------------------------------------------
OnState3:
call ClearScreen
MPRINT .state3Text1,0,0,1
MPRINT .state3Text2,0,16,2
xor a
ld [cursor_x],a
inc a
ld [cursor_y],a
ld c,0 ;display 5 bytes
ld hl,state3_data
.loop
ld a,[hl+]
call DrawByte
inc c
ld a,c
cp 5
jr nz,.loop
ld hl,state3_data
ld d,0
ld a,[curByte]
ld e,a
add hl,de
ld a,[hl]
call DrawBinary
;draw first line of waveform bytes
xor a
ld [cursor_x],a
ld a,5
ld [cursor_y],a
ld c,5 ;display next 8 bytes
ld hl,state3_data+5
.loop2
ld a,[hl+]
call DrawByte
ld a,[cursor_x] ;prevent space between bytes
dec a
ld [cursor_x],a
inc c
ld a,c
cp 13
jr nz,.loop2
;draw second line of waveform bytes
xor a
ld [cursor_x],a
ld a,6
ld [cursor_y],a
ld c,13 ;display next 8 bytes
ld hl,state3_data+13
.loop3
ld a,[hl+]
call DrawByte
ld a,[cursor_x] ;prevent space between bytes
dec a
ld [cursor_x],a
inc c
ld a,c
cp 21
jr nz,.loop3
;draw the graphic waveform box
MPRINT .state3BoxTop,16,5,3
MPRINT .state3BoxBottom,16,6,3
;what is the cursor highlighting?
ld a,[curByte]
;note: will never be byte zero
cp 1
jr nz,.checkState2
ld a,[curByteMask]
cp %11110000
jr nz,.check1_30
;state 1_74
ld a,15
call PrintInfo
ld a,%00001111
ld b,1
call NewMaskIfRight
ld a,%00001111
ld b,20
call NewMaskIfLeft
jp .done
.check1_30
ld a,16
call PrintInfo
ld a,%01100000
ld b,2
call NewMaskIfRight
ld a,%11110000
ld b,1
call NewMaskIfLeft
jp .done
.checkState2
cp 2
jr nz,.checkState3
;state 2_65
ld a,17
call PrintInfo
ld a,%11110000
ld b,3
call NewMaskIfRight
ld a,%00001111
ld b,1
call NewMaskIfLeft
jp .done
.checkState3
cp 3
jr nz,.checkState4
ld a,[curByteMask]
cp %11110000
jr nz,.check3_30
;state 3_74
ld a,18
call PrintInfo
ld a,%00001111
ld b,3
call NewMaskIfRight
ld a,%01100000
ld b,2
call NewMaskIfLeft
jp .done
.check3_30
ld a,19
call PrintInfo
ld a,%01000000
ld b,4
call NewMaskIfRight
ld a,%11110000
ld b,3
call NewMaskIfLeft
jp .done
.checkState4
cp 4
jr nz,.check5
ld a,[curByteMask]
cp %01000000
jr nz,.check4_20
;4_6
ld a,20
call PrintInfo
ld a,%00000111
ld b,4
call NewMaskIfRight
ld a,%00001111
ld b,3
call NewMaskIfLeft
jp .done
.check4_20
ld a,21
call PrintInfo
ld a,%11110000
ld b,5
call NewMaskIfRight
ld a,%01000000
ld b,4
call NewMaskIfLeft
jp .done
.check5
cp 5
jr nz,.check20
call TestWaveButtonB
ld a,[curByteMask]
cp %11110000
jr nz,.check5_30
;check5_74
ld a,22
call PrintInfo
ld a,%00001111
ld b,5
call NewMaskIfRight
ld a,%00000111
ld b,4
call NewMaskIfLeft
jp .done
.check5_30
ld a,22
call PrintInfo
ld a,%11110000
ld b,6
call NewMaskIfRight
ld a,%11110000
ld b,5
call NewMaskIfLeft
jp .done
.check20
cp 20
jr nz,.check6_to_19
call TestWaveButtonB
ld a,[curByteMask]
cp %11110000
jr nz,.check20_30
;check20_74
ld a,22
call PrintInfo
ld a,%00001111
ld b,20
call NewMaskIfRight
ld a,%00001111
ld b,19
call NewMaskIfLeft
jr .done
.check20_30
ld a,22
call PrintInfo
ld a,%11110000
ld b,1
call NewMaskIfRight
ld a,%11110000
ld b,20
call NewMaskIfLeft
jr .done
.check6_to_19
call TestWaveButtonB
ld a,[curByteMask]
cp %11110000
jr nz,.check6_to_19_30
;6_to_19_74
ld a,22
call PrintInfo
ld a,[curByte]
ld b,a
ld a,%00001111
call NewMaskIfRight
ld a,[curByte]
dec a
ld b,a
ld a,%00001111
call NewMaskIfLeft
jr .done
.check6_to_19_30
ld a,22
call PrintInfo
ld a,[curByte]
inc a
ld b,a
ld a,%11110000
call NewMaskIfRight
ld a,[curByte]
ld b,a
ld a,%11110000
call NewMaskIfLeft
.done
call RestoreWaveBox
call PlotWaveForm
ld a,1
ld [copyWaveChars],a
UPDATESCREEN
ret
.state3Text1 DB "Sound 3: Custom Wave",0
.state3Text2 DB "REGS FF1A-1E,FF30-3F",0
.state3BoxTop DB 5,6,7,8,0
.state3BoxBottom DB 9,10,11,12,0
;---------------------------------------------------------------------
; Routine: TestWaveButtonB
; Alters: af
; Description: If the B button is pressed, copies the current nibble
; of wave data to the next one and sets the current
; byte/nibble to be the next value
;---------------------------------------------------------------------
TestWaveButtonB:
ld a,[curJoy1] ;test for B pressed
and BUTTON_B
ret z
;release button b
.waitRelease
call GetInput
ld a,[curJoy1]
and BUTTON_B
jr nz,.waitRelease
;start of routine proper
push bc
push de
push hl
;if the last byte then copy the first byte into the pad byte
;following
ld a,[curByte]
cp 20
jr nz,.determineNibble
ld a,[state3_data+5]
ld [state3_data+21],a
.determineNibble
ld a,[curByteMask]
cp %00001111
jr z,.lowNibble
;high nibble being copied to low nibble
call GetCurByteValue
and %11110000
ld b,a
swap b
or b
ld [hl],a
ld a,%00001111
ld [curByteMask],a
jr .done
.lowNibble ;being copied to high nibble of next byte
call GetCurByteValue
and %00001111
swap a
ld b,a
inc hl
ld a,[hl]
and %00001111
or b
ld [hl],a
ld a,%11110000
ld [curByteMask],a
ld a,[curByte]
inc a
ld [curByte],a
;did we run off the end into the pad byte?
ld a,[curByte]
cp 21
jr nz,.done
;if so copy that pad byte back to the beginning
ld a,[state3_data+21]
ld [state3_data+5],a
ld a,5
ld [curByte],a
.done
call PlayCurrentSound
pop hl
pop de
pop bc
ret
;---------------------------------------------------------------------
; Routine: OnState4
; Alters: All registers.
; Description: Allows fiddling with sound 4 parameters
;---------------------------------------------------------------------
OnState4:
call ClearScreen
MPRINT .state4Text1,0,0,1
MPRINT .state4Text2,0,16,2
xor a
ld [cursor_x],a
inc a
ld [cursor_y],a
ld c,0 ;display 4 bytes
ld hl,state4_data
.loop
ld a,[hl+]
call DrawByte
inc c
ld a,c
cp 4
jr nz,.loop
ld hl,state4_data
ld d,0
ld a,[curByte]
ld e,a
add hl,de
ld a,[hl]
call DrawBinary
;what is the cursor highlighting?
ld a,[curByte]
or a
jr nz,.checkState1
.check0_50
ld a,4
call PrintInfo
ld a,%11110000
ld b,1
call NewMaskIfRight
ld a,%01000000
ld b,3
call NewMaskIfLeft
jp .done
.checkState1
cp 1
jr nz,.checkState2
ld a,[curByteMask]
cp %11110000
jr nz,.check1_3
;state 1_74
ld a,5
call PrintInfo
ld a,%00001000
ld b,1
call NewMaskIfRight
ld a,%00011111
ld b,0
call NewMaskIfLeft
jp .done
.check1_3
cp %00001000
jr nz,.check1_20
ld a,6
call PrintInfo
ld a,%00000111
ld b,1
call NewMaskIfRight
ld a,%11110000
ld b,1
call NewMaskIfLeft
jp .done
.check1_20
ld a,7
call PrintInfo
ld a,%11110000
ld b,2
call NewMaskIfRight
ld a,%00001000
ld b,1
call NewMaskIfLeft
jp .done
.checkState2
cp 2
jr nz,.checkState3
ld a,[curByteMask]
cp %11110000
jr nz,.check2_3
;state 2_74
ld a,12
call PrintInfo
ld a,%00001000
ld b,2
call NewMaskIfRight
ld a,%00000111
ld b,1
call NewMaskIfLeft
jp .done
.check2_3
cp %00001000
jr nz,.check2_20
ld a,13
call PrintInfo
ld a,%00000111
ld b,2
call NewMaskIfRight
ld a,%11110000
ld b,2
call NewMaskIfLeft
jp .done
.check2_20
ld a,14
call PrintInfo
ld a,%01000000
ld b,3
call NewMaskIfRight
ld a,%00001000
ld b,2
call NewMaskIfLeft
jp .done
.checkState3
;state 3_6
ld a,10
call PrintInfo
ld a,%00111111
ld b,0
call NewMaskIfRight
ld a,%00000111
ld b,2
call NewMaskIfLeft
.done
UPDATESCREEN
ret
.state4Text1 DB "Sound 4: White Noise",0
.state4Text2 DB "REGS FF20-FF23 ",0
;---------------------------------------------------------------------
; Routine: DrawByte
; Arguments: a - byte to show
; c - index of byte
; Alters: af
; Description: Displays byte A in hex form at the current cursor
; position. Highlights the byte or a nibble if the
; cursor is over it.
;---------------------------------------------------------------------
DrawByte:
push bc
push de
push hl
ld b,0 ;highlight assumed false
ld e,a ;save byte
ld a,[curByte] ;are we drawing byte under cursor?
cp c
jr nz,.after_highlight
;highlight which nibbles?
ld a,[curByteMask]
and %11110000
jr z,.checkHighlightLowNibble
set 1,b
.checkHighlightLowNibble
ld a,[curByteMask]
and %00001111
jr z,.after_highlight
set 0,b
.after_highlight
ld a,e ;retrieve byte to draw
swap a
and %00001111 ;draw high nibble
push bc
srl b
call DrawNibble
pop bc
res 1,b ;make sure high-nibble highlight flag zero
ld a,e
and %00001111 ;draw low nibble
call DrawNibble
;draw a blank space
xor a
ld [textColor],a
ld a,[cursor_x]
ld b,a
inc a
ld [cursor_x],a
ld a,[cursor_y]
ld c,a
ld hl,.blankSpace
call PrintText
pop hl
pop de
pop bc
ret
.blankSpace DB " ",0
;---------------------------------------------------------------------
; Routine: DrawNibble
; Arguments: a - nibble to draw
; b - 1=highlight, 0=normal
; Alters: af
; Description: Displays nibble A in hex form at the current cursor
; position. Highlights the byte or a nibble if the
; cursor is over it.
;---------------------------------------------------------------------
DrawNibble:
push bc
push de
push hl
;load hl with ptr to string to draw
ld hl,.hexTable
rlca
add l
ld l,a
ld a,0
adc h
ld h,a
;handle highlight
ld a,b
ld [textColor],a
;get coordinates to draw at
ld a,[cursor_x]
ld b,a
inc a
ld [cursor_x],a
ld a,[cursor_y]
ld c,a
;draw it
call PrintText
pop hl
pop de
pop bc
ret
.hexTable
DB "0",0
DB "1",0
DB "2",0
DB "3",0
DB "4",0
DB "5",0
DB "6",0
DB "7",0
DB "8",0
DB "9",0
DB "A",0
DB "B",0
DB "C",0
DB "D",0
DB "E",0
DB "F",0
;---------------------------------------------------------------------
; Routine: DrawBinary
; Arguments: a - byte to draw in binary form
; [curByteMask] - bits to highlight
; Alters: af
; Description: Displays selected byte in binary form
;---------------------------------------------------------------------
DrawBinary:
push bc
push de
push hl
ld b,a ;save data for later
ld a,[curByteMask]
ld d,a ;save mask for later
MPRINT .percent,0,3,0
ld c,8 ;draw 8 bits
.loop rlc b ;rotate b left, old bit 7 to carry
jr c,.drawOne
;draw zero
rlc d ;look at corresponding bit of mask
jr c,.drawZeroHighlighted
PRINTCURSOR .zero,0
jr .continue
.drawZeroHighlighted
PRINTCURSOR .zero,1
jr .continue
.drawOne
rlc d
jr c,.drawOneHighlighted
PRINTCURSOR .one,0
jr .continue
.drawOneHighlighted
PRINTCURSOR .one,1
.continue
dec c
jr nz,.loop
pop hl
pop de
pop bc
ret
.percent DB "%",0
.zero DB "0",0
.one DB "1",0
;---------------------------------------------------------------------
; Routines: IncrementBits
; DecrementBits
; Alters: af
; Description: Adds or subtracts one to [curByteMask] portion of
; [curByte].
;---------------------------------------------------------------------
IncrementBits:
push bc
;make mask for value to increment
ld a,[curByteMask]
ld b,a
ld c,a
sla a
xor b
and b
ld b,a ;b has one bit set = proper value to increment
call GetCurByteValue
add b
and c
ld b,a
ld a,$ff
xor c
and [hl]
or b
ld [hl],a
;prevent prohibited values for sound 4
ld a,[curSound]
cp 4
jr nz,.playSound
ld a,[curByte]
cp 2
jr nz,.playSound
ld a,[curByteMask]
cp %11110000
jr nz,.playSound
ld a,[hl]
and %11100000
xor %11100000
jr nz,.playSound
ld a,%00001111 ;fix prohibited value
and [hl]
ld [hl],a
.playSound
call PlayCurrentSound
.waitRelease
call GetInput
ld a,[curJoy1]
and DPAD_UP
jr nz,.waitRelease
pop bc
ret
DecrementBits:
push bc
;make mask for value to increment
ld a,[curByteMask]
ld b,a
ld c,a
sla a
xor b
and b
ld b,a ;b has one bit set = proper value to increment
call GetCurByteValue
sub b
and c
ld b,a
ld a,$ff
xor c
and [hl]
or b
ld [hl],a
;prevent prohibited values for sound 4
ld a,[curSound]
cp 4
jr nz,.playSound
ld a,[curByte]
cp 2
jr nz,.playSound
ld a,[curByteMask]
cp %11110000
jr nz,.playSound
ld a,[hl]
and %11100000
xor %11100000
jr nz,.playSound
ld a,%00001111 ;fix prohibited value
and [hl]
or %11010000
ld [hl],a
.playSound
call PlayCurrentSound
.waitRelease
call GetInput
ld a,[curJoy1]
and DPAD_DOWN
jr nz,.waitRelease
pop bc
ret
;---------------------------------------------------------------------
; Routine: GetCurByteValue
; Returns: a - selected byte value
; hl - addr of selected value
; Alters: af,hl
;---------------------------------------------------------------------
GetCurByteValue:
push de
ld a,[curByte]
ld e,a
ld d,0
ld a,[curSound]
cp 1
jr nz,.checkState2
ld hl,state1_data
jr .done
.checkState2
cp 2
jr nz,.checkState3
ld hl,state2_data
jr .done
.checkState3
cp 3
jr nz,.checkState4
ld hl,state3_data
jr .done
.checkState4
ld hl,state4_data
.done
add hl,de
ld a,[hl]
pop de
ret
;---------------------------------------------------------------------
; Routine: PlayCurrentSound
; Alters: af
;---------------------------------------------------------------------
PlayCurrentSound:
push bc
push de
push hl
ld a,[curSound]
cp 1
jr nz,.checkState2
ld hl,state1_data
ld a,[hl+]
ld [$ff10],a
ld a,[hl+]
ld [$ff11],a
ld a,[hl+]
ld [$ff12],a
ld a,[hl+]
ld [$ff13],a
ld a,[hl+]
ld [$ff14],a
jr .done
.checkState2
cp 2
jr nz,.checkState3
ld hl,state2_data
ld a,[hl+]
ld [$ff16],a
ld a,[hl+]
ld [$ff17],a
ld a,[hl+]
ld [$ff18],a
ld a,[hl+]
ld [$ff19],a
jr .done
.checkState3
cp 3
jr nz,.checkState4
xor a
ld [$ff1a],a ;turn off sound
;copy waveform data to $ff30-$ff40
ld c,$30
ld hl,state3_data+5
.copyWave
ld a,[hl+]
ld [c],a
inc c
ld a,c
cp $40
jr nz,.copyWave
ld hl,state3_data
ld a,[hl+]
ld [$ff1a],a
ld a,[hl+]
ld [$ff1b],a
ld a,[hl+]
ld [$ff1c],a
ld a,[hl+]
ld [$ff1d],a
ld a,[hl+]
ld [$ff1e],a
jr .done
.checkState4
ld hl,state4_data
ld a,[hl+]
ld [$ff20],a
ld a,[hl+]
ld [$ff21],a
ld a,[hl+]
ld [$ff22],a
ld a,[hl+]
ld [$ff23],a
.done
pop hl
pop de
pop bc
ret
;---------------------------------------------------------------------
; Routines: NewMaskIfRight
; NewMaskIfLeft
; Arguments: a - new mask if DPAD right/left is pressed
; b - new byte if DPAD right/left is pressed
; Alters: af
;---------------------------------------------------------------------
NewMaskIfRight:
push bc
ld c,a
ld a,[curJoy1]
and DPAD_RIGHT
jr nz,NewMaskCommon
pop bc
ret
NewMaskCommon:
;pressed!
ld a,b
ld [curByte],a
ld a,c
ld [curByteMask],a
.waitRelease
call GetInput
ld a,[curJoy1]
and (DPAD_RIGHT | DPAD_LEFT)
jr nz,.waitRelease
pop bc
ret
NewMaskIfLeft:
push bc
ld c,a
ld a,[curJoy1]
and DPAD_LEFT
jr nz,NewMaskCommon
pop bc
ret
;---------------------------------------------------------------------
; Routine: PrintInfo
; Arguments: a - index of info to print
; Alters: af
; Description: Prints helpful text to the screen depending on which
; byte+mask is selected
;---------------------------------------------------------------------
PrintInfo:
push bc
push de
push hl
call .printInfoBody
MPRINT .selectString,0,17,2
pop hl
pop de
pop bc
ret
.selectString DB "SELECT=change sounds",0
.printInfoBody
.check0
or a
jr z,.print0
jp .check1
.print0
MPRINT .t0_1,0,5,1
MPRINT .t0_2,0,6,2
MPRINT .t0_3,0,7,2
MPRINT .t0_4,0,8,2
MPRINT .t0_5,0,9,2
MPRINT .t0_6,0,10,2
MPRINT .t0_7,0,11,2
MPRINT .t0_8,0,12,2
MPRINT .t0_9,0,13,2
ret
.check1
cp 1
jr nz,.check2
MPRINT .t1_1,0,5,1
MPRINT .t1_2,0,6,2
MPRINT .t1_3,0,7,2
ret
.check2
cp 2
jr nz,.check3
MPRINT .t2_1,0,5,1
MPRINT .t2_2,0,6,2
MPRINT .t2_3,0,7,2
MPRINT .t2_4,0,8,2
ret
.check3
cp 3
jr nz,.check4
MPRINT .t3_1,0,5,1
MPRINT .t3_2,0,6,2
MPRINT .t3_3,0,7,2
MPRINT .t3_4,0,8,2
MPRINT .t3_5,0,9,2
ret
.check4
cp 4
jr nz,.check5
MPRINT .t4_1,0,5,1
MPRINT .t4_2,0,6,2
MPRINT .t4_3,0,8,2
MPRINT .t4_4,0,9,2
ret
.check5
cp 5
jr nz,.check6
MPRINT .t5_1,0,5,1
MPRINT .t5_2,0,6,2
MPRINT .t5_3,0,7,2
ret
.check6
cp 6
jr nz,.check7
MPRINT .t6_1,0,5,1
MPRINT .t6_2,0,6,2
MPRINT .t6_3,0,7,2
ret
.check7
cp 7
jr nz,.check8
MPRINT .t7_1,0,5,1
MPRINT .t7_2,0,6,2
MPRINT .t7_3,0,7,2
MPRINT .t7_4,0,8,2
MPRINT .t7_5,0,9,2
ret
.check8
cp 8
jr nz,.check9
MPRINT .t8_1,0,5,1
MPRINT .t8_2,0,6,2
MPRINT .t8_3,0,7,2
MPRINT .t8_4,0,9,2
MPRINT .t8_5,0,10,2
ret
.check9
cp 9
jr nz,.check10
MPRINT .t9_1,0,5,1
MPRINT .t9_2,0,6,2
MPRINT .t9_3,0,7,2
MPRINT .t9_4,0,9,2
MPRINT .t9_5,0,10,2
ret
.check10
cp 10
jr nz,.check11
MPRINT .t10_1,0,5,1
MPRINT .t10_2,0,6,2
MPRINT .t10_3,0,7,2
ret
.check11
cp 11
jr nz,.check12
MPRINT .t11_1,0,5,1
MPRINT .t11_2,0,6,2
MPRINT .t11_3,0,7,2
MPRINT .t11_4,0,9,2
MPRINT .t11_5,0,10,2
ret
.check12
cp 12
jr z,.print12
jp .check13
.print12
MPRINT .t12_1,0,5,1
MPRINT .t12_2,0,6,2
MPRINT .t12_3,0,7,2
MPRINT .t12_4,0,9,2
MPRINT .t12_5,0,10,2
MPRINT .t12_6,0,11,2
MPRINT .t12_7,0,12,2
MPRINT .t12_8,0,13,2
ret
.check13
cp 13
jr nz,.check14
MPRINT .t13_1,0,5,1
MPRINT .t13_2,0,6,2
MPRINT .t13_3,0,7,2
ret
.check14
cp 14
jr z,.print14
jp .check15
.print14
MPRINT .t14_1,0,5,1
MPRINT .t14_2,0,6,2
MPRINT .t14_3,0,7,2
MPRINT .t14_4,0,8,2
MPRINT .t14_5,0,9,2
MPRINT .t14_6,0,10,2
MPRINT .t14_7,0,11,2
MPRINT .t14_8,0,12,2
MPRINT .t14_9,0,13,2
MPRINT .t14_10,0,14,2
ret
.check15
cp 15
jr nz,.check16
MPRINT .t15_1,0,8,1
MPRINT .t15_2,0,9,2
MPRINT .t15_3,0,10,2
MPRINT .t15_4,0,11,2
MPRINT .t15_5,0,12,2
MPRINT .t15_6,0,13,2
ret
.check16
cp 16
jr nz,.check17
MPRINT .t16_1,0,8,1
MPRINT .t16_2,0,9,2
MPRINT .t15_3,0,10,2
MPRINT .t15_4,0,11,2
MPRINT .t15_5,0,12,2
MPRINT .t15_6,0,13,2
ret
.check17
cp 17
jr nz,.check18
MPRINT .t17_1,0,8,1
MPRINT .t17_2,0,9,2
MPRINT .t17_3,0,10,2
MPRINT .t17_4,0,11,2
MPRINT .t17_5,0,12,2
ret
.check18
cp 18
jr nz,.check19
MPRINT .t8_1,0,8,1
MPRINT .t8_2,0,9,2
MPRINT .t8_3,0,10,2
MPRINT .t8_4,0,11,2
MPRINT .t8_5,0,12,2
ret
.check19
cp 19
jr nz,.check20
MPRINT .t9_1,0,8,1
MPRINT .t9_2,0,9,2
MPRINT .t9_3,0,10,2
MPRINT .t9_4,0,11,2
MPRINT .t9_5,0,12,2
ret
.check20
cp 20
jr nz,.check21
MPRINT .t10_1,0,8,1
MPRINT .t10_2,0,9,2
MPRINT .t10_3,0,10,2
ret
.check21
cp 21
jr nz,.check22
MPRINT .t11_1,0,8,1
MPRINT .t11_2,0,9,2
MPRINT .t11_3,0,10,2
MPRINT .t11_4,0,11,2
MPRINT .t11_5,0,12,2
ret
.check22
MPRINT .t22_1,0,8,1
MPRINT .t22_2,0,9,2
MPRINT .t22_3,0,10,2
MPRINT .t22_4,0,11,2
ret
.t0_1 DB "Sweep Time ",0
.t0_2 DB "000 - off",0
.t0_3 DB "001 1/128 Hz (short)",0
.t0_4 DB "010 2/128 Hz",0
.t0_5 DB "011 3/128 Hz",0
.t0_6 DB "100 4/128 Hz",0
.t0_7 DB "101 5/128 Hz",0
.t0_8 DB "110 6/128 Hz",0
.t0_9 DB "111 7/128 Hz (long)",0
.t1_1 DB "Sweep increase/decr ",0
.t1_2 DB " 0: Freq increases",0
.t1_3 DB " 1: Freq decreases",0
.t2_1 DB "# Sweep Shifts ",0
.t2_2 DB "000: None",0
.t2_3 DB "001: 1 (quick shift)",0
.t2_4 DB "111: 7 (long shift)",0
.t3_1 DB "Waveform Duty ",0
.t3_2 DB "00: 12.5% ",1,2,3,3,3,3,3,3,1,2,0
.t3_3 DB "01: 25% ",1,2,3,3,1,2,3,3,1,2,0
.t3_4 DB "10: 50% ",1,2,1,2,1,2,1,2,1,2,0
.t3_5 DB "11: 75% ",1,4,4,2,1,4,4,2,1,4,0
.t4_1 DB "Sound Length ",0
.t4_2 DB "= (64-t)*(1/256) sec",0
.t4_3 DB "00000: long 1/4 sec",0
.t4_4 DB "11111: short 1/256 s",0
.t5_1 DB "Initial Envelope Vol",0
.t5_2 DB " 0000: mute",0
.t5_3 DB " 1111: loud",0
.t6_1 DB "Envelope Up/Down ",0
.t6_2 DB "0: Decrease (quietr)",0
.t6_3 DB "1: Increase (louder)",0
.t7_1 DB "# Envelope Steps ",0
.t7_2 DB "000: No change (off)",0
.t7_3 DB "001: Shorter fade",0
.t7_4 DB " ...",0
.t7_5 DB "111: Longer fade",0
.t8_1 DB "Frequency [7:4] ",0
.t8_2 DB "Mid 4 bits of",0
.t8_3 DB "11-bit frequency.",0
.t8_4 DB "Hz=131072/(2048-gb)",0
.t8_5 DB "gb=2048-(131072/Hz)",0
.t9_1 DB "Frequency [3:0] ",0
.t9_2 DB "Lower 4 bits of",0
.t9_3 DB "11-bit frequency.",0
.t9_4 DB "Hz=131072/(2048-gb)",0
.t9_5 DB "gb=2048-(131072/Hz)",0
.t10_1 DB "Consecutive flag ",0
.t10_2 DB " 0: Repeat",0
.t10_3 DB " 1: No Repeat",0
.t11_1 DB "Frequency [11:8] ",0
.t11_2 DB "Upper 3 bits of",0
.t11_3 DB "11-bit frequency.",0
.t11_4 DB "Hz=131072/(2048-gb)",0
.t11_5 DB "gb=2048-(131072/Hz)",0
.t12_1 DB "Shift Clk Frequency ",0
.t12_2 DB "0000: Ratio * 1/2",0
.t12_3 DB "0001: Ratio * 1/4",0
.t12_4 DB "0010: Ratio * 1/8",0
.t12_5 DB " ...",0
.t12_6 DB "1101: Ratio * 1/2",13,0 ;char 13 = "14" superscript
.t12_7 DB "1110: Illegal Code",0
.t12_8 DB "1111: Illegal Code",0
.t13_1 DB "Step for Counter ",0
.t13_2 DB " 0: 15 steps",0
.t13_3 DB " 1: 7 steps",0
.t14_1 DB "Dividing Ratio ",0
.t14_2 DB " f=(4.194304/8) Mhz",0
.t14_3 DB "000: f * 2",0
.t14_4 DB "001: f * 1",0
.t14_5 DB "010: f * 1/2",0
.t14_6 DB "011: f * 1/3",0
.t14_7 DB "100: f * 1/4",0
.t14_8 DB "101: f * 1/5",0
.t14_9 DB "110: f * 1/6",0
.t14_10 DB "111: f * 1/7",0
.t15_1 DB "Sound Length [7:4] ",0
.t15_2 DB "Upper 4 bits of",0
.t15_3 DB "8-bit duration.",0
.t15_4 DB "=(256-t)*(1/256) sec",0
.t15_5 DB " 0: longer",0
.t15_6 DB " 255: shorter",0
.t16_1 DB "Sound Length [3:0] ",0
.t16_2 DB "Lower 4 bits of",0
.t17_1 DB "Output Level ",0
.t17_2 DB " 00: Mute ",0
.t17_3 DB " 01: Normal ",0
.t17_4 DB " 10: >> 1 ",0
.t17_5 DB " 11: >> 2 ",0
.t22_1 DB "Wave Data ",0
.t22_2 DB "Press B to copy",0
.t22_3 DB "current nibble to",0
.t22_4 DB "next nibble",0
;---------------------------------------------------------------------
; Routine: RestoreWaveBox
; Alters: af
; Description: Restores the wave-form box buffer to its empty state.
;---------------------------------------------------------------------
RestoreWaveBox:
push bc
push de
push hl
ld hl,.emptyWaveBox
ld de,waveBuffer
ld c,16*8
.loop ld a,[hl+]
ld [de],a
inc de
dec c
jr nz,.loop
pop hl
pop de
pop bc
ret
.emptyWaveBox
DW `22222222
DW `20000000
DW `20222000
DW `20220000
DW `20200000
DW `20000000
DW `20000000
DW `20000000
DW `22222222
DW `00000002
DW `00000000
DW `00000000
DW `00000002
DW `00000002
DW `00000000
DW `00000000
DW `22222222,`00000000,`20000000,`20000000
DW `00000000,`00000000,`20000000,`20000000
DW `22222222
DW `00000002
DW `00000002
DW `00000002
DW `00000002
DW `00000002
DW `00000002
DW `00000002
DW `20000000
DW `20000000
DW `20000000
DW `20222000
DW `20202000
DW `20222000
DW `20000000
DW `22222222
DW `00000002
DW `00000002
DW `00000000
DW `00000000
DW `00000002
DW `00000002
DW `00000000
DW `22222222
DW `00000000, `00000000, `20000000, `20000000
DW `00000000, `00000000, `20000000, `22222222
DW `00000002
DW `00000002
DW `00000002
DW `00000002
DW `00000002
DW `00000002
DW `00000002
DW `22222222
;---------------------------------------------------------------------
; Routine: PlotWavePoint
; Arguments: b - x coord of point (0-31)
; c - y coord of point (0-15)
; Alters: af
; Description: Alters the characters 5-8 and 9-12 which form a
; graphical representation of a waveform by placing a
; green pixel at the specified position (x,y) away from
; the BOTTOM left corner of the 3x2 box of characters.
;---------------------------------------------------------------------
PlotWavePoint:
push bc
push de
push hl
ld a,c
and %00001111
ld c,a
;reverse vertical axis so that 0 is topmost "normal"
ld a,15
sub c
ld c,a
ld hl,waveBuffer
;does point lie within top half or bottom half of box?
ld a,c
cp 8
jr c,.findHorizontal ;coords are in top half
;bottom half
ld de,16*4 ;skip 4 tiles (the top)
add hl,de
sub 8
ld c,a
.findHorizontal
ld a,b
cp 8
jr c,.foundTile
ld de,16
add hl,de
sub 8
ld b,a
jr .findHorizontal
.foundTile ;hl now points to tile to change. b is 0-7, c is 0-7
ld a,c
or a
jr z,.atCorrectVertical
inc hl
inc hl
dec c
jr .foundTile
.atCorrectVertical
;make a bit mask of of c using shifting
ld c,%10000000
ld a,b
or a
jr z,.haveMask
.makeMask
srl c
dec b
jr nz,.makeMask
.haveMask
ld a,c ;make green by setting bits to 1 and 1
or [hl]
ld [hl+],a
ld a,c
or [hl]
ld [hl],a
pop hl
pop de
pop bc
ret
;---------------------------------------------------------------------
; Routine: PlotWaveForm
; Alters: af
; Description: Uses PlotWavePoint() to plot the sound 3 custom
; waveform to the box
;---------------------------------------------------------------------
PlotWaveForm:
push bc
push de
push hl
;copy the first byte to one past the end to avoid hassle
ld a,[state3_data+5]
ld [state3_data+21],a
ld b,0
ld hl,state3_data+5
.loop ld a,[hl+]
ld c,a
swap c
call PlotWavePoint
ld a,c
swap a
call ExtendLineToNeighbor
swap c
inc b
call PlotWavePoint
ld a,[hl]
swap a
call ExtendLineToNeighbor
inc b
ld a,b
cp 32
jr nz,.loop
pop hl
pop de
pop bc
ret
;---------------------------------------------------------------------
; Routine: ExtendLineToNeighbor
; Arguments: b,c - (x,y) coord of line
; a - y coord of next line
; Alters: af
; Description: If cur y is more than 1 different from next y, plots
; points in the waveform box to close that gap
;---------------------------------------------------------------------
ExtendLineToNeighbor:
push bc
push de
push hl
and %00001111 ;restrict A 0-15
ld d,a
ld a,c
and %00001111
ld c,a
.testForGap
ld a,d ;dest
sub c ;minus cur
jr nc,.haveAbsValue
cpl ;make negative a positive
add 1
.haveAbsValue
cp 2
jr c,.done ;less than 2 different then okay
;need to adjust c towards d then plot point there
ld a,c
cp d
jr c,.c_lt_d
;c > d
dec c
jr .plot
.c_lt_d
inc c
.plot call PlotWavePoint
jr .testForGap
.done
pop hl
pop de
pop bc
ret
;---------------------------------------------------------------------
SECTION "fontdata",ROMX
;---------------------------------------------------------------------
font:
INCBIN "Data/Font.bin"
;---------------------------------------------------------------------
SECTION "HimemSpriteDMAHandler",HRAM[$FF80]
;---------------------------------------------------------------------
SpriteDMAHandler:
DS (oamHandlerFinish - oamHandlerStart)
vblankFlag: DS 1
backBufferReady: DS 1
|
.emacs.d/elpa/ada-mode-7.1.4/ada_process_lr1_main.ads | caqg/linux-home | 0 | 20027 | -- generated parser support file.
-- command line: wisitoken-bnf-generate.exe --generate LR1 Ada_Emacs re2c PROCESS text_rep ada.wy
--
-- Copyright (C) 2013 - 2020 Free Software Foundation, Inc.
-- 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, or (at
-- your option) any later version.
--
-- This software is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
with WisiToken.Syntax_Trees;
with WisiToken.Parse.LR.Parser;
package Ada_Process_LR1_Main is
procedure Create_Parser
(Parser : out WisiToken.Parse.LR.Parser.Parser;
Language_Fixes : in WisiToken.Parse.LR.Parser.Language_Fixes_Access;
Language_Matching_Begin_Tokens : in WisiToken.Parse.LR.Parser.Language_Matching_Begin_Tokens_Access;
Language_String_ID_Set : in WisiToken.Parse.LR.Parser.Language_String_ID_Set_Access;
Trace : not null access WisiToken.Trace'Class;
User_Data : in WisiToken.Syntax_Trees.User_Data_Access;
Text_Rep_File_Name : in String);
end Ada_Process_LR1_Main;
|
src/mathutils.adb | sebsgit/textproc | 0 | 19741 | with Ada.Text_IO;
package body MathUtils is
function rand01 return Float is
begin
return Ada.Numerics.Float_Random.Random(gen);
end rand01;
function rand(min, max: Float) return Float is
begin
return (max - min)*rand01 + min;
end rand;
function mse(a, b: in Vector) return Float is
result: Float := 0.0;
ib: Positive := b.First_Index;
begin
for x of a loop
result := result + (x - b(ib)) * (x - b(ib));
ib := ib + 1;
end loop;
return result / Float(a.Length);
end mse;
function logLoss(target, predictions: in Vector) return Float is
result: Float := 0.0;
tmp: Float;
ib: Positive := predictions.First_Index;
begin
for y of target loop
tmp := y * F.Log(predictions(ib) + 0.00001) + (1.0 - y) * F.Log(1.00001 - predictions(ib));
result := result - tmp;
ib := ib + 1;
end loop;
return result / Float(target.Length);
end logLoss;
procedure multiply(vec: in out MathUtils.Vector; value: Float) is
begin
for x of vec loop
x := x * value;
end loop;
end multiply;
procedure softmax(vec: in out MathUtils.Vector) is
total: Float := 0.0;
begin
for x of vec loop
declare
xp: constant Float := MathUtils.F.Exp(x);
begin
x := xp;
total := total + xp;
end;
end loop;
for x of vec loop
x := x / total;
end loop;
end softmax;
procedure print(vec: in MathUtils.Vector) is
x: Float;
begin
for i in vec.First_Index .. vec.Last_Index loop
x := vec(i);
Ada.Text_IO.Put(x'Image & ", ");
end loop;
end print;
begin
Ada.Numerics.Float_Random.Reset(gen);
end MathUtils;
|
unittests/ASM/PrimaryGroup/3_F7_05_2.asm | cobalt2727/FEX | 628 | 104489 | <reponame>cobalt2727/FEX
%ifdef CONFIG
{
"RegData": {
"R15": "0"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
; Uses CX and BX and stores result in r15
; OF:CF
%macro ofcfmerge 0
lahf
; Load OF
mov rbx, 0
seto bl
shl r15, 1
or r15, rbx
shl r15, 1
; Insert CF
shr ax, 8
and rax, 1
or r15, rax
%endmacro
mov r8, 0xe0000000
mov r15, 0
mov rax, -1
mov [r8 + 8 * 0], rax
mov rax, -2
mov [r8 + 8 * 1], rax
mov rax, -3
mov [r8 + 8 * 2], rax
mov rax, 1
mov [r8 + 8 * 3], rax
mov rax, 2
mov [r8 + 8 * 4], rax
mov rax, 3
mov [r8 + 8 * 5], rax
; Negative * Negative
mov ax, -128
imul word [r8 + 8 * 0 + 0]
ofcfmerge
mov eax, -128
imul dword [r8 + 8 * 1 + 0]
ofcfmerge
mov rax, -128
imul qword [r8 + 8 * 2 + 0]
ofcfmerge
; Negative * Positive
mov ax, -128
imul word [r8 + 8 * 3 + 0]
ofcfmerge
mov eax, -128
imul dword [r8 + 8 * 4 + 0]
ofcfmerge
mov rax, -128
imul qword [r8 + 8 * 5 + 0]
ofcfmerge
; Positive * Positive
mov ax, 128
imul word [r8 + 8 * 3 + 0]
ofcfmerge
mov eax, 128
imul dword [r8 + 8 * 4 + 0]
ofcfmerge
mov rax, 128
imul qword [r8 + 8 * 5 + 0]
ofcfmerge
hlt
|
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_113.asm | ljhsiun2/medusa | 9 | 23577 | <filename>Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_113.asm
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r9
push %rbx
push %rcx
push %rdi
// Load
mov $0x26403e00000002e6, %rdi
add %rcx, %rcx
mov (%rdi), %r9
xor $27992, %rdi
// Faulty Load
mov $0x29824300000006a6, %r10
nop
nop
xor $530, %r9
mov (%r10), %rdi
lea oracles, %r9
and $0xff, %rdi
shlq $12, %rdi
mov (%r9,%rdi,1), %rdi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_NC', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'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
*/
|
libsrc/_DEVELOPMENT/adt/b_array/c/sccz80/b_array_clear.asm | meesokim/z88dk | 0 | 165740 | <gh_stars>0
; void b_array_clear(b_array_t *a)
SECTION code_adt_b_array
PUBLIC b_array_clear
defc b_array_clear = asm_b_array_clear
INCLUDE "adt/b_array/z80/asm_b_array_clear.asm"
|
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca2011b.ada | best08618/asylo | 7 | 15154 | -- CA2011B.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- OBJECTIVE:
-- CHECK THAT FOR A SUBPROGRAM DECLARATION-STUB-BODY TRIPLE, THE
-- DECLARATION-STUB AND STUB-BODY SPECIFICATIONS CAN CONFORM, BUT
-- THE DECLARATION-BODY SPECIFICATIONS NEED NOT.
-- HISTORY:
-- JET 08/01/88 CREATED ORIGINAL TEST.
PACKAGE CA2011B0 IS
SUBTYPE T IS INTEGER RANGE -100 .. 100;
I : T := 0;
END CA2011B0;
WITH CA2011B0; USE CA2011B0;
PACKAGE CA2011B1 IS
PROCEDURE P1 (X : CA2011B0.T);
PROCEDURE P2 (X : T);
END CA2011B1;
WITH REPORT; USE REPORT;
PRAGMA ELABORATE (REPORT);
PACKAGE BODY CA2011B1 IS
PACKAGE CA2011BX RENAMES CA2011B0;
PROCEDURE P1 (X : T) IS SEPARATE;
PROCEDURE P2 (X : CA2011BX.T) IS SEPARATE;
END CA2011B1;
SEPARATE (CA2011B1)
PROCEDURE P1 (X : CA2011BX.T) IS
BEGIN
I := IDENT_INT(X);
END P1;
SEPARATE (CA2011B1)
PROCEDURE P2 (X : CA2011BX.T) IS
BEGIN
I := IDENT_INT(X);
END P2;
WITH REPORT; USE REPORT;
WITH CA2011B0, CA2011B1;
PROCEDURE CA2011B IS
PACKAGE P1 IS
SUBTYPE T IS INTEGER RANGE -100 .. 100;
END P1;
USE P1;
FUNCTION F1 RETURN P1.T;
FUNCTION F2 RETURN T;
PACKAGE P2 RENAMES P1;
FUNCTION F1 RETURN T IS SEPARATE;
FUNCTION F2 RETURN P2.T IS SEPARATE;
BEGIN
TEST ("CA2011B", "CHECK THAT FOR A SUBPROGRAM DECLARATION-STUB-" &
"BODY TRIPLE, THE DECLARATION-STUB AND STUB-" &
"BODY SPECIFICATIONS CAN CONFORM, BUT THE " &
"DECLARATON-BODY SPECIFICATIONS NEED NOT");
IF F1 /= IDENT_INT(100) THEN
FAILED ("INCORRECT RETURN VALUE FROM FUNCTION 1");
END IF;
IF F2 /= IDENT_INT(-100) THEN
FAILED ("INCORRECT RETURN VALUE FROM FUNCTION 2");
END IF;
CA2011B1.P1(3);
IF CA2011B0.I /= IDENT_INT(3) THEN
FAILED ("INCORRECT RETURN VALUE FROM PROCEDURE 1");
END IF;
CA2011B1.P2(4);
IF CA2011B0.I /= IDENT_INT(4) THEN
FAILED ("INCORRECT RETURN VALUE FROM PROCEDURE 2");
END IF;
RESULT;
END CA2011B;
SEPARATE (CA2011B)
FUNCTION F1 RETURN P2.T IS
BEGIN
RETURN 100;
END F1;
SEPARATE (CA2011B)
FUNCTION F2 RETURN P2.T IS
BEGIN
RETURN -100;
END F2;
|
oeis/315/A315505.asm | neoneye/loda-programs | 11 | 161290 | <filename>oeis/315/A315505.asm
; A315505: Coordination sequence Gal.3.59.2 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; Submitted by <NAME>
; 1,6,11,16,24,28,33,38,48,50,55,60,72,72,77,82,96,94,99,104,120,116,121,126,144,138,143,148,168,160,165,170,192,182,187,192,216,204,209,214,240,226,231,236,264,248,253,258,288,270
mov $1,$0
seq $0,315237 ; Coordination sequence Gal.4.128.4 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
add $0,5
div $0,2
sub $0,2
mul $1,3
add $0,$1
|
y2s2/csa/practicals/prac-6/3-ex1-1.asm | ouldevloper/university | 8 | 169905 | <filename>y2s2/csa/practicals/prac-6/3-ex1-1.asm
; 3-ex1-1.asm
; display 3 rows of 'AAAA'
.MODEL SMALL
.STACK 100
.DATA
CHAR DB 'A'
NL DB 10, 13, "$"
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
MOV CX, 3
L1:
MOV BX, CX
; Display 3 @@@
MOV CX, 4
L2:
MOV AH, 02H
MOV DL, CHAR
INT 21H
LOOP L2
MOV CX, BX
MOV AH, 09H
LEA DX, NL
INT 21H
LOOP L1
MOV AX,4C00H
INT 21H
MAIN ENDP
END MAIN |
oeis/176/A176775.asm | neoneye/loda-programs | 11 | 242788 | ; A176775: Index of n as m-gonal number for the smallest possible m (=A176774(n)).
; Submitted by <NAME>(s4)
; 2,2,2,3,2,2,3,4,2,3,2,2,5,4,2,3,2,2,6,4,2,3,5,2,3,7,2,3,2,2,3,4,5,8,2,2,3,4,2,3,2,2,9,4,2,3,7,2,6,4,2,3,10,2,3,4,2,3,2,2,3,8,5,11,2,2,3,7,2,3,2,2,5,4,2,12,2,2,9,4,2,3,5,2,3,4,2,3,13,8,3,4,5,6,2,2,3,10,2,3
mov $1,$0
lpb $1
add $2,1
mov $3,$1
add $3,2
lpb $2
bin $3,$1
bin $1,$0
dif $2,$3
lpe
sub $1,1
lpe
mov $0,$1
add $0,2
|
bb-runtimes/riscv/sifive/fe310/svd/i-fe310-gpio.ads | JCGobbi/Nucleo-STM32G474RE | 0 | 28807 | <reponame>JCGobbi/Nucleo-STM32G474RE<gh_stars>0
--
-- Copyright (C) 2019, AdaCore
--
-- This spec has been automatically generated from FE310.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package Interfaces.FE310.GPIO is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Registers --
---------------
-- VALUE_PIN array
type VALUE_PIN_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Pin value.
type VALUE_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PIN as a value
Val : Interfaces.FE310.UInt32;
when True =>
-- PIN as an array
Arr : VALUE_PIN_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile,
Bit_Order => System.Low_Order_First;
for VALUE_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- INPUT_EN_PIN array
type INPUT_EN_PIN_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Pin input enable.
type INPUT_EN_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PIN as a value
Val : Interfaces.FE310.UInt32;
when True =>
-- PIN as an array
Arr : INPUT_EN_PIN_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile,
Bit_Order => System.Low_Order_First;
for INPUT_EN_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- OUTPUT_EN_PIN array
type OUTPUT_EN_PIN_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Pin output enable.
type OUTPUT_EN_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PIN as a value
Val : Interfaces.FE310.UInt32;
when True =>
-- PIN as an array
Arr : OUTPUT_EN_PIN_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile,
Bit_Order => System.Low_Order_First;
for OUTPUT_EN_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- PORT_PIN array
type PORT_PIN_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Output port value.
type PORT_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PIN as a value
Val : Interfaces.FE310.UInt32;
when True =>
-- PIN as an array
Arr : PORT_PIN_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile,
Bit_Order => System.Low_Order_First;
for PORT_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- PULLUP_PIN array
type PULLUP_PIN_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Internal Pull-Up enable.
type PULLUP_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PIN as a value
Val : Interfaces.FE310.UInt32;
when True =>
-- PIN as an array
Arr : PULLUP_PIN_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile,
Bit_Order => System.Low_Order_First;
for PULLUP_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- DRIVE_PIN array
type DRIVE_PIN_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Drive Strength.
type DRIVE_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PIN as a value
Val : Interfaces.FE310.UInt32;
when True =>
-- PIN as an array
Arr : DRIVE_PIN_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile,
Bit_Order => System.Low_Order_First;
for DRIVE_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- RISE_INT_EN_PIN array
type RISE_INT_EN_PIN_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Rise interrupt enable.
type RISE_INT_EN_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PIN as a value
Val : Interfaces.FE310.UInt32;
when True =>
-- PIN as an array
Arr : RISE_INT_EN_PIN_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile,
Bit_Order => System.Low_Order_First;
for RISE_INT_EN_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- RISE_INT_PEMD_PIN array
type RISE_INT_PEMD_PIN_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Rise interrupt pending.
type RISE_INT_PEMD_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PIN as a value
Val : Interfaces.FE310.UInt32;
when True =>
-- PIN as an array
Arr : RISE_INT_PEMD_PIN_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile,
Bit_Order => System.Low_Order_First;
for RISE_INT_PEMD_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- FALL_INT_EN_PIN array
type FALL_INT_EN_PIN_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Fall interrupt enable.
type FALL_INT_EN_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PIN as a value
Val : Interfaces.FE310.UInt32;
when True =>
-- PIN as an array
Arr : FALL_INT_EN_PIN_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile,
Bit_Order => System.Low_Order_First;
for FALL_INT_EN_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- FALL_INT_PEND_PIN array
type FALL_INT_PEND_PIN_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Fall interrupt pending.
type FALL_INT_PEND_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PIN as a value
Val : Interfaces.FE310.UInt32;
when True =>
-- PIN as an array
Arr : FALL_INT_PEND_PIN_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile,
Bit_Order => System.Low_Order_First;
for FALL_INT_PEND_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- HIGH_INT_EN_PIN array
type HIGH_INT_EN_PIN_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- High interrupt enable.
type HIGH_INT_EN_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PIN as a value
Val : Interfaces.FE310.UInt32;
when True =>
-- PIN as an array
Arr : HIGH_INT_EN_PIN_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile,
Bit_Order => System.Low_Order_First;
for HIGH_INT_EN_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- HIGH_INT_PEND_PIN array
type HIGH_INT_PEND_PIN_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- High interrupt pending.
type HIGH_INT_PEND_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PIN as a value
Val : Interfaces.FE310.UInt32;
when True =>
-- PIN as an array
Arr : HIGH_INT_PEND_PIN_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile,
Bit_Order => System.Low_Order_First;
for HIGH_INT_PEND_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- LOW_INT_EN_PIN array
type LOW_INT_EN_PIN_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Low interrupt enable.
type LOW_INT_EN_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PIN as a value
Val : Interfaces.FE310.UInt32;
when True =>
-- PIN as an array
Arr : LOW_INT_EN_PIN_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile,
Bit_Order => System.Low_Order_First;
for LOW_INT_EN_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- LOW_INT_PEND_PIN array
type LOW_INT_PEND_PIN_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Low interrupt pending.
type LOW_INT_PEND_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PIN as a value
Val : Interfaces.FE310.UInt32;
when True =>
-- PIN as an array
Arr : LOW_INT_PEND_PIN_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile,
Bit_Order => System.Low_Order_First;
for LOW_INT_PEND_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- IO_FUNC_EN_PIN array
type IO_FUNC_EN_PIN_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- HW I/O function enable.
type IO_FUNC_EN_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PIN as a value
Val : Interfaces.FE310.UInt32;
when True =>
-- PIN as an array
Arr : IO_FUNC_EN_PIN_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile,
Bit_Order => System.Low_Order_First;
for IO_FUNC_EN_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- IO_FUNC_SEL_PIN array
type IO_FUNC_SEL_PIN_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- HW I/O function select.
type IO_FUNC_SEL_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PIN as a value
Val : Interfaces.FE310.UInt32;
when True =>
-- PIN as an array
Arr : IO_FUNC_SEL_PIN_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile,
Bit_Order => System.Low_Order_First;
for IO_FUNC_SEL_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-- OUT_XOR_PIN array
type OUT_XOR_PIN_Field_Array is array (0 .. 31) of Boolean
with Component_Size => 1, Size => 32;
-- Output XOR (invert).
type OUT_XOR_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- PIN as a value
Val : Interfaces.FE310.UInt32;
when True =>
-- PIN as an array
Arr : OUT_XOR_PIN_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile,
Bit_Order => System.Low_Order_First;
for OUT_XOR_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- General purpose input/output controller.
type GPIO0_Peripheral is record
-- Pin value.
VALUE : aliased VALUE_Register;
-- Pin input enable.
INPUT_EN : aliased INPUT_EN_Register;
-- Pin output enable.
OUTPUT_EN : aliased OUTPUT_EN_Register;
-- Output port value.
PORT : aliased PORT_Register;
-- Internal Pull-Up enable.
PULLUP : aliased PULLUP_Register;
-- Drive Strength.
DRIVE : aliased DRIVE_Register;
-- Rise interrupt enable.
RISE_INT_EN : aliased RISE_INT_EN_Register;
-- Rise interrupt pending.
RISE_INT_PEMD : aliased RISE_INT_PEMD_Register;
-- Fall interrupt enable.
FALL_INT_EN : aliased FALL_INT_EN_Register;
-- Fall interrupt pending.
FALL_INT_PEND : aliased FALL_INT_PEND_Register;
-- High interrupt enable.
HIGH_INT_EN : aliased HIGH_INT_EN_Register;
-- High interrupt pending.
HIGH_INT_PEND : aliased HIGH_INT_PEND_Register;
-- Low interrupt enable.
LOW_INT_EN : aliased LOW_INT_EN_Register;
-- Low interrupt pending.
LOW_INT_PEND : aliased LOW_INT_PEND_Register;
-- HW I/O function enable.
IO_FUNC_EN : aliased IO_FUNC_EN_Register;
-- HW I/O function select.
IO_FUNC_SEL : aliased IO_FUNC_SEL_Register;
-- Output XOR (invert).
OUT_XOR : aliased OUT_XOR_Register;
end record
with Volatile;
for GPIO0_Peripheral use record
VALUE at 16#0# range 0 .. 31;
INPUT_EN at 16#4# range 0 .. 31;
OUTPUT_EN at 16#8# range 0 .. 31;
PORT at 16#C# range 0 .. 31;
PULLUP at 16#10# range 0 .. 31;
DRIVE at 16#14# range 0 .. 31;
RISE_INT_EN at 16#18# range 0 .. 31;
RISE_INT_PEMD at 16#1C# range 0 .. 31;
FALL_INT_EN at 16#20# range 0 .. 31;
FALL_INT_PEND at 16#24# range 0 .. 31;
HIGH_INT_EN at 16#28# range 0 .. 31;
HIGH_INT_PEND at 16#2C# range 0 .. 31;
LOW_INT_EN at 16#30# range 0 .. 31;
LOW_INT_PEND at 16#34# range 0 .. 31;
IO_FUNC_EN at 16#38# range 0 .. 31;
IO_FUNC_SEL at 16#3C# range 0 .. 31;
OUT_XOR at 16#40# range 0 .. 31;
end record;
-- General purpose input/output controller.
GPIO0_Periph : aliased GPIO0_Peripheral
with Import, Address => System'To_Address (16#10012000#);
end Interfaces.FE310.GPIO;
|
firmware/coreboot/3rdparty/libgfxinit/common/broxton/hw-gfx-gma-ddi_phy.ads | fabiojna02/OpenCellular | 1 | 2361 | <reponame>fabiojna02/OpenCellular
--
-- Copyright (C) 2017 secunet Security Networks AG
--
-- 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 2 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.
--
with HW.GFX.GMA.DP_Info;
private package HW.GFX.GMA.DDI_Phy is
type T is (BC, A);
procedure Power_On (Phy : T);
procedure Power_Off (Phy : T);
subtype DDI_Phy_Port is GPU_Port range DIGI_A .. DIGI_C;
procedure Pre_PLL (Port_Cfg : Port_Config);
Max_V_Swing : constant DP_Info.DP_Voltage_Swing := DP_Info.VS_Level_3;
type Emph_Array is array (DP_Info.DP_Voltage_Swing) of DP_Info.DP_Pre_Emph;
Max_Pre_Emph : constant Emph_Array :=
(DP_Info.VS_Level_0 => DP_Info.Emph_Level_3,
DP_Info.VS_Level_1 => DP_Info.Emph_Level_2,
DP_Info.VS_Level_2 => DP_Info.Emph_Level_1,
others => DP_Info.Emph_Level_0);
procedure Set_DP_Signal_Levels
(Port : Digital_Port;
Train_Set : DP_Info.Train_Set);
subtype HDMI_Buf_Trans_Range is DDI_HDMI_Buf_Trans_Range range 0 .. 9;
procedure Set_HDMI_Signal_Levels
(Port : DDI_Phy_Port;
Level : HDMI_Buf_Trans_Range);
end HW.GFX.GMA.DDI_Phy;
|
src/query/parser/Query.g4 | miguelnmiranda/rxmann | 0 | 3122 | <filename>src/query/parser/Query.g4
grammar Query;
predicate : (or EOF) ;
or : and (ws OR ws and)* ;
and : (not | primary) (ws AND ws (not | primary))* ;
not : NOT ws (not | primary) ;
primary
: '(' or ')'
| simple
;
simple
: tagged
| equal
| not_equal
| lesser
| greater
| lesser_equal
| greater_equal
| like
| regex_match
| v_boolean
;
tagged : TAGGED ws string ;
equal : field ws EQUAL ws value ;
not_equal : field ws NOT_EQUAL ws value ;
lesser : field ws LESSER ws number ;
greater : field ws GREATER ws number ;
lesser_equal : field ws LESSER_EQUAL ws number ;
greater_equal : field ws GREATER_EQUAL ws number ;
like : field ws APPROXIMATELY ws string ;
regex_match : field ws REGEX_MATCH ws string ;
// Values -----------------------------------------------------------
ws : WS* ;
field
: 'host'
| 'service'
| 'state'
| 'description'
| 'metric_f'
| 'metric'
| 'ttl'
| 'time'
;
value
: v_boolean
| nil
| number
| string
;
string : STRING ;
v_boolean
: v_true
| v_false
;
v_true : TRUE ;
v_false : FALSE ;
nil : NIL ;
number
: v_float
| v_int
;
v_float : FLOAT;
v_int : INT;
// Lexers -------------------------------------------------------------
AND : 'and';
OR : 'or';
NOT : 'not';
APPROXIMATELY : '=~';
REGEX_MATCH : '~=';
NOT_EQUAL : '!=';
EQUAL : '=';
LESSER : '<';
LESSER_EQUAL : '<=';
GREATER : '>';
GREATER_EQUAL : '>=';
TAGGED : 'tagged';
STRING : '"' (ESCAPE_SEQUENCE | ~('\u0000'..'\u001f' | '\\' | '\"'))* '"' ;
fragment
ESCAPE_SEQUENCE : '\\' (UNICODE_ESCAPE |'b'|'t'|'n'|'f'|'r'|'\"'|'\\') ;
fragment
UNICODE_ESCAPE : 'u' HEX_DIGT HEX_DIGT HEX_DIGT HEX_DIGT ;
fragment
HEX_DIGT : '0'..'9' | 'A'..'F' | 'a'..'f' ;
FLOAT : '-'? ('0'..'9')+ ('.' ('0'..'9')*)? ;
INT : '-'? '0'..'9'+ ;
NIL : 'nil' | 'null' ;
TRUE : 'true' ;
FALSE : 'false' ;
// Whitespace
WS : [ \n\r\t\,] -> channel(HIDDEN) ;
|
testcases/fruit4/mylogger.adb | jrmarino/AdaBase | 30 | 17680 | with Ada.Text_IO.Unbounded_IO;
package body MyLogger is
package UIO renames Ada.Text_IO.Unbounded_IO;
package TIO renames Ada.Text_IO;
overriding
procedure reaction (listener : CustomLogger) is
begin
if listener.is_error then
TIO.Put_Line ("## SQLSTATE: " & listener.sqlstate);
TIO.Put_Line ("## Driver:" & listener.error_code'Img &
"(" & listener.driver'Img & ")");
TIO.Put ("## Error: "); UIO.Put_Line (listener.error_msg);
TIO.Put_Line ("## Phase: " & listener.category'Img);
else
TIO.Put_Line ("## Phase: " & listener.category'Img);
TIO.Put ("## message: "); UIO.Put_Line (listener.message);
end if;
end reaction;
end MyLogger;
|
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-7700_9_0xca_notsx.log_21829_264.asm | ljhsiun2/medusa | 9 | 21875 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xf2d8, %r8
nop
nop
sub %rbp, %rbp
mov (%r8), %rsi
nop
inc %r13
lea addresses_UC_ht+0x4e92, %rsi
lea addresses_WC_ht+0x1a8d8, %rdi
nop
nop
nop
nop
inc %r11
mov $32, %rcx
rep movsq
nop
nop
inc %r8
lea addresses_WC_ht+0x8c08, %rdi
nop
nop
nop
nop
and $61635, %rsi
movw $0x6162, (%rdi)
nop
nop
nop
cmp $1469, %r13
lea addresses_WT_ht+0xf1ca, %rsi
lea addresses_normal_ht+0x16ad8, %rdi
clflush (%rdi)
dec %r8
mov $3, %rcx
rep movsl
nop
nop
inc %r13
lea addresses_WC_ht+0x1eed8, %rsi
lea addresses_WC_ht+0x136d8, %rdi
add %r8, %r8
mov $50, %rcx
rep movsw
nop
nop
nop
inc %rcx
lea addresses_WT_ht+0x107a8, %rsi
lea addresses_WC_ht+0x1b88e, %rdi
and %r14, %r14
mov $30, %rcx
rep movsl
nop
nop
nop
nop
nop
cmp %r8, %r8
lea addresses_UC_ht+0x4f00, %rsi
lea addresses_normal_ht+0x3918, %rdi
nop
nop
nop
nop
nop
and %r13, %r13
mov $86, %rcx
rep movsq
nop
nop
nop
add $6985, %r8
lea addresses_A_ht+0x186d8, %rdi
add %r11, %r11
movb (%rdi), %cl
nop
cmp $29056, %r8
lea addresses_D_ht+0x1a8d8, %r8
nop
nop
nop
nop
dec %rdi
mov $0x6162636465666768, %rsi
movq %rsi, %xmm5
vmovups %ymm5, (%r8)
add %rdi, %rdi
lea addresses_A_ht+0x1e840, %r13
xor %r11, %r11
movups (%r13), %xmm7
vpextrq $1, %xmm7, %r8
nop
nop
nop
nop
nop
dec %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r14
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rsi
// Store
lea addresses_UC+0x46d8, %r14
nop
nop
and %r12, %r12
mov $0x5152535455565758, %r10
movq %r10, (%r14)
nop
nop
nop
nop
dec %rax
// REPMOV
lea addresses_UC+0xb658, %rsi
lea addresses_UC+0xfc58, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
cmp %r14, %r14
mov $90, %rcx
rep movsq
nop
nop
xor %r10, %r10
// Load
lea addresses_D+0xc4d8, %rcx
nop
nop
nop
nop
nop
dec %r12
vmovups (%rcx), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $1, %xmm2, %r10
add $63782, %r9
// Store
lea addresses_A+0x19b78, %rsi
nop
sub $38825, %rax
mov $0x5152535455565758, %r12
movq %r12, (%rsi)
nop
nop
nop
nop
add %r12, %r12
// REPMOV
lea addresses_UC+0x1b458, %rsi
lea addresses_A+0x1a6e8, %rdi
add %r9, %r9
mov $86, %rcx
rep movsl
nop
nop
nop
nop
xor $18652, %r9
// Store
lea addresses_WT+0xaf48, %rsi
nop
nop
nop
and $12274, %r10
movw $0x5152, (%rsi)
nop
nop
add $56743, %rdi
// Store
lea addresses_RW+0x3498, %rax
nop
nop
nop
nop
dec %r10
mov $0x5152535455565758, %r9
movq %r9, (%rax)
nop
add $22315, %rcx
// Store
lea addresses_normal+0x15e58, %r10
clflush (%r10)
nop
cmp %rax, %rax
movb $0x51, (%r10)
nop
cmp %rsi, %rsi
// Faulty Load
mov $0x4e366800000006d8, %r14
nop
nop
nop
nop
nop
xor $8340, %rax
movaps (%r14), %xmm6
vpextrq $1, %xmm6, %rcx
lea oracles, %rax
and $0xff, %rcx
shlq $12, %rcx
mov (%rax,%rcx,1), %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r14
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 11, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'}
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_UC'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_UC'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 9, 'same': False, 'type': 'addresses_D'}, 'OP': 'LOAD'}
{'dst': {'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 2, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'}
{'src': {'congruent': 7, 'same': False, 'type': 'addresses_UC'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_A'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 3, 'same': False, 'type': 'addresses_WT'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 5, 'same': False, 'type': 'addresses_RW'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 7, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 0, 'same': True, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 4, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 11, 'same': True, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 11, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 9, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'00': 16878, '45': 2, '49': 4932, '48': 17}
00 00 00 00 00 49 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 49 00 00 49 00 00 00 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 00 49 00 00 49 00 00 49 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 49 00 00 00 00 00 49 00 00 49 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 49 00 00 49 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 49 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 49 00 00 49 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 00 00 00 49 00 00 00 00 00 49 00 00 00 00 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 00 00 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 00 00 00 00 00 00 49 00 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 00 00 00 49 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 49 00 00 49 00 00 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 00 00 00 49 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 00 00 00 49 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 49 00 00 00 00 00 00 00 00 49 00 00 49 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 00 00 00 49 00 00 49 00 00 00 00 00 49 00 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 45 00 49 00 00 49 00 00 00 00 00 49 00 00 49 00 00 00 00 00 49 00 49 00 00 49 00 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 00 00 00 00 00 00 49 00 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00
*/
|
agda/PLRTree/Drop/Permutation.agda | bgbianchi/sorting | 6 | 9130 | open import Relation.Binary.Core
module PLRTree.Drop.Permutation {A : Set}
(_≤_ : A → A → Set)
(tot≤ : Total _≤_) where
open import Data.List hiding (drop)
open import Data.Sum
open import List.Permutation.Base A
open import List.Permutation.Base.Equivalence A
open import PLRTree {A}
open import PLRTree.Complete {A}
open import PLRTree.Compound {A}
open import PLRTree.Drop _≤_ tot≤
open import PLRTree.Drop.Complete _≤_ tot≤
open import PLRTree.DropLast.Complete _≤_ tot≤
open import PLRTree.DropLast.Permutation _≤_ tot≤
open import PLRTree.Equality {A}
open import PLRTree.Order.Properties {A}
open import PLRTree.Push.Permutation _≤_ tot≤
lemma-drop-++ : {t : Tag}{x : A}{l r : PLRTree} → Complete (node t x l r) → flatten (drop (node t x l r)) ∼ (flatten l ++ flatten r)
lemma-drop-++ (perfect {leaf} {leaf} x leaf leaf ≃lf) = ∼[]
lemma-drop-++ (perfect {node perfect x' l' r'} {node perfect x'' l'' r''} x cl cr (≃nd .x' .x'' l'≃r' l''≃r'' l'≃l'')) =
let _l = node perfect x' l' r' ;
_r = node perfect x'' l'' r'' ;
_l≃r = ≃nd x' x'' l'≃r' l''≃r'' l'≃l'' ;
cxlr = perfect x cl cr _l≃r ;
z = last (node perfect x _l _r) compound ;
t' = dropLast (node perfect x _l _r) ;
ct' = right x cl (lemma-dropLast-complete cr) (lemma-dropLast-≃ _l≃r compound)
in trans∼ (lemma-push-∼ (lemma-setRoot-complete z ct') (≺-wf (setRoot z t'))) (lemma-dropLast-∼ cxlr)
lemma-drop-++ (left {l} {r} x cl cr l⋘r)
with l | r | l⋘r | lemma-dropLast-⋘ l⋘r
... | leaf | _ | () | _
... | node perfect x' l' r' | _ | () | _
... | node left x' l' r' | node perfect x'' l'' r'' | l⋘ .x' .x'' l'⋘r' l''≃r'' r'≃l'' | inj₁ ld⋘r
with dropLast (node left x' l' r') | ld⋘r | lemma-dropLast-complete cl | lemma-dropLast-∼ (left x cl cr (l⋘ x' x'' l'⋘r' l''≃r'' r'≃l''))
... | leaf | () | _ | _
... | node perfect _ _ _ | () | _ | _
... | node left x''' l''' r''' | ld⋘r' | cld | fzt'∼flfr =
let z = last (node left x (node left x' l' r') (node perfect x'' l'' r'')) compound ;
t' = node left x (node left x''' l''' r''') (node perfect x'' l'' r'') ;
ct' = left x cld cr ld⋘r'
in trans∼ (lemma-push-∼ (lemma-setRoot-complete z ct') (≺-wf (setRoot z t'))) fzt'∼flfr
... | node right x''' l''' r''' | ld⋘r' | cld | fzt'∼flfr =
let z = last (node left x (node left x' l' r') (node perfect x'' l'' r'')) compound ;
t' = node left x (node right x''' l''' r''') (node perfect x'' l'' r'') ;
ct' = left x cld cr ld⋘r'
in trans∼ (lemma-push-∼ (lemma-setRoot-complete z ct') (≺-wf (setRoot z t'))) fzt'∼flfr
lemma-drop-++ (left x cl cr l⋘r) | node left x' l' r' | node perfect x'' l'' r'' | l⋘ .x' .x'' l'⋘r' l''≃r'' r'≃l'' | inj₂ ld≃r
with dropLast (node left x' l' r') | ld≃r | lemma-dropLast-complete cl | lemma-dropLast-∼ (left x cl cr (l⋘ x' x'' l'⋘r' l''≃r'' r'≃l''))
... | leaf | () | _ | _
... | node perfect x''' l''' r''' | ld≃r' | cld | fzt'∼flfr =
let z = last (node left x (node left x' l' r') (node perfect x'' l'' r'')) compound ;
t' = node perfect x (node perfect x''' l''' r''') (node perfect x'' l'' r'') ;
ct' = perfect x cld cr ld≃r'
in trans∼ (lemma-push-∼ (lemma-setRoot-complete z ct') (≺-wf (setRoot z t'))) fzt'∼flfr
... | node left _ _ _ | () | _ | _
... | node right _ _ _ | () | _ | _
lemma-drop-++ (left x cl cr l⋘r) | node right x' l' r' | leaf | () | _
lemma-drop-++ (left x cl cr l⋘r) | node right x' (node perfect x'' leaf leaf) leaf | node perfect x''' leaf leaf | x⋘ .x' .x'' .x''' | inj₁ ()
lemma-drop-++ (left x cl cr l⋘r) | node right x' (node perfect x'' leaf leaf) leaf | node perfect x''' leaf leaf | x⋘ .x' .x'' .x''' | inj₂ x'≃x''' =
let z = last (node left x (node right x' (node perfect x'' leaf leaf) leaf) (node perfect x''' leaf leaf)) compound ;
t' = dropLast (node left x (node right x' (node perfect x'' leaf leaf) leaf) (node perfect x''' leaf leaf)) ;
ct' = perfect x (perfect x' leaf leaf ≃lf) cr x'≃x''' ;
fzt'∼flfr = lemma-dropLast-∼ (left x cl cr (x⋘ x' x'' x'''))
in trans∼ (lemma-push-∼ (lemma-setRoot-complete z ct') (≺-wf (setRoot z t'))) fzt'∼flfr
lemma-drop-++ (left x cl cr l⋘r) | node right x' l' r' | node perfect x'' l'' r'' | r⋘ .x' .x'' l⋙r l''≃r'' l'⋗l'' | inj₁ ld⋘r
with dropLast (node right x' l' r') | ld⋘r | lemma-dropLast-complete cl | lemma-dropLast-∼ (left x cl cr (r⋘ x' x'' l⋙r l''≃r'' l'⋗l''))
... | leaf | () | _ | _
... | node perfect _ _ _ | () | _ | _
... | node left x''' l''' r''' | ld⋘r' | cld | fzt'∼flfr =
let z = last (node left x (node right x' l' r') (node perfect x'' l'' r'')) compound ;
t' = node left x (node left x''' l''' r''') (node perfect x'' l'' r'') ;
ct' = left x cld cr ld⋘r'
in trans∼ (lemma-push-∼ (lemma-setRoot-complete z ct') (≺-wf (setRoot z t'))) fzt'∼flfr
... | node right x''' l''' r''' | ld⋘r' | cld | fzt'∼flfr =
let z = last (node left x (node right x' l' r') (node perfect x'' l'' r'')) compound ;
t' = node left x (node right x''' l''' r''') (node perfect x'' l'' r'') ;
ct' = left x cld cr ld⋘r'
in trans∼ (lemma-push-∼ (lemma-setRoot-complete z ct') (≺-wf (setRoot z t'))) fzt'∼flfr
lemma-drop-++ (left x cl cr l⋘r) | node right x' l' r' | node perfect x'' l'' r'' | r⋘ .x' .x'' l⋙r l''≃r'' l'⋗l'' | inj₂ ld≃r
with dropLast (node right x' l' r') | ld≃r | lemma-dropLast-complete cl | lemma-dropLast-∼ (left x cl cr (r⋘ x' x'' l⋙r l''≃r'' l'⋗l''))
... | leaf | () | _ | _
... | node perfect x''' l''' r''' | ld≃r' | cld | fzt'∼flfr =
let z = last (node left x (node right x' l' r') (node perfect x'' l'' r'')) compound ;
t' = node perfect x (node perfect x''' l''' r''') (node perfect x'' l'' r'') ;
ct' = perfect x cld cr ld≃r'
in trans∼ (lemma-push-∼ (lemma-setRoot-complete z ct') (≺-wf (setRoot z t'))) fzt'∼flfr
... | node left _ _ _ | () | _ | _
... | node right _ _ _ | () | _ | _
lemma-drop-++ (left x cl cr l⋘r) | node right x' l' r' | node left x'' l'' r'' | () | _
lemma-drop-++ (left x cl cr l⋘r) | node right x' l' r' | node right x'' l'' r'' | () | _
lemma-drop-++ (right {l} {r} x cl cr l⋙r)
with l | r | l⋙r | lemma-dropLast-⋙ l⋙r
... | leaf | leaf | ⋙p () | _
... | node perfect x' leaf leaf | leaf | ⋙p (⋗lf .x') | _ = ∼x /head /head ∼[]
... | node perfect _ _ (node _ _ _ _) | leaf | ⋙p () | _
... | node perfect _ (node _ _ _ _) _ | leaf | ⋙p () | _
... | node left _ _ _ | leaf | ⋙p () | _
... | node right _ _ _ | leaf | ⋙p () | _
... | leaf | node perfect _ _ _ | ⋙p () | _
... | node perfect x' l' r' | node perfect x'' l'' r'' | ⋙p (⋗nd .x' .x'' l'≃r' l''≃r'' l'⋗l'') | _ =
let z = last (node right x (node perfect x' l' r') (node perfect x'' l'' r'')) compound ;
t' = dropLast (node right x (node perfect x' l' r') (node perfect x'' l'' r'')) ;
ct' = left x (lemma-dropLast-complete cl) cr (lemma-dropLast-⋗ (⋗nd x' x'' l'≃r' l''≃r'' l'⋗l'') compound) ;
fzt'∼flfr = lemma-dropLast-∼ (right x cl cr (⋙p (⋗nd x' x'' l'≃r' l''≃r'' l'⋗l'')))
in trans∼ (lemma-push-∼ (lemma-setRoot-complete z ct') (≺-wf (setRoot z t'))) fzt'∼flfr
... | node left _ _ _ | node perfect _ _ _ | ⋙p () | _
... | node right _ _ _ | node perfect _ _ _ | ⋙p () | _
... | leaf | node left _ _ _ | ⋙p () | _
... | node perfect x' l' r' | node left x'' l'' r'' | _l⋙r | inj₁ l⋙rd =
let z = last (node right x (node perfect x' l' r') (node left x'' l'' r'')) compound ;
t' = dropLast (node right x (node perfect x' l' r') (node left x'' l'' r'')) ;
ct' = right x cl (lemma-dropLast-complete cr) l⋙rd ;
fzt'∼flfr = lemma-dropLast-∼ (right x cl cr _l⋙r)
in trans∼ (lemma-push-∼ (lemma-setRoot-complete z ct') (≺-wf (setRoot z t'))) fzt'∼flfr
... | node perfect _ _ _ | node left _ _ _ | _ | inj₂ ()
... | node left _ _ _ | node left _ _ _ | ⋙p () | _
... | node right _ _ _ | node left _ _ _ | ⋙p () | _
... | leaf | node right _ _ _ | ⋙p () | _
... | node perfect x' l' r' | node right x'' l'' r'' | _l⋙r | inj₁ l⋙rd =
let z = last (node right x (node perfect x' l' r') (node right x'' l'' r'')) compound ;
t' = dropLast (node right x (node perfect x' l' r') (node right x'' l'' r'')) ;
ct' = right x cl (lemma-dropLast-complete cr) l⋙rd ;
fzt'∼flfr = lemma-dropLast-∼ (right x cl cr _l⋙r)
in trans∼ (lemma-push-∼ (lemma-setRoot-complete z ct') (≺-wf (setRoot z t'))) fzt'∼flfr
... | node perfect _ _ _ | node right _ _ _ | _ | inj₂ ()
... | node left _ _ _ | node right _ _ _ | ⋙p () | _
... | node right _ _ _ | node right _ _ _ | ⋙p () | _
lemma-drop-∼ : {t : Tag}{x : A}{l r : PLRTree} → Complete (node t x l r) → (x ∷ flatten (drop (node t x l r))) ∼ flatten (node t x l r)
lemma-drop-∼ (perfect x cl cr l≃r) = ∼x /head /head (lemma-drop-++ (perfect x cl cr l≃r))
lemma-drop-∼ (left x cl cr l⋘r) = ∼x /head /head (lemma-drop-++ (left x cl cr l⋘r))
lemma-drop-∼ (right x cl cr l⋙r) = ∼x /head /head (lemma-drop-++ (right x cl cr l⋙r))
|
src/main/antlr4/de/dhbw/rahmlab/geomalgelang/parsing/GeomAlgeParser.g4 | MobMonRob/DSL4GeometricAlgebra | 0 | 7243 | parser grammar GeomAlgeParser;
options { tokenVocab=GeomAlgeLexer; }
program
: expr (EOF | NEWLINE)
;
expr
: L_PARENTHESIS
expr
R_PARENTHESIS #DummyLabel
// Precedence 4
| <assoc=right>
left=expr
op= (SUPERSCRIPT_MINUS__SUPERSCRIPT_ONE
|ASTERISK
|SMALL_TILDE
|DAGGER
|SUPERSCRIPT_MINUS__ASTERISK
|SUPERSCRIPT_TWO
|CIRCUMFLEX_ACCENT
) #UnaryOpR
| op= MINUS_SIGN
right=expr #UnaryOpL
| LESS_THAN_SIGN
inner=expr
GREATER_THAN_SIGN
grade= (SUBSCRIPT_ZERO
|SUBSCRIPT_ONE
|SUBSCRIPT_TWO
|SUBSCRIPT_THREE
|SUBSCRIPT_FOUR
|SUBSCRIPT_FIFE
) #extractGrade
// Precedence 3
| left=expr
op= (SPACE
|DOT_OPERATOR
|LOGICAL_AND
|INTERSECTION
|UNION
|R_FLOOR
|L_FLOOR
|LOGICAL_OR
)
right=expr #BinaryOp
// Precedence 2
| left=expr
op=SOLIDUS
right=expr #BinaryOp
// Precedence 1
| left=expr
op= (PLUS_SIGN
|HYPHEN_MINUS
)
right=expr #BinaryOp
// ---
| exprLiteral #DummyLabel
| <assoc=right>
expr SPACE+? #DummyLabel
| <assoc=right>
SPACE+? expr #DummyLabel
;
exprLiteral
: value= (SMALL_EPSILON__SUBSCRIPT_ZERO
|SMALL_EPSILON__SUBSCRIPT_SMALL_I
|SMALL_EPSILON__SUBSCRIPT_ONE
|SMALL_EPSILON__SUBSCRIPT_TWO
|SMALL_EPSILON__SUBSCRIPT_THREE
|SMALL_PI
|INFINITY
|SMALL_O
|SMALL_N
|SMALL_N_TILDE
|CAPITAL_E__SUBSCRIPT_ZERO
) #LiteralCGA
| value= DECIMAL_LITERAL #LiteralDecimal
| name= IDENTIFIER #VariableReference
;
|
source/torrent-initiators.ads | reznikmm/torrent | 4 | 7653 | -- Copyright (c) 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with GNAT.Sockets;
with Torrent.Connections;
with Torrent.Downloaders;
limited with Torrent.Contexts;
package Torrent.Initiators is
task type Initiator
(Port : Natural;
Context : not null access Torrent.Contexts.Context;
Recycle : not null access
Torrent.Connections.Queue_Interfaces.Queue'Class)
is
entry Connect
(Downloader : not null Torrent.Downloaders.Downloader_Access;
Address : GNAT.Sockets.Sock_Addr_Type);
entry Stop;
end Initiator;
end Torrent.Initiators;
|
scripts/SMS/models_20210203/sat_50_20_6_3_3_2.als | eskang/alloy-maxsat-benchmark | 0 | 4099 | <reponame>eskang/alloy-maxsat-benchmark
abstract sig Task {
frags: set Frag,
r: Int,
d: Int,
first: Frag,
final: Frag,
deps: set Task
}
sig Completed in Task {}
one sig T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31,T32,T33,T34,T35,T36,T37,T38,T39,T40,T41,T42,T43,T44,T45,T46,T47,T48,T49 extends Task {}
fact {
frags =
T0 -> T0_0 + T0 -> T0_1 +
T1 -> T1_0 +
T2 -> T2_0 + T2 -> T2_1 + T2 -> T2_2 +
T3 -> T3_0 + T3 -> T3_1 +
T4 -> T4_0 + T4 -> T4_1 +
T5 -> T5_0 +
T6 -> T6_0 +
T7 -> T7_0 + T7 -> T7_1 +
T8 -> T8_0 + T8 -> T8_1 +
T9 -> T9_0 +
T10 -> T10_0 +
T11 -> T11_0 +
T12 -> T12_0 + T12 -> T12_1 +
T13 -> T13_0 + T13 -> T13_1 + T13 -> T13_2 +
T14 -> T14_0 + T14 -> T14_1 +
T15 -> T15_0 + T15 -> T15_1 + T15 -> T15_2 +
T16 -> T16_0 + T16 -> T16_1 +
T17 -> T17_0 +
T18 -> T18_0 +
T19 -> T19_0 + T19 -> T19_1 + T19 -> T19_2 +
T20 -> T20_0 +
T21 -> T21_0 +
T22 -> T22_0 +
T23 -> T23_0 +
T24 -> T24_0 + T24 -> T24_1 +
T25 -> T25_0 + T25 -> T25_1 +
T26 -> T26_0 + T26 -> T26_1 +
T27 -> T27_0 +
T28 -> T28_0 + T28 -> T28_1 + T28 -> T28_2 +
T29 -> T29_0 +
T30 -> T30_0 + T30 -> T30_1 +
T31 -> T31_0 +
T32 -> T32_0 + T32 -> T32_1 + T32 -> T32_2 +
T33 -> T33_0 + T33 -> T33_1 +
T34 -> T34_0 +
T35 -> T35_0 +
T36 -> T36_0 + T36 -> T36_1 + T36 -> T36_2 +
T37 -> T37_0 + T37 -> T37_1 + T37 -> T37_2 +
T38 -> T38_0 + T38 -> T38_1 + T38 -> T38_2 +
T39 -> T39_0 + T39 -> T39_1 + T39 -> T39_2 +
T40 -> T40_0 + T40 -> T40_1 +
T41 -> T41_0 + T41 -> T41_1 + T41 -> T41_2 +
T42 -> T42_0 +
T43 -> T43_0 + T43 -> T43_1 +
T44 -> T44_0 + T44 -> T44_1 +
T45 -> T45_0 + T45 -> T45_1 +
T46 -> T46_0 + T46 -> T46_1 +
T47 -> T47_0 + T47 -> T47_1 +
T48 -> T48_0 +
T49 -> T49_0
r = T0 -> 5 + T1 -> 16 + T2 -> 10 + T3 -> 2 + T4 -> 14 + T5 -> 9 + T6 -> 11 + T7 -> 13 + T8 -> 10 + T9 -> 0 + T10 -> 15 + T11 -> 8 + T12 -> 0 + T13 -> 0 + T14 -> 15 + T15 -> 1 + T16 -> 20 + T17 -> 20 + T18 -> 7 + T19 -> 0 + T20 -> 0 + T21 -> 10 + T22 -> 1 + T23 -> 11 + T24 -> 0 + T25 -> 3 + T26 -> 9 + T27 -> 14 + T28 -> 19 + T29 -> 17 + T30 -> 17 + T31 -> 8 + T32 -> 8 + T33 -> 11 + T34 -> 10 + T35 -> 2 + T36 -> 14 + T37 -> 14 + T38 -> 12 + T39 -> 0 + T40 -> 12 + T41 -> 10 + T42 -> 10 + T43 -> 16 + T44 -> 7 + T45 -> 20 + T46 -> 11 + T47 -> 7 + T48 -> 2 + T49 -> 7
d = T0 -> 17 + T1 -> 24 + T2 -> 14 + T3 -> 12 + T4 -> 23 + T5 -> 17 + T6 -> 14 + T7 -> 17 + T8 -> 14 + T9 -> 5 + T10 -> 33 + T11 -> 10 + T12 -> 6 + T13 -> 18 + T14 -> 18 + T15 -> 13 + T16 -> 35 + T17 -> 35 + T18 -> 10 + T19 -> 8 + T20 -> 6 + T21 -> 11 + T22 -> 7 + T23 -> 15 + T24 -> 4 + T25 -> 18 + T26 -> 15 + T27 -> 32 + T28 -> 23 + T29 -> 21 + T30 -> 19 + T31 -> 11 + T32 -> 13 + T33 -> 21 + T34 -> 28 + T35 -> 3 + T36 -> 26 + T37 -> 22 + T38 -> 15 + T39 -> 9 + T40 -> 18 + T41 -> 18 + T42 -> 13 + T43 -> 19 + T44 -> 15 + T45 -> 28 + T46 -> 14 + T47 -> 19 + T48 -> 5 + T49 -> 10
first = T0 -> T0_0 + T1 -> T1_0 + T2 -> T2_0 + T3 -> T3_0 + T4 -> T4_0 + T5 -> T5_0 + T6 -> T6_0 + T7 -> T7_0 + T8 -> T8_0 + T9 -> T9_0 + T10 -> T10_0 + T11 -> T11_0 + T12 -> T12_0 + T13 -> T13_0 + T14 -> T14_0 + T15 -> T15_0 + T16 -> T16_0 + T17 -> T17_0 + T18 -> T18_0 + T19 -> T19_0 + T20 -> T20_0 + T21 -> T21_0 + T22 -> T22_0 + T23 -> T23_0 + T24 -> T24_0 + T25 -> T25_0 + T26 -> T26_0 + T27 -> T27_0 + T28 -> T28_0 + T29 -> T29_0 + T30 -> T30_0 + T31 -> T31_0 + T32 -> T32_0 + T33 -> T33_0 + T34 -> T34_0 + T35 -> T35_0 + T36 -> T36_0 + T37 -> T37_0 + T38 -> T38_0 + T39 -> T39_0 + T40 -> T40_0 + T41 -> T41_0 + T42 -> T42_0 + T43 -> T43_0 + T44 -> T44_0 + T45 -> T45_0 + T46 -> T46_0 + T47 -> T47_0 + T48 -> T48_0 + T49 -> T49_0
final = T0 -> T0_1 + T1 -> T1_0 + T2 -> T2_2 + T3 -> T3_1 + T4 -> T4_1 + T5 -> T5_0 + T6 -> T6_0 + T7 -> T7_1 + T8 -> T8_1 + T9 -> T9_0 + T10 -> T10_0 + T11 -> T11_0 + T12 -> T12_1 + T13 -> T13_2 + T14 -> T14_1 + T15 -> T15_2 + T16 -> T16_1 + T17 -> T17_0 + T18 -> T18_0 + T19 -> T19_2 + T20 -> T20_0 + T21 -> T21_0 + T22 -> T22_0 + T23 -> T23_0 + T24 -> T24_1 + T25 -> T25_1 + T26 -> T26_1 + T27 -> T27_0 + T28 -> T28_2 + T29 -> T29_0 + T30 -> T30_1 + T31 -> T31_0 + T32 -> T32_2 + T33 -> T33_1 + T34 -> T34_0 + T35 -> T35_0 + T36 -> T36_2 + T37 -> T37_2 + T38 -> T38_2 + T39 -> T39_2 + T40 -> T40_1 + T41 -> T41_2 + T42 -> T42_0 + T43 -> T43_1 + T44 -> T44_1 + T45 -> T45_1 + T46 -> T46_1 + T47 -> T47_1 + T48 -> T48_0 + T49 -> T49_0
deps =
T6 -> T44 +
T27 -> T5
}
abstract sig Frag {
s: Int,
c: Int,
prev: lone Frag
} {
s < 35
}
one sig T0_0,T0_1 extends Frag {}
one sig T1_0 extends Frag {}
one sig T2_0,T2_1,T2_2 extends Frag {}
one sig T3_0,T3_1 extends Frag {}
one sig T4_0,T4_1 extends Frag {}
one sig T5_0 extends Frag {}
one sig T6_0 extends Frag {}
one sig T7_0,T7_1 extends Frag {}
one sig T8_0,T8_1 extends Frag {}
one sig T9_0 extends Frag {}
one sig T10_0 extends Frag {}
one sig T11_0 extends Frag {}
one sig T12_0,T12_1 extends Frag {}
one sig T13_0,T13_1,T13_2 extends Frag {}
one sig T14_0,T14_1 extends Frag {}
one sig T15_0,T15_1,T15_2 extends Frag {}
one sig T16_0,T16_1 extends Frag {}
one sig T17_0 extends Frag {}
one sig T18_0 extends Frag {}
one sig T19_0,T19_1,T19_2 extends Frag {}
one sig T20_0 extends Frag {}
one sig T21_0 extends Frag {}
one sig T22_0 extends Frag {}
one sig T23_0 extends Frag {}
one sig T24_0,T24_1 extends Frag {}
one sig T25_0,T25_1 extends Frag {}
one sig T26_0,T26_1 extends Frag {}
one sig T27_0 extends Frag {}
one sig T28_0,T28_1,T28_2 extends Frag {}
one sig T29_0 extends Frag {}
one sig T30_0,T30_1 extends Frag {}
one sig T31_0 extends Frag {}
one sig T32_0,T32_1,T32_2 extends Frag {}
one sig T33_0,T33_1 extends Frag {}
one sig T34_0 extends Frag {}
one sig T35_0 extends Frag {}
one sig T36_0,T36_1,T36_2 extends Frag {}
one sig T37_0,T37_1,T37_2 extends Frag {}
one sig T38_0,T38_1,T38_2 extends Frag {}
one sig T39_0,T39_1,T39_2 extends Frag {}
one sig T40_0,T40_1 extends Frag {}
one sig T41_0,T41_1,T41_2 extends Frag {}
one sig T42_0 extends Frag {}
one sig T43_0,T43_1 extends Frag {}
one sig T44_0,T44_1 extends Frag {}
one sig T45_0,T45_1 extends Frag {}
one sig T46_0,T46_1 extends Frag {}
one sig T47_0,T47_1 extends Frag {}
one sig T48_0 extends Frag {}
one sig T49_0 extends Frag {}
fact {
c =
T0_0 -> 4 + T0_1 -> 2 +
T1_0 -> 4 +
T2_0 -> 2 + T2_1 -> 1 + T2_2 -> 1 +
T3_0 -> 1 + T3_1 -> 4 +
T4_0 -> 1 + T4_1 -> 2 +
T5_0 -> 4 +
T6_0 -> 1 +
T7_0 -> 1 + T7_1 -> 1 +
T8_0 -> 1 + T8_1 -> 1 +
T9_0 -> 5 +
T10_0 -> 6 +
T11_0 -> 1 +
T12_0 -> 1 + T12_1 -> 2 +
T13_0 -> 1 + T13_1 -> 3 + T13_2 -> 2 +
T14_0 -> 1 + T14_1 -> 2 +
T15_0 -> 3 + T15_1 -> 2 + T15_2 -> 1 +
T16_0 -> 4 + T16_1 -> 1 +
T17_0 -> 5 +
T18_0 -> 1 +
T19_0 -> 1 + T19_1 -> 1 + T19_2 -> 2 +
T20_0 -> 3 +
T21_0 -> 1 +
T22_0 -> 6 +
T23_0 -> 2 +
T24_0 -> 2 + T24_1 -> 2 +
T25_0 -> 3 + T25_1 -> 2 +
T26_0 -> 1 + T26_1 -> 1 +
T27_0 -> 6 +
T28_0 -> 1 + T28_1 -> 1 + T28_2 -> 2 +
T29_0 -> 4 +
T30_0 -> 1 + T30_1 -> 1 +
T31_0 -> 1 +
T32_0 -> 1 + T32_1 -> 2 + T32_2 -> 2 +
T33_0 -> 3 + T33_1 -> 2 +
T34_0 -> 6 +
T35_0 -> 1 +
T36_0 -> 2 + T36_1 -> 1 + T36_2 -> 1 +
T37_0 -> 1 + T37_1 -> 1 + T37_2 -> 2 +
T38_0 -> 1 + T38_1 -> 1 + T38_2 -> 1 +
T39_0 -> 1 + T39_1 -> 1 + T39_2 -> 1 +
T40_0 -> 2 + T40_1 -> 1 +
T41_0 -> 1 + T41_1 -> 2 + T41_2 -> 1 +
T42_0 -> 1 +
T43_0 -> 1 + T43_1 -> 2 +
T44_0 -> 1 + T44_1 -> 3 +
T45_0 -> 3 + T45_1 -> 1 +
T46_0 -> 1 + T46_1 -> 2 +
T47_0 -> 2 + T47_1 -> 4 +
T48_0 -> 1 +
T49_0 -> 1
prev =
T0_1 -> T0_0 +
T2_1 -> T2_0 + T2_2 -> T2_1 +
T3_1 -> T3_0 +
T4_1 -> T4_0 +
T7_1 -> T7_0 +
T8_1 -> T8_0 +
T12_1 -> T12_0 +
T13_1 -> T13_0 + T13_2 -> T13_1 +
T14_1 -> T14_0 +
T15_1 -> T15_0 + T15_2 -> T15_1 +
T16_1 -> T16_0 +
T19_1 -> T19_0 + T19_2 -> T19_1 +
T24_1 -> T24_0 +
T25_1 -> T25_0 +
T26_1 -> T26_0 +
T28_1 -> T28_0 + T28_2 -> T28_1 +
T30_1 -> T30_0 +
T32_1 -> T32_0 + T32_2 -> T32_1 +
T33_1 -> T33_0 +
T36_1 -> T36_0 + T36_2 -> T36_1 +
T37_1 -> T37_0 + T37_2 -> T37_1 +
T38_1 -> T38_0 + T38_2 -> T38_1 +
T39_1 -> T39_0 + T39_2 -> T39_1 +
T40_1 -> T40_0 +
T41_1 -> T41_0 + T41_2 -> T41_1 +
T43_1 -> T43_0 +
T44_1 -> T44_0 +
T45_1 -> T45_0 +
T46_1 -> T46_0 +
T47_1 -> T47_0
}
pred StartAfterRelease {
all t: Completed | t.first.s >= t.r
}
pred StartAfterPrevFrag {
all t: Completed, f1, f2: t.frags | f1 -> f2 in prev implies
f1.s >= plus[f2.s, f2.c]
}
pred SingleFrag {
all disj t1, t2: Completed, f1: t1.frags, f2: t2.frags |
f2.s >= plus[f1.s, f1.c] or f1.s >= plus[f2.s, f2.c]
}
pred TaskDep {
all t1: Completed, t2: t1.deps {
t1.first.s >= plus[t2.final.s, t2.final.c]
t2 in Completed
}
}
pred Deadline {
all t: Completed | t.d >= plus[t.final.s, t.final.c]
}
run {
StartAfterRelease
StartAfterPrevFrag
SingleFrag
TaskDep
Deadline
some Completed
} for 7 Int
|
Assembler/AssemblyCode/LowLevel/RET_MACRO.asm | KPU-RISC/KPU | 8 | 17845 | ; Initialize the stack pointer
MOV8 XL, "11111111"
MOV8 XH, "11111111"
MOV16 SP, X
MOV8 F, "11110000"
; Call a subroutine...
CALL :SUBROUTINE
MOV8 F, "10101010"
; Stops program execution
HLT
:SUBROUTINE
MOV8 F, "01010101"
; ======================
; RET implementation...
; ======================
; 1. Increment the stack pointer by 1
MOV8 XL, "00000001"
MOV8 XH, "00000000"
MOV16 J, X
MOV16 X, SP
16BIT_ADDER
MOV16 SP, X
; 2. Load the bits 8 - 15 from the stack into the register XH,
; and cache it in register M
MOV16 M, SP
LOAD XH
MOV16 M, X
; 3. Increment the stack pointer by 1
MOV8 XL, "00000001"
MOV8 XH, "00000000"
MOV16 J, X
MOV16 X, SP
16BIT_ADDER
MOV16 SP, X
; 4. Load the bits 0 - 7 from the stack into the register XL
MOV16 X, M
MOV16 M, SP
LOAD XL
; 5. Transfer the POPed PC into the PC register to
; jump back to the callee...
MOV16 PC, X
; ============================ |
programs/oeis/017/A017192.asm | neoneye/loda | 22 | 176619 | <gh_stars>10-100
; A017192: a(n) = (9*n + 2)^8.
; 256,214358881,25600000000,500246412961,4347792138496,23811286661761,96717311574016,318644812890625,899194740203776,2252292232139041,5132188731375616,10828567056280801,21435888100000000,40213853471634241,72057594037927936,124097929967680321,206453783524884736,333160561500390625,523300059815673856,802359178476091681,1203846470694789376,1771197285652216321,2560000000000000000,3640577568861717121,5100960362726891776,7050287992278341281,9622679558836781056,12981613503750390625,17324859965700833536,22890010290541014721,29960650073923649536,38873223852623509441,50024641296100000000,63880676485490517601,80985213602868822016,101970394089246452641,127567722065439006976,158620186545562890625,196095460708571938816,241100240228887100161,294895784402816164096,358914725543104304161,434779213849600000000,524320466699664691681,629599793037598310656,752931165277996622401,896905412873600106496,1064416113433837890625,1258687259015914045696,1483302776945927340001,1742237986263159341056,2039893072616309544481,2381128666176100000000,2771303608864315695361,3216314998934990749696,3722640602679094258561,4297383724759713423616,4948320630420375390625,5683950614544793010176,6513548814281963526241,7447221863686192988416,8495966490557262974401,9671731157401600000000,10987480850170951784641,12457265120170718331136,14096289486265729569121,15920990306246905102336,17949113227957875390625,20199795332516287488256,22693651083700162250881,25452862199305313714176,28501271562015485137921,31864481289062500000000,35569955081689370015521,39647124977164946046976,44127502627834341562081,49044795233425002086656,54435026254563937890625,60336661037197280935936,66790737479338970905921,73841001873311018926336,81534050058373441379041,89919474020377600000000,99050014076812328244001,108981716787347867689216,119774098731718282045441,131490316298518660120576,144197341630229062890625,157966144871512813609216,172871882869572373683361,188994094477081690832896,206416902609949549841761,225229223213904100000000,245524981295624377126081,267403334175880281849856,290968902123878119627201,316332006533744451748096,343608915805816650390625,372922099097144194564096,404400488107340387575201
mul $0,9
add $0,2
pow $0,8
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_1076.asm | ljhsiun2/medusa | 9 | 82229 | .global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1ae6c, %rbp
nop
nop
nop
nop
nop
sub %rdx, %rdx
movb (%rbp), %r9b
nop
nop
xor $28372, %rsi
lea addresses_A_ht+0xc1a0, %rbp
add $12919, %r15
mov $0x6162636465666768, %rax
movq %rax, (%rbp)
nop
nop
nop
nop
nop
inc %rbp
lea addresses_normal_ht+0x13c40, %rsi
lea addresses_WC_ht+0x4dc0, %rdi
nop
add %r15, %r15
mov $20, %rcx
rep movsw
nop
nop
nop
nop
nop
sub %r15, %r15
lea addresses_normal_ht+0x184ac, %rax
xor $32730, %rdi
mov $0x6162636465666768, %r9
movq %r9, %xmm6
movups %xmm6, (%rax)
nop
nop
nop
nop
nop
xor $43152, %rcx
lea addresses_A_ht+0xee88, %rax
nop
nop
nop
xor %rbp, %rbp
mov (%rax), %r9w
nop
nop
nop
nop
nop
and %r9, %r9
lea addresses_D_ht+0x158c0, %r15
clflush (%r15)
nop
nop
nop
nop
cmp %rax, %rax
movb $0x61, (%r15)
xor $27786, %rsi
lea addresses_UC_ht+0xc590, %rsi
lea addresses_UC_ht+0x101c8, %rdi
nop
nop
xor $4144, %rax
mov $104, %rcx
rep movsb
nop
nop
add %rdx, %rdx
lea addresses_normal_ht+0xc68, %rsi
lea addresses_WC_ht+0xf830, %rdi
nop
nop
nop
nop
add $56992, %rax
mov $83, %rcx
rep movsq
nop
nop
nop
sub %rbp, %rbp
lea addresses_WT_ht+0x11938, %rsi
lea addresses_UC_ht+0x12240, %rdi
nop
nop
nop
cmp $36850, %rdx
mov $6, %rcx
rep movsb
nop
sub %r15, %r15
lea addresses_WC_ht+0x19fc0, %r9
add %rsi, %rsi
movl $0x61626364, (%r9)
nop
nop
nop
nop
nop
add $32693, %rsi
lea addresses_normal_ht+0x1d190, %rcx
nop
nop
nop
cmp %rsi, %rsi
movb (%rcx), %r15b
nop
nop
nop
cmp %rsi, %rsi
lea addresses_A_ht+0x12940, %rdx
clflush (%rdx)
nop
sub $18971, %rsi
mov (%rdx), %ebp
nop
nop
nop
add %rsi, %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r15
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r14
push %r8
push %rdi
// Faulty Load
lea addresses_WT+0x107c0, %r10
nop
nop
nop
nop
nop
xor %r11, %r11
movups (%r10), %xmm6
vpextrq $1, %xmm6, %r14
lea oracles, %r11
and $0xff, %r14
shlq $12, %r14
mov (%r11,%r14,1), %r14
pop %rdi
pop %r8
pop %r14
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 16, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 2, 'AVXalign': False, 'same': True, 'size': 1, 'NT': True, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_A_ht'}}
{'src': {'congruent': 5, 'same': True, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 8, 'same': True, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_D_ht'}}
{'src': {'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 2, 'same': True, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 1, 'NT': True, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
programs/oeis/008/A008823.asm | karttu/loda | 1 | 169600 | ; A008823: Expansion of (1+2*x^3+x^5)/((1-x)^2*(1-x^5)).
; 1,2,3,6,9,14,19,24,31,38,47,56,65,76,87,100,113,126,141,156,173,190,207,226,245,266,287,308,331,354,379,404,429,456,483,512,541,570,601,632,665,698,731,766,801,838,875
mov $1,$0
add $1,$0
add $1,3
mul $1,$0
div $1,5
add $1,1
|
programs/oeis/184/A184518.asm | karttu/loda | 1 | 14594 | ; A184518: Lower s-Wythoff sequence, where s=4n-3. Complement of A184519.
; 1,3,4,5,6,7,9,10,11,12,14,15,16,17,19,20,21,22,24,25,26,27,29,30,31,32,33,35,36,37,38,40,41,42,43,45,46,47,48,50,51,52,53,54,56,57,58,59,61,62,63,64,66,67,68,69,71,72,73,74,75,77,78,79,80,82,83,84,85,87,88,89,90,92,93,94,95,96,98,99,100,101,103,104,105,106,108,109,110,111,113,114,115,116,117,119,120,121,122,124,125,126,127,129,130,131,132,134,135,136,137,139,140,141,142,143,145,146,147,148
mul $0,2
cal $0,184516 ; Lower s-Wythoff sequence, where s=4n-2. Complement of A184517.
mov $1,$0
div $1,2
add $1,1
|
Prelude.agda | VictorCMiraldo/agda-rw | 16 | 11412 | -- A Simple selection of modules with some renamings to
-- make my (your) life easier when starting a new agda module.
--
-- This includes standard functionality to work on:
-- 1. Functions,
-- 2. Naturals,
-- 3. Products and Coproducts (projections and injections are p1, p2, i1, i2).
-- 4. Finite Types (zero and suc are fz and fs)
-- 5. Lists
-- 6. Booleans and PropositionalEquality
-- 7. Decidable Predicates
--
module Prelude where
open import Data.Unit.NonEta
using (Unit; unit)
public
open import Data.Empty
using (⊥; ⊥-elim)
public
open import Function
using (_∘_; _$_; flip; id; const; _on_)
public
open import Data.Nat
using (ℕ; suc; zero; _+_; _*_; _∸_)
renaming (_≟_ to _≟-ℕ_; _≤?_ to _≤?-ℕ_)
public
open import Data.Fin
using (Fin; fromℕ; fromℕ≤; toℕ)
renaming (zero to fz; suc to fs)
public
open import Data.Fin.Properties
using ()
renaming (_≟_ to _≟-Fin_)
public
open import Data.List
using (List; _∷_; []; map; _++_; zip; filter;
all; any; concat; foldr; reverse; length)
public
open import Data.Product
using (∃; Σ; _×_; _,_; uncurry; curry)
renaming (proj₁ to p1; proj₂ to p2
; <_,_> to split)
public
open import Data.Sum
using (_⊎_; [_,_]′)
renaming (inj₁ to i1; inj₂ to i2
; [_,_] to either)
public
open import Data.Bool
using (Bool; true; false; if_then_else_; not)
renaming (_∧_ to _and_; _∨_ to _or_)
public
open import Relation.Nullary
using (Dec; yes; no; ¬_)
public
open import Relation.Binary.PropositionalEquality
using (_≡_; refl; sym; trans; cong; cong₂; subst)
public
open import Data.Maybe
using (Maybe; just; nothing)
renaming (maybe′ to maybe)
public
dec-elim : ∀{a b}{A : Set a}{B : Set b}
→ (A → B) → (¬ A → B) → Dec A → B
dec-elim f g (yes p) = f p
dec-elim f g (no p) = g p
dec2set : ∀{a}{A : Set a} → Dec A → Set
dec2set (yes _) = Unit
dec2set (no _) = ⊥
isTrue : ∀{a}{A : Set a} → Dec A → Bool
isTrue (yes _) = true
isTrue _ = false
takeWhile : ∀{a}{A : Set a} → (A → Bool) → List A → List A
takeWhile _ [] = []
takeWhile f (x ∷ xs) with f x
...| true = x ∷ takeWhile f xs
...| _ = takeWhile f xs
-- Some minor boilerplate to solve equality problem...
record Eq (A : Set) : Set where
constructor eq
field cmp : (x y : A) → Dec (x ≡ y)
open Eq {{...}}
record Enum (A : Set) : Set where
constructor enum
field
toEnum : A → Maybe ℕ
fromEnum : ℕ → Maybe A
open Enum {{...}}
instance
eq-ℕ : Eq ℕ
eq-ℕ = eq _≟-ℕ_
enum-ℕ : Enum ℕ
enum-ℕ = enum just just
eq-Fin : ∀{n} → Eq (Fin n)
eq-Fin = eq _≟-Fin_
enum-Fin : ∀{n} → Enum (Fin n)
enum-Fin {n} = enum (λ x → just (toℕ x)) fromℕ-partial
where
fromℕ-partial : ℕ → Maybe (Fin n)
fromℕ-partial m with suc m ≤?-ℕ n
...| yes prf = just (fromℕ≤ {m} {n} prf)
...| no _ = nothing
eq-⊥ : Eq ⊥
eq-⊥ = eq (λ x → ⊥-elim x)
enum-⊥ : Enum ⊥
enum-⊥ = enum ⊥-elim (const nothing)
eq-Maybe : ∀{A} ⦃ eqA : Eq A ⦄ → Eq (Maybe A)
eq-Maybe = eq decide
where
just-inj : ∀{a}{A : Set a}{x y : A}
→ _≡_ {a} {Maybe A} (just x) (just y) → x ≡ y
just-inj refl = refl
decide : {A : Set} ⦃ eqA : Eq A ⦄
→ (x y : Maybe A) → Dec (x ≡ y)
decide nothing nothing = yes refl
decide nothing (just _) = no (λ ())
decide (just _) nothing = no (λ ())
decide ⦃ eq f ⦄ (just x) (just y) with f x y
...| yes x≡y = yes (cong just x≡y)
...| no x≢y = no (x≢y ∘ just-inj)
enum-Maybe : ∀{A} ⦃ enA : Enum A ⦄ → Enum (Maybe A)
enum-Maybe ⦃ enum aℕ ℕa ⦄ = enum (maybe aℕ nothing) (just ∘ ℕa)
eq-List : {A : Set}{{eq : Eq A}} → Eq (List A)
eq-List {A} {{eq _≟_}} = eq decide
where
open import Data.List.Properties
renaming (∷-injective to ∷-inj)
decide : (a b : List A) → Dec (a ≡ b)
decide [] (_ ∷ _) = no (λ ())
decide (_ ∷ _) [] = no (λ ())
decide [] [] = yes refl
decide (a ∷ as) (b ∷ bs)
with a ≟ b | decide as bs
...| yes a≡b | yes as≡bs
rewrite a≡b = yes (cong (_∷_ b) as≡bs)
...| no a≢b | yes as≡bs = no (a≢b ∘ p1 ∘ ∷-inj)
...| yes a≡b | no as≢bs = no (as≢bs ∘ p2 ∘ ∷-inj)
...| no a≢b | no as≢bs = no (a≢b ∘ p1 ∘ ∷-inj)
|
libsrc/_DEVELOPMENT/alloc/balloc/c/sccz80/balloc_reset.asm | jpoikela/z88dk | 640 | 17803 | <gh_stars>100-1000
; void *balloc_reset(unsigned char queue)
SECTION code_clib
SECTION code_alloc_balloc
PUBLIC balloc_reset
EXTERN asm_balloc_reset
defc balloc_reset = asm_balloc_reset
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _balloc_reset
defc _balloc_reset = balloc_reset
ENDIF
|
source/asis/spec/annex_f/ada-decimal.ads | faelys/gela-asis | 4 | 23219 | ------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- - - - - - - - - - - - - - - - --
-- Read copyright and license at the end of ada.ads file --
------------------------------------------------------------------------------
-- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $
package Ada.Decimal is
pragma Pure (Decimal);
Max_Scale : constant := implementation-defined;
Min_Scale : constant := implementation-defined;
Min_Delta : constant := 10.0**(-Max_Scale);
Max_Delta : constant := 10.0**(-Min_Scale);
Max_Decimal_Digits : constant := implementation-defined;
generic
type Dividend_Type is delta <> digits <>;
type Divisor_Type is delta <> digits <>;
type Quotient_Type is delta <> digits <>;
type Remainder_Type is delta <> digits <>;
procedure Divide (Dividend : in Dividend_Type;
Divisor : in Divisor_Type;
Quotient : out Quotient_Type;
Remainder : out Remainder_Type);
pragma Convention (Intrinsic, Divide);
end Ada.Decimal;
|
programs/oeis/158/A158090.asm | neoneye/loda | 22 | 176766 | <filename>programs/oeis/158/A158090.asm
; A158090: Period 9: repeat [0, 6, 0, 6, 0, 0, 3, 3, 0].
; 0,6,0,6,0,0,3,3,0,0,6,0,6,0,0,3,3,0,0,6,0,6,0,0,3,3,0,0,6,0,6,0,0,3,3,0,0,6,0,6,0,0,3,3,0,0,6,0,6,0,0,3,3,0,0,6,0,6,0,0,3,3,0,0,6,0,6,0,0,3,3,0,0,6,0,6,0,0,3,3,0,0,6,0,6,0,0,3,3,0,0,6,0,6,0,0,3,3,0,0
mul $0,4
mov $1,1
add $1,$0
pow $1,2
div $1,3
mod $1,3
mul $1,3
mov $0,$1
|
programs/oeis/065/A065764.asm | neoneye/loda | 22 | 243802 | ; A065764: Sum of divisors of square numbers.
; 1,7,13,31,31,91,57,127,121,217,133,403,183,399,403,511,307,847,381,961,741,931,553,1651,781,1281,1093,1767,871,2821,993,2047,1729,2149,1767,3751,1407,2667,2379,3937,1723,5187,1893,4123,3751,3871,2257,6643,2801,5467,3991,5673,2863,7651,4123,7239,4953,6097,3541,12493,3783,6951,6897,8191,5673,12103,4557,9517,7189,12369,5113,15367,5403,9849,10153,11811,7581,16653,6321,15841,9841,12061,6973,22971,9517,13251,11323,16891,8011,26257,10431,17143,12909,15799,11811,26611,9507,19607,16093,24211
add $0,1
pow $0,2
sub $0,1
seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n).
|
source/s-utfcon.ads | ytomino/drake | 33 | 11081 | <reponame>ytomino/drake
pragma License (Unrestricted);
-- implementation unit
package System.UTF_Conversions is
pragma Pure;
-- UCS-4 defined 31 bit.
type UCS_4 is mod 16#80000000#;
UTF_8_Max_Length : constant := 6;
type From_Status_Type is
(Success, Illegal_Sequence, Non_Shortest, Truncated);
pragma Discard_Names (From_Status_Type);
subtype Sequence_Status_Type is
From_Status_Type range Success .. Illegal_Sequence;
type To_Status_Type is (Success, Overflow, Unmappable);
pragma Discard_Names (To_Status_Type);
procedure To_UTF_8 (
Code : UCS_4;
Result : out String;
Last : out Natural;
Status : out To_Status_Type);
procedure From_UTF_8 (
Data : String;
Last : out Natural;
Result : out UCS_4;
Status : out From_Status_Type);
procedure From_UTF_8_Reverse (
Data : String;
First : out Positive;
Result : out UCS_4;
Status : out From_Status_Type);
procedure UTF_8_Sequence (
Leading : Character;
Result : out Positive;
Status : out Sequence_Status_Type);
UTF_16_Max_Length : constant := 2;
procedure To_UTF_16 (
Code : UCS_4;
Result : out Wide_String;
Last : out Natural;
Status : out To_Status_Type);
procedure From_UTF_16 (
Data : Wide_String;
Last : out Natural;
Result : out UCS_4;
Status : out From_Status_Type);
procedure From_UTF_16_Reverse (
Data : Wide_String;
First : out Positive;
Result : out UCS_4;
Status : out From_Status_Type);
procedure UTF_16_Sequence (
Leading : Wide_Character;
Result : out Positive;
Status : out Sequence_Status_Type);
procedure To_UTF_32 (
Code : UCS_4;
Result : out Wide_Wide_String;
Last : out Natural;
Status : out To_Status_Type);
procedure From_UTF_32 (
Data : Wide_Wide_String;
Last : out Natural;
Result : out UCS_4;
Status : out From_Status_Type);
procedure From_UTF_32_Reverse (
Data : Wide_Wide_String;
First : out Positive;
Result : out UCS_4;
Status : out From_Status_Type);
procedure UTF_32_Sequence (
Leading : Wide_Wide_Character;
Result : out Positive;
Status : out Sequence_Status_Type);
generic
type Source_Element_Type is (<>);
type Source_Type is array (Positive range <>) of Source_Element_Type;
type Target_Element_Type is (<>);
type Target_Type is array (Positive range <>) of Target_Element_Type;
with procedure From_UTF (
Data : Source_Type;
Last : out Natural;
Result : out UCS_4;
Status : out From_Status_Type);
with procedure To_UTF (
Code : UCS_4;
Result : out Target_Type;
Last : out Natural;
Status : out To_Status_Type);
procedure Convert_Procedure (
Source : Source_Type;
Result : out Target_Type;
Last : out Natural;
Substitute : Target_Type :=
(1 => Target_Element_Type'Val (Character'Pos ('?'))));
generic
type Source_Element_Type is (<>);
type Source_Type is array (Positive range <>) of Source_Element_Type;
type Target_Element_Type is (<>);
type Target_Type is array (Positive range <>) of Target_Element_Type;
Expanding : Positive;
with procedure Convert_Procedure (
Source : Source_Type;
Result : out Target_Type;
Last : out Natural;
Substitute : Target_Type);
function Convert_Function (
Source : Source_Type;
Substitute : Target_Type :=
(1 => Target_Element_Type'Val (Character'Pos ('?'))))
return Target_Type;
-- the rates of expansion
-- 16#ef# 16#bf# 16#bf# : 16#ffff# : 16#0000ffff#
-- 16#f0# 16#90# 16#80# 16#80# : 16#d800# 16#dc00# : 16#00010000#
-- 16#f4# 16#8f# 16#bf# 16#bf# : 16#dbff# 16#dfff# : 16#0010ffff#
Expanding_From_8_To_16 : constant := 1;
Expanding_From_8_To_32 : constant := 1;
Expanding_From_16_To_8 : constant := 3;
Expanding_From_16_To_32 : constant := 1;
Expanding_From_32_To_8 : constant := 6;
Expanding_From_32_To_16 : constant := 2;
end System.UTF_Conversions;
|
progress.agda | hazelgrove/hazelnat-myth- | 1 | 9898 | <gh_stars>1-10
open import Nat
open import Prelude
open import List
open import contexts
open import core
open import lemmas-env
open import lemmas-progress
open import decidability
open import results-checks
-- TODO we're forced to prove this weaker version, since the strong version is
-- unprovable. That said, this weak version is still disappointing, so we
-- should come up with some more thoerems to shore up its deficiencies -
-- in particular, we should do something to mitigate the fact that an e
-- may succeed for every even n and fail for every odd n
-- - also, that evaluation may return different results for different n
-- TODO complete, then delete
-- e => r → ∀{n} e [n]=> r
-- something similar for =>∅ ?
-- (Σ[r] (e => r) ∧ e => ∅) → ⊥
-- ∀{k} → Σ[r] (e [k]=> r) ∨ e [k]=> ∅
module progress where
progress : ∀{Δ Σ' Γ E e τ n} →
Δ , Σ' , Γ ⊢ E →
Δ , Σ' , Γ ⊢ e :: τ →
-- Either there's some properly-typed result that e will eval to ...
Σ[ r ∈ result ] Σ[ k ∈ constraints ] (
(E ⊢ e ⌊ ⛽⟨ n ⟩ ⌋⇒ r ⊣ k) ∧
Δ , Σ' ⊢ r ·: τ)
-- ... or evaluation will have a constraint failure
∨ E ⊢ e ⌊ ⛽⟨ n ⟩ ⌋⇒∅
xc-progress : ∀{Δ Σ' r1 r2 τ n} →
Δ , Σ' ⊢ r1 ·: τ →
Δ , Σ' ⊢ r2 ·: τ →
Σ[ k ∈ constraints ] Constraints⦃ r1 , r2 ⦄⌊ ⛽⟨ n ⟩ ⌋:= k
∨ Constraints⦃ r1 , r2 ⦄⌊ ⛽⟨ n ⟩ ⌋:=∅
xb-progress : ∀{Δ Σ' r ex τ n} →
Δ , Σ' ⊢ r ·: τ →
Δ , Σ' ⊢ ex :· τ →
Σ[ k ∈ constraints ] (r ⇐ ex ⌊ ⛽⟨ n ⟩ ⌋:= k)
∨ r ⇐ ex ⌊ ⛽⟨ n ⟩ ⌋:=∅
rule-fails : {n↓ : Nat} {E : env} {r : result} {ex : ex} → Set
rule-fails {n↓} {E} {r} {ex} =
Σ[ c-j ∈ Nat ] Σ[ x-j ∈ Nat ] Σ[ e-j ∈ exp ] (
r ⇐ C[ c-j ] ¿¿ ⌊ ⛽⟨ 1+ n↓ ⟩ ⌋:=∅
∨ Σ[ k1 ∈ constraints ] (
r ⇐ C[ c-j ] ¿¿ ⌊ ⛽⟨ 1+ n↓ ⟩ ⌋:= k1 ∧ (E ,, (x-j , C⁻[ c-j ] r)) ⊢ e-j ⌊ ⛽⟨ n↓ ⟩ ⌋⇒∅)
∨ Σ[ k1 ∈ constraints ] Σ[ k2 ∈ constraints ] Σ[ r-j ∈ result ] (
r ⇐ C[ c-j ] ¿¿ ⌊ ⛽⟨ 1+ n↓ ⟩ ⌋:= k1 ∧ (E ,, (x-j , C⁻[ c-j ] r)) ⊢ e-j ⌊ ⛽⟨ n↓ ⟩ ⌋⇒ r-j ⊣ k2 ∧ r-j ⇐ ex ⌊ ⛽⟨ n↓ ⟩ ⌋:=∅))
lemma-xb-progress-case : ∀{Δ Σ' E r rules ex τ n n↓} →
(n == 1+ n↓) →
(len : Nat) →
(unchecked : rule ctx) →
len == ∥ unchecked ∥ →
(failed : (rule-fails {n↓} {E} {r} {ex}) ctx) →
(∀{c rule} → (c , rule) ∈ unchecked → (c , rule) ∈ rules) →
(∀{c c-j x-j e-j p-j} →
(c , c-j , x-j , e-j , p-j) ∈ failed →
c == c-j ∧ (c , |C x-j => e-j) ∈ rules) →
(∀{c} → dom rules c → dom unchecked c ∨ dom failed c) →
Δ , Σ' ⊢ [ E ]case r of⦃· rules ·⦄ ·: τ →
Δ , Σ' ⊢ ex :· τ →
ex ≠ ¿¿ →
Σ[ k ∈ constraints ] ([ E ]case r of⦃· rules ·⦄ ⇐ ex ⌊ ⛽⟨ n ⟩ ⌋:= k)
∨ [ E ]case r of⦃· rules ·⦄ ⇐ ex ⌊ ⛽⟨ n ⟩ ⌋:=∅
progress {n = Z} Γ⊢E ta
= Inl (_ , _ , ELimit , π2 (typ-inhabitance-pres Γ⊢E ta))
progress {n = 1+ n} Γ⊢E ta'@(TAFix ta) = Inl (_ , _ , EFix , TAFix Γ⊢E ta')
progress {n = 1+ n} Γ⊢E (TAVar x∈Γ)
with env-all-Γ Γ⊢E x∈Γ
... | _ , x∈E , ta = Inl (_ , _ , EVar x∈E , ta)
progress {n = 1+ n} Γ⊢E (TAApp _ ta-f ta-arg)
with progress Γ⊢E ta-arg
... | Inr arg-fails = Inr (EFAppArg arg-fails)
... | Inl (rarg , _ , arg-evals , ta-rarg)
with progress Γ⊢E ta-f
... | Inr f-fails = Inr (EFAppFun f-fails)
progress {n = 1+ n} Γ⊢E (TAApp _ ta-f ta-arg) | Inl (rarg , _ , arg-evals , ta-rarg) | Inl ([ E' ]fix f ⦇·λ x => ef ·⦈ , _ , f-evals , ta'@(TAFix Γ'⊢E' (TAFix ta-ef)))
with progress {n = n} (EnvInd (EnvInd Γ'⊢E' ta') ta-rarg) ta-ef
... | Inr ef-fails = Inr (EFAppFixEval CF⛽ refl f-evals arg-evals ef-fails)
... | Inl (ref , _ , ef-evals , ta-ref) = Inl (_ , _ , EAppFix CF⛽ refl f-evals arg-evals ef-evals , ta-ref)
progress {n = 1+ n} Γ⊢E (TAApp _ ta-f ta-arg) | Inl (rarg , _ , arg-evals , ta-rarg) | Inl ([ E' ]??[ u ] , _ , f-evals , ta-rf)
= Inl (_ , _ , EAppUnfinished f-evals (λ ()) arg-evals , TAApp ta-rf ta-rarg)
progress {n = 1+ n} Γ⊢E (TAApp _ ta-f ta-arg) | Inl (rarg , _ , arg-evals , ta-rarg) | Inl ((rf-f ∘ rf-arg) , _ , f-evals , ta-rf)
= Inl (_ , _ , EAppUnfinished f-evals (λ ()) arg-evals , TAApp ta-rf ta-rarg)
progress {n = 1+ n} Γ⊢E (TAApp _ ta-f ta-arg) | Inl (rarg , _ , arg-evals , ta-rarg) | Inl (fst _ , _ , f-evals , ta-rf)
= Inl (_ , _ , EAppUnfinished f-evals (λ ()) arg-evals , TAApp ta-rf ta-rarg)
progress {n = 1+ n} Γ⊢E (TAApp _ ta-f ta-arg) | Inl (rarg , _ , arg-evals , ta-rarg) | Inl (snd _ , _ , f-evals , ta-rf)
= Inl (_ , _ , EAppUnfinished f-evals (λ ()) arg-evals , TAApp ta-rf ta-rarg)
progress {n = 1+ n} Γ⊢E (TAApp _ ta-f ta-arg) | Inl (rarg , _ , arg-evals , ta-rarg) | Inl ([ E' ]case rf of⦃· rules ·⦄ , _ , f-evals , ta-rf)
= Inl (_ , _ , EAppUnfinished f-evals (λ ()) arg-evals , TAApp ta-rf ta-rarg)
progress {n = 1+ n} Γ⊢E (TAApp _ ta-f ta-arg) | Inl (rarg , _ , arg-evals , ta-rarg) | Inl ((C⁻[ _ ] _) , _ , f-evals , ta-rf)
= Inl (_ , _ , EAppUnfinished f-evals (λ ()) arg-evals , TAApp ta-rf ta-rarg)
progress {n = 1+ n} Γ⊢E TAUnit = Inl (_ , _ , EUnit , TAUnit)
progress {n = 1+ n} Γ⊢E (TAPair _ ta1 ta2)
with progress Γ⊢E ta1
... | Inr fails = Inr (EFPair1 fails)
... | Inl (_ , _ , evals1 , ta-r1)
with progress Γ⊢E ta2
... | Inr fails = Inr (EFPair2 fails)
... | Inl (_ , _ , evals2 , ta-r2) = Inl (_ , _ , EPair evals1 evals2 , TAPair ta-r1 ta-r2)
progress {Δ} {Σ'} {E = E} {τ = τ} {1+ n} Γ⊢E (TAFst ta)
with progress Γ⊢E ta
... | Inr fails = Inr (EFFst fails)
progress {Δ} {Σ'} {E = E} {τ = τ} {1+ n} Γ⊢E (TAFst ta) | Inl (⟨ r1 , r2 ⟩ , _ , evals , TAPair ta-r1 ta-r2)
= Inl (_ , _ , EFst evals , ta-r1)
progress {Δ} {Σ'} {E = E} {τ = τ} {1+ n} Γ⊢E (TAFst ta) | Inl ([ x ]fix x₁ ⦇·λ x₂ => x₃ ·⦈ , _ , evals , TAFix _ ())
progress {Δ} {Σ'} {E = E} {τ = τ} {1+ n} Γ⊢E (TAFst ta) | Inl ((C⁻[ x ] q) , _ , evals , ta-r)
= Inl (_ , _ , EFstUnfinished evals (λ ()) , TAFst ta-r)
progress {Δ} {Σ'} {E = E} {τ = τ} {1+ n} Γ⊢E (TAFst ta) | Inl ([ x ]??[ x₁ ] , _ , evals , ta-r)
= Inl (_ , _ , EFstUnfinished evals (λ ()) , TAFst ta-r)
progress {Δ} {Σ'} {E = E} {τ = τ} {1+ n} Γ⊢E (TAFst ta) | Inl ((q ∘ q₁) , _ , evals , ta-r)
= Inl (_ , _ , EFstUnfinished evals (λ ()) , TAFst ta-r)
progress {Δ} {Σ'} {E = E} {τ = τ} {1+ n} Γ⊢E (TAFst ta) | Inl (fst q , _ , evals , ta-r)
= Inl (_ , _ , EFstUnfinished evals (λ ()) , TAFst ta-r)
progress {Δ} {Σ'} {E = E} {τ = τ} {1+ n} Γ⊢E (TAFst ta) | Inl (snd q , _ , evals , ta-r)
= Inl (_ , _ , EFstUnfinished evals (λ ()) , TAFst ta-r)
progress {Δ} {Σ'} {E = E} {τ = τ} {1+ n} Γ⊢E (TAFst ta) | Inl ([ x ]case q of⦃· x₁ ·⦄ , _ , evals , ta-r)
= Inl (_ , _ , EFstUnfinished evals (λ ()) , TAFst ta-r)
progress {Δ} {Σ'} {E = E} {τ = τ} {1+ n} Γ⊢E (TASnd ta)
with progress Γ⊢E ta
... | Inr fails = Inr (EFSnd fails)
progress {Δ} {Σ'} {E = E} {τ = τ} {1+ n} Γ⊢E (TASnd ta) | Inl (⟨ r1 , r2 ⟩ , _ , evals , TAPair ta-r1 ta-r2)
= Inl (_ , _ , ESnd evals , ta-r2)
progress {Δ} {Σ'} {E = E} {τ = τ} {1+ n} Γ⊢E (TASnd ta) | Inl ([ x ]fix x₁ ⦇·λ x₂ => x₃ ·⦈ , _ , evals , TAFix _ ())
progress {Δ} {Σ'} {E = E} {τ = τ} {1+ n} Γ⊢E (TASnd ta) | Inl ((C⁻[ x ] q) , _ , evals , ta-r)
= Inl (_ , _ , ESndUnfinished evals (λ ()) , TASnd ta-r)
progress {Δ} {Σ'} {E = E} {τ = τ} {1+ n} Γ⊢E (TASnd ta) | Inl ([ x ]??[ x₁ ] , _ , evals , ta-r)
= Inl (_ , _ , ESndUnfinished evals (λ ()) , TASnd ta-r)
progress {Δ} {Σ'} {E = E} {τ = τ} {1+ n} Γ⊢E (TASnd ta) | Inl ((q ∘ q₁) , _ , evals , ta-r)
= Inl (_ , _ , ESndUnfinished evals (λ ()) , TASnd ta-r)
progress {Δ} {Σ'} {E = E} {τ = τ} {1+ n} Γ⊢E (TASnd ta) | Inl (fst q , _ , evals , ta-r)
= Inl (_ , _ , ESndUnfinished evals (λ ()) , TASnd ta-r)
progress {Δ} {Σ'} {E = E} {τ = τ} {1+ n} Γ⊢E (TASnd ta) | Inl (snd q , _ , evals , ta-r)
= Inl (_ , _ , ESndUnfinished evals (λ ()) , TASnd ta-r)
progress {Δ} {Σ'} {E = E} {τ = τ} {1+ n} Γ⊢E (TASnd ta) | Inl ([ x ]case q of⦃· x₁ ·⦄ , _ , evals , ta-r)
= Inl (_ , _ , ESndUnfinished evals (λ ()) , TASnd ta-r)
progress {n = 1+ n} Γ⊢E (TACtor d∈Σ' c∈d ta)
with progress Γ⊢E ta
... | Inr e-fails = Inr (EFCtor e-fails)
... | Inl (_ , _ , e-evals , ta-r) = Inl (_ , _ , ECtor e-evals , TACtor d∈Σ' c∈d ta-r)
progress {Σ' = Σ'} {n = 1+ n} Γ⊢E (TACase d∈σ' e-ta cctx⊆rules h-rules)
with progress Γ⊢E e-ta
... | Inr e-fails = Inr (EFMatchScrut e-fails)
... | Inl ([ x ]fix x₁ ⦇·λ x₂ => x₃ ·⦈ , _ , e-evals , TAFix _ ())
... | Inl ([ x ]??[ x₁ ] , _ , e-evals , ta-re)
= Inl (_ , _ , EMatchUnfinished e-evals (λ ()) , TACase d∈σ' Γ⊢E ta-re cctx⊆rules (λ form →
let _ , _ , _ , c∈cctx , ec-ta = h-rules form in
_ , c∈cctx , ec-ta))
... | Inl ((re ∘ re₁) , _ , e-evals , ta-re)
= Inl (_ , _ , EMatchUnfinished e-evals (λ ()) , TACase d∈σ' Γ⊢E ta-re cctx⊆rules (λ form →
let _ , _ , _ , c∈cctx , ec-ta = h-rules form in
_ , c∈cctx , ec-ta))
... | Inl (fst _ , _ , e-evals , ta-re)
= Inl (_ , _ , EMatchUnfinished e-evals (λ ()) , TACase d∈σ' Γ⊢E ta-re cctx⊆rules (λ form →
let _ , _ , _ , c∈cctx , ec-ta = h-rules form in
_ , c∈cctx , ec-ta))
... | Inl (snd _ , _ , e-evals , ta-re)
= Inl (_ , _ , EMatchUnfinished e-evals (λ ()) , TACase d∈σ' Γ⊢E ta-re cctx⊆rules (λ form →
let _ , _ , _ , c∈cctx , ec-ta = h-rules form in
_ , c∈cctx , ec-ta))
... | Inl ([ x ]case re of⦃· x₁ ·⦄ , _ , e-evals , ta-re)
= Inl (_ , _ , EMatchUnfinished e-evals (λ ()) , TACase d∈σ' Γ⊢E ta-re cctx⊆rules (λ form →
let _ , _ , _ , c∈cctx , ec-ta = h-rules form in
_ , c∈cctx , ec-ta))
... | Inl ((C⁻[ _ ] _) , _ , e-evals , ta-re)
= Inl (_ , _ , EMatchUnfinished e-evals (λ ()) , TACase d∈σ' Γ⊢E ta-re cctx⊆rules (λ form →
let _ , _ , _ , c∈cctx , ec-ta = h-rules form in
_ , c∈cctx , ec-ta))
... | Inl ((C[ c ] re) , _ , e-evals , TACtor d∈'σ' c∈cctx' ta-re)
rewrite ctxunicity d∈'σ' d∈σ'
with π2 (cctx⊆rules (_ , c∈cctx'))
... | form
with h-rules form
... | _ , _ , _ , c∈cctx , ec-ta
rewrite ctxunicity c∈cctx c∈cctx'
with progress {n = n} (EnvInd Γ⊢E ta-re) ec-ta
... | Inr ec-fails = Inr (EFMatchRule CF⛽ form e-evals ec-fails)
... | Inl (_ , _ , ec-evals , ta-rec) = Inl (_ , _ , EMatch CF⛽ form e-evals ec-evals , ta-rec)
progress {n = 1+ n} Γ⊢E (TAHole u∈Δ) = Inl (_ , _ , EHole , TAHole u∈Δ Γ⊢E)
progress {n = 1+ n} Γ⊢E (TAAsrt _ ta1 ta2)
with progress Γ⊢E ta1
... | Inr e1-fails = Inr (EFAsrtL e1-fails)
... | Inl (r1 , _ , e1-evals , ta-r1)
with progress Γ⊢E ta2
... | Inr e2-fails = Inr (EFAsrtR e2-fails)
... | Inl (r2 , _ , e2-evals , ta-r2)
with xc-progress ta-r1 ta-r2
... | Inl (_ , c-succ) = Inl (_ , _ , EAsrt e1-evals e2-evals c-succ , TAUnit)
... | Inr c-fail = Inr (EFAsrt e1-evals e2-evals c-fail)
lemma-xc-no-coerce : ∀{Δ Σ' r1 r2 τ n} →
Δ , Σ' ⊢ r1 ·: τ →
Δ , Σ' ⊢ r2 ·: τ →
r1 ≠ r2 →
(∀{ex} → Coerce r1 := ex → ⊥) →
r1 ≠ ⟨⟩ →
(∀{r'1 r'2} → r1 ≠ ⟨ r'1 , r'2 ⟩) →
(∀{c r} → r1 ≠ (C[ c ] r)) →
Σ[ k ∈ constraints ] Constraints⦃ r1 , r2 ⦄⌊ ⛽⟨ n ⟩ ⌋:= k
∨ Constraints⦃ r1 , r2 ⦄⌊ ⛽⟨ n ⟩ ⌋:=∅
lemma-xc-no-coerce ta1 (TAFix x x₁) r1≠r2 no-coerce not-unit not-pair not-ctor
= Inr (XCFNoCoerce r1≠r2 (Inl not-pair) (Inl not-ctor) no-coerce λ ())
lemma-xc-no-coerce ta1 (TAApp ta2 ta3) r1≠r2 no-coerce not-unit not-pair not-ctor
= Inr (XCFNoCoerce r1≠r2 (Inl not-pair) (Inl not-ctor) no-coerce λ ())
lemma-xc-no-coerce ta1 TAUnit r1≠r2 no-coerce not-unit not-pair not-ctor
with xb-progress ta1 TAUnit
... | Inl (_ , xb) = Inl (_ , (XCBackProp1 r1≠r2 (Inl not-pair) (Inl not-ctor) CoerceUnit xb))
... | Inr xb-fails = Inr (XCFXB1 r1≠r2 (Inl not-pair) (Inl not-ctor) CoerceUnit xb-fails)
lemma-xc-no-coerce ta1 ta2@(TAPair _ _) r1≠r2 no-coerce not-unit not-pair not-ctor
with Coerce-dec
... | Inr nc = Inr (XCFNoCoerce r1≠r2 (Inl not-pair) (Inl not-ctor) no-coerce λ {c-r2 → nc (_ , c-r2)})
... | Inl (_ , c-r2)
with xb-progress ta1 (Coerce-preservation ta2 c-r2)
... | Inr xb-fails = Inr (XCFXB1 r1≠r2 (Inl not-pair) (Inl not-ctor) c-r2 xb-fails)
... | Inl (_ , xb) = Inl (_ , (XCBackProp1 r1≠r2 (Inl not-pair) (Inl not-ctor) c-r2 xb))
lemma-xc-no-coerce ta1 (TAFst ta2) r1≠r2 no-coerce not-unit not-pair not-ctor
= Inr (XCFNoCoerce r1≠r2 (Inl not-pair) (Inl not-ctor) no-coerce λ ())
lemma-xc-no-coerce ta1 (TASnd ta2) r1≠r2 no-coerce not-unit not-pair not-ctor
= Inr (XCFNoCoerce r1≠r2 (Inl not-pair) (Inl not-ctor) no-coerce λ ())
lemma-xc-no-coerce ta1 ta2@(TACtor _ _ _) r1≠r2 no-coerce not-unit not-pair not-ctor
with Coerce-dec
... | Inr nc = Inr (XCFNoCoerce r1≠r2 (Inl not-pair) (Inl not-ctor) no-coerce λ {c-r2 → nc (_ , c-r2)})
... | Inl (_ , c-r2)
with xb-progress ta1 (Coerce-preservation ta2 c-r2)
... | Inr xb-fails = Inr (XCFXB1 r1≠r2 (Inl not-pair) (Inl not-ctor) c-r2 xb-fails)
... | Inl (_ , xb) = Inl (_ , (XCBackProp1 r1≠r2 (Inl not-pair) (Inl not-ctor) c-r2 xb))
lemma-xc-no-coerce ta1 (TAUnwrapCtor x x₁ ta2) r1≠r2 no-coerce not-unit not-pair not-ctor
= Inr (XCFNoCoerce r1≠r2 (Inl not-pair) (Inl not-ctor) no-coerce λ ())
lemma-xc-no-coerce ta1 (TACase x x₁ ta2 x₂ x₃) r1≠r2 no-coerce not-unit not-pair not-ctor
= Inr (XCFNoCoerce r1≠r2 (Inl not-pair) (Inl not-ctor) no-coerce λ ())
lemma-xc-no-coerce ta1 (TAHole x x₁) r1≠r2 no-coerce not-unit not-pair not-ctor
= Inr (XCFNoCoerce r1≠r2 (Inl not-pair) (Inl not-ctor) no-coerce λ ())
xc-progress {r1 = r1} {r2} ta1 ta2
with result-==-dec r1 r2
... | Inl refl = Inl (_ , XCExRefl)
xc-progress {r1 = _} {_} ta1@(TAFix x x₁) ta2 | Inr r1≠r2
= lemma-xc-no-coerce ta1 ta2 r1≠r2 (λ ()) (λ ()) (λ ()) λ ()
xc-progress {r1 = _} {_} ta1@(TAApp _ _) ta2 | Inr r1≠r2
= lemma-xc-no-coerce ta1 ta2 r1≠r2 (λ ()) (λ ()) (λ ()) λ ()
xc-progress {r1 = _} {_} TAUnit ta2 | Inr r1≠r2
with xb-progress ta2 TAUnit
... | Inl (_ , xb) = Inl (_ , (XCBackProp2 r1≠r2 (Inl (λ ())) (Inl (λ ())) CoerceUnit xb))
... | Inr xb-fails = Inr (XCFXB2 r1≠r2 (Inl (λ ())) (Inl (λ ())) CoerceUnit xb-fails)
xc-progress (TAPair ta1a ta1b) (TAPair ta2a ta2b) | Inr r1≠r2
with xc-progress ta1a ta2a
... | Inr xca-fails = Inr (XCFPair1 xca-fails)
... | Inl (_ , xca)
with xc-progress ta1b ta2b
... | Inr xcb-fails = Inr (XCFPair2 xcb-fails)
... | Inl (_ , xcb) = Inl (_ , XCPair r1≠r2 xca xcb)
xc-progress ta1@(TAPair _ _) ta2@(TAApp _ _) | Inr r1≠r2
with Coerce-dec
... | Inr nc = Inr (XCFNoCoerce r1≠r2 (Inr (λ ())) (Inr (λ ())) (λ {c-r1 → nc (_ , c-r1)}) λ ())
... | Inl (_ , c-r1)
with xb-progress ta2 (Coerce-preservation ta1 c-r1)
... | Inr xb-fails = Inr (XCFXB2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb-fails)
... | Inl (_ , xb) = Inl (_ , (XCBackProp2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb))
xc-progress ta1@(TAPair _ _) ta2@(TAFst _) | Inr r1≠r2
with Coerce-dec
... | Inr nc = Inr (XCFNoCoerce r1≠r2 (Inr (λ ())) (Inr (λ ())) (λ {c-r1 → nc (_ , c-r1)}) λ ())
... | Inl (_ , c-r1)
with xb-progress ta2 (Coerce-preservation ta1 c-r1)
... | Inr xb-fails = Inr (XCFXB2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb-fails)
... | Inl (_ , xb) = Inl (_ , (XCBackProp2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb))
xc-progress ta1@(TAPair _ _) ta2@(TASnd _) | Inr r1≠r2
with Coerce-dec
... | Inr nc = Inr (XCFNoCoerce r1≠r2 (Inr (λ ())) (Inr (λ ())) (λ {c-r1 → nc (_ , c-r1)}) λ ())
... | Inl (_ , c-r1)
with xb-progress ta2 (Coerce-preservation ta1 c-r1)
... | Inr xb-fails = Inr (XCFXB2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb-fails)
... | Inl (_ , xb) = Inl (_ , (XCBackProp2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb))
xc-progress ta1@(TAPair _ _) ta2@(TAUnwrapCtor _ _ _) | Inr r1≠r2
with Coerce-dec
... | Inr nc = Inr (XCFNoCoerce r1≠r2 (Inr (λ ())) (Inr (λ ())) (λ {c-r1 → nc (_ , c-r1)}) λ ())
... | Inl (_ , c-r1)
with xb-progress ta2 (Coerce-preservation ta1 c-r1)
... | Inr xb-fails = Inr (XCFXB2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb-fails)
... | Inl (_ , xb) = Inl (_ , (XCBackProp2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb))
xc-progress ta1@(TAPair _ _) ta2@(TACase _ _ _ _ _) | Inr r1≠r2
with Coerce-dec
... | Inr nc = Inr (XCFNoCoerce r1≠r2 (Inr (λ ())) (Inr (λ ())) (λ {c-r1 → nc (_ , c-r1)}) λ ())
... | Inl (_ , c-r1)
with xb-progress ta2 (Coerce-preservation ta1 c-r1)
... | Inr xb-fails = Inr (XCFXB2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb-fails)
... | Inl (_ , xb) = Inl (_ , (XCBackProp2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb))
xc-progress ta1@(TAPair _ _) ta2@(TAHole _ _) | Inr r1≠r2
with Coerce-dec
... | Inr nc = Inr (XCFNoCoerce r1≠r2 (Inr (λ ())) (Inr (λ ())) (λ {c-r1 → nc (_ , c-r1)}) λ ())
... | Inl (_ , c-r1)
with xb-progress ta2 (Coerce-preservation ta1 c-r1)
... | Inr xb-fails = Inr (XCFXB2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb-fails)
... | Inl (_ , xb) = Inl (_ , (XCBackProp2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb))
xc-progress ta1@(TAFst _) ta2 | Inr r1≠r2
= lemma-xc-no-coerce ta1 ta2 r1≠r2 (λ ()) (λ ()) (λ ()) λ ()
xc-progress {r1 = _} {_} ta1@(TASnd _) ta2 | Inr r1≠r2
= lemma-xc-no-coerce ta1 ta2 r1≠r2 (λ ()) (λ ()) (λ ()) λ ()
xc-progress (TACtor {c = c1} d∈σ1 c1∈cctx ta1) (TACtor {c = c2} d∈σ2 c2∈cctx ta2) | Inr r1≠r2
with natEQ c1 c2
... | Inr ne = Inr (XCFCtorMM ne)
... | Inl refl
rewrite ctxunicity d∈σ1 d∈σ2 | ctxunicity c1∈cctx c2∈cctx
with xc-progress ta1 ta2
... | Inr xc-fails = Inr (XCFCtor xc-fails)
... | Inl (_ , xc) = Inl (_ , XCCtor (λ where refl → r1≠r2 refl) xc)
xc-progress ta1@(TACtor _ _ _) ta2@(TAApp _ _) | Inr r1≠r2
with Coerce-dec
... | Inr nc = Inr (XCFNoCoerce r1≠r2 (Inr (λ ())) (Inr (λ ())) (λ {c-r1 → nc (_ , c-r1)}) λ ())
... | Inl (_ , c-r1)
with xb-progress ta2 (Coerce-preservation ta1 c-r1)
... | Inr xb-fails = Inr (XCFXB2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb-fails)
... | Inl (_ , xb) = Inl (_ , (XCBackProp2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb))
xc-progress ta1@(TACtor _ _ _) ta2@(TAFst _) | Inr r1≠r2
with Coerce-dec
... | Inr nc = Inr (XCFNoCoerce r1≠r2 (Inr (λ ())) (Inr (λ ())) (λ {c-r1 → nc (_ , c-r1)}) λ ())
... | Inl (_ , c-r1)
with xb-progress ta2 (Coerce-preservation ta1 c-r1)
... | Inr xb-fails = Inr (XCFXB2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb-fails)
... | Inl (_ , xb) = Inl (_ , (XCBackProp2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb))
xc-progress ta1@(TACtor _ _ _) ta2@(TASnd _) | Inr r1≠r2
with Coerce-dec
... | Inr nc = Inr (XCFNoCoerce r1≠r2 (Inr (λ ())) (Inr (λ ())) (λ {c-r1 → nc (_ , c-r1)}) λ ())
... | Inl (_ , c-r1)
with xb-progress ta2 (Coerce-preservation ta1 c-r1)
... | Inr xb-fails = Inr (XCFXB2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb-fails)
... | Inl (_ , xb) = Inl (_ , (XCBackProp2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb))
xc-progress ta1@(TACtor _ _ _) ta2@(TAUnwrapCtor _ _ _) | Inr r1≠r2
with Coerce-dec
... | Inr nc = Inr (XCFNoCoerce r1≠r2 (Inr (λ ())) (Inr (λ ())) (λ {c-r1 → nc (_ , c-r1)}) λ ())
... | Inl (_ , c-r1)
with xb-progress ta2 (Coerce-preservation ta1 c-r1)
... | Inr xb-fails = Inr (XCFXB2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb-fails)
... | Inl (_ , xb) = Inl (_ , (XCBackProp2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb))
xc-progress ta1@(TACtor _ _ _) ta2@(TACase _ _ _ _ _) | Inr r1≠r2
with Coerce-dec
... | Inr nc = Inr (XCFNoCoerce r1≠r2 (Inr (λ ())) (Inr (λ ())) (λ {c-r1 → nc (_ , c-r1)}) λ ())
... | Inl (_ , c-r1)
with xb-progress ta2 (Coerce-preservation ta1 c-r1)
... | Inr xb-fails = Inr (XCFXB2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb-fails)
... | Inl (_ , xb) = Inl (_ , (XCBackProp2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb))
xc-progress ta1@(TACtor _ _ _) ta2@(TAHole _ _) | Inr r1≠r2
with Coerce-dec
... | Inr nc = Inr (XCFNoCoerce r1≠r2 (Inr (λ ())) (Inr (λ ())) (λ {c-r1 → nc (_ , c-r1)}) λ ())
... | Inl (_ , c-r1)
with xb-progress ta2 (Coerce-preservation ta1 c-r1)
... | Inr xb-fails = Inr (XCFXB2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb-fails)
... | Inl (_ , xb) = Inl (_ , (XCBackProp2 r1≠r2 (Inr (λ ())) (Inr (λ ())) c-r1 xb))
xc-progress {r1 = _} {_} ta1@(TAUnwrapCtor _ _ _) ta2 | Inr r1≠r2
= lemma-xc-no-coerce ta1 ta2 r1≠r2 (λ ()) (λ ()) (λ ()) λ ()
xc-progress {r1 = _} {_} ta1@(TACase _ _ _ _ _) ta2 | Inr r1≠r2
= lemma-xc-no-coerce ta1 ta2 r1≠r2 (λ ()) (λ ()) (λ ()) λ ()
xc-progress {r1 = _} {_} ta1@(TAHole _ _) ta2 | Inr r1≠r2
= lemma-xc-no-coerce ta1 ta2 r1≠r2 (λ ()) (λ ()) (λ ()) λ ()
xb-progress {n = Z} _ _ = Inl (_ , XBLimit)
xb-progress {ex = ex} {n = 1+ n} ta-r ta-ex
with ex-¿¿-dec {ex}
... | Inl refl = Inl (_ , XBNone)
xb-progress {n = 1+ n} ta-f@(TAFix Γ⊢E (TAFix ta-e)) (TAMap _ ta-v ta-ex) | Inr ne
with progress {n = n} (EnvInd (EnvInd Γ⊢E ta-f) ta-v) ta-e
... | Inr fails = Inr (XBFFixEval CF⛽ refl fails)
... | Inl (_ , _ , evals , ta)
with xb-progress {n = n} ta ta-ex
... | Inr fails = Inr (XBFFix CF⛽ refl evals fails)
... | Inl (_ , xb) = Inl (_ , XBFix CF⛽ refl evals xb)
xb-progress (TAFix x (TAFix _)) TADC | Inr ne = Inl (_ , XBNone)
xb-progress (TAApp {arg = v} ta-rf ta-rarg) ta-ex | Inr ne
with value-dec {v}
... | Inr nv = Inr (XBFAppNonVal ne nv)
... | Inl val
with xb-progress ta-rf (TAMap val ta-rarg ta-ex)
... | Inr fails = Inr (XBFApp ne val fails)
... | Inl (_ , xb) = Inl (_ , XBApp ne val xb)
xb-progress TAUnit TAUnit | Inr ne = Inl (_ , XBUnit)
xb-progress TAUnit TADC | Inr ne = Inl (_ , XBNone)
xb-progress (TAPair ta-r1 ta-r2) (TAPair ta-ex1 ta-ex2) | Inr ne
with xb-progress ta-r1 ta-ex1
... | Inr fails = Inr (XBFPair1 fails)
... | Inl (_ , xb1)
with xb-progress ta-r2 ta-ex2
... | Inr fails = Inr (XBFPair2 fails)
... | Inl (_ , xb2) = Inl (_ , XBPair xb1 xb2)
xb-progress (TAPair ta-r1 ta-r2) TADC | Inr ne = Inl (_ , XBNone)
xb-progress (TAFst ta-r) ta-ex | Inr ne
with xb-progress ta-r (TAPair ta-ex TADC)
... | Inr fails = Inr (XBFFst ne fails)
... | Inl (_ , xb) = Inl (_ , XBFst ne xb)
xb-progress (TASnd ta-r) ta-ex | Inr ne
with xb-progress ta-r (TAPair TADC ta-ex)
... | Inr fails = Inr (XBFSnd ne fails)
... | Inl (_ , xb) = Inl (_ , XBSnd ne xb)
xb-progress (TACtor {c = c1} h1a h1b ta-r) (TACtor {c = c2} h2a h2b ta-ex) | Inr ne
with natEQ c1 c2
... | Inr ne' = Inr (XBFCtorMM ne')
... | Inl refl
rewrite ctxunicity h1a h2a | ctxunicity h1b h2b
with xb-progress ta-r ta-ex
... | Inr fails = Inr (XBFCtor fails)
... | Inl (_ , xb) = Inl (_ , XBCtor xb)
xb-progress (TACtor x x₁ ta-r) TADC | Inr ne = Inl (_ , XBNone)
xb-progress (TAUnwrapCtor h1 h2 ta-r) ta-ex | Inr ne
with xb-progress ta-r (TACtor h1 h2 ta-ex)
... | Inr fails = Inr (XBFUnwrapCtor ne fails)
... | Inl (_ , xb) = Inl (_ , XBUnwrapCtor ne xb)
xb-progress {n = 1+ n} ta-C@(TACase {rules = rules} x x₁ ta-r x₂ x₃) ta-ex | Inr ne
= lemma-xb-progress-case {n = 1+ n} {n} refl ∥ rules ∥ rules refl ∅ (λ y → y) (λ ()) Inl ta-C ta-ex ne
xb-progress (TAHole x x₁) TAUnit | Inr ne
= Inl (_ , XBHole ne λ ())
xb-progress (TAHole x x₁) (TAPair ta-ex ta-ex₁) | Inr ne
= Inl (_ , XBHole ne λ ())
xb-progress (TAHole x x₁) (TACtor x₂ x₃ ta-ex) | Inr ne
= Inl (_ , XBHole ne λ ())
xb-progress (TAHole x x₁) TADC | Inr ne = Inl (_ , XBNone)
xb-progress (TAHole x x₁) (TAMap x₂ x₃ ta-ex) | Inr ne
= Inr XBFHole
lemma-xb-progress-case {E = E} {r} {rules} {ex} {n = n} {n↓} refl Z [] len-unchecked failed unchecked-wf failed-wf exh ta-C ta-ex n¿¿
= Inr (XBFMatch CF⛽ n¿¿ all-failed)
where
all-failed : ∀{c-j x-j : Nat} {e-j : exp} →
(c-j , |C x-j => e-j) ∈ rules →
r ⇐ C[ c-j ] ¿¿ ⌊ ⛽⟨ n ⟩ ⌋:=∅
∨ Σ[ k1 ∈ constraints ] (
r ⇐ C[ c-j ] ¿¿ ⌊ ⛽⟨ n ⟩ ⌋:= k1 ∧ (E ,, (x-j , C⁻[ c-j ] r)) ⊢ e-j ⌊ ⛽⟨ n↓ ⟩ ⌋⇒∅)
∨ Σ[ k1 ∈ constraints ] Σ[ k2 ∈ constraints ] Σ[ r-j ∈ result ] (
r ⇐ C[ c-j ] ¿¿ ⌊ ⛽⟨ n ⟩ ⌋:= k1 ∧ (E ,, (x-j , C⁻[ c-j ] r)) ⊢ e-j ⌊ ⛽⟨ n↓ ⟩ ⌋⇒ r-j ⊣ k2 ∧ r-j ⇐ ex ⌊ ⛽⟨ n↓ ⟩ ⌋:=∅)
all-failed c-j∈rules
with exh (_ , c-j∈rules)
... | Inl (_ , ())
... | Inr ((c-j , x-j , e-j , p-j) , c-j∈f)
with failed-wf c-j∈f
... | refl , c-j∈'rules
with ctxunicity c-j∈rules c-j∈'rules
... | refl = p-j
lemma-xb-progress-case {n = 1+ n↓} {n↓} refl (1+ len) unchecked len-unchecked failed unchecked-wf failed-wf exh ta-C@(TACase {rules = rules} d∈σ' Γ⊢E ta-r _ ta-rules) ta-ex n¿¿
with ctx-elim {Γ = unchecked}
... | Inl refl = abort (0≠1+n (! len-unchecked))
... | Inr (c , |C x-j => e-j , unchecked' , refl , c#unchecked')
with unchecked-wf (x,a∈Γ,,x,a {Γ = unchecked'})
... | c∈rules
with ta-rules c∈rules
... | _ , c∈cctx , ta-be
with xb-progress ta-r (TACtor d∈σ' c∈cctx TADC)
... | Inr fails
= lemma-xb-progress-case
refl
len
unchecked'
(1+inj (len-unchecked · ctx-decreasing c#unchecked'))
(failed ,, (c , fail))
unchecked-wf' failed-wf' exh' ta-C ta-ex n¿¿
where
fail = c , x-j , e-j , (Inl fails)
unchecked-wf' : ∀{c' rule'} → (c' , rule') ∈ unchecked' → (c' , rule') ∈ rules
unchecked-wf' {c' = c'} c'∈uc'
with natEQ c c'
... | Inl refl = abort (c#unchecked' (_ , c'∈uc'))
... | Inr cne = unchecked-wf (x∈Γ→x∈Γ+ (flip cne) c'∈uc')
failed-wf' : ∀{c' c-j' x-j' e-j' p-j'} →
(c' , c-j' , x-j' , e-j' , p-j') ∈ (failed ,, (c , fail)) →
c' == c-j' ∧ ((c' , (|C x-j' => e-j')) ∈ rules)
failed-wf' {c' = c'} {c-j'} c'∈f+
with natEQ c c'
... | Inr cne = failed-wf (x∈Γ+→x∈Γ (flip cne) c'∈f+)
... | Inl refl
with ctxunicity c'∈f+ (x,a∈Γ,,x,a {Γ = failed})
... | refl = refl , c∈rules
exh' : ∀{c'} → dom rules c' → dom unchecked' c' ∨ dom (failed ,, (c , fail)) c'
exh' {c' = c'} c'∈rules
with natEQ c c'
... | Inl refl = Inr (_ , x,a∈Γ,,x,a {Γ = failed})
... | Inr cne
with exh c'∈rules
... | Inl (_ , c'∈uc) = Inl (_ , (x∈Γ+→x∈Γ (flip cne) c'∈uc))
... | Inr (_ , c'∈f) = Inr (_ , x∈Γ→x∈Γ+ (flip cne) c'∈f)
... | Inl (_ , xb-r)
with progress {n = n↓} (EnvInd Γ⊢E (TAUnwrapCtor d∈σ' c∈cctx ta-r)) ta-be
... | Inr fails
= lemma-xb-progress-case
refl
len
unchecked'
(1+inj (len-unchecked · ctx-decreasing c#unchecked'))
(failed ,, (c , fail))
unchecked-wf' failed-wf' exh' ta-C ta-ex n¿¿
where
fail = c , x-j , e-j , (Inr (Inl (_ , xb-r , fails)))
unchecked-wf' : ∀{c' rule'} → (c' , rule') ∈ unchecked' → (c' , rule') ∈ rules
unchecked-wf' {c' = c'} c'∈uc'
with natEQ c c'
... | Inl refl = abort (c#unchecked' (_ , c'∈uc'))
... | Inr cne = unchecked-wf (x∈Γ→x∈Γ+ (flip cne) c'∈uc')
failed-wf' : ∀{c' c-j' x-j' e-j' p-j'} →
(c' , c-j' , x-j' , e-j' , p-j') ∈ (failed ,, (c , fail)) →
c' == c-j' ∧ ((c' , (|C x-j' => e-j')) ∈ rules)
failed-wf' {c' = c'} {c-j'} c'∈f+
with natEQ c c'
... | Inr cne = failed-wf (x∈Γ+→x∈Γ (flip cne) c'∈f+)
... | Inl refl
with ctxunicity c'∈f+ (x,a∈Γ,,x,a {Γ = failed})
... | refl = refl , c∈rules
exh' : ∀{c'} → dom rules c' → dom unchecked' c' ∨ dom (failed ,, (c , fail)) c'
exh' {c' = c'} c'∈rules
with natEQ c c'
... | Inl refl = Inr (_ , x,a∈Γ,,x,a {Γ = failed})
... | Inr cne
with exh c'∈rules
... | Inl (_ , c'∈uc) = Inl (_ , (x∈Γ+→x∈Γ (flip cne) c'∈uc))
... | Inr (_ , c'∈f) = Inr (_ , x∈Γ→x∈Γ+ (flip cne) c'∈f)
... | Inl (_ , _ , evals , ta-br)
with xb-progress {n = n↓} ta-br ta-ex
... | Inr fails
= lemma-xb-progress-case
refl
len
unchecked'
(1+inj (len-unchecked · ctx-decreasing c#unchecked'))
(failed ,, (c , fail))
unchecked-wf' failed-wf' exh' ta-C ta-ex n¿¿
where
fail = c , x-j , e-j , (Inr (Inr (_ , _ , _ , xb-r , evals , fails)))
unchecked-wf' : ∀{c' rule'} → (c' , rule') ∈ unchecked' → (c' , rule') ∈ rules
unchecked-wf' {c' = c'} c'∈uc'
with natEQ c c'
... | Inl refl = abort (c#unchecked' (_ , c'∈uc'))
... | Inr cne = unchecked-wf (x∈Γ→x∈Γ+ (flip cne) c'∈uc')
failed-wf' : ∀{c' c-j' x-j' e-j' p-j'} →
(c' , c-j' , x-j' , e-j' , p-j') ∈ (failed ,, (c , fail)) →
c' == c-j' ∧ ((c' , (|C x-j' => e-j')) ∈ rules)
failed-wf' {c' = c'} {c-j'} c'∈f+
with natEQ c c'
... | Inr cne = failed-wf (x∈Γ+→x∈Γ (flip cne) c'∈f+)
... | Inl refl
with ctxunicity c'∈f+ (x,a∈Γ,,x,a {Γ = failed})
... | refl = refl , c∈rules
exh' : ∀{c'} → dom rules c' → dom unchecked' c' ∨ dom (failed ,, (c , fail)) c'
exh' {c' = c'} c'∈rules
with natEQ c c'
... | Inl refl = Inr (_ , x,a∈Γ,,x,a {Γ = failed})
... | Inr cne
with exh c'∈rules
... | Inl (_ , c'∈uc) = Inl (_ , (x∈Γ+→x∈Γ (flip cne) c'∈uc))
... | Inr (_ , c'∈f) = Inr (_ , x∈Γ→x∈Γ+ (flip cne) c'∈f)
... | Inl (_ , xb)
= Inl (_ , (XBMatch CF⛽ n¿¿ c∈rules xb-r evals xb))
{- TODO delete - this strong version is unprovable
module progress where
progress : ∀{Δ Σ' Γ E e τ} →
Δ , Σ' , Γ ⊢ E →
Δ , Σ' , Γ ⊢ e :: τ →
-- Either there's some properly-typed result that e will eval to
-- for any beta reduction limit ...
Σ[ r ∈ result ] (
Δ , Σ' ⊢ r ·: τ ∧
∀{n} → Σ[ k ∈ constraints ] (E ⊢ e ⌊ ⛽⟨ n ⟩ ⌋⇒ r ⊣ k))
∨
-- ... or evaluation will have a constraint failure for any
-- beta reduction limit
(∀{n} → E ⊢ e ⌊ ⛽⟨ n ⟩ ⌋⇒∅)
progress Γ⊢E ta'@(TALam _ ta) = Inl (_ , TALam Γ⊢E ta' , (_ , EFun))
progress Γ⊢E ta'@(TAFix _ _ ta) = Inl (_ , TAFix Γ⊢E ta' , (_ , EFix))
progress Γ⊢E (TAVar x∈Γ)
with env-all-Γ Γ⊢E x∈Γ
... | _ , x∈E , ta = Inl (_ , ta , (_ , EVar x∈E))
progress Γ⊢E (TAApp _ ta-f ta-arg)
with progress Γ⊢E ta-arg
... | Inr arg-fails = Inr (EFAppArg arg-fails)
... | Inl (_ , ta-rarg , arg-evals)
with progress Γ⊢E ta-f
... | Inr f-fails = Inr (EFAppFun f-fails)
progress Γ⊢E (TAApp _ ta-f ta-arg) | Inl (_ , ta-rarg , arg-evals) | Inl (([ E' ]λ x => ef) , TALam Γ'⊢E' (TALam x#Γ' ta-ef) , f-evals)
with progress (EnvInd Γ'⊢E' ta-rarg) ta-ef
... | q = {!!}
progress Γ⊢E (TAApp _ ta-f ta-arg) | Inl (_ , ta-rarg , arg-evals) | Inl ([ E' ]fix f ⦇·λ x => ef ·⦈ , ta-rf , f-evals) = {!!}
progress Γ⊢E (TAApp _ ta-f ta-arg) | Inl (_ , ta-rarg , arg-evals) | Inl ([ x ]??[ x₁ ] , ta-rf , f-evals) = {!!}
progress Γ⊢E (TAApp _ ta-f ta-arg) | Inl (_ , ta-rarg , arg-evals) | Inl ((rf ∘ rf₁) , ta-rf , f-evals) = {!!}
progress Γ⊢E (TAApp _ ta-f ta-arg) | Inl (_ , ta-rarg , arg-evals) | Inl ((get[ x th-of x₁ ] rf) , ta-rf , f-evals) = {!!}
progress Γ⊢E (TAApp _ ta-f ta-arg) | Inl (_ , ta-rarg , arg-evals) | Inl ([ x ]case rf of⦃· x₁ ·⦄ , ta-rf , f-evals) = {!!}
progress Γ⊢E (TAApp _ ta-f ta-arg) | Inl (_ , ta-rarg , arg-evals) | Inl (PF x , ta-rf , f-evals) = {!!}
progress Γ⊢E (TATpl ∥es∥==∥τs∥ _ tas) = {!!}
progress {Δ} {Σ'} {E = E} {τ = τ} Γ⊢E (TAGet {i = i} {len} {e} len==∥τs∥ i<∥τs∥ ta)
with progress Γ⊢E ta
... | Inr e-fails = Inr (EFGet e-fails)
... | Inl (⟨ rs ⟩ , TATpl ∥rs∥==∥τs∥ tas , e-evals)
= let i<∥rs∥ = tr (λ y → i < y) (! ∥rs∥==∥τs∥) i<∥τs∥ in
Inl (_ , tas i<∥rs∥ i<∥τs∥ , _ , EGet (len==∥τs∥ · ! ∥rs∥==∥τs∥) i<∥rs∥ (π2 e-evals))
... | Inl (([ x ]λ x₁ => x₂) , TALam _ () , e-evals)
... | Inl ([ x ]fix x₁ ⦇·λ x₂ => x₃ ·⦈ , TAFix _ () , e-evals)
... | Inl ([ x ]??[ x₁ ] , ta-r , e-evals)
rewrite len==∥τs∥ = Inl (_ , TAGet i<∥τs∥ ta-r , _ , EGetUnfinished (π2 e-evals) λ ())
... | Inl ((r ∘ r₁) , ta-r , e-evals)
rewrite len==∥τs∥ = Inl (_ , TAGet i<∥τs∥ ta-r , _ , EGetUnfinished (π2 e-evals) λ ())
... | Inl ((get[ x th-of x₁ ] r) , ta-r , e-evals)
rewrite len==∥τs∥ = Inl (_ , TAGet i<∥τs∥ ta-r , _ , EGetUnfinished (π2 e-evals) λ ())
... | Inl ([ x ]case r of⦃· x₁ ·⦄ , ta-r , e-evals)
rewrite len==∥τs∥ = Inl (_ , TAGet i<∥τs∥ ta-r , _ , EGetUnfinished (π2 e-evals) λ ())
... | Inl (PF x , TAPF () , e-evals)
progress Γ⊢E (TACtor d∈Σ' c∈d ta)
with progress Γ⊢E ta
... | Inl (_ , ta-r , e-evals) = Inl (_ , TACtor d∈Σ' c∈d ta-r , _ , ECtor (π2 e-evals))
... | Inr e-fails = Inr (EFCtor e-fails)
progress Γ⊢E (TACase x ta x₁ x₂) = {!!}
progress Γ⊢E (TAHole u∈Δ) = Inl (_ , TAHole u∈Δ Γ⊢E , (_ , EHole))
progress Γ⊢E (TAPF ta) = Inl (_ , TAPF ta , (_ , EPF))
progress Γ⊢E (TAAsrt x ta ta₁) = {!!}
-}
|
src/compiling/ANTLR/grammar/ModuleParametersAndPorts.g4 | jecassis/VSCode-SystemVerilog | 75 | 222 | grammar ModuleParametersAndPorts;
import ModuleItems;
parameter_port_list : '#' '(' list_of_param_assignments ( ',' parameter_port_declaration )* ')'
| '#' '(' parameter_port_declaration ( ',' parameter_port_declaration )* ')'
| '#' '(' ')' ;
parameter_port_declaration : parameter_declaration
| local_parameter_declaration
| data_type list_of_param_assignments
| 'type' list_of_type_assignments ;
list_of_ports : '(' port ( ',' port )* ')' ;
list_of_port_declarations : '(' ( ( attribute_instance )* ansi_port_declaration
( ',' ( attribute_instance )* ansi_port_declaration )* )? ')' ;
port_declaration : ( attribute_instance )* inout_declaration
| ( attribute_instance )* input_declaration
| ( attribute_instance )* output_declaration
| ( attribute_instance )* ref_declaration
| ( attribute_instance )* interface_port_declaration ;
port : ( port_expression )?
| '.' port_identifier '(' ( port_expression )? ')' ;
port_expression : port_reference
| '{' port_reference ( ',' port_reference )* '}' ;
port_reference : port_identifier constant_select ;
port_direction : 'input' | 'output' | 'inout' | 'ref' ;
net_port_header : ( port_direction )? net_port_type ;
variable_port_header : ( port_direction )? variable_port_type ;
interface_port_header : interface_identifier ( '.' modport_identifier )?
| 'interface' ( '.' modport_identifier )? ;
ansi_port_declaration : ( net_port_header | interface_port_header )? port_identifier ( unpacked_dimension )*
( '=' constant_expression )?
| ( variable_port_header )? port_identifier ( variable_dimension )* ( '=' constant_expression )?
| ( port_direction )? '.' port_identifier '(' ( expression )? ')' ;
|
test/Succeed/LevelWithBug.agda | redfish64/autonomic-agda | 1 | 3808 | {-# OPTIONS --universe-polymorphism #-}
module LevelWithBug where
open import Common.Level
postulate
take : ∀ a → Set a → Set
a : Level
A : Set a
Goal : Set → Set
goal : ∀ X → Goal X
-- The meta got solved by Level (Max [Plus 0 (NeutralLevel a)]) which
-- didn't match the argument in the with expression which is simply a.
-- Now the level noise should go away when it's not useful.
foo : Goal (take _ A)
foo with take a A
... | z = goal z
-- Here's another more complicated one.
data List {a}(A : Set a) : Set a where
[] : List A
_∷_ : A → List A → List A
data _≡_ {a}{A : Set a}(x : A) : A → Set a where
refl : x ≡ x
{-# BUILTIN EQUALITY _≡_ #-}
{-# BUILTIN REFL refl #-}
-- Sums commute with Any (for a fixed list).
data Any {a p} {A : Set a}
(P : A → Set p) : List A → Set (a ⊔ p) where
there : ∀ {x xs} (pxs : Any P xs) → Any P (x ∷ xs)
amap : ∀ {a p q} {A : Set a} {P : A → Set p} → {Q : A → Set q} →
(∀ {x} → P x → Q x) → ∀ {xs} → Any P xs → Any Q xs
amap g (there pxs) = there (amap g pxs)
data _+_ {a b} (A : Set a) (B : Set b) : Set (a ⊔ b) where
inl : (x : A) → A + B
inr : (y : B) → A + B
smap : ∀ {a b c d} {A : Set a} {B : Set b} {C : Set c} {D : Set d} →
(A → C) → (B → D) → (A + B → C + D)
smap f g (inl x) = inl (f x)
smap f g (inr y) = inr (g y)
postulate
p q : Level
P : A → Set p
Q : A → Set q
to : ∀ xs → Any P xs + Any Q xs → Any (λ x → P x + Q x) xs
to xs (inl pxs) = amap inl pxs
to xs (inr pxs) = amap inr pxs
from : ∀ xs → Any (λ x → P x + Q x) xs → Any P xs + Any Q xs
from ._ (there p) = smap there there (from _ p)
-- Here the abstraction didn't work because a NeutralLevel was replaced
-- by an UnreducedLevel during abstraction.
fromto : ∀ xs (p : Any P xs + Any Q xs) → from xs (to xs p) ≡ p
fromto .(x ∷ xs) (inl (there {x}{xs} p)) rewrite fromto xs (inl p) = refl
fromto .(x ∷ xs) (inr (there {x}{xs} q)) rewrite fromto xs (inr q) = refl
|
agda/hott/core/universe/pointed.agda | piyush-kurur/hott | 0 | 13270 | {-# OPTIONS --without-K #-}
--
-- A pointed type is a type together with a point in it. This module
-- defines the universe of pointed types which we denote by Type● ℓ.
-- Like the type universe Type ℓ, it is an inhabitant of Type (ℓ + 1).
--
-- Editing notes:
-- ● : \ci followed by selecting the 1 option
-- ∙ : \.
module hott.core.universe.pointed where
open import hott.core.sigma
open import hott.core.universe
-- The pointed type is nothing but a dependent pair where the first
-- component is itself a type.
Type● : (ℓ : Level) → Type (lsuc ℓ)
Type● ℓ = Σ λ x → x
-- The level 0 of pointed types.
Type∙ = Type● lzero
Type∙₀ = Type● lzero
Type∙₁ = Type● lone
Type∙₂ = Type● ltwo
Type∙₃ = Type● lthree
Type∙₄ = Type● lfour
Type∙₅ = Type● lfive
Type∙₆ = Type● lsix
Type∙₇ = Type● lseven
Type∙₈ = Type● leight
Type∙₉ = Type● lnine
--
-- Topologically pointed types are spaces with a distinguished point
-- called the base. We give function to recover the space and the base
-- point from it. These are essentially the projections but we give
-- better names for it.
--
space : ∀{ℓ} → Type● ℓ → Type ℓ
space = fst
base : ∀{ℓ} → (A● : Type● ℓ) → space A●
base = snd
|
driver_scripts_templates/prep_safari.scpt | sebmarchand/chrome_safari_power | 0 | 2765 | tell application "Safari"
activate
reopen
close (every tab of window 1)
close every window
end tell
|
src/grammar/SimpleC.g4 | nbozidarevic/freud | 0 | 3320 | /*
[The "BSD licence"]
Copyright (c) 2013 <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
*/
grammar SimpleC;
primaryExpression
: Identifier
| Constant
| StringLiteral+
| '(' expression ')'
;
postfixExpression
: primaryExpression
| postfixExpression '(' argumentExpressionList? ')'
| postfixExpression '++'
| postfixExpression '--'
;
argumentExpressionList
: assignmentExpression
| argumentExpressionList ',' assignmentExpression
;
unaryExpression
: postfixExpression
| '++' unaryExpression
| '--' unaryExpression
| '!' unaryExpression
| '&' unaryExpression
;
simpleExpression
: unaryExpression
| DigitSequence // for
;
multiplicativeExpression
: simpleExpression
| multiplicativeExpression '*' simpleExpression
| multiplicativeExpression '/' simpleExpression
| multiplicativeExpression '%' simpleExpression
;
additiveExpression
: multiplicativeExpression
| additiveExpression '+' multiplicativeExpression
| additiveExpression '-' multiplicativeExpression
;
relationalExpression
: additiveExpression
| relationalExpression '<' additiveExpression
| relationalExpression '>' additiveExpression
| relationalExpression '<=' additiveExpression
| relationalExpression '>=' additiveExpression
;
equalityExpression
: relationalExpression
| equalityExpression '==' relationalExpression
| equalityExpression '!=' relationalExpression
;
logicalAndExpression
: equalityExpression
| logicalAndExpression '&&' equalityExpression
;
logicalOrExpression
: logicalAndExpression
| logicalOrExpression '||' logicalAndExpression
;
assignmentExpression
: logicalOrExpression
| unaryExpression assignmentOperator assignmentExpression
| DigitSequence // for
;
assignmentOperator
: '=' | '*=' | '/=' | '%=' | '+=' | '-='
;
expression
: assignmentExpression
| expression ',' assignmentExpression
;
constantExpression
: logicalOrExpression
;
declaration
: declarationSpecifier initDeclarator ';'
| declarationSpecifier ';'
;
declarationSpecifier
: ('void'
| 'char'
| 'short'
| 'int')
| Identifier
;
initDeclarator
: declarator
| declarator '=' initializer
;
declarator
: directDeclarator
;
directDeclarator
: Identifier
| '(' declarator ')'
| directDeclarator '[' assignmentExpression? ']'
| directDeclarator '(' parameterTypeList ')'
| directDeclarator '(' identifierList? ')'
;
nestedParenthesesBlock
: ( ~('(' | ')')
| '(' nestedParenthesesBlock ')'
)*
;
parameterTypeList
: parameterDeclaration
| parameterTypeList ',' parameterDeclaration
;
parameterDeclaration
: declarationSpecifier declarator
| declarationSpecifier abstractDeclarator?
;
identifierList
: Identifier
| identifierList ',' Identifier
;
abstractDeclarator
: directAbstractDeclarator
;
directAbstractDeclarator
: '(' abstractDeclarator ')'
| '[' assignmentExpression? ']'
| '(' parameterTypeList? ')'
| directAbstractDeclarator '[' assignmentExpression? ']'
| directAbstractDeclarator '(' parameterTypeList? ')'
;
initializer
: assignmentExpression
| '{' initializerList '}'
| '{' initializerList ',' '}'
;
initializerList
: designation? initializer
| initializerList ',' designation? initializer
;
designation
: designatorList '='
;
designatorList
: designator
| designatorList designator
;
designator
: '[' constantExpression ']'
| '.' Identifier
;
statement
: labeledStatement
| compoundStatement
| expressionStatement
| selectionStatement
| iterationStatement
| jumpStatement
;
labeledStatement
: Identifier ':' statement
| 'case' constantExpression ':' statement
| 'default' ':' statement
;
compoundStatement
: '{' blockItemList? '}'
;
blockItemList
: blockItem
| blockItemList blockItem
;
blockItem
: statement
| declaration
;
expressionStatement
: expression? ';'
;
selectionStatement
: 'if' '(' expression ')' statement ('else' statement)?
| 'switch' '(' expression ')' statement
;
iterationStatement
: While '(' expression ')' statement
| For '(' forCondition ')' statement
;
forCondition
: forDeclaration ';' forExpression? ';' forExpression?
| expression? ';' forExpression? ';' forExpression?
;
forDeclaration
: declarationSpecifier initDeclarator
| declarationSpecifier
;
forExpression
: assignmentExpression
| forExpression ',' assignmentExpression
;
jumpStatement
: 'continue' ';'
| 'break' ';'
| 'return' expression? ';'
;
compilationUnit
: translationUnit? EOF
;
translationUnit
: externalDeclaration
| translationUnit externalDeclaration
;
externalDeclaration
: functionDefinition
| declaration
| ';'
;
functionDefinition
: declarationSpecifier? declarator declarationList? compoundStatement
;
declarationList
: declaration
| declarationList declaration
;
Break : 'break';
Case : 'case';
Char : 'char';
Continue : 'continue';
Default : 'default';
Do : 'do';
Else : 'else';
For : 'for';
Goto : 'goto';
If : 'if';
Int : 'int';
Long : 'long';
Return : 'return';
Short : 'short';
Switch : 'switch';
Void : 'void';
While : 'while';
LeftParen : '(';
RightParen : ')';
LeftBracket : '[';
RightBracket : ']';
LeftBrace : '{';
RightBrace : '}';
Less : '<';
LessEqual : '<=';
Greater : '>';
GreaterEqual : '>=';
Plus : '+';
PlusPlus : '++';
Minus : '-';
MinusMinus : '--';
Star : '*';
Div : '/';
Mod : '%';
AndAnd : '&&';
OrOr : '||';
Not : '!';
Question : '?';
Colon : ':';
Semi : ';';
Comma : ',';
Assign : '=';
StarAssign : '*=';
DivAssign : '/=';
ModAssign : '%=';
PlusAssign : '+=';
MinusAssign : '-=';
Equal : '==';
NotEqual : '!=';
Identifier
: Nondigit
( Nondigit
| Digit
)*
;
fragment
Nondigit
: [a-zA-Z_]
;
fragment
Digit
: [0-9]
;
Constant
: IntegerConstant
| CharacterConstant
;
fragment
IntegerConstant
: NonzeroDigit Digit*
;
fragment
NonzeroDigit
: [1-9]
;
fragment
Sign
: '+' | '-'
;
DigitSequence
: Digit+
;
fragment
CharacterConstant
: '\'' CCharSequence '\''
;
fragment
CCharSequence
: CChar+
;
fragment
CChar
: ~['\\\r\n]
| EscapeSequence
;
fragment
EscapeSequence
: '\\' ['"?abfnrtv\\]
;
StringLiteral
: '"' SCharSequence? '"'
;
fragment
SCharSequence
: SChar+
;
fragment
SChar
: ~["\\\r\n]
| EscapeSequence
| '\\\n' // Added line
| '\\\r\n' // Added line
;
Whitespace
: [ \t]+
-> skip
;
Newline
: ( '\r' '\n'?
| '\n'
)
-> skip
;
BlockComment
: '/*' .*? '*/'
-> skip
;
LineComment
: '//' ~[\r\n]*
-> skip
;
Directive
: '#' ~[\r\n]*
-> skip
; |
Irvine/Examples/ch16/ColorSt2.asm | alieonsido/ASM_TESTING | 0 | 4213 | <gh_stars>0
TITLE Color String Example (ColorSt2.asm)
Comment !
Demonstrates INT 10h function 13h, which writes
a string containing embedded attribute bytes to the
video display. The write mode values in AL are:
0 = string contains only character codes; cursor not
updated after write, and attribute is in BL.
1 = string contains only character codes; cursor is
updated after write, and attribute is in BL.
2 = string contains alternating character codes and
attribute bytes; cursor position not updated
after write.
3 = string contains alternating character codes and
attribute bytes; cursor position is updated
after write.
; Last update: 06/01/2006
!
INCLUDE Irvine16.inc
.data
colorString BYTE 'A',1Fh,'B',1Ch,'C',1Bh,'D',1Ch
row BYTE 10
column BYTE 20
.code
main PROC
mov ax,@data
mov ds,ax
call ClrScr
mov ax,SEG colorString
mov es,ax
mov ah,13h ; write string
mov al,2 ; write mode
mov bh,0 ; video page
mov cx,(SIZEOF colorString) / 2 ; string length
mov dh,row ; start row
mov dl,column ; start column
mov bp,OFFSET colorString ; ES:BP points to string
int 10h
mov ah,2 ; home the cursor
mov dx,0
int 10h
exit
main ENDP
END main
|
src/tests/siphash24_c.ads | jhumphry/SPARK_SipHash | 5 | 29683 | <filename>src/tests/siphash24_c.ads
-- SipHash24_C
-- an Ada specification for the reference C implementation of SipHash and
-- Half Siphash
-- Copyright (c) 2015-2016, <NAME> - see LICENSE file for details
with Ada.Unchecked_Conversion;
with Interfaces, Interfaces.C, Interfaces.C.Strings;
use Interfaces;
package SipHash24_c is
subtype U8 is Interfaces.Unsigned_8;
type U8_Access is access all U8;
subtype U32 is Interfaces.Unsigned_32;
subtype U64 is Interfaces.Unsigned_64;
type U8_Array is array (Natural range <>) of aliased U8;
subtype U8_Array4 is U8_Array(0..3);
subtype U8_Array8 is U8_Array(0..7);
function chars_ptr_to_U8_Access is
new Ada.Unchecked_Conversion(Source => Interfaces.C.Strings.chars_ptr,
Target => U8_Access);
function C_SipHash24
(
c_in : access Interfaces.Unsigned_8;
inlen : Interfaces.C.size_t;
k : access Interfaces.Unsigned_8;
c_out : access Interfaces.Unsigned_8;
outlen : Interfaces.C.size_t
) return C.int;
pragma Import (C, C_SipHash24, "siphash");
function C_HalfSipHash24
(
c_in : access Interfaces.Unsigned_8;
inlen : Interfaces.C.size_t;
k : access Interfaces.Unsigned_8;
c_out : access Interfaces.Unsigned_8;
outlen : Interfaces.C.size_t
) return C.int;
pragma Import (C, C_HalfSipHash24, "halfsiphash");
function U8_Array4_to_U32 (c : U8_Array4) return U32 is
(U32(c(0))
or Shift_Left(U32(c(1)), 8)
or Shift_Left(U32(c(2)), 16)
or Shift_Left(U32(c(3)), 24));
function U8_Array8_to_U64 (c : U8_Array8) return U64 is
(U64(c(0))
or Shift_Left(U64(c(1)), 8)
or Shift_Left(U64(c(2)), 16)
or Shift_Left(U64(c(3)), 24)
or Shift_Left(U64(c(4)), 32)
or Shift_Left(U64(c(5)), 40)
or Shift_Left(U64(c(6)), 48)
or Shift_Left(U64(c(7)), 56));
end SipHash24_c;
|
Assembly Microbenchmarks/sraTest.asm | idn0971/HLS_Benchmarking | 0 | 8574 | li t0 -2
li t1, 1
sra s6, t0, t1
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_567.asm | ljhsiun2/medusa | 9 | 10416 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x9df6, %r8
nop
nop
nop
nop
and $22592, %r10
movb $0x61, (%r8)
nop
nop
nop
cmp $58739, %rbp
lea addresses_A_ht+0x10ec2, %rsi
lea addresses_UC_ht+0x3c42, %rdi
dec %r8
mov $124, %rcx
rep movsw
nop
sub $26421, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r15
push %r8
push %rcx
push %rdx
push %rsi
// Faulty Load
lea addresses_A+0xf442, %r15
nop
nop
nop
nop
sub $15596, %rdx
mov (%r15), %r10
lea oracles, %rsi
and $0xff, %r10
shlq $12, %r10
mov (%rsi,%r10,1), %r10
pop %rsi
pop %rdx
pop %rcx
pop %r8
pop %r15
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_A'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_A'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'35': 21829}
35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35
*/
|
fiat-amd64/105.50_ratio12370_seed1660769872531946_mul_secp256k1.asm | dderjoel/fiat-crypto | 491 | 18410 | SECTION .text
GLOBAL mul_secp256k1
mul_secp256k1:
sub rsp, 0x110 ; last 0x30 (6) for Caller - save regs
mov [ rsp + 0xe0 ], rbx; saving to stack
mov [ rsp + 0xe8 ], rbp; saving to stack
mov [ rsp + 0xf0 ], r12; saving to stack
mov [ rsp + 0xf8 ], r13; saving to stack
mov [ rsp + 0x100 ], r14; saving to stack
mov [ rsp + 0x108 ], r15; saving to stack
mov rax, [ rsi + 0x0 ]; load m64 x4 to register64
mov r10, [ rsi + 0x10 ]; load m64 x2 to register64
xchg rdx, rax; x4, swapping with arg2, which is currently in rdx
mulx r11, rbx, [ rax + 0x8 ]; x10, x9<- x4 * arg2[1]
mov rbp, [ rsi + 0x8 ]; load m64 x1 to register64
mulx r12, r13, [ rax + 0x0 ]; x12, x11<- x4 * arg2[0]
mov r14, 0xd838091dd2253531 ; moving imm to reg
xchg rdx, r14; 0xd838091dd2253531, swapping with x4, which is currently in rdx
mulx r15, rcx, r13; _, x20<- x11 * 0xd838091dd2253531
mov r15, 0xfffffffefffffc2f ; moving imm to reg
xchg rdx, rcx; x20, swapping with 0xd838091dd2253531, which is currently in rdx
mulx r8, r9, r15; x29, x28<- x20 * 0xfffffffefffffc2f
mov r15, 0xffffffffffffffff ; moving imm to reg
mov [ rsp + 0x0 ], rdi; spilling out1 to mem
mulx rcx, rdi, r15; x25, x24<- x20 * 0xffffffffffffffff
mov [ rsp + 0x8 ], rsi; spilling arg1 to mem
mov [ rsp + 0x10 ], rcx; spilling x25 to mem
mulx rsi, rcx, r15; x27, x26<- x20 * 0xffffffffffffffff
add rbx, r12; could be done better, if r0 has been u8 as well
mov r12, -0x2 ; moving imm to reg
inc r12; OF<-0x0, preserve CF (debug: 6; load -2, increase it, save as -1)
adox r9, r13
xchg rdx, r14; x4, swapping with x20, which is currently in rdx
mulx r9, r13, [ rax + 0x10 ]; x8, x7<- x4 * arg2[2]
setc r12b; spill CF x14 to reg (r12)
clc;
adcx rcx, r8
adcx rdi, rsi
mov r8, rdx; preserving value of x4 into a new reg
mov rdx, [ rax + 0x0 ]; saving arg2[0] in rdx.
mulx rsi, r15, rbp; x54, x53<- x1 * arg2[0]
mov [ rsp + 0x18 ], r9; spilling x8 to mem
setc r9b; spill CF x33 to reg (r9)
clc;
mov [ rsp + 0x20 ], r10; spilling x2 to mem
mov r10, -0x1 ; moving imm to reg
movzx r12, r12b
adcx r12, r10; loading flag
adcx r11, r13
adox rcx, rbx
setc bl; spill CF x16 to reg (rbx)
clc;
adcx r15, rcx
adox rdi, r11
mov r12, 0xd838091dd2253531 ; moving imm to reg
mov rdx, r15; x62 to rdx
mulx r15, r13, r12; _, x72<- x62 * 0xd838091dd2253531
mov r15, 0xfffffffefffffc2f ; moving imm to reg
xchg rdx, r15; 0xfffffffefffffc2f, swapping with x62, which is currently in rdx
mulx r11, rcx, r13; x81, x80<- x72 * 0xfffffffefffffc2f
mov r10, rdx; preserving value of 0xfffffffefffffc2f into a new reg
mov rdx, [ rax + 0x8 ]; saving arg2[1] in rdx.
mov byte [ rsp + 0x28 ], r9b; spilling byte x33 to mem
mulx r12, r9, rbp; x52, x51<- x1 * arg2[1]
mov r10, 0xffffffffffffffff ; moving imm to reg
mov rdx, r13; x72 to rdx
mov [ rsp + 0x30 ], r14; spilling x20 to mem
mulx r13, r14, r10; x79, x78<- x72 * 0xffffffffffffffff
seto r10b; spill OF x42 to reg (r10)
mov [ rsp + 0x38 ], r13; spilling x79 to mem
mov r13, -0x2 ; moving imm to reg
inc r13; OF<-0x0, preserve CF (debug: 6; load -2, increase it, save as -1)
adox r14, r11
seto r11b; spill OF x83 to reg (r11)
inc r13; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
adox r9, rsi
adcx r9, rdi
xchg rdx, r8; x4, swapping with x72, which is currently in rdx
mulx rdx, rsi, [ rax + 0x18 ]; x6, x5<- x4 * arg2[3]
setc dil; spill CF x65 to reg (rdi)
clc;
adcx rcx, r15
adcx r14, r9
mov rcx, rdx; preserving value of x6 into a new reg
mov rdx, [ rax + 0x0 ]; saving arg2[0] in rdx.
mulx r15, r9, [ rsp + 0x20 ]; x107, x106<- x2 * arg2[0]
mov rdx, [ rax + 0x8 ]; arg2[1] to rdx
mov [ rsp + 0x40 ], rcx; spilling x6 to mem
mulx r13, rcx, [ rsp + 0x20 ]; x105, x104<- x2 * arg2[1]
mov [ rsp + 0x48 ], r13; spilling x105 to mem
setc r13b; spill CF x92 to reg (r13)
clc;
adcx r9, r14
mov r14, 0xd838091dd2253531 ; moving imm to reg
mov rdx, r9; x115 to rdx
mov byte [ rsp + 0x50 ], r13b; spilling byte x92 to mem
mulx r9, r13, r14; _, x125<- x115 * 0xd838091dd2253531
mov r9, 0xfffffffefffffc2f ; moving imm to reg
xchg rdx, r9; 0xfffffffefffffc2f, swapping with x115, which is currently in rdx
mov byte [ rsp + 0x58 ], r11b; spilling byte x83 to mem
mulx r14, r11, r13; x134, x133<- x125 * 0xfffffffefffffc2f
mov rdx, 0xffffffffffffffff ; moving imm to reg
mov byte [ rsp + 0x60 ], dil; spilling byte x65 to mem
mov byte [ rsp + 0x68 ], r10b; spilling byte x42 to mem
mulx rdi, r10, r13; x132, x131<- x125 * 0xffffffffffffffff
mov [ rsp + 0x70 ], rsi; spilling x5 to mem
mov byte [ rsp + 0x78 ], bl; spilling byte x16 to mem
mulx rsi, rbx, r13; x128, x127<- x125 * 0xffffffffffffffff
setc dl; spill CF x116 to reg (rdx)
clc;
adcx r10, r14
xchg rdx, rbp; x1, swapping with x116, which is currently in rdx
mov [ rsp + 0x80 ], r10; spilling x135 to mem
mulx r14, r10, [ rax + 0x10 ]; x50, x49<- x1 * arg2[2]
mov [ rsp + 0x88 ], r14; spilling x50 to mem
mov r14, 0xffffffffffffffff ; moving imm to reg
xchg rdx, r13; x125, swapping with x1, which is currently in rdx
mov byte [ rsp + 0x90 ], bpl; spilling byte x116 to mem
mulx rdx, rbp, r14; x130, x129<- x125 * 0xffffffffffffffff
adox r10, r12
adcx rbp, rdi
xchg rdx, r8; x72, swapping with x130, which is currently in rdx
mulx r12, rdi, r14; x77, x76<- x72 * 0xffffffffffffffff
seto r14b; spill OF x58 to reg (r14)
mov [ rsp + 0x98 ], rbp; spilling x137 to mem
mov rbp, -0x2 ; moving imm to reg
inc rbp; OF<-0x0, preserve CF (debug: 6; load -2, increase it, save as -1)
adox r11, r9
seto r11b; spill OF x143 to reg (r11)
inc rbp; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
adox rcx, r15
adcx rbx, r8
mov r15, [ rsp + 0x70 ]; load m64 x5 to register64
seto r9b; spill OF x109 to reg (r9)
movzx r8, byte [ rsp + 0x78 ]; load byte memx16 to register64
dec rbp; OF<-0x0, preserve CF (debug: state 3 (y: 0, n: -1))
adox r8, rbp; loading flag
adox r15, [ rsp + 0x18 ]
mov r8, 0x0 ; moving imm to reg
adcx rsi, r8
mov r8, 0xffffffffffffffff ; moving imm to reg
xchg rdx, r8; 0xffffffffffffffff, swapping with x72, which is currently in rdx
mov [ rsp + 0xa0 ], rsi; spilling x141 to mem
mulx rbp, rsi, [ rsp + 0x30 ]; x23, x22<- x20 * 0xffffffffffffffff
movzx rdx, byte [ rsp + 0x28 ]; load byte memx33 to register64
clc;
mov [ rsp + 0xa8 ], rbx; spilling x139 to mem
mov rbx, -0x1 ; moving imm to reg
adcx rdx, rbx; loading flag
adcx rsi, [ rsp + 0x10 ]
seto dl; spill OF x18 to reg (rdx)
movzx rbx, byte [ rsp + 0x68 ]; load byte memx42 to register64
mov byte [ rsp + 0xb0 ], r9b; spilling byte x109 to mem
mov r9, 0x0 ; moving imm to reg
dec r9; OF<-0x0, preserve CF (debug: state 4 (thanks Paul))
adox rbx, r9; loading flag
adox r15, rsi
mov rbx, 0xffffffffffffffff ; moving imm to reg
xchg rdx, r8; x72, swapping with x18, which is currently in rdx
mulx rdx, rsi, rbx; x75, x74<- x72 * 0xffffffffffffffff
mov r9, 0x0 ; moving imm to reg
adcx rbp, r9
movzx r9, byte [ rsp + 0x60 ]; load byte memx65 to register64
clc;
mov rbx, -0x1 ; moving imm to reg
adcx r9, rbx; loading flag
adcx r15, r10
setc r9b; spill CF x67 to reg (r9)
movzx r10, byte [ rsp + 0x58 ]; load byte memx83 to register64
clc;
adcx r10, rbx; loading flag
adcx rdi, [ rsp + 0x38 ]
adcx rsi, r12
movzx r10, r8b; x19, copying x18 here, cause x18 is needed in a reg for other than x19, namely all: , x19, size: 1
mov r12, [ rsp + 0x40 ]; load m64 x6 to register64
lea r10, [ r10 + r12 ]; r8/64 + m8
mov r12, 0x0 ; moving imm to reg
adcx rdx, r12
movzx r8, byte [ rsp + 0x50 ]; load byte memx92 to register64
clc;
adcx r8, rbx; loading flag
adcx r15, rdi
setc r8b; spill CF x94 to reg (r8)
movzx rdi, byte [ rsp + 0x90 ]; load byte memx116 to register64
clc;
adcx rdi, rbx; loading flag
adcx r15, rcx
setc dil; spill CF x118 to reg (rdi)
clc;
movzx r11, r11b
adcx r11, rbx; loading flag
adcx r15, [ rsp + 0x80 ]
adox rbp, r10
mov r11, rdx; preserving value of x88 into a new reg
mov rdx, [ rax + 0x18 ]; saving arg2[3] in rdx.
mulx r13, rcx, r13; x48, x47<- x1 * arg2[3]
seto r10b; spill OF x46 to reg (r10)
dec r12; OF<-0x0, preserve CF (debug: state 1(0x0) (thanks Paul))
movzx r14, r14b
adox r14, r12; loading flag
adox rcx, [ rsp + 0x88 ]
mov rdx, [ rsp + 0x20 ]; x2 to rdx
mulx rbx, r14, [ rax + 0x10 ]; x103, x102<- x2 * arg2[2]
mov r12, 0x0 ; moving imm to reg
adox r13, r12
dec r12; OF<-0x0, preserve CF (debug: state 3 (y: 0, n: -1))
movzx r9, r9b
adox r9, r12; loading flag
adox rbp, rcx
movzx r9, r10b; x70, copying x46 here, cause x46 is needed in a reg for other than x70, namely all: , x70--x71, size: 1
adox r9, r13
setc r10b; spill CF x145 to reg (r10)
clc;
movzx r8, r8b
adcx r8, r12; loading flag
adcx rbp, rsi
mulx rdx, rsi, [ rax + 0x18 ]; x101, x100<- x2 * arg2[3]
adcx r11, r9
setc r8b; spill CF x98 to reg (r8)
movzx rcx, byte [ rsp + 0xb0 ]; load byte memx109 to register64
clc;
adcx rcx, r12; loading flag
adcx r14, [ rsp + 0x48 ]
adcx rsi, rbx
mov rcx, 0x0 ; moving imm to reg
adcx rdx, rcx
mov rbx, [ rsp + 0x8 ]; load m64 arg1 to register64
mov r13, [ rbx + 0x18 ]; load m64 x3 to register64
movzx r9, r8b; x99, copying x98 here, cause x98 is needed in a reg for other than x99, namely all: , x99, size: 1
adox r9, rcx
xchg rdx, r13; x3, swapping with x114, which is currently in rdx
mulx r8, rcx, [ rax + 0x0 ]; x160, x159<- x3 * arg2[0]
add dil, 0x7F; load flag from rm/8 into OF, clears other flag. NODE, if operand1 is not a byte reg, this fails.
seto dil; since that has deps, resore it whereever it was
adox rbp, r14
adox rsi, r11
movzx r10, r10b
adcx r10, r12; loading flag
adcx rbp, [ rsp + 0x98 ]
adox r13, r9
seto dil; spill OF x124 to reg (rdi)
inc r12; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
adox rcx, r15
mov r15, [ rsp + 0xa8 ]; x148, copying x139 here, cause x139 is needed in a reg for other than x148, namely all: , x148--x149, size: 1
adcx r15, rsi
mov r10, [ rsp + 0xa0 ]; x150, copying x141 here, cause x141 is needed in a reg for other than x150, namely all: , x150--x151, size: 1
adcx r10, r13
mov r11, 0xd838091dd2253531 ; moving imm to reg
xchg rdx, r11; 0xd838091dd2253531, swapping with x3, which is currently in rdx
mulx r14, r9, rcx; _, x178<- x168 * 0xd838091dd2253531
movzx r14, dil; x152, copying x124 here, cause x124 is needed in a reg for other than x152, namely all: , x152, size: 1
adcx r14, r12
xchg rdx, r11; x3, swapping with 0xd838091dd2253531, which is currently in rdx
mulx rsi, rdi, [ rax + 0x8 ]; x158, x157<- x3 * arg2[1]
clc;
adcx rdi, r8
mov r8, 0xfffffffefffffc2f ; moving imm to reg
xchg rdx, r8; 0xfffffffefffffc2f, swapping with x3, which is currently in rdx
mulx r13, r12, r9; x187, x186<- x178 * 0xfffffffefffffc2f
adox rdi, rbp
setc bpl; spill CF x162 to reg (rbp)
clc;
adcx r12, rcx
mov r12, 0xffffffffffffffff ; moving imm to reg
xchg rdx, r12; 0xffffffffffffffff, swapping with 0xfffffffefffffc2f, which is currently in rdx
mulx rcx, r12, r9; x185, x184<- x178 * 0xffffffffffffffff
seto r11b; spill OF x171 to reg (r11)
mov rdx, -0x2 ; moving imm to reg
inc rdx; OF<-0x0, preserve CF (debug: 6; load -2, increase it, save as -1)
adox r12, r13
mov r13, 0xffffffffffffffff ; moving imm to reg
mov rdx, r13; 0xffffffffffffffff to rdx
mov [ rsp + 0xb8 ], r14; spilling x152 to mem
mulx r13, r14, r9; x183, x182<- x178 * 0xffffffffffffffff
adox r14, rcx
xchg rdx, r8; x3, swapping with 0xffffffffffffffff, which is currently in rdx
mulx rcx, r8, [ rax + 0x10 ]; x156, x155<- x3 * arg2[2]
adcx r12, rdi
mulx rdx, rdi, [ rax + 0x18 ]; x154, x153<- x3 * arg2[3]
mov [ rsp + 0xc0 ], r10; spilling x150 to mem
setc r10b; spill CF x198 to reg (r10)
mov [ rsp + 0xc8 ], r14; spilling x190 to mem
seto r14b; spill OF x191 to reg (r14)
mov [ rsp + 0xd0 ], r15; spilling x148 to mem
mov r15, r12; x206, copying x197 here, cause x197 is needed in a reg for other than x206, namely all: , x206--x207, x216, size: 2
mov byte [ rsp + 0xd8 ], r11b; spilling byte x171 to mem
mov r11, 0xfffffffefffffc2f ; moving imm to reg
sub r15, r11
mov r11, -0x1 ; moving imm to reg
inc r11; OF<-0x0, preserve CF (debug: state 5 (thanks Paul))
mov r11, -0x1 ; moving imm to reg
movzx rbp, bpl
adox rbp, r11; loading flag
adox rsi, r8
mov rbp, 0xffffffffffffffff ; moving imm to reg
xchg rdx, rbp; 0xffffffffffffffff, swapping with x154, which is currently in rdx
mulx r9, r8, r9; x181, x180<- x178 * 0xffffffffffffffff
adox rdi, rcx
setc cl; spill CF x207 to reg (rcx)
clc;
movzx r14, r14b
adcx r14, r11; loading flag
adcx r13, r8
mov r14, 0x0 ; moving imm to reg
adcx r9, r14
adox rbp, r14
add byte [ rsp + 0xd8 ], 0xFF; load flag from rm/8 into CF, clears other flag. NODE, if operand1 is not a byte reg, this fails.
setc [ rsp + 0xd8 ]; since that has deps, resore it whereever it was
adcx rsi, [ rsp + 0xd0 ]
movzx r10, r10b
adox r10, r11; loading flag
adox rsi, [ rsp + 0xc8 ]
mov r10, [ rsp + 0xc0 ]; x174, copying x150 here, cause x150 is needed in a reg for other than x174, namely all: , x174--x175, size: 1
adcx r10, rdi
adox r13, r10
mov r8, [ rsp + 0xb8 ]; x176, copying x152 here, cause x152 is needed in a reg for other than x176, namely all: , x176--x177, size: 1
adcx r8, rbp
adox r9, r8
setc dil; spill CF x177 to reg (rdi)
seto bpl; spill OF x204 to reg (rbp)
movzx r10, cl; x207, copying x207 here, cause x207 is needed in a reg for other than x207, namely all: , x208--x209, size: 1
add r10, -0x1
mov r10, rsi; x208, copying x199 here, cause x199 is needed in a reg for other than x208, namely all: , x208--x209, x217, size: 2
sbb r10, rdx
mov rcx, r13; x210, copying x201 here, cause x201 is needed in a reg for other than x210, namely all: , x218, x210--x211, size: 2
sbb rcx, rdx
mov r8, r9; x212, copying x203 here, cause x203 is needed in a reg for other than x212, namely all: , x212--x213, x219, size: 2
sbb r8, rdx
movzx r14, bpl; x205, copying x204 here, cause x204 is needed in a reg for other than x205, namely all: , x205, size: 1
movzx rdi, dil
lea r14, [ r14 + rdi ]
sbb r14, 0x00000000
cmovc r10, rsi; if CF, x217<- x199 (nzVar)
cmovc r8, r9; if CF, x219<- x203 (nzVar)
cmovc r15, r12; if CF, x216<- x197 (nzVar)
mov r14, [ rsp + 0x0 ]; load m64 out1 to register64
mov [ r14 + 0x0 ], r15; out1[0] = x216
cmovc rcx, r13; if CF, x218<- x201 (nzVar)
mov [ r14 + 0x10 ], rcx; out1[2] = x218
mov [ r14 + 0x8 ], r10; out1[1] = x217
mov [ r14 + 0x18 ], r8; out1[3] = x219
mov rbx, [ rsp + 0xe0 ]; restoring from stack
mov rbp, [ rsp + 0xe8 ]; restoring from stack
mov r12, [ rsp + 0xf0 ]; restoring from stack
mov r13, [ rsp + 0xf8 ]; restoring from stack
mov r14, [ rsp + 0x100 ]; restoring from stack
mov r15, [ rsp + 0x108 ]; restoring from stack
add rsp, 0x110
ret
; cpu AMD Ryzen Threadripper 1900X 8-Core Processor
; clocked at 2200 MHz
; first cyclecount 137.56, best 102.5, lastGood 105.5
; seed 1660769872531946
; CC / CFLAGS clang / -march=native -mtune=native -O3
; time needed: 1303784 ms / 60000 runs=> 21.729733333333332ms/run
; Time spent for assembling and measureing (initial batch_size=76, initial num_batches=101): 180013 ms
; Ratio (time for assembling + measure)/(total runtime for 60000runs): 0.13806964957385578
; number reverted permutation/ tried permutation: 23441 / 30160 =77.722%
; number reverted decision/ tried decision: 20654 / 29841 =69.213% |
experiments/test-suite/nqueens.als | kaiyuanw/MuAlloy | 6 | 1979 | pred test1 {
some disj Queen0, Queen1: Queen {
Queen = Queen0 + Queen1
row = Queen0->0 + Queen1->0
col = Queen0->0 + Queen1->0
}
}
run test1 for 4
pred test2 {
no Queen
no row
no col
}
run test2 for 4
pred test3 {
some disj Queen0: Queen {
Queen = Queen0
row = Queen0->-5 + Queen0->-4 + Queen0->6
col = Queen0->0
}
}
run test3 for 4
pred test4 {
some disj Queen0: Queen {
Queen = Queen0
no row
col = Queen0->0
}
}
run test4 for 4
pred test5 {
some disj Queen0: Queen {
Queen = Queen0
row = Queen0->-8 + Queen0->-7 + Queen0->-6 + Queen0->-5 + Queen0->-4 + Queen0->-3 + Queen0->-2 + Queen0->-1 + Queen0->0 + Queen0->1 + Queen0->2 + Queen0->3 + Queen0->4 + Queen0->5 + Queen0->6
col = Queen0->0
}
}
run test5 for 4
pred test6 {
some disj Queen0: Queen {
Queen = Queen0
row = Queen0->0
col = Queen0->-8 + Queen0->-7 + Queen0->-6 + Queen0->-5 + Queen0->-4 + Queen0->-3 + Queen0->-2 + Queen0->-1 + Queen0->0 + Queen0->1 + Queen0->2 + Queen0->3
}
}
run test6 for 4
pred test7 {
some disj Queen0: Queen {
Queen = Queen0
row = Queen0->0
no col
}
}
run test7 for 4
pred test8 {
some disj Queen0: Queen {
Queen = Queen0
row = Queen0->0
col = Queen0->-6 + Queen0->-4
}
}
run test8 for 4
pred test9 {
some disj Queen0, Queen1, Queen2, Queen3: Queen {
Queen = Queen0 + Queen1 + Queen2 + Queen3
row = Queen0->0 + Queen1->0 + Queen2->2 + Queen3->1
col = Queen0->0 + Queen1->0 + Queen2->1 + Queen3->2
nothreat[Queen3,Queen2]
}
}
run test9 for 4
pred test10 {
some disj Queen0, Queen1, Queen2: Queen {
Queen = Queen0 + Queen1 + Queen2
row = Queen0->0 + Queen1->0 + Queen2->0
col = Queen0->0 + Queen1->1 + Queen2->2
nothreat[Queen2,Queen1]
}
}
run test10 for 4
pred test11 {
some disj Queen0, Queen1: Queen {
Queen = Queen0 + Queen1
row = Queen0->0 + Queen1->1
col = Queen0->0 + Queen1->0
nothreat[Queen1,Queen0]
}
}
run test11 for 4
pred test12 {
some disj Queen0, Queen1: Queen {
Queen = Queen0 + Queen1
row = Queen0->0 + Queen1->1
col = Queen0->1 + Queen1->1
nothreat[Queen1,Queen0]
}
}
run test12 for 4
pred test13 {
some disj Queen0, Queen1, Queen2: Queen {
Queen = Queen0 + Queen1 + Queen2
row = Queen0->0 + Queen1->2 + Queen2->1
col = Queen0->1 + Queen1->1 + Queen2->0
nothreat[Queen2,Queen1]
}
}
run test13 for 4
pred test14 {
some disj Queen0, Queen1: Queen {
Queen = Queen0 + Queen1
row = Queen0->0 + Queen1->1
col = Queen0->0 + Queen1->1
nothreat[Queen1,Queen0]
}
}
run test14 for 4
pred test15 {
some disj Queen0, Queen1: Queen {
Queen = Queen0 + Queen1
row = Queen0->0 + Queen1->1
col = Queen0->1 + Queen1->0
nothreat[Queen1,Queen0]
}
}
run test15 for 4
pred test16 {
some disj Queen0, Queen1: Queen {
Queen = Queen0 + Queen1
row = Queen0->1 + Queen1->0
col = Queen0->0 + Queen1->1
nothreat[Queen1,Queen0]
}
}
run test16 for 4
pred test17 {
some disj Queen0: Queen {
Queen = Queen0
row = Queen0->0
col = Queen0->0
valid[]
}
}
run test17 for 4
pred test18 {
some disj Queen0, Queen1, Queen2, Queen3: Queen {
Queen = Queen0 + Queen1 + Queen2 + Queen3
row = Queen0->1 + Queen1->3 + Queen2->0 + Queen3->2
col = Queen0->3 + Queen1->2 + Queen2->1 + Queen3->0
valid[]
}
}
run test18 for 4
pred test19 {
no Queen
no row
no col
valid[]
}
run test19 for 4
pred test20 {
some disj Queen0, Queen1: Queen {
Queen = Queen0 + Queen1
row = Queen0->0 + Queen1->0
col = Queen0->1 + Queen1->1
valid[]
}
}
run test20 for 4
pred test21 {
some disj Queen0, Queen1: Queen {
Queen = Queen0 + Queen1
row = Queen0->6 + Queen1->5
col = Queen0->7 + Queen1->6
}
}
run test21 for 4
pred test22 {
some disj Queen0, Queen1, Queen2: Queen {
Queen = Queen0 + Queen1 + Queen2
row = Queen0->2 + Queen1->5 + Queen2->6
col = Queen0->2 + Queen1->-4 + Queen2->-5
}
}
run test22 for 4
pred test23 {
some disj Queen0, Queen1, Queen2: Queen {
Queen = Queen0 + Queen1 + Queen2
row = Queen0->2 + Queen1->5 + Queen2->6
col = Queen0->0 + Queen1->-7 + Queen2->-8
}
}
run test23 for 4
pred test24 {
some disj Queen0, Queen1: Queen {
Queen = Queen0 + Queen1
row = Queen0->5 + Queen1->6
col = Queen0->7 + Queen1->3
}
}
run test24 for 4
pred test25 {
some disj Queen0: Queen {
Queen = Queen0
row = Queen0->-8
col = Queen0->0
}
}
run test25 for 4
pred test26 {
some disj Queen0: Queen {
Queen = Queen0
row = Queen0->0
col = Queen0->0
}
}
run test26 for 4
pred test27 {
some disj Queen0: Queen {
Queen = Queen0
row = Queen0->1
col = Queen0->0
}
}
run test27 for 4
pred test28 {
some disj Queen0, Queen1: Queen {
Queen = Queen0 + Queen1
row = Queen0->5 + Queen1->6
col = Queen0->1 + Queen1->0
}
}
run test28 for 4
pred test29 {
some disj Queen0, Queen1, Queen2: Queen {
Queen = Queen0 + Queen1 + Queen2
row = Queen0->6 + Queen1->5 + Queen2->6
col = Queen0->2 + Queen1->2 + Queen2->0
}
}
run test29 for 4
pred test30 {
some disj Queen0: Queen {
Queen = Queen0
row = Queen0->7
col = Queen0->0
}
}
run test30 for 4
pred test31 {
some disj Queen0: Queen {
Queen = Queen0
row = Queen0->0
col = Queen0->-8
}
}
run test31 for 4
pred test32 {
some disj Queen0: Queen {
Queen = Queen0
row = Queen0->0
col = Queen0->1
}
}
run test32 for 4
pred test33 {
some disj Queen0: Queen {
Queen = Queen0
row = Queen0->0
col = Queen0->4
}
}
run test33 for 4
|
src/interface/yaml-destination.ads | robdaemon/AdaYaml | 32 | 6696 | -- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Finalization;
package Yaml.Destination is
type Instance is abstract new Ada.Finalization.Limited_Controlled with
null record;
type Pointer is access all Instance'Class;
procedure Write_Data (D : in out Instance; Buffer : String) is abstract;
end Yaml.Destination;
|
libsrc/oz/ozserial/ozgetrxhandshaking.asm | andydansby/z88dk-mk2 | 1 | 8322 | <reponame>andydansby/z88dk-mk2<filename>libsrc/oz/ozserial/ozgetrxhandshaking.asm
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by <NAME>
; by <NAME> - Oct. 2003
;
; Serial libraries
; buffered serial input
;
; ------
; $Id: ozgetrxhandshaking.asm,v 1.1 2003/10/21 17:15:21 stefano Exp $
;
XLIB ozgetrxhandshaking
LIB serial_int
XREF SerialBuffer
XREF ozrxhandshaking
ozgetrxhandshaking:
ld a,(ozrxhandshaking)
ld h,0
ld l,a
ret
|
src/commands-topics-contribute.ads | GLADORG/glad-cli | 0 | 16779 | with AAA.Strings;
with CLIC.Subcommand;
with CLIC.TTY;
package Commands.Topics.Contribute is
package TT renames CLIC.TTY;
type Topic is new CLIC.Subcommand.Help_Topic with null record;
overriding
function Name (This : Topic) return CLIC.Subcommand.Identifier
is ("contribute");
overriding
function Title (This : Topic) return String
is ("How to contribute to the Glad-cli project.");
overriding
function Content (This : Topic) return AAA.Strings.Vector
is (AAA.Strings.Empty_Vector.Append
("Please create pull request on the Glad-cli project's GitHub page: ")
.Append
(TT.Url("https://github.com/GLADORG/glad-cli")).Append("Not just for code, but also for adding to the documentation or fixing spelling mistakes."));
end Commands.Topics.Contribute; |
programs/oeis/212/A212682.asm | neoneye/loda | 22 | 100216 | ; A212682: Number of (w,x,y,z) with all terms in {1,...,n} and |x-y|>=|y-z|.
; 0,1,12,57,168,395,792,1435,2400,3789,5700,8261,11592,15847,21168,27735,35712,45305,56700,70129,85800,103971,124872,148787,175968,206725,241332,280125,323400,371519,424800,483631,548352,619377,697068
mov $1,$0
seq $1,212684 ; Number of (w,x,y,z) with all terms in {1,...,n} and |x-y|=n-w+|y-z|.
mul $0,$1
|
programs/oeis/166/A166350.asm | neoneye/loda | 22 | 11978 | <gh_stars>10-100
; A166350: Table T(n,m) = m! read by rows.
; 1,1,2,1,2,6,1,2,6,24,1,2,6,24,120,1,2,6,24,120,720,1,2,6,24,120,720,5040,1,2,6,24,120,720,5040,40320,1,2,6,24,120,720,5040,40320,362880,1,2,6,24,120,720,5040,40320,362880,3628800,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,1,2,6,24,120,720,5040,40320,362880
mov $2,1
add $2,$0
lpb $0
mov $1,$0
mul $0,2
sub $0,$2
trn $0,1
mov $2,$1
lpe
seq $1,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters).
mov $0,$1
|
include/ahex.inc.asm | BernardTatin/asm_required | 0 | 21897 | ; ----------------------------------------------------------------------
; ahex.inc.asm
;
; A simple cat which write on STDOUT all what it reads on STDIN
; To assemble and run:
;
; nasm -felf64 acat.asm acat.data.asm \
; && ld acat.o acat.data.o && ./a.out
; ----------------------------------------------------------------------
%assign buffer_size 16
%ifdef DATA
%define _ATTR_ global
%else
%define _ATTR_ extern
%endif
_ATTR_ buffer_in
_ATTR_ buffer_len
_ATTR_ address
_ATTR_ ptr_out
_ATTR_ chars2display
_ATTR_ line
_ATTR_ bytes1
_ATTR_ bytes2
_ATTR_ chars
_ATTR_ Lline
_ATTR_ emptybytes
_ATTR_ Lemptybytes
_ATTR_ hexsymbols
|
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c95012a.ada | best08618/asylo | 7 | 10198 | -- C95012A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- CHECK THAT A CALL TO AN ENTRY OF A TASK THAT HAS NOT BEEN ACTIVATED
-- DOES NOT RAISE EXCEPTIONS.
-- THIS TEST CONTAINS RACE CONDITIONS.
-- JRK 11/6/81
-- SPS 11/21/82
-- PWN 01/31/95 REMOVED PRAGMA PRIORITY FOR ADA 9X.
with Impdef;
WITH REPORT; USE REPORT;
WITH SYSTEM; USE SYSTEM;
PROCEDURE C95012A IS
I : INTEGER := 0;
BEGIN
TEST ("C95012A", "CHECK THAT A CALL TO AN ENTRY OF A TASK " &
"THAT HAS NOT BEEN ACTIVATED DOES NOT " &
"RAISE EXCEPTIONS");
DECLARE
TASK T1 IS
ENTRY E1 (I : OUT INTEGER);
END T1;
TASK TYPE T2T IS
ENTRY E2 (I : OUT INTEGER);
END T2T;
TYPE AT2T IS ACCESS T2T;
AT2 : AT2T;
TASK BODY T1 IS
BEGIN
ACCEPT E1 (I : OUT INTEGER) DO
I := IDENT_INT (1);
END E1;
END T1;
TASK BODY T2T IS
J : INTEGER := 0;
BEGIN
BEGIN
T1.E1 (J);
EXCEPTION
WHEN OTHERS =>
J := -1;
END;
ACCEPT E2 (I : OUT INTEGER) DO
I := J;
END E2;
END T2T;
PACKAGE PKG IS
END PKG;
PACKAGE BODY PKG IS
BEGIN
AT2 := NEW T2T;
DELAY 60.0 * Impdef.One_Second;
END PKG;
BEGIN
AT2.ALL.E2 (I);
IF I = -1 THEN
FAILED ("EXCEPTION RAISED");
T1.E1 (I);
END IF;
IF I /= 1 THEN
FAILED ("WRONG VALUE PASSED");
END IF;
END;
RESULT;
END C95012A;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.