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
src/kernel/arch/x86/drivers/avx.asm
thomtl/Rhino-OS
3
160190
[bits 32] section .text global init_avx init_avx: call detect_avx cmp eax, 0 je no_avx mov eax, cr4 bts eax, 18 ; Set bit OSXSAVE, Required by AVX mov cr4, eax push eax push edx push ecx xor ecx, ecx xgetbv bts eax, 0 ; Set XCR0 X87 / MMX State bts eax, 1 ; Set XCR0 SSE State bts eax, 2 ; Set XCR0 AVX State xsetbv pop ecx pop edx pop eax call detect_avx_512 cmp eax, 1 jge init_avx_512 mov eax, 1 ret global detect_avx detect_avx: mov eax, 1 cpuid bt ecx, 28 jnc no_avx mov eax, 1 ret no_avx: mov eax, 0 ret global detect_avx_512 detect_avx_512: mov eax, 0 cpuid cmp eax, 7 jl no_avx mov eax, 7 cpuid bt ebx, 16 jnc no_avx mov eax, 1 ret global init_avx_512 init_avx_512: push eax push edx push ecx xor ecx, ecx xgetbv bts eax, 5 ; Set XCR0 OPMASK bts eax, 6 ; Set XCR0 ZMM_Hi256 bts eax, 7 ; Set XCR0 Hi16_ZMM xsetbv pop ecx pop edx pop eax ret
1-base/math/source/precision/long/long_math.ads
charlie5/lace
20
10470
with any_Math; package long_Math is new any_Math (Real_t => long_Float); pragma Pure (long_Math);
c4.2/4-2.asm
heropoo/learning-x86-assembler
0
177267
<gh_stars>0 mov ax,0xb800 mov ds,ax mov [0x00],'a' mov [0x02],'s' mov [0x04],'m' jmp $
src/Generics/Telescope/Equality.agda
flupe/generics
11
2687
<reponame>flupe/generics<filename>src/Generics/Telescope/Equality.agda {-# OPTIONS --safe --without-K #-} module Generics.Telescope.Equality where -- freely inspired by jespercockx/telescopic -- note that our telescopes extend to the right -- while in telescopic they extend to the left -- a byproduct is that the following defs are overly mutual open import Generics.Prelude open import Generics.Telescope private variable l : Level A : Set l a x y : A ----------- -- Helpers private J⁻¹ : ∀ {a b} {A : Set a} {x : A} (B : (y : A) → x ≡ y → Set b) → {y : A} (p : x ≡ y) → B y p → B x refl J⁻¹ B p = J (λ y e → B y e → B _ refl) p id Jω : ∀ {a} {A : Set a} {x : A} (B : (y : A) → x ≡ y → Setω) → {y : A} (p : x ≡ y) → B x refl → B y p Jω B refl x = x Jω⁻¹ : ∀ {a} {A : Set a} {x : A} (B : (y : A) → x ≡ y → Setω) → {y : A} (p : x ≡ y) → B y p → B x refl Jω⁻¹ B p = Jω (λ y e → B y e → B _ refl) p λ x → x JJ⁻¹ : ∀ {a b} {A : Set a} {x : A} (B : (y : A) → x ≡ y → Set b) → {y : A} {p : x ≡ y} → (z : B y p) → J B p (J⁻¹ B p z) ≡ z JJ⁻¹ B {p = refl} z = refl JJω⁻¹ : ∀ {a} {A : Set a} {x : A} (B : (y : A) → x ≡ y → Setω) → {y : A} {p : x ≡ y} → (z : B y p) → Jω B p (Jω⁻¹ B p z) ≡ω z JJω⁻¹ B {p = refl} z = refl substω : ∀ {a} {A : Set a} (P : A → Setω) {x y : A} → x ≡ y → P x → P y substω P refl x = x substω-substω-sym : ∀ {a} {A : Set a} {P : A → Setω} {x y : A} (x≡y : x ≡ y) {p : P y} → substω P x≡y (substω P (sym x≡y) p) ≡ω p substω-substω-sym refl = reflω ---------------------- -- Telescope Equality _≡ⁿ_ : {T : Telescope A} → ⟦ T ⟧tel a → ⟦ T ⟧tel a → Telescope ⊤ substⁿ : {T : Telescope A} (f : ∀ {x} → ⟦ T ⟧tel x → Set l) {xs ys : ⟦ T ⟧tel a} → ⟦ xs ≡ⁿ ys ⟧tel tt → f xs → f ys reflⁿ : {T : Telescope A} {xs : ⟦ T ⟧tel a} → ⟦ xs ≡ⁿ xs ⟧tel tt substⁿ-refl : {T : Telescope A} (f : ∀ {x} → ⟦ T ⟧tel x → Set l) {xs : ⟦ T ⟧tel a} {x : f xs} → substⁿ f reflⁿ x ≡ x Jⁿ : {T : Telescope A} {xs : ⟦ T ⟧tel a} (ϕ : ∀ ss → ⟦ xs ≡ⁿ ss ⟧tel tt → Set l) → ∀ {ss} (es : ⟦ xs ≡ⁿ ss ⟧tel tt) → ϕ xs reflⁿ → ϕ ss es Jⁿ-refl : {T : Telescope A} {xs : ⟦ T ⟧tel a} (ϕ : ∀ ss → ⟦ xs ≡ⁿ ss ⟧tel tt → Set l) (φ : ϕ xs reflⁿ) → Jⁿ ϕ reflⁿ φ ≡ φ -- TODO: discard equality between irrelevant values _≡ⁿ_ {T = ε} tt tt = ε _≡ⁿ_ {T = T ⊢< n , ai > f} (xs , x) (ys , y) = e ∶ xs ≡ⁿ ys , substⁿ (< relevance ai >_ ∘ f ∘ (_ ,_)) e x ≡ y reflⁿ {T = ε} = tt reflⁿ {T = T ⊢< n , ai > f} {xs , x} = reflⁿ , substⁿ-refl (< relevance ai >_ ∘ f ∘ (_ ,_)) Jⁿ {T = ε} ϕ _ φ = φ Jⁿ {T = T ⊢< n , ai > f} {xs , x} ϕ {ss , s} (es , e) φ = J (λ y ey → ϕ (ss , y) (es , ey)) e $ Jⁿ (λ ss′ es′ → ϕ (ss′ , substⁿ (< relevance ai >_ ∘ f ∘ (_ ,_)) es′ x) (es′ , refl)) es d where d : ϕ (xs , substⁿ (< relevance ai >_ ∘ f ∘ (_ ,_)) reflⁿ x) (reflⁿ , refl) d = J⁻¹ (λ y ey → ϕ (xs , y) (reflⁿ , ey)) (substⁿ-refl _) φ substⁿ {T = ε} f tt z = z substⁿ {T = T ⊢< n , ai > g} f {xs , x} {ys , y} (es , e) z = subst (f ∘ (ys ,_)) e $ Jⁿ (λ rs er → f (rs , substⁿ (< relevance ai >_ ∘ g ∘ (_ ,_)) er x)) es (subst (f ∘ (xs ,_)) (sym (substⁿ-refl (< relevance ai >_ ∘ g ∘ (_ ,_)))) z) substⁿ-refl {T = ε} f = refl substⁿ-refl {T = T ⊢< n , ai > g} f {xs , x} {z} rewrite Jⁿ-refl (λ rs er → f (rs , substⁿ (< relevance ai >_ ∘ g ∘ (_ ,_)) er x)) (subst (f ∘ (xs ,_)) (sym (substⁿ-refl (< relevance ai >_ ∘ g ∘ (_ ,_)))) z) = subst-subst-sym (substⁿ-refl (< relevance ai >_ ∘ g ∘ (_ ,_))) Jⁿ-refl {T = ε} ϕ φ = refl Jⁿ-refl {T = T ⊢< n , ai > f} {xs , x} ϕ φ rewrite Jⁿ-refl (λ ss′ es′ → ϕ (ss′ , substⁿ (< relevance ai >_ ∘ f ∘ (_ ,_)) es′ x) (es′ , refl)) (J⁻¹ (λ y ey → ϕ (xs , y) (reflⁿ , ey)) _ φ) = JJ⁻¹ (λ y ey → ϕ (xs , y) (reflⁿ , ey)) φ ------------------------------ -- Telescope Equality in Setω substωⁿ : {T : Telescope A} (f : ∀ {x} → ⟦ T ⟧tel x → Setω) {xs ys : ⟦ T ⟧tel a} → ⟦ xs ≡ⁿ ys ⟧tel tt → f xs → f ys substωⁿ-refl : {T : Telescope A} (f : ∀ {x} → ⟦ T ⟧tel x → Setω) {xs : ⟦ T ⟧tel a} {x : f xs} → substωⁿ f reflⁿ x ≡ω x Jωⁿ : {T : Telescope A} {xs : ⟦ T ⟧tel a} (ϕ : ∀ ss → ⟦ xs ≡ⁿ ss ⟧tel tt → Setω) → ∀ {ss} (es : ⟦ xs ≡ⁿ ss ⟧tel tt) → ϕ xs reflⁿ → ϕ ss es Jωⁿ-refl : {T : Telescope A} {xs : ⟦ T ⟧tel a} (ϕ : ∀ ss → ⟦ xs ≡ⁿ ss ⟧tel tt → Setω) (φ : ϕ xs reflⁿ) → Jωⁿ ϕ reflⁿ φ ≡ω φ Jωⁿ {T = ε} ϕ _ φ = φ Jωⁿ {T = T ⊢< n , ai > f} {xs , x} ϕ {ss , s} (es , e) φ = Jω (λ y ey → ϕ (ss , y) (es , ey)) e (Jωⁿ (λ ss′ es′ → ϕ (ss′ , substⁿ (< relevance ai >_ ∘ f ∘ (_ ,_)) es′ x) (es′ , refl)) es d) where d : ϕ (xs , substⁿ (< relevance ai >_ ∘ f ∘ (_ ,_)) reflⁿ x) (reflⁿ , refl) d = Jω⁻¹ (λ y ey → ϕ (xs , y) (reflⁿ , ey)) (substⁿ-refl (< relevance ai >_ ∘ f ∘ (_ ,_))) φ substωⁿ {T = ε} f tt z = z substωⁿ {T = T ⊢< n , ai > g} f {xs , x} {ys , y} (es , e) z = substω (λ x → f (ys , x)) e (Jωⁿ (λ rs er → f (rs , substⁿ (< relevance ai >_ ∘ g ∘ (_ ,_)) er x)) es (substω (λ x → f (xs , x)) (sym (substⁿ-refl (< relevance ai >_ ∘ g ∘ (_ ,_)))) z)) substωⁿ-refl {T = ε} f = refl substωⁿ-refl {T = T ⊢< n , ai > g} f {xs , x} {z} = transω (cong≡ωω (λ x → substω (λ x → f (_ , x)) ((substⁿ-refl (< relevance ai >_ ∘ g ∘ (_ ,_)))) x) p) (substω-substω-sym (substⁿ-refl (< relevance ai >_ ∘ g ∘ (_ ,_)))) where p = Jωⁿ-refl (λ rs er → f (rs , substⁿ (< relevance ai >_ ∘ g ∘ (_ ,_)) er x)) (substω (λ x → f (xs , x)) (sym (substⁿ-refl (< relevance ai >_ ∘ g ∘ (_ ,_)))) z) Jωⁿ-refl {T = ε} ϕ φ = refl Jωⁿ-refl {T = T ⊢< n , ai > f} {xs , x} ϕ φ = transω (cong≡ωω (λ x → Jω (λ y ey → ϕ (xs , y) (reflⁿ , ey)) (substⁿ-refl (< relevance ai >_ ∘ f ∘ (_ ,_))) x) p) (JJω⁻¹ (λ y ey → ϕ (xs , y) (reflⁿ , ey)) φ) where p = Jωⁿ-refl (λ ss′ es′ → ϕ (ss′ , substⁿ (< relevance ai >_ ∘ f ∘ (_ ,_)) es′ x) (es′ , refl)) (Jω⁻¹ (λ y ey → ϕ (xs , y) (reflⁿ , ey)) _ φ)
libsrc/_DEVELOPMENT/fcntl/z80/drivers/terminal/console_01/input/console_01_input_terminal/console_01_input_stdio_msg_ictl.asm
meesokim/z88dk
0
18913
<reponame>meesokim/z88dk SECTION code_fcntl PUBLIC console_01_input_stdio_msg_ictl PUBLIC console_01_input_stdio_msg_ictl_0 EXTERN asm_vioctl_driver, error_einval_zc EXTERN l_offset_ix_de, l_setmem_hl EXTERN console_01_input_stdio_msg_flsh console_01_input_stdio_msg_ictl: ; ioctl messages understood: ; ; defc IOCTL_ITERM_RESET = $0101 ; defc IOCTL_ITERM_TIE = $0201 ; defc IOCTL_ITERM_GET_EDITBUF = $0381 ; defc IOCTL_ITERM_SET_EDITBUF = $0301 ; ; in addition to flags managed by stdio ; ; enter : ix = & FDSTRUCT.JP ; bc = first parameter ; de = request ; hl = void *arg (0 if stdio flags) ; ; exit : hl = return value ; carry set if ioctl rejected ; ; uses : af, bc, de, hl ; flag bits managed by stdio? ld a,h or l jr nz, _ictl_messages ; if line mode is being disabled reset the edit buffer ld a,e and $20 jp z, asm_vioctl_driver ; if line mode not being disabled and c jp nz, asm_vioctl_driver ; if line mode not being disabled call asm_vioctl_driver ; set stdio flags push hl ; save return value call console_01_input_stdio_msg_flsh pop hl ret _ictl_messages: ; check the message is specifically for an input terminal ld a,e and $07 cp $01 ; input terminals are type $01 jp nz, error_einval_zc console_01_input_stdio_msg_ictl_0: ; interpret ioctl message ld a,d dec a jp z, console_01_input_stdio_msg_flsh ; reset == flush ?? dec a jr z, _ioctl_tie dec a jp nz, error_einval_zc _ioctl_getset_editbuf: ; e & $80 = 1 for get ; bc = first parameter (b_array *) ; hl = void *arg ld a,e ld hl,16 call l_offset_ix_de ; hl = & fdstruct.pending_char ld e,c ld d,b ; de = & b_array add a,a jr c, _ioctl_get_editbuf _ioctl_set_editbuf: set 6,(ix+7) ; indicate buffer pushed into edit terminal xor a call l_setmem_hl - 6 ; hl = & fdstruct.b_array ex de,hl jr _ioctl_editbuf_copy _ioctl_get_editbuf: inc hl inc hl inc hl ; hl = & fdstruct.b_array _ioctl_editbuf_copy: ld bc,6 ldir or a ret _ioctl_tie: ; bc = first parameter (new oterm *) ; hl = void *arg call console_01_input_stdio_msg_flsh ld hl,14 call l_offset_ix_de ; hl = & fdstruct.oterm ld e,(hl) inc hl ld d,(hl) ; de = old oterm ld a,b and c inc a jr z, _ioctl_tie_exit ; if oterm == -1 ld (hl),b dec hl ld (hl),c ; store new oterm _ioctl_tie_exit: ex de,hl ; hl = old oterm ret
src/data/lib/prim/Agda/Builtin/TrustMe.agda
redfish64/autonomic-agda
0
13463
module Agda.Builtin.TrustMe where open import Agda.Builtin.Equality primitive primTrustMe : ∀ {a} {A : Set a} {x y : A} → x ≡ y
config/AppleScripts/seticon.applescript
khaveesh/dotfiles
2
1641
#!/usr/bin/osascript use framework "AppKit" -------------------------------------------------------------------------------- # PROPERTY DECLARATIONS: property this : a reference to current application property NSWorkspace : a reference to NSWorkspace of this property NSImage : a reference to NSImage of this -------------------------------------------------------------------------------- # IMPLEMENTATION: on run argv set icon to item 1 of argv set target to item 2 of argv setIcon to icon for target end run -------------------------------------------------------------------------------- # HANDLERS: to setIcon to iconPath for filePath set sharedWorkspace to NSWorkspace's sharedWorkspace() set newImage to NSImage's alloc() set icon to newImage's initWithContentsOfFile:iconPath set success to sharedWorkspace's setIcon:icon forFile:filePath options:0 end setIcon
programs/oeis/078/A078113.asm
neoneye/loda
22
1951
<filename>programs/oeis/078/A078113.asm<gh_stars>10-100 ; A078113: Let u(1)=u(2)=1, u(3)=n, u(k) = (1/2)*abs(2*u(k-1) -u(k-2)-u(k-3)); sequence gives values of n such that sum(k>=1, u(k)) is an integer. ; 2,6,7,15,17,33,37,69,77,141,157,285,317,573,637,1149,1277,2301,2557,4605,5117,9213,10237,18429,20477,36861,40957,73725,81917,147453,163837,294909,327677 mov $1,$0 gcd $0,2 mov $2,1 lpb $1 add $0,4 mul $0,2 sub $1,$2 trn $1,1 lpe div $0,2 add $0,1
_maps/Ball Hog.asm
kodishmediacenter/msu-md-sonic
9
98865
<gh_stars>1-10 ; --------------------------------------------------------------------------- ; Sprite mappings - Ball Hog enemy (SBZ) ; --------------------------------------------------------------------------- Map_Hog_internal: dc.w M_Hog_Stand-Map_Hog_internal dc.w M_Hog_Open-Map_Hog_internal dc.w M_Hog_Squat-Map_Hog_internal dc.w M_Hog_Leap-Map_Hog_internal dc.w M_Hog_Ball1-Map_Hog_internal dc.w M_Hog_Ball2-Map_Hog_internal M_Hog_Stand: dc.b 2 dc.b $EF, 9, 0, 0, $F4 dc.b $FF, $A, 0, 6, $F4 ; Ball hog standing M_Hog_Open: dc.b 2 dc.b $EF, 9, 0, 0, $F4 dc.b $FF, $A, 0, $F, $F4 ; Ball hog with hatch open M_Hog_Squat: dc.b 2 dc.b $F4, 9, 0, 0, $F4 dc.b 4, 9, 0, $18, $F4 ; Ball hog squatting M_Hog_Leap: dc.b 2 dc.b $E4, 9, 0, 0, $F4 dc.b $F4, $A, 0, $1E, $F4 ; Ball hog leaping M_Hog_Ball1: dc.b 1 dc.b $F8, 5, 0, $27, $F8 ; Ball (black) M_Hog_Ball2: dc.b 1 dc.b $F8, 5, 0, $2B, $F8 ; Ball (red) even
oeis/166/A166674.asm
neoneye/loda-programs
11
29974
; A166674: Totally multiplicative sequence with a(p) = 5p+2 for prime p. ; Submitted by <NAME> ; 1,12,17,144,27,204,37,1728,289,324,57,2448,67,444,459,20736,87,3468,97,3888,629,684,117,29376,729,804,4913,5328,147,5508,157,248832,969,1044,999,41616,187,1164,1139,46656,207,7548,217,8208,7803,1404,237,352512,1369,8748,1479,9648,267,58956,1539,63936,1649,1764,297,66096,307,1884,10693,2985984,1809,11628,337,12528,1989,11988,357,499392,367,2244,12393,13968,2109,13668,397,559872,83521,2484,417,90576,2349,2604,2499,98496,447,93636,2479,16848,2669,2844,2619,4230144,487,16428,16473,104976 add $0,1 mul $0,2 mov $1,1 mov $2,2 mov $4,1 lpb $0 mul $1,$4 mov $3,$0 add $5,1 lpb $3 mov $4,$0 mod $4,$2 add $2,1 cmp $4,0 cmp $4,0 sub $3,$4 lpe div $0,$2 mov $4,$2 add $5,$2 lpb $5 mul $4,4 add $4,$5 mov $5,1 lpe lpe mov $0,$1 div $0,11
mp-ui.adb
jrcarter/MP
1
6810
-- MP: a Music Player -- Copyright (C) 2021 by PragmAda Software Engineering. All rights reserved. -- Released under the terms of the BSD 3-Clause license; see https://opensource.org/licenses -- -- 2021-06-01 Use new Enpty_Options procedure from Gnoga 1.6a to clear Sel -- 2021-04-01 Adapted to Ada-12 version of PragmARCs -- 2020-09-15 Initial version -- with Ada.Containers.Vectors; with Ada.Directories; with Ada.Exceptions; with Ada.Numerics.Discrete_Random; with Ada.Strings.Bounded; with Ada.Strings.Unbounded; with Gnoga.Application.Singleton; with Gnoga.Gui.Base; with Gnoga.Gui.Element.Common; with Gnoga.Gui.Element.Form; with Gnoga.Gui.Element.Multimedia; with Gnoga.Gui.View; with Gnoga.Gui.Window; with Gnoga_File_Selection; with PragmARC.Persistent_Skip_List_Unbounded; package body MP.UI is package B_Strings is new Ada.Strings.Bounded.Generic_Bounded_Length (Max => 400); use B_Strings; subtype Path_Name is Bounded_String; function Less (Left : Path_Name; Right : Path_Name) return Boolean; -- Files in the working directory are < files in subdirectories package Path_Lists is new PragmARC.Persistent_Skip_List_Unbounded (Element => Path_Name, "<" => Less); Window : Gnoga.Gui.Window.Window_Type; View : Gnoga.Gui.View.View_Type; Player : Gnoga.Gui.Element.Multimedia.Audio_Type; Form : Gnoga.Gui.Element.Form.Form_Type; Sel : Gnoga.Gui.Element.Form.Selection_Type; Count : Gnoga.Gui.Element.Form.Number_Type; Cnt_Lbl : Gnoga.Gui.Element.Form.Label_Type; Delete : Gnoga.Gui.Element.Common.Button_Type; Path : Gnoga.Gui.Element.Form.Text_Type; Browse : Gnoga.Gui.Element.Common.Button_Type; Add : Gnoga.Gui.Element.Common.Button_Type; Play : Gnoga.Gui.Element.Common.Button_Type; Skip : Gnoga.Gui.Element.Common.Button_Type; Quit : Gnoga.Gui.Element.Common.Button_Type; Quit_After : Gnoga.Gui.Element.Form.Check_Box_Type; QA_LbL : Gnoga.Gui.Element.Form.Label_Type; function Less (Left : Path_Name; Right : Path_Name) return Boolean is function Slash_Count (Path : Path_Name) return Natural; function Slash_Count (Path : Path_Name) return Natural is Result : Natural := 0; Path_S : constant String := To_String (Path); begin -- Slash_Count All_Chars : for I in Path_S'Range loop if Path_S (I) = '/' then Result := Result + 1; end if; end loop All_Chars; return Result; end Slash_Count; Count_L : constant Natural := Slash_Count (Left); Count_R : constant Natural := Slash_Count (Right); begin -- Less if Count_L = 0 and Count_R > 0 then return True; end if; if Count_R = 0 and Count_L > 0 then return False; end if; return Left < Right; end Less; task DJ is entry Start; entry Play; entry Skip; entry Quit; end DJ; procedure Play_Selected (Object : in out Gnoga.Gui.Base.Base_Type'Class) is -- Empty; begin -- Play_Selected DJ.Play; exception -- Play_Selected when E : others => Gnoga.Log (Message => "Play_Selected: " & Ada.Exceptions.Exception_Information (E) ); end Play_Selected; procedure Skip_To_Next (Object : in out Gnoga.Gui.Base.Base_Type'Class) is -- Empty; begin -- Skip_To_Next DJ.Skip; exception -- Skip_To_Next when E : others => Gnoga.Log (Message => "Skip_To_Next: " & Ada.Exceptions.Exception_Information (E) ); end Skip_To_Next; procedure Quit_Now (Object : in out Gnoga.Gui.Base.Base_Type'Class) is -- Empty; begin -- Quit_Now DJ.Quit; delay 0.1; Gnoga.Application.Singleton.End_Application; exception -- Quit_Now when E : others => Gnoga.Log (Message => "Quit_Now: " & Ada.Exceptions.Exception_Information (E) ); end Quit_Now; type Song_Info is record Position : Positive; Path : Path_Name; end record; package Song_Lists is new Ada.Containers.Vectors (Index_Type => Positive, Element_Type => Song_Info); List : Path_Lists.Persistent_Skip_List := Path_Lists.Open_List ("playlist.mpl"); Song : Song_Lists.Vector; procedure Make_Song_List (List : in out Song_Lists.Vector) is Position : Natural := 0; procedure Add_One (Item : in Path_Name) is -- Empty; begin -- Add_One Position := Position + 1; List.Append (New_Item => (Position => Position, Path => Item) ); Sel.Add_Option (Value => To_String (Item), Text => To_String (Item) ); end Add_One; procedure Add_All is new Path_Lists.Iterate (Action => Add_One); begin -- Make_Song_List List.Clear; Add_All (List => UI.List); end Make_Song_List; procedure Shuffle (List : in out Song_Lists.Vector) is subtype Index is Integer range 1 .. List.Last_Index; package Index_Random is new Ada.Numerics.Discrete_Random (Result_Subtype => Index); Gen : Index_Random.Generator; J : Index; T : Song_Info; begin -- Shuffle Index_Random.Reset (Gen => Gen); Swap_All : for I in 1 .. List.Last_Index loop J := Index_Random.Random (Gen); T := List.Element (I); List.Replace_Element (Index => I, New_Item => List.Element (J) ); List.Replace_Element (Index => J, New_Item => T); end loop Swap_All; end Shuffle; procedure Refresh is -- Empty; begin -- Refresh Sel.Empty_Options; Make_Song_List (List => Song); Count.Value (Value => Sel.Length); Shuffle (List => Song); end Refresh; procedure Delete_Song (Object : in out Gnoga.Gui.Base.Base_Type'Class) is Index : constant Natural := Sel.Selected_Index; Path : Path_Name; Paused : Boolean := False; begin -- Delete_Song if Index = 0 then return; end if; if not Player.Playback_Ended then Paused := True; Player.Pause; end if; Path := To_Bounded_String (Sel.Text (Index) ); List.Delete (Item => Path); Refresh; if Paused then Player.Play; end if; exception -- Delete_Song when E : others => Gnoga.Log (Message => "Delete_Song: " & Ada.Exceptions.Exception_Information (E) ); end Delete_Song; Current_Directory : constant String := Ada.Directories.Current_Directory; procedure Browse_Songs (Object : in out Gnoga.Gui.Base.Base_Type'Class) is Result : constant Gnoga_File_Selection.Result_Info := Gnoga_File_Selection.Select_File (Window, Current_Directory); begin -- Browse_Songs if Result.Picked then Get_Name : declare Name : constant String := Ada.Strings.Unbounded.To_String (Result.Value); begin -- Get_Name if Name'Length > Current_Directory'Length and then Name (Name'First .. Name'First + Current_Directory'Length - 1) = Current_Directory then Path.Value (Value => Name (Name'First + Current_Directory'Length + 1 .. Name'Last) ); end if; end Get_Name; end if; end Browse_Songs; procedure Add_Song (Object : in out Gnoga.Gui.Base.Base_Type'Class) is Name : constant String := Path.Value; Path : Path_Name; Paused : Boolean := False; begin -- Add_Song if Name'Length = 0 then return; end if; if not Player.Playback_Ended then Paused := True; Player.Pause; end if; Path := To_Bounded_String (Name); List.Insert (Item => Path); Refresh; UI.Path.Value (Value => ""); if Paused then Player.Play; end if; exception -- Add_Song when E : others => Gnoga.Log (Message => "Add_Song: " & Ada.Exceptions.Exception_Information (E) ); end Add_Song; Title : constant String := "MP"; task body DJ is function Start (Song : in String) return Boolean is -- Returns True if Song started; False otherwise -- Empty; begin -- Start Player.Media_Source (Source => Song); Window.Document.Title (Value => Title & ' ' & Song); Wait_For_Ready : for I in 1 .. 10 loop if Player.Ready_To_Play then Player.Play; return True; end if; delay 0.01; end loop Wait_For_Ready; return False; end Start; Current : Song_Info; Index : Positive := 1; Run : Boolean := True; begin -- DJ Wait_For_Song : loop exit Wait_For_Song when Song.Last_Index > 0; select accept Quit; Window.Document.Title (Value => Title); Run := False; or delay 1.0; end select; end loop Wait_For_Song; if Run then accept Start; Forever : loop Current := Song.Element (Index); Sel.Selected (Index => Current.Position); if Start (To_String (Current.Path) ) then Wait_For_End : loop select accept Play; exit Wait_For_End when not Start (Sel.Text (Sel.Selected_Index) ); or accept Skip; Window.Document.Title (Value => Title); exit Wait_For_End; or accept Quit; Window.Document.Title (Value => Title); exit Forever; or delay 1.0; exit Wait_For_End when Player.Playback_Ended; end select; end loop Wait_For_End; end if; exit Forever when Quit_After.Checked; Index := Index + 1; if Index > Song.Last_Index then Index := 1; end if; end loop Forever; if Quit_After.Checked then Window.Document.Title (Value => Title); Gnoga.Application.Singleton.End_Application; end if; end if; exception -- DJ when E : others => Gnoga.Log (Message => "DJ: " & Ada.Exceptions.Exception_Information (E) ); end DJ; begin -- MP.UI Gnoga.Application.Title (Name => Title); Gnoga.Application.HTML_On_Close (HTML => Title & " ended."); Gnoga.Application.Open_URL (url => "http://localhost:8089/"); Gnoga.Application.Singleton.Initialize (Main_Window => Window, Port => 8089); View.Create (Parent => Window); View.Text_Alignment (Value => Gnoga.Gui.Element.Center); Player.Create (Parent => View, Preload => True); View.New_Line; Form.Create (Parent => View); Form.Text_Alignment (Value => Gnoga.Gui.Element.Center); Sel.Create (Form => Form, Visible_Lines => 30); Form.New_Line; Count.Create (Form => Form); Count.Editable (Value => False); Count.Read_Only; Cnt_Lbl.Create (Form => Form, Label_For => Count, Content => "Number of songs:"); Form.New_Line; Delete.Create (Parent => Form, Content => "Delete"); Delete.On_Click_Handler (Handler => Delete_Song'Access); Path.Create (Form => Form, Size => 100); Browse.Create (Parent => Form, Content => "Browse"); Browse.On_Click_Handler (Handler => Browse_Songs'Access); Add.Create (Parent => Form, Content => "Add"); Add.On_Click_Handler (Handler => Add_Song'Access); Form.New_Line; Play.Create (Parent => Form, Content => "Play"); Play.On_Click_Handler (Handler => Play_Selected'Access); Skip.Create (Parent => Form, Content => "Skip"); Skip.On_Click_Handler (Handler => Skip_To_Next'Access); Quit.Create (Parent => Form, Content => "Quit"); Quit.On_Click_Handler (Handler => Quit_Now'Access); Quit_After.Create (Form => Form); QA_LbL.Create (Form => Form, Label_For => Quit_After, Content => "Quit after this song", Auto_Place => False); Refresh; DJ.Start; Gnoga.Application.Singleton.Message_Loop; exception -- MP.UI when E : others => Gnoga.Log (Message => Ada.Exceptions.Exception_Information (E) ); end MP.UI;
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_394_481.asm
ljhsiun2/medusa
9
163309
<reponame>ljhsiun2/medusa .global s_prepare_buffers s_prepare_buffers: push %r8 push %rdi push %rdx lea addresses_normal_ht+0x1efd3, %r8 clflush (%r8) nop nop nop nop nop cmp $64371, %rdi movl $0x61626364, (%r8) xor $11520, %rdx pop %rdx pop %rdi pop %r8 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %r8 push %rcx push %rdi push %rdx // Load lea addresses_PSE+0x155d3, %r15 nop nop add $33665, %rdi movntdqa (%r15), %xmm2 vpextrq $1, %xmm2, %r11 nop and $56195, %r15 // Store lea addresses_D+0x3ed3, %rcx clflush (%rcx) nop nop xor $13183, %r15 mov $0x5152535455565758, %r8 movq %r8, (%rcx) inc %r15 // Load mov $0x62b, %rdi nop nop nop sub $9691, %rcx movups (%rdi), %xmm3 vpextrq $1, %xmm3, %r8 nop nop dec %r8 // Store lea addresses_D+0x126d3, %rcx nop xor $13179, %rdx mov $0x5152535455565758, %rdi movq %rdi, (%rcx) nop nop nop nop nop add $15080, %r8 // Faulty Load lea addresses_D+0x126d3, %rdx clflush (%rdx) nop dec %rcx mov (%rdx), %r11d lea oracles, %rcx and $0xff, %r11 shlq $12, %r11 mov (%rcx,%r11,1), %r11 pop %rdx pop %rdi pop %rcx pop %r8 pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_D', 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 16, 'type': 'addresses_PSE', 'congruent': 7}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_D', 'congruent': 11}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_P', 'congruent': 3}} {'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_D', 'congruent': 0}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_D', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_normal_ht', 'congruent': 8}, 'OP': 'STOR'} {'58': 394} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
test_programs/predec.asm
mfkiwl/QNICE-FPGA-hyperRAM
53
14859
<filename>test_programs/predec.asm ; Test pre-decrement-indirect-and-then-work-with-it ; ; This test program was used to document and to test, after in Release 1.4 ; a CPU bug was discovered, that lead to the strange effect, that in the ; emulator, things like "F" "R" qbin/mandel.out did not work, but in hardware ; it indeed did work. At first, this looked like an emulator bug, but in the ; end it became clear, that the FAT32 implementation relied on a CPU bug to ; work correctly :-) ; ; The original sdcard.asm (and therefore the Monitor-FAT32 implementation) ; contained a statement like this: ; ; ============================================================================ ; ADD @--R4, R4 ; R4 was incremented to skip.. ; ; ..the length information, .. ; ; ..so we need to predecr. .. ; ; ..and then increase the .. ; ; ..pointer to the next segm. ; ============================================================================ ; ; It expected from the CPU the following semantics: ; ; ============================================================================ ; int* a = r4; ; int* b = r4; ; --a; ; b += (*a); ; r4 = b; ; ============================================================================ ; ; In other words: It relied on a CPU bug, that had the implication that the ; second operand still had the old value, even when pre-decremented in the ; first part of the command. Obviously, the right semantics need to be: ; ; ============================================================================ ; int* a = r4; ; --a; ; a += (*a); ; r4 = a; ; ============================================================================ ; ; This test program therefore checks, if the correct behaviour is shown. ; ; done by sy2002 in December 2016 #include "../dist_kit/sysdef.asm" #include "../dist_kit/monitor.def" .ORG 0x8000 MOVE STR_TITLE, R8 SYSCALL(puts, 1) MOVE DATA, R4 ; now points to 0x0003 ADD 1, R4 ; now points to 0xAAAA ; what this should do, if the CPU works correctly: ; 1. decrease R4 by 1, so it now points to 0x0003 ; 2. add 0x0003 to R4 so it now points to 0xCCCC ; ; what the buggy CPU did: ; 1. remember R4 ; 2. decrease R4 by 1 so it now points to 0x0003 ; 3. add 0x0003 to the remembered value, so that it now ; pointed to 0xBBBB ADD @--R4, R4 CMP @R4, 0xCCCC RBRA BUG, !Z MOVE STR_OK, R8 SYSCALL(puts, 1) SYSCALL(crlf, 1) SYSCALL(exit, 1) BUG MOVE STR_BUG, R8 SYSCALL(puts, 1) MOVE @R4, R8 SYSCALL(puthex, 1) SYSCALL(crlf, 1) SYSCALL(exit, 1) DATA .DW 0x0003, 0xAAAA, 0xFFFF, 0xCCCC, 0xBBBB, 0x0001, 0x0002 STR_TITLE .ASCII_P "Test the infamous ADD @--R4, R4 behaviour\n" .ASCII_P "done by sy2002 in December 2016\n\n" .ASCII_W "CPU condition = " STR_OK .ASCII_W "OK" STR_BUG .ASCII_W "BUGGY! wrong value = "
programs/oeis/056/A056123.asm
neoneye/loda
22
11077
; A056123: a(n) = 3*a(n-1) - a(n-2) with a(0)=1, a(1)=11. ; 1,11,32,85,223,584,1529,4003,10480,27437,71831,188056,492337,1288955,3374528,8834629,23129359,60553448,158530985,415039507,1086587536,2844723101,7447581767,19498022200,51046484833,133641432299,349877812064,915992003893,2398098199615,6278302594952,16436809585241,43032126160771,112659568897072,294946580530445,772180172694263,2021593937552344,5292601639962769,13856210982335963,36276031307045120,94971882938799397,248639617509353071,650946969589259816,1704201291258426377,4461656904186019315,11680769421299631568,30580651359712875389,80061184657838994599,209602902613804108408,548747523183573330625,1436639666936915883467,3761171477627174319776,9846874765944607075861,25779452820206646907807,67491483694675333647560,176694998263819354034873,462593511096782728457059,1211085535026528831336304,3170663093982803765551853,8300903746921882465319255,21732048146782843630405912,56895240693426648425898481,148953673933497101647289531,389965781107064656515970112,1020943669387696867900620805,2672865227056025947185892303,6997652011780380973657056104,18320090808285116973785276009,47962620413074969947698771923,125567770430939792869311039760,328740690879744408660234347357,860654302208293433111392002311,2253222215745135890673941659576,5899012345027114238910432976417,15443814819336206826057357269675,40432432112981506239261638832608,105853481519608311891727559228149,277128012445843429435921038851839,725530555817921976416035557327368,1899463655007922499812185633130265,4972860409205845523020521342063427,13019117572609614069249378393060016,34084492308622996684727613837116621,89234359353259375984933463118289847,233618585751155131270072775517752920,611621397900206017825284863434968913 mov $1,1 mov $2,9 lpb $0 sub $0,1 add $2,$1 add $1,$2 lpe mov $0,$1
test/succeed/PatternMatchingLambda.agda
asr/agda-kanso
0
10230
module PatternMatchingLambda where data Bool : Set where true false : Bool data Void : Set where data _≡_ {A : Set}(x : A) : A -> Set where refl : x ≡ x and : Bool -> Bool -> Bool and = λ { true x → x ; false _ → false } or : Bool -> Bool -> Bool or x y = not (and (not x) (not y)) where not : Bool -> Bool not = \ { true -> false ; false -> true } iff : Bool -> Bool -> Bool -> Bool iff = λ { true x -> λ { true → true ; false → false } ; false x -> λ { true -> false ; false -> true } } pattern-matching-lambdas-compute : (x : Bool) -> or true x ≡ true pattern-matching-lambdas-compute x = refl isTrue : Bool -> Set isTrue = \ { true -> Bool ; false -> Void } absurd : (x : Bool) -> isTrue x -> Bool absurd = \ { true x -> x ; false () } --carefully chosen without eta, so that pattern matching is needed data Unit : Set where unit : Unit isNotUnit : Unit -> Set isNotUnit = \ { tt -> Void } absurd-one-clause : (x : Unit) -> isNotUnit x -> Bool absurd-one-clause = λ { tt ()} data indexed-by-xor : (Bool -> Bool -> Bool) -> Set where c : (b : Bool) -> indexed-by-xor \ { true true -> false ; false false -> false ; _ _ -> true } -- won't work if the underscore is replaced with the actual value at the moment f : (r : Bool -> Bool -> Bool) -> indexed-by-xor r -> Bool f ._ (c b) = b record Σ (A : Set)(B : A -> Set) : Set where constructor _,_ field proj₁ : A proj₂ : B proj₁ fst : {A : Set}{B : A -> Set} -> (x : Σ A B) -> A fst = \ { (a , b) -> a } snd : {A : Set}{B : A -> Set} -> (x : Σ A B) -> B (fst x) snd = \ { (a , b) -> b } record FamSet : Set1 where constructor _,_ field A : Set B : A -> Set ΣFAM : (A : Set)(B : A -> Set)(P : A -> Set)(Q : (x : A) -> B x -> P x -> Set) -> FamSet ΣFAM A B P Q = (Σ A P , \ { (a , p) -> Σ (B a) (λ b → Q a b p) } ) --The syntax doesn't interfere with hidden lambdas etc: postulate P : ({x : Bool} -> Bool) -> Set p : P (λ {x} → x) --Issue 446: Absurd clauses can appear inside more complex expressions data Box (A : Set) : Set where box : A → Box A foo : {A : Set} → Box Void → A foo = λ { (box ()) }
orka/src/orka/interface/orka-algebra.ads
onox/orka
52
5696
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <<EMAIL>> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. with GL.Types; with Orka.Transforms.SIMD_Matrices; generic with package Transforms is new Orka.Transforms.SIMD_Matrices (<>); package Orka.Algebra is pragma Pure; subtype Matrix4 is Transforms.Matrix4; subtype Vector4 is Transforms.Vector4; function Identity4 return Matrix4 is (Transforms.Identity_Matrix); function Zero4 return Vector4 is (Transforms.Vectors.Zero_Vector); type Vector4_Array is array (GL.Types.Size range <>) of aliased Vector4 with Convention => C; type Matrix4_Array is array (GL.Types.Size range <>) of aliased Matrix4 with Convention => C; end Orka.Algebra;
Appl/FileMgrs2/CommonDesktop/CFolder/cfolderSelect.asm
steakknife/pcgeos
504
166311
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1988 -- All Rights Reserved PROJECT: PC GEOS MODULE: Desktop/Folder FILE: folderSelect.asm AUTHOR: <NAME> ROUTINES: INT DeselectAll - deselect all selected files INT AddToSelectList - add file to selection list INT RemoveFromSeletList - remove file from selection list INT AnchoredSelect - select group INT HideSelection - hide selected files INT UnhideSelection - unhide selected files REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 8/89 Initial version DESCRIPTION: This file contains routines to support file selection list. $Id: cfolderSelect.asm,v 1.2 98/05/05 00:57:35 joon Exp $ ------------------------------------------------------------------------------@ FolderAction segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DeselectAll %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: deselects all selected files CALLED BY: INTERNAL FolderDeselectAll PASS: *ds:si - FolderClass object es - segment of locked folder buffer RETURN: preserves ds, si, es, di DESTROYED: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 8/11/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DeselectAll proc far uses di, si, bx class FolderClass .enter mov di, NIL call SetCursor DerefFolderObject ds, si, bx mov di, ds:[bx].FOI_selectList ; start of select list startLoop: cmp di, NIL ; check if end-of-list mark je done ; if so, done! and es:[di].FR_state, not (mask FRSF_SELECTED) ; unselect test ds:[bx].FOI_folderState, mask FOS_UPDATE_PENDING jz invert ornf es:[di].FR_state, mask FRSF_DELAYED jmp after invert: call InvertIfTarget after: mov di, es:[di].FR_selectNext jmp startLoop done: mov ds:[bx].FOI_selectList, NIL ; clear list .leave ret DeselectAll endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AddToSelectList %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: add this file to the selection list CALLED BY: FolderObjectPress PASS: es:di - pointer to folder buffer entry of file to add *ds:si - FolderClass object RETURN: file added to selection list (ds:[si].FOI_selectList) ds, si, es, di preserved DESTROYED: nothing PSEUDO CODE/STRATEGY: find end of selection list tack file onto end of list KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 8/11/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AddToSelectList proc far class FolderClass uses ax, bx, si, bp .enter DerefFolderObject ds, si, bx mov bp, ds:[bx].FOI_selectList ; get head of selection list cmp bp, NIL ; check if empty list je empty ; if so, handle specially startLoop: mov bx, bp ; get this item's addr. mov bp, es:[bx].FR_selectNext ; get next item in list cmp bp, NIL ; check if end-of-list jne startLoop ; if not, go back for more mov es:[bx].FR_selectNext, di ; attach new to end-of-list jmp short endIt ; then make sure it's the end empty: mov ds:[bx].FOI_selectList, di ; make new the whole list endIt: mov es:[di].FR_selectNext, NIL ; make new one the end-of-list ornf es:[di].FR_state, mask FRSF_SELECTED DerefFolderObject ds, si, bx test ds:[bx].FOI_folderState, mask FOS_UPDATE_PENDING jz invert ornf es:[di].FR_state, mask FRSF_DELAYED jmp done invert: call InvertIfTarget done: .leave ret AddToSelectList endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% RemoveFromSelectList %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: remove this file from the selection list CALLED BY: calledby PASS: es:di - pointer to folder buffer entry of file to remove *ds:si - FolderClass object RETURN: file removed from selection list (ds:[si].FOI_selectList) ds, si, es, di preserved DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 9/15/89 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ RemoveFromSelectList proc far class FolderClass uses ax, bx, si, bp .enter DerefFolderObject ds, si, bx cmp ds:[bx].FOI_selectList, NIL ; empty list? je done ; yes cmp di, ds:[bx].FOI_selectList ; are we head of list? jne notHead ; if not, continue mov bp, es:[di].FR_selectNext ; get the one after us mov ds:[bx].FOI_selectList, bp ; attach as new head of list jmp markNotSelected ; done! notHead: mov bp, ds:[bx].FOI_selectList ; start at beginning of list mov bx, es:[bp].FR_selectNext ; we aren't the first, get next startLoop: cmp bx, NIL ; is this end of list? je done ; if so, done cmp bx, di ; is this us? je foundUs ; if so, unlink us mov bp, bx ; save previous one mov bx, es:[bx].FR_selectNext ; else, get next in list jmp startLoop ; and check it foundUs: mov bx, es:[di].FR_selectNext ; get the one after us mov es:[bp].FR_selectNext, bx ; attach to the one before us markNotSelected: EC < test es:[di].FR_state, mask FRSF_SELECTED > EC < ERROR_Z -1 > andnf es:[di].FR_state, not (mask FRSF_SELECTED) DerefFolderObject ds, si, bx test ds:[bx].FOI_folderState, mask FOS_UPDATE_PENDING jz invert ornf es:[di].FR_state, mask FRSF_DELAYED jmp done invert: call InvertIfTarget done: .leave ret RemoveFromSelectList endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% UnselectESDIEntry %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Unselect a file CALLED BY: PASS: *ds:si - FolderClass object es:di - FolderRecord to select RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- cdb 7/17/92 added header %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ UnselectESDIEntry proc far class FolderClass uses bx .enter call RemoveFromSelectList call PrintFolderInfoString GM< mov bx, ds:[si] > GM< mov bx, ds:[bx].FOI_selectList > GM< call UpdateFileMenuCommon > .leave ret UnselectESDIEntry endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SelectESDIEntry %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: CALLED BY: PASS: *ds:si - FolderClass object es:di - FolderRecord RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- cdb 7/17/92 added header %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SelectESDIEntry proc far class FolderClass uses bx .enter DerefFolderObject ds, si, bx mov ds:[bx].FOI_anchorIcon, NIL ; reset extend select anchor call SetCursor call AddToSelectList ; add DI to selection list call PrintFolderInfoString ; update selection status .leave ret SelectESDIEntry endp FolderAction ends
examples/Termination/Mutual.agda
cruhland/agda
1,989
11569
-- examples for termination checking mutual recursion module Mutual where data Odd : Set data Even : Set where zeroE : Even succE : Odd -> Even data Odd where succO : Even -> Odd addEO : Even -> Odd -> Odd addOO : Odd -> Odd -> Even addOO (succO x) y = succE (addEO x y) addEO zeroE y = y addEO (succE x) y = succO (addOO x y)
ps.asm
anishkasachdeva/XV6_Operating_System
0
11328
_ps: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "user.h" #include "fcntl.h" int main(int argc, char *argv[]) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 push %ebp b: 89 e5 mov %esp,%ebp d: 51 push %ecx e: 83 ec 04 sub $0x4,%esp cps(); 11: e8 f4 02 00 00 call 30a <cps> exit(); 16: e8 47 02 00 00 call 262 <exit> 1b: 66 90 xchg %ax,%ax 1d: 66 90 xchg %ax,%ax 1f: 90 nop 00000020 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, const char *t) { 20: 55 push %ebp 21: 89 e5 mov %esp,%ebp 23: 53 push %ebx 24: 8b 45 08 mov 0x8(%ebp),%eax 27: 8b 4d 0c mov 0xc(%ebp),%ecx char *os; os = s; while((*s++ = *t++) != 0) 2a: 89 c2 mov %eax,%edx 2c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 30: 83 c1 01 add $0x1,%ecx 33: 0f b6 59 ff movzbl -0x1(%ecx),%ebx 37: 83 c2 01 add $0x1,%edx 3a: 84 db test %bl,%bl 3c: 88 5a ff mov %bl,-0x1(%edx) 3f: 75 ef jne 30 <strcpy+0x10> ; return os; } 41: 5b pop %ebx 42: 5d pop %ebp 43: c3 ret 44: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 4a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 00000050 <strcmp>: int strcmp(const char *p, const char *q) { 50: 55 push %ebp 51: 89 e5 mov %esp,%ebp 53: 56 push %esi 54: 53 push %ebx 55: 8b 55 08 mov 0x8(%ebp),%edx 58: 8b 4d 0c mov 0xc(%ebp),%ecx while(*p && *p == *q) 5b: 0f b6 02 movzbl (%edx),%eax 5e: 0f b6 19 movzbl (%ecx),%ebx 61: 84 c0 test %al,%al 63: 75 1e jne 83 <strcmp+0x33> 65: eb 29 jmp 90 <strcmp+0x40> 67: 89 f6 mov %esi,%esi 69: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi p++, q++; 70: 83 c2 01 add $0x1,%edx } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 73: 0f b6 02 movzbl (%edx),%eax p++, q++; 76: 8d 71 01 lea 0x1(%ecx),%esi } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 79: 0f b6 59 01 movzbl 0x1(%ecx),%ebx 7d: 84 c0 test %al,%al 7f: 74 0f je 90 <strcmp+0x40> 81: 89 f1 mov %esi,%ecx 83: 38 d8 cmp %bl,%al 85: 74 e9 je 70 <strcmp+0x20> p++, q++; return (uchar)*p - (uchar)*q; 87: 29 d8 sub %ebx,%eax } 89: 5b pop %ebx 8a: 5e pop %esi 8b: 5d pop %ebp 8c: c3 ret 8d: 8d 76 00 lea 0x0(%esi),%esi } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 90: 31 c0 xor %eax,%eax p++, q++; return (uchar)*p - (uchar)*q; 92: 29 d8 sub %ebx,%eax } 94: 5b pop %ebx 95: 5e pop %esi 96: 5d pop %ebp 97: c3 ret 98: 90 nop 99: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 000000a0 <strlen>: uint strlen(const char *s) { a0: 55 push %ebp a1: 89 e5 mov %esp,%ebp a3: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) a6: 80 39 00 cmpb $0x0,(%ecx) a9: 74 12 je bd <strlen+0x1d> ab: 31 d2 xor %edx,%edx ad: 8d 76 00 lea 0x0(%esi),%esi b0: 83 c2 01 add $0x1,%edx b3: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) b7: 89 d0 mov %edx,%eax b9: 75 f5 jne b0 <strlen+0x10> ; return n; } bb: 5d pop %ebp bc: c3 ret uint strlen(const char *s) { int n; for(n = 0; s[n]; n++) bd: 31 c0 xor %eax,%eax ; return n; } bf: 5d pop %ebp c0: c3 ret c1: eb 0d jmp d0 <memset> c3: 90 nop c4: 90 nop c5: 90 nop c6: 90 nop c7: 90 nop c8: 90 nop c9: 90 nop ca: 90 nop cb: 90 nop cc: 90 nop cd: 90 nop ce: 90 nop cf: 90 nop 000000d0 <memset>: void* memset(void *dst, int c, uint n) { d0: 55 push %ebp d1: 89 e5 mov %esp,%ebp d3: 57 push %edi d4: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : d7: 8b 4d 10 mov 0x10(%ebp),%ecx da: 8b 45 0c mov 0xc(%ebp),%eax dd: 89 d7 mov %edx,%edi df: fc cld e0: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } e2: 89 d0 mov %edx,%eax e4: 5f pop %edi e5: 5d pop %ebp e6: c3 ret e7: 89 f6 mov %esi,%esi e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 000000f0 <strchr>: char* strchr(const char *s, char c) { f0: 55 push %ebp f1: 89 e5 mov %esp,%ebp f3: 53 push %ebx f4: 8b 45 08 mov 0x8(%ebp),%eax f7: 8b 5d 0c mov 0xc(%ebp),%ebx for(; *s; s++) fa: 0f b6 10 movzbl (%eax),%edx fd: 84 d2 test %dl,%dl ff: 74 1d je 11e <strchr+0x2e> if(*s == c) 101: 38 d3 cmp %dl,%bl 103: 89 d9 mov %ebx,%ecx 105: 75 0d jne 114 <strchr+0x24> 107: eb 17 jmp 120 <strchr+0x30> 109: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 110: 38 ca cmp %cl,%dl 112: 74 0c je 120 <strchr+0x30> } char* strchr(const char *s, char c) { for(; *s; s++) 114: 83 c0 01 add $0x1,%eax 117: 0f b6 10 movzbl (%eax),%edx 11a: 84 d2 test %dl,%dl 11c: 75 f2 jne 110 <strchr+0x20> if(*s == c) return (char*)s; return 0; 11e: 31 c0 xor %eax,%eax } 120: 5b pop %ebx 121: 5d pop %ebp 122: c3 ret 123: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 129: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000130 <gets>: char* gets(char *buf, int max) { 130: 55 push %ebp 131: 89 e5 mov %esp,%ebp 133: 57 push %edi 134: 56 push %esi 135: 53 push %ebx int i, cc; char c; for(i=0; i+1 < max; ){ 136: 31 f6 xor %esi,%esi cc = read(0, &c, 1); 138: 8d 7d e7 lea -0x19(%ebp),%edi return 0; } char* gets(char *buf, int max) { 13b: 83 ec 1c sub $0x1c,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 13e: eb 29 jmp 169 <gets+0x39> cc = read(0, &c, 1); 140: 83 ec 04 sub $0x4,%esp 143: 6a 01 push $0x1 145: 57 push %edi 146: 6a 00 push $0x0 148: e8 2d 01 00 00 call 27a <read> if(cc < 1) 14d: 83 c4 10 add $0x10,%esp 150: 85 c0 test %eax,%eax 152: 7e 1d jle 171 <gets+0x41> break; buf[i++] = c; 154: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 158: 8b 55 08 mov 0x8(%ebp),%edx 15b: 89 de mov %ebx,%esi if(c == '\n' || c == '\r') 15d: 3c 0a cmp $0xa,%al for(i=0; i+1 < max; ){ cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; 15f: 88 44 1a ff mov %al,-0x1(%edx,%ebx,1) if(c == '\n' || c == '\r') 163: 74 1b je 180 <gets+0x50> 165: 3c 0d cmp $0xd,%al 167: 74 17 je 180 <gets+0x50> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 169: 8d 5e 01 lea 0x1(%esi),%ebx 16c: 3b 5d 0c cmp 0xc(%ebp),%ebx 16f: 7c cf jl 140 <gets+0x10> break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 171: 8b 45 08 mov 0x8(%ebp),%eax 174: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } 178: 8d 65 f4 lea -0xc(%ebp),%esp 17b: 5b pop %ebx 17c: 5e pop %esi 17d: 5f pop %edi 17e: 5d pop %ebp 17f: c3 ret break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 180: 8b 45 08 mov 0x8(%ebp),%eax gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 183: 89 de mov %ebx,%esi break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 185: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } 189: 8d 65 f4 lea -0xc(%ebp),%esp 18c: 5b pop %ebx 18d: 5e pop %esi 18e: 5f pop %edi 18f: 5d pop %ebp 190: c3 ret 191: eb 0d jmp 1a0 <stat> 193: 90 nop 194: 90 nop 195: 90 nop 196: 90 nop 197: 90 nop 198: 90 nop 199: 90 nop 19a: 90 nop 19b: 90 nop 19c: 90 nop 19d: 90 nop 19e: 90 nop 19f: 90 nop 000001a0 <stat>: int stat(const 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 f0 00 00 00 call 2a2 <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 f3 00 00 00 call 2ba <fstat> 1c7: 89 c6 mov %eax,%esi close(fd); 1c9: 89 1c 24 mov %ebx,(%esp) 1cc: e8 b9 00 00 00 call 28a <close> return r; 1d1: 83 c4 10 add $0x10,%esp 1d4: 89 f0 mov %esi,%eax } 1d6: 8d 65 f8 lea -0x8(%ebp),%esp 1d9: 5b pop %ebx 1da: 5e pop %esi 1db: 5d pop %ebp 1dc: c3 ret 1dd: 8d 76 00 lea 0x0(%esi),%esi int fd; int r; fd = open(n, O_RDONLY); if(fd < 0) return -1; 1e0: b8 ff ff ff ff mov $0xffffffff,%eax 1e5: eb ef jmp 1d6 <stat+0x36> 1e7: 89 f6 mov %esi,%esi 1e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 000001f0 <atoi>: return r; } int atoi(const char *s) { 1f0: 55 push %ebp 1f1: 89 e5 mov %esp,%ebp 1f3: 53 push %ebx 1f4: 8b 4d 08 mov 0x8(%ebp),%ecx int n; n = 0; while('0' <= *s && *s <= '9') 1f7: 0f be 11 movsbl (%ecx),%edx 1fa: 8d 42 d0 lea -0x30(%edx),%eax 1fd: 3c 09 cmp $0x9,%al 1ff: b8 00 00 00 00 mov $0x0,%eax 204: 77 1f ja 225 <atoi+0x35> 206: 8d 76 00 lea 0x0(%esi),%esi 209: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi n = n*10 + *s++ - '0'; 210: 8d 04 80 lea (%eax,%eax,4),%eax 213: 83 c1 01 add $0x1,%ecx 216: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 21a: 0f be 11 movsbl (%ecx),%edx 21d: 8d 5a d0 lea -0x30(%edx),%ebx 220: 80 fb 09 cmp $0x9,%bl 223: 76 eb jbe 210 <atoi+0x20> n = n*10 + *s++ - '0'; return n; } 225: 5b pop %ebx 226: 5d pop %ebp 227: c3 ret 228: 90 nop 229: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000230 <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 230: 55 push %ebp 231: 89 e5 mov %esp,%ebp 233: 56 push %esi 234: 53 push %ebx 235: 8b 5d 10 mov 0x10(%ebp),%ebx 238: 8b 45 08 mov 0x8(%ebp),%eax 23b: 8b 75 0c mov 0xc(%ebp),%esi char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 23e: 85 db test %ebx,%ebx 240: 7e 14 jle 256 <memmove+0x26> 242: 31 d2 xor %edx,%edx 244: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi *dst++ = *src++; 248: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx 24c: 88 0c 10 mov %cl,(%eax,%edx,1) 24f: 83 c2 01 add $0x1,%edx char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 252: 39 da cmp %ebx,%edx 254: 75 f2 jne 248 <memmove+0x18> *dst++ = *src++; return vdst; } 256: 5b pop %ebx 257: 5e pop %esi 258: 5d pop %ebp 259: c3 ret 0000025a <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 25a: b8 01 00 00 00 mov $0x1,%eax 25f: cd 40 int $0x40 261: c3 ret 00000262 <exit>: SYSCALL(exit) 262: b8 02 00 00 00 mov $0x2,%eax 267: cd 40 int $0x40 269: c3 ret 0000026a <wait>: SYSCALL(wait) 26a: b8 03 00 00 00 mov $0x3,%eax 26f: cd 40 int $0x40 271: c3 ret 00000272 <pipe>: SYSCALL(pipe) 272: b8 04 00 00 00 mov $0x4,%eax 277: cd 40 int $0x40 279: c3 ret 0000027a <read>: SYSCALL(read) 27a: b8 05 00 00 00 mov $0x5,%eax 27f: cd 40 int $0x40 281: c3 ret 00000282 <write>: SYSCALL(write) 282: b8 10 00 00 00 mov $0x10,%eax 287: cd 40 int $0x40 289: c3 ret 0000028a <close>: SYSCALL(close) 28a: b8 15 00 00 00 mov $0x15,%eax 28f: cd 40 int $0x40 291: c3 ret 00000292 <kill>: SYSCALL(kill) 292: b8 06 00 00 00 mov $0x6,%eax 297: cd 40 int $0x40 299: c3 ret 0000029a <exec>: SYSCALL(exec) 29a: b8 07 00 00 00 mov $0x7,%eax 29f: cd 40 int $0x40 2a1: c3 ret 000002a2 <open>: SYSCALL(open) 2a2: b8 0f 00 00 00 mov $0xf,%eax 2a7: cd 40 int $0x40 2a9: c3 ret 000002aa <mknod>: SYSCALL(mknod) 2aa: b8 11 00 00 00 mov $0x11,%eax 2af: cd 40 int $0x40 2b1: c3 ret 000002b2 <unlink>: SYSCALL(unlink) 2b2: b8 12 00 00 00 mov $0x12,%eax 2b7: cd 40 int $0x40 2b9: c3 ret 000002ba <fstat>: SYSCALL(fstat) 2ba: b8 08 00 00 00 mov $0x8,%eax 2bf: cd 40 int $0x40 2c1: c3 ret 000002c2 <link>: SYSCALL(link) 2c2: b8 13 00 00 00 mov $0x13,%eax 2c7: cd 40 int $0x40 2c9: c3 ret 000002ca <mkdir>: SYSCALL(mkdir) 2ca: b8 14 00 00 00 mov $0x14,%eax 2cf: cd 40 int $0x40 2d1: c3 ret 000002d2 <chdir>: SYSCALL(chdir) 2d2: b8 09 00 00 00 mov $0x9,%eax 2d7: cd 40 int $0x40 2d9: c3 ret 000002da <dup>: SYSCALL(dup) 2da: b8 0a 00 00 00 mov $0xa,%eax 2df: cd 40 int $0x40 2e1: c3 ret 000002e2 <getpid>: SYSCALL(getpid) 2e2: b8 0b 00 00 00 mov $0xb,%eax 2e7: cd 40 int $0x40 2e9: c3 ret 000002ea <sbrk>: SYSCALL(sbrk) 2ea: b8 0c 00 00 00 mov $0xc,%eax 2ef: cd 40 int $0x40 2f1: c3 ret 000002f2 <sleep>: SYSCALL(sleep) 2f2: b8 0d 00 00 00 mov $0xd,%eax 2f7: cd 40 int $0x40 2f9: c3 ret 000002fa <waitx>: SYSCALL(waitx) 2fa: b8 16 00 00 00 mov $0x16,%eax 2ff: cd 40 int $0x40 301: c3 ret 00000302 <getpinfo>: SYSCALL(getpinfo) 302: b8 17 00 00 00 mov $0x17,%eax 307: cd 40 int $0x40 309: c3 ret 0000030a <cps>: SYSCALL(cps) 30a: b8 18 00 00 00 mov $0x18,%eax 30f: cd 40 int $0x40 311: c3 ret 00000312 <set_priority>: 312: b8 19 00 00 00 mov $0x19,%eax 317: cd 40 int $0x40 319: c3 ret 31a: 66 90 xchg %ax,%ax 31c: 66 90 xchg %ax,%ax 31e: 66 90 xchg %ax,%ax 00000320 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 320: 55 push %ebp 321: 89 e5 mov %esp,%ebp 323: 57 push %edi 324: 56 push %esi 325: 53 push %ebx 326: 89 c6 mov %eax,%esi 328: 83 ec 3c sub $0x3c,%esp char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 32b: 8b 5d 08 mov 0x8(%ebp),%ebx 32e: 85 db test %ebx,%ebx 330: 74 7e je 3b0 <printint+0x90> 332: 89 d0 mov %edx,%eax 334: c1 e8 1f shr $0x1f,%eax 337: 84 c0 test %al,%al 339: 74 75 je 3b0 <printint+0x90> neg = 1; x = -xx; 33b: 89 d0 mov %edx,%eax int i, neg; uint x; neg = 0; if(sgn && xx < 0){ neg = 1; 33d: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp) x = -xx; 344: f7 d8 neg %eax 346: 89 75 c0 mov %esi,-0x40(%ebp) } else { x = xx; } i = 0; 349: 31 ff xor %edi,%edi 34b: 8d 5d d7 lea -0x29(%ebp),%ebx 34e: 89 ce mov %ecx,%esi 350: eb 08 jmp 35a <printint+0x3a> 352: 8d b6 00 00 00 00 lea 0x0(%esi),%esi do{ buf[i++] = digits[x % base]; 358: 89 cf mov %ecx,%edi 35a: 31 d2 xor %edx,%edx 35c: 8d 4f 01 lea 0x1(%edi),%ecx 35f: f7 f6 div %esi 361: 0f b6 92 e8 06 00 00 movzbl 0x6e8(%edx),%edx }while((x /= base) != 0); 368: 85 c0 test %eax,%eax x = xx; } i = 0; do{ buf[i++] = digits[x % base]; 36a: 88 14 0b mov %dl,(%ebx,%ecx,1) }while((x /= base) != 0); 36d: 75 e9 jne 358 <printint+0x38> if(neg) 36f: 8b 45 c4 mov -0x3c(%ebp),%eax 372: 8b 75 c0 mov -0x40(%ebp),%esi 375: 85 c0 test %eax,%eax 377: 74 08 je 381 <printint+0x61> buf[i++] = '-'; 379: c6 44 0d d8 2d movb $0x2d,-0x28(%ebp,%ecx,1) 37e: 8d 4f 02 lea 0x2(%edi),%ecx 381: 8d 7c 0d d7 lea -0x29(%ebp,%ecx,1),%edi 385: 8d 76 00 lea 0x0(%esi),%esi 388: 0f b6 07 movzbl (%edi),%eax #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 38b: 83 ec 04 sub $0x4,%esp 38e: 83 ef 01 sub $0x1,%edi 391: 6a 01 push $0x1 393: 53 push %ebx 394: 56 push %esi 395: 88 45 d7 mov %al,-0x29(%ebp) 398: e8 e5 fe ff ff call 282 <write> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 39d: 83 c4 10 add $0x10,%esp 3a0: 39 df cmp %ebx,%edi 3a2: 75 e4 jne 388 <printint+0x68> putc(fd, buf[i]); } 3a4: 8d 65 f4 lea -0xc(%ebp),%esp 3a7: 5b pop %ebx 3a8: 5e pop %esi 3a9: 5f pop %edi 3aa: 5d pop %ebp 3ab: c3 ret 3ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; } else { x = xx; 3b0: 89 d0 mov %edx,%eax static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 3b2: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) 3b9: eb 8b jmp 346 <printint+0x26> 3bb: 90 nop 3bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 000003c0 <printf>: } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 3c0: 55 push %ebp 3c1: 89 e5 mov %esp,%ebp 3c3: 57 push %edi 3c4: 56 push %esi 3c5: 53 push %ebx int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 3c6: 8d 45 10 lea 0x10(%ebp),%eax } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 3c9: 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++){ 3cc: 8b 75 0c mov 0xc(%ebp),%esi } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 3cf: 8b 7d 08 mov 0x8(%ebp),%edi int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 3d2: 89 45 d0 mov %eax,-0x30(%ebp) 3d5: 0f b6 1e movzbl (%esi),%ebx 3d8: 83 c6 01 add $0x1,%esi 3db: 84 db test %bl,%bl 3dd: 0f 84 b0 00 00 00 je 493 <printf+0xd3> 3e3: 31 d2 xor %edx,%edx 3e5: eb 39 jmp 420 <printf+0x60> 3e7: 89 f6 mov %esi,%esi 3e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 3f0: 83 f8 25 cmp $0x25,%eax 3f3: 89 55 d4 mov %edx,-0x2c(%ebp) state = '%'; 3f6: ba 25 00 00 00 mov $0x25,%edx state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 3fb: 74 18 je 415 <printf+0x55> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 3fd: 8d 45 e2 lea -0x1e(%ebp),%eax 400: 83 ec 04 sub $0x4,%esp 403: 88 5d e2 mov %bl,-0x1e(%ebp) 406: 6a 01 push $0x1 408: 50 push %eax 409: 57 push %edi 40a: e8 73 fe ff ff call 282 <write> 40f: 8b 55 d4 mov -0x2c(%ebp),%edx 412: 83 c4 10 add $0x10,%esp 415: 83 c6 01 add $0x1,%esi int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 418: 0f b6 5e ff movzbl -0x1(%esi),%ebx 41c: 84 db test %bl,%bl 41e: 74 73 je 493 <printf+0xd3> c = fmt[i] & 0xff; if(state == 0){ 420: 85 d2 test %edx,%edx uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; 422: 0f be cb movsbl %bl,%ecx 425: 0f b6 c3 movzbl %bl,%eax if(state == 0){ 428: 74 c6 je 3f0 <printf+0x30> if(c == '%'){ state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 42a: 83 fa 25 cmp $0x25,%edx 42d: 75 e6 jne 415 <printf+0x55> if(c == 'd'){ 42f: 83 f8 64 cmp $0x64,%eax 432: 0f 84 f8 00 00 00 je 530 <printf+0x170> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 438: 81 e1 f7 00 00 00 and $0xf7,%ecx 43e: 83 f9 70 cmp $0x70,%ecx 441: 74 5d je 4a0 <printf+0xe0> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 443: 83 f8 73 cmp $0x73,%eax 446: 0f 84 84 00 00 00 je 4d0 <printf+0x110> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 44c: 83 f8 63 cmp $0x63,%eax 44f: 0f 84 ea 00 00 00 je 53f <printf+0x17f> putc(fd, *ap); ap++; } else if(c == '%'){ 455: 83 f8 25 cmp $0x25,%eax 458: 0f 84 c2 00 00 00 je 520 <printf+0x160> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 45e: 8d 45 e7 lea -0x19(%ebp),%eax 461: 83 ec 04 sub $0x4,%esp 464: c6 45 e7 25 movb $0x25,-0x19(%ebp) 468: 6a 01 push $0x1 46a: 50 push %eax 46b: 57 push %edi 46c: e8 11 fe ff ff call 282 <write> 471: 83 c4 0c add $0xc,%esp 474: 8d 45 e6 lea -0x1a(%ebp),%eax 477: 88 5d e6 mov %bl,-0x1a(%ebp) 47a: 6a 01 push $0x1 47c: 50 push %eax 47d: 57 push %edi 47e: 83 c6 01 add $0x1,%esi 481: e8 fc fd ff ff call 282 <write> int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 486: 0f b6 5e ff movzbl -0x1(%esi),%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 48a: 83 c4 10 add $0x10,%esp } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 48d: 31 d2 xor %edx,%edx int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 48f: 84 db test %bl,%bl 491: 75 8d jne 420 <printf+0x60> putc(fd, c); } state = 0; } } } 493: 8d 65 f4 lea -0xc(%ebp),%esp 496: 5b pop %ebx 497: 5e pop %esi 498: 5f pop %edi 499: 5d pop %ebp 49a: c3 ret 49b: 90 nop 49c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); 4a0: 83 ec 0c sub $0xc,%esp 4a3: b9 10 00 00 00 mov $0x10,%ecx 4a8: 6a 00 push $0x0 4aa: 8b 5d d0 mov -0x30(%ebp),%ebx 4ad: 89 f8 mov %edi,%eax 4af: 8b 13 mov (%ebx),%edx 4b1: e8 6a fe ff ff call 320 <printint> ap++; 4b6: 89 d8 mov %ebx,%eax 4b8: 83 c4 10 add $0x10,%esp } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 4bb: 31 d2 xor %edx,%edx if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); ap++; 4bd: 83 c0 04 add $0x4,%eax 4c0: 89 45 d0 mov %eax,-0x30(%ebp) 4c3: e9 4d ff ff ff jmp 415 <printf+0x55> 4c8: 90 nop 4c9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi } else if(c == 's'){ s = (char*)*ap; 4d0: 8b 45 d0 mov -0x30(%ebp),%eax 4d3: 8b 18 mov (%eax),%ebx ap++; 4d5: 83 c0 04 add $0x4,%eax 4d8: 89 45 d0 mov %eax,-0x30(%ebp) if(s == 0) s = "(null)"; 4db: b8 e0 06 00 00 mov $0x6e0,%eax 4e0: 85 db test %ebx,%ebx 4e2: 0f 44 d8 cmove %eax,%ebx while(*s != 0){ 4e5: 0f b6 03 movzbl (%ebx),%eax 4e8: 84 c0 test %al,%al 4ea: 74 23 je 50f <printf+0x14f> 4ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 4f0: 88 45 e3 mov %al,-0x1d(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 4f3: 8d 45 e3 lea -0x1d(%ebp),%eax 4f6: 83 ec 04 sub $0x4,%esp 4f9: 6a 01 push $0x1 ap++; if(s == 0) s = "(null)"; while(*s != 0){ putc(fd, *s); s++; 4fb: 83 c3 01 add $0x1,%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 4fe: 50 push %eax 4ff: 57 push %edi 500: e8 7d fd ff ff call 282 <write> } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 505: 0f b6 03 movzbl (%ebx),%eax 508: 83 c4 10 add $0x10,%esp 50b: 84 c0 test %al,%al 50d: 75 e1 jne 4f0 <printf+0x130> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 50f: 31 d2 xor %edx,%edx 511: e9 ff fe ff ff jmp 415 <printf+0x55> 516: 8d 76 00 lea 0x0(%esi),%esi 519: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 520: 83 ec 04 sub $0x4,%esp 523: 88 5d e5 mov %bl,-0x1b(%ebp) 526: 8d 45 e5 lea -0x1b(%ebp),%eax 529: 6a 01 push $0x1 52b: e9 4c ff ff ff jmp 47c <printf+0xbc> } else { putc(fd, c); } } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); 530: 83 ec 0c sub $0xc,%esp 533: b9 0a 00 00 00 mov $0xa,%ecx 538: 6a 01 push $0x1 53a: e9 6b ff ff ff jmp 4aa <printf+0xea> 53f: 8b 5d d0 mov -0x30(%ebp),%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 542: 83 ec 04 sub $0x4,%esp 545: 8b 03 mov (%ebx),%eax 547: 6a 01 push $0x1 549: 88 45 e4 mov %al,-0x1c(%ebp) 54c: 8d 45 e4 lea -0x1c(%ebp),%eax 54f: 50 push %eax 550: 57 push %edi 551: e8 2c fd ff ff call 282 <write> 556: e9 5b ff ff ff jmp 4b6 <printf+0xf6> 55b: 66 90 xchg %ax,%ax 55d: 66 90 xchg %ax,%ax 55f: 90 nop 00000560 <free>: static Header base; static Header *freep; void free(void *ap) { 560: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 561: a1 80 09 00 00 mov 0x980,%eax static Header base; static Header *freep; void free(void *ap) { 566: 89 e5 mov %esp,%ebp 568: 57 push %edi 569: 56 push %esi 56a: 53 push %ebx 56b: 8b 5d 08 mov 0x8(%ebp),%ebx Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 56e: 8b 10 mov (%eax),%edx void free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; 570: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 573: 39 c8 cmp %ecx,%eax 575: 73 19 jae 590 <free+0x30> 577: 89 f6 mov %esi,%esi 579: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 580: 39 d1 cmp %edx,%ecx 582: 72 1c jb 5a0 <free+0x40> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 584: 39 d0 cmp %edx,%eax 586: 73 18 jae 5a0 <free+0x40> static Header base; static Header *freep; void free(void *ap) { 588: 89 d0 mov %edx,%eax Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 58a: 39 c8 cmp %ecx,%eax if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 58c: 8b 10 mov (%eax),%edx free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 58e: 72 f0 jb 580 <free+0x20> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 590: 39 d0 cmp %edx,%eax 592: 72 f4 jb 588 <free+0x28> 594: 39 d1 cmp %edx,%ecx 596: 73 f0 jae 588 <free+0x28> 598: 90 nop 599: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi break; if(bp + bp->s.size == p->s.ptr){ 5a0: 8b 73 fc mov -0x4(%ebx),%esi 5a3: 8d 3c f1 lea (%ecx,%esi,8),%edi 5a6: 39 d7 cmp %edx,%edi 5a8: 74 19 je 5c3 <free+0x63> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 5aa: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 5ad: 8b 50 04 mov 0x4(%eax),%edx 5b0: 8d 34 d0 lea (%eax,%edx,8),%esi 5b3: 39 f1 cmp %esi,%ecx 5b5: 74 23 je 5da <free+0x7a> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 5b7: 89 08 mov %ecx,(%eax) freep = p; 5b9: a3 80 09 00 00 mov %eax,0x980 } 5be: 5b pop %ebx 5bf: 5e pop %esi 5c0: 5f pop %edi 5c1: 5d pop %ebp 5c2: c3 ret bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ bp->s.size += p->s.ptr->s.size; 5c3: 03 72 04 add 0x4(%edx),%esi 5c6: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 5c9: 8b 10 mov (%eax),%edx 5cb: 8b 12 mov (%edx),%edx 5cd: 89 53 f8 mov %edx,-0x8(%ebx) } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ 5d0: 8b 50 04 mov 0x4(%eax),%edx 5d3: 8d 34 d0 lea (%eax,%edx,8),%esi 5d6: 39 f1 cmp %esi,%ecx 5d8: 75 dd jne 5b7 <free+0x57> p->s.size += bp->s.size; 5da: 03 53 fc add -0x4(%ebx),%edx p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; freep = p; 5dd: a3 80 09 00 00 mov %eax,0x980 bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ p->s.size += bp->s.size; 5e2: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 5e5: 8b 53 f8 mov -0x8(%ebx),%edx 5e8: 89 10 mov %edx,(%eax) } else p->s.ptr = bp; freep = p; } 5ea: 5b pop %ebx 5eb: 5e pop %esi 5ec: 5f pop %edi 5ed: 5d pop %ebp 5ee: c3 ret 5ef: 90 nop 000005f0 <malloc>: return freep; } void* malloc(uint nbytes) { 5f0: 55 push %ebp 5f1: 89 e5 mov %esp,%ebp 5f3: 57 push %edi 5f4: 56 push %esi 5f5: 53 push %ebx 5f6: 83 ec 0c sub $0xc,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 5f9: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 5fc: 8b 15 80 09 00 00 mov 0x980,%edx malloc(uint nbytes) { Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 602: 8d 78 07 lea 0x7(%eax),%edi 605: c1 ef 03 shr $0x3,%edi 608: 83 c7 01 add $0x1,%edi if((prevp = freep) == 0){ 60b: 85 d2 test %edx,%edx 60d: 0f 84 a3 00 00 00 je 6b6 <malloc+0xc6> 613: 8b 02 mov (%edx),%eax 615: 8b 48 04 mov 0x4(%eax),%ecx base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ 618: 39 cf cmp %ecx,%edi 61a: 76 74 jbe 690 <malloc+0xa0> 61c: 81 ff 00 10 00 00 cmp $0x1000,%edi 622: be 00 10 00 00 mov $0x1000,%esi 627: 8d 1c fd 00 00 00 00 lea 0x0(,%edi,8),%ebx 62e: 0f 43 f7 cmovae %edi,%esi 631: ba 00 80 00 00 mov $0x8000,%edx 636: 81 ff ff 0f 00 00 cmp $0xfff,%edi 63c: 0f 46 da cmovbe %edx,%ebx 63f: eb 10 jmp 651 <malloc+0x61> 641: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 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){ 648: 8b 02 mov (%edx),%eax if(p->s.size >= nunits){ 64a: 8b 48 04 mov 0x4(%eax),%ecx 64d: 39 cf cmp %ecx,%edi 64f: 76 3f jbe 690 <malloc+0xa0> p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 651: 39 05 80 09 00 00 cmp %eax,0x980 657: 89 c2 mov %eax,%edx 659: 75 ed jne 648 <malloc+0x58> char *p; Header *hp; if(nu < 4096) nu = 4096; p = sbrk(nu * sizeof(Header)); 65b: 83 ec 0c sub $0xc,%esp 65e: 53 push %ebx 65f: e8 86 fc ff ff call 2ea <sbrk> if(p == (char*)-1) 664: 83 c4 10 add $0x10,%esp 667: 83 f8 ff cmp $0xffffffff,%eax 66a: 74 1c je 688 <malloc+0x98> return 0; hp = (Header*)p; hp->s.size = nu; 66c: 89 70 04 mov %esi,0x4(%eax) free((void*)(hp + 1)); 66f: 83 ec 0c sub $0xc,%esp 672: 83 c0 08 add $0x8,%eax 675: 50 push %eax 676: e8 e5 fe ff ff call 560 <free> return freep; 67b: 8b 15 80 09 00 00 mov 0x980,%edx } freep = prevp; return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) 681: 83 c4 10 add $0x10,%esp 684: 85 d2 test %edx,%edx 686: 75 c0 jne 648 <malloc+0x58> return 0; 688: 31 c0 xor %eax,%eax 68a: eb 1c jmp 6a8 <malloc+0xb8> 68c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ if(p->s.size == nunits) 690: 39 cf cmp %ecx,%edi 692: 74 1c je 6b0 <malloc+0xc0> prevp->s.ptr = p->s.ptr; else { p->s.size -= nunits; 694: 29 f9 sub %edi,%ecx 696: 89 48 04 mov %ecx,0x4(%eax) p += p->s.size; 699: 8d 04 c8 lea (%eax,%ecx,8),%eax p->s.size = nunits; 69c: 89 78 04 mov %edi,0x4(%eax) } freep = prevp; 69f: 89 15 80 09 00 00 mov %edx,0x980 return (void*)(p + 1); 6a5: 83 c0 08 add $0x8,%eax } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } } 6a8: 8d 65 f4 lea -0xc(%ebp),%esp 6ab: 5b pop %ebx 6ac: 5e pop %esi 6ad: 5f pop %edi 6ae: 5d pop %ebp 6af: c3 ret base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ if(p->s.size == nunits) prevp->s.ptr = p->s.ptr; 6b0: 8b 08 mov (%eax),%ecx 6b2: 89 0a mov %ecx,(%edx) 6b4: eb e9 jmp 69f <malloc+0xaf> Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; 6b6: c7 05 80 09 00 00 84 movl $0x984,0x980 6bd: 09 00 00 6c0: c7 05 84 09 00 00 84 movl $0x984,0x984 6c7: 09 00 00 base.s.size = 0; 6ca: b8 84 09 00 00 mov $0x984,%eax 6cf: c7 05 88 09 00 00 00 movl $0x0,0x988 6d6: 00 00 00 6d9: e9 3e ff ff ff jmp 61c <malloc+0x2c>
source/containers/a-clhama.adb
ytomino/drake
33
26724
<reponame>ytomino/drake<filename>source/containers/a-clhama.adb with Ada.Exceptions.Finally; with Ada.Unchecked_Conversion; with Ada.Unchecked_Deallocation; with System; package body Ada.Containers.Limited_Hashed_Maps is use type Hash_Tables.Table_Access; -- diff function Upcast is new Unchecked_Conversion (Cursor, Hash_Tables.Node_Access); function Downcast is new Unchecked_Conversion (Hash_Tables.Node_Access, Cursor); -- diff (Upcast) -- -- diff (Downcast) -- procedure Free is new Unchecked_Deallocation (Key_Type, Key_Access); procedure Free is new Unchecked_Deallocation (Element_Type, Element_Access); procedure Free is new Unchecked_Deallocation (Node, Cursor); type Context_Type is limited record Left : not null access Key_Type; end record; pragma Suppress_Initialization (Context_Type); function Equivalent_Key ( Position : not null Hash_Tables.Node_Access; Params : System.Address) return Boolean; function Equivalent_Key ( Position : not null Hash_Tables.Node_Access; Params : System.Address) return Boolean is Context : Context_Type; for Context'Address use Params; begin return Equivalent_Keys ( Context.Left.all, Downcast (Position).Key.all); end Equivalent_Key; -- diff (Allocate_Element) -- -- -- -- -- -- -- -- -- diff (Allocate_Node) -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- diff (Copy_Node) -- -- -- -- -- -- -- -- -- -- -- -- procedure Free_Node (Object : in out Hash_Tables.Node_Access); procedure Free_Node (Object : in out Hash_Tables.Node_Access) is X : Cursor := Downcast (Object); begin Free (X.Key); Free (X.Element); Free (X); Object := null; end Free_Node; -- diff (Allocate_Data) -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- diff (Copy_Data) -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- diff (Free) procedure Free_Data (Data : in out Map); procedure Free_Data (Data : in out Map) is -- diff begin Hash_Tables.Free (Data.Table, Data.Length, Free => Free_Node'Access); -- diff -- diff end Free_Data; procedure Reallocate (Container : in out Map; Capacity : Count_Type); -- diff -- diff -- diff procedure Reallocate (Container : in out Map; Capacity : Count_Type) is -- diff -- diff -- diff begin Hash_Tables.Rebuild (Container.Table, Capacity); -- diff -- diff -- diff -- diff -- diff -- diff -- diff -- diff -- diff -- diff -- diff end Reallocate; -- diff (Unique) -- -- -- -- -- -- -- -- -- function Find (Container : Map; Hash : Hash_Type; Key : Key_Type) return Cursor; function Find (Container : Map; Hash : Hash_Type; Key : Key_Type) return Cursor is begin if Is_Empty (Container) then return null; else -- diff declare Context : aliased Context_Type := (Left => Key'Unrestricted_Access); begin return Downcast (Hash_Tables.Find ( Container.Table, Hash, Context'Address, Equivalent => Equivalent_Key'Access)); end; end if; end Find; -- implementation function Empty_Map return Map is begin return (Finalization.Limited_Controlled with Table => null, Length => 0); end Empty_Map; function Has_Element (Position : Cursor) return Boolean is begin return Position /= null; end Has_Element; -- diff ("=") -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- function Capacity (Container : Map) return Count_Type is -- diff begin -- diff -- diff -- diff return Hash_Tables.Capacity (Container.Table); -- diff end Capacity; procedure Reserve_Capacity ( Container : in out Map; Capacity : Count_Type) is New_Capacity : constant Count_Type := Count_Type'Max (Capacity, Length (Container)); begin Reallocate (Container, New_Capacity); end Reserve_Capacity; function Length (Container : Map) return Count_Type is -- diff begin -- diff -- diff -- diff return Container.Length; -- diff end Length; function Is_Empty (Container : Map) return Boolean is -- diff begin return Container.Length = 0; end Is_Empty; procedure Clear (Container : in out Map) is begin Free_Data (Container); end Clear; function Key (Position : Cursor) return Key_Reference_Type is begin return (Element => Position.Key.all'Access); end Key; -- diff (Element) -- -- -- -- diff (Replace_Element) -- -- -- -- -- -- -- -- procedure Query_Element ( Position : Cursor; Process : not null access procedure ( Key : Key_Type; Element : Element_Type)) is begin Process (Position.Key.all, Position.Element.all); end Query_Element; procedure Update_Element ( Container : in out Map'Class; Position : Cursor; Process : not null access procedure ( Key : Key_Type; Element : in out Element_Type)) is begin Process ( Position.Key.all, Reference (Map (Container), Position).Element.all); end Update_Element; function Constant_Reference (Container : aliased Map; Position : Cursor) return Constant_Reference_Type is pragma Unreferenced (Container); begin return (Element => Position.Element.all'Access); end Constant_Reference; function Reference (Container : aliased in out Map; Position : Cursor) return Reference_Type is pragma Unreferenced (Container); begin return (Element => Position.Element.all'Access); end Reference; function Constant_Reference (Container : aliased Map; Key : Key_Type) return Constant_Reference_Type is begin return Constant_Reference (Container, Find (Container, Key)); end Constant_Reference; function Reference (Container : aliased in out Map; Key : Key_Type) return Reference_Type is begin return Reference (Container, Find (Container, Key)); end Reference; -- diff (Assign) -- -- -- -- -- -- -- diff (Copy) -- -- -- -- -- -- -- -- -- -- -- procedure Move (Target : in out Map; Source : in out Map) is begin Clear (Target); Target.Table := Source.Table; Target.Length := Source.Length; Source.Table := null; Source.Length := 0; end Move; procedure Insert ( Container : in out Map'Class; New_Key : not null access function return Key_Type; New_Item : not null access function return Element_Type; Position : out Cursor; Inserted : out Boolean) is type Pair is record Key : Key_Access; Node : Cursor; end record; pragma Suppress_Initialization (Pair); procedure Finally (X : in out Pair); procedure Finally (X : in out Pair) is begin Free (X.Key); Free (X.Node); end Finally; package Holder is new Exceptions.Finally.Scoped_Holder (Pair, Finally); New_Pair : aliased Pair := (new Key_Type'(New_Key.all), null); New_Hash : Hash_Type; begin Holder.Assign (New_Pair); New_Hash := Hash (New_Pair.Key.all); Position := Find (Map (Container), New_Hash, New_Pair.Key.all); Inserted := Position = null; if Inserted then New_Pair.Node := new Node; New_Pair.Node.Key := New_Pair.Key; New_Pair.Node.Element := new Element_Type'(New_Item.all); Holder.Clear; Position := New_Pair.Node; Hash_Tables.Insert ( Container.Table, Container.Length, New_Hash, Upcast (Position)); -- diff end if; end Insert; -- diff (Insert) -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- procedure Insert ( Container : in out Map'Class; Key : not null access function return Key_Type; New_Item : not null access function return Element_Type) is Position : Cursor; Inserted : Boolean; begin Insert (Container, Key, New_Item, Position, Inserted); if not Inserted then raise Constraint_Error; end if; end Insert; -- diff (Include) -- -- -- -- -- -- -- -- -- -- -- -- -- diff (Replace) -- -- -- -- -- -- procedure Exclude (Container : in out Map; Key : Key_Type) is Position : Cursor := Find (Container, Key); begin if Position /= null then Delete (Container, Position); end if; end Exclude; procedure Delete (Container : in out Map; Key : Key_Type) is Position : Cursor := Find (Container, Key); begin Delete (Container, Position); end Delete; procedure Delete (Container : in out Map; Position : in out Cursor) is Position_2 : Hash_Tables.Node_Access := Upcast (Position); begin -- diff -- diff -- diff -- diff Hash_Tables.Remove (Container.Table, Container.Length, Position_2); -- diff Free_Node (Position_2); Position := null; end Delete; function First (Container : Map) return Cursor is begin return Downcast (Hash_Tables.First (Container.Table)); -- diff -- diff -- diff -- diff -- diff -- diff end First; function Next (Position : Cursor) return Cursor is begin return Downcast (Position.Super.Next); end Next; procedure Next (Position : in out Cursor) is begin Position := Downcast (Position.Super.Next); end Next; function Find (Container : Map; Key : Key_Type) return Cursor is begin return Find (Container, Hash (Key), Key); end Find; -- diff (Element) -- -- -- -- -- -- function Contains (Container : Map; Key : Key_Type) return Boolean is begin return Find (Container, Key) /= null; end Contains; function Equivalent_Keys (Left, Right : Cursor) return Boolean is begin return Equivalent_Keys (Left.Key.all, Right.Key.all); end Equivalent_Keys; function Equivalent_Keys (Left : Cursor; Right : Key_Type) return Boolean is begin return Equivalent_Keys (Left.Key.all, Right); end Equivalent_Keys; function Equivalent_Keys (Left : Key_Type; Right : Cursor) return Boolean is begin return Equivalent_Keys (Left, Right.Key.all); end Equivalent_Keys; procedure Iterate ( Container : Map'Class; Process : not null access procedure (Position : Cursor)) is type P1 is access procedure (Position : Cursor); type P2 is access procedure (Position : Hash_Tables.Node_Access); function Cast is new Unchecked_Conversion (P1, P2); begin -- diff -- diff Hash_Tables.Iterate ( Container.Table, Cast (Process)); -- diff end Iterate; function Iterate (Container : Map'Class) return Map_Iterator_Interfaces.Forward_Iterator'Class is begin return Map_Iterator'(First => First (Map (Container))); end Iterate; -- diff (Adjust) -- -- -- overriding function First (Object : Map_Iterator) return Cursor is begin return Object.First; end First; overriding function Next (Object : Map_Iterator; Position : Cursor) return Cursor is pragma Unreferenced (Object); begin return Next (Position); end Next; package body Equivalent is function "=" (Left, Right : Map) return Boolean is function Equivalent (Left, Right : not null Hash_Tables.Node_Access) return Boolean; function Equivalent (Left, Right : not null Hash_Tables.Node_Access) return Boolean is begin return Equivalent_Keys ( Downcast (Left).Key.all, Downcast (Right).Key.all) and then Downcast (Left).Element.all = Downcast (Right).Element.all; end Equivalent; begin return Hash_Tables.Equivalent ( Left.Table, Left.Length, Right.Table, Right.Length, Equivalent => Equivalent'Access); end "="; end Equivalent; end Ada.Containers.Limited_Hashed_Maps;
kernel.asm
dolumese/mKernel
0
1093
;;;;;;;;;;;;;;;;;;;;; ;; Copyright (C) 2014 <NAME> ;; License: GPL version 2 or higher http://www.gnu.org/licenses/gpl.html ;;;;;;;;;;;;;;;;;;;;; bits 32 section .text ;multiboot spec align 4 dd 0x1BADB002 ;magic dd 0x00 ;flags dd -(0x1BADB002 + 0x00) ;checksum. m+f+c should be zero global start global kbHandler ;keyboard driver handler global rPort ;read port global wPort ;write port global loadIdt extern kmain ;this is defined in the c file extern kbHandlerMain rPort: mov edx, [esp + 4] ;al is the lower 8 bits of eax in al, dx ;dx is the lower 16 bits of edx ret wPort: mov edx, [esp + 4] mov al, [esp + 4 + 4] out dx, al ret loadIdt: mov edx, [esp + 4] lidt [edx] sti ;turn on interrupts ret kbHandler: call kbHandlerMain iretd start: cli ;block interrupts mov esp, stack_space call kmain hlt ;halt the CPU section .bss resb 8192 ;8KB for stack stack_space:
libsrc/adt/heap/adt_HeapExtract_callee.asm
andydansby/z88dk-mk2
1
83108
; void __CALLEE__ *adt_HeapExtract_callee(void **array, uint *n, void *compare) ; 08.2005 aralbrec XLIB adt_HeapExtract_callee XDEF CDISP_ADT_HEAPEXTRACT_CALLEE LIB ADTHeapExtract, ADThcompare .adt_HeapExtract_callee pop bc pop iy pop hl pop de push bc .centry push hl ld a,(hl) inc hl ld h,(hl) ld l,a push hl ld ix,ADThcompare call ADTHeapExtract jr nc, nothing pop de ld c,l ld b,h pop hl dec de ld (hl),e inc hl ld (hl),d ld l,c ld h,b ret .nothing pop hl pop hl ld hl,0 ret DEFC CDISP_ADT_HEAPEXTRACT_CALLEE = centry - adt_HeapExtract_callee
programs/oeis/052/A052515.asm
neoneye/loda
22
244314
; A052515: Number of ordered pairs of complementary subsets of an n-set with both subsets of cardinality at least 2. ; 0,0,0,0,6,20,50,112,238,492,1002,2024,4070,8164,16354,32736,65502,131036,262106,524248,1048534,2097108,4194258,8388560,16777166,33554380,67108810,134217672,268435398,536870852,1073741762,2147483584,4294967230,8589934524,17179869114,34359738296,68719476662,137438953396,274877906866,549755813808,1099511627694,2199023255468,4398046511018,8796093022120,17592186044326,35184372088740,70368744177570,140737488355232,281474976710558,562949953421212,1125899906842522,2251799813685144,4503599627370390,9007199254740884,18014398509481874,36028797018963856,72057594037927822,144115188075855756,288230376151711626,576460752303423368,1152921504606846854,2305843009213693828,4611686018427387778,9223372036854775680,18446744073709551486,36893488147419103100,73786976294838206330,147573952589676412792,295147905179352825718,590295810358705651572,1180591620717411303282,2361183241434822606704,4722366482869645213550,9444732965739290427244,18889465931478580854634,37778931862957161709416,75557863725914323418982,151115727451828646838116,302231454903657293676386,604462909807314587352928,1208925819614629174706014,2417851639229258349412188,4835703278458516698824538,9671406556917033397649240,19342813113834066795298646,38685626227668133590597460,77371252455336267181195090,154742504910672534362390352,309485009821345068724780878,618970019642690137449561932,1237940039285380274899124042,2475880078570760549798248264,4951760157141521099596496710,9903520314283042199192993604,19807040628566084398385987394,39614081257132168796771974976,79228162514264337593543950142,158456325028528675187087900476,316912650057057350374175801146,633825300114114700748351602488 mov $2,$0 mul $0,2 mov $1,2 pow $1,$2 sub $1,2 trn $1,$0 mov $0,$1
unittests/ASM/Secondary/09_XX_06.asm
Seas0/FEX
0
88561
%ifdef CONFIG { "RegData": { "RAX": "0x4142434445460000", "RBX": "0x0", "RDX": "1", "R9": "1", "R10": "1" } } %endif mov rax, 0x4142434445464748 mov rbx, 0x4142434445464748 mov rcx, 0x4142434445464748 ; 16-bit should insert test_16bit: rdrand ax jnc test_16bit ; Mask out RNG mov r11, 0xFFFFFFFFFFFF0000 and rax, r11 mov r8, 0x4142434445460000 cmp rax, r8 mov rdx, 0 sete dl ; 32-bit and 64-bit should zext test_32bit: rdrand ebx jnc test_32bit ; Mask out RNG mov r11, 0xFFFFFFFF00000000 and rbx, r11 mov r8, 0x4142434400000000 cmp r11, r8 mov r9, 0 setne r9b test_64bit: rdrand rcx jnc test_32bit mov r8, 0x0 cmp rcx, r8 mov r10, 0 setne r10b hlt
Data/List/Relation/Pairwise.agda
Lolirofle/stuff-in-agda
6
9827
import Lvl open import Logic open import Type module Data.List.Relation.Pairwise {ℓ₁ ℓ₂} {T : Type{ℓ₁}} where open import Data.List import Data.List.Functions as List open import Data.List.Relation.Quantification open import Functional open import Logic.Propositional -- Whether a list's elements pairwise satisfy a binary relation with their adjacent elements in the list. -- Example: -- AdjacentlyPairwise(_▫_) [a,b,c,d,e] -- ↔ (∧){ -- • (a ▫ b) -- • (b ▫ c) -- • (c ▫ d) -- • (d ▫ e) -- } -- Note: Equivalent to OrderedPairwise(_▫_) when (_▫_) is transitive. data AdjacentlyPairwise(_▫_ : T → T → Stmt{ℓ₂}) : List(T) → Stmt{ℓ₁ Lvl.⊔ ℓ₂} where instance empty : AdjacentlyPairwise(_▫_)(∅) single : ∀{a} → AdjacentlyPairwise(_▫_)(List.singleton(a)) step : ∀{a b}{l} → ⦃ _ : (a ▫ b) ⦄ → ⦃ _ : AdjacentlyPairwise(_▫_)(b ⊰ l) ⦄ → AdjacentlyPairwise(_▫_)(a ⊰ b ⊰ l) -- Whether a list's elements pairwise satisfy a binary relation with all the successive elements in the list. -- Example: -- OrderedPairwise(_▫_) [a,b,c,d,e] -- ↔ (∧){ -- • (a ▫ b) -- • (a ▫ c) -- • (a ▫ d) -- • (a ▫ e) -- • (b ▫ c) -- • (b ▫ d) -- • (b ▫ e) -- • (c ▫ d) -- • (c ▫ e) -- • (d ▫ e) -- } -- Note: Equivalent to Pairwise(_▫_) when (_▫_) is symmetric. data OrderedPairwise(_▫_ : T → T → Stmt{ℓ₂}) : List(T) → Stmt{ℓ₁ Lvl.⊔ ℓ₂} where empty : OrderedPairwise(_▫_)(∅) step : ∀{a}{l} → AllElements(a ▫_)(l) → OrderedPairwise(_▫_)(l) → OrderedPairwise(_▫_)(a ⊰ l) -- TODO: Is this correct? Using (_∧_)? Pairwise : (T → T → Stmt{ℓ₂}) → List(T) → Stmt Pairwise(_▫_) = OrderedPairwise(x ↦ y ↦ (y ▫ x) ∧ (x ▫ y))
Abacus.g4
triole/abacus
0
6342
<gh_stars>0 grammar Abacus; // Tokens // Rules root : declaration EOF | comparison EOF | expression EOF ; declaration : VARIABLE EQ expression ; comparison : expression EQ EQ expression # EqualComparison | expression LS expression # LessComparison | expression GR expression # GreaterComparison | expression ((LS EQ) | (EQ LS)) expression # LessOrEqualComparison | expression ((GR EQ) | (EQ GR)) expression # GreaterOrEqualComparison ; expression : expression POW expression # Pow | expression op=(MUL|DIV) expression # MulDiv | expression op=(ADD|SUB) expression # AddSub | LPAREN expression RPAREN # Parentheses | sign? atom # AtomExpr ; EQ: '='; LS: '<'; GR: '>'; POW: '^' | '**'; MUL: '*'; DIV: '/'; ADD: '+'; SUB: '-'; POINT : '.' ; LPAREN: '('; RPAREN: ')'; atom : function # FuncExpr | CONSTANT # Constant | SCIENTIFIC_NUMBER # Number | VARIABLE # Variable ; sign : '+' # PlusSign | '-' # MinusSign; function : 'sqrt' LPAREN expression RPAREN # SqrtFunction | 'ln' LPAREN expression RPAREN # LnFunction | 'log' LPAREN expression RPAREN # LogDefFunction | 'log2' LPAREN expression RPAREN # Log2Function | 'log10' LPAREN expression RPAREN # Log10Function | 'floor' LPAREN expression RPAREN # FloorFunction | 'ceil' LPAREN expression RPAREN # CeilFunction | 'exp' LPAREN expression RPAREN # ExpFunction | 'sin' LPAREN expression RPAREN # SinFunction | 'cos' LPAREN expression RPAREN # CosFunction | 'tan' LPAREN expression RPAREN # TanFunction | 'round' LPAREN expression RPAREN # RoundDefFunction | 'round' LPAREN expression ',' expression RPAREN # Round2Function | 'log' LPAREN expression ',' expression RPAREN # LogFunction | 'min' LPAREN expression ',' expression RPAREN # MinFunction | 'max' LPAREN expression ',' expression RPAREN # MaxFunction ; CONSTANT : 'pi' | 'e' | 'phi'; SCIENTIFIC_NUMBER : NUMBER (('e' | 'E') SIGN? NUMBER)? ; fragment SIGN: '+'|'-'; fragment NUMBER : ('0' .. '9')+ (POINT ('0' .. '9') +)? ; VARIABLE : VALID_ID_START VALID_ID_CHAR* ; fragment VALID_ID_START : ('a' .. 'z') | ('A' .. 'Z') | '_' ; fragment VALID_ID_CHAR : VALID_ID_START | ('0' .. '9') ; WHITESPACE: [ \r\n\t]+ -> skip;
gcc-gcc-7_3_0-release/gcc/ada/i-vxinco.ads
best08618/asylo
7
21396
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- I N T E R F A C E S . V X W O R K S . I N T _ C O N N E C T I O N -- -- -- -- S p e c -- -- -- -- Copyright (C) 2016, AdaCore -- -- -- GNARL is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNARL was developed by the GNARL team at Florida State University. -- -- Extensive contributions were provided by Ada Core Technologies, Inc. -- -- -- ------------------------------------------------------------------------------ -- This package provides users with the ability to use a custom routine for -- connecting hardware interrupts for VxWorks environments that support the -- capability to handle them. The custom routine must have the same profile -- as the VxWorks intConnect() routine. with System; package Interfaces.VxWorks.Int_Connection is type Interrupt_Connector is access function (Vector : Interrupt_Vector; Handler : VOIDFUNCPTR; Parameter : System.Address := System.Null_Address) return STATUS; pragma Convention (C, Interrupt_Connector); -- Convention C for compatibility with intConnect(). User alternatives are -- likely to be imports of C routines anyway. procedure Connect (Connector : Interrupt_Connector); -- Set user-defined interrupt connection routine. Must precede calls to -- Ada.Interrupts.Attach_Handler, or the default connector from -- System.OS_Interface (or Interfaces.VxWorks for Ravenscar Cert) will be -- used. Can be called multiple times to change the connection routine for -- subsequent calls to Attach_Handler. end Interfaces.VxWorks.Int_Connection;
oeis/234/A234568.asm
neoneye/loda-programs
11
242117
<gh_stars>10-100 ; A234568: Sum_{k=0..n} (n-k)^(2*k). ; Submitted by <NAME> ; 1,1,2,6,27,163,1268,12344,145653,2036149,33192790,622384730,13263528351,318121600695,8517247764136,252725694989612,8258153081400857,295515712276222953,11523986940937975402,487562536078882116718,22291094729329088403299,1097336766599161926448779,57974047902385765034753820,3277275864362895811941063904,197690320046488637821312439165,12692667669775659892681783311581,865369804721180163760591706427966,62516215889091934842166591892770882,4775874530144001737089736611966426471 lpb $0 sub $0,1 add $2,2 mov $3,$0 pow $3,$2 add $1,$3 lpe mov $0,$1 add $0,1
src/main/fragment/mos6502-common/vdum1=vdum1_ror_1.asm
jbrandwood/kickc
2
20516
lsr {m1}+3 ror {m1}+2 ror {m1}+1 ror {m1}
ScrollModus/_code/GlobalCode/sound.asm
kosmonautdnb/TheLandsOfZador
0
173523
<gh_stars>0 SOUND_DIAMOND = 0 SOUND_EXPLOSION = 1 SOUND_COLLECTED = 2 SOUND_JUMP = 3 SOUND_LAZER = 4 SOUND_HIT = 5 SOUND_LITTLEJUMP = 6 SOUND_FADEINOUT = 7 SOUND_DASH = 8 SOUND_FLOOR = 9 SOUND_LIVELOST = 5 SOUND_KICK = 2 SOUND_SCHALTER = 4 SOUND_LAYERBUILD = 8 SOUND_LAYERREMOVE = 9 SOUND_DROP = 2 ;------------------------------------------------------------------------------------------ ;-- triggers a sound -- ;-- accu: sound number -- ;------------------------------------------------------------------------------------------ triggerSound SUBROUTINE stx .xrestore + 1 sty .yrestore + 1 tax lda disablePlayerInteraction bne .xrestore lda #$00 sta lastSoundTrigger ldy #$0f jsr kp_triggerC .xrestore ldx #$44 .yrestore ldy #$44 rts ;------------------------------------------------------------------------------------------ ;-- triggers a sound only if on screen -- ;-- accu: sound number -- ;------------------------------------------------------------------------------------------ triggerSoundScreen SUBROUTINE jsr triggerSound rts include "player_symbols.asm" include "player_const.asm" ;------------------------------------------------------------------------------------------ ;-- internal function triggers sound on mixin voice -- ;------------------------------------------------------------------------------------------ kp_triggerC SUBROUTINE ; x = instrument ; y = volume sei lda #$04 sta kp_pat_wait_2 lda kp_insmap_lo,x sta kp_osc_adr_0_2 sta kp_osc_adr_1_2 lda kp_insmap_hi,x sta kp_osc_adr_0_2+1 sta kp_osc_adr_1_2+1 lda kp_volmap_lo,x sta kp_vol_adr_0_2 lda kp_volmap_hi,x sta kp_vol_adr_0_2+1 lda #$00 sta kp_osc_wait_2 sta kp_osc_pos_2 sta kp_vol_wait_2 sta kp_vol_pos_2 sty kp_vol_mod0_2 cli rts
Extended/FunRetRec.agda
AndrasKovacs/SemanticsWithApplications
8
11784
module Extended.FunRetRec where open import Function open import Data.Nat open import Data.Nat.Properties.Simple open import Relation.Binary.PropositionalEquality hiding ([_]) open import Data.String open import Data.Product open import Data.Bool renaming (not to bnot) hiding (if_then_else_) open import Relation.Nullary.Decidable open import Relation.Nullary open import Data.List hiding (and; or) open import Data.List.Properties using (∷-injective) open import Data.Empty open import Data.Unit import Level as L open import Utils.Decidable open import Utils.Monoid open import Utils.NatOrdLemmas {- This module contains an extension of the While language and assorted semantics. It incorporates some of the suggested extra features in the book. The extra features in short: - Function calls and recursive local function declarations - Local variable declarations - String-based bindings with name shadowing - Return statements with the usual jump in control flow -} -- Data definitions -------------------------------------------------- data Ty : Set where bool nat : Ty ⟦_⟧ᵗ : Ty → Set ⟦ nat ⟧ᵗ = ℕ ⟦ bool ⟧ᵗ = Bool data Exp : Ty → Set where lit : ℕ → Exp nat add mul sub : Exp nat → Exp nat → Exp nat var : String → Exp nat {- Function calls. Note that we have calls as a proper *expression* that evaluate to a value, if they terminate. This also implies that the evaluation of expressions has a partial semantics just like statements. We apply a function to a list of arguments. The number of args must be correct. -} _$:_ : String → List (Exp nat) → Exp nat tt ff : Exp bool eq lt lte : Exp nat → Exp nat → Exp bool and : Exp bool → Exp bool → Exp bool not : Exp bool → Exp bool or : Exp bool → Exp bool → Exp bool infixr 4 _,_ infixr 5 _:=_ data St : Set where {- Function declarations. We specify the arguments as a list of bindings. They are recursive. -} fun : String → List String → St → St → St {- variable declarations -} decl : String → Exp nat → St → St _:=_ : String → Exp nat → St skip : St _,_ : St → St → St if_then_else_ : Exp bool → St → St → St while_do_ : Exp bool → St → St ret : Exp nat → St {- The environment contains numbers and functions -} data Entry : Set where nat : ℕ → Entry fun : List String → St → Entry {- The environment is now keyed by strings (rather than de Bruijn indices) -} Env : Set Env = List (String × Entry) _,ₙ_ : String → ℕ → (String × Entry) v ,ₙ n = v , nat n infixr 5 _,ₙ_ {- A note on the return statement: The book recommends two way for dealing with exceptions and jumps. One way is to use small-step semantics. The other way is to introduce new program states in big-step semantics. With more complicated derivation rules and many types of non-local effects (and of course non-determinism), small-step semantics seems to be more manageable. But here we have just the return statement, so big-step semantics seems fine. -} data State : Set where ok : Env → State ret : ℕ → State ret-inj : ∀ {a b} → (State ∋ ret a) ≡ ret b → a ≡ b ret-inj refl = refl ok-inj : ∀ {s s'} → ok s ≡ ok s' → s ≡ s' ok-inj refl = refl -- Well-scopedness -------------------------------------------------- {- Scoping rules are nontrivial, but we don't want to clutter our derivations with explicit proofs for them. A standard Agda solution for this is to use so-called irrelevant proofs. Such types have at most a single value up to definitional equality, therefore they cannot influence actual computation. Agda is willing to automatically fill in the value for some of these types once it becomes apparent that the value exists. The simplest example of a irrelevant type is the unit type. record ⊤ : Set where constructor tt. Agda has eta-extensionality for records, so Agda thinks that any value of type ⊤ is definitionally equal to "tt". The well-scopedness predicates below all compute to ⊤ or ⊥ (the unprovable type), and both are irrelevant, so we get all the scoping proofs nicely inferred and hidden. We also augment our inference system with judicious use of instance arguments. Agda tries to search for suitable values for these arguments from the current scope. -} ------------------------------------------------------------ {- A note on static semantics: Arguably, well-scopedness should belong to static semantics. After all, it can be checked without running the program, and in real compilers scope checking also tends to be done statically. Here, we don't *have* static semantics at all. The static semantic rules are baked into the dynamic semantic rules. Adding proper static semantics would be one of the many potential extensions and improvements to this library. Ideally, we would have a completely raw AST, and an AST for code that is correct with respect to static semantics (so it's annotated with proofs of static correctness). We would also have a type checker function that would decide if a raw AST can be converted to the correct AST. It would also nice to have a type erasure function that goes in the opposite direction (erases proofs and returns a raw AST), and we could establish correctness of type checking with respect to erasure, for example by proving that checking is the left inverse of erasure. It may be also the case, although I haven't tested it, that type checking would be faster with a separate checked AST. -} -- variable is in scope InScopeVar : String → Env → Set InScopeVar v [] = ⊥ InScopeVar v ((_ , fun _ _) ∷ s) = InScopeVar v s InScopeVar v ((v' , nat n) ∷ s) with v ≡⁇ v' ... | yes _ = ⊤ ... | no _ = InScopeVar v s -- function is in scope InScopeFun : String → Env → Set InScopeFun v [] = ⊥ InScopeFun v ((_ , nat _) ∷ s) = InScopeFun v s InScopeFun v ((v' , fun _ _) ∷ s) with v ≡⁇ v' ... | yes _ = ⊤ ... | no _ = InScopeFun v s lookupVar : ∀ v s ⦃ _ : InScopeVar v s ⦄ → ℕ lookupVar v [] ⦃ ⦄ lookupVar v ((_ , fun _ _) ∷ s) = lookupVar v s lookupVar v ((v' , nat n) ∷ s) with v ≡⁇ v' ... | yes _ = n ... | no _ = lookupVar v s lookupFun : ∀ f s ⦃ _ : InScopeFun f s ⦄ → List String × St lookupFun v [] ⦃ ⦄ lookupFun v ((_ , nat _) ∷ s) = lookupFun v s lookupFun v ((v' , fun args body) ∷ s) with v ≡⁇ v' ... | yes _ = args , body ... | no _ = lookupFun v s -- perform a substitution on the environment at a name that is in scope _[_]≔_ : ∀ s v ⦃ _ : InScopeVar v s ⦄ → ℕ → Env _[_]≔_ [] _ ⦃ ⦄ _ _[_]≔_ ((v' , fun args body) ∷ s) v n = (v' , fun args body) ∷ (s [ v ]≔ n) ((v' , nat n) ∷ Γ) [ v ]≔ n' with v ≡⁇ v' ... | yes p = (v' , nat n') ∷ Γ ... | no ¬p = (v' , nat n ) ∷ Γ [ v ]≔ n' -- Match the length of two lists ArgLenMatch : List String → List ℕ → Set ArgLenMatch [] [] = ⊤ ArgLenMatch [] (_ ∷ _) = ⊥ ArgLenMatch (_ ∷ names) [] = ⊥ ArgLenMatch (_ ∷ names) (_ ∷ vals) = ArgLenMatch names vals -- Create a new environment with the function arguments pushed to the front callWith : ∀ args vals ⦃ _ : ArgLenMatch args vals ⦄ → Env callWith [] [] = [] callWith [] (_ ∷ _) ⦃ ⦄ callWith (_ ∷ _) [] ⦃ ⦄ callWith (n ∷ names) (v ∷ vals) = (n , nat v) ∷ callWith names vals -- Semantics -------------------------------------------------- mutual -- Evaluation of argument lists infixr 5 _∷_ data _⟨_⟩ᵃ⟱_ (s : Env) : List (Exp nat) → List ℕ → Set where [] : ---------------- s ⟨ [] ⟩ᵃ⟱ [] _∷_ : ∀ {a args v vals} → s ⟨ a ⟩ᵉ⟱ v → s ⟨ args ⟩ᵃ⟱ vals → --------------------------------- s ⟨ a ∷ args ⟩ᵃ⟱ (v ∷ vals) -- Shorthand for the evaluation of binary expressions BinExp : ∀ {s t r} → (Exp t → Exp t → Exp r) → (⟦ t ⟧ᵗ → ⟦ t ⟧ᵗ → ⟦ r ⟧ᵗ) → Set BinExp {s} cons op = ∀ {a b va vb} → s ⟨ a ⟩ᵉ⟱ va → s ⟨ b ⟩ᵉ⟱ vb ----------------------------- → s ⟨ cons a b ⟩ᵉ⟱ (op va vb) -- Evaluation of expressions data _⟨_⟩ᵉ⟱_ (s : Env) : ∀ {t} → Exp t → ⟦ t ⟧ᵗ → Set where add : BinExp add _+_ eq : BinExp eq (λ a b → ⌊ a ≡⁇ b ⌋) lt : BinExp lt (λ a b → ⌊ suc a ≤⁇ b ⌋) lte : BinExp lte (λ a b → ⌊ a ≤⁇ b ⌋) and : BinExp and _∧_ or : BinExp or _∨_ mul : BinExp mul _*_ sub : BinExp sub _∸_ tt : s ⟨ tt ⟩ᵉ⟱ true ff : s ⟨ ff ⟩ᵉ⟱ false lit : ∀ {n} → s ⟨ lit n ⟩ᵉ⟱ n not : ∀ {e b} → s ⟨ e ⟩ᵉ⟱ b → s ⟨ not e ⟩ᵉ⟱ bnot b var : ∀ {v in-scope} → ---------------------------- s ⟨ var v ⟩ᵉ⟱ lookupVar v s {- Evaluation of function calls -} _$:_ : {retVal : ℕ} {argVals : List ℕ} {f : String} -- if we have a function {args : List (Exp nat)} -- and a list of arguments ⦃ in-scope-f : InScopeFun f s ⦄ -- and the function is in scope → let func = lookupFun f s argNames = proj₁ func body = proj₂ func in s ⟨ args ⟩ᵃ⟱ argVals -- we can evaluate the arguments → ⦃ arg-len-match : ArgLenMatch argNames argVals ⦄ -- and the number of arguments is correct -- note the recursive occurence in the call environement ⇓ → let callEnv = callWith argNames argVals <> [ (f , fun argNames body) ] in ⟨ body , ok callEnv ⟩⟱ ret retVal → ----------------------------------- -- then a function call evaluates to the return value s ⟨ f $: args ⟩ᵉ⟱ retVal -- of the function body evaluated in the call environment -- Evaluation of statements data ⟨_,_⟩⟱_ : St → State → State → Set where fun : ∀ {x s s' S args body} → ⟨ S , ok ((x , fun args body) ∷ s) ⟩⟱ ok ((x , fun args body) ∷ s') → ------------------------------------------------------------------- ⟨ fun x args body S , ok s ⟩⟱ ok s' {-- This rule propagates ("rethrows") the return statement's effect if it happens inside the scope of the function declaration --} fun-ret : ∀ {x s r S args body} → ⟨ S , ok ((x , fun args body) ∷ s) ⟩⟱ ret r → -------------------------------------------- ⟨ fun x args body S , ok s ⟩⟱ ret r {- variable declarations -} decl : ∀ {s s' S x e eVal e'} → s ⟨ e ⟩ᵉ⟱ eVal → ⟨ S , ok ((x , nat eVal) ∷ s) ⟩⟱ (ok ((x , e') ∷ s')) → ---------------------------------------------------- ⟨ decl x e S , ok s ⟩⟱ ok s' {- variable declarations propagating the return statement -} decl-ret : ∀ {r s S x e eVal} → s ⟨ e ⟩ᵉ⟱ eVal → ⟨ S , ok ((x , nat eVal) ∷ s) ⟩⟱ ret r → --------------------------------------- ⟨ decl x e S , ok s ⟩⟱ ret r ret : ∀ {e eVal s} → s ⟨ e ⟩ᵉ⟱ eVal → --------------------------- ⟨ ret e , ok s ⟩⟱ ret eVal ass : ∀ {s e eVal x in-scope} → s ⟨ e ⟩ᵉ⟱ eVal → -------------------------------------- ⟨ x := e , ok s ⟩⟱ ok (s [ x ]≔ eVal) skip : ∀ {s} → ----------------- ⟨ skip , s ⟩⟱ s _,_ : ∀ {s₁ s₂ s₃ S₁ S₂} → ⟨ S₁ , s₁ ⟩⟱ ok s₂ → ⟨ S₂ , ok s₂ ⟩⟱ s₃ → -------------------------------------- ⟨ (S₁ , S₂ ) , s₁ ⟩⟱ s₃ {-- If we return in the left statement of a composite statement, then we ignore the right statement and just return -} _ret,_ : ∀ {x s₁ s₂ S₁ S₂} → ⟨ S₁ , s₁ ⟩⟱ ret x → ⟨ S₂ , ret x ⟩⟱ s₂ → --------------------------------------- ⟨ (S₁ , S₂ ) , s₁ ⟩⟱ ret x if-true : ∀ {s s' S₁ S₂ b} → s ⟨ b ⟩ᵉ⟱ true → ⟨ S₁ , ok s ⟩⟱ s' → ------------------------------------ ⟨ if b then S₁ else S₂ , ok s ⟩⟱ s' if-false : ∀ {s s' S₁ S₂ b} → s ⟨ b ⟩ᵉ⟱ false → ⟨ S₂ , ok s ⟩⟱ s' → ------------------------------------- ⟨ if b then S₁ else S₂ , ok s ⟩⟱ s' while-true : ∀ {s s' s'' S b} → s ⟨ b ⟩ᵉ⟱ true → ⟨ S , ok s ⟩⟱ s' → ⟨ while b do S , s' ⟩⟱ s'' → ------------------------------------------------------------------ ⟨ while b do S , ok s ⟩⟱ s'' while-false : ∀ {s S b} → s ⟨ b ⟩ᵉ⟱ false → ------------------------------ ⟨ while b do S , ok s ⟩⟱ ok s substExp : ∀ {t s}{e : Exp t}{v v'} → v ≡ v' → s ⟨ e ⟩ᵉ⟱ v → s ⟨ e ⟩ᵉ⟱ v' substExp refl p2 = p2 -- State transition is deterministic -------------------------------------------------- deterministic : ∀ {S s s' s''} → ⟨ S , s ⟩⟱ s' → ⟨ S , s ⟩⟱ s'' → s' ≡ s'' deterministic = st where mutual args : ∀ {s as vs vs'} → s ⟨ as ⟩ᵃ⟱ vs → s ⟨ as ⟩ᵃ⟱ vs' → vs ≡ vs' args [] [] = refl args (x ∷ p1) (x₁ ∷ p2) rewrite exp x x₁ | args p1 p2 = refl exp : ∀ {t s}{e : Exp t}{v v'} → s ⟨ e ⟩ᵉ⟱ v → s ⟨ e ⟩ᵉ⟱ v' → v ≡ v' exp (add p1 p2) (add p3 p4) rewrite exp p1 p3 | exp p2 p4 = refl exp (sub p1 p2) (sub p3 p4) rewrite exp p1 p3 | exp p2 p4 = refl exp (eq p1 p2) (eq p3 p4) rewrite exp p1 p3 | exp p2 p4 = refl exp (lt p1 p2) (lt p3 p4) rewrite exp p1 p3 | exp p2 p4 = refl exp (lte p1 p2) (lte p3 p4) rewrite exp p1 p3 | exp p2 p4 = refl exp (and p1 p2) (and p3 p4) rewrite exp p1 p3 | exp p2 p4 = refl exp (or p1 p2) (or p3 p4) rewrite exp p1 p3 | exp p2 p4 = refl exp (mul p1 p2) (mul p3 p4) rewrite exp p1 p3 | exp p2 p4 = refl exp tt tt = refl exp ff ff = refl exp lit lit = refl exp (not p1) (not p2) rewrite exp p1 p2 = refl exp var var = refl exp (_$:_ ae be) (_$:_ ae' be') rewrite args ae ae' = ret-inj (st be be') st : ∀ {S s s' s''} → ⟨ S , s ⟩⟱ s' → ⟨ S , s ⟩⟱ s'' → s' ≡ s'' st (fun p1) (fun p2) = cong ok $ proj₂ $ ∷-injective $ ok-inj $ st p1 p2 st (fun p1) (fun-ret p2) with st p1 p2 ... | () st (fun-ret p1) (fun p2) with st p1 p2 ... | () st (fun-ret p1) (fun-ret p2) = st p1 p2 st (decl x₁ p1) (decl x₂ p2) rewrite exp x₁ x₂ = cong ok $ proj₂ $ ∷-injective $ ok-inj $ st p1 p2 st (decl x₁ p1) (decl-ret x₂ p2) rewrite exp x₁ x₂ with st p1 p2 ... | () st (decl-ret x₁ p1) (decl x₂ p2) rewrite exp x₁ x₂ with st p1 p2 ... | () st (decl-ret x₁ p1) (decl-ret x₂ p2) rewrite exp x₁ x₂ = st p1 p2 st (ret x) (ret x₁) rewrite exp x x₁ = refl st (ass x₁) (ass x₂) rewrite exp x₁ x₂ = refl st skip skip = refl st (p1 , p2) (p3 , p4) rewrite st p1 p3 = st p2 p4 st (p1 , p2) (p3 ret, p4) with st p1 p3 ... | () st (p1 ret, p2) (p3 , p4) with st p1 p3 ... | () st (p1 ret, p2) (p3 ret, p4) = st p1 p3 st (if-true x p1) (if-true x₁ p2) rewrite st p1 p2 = refl st (if-true x p1) (if-false x₁ p2) with exp x₁ x ... | () st (if-false x p1) (if-true x₁ p2) with exp x x₁ ... | () st (if-false x p1) (if-false x₁ p2) rewrite st p1 p2 = refl st (while-true x p1 p2) (while-true x₁ p3 p4) rewrite st p1 p3 | st p2 p4 = refl st (while-true x p1 p2) (while-false x₁) with exp x x₁ ... | () st (while-false x) (while-true x₁ p2 p3) with exp x x₁ ... | () st (while-false x) (while-false x₁) = refl -- Divergence -------------------------------------------------- _divergesOn_ : St → State → Set prog divergesOn s = ∀ {s'} → ¬ ⟨ prog , s ⟩⟱ s' Divergent : St → Set Divergent prog = ∀ {s} → prog divergesOn s private inf-loop : Divergent (while tt do skip) inf-loop (while-true tt p p₁) = inf-loop p₁ inf-loop (while-false ()) -- Semantic equivalence -------------------------------------------------- _⇔_ : ∀ {a b} → Set a → Set b → Set (a L.⊔ b) A ⇔ B = (A → B) × (B → A) SemanticEq : St → St → Set SemanticEq pa pb = ∀ {s s'} → ⟨ pa , s ⟩⟱ s' ⇔ ⟨ pb , s ⟩⟱ s' Semantic⇒ : St → St → Set Semantic⇒ pa pb = ∀ {s s'} → ⟨ pa , s ⟩⟱ s' → ⟨ pb , s ⟩⟱ s' -- -- Correctness of factorial programs -- -------------------------------------------------- private --- Semantics in meta-langauge ⟦fac⟧ : ℕ → ℕ ⟦fac⟧ zero = 1 ⟦fac⟧ (suc n) = suc n * ⟦fac⟧ n -- 1. Correctness of recursive definition fac-rec-body : St fac-rec-body = if lte (var "n") (lit 0) then (ret (lit 1)) else (ret (mul (var "n") ("fac" $: [ sub (var "n") (lit 1) ] ))) fac-rec : St fac-rec = fun "fac" [ "n" ] fac-rec-body (ret ("fac" $: [ var "n" ])) fac-rec-body-ok : ∀ n → ⟨ fac-rec-body , ok (("n" ,ₙ n) ∷ ("fac" , fun [ "n" ] fac-rec-body) ∷ []) ⟩⟱ ret (⟦fac⟧ n) fac-rec-body-ok zero = if-true (lte var lit) (ret lit) fac-rec-body-ok (suc n) = if-false (lte var lit) (ret (mul var ((sub var lit ∷ []) $: (fac-rec-body-ok n)))) fac-rec-ok : ∀ n → ⟨ fac-rec , ok [ ("n" ,ₙ n) ] ⟩⟱ ret (⟦fac⟧ n) fac-rec-ok n = fun-ret (ret ((var ∷ []) $: (fac-rec-body-ok n))) -- 2. Correctness of procedural definition fac-loop : St fac-loop = while lt (var "i") (var "n") do ( "i" := add (lit 1) (var "i") , "acc" := mul (var "i") (var "acc") ) fac-proc : St fac-proc = fun "fac" ( "n" ∷ []) ( decl "i" (lit 0) ( decl "acc" (lit 1) ( fac-loop , ret (var "acc") ))) (ret ("fac" $: [ var "n" ])) fac-loop-ok : ∀ {s} d i → ⟨ fac-loop , ok (("acc",ₙ ⟦fac⟧ i) ∷ ("i",ₙ i ) ∷ ("n",ₙ d + i) ∷ s) ⟩⟱ ok (("acc",ₙ ⟦fac⟧ (d + i)) ∷ ("i",ₙ d + i) ∷ ("n",ₙ d + i) ∷ s) fac-loop-ok zero i = while-false (substExp (¬A→≡false (a≮a i)) (lt var var)) fac-loop-ok (suc d) i with fac-loop-ok d (suc i) ... | next rewrite +-suc d i = while-true (substExp (A→≡true (a<sb+a i d)) (lt var var)) ( ass (add lit var) , ass (mul var var)) next fac-proc-ok : ∀ n → ⟨ fac-proc , ok (("n",ₙ n) ∷ []) ⟩⟱ ret (⟦fac⟧ n) fac-proc-ok n with fac-loop-ok n 0 ... | loop-ok rewrite +-comm n 0 = fun-ret (ret ((var ∷ []) $: decl-ret lit ( decl-ret lit (loop-ok , ret var))))
stub.asm
flydyman/fpc-kernel-bone
0
167281
<filename>stub.asm ;///////////////////////////////////////////////////////// ;// // ;// Freepascal barebone OS // ;// stub.asm // ;// // ;///////////////////////////////////////////////////////// ;// ;// By: <NAME> <<EMAIL>> ;// License: Public domain ;// ; ; Kernel stub ; ; ; We are in 32bits protected mode ; [bits 32] ; ; Export entrypoint ; [global kstart] ; ; Import kernel entrypoint ; [extern kmain] ; ; Posible multiboot header flags ; MULTIBOOT_MODULE_ALIGN equ 1<<0 MULTIBOOT_MEMORY_MAP equ 1<<1 MULTIBOOT_GRAPHICS_FIELDS equ 1<<2 MULTIBOOT_ADDRESS_FIELDS equ 1<<16 ; ; Multiboot header defines ; MULTIBOOT_HEADER_MAGIC equ 0x1BADB002 MULTIBOOT_HEADER_FLAGS equ MULTIBOOT_MODULE_ALIGN | MULTIBOOT_MEMORY_MAP MULTIBOOT_HEADER_CHECKSUM equ -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS) ; ; Kernel stack size ; KERNEL_STACKSIZE equ 0x4000 section .text ; ; Multiboot header ; align 4 dd MULTIBOOT_HEADER_MAGIC dd MULTIBOOT_HEADER_FLAGS dd MULTIBOOT_HEADER_CHECKSUM ; ; Entrypoint ; kstart: mov esp, KERNEL_STACK+KERNEL_STACKSIZE ;Create kernel stack push eax ;Multiboot magic number push ebx ;Multiboot info call kmain ;Call kernel entrypoint cli ;Clear interrupts hlt ;Halt machine section .bss ; ; Kernel stack location ; align 32 KERNEL_STACK: resb KERNEL_STACKSIZE
runtime/ravenscar-sfp-stm32f427/common/g-io-put.adb
TUM-EI-RCS/StratoX
12
17276
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- G N A T . I O . P U T -- -- -- -- B o d y -- -- -- -- Copyright (C) 2011-2016, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Implementation of Put (C : Character) based on System.Text_IO. with System.Text_IO; use System.Text_IO; separate (GNAT.IO) procedure Put (C : Character) is begin if not Initialized then Initialize; end if; -- GNAT.IO calls Put (ASCII.LF) for New_Line. Compensate. if C = ASCII.LF and then Use_Cr_Lf_For_New_Line then while not Is_Tx_Ready loop null; end loop; System.Text_IO.Put (ASCII.CR); end if; while not Is_Tx_Ready loop null; end loop; System.Text_IO.Put (C); end Put;
4.6.Fibonacci.asm
souzaitor/Assembly
0
11426
<filename>4.6.Fibonacci.asm TITLE Fibonacci Numbers ;-------------------- ; Autor: <NAME> ; Data: 15/07/2021 ; ; Capítulo 4 Exercício 6 ; Descrição: Programa que use um loop para calcular os primeiros sete valores da sequência de números de Fibonacci, ; descrito pela seguinte fórmula: Fib (1) = 1, Fib (2) = 1, Fib (n) = Fib (n - 1) + Fib (n - 2) ;-------------------- INCLUDE Irvine32.inc .data PRIMEIRO DWORD ? SEGUNDO DWORD ? RESULTADO DWORD ? .code main PROC mov ecx, 12 mov PRIMEIRO, 0 mov SEGUNDO, 1 l1: mov eax, PRIMEIRO add eax, SEGUNDO call DumpRegs mov RESULTADO, eax mov eax, SEGUNDO mov PRIMEIRO, eax mov eax, RESULTADO mov SEGUNDO, eax loop l1 exit main ENDP END main
courses/fundamentals_of_ada/labs/solar_system/adv_280_low_level_programming/question_3/src/stm32-rng-interrupts.adb
AdaCore/training_material
15
14883
with Ada.Interrupts.Names; package body STM32.RNG.Interrupts is type Buffer_Content is array (Integer range <>) of UInt32; type Ring_Buffer is record Content : Buffer_Content (0 .. 9); Head : Integer := 0; Tail : Integer := 0; end record; -------------- -- Receiver -- -------------- protected Receiver is -- Implement the Receiver protected object as an interrupt handler for -- the Ada.Interrupts.Names.HASH_RNG_Interrupt. -- -- The Last, Buffer and Data_Available provate variables are used to -- store and control the data present in the RNG_Perpih peripheral. -- -- Pay attention in settting the right priority. entry Get_Random_32 (Value : out UInt32); private Last : UInt32 := 0; Buffer : Ring_Buffer; Data_Available : Boolean := False; procedure Interrupt_Handler; end Receiver; -------------- -- Receiver -- -------------- protected body Receiver is -- TODO: implement the body of the Receiver interrupt handler ------------------- -- Get_Random_32 -- ------------------- entry Get_Random_32 (Value : out UInt32) when Data_Available is begin null; end Get_Random_32; ----------------------- -- Interrupt_Handler -- ----------------------- procedure Interrupt_Handler is null; end Receiver; -------------------- -- Initialize_RNG -- -------------------- procedure Initialize_RNG is begin -- TODO: initialize the RNG module in interrupt modue using the -- subprograms defined in the STM32.RNG package. null; end Initialize_RNG; ------------ -- Random -- ------------ function Random return UInt32 is Result : UInt32; begin Receiver.Get_Random_32 (Result); return Result; end Random; end STM32.RNG.Interrupts;
Task/Repeat-a-string/Ada/repeat-a-string.ada
LaudateCorpus1/RosettaCodeData
1
9129
<reponame>LaudateCorpus1/RosettaCodeData<gh_stars>1-10 with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Ada.Text_IO; use Ada.Text_IO; procedure String_Multiplication is begin Put_Line (5 * "ha"); end String_Multiplication;
Vivid/libv/linux_x64_vivid/system.asm
lehtojo/v
3
25291
<filename>Vivid/libv/linux_x64_vivid/system.asm .export _V4timev_rx sub rsp, 16 mov rdi, rsp mov rax, 96 # System call: sys_gettimeofday syscall imul rax, qword [rsp], 10000000 mov rcx, 116444736000000000 # 116444736000000000 = 0x019DB1DED53E8000 = January 1, 1970 (Unix epoch) in 'ticks' add rax, rcx mov rcx, qword [rsp+8] # Load the microseconds and convert them to multiple of 100 nanoseconds imul rcx, 10 add rax, rcx # Add the microseconds add rsp, 16 ret
project/ntstub/i386/5_2_3790_sp0_ssdt_sysenter.asm
mehrdad-shokri/windows-syscall-table
372
12232
; DO NOT MODIFY THIS FILE DIRECTLY! ; author: @TinySecEx ; ssdt asm stub for 5.2.3790-sp0-windows-2003 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 ); _5_2_3790_sp0_windows_2003_NtAcceptConnectPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 0 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 call _label_sysenter ret 32 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 call _label_sysenter ret 44 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 call _label_sysenter ret 44 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 call _label_sysenter ret 64 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 call _label_sysenter ret 44 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 call _label_sysenter ret 64 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 call _label_sysenter ret 68 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtAccessCheckByTypeResultListAndAuditAlarmByHandle ENDP ; ULONG __stdcall NtAddAtom( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtAddAtom PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 8 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtAddAtom ENDP ; ULONG __stdcall NtAddBootEntry( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtAddBootEntry PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 9 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtAddBootEntry ENDP ; ULONG __stdcall NtAddDriverEntry( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtAddDriverEntry PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 10 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtAddDriverEntry ENDP ; ULONG __stdcall NtAdjustGroupsToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _5_2_3790_sp0_windows_2003_NtAdjustGroupsToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 11 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtAdjustGroupsToken ENDP ; ULONG __stdcall NtAdjustPrivilegesToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _5_2_3790_sp0_windows_2003_NtAdjustPrivilegesToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 12 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtAdjustPrivilegesToken ENDP ; ULONG __stdcall NtAlertResumeThread( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtAlertResumeThread PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 13 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtAlertResumeThread ENDP ; ULONG __stdcall NtAlertThread( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtAlertThread PROC STDCALL arg_01:DWORD mov eax , 14 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtAlertThread ENDP ; ULONG __stdcall NtAllocateLocallyUniqueId( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtAllocateLocallyUniqueId PROC STDCALL arg_01:DWORD mov eax , 15 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtAllocateLocallyUniqueId ENDP ; ULONG __stdcall NtAllocateUserPhysicalPages( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtAllocateUserPhysicalPages PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 16 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtAllocateUserPhysicalPages ENDP ; ULONG __stdcall NtAllocateUuids( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtAllocateUuids PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 17 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtAllocateUuids ENDP ; ULONG __stdcall NtAllocateVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _5_2_3790_sp0_windows_2003_NtAllocateVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 18 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtAllocateVirtualMemory ENDP ; ULONG __stdcall NtApphelpCacheControl( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtApphelpCacheControl PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 19 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtApphelpCacheControl ENDP ; ULONG __stdcall NtAreMappedFilesTheSame( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtAreMappedFilesTheSame PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 20 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtAreMappedFilesTheSame ENDP ; ULONG __stdcall NtAssignProcessToJobObject( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtAssignProcessToJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 21 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtAssignProcessToJobObject ENDP ; ULONG __stdcall NtCallbackReturn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtCallbackReturn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 22 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCallbackReturn ENDP ; ULONG __stdcall NtCancelDeviceWakeupRequest( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtCancelDeviceWakeupRequest PROC STDCALL arg_01:DWORD mov eax , 23 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCancelDeviceWakeupRequest ENDP ; ULONG __stdcall NtCancelIoFile( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtCancelIoFile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 24 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCancelIoFile ENDP ; ULONG __stdcall NtCancelTimer( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtCancelTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 25 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCancelTimer ENDP ; ULONG __stdcall NtClearEvent( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtClearEvent PROC STDCALL arg_01:DWORD mov eax , 26 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtClearEvent ENDP ; ULONG __stdcall NtClose( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtClose PROC STDCALL arg_01:DWORD mov eax , 27 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtClose ENDP ; ULONG __stdcall NtCloseObjectAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtCloseObjectAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 28 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCloseObjectAuditAlarm ENDP ; ULONG __stdcall NtCompactKeys( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtCompactKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 29 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCompactKeys ENDP ; ULONG __stdcall NtCompareTokens( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtCompareTokens PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 30 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCompareTokens ENDP ; ULONG __stdcall NtCompleteConnectPort( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtCompleteConnectPort PROC STDCALL arg_01:DWORD mov eax , 31 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCompleteConnectPort ENDP ; ULONG __stdcall NtCompressKey( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtCompressKey PROC STDCALL arg_01:DWORD mov eax , 32 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 33 call _label_sysenter ret 32 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtConnectPort ENDP ; ULONG __stdcall NtContinue( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtContinue PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 34 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtContinue ENDP ; ULONG __stdcall NtCreateDebugObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtCreateDebugObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 35 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCreateDebugObject ENDP ; ULONG __stdcall NtCreateDirectoryObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtCreateDirectoryObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 36 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCreateDirectoryObject ENDP ; ULONG __stdcall NtCreateEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtCreateEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 37 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCreateEvent ENDP ; ULONG __stdcall NtCreateEventPair( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtCreateEventPair PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 38 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 39 call _label_sysenter ret 44 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCreateFile ENDP ; ULONG __stdcall NtCreateIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtCreateIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 40 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCreateIoCompletion ENDP ; ULONG __stdcall NtCreateJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtCreateJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 41 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCreateJobObject ENDP ; ULONG __stdcall NtCreateJobSet( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtCreateJobSet PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 42 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 43 call _label_sysenter ret 28 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCreateKey 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 ); _5_2_3790_sp0_windows_2003_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 , 44 call _label_sysenter ret 32 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCreateMailslotFile ENDP ; ULONG __stdcall NtCreateMutant( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtCreateMutant PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 45 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 46 call _label_sysenter ret 56 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCreateNamedPipeFile ENDP ; ULONG __stdcall NtCreatePagingFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtCreatePagingFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 47 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCreatePagingFile ENDP ; ULONG __stdcall NtCreatePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtCreatePort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 48 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCreatePort 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 ); _5_2_3790_sp0_windows_2003_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 , 49 call _label_sysenter ret 32 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 50 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 51 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCreateProfile 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 ); _5_2_3790_sp0_windows_2003_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 , 52 call _label_sysenter ret 28 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCreateSection ENDP ; ULONG __stdcall NtCreateSemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtCreateSemaphore PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 53 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCreateSemaphore ENDP ; ULONG __stdcall NtCreateSymbolicLinkObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtCreateSymbolicLinkObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 54 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 55 call _label_sysenter ret 32 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCreateThread ENDP ; ULONG __stdcall NtCreateTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtCreateTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 56 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 57 call _label_sysenter ret 52 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCreateToken ENDP ; ULONG __stdcall NtCreateWaitablePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtCreateWaitablePort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 58 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCreateWaitablePort ENDP ; ULONG __stdcall NtDebugActiveProcess( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtDebugActiveProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 59 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtDebugActiveProcess ENDP ; ULONG __stdcall NtDebugContinue( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtDebugContinue PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 60 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtDebugContinue ENDP ; ULONG __stdcall NtDelayExecution( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtDelayExecution PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 61 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtDelayExecution ENDP ; ULONG __stdcall NtDeleteAtom( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtDeleteAtom PROC STDCALL arg_01:DWORD mov eax , 62 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtDeleteAtom ENDP ; ULONG __stdcall NtDeleteBootEntry( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtDeleteBootEntry PROC STDCALL arg_01:DWORD mov eax , 63 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtDeleteBootEntry ENDP ; ULONG __stdcall NtDeleteDriverEntry( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtDeleteDriverEntry PROC STDCALL arg_01:DWORD mov eax , 64 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtDeleteDriverEntry ENDP ; ULONG __stdcall NtDeleteFile( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtDeleteFile PROC STDCALL arg_01:DWORD mov eax , 65 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtDeleteFile ENDP ; ULONG __stdcall NtDeleteKey( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtDeleteKey PROC STDCALL arg_01:DWORD mov eax , 66 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtDeleteKey ENDP ; ULONG __stdcall NtDeleteObjectAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtDeleteObjectAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 67 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtDeleteObjectAuditAlarm ENDP ; ULONG __stdcall NtDeleteValueKey( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtDeleteValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 68 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 69 call _label_sysenter ret 40 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtDeviceIoControlFile ENDP ; ULONG __stdcall NtDisplayString( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtDisplayString PROC STDCALL arg_01:DWORD mov eax , 70 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtDisplayString 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 ); _5_2_3790_sp0_windows_2003_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 , 71 call _label_sysenter ret 28 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtDuplicateObject ENDP ; ULONG __stdcall NtDuplicateToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _5_2_3790_sp0_windows_2003_NtDuplicateToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 72 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtDuplicateToken ENDP ; ULONG __stdcall NtEnumerateBootEntries( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtEnumerateBootEntries PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 73 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtEnumerateBootEntries ENDP ; ULONG __stdcall NtEnumerateDriverEntries( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtEnumerateDriverEntries PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 74 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtEnumerateDriverEntries ENDP ; ULONG __stdcall NtEnumerateKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _5_2_3790_sp0_windows_2003_NtEnumerateKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 75 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtEnumerateKey ENDP ; ULONG __stdcall NtEnumerateSystemEnvironmentValuesEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtEnumerateSystemEnvironmentValuesEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 76 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtEnumerateSystemEnvironmentValuesEx ENDP ; ULONG __stdcall NtEnumerateValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _5_2_3790_sp0_windows_2003_NtEnumerateValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 77 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtEnumerateValueKey ENDP ; ULONG __stdcall NtExtendSection( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtExtendSection PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 78 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtExtendSection ENDP ; ULONG __stdcall NtFilterToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _5_2_3790_sp0_windows_2003_NtFilterToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 79 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtFilterToken ENDP ; ULONG __stdcall NtFindAtom( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtFindAtom PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 80 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtFindAtom ENDP ; ULONG __stdcall NtFlushBuffersFile( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtFlushBuffersFile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 81 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtFlushBuffersFile ENDP ; ULONG __stdcall NtFlushInstructionCache( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtFlushInstructionCache PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 82 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtFlushInstructionCache ENDP ; ULONG __stdcall NtFlushKey( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtFlushKey PROC STDCALL arg_01:DWORD mov eax , 83 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtFlushKey ENDP ; ULONG __stdcall NtFlushVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtFlushVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 84 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtFlushVirtualMemory ENDP ; ULONG __stdcall NtFlushWriteBuffer( ); _5_2_3790_sp0_windows_2003_NtFlushWriteBuffer PROC STDCALL mov eax , 85 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtFlushWriteBuffer ENDP ; ULONG __stdcall NtFreeUserPhysicalPages( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtFreeUserPhysicalPages PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 86 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtFreeUserPhysicalPages ENDP ; ULONG __stdcall NtFreeVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtFreeVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 87 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtFreeVirtualMemory 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 ); _5_2_3790_sp0_windows_2003_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 , 88 call _label_sysenter ret 40 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtFsControlFile ENDP ; ULONG __stdcall NtGetContextThread( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtGetContextThread PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 89 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtGetContextThread ENDP ; ULONG __stdcall NtGetDevicePowerState( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtGetDevicePowerState PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 90 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtGetDevicePowerState ENDP ; ULONG __stdcall NtGetPlugPlayEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtGetPlugPlayEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 91 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 92 call _label_sysenter ret 28 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtGetWriteWatch ENDP ; ULONG __stdcall NtImpersonateAnonymousToken( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtImpersonateAnonymousToken PROC STDCALL arg_01:DWORD mov eax , 93 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtImpersonateAnonymousToken ENDP ; ULONG __stdcall NtImpersonateClientOfPort( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtImpersonateClientOfPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 94 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtImpersonateClientOfPort ENDP ; ULONG __stdcall NtImpersonateThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtImpersonateThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 95 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtImpersonateThread ENDP ; ULONG __stdcall NtInitializeRegistry( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtInitializeRegistry PROC STDCALL arg_01:DWORD mov eax , 96 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtInitializeRegistry ENDP ; ULONG __stdcall NtInitiatePowerAction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtInitiatePowerAction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 97 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtInitiatePowerAction ENDP ; ULONG __stdcall NtIsProcessInJob( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtIsProcessInJob PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 98 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtIsProcessInJob ENDP ; ULONG __stdcall NtIsSystemResumeAutomatic( ); _5_2_3790_sp0_windows_2003_NtIsSystemResumeAutomatic PROC STDCALL mov eax , 99 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtIsSystemResumeAutomatic ENDP ; ULONG __stdcall NtListenPort( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtListenPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 100 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtListenPort ENDP ; ULONG __stdcall NtLoadDriver( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtLoadDriver PROC STDCALL arg_01:DWORD mov eax , 101 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtLoadDriver ENDP ; ULONG __stdcall NtLoadKey( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtLoadKey PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 102 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtLoadKey ENDP ; ULONG __stdcall NtLoadKey2( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtLoadKey2 PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 103 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtLoadKey2 ENDP ; ULONG __stdcall NtLoadKeyEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtLoadKeyEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 104 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 105 call _label_sysenter ret 40 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtLockFile ENDP ; ULONG __stdcall NtLockProductActivationKeys( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtLockProductActivationKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 106 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtLockProductActivationKeys ENDP ; ULONG __stdcall NtLockRegistryKey( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtLockRegistryKey PROC STDCALL arg_01:DWORD mov eax , 107 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtLockRegistryKey ENDP ; ULONG __stdcall NtLockVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtLockVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 108 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtLockVirtualMemory ENDP ; ULONG __stdcall NtMakePermanentObject( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtMakePermanentObject PROC STDCALL arg_01:DWORD mov eax , 109 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtMakePermanentObject ENDP ; ULONG __stdcall NtMakeTemporaryObject( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtMakeTemporaryObject PROC STDCALL arg_01:DWORD mov eax , 110 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtMakeTemporaryObject ENDP ; ULONG __stdcall NtMapUserPhysicalPages( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtMapUserPhysicalPages PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 111 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtMapUserPhysicalPages ENDP ; ULONG __stdcall NtMapUserPhysicalPagesScatter( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtMapUserPhysicalPagesScatter PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 112 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 113 call _label_sysenter ret 40 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtMapViewOfSection ENDP ; ULONG __stdcall NtModifyBootEntry( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtModifyBootEntry PROC STDCALL arg_01:DWORD mov eax , 114 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtModifyBootEntry ENDP ; ULONG __stdcall NtModifyDriverEntry( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtModifyDriverEntry PROC STDCALL arg_01:DWORD mov eax , 115 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 116 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 117 call _label_sysenter ret 40 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 118 call _label_sysenter ret 48 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtNotifyChangeMultipleKeys ENDP ; ULONG __stdcall NtOpenDirectoryObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtOpenDirectoryObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 119 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenDirectoryObject ENDP ; ULONG __stdcall NtOpenEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtOpenEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 120 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenEvent ENDP ; ULONG __stdcall NtOpenEventPair( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtOpenEventPair PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 121 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenEventPair ENDP ; ULONG __stdcall NtOpenFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _5_2_3790_sp0_windows_2003_NtOpenFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 122 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenFile ENDP ; ULONG __stdcall NtOpenIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtOpenIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 123 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenIoCompletion ENDP ; ULONG __stdcall NtOpenJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtOpenJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 124 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenJobObject ENDP ; ULONG __stdcall NtOpenKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtOpenKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 125 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenKey ENDP ; ULONG __stdcall NtOpenMutant( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtOpenMutant PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 126 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 127 call _label_sysenter ret 48 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenObjectAuditAlarm ENDP ; ULONG __stdcall NtOpenProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtOpenProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 128 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenProcess ENDP ; ULONG __stdcall NtOpenProcessToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtOpenProcessToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 129 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenProcessToken ENDP ; ULONG __stdcall NtOpenProcessTokenEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtOpenProcessTokenEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 130 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenProcessTokenEx ENDP ; ULONG __stdcall NtOpenSection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtOpenSection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 131 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenSection ENDP ; ULONG __stdcall NtOpenSemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtOpenSemaphore PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 132 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenSemaphore ENDP ; ULONG __stdcall NtOpenSymbolicLinkObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtOpenSymbolicLinkObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 133 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenSymbolicLinkObject ENDP ; ULONG __stdcall NtOpenThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtOpenThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 134 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenThread ENDP ; ULONG __stdcall NtOpenThreadToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtOpenThreadToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 135 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenThreadToken ENDP ; ULONG __stdcall NtOpenThreadTokenEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtOpenThreadTokenEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 136 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenThreadTokenEx ENDP ; ULONG __stdcall NtOpenTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtOpenTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 137 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenTimer ENDP ; ULONG __stdcall NtPlugPlayControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtPlugPlayControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 138 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtPlugPlayControl ENDP ; ULONG __stdcall NtPowerInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtPowerInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 139 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtPowerInformation ENDP ; ULONG __stdcall NtPrivilegeCheck( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtPrivilegeCheck PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 140 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtPrivilegeCheck ENDP ; ULONG __stdcall NtPrivilegeObjectAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _5_2_3790_sp0_windows_2003_NtPrivilegeObjectAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 141 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtPrivilegeObjectAuditAlarm ENDP ; ULONG __stdcall NtPrivilegedServiceAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtPrivilegedServiceAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 142 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtPrivilegedServiceAuditAlarm ENDP ; ULONG __stdcall NtProtectVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtProtectVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 143 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtProtectVirtualMemory ENDP ; ULONG __stdcall NtPulseEvent( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtPulseEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 144 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtPulseEvent ENDP ; ULONG __stdcall NtQueryAttributesFile( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtQueryAttributesFile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 145 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryAttributesFile ENDP ; ULONG __stdcall NtQueryBootEntryOrder( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtQueryBootEntryOrder PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 146 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryBootEntryOrder ENDP ; ULONG __stdcall NtQueryBootOptions( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtQueryBootOptions PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 147 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryBootOptions ENDP ; ULONG __stdcall NtQueryDebugFilterState( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtQueryDebugFilterState PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 148 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryDebugFilterState ENDP ; ULONG __stdcall NtQueryDefaultLocale( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtQueryDefaultLocale PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 149 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryDefaultLocale ENDP ; ULONG __stdcall NtQueryDefaultUILanguage( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtQueryDefaultUILanguage PROC STDCALL arg_01:DWORD mov eax , 150 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 151 call _label_sysenter ret 44 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 152 call _label_sysenter ret 28 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryDirectoryObject ENDP ; ULONG __stdcall NtQueryDriverEntryOrder( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtQueryDriverEntryOrder PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 153 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 154 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryEaFile ENDP ; ULONG __stdcall NtQueryEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQueryEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 155 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryEvent ENDP ; ULONG __stdcall NtQueryFullAttributesFile( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtQueryFullAttributesFile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 156 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryFullAttributesFile ENDP ; ULONG __stdcall NtQueryInformationAtom( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQueryInformationAtom PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 157 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryInformationAtom ENDP ; ULONG __stdcall NtQueryInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQueryInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 158 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryInformationFile ENDP ; ULONG __stdcall NtQueryInformationJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQueryInformationJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 159 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryInformationJobObject ENDP ; ULONG __stdcall NtQueryInformationPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQueryInformationPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 160 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryInformationPort ENDP ; ULONG __stdcall NtQueryInformationProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQueryInformationProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 161 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryInformationProcess ENDP ; ULONG __stdcall NtQueryInformationThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQueryInformationThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 162 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryInformationThread ENDP ; ULONG __stdcall NtQueryInformationToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQueryInformationToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 163 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryInformationToken ENDP ; ULONG __stdcall NtQueryInstallUILanguage( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtQueryInstallUILanguage PROC STDCALL arg_01:DWORD mov eax , 164 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryInstallUILanguage ENDP ; ULONG __stdcall NtQueryIntervalProfile( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtQueryIntervalProfile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 165 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryIntervalProfile ENDP ; ULONG __stdcall NtQueryIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQueryIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 166 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryIoCompletion ENDP ; ULONG __stdcall NtQueryKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQueryKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 167 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryKey ENDP ; ULONG __stdcall NtQueryMultipleValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _5_2_3790_sp0_windows_2003_NtQueryMultipleValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 168 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryMultipleValueKey ENDP ; ULONG __stdcall NtQueryMutant( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQueryMutant PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 169 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryMutant ENDP ; ULONG __stdcall NtQueryObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQueryObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 170 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryObject ENDP ; ULONG __stdcall NtQueryOpenSubKeys( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtQueryOpenSubKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 171 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryOpenSubKeys ENDP ; ULONG __stdcall NtQueryOpenSubKeysEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtQueryOpenSubKeysEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 172 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryOpenSubKeysEx ENDP ; ULONG __stdcall NtQueryPerformanceCounter( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtQueryPerformanceCounter PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 173 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryPerformanceCounter 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 ); _5_2_3790_sp0_windows_2003_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 , 174 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryQuotaInformationFile ENDP ; ULONG __stdcall NtQuerySection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQuerySection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 175 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQuerySection ENDP ; ULONG __stdcall NtQuerySecurityObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQuerySecurityObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 176 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQuerySecurityObject ENDP ; ULONG __stdcall NtQuerySemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQuerySemaphore PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 177 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQuerySemaphore ENDP ; ULONG __stdcall NtQuerySymbolicLinkObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtQuerySymbolicLinkObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 178 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQuerySymbolicLinkObject ENDP ; ULONG __stdcall NtQuerySystemEnvironmentValue( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtQuerySystemEnvironmentValue PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 179 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQuerySystemEnvironmentValue ENDP ; ULONG __stdcall NtQuerySystemEnvironmentValueEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQuerySystemEnvironmentValueEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 180 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQuerySystemEnvironmentValueEx ENDP ; ULONG __stdcall NtQuerySystemInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtQuerySystemInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 181 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQuerySystemInformation ENDP ; ULONG __stdcall NtQuerySystemTime( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtQuerySystemTime PROC STDCALL arg_01:DWORD mov eax , 182 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQuerySystemTime ENDP ; ULONG __stdcall NtQueryTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQueryTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 183 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryTimer ENDP ; ULONG __stdcall NtQueryTimerResolution( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtQueryTimerResolution PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 184 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryTimerResolution ENDP ; ULONG __stdcall NtQueryValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _5_2_3790_sp0_windows_2003_NtQueryValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 185 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryValueKey ENDP ; ULONG __stdcall NtQueryVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _5_2_3790_sp0_windows_2003_NtQueryVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 186 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryVirtualMemory ENDP ; ULONG __stdcall NtQueryVolumeInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQueryVolumeInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 187 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryVolumeInformationFile ENDP ; ULONG __stdcall NtQueueApcThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtQueueApcThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 188 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueueApcThread ENDP ; ULONG __stdcall NtRaiseException( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtRaiseException PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 189 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtRaiseException ENDP ; ULONG __stdcall NtRaiseHardError( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _5_2_3790_sp0_windows_2003_NtRaiseHardError PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 190 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 191 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 192 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtReadFileScatter ENDP ; ULONG __stdcall NtReadRequestData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _5_2_3790_sp0_windows_2003_NtReadRequestData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 193 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtReadRequestData ENDP ; ULONG __stdcall NtReadVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtReadVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 194 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtReadVirtualMemory ENDP ; ULONG __stdcall NtRegisterThreadTerminatePort( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtRegisterThreadTerminatePort PROC STDCALL arg_01:DWORD mov eax , 195 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtRegisterThreadTerminatePort ENDP ; ULONG __stdcall NtReleaseMutant( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtReleaseMutant PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 196 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtReleaseMutant ENDP ; ULONG __stdcall NtReleaseSemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtReleaseSemaphore PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 197 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtReleaseSemaphore ENDP ; ULONG __stdcall NtRemoveIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtRemoveIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 198 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtRemoveIoCompletion ENDP ; ULONG __stdcall NtRemoveProcessDebug( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtRemoveProcessDebug PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 199 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtRemoveProcessDebug ENDP ; ULONG __stdcall NtRenameKey( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtRenameKey PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 200 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtRenameKey ENDP ; ULONG __stdcall NtReplaceKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtReplaceKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 201 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtReplaceKey ENDP ; ULONG __stdcall NtReplyPort( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtReplyPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 202 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtReplyPort ENDP ; ULONG __stdcall NtReplyWaitReceivePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtReplyWaitReceivePort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 203 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtReplyWaitReceivePort ENDP ; ULONG __stdcall NtReplyWaitReceivePortEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtReplyWaitReceivePortEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 204 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtReplyWaitReceivePortEx ENDP ; ULONG __stdcall NtReplyWaitReplyPort( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtReplyWaitReplyPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 205 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtReplyWaitReplyPort ENDP ; ULONG __stdcall NtRequestDeviceWakeup( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtRequestDeviceWakeup PROC STDCALL arg_01:DWORD mov eax , 206 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtRequestDeviceWakeup ENDP ; ULONG __stdcall NtRequestPort( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtRequestPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 207 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtRequestPort ENDP ; ULONG __stdcall NtRequestWaitReplyPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtRequestWaitReplyPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 208 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtRequestWaitReplyPort ENDP ; ULONG __stdcall NtRequestWakeupLatency( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtRequestWakeupLatency PROC STDCALL arg_01:DWORD mov eax , 209 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtRequestWakeupLatency ENDP ; ULONG __stdcall NtResetEvent( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtResetEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 210 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtResetEvent ENDP ; ULONG __stdcall NtResetWriteWatch( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtResetWriteWatch PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 211 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtResetWriteWatch ENDP ; ULONG __stdcall NtRestoreKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtRestoreKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 212 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtRestoreKey ENDP ; ULONG __stdcall NtResumeProcess( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtResumeProcess PROC STDCALL arg_01:DWORD mov eax , 213 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtResumeProcess ENDP ; ULONG __stdcall NtResumeThread( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtResumeThread PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 214 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtResumeThread ENDP ; ULONG __stdcall NtSaveKey( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtSaveKey PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 215 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSaveKey ENDP ; ULONG __stdcall NtSaveKeyEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtSaveKeyEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 216 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSaveKeyEx ENDP ; ULONG __stdcall NtSaveMergedKeys( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtSaveMergedKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 217 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 218 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSecureConnectPort ENDP ; ULONG __stdcall NtSetBootEntryOrder( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtSetBootEntryOrder PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 219 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetBootEntryOrder ENDP ; ULONG __stdcall NtSetBootOptions( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtSetBootOptions PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 220 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetBootOptions ENDP ; ULONG __stdcall NtSetContextThread( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtSetContextThread PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 221 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetContextThread ENDP ; ULONG __stdcall NtSetDebugFilterState( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtSetDebugFilterState PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 222 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetDebugFilterState ENDP ; ULONG __stdcall NtSetDefaultHardErrorPort( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtSetDefaultHardErrorPort PROC STDCALL arg_01:DWORD mov eax , 223 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetDefaultHardErrorPort ENDP ; ULONG __stdcall NtSetDefaultLocale( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtSetDefaultLocale PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 224 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetDefaultLocale ENDP ; ULONG __stdcall NtSetDefaultUILanguage( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtSetDefaultUILanguage PROC STDCALL arg_01:DWORD mov eax , 225 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetDefaultUILanguage ENDP ; ULONG __stdcall NtSetDriverEntryOrder( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtSetDriverEntryOrder PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 226 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetDriverEntryOrder ENDP ; ULONG __stdcall NtSetEaFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtSetEaFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 227 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetEaFile ENDP ; ULONG __stdcall NtSetEvent( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtSetEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 228 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetEvent ENDP ; ULONG __stdcall NtSetEventBoostPriority( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtSetEventBoostPriority PROC STDCALL arg_01:DWORD mov eax , 229 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetEventBoostPriority ENDP ; ULONG __stdcall NtSetHighEventPair( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtSetHighEventPair PROC STDCALL arg_01:DWORD mov eax , 230 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetHighEventPair ENDP ; ULONG __stdcall NtSetHighWaitLowEventPair( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtSetHighWaitLowEventPair PROC STDCALL arg_01:DWORD mov eax , 231 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetHighWaitLowEventPair ENDP ; ULONG __stdcall NtSetInformationDebugObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtSetInformationDebugObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 232 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetInformationDebugObject ENDP ; ULONG __stdcall NtSetInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtSetInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 233 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetInformationFile ENDP ; ULONG __stdcall NtSetInformationJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtSetInformationJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 234 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetInformationJobObject ENDP ; ULONG __stdcall NtSetInformationKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtSetInformationKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 235 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetInformationKey ENDP ; ULONG __stdcall NtSetInformationObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtSetInformationObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 236 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetInformationObject ENDP ; ULONG __stdcall NtSetInformationProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtSetInformationProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 237 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetInformationProcess ENDP ; ULONG __stdcall NtSetInformationThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtSetInformationThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 238 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetInformationThread ENDP ; ULONG __stdcall NtSetInformationToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtSetInformationToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 239 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetInformationToken ENDP ; ULONG __stdcall NtSetIntervalProfile( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtSetIntervalProfile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 240 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetIntervalProfile ENDP ; ULONG __stdcall NtSetIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtSetIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 241 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetIoCompletion ENDP ; ULONG __stdcall NtSetLdtEntries( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _5_2_3790_sp0_windows_2003_NtSetLdtEntries PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 242 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetLdtEntries ENDP ; ULONG __stdcall NtSetLowEventPair( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtSetLowEventPair PROC STDCALL arg_01:DWORD mov eax , 243 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetLowEventPair ENDP ; ULONG __stdcall NtSetLowWaitHighEventPair( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtSetLowWaitHighEventPair PROC STDCALL arg_01:DWORD mov eax , 244 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetLowWaitHighEventPair ENDP ; ULONG __stdcall NtSetQuotaInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtSetQuotaInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 245 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetQuotaInformationFile ENDP ; ULONG __stdcall NtSetSecurityObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtSetSecurityObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 246 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetSecurityObject ENDP ; ULONG __stdcall NtSetSystemEnvironmentValue( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtSetSystemEnvironmentValue PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 247 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetSystemEnvironmentValue ENDP ; ULONG __stdcall NtSetSystemEnvironmentValueEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtSetSystemEnvironmentValueEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 248 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetSystemEnvironmentValueEx ENDP ; ULONG __stdcall NtSetSystemInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtSetSystemInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 249 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetSystemInformation ENDP ; ULONG __stdcall NtSetSystemPowerState( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtSetSystemPowerState PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 250 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetSystemPowerState ENDP ; ULONG __stdcall NtSetSystemTime( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtSetSystemTime PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 251 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetSystemTime ENDP ; ULONG __stdcall NtSetThreadExecutionState( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtSetThreadExecutionState PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 252 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 253 call _label_sysenter ret 28 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetTimer ENDP ; ULONG __stdcall NtSetTimerResolution( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtSetTimerResolution PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 254 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetTimerResolution ENDP ; ULONG __stdcall NtSetUuidSeed( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtSetUuidSeed PROC STDCALL arg_01:DWORD mov eax , 255 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetUuidSeed ENDP ; ULONG __stdcall NtSetValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _5_2_3790_sp0_windows_2003_NtSetValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 256 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetValueKey ENDP ; ULONG __stdcall NtSetVolumeInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtSetVolumeInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 257 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSetVolumeInformationFile ENDP ; ULONG __stdcall NtShutdownSystem( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtShutdownSystem PROC STDCALL arg_01:DWORD mov eax , 258 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtShutdownSystem ENDP ; ULONG __stdcall NtSignalAndWaitForSingleObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtSignalAndWaitForSingleObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 259 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSignalAndWaitForSingleObject ENDP ; ULONG __stdcall NtStartProfile( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtStartProfile PROC STDCALL arg_01:DWORD mov eax , 260 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtStartProfile ENDP ; ULONG __stdcall NtStopProfile( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtStopProfile PROC STDCALL arg_01:DWORD mov eax , 261 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtStopProfile ENDP ; ULONG __stdcall NtSuspendProcess( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtSuspendProcess PROC STDCALL arg_01:DWORD mov eax , 262 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSuspendProcess ENDP ; ULONG __stdcall NtSuspendThread( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtSuspendThread PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 263 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSuspendThread ENDP ; ULONG __stdcall NtSystemDebugControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _5_2_3790_sp0_windows_2003_NtSystemDebugControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 264 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtSystemDebugControl ENDP ; ULONG __stdcall NtTerminateJobObject( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtTerminateJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 265 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtTerminateJobObject ENDP ; ULONG __stdcall NtTerminateProcess( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtTerminateProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 266 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtTerminateProcess ENDP ; ULONG __stdcall NtTerminateThread( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtTerminateThread PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 267 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtTerminateThread ENDP ; ULONG __stdcall NtTestAlert( ); _5_2_3790_sp0_windows_2003_NtTestAlert PROC STDCALL mov eax , 268 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtTestAlert ENDP ; ULONG __stdcall NtTraceEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtTraceEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 269 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtTraceEvent ENDP ; ULONG __stdcall NtTranslateFilePath( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtTranslateFilePath PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 270 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtTranslateFilePath ENDP ; ULONG __stdcall NtUnloadDriver( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtUnloadDriver PROC STDCALL arg_01:DWORD mov eax , 271 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtUnloadDriver ENDP ; ULONG __stdcall NtUnloadKey( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtUnloadKey PROC STDCALL arg_01:DWORD mov eax , 272 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtUnloadKey ENDP ; ULONG __stdcall NtUnloadKey2( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtUnloadKey2 PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 273 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtUnloadKey2 ENDP ; ULONG __stdcall NtUnloadKeyEx( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtUnloadKeyEx PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 274 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtUnloadKeyEx ENDP ; ULONG __stdcall NtUnlockFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtUnlockFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 275 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtUnlockFile ENDP ; ULONG __stdcall NtUnlockVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtUnlockVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 276 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtUnlockVirtualMemory ENDP ; ULONG __stdcall NtUnmapViewOfSection( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtUnmapViewOfSection PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 277 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtUnmapViewOfSection ENDP ; ULONG __stdcall NtVdmControl( ULONG arg_01 , ULONG arg_02 ); _5_2_3790_sp0_windows_2003_NtVdmControl PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 278 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtVdmControl ENDP ; ULONG __stdcall NtWaitForDebugEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtWaitForDebugEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 279 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtWaitForDebugEvent ENDP ; ULONG __stdcall NtWaitForMultipleObjects( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtWaitForMultipleObjects PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 280 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtWaitForMultipleObjects ENDP ; ULONG __stdcall NtWaitForSingleObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtWaitForSingleObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 281 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtWaitForSingleObject ENDP ; ULONG __stdcall NtWaitHighEventPair( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtWaitHighEventPair PROC STDCALL arg_01:DWORD mov eax , 282 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtWaitHighEventPair ENDP ; ULONG __stdcall NtWaitLowEventPair( ULONG arg_01 ); _5_2_3790_sp0_windows_2003_NtWaitLowEventPair PROC STDCALL arg_01:DWORD mov eax , 283 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtWaitLowEventPair 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 ); _5_2_3790_sp0_windows_2003_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 , 284 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_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 ); _5_2_3790_sp0_windows_2003_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 , 285 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtWriteFileGather ENDP ; ULONG __stdcall NtWriteRequestData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _5_2_3790_sp0_windows_2003_NtWriteRequestData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 286 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtWriteRequestData ENDP ; ULONG __stdcall NtWriteVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _5_2_3790_sp0_windows_2003_NtWriteVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 287 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtWriteVirtualMemory ENDP ; ULONG __stdcall NtYieldExecution( ); _5_2_3790_sp0_windows_2003_NtYieldExecution PROC STDCALL mov eax , 288 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtYieldExecution ENDP ; ULONG __stdcall NtCreateKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtCreateKeyedEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 289 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtCreateKeyedEvent ENDP ; ULONG __stdcall NtOpenKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _5_2_3790_sp0_windows_2003_NtOpenKeyedEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 290 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtOpenKeyedEvent ENDP ; ULONG __stdcall NtReleaseKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtReleaseKeyedEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 291 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtReleaseKeyedEvent ENDP ; ULONG __stdcall NtWaitForKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _5_2_3790_sp0_windows_2003_NtWaitForKeyedEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 292 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtWaitForKeyedEvent ENDP ; ULONG __stdcall NtQueryPortInformationProcess( ); _5_2_3790_sp0_windows_2003_NtQueryPortInformationProcess PROC STDCALL mov eax , 293 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtQueryPortInformationProcess ENDP ; ULONG __stdcall NtGetCurrentProcessorNumber( ); _5_2_3790_sp0_windows_2003_NtGetCurrentProcessorNumber PROC STDCALL mov eax , 294 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _5_2_3790_sp0_windows_2003_NtGetCurrentProcessorNumber ENDP
legend-engine-language-pure-dsl-text/src/main/antlr4/org/finos/legend/engine/language/pure/grammar/from/antlr4/TextParserGrammar.g4
dave-wathen/legend-engine
32
2468
parser grammar TextParserGrammar; import CoreParserGrammar; options { tokenVocab = TextLexerGrammar; } // -------------------------------------- IDENTIFIER -------------------------------------- identifier: VALID_STRING | STRING | TEXT | TEXT_TYPE | TEXT_CONTENT ; // -------------------------------------- DEFINITION -------------------------------------- definition: (textElement)* EOF ; textElement: TEXT qualifiedName BRACE_OPEN (textType | textContent)* BRACE_CLOSE ; textType: TEXT_TYPE COLON identifier SEMI_COLON ; textContent: TEXT_CONTENT COLON STRING SEMI_COLON ;
data/wildPokemon/route15.asm
longlostsoul/EvoYellow
16
13520
Route15Mons: db $0F db 26,BELLSPROUT;day db 26,ODDISH db 24,MARILL db 32,PIDGEOTTO;day db 28,BELLSPROUT db 28,GLOOM db 30,WEEPINBELL;day db 30,DITTO db 27,VENONAT db 30,QUAGSIRE db $00
lab1/example_e_1.asm
0000Blaze/Microprocess
0
97279
# ORG 8000 MVI A,80 OUT 43 MVI A,12 LXI B,3456 OUT 40 MOV A,B OUT 41 MOV A,C OUT 42 HLT
src/Ninu.Emulator.Tests/Cpu/TestFiles/branches.6502.asm
jorgy343/Ninu
0
177885
<reponame>jorgy343/Ninu .include "..\..\..\Cpu\TestFiles\std.6502.asm" ; Zero page data. * = $0000 .byte $00 ; Beginning of tests. * = $c0c0 .init test1: ldx #$01 dex ; Set zero flag. bne @skip1 beq @skip1 inx jmp @skip1 * = $c0e0 @skip1: ldx #$01 dex ; Set zero flag. bne @skip2 beq @skip2 inx jmp @skip2 * = $c110 @skip2: jmp test2 * = $c1c0 test2: ldx #$01 ; clear zero flag. beq @skip1 bne @skip1 inx jmp @skip1 * = $c1e0 @skip1: ldx #$01 ; clear zero flag. beq @skip2 bne @skip2 inx jmp @skip2 * = $c210 @skip2: jmp test3 * = $c2c0 test3: sec ; set carry flag bcc @skip1 bcs @skip1 inx jmp @skip1 * = $c2e0 @skip1: sec ; set carry flag bcc @skip2 bcs @skip2 inx jmp @skip2 * = $c310 @skip2: jmp test4 * = $c3c0 test4: clc ; clear carry flag bcs @skip1 bcc @skip1 inx jmp @skip1 * = $c3e0 @skip1: clc ; clear carry flag bcs @skip2 bcc @skip2 inx jmp @skip2 * = $c410 @skip2: jmp finish finish: .done * = $fff0 rti * = $fffa nmiVector .addr $fff0 resetVector .addr $c0c0 irqVector .addr $fff0
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_interfaces_colorbalancechannel_h.ads
persan/A-gst
1
13314
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; with glib.Values; with System; -- with GStreamer.GST_Low_Level.glib_2_0_gobject_gobject_h; with glib; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_interfaces_colorbalancechannel_h is -- unsupported macro: GST_TYPE_COLOR_BALANCE_CHANNEL (gst_color_balance_channel_get_type ()) -- arg-macro: function GST_COLOR_BALANCE_CHANNEL (obj) -- return G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_COLOR_BALANCE_CHANNEL, GstColorBalanceChannel); -- arg-macro: function GST_COLOR_BALANCE_CHANNEL_CLASS (klass) -- return G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_COLOR_BALANCE_CHANNEL, GstColorBalanceChannelClass); -- arg-macro: function GST_IS_COLOR_BALANCE_CHANNEL (obj) -- return G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_COLOR_BALANCE_CHANNEL); -- arg-macro: function GST_IS_COLOR_BALANCE_CHANNEL_CLASS (klass) -- return G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_COLOR_BALANCE_CHANNEL); -- GStreamer Color Balance -- * Copyright (C) 2003 <NAME> <<EMAIL>> -- * -- * colorbalancechannel.h: individual channel object -- * -- * This library is free software; you can redistribute it and/or -- * modify it under the terms of the GNU Library General Public -- * License as published by the Free Software Foundation; either -- * version 2 of the License, or (at your option) any later version. -- * -- * This library is distributed in the hope that it will be useful, -- * but WITHOUT ANY WARRANTY; without even the implied warranty of -- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- * Library General Public License for more details. -- * -- * You should have received a copy of the GNU Library General Public -- * License along with this library; if not, write to the -- * Free Software Foundation, Inc., 59 Temple Place - Suite 330, -- * Boston, MA 02111-1307, USA. -- type GstColorBalanceChannel; --subtype GstColorBalanceChannel is u_GstColorBalanceChannel; -- gst/interfaces/colorbalancechannel.h:42 type GstColorBalanceChannelClass; type u_GstColorBalanceChannelClass_u_gst_reserved_array is array (0 .. 3) of System.Address; --subtype GstColorBalanceChannelClass is u_GstColorBalanceChannelClass; -- gst/interfaces/colorbalancechannel.h:43 --* -- * GstColorBalanceChannel: -- * @label: A string containing a descriptive name for this channel -- * @min_value: The minimum valid value for this channel. -- * @max_value: The maximum valid value for this channel. -- type GstColorBalanceChannel is record parent : aliased GLIB.Object.GObject; -- gst/interfaces/colorbalancechannel.h:52 label : access GLIB.gchar; -- gst/interfaces/colorbalancechannel.h:55 min_value : aliased GLIB.gint; -- gst/interfaces/colorbalancechannel.h:56 max_value : aliased GLIB.gint; -- gst/interfaces/colorbalancechannel.h:57 end record; pragma Convention (C_Pass_By_Copy, GstColorBalanceChannel); -- gst/interfaces/colorbalancechannel.h:51 --< public > --* -- * GstColorBalanceChannelClass: -- * @parent: the parent interface -- * @value_changed: default handler for value changed notification -- * -- * Color-balance channel class. -- type GstColorBalanceChannelClass is record parent : aliased GLIB.Object.GObject_Class; -- gst/interfaces/colorbalancechannel.h:68 value_changed : access procedure (arg1 : access GstColorBalanceChannel; arg2 : GLIB.gint); -- gst/interfaces/colorbalancechannel.h:72 u_gst_reserved : u_GstColorBalanceChannelClass_u_gst_reserved_array; -- gst/interfaces/colorbalancechannel.h:75 end record; pragma Convention (C_Pass_By_Copy, GstColorBalanceChannelClass); -- gst/interfaces/colorbalancechannel.h:67 -- signals --< private > function gst_color_balance_channel_get_type return GLIB.GType; -- gst/interfaces/colorbalancechannel.h:78 pragma Import (C, gst_color_balance_channel_get_type, "gst_color_balance_channel_get_type"); end GStreamer.GST_Low_Level.gstreamer_0_10_gst_interfaces_colorbalancechannel_h;
Ada/src/Problem_48.adb
Tim-Tom/project-euler
0
8493
with Ada.Text_IO; package body Problem_48 is package IO renames Ada.Text_IO; procedure Solve is type Unsigned is mod 2**32; function modular_pow(base, exponent, modulus : Unsigned) return Unsigned is result : Unsigned := 1; base_mod : Unsigned := base; exponent_mod : Unsigned := exponent; begin while exponent_mod > 0 loop if (exponent_mod and 1) = 1 then result := (result * base_mod) mod modulus; end if; exponent_mod := exponent_mod / 2; base_mod := (base_mod**2) mod modulus; end loop; return result; end modular_pow; sum : Unsigned := 0; begin for num in 1 .. Unsigned(1_000) loop sum := (sum + modular_pow(num, num, 1_000_000_000)) mod 1_000_000_000; end loop; IO.Put_Line(Unsigned'Image(sum)); end Solve; end Problem_48;
programs/oeis/017/A017030.asm
neoneye/loda
22
83566
<filename>programs/oeis/017/A017030.asm ; A017030: a(n) = (7*n + 4)^2. ; 16,121,324,625,1024,1521,2116,2809,3600,4489,5476,6561,7744,9025,10404,11881,13456,15129,16900,18769,20736,22801,24964,27225,29584,32041,34596,37249,40000,42849,45796,48841,51984,55225,58564,62001,65536,69169,72900,76729,80656,84681,88804,93025,97344,101761,106276,110889,115600,120409,125316,130321,135424,140625,145924,151321,156816,162409,168100,173889,179776,185761,191844,198025,204304,210681,217156,223729,230400,237169,244036,251001,258064,265225,272484,279841,287296,294849,302500,310249,318096,326041,334084,342225,350464,358801,367236,375769,384400,393129,401956,410881,419904,429025,438244,447561,456976,466489,476100,485809 mul $0,7 add $0,4 pow $0,2
script/src/main/antlr/eu/quanticol/moonlight/script/MoonLightScript.g4
clarissa-albanese/MoonLight
5
7786
grammar MoonLightScript; @header { package eu.quanticol.moonlight.script; } model: (types += scriptType)* (constants += scriptConstant)* scriptSignal scriptSpace? scriptDomain (formulas += scriptFormula)+ ; scriptConstant: 'const' name=ID '=' value=expression ';'; scriptFormula: (isDefault='default')? 'formula' name=ID ('(' parameters += variableDeclaration (',' parameters += variableDeclaration)* ')')? '=' formula=expression ';' ; variableDeclaration: type=basicType name=ID ; basicType: 'int' # integerType | 'real' # realType | 'bool' # booleanType | type=ID # referenceType ; typeElement: name=ID ; scriptType: 'type' name=ID '=' elements += typeElement ('|' elements += typeElement )* ';' ; semiringExpression : 'minmax' # minMaxSemiring | 'boolean' # booleanSemiring ; scriptDomain: 'domain' semiring=semiringExpression ';' ; scriptSignal: 'signal' '{' (signalVariables += variableDeclaration ';')+ '}' ; scriptSpace: 'space' '{' /* ('locations' '{' (locationVariables += variableDeclaration ';')+ '}')?*/ ('edges' '{' (edgeVariables += variableDeclaration ';')+ '}') '}' ; expression : '(' expression ')' # bracketExpression | '(' guard=expression '?' thenExpression = expression ':' elseExpression = expression # ifThenElseExpression | '{' expression '}' # bracketExpression | left=expression ('->') right=expression # implyExpression | left=expression ('|') right=expression # orExpression | left=expression ('&') right=expression # andExpression | left=expression 'until' (interval)? right=expression # untilExpression | left=expression 'since' (interval)? right=expression # sinceExpression | left=expression 'reach' ('(' distanceExpression=expression ')')? interval right=expression # reachExpression | 'escape' ('(' distanceExpression=expression ')')? interval argument=expression # escapeExpression | 'eventually' (interval)? argument=expression # eventuallyExpression | 'globally' (interval)? argument=expression # globallyExpression | 'once' (interval)? argument=expression # onceExpression | 'historically' (interval)? argument=expression # historicallyExpression | 'somewhere' ('(' distanceExpression=expression ')')? (interval)? argument=expression # somewhereExpression | 'everywhere' ('(' distanceExpression=expression ')')? (interval)? argument=expression # everywhereExpression | 'next' ('(' distanceExpression=expression ')')? interval argument=expression # nextExpression | left=expression op=('<'|'<='|'=<'|'=='|'>='|'=>'|'>') right=expression # relationExpression | left=expression op=('+'|'-'|'%') right=expression # sumDifExpression | left=expression op=('*'|'/') right=expression # mulDivExpression | '!' arg=expression # notExpression | name=ID ('(' (args += expression (',' args +=expression)*)? ')')? # referenceExpression | INTEGER # intExpression | REAL # realExpression | 'inf' # infinityExpression | 'true' # trueExpression | 'false' # falseExpression | op=('+'|'-') arg=expression # unaryExpression | fun=unaryMathFunction '(' argument=expression ')' # unaryMathCallExpression | fun=binaryMathFunction '(' left=expression ',' right=expression ')' # binaryMathCallExpression ; interval : '[' from=expression ',' to=expression ']' ; binaryMathFunction: 'atan2' | 'hypot' | 'max' | 'min' | 'pow' ; unaryMathFunction: 'abs' | 'acos' | 'asin' | 'atan' | 'cbrt' | 'ceil' | 'cos' | 'cosh' | 'exp' | 'expm1' | 'floor' | 'log' | 'log10' | 'log1p' | 'signum' | 'sin' | 'sinh' | 'sqrt' | 'tan' ; fragment DIGIT : [0-9]; fragment LETTER : [a-zA-Z_]; ID : LETTER (DIGIT|LETTER)*; INTEGER : DIGIT+; REAL : ((DIGIT* '.' DIGIT+)|DIGIT+ '.')(('E'|'e')('-')?DIGIT+)?; COMMENT : '/*' .*? '*/' -> channel(HIDDEN) // match anything between /* and */ ; WS : [ \r\t\u000C\n]+ -> channel(HIDDEN) ;
Mips Exersice/mips3.asm
Pandula1234/Machine-Instructions
0
92749
.text li $t0,50 li $t1,10 Sub $t2, $t0,$t1 .data
Sem-4/COA LAB Programs/Lab7Obj.asm
rituraj-iter/ASSIGNMENTS
10
21442
org 100h mov ax,1000h mov ds,ax mov al,[3000h] ror al,4 mov [3001h],al hlt
LM/Aula5/Atividades/ex1.asm
Kw-Vinicius/Linguagem-de-Montagem-
0
89409
; 1.) Escreva um programa em Assembly que determine a possibilidade ou obrigatoriedade ; de voto de acordo com a idade do eleitor: ; idade<16 O cidadão não pode votar! ; Idade>=16 ou idade>=70 O voto é facultativo. ; Idade>=18 e idade<70 O cidadão é obrigado a votar. ; <NAME> SECTION .data idade: db 71 ;idade aleatória escolhida op1: db 'O cidadão não pode votar! ',10 ; len = 32 op2: db 'O voto é facultativo. ',10 op3: db 'O cidadão é obrigado a votar.',10 SECTION .text global _start _start: mov al,[idade] ;al recebe conteudo de idade cmp al,16 ;comparando al com 16 jb menor_16 ;Se for menor(jump below) que 16 então da um jump para 'menor_16', caso contrário continua o código cmp al,18 ;compara al com 18 jb facutativo ; Se al menor que 18 vai para facutativo, como ja foi testado menor que 16 não tem perigo de cair em caso de menor de 16 anos podendo votar cmp al,70 ;comparando al com 70 ja facutativo ; Se al maior que 70 também é facutativo mov ecx,op3 ; Se não é maior que 70 ou menor que 18, só restou ser entre 70 e 18, ou seja, obrigatório o voto jmp fim ; Vai direto pro fim para nao entrar nas condicionais menor_16: mov ecx,op1 ; Entrou na condição menor que 16, ecx recebe msg 'Não pode votar' jmp fim ; Vai direto pro fim para nao entrar nas condicionais facutativo: ; OU idade>70 OU 16>= idade < 18 mov ecx,op2 ; Move para ecx a msg 'Voto facutativo' jmp fim ; Vai direto pro fim para nao entrar nas condicionais fim: mov edx,32 ;Move o tamanho das strings = 32 mov eax,4 ;Configurando para printar na tela mov ebx,1 ;Configurando para printar na tela int 80h ;Chama a interrupção mov eax,1 ;Encerra o programa int 80h ;Encerra o programa
src/main/fragment/mos6502-common/pwuc1_derefidx_vbuyy=pwuc2_derefidx_vbuxx.asm
jbrandwood/kickc
2
101179
lda {c2},x sta {c1},y lda {c2}+1,x sta {c1}+1,y
oeis/323/A323129.asm
neoneye/loda-programs
11
22459
; A323129: a(1) = 1, and for any n > 1, let p be the greatest prime factor of n, and e be its exponent, then a(n) = p^a(e). ; 1,2,3,4,5,3,7,8,9,5,11,3,13,7,5,16,17,9,19,5,7,11,23,3,25,13,27,7,29,5,31,32,11,17,7,9,37,19,13,5,41,7,43,11,5,23,47,3,49,25,17,13,53,27,11,7,19,29,59,5,61,31,7,8,13,11,67,17,23,7,71,9,73 seq $0,53585 ; If n = p_1^e_1 * ... * p_k^e_k, p_1 < ... < p_k primes, then a(n) = p_k^e_k. add $1,$0 lpb $1 mov $0,$1 dif $1,8 lpe
infra/axiom/src/main/antlr4/com/evolveum/axiom/lang/antlr/Axiom.g4
martin-lizner/prism
0
6006
grammar Axiom; SEMICOLON : ';'; LEFT_BRACE : '{'; RIGHT_BRACE : '}'; COLON : ':'; PLUS : '+'; LINE_COMMENT : [ \n\r\t]* ('//' (~[\r\n]*)) [ \n\r\t]* -> skip; SEP: [ \n\r\t]+; IDENTIFIER : [a-zA-Z_][a-zA-Z0-9_\-]*; fragment SQOUTE : '\''; fragment DQOUTE : '"'; fragment ESC : '\\'; STRING_SINGLEQUOTE: SQOUTE ((ESC SQOUTE) | ~[\n'])* SQOUTE; STRING_DOUBLEQUOTE: DQOUTE ((ESC DQOUTE) | ~[\n"])* DQOUTE; STRING_MULTILINE_START: '"""' ('\r')? '\n'; //statement : SEP* identifier SEP* (argument)? SEP* (SEMICOLON | LEFT_BRACE SEP* (statement)* SEP* RIGHT_BRACE SEP*) SEP*; itemName: infraName | dataName; dataName: prefixedName; infraName: '@' prefixedName; file: SEP* item SEP* EOF; item: itemName itemValue; itemValue: (SEP+ argument)? SEP* (SEMICOLON | LEFT_BRACE SEP* (item SEP*)* RIGHT_BRACE); prefixedName : (prefix COLON)? localName; prefix : IDENTIFIER; localName : IDENTIFIER; argument : prefixedName | string; string : singleQuoteString | doubleQuoteString | multilineString; singleQuoteString : STRING_SINGLEQUOTE; doubleQuoteString : STRING_DOUBLEQUOTE; multilineString: STRING_MULTILINE_START (~('"""'))*'"""'; path: pathComponent ( '/' pathComponent)*; pathComponent: itemName (pathValue)?; pathDataItem: prefixedName; pathInfraItem: '@' prefixedName; pathValue: '[' argument ']';
c-vs-asm/build/04-for.asm
willbr/gameboy-tests
0
12193
<reponame>willbr/gameboy-tests<filename>c-vs-asm/build/04-for.asm ;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 4.0.0 #11528 (MINGW64) ;-------------------------------------------------------- ; MODULE 04_for .optsdcc -mgbz80 ; Generated using the rgbds tokens. ; We have to define these here as sdcc doesn't make them global by default GLOBAL __mulschar GLOBAL __muluchar GLOBAL __mulint GLOBAL __divschar GLOBAL __divuchar GLOBAL __divsint GLOBAL __divuint GLOBAL __modschar GLOBAL __moduchar GLOBAL __modsint GLOBAL __moduint GLOBAL __mullong GLOBAL __modslong GLOBAL __divslong GLOBAL banked_call GLOBAL banked_ret ;-------------------------------------------------------- ; Public variables in this module ;-------------------------------------------------------- GLOBAL _variable ;-------------------------------------------------------- ; special function registers ;-------------------------------------------------------- ;-------------------------------------------------------- ; ram data ;-------------------------------------------------------- SECTION "src/04-for.c_DATA",BSS ;-------------------------------------------------------- ; absolute external ram data ;-------------------------------------------------------- SECTION "DABS (ABS)",CODE ;-------------------------------------------------------- ; global & static initialisations ;-------------------------------------------------------- SECTION "HOME",CODE SECTION "GSINIT",CODE SECTION "GSFINAL",CODE SECTION "GSINIT",CODE ;-------------------------------------------------------- ; Home ;-------------------------------------------------------- SECTION "src/04-for.c_HOME",HOME SECTION "src/04-for.c_HOME",HOME ;-------------------------------------------------------- ; code ;-------------------------------------------------------- SECTION "src/04-for.c_CODE",CODE ;src/04-for.c:3: void variable(void) ; --------------------------------- ; Function variable ; --------------------------------- _variable:: ;src/04-for.c:6: for (i = 0; i < 10; ++i) { xor a, a .l00106: .l00107: .l00108: .l00109: .l00110: .l00102: ;src/04-for.c:7: j = i; ld hl, _j ld [hl], a .l00103: ;src/04-for.c:6: for (i = 0; i < 10; ++i) { inc a cp a, $0A jp C, .l00102 .l00101: ;src/04-for.c:10: return; .l00104: ;src/04-for.c:11: } ret SECTION "src/04-for.c_CODE",CODE SECTION "CABS (ABS)",CODE
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_16904_1124.asm
ljhsiun2/medusa
9
171139
<filename>Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_16904_1124.asm .global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r9 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x131a6, %r10 nop nop nop nop cmp $39218, %rdx mov (%r10), %ebx nop nop nop cmp $37280, %rbx lea addresses_WT_ht+0x6d6d, %r9 clflush (%r9) mfence mov (%r9), %r11w nop xor $3661, %r11 lea addresses_WC_ht+0xe66d, %rsi lea addresses_WC_ht+0x5bed, %rdi nop nop nop nop nop sub $40789, %rbp mov $18, %rcx rep movsq nop lfence lea addresses_A_ht+0x1d16d, %rsi lea addresses_A_ht+0x1616d, %rdi add $21331, %rbp mov $120, %rcx rep movsw nop nop nop and $40571, %r10 lea addresses_normal_ht+0x956d, %rsi nop nop nop xor $24320, %rdx vmovups (%rsi), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $1, %xmm5, %rdi nop nop nop nop nop and $39223, %rsi lea addresses_A_ht+0x1028d, %rbp nop nop nop nop nop and %r10, %r10 mov (%rbp), %ebx nop xor $25886, %rdx lea addresses_UC_ht+0x1b56d, %r10 dec %r9 movw $0x6162, (%r10) nop nop sub $30421, %rdx lea addresses_WC_ht+0x304d, %rbx clflush (%rbx) nop nop nop nop nop inc %rcx movl $0x61626364, (%rbx) and $28088, %r10 lea addresses_D_ht+0x156d, %rsi nop add $62974, %rcx movups (%rsi), %xmm1 vpextrq $1, %xmm1, %r9 nop sub $27503, %rcx lea addresses_WT_ht+0xb40e, %rbx cmp %rsi, %rsi movb $0x61, (%rbx) nop nop nop nop nop sub %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r9 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi // Load lea addresses_UC+0x1c16d, %rbx nop nop nop nop nop dec %r13 movups (%rbx), %xmm3 vpextrq $1, %xmm3, %rax nop nop xor $6451, %r13 // Store lea addresses_UC+0x8f0d, %r12 nop nop nop nop and $923, %r9 mov $0x5152535455565758, %rdi movq %rdi, %xmm6 vmovups %ymm6, (%r12) nop sub $64646, %rdx // Store mov $0xa23, %rax nop nop add %r13, %r13 movw $0x5152, (%rax) and %rdx, %rdx // REPMOV lea addresses_UC+0xf2ed, %rsi lea addresses_D+0xf2db, %rdi clflush (%rsi) nop nop nop nop add %rax, %rax mov $44, %rcx rep movsw xor $29085, %r13 // Faulty Load lea addresses_RW+0x1496d, %r9 cmp $28570, %r12 mov (%r9), %rsi lea oracles, %r9 and $0xff, %rsi shlq $12, %rsi mov (%r9,%rsi,1), %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_RW', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC', 'same': False, 'size': 16, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_UC', 'same': False, 'size': 32, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_P', 'same': False, 'size': 2, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D', 'congruent': 1, 'same': False}, 'OP': 'REPM'} [Faulty Load] {'src': {'type': 'addresses_RW', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': True}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 32, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 4, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 16, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT_ht', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'32': 16904} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
libsrc/_DEVELOPMENT/font/fzx/fonts/kk/_ff_kk_MontereyBLatin1.asm
jpoikela/z88dk
640
18776
<reponame>jpoikela/z88dk SECTION rodata_font SECTION rodata_font_fzx PUBLIC _ff_kk_MontereyBLatin1 _ff_kk_MontereyBLatin1: BINARY "font/fzx/fonts/kk/MontereyB_Latin1.fzx"
copper_fade.asm
DW0RKiN/Copper-Fade
1
102687
; ZX Spectrum Compo #10 ; ver 1.2 ; command line: pasmo -d copper_fade.asm copper_fade.bin copy_image equ 0 enable_int equ 1 fast equ 0 ; 0..3 progStart equ $C400 ; 50176 screenStart equ $C500 if copy_image org screenStart INCBIN z80asm.bin endif org progStart if copy_image ; copy image on screen LD BC,192*32 ; 3 6144 LD DE,$4000 ; 3 LD HL,screenStart ; 3 LDIR ; 2 call START ; 3 ret ; 1 endif ; ---------------------------------------------- copy_line: push AF pop DE push DE bit 6, H ; $3F = zero flag jr nz, no_clear ; clear screen ; HL = $3FFF -> $4020, DE = $401F, BC = $0020 ; or HL = $3??F -> $3?3F, DE = $3??F, B = $01..$08, C = $3F ; or HL = $3??F -> $3?20, DE = $3??F, BC = $0020 ld H, D ld L, C ld [HL], B ; [$4020] = $00 no_clear: lddr ; [DE--] = [HL--]; first HL = DE, BC = ????; other BC = $0020 ld C, $20 ; BC = $0020 pop HL draw: if (fast = 0) halt endif pop AF jr c, copy_line db $0E ; LD C, $FB START: xor A ; vynulovani na zacatku skokem doprostred instrukce LD C, $FB if enable_int ei ; zbytecne pokud to volam z Basicu endif ; make_stack --------------- inc A ; plus line ret z push AF ; save A and not carry is stopper ld E, A ; number of created line addresses from the bottom of the stack ld HL, $57FF ; last address if (fast = 3 ) halt endif up_screen: ld C, H if (fast = 2 ) halt endif up_char: ld H, C ld B, $08 if (fast = 1 ) halt endif up_in_char: push HL dec E jr z, draw dec H djnz up_in_char ld A, L sub $20 ld L, A jr nc, up_char jr up_screen
libsrc/stdio/sos/getk.asm
jpoikela/z88dk
640
101214
; ; S-OS (The Sentinel) Japanese OS - Stdio ; ; getk() Read key status ; ; <NAME>, 2013 ; ; ; $Id: getk.asm,v 1.3 2016-06-12 17:32:01 dom Exp $ ; SECTION code_clib PUBLIC getk PUBLIC _getk .getk ._getk call 1FD0h IF STANDARDESCAPECHARS cp 13 jr nz,not_return ld a,10 .not_return ENDIF ld l, a ld h,0 ret
Cubical/Data/SumFin/Properties.agda
dan-iel-lee/cubical
0
12973
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Data.SumFin.Properties where open import Cubical.Foundations.Equiv open import Cubical.Foundations.Isomorphism open import Cubical.Foundations.Prelude open import Cubical.Foundations.Univalence open import Cubical.Data.Empty as ⊥ import Cubical.Data.Fin as Fin open import Cubical.Data.Nat open import Cubical.Data.SumFin.Base as SumFin private variable ℓ : Level k : ℕ SumFin→Fin : Fin k → Fin.Fin k SumFin→Fin = SumFin.elim (λ {k} _ → Fin.Fin k) Fin.fzero Fin.fsuc Fin→SumFin : Fin.Fin k → Fin k Fin→SumFin = Fin.elim (λ {k} _ → Fin k) fzero fsuc Fin→SumFin-fsuc : (fk : Fin.Fin k) → Fin→SumFin (Fin.fsuc fk) ≡ fsuc (Fin→SumFin fk) Fin→SumFin-fsuc = Fin.elim-fsuc (λ {k} _ → Fin k) fzero fsuc SumFin→Fin→SumFin : (fk : Fin k) → Fin→SumFin (SumFin→Fin fk) ≡ fk SumFin→Fin→SumFin = SumFin.elim (λ fk → Fin→SumFin (SumFin→Fin fk) ≡ fk) refl λ {k} {fk} eq → Fin→SumFin (Fin.fsuc (SumFin→Fin fk)) ≡⟨ Fin→SumFin-fsuc (SumFin→Fin fk) ⟩ fsuc (Fin→SumFin (SumFin→Fin fk)) ≡⟨ cong fsuc eq ⟩ fsuc fk ∎ Fin→SumFin→Fin : (fk : Fin.Fin k) → SumFin→Fin (Fin→SumFin fk) ≡ fk Fin→SumFin→Fin = Fin.elim (λ fk → SumFin→Fin (Fin→SumFin fk) ≡ fk) refl λ {k} {fk} eq → SumFin→Fin (Fin→SumFin (Fin.fsuc fk)) ≡⟨ cong SumFin→Fin (Fin→SumFin-fsuc fk) ⟩ Fin.fsuc (SumFin→Fin (Fin→SumFin fk)) ≡⟨ cong Fin.fsuc eq ⟩ Fin.fsuc fk ∎ SumFin≃Fin : ∀ k → Fin k ≃ Fin.Fin k SumFin≃Fin _ = isoToEquiv (iso SumFin→Fin Fin→SumFin Fin→SumFin→Fin SumFin→Fin→SumFin) SumFin≡Fin : ∀ k → Fin k ≡ Fin.Fin k SumFin≡Fin k = ua (SumFin≃Fin k)
Structure/Real.agda
Lolirofle/stuff-in-agda
6
6906
<reponame>Lolirofle/stuff-in-agda module Structure.Real where import Lvl open import Data.Boolean open import Data.Boolean.Proofs import Data.Either as Either open import Functional open import Logic open import Logic.Classical open import Logic.Propositional open import Logic.Predicate open import Numeral.Natural using (ℕ) import Numeral.Natural.Relation.Order as ℕ open import Relator.Ordering open import Structure.Setoid open import Structure.Function.Ordering open import Structure.Operator.Field open import Structure.Operator.Monoid open import Structure.Operator.Group open import Structure.Operator.Proofs open import Structure.Operator.Properties open import Structure.Relator.Ordering open Structure.Relator.Ordering.Weak.Properties open import Structure.Relator.Properties open import Structure.OrderedField import Structure.OrderedField.AbsoluteValue open import Syntax.Transitivity open import Type private variable ℓ ℓ₁ ℓ₂ ℓₑ : Lvl.Level -- Theory defining the axioms of ℝ in classical logic. -- The axioms are the following: -- • An ordered field. -- • Monotone convergence. record RealTheory {R : Type{ℓ₁}} ⦃ equiv-R : Equiv{ℓₑ}(R) ⦄ (_+_ _⋅_ : R → R → R) (_≤_ : R → R → Stmt{ℓ₂}) ⦃ classical : ∀{ℓ}{P : Stmt{ℓ}} → Classical(P) ⦄ : Type{ℓ₁ Lvl.⊔ ℓ₂ Lvl.⊔ ℓₑ} where field ⦃ orderedField ⦄ : OrderedField(_+_)(_⋅_)(_≤_) open OrderedField(orderedField) public open Structure.OrderedField.AbsoluteValue(_+_)(_⋅_)(_≤_) field sup-fn : (f : ℕ → R) → ⦃ Increasing(ℕ._≤_)(_≤_)(f) ⦄ → ⦃ UpperBounded(ℕ._≤_)(_≤_)(f) ⦄ → R monotone-convergence : ∀{f} → ⦃ inc : Increasing(ℕ._≤_)(_≤_)(f) ⦄ → ⦃ bound : UpperBounded(ℕ._≤_)(_≤_)(f) ⦄ → ∃{Obj = R → ℕ}(N ↦ ∀{ε} → (ε > 𝟎) → ∀{n} → (n ℕ.> N(ε)) → (‖ f(n) − sup-fn (f) ⦃ inc ⦄ ⦃ bound ⦄ ‖ < ε)) -- TODO: Consider adding something that relates addition and multiplication so that it conform to the axioms of arithmetic and their definitions of addition and multiplication. This is so that one should be able to prove (x + x ≡ 𝐒(𝐒(𝟎)) ⋅ x) or (2.5 ⋅ x = x + x + x/2) (when 𝐒, the successor function is defined as (1 +_)) for easier to write statements. In other words: add ((1 + x) ⋅ y = x + (x ⋅ y)) as an axiom. (20201210 Is this TODO outdated?)
sw/552tests/rand_simple/t_2_stu.asm
JPShen-UWM/ThreadKraken
1
6316
<reponame>JPShen-UWM/ThreadKraken // seed 2 lbi r0, 38 // icount 0 slbi r0, 147 // icount 1 lbi r1, 211 // icount 2 slbi r1, 113 // icount 3 lbi r2, 182 // icount 4 slbi r2, 149 // icount 5 lbi r3, 41 // icount 6 slbi r3, 110 // icount 7 lbi r4, 157 // icount 8 slbi r4, 155 // icount 9 lbi r5, 65 // icount 10 slbi r5, 224 // icount 11 lbi r6, 194 // icount 12 slbi r6, 116 // icount 13 lbi r7, 101 // icount 14 slbi r7, 32 // icount 15 andni r4, r4, 1 // icount 16 stu r3, r4, 12 // icount 17 andni r3, r3, 1 // icount 18 stu r6, r3, 14 // icount 19 andni r6, r6, 1 // icount 20 stu r7, r6, 14 // icount 21 andni r2, r2, 1 // icount 22 stu r2, r2, 4 // icount 23 andni r7, r7, 1 // icount 24 stu r6, r7, 8 // icount 25 andni r2, r2, 1 // icount 26 stu r3, r2, 6 // icount 27 andni r0, r0, 1 // icount 28 stu r2, r0, 6 // icount 29 andni r0, r0, 1 // icount 30 stu r6, r0, 12 // icount 31 andni r4, r4, 1 // icount 32 stu r5, r4, 8 // icount 33 andni r2, r2, 1 // icount 34 stu r1, r2, 6 // icount 35 andni r4, r4, 1 // icount 36 stu r4, r4, 0 // icount 37 andni r4, r4, 1 // icount 38 stu r6, r4, 10 // icount 39 andni r1, r1, 1 // icount 40 stu r5, r1, 2 // icount 41 andni r2, r2, 1 // icount 42 stu r2, r2, 2 // icount 43 andni r6, r6, 1 // icount 44 stu r6, r6, 14 // icount 45 andni r0, r0, 1 // icount 46 stu r7, r0, 6 // icount 47 halt // icount 48
programs/oeis/077/A077898.asm
neoneye/loda
22
13679
; A077898: Expansion of (1 - x)^(-1)/(1 + x - 2*x^2). ; 1,0,3,-2,9,-12,31,-54,117,-224,459,-906,1825,-3636,7287,-14558,29133,-58248,116515,-233010,466041,-932060,1864143,-3728262,7456549,-14913072,29826171,-59652314,119304657,-238609284,477218599,-954437166,1908874365,-3817748696,7635497427,-15270994818,30541989673,-61083979308,122167958655,-244335917270,488671834581,-977343669120,1954687338283,-3909374676522,7818749353089,-15637498706132,31274997412311,-62549994824574,125099989649197,-250199979298344,500399958596739,-1000799917193426,2001599834386905,-4003199668773756,8006399337547567,-16012798675095078,32025597350190213,-64051194700380368,128102389400760795,-256204778801521530,512409557603043121,-1024819115206086180,2049638230412172423,-4099276460824344782,8198552921648689629,-16397105843297379192,32794211686594758451,-65588423373189516834,131176846746379033737,-262353693492758067404,524707386985516134879,-1049414773971032269686,2098829547942064539445,-4197659095884129078816,8395318191768258157707,-16790636383536516315338,33581272767073032630753,-67162545534146065261428,134325091068292130522935,-268650182136584261045790,537300364273168522091661,-1074600728546337044183240,2149201457092674088366563,-4298402914185348176733042,8596805828370696353466169,-17193611656741392706932252,34387223313482785413864591,-68774446626965570827729094,137548893253931141655458277,-275097786507862283310916464,550195573015724566621833019,-1100391146031449133243665946,2200782292062898266487331985,-4401564584125796532974663876,8803129168251593065949327847,-17606258336503186131898655598,35212516673006372263797311293,-70425033346012744527594622488,140850066692025489055189245075,-281700133384050978110378490050 add $0,2 mov $2,-2 mov $3,2 lpb $0 sub $0,1 mov $1,$2 add $3,$2 mul $3,$2 add $4,$3 lpe sub $2,$4 mul $1,$2 sub $1,4 div $1,8 mov $0,$1
solutions/52 - The Mode Code/size-20_speed-220.asm
michaelgundlach/7billionhumans
45
82082
<reponame>michaelgundlach/7billionhumans -- 7 Billion Humans (2056) -- -- 52: The Mode Code -- -- Author: tiansh -- Size: 20 -- Speed: 220 mem4 = nearest datacube a: if w == worker: mem1 = calc mem1 + 1 step w jump a endif step nw b: if mem2 > 0: step s else: step n endif if c == mem1: mem3 = calc mem3 + 1 endif if c == nothing: mem2 = calc 1 - mem2 step e endif if e != wall: jump b endif pickup mem4 write mem3 drop
ADL/drivers/stm32f334/stm32-opamp.adb
JCGobbi/Nucleo-STM32F334R8
0
16601
with STM32.SYSCFG; with Ada.Real_Time; package body STM32.OPAMP is ------------ -- Enable -- ------------ procedure Enable (This : in out Operational_Amplifier) is use Ada.Real_Time; begin -- Enable clock for the SYSCFG_COMP_OPAMP peripheral STM32.SYSCFG.Enable_SYSCFG_Clock; This.CSR.EN := True; -- Delay 5 us for OPAMP startup time. See DS9994 Rev 9 chapter 6.3.22 -- Operational amplifier characteristics. delay until Clock + Microseconds (5); end Enable; ------------- -- Disable -- ------------- procedure Disable (This : in out Operational_Amplifier) is begin This.CSR.EN := False; end Disable; ------------- -- Enabled -- ------------- function Enabled (This : Operational_Amplifier) return Boolean is begin return This.CSR.EN; end Enabled; ----------------------- -- Set_NI_Input_Mode -- ----------------------- procedure Set_NI_Input_Mode (This : in out Operational_Amplifier; Input : NI_Input_Mode) is begin This.CSR.FORCE_VP := Input = Calibration_Mode; end Set_NI_Input_Mode; ----------------------- -- Get_NI_Input_Mode -- ----------------------- function Get_NI_Input_Mode (This : Operational_Amplifier) return NI_Input_Mode is begin return NI_Input_Mode'Val (Boolean'Pos (This.CSR.FORCE_VP)); end Get_NI_Input_Mode; ----------------------- -- Set_NI_Input_Port -- ----------------------- procedure Set_NI_Input_Port (This : in out Operational_Amplifier; Input : NI_Input_Port) is begin This.CSR.VP_SEL := Input'Enum_Rep; end Set_NI_Input_Port; ----------------------- -- Get_NI_Input_Port -- ----------------------- function Get_NI_Input_Port (This : Operational_Amplifier) return NI_Input_Port is begin return NI_Input_Port'Val (This.CSR.VP_SEL); end Get_NI_Input_Port; --------------------------- -- Set_NI_Sec_Input_Port -- --------------------------- procedure Set_NI_Sec_Input_Port (This : in out Operational_Amplifier; Input : NI_Sec_Input_Port) is begin This.CSR.VPS_SEL := Input'Enum_Rep; end Set_NI_Sec_Input_Port; --------------------------- -- Get_NI_Sec_Input_Port -- --------------------------- function Get_NI_Sec_Input_Port (This : Operational_Amplifier) return NI_Sec_Input_Port is begin return NI_Sec_Input_Port'Val (This.CSR.VPS_SEL); end Get_NI_Sec_Input_Port; ---------------------- -- Set_I_Input_Port -- ---------------------- procedure Set_I_Input_Port (This : in out Operational_Amplifier; Input : I_Input_Port) is begin This.CSR.VM_SEL := Input'Enum_Rep; end Set_I_Input_Port; ---------------------- -- Get_I_Input_Port -- ---------------------- function Get_I_Input_Port (This : Operational_Amplifier) return I_Input_Port is begin return I_Input_Port'Val (This.CSR.VM_SEL); end Get_I_Input_Port; -------------------------- -- Set_I_Sec_Input_Port -- -------------------------- procedure Set_I_Sec_Input_Port (This : in out Operational_Amplifier; Input : I_Sec_Input_Port) is begin This.CSR.VMS_SEL := Input = PA5_VM1; end Set_I_Sec_Input_Port; -------------------------- -- Get_I_Sec_Input_Port -- -------------------------- function Get_I_Sec_Input_Port (This : Operational_Amplifier) return I_Sec_Input_Port is begin return I_Sec_Input_Port'Val (Boolean'Pos (This.CSR.VMS_SEL)); end Get_I_Sec_Input_Port; ------------------------ -- Set_Input_Mux_Mode -- ------------------------ procedure Set_Input_Mux_Mode (This : in out Operational_Amplifier; Input : Input_Mux_Mode) is begin This.CSR.TCM_EN := Input = Automatic; end Set_Input_Mux_Mode; ------------------------ -- Get_Input_Mux_Mode -- ------------------------ function Get_Input_Mux_Mode (This : Operational_Amplifier) return Input_Mux_Mode is begin return Input_Mux_Mode'Val (Boolean'Pos (This.CSR.TCM_EN)); end Get_Input_Mux_Mode; ----------------------- -- Set_PGA_Mode_Gain -- ----------------------- procedure Set_PGA_Mode_Gain (This : in out Operational_Amplifier; Input : PGA_Mode_Gain) is begin This.CSR.PGA_GAIN := Input'Enum_Rep; end Set_PGA_Mode_Gain; ----------------------- -- Get_PGA_Mode_Gain -- ----------------------- function Get_PGA_Mode_Gain (This : Operational_Amplifier) return PGA_Mode_Gain is begin return PGA_Mode_Gain'Val (This.CSR.PGA_GAIN); end Get_PGA_Mode_Gain; ----------------------- -- Set_User_Trimming -- ----------------------- procedure Set_User_Trimming (This : in out Operational_Amplifier; Enabled : Boolean) is begin This.CSR.USER_TRIM := Enabled; end Set_User_Trimming; ----------------------- -- Get_User_Trimming -- ----------------------- function Get_User_Trimming (This : Operational_Amplifier) return Boolean is begin return This.CSR.USER_TRIM; end Get_User_Trimming; ------------------------- -- Set_Offset_Trimming -- ------------------------- procedure Set_Offset_Trimming (This : in out Operational_Amplifier; Pair : Differential_Pair; Input : UInt5) is begin if Pair = NMOS then This.CSR.TRIMOFFSETN := Input; else This.CSR.TRIMOFFSETP := Input; end if; end Set_Offset_Trimming; ------------------------- -- Get_Offset_Trimming -- ------------------------- function Get_Offset_Trimming (This : Operational_Amplifier; Pair : Differential_Pair) return UInt5 is begin if Pair = NMOS then return This.CSR.TRIMOFFSETN; else return This.CSR.TRIMOFFSETP; end if; end Get_Offset_Trimming; --------------------- -- Configure_Opamp -- --------------------- procedure Configure_Opamp (This : in out Operational_Amplifier; Param : Init_Parameters) is begin This.CSR := (VM_SEL => Param.Input_Minus'Enum_Rep, VMS_SEL => Boolean'Val (Param.Input_Sec_Minus'Enum_Rep), VP_SEL => Param.Input_Plus'Enum_Rep, VPS_SEL => Param.Input_Sec_Plus'Enum_Rep, TCM_EN => Boolean'Val (Param.Mux_Mode'Enum_Rep), PGA_GAIN => Param.PGA_Mode'Enum_Rep, others => <>); end Configure_Opamp; -------------------------- -- Set_Calibration_Mode -- -------------------------- procedure Set_Calibration_Mode (This : in out Operational_Amplifier; Enabled : Boolean) is begin This.CSR.CALON := Enabled; end Set_Calibration_Mode; -------------------------- -- Get_Calibration_Mode -- -------------------------- function Get_Calibration_Mode (This : Operational_Amplifier) return Boolean is begin return This.CSR.CALON; end Get_Calibration_Mode; --------------------------- -- Set_Calibration_Value -- --------------------------- procedure Set_Calibration_Value (This : in out Operational_Amplifier; Input : Calibration_Value) is begin This.CSR.CALSEL := Input'Enum_Rep; end Set_Calibration_Value; --------------------------- -- Get_Calibration_Value -- --------------------------- function Get_Calibration_Value (This : Operational_Amplifier) return Calibration_Value is begin return Calibration_Value'Val (This.CSR.CALSEL); end Get_Calibration_Value; --------------- -- Calibrate -- --------------- procedure Calibrate (This : in out Operational_Amplifier) is use Ada.Real_Time; Trimoffset : UInt5 := 0; begin -- 1. Enable OPAMP by setting the OPAMPxEN bit. if not Enabled (This) then Enable (This); end if; -- 2. Enable the user offset trimming by setting the USERTRIM bit. Set_User_Trimming (This, Enabled => True); -- 3. Connect VM and VP to the internal reference voltage by setting -- the CALON bit. Set_Calibration_Mode (This, Enabled => True); -- 4. Set CALSEL to 11 (OPAMP internal reference = 0.9 x VDDA) for NMOS, -- Set CALSEL to 01 (OPAMP internal reference = 0.1 x VDDA) for PMOS. for Pair in Differential_Pair'Range loop if Pair = NMOS then Set_Calibration_Value (This, Input => VREFOPAMP_Is_90_VDDA); else Set_Calibration_Value (This, Input => VREFOPAMP_Is_10_VDDA); end if; -- 5. In a loop, increment the TRIMOFFSETN (for NMOS) or TRIMOFFSETP -- (for PMOS) value. To exit from the loop, the OUTCAL bit must be reset -- (non-inverting < inverting). -- In this case, the TRIMOFFSETN value must be stored. Set_Offset_Trimming (This, Pair => Pair, Input => Trimoffset); -- Wait the OFFTRIMmax delay timing specified in the Datasheet -- DS9994 pg. 101 = 2 ms. delay until Clock + Milliseconds (2); while Get_Output_Status_Flag (This) = NI_Greater_Then_I loop Trimoffset := Trimoffset + 1; Set_Offset_Trimming (This, Pair => Pair, Input => Trimoffset); -- Wait the OFFTRIMmax delay timing specified in the Datasheet -- DS9994 pg. 101 = 2 ms. delay until Clock + Milliseconds (2); end loop; end loop; Set_User_Trimming (This, Enabled => False); Set_Calibration_Mode (This, Enabled => False); end Calibrate; ------------------------------ -- Set_Internal_VRef_Output -- ------------------------------ procedure Set_Internal_VRef_Output (This : in out Operational_Amplifier; Input : Internal_VRef_Output) is begin This.CSR.TSTREF := Input = VRef_Is_Not_Output; end Set_Internal_VRef_Output; ------------------------------ -- Get_Internal_VRef_Output -- ------------------------------ function Get_Internal_VRef_Output (This : Operational_Amplifier) return Internal_VRef_Output is begin return Internal_VRef_Output'Val (Boolean'Pos (This.CSR.TSTREF)); end Get_Internal_VRef_Output; ---------------------------- -- Get_Output_Status_Flag -- ---------------------------- function Get_Output_Status_Flag (This : Operational_Amplifier) return Output_Status_Flag is begin return Output_Status_Flag'Val (Boolean'Pos (This.CSR.OUTCAL)); end Get_Output_Status_Flag; -------------------- -- Set_Lock_OpAmp -- -------------------- procedure Set_Lock_OpAmp (This : in out Operational_Amplifier) is begin This.CSR.LOCK := True; end Set_Lock_OpAmp; -------------------- -- Get_Lock_OpAmp -- -------------------- function Get_Lock_OpAmp (This : Operational_Amplifier) return Boolean is begin return This.CSR.LOCK; end Get_Lock_OpAmp; end STM32.OPAMP;
untested/x64/gcd_Lcm.asm
GabrielRavier/Generic-Assembly-Samples
0
21090
global _gcd global _lcm global _gcd64 global _lcm64 segment .text align=16 _gcd: test edi, edi je .return0 test esi, esi je .return0 cmp esi, edi je .returnEsi jl .bigger sub esi, edi jmp _gcd .bigger: sub edi, esi jmp _gcd .return0: xor eax, eax ret .returnEsi: mov eax, esi ret align 16 _lcm: push rbx mov ebx, esi imul ebx, edi call _gcd mov ecx, eax mov eax, ebx pop rbx cdq idiv ecx ret align 16 _gcd64: test rdi, rdi je .return0 test rsi, rsi je .return0 cmp rsi, rdi je .returnRsi jl .bigger sub rsi, rdi jmp _gcd64 .bigger: sub rdi, rsi jmp _gcd64 .return0: xor eax, eax ret .returnRsi: mov rax, rsi ret align 16 _lcm64: push rbx mov rbx, rsi imul rbx, rdi call _gcd64 mov rcx, rax mov rax, rbx cqo idiv rcx pop rbx ret
cxxreflect/windows_runtime/detail/x64_fastcall_thunk.asm
dbremner/cxxreflect
5
95118
; // Copyright <NAME> 2011 - 2013. // ; // Distributed under the Boost Software License, Version 1.0. // ; // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // ; ; cxxreflect_windows_runtime_x64_fastcall_thunk -- Thunk for invoking an x64 fastcall function. ; ; Declared in C as: ; ; int cxxreflect_windows_runtime_x64_fastcall_thunk(void const* fp, ; void const* arguments, ; void const* types, ; uint64_t count); ; ; 'fp' is the address of the function to be called. ; ; 'arguments' is a pointer to the initial element of an array of arguments. Each element is eight ; bytes in size. 'count' is the cardinality of the 'arguments' array. ; ; 'types' is a pointer to the initial element of an array of type enumerators. Each element is ; eight bytes in size. 'count' is the cardinality of the 'types' array (i.e., 'arguments' and ; 'types' have the same cardinality). Each element in the 'types' array must have one of the ; following values: ; ; 0 Integer or pointer argument ; 1 Double-precision real argument ; 2 Single-precision real argument ; ; All integer arguments should be promoted to 64-bit prior to the call. Real arguments should be ; converted to the correct type for the call. A double-precision (64-bit) real argument will occupy ; the entire slot in the arguments array. A single-precision (32-bit) real argument should be ; aligned such that its initial byte is at the beginning of its slot. ; _TEXT SEGMENT $fp = 0 ; copied from rcx $arguments = 8 ; copied from rdx $types = 16 ; copied from r8 $count = 24 ; copied from r9 cxxreflect_windows_runtime_x64_fastcall_thunk PROC FRAME ; Save nonvolatile registers that are used in this function: push rbp .pushreg rbp push r12 .pushreg r12 push r13 .pushreg r13 push r14 .pushreg r14 ; We don't actually use r15, but the frame offset must be a multiple of 16. push r15 .pushreg r15 ; Initialize rbp as the frame pointer; it points to the spill space for the initial argument ('fp'): lea rbp, [rsp + 48] .setframe rbp, 48 .endprolog ; Compute the size of the arguments frame for the call and sufficiently enlarge the stack: mov rax, r9 shl rax, 3 sub rsp, rax ; Copy the function arguments into the spill space: mov QWORD PTR $fp [rbp], rcx mov QWORD PTR $arguments[rbp], rdx mov QWORD PTR $types [rbp], r8 mov QWORD PTR $count [rbp], r9 ; These are our four loop variables, stored in r10-r13: mov r10, QWORD PTR $count [rbp] ; Number of remaining arguments xor r11, r11 ; Number of processed arguments mov r12, QWORD PTR $arguments[rbp] ; Pointer to the current argument mov r13, QWORD PTR $types [rbp] ; Pointer to the current type ArgumentLoopBegin: ; Test to see if the end of the loop has been reached. If it has, break out of the loop: test r10, r10 jz ArgumentLoopEnd ; Up to four arguments get enregistered; if this is a later argument, place it on the stack: mov rax, 4 cmp r11, rax jge EmplaceArgumentOnStack ; If this is an integer argument, enregister it into one of the integer registers: mov rax, QWORD PTR [r13] test rax, rax jz EnregisterIntegerArgument ; If this is a double-precision real argument, enregister it into one of the real registers: dec rax test rax, rax jz EnregisterDoubleArgument ; Otherwise, this is a single-precision real argument... ; ; Single-precision real argument enregistration ; EnregisterSingleArgument: ; Compute the register into which this argument is to be placed and enregister the argument: mov rax, 0 cmp rax, r11 je EnregisterSingleArgumentIntoXmm0 mov rax, 1 cmp rax, r11 je EnregisterSingleArgumentIntoXmm1 mov rax, 2 cmp rax, r11 je EnregisterSingleArgumentIntoXmm2 ; Otherwise, this must be the fourth argument: jmp EnregisterSingleArgumentIntoXmm3 EnregisterSingleArgumentIntoXmm0: movss xmm0, DWORD PTR [r12] jmp ContinueWithNextArgument EnregisterSingleArgumentIntoXmm1: movss xmm1, DWORD PTR [r12] jmp ContinueWithNextArgument EnregisterSingleArgumentIntoXmm2: movss xmm2, DWORD PTR [r12] jmp ContinueWithNextArgument EnregisterSingleArgumentIntoXmm3: movss xmm3, DWORD PTR [r12] jmp ContinueWithNextArgument ; ; Double-precision real argument enregistration ; EnregisterDoubleArgument: ; Compute the register into which this argument is to be placed and enregister the argument: mov rax, 0 cmp rax, r11 je EnregisterDoubleArgumentIntoXmm0 mov rax, 1 cmp rax, r11 je EnregisterDoubleArgumentIntoXmm1 mov rax, 2 cmp rax, r11 je EnregisterDoubleArgumentIntoXmm2 ; Otherwise, this must be the fourth argument: jmp EnregisterDoubleArgumentIntoXmm3 EnregisterDoubleArgumentIntoXmm0: movsd xmm0, QWORD PTR [r12] jmp ContinueWithNextArgument EnregisterDoubleArgumentIntoXmm1: movsd xmm1, QWORD PTR [r12] jmp ContinueWithNextArgument EnregisterDoubleArgumentIntoXmm2: movsd xmm2, QWORD PTR [r12] jmp ContinueWithNextArgument EnregisterDoubleArgumentIntoXmm3: movsd xmm3, QWORD PTR [r12] jmp ContinueWithNextArgument ; ; Integer argument enregistration ; EnregisterIntegerArgument: ; Compute the register into which this argument is to be placed and enregister the argument: mov rax, 0 cmp rax, r11 je EnregisterIntegerArgumentIntoRCX mov rax, 1 cmp rax, r11 je EnregisterIntegerArgumentIntoRDX mov rax, 2 cmp rax, r11 je EnregsiterIntegerArgumentIntoR8 ; Otherwise, this must be the fourth argument: jmp EnregisterIntegerArgumentIntoR9 EnregisterIntegerArgumentIntoRCX: mov rcx, QWORD PTR [r12] jmp ContinueWithNextArgument EnregisterIntegerArgumentIntoRDX: mov rdx, QWORD PTR [r12] jmp ContinueWithNextArgument EnregsiterIntegerArgumentIntoR8: mov r8, QWORD PTR [r12] jmp ContinueWithNextArgument EnregisterIntegerArgumentIntoR9: mov r9, QWORD PTR [r12] jmp ContinueWithNextArgument ; ; Stack argument emplacement ; EmplaceArgumentOnStack: ; Compute the offset of this argument using its offset into the 'arguments' array: mov rax, r12 mov r14, $arguments[rbp] sub rax, r14 add rax, rsp ; Emplace the argument into the correct position on the stack: mov r14, QWORD PTR [r12] mov QWORD PTR [rax], r14 ContinueWithNextArgument: ; Update for the next iteration dec r10 inc r11 add r12, 8 ; Move to the next element in the 'arguments' array add r13, 8 ; Move to the next element in the 'types' array jmp ArgumentLoopBegin ArgumentLoopEnd: ; Call the function: mov rax, QWORD PTR $fp[rbp] call rax ; Pop the arguments from the stack: mov r10, QWORD PTR $count[rbp] shl r10, 3 add rsp, r10 ; Restore nonvolatile registers that are used in this function: pop r15 pop r14 pop r13 pop r12 ; Restore the frame pointer: pop rbp ; Balance has been returned to the stack. Return: ret 0 cxxreflect_windows_runtime_x64_fastcall_thunk ENDP _TEXT ENDS END
src/dnscatcher/dns/dnscatcher-dns.ads
DNSCatcher/DNSCatcher
4
22441
-- Copyright 2019 <NAME> <<EMAIL>> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to -- deal in the Software without restriction, including without limitation the -- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -- sell copies of the Software, and to permit persons to whom the Software is -- furnished to do so, subject to the following conditions: -- -- The above copyright notice and this permission notice shall be included in -- all copies or substantial portions of the Software. -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -- THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -- DEALINGS IN THE SOFTWARE. -- @summary -- The DNS subpackage covers all basic functionality in regards to handling the -- DNS wire protocol. -- -- @description -- Included in this package are the following bits of information: -- -- - Mapping of RRTypes and Classes to/from Integers - DNS client -- implementation - DNS server implementation - RData processor and encoder - -- Packet processor (including handling DNS compression) - Other constants and -- constraints included by DNS -- package DNSCatcher.DNS is -- IANA defined RRTypes. type RR_Types is (A, -- An IPv4 Address NS, -- Reference to another nameserver (encoded as a domain name) MD, -- Mail Destination - Obsolete (RFC 973) MF, -- Mail Forwarder - Obsolete CNAME, -- Canonical Name Record - Alias of of domain name to another SOA, -- Start of Authority - Defines the authoritative information of a DNS zone MB, -- Mailbox Domain Name - Obsolete (RFC883) MG, -- Mail Group Member - Obsolete (RFC883) MR, -- Mail Rename Domain - Obsolete (RFC883) DNS_NULL, -- NULL RRType - Called DNS_NULL due to keyword conflict in Ada WKS, -- Well Known Service - Obsolete PTR, -- Reverse lookup Information for a zone HINFO, -- Host Information MINFO, -- Mailbox or Mailing List Information MX, -- Mail eXchange TXT, -- Text Record RP, -- Responsible Person - RFC1183 AFSDB, -- AFS Database Location X25, -- X.25 PSDN address ISDN, -- ISDN address RT, -- Route Through (RFC1183) NSAP, -- for NSAP address, NSAP style A record NSAP_PTR, -- for domain name pointer, NSAP style SIG, -- security signature KEY, -- security key PX, -- X.400 mail mapping information GPOS, -- Geographical Position AAAA, -- IPv6 location LOC, -- Location Information NXT, -- Next Domain (Obsolete) EID, -- Endpoint Identifier NIMLOC, -- Nimrod Locator SRV, -- Server/Service Selection ATMA, -- ATM Address NAPTR, -- Naming Authority Pointer KX, -- Kex Exchanger CERT, -- Certificate Record A6, -- Old-style IPv6 Record DNAME, -- DNAME SINK, -- Kitchen Sink OPT, -- EDNS Special Record APL, -- APL DS, -- Delegation Signer SSHFP, -- SSH Key Fingerprint IPSECKEY, -- IPSEC Key RRSIG, -- Resource Record SIGnature NSEC, -- Next SECure DNSKEY, -- DNSSEC Public Key DHCID, -- DHCID NSEC3, -- Next SECure Version 3 NSEC3PARAM, -- NSEC3 Parameters TLSA, -- DANE Record Implementation SMIMEA, -- S/MIME Certificate Assoication HIP, -- Host Identity Protocol NINFO, -- NINFO RKEY, -- RKEY TALINK, -- Trust Anchor Link CDS, -- Child DS CDNSKEY, -- DNSKEY(s) child wants in parent DS OPENPGPKEY, -- OpenPGP Key CSYNC, -- Child-To-Parent Sync ZONEMD, -- Message Digest for DNS Zone SPF, -- SPF (RFC7208) UINFO, -- User Info (Reserved) UID, -- User Identifier (Reversed) GID, -- Group Info (Reserved) UNSPEC, -- Reversed NID, -- RFC6742 L32, -- RFC6742 L64, -- RFC6742 LP, -- RFC6742 EUI48, -- EUI-48 Address EUI64, -- EUI-64 Address TKEY, -- Transaction Key TSIG, -- Transaction Signature IXFR, -- Incremental Zone Transfer AXFR, -- Zone Transfer MAILB, -- Request for mailbox related records (MB/MG/MR) MAILA, -- Request for mail agent RRs (MD/MF) WILDCARD, -- Request for all records ("*") URI, -- URI CAA, -- Certificate Authority Restriction AVC, -- Application Visibility and Control DOA, -- Digital Object Architecture AMTRELAY, -- Automatic Multicast Tunneling Relay TA, -- DNSSEC Trust Authorities DLV -- DNSSEC Lookaside Validation ); --!pp off for RR_Types use (A => 1, NS => 2, MD => 3, MF => 4, CNAME => 5, SOA => 6, MB => 7, MG => 8, MR => 9, DNS_NULL => 10, WKS => 11, PTR => 12, HINFO => 13, MINFO => 14, MX => 15, TXT => 16, RP => 17, AFSDB => 18, X25 => 19, ISDN => 20, RT => 21, NSAP => 22, NSAP_PTR => 23, SIG => 24, KEY => 25, PX => 26, GPOS => 27, AAAA => 28, LOC => 29, NXT => 30, EID => 31, NIMLOC => 32, SRV => 33, ATMA => 34, NAPTR => 35, KX => 36, CERT => 37, A6 => 38, DNAME => 39, SINK => 40, OPT => 41, APL => 42, DS => 43, SSHFP => 44, IPSECKEY => 45, RRSIG => 46, NSEC => 47, DNSKEY => 48, DHCID => 49, NSEC3 => 50, NSEC3PARAM => 51, TLSA => 52, SMIMEA => 53, HIP => 55, NINFO => 56, RKEY => 57, TALINK => 58, CDS => 59, CDNSKEY => 60, OPENPGPKEY => 61, CSYNC => 62, ZONEMD => 63, SPF => 99, UINFO => 100, UID => 101, GID => 102, UNSPEC => 103, NID => 104, L32 => 105, L64 => 106, LP => 107, EUI48 => 108, EUI64 => 109, TKEY => 249, TSIG => 250, IXFR => 251, AXFR => 252, MAILB => 253, MAILA => 254, WILDCARD => 255, URI => 256, CAA => 257, AVC => 258, DOA => 259, AMTRELAY => 260, TA => 32768, DLV => 32769); --!pp on -- Helper function to convert RR_Type to string -- -- @value RR_Type RR_Type to convert function To_String (RR_Type : RR_Types) return String; type Classes is (INternet, -- INternet Class CS, -- CSNet Class CH, -- ChaosNet Class HS, -- Hesiod QCLASS_NONE, -- QCLASS None QCLASS_ANY -- QClass (Any) ); --!pp off for Classes use (INternet => 1, CS => 2, CH => 3, HS => 4, QCLASS_NONE => 254, QCLASS_ANY => 255); --!pp on -- Helper function to convert DNS_Classes to String -- -- @value DNS_Class Class to convert function To_String (DNS_Class : Classes) return String; -- DNS Return Codes type RCodes is (NoError, -- No Error FormErr, -- Format Error ServFail, -- Server Failure NXDomain, -- Non-Existent Domain NotImp, -- Not Implemented Refused, -- Query Refused YXDomain, -- Name Exists when it shouldn't YXRRSet, -- RRSet Exists when it shouldn't NXRRSet, -- RRSet doesn't exist and it should NotAuth, -- Server is not authoritive for zone NotZone, -- Not authorized BADVERS, -- Bad OPT version -- 16 can also be BADSIG but that's not trivial to represent BADKEY, -- Key not recognized BADTIME, -- Signature out of time window BADMODE, -- Bad TKEY Mode BADNAME, -- Duplicate key name BADALG, -- Algorithm not supported BADTRUNC, -- Bad truncation BADCOOKIE -- Bad/missing server cookie ); --!pp off for RCodes use (NoError => 0, FormErr => 1, ServFail => 2, NXDomain => 3, NotImp => 4, Refused => 5, YXDomain => 6, YXRRSet => 7, NXRRSet => 8, NotAuth => 9, NotZone => 10, BADVERS => 16, BADKEY => 17, BADTIME => 18, BADMODE => 19, BADNAME => 20, BADALG => 21, BADTRUNC => 22, BADCOOKIE => 23); --!pp on -- Casing and spelling comes directly from IANA reserved list type EDNS0_Option_Codes is (LLQ, -- Reserved (on hold) UL, -- Reserved (on hold) NSID, -- Standard (RFC5001) DAU, -- Standard (RFC6975) DHU, -- Standard (RFC6975) N3U, -- Standard (RFC6975) edns_client_subnet, -- Optional (RFC7314) EDNS_EXPIRE, -- Optional (RFC7314) COOKIE, -- Standard (RFC7873) edns_tcp_keepalive, -- Standard (RFC7828) Padding, -- Standard (RFC7830) CHAIN, -- Standard (RFC7901) edns_key_tag, -- Optional (RFC8145) EDNS_Client_Tag, -- Optional (draft) EDNS_Server_Tag, -- Optional (draft) DeviceID -- Optional (draft) ); --!pp off for EDNS0_Option_Codes use (LLQ => 1, UL => 2, NSID => 3, DAU => 5, DHU => 6, N3U => 7, edns_client_subnet => 8, EDNS_EXPIRE => 9, COOKIE => 10, edns_tcp_keepalive => 11, Padding => 12, CHAIN => 13, edns_key_tag => 14, EDNS_Client_Tag => 16, EDNS_Server_Tag => 17, DeviceID => 26946); --!pp on end DNSCatcher.DNS;
test-files/triangulo.asm
bandreghetti/SB_2018-2
0
170822
; Programa que calcula a área de um triângulo TRIANGULO: EQU 1 ; teste comentário SECTION TEXT INPUT B INPUT H LOAD B MULT H IF TRIANGULO DIV DOIS STORE R OUTPUT R STOP SECTION BSS B: SPACE H: SPACE R: SPACE SECTION DATA DOIS: CONST 0x02
notes/FOT/FOTC/UnguardedCorecursion/Alter/PropertiesI.agda
asr/fotc
11
3036
<reponame>asr/fotc ------------------------------------------------------------------------------ -- Properties of the alter list ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} {-# OPTIONS --without-K #-} module FOT.FOTC.UnguardedCorecursion.Alter.PropertiesI where open import FOT.FOTC.UnguardedCorecursion.Alter.Alter open import FOTC.Base open import FOTC.Base.List open import FOTC.Data.List open import FOTC.Data.Stream.Type open import FOTC.Relation.Binary.Bisimilarity.Type ------------------------------------------------------------------------------ -- TODO (23 December 2013). -- alter-Stream : Stream alter -- alter-Stream = Stream-coind A h refl -- where -- A : D → Set -- A xs = xs ≡ alter -- h : ∀ {xs} → A xs → ∃[ x' ] ∃[ xs' ] xs ≡ x' ∷ xs' ∧ A xs' -- h Ax = true , (false ∷ alter) , trans Ax alter-eq , {!!} -- TODO (23 December 2013). -- alter≈alter' : alter ≈ alter' -- alter≈alter' = ≈-coind B h₁ h₂ -- where -- B : D → D → Set -- B xs ys = xs ≡ xs -- h₁ : B alter alter' → ∃[ x' ] ∃[ xs' ] ∃[ ys' ] -- alter ≡ x' ∷ xs' ∧ alter' ≡ x' ∷ ys' ∧ B xs' ys' -- h₁ _ = true -- , false ∷ alter -- , map not₀ alter' -- , alter-eq -- , alter'-eq -- , refl -- h₂ : B alter alter' -- h₂ = refl
source/tasking/a-cusyqu.adb
ytomino/drake
33
5018
<filename>source/tasking/a-cusyqu.adb package body Ada.Containers.Unbounded_Synchronized_Queues is use type Implementation.Node_Access; protected body Queue is -- overriding entry Enqueue (New_Item : Queue_Interfaces.Element_Type) when True is New_Node : constant Implementation.Node_Access := new Implementation.Node'( Element => New_Item, Next => null); begin if First = null then First := New_Node; else Last.Next := New_Node; end if; Last := New_Node; Current_Length := Current_Length + 1; if Current_Length > Peak_Length then Peak_Length := Current_Length; end if; end Enqueue; -- overriding entry Dequeue (Element : out Queue_Interfaces.Element_Type) when First /= null is begin Element := First.Element; First := First.Next; if First = null then Last := null; end if; Current_Length := Current_Length - 1; end Dequeue; -- overriding function Current_Use return Count_Type is begin return Current_Length; end Current_Use; -- overriding function Peak_Use return Count_Type is begin return Peak_Length; end Peak_Use; end Queue; end Ada.Containers.Unbounded_Synchronized_Queues;
agda/Mergesort/Impl1/Correctness/Order.agda
bgbianchi/sorting
6
16984
<reponame>bgbianchi/sorting {-# OPTIONS --sized-types #-} open import Relation.Binary.Core module Mergesort.Impl1.Correctness.Order {A : Set} (_≤_ : A → A → Set) (tot≤ : Total _≤_) where open import Data.List open import Function using (_∘_) open import List.Sorted _≤_ open import Mergesort.Impl1 _≤_ tot≤ open import SList open import SOList.Lower _≤_ open import SOList.Lower.Properties _≤_ theorem-mergesort-sorted : (xs : List A) → Sorted (forget (mergesort (size A xs))) theorem-mergesort-sorted = lemma-solist-sorted ∘ mergesort ∘ (size A)
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_iy/sp1_InsertCharStruct_callee.asm
jpoikela/z88dk
640
4801
; void sp1_InsertCharStruct(struct sp1_update *u, struct sp1_cs *cs) SECTION code_clib SECTION code_temp_sp1 PUBLIC _sp1_InsertCharStruct_callee EXTERN asm_sp1_InsertCharStruct _sp1_InsertCharStruct_callee: pop af pop de pop hl push af jp asm_sp1_InsertCharStruct
programs/oeis/070/A070464.asm
neoneye/loda
22
88088
<filename>programs/oeis/070/A070464.asm ; A070464: a(n) = n^2 mod 42. ; 0,1,4,9,16,25,36,7,22,39,16,37,18,1,28,15,4,37,30,25,22,21,22,25,30,37,4,15,28,1,18,37,16,39,22,7,36,25,16,9,4,1,0,1,4,9,16,25,36,7,22,39,16,37,18,1,28,15,4,37,30,25,22,21,22,25,30,37,4,15,28,1,18,37,16,39,22,7,36,25,16,9,4,1,0,1,4,9,16,25,36,7,22,39,16,37,18,1,28,15 pow $0,2 mod $0,42
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_21829_1045.asm
ljhsiun2/medusa
9
179966
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r15 push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x12357, %rsi lea addresses_WC_ht+0x8f4b, %rdi nop nop nop nop nop add $32933, %r10 mov $60, %rcx rep movsb nop nop nop sub $41863, %r14 lea addresses_normal_ht+0x14dcb, %r15 nop nop nop cmp %rdx, %rdx movw $0x6162, (%r15) and $11673, %r15 lea addresses_D_ht+0x1c74b, %r14 nop nop nop nop nop sub %rsi, %rsi movb (%r14), %r10b nop cmp $35411, %rsi lea addresses_A_ht+0x6a7d, %rsi lea addresses_UC_ht+0x784b, %rdi cmp $57761, %r12 mov $83, %rcx rep movsq nop nop nop and $29100, %r10 pop %rsi pop %rdx pop %rdi pop %rcx pop %r15 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r8 push %r9 push %rcx push %rdx // Store lea addresses_RW+0x17f4b, %r9 clflush (%r9) nop nop dec %r13 mov $0x5152535455565758, %r11 movq %r11, %xmm6 movups %xmm6, (%r9) nop nop nop nop sub $19721, %r10 // Load mov $0xa2a, %rdx nop nop nop nop nop cmp %rcx, %rcx vmovups (%rdx), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $0, %xmm4, %r11 nop inc %rdx // Faulty Load lea addresses_A+0x1174b, %rcx nop sub %r13, %r13 movaps (%rcx), %xmm1 vpextrq $0, %xmm1, %rdx lea oracles, %r11 and $0xff, %rdx shlq $12, %rdx mov (%r11,%rdx,1), %rdx pop %rdx pop %rcx pop %r9 pop %r8 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_RW', 'congruent': 9}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_P', 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': True, 'size': 16, 'type': 'addresses_A', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'congruent': 10, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 2, 'type': 'addresses_normal_ht', 'congruent': 1}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 1, 'type': 'addresses_D_ht', 'congruent': 11}} {'dst': {'same': False, 'congruent': 7, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_A_ht'}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
dino/lcs/base/1.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
6
14444
copyright zengfr site:http://github.com/zengfr/romhack 0199F0 btst #$0, ($1,A5) 0199F6 beq $19a0a [base+ 1] 019DC0 btst #$0, ($1,A5) 019DC6 beq $19dd2 [base+ 1] 01CA0E btst #$0, ($1,A5) 01CA14 beq $1ca20 [base+ 1] 01D0E8 btst #$1, ($1,A5) 01D0EE beq $1d0f8 [base+ 1] 02AE82 btst #$0, ($1,A5) 02AE88 beq $2ae94 [base+ 1] 02AF56 btst #$0, ($1,A5) 02AF5C beq $2af68 [base+ 1] 035448 btst #$0, ($1,A5) [enemy+7C] 03544E beq $3545c [base+ 1] 093078 btst #$0, ($1,A5) 09307E beq $93088 [base+ 1] copyright zengfr site:http://github.com/zengfr/romhack
libsrc/stdio_new/general/stdio_nextarg.asm
andydansby/z88dk-mk2
1
160102
<reponame>andydansby/z88dk-mk2 ; stdio_nextarg ; 05.2008 aralbrec XLIB stdio_nextarg ; get next 16-bit parameter from a va_arg parameter list ; ; enter : hl = & top of parameter list ; exit : de = 16-bit parameter from list ; hl = hl - 2 .stdio_nextarg ld d,(hl) dec hl ld e,(hl) dec hl ret
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_959.asm
ljhsiun2/medusa
9
163682
<filename>Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_959.asm<gh_stars>1-10 .global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r8 push %rbp push %rcx push %rdx // Store lea addresses_RW+0x1d324, %rdx nop nop sub %r8, %r8 mov $0x5152535455565758, %r12 movq %r12, (%rdx) nop cmp %rdx, %rdx // Faulty Load lea addresses_normal+0x11124, %r8 sub %rbp, %rbp movb (%r8), %r12b lea oracles, %rbp and $0xff, %r12 shlq $12, %r12 mov (%rbp,%r12,1), %r12 pop %rdx pop %rcx pop %rbp pop %r8 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 7, 'size': 8, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'34': 21829} 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 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 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 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 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 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 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 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 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
test/fibonacci.asm
zephray/Dramite
4
10780
; fibonacci.asm ; ; $ nasm -v ; NASM version 2.11.08 ; $ nasm fibonacci.asm -o fibonacci.bin ; $ hexdump -C fibonacci.bin ; 00000000 66 31 db 66 b9 09 00 00 00 66 31 d2 66 b8 01 00 |f1.f.....f1.f...| ; 00000010 00 00 eb 00 66 89 da 66 89 c3 66 01 d0 66 49 66 |....f..f..f..fIf| ; 00000020 83 f9 00 75 ef f4 |...u..| ; 00000026 ; $ section .text global _start _start: xor ebx, ebx mov ecx, 0x09 xor edx, edx mov eax, 0x01 jmp loop1 loop1: mov edx, ebx mov ebx, eax add eax, edx dec ecx cmp ecx, 0x00 jne loop1 hlt
oeis/275/A275799.asm
neoneye/loda-programs
11
171851
<reponame>neoneye/loda-programs ; A275799: Number of inequivalent (modulo C_4 rotations) square n X n grids with squares coming in two colors and three squares have one of the colors. ; 1,22,140,578,1785,4612,10416,21340,40425,72010,121836,197582,308945,468328,690880,995352,1404081,1944030,2646700,3549370,4694921,6133292,7921200,10123828,12814425,16076242,20001996,24696070,30273825,36864080,44608256,53663152,64199905,76407078,90489420,106671282,125195161,146325460,170346800,197568140,228320841,262963162,301878060,345478078,394202865,448524472,508944576,576000200,650260625,732333550,822861676,922529322,1032058665,1152216828,1283811760,1427699812,1584781241,1756008290,1942380300 add $0,2 pow $0,2 seq $0,159914 ; Half the number of (n-3)-element subsets of {1,...,n} whose elements sum up to an odd value.
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/a/a74205e.ada
best08618/asylo
7
29132
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/a/a74205e.ada<gh_stars>1-10 -- A74205E.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- CHECK THAT THE ADDITIONAL OPERATIONS FOR A COMPOSITE TYPE WITH A -- COMPONENT OF A PRIVATE TYPE ARE AVAILABLE AT THE EARLIEST -- PLACE WITHIN THE IMMEDIATE SCOPE OF THE DECLARATION OF THE COMPOSITE -- TYPE AND AFTER THE FULL DECLARATION OF THE PRIVATE TYPE. -- IN PARTICULAR, CHECH FOR THE FOLLOWING : -- (1) RELATIONAL OPERATORS WITH ARRAYS OF SCALAR TYPES -- (2) EQUALITY WITH ARRAYS AND RECORDS OF LIMITED PRIVATE TYPES -- (3) LOGICAL OPERATORS WITH ARRAYS OF BOOLEAN TYPES -- (4) CATENATION WITH ARRAYS OF LIMITED PRIVATE TYPES -- (5) INITIALIZATION WITH ARRAYS AND RECORDS OF LIMITED PRIVATE TYPES -- (6) ASSIGNMENT WITH ARRAYS AND RECORDS OF LIMITED PRIVATE TYPES -- (7) SELECTED COMPONENTS WITH COMPOSITES OF PRIVATE RECORD TYPES -- (8) INDEXED COMPONENTS WITH COMPOSITES OF PRIVATE ARRAY TYPES -- (9) SLICES WITH COMPOSITES OF PRIVATE ARRAY TYPES -- (10) QUALIFICATION FOR COMPOSITES OF PRIVATE TYPES -- (11) AGGREGATES FOR ARRAYS AND RECORDS OF PRIVATES TYPES -- (12) USE OF 'SIZE FOR ARRAYS AND RECORDS OF PRIVATE TYPES -- DSJ 5/2/83 WITH REPORT ; PROCEDURE A74205E IS USE REPORT ; BEGIN TEST("A74205E", "CHECK THAT ADDITIONAL OPERATIONS FOR " & "COMPOSITE TYPES OF PRIVATE TYPES ARE " & "AVAILABLE AT THE EARLIEST PLACE AFTER THE " & "FULL DECLARATION AND IN THE IMMEDIATE " & "SCOPE OF THE COMPOSITE TYPE") ; DECLARE PACKAGE PACK1 IS TYPE LP1 IS LIMITED PRIVATE ; PACKAGE PACK_LP IS TYPE LP_ARR IS ARRAY (INTEGER RANGE <>) OF LP1 ; SUBTYPE LP_ARR2 IS LP_ARR ( 1 .. 2 ) ; SUBTYPE LP_ARR4 IS LP_ARR ( 1 .. 4 ) ; END PACK_LP ; TYPE T1 IS PRIVATE ; PACKAGE PACK2 IS TYPE ARR IS ARRAY (INTEGER RANGE <>) OF T1 ; SUBTYPE ARR2 IS ARR ( 1 .. 2 ) ; SUBTYPE ARR4 IS ARR ( 1 .. 4 ) ; END PACK2 ; TYPE T2 IS PRIVATE ; TYPE T3 IS PRIVATE ; PACKAGE PACK3 IS TYPE ARR_T2 IS ARRAY ( 1 .. 2 ) OF T2 ; TYPE ARR_T3 IS ARRAY ( 1 .. 2 ) OF T3 ; END PACK3 ; PRIVATE TYPE LP1 IS NEW BOOLEAN ; TYPE T1 IS NEW BOOLEAN ; TYPE T2 IS ARRAY ( 1 .. 2 ) OF INTEGER ; TYPE T3 IS RECORD C1 : INTEGER ; END RECORD ; END PACK1 ; PACKAGE BODY PACK1 IS PACKAGE BODY PACK_LP IS L1, L2 : LP_ARR2 := (TRUE,FALSE) ; -- LEGAL A3 : LP_ARR2 := L1 ; -- LEGAL B3 : BOOLEAN := L1 = L2 ; -- LEGAL B4 : BOOLEAN := L1 /= L2 ; -- LEGAL END PACK_LP ; PACKAGE BODY PACK2 IS A1, A2 : ARR2 := (FALSE,TRUE) ; -- LEGAL A4 : ARR2 := ARR2'(A1) ; -- LEGAL B1 : BOOLEAN := A1 < A2 ; -- LEGAL B2 : BOOLEAN := A1 >= A2 ; -- LEGAL N3 : INTEGER := A1'SIZE ; -- LEGAL PROCEDURE G1 (X : ARR2 := NOT A1) IS -- LEGAL BEGIN NULL ; END G1 ; PROCEDURE G2 (X : ARR2 := A1 AND A2) IS -- LEGAL BEGIN NULL ; END G2 ; PROCEDURE G3 (X : ARR4 := A1 & A2) IS -- LEGAL BEGIN NULL ; END G3 ; PROCEDURE G4 (X : ARR2 := (FALSE,TRUE) ) IS -- LEGAL BEGIN NULL ; END G4 ; END PACK2 ; PACKAGE BODY PACK3 IS X2 : ARR_T2 := (1=>(1,2), 2=>(3,4)) ; -- LEGAL X3 : ARR_T3 := (1=>(C1=>5), 2=>(C1=>6)) ; -- LEGAL N1 : INTEGER := X3(1).C1 ; -- LEGAL N2 : INTEGER := X2(1)(2) ; -- LEGAL N4 : T2 := X2(1)(1..2) ; -- LEGAL END PACK3 ; END PACK1 ; BEGIN NULL ; END ; RESULT ; END A74205E ;
Mac/dmgdesign.applescript
eric-erki/WebCard
1
2854
on run args set thePluginName to (item 1 of args) set theInstallerName to (item 2 of args) tell application "Finder" tell disk theInstallerName open set current view of container window to icon view set toolbar visible of container window to false set statusbar visible of container window to false set the bounds of container window to {200, 100, 712, 356} set opts to the icon view options of container window set background picture of opts to file ".background:background.png" set arrangement of opts to not arranged set icon size of opts to 80 set position of item thePluginName of container window to {100, 100} set position of item "Plugins" of container window to {300, 100} delay 5 eject end tell end tell end run
projects/batfish/src/main/antlr4/org/batfish/grammar/cisco_xr/CiscoXr_static.g4
jeffkala/batfish
0
3151
parser grammar CiscoXr_static; import CiscoXr_common; options { tokenVocab = CiscoXrLexer; } rs_address_family : ADDRESS_FAMILY ( IPV4 | IPV6 ) ( UNICAST | MULTICAST ) NEWLINE (rs_route | rs_no_route)* ; route_prefix: (prefix = IP_PREFIX | prefix6 = IPV6_PREFIX); route_nexthop : nhip = IP_ADDRESS | nhip6 = IPV6_ADDRESS | nhint = interface_name ( nhip = IP_ADDRESS | nhip6 = IPV6_ADDRESS )? ; route_properties : ( ( BFD FAST_DETECT ( ( MINIMUM_INTERVAL minimum_interval = uint_legacy ) | ( MULTIPLIER multiplier = uint_legacy ) )* ) | distance = uint_legacy | ( DESCRIPTION description = RAW_TEXT ) | PERMANENT | ( TAG tag = uint_legacy ) | ( TRACK track = variable ) )* ; rs_no_route: NO route_prefix (route_nexthop route_properties)? NEWLINE; rs_route: route_prefix route_nexthop route_properties NEWLINE; rs_vrf : VRF name = vrf_name NEWLINE ( rs_address_family | rs_route )* ; s_router_static : ROUTER STATIC NEWLINE ( rs_address_family | rs_route | rs_vrf )* ;
src/MLib/Fin/Parts/Nat/Simple.agda
bch29/agda-matrices
0
13356
<reponame>bch29/agda-matrices<filename>src/MLib/Fin/Parts/Nat/Simple.agda module MLib.Fin.Parts.Nat.Simple where open import MLib.Prelude open import MLib.Fin.Parts.Core open import MLib.Fin.Parts.Nat open Nat using (_*_; _+_; _<_) open Fin using (toℕ; fromℕ≤) open Table repl : ∀ n → ℕ → Table ℕ n repl _ = replicate -- abstract -- TODO: why does this break reduction later? sum-replicate-* : ∀ m n → sum (repl m n) ≡ m * n sum-replicate-* zero _ = ≡.refl sum-replicate-* (suc m) _ = ≡.cong₂ _+_ ≡.refl (sum-replicate-* m _) fromParts : ∀ a b → ℕ × ℕ → ℕ fromParts a b = Partsℕ.fromParts (constParts a b) fromParts³′ : ∀ a b c → ℕ × ℕ × ℕ → ℕ fromParts³′ a b c (i , j , k) = fromParts a (b * c) (i , fromParts b c (j , k)) fromParts³ : ∀ a b c → ℕ × ℕ × ℕ → ℕ fromParts³ a b c (i , j , k) = fromParts (a * b) c (fromParts a b (i , j) , k) open ≡.Reasoning abstract fromParts′-a-irrel : ∀ a k b i j → i < a → j < b → fromParts a b (i , j) ≡ fromParts (a + k) b (i , j) fromParts′-a-irrel a k b zero j p q = ≡.refl fromParts′-a-irrel (suc a) k b (suc i) j (Nat.s≤s p) q = ≡.cong₂ _+_ ≡.refl (fromParts′-a-irrel a k b i j p q) fromParts′-0 : ∀ a b i → i < a → fromParts a b (i , 0) ≡ i * b fromParts′-0 zero b i () fromParts′-0 (suc a) b zero (Nat.s≤s p) = ≡.refl fromParts′-0 (suc a) b (suc i) (Nat.s≤s p) = ≡.cong₂ _+_ ≡.refl (fromParts′-0 a b i p) lem′ : ∀ m a b i j → (m * b) + fromParts a b (i , j) ≡ fromParts (m + a) b (m + i , j) lem′ zero a b i j = ≡.refl lem′ (suc m) a b i j = begin b + m * b + fromParts a b (i , j) ≡⟨ Nat.+-assoc b _ _ ⟩ b + (m * b + fromParts a b (i , j)) ≡⟨ ≡.cong₂ _+_ ≡.refl (lem′ m a b i j) ⟩ b + fromParts (m + a) b (m + i , j) ∎ lem : ∀ a b c i k → i < a → fromParts a (b * c) (i , k) ≡ fromParts (a * b) c (i * b , k) lem zero b c i k () lem (suc a) b c zero k p = ≡.refl lem (suc a) b c (suc i) k (Nat.s≤s p) = begin (b * c) + fromParts a (b * c) (i , k) ≡⟨ ≡.cong₂ _+_ ≡.refl (lem a b c i k p) ⟩ (b * c) + fromParts (a * b) c (i * b , k) ≡⟨ lem′ b (a * b) c (i * b) k ⟩ fromParts (suc a * b) c (suc i * b , k) ∎ fromParts-assoc : ∀ {a b c} i j k → i < a → j < b → k < c → fromParts³′ a b c (i , j , k) ≡ fromParts³ a b c (i , j , k) fromParts-assoc {a} {b} {c} zero zero k p q r = ≡.refl fromParts-assoc {suc a} {suc b} {c} zero (suc j) k (Nat.s≤s p) (Nat.s≤s q) r = begin fromParts³′ (suc a) (suc b) c (0 , suc j , k) ≡⟨⟩ fromParts (suc b) c (suc j , k) ≡⟨⟩ c + fromParts b c (j , k) ≡⟨ ≡.cong₂ _+_ ≡.refl (fromParts′-a-irrel b (a * suc b) c j k q r) ⟩ c + fromParts (b + a * suc b) c (j , k) ≡⟨⟩ fromParts (suc (b + a * suc b)) c (suc j , k) ≡⟨⟩ fromParts (suc a * suc b) c (suc j , k) ≡⟨⟩ fromParts³ (suc a) (suc b) c (0 , suc j , k) ∎ fromParts-assoc {zero} {b} {c} (suc i) j k () q r fromParts-assoc {suc a} {b} {c} (suc i) zero k (Nat.s≤s p) q r = begin fromParts³′ (suc a) b c (suc i , 0 , k) ≡⟨⟩ fromParts (suc a) (b * c) (suc i , k) ≡⟨ lem (suc a) b c (suc i) k (Nat.s≤s p) ⟩ fromParts (suc a * b) c (suc i * b , k) ≡⟨ ≡.cong (λ h → fromParts (suc a * b) c (b + h , k)) (≡.sym (fromParts′-0 a b i p)) ⟩ fromParts (suc a * b) c (b + fromParts a b (i , 0) , k) ≡⟨⟩ fromParts (suc a * b) c (fromParts (suc a) b (suc i , 0) , k) ≡⟨⟩ fromParts³ (suc a) b c (suc i , 0 , k) ∎ fromParts-assoc {suc a} {zero} {c} (suc i) (suc j) k p () r fromParts-assoc {suc a} {suc b} {c} (suc i) (suc j) k (Nat.s≤s p) q r = let sb = suc b sj = suc j in begin fromParts³′ (suc a) sb c (suc i , sj , k) ≡⟨⟩ fromParts (suc a) (sb * c) (suc i , fromParts sb c (sj , k)) ≡⟨⟩ sb * c + fromParts a (sb * c) (i , c + fromParts b c (j , k)) ≡⟨⟩ sb * c + fromParts³′ a sb c (i , sj , k) ≡⟨ ≡.cong₂ _+_ ≡.refl (fromParts-assoc i sj k p q r) ⟩ sb * c + fromParts³ a sb c (i , sj , k) ≡⟨⟩ sb * c + fromParts (a * sb) c (fromParts a sb (i , sj) , k) ≡⟨ Nat.+-assoc c _ _ ⟩ c + (b * c + fromParts (a * sb) c (fromParts a sb (i , sj) , k)) ≡⟨ ≡.cong₂ _+_ ≡.refl (lem′ b (a * sb) c _ k) ⟩ c + fromParts (b + a * sb) c (b + fromParts a sb (i , sj) , k) ≡⟨⟩ fromParts (suc a * sb) c (fromParts (suc a) sb (suc i , sj) , k) ≡⟨⟩ fromParts³ (suc a) sb c (suc i , sj , k) ∎ abstract toParts-1ˡ : ∀ {b} i → i < b → Partsℕ.toParts (constParts 1 b) i ≡ (0 , i) toParts-1ˡ {b} i p with Impl.compare′ i b toParts-1ˡ {.(suc (i + k))} i p | Impl.less .i k = ≡.refl toParts-1ˡ {.m} .(m + k) p | Impl.gte m k = ⊥-elim (Nat.m+n≮m m k p) toParts-1ʳ : ∀ {a} i → i < a → Partsℕ.toParts (constParts a 1) i ≡ (i , 0) toParts-1ʳ {zero} _ () toParts-1ʳ {suc a} zero p = ≡.refl toParts-1ʳ {suc a} (suc i) (Nat.s≤s p) with Σ.≡⇒≡×≡ (toParts-1ʳ {a} i p) toParts-1ʳ {suc a} (suc i) (Nat.s≤s p) | q , r with Impl.compare′ i 0 toParts-1ʳ {suc a} (suc i) (Nat.s≤s p) | q , r | Impl.gte .0 .i = Σ.≡×≡⇒≡ (≡.cong suc q , r)
ADL/hal/hal-spi.ads
JCGobbi/Nucleo-STM32H743ZI
0
10197
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of 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. -- -- -- ------------------------------------------------------------------------------ package HAL.SPI is pragma Preelaborate; type SPI_Status is (Ok, Err_Error, Err_Timeout, Busy); type SPI_Data_Size is (Data_Size_8b, Data_Size_16b, Data_Size_32b); type SPI_Data_8b is array (Natural range <>) of UInt8; type SPI_Data_16b is array (Natural range <>) of UInt16; type SPI_Data_32b is array (Natural range <>) of UInt32; type SPI_Port is limited interface; type Any_SPI_Port is access all SPI_Port'Class; function Data_Size (This : SPI_Port) return SPI_Data_Size is abstract; procedure Transmit (This : in out SPI_Port; Data : SPI_Data_8b; Status : out SPI_Status; Timeout : Natural := 1000) is abstract with Pre'Class => Data_Size (This) = Data_Size_8b; procedure Transmit (This : in out SPI_Port; Data : SPI_Data_16b; Status : out SPI_Status; Timeout : Natural := 1000) is abstract with Pre'Class => Data_Size (This) = Data_Size_16b; procedure Transmit (This : in out SPI_Port; Data : SPI_Data_32b; Status : out SPI_Status; Timeout : Natural := 1000) is abstract with Pre'Class => Data_Size (This) = Data_Size_32b; procedure Receive (This : in out SPI_Port; Data : out SPI_Data_8b; Status : out SPI_Status; Timeout : Natural := 1000) is abstract with Pre'Class => Data_Size (This) = Data_Size_8b; procedure Receive (This : in out SPI_Port; Data : out SPI_Data_16b; Status : out SPI_Status; Timeout : Natural := 1000) is abstract with Pre'Class => Data_Size (This) = Data_Size_16b; procedure Receive (This : in out SPI_Port; Data : out SPI_Data_32b; Status : out SPI_Status; Timeout : Natural := 1000) is abstract with Pre'Class => Data_Size (This) = Data_Size_32b; end HAL.SPI;
tests/src/tests.ads
Fabien-Chouteau/usb_embedded
14
10896
with AUnit.Test_Suites; with AUnit.Test_Fixtures; with AUnit.Test_Caller; package Tests is function Get_Suite return AUnit.Test_Suites.Access_Test_Suite; private type Null_Fixture is new AUnit.Test_Fixtures.Test_Fixture with null record; package Null_Caller is new AUnit.Test_Caller (Null_Fixture); Suite : aliased AUnit.Test_Suites.Test_Suite; end Tests;
MSDOS/TASM/Hello.asm
leonhad/masm
9
100844
<filename>MSDOS/TASM/Hello.asm .MODEL SMALL .STACK 100h .DATA TimePrompt DB 'Is it after 12 noon (Y/N)?$' GoodMorningMessage DB 13,10,'Good morning, world!',13,10,'$' GoodAfternoonMessage DB 13,10,'Good afternoon, world!',13,10,'$' DefaultMessage DB 13,10,'Good day, world!',10,13,'$' .CODE start: mov ax, @DATA mov ds, ax ; set DS to point to the data segment. mov dx, OFFSET TimePrompt ; point to the time prompt. mov ah, 9 ; DOS: print string. int 21h ; display the time prompt. mov ah, 1 ; DOS: get character. int 21h ; get a single character response. or al, 20h ; force character to lower case. cmp al, 'y' ; typed Y for afternoon? je IsAfternoon cmp al, 'n' ; typed N for morning? je IsMorning mov dx, OFFSET DefaultMessage ; default greeting. jmp DisplayGreeting IsAfternoon: mov dx, OFFSET GoodAfternoonMessage ; afternoon greeting. jmp DisplayGreeting IsMorning: mov dx, OFFSET GoodMorningMessage ; before noon greeting. DisplayGreeting: mov ah, 9 ; DOS: print string. int 21h ; display the appropriate greeting. mov ah, 4ch ; DOS: terminate program. mov al, 0 ; return code will be 0. int 21h ; terminate the program. END start
programs/oeis/204/A204016.asm
neoneye/loda
22
96140
<filename>programs/oeis/204/A204016.asm ; A204016: Symmetric matrix based on f(i,j) = max{j mod i, i mod j), by antidiagonals. ; 0,1,1,1,0,1,1,2,2,1,1,2,0,2,1,1,2,3,3,2,1,1,2,3,0,3,2,1,1,2,3,4,4,3,2,1,1,2,3,4,0,4,3,2,1,1,2,3,4,5,5,4,3,2,1,1,2,3,4,5,0,5,4,3,2,1,1,2,3,4,5,6,6,5,4,3,2,1,1,2,3,4,5,6,0,6,5,4,3,2,1,1,2,3,4,5,6,7,7 lpb $0 mov $2,$0 seq $2,3983 ; Array read by antidiagonals with T(n,k) = min(n,k). add $1,$2 add $1,$2 mul $2,$1 mov $0,$2 sub $0,$1 lpe div $1,2 mov $0,$1
programs/oeis/021/A021193.asm
neoneye/loda
22
25408
<gh_stars>10-100 ; A021193: Decimal expansion of 1/189. ; 0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5 add $0,1 mov $1,10 pow $1,$0 mul $1,8 div $1,1512 mod $1,10 mov $0,$1
test/testdirs/testdir1/subdir1/someada.adb
bunyk/pss
202
3706
just a line context-2 context-1 line with match - abc context+1 context+2 bloop groop line matching 'abc' again derm germ blah 1 2 3
programs/oeis/113/A113854.asm
jmorken/loda
1
25547
; A113854: a(n) = sum(2^(A047240(i)-1), i=1..n). ; 1,3,35,99,227,2275,6371,14563,145635,407779,932067,9320675,26097891,59652323,596523235,1670265059,3817748707,38177487075,106896963811,244335917283,2443359172835,6841405683939,15637498706147,156374987061475,437849963772131,1000799917193443 mov $25,$0 mov $27,$0 add $27,1 lpb $27 clr $0,25 mov $0,$25 sub $27,1 sub $0,$27 mov $22,$0 mov $24,$0 add $24,1 lpb $24 clr $0,22 mov $0,$22 trn $24,1 sub $0,$24 mov $19,$0 mov $21,$0 add $21,1 lpb $21 mov $0,$19 trn $21,1 sub $0,$21 mov $15,$0 mov $17,2 lpb $17 mov $0,$15 sub $17,1 add $0,$17 sub $0,1 mov $11,$0 mov $13,2 lpb $13 mov $0,$11 sub $13,1 add $0,$13 trn $0,1 add $0,2 mul $0,2 mov $9,1 lpb $0 mov $4,1 mov $5,$0 sub $5,1 mov $6,$0 mov $0,1 mul $9,3 mod $6,$9 add $6,10 mov $8,2 mov $9,$6 sub $9,6 mov $2,$9 lpe add $2,$4 add $5,$2 pow $8,$5 mov $1,$8 mov $14,$13 lpb $14 mov $12,$1 sub $14,1 lpe lpe lpb $11 mov $11,0 sub $12,$1 lpe mov $1,$12 mov $18,$17 lpb $18 mov $16,$1 sub $18,1 lpe lpe lpb $15 mov $15,0 sub $16,$1 lpe mov $1,$16 div $1,512 add $20,$1 lpe add $23,$20 lpe add $26,$23 lpe mov $1,$26
programs/oeis/056/A056992.asm
karttu/loda
1
174329
<reponame>karttu/loda ; A056992: Digital roots of square numbers A000290. ; 1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4 mov $1,$0 add $0,2 mul $1,$0 mod $1,9 add $1,1
applet/aide/source/palettes/attic/aide-palette-of_types.ads
charlie5/aIDE
3
8129
<reponame>charlie5/aIDE<filename>applet/aide/source/palettes/attic/aide-palette-of_types.ads<gh_stars>1-10 with adam.a_Type, gtk.Widget; with Gtk.Button; with Gtk.Window; with Gtk.Notebook; with Gtk.Table; package aIDE.Palette.of_types is type Item is new Palette.item with private; type View is access all Item'Class; -- Forge -- function to_types_Palette --(the_Attribute : in adam.Attribute.view; --the_Class : in adam.Class.view) return View; -- Attributes -- function top_Widget (Self : in Item) return gtk.Widget.Gtk_Widget; -- Operations -- procedure show (Self : in out Item; Invoked_by : in gtk.Button.gtk_Button; Target : access adam.a_Type.view); procedure choice_is (Self : in out Item; Now : in String; package_Name : in String); procedure freshen (Self : in out Item); private use gtk.Window, gtk.Button, gtk.Notebook, Gtk.Table; type Item is new Palette.item with record Invoked_by : gtk_Button; Target : access adam.a_Type.view; recent_Table : gtk_Table; top_Notebook, all_Notebook : gtk_Notebook; Top : gtk_Window; close_Button : gtk_Button; end record; procedure build_recent_List (Self : in out Item); end aIDE.Palette.of_types;
antlr-plugin/src/test/resources/org/nemesis/antlr/v4/netbeans/v8/grammar/file/tool/HasErrors.g4
timboudreau/ANTLR4-Plugins-for-NetBeans
1
7537
grammar HasErrors; thing : item*; item : (words | number); number : ('-' Digits) # Negative | (Digits) # Positive | (Digits ('_' Digits)*) # Positive; words : Word*; Digits : DIGIT+; Word : WORD; Digits : DIGIT+; Whitespace: WHITESPACE -> channel(1); fragment DIGIT : [0-9]; fragment WHITESPACE : [ \t\r\n]+; fragment WORD : [a-zA-Z]+;
gyak/gyak1-2/mat.ads
balintsoos/LearnAda
0
27430
<reponame>balintsoos/LearnAda package Mat is function Lnko ( A, B : Positive ) return Positive; function Faktorialis( N: Natural ) return Positive; function Max2( A, B : Natural ) return Natural; function Max3( A, B, C : Natural ) return Natural; function isEven( N : Natural ) return Boolean; function signof( N : Integer ) return Integer; function powerof( X, N : Integer ) return Integer; function factorial( N : Natural ) return Natural; function digitSum( N : Natural ) return Natural; end Mat;
apple_scripts/prev.applescript
PLDaily/tmux-NeteaseMusic
2
2088
tell application "System Events" to tell process "NeteaseMusic" click menu item "Previous" of menu 1 of menu bar item "controls" of menu bar 1 end tell
ide/se/html.als
joireman/config
0
272
=surround_with_anchor <a name=%\c>%\m sur_text -select%</a> orderedlist <ol> %\i<li> Item 1... </li> %\i<li> Item 2... </li> %\i<li> Item 3... </li> </ol> datehdg(month "Month" day "Day" moabbr "Month Abbreviation" ) <a name="%(moabbr)_%(day)"></a><H3>%(month) %(day)</H3> =surround_with_underline <u>%\m sur_text -select%</u> acronym(dAcronym "Acronym" fullText "Full Text of Acronymn" ) <acronym title="%(fullText)">%(dAcronym)</acronym> newp <p> %\c </p> html4doc(dTitle "Page Title" ) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> %\S <html> <head> %\i<title>%(dTitle)</title> %\i<meta http-equiv="content-type" content="text/html;charset=utf-8"> %\S </head> %\S <body> %\c </body> </html> =surround_with_definition_list <dl> %\m sur_text -indent% </dl> bibleVerse %\L cswnote(topic "Topic" ) %\L <div class="sftw_note"> <h2>%(topic) (%\d)</h2> %\c </div> div(className "Class name" ) <div class="%(className)"> %\i%\c </div> =surround_with_list_item <li>%\m sur_text -select%</li> =surround_with_definition_list_definition <dd> %\m sur_text -indent% </dd> pagebr <!-- FORCE A PAGE BREAK --> <mbp:pagebreak /> %\S =surround_with_emphasis <em>%\m sur_text -select%</em> =surround_with_italic <i>%\m sur_text -select%</i> comment <!-- %\c --> unorderedlist <ul> %\i<li> Item 1... </li> %\i<li> Item 2... </li> %\i<li> Item 3... </li> </ul> cgennote(topic "Topic" ) %\L <div class="general_note"> <h2>%(topic) (%\d)</h2> %\c </div> =surround_with_table_data <td%\c>%\m sur_text -select%</td> =surround_with_heading_1 <h1>%\m sur_text%</h1> =surround_with_heading_2 <h2>%\m sur_text%</h2> =surround_with_heading_3 <h3>%\m sur_text%</h3> =surround_with_ordered_list <ol%\c> %\m sur_text -indent% </ol> =surround_with_heading_4 <h4>%\m sur_text%</h4> readmore(linkLoc "Link location" ) <a href="%(linkLoc)">read more</a> =surround_with_heading_5 <h5>%\m sur_text%</h5> =surround_with_heading_6 <h6>%\m sur_text%</h6> =surround_with_table_row <tr%\c> %\m sur_text% </tr> myufhh(month "Month" day "Day" moabbr "Month abbreviation" ) <a name="%(moabbr)_%(day)"></a><H3>%(month) %(day)</H3> <strong align="center"> </strong> <p> "<em> </em>" %\S %\l </p> %\l <!-- FORCE A PAGE BREAK --> <mbp:pagebreak /> %\l =surround_with_blink <blink>%\m sur_text -select%</blink> abbr(dAbbr "Abbreviation" fullName "Full name of abbreviation" ) <abbr title="%(fullName)">%(dAbbr)</abbr> =surround_with_preformatted <pre> %\m sur_text% </pre> image(URL "Image URL" altText "Alternate Text" ) <img src="%(URL)" alt="%(altText)" /> bibleref(book "Book" verse "Verse" htmlSpace "HTML Space" %20 ) <sup> [<a href="http://www.biblegateway.com/passage/?search=%(book)%(htmlSpace)%(verse)&version=NIV">NIV</a>] [<a href="http://www.biblegateway.com/passage/?search=%(book)%(htmlSpace)%(verse)&version=NASB">NASB</a>] [<a href="http://www.biblegateway.com/passage/?search=%(book)%(htmlSpace)%(verse)&version=NASB">NKJV</a>] </sup> =surround_with_unordered_list_with_li <ul> %\m sur_text -indent -begin <li> -end </li>% </ul> span(className "Class name" ) <span class="%(className)">%\c</span> chwnote(topic "Topic" ) %\L <div class="hdwr_note"> <h2>%(topic) (%\d)</h2> %\c </div> =surround_with_table <table%\c> %\m sur_text -indent% </table> alink(linkLoc "Link Location" linkText "Text for Link" ) <a href="%(linkLoc)">%(linkText)</a> cffaddon(addOnName "Add-On Name" addOnUsage "Usage" addOnNotes "Notes" ) %\i <tr> %\i %\i<td name="name">%(addOnName)</td> %\i %\i<td name="usage">%(addOnUsage)</td> %\S %\i %\i<td name="notes"> %(addOnNotes)</td> %\S %\i </tr> %\S linkcss(styleSheetFile "Stylesheet filename" ) <link rel="stylesheet" href="%(styleSheetFile)" type="text/css" /> %\S xhtmldoc(dTitle "Page Title" ) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> %\S <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> %\i<title>%(dTitle)</title> %\i<meta http-equiv="content-type" content="text/html;charset=utf-8" /> %\S <style type="text/css"> /*<![CDATA[*/ /*** CSS style specific to the current page **/ /*]]>*/ </style> %\S </head> %\S <body> %\c </body> </html> %\S =surround_with_unordered_list <ul%\c> %\m sur_text -indent% </ul> =surround_with_bold <b>%\m sur_text -select%</b> ahref(linkLoc "Link Location" linkText "Link Text" ) <a href="%(linkLoc)">%(linkText)</a> =surround_with_definition_list_term <dt>%\m sur_text%</dt> rtop <a id="retToTop" href="#top">Return to top</a> fseccontrib(contribName "Contributer name" ) (%\d : %(contribName)) pclass(className "Class Name" ) <p class="%(className)">%\c</p> =surround_with_font <font %\c>%\m sur_text%</font> llrfnote(project "Project" task "Project Task" ) <div class="llrfnote"> <h3>%(project) - %(task) (%\d)</h3> <p> %\c </p> <a href="#top">Return to Top</a> </div> %\S =surround_with_general_tag(tag "Tag" ) <%(tag)%\c>%\m sur_text%</%(tag)> =surround_with_paragraph <p>%\m sur_text%</p> =surround_with_ordered_list_with_li <ol%\c> %\m sur_text -indent -begin <li> -end </li>% </ol> =surround_with_link <a href="%\c">%\m sur_text%</a>
source/protocol/lsp-notification_dispatchers.ads
reznikmm/ada_lsp
11
24916
<reponame>reznikmm/ada_lsp -- Copyright (c) 2017 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- private with Ada.Containers.Hashed_Maps; with Ada.Streams; with League.Strings; private with League.Strings.Hash; with LSP.Message_Handlers; with LSP.Types; package LSP.Notification_Dispatchers is pragma Preelaborate; type Notification_Dispatcher is tagged limited private; type Parameter_Handler_Access is access procedure (Stream : access Ada.Streams.Root_Stream_Type'Class; Handler : not null LSP.Message_Handlers.Notification_Handler_Access); not overriding procedure Register (Self : in out Notification_Dispatcher; Method : League.Strings.Universal_String; Value : Parameter_Handler_Access); not overriding procedure Dispatch (Self : in out Notification_Dispatcher; Method : LSP.Types.LSP_String; Stream : access Ada.Streams.Root_Stream_Type'Class; Handler : not null LSP.Message_Handlers.Notification_Handler_Access); private package Maps is new Ada.Containers.Hashed_Maps (Key_Type => League.Strings.Universal_String, Element_Type => Parameter_Handler_Access, Hash => League.Strings.Hash, Equivalent_Keys => League.Strings."=", "=" => "="); type Notification_Dispatcher is tagged limited record Map : Maps.Map; Value : LSP.Message_Handlers.Notification_Handler_Access; end record; end LSP.Notification_Dispatchers;
Appl/Art/Decks/GeoDeck/CGAHeartA.asm
steakknife/pcgeos
504
170506
<gh_stars>100-1000 CGAHeartA label byte word C_BLACK Bitmap <67,41,BMC_PACKBITS,BMF_MONO> db 0xf8, 0x00 db 0xf8, 0x00 db 0x00, 0x01, 0xfb, 0x00, 0x01, 0xee, 0x00 db 0x01, 0x03, 0x80, 0xfd, 0x00, 0x02, 0x01, 0x55, 0x00 db 0x01, 0x06, 0xc0, 0xfd, 0x00, 0x02, 0x01, 0xab, 0x00 db 0x01, 0x0c, 0x60, 0xfc, 0x00, 0x01, 0xd6, 0x00 db 0x01, 0x0f, 0xe0, 0xfc, 0x00, 0x01, 0x6c, 0x00 db 0x01, 0x18, 0x30, 0xfc, 0x00, 0x01, 0x10, 0x00 db 0x01, 0x3c, 0x78, 0xfa, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xfe, 0x00, 0x02, 0x3e, 0x0f, 0x80, 0xfe, 0x00 db 0xfe, 0x00, 0x02, 0x6b, 0xba, 0xc0, 0xfe, 0x00 db 0xfe, 0x00, 0x02, 0x55, 0x55, 0x40, 0xfe, 0x00 db 0xfe, 0x00, 0x02, 0x6a, 0xaa, 0xc0, 0xfe, 0x00 db 0xfe, 0x00, 0x02, 0x35, 0x55, 0x80, 0xfe, 0x00 db 0xfe, 0x00, 0x01, 0x0e, 0xae, 0xfd, 0x00 db 0xfe, 0x00, 0x01, 0x03, 0x58, 0xfd, 0x00 db 0xfd, 0x00, 0x00, 0xe0, 0xfd, 0x00 db 0xfd, 0x00, 0x00, 0x40, 0xfd, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xfb, 0x00, 0x02, 0x03, 0xc7, 0x80 db 0x00, 0x01, 0xfc, 0x00, 0x02, 0x01, 0x83, 0x00 db 0x01, 0x06, 0xc0, 0xfc, 0x00, 0x01, 0xfe, 0x00 db 0x01, 0x0d, 0x60, 0xfc, 0x00, 0x01, 0xc6, 0x00 db 0x01, 0x1a, 0xb0, 0xfc, 0x00, 0x01, 0x6c, 0x00 db 0x01, 0x15, 0x50, 0xfc, 0x00, 0x01, 0x38, 0x00 db 0x01, 0x0e, 0xe0, 0xfc, 0x00, 0x01, 0x10, 0x00 db 0xf8, 0x00 db 0xf8, 0x00
libsrc/_DEVELOPMENT/z80/c/sdcc_iy/im2_create_generic_isr_8080.asm
meesokim/z88dk
0
240443
<filename>libsrc/_DEVELOPMENT/z80/c/sdcc_iy/im2_create_generic_isr_8080.asm ; void *im2_create_generic_isr_8080(uint8_t num_callback, void *address) SECTION code_z80 PUBLIC _im2_create_generic_isr_8080 EXTERN l_im2_create_generic_isr_8080_callee _im2_create_generic_isr_8080: pop af pop hl pop de push de push hl push af jp l_im2_create_generic_isr_8080_callee
src/grammars/org/zelo/intellij/syntax/concrete/Zelo.g4
sasquatch-mc/intellij-zelo
0
1735
<reponame>sasquatch-mc/intellij-zelo grammar Zelo; module : 'модул' qualifiedName use* declaration* ; use : 'ползва' qualifiedName ';' ; qualifiedName : NAME ('::' NAME)* ; declaration : type NAME '(' arguments? ')' '=' expression ';' | visibility type NAME '(' arguments? ')' '=' expression ';' ; arguments : argument (',' argument)* ; argument : type NAME | literal_pattern ; literal_pattern : BOOLEAN | INTEGER | FLOAT | STRING ; expression : BOOLEAN | INTEGER | FLOAT | STRING ; visibility : PUBLIC | PRIVATE ; type : TYPE_STRING | TYPE_INTEGER | TYPE_REAL | TYPE_BOOLEAN | type '[]' | '{' type ',' type '}' ; TYPE_STRING: 'низ'; TYPE_INTEGER: 'цял' | 'цяло' | 'цяла' | 'цели'; TYPE_REAL: 'реален' | 'реално' | 'реална' | 'реални'; TYPE_BOOLEAN: 'булев' | 'булево' | 'булева' | 'булеви'; PUBLIC: 'публичен' | 'публично' | 'публична' | 'публични'; PRIVATE: 'личен' | 'лично' | 'лична' | 'лични'; INTEGER: [0-9]+; FLOAT: [0-9]+ '.' [0-9]+; STRING : '"' (ESCAPE_QUOTE | ~ ["\\])* '"'; NAME: [А-Яа-я]+; BOOLEAN: 'вярно' | 'невярно'; WS: [ \t\r\n\u000C]+ -> skip; fragment ESCAPE_QUOTE : '\\' (["\\/bfnrt] | UNICODE) ; fragment UNICODE : 'u' HEX HEX HEX HEX ; fragment HEX : [0-9a-fA-F] ;
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0xca.log_3_1709.asm
ljhsiun2/medusa
9
173260
<gh_stars>1-10 .global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r15 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_WT_ht+0xe3cf, %r8 nop nop and $14214, %r10 movb (%r8), %cl nop nop nop nop sub %r11, %r11 lea addresses_WC_ht+0xc5cf, %rdi cmp $10921, %rsi vmovups (%rdi), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $0, %xmm0, %r9 nop nop dec %rcx lea addresses_WT_ht+0x101cf, %rsi lea addresses_A_ht+0x10ca9, %rdi clflush (%rsi) nop sub %r15, %r15 mov $124, %rcx rep movsw nop nop cmp $46533, %r9 lea addresses_WC_ht+0x16791, %r9 nop xor $54403, %rsi mov (%r9), %r10 sub $59542, %r10 lea addresses_A_ht+0x14bcf, %rsi lea addresses_UC_ht+0x1d0cf, %rdi nop nop cmp $28758, %r9 mov $34, %rcx rep movsw cmp $27645, %r10 lea addresses_D_ht+0x1e3cf, %r9 clflush (%r9) nop nop nop nop nop and %r15, %r15 movw $0x6162, (%r9) nop nop nop nop nop inc %r15 lea addresses_UC_ht+0x12acf, %rsi lea addresses_WC_ht+0x697, %rdi clflush (%rdi) nop nop nop and $37587, %r9 mov $11, %rcx rep movsb nop nop nop and %rcx, %rcx lea addresses_WC_ht+0x172ca, %rcx nop and $17588, %r11 movl $0x61626364, (%rcx) nop nop and $45852, %r11 pop %rsi pop %rdi pop %rcx pop %r9 pop %r8 pop %r15 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r14 push %r15 push %rbx push %rdi // Load lea addresses_A+0x10bcf, %rbx add $51715, %r11 mov (%rbx), %r12 nop nop nop nop nop cmp %r11, %r11 // Store lea addresses_US+0x14bcf, %rbx clflush (%rbx) and $54471, %r11 movw $0x5152, (%rbx) nop nop nop xor $62448, %rdi // Store lea addresses_A+0x172e3, %r15 clflush (%r15) cmp %r10, %r10 mov $0x5152535455565758, %r12 movq %r12, %xmm5 movups %xmm5, (%r15) nop inc %rdi // Faulty Load lea addresses_A+0x10bcf, %r11 nop nop nop inc %r15 movups (%r11), %xmm0 vpextrq $0, %xmm0, %r10 lea oracles, %r12 and $0xff, %r10 shlq $12, %r10 mov (%r12,%r10,1), %r10 pop %rdi pop %rbx pop %r15 pop %r14 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_US'}} {'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_A'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 16, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 8, 'AVXalign': True, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 7, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 9, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 1, 'same': True, 'type': 'addresses_A_ht'}} {'src': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_D_ht'}} {'src': {'congruent': 6, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC_ht'}} {'52': 3} 52 52 52 */