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
alloy4fun_models/trashltl/models/9/pR4pffvuBhke5mZD6.als
Kaixi26/org.alloytools.alloy
0
2789
open main pred idpR4pffvuBhke5mZD6_prop10 { all p: Protected | always p in Protected } pred __repair { idpR4pffvuBhke5mZD6_prop10 } check __repair { idpR4pffvuBhke5mZD6_prop10 <=> prop10o }
oeis/289/A289438.asm
neoneye/loda-programs
11
81966
<reponame>neoneye/loda-programs ; A289438: The arithmetic function v_4(n,4). ; Submitted by <NAME> ; 0,1,0,1,2,2,1,3,2,3,4,3,4,5,3,4,6,5,4,7,6,6,8,6,6,9,8,7,10,8,7,11,8,10,12,9,10,13,9,10,14,11,12,15,12,12,16,14,12,17,12,13,18,15,16,19,14,15,20,15,16,21,15,16,22,17,16,23,20 add $0,1 mov $1,$0 lpb $1 sub $1,1 mul $1,2 mov $2,$1 cmp $2,0 add $1,$2 mov $3,$0 dif $3,$1 add $1,1 lpb $3 cmp $3,$0 cmp $3,0 mul $3,$1 div $1,2 sub $1,1 lpe sub $0,1 lpe div $0,2
3-mid/impact/source/3d/collision/dispatch/impact-d3-collision-algorithm-activating-convex_concave.ads
charlie5/lace
20
2198
<reponame>charlie5/lace<gh_stars>10-100 with impact.d3.collision.Algorithm.activating, impact.d3.Manifold, impact.d3.collision.manifold_Result, impact.d3.Dispatcher, impact.d3.Object, impact.d3.collision.create_Func, impact.d3.collision.Algorithm, impact.d3.triangle_Callback; package impact.d3.collision.Algorithm.activating.convex_concave -- -- impact.d3.collision.Algorithm.activating.convex_concave supports collision between convex shapes and (concave) trianges meshes. -- is -- For each triangle in the concave mesh that overlaps with the AABB of a convex (m_convexProxy), processTriangle is called. -- type btConvexTriangleCallback is new impact.d3.triangle_Callback.item with private; function to_btConvexTriangleCallback (dispatcher : access impact.d3.Dispatcher.item'Class; body0, body1 : access impact.d3.Object.item'Class; isSwapped : in Boolean ) return btConvexTriangleCallback; overriding procedure destruct (Self : in out btConvexTriangleCallback); procedure setTimeStepAndCounters (Self : in out btConvexTriangleCallback; collisionMarginTriangle : in math.Real; dispatchInfo : in impact.d3.Dispatcher.DispatcherInfo; resultOut : access impact.d3.collision.manifold_Result.item); overriding procedure processTriangle (Self : in out btConvexTriangleCallback; triangle : access math.Matrix_3x3; partId : in Integer; triangleIndex : in Integer); procedure clearCache (Self : in out btConvexTriangleCallback); function getAabbMin (Self : in btConvexTriangleCallback) return math.Vector_3; function getAabbMax (Self : in btConvexTriangleCallback) return math.Vector_3; function m_triangleCount (Self : in btConvexTriangleCallback) return Integer; function m_manifoldPtr (Self : in btConvexTriangleCallback) return access impact.d3.Manifold.item'Class; --- impact.d3.collision.Algorithm.activating.convex_concave -- type Item is new impact.d3.collision.Algorithm.activating.item with private; function to_convex_concave_Algorithm (ci : in AlgorithmConstructionInfo; body0, body1 : access impact.d3.Object.item'Class; isSwapped : in Boolean ) return Item'Class; overriding procedure destruct (Self : in out Item); overriding procedure processCollision (Self : in out Item; body0, body1 : access impact.d3.Object.item'Class; dispatchInfo : in impact.d3.Dispatcher.DispatcherInfo; resultOut : out impact.d3.collision.manifold_Result.item); overriding function calculateTimeOfImpact (Self : in Item; body0, body1 : access impact.d3.Object.item'Class; dispatchInfo : in impact.d3.Dispatcher.DispatcherInfo; resultOut : access impact.d3.collision.manifold_Result.item) return math.Real; overriding procedure getAllContactManifolds (Self : in out Item; manifoldArray : out impact.d3.collision.Algorithm.btManifoldArray); procedure clearCache (Self : in out Item); --- Create Functions -- type CreateFunc is new Create_Func.item with null record; overriding function CreateCollisionAlgorithm (Self : in CreateFunc; ci : in AlgorithmConstructionInfo; body0, body1 : access impact.d3.Object.item'Class) return impact.d3.Dispatcher.Algorithm_view; type SwappedCreateFunc is new Create_Func.item with null record; overriding function CreateCollisionAlgorithm (Self : in SwappedCreateFunc; ci : in AlgorithmConstructionInfo; body0, body1 : access impact.d3.Object.item'Class) return impact.d3.Dispatcher.Algorithm_view; private type btConvexTriangleCallback is new impact.d3.triangle_Callback.item with record m_convexBody : access impact.d3.Object.item'Class; m_triBody : access impact.d3.Object.item'Class; m_aabbMin, m_aabbMax : math.Vector_3; m_resultOut : access impact.d3.collision.manifold_Result.item; m_dispatcher : access impact.d3.Dispatcher.item'Class; m_dispatchInfoPtr : access constant impact.d3.Dispatcher.DispatcherInfo; m_collisionMarginTriangle : math.Real; m_triangleCount : Integer; m_manifoldPtr : access impact.d3.Manifold.item; end record; type Item is new impact.d3.collision.Algorithm.activating.item with record m_isSwapped : Boolean; m_btConvexTriangleCallback : btConvexTriangleCallback; end record; end impact.d3.collision.Algorithm.activating.convex_concave;
tests/src/Safe_Alloc/sa_definite_tests.ads
mhatzl/spark_unbound
8
23511
<gh_stars>1-10 with AUnit; with AUnit.Test_Fixtures; package SA_Definite_Tests is type Test_Fixture is new AUnit.Test_Fixtures.Test_Fixture with null record; procedure TestAlloc_WithForcingStorageError_ResultNullReturned(T : in out Test_Fixture); end SA_Definite_Tests;
day_template/src/day.adb
jwarwick/aoc_2020
3
15476
-- AoC 2020, Day X with Ada.Text_IO; -- with Ada.Containers.Indefinite_Hashed_Maps; -- with Ada.Containers.Ordered_Sets; -- with Ada.Strings.Hash; -- with Ada.Strings.Fixed; use Ada.Strings.Fixed; -- with GNAT.String_Split; -- with Ada.Characters.Latin_1; package body Day is package TIO renames Ada.Text_IO; -- package Orbit_Element_Set is new Ada.Containers.Ordered_Sets -- (Element_Type => Unbounded_String); -- type Orbit is record -- Name : Unbounded_String := Null_Unbounded_String; -- Parent : Unbounded_String := Null_Unbounded_String; -- Children : Orbit_Element_Set.Set := Orbit_Element_Set.Empty_Set; -- Depth : Natural := 0; -- end record; -- pragma Warnings (Off, "procedure ""Put"" is not referenced"); -- procedure Put(value : in Orbit) is -- pragma Warnings (On, "procedure ""Put"" is not referenced"); -- begin -- TIO.Put("Orbit: " & to_string(value.Name) & ", Parent: " & to_string(value.Parent) & ", Depth: " & Natural'IMAGE(value.Depth)); -- TIO.New_Line; -- TIO.Put(" Children: "); -- for c of value.Children loop -- TIO.Put(to_string(c) & " "); -- end loop; -- end Put; -- package Orbit_Hashed_Maps is new Ada.Containers.Indefinite_Hashed_Maps -- (Key_Type => String, -- Element_Type => Orbit, -- Hash => Ada.Strings.Hash, -- Equivalent_Keys => "="); -- procedure parse_line(line : in String; orbits : in out Orbit_List.Vector) is -- idx : constant Natural := index(line, ")"); -- left : constant String := line(line'first .. idx-1); -- right : constant String := line(idx+1 .. line'last); -- curr : constant Orbit_Entry := Orbit_Entry'(left => to_unbounded_string(left), right => to_unbounded_string(right)); -- begin -- orbits.append(curr); -- end parse_line; -- function load_orbits(filename : in String) return Orbit_List.Vector is -- file : TIO.File_Type; -- orbits : Orbit_List.Vector; -- begin -- TIO.open(File => file, Mode => TIO.In_File, Name => filename); -- while not TIO.end_of_file(file) loop -- parse_line(TIO.get_line(file), orbits); -- end loop; -- TIO.close(file); -- return orbits; -- end load_orbits; end Day;
data/pokemon/base_stats/tangrowth.asm
AtmaBuster/pokeplat-gen2
6
246031
<reponame>AtmaBuster/pokeplat-gen2<filename>data/pokemon/base_stats/tangrowth.asm db 0 ; species ID placeholder db 100, 100, 125, 50, 110, 50 ; hp atk def spd sat sdf db GRASS, GRASS ; type db 30 ; catch rate db 187 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 20 ; step cycles to hatch INCBIN "gfx/pokemon/tangrowth/front.dimensions" db GROWTH_MEDIUM_FAST ; growth rate dn EGG_PLANT, EGG_PLANT ; egg groups db 70 ; happiness ; tm/hm learnset tmhm TOXIC, BULLET_SEED, HIDDEN_POWER, SUNNY_DAY, HYPER_BEAM, PROTECT, GIGA_DRAIN, FRUSTRATION, SOLARBEAM, EARTHQUAKE, RETURN, BRICK_BREAK, DOUBLE_TEAM, REFLECT, SHOCK_WAVE, SLUDGE_BOMB, ROCK_TOMB, AERIAL_ACE, FACADE, SECRET_POWER, REST, ATTRACT, THIEF, FOCUS_BLAST, ENERGY_BALL, FLING, ENDURE, PAYBACK, GIGA_IMPACT, FLASH, SWORDS_DANCE, PSYCH_UP, CAPTIVATE, ROCK_SLIDE, SLEEP_TALK, NATURAL_GIFT, POISON_JAB, GRASS_KNOT, SWAGGER, SUBSTITUTE, CUT, STRENGTH, ROCK_SMASH, ANCIENTPOWER, KNOCK_OFF, MUD_SLAP, SEED_BOMB, SNORE, SYNTHESIS ; end
src/main/antlr4/com/kunalanand/ksql/KSQL.g4
anandkunal/ksql
0
3780
grammar KSQL; expr : deleteExpr | selectExpr ; deleteExpr : DELETE FROM tableName ; selectExpr : SELECT columnList FROM tableName (WHERE whereExpr)? (SEMICOLON)? ; columnList : wildcard | columnName ( COMMA columnName )* ; columnName : ID ( ID )? ; whereExpr : dynamicComparison | staticComparison ; dynamicComparison : ID EQ INT ; staticComparison : INT EQ INT ; wildcard : STAR ; tableName : ID ; // Keywords & Reserved SELECT : 'SELECT' | 'select' ; DELETE : 'DELETE' | 'delete' ; FROM : 'FROM' | 'from' ; WHERE : 'WHERE' | 'where' ; AND : 'AND' | 'and' ; OR : 'OR' | 'or' ; STAR : '*' ; EQ : '=' ; // Identifiers ID : ( 'a'..'z' | 'A'..'Z' )+ ; INT : [0-9]+ ; // Punctuation COMMA : ',' -> skip ; SEMICOLON : ';' -> skip ; WS : [ \t\r\n]+ -> skip ;
src/Control/Lens.agda
andreasabel/cubical
0
16204
{-# OPTIONS --allow-unsolved-metas #-} module Control.Lens where open import Function using (id; _∘_; const; flip) open import Relation.Binary.PropositionalEquality open ≑-Reasoning open import Axiom.FunctionExtensionality open import Util.Equality open import Control.Functor renaming (Comp to _β€’_) open import Control.Functor.NaturalTransformation renaming (Id to Nid; Comp to _Β·_) -- S-combinator. apply : βˆ€ {A B C : Set} β†’ (A β†’ B β†’ C) β†’ (A β†’ B) β†’ A β†’ C apply f g a = f a (g a) -- Flipped S-combinator (flipped apply). flipply : βˆ€ {O A B : Set} β†’ (A β†’ O β†’ B) β†’ (O β†’ A) β†’ O β†’ B flipply f g o = f (g o) o record GetSetLens (O I : Set) : Set where -- Operations. field get : O β†’ I set : I β†’ O β†’ O -- Laws. field set-set : βˆ€ {i j} β†’ set i ∘ set j ≑ set i get-set : βˆ€ {i} β†’ get ∘ set i ≑ const i set-get : flipply set get ≑ id -- βˆ€ {o} β†’ set (get o) o ≑ o -- A variant of GetSetLens record GetsModifyLens (O I : Set) : Set₁ where -- Operations. field gets : βˆ€ {J} β†’ (I β†’ J) β†’ O β†’ J modify : (I β†’ I) β†’ O β†’ O -- Laws. field -- modify is an endofunctor in the discrete category I. modify-id : modify id ≑ id modify-∘ : βˆ€ {f g} β†’ modify g ∘ modify f ≑ modify (g ∘ f) -- Free theorem for gets. gets-free : βˆ€ {J K} {f : J β†’ K} (g : I β†’ J) β†’ f ∘ gets g ≑ gets (f ∘ g) gets-modify : βˆ€ {J} {f : I β†’ I} {g : I β†’ J} β†’ gets g ∘ modify f ≑ gets (g ∘ f) -- set (get o) o ≑ o -- modify (const (gets id o)) o ≑ o -- modify (const (gets f o)) o ≑ modify f o -- modify (Ξ» i β†’ g (gets f o) i) o ≑ modify (Ξ» i β†’ g i (f i)) o -- apply (flip modify) (g ∘ gets f) ≑ modify (apply g f) modify-gets : βˆ€ {J} {g : I β†’ J} (s : J β†’ I β†’ I) β†’ flipply modify (s ∘ gets g) ≑ modify (flipply s g) getSetLens : GetSetLens O I getSetLens = record { get = gets id ; set = modify ∘ const ; set-set = modify-∘ ; get-set = get-set ; set-get = set-get } where get : O β†’ I get = gets id set : I β†’ O β†’ O set = modify ∘ const get-set : βˆ€ {i} β†’ get ∘ set i ≑ const i get-set {i} = begin get ∘ set i β‰‘βŸ¨βŸ© gets id ∘ modify (const i) β‰‘βŸ¨ gets-modify ⟩ gets (id ∘ const i) β‰‘βŸ¨βŸ© gets (const i ∘ id) β‰‘βŸ¨ sym (gets-free id) ⟩ const i ∘ get β‰‘βŸ¨βŸ© const i ∎ set-get : flipply set get ≑ id set-get = begin flipply set get β‰‘βŸ¨βŸ© flipply (modify ∘ const) (gets id) β‰‘βŸ¨βŸ© flipply modify (const ∘ gets id) β‰‘βŸ¨ modify-gets const ⟩ modify (flipply const id) β‰‘βŸ¨βŸ© modify id β‰‘βŸ¨ modify-id ⟩ id ∎ open GetSetLens getSetLens public -- van Laarhoven lenses record Lens (O I : Set) : Set₁ where -- Single operation: Functorial modify. field modify! : βˆ€ (FF : Functor) β†’ let F = Functor.F FF in (I β†’ F I) β†’ (O β†’ F O) -- Laws -- 0. Free theorem: field modify!-free : (FF GG : Functor) (N : NatTrans FF GG) β†’ let open Functor FF using () renaming (F to F; map to mapF) in let open Functor GG using () renaming (F to G; map to mapG) in let open NatTrans N using () renaming (eta to Ξ·) in (f : I β†’ F I) β†’ Ξ· ∘ modify! FF f ≑ modify! GG (Ξ· ∘ f) -- 1. Identity law: -- Generalize? modify!-id : modify! Id id ≑ id -- 2. Composition law: modify!-∘ : (FF GG : Functor) β†’ let open Functor FF using () renaming (F to F; map to mapF) in let open Functor GG using () renaming (F to G; map to mapG) in {f : I β†’ F I} β†’ {g : I β†’ G I} β†’ mapF (modify! GG g) ∘ modify! FF f ≑ modify! (FF β€’ GG) (mapF g ∘ f) getsModifyLens : GetsModifyLens O I getsModifyLens = record { gets = gets ; modify = modify ; modify-id = modify!-id ; modify-∘ = modify-∘ ; gets-free = Ξ» {J}{K}{f} g β†’ gets-free f g ; gets-modify = gets-modify ; modify-gets = modify-gets } where -- gets and modify gets : βˆ€ {J} β†’ (I β†’ J) β†’ (O β†’ J) gets {J = J} = modify! (Const J) modify : (I β†’ I) β†’ O β†’ O modify = modify! Id -- Laws of gets and modify. modify-∘ : βˆ€ {f g} β†’ modify g ∘ modify f ≑ modify (g ∘ f) modify-∘ = modify!-∘ Id Id gets-free : βˆ€ {J K} (f : J β†’ K) (g : I β†’ J) β†’ f ∘ gets g ≑ gets (f ∘ g) gets-free {J = J}{K = K} f g = modify!-free (Const J) (Const K) (ConstNat f) g gets-modify : βˆ€ {J} {f : I β†’ I} {g : I β†’ J} β†’ gets g ∘ modify f ≑ gets (g ∘ f) gets-modify {J = J} = modify!-∘ Id (Const J) modify-gets : βˆ€ {J} {g : I β†’ J} (s : J β†’ I β†’ I) β†’ flipply modify (s ∘ gets g) ≑ modify (flipply s g) modify-gets = {!!} -- TODO! Difficult. open GetsModifyLens getsModifyLens public -- Every GetSetLens is a van Laarhoven lens ?? lensFromGetSet : βˆ€ {O I} β†’ GetSetLens O I β†’ Lens O I lensFromGetSet {O = O}{I = I} l = record { modify! = modify! ; modify!-free = {!!} ; modify!-id = set-get ; modify!-∘ = modify!-∘ } where open GetSetLens l module Define-modify! (FF : Functor) where open Functor FF modify! : (I β†’ F I) β†’ (O β†’ F O) modify! f = apply (map ∘ flip set) (f ∘ get) derivation-of-modify : βˆ€ f β†’ modify! f ≑ apply (map ∘ flip set) (f ∘ get) derivation-of-modify f = begin modify! f β‰‘βŸ¨βŸ© (Ξ» o β†’ f (get o) <&> Ξ» i β†’ set i o) β‰‘βŸ¨βŸ© (Ξ» o β†’ ((Ξ» o β†’ map (Ξ» i β†’ set i o)) o) ((f ∘ get) o)) β‰‘βŸ¨βŸ© apply (Ξ» o β†’ map (Ξ» i β†’ set i o)) (f ∘ get) β‰‘βŸ¨βŸ© apply (Ξ» o β†’ map (flip set o)) (f ∘ get) β‰‘βŸ¨βŸ© apply (map ∘ flip set) (f ∘ get) ∎ open Define-modify! modify!-free : (FF GG : Functor) (N : NatTrans FF GG) β†’ let open Functor FF using () renaming (F to F; map to mapF) in let open Functor GG using () renaming (F to G; map to mapG) in let open NatTrans N using () renaming (eta to Ξ·) in (f : I β†’ F I) β†’ Ξ· ∘ modify! FF f ≑ modify! GG (Ξ· ∘ f) modify!-free FF GG N f = fun-ext Ξ» o β†’ begin Ξ· (modify! FF f o) β‰‘βŸ¨βŸ© Ξ· (mapF (Ξ» i β†’ set i o) (f (get o))) β‰‘βŸ¨ app-naturality (flip set) (f ∘ get) o ⟩ mapG (Ξ» i β†’ set i o) (Ξ· (f (get o))) β‰‘βŸ¨βŸ© modify! GG (Ξ· ∘ f) o ∎ where open Functor FF using () renaming (F to F; map to mapF; map-∘ to mapF-∘) open Functor GG using () renaming (F to G; map to mapG; map-∘ to mapG-∘) open NatTrans N using (app-naturality) renaming (eta to Ξ·) modify!-id : modify! Id id ≑ id modify!-id = fun-ext Ξ» o β†’ begin (Functor.map Id) (Ξ» i β†’ set i o) (id (get o)) β‰‘βŸ¨βŸ© (Ξ» i β†’ set i o) (get o) β‰‘βŸ¨βŸ© set (get o) o β‰‘βŸ¨βŸ© flipply set get o β‰‘βŸ¨ app-≑ o set-get ⟩ id o β‰‘βŸ¨βŸ© o ∎ modify!-∘ : (FF GG : Functor) β†’ let open Functor FF using () renaming (F to F; map to mapF) in let open Functor GG using () renaming (F to G; map to mapG) in {f : I β†’ F I} β†’ {g : I β†’ G I} β†’ mapF (modify! GG g) ∘ modify! FF f ≑ modify! (FF β€’ GG) (mapF g ∘ f) modify!-∘ FF GG {f = f} {g = g} = fun-ext Ξ» o β†’ begin mapF (modify! GG g) (modify! FF f o) β‰‘βŸ¨βŸ© mapF (Ξ» o β†’ mapG (Ξ» i β†’ set i o) (g (get o))) (mapF (Ξ» i β†’ set i o) (f (get o))) β‰‘βŸ¨ app-≑ _ (sym mapF-∘) ⟩ mapF ((Ξ» o β†’ mapG (Ξ» i β†’ set i o) (g (get o))) ∘ (Ξ» i β†’ set i o))(f (get o)) β‰‘βŸ¨βŸ© mapF (Ξ» j β†’ mapG (Ξ» i β†’ set i (set j o)) (g (get (set j o)))) (f (get o)) β‰‘βŸ¨ {!set-set!} ⟩ mapF (Ξ» j β†’ mapG (Ξ» i β†’ set i o) (g (get (set j o)))) (f (get o)) β‰‘βŸ¨ {!get-set!} ⟩ mapF (Ξ» j β†’ mapG (Ξ» i β†’ set i o) (g j)) (f (get o)) β‰‘βŸ¨βŸ© mapF (mapG (Ξ» i β†’ set i o) ∘ g) (f (get o)) β‰‘βŸ¨ app-≑ _ mapF-∘ ⟩ mapF (mapG (Ξ» i β†’ set i o)) (mapF g (f (get o))) β‰‘βŸ¨βŸ© mapFG (Ξ» i β†’ set i o) (mapF g (f (get o))) β‰‘βŸ¨βŸ© modify! (FF β€’ GG) (mapF g ∘ f) o ∎ where open Functor FF using () renaming (F to F; map to mapF; map-∘ to mapF-∘) open Functor GG using () renaming (F to G; map to mapG; map-∘ to mapG-∘) mapFG = Functor.map (FF β€’ GG) {- Lens operations: get : Lens I O β†’ O β†’ I get l o = l (mapK I) id o set : Len I O β†’ I β†’ O β†’ O set l i o = l mapId (const i) o Lens laws: a. set-set set l i ∘ set l j = set l i Prove from 2. b. get-set get l (set l i o) = i Prove from 0. + 2. c. set-get set l o (get l o) = o This states that set is surjective, it is equivalent to βˆ€ o β†’ βˆƒβ‚‚ Ξ» i oβ€² β†’ set l oβ€² i = o Independence of 0, 1, 2. ----------------------- A. 0 does not imply 2. Counterexample: -- An impossible lens, since ⊀ contains nothing, especially not Bool l : Lens Bool ⊀ l map f = map (const tt) (f true) ( get l _ = false ) ( set l _ _ = tt ) does not satisfy 2. (Lens composition) mapId (l (mapK Bool) id) ∘ l mapId not = const ((mapK Bool) (const tt) true) = const true l (mapK Bool) (id ∘ not) = const ((mapK Bool) (const tt) (not true) = const false B. 0, 2 are not sufficent to prove c. Counterexample: -- Lens focusing on nothing. l : Lens ⊀ Bool l map f _ = map (const true) (f tt) ( get l _ = tt ) ( set l _ _ = true ) so, set l false (get l false) /= false Proof of 2: -}
Applications/Google-Chrome/examples/vk.com/pause.applescript
looking-for-a-job/applescript-examples
1
6
<filename>Applications/Google-Chrome/examples/vk.com/pause.applescript<gh_stars>1-10 #!/usr/bin.osascript tell application "Google Chrome" repeat with w in every window repeat with t in every tab in w if "vk.com" is in (get URL of t) then set js to "//Set up jQuery var script = document.createElement('script'); script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js'; document.getElementsByTagName('head')[0].appendChild(script); $('#ac_play.playing').click(); " tell t execute javascript(js) end tell end if end repeat end repeat end tell
src/giza-widget-text.adb
Fabien-Chouteau/Giza
7
18906
------------------------------------------------------------------------------ -- -- -- Giza -- -- -- -- Copyright (C) 2015 <NAME> (<EMAIL>) -- -- -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ with Ada.Unchecked_Deallocation; package body Giza.Widget.Text is procedure Free is new Ada.Unchecked_Deallocation (String, String_Access); ---------- -- Draw -- ---------- overriding procedure Draw (This : in out Instance; Ctx : in out Context.Class; Force : Boolean := True) is Margin_H : constant Dim := This.Get_Size.H / 30; Margin_W : constant Dim := This.Get_Size.W / 30; begin if not This.Dirty and then not Force then return; end if; Draw (Parent (This), Ctx, Force => True); if This.Str /= null then Ctx.Set_Color (This.Get_Foreground); Ctx.Print_In_Rect (This.Str.all, ((Margin_W, Margin_H), This.Get_Size - (Margin_W * 2, Margin_H * 2))); end if; end Draw; -------------- -- Set_Text -- -------------- procedure Set_Text (This : in out Instance; Str : String) is begin if This.Str /= null then Free (This.Str); end if; This.Str := new String'(Str); This.Set_Dirty; end Set_Text; ---------- -- Text -- ---------- function Text (This : Instance) return String is begin if This.Str /= null then return This.Str.all; else return ""; end if; end Text; end Giza.Widget.Text;
raid/Setup/list/Mirror.asm
OS2World/DRV-VRAID
0
21725
<filename>raid/Setup/list/Mirror.asm title Mirror.cpp .386 .387 includelib CPPOM30.LIB includelib OS2386.LIB CODE32 segment dword use32 public 'CODE' CODE32 ends DATA32 segment dword use32 public 'DATA' DATA32 ends CONST32_RO segment dword use32 public 'CONST' CONST32_RO ends BSS32 segment dword use32 public 'BSS' BSS32 ends EH_CODE segment dword use32 public 'CODE' EH_CODE ends CTOR_DTOR1 segment dword use32 public 'DATA' CTOR_DTOR1 ends CTOR_DTOR2 segment dword use32 public 'DATA' CTOR_DTOR2 ends CTOR_DTOR3 segment dword use32 public 'DATA' CTOR_DTOR3 ends EH_DATA segment para use32 public 'DATA' EH_DATA ends _VFT segment para use32 public 'DATA' _VFT ends DGROUP group BSS32, DATA32 assume cs:FLAT, ds:FLAT, ss:FLAT, es:FLAT public __vft7VMirror5VDisk extrn memcpy:proc extrn WinLoadPointer:proc extrn _Exception_CPP:proc extrn WinDestroyPointer:proc extrn __dl__FPv:proc extrn __vn__FUi:proc extrn _sprintfieee:proc extrn strlen:proc extrn Verbose:proc extrn __nw__FUi:proc extrn memset:proc extrn time:proc extrn Crc16__FPvUs:proc extrn memcmp:proc extrn __vd__FPv:proc extrn __PureVirtualCalled:proc extrn _fltused:dword CONST32_RO segment @CBE1 db "ready",0h align 04h @CBE2 db "build",0h align 04h @CBE3 db "fail",0h align 04h @CBE4 db "error",0h align 04h @CBE5 db "RAID 1 (Mirroring, %s)",0h align 04h @CBE6 db " (OS/2 Drive %lu)",0h align 04h @CBE7 db 0ah,"ID %02X%02X%02X%02X%02X" db "%02X %lu MByte",0h align 04h @CBE8 db "VMirror",0h @CBE9 db "can't find child to remo" db "ve!",0h @CBE10 db "VMirror::ioRemoveParent",0h @CBE11 db "can't clear parent SEC_V" db "RDEV - rc %lu",0h align 04h @CBE12 db "can't read own SEC_VRDEV" db "2 - rc %lu",0h align 04h @CBE13 db "can't write own SEC_VRDE" db "V2 - rc %lu",0h @CBE14 db "VMirror::ioChangeID",0h @CBE15 db "VRAIDDEVICE2 ",0h align 04h @CBE16 db "updating current configu" db "ration sector",0h align 04h @CBE17 db "creating new configurati" db "on sector",0h align 04h @CBE18 db "VMirror::ioSync",0h @CBE19 db "write(0,1,...) - rc %lu," db " not updated",0h align 04h @CBE20 db "Data error when reading " db "child %d, ignored",0h align 04h @1vcid db "$Id: mirror.cpp,v 1.13 2" db "000/04/10 00:54:49 vitus" db " Exp $",0h CONST32_RO ends EH_DATA segment @1f__fsm_tab db 0adh,0deh,0efh,0beh db 01h,0h,0h,0h db 0h,0h,0h,0h dd offset FLAT:__dftbdt__20VDriveWithRedundancyFv db 01h,0h,0h,0h db 010h,0h,0h,0h db 01h,0h db 0h,0h @36__fsm_tab db 0adh,0deh,0efh,0beh db 01h,0h,0h,0h db 0h,0h,0h,0h dd offset FLAT:__dftbdt__20VDriveWithRedundancyFv db 01h,0h,0h,0h db 010h,0h,0h,0h db 01h,0h db 0h,0h @e0__fsm_tab60 db 0adh,0deh,0efh,0beh db 01h,0h,0h,0h db 0h,0h,0h,0h dd offset FLAT:__dftbdt__7VRDriveFv db 01h,0h,0h,0h db 010h,0h,0h,0h db 01h,0h db 0h,0h @f3__fsm_tab62 db 0adh,0deh,0efh,0beh db 01h,0h,0h,0h db 0h,0h,0h,0h dd offset FLAT:__dftbdt__7VRDriveFv db 01h,0h,0h,0h db 010h,0h,0h,0h db 01h,0h db 0h,0h @116__fsm_tab64 db 0adh,0deh,0efh,0beh db 01h,0h,0h,0h db 0h,0h,0h,0h dd offset FLAT:__dftbdt__5VRDevFv db 01h,0h,0h,0h db 010h,0h,0h,0h db 01h,0h db 0h,0h @129__fsm_tab66 db 0adh,0deh,0efh,0beh db 01h,0h,0h,0h db 0h,0h,0h,0h dd offset FLAT:__dftbdt__5VRDevFv db 01h,0h,0h,0h db 010h,0h,0h,0h db 01h,0h db 0h,0h EH_DATA ends DATA32 segment @57State2Str dd offset FLAT:@CBE1 dd offset FLAT:@CBE2 dd offset FLAT:@CBE3 dd offset FLAT:@CBE4 DATA32 ends _VFT segment __vft7VMirror5VDisk dd 0 db 0h,0h,0h,0h dd offset FLAT:isWritable__7VMirrorFv db 0h,0h,0h,0h dd offset FLAT:querySize__7VMirrorFv db 0h,0h,0h,0h dd offset FLAT:read__7VMirrorFUlT1Pv db 0h,0h,0h,0h dd offset FLAT:write__7VMirrorFUlT1Pv db 0h,0h,0h,0h dd offset FLAT:__dt__7VMirrorFv db 0h,0h,0h,0h dd offset FLAT:forceUnwritable__7VMirrorFv db 0h,0h,0h,0h dd offset FLAT:ioDeleteYourself__7VMirrorFv db 0h,0h,0h,0h dd offset FLAT:ioRemoveParent__7VMirrorFv db 0h,0h,0h,0h dd offset FLAT:ioChangeID__7VMirrorFPUc db 0h,0h,0h,0h dd offset FLAT:ioSync__7VMirrorFv db 0h,0h,0h,0h dd offset FLAT:queryWhere__5VRDevFv db 0h,0h,0h,0h dd offset FLAT:isArray__7VMirrorFv db 0h,0h,0h,0h dd offset FLAT:isHostdrive__7VMirrorFv db 0h,0h,0h,0h dd offset FLAT:allocateDescription__7VMirrorFv db 0h,0h,0h,0h dd offset FLAT:queryIcon__7VMirrorFv db 0h,0h,0h,0h dd offset FLAT:setHostdrive__7VMirrorFUl db 0h,0h,0h,0h dd offset FLAT:addChild__7VMirrorFP5VRDev7BooleanT2 db 0h,0h,0h,0h dd offset FLAT:queryChildren__7VMirrorFv db 0h,0h,0h,0h dd offset FLAT:getChild__7VMirrorFi db 0h,0h,0h,0h dd offset FLAT:isValidChild__7VMirrorFi db 0h,0h,0h,0h dd offset FLAT:isValidChild__7VMirrorFP5VRDev db 0h,0h,0h,0h dd offset FLAT:setBuild__7VMirrorFUl db 0h,0h,0h,0h dd offset FLAT:ioRemoveChild__7VMirrorFP5VRDev db 0h,0h,0h,0h @de__vft20VDriveWithRedundancy5VDisk dd 0 db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__dt__20VDriveWithRedundancyFv db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:queryWhere__5VRDevFv db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:isValidChild__7VRDriveFi db 0h,0h,0h,0h dd offset FLAT:isValidChild__7VRDriveFP5VRDev db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h @114__vft7VRDrive5VDisk dd 0 db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__dt__7VRDriveFv db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:queryWhere__5VRDevFv db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:isValidChild__7VRDriveFi db 0h,0h,0h,0h dd offset FLAT:isValidChild__7VRDriveFP5VRDev db 0h,0h,0h,0h @13c__vft5VRDev5VDisk dd 0 db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__dt__5VRDevFv db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:queryWhere__5VRDevFv db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h @143__vft5VDisk dd 0 db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h dd offset FLAT:__PureVirtualCalled db 0h,0h,0h,0h _VFT ends CODE32 segment ; 749 VMirror::querySize() public querySize__7VMirrorFv querySize__7VMirrorFv proc ; 751 return size; mov eax,[eax+011ch] ret querySize__7VMirrorFv endp ; 325 VMirror::setHostdrive(ULONG os2idx) public setHostdrive__7VMirrorFUl setHostdrive__7VMirrorFUl proc ; 328 os2access = os2idx; mov [eax+014h],edx ; 327 hostdrive = True; mov byte ptr [eax+010h],01h ; 329 } ret setHostdrive__7VMirrorFUl endp ; 231 VMirror::isValidChild(VRDev * which) public isValidChild__7VMirrorFP5VRDev isValidChild__7VMirrorFP5VRDev proc push edi mov [esp+08h],eax; this ; 233 for( int i = 0; i < children; ++i ) cmp dword ptr [eax+018h],0h jle @BLBL18 mov edi,eax xor ecx,ecx @BLBL19: ; 234 if( which == child[i].rdev ) lea eax,dword ptr [edi+ecx*08h] cmp [eax+01ch],edx jne @BLBL21 mov ecx,eax ; 235 return child[i].valid; pop edi movzx eax,byte ptr [ecx+020h] ret @BLBL21: ; 233 for( int i = 0; i < children; ++i ) inc ecx cmp [edi+018h],ecx jg @BLBL19 @BLBL18: ; 237 return False; /* xxx */ pop edi xor eax,eax ret isValidChild__7VMirrorFP5VRDev endp ; 221 VMirror::isValidChild(int which) public isValidChild__7VMirrorFi isValidChild__7VMirrorFi proc ; 224 return child[which].valid; movzx eax,byte ptr [eax+edx*08h+020h] ret isValidChild__7VMirrorFi endp ; 209 VRDev * public getChild__7VMirrorFi getChild__7VMirrorFi proc ; 212 if( index >= children ) cmp [eax+018h],edx jg @BLBL13 ; 213 return 0; xor eax,eax ret @BLBL13: ; 214 return child[index].rdev; mov eax,dword ptr [eax+edx*08h+01ch] ret getChild__7VMirrorFi endp ; 188 VMirror::queryChildren() public queryChildren__7VMirrorFv queryChildren__7VMirrorFv proc ; 190 return children; mov eax,[eax+018h] ret queryChildren__7VMirrorFv endp ; 167 VMirror::setBuild(ULONG nextsec) public setBuild__7VMirrorFUl setBuild__7VMirrorFUl proc ; 169 state = Build; mov byte ptr [eax+0130h],01h ; 170 } ret setBuild__7VMirrorFUl endp ; 824 VMirror::write(ULONG offset,ULONG count,PVOID buffer) public write__7VMirrorFUlT1Pv write__7VMirrorFUlT1Pv proc push ebp xchg ecx,eax mov ebp,esp sub esp,0ch mov [ebp+010h],eax; count push ebx mov [ebp+08h],ecx; this push edi ; 826 APIRET rc = 0; mov dword ptr [ebp-04h],0h; rc ; 827 ; 828 for( int i = 0; i < children; ++i ) cmp dword ptr [ecx+018h],0h ; 824 VMirror::write(ULONG offset,ULONG count,PVOID buffer) push esi ; 828 for( int i = 0; i < children; ++i ) jle @BLBL142 inc edx mov [ebp-08h],edx; @CBE28 mov edx,ecx mov [ebp+08h],ecx; this mov ecx,[ebp+014h]; buffer mov [ebp+010h],eax; count mov ebx,eax xor esi,esi xor edi,edi @BLBL143: mov eax,edx xchg eax,ebx ; 829 rc |= child[i].rdev->write(offset+1, count, buffer); push ecx ; 828 for( int i = 0; i < children; ++i ) mov [ebp-0ch],esi; @CBE29 ; 829 rc |= child[i].rdev->write(offset+1, count, buffer); mov ecx,eax mov eax,dword ptr [ebx+edi*08h+01ch] sub esp,0ch mov ebx,[eax] mov edx,[ebp-08h]; @CBE28 mov esi,[ebx+024h] add eax,esi mov esi,[ebp-0ch]; @CBE29 call dword ptr [ebx+020h] mov edx,[ebp+08h]; this mov ecx,[ebp+014h]; buffer mov ebx,[ebp+010h]; count or eax,esi ; 828 for( int i = 0; i < children; ++i ) inc edi ; 829 rc |= child[i].rdev->write(offset+1, count, buffer); add esp,010h ; 828 for( int i = 0; i < children; ++i ) cmp [edx+018h],edi ; 829 rc |= child[i].rdev->write(offset+1, count, buffer); mov esi,eax ; 828 for( int i = 0; i < children; ++i ) jg @BLBL143 mov [ebp-04h],esi; rc @BLBL142: ; 830 return rc; pop esi mov eax,[ebp-04h]; rc pop edi pop ebx leave ret write__7VMirrorFUlT1Pv endp ; 777 VMirror::read(ULONG offset,ULONG count,PVOID buffer) public read__7VMirrorFUlT1Pv read__7VMirrorFUlT1Pv proc push ebp mov ebp,esp push ebx mov ebx,eax push edi mov edi,edx push esi mov [ebp+010h],ecx; count sub esp,020h ; 779 PUCHAR copybuf = new UCHAR[count]; mov eax,ecx call __vn__FUi mov ecx,ebx ; 777 VMirror::read(ULONG offset,ULONG count,PVOID buffer) mov [ebp+08h],ebx; this ; 779 PUCHAR copybuf = new UCHAR[count]; mov [ebp-018h],eax; copybuf mov edx,edi ; 780 int goodchildren = 0; mov dword ptr [ebp-010h],0h; goodchildren ; 781 APIRET rc = VERROR_NO_CONTENTS; mov dword ptr [ebp-014h],0ff00h; rc ; 783 for( int i = 0; i < children; ++i ) cmp dword ptr [ecx+018h],0h jle @BLBL128 inc edx mov [ebp-01ch],edx; @CBE30 mov [ebp-018h],eax; copybuf mov ebx,eax xor esi,esi xor edi,edi @BLBL129: ; 785 if( !child[i].cfgok ) mov eax,[ebp+08h]; this lea eax,dword ptr [eax+edi*08h] cmp byte ptr [eax+021h],0h je @BLBL131 mov [ebp-020h],esi; @CBE31 ; 788 rc = child[i].rdev->read(offset+1, count, buffer); mov eax,[eax+01ch] mov edx,[ebp+014h]; buffer push edx mov ebx,[eax] sub esp,0ch mov edx,[ebp+010h]; count mov esi,[ebx+01ch] mov ecx,edx add eax,esi mov edx,[ebp-01ch]; @CBE30 mov esi,[ebp-020h]; @CBE31 call dword ptr [ebx+018h] mov ebx,[ebp-018h]; copybuf add esp,010h mov edx,[ebp+014h]; buffer mov ecx,[ebp+010h]; count mov [ebp-014h],eax; rc ; 789 if( rc != 0 ) test eax,eax jne @BLBL131 ; 791 if( goodchildren == 0 ) test esi,esi jne @BLBL133 ; 792 memcpy(copybuf, buffer, (size_t)count); mov eax,ebx call memcpy jmp @BLBL134 @BLBL133: ; 793 else if( memcmp(copybuf, buffer, (size_t)count) != 0 ) mov ecx,[ebp+010h]; count mov edx,[ebp+014h]; buffer mov eax,ebx call memcmp test eax,eax je @BLBL134 ; 794 Verbose(0, "VMirror", "Data error when reading child %d, ignored", i); push edi mov ecx,offset FLAT:@CBE20 sub esp,0ch mov edx,offset FLAT:@CBE8 xor eax,eax call Verbose add esp,010h @BLBL134: ; 795 ++goodchildren; inc esi ; 796 } @BLBL131: ; 783 for( int i = 0; i < children; ++i ) mov eax,[ebp+08h]; this inc edi cmp [eax+018h],edi jg @BLBL129 mov [ebp-010h],esi; goodchildren @BLBL128: ; 798 delete[] copybuf; mov eax,[ebp-018h]; copybuf call __vd__FPv ; 799 return (goodchildren == 0 ? rc : 0); cmp dword ptr [ebp-010h],0h; goodchildren sete al movzx eax,al neg eax and eax,[ebp-014h]; rc add esp,020h pop esi pop edi pop ebx pop ebp ret read__7VMirrorFUlT1Pv endp ; 622 VMirror::ioSync() public ioSync__7VMirrorFv ioSync__7VMirrorFv proc push ebp mov ebp,esp push ebx mov ebx,eax push edi ; 624 PSEC_VRDEV2 sec = new SEC_VRDEV2; mov eax,0200h ; 622 VMirror::ioSync() push esi mov [ebp+08h],ebx; this sub esp,024h ; 627 int errors = 0; mov dword ptr [ebp-014h],0h; errors ; 624 PSEC_VRDEV2 sec = new SEC_VRDEV2; call __nw__FUi mov edi,eax ; 633 rc = read(0, 1, sec); push edi ; 624 PSEC_VRDEV2 sec = new SEC_VRDEV2; mov [ebp-010h],edi; sec ; 628 Boolean update = False; /* True: modify sector */ mov byte ptr [ebp-01dh],0h; update ; 633 rc = read(0, 1, sec); mov esi,[ebx] sub esp,0ch mov eax,[esi+01ch] mov ecx,01h xor edx,edx add eax,ebx call dword ptr [esi+018h] add esp,010h ; 634 if( rc != 0 ) test eax,eax jne @BLBL96 ; 636 if( memcmp(sec->sectype, "VRAIDDEVICE2 ", 16) != 0 ) mov eax,edi mov ecx,010h mov edx,offset FLAT:@CBE15 call memcmp test eax,eax jne @BLBL96 ; 638 if( Crc16(sec, sizeof(*sec)-2) != sec->crc ) mov eax,edi mov dx,01feh call Crc16__FPvUs cmp [edi+01feh],ax mov eax,ebx jne @BLBL96 ; 640 if( memcmp(sec->u.s.id, id, sizeof(DEVID)) != 0 ) add eax,08h mov edx,eax mov ecx,06h lea eax,[edi+014h] call memcmp test eax,eax jne @BLBL96 ; 642 if( sec->u.s.type != RDTYPE_MIRROR ) cmp byte ptr [edi+01ah],04h jne @BLBL96 ; 645 update = True; mov byte ptr [ebp-01dh],01h; update ; 647 while( 0 ); @BLBL96: ; 650 if( update == True ) cmp byte ptr [ebp-01dh],01h; update jne @BLBL103 ; 657 sec->timestamp = time(NULL); mov ebx,[ebp-010h]; sec ; 652 Verbose(1, "VMirror", "updating current configuration sector"); mov ecx,offset FLAT:@CBE16 mov edx,offset FLAT:@CBE8 mov eax,01h call Verbose ; 657 sec->timestamp = time(NULL); xor eax,eax call time mov [ebx+010h],eax ; 658 sec->u.s.flags = (UCHAR)(parent != 0 ? 0 : 0x80); mov ecx,[ebp+08h]; this cmp dword ptr [ecx+04h],0h setne dl movzx edx,dl dec edx and edx,080h mov [ebx+01bh],dl ; 659 sec->u.s.children = children; mov ecx,[ecx+018h] mov [ebx+01ch],cx ; 665 ul = sec->u.s.child[0].size; /* drive size = size of any child */ mov ebx,[ebx+02ah] mov [ebp-018h],ebx; ul ; 667 } jmp @BLBL106 @BLBL103: ; 677 memset(sec, 0, sizeof(*sec)); mov ebx,[ebp-010h]; sec ; 672 Verbose(1, "VMirror", "creating new configuration sector"); mov ecx,offset FLAT:@CBE17 mov edx,offset FLAT:@CBE8 mov eax,01h call Verbose ; 677 memset(sec, 0, sizeof(*sec)); mov ecx,0200h xor edx,edx mov eax,ebx call memset ; 678 memcpy(sec->sectype, "VRAIDDEVICE2 ", 16); mov ecx,010h mov edx,offset FLAT:@CBE15 mov eax,ebx call memcpy ; 679 sec->timestamp = time(NULL); xor eax,eax call time mov [ebx+010h],eax ; 681 memcpy(sec->u.s.id, id, sizeof(DEVID)); mov edi,[ebp+08h]; this mov ecx,06h lea edx,[edi+08h] lea eax,[ebx+014h] call memcpy ; 682 sec->u.s.type = RDTYPE_MIRROR; mov byte ptr [ebx+01ah],04h ; 683 sec->u.s.flags = (UCHAR)(parent != 0 ? 0 : 0x80); cmp dword ptr [edi+04h],0h setne cl movzx ecx,cl dec ecx and ecx,080h mov [ebx+01bh],cl ; 685 sec->u.s.children = children; mov ecx,[edi+018h] mov [ebx+01ch],cx ; 691 ul = (ULONG)ULONG_MAX; mov dword ptr [ebp-018h],0ffffffffh; ul ; 692 for( i = 0; i < children; ++i ) cmp dword ptr [edi+018h],0h jle @BLBL106 mov eax,edi mov esi,[ebp-01ch]; __54 or ebx,0ffffffffh xor edi,edi @BLBL110: mov ecx,eax ; 693 ul = min(ul, child[i].rdev->querySize()); movzx edx,di mov eax,dword ptr [ecx+edx*08h+01ch] mov ecx,[eax] mov edx,[ecx+014h] add eax,edx call dword ptr [ecx+010h] mov ecx,eax mov eax,[ebp+08h]; this cmp ecx,ebx jbe @BLBL111 mov esi,ebx jmp @BLBL112 @BLBL111: mov esi,eax movzx ecx,di mov eax,dword ptr [esi+ecx*08h+01ch] mov ecx,[eax] mov edx,[ecx+014h] add eax,edx call dword ptr [ecx+010h] mov ecx,eax mov eax,esi mov esi,ecx @BLBL112: ; 692 for( i = 0; i < children; ++i ) mov ebx,esi ; 693 ul = min(ul, child[i].rdev->querySize()); movzx edi,di inc edi ; 692 for( i = 0; i < children; ++i ) movzx ecx,di cmp [eax+018h],ecx jg @BLBL110 mov [ebp-018h],ebx; ul mov [ebp-01ch],ebx; __54 ; 695 } @BLBL106: mov ecx,[ebp+08h]; this mov eax,[ebp-018h]; ul ; 700 for( i = 0; i < children; ++i ) cmp dword ptr [ecx+018h],0h ; 695 } mov [ecx+011ch],eax ; 700 for( i = 0; i < children; ++i ) jle @BLBL116 mov ebx,[ebp-010h]; sec xor edi,edi @BLBL117: ; 702 child[i].rdev->ioSync(); movzx esi,di lea edx,dword ptr [ecx+esi*08h] ; 703 memcpy(sec->u.s.child[i].id, child[i].rdev->queryID(), sizeof(DEVID)); sal esi,04h ; 702 child[i].rdev->ioSync(); mov eax,[edx+01ch] mov [ebp-024h],edx; @CBE33 mov ecx,[eax] ; 703 memcpy(sec->u.s.child[i].id, child[i].rdev->queryID(), sizeof(DEVID)); add esi,ebx ; 702 child[i].rdev->ioSync(); mov edx,[ecx+054h] add eax,edx call dword ptr [ecx+050h] mov eax,[ebp-024h]; @CBE33 ; 703 memcpy(sec->u.s.child[i].id, child[i].rdev->queryID(), sizeof(DEVID)); mov ecx,06h mov edx,[eax+01ch] add edx,08h lea eax,[esi+01eh] call memcpy mov ecx,[ebp+08h]; this mov edx,[ebp-024h]; @CBE33 ; 704 sec->u.s.child[i].size = size; mov eax,[ecx+011ch] mov [esi+02ah],eax ; 705 if( child[i].valid == True ) cmp byte ptr [edx+020h],01h jne @BLBL118 ; 707 sec->u.s.child[i].flags |= 0x01; or byte ptr [esi+024h],01h ; 708 sec->u.s.child[i].valid = (ULONG)-1; /* better clear field */ mov dword ptr [esi+026h],0ffffffffh ; 709 } jmp @BLBL120 @BLBL118: ; 712 sec->u.s.child[i].valid = 0; /* start from beginning */ mov dword ptr [esi+026h],0h ; 713 sec->u.s.flags |= RDFLAG_BUILDING; or byte ptr [ebx+01bh],01h ; 715 } @BLBL120: ; 700 for( i = 0; i < children; ++i ) movzx edi,di inc edi movzx eax,di cmp [ecx+018h],eax jg @BLBL117 @BLBL116: ; 720 sec->crc = Crc16(sec, SECTOR_SIZE-2); mov ebx,[ebp-010h]; sec mov dx,01feh mov eax,ebx call Crc16__FPvUs mov [ebx+01feh],ax ; 721 rc = write(0, 1, sec); mov eax,[ebp+08h]; this push ebx mov ebx,[eax] sub esp,0ch mov edi,[ebx+024h] mov ecx,01h xor edx,edx add eax,edi call dword ptr [ebx+020h] add esp,010h ; 722 if( rc != 0 ) test eax,eax je @BLBL123 ; 724 Verbose(1, "VMirror::ioSync", "write(0,1,...) - rc %lu, not updated", rc); push eax ; 725 ++errors; inc dword ptr [ebp-014h]; errors ; 724 Verbose(1, "VMirror::ioSync", "write(0,1,...) - rc %lu, not updated", rc); sub esp,0ch mov ecx,offset FLAT:@CBE19 mov edx,offset FLAT:@CBE18 mov eax,01h call Verbose add esp,010h ; 726 } @BLBL123: ; 728 delete sec; mov eax,[ebp-010h]; sec call __dl__FPv ; 729 return errors; mov eax,[ebp-014h]; errors add esp,024h pop esi pop edi pop ebx pop ebp ret ioSync__7VMirrorFv endp ; 568 VMirror::ioChangeID(DEVID newid) public ioChangeID__7VMirrorFPUc ioChangeID__7VMirrorFPUc proc push ebp mov ebp,esp push ebx mov ebx,edx push edi mov edi,eax push esi ; 570 PSEC_VRDEV2 sec = new SEC_VRDEV2; mov eax,0200h ; 568 VMirror::ioChangeID(DEVID newid) sub esp,014h mov [ebp+0ch],ebx; newid ; 570 PSEC_VRDEV2 sec = new SEC_VRDEV2; call __nw__FUi mov esi,eax mov edx,ebx ; 573 memcpy(id, newid, sizeof(DEVID)); /* update object */ mov ecx,06h lea eax,[edi+08h] call memcpy mov eax,edi ; 579 rc = read(0, 1, sec); /* remember: 0 defines ourself */ push esi ; 568 VMirror::ioChangeID(DEVID newid) mov [ebp+08h],edi; this ; 570 PSEC_VRDEV2 sec = new SEC_VRDEV2; mov [ebp-014h],esi; sec ; 579 rc = read(0, 1, sec); /* remember: 0 defines ourself */ mov ecx,01h ; 571 int errors = 0; mov dword ptr [ebp-010h],0h; errors ; 579 rc = read(0, 1, sec); /* remember: 0 defines ourself */ mov ebx,[eax] sub esp,0ch mov edi,[ebx+01ch] xor edx,edx add eax,edi call dword ptr [ebx+018h] add esp,010h ; 580 if( rc != 0 ) test eax,eax je @BLBL87 ; 582 Verbose(1, "VMirror::ioChangeID", "can't read own SEC_VRDEV2 - rc %lu", rc); push eax ; 583 ++errors; mov dword ptr [ebp-010h],01h; errors ; 582 Verbose(1, "VMirror::ioChangeID", "can't read own SEC_VRDEV2 - rc %lu", rc); sub esp,0ch mov ecx,offset FLAT:@CBE12 mov edx,offset FLAT:@CBE14 mov eax,01h call Verbose add esp,010h ; 584 break; jmp @BLBL88 @BLBL87: ; 587 memcpy(sec->u.s.id, newid, sizeof(DEVID)); mov ebx,[ebp-014h]; sec mov edx,[ebp+0ch]; newid mov ecx,06h lea eax,[ebx+014h] call memcpy ; 588 sec->timestamp = time(NULL); /* UTC of change */ xor eax,eax call time mov [ebx+010h],eax ; 589 sec->crc = Crc16(sec, SECTOR_SIZE-2); /* !!! */ mov dx,01feh mov eax,ebx call Crc16__FPvUs mov [ebx+01feh],ax ; 591 rc = write(0, 1, sec); mov eax,[ebp+08h]; this push ebx mov ebx,[eax] sub esp,0ch mov edi,[ebx+024h] mov ecx,01h xor edx,edx add eax,edi call dword ptr [ebx+020h] add esp,010h ; 592 if( rc != 0 ) test eax,eax je @BLBL88 ; 594 Verbose(1, "VMirror::ioChangeID", "can't write own SEC_VRDEV2 - rc %lu", rc); push eax ; 595 ++errors; inc dword ptr [ebp-010h]; errors ; 594 Verbose(1, "VMirror::ioChangeID", "can't write own SEC_VRDEV2 - rc %lu", rc); sub esp,0ch mov ecx,offset FLAT:@CBE13 mov edx,offset FLAT:@CBE14 mov eax,01h call Verbose add esp,010h ; 596 break; @BLBL88: ; 601 delete sec; mov eax,[ebp-014h]; sec call __dl__FPv ; 602 return errors; mov eax,[ebp-010h]; errors add esp,014h pop esi pop edi pop ebx pop ebp ret ioChangeID__7VMirrorFPUc endp ; 501 VMirror::ioRemoveParent() public ioRemoveParent__7VMirrorFv ioRemoveParent__7VMirrorFv proc push ebp mov ebp,esp push ebx mov ebx,eax push edi ; 503 PSEC_VRDEV2 sec = new SEC_VRDEV2; mov eax,0200h ; 501 VMirror::ioRemoveParent() push esi mov [ebp+08h],ebx; this sub esp,014h ; 504 int errors = 0; xor esi,esi ; 503 PSEC_VRDEV2 sec = new SEC_VRDEV2; call __nw__FUi mov edi,eax ; 510 memset(sec, 0, SECTOR_SIZE); mov ecx,0200h xor edx,edx call memset mov eax,ebx ; 511 rc = write(1, 1, sec); push edi ; 503 PSEC_VRDEV2 sec = new SEC_VRDEV2; mov [ebp-014h],edi; sec ; 511 rc = write(1, 1, sec); mov ebx,[eax] sub esp,0ch mov edi,[ebx+024h] mov ecx,01h mov edx,01h add eax,edi call dword ptr [ebx+020h] add esp,010h ; 512 if( rc != 0 ) test eax,eax je @BLBL78 ; 514 Verbose(1, "VMirror::ioRemoveParent", "can't clear parent SEC_VRDEV - rc %lu", rc); push eax mov ecx,offset FLAT:@CBE11 sub esp,0ch mov edx,offset FLAT:@CBE10 mov eax,01h call Verbose ; 515 ++errors; mov esi,01h ; 514 Verbose(1, "VMirror::ioRemoveParent", "can't clear parent SEC_VRDEV - rc %lu", rc); add esp,010h ; 521 do @BLBL78: ; 523 rc = read(0, 1, sec); /* remember: 0 defines ourself */ push dword ptr [ebp-014h]; sec mov eax,[ebp+08h]; this sub esp,0ch mov ebx,[eax] mov ecx,01h mov edi,[ebx+01ch] xor edx,edx add eax,edi call dword ptr [ebx+018h] add esp,010h ; 524 if( rc != 0 ) test eax,eax je @BLBL79 ; 526 Verbose(1, "VMirror::ioRemoveParent", "can't read own SEC_VRDEV2 - rc %lu", rc); push eax mov ecx,offset FLAT:@CBE12 sub esp,0ch mov edx,offset FLAT:@CBE10 mov eax,01h call Verbose ; 527 ++errors; inc esi ; 526 Verbose(1, "VMirror::ioRemoveParent", "can't read own SEC_VRDEV2 - rc %lu", rc); add esp,010h ; 528 break; jmp @BLBL80 @BLBL79: ; 531 sec->u.s.flags |= RDFLAG_HOSTDRIVE; /* no parent means hostdrive */ mov ebx,[ebp-014h]; sec ; 532 sec->timestamp = time(NULL); /* UTC of change */ xor eax,eax ; 531 sec->u.s.flags |= RDFLAG_HOSTDRIVE; /* no parent means hostdrive */ or byte ptr [ebx+01bh],080h ; 532 sec->timestamp = time(NULL); /* UTC of change */ call time mov [ebx+010h],eax ; 533 sec->crc = Crc16(sec, SECTOR_SIZE-2); /* !!! */ mov dx,01feh mov eax,ebx call Crc16__FPvUs mov [ebx+01feh],ax ; 535 rc = write(0, 1, sec); mov eax,[ebp+08h]; this push ebx mov ebx,[eax] sub esp,0ch mov edi,[ebx+024h] mov ecx,01h xor edx,edx add eax,edi call dword ptr [ebx+020h] add esp,010h ; 536 if( rc != 0 ) test eax,eax je @BLBL81 ; 538 Verbose(1, "VMirror::ioRemoveParent", "can't write own SEC_VRDEV2 - rc %lu", rc); push eax mov ecx,offset FLAT:@CBE13 sub esp,0ch mov edx,offset FLAT:@CBE10 mov eax,01h call Verbose ; 539 ++errors; inc esi ; 538 Verbose(1, "VMirror::ioRemoveParent", "can't write own SEC_VRDEV2 - rc %lu", rc); add esp,010h ; 540 break; jmp @BLBL80 @BLBL81: ; 543 parent = NULL; /* none */ mov eax,[ebp+08h]; this mov dword ptr [eax+04h],0h ; 545 while(0); @BLBL80: ; 547 delete sec; mov eax,[ebp-014h]; sec call __dl__FPv ; 548 return errors; add esp,014h mov eax,esi pop esi pop edi pop ebx pop ebp ret ioRemoveParent__7VMirrorFv endp ; 467 VMirror::ioDeleteYourself() public ioDeleteYourself__7VMirrorFv ioDeleteYourself__7VMirrorFv proc push ebx push edi push esi sub esp,0ch mov [esp+01ch],eax; this ; 470 int errors = 0; mov dword ptr [esp+08h],0h; errors ; 474 for( i = 0; i < children; ++i ) cmp dword ptr [eax+018h],0h jle @BLBL70 mov ebx,eax xor esi,esi xor edi,edi @BLBL71: ; 476 errors += child[i].rdev->ioRemoveParent(); lea ecx,dword ptr [ebx+edi*08h] ; 474 for( i = 0; i < children; ++i ) inc edi ; 476 errors += child[i].rdev->ioRemoveParent(); mov eax,[ecx+01ch] mov [esp+04h],ecx; @CBE34 mov ecx,[eax] mov edx,[ecx+044h] add eax,edx call dword ptr [ecx+040h] mov ecx,[esp+04h]; @CBE34 add eax,esi ; 477 child[i].rdev = NULL; mov dword ptr [ecx+01ch],0h ; 474 for( i = 0; i < children; ++i ) cmp [ebx+018h],edi ; 476 errors += child[i].rdev->ioRemoveParent(); mov esi,eax ; 474 for( i = 0; i < children; ++i ) jg @BLBL71 mov [esp+08h],esi; errors @BLBL70: ; 480 return errors; mov eax,[esp+08h]; errors add esp,0ch pop esi pop edi pop ebx ret ioDeleteYourself__7VMirrorFv endp ; 401 VMirror::ioRemoveChild(VRDev * rdev) public ioRemoveChild__7VMirrorFP5VRDev ioRemoveChild__7VMirrorFP5VRDev proc push ebp mov ebp,esp push ebx mov [ebp+0ch],edx; rdev push edi mov [ebp+08h],eax; this push esi sub esp,018h ; 404 int errors = 0; mov dword ptr [ebp-010h],0h; errors ; 405 Boolean found = False; mov byte ptr [ebp-011h],0h; found ; 412 for( i = 0; i < children; ++i ) cmp dword ptr [eax+018h],0h jle @BLBL53 mov esi,eax xor ebx,ebx @BLBL54: ; 414 if( child[i].rdev == rdev ) mov eax,dword ptr [esi+ebx*08h+01ch] cmp [ebp+0ch],eax; rdev jne @BLBL62 ; 418 errors += child[i].rdev->ioRemoveParent(); mov ecx,[eax] ; 419 for( j = i, k = i+1; k < children; ++j, ++k ) lea edi,[ebx+01h] ; 418 errors += child[i].rdev->ioRemoveParent(); mov edx,[ecx+044h] add eax,edx call dword ptr [ecx+040h] add [ebp-010h],eax; errors ; 419 for( j = i, k = i+1; k < children; ++j, ++k ) cmp [esi+018h],edi jle @BLBL56 mov ecx,ebx mov [ebp-018h],ecx; i @BLBL57: ; 421 child[j].rdev = child[k].rdev; lea ebx,dword ptr [esi+edi*08h] lea eax,dword ptr [esi+ecx*08h] mov edx,[ebx+01ch] mov [eax+01ch],edx ; 422 child[j].valid = child[k].valid; mov bl,[ebx+020h] ; 419 for( j = i, k = i+1; k < children; ++j, ++k ) inc edi inc ecx ; 422 child[j].valid = child[k].valid; mov [eax+020h],bl ; 419 for( j = i, k = i+1; k < children; ++j, ++k ) cmp [esi+018h],edi jg @BLBL57 mov ebx,[ebp-018h]; i @BLBL56: ; 424 --children; dec dword ptr [esi+018h] ; 425 found = True; mov byte ptr [ebp-011h],01h; found ; 426 break; jmp @BLBL53 @BLBL62: ; 412 for( i = 0; i < children; ++i ) inc ebx cmp [esi+018h],ebx jg @BLBL54 @BLBL53: ; 429 if( !found ) cmp byte ptr [ebp-011h],0h; found jne @BLBL64 ; 431 Verbose(1, "VMirror", "can't find child to remove!"); mov ecx,offset FLAT:@CBE9 mov edx,offset FLAT:@CBE8 mov eax,01h call Verbose ; 432 ++errors; mov eax,[ebp-010h]; errors inc eax ; 433 break; jmp @BLBL65 @BLBL64: ; 439 errors += ioSync(); mov eax,[ebp+08h]; this mov ebx,[eax] mov ecx,[ebx+054h] add eax,ecx call dword ptr [ebx+050h] add eax,[ebp-010h]; errors ; 441 while(0); @BLBL65: ; 443 return errors; add esp,018h pop esi pop edi pop ebx pop ebp ret ioRemoveChild__7VMirrorFP5VRDev endp ; 295 VMirror::queryIcon() public queryIcon__7VMirrorFv queryIcon__7VMirrorFv proc push ebx ; 297 if( parent != 0 && parent->isValidChild(this) == False ) mov ebx,[eax+04h] ; 295 VMirror::queryIcon() push edi sub esp,08h ; 297 if( parent != 0 && parent->isValidChild(this) == False ) test ebx,ebx je @BLBL36 xchg ebx,eax mov edx,ebx mov ecx,[eax] mov edi,[ecx+0ach] add eax,edi call dword ptr [ecx+0a8h] test al,al mov eax,ebx jne @BLBL36 ; 298 return inv_icon; mov eax,[eax+0124h] add esp,08h pop edi pop ebx ret @BLBL36: ; 299 else if( writable == True ) cmp byte ptr [eax+0120h],01h jne @BLBL38 ; 300 return rw_icon; mov eax,[eax+0128h] add esp,08h pop edi pop ebx ret @BLBL38: ; 302 return ro_icon; mov eax,[eax+012ch] add esp,08h pop edi pop ebx ret queryIcon__7VMirrorFv endp ; 256 char * public allocateDescription__7VMirrorFv allocateDescription__7VMirrorFv proc push ebp mov ebp,esp push ebx mov ebx,eax push edi ; 260 char * descr = new char[80]; mov eax,050h ; 256 char * push esi mov [ebp+08h],ebx; this sub esp,0ch ; 261 int found = 0; mov dword ptr [ebp-014h],0h; found ; 260 char * descr = new char[80]; call __vn__FUi mov [ebp-010h],eax; descr mov eax,ebx ; 263 for( int i = 0; i < children; ++i ) cmp dword ptr [eax+018h],0h jle @BLBL26 xor esi,esi xor edi,edi @BLBL27: ; 264 if( child[i].rdev != 0 && child[i].rdev->isArray() != 0xFF ) mov ebx,dword ptr [eax+edi*08h+01ch] test ebx,ebx je @BLBL29 xchg ebx,esi xchg esi,eax ; 265 ++found; mov ecx,[eax] mov edx,[ecx+064h] add eax,edx call dword ptr [ecx+060h] cmp al,0ffh setne al movzx edx,al mov eax,esi mov ecx,ebx mov esi,edx add esi,ecx @BLBL29: ; 263 for( int i = 0; i < children; ++i ) inc edi cmp [eax+018h],edi jg @BLBL27 mov [ebp-014h],esi; found @BLBL26: ; 266 if( found < children ) mov eax,[ebp+08h]; this mov ebx,[ebp-014h]; found cmp [eax+018h],ebx jle @BLBL32 ; 267 state = Fail; /* always! */ mov byte ptr [eax+0130h],02h @BLBL32: ; 269 sprintf(descr, "RAID 1 (Mirroring, %s)", State2Str[state]); mov ebx,[ebp+08h]; this mov edx,offset FLAT:@CBE5 movzx ecx,byte ptr [ebx+0130h] push dword ptr [ecx*04h+@57State2Str] sub esp,08h mov esi,[ebp-010h]; descr mov eax,esi call _sprintfieee add esp,0ch ; 271 if( hostdrive == True && os2access != -1UL ) cmp byte ptr [ebx+010h],01h jne @BLBL33 cmp dword ptr [ebx+014h],0ffffffffh je @BLBL33 ; 272 sprintf(&descr[strlen(descr)], " (OS/2 Drive %lu)", os2access); mov eax,esi call strlen push dword ptr [ebx+014h] mov ecx,eax sub esp,08h mov eax,esi add eax,ecx mov edx,offset FLAT:@CBE6 call _sprintfieee add esp,0ch @BLBL33: ; 274 sprintf(&descr[strlen(descr)], "\nID %02X%02X%02X%02X%02X%02X %lu MByte", mov esi,[ebp-010h]; descr mov eax,esi call strlen mov ecx,[ebp+08h]; this add eax,esi mov edx,[ecx+011ch] shr edx,01h shr edx,0ah push edx movzx edx,byte ptr [ecx+0dh] push edx movzx edx,byte ptr [ecx+0ch] push edx movzx edx,byte ptr [ecx+0bh] push edx movzx edx,byte ptr [ecx+0ah] push edx movzx edx,byte ptr [ecx+09h] push edx movzx ecx,byte ptr [ecx+08h] push ecx mov edx,offset FLAT:@CBE7 sub esp,08h call _sprintfieee ; 276 return descr; add esp,030h ; 274 sprintf(&descr[strlen(descr)], "\nID %02X%02X%02X%02X%02X%02X %lu MByte", mov eax,esi ; 276 return descr; pop esi pop edi pop ebx pop ebp ret allocateDescription__7VMirrorFv endp ; 295 }; __dt__20VDriveWithRedundancyFv proc push ebp xor ecx,ecx mov ebp,esp push offset FLAT: _Exception_CPP push fs:[0h] mov fs:[0h],esp push 0ffffffe0h sub esp,018h mov [ebp-024h],edx; @CBE35 push ebx mov ebx,eax push edi xor edx,edx push esi sub esp,0ch mov dword ptr [ebp-020h],0h; __es mov dword ptr [ebp-018h],offset FLAT:@f3__fsm_tab62; __es mov [ebp-014h],ebx; __es mov dword ptr [ebp-010h],0h; __es mov dword ptr [ebx],offset FLAT:@de__vft20VDriveWithRedundancy5VDisk mov dword ptr [ebp-020h],0h; __es call __dt__7VRDriveFv mov edx,[ebp-024h]; @CBE35 add esp,0ch mov eax,ebx test dl,01h je @BLBL156 sub esp,04h call __dl__FPv mov eax,ebx add esp,04h @BLBL156: pop esi pop edi pop ebx add esp,01ch pop fs:[0h] leave ret __dt__20VDriveWithRedundancyFv endp ; 143 VMirror::~VMirror() public __dt__7VMirrorFv __dt__7VMirrorFv proc push ebp mov ebp,esp push offset FLAT: _Exception_CPP push fs:[0h] mov fs:[0h],esp push 0ffffffe0h sub esp,018h ; 144 { mov dword ptr [ebp-020h],0h; __es ; 143 VMirror::~VMirror() push ebx mov ebx,eax push edi mov [ebp-024h],edx; @CBE36 push esi mov [ebp+08h],ebx; this ; 144 { mov dword ptr [ebp-018h],offset FLAT:@36__fsm_tab; __es mov [ebp-014h],ebx; __es mov dword ptr [ebp-010h],0h; __es ; 143 VMirror::~VMirror() mov dword ptr [ebp-020h],01h; __es ; 145 WinDestroyPointer(rw_icon); push dword ptr [ebx+0128h] ; 143 VMirror::~VMirror() mov dword ptr [ebx],offset FLAT:__vft7VMirror5VDisk ; 145 WinDestroyPointer(rw_icon); call WinDestroyPointer add esp,04h ; 146 WinDestroyPointer(ro_icon); push dword ptr [ebx+012ch] call WinDestroyPointer sub esp,08h ; 147 } mov dword ptr [ebp-020h],0h; __es xor ecx,ecx xor edx,edx mov eax,ebx call __dt__20VDriveWithRedundancyFv mov edx,[ebp-024h]; @CBE36 add esp,0ch mov eax,ebx test dl,01h je @BLBL6 sub esp,04h call __dl__FPv add esp,04h @BLBL6: pop esi mov eax,[ebp+08h]; this pop edi pop ebx add esp,01ch pop fs:[0h] leave ret __dt__7VMirrorFv endp ; 295 }; __ct__20VDriveWithRedundancyFv proc push ebp mov ebp,esp push offset FLAT: _Exception_CPP push fs:[0h] mov fs:[0h],esp push 0ffffffe0h sub esp,014h mov dword ptr [ebp-020h],0h; __es push ebx mov dword ptr [ebp-018h],offset FLAT:@e0__fsm_tab60; __es push edi mov ebx,eax push esi sub esp,04h mov [ebp-014h],ebx; __es mov dword ptr [ebp-010h],0h; __es call __ct__7VRDriveFv add esp,04h mov eax,ebx pop esi mov dword ptr [ebp-020h],01h; __es pop edi mov dword ptr [eax],offset FLAT:@de__vft20VDriveWithRedundancy5VDisk pop ebx add esp,018h pop fs:[0h] leave ret __ct__20VDriveWithRedundancyFv endp ; 112 VMirror::VMirror(DEVID drive_id,int nchd) public __ct__7VMirrorFPUci __ct__7VMirrorFPUci proc push ebp mov ebp,esp push offset FLAT: _Exception_CPP push fs:[0h] mov fs:[0h],esp push 0ffffffe0h sub esp,014h ; 113 { mov dword ptr [ebp-020h],0h; __es ; 112 VMirror::VMirror(DEVID drive_id,int nchd) push ebx ; 113 { mov dword ptr [ebp-018h],offset FLAT:@1f__fsm_tab; __es ; 112 VMirror::VMirror(DEVID drive_id,int nchd) push edi mov ebx,eax push esi mov edi,edx ; 112 VMirror::VMirror(DEVID drive_id,int nchd) sub esp,04h ; 113 { mov [ebp-014h],ebx; __es mov dword ptr [ebp-010h],0h; __es ; 112 VMirror::VMirror(DEVID drive_id,int nchd) call __ct__20VDriveWithRedundancyFv sub esp,08h mov dword ptr [ebp-020h],01h; __es mov edx,edi mov dword ptr [ebx],offset FLAT:__vft7VMirror5VDisk ; 114 parent = NULL; mov dword ptr [ebx+04h],0h ; 120 memcpy(id, drive_id, sizeof(DEVID)); mov ecx,06h ; 115 children = 0; mov dword ptr [ebx+018h],0h ; 116 size = -1ul; mov dword ptr [ebx+011ch],0ffffffffh ; 120 memcpy(id, drive_id, sizeof(DEVID)); lea eax,[ebx+08h] ; 117 hostdrive = False; mov byte ptr [ebx+010h],0h ; 118 writable = True; mov byte ptr [ebx+0120h],01h ; 119 state = Ready; mov byte ptr [ebx+0130h],0h ; 120 memcpy(id, drive_id, sizeof(DEVID)); call memcpy add esp,0ch ; 122 inv_icon = WinLoadPointer(HWND_DESKTOP, NULLHANDLE, ICO_INVCHILDARRAY); push 0199h push 0h push 01h call WinLoadPointer add esp,0ch mov [ebx+0124h],eax ; 123 rw_icon = WinLoadPointer(HWND_DESKTOP, NULLHANDLE, ICO_RAIDDRIVE); push 0194h push 0h push 01h call WinLoadPointer add esp,0ch mov [ebx+0128h],eax ; 124 ro_icon = WinLoadPointer(HWND_DESKTOP, NULLHANDLE, ICO_DISABLEDARRAY); push 0197h push 0h push 01h call WinLoadPointer add esp,0ch mov ecx,eax ; 125 } pop esi ; 124 ro_icon = WinLoadPointer(HWND_DESKTOP, NULLHANDLE, ICO_DISABLEDARRAY); mov eax,ebx ; 125 } pop edi ; 124 ro_icon = WinLoadPointer(HWND_DESKTOP, NULLHANDLE, ICO_DISABLEDARRAY); mov [eax+012ch],ecx ; 125 } pop ebx add esp,018h pop fs:[0h] leave ret __ct__7VMirrorFPUci endp ; 123 virtual ~VRDev() {} // see Stroustroup pg216!!! __dt__5VRDevFv proc push ebx mov dword ptr [eax],offset FLAT:@13c__vft5VRDev5VDisk sub esp,04h test dl,01h je @BLBL184 mov ebx,eax call __dl__FPv mov eax,ebx @BLBL184: add esp,04h pop ebx ret __dt__5VRDevFv endp ; 279 }; __dt__7VRDriveFv proc push ebp mov ebp,esp push offset FLAT: _Exception_CPP push fs:[0h] mov fs:[0h],esp push 0ffffffe0h sub esp,014h mov dword ptr [ebp-020h],0h; __es push ebx mov dword ptr [ebp-018h],offset FLAT:@129__fsm_tab66; __es push edi mov [ebp-014h],eax; __es mov dword ptr [ebp-010h],0h; __es push esi mov dword ptr [eax],offset FLAT:@114__vft7VRDrive5VDisk mov dword ptr [ebp-020h],0h; __es ; 123 virtual ~VRDev() {} // see Stroustroup pg216!!! test dl,01h mov dword ptr [eax],offset FLAT:@13c__vft5VRDev5VDisk je @BLBL178 mov ebx,eax sub esp,04h call __dl__FPv mov eax,ebx add esp,04h @BLBL178: pop esi pop edi pop ebx add esp,018h pop fs:[0h] leave ret __dt__7VRDriveFv endp CODE32 ends EH_CODE segment __dftbdt__5VRDevFv proc mov dword ptr [eax],offset FLAT:@13c__vft5VRDev5VDisk ret __dftbdt__5VRDevFv endp ; 279 }; EH_CODE ends CODE32 segment __ct__7VRDriveFv proc push ebp mov ebp,esp push offset FLAT: _Exception_CPP push fs:[0h] mov fs:[0h],esp push 0ffffffe0h sub esp,014h mov dword ptr [ebp-020h],0h; __es push ebx mov dword ptr [ebp-018h],offset FLAT:@116__fsm_tab64; __es push edi mov [ebp-014h],eax; __es push esi mov dword ptr [ebp-010h],0h; __es ; 279 }; pop esi ; 80 }; mov dword ptr [eax],offset FLAT:@13c__vft5VRDev5VDisk ; 279 }; pop edi ; 143 }; mov dword ptr [ebp-020h],01h; __es ; 279 }; pop ebx ; 143 }; mov dword ptr [eax],offset FLAT:@114__vft7VRDrive5VDisk ; 279 }; add esp,018h pop fs:[0h] leave ret __ct__7VRDriveFv endp ; 278 virtual Boolean isValidChild(VRDev * child) { return True; } isValidChild__7VRDriveFP5VRDev proc mov eax,01h ret isValidChild__7VRDriveFP5VRDev endp ; 277 virtual Boolean isValidChild(int which) { return True; } isValidChild__7VRDriveFi proc mov eax,01h ret isValidChild__7VRDriveFi endp CODE32 ends EH_CODE segment __dftbdt__7VRDriveFv proc xor ecx,ecx sub esp,0ch xor edx,edx call __dt__7VRDriveFv add esp,0ch ret __dftbdt__7VRDriveFv endp __dftbdt__20VDriveWithRedundancyFv proc xor ecx,ecx sub esp,0ch xor edx,edx call __dt__20VDriveWithRedundancyFv add esp,0ch ret __dftbdt__20VDriveWithRedundancyFv endp ; 94 Boolean isWritable() { return writable; } EH_CODE ends CODE32 segment isWritable__7VMirrorFv proc movzx eax,byte ptr [eax+0120h] ret isWritable__7VMirrorFv endp ; 93 void forceUnwritable() { writable = False; } forceUnwritable__7VMirrorFv proc mov byte ptr [eax+0120h],0h ret forceUnwritable__7VMirrorFv endp ; 82 Boolean isHostdrive() { return hostdrive; } isHostdrive__7VMirrorFv proc movzx eax,byte ptr [eax+010h] ret isHostdrive__7VMirrorFv endp ; 81 UCHAR isArray() { return RDTYPE_MIRROR; } isArray__7VMirrorFv proc mov eax,04h ret isArray__7VMirrorFv endp ; 137 virtual VOS2Disk * queryWhere() { return NULL; } queryWhere__5VRDevFv proc xor eax,eax ret queryWhere__5VRDevFv endp ; 351 public addChild__7VMirrorFP5VRDev7BooleanT2 addChild__7VMirrorFP5VRDev7BooleanT2 proc push ebx mov ebx,eax sub esp,0ch ; 357 mov eax,[ebx+018h] mov dword ptr [ebx+eax*08h+01ch],edx ; 358 mov eax,[ebx+018h] mov byte ptr [ebx+eax*08h+021h],cl mov [esp+08h],ecx; @CBE41 ; 359 mov eax,[ebx+018h] mov cl,[esp+020h]; datav mov byte ptr [ebx+eax*08h+020h],cl ; 360 ; 361 ; 362 ; 363 ; 364 mov ecx,[edx] ; 125 void setParent(VRDrive * newparent) { parent = newparent; } mov [edx+04h],ebx ; 364 ULONG childsize = newchild->querySize(); mov eax,[ecx+014h] add eax,edx mov [esp+04h],edx; @CBE42 call dword ptr [ecx+010h] xchg ebx,eax mov edx,[esp+04h]; @CBE42 mov ecx,[esp+08h]; @CBE41 ; 365 if( size > childsize ) cmp [eax+011ch],ebx jbe @BLBL44 ; 366 size = childsize; mov [eax+011ch],ebx @BLBL44: mov ebx,eax mov [esp+04h],ecx; @CBE42 ; 367 if( newchild->isWritable() == False ) mov ecx,[edx] mov eax,[ecx+0ch] add edx,eax mov eax,edx call dword ptr [ecx+08h] test al,al mov ecx,[esp+04h]; @CBE42 mov eax,ebx jne @BLBL45 ; 368 writable = False; ; 368 /* oups, it isn't 'changable' */ mov byte ptr [eax+0120h],0h @BLBL45: ; 370 if( state == Ready ) cmp byte ptr [eax+0130h],0h jne @BLBL46 ; 372 if( !cfgv ) test cl,cl jne @BLBL47 ; 373 state = Build; mov byte ptr [eax+0130h],01h jmp @BLBL46 @BLBL47: ; 374 else if( !datav ) cmp byte ptr [esp+020h],0h; datav jne @BLBL46 ; 375 state = Fail; mov byte ptr [eax+0130h],02h ; 376 } @BLBL46: ; 377 ++children; inc dword ptr [eax+018h] ; 378 } add esp,0ch pop ebx ret addChild__7VMirrorFP5VRDev7BooleanT2 endp CODE32 ends end
source/streams/machine-apple-darwin/s-naiona.adb
ytomino/drake
33
3194
with Ada.Exception_Identification.From_Here; with System.Address_To_Named_Access_Conversions; with System.Zero_Terminated_Strings; with C.fcntl; with C.stdlib; with C.sys.param; package body System.Native_IO.Names is use Ada.Exception_Identification.From_Here; use type C.char_ptr; use type C.size_t; function strlen (s : not null access constant C.char) return C.size_t with Import, Convention => Intrinsic, External_Name => "__builtin_strlen"; package Name_Pointer_Conv is new Address_To_Named_Access_Conversions (Name_Character, Name_Pointer); -- implementation procedure Open_Ordinary ( Method : Open_Method; Handle : aliased out Handle_Type; Mode : File_Mode; Name : String; Out_Name : aliased out Name_Pointer; Form : Packed_Form) is C_Name : aliased Name_String ( 0 .. Name'Length * Zero_Terminated_Strings.Expanding); begin Zero_Terminated_Strings.To_C (Name, C_Name (0)'Access); Open_Ordinary (Method, Handle, Mode, C_Name (0)'Unchecked_Access, Form); Out_Name := null; end Open_Ordinary; procedure Get_Full_Name ( Handle : Handle_Type; Has_Full_Name : in out Boolean; Name : in out Name_Pointer; Is_Standard : Boolean; Raise_On_Error : Boolean) is Path : aliased C.char_array (0 .. C.sys.param.MAXPATHLEN - 1); begin if C.fcntl.fcntl ( Handle, C.fcntl.F_GETPATH, Path (0)'Access) < 0 then -- Failed, keep Has_Full_Name and Name. if Raise_On_Error then Raise_Exception (Use_Error'Identity); end if; else declare New_Name_Length : constant C.size_t := strlen (Path (0)'Access); New_Name : constant Name_Pointer := Name_Pointer_Conv.To_Pointer ( Address (C.stdlib.malloc (New_Name_Length + 1))); -- NUL begin if New_Name = null then -- Failed, keep Has_Full_Name and Name. if Raise_On_Error then raise Storage_Error; end if; return; -- error end if; declare New_Name_All : Name_String (0 .. New_Name_Length); for New_Name_All'Address use Name_Pointer_Conv.To_Address (New_Name); begin New_Name_All := Path (0 .. New_Name_Length); end; if not Is_Standard then Free (Name); -- External or External_No_Close end if; Name := New_Name; end; Has_Full_Name := True; end if; end Get_Full_Name; end System.Native_IO.Names;
oeis/042/A042993.asm
neoneye/loda-programs
11
27759
; A042993: Primes congruent to {0, 2, 3} mod 5. ; Submitted by <NAME> ; 2,3,5,7,13,17,23,37,43,47,53,67,73,83,97,103,107,113,127,137,157,163,167,173,193,197,223,227,233,257,263,277,283,293,307,313,317,337,347,353,367,373,383,397,433,443,457,463,467,487,503,523,547,557,563,577,587,593,607,613,617,643,647,653,673,677,683,727,733,743,757,773,787,797,823,827,853,857,863,877,883,887,907,937,947,953,967,977,983,997,1013,1033,1063,1087,1093,1097,1103,1117,1123,1153 mov $2,332202 lpb $2 mov $3,$6 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,5 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 sub $2,18 add $5,$1 div $5,4 mov $6,$5 lpe mov $0,$5 add $0,1
src/toggle/toggle-fn.applescript
JinnLynn/alfred-workflows
76
323
<reponame>JinnLynn/alfred-workflows -- FROM: http://www.alfredforum.com/topic/1849-toggle-fn-key-behavior/ tell application "System Preferences" set current pane to pane id "com.apple.preference.keyboard" tell application "System Events" tell process "System Preferences" click checkbox "Use all F1, F2, etc. keys as standard function keys" of tab group 1 of window "Keyboard" end tell end tell quit end tell
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_432_893.asm
ljhsiun2/medusa
9
176363
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r15 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x8977, %rbp clflush (%rbp) nop nop nop cmp $28153, %r10 movl $0x61626364, (%rbp) nop sub %r9, %r9 lea addresses_WT_ht+0x10f17, %rdx nop nop dec %r12 mov $0x6162636465666768, %r10 movq %r10, %xmm7 movups %xmm7, (%rdx) nop sub %rbp, %rbp lea addresses_UC_ht+0xd957, %rsi lea addresses_WC_ht+0x2d7, %rdi nop nop nop nop add $8057, %r9 mov $34, %rcx rep movsb nop nop nop nop nop xor $59438, %rsi lea addresses_D_ht+0x16477, %r12 nop nop nop nop add $21335, %rcx mov (%r12), %r9 nop xor $7224, %r9 lea addresses_UC_ht+0x13157, %r9 nop inc %rdi movb (%r9), %r15b nop nop nop add %r12, %r12 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r9 push %rbp push %rdi push %rsi // Store mov $0x467e3f0000000957, %r9 nop and $31273, %r11 movb $0x51, (%r9) nop inc %r11 // Load mov $0x7b120b0000000337, %r12 nop nop dec %r10 movb (%r12), %r11b nop and %rbp, %rbp // Faulty Load lea addresses_US+0x14157, %r12 nop sub %r11, %r11 movups (%r12), %xmm7 vpextrq $0, %xmm7, %rdi lea oracles, %r12 and $0xff, %rdi shlq $12, %rdi mov (%r12,%rdi,1), %rdi pop %rsi pop %rdi pop %rbp pop %r9 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_US', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_NC', 'same': False, 'size': 1, 'congruent': 8, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'src': {'type': 'addresses_NC', 'same': False, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_US', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 4, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'00': 432} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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/main/java/org/shan/grammar/Simple.g4
Kigamba/Simple-Intellij-Plugin
12
1377
<reponame>Kigamba/Simple-Intellij-Plugin<filename>src/main/java/org/shan/grammar/Simple.g4<gh_stars>10-100 grammar Simple; //************************* //****** Lexer rules ****** //************************* IDENTIFIER : [A-Za-z] [A-Za-z0-9]* ; WHITESPACE : [ \n] -> skip ; //************************* //***** Parser rules ****** //************************* simpleFile : definition* ; definition : functionDefinition ; functionDefinition : 'function' IDENTIFIER '(' ')' ('returns' type)? '{' functionBody '}' ; functionBody : statement* ; statement : variableDefinition | assignmentStatement | functionInvocation ; variableDefinition : type IDENTIFIER (';' | ('=' functionInvocation)?) ; type : 'int' | 'string' ; assignmentStatement : IDENTIFIER '=' functionInvocation ; functionInvocation : IDENTIFIER '(' ')' ';' ;
src/third_party/nasm/test/br2003451.asm
Mr-Sheep/naiveproxy
2,219
82490
;Testname=optimized; Arguments=-Ox -fbin -obr2003451.bin; Files=stdout stderr br2003451.bin cpu 8086 org 0 ; MOV r/m16,imm16 ; (imm16 given as number) mov word [bx], 10h ; MOV r/m16,imm16 ; (imm16 given as label) mov word [bx], label align 10h ; This label is at address 10h label:
MSDOS/Virus.MSDOS.Unknown.timer.asm
fengjixuchui/Family
3
104928
PAGE ,132 title \asm_sour\timer.asm HIGH ACCURACY TIMER subttl <NAME> .MODEL MEDIUM name timer .cref .lall ; ; High resolution timer, returns a 32 bit high resolution ; value which is the amount of elapsed time since the function ; was last called. The counts are 838.2ns each (1.19318 MHz) ; time_int() must be called first to set the timer chip to ; the proper mode. ; Counter 0 is changed in time_int() and the data from this ; counter is used in elaptime() so it must not be changed ; between calls. ; There should not be any interference in system timing ; max of 55 msec error introduced by time_int() into absolute ; system time. ; MEDIUM memory model/microsoft 5.00 ; FAR PROGRAM, NEAR DATA ; cs: is code segment ; es: and ds: are data segment ; ss: within data segment ; ax: for integer return ; dx:ax: for long return .DATA ; these data items located in the DSEG and can be accessed ; as near by C programs PUBLIC SYS_HI PUBLIC SYS_LOW PUBLIC TIMER_COUNT SYS_HI DW ? ;TIMER_HI VALUE FOR PREVIOUS CALL SYS_LOW DW ? ;TIMER_LOW VALUE FOR PREVIOUS CALL TIMER_COUNT DW ? ;8253 TIMER COUNT FOR PREVIOUS CALL ; NO ARGUMENTS PASSED to either function TIMER_MODE EQU 043H TIMER0 EQU 040H BIOS SEGMENT AT 040H ORG 06CH TIMER_LOW DW ? TIMER_HI DW ? BIOS ENDS PAGE .CODE PUBLIC _time_int _time_int PROC ; void far time_int(void); ; ; SET THE TIMER MODE FOR PULSE OUTPUT, RATHER THAN SQUARE ; MODE AS SET BY DOS MOV AL,00110100B ;CTR 0, LSB THEN MSB ;MODE 2, BINARY OUT TIMER_MODE,AL ;MODE REGISTER FOR 8253 SUB AX,AX ;SET 0, RESULT IN MAX COUNT OUT TIMER0,AL OUT TIMER0,AL RET _time_int ENDP PUBLIC _elaptime _elaptime PROC ; long int far elaptime(void); ; ; DETERMINE ELAPSED TIME SINCE LAST CALL ; RETURNS 32 BIT (LONG) VALUE WHICH IS ; NEW - TIMER_HI:TIMER_LO:TIMER_COUNT MINUS ; OLD - TIMER_HI:TIMER_LO:TIMER_COUNT ; ASSUMPTION MADE THAT 32 BITS WILL NOT OVERFLOW!!!! PUSH ES MOV AX,BIOS MOV ES,AX ASSUME ES:BIOS MOV AL,0 ;PREPARE TO LATCH COUNTER OUT TIMER_MODE,AL ;LATCH 8253 PUSHF ;SAVE INTERRUPT STATE CLI ;TURN INTERRUPT OFF WHILE READING CODE IN AL,TIMER0 MOV DL,AL IN AL,TIMER0 MOV DH,AL ;DX HAS NEW CHIP COUNT(count down value) MOV BX,ES:TIMER_LOW ;BX HAS SYSTEM TIME LOW WORD MOV AX,ES:TIMER_HI ;AX HAS SYSTEM TIME HIGH WORD ; NOW HAVE A 48 BIT WORD AX:BX:DX FOR THE PRESENT TIME MOV CX,TIMER_COUNT ;SWAP AND SUBTRACT MOV TIMER_COUNT,DX SUB CX,DX ; CX: HAS LOW 16 BITS OF DIFFERENCE MOV DX,SYS_LOW ;SWAP AND SUBTRACT MOV SYS_LOW,BX SBB BX,DX ; BX: HAS MID 16 BITS OF DIFFERENCE MOV DX,SYS_HI ;SWAP AND SUBTRACT MOV SYS_HI,AX SBB AX,DX ; AX: HAS HIGH 16 BITS OF DIFFERENCE ; NOW HAVE A 48 BIT WORD THAT IS DIFFERENCE ; ONLY PASS BACK 32 BITS AT PRESENT ; AS DX:AX MOV AX,CX ;LOW 16 BITS MOV DX,BX ;MID 16 BITS POPF POP ES RET _elaptime ENDP END 
tools-src/gnu/gcc/gcc/ada/sem_attr.ads
enfoTek/tomato.linksys.e2000.nvram-mod
80
16015
<filename>tools-src/gnu/gcc/gcc/ada/sem_attr.ads<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S E M _ A T T R -- -- -- -- S p e c -- -- -- -- $Revision$ -- -- -- Copyright (C) 1992-1999, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, -- -- MA 02111-1307, USA. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Attribute handling is isolated in a separate package to ease the addition -- of implementation defined attributes. Logically this processing belongs -- in chapter 4. See Sem_Ch4 for a description of the relation of the -- Analyze and Resolve routines for expression components. -- This spec also documents all GNAT implementation defined pragmas with Snames; use Snames; with Types; use Types; package Sem_Attr is type Attribute_Class_Array is array (Attribute_Id) of Boolean; -- Type used to build attribute classification flag arrays ----------------------------------------- -- Implementation Dependent Attributes -- ----------------------------------------- -- This section describes the implementation dependent attributes -- provided in GNAT, as well as constructing an array of flags -- indicating which attributes these are. Attribute_Impl_Def : Attribute_Class_Array := Attribute_Class_Array'( ------------------ -- Abort_Signal -- ------------------ Attribute_Abort_Signal => True, -- -- Standard'Abort_Signal (Standard is the only allowed prefix) -- provides the entity for the special exception used to signal -- task abort or asynchronous transfer of control. Normally this -- attribute should only be used in the tasking runtime (it is -- highly peculiar, and completely outside the normal semantics -- of Ada, for a user program to intercept the abort exception). ------------------ -- Address_Size -- ------------------ Attribute_Address_Size => True, -- -- Standard'Address_Size (Standard is the only allowed prefix) is -- a static constant giving the number of bits in an Address. It -- is used primarily for constructing the definition of Memory_Size -- in package Standard, but may be freely used in user programs. -- This is a static attribute. --------------- -- Asm_Input -- --------------- Attribute_Asm_Input => True, -- -- Used only in conjunction with the Asm and Asm_Volatile subprograms -- in package Machine_Code to construct machine instructions. See -- documentation in package Machine_Code in file s-maccod.ads. ---------------- -- Asm_Output -- ---------------- Attribute_Asm_Output => True, -- -- Used only in conjunction with the Asm and Asm_Volatile subprograms -- in package Machine_Code to construct machine instructions. See -- documentation in package Machine_Code in file s-maccod.ads. --------------- -- AST_Entry -- --------------- Attribute_AST_Entry => True, -- -- E'Ast_Entry, where E is a task entry, yields a value of the -- predefined type System.DEC.AST_Handler, that enables the given -- entry to be called when an AST occurs. If the name to which the -- attribute applies has not been specified with the pragma AST_Entry, -- the attribute returns the value No_Ast_Handler, and no AST occurs. -- If the entry is for a task that is not callable (T'Callable False), -- the exception program error is raised. If an AST occurs for an -- entry of a task that is terminated, the program is erroneous. -- -- The attribute AST_Entry is supported only in OpenVMS versions -- of GNAT. It will be rejected as illegal in other GNAT versions. --------- -- Bit -- --------- Attribute_Bit => True, -- -- Obj'Bit, where Obj is any object, yields the bit offset within -- the storage unit (byte) that contains the first bit of storage -- allocated for the object. The value of this attribute is of the -- type Universal_Integer, and is always a non-negative number not -- exceeding the value of System.Storage_Unit. -- -- For an object that is a variable or a constant allocated in a -- register, the value is zero. (The use of this attribute does not -- force the allocation of a variable to memory). -- -- For an object that is a formal parameter, this attribute applies -- to either the matching actual parameter or to a copy of the -- matching actual parameter. -- -- For an access object the value is zero. Note that Obj.all'Bit is -- subject to an Access_Check for the designated object. Similarly -- for a record component X.C'Bit is subject to a discriminant check -- and X(I).Bit and X(I1..I2)'Bit are subject to index checks. -- -- This attribute is designed to be compatible with the DEC Ada -- definition and implementation of the Bit attribute. ------------------ -- Code_Address -- ------------------ Attribute_Code_Address => True, -- -- subp'Code_Address, where subp is a subprogram entity, gives the -- address of the first generated instruction for a subprogram. This -- is often, but not always the same as the 'Address value, which is -- the address to be used in a call. The differences occur in the case -- of a nested procedure (where Address yields the address of the -- trampoline code used to load the static link), and on some systems -- which use procedure descriptors (in which case Address yields the -- address of the descriptor). ----------------------- -- Default_Bit_Order -- ----------------------- Attribute_Default_Bit_Order => True, -- -- Standard'Default_Bit_Order (Standard is the only permissible prefix), -- provides the value System.Default_Bit_Order as a Pos value (0 for -- High_Order_First, 1 for Low_Order_First). This is used to construct -- the definition of Default_Bit_Order in package System. This is a -- static attribute. --------------- -- Elab_Body -- --------------- Attribute_Elab_Body => True, -- -- This attribute can only be applied to a program unit name. It -- returns the entity for the corresponding elaboration procedure -- for elaborating the body of the referenced unit. This is used -- in the main generated elaboration procedure by the binder, and -- is not normally used in any other context, but there may be -- specialized situations in which it is useful to be able to -- call this elaboration procedure from Ada code, e.g. if it -- is necessary to do selective reelaboration to fix some error. --------------- -- Elab_Spec -- --------------- Attribute_Elab_Spec => True, -- -- This attribute can only be applied to a program unit name. It -- returns the entity for the corresponding elaboration procedure -- for elaborating the spec of the referenced unit. This is used -- in the main generated elaboration procedure by the binder, and -- is not normally used in any other context, but there may be -- specialized situations in which it is useful to be able to -- call this elaboration procedure from Ada code, e.g. if it -- is necessary to do selective reelaboration to fix some error. ---------------- -- Elaborated -- ---------------- Attribute_Elaborated => True, -- -- Lunit'Elaborated, where Lunit is a library unit, yields a boolean -- value indicating whether or not the body of the designated library -- unit has been elaborated yet. -------------- -- Enum_Rep -- -------------- Attribute_Enum_Rep => True, -- -- For every enumeration subtype S, S'Enum_Rep denotes a function -- with the following specification: -- -- function S'Enum_Rep (Arg : S'Base) return universal_integer; -- -- The function returns the representation value for the given -- enumeration value. This will be equal to the 'Pos value in the -- absence of an enumeration representation clause. This is a static -- attribute (i.e. the result is static if the argument is static). ----------------- -- Fixed_Value -- ----------------- Attribute_Fixed_Value => True, -- -- For every fixed-point type S, S'Fixed_Value denotes a function -- with the following specification: -- -- function S'Fixed_Value (Arg : universal_integer) return S; -- -- The value returned is the fixed-point value V such that -- -- V = Arg * S'Small -- -- The effect is thus equivalent to first converting the argument -- to the integer type used to represent S, and then doing an -- unchecked conversion to the fixed-point type. This attribute is -- primarily intended for use in implementation of the input-output -- functions for fixed-point values. ----------------------- -- Has_Discriminants -- ----------------------- Attribute_Has_Discriminants => True, -- -- Gtyp'Has_Discriminants, where Gtyp is a generic formal type, yields -- a Boolean value indicating whether or not the actual instantiation -- type has discriminants. --------- -- Img -- --------- Attribute_Img => True, -- -- The 'Img function is defined for any prefix, P, that denotes an -- object of scalar type T. P'Img is equivalent to T'Image (P). This -- is convenient for debugging. For example: -- -- Put_Line ("X = " & X'Img); -- -- has the same meaning as the more verbose: -- -- Put_Line ("X = " & Temperature_Type'Image (X)); -- -- where Temperature_Type is the subtype of the object X. ------------------- -- Integer_Value -- ------------------- Attribute_Integer_Value => True, -- -- For every integer type S, S'Integer_Value denotes a function -- with the following specification: -- -- function S'Integer_Value (Arg : universal_fixed) return S; -- -- The value returned is the integer value V, such that -- -- Arg = V * fixed-type'Small -- -- The effect is thus equivalent to first doing an unchecked convert -- from the fixed-point type to its corresponding implementation type, -- and then converting the result to the target integer type. This -- attribute is primarily intended for use in implementation of the -- standard input-output functions for fixed-point values. ------------------ -- Machine_Size -- ------------------ Attribute_Machine_Size => True, -- -- This attribute is identical to the Object_Size attribute. It is -- provided for compatibility with the DEC attribute of this name. ---------------------------- -- Max_Interrupt_Priority -- ---------------------------- Attribute_Max_Interrupt_Priority => True, -- -- Standard'Max_Interrupt_Priority (Standard is the only permissible -- prefix), provides the value System.Max_Interrupt_Priority, and is -- intended primarily for constructing this definition in package -- System (see note above in Default_Bit_Order description}. This -- is a static attribute. ------------------ -- Max_Priority -- ------------------ Attribute_Max_Priority => True, -- -- Standard'Max_Priority (Standard is the only permissible prefix) -- provides the value System.Max_Priority, and is intended primarily -- for constructing this definition in package System (see note above -- in Default_Bit_Order description). This is a static attribute. ----------------------- -- Maximum_Alignment -- ----------------------- Attribute_Maximum_Alignment => True, -- -- Standard'Maximum_Alignment (Standard is the only permissible prefix) -- provides the maximum useful alignment value for the target. This -- is a static value that can be used to specify the alignment for an -- object, guaranteeing that it is properly aligned in all cases. The -- time this is useful is when an external object is imported and its -- alignment requirements are unknown. This is a static attribute. -------------------- -- Mechanism_Code -- -------------------- Attribute_Mechanism_Code => True, -- -- function'Mechanism_Code yeilds an integer code for the mechanism -- used for the result of function, and subprogram'Mechanism_Code (n) -- yields the mechanism used for formal parameter number n (a static -- integer value, 1 = first parameter). The code returned is: -- -- 1 = by copy (value) -- 2 = by reference -- 3 = by descriptor (default descriptor type) -- 4 = by descriptor (UBS unaligned bit string) -- 5 = by descriptor (UBSB aligned bit string with arbitrary bounds) -- 6 = by descriptor (UBA unaligned bit array) -- 7 = by descriptor (S string, also scalar access type parameter) -- 8 = by descriptor (SB string with arbitrary bounds) -- 9 = by descriptor (A contiguous array) -- 10 = by descriptor (NCA non-contiguous array) -------------------- -- Null_Parameter -- -------------------- Attribute_Null_Parameter => True, -- -- A reference T'Null_Parameter denotes an (imaginary) object of -- type or subtype T allocated at (machine) address zero. The -- attribute is allowed only as the default expression of a formal -- parameter, or as an actual expression of a subporgram call. In -- either case, the subprogram must be imported. -- -- The identity of the object is represented by the address zero -- in the argument list, independent of the passing mechanism -- (explicit or default). -- -- The reason that this capability is needed is that for a record -- or other composite object passed by reference, there is no other -- way of specifying that a zero address should be passed. ----------------- -- Object_Size -- ----------------- Attribute_Object_Size => True, -- -- Type'Object_Size is the same as Type'Size for all types except -- fixed-point types and discrete types. For fixed-point types and -- discrete types, this attribute gives the size used for default -- allocation of objects and components of the size. See section -- in Einfo ("Handling of type'Size values") for further details. ------------------------- -- Passed_By_Reference -- ------------------------- Attribute_Passed_By_Reference => True, -- -- T'Passed_By_Reference for any subtype T returns a boolean value -- that is true if the type is normally passed by reference and -- false if the type is normally passed by copy in calls. For scalar -- types, the result is always False and is static. For non-scalar -- types, the result is non-static (since it is computed by Gigi). ------------------ -- Range_Length -- ------------------ Attribute_Range_Length => True, -- -- T'Range_Length for any discrete type T yields the number of -- values represented by the subtype (zero for a null range). The -- result is static for static subtypes. Note that Range_Length -- applied to the index subtype of a one dimensional array always -- gives the same result as Range applied to the array itself. -- The result is of type universal integer. ------------------ -- Storage_Unit -- ------------------ Attribute_Storage_Unit => True, -- -- Standard'Storage_Unit (Standard is the only permissible prefix) -- provides the value System.Storage_Unit, and is intended primarily -- for constructing this definition in package System (see note above -- in Default_Bit_Order description). The is a static attribute. ---------- -- Tick -- ---------- Attribute_Tick => True, -- -- Standard'Tick (Standard is the only permissible prefix) provides -- the value System.Tick, and is intended primarily for constructing -- this definition in package System (see note above in description -- of Default_Bit_Order). This is a static attribute. ---------------- -- To_Address -- ---------------- Attribute_To_Address => True, -- -- System'To_Address (Address is the only permissible prefix) -- is a function that takes any integer value, and converts it into -- an address value. The semantics is to first convert the integer -- value to type Integer_Address according to normal conversion -- rules, and then to convert this to an address using the same -- semantics as the System.Storage_Elements.To_Address function. -- The important difference is that this is a static attribute -- so it can be used in initializations in preealborate packages. ---------------- -- Type_Class -- ---------------- Attribute_Type_Class => True, -- -- T'Type_Class for any type or subtype T yields the value of the -- type class for the full type of T. If T is a generic formal type, -- then the value is the value for the corresponding actual subtype. -- The value of this attribute is of type System.Aux_DEC.Type_Class, -- which has the following definition: -- -- type Type_Class is -- (Type_Class_Enumeration, -- Type_Class_Integer, -- Type_Class_Fixed_Point, -- Type_Class_Floating_Point, -- Type_Class_Array, -- Type_Class_Record, -- Type_Class_Access, -- Type_Class_Task, -- Type_Class_Address); -- -- Protected types yield the value Type_Class_Task, which thus -- applies to all concurrent types. This attribute is designed to -- be compatible with the DEC Ada attribute of the same name. -- -- Note: if pragma Extend_System is used to merge the definitions of -- Aux_DEC into System, then the type Type_Class can be referenced -- as an entity within System, as can its enumeration literals. ----------------- -- UET_Address -- ----------------- Attribute_UET_Address => True, -- -- Unit'UET_Address, where Unit is a program unit, yields the address -- of the unit exception table for the specified unit. This is only -- used in the internal implementation of exception handling. See the -- implementation of unit Ada.Exceptions for details on its use. ------------------------------ -- Universal_Literal_String -- ------------------------------ Attribute_Universal_Literal_String => True, -- -- The prefix of 'Universal_Literal_String must be a named number. -- The static result is the string consisting of the characters of -- the number as defined in the original source. This allows the -- user program to access the actual text of named numbers without -- intermediate conversions and without the need to enclose the -- strings in quotes (which would preclude their use as numbers). -- This is used internally for the construction of values of the -- floating-point attributes from the file ttypef.ads, but may -- also be used by user programs. ------------------------- -- Unrestricted_Access -- ------------------------- Attribute_Unrestricted_Access => True, -- -- The Unrestricted_Access attribute is similar to Access except that -- all accessibility and aliased view checks are omitted. This is very -- much a user-beware attribute. Basically its status is very similar -- to Address, for which it is a desirable replacement where the value -- desired is an access type. In other words, its effect is identical -- to first taking 'Address and then doing an unchecked conversion to -- a desired access type. Note that in GNAT, but not necessarily in -- other implementations, the use of static chains for inner level -- subprograms means that Unrestricted_Access applied to a subprogram -- yields a value that can be called as long as the subprogram is in -- scope (normal Ada 95 accessibility rules restrict this usage). --------------- -- VADS_Size -- --------------- Attribute_VADS_Size => True, -- -- Typ'VADS_Size yields the Size value typically yielded by some -- Ada 83 compilers. The differences between VADS_Size and Size -- is that for scalar types for which no Size has been specified, -- VADS_Size yields the Object_Size rather than the Value_Size. -- For example, while Natural'Size is typically 31, the value of -- Natural'VADS_Size is 32. For all other types, Size and VADS_Size -- yield the same value. ---------------- -- Value_Size -- ---------------- Attribute_Value_Size => True, -- -- Type'Value_Size is the number of bits required to represent a -- value of the given subtype. It is the same as Type'Size, but, -- unlike Size, may be set for non-first subtypes. See section -- in Einfo ("Handling of type'Size values") for further details. --------------- -- Word_Size -- --------------- Attribute_Word_Size => True, -- -- Standard'Word_Size (Standard is the only permissible prefix) -- provides the value System.Word_Size, and is intended primarily -- for constructing this definition in package System (see note above -- in Default_Bit_Order description). This is a static attribute. others => False); ----------------- -- Subprograms -- ----------------- procedure Analyze_Attribute (N : Node_Id); -- Performs bottom up semantic analysis of an attribute. Note that the -- parser has already checked that type returning attributes appear only -- in appropriate contexts (i.e. in subtype marks, or as prefixes for -- other attributes). procedure Resolve_Attribute (N : Node_Id; Typ : Entity_Id); -- Performs type resolution of attribute. If the attribute yields -- a universal value, mark its type as that of the context. On -- the other hand, if the context itself is universal (as in -- T'Val (T'Pos (X)), mark the type as being the largest type of -- that class that can be used at run-time. This is correct since -- either the value gets folded (in which case it doesn't matter -- what type of the class we give if, since the folding uses universal -- arithmetic anyway) or it doesn't get folded (in which case it is -- going to be dealt with at runtime, and the largest type is right). end Sem_Attr;
grammars/org/antlr/codebuff/Quorum.g4
antlr/groom
408
7222
grammar Quorum; start : (package_rule reference+ | reference+ package_rule | package_rule | reference+ | ) class_declaration EOF ; package_rule : PACKAGE_NAME name=qualified_name; reference : USE name=qualified_name ; class_declaration : ( CLASS ID generic_declaration? inherit_stmnts? class_stmnts* END ) #FullClassDeclaration | no_class_stmnts #NoClassDeclaration ; no_class_stmnts : statement+ #NoActionsNoClass |(access_modifier? method_declaration)+ #ActionsNoClass ; inherit_stmnts : INHERITS inherit_stmt (COMMA inherit_stmt )* ; inherit_stmt : qualified_name generic_statement? ; access_modifier : PUBLIC | PRIVATE ; class_stmnts : assignment_statement | method_declaration ; method_declaration : modifier = access_modifier? method_shared block END #Action | modifier = access_modifier? BLUEPRINT method_shared #BlueprintAction | modifier = access_modifier? NATIVE method_shared #NativeAction | ON CREATE block END #Constructor ; method_shared : ACTION ID (LEFT_PAREN (formal_parameter (COMMA formal_parameter)*)? RIGHT_PAREN)? (RETURNS return_type = assignment_declaration )? ; formal_parameter : assignment_declaration ID ; qualified_name : ids+=ID (PERIOD ids+=ID)* ; block : statement* ; statement: solo_method_call | if_statement | assignment_statement | loop_statement | return_statement | print_statement | speak_statement | check_statement | alert_statement ; solo_method_call : (ME COLON)? (object=ID COLON)? (action_call COLON)* solo_method_required_method_part #VariableSoloFunctionCall | ((ME COLON)? (fieldName=ID COLON))? PARENT COLON parent=qualified_name COLON initial_parent_action_call (COLON (action_call))* #ParentVariableSoloFunctionCall ; solo_method_required_method_part : var=ID LEFT_PAREN function_expression_list RIGHT_PAREN ; alert_statement : ALERT LEFT_PAREN expression RIGHT_PAREN ; check_statement : CHECK block ( (detect_statement)+ (always_statement)? | always_statement ) END ; detect_statement : DETECT name=ID (INHERITS qualified_name (OR qualified_name)*)? block ; always_statement : ALWAYS block ; print_statement : OUTPUT expression ; speak_statement : SAY expression ; return_statement : RETURN ( expression | NOW) ; generic_declaration : LESS ids+=ID (COMMA ids+=ID)* GREATER ; generic_statement : LESS assignment_declaration (COMMA assignment_declaration )* GREATER ; class_type : qualified_name ; assignment_declaration : qualified_name generic_statement? #GenericAssignmentDeclaration | INTEGER_KEYWORD #IntegerAssignmentDeclaration | NUMBER_KEYWORD #NumberAssignmentDeclaration | TEXT #TextAssignmentDeclaration | BOOLEAN_KEYWORD #BooleanAssignmentDeclaration ; assignment_statement : (ME COLON)? name = ID EQUALITY rhs = expression #NoTypeAssignment | PARENT COLON parent=qualified_name COLON name = ID EQUALITY rhs = expression #ParentAssignment | object=ID (COLON PARENT COLON parent=qualified_name)? COLON name = ID EQUALITY rhs = expression #ObjectAssignment | modifier = access_modifier? CONSTANT? type = assignment_declaration name = ID (EQUALITY rhs = expression)? #NormalAssignment ; if_statement : IF expression block (elseif_statement)* (else_statement )? END ; elseif_statement : ELSE_IF expression block ; else_statement : ELSE block ; loop_statement : REPEAT ( (expression TIMES) | ((WHILE | UNTIL) expression) ) block END ; initial_parent_action_call : var=ID (LEFT_PAREN function_expression_list RIGHT_PAREN)? ; action_call : var=ID (LEFT_PAREN function_expression_list RIGHT_PAREN)? ; expression : LEFT_PAREN expression RIGHT_PAREN #ParenthesisExpression | INT #Integer | BOOLEAN #Boolean | DECIMAL #Decimal | STRING #String | NULL #Null | ME #Me | INPUT LEFT_PAREN expression RIGHT_PAREN #Input | INPUT LEFT_PAREN RIGHT_PAREN #InputNoParameters | (ME COLON)? action_call (COLON (action_call))* #VariableFunctionCall | ((ME COLON)? (fieldName=ID COLON))? PARENT COLON parent=qualified_name COLON initial_parent_action_call (COLON (action_call))* #ParentVariableFunctionCall | MINUS expression #Minus | NOT expression #Not | CAST LEFT_PAREN type=assignment_declaration COMMA expression RIGHT_PAREN #Cast | expression (MULTIPLY | DIVIDE |MODULO) expression #Multiplication | expression (PLUS | MINUS) expression #Addition | expression (GREATER | GREATER_EQUAL | LESS | LESS_EQUAL) expression #Greater | expression INHERITS name=class_type #Inherits | expression (EQUALITY | NOTEQUALS) expression #Equals | expression (AND) expression #And | expression (OR) expression #Or ; function_expression_list : (expression (COMMA expression)*)? ; OUTPUT : 'output'; ON : 'on'; CREATE : 'create'; CONSTANT: 'constant'; ELSE_IF : 'elseif'; ME : 'me'; UNTIL : 'until'; PUBLIC : 'public'; PRIVATE : 'private'; ALERT : 'alert'; DETECT : 'detect'; ALWAYS : 'always'; CHECK : 'check'; PARENT : 'parent'; BLUEPRINT : 'blueprint'; NATIVE : 'system'; INHERITS : 'is'; CAST : 'cast'; INPUT : 'input'; SAY : 'say'; NOW : 'now'; WHILE : 'while'; PACKAGE_NAME : 'package'; TIMES : 'times'; REPEAT : 'repeat'; ELSE : 'else'; RETURNS : 'returns'; RETURN : 'return'; AND : 'and'; OR : 'or'; NULL : 'undefined'; ACTION : 'action' ; COLON : ':' ; INTEGER_KEYWORD : 'integer'; NUMBER_KEYWORD : 'number'; TEXT : 'text'; BOOLEAN_KEYWORD : 'boolean'; USE : 'use' ; NOT : 'not' | 'Not'; NOTEQUALS : ('n' | 'N' ) 'ot='; PERIOD : '.'; COMMA : ','; EQUALITY: '='; GREATER : '>'; GREATER_EQUAL : '>='; LESS : '<'; LESS_EQUAL : '<='; PLUS : '+'; MINUS : '-'; MULTIPLY: '*'; DIVIDE : '/'; MODULO : 'mod'; LEFT_SQR_BRACE : '['; RIGHT_SQR_BRACE : ']'; LEFT_PAREN : '('; RIGHT_PAREN : ')'; DOUBLE_QUOTE : '"'; IF : 'if'; END : 'end'; CLASS : 'class'; BOOLEAN : 'true' | 'false'; INT : '0'..'9'+; DECIMAL : '0'..'9'+ (PERIOD ('0'..'9')*)?; ID : ('a'..'z'|'A'..'Z')('a'..'z'|'A'..'Z'|'0'..'9' | '_')*; STRING : DOUBLE_QUOTE .*? DOUBLE_QUOTE; NEWLINE : '\r'?'\n' -> channel(HIDDEN); WS : (' '|'\t'|'\n'|'\r')+ -> channel(HIDDEN); COMMENTS : ('//' ~('\n'|'\r')* (('\r'? '\n') | EOF) | '/*' .*? '*/') -> channel(HIDDEN) ;
libsrc/_DEVELOPMENT/math/float/math48/z80/am48_pow.asm
meesokim/z88dk
0
14758
<filename>libsrc/_DEVELOPMENT/math/float/math48/z80/am48_pow.asm ; double pow(double x, double y) SECTION code_fp_math48 PUBLIC am48_pow EXTERN mm48_pwr ; compute (AC')^(AC) ; ; enter : AC' = double x ; AC = double y ; ; exit : success ; ; AC' = x^y ; carry reset ; ; fail if out of domain or overflow ; ; AC' = +-inf or zero ; carry set, errno set ; ; uses : af, af', bc', de', hl' defc am48_pow = mm48_pwr
Experiment/Induction.agda
rei1024/agda-misc
3
15031
{-# OPTIONS --without-K --safe #-} -- Quicksort module Experiment.Induction where -- agda-stdlib open import Level open import Data.List open import Data.Product open import Data.Nat as β„• open import Data.Nat.Induction as Ind open import Relation.Binary as B open import Relation.Unary as U import Relation.Unary.Properties as Uβ‚š open import Relation.Binary.PropositionalEquality as P using (_≑_) open import Function.Base open import Induction.WellFounded private variable a p r : Level
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/access_constant.ads
best08618/asylo
7
29010
-- { dg-do compile } package Access_Constant is c: aliased constant integer := 3; type const_ptr is access constant integer; cp : const_ptr := c'access; procedure inc (var_ptr: access integer := cp) -- { dg-error "access-to-constant" } is abstract; end Access_Constant;
oeis/027/A027383.asm
neoneye/loda-programs
11
4249
<filename>oeis/027/A027383.asm ; A027383: Number of balanced strings of length n: let d(S) = #(1's) - #(0's), # == count in S, then S is balanced if every substring T of S has -2 <= d(T) <= 2. ; 1,2,4,6,10,14,22,30,46,62,94,126,190,254,382,510,766,1022,1534,2046,3070,4094,6142,8190,12286,16382,24574,32766,49150,65534,98302,131070,196606,262142,393214,524286,786430,1048574,1572862,2097150,3145726,4194302,6291454,8388606,12582910,16777214,25165822,33554430,50331646,67108862,100663294,134217726,201326590,268435454,402653182,536870910,805306366,1073741822,1610612734,2147483646,3221225470,4294967294,6442450942,8589934590,12884901886,17179869182,25769803774,34359738366,51539607550 mov $1,$0 mod $0,2 lpb $1 mul $0,2 add $0,3 sub $1,2 lpe add $0,1
source/web/soap/web_services-soap-clients.adb
svn2github/matreshka
24
6145
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright Β© 2012-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 League.Text_Codecs; with XML.SAX.Input_Sources.Streams.Element_Arrays; with XML.SAX.Simple_Readers; with Web_Services.SOAP.Constants; with Web_Services.SOAP.Message_Decoders; with Web_Services.SOAP.Message_Encoders; with Web_Services.SOAP.Modules.Registry; package body Web_Services.SOAP.Clients is UTF8_Coder : constant League.Text_Codecs.Text_Codec := League.Text_Codecs.Codec (League.Strings.To_Universal_String ("utf-8")); procedure Read_Payload (Response_Data : League.Stream_Element_Vectors.Stream_Element_Vector; Response : out Web_Services.SOAP.Payloads.SOAP_Payload_Access); -- Extract Payload from Response_Data ---------- -- Call -- ---------- procedure Call (Self : in out SOAP_Client; Request : Web_Services.SOAP.Payloads.SOAP_Payload_Access; Response : out Web_Services.SOAP.Payloads.SOAP_Payload_Access; User : League.Strings.Universal_String := League.Strings.Empty_Universal_String; Password : League.Strings.Universal_String := League.Strings.Empty_Universal_String; Action : League.Strings.Universal_String := League.Strings.Empty_Universal_String) is Input : Web_Services.SOAP.Messages.SOAP_Message_Access := new Web_Services.SOAP.Messages.SOAP_Message; begin Input.Action := Action; Input.Payload := Request; Web_Services.SOAP.Modules.Registry.Execute_Send_Request (Input.all, User, Password); Self.Call (Input, Response); Web_Services.SOAP.Messages.Free (Input); end Call; ---------- -- Call -- ---------- procedure Call (Self : in out SOAP_Client; Input : Web_Services.SOAP.Messages.SOAP_Message_Access; Response : out Web_Services.SOAP.Payloads.SOAP_Payload_Access) is use type League.Strings.Universal_String; Encoder : Web_Services.SOAP.Message_Encoders.SOAP_Message_Encoder; Raw : constant League.Stream_Element_Vectors.Stream_Element_Vector := Encoder.Encode (Input.all); Content_Type : League.Stream_Element_Vectors.Stream_Element_Vector := League.Stream_Element_Vectors.To_Stream_Element_Vector (Constants.Application_SOAP_XML_Array); Response_Data : League.Stream_Element_Vectors.Stream_Element_Vector; begin if not Input.Action.Is_Empty then Content_Type.Append (UTF8_Coder.Encode ("; action=" & Input.Action)); end if; Self.Transport.Post_Request (Content_Type => Content_Type, Request_Data => Raw, Response_Data => Response_Data); if Response_Data.Is_Empty then return; end if; Read_Payload (Response_Data, Response); end Call; ------------------- -- Next_Response -- ------------------- not overriding procedure Next_Response (Self : in out SOAP_Client; Response : out Web_Services.SOAP.Payloads.SOAP_Payload_Access) is Response_Data : League.Stream_Element_Vectors.Stream_Element_Vector; begin Self.Transport.Next_Response (Response_Data); if Response_Data.Is_Empty then return; end if; Read_Payload (Response_Data, Response); end Next_Response; ------------------ -- Read_Payload -- ------------------ procedure Read_Payload (Response_Data : League.Stream_Element_Vectors.Stream_Element_Vector; Response : out Web_Services.SOAP.Payloads.SOAP_Payload_Access) is Output : Web_Services.SOAP.Messages.SOAP_Message_Access; Source : aliased XML.SAX.Input_Sources.Streams.Element_Arrays. Stream_Element_Array_Input_Source; Decoder : aliased Web_Services.SOAP.Message_Decoders.SOAP_Message_Decoder; Reader : aliased XML.SAX.Simple_Readers.Simple_Reader; begin -- Parse request data. Source.Set_Stream_Element_Array (Response_Data.To_Stream_Element_Array); Reader.Set_Content_Handler (Decoder'Unchecked_Access); Reader.Set_Error_Handler (Decoder'Unchecked_Access); Reader.Set_Lexical_Handler (Decoder'Unchecked_Access); Reader.Parse (Source'Access); if Decoder.Success then -- Request was decoded successfully. Output := Decoder.Message; Response := Output.Payload; Output.Payload := null; Web_Services.SOAP.Messages.Free (Output); end if; end Read_Payload; end Web_Services.SOAP.Clients;
programs/oeis/065/A065151.asm
neoneye/loda
22
95697
<gh_stars>10-100 ; A065151: a(n) = prime(1 + A064722(n)). ; 2,2,3,2,3,2,3,5,7,2,3,2,3,5,7,2,3,2,3,5,7,2,3,5,7,11,13,2,3,2,3,5,7,11,13,2,3,5,7,2,3,2,3,5,7,2,3,5,7,11,13,2,3,5,7,11,13,2,3,2,3,5,7,11,13,2,3,5,7,2,3,2,3,5,7,11,13,2,3,5,7,2,3,5,7,11,13,2,3,5,7,11,13,17,19,2,3,5,7,2 seq $0,49711 ; a(n) = n - prevprime(n). sub $0,1 seq $0,40 ; The prime numbers.
src/fot/FOTC/Data/Conat/PropertiesATP.agda
asr/fotc
11
13217
<reponame>asr/fotc ------------------------------------------------------------------------------ -- Conat properties ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} {-# OPTIONS --without-K #-} module FOTC.Data.Conat.PropertiesATP where open import FOTC.Base open import FOTC.Data.Conat open import FOTC.Data.Nat ------------------------------------------------------------------------------ -- Because a greatest post-fixed point is a fixed-point, then the -- Conat predicate is also a pre-fixed point of the functional NatF, -- i.e. -- -- NatF Conat ≀ Conat (see FOTC.Data.Conat.Type). -- See Issue https://github.com/asr/apia/issues/81 . Conat-inA : D β†’ Set Conat-inA n = n ≑ zero ∨ (βˆƒ[ n' ] n ≑ succ₁ n' ∧ Conat n') {-# ATP definition Conat-inA #-} Conat-in : βˆ€ {n} β†’ n ≑ zero ∨ (βˆƒ[ n' ] n ≑ succ₁ n' ∧ Conat n') β†’ Conat n Conat-in h = Conat-coind Conat-inA h' h where postulate h' : βˆ€ {n} β†’ Conat-inA n β†’ n ≑ zero ∨ (βˆƒ[ n' ] n ≑ succ₁ n' ∧ Conat-inA n') {-# ATP prove h' #-} -- See Issue https://github.com/asr/apia/issues/81 . 0-ConatA : D β†’ Set 0-ConatA n = n ≑ zero {-# ATP definition 0-ConatA #-} 0-Conat : Conat zero 0-Conat = Conat-coind 0-ConatA h refl where postulate h : βˆ€ {n} β†’ 0-ConatA n β†’ n ≑ zero ∨ (βˆƒ[ n' ] n ≑ succ₁ n' ∧ 0-ConatA n') {-# ATP prove h #-} ∞-Conat : Conat ∞ ∞-Conat = Conat-coind A h refl where A : D β†’ Set A n = n ≑ ∞ {-# ATP definition A #-} postulate h : βˆ€ {n} β†’ A n β†’ n ≑ zero ∨ (βˆƒ[ n' ] n ≑ succ₁ n' ∧ A n') {-# ATP prove h #-} Nβ†’Conat : βˆ€ {n} β†’ N n β†’ Conat n Nβ†’Conat Nn = Conat-coind N h Nn where h : βˆ€ {m} β†’ N m β†’ m ≑ zero ∨ (βˆƒ[ m' ] m ≑ succ₁ m' ∧ N m') h nzero = prf where postulate prf : zero ≑ zero ∨ (βˆƒ[ m' ] zero ≑ succ₁ m' ∧ N m') {-# ATP prove prf #-} h (nsucc {m} Nm) = prf where postulate prf : succ₁ m ≑ zero ∨ (βˆƒ[ m' ] succ₁ m ≑ succ₁ m' ∧ N m') {-# ATP prove prf #-}
06/full_auto_tests/tests/Rect.asm
yairfine/nand-to-tetris
1
168662
<reponame>yairfine/nand-to-tetris<gh_stars>1-10 // This file is part of the materials accompanying the book // "The Elements of Computing Systems" by <NAME>, // MIT Press 2004. Book site: http://www.idc.ac.il/tecs // File name: projects/06/rect/Rect.asm. Version: beta 1.4. // Draws a rectangle at the top left corner of the screen. // The rectangle is 16 pixels wide and R0 pixels high. @0 D=M @INFINITE_LOOP D;JLE @counter M=D @SCREEN D=A @address M=D (LOOP) @address A=M M=-1 @address D=M @32 D=D+A @address M=D @counter MD=M-1 @LOOP D;JGT (INFINITE_LOOP) @INFINITE_LOOP 0;JMP
data/wildPokemon/safarizone2.asm
AmateurPanda92/pokemon-rby-dx
9
102606
ZoneMons2: db $1E IF DEF(_RED) db 22,NIDORAN_M ENDC IF DEF(_BLUE) db 22,NIDORAN_F ENDC db 26,RHYHORN db 23,PARAS db 25,EXEGGCUTE IF DEF(_RED) db 30,NIDORINO ENDC IF DEF(_BLUE) db 30,NIDORINA ENDC db 27,EXEGGCUTE IF DEF(_RED) db 30,NIDORINA ENDC IF DEF(_BLUE) db 30,NIDORINO ENDC db 32,VENOMOTH db 26,CHANSEY db 28,TAUROS db $00
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_294.asm
ljhsiun2/medusa
9
97574
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r8 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x394e, %r9 and %rdx, %rdx mov $0x6162636465666768, %r12 movq %r12, (%r9) nop nop nop nop cmp $25329, %rsi lea addresses_A_ht+0x4a36, %rsi lea addresses_WT_ht+0xe156, %rdi nop add $31195, %r8 mov $99, %rcx rep movsl nop nop nop nop xor %rcx, %rcx lea addresses_UC_ht+0x1014e, %r8 nop nop nop add $52102, %r9 movb (%r8), %dl nop nop nop cmp %r12, %r12 lea addresses_WC_ht+0x12e6e, %rdi nop nop inc %r9 movb $0x61, (%rdi) nop inc %rdx lea addresses_D_ht+0x1104e, %rdx cmp %r9, %r9 movw $0x6162, (%rdx) nop nop nop nop nop xor $25587, %r12 lea addresses_WC_ht+0x794e, %rsi lea addresses_WT_ht+0x1234e, %rdi clflush (%rdi) nop nop nop nop nop cmp %r8, %r8 mov $49, %rcx rep movsl nop nop nop sub $54804, %r9 pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r8 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r15 push %r8 push %r9 push %rbx push %rdi // Store lea addresses_PSE+0x214e, %r8 nop add %r12, %r12 movw $0x5152, (%r8) nop nop nop nop sub $26563, %r15 // Store lea addresses_D+0x761a, %rdi nop nop cmp $10836, %r11 movw $0x5152, (%rdi) nop sub %r9, %r9 // Faulty Load lea addresses_D+0x1894e, %rdi nop nop add %r15, %r15 movb (%rdi), %r9b lea oracles, %rdi and $0xff, %r9 shlq $12, %r9 mov (%rdi,%r9,1), %r9 pop %rdi pop %rbx pop %r9 pop %r8 pop %r15 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_D', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_D', 'AVXalign': True, 'size': 2}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_D', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 9, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8}} {'src': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WT_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2}} {'src': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WT_ht'}} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
alert.applescript
emanuelbesliu/applescripts
0
472
<gh_stars>0 set larmtime to display dialog "Time you want to be alerted?" default answer "" set larmtime to text returned of larmtime repeat set datte to current date set hower to get hours of datte set minits to get minutes of datte if (hower > 12) then set hower to (hower - 12) set tiime to hower & minits set wun to item 1 of tiime set twoo to item 2 of tiime set tiime to wun & ":" & twoo as string log tiime if contents of tiime is equal to larmtime then display dialog "You have to do something!" exit repeat end if end if end repeat end
programs/oeis/236/A236305.asm
neoneye/loda
22
166873
; A236305: The number of P-positions in the game of Nim with up to 3 piles, allowing for piles of zero, such that the number of objects in each pile does not exceed n. ; 1,4,7,16,19,28,43,64,67,76,91,112,139,172,211,256,259,268,283,304,331,364,403,448,499,556,619,688,763,844,931,1024,1027,1036,1051,1072,1099,1132,1171,1216,1267,1324,1387,1456,1531,1612,1699 lpb $0 mov $2,$0 seq $2,60973 ; a(2*n+1) = a(n+1)+a(n), a(2*n) = 2*a(n), with a(1)=0 and a(2)=1. sub $0,$2 pow $2,2 add $1,$2 lpe mul $1,3 add $1,1 mov $0,$1
libsrc/target/multi8/psg/set_psg.asm
jpoikela/z88dk
38
101358
; ; TRS-80 (EG2000+HT1080) specific routines ; by <NAME>, Fall 2015 ; ; int set_psg(int reg, int val); ; ; Play a sound by PSG ; ; ; $Id: set_psg.asm,v 1.2 2016-06-10 21:13:58 dom Exp $ ; SECTION code_clib PUBLIC set_psg PUBLIC _set_psg EXTERN set_psg_callee EXTERN ASMDISP_SET_PSG_CALLEE set_psg: _set_psg: pop bc pop de pop hl push hl push de push bc jp set_psg_callee + ASMDISP_SET_PSG_CALLEE
antlr-basics/src/main/java/com/poc/chapter_08_part01/CSVLoaderMap.g4
cgonul/antlr-poc
0
6387
grammar CSVLoaderMap; file : header row+; header: row ; row: field (',' field)* '\r'? '\n' ; field : TEXT # text | STRING # string | # empty ; TEXT : ~[,\n\r"]+ ; STRING : '"' ('""'|~'"')* '"' ;
agda/Pi-reasoning.agda
JacquesCarette/pi-dual
14
5548
{-# OPTIONS --no-termination-check #-} module Pi-reasoning where open import Data.Empty open import Data.Unit hiding (_β‰Ÿ_) open import Data.Bool hiding (_β‰Ÿ_) open import Data.Nat open import Data.List open import Data.Sum hiding (map) open import Data.Product hiding (map) open import Level hiding (suc) open import Relation.Nullary open import Relation.Binary open import Algebra open import Relation.Binary.PropositionalEquality using (_≑_; refl) open import Relation.Binary.PropositionalEquality as PropEq using(sym; trans) import Algebra.FunctionProperties as FunctionProperties -- open import Algebra.FunctionProperties open import Algebra.Structures open import Pi-abstract-machine ------------------------------------------------------------------------------ -- Decidable equality -- normalize a type to a natural number size : B β†’ β„• size ZERO = 0 size ONE = 1 size (PLUS b₁ bβ‚‚) = size b₁ + size bβ‚‚ size (TIMES b₁ bβ‚‚) = size b₁ * size bβ‚‚ -- normalize a value to a number normalize : {b : B} β†’ VB b β†’ β„• normalize {ZERO} () normalize {ONE} unitB = 0 normalize {PLUS b₁ bβ‚‚} (inlB v) = normalize {b₁} v normalize {PLUS b₁ bβ‚‚} (inrB v) = size b₁ + normalize {bβ‚‚} v normalize {TIMES b₁ bβ‚‚} (pairB v₁ vβ‚‚) = size bβ‚‚ * normalize {b₁} v₁ + normalize {bβ‚‚} vβ‚‚ -- decidable equality of our values: normalize and compare the -- underlying natural numbers. This is justified by the fact that the -- natural numbers are a model of commutative semirings. -- Note that we can't compare at different types so easily, they have -- to have the same size, something not worth dealing with right now vb= : {b : B} β†’ (v₁ : VB b) β†’ (vβ‚‚ : VB b) β†’ Set vb= {b} v₁ vβ‚‚ = (normalize {b} v₁) ≑ (normalize {b} vβ‚‚) vb-Equivalence : {b : B} β†’ IsEquivalence (vb= {b}) vb-Equivalence = record { refl = refl ; sym = PropEq.sym ; trans = PropEq.trans } vb== : {b : B} β†’ Decidable {A = VB b} vb= vb== {b} x y = (normalize {b} x) β‰Ÿ (normalize {b} y) -- generate all values of a type values : (b : B) β†’ List (VB b) values ZERO = [] values ONE = [ unitB ] values (PLUS b₁ bβ‚‚) = map inlB (values b₁) ++ map inrB (values bβ‚‚) values (TIMES b₁ bβ‚‚) = concatMap (Ξ» v₁ β†’ map (pairB v₁) (values bβ‚‚)) (values b₁) -- B is a Setoid VB-is-Setoid : {b : B} β†’ Setoid Level.zero Level.zero VB-is-Setoid {b} = record { Carrier = VB b ; _β‰ˆ_ = vb= ; isEquivalence = vb-Equivalence } -- equality of combinators: -- two combinators are equal if they map equal values to equal values -- best do this via proving that vb= generates a decidable equivalence {- ⟺=bool : {b₁ bβ‚‚ : B} β†’ (b₁ ⟺ bβ‚‚) β†’ (b₁ ⟺ bβ‚‚) β†’ Bool ⟺=bool {b₁} {bβ‚‚} f g = and (zipWith vb= (map (eval f) vs) (map (eval g) vs)) where vs = values b₁ data _⟺=_ : {b₁ bβ‚‚ : B} β†’ (b₁ ⟺ bβ‚‚) β†’ (b₁ ⟺ bβ‚‚) β†’ Set where id⟺= : {b₁ bβ‚‚ : B} β†’ (f : b₁ ⟺ bβ‚‚) β†’ (f ⟺= f) sym⟺= : {b₁ bβ‚‚ : B} β†’ (f : b₁ ⟺ bβ‚‚) β†’ (g : b₁ ⟺ bβ‚‚) β†’ ( f ⟺= g ) β†’ (g ⟺= f) -- verifies that the given combinators relates the given values data _s⟷_ : B β†’ B β†’ Set where sid⟷ : {b : B} {v₁ : VB b} {vβ‚‚ : VB b} {p : T (vb= (eval (iso id⟷) v₁) vβ‚‚)} β†’ (b s⟷ b) ⟺=IsEquivalence : IsEquivalence _s⟷_ ⟺=IsEquivalence = record { refl = srefl ; sym = {!!} ; trans = {!!} } where srefl : {b : B} {v : VB b} β†’ b s⟷ b srefl {b} {v} = sid⟷ {b} {v} {v} {{!!}} -- <-> : B -> B -> Set with constructors id : {b : B} -> (b <-> b) -- IsEquivalence <-> -- refl = id -- R= : B -> B -> Set with constructos -} ------------------------------------------------------------------------------ {-- testT = PLUS ONE (PLUS ONE ONE) test1 = normalize {testT} (inlB unitB) test2 = normalize {testT} (inrB (inlB unitB)) test3 = normalize {testT} (inrB (inrB unitB)) testT = PLUS ZERO (PLUS ONE ONE) test1 = normalize {testT} (inrB (inlB unitB)) test2 = normalize {testT} (inrB (inrB unitB)) testT = TIMES (PLUS ONE ONE) ZERO test1 = size testT testT = TIMES (PLUS ONE ONE) (PLUS ONE (PLUS ONE ONE)) test1 = normalize {testT} (pairB (inlB unitB) (inlB unitB)) test2 = normalize {testT} (pairB (inrB unitB) (inlB unitB)) test3 = normalize {testT} (pairB (inlB unitB) (inrB (inlB unitB))) test4 = normalize {testT} (pairB (inrB unitB) (inrB (inlB unitB))) test5 = normalize {testT} (pairB (inlB unitB) (inrB (inrB unitB))) test6 = normalize {testT} (pairB (inrB unitB) (inrB (inrB unitB))) BOOL = PLUS ONE ONE test = ⟺= {BOOL} {BOOL} (iso swapβ‚Š β—Ž iso swapβ‚Š) (iso id⟷) test1 : (iso swapβ‚Š) ⟺= (iso swapβ‚Š) test1 = check {PLUS ONE ONE} {PLUS ONE ONE} (iso swapβ‚Š) (iso swapβ‚Š) tt The following does NOT typecheck which is good. Agda rejected my nonsense claim that id is equivalent to swap+ test2 : (iso swapβ‚Š) ⟺= (iso id⟷) test2 = check {PLUS ONE ONE} {PLUS ONE ONE} (iso swapβ‚Š) (iso id⟷) tt --}
gcc-gcc-7_3_0-release/gcc/ada/par-ch13.adb
best08618/asylo
7
22438
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- P A R . C H 1 3 -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2015, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING3. If not, go to -- -- http://www.gnu.org/licenses for a complete copy of the license. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ pragma Style_Checks (All_Checks); -- Turn off subprogram body ordering check. Subprograms are in order -- by RM section rather than alphabetical separate (Par) package body Ch13 is -- Local functions, used only in this chapter function P_Component_Clause return Node_Id; function P_Mod_Clause return Node_Id; ----------------------------------- -- Aspect_Specifications_Present -- ----------------------------------- function Aspect_Specifications_Present (Strict : Boolean := Ada_Version < Ada_2012) return Boolean is Scan_State : Saved_Scan_State; Result : Boolean; function Possible_Misspelled_Aspect return Boolean; -- Returns True, if Token_Name is a misspelling of some aspect name function With_Present return Boolean; -- Returns True if WITH is present, indicating presence of aspect -- specifications. Also allows incorrect use of WHEN in place of WITH. -------------------------------- -- Possible_Misspelled_Aspect -- -------------------------------- function Possible_Misspelled_Aspect return Boolean is begin for J in Aspect_Id_Exclude_No_Aspect loop if Is_Bad_Spelling_Of (Token_Name, Aspect_Names (J)) then return True; end if; end loop; return False; end Possible_Misspelled_Aspect; ------------------ -- With_Present -- ------------------ function With_Present return Boolean is begin if Token = Tok_With then return True; -- Check for WHEN used in place of WITH elsif Token = Tok_When then declare Scan_State : Saved_Scan_State; begin Save_Scan_State (Scan_State); Scan; -- past WHEN if Token = Tok_Identifier and then Get_Aspect_Id (Token_Name) /= No_Aspect then Error_Msg_SC ("WHEN should be WITH"); Restore_Scan_State (Scan_State); return True; else Restore_Scan_State (Scan_State); return False; end if; end; else return False; end if; end With_Present; -- Start of processing for Aspect_Specifications_Present begin -- Definitely must have WITH to consider aspect specs to be present -- Note that this means that if we have a semicolon, we immediately -- return False. There is a case in which this is not optimal, namely -- something like -- type R is new Integer; -- with bla bla; -- where the semicolon is redundant, but scanning forward for it would -- be too expensive. Instead we pick up the aspect specifications later -- as a bogus declaration, and diagnose the semicolon at that point. if not With_Present then return False; end if; -- Have a WITH or some token that we accept as a legitimate bad attempt -- at writing WITH. See if it looks like an aspect specification Save_Scan_State (Scan_State); Scan; -- past WITH (or WHEN or other bad keyword) -- If no identifier, then consider that we definitely do not have an -- aspect specification. if Token /= Tok_Identifier then Result := False; -- This is where we pay attention to the Strict mode. Normally when -- we are in Ada 2012 mode, Strict is False, and we consider that we -- have an aspect specification if the identifier is an aspect name -- or a likely misspelling of one (even if not followed by =>) or -- the identifier is not an aspect name but is followed by =>, by -- a comma, or by a semicolon. The last two cases correspond to -- (misspelled) Boolean aspects with a defaulted value of True. -- P_Aspect_Specifications will generate messages if the aspect -- specification is ill-formed. elsif not Strict then if Get_Aspect_Id (Token_Name) /= No_Aspect or else Possible_Misspelled_Aspect then Result := True; else Scan; -- past identifier Result := Token = Tok_Arrow or else Token = Tok_Comma or else Token = Tok_Semicolon; end if; -- If earlier than Ada 2012, check for valid aspect identifier (possibly -- completed with 'CLASS) followed by an arrow, and consider that this -- is still an aspect specification so we give an appropriate message. else if Get_Aspect_Id (Token_Name) = No_Aspect then Result := False; else Scan; -- past aspect name Result := False; if Token = Tok_Arrow then Result := True; -- The identifier may be the name of a boolean aspect with a -- defaulted True value. Further checks when analyzing aspect -- specification, which may include further aspects. elsif Token = Tok_Comma or else Token = Tok_Semicolon then Result := True; elsif Token = Tok_Apostrophe then Scan; -- past apostrophe if Token = Tok_Identifier and then Token_Name = Name_Class then Scan; -- past CLASS if Token = Tok_Arrow then Result := True; end if; end if; end if; if Result then Restore_Scan_State (Scan_State); Error_Msg_Ada_2012_Feature ("|aspect specification", Token_Ptr); return True; end if; end if; end if; Restore_Scan_State (Scan_State); return Result; end Aspect_Specifications_Present; ------------------------------- -- Get_Aspect_Specifications -- ------------------------------- function Get_Aspect_Specifications (Semicolon : Boolean := True) return List_Id is A_Id : Aspect_Id; Aspect : Node_Id; Aspects : List_Id; OK : Boolean; Opt : Boolean; -- True if current aspect takes an optional argument begin Aspects := Empty_List; -- Check if aspect specification present if not Aspect_Specifications_Present then if Semicolon then TF_Semicolon; end if; return Aspects; end if; Scan; -- past WITH (or possible WHEN after error) Aspects := Empty_List; -- Loop to scan aspects loop OK := True; -- The aspect mark is not an identifier if Token /= Tok_Identifier then Error_Msg_SC ("aspect identifier expected"); -- Skip the whole aspect specification list if Semicolon then Resync_Past_Semicolon; end if; return Aspects; end if; A_Id := Get_Aspect_Id (Token_Name); Aspect := Make_Aspect_Specification (Token_Ptr, Identifier => Token_Node); -- The aspect mark is not recognized if A_Id = No_Aspect then Error_Msg_N ("& is not a valid aspect identifier", Token_Node); OK := False; -- Check bad spelling for J in Aspect_Id_Exclude_No_Aspect loop if Is_Bad_Spelling_Of (Token_Name, Aspect_Names (J)) then Error_Msg_Name_1 := Aspect_Names (J); Error_Msg_N -- CODEFIX ("\possible misspelling of%", Token_Node); exit; end if; end loop; Scan; -- past incorrect identifier if Token = Tok_Apostrophe then Scan; -- past apostrophe Scan; -- past presumably CLASS end if; -- Attempt to parse the aspect definition by assuming it is an -- expression. if Token = Tok_Arrow then Scan; -- past arrow Set_Expression (Aspect, P_Expression); -- If we have a correct terminator (comma or semicolon, or a -- reasonable likely missing comma), then just proceed. elsif Token = Tok_Comma or else Token = Tok_Semicolon or else Token = Tok_Identifier then null; -- Otherwise the aspect contains a junk definition else if Semicolon then Resync_Past_Semicolon; end if; return Aspects; end if; -- Aspect mark is OK else Scan; -- past identifier Opt := Aspect_Argument (A_Id) = Optional_Expression or else Aspect_Argument (A_Id) = Optional_Name; -- Check for 'Class present if Token = Tok_Apostrophe then if Class_Aspect_OK (A_Id) then Scan; -- past apostrophe if Token = Tok_Identifier and then Token_Name = Name_Class then Scan; -- past CLASS Set_Class_Present (Aspect); else Error_Msg_SC ("Class attribute expected here"); OK := False; if Token = Tok_Identifier then Scan; -- past identifier not CLASS end if; end if; -- The aspect does not allow 'Class else Error_Msg_Node_1 := Identifier (Aspect); Error_Msg_SC ("aspect& does not permit attribute here"); OK := False; Scan; -- past apostrophe Scan; -- past presumably CLASS end if; end if; -- Check for a missing aspect definition. Aspects with optional -- definitions are not considered. if Token = Tok_Comma or else Token = Tok_Semicolon then if not Opt then Error_Msg_Node_1 := Identifier (Aspect); Error_Msg_AP ("aspect& requires an aspect definition"); OK := False; end if; -- Here we do not have a comma or a semicolon, we are done if we -- do not have an arrow and the aspect does not need an argument elsif Opt and then Token /= Tok_Arrow then null; -- Here we have either an arrow, or an aspect that definitely -- needs an aspect definition, and we will look for one even if -- no arrow is preseant. -- Otherwise we have an aspect definition else if Token = Tok_Arrow then Scan; -- past arrow else T_Arrow; OK := False; end if; -- Detect a common error where the non-null definition of -- aspect Depends, Global, Refined_Depends, Refined_Global -- or Refined_State lacks enclosing parentheses. if Token /= Tok_Left_Paren and then Token /= Tok_Null then -- [Refined_]Depends if A_Id = Aspect_Depends or else A_Id = Aspect_Refined_Depends then Error_Msg_SC -- CODEFIX ("missing ""("""); Resync_Past_Malformed_Aspect; -- Return when the current aspect is the last in the list -- of specifications and the list applies to a body. if Token = Tok_Is then return Aspects; end if; -- [Refined_]Global elsif A_Id = Aspect_Global or else A_Id = Aspect_Refined_Global then declare Scan_State : Saved_Scan_State; begin Save_Scan_State (Scan_State); Scan; -- past item or mode_selector -- Emit an error when the aspect has a mode_selector -- as the moded_global_list must be parenthesized: -- with Global => Output => Item if Token = Tok_Arrow then Restore_Scan_State (Scan_State); Error_Msg_SC -- CODEFIX ("missing ""("""); Resync_Past_Malformed_Aspect; -- Return when the current aspect is the last in -- the list of specifications and the list applies -- to a body. if Token = Tok_Is then return Aspects; end if; elsif Token = Tok_Comma then Scan; -- past comma -- An item followed by a comma does not need to -- be parenthesized if the next token is a valid -- aspect name: -- with Global => Item, -- Aspect => ... if Token = Tok_Identifier and then Get_Aspect_Id (Token_Name) /= No_Aspect then Restore_Scan_State (Scan_State); -- Otherwise this is a list of items in which case -- the list must be parenthesized. else Restore_Scan_State (Scan_State); Error_Msg_SC -- CODEFIX ("missing ""("""); Resync_Past_Malformed_Aspect; -- Return when the current aspect is the last -- in the list of specifications and the list -- applies to a body. if Token = Tok_Is then return Aspects; end if; end if; -- The definition of [Refined_]Global does not need to -- be parenthesized. else Restore_Scan_State (Scan_State); end if; end; -- Refined_State elsif A_Id = Aspect_Refined_State then if Token = Tok_Identifier then declare Scan_State : Saved_Scan_State; begin Save_Scan_State (Scan_State); Scan; -- past state -- The refinement contains a constituent, the whole -- argument of Refined_State must be parenthesized. -- with Refined_State => State => Constit if Token = Tok_Arrow then Restore_Scan_State (Scan_State); Error_Msg_SC -- CODEFIX ("missing ""("""); Resync_Past_Malformed_Aspect; -- Return when the current aspect is the last -- in the list of specifications and the list -- applies to a body. if Token = Tok_Is then return Aspects; end if; -- The refinement lacks constituents. Do not flag -- this case as the error would be misleading. The -- diagnostic is left to the analysis. -- with Refined_State => State else Restore_Scan_State (Scan_State); end if; end; end if; end if; end if; -- Note if inside Depends aspect if A_Id = Aspect_Depends then Inside_Depends := True; end if; -- Parse the aspect definition depening on the expected -- argument kind. if Aspect_Argument (A_Id) = Name or else Aspect_Argument (A_Id) = Optional_Name then Set_Expression (Aspect, P_Name); else pragma Assert (Aspect_Argument (A_Id) = Expression or else Aspect_Argument (A_Id) = Optional_Expression); Set_Expression (Aspect, P_Expression); end if; -- Unconditionally reset flag for Inside_Depends Inside_Depends := False; end if; -- Add the aspect to the resulting list only when it was properly -- parsed. if OK then Append (Aspect, Aspects); end if; end if; -- Merge here after good or bad aspect (we should be at a comma -- or a semicolon, but there might be other possible errors). -- The aspect specification list contains more than one aspect if Token = Tok_Comma then Scan; -- past comma goto Continue; -- Check for a missing comma between two aspects. Emit an error -- and proceed to the next aspect. elsif Token = Tok_Identifier and then Get_Aspect_Id (Token_Name) /= No_Aspect then declare Scan_State : Saved_Scan_State; begin Save_Scan_State (Scan_State); Scan; -- past identifier -- Attempt to detect ' or => following a potential aspect -- mark. if Token = Tok_Apostrophe or else Token = Tok_Arrow then Restore_Scan_State (Scan_State); Error_Msg_AP -- CODEFIX ("|missing "","""); goto Continue; -- The construct following the current aspect is not an -- aspect. else Restore_Scan_State (Scan_State); end if; end; -- Check for a mistyped semicolon in place of a comma between two -- aspects. Emit an error and proceed to the next aspect. elsif Token = Tok_Semicolon then declare Scan_State : Saved_Scan_State; begin Save_Scan_State (Scan_State); Scan; -- past semicolon if Token = Tok_Identifier and then Get_Aspect_Id (Token_Name) /= No_Aspect then Scan; -- past identifier -- Attempt to detect ' or => following potential aspect mark if Token = Tok_Apostrophe or else Token = Tok_Arrow then Restore_Scan_State (Scan_State); Error_Msg_SC -- CODEFIX ("|"";"" should be "","""); Scan; -- past semicolon goto Continue; end if; end if; -- Construct following the current aspect is not an aspect Restore_Scan_State (Scan_State); end; end if; -- Require semicolon if caller expects to scan this out if Semicolon then T_Semicolon; end if; exit; <<Continue>> null; end loop; return Aspects; end Get_Aspect_Specifications; -------------------------------------------- -- 13.1 Representation Clause (also I.7) -- -------------------------------------------- -- REPRESENTATION_CLAUSE ::= -- ATTRIBUTE_DEFINITION_CLAUSE -- | ENUMERATION_REPRESENTATION_CLAUSE -- | RECORD_REPRESENTATION_CLAUSE -- | AT_CLAUSE -- ATTRIBUTE_DEFINITION_CLAUSE ::= -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION; -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME; -- Note: in Ada 83, the expression must be a simple expression -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION; -- Note: in Ada 83, the expression must be a simple expression -- ENUMERATION_REPRESENTATION_CLAUSE ::= -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE; -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE -- RECORD_REPRESENTATION_CLAUSE ::= -- for first_subtype_LOCAL_NAME use -- record [MOD_CLAUSE] -- {COMPONENT_CLAUSE} -- end record; -- Note: for now we allow only a direct name as the local name in the -- above constructs. This probably needs changing later on ??? -- The caller has checked that the initial token is FOR -- Error recovery: cannot raise Error_Resync, if an error occurs, -- the scan is repositioned past the next semicolon. function P_Representation_Clause return Node_Id is For_Loc : Source_Ptr; Name_Node : Node_Id; Prefix_Node : Node_Id; Attr_Name : Name_Id; Identifier_Node : Node_Id; Rep_Clause_Node : Node_Id; Expr_Node : Node_Id; Record_Items : List_Id; begin For_Loc := Token_Ptr; Scan; -- past FOR -- Note that the name in a representation clause is always a simple -- name, even in the attribute case, see AI-300 which made this so. Identifier_Node := P_Identifier (C_Use); -- Check case of qualified name to give good error message if Token = Tok_Dot then Error_Msg_SC ("representation clause requires simple name!"); loop exit when Token /= Tok_Dot; Scan; -- past dot Discard_Junk_Node (P_Identifier); end loop; end if; -- Attribute Definition Clause if Token = Tok_Apostrophe then -- Allow local names of the form a'b'.... This enables -- us to parse class-wide streams attributes correctly. Name_Node := Identifier_Node; while Token = Tok_Apostrophe loop Scan; -- past apostrophe Identifier_Node := Token_Node; Attr_Name := No_Name; if Token = Tok_Identifier then Attr_Name := Token_Name; -- Note that the parser must complain in case of an internal -- attribute name that comes from source since internal names -- are meant to be used only by the compiler. if not Is_Attribute_Name (Attr_Name) and then (not Is_Internal_Attribute_Name (Attr_Name) or else Comes_From_Source (Token_Node)) then Signal_Bad_Attribute; end if; if Style_Check then Style.Check_Attribute_Name (False); end if; -- Here for case of attribute designator is not an identifier else if Token = Tok_Delta then Attr_Name := Name_Delta; elsif Token = Tok_Digits then Attr_Name := Name_Digits; elsif Token = Tok_Access then Attr_Name := Name_Access; else Error_Msg_AP ("attribute designator expected"); raise Error_Resync; end if; if Style_Check then Style.Check_Attribute_Name (True); end if; end if; -- Here we have an OK attribute scanned, and the corresponding -- Attribute identifier node is stored in Ident_Node. Prefix_Node := Name_Node; Name_Node := New_Node (N_Attribute_Reference, Prev_Token_Ptr); Set_Prefix (Name_Node, Prefix_Node); Set_Attribute_Name (Name_Node, Attr_Name); Scan; -- Check for Address clause which needs to be marked for use in -- optimizing performance of Exp_Util.Following_Address_Clause. if Attr_Name = Name_Address and then Nkind (Prefix_Node) = N_Identifier then Set_Name_Table_Boolean1 (Chars (Prefix_Node), True); end if; end loop; Rep_Clause_Node := New_Node (N_Attribute_Definition_Clause, For_Loc); Set_Name (Rep_Clause_Node, Prefix_Node); Set_Chars (Rep_Clause_Node, Attr_Name); T_Use; Expr_Node := P_Expression_No_Right_Paren; Check_Simple_Expression_In_Ada_83 (Expr_Node); Set_Expression (Rep_Clause_Node, Expr_Node); else TF_Use; Rep_Clause_Node := Empty; -- AT follows USE (At Clause) if Token = Tok_At then Scan; -- past AT Rep_Clause_Node := New_Node (N_At_Clause, For_Loc); Set_Identifier (Rep_Clause_Node, Identifier_Node); Expr_Node := P_Expression_No_Right_Paren; Check_Simple_Expression_In_Ada_83 (Expr_Node); Set_Expression (Rep_Clause_Node, Expr_Node); -- Mark occurrence of address clause (used to optimize performance -- of Exp_Util.Following_Address_Clause). Set_Name_Table_Boolean1 (Chars (Identifier_Node), True); -- RECORD follows USE (Record Representation Clause) elsif Token = Tok_Record then Record_Items := P_Pragmas_Opt; Rep_Clause_Node := New_Node (N_Record_Representation_Clause, For_Loc); Set_Identifier (Rep_Clause_Node, Identifier_Node); Push_Scope_Stack; Scope.Table (Scope.Last).Etyp := E_Record; Scope.Table (Scope.Last).Ecol := Start_Column; Scope.Table (Scope.Last).Sloc := Token_Ptr; Scan; -- past RECORD Record_Items := P_Pragmas_Opt; -- Possible Mod Clause if Token = Tok_At then Set_Mod_Clause (Rep_Clause_Node, P_Mod_Clause); Set_Pragmas_Before (Mod_Clause (Rep_Clause_Node), Record_Items); Record_Items := P_Pragmas_Opt; end if; if No (Record_Items) then Record_Items := New_List; end if; Set_Component_Clauses (Rep_Clause_Node, Record_Items); -- Loop through component clauses loop if Token not in Token_Class_Name then exit when Check_End; end if; Append (P_Component_Clause, Record_Items); P_Pragmas_Opt (Record_Items); end loop; -- Left paren follows USE (Enumeration Representation Clause) elsif Token = Tok_Left_Paren then Rep_Clause_Node := New_Node (N_Enumeration_Representation_Clause, For_Loc); Set_Identifier (Rep_Clause_Node, Identifier_Node); Set_Array_Aggregate (Rep_Clause_Node, P_Aggregate); -- Some other token follows FOR (invalid representation clause) else Error_Msg_SC ("invalid representation clause"); raise Error_Resync; end if; end if; TF_Semicolon; return Rep_Clause_Node; exception when Error_Resync => Resync_Past_Semicolon; return Error; end P_Representation_Clause; ---------------------- -- 13.1 Local Name -- ---------------------- -- Local name is always parsed by its parent. In the case of its use in -- pragmas, the check for a local name is handled in Par.Prag and allows -- all the possible forms of local name. For the uses in chapter 13, we -- currently only allow a direct name, but this should probably change??? --------------------------- -- 13.1 At Clause (I.7) -- --------------------------- -- Parsed by P_Representation_Clause (13.1) --------------------------------------- -- 13.3 Attribute Definition Clause -- --------------------------------------- -- Parsed by P_Representation_Clause (13.1) -------------------------------- -- 13.1 Aspect Specification -- -------------------------------- -- ASPECT_SPECIFICATION ::= -- with ASPECT_MARK [=> ASPECT_DEFINITION] {, -- ASPECT_MARK [=> ASPECT_DEFINITION] } -- ASPECT_MARK ::= aspect_IDENTIFIER['Class] -- ASPECT_DEFINITION ::= NAME | EXPRESSION -- Error recovery: cannot raise Error_Resync procedure P_Aspect_Specifications (Decl : Node_Id; Semicolon : Boolean := True) is Aspects : List_Id; Ptr : Source_Ptr; begin -- Aspect Specification is present Ptr := Token_Ptr; -- Here we have an aspect specification to scan, note that we don't -- set the flag till later, because it may turn out that we have no -- valid aspects in the list. Aspects := Get_Aspect_Specifications (Semicolon); -- Here if aspects present if Is_Non_Empty_List (Aspects) then -- If Decl is Empty, we just ignore the aspects (the caller in this -- case has always issued an appropriate error message). if Decl = Empty then null; -- If Decl is Error, we ignore the aspects, and issue a message elsif Decl = Error then Error_Msg ("aspect specifications not allowed here", Ptr); -- Here aspects are allowed, and we store them else Set_Parent (Aspects, Decl); Set_Aspect_Specifications (Decl, Aspects); end if; end if; end P_Aspect_Specifications; --------------------------------------------- -- 13.4 Enumeration Representation Clause -- --------------------------------------------- -- Parsed by P_Representation_Clause (13.1) --------------------------------- -- 13.4 Enumeration Aggregate -- --------------------------------- -- Parsed by P_Representation_Clause (13.1) ------------------------------------------ -- 13.5.1 Record Representation Clause -- ------------------------------------------ -- Parsed by P_Representation_Clause (13.1) ------------------------------ -- 13.5.1 Mod Clause (I.8) -- ------------------------------ -- MOD_CLAUSE ::= at mod static_EXPRESSION; -- Note: in Ada 83, the expression must be a simple expression -- The caller has checked that the initial Token is AT -- Error recovery: cannot raise Error_Resync -- Note: the caller is responsible for setting the Pragmas_Before field function P_Mod_Clause return Node_Id is Mod_Node : Node_Id; Expr_Node : Node_Id; begin Mod_Node := New_Node (N_Mod_Clause, Token_Ptr); Scan; -- past AT T_Mod; Expr_Node := P_Expression_No_Right_Paren; Check_Simple_Expression_In_Ada_83 (Expr_Node); Set_Expression (Mod_Node, Expr_Node); TF_Semicolon; return Mod_Node; end P_Mod_Clause; ------------------------------ -- 13.5.1 Component Clause -- ------------------------------ -- COMPONENT_CLAUSE ::= -- COMPONENT_CLAUSE_COMPONENT_NAME at POSITION -- range FIRST_BIT .. LAST_BIT; -- COMPONENT_CLAUSE_COMPONENT_NAME ::= -- component_DIRECT_NAME -- | component_DIRECT_NAME'ATTRIBUTE_DESIGNATOR -- | FIRST_SUBTYPE_DIRECT_NAME'ATTRIBUTE_DESIGNATOR -- POSITION ::= static_EXPRESSION -- Note: in Ada 83, the expression must be a simple expression -- FIRST_BIT ::= static_SIMPLE_EXPRESSION -- LAST_BIT ::= static_SIMPLE_EXPRESSION -- Note: the AARM V2.0 grammar has an error at this point, it uses -- EXPRESSION instead of SIMPLE_EXPRESSION for FIRST_BIT and LAST_BIT -- Error recovery: cannot raise Error_Resync function P_Component_Clause return Node_Id is Component_Node : Node_Id; Comp_Name : Node_Id; Expr_Node : Node_Id; begin Component_Node := New_Node (N_Component_Clause, Token_Ptr); Comp_Name := P_Name; if Nkind (Comp_Name) = N_Identifier or else Nkind (Comp_Name) = N_Attribute_Reference then Set_Component_Name (Component_Node, Comp_Name); else Error_Msg_N ("component name must be direct name or attribute", Comp_Name); Set_Component_Name (Component_Node, Error); end if; Set_Sloc (Component_Node, Token_Ptr); T_At; Expr_Node := P_Expression_No_Right_Paren; Check_Simple_Expression_In_Ada_83 (Expr_Node); Set_Position (Component_Node, Expr_Node); T_Range; Expr_Node := P_Expression_No_Right_Paren; Check_Simple_Expression_In_Ada_83 (Expr_Node); Set_First_Bit (Component_Node, Expr_Node); T_Dot_Dot; Expr_Node := P_Expression_No_Right_Paren; Check_Simple_Expression_In_Ada_83 (Expr_Node); Set_Last_Bit (Component_Node, Expr_Node); TF_Semicolon; return Component_Node; end P_Component_Clause; ---------------------- -- 13.5.1 Position -- ---------------------- -- Parsed by P_Component_Clause (13.5.1) ----------------------- -- 13.5.1 First Bit -- ----------------------- -- Parsed by P_Component_Clause (13.5.1) ---------------------- -- 13.5.1 Last Bit -- ---------------------- -- Parsed by P_Component_Clause (13.5.1) -------------------------- -- 13.8 Code Statement -- -------------------------- -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION -- On entry the caller has scanned the SUBTYPE_MARK (passed in as the -- single argument, and the scan points to the apostrophe. -- Error recovery: can raise Error_Resync function P_Code_Statement (Subtype_Mark : Node_Id) return Node_Id is Node1 : Node_Id; begin Scan; -- past apostrophe -- If left paren, then we have a possible code statement if Token = Tok_Left_Paren then Node1 := New_Node (N_Code_Statement, Sloc (Subtype_Mark)); Set_Expression (Node1, P_Qualified_Expression (Subtype_Mark)); TF_Semicolon; return Node1; -- Otherwise we have an illegal range attribute. Note that P_Name -- ensures that Token = Tok_Range is the only possibility left here. else Error_Msg_SC ("RANGE attribute illegal here!"); raise Error_Resync; end if; end P_Code_Statement; end Ch13;
asm/final1.asm
IronHeart7334/AssemblyPrograms
0
1294
; general comments ; Register Dictionary: ; - EAX contains the index where the character was found (-1 if not found) ; - EBX contains the cString address ; - ECX contains the current index ; preprocessor directives .586 .MODEL FLAT ; external files to link with ; stack configuration .STACK 4096 ; named memory allocation and initialization .DATA searchCString BYTE "Example search string", 0 searchFor BYTE "c" ; names of procedures defined in other *.asm files in the project ; procedure code .CODE main PROC mov EAX, -1 mov ECX, 0 lea EBX, searchCString checkCurrentByte: cmp EAX, -1 jne doneProcessing ; IF(EAX is not -1){done processing because found} cmp BYTE PTR [EBX + 1*ECX], 0 jmp doneProcessing ; IF(current byte is null terminator){nothing left to process} loopBody: cmp BYTE PTR [EBX + 1*ECX], searchFor je yayFound inc ECX ; else, not found jmp checkCurrentByte yayFound: ; if (current byte is what I'm searching for) mov EAX, ECX ; falls though to done processing doneProcessing: ; done mov EAX, 0 ret main ENDP END
ls.asm
hprem991/System-Call
1
11014
_ls: file format elf32-i386 Disassembly of section .text: 00000000 <fmtname>: #include "user.h" #include "fs.h" char* fmtname(char *path) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 53 push %ebx 4: 83 ec 14 sub $0x14,%esp static char buf[DIRSIZ+1]; char *p; // Find first character after last slash. for(p=path+strlen(path); p >= path && *p != '/'; p--) 7: 83 ec 0c sub $0xc,%esp a: ff 75 08 pushl 0x8(%ebp) d: e8 c9 03 00 00 call 3db <strlen> 12: 83 c4 10 add $0x10,%esp 15: 89 c2 mov %eax,%edx 17: 8b 45 08 mov 0x8(%ebp),%eax 1a: 01 d0 add %edx,%eax 1c: 89 45 f4 mov %eax,-0xc(%ebp) 1f: eb 04 jmp 25 <fmtname+0x25> 21: 83 6d f4 01 subl $0x1,-0xc(%ebp) 25: 8b 45 f4 mov -0xc(%ebp),%eax 28: 3b 45 08 cmp 0x8(%ebp),%eax 2b: 72 0a jb 37 <fmtname+0x37> 2d: 8b 45 f4 mov -0xc(%ebp),%eax 30: 0f b6 00 movzbl (%eax),%eax 33: 3c 2f cmp $0x2f,%al 35: 75 ea jne 21 <fmtname+0x21> ; p++; 37: 83 45 f4 01 addl $0x1,-0xc(%ebp) // Return blank-padded name. if(strlen(p) >= DIRSIZ) 3b: 83 ec 0c sub $0xc,%esp 3e: ff 75 f4 pushl -0xc(%ebp) 41: e8 95 03 00 00 call 3db <strlen> 46: 83 c4 10 add $0x10,%esp 49: 83 f8 0d cmp $0xd,%eax 4c: 76 05 jbe 53 <fmtname+0x53> return p; 4e: 8b 45 f4 mov -0xc(%ebp),%eax 51: eb 60 jmp b3 <fmtname+0xb3> memmove(buf, p, strlen(p)); 53: 83 ec 0c sub $0xc,%esp 56: ff 75 f4 pushl -0xc(%ebp) 59: e8 7d 03 00 00 call 3db <strlen> 5e: 83 c4 10 add $0x10,%esp 61: 83 ec 04 sub $0x4,%esp 64: 50 push %eax 65: ff 75 f4 pushl -0xc(%ebp) 68: 68 d0 14 00 00 push $0x14d0 6d: e8 e6 04 00 00 call 558 <memmove> 72: 83 c4 10 add $0x10,%esp memset(buf+strlen(p), ' ', DIRSIZ-strlen(p)); 75: 83 ec 0c sub $0xc,%esp 78: ff 75 f4 pushl -0xc(%ebp) 7b: e8 5b 03 00 00 call 3db <strlen> 80: 83 c4 10 add $0x10,%esp 83: ba 0e 00 00 00 mov $0xe,%edx 88: 89 d3 mov %edx,%ebx 8a: 29 c3 sub %eax,%ebx 8c: 83 ec 0c sub $0xc,%esp 8f: ff 75 f4 pushl -0xc(%ebp) 92: e8 44 03 00 00 call 3db <strlen> 97: 83 c4 10 add $0x10,%esp 9a: 05 d0 14 00 00 add $0x14d0,%eax 9f: 83 ec 04 sub $0x4,%esp a2: 53 push %ebx a3: 6a 20 push $0x20 a5: 50 push %eax a6: e8 57 03 00 00 call 402 <memset> ab: 83 c4 10 add $0x10,%esp return buf; ae: b8 d0 14 00 00 mov $0x14d0,%eax } b3: 8b 5d fc mov -0x4(%ebp),%ebx b6: c9 leave b7: c3 ret 000000b8 <ls>: void ls(char *path) { b8: 55 push %ebp b9: 89 e5 mov %esp,%ebp bb: 57 push %edi bc: 56 push %esi bd: 53 push %ebx be: 81 ec 3c 02 00 00 sub $0x23c,%esp char buf[512], *p; int fd; struct dirent de; struct stat st; if((fd = open(path, 0)) < 0){ c4: 83 ec 08 sub $0x8,%esp c7: 6a 00 push $0x0 c9: ff 75 08 pushl 0x8(%ebp) cc: e8 0c 05 00 00 call 5dd <open> d1: 83 c4 10 add $0x10,%esp d4: 89 45 e4 mov %eax,-0x1c(%ebp) d7: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) db: 79 1a jns f7 <ls+0x3f> printf(2, "ls: cannot open %s\n", path); dd: 83 ec 04 sub $0x4,%esp e0: ff 75 08 pushl 0x8(%ebp) e3: 68 c8 11 00 00 push $0x11c8 e8: 6a 02 push $0x2 ea: e8 23 0d 00 00 call e12 <printf> ef: 83 c4 10 add $0x10,%esp return; f2: e9 e3 01 00 00 jmp 2da <ls+0x222> } if(fstat(fd, &st) < 0){ f7: 83 ec 08 sub $0x8,%esp fa: 8d 85 bc fd ff ff lea -0x244(%ebp),%eax 100: 50 push %eax 101: ff 75 e4 pushl -0x1c(%ebp) 104: e8 ec 04 00 00 call 5f5 <fstat> 109: 83 c4 10 add $0x10,%esp 10c: 85 c0 test %eax,%eax 10e: 79 28 jns 138 <ls+0x80> printf(2, "ls: cannot stat %s\n", path); 110: 83 ec 04 sub $0x4,%esp 113: ff 75 08 pushl 0x8(%ebp) 116: 68 dc 11 00 00 push $0x11dc 11b: 6a 02 push $0x2 11d: e8 f0 0c 00 00 call e12 <printf> 122: 83 c4 10 add $0x10,%esp close(fd); 125: 83 ec 0c sub $0xc,%esp 128: ff 75 e4 pushl -0x1c(%ebp) 12b: e8 95 04 00 00 call 5c5 <close> 130: 83 c4 10 add $0x10,%esp return; 133: e9 a2 01 00 00 jmp 2da <ls+0x222> } switch(st.type){ 138: 0f b7 85 bc fd ff ff movzwl -0x244(%ebp),%eax 13f: 98 cwtl 140: 83 f8 01 cmp $0x1,%eax 143: 74 48 je 18d <ls+0xd5> 145: 83 f8 02 cmp $0x2,%eax 148: 0f 85 7e 01 00 00 jne 2cc <ls+0x214> case T_FILE: printf(1, "%s %d %d %d\n", fmtname(path), st.type, st.ino, st.size); 14e: 8b bd cc fd ff ff mov -0x234(%ebp),%edi 154: 8b b5 c4 fd ff ff mov -0x23c(%ebp),%esi 15a: 0f b7 85 bc fd ff ff movzwl -0x244(%ebp),%eax 161: 0f bf d8 movswl %ax,%ebx 164: 83 ec 0c sub $0xc,%esp 167: ff 75 08 pushl 0x8(%ebp) 16a: e8 91 fe ff ff call 0 <fmtname> 16f: 83 c4 10 add $0x10,%esp 172: 83 ec 08 sub $0x8,%esp 175: 57 push %edi 176: 56 push %esi 177: 53 push %ebx 178: 50 push %eax 179: 68 f0 11 00 00 push $0x11f0 17e: 6a 01 push $0x1 180: e8 8d 0c 00 00 call e12 <printf> 185: 83 c4 20 add $0x20,%esp break; 188: e9 3f 01 00 00 jmp 2cc <ls+0x214> case T_DIR: if(strlen(path) + 1 + DIRSIZ + 1 > sizeof buf){ 18d: 83 ec 0c sub $0xc,%esp 190: ff 75 08 pushl 0x8(%ebp) 193: e8 43 02 00 00 call 3db <strlen> 198: 83 c4 10 add $0x10,%esp 19b: 83 c0 10 add $0x10,%eax 19e: 3d 00 02 00 00 cmp $0x200,%eax 1a3: 76 17 jbe 1bc <ls+0x104> printf(1, "ls: path too long\n"); 1a5: 83 ec 08 sub $0x8,%esp 1a8: 68 fd 11 00 00 push $0x11fd 1ad: 6a 01 push $0x1 1af: e8 5e 0c 00 00 call e12 <printf> 1b4: 83 c4 10 add $0x10,%esp break; 1b7: e9 10 01 00 00 jmp 2cc <ls+0x214> } strcpy(buf, path); 1bc: 83 ec 08 sub $0x8,%esp 1bf: ff 75 08 pushl 0x8(%ebp) 1c2: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax 1c8: 50 push %eax 1c9: e8 9e 01 00 00 call 36c <strcpy> 1ce: 83 c4 10 add $0x10,%esp p = buf+strlen(buf); 1d1: 83 ec 0c sub $0xc,%esp 1d4: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax 1da: 50 push %eax 1db: e8 fb 01 00 00 call 3db <strlen> 1e0: 83 c4 10 add $0x10,%esp 1e3: 89 c2 mov %eax,%edx 1e5: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax 1eb: 01 d0 add %edx,%eax 1ed: 89 45 e0 mov %eax,-0x20(%ebp) *p++ = '/'; 1f0: 8b 45 e0 mov -0x20(%ebp),%eax 1f3: 8d 50 01 lea 0x1(%eax),%edx 1f6: 89 55 e0 mov %edx,-0x20(%ebp) 1f9: c6 00 2f movb $0x2f,(%eax) while(read(fd, &de, sizeof(de)) == sizeof(de)){ 1fc: e9 aa 00 00 00 jmp 2ab <ls+0x1f3> if(de.inum == 0) 201: 0f b7 85 d0 fd ff ff movzwl -0x230(%ebp),%eax 208: 66 85 c0 test %ax,%ax 20b: 75 05 jne 212 <ls+0x15a> continue; 20d: e9 99 00 00 00 jmp 2ab <ls+0x1f3> memmove(p, de.name, DIRSIZ); 212: 83 ec 04 sub $0x4,%esp 215: 6a 0e push $0xe 217: 8d 85 d0 fd ff ff lea -0x230(%ebp),%eax 21d: 83 c0 02 add $0x2,%eax 220: 50 push %eax 221: ff 75 e0 pushl -0x20(%ebp) 224: e8 2f 03 00 00 call 558 <memmove> 229: 83 c4 10 add $0x10,%esp p[DIRSIZ] = 0; 22c: 8b 45 e0 mov -0x20(%ebp),%eax 22f: 83 c0 0e add $0xe,%eax 232: c6 00 00 movb $0x0,(%eax) if(stat(buf, &st) < 0){ 235: 83 ec 08 sub $0x8,%esp 238: 8d 85 bc fd ff ff lea -0x244(%ebp),%eax 23e: 50 push %eax 23f: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax 245: 50 push %eax 246: e8 73 02 00 00 call 4be <stat> 24b: 83 c4 10 add $0x10,%esp 24e: 85 c0 test %eax,%eax 250: 79 1b jns 26d <ls+0x1b5> printf(1, "ls: cannot stat %s\n", buf); 252: 83 ec 04 sub $0x4,%esp 255: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax 25b: 50 push %eax 25c: 68 dc 11 00 00 push $0x11dc 261: 6a 01 push $0x1 263: e8 aa 0b 00 00 call e12 <printf> 268: 83 c4 10 add $0x10,%esp continue; 26b: eb 3e jmp 2ab <ls+0x1f3> } printf(1, "%s %d %d %d\n", fmtname(buf), st.type, st.ino, st.size); 26d: 8b bd cc fd ff ff mov -0x234(%ebp),%edi 273: 8b b5 c4 fd ff ff mov -0x23c(%ebp),%esi 279: 0f b7 85 bc fd ff ff movzwl -0x244(%ebp),%eax 280: 0f bf d8 movswl %ax,%ebx 283: 83 ec 0c sub $0xc,%esp 286: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax 28c: 50 push %eax 28d: e8 6e fd ff ff call 0 <fmtname> 292: 83 c4 10 add $0x10,%esp 295: 83 ec 08 sub $0x8,%esp 298: 57 push %edi 299: 56 push %esi 29a: 53 push %ebx 29b: 50 push %eax 29c: 68 f0 11 00 00 push $0x11f0 2a1: 6a 01 push $0x1 2a3: e8 6a 0b 00 00 call e12 <printf> 2a8: 83 c4 20 add $0x20,%esp break; } strcpy(buf, path); p = buf+strlen(buf); *p++ = '/'; while(read(fd, &de, sizeof(de)) == sizeof(de)){ 2ab: 83 ec 04 sub $0x4,%esp 2ae: 6a 10 push $0x10 2b0: 8d 85 d0 fd ff ff lea -0x230(%ebp),%eax 2b6: 50 push %eax 2b7: ff 75 e4 pushl -0x1c(%ebp) 2ba: e8 f6 02 00 00 call 5b5 <read> 2bf: 83 c4 10 add $0x10,%esp 2c2: 83 f8 10 cmp $0x10,%eax 2c5: 0f 84 36 ff ff ff je 201 <ls+0x149> printf(1, "ls: cannot stat %s\n", buf); continue; } printf(1, "%s %d %d %d\n", fmtname(buf), st.type, st.ino, st.size); } break; 2cb: 90 nop } close(fd); 2cc: 83 ec 0c sub $0xc,%esp 2cf: ff 75 e4 pushl -0x1c(%ebp) 2d2: e8 ee 02 00 00 call 5c5 <close> 2d7: 83 c4 10 add $0x10,%esp } 2da: 8d 65 f4 lea -0xc(%ebp),%esp 2dd: 5b pop %ebx 2de: 5e pop %esi 2df: 5f pop %edi 2e0: 5d pop %ebp 2e1: c3 ret 000002e2 <main>: int main(int argc, char *argv[]) { 2e2: 8d 4c 24 04 lea 0x4(%esp),%ecx 2e6: 83 e4 f0 and $0xfffffff0,%esp 2e9: ff 71 fc pushl -0x4(%ecx) 2ec: 55 push %ebp 2ed: 89 e5 mov %esp,%ebp 2ef: 53 push %ebx 2f0: 51 push %ecx 2f1: 83 ec 10 sub $0x10,%esp 2f4: 89 cb mov %ecx,%ebx int i; if(argc < 2){ 2f6: 83 3b 01 cmpl $0x1,(%ebx) 2f9: 7f 15 jg 310 <main+0x2e> ls("."); 2fb: 83 ec 0c sub $0xc,%esp 2fe: 68 10 12 00 00 push $0x1210 303: e8 b0 fd ff ff call b8 <ls> 308: 83 c4 10 add $0x10,%esp exit(); 30b: e8 8d 02 00 00 call 59d <exit> } for(i=1; i<argc; i++) 310: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) 317: eb 21 jmp 33a <main+0x58> ls(argv[i]); 319: 8b 45 f4 mov -0xc(%ebp),%eax 31c: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 323: 8b 43 04 mov 0x4(%ebx),%eax 326: 01 d0 add %edx,%eax 328: 8b 00 mov (%eax),%eax 32a: 83 ec 0c sub $0xc,%esp 32d: 50 push %eax 32e: e8 85 fd ff ff call b8 <ls> 333: 83 c4 10 add $0x10,%esp if(argc < 2){ ls("."); exit(); } for(i=1; i<argc; i++) 336: 83 45 f4 01 addl $0x1,-0xc(%ebp) 33a: 8b 45 f4 mov -0xc(%ebp),%eax 33d: 3b 03 cmp (%ebx),%eax 33f: 7c d8 jl 319 <main+0x37> ls(argv[i]); exit(); 341: e8 57 02 00 00 call 59d <exit> 00000346 <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 346: 55 push %ebp 347: 89 e5 mov %esp,%ebp 349: 57 push %edi 34a: 53 push %ebx asm volatile("cld; rep stosb" : 34b: 8b 4d 08 mov 0x8(%ebp),%ecx 34e: 8b 55 10 mov 0x10(%ebp),%edx 351: 8b 45 0c mov 0xc(%ebp),%eax 354: 89 cb mov %ecx,%ebx 356: 89 df mov %ebx,%edi 358: 89 d1 mov %edx,%ecx 35a: fc cld 35b: f3 aa rep stos %al,%es:(%edi) 35d: 89 ca mov %ecx,%edx 35f: 89 fb mov %edi,%ebx 361: 89 5d 08 mov %ebx,0x8(%ebp) 364: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 367: 90 nop 368: 5b pop %ebx 369: 5f pop %edi 36a: 5d pop %ebp 36b: c3 ret 0000036c <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 36c: 55 push %ebp 36d: 89 e5 mov %esp,%ebp 36f: 83 ec 10 sub $0x10,%esp char *os; os = s; 372: 8b 45 08 mov 0x8(%ebp),%eax 375: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) 378: 90 nop 379: 8b 45 08 mov 0x8(%ebp),%eax 37c: 8d 50 01 lea 0x1(%eax),%edx 37f: 89 55 08 mov %edx,0x8(%ebp) 382: 8b 55 0c mov 0xc(%ebp),%edx 385: 8d 4a 01 lea 0x1(%edx),%ecx 388: 89 4d 0c mov %ecx,0xc(%ebp) 38b: 0f b6 12 movzbl (%edx),%edx 38e: 88 10 mov %dl,(%eax) 390: 0f b6 00 movzbl (%eax),%eax 393: 84 c0 test %al,%al 395: 75 e2 jne 379 <strcpy+0xd> ; return os; 397: 8b 45 fc mov -0x4(%ebp),%eax } 39a: c9 leave 39b: c3 ret 0000039c <strcmp>: int strcmp(const char *p, const char *q) { 39c: 55 push %ebp 39d: 89 e5 mov %esp,%ebp while(*p && *p == *q) 39f: eb 08 jmp 3a9 <strcmp+0xd> p++, q++; 3a1: 83 45 08 01 addl $0x1,0x8(%ebp) 3a5: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 3a9: 8b 45 08 mov 0x8(%ebp),%eax 3ac: 0f b6 00 movzbl (%eax),%eax 3af: 84 c0 test %al,%al 3b1: 74 10 je 3c3 <strcmp+0x27> 3b3: 8b 45 08 mov 0x8(%ebp),%eax 3b6: 0f b6 10 movzbl (%eax),%edx 3b9: 8b 45 0c mov 0xc(%ebp),%eax 3bc: 0f b6 00 movzbl (%eax),%eax 3bf: 38 c2 cmp %al,%dl 3c1: 74 de je 3a1 <strcmp+0x5> p++, q++; return (uchar)*p - (uchar)*q; 3c3: 8b 45 08 mov 0x8(%ebp),%eax 3c6: 0f b6 00 movzbl (%eax),%eax 3c9: 0f b6 d0 movzbl %al,%edx 3cc: 8b 45 0c mov 0xc(%ebp),%eax 3cf: 0f b6 00 movzbl (%eax),%eax 3d2: 0f b6 c0 movzbl %al,%eax 3d5: 29 c2 sub %eax,%edx 3d7: 89 d0 mov %edx,%eax } 3d9: 5d pop %ebp 3da: c3 ret 000003db <strlen>: uint strlen(char *s) { 3db: 55 push %ebp 3dc: 89 e5 mov %esp,%ebp 3de: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 3e1: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 3e8: eb 04 jmp 3ee <strlen+0x13> 3ea: 83 45 fc 01 addl $0x1,-0x4(%ebp) 3ee: 8b 55 fc mov -0x4(%ebp),%edx 3f1: 8b 45 08 mov 0x8(%ebp),%eax 3f4: 01 d0 add %edx,%eax 3f6: 0f b6 00 movzbl (%eax),%eax 3f9: 84 c0 test %al,%al 3fb: 75 ed jne 3ea <strlen+0xf> ; return n; 3fd: 8b 45 fc mov -0x4(%ebp),%eax } 400: c9 leave 401: c3 ret 00000402 <memset>: void* memset(void *dst, int c, uint n) { 402: 55 push %ebp 403: 89 e5 mov %esp,%ebp stosb(dst, c, n); 405: 8b 45 10 mov 0x10(%ebp),%eax 408: 50 push %eax 409: ff 75 0c pushl 0xc(%ebp) 40c: ff 75 08 pushl 0x8(%ebp) 40f: e8 32 ff ff ff call 346 <stosb> 414: 83 c4 0c add $0xc,%esp return dst; 417: 8b 45 08 mov 0x8(%ebp),%eax } 41a: c9 leave 41b: c3 ret 0000041c <strchr>: char* strchr(const char *s, char c) { 41c: 55 push %ebp 41d: 89 e5 mov %esp,%ebp 41f: 83 ec 04 sub $0x4,%esp 422: 8b 45 0c mov 0xc(%ebp),%eax 425: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 428: eb 14 jmp 43e <strchr+0x22> if(*s == c) 42a: 8b 45 08 mov 0x8(%ebp),%eax 42d: 0f b6 00 movzbl (%eax),%eax 430: 3a 45 fc cmp -0x4(%ebp),%al 433: 75 05 jne 43a <strchr+0x1e> return (char*)s; 435: 8b 45 08 mov 0x8(%ebp),%eax 438: eb 13 jmp 44d <strchr+0x31> } char* strchr(const char *s, char c) { for(; *s; s++) 43a: 83 45 08 01 addl $0x1,0x8(%ebp) 43e: 8b 45 08 mov 0x8(%ebp),%eax 441: 0f b6 00 movzbl (%eax),%eax 444: 84 c0 test %al,%al 446: 75 e2 jne 42a <strchr+0xe> if(*s == c) return (char*)s; return 0; 448: b8 00 00 00 00 mov $0x0,%eax } 44d: c9 leave 44e: c3 ret 0000044f <gets>: char* gets(char *buf, int max) { 44f: 55 push %ebp 450: 89 e5 mov %esp,%ebp 452: 83 ec 18 sub $0x18,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 455: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 45c: eb 42 jmp 4a0 <gets+0x51> cc = read(0, &c, 1); 45e: 83 ec 04 sub $0x4,%esp 461: 6a 01 push $0x1 463: 8d 45 ef lea -0x11(%ebp),%eax 466: 50 push %eax 467: 6a 00 push $0x0 469: e8 47 01 00 00 call 5b5 <read> 46e: 83 c4 10 add $0x10,%esp 471: 89 45 f0 mov %eax,-0x10(%ebp) if(cc < 1) 474: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 478: 7e 33 jle 4ad <gets+0x5e> break; buf[i++] = c; 47a: 8b 45 f4 mov -0xc(%ebp),%eax 47d: 8d 50 01 lea 0x1(%eax),%edx 480: 89 55 f4 mov %edx,-0xc(%ebp) 483: 89 c2 mov %eax,%edx 485: 8b 45 08 mov 0x8(%ebp),%eax 488: 01 c2 add %eax,%edx 48a: 0f b6 45 ef movzbl -0x11(%ebp),%eax 48e: 88 02 mov %al,(%edx) if(c == '\n' || c == '\r') 490: 0f b6 45 ef movzbl -0x11(%ebp),%eax 494: 3c 0a cmp $0xa,%al 496: 74 16 je 4ae <gets+0x5f> 498: 0f b6 45 ef movzbl -0x11(%ebp),%eax 49c: 3c 0d cmp $0xd,%al 49e: 74 0e je 4ae <gets+0x5f> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 4a0: 8b 45 f4 mov -0xc(%ebp),%eax 4a3: 83 c0 01 add $0x1,%eax 4a6: 3b 45 0c cmp 0xc(%ebp),%eax 4a9: 7c b3 jl 45e <gets+0xf> 4ab: eb 01 jmp 4ae <gets+0x5f> cc = read(0, &c, 1); if(cc < 1) break; 4ad: 90 nop buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 4ae: 8b 55 f4 mov -0xc(%ebp),%edx 4b1: 8b 45 08 mov 0x8(%ebp),%eax 4b4: 01 d0 add %edx,%eax 4b6: c6 00 00 movb $0x0,(%eax) return buf; 4b9: 8b 45 08 mov 0x8(%ebp),%eax } 4bc: c9 leave 4bd: c3 ret 000004be <stat>: int stat(char *n, struct stat *st) { 4be: 55 push %ebp 4bf: 89 e5 mov %esp,%ebp 4c1: 83 ec 18 sub $0x18,%esp int fd; int r; fd = open(n, O_RDONLY); 4c4: 83 ec 08 sub $0x8,%esp 4c7: 6a 00 push $0x0 4c9: ff 75 08 pushl 0x8(%ebp) 4cc: e8 0c 01 00 00 call 5dd <open> 4d1: 83 c4 10 add $0x10,%esp 4d4: 89 45 f4 mov %eax,-0xc(%ebp) if(fd < 0) 4d7: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 4db: 79 07 jns 4e4 <stat+0x26> return -1; 4dd: b8 ff ff ff ff mov $0xffffffff,%eax 4e2: eb 25 jmp 509 <stat+0x4b> r = fstat(fd, st); 4e4: 83 ec 08 sub $0x8,%esp 4e7: ff 75 0c pushl 0xc(%ebp) 4ea: ff 75 f4 pushl -0xc(%ebp) 4ed: e8 03 01 00 00 call 5f5 <fstat> 4f2: 83 c4 10 add $0x10,%esp 4f5: 89 45 f0 mov %eax,-0x10(%ebp) close(fd); 4f8: 83 ec 0c sub $0xc,%esp 4fb: ff 75 f4 pushl -0xc(%ebp) 4fe: e8 c2 00 00 00 call 5c5 <close> 503: 83 c4 10 add $0x10,%esp return r; 506: 8b 45 f0 mov -0x10(%ebp),%eax } 509: c9 leave 50a: c3 ret 0000050b <atoi>: int atoi(const char *s) { 50b: 55 push %ebp 50c: 89 e5 mov %esp,%ebp 50e: 83 ec 10 sub $0x10,%esp int n; n = 0; 511: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while('0' <= *s && *s <= '9') 518: eb 25 jmp 53f <atoi+0x34> n = n*10 + *s++ - '0'; 51a: 8b 55 fc mov -0x4(%ebp),%edx 51d: 89 d0 mov %edx,%eax 51f: c1 e0 02 shl $0x2,%eax 522: 01 d0 add %edx,%eax 524: 01 c0 add %eax,%eax 526: 89 c1 mov %eax,%ecx 528: 8b 45 08 mov 0x8(%ebp),%eax 52b: 8d 50 01 lea 0x1(%eax),%edx 52e: 89 55 08 mov %edx,0x8(%ebp) 531: 0f b6 00 movzbl (%eax),%eax 534: 0f be c0 movsbl %al,%eax 537: 01 c8 add %ecx,%eax 539: 83 e8 30 sub $0x30,%eax 53c: 89 45 fc mov %eax,-0x4(%ebp) atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 53f: 8b 45 08 mov 0x8(%ebp),%eax 542: 0f b6 00 movzbl (%eax),%eax 545: 3c 2f cmp $0x2f,%al 547: 7e 0a jle 553 <atoi+0x48> 549: 8b 45 08 mov 0x8(%ebp),%eax 54c: 0f b6 00 movzbl (%eax),%eax 54f: 3c 39 cmp $0x39,%al 551: 7e c7 jle 51a <atoi+0xf> n = n*10 + *s++ - '0'; return n; 553: 8b 45 fc mov -0x4(%ebp),%eax } 556: c9 leave 557: c3 ret 00000558 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 558: 55 push %ebp 559: 89 e5 mov %esp,%ebp 55b: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 55e: 8b 45 08 mov 0x8(%ebp),%eax 561: 89 45 fc mov %eax,-0x4(%ebp) src = vsrc; 564: 8b 45 0c mov 0xc(%ebp),%eax 567: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0) 56a: eb 17 jmp 583 <memmove+0x2b> *dst++ = *src++; 56c: 8b 45 fc mov -0x4(%ebp),%eax 56f: 8d 50 01 lea 0x1(%eax),%edx 572: 89 55 fc mov %edx,-0x4(%ebp) 575: 8b 55 f8 mov -0x8(%ebp),%edx 578: 8d 4a 01 lea 0x1(%edx),%ecx 57b: 89 4d f8 mov %ecx,-0x8(%ebp) 57e: 0f b6 12 movzbl (%edx),%edx 581: 88 10 mov %dl,(%eax) { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 583: 8b 45 10 mov 0x10(%ebp),%eax 586: 8d 50 ff lea -0x1(%eax),%edx 589: 89 55 10 mov %edx,0x10(%ebp) 58c: 85 c0 test %eax,%eax 58e: 7f dc jg 56c <memmove+0x14> *dst++ = *src++; return vdst; 590: 8b 45 08 mov 0x8(%ebp),%eax } 593: c9 leave 594: c3 ret 00000595 <fork>: name : movl $str_ ## name, %eax; \ int $T_CS550HTSYSCALL; \ ret SYSCALL(fork) 595: b8 01 00 00 00 mov $0x1,%eax 59a: cd 40 int $0x40 59c: c3 ret 0000059d <exit>: SYSCALL(exit) 59d: b8 02 00 00 00 mov $0x2,%eax 5a2: cd 40 int $0x40 5a4: c3 ret 000005a5 <wait>: SYSCALL(wait) 5a5: b8 03 00 00 00 mov $0x3,%eax 5aa: cd 40 int $0x40 5ac: c3 ret 000005ad <pipe>: SYSCALL(pipe) 5ad: b8 04 00 00 00 mov $0x4,%eax 5b2: cd 40 int $0x40 5b4: c3 ret 000005b5 <read>: SYSCALL(read) 5b5: b8 05 00 00 00 mov $0x5,%eax 5ba: cd 40 int $0x40 5bc: c3 ret 000005bd <write>: SYSCALL(write) 5bd: b8 10 00 00 00 mov $0x10,%eax 5c2: cd 40 int $0x40 5c4: c3 ret 000005c5 <close>: SYSCALL(close) 5c5: b8 15 00 00 00 mov $0x15,%eax 5ca: cd 40 int $0x40 5cc: c3 ret 000005cd <kill>: SYSCALL(kill) 5cd: b8 06 00 00 00 mov $0x6,%eax 5d2: cd 40 int $0x40 5d4: c3 ret 000005d5 <exec>: SYSCALL(exec) 5d5: b8 07 00 00 00 mov $0x7,%eax 5da: cd 40 int $0x40 5dc: c3 ret 000005dd <open>: SYSCALL(open) 5dd: b8 0f 00 00 00 mov $0xf,%eax 5e2: cd 40 int $0x40 5e4: c3 ret 000005e5 <mknod>: SYSCALL(mknod) 5e5: b8 11 00 00 00 mov $0x11,%eax 5ea: cd 40 int $0x40 5ec: c3 ret 000005ed <unlink>: SYSCALL(unlink) 5ed: b8 12 00 00 00 mov $0x12,%eax 5f2: cd 40 int $0x40 5f4: c3 ret 000005f5 <fstat>: SYSCALL(fstat) 5f5: b8 08 00 00 00 mov $0x8,%eax 5fa: cd 40 int $0x40 5fc: c3 ret 000005fd <link>: SYSCALL(link) 5fd: b8 13 00 00 00 mov $0x13,%eax 602: cd 40 int $0x40 604: c3 ret 00000605 <mkdir>: SYSCALL(mkdir) 605: b8 14 00 00 00 mov $0x14,%eax 60a: cd 40 int $0x40 60c: c3 ret 0000060d <chdir>: SYSCALL(chdir) 60d: b8 09 00 00 00 mov $0x9,%eax 612: cd 40 int $0x40 614: c3 ret 00000615 <dup>: SYSCALL(dup) 615: b8 0a 00 00 00 mov $0xa,%eax 61a: cd 40 int $0x40 61c: c3 ret 0000061d <getpid>: SYSCALL(getpid) 61d: b8 0b 00 00 00 mov $0xb,%eax 622: cd 40 int $0x40 624: c3 ret 00000625 <sbrk>: SYSCALL(sbrk) 625: b8 0c 00 00 00 mov $0xc,%eax 62a: cd 40 int $0x40 62c: c3 ret 0000062d <sleep>: SYSCALL(sleep) 62d: b8 0d 00 00 00 mov $0xd,%eax 632: cd 40 int $0x40 634: c3 ret 00000635 <uptime>: SYSCALL(uptime) 635: b8 0e 00 00 00 mov $0xe,%eax 63a: cd 40 int $0x40 63c: c3 ret 0000063d <date>: // Assignment starts here SYSCALL(date) 63d: b8 16 00 00 00 mov $0x16,%eax 642: cd 40 int $0x40 644: c3 ret 00000645 <str_ls_call1>: 645: 6c insb (%dx),%es:(%edi) 646: 73 5f jae 6a7 <ls_call6+0x4> 648: 63 61 6c arpl %sp,0x6c(%ecx) 64b: 6c insb (%dx),%es:(%edi) 64c: 31 00 xor %eax,(%eax) 0000064e <ls_call1>: // ls call CS550LSSYSCALL(ls_call1) 64e: b8 45 06 00 00 mov $0x645,%eax 653: cd 41 int $0x41 655: c3 ret 00000656 <str_ls_call2>: 656: 6c insb (%dx),%es:(%edi) 657: 73 5f jae 6b8 <ls_call7+0x4> 659: 63 61 6c arpl %sp,0x6c(%ecx) 65c: 6c insb (%dx),%es:(%edi) 65d: 32 00 xor (%eax),%al 0000065f <ls_call2>: CS550LSSYSCALL(ls_call2) 65f: b8 56 06 00 00 mov $0x656,%eax 664: cd 41 int $0x41 666: c3 ret 00000667 <str_ls_call3>: 667: 6c insb (%dx),%es:(%edi) 668: 73 5f jae 6c9 <ls_call8+0x4> 66a: 63 61 6c arpl %sp,0x6c(%ecx) 66d: 6c insb (%dx),%es:(%edi) 66e: 33 00 xor (%eax),%eax 00000670 <ls_call3>: CS550LSSYSCALL(ls_call3) 670: b8 67 06 00 00 mov $0x667,%eax 675: cd 41 int $0x41 677: c3 ret 00000678 <str_ls_call4>: 678: 6c insb (%dx),%es:(%edi) 679: 73 5f jae 6da <ls_call9+0x4> 67b: 63 61 6c arpl %sp,0x6c(%ecx) 67e: 6c insb (%dx),%es:(%edi) 67f: 34 00 xor $0x0,%al 00000681 <ls_call4>: CS550LSSYSCALL(ls_call4) 681: b8 78 06 00 00 mov $0x678,%eax 686: cd 41 int $0x41 688: c3 ret 00000689 <str_ls_call5>: 689: 6c insb (%dx),%es:(%edi) 68a: 73 5f jae 6eb <ls_call10+0x3> 68c: 63 61 6c arpl %sp,0x6c(%ecx) 68f: 6c insb (%dx),%es:(%edi) 690: 35 .byte 0x35 ... 00000692 <ls_call5>: CS550LSSYSCALL(ls_call5) 692: b8 89 06 00 00 mov $0x689,%eax 697: cd 41 int $0x41 699: c3 ret 0000069a <str_ls_call6>: 69a: 6c insb (%dx),%es:(%edi) 69b: 73 5f jae 6fc <ls_call11+0x2> 69d: 63 61 6c arpl %sp,0x6c(%ecx) 6a0: 6c insb (%dx),%es:(%edi) 6a1: 36 ss ... 000006a3 <ls_call6>: CS550LSSYSCALL(ls_call6) 6a3: b8 9a 06 00 00 mov $0x69a,%eax 6a8: cd 41 int $0x41 6aa: c3 ret 000006ab <str_ls_call7>: 6ab: 6c insb (%dx),%es:(%edi) 6ac: 73 5f jae 70d <ls_call12+0x1> 6ae: 63 61 6c arpl %sp,0x6c(%ecx) 6b1: 6c insb (%dx),%es:(%edi) 6b2: 37 aaa ... 000006b4 <ls_call7>: CS550LSSYSCALL(ls_call7) 6b4: b8 ab 06 00 00 mov $0x6ab,%eax 6b9: cd 41 int $0x41 6bb: c3 ret 000006bc <str_ls_call8>: 6bc: 6c insb (%dx),%es:(%edi) 6bd: 73 5f jae 71e <ls_call13> 6bf: 63 61 6c arpl %sp,0x6c(%ecx) 6c2: 6c insb (%dx),%es:(%edi) 6c3: 38 00 cmp %al,(%eax) 000006c5 <ls_call8>: CS550LSSYSCALL(ls_call8) 6c5: b8 bc 06 00 00 mov $0x6bc,%eax 6ca: cd 41 int $0x41 6cc: c3 ret 000006cd <str_ls_call9>: 6cd: 6c insb (%dx),%es:(%edi) 6ce: 73 5f jae 72f <str_ls_call14+0x9> 6d0: 63 61 6c arpl %sp,0x6c(%ecx) 6d3: 6c insb (%dx),%es:(%edi) 6d4: 39 00 cmp %eax,(%eax) 000006d6 <ls_call9>: CS550LSSYSCALL(ls_call9) 6d6: b8 cd 06 00 00 mov $0x6cd,%eax 6db: cd 41 int $0x41 6dd: c3 ret 000006de <str_ls_call10>: 6de: 6c insb (%dx),%es:(%edi) 6df: 73 5f jae 740 <str_ls_call15+0x8> 6e1: 63 61 6c arpl %sp,0x6c(%ecx) 6e4: 6c insb (%dx),%es:(%edi) 6e5: 31 30 xor %esi,(%eax) ... 000006e8 <ls_call10>: CS550LSSYSCALL(ls_call10) 6e8: b8 de 06 00 00 mov $0x6de,%eax 6ed: cd 41 int $0x41 6ef: c3 ret 000006f0 <str_ls_call11>: 6f0: 6c insb (%dx),%es:(%edi) 6f1: 73 5f jae 752 <str_ls_call16+0x8> 6f3: 63 61 6c arpl %sp,0x6c(%ecx) 6f6: 6c insb (%dx),%es:(%edi) 6f7: 31 31 xor %esi,(%ecx) ... 000006fa <ls_call11>: CS550LSSYSCALL(ls_call11) 6fa: b8 f0 06 00 00 mov $0x6f0,%eax 6ff: cd 41 int $0x41 701: c3 ret 00000702 <str_ls_call12>: 702: 6c insb (%dx),%es:(%edi) 703: 73 5f jae 764 <str_ls_call17+0x8> 705: 63 61 6c arpl %sp,0x6c(%ecx) 708: 6c insb (%dx),%es:(%edi) 709: 31 32 xor %esi,(%edx) ... 0000070c <ls_call12>: CS550LSSYSCALL(ls_call12) 70c: b8 02 07 00 00 mov $0x702,%eax 711: cd 41 int $0x41 713: c3 ret 00000714 <str_ls_call13>: 714: 6c insb (%dx),%es:(%edi) 715: 73 5f jae 776 <str_ls_call18+0x8> 717: 63 61 6c arpl %sp,0x6c(%ecx) 71a: 6c insb (%dx),%es:(%edi) 71b: 31 33 xor %esi,(%ebx) ... 0000071e <ls_call13>: CS550LSSYSCALL(ls_call13) 71e: b8 14 07 00 00 mov $0x714,%eax 723: cd 41 int $0x41 725: c3 ret 00000726 <str_ls_call14>: 726: 6c insb (%dx),%es:(%edi) 727: 73 5f jae 788 <str_ls_call19+0x8> 729: 63 61 6c arpl %sp,0x6c(%ecx) 72c: 6c insb (%dx),%es:(%edi) 72d: 31 34 00 xor %esi,(%eax,%eax,1) 00000730 <ls_call14>: CS550LSSYSCALL(ls_call14) 730: b8 26 07 00 00 mov $0x726,%eax 735: cd 41 int $0x41 737: c3 ret 00000738 <str_ls_call15>: 738: 6c insb (%dx),%es:(%edi) 739: 73 5f jae 79a <str_ls_call20+0x8> 73b: 63 61 6c arpl %sp,0x6c(%ecx) 73e: 6c insb (%dx),%es:(%edi) 73f: 31 .byte 0x31 740: 35 .byte 0x35 ... 00000742 <ls_call15>: CS550LSSYSCALL(ls_call15) 742: b8 38 07 00 00 mov $0x738,%eax 747: cd 41 int $0x41 749: c3 ret 0000074a <str_ls_call16>: 74a: 6c insb (%dx),%es:(%edi) 74b: 73 5f jae 7ac <str_ls_call21+0x8> 74d: 63 61 6c arpl %sp,0x6c(%ecx) 750: 6c insb (%dx),%es:(%edi) 751: 31 36 xor %esi,(%esi) ... 00000754 <ls_call16>: CS550LSSYSCALL(ls_call16) 754: b8 4a 07 00 00 mov $0x74a,%eax 759: cd 41 int $0x41 75b: c3 ret 0000075c <str_ls_call17>: 75c: 6c insb (%dx),%es:(%edi) 75d: 73 5f jae 7be <str_ls_call22+0x8> 75f: 63 61 6c arpl %sp,0x6c(%ecx) 762: 6c insb (%dx),%es:(%edi) 763: 31 37 xor %esi,(%edi) ... 00000766 <ls_call17>: CS550LSSYSCALL(ls_call17) 766: b8 5c 07 00 00 mov $0x75c,%eax 76b: cd 41 int $0x41 76d: c3 ret 0000076e <str_ls_call18>: 76e: 6c insb (%dx),%es:(%edi) 76f: 73 5f jae 7d0 <str_ls_call23+0x8> 771: 63 61 6c arpl %sp,0x6c(%ecx) 774: 6c insb (%dx),%es:(%edi) 775: 31 38 xor %edi,(%eax) ... 00000778 <ls_call18>: CS550LSSYSCALL(ls_call18) 778: b8 6e 07 00 00 mov $0x76e,%eax 77d: cd 41 int $0x41 77f: c3 ret 00000780 <str_ls_call19>: 780: 6c insb (%dx),%es:(%edi) 781: 73 5f jae 7e2 <str_ls_call24+0x8> 783: 63 61 6c arpl %sp,0x6c(%ecx) 786: 6c insb (%dx),%es:(%edi) 787: 31 39 xor %edi,(%ecx) ... 0000078a <ls_call19>: CS550LSSYSCALL(ls_call19) 78a: b8 80 07 00 00 mov $0x780,%eax 78f: cd 41 int $0x41 791: c3 ret 00000792 <str_ls_call20>: 792: 6c insb (%dx),%es:(%edi) 793: 73 5f jae 7f4 <str_ls_call25+0x8> 795: 63 61 6c arpl %sp,0x6c(%ecx) 798: 6c insb (%dx),%es:(%edi) 799: 32 30 xor (%eax),%dh ... 0000079c <ls_call20>: CS550LSSYSCALL(ls_call20) 79c: b8 92 07 00 00 mov $0x792,%eax 7a1: cd 41 int $0x41 7a3: c3 ret 000007a4 <str_ls_call21>: 7a4: 6c insb (%dx),%es:(%edi) 7a5: 73 5f jae 806 <str_ls_call26+0x8> 7a7: 63 61 6c arpl %sp,0x6c(%ecx) 7aa: 6c insb (%dx),%es:(%edi) 7ab: 32 31 xor (%ecx),%dh ... 000007ae <ls_call21>: CS550LSSYSCALL(ls_call21) 7ae: b8 a4 07 00 00 mov $0x7a4,%eax 7b3: cd 41 int $0x41 7b5: c3 ret 000007b6 <str_ls_call22>: 7b6: 6c insb (%dx),%es:(%edi) 7b7: 73 5f jae 818 <str_ls_call27+0x8> 7b9: 63 61 6c arpl %sp,0x6c(%ecx) 7bc: 6c insb (%dx),%es:(%edi) 7bd: 32 32 xor (%edx),%dh ... 000007c0 <ls_call22>: CS550LSSYSCALL(ls_call22) 7c0: b8 b6 07 00 00 mov $0x7b6,%eax 7c5: cd 41 int $0x41 7c7: c3 ret 000007c8 <str_ls_call23>: 7c8: 6c insb (%dx),%es:(%edi) 7c9: 73 5f jae 82a <str_ls_call28+0x8> 7cb: 63 61 6c arpl %sp,0x6c(%ecx) 7ce: 6c insb (%dx),%es:(%edi) 7cf: 32 33 xor (%ebx),%dh ... 000007d2 <ls_call23>: CS550LSSYSCALL(ls_call23) 7d2: b8 c8 07 00 00 mov $0x7c8,%eax 7d7: cd 41 int $0x41 7d9: c3 ret 000007da <str_ls_call24>: 7da: 6c insb (%dx),%es:(%edi) 7db: 73 5f jae 83c <str_ls_call29+0x8> 7dd: 63 61 6c arpl %sp,0x6c(%ecx) 7e0: 6c insb (%dx),%es:(%edi) 7e1: 32 34 00 xor (%eax,%eax,1),%dh 000007e4 <ls_call24>: CS550LSSYSCALL(ls_call24) 7e4: b8 da 07 00 00 mov $0x7da,%eax 7e9: cd 41 int $0x41 7eb: c3 ret 000007ec <str_ls_call25>: 7ec: 6c insb (%dx),%es:(%edi) 7ed: 73 5f jae 84e <str_ls_call30+0x8> 7ef: 63 61 6c arpl %sp,0x6c(%ecx) 7f2: 6c insb (%dx),%es:(%edi) 7f3: 32 .byte 0x32 7f4: 35 .byte 0x35 ... 000007f6 <ls_call25>: CS550LSSYSCALL(ls_call25) 7f6: b8 ec 07 00 00 mov $0x7ec,%eax 7fb: cd 41 int $0x41 7fd: c3 ret 000007fe <str_ls_call26>: 7fe: 6c insb (%dx),%es:(%edi) 7ff: 73 5f jae 860 <str_ls_call31+0x8> 801: 63 61 6c arpl %sp,0x6c(%ecx) 804: 6c insb (%dx),%es:(%edi) 805: 32 36 xor (%esi),%dh ... 00000808 <ls_call26>: CS550LSSYSCALL(ls_call26) 808: b8 fe 07 00 00 mov $0x7fe,%eax 80d: cd 41 int $0x41 80f: c3 ret 00000810 <str_ls_call27>: 810: 6c insb (%dx),%es:(%edi) 811: 73 5f jae 872 <str_ls_call32+0x8> 813: 63 61 6c arpl %sp,0x6c(%ecx) 816: 6c insb (%dx),%es:(%edi) 817: 32 37 xor (%edi),%dh ... 0000081a <ls_call27>: CS550LSSYSCALL(ls_call27) 81a: b8 10 08 00 00 mov $0x810,%eax 81f: cd 41 int $0x41 821: c3 ret 00000822 <str_ls_call28>: 822: 6c insb (%dx),%es:(%edi) 823: 73 5f jae 884 <str_ls_call33+0x8> 825: 63 61 6c arpl %sp,0x6c(%ecx) 828: 6c insb (%dx),%es:(%edi) 829: 32 38 xor (%eax),%bh ... 0000082c <ls_call28>: CS550LSSYSCALL(ls_call28) 82c: b8 22 08 00 00 mov $0x822,%eax 831: cd 41 int $0x41 833: c3 ret 00000834 <str_ls_call29>: 834: 6c insb (%dx),%es:(%edi) 835: 73 5f jae 896 <str_ls_call34+0x8> 837: 63 61 6c arpl %sp,0x6c(%ecx) 83a: 6c insb (%dx),%es:(%edi) 83b: 32 39 xor (%ecx),%bh ... 0000083e <ls_call29>: CS550LSSYSCALL(ls_call29) 83e: b8 34 08 00 00 mov $0x834,%eax 843: cd 41 int $0x41 845: c3 ret 00000846 <str_ls_call30>: 846: 6c insb (%dx),%es:(%edi) 847: 73 5f jae 8a8 <str_ls_call35+0x8> 849: 63 61 6c arpl %sp,0x6c(%ecx) 84c: 6c insb (%dx),%es:(%edi) 84d: 33 30 xor (%eax),%esi ... 00000850 <ls_call30>: CS550LSSYSCALL(ls_call30) 850: b8 46 08 00 00 mov $0x846,%eax 855: cd 41 int $0x41 857: c3 ret 00000858 <str_ls_call31>: 858: 6c insb (%dx),%es:(%edi) 859: 73 5f jae 8ba <str_ls_call36+0x8> 85b: 63 61 6c arpl %sp,0x6c(%ecx) 85e: 6c insb (%dx),%es:(%edi) 85f: 33 31 xor (%ecx),%esi ... 00000862 <ls_call31>: CS550LSSYSCALL(ls_call31) 862: b8 58 08 00 00 mov $0x858,%eax 867: cd 41 int $0x41 869: c3 ret 0000086a <str_ls_call32>: 86a: 6c insb (%dx),%es:(%edi) 86b: 73 5f jae 8cc <str_ls_call37+0x8> 86d: 63 61 6c arpl %sp,0x6c(%ecx) 870: 6c insb (%dx),%es:(%edi) 871: 33 32 xor (%edx),%esi ... 00000874 <ls_call32>: CS550LSSYSCALL(ls_call32) 874: b8 6a 08 00 00 mov $0x86a,%eax 879: cd 41 int $0x41 87b: c3 ret 0000087c <str_ls_call33>: 87c: 6c insb (%dx),%es:(%edi) 87d: 73 5f jae 8de <str_ls_call38+0x8> 87f: 63 61 6c arpl %sp,0x6c(%ecx) 882: 6c insb (%dx),%es:(%edi) 883: 33 33 xor (%ebx),%esi ... 00000886 <ls_call33>: CS550LSSYSCALL(ls_call33) 886: b8 7c 08 00 00 mov $0x87c,%eax 88b: cd 41 int $0x41 88d: c3 ret 0000088e <str_ls_call34>: 88e: 6c insb (%dx),%es:(%edi) 88f: 73 5f jae 8f0 <str_ls_call39+0x8> 891: 63 61 6c arpl %sp,0x6c(%ecx) 894: 6c insb (%dx),%es:(%edi) 895: 33 34 00 xor (%eax,%eax,1),%esi 00000898 <ls_call34>: CS550LSSYSCALL(ls_call34) 898: b8 8e 08 00 00 mov $0x88e,%eax 89d: cd 41 int $0x41 89f: c3 ret 000008a0 <str_ls_call35>: 8a0: 6c insb (%dx),%es:(%edi) 8a1: 73 5f jae 902 <str_ls_call40+0x8> 8a3: 63 61 6c arpl %sp,0x6c(%ecx) 8a6: 6c insb (%dx),%es:(%edi) 8a7: 33 .byte 0x33 8a8: 35 .byte 0x35 ... 000008aa <ls_call35>: CS550LSSYSCALL(ls_call35) 8aa: b8 a0 08 00 00 mov $0x8a0,%eax 8af: cd 41 int $0x41 8b1: c3 ret 000008b2 <str_ls_call36>: 8b2: 6c insb (%dx),%es:(%edi) 8b3: 73 5f jae 914 <str_ls_call41+0x8> 8b5: 63 61 6c arpl %sp,0x6c(%ecx) 8b8: 6c insb (%dx),%es:(%edi) 8b9: 33 36 xor (%esi),%esi ... 000008bc <ls_call36>: CS550LSSYSCALL(ls_call36) 8bc: b8 b2 08 00 00 mov $0x8b2,%eax 8c1: cd 41 int $0x41 8c3: c3 ret 000008c4 <str_ls_call37>: 8c4: 6c insb (%dx),%es:(%edi) 8c5: 73 5f jae 926 <str_ls_call42+0x8> 8c7: 63 61 6c arpl %sp,0x6c(%ecx) 8ca: 6c insb (%dx),%es:(%edi) 8cb: 33 37 xor (%edi),%esi ... 000008ce <ls_call37>: CS550LSSYSCALL(ls_call37) 8ce: b8 c4 08 00 00 mov $0x8c4,%eax 8d3: cd 41 int $0x41 8d5: c3 ret 000008d6 <str_ls_call38>: 8d6: 6c insb (%dx),%es:(%edi) 8d7: 73 5f jae 938 <str_ls_call43+0x8> 8d9: 63 61 6c arpl %sp,0x6c(%ecx) 8dc: 6c insb (%dx),%es:(%edi) 8dd: 33 38 xor (%eax),%edi ... 000008e0 <ls_call38>: CS550LSSYSCALL(ls_call38) 8e0: b8 d6 08 00 00 mov $0x8d6,%eax 8e5: cd 41 int $0x41 8e7: c3 ret 000008e8 <str_ls_call39>: 8e8: 6c insb (%dx),%es:(%edi) 8e9: 73 5f jae 94a <str_ls_call44+0x8> 8eb: 63 61 6c arpl %sp,0x6c(%ecx) 8ee: 6c insb (%dx),%es:(%edi) 8ef: 33 39 xor (%ecx),%edi ... 000008f2 <ls_call39>: CS550LSSYSCALL(ls_call39) 8f2: b8 e8 08 00 00 mov $0x8e8,%eax 8f7: cd 41 int $0x41 8f9: c3 ret 000008fa <str_ls_call40>: 8fa: 6c insb (%dx),%es:(%edi) 8fb: 73 5f jae 95c <str_ls_call45+0x8> 8fd: 63 61 6c arpl %sp,0x6c(%ecx) 900: 6c insb (%dx),%es:(%edi) 901: 34 30 xor $0x30,%al ... 00000904 <ls_call40>: CS550LSSYSCALL(ls_call40) 904: b8 fa 08 00 00 mov $0x8fa,%eax 909: cd 41 int $0x41 90b: c3 ret 0000090c <str_ls_call41>: 90c: 6c insb (%dx),%es:(%edi) 90d: 73 5f jae 96e <str_ls_call46+0x8> 90f: 63 61 6c arpl %sp,0x6c(%ecx) 912: 6c insb (%dx),%es:(%edi) 913: 34 31 xor $0x31,%al ... 00000916 <ls_call41>: CS550LSSYSCALL(ls_call41) 916: b8 0c 09 00 00 mov $0x90c,%eax 91b: cd 41 int $0x41 91d: c3 ret 0000091e <str_ls_call42>: 91e: 6c insb (%dx),%es:(%edi) 91f: 73 5f jae 980 <str_ls_call47+0x8> 921: 63 61 6c arpl %sp,0x6c(%ecx) 924: 6c insb (%dx),%es:(%edi) 925: 34 32 xor $0x32,%al ... 00000928 <ls_call42>: CS550LSSYSCALL(ls_call42) 928: b8 1e 09 00 00 mov $0x91e,%eax 92d: cd 41 int $0x41 92f: c3 ret 00000930 <str_ls_call43>: 930: 6c insb (%dx),%es:(%edi) 931: 73 5f jae 992 <str_ls_call48+0x8> 933: 63 61 6c arpl %sp,0x6c(%ecx) 936: 6c insb (%dx),%es:(%edi) 937: 34 33 xor $0x33,%al ... 0000093a <ls_call43>: CS550LSSYSCALL(ls_call43) 93a: b8 30 09 00 00 mov $0x930,%eax 93f: cd 41 int $0x41 941: c3 ret 00000942 <str_ls_call44>: 942: 6c insb (%dx),%es:(%edi) 943: 73 5f jae 9a4 <str_ls_call49+0x8> 945: 63 61 6c arpl %sp,0x6c(%ecx) 948: 6c insb (%dx),%es:(%edi) 949: 34 34 xor $0x34,%al ... 0000094c <ls_call44>: CS550LSSYSCALL(ls_call44) 94c: b8 42 09 00 00 mov $0x942,%eax 951: cd 41 int $0x41 953: c3 ret 00000954 <str_ls_call45>: 954: 6c insb (%dx),%es:(%edi) 955: 73 5f jae 9b6 <str_ls_call50+0x8> 957: 63 61 6c arpl %sp,0x6c(%ecx) 95a: 6c insb (%dx),%es:(%edi) 95b: 34 35 xor $0x35,%al ... 0000095e <ls_call45>: CS550LSSYSCALL(ls_call45) 95e: b8 54 09 00 00 mov $0x954,%eax 963: cd 41 int $0x41 965: c3 ret 00000966 <str_ls_call46>: 966: 6c insb (%dx),%es:(%edi) 967: 73 5f jae 9c8 <str_ht_call1+0x8> 969: 63 61 6c arpl %sp,0x6c(%ecx) 96c: 6c insb (%dx),%es:(%edi) 96d: 34 36 xor $0x36,%al ... 00000970 <ls_call46>: CS550LSSYSCALL(ls_call46) 970: b8 66 09 00 00 mov $0x966,%eax 975: cd 41 int $0x41 977: c3 ret 00000978 <str_ls_call47>: 978: 6c insb (%dx),%es:(%edi) 979: 73 5f jae 9da <ht_call2> 97b: 63 61 6c arpl %sp,0x6c(%ecx) 97e: 6c insb (%dx),%es:(%edi) 97f: 34 37 xor $0x37,%al ... 00000982 <ls_call47>: CS550LSSYSCALL(ls_call47) 982: b8 78 09 00 00 mov $0x978,%eax 987: cd 41 int $0x41 989: c3 ret 0000098a <str_ls_call48>: 98a: 6c insb (%dx),%es:(%edi) 98b: 73 5f jae 9ec <ht_call3+0x1> 98d: 63 61 6c arpl %sp,0x6c(%ecx) 990: 6c insb (%dx),%es:(%edi) 991: 34 38 xor $0x38,%al ... 00000994 <ls_call48>: CS550LSSYSCALL(ls_call48) 994: b8 8a 09 00 00 mov $0x98a,%eax 999: cd 41 int $0x41 99b: c3 ret 0000099c <str_ls_call49>: 99c: 6c insb (%dx),%es:(%edi) 99d: 73 5f jae 9fe <ht_call4+0x2> 99f: 63 61 6c arpl %sp,0x6c(%ecx) 9a2: 6c insb (%dx),%es:(%edi) 9a3: 34 39 xor $0x39,%al ... 000009a6 <ls_call49>: CS550LSSYSCALL(ls_call49) 9a6: b8 9c 09 00 00 mov $0x99c,%eax 9ab: cd 41 int $0x41 9ad: c3 ret 000009ae <str_ls_call50>: 9ae: 6c insb (%dx),%es:(%edi) 9af: 73 5f jae a10 <ht_call5+0x3> 9b1: 63 61 6c arpl %sp,0x6c(%ecx) 9b4: 6c insb (%dx),%es:(%edi) 9b5: 35 .byte 0x35 9b6: 30 00 xor %al,(%eax) 000009b8 <ls_call50>: CS550LSSYSCALL(ls_call50) 9b8: b8 ae 09 00 00 mov $0x9ae,%eax 9bd: cd 41 int $0x41 9bf: c3 ret 000009c0 <str_ht_call1>: 9c0: 68 74 5f 63 61 push $0x61635f74 9c5: 6c insb (%dx),%es:(%edi) 9c6: 6c insb (%dx),%es:(%edi) 9c7: 31 00 xor %eax,(%eax) 000009c9 <ht_call1>: // ht calls CS550HTSYSCALL(ht_call1) 9c9: b8 c0 09 00 00 mov $0x9c0,%eax 9ce: cd 42 int $0x42 9d0: c3 ret 000009d1 <str_ht_call2>: 9d1: 68 74 5f 63 61 push $0x61635f74 9d6: 6c insb (%dx),%es:(%edi) 9d7: 6c insb (%dx),%es:(%edi) 9d8: 32 00 xor (%eax),%al 000009da <ht_call2>: CS550HTSYSCALL(ht_call2) 9da: b8 d1 09 00 00 mov $0x9d1,%eax 9df: cd 42 int $0x42 9e1: c3 ret 000009e2 <str_ht_call3>: 9e2: 68 74 5f 63 61 push $0x61635f74 9e7: 6c insb (%dx),%es:(%edi) 9e8: 6c insb (%dx),%es:(%edi) 9e9: 33 00 xor (%eax),%eax 000009eb <ht_call3>: CS550HTSYSCALL(ht_call3) 9eb: b8 e2 09 00 00 mov $0x9e2,%eax 9f0: cd 42 int $0x42 9f2: c3 ret 000009f3 <str_ht_call4>: 9f3: 68 74 5f 63 61 push $0x61635f74 9f8: 6c insb (%dx),%es:(%edi) 9f9: 6c insb (%dx),%es:(%edi) 9fa: 34 00 xor $0x0,%al 000009fc <ht_call4>: CS550HTSYSCALL(ht_call4) 9fc: b8 f3 09 00 00 mov $0x9f3,%eax a01: cd 42 int $0x42 a03: c3 ret 00000a04 <str_ht_call5>: a04: 68 74 5f 63 61 push $0x61635f74 a09: 6c insb (%dx),%es:(%edi) a0a: 6c insb (%dx),%es:(%edi) a0b: 35 .byte 0x35 ... 00000a0d <ht_call5>: CS550HTSYSCALL(ht_call5) a0d: b8 04 0a 00 00 mov $0xa04,%eax a12: cd 42 int $0x42 a14: c3 ret 00000a15 <str_ht_call6>: a15: 68 74 5f 63 61 push $0x61635f74 a1a: 6c insb (%dx),%es:(%edi) a1b: 6c insb (%dx),%es:(%edi) a1c: 36 ss ... 00000a1e <ht_call6>: CS550HTSYSCALL(ht_call6) a1e: b8 15 0a 00 00 mov $0xa15,%eax a23: cd 42 int $0x42 a25: c3 ret 00000a26 <str_ht_call7>: a26: 68 74 5f 63 61 push $0x61635f74 a2b: 6c insb (%dx),%es:(%edi) a2c: 6c insb (%dx),%es:(%edi) a2d: 37 aaa ... 00000a2f <ht_call7>: CS550HTSYSCALL(ht_call7) a2f: b8 26 0a 00 00 mov $0xa26,%eax a34: cd 42 int $0x42 a36: c3 ret 00000a37 <str_ht_call8>: a37: 68 74 5f 63 61 push $0x61635f74 a3c: 6c insb (%dx),%es:(%edi) a3d: 6c insb (%dx),%es:(%edi) a3e: 38 00 cmp %al,(%eax) 00000a40 <ht_call8>: CS550HTSYSCALL(ht_call8) a40: b8 37 0a 00 00 mov $0xa37,%eax a45: cd 42 int $0x42 a47: c3 ret 00000a48 <str_ht_call9>: a48: 68 74 5f 63 61 push $0x61635f74 a4d: 6c insb (%dx),%es:(%edi) a4e: 6c insb (%dx),%es:(%edi) a4f: 39 00 cmp %eax,(%eax) 00000a51 <ht_call9>: CS550HTSYSCALL(ht_call9) a51: b8 48 0a 00 00 mov $0xa48,%eax a56: cd 42 int $0x42 a58: c3 ret 00000a59 <str_ht_call10>: a59: 68 74 5f 63 61 push $0x61635f74 a5e: 6c insb (%dx),%es:(%edi) a5f: 6c insb (%dx),%es:(%edi) a60: 31 30 xor %esi,(%eax) ... 00000a63 <ht_call10>: CS550HTSYSCALL(ht_call10) a63: b8 59 0a 00 00 mov $0xa59,%eax a68: cd 42 int $0x42 a6a: c3 ret 00000a6b <str_ht_call11>: a6b: 68 74 5f 63 61 push $0x61635f74 a70: 6c insb (%dx),%es:(%edi) a71: 6c insb (%dx),%es:(%edi) a72: 31 31 xor %esi,(%ecx) ... 00000a75 <ht_call11>: CS550HTSYSCALL(ht_call11) a75: b8 6b 0a 00 00 mov $0xa6b,%eax a7a: cd 42 int $0x42 a7c: c3 ret 00000a7d <str_ht_call12>: a7d: 68 74 5f 63 61 push $0x61635f74 a82: 6c insb (%dx),%es:(%edi) a83: 6c insb (%dx),%es:(%edi) a84: 31 32 xor %esi,(%edx) ... 00000a87 <ht_call12>: CS550HTSYSCALL(ht_call12) a87: b8 7d 0a 00 00 mov $0xa7d,%eax a8c: cd 42 int $0x42 a8e: c3 ret 00000a8f <str_ht_call13>: a8f: 68 74 5f 63 61 push $0x61635f74 a94: 6c insb (%dx),%es:(%edi) a95: 6c insb (%dx),%es:(%edi) a96: 31 33 xor %esi,(%ebx) ... 00000a99 <ht_call13>: CS550HTSYSCALL(ht_call13) a99: b8 8f 0a 00 00 mov $0xa8f,%eax a9e: cd 42 int $0x42 aa0: c3 ret 00000aa1 <str_ht_call14>: aa1: 68 74 5f 63 61 push $0x61635f74 aa6: 6c insb (%dx),%es:(%edi) aa7: 6c insb (%dx),%es:(%edi) aa8: 31 34 00 xor %esi,(%eax,%eax,1) 00000aab <ht_call14>: CS550HTSYSCALL(ht_call14) aab: b8 a1 0a 00 00 mov $0xaa1,%eax ab0: cd 42 int $0x42 ab2: c3 ret 00000ab3 <str_ht_call15>: ab3: 68 74 5f 63 61 push $0x61635f74 ab8: 6c insb (%dx),%es:(%edi) ab9: 6c insb (%dx),%es:(%edi) aba: 31 .byte 0x31 abb: 35 .byte 0x35 ... 00000abd <ht_call15>: CS550HTSYSCALL(ht_call15) abd: b8 b3 0a 00 00 mov $0xab3,%eax ac2: cd 42 int $0x42 ac4: c3 ret 00000ac5 <str_ht_call16>: ac5: 68 74 5f 63 61 push $0x61635f74 aca: 6c insb (%dx),%es:(%edi) acb: 6c insb (%dx),%es:(%edi) acc: 31 36 xor %esi,(%esi) ... 00000acf <ht_call16>: CS550HTSYSCALL(ht_call16) acf: b8 c5 0a 00 00 mov $0xac5,%eax ad4: cd 42 int $0x42 ad6: c3 ret 00000ad7 <str_ht_call17>: ad7: 68 74 5f 63 61 push $0x61635f74 adc: 6c insb (%dx),%es:(%edi) add: 6c insb (%dx),%es:(%edi) ade: 31 37 xor %esi,(%edi) ... 00000ae1 <ht_call17>: CS550HTSYSCALL(ht_call17) ae1: b8 d7 0a 00 00 mov $0xad7,%eax ae6: cd 42 int $0x42 ae8: c3 ret 00000ae9 <str_ht_call18>: ae9: 68 74 5f 63 61 push $0x61635f74 aee: 6c insb (%dx),%es:(%edi) aef: 6c insb (%dx),%es:(%edi) af0: 31 38 xor %edi,(%eax) ... 00000af3 <ht_call18>: CS550HTSYSCALL(ht_call18) af3: b8 e9 0a 00 00 mov $0xae9,%eax af8: cd 42 int $0x42 afa: c3 ret 00000afb <str_ht_call19>: afb: 68 74 5f 63 61 push $0x61635f74 b00: 6c insb (%dx),%es:(%edi) b01: 6c insb (%dx),%es:(%edi) b02: 31 39 xor %edi,(%ecx) ... 00000b05 <ht_call19>: CS550HTSYSCALL(ht_call19) b05: b8 fb 0a 00 00 mov $0xafb,%eax b0a: cd 42 int $0x42 b0c: c3 ret 00000b0d <str_ht_call20>: b0d: 68 74 5f 63 61 push $0x61635f74 b12: 6c insb (%dx),%es:(%edi) b13: 6c insb (%dx),%es:(%edi) b14: 32 30 xor (%eax),%dh ... 00000b17 <ht_call20>: CS550HTSYSCALL(ht_call20) b17: b8 0d 0b 00 00 mov $0xb0d,%eax b1c: cd 42 int $0x42 b1e: c3 ret 00000b1f <str_ht_call21>: b1f: 68 74 5f 63 61 push $0x61635f74 b24: 6c insb (%dx),%es:(%edi) b25: 6c insb (%dx),%es:(%edi) b26: 32 31 xor (%ecx),%dh ... 00000b29 <ht_call21>: CS550HTSYSCALL(ht_call21) b29: b8 1f 0b 00 00 mov $0xb1f,%eax b2e: cd 42 int $0x42 b30: c3 ret 00000b31 <str_ht_call22>: b31: 68 74 5f 63 61 push $0x61635f74 b36: 6c insb (%dx),%es:(%edi) b37: 6c insb (%dx),%es:(%edi) b38: 32 32 xor (%edx),%dh ... 00000b3b <ht_call22>: CS550HTSYSCALL(ht_call22) b3b: b8 31 0b 00 00 mov $0xb31,%eax b40: cd 42 int $0x42 b42: c3 ret 00000b43 <str_ht_call23>: b43: 68 74 5f 63 61 push $0x61635f74 b48: 6c insb (%dx),%es:(%edi) b49: 6c insb (%dx),%es:(%edi) b4a: 32 33 xor (%ebx),%dh ... 00000b4d <ht_call23>: CS550HTSYSCALL(ht_call23) b4d: b8 43 0b 00 00 mov $0xb43,%eax b52: cd 42 int $0x42 b54: c3 ret 00000b55 <str_ht_call24>: b55: 68 74 5f 63 61 push $0x61635f74 b5a: 6c insb (%dx),%es:(%edi) b5b: 6c insb (%dx),%es:(%edi) b5c: 32 34 00 xor (%eax,%eax,1),%dh 00000b5f <ht_call24>: CS550HTSYSCALL(ht_call24) b5f: b8 55 0b 00 00 mov $0xb55,%eax b64: cd 42 int $0x42 b66: c3 ret 00000b67 <str_ht_call25>: b67: 68 74 5f 63 61 push $0x61635f74 b6c: 6c insb (%dx),%es:(%edi) b6d: 6c insb (%dx),%es:(%edi) b6e: 32 .byte 0x32 b6f: 35 .byte 0x35 ... 00000b71 <ht_call25>: CS550HTSYSCALL(ht_call25) b71: b8 67 0b 00 00 mov $0xb67,%eax b76: cd 42 int $0x42 b78: c3 ret 00000b79 <str_ht_call26>: b79: 68 74 5f 63 61 push $0x61635f74 b7e: 6c insb (%dx),%es:(%edi) b7f: 6c insb (%dx),%es:(%edi) b80: 32 36 xor (%esi),%dh ... 00000b83 <ht_call26>: CS550HTSYSCALL(ht_call26) b83: b8 79 0b 00 00 mov $0xb79,%eax b88: cd 42 int $0x42 b8a: c3 ret 00000b8b <str_ht_call27>: b8b: 68 74 5f 63 61 push $0x61635f74 b90: 6c insb (%dx),%es:(%edi) b91: 6c insb (%dx),%es:(%edi) b92: 32 37 xor (%edi),%dh ... 00000b95 <ht_call27>: CS550HTSYSCALL(ht_call27) b95: b8 8b 0b 00 00 mov $0xb8b,%eax b9a: cd 42 int $0x42 b9c: c3 ret 00000b9d <str_ht_call28>: b9d: 68 74 5f 63 61 push $0x61635f74 ba2: 6c insb (%dx),%es:(%edi) ba3: 6c insb (%dx),%es:(%edi) ba4: 32 38 xor (%eax),%bh ... 00000ba7 <ht_call28>: CS550HTSYSCALL(ht_call28) ba7: b8 9d 0b 00 00 mov $0xb9d,%eax bac: cd 42 int $0x42 bae: c3 ret 00000baf <str_ht_call29>: baf: 68 74 5f 63 61 push $0x61635f74 bb4: 6c insb (%dx),%es:(%edi) bb5: 6c insb (%dx),%es:(%edi) bb6: 32 39 xor (%ecx),%bh ... 00000bb9 <ht_call29>: CS550HTSYSCALL(ht_call29) bb9: b8 af 0b 00 00 mov $0xbaf,%eax bbe: cd 42 int $0x42 bc0: c3 ret 00000bc1 <str_ht_call30>: bc1: 68 74 5f 63 61 push $0x61635f74 bc6: 6c insb (%dx),%es:(%edi) bc7: 6c insb (%dx),%es:(%edi) bc8: 33 30 xor (%eax),%esi ... 00000bcb <ht_call30>: CS550HTSYSCALL(ht_call30) bcb: b8 c1 0b 00 00 mov $0xbc1,%eax bd0: cd 42 int $0x42 bd2: c3 ret 00000bd3 <str_ht_call31>: bd3: 68 74 5f 63 61 push $0x61635f74 bd8: 6c insb (%dx),%es:(%edi) bd9: 6c insb (%dx),%es:(%edi) bda: 33 31 xor (%ecx),%esi ... 00000bdd <ht_call31>: CS550HTSYSCALL(ht_call31) bdd: b8 d3 0b 00 00 mov $0xbd3,%eax be2: cd 42 int $0x42 be4: c3 ret 00000be5 <str_ht_call32>: be5: 68 74 5f 63 61 push $0x61635f74 bea: 6c insb (%dx),%es:(%edi) beb: 6c insb (%dx),%es:(%edi) bec: 33 32 xor (%edx),%esi ... 00000bef <ht_call32>: CS550HTSYSCALL(ht_call32) bef: b8 e5 0b 00 00 mov $0xbe5,%eax bf4: cd 42 int $0x42 bf6: c3 ret 00000bf7 <str_ht_call33>: bf7: 68 74 5f 63 61 push $0x61635f74 bfc: 6c insb (%dx),%es:(%edi) bfd: 6c insb (%dx),%es:(%edi) bfe: 33 33 xor (%ebx),%esi ... 00000c01 <ht_call33>: CS550HTSYSCALL(ht_call33) c01: b8 f7 0b 00 00 mov $0xbf7,%eax c06: cd 42 int $0x42 c08: c3 ret 00000c09 <str_ht_call34>: c09: 68 74 5f 63 61 push $0x61635f74 c0e: 6c insb (%dx),%es:(%edi) c0f: 6c insb (%dx),%es:(%edi) c10: 33 34 00 xor (%eax,%eax,1),%esi 00000c13 <ht_call34>: CS550HTSYSCALL(ht_call34) c13: b8 09 0c 00 00 mov $0xc09,%eax c18: cd 42 int $0x42 c1a: c3 ret 00000c1b <str_ht_call35>: c1b: 68 74 5f 63 61 push $0x61635f74 c20: 6c insb (%dx),%es:(%edi) c21: 6c insb (%dx),%es:(%edi) c22: 33 .byte 0x33 c23: 35 .byte 0x35 ... 00000c25 <ht_call35>: CS550HTSYSCALL(ht_call35) c25: b8 1b 0c 00 00 mov $0xc1b,%eax c2a: cd 42 int $0x42 c2c: c3 ret 00000c2d <str_ht_call36>: c2d: 68 74 5f 63 61 push $0x61635f74 c32: 6c insb (%dx),%es:(%edi) c33: 6c insb (%dx),%es:(%edi) c34: 33 36 xor (%esi),%esi ... 00000c37 <ht_call36>: CS550HTSYSCALL(ht_call36) c37: b8 2d 0c 00 00 mov $0xc2d,%eax c3c: cd 42 int $0x42 c3e: c3 ret 00000c3f <str_ht_call37>: c3f: 68 74 5f 63 61 push $0x61635f74 c44: 6c insb (%dx),%es:(%edi) c45: 6c insb (%dx),%es:(%edi) c46: 33 37 xor (%edi),%esi ... 00000c49 <ht_call37>: CS550HTSYSCALL(ht_call37) c49: b8 3f 0c 00 00 mov $0xc3f,%eax c4e: cd 42 int $0x42 c50: c3 ret 00000c51 <str_ht_call38>: c51: 68 74 5f 63 61 push $0x61635f74 c56: 6c insb (%dx),%es:(%edi) c57: 6c insb (%dx),%es:(%edi) c58: 33 38 xor (%eax),%edi ... 00000c5b <ht_call38>: CS550HTSYSCALL(ht_call38) c5b: b8 51 0c 00 00 mov $0xc51,%eax c60: cd 42 int $0x42 c62: c3 ret 00000c63 <str_ht_call39>: c63: 68 74 5f 63 61 push $0x61635f74 c68: 6c insb (%dx),%es:(%edi) c69: 6c insb (%dx),%es:(%edi) c6a: 33 39 xor (%ecx),%edi ... 00000c6d <ht_call39>: CS550HTSYSCALL(ht_call39) c6d: b8 63 0c 00 00 mov $0xc63,%eax c72: cd 42 int $0x42 c74: c3 ret 00000c75 <str_ht_call40>: c75: 68 74 5f 63 61 push $0x61635f74 c7a: 6c insb (%dx),%es:(%edi) c7b: 6c insb (%dx),%es:(%edi) c7c: 34 30 xor $0x30,%al ... 00000c7f <ht_call40>: CS550HTSYSCALL(ht_call40) c7f: b8 75 0c 00 00 mov $0xc75,%eax c84: cd 42 int $0x42 c86: c3 ret 00000c87 <str_ht_call41>: c87: 68 74 5f 63 61 push $0x61635f74 c8c: 6c insb (%dx),%es:(%edi) c8d: 6c insb (%dx),%es:(%edi) c8e: 34 31 xor $0x31,%al ... 00000c91 <ht_call41>: CS550HTSYSCALL(ht_call41) c91: b8 87 0c 00 00 mov $0xc87,%eax c96: cd 42 int $0x42 c98: c3 ret 00000c99 <str_ht_call42>: c99: 68 74 5f 63 61 push $0x61635f74 c9e: 6c insb (%dx),%es:(%edi) c9f: 6c insb (%dx),%es:(%edi) ca0: 34 32 xor $0x32,%al ... 00000ca3 <ht_call42>: CS550HTSYSCALL(ht_call42) ca3: b8 99 0c 00 00 mov $0xc99,%eax ca8: cd 42 int $0x42 caa: c3 ret 00000cab <str_ht_call43>: cab: 68 74 5f 63 61 push $0x61635f74 cb0: 6c insb (%dx),%es:(%edi) cb1: 6c insb (%dx),%es:(%edi) cb2: 34 33 xor $0x33,%al ... 00000cb5 <ht_call43>: CS550HTSYSCALL(ht_call43) cb5: b8 ab 0c 00 00 mov $0xcab,%eax cba: cd 42 int $0x42 cbc: c3 ret 00000cbd <str_ht_call44>: cbd: 68 74 5f 63 61 push $0x61635f74 cc2: 6c insb (%dx),%es:(%edi) cc3: 6c insb (%dx),%es:(%edi) cc4: 34 34 xor $0x34,%al ... 00000cc7 <ht_call44>: CS550HTSYSCALL(ht_call44) cc7: b8 bd 0c 00 00 mov $0xcbd,%eax ccc: cd 42 int $0x42 cce: c3 ret 00000ccf <str_ht_call45>: ccf: 68 74 5f 63 61 push $0x61635f74 cd4: 6c insb (%dx),%es:(%edi) cd5: 6c insb (%dx),%es:(%edi) cd6: 34 35 xor $0x35,%al ... 00000cd9 <ht_call45>: CS550HTSYSCALL(ht_call45) cd9: b8 cf 0c 00 00 mov $0xccf,%eax cde: cd 42 int $0x42 ce0: c3 ret 00000ce1 <str_ht_call46>: ce1: 68 74 5f 63 61 push $0x61635f74 ce6: 6c insb (%dx),%es:(%edi) ce7: 6c insb (%dx),%es:(%edi) ce8: 34 36 xor $0x36,%al ... 00000ceb <ht_call46>: CS550HTSYSCALL(ht_call46) ceb: b8 e1 0c 00 00 mov $0xce1,%eax cf0: cd 42 int $0x42 cf2: c3 ret 00000cf3 <str_ht_call47>: cf3: 68 74 5f 63 61 push $0x61635f74 cf8: 6c insb (%dx),%es:(%edi) cf9: 6c insb (%dx),%es:(%edi) cfa: 34 37 xor $0x37,%al ... 00000cfd <ht_call47>: CS550HTSYSCALL(ht_call47) cfd: b8 f3 0c 00 00 mov $0xcf3,%eax d02: cd 42 int $0x42 d04: c3 ret 00000d05 <str_ht_call48>: d05: 68 74 5f 63 61 push $0x61635f74 d0a: 6c insb (%dx),%es:(%edi) d0b: 6c insb (%dx),%es:(%edi) d0c: 34 38 xor $0x38,%al ... 00000d0f <ht_call48>: CS550HTSYSCALL(ht_call48) d0f: b8 05 0d 00 00 mov $0xd05,%eax d14: cd 42 int $0x42 d16: c3 ret 00000d17 <str_ht_call49>: d17: 68 74 5f 63 61 push $0x61635f74 d1c: 6c insb (%dx),%es:(%edi) d1d: 6c insb (%dx),%es:(%edi) d1e: 34 39 xor $0x39,%al ... 00000d21 <ht_call49>: CS550HTSYSCALL(ht_call49) d21: b8 17 0d 00 00 mov $0xd17,%eax d26: cd 42 int $0x42 d28: c3 ret 00000d29 <str_ht_call50>: d29: 68 74 5f 63 61 push $0x61635f74 d2e: 6c insb (%dx),%es:(%edi) d2f: 6c insb (%dx),%es:(%edi) d30: 35 .byte 0x35 d31: 30 00 xor %al,(%eax) 00000d33 <ht_call50>: CS550HTSYSCALL(ht_call50) d33: b8 29 0d 00 00 mov $0xd29,%eax d38: cd 42 int $0x42 d3a: c3 ret 00000d3b <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { d3b: 55 push %ebp d3c: 89 e5 mov %esp,%ebp d3e: 83 ec 18 sub $0x18,%esp d41: 8b 45 0c mov 0xc(%ebp),%eax d44: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); d47: 83 ec 04 sub $0x4,%esp d4a: 6a 01 push $0x1 d4c: 8d 45 f4 lea -0xc(%ebp),%eax d4f: 50 push %eax d50: ff 75 08 pushl 0x8(%ebp) d53: e8 65 f8 ff ff call 5bd <write> d58: 83 c4 10 add $0x10,%esp } d5b: 90 nop d5c: c9 leave d5d: c3 ret 00000d5e <printint>: static void printint(int fd, int xx, int base, int sgn) { d5e: 55 push %ebp d5f: 89 e5 mov %esp,%ebp d61: 53 push %ebx d62: 83 ec 24 sub $0x24,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; d65: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ d6c: 83 7d 14 00 cmpl $0x0,0x14(%ebp) d70: 74 17 je d89 <printint+0x2b> d72: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) d76: 79 11 jns d89 <printint+0x2b> neg = 1; d78: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; d7f: 8b 45 0c mov 0xc(%ebp),%eax d82: f7 d8 neg %eax d84: 89 45 ec mov %eax,-0x14(%ebp) d87: eb 06 jmp d8f <printint+0x31> } else { x = xx; d89: 8b 45 0c mov 0xc(%ebp),%eax d8c: 89 45 ec mov %eax,-0x14(%ebp) } i = 0; d8f: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; d96: 8b 4d f4 mov -0xc(%ebp),%ecx d99: 8d 41 01 lea 0x1(%ecx),%eax d9c: 89 45 f4 mov %eax,-0xc(%ebp) d9f: 8b 5d 10 mov 0x10(%ebp),%ebx da2: 8b 45 ec mov -0x14(%ebp),%eax da5: ba 00 00 00 00 mov $0x0,%edx daa: f7 f3 div %ebx dac: 89 d0 mov %edx,%eax dae: 0f b6 80 bc 14 00 00 movzbl 0x14bc(%eax),%eax db5: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1) }while((x /= base) != 0); db9: 8b 5d 10 mov 0x10(%ebp),%ebx dbc: 8b 45 ec mov -0x14(%ebp),%eax dbf: ba 00 00 00 00 mov $0x0,%edx dc4: f7 f3 div %ebx dc6: 89 45 ec mov %eax,-0x14(%ebp) dc9: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) dcd: 75 c7 jne d96 <printint+0x38> if(neg) dcf: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) dd3: 74 2d je e02 <printint+0xa4> buf[i++] = '-'; dd5: 8b 45 f4 mov -0xc(%ebp),%eax dd8: 8d 50 01 lea 0x1(%eax),%edx ddb: 89 55 f4 mov %edx,-0xc(%ebp) dde: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1) while(--i >= 0) de3: eb 1d jmp e02 <printint+0xa4> putc(fd, buf[i]); de5: 8d 55 dc lea -0x24(%ebp),%edx de8: 8b 45 f4 mov -0xc(%ebp),%eax deb: 01 d0 add %edx,%eax ded: 0f b6 00 movzbl (%eax),%eax df0: 0f be c0 movsbl %al,%eax df3: 83 ec 08 sub $0x8,%esp df6: 50 push %eax df7: ff 75 08 pushl 0x8(%ebp) dfa: e8 3c ff ff ff call d3b <putc> dff: 83 c4 10 add $0x10,%esp buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) e02: 83 6d f4 01 subl $0x1,-0xc(%ebp) e06: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) e0a: 79 d9 jns de5 <printint+0x87> putc(fd, buf[i]); } e0c: 90 nop e0d: 8b 5d fc mov -0x4(%ebp),%ebx e10: c9 leave e11: c3 ret 00000e12 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { e12: 55 push %ebp e13: 89 e5 mov %esp,%ebp e15: 83 ec 28 sub $0x28,%esp char *s; int c, i, state; uint *ap; state = 0; e18: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) ap = (uint*)(void*)&fmt + 1; e1f: 8d 45 0c lea 0xc(%ebp),%eax e22: 83 c0 04 add $0x4,%eax e25: 89 45 e8 mov %eax,-0x18(%ebp) for(i = 0; fmt[i]; i++){ e28: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) e2f: e9 59 01 00 00 jmp f8d <printf+0x17b> c = fmt[i] & 0xff; e34: 8b 55 0c mov 0xc(%ebp),%edx e37: 8b 45 f0 mov -0x10(%ebp),%eax e3a: 01 d0 add %edx,%eax e3c: 0f b6 00 movzbl (%eax),%eax e3f: 0f be c0 movsbl %al,%eax e42: 25 ff 00 00 00 and $0xff,%eax e47: 89 45 e4 mov %eax,-0x1c(%ebp) if(state == 0){ e4a: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) e4e: 75 2c jne e7c <printf+0x6a> if(c == '%'){ e50: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) e54: 75 0c jne e62 <printf+0x50> state = '%'; e56: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp) e5d: e9 27 01 00 00 jmp f89 <printf+0x177> } else { putc(fd, c); e62: 8b 45 e4 mov -0x1c(%ebp),%eax e65: 0f be c0 movsbl %al,%eax e68: 83 ec 08 sub $0x8,%esp e6b: 50 push %eax e6c: ff 75 08 pushl 0x8(%ebp) e6f: e8 c7 fe ff ff call d3b <putc> e74: 83 c4 10 add $0x10,%esp e77: e9 0d 01 00 00 jmp f89 <printf+0x177> } } else if(state == '%'){ e7c: 83 7d ec 25 cmpl $0x25,-0x14(%ebp) e80: 0f 85 03 01 00 00 jne f89 <printf+0x177> if(c == 'd'){ e86: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp) e8a: 75 1e jne eaa <printf+0x98> printint(fd, *ap, 10, 1); e8c: 8b 45 e8 mov -0x18(%ebp),%eax e8f: 8b 00 mov (%eax),%eax e91: 6a 01 push $0x1 e93: 6a 0a push $0xa e95: 50 push %eax e96: ff 75 08 pushl 0x8(%ebp) e99: e8 c0 fe ff ff call d5e <printint> e9e: 83 c4 10 add $0x10,%esp ap++; ea1: 83 45 e8 04 addl $0x4,-0x18(%ebp) ea5: e9 d8 00 00 00 jmp f82 <printf+0x170> } else if(c == 'x' || c == 'p'){ eaa: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp) eae: 74 06 je eb6 <printf+0xa4> eb0: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) eb4: 75 1e jne ed4 <printf+0xc2> printint(fd, *ap, 16, 0); eb6: 8b 45 e8 mov -0x18(%ebp),%eax eb9: 8b 00 mov (%eax),%eax ebb: 6a 00 push $0x0 ebd: 6a 10 push $0x10 ebf: 50 push %eax ec0: ff 75 08 pushl 0x8(%ebp) ec3: e8 96 fe ff ff call d5e <printint> ec8: 83 c4 10 add $0x10,%esp ap++; ecb: 83 45 e8 04 addl $0x4,-0x18(%ebp) ecf: e9 ae 00 00 00 jmp f82 <printf+0x170> } else if(c == 's'){ ed4: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp) ed8: 75 43 jne f1d <printf+0x10b> s = (char*)*ap; eda: 8b 45 e8 mov -0x18(%ebp),%eax edd: 8b 00 mov (%eax),%eax edf: 89 45 f4 mov %eax,-0xc(%ebp) ap++; ee2: 83 45 e8 04 addl $0x4,-0x18(%ebp) if(s == 0) ee6: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) eea: 75 25 jne f11 <printf+0xff> s = "(null)"; eec: c7 45 f4 12 12 00 00 movl $0x1212,-0xc(%ebp) while(*s != 0){ ef3: eb 1c jmp f11 <printf+0xff> putc(fd, *s); ef5: 8b 45 f4 mov -0xc(%ebp),%eax ef8: 0f b6 00 movzbl (%eax),%eax efb: 0f be c0 movsbl %al,%eax efe: 83 ec 08 sub $0x8,%esp f01: 50 push %eax f02: ff 75 08 pushl 0x8(%ebp) f05: e8 31 fe ff ff call d3b <putc> f0a: 83 c4 10 add $0x10,%esp s++; f0d: 83 45 f4 01 addl $0x1,-0xc(%ebp) } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ f11: 8b 45 f4 mov -0xc(%ebp),%eax f14: 0f b6 00 movzbl (%eax),%eax f17: 84 c0 test %al,%al f19: 75 da jne ef5 <printf+0xe3> f1b: eb 65 jmp f82 <printf+0x170> putc(fd, *s); s++; } } else if(c == 'c'){ f1d: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp) f21: 75 1d jne f40 <printf+0x12e> putc(fd, *ap); f23: 8b 45 e8 mov -0x18(%ebp),%eax f26: 8b 00 mov (%eax),%eax f28: 0f be c0 movsbl %al,%eax f2b: 83 ec 08 sub $0x8,%esp f2e: 50 push %eax f2f: ff 75 08 pushl 0x8(%ebp) f32: e8 04 fe ff ff call d3b <putc> f37: 83 c4 10 add $0x10,%esp ap++; f3a: 83 45 e8 04 addl $0x4,-0x18(%ebp) f3e: eb 42 jmp f82 <printf+0x170> } else if(c == '%'){ f40: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) f44: 75 17 jne f5d <printf+0x14b> putc(fd, c); f46: 8b 45 e4 mov -0x1c(%ebp),%eax f49: 0f be c0 movsbl %al,%eax f4c: 83 ec 08 sub $0x8,%esp f4f: 50 push %eax f50: ff 75 08 pushl 0x8(%ebp) f53: e8 e3 fd ff ff call d3b <putc> f58: 83 c4 10 add $0x10,%esp f5b: eb 25 jmp f82 <printf+0x170> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); f5d: 83 ec 08 sub $0x8,%esp f60: 6a 25 push $0x25 f62: ff 75 08 pushl 0x8(%ebp) f65: e8 d1 fd ff ff call d3b <putc> f6a: 83 c4 10 add $0x10,%esp putc(fd, c); f6d: 8b 45 e4 mov -0x1c(%ebp),%eax f70: 0f be c0 movsbl %al,%eax f73: 83 ec 08 sub $0x8,%esp f76: 50 push %eax f77: ff 75 08 pushl 0x8(%ebp) f7a: e8 bc fd ff ff call d3b <putc> f7f: 83 c4 10 add $0x10,%esp } state = 0; f82: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ f89: 83 45 f0 01 addl $0x1,-0x10(%ebp) f8d: 8b 55 0c mov 0xc(%ebp),%edx f90: 8b 45 f0 mov -0x10(%ebp),%eax f93: 01 d0 add %edx,%eax f95: 0f b6 00 movzbl (%eax),%eax f98: 84 c0 test %al,%al f9a: 0f 85 94 fe ff ff jne e34 <printf+0x22> putc(fd, c); } state = 0; } } } fa0: 90 nop fa1: c9 leave fa2: c3 ret 00000fa3 <free>: static Header base; static Header *freep; void free(void *ap) { fa3: 55 push %ebp fa4: 89 e5 mov %esp,%ebp fa6: 83 ec 10 sub $0x10,%esp Header *bp, *p; bp = (Header*)ap - 1; fa9: 8b 45 08 mov 0x8(%ebp),%eax fac: 83 e8 08 sub $0x8,%eax faf: 89 45 f8 mov %eax,-0x8(%ebp) for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) fb2: a1 e8 14 00 00 mov 0x14e8,%eax fb7: 89 45 fc mov %eax,-0x4(%ebp) fba: eb 24 jmp fe0 <free+0x3d> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) fbc: 8b 45 fc mov -0x4(%ebp),%eax fbf: 8b 00 mov (%eax),%eax fc1: 3b 45 fc cmp -0x4(%ebp),%eax fc4: 77 12 ja fd8 <free+0x35> fc6: 8b 45 f8 mov -0x8(%ebp),%eax fc9: 3b 45 fc cmp -0x4(%ebp),%eax fcc: 77 24 ja ff2 <free+0x4f> fce: 8b 45 fc mov -0x4(%ebp),%eax fd1: 8b 00 mov (%eax),%eax fd3: 3b 45 f8 cmp -0x8(%ebp),%eax fd6: 77 1a ja ff2 <free+0x4f> free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) fd8: 8b 45 fc mov -0x4(%ebp),%eax fdb: 8b 00 mov (%eax),%eax fdd: 89 45 fc mov %eax,-0x4(%ebp) fe0: 8b 45 f8 mov -0x8(%ebp),%eax fe3: 3b 45 fc cmp -0x4(%ebp),%eax fe6: 76 d4 jbe fbc <free+0x19> fe8: 8b 45 fc mov -0x4(%ebp),%eax feb: 8b 00 mov (%eax),%eax fed: 3b 45 f8 cmp -0x8(%ebp),%eax ff0: 76 ca jbe fbc <free+0x19> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ ff2: 8b 45 f8 mov -0x8(%ebp),%eax ff5: 8b 40 04 mov 0x4(%eax),%eax ff8: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx fff: 8b 45 f8 mov -0x8(%ebp),%eax 1002: 01 c2 add %eax,%edx 1004: 8b 45 fc mov -0x4(%ebp),%eax 1007: 8b 00 mov (%eax),%eax 1009: 39 c2 cmp %eax,%edx 100b: 75 24 jne 1031 <free+0x8e> bp->s.size += p->s.ptr->s.size; 100d: 8b 45 f8 mov -0x8(%ebp),%eax 1010: 8b 50 04 mov 0x4(%eax),%edx 1013: 8b 45 fc mov -0x4(%ebp),%eax 1016: 8b 00 mov (%eax),%eax 1018: 8b 40 04 mov 0x4(%eax),%eax 101b: 01 c2 add %eax,%edx 101d: 8b 45 f8 mov -0x8(%ebp),%eax 1020: 89 50 04 mov %edx,0x4(%eax) bp->s.ptr = p->s.ptr->s.ptr; 1023: 8b 45 fc mov -0x4(%ebp),%eax 1026: 8b 00 mov (%eax),%eax 1028: 8b 10 mov (%eax),%edx 102a: 8b 45 f8 mov -0x8(%ebp),%eax 102d: 89 10 mov %edx,(%eax) 102f: eb 0a jmp 103b <free+0x98> } else bp->s.ptr = p->s.ptr; 1031: 8b 45 fc mov -0x4(%ebp),%eax 1034: 8b 10 mov (%eax),%edx 1036: 8b 45 f8 mov -0x8(%ebp),%eax 1039: 89 10 mov %edx,(%eax) if(p + p->s.size == bp){ 103b: 8b 45 fc mov -0x4(%ebp),%eax 103e: 8b 40 04 mov 0x4(%eax),%eax 1041: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 1048: 8b 45 fc mov -0x4(%ebp),%eax 104b: 01 d0 add %edx,%eax 104d: 3b 45 f8 cmp -0x8(%ebp),%eax 1050: 75 20 jne 1072 <free+0xcf> p->s.size += bp->s.size; 1052: 8b 45 fc mov -0x4(%ebp),%eax 1055: 8b 50 04 mov 0x4(%eax),%edx 1058: 8b 45 f8 mov -0x8(%ebp),%eax 105b: 8b 40 04 mov 0x4(%eax),%eax 105e: 01 c2 add %eax,%edx 1060: 8b 45 fc mov -0x4(%ebp),%eax 1063: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 1066: 8b 45 f8 mov -0x8(%ebp),%eax 1069: 8b 10 mov (%eax),%edx 106b: 8b 45 fc mov -0x4(%ebp),%eax 106e: 89 10 mov %edx,(%eax) 1070: eb 08 jmp 107a <free+0xd7> } else p->s.ptr = bp; 1072: 8b 45 fc mov -0x4(%ebp),%eax 1075: 8b 55 f8 mov -0x8(%ebp),%edx 1078: 89 10 mov %edx,(%eax) freep = p; 107a: 8b 45 fc mov -0x4(%ebp),%eax 107d: a3 e8 14 00 00 mov %eax,0x14e8 } 1082: 90 nop 1083: c9 leave 1084: c3 ret 00001085 <morecore>: static Header* morecore(uint nu) { 1085: 55 push %ebp 1086: 89 e5 mov %esp,%ebp 1088: 83 ec 18 sub $0x18,%esp char *p; Header *hp; if(nu < 4096) 108b: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) 1092: 77 07 ja 109b <morecore+0x16> nu = 4096; 1094: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) p = sbrk(nu * sizeof(Header)); 109b: 8b 45 08 mov 0x8(%ebp),%eax 109e: c1 e0 03 shl $0x3,%eax 10a1: 83 ec 0c sub $0xc,%esp 10a4: 50 push %eax 10a5: e8 7b f5 ff ff call 625 <sbrk> 10aa: 83 c4 10 add $0x10,%esp 10ad: 89 45 f4 mov %eax,-0xc(%ebp) if(p == (char*)-1) 10b0: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp) 10b4: 75 07 jne 10bd <morecore+0x38> return 0; 10b6: b8 00 00 00 00 mov $0x0,%eax 10bb: eb 26 jmp 10e3 <morecore+0x5e> hp = (Header*)p; 10bd: 8b 45 f4 mov -0xc(%ebp),%eax 10c0: 89 45 f0 mov %eax,-0x10(%ebp) hp->s.size = nu; 10c3: 8b 45 f0 mov -0x10(%ebp),%eax 10c6: 8b 55 08 mov 0x8(%ebp),%edx 10c9: 89 50 04 mov %edx,0x4(%eax) free((void*)(hp + 1)); 10cc: 8b 45 f0 mov -0x10(%ebp),%eax 10cf: 83 c0 08 add $0x8,%eax 10d2: 83 ec 0c sub $0xc,%esp 10d5: 50 push %eax 10d6: e8 c8 fe ff ff call fa3 <free> 10db: 83 c4 10 add $0x10,%esp return freep; 10de: a1 e8 14 00 00 mov 0x14e8,%eax } 10e3: c9 leave 10e4: c3 ret 000010e5 <malloc>: void* malloc(uint nbytes) { 10e5: 55 push %ebp 10e6: 89 e5 mov %esp,%ebp 10e8: 83 ec 18 sub $0x18,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 10eb: 8b 45 08 mov 0x8(%ebp),%eax 10ee: 83 c0 07 add $0x7,%eax 10f1: c1 e8 03 shr $0x3,%eax 10f4: 83 c0 01 add $0x1,%eax 10f7: 89 45 ec mov %eax,-0x14(%ebp) if((prevp = freep) == 0){ 10fa: a1 e8 14 00 00 mov 0x14e8,%eax 10ff: 89 45 f0 mov %eax,-0x10(%ebp) 1102: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 1106: 75 23 jne 112b <malloc+0x46> base.s.ptr = freep = prevp = &base; 1108: c7 45 f0 e0 14 00 00 movl $0x14e0,-0x10(%ebp) 110f: 8b 45 f0 mov -0x10(%ebp),%eax 1112: a3 e8 14 00 00 mov %eax,0x14e8 1117: a1 e8 14 00 00 mov 0x14e8,%eax 111c: a3 e0 14 00 00 mov %eax,0x14e0 base.s.size = 0; 1121: c7 05 e4 14 00 00 00 movl $0x0,0x14e4 1128: 00 00 00 } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 112b: 8b 45 f0 mov -0x10(%ebp),%eax 112e: 8b 00 mov (%eax),%eax 1130: 89 45 f4 mov %eax,-0xc(%ebp) if(p->s.size >= nunits){ 1133: 8b 45 f4 mov -0xc(%ebp),%eax 1136: 8b 40 04 mov 0x4(%eax),%eax 1139: 3b 45 ec cmp -0x14(%ebp),%eax 113c: 72 4d jb 118b <malloc+0xa6> if(p->s.size == nunits) 113e: 8b 45 f4 mov -0xc(%ebp),%eax 1141: 8b 40 04 mov 0x4(%eax),%eax 1144: 3b 45 ec cmp -0x14(%ebp),%eax 1147: 75 0c jne 1155 <malloc+0x70> prevp->s.ptr = p->s.ptr; 1149: 8b 45 f4 mov -0xc(%ebp),%eax 114c: 8b 10 mov (%eax),%edx 114e: 8b 45 f0 mov -0x10(%ebp),%eax 1151: 89 10 mov %edx,(%eax) 1153: eb 26 jmp 117b <malloc+0x96> else { p->s.size -= nunits; 1155: 8b 45 f4 mov -0xc(%ebp),%eax 1158: 8b 40 04 mov 0x4(%eax),%eax 115b: 2b 45 ec sub -0x14(%ebp),%eax 115e: 89 c2 mov %eax,%edx 1160: 8b 45 f4 mov -0xc(%ebp),%eax 1163: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; 1166: 8b 45 f4 mov -0xc(%ebp),%eax 1169: 8b 40 04 mov 0x4(%eax),%eax 116c: c1 e0 03 shl $0x3,%eax 116f: 01 45 f4 add %eax,-0xc(%ebp) p->s.size = nunits; 1172: 8b 45 f4 mov -0xc(%ebp),%eax 1175: 8b 55 ec mov -0x14(%ebp),%edx 1178: 89 50 04 mov %edx,0x4(%eax) } freep = prevp; 117b: 8b 45 f0 mov -0x10(%ebp),%eax 117e: a3 e8 14 00 00 mov %eax,0x14e8 return (void*)(p + 1); 1183: 8b 45 f4 mov -0xc(%ebp),%eax 1186: 83 c0 08 add $0x8,%eax 1189: eb 3b jmp 11c6 <malloc+0xe1> } if(p == freep) 118b: a1 e8 14 00 00 mov 0x14e8,%eax 1190: 39 45 f4 cmp %eax,-0xc(%ebp) 1193: 75 1e jne 11b3 <malloc+0xce> if((p = morecore(nunits)) == 0) 1195: 83 ec 0c sub $0xc,%esp 1198: ff 75 ec pushl -0x14(%ebp) 119b: e8 e5 fe ff ff call 1085 <morecore> 11a0: 83 c4 10 add $0x10,%esp 11a3: 89 45 f4 mov %eax,-0xc(%ebp) 11a6: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 11aa: 75 07 jne 11b3 <malloc+0xce> return 0; 11ac: b8 00 00 00 00 mov $0x0,%eax 11b1: eb 13 jmp 11c6 <malloc+0xe1> nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 11b3: 8b 45 f4 mov -0xc(%ebp),%eax 11b6: 89 45 f0 mov %eax,-0x10(%ebp) 11b9: 8b 45 f4 mov -0xc(%ebp),%eax 11bc: 8b 00 mov (%eax),%eax 11be: 89 45 f4 mov %eax,-0xc(%ebp) return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } 11c1: e9 6d ff ff ff jmp 1133 <malloc+0x4e> } 11c6: c9 leave 11c7: c3 ret
Groups/FreeGroup/Lemmas.agda
Smaug123/agdaproofs
4
10715
{-# OPTIONS --safe --warning=error #-} open import Sets.Cardinality.Infinite.Definition open import Sets.EquivalenceRelations open import Setoids.Setoids open import Groups.FreeGroup.Definition open import Groups.Homomorphisms.Definition open import Groups.Definition open import Decidable.Sets open import Numbers.Naturals.Semiring open import Numbers.Naturals.Order open import LogicalFormulae open import Semirings.Definition open import Functions.Definition open import Functions.Lemmas open import Groups.Isomorphisms.Definition open import Groups.FreeGroup.Word open import Groups.FreeGroup.Group open import Groups.FreeGroup.UniversalProperty open import Groups.Abelian.Definition open import Groups.QuotientGroup.Definition open import Groups.Lemmas open import Groups.Homomorphisms.Lemmas module Groups.FreeGroup.Lemmas {a : _} {A : Set a} (decA : DecidableSet A) where freeGroupNonAbelian : AbelianGroup (freeGroup decA) β†’ (a : A) β†’ Sg (A β†’ True) Bijection freeGroupNonAbelian record { commutative = commutative } a = (Ξ» _ β†’ record {}) , b where b : Bijection (Ξ» _ β†’ record {}) Bijection.inj b {x} {y} _ with decA x y ... | inl pr = pr ... | inr neq = exFalso (neq (ofLetterInjective (prependLetterInjective' decA t))) where t : prependLetter {decA = decA} (ofLetter x) (prependLetter (ofLetter y) empty (wordEmpty refl)) (wordEnding (succIsPositive 0) refl) ≑ prependLetter (ofLetter y) (prependLetter (ofLetter x) empty (wordEmpty refl)) (wordEnding (succIsPositive 0) refl) t = commutative {prependLetter (ofLetter x) empty (wordEmpty refl)} {prependLetter (ofLetter y) empty (wordEmpty refl)} Bijection.surj b record {} = a , refl private iso : {b : _} {B : Set b} (decB : DecidableSet B) β†’ {f : A β†’ B} β†’ Bijection f β†’ ReducedWord decA β†’ ReducedWord decB iso decB {f} bij = universalPropertyFunction decA (freeGroup decB) Ξ» a β†’ freeEmbedding decB (f a) isoHom : {b : _} {B : Set b} (decB : DecidableSet B) β†’ {f : A β†’ B} β†’ (bij : Bijection f) β†’ GroupHom (freeGroup decA) (freeGroup decB) (iso decB bij) isoHom decB {f} bij = universalPropertyHom decA (freeGroup decB) Ξ» a β†’ iso decB bij (freeEmbedding decA a) iso2 : {b : _} {B : Set b} (decB : DecidableSet B) β†’ {f : A β†’ B} β†’ Bijection f β†’ ReducedWord decB β†’ ReducedWord decA iso2 decB {f} bij = universalPropertyFunction decB (freeGroup decA) Ξ» b β†’ freeEmbedding decA (Invertible.inverse (bijectionImpliesInvertible bij) b) iso2Hom : {b : _} {B : Set b} (decB : DecidableSet B) β†’ {f : A β†’ B} β†’ (bij : Bijection f) β†’ GroupHom (freeGroup decB) (freeGroup decA) (iso2 decB bij) iso2Hom decB {f} bij = universalPropertyHom decB (freeGroup decA) Ξ» b β†’ iso2 decB bij (freeEmbedding decB b) fixesF : {b : _} {B : Set b} (decB : DecidableSet B) β†’ {f : A β†’ B} β†’ (bij : Bijection f) β†’ (x : A) β†’ iso2 decB bij (iso decB bij (freeEmbedding decA x)) ≑ freeEmbedding decA x fixesF decB {f} bij x with Bijection.surj bij (f x) ... | _ , pr rewrite Bijection.inj bij pr = refl fixesF' : {b : _} {B : Set b} (decB : DecidableSet B) β†’ {f : A β†’ B} β†’ (bij : Bijection f) β†’ (x : B) β†’ iso decB bij (iso2 decB bij (freeEmbedding decB x)) ≑ freeEmbedding decB x fixesF' decB {f} bij x with Bijection.surj bij x ... | _ , pr rewrite pr = refl uniq : {b : _} {B : Set b} (decB : DecidableSet B) β†’ {f : A β†’ B} β†’ (bij : Bijection f) β†’ (x : ReducedWord decA) β†’ x ≑ universalPropertyFunction decA (freeGroup decA) (Ξ» x β†’ iso2 decB bij (iso decB bij (freeEmbedding decA x))) x uniq decB {f} bij x = universalPropertyUniqueness decA (freeGroup decA) (Ξ» x β†’ iso2 decB bij (iso decB bij (freeEmbedding decA x))) {id} (record { wellDefined = id ; groupHom = refl }) (fixesF decB bij) x uniqLemm : {b : _} {B : Set b} (decB : DecidableSet B) β†’ {f : A β†’ B} β†’ (bij : Bijection f) β†’ (x : ReducedWord decA) β†’ iso2 decB bij (iso decB bij x) ≑ universalPropertyFunction decA (freeGroup decA) (Ξ» x β†’ iso2 decB bij (iso decB bij (freeEmbedding decA x))) x uniqLemm decB {f} bij x = universalPropertyUniqueness decA (freeGroup decA) (Ξ» i β†’ freeEmbedding decA (underlying (Bijection.surj bij (f i)))) {Ξ» i β†’ iso2 decB bij (iso decB bij i)} (groupHomsCompose (isoHom decB bij) (iso2Hom decB bij)) (Ξ» _ β†’ refl) x uniq! : {b : _} {B : Set b} (decB : DecidableSet B) β†’ {f : A β†’ B} β†’ (bij : Bijection f) β†’ (x : ReducedWord decA) β†’ iso2 decB bij (iso decB bij x) ≑ x uniq! decB bij x = transitivity (uniqLemm decB bij x) (equalityCommutative (uniq decB bij x)) uniq' : {b : _} {B : Set b} (decB : DecidableSet B) β†’ {f : A β†’ B} β†’ (bij : Bijection f) β†’ (x : ReducedWord decB) β†’ x ≑ universalPropertyFunction decB (freeGroup decB) (Ξ» x β†’ iso decB bij (iso2 decB bij (freeEmbedding decB x))) x uniq' decB {f} bij x = universalPropertyUniqueness decB (freeGroup decB) (Ξ» x β†’ iso decB bij (iso2 decB bij (freeEmbedding decB x))) {id} (record { wellDefined = id ; groupHom = refl }) (fixesF' decB bij) x uniq'Lemm : {b : _} {B : Set b} (decB : DecidableSet B) β†’ {f : A β†’ B} β†’ (bij : Bijection f) β†’ (x : ReducedWord decB) β†’ iso decB bij (iso2 decB bij x) ≑ universalPropertyFunction decB (freeGroup decB) (Ξ» x β†’ iso decB bij (iso2 decB bij (freeEmbedding decB x))) x uniq'Lemm decB {f} bij x = universalPropertyUniqueness decB (freeGroup decB) (Ξ» i β†’ freeEmbedding decB (f (Invertible.inverse (bijectionImpliesInvertible bij) i))) {Ξ» i β†’ iso decB bij (iso2 decB bij i)} (groupHomsCompose (iso2Hom decB bij) (isoHom decB bij)) (Ξ» _ β†’ refl) x uniq'! : {b : _} {B : Set b} (decB : DecidableSet B) β†’ {f : A β†’ B} β†’ (bij : Bijection f) β†’ (x : ReducedWord decB) β†’ iso decB bij (iso2 decB bij x) ≑ x uniq'! decB bij x = transitivity (uniq'Lemm decB bij x) (equalityCommutative (uniq' decB bij x)) inBijection : {b : _} {B : Set b} (decB : DecidableSet B) {f : A β†’ B} (bij : Bijection f) β†’ Bijection (iso decB bij) inBijection decB bij = invertibleImpliesBijection (record { inverse = iso2 decB bij ; isLeft = uniq'! decB bij ; isRight = uniq! decB bij }) freeGroupFunctorWellDefined : {b : _} {B : Set b} (decB : DecidableSet B) β†’ {f : A β†’ B} β†’ Bijection f β†’ GroupsIsomorphic (freeGroup decA) (freeGroup decB) GroupsIsomorphic.isomorphism (freeGroupFunctorWellDefined decB {f} bij) = iso decB bij GroupIso.groupHom (GroupsIsomorphic.proof (freeGroupFunctorWellDefined decB {f} bij)) = universalPropertyHom decA (freeGroup decB) Ξ» a β†’ freeEmbedding decB (f a) SetoidInjection.wellDefined (SetoidBijection.inj (GroupIso.bij (GroupsIsomorphic.proof (freeGroupFunctorWellDefined decB {f} bij)))) refl = refl SetoidInjection.injective (SetoidBijection.inj (GroupIso.bij (GroupsIsomorphic.proof (freeGroupFunctorWellDefined decB {f} bij)))) {x} {y} pr = Bijection.inj (inBijection decB bij) pr SetoidSurjection.wellDefined (SetoidBijection.surj (GroupIso.bij (GroupsIsomorphic.proof (freeGroupFunctorWellDefined decB {f} bij)))) refl = refl SetoidSurjection.surjective (SetoidBijection.surj (GroupIso.bij (GroupsIsomorphic.proof (freeGroupFunctorWellDefined decB {f} bij)))) {x} = Bijection.surj (inBijection decB bij) x {- freeGroupFunctorInjective : {b : _} {B : Set b} (decB : DecidableSet B) β†’ GroupsIsomorphic (freeGroup decA) (freeGroup decB) β†’ Sg (A β†’ B) (Ξ» f β†’ Bijection f) freeGroupFunctorInjective decB iso = {!!} everyGroupQuotientOfFreeGroup : {b : _} β†’ (S : Setoid {a} {b} A) β†’ {_+_ : A β†’ A β†’ A} β†’ (G : Group S _+_) β†’ GroupsIsomorphic G (quotientGroupByHom (freeGroup decA) (universalPropertyHom decA {!!} {!!})) everyGroupQuotientOfFreeGroup = {!!} everyFGGroupQuotientOfFGFreeGroup : {!!} everyFGGroupQuotientOfFGFreeGroup = {!!} freeGroupTorsionFree : {!!} freeGroupTorsionFree = {!!} -} private mapNToGrp : (a : A) β†’ (n : β„•) β†’ ReducedWord decA mapNToGrpLen : (a : A) β†’ (n : β„•) β†’ wordLength decA (mapNToGrp a n) ≑ n mapNToGrpFirstLetter : (a : A) β†’ (n : β„•) β†’ .(pr : 0 <N wordLength decA (mapNToGrp a (succ n))) β†’ firstLetter decA (mapNToGrp a (succ n)) pr ≑ (ofLetter a) lemma : (a : A) β†’ (n : β„•) β†’ .(pr : 0 <N wordLength decA (mapNToGrp a (succ n))) β†’ ofLetter a ≑ freeInverse (firstLetter decA (mapNToGrp a (succ n)) pr) β†’ False lemma a zero _ () lemma a (succ n) _ () mapNToGrp a zero = empty mapNToGrp a 1 = prependLetter (ofLetter a) empty (wordEmpty refl) mapNToGrp a (succ (succ n)) = prependLetter (ofLetter a) (mapNToGrp a (succ n)) (wordEnding (identityOfIndiscernablesRight _<N_ (succIsPositive n) (equalityCommutative (mapNToGrpLen a (succ n)))) (freeCompletionEqualFalse decA Ξ» p β†’ lemma a n ((identityOfIndiscernablesRight _<N_ (succIsPositive n) (equalityCommutative (mapNToGrpLen a (succ n))))) p)) mapNToGrpFirstLetter a zero pr = refl mapNToGrpFirstLetter a (succ n) pr = refl mapNToGrpLen a zero = refl mapNToGrpLen a (succ zero) = refl mapNToGrpLen a (succ (succ n)) = applyEquality succ (mapNToGrpLen a (succ n)) mapNToGrpInj : (a : A) β†’ (x y : β„•) β†’ mapNToGrp a x ≑ mapNToGrp a y β†’ x ≑ y mapNToGrpInj a zero zero pr = refl mapNToGrpInj a zero (succ zero) () mapNToGrpInj a zero (succ (succ y)) () mapNToGrpInj a (succ zero) zero () mapNToGrpInj a (succ (succ x)) zero () mapNToGrpInj a (succ zero) (succ zero) pr = refl mapNToGrpInj a (succ zero) (succ (succ y)) pr = exFalso (naughtE (transitivity (applyEquality (wordLength decA) (prependLetterInjective decA pr)) (mapNToGrpLen a (succ y)))) mapNToGrpInj a (succ (succ x)) (succ 0) pr = exFalso (naughtE (transitivity (equalityCommutative (applyEquality (wordLength decA) (prependLetterInjective decA pr))) (mapNToGrpLen a (succ x)))) mapNToGrpInj a (succ (succ x)) (succ (succ y)) pr = applyEquality succ (mapNToGrpInj a (succ x) (succ y) (prependLetterInjective decA pr)) freeGroupInfinite : (nonempty : A) β†’ DedekindInfiniteSet (ReducedWord decA) DedekindInfiniteSet.inj (freeGroupInfinite nonempty) = mapNToGrp nonempty DedekindInfiniteSet.isInjection (freeGroupInfinite nonempty) {x} {y} = mapNToGrpInj nonempty x y
oeis/036/A036711.asm
neoneye/loda-programs
11
3681
<reponame>neoneye/loda-programs<filename>oeis/036/A036711.asm<gh_stars>10-100 ; A036711: a(n)=number of Gaussian integers z=a+bi satisfying |z|<=n+1/2, a>0, b>=0. ; Submitted by <NAME> ; 0,2,5,9,17,24,34,44,56,73,87,105,122,144,166,187,215,243,271,300,328,364,399,435,471,513,554,594,640,683,733,781,828,880,936,992,1049,1105,1167,1226,1292,1354,1420,1489,1555,1627,1696 mul $0,2 add $0,1 pow $0,2 div $0,4 seq $0,57655 ; The circle problem: number of points (x,y) in square lattice with x^2 + y^2 <= n. div $0,4
4-high/gel/source/gel-rig.adb
charlie5/lace
20
11278
with gel.Forge, gel.Conversions, physics.Model, openGL.Model.any, opengl.Palette, opengl.Program .lit_colored_textured_skinned, opengl.Geometry.lit_colored_textured_skinned, collada.Document, collada.Library, collada.Library.controllers, collada.Library.animations, ada.Strings.unbounded, ada.Strings.Maps; package body gel.Rig is use linear_Algebra_3D; ----------- --- Utility -- function "+" (From : in ada.strings.unbounded.unbounded_String) return String renames ada.strings.unbounded.to_String; function "+" (From : in String) return ada.strings.unbounded.unbounded_String renames ada.strings.unbounded.to_unbounded_String; function to_gel_joint_Id (Parent, Child : in bone_Id) return gel_joint_Id is use ada.Strings.unbounded; begin return Parent & "_to_" & Child; end to_gel_joint_Id; function to_Math (From : in collada.Matrix_4x4) return math.Matrix_4x4 is begin return (1 => (From (1, 1), From (1, 2), From (1, 3), From (1, 4)), 2 => (From (2, 1), From (2, 2), From (2, 3), From (2, 4)), 3 => (From (3, 1), From (3, 2), From (3, 3), From (3, 4)), 4 => (From (4, 1), From (4, 2), From (4, 3), From (4, 4))); end to_Math; function to_Details (Length : Real := Unspecified; width_Factor, depth_Factor : Real := 0.1; pitch_Limits, yaw_Limits, roll_Limits : gel.Sprite.DoF_Limits := (to_Radians (-15.0), to_Radians ( 15.0))) return bone_Details is begin return (Length, width_Factor, depth_Factor, pitch_Limits, yaw_Limits, roll_Limits); end to_Details; --------- --- Forge -- package body Forge is function new_Rig (in_World : in gel.World.view; Model : in openGL.Model.view; Mass : in Real := 0.0; is_Kinematic : in Boolean := False) return Rig.view is Self : constant Rig.view := new Rig.item; begin Self.define (in_World, Model, Mass, is_Kinematic); return Self; end new_Rig; function new_Rig (bone_Sprites : in bone_id_Map_of_sprite; joint_inv_bind_Matrices : in inverse_bind_matrix_Vector; joint_site_Offets : in joint_Id_Map_of_bone_site_offset; Model : in openGL.Model.view) return Rig.view is the_Box : constant Rig.View := new Rig.item; begin the_Box.bone_Sprites := bone_Sprites; the_Box.joint_inv_bind_Matrices := joint_inv_bind_Matrices; the_Box.phys_joint_site_Offets := joint_site_Offets; the_Box.Model := Model; return the_Box; end new_Rig; end Forge; --------------------------- --- Skin program parameters -- overriding procedure enable (Self : in out skin_program_Parameters) is use joint_id_Maps_of_slot; subtype Program_view is openGL.Program.lit_colored_textured_skinned.view; Cursor : joint_id_Maps_of_slot.Cursor := Self.joint_Map_of_slot.First; Slot : Integer; begin while has_Element (Cursor) loop Slot := Element (Cursor); Program_view (Self.Program).bone_Transform_is (Which => Slot, Now => Self.bone_Transforms.Element (Slot)); next (Cursor); end loop; end enable; ------------- --- Animation -- procedure define_global_Transform_for (Self : in out Item'Class; the_Joint : in collada.Library.visual_scenes.Node_view; Slot : in out Positive) is use collada.Library; which_Joint : constant scene_joint_Id := the_Joint.Id; child_Joints : constant visual_scenes.Nodes := the_Joint.Children; default_scene_Joint : scene_Joint; the_global_Transform : constant Matrix_4x4 := Transpose (the_Joint.global_Transform); -- Transpose to convert to row-major. begin Self.joint_pose_Transforms.insert (which_Joint, the_global_Transform); Self.collada_Joints .insert (which_Joint, the_Joint); default_scene_Joint.Node := the_Joint; Self.scene_Joints.insert (which_Joint, default_scene_Joint); for i in child_Joints'Range loop Slot := Slot + 1; define_global_Transform_for (Self, child_Joints (i), Slot); -- Recurse over children. end loop; end define_global_Transform_for; procedure update_global_Transform_for (Self : in out Item'Class; the_Joint : in collada.Library.visual_scenes.Node_view) is use collada.Library, ada.Strings.unbounded; which_Joint : constant scene_joint_Id := the_Joint.Id; child_Joints : constant visual_scenes.Nodes := the_Joint.Children; the_global_Transform : constant Matrix_4x4 := math.Transpose (the_Joint.global_Transform); -- Transpose to convert to row-major. joint_site_Offet : Vector_3; begin if which_Joint = Self.root_Joint.Name then joint_site_Offet := (0.0, 0.0, 0.0); else joint_site_Offet := Self.anim_joint_site_Offets (which_Joint); end if; Self.joint_pose_Transforms.replace (which_Joint, (the_global_Transform)); Self.scene_Joints (which_Joint).Transform := the_global_Transform; declare use type gel.Sprite.view; the_bone_Id : constant bone_Id := which_Joint; Site : Vector_3; Rotation : Matrix_3x3; begin if Self.bone_Sprites (the_bone_Id) /= null then Site := get_Translation (the_global_Transform); Site := Site - joint_site_Offet * (get_Rotation (the_global_Transform)); Site := Site * Inverse (Self.base_Sprite.Spin); Site := Site + Self.overall_Site; Rotation := Inverse (get_Rotation (the_global_Transform)); Rotation := Self.base_Sprite.Spin * Rotation; Self.bone_Sprites (the_bone_Id).all.Site_is (Site); if which_Joint /= Self.root_Joint.Name then Self.bone_Sprites (the_bone_Id).all.Spin_is (Rotation); end if; end if; end; for i in child_Joints'Range loop Self.update_global_Transform_for (child_Joints (i)); -- Recurse over children. end loop; end update_global_Transform_for; procedure update_all_global_Transforms (Self : in out Item'Class) is begin Self.update_global_Transform_for (Self.root_Joint); -- Re-determine all joint transforms, recursively. end update_all_global_Transforms; procedure set_rotation_Angle (Self : in out Item'Class; for_Joint : in scene_joint_Id; Axis : in axis_Kind; To : in Real) is begin case Axis is when x_Axis => Self.set_x_rotation_Angle (for_Joint, To); when y_Axis => Self.set_y_rotation_Angle (for_Joint, To); when z_Axis => Self.set_z_rotation_Angle (for_Joint, To); end case; end set_rotation_Angle; procedure set_Location (Self : in out Item'Class; for_Joint : in scene_joint_Id; To : in Vector_3) is begin Self.scene_Joints (for_Joint).Node.set_Location (To); end set_Location; procedure set_Location_x (Self : in out Item'Class; for_Joint : in scene_joint_Id; To : in Real) is begin Self.scene_Joints (for_Joint).Node.set_Location_x (To); end set_Location_x; procedure set_Location_y (Self : in out Item'Class; for_Joint : in scene_joint_Id; To : in Real) is begin Self.scene_Joints (for_Joint).Node.set_Location_y (To); end set_Location_y; procedure set_Location_z (Self : in out Item'Class; for_Joint : in scene_joint_Id; To : in Real) is begin Self.scene_Joints (for_Joint).Node.set_Location_z (To); end set_location_z; procedure set_Transform (Self : in out Item'Class; for_Joint : in scene_joint_Id; To : in Matrix_4x4) is begin Self.scene_Joints (for_Joint).Node.set_Transform (To); end set_Transform; procedure set_x_rotation_Angle (Self : in out Item'Class; for_Joint : in scene_joint_Id; To : in Real) is begin Self.scene_Joints (for_Joint).Node.set_x_rotation_Angle (To); end set_x_rotation_Angle; procedure set_y_rotation_Angle (Self : in out Item'Class; for_Joint : in scene_joint_Id; To : in Real) is begin Self.scene_Joints (for_Joint).Node.set_y_rotation_Angle (To); end set_y_rotation_Angle; procedure set_z_rotation_Angle (Self : in out Item'Class; for_Joint : in scene_joint_Id; To : in Real) is begin Self.scene_Joints (for_Joint).Node.set_z_rotation_Angle (To); end set_z_rotation_Angle; ---------- --- Define -- procedure define (Self : in out Item; in_World : in gel .World.view; Model : in openGL.Model.view; Mass : in Real := 0.0; is_Kinematic : in Boolean := False; bone_Details : in bone_id_Map_of_details := bone_id_Maps_of_details.empty_Map) is use collada.Document, collada.Library, collada.Library.visual_Scenes, ada.Strings.unbounded, ada.Strings; type any_Model_view is access all openGL.Model.any.item; the_Model : constant any_Model_view := any_Model_view (Model); the_Document : constant collada.Document.item := to_Document (openGL.to_String (the_Model.Model)); function get_root_Joint return visual_Scenes.Node_view is begin if the_Document.Libraries.visual_Scenes.skeletal_Root = "" then return the_Document.Libraries.visual_Scenes.Contents (1).root_Node; else return the_Document.Libraries.visual_Scenes.Contents (1).root_Node.Child (1); end if; end get_root_Joint; the_root_Joint : constant visual_scenes.Node_view := get_root_Joint; prior_bone_Length : Real := 1.0; package joint_id_Maps_of_vector_3 is new ada.Containers.hashed_Maps (Key_type => scene_joint_Id, Element_type => Vector_3, Hash => ada.Strings.unbounded.Hash, equivalent_Keys => ada.Strings.unbounded."=", "=" => "="); subtype joint_id_Map_of_vector_3 is joint_id_Maps_of_vector_3.Map; joint_Sites : joint_id_Map_of_vector_3; procedure set_Site_for (the_Joint : in visual_Scenes.Node_view) is which_Joint : constant scene_joint_Id := the_Joint.Id; child_Joints : constant visual_Scenes.Nodes := the_Joint.Children; begin if which_Joint = Self.root_Joint.Name then joint_Sites.insert (which_Joint, (0.0, 0.0, 0.0)); else joint_Sites.insert (which_Joint, get_Translation (Self.joint_bind_Matrix (which_Joint))); end if; for i in child_Joints'Range loop set_Site_for (child_Joints (i)); -- Recurse over children. end loop; end set_Site_for; procedure create_Bone (the_Bone : in bone_Id; start_Joint : in scene_joint_Id; end_Point : in Vector_3; Scale : in Vector_3; Mass : in Real) is use opengl.Palette; new_Sprite : gel.Sprite.view; the_bone_Site : constant Vector_3 := midPoint (joint_Sites (start_Joint), end_Point); begin if the_Bone = Self.root_Joint.Name then declare use standard.physics.Model; Size : constant Vector_3 := (0.1, 0.1, 0.1); physics_Model : constant standard.physics.Model.View := standard.physics.Model.Forge.new_physics_Model (shape_Info => (Kind => Cube, half_Extents => Size / 2.0), Mass => 1.0); begin new_Sprite := gel.Sprite.Forge.new_Sprite ("Skin Sprite", gel.sprite.World_view (in_World), math.Origin_3D, Model, physics_Model, is_Kinematic => is_Kinematic); end; new_Sprite.Site_is ((0.0, 0.0, 0.0)); new_Sprite.Spin_is (Identity_3x3); Self.bone_pose_Transforms.insert (the_Bone, Identity_4x4); Self.skin_Sprite := new_Sprite; else new_Sprite := gel.Forge.new_box_Sprite (in_World => in_World.all'Access, Mass => 1.0, Size => Scale, Colors => (1 => Black, 3 => Green, 4 => Blue, others => Red), is_Kinematic => is_Kinematic); new_Sprite.Site_is (the_bone_Site); new_Sprite.Spin_is (Inverse (get_Rotation (Self.joint_bind_Matrix (start_Joint)))); new_Sprite.is_Visible (False); Self.anim_joint_site_Offets.insert (the_Bone, Inverse (get_Rotation (Self.joint_inv_bind_Matrix (start_Joint))) * (joint_Sites (start_Joint) - the_bone_Site)); Self.phys_joint_site_Offets.insert (the_Bone, joint_Sites (start_Joint) - the_bone_Site); Self.bone_pose_Transforms .insert (the_Bone, to_transform_Matrix (Rotation => get_Rotation (Self.joint_pose_Transforms (start_Joint)), Translation => the_bone_Site)); end if; Self.bone_Sprites.insert (the_Bone, new_Sprite); declare new_Sprite : constant gel.Sprite.view := gel.Forge.new_box_Sprite (in_World => in_World, Mass => 0.0, Size => (0.02, 0.02, 0.02), Colors => (others => Yellow), is_Kinematic => True); begin Self.joint_Sprites.insert (the_Bone, new_Sprite); end; end create_Bone; procedure create_Bone_for (the_Joint : in visual_Scenes.Node_view; Parent : in bone_Id) is use bone_id_Maps_of_details; which_Joint : constant scene_joint_Id := the_Joint.Id; child_Joints : constant visual_Scenes.Nodes := the_Joint.Children; the_bone_Details : Rig.bone_Details; bone_Length : Real; end_Point : Vector_3; new_Joint : gel.Joint.view; function guessed_bone_Length return Real is begin if child_Joints'Length = 0 then return prior_bone_Length; else if which_Joint = Self.root_Joint.Name then return Distance (joint_Sites.Element (which_Joint), joint_Sites.Element (child_Joints (child_Joints'First).Id)); else return Distance (joint_Sites.Element (which_Joint), joint_Sites.Element (child_Joints (child_Joints'Last).Id)); end if; end if; end guessed_bone_Length; begin if bone_Details.contains (which_Joint) then the_bone_Details := bone_Details.Element (which_Joint); if the_bone_Details.Length = Unspecified then bone_Length := guessed_bone_Length; else bone_Length := the_bone_Details.Length; end if; else bone_Length := guessed_bone_Length; end if; end_Point := joint_Sites.Element (which_Joint) + (0.0, bone_Length, 0.0) * get_Rotation (Self.joint_bind_Matrix (which_Joint)); prior_bone_Length := bone_Length; Self.joint_Parent.insert (which_Joint, Parent); create_Bone (which_Joint, which_Joint, end_Point, (the_bone_Details.width_Factor * bone_Length, bone_Length * 0.90, the_bone_Details.depth_Factor * bone_Length), 1.0); if Parent /= (+"") then Self.Sprite (Parent).attach_via_ball_Socket (Self.bone_Sprites (which_Joint), pivot_Axis => x_Rotation_from (0.0), pivot_Anchor => joint_Sites.Element (which_Joint), pitch_Limits => the_bone_Details.pitch_Limits, yaw_Limits => the_bone_Details. yaw_Limits, roll_Limits => the_bone_Details. roll_Limits, new_Joint => new_Joint); Self.Joints.insert (to_gel_joint_Id (Parent, which_Joint), new_Joint); end if; for i in child_Joints'Range loop create_Bone_for (child_Joints (i), -- Recurse over children. parent => which_Joint); end loop; end create_Bone_for; use collada.Library.Controllers; global_transform_Slot : Positive := 1; begin Self.root_Joint := the_root_Joint; -- Remember our root joint. Self.Model := Model.all'unchecked_Access; -- Remember our model. --- Parse Controllers. -- -- Set the bind shape matrix. -- Self.bind_shape_Matrix := Transpose (bind_shape_Matrix_of (the_Document.Libraries.Controllers.Contents (1).Skin)); -- Set the joint slots. -- declare the_Skin : constant Controllers.Skin := the_Document.Libraries.Controllers.Contents (1).Skin; the_joint_Names : constant collada.Text_array := joint_Names_of (the_Skin); begin for i in 1 .. Integer (the_joint_Names'Length) loop Self.program_Parameters.joint_Map_of_slot.insert (the_joint_Names (i), i); end loop; end; -- Set the inverse bind matrices for all joints. -- declare the_Skin : constant Controllers.Skin := the_Document.Libraries.Controllers.Contents (1).Skin; the_bind_Poses : constant collada.Matrix_4x4_array := bind_Poses_of (the_Skin); begin for i in 1 .. Integer (the_bind_Poses'Length) loop Self.joint_inv_bind_Matrices .append (Transpose (the_bind_Poses (i))); -- Transpose corrects for collada column vectors. Self.program_Parameters.bone_Transforms.append (Identity_4x4); end loop; end; --- Parse Visual Scene. -- Self.define_global_Transform_for (the_root_Joint, -- Determine all joint transforms, recursively. Slot => global_transform_Slot); set_Site_for (the_root_Joint); create_Bone_for (the_root_Joint, Parent => +""); -- Create all other bones, recursively. --- Parse the Collada animations file. -- declare use collada.Library.Animations; the_Animations : constant access Animation_array := the_Document.Libraries.Animations.Contents; begin if the_Animations /= null then for Each in the_Animations'Range loop declare the_Animation : constant animations.Animation := the_Animations (Each); the_Inputs : access collada.float_Array := Inputs_of (the_Animation); procedure common_setup (Channel : in channel_Id; scene_Joint : in scene_Joint_Id; Sid : in String) is default_scene_Joint : rig.scene_Joint; default_Channel : animation_Channel; begin Self.Channels.insert (Channel, default_Channel); Self.Channels (Channel).Target := Self.scene_Joints (scene_Joint).Node.fetch_Transform (Sid); Self.Channels (Channel).target_Joint := scene_Joint; Self.Channels (Channel).Times := Inputs_of (the_Animation); Self.Channels (Channel).Values := Outputs_of (the_Animation); end common_setup; procedure setup_Rotation (Channel : in channel_Id; scene_Joint : in scene_Joint_Id; Sid : in String) is begin common_setup (Channel, scene_Joint, Sid); -- For angle interpolation during 'rotation' animation. -- Self.Channels (Channel).initial_Angle := Self.Channels (Channel).Values (1); Self.Channels (Channel).current_Angle := Self.Channels (Channel).initial_Angle; end setup_Rotation; procedure setup_Location (Channel : in channel_Id; scene_Joint : in scene_Joint_Id; Sid : in String) is begin common_setup (Channel, scene_Joint, Sid); -- For location interpolation during 'translation' animation. -- Self.Channels (Channel).current_Site := (Self.Channels (Channel).Values (1), Self.Channels (Channel).Values (2), Self.Channels (Channel).Values (3)); Self.Channels (Channel).initial_Site := Self.Channels (Channel).current_Site; end setup_Location; procedure setup_Location_x (Channel : in channel_Id; scene_Joint : in scene_Joint_Id; Sid : in String) is begin common_setup (Channel, scene_Joint, Sid); -- For matrix interpolation during 'full_transform' animation. -- Self.Channels (Channel).Transforms := new Transforms (1 .. Self.Channels (Channel).Values'Length); for i in Self.Channels (Channel).Transforms'Range loop declare the_X_Value : constant Real := Self.Channels (Channel).Values (i); begin Self.Channels (Channel).Transforms (i) := (Rotation => to_Quaternion (Identity_3x3), Translation => (the_X_Value, 0.0, 0.0)); end; end loop; Self.Channels (Channel).initial_Transform := Self.Channels (Channel).Transforms (1); Self.Channels (Channel).current_Transform := Self.Channels (Channel).initial_Transform; Self.Channels (Channel).current_Site := Self.Channels (Channel).initial_Transform.Translation; Self.Channels (Channel).initial_Site := Self.Channels (Channel).current_Site; end setup_Location_x; procedure setup_Location_y (Channel : in channel_Id; scene_Joint : in scene_Joint_Id; Sid : in String) is begin common_setup (Channel, scene_Joint, Sid); -- For matrix interpolation during 'full_transform' animation. -- Self.Channels (Channel).Transforms := new Transforms (1 .. Self.Channels (Channel).Values'Length); for i in Self.Channels (Channel).Transforms'Range loop declare the_Y_Value : constant Real := Self.Channels (Channel).Values (i); begin Self.Channels (Channel).Transforms (i) := (rotation => to_Quaternion (Identity_3x3), translation => (0.0, the_Y_Value, 0.0)); end; end loop; Self.Channels (Channel).initial_Transform := Self.Channels (Channel).Transforms (1); Self.Channels (Channel).current_Transform := Self.Channels (Channel).initial_Transform; Self.Channels (Channel).current_Site := Self.Channels (Channel).initial_Transform.Translation; Self.Channels (Channel).initial_Site := Self.Channels (Channel).current_Site; end setup_Location_y; procedure setup_Location_z (Channel : in channel_Id; scene_Joint : in scene_Joint_Id; Sid : in String) is begin common_setup (Channel, scene_Joint, Sid); -- For matrix interpolation during 'full_transform' animation. -- Self.Channels (Channel).Transforms := new Transforms (1 .. Self.Channels (Channel).Values'Length); for i in Self.Channels (Channel).Transforms'Range loop declare the_Z_Value : constant Real := Self.Channels (Channel).Values (i); begin Self.Channels (Channel).Transforms (i) := (rotation => to_Quaternion (Identity_3x3), translation => (0.0, 0.0, the_Z_Value)); end; end loop; Self.Channels (Channel).initial_Transform := Self.Channels (Channel).Transforms (1); Self.Channels (Channel).current_Transform := Self.Channels (Channel).initial_Transform; Self.Channels (Channel).current_Site := Self.Channels (Channel).initial_Transform.Translation; Self.Channels (Channel).initial_Site := Self.Channels (Channel).current_Site; end setup_Location_z; procedure setup_full_Transform (Channel : in channel_Id; scene_Joint : in scene_Joint_Id; Sid : in String) is begin common_setup (Channel, scene_Joint, Sid); -- For matrix interpolation during 'full_transform' animation. -- Self.Channels (Channel).Transforms := new Transforms (1 .. Collada.matrix_Count (Self.Channels (Channel).Values.all)); for i in Self.Channels (Channel).Transforms'Range loop declare the_Matrix : constant math.Matrix_4x4 := Transpose (Collada.get_Matrix (Self.Channels (Channel).Values.all, which => i)); begin Self.Channels (Channel).Transforms (i) := (Rotation => to_Quaternion (get_Rotation (the_Matrix)), Translation => get_Translation (the_Matrix)); end; end loop; Self.Channels (Channel).initial_Transform := Self.Channels (Channel).Transforms (1); Self.Channels (Channel).current_Transform := Self.Channels (Channel).initial_Transform; Self.Channels (Channel).current_Site := Self.Channels (Channel).initial_Transform.Translation; Self.Channels (Channel).initial_Site := Self.Channels (Channel).current_Site; end setup_full_Transform; function Index (Source : in unbounded_String; Pattern : in String; Going : in Direction := Forward; Mapping : in Maps.character_Mapping := ada.Strings.Maps.Identity) return Natural renames ada.Strings.unbounded.Index; begin if Index (the_Animation.Channel.Target, "hips/transform") /= 0 then setup_full_Transform (+"hips", +"hips", "transform"); elsif Index (the_Animation.Channel.Target, "thigh_L/transform") /= 0 then setup_full_Transform (+"thigh_L", +"thigh_L", "transform"); elsif Index (the_Animation.Channel.Target, "shin_L/transform") /= 0 then setup_full_Transform (+"shin_L", +"shin_L", "transform"); elsif Index (the_Animation.Channel.Target, "foot_L/transform") /= 0 then setup_full_Transform (+"foot_L", +"foot_L", "transform"); elsif Index (the_Animation.Channel.Target, "toe_L/transform") /= 0 then setup_full_Transform (+"toe_L", +"toe_L", "transform"); elsif Index (the_Animation.Channel.Target, "thigh_R/transform") /= 0 then setup_full_Transform (+"thigh_R", +"thigh_R", "transform"); elsif Index (the_Animation.Channel.Target, "shin_R/transform") /= 0 then setup_full_Transform (+"shin_R", +"shin_R", "transform"); elsif Index (the_Animation.Channel.Target, "foot_R/transform") /= 0 then setup_full_Transform (+"foot_R", +"foot_R", "transform"); elsif Index (the_Animation.Channel.Target, "toe_R/transform") /= 0 then setup_full_Transform (+"toe_R", +"toe_R", "transform"); elsif Index (the_Animation.Channel.Target, "spine/transform") /= 0 then setup_full_Transform (+"spine", +"spine", "transform"); elsif Index (the_Animation.Channel.Target, "chest/transform") /= 0 then setup_full_Transform (+"chest", +"chest", "transform"); elsif Index (the_Animation.Channel.Target, "clavicle_R/transform") /= 0 then setup_full_Transform (+"clavicle_R", +"clavicle_R", "transform"); elsif Index (the_Animation.Channel.Target, "upper_arm_R/transform") /= 0 then setup_full_Transform (+"upper_arm_R", +"upper_arm_R", "transform"); elsif Index (the_Animation.Channel.Target, "forearm_R/transform") /= 0 then setup_full_Transform (+"forearm_R", +"forearm_R", "transform"); elsif Index (the_Animation.Channel.Target, "hand_R/transform") /= 0 then setup_full_Transform (+"hand_R", +"hand_R", "transform"); elsif Index (the_Animation.Channel.Target, "thumb_02_R/transform") /= 0 then setup_full_Transform (+"thumb_02_R", +"thumb_02_R", "transform"); elsif Index (the_Animation.Channel.Target, "thumb_03_R/transform") /= 0 then setup_full_Transform (+"thumb_03_R", +"thumb_03_R", "transform"); elsif Index (the_Animation.Channel.Target, "f_ring_01_R/transform") /= 0 then setup_full_Transform (+"f_ring_01_R", +"f_ring_01_R", "transform"); elsif Index (the_Animation.Channel.Target, "f_index_01_R/transform") /= 0 then setup_full_Transform (+"f_index_01_R", +"f_index_01_R", "transform"); elsif Index (the_Animation.Channel.Target, "clavicle_L/transform") /= 0 then setup_full_Transform (+"clavicle_L", +"clavicle_L", "transform"); elsif Index (the_Animation.Channel.Target, "upper_arm_L/transform") /= 0 then setup_full_Transform (+"upper_arm_L", +"upper_arm_L", "transform"); elsif Index (the_Animation.Channel.Target, "forearm_L/transform") /= 0 then setup_full_Transform (+"forearm_L", +"forearm_L", "transform"); elsif Index (the_Animation.Channel.Target, "hand_L/transform") /= 0 then setup_full_Transform (+"hand_L", +"hand_L", "transform"); elsif Index (the_Animation.Channel.Target, "thumb_02_L/transform") /= 0 then setup_full_Transform (+"thumb_02_L", +"thumb_02_L", "transform"); elsif Index (the_Animation.Channel.Target, "thumb_03_L/transform") /= 0 then setup_full_Transform (+"thumb_03_L", +"thumb_03_L", "transform"); elsif Index (the_Animation.Channel.Target, "f_ring_01_L/transform") /= 0 then setup_full_Transform (+"f_ring_01_L", +"f_ring_01_L", "transform"); elsif Index (the_Animation.Channel.Target, "f_index_01_L/transform") /= 0 then setup_full_Transform (+"f_index_01_L", +"f_index_01_L", "transform"); elsif Index (the_Animation.Channel.Target, "neck/transform") /= 0 then setup_full_Transform (+"neck", +"neck", "transform"); elsif Index (the_Animation.Channel.Target, "head/transform") /= 0 then setup_full_Transform (+"head", +"head", "transform"); elsif Index (the_Animation.Channel.Target, "jaw/transform") /= 0 then setup_full_Transform (+"jaw", +"jaw", "transform"); elsif Index (the_Animation.Channel.Target, "eye_R/transform") /= 0 then setup_full_Transform (+"eye_R", +"eye_R", "transform"); elsif Index (the_Animation.Channel.Target, "eye_L/transform") /= 0 then setup_full_Transform (+"eye_L", +"eye_L", "transform"); elsif Index (the_Animation.Channel.Target, "stride_bone/location.X") /= 0 then -- setup_Location_x (+"stride_bone_x", +"stride_bone", "x"); setup_Location_x (+"stride_bone_x", +"human", "x"); elsif Index (the_Animation.Channel.Target, "stride_bone/location.Y") /= 0 then -- setup_Location_y (+"stride_bone_y", +"stride_bone", "y"); setup_Location_y (+"stride_bone_y", +"human", "y"); elsif Index (the_Animation.Channel.Target, "stride_bone/location.Z") /= 0 then -- setup_Location_z (+"stride_bone_z", +"stride_bone", "z"); setup_Location_z (+"stride_bone_z", +"human", "z"); else raise constraint_Error with +the_Animation.Channel.Target & " not handled"; end if; end; end loop; end if; end; end define; procedure enable_Graphics (Self : in out Item) is begin Self .program_Parameters.Program_is (opengl.Program.view (opengl.Geometry.lit_colored_textured_skinned.Program)); Self.skin_Sprite.program_Parameters_are (Self.program_Parameters'unchecked_Access); end enable_Graphics; function Joints (Self : in Item) return gel_joint_id_Map_of_gel_Joint is begin return Self.Joints; end Joints; function joint_inv_bind_Matrices (Self : in Item'Class) return inverse_bind_matrix_Vector is begin return Self.joint_inv_bind_Matrices; end joint_inv_bind_Matrices; procedure joint_inv_bind_Matrices_are (Self : in out Item'Class; Now : in inverse_bind_matrix_Vector) is begin Self.joint_inv_bind_Matrices := Now; end joint_inv_bind_Matrices_are; function joint_site_Offets (Self : in Item'Class) return joint_Id_Map_of_bone_site_offset is begin return Self.phys_joint_site_Offets; end joint_site_Offets; -------------- --- Attributes -- procedure Site_is (Self :in out Item; Now : in Vector_3) is begin Self.base_Sprite.move (to_Site => Now); Self.overall_Site := Now; end Site_is; procedure Spin_is (Self :in out Item; Now : in Matrix_3x3) is begin Self.base_Sprite.rotate (to_Spin => Now); end Spin_is; function Sprite (Self : in Item'Class; Bone : in bone_Id) return gel.Sprite.view is begin return Self.bone_Sprites (Bone); end Sprite; function base_Sprite (Self : in Item'Class) return gel.Sprite.view is begin return Self.bone_Sprites.Element (Self.root_Joint.Name); end base_Sprite; function skin_Sprite (Self : in Item'Class) return gel.Sprite.view is begin return Self.skin_Sprite; end skin_Sprite; function bone_Sprites (Self : in Item) return bone_id_Map_of_sprite is begin return Self.bone_Sprites; end bone_Sprites; procedure set_GL_program_Parameters (Self : in out Item'Class; for_Bone : in controller_joint_Id; To : in Matrix_4x4) is use gel.Conversions; bone_Slot : constant Positive := Self.program_Parameters.joint_Map_of_slot.Element (for_Bone); begin Self.program_Parameters.bone_Transforms.replace_Element (bone_Slot, to_GL (To)); end set_GL_program_Parameters; procedure animation_Transforms_are (Self : in out Item'Class; Now : in bone_id_Map_of_transform) is begin Self.animation_Transforms := Now; end animation_Transforms_are; procedure motion_Mode_is (Self : in out Item; Now : in motion_Mode) is begin Self.Mode := Now; end motion_Mode_is; -------------- --- Operations -- procedure evolve (Self : in out Item'Class; world_Age : in Duration) is function get_root_Transform return Matrix_4x4 is begin case Self.Mode is when Dynamics => return Self.base_Sprite.Transform; when Animation => declare the_Transform : Matrix_4x4; begin set_Rotation (the_Transform, x_Rotation_from (to_Radians (0.0))); set_Translation (the_Transform, -get_Translation (Inverse (Self.joint_pose_Transforms (Self.root_Joint.Name)))); return the_Transform; end; end case; end get_root_Transform; root_Transform : constant Matrix_4x4 := get_root_Transform; inv_root_Transform : constant Matrix_4x4 := Inverse (root_Transform); function joint_Transform_for (the_collada_Joint : in controller_joint_Id) return Matrix_4x4 is begin case Self.Mode is when Dynamics => declare the_bone_Transform : constant Matrix_4x4 := Self.Sprite (the_collada_Joint).Transform; the_joint_site_Offset : Vector_3 := Self.phys_joint_site_Offets (the_collada_Joint); the_joint_Transform : Matrix_4x4; begin the_joint_site_Offset := the_joint_site_Offset * get_Rotation (Self.joint_inv_bind_Matrix (the_collada_Joint)) * get_Rotation (the_bone_Transform); set_Translation (the_joint_Transform, get_Translation (the_bone_Transform) + the_joint_site_Offset); set_Rotation (the_joint_Transform, get_Rotation (the_bone_Transform)); Self.joint_Sprites (the_collada_Joint).all.Site_is (get_Translation (the_joint_Transform)); return the_joint_Transform; end; when Animation => Self.joint_Sprites (the_collada_Joint).all.Site_is ( get_Translation (Self.scene_Joints (the_collada_Joint).Transform)); Self.joint_Sprites (the_collada_Joint).all.Spin_is (Inverse (get_Rotation (Self.scene_Joints (the_collada_Joint).Transform))); return Self.scene_Joints (the_collada_Joint).Transform; end case; end joint_Transform_for; procedure set_Transform_for (the_Bone : in controller_joint_Id) is the_Slot : constant Positive := Self.program_Parameters.joint_Map_of_slot (the_Bone); begin Self.set_GL_program_Parameters (for_Bone => the_Bone, To => Self.bind_shape_Matrix * Self.joint_inv_bind_Matrices.Element (the_Slot) * joint_Transform_for (the_Bone) * inv_root_Transform); end set_Transform_for; procedure set_proxy_Transform_for (the_Bone : in controller_joint_Id; the_Proxy : in controller_joint_Id) is the_Slot : constant Positive := Self.program_Parameters.joint_Map_of_slot (the_Proxy); begin Self.set_GL_program_Parameters (for_bone => the_Bone, to => Self.bind_shape_Matrix * Self.joint_inv_bind_Matrices .Element (the_Slot) * joint_Transform_for (the_Proxy) * inv_root_Transform); end set_proxy_Transform_for; use joint_Id_Maps_of_bone_site_offset; Cursor : joint_Id_Maps_of_bone_site_offset.Cursor := Self.phys_joint_site_Offets.First; begin if Self.Mode = Animation then Self.animate (world_Age); end if; while has_Element (Cursor) loop if Self.program_Parameters.joint_Map_of_slot.Contains (Key (Cursor)) then set_Transform_for (Key (Cursor)); -- Updates gl skin program params. end if; next (Cursor); end loop; end evolve; procedure assume_Pose (Self : in out Item) is use bone_id_Maps_of_transform; the_Bone : gel.Sprite.view; Cursor : bone_id_Maps_of_transform.Cursor := Self.bone_pose_Transforms.First; begin while has_Element (Cursor) loop the_Bone := Self.bone_Sprites (Key (Cursor)); the_Bone.Transform_is (Element (Cursor)); next (Cursor); end loop; end assume_Pose; function Parent_of (Self : in Item; the_Bone : in bone_Id) return bone_Id is begin if Self.joint_Parent.Contains (the_Bone) then return Self.joint_Parent.Element (the_Bone); else return null_Id; end if; end Parent_of; function joint_site_Offet (Self : in Item; for_Bone : in bone_Id) return math.Vector_3 is begin return Self.phys_joint_site_Offets.Element (for_Bone); end joint_site_Offet; function joint_inv_bind_Matrix (Self : in Item; for_Bone : in bone_Id) return math.Matrix_4x4 is use ada.Strings.unbounded; begin if for_Bone = Self.root_Joint.Name then return math.Identity_4x4; else return Self.joint_inv_bind_Matrices.Element (Self.program_Parameters.joint_Map_of_slot.Element (for_Bone)); end if; end joint_inv_bind_Matrix; function joint_bind_Matrix (Self : in Item; for_Bone : in bone_Id) return Matrix_4x4 is begin return Inverse (Self.joint_inv_bind_Matrix (for_Bone)); end joint_bind_Matrix; ------------- --- Animation -- procedure animate (Self : in out Item; world_Age : in Duration) is Now : Duration; Elapsed : Duration; procedure update_rotation_Animation (for_Channel : in channel_Id; for_Joint : in scene_joint_Id; for_Axis : in axis_Kind) is the_Channel : animation_Channel renames Self.Channels (for_Channel); Cursor : math.Index renames the_Channel.Cursor; function Reduced (Angle : in Real) return Real -- TODO: Use Degrees type. is begin if Angle > 180.0 then return -360.0 + Angle; elsif Angle < -180.0 then return 360.0 + Angle; else return Angle; end if; end Reduced; begin if Cursor < the_Channel.Times'Last then if Cursor = 0 or else Elapsed > Duration (the_Channel.Times (Cursor)) then Cursor := Cursor + 1; if Cursor = 1 then if the_Channel.Times (Cursor) = 0.0 then the_Channel.interp_Delta := Reduced (the_Channel.Values (Cursor) - the_Channel.current_Angle); else the_Channel.interp_Delta := Reduced (the_Channel.Values (Cursor) - the_Channel.current_Angle) / (the_Channel.Times (Cursor)); end if; else the_Channel.interp_Delta := Reduced (the_Channel.Values (Cursor) - the_Channel.current_Angle) / (the_Channel.Times (Cursor) - the_Channel.Times (Cursor - 1)); end if; the_Channel.interp_Delta := the_Channel.interp_Delta / 60.0; -- 60.0 is frames/sec. end if; end if; if Elapsed < Duration (the_Channel.Times (the_Channel.Times'Last)) then the_Channel.current_Angle := Reduced ( the_Channel.current_Angle + the_Channel.interp_Delta); Self.set_rotation_Angle (for_Joint, for_Axis, To => to_Radians (Degrees (the_Channel.current_Angle))); end if; end update_rotation_Animation; procedure update_location_Animation (for_Channel : in channel_Id; for_Joint : in scene_joint_Id) is the_Channel : animation_Channel renames Self.Channels (for_Channel); Cursor : Index renames the_Channel.Cursor; Elapsed : constant Duration := Now - Self.start_Time; function site_X return Real is begin return the_Channel.Values ((Cursor - 1) * 3 + 1); end site_X; function site_Y return Real is begin return the_Channel.Values ((Cursor - 1) * 3 + 2); end site_Y; function site_Z return Real is begin return the_Channel.Values ((Cursor - 1) * 3 + 3); end site_Z; begin if Cursor < the_Channel.Times'Last then if Cursor = 0 or else Elapsed > Duration (the_Channel.Times (Cursor)) then Cursor := Cursor + 1; if Cursor = 1 then if the_Channel.Times (Cursor) = 0.0 then the_Channel.site_interp_Delta (1) := site_X - the_Channel.current_Site (1); the_Channel.site_interp_Delta (2) := site_Y - the_Channel.current_Site (2); the_Channel.site_interp_Delta (3) := site_Z - the_Channel.current_Site (3); else the_Channel.site_interp_Delta (1) := (site_X - the_Channel.current_Site (1)) / (the_Channel.Times (Cursor)); the_Channel.site_interp_Delta (2) := (site_Y - the_Channel.current_Site (2)) / (the_Channel.Times (Cursor)); the_Channel.site_interp_Delta (3) := (site_Z - the_Channel.current_Site (3)) / (the_Channel.Times (Cursor)); end if; else the_Channel.site_interp_Delta (1) := (site_X - the_Channel.current_Site (1)) / (the_Channel.Times (Cursor) - the_Channel.Times (Cursor - 1)); the_Channel.site_interp_Delta (2) := (site_Y - the_Channel.current_Site (2)) / (the_Channel.Times (Cursor) - the_Channel.Times (Cursor - 1)); the_Channel.site_interp_Delta (3) := (site_Z - the_Channel.current_Site (3)) / (the_Channel.Times (Cursor) - the_Channel.Times (Cursor - 1)); end if; the_Channel.site_interp_Delta (1) := the_Channel.site_interp_Delta (1) / 60.0; -- 60.0 is frames/sec. the_Channel.site_interp_Delta (2) := the_Channel.site_interp_Delta (2) / 60.0; -- the_Channel.site_interp_Delta (3) := the_Channel.site_interp_Delta (3) / 60.0; -- end if; Self.set_Location (the_Channel.target_Joint, to => the_Channel.current_Site); the_Channel.current_Site (1) := the_Channel.current_Site (1) + the_Channel.site_interp_Delta (1); the_Channel.current_Site (2) := the_Channel.current_Site (2) + the_Channel.site_interp_Delta (2); the_Channel.current_Site (3) := the_Channel.current_Site (3) + the_Channel.site_interp_Delta (3); end if; end update_location_Animation; procedure update_location_X_Animation (for_Channel : in channel_Id; for_Joint : in scene_joint_Id) is the_Channel : animation_Channel renames Self.Channels (for_Channel); Cursor : Index renames the_Channel.Cursor; Elapsed : constant Duration := Now - Self.start_Time; function site_X return Real is begin return the_Channel.Values (Cursor); end site_X; begin if Cursor < the_Channel.Times'Last then if Cursor = 0 or else Elapsed > Duration (the_Channel.Times (Cursor)) then Cursor := Cursor + 1; if Cursor = 1 then if the_Channel.Times (Cursor) = 0.0 then the_Channel.site_interp_Delta (1) := site_X - the_Channel.current_Site (1); else the_Channel.site_interp_Delta (1) := (site_X - the_Channel.current_Site (1)) / (the_Channel.Times (Cursor)); end if; else the_Channel.site_interp_Delta (1) := (site_X - the_Channel.current_Site (1)) / (the_Channel.Times (Cursor) - the_Channel.Times (Cursor - 1)); end if; the_Channel.site_interp_Delta (1) := the_Channel.site_interp_Delta (1) / 60.0; -- 60.0 is frames/sec. end if; Self.set_Location_x (the_Channel.target_Joint, To => the_Channel.current_Site (1)); the_Channel.current_Site (1) := the_Channel.current_Site (1) + the_Channel.site_interp_Delta (1); end if; end update_location_X_Animation; procedure update_location_Y_Animation (for_Channel : in channel_Id; for_Joint : in scene_joint_Id) is the_Channel : animation_Channel renames Self.Channels (for_Channel); Cursor : Index renames the_Channel.Cursor; Elapsed : constant Duration := Now - Self.start_Time; function site_Y return math.Real is begin return the_Channel.Values (Cursor); end site_Y; begin if Cursor < the_Channel.Times'Last then if Cursor = 0 or else Elapsed > Duration (the_Channel.Times (Cursor)) then Cursor := Cursor + 1; if Cursor = 1 then if the_Channel.Times (Cursor) = 0.0 then the_Channel.site_interp_Delta (2) := site_Y - the_Channel.current_Site (2); else the_Channel.site_interp_Delta (2) := (site_Y - the_Channel.current_Site (2)) / (the_Channel.Times (Cursor)); end if; else the_Channel.site_interp_Delta (2) := (site_Y - the_Channel.current_Site (2)) / (the_Channel.Times (Cursor) - the_Channel.Times (Cursor - 1)); end if; the_Channel.site_interp_Delta (2) := the_Channel.site_interp_Delta (2) / 60.0; -- 60.0 is frames/sec end if; Self.set_Location_y (the_Channel.target_Joint, To => the_Channel.current_Site (2)); the_Channel.current_Site (2) := the_Channel.current_Site (2) + the_Channel.site_interp_Delta (2); end if; end update_location_Y_Animation; procedure update_location_Z_Animation (for_Channel : in channel_Id; for_Joint : in scene_joint_Id) is the_Channel : animation_Channel renames Self.Channels (for_Channel); Cursor : math.Index renames the_Channel.Cursor; Elapsed : constant Duration := Now - Self.start_Time; function site_Z return math.Real is begin return the_Channel.Values (Cursor); end site_Z; begin if Cursor < the_Channel.Times'Last then if Cursor = 0 or else Elapsed > Duration (the_Channel.Times (Cursor)) then Cursor := Cursor + 1; if Cursor = 1 then if the_Channel.Times (Cursor) = 0.0 then the_Channel.site_interp_Delta (3) := site_Z - the_Channel.current_Site (3); else the_Channel.site_interp_Delta (3) := (site_Z - the_Channel.current_Site (3)) / (the_Channel.Times (Cursor)); end if; else the_Channel.site_interp_Delta (3) := (site_Z - the_Channel.current_Site (3)) / (the_Channel.Times (Cursor) - the_Channel.Times (Cursor - 1)); end if; the_Channel.site_interp_Delta (3) := the_Channel.site_interp_Delta (3) / 60.0; -- 60.0 is frames/sec end if; Self.set_Location_z (the_Channel.target_Joint, To => the_Channel.current_Site (3)); the_Channel.current_Site (3) := the_Channel.current_Site (3) + the_Channel.site_interp_Delta (3); end if; end update_location_Z_Animation; procedure update_full_transform_Animation (for_Channel : in channel_Id; for_Joint : in scene_joint_Id) is the_Channel : animation_Channel renames Self.Channels (for_Channel); Cursor : Index renames the_Channel.Cursor; Cursor_updated : Boolean := False; new_Transform : Matrix_4x4 := Identity_4x4; begin if Cursor = the_Channel.Times'Last then Cursor := 0; Self.start_Time := Now; end if; -- Rotation -- declare Initial : Transform; begin if Cursor < the_Channel.Times'Last then if Cursor = 0 or else Elapsed > Duration (the_Channel.Times (Cursor)) then Cursor := Cursor + 1; Cursor_updated := True; if Cursor = 1 then Initial := the_Channel.current_Transform; if the_Channel.Times (Cursor) = 0.0 then the_Channel.Transform_interp_Delta := 1.0 / 60.0; else the_Channel.Transform_interp_Delta := the_Channel.Times (Cursor); end if; else Initial := the_Channel.Transforms (Cursor - 1); the_Channel.Transform_interp_Delta := the_Channel.Times (Cursor) - the_Channel.Times (Cursor - 1); end if; the_Channel.current_Transform := the_Channel.Transforms (Cursor); the_Channel.Transform_interp_Delta := 1.0 / (the_Channel.Transform_interp_Delta * 60.0); -- 60.0 is frames/sec. the_Channel.slerp_Time := 0.0; else if Cursor > 1 then Initial := the_Channel.Transforms (Cursor - 1); else Initial := the_Channel.Transforms (Cursor); end if; end if; else Initial := the_Channel.Transforms (1); end if; if Elapsed < Duration (the_Channel.Times (the_Channel.Times'Last)) then set_Rotation (new_Transform, to_Matrix (Slerp (Initial.Rotation, the_Channel.current_Transform.Rotation, the_Channel.slerp_Time))); the_Channel.slerp_Time := the_Channel.slerp_Time + the_Channel.Transform_interp_Delta; end if; end; -- Location -- declare use type Vector_3; desired_Site : constant Vector_3 := the_Channel.Transforms (Cursor).Translation; begin if Cursor < the_Channel.Times'Last then if Cursor_updated then if Cursor = 1 then if the_Channel.Times (Cursor) = 0.0 then the_Channel.site_interp_Delta := desired_Site - the_Channel.current_Site; else the_Channel.site_interp_Delta := (desired_Site - the_Channel.current_Site) / (the_Channel.Times (Cursor)); end if; else the_Channel.site_interp_Delta := (desired_Site - the_Channel.current_Site) / (the_Channel.Times (Cursor) - the_Channel.Times (Cursor - 1)); end if; the_Channel.site_interp_Delta := the_Channel.site_interp_Delta / 60.0; -- 60.0 is frames/sec. end if; the_Channel.current_Site := the_Channel.current_Site + the_Channel.site_interp_Delta; set_Translation (new_Transform, To => the_Channel.current_Site); end if; end; -- Scale -- -- (TODO) -- Store the new transform. -- Self.set_Transform (the_Channel.target_Joint, To => Transpose (new_Transform)); -- Transpose to convert to collada column vectors. end update_full_transform_Animation; begin Now := world_Age; if Self.start_Time = 0.0 then Self.start_Time := Now; end if; Elapsed := Now - Self.start_Time; declare use channel_id_Maps_of_animation_Channel, ada.Strings.Unbounded; Cursor : channel_id_Maps_of_animation_Channel.Cursor := Self.Channels.First; begin while has_Element (Cursor) loop if Key (Cursor) = (+"stride_bone_x") then update_location_X_Animation (Key (Cursor), Key (Cursor)); elsif Key (Cursor) = (+"stride_bone_y") then update_location_Y_Animation (Key (Cursor), Key (Cursor)); elsif Key (Cursor) = (+"stride_bone_z") then update_location_Z_Animation (Key (Cursor), Key (Cursor)); else update_full_transform_Animation (Key (Cursor), Key (Cursor)); end if; next (Cursor); end loop; end; Self.update_all_global_Transforms; end animate; procedure reset_Animation (Self : in out Item) is use channel_id_Maps_of_animation_Channel; Cursor : channel_id_Maps_of_animation_Channel.Cursor := Self.Channels.First; the_Channel : animation_Channel; begin Self.start_Time := 0.0; while has_Element (Cursor) loop the_Channel := Element (Cursor); the_Channel.Cursor := 0; the_Channel.current_Angle := the_Channel.initial_Angle; the_Channel.current_Site := the_Channel.initial_Site; the_Channel.interp_Delta := 0.0; Self.Channels.replace_Element (Cursor, the_Channel); next (Cursor); end loop; end reset_Animation; end gel.Rig;
dino/lcs/etc/5.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
6
101756
<filename>dino/lcs/etc/5.asm<gh_stars>1-10 copyright zengfr site:http://github.com/zengfr/romhack 0141F8 cmpi.b #$4, ($5,A0) 0141FE bne $14226 [123p+ 5, enemy+ 5, etc+ 5, item+ 5] 0577B0 move.b ($5,A3), D0 [enemy+A6] 0577B4 cmp.b ($a2,A6), D0 [etc+ 5] 057B58 move.b ($5,A3), D0 [enemy+A6] 057B5C cmp.b ($a2,A6), D0 [etc+ 5] 057D62 move.b ($5,A3), D0 [enemy+A6] 057D66 cmp.b ($a2,A6), D0 [etc+ 5] 075312 move.b #$2, ($5,A6) 075318 bsr $752b2 [etc+ 5] 079002 addq.b #2, ($5,A6) 079006 rts [etc+ 5] 07B3A4 move.b ($5,A6), D0 07B3A8 move.w ($6,PC,D0.w), D0 [etc+ 5] 07B3FE move.b #$4, ($5,A6) [etc+80] 07B404 tst.w ($50c,A5) [etc+ 5] 07B418 addq.b #2, ($5,A6) [etc+80] 07B41C rts [etc+ 5] 07B788 addq.b #2, ($5,A6) [etc+80] 07B78C rts [etc+ 5] 07BBD2 move.b #$2, ($5,A6) [etc+80] 07BBD8 bsr $7bc90 [etc+ 5] 07BBEC tst.b ($5,A6) [base+4FE] 07BBF0 bne $7bc1e 07BC8A clr.b ($5,A6) [base+4FE] 07BC8E rts 07C070 addq.b #2, ($5,A6) [etc+80] 07C074 rts [etc+ 5] 07C0C8 clr.b ($5,A6) [base+502] 07C0CC rts 07E886 addq.b #2, ($5,A6) 07E88A move.w ($26,A6), D0 [etc+ 5] 07E8AE addq.b #2, ($5,A6) 07E8B2 bsr $7e91a [etc+ 5] 07ECC6 move.b #$2, ($5,A6) [etc+88, etc+8A] 07ECCC subq.w #1, ($84,A6) [etc+ 5] 07EE84 addq.b #2, ($5,A6) 07EE88 rts [etc+ 5] 083722 move.b ($5,A6), D0 083726 move.w ($6,PC,D0.w), D0 [etc+ 5] 083754 addq.b #2, ($5,A6) 083758 rts [etc+ 5] 08497C addq.b #2, ($5,A6) 084980 rts [etc+ 5] 086F90 move.b ($5,A6), D0 086F94 move.w ($8,PC,D0.w), D1 [etc+ 5] 086FAE addq.b #2, ($5,A6) 086FB2 rts [etc+ 5] 087016 addq.b #2, ($5,A6) 08701A rts [etc+ 5] 08718E addq.b #2, ($5,A6) 087192 rts [etc+ 5] 089B6A move.b ($5,A6), D0 089B6E move.w ($6,PC,D0.w), D1 [etc+ 5] 089B88 move.b #$2, ($5,A6) 089B8E rts [etc+ 5] 089CA2 addi.b #$2, ($5,A6) [etc+A0] 089CA8 movem.w (A7)+, A0 [etc+ 5] 089CAE addi.b #$2, ($5,A6) 089CB4 move.w #$5a, ($a0,A6) [etc+ 5] 089D78 addi.b #$2, ($5,A6) 089D7E move.w #$1e, ($a0,A6) [etc+ 5] 089D86 addi.b #$2, ($5,A6) 089D8C rts [etc+ 5] 089D98 addi.b #$2, ($5,A6) 089D9E rts [etc+ 5] 089F24 move.b #$2, ($5,A6) 089F2A move.w #$a, ($86,A6) [etc+ 5] 089F60 addi.b #$2, ($5,A6) 089F66 move.w ($86,A6), D0 [etc+ 5] 08BF18 addq.b #2, ($5,A6) 08BF1C rts [etc+ 5] 08BF48 addq.b #2, ($5,A6) [etc+1A] 08BF4C jmp $49c0.l [etc+ 5] 08BF9C addq.b #2, ($5,A6) [etc+A2] 08BFA0 jmp $49c0.l [etc+ 5] 08BFC2 addq.b #2, ($5,A6) [etc+80] 08BFC6 jmp $49c0.l [etc+ 5] 08BFE2 addq.b #2, ($5,A6) [etc+80] 08BFE6 jmp $49c0.l [etc+ 5] 08C032 addq.b #2, ($5,A6) [etc+1A] 08C036 jmp $49c0.l [etc+ 5] 08C05A addq.b #2, ($5,A6) 08C05E jmp $49c0.l [etc+ 5] 08C860 addq.b #2, ($5,A6) 08C864 bra $8c71c [etc+ 5] 0A65D0 addq.b #2, ($5,A6) 0A65D4 rts [etc+ 5] copyright zengfr site:http://github.com/zengfr/romhack
src/Category.agda
mietek/coquand-kovacs
0
7478
<reponame>mietek/coquand-kovacs module Category where open import Prelude -------------------------------------------------------------------------------- record Category {β„“ β„“β€²} (π’ͺ : Set β„“) (_β–Ή_ : π’ͺ β†’ π’ͺ β†’ Set β„“β€²) : Set (β„“ βŠ” β„“β€²) where field idβ‚“ : βˆ€ {x} β†’ x β–Ή x _β‹„_ : βˆ€ {x y z} β†’ y β–Ή x β†’ z β–Ή y β†’ z β–Ή x lidβ‹„ : βˆ€ {x y} β†’ (f : y β–Ή x) β†’ idβ‚“ β‹„ f ≑ f ridβ‹„ : βˆ€ {x y} β†’ (f : y β–Ή x) β†’ f β‹„ idβ‚“ ≑ f assocβ‹„ : βˆ€ {x y z a} β†’ (h : a β–Ή z) (g : z β–Ή y) (f : y β–Ή x) β†’ (f β‹„ g) β‹„ h ≑ f β‹„ (g β‹„ h) π—¦π—²π˜ : (β„“ : Level) β†’ Category (Set β„“) Ξ  π—¦π—²π˜ β„“ = record { idβ‚“ = id ; _β‹„_ = _∘_ ; lidβ‹„ = Ξ» f β†’ refl ; ridβ‹„ = Ξ» f β†’ refl ; assocβ‹„ = Ξ» h g f β†’ refl } π—¦π—²π˜β‚€ : Category (Set β„“β‚€) Ξ  π—¦π—²π˜β‚€ = π—¦π—²π˜ β„“β‚€ record Functor {ℓ₁ ℓ₁′ β„“β‚‚ β„“β‚‚β€²} {π’ͺ₁ : Set ℓ₁} {_▹₁_ : π’ͺ₁ β†’ π’ͺ₁ β†’ Set ℓ₁′} {π’ͺβ‚‚ : Set β„“β‚‚} {_β–Ήβ‚‚_ : π’ͺβ‚‚ β†’ π’ͺβ‚‚ β†’ Set β„“β‚‚β€²} (𝗖 : Category π’ͺ₁ _▹₁_) (𝗗 : Category π’ͺβ‚‚ _β–Ήβ‚‚_) : Set (ℓ₁ βŠ” ℓ₁′ βŠ” β„“β‚‚ βŠ” β„“β‚‚β€²) where private module C = Category 𝗖 module D = Category 𝗗 field Fβ‚“ : π’ͺ₁ β†’ π’ͺβ‚‚ F : βˆ€ {x y} β†’ y ▹₁ x β†’ Fβ‚“ y β–Ήβ‚‚ Fβ‚“ x idF : βˆ€ {x} β†’ F (C.idβ‚“ {x = x}) ≑ D.idβ‚“ Fβ‹„ : βˆ€ {x y z} β†’ (g : z ▹₁ y) (f : y ▹₁ x) β†’ F (f C.β‹„ g) ≑ F f D.β‹„ F g record NaturalTransformation {ℓ₁ ℓ₁′ β„“β‚‚ β„“β‚‚β€²} {π’ͺ₁ : Set ℓ₁} {_▹₁_ : π’ͺ₁ β†’ π’ͺ₁ β†’ Set ℓ₁′} {π’ͺβ‚‚ : Set β„“β‚‚} {_β–Ήβ‚‚_ : π’ͺβ‚‚ β†’ π’ͺβ‚‚ β†’ Set β„“β‚‚β€²} {𝗖 : Category π’ͺ₁ _▹₁_} {𝗗 : Category π’ͺβ‚‚ _β–Ήβ‚‚_} (𝗙 π—š : Functor 𝗖 𝗗) : Set (ℓ₁ βŠ” ℓ₁′ βŠ” β„“β‚‚ βŠ” β„“β‚‚β€²) where private open module D = Category 𝗗 using (_β‹„_) open module F = Functor 𝗙 using (Fβ‚“ ; F) open module G = Functor π—š using () renaming (Fβ‚“ to Gβ‚“ ; F to G) field N : βˆ€ {x} β†’ Fβ‚“ x β–Ήβ‚‚ Gβ‚“ x natN : βˆ€ {x y} β†’ (f : y ▹₁ x) β†’ (N β‹„ F f) ≑ (G f β‹„ N) Opposite : βˆ€ {β„“ β„“β€²} β†’ {π’ͺ : Set β„“} {_β–Ή_ : π’ͺ β†’ π’ͺ β†’ Set β„“β€²} β†’ Category π’ͺ _β–Ή_ β†’ Category π’ͺ (flip _β–Ή_) Opposite 𝗖 = record { idβ‚“ = C.idβ‚“ ; _β‹„_ = flip C._β‹„_ ; lidβ‹„ = C.ridβ‹„ ; ridβ‹„ = C.lidβ‹„ ; assocβ‹„ = Ξ» f g h β†’ C.assocβ‹„ h g f ⁻¹ } where module C = Category 𝗖 Presheaf : βˆ€ β„“ {β„“β€² β„“β€³} β†’ {π’ͺ : Set β„“β€²} {_β–Ή_ : π’ͺ β†’ π’ͺ β†’ Set β„“β€³} β†’ (𝗖 : Category π’ͺ _β–Ή_) β†’ Set _ Presheaf β„“ 𝗖 = Functor (Opposite 𝗖) (π—¦π—²π˜ β„“) Presheafβ‚€ : βˆ€ {β„“ β„“β€²} β†’ {π’ͺ : Set β„“} {_β–Ή_ : π’ͺ β†’ π’ͺ β†’ Set β„“β€²} β†’ (𝗖 : Category π’ͺ _β–Ή_) β†’ Set _ Presheafβ‚€ 𝗖 = Presheaf β„“β‚€ 𝗖 --------------------------------------------------------------------------------
audio/sfx/intro_crash.asm
AmateurPanda92/pokemon-rby-dx
9
6781
<gh_stars>1-10 SFX_Intro_Crash_Ch7: noisenote 2, 13, 2, 50 noisenote 15, 15, 2, 67 endchannel
assembler/tests/data/symbol.asm
dalloriam/slang
0
164347
<filename>assembler/tests/data/symbol.asm<gh_stars>0 .data .text ld $0 100 ld $1 1 ld $2 0 test: inc $0 neq $0 $2 jeq @test
programs/oeis/256/A256455.asm
neoneye/loda
22
96472
<filename>programs/oeis/256/A256455.asm<gh_stars>10-100 ; A256455: Numbers that appear at least once in a Pythagorean triple (a, b, b+1). ; 3,4,5,7,9,11,12,13,15,17,19,21,23,24,25,27,29,31,33,35,37,39,40,41,43,45,47,49,51,53,55,57,59,60,61,63,65,67,69,71,73,75,77,79,81,83,84,85,87,89,91,93,95,97,99,101,103,105,107,109,111,112,113 mov $1,$0 lpb $1 trn $1,2 add $0,$1 sub $0,1 add $2,2 sub $1,$2 trn $1,1 sub $0,$1 add $0,1 lpe add $0,3
private/ntos/ex/i386/tickcnt.asm
King0987654/windows2000
11
10090
title "NtGetTickCount" ;++ ; ; Copyright (c) 1989 Microsoft Corporation ; ; Module Name: ; ; tickcnt.asm ; ; Abstract: ; ; ; This module contains the implementation for the fast NtGetTickCount service ; ; ; Author: ; ; <NAME> (markl) 19-Oct-1996 ; ; Environment: ; ; Kernel mode. ; ; Revision History: ; ; ;-- .386p ; .xlist include ks386.inc include callconv.inc ; calling convention macros ; .list extrn _KeTickCount:DWORD extrn _ExpTickCountMultiplier:DWORD _TEXT SEGMENT DWORD PUBLIC 'CODE' ASSUME DS:FLAT, ES:FLAT, SS:NOTHING, FS:NOTHING, GS:NOTHING page ,132 ;++ ; ; Routine Description: ; ; This function returns number of milliseconds since the system ; booted. This function is designed to support the Win32 GetTicKCount ; API. ; ; Arguments: ; ; NONE ; ; Return Value: ; ; Returns the number of milliseconds that have transpired since boot ; ;-- cPublicProc _NtGetTickCount, 0 cPublicFpo 0, 0 mov eax,dword ptr [_KeTickCount] mul dword ptr [_ExpTickCountMultiplier] shrd eax,edx,24 ; compute resultant tick count stdRET _NtGetTickCount stdENDP _NtGetTickCount _TEXT ends end
Task/Perfect-numbers/AppleScript/perfect-numbers-2.applescript
LaudateCorpus1/RosettaCodeData
1
759
<filename>Task/Perfect-numbers/AppleScript/perfect-numbers-2.applescript<gh_stars>1-10 {6, 28, 496, 8128}
programs/oeis/340/A340761.asm
karttu/loda
0
179111
; A340761: Number of partitions of n into 4 parts whose 'middle' two parts have the same parity. ; 0,0,0,0,1,1,1,2,4,4,5,7,10,11,13,16,21,23,26,31,38,41,46,53,62,67,74,83,95,102,111,123,138,147,159,174,192,204,219,237,259,274,292,314,340,358,380,406,436,458,484,514,549,575,605,640,680,710,745,785,830,865,905,950,1001 lpb $0,1 mov $2,$0 cal $2,38714 ; Promic numbers repeated 4 times; a(n) = floor(n/4) * ceiling((n+1)/4). sub $0,3 add $1,$2 lpe div $1,2
oeis/285/A285795.asm
neoneye/loda-programs
11
172287
; A285795: Sum of the second entries in all cycles of all permutations of [n]. ; Submitted by <NAME> ; 0,0,2,13,83,582,4554,39672,382248,4044240,46663920,583554240,7865622720,113711230080,1755484617600,28828769356800,501858148377600,9232213174732800,178968924600883200,3646603415927808000,77916767838981120000,1742147265551616000000,40682478413747681280000,990429491027164446720000,25096813493284615864320000,660893204248798744903680000,18061273455324199916175360000,511563382935413379368878080000,14998671146883263284108984320000,454685903747979463361042841600000,14236731208087198595465025945600000 mov $2,1 lpb $0 mov $1,$0 sub $0,1 mov $4,$3 mul $3,$1 add $1,1 add $3,$2 mul $2,$1 add $3,$2 lpe mov $0,$4 div $0,2
src/main/antlr/DemoExpression.g4
tomasz-herman/Evaluate
0
3480
<filename>src/main/antlr/DemoExpression.g4 grammar DemoExpression; @header { package com.hermant.generated; } // grammar: expression : additive EOF ; additive : multiplicative # MULTIPLICATIVE | additive '+' multiplicative # Add | additive '-' multiplicative # Subtract ; multiplicative : unary # UNARY | multiplicative '*' unary # Multiply | multiplicative '/' unary # Divide | multiplicative '%' unary # Modulo ; unary : '(' additive ')' # Pars | '+' unary # UnaryPlus | '-' unary # UnaryMinus | INT # Int | REAL # Real | BOOL # Bool ; // tokens: INT : [1-9][0-9]*|'0' ; REAL : INT ('.'[0-9]*)? | '.'[0-9]+ ; BOOL : TRUE | FALSE ; TRUE : T R U E ; FALSE : F A L S E ; // whitespace: WS : [ \t\r\n]+ -> skip; // alphabetic: fragment A: [aA]; fragment B: [bB]; fragment C: [cC]; fragment D: [dD]; fragment E: [eE]; fragment F: [fF]; fragment G: [gG]; fragment H: [hH]; fragment I: [iI]; fragment J: [jJ]; fragment K: [kK]; fragment L: [lL]; fragment M: [mM]; fragment N: [nN]; fragment O: [oO]; fragment P: [pP]; fragment Q: [qQ]; fragment R: [rR]; fragment S: [sS]; fragment T: [tT]; fragment U: [uU]; fragment V: [vV]; fragment W: [wW]; fragment X: [xX]; fragment Y: [yY]; fragment Z: [zZ];
programs/oeis/047/A047464.asm
neoneye/loda
22
175177
; A047464: Numbers that are congruent to {0, 2, 4} mod 8. ; 0,2,4,8,10,12,16,18,20,24,26,28,32,34,36,40,42,44,48,50,52,56,58,60,64,66,68,72,74,76,80,82,84,88,90,92,96,98,100,104,106,108,112,114,116,120,122,124,128,130,132,136,138,140,144,146,148,152,154,156 mov $1,$0 div $1,3 add $0,$1 mul $0,2
tests/natools-time_keys-tests.adb
faelys/natools
0
18193
<gh_stars>0 ------------------------------------------------------------------------------ -- Copyright (c) 2015-2016, <NAME> -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose with or without fee is hereby granted, provided that the above -- -- copyright notice and this permission notice appear in all copies. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -- -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -- -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -- -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -- ------------------------------------------------------------------------------ with Ada.Calendar.Formatting; with Natools.Time_IO.RFC_3339; package body Natools.Time_Keys.Tests is function Image (Date : Ada.Calendar.Time) return String; procedure Key_Test (Test : in out NT.Test; Time : in Ada.Calendar.Time; Expected_Key : in String; Max_Sub_Second_Digits : in Natural); procedure Roundtrip_Test (Test : in out NT.Test; Time : in Ada.Calendar.Time; Expected_Key : in String); ------------------------------ -- Local Helper Subprograms -- ------------------------------ function Image (Date : Ada.Calendar.Time) return String is begin return Time_IO.RFC_3339.Image (Date => Date, Subsecond_Digits => Duration'Aft); end Image; procedure Key_Test (Test : in out NT.Test; Time : in Ada.Calendar.Time; Expected_Key : in String; Max_Sub_Second_Digits : in Natural) is Generated_Key : constant String := To_Key (Time, Max_Sub_Second_Digits); begin if Generated_Key /= Expected_Key then Test.Fail ("Generated key """ & Generated_Key & """, expected """ & Expected_Key & '"'); Test.Info ("Time of generated key: " & Image (To_Time (Generated_Key))); end if; end Key_Test; procedure Roundtrip_Test (Test : in out NT.Test; Time : in Ada.Calendar.Time; Expected_Key : in String) is use type Ada.Calendar.Time; Generated_Key : constant String := To_Key (Time, 2); Recovered_Time : constant Ada.Calendar.Time := To_Time (Generated_Key); begin if Generated_Key /= Expected_Key then Test.Fail ("Generated key """ & Generated_Key & """, expected """ & Expected_Key & '"'); end if; if Recovered_Time /= Time then Test.Fail ("Roundtrip time: " & Image (Recovered_Time) & ", original: " & Image (Time)); end if; end Roundtrip_Test; ------------------------- -- Complete Test Suite -- ------------------------- procedure All_Tests (Report : in out NT.Reporter'Class) is begin Leap_Second (Report); Roundtrips (Report); Subsecond_Rounding (Report); end All_Tests; ---------------------- -- Individual Tests -- ---------------------- procedure Leap_Second (Report : in out NT.Reporter'Class) is Test : NT.Test := Report.Item ("Leap second support"); begin declare use type Ada.Calendar.Time; Year : constant Ada.Calendar.Year_Number := 2012; Month : constant Ada.Calendar.Month_Number := 6; Day : constant Ada.Calendar.Day_Number := 30; Hour : constant Ada.Calendar.Formatting.Hour_Number := 23; Minute : constant Ada.Calendar.Formatting.Minute_Number := 59; Second : constant Ada.Calendar.Formatting.Second_Number := 59; Sub_Second : constant Ada.Calendar.Formatting.Second_Duration := 0.5; Expected_Time : constant Ada.Calendar.Time := Ada.Calendar.Formatting.Time_Of (Year, Month, Day, Hour, Minute, Second, Sub_Second, True); Expected_Key : constant String := "VS6UNwxW"; Generated_Key : constant String := To_Key (Year, Month, Day, Hour, Minute, Second, Sub_Second, True, 1); Recovered_Time : constant Ada.Calendar.Time := To_Time (Generated_Key); begin if Generated_Key /= Expected_Key then Test.Fail ("Generated key """ & Generated_Key & """, expected """ & Expected_Key & '"'); end if; if Recovered_Time /= Expected_Time then Test.Fail ("Roundtrip time: " & Image (Recovered_Time) & ", expected: " & Image (Expected_Time)); end if; end; exception when Error : others => Test.Report_Exception (Error); end Leap_Second; procedure Roundtrips (Report : in out NT.Reporter'Class) is Test : NT.Test := Report.Item ("Conversion Roundtrips"); begin if Duration'Small <= 1.0 / 128.0 then Roundtrip_Test (Test, Ada.Calendar.Formatting.Time_Of (2015, 1, 14, 15, 16, 17, 0.5 + 1.0 / 128.0), "VV1EFGHWW"); end if; Roundtrip_Test (Test, Ada.Calendar.Formatting.Time_Of (2015, 1, 2, 3, 4, 5, 0.5), "VV12345W"); Roundtrip_Test (Test, Ada.Calendar.Formatting.Time_Of (2047, 1, 14, 8, 44, 36), "V~1E8h_"); Roundtrip_Test (Test, Ada.Calendar.Formatting.Time_Of (2020, 10, 9, 0, 9, 0), "V_A909"); Roundtrip_Test (Test, Ada.Calendar.Formatting.Time_Of (2303, 9, 30, 23, 0, 0), "Z~9UN"); Roundtrip_Test (Test, Ada.Calendar.Formatting.Time_Of (2304, 12, 31, 0, 0, 0), "_0CV"); exception when Error : others => Test.Report_Exception (Error); end Roundtrips; procedure Subsecond_Rounding (Report : in out NT.Reporter'Class) is Test : NT.Test := Report.Item ("Overflow in subsecond rounding"); begin if Duration'Small > 1.0 / 256.0 then Test.Skip ("Not enough precision in Duration"); return; end if; Key_Test (Test, To_Time ("VV121231~V"), "VV121231~", 2); Key_Test (Test, To_Time ("VV121231~X"), "VV121232", 2); Key_Test (Test, To_Time ("VV124561~~V"), "VV124561~~", 3); Key_Test (Test, To_Time ("VV124561~~X"), "VV124562", 3); Key_Test (Test, Ada.Calendar.Formatting.Time_Of (2015, 2, 2, 1, 1, 1, 255.0 / 256.0), "VV22112", 1); Key_Test (Test, Ada.Calendar.Formatting.Time_Of (2015, 2, 2, 1, 58, 59, 255.0 / 256.0), "VV221w", 1); Key_Test (Test, Ada.Calendar.Formatting.Time_Of (2015, 2, 2, 22, 59, 59, 255.0 / 256.0), "VV22N", 1); Key_Test (Test, Ada.Calendar.Formatting.Time_Of (2015, 2, 28, 23, 59, 59, 255.0 / 256.0), "VV31", 1); Key_Test (Test, Ada.Calendar.Formatting.Time_Of (2016, 2, 28, 23, 59, 59, 255.0 / 256.0), "VW2T", 1); Key_Test (Test, Ada.Calendar.Formatting.Time_Of (2015, 12, 31, 23, 59, 59, 255.0 / 256.0), "VW11", 1); exception when Error : others => Test.Report_Exception (Error); end Subsecond_Rounding; end Natools.Time_Keys.Tests;
util/gut/smul.asm
olifink/smsqe
0
243652
; General IO utility: send multiple bytes V2.00  1988 <NAME> section gen_util xdef gu_smul xref gu_iowp include 'dev8_keys_qdos_io' ;+++ ; This routine sends multiple bytes ; ; d2 c p number of bytes to send ; a0 c p channel ID ; a1 c p pointer to bytes ; error returns standard ;--- gu_smul moveq #iob.smul,d0 bra.s gu_iowp end
oeis/201/A201003.asm
neoneye/loda-programs
11
6217
<gh_stars>10-100 ; A201003: Triangular numbers, T(m), that are four-fifths of another triangular number: T(m) such that 5*T(m) = 4*T(k) for some k. ; Submitted by <NAME> ; 0,36,11628,3744216,1205625960,388207814940,125001710784756,40250162664876528,12960427376379457296,4173217365031520372820,1343763031112773180590780,432687522800947932629858376,139324038578874121533633806328,44861907734874666185897455779276,14445394966591063637737447127120580,4651372317334587616685272077477047520,1497727440786770621509019871500482180896,482263584561022805538287713351077785201028,155287376501208556612707134679175546352550156,50002052969804594206486159078981174847735949240 mov $3,1 lpb $0 sub $0,1 mov $1,$3 mul $1,16 add $2,$1 add $3,$2 lpe pow $3,2 mov $0,$3 div $0,8
agda/Cardinality/Finite/SplitEnumerable/Instances.agda
oisdk/combinatorics-paper
4
8691
{-# OPTIONS --cubical --safe #-} module Cardinality.Finite.SplitEnumerable.Instances where open import Cardinality.Finite.SplitEnumerable open import Cardinality.Finite.SplitEnumerable.Inductive open import Cardinality.Finite.ManifestBishop using (_|Ξ |_) open import Data.Fin open import Prelude open import Data.List.Membership open import Data.Tuple import Data.Unit.UniversePolymorphic as Poly private infixr 4 _?Γ—_ data _?Γ—_ (A : Type a) (B : Type b) : Type (a β„“βŠ” b) where pair : A β†’ B β†’ A ?Γ— B instance poly-inst : βˆ€ {a} β†’ Poly.⊀ {a} poly-inst = Poly.tt module _ {a b} {A : Type a} (B : A β†’ Type b) where Im-Type : (xs : List A) β†’ Type (a β„“βŠ” b) Im-Type = foldr (Ξ» x xs β†’ β„°! (B x) ?Γ— xs) Poly.⊀ Tup-Im-Lookup : βˆ€ x (xs : List A) β†’ x ∈ xs β†’ Im-Type xs β†’ β„°! (B x) Tup-Im-Lookup x (y ∷ xs) (f0 , y≑x ) (pair β„°!⟨Bx⟩ _) = subst (β„°! ∘ B) y≑x β„°!⟨Bx⟩ Tup-Im-Lookup x (y ∷ xs) (fs n , x∈ys) (pair _ tup) = Tup-Im-Lookup x xs (n , x∈ys) tup Tup-Im-Pi : (xs : β„°! A) β†’ Im-Type (xs .fst) β†’ βˆ€ x β†’ β„°! (B x) Tup-Im-Pi xs tup x = Tup-Im-Lookup x (xs .fst) (xs .snd x) tup instance inst-pair : ⦃ lhs : A ⦄ ⦃ rhs : B ⦄ β†’ A ?Γ— B inst-pair ⦃ lhs ⦄ ⦃ rhs ⦄ = pair lhs rhs instance fin-sigma : ⦃ lhs : β„°! A ⦄ {B : A β†’ Type b} β†’ ⦃ rhs : Im-Type B (lhs .fst) ⦄ β†’ β„°! (Ξ£ A B) fin-sigma ⦃ lhs ⦄ ⦃ rhs ⦄ = lhs |Ξ£| Tup-Im-Pi _ lhs rhs instance fin-pi : ⦃ lhs : β„°! A ⦄ {B : A β†’ Type b} β†’ ⦃ rhs : Im-Type B (lhs .fst) ⦄ β†’ (β„°! ((x : A) β†’ B x)) fin-pi ⦃ lhs ⦄ ⦃ rhs ⦄ = lhs |Ξ | Tup-Im-Pi _ lhs rhs -- instance -- fin-prod : ⦃ lhs : β„°! A ⦄ ⦃ rhs : β„°! B ⦄ β†’ β„°! (A Γ— B) -- fin-prod ⦃ lhs ⦄ ⦃ rhs ⦄ = lhs |Γ—| rhs -- instance -- fin-fun : {A B : Typeβ‚€} ⦃ lhs : β„°! A ⦄ ⦃ rhs : β„°! B ⦄ β†’ β„°! (A β†’ B) -- fin-fun ⦃ lhs ⦄ ⦃ rhs ⦄ = lhs |Ξ | Ξ» _ β†’ rhs instance fin-sum : ⦃ lhs : β„°! A ⦄ ⦃ rhs : β„°! B ⦄ β†’ β„°! (A ⊎ B) fin-sum ⦃ lhs ⦄ ⦃ rhs ⦄ = lhs |⊎| rhs instance fin-bool : β„°! Bool fin-bool = β„°!⟨2⟩ instance fin-top : β„°! ⊀ fin-top = β„°!⟨⊀⟩ instance fin-bot : β„°! βŠ₯ fin-bot = β„°!⟨βŠ₯⟩ instance fin-fin : βˆ€ {n} β†’ β„°! (Fin n) fin-fin = β„°!⟨Fin⟩
Everything/WithK.agda
Smaug123/agdaproofs
4
10540
<gh_stars>1-10 {-# OPTIONS --warning=error --safe #-} open import Everything.Safe -- This file contains everything that is --safe, but uses K. open import Logic.PropositionalLogic open import Logic.PropositionalLogicExamples open import Logic.PropositionalAxiomsTautology open import Sets.FinSetWithK open import Groups.FreeGroup.Lemmas open import Groups.FreeGroup.UniversalProperty open import Groups.FreeGroup.Parity open import Groups.FreeProduct.UniversalProperty module Everything.WithK where
examples/uptodate/A.agda
cruhland/agda
1,989
7622
module A where import B import C
oeis/054/A054851.asm
neoneye/loda-programs
11
9295
; A054851: a(n) = 2^(n-7)*binomial(n,7). Number of 7D hypercubes in an n-dimensional hypercube. ; 1,16,144,960,5280,25344,109824,439296,1647360,5857280,19914752,65175552,206389248,635043840,1905131520,5588385792,16066609152,45364543488,126012620800,344876646400,931166945280,2483111854080,6546385797120,17077528166400,44116947763200,112939386273792,286692288233472,722039837032448,1805099592581120,4481626574684160,11054678884220928,27101793393573888,66060621396836352,160146960962027520,386236788202536960,926968291686088704,2214424252361211904,5266738762372612096,12473854963514081280 mov $1,-2 pow $1,$0 mov $2,-8 bin $2,$0 mul $1,$2 mov $0,$1
test/Compiler/simple/CompilingCoinduction.agda
pthariensflame/agda
0
6407
module CompilingCoinduction where open import Common.Coinduction open import Common.Char open import Common.String data Unit : Set where unit : Unit {-# COMPILED_DATA Unit () () #-} postulate IO : Set β†’ Set {-# COMPILED_TYPE IO IO #-} {-# BUILTIN IO IO #-} {-# IMPORT Data.Text.IO #-} postulate putStrLn : ∞ String β†’ IO Unit {-# COMPILED putStrLn Data.Text.IO.putStrLn #-} {-# COMPILED_UHC putStrLn (UHC.Agda.Builtins.primPutStrLn) #-} {-# COMPILED_JS putStrLn function(x) { return function(cb) { process.stdout.write(x(0) + "\n"); cb(0); }; } #-} main = putStrLn (β™― "a")
oeis/223/A223212.asm
neoneye/loda-programs
11
100843
; A223212: 3X3X3 triangular graph coloring a rectangular array: number of nX2 0..5 arrays where 0..5 label nodes of a graph with edges 0,1 0,2 1,2 1,3 1,4 2,4 3,4 2,5 4,5 and every array movement to a horizontal or vertical neighbor moves along an edge of this graph ; Submitted by <NAME> ; 18,126,918,6642,48114,348462,2523798,18278946,132387858,958837662,6944516694,50296639122,364280484978,2638352661966,19108640336598,138397015977282,1002359858893074,7259732297153982,52579632512961558,380815385752155186,2758109007129585138,19975992514546907502,144678936151447711254,1047857549539608435042,7589255722600680011538,54966252281460555984606,398100815192169456011478,2883301161686161739930322,20882714306846495543685234,151245996296254428921484302,1095420406539145033422072918 mov $1,1 mov $3,1 lpb $0 sub $0,1 mov $2,$3 mul $2,9 mul $3,6 add $3,$1 mov $1,$2 lpe mov $0,$3 mul $0,18
project/ntstub/i386/6_1_7601_sp1_ssdt_sysenter.asm
rmusser01/windows-syscall-table
6
98814
<reponame>rmusser01/windows-syscall-table ; DO NOT MODIFY THIS FILE DIRECTLY! ; author: @TinySecEx ; ssdt asm stub for 6.1.7601-sp1-windows-7 i386 .686 .mmx .xmm .model flat,stdcall option casemap:none option prologue:none option epilogue:none .code ; ULONG __stdcall NtAcceptConnectPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtAcceptConnectPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 0 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtAcceptConnectPort ENDP ; ULONG __stdcall NtAccessCheck( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _6_1_7601_sp1_windows_7_NtAccessCheck PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 1 mov edx , 7FFE0300h call dword ptr [edx] ret 32 _6_1_7601_sp1_windows_7_NtAccessCheck ENDP ; ULONG __stdcall NtAccessCheckAndAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); _6_1_7601_sp1_windows_7_NtAccessCheckAndAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 2 mov edx , 7FFE0300h call dword ptr [edx] ret 44 _6_1_7601_sp1_windows_7_NtAccessCheckAndAuditAlarm ENDP ; ULONG __stdcall NtAccessCheckByType( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); _6_1_7601_sp1_windows_7_NtAccessCheckByType PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 3 mov edx , 7FFE0300h call dword ptr [edx] ret 44 _6_1_7601_sp1_windows_7_NtAccessCheckByType ENDP ; ULONG __stdcall NtAccessCheckByTypeAndAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 , ULONG arg_15 , ULONG arg_16 ); _6_1_7601_sp1_windows_7_NtAccessCheckByTypeAndAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD , arg_15:DWORD , arg_16:DWORD mov eax , 4 mov edx , 7FFE0300h call dword ptr [edx] ret 64 _6_1_7601_sp1_windows_7_NtAccessCheckByTypeAndAuditAlarm ENDP ; ULONG __stdcall NtAccessCheckByTypeResultList( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); _6_1_7601_sp1_windows_7_NtAccessCheckByTypeResultList PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 5 mov edx , 7FFE0300h call dword ptr [edx] ret 44 _6_1_7601_sp1_windows_7_NtAccessCheckByTypeResultList ENDP ; ULONG __stdcall NtAccessCheckByTypeResultListAndAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 , ULONG arg_15 , ULONG arg_16 ); _6_1_7601_sp1_windows_7_NtAccessCheckByTypeResultListAndAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD , arg_15:DWORD , arg_16:DWORD mov eax , 6 mov edx , 7FFE0300h call dword ptr [edx] ret 64 _6_1_7601_sp1_windows_7_NtAccessCheckByTypeResultListAndAuditAlarm ENDP ; ULONG __stdcall NtAccessCheckByTypeResultListAndAuditAlarmByHandle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 , ULONG arg_15 , ULONG arg_16 , ULONG arg_17 ); _6_1_7601_sp1_windows_7_NtAccessCheckByTypeResultListAndAuditAlarmByHandle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD , arg_15:DWORD , arg_16:DWORD , arg_17:DWORD mov eax , 7 mov edx , 7FFE0300h call dword ptr [edx] ret 68 _6_1_7601_sp1_windows_7_NtAccessCheckByTypeResultListAndAuditAlarmByHandle ENDP ; ULONG __stdcall NtAddAtom( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtAddAtom PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 8 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtAddAtom ENDP ; ULONG __stdcall NtAddBootEntry( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtAddBootEntry PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 9 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtAddBootEntry ENDP ; ULONG __stdcall NtAddDriverEntry( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtAddDriverEntry PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 10 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtAddDriverEntry ENDP ; ULONG __stdcall NtAdjustGroupsToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtAdjustGroupsToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 11 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtAdjustGroupsToken ENDP ; ULONG __stdcall NtAdjustPrivilegesToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtAdjustPrivilegesToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 12 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtAdjustPrivilegesToken ENDP ; ULONG __stdcall NtAlertResumeThread( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtAlertResumeThread PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 13 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtAlertResumeThread ENDP ; ULONG __stdcall NtAlertThread( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtAlertThread PROC STDCALL arg_01:DWORD mov eax , 14 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtAlertThread ENDP ; ULONG __stdcall NtAllocateLocallyUniqueId( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtAllocateLocallyUniqueId PROC STDCALL arg_01:DWORD mov eax , 15 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtAllocateLocallyUniqueId ENDP ; ULONG __stdcall NtAllocateReserveObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtAllocateReserveObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 16 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtAllocateReserveObject ENDP ; ULONG __stdcall NtAllocateUserPhysicalPages( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtAllocateUserPhysicalPages PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 17 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtAllocateUserPhysicalPages ENDP ; ULONG __stdcall NtAllocateUuids( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtAllocateUuids PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 18 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtAllocateUuids ENDP ; ULONG __stdcall NtAllocateVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtAllocateVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 19 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtAllocateVirtualMemory ENDP ; ULONG __stdcall NtAlpcAcceptConnectPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _6_1_7601_sp1_windows_7_NtAlpcAcceptConnectPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 20 mov edx , 7FFE0300h call dword ptr [edx] ret 36 _6_1_7601_sp1_windows_7_NtAlpcAcceptConnectPort ENDP ; ULONG __stdcall NtAlpcCancelMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtAlpcCancelMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 21 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtAlpcCancelMessage ENDP ; ULONG __stdcall NtAlpcConnectPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); _6_1_7601_sp1_windows_7_NtAlpcConnectPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 22 mov edx , 7FFE0300h call dword ptr [edx] ret 44 _6_1_7601_sp1_windows_7_NtAlpcConnectPort ENDP ; ULONG __stdcall NtAlpcCreatePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtAlpcCreatePort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 23 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtAlpcCreatePort ENDP ; ULONG __stdcall NtAlpcCreatePortSection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtAlpcCreatePortSection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 24 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtAlpcCreatePortSection ENDP ; ULONG __stdcall NtAlpcCreateResourceReserve( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtAlpcCreateResourceReserve PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 25 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtAlpcCreateResourceReserve ENDP ; ULONG __stdcall NtAlpcCreateSectionView( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtAlpcCreateSectionView PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 26 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtAlpcCreateSectionView ENDP ; ULONG __stdcall NtAlpcCreateSecurityContext( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtAlpcCreateSecurityContext PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 27 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtAlpcCreateSecurityContext ENDP ; ULONG __stdcall NtAlpcDeletePortSection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtAlpcDeletePortSection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 28 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtAlpcDeletePortSection ENDP ; ULONG __stdcall NtAlpcDeleteResourceReserve( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtAlpcDeleteResourceReserve PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 29 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtAlpcDeleteResourceReserve ENDP ; ULONG __stdcall NtAlpcDeleteSectionView( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtAlpcDeleteSectionView PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 30 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtAlpcDeleteSectionView ENDP ; ULONG __stdcall NtAlpcDeleteSecurityContext( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtAlpcDeleteSecurityContext PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 31 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtAlpcDeleteSecurityContext ENDP ; ULONG __stdcall NtAlpcDisconnectPort( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtAlpcDisconnectPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 32 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtAlpcDisconnectPort ENDP ; ULONG __stdcall NtAlpcImpersonateClientOfPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtAlpcImpersonateClientOfPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 33 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtAlpcImpersonateClientOfPort ENDP ; ULONG __stdcall NtAlpcOpenSenderProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtAlpcOpenSenderProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 34 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtAlpcOpenSenderProcess ENDP ; ULONG __stdcall NtAlpcOpenSenderThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtAlpcOpenSenderThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 35 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtAlpcOpenSenderThread ENDP ; ULONG __stdcall NtAlpcQueryInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtAlpcQueryInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 36 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtAlpcQueryInformation ENDP ; ULONG __stdcall NtAlpcQueryInformationMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtAlpcQueryInformationMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 37 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtAlpcQueryInformationMessage ENDP ; ULONG __stdcall NtAlpcRevokeSecurityContext( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtAlpcRevokeSecurityContext PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 38 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtAlpcRevokeSecurityContext ENDP ; ULONG __stdcall NtAlpcSendWaitReceivePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _6_1_7601_sp1_windows_7_NtAlpcSendWaitReceivePort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 39 mov edx , 7FFE0300h call dword ptr [edx] ret 32 _6_1_7601_sp1_windows_7_NtAlpcSendWaitReceivePort ENDP ; ULONG __stdcall NtAlpcSetInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtAlpcSetInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 40 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtAlpcSetInformation ENDP ; ULONG __stdcall NtApphelpCacheControl( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtApphelpCacheControl PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 41 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtApphelpCacheControl ENDP ; ULONG __stdcall NtAreMappedFilesTheSame( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtAreMappedFilesTheSame PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 42 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtAreMappedFilesTheSame ENDP ; ULONG __stdcall NtAssignProcessToJobObject( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtAssignProcessToJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 43 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtAssignProcessToJobObject ENDP ; ULONG __stdcall NtCallbackReturn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtCallbackReturn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 44 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtCallbackReturn ENDP ; ULONG __stdcall NtCancelIoFile( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtCancelIoFile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 45 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtCancelIoFile ENDP ; ULONG __stdcall NtCancelIoFileEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtCancelIoFileEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 46 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtCancelIoFileEx ENDP ; ULONG __stdcall NtCancelSynchronousIoFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtCancelSynchronousIoFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 47 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtCancelSynchronousIoFile ENDP ; ULONG __stdcall NtCancelTimer( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtCancelTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 48 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtCancelTimer ENDP ; ULONG __stdcall NtClearEvent( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtClearEvent PROC STDCALL arg_01:DWORD mov eax , 49 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtClearEvent ENDP ; ULONG __stdcall NtClose( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtClose PROC STDCALL arg_01:DWORD mov eax , 50 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtClose ENDP ; ULONG __stdcall NtCloseObjectAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtCloseObjectAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 51 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtCloseObjectAuditAlarm ENDP ; ULONG __stdcall NtCommitComplete( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtCommitComplete PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 52 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtCommitComplete ENDP ; ULONG __stdcall NtCommitEnlistment( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtCommitEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 53 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtCommitEnlistment ENDP ; ULONG __stdcall NtCommitTransaction( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtCommitTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 54 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtCommitTransaction ENDP ; ULONG __stdcall NtCompactKeys( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtCompactKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 55 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtCompactKeys ENDP ; ULONG __stdcall NtCompareTokens( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtCompareTokens PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 56 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtCompareTokens ENDP ; ULONG __stdcall NtCompleteConnectPort( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtCompleteConnectPort PROC STDCALL arg_01:DWORD mov eax , 57 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtCompleteConnectPort ENDP ; ULONG __stdcall NtCompressKey( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtCompressKey PROC STDCALL arg_01:DWORD mov eax , 58 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtCompressKey ENDP ; ULONG __stdcall NtConnectPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _6_1_7601_sp1_windows_7_NtConnectPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 59 mov edx , 7FFE0300h call dword ptr [edx] ret 32 _6_1_7601_sp1_windows_7_NtConnectPort ENDP ; ULONG __stdcall NtContinue( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtContinue PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 60 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtContinue ENDP ; ULONG __stdcall NtCreateDebugObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtCreateDebugObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 61 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtCreateDebugObject ENDP ; ULONG __stdcall NtCreateDirectoryObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtCreateDirectoryObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 62 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtCreateDirectoryObject ENDP ; ULONG __stdcall NtCreateEnlistment( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _6_1_7601_sp1_windows_7_NtCreateEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 63 mov edx , 7FFE0300h call dword ptr [edx] ret 32 _6_1_7601_sp1_windows_7_NtCreateEnlistment ENDP ; ULONG __stdcall NtCreateEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtCreateEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 64 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtCreateEvent ENDP ; ULONG __stdcall NtCreateEventPair( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtCreateEventPair PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 65 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtCreateEventPair ENDP ; ULONG __stdcall NtCreateFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); _6_1_7601_sp1_windows_7_NtCreateFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 66 mov edx , 7FFE0300h call dword ptr [edx] ret 44 _6_1_7601_sp1_windows_7_NtCreateFile ENDP ; ULONG __stdcall NtCreateIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtCreateIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 67 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtCreateIoCompletion ENDP ; ULONG __stdcall NtCreateJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtCreateJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 68 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtCreateJobObject ENDP ; ULONG __stdcall NtCreateJobSet( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtCreateJobSet PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 69 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtCreateJobSet ENDP ; ULONG __stdcall NtCreateKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); _6_1_7601_sp1_windows_7_NtCreateKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 70 mov edx , 7FFE0300h call dword ptr [edx] ret 28 _6_1_7601_sp1_windows_7_NtCreateKey ENDP ; ULONG __stdcall NtCreateKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtCreateKeyedEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 71 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtCreateKeyedEvent ENDP ; ULONG __stdcall NtCreateKeyTransacted( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _6_1_7601_sp1_windows_7_NtCreateKeyTransacted PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 72 mov edx , 7FFE0300h call dword ptr [edx] ret 32 _6_1_7601_sp1_windows_7_NtCreateKeyTransacted ENDP ; ULONG __stdcall NtCreateMailslotFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _6_1_7601_sp1_windows_7_NtCreateMailslotFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 73 mov edx , 7FFE0300h call dword ptr [edx] ret 32 _6_1_7601_sp1_windows_7_NtCreateMailslotFile ENDP ; ULONG __stdcall NtCreateMutant( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtCreateMutant PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 74 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtCreateMutant ENDP ; ULONG __stdcall NtCreateNamedPipeFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 ); _6_1_7601_sp1_windows_7_NtCreateNamedPipeFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD mov eax , 75 mov edx , 7FFE0300h call dword ptr [edx] ret 56 _6_1_7601_sp1_windows_7_NtCreateNamedPipeFile ENDP ; ULONG __stdcall NtCreatePagingFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtCreatePagingFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 76 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtCreatePagingFile ENDP ; ULONG __stdcall NtCreatePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtCreatePort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 77 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtCreatePort ENDP ; ULONG __stdcall NtCreatePrivateNamespace( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtCreatePrivateNamespace PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 78 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtCreatePrivateNamespace ENDP ; ULONG __stdcall NtCreateProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _6_1_7601_sp1_windows_7_NtCreateProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 79 mov edx , 7FFE0300h call dword ptr [edx] ret 32 _6_1_7601_sp1_windows_7_NtCreateProcess ENDP ; ULONG __stdcall NtCreateProcessEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _6_1_7601_sp1_windows_7_NtCreateProcessEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 80 mov edx , 7FFE0300h call dword ptr [edx] ret 36 _6_1_7601_sp1_windows_7_NtCreateProcessEx ENDP ; ULONG __stdcall NtCreateProfile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _6_1_7601_sp1_windows_7_NtCreateProfile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 81 mov edx , 7FFE0300h call dword ptr [edx] ret 36 _6_1_7601_sp1_windows_7_NtCreateProfile ENDP ; ULONG __stdcall NtCreateProfileEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); _6_1_7601_sp1_windows_7_NtCreateProfileEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 82 mov edx , 7FFE0300h call dword ptr [edx] ret 40 _6_1_7601_sp1_windows_7_NtCreateProfileEx ENDP ; ULONG __stdcall NtCreateResourceManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); _6_1_7601_sp1_windows_7_NtCreateResourceManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 83 mov edx , 7FFE0300h call dword ptr [edx] ret 28 _6_1_7601_sp1_windows_7_NtCreateResourceManager ENDP ; ULONG __stdcall NtCreateSection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); _6_1_7601_sp1_windows_7_NtCreateSection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 84 mov edx , 7FFE0300h call dword ptr [edx] ret 28 _6_1_7601_sp1_windows_7_NtCreateSection ENDP ; ULONG __stdcall NtCreateSemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtCreateSemaphore PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 85 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtCreateSemaphore ENDP ; ULONG __stdcall NtCreateSymbolicLinkObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtCreateSymbolicLinkObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 86 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtCreateSymbolicLinkObject ENDP ; ULONG __stdcall NtCreateThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _6_1_7601_sp1_windows_7_NtCreateThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 87 mov edx , 7FFE0300h call dword ptr [edx] ret 32 _6_1_7601_sp1_windows_7_NtCreateThread ENDP ; ULONG __stdcall NtCreateThreadEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); _6_1_7601_sp1_windows_7_NtCreateThreadEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 88 mov edx , 7FFE0300h call dword ptr [edx] ret 44 _6_1_7601_sp1_windows_7_NtCreateThreadEx ENDP ; ULONG __stdcall NtCreateTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtCreateTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 89 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtCreateTimer ENDP ; ULONG __stdcall NtCreateToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 ); _6_1_7601_sp1_windows_7_NtCreateToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD mov eax , 90 mov edx , 7FFE0300h call dword ptr [edx] ret 52 _6_1_7601_sp1_windows_7_NtCreateToken ENDP ; ULONG __stdcall NtCreateTransaction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); _6_1_7601_sp1_windows_7_NtCreateTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 91 mov edx , 7FFE0300h call dword ptr [edx] ret 40 _6_1_7601_sp1_windows_7_NtCreateTransaction ENDP ; ULONG __stdcall NtCreateTransactionManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtCreateTransactionManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 92 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtCreateTransactionManager ENDP ; ULONG __stdcall NtCreateUserProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); _6_1_7601_sp1_windows_7_NtCreateUserProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 93 mov edx , 7FFE0300h call dword ptr [edx] ret 44 _6_1_7601_sp1_windows_7_NtCreateUserProcess ENDP ; ULONG __stdcall NtCreateWaitablePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtCreateWaitablePort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 94 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtCreateWaitablePort ENDP ; ULONG __stdcall NtCreateWorkerFactory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); _6_1_7601_sp1_windows_7_NtCreateWorkerFactory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 95 mov edx , 7FFE0300h call dword ptr [edx] ret 40 _6_1_7601_sp1_windows_7_NtCreateWorkerFactory ENDP ; ULONG __stdcall NtDebugActiveProcess( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtDebugActiveProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 96 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtDebugActiveProcess ENDP ; ULONG __stdcall NtDebugContinue( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtDebugContinue PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 97 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtDebugContinue ENDP ; ULONG __stdcall NtDelayExecution( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtDelayExecution PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 98 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtDelayExecution ENDP ; ULONG __stdcall NtDeleteAtom( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtDeleteAtom PROC STDCALL arg_01:DWORD mov eax , 99 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtDeleteAtom ENDP ; ULONG __stdcall NtDeleteBootEntry( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtDeleteBootEntry PROC STDCALL arg_01:DWORD mov eax , 100 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtDeleteBootEntry ENDP ; ULONG __stdcall NtDeleteDriverEntry( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtDeleteDriverEntry PROC STDCALL arg_01:DWORD mov eax , 101 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtDeleteDriverEntry ENDP ; ULONG __stdcall NtDeleteFile( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtDeleteFile PROC STDCALL arg_01:DWORD mov eax , 102 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtDeleteFile ENDP ; ULONG __stdcall NtDeleteKey( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtDeleteKey PROC STDCALL arg_01:DWORD mov eax , 103 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtDeleteKey ENDP ; ULONG __stdcall NtDeleteObjectAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtDeleteObjectAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 104 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtDeleteObjectAuditAlarm ENDP ; ULONG __stdcall NtDeletePrivateNamespace( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtDeletePrivateNamespace PROC STDCALL arg_01:DWORD mov eax , 105 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtDeletePrivateNamespace ENDP ; ULONG __stdcall NtDeleteValueKey( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtDeleteValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 106 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtDeleteValueKey ENDP ; ULONG __stdcall NtDeviceIoControlFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); _6_1_7601_sp1_windows_7_NtDeviceIoControlFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 107 mov edx , 7FFE0300h call dword ptr [edx] ret 40 _6_1_7601_sp1_windows_7_NtDeviceIoControlFile ENDP ; ULONG __stdcall NtDisableLastKnownGood( ); _6_1_7601_sp1_windows_7_NtDisableLastKnownGood PROC STDCALL mov eax , 108 mov edx , 7FFE0300h call dword ptr [edx] ret _6_1_7601_sp1_windows_7_NtDisableLastKnownGood ENDP ; ULONG __stdcall NtDisplayString( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtDisplayString PROC STDCALL arg_01:DWORD mov eax , 109 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtDisplayString ENDP ; ULONG __stdcall NtDrawText( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtDrawText PROC STDCALL arg_01:DWORD mov eax , 110 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtDrawText ENDP ; ULONG __stdcall NtDuplicateObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); _6_1_7601_sp1_windows_7_NtDuplicateObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 111 mov edx , 7FFE0300h call dword ptr [edx] ret 28 _6_1_7601_sp1_windows_7_NtDuplicateObject ENDP ; ULONG __stdcall NtDuplicateToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtDuplicateToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 112 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtDuplicateToken ENDP ; ULONG __stdcall NtEnableLastKnownGood( ); _6_1_7601_sp1_windows_7_NtEnableLastKnownGood PROC STDCALL mov eax , 113 mov edx , 7FFE0300h call dword ptr [edx] ret _6_1_7601_sp1_windows_7_NtEnableLastKnownGood ENDP ; ULONG __stdcall NtEnumerateBootEntries( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtEnumerateBootEntries PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 114 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtEnumerateBootEntries ENDP ; ULONG __stdcall NtEnumerateDriverEntries( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtEnumerateDriverEntries PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 115 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtEnumerateDriverEntries ENDP ; ULONG __stdcall NtEnumerateKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtEnumerateKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 116 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtEnumerateKey ENDP ; ULONG __stdcall NtEnumerateSystemEnvironmentValuesEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtEnumerateSystemEnvironmentValuesEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 117 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtEnumerateSystemEnvironmentValuesEx ENDP ; ULONG __stdcall NtEnumerateTransactionObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtEnumerateTransactionObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 118 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtEnumerateTransactionObject ENDP ; ULONG __stdcall NtEnumerateValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtEnumerateValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 119 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtEnumerateValueKey ENDP ; ULONG __stdcall NtExtendSection( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtExtendSection PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 120 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtExtendSection ENDP ; ULONG __stdcall NtFilterToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtFilterToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 121 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtFilterToken ENDP ; ULONG __stdcall NtFindAtom( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtFindAtom PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 122 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtFindAtom ENDP ; ULONG __stdcall NtFlushBuffersFile( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtFlushBuffersFile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 123 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtFlushBuffersFile ENDP ; ULONG __stdcall NtFlushInstallUILanguage( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtFlushInstallUILanguage PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 124 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtFlushInstallUILanguage ENDP ; ULONG __stdcall NtFlushInstructionCache( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtFlushInstructionCache PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 125 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtFlushInstructionCache ENDP ; ULONG __stdcall NtFlushKey( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtFlushKey PROC STDCALL arg_01:DWORD mov eax , 126 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtFlushKey ENDP ; ULONG __stdcall NtFlushProcessWriteBuffers( ); _6_1_7601_sp1_windows_7_NtFlushProcessWriteBuffers PROC STDCALL mov eax , 127 mov edx , 7FFE0300h call dword ptr [edx] ret _6_1_7601_sp1_windows_7_NtFlushProcessWriteBuffers ENDP ; ULONG __stdcall NtFlushVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtFlushVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 128 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtFlushVirtualMemory ENDP ; ULONG __stdcall NtFlushWriteBuffer( ); _6_1_7601_sp1_windows_7_NtFlushWriteBuffer PROC STDCALL mov eax , 129 mov edx , 7FFE0300h call dword ptr [edx] ret _6_1_7601_sp1_windows_7_NtFlushWriteBuffer ENDP ; ULONG __stdcall NtFreeUserPhysicalPages( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtFreeUserPhysicalPages PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 130 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtFreeUserPhysicalPages ENDP ; ULONG __stdcall NtFreeVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtFreeVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 131 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtFreeVirtualMemory ENDP ; ULONG __stdcall NtFreezeRegistry( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtFreezeRegistry PROC STDCALL arg_01:DWORD mov eax , 132 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtFreezeRegistry ENDP ; ULONG __stdcall NtFreezeTransactions( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtFreezeTransactions PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 133 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtFreezeTransactions ENDP ; ULONG __stdcall NtFsControlFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); _6_1_7601_sp1_windows_7_NtFsControlFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 134 mov edx , 7FFE0300h call dword ptr [edx] ret 40 _6_1_7601_sp1_windows_7_NtFsControlFile ENDP ; ULONG __stdcall NtGetContextThread( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtGetContextThread PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 135 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtGetContextThread ENDP ; ULONG __stdcall NtGetCurrentProcessorNumber( ); _6_1_7601_sp1_windows_7_NtGetCurrentProcessorNumber PROC STDCALL mov eax , 136 mov edx , 7FFE0300h call dword ptr [edx] ret _6_1_7601_sp1_windows_7_NtGetCurrentProcessorNumber ENDP ; ULONG __stdcall NtGetDevicePowerState( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtGetDevicePowerState PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 137 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtGetDevicePowerState ENDP ; ULONG __stdcall NtGetMUIRegistryInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtGetMUIRegistryInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 138 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtGetMUIRegistryInfo ENDP ; ULONG __stdcall NtGetNextProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtGetNextProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 139 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtGetNextProcess ENDP ; ULONG __stdcall NtGetNextThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtGetNextThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 140 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtGetNextThread ENDP ; ULONG __stdcall NtGetNlsSectionPtr( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtGetNlsSectionPtr PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 141 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtGetNlsSectionPtr ENDP ; ULONG __stdcall NtGetNotificationResourceManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); _6_1_7601_sp1_windows_7_NtGetNotificationResourceManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 142 mov edx , 7FFE0300h call dword ptr [edx] ret 28 _6_1_7601_sp1_windows_7_NtGetNotificationResourceManager ENDP ; ULONG __stdcall NtGetPlugPlayEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtGetPlugPlayEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 143 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtGetPlugPlayEvent ENDP ; ULONG __stdcall NtGetWriteWatch( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); _6_1_7601_sp1_windows_7_NtGetWriteWatch PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 144 mov edx , 7FFE0300h call dword ptr [edx] ret 28 _6_1_7601_sp1_windows_7_NtGetWriteWatch ENDP ; ULONG __stdcall NtImpersonateAnonymousToken( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtImpersonateAnonymousToken PROC STDCALL arg_01:DWORD mov eax , 145 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtImpersonateAnonymousToken ENDP ; ULONG __stdcall NtImpersonateClientOfPort( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtImpersonateClientOfPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 146 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtImpersonateClientOfPort ENDP ; ULONG __stdcall NtImpersonateThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtImpersonateThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 147 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtImpersonateThread ENDP ; ULONG __stdcall NtInitializeNlsFiles( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtInitializeNlsFiles PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 148 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtInitializeNlsFiles ENDP ; ULONG __stdcall NtInitializeRegistry( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtInitializeRegistry PROC STDCALL arg_01:DWORD mov eax , 149 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtInitializeRegistry ENDP ; ULONG __stdcall NtInitiatePowerAction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtInitiatePowerAction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 150 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtInitiatePowerAction ENDP ; ULONG __stdcall NtIsProcessInJob( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtIsProcessInJob PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 151 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtIsProcessInJob ENDP ; ULONG __stdcall NtIsSystemResumeAutomatic( ); _6_1_7601_sp1_windows_7_NtIsSystemResumeAutomatic PROC STDCALL mov eax , 152 mov edx , 7FFE0300h call dword ptr [edx] ret _6_1_7601_sp1_windows_7_NtIsSystemResumeAutomatic ENDP ; ULONG __stdcall NtIsUILanguageComitted( ); _6_1_7601_sp1_windows_7_NtIsUILanguageComitted PROC STDCALL mov eax , 153 mov edx , 7FFE0300h call dword ptr [edx] ret _6_1_7601_sp1_windows_7_NtIsUILanguageComitted ENDP ; ULONG __stdcall NtListenPort( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtListenPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 154 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtListenPort ENDP ; ULONG __stdcall NtLoadDriver( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtLoadDriver PROC STDCALL arg_01:DWORD mov eax , 155 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtLoadDriver ENDP ; ULONG __stdcall NtLoadKey( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtLoadKey PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 156 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtLoadKey ENDP ; ULONG __stdcall NtLoadKey2( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtLoadKey2 PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 157 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtLoadKey2 ENDP ; ULONG __stdcall NtLoadKeyEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _6_1_7601_sp1_windows_7_NtLoadKeyEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 158 mov edx , 7FFE0300h call dword ptr [edx] ret 32 _6_1_7601_sp1_windows_7_NtLoadKeyEx ENDP ; ULONG __stdcall NtLockFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); _6_1_7601_sp1_windows_7_NtLockFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 159 mov edx , 7FFE0300h call dword ptr [edx] ret 40 _6_1_7601_sp1_windows_7_NtLockFile ENDP ; ULONG __stdcall NtLockProductActivationKeys( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtLockProductActivationKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 160 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtLockProductActivationKeys ENDP ; ULONG __stdcall NtLockRegistryKey( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtLockRegistryKey PROC STDCALL arg_01:DWORD mov eax , 161 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtLockRegistryKey ENDP ; ULONG __stdcall NtLockVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtLockVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 162 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtLockVirtualMemory ENDP ; ULONG __stdcall NtMakePermanentObject( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtMakePermanentObject PROC STDCALL arg_01:DWORD mov eax , 163 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtMakePermanentObject ENDP ; ULONG __stdcall NtMakeTemporaryObject( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtMakeTemporaryObject PROC STDCALL arg_01:DWORD mov eax , 164 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtMakeTemporaryObject ENDP ; ULONG __stdcall NtMapCMFModule( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtMapCMFModule PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 165 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtMapCMFModule ENDP ; ULONG __stdcall NtMapUserPhysicalPages( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtMapUserPhysicalPages PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 166 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtMapUserPhysicalPages ENDP ; ULONG __stdcall NtMapUserPhysicalPagesScatter( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtMapUserPhysicalPagesScatter PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 167 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtMapUserPhysicalPagesScatter ENDP ; ULONG __stdcall NtMapViewOfSection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); _6_1_7601_sp1_windows_7_NtMapViewOfSection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 168 mov edx , 7FFE0300h call dword ptr [edx] ret 40 _6_1_7601_sp1_windows_7_NtMapViewOfSection ENDP ; ULONG __stdcall NtModifyBootEntry( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtModifyBootEntry PROC STDCALL arg_01:DWORD mov eax , 169 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtModifyBootEntry ENDP ; ULONG __stdcall NtModifyDriverEntry( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtModifyDriverEntry PROC STDCALL arg_01:DWORD mov eax , 170 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtModifyDriverEntry ENDP ; ULONG __stdcall NtNotifyChangeDirectoryFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _6_1_7601_sp1_windows_7_NtNotifyChangeDirectoryFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 171 mov edx , 7FFE0300h call dword ptr [edx] ret 36 _6_1_7601_sp1_windows_7_NtNotifyChangeDirectoryFile ENDP ; ULONG __stdcall NtNotifyChangeKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); _6_1_7601_sp1_windows_7_NtNotifyChangeKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 172 mov edx , 7FFE0300h call dword ptr [edx] ret 40 _6_1_7601_sp1_windows_7_NtNotifyChangeKey ENDP ; ULONG __stdcall NtNotifyChangeMultipleKeys( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 ); _6_1_7601_sp1_windows_7_NtNotifyChangeMultipleKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD mov eax , 173 mov edx , 7FFE0300h call dword ptr [edx] ret 48 _6_1_7601_sp1_windows_7_NtNotifyChangeMultipleKeys ENDP ; ULONG __stdcall NtNotifyChangeSession( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _6_1_7601_sp1_windows_7_NtNotifyChangeSession PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 174 mov edx , 7FFE0300h call dword ptr [edx] ret 32 _6_1_7601_sp1_windows_7_NtNotifyChangeSession ENDP ; ULONG __stdcall NtOpenDirectoryObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtOpenDirectoryObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 175 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtOpenDirectoryObject ENDP ; ULONG __stdcall NtOpenEnlistment( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtOpenEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 176 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtOpenEnlistment ENDP ; ULONG __stdcall NtOpenEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtOpenEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 177 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtOpenEvent ENDP ; ULONG __stdcall NtOpenEventPair( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtOpenEventPair PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 178 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtOpenEventPair ENDP ; ULONG __stdcall NtOpenFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtOpenFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 179 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtOpenFile ENDP ; ULONG __stdcall NtOpenIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtOpenIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 180 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtOpenIoCompletion ENDP ; ULONG __stdcall NtOpenJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtOpenJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 181 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtOpenJobObject ENDP ; ULONG __stdcall NtOpenKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtOpenKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 182 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtOpenKey ENDP ; ULONG __stdcall NtOpenKeyEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtOpenKeyEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 183 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtOpenKeyEx ENDP ; ULONG __stdcall NtOpenKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtOpenKeyedEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 184 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtOpenKeyedEvent ENDP ; ULONG __stdcall NtOpenKeyTransacted( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtOpenKeyTransacted PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 185 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtOpenKeyTransacted ENDP ; ULONG __stdcall NtOpenKeyTransactedEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtOpenKeyTransactedEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 186 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtOpenKeyTransactedEx ENDP ; ULONG __stdcall NtOpenMutant( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtOpenMutant PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 187 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtOpenMutant ENDP ; ULONG __stdcall NtOpenObjectAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 ); _6_1_7601_sp1_windows_7_NtOpenObjectAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD mov eax , 188 mov edx , 7FFE0300h call dword ptr [edx] ret 48 _6_1_7601_sp1_windows_7_NtOpenObjectAuditAlarm ENDP ; ULONG __stdcall NtOpenPrivateNamespace( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtOpenPrivateNamespace PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 189 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtOpenPrivateNamespace ENDP ; ULONG __stdcall NtOpenProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtOpenProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 190 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtOpenProcess ENDP ; ULONG __stdcall NtOpenProcessToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtOpenProcessToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 191 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtOpenProcessToken ENDP ; ULONG __stdcall NtOpenProcessTokenEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtOpenProcessTokenEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 192 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtOpenProcessTokenEx ENDP ; ULONG __stdcall NtOpenResourceManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtOpenResourceManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 193 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtOpenResourceManager ENDP ; ULONG __stdcall NtOpenSection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtOpenSection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 194 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtOpenSection ENDP ; ULONG __stdcall NtOpenSemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtOpenSemaphore PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 195 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtOpenSemaphore ENDP ; ULONG __stdcall NtOpenSession( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtOpenSession PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 196 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtOpenSession ENDP ; ULONG __stdcall NtOpenSymbolicLinkObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtOpenSymbolicLinkObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 197 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtOpenSymbolicLinkObject ENDP ; ULONG __stdcall NtOpenThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtOpenThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 198 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtOpenThread ENDP ; ULONG __stdcall NtOpenThreadToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtOpenThreadToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 199 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtOpenThreadToken ENDP ; ULONG __stdcall NtOpenThreadTokenEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtOpenThreadTokenEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 200 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtOpenThreadTokenEx ENDP ; ULONG __stdcall NtOpenTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtOpenTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 201 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtOpenTimer ENDP ; ULONG __stdcall NtOpenTransaction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtOpenTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 202 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtOpenTransaction ENDP ; ULONG __stdcall NtOpenTransactionManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtOpenTransactionManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 203 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtOpenTransactionManager ENDP ; ULONG __stdcall NtPlugPlayControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtPlugPlayControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 204 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtPlugPlayControl ENDP ; ULONG __stdcall NtPowerInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtPowerInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 205 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtPowerInformation ENDP ; ULONG __stdcall NtPrepareComplete( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtPrepareComplete PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 206 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtPrepareComplete ENDP ; ULONG __stdcall NtPrepareEnlistment( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtPrepareEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 207 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtPrepareEnlistment ENDP ; ULONG __stdcall NtPrePrepareComplete( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtPrePrepareComplete PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 208 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtPrePrepareComplete ENDP ; ULONG __stdcall NtPrePrepareEnlistment( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtPrePrepareEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 209 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtPrePrepareEnlistment ENDP ; ULONG __stdcall NtPrivilegeCheck( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtPrivilegeCheck PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 210 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtPrivilegeCheck ENDP ; ULONG __stdcall NtPrivilegedServiceAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtPrivilegedServiceAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 211 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtPrivilegedServiceAuditAlarm ENDP ; ULONG __stdcall NtPrivilegeObjectAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtPrivilegeObjectAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 212 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtPrivilegeObjectAuditAlarm ENDP ; ULONG __stdcall NtPropagationComplete( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtPropagationComplete PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 213 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtPropagationComplete ENDP ; ULONG __stdcall NtPropagationFailed( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtPropagationFailed PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 214 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtPropagationFailed ENDP ; ULONG __stdcall NtProtectVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtProtectVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 215 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtProtectVirtualMemory ENDP ; ULONG __stdcall NtPulseEvent( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtPulseEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 216 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtPulseEvent ENDP ; ULONG __stdcall NtQueryAttributesFile( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtQueryAttributesFile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 217 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtQueryAttributesFile ENDP ; ULONG __stdcall NtQueryBootEntryOrder( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtQueryBootEntryOrder PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 218 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtQueryBootEntryOrder ENDP ; ULONG __stdcall NtQueryBootOptions( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtQueryBootOptions PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 219 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtQueryBootOptions ENDP ; ULONG __stdcall NtQueryDebugFilterState( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtQueryDebugFilterState PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 220 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtQueryDebugFilterState ENDP ; ULONG __stdcall NtQueryDefaultLocale( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtQueryDefaultLocale PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 221 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtQueryDefaultLocale ENDP ; ULONG __stdcall NtQueryDefaultUILanguage( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtQueryDefaultUILanguage PROC STDCALL arg_01:DWORD mov eax , 222 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtQueryDefaultUILanguage ENDP ; ULONG __stdcall NtQueryDirectoryFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); _6_1_7601_sp1_windows_7_NtQueryDirectoryFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 223 mov edx , 7FFE0300h call dword ptr [edx] ret 44 _6_1_7601_sp1_windows_7_NtQueryDirectoryFile ENDP ; ULONG __stdcall NtQueryDirectoryObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); _6_1_7601_sp1_windows_7_NtQueryDirectoryObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 224 mov edx , 7FFE0300h call dword ptr [edx] ret 28 _6_1_7601_sp1_windows_7_NtQueryDirectoryObject ENDP ; ULONG __stdcall NtQueryDriverEntryOrder( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtQueryDriverEntryOrder PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 225 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtQueryDriverEntryOrder ENDP ; ULONG __stdcall NtQueryEaFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _6_1_7601_sp1_windows_7_NtQueryEaFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 226 mov edx , 7FFE0300h call dword ptr [edx] ret 36 _6_1_7601_sp1_windows_7_NtQueryEaFile ENDP ; ULONG __stdcall NtQueryEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 227 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryEvent ENDP ; ULONG __stdcall NtQueryFullAttributesFile( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtQueryFullAttributesFile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 228 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtQueryFullAttributesFile ENDP ; ULONG __stdcall NtQueryInformationAtom( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryInformationAtom PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 229 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryInformationAtom ENDP ; ULONG __stdcall NtQueryInformationEnlistment( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryInformationEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 230 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryInformationEnlistment ENDP ; ULONG __stdcall NtQueryInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 231 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryInformationFile ENDP ; ULONG __stdcall NtQueryInformationJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryInformationJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 232 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryInformationJobObject ENDP ; ULONG __stdcall NtQueryInformationPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryInformationPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 233 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryInformationPort ENDP ; ULONG __stdcall NtQueryInformationProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryInformationProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 234 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryInformationProcess ENDP ; ULONG __stdcall NtQueryInformationResourceManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryInformationResourceManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 235 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryInformationResourceManager ENDP ; ULONG __stdcall NtQueryInformationThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryInformationThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 236 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryInformationThread ENDP ; ULONG __stdcall NtQueryInformationToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryInformationToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 237 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryInformationToken ENDP ; ULONG __stdcall NtQueryInformationTransaction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryInformationTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 238 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryInformationTransaction ENDP ; ULONG __stdcall NtQueryInformationTransactionManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryInformationTransactionManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 239 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryInformationTransactionManager ENDP ; ULONG __stdcall NtQueryInformationWorkerFactory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryInformationWorkerFactory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 240 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryInformationWorkerFactory ENDP ; ULONG __stdcall NtQueryInstallUILanguage( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtQueryInstallUILanguage PROC STDCALL arg_01:DWORD mov eax , 241 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtQueryInstallUILanguage ENDP ; ULONG __stdcall NtQueryIntervalProfile( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtQueryIntervalProfile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 242 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtQueryIntervalProfile ENDP ; ULONG __stdcall NtQueryIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 243 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryIoCompletion ENDP ; ULONG __stdcall NtQueryKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 244 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryKey ENDP ; ULONG __stdcall NtQueryLicenseValue( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryLicenseValue PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 245 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryLicenseValue ENDP ; ULONG __stdcall NtQueryMultipleValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtQueryMultipleValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 246 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtQueryMultipleValueKey ENDP ; ULONG __stdcall NtQueryMutant( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryMutant PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 247 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryMutant ENDP ; ULONG __stdcall NtQueryObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 248 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryObject ENDP ; ULONG __stdcall NtQueryOpenSubKeys( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtQueryOpenSubKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 249 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtQueryOpenSubKeys ENDP ; ULONG __stdcall NtQueryOpenSubKeysEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtQueryOpenSubKeysEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 250 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtQueryOpenSubKeysEx ENDP ; ULONG __stdcall NtQueryPerformanceCounter( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtQueryPerformanceCounter PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 251 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtQueryPerformanceCounter ENDP ; ULONG __stdcall NtQueryPortInformationProcess( ); _6_1_7601_sp1_windows_7_NtQueryPortInformationProcess PROC STDCALL mov eax , 252 mov edx , 7FFE0300h call dword ptr [edx] ret _6_1_7601_sp1_windows_7_NtQueryPortInformationProcess ENDP ; ULONG __stdcall NtQueryQuotaInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _6_1_7601_sp1_windows_7_NtQueryQuotaInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 253 mov edx , 7FFE0300h call dword ptr [edx] ret 36 _6_1_7601_sp1_windows_7_NtQueryQuotaInformationFile ENDP ; ULONG __stdcall NtQuerySection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQuerySection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 254 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQuerySection ENDP ; ULONG __stdcall NtQuerySecurityAttributesToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtQuerySecurityAttributesToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 255 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtQuerySecurityAttributesToken ENDP ; ULONG __stdcall NtQuerySecurityObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQuerySecurityObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 256 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQuerySecurityObject ENDP ; ULONG __stdcall NtQuerySemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQuerySemaphore PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 257 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQuerySemaphore ENDP ; ULONG __stdcall NtQuerySymbolicLinkObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtQuerySymbolicLinkObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 258 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtQuerySymbolicLinkObject ENDP ; ULONG __stdcall NtQuerySystemEnvironmentValue( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtQuerySystemEnvironmentValue PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 259 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtQuerySystemEnvironmentValue ENDP ; ULONG __stdcall NtQuerySystemEnvironmentValueEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQuerySystemEnvironmentValueEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 260 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQuerySystemEnvironmentValueEx ENDP ; ULONG __stdcall NtQuerySystemInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtQuerySystemInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 261 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtQuerySystemInformation ENDP ; ULONG __stdcall NtQuerySystemInformationEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtQuerySystemInformationEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 262 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtQuerySystemInformationEx ENDP ; ULONG __stdcall NtQuerySystemTime( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtQuerySystemTime PROC STDCALL arg_01:DWORD mov eax , 263 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtQuerySystemTime ENDP ; ULONG __stdcall NtQueryTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 264 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryTimer ENDP ; ULONG __stdcall NtQueryTimerResolution( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtQueryTimerResolution PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 265 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtQueryTimerResolution ENDP ; ULONG __stdcall NtQueryValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtQueryValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 266 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtQueryValueKey ENDP ; ULONG __stdcall NtQueryVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtQueryVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 267 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtQueryVirtualMemory ENDP ; ULONG __stdcall NtQueryVolumeInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueryVolumeInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 268 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueryVolumeInformationFile ENDP ; ULONG __stdcall NtQueueApcThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtQueueApcThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 269 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtQueueApcThread ENDP ; ULONG __stdcall NtQueueApcThreadEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtQueueApcThreadEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 270 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtQueueApcThreadEx ENDP ; ULONG __stdcall NtRaiseException( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtRaiseException PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 271 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtRaiseException ENDP ; ULONG __stdcall NtRaiseHardError( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtRaiseHardError PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 272 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtRaiseHardError ENDP ; ULONG __stdcall NtReadFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _6_1_7601_sp1_windows_7_NtReadFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 273 mov edx , 7FFE0300h call dword ptr [edx] ret 36 _6_1_7601_sp1_windows_7_NtReadFile ENDP ; ULONG __stdcall NtReadFileScatter( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _6_1_7601_sp1_windows_7_NtReadFileScatter PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 274 mov edx , 7FFE0300h call dword ptr [edx] ret 36 _6_1_7601_sp1_windows_7_NtReadFileScatter ENDP ; ULONG __stdcall NtReadOnlyEnlistment( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtReadOnlyEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 275 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtReadOnlyEnlistment ENDP ; ULONG __stdcall NtReadRequestData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtReadRequestData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 276 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtReadRequestData ENDP ; ULONG __stdcall NtReadVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtReadVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 277 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtReadVirtualMemory ENDP ; ULONG __stdcall NtRecoverEnlistment( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtRecoverEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 278 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtRecoverEnlistment ENDP ; ULONG __stdcall NtRecoverResourceManager( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtRecoverResourceManager PROC STDCALL arg_01:DWORD mov eax , 279 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtRecoverResourceManager ENDP ; ULONG __stdcall NtRecoverTransactionManager( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtRecoverTransactionManager PROC STDCALL arg_01:DWORD mov eax , 280 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtRecoverTransactionManager ENDP ; ULONG __stdcall NtRegisterProtocolAddressInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtRegisterProtocolAddressInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 281 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtRegisterProtocolAddressInformation ENDP ; ULONG __stdcall NtRegisterThreadTerminatePort( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtRegisterThreadTerminatePort PROC STDCALL arg_01:DWORD mov eax , 282 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtRegisterThreadTerminatePort ENDP ; ULONG __stdcall NtReleaseKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtReleaseKeyedEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 283 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtReleaseKeyedEvent ENDP ; ULONG __stdcall NtReleaseMutant( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtReleaseMutant PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 284 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtReleaseMutant ENDP ; ULONG __stdcall NtReleaseSemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtReleaseSemaphore PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 285 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtReleaseSemaphore ENDP ; ULONG __stdcall NtReleaseWorkerFactoryWorker( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtReleaseWorkerFactoryWorker PROC STDCALL arg_01:DWORD mov eax , 286 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtReleaseWorkerFactoryWorker ENDP ; ULONG __stdcall NtRemoveIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtRemoveIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 287 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtRemoveIoCompletion ENDP ; ULONG __stdcall NtRemoveIoCompletionEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtRemoveIoCompletionEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 288 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtRemoveIoCompletionEx ENDP ; ULONG __stdcall NtRemoveProcessDebug( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtRemoveProcessDebug PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 289 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtRemoveProcessDebug ENDP ; ULONG __stdcall NtRenameKey( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtRenameKey PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 290 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtRenameKey ENDP ; ULONG __stdcall NtRenameTransactionManager( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtRenameTransactionManager PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 291 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtRenameTransactionManager ENDP ; ULONG __stdcall NtReplaceKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtReplaceKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 292 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtReplaceKey ENDP ; ULONG __stdcall NtReplacePartitionUnit( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtReplacePartitionUnit PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 293 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtReplacePartitionUnit ENDP ; ULONG __stdcall NtReplyPort( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtReplyPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 294 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtReplyPort ENDP ; ULONG __stdcall NtReplyWaitReceivePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtReplyWaitReceivePort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 295 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtReplyWaitReceivePort ENDP ; ULONG __stdcall NtReplyWaitReceivePortEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtReplyWaitReceivePortEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 296 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtReplyWaitReceivePortEx ENDP ; ULONG __stdcall NtReplyWaitReplyPort( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtReplyWaitReplyPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 297 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtReplyWaitReplyPort ENDP ; ULONG __stdcall NtRequestPort( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtRequestPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 298 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtRequestPort ENDP ; ULONG __stdcall NtRequestWaitReplyPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtRequestWaitReplyPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 299 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtRequestWaitReplyPort ENDP ; ULONG __stdcall NtResetEvent( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtResetEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 300 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtResetEvent ENDP ; ULONG __stdcall NtResetWriteWatch( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtResetWriteWatch PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 301 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtResetWriteWatch ENDP ; ULONG __stdcall NtRestoreKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtRestoreKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 302 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtRestoreKey ENDP ; ULONG __stdcall NtResumeProcess( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtResumeProcess PROC STDCALL arg_01:DWORD mov eax , 303 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtResumeProcess ENDP ; ULONG __stdcall NtResumeThread( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtResumeThread PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 304 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtResumeThread ENDP ; ULONG __stdcall NtRollbackComplete( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtRollbackComplete PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 305 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtRollbackComplete ENDP ; ULONG __stdcall NtRollbackEnlistment( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtRollbackEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 306 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtRollbackEnlistment ENDP ; ULONG __stdcall NtRollbackTransaction( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtRollbackTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 307 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtRollbackTransaction ENDP ; ULONG __stdcall NtRollforwardTransactionManager( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtRollforwardTransactionManager PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 308 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtRollforwardTransactionManager ENDP ; ULONG __stdcall NtSaveKey( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtSaveKey PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 309 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtSaveKey ENDP ; ULONG __stdcall NtSaveKeyEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtSaveKeyEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 310 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtSaveKeyEx ENDP ; ULONG __stdcall NtSaveMergedKeys( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtSaveMergedKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 311 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtSaveMergedKeys ENDP ; ULONG __stdcall NtSecureConnectPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _6_1_7601_sp1_windows_7_NtSecureConnectPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 312 mov edx , 7FFE0300h call dword ptr [edx] ret 36 _6_1_7601_sp1_windows_7_NtSecureConnectPort ENDP ; ULONG __stdcall NtSerializeBoot( ); _6_1_7601_sp1_windows_7_NtSerializeBoot PROC STDCALL mov eax , 313 mov edx , 7FFE0300h call dword ptr [edx] ret _6_1_7601_sp1_windows_7_NtSerializeBoot ENDP ; ULONG __stdcall NtSetBootEntryOrder( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtSetBootEntryOrder PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 314 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtSetBootEntryOrder ENDP ; ULONG __stdcall NtSetBootOptions( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtSetBootOptions PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 315 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtSetBootOptions ENDP ; ULONG __stdcall NtSetContextThread( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtSetContextThread PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 316 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtSetContextThread ENDP ; ULONG __stdcall NtSetDebugFilterState( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtSetDebugFilterState PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 317 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtSetDebugFilterState ENDP ; ULONG __stdcall NtSetDefaultHardErrorPort( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtSetDefaultHardErrorPort PROC STDCALL arg_01:DWORD mov eax , 318 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtSetDefaultHardErrorPort ENDP ; ULONG __stdcall NtSetDefaultLocale( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtSetDefaultLocale PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 319 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtSetDefaultLocale ENDP ; ULONG __stdcall NtSetDefaultUILanguage( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtSetDefaultUILanguage PROC STDCALL arg_01:DWORD mov eax , 320 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtSetDefaultUILanguage ENDP ; ULONG __stdcall NtSetDriverEntryOrder( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtSetDriverEntryOrder PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 321 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtSetDriverEntryOrder ENDP ; ULONG __stdcall NtSetEaFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtSetEaFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 322 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtSetEaFile ENDP ; ULONG __stdcall NtSetEvent( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtSetEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 323 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtSetEvent ENDP ; ULONG __stdcall NtSetEventBoostPriority( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtSetEventBoostPriority PROC STDCALL arg_01:DWORD mov eax , 324 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtSetEventBoostPriority ENDP ; ULONG __stdcall NtSetHighEventPair( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtSetHighEventPair PROC STDCALL arg_01:DWORD mov eax , 325 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtSetHighEventPair ENDP ; ULONG __stdcall NtSetHighWaitLowEventPair( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtSetHighWaitLowEventPair PROC STDCALL arg_01:DWORD mov eax , 326 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtSetHighWaitLowEventPair ENDP ; ULONG __stdcall NtSetInformationDebugObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtSetInformationDebugObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 327 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtSetInformationDebugObject ENDP ; ULONG __stdcall NtSetInformationEnlistment( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtSetInformationEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 328 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtSetInformationEnlistment ENDP ; ULONG __stdcall NtSetInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtSetInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 329 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtSetInformationFile ENDP ; ULONG __stdcall NtSetInformationJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtSetInformationJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 330 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtSetInformationJobObject ENDP ; ULONG __stdcall NtSetInformationKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtSetInformationKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 331 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtSetInformationKey ENDP ; ULONG __stdcall NtSetInformationObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtSetInformationObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 332 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtSetInformationObject ENDP ; ULONG __stdcall NtSetInformationProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtSetInformationProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 333 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtSetInformationProcess ENDP ; ULONG __stdcall NtSetInformationResourceManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtSetInformationResourceManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 334 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtSetInformationResourceManager ENDP ; ULONG __stdcall NtSetInformationThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtSetInformationThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 335 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtSetInformationThread ENDP ; ULONG __stdcall NtSetInformationToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtSetInformationToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 336 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtSetInformationToken ENDP ; ULONG __stdcall NtSetInformationTransaction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtSetInformationTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 337 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtSetInformationTransaction ENDP ; ULONG __stdcall NtSetInformationTransactionManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtSetInformationTransactionManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 338 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtSetInformationTransactionManager ENDP ; ULONG __stdcall NtSetInformationWorkerFactory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtSetInformationWorkerFactory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 339 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtSetInformationWorkerFactory ENDP ; ULONG __stdcall NtSetIntervalProfile( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtSetIntervalProfile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 340 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtSetIntervalProfile ENDP ; ULONG __stdcall NtSetIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtSetIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 341 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtSetIoCompletion ENDP ; ULONG __stdcall NtSetIoCompletionEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtSetIoCompletionEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 342 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtSetIoCompletionEx ENDP ; ULONG __stdcall NtSetLdtEntries( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtSetLdtEntries PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 343 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtSetLdtEntries ENDP ; ULONG __stdcall NtSetLowEventPair( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtSetLowEventPair PROC STDCALL arg_01:DWORD mov eax , 344 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtSetLowEventPair ENDP ; ULONG __stdcall NtSetLowWaitHighEventPair( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtSetLowWaitHighEventPair PROC STDCALL arg_01:DWORD mov eax , 345 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtSetLowWaitHighEventPair ENDP ; ULONG __stdcall NtSetQuotaInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtSetQuotaInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 346 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtSetQuotaInformationFile ENDP ; ULONG __stdcall NtSetSecurityObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtSetSecurityObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 347 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtSetSecurityObject ENDP ; ULONG __stdcall NtSetSystemEnvironmentValue( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtSetSystemEnvironmentValue PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 348 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtSetSystemEnvironmentValue ENDP ; ULONG __stdcall NtSetSystemEnvironmentValueEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtSetSystemEnvironmentValueEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 349 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtSetSystemEnvironmentValueEx ENDP ; ULONG __stdcall NtSetSystemInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtSetSystemInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 350 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtSetSystemInformation ENDP ; ULONG __stdcall NtSetSystemPowerState( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtSetSystemPowerState PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 351 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtSetSystemPowerState ENDP ; ULONG __stdcall NtSetSystemTime( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtSetSystemTime PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 352 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtSetSystemTime ENDP ; ULONG __stdcall NtSetThreadExecutionState( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtSetThreadExecutionState PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 353 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtSetThreadExecutionState ENDP ; ULONG __stdcall NtSetTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); _6_1_7601_sp1_windows_7_NtSetTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 354 mov edx , 7FFE0300h call dword ptr [edx] ret 28 _6_1_7601_sp1_windows_7_NtSetTimer ENDP ; ULONG __stdcall NtSetTimerEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtSetTimerEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 355 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtSetTimerEx ENDP ; ULONG __stdcall NtSetTimerResolution( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtSetTimerResolution PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 356 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtSetTimerResolution ENDP ; ULONG __stdcall NtSetUuidSeed( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtSetUuidSeed PROC STDCALL arg_01:DWORD mov eax , 357 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtSetUuidSeed ENDP ; ULONG __stdcall NtSetValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtSetValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 358 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtSetValueKey ENDP ; ULONG __stdcall NtSetVolumeInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtSetVolumeInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 359 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtSetVolumeInformationFile ENDP ; ULONG __stdcall NtShutdownSystem( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtShutdownSystem PROC STDCALL arg_01:DWORD mov eax , 360 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtShutdownSystem ENDP ; ULONG __stdcall NtShutdownWorkerFactory( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtShutdownWorkerFactory PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 361 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtShutdownWorkerFactory ENDP ; ULONG __stdcall NtSignalAndWaitForSingleObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtSignalAndWaitForSingleObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 362 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtSignalAndWaitForSingleObject ENDP ; ULONG __stdcall NtSinglePhaseReject( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtSinglePhaseReject PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 363 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtSinglePhaseReject ENDP ; ULONG __stdcall NtStartProfile( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtStartProfile PROC STDCALL arg_01:DWORD mov eax , 364 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtStartProfile ENDP ; ULONG __stdcall NtStopProfile( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtStopProfile PROC STDCALL arg_01:DWORD mov eax , 365 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtStopProfile ENDP ; ULONG __stdcall NtSuspendProcess( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtSuspendProcess PROC STDCALL arg_01:DWORD mov eax , 366 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtSuspendProcess ENDP ; ULONG __stdcall NtSuspendThread( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtSuspendThread PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 367 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtSuspendThread ENDP ; ULONG __stdcall NtSystemDebugControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtSystemDebugControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 368 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtSystemDebugControl ENDP ; ULONG __stdcall NtTerminateJobObject( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtTerminateJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 369 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtTerminateJobObject ENDP ; ULONG __stdcall NtTerminateProcess( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtTerminateProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 370 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtTerminateProcess ENDP ; ULONG __stdcall NtTerminateThread( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtTerminateThread PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 371 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtTerminateThread ENDP ; ULONG __stdcall NtTestAlert( ); _6_1_7601_sp1_windows_7_NtTestAlert PROC STDCALL mov eax , 372 mov edx , 7FFE0300h call dword ptr [edx] ret _6_1_7601_sp1_windows_7_NtTestAlert ENDP ; ULONG __stdcall NtThawRegistry( ); _6_1_7601_sp1_windows_7_NtThawRegistry PROC STDCALL mov eax , 373 mov edx , 7FFE0300h call dword ptr [edx] ret _6_1_7601_sp1_windows_7_NtThawRegistry ENDP ; ULONG __stdcall NtThawTransactions( ); _6_1_7601_sp1_windows_7_NtThawTransactions PROC STDCALL mov eax , 374 mov edx , 7FFE0300h call dword ptr [edx] ret _6_1_7601_sp1_windows_7_NtThawTransactions ENDP ; ULONG __stdcall NtTraceControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtTraceControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 375 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtTraceControl ENDP ; ULONG __stdcall NtTraceEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtTraceEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 376 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtTraceEvent ENDP ; ULONG __stdcall NtTranslateFilePath( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtTranslateFilePath PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 377 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtTranslateFilePath ENDP ; ULONG __stdcall NtUmsThreadYield( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtUmsThreadYield PROC STDCALL arg_01:DWORD mov eax , 378 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtUmsThreadYield ENDP ; ULONG __stdcall NtUnloadDriver( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtUnloadDriver PROC STDCALL arg_01:DWORD mov eax , 379 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtUnloadDriver ENDP ; ULONG __stdcall NtUnloadKey( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtUnloadKey PROC STDCALL arg_01:DWORD mov eax , 380 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtUnloadKey ENDP ; ULONG __stdcall NtUnloadKey2( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtUnloadKey2 PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 381 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtUnloadKey2 ENDP ; ULONG __stdcall NtUnloadKeyEx( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtUnloadKeyEx PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 382 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtUnloadKeyEx ENDP ; ULONG __stdcall NtUnlockFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtUnlockFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 383 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtUnlockFile ENDP ; ULONG __stdcall NtUnlockVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtUnlockVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 384 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtUnlockVirtualMemory ENDP ; ULONG __stdcall NtUnmapViewOfSection( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtUnmapViewOfSection PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 385 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtUnmapViewOfSection ENDP ; ULONG __stdcall NtVdmControl( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtVdmControl PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 386 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtVdmControl ENDP ; ULONG __stdcall NtWaitForDebugEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtWaitForDebugEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 387 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtWaitForDebugEvent ENDP ; ULONG __stdcall NtWaitForKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _6_1_7601_sp1_windows_7_NtWaitForKeyedEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 388 mov edx , 7FFE0300h call dword ptr [edx] ret 16 _6_1_7601_sp1_windows_7_NtWaitForKeyedEvent ENDP ; ULONG __stdcall NtWaitForMultipleObjects( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtWaitForMultipleObjects PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 389 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtWaitForMultipleObjects ENDP ; ULONG __stdcall NtWaitForMultipleObjects32( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtWaitForMultipleObjects32 PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 390 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtWaitForMultipleObjects32 ENDP ; ULONG __stdcall NtWaitForSingleObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _6_1_7601_sp1_windows_7_NtWaitForSingleObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 391 mov edx , 7FFE0300h call dword ptr [edx] ret 12 _6_1_7601_sp1_windows_7_NtWaitForSingleObject ENDP ; ULONG __stdcall NtWaitForWorkViaWorkerFactory( ULONG arg_01 , ULONG arg_02 ); _6_1_7601_sp1_windows_7_NtWaitForWorkViaWorkerFactory PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 392 mov edx , 7FFE0300h call dword ptr [edx] ret 8 _6_1_7601_sp1_windows_7_NtWaitForWorkViaWorkerFactory ENDP ; ULONG __stdcall NtWaitHighEventPair( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtWaitHighEventPair PROC STDCALL arg_01:DWORD mov eax , 393 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtWaitHighEventPair ENDP ; ULONG __stdcall NtWaitLowEventPair( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtWaitLowEventPair PROC STDCALL arg_01:DWORD mov eax , 394 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtWaitLowEventPair ENDP ; ULONG __stdcall NtWorkerFactoryWorkerReady( ULONG arg_01 ); _6_1_7601_sp1_windows_7_NtWorkerFactoryWorkerReady PROC STDCALL arg_01:DWORD mov eax , 395 mov edx , 7FFE0300h call dword ptr [edx] ret 4 _6_1_7601_sp1_windows_7_NtWorkerFactoryWorkerReady ENDP ; ULONG __stdcall NtWriteFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _6_1_7601_sp1_windows_7_NtWriteFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 396 mov edx , 7FFE0300h call dword ptr [edx] ret 36 _6_1_7601_sp1_windows_7_NtWriteFile ENDP ; ULONG __stdcall NtWriteFileGather( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _6_1_7601_sp1_windows_7_NtWriteFileGather PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 397 mov edx , 7FFE0300h call dword ptr [edx] ret 36 _6_1_7601_sp1_windows_7_NtWriteFileGather ENDP ; ULONG __stdcall NtWriteRequestData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _6_1_7601_sp1_windows_7_NtWriteRequestData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 398 mov edx , 7FFE0300h call dword ptr [edx] ret 24 _6_1_7601_sp1_windows_7_NtWriteRequestData ENDP ; ULONG __stdcall NtWriteVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _6_1_7601_sp1_windows_7_NtWriteVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 399 mov edx , 7FFE0300h call dword ptr [edx] ret 20 _6_1_7601_sp1_windows_7_NtWriteVirtualMemory ENDP ; ULONG __stdcall NtYieldExecution( ); _6_1_7601_sp1_windows_7_NtYieldExecution PROC STDCALL mov eax , 400 mov edx , 7FFE0300h call dword ptr [edx] ret _6_1_7601_sp1_windows_7_NtYieldExecution ENDP
src/util/util-refs.adb
jquorning/ada-wiki
18
27286
----------------------------------------------------------------------- -- util-refs -- Reference Counting -- Copyright (C) 2010, 2011 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Ada.Unchecked_Deallocation; package body Util.Refs is package body Indefinite_References is -- ------------------------------ -- Create an element and return a reference to that element. -- ------------------------------ function Create (Value : in Element_Access) return Ref is begin return Result : Ref do Result.Target := Value; Util.Concurrent.Counters.Increment (Result.Target.Ref_Counter); end return; end Create; -- ------------------------------ -- Get the element access value. -- ------------------------------ function Value (Object : in Ref'Class) return Element_Access is begin return Object.Target; end Value; -- ------------------------------ -- Returns true if the reference does not contain any element. -- ------------------------------ function Is_Null (Object : in Ref'Class) return Boolean is begin return Object.Target = null; end Is_Null; protected body Atomic_Ref is -- ------------------------------ -- Get the reference -- ------------------------------ function Get return Ref is begin return Value; end Get; -- ------------------------------ -- Change the reference -- ------------------------------ procedure Set (Object : in Ref) is begin Value := Object; end Set; end Atomic_Ref; procedure Free is new Ada.Unchecked_Deallocation (Object => Element_Type, Name => Element_Access); -- ------------------------------ -- Release the reference. Invoke <b>Finalize</b> and free the storage if it was -- the last reference. -- ------------------------------ overriding procedure Finalize (Obj : in out Ref) is Release : Boolean; begin if Obj.Target /= null then Util.Concurrent.Counters.Decrement (Obj.Target.Ref_Counter, Release); if Release then Obj.Target.Finalize; Free (Obj.Target); else Obj.Target := null; end if; end if; end Finalize; -- ------------------------------ -- Update the reference counter after an assignment. -- ------------------------------ overriding procedure Adjust (Obj : in out Ref) is begin if Obj.Target /= null then Util.Concurrent.Counters.Increment (Obj.Target.Ref_Counter); end if; end Adjust; end Indefinite_References; package body References is -- ------------------------------ -- Create an element and return a reference to that element. -- ------------------------------ function Create return Ref is begin return IR.Create (new Element_Type); end Create; end References; end Util.Refs;
programs/oeis/288/A288604.asm
neoneye/loda
22
92073
; A288604: a(n) = (n^9 - n)/10. ; 0,51,1968,26214,195312,1007769,4035360,13421772,38742048,99999999,235794768,515978034,1060449936,2066104677,3844335936,6871947672,11858787648,19835929035,32268769776,51199999998,79428004656,120726921777,180115266144,264180754020,381469726560,542950367895,762559748496,1057845595338,1450714597584,1968299999997,2643962216064,3518437208880,4641148440192,6071699276643,7881563867184,10155995666838,12996173979504,16521610126281,20872836115872,26214399999996,32738193439392,40667138384943,50259261193680,61812183950946,75668064257808,92219016266901,111913047310272,135260546059464,162841359791040,195312499999995,233416517309040,277990588363566,329976359180208,390430591231329,460536658398432,541616944814484,635146195538400,742765873964487,866299581865488,1007769599999994,1169414609283408,1353708654626349,1563381415685376,1801439850948192,2071191283789056,2376268001379987,2720653439629488,3108710029642950,3545208783557616,4035360699999993,4584850071844896,5199869781422892,5887158670826784,6654041077507935,7508468627929680,8459064384657810,9515169444917136,10686892091328453,11985159598261824,13421772799999992,15009463529699904,16761955040970795,18694025526754032,20821574853092958,23161694628320304,25732741731166353,28554415424302944,31647838182886596,35035640370748512,38742048899999991,42792980012978832,47216136328655658,52041108298848720,57299480222861661,63024940972460928,69253399582448016,76023105865456512,83374776213014979,91351724748364080,99999999999999990 mov $1,1 add $1,$0 pow $1,9 sub $1,$0 div $1,30 mul $1,3 mov $0,$1
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_123_537.asm
ljhsiun2/medusa
9
19629
<reponame>ljhsiun2/medusa .global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r15 push %r8 push %rbx push %rdx lea addresses_A_ht+0x18075, %r10 nop nop nop cmp %r14, %r14 mov (%r10), %r8 nop xor $39994, %rbx lea addresses_A_ht+0xde, %r12 nop nop nop xor $49045, %rdx mov (%r12), %r15 nop nop nop xor %rdx, %rdx pop %rdx pop %rbx pop %r8 pop %r15 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi // Store lea addresses_D+0xd495, %r10 nop nop nop nop nop xor $49761, %rax movb $0x51, (%r10) nop nop and $59426, %rax // Load lea addresses_WC+0xd8d5, %r8 nop nop nop nop sub %rdi, %rdi vmovups (%r8), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $1, %xmm5, %r15 nop nop and %rbx, %rbx // REPMOV lea addresses_A+0x1899, %rsi lea addresses_WC+0xc251, %rdi clflush (%rsi) cmp %r8, %r8 mov $54, %rcx rep movsb nop nop nop nop nop add $62803, %rbx // Store mov $0xce5, %rax nop nop xor $40917, %rbx mov $0x5152535455565758, %rdi movq %rdi, %xmm0 vmovups %ymm0, (%rax) nop nop nop xor $16011, %r10 // Store lea addresses_WT+0xe43, %rbx nop nop nop nop nop sub %r8, %r8 mov $0x5152535455565758, %rsi movq %rsi, %xmm7 movups %xmm7, (%rbx) nop nop nop nop cmp $58237, %rdi // Store lea addresses_US+0x135df, %r15 clflush (%r15) nop nop nop sub $21916, %r10 mov $0x5152535455565758, %rcx movq %rcx, (%r15) nop cmp %rcx, %rcx // Store lea addresses_US+0x1db95, %rax clflush (%rax) nop nop dec %r10 mov $0x5152535455565758, %rbx movq %rbx, %xmm2 vmovntdq %ymm2, (%rax) nop nop nop nop sub %rbx, %rbx // Store lea addresses_D+0x15615, %r8 nop nop xor $4102, %rcx mov $0x5152535455565758, %rsi movq %rsi, %xmm0 vmovups %ymm0, (%r8) nop nop nop nop and %r15, %r15 // Faulty Load lea addresses_normal+0x19495, %r15 nop nop nop nop xor $8145, %rcx mov (%r15), %eax lea oracles, %r10 and $0xff, %rax shlq $12, %rax mov (%r10,%rax,1), %rax pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WC', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'34': 123} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
Mixfix/Acyclic/Example.agda
nad/parser-combinators
1
16071
------------------------------------------------------------------------ -- An example ------------------------------------------------------------------------ module Mixfix.Acyclic.Example where open import Codata.Musical.Notation open import Data.Vec using ([]; _∷_; [_]) open import Data.List as List using (List; []; _∷_) renaming ([_] to L[_]) open import Data.List.Membership.Propositional using (_∈_) open import Data.List.Relation.Unary.Any using (here; there) import Codata.Musical.Colist as Colist open import Data.Product using (βˆƒβ‚‚; -,_) open import Data.Unit.Polymorphic using (⊀) open import Data.Sum using (_⊎_; inj₁; injβ‚‚) open import Data.Nat using (zero; suc) open import Data.Fin using (#_) import Data.List.Relation.Binary.Pointwise as ListEq import Data.String as String open String using (String; _++_) import Data.String.Properties as String open import Relation.Binary open DecSetoid (ListEq.decSetoid String.≑-decSetoid) using (_β‰Ÿ_) open import Function using (_∘_; _$_) open import Data.Bool using (Bool; if_then_else_) import Data.Bool.Show as Bool open import Relation.Nullary.Decidable using (⌊_βŒ‹) import Relation.Binary.PropositionalEquality as P open import IO import Level open import Mixfix.Fixity hiding (_β‰Ÿ_) open import Mixfix.Operator open import Mixfix.Expr open import Mixfix.Acyclic.PrecedenceGraph import Mixfix.Acyclic.Grammar as Grammar import Mixfix.Acyclic.Show as Show import StructurallyRecursiveDescentParsing.Simplified as Simplified open Simplified using (Parser) import StructurallyRecursiveDescentParsing.DepthFirst as DepthFirst import TotalParserCombinators.BreadthFirst as BreadthFirst ------------------------------------------------------------------------ -- Operators atom : Operator closed 0 atom = record { nameParts = "β€’" ∷ [] } plus : Operator (infx left) 0 plus = record { nameParts = "+" ∷ [] } ifThen : Operator prefx 1 ifThen = record { nameParts = "i" ∷ "t" ∷ [] } ifThenElse : Operator prefx 2 ifThenElse = record { nameParts = "i" ∷ "t" ∷ "e" ∷ [] } comma : Operator (infx left) 0 comma = record { nameParts = "," ∷ [] } wellTyped : Operator postfx 1 wellTyped = record { nameParts = "⊒" ∷ "∢" ∷ [] } ------------------------------------------------------------------------ -- Precedence graph prec : List (βˆƒβ‚‚ Operator) β†’ List Precedence β†’ Precedence prec ops = precedence (Ξ» fix β†’ List.mapMaybe (hasFixity fix) ops) mutual a = prec ((-, -, atom) ∷ []) [] pl = prec ((-, -, plus) ∷ []) (a ∷ []) ii = prec ((-, -, ifThen) ∷ (-, -, ifThenElse) ∷ []) (pl ∷ a ∷ []) c = prec ((-, -, comma) ∷ []) (ii ∷ pl ∷ a ∷ []) wt = prec ((-, -, wellTyped) ∷ []) (c ∷ a ∷ []) g : PrecedenceGraph g = wt ∷ c ∷ ii ∷ pl ∷ a ∷ [] ------------------------------------------------------------------------ -- Expressions open PrecedenceCorrect acyclic g β€’ : ExprIn a non β€’ = βŸͺ here P.refl βˆ™ [] ⟫ _+_ : Outer pl left β†’ Expr (a ∷ []) β†’ ExprIn pl left e₁ + eβ‚‚ = e₁ ⟨ here P.refl βˆ™ [] ⟩ˑ eβ‚‚ i_t_ : Expr g β†’ Outer ii right β†’ ExprIn ii right i e₁ t eβ‚‚ = βŸͺ here P.refl βˆ™ e₁ ∷ [] ⟩ eβ‚‚ i_t_e_ : Expr g β†’ Expr g β†’ Outer ii right β†’ ExprIn ii right i e₁ t eβ‚‚ e e₃ = βŸͺ there (here P.refl) βˆ™ e₁ ∷ eβ‚‚ ∷ [] ⟩ e₃ _,_ : Outer c left β†’ Expr (ii ∷ pl ∷ a ∷ []) β†’ ExprIn c left e₁ , eβ‚‚ = e₁ ⟨ here P.refl βˆ™ [] ⟩ˑ eβ‚‚ _⊒_∢ : Outer wt left β†’ Expr g β†’ Expr g e₁ ⊒ eβ‚‚ ∢ = here P.refl βˆ™ (e₁ ⟨ here P.refl βˆ™ [ eβ‚‚ ] ⟫) ------------------------------------------------------------------------ -- Some tests open Show g fromNameParts : List NamePart β†’ String fromNameParts = List.foldr _++_ "" toNameParts : String β†’ List NamePart toNameParts = List.map (String.fromList ∘ L[_]) ∘ String.toList data Backend : Set where depthFirst : Backend breadthFirst : Backend parse : βˆ€ {Tok e R} β†’ Backend β†’ Parser Tok e R β†’ List Tok β†’ List R parse depthFirst p = DepthFirst.parseComplete p parse breadthFirst p = BreadthFirst.parse (Simplified.⟦_⟧ p) parseExpr : Backend β†’ String β†’ List String parseExpr backend = List.map (fromNameParts ∘ show) ∘ parse backend (Grammar.expression g) ∘ toNameParts -- The breadth-first backend is considerably slower than the -- depth-first one on these examples. backend = depthFirst runTest : String β†’ List String β†’ IO (⊀ {β„“ = Level.zero}) runTest s₁ sβ‚‚ = do putStrLn ("Testing: " ++ s₁) Colist.mapMβ€² putStrLn (Colist.fromList p₁) putStrLn (if ⌊ p₁ β‰Ÿ sβ‚‚ βŒ‹ then "Passed" else "Failed") where p₁ = parseExpr backend s₁ main = run do runTest "β€’+β€’βŠ’β€’βˆΆ" [] runTest "β€’,β€’βŠ’βˆΆ" [] runTest "β€’βŠ’β€’βˆΆ" L[ "β€’βŠ’β€’βˆΆ" ] runTest "β€’,iβ€’tβ€’+β€’βŠ’β€’βˆΆ" L[ "β€’,iβ€’tβ€’+β€’βŠ’β€’βˆΆ" ] runTest "iβ€’tiβ€’tβ€’eβ€’" ("iβ€’tiβ€’tβ€’eβ€’" ∷ "iβ€’tiβ€’tβ€’eβ€’" ∷ [])
ts2060/main.asm
nagydani/zx-rom-mods
15
175670
INCLUDE "../labels.asm" ORG $0000 ; Cold reset RST00: DI LD BC, $692B RST00L: DEC BC LD A,B OR C JR NZ,RST00L ; No instruction fetch from 0008, for IF1 compatibility JP RESET DEFS $10 - $ ; Return to ROM1 RST10: INC SP INC SP JP SWAP1 DEFS $18 - $ ; Collect a character RST18: LD HL,(CH_ADD) LD A,(HL) TEST_CHAR: CALL SKIP_OVER RET NC ; Collect next character RST20: CALL CH_ADD_1 JR TEST_CHAR DEFS $28 - $ ; Calculator restart RST28: JP CALCULATE DEFS $30 - $ ; Call routine from ROM1 RST30: EX (SP),HL PUSH AF LD A,(HL) JP CALL_ROM1 DEFS $38 - 2 - $ PAGEIRQ:OUT ($F4), A ; IM1 routine RST38: PUSH AF PUSH HL LD HL,SWAPIRQ EX (SP),HL LD A, 1 JR PAGEIRQ CALL_ROM1: LD (TARGET),A INC HL LD A,(HL) LD (TARGET+1),A ; target address in TARGET POP AF INC HL EX (SP),HL ; return address on stack PUSH HL LD HL,SWAP EX (SP),HL ; return address, SWAP on stack PUSH HL LD HL,(TARGET) EX (SP),HL ; return address, SWAP, target address on stack ROM1SW: JP SWAP1 ; this one is performance-critical DEFS $66 - $ NMI: PUSH AF PUSH HL LD HL,(NMIADD) PUSH HL LD A,H CP $3F RET NC OR L JR NZ,ROM1SW NONMI: POP HL POP HL POP AF RETN F_SCAN: LD HL,10 ADD HL,SP LD A,(HL) INC HL EX AF,AF' LD A,(HL) LD E,L LD D,H DEC HL DEC HL LD BC,10 LDDR POP HL LD H,A EX AF,AF' LD L,A JP_HL: JP (HL) SKIP_OVER: CP $21 RET NC CP $0D RET Z CP 1 RET C CP 6 CCF RET NC CP $18 CCF RET C INC HL CP $16 JR C,SKIPS2 INC HL SKIPS2: SCF LD (CH_ADD),HL RET CH_ADD_1: LD HL,(CH_ADD) TEMP_PTR1: INC HL TEMP_PTR2: LD (CH_ADD),HL LD A,(HL) RET ZX: LD SP,$0051 ; 0000 RST RST10 RESET: LD A,$80 OUT ($FF),A ; EX-ROM, IRQ, BLACK ON WHITE, SCREEN0 LD A,$3F LD I,A LD A,$7F IN A,($FE) RRA ; SPACE pressed? JR NC,ZX ; jump if so. LD HL,INIT_5B00 LD DE,$5B00 LD BC,INIT_5B00_L LDIR LD L,E LD H,D INC DE LD (HL),$00 LD BC,$FFFF-INIT_5B00_E LDIR LD (P_RAMT),HL DEC H ; reserve 256 bytes for the printer buffer LD DE,$3EAF ; last byte of U LD BC,$00A8 EX DE,HL LDDR EX DE,HL INC HL LD (UDG),HL DEC HL LD BC,$0140 LD (RASP),BC LD (RAMTOP),HL NEWTS: LD A,7 OUT ($FE),A LD HL,$3C00 LD (CHARS),HL LD HL,(RAMTOP) LD (HL),$3E DEC HL LD SP,HL DEC HL DEC HL LD (ERR_SP),HL LD HL,NMIVEC LD (NMIADD),HL IM 1 LD IY,ERR_NR LD (IY+FLAGS-ERR_NR),$10 ; TS2060 mode EI LD HL,$FF00 LD (PR_CC),HL ; printer buffer at the top of RAM LD (IY+P_POSN-ERR_NR),$21 LD HL,CHINFO LD (CHANS),HL LD DE,L15AF LD BC,$0015 EX DE,HL RST RST30 DEFW LDIRR EX DE,HL DEC HL LD (DATADD),HL INC HL LD (PROG),HL LD (VARS),HL LD (HL),$80 INC HL LD (E_LINE),HL LD (HL),$0D INC HL LD (HL),$80 INC HL LD (WORKSP),HL LD (STKBOT),HL LD (STKEND),HL ; measure framerate LD BC,$FFFF LD HL,FRAMES HALT LD A,(HL) FRAMERT:INC BC CP (HL) JR Z,FRAMERT RST RST30 DEFW STACKBC RST RST28 DEFB $34,$40,$43,$22,$03 ; literal 331800 DEFB $01 ; exchange DEFB $05 ; division DEFB $38 ; end_calc RST RST30 DEFW L2DD5 ; FP-TO-A LD (BEAT),A LD HL,P_OUT ; output service routine in this ROM LD (CHINFO),HL LD (CHINFO+5),HL LD (CHINFO+15),HL LD A,$38 LD (ATTR_P),A LD (ATTR_T),A LD (BORDCR),A LD HL,$0523 LD (REPDEL),HL DEC (IY+KSTATE-ERR_NR) DEC (IY+KSTATE+4-ERR_NR) LD HL,L15C6 LD DE,STRMS LD BC,$000E RST RST30 DEFW LDIRR LD (IY+DF_SZ-ERR_NR),$02 RST RST30 DEFW L0D6B ; CLS LD DE,COPYRIGHT CALL STDERR_MSG LD DE,CPR_MSG PUSH DE RST RST10 INIT_5B00: EQU $ ; This stuff does not run here, it gets copied to $5B00 ORG $5B00 SWAP: PUSH AF XOR A OUT ($F4),A POP AF EX (SP),HL RES 5,H EX (SP),HL RET SWAPIRQ:XOR A OUT ($F4),A POP AF RET P_OUT: LD HL,PR_OUT P_OUT1: EQU P_OUT+1 SWAP2: PUSH HL JR SWAP ERRHOOK:LD HL,ONERROR JR SWAP2 TEMPO: DEFB 120 ; in BPM for PLAY BEAT: EQU $ ; framerate constant for PLAY PLAY_ST:EQU BEAT+1 ; PLAY state TARGET: EQU PLAY_ST+2 ; address in ROM1 ERRLN: EQU TARGET+2 ERRC: EQU ERRLN+2 ERRS: EQU ERRC+2 ERRT: EQU ERRC+1 INIT_5B00_E: EQU $ INIT_5B00_L: EQU $ - $5B00 ORG INIT_5B00 + INIT_5B00_L INCLUDE "copy.asm" INCLUDE "tokens.asm" INCLUDE "reportz.asm" INCLUDE "reports.asm" DEFS L0554 - $ - 5 ; POP AF \ RET in ROM1 SWAP1: PUSH AF LD A, 1 OUT ($F4), A ; Control returned to ROM1 STACKSWAP: LD HL,SWAP1 EX (SP),HL JP (HL) RUN_CONT: INC B DJNZ SWAP1 ; separator mismatch JR NC,OLD_CONT LD C,A POP HL ; discard return address LD HL,INST_TAB CALL INDEXER JR NC,ERROR_C1 LD C,(HL) ADD HL,BC JR GET_PARAM ERROR_C1: RST $30 DEFW REPORT_C OLD_CONT: LD A,(T_ADDR) CP $B2 JP Z,E_POKE JR ERROR_C1 SCAN_LOOP: LD HL,(T_ADDR) GET_PARAM: LD A,(HL) INC HL LD (T_ADDR),HL LD BC,SCAN_LOOP PUSH BC LD C,A CP $20 JR NC,SEPARATOR LD HL,CMDCLASS2 LD B,$00 ADD HL,BC LD C,(HL) ADD HL,BC PUSH HL RST $18 DEC B RET SEPARATOR: RST $18 CP C JR NZ,ERROR_C1 RST $20 RET ; Same as L16DB in ROM1 INDEXER_1: INC HL INDEXER:LD A,(HL) OR A RET Z CP C INC HL JR NZ,INDEXER_1 SCF RET ; Single-argument original function extended to multiple arguments MULTI_CONT: POP BC ; discard return address BIT 6,(IY+FLAGS-ERR_NR) ; type of first argument JR Z,ERRCIDX ; error, if string POP BC LD A,B CP $10 JR NZ,ERRCIDX PUSH BC LD HL,MFNTAB INDEXJP:CALL INDEXER JP C,INDEXER_JP ERRCIDX:JP ERROR_C SCAN_CONT: CP $40 JR Z,DSWAP2 ; mismatched function type CP C JR NZ,PREFIX_CONT CP "," JR Z,MULTI_CONT INFIX_CONT: CP $0C ; multiplication? JR NZ,DSWAP2 CALL SYNTAX_Z JR Z,MULS_S POP BC LD BC,D_STRING JP S_FUNC MULS_S: LD BC,$104C ; tight multiplication LD HL,L2790 EX (SP),HL RST $10 ERR_CONT: CP $1C JR C,DSWAP2 CALL REPORT ERR_C: LD HL,X1349 EX (SP),HL DSWAP2: RST RST10 PREFIX_CONT: RST $18 LD C,A LD HL,SCANFUNC2 JR IDX_DO INDEX_CONT: LD A,L LD HL,OPERTB SUB $AF JR NZ,DSWAP2 IDX_DO: CALL INDEXER SWIDS: JR NC,DSWAP2 POP BC LD C,(HL) LD B,0 ADD HL,BC JP (HL) ERROR: LD HL,(CH_ADD) LD (X_PTR),HL LD HL,L0055 EX (SP),HL LD L,(HL) RST $10 DIGIT_CONT: CALL DDIGIT JR NC,DSWAP2 LD A,C RST $10 DDIGIT: CP $A CCF RET NC SUB "A" - "0" RET C AND $DF CP 26 CCF RET C ADD $0A RET LIST_CONT: POP BC ; discard return address SET 6,(IY+TV_FLAG-ERR_NR) ; LIST active BIT 2,(IY+FLAGS-ERR_NR) ; printing in K mode? JR NZ,LIST_L ; jump, if not SET 2,(IY+TV_FLAG-ERR_NR) ; signal instruction JR LIST_K LIST_L: RES 2,(IY+TV_FLAG-ERR_NR) ; signal arguments LIST_K: RST $30 DEFW L1937 ; OUT-CHAR RES 6,(IY+TV_FLAG-ERR_NR) ; LIST inactive RST $10 MAIN_ADD_CONT: PUSH BC CALL RSTLBLS POP BC RST $10 GOTO_CONT: POP DE ; discard ERROR B CALL STACKSWAP JP_LBL: LD HL,(PROG) AND A SBC HL,BC ; subtract large target from PROG LD E,(HL) INC HL LD D,(HL) ; DE = length ADD HL,DE LD (CH_ADD),HL SBC HL,DE INC HL LD DE,SUBPPC LDI ; statement number LD E,(HL) INC HL LD D,(HL) ; relative pointer to before first statement ADD HL,DE DEC HL LD D,(HL) DEC HL LD E,(HL) ; DE = length of line EX DE,HL ADD HL,DE INC HL INC HL LD (NXTLIN),HL EX DE,HL DEC HL LD E,(HL) DEC HL LD D,(HL) LD (PPC),DE RET INCLUDE "functions.asm" INCLUDE "instructions.asm" INCLUDE "operators.asm" INCLUDE "channels.asm" INCLUDE "variables.asm" DEFS LIST_HOOK - $2000 - $ ONERR_DO: EQU SWAP1 SUB_CONT: EQU SWAP1 FOR_CONT: EQU SWAP1 SKIP_FOR_CONT: EQU SWAP1 NEXT_CONT: EQU SWAP1 RETURN_CONT: EQU SWAP1 LOCAL_CONT: EQU SWAP1 STEP_CONT: EQU SWAP1 ; jump table from ROM1 JP INDEX_CONT JP LIST_CONT JP SCAN_CONT JP SUB_CONT JP STRNG_CONT JP DIGIT_CONT JP GOTO_CONT JP FOR_CONT JP SKIP_FOR_CONT JP NEXT_CONT JP LV_CONT JP RETURN_CONT JP MAIN_ADD_CONT JP ERR_CONT JP RUN_CONT JP LOCAL_CONT JP NEWTS JP STEP_CONT JP TEMPS_CONT JP F_SCAN ; Mirror a memory area ; Input: HL=start, BC=length MIRROR: LD D,(HL) DEC BC LD A,B OR C RET Z ADD HL,BC LD E,(HL) LD (HL),D SBC HL,BC LD (HL),E INC HL DEC BC LD A,B OR C JR NZ,MIRROR RET ; Replace a,b on top of stack by INT(a/b) and return a MOD b in registers BC and A. MOD2A: RST $28 ; calc DEFB $32 ; mod DEFB $01 ; exchange DEFB $38 ; end JP L2DA2 ; FP-TO-BC (and A) ; Move both pointers back by one entry STEPBACK: LD BC,-5 LD D,H LD E,L ADD HL,BC RET FETCH: LD HL,(STKEND) DEC HL LD B,(HL) DEC HL LD C,(HL) DEC HL LD D,(HL) DEC HL LD E,(HL) RET INCLUDE "calculator.asm" INCLUDE "strmul.asm" DEFS $2000 - $
programs/oeis/054/A054603.asm
neoneye/loda
22
178918
; A054603: a(n) = Sum_{d|4} phi(d)*n^(4/d). ; 0,4,24,96,280,660,1344,2464,4176,6660,10120,14784,20904,28756,38640,50880,65824,83844,105336,130720,160440,194964,234784,280416,332400,391300,457704,532224,615496,708180,810960,924544,1049664 mov $1,$0 bin $1,2 add $0,$1 mov $2,$1 add $2,1 mul $0,$2 mul $0,4
tests/z80.asm
dimitrit/uz80as
8
20320
<gh_stars>1-10 ; =========================================================================== ; uz80as, an assembler for the Zilog Z80 and several other microprocessors. ; ; Zilog Z80. ; =========================================================================== #define equ .equ #define end .end n: equ 20h nn: equ 0584h dddd: equ 07h a16: equ $1234 hi8: equ $ff11 port: equ 3 imm8: equ 56h ;immediate data (8 bits) offs: equ 7 offset_neg: equ -7 ; 0x NOP LD BC,nn LD (BC),A INC BC INC B DEC B LD B,n RLCA EX AF,AF' ADD HL,BC LD A,(BC) DEC BC INC C DEC C LD C,n RRCA ; 1x loop0: DJNZ loop0 LD DE,nn LD (DE),A INC DE INC D DEC D LD D,n RLA loop1: JR loop1 ADD HL,DE LD A,(DE) DEC DE INC E DEC E LD E,n RRA ; 2x loop2: JR NZ,loop2 LD HL,nn LD (nn),HL INC HL INC H DEC H LD H,n DAA loop3: JR Z,loop3 ADD HL,HL LD HL,(nn) DEC HL INC L DEC L LD L,n CPL ; 3x loop4: JR NC,loop4 LD SP,nn LD (nn),A INC SP INC (HL) DEC (HL) LD (HL),n SCF loop5: JR C,loop5 ADD HL,SP LD A,(nn) DEC SP INC A DEC A LD A,n CCF ; 4x LD B,B LD B,C LD B,D LD B,E LD B,H LD B,L LD B,(HL) LD B,A LD C,B LD C,C LD C,D LD C,E LD C,H LD C,L LD C,(HL) LD C,A ; 5x LD D,B LD D,C LD D,D LD D,E LD D,H LD D,L LD D,(HL) LD D,A LD E,B LD E,C LD E,D LD E,E LD E,H LD E,L LD E,(HL) LD E,A ; 6x LD H,B LD H,C LD H,D LD H,E LD H,H LD H,L LD H,(HL) LD H,A LD L,B LD L,C LD L,D LD L,E LD L,H LD L,L LD L,(HL) LD L,A ; 7X LD (HL),B LD (HL),C LD (HL),D LD (HL),E LD (HL),H LD (HL),L HALT LD (HL),A LD A,B LD A,C LD A,D LD A,E LD A,H LD A,L LD A,(HL) LD A,A ; 8x ADD A,B ADD A,C ADD A,D ADD A,E ADD A,H ADD A,L ADD A,(HL) ADD A,A ADC A,B ADC A,C ADC A,D ADC A,E ADC A,H ADC A,L ADC A,(HL) ADC A,A ; 9x SUB B SUB C SUB D SUB E SUB H SUB L SUB (HL) SUB A SBC A,B SBC A,C SBC A,D SBC A,E SBC A,H SBC A,L SBC A,(HL) SBC A,A ; Ax AND B AND C AND D AND E AND H AND L AND (HL) AND A XOR B XOR C XOR D XOR E XOR H XOR L XOR (HL) XOR A ; Bx OR B OR C OR D OR E OR H OR L OR (HL) OR A CP B CP C CP D CP E CP H CP L CP (HL) CP A ; Cx RET NZ POP BC JP NZ,a16 JP a16 CALL NZ,a16 PUSH BC ADD A,n RST 00h RET Z RET JP Z,a16 ; CB prefix CALL Z,a16 CALL a16 ADC A,n RST 08h ; Dx RET NC POP DE JP NC,a16 OUT (n),A CALL NC,a16 PUSH DE SUB n RST 10h RET C EXX JP C,a16 IN A,(n) CALL C,a16 ; DD prefix SBC A,n RST 18h ; Ex RET PO POP HL JP PO,a16 EX (SP),HL CALL PO,a16 PUSH HL AND n RST 20h RET PE JP (HL) JP PE,a16 EX DE,HL CALL PE,a16 ; ED prefix XOR n RST 28h ; Fx RET P POP AF JP P,a16 DI CALL P,a16 PUSH AF OR n RST 30h RET M LD SP,HL JP M,a16 EI CALL M,a16 ; FD prefix CP n RST 38h ; CB prefix ; 0x RLC B RLC C RLC D RLC E RLC H RLC L RLC (HL) RLC A RRC B RRC C RRC D RRC E RRC H RRC L RRC (HL) RRC A ; 1x RL B RL C RL D RL E RL H RL L RL (HL) RL A RR B RR C RR D RR E RR H RR L RR (HL) RR A ; 2x SLA B SLA C SLA D SLA E SLA H SLA L SLA (HL) SLA A SRA B SRA C SRA D SRA E SRA H SRA L SRA (HL) SRA A ; 3x ; SLL B ; 30 ; SLL C ; 31 ; SLL D ; 32 ; SLL E ; 33 ; SLL H ; 34 ; SLL L ; 35 ; SLL (HL) ; 36 ; SLL A ; 37 SRL B SRL C SRL D SRL E SRL H SRL L SRL (HL) SRL A ; 4x BIT 0,B BIT 0,C BIT 0,D BIT 0,E BIT 0,H BIT 0,L BIT 0,(HL) BIT 0,A BIT 1,B BIT 1,C BIT 1,D BIT 1,E BIT 1,H BIT 1,L BIT 1,(HL) BIT 1,A ; 5x BIT 2,B BIT 2,C BIT 2,D BIT 2,E BIT 2,H BIT 2,L BIT 2,(HL) BIT 2,A BIT 3,B BIT 3,C BIT 3,D BIT 3,E BIT 3,H BIT 3,L BIT 3,(HL) BIT 3,A ; 6x BIT 4,B BIT 4,C BIT 4,D BIT 4,E BIT 4,H BIT 4,L BIT 4,(HL) BIT 4,A BIT 5,B BIT 5,C BIT 5,D BIT 5,E BIT 5,H BIT 5,L BIT 5,(HL) BIT 5,A ; 7x BIT 6,B BIT 6,C BIT 6,D BIT 6,E BIT 6,H BIT 6,L BIT 6,(HL) BIT 6,A BIT 7,B BIT 7,C BIT 7,D BIT 7,E BIT 7,H BIT 7,L BIT 7,(HL) BIT 7,A ; 8x RES 0,B RES 0,C RES 0,D RES 0,E RES 0,H RES 0,L RES 0,(HL) RES 0,A RES 1,B RES 1,C RES 1,D RES 1,E RES 1,H RES 1,L RES 1,(HL) RES 1,A ; 9x RES 2,B RES 2,C RES 2,D RES 2,E RES 2,H RES 2,L RES 2,(HL) RES 2,A RES 3,B RES 3,C RES 3,D RES 3,E RES 3,H RES 3,L RES 3,(HL) RES 3,A ; Ax RES 4,B RES 4,C RES 4,D RES 4,E RES 4,H RES 4,L RES 4,(HL) RES 4,A RES 5,B RES 5,C RES 5,D RES 5,E RES 5,H RES 5,L RES 5,(HL) RES 5,A ; Bx RES 6,B RES 6,C RES 6,D RES 6,E RES 6,H RES 6,L RES 6,(HL) RES 6,A RES 7,B RES 7,C RES 7,D RES 7,E RES 7,H RES 7,L RES 7,(HL) RES 7,A ; Cx SET 0,B SET 0,C SET 0,D SET 0,E SET 0,H SET 0,L SET 0,(HL) SET 0,A SET 1,B SET 1,C SET 1,D SET 1,E SET 1,H SET 1,L SET 1,(HL) SET 1,A ; Dx SET 2,B SET 2,C SET 2,D SET 2,E SET 2,H SET 2,L SET 2,(HL) SET 2,A SET 3,B SET 3,C SET 3,D SET 3,E SET 3,H SET 3,L SET 3,(HL) SET 3,A ; Ex SET 4,B SET 4,C SET 4,D SET 4,E SET 4,H SET 4,L SET 4,(HL) SET 4,A SET 5,B SET 5,C SET 5,D SET 5,E SET 5,H SET 5,L SET 5,(HL) SET 5,A ; Fx SET 6,B SET 6,C SET 6,D SET 6,E SET 6,H SET 6,L SET 6,(HL) SET 6,A SET 7,B SET 7,C SET 7,D SET 7,E SET 7,H SET 7,L SET 7,(HL) SET 7,A ; ED prefix ; 4x IN B,(C) OUT (C),B SBC HL,BC LD (nn),BC NEG RETN IM 0 LD I,A IN C,(C) OUT (C),C ADC HL,BC LD BC,(nn) ; NEG RETI ; IM 0/1 LD R,A ; 5x IN D,(C) OUT (C),D SBC HL,DE LD (nn),DE ; NEG ; RETN IM 1 LD A,I IN E,(C) OUT (C),E ADC HL,DE LD DE,(nn) ; NEG ; RETN IM 2 LD A,R ; 6x IN H,(C) OUT (C),H SBC HL,HL ; LD (nn),HL ; NEG ; RETN ; IM 0 RRD IN L,(C) OUT (C),L ADC HL,HL ; LD HL,(nn) ; NEG ; RETN ; IM 0/1 RLD ; 7x ; IN (C) ; OUT (C),0 SBC HL,SP LD (nn),SP ; NEG ; RETN ; IM 1 ; IN A,(C) OUT (C),A ADC HL,SP LD SP,(nn) ; NEG ; RETN ; IM 2 ; ; Ax LDI CPI INI OUTI ; A4-A7 LDD CPD IND OUTD ; AC-AF ; Bx LDIR CPIR INIR OTIR ; B4-B7 LDDR CPDR INDR OTDR ; BC-BF ; DD prefix ; 0x ; 00-08 ADD IX,BC ; 0A-0F ; 1x ; 10-18 ADD IX,DE ; 1A-1F ; 2x ; 20 LD IX,nn LD (nn),IX INC IX ; INC IXH ; DEC IXH ; LD IXH,n ; 27 ; 28 ADD IX,IX LD IX,(nn) DEC IX ; INC IXL ; DEC IXL ; LD IXL,n ; 2F ; 3x ; 30-33 INC (IX+offs) DEC (IX+offs) LD (IX+offs),n ; 37 ; 38 ADD IX,SP ; 3A-3F ; 4x ; 40-43 ; LD B,IXH ; LD B,IXL LD B,(IX+offs) ; 47-4B ; LD C,IXH ; LD C,IXL LD C,(IX+offs) ; 4F ; 5x ; 50-53 ; LD D,IXH ; LD D,IXL LD D,(IX+offs) ; 57-5B ; LD E,IXH ; LD E,IXL LD E,(IX+offs) ; 5F ; 6x ; LD IXH,B ; 60 ; LD IXH,C ; 61 ; LD IXH,D ; 62 ; LD IXH,E ; 63 ; LD IXH,IXH ; 64 ; LD IXH,IXL ; 65 LD H,(IX+offs) ; LD IXH,A ; 67 ; LD IXL,B ; 68 ; LD IXL,C ; 69 ; LD IXL,D ; 6A ; LD IXL,E ; 6B ; LD IXL,IXH ; 6C ; LD IXL,IXL ; 6D LD L,(IX+offs) ; LD IXL,A ; 6F ; 7x LD (IX+offs),B LD (IX+offs),C LD (IX+offs),D LD (IX+offs),E LD (IX+offs),H LD (IX+offs),L ; 76 LD (IX+offs),A ; 78-7B ; LD A,IXH ; LD A,IXL LD A,(IX+offs) ; 7F ; 8x ; 80-83 ; ADD A,IXH ; ADD A,IXL ADD A,(IX+offs) ; 86-8B ; ADC A,IXH ; ADC A,IXL ADC A,(IX+offs) ; 8F ; 9x ; 90-93 ; SUB IXH ; SUB IXL SUB (IX+offs) ; 96-9B ; SBC A,IXH ; SBC A,IXL SBC A,(IX+offs) ; 9F ; Ax ; A0-A3 ; AND IXH ; AND IXL AND (IX+offs) ; A6-AB ; XOR IXH ; XOR IXL XOR (IX+offs) ; AF ; Bx ; B0-B3 ; OR IXH ; OR IXL OR (IX+offs) ; B6-BB ; CP IXH ; CP IXL CP (IX+offs) ; BF ; Cx ; DDCB prefix ; Dx ; Ex ; E0 POP IX ; E2 EX (SP),IX ; E4 PUSH IX ; E6-E8 JP (IX) ; EA-EF ; Fx ; F0-F8 LD SP,IX ; FA-FF ; FD prefix ; 0x ; 00-08 ADD IY,BC ; 0A-0F ; 1x ; 10-18 ADD IY,DE ; 1A-1F ; 2x ; 20 LD IY,nn LD (nn),IY INC IY ; INC IYH ; DEC IYH ; LD IYH,n ; 27 ; 28 ADD IY,IY LD IY,(nn) DEC IY ; INC IYL ; DEC IYL ; LD IYL,n ; 2F ; 3x ; 30-33 INC (IY+offs) DEC (IY+offs) LD (IY+offs),n ; 37 ; 38 ADD IY,SP ; 3A-3F ; 4x ; 40-43 ; LD B,IYH ; LD B,IYL LD B,(IY+offs) ; 47-4B ; LD C,IYH ; LD C,IYL LD C,(IY+offs) ; 4F ; 5x ; 50-53 ; LD D,IYH ; LD D,IYL LD D,(IY+offs) ; 57-5B ; LD E,IYH ; LD E,IYL LD E,(IY+offs) ; 5F ; 6x ; LD IYH,B ; 60 ; LD IYH,C ; 61 ; LD IYH,D ; 62 ; LD IYH,E ; 63 ; LD IYH,IYH ; 64 ; LD IYH,IYL ; 65 LD H,(IY+offs) ; LD IYH,A ; 67 ; LD IYL,B ; 68 ; LD IYL,C ; 69 ; LD IYL,D ; 6A ; LD IYL,E ; 6B ; LD IYL,IYH ; 6C ; LD IYL,IYL ; 6D LD L,(IY+offs) ; LD IYL,A ; 6F ; 7x LD (IY+offs),B LD (IY+offs),C LD (IY+offs),D LD (IY+offs),E LD (IY+offs),H LD (IY+offs),L ; 76 LD (IY+offs),A ; 78-7B ; LD A,IYH ; LD A,IYL LD A,(IY+offs) ; 7F ; 8x ; 80-83 ; ADD A,IYH ; ADD A,IYL ADD A,(IY+offs) ; 86-8B ; ADC A,IYH ; ADC A,IYL ADC A,(IY+offs) ; 8F ; 9x ; 90-93 ; SUB IYH ; SUB IYL SUB (IY+offs) ; 96-9B ; SBC A,IYH ; SBC A,IYL SBC A,(IY+offs) ; 9F ; Ax ; A0-A3 ; AND IYH ; AND IYL AND (IY+offs) ; A6-AB ; XOR IYH ; XOR IYL XOR (IY+offs) ; AF ; Bx ; B0-B3 ; OR IYH ; OR IYL OR (IY+offs) ; B6-BB ; CP IYH ; CP IYL CP (IY+offs) ; BF ; Cx ; FDCB prefix ; Dx ; Ex ; E0 POP IY ; E2 EX (SP),IY ; E4 PUSH IY ; E6-E8 JP (IY) ; EA-EF ; Fx ; F0-F8 LD SP,IY ; FA-FF ; DDCB prefix ; 0x ; RLC (IX+offs),B ; RLC (IX+offs),C ; RLC (IX+offs),D ; RLC (IX+offs),E ; RLC (IX+offs),H ; RLC (IX+offs),L RLC (IX+offs) ; 06 ; RLC (IX+offs),A ; RRC (IX+offs),B ; RRC (IX+offs),C ; RRC (IX+offs),D ; RRC (IX+offs),E ; RRC (IX+offs),H ; RRC (IX+offs),L RRC (IX+offs) ; 0E ; RRC (IX+offs),A ; 1x ; RL (IX+offs),B ; RL (IX+offs),C ; RL (IX+offs),D ; RL (IX+offs),E ; RL (IX+offs),H ; RL (IX+offs),L RL (IX+offs) ; 16 ; RL (IX+offs),A ; RR (IX+offs),B ; RR (IX+offs),C ; RR (IX+offs),D ; RR (IX+offs),E ; RR (IX+offs),H ; RR (IX+offs),L RR (IX+offs) ; 1E ; RR (IX+offs),A ; 2x ; SLA (IX+offs),B ; SLA (IX+offs),C ; SLA (IX+offs),D ; SLA (IX+offs),E ; SLA (IX+offs),H ; SLA (IX+offs),L SLA (IX+offs) ; 26 ; SLA (IX+offs),A ; SRA (IX+offs),B ; SRA (IX+offs),C ; SRA (IX+offs),D ; SRA (IX+offs),E ; SRA (IX+offs),H ; SRA (IX+offs),L SRA (IX+offs) ; 2E ; SRA (IX+offs),A ; 3x ; SLL (IX+offs),B ; SLL (IX+offs),C ; SLL (IX+offs),D ; SLL (IX+offs),E ; SLL (IX+offs),H ; SLL (IX+offs),L ; SLL (IX+offs) ; 36 ; SLL (IX+offs),A ; SRL (IX+offs),B ; SRL (IX+offs),C ; SRL (IX+offs),D ; SRL (IX+offs),E ; SRL (IX+offs),H ; SRL (IX+offs),L SRL (IX+offs) ; 3E ; SRL (IX+offs),A ; 4x ; BIT 0,(IX+offs) ; BIT 0,(IX+offs) ; BIT 0,(IX+offs) ; BIT 0,(IX+offs) ; BIT 0,(IX+offs) ; BIT 0,(IX+offs) BIT 0,(IX+offs) ; 46 ; BIT 0,(IX+offs) ; BIT 1,(IX+offs) ; BIT 1,(IX+offs) ; BIT 1,(IX+offs) ; BIT 1,(IX+offs) ; BIT 1,(IX+offs) ; BIT 1,(IX+offs) BIT 1,(IX+offs) ; 4E ; BIT 1,(IX+offs) ; 5x ; BIT 2,(IX+offs) ; BIT 2,(IX+offs) ; BIT 2,(IX+offs) ; BIT 2,(IX+offs) ; BIT 2,(IX+offs) ; BIT 2,(IX+offs) BIT 2,(IX+offs) ; 56 ; BIT 2,(IX+offs) ; BIT 3,(IX+offs) ; BIT 3,(IX+offs) ; BIT 3,(IX+offs) ; BIT 3,(IX+offs) ; BIT 3,(IX+offs) ; BIT 3,(IX+offs) BIT 3,(IX+offs) ; 5E ; BIT 3,(IX+offs) ; 6x ; BIT 4,(IX+offs) ; BIT 4,(IX+offs) ; BIT 4,(IX+offs) ; BIT 4,(IX+offs) ; BIT 4,(IX+offs) ; BIT 4,(IX+offs) BIT 4,(IX+offs) ; 66 ; BIT 4,(IX+offs) ; BIT 5,(IX+offs) ; BIT 5,(IX+offs) ; BIT 5,(IX+offs) ; BIT 5,(IX+offs) ; BIT 5,(IX+offs) ; BIT 5,(IX+offs) BIT 5,(IX+offs) ; 6E ; BIT 5,(IX+offs) ; 7x ; BIT 6,(IX+offs) ; BIT 6,(IX+offs) ; BIT 6,(IX+offs) ; BIT 6,(IX+offs) ; BIT 6,(IX+offs) ; BIT 6,(IX+offs) BIT 6,(IX+offs) ; 76 ; BIT 6,(IX+offs) ; BIT 7,(IX+offs) ; BIT 7,(IX+offs) ; BIT 7,(IX+offs) ; BIT 7,(IX+offs) ; BIT 7,(IX+offs) ; BIT 7,(IX+offs) BIT 7,(IX+offs) ; 7E ; BIT 7,(IX+offs) ; 8x ; RES 0,(IX+offs),B ; RES 0,(IX+offs),C ; RES 0,(IX+offs),D ; RES 0,(IX+offs),E ; RES 0,(IX+offs),H ; RES 0,(IX+offs),L RES 0,(IX+offs) ; 86 ; RES 0,(IX+offs),A ; RES 1,(IX+offs),B ; RES 1,(IX+offs),C ; RES 1,(IX+offs),D ; RES 1,(IX+offs),E ; RES 1,(IX+offs),H ; RES 1,(IX+offs),L RES 1,(IX+offs) ; 8E ; RES 1,(IX+offs),A ; 9x ; RES 2,(IX+offs),B ; RES 2,(IX+offs),C ; RES 2,(IX+offs),D ; RES 2,(IX+offs),E ; RES 2,(IX+offs),H ; RES 2,(IX+offs),L RES 2,(IX+offs) ; 96 ; RES 2,(IX+offs),A ; RES 3,(IX+offs),B ; RES 3,(IX+offs),C ; RES 3,(IX+offs),D ; RES 3,(IX+offs),E ; RES 3,(IX+offs),H ; RES 3,(IX+offs),L RES 3,(IX+offs) ; 9E ; RES 3,(IX+offs),A ; Ax ; RES 4,(IX+offs),B ; RES 4,(IX+offs),C ; RES 4,(IX+offs),D ; RES 4,(IX+offs),E ; RES 4,(IX+offs),H ; RES 4,(IX+offs),L RES 4,(IX+offs) ; A6 ; RES 4,(IX+offs),A ; RES 5,(IX+offs),B ; RES 5,(IX+offs),C ; RES 5,(IX+offs),D ; RES 5,(IX+offs),E ; RES 5,(IX+offs),H ; RES 5,(IX+offs),L RES 5,(IX+offs) ; AE ; RES 5,(IX+offs),A ; Bx ; RES 6,(IX+offs),B ; RES 6,(IX+offs),C ; RES 6,(IX+offs),D ; RES 6,(IX+offs),E ; RES 6,(IX+offs),H ; RES 6,(IX+offs),L RES 6,(IX+offs) ; B6 ; RES 6,(IX+offs),A ; RES 7,(IX+offs),B ; RES 7,(IX+offs),C ; RES 7,(IX+offs),D ; RES 7,(IX+offs),E ; RES 7,(IX+offs),H ; RES 7,(IX+offs),L RES 7,(IX+offs) ; BE ; RES 7,(IX+offs),A ; Cx ; SET 0,(IX+offs),B ; SET 0,(IX+offs),C ; SET 0,(IX+offs),D ; SET 0,(IX+offs),E ; SET 0,(IX+offs),H ; SET 0,(IX+offs),L SET 0,(IX+offs) ; C6 ; SET 0,(IX+offs),A ; SET 1,(IX+offs),B ; SET 1,(IX+offs),C ; SET 1,(IX+offs),D ; SET 1,(IX+offs),E ; SET 1,(IX+offs),H ; SET 1,(IX+offs),L SET 1,(IX+offs) ; CE ; SET 1,(IX+offs),A ; Dx ; SET 2,(IX+offs),B ; SET 2,(IX+offs),C ; SET 2,(IX+offs),D ; SET 2,(IX+offs),E ; SET 2,(IX+offs),H ; SET 2,(IX+offs),L SET 2,(IX+offs) ; D6 ; SET 2,(IX+offs),A ; SET 3,(IX+offs),B ; SET 3,(IX+offs),C ; SET 3,(IX+offs),D ; SET 3,(IX+offs),E ; SET 3,(IX+offs),H ; SET 3,(IX+offs),L SET 3,(IX+offs) ; DE ; SET 3,(IX+offs),A ; Ex ; SET 4,(IX+offs),B ; SET 4,(IX+offs),C ; SET 4,(IX+offs),D ; SET 4,(IX+offs),E ; SET 4,(IX+offs),H ; SET 4,(IX+offs),L SET 4,(IX+offs) ; E6 ; SET 4,(IX+offs),A ; SET 5,(IX+offs),B ; SET 5,(IX+offs),C ; SET 5,(IX+offs),D ; SET 5,(IX+offs),E ; SET 5,(IX+offs),H ; SET 5,(IX+offs),L SET 5,(IX+offs) ; EE ; SET 5,(IX+offs),A ; Fx ; SET 6,(IX+offs),B ; SET 6,(IX+offs),C ; SET 6,(IX+offs),D ; SET 6,(IX+offs),E ; SET 6,(IX+offs),H ; SET 6,(IX+offs),L SET 6,(IX+offs) ; F6 ; SET 6,(IX+offs),A ; SET 7,(IX+offs),B ; SET 7,(IX+offs),C ; SET 7,(IX+offs),D ; SET 7,(IX+offs),E ; SET 7,(IX+offs),H ; SET 7,(IX+offs),L SET 7,(IX+offs) ; FE ; SET 7,(IX+offs),A ; FDCB prefix ; 0x ; RLC (IY+offs),B ; RLC (IY+offs),C ; RLC (IY+offs),D ; RLC (IY+offs),E ; RLC (IY+offs),H ; RLC (IY+offs),L RLC (IY+offs) ; 06 ; RLC (IY+offs),A ; RRC (IY+offs),B ; RRC (IY+offs),C ; RRC (IY+offs),D ; RRC (IY+offs),E ; RRC (IY+offs),H ; RRC (IY+offs),L RRC (IY+offs) ; 0E ; RRC (IY+offs),A ; 1x ; RL (IY+offs),B ; RL (IY+offs),C ; RL (IY+offs),D ; RL (IY+offs),E ; RL (IY+offs),H ; RL (IY+offs),L RL (IY+offs) ; 16 ; RL (IY+offs),A ; RR (IY+offs),B ; RR (IY+offs),C ; RR (IY+offs),D ; RR (IY+offs),E ; RR (IY+offs),H ; RR (IY+offs),L RR (IY+offs) ; 1E ; RR (IY+offs),A ; 2x ; SLA (IY+offs),B ; SLA (IY+offs),C ; SLA (IY+offs),D ; SLA (IY+offs),E ; SLA (IY+offs),H ; SLA (IY+offs),L SLA (IY+offs) ; 26 ; SLA (IY+offs),A ; SRA (IY+offs),B ; SRA (IY+offs),C ; SRA (IY+offs),D ; SRA (IY+offs),E ; SRA (IY+offs),H ; SRA (IY+offs),L SRA (IY+offs) ; 2E ; SRA (IY+offs),A ; 3x ; SLL (IY+offs),B ; SLL (IY+offs),C ; SLL (IY+offs),D ; SLL (IY+offs),E ; SLL (IY+offs),H ; SLL (IY+offs),L ; SLL (IY+offs) ; 36 ; SLL (IY+offs),A ; SRL (IY+offs),B ; SRL (IY+offs),C ; SRL (IY+offs),D ; SRL (IY+offs),E ; SRL (IY+offs),H ; SRL (IY+offs),L SRL (IY+offs) ; 3E ; SRL (IY+offs),A ; 4x ; BIT 0,(IY+offs) ; BIT 0,(IY+offs) ; BIT 0,(IY+offs) ; BIT 0,(IY+offs) ; BIT 0,(IY+offs) ; BIT 0,(IY+offs) BIT 0,(IY+offs) ; 46 ; BIT 0,(IY+offs) ; BIT 1,(IY+offs) ; BIT 1,(IY+offs) ; BIT 1,(IY+offs) ; BIT 1,(IY+offs) ; BIT 1,(IY+offs) ; BIT 1,(IY+offs) BIT 1,(IY+offs) ; 4E ; BIT 1,(IY+offs) ; 5x ; BIT 2,(IY+offs) ; BIT 2,(IY+offs) ; BIT 2,(IY+offs) ; BIT 2,(IY+offs) ; BIT 2,(IY+offs) ; BIT 2,(IY+offs) BIT 2,(IY+offs) ; 56 ; BIT 2,(IY+offs) ; BIT 3,(IY+offs) ; BIT 3,(IY+offs) ; BIT 3,(IY+offs) ; BIT 3,(IY+offs) ; BIT 3,(IY+offs) ; BIT 3,(IY+offs) BIT 3,(IY+offs) ; 5E ; BIT 3,(IY+offs) ; 6x ; BIT 4,(IY+offs) ; BIT 4,(IY+offs) ; BIT 4,(IY+offs) ; BIT 4,(IY+offs) ; BIT 4,(IY+offs) ; BIT 4,(IY+offs) BIT 4,(IY+offs) ; 66 ; BIT 4,(IY+offs) ; BIT 5,(IY+offs) ; BIT 5,(IY+offs) ; BIT 5,(IY+offs) ; BIT 5,(IY+offs) ; BIT 5,(IY+offs) ; BIT 5,(IY+offs) BIT 5,(IY+offs) ; 6E ; BIT 5,(IY+offs) ; 7x ; BIT 6,(IY+offs) ; BIT 6,(IY+offs) ; BIT 6,(IY+offs) ; BIT 6,(IY+offs) ; BIT 6,(IY+offs) ; BIT 6,(IY+offs) BIT 6,(IY+offs) ; 76 ; BIT 6,(IY+offs) ; BIT 7,(IY+offs) ; BIT 7,(IY+offs) ; BIT 7,(IY+offs) ; BIT 7,(IY+offs) ; BIT 7,(IY+offs) ; BIT 7,(IY+offs) BIT 7,(IY+offs) ; 7E ; BIT 7,(IY+offs) ; 8x ; RES 0,(IY+offs),B ; RES 0,(IY+offs),C ; RES 0,(IY+offs),D ; RES 0,(IY+offs),E ; RES 0,(IY+offs),H ; RES 0,(IY+offs),L RES 0,(IY+offs) ; 86 ; RES 0,(IY+offs),A ; RES 1,(IY+offs),B ; RES 1,(IY+offs),C ; RES 1,(IY+offs),D ; RES 1,(IY+offs),E ; RES 1,(IY+offs),H ; RES 1,(IY+offs),L RES 1,(IY+offs) ; 8E ; RES 1,(IY+offs),A ; 9x ; RES 2,(IY+offs),B ; RES 2,(IY+offs),C ; RES 2,(IY+offs),D ; RES 2,(IY+offs),E ; RES 2,(IY+offs),H ; RES 2,(IY+offs),L RES 2,(IY+offs) ; 96 ; RES 2,(IY+offs),A ; RES 3,(IY+offs),B ; RES 3,(IY+offs),C ; RES 3,(IY+offs),D ; RES 3,(IY+offs),E ; RES 3,(IY+offs),H ; RES 3,(IY+offs),L RES 3,(IY+offs) ; 9E ; RES 3,(IY+offs),A ; Ax ; RES 4,(IY+offs),B ; RES 4,(IY+offs),C ; RES 4,(IY+offs),D ; RES 4,(IY+offs),E ; RES 4,(IY+offs),H ; RES 4,(IY+offs),L RES 4,(IY+offs) ; A6 ; RES 4,(IY+offs),A ; RES 5,(IY+offs),B ; RES 5,(IY+offs),C ; RES 5,(IY+offs),D ; RES 5,(IY+offs),E ; RES 5,(IY+offs),H ; RES 5,(IY+offs),L RES 5,(IY+offs) ; AE ; RES 5,(IY+offs),A ; Bx ; RES 6,(IY+offs),B ; RES 6,(IY+offs),C ; RES 6,(IY+offs),D ; RES 6,(IY+offs),E ; RES 6,(IY+offs),H ; RES 6,(IY+offs),L RES 6,(IY+offs) ; B6 ; RES 6,(IY+offs),A ; RES 7,(IY+offs),B ; RES 7,(IY+offs),C ; RES 7,(IY+offs),D ; RES 7,(IY+offs),E ; RES 7,(IY+offs),H ; RES 7,(IY+offs),L RES 7,(IY+offs) ; BE ; RES 7,(IY+offs),A ; Cx ; SET 0,(IY+offs),B ; SET 0,(IY+offs),C ; SET 0,(IY+offs),D ; SET 0,(IY+offs),E ; SET 0,(IY+offs),H ; SET 0,(IY+offs),L SET 0,(IY+offs) ; C6 ; SET 0,(IY+offs),A ; SET 1,(IY+offs),B ; SET 1,(IY+offs),C ; SET 1,(IY+offs),D ; SET 1,(IY+offs),E ; SET 1,(IY+offs),H ; SET 1,(IY+offs),L SET 1,(IY+offs) ; CE ; SET 1,(IY+offs),A ; Dx ; SET 2,(IY+offs),B ; SET 2,(IY+offs),C ; SET 2,(IY+offs),D ; SET 2,(IY+offs),E ; SET 2,(IY+offs),H ; SET 2,(IY+offs),L SET 2,(IY+offs) ; D6 ; SET 2,(IY+offs),A ; SET 3,(IY+offs),B ; SET 3,(IY+offs),C ; SET 3,(IY+offs),D ; SET 3,(IY+offs),E ; SET 3,(IY+offs),H ; SET 3,(IY+offs),L SET 3,(IY+offs) ; DE ; SET 3,(IY+offs),A ; Ex ; SET 4,(IY+offs),B ; SET 4,(IY+offs),C ; SET 4,(IY+offs),D ; SET 4,(IY+offs),E ; SET 4,(IY+offs),H ; SET 4,(IY+offs),L SET 4,(IY+offs) ; E6 ; SET 4,(IY+offs),A ; SET 5,(IY+offs),B ; SET 5,(IY+offs),C ; SET 5,(IY+offs),D ; SET 5,(IY+offs),E ; SET 5,(IY+offs),H ; SET 5,(IY+offs),L SET 5,(IY+offs) ; EE ; SET 5,(IY+offs),A ; Fx ; SET 6,(IY+offs),B ; SET 6,(IY+offs),C ; SET 6,(IY+offs),D ; SET 6,(IY+offs),E ; SET 6,(IY+offs),H ; SET 6,(IY+offs),L SET 6,(IY+offs) ; F6 ; SET 6,(IY+offs),A ; SET 7,(IY+offs),B ; SET 7,(IY+offs),C ; SET 7,(IY+offs),D ; SET 7,(IY+offs),E ; SET 7,(IY+offs),H ; SET 7,(IY+offs),L SET 7,(IY+offs) ; FE ; SET 7,(IY+offs),A end
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_93_73.asm
ljhsiun2/medusa
9
93759
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r14 push %r9 push %rax push %rdi push %rsi // Faulty Load lea addresses_US+0x8d91, %rdi xor $22240, %rax movb (%rdi), %r9b lea oracles, %rax and $0xff, %r9 shlq $12, %r9 mov (%rax,%r9,1), %r9 pop %rsi pop %rdi pop %rax pop %r9 pop %r14 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_US', 'same': True, 'size': 16, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_US', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'00': 93} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
Relatorios/Tarefa 07/Resolucao/codigo/programa16.asm
RafaelAmauri/Arquitetura-de-Computadores-2
0
86045
<reponame>RafaelAmauri/Arquitetura-de-Computadores-2<filename>Relatorios/Tarefa 07/Resolucao/codigo/programa16.asm .text .globl main main: lui $t0, 0x1001 addi $t0, $t0, 0x0000 #|1001|0000| lw $s0, 0($t0) #s0 = x lw $s1, 4($t0) #s1 = y lw $s2, 8($t0) #s2 = z div $s0, $s2 #x/z mflo $t1 #t1 = x/z mult $t1, $s1 #t1*y mflo $t1 #t1 = t1*y .data x:.word 0x186A00 y:.word 0x13880 z:.word 0x61A80
programs/oeis/056/A056487.asm
neoneye/loda
22
98683
<filename>programs/oeis/056/A056487.asm ; A056487: a(n) = 5^(n/2) for n even, a(n) = 3*5^((n-1)/2) for n odd. ; 1,3,5,15,25,75,125,375,625,1875,3125,9375,15625,46875,78125,234375,390625,1171875,1953125,5859375,9765625,29296875,48828125,146484375,244140625,732421875,1220703125,3662109375,6103515625,18310546875,30517578125,91552734375 mul $0,2 add $0,3 seq $0,224251 ; Numbers, a(n) where binomial(a(n), 5n-1) == 0 (mod 5) and binomial(a(n), k) != 0 (mod 5) for k != 5n - 1. div $0,10 mul $0,4 div $0,10 add $0,1
Library/SpecUI/CommonUI/CView/cviewScrollbarSelect.asm
steakknife/pcgeos
504
92726
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1990 -- All Rights Reserved GEOWORKS CONFIDENTIAL PROJECT: GEOS MODULE: CommonUI/CView FILE: cviewScrollbarSelect.asm ROUTINES: Name Description ---- ----------- ?? INT OLScrollbarStartPress Starts a scrollbar press ?? INT OLScrollbarEndPress Starts a scrollbar press ?? INT HandlePress Handles a single press. Can be called either by the user pressing or if the window is done redrawing and the user is still pressing. ?? INT DrawIfNotXoring Redraws things if we're not currently doing an xor. ?? INT ShouldWeScroll? Figures out if we should scroll the window on this action. ?? INT StartScrollbarTimer Starts a timer. ?? INT CancelScrollbarTimer Cancels any timer that's currently going. INT DoScrollCriteria See what the mouse situation is. Sees if mouse is pressed and figures out what was pressed on if so. INT DoScrollCriteria See what the mouse situation is. Sees if mouse is pressed and figures out what was pressed on if so. INT DoScrollCriteria See what the mouse situation is. Sees if mouse is pressed and figures out what was pressed on if so. ?? INT FSDoScrollCriteria Do scroll criteria for floating scrollers. INT DoScrollAction Takes action if the mouse is down. Actions differ depending on who was pressed. INT DoIncDown Does an incremental downward scroll. ?? INT DoIncUp Handles incrementing up scrollbar. ?? INT ValueSendMsg Handles incrementing up scrollbar. ?? INT DoPageDown Pages down the scrollbar. ?? INT SetIfSlider Pages down the scrollbar. ?? INT DoPageUp Pages up the scrollbar. GLB DoEndAnchor Goes to start of scrollbar. Does nothing in motif. GLB DoBegAnchor Goes to start of scrollbar. Does nothing in motif. ?? INT DoDragArea Drags the document to new location. ?? INT FinishDrag Finishes dragging. ?? INT HandleDragXor Handles the xor region when a-draggin. ?? INT XorElevator Draws a new xor-ed rectangle. REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 2/90 Broken off from regular scrollbar. DESCRIPTION: $Id: cviewScrollbarSelect.asm,v 1.2 98/03/11 06:03:10 joon Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ScrollbarCommon segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OLScrollbarSelect %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Process current ptr & function state to determine whether a button should be up or down CALLED BY: MSG_META_START_SELECT PASS: *ds:si - object cx, dx - ptr position (x, y) bp low - ButtonInfo (In input.def) mask BI_PRESS - set if press mask BI_DOUBLE_PRESS - set if double-press mask BI_B3_DOWN - state of button 3 mask BI_B2_DOWN - state of button 2 mask BI_B1_DOWN - state of button 1 mask BI_B0_DOWN - state of button 0 mask BI_BUTTON - for non-PTR events, is physical button which has caused this event to be generated. bp high - UIFunctionsActive (In Objects/uiInputC.def) RETURN: ax = 0 if ptr not in button, mask MRF_PROCESSED if ptr is inside DESTROYED: ax, cx, dx, bp PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: Motif version doesn't have an xor'ed region for the thumb. REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 5/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ NO_XOR_ELEVATOR = -1 ;used in OLSBI_xorElevOff if _CUA_STYLE ;START of MOTIF/ISUI/CUA specific code ----- OLScrollbarSelect method OLScrollbarClass, MSG_META_START_SELECT, \ MSG_META_END_SELECT, \ MSG_META_PTR mov di, ds:[si] add di, ds:[di].Gen_offset test ds:[di].GI_attrs, mask GA_READ_ONLY LONG jnz processed cmp ax, MSG_META_START_SELECT jne noSound call OpenDoClickSound noSound: ; ; Adjust mouse position to be offset into width of scrollbar in dx, ; offset along length of scrollbar from top of scroll area in cx. ; mov di, ds:[si] push di ;save pointer to instance add di, ds:[di].Vis_offset sub dx, ds:[di].VI_bounds.R_top ;make dx offset from top sub cx, ds:[di].VI_bounds.R_left ;and cx offset from left if SLIDER_INCLUDES_VALUES and DRAW_STYLES ; ; for sliders, adjust bounds for draw style inset ; test ds:[di].OLSBI_attrs, mask OLSA_SLIDER jz notSlider cmp ds:[di].OLSBI_drawStyle, DS_FLAT je notSlider sub dx, DRAW_STYLE_INSET_WIDTH sub cx, DRAW_STYLE_INSET_WIDTH test ds:[di].OLSBI_attrs, mask OLSA_READ_ONLY jz notSlider ; thin inset for gauge add dx, DRAW_STYLE_INSET_WIDTH-DRAW_STYLE_THIN_INSET_WIDTH add cx, DRAW_STYLE_INSET_WIDTH-DRAW_STYLE_THIN_INSET_WIDTH notSlider: endif pop di ;get back pointer to instance add di, ds:[di].Vis_offset ;ds:di = SpecificInstance call SwapIfHorizontal ;swap if horizontal if FLOATING_SCROLLERS ; ; We can pretty much dispense with most of the code that ; follows, unless we're a slider or GenValue scroller. ; test ds:[di].OLSBI_attrs, mask OLSA_SLIDER or mask OLSA_TWISTED jz doneOffsets endif ; ; Make dx relative to start of scroll area. Act horizontal. ; MO < clr ax > if SLIDER_INCLUDES_VALUES ; ; no arrow for gauges only ; test ds:[di].OLSBI_attrs, mask OLSA_SLIDER jz haveArrow test ds:[di].OLSBI_attrs, mask OLSA_READ_ONLY jnz 5$ haveArrow: else MO < test ds:[di].OLSBI_attrs, mask OLSA_SLIDER > MO < jnz 5$ > endif NOT_MO< mov ax, MO_SCR_AREA_MARGIN ;assume a normal scrollbar> ISU< mov ax, MO_SCR_AREA_MARGIN ;assume a normal scrollbar> MO< mov ax, ds:[di].OLSBI_arrowSize > if _MOTIF ARROWSHADOW < add ax, 3 > NOARROWSHADOW < add ax, 2 > endif ;_MOTIF 5$: MO < test ds:[di].OLSBI_attrs, mask OLSA_TWISTED > MO < jz 10$ ;not twisted, branch > MO < mov ax, ds:[di].OLSBI_arrowSize ;else use width > MO < inc ax > MO < xchg cx, dx ;swap these back > MO <10$: > ISU < test ds:[di].OLSBI_attrs, mask OLSA_TWISTED > ISU < jz 10$ ;not twisted, branch > ISU < mov ax, NUI_SPIN_ARROW_HEIGHT+2 ;else use height > ISU <10$: > sub dx, ax ;dx <- offset along scrollbar doneOffsets:: ; ; If this is a release, always do the release, regardless of ; whether the scrollbar is scrollable! We don't want to get caught ; with the scrollbar becoming not scrollable between a press and a ; release. 6/ 5/94 cbh ; test bp, (mask UIFA_SELECT) shl 8 jz release ;if not, then release grab, etc. ; ; If Doc range is less than winLen, ignore everything. Always handle ; presses if stupid, or if there's no thumb. ; test ds:[di].OLSBI_attrs, mask OLSA_STUPID jnz skipCheck ;always handle presses if stupid MO < cmp ds:[di].OLSBI_elevOffset, NO_THUMB_ELEV_OFFSET > ISU < cmp ds:[di].OLSBI_elevOffset, NO_THUMB_ELEV_OFFSET > je skipCheck push cx mov cx, ds:[di].OLSBI_elevLen cmp cx, ds:[di].OLSBI_scrArea pop cx jz processed ;exit if nothing to scroll skipCheck: call OLScrollbarStartPress ;start a press jmp short exit release: ;user is really releasing mov di, ds:[si] add di, ds:[di].Vis_offset clr ds:[di].OLSBI_startState ;no more start state call CancelScrollbarTimer ;turn off timer call VisReleaseMouse ;Release the mouse offScrollbar: ;user has moved off scrollbar call OLScrollbarEndPress ; jmp short exit processed: ;if enter/leave of button mov ax, mask MRF_PROCESSED or mask MRF_CLEAR_POINTER_IMAGE ;Say processed if ptr in bounds exit: ret OLScrollbarSelect endm endif ;END of MOTIF/ISUI/CUA specific code -------------------- COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OLScrollbarLostGadgetExcl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Turn off scrollbar timer, etc. CALLED BY: MSG_VIS_LOST_GADGET_EXCL PASS: *ds:si - instance data es - segment of MetaClass ax - MSG_VIS_LOST_GADGET_EXCL RETURN: nothing DESTROYED: ax, cx, dx, bp PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 6/ 8/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OLScrollbarLostGadgetExcl method OLScrollbarClass, \ MSG_VIS_LOST_GADGET_EXCL CUAS < call CancelScrollbarTimer ;turn off timer > CUAS < call VisReleaseMouse ;Release the mouse > call OLScrollbarEndPress ;stop drag ret OLScrollbarLostGadgetExcl endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OLScrollbarStartPress %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Starts a scrollbar press CALLED BY: OLScrollbarSelect PASS: *ds:si -- scrollbar cx, dx - ptr position (x, y) RETURN: ax -- processed flags DESTROYED: bx, cx, dx, bp, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 6/ 8/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _CUA_STYLE OLScrollbarStartPress proc near ; ; If we're moving into the scrollbar, and never clicked in the scrollbar ; then forget about grabbing the mouse. We'll ignore the event. 8/7/90 ; test bp, mask BI_PRESS ;see if a new mouse press jnz 10$ ;branch if so mov di, ds:[si] add di, ds:[di].Vis_offset tst ds:[di].OLSBI_startState ;was anything ever pressed? mov ax, mask MRF_REPLAY ;assume not, we don't want event LONG jz exit ;nothing pressed, exit 10$: ; ; Make sure scrollbar has some something depressed, and that we ; have the grab, and that a function is being called for the ; depressed item. ; push cx, dx, bp ;Save mouse position mov cx, ds:[0] ;Take the gadget exclusive mov dx, si mov ax, MSG_VIS_TAKE_GADGET_EXCL call VisCallParent pop cx, dx, bp ; ; Grab the mouse if a new down press: ; al <- DoScrollCriteria ; if al is null, goto offScrollbar ; bl <- OLSBI_state & OLSS_DOWN_FLAGS ; if (OLSBI_startState == 0) ;new press ; store al in OLSBI_startState ; goto changeState ; else ; if (OLSBI_startState <> OLSS_DRAG_AREA) ; and (al != OLSBI_startState) ; goto offScrollbar ; else ; if al == bl ; goto stillDown ; else if OLSBI_startState ; goto changeState ; mov di, ds:[si] add di, ds:[di].Vis_offset call DoScrollCriteria ;al <- where press was made tst al ;anything pressed? if SPINNER_GEN_VALUE ; ; stop timer if no action ; jnz haveAction test ds:[di].OLSBI_attrs, mask OLSA_SPINNER jz skipStopTimer call CancelScrollbarTimer skipStopTimer: jmp OLScrollbarEndPress haveAction: else LONG jz OLScrollbarEndPress ;no, handle mouse up endif mov bl, ds:[di].OLSBI_state ;get current state and bl, mask OLSS_DOWN_FLAGS ;just look at down flags test bp, mask BI_PRESS ;see if a new mouse press jz ptrEvent ;branch if not mov ds:[di].OLSBI_startState, al ;else store as start state mov ds:[di].OLSBI_xorElevOff, NO_XOR_ELEVATOR jmp short changeState ;and go change states ptrEvent: cmp ds:[di].OLSBI_startState, OLSS_DRAG_AREA ;different code for jne nonDrag ; drag area cmp bl, al ;let's keep original offsets je stillDown ; to the elevator jmp short setState ; nonDrag: cmp al, ds:[di].OLSBI_startState ;original gadget still pressed? jne OLScrollbarEndPress ;nope, branch to de-highlight dragEvent:: cmp bl, al ;see if still down on same part je stillDown ;yes, go process it changeState: ; ; We need to start doing something. ; mov ds:[di].OLSBI_clickXOff,cx ;save offset to width mov bx, dx sub bx, ds:[di].OLSBI_elevOffset ;subtract offset to elevator mov ds:[di].OLSBI_clickYOff, bx ;and save setState: mov bl, ds:[di].OLSBI_state ;get other state flags and bl, not mask OLSS_DOWN_FLAGS ;and off old down flags mov al, ds:[di].OLSBI_startState ;get start state back or al, bl ;or in new down flags mov ds:[di].OLSBI_state, al ;and store and al, mask OLSS_DOWN_FLAGS ;just look at down flags cmp al, OLSS_DRAG_AREA ;if dragging, don't invalidate je grabMouse or ds:[di].OLSBI_state, mask OLSS_INVALID_IMAGE grabMouse: call VisGrabMouse ;Grab the mouse jmp short handlePress stillDown: mov di, ds:[si] add di, ds:[di].Vis_offset mov al, ds:[di].OLSBI_startState and al, mask OLSS_DOWN_FLAGS cmp al, OLSS_DRAG_AREA jne processed handlePress: call HandlePress ;handle the press processed: ;if enter/leave of button mov ax, mask MRF_PROCESSED or mask MRF_CLEAR_POINTER_IMAGE exit: ;Say processed if ptr in bounds ret OLScrollbarStartPress endp endif ; _CUA_STYLE COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OLScrollbarEndPress %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Starts a scrollbar press CALLED BY: OLScrollbarSelect PASS: *ds:si -- scrollbar cx, dx - ptr position (x, y) RETURN: ax -- processed flags DESTROYED: bx, cx, dx, bp, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 6/ 8/90 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _CUA_STYLE OLScrollbarEndPress proc near mov di, ds:[si] add di, ds:[di].Vis_offset ;ds:di = SpecificInstance CUAS < call FinishDrag ;finish up drag > CUAS < jc noChange ;if we were dragging, exit> ;See if already up mov di, ds:[si] add di, ds:[di].Vis_offset test ds:[di].OLSBI_state, mask OLSS_DOWN_FLAGS LONG jz noChange ;if up, OK, done ;ELSE need to change state ; ; Make sure scrollbar is released. ; mov di, ds:[si] add di, ds:[di].Vis_offset ;ds:di = SpecificInstance mov al, ds:[di].OLSBI_state ;get current state and al, mask OLSS_DOWN_FLAGS ;just look at down flags ; ; Clear down flags and invalidate image if necessary. ; cmp al, OLSS_DRAG_AREA ;don't invalidate on drags je clearDownFlags or ds:[di].OLSBI_state, mask OLSS_INVALID_IMAGE clearDownFlags: and ds:[di].OLSBI_state, not (mask OLSS_DOWN_FLAGS) call OpenDrawObject ;redraw the scrollbar if FLOATING_SCROLLERS test ds:[di].OLSBI_attrs, mask OLSA_SLIDER or mask OLSA_TWISTED jnz afterUpdate mov ax, MSG_SPEC_VIEW_UPDATE_FLOATING_SCROLLERS clr cx ;don't close windows call VisCallParent afterUpdate: endif releaseMouse: mov ax, mask MRF_REPLAY ;Replay this, since we didn't jmp short exit ; want it. noChange: clr ax test bp, (mask UIFA_IN) shl 8 ;is point in bounds? jz exit ;if not, skip OLSS_processed: ;if enter/leave of button mov ax, mask MRF_PROCESSED or mask MRF_CLEAR_POINTER_IMAGE exit: ;Say processed if ptr in bounds ret OLScrollbarEndPress endp endif ; _CUA_STYLE COMMENT @---------------------------------------------------------------------- ROUTINE: HandlePress SYNOPSIS: Handles a single press. Can be called either by the user pressing or if the window is done redrawing and the user is still pressing. CALLED BY: OLScrollbarSelect, OLScrollbarWinUpdateComplete PASS: *ds:si -- handle of scrollbar cx, dx -- offset along width, length of scrollbar bp -- OLButtonFlags RETURN: nothing DESTROYED: ax,bx,cx,dx,di,bp PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: Nobody really handles Oregon State's press very well, and sadly, this routine is no exception. REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 7/19/89 Initial version ------------------------------------------------------------------------------@ HandlePress proc near push cx, dx, bp ;save mouse position call DoScrollAction ;and do an action call ShouldWeScroll? ;see if we need a timer jz 10$ ;nah, blow it off call StartScrollbarTimer ;start a timer up 10$: pop cx, dx, bp call DrawIfNotXoring ;else update visual if FLOATING_SCROLLERS mov di, ds:[si] add di, ds:[di].Vis_offset test ds:[di].OLSBI_attrs, mask OLSA_SLIDER or mask OLSA_TWISTED jnz afterUpdate mov ax, MSG_SPEC_VIEW_UPDATE_FLOATING_SCROLLERS clr cx ;don't close windows call VisCallParent afterUpdate: endif ret HandlePress endp COMMENT @---------------------------------------------------------------------- ROUTINE: DrawIfNotXoring SYNOPSIS: Redraws things if we're not currently doing an xor. CALLED BY: RedrawAndRescroll PASS: ds:di -- scrollbar instance RETURN: nothing DESTROYED: ax, bx, cx, dx, bp, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 6/ 6/90 Initial version ------------------------------------------------------------------------------@ DrawIfNotXoring proc near if _CUA_STYLE test bp, mask BI_PRESS ;always draw on presses jnz 10$ mov di, ds:[si] add di, ds:[di].Vis_offset cmp ds:[di].OLSBI_xorElevOff, NO_XOR_ELEVATOR jne exit ;xor drawn, don't redrar 10$: endif call OpenDrawObject exit: ret DrawIfNotXoring endp COMMENT @---------------------------------------------------------------------- ROUTINE: ShouldWeScroll? SYNOPSIS: Figures out if we should scroll the window on this action. CALLED BY: RedrawAndRescroll PASS: *ds:si -- handle bp -- mouse flags, apparently... RETURN: zero flag set if we shouldn't DESTROYED: di, ax, bp PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 6/ 6/90 Initial version ------------------------------------------------------------------------------@ ShouldWeScroll? proc near mov di, ds:[si] add di, ds:[di].Vis_offset mov al, ds:[di].OLSBI_state ;get current state and al, mask OLSS_DOWN_FLAGS ;keep drawn down bits cmp al, OLSS_DRAG_AREA ;in the drag area? jne exit ;no, return true test bp, mask BI_PRESS ;see if press exit: ret ShouldWeScroll? endp COMMENT @---------------------------------------------------------------------- ROUTINE: StartScrollbarTimer SYNOPSIS: Starts a timer. CALLED BY: HandlePress PASS: *ds:si -- scrollbar handle RETURN: nothing DESTROYED: cx, dx, bp, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 6/ 5/90 Initial version ------------------------------------------------------------------------------@ StartScrollbarTimer proc near mov di, ds:[si] add di, ds:[di].Vis_offset test ds:[di].OLSBI_attrs, mask OLSA_STUPID jnz exit ;stupid, no timer please! or ds:[di].OLSBI_optFlags, mask OLSOF_REPEAT_SCROLL_PENDING \ or mask OLSOF_TIMER_EXPIRED_PENDING mov dx, si ;now pass ^lcx:dx 10/29/90 cbh mov cx, ds:[LMBH_handle] mov ax, MSG_OL_APP_STOP_TIMER call GenCallApplication ;turn timer off, if any mov dx, si mov cx, ds:[LMBH_handle] clr bp ;use standard system time mov ax, MSG_OL_APP_START_TIMER call GenCallApplication exit:: ret StartScrollbarTimer endp COMMENT @---------------------------------------------------------------------- ROUTINE: CancelScrollbarTimer SYNOPSIS: Cancels any timer that's currently going. CALLED BY: OLScrollbarSelect PASS: *ds:si -- scrollbar RETURN: nothing DESTROYED: di, ax PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 6/ 5/90 Initial version ------------------------------------------------------------------------------@ CancelScrollbarTimer proc near mov di, ds:[si] add di, ds:[di].Vis_offset test ds:[di].OLSBI_attrs, mask OLSA_STUPID jnz exit ;stupid, no timer please! test ds:[di].OLSBI_optFlags, mask OLSOF_REPEAT_SCROLL_PENDING \ or mask OLSOF_TIMER_EXPIRED_PENDING jz exit ;nothin' goin', branch and ds:[di].OLSBI_optFlags, not (mask OLSOF_REPEAT_SCROLL_PENDING \ or mask OLSOF_TIMER_EXPIRED_PENDING) push cx, dx, bp mov dx, si ;now pass ^lcx:dx 10/29/90 cbh mov cx, ds:[LMBH_handle] mov ax, MSG_OL_APP_STOP_TIMER ;stop the timer if running call GenCallApplication DoPop bp, dx, cx exit: ret CancelScrollbarTimer endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DoScrollCriteria %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: See what the mouse situation is. Sees if mouse is pressed and figures out what was pressed on if so. CALLED BY: INTERNAL PASS: ds:di -- pointer to specific instance data bp -- mouse information cx -- mouse position along width of scrollbar dx -- mouse position along length of scrollbar RETURN: cx -- width offset of mouse click dx -- length offset al -- flag to store in OLSS_DOWN_FLAGS, or zero if nothing selected. DESTROYED: nothing if SPINNER_GEN_VALUE ah endif PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 12/13/88 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if _MOTIF DoScrollCriteria proc near class OLScrollbarClass if SPINNER_GEN_VALUE uses bx, cx, bp else uses bx, cx, si, bp ; save these endif .enter if FLOATING_SCROLLERS test ds:[di].OLSBI_attrs, mask OLSA_SLIDER or mask OLSA_TWISTED jnz notFloater ; ; Figure out whether we were clicked in the up-arrow or ; in the down-arrow. ; call FSDoScrollCriteria jmp returnValueOK notFloater: endif ; ; Have bx hold the height of the arrow (as viewed vertically) and bp ; holds the width. Twisted scrollbars have these rotated. ; mov bx, ds:[di].OLSBI_arrowSize mov bp, bx if SPINNER_GEN_VALUE ; ; for vertical spinners, width is full width of the spinner ; test ds:[di].OLSBI_attrs, mask OLSA_SPINNER jz notVSpinner test ds:[di].OLSBI_attrs, mask OLSA_VERTICAL jz notVSpinner mov bp, ds:[di].VI_bounds.R_right sub bp, ds:[di].VI_bounds.R_left sub bp, DRAW_STYLE_FRAME_WIDTH*2 ; adjust for frame cmp ds:[di].OLSBI_drawStyle, DS_FLAT je notVSpinner sub bp, DRAW_STYLE_INSET_WIDTH*2 ; adjust for inset notVSpinner: endif add bx, 2 test ds:[di].OLSBI_attrs, mask OLSA_TWISTED jz 10$ ;not twisted, branch xchg bx, bp ;else rotate 10$: if SPINNER_GEN_VALUE push si ; save scrollbar endif clr al inc dx ;make relative to bottom of ; up arrow, temporarily ; ; If the mouse is outside of the selectable area (the scrollbar plus ; some extra leeway around it), exit with al = 0. ; cmp cx, -SCROLLBAR_LATITUDE jl exit ; mov si, bp ;si <- width + latitude add si, SCROLLBAR_LATITUDE cmp cx, si ;see if within width jg exit mov si, bx ;si <- (-height + latitude) add si, SCROLLBAR_LATITUDE neg si cmp dx, si ;see if within height jl exit ; ; If the mouse is in the leeway area, exit with al = OLSS_BOGUS, ; indicating that nothing is selected. ; ; Start comparing the position to different parts of the scrollbar. ; mov al, OLSS_INC_UP ;assume in up arrow tst dx ;in up arrow? js exit ;yes, branch tst dx ;if in grey area between up jz 30$ ; arrow and scroll area, don't ; decrement back -- treat ; as in scroll area dec dx ;make relative to start of 30$: ; scroll area from now on mov cx,ds:[di].OLSBI_elevOffset ;get offset to thumb tst cx jns pageUp ;there's a thumb, branch clr cx ;else clear cx test ds:[di].OLSBI_attrs, mask OLSA_TWISTED jz pageDown ;not twisted, check for page ; down (nothing happens if so) jmp short incDown ;twisted, skip page-down. pageUp: mov al, OLSS_PAGE_UP ;else assume in page up area cmp dx, cx ; jb exit ;yes, branch mov al, OLSS_DRAG_AREA ;assume in drag area add cx, ds:[di].OLSBI_elevLen ;see if in drag area cmp dx, cx jb exit ;yes, branch pageDown: mov al, OLSS_PAGE_DOWN ;assume in lower page area mov cx, ds:[di].OLSBI_scrArea ;get bottom of scroll area cmp dx, cx ;see if in scroll area jbe exit ;yes, branch incDown: mov al, OLSS_INC_DOWN ;assume we're in down arrow mov si, bx ;si <- arrowHeight + 1 mov cx, ds:[di].OLSBI_scrArea ;get bottom of scroll area tst cx jns 90$ clr cx ;scroll area negative? branch. 90$: add cx, si ;get to bottom of arrow cmp dx, cx ;are we in the arrow? jbe exit ;we are, exit add cx, SCROLLBAR_LATITUDE ;see if in scrollbar cmp dx, cx jbe exit ;we are, branch clr al ;else we're nowhere exit: if SPINNER_GEN_VALUE ; ; if we are a spinner, only allow inc-up and inc-down ; pop si ; *ds:si = scrollbar test ds:[di].OLSBI_attrs, mask OLSA_SPINNER jz notSpinner cmp al, OLSS_INC_UP je checkSpinnerAction cmp al, OLSS_INC_DOWN jne returnNoSpinnerAction checkSpinnerAction: call CheckSpinnerAtEnd jne returnValueOK returnNoSpinnerAction: clr al jmp short returnValueOK notSpinner: endif ; ; If there's no thumb, and we pressed in the page area, let's forget ; about doing anything. -cbh 2/26/93 ; tst ds:[di].OLSBI_elevOffset ;see if there's a thumb jns returnValueOK cmp al, OLSS_PAGE_DOWN jne returnValueOK clr al returnValueOK: .leave ret DoScrollCriteria endp endif ; _MOTIF if _ISUI DoScrollCriteria proc near class OLScrollbarClass push bx, bp, cx, si ;save these ; ; Have bx hold the height of the arrow (as viewed vertically) and bp ; holds the width. Twisted scrollbars have these rotated. ; mov bx, MO_ARROW_HEIGHT ;assume a normal scrollbar mov bp, MO_ARROW_WIDTH+1 test ds:[di].OLSBI_attrs, mask OLSA_VERTICAL ;see if horizontal jnz 5$ ;no, branch call OpenMinimizeIfCGA ;check if on CGA jnc 5$ ;no, branch sub bp, MO_ARROW_WIDTH - CGA_HORIZ_ARROW_WIDTH 5$: test ds:[di].OLSBI_attrs, mask OLSA_TWISTED jz 10$ ;not twisted, branch mov bx, NUI_SPIN_ARROW_HEIGHT+2 inc bp ;SPIN_ARROW is 1 pixel wider 10$: mov al, OLSS_DRAG_AREA inc dx ;make relative to bottom of ; up arrow, temporarily ; ; If the mouse is outside of the selectable area, ; exit with al = OLSS_DRAG_AREA. ; tst cx jl exit ; cmp cx, bp ;see if within width jg exit mov si, bx ;si <- (-height) neg si cmp dx, si ;see if within height jl exit ; ; Start comparing the position to different parts of the scrollbar. ; mov al, OLSS_INC_UP ;assume in up arrow tst dx ;in up arrow? js exit ;yes, branch tst dx ;if in grey area between up jz 30$ ; arrow and scroll area, don't ; decrement back -- treat ; as in scroll area dec dx ;make relative to start of 30$: ; scroll area from now on mov cx,ds:[di].OLSBI_elevOffset ;get offset to thumb tst cx jns pageUp ;there's a thumb, branch clr cx ;else clear cx jmp downArrow ;and check down arrow pageUp: mov al, OLSS_PAGE_UP ;else assume in page up area cmp dx, cx ; jb exit ;yes, branch mov al, OLSS_DRAG_AREA ;assume in drag area add cx, ds:[di].OLSBI_elevLen ;see if in drag area cmp dx, cx jb exit ;yes, branch mov al, OLSS_PAGE_DOWN ;assume in lower page area mov cx, ds:[di].OLSBI_scrArea ;get bottom of scroll area cmp dx, cx ;see if in scroll area jbe exit ;yes, branch downArrow: mov al, OLSS_INC_DOWN ;assume we're in down arrow mov si, bx ;si <- arrowHeight + 1 mov cx, ds:[di].OLSBI_scrArea ;get bottom of scroll area tst cx jns 90$ clr cx ;scroll area negative? branch. 90$: add cx, si ;get to bottom of arrow cmp dx, cx ;are we in the arrow? jbe exit ;we are, exit mov al, OLSS_DRAG_AREA exit: pop bx, bp, cx, si ;restore these ret DoScrollCriteria endp endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CheckSpinnerAtEnd %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: check if spinner is at either end of range CALLED BY: INTERNAL DoScrollCriteria PASS: *ds:si = scrollbar (spinner) ds:di = scrollbar spec instance al = DownFlags OLSS_INC_UP OLSS_INC_DOWN RETURN: Z set if at end of range DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 8/27/96 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if SPINNER_GEN_VALUE CheckSpinnerAtEnd proc near uses ax, bx, cx, dx, bp, di .enter mov ah, ds:[di].OLSBI_attrs.low mov di, ds:[si] add di, ds:[di].Gen_offset cmp al, OLSS_INC_UP movdw cxdx, ds:[di].GVLI_maximum movdw bxbp, ds:[di].GVLI_minimum je checkSpinnerValue EC < cmp al, OLSS_INC_DOWN > EC < ERROR_NE OL_ERROR > movdw cxdx, ds:[di].GVLI_minimum movdw bxbp, ds:[di].GVLI_maximum checkSpinnerValue: test ah, mask OLSA_VERTICAL jnz haveEndValue movdw cxdx, bxbp ; else, get other end haveEndValue: cmpdw cxdx, ds:[di].GVLI_value .leave ret CheckSpinnerAtEnd endp endif ; SPINNER_GEN_VALUE COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FSDoScrollCriteria %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Do scroll criteria for floating scrollers. CALLED BY: DoScrollCriteria PASS: ds:di -- pointer to specific instance data *ds:si -- scroller object bp -- mouse information cx -- mouse position along width of scrollbar dx -- mouse position along length of scrollbar cx & dx were the original mouse coords passed into MSG_META_{START/END}_SELECT, but swapped if horizontal before entering this routine. RETURN: cx -- width offset of mouse click dx -- length offset al -- flag to store in OLSS_DOWN_FLAGS, or zero if nothing selected. PSEUDO CODE/STRATEGY: We do our criteria based on the type of region we're displaying: up-arrow only: click goes in inc area dn-arrow only: click goes in dec area both arrows: use 50% of height for dividing line To determine which region is set, we use: * OLSS_AT_TOP: dn-arrow region * OLSS_AT_BOTTOM: up-arrow region * neither bit set: up/dn-arrow region * both bits set: empty (null) region REVISION HISTORY: Name Date Description ---- ---- ----------- stevey 5/20/96 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if FLOATING_SCROLLERS FSDoScrollCriteria proc near uses bx, cx, dx .enter ; ; If both are set, we return OLSS_BOGUS, since we shouldn't ; be getting any presses. ; mov al, OLSS_BOGUS mov bl, ds:[di].OLSBI_state andnf bl, mask OLSS_AT_BOTTOM or mask OLSS_AT_TOP cmp bl, mask OLSS_AT_BOTTOM or mask OLSS_AT_TOP je done ; ; If OLSS_AT_TOP is set, we're displaying only a down-arrow, ; so we must've got a press in the down-arrow region. ; mov al, OLSS_INC_DOWN ; assume down-arrow test bl, mask OLSS_AT_TOP ; at top? jnz done ; yes, 'twas down-arrow mov al, OLSS_INC_UP ; assume up-arrow test bl, mask OLSS_AT_BOTTOM ; at bottom? jnz done ; yep, 'twas up-arrow ; ; If we were pressing down on something, just keep doing it. ; mov al, ds:[di].OLSBI_state andnf al, mask OLSS_DOWN_FLAGS jnz done ; ; OK, the hard one: we're showing both arrows. If the press ; was in the top 50% of our height (width for horizontal), ; it's the up-arrow. ; mov bx, dx ; bx = mouse Y coord call VisGetSize ; cx = width, dx = height call SwapIfHorizontal shr dx ; dx = 50% of distance mov al, OLSS_INC_DOWN cmp bx, dx jae done mov al, OLSS_INC_UP ; pressed in top half done: .leave ret FSDoScrollCriteria endp endif ; FLOATING_SCROLLERS COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DoScrollAction %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Takes action if the mouse is down. Actions differ depending on who was pressed. CALLED BY: INTERNAL PASS: *ds:si -- pointer to specific instance data bp -- button state flags dx -- mouse offset into scroll area RETURN: nothing DESTROYED: ax, bx, cx, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 12/13/88 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DoScrollAction proc near class OLScrollbarClass push bp ;save button flags mov di, ds:[si] ;point to instance add di, ds:[di].Vis_offset ;ds:[di] -- SpecInstance mov bl, ds:[di].OLSBI_state ;get the current state and bl, mask OLSS_DOWN_FLAGS ;see if any presses jz exit ;nothing down, exit ; ; Hack up the message to pass to depend on the action taken. ; clr bh ;now in bx mov di, ds:[si] add di, ds:[di].Gen_offset push ds:[di].GVLI_applyMsg ;get base method dec bx ;make RangeUserActionOffsets add ds:[di].GVLI_applyMsg, bx ;add offset to base method inc bx ;restore bx push dx ;save offset into bar length shl bl, 1 ;double for word offset pop di ;pass mouse offset in di call cs:actionTab[bx]-2 ;and call the right routine mov di, ds:[si] add di, ds:[di].Gen_offset pop ds:[di].GVLI_applyMsg ;restore apply message exit: pop bp ;restore button flags ret DoScrollAction endp ; ; Table of actions to take, based on OLSBI_state ; actionTab word offset DoBegAnchor ;BEG_ANCHOR word offset DoPageUp ;PAGE_UP word offset DoIncUp ;INC_UP word offset DoDragArea ;DRAG_AREA word offset DoIncDown ;INC_DOWN word offset DoPageDown ;PAGE_DOWN word offset DoEndAnchor ;END_ANCHOR COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DoIncDown %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Does an incremental downward scroll. CALLED BY: INTERNAL PASS: *ds:si -- pointer to specific instance data bp -- button state flags RETURN: nothing DESTROYED: ax, bx, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 12/13/88 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DoIncDown proc near class OLScrollbarClass mov ax, MSG_GEN_VALUE_INCREMENT call ValueSendMsg done:: ret DoIncDown endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DoIncUp %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Handles incrementing up scrollbar. CALLED BY: DoScrollbarAction PASS: *ds:si -- scrollbar bp -- button state flags RETURN: nothing DESTROYED: ax, bx, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 12/15/88 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DoIncUp proc near class OLScrollbarClass mov ax, MSG_GEN_VALUE_DECREMENT FALL_THRU ValueSendMsg DoIncUp endp ValueSendMsg proc near mov di, ds:[si] add di, ds:[di].Vis_offset or ds:[di].OLSBI_attrs, mask OLSA_SUPPRESS_DRAW mov bx, si ;pass non-zero: is scrollbar call SendMsgSetModifiedAndApplyIfNeeded ret ValueSendMsg endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DoPageDown %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Pages down the scrollbar. CALLED BY: DoScrollAction PASS: *ds:si -- scrollbar bp -- button state flags dx -- current docOffset RETURN: dx -- new docOffset carry set if normalizing DESTROYED: ax, bx, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 12/15/88 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DoPageDown proc near class OLScrollbarClass mov ax, MSG_GEN_VALUE_ADD_RANGE_LENGTH call ValueSendMsg done:: ret DoPageDown endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DoPageUp %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Pages up the scrollbar. CALLED BY: DoScrollAction PASS: *ds:si -- scrollbar bp -- button state flags RETURN: nothing DESTROYED: ax, bx, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 12/15/88 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DoPageUp proc near class OLScrollbarClass mov ax, MSG_GEN_VALUE_SUBTRACT_RANGE_LENGTH call ValueSendMsg done:: ret DoPageUp endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DoEndAnchor %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Moves to end of document. Does nothing in motif. CALLED BY: DoScrollAction PASS: *ds:si -- scrollbar bp -- button state flags RETURNED: nothing DESTROYED: ax, bx, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 12/15/88 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DoEndAnchor %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Goes to start of scrollbar. Does nothing in motif. CALLED BY: GLOBAL PASS: *ds:si -- scrollbar bp -- button state flags dx -- current docOffset DESTROYED: ax, bx, di RETURNED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 12/15/88 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DoEndAnchor proc near ret DoEndAnchor endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DoBegAnchor %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Goes to start of scrollbar. Does nothing in motif. CALLED BY: GLOBAL PASS: *ds:si -- scrollbar bp -- button state flags dx -- current docOffset DESTROYED: ax, bx, di RETURNED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 12/15/88 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DoBegAnchor proc near ret DoBegAnchor endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DoDragArea %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Drags the document to new location. CALLED BY: DoScrollAction PASS: *ds:si -- scrollbar bp -- button state flags di -- mouse position along length of scrollbar RETURN: nothing DESTROYED: ax, bx, cx, di PSEUDO CODE/STRATEGY: if ptr event subtract offset to first click to get place for elevator ratio = (yPos-top-NON_SCR_LEN)/scrArea-ELEV_HEIGHT KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 12/15/88 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DoDragArea proc near class OLScrollbarClass CUAS < push cx, dx ;save old position > test bp, mask BI_PRESS jnz short exit ;exit if this is a press mov bx, di ;mouse offset in bx mov di, ds:[si] add di, ds:[di].Vis_offset sub bx, ds:[di].OLSBI_clickYOff ;make relative to top of elevator tst bx jns 10$ ;if negative already, set to zero clr bx 10$: mov dx, bx ;dx.cx = mouseOffset clr cx ; (mouse offset is integer) mov bx, ds:[di].OLSBI_scrArea ;get length of scroll area MO < sub bx, ds:[di].OLSBI_elevLen > ISU < sub bx, ds:[di].OLSBI_elevLen > cmp dx, bx ;see if over maximum jbe divide ;no, branch mov dx, bx ;else use maximum divide: clr ax ;offset into scr area in bx.ax call GrUDivWWFixed ;divide, fraction in dx.cx ; ; On read-only, vertical scrollbars, we'll assume we're a gauge and ; invert the ratio, so as to allow the measurement to take place from ; the bottom of the gauge. ; test ds:[di].OLSBI_attrs, mask OLSA_SLIDER jz notSlider test ds:[di].OLSBI_attrs, mask OLSA_VERTICAL jz notSlider movdw bxax, dxcx mov dx, 1 ;read-only, subtract from 1.0 mov cx, 0 ; so stuff is displayed subdw dxcx, bxax notSlider: tst dx ;dx.cx > 1.0? jz 20$ ;no, branch clr cx mov dx, 1 ;else pass 1.0 20$: normalize: if _CUA_STYLE ;-------------------------------------------------------- call HandleDragXor ;else re-do the xor region. mov di, ds:[si] add di, ds:[di].Vis_offset test ds:[di].OLSBI_attrs, mask OLSA_UPDATE_DURING_DRAGS jz exit call FinishDrag exit: pop cx, dx ;we won't change doc offset here clc ;no normalizing endif ;---------------------------------------------------------------------- ret DoDragArea endp COMMENT @---------------------------------------------------------------------- ROUTINE: FinishDrag SYNOPSIS: Finishes dragging. CALLED BY: OLScrollbarSelect PASS: *ds:si -- handle bp -- flags RETURN: carry set if we were dragging DESTROYED: ax, cx, dx, bp, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 4/11/90 Initial version ------------------------------------------------------------------------------@ if _CUA_STYLE FinishDrag proc near uses ax, cx, dx, bp .enter mov di, ds:[si] add di, ds:[di].Vis_offset cmp ds:[di].OLSBI_xorElevOff, NO_XOR_ELEVATOR clc ;assume nothing been done je exit ;nope, branch push cx call XorElevator ;erase elevator pop cx mov di, ds:[si] add di, ds:[di].Vis_offset mov ds:[di].OLSBI_xorElevOff, NO_XOR_ELEVATOR ; ; Clear this now. ; and ds:[di].OLSBI_state, not (mask OLSS_DOWN_FLAGS) ; ; A bunch of stuff need not be done when constantly updating. ; test ds:[di].OLSBI_attrs, mask OLSA_UPDATE_DURING_DRAGS jnz setValue ; ; If we originally started dragging, and we're no longer in the ; scroll area, let's get out. Otherwise, let's send a scroll method ; to the port, who will later call back to us. ; cmp ds:[di].OLSBI_startState, OLSS_DRAG_AREA jne invalImage ;not in drag area, branch call DoScrollCriteria ;see where mouse is tst al ;not in scrollbar, exit now jz exitDragged invalImage: ; ; Hack up the message to cause a drag to occur. ; mov di, ds:[si] add di, ds:[di].Gen_offset push ds:[di].GVLI_applyMsg ;get base method add ds:[di].GVLI_applyMsg, OLSS_DRAG_AREA-1 setValue: mov di, ds:[si] add di, ds:[di].Vis_offset movdw dxcx, ds:[di].OLSBI_xorDocRatio or ds:[di].OLSBI_attrs, mask OLSA_SUPPRESS_DRAW mov bp, GVT_VALUE_AS_RATIO_OF_AVAILABLE_RANGE mov ax, MSG_GEN_VALUE_SET_VALUE_FROM_RATIO call ValueSendMsg mov di, ds:[si] add di, ds:[di].Vis_offset test ds:[di].OLSBI_attrs, mask OLSA_UPDATE_DURING_DRAGS jnz exitDragged mov di, ds:[si] add di, ds:[di].Gen_offset pop ds:[di].GVLI_applyMsg ;restore apply message exitDragged: stc ;say we draggedp exit: .leave ret FinishDrag endp endif COMMENT @---------------------------------------------------------------------- ROUTINE: HandleDragXor SYNOPSIS: Handles the xor region when a-draggin. CALLED BY: DoDragArea PASS: *ds:si -- scrollbar handle dx:cx -- new scrollbar ratio RETURN: nothing DESTROYED: ax, cx, di PSEUDO CODE/STRATEGY: if (not press) or (dx <> docOffset) XorElevator() if this is a non-button event xorElevOff = CalcElevPos (dx) XorElevator() KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 4/11/90 Initial version ------------------------------------------------------------------------------@ if _CUA_STYLE HandleDragXor proc near uses dx .enter ; ; Erase the previous xor rectangle, if there was one and it is moving. ; test bp, mask BI_PRESS ;if press skip next test jnz short 10$ mov di, ds:[si] add di, ds:[di].Vis_offset cmp ds:[di].OLSBI_xorElevOff, NO_XOR_ELEVATOR je 10$ ;no xor region now, must xor cmpdw dxcx, ds:[di].OLSBI_xorDocRatio je exit ;no change, exit 10$: push cx call XorElevator ;start initial xor rect, pop cx ; or remove old xor rect. 20$: ; ; Draw a new xor rectangle, if this is not a press. ; test bp, mask BI_PRESS ;exit if this is a press jnz short exit mov di, ds:[si] add di, ds:[di].Vis_offset movdw ds:[di].OLSBI_xorDocRatio, dxcx call CalcElevPos ;find a new position mov di, ds:[si] add di, ds:[di].Vis_offset mov ds:[di].OLSBI_xorElevOff, ax ;save it. call XorElevator ;draw the new rectangle. exit: .leave ret HandleDragXor endp endif COMMENT @---------------------------------------------------------------------- ROUTINE: XorElevator SYNOPSIS: Draws a new xor-ed rectangle. CALLED BY: HandleDragXor PASS: *ds:si -- scrollbar RETURN: nothing DESTROYED: ax, cx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 4/11/90 Initial version ------------------------------------------------------------------------------@ if _CUA_STYLE XorElevator proc near uses bx, dx, bp, di .enter mov di, ds:[si] add di, ds:[di].Vis_offset test ds:[di].OLSBI_attrs, mask OLSA_UPDATE_DURING_DRAGS LONG jnz done ;constantly updating, forget it cmp ds:[di].OLSBI_xorElevOff, NO_XOR_ELEVATOR LONG je done ;nothing to erase, branch call ViewCreateDrawGState ;get a new gstate tst di ;if no window, can't draw to it LONG jz done ; ; Choose color to xor with. In color, we'll use C_LIGHT_GREY because it ; changes lt-grey to black, dk-grey to white, making the xor region ; stand out better. In B/W we'll use white. ; MO < mov di, C_LIGHT_GREY ;lt-grey to black, dk-grey to > ISU < mov di, C_LIGHT_GREY ;lt-grey to black, dk-grey to > MO < push ds > MO < mov ax, segment dgroup > MO < mov ds, ax > MO < test ds:[moCS_flags], mask CSF_BW > MO < pop ds > MO < jz setColor ;color, branch > mov di, C_WHITE ;use white in B/W MO <setColor: > ISU < push ds > ISU < mov ax, segment dgroup > ISU < mov ds, ax > ISU < test ds:[moCS_flags], mask CSF_BW > ISU < pop ds > ISU < jz setColor ;color, branch > mov di, C_WHITE ;use white in B/W ISU <setColor: > mov ax, di ;ax <- color mov di, bp ;di <- gstate call GrSetLineColor ;set xor color if _ROUNDED_SCROLL_BAR_THUMB call GrSetAreaColor endif ;_ROUNDED_SCROLL_BAR_THUMB mov al, SDM_50 ;draw in 50% pattern call GrSetLineMask if _ROUNDED_SCROLL_BAR_THUMB call GrSetAreaMask endif ;_ROUNDED_SCROLL_BAR_THUMB mov al, MM_XOR ;xor call GrSetMixMode call OpenGetLineBounds ;get scrollbar bounds for lines mov di, ds:[si] ;point to instance add di, ds:[di].Vis_offset ;ds:[di] -- SpecInstance test ds:[di].OLSBI_attrs, mask OLSA_VERTICAL jz horiz ;not vertical, branch ;vert: add bx, ds:[di].OLSBI_xorElevOff ;get xor elevator offset if SLIDER_INCLUDES_VALUES ; ; no arrow for gauges only ; test ds:[di].OLSBI_attrs, mask OLSA_SLIDER jz haveArrow test ds:[di].OLSBI_attrs, mask OLSA_READ_ONLY jnz noMargin haveArrow: else MO < test ds:[di].OLSBI_attrs, mask OLSA_SLIDER > MO < jnz noMargin > endif NOT_MO< add bx, MO_SCR_AREA_MARGIN ;add arrow height for thumb top> ISU< add bx, MO_SCR_AREA_MARGIN ;add arrow height for thumb top> MO< add bx, ds:[di].OLSBI_arrowSize > if _MOTIF ARROWSHADOW < add bx, 3 > NOARROWSHADOW < add bx, 2 > endif ;_MOTIF noMargin: mov dx, bx ;dx <- bottom of elevator MO < add dx, ds:[di].OLSBI_elevLen > ISU < add dx, ds:[di].OLSBI_elevLen > NOT_MO< add dx, MO_THUMB_HEIGHT > dec dx if _ROUNDED_SCROLL_BAR_THUMB ; If the size of the scrollbar is greater than the minimum size, ; then set si to the offset of the outline region for the rounded ; scroll bar, otherwise, clear si which indicates that we should ; draw a rectangle. inc ax inc dx ; account for what would be inc dx ; the shaded area push si ; popped by drawing code ; Get SBRegionStruct for the vertical scrollbar/slider thumb push di mov di, offset vsbThumb+2 mov si, dx sub si, bx ; si = height of thumb cmp si, cs:[di].SBRS_minimumSize mov si, 0 ; don't affect flags jl notVRound mov si, cs:[di].SBRS_xorRegOffset notVRound: pop di endif ;_ROUNDED_SCROLL_BAR_THUMB jmp short draw horiz: add ax, ds:[di].OLSBI_xorElevOff if SLIDER_INCLUDES_VALUES ; ; no arrow for gauges only ; test ds:[di].OLSBI_attrs, mask OLSA_SLIDER jz haveHArrow test ds:[di].OLSBI_attrs, mask OLSA_READ_ONLY jnz noHMargin haveHArrow: else MO < test ds:[di].OLSBI_attrs, mask OLSA_SLIDER > MO < jnz noHMargin > endif NOT_MO< add ax, MO_SCR_AREA_MARGIN ;add arrow height for thumb top> ISU< add ax, MO_SCR_AREA_MARGIN ;add arrow height for thumb top> MO< add ax, ds:[di].OLSBI_arrowSize > if _MOTIF ARROWSHADOW < add ax, 3 > NOARROWSHADOW < add ax, 2 > endif ;_MOTIF noHMargin: mov cx, ax MO < add cx, ds:[di].OLSBI_elevLen > ISU < add cx, ds:[di].OLSBI_elevLen > NOT_MO< add cx, MO_THUMB_HEIGHT > dec cx if _ROUNDED_SCROLL_BAR_THUMB ; If the size of the scrollbar is greater than the minimum size, ; then set si to the offset of the outline region for the rounded ; scroll bar, otherwise, clear si which indicates that we should ; draw a rectangle. inc bx inc cx ; account for what would be inc cx ; the shaded area push si ; popped by drawing code ; Get SBRegionStruct for the horizontal scrollbar/slider thumb push di mov di, offset hsbThumb+2 mov si, cx sub si, ax ; si = width of thumb cmp si, cs:[di].SBRS_minimumSize mov si, 0 ; don't affect flags jl notHRound mov si, cs:[di].SBRS_xorRegOffset notHRound: pop di endif ;_ROUNDED_SCROLL_BAR_THUMB draw: if _ROUNDED_SCROLL_BAR_THUMB ; No round scrollbars under 10 pixels.. sorry. cmp ds:[di].OLSBI_arrowSize, 10 mov di, bp ;di <- gstate jl drawRect tst si ; just draw rectangles? jz drawRect ; yup push ds NOFXIP< segmov ds, cs > FXIP < push ax, bx > FXIP < mov bx, handle DrawBWRegions > FXIP < call MemLock > FXIP < mov ds, ax > FXIP < pop ax, bx > ; round thumbs are inset a bit. sub dx, bx ; cx = width, dx = height sub cx, ax ; for the region call GrDrawRegion ; BX destroyed in FXIP only FXIP < mov bx, handle DrawBWRegions > FXIP < call MemUnlock > pop ds jmp afterInset drawRect: ; We need to adjust the right nad bottom coordinates so the ; rectangle draws within the correct area. dec cx dec dx else ;_ROUNDED_SCROLL_BAR_THUMB is FALSE mov di, bp ;di <- gstate endif ;_ROUNDED_SCROLL_BAR_THUMB call GrDrawRect if _MOTIF ; ; Draw a second, inset rectangle so things show up better. ; inc ax inc bx dec cx dec dx call GrDrawRect endif if _ROUNDED_SCROLL_BAR_THUMB afterInset: pop si ; restore myself. :) endif ;_ROUNDED_SCROLL_BAR_THUMB call GrDestroyState ;destroy the gstate. done: .leave ret XorElevator endp endif ; _CUA_STYLE ScrollbarCommon ends
src/c64/j8md.asm
apvilkko/jane8-musicdisk
0
103613
;================================ ; LOADER ;================================ org $07ff db $01,$08 ; prg header (BASIC program memory start $0801) ; BASIC loader db $0c,$08 ; pointer to next BASIC line db $0a,$00 ; line number (10) db $9e ; SYS token text "11904" ; program start in decimal db $00 ; end of basic line db $00,$00 ; end of program org $2e80 ;================================ ; DEFINITIONS ;================================ include "defs.asm" irqCount = $02 tickCount = $03 dataPosLo = $04 dataPosHi = $05 offset = $06 temp = $07 inst = $08 ctl = $09 ad = $0a sr = $0b channel = $0c drum_variant = $0d temp2 = $0e temp3 = $0f kick_ch = $10 kick_pos = $11 kick_f_lo = $12 kick_f_hi = $13 snare_ch = $14 snare_pos = $15 sn_f_lo = $16 sn_f_hi = $17 hh_ch = $18 hh_pos = $19 reserved1 = $1a reserved2 = $1b temp4 = $1c pwm1 = $1d ; -1e pwm2 = $1f ; -20 pwm3 = $21 ; -22 noteCache = $f7 KICK = 1 SNARE = 5 HHC = 6 HHO = 7 include "macros.asm" ;================================ ; PROGRAM START ;================================ Start: jsr Init jsr ClearSid jmp Loop Init: sei cld lda #%01111111 sta INT_CTL_STA ; switch off interrupt signals from CIA-1 and SCREEN_CTL_1 ; clear most significant bit of VIC's raster register sta SCREEN_CTL_1 lda INT_CTL_STA ; acknowledge pending interrupts lda INT_CTL_STA2 lda #$20 sta RASTER_LINE lda #<Isr ; set ISR vector sta ISR_LO lda #>Isr sta ISR_HI lda #$01 sta INT_CTL ; enable raster interrupt lda #$00 sta tickCount sta irqCount lda #$ff sta kick_ch sta kick_pos sta snare_ch sta snare_pos sta hh_ch sta hh_pos lda #<MusicDataStart sta dataPosLo lda #>MusicDataStart sta dataPosHi cli rts ClearSid: ldx #$1d lda #$00 clearsidloop: sta SID_REGS dex bne clearsidloop lda #%00001111 ; volume to max sta SID_FLT_VM rts Loop: jmp Loop ;================================ ; INTERRUPT ;================================ Isr: inc irqCount inc tickCount lda tickCount cmp #$08 bne skipResetTick lda #$00 sta tickCount skipResetTick: ;print irqCount, 0 ;print tickCount, 4 print pwm1, 0 print pwm1+1, 4 jsr SoundDriver asl INT_STATUS ; acknowledge the interrupt by clearing the VIC's interrupt flag jmp $EA81 ;================================ include "frame.asm" include "driver.asm" include "data.asm"
examples/stm32f0/rfm69_moter/modem/main.adb
ekoeppen/STM32_Generic_Ada_Drivers
1
22640
with System; use System; with Ada.Real_Time; use Ada.Real_Time; with Ada.Synchronous_Task_Control; use Ada.Synchronous_Task_Control; with Ada.Unchecked_Conversion; with Last_Chance_Handler; with STM32GD.Board; with STM32GD.USART; with Peripherals; with Modem; with Controller; procedure Main is Next_Release : Time := Clock; Period : constant Time_Span := Milliseconds (100); Minimum_Storage_Size : Integer := 256; pragma Export ( Convention => C, Entity => Minimum_Storage_Size, External_Name => "_minimum_storage_size"); Main_Task_Storage_Size : Integer := 1024; pragma Export ( Convention => C, Entity => Main_Task_Storage_Size, External_Name => "_environment_task_storage_size"); Secondary_Stack_Size : Integer := 16; pragma Export ( Convention => C, Entity => Secondary_Stack_Size, External_Name => "_gnat_default_ss_size"); begin STM32GD.Board.Init; Peripherals.Init; Controller.Send_Log_Message ("Ready"); while True loop Controller.Handle_Host_Data; Controller.Handle_RF_Data; Controller.Periodic_Tasks; Next_Release := Next_Release + Period; delay until Next_Release; end loop; end Main;
Expr.g4
triblatron/dftu
0
4930
// Define a grammar called Expr grammar Expr; expr : ID '=' Floatingliteral unit? ; ID : [a-z]+ ; // match lower-case identifiers WS : [ \t\r\n]+ -> skip ; // skip spaces, tabs, newlines Floatingliteral : Fractionalconstant Exponentpart? | Digitsequence Exponentpart ; unit : length | velocity | acceleration ; velocity : 'm/s' | 'ms^-1' ; acceleration : 'ms^-2' | 'm/s/s' ; length : 'm' | 'ft' ; fragment Fractionalconstant : Digitsequence? '.' Digitsequence | Digitsequence '.' ; fragment Exponentpart : 'e' SIGN? Digitsequence | 'E' SIGN? Digitsequence ; fragment SIGN : [+-] ; fragment Digitsequence : DIGIT ('\''? DIGIT)* ; fragment Floatingsuffix : [flFL] ; fragment DIGIT : [0-9] ; fragment METRE : [m] ;
src/Sym_Expr/test/test_report.ads
fintatarta/eugen
0
14809
<reponame>fintatarta/eugen<gh_stars>0 ----------------------------------------------------------------------------- -- Symbolic Expressions (symexpr) -- -- Copyright (C) 2012, <NAME> -- -- This file is part of symexpr. -- -- symexpr is free software: you can redistribute it and/or modify -- it under the terms of the Lesser GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- symexpr 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 Lesser GNU General Public License -- along with gclp. If not, see <http://www.gnu.org/licenses/>. ---------------------------------------------------------------------------- -- -*- Mode: Ada -*- -- Filename : test_report.ads -- Description : Handy package to print test results -- Author : <NAME> -- Created On : Thu Jul 3 07:49:02 2008 -- Last Modified By: . -- Last Modified On: . -- Update Count : 0 -- Status : Beta -- -- This package provides some procedures which can be handy -- when writing test code. Our reference model is the -- following: a test program contains several "test suites", -- where each suite is just a collection of sets. A suite -- is SUCCESSful if all the tests in the suite passed. -- -- A variable of type Reporter_Type is an object which can keep -- track of the passed/not passed test/suites. The way to -- use a Reporter_Type is quite simple: -- -- Reporter : Reporter_Type; -- Create the object -- -- while ... loop -- first test suite -- -- new_result(Rep => reporter, -- Accumulate test -- OK => expected = actual); -- results -- end loop; -- -- new_suite(reporter); -- start a new suite -- -- while ... loop -- second test suite -- -- if (OK) then -- success(reporter); -- An alternative way -- else -- of accumulating -- failure(reporter); -- test results -- end if; -- end loop; -- -- final(reporter); -- Print final report -- -- and set Exit_Status -- -- -- Each time New_Suite is called it prints on the stdout -- a string of type -- -- Passed ... out of ... tests: (SUCCESS | FAILED) -- with Ada.Command_Line; with Ada.Containers.Doubly_Linked_Lists; with Ada.Strings.Unbounded, Text_Io; use Ada.Strings.Unbounded, Text_Io; package Test_Report is package CL renames Ada.Command_Line; type Reporter_Type is tagged private; procedure Be_Verbose (This : in out Reporter_Type; Flag : in Boolean := True); -- -- By default the reports are printed to the standard error. This -- procedure allows one to change such a default. -- procedure Set_Output (This : in out Reporter_Type; File : in File_Access); procedure Set_Tab (This : in out Reporter_Type; Tab : in Positive); -- -- Start a new suite. It is possible to give to the suite -- a descriptive name. This function implicitly closes the -- current suite and prints the corresponding results. -- procedure New_Suite (This : in out Reporter_Type; Name : in String := ""); -- -- Register the result of a new test. -- procedure New_Result (This : in out Reporter_Type; Ok : in Boolean); -- -- Equivalent to New_Result(This, True); -- procedure Success (This : in out Reporter_Type); -- -- Equivalent to New_Result(This, False); -- procedure Failure (This : in out Reporter_Type); -- -- Print a final report and, if required, sets the -- exit status to Success if and only if all the -- tests succeded. -- procedure Final (This : in out Reporter_Type; Set_Status : in Boolean := True); -- -- Generic procedure to run an "array of tests". Typically -- Test_Case will be a record which holds the values necessary -- for the tests. For example, in order to test a "sum" function -- one could write -- -- type Sum_Case is -- record -- Left, Right : Integer; -- Expected : Integer; -- end record; -- -- type Sum_Case_Array is -- array(positive range <>) of Sum_Case; -- -- Cases : Sum_Case_Array := ((left => 4, right => 3, result => 7), -- (left => 2, right => 3, result => 5), -- (left => 3, right => 5, result => 8)); -- -- function Check_Sum(X : Sum_Case) -- return Boolean is -- begin -- return (Sum(X.Left, X.Right) = X.Result); -- end Check_Sum; -- -- Finally, the procedure would be instantiated -- -- procedure Sum_Test is -- new Do_Suite (Test_Case => Sum_Case, -- Test_Case_Array => Sum_Case_Array, -- Check => Check_Sum); -- -- and run as -- -- Sum_Test(Reporter, Cases); -- generic type Test_Case is private; type Test_Case_Array is array(Positive range <>) of Test_Case; with function Check(This_Case : Test_Case) return Boolean; procedure Do_Suite (This : in out Reporter_Type; Cases : in Test_Case_Array; Name : in String := ""); private package Boolean_Lists is new Ada.Containers.Doubly_Linked_Lists (Boolean); type Reporter_Type is tagged record Status : CL.Exit_Status := CL.Success; N_Suites : Natural := 0; N_Suite_OK : Natural := 0; N_Tests : Natural := 0; N_Test_OK : Natural := 0; Name : Unbounded_String; Output_To : File_Access := Standard_Error; Verbose : Boolean := False; Tab : Positive := 35; Suite_Results : Boolean_Lists.List; end record; end Test_Report; -- Maybe Obsolete -- -- procedure Do_Report (This : in out Reporter_Type; -- Num_Trials : in Positive; -- Num_Success : in Natural; -- Name : in String := ""; -- Set_Status : in Boolean := True);
ps.asm
TRamirez97/CSE460-HW02
0
11590
_ps: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "user.h" #include "fcntl.h" int main(int argc, char *argv[]) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp cps(); 6: e8 28 03 00 00 call 333 <cps> exit(); b: e8 53 02 00 00 call 263 <exit> 00000010 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 10: 55 push %ebp char *os; os = s; while((*s++ = *t++) != 0) 11: 31 c0 xor %eax,%eax { 13: 89 e5 mov %esp,%ebp 15: 53 push %ebx 16: 8b 4d 08 mov 0x8(%ebp),%ecx 19: 8b 5d 0c mov 0xc(%ebp),%ebx 1c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi while((*s++ = *t++) != 0) 20: 0f b6 14 03 movzbl (%ebx,%eax,1),%edx 24: 88 14 01 mov %dl,(%ecx,%eax,1) 27: 83 c0 01 add $0x1,%eax 2a: 84 d2 test %dl,%dl 2c: 75 f2 jne 20 <strcpy+0x10> ; return os; } 2e: 89 c8 mov %ecx,%eax 30: 5b pop %ebx 31: 5d pop %ebp 32: c3 ret 33: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 3a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000040 <strcmp>: int strcmp(const char *p, const char *q) { 40: 55 push %ebp 41: 89 e5 mov %esp,%ebp 43: 53 push %ebx 44: 8b 4d 08 mov 0x8(%ebp),%ecx 47: 8b 55 0c mov 0xc(%ebp),%edx while(*p && *p == *q) 4a: 0f b6 01 movzbl (%ecx),%eax 4d: 0f b6 1a movzbl (%edx),%ebx 50: 84 c0 test %al,%al 52: 75 1d jne 71 <strcmp+0x31> 54: eb 2a jmp 80 <strcmp+0x40> 56: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 5d: 8d 76 00 lea 0x0(%esi),%esi 60: 0f b6 41 01 movzbl 0x1(%ecx),%eax p++, q++; 64: 83 c1 01 add $0x1,%ecx 67: 83 c2 01 add $0x1,%edx while(*p && *p == *q) 6a: 0f b6 1a movzbl (%edx),%ebx 6d: 84 c0 test %al,%al 6f: 74 0f je 80 <strcmp+0x40> 71: 38 d8 cmp %bl,%al 73: 74 eb je 60 <strcmp+0x20> return (uchar)*p - (uchar)*q; 75: 29 d8 sub %ebx,%eax } 77: 5b pop %ebx 78: 5d pop %ebp 79: c3 ret 7a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80: 31 c0 xor %eax,%eax return (uchar)*p - (uchar)*q; 82: 29 d8 sub %ebx,%eax } 84: 5b pop %ebx 85: 5d pop %ebp 86: c3 ret 87: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 8e: 66 90 xchg %ax,%ax 00000090 <strlen>: uint strlen(char *s) { 90: 55 push %ebp 91: 89 e5 mov %esp,%ebp 93: 8b 55 08 mov 0x8(%ebp),%edx int n; for(n = 0; s[n]; n++) 96: 80 3a 00 cmpb $0x0,(%edx) 99: 74 15 je b0 <strlen+0x20> 9b: 31 c0 xor %eax,%eax 9d: 8d 76 00 lea 0x0(%esi),%esi a0: 83 c0 01 add $0x1,%eax a3: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1) a7: 89 c1 mov %eax,%ecx a9: 75 f5 jne a0 <strlen+0x10> ; return n; } ab: 89 c8 mov %ecx,%eax ad: 5d pop %ebp ae: c3 ret af: 90 nop for(n = 0; s[n]; n++) b0: 31 c9 xor %ecx,%ecx } b2: 5d pop %ebp b3: 89 c8 mov %ecx,%eax b5: c3 ret b6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi bd: 8d 76 00 lea 0x0(%esi),%esi 000000c0 <memset>: void* memset(void *dst, int c, uint n) { c0: 55 push %ebp c1: 89 e5 mov %esp,%ebp c3: 57 push %edi c4: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : c7: 8b 4d 10 mov 0x10(%ebp),%ecx ca: 8b 45 0c mov 0xc(%ebp),%eax cd: 89 d7 mov %edx,%edi cf: fc cld d0: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } d2: 89 d0 mov %edx,%eax d4: 5f pop %edi d5: 5d pop %ebp d6: c3 ret d7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi de: 66 90 xchg %ax,%ax 000000e0 <strchr>: char* strchr(const char *s, char c) { e0: 55 push %ebp e1: 89 e5 mov %esp,%ebp e3: 8b 45 08 mov 0x8(%ebp),%eax e6: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for(; *s; s++) ea: 0f b6 10 movzbl (%eax),%edx ed: 84 d2 test %dl,%dl ef: 75 12 jne 103 <strchr+0x23> f1: eb 1d jmp 110 <strchr+0x30> f3: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi f7: 90 nop f8: 0f b6 50 01 movzbl 0x1(%eax),%edx fc: 83 c0 01 add $0x1,%eax ff: 84 d2 test %dl,%dl 101: 74 0d je 110 <strchr+0x30> if(*s == c) 103: 38 d1 cmp %dl,%cl 105: 75 f1 jne f8 <strchr+0x18> return (char*)s; return 0; } 107: 5d pop %ebp 108: c3 ret 109: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return 0; 110: 31 c0 xor %eax,%eax } 112: 5d pop %ebp 113: c3 ret 114: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 11b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 11f: 90 nop 00000120 <gets>: char* gets(char *buf, int max) { 120: 55 push %ebp 121: 89 e5 mov %esp,%ebp 123: 57 push %edi 124: 56 push %esi int i, cc; char c; for(i=0; i+1 < max; ){ 125: 31 f6 xor %esi,%esi { 127: 53 push %ebx 128: 89 f3 mov %esi,%ebx 12a: 83 ec 1c sub $0x1c,%esp 12d: 8b 7d 08 mov 0x8(%ebp),%edi for(i=0; i+1 < max; ){ 130: eb 2f jmp 161 <gets+0x41> 132: 8d b6 00 00 00 00 lea 0x0(%esi),%esi cc = read(0, &c, 1); 138: 83 ec 04 sub $0x4,%esp 13b: 8d 45 e7 lea -0x19(%ebp),%eax 13e: 6a 01 push $0x1 140: 50 push %eax 141: 6a 00 push $0x0 143: e8 33 01 00 00 call 27b <read> if(cc < 1) 148: 83 c4 10 add $0x10,%esp 14b: 85 c0 test %eax,%eax 14d: 7e 1c jle 16b <gets+0x4b> break; buf[i++] = c; 14f: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 153: 83 c7 01 add $0x1,%edi 156: 88 47 ff mov %al,-0x1(%edi) if(c == '\n' || c == '\r') 159: 3c 0a cmp $0xa,%al 15b: 74 23 je 180 <gets+0x60> 15d: 3c 0d cmp $0xd,%al 15f: 74 1f je 180 <gets+0x60> for(i=0; i+1 < max; ){ 161: 83 c3 01 add $0x1,%ebx 164: 89 fe mov %edi,%esi 166: 3b 5d 0c cmp 0xc(%ebp),%ebx 169: 7c cd jl 138 <gets+0x18> 16b: 89 f3 mov %esi,%ebx break; } buf[i] = '\0'; return buf; } 16d: 8b 45 08 mov 0x8(%ebp),%eax buf[i] = '\0'; 170: c6 03 00 movb $0x0,(%ebx) } 173: 8d 65 f4 lea -0xc(%ebp),%esp 176: 5b pop %ebx 177: 5e pop %esi 178: 5f pop %edi 179: 5d pop %ebp 17a: c3 ret 17b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 17f: 90 nop 180: 8b 75 08 mov 0x8(%ebp),%esi 183: 8b 45 08 mov 0x8(%ebp),%eax 186: 01 de add %ebx,%esi 188: 89 f3 mov %esi,%ebx buf[i] = '\0'; 18a: c6 03 00 movb $0x0,(%ebx) } 18d: 8d 65 f4 lea -0xc(%ebp),%esp 190: 5b pop %ebx 191: 5e pop %esi 192: 5f pop %edi 193: 5d pop %ebp 194: c3 ret 195: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 19c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 000001a0 <stat>: int stat(char *n, struct stat *st) { 1a0: 55 push %ebp 1a1: 89 e5 mov %esp,%ebp 1a3: 56 push %esi 1a4: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 1a5: 83 ec 08 sub $0x8,%esp 1a8: 6a 00 push $0x0 1aa: ff 75 08 pushl 0x8(%ebp) 1ad: e8 f1 00 00 00 call 2a3 <open> if(fd < 0) 1b2: 83 c4 10 add $0x10,%esp 1b5: 85 c0 test %eax,%eax 1b7: 78 27 js 1e0 <stat+0x40> return -1; r = fstat(fd, st); 1b9: 83 ec 08 sub $0x8,%esp 1bc: ff 75 0c pushl 0xc(%ebp) 1bf: 89 c3 mov %eax,%ebx 1c1: 50 push %eax 1c2: e8 f4 00 00 00 call 2bb <fstat> close(fd); 1c7: 89 1c 24 mov %ebx,(%esp) r = fstat(fd, st); 1ca: 89 c6 mov %eax,%esi close(fd); 1cc: e8 ba 00 00 00 call 28b <close> return r; 1d1: 83 c4 10 add $0x10,%esp } 1d4: 8d 65 f8 lea -0x8(%ebp),%esp 1d7: 89 f0 mov %esi,%eax 1d9: 5b pop %ebx 1da: 5e pop %esi 1db: 5d pop %ebp 1dc: c3 ret 1dd: 8d 76 00 lea 0x0(%esi),%esi return -1; 1e0: be ff ff ff ff mov $0xffffffff,%esi 1e5: eb ed jmp 1d4 <stat+0x34> 1e7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 1ee: 66 90 xchg %ax,%ax 000001f0 <atoi>: int atoi(const char *s) { 1f0: 55 push %ebp 1f1: 89 e5 mov %esp,%ebp 1f3: 53 push %ebx 1f4: 8b 55 08 mov 0x8(%ebp),%edx int n; n = 0; while('0' <= *s && *s <= '9') 1f7: 0f be 02 movsbl (%edx),%eax 1fa: 8d 48 d0 lea -0x30(%eax),%ecx 1fd: 80 f9 09 cmp $0x9,%cl n = 0; 200: b9 00 00 00 00 mov $0x0,%ecx while('0' <= *s && *s <= '9') 205: 77 1e ja 225 <atoi+0x35> 207: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 20e: 66 90 xchg %ax,%ax n = n*10 + *s++ - '0'; 210: 83 c2 01 add $0x1,%edx 213: 8d 0c 89 lea (%ecx,%ecx,4),%ecx 216: 8d 4c 48 d0 lea -0x30(%eax,%ecx,2),%ecx while('0' <= *s && *s <= '9') 21a: 0f be 02 movsbl (%edx),%eax 21d: 8d 58 d0 lea -0x30(%eax),%ebx 220: 80 fb 09 cmp $0x9,%bl 223: 76 eb jbe 210 <atoi+0x20> return n; } 225: 89 c8 mov %ecx,%eax 227: 5b pop %ebx 228: 5d pop %ebp 229: c3 ret 22a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000230 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 230: 55 push %ebp 231: 89 e5 mov %esp,%ebp 233: 57 push %edi 234: 8b 45 10 mov 0x10(%ebp),%eax 237: 8b 55 08 mov 0x8(%ebp),%edx 23a: 56 push %esi 23b: 8b 75 0c mov 0xc(%ebp),%esi char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 23e: 85 c0 test %eax,%eax 240: 7e 13 jle 255 <memmove+0x25> 242: 01 d0 add %edx,%eax dst = vdst; 244: 89 d7 mov %edx,%edi 246: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 24d: 8d 76 00 lea 0x0(%esi),%esi *dst++ = *src++; 250: a4 movsb %ds:(%esi),%es:(%edi) while(n-- > 0) 251: 39 f8 cmp %edi,%eax 253: 75 fb jne 250 <memmove+0x20> return vdst; } 255: 5e pop %esi 256: 89 d0 mov %edx,%eax 258: 5f pop %edi 259: 5d pop %ebp 25a: c3 ret 0000025b <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 25b: b8 01 00 00 00 mov $0x1,%eax 260: cd 40 int $0x40 262: c3 ret 00000263 <exit>: SYSCALL(exit) 263: b8 02 00 00 00 mov $0x2,%eax 268: cd 40 int $0x40 26a: c3 ret 0000026b <wait>: SYSCALL(wait) 26b: b8 03 00 00 00 mov $0x3,%eax 270: cd 40 int $0x40 272: c3 ret 00000273 <pipe>: SYSCALL(pipe) 273: b8 04 00 00 00 mov $0x4,%eax 278: cd 40 int $0x40 27a: c3 ret 0000027b <read>: SYSCALL(read) 27b: b8 05 00 00 00 mov $0x5,%eax 280: cd 40 int $0x40 282: c3 ret 00000283 <write>: SYSCALL(write) 283: b8 10 00 00 00 mov $0x10,%eax 288: cd 40 int $0x40 28a: c3 ret 0000028b <close>: SYSCALL(close) 28b: b8 15 00 00 00 mov $0x15,%eax 290: cd 40 int $0x40 292: c3 ret 00000293 <kill>: SYSCALL(kill) 293: b8 06 00 00 00 mov $0x6,%eax 298: cd 40 int $0x40 29a: c3 ret 0000029b <exec>: SYSCALL(exec) 29b: b8 07 00 00 00 mov $0x7,%eax 2a0: cd 40 int $0x40 2a2: c3 ret 000002a3 <open>: SYSCALL(open) 2a3: b8 0f 00 00 00 mov $0xf,%eax 2a8: cd 40 int $0x40 2aa: c3 ret 000002ab <mknod>: SYSCALL(mknod) 2ab: b8 11 00 00 00 mov $0x11,%eax 2b0: cd 40 int $0x40 2b2: c3 ret 000002b3 <unlink>: SYSCALL(unlink) 2b3: b8 12 00 00 00 mov $0x12,%eax 2b8: cd 40 int $0x40 2ba: c3 ret 000002bb <fstat>: SYSCALL(fstat) 2bb: b8 08 00 00 00 mov $0x8,%eax 2c0: cd 40 int $0x40 2c2: c3 ret 000002c3 <link>: SYSCALL(link) 2c3: b8 13 00 00 00 mov $0x13,%eax 2c8: cd 40 int $0x40 2ca: c3 ret 000002cb <mkdir>: SYSCALL(mkdir) 2cb: b8 14 00 00 00 mov $0x14,%eax 2d0: cd 40 int $0x40 2d2: c3 ret 000002d3 <chdir>: SYSCALL(chdir) 2d3: b8 09 00 00 00 mov $0x9,%eax 2d8: cd 40 int $0x40 2da: c3 ret 000002db <dup>: SYSCALL(dup) 2db: b8 0a 00 00 00 mov $0xa,%eax 2e0: cd 40 int $0x40 2e2: c3 ret 000002e3 <getpid>: SYSCALL(getpid) 2e3: b8 0b 00 00 00 mov $0xb,%eax 2e8: cd 40 int $0x40 2ea: c3 ret 000002eb <sbrk>: SYSCALL(sbrk) 2eb: b8 0c 00 00 00 mov $0xc,%eax 2f0: cd 40 int $0x40 2f2: c3 ret 000002f3 <sleep>: SYSCALL(sleep) 2f3: b8 0d 00 00 00 mov $0xd,%eax 2f8: cd 40 int $0x40 2fa: c3 ret 000002fb <uptime>: SYSCALL(uptime) 2fb: b8 0e 00 00 00 mov $0xe,%eax 300: cd 40 int $0x40 302: c3 ret 00000303 <date>: SYSCALL(date) // date system call added for part 1 303: b8 16 00 00 00 mov $0x16,%eax 308: cd 40 int $0x40 30a: c3 ret 0000030b <getuid>: SYSCALL(getuid) //Gets the UID of a process 30b: b8 17 00 00 00 mov $0x17,%eax 310: cd 40 int $0x40 312: c3 ret 00000313 <getgid>: SYSCALL(getgid) //Gets the GID of a process 313: b8 18 00 00 00 mov $0x18,%eax 318: cd 40 int $0x40 31a: c3 ret 0000031b <getppid>: SYSCALL(getppid) //Gets the PPID of a process 31b: b8 19 00 00 00 mov $0x19,%eax 320: cd 40 int $0x40 322: c3 ret 00000323 <setuid>: SYSCALL(setuid) //Sets a new UID for a process 323: b8 1a 00 00 00 mov $0x1a,%eax 328: cd 40 int $0x40 32a: c3 ret 0000032b <setgid>: SYSCALL(setgid) //Sets a new GID for a process 32b: b8 1b 00 00 00 mov $0x1b,%eax 330: cd 40 int $0x40 332: c3 ret 00000333 <cps>: SYSCALL(cps) 333: b8 1c 00 00 00 mov $0x1c,%eax 338: cd 40 int $0x40 33a: c3 ret 33b: 66 90 xchg %ax,%ax 33d: 66 90 xchg %ax,%ax 33f: 90 nop 00000340 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 340: 55 push %ebp 341: 89 e5 mov %esp,%ebp 343: 57 push %edi 344: 56 push %esi 345: 53 push %ebx 346: 83 ec 3c sub $0x3c,%esp 349: 89 4d c4 mov %ecx,-0x3c(%ebp) uint x; neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; 34c: 89 d1 mov %edx,%ecx { 34e: 89 45 b8 mov %eax,-0x48(%ebp) if(sgn && xx < 0){ 351: 85 d2 test %edx,%edx 353: 0f 89 7f 00 00 00 jns 3d8 <printint+0x98> 359: f6 45 08 01 testb $0x1,0x8(%ebp) 35d: 74 79 je 3d8 <printint+0x98> neg = 1; 35f: c7 45 bc 01 00 00 00 movl $0x1,-0x44(%ebp) x = -xx; 366: f7 d9 neg %ecx } else { x = xx; } i = 0; 368: 31 db xor %ebx,%ebx 36a: 8d 75 d7 lea -0x29(%ebp),%esi 36d: 8d 76 00 lea 0x0(%esi),%esi do{ buf[i++] = digits[x % base]; 370: 89 c8 mov %ecx,%eax 372: 31 d2 xor %edx,%edx 374: 89 cf mov %ecx,%edi 376: f7 75 c4 divl -0x3c(%ebp) 379: 0f b6 92 60 07 00 00 movzbl 0x760(%edx),%edx 380: 89 45 c0 mov %eax,-0x40(%ebp) 383: 89 d8 mov %ebx,%eax 385: 8d 5b 01 lea 0x1(%ebx),%ebx }while((x /= base) != 0); 388: 8b 4d c0 mov -0x40(%ebp),%ecx buf[i++] = digits[x % base]; 38b: 88 14 1e mov %dl,(%esi,%ebx,1) }while((x /= base) != 0); 38e: 39 7d c4 cmp %edi,-0x3c(%ebp) 391: 76 dd jbe 370 <printint+0x30> if(neg) 393: 8b 4d bc mov -0x44(%ebp),%ecx 396: 85 c9 test %ecx,%ecx 398: 74 0c je 3a6 <printint+0x66> buf[i++] = '-'; 39a: c6 44 1d d8 2d movb $0x2d,-0x28(%ebp,%ebx,1) buf[i++] = digits[x % base]; 39f: 89 d8 mov %ebx,%eax buf[i++] = '-'; 3a1: ba 2d 00 00 00 mov $0x2d,%edx while(--i >= 0) 3a6: 8b 7d b8 mov -0x48(%ebp),%edi 3a9: 8d 5c 05 d7 lea -0x29(%ebp,%eax,1),%ebx 3ad: eb 07 jmp 3b6 <printint+0x76> 3af: 90 nop 3b0: 0f b6 13 movzbl (%ebx),%edx 3b3: 83 eb 01 sub $0x1,%ebx write(fd, &c, 1); 3b6: 83 ec 04 sub $0x4,%esp 3b9: 88 55 d7 mov %dl,-0x29(%ebp) 3bc: 6a 01 push $0x1 3be: 56 push %esi 3bf: 57 push %edi 3c0: e8 be fe ff ff call 283 <write> while(--i >= 0) 3c5: 83 c4 10 add $0x10,%esp 3c8: 39 de cmp %ebx,%esi 3ca: 75 e4 jne 3b0 <printint+0x70> putc(fd, buf[i]); } 3cc: 8d 65 f4 lea -0xc(%ebp),%esp 3cf: 5b pop %ebx 3d0: 5e pop %esi 3d1: 5f pop %edi 3d2: 5d pop %ebp 3d3: c3 ret 3d4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi neg = 0; 3d8: c7 45 bc 00 00 00 00 movl $0x0,-0x44(%ebp) 3df: eb 87 jmp 368 <printint+0x28> 3e1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 3e8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 3ef: 90 nop 000003f0 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 3f0: 55 push %ebp 3f1: 89 e5 mov %esp,%ebp 3f3: 57 push %edi 3f4: 56 push %esi 3f5: 53 push %ebx 3f6: 83 ec 2c sub $0x2c,%esp int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 3f9: 8b 75 0c mov 0xc(%ebp),%esi 3fc: 0f b6 1e movzbl (%esi),%ebx 3ff: 84 db test %bl,%bl 401: 0f 84 b8 00 00 00 je 4bf <printf+0xcf> ap = (uint*)(void*)&fmt + 1; 407: 8d 45 10 lea 0x10(%ebp),%eax 40a: 83 c6 01 add $0x1,%esi write(fd, &c, 1); 40d: 8d 7d e7 lea -0x19(%ebp),%edi state = 0; 410: 31 d2 xor %edx,%edx ap = (uint*)(void*)&fmt + 1; 412: 89 45 d0 mov %eax,-0x30(%ebp) 415: eb 37 jmp 44e <printf+0x5e> 417: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 41e: 66 90 xchg %ax,%ax 420: 89 55 d4 mov %edx,-0x2c(%ebp) c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ state = '%'; 423: ba 25 00 00 00 mov $0x25,%edx if(c == '%'){ 428: 83 f8 25 cmp $0x25,%eax 42b: 74 17 je 444 <printf+0x54> write(fd, &c, 1); 42d: 83 ec 04 sub $0x4,%esp 430: 88 5d e7 mov %bl,-0x19(%ebp) 433: 6a 01 push $0x1 435: 57 push %edi 436: ff 75 08 pushl 0x8(%ebp) 439: e8 45 fe ff ff call 283 <write> 43e: 8b 55 d4 mov -0x2c(%ebp),%edx } else { putc(fd, c); 441: 83 c4 10 add $0x10,%esp for(i = 0; fmt[i]; i++){ 444: 0f b6 1e movzbl (%esi),%ebx 447: 83 c6 01 add $0x1,%esi 44a: 84 db test %bl,%bl 44c: 74 71 je 4bf <printf+0xcf> c = fmt[i] & 0xff; 44e: 0f be cb movsbl %bl,%ecx 451: 0f b6 c3 movzbl %bl,%eax if(state == 0){ 454: 85 d2 test %edx,%edx 456: 74 c8 je 420 <printf+0x30> } } else if(state == '%'){ 458: 83 fa 25 cmp $0x25,%edx 45b: 75 e7 jne 444 <printf+0x54> if(c == 'd'){ 45d: 83 f8 64 cmp $0x64,%eax 460: 0f 84 9a 00 00 00 je 500 <printf+0x110> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 466: 81 e1 f7 00 00 00 and $0xf7,%ecx 46c: 83 f9 70 cmp $0x70,%ecx 46f: 74 5f je 4d0 <printf+0xe0> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 471: 83 f8 73 cmp $0x73,%eax 474: 0f 84 d6 00 00 00 je 550 <printf+0x160> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 47a: 83 f8 63 cmp $0x63,%eax 47d: 0f 84 8d 00 00 00 je 510 <printf+0x120> putc(fd, *ap); ap++; } else if(c == '%'){ 483: 83 f8 25 cmp $0x25,%eax 486: 0f 84 b4 00 00 00 je 540 <printf+0x150> write(fd, &c, 1); 48c: 83 ec 04 sub $0x4,%esp 48f: c6 45 e7 25 movb $0x25,-0x19(%ebp) 493: 6a 01 push $0x1 495: 57 push %edi 496: ff 75 08 pushl 0x8(%ebp) 499: e8 e5 fd ff ff call 283 <write> putc(fd, c); } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); 49e: 88 5d e7 mov %bl,-0x19(%ebp) write(fd, &c, 1); 4a1: 83 c4 0c add $0xc,%esp 4a4: 6a 01 push $0x1 4a6: 83 c6 01 add $0x1,%esi 4a9: 57 push %edi 4aa: ff 75 08 pushl 0x8(%ebp) 4ad: e8 d1 fd ff ff call 283 <write> for(i = 0; fmt[i]; i++){ 4b2: 0f b6 5e ff movzbl -0x1(%esi),%ebx putc(fd, c); 4b6: 83 c4 10 add $0x10,%esp } state = 0; 4b9: 31 d2 xor %edx,%edx for(i = 0; fmt[i]; i++){ 4bb: 84 db test %bl,%bl 4bd: 75 8f jne 44e <printf+0x5e> } } } 4bf: 8d 65 f4 lea -0xc(%ebp),%esp 4c2: 5b pop %ebx 4c3: 5e pop %esi 4c4: 5f pop %edi 4c5: 5d pop %ebp 4c6: c3 ret 4c7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 4ce: 66 90 xchg %ax,%ax printint(fd, *ap, 16, 0); 4d0: 83 ec 0c sub $0xc,%esp 4d3: b9 10 00 00 00 mov $0x10,%ecx 4d8: 6a 00 push $0x0 4da: 8b 5d d0 mov -0x30(%ebp),%ebx 4dd: 8b 45 08 mov 0x8(%ebp),%eax 4e0: 8b 13 mov (%ebx),%edx 4e2: e8 59 fe ff ff call 340 <printint> ap++; 4e7: 89 d8 mov %ebx,%eax 4e9: 83 c4 10 add $0x10,%esp state = 0; 4ec: 31 d2 xor %edx,%edx ap++; 4ee: 83 c0 04 add $0x4,%eax 4f1: 89 45 d0 mov %eax,-0x30(%ebp) 4f4: e9 4b ff ff ff jmp 444 <printf+0x54> 4f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi printint(fd, *ap, 10, 1); 500: 83 ec 0c sub $0xc,%esp 503: b9 0a 00 00 00 mov $0xa,%ecx 508: 6a 01 push $0x1 50a: eb ce jmp 4da <printf+0xea> 50c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi putc(fd, *ap); 510: 8b 5d d0 mov -0x30(%ebp),%ebx write(fd, &c, 1); 513: 83 ec 04 sub $0x4,%esp putc(fd, *ap); 516: 8b 03 mov (%ebx),%eax write(fd, &c, 1); 518: 6a 01 push $0x1 ap++; 51a: 83 c3 04 add $0x4,%ebx write(fd, &c, 1); 51d: 57 push %edi 51e: ff 75 08 pushl 0x8(%ebp) putc(fd, *ap); 521: 88 45 e7 mov %al,-0x19(%ebp) write(fd, &c, 1); 524: e8 5a fd ff ff call 283 <write> ap++; 529: 89 5d d0 mov %ebx,-0x30(%ebp) 52c: 83 c4 10 add $0x10,%esp state = 0; 52f: 31 d2 xor %edx,%edx 531: e9 0e ff ff ff jmp 444 <printf+0x54> 536: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 53d: 8d 76 00 lea 0x0(%esi),%esi putc(fd, c); 540: 88 5d e7 mov %bl,-0x19(%ebp) write(fd, &c, 1); 543: 83 ec 04 sub $0x4,%esp 546: e9 59 ff ff ff jmp 4a4 <printf+0xb4> 54b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 54f: 90 nop s = (char*)*ap; 550: 8b 45 d0 mov -0x30(%ebp),%eax 553: 8b 18 mov (%eax),%ebx ap++; 555: 83 c0 04 add $0x4,%eax 558: 89 45 d0 mov %eax,-0x30(%ebp) if(s == 0) 55b: 85 db test %ebx,%ebx 55d: 74 17 je 576 <printf+0x186> while(*s != 0){ 55f: 0f b6 03 movzbl (%ebx),%eax state = 0; 562: 31 d2 xor %edx,%edx while(*s != 0){ 564: 84 c0 test %al,%al 566: 0f 84 d8 fe ff ff je 444 <printf+0x54> 56c: 89 75 d4 mov %esi,-0x2c(%ebp) 56f: 89 de mov %ebx,%esi 571: 8b 5d 08 mov 0x8(%ebp),%ebx 574: eb 1a jmp 590 <printf+0x1a0> s = "(null)"; 576: bb 58 07 00 00 mov $0x758,%ebx while(*s != 0){ 57b: 89 75 d4 mov %esi,-0x2c(%ebp) 57e: b8 28 00 00 00 mov $0x28,%eax 583: 89 de mov %ebx,%esi 585: 8b 5d 08 mov 0x8(%ebp),%ebx 588: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 58f: 90 nop write(fd, &c, 1); 590: 83 ec 04 sub $0x4,%esp s++; 593: 83 c6 01 add $0x1,%esi 596: 88 45 e7 mov %al,-0x19(%ebp) write(fd, &c, 1); 599: 6a 01 push $0x1 59b: 57 push %edi 59c: 53 push %ebx 59d: e8 e1 fc ff ff call 283 <write> while(*s != 0){ 5a2: 0f b6 06 movzbl (%esi),%eax 5a5: 83 c4 10 add $0x10,%esp 5a8: 84 c0 test %al,%al 5aa: 75 e4 jne 590 <printf+0x1a0> 5ac: 8b 75 d4 mov -0x2c(%ebp),%esi state = 0; 5af: 31 d2 xor %edx,%edx 5b1: e9 8e fe ff ff jmp 444 <printf+0x54> 5b6: 66 90 xchg %ax,%ax 5b8: 66 90 xchg %ax,%ax 5ba: 66 90 xchg %ax,%ax 5bc: 66 90 xchg %ax,%ax 5be: 66 90 xchg %ax,%ax 000005c0 <free>: static Header base; static Header *freep; void free(void *ap) { 5c0: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 5c1: a1 00 0a 00 00 mov 0xa00,%eax { 5c6: 89 e5 mov %esp,%ebp 5c8: 57 push %edi 5c9: 56 push %esi 5ca: 53 push %ebx 5cb: 8b 5d 08 mov 0x8(%ebp),%ebx 5ce: 8b 10 mov (%eax),%edx bp = (Header*)ap - 1; 5d0: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 5d3: 39 c8 cmp %ecx,%eax 5d5: 73 19 jae 5f0 <free+0x30> 5d7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 5de: 66 90 xchg %ax,%ax 5e0: 39 d1 cmp %edx,%ecx 5e2: 72 14 jb 5f8 <free+0x38> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 5e4: 39 d0 cmp %edx,%eax 5e6: 73 10 jae 5f8 <free+0x38> { 5e8: 89 d0 mov %edx,%eax for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 5ea: 8b 10 mov (%eax),%edx 5ec: 39 c8 cmp %ecx,%eax 5ee: 72 f0 jb 5e0 <free+0x20> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 5f0: 39 d0 cmp %edx,%eax 5f2: 72 f4 jb 5e8 <free+0x28> 5f4: 39 d1 cmp %edx,%ecx 5f6: 73 f0 jae 5e8 <free+0x28> break; if(bp + bp->s.size == p->s.ptr){ 5f8: 8b 73 fc mov -0x4(%ebx),%esi 5fb: 8d 3c f1 lea (%ecx,%esi,8),%edi 5fe: 39 fa cmp %edi,%edx 600: 74 1e je 620 <free+0x60> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 602: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 605: 8b 50 04 mov 0x4(%eax),%edx 608: 8d 34 d0 lea (%eax,%edx,8),%esi 60b: 39 f1 cmp %esi,%ecx 60d: 74 28 je 637 <free+0x77> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 60f: 89 08 mov %ecx,(%eax) freep = p; } 611: 5b pop %ebx freep = p; 612: a3 00 0a 00 00 mov %eax,0xa00 } 617: 5e pop %esi 618: 5f pop %edi 619: 5d pop %ebp 61a: c3 ret 61b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 61f: 90 nop bp->s.size += p->s.ptr->s.size; 620: 03 72 04 add 0x4(%edx),%esi 623: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 626: 8b 10 mov (%eax),%edx 628: 8b 12 mov (%edx),%edx 62a: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 62d: 8b 50 04 mov 0x4(%eax),%edx 630: 8d 34 d0 lea (%eax,%edx,8),%esi 633: 39 f1 cmp %esi,%ecx 635: 75 d8 jne 60f <free+0x4f> p->s.size += bp->s.size; 637: 03 53 fc add -0x4(%ebx),%edx freep = p; 63a: a3 00 0a 00 00 mov %eax,0xa00 p->s.size += bp->s.size; 63f: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 642: 8b 53 f8 mov -0x8(%ebx),%edx 645: 89 10 mov %edx,(%eax) } 647: 5b pop %ebx 648: 5e pop %esi 649: 5f pop %edi 64a: 5d pop %ebp 64b: c3 ret 64c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00000650 <malloc>: return freep; } void* malloc(uint nbytes) { 650: 55 push %ebp 651: 89 e5 mov %esp,%ebp 653: 57 push %edi 654: 56 push %esi 655: 53 push %ebx 656: 83 ec 1c sub $0x1c,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 659: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 65c: 8b 3d 00 0a 00 00 mov 0xa00,%edi nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 662: 8d 70 07 lea 0x7(%eax),%esi 665: c1 ee 03 shr $0x3,%esi 668: 83 c6 01 add $0x1,%esi if((prevp = freep) == 0){ 66b: 85 ff test %edi,%edi 66d: 0f 84 ad 00 00 00 je 720 <malloc+0xd0> base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 673: 8b 07 mov (%edi),%eax if(p->s.size >= nunits){ 675: 8b 48 04 mov 0x4(%eax),%ecx 678: 39 f1 cmp %esi,%ecx 67a: 73 71 jae 6ed <malloc+0x9d> 67c: 81 fe 00 10 00 00 cmp $0x1000,%esi 682: bb 00 10 00 00 mov $0x1000,%ebx 687: 0f 43 de cmovae %esi,%ebx p = sbrk(nu * sizeof(Header)); 68a: 8d 0c dd 00 00 00 00 lea 0x0(,%ebx,8),%ecx 691: 89 4d e4 mov %ecx,-0x1c(%ebp) 694: eb 1b jmp 6b1 <malloc+0x61> 696: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 69d: 8d 76 00 lea 0x0(%esi),%esi for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 6a0: 8b 10 mov (%eax),%edx if(p->s.size >= nunits){ 6a2: 8b 4a 04 mov 0x4(%edx),%ecx 6a5: 39 f1 cmp %esi,%ecx 6a7: 73 4f jae 6f8 <malloc+0xa8> 6a9: 8b 3d 00 0a 00 00 mov 0xa00,%edi 6af: 89 d0 mov %edx,%eax p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 6b1: 39 c7 cmp %eax,%edi 6b3: 75 eb jne 6a0 <malloc+0x50> p = sbrk(nu * sizeof(Header)); 6b5: 83 ec 0c sub $0xc,%esp 6b8: ff 75 e4 pushl -0x1c(%ebp) 6bb: e8 2b fc ff ff call 2eb <sbrk> if(p == (char*)-1) 6c0: 83 c4 10 add $0x10,%esp 6c3: 83 f8 ff cmp $0xffffffff,%eax 6c6: 74 1b je 6e3 <malloc+0x93> hp->s.size = nu; 6c8: 89 58 04 mov %ebx,0x4(%eax) free((void*)(hp + 1)); 6cb: 83 ec 0c sub $0xc,%esp 6ce: 83 c0 08 add $0x8,%eax 6d1: 50 push %eax 6d2: e8 e9 fe ff ff call 5c0 <free> return freep; 6d7: a1 00 0a 00 00 mov 0xa00,%eax if((p = morecore(nunits)) == 0) 6dc: 83 c4 10 add $0x10,%esp 6df: 85 c0 test %eax,%eax 6e1: 75 bd jne 6a0 <malloc+0x50> return 0; } } 6e3: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 6e6: 31 c0 xor %eax,%eax } 6e8: 5b pop %ebx 6e9: 5e pop %esi 6ea: 5f pop %edi 6eb: 5d pop %ebp 6ec: c3 ret if(p->s.size >= nunits){ 6ed: 89 c2 mov %eax,%edx 6ef: 89 f8 mov %edi,%eax 6f1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(p->s.size == nunits) 6f8: 39 ce cmp %ecx,%esi 6fa: 74 54 je 750 <malloc+0x100> p->s.size -= nunits; 6fc: 29 f1 sub %esi,%ecx 6fe: 89 4a 04 mov %ecx,0x4(%edx) p += p->s.size; 701: 8d 14 ca lea (%edx,%ecx,8),%edx p->s.size = nunits; 704: 89 72 04 mov %esi,0x4(%edx) freep = prevp; 707: a3 00 0a 00 00 mov %eax,0xa00 } 70c: 8d 65 f4 lea -0xc(%ebp),%esp return (void*)(p + 1); 70f: 8d 42 08 lea 0x8(%edx),%eax } 712: 5b pop %ebx 713: 5e pop %esi 714: 5f pop %edi 715: 5d pop %ebp 716: c3 ret 717: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 71e: 66 90 xchg %ax,%ax base.s.ptr = freep = prevp = &base; 720: c7 05 00 0a 00 00 04 movl $0xa04,0xa00 727: 0a 00 00 base.s.size = 0; 72a: bf 04 0a 00 00 mov $0xa04,%edi base.s.ptr = freep = prevp = &base; 72f: c7 05 04 0a 00 00 04 movl $0xa04,0xa04 736: 0a 00 00 for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 739: 89 f8 mov %edi,%eax base.s.size = 0; 73b: c7 05 08 0a 00 00 00 movl $0x0,0xa08 742: 00 00 00 if(p->s.size >= nunits){ 745: e9 32 ff ff ff jmp 67c <malloc+0x2c> 74a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi prevp->s.ptr = p->s.ptr; 750: 8b 0a mov (%edx),%ecx 752: 89 08 mov %ecx,(%eax) 754: eb b1 jmp 707 <malloc+0xb7>
test/Succeed/Issue5765.agda
KDr2/agda
1
4459
<filename>test/Succeed/Issue5765.agda {-# OPTIONS --allow-unsolved-metas #-} open import Agda.Builtin.Equality postulate @0 A : Set @0 f : (X : Set) β†’ A ≑ X β†’ Set f X refl = {!!}
grammar/ApiFilter.g4
fattureincloud/api-filter
1
2929
grammar ApiFilter; /* * Parser Rules */ filter: expression EOF; expression: condition # conditionExp | pattern # patternExp | OPEN_PAR expression CLOSE_PAR # parenthesisExp | expression AND expression # conjunctionExp | expression OR expression # disjunctionExp; condition: comparison # comparisonCondition | emptyfield # emptyCondition | filledfield # filledCondition; comparison: FIELD comparisonop value; emptyfield: FIELD (EQ | IS) NULL; filledfield: FIELD (NEQ | IS NOT) NULL; comparisonop: EQ | GT | GTE | LT | LTE | NEQ; value: (BOOL | STRING | integer | decimal); pattern: FIELD patternop STRING; patternop: LIKE | CONTAINS | STARTSWITH | ENDSWITH; integer: INT; decimal: INT DOT INT; /* * Lexer Rules */ EQ: '='; GT: '>'; GTE: '>='; LT: '<'; LTE: '<='; NEQ: ('<>' | '!='); LIKE: ('like' | 'LIKE'); CONTAINS: ('contains' | 'CONTAINS'); STARTSWITH: STARTS ' '* WITH; ENDSWITH: ENDS ' '* WITH; STARTS: ('starts' | 'STARTS'); ENDS: ('ends' | 'ENDS'); WITH: ('with' | 'WITH'); BOOL: ('true' | 'false'); STRING: '\'' ( ~'\'' | '\'\'')+ '\''; AND: ('and' | 'AND'); OR: ('or' | 'OR'); IS: ('is' | 'IS'); NULL: ('null' | 'NULL'); NOT: ('not' | 'NOT'); OPEN_PAR: '('; CLOSE_PAR: ')'; INT: (DIGIT)+; DOT: '.'; FIELD: LOWERCASE (( LOWERCASE | '_' | DOT)* LOWERCASE)?; fragment LOWERCASE: [a-z]; fragment UPPERCASE: [A-Z]; fragment DIGIT: [0-9]; WS: [ \t\r\n]+ -> skip;
oeis/016/A016975.asm
neoneye/loda-programs
11
101299
; A016975: a(n) = (6*n + 5)^7. ; 78125,19487171,410338673,3404825447,17249876309,64339296875,194754273881,506623120463,1174711139837,2488651484819,4902227890625,9095120158391,16048523266853,27136050989627,44231334895529,69833729609375,107213535210701,160578147647843,235260548044817,337931541778439,476837158203125,662062621900811,905824306333433,1222791080775407,1630436461403549,2149422977421875,2804020163098721,3622557586593623,4637914326451397,5888046306640859,7416552901015625,9273284218074431,11514990476898413 mul $0,6 add $0,5 pow $0,7
programs/oeis/285/A285076.asm
karttu/loda
0
18937
<reponame>karttu/loda ; A285076: 1-limiting word of the morphism 0->10, 1-> 010. ; 1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1 mov $3,$0 mov $5,2 lpb $5,1 mov $0,$3 sub $5,1 add $0,$5 sub $0,1 mul $0,2 pow $0,2 mov $4,2 lpb $0,1 add $4,4 trn $0,$4 lpe mov $2,$5 add $4,6 lpb $2,1 mov $1,$4 sub $2,1 lpe lpe lpb $3,1 sub $1,$4 mov $3,0 lpe sub $1,4 div $1,4
Ada/inc/Problem_06.ads
Tim-Tom/project-euler
0
10357
<reponame>Tim-Tom/project-euler package Problem_06 is procedure Solve; end Problem_06;
Seagull/Grammar/SeagullLexer.g4
pacojq/Seagull
5
3845
lexer grammar SeagullLexer; channels { DIRECTIVE } // Fragments fragment DIGIT: [0-9] ; fragment LETTER: [a-zA-Z] ; fragment REAL: INT_CONSTANT? '.' DIGIT+ | INT_CONSTANT '.' DIGIT* ; fragment NL: ('\n' | '\r' | '\r\n') ; fragment TRUE: 'true' ; fragment FALSE: 'false' ; // Compiler directives SHARP: '#' -> mode(DIRECTIVE_MODE); // Types VOID: 'void' ; INT: 'int' ; CHAR: 'char' ; DOUBLE: 'double' ; STRING: 'string' ; STRUCT: 'struct' ; LONG: 'long' ; BYTE: 'byte' ; ENUM: 'enum' ; // TODO LAMBDA: 'lambda' ; // TODO delegate -> lambda CLASS: 'class' ; // TODO ? VAR: 'var' ; // TODO type inference // Keywords NULL: 'null' ; // TODO PTR: 'ptr' ; // TODO ANY: 'any' ; // TODO ? the Java Object equivalent. Any type, literally IF: 'if' ; ELSE: 'else' ; WHILE: 'while' ; FOR: 'for' ; IN: 'in'; SWITCH: 'switch' ; // TODO CASE: 'case' ; // TODO BREAK: 'break' ; CONTINUE: 'continue'; NEW: 'new' ; DELETE: 'delete' ; // TODO RETURN: 'return' ; PRINT: 'print' ; READ: 'read' ; ASSERT: 'assert' ; // TODO DELAY: 'delay' ; // Access modifiers PUBLIC: 'public' ; // TODO PROTECTED: 'protected' ; // TODO PRIVATE: 'private' ; // TODO FRIEND: 'friend' ; // TODO friend namespaces // friend namespace 'name' { 'available access nodifiers' } NULLABLE: 'nullable' ; // ? CONST: 'const' ; // TODO OVERRIDE: 'override' ; // TODO ? LOCKED: 'locked' ; // TODO ? - prevents overrides ABSTRACT: 'abstract' ; // TODO ? LINK: 'link' ; IMPORT: 'import' ; NAMESPACE: 'namespace' ; // TODO OWNED: 'owned' ; // "Imports" all namespace definitions inside // the current namespace, so we can reference them // in a transparent way. // // Vector : struct { X: int; Y: int; Z: int; } // // Transform : struct { // owned Position : Vector; // } // // ... // t := new Transform; // t.X += 5; // print( t.Y ); // ... // IS: 'is' ; // TODO DEFAULT: 'default' ; // TODO ? // Signs and Operators DOT: '.' ; COMMA: ',' ; COL: ':' ; SEMI_COL: ';' ; ASSIGN: '=' ; STAR: '*' ; SLASH: '/' ; PERCENT: '%' ; ARROW: '->' ; QUESTION: '?' ; PLUS: '+' ; MINUS: '-' ; ADDRESS: '@' ; // TODO pointers: @int ?? // int a = 3; // @int ptr_a = @a; // // ... then how do we take the value of a pointer? // $prt_a = 5; // TODO PLUS_PLUS: '++' ; MINUS_MINUS: '--' ; //TODO compound assignments ASSIGN_MUL: '*=' ; ASSIGN_DIV: '/=' ; ASSIGN_MOD: '%=' ; ASSIGN_SUM: '+=' ; ASSIGN_SUB: '-=' ; NOT: '!' ; AND: '&&' ; OR: '||' ; L_BRACKET: '[' ; R_BRACKET: ']' ; L_PAR: '(' ; R_PAR: ')' ; L_CURL: '{' ; R_CURL: '}' ; // TODO BIT_AND: '&' ; BIT_OR: '|' ; BIT_XOR: '^' ; BIT_NOT: '~' ; BIT_RIGHT: '>>' ; // ? BIT_LEFT: '<<' ; // ? EQUAL: '==' ; NOT_EQUAL: '!=' ; LESS_THAN: '<' ; GREATER_THAN: '>' ; LESS_EQ_THAN: '<=' ; GREATER_EQ_THAN: '>=' ; // IDs and Constants BOOLEAN_CONSTANT: TRUE | FALSE ; INT_CONSTANT: '0' | [1-9] [0-9]* ; REAL_CONSTANT: REAL | INT_CONSTANT | (REAL | INT_CONSTANT) ('e' | 'E') '-'? INT_CONSTANT ; CHAR_CONSTANT: '\'' . '\'' | '\'\\' ([tnr] | '\\' | '\'') '\'' | '\'\\' INT_CONSTANT '\'' ; STRING_CONSTANT: '"' .*? '"' ; ID: ('_' | LETTER) ('_' | DIGIT | LETTER)* ; // Comments SL_COMMENT: '//' .*? (NL | EOF) -> skip; ML_COMMENT : '/*' ('/'*? ML_COMMENT | ('/'* | '*'*) ~[/*])*? '*'*? '*/' -> skip; BLANKS: (' ' | '\t' | NL)+ -> skip; // ==================================================== // // // // COMPILER DIRECTIVES // // // // ==================================================== // mode DIRECTIVE_MODE; DIR_DEFINE: 'define' ; DIR_IF: 'if' ; DIR_ELIF: 'elif' ; DIR_ELSE: 'else' ; DIR_WHITESPACE: BLANKS -> channel(HIDDEN); DIR_ML_COMMENT: ML_COMMENT -> channel(HIDDEN); DIR_NEWLINE: (NL | SL_COMMENT) -> channel(HIDDEN), mode(DEFAULT_MODE);
source/league/matreshka-internals-regexps.ads
svn2github/matreshka
0
12193
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Localization, Internationalization, Globalization for Ada -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright Β© 2010-2011, <NAME> <<EMAIL>> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Matreshka.Atomics.Counters; with Matreshka.Internals.Strings; with Matreshka.Internals.Unicode.Ucd; with Matreshka.Internals.Utf16; package Matreshka.Internals.Regexps is pragma Preelaborate; ------------- -- Pattern -- ------------- -- Abstract Syntax Tree type General_Category_Flags is array (Matreshka.Internals.Unicode.Ucd.General_Category) of Boolean; pragma Pack (General_Category_Flags); type Property_Kinds is (None, General_Category, Binary); type Property_Value (Kind : Property_Kinds := None) is record case Kind is when None => null; when General_Category => GC_Flags : General_Category_Flags; when Binary => Property : Matreshka.Internals.Unicode.Ucd.Boolean_Properties; end case; end record; type Node_List is record Parent : Natural; Head : Natural; Tail : Natural; end record; type Node_List_Count is new Natural; subtype Node_List_Index is Node_List_Count range 1 .. Node_List_Count'Last; type Node_Kinds is (N_None, N_Subexpression, N_Match_Any, N_Match_Code, N_Match_Property, N_Member_Code, N_Member_Range, N_Member_Property, N_Character_Class, N_Multiplicity, N_Alternation, N_Anchor); type Node (Kind : Node_Kinds := N_None) is record case Kind is when N_None => null; when others => List : Node_List_Count; Previous : Natural; Next : Natural; -- Doubly linked list of nodes. case Kind is when N_None => null; when N_Subexpression => Subexpression : Node_List_Count; Capture : Boolean; Index : Natural; when N_Match_Any => null; when N_Match_Code | N_Member_Code => Code : Matreshka.Internals.Unicode.Code_Point; -- Code point to match or code point as member of character -- class. when N_Match_Property | N_Member_Property => Value : Property_Value; Negative : Boolean; when N_Member_Range => Low : Matreshka.Internals.Unicode.Code_Point; High : Matreshka.Internals.Unicode.Code_Point; -- Range of code points as member of character class when N_Character_Class => Negated : Boolean; Members : Node_List_Count; when N_Multiplicity => Item : Node_List_Count; -- Link to expression Greedy : Boolean; Lower : Natural; Upper : Natural; when N_Alternation => Preferred : Node_List_Count; Fallback : Node_List_Count; when N_Anchor => Start_Of_Line : Boolean; End_Of_Line : Boolean; end case; end case; end record; type AST_Array is array (Positive range <>) of Node; type Node_List_Array is array (Node_List_Index range <>) of Node_List; type Shared_Pattern (Size : Natural; List_Size : Node_List_Count) is limited record Counter : Matreshka.Atomics.Counters.Counter; -- Atomic reference counter. AST : AST_Array (1 .. Size); List : Node_List_Array (1 .. List_Size); Last : Natural := 0; Last_List : Node_List_Count := 0; Start : Node_List_Count := 0; Captures : Natural := 0; end record; type Shared_Pattern_Access is access all Shared_Pattern; Empty_Shared_Pattern : aliased Shared_Pattern (0, 0); procedure Reference (Item : not null Shared_Pattern_Access); procedure Dereference (Item : in out Shared_Pattern_Access); ----------- -- Match -- ----------- type Shared_String_Array is array (Natural range <>) of aliased Matreshka.Internals.Strings.Shared_String_Access; type Slice is record First_Position : Matreshka.Internals.Utf16.Utf16_String_Index; First_Index : Positive; Next_Position : Matreshka.Internals.Utf16.Utf16_String_Index; Next_Index : Positive; end record; -- Slice represent slice in the source Shared_String. Next points to the -- first character after the slice. type Slice_Array is array (Natural range <>) of Slice; type Shared_Match (Groups : Natural) is limited record Counter : Matreshka.Atomics.Counters.Counter; -- Atomic reference counter. Is_Matched : Boolean := False; -- Flag is object contains match information or not. Source : Matreshka.Internals.Strings.Shared_String_Access; -- Reference to source string. Number : Natural; -- Number of actual subexpression captures. Slices : Slice_Array (0 .. Groups); -- Slices of captured data. Captures : Shared_String_Array (0 .. Groups); pragma Volatile (Captures); -- Actual captured data. end record; -- Shared match is a results of the match of the string to pattern. When -- shared object is constructed, only slices information is filled. Actual -- captures is constructed lazy on request. type Shared_Match_Access is access all Shared_Match; Empty_Shared_Match : aliased Shared_Match := (Groups => 0, Counter => <>, Is_Matched => False, Source => null, Number => 0, Slices => (others => (0, 1, 0, 1)), Captures => (others => null)); procedure Reference (Item : not null Shared_Match_Access); procedure Dereference (Item : in out Shared_Match_Access); function Capture (Item : not null Shared_Match_Access; Number : Natural) return not null Matreshka.Internals.Strings.Shared_String_Access; end Matreshka.Internals.Regexps;
hello.adb
jacksonchen07/HelloAda
0
1638
<reponame>jacksonchen07/HelloAda<gh_stars>0 with Ada.Text_IO; with Ada.Strings.Unbounded; with Ada.Text_IO.Unbounded_IO; procedure Hello is use Ada.Text_IO; use Ada.Strings.Unbounded; use Ada.Text_IO.Unbounded_IO; Name : Unbounded_String; begin -- Using full package name because it would be ambigous with all the String packages Ada.Text_IO.Put ("What is your name? "); Name := To_Unbounded_String (Get_Line); Put_Line ("Hi " & To_String (Name) & "!"); Put_Line("Hello/Goodbye World Program: "); new_line; for I in 1 .. 6 loop if 2 mod I = 0 then -- the first 3rd and 5th loop says hello and the 2nd 4ht and 6th loop says goodbye Put_Line ("Goodbye Ada!"); else Put_Line ("Hello Ada!"); end if; end loop; -- Refer to line 11 Ada.Text_IO.Put ("Bye " & To_String (Name) & "!"); end Hello;
picross/isr2p.asm
msliczniak/octo
0
20869
<gh_stars>0 ; Origin set to 00200H, EOF = 00250H ORG 00200H ; CPU Type: CPU 1805 ; Labels: R0203 EQU 0203H R0204 EQU 0204H R0215 EQU 0215H R021C EQU 021CH R0229 EQU 0229H R0238 EQU 0238H ; Unused or indirect labels: ; S0230 ; S0245 ; Register Definitions: R0 EQU 0 R1 EQU 1 R2 EQU 2 R3 EQU 3 R4 EQU 4 R5 EQU 5 R6 EQU 6 R7 EQU 7 R8 EQU 8 R9 EQU 9 RA EQU 10 RB EQU 11 RC EQU 12 RD EQU 13 RE EQU 14 RF EQU 15 ; Start code segment DB 12H ;0200: 12 DB 60H ;0201: 60 DB 01H ;0202: 01 R0203 REQ ;0203: 7A R0204 LDA R2 ;0204: 42 RET ;0205: 70 DEC R2 ;0206: 22 SAV ;0207: 78 DEC R2 ;0208: 22 STR R2 ;0209: 52 NOP ;020A: C4 INC R9 ;020B: 19 LDI 00H ;020C: F8 00 PLO R0 ;020E: A0 GHI RB ;020F: 9B ANI 0EH ;0210: FA 0E PHI R0 ;0212: B0 SEX R2 ;0213: E2 SEX R2 ;0214: E2 R0215 GLO R0 ;0215: 80 SEX R2 ;0216: E2 DEC R0 ;0217: 20 PLO R0 ;0218: A0 SEX R2 ;0219: E2 BN1 R0215 ;021A: 3C 15 R021C GLO R0 ;021C: 80 SEX R2 ;021D: E2 DEC R0 ;021E: 20 PLO R0 ;021F: A0 B1 R021C ;0220: 34 1C GHI R8 ;0222: 98 BZ R0229 ;0223: 32 29 PLO RB ;0225: AB DEC RB ;0226: 2B GLO RB ;0227: 8B PHI R8 ;0228: B8 R0229 GLO R8 ;0229: 88 BZ R0203 ;022A: 32 03 SEQ ;022C: 7B DEC R8 ;022D: 28 BR R0204 ;022E: 30 04 S0230 LDI 02H ;0230: F8 02 PLO RE ;0232: AE GHI RB ;0233: 9B PHI RF ;0234: BF LDI 00H ;0235: F8 00 PLO RF ;0237: AF R0238 LDI 00H ;0238: F8 00 STR RF ;023A: 5F INC RF ;023B: 1F GLO RF ;023C: 8F BNZ R0238 ;023D: 3A 38 DEC RE ;023F: 2E GLO RE ;0240: 8E BNZ R0238 ;0241: 3A 38 SEP R4 ;0243: D4 DB 01H ;0244: 01 S0245 GHI RB ;0245: 9B SMI 01H ;0246: FF 01 PHI RB ;0248: BB SEP R4 ;0249: D4 DB 00H ;024A: 00 DB 00H ;024B: 00 DB 00H ;024C: 00 DB 00H ;024D: 00 DB 00H ;024E: 00 DB 00H ;024F: 00 DB 92H ;0250: 92 END
Dump/hybos/src/kernel/kstart.asm
cwolsen7905/UbixOS
0
165419
<filename>Dump/hybos/src/kernel/kstart.asm<gh_stars>0 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; 32-bit kernel startup code ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; %include "asm.inc" SECTION .text ;SEGMENT _TEXT USE32 CLASS=CODE ;BITS 32 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; entry point ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; GLOBAL entry entry: ; check if data segment linked, located, and loaded properly mov eax,[ds_magic] cmp eax,DS_MAGIC je ds_ok ; display a blinking white-on-blue 'D' and freeze mov word [0B8000h],9F44h jmp short $ ds_ok: ; stop using bootloader GDT, and load new GDT lgdt [gdt_ptr] mov ax,LINEAR_DATA_SEL mov ds,ax mov es,ax mov ss,ax mov fs,ax mov gs,ax jmp LINEAR_CODE_SEL:sbat sbat: ; zero the C language BSS ; 'bss' and 'end' are defined in the linker script file EXTERN bss, end mov edi,bss mov ecx,end sub ecx,edi xor eax,eax rep stosb mov esp,stack ; set up interrupt handlers, then load IDT register mov ecx,(idt_end - idt) >> 3 ; number of exception handlers mov edi,idt mov esi,isr0 do_idt: mov eax,esi ; EAX=offset of entry point mov [edi],ax ; set low 16 bits of gate offset shr eax,16 mov [edi + 6],ax ; set high 16 bits of gate offset add edi,8 ; 8 bytes/interrupt gate add esi,(isr1 - isr0) ; bytes/stub loop do_idt lidt [idt_ptr] ; GRUB 0.90 leaves the NT bit set in EFLAGS. The first IRET we attempt ; will cause a TSS-based task-switch, which will cause Exception 10. ; Let's prevent that: push dword 2 popf IMP main call main ; call C code jmp $ ; freeze ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Multiboot header for GRUB bootloader. This must be in the first 8K ; of the kernel file. We use the aout kludge so it works with ELF, ; DJGPP COFF, Win32 PE, or other formats. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; these are in the linker script file EXTERN code, bss, end ALIGN 4 mboot: dd MULTIBOOT_HEADER_MAGIC dd MULTIBOOT_HEADER_FLAGS dd MULTIBOOT_CHECKSUM ; aout kludge. These must be PHYSICAL addresses dd mboot dd code dd bss dd end dd entry ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; interrupt/exception handlers ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IMP fault ; I shouldn't have to do this! %macro PUSHB 1 db 6Ah db %1 %endmacro %macro INTR 1 ; (byte offset from start of stub) isr%1: push byte 0 ; ( 0) fake error code PUSHB %1 ; ( 2) exception number push gs ; ( 4) push segment registers push fs ; ( 6) push es ; ( 8) push ds ; ( 9) pusha ; (10) push GP registers mov ax,LINEAR_DATA_SEL ; (11) put known-good values... mov ds,eax ; (15) ...in segment registers mov es,eax ; (17) mov fs,eax ; (19) mov gs,eax ; (21) mov eax,esp ; (23) push eax ; (25) push pointer to regs_t .1: ; setvect() changes the operand of the CALL instruction at run-time, ; so we need its location = 27 bytes from start of stub. We also want ; the CALL to use absolute addressing instead of EIP-relative, so: mov eax,fault ; (26) call eax ; (31) jmp all_ints ; (33) %endmacro ; (38) %macro INTR_EC 1 isr%1: nop ; error code already pushed nop ; nop+nop=same length as push byte PUSHB %1 ; ( 2) exception number push gs ; ( 4) push segment registers push fs ; ( 6) push es ; ( 8) push ds ; ( 9) pusha ; (10) push GP registers mov ax,LINEAR_DATA_SEL ; (11) put known-good values... mov ds,eax ; (15) ...in segment registers mov es,eax ; (17) mov fs,eax ; (19) mov gs,eax ; (21) mov eax,esp ; (23) push eax ; (25) push pointer to regs_t .1: ; setvect() changes the operand of the CALL instruction at run-time, ; so we need its location = 27 bytes from start of stub. We also want ; the CALL to use absolute addressing instead of EIP-relative, so: mov eax,fault ; (26) call eax ; (31) jmp all_ints ; (33) %endmacro ; (38) ; the vector within the stub (operand of the CALL instruction) ; is at (isr0.1 - isr0 + 1) all_ints: pop eax popa ; pop GP registers pop ds ; pop segment registers pop es pop fs pop gs add esp,8 ; drop exception number and error code iret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; name: getvect ; action: reads interrupt vector ; in: [EBP + 12] = vector number ; out: vector stored at address given by [EBP + 8] ; modifies: EAX, EDX ; minimum CPU: '386+ ; notes: C prototype: ; typedef struct ; { unsigned access_byte, eip; } vector_t; ; getvect(vector_t *v, unsigned vect_num); ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; EXP getvect push ebp mov ebp,esp push esi push ebx mov esi,[ebp + 8] ; get access byte from IDT[i] xor ebx,ebx mov bl,[ebp + 12] shl ebx,3 mov al,[idt + ebx + 5] mov [esi + 0],eax ; get handler address from stub mov eax,isr1 sub eax,isr0 ; assume stub size < 256 bytes mul byte [ebp + 12] mov ebx,eax add ebx,isr0 mov eax,[ebx + (isr0.1 - isr0 + 1)] mov [esi + 4],eax pop ebx pop esi pop ebp ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; name: setvect ; action: writes interrupt vector ; in: [EBP + 12] = vector number, ; vector stored at address given by [EBP + 8] ; out: (nothing) ; modifies: EAX, EDX ; minimum CPU: '386+ ; notes: C prototype: ; typedef struct ; { unsigned access_byte, eip; } vector_t; ; getvect(vector_t *v, unsigned vect_num); ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; EXP setvect push ebp mov ebp,esp push esi push ebx mov esi,[ebp + 8] ; store access byte in IDT[i] mov eax,[esi + 0] xor ebx,ebx mov bl,[ebp + 12] shl ebx,3 mov [idt + ebx + 5],al ; store handler address in stub mov eax,isr1 sub eax,isr0 ; assume stub size < 256 bytes mul byte [ebp + 12] mov ebx,eax add ebx,isr0 mov eax,[esi + 4] mov [ebx + (isr0.1 - isr0 + 1)],eax pop ebx pop esi pop ebp ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; interrupt/exception stubs ; *** CAUTION: these must be consecutive, and must all be the same size. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; INTR 0 ; zero divide (fault) INTR 1 ; debug/single step INTR 2 ; non-maskable interrupt (trap) INTR 3 ; INT3 (trap) INTR 4 ; INTO (trap) INTR 5 ; BOUND (fault) INTR 6 ; invalid opcode (fault) INTR 7 ; coprocessor not available (fault) INTR_EC 8 ; double fault (abort w/ error code) INTR 9 ; coproc segment overrun (abort; 386/486SX only) INTR_EC 0Ah ; bad TSS (fault w/ error code) INTR_EC 0Bh ; segment not present (fault w/ error code) INTR_EC 0Ch ; stack fault (fault w/ error code) INTR_EC 0Dh ; GPF (fault w/ error code) INTR_EC 0Eh ; page fault INTR 0Fh ; reserved INTR 10h ; FP exception/coprocessor error (trap) INTR 11h ; alignment check (trap; 486+ only) INTR 12h ; machine check (Pentium+ only) INTR 13h INTR 14h INTR 15h INTR 16h INTR 17h INTR 18h INTR 19h INTR 1Ah INTR 1Bh INTR 1Ch INTR 1Dh INTR 1Eh INTR 1Fh ; isr20 through isr2F are hardware interrupts. The 8259 programmable ; interrupt controller (PIC) chips must be reprogrammed to make these work. INTR 20h ; IRQ 0/timer interrupt INTR 21h ; IRQ 1/keyboard interrupt INTR 22h INTR 23h INTR 24h INTR 25h INTR 26h ; IRQ 6/floppy interrupt INTR 27h INTR 28h ; IRQ 8/real-time clock interrupt INTR 29h INTR 2Ah INTR 2Bh INTR 2Ch INTR 2Dh ; IRQ 13/math coprocessor interrupt INTR 2Eh ; IRQ 14/primary ATA ("IDE") drive interrupt INTR 2Fh ; IRQ 15/secondary ATA drive interrupt ; syscall software interrupt INTR 30h ; the other 207 vectors are undefined %assign i 31h %rep (0FFh - 30h) INTR i %assign i (i + 1) %endrep ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SECTION .data ;SEGMENT _DATA USE32 CLASS=DATA ds_magic: dd DS_MAGIC gdt: ; NULL descriptor dw 0 ; limit 15:0 dw 0 ; base 15:0 db 0 ; base 23:16 db 0 ; type db 0 ; limit 19:16, flags db 0 ; base 31:24 ; unused descriptor dw 0 dw 0 db 0 db 0 db 0 db 0 LINEAR_DATA_SEL equ $-gdt dw 0FFFFh dw 0 db 0 db 92h ; present, ring 0, data, expand-up, writable db 0CFh ; page-granular (4 gig limit), 32-bit db 0 LINEAR_CODE_SEL equ $-gdt dw 0FFFFh dw 0 db 0 db 9Ah ; present,ring 0,code,non-conforming,readable db 0CFh ; page-granular (4 gig limit), 32-bit db 0 gdt_end: gdt_ptr: dw gdt_end - gdt - 1 dd gdt ; 256 ring 0 interrupt gates idt: %rep 256 dw 0 ; offset 15:0 dw LINEAR_CODE_SEL ; selector db 0 ; (always 0 for interrupt gates) db 8Eh ; present,ring 0,'386 interrupt gate dw 0 ; offset 31:16 %endrep idt_end: idt_ptr: dw idt_end - idt - 1 ; IDT limit dd idt ; linear adr of IDT ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SECTION .bss ;SEGMENT _BSS USE32 CLASS=BSS resd 1024 stack:
pmd-kotlin/src/main/antlr4/KotlinLexer.g4
NileshVirkar/pmd
0
1437
/** * Kotlin Grammar for ANTLR v4 * * Based on: * http://jetbrains.github.io/kotlin-spec/#_grammars_and_parsing * and * http://kotlinlang.org/docs/reference/grammar.html * * Tested on * https://github.com/JetBrains/kotlin/tree/master/compiler/testData/psi */ lexer grammar KotlinLexer; import UnicodeClasses; ShebangLine : '#!' ~[\u000A\u000D]* -> channel(HIDDEN) ; DelimitedComment : '/*' ( DelimitedComment | . )*? '*/' -> channel(HIDDEN) ; LineComment : '//' ~[\u000A\u000D]* -> channel(HIDDEN) ; WS : [\u0020\u0009\u000C] -> skip ; NL: '\u000A' | '\u000D' '\u000A' ; //SEPARATORS & OPERATIONS RESERVED: '...' ; DOT: '.' ; COMMA: ',' ; LPAREN: '(' -> pushMode(Inside) ; RPAREN: ')' ; LSQUARE: '[' -> pushMode(Inside) ; RSQUARE: ']' ; LCURL: '{' ; RCURL: '}' ; MULT: '*' ; MOD: '%' ; DIV: '/' ; ADD: '+' ; SUB: '-' ; INCR: '++' ; DECR: '--' ; CONJ: '&&' ; DISJ: '||' ; EXCL: '!' ; COLON: ':' ; SEMICOLON: ';' ; ASSIGNMENT: '=' ; ADD_ASSIGNMENT: '+=' ; SUB_ASSIGNMENT: '-=' ; MULT_ASSIGNMENT: '*=' ; DIV_ASSIGNMENT: '/=' ; MOD_ASSIGNMENT: '%=' ; ARROW: '->' ; DOUBLE_ARROW: '=>' ; RANGE: '..' ; COLONCOLON: '::' ; Q_COLONCOLON: '?::' ; DOUBLE_SEMICOLON: ';;' ; HASH: '#' ; AT: '@' ; QUEST: '?' ; ELVIS: '?:' ; LANGLE: '<' ; RANGLE: '>' ; LE: '<=' ; GE: '>=' ; EXCL_EQ: '!=' ; EXCL_EQEQ: '!==' ; AS_SAFE: 'as?' ; EQEQ: '==' ; EQEQEQ: '===' ; SINGLE_QUOTE: '\'' ; //KEYWORDS RETURN_AT: 'return@' Identifier ; CONTINUE_AT: 'continue@' Identifier ; BREAK_AT: 'break@' Identifier ; FILE: '@file' ; PACKAGE: 'package' ; IMPORT: 'import' ; CLASS: 'class' ; INTERFACE: 'interface' ; FUN: 'fun' ; OBJECT: 'object' ; VAL: 'val' ; VAR: 'var' ; TYPE_ALIAS: 'typealias' ; CONSTRUCTOR: 'constructor' ; BY: 'by' ; COMPANION: 'companion' ; INIT: 'init' ; THIS: 'this' ; SUPER: 'super' ; TYPEOF: 'typeof' ; WHERE: 'where' ; IF: 'if' ; ELSE: 'else' ; WHEN: 'when' ; TRY: 'try' ; CATCH: 'catch' ; FINALLY: 'finally' ; FOR: 'for' ; DO: 'do' ; WHILE: 'while' ; THROW: 'throw' ; RETURN: 'return' ; CONTINUE: 'continue' ; BREAK: 'break' ; AS: 'as' ; IS: 'is' ; IN: 'in' ; NOT_IS: '!is' (WS | NL)+ ; NOT_IN: '!in' (WS | NL)+ ; OUT: 'out' ; FIELD: '@field' ; PROPERTY: '@property' ; GET: '@get' ; SET: '@set' ; GETTER: 'get' ; SETTER: 'set' ; RECEIVER: '@receiver' ; PARAM: '@param' ; SETPARAM: '@setparam' ; DELEGATE: '@delegate' ; DYNAMIC: 'dynamic' ; //MODIFIERS PUBLIC: 'public' ; PRIVATE: 'private' ; PROTECTED: 'protected' ; INTERNAL: 'internal' ; ENUM: 'enum' ; SEALED: 'sealed' ; ANNOTATION: 'annotation' ; DATA: 'data' ; INNER: 'inner' ; TAILREC: 'tailrec' ; OPERATOR: 'operator' ; INLINE: 'inline' ; INFIX: 'infix' ; EXTERNAL: 'external' ; SUSPEND: 'suspend' ; OVERRIDE: 'override' ; ABSTRACT: 'abstract' ; FINAL: 'final' ; OPEN: 'open' ; CONST: 'const' ; LATEINIT: 'lateinit' ; VARARG: 'vararg' ; NOINLINE: 'noinline' ; CROSSINLINE: 'crossinline' ; REIFIED: 'reified' ; // QUOTE_OPEN: '"' -> pushMode(LineString) ; TRIPLE_QUOTE_OPEN: '"""' -> pushMode(MultiLineString) ; RealLiteral : FloatLiteral | DoubleLiteral ; FloatLiteral : (DoubleLiteral | IntegerLiteral) [fF] ; DoubleLiteral : ( (DecDigitNoZero DecDigit*)? '.' | (DecDigitNoZero (DecDigit | '_')* DecDigit)? '.') ( DecDigit+ | DecDigit (DecDigit | '_')+ DecDigit | DecDigit+ [eE] ('+' | '-')? DecDigit+ | DecDigit+ [eE] ('+' | '-')? DecDigit (DecDigit | '_')+ DecDigit | DecDigit (DecDigit | '_')+ DecDigit [eE] ('+' | '-')? DecDigit+ | DecDigit (DecDigit | '_')+ DecDigit [eE] ('+' | '-')? DecDigit (DecDigit | '_')+ DecDigit ) ; LongLiteral : (IntegerLiteral | HexLiteral | BinLiteral) 'L' ; IntegerLiteral : ('0' | DecDigitNoZero DecDigit* | DecDigitNoZero (DecDigit | '_')+ DecDigit | DecDigitNoZero DecDigit* [eE] ('+' | '-')? DecDigit+ | DecDigitNoZero DecDigit* [eE] ('+' | '-')? DecDigit (DecDigit | '_')+ DecDigit | DecDigitNoZero (DecDigit | '_')+ DecDigit [eE] ('+' | '-')? DecDigit+ | DecDigitNoZero (DecDigit | '_')+ DecDigit [eE] ('+' | '-')? DecDigit (DecDigit | '_')+ DecDigit ) ; fragment DecDigit : UNICODE_CLASS_ND ; fragment DecDigitNoZero : UNICODE_CLASS_ND_NoZeros ; fragment UNICODE_CLASS_ND_NoZeros : '\u0031'..'\u0039' | '\u0661'..'\u0669' | '\u06f1'..'\u06f9' | '\u07c1'..'\u07c9' | '\u0967'..'\u096f' | '\u09e7'..'\u09ef' | '\u0a67'..'\u0a6f' | '\u0ae7'..'\u0aef' | '\u0b67'..'\u0b6f' | '\u0be7'..'\u0bef' | '\u0c67'..'\u0c6f' | '\u0ce7'..'\u0cef' | '\u0d67'..'\u0d6f' | '\u0de7'..'\u0def' | '\u0e51'..'\u0e59' | '\u0ed1'..'\u0ed9' | '\u0f21'..'\u0f29' | '\u1041'..'\u1049' | '\u1091'..'\u1099' | '\u17e1'..'\u17e9' | '\u1811'..'\u1819' | '\u1947'..'\u194f' | '\u19d1'..'\u19d9' | '\u1a81'..'\u1a89' | '\u1a91'..'\u1a99' | '\u1b51'..'\u1b59' | '\u1bb1'..'\u1bb9' | '\u1c41'..'\u1c49' | '\u1c51'..'\u1c59' | '\ua621'..'\ua629' | '\ua8d1'..'\ua8d9' | '\ua901'..'\ua909' | '\ua9d1'..'\ua9d9' | '\ua9f1'..'\ua9f9' | '\uaa51'..'\uaa59' | '\uabf1'..'\uabf9' | '\uff11'..'\uff19' ; HexLiteral : '0' [xX] HexDigit (HexDigit | '_')* ; fragment HexDigit : [0-9a-fA-F] ; BinLiteral : '0' [bB] BinDigit (BinDigit | '_')* ; fragment BinDigit : [01] ; BooleanLiteral : 'true' | 'false' ; NullLiteral : 'null' ; Identifier : (Letter | '_') (Letter | '_' | DecDigit)* | '`' ~('`')+ '`' ; LabelReference : '@' Identifier ; LabelDefinition : Identifier '@' ; FieldIdentifier : '$' Identifier ; CharacterLiteral : '\'' (EscapeSeq | .) '\'' ; fragment EscapeSeq : UniCharacterLiteral | EscapedIdentifier ; fragment UniCharacterLiteral : '\\' 'u' HexDigit HexDigit HexDigit HexDigit ; fragment EscapedIdentifier : '\\' ('t' | 'b' | 'r' | 'n' | '\'' | '"' | '\\' | '$') ; fragment Letter : UNICODE_CLASS_LL | UNICODE_CLASS_LM | UNICODE_CLASS_LO | UNICODE_CLASS_LT | UNICODE_CLASS_LU | UNICODE_CLASS_NL ; mode Inside ; Inside_RPAREN: ')' -> popMode, type(RPAREN) ; Inside_RSQUARE: ']' -> popMode, type(RSQUARE); Inside_LPAREN: LPAREN -> pushMode(Inside), type(LPAREN) ; Inside_LSQUARE: LSQUARE -> pushMode(Inside), type(LSQUARE) ; Inside_LCURL: LCURL -> type(LCURL) ; Inside_RCURL: RCURL -> type(RCURL) ; Inside_DOT: DOT -> type(DOT) ; Inside_COMMA: COMMA -> type(COMMA) ; Inside_MULT: MULT -> type(MULT) ; Inside_MOD: MOD -> type(MOD) ; Inside_DIV: DIV -> type(DIV) ; Inside_ADD: ADD -> type(ADD) ; Inside_SUB: SUB -> type(SUB) ; Inside_INCR: INCR -> type(INCR) ; Inside_DECR: DECR -> type(DECR) ; Inside_CONJ: CONJ -> type(CONJ) ; Inside_DISJ: DISJ -> type(DISJ) ; Inside_EXCL: EXCL -> type(EXCL) ; Inside_COLON: COLON -> type(COLON) ; Inside_SEMICOLON: SEMICOLON -> type(SEMICOLON) ; Inside_ASSIGNMENT: ASSIGNMENT -> type(ASSIGNMENT) ; Inside_ADD_ASSIGNMENT: ADD_ASSIGNMENT -> type(ADD_ASSIGNMENT) ; Inside_SUB_ASSIGNMENT: SUB_ASSIGNMENT -> type(SUB_ASSIGNMENT) ; Inside_MULT_ASSIGNMENT: MULT_ASSIGNMENT -> type(MULT_ASSIGNMENT) ; Inside_DIV_ASSIGNMENT: DIV_ASSIGNMENT -> type(DIV_ASSIGNMENT) ; Inside_MOD_ASSIGNMENT: MOD_ASSIGNMENT -> type(MOD_ASSIGNMENT) ; Inside_ARROW: ARROW -> type(ARROW) ; Inside_DOUBLE_ARROW: DOUBLE_ARROW -> type(DOUBLE_ARROW) ; Inside_RANGE: RANGE -> type(RANGE) ; Inside_RESERVED: RESERVED -> type(RESERVED) ; Inside_COLONCOLON: COLONCOLON -> type(COLONCOLON) ; Inside_Q_COLONCOLON: Q_COLONCOLON -> type(Q_COLONCOLON) ; Inside_DOUBLE_SEMICOLON: DOUBLE_SEMICOLON -> type(DOUBLE_SEMICOLON) ; Inside_HASH: HASH -> type(HASH) ; Inside_AT: AT -> type(AT) ; Inside_QUEST: QUEST -> type(QUEST) ; Inside_ELVIS: ELVIS -> type(ELVIS) ; Inside_LANGLE: LANGLE -> type(LANGLE) ; Inside_RANGLE: RANGLE -> type(RANGLE) ; Inside_LE: LE -> type(LE) ; Inside_GE: GE -> type(GE) ; Inside_EXCL_EQ: EXCL_EQ -> type(EXCL_EQ) ; Inside_EXCL_EQEQ: EXCL_EQEQ -> type(EXCL_EQEQ) ; Inside_NOT_IS: NOT_IS -> type(NOT_IS) ; Inside_NOT_IN: NOT_IN -> type(NOT_IN) ; Inside_AS_SAFE: AS_SAFE -> type(AS_SAFE) ; Inside_EQEQ: EQEQ -> type(EQEQ) ; Inside_EQEQEQ: EQEQEQ -> type(EQEQEQ) ; Inside_SINGLE_QUOTE: SINGLE_QUOTE -> type(SINGLE_QUOTE) ; Inside_QUOTE_OPEN: QUOTE_OPEN -> pushMode(LineString), type(QUOTE_OPEN) ; Inside_TRIPLE_QUOTE_OPEN: TRIPLE_QUOTE_OPEN -> pushMode(MultiLineString), type(TRIPLE_QUOTE_OPEN) ; Inside_VAL: VAL -> type(VAL) ; Inside_VAR: VAR -> type(VAR) ; Inside_OBJECT: OBJECT -> type(OBJECT) ; Inside_SUPER: SUPER -> type(SUPER) ; Inside_IN: IN -> type(IN) ; Inside_OUT: OUT -> type(OUT) ; Inside_FIELD: FIELD -> type(FIELD) ; Inside_FILE: FILE -> type(FILE) ; Inside_PROPERTY: PROPERTY -> type(PROPERTY) ; Inside_GET: GET -> type(GET) ; Inside_SET: SET -> type(SET) ; Inside_RECEIVER: RECEIVER -> type(RECEIVER) ; Inside_PARAM: PARAM -> type(PARAM) ; Inside_SETPARAM: SETPARAM -> type(SETPARAM) ; Inside_DELEGATE: DELEGATE -> type(DELEGATE) ; Inside_THROW: THROW -> type(THROW) ; Inside_RETURN: RETURN -> type(RETURN) ; Inside_CONTINUE: CONTINUE -> type(CONTINUE) ; Inside_BREAK: BREAK -> type(BREAK) ; Inside_RETURN_AT: RETURN_AT -> type(RETURN_AT) ; Inside_CONTINUE_AT: CONTINUE_AT -> type(CONTINUE_AT) ; Inside_BREAK_AT: BREAK_AT -> type(BREAK_AT) ; Inside_IF: IF -> type(IF) ; Inside_ELSE: ELSE -> type(ELSE) ; Inside_WHEN: WHEN -> type(WHEN) ; Inside_TRY: TRY -> type(TRY) ; Inside_CATCH: CATCH -> type(CATCH) ; Inside_FINALLY: FINALLY -> type(FINALLY) ; Inside_FOR: FOR -> type(FOR) ; Inside_DO: DO -> type(DO) ; Inside_WHILE: WHILE -> type(WHILE) ; Inside_PUBLIC: PUBLIC -> type(PUBLIC) ; Inside_PRIVATE: PRIVATE -> type(PRIVATE) ; Inside_PROTECTED: PROTECTED -> type(PROTECTED) ; Inside_INTERNAL: INTERNAL -> type(INTERNAL) ; Inside_ENUM: ENUM -> type(ENUM) ; Inside_SEALED: SEALED -> type(SEALED) ; Inside_ANNOTATION: ANNOTATION -> type(ANNOTATION) ; Inside_DATA: DATA -> type(DATA) ; Inside_INNER: INNER -> type(INNER) ; Inside_TAILREC: TAILREC -> type(TAILREC) ; Inside_OPERATOR: OPERATOR -> type(OPERATOR) ; Inside_INLINE: INLINE -> type(INLINE) ; Inside_INFIX: INFIX -> type(INFIX) ; Inside_EXTERNAL: EXTERNAL -> type(EXTERNAL) ; Inside_SUSPEND: SUSPEND -> type(SUSPEND) ; Inside_OVERRIDE: OVERRIDE -> type(OVERRIDE) ; Inside_ABSTRACT: ABSTRACT -> type(ABSTRACT) ; Inside_FINAL: FINAL -> type(FINAL) ; Inside_OPEN: OPEN -> type(OPEN) ; Inside_CONST: CONST -> type(CONST) ; Inside_LATEINIT: LATEINIT -> type(LATEINIT) ; Inside_VARARG: VARARG -> type(VARARG) ; Inside_NOINLINE: NOINLINE -> type(NOINLINE) ; Inside_CROSSINLINE: CROSSINLINE -> type(CROSSINLINE) ; Inside_REIFIED: REIFIED -> type(REIFIED) ; Inside_BooleanLiteral: BooleanLiteral -> type(BooleanLiteral) ; Inside_IntegerLiteral: IntegerLiteral -> type(IntegerLiteral) ; Inside_HexLiteral: HexLiteral -> type(HexLiteral) ; Inside_BinLiteral: BinLiteral -> type(BinLiteral) ; Inside_CharacterLiteral: CharacterLiteral -> type(CharacterLiteral) ; Inside_RealLiteral: RealLiteral -> type(RealLiteral) ; Inside_NullLiteral: NullLiteral -> type(NullLiteral) ; Inside_LongLiteral: LongLiteral -> type(LongLiteral) ; Inside_Identifier: Identifier -> type(Identifier) ; Inside_LabelReference: LabelReference -> type(LabelReference) ; Inside_LabelDefinition: LabelDefinition -> type(LabelDefinition) ; Inside_Comment: (LineComment | DelimitedComment) -> channel(HIDDEN) ; Inside_WS: WS -> skip ; Inside_NL: NL -> skip ; mode LineString ; QUOTE_CLOSE : '"' -> popMode ; LineStrRef : FieldIdentifier ; LineStrText : ~('\\' | '"' | '$')+ | '$' ; LineStrEscapedChar : '\\' . | UniCharacterLiteral ; LineStrExprStart : '${' -> pushMode(StringExpression) ; mode MultiLineString ; TRIPLE_QUOTE_CLOSE : MultiLineStringQuote? '"""' -> popMode ; MultiLineStringQuote : '"'+ ; MultiLineStrRef : FieldIdentifier ; MultiLineStrText : ~('\\' | '"' | '$')+ | '$' ; MultiLineStrEscapedChar : '\\' . ; MultiLineStrExprStart : '${' -> pushMode(StringExpression) ; MultiLineNL: NL -> skip ; mode StringExpression ; StrExpr_RCURL: RCURL -> popMode, type(RCURL) ; StrExpr_LPAREN: LPAREN -> pushMode(Inside), type(LPAREN) ; StrExpr_LSQUARE: LSQUARE -> pushMode(Inside), type(LSQUARE) ; StrExpr_RPAREN: ')' -> type(RPAREN) ; StrExpr_RSQUARE: ']' -> type(RSQUARE); StrExpr_LCURL: LCURL -> pushMode(StringExpression), type(LCURL) ; StrExpr_DOT: DOT -> type(DOT) ; StrExpr_COMMA: COMMA -> type(COMMA) ; StrExpr_MULT: MULT -> type(MULT) ; StrExpr_MOD: MOD -> type(MOD) ; StrExpr_DIV: DIV -> type(DIV) ; StrExpr_ADD: ADD -> type(ADD) ; StrExpr_SUB: SUB -> type(SUB) ; StrExpr_INCR: INCR -> type(INCR) ; StrExpr_DECR: DECR -> type(DECR) ; StrExpr_CONJ: CONJ -> type(CONJ) ; StrExpr_DISJ: DISJ -> type(DISJ) ; StrExpr_EXCL: EXCL -> type(EXCL) ; StrExpr_COLON: COLON -> type(COLON) ; StrExpr_SEMICOLON: SEMICOLON -> type(SEMICOLON) ; StrExpr_ASSIGNMENT: ASSIGNMENT -> type(ASSIGNMENT) ; StrExpr_ADD_ASSIGNMENT: ADD_ASSIGNMENT -> type(ADD_ASSIGNMENT) ; StrExpr_SUB_ASSIGNMENT: SUB_ASSIGNMENT -> type(SUB_ASSIGNMENT) ; StrExpr_MULT_ASSIGNMENT: MULT_ASSIGNMENT -> type(MULT_ASSIGNMENT) ; StrExpr_DIV_ASSIGNMENT: DIV_ASSIGNMENT -> type(DIV_ASSIGNMENT) ; StrExpr_MOD_ASSIGNMENT: MOD_ASSIGNMENT -> type(MOD_ASSIGNMENT) ; StrExpr_ARROW: ARROW -> type(ARROW) ; StrExpr_DOUBLE_ARROW: DOUBLE_ARROW -> type(DOUBLE_ARROW) ; StrExpr_RANGE: RANGE -> type(RANGE) ; StrExpr_COLONCOLON: COLONCOLON -> type(COLONCOLON) ; StrExpr_Q_COLONCOLON: Q_COLONCOLON -> type(Q_COLONCOLON) ; StrExpr_DOUBLE_SEMICOLON: DOUBLE_SEMICOLON -> type(DOUBLE_SEMICOLON) ; StrExpr_HASH: HASH -> type(HASH) ; StrExpr_AT: AT -> type(AT) ; StrExpr_QUEST: QUEST -> type(QUEST) ; StrExpr_ELVIS: ELVIS -> type(ELVIS) ; StrExpr_LANGLE: LANGLE -> type(LANGLE) ; StrExpr_RANGLE: RANGLE -> type(RANGLE) ; StrExpr_LE: LE -> type(LE) ; StrExpr_GE: GE -> type(GE) ; StrExpr_EXCL_EQ: EXCL_EQ -> type(EXCL_EQ) ; StrExpr_EXCL_EQEQ: EXCL_EQEQ -> type(EXCL_EQEQ) ; StrExpr_AS: AS -> type(IS) ; StrExpr_IS: IS -> type(IN) ; StrExpr_IN: IN ; StrExpr_NOT_IS: NOT_IS -> type(NOT_IS) ; StrExpr_NOT_IN: NOT_IN -> type(NOT_IN) ; StrExpr_AS_SAFE: AS_SAFE -> type(AS_SAFE) ; StrExpr_EQEQ: EQEQ -> type(EQEQ) ; StrExpr_EQEQEQ: EQEQEQ -> type(EQEQEQ) ; StrExpr_SINGLE_QUOTE: SINGLE_QUOTE -> type(SINGLE_QUOTE) ; StrExpr_QUOTE_OPEN: QUOTE_OPEN -> pushMode(LineString), type(QUOTE_OPEN) ; StrExpr_TRIPLE_QUOTE_OPEN: TRIPLE_QUOTE_OPEN -> pushMode(MultiLineString), type(TRIPLE_QUOTE_OPEN) ; StrExpr_BooleanLiteral: BooleanLiteral -> type(BooleanLiteral) ; StrExpr_IntegerLiteral: IntegerLiteral -> type(IntegerLiteral) ; StrExpr_HexLiteral: HexLiteral -> type(HexLiteral) ; StrExpr_BinLiteral: BinLiteral -> type(BinLiteral) ; StrExpr_CharacterLiteral: CharacterLiteral -> type(CharacterLiteral) ; StrExpr_RealLiteral: RealLiteral -> type(RealLiteral) ; StrExpr_NullLiteral: NullLiteral -> type(NullLiteral) ; StrExpr_LongLiteral: LongLiteral -> type(LongLiteral) ; StrExpr_Identifier: Identifier -> type(Identifier) ; StrExpr_LabelReference: LabelReference -> type(LabelReference) ; StrExpr_LabelDefinition: LabelDefinition -> type(LabelDefinition) ; StrExpr_Comment: (LineComment | DelimitedComment) -> channel(HIDDEN) ; StrExpr_WS: WS -> skip ; StrExpr_NL: NL -> skip ;
parser/Sql.g4
xitongsys/guery
74
182
<reponame>xitongsys/guery grammar Sql; tokens { DELIMITER } singleStatement : statement EOF ; singleExpression : expression EOF ; statement : query | USE schema=identifier | USE catalog=identifier '.' schema=identifier | SHOW TABLES ((FROM | IN) qualifiedName)? (LIKE pattern=stringValue (ESCAPE escape=stringValue)?)? | SHOW SCHEMAS ((FROM | IN) identifier)? (LIKE pattern=stringValue (ESCAPE escape=stringValue)?)? | SHOW CATALOGS (LIKE pattern=stringValue)? | SHOW COLUMNS (FROM | IN) qualifiedName | SHOW CREATE TABLE qualifiedName | SHOW CREATE VIEW qualifiedName | DESCRIBE qualifiedName | DESC qualifiedName | SHOW PARTITIONS (FROM | IN) qualifiedName (WHERE where=booleanExpression)? (ORDER BY sortItem (',' sortItem)*)? (LIMIT limit=(INTEGER_VALUE | ALL))? ; tableElement : columnDefinition | likeClause ; columnDefinition : identifier typeSql (COMMENT stringValue)? ; likeClause : LIKE qualifiedName (optionType=(INCLUDING | EXCLUDING) PROPERTIES)? ; properties : '(' property (',' property)* ')' ; property : identifier EQ expression ; query: queryTerm (ORDER BY sortItem (',' sortItem)*)? (LIMIT limit=(INTEGER_VALUE | ALL))? ; queryTerm : queryPrimary | left=queryTerm operator=INTERSECT setQuantifier? right=queryTerm | left=queryTerm operator=(UNION | EXCEPT) setQuantifier? right=queryTerm ; queryPrimary : querySpecification | '(' query ')' ; sortItem : expression ordering=(ASC | DESC)? (NULLS nullOrdering=(FIRST | LAST))? ; querySpecification : SELECT setQuantifier? selectItem (',' selectItem)* (FROM relation (',' relation)*)? (WHERE where=booleanExpression)? (GROUP BY groupBy)? (HAVING having=booleanExpression)? ; groupBy : setQuantifier? groupingElement (',' groupingElement)* ; groupingElement : expression ; setQuantifier : DISTINCT | ALL ; selectItem : expression (AS? identifier)? | qualifiedName '.' ASTERISK | ASTERISK ; relation : leftRelation=relation joinType JOIN rightRelation=relation joinCriteria | sampledRelation ; joinType : INNER? | LEFT OUTER? | RIGHT OUTER? | FULL OUTER? ; joinCriteria : ON booleanExpression | USING '(' identifier (',' identifier)* ')' ; sampleType : BERNOULLI | SYSTEM ; sampledRelation : relationPrimary (AS? identifier)? ; relationPrimary : qualifiedName | '(' query ')' | '(' relation ')' ; expression : booleanExpression ; booleanExpression : predicated | NOT booleanExpression | left=booleanExpression operator=AND right=booleanExpression | left=booleanExpression operator=OR right=booleanExpression ; predicated : valueExpression predicate? ; predicate : comparisonOperator right=valueExpression | comparisonOperator comparisonQuantifier '(' query ')' | NOT? BETWEEN lower=valueExpression AND upper=valueExpression | NOT? IN '(' expression (',' expression)* ')' | NOT? IN '(' query ')' | NOT? LIKE pattern=valueExpression (ESCAPE escape=valueExpression)? | IS NOT? NULL | IS NOT? DISTINCT FROM right=valueExpression ; valueExpression : primaryExpression | operator=(MINUS | PLUS) valueExpression | left=valueExpression operator=(ASTERISK | SLASH | PERCENT) right=valueExpression | left=valueExpression operator=(PLUS | MINUS) right=valueExpression | left=valueExpression CONCAT right=valueExpression ; primaryExpression : NULL | identifier stringValue | number | booleanValue | stringValue | identifier | qualifiedName '(' (setQuantifier? expression (',' expression)*)? (ORDER BY sortItem (',' sortItem)*)? ')' | base=primaryExpression '.' fieldName=identifier | CASE whenClause+ (ELSE elseExpression=expression)? END | '(' expression ')' ; stringValue : STRING ; comparisonOperator : EQ | NEQ | LT | LTE | GT | GTE ; comparisonQuantifier : ALL | SOME | ANY ; booleanValue : TRUE | FALSE ; typeSql : typeSql ARRAY | ARRAY '<' typeSql '>' | MAP '<' typeSql ',' typeSql '>' | ROW '(' identifier typeSql (',' identifier typeSql)* ')' | baseType ('(' typeParameter (',' typeParameter)* ')')? ; typeParameter : INTEGER_VALUE | typeSql ; baseType : TIME_WITH_TIME_ZONE | TIMESTAMP_WITH_TIME_ZONE | DOUBLE_PRECISION | identifier ; whenClause : WHEN condition=expression THEN result=expression ; filter : FILTER '(' WHERE booleanExpression ')' ; over : OVER '(' (PARTITION BY partition+=expression (',' partition+=expression)*)? (ORDER BY sortItem (',' sortItem)*)? ')' ; privilege : SELECT | DELETE | INSERT | identifier ; qualifiedName : identifier ('.' identifier)* ; identifier : IDENTIFIER | QUOTED_IDENTIFIER | nonReserved | DIGIT_IDENTIFIER ; number : DOUBLE_VALUE | INTEGER_VALUE ; nonReserved // IMPORTANT: this rule must only contain tokens. Nested rules are not supported. See SqlParser.exitNonReserved : ADD | ALL | ANALYZE | ANY | ARRAY | ASC | AT | BERNOULLI | CALL | CASCADE | CATALOGS | COALESCE | COLUMN | COLUMNS | COMMENT | COMMIT | COMMITTED | CURRENT | DATA | DATE | DAY | DESC | DISTRIBUTED | EXCLUDING | EXPLAIN | FILTER | FIRST | FOLLOWING | FORMAT | FUNCTIONS | GRANT | GRANTS | GRAPHVIZ | HOUR | IF | INCLUDING | INPUT | INTEGER | INTERVAL | ISOLATION | LAST | LATERAL | LEVEL | LIMIT | LOGICAL | MAP | MINUTE | MONTH | NFC | NFD | NFKC | NFKD | NO | NULLIF | NULLS | ONLY | OPTION | ORDINALITY | OUTPUT | OVER | PARTITION | PARTITIONS | POSITION | PRECEDING | PRIVILEGES | PROPERTIES | PUBLIC | RANGE | READ | RENAME | REPEATABLE | REPLACE | RESET | RESTRICT | REVOKE | ROLLBACK | ROW | ROWS | SCHEMA | SCHEMAS | SECOND | SERIALIZABLE | SESSION | SET | SETS | SHOW | SMALLINT | SOME | START | STATS | SUBSTRING | SYSTEM | TABLES | TABLESAMPLE | TEXT | TIME | TIMESTAMP | TINYINT | TO | TRANSACTION | TRY_CAST | TYPE | UNBOUNDED | UNCOMMITTED | USE | VALIDATE | VERBOSE | VIEW | WORK | WRITE | YEAR | ZONE ; ADD: 'ADD'; ALL: 'ALL'; ALTER: 'ALTER'; ANALYZE: 'ANALYZE'; AND: 'AND'; ANY: 'ANY'; ARRAY: 'ARRAY'; AS: 'AS'; ASC: 'ASC'; AT: 'AT'; BERNOULLI: 'BERNOULLI'; BETWEEN: 'BETWEEN'; BY: 'BY'; CALL: 'CALL'; CASCADE: 'CASCADE'; CASE: 'CASE'; CAST: 'CAST'; CATALOGS: 'CATALOGS'; COALESCE: 'COALESCE'; COLUMN: 'COLUMN'; COLUMNS: 'COLUMNS'; COMMENT: 'COMMENT'; COMMIT: 'COMMIT'; COMMITTED: 'COMMITTED'; CONSTRAINT: 'CONSTRAINT'; CREATE: 'CREATE'; CROSS: 'CROSS'; CUBE: 'CUBE'; CURRENT: 'CURRENT'; CURRENT_DATE: 'CURRENT_DATE'; CURRENT_TIME: 'CURRENT_TIME'; CURRENT_TIMESTAMP: 'CURRENT_TIMESTAMP'; DATA: 'DATA'; DATE: 'DATE'; DAY: 'DAY'; DEALLOCATE: 'DEALLOCATE'; DELETE: 'DELETE'; DESC: 'DESC'; DESCRIBE: 'DESCRIBE'; DISTINCT: 'DISTINCT'; DISTRIBUTED: 'DISTRIBUTED'; DROP: 'DROP'; ELSE: 'ELSE'; END: 'END'; ESCAPE: 'ESCAPE'; EXCEPT: 'EXCEPT'; EXCLUDING: 'EXCLUDING'; EXECUTE: 'EXECUTE'; EXISTS: 'EXISTS'; EXPLAIN: 'EXPLAIN'; EXTRACT: 'EXTRACT'; FALSE: 'FALSE'; FILTER: 'FILTER'; FIRST: 'FIRST'; FOLLOWING: 'FOLLOWING'; FOR: 'FOR'; FORMAT: 'FORMAT'; FROM: 'FROM'; FULL: 'FULL'; FUNCTIONS: 'FUNCTIONS'; GRANT: 'GRANT'; GRANTS: 'GRANTS'; GRAPHVIZ: 'GRAPHVIZ'; GROUP: 'GROUP'; GROUPING: 'GROUPING'; HAVING: 'HAVING'; HOUR: 'HOUR'; IF: 'IF'; IN: 'IN'; INCLUDING: 'INCLUDING'; INNER: 'INNER'; INPUT: 'INPUT'; INSERT: 'INSERT'; INTEGER: 'INTEGER'; INTERSECT: 'INTERSECT'; INTERVAL: 'INTERVAL'; INTO: 'INTO'; IS: 'IS'; ISOLATION: 'ISOLATION'; JOIN: 'JOIN'; LAST: 'LAST'; LATERAL: 'LATERAL'; LEFT: 'LEFT'; LEVEL: 'LEVEL'; LIKE: 'LIKE'; LIMIT: 'LIMIT'; LOCALTIME: 'LOCALTIME'; LOCALTIMESTAMP: 'LOCALTIMESTAMP'; LOGICAL: 'LOGICAL'; MAP: 'MAP'; MINUTE: 'MINUTE'; MONTH: 'MONTH'; NATURAL: 'NATURAL'; NFC : 'NFC'; NFD : 'NFD'; NFKC : 'NFKC'; NFKD : 'NFKD'; NO: 'NO'; NORMALIZE: 'NORMALIZE'; NOT: 'NOT'; NULL: 'NULL'; NULLIF: 'NULLIF'; NULLS: 'NULLS'; ON: 'ON'; ONLY: 'ONLY'; OPTION: 'OPTION'; OR: 'OR'; ORDER: 'ORDER'; ORDINALITY: 'ORDINALITY'; OUTER: 'OUTER'; OUTPUT: 'OUTPUT'; OVER: 'OVER'; PARTITION: 'PARTITION'; PARTITIONS: 'PARTITIONS'; POSITION: 'POSITION'; PRECEDING: 'PRECEDING'; PREPARE: 'PREPARE'; PRIVILEGES: 'PRIVILEGES'; PROPERTIES: 'PROPERTIES'; PUBLIC: 'PUBLIC'; RANGE: 'RANGE'; READ: 'READ'; RECURSIVE: 'RECURSIVE'; RENAME: 'RENAME'; REPEATABLE: 'REPEATABLE'; REPLACE: 'REPLACE'; RESET: 'RESET'; RESTRICT: 'RESTRICT'; REVOKE: 'REVOKE'; RIGHT: 'RIGHT'; ROLLBACK: 'ROLLBACK'; ROLLUP: 'ROLLUP'; ROW: 'ROW'; ROWS: 'ROWS'; SCHEMA: 'SCHEMA'; SCHEMAS: 'SCHEMAS'; SECOND: 'SECOND'; SELECT: 'SELECT'; SERIALIZABLE: 'SERIALIZABLE'; SESSION: 'SESSION'; SET: 'SET'; SETS: 'SETS'; SHOW: 'SHOW'; SMALLINT: 'SMALLINT'; SOME: 'SOME'; START: 'START'; STATS: 'STATS'; SUBSTRING: 'SUBSTRING'; SYSTEM: 'SYSTEM'; TABLE: 'TABLE'; TABLES: 'TABLES'; TABLESAMPLE: 'TABLESAMPLE'; TEXT: 'TEXT'; THEN: 'THEN'; TIME: 'TIME'; TIMESTAMP: 'TIMESTAMP'; TINYINT: 'TINYINT'; TO: 'TO'; TRANSACTION: 'TRANSACTION'; TRUE: 'TRUE'; TRY_CAST: 'TRY_CAST'; TYPE: 'TYPE'; UESCAPE: 'UESCAPE'; UNBOUNDED: 'UNBOUNDED'; UNCOMMITTED: 'UNCOMMITTED'; UNION: 'UNION'; UNNEST: 'UNNEST'; USE: 'USE'; USING: 'USING'; VALIDATE: 'VALIDATE'; VALUES: 'VALUES'; VERBOSE: 'VERBOSE'; VIEW: 'VIEW'; WHEN: 'WHEN'; WHERE: 'WHERE'; WITH: 'WITH'; WORK: 'WORK'; WRITE: 'WRITE'; YEAR: 'YEAR'; ZONE: 'ZONE'; EQ : '='; NEQ : '<>' | '!='; LT : '<'; LTE : '<='; GT : '>'; GTE : '>='; PLUS: '+'; MINUS: '-'; ASTERISK: '*'; SLASH: '/'; PERCENT: '%'; CONCAT: '||'; STRING : '\'' ( ~'\'' | '\'\'' )* '\'' ; UNICODE_STRING : 'U&\'' ( ~'\'' | '\'\'' )* '\'' ; // Note: we allow any character inside the binary literal and validate // its a correct literal when the AST is being constructed. This // allows us to provide more meaningful error messages to the user BINARY_LITERAL : 'X\'' (~'\'')* '\'' ; INTEGER_VALUE : DIGIT+ ; DOUBLE_VALUE : DIGIT+ ('.' DIGIT*)? EXPONENT | DIGIT+ '.' DIGIT* | '.' DIGIT+ | '.' DIGIT+ EXPONENT ; IDENTIFIER : (LETTER | '_') (LETTER | DIGIT | '_' | '@' | ':')* ; DIGIT_IDENTIFIER : DIGIT (LETTER | DIGIT | '_' | '@' | ':')+ ; QUOTED_IDENTIFIER : '"' ( ~'"' | '""' )* '"' ; BACKQUOTED_IDENTIFIER : '`' ( ~'`' | '``' )* '`' ; TIME_WITH_TIME_ZONE : 'TIME' WS 'WITH' WS 'TIME' WS 'ZONE' ; TIMESTAMP_WITH_TIME_ZONE : 'TIMESTAMP' WS 'WITH' WS 'TIME' WS 'ZONE' ; DOUBLE_PRECISION : 'DOUBLE' WS 'PRECISION' ; fragment EXPONENT : 'E' [+-]? DIGIT+ ; fragment DIGIT : [0-9] ; fragment LETTER : [A-Z] ; SIMPLE_COMMENT : '--' ~[\r\n]* '\r'? '\n'? -> channel(HIDDEN) ; BRACKETED_COMMENT : '/*' .*? '*/' -> channel(HIDDEN) ; WS : [ \r\n\t]+ -> channel(HIDDEN) ; // Catch-all for anything we can't recognize. // We use this to be able to ignore and recover all the text // when splitting statements with DelimiterLexer UNRECOGNIZED : . ;
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/derror_onc.asm
jpoikela/z88dk
640
162417
<filename>libsrc/_DEVELOPMENT/math/float/math48/lm/z80/derror_onc.asm SECTION code_clib SECTION code_fp_math48 PUBLIC derror_onc EXTERN am48_derror_onc defc derror_onc = am48_derror_onc
ga_ref_impl/src/multivector_type.ads
rogermc2/GA_Ada
3
23780
with GA_Maths; with Metric; with Multivectors; package Multivector_Type is type MV_Type is (Unspecified_MV_Type, Multivector_Type, Versor_MV, Blade_MV); type Parity_Type is (Odd_Parity, Even_Parity, No_Parity); type MV_Type_Record is private; function Grade_Use (MV : MV_Type_Record) return GA_Maths.Grade_Usage; function Init (MV : Multivectors.Multivector) return MV_Type_Record; function Init (MV : Multivectors.Multivector; aMetric : Metric.Metric_Record; Epsilon : Float := 0.0) return MV_Type_Record; function MV_Grade (MV : MV_Type_Record) return Integer; function MV_Kind (MV : MV_Type_Record) return MV_Type; function Parity (MV : MV_Type_Record) return Parity_Type; procedure Print_Multivector_Info (Name : String; Info : MV_Type_Record); function Zero (MV : MV_Type_Record) return Boolean; private type MV_Type_Record is record MV_Kind : MV_Type := Unspecified_MV_Type; -- type MV, Versor or Blade Zero : Boolean := True; Grade : Integer := 0; -- Top_Grade Grade_Use : GA_Maths.Grade_Usage := 0; Parity : Parity_Type := No_Parity; end record; end Multivector_Type;
programs/oeis/099/A099150.asm
neoneye/loda
22
241330
<gh_stars>10-100 ; A099150: Positive integers k such that f(k)+f(k)=concatenation of k and k, where f(k)=k(k+3)/2 (A000096). ; 8,98,998,9998,99998,999998,9999998,99999998,999999998,9999999998,99999999998,999999999998,9999999999998,99999999999998,999999999999998,9999999999999998,99999999999999998,999999999999999998,9999999999999999998,99999999999999999998 mov $1,10 pow $1,$0 sub $1,1 mul $1,10 add $1,8 mov $0,$1
oeis/225/A225009.asm
neoneye/loda-programs
11
169238
; A225009: Number of n X 7 0..1 arrays with rows unimodal and columns nondecreasing. ; 29,239,1163,4166,12174,30738,69498,144111,278707,508937,885677,1479452,2385644,3730548,5678340,8439021,12277401,17523187,24582239,33949058,46220570,62111270,82469790,108296955,140765391,181240749,231304609,292779128,367753496,458612264,568065608,699181593,855420501,1040671287,1259290227,1516141822,1816642022,2166803834,2573285378,3043440455,3585371691,4207986321,4921054677,5735271444,6662319748,7714938140,8906990540,10253539205,11770920785,13476825531,15390379719,17532231354,19924639218 lpb $0 mov $2,$0 add $2,$0 sub $0,1 add $2,4 seq $2,240440 ; Number of ways to place 3 points on a triangular grid of side n so that they are not vertices of an equilateral triangle of any orientation. add $1,$2 lpe div $1,15 add $1,29 mov $0,$1
oeis/141/A141891.asm
neoneye/loda-programs
11
104455
<reponame>neoneye/loda-programs ; A141891: Primes congruent to 8 mod 21. ; Submitted by <NAME> ; 29,71,113,197,239,281,449,491,617,659,701,743,827,911,953,1163,1289,1373,1499,1583,1667,1709,1877,2003,2087,2129,2213,2297,2339,2381,2423,2549,2591,2633,2801,2843,2927,2969,3011,3137,3221,3347,3389,3557,3767,3851,4019,4229,4271,4397,4481,4523,4649,4691,4733,4817,4943,5153,5237,5279,5531,5573,5657,5741,5783,5867,6203,6287,6329,6581,6791,6833,6917,6959,7001,7043,7127,7211,7253,7547,7589,7673,7757,7841,7883,8009,8093,8219,8387,8429,8513,8597,8681,8807,8849,8933,9059,9227,9311,9437 mov $2,$0 pow $2,2 lpb $2 add $1,28 mov $3,$1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,14 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 sub $2,1 lpe mov $0,$1 add $0,29
2021/day09/part1.adb
noeppi-noeppi/aoc
2
26023
<filename>2021/day09/part1.adb with Ada.Text_IO; procedure part1 is type Index is range 0 .. 200; type Cell is range 0 .. 9; type Row is array (Index) of Cell; type Grid is array (Index) of Row; type RowResult is record parsedRow: Row; width: Integer; end record; type GridResult is record parsedGrid: Grid; width: Integer; height: Integer; end record; procedure writeln(n: integer) is str : String := Integer'Image(n); begin Ada.Text_IO.Put_Line(str); end writeln; function parseCell(chr: Character) return Cell is begin return Cell(Character'Pos(chr) - 48); end parseCell; function readln return RowResult is line: String(1 .. 200) := (others => ' '); len: integer; resultRow: Row; result: RowResult; begin Ada.Text_IO.Get_Line(line, len); for i in 1 .. len loop resultRow(Index(i)) := parseCell(line(i)); end loop; result := (resultRow, len); return result; end readln; function readg return GridResult is line: RowResult; width: Integer; height: Integer := 0; the_grid: Grid; result: GridResult; begin line := readln; while line.width /= 0 loop height := height + 1; width := line.width; the_grid(Index(height)) := line.parsedRow; line := readln; end loop; result := (the_grid, width, height); return result; end readg; function e(the_grid: Grid; x: Integer; y: Integer) return Integer is begin return Integer(the_grid(Index(y))(Index(x))); end; grid_result: GridResult; the_grid: Grid; width: Integer; height: Integer; risk: Integer := 0; value: Integer; begin grid_result := readg; the_grid := grid_result.parsedGrid; width := grid_result.width; height := grid_result.height; for x in 1 .. width loop for y in 1 .. height loop value := e(the_grid, x, y); if (x = 1 or value < e(the_grid, x - 1, y)) and (x = width or value < e(the_grid, x + 1, y)) and (y = 1 or value < e(the_grid, x, y - 1)) and (y = height or value < e(the_grid, x, y + 1)) then risk := risk + value + 1; end if; end loop; end loop; writeln(risk); end part1;
src/00/libraries.asm
Willem3141/kernel
251
102098
; TODO: ; Unload libraries ; Allocate space to track usage; use maxThreads so that all threads may ; use it at once. ;; loadLibrary [System] ;; Loads a library into memory, or references one that may already be loaded. ;; Inputs: ;; DE: Pointer to full path of library ;; Z: Set on success, reset on failure loadLibrary: push af ld a, i jp pe, _ ld a, i _: push af push hl push ix push bc di push de call fileExists ; TODO: Let's just error out on openFileRead instead of checking here jp nz, .fileNotFound ld a, (loadedLibraries) inc a cp maxLibraries jp z, .tooManyLibraries pop de push af push hl push bc call openFileRead ld a, d push af call streamReadWord ex de, hl ; Check to see if it has already been opened ld a, (loadedLibraries) or a jr z, ++_ push bc ld b, a ld hl, libraryTable _: ld a, (hl) cp e jr z, .alreadyLoaded inc hl \ inc hl \ inc hl \ inc hl djnz -_ pop bc _: pop af ld d, a pop bc pop hl push de call getStreamInfo call malloc jp nz, .outOfMem ld a, 0xFE call reassignMemory pop de pop af ld (loadedLibraries), a call streamReadToEnd call closeStream ; DE is library ID, IX is location ld hl, libraryTable ld a, (loadedLibraries) dec a add a, a add a, a add a, l ld l, a jr nc, $+3 inc h ld (hl), e inc hl push ix \ pop de ld (hl), e inc hl ld (hl), d inc hl ld (hl), 1 push ix \ pop hl push ix \ pop bc .jumpTableLoop: ld a, (hl) inc hl cp 0xFF jr z, .jumpTableDone cp 0xC9 ; ret (note: we probably don't actually need to check this) jr nz, _ inc hl \ inc hl jr .jumpTableLoop _: ld e, (hl) inc hl ld d, (hl) ex de, hl add hl, bc ex de, hl ld (hl), d dec hl ld (hl), e inc hl \ inc hl jr .jumpTableLoop .jumpTableDone: ld hl, _ push hl jp (ix) ; Run the initialization routine _: pop bc pop ix pop hl pop af jp po, _ ei _: pop af cp a ret .alreadyLoaded: pop bc pop af ld d, a call closeStream inc hl \ inc hl \ inc hl inc (hl) pop bc pop hl pop af pop bc pop ix pop hl pop af ; This routine is awfully stack-heavy jp po, _ ei _: pop af cp a ret .fileNotFound: pop de pop ix pop bc pop hl pop af jp po, _ ei _: pop af ld a, ErrFileNotFound or a ret .tooManyLibraries: pop de pop ix pop bc pop hl pop af jp po, _ ei _: pop af ld a, ErrTooManyLibraries or a ret .outOfMem: pop af ld (currentThreadIndex), a pop ix pop bc pop hl pop af jp po, _ ei _: pop af ld a, ErrOutOfMem or a ret
parsers-generic_source-get_cpp_blank.adb
jrcarter/Ada_GUI
19
19723
<reponame>jrcarter/Ada_GUI<gh_stars>10-100 -- -- -- procedure Copyright (c) <NAME> -- -- Parsers.Generic_Source. Luebeck -- -- Get_Cpp_Blank Winter, 2004 -- -- Implementation -- -- Last revision : 19:13 09 Jul 2009 -- -- -- -- This library 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 library -- -- is distributed in the hope that it will be useful, but WITHOUT -- -- ANY WARRANTY; without even the implied warranty of -- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- -- General Public License for more details. You should have -- -- received a copy of the GNU General Public License along with -- -- this library; if not, write to the Free Software Foundation, -- -- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- -- -- -- As a special exception, if other files instantiate generics from -- -- this unit, or you link this unit with other files to produce an -- -- executable, this unit does not by itself cause the resulting -- -- executable to be covered by the GNU General Public License. This -- -- exception does not however invalidate any other reasons why the -- -- executable file might be covered by the GNU Public License. -- --____________________________________________________________________-- with Ada.Characters.Latin_1; use Ada.Characters.Latin_1; with Ada.IO_Exceptions; use Ada.IO_Exceptions; procedure Parsers.Generic_Source.Get_Cpp_Blank ( Code : in out Source_Type; Got_It : out Boolean; Error : out Boolean; Error_At : out Location_Type ) is Line : Line_Ptr_Type; Pointer : Integer; Last : Integer; In_Comment : Boolean := False; begin Chain_Of_Blanks : loop Get_Line (Code, Line, Pointer, Last); while Pointer <= Last loop if In_Comment then while Pointer < Last loop if Line (Pointer..Pointer + 1) = "*/" then Pointer := Pointer + 2; In_Comment := False; exit; end if; Pointer := Pointer + 1; end loop; exit when In_Comment; -- Comment does not end at this line else case Line (Pointer) is when ' ' | HT | VT | FF | CR | LF => Pointer := Pointer + 1; when '/' => exit Chain_Of_Blanks when Pointer = Last; case Line (Pointer + 1) is when '/' => exit; when '*' => In_Comment := True; Set_Pointer (Code, Pointer); Pointer := Pointer + 2; Set_Pointer (Code, Pointer); Error_At := Link (Code); when others => exit Chain_Of_Blanks; end case; when others => exit Chain_Of_Blanks; end case; end if; end loop; Set_Pointer (Code, Last + 1); Next_Line (Code); end loop Chain_Of_Blanks; Got_It := True; Error := False; Set_Pointer (Code, Pointer); exception when End_Error => Got_It := False; Error := In_Comment; end Parsers.Generic_Source.Get_Cpp_Blank;
ffmpegHelper/runScript.scpt
digital-pers0n/ffmpegHelper
1
3480
tell application "iTerm" activate tell front window tell current session write text "\"%script%\"" end tell end tell end tell
oeis/337/A337500.asm
neoneye/loda-programs
11
98787
<filename>oeis/337/A337500.asm ; A337500: a(n) is the number of ballot sequences of length n tied or won by at most 3 votes. ; Submitted by <NAME>(s4) ; 1,2,4,8,14,30,50,112,182,420,672,1584,2508,6006,9438,22880,35750,87516,136136,335920,520676,1293292,1998724,4992288,7696444,19315400,29716000,74884320,115000920,290845350,445962870 add $0,1 mov $1,$0 div $0,2 mov $2,1 add $2,$0 mul $0,2 bin $0,$2 bin $1,$2 add $0,$1