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 |
|---|---|---|---|---|
old/Homotopy/Cover/ExamplePi1Circle.agda | timjb/HoTT-Agda | 294 | 6378 | <reponame>timjb/HoTT-Agda<gh_stars>100-1000
{-# OPTIONS --without-K #-}
open import Base
open import Homotopy.Connected
{-
An example of using the overkilling covering space library.
-}
module Homotopy.Cover.ExamplePi1Circle where
open import Homotopy.Truncation
open import Homotopy.PathTruncation
open import Spaces.Circle
{-
The 1st step: Show that the circle is connected.
-}
S¹-is-conn : is-connected ⟨0⟩ S¹
S¹-is-conn = proj base ,
τ-extend ⦃ λ _ → ≡-is-set $ π₀-is-set S¹ ⦄
(S¹-rec (λ x → proj x ≡ proj base) refl
(prop-has-all-paths (π₀-is-set S¹ _ _) _ _))
open import Integers
open import Homotopy.Pointed
open import Homotopy.Cover.Def S¹
open import Homotopy.Cover.HomotopyGroupSetIsomorphism (⋆[ S¹ , base ]) S¹-is-conn
S¹-covering : covering
S¹-covering = let fiber = S¹-rec-nondep Set ℤ (eq-to-path succ-equiv) in
cov[ fiber , S¹-rec (is-set ◯ fiber) ℤ-is-set (prop-has-all-paths is-set-is-prop _ _) ]
open covering S¹-covering
{-
The 2nd step : Show that S¹ is contractible.
-}
-- One step.
trans-fiber-!loop : ∀ z → transport fiber (! loop) z ≡ pred z
trans-fiber-!loop z =
transport fiber (! loop) z
≡⟨ ! $ trans-ap (id _) fiber (! loop) z ⟩
transport (id _) (ap fiber (! loop)) z
≡⟨ ap (λ x → transport (id _) x z) $ ap-opposite fiber loop ⟩
transport (id _) (! (ap fiber loop)) z
≡⟨ ap (λ x → transport (id _) (! x) z) $ S¹-β-loop-nondep Set ℤ (eq-to-path _) ⟩
transport (id _) (! (eq-to-path succ-equiv)) z
≡⟨ trans-id-!eq-to-path _ _ ⟩∎
pred z
∎
-- The end of this function. This can save some type annotations.
loop⁻ⁿ-end : Σ S¹ fiber
loop⁻ⁿ-end = (base , O)
-- Climbing up the stairs.
loop⁻¹ : ∀ z → _≡_ {A = Σ S¹ fiber} (base , z) (base , pred z)
loop⁻¹ z = Σ-eq (! loop) (trans-fiber-!loop z)
-- Agda needs us to show the induction order explicitly,
-- and so there are so many functions.
loop⁻ⁿ : ∀ z → (base , z) ≡ loop⁻ⁿ-end
loop⁻ⁿ-pos : ∀ n → (base , pos n) ≡ loop⁻ⁿ-end
loop⁻ⁿ-neg : ∀ n → (base , neg n) ≡ loop⁻ⁿ-end
loop⁻ⁿ O = refl
loop⁻ⁿ (pos _) = loop⁻ⁿ-pos _
loop⁻ⁿ (neg _) = loop⁻ⁿ-neg _
loop⁻ⁿ-pos 0 = loop⁻¹ _
loop⁻ⁿ-pos (S _) = loop⁻¹ _ ∘ loop⁻ⁿ-pos _
loop⁻ⁿ-neg 0 = ! (loop⁻¹ _)
loop⁻ⁿ-neg (S _) = ! (loop⁻¹ _) ∘ loop⁻ⁿ-neg _
private
-- These are specialized J rules that work for this development only.
-- I am too lazy to generalize them.
lemma₁ : ∀ {x₁ x₂} (q : x₁ ≡ x₂) (f : ∀ z → (x₁ , z) ≡ loop⁻ⁿ-end) (z : fiber x₂)
→ transport (λ s → ∀ z → (s , z) ≡ loop⁻ⁿ-end) q f z
≡ Σ-eq (! q) refl ∘ f (transport fiber (! q) z)
lemma₁ refl f z = refl
lemma₂ : ∀ {b₁} {b₂} (q : b₁ ≡ b₂) p
→ transport (λ z → (base , z) ≡ loop⁻ⁿ-end) (! q) p
≡ Σ-eq refl q ∘ p
lemma₂ refl p = refl
compose-Σ-eq : ∀ {a₁} {a₂} (p : a₁ ≡ a₂)
{b₁ : fiber a₁} {b₂} (q : transport fiber p b₁ ≡ b₂)
→ Σ-eq {A = S¹} {P = fiber} p refl ∘ Σ-eq refl q ≡ Σ-eq p q
compose-Σ-eq refl q = refl
loop⁻¹-loop⁻ⁿ-pred : ∀ z → loop⁻¹ z ∘ loop⁻ⁿ (pred z) ≡ loop⁻ⁿ z
loop⁻¹-loop⁻ⁿ-pred O = opposite-right-inverse (loop⁻¹ _)
loop⁻¹-loop⁻ⁿ-pred (pos O) = refl-right-unit _
loop⁻¹-loop⁻ⁿ-pred (pos (S _)) = refl
loop⁻¹-loop⁻ⁿ-pred (neg _) =
loop⁻¹ _ ∘ (! (loop⁻¹ _) ∘ loop⁻ⁿ-neg _)
≡⟨ ! $ concat-assoc (loop⁻¹ _) (! (loop⁻¹ _)) _ ⟩
(loop⁻¹ _ ∘ ! (loop⁻¹ _)) ∘ loop⁻ⁿ-neg _
≡⟨ ap (λ x → x ∘ loop⁻ⁿ-neg _) $ opposite-right-inverse (loop⁻¹ _) ⟩∎
loop⁻ⁿ-neg _
∎
path : ∀ x z → (x , z) ≡ loop⁻ⁿ-end
path = S¹-rec (λ s → ∀ z → (s , z) ≡ loop⁻ⁿ-end) loop⁻ⁿ $ funext λ z →
transport (λ s → ∀ z → (s , z) ≡ loop⁻ⁿ-end) loop loop⁻ⁿ z
≡⟨ lemma₁ loop loop⁻ⁿ z ⟩
Σ-eq (! loop) refl ∘ loop⁻ⁿ (transport fiber (! loop) z)
≡⟨ ap (λ x → Σ-eq (! loop) refl ∘ x) $ apd! loop⁻ⁿ (trans-fiber-!loop z) ⟩
Σ-eq (! loop) refl ∘
(transport (λ z → (base , z) ≡ loop⁻ⁿ-end) (! $ trans-fiber-!loop z) (loop⁻ⁿ (pred z)))
≡⟨ ap (λ x → Σ-eq (! loop) refl ∘ x) $ lemma₂ (trans-fiber-!loop z) (loop⁻ⁿ (pred z)) ⟩
Σ-eq (! loop) refl ∘ (Σ-eq refl (trans-fiber-!loop z) ∘ loop⁻ⁿ (pred z))
≡⟨ ! $ concat-assoc (Σ-eq (! loop) refl) _ _ ⟩
(Σ-eq (! loop) refl ∘ Σ-eq refl (trans-fiber-!loop z)) ∘ loop⁻ⁿ (pred z)
≡⟨ ap (λ x → x ∘ loop⁻ⁿ (pred z)) $ compose-Σ-eq (! loop) (trans-fiber-!loop z) ⟩
loop⁻¹ z ∘ loop⁻ⁿ (pred z)
≡⟨ loop⁻¹-loop⁻ⁿ-pred z ⟩∎
loop⁻ⁿ z
∎
S¹-covering-is-universal : is-universal S¹-covering
S¹-covering-is-universal = contr-is-connected ⟨1⟩ $ loop⁻ⁿ-end , uncurry path
ℤ-π¹S¹-equiv : ℤ ≃ (base ≡₀ base)
ℤ-π¹S¹-equiv = GiveMeAPoint.fiber-a≃fg S¹-covering S¹-covering-is-universal O
|
bootsector/08-32bit/gdt.asm | wpmed92/os-adventures | 1 | 2160 | ;Setting up the Global Descriptor Table (GDT) to enable segmentation in 32-bit mode
;Instead of the 16-bit style segmentation, where the segment register is shifted left 4 and then the address is added to that,
;we will load an index to this GDT into the segment register, and the segment selector will load the proper
;base address, and calculate the absolute address based on that
;each segment descriptor is 8 bytes long
;the first one is set to all zero
gdt_start: ;8 null bytes as starting point of GDT
dd 0
dd 0
;Setting up code segment
;Very useful link is https://wiki.osdev.org/Global_Descriptor_Table
;In our bootsector both the data segment and code segment will span the same address space
gdt_data:
dw 0xffff ;first part of limit = how long is our segment
dw 0 ;*base address, 16-31 bit, let's set it to 0x00000000
db 0 ;*base address, 32-39 bit
;Access Byte
;7 6 5 4 3 2 1 0
;P DPL S E DC RW A
db 10010010b;access byte -> ring 0, non-system segment, not executable, segment grows up, writeable, accessed bit zero
;Flags
;3 2 1 0
;G DB L Reserved
db 11001111b;flags -> byte granularity (segment is in one-byte blocks), 32-bit protected mode segment, 32-bit long segment, 1111 at end are limit bits
db 0 ;*base address, 56-63 bit
;code segment, copy of gdt_data, difference is in access byte
gdt_code:
dw 0xffff
dw 0
db 0
;Access Byte
;7 6 5 4 3 2 1 0
;P DPL S E DC RW A
db 10011010b ;access byte -> ring 0, non-system segment, !executable! (code), segment grows up, readable, accessed bit zero
db 11001111b ;flags
db 0 ;*base address, 56-63 bit
gdt_end:
gdt_meta_descriptor:
dw gdt_end - gdt_start - 1 ;16bit size of gdt
dd gdt_start ;32bit address of gdt entry point
CODE_SEG equ gdt_code - gdt_start
DATA_SEG equ gdt_data - gdt_start
|
ejercicios5/prueba_obtener_num_vecinos_por_vivienda.adb | iyan22/AprendeAda | 0 | 14995 | with Lab10_02, Ada.Text_IO;
use Lab10_02, Ada.Text_IO;
procedure Prueba_Obtener_Num_Vecinos_Por_Vivienda is
Bloque1: constant T_Comunidad(1..10) :=
((('J','o','n',others=>' '),1,'A'),
(('A','i','o','r','a', others=>' '),3,'B'),
(('K','o','l','d','o', others=>' '),2,'A'),
(('M','i','r','e','n', others=>' '),2,'A'),
(('M','i','r','e','i','a',others=>' '),1,'A'),
(('I','k','e','r', others=>' '),2,'A'),
(('A','r','i','t','z', others=>' '),2,'A'),
(('A','n','e', others=>' '),2,'A'),
(('L','e','i','r','e', others=>' '),3,'A'),
(('L','o','l','a', others=>' '),1,'C'));
Res1: constant T_Rascacielos :=
(1=>('A'=>2, 'C'=>1, others=>0),
2=>('A'=>5, others=>0),
3=>('A'..'B'=>1, others=>0),
others=>(others=>0));
Bloque2: constant T_Comunidad(1..20) := (
(('J','o','n', others=>' '),1,'A'),
(('A','i','o','r','a', others=>' '),3,'B'),
(('K','o','l','d','o', others=>' '),24,'J'),
(('M','i','r','e','n', others=>' '),24,'J'),
(('M','i','r','e','i','a',others=>' '),1,'A'),
(('I','k','e','r', others=>' '),24,'J'),
(('A','r','i','t','z', others=>' '),24,'J'),
(('A','n','e', others=>' '),24,'J'),
(('L','e','i','r','e', others=>' '),3,'A'),
(('L','o','l','a', others=>' '),1,'C'),
(('J','u','a','n', others=>' '),1,'A'),
(('A','i','r','a', others=>' '),3,'B'),
(('L','u','i','s', others=>' '),24,'J'),
(('M','a','r','i','a', others=>' '),24,'J'),
(('M','o','i','r','a', others=>' '),1,'A'),
(('I','s','a','b','e','l',others=>' '),24,'J'),
(('R','o','b','l','e', others=>' '),24,'J'),
(('A','n','a', others=>' '),24,'J'),
(('L','e','y','r','e', others=>' '),3,'A'),
(('L','o','l','o', others=>' '),1,'C'));
Res2: constant T_Rascacielos :=
(1=>('A'=>4, 'C'=>2, others=>0),
2=>(others=>0),
3=>('A'..'B'=>2, others=>0),
24=>('J'=>10, others=>0),
others=>(others=>0));
Res: T_Rascacielos;
begin
Put(" Bloque 1: "); new_line;
new_line;
put ("La vivienda con mas personas es la 2A"); new_line; new_line;
put ("Tu programa dice: "); new_line;
Obtener_Num_Vecinos_Por_Vivienda(Bloque1, Res);
new_line;
put ("El cambio de la matriz ha sido: ");
if Res = Res1 then
Put_Line("OK!");
else
Put_line("KO!");
end if;
New_Line;new_line;new_line;
Put(" Bloque 2: "); new_line;
new_line;
put ("La vivienda con mas personas es la 24J"); new_line; new_line;
put ("Tu programa dice: "); new_line;
Obtener_Num_Vecinos_Por_Vivienda(Bloque2, Res);
new_line;
put ("El cambio de la matriz ha sido: ");
if Res = Res2 then
Put_Line("OK!");
else
Put_line("KO!");
end if;
end Prueba_Obtener_Num_Vecinos_Por_Vivienda;
|
programs/oeis/028/A028875.asm | neoneye/loda | 22 | 89703 | ; A028875: a(n) = n^2 - 5.
; -5,-4,-1,4,11,20,31,44,59,76,95,116,139,164,191,220,251,284,319,356,395,436,479,524,571,620,671,724,779,836,895,956,1019,1084,1151,1220,1291,1364,1439,1516,1595,1676,1759,1844,1931,2020,2111,2204,2299,2396,2495,2596,2699,2804,2911,3020,3131,3244,3359,3476,3595,3716,3839,3964,4091,4220,4351,4484,4619,4756,4895,5036,5179,5324,5471,5620,5771,5924,6079,6236,6395,6556,6719,6884,7051,7220,7391,7564,7739,7916,8095,8276,8459,8644,8831,9020,9211,9404,9599,9796
pow $0,2
sub $0,5
|
src/skill-containers-sets.ads | skill-lang/adaCommon | 0 | 16062 | <reponame>skill-lang/adaCommon
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ skills vector container implementation --
-- |___/_|\_\_|_|____| by: <NAME>, <NAME> --
-- --
pragma Ada_2012;
with Ada.Containers.Hashed_Sets;
with Ada.Finalization;
with Ada.Unchecked_Conversion;
with Skill.Types;
with Ada.Containers;
-- sets used by skill; those are basically ada hashed sets with template aware boxing
generic
type T is private;
with function Hash (Element : T) return Ada.Containers.Hash_Type is <>;
with function Equals (Left, Right : T) return Boolean is <>;
with function "=" (Left, Right : T) return Boolean is <>;
package Skill.Containers.Sets is
pragma Warnings (Off);
use Skill.Types;
function Cast is new Ada.Unchecked_Conversion (Box, T);
function Cast is new Ada.Unchecked_Conversion (T, Box);
package HS is new Ada.Containers.Hashed_Sets (T, Hash, Equals, "=");
type Iterator_T is new Set_Iterator_T with record
Cursor : Hs.Cursor;
end record;
function Has_Next (This : access Iterator_T) return Boolean is
(Hs.Has_Element(This.Cursor));
function Next (This : access Iterator_T) return Skill.Types.Box;
procedure Free (This : access Iterator_T);
type Set_T is new Boxed_Set_T with record
This : HS.Set;
end record;
type Ref is access Set_T;
procedure Add (This : access Set_T; V : Skill.Types.Box);
function Contains
(This : access Set_T;
V : Skill.Types.Box) return Boolean is
(This.This.Contains (Cast (V)));
function Length
(This : access Set_T) return Natural is
(Natural (This.This.Length));
overriding
function Iterator (This : access Set_T) return Set_Iterator is
(new Iterator_T'(Cursor => This.This.First));
-- create a new container
function Make return Ref;
-- turn a box into a container of right type
function Unboxed is new Ada.Unchecked_Conversion (Box, Ref);
end Skill.Containers.Sets;
|
testdata/alphabet.asm | lwagner94/mycpu | 0 | 165979 | ldi sp, MEMORY_END // Setup stack
call print_alphabet
halt
print_alphabet:
ldi r0, 0
ldi r1, 65 // A in decimal
loop:
cmpi r0, 26
breq end
stdb r1, CONSOLEIO_START // Mapped ConsoleIO device
inc r1
inc r0
jmp loop
end:
ret
|
gfx/pokemon/porygon2/anim.asm | Dev727/ancientplatinum | 28 | 97125 | setrepeat 2
frame 1, 06
frame 2, 08
frame 0, 06
dorepeat 1
endanim
|
Core/Hal/src/hal.asm | lochnessdragon/OS | 0 | 4892 | # hal.asm
# includes hal assembly functions
bits 32
global geninterrupt ; makes geninterrupt avialable from outside this file.
global outportb ; make the label outportb visible outside this file
global inportb ; make the label inportb visible outside this file
global enable_interrupts
global disable_interrupts
; geninterrupt: calls the int function with a custom number
; stack: [ esp + 4 ] interrupt to generate
; [ esp ] return address
geninterrupt:
mov al, byte [esp+4]
mov byte [genint+1], al
jmp genint
genint:
int 0
ret
; outportb - send a byte to an I/O port
; stack: [esp + 8] the data byte
; [esp + 4] the I/O port
; [esp ] return address
outportb:
; I think argumnts are passed on stack, so let's pop it?
;pop dx
;pop al
mov dx, word [esp+4] ; move the address of the I/O port into the dx register
mov al, byte [esp+8] ; move the data to be sent into the al register
;pusha ; save registers
out dx, al ; send the data to the I/O port
;popa ; load registers
ret ; return to the calling function
; inportb - read a byte from an I/O port and returns it
; stack: [esp + 4] the I/O port
; [esp ] return address
inportb:
push dx ; save registers
mov dx, [esp + 4] ; move the address of the I/O port into the dx register.
in ax, dx ; read the byte from the I/O port
pop dx ; load registers
ret
; enable_interrupts - enables hardware interrupts
enable_interrupts:
sti
ret
; disable_interrupts - disables hardware interrupts
disable_interrupts:
cli
ret |
oeis/142/A142782.asm | neoneye/loda-programs | 11 | 174897 | <filename>oeis/142/A142782.asm<gh_stars>10-100
; A142782: Primes congruent to 55 mod 59.
; Submitted by <NAME>(s4)
; 173,409,881,1117,1471,2179,2297,2887,3359,4421,4657,5011,5483,6073,6427,6781,6899,7253,7489,7607,8669,9377,9613,9967,10321,11383,12799,12917,14923,15277,15749,16103,16339,16693,16811,17047,17401,17519,19289,19997,20233,21059,21649,21767,22003,23537,23773,24481,24953,25189,25307,26251,26723,26959,27077,27431,28493,28729,29201,29437,30853,30971,33331,34039,34157,34511,34747,35573,35809,36871,37579,38287,39113,39703,39821,40529,40883,42181,42299,43597,43951,44777,45013,45131,46901,47137,47491
mov $1,1
mov $2,$0
add $2,2
pow $2,2
lpb $2
add $1,26
sub $2,1
mov $3,$1
add $1,3
mul $4,2
mul $3,$4
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,30
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
mov $0,$1
mul $0,2
sub $0,65
|
firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-gma-dp_info.ads | fabiojna02/OpenCellular | 1 | 9624 | --
-- Copyright (C) 2016 secunet Security Networks AG
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
with HW.GFX.DP_Info;
pragma Elaborate_All (HW.GFX.DP_Info);
with HW.GFX.GMA.DP_Aux_Ch;
private package HW.GFX.GMA.DP_Info
is new HW.GFX.DP_Info
(T => DP_Port,
Aux_Ch => DP_Aux_Ch);
|
exampl07/slickhuh/slickhuh.asm | AlexRogalskiy/Masm | 0 | 17432 | <reponame>AlexRogalskiy/Masm
.686p
.model flat, stdcall
option casemap :none
externdef _imp__DispatchMessageA@4:PTR pr1
m2wp equ <_imp__DispatchMessageA@4>
externdef _imp__GetMessageA@16:PTR pr4
gms equ <_imp__GetMessageA@16>
externdef _imp__DefWindowProcA@16:PTR pr4
dpro equ <_imp__DefWindowProcA@16>
externdef _imp__PostQuitMessage@4:PTR pr1
pqm equ <_imp__PostQuitMessage@4>
externdef _imp__RegisterClassExA@4:PTR pr1
scln equ <_imp__RegisterClassExA@4>
externdef _imp__ShowWindow@8:PTR pr2
wshw equ <_imp__ShowWindow@8>
externdef _imp__LoadCursorA@8:PTR pr2
lsc equ <_imp__LoadCursorA@8>
externdef _imp__CreateWindowExA@48:PTR pr12
crwe equ <_imp__CreateWindowExA@48>
includelib \masm32\lib\user32.lib
.code
ims db "Slick Huh ?", 0
pcl dd ims
slick_huh:
push ebp
mov ebp, esp
sub esp, 96
push 32512
xor edi, edi
push edi
mov esi, 4194304
mov ebx, pcl
call lsc
mov DWORD PTR [ebp-96], 48
mov DWORD PTR [ebp-92], 3
mov DWORD PTR [ebp-88], OFFSET wpep
mov DWORD PTR [ebp-84], edi
mov DWORD PTR [ebp-80], edi
mov DWORD PTR [ebp-76], esi
mov DWORD PTR [ebp-72], edi
mov DWORD PTR [ebp-68], eax
mov DWORD PTR [ebp-64], 10h
mov DWORD PTR [ebp-60], edi
mov DWORD PTR [ebp-56], ebx
mov DWORD PTR [ebp-52], edi
lea eax, [ebp-96]
push eax
call scln
mov ecx, -2147483648
push 1
push edi
push esi
push edi
push edi
push edi
push ecx
push edi
push ecx
push 13565952
push ebx
push ebx
push edi
call crwe
push eax
call wshw
lea ebx, [ebp-48]
push edi
push edi
push edi
push ebx
jmp mlep
@@: push edi
push edi
push edi
push ebx
push ebx
call m2wp
mlep: call gms
test al, al
jnz @B
leave
retn
wpep: cmp DWORD PTR [esp+8], 2
jne @F
push 0
call pqm
@@: jmp dpro
end slick_huh
|
legend-engine-language-pure-grammar/src/main/antlr4/org/finos/legend/engine/language/pure/grammar/from/antlr4/mapping/xStoreAssociationMapping/XStoreAssociationMappingLexerGrammar.g4 | dave-wathen/legend-engine | 32 | 497 | lexer grammar XStoreAssociationMappingLexerGrammar;
import M3LexerGrammar;
|
oeis/004/A004756.asm | neoneye/loda-programs | 11 | 102650 | <filename>oeis/004/A004756.asm
; A004756: Binary expansion starts 100.
; 4,8,9,16,17,18,19,32,33,34,35,36,37,38,39,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292
mov $1,$0
mov $2,3
lpb $1
sub $1,1
div $1,2
mul $2,2
lpe
add $0,$2
add $0,1
|
programs/oeis/055/A055457.asm | karttu/loda | 0 | 89884 | ; A055457: 5^a(n) exactly divides 5n. Or, 5-adic valuation of 5n.
; 1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,3,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,3,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,3,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,3,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,4,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,3,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,3,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,3,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,3,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,2,1,1,1,1,4
add $0,1
mov $2,$0
lpb $2,1
add $1,362880
mov $3,$2
bin $3,5
gcd $2,$3
lpe
div $1,362880
add $1,1
|
oeis/115/A115302.asm | neoneye/loda-programs | 11 | 1650 | <gh_stars>10-100
; A115302: Permutation of natural numbers generated by 3-rowed array shown below.
; Submitted by <NAME>(w4)
; 1,4,2,7,5,3,10,8,6,13,11,9,16,14,12,19,17,15,22,20,18,25,23,21,28,26,24,31,29,27,34,32,30,37,35,33,40,38,36,43,41,39,46,44,42,49,47,45,52,50,48,55,53,51,58,56,54,61,59,57,64,62,60
mul $0,2
mov $1,5
mov $2,1
mov $3,3
lpb $0
sub $0,1
add $2,3
mov $4,$2
sub $4,$0
trn $0,$3
mov $3,$1
lpe
mov $0,$4
add $0,1
|
5.2.3790-sp2-windows-2003/i386/ssdt_sysenter.asm | mehrdad-shokri/windows-syscall-table | 372 | 167590 | <reponame>mehrdad-shokri/windows-syscall-table<gh_stars>100-1000
; DO NOT MODIFY THIS FILE DIRECTLY!
; author: @TinySecEx
; ssdt asm stub for 5.2.3790-sp2-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 );
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
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 );
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
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 );
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
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 );
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
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 );
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
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 );
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
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 );
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
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 );
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
NtAccessCheckByTypeResultListAndAuditAlarmByHandle ENDP
; ULONG __stdcall NtAddAtom( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtAddAtom ENDP
; ULONG __stdcall NtAddBootEntry( ULONG arg_01 , ULONG arg_02 );
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
NtAddBootEntry ENDP
; ULONG __stdcall NtAddDriverEntry( ULONG arg_01 , ULONG arg_02 );
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
NtAddDriverEntry ENDP
; ULONG __stdcall NtAdjustGroupsToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
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
NtAdjustGroupsToken ENDP
; ULONG __stdcall NtAdjustPrivilegesToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
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
NtAdjustPrivilegesToken ENDP
; ULONG __stdcall NtAlertResumeThread( ULONG arg_01 , ULONG arg_02 );
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
NtAlertResumeThread ENDP
; ULONG __stdcall NtAlertThread( ULONG arg_01 );
NtAlertThread PROC STDCALL arg_01:DWORD
mov eax , 14
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtAlertThread ENDP
; ULONG __stdcall NtAllocateLocallyUniqueId( ULONG arg_01 );
NtAllocateLocallyUniqueId PROC STDCALL arg_01:DWORD
mov eax , 15
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtAllocateLocallyUniqueId ENDP
; ULONG __stdcall NtAllocateUserPhysicalPages( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtAllocateUserPhysicalPages ENDP
; ULONG __stdcall NtAllocateUuids( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtAllocateUuids ENDP
; ULONG __stdcall NtAllocateVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
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
NtAllocateVirtualMemory ENDP
; ULONG __stdcall NtApphelpCacheControl( ULONG arg_01 , ULONG arg_02 );
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
NtApphelpCacheControl ENDP
; ULONG __stdcall NtAreMappedFilesTheSame( ULONG arg_01 , ULONG arg_02 );
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
NtAreMappedFilesTheSame ENDP
; ULONG __stdcall NtAssignProcessToJobObject( ULONG arg_01 , ULONG arg_02 );
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
NtAssignProcessToJobObject ENDP
; ULONG __stdcall NtCallbackReturn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtCallbackReturn ENDP
; ULONG __stdcall NtCancelDeviceWakeupRequest( ULONG arg_01 );
NtCancelDeviceWakeupRequest PROC STDCALL arg_01:DWORD
mov eax , 23
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtCancelDeviceWakeupRequest ENDP
; ULONG __stdcall NtCancelIoFile( ULONG arg_01 , ULONG arg_02 );
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
NtCancelIoFile ENDP
; ULONG __stdcall NtCancelTimer( ULONG arg_01 , ULONG arg_02 );
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
NtCancelTimer ENDP
; ULONG __stdcall NtClearEvent( ULONG arg_01 );
NtClearEvent PROC STDCALL arg_01:DWORD
mov eax , 26
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtClearEvent ENDP
; ULONG __stdcall NtClose( ULONG arg_01 );
NtClose PROC STDCALL arg_01:DWORD
mov eax , 27
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtClose ENDP
; ULONG __stdcall NtCloseObjectAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtCloseObjectAuditAlarm ENDP
; ULONG __stdcall NtCompactKeys( ULONG arg_01 , ULONG arg_02 );
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
NtCompactKeys ENDP
; ULONG __stdcall NtCompareTokens( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtCompareTokens ENDP
; ULONG __stdcall NtCompleteConnectPort( ULONG arg_01 );
NtCompleteConnectPort PROC STDCALL arg_01:DWORD
mov eax , 31
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtCompleteConnectPort ENDP
; ULONG __stdcall NtCompressKey( ULONG arg_01 );
NtCompressKey PROC STDCALL arg_01:DWORD
mov eax , 32
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
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 );
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
NtConnectPort ENDP
; ULONG __stdcall NtContinue( ULONG arg_01 , ULONG arg_02 );
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
NtContinue ENDP
; ULONG __stdcall NtCreateDebugObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtCreateDebugObject ENDP
; ULONG __stdcall NtCreateDirectoryObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtCreateDirectoryObject ENDP
; ULONG __stdcall NtCreateEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtCreateEvent ENDP
; ULONG __stdcall NtCreateEventPair( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
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 );
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
NtCreateFile ENDP
; ULONG __stdcall NtCreateIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtCreateIoCompletion ENDP
; ULONG __stdcall NtCreateJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtCreateJobObject ENDP
; ULONG __stdcall NtCreateJobSet( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
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 );
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
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 );
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
NtCreateMailslotFile ENDP
; ULONG __stdcall NtCreateMutant( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
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 );
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
NtCreateNamedPipeFile ENDP
; ULONG __stdcall NtCreatePagingFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtCreatePagingFile ENDP
; ULONG __stdcall NtCreatePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
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 );
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
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 );
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
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 );
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
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 );
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
NtCreateSection ENDP
; ULONG __stdcall NtCreateSemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtCreateSemaphore ENDP
; ULONG __stdcall NtCreateSymbolicLinkObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
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 );
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
NtCreateThread ENDP
; ULONG __stdcall NtCreateTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
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 );
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
NtCreateToken ENDP
; ULONG __stdcall NtCreateWaitablePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtCreateWaitablePort ENDP
; ULONG __stdcall NtDebugActiveProcess( ULONG arg_01 , ULONG arg_02 );
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
NtDebugActiveProcess ENDP
; ULONG __stdcall NtDebugContinue( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtDebugContinue ENDP
; ULONG __stdcall NtDelayExecution( ULONG arg_01 , ULONG arg_02 );
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
NtDelayExecution ENDP
; ULONG __stdcall NtDeleteAtom( ULONG arg_01 );
NtDeleteAtom PROC STDCALL arg_01:DWORD
mov eax , 62
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtDeleteAtom ENDP
; ULONG __stdcall NtDeleteBootEntry( ULONG arg_01 );
NtDeleteBootEntry PROC STDCALL arg_01:DWORD
mov eax , 63
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtDeleteBootEntry ENDP
; ULONG __stdcall NtDeleteDriverEntry( ULONG arg_01 );
NtDeleteDriverEntry PROC STDCALL arg_01:DWORD
mov eax , 64
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtDeleteDriverEntry ENDP
; ULONG __stdcall NtDeleteFile( ULONG arg_01 );
NtDeleteFile PROC STDCALL arg_01:DWORD
mov eax , 65
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtDeleteFile ENDP
; ULONG __stdcall NtDeleteKey( ULONG arg_01 );
NtDeleteKey PROC STDCALL arg_01:DWORD
mov eax , 66
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtDeleteKey ENDP
; ULONG __stdcall NtDeleteObjectAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtDeleteObjectAuditAlarm ENDP
; ULONG __stdcall NtDeleteValueKey( ULONG arg_01 , ULONG arg_02 );
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
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 );
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
NtDeviceIoControlFile ENDP
; ULONG __stdcall NtDisplayString( ULONG arg_01 );
NtDisplayString PROC STDCALL arg_01:DWORD
mov eax , 70
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
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 );
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
NtDuplicateObject ENDP
; ULONG __stdcall NtDuplicateToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
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
NtDuplicateToken ENDP
; ULONG __stdcall NtEnumerateBootEntries( ULONG arg_01 , ULONG arg_02 );
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
NtEnumerateBootEntries ENDP
; ULONG __stdcall NtEnumerateDriverEntries( ULONG arg_01 , ULONG arg_02 );
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
NtEnumerateDriverEntries ENDP
; ULONG __stdcall NtEnumerateKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
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
NtEnumerateKey ENDP
; ULONG __stdcall NtEnumerateSystemEnvironmentValuesEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtEnumerateSystemEnvironmentValuesEx ENDP
; ULONG __stdcall NtEnumerateValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
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
NtEnumerateValueKey ENDP
; ULONG __stdcall NtExtendSection( ULONG arg_01 , ULONG arg_02 );
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
NtExtendSection ENDP
; ULONG __stdcall NtFilterToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
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
NtFilterToken ENDP
; ULONG __stdcall NtFindAtom( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtFindAtom ENDP
; ULONG __stdcall NtFlushBuffersFile( ULONG arg_01 , ULONG arg_02 );
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
NtFlushBuffersFile ENDP
; ULONG __stdcall NtFlushInstructionCache( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtFlushInstructionCache ENDP
; ULONG __stdcall NtFlushKey( ULONG arg_01 );
NtFlushKey PROC STDCALL arg_01:DWORD
mov eax , 83
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtFlushKey ENDP
; ULONG __stdcall NtFlushVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtFlushVirtualMemory ENDP
; ULONG __stdcall NtFlushWriteBuffer( );
NtFlushWriteBuffer PROC STDCALL
mov eax , 85
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtFlushWriteBuffer ENDP
; ULONG __stdcall NtFreeUserPhysicalPages( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtFreeUserPhysicalPages ENDP
; ULONG __stdcall NtFreeVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
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 );
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
NtFsControlFile ENDP
; ULONG __stdcall NtGetContextThread( ULONG arg_01 , ULONG arg_02 );
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
NtGetContextThread ENDP
; ULONG __stdcall NtGetDevicePowerState( ULONG arg_01 , ULONG arg_02 );
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
NtGetDevicePowerState ENDP
; ULONG __stdcall NtGetPlugPlayEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
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 );
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
NtGetWriteWatch ENDP
; ULONG __stdcall NtImpersonateAnonymousToken( ULONG arg_01 );
NtImpersonateAnonymousToken PROC STDCALL arg_01:DWORD
mov eax , 93
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtImpersonateAnonymousToken ENDP
; ULONG __stdcall NtImpersonateClientOfPort( ULONG arg_01 , ULONG arg_02 );
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
NtImpersonateClientOfPort ENDP
; ULONG __stdcall NtImpersonateThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtImpersonateThread ENDP
; ULONG __stdcall NtInitializeRegistry( ULONG arg_01 );
NtInitializeRegistry PROC STDCALL arg_01:DWORD
mov eax , 96
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtInitializeRegistry ENDP
; ULONG __stdcall NtInitiatePowerAction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtInitiatePowerAction ENDP
; ULONG __stdcall NtIsProcessInJob( ULONG arg_01 , ULONG arg_02 );
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
NtIsProcessInJob ENDP
; ULONG __stdcall NtIsSystemResumeAutomatic( );
NtIsSystemResumeAutomatic PROC STDCALL
mov eax , 99
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtIsSystemResumeAutomatic ENDP
; ULONG __stdcall NtListenPort( ULONG arg_01 , ULONG arg_02 );
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
NtListenPort ENDP
; ULONG __stdcall NtLoadDriver( ULONG arg_01 );
NtLoadDriver PROC STDCALL arg_01:DWORD
mov eax , 101
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtLoadDriver ENDP
; ULONG __stdcall NtLoadKey( ULONG arg_01 , ULONG arg_02 );
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
NtLoadKey ENDP
; ULONG __stdcall NtLoadKey2( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtLoadKey2 ENDP
; ULONG __stdcall NtLoadKeyEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
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 );
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
NtLockFile ENDP
; ULONG __stdcall NtLockProductActivationKeys( ULONG arg_01 , ULONG arg_02 );
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
NtLockProductActivationKeys ENDP
; ULONG __stdcall NtLockRegistryKey( ULONG arg_01 );
NtLockRegistryKey PROC STDCALL arg_01:DWORD
mov eax , 107
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtLockRegistryKey ENDP
; ULONG __stdcall NtLockVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtLockVirtualMemory ENDP
; ULONG __stdcall NtMakePermanentObject( ULONG arg_01 );
NtMakePermanentObject PROC STDCALL arg_01:DWORD
mov eax , 109
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtMakePermanentObject ENDP
; ULONG __stdcall NtMakeTemporaryObject( ULONG arg_01 );
NtMakeTemporaryObject PROC STDCALL arg_01:DWORD
mov eax , 110
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtMakeTemporaryObject ENDP
; ULONG __stdcall NtMapUserPhysicalPages( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtMapUserPhysicalPages ENDP
; ULONG __stdcall NtMapUserPhysicalPagesScatter( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
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 );
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
NtMapViewOfSection ENDP
; ULONG __stdcall NtModifyBootEntry( ULONG arg_01 );
NtModifyBootEntry PROC STDCALL arg_01:DWORD
mov eax , 114
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtModifyBootEntry ENDP
; ULONG __stdcall NtModifyDriverEntry( ULONG arg_01 );
NtModifyDriverEntry PROC STDCALL arg_01:DWORD
mov eax , 115
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
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 );
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
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 );
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
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 );
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
NtNotifyChangeMultipleKeys ENDP
; ULONG __stdcall NtOpenDirectoryObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtOpenDirectoryObject ENDP
; ULONG __stdcall NtOpenEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtOpenEvent ENDP
; ULONG __stdcall NtOpenEventPair( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtOpenEventPair ENDP
; ULONG __stdcall NtOpenFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
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
NtOpenFile ENDP
; ULONG __stdcall NtOpenIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtOpenIoCompletion ENDP
; ULONG __stdcall NtOpenJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtOpenJobObject ENDP
; ULONG __stdcall NtOpenKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtOpenKey ENDP
; ULONG __stdcall NtOpenMutant( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
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 );
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
NtOpenObjectAuditAlarm ENDP
; ULONG __stdcall NtOpenProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtOpenProcess ENDP
; ULONG __stdcall NtOpenProcessToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtOpenProcessToken ENDP
; ULONG __stdcall NtOpenProcessTokenEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtOpenProcessTokenEx ENDP
; ULONG __stdcall NtOpenSection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtOpenSection ENDP
; ULONG __stdcall NtOpenSemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtOpenSemaphore ENDP
; ULONG __stdcall NtOpenSymbolicLinkObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtOpenSymbolicLinkObject ENDP
; ULONG __stdcall NtOpenThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtOpenThread ENDP
; ULONG __stdcall NtOpenThreadToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtOpenThreadToken ENDP
; ULONG __stdcall NtOpenThreadTokenEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtOpenThreadTokenEx ENDP
; ULONG __stdcall NtOpenTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtOpenTimer ENDP
; ULONG __stdcall NtPlugPlayControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtPlugPlayControl ENDP
; ULONG __stdcall NtPowerInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtPowerInformation ENDP
; ULONG __stdcall NtPrivilegeCheck( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtPrivilegeCheck ENDP
; ULONG __stdcall NtPrivilegeObjectAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
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
NtPrivilegeObjectAuditAlarm ENDP
; ULONG __stdcall NtPrivilegedServiceAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtPrivilegedServiceAuditAlarm ENDP
; ULONG __stdcall NtProtectVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtProtectVirtualMemory ENDP
; ULONG __stdcall NtPulseEvent( ULONG arg_01 , ULONG arg_02 );
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
NtPulseEvent ENDP
; ULONG __stdcall NtQueryAttributesFile( ULONG arg_01 , ULONG arg_02 );
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
NtQueryAttributesFile ENDP
; ULONG __stdcall NtQueryBootEntryOrder( ULONG arg_01 , ULONG arg_02 );
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
NtQueryBootEntryOrder ENDP
; ULONG __stdcall NtQueryBootOptions( ULONG arg_01 , ULONG arg_02 );
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
NtQueryBootOptions ENDP
; ULONG __stdcall NtQueryDebugFilterState( ULONG arg_01 , ULONG arg_02 );
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
NtQueryDebugFilterState ENDP
; ULONG __stdcall NtQueryDefaultLocale( ULONG arg_01 , ULONG arg_02 );
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
NtQueryDefaultLocale ENDP
; ULONG __stdcall NtQueryDefaultUILanguage( ULONG arg_01 );
NtQueryDefaultUILanguage PROC STDCALL arg_01:DWORD
mov eax , 150
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
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 );
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
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 );
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
NtQueryDirectoryObject ENDP
; ULONG __stdcall NtQueryDriverEntryOrder( ULONG arg_01 , ULONG arg_02 );
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
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 );
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
NtQueryEaFile ENDP
; ULONG __stdcall NtQueryEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQueryEvent ENDP
; ULONG __stdcall NtQueryFullAttributesFile( ULONG arg_01 , ULONG arg_02 );
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
NtQueryFullAttributesFile ENDP
; ULONG __stdcall NtQueryInformationAtom( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQueryInformationAtom ENDP
; ULONG __stdcall NtQueryInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQueryInformationFile ENDP
; ULONG __stdcall NtQueryInformationJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQueryInformationJobObject ENDP
; ULONG __stdcall NtQueryInformationPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQueryInformationPort ENDP
; ULONG __stdcall NtQueryInformationProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQueryInformationProcess ENDP
; ULONG __stdcall NtQueryInformationThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQueryInformationThread ENDP
; ULONG __stdcall NtQueryInformationToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQueryInformationToken ENDP
; ULONG __stdcall NtQueryInstallUILanguage( ULONG arg_01 );
NtQueryInstallUILanguage PROC STDCALL arg_01:DWORD
mov eax , 164
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtQueryInstallUILanguage ENDP
; ULONG __stdcall NtQueryIntervalProfile( ULONG arg_01 , ULONG arg_02 );
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
NtQueryIntervalProfile ENDP
; ULONG __stdcall NtQueryIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQueryIoCompletion ENDP
; ULONG __stdcall NtQueryKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQueryKey ENDP
; ULONG __stdcall NtQueryMultipleValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
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
NtQueryMultipleValueKey ENDP
; ULONG __stdcall NtQueryMutant( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQueryMutant ENDP
; ULONG __stdcall NtQueryObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQueryObject ENDP
; ULONG __stdcall NtQueryOpenSubKeys( ULONG arg_01 , ULONG arg_02 );
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
NtQueryOpenSubKeys ENDP
; ULONG __stdcall NtQueryOpenSubKeysEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtQueryOpenSubKeysEx ENDP
; ULONG __stdcall NtQueryPerformanceCounter( ULONG arg_01 , ULONG arg_02 );
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
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 );
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
NtQueryQuotaInformationFile ENDP
; ULONG __stdcall NtQuerySection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQuerySection ENDP
; ULONG __stdcall NtQuerySecurityObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQuerySecurityObject ENDP
; ULONG __stdcall NtQuerySemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQuerySemaphore ENDP
; ULONG __stdcall NtQuerySymbolicLinkObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtQuerySymbolicLinkObject ENDP
; ULONG __stdcall NtQuerySystemEnvironmentValue( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtQuerySystemEnvironmentValue ENDP
; ULONG __stdcall NtQuerySystemEnvironmentValueEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQuerySystemEnvironmentValueEx ENDP
; ULONG __stdcall NtQuerySystemInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtQuerySystemInformation ENDP
; ULONG __stdcall NtQuerySystemTime( ULONG arg_01 );
NtQuerySystemTime PROC STDCALL arg_01:DWORD
mov eax , 182
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtQuerySystemTime ENDP
; ULONG __stdcall NtQueryTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQueryTimer ENDP
; ULONG __stdcall NtQueryTimerResolution( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtQueryTimerResolution ENDP
; ULONG __stdcall NtQueryValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
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
NtQueryValueKey ENDP
; ULONG __stdcall NtQueryVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
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
NtQueryVirtualMemory ENDP
; ULONG __stdcall NtQueryVolumeInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQueryVolumeInformationFile ENDP
; ULONG __stdcall NtQueueApcThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtQueueApcThread ENDP
; ULONG __stdcall NtRaiseException( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtRaiseException ENDP
; ULONG __stdcall NtRaiseHardError( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
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
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 );
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
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 );
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
NtReadFileScatter ENDP
; ULONG __stdcall NtReadRequestData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
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
NtReadRequestData ENDP
; ULONG __stdcall NtReadVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtReadVirtualMemory ENDP
; ULONG __stdcall NtRegisterThreadTerminatePort( ULONG arg_01 );
NtRegisterThreadTerminatePort PROC STDCALL arg_01:DWORD
mov eax , 195
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtRegisterThreadTerminatePort ENDP
; ULONG __stdcall NtReleaseMutant( ULONG arg_01 , ULONG arg_02 );
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
NtReleaseMutant ENDP
; ULONG __stdcall NtReleaseSemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtReleaseSemaphore ENDP
; ULONG __stdcall NtRemoveIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtRemoveIoCompletion ENDP
; ULONG __stdcall NtRemoveProcessDebug( ULONG arg_01 , ULONG arg_02 );
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
NtRemoveProcessDebug ENDP
; ULONG __stdcall NtRenameKey( ULONG arg_01 , ULONG arg_02 );
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
NtRenameKey ENDP
; ULONG __stdcall NtReplaceKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtReplaceKey ENDP
; ULONG __stdcall NtReplyPort( ULONG arg_01 , ULONG arg_02 );
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
NtReplyPort ENDP
; ULONG __stdcall NtReplyWaitReceivePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtReplyWaitReceivePort ENDP
; ULONG __stdcall NtReplyWaitReceivePortEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtReplyWaitReceivePortEx ENDP
; ULONG __stdcall NtReplyWaitReplyPort( ULONG arg_01 , ULONG arg_02 );
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
NtReplyWaitReplyPort ENDP
; ULONG __stdcall NtRequestDeviceWakeup( ULONG arg_01 );
NtRequestDeviceWakeup PROC STDCALL arg_01:DWORD
mov eax , 206
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtRequestDeviceWakeup ENDP
; ULONG __stdcall NtRequestPort( ULONG arg_01 , ULONG arg_02 );
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
NtRequestPort ENDP
; ULONG __stdcall NtRequestWaitReplyPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtRequestWaitReplyPort ENDP
; ULONG __stdcall NtRequestWakeupLatency( ULONG arg_01 );
NtRequestWakeupLatency PROC STDCALL arg_01:DWORD
mov eax , 209
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtRequestWakeupLatency ENDP
; ULONG __stdcall NtResetEvent( ULONG arg_01 , ULONG arg_02 );
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
NtResetEvent ENDP
; ULONG __stdcall NtResetWriteWatch( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtResetWriteWatch ENDP
; ULONG __stdcall NtRestoreKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtRestoreKey ENDP
; ULONG __stdcall NtResumeProcess( ULONG arg_01 );
NtResumeProcess PROC STDCALL arg_01:DWORD
mov eax , 213
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtResumeProcess ENDP
; ULONG __stdcall NtResumeThread( ULONG arg_01 , ULONG arg_02 );
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
NtResumeThread ENDP
; ULONG __stdcall NtSaveKey( ULONG arg_01 , ULONG arg_02 );
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
NtSaveKey ENDP
; ULONG __stdcall NtSaveKeyEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtSaveKeyEx ENDP
; ULONG __stdcall NtSaveMergedKeys( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
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 );
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
NtSecureConnectPort ENDP
; ULONG __stdcall NtSetBootEntryOrder( ULONG arg_01 , ULONG arg_02 );
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
NtSetBootEntryOrder ENDP
; ULONG __stdcall NtSetBootOptions( ULONG arg_01 , ULONG arg_02 );
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
NtSetBootOptions ENDP
; ULONG __stdcall NtSetContextThread( ULONG arg_01 , ULONG arg_02 );
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
NtSetContextThread ENDP
; ULONG __stdcall NtSetDebugFilterState( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtSetDebugFilterState ENDP
; ULONG __stdcall NtSetDefaultHardErrorPort( ULONG arg_01 );
NtSetDefaultHardErrorPort PROC STDCALL arg_01:DWORD
mov eax , 223
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtSetDefaultHardErrorPort ENDP
; ULONG __stdcall NtSetDefaultLocale( ULONG arg_01 , ULONG arg_02 );
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
NtSetDefaultLocale ENDP
; ULONG __stdcall NtSetDefaultUILanguage( ULONG arg_01 );
NtSetDefaultUILanguage PROC STDCALL arg_01:DWORD
mov eax , 225
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtSetDefaultUILanguage ENDP
; ULONG __stdcall NtSetDriverEntryOrder( ULONG arg_01 , ULONG arg_02 );
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
NtSetDriverEntryOrder ENDP
; ULONG __stdcall NtSetEaFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtSetEaFile ENDP
; ULONG __stdcall NtSetEvent( ULONG arg_01 , ULONG arg_02 );
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
NtSetEvent ENDP
; ULONG __stdcall NtSetEventBoostPriority( ULONG arg_01 );
NtSetEventBoostPriority PROC STDCALL arg_01:DWORD
mov eax , 229
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtSetEventBoostPriority ENDP
; ULONG __stdcall NtSetHighEventPair( ULONG arg_01 );
NtSetHighEventPair PROC STDCALL arg_01:DWORD
mov eax , 230
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtSetHighEventPair ENDP
; ULONG __stdcall NtSetHighWaitLowEventPair( ULONG arg_01 );
NtSetHighWaitLowEventPair PROC STDCALL arg_01:DWORD
mov eax , 231
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtSetHighWaitLowEventPair ENDP
; ULONG __stdcall NtSetInformationDebugObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtSetInformationDebugObject ENDP
; ULONG __stdcall NtSetInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtSetInformationFile ENDP
; ULONG __stdcall NtSetInformationJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtSetInformationJobObject ENDP
; ULONG __stdcall NtSetInformationKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtSetInformationKey ENDP
; ULONG __stdcall NtSetInformationObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtSetInformationObject ENDP
; ULONG __stdcall NtSetInformationProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtSetInformationProcess ENDP
; ULONG __stdcall NtSetInformationThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtSetInformationThread ENDP
; ULONG __stdcall NtSetInformationToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtSetInformationToken ENDP
; ULONG __stdcall NtSetIntervalProfile( ULONG arg_01 , ULONG arg_02 );
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
NtSetIntervalProfile ENDP
; ULONG __stdcall NtSetIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtSetIoCompletion ENDP
; ULONG __stdcall NtSetLdtEntries( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
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
NtSetLdtEntries ENDP
; ULONG __stdcall NtSetLowEventPair( ULONG arg_01 );
NtSetLowEventPair PROC STDCALL arg_01:DWORD
mov eax , 243
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtSetLowEventPair ENDP
; ULONG __stdcall NtSetLowWaitHighEventPair( ULONG arg_01 );
NtSetLowWaitHighEventPair PROC STDCALL arg_01:DWORD
mov eax , 244
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtSetLowWaitHighEventPair ENDP
; ULONG __stdcall NtSetQuotaInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtSetQuotaInformationFile ENDP
; ULONG __stdcall NtSetSecurityObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtSetSecurityObject ENDP
; ULONG __stdcall NtSetSystemEnvironmentValue( ULONG arg_01 , ULONG arg_02 );
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
NtSetSystemEnvironmentValue ENDP
; ULONG __stdcall NtSetSystemEnvironmentValueEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtSetSystemEnvironmentValueEx ENDP
; ULONG __stdcall NtSetSystemInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtSetSystemInformation ENDP
; ULONG __stdcall NtSetSystemPowerState( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtSetSystemPowerState ENDP
; ULONG __stdcall NtSetSystemTime( ULONG arg_01 , ULONG arg_02 );
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
NtSetSystemTime ENDP
; ULONG __stdcall NtSetThreadExecutionState( ULONG arg_01 , ULONG arg_02 );
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
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 );
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
NtSetTimer ENDP
; ULONG __stdcall NtSetTimerResolution( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtSetTimerResolution ENDP
; ULONG __stdcall NtSetUuidSeed( ULONG arg_01 );
NtSetUuidSeed PROC STDCALL arg_01:DWORD
mov eax , 255
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtSetUuidSeed ENDP
; ULONG __stdcall NtSetValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
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
NtSetValueKey ENDP
; ULONG __stdcall NtSetVolumeInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtSetVolumeInformationFile ENDP
; ULONG __stdcall NtShutdownSystem( ULONG arg_01 );
NtShutdownSystem PROC STDCALL arg_01:DWORD
mov eax , 258
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtShutdownSystem ENDP
; ULONG __stdcall NtSignalAndWaitForSingleObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtSignalAndWaitForSingleObject ENDP
; ULONG __stdcall NtStartProfile( ULONG arg_01 );
NtStartProfile PROC STDCALL arg_01:DWORD
mov eax , 260
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtStartProfile ENDP
; ULONG __stdcall NtStopProfile( ULONG arg_01 );
NtStopProfile PROC STDCALL arg_01:DWORD
mov eax , 261
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtStopProfile ENDP
; ULONG __stdcall NtSuspendProcess( ULONG arg_01 );
NtSuspendProcess PROC STDCALL arg_01:DWORD
mov eax , 262
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtSuspendProcess ENDP
; ULONG __stdcall NtSuspendThread( ULONG arg_01 , ULONG arg_02 );
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
NtSuspendThread ENDP
; ULONG __stdcall NtSystemDebugControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
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
NtSystemDebugControl ENDP
; ULONG __stdcall NtTerminateJobObject( ULONG arg_01 , ULONG arg_02 );
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
NtTerminateJobObject ENDP
; ULONG __stdcall NtTerminateProcess( ULONG arg_01 , ULONG arg_02 );
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
NtTerminateProcess ENDP
; ULONG __stdcall NtTerminateThread( ULONG arg_01 , ULONG arg_02 );
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
NtTerminateThread ENDP
; ULONG __stdcall NtTestAlert( );
NtTestAlert PROC STDCALL
mov eax , 268
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtTestAlert ENDP
; ULONG __stdcall NtTraceEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtTraceEvent ENDP
; ULONG __stdcall NtTranslateFilePath( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtTranslateFilePath ENDP
; ULONG __stdcall NtUnloadDriver( ULONG arg_01 );
NtUnloadDriver PROC STDCALL arg_01:DWORD
mov eax , 271
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtUnloadDriver ENDP
; ULONG __stdcall NtUnloadKey( ULONG arg_01 );
NtUnloadKey PROC STDCALL arg_01:DWORD
mov eax , 272
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtUnloadKey ENDP
; ULONG __stdcall NtUnloadKey2( ULONG arg_01 , ULONG arg_02 );
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
NtUnloadKey2 ENDP
; ULONG __stdcall NtUnloadKeyEx( ULONG arg_01 , ULONG arg_02 );
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
NtUnloadKeyEx ENDP
; ULONG __stdcall NtUnlockFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtUnlockFile ENDP
; ULONG __stdcall NtUnlockVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtUnlockVirtualMemory ENDP
; ULONG __stdcall NtUnmapViewOfSection( ULONG arg_01 , ULONG arg_02 );
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
NtUnmapViewOfSection ENDP
; ULONG __stdcall NtVdmControl( ULONG arg_01 , ULONG arg_02 );
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
NtVdmControl ENDP
; ULONG __stdcall NtWaitForDebugEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtWaitForDebugEvent ENDP
; ULONG __stdcall NtWaitForMultipleObjects( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtWaitForMultipleObjects ENDP
; ULONG __stdcall NtWaitForSingleObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtWaitForSingleObject ENDP
; ULONG __stdcall NtWaitHighEventPair( ULONG arg_01 );
NtWaitHighEventPair PROC STDCALL arg_01:DWORD
mov eax , 282
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtWaitHighEventPair ENDP
; ULONG __stdcall NtWaitLowEventPair( ULONG arg_01 );
NtWaitLowEventPair PROC STDCALL arg_01:DWORD
mov eax , 283
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
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 );
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
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 );
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
NtWriteFileGather ENDP
; ULONG __stdcall NtWriteRequestData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
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
NtWriteRequestData ENDP
; ULONG __stdcall NtWriteVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
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
NtWriteVirtualMemory ENDP
; ULONG __stdcall NtYieldExecution( );
NtYieldExecution PROC STDCALL
mov eax , 288
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtYieldExecution ENDP
; ULONG __stdcall NtCreateKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtCreateKeyedEvent ENDP
; ULONG __stdcall NtOpenKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
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
NtOpenKeyedEvent ENDP
; ULONG __stdcall NtReleaseKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtReleaseKeyedEvent ENDP
; ULONG __stdcall NtWaitForKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
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
NtWaitForKeyedEvent ENDP
; ULONG __stdcall NtQueryPortInformationProcess( );
NtQueryPortInformationProcess PROC STDCALL
mov eax , 293
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtQueryPortInformationProcess ENDP
; ULONG __stdcall NtGetCurrentProcessorNumber( );
NtGetCurrentProcessorNumber PROC STDCALL
mov eax , 294
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtGetCurrentProcessorNumber ENDP
; ULONG __stdcall NtWaitForMultipleObjects32( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
NtWaitForMultipleObjects32 PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 295
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
NtWaitForMultipleObjects32 ENDP
|
dino/lcs/enemy/5E.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | 6 | 81497 | copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
004D3E move.l D0, (A4)+
004D40 dbra D1, $4d38
010980 cmp.b ($5e,A3), D0 [123p+ 5E]
010984 beq $109aa [enemy+5E]
0109CA move.b ($5e,A2), ($5e,A3)
0109D0 move.b ($2,A2), ($2,A3) [enemy+5E]
010FD0 cmp.b ($5e,A3), D0 [item+5E]
010FD4 beq $10fe6 [enemy+5E]
011024 move.b ($5e,A2), ($5e,A3)
01102A move.b ($2,A2), ($2,A3) [enemy+5E]
011364 cmp.b ($5e,A3), D0
011368 beq $1137a [enemy+5E]
0113B2 move.b ($5e,A2), ($5e,A3)
0113B8 move.b ($2,A2), ($2,A3) [enemy+5E]
011652 move.b ($5e,A2), D2
011656 cmp.b ($e9,A3), D2 [enemy+5E]
0118E0 move.b ($5e,A2), ($5e,A3) [enemy+ 0]
0118E6 move.b ($2,A2), ($2,A3) [enemy+5E]
011AF6 cmp.b ($5e,A3), D0 [123p+ 5E]
011AFA beq $11b20 [enemy+5E]
011B3E move.b ($5e,A2), ($5e,A3)
011B44 move.b ($2,A2), ($2,A3) [enemy+5E]
011D6A move.b ($5e,A2), D2
011D6E cmp.b ($e9,A3), D2 [enemy+5E]
011E9C move.b ($5e,A2), D0
011EA0 cmp.b ($5e,A3), D0 [enemy+5E]
011EA4 beq $11eca [enemy+5E]
011EE4 move.b ($5e,A2), ($5e,A3)
011EEA move.b #$2, ($0,A3) [enemy+5E]
01223E move.b ($5e,A2), ($5e,A3)
012244 move.b ($2,A2), ($2,A3) [enemy+5E]
0123A8 move.b ($5e,A2), ($5e,A3)
0123AE move.b ($2,A2), ($2,A3) [enemy+5E]
01247C move.b ($5e,A2), D0
012480 cmp.b ($5e,A3), D0 [enemy+5E]
012530 move.b ($5e,A6), ($5e,A3) [enemy+68]
012536 move.b ($2,A6), ($2,A3) [enemy+5E]
03443C move.b ($67be,A5), ($5e,A6) [enemy+59]
034442 addq.b #1, ($67be,A5) [enemy+5E]
034482 move.b ($67be,A5), ($5e,A6)
034488 addq.b #1, ($67be,A5) [enemy+5E]
034704 move.b ($67be,A5), ($5e,A6) [enemy+59]
03470A addq.b #1, ($67be,A5) [enemy+5E]
036112 move.b ($67be,A5), ($5e,A6)
036118 addq.b #1, ($67be,A5) [enemy+5E]
03613C move.b ($67be,A5), ($5e,A6)
036142 addq.b #1, ($67be,A5) [enemy+5E]
03617E move.b ($67be,A5), ($5e,A6)
036184 addq.b #1, ($67be,A5) [enemy+5E]
03619E move.b ($67be,A5), ($5e,A6)
0361A4 addq.b #1, ($67be,A5) [enemy+5E]
0361F2 move.b ($67be,A5), ($5e,A6)
0361F8 addq.b #1, ($67be,A5) [enemy+5E]
036212 move.b ($67be,A5), ($5e,A6)
036218 addq.b #1, ($67be,A5) [enemy+5E]
03674E move.b ($67be,A5), ($5e,A6)
036754 addq.b #1, ($67be,A5) [enemy+5E]
036794 move.b ($67be,A5), ($5e,A6)
03679A addq.b #1, ($67be,A5) [enemy+5E]
0367B4 move.b ($67be,A5), ($5e,A6)
0367BA addq.b #1, ($67be,A5) [enemy+5E]
03B30A move.b ($67be,A5), ($5e,A6)
03B310 addq.b #1, ($67be,A5) [enemy+5E]
03B346 move.b ($67be,A5), ($5e,A6)
03B34C addq.b #1, ($67be,A5) [enemy+5E]
03B384 move.b ($67be,A5), ($5e,A6)
03B38A addq.b #1, ($67be,A5) [enemy+5E]
03B3A8 move.b ($67be,A5), ($5e,A6)
03B3AE addq.b #1, ($67be,A5) [enemy+5E]
03B3C8 move.b ($67be,A5), ($5e,A6)
03B3CE addq.b #1, ($67be,A5) [enemy+5E]
03B416 move.b ($67be,A5), ($5e,A6)
03B41C addq.b #1, ($67be,A5) [enemy+5E]
03B438 move.b ($67be,A5), ($5e,A6)
03B43E addq.b #1, ($67be,A5) [enemy+5E]
03B45A move.b ($67be,A5), ($5e,A6)
03B460 addq.b #1, ($67be,A5) [enemy+5E]
03B516 move.b ($67be,A5), ($5e,A6)
03B51C addq.b #1, ($67be,A5) [enemy+5E]
03C27C move.b ($67be,A5), ($5e,A6)
03C282 addq.b #1, ($67be,A5) [enemy+5E]
03C2D0 move.b ($67be,A5), ($5e,A6)
03C2D6 addq.b #1, ($67be,A5) [enemy+5E]
03C376 move.b ($67be,A5), ($5e,A6)
03C37C addq.b #1, ($67be,A5) [enemy+5E]
03C50E move.b ($67be,A5), ($5e,A6)
03C514 addq.b #1, ($67be,A5) [enemy+5E]
03EC8A move.b ($67be,A5), ($5e,A6)
03EC90 addq.b #1, ($67be,A5) [enemy+5E]
03EE98 move.b ($67be,A5), ($5e,A6)
03EE9E addq.b #1, ($67be,A5) [enemy+5E]
03EF0E move.b ($67be,A5), ($5e,A6)
03EF14 addq.b #1, ($67be,A5) [enemy+5E]
03F864 move.b ($67be,A5), ($5e,A6)
03F86A addq.b #1, ($67be,A5) [enemy+5E]
03F89C move.b ($67be,A5), ($5e,A6)
03F8A2 addq.b #1, ($67be,A5) [enemy+5E]
03F9AA move.b ($67be,A5), ($5e,A6)
03F9B0 addq.b #1, ($67be,A5) [enemy+5E]
03FA0E move.b ($67be,A5), ($5e,A6)
03FA14 addq.b #1, ($67be,A5) [enemy+5E]
040E36 move.b ($67be,A5), ($5e,A6)
040E3C addq.b #1, ($67be,A5) [enemy+5E]
041490 move.b ($67be,A5), ($5e,A6)
041496 addq.b #1, ($67be,A5) [enemy+5E]
0414D6 move.b ($67be,A5), ($5e,A6)
0414DC addq.b #1, ($67be,A5) [enemy+5E]
04157E move.b ($67be,A5), ($5e,A6)
041584 addq.b #1, ($67be,A5) [enemy+5E]
0415B8 move.b ($67be,A5), ($5e,A6)
0415BE addq.b #1, ($67be,A5) [enemy+5E]
0415D8 move.b ($67be,A5), ($5e,A6)
0415DE addq.b #1, ($67be,A5) [enemy+5E]
041872 move.b ($67be,A5), ($5e,A6)
041878 addq.b #1, ($67be,A5) [enemy+5E]
041A0A move.b ($67be,A5), ($5e,A6)
041A10 addq.b #1, ($67be,A5) [enemy+5E]
04221E move.b ($67be,A5), ($5e,A6)
042224 addq.b #1, ($67be,A5) [enemy+5E]
043180 move.b ($67be,A5), ($5e,A6)
043186 addq.b #1, ($67be,A5) [enemy+5E]
043228 move.b ($67be,A5), ($5e,A6)
04322E addq.b #1, ($67be,A5) [enemy+5E]
043622 move.b ($67be,A5), ($5e,A6)
043628 addq.b #1, ($67be,A5) [enemy+5E]
04366C move.b ($67be,A5), ($5e,A6) [enemy+59]
043672 addq.b #1, ($67be,A5) [enemy+5E]
0464C6 move.b ($67be,A5), ($5e,A6)
0464CC addq.b #1, ($67be,A5) [enemy+5E]
04650C move.b ($67be,A5), ($5e,A6)
046512 addq.b #1, ($67be,A5) [enemy+5E]
0465AA move.b ($67be,A5), ($5e,A6)
0465B0 addq.b #1, ($67be,A5) [enemy+5E]
048B86 move.b ($67be,A5), ($5e,A6)
048B8C addq.b #1, ($67be,A5) [enemy+5E]
048BC4 move.b ($67be,A5), ($5e,A6)
048BCA addq.b #1, ($67be,A5) [enemy+5E]
04E320 move.b ($67be,A5), ($5e,A6)
04E326 addq.b #1, ($67be,A5) [enemy+5E]
04E958 move.b ($67be,A5), ($5e,A6)
04E95E addq.b #1, ($67be,A5) [enemy+5E]
04FFCC move.b ($67be,A5), ($5e,A6)
04FFD2 addq.b #1, ($67be,A5) [enemy+5E]
053648 move.b ($67be,A5), ($5e,A6)
05364E addq.b #1, ($67be,A5) [enemy+5E]
0559B4 move.b ($67be,A5), ($5e,A6)
0559BA addq.b #1, ($67be,A5) [enemy+5E]
055B92 move.b ($67be,A5), ($5e,A6)
055B98 addq.b #1, ($67be,A5) [enemy+5E]
057FE2 move.b ($67be,A5), ($5e,A6)
057FE8 addq.b #1, ($67be,A5) [enemy+5E]
058020 move.b ($67be,A5), ($5e,A6)
058026 addq.b #1, ($67be,A5) [enemy+5E]
0580F4 move.b ($67be,A5), ($5e,A6)
0580FA addq.b #1, ($67be,A5) [enemy+5E]
059228 move.b ($67be,A5), ($5e,A6)
05922E addq.b #1, ($67be,A5) [enemy+5E]
05949A move.b ($67be,A5), ($5e,A6)
0594A0 addq.b #1, ($67be,A5) [enemy+5E]
0594BA move.b ($67be,A5), ($5e,A6)
0594C0 addq.b #1, ($67be,A5) [enemy+5E]
059DA6 move.b ($67be,A5), ($5e,A6)
059DAC addq.b #1, ($67be,A5) [enemy+5E]
059DF6 move.b ($67be,A5), ($5e,A6)
059DFC addq.b #1, ($67be,A5) [enemy+5E]
059F1C move.b ($67be,A5), ($5e,A6)
059F22 addq.b #1, ($67be,A5) [enemy+5E]
059F60 move.b ($67be,A5), ($5e,A6)
059F66 addq.b #1, ($67be,A5) [enemy+5E]
05A4DC move.b ($67be,A5), ($5e,A6)
05A4E2 addq.b #1, ($67be,A5) [enemy+5E]
05A662 move.b ($67be,A5), ($5e,A6)
05A668 addq.b #1, ($67be,A5) [enemy+5E]
05AE52 move.b ($67be,A5), ($5e,A6)
05AE58 addq.b #1, ($67be,A5) [enemy+5E]
05B98C move.b ($67be,A5), ($5e,A6)
05B992 addq.b #1, ($67be,A5) [enemy+5E]
05C434 move.b ($67be,A5), ($5e,A6)
05C43A addq.b #1, ($67be,A5) [enemy+5E]
05FA12 move.b ($67be,A5), ($5e,A6)
05FA18 addq.b #1, ($67be,A5) [enemy+5E]
06A238 move.b ($67be,A5), ($5e,A6)
06A23E addq.b #1, ($67be,A5) [enemy+5E]
0AAACA move.l (A0), D2
0AAACC move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, enemy+DE, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1]
0AAACE move.w D0, ($2,A0)
0AAAD2 cmp.l (A0), D0
0AAAD4 bne $aaafc
0AAAD8 move.l D2, (A0)+
0AAADA cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, enemy+DE, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1]
0AAAE6 move.l (A0), D2
0AAAE8 move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, enemy+DE, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1]
0AAAF4 move.l D2, (A0)+
0AAAF6 cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, enemy+DE, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1]
copyright zengfr site:http://github.com/zengfr/romhack
|
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_21829_1323.asm | ljhsiun2/medusa | 9 | 10188 | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1e7b6, %rsi
lea addresses_WC_ht+0xd9d6, %rdi
nop
and %rbx, %rbx
mov $124, %rcx
rep movsl
nop
nop
nop
nop
nop
sub $219, %rbp
lea addresses_WC_ht+0xd4f6, %r8
nop
xor $38509, %r12
movups (%r8), %xmm1
vpextrq $1, %xmm1, %rbx
xor $29870, %rbx
lea addresses_WT_ht+0x7af6, %rbp
add %rdi, %rdi
movb (%rbp), %r8b
nop
nop
nop
sub %r12, %r12
lea addresses_WC_ht+0x1a5b6, %r8
nop
nop
xor $15548, %rdi
movw $0x6162, (%r8)
nop
nop
nop
nop
nop
inc %r12
lea addresses_WT_ht+0x190ca, %rsi
lea addresses_D_ht+0x1a012, %rdi
nop
nop
dec %r13
mov $17, %rcx
rep movsl
nop
nop
nop
cmp %r13, %r13
lea addresses_UC_ht+0x64f6, %rsi
lea addresses_A_ht+0x13f86, %rdi
nop
nop
and %rbp, %rbp
mov $74, %rcx
rep movsq
nop
nop
nop
nop
xor $6251, %r13
lea addresses_D_ht+0x128f6, %rdi
sub %rcx, %rcx
movb $0x61, (%rdi)
nop
nop
sub $48083, %rbp
lea addresses_D_ht+0xe4f6, %rcx
nop
nop
nop
nop
cmp %rbx, %rbx
mov (%rcx), %r13
and $57904, %rbp
lea addresses_A_ht+0x2ad2, %rsi
lea addresses_A_ht+0x6f6, %rdi
nop
nop
nop
nop
nop
and %r12, %r12
mov $109, %rcx
rep movsq
nop
nop
nop
nop
add %r13, %r13
lea addresses_A_ht+0xf6f6, %rbx
nop
nop
nop
cmp %rcx, %rcx
mov (%rbx), %r12d
sub $17899, %rcx
lea addresses_normal_ht+0x184fa, %r12
nop
nop
nop
and %rcx, %rcx
mov $0x6162636465666768, %r13
movq %r13, %xmm5
movups %xmm5, (%r12)
nop
nop
nop
xor %r13, %r13
lea addresses_WT_ht+0xdef6, %rsi
nop
nop
nop
inc %r8
mov $0x6162636465666768, %r12
movq %r12, (%rsi)
nop
nop
dec %r12
lea addresses_normal_ht+0x1dbec, %rbp
nop
nop
add %r8, %r8
movl $0x61626364, (%rbp)
nop
nop
nop
nop
xor $38807, %r13
lea addresses_UC_ht+0x4a94, %rsi
lea addresses_A_ht+0x10e3a, %rdi
nop
nop
nop
nop
add $16218, %r8
mov $83, %rcx
rep movsb
nop
nop
sub $26690, %r13
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r8
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rdx
// Store
lea addresses_PSE+0xb376, %rax
nop
nop
and %r10, %r10
mov $0x5152535455565758, %r9
movq %r9, %xmm6
movups %xmm6, (%rax)
nop
nop
nop
nop
nop
cmp %rax, %rax
// Store
lea addresses_PSE+0x1bef6, %rcx
nop
nop
nop
nop
inc %rdx
movb $0x51, (%rcx)
sub %r10, %r10
// Load
lea addresses_WC+0x168f6, %rax
nop
nop
nop
nop
and %r9, %r9
movb (%rax), %r14b
nop
nop
nop
nop
add $26287, %rax
// Store
lea addresses_A+0x142f6, %rdx
cmp $39103, %rax
mov $0x5152535455565758, %r10
movq %r10, (%rdx)
xor $55170, %rdi
// Store
lea addresses_D+0x1e126, %r9
clflush (%r9)
nop
nop
nop
cmp %r10, %r10
movl $0x51525354, (%r9)
nop
nop
nop
add %rax, %rax
// Store
lea addresses_A+0x1e99e, %rdi
inc %rax
mov $0x5152535455565758, %r9
movq %r9, %xmm0
and $0xffffffffffffffc0, %rdi
movntdq %xmm0, (%rdi)
nop
nop
nop
nop
nop
and $2542, %r9
// Store
lea addresses_UC+0x162f6, %rax
nop
and $56133, %r14
movb $0x51, (%rax)
nop
cmp %r10, %r10
// Faulty Load
lea addresses_US+0xdaf6, %rdi
nop
nop
nop
sub %rdx, %rdx
mov (%rdi), %r10
lea oracles, %r9
and $0xff, %r10
shlq $12, %r10
mov (%r9,%r10,1), %r10
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4, 'same': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 11, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': False, 'type': 'addresses_D'}, 'OP': 'STOR'}
{'dst': {'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 2, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9, 'same': True, 'type': 'addresses_D_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 8, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'src': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 2, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'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
*/
|
Cubical/Experiments/Brunerie.agda | xekoukou/cubical | 0 | 2203 | {-# OPTIONS --safe #-}
module Cubical.Experiments.Brunerie where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Function
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.Pointed
open import Cubical.Foundations.HLevels
open import Cubical.Foundations.Univalence
open import Cubical.Data.Bool
open import Cubical.Data.Nat
open import Cubical.Data.Int
open import Cubical.HITs.S1 hiding (encode)
open import Cubical.HITs.S2
open import Cubical.HITs.S3
open import Cubical.HITs.Join
open import Cubical.HITs.SetTruncation as SetTrunc
open import Cubical.HITs.GroupoidTruncation as GroupoidTrunc
open import Cubical.HITs.2GroupoidTruncation as 2GroupoidTrunc
open import Cubical.HITs.Truncation as Trunc
open import Cubical.HITs.Susp renaming (toSusp to σ)
open import Cubical.Homotopy.Loopspace
open import Cubical.Homotopy.Hopf
open S¹Hopf
-- This code is adapted from examples/brunerie3.ctt on the pi4s3_nobug branch of cubicaltt
Bool∙ S¹∙ S³∙ : Pointed₀
Bool∙ = (Bool , true)
S¹∙ = (S¹ , base)
S³∙ = (S³ , base)
∥_∥₃∙ ∥_∥₄∙ : Pointed₀ → Pointed₀
∥ A , a ∥₃∙ = ∥ A ∥₃ , ∣ a ∣₃
∥ A , a ∥₄∙ = ∥ A ∥₄ , ∣ a ∣₄
join∙ : Pointed₀ → Type₀ → Pointed₀
join∙ (A , a) B = join A B , inl a
Ω² Ω³ : Pointed₀ → Pointed₀
Ω² = Ω^ 2
Ω³ = Ω^ 3
mapΩrefl : {A : Pointed₀} {B : Type₀} (f : A .fst → B) → Ω A .fst → Ω (B , f (pt A)) .fst
mapΩrefl f p i = f (p i)
mapΩ²refl : {A : Pointed₀} {B : Type₀} (f : A .fst → B) → Ω² A .fst → Ω² (B , f (pt A)) .fst
mapΩ²refl f p i j = f (p i j)
mapΩ³refl : {A : Pointed₀} {B : Type₀} (f : A .fst → B) → Ω³ A .fst → Ω³ (B , f (pt A)) .fst
mapΩ³refl f p i j k = f (p i j k)
meridS² : S¹ → Path S² base base
meridS² base _ = base
meridS² (loop i) j = surf i j
alpha : join S¹ S¹ → S²
alpha (inl x) = base
alpha (inr y) = base
alpha (push x y i) = (meridS² y ∙ meridS² x) i
connectionBoth : {A : Type₀} {a : A} (p : Path A a a) → PathP (λ i → Path A (p i) (p i)) p p
connectionBoth {a = a} p i j =
hcomp
(λ k → λ
{ (i = i0) → p (j ∨ ~ k)
; (i = i1) → p (j ∧ k)
; (j = i0) → p (i ∨ ~ k)
; (j = i1) → p (i ∧ k)
})
a
data PostTotalHopf : Type₀ where
base : S¹ → PostTotalHopf
loop : (x : S¹) → PathP (λ i → Path PostTotalHopf (base x) (base (rotLoop x (~ i)))) refl refl
tee12 : (x : S²) → HopfS² x → PostTotalHopf
tee12 base y = base y
tee12 (surf i j) y =
hcomp
(λ k → λ
{ (i = i0) → base y
; (i = i1) → base y
; (j = i0) → base y
; (j = i1) → base (rotLoopInv y (~ i) k)
})
(loop (unglue (i ∨ ~ i ∨ j ∨ ~ j) y) i j)
tee34 : PostTotalHopf → join S¹ S¹
tee34 (base x) = inl x
tee34 (loop x i j) =
hcomp
(λ k → λ
{ (i = i0) → push x x (j ∧ ~ k)
; (i = i1) → push x x (j ∧ ~ k)
; (j = i0) → inl x
; (j = i1) → push (rotLoop x (~ i)) x (~ k)
})
(push x x j)
tee : (x : S²) → HopfS² x → join S¹ S¹
tee x y = tee34 (tee12 x y)
fibΩ : {B : Pointed₀} (P : B .fst → Type₀) → P (pt B) → Ω B .fst → Type₀
fibΩ P f p = PathP (λ i → P (p i)) f f
fibΩ² : {B : Pointed₀} (P : B .fst → Type₀) → P (pt B) → Ω² B .fst → Type₀
fibΩ² P f = fibΩ (fibΩ P f) refl
fibΩ³ : {B : Pointed₀} (P : B .fst → Type₀) → P (pt B) → Ω³ B .fst → Type₀
fibΩ³ P f = fibΩ² (fibΩ P f) refl
Ω³Hopf : Ω³ S²∙ .fst → Type₀
Ω³Hopf = fibΩ³ HopfS² base
fibContrΩ³Hopf : ∀ p → Ω³Hopf p
fibContrΩ³Hopf p i j k =
hcomp
(λ m → λ
{ (i = i0) → base
; (i = i1) → base
; (j = i0) → base
; (j = i1) → base
; (k = i0) → base
; (k = i1) →
isSetΩS¹ refl refl
(λ i j → transp (λ n → HopfS² (p i j n)) (i ∨ ~ i ∨ j ∨ ~ j) base)
(λ _ _ → base)
m i j
})
(transp (λ n → HopfS² (p i j (k ∧ n))) (i ∨ ~ i ∨ j ∨ ~ j ∨ ~ k) base)
h : Ω³ S²∙ .fst → Ω³ (join∙ S¹∙ S¹) .fst
h p i j k = tee (p i j k) (fibContrΩ³Hopf p i j k)
multTwoAux : (x : S²) → Path (Path ∥ S² ∥₄ ∣ x ∣₄ ∣ x ∣₄) refl refl
multTwoAux base i j = ∣ surf i j ∣₄
multTwoAux (surf k l) i j =
hcomp
(λ m → λ
{ (i = i0) → ∣ surf k l ∣₄
; (i = i1) → ∣ surf k l ∣₄
; (j = i0) → ∣ surf k l ∣₄
; (j = i1) → ∣ surf k l ∣₄
; (k = i0) → ∣ surf i j ∣₄
; (k = i1) → ∣ surf i j ∣₄
; (l = i0) → ∣ surf i j ∣₄
; (l = i1) → squash₄ _ _ _ _ _ _ (λ k i j → step₁ k i j) refl m k i j
})
(step₁ k i j)
where
step₁ : I → I → I → ∥ S² ∥₄
step₁ k i j =
hcomp {A = ∥ S² ∥₄}
(λ m → λ
{ (i = i0) → ∣ surf k (l ∧ m) ∣₄
; (i = i1) → ∣ surf k (l ∧ m) ∣₄
; (j = i0) → ∣ surf k (l ∧ m) ∣₄
; (j = i1) → ∣ surf k (l ∧ m) ∣₄
; (k = i0) → ∣ surf i j ∣₄
; (k = i1) → ∣ surf i j ∣₄
; (l = i0) → ∣ surf i j ∣₄
})
∣ surf i j ∣₄
multTwoTildeAux : (t : ∥ S² ∥₄) → Path (Path ∥ S² ∥₄ t t) refl refl
multTwoTildeAux ∣ x ∣₄ = multTwoAux x
multTwoTildeAux (squash₄ _ _ _ _ _ _ t u k l m n) i j =
squash₄ _ _ _ _ _ _
(λ k l m → multTwoTildeAux (t k l m) i j)
(λ k l m → multTwoTildeAux (u k l m) i j)
k l m n
multTwoEquivAux : Path (Path (∥ S² ∥₄ ≃ ∥ S² ∥₄) (idEquiv _) (idEquiv _)) refl refl
multTwoEquivAux i j =
( f i j
, hcomp
(λ l → λ
{ (i = i0) → isPropIsEquiv _ (idIsEquiv _) (idIsEquiv _) l
; (i = i1) → isPropIsEquiv _ (idIsEquiv _) (idIsEquiv _) l
; (j = i0) → isPropIsEquiv _ (idIsEquiv _) (idIsEquiv _) l
; (j = i1) →
isPropIsEquiv _
(transp (λ k → isEquiv (f i k)) (i ∨ ~ i) (idIsEquiv _))
(idIsEquiv _)
l
})
(transp (λ k → isEquiv (f i (j ∧ k))) (i ∨ ~ i ∨ ~ j) (idIsEquiv _))
)
where
f : I → I → ∥ S² ∥₄ → ∥ S² ∥₄
f i j t = multTwoTildeAux t i j
tHopf³ : S³ → Type₀
tHopf³ base = ∥ S² ∥₄
tHopf³ (surf i j k) =
Glue ∥ S² ∥₄
(λ { (i = i0) → (∥ S² ∥₄ , idEquiv _)
; (i = i1) → (∥ S² ∥₄ , idEquiv _)
; (j = i0) → (∥ S² ∥₄ , idEquiv _)
; (j = i1) → (∥ S² ∥₄ , idEquiv _)
; (k = i0) → (∥ S² ∥₄ , multTwoEquivAux i j)
; (k = i1) → (∥ S² ∥₄ , idEquiv _)
})
π₃S³ : Ω³ S³∙ .fst → Ω² ∥ S²∙ ∥₄∙ .fst
π₃S³ p i j = transp (λ k → tHopf³ (p j k i)) i0 ∣ base ∣₄
codeS² : S² → hGroupoid _
codeS² s = ∥ HopfS² s ∥₃ , squash₃
codeTruncS² : ∥ S² ∥₄ → hGroupoid _
codeTruncS² = 2GroupoidTrunc.rec (isOfHLevelTypeOfHLevel 3) codeS²
encodeTruncS² : Ω ∥ S²∙ ∥₄∙ .fst → ∥ S¹ ∥₃
encodeTruncS² p = transp (λ i → codeTruncS² (p i) .fst) i0 ∣ base ∣₃
codeS¹ : S¹ → hSet _
codeS¹ s = ∥ helix s ∥₂ , squash₂
codeTruncS¹ : ∥ S¹ ∥₃ → hSet _
codeTruncS¹ = GroupoidTrunc.rec (isOfHLevelTypeOfHLevel 2) codeS¹
encodeTruncS¹ : Ω ∥ S¹∙ ∥₃∙ .fst → ∥ ℤ ∥₂
encodeTruncS¹ p = transp (λ i → codeTruncS¹ (p i) .fst) i0 ∣ pos zero ∣₂
-- THE BIG GAME
f3 : Ω³ S³∙ .fst → Ω³ (join∙ S¹∙ S¹) .fst
f3 = mapΩ³refl S³→joinS¹S¹
f4 : Ω³ (join∙ S¹∙ S¹) .fst → Ω³ S²∙ .fst
f4 = mapΩ³refl alpha
f5 : Ω³ S²∙ .fst → Ω³ (join∙ S¹∙ S¹) .fst
f5 = h
f6 : Ω³ (join∙ S¹∙ S¹) .fst → Ω³ S³∙ .fst
f6 = mapΩ³refl joinS¹S¹→S³
f7 : Ω³ S³∙ .fst → Ω² ∥ S²∙ ∥₄∙ .fst
f7 = π₃S³
g8 : Ω² ∥ S²∙ ∥₄∙ .fst → Ω ∥ S¹∙ ∥₃∙ .fst
g8 = mapΩrefl encodeTruncS²
g9 : Ω ∥ S¹∙ ∥₃∙ .fst → ∥ ℤ ∥₂
g9 = encodeTruncS¹
g10 : ∥ ℤ ∥₂ → ℤ
g10 = SetTrunc.rec isSetℤ (idfun ℤ)
-- don't run me
brunerie : ℤ
brunerie = g10 (g9 (g8 (f7 (f6 (f5 (f4 (f3 (λ i j k → surf i j k))))))))
-- simpler tests
test63 : ℕ → ℤ
test63 n = g10 (g9 (g8 (f7 (63n n))))
where
63n : ℕ → Ω³ S³∙ .fst
63n zero i j k = surf i j k
63n (suc n) = f6 (f3 (63n n))
foo : Ω³ S²∙ .fst
foo i j k =
hcomp
(λ l → λ
{ (i = i0) → surf l l
; (i = i1) → surf l l
; (j = i0) → surf l l
; (j = i1) → surf l l
; (k = i0) → surf l l
; (k = i1) → surf l l
})
base
sorghum : Ω³ S²∙ .fst
sorghum i j k =
hcomp
(λ l → λ
{ (i = i0) → surf j l
; (i = i1) → surf k (~ l)
; (j = i0) → surf k (i ∧ ~ l)
; (j = i1) → surf k (i ∧ ~ l)
; (k = i0) → surf j (i ∨ l)
; (k = i1) → surf j (i ∨ l)
})
(hcomp
(λ l → λ
{ (i = i0) → base
; (i = i1) → surf j l
; (j = i0) → surf k i
; (j = i1) → surf k i
; (k = i0) → surf j (i ∧ l)
; (k = i1) → surf j (i ∧ l)
})
(surf k i))
goo : Ω³ S²∙ .fst → ℤ
goo x = g10 (g9 (g8 (f7 (f6 (f5 x)))))
{- Computation of an alternative definition of the Brunerie number
based on https://github.com/agda/cubical/pull/741. One should note
that this computation by no means is comparable to the one of the term
"brunerie" defined above. This computation starts in π₃S³ rather than
π₃S². -}
-- The brunerie element can be shown to correspond to the following map
η₃ : (join S¹ S¹ , inl base) →∙ (Susp S² , north)
fst η₃ (inl x) = north
fst η₃ (inr x) = north
fst η₃ (push a b i) =
(σ (S² , base) (S¹×S¹→S² a b) ∙ σ (S² , base) (S¹×S¹→S² a b)) i
where
S¹×S¹→S² : S¹ → S¹ → S²
S¹×S¹→S² base y = base
S¹×S¹→S² (loop i) base = base
S¹×S¹→S² (loop i) (loop j) = surf i j
snd η₃ = refl
K₂ = ∥ S² ∥₄
-- We will need a map Ω (Susp S²) → K₂. It turns out that the
-- following map is fast. It need a bit of work, however. It's
-- esentially the same map as you find in ZCohomology from ΩKₙ₊₁ to
-- Kₙ. This gives another definition of f7 which appears to work better.
module f7stuff where
_+₂_ : K₂ → K₂ → K₂
_+₂_ = 2GroupoidTrunc.elim (λ _ → isOfHLevelΠ 4 λ _ → squash₄)
λ { base x → x
; (surf i j) x → surfc x i j}
where
surfc : (x : K₂) → typ ((Ω^ 2) (K₂ , x))
surfc =
2GroupoidTrunc.elim
(λ _ → isOfHLevelPath 4 (isOfHLevelPath 4 squash₄ _ _) _ _)
(S²ToSetElim (λ _ → squash₄ _ _ _ _) λ i j → ∣ surf i j ∣₄)
K₂≃K₂ : (x : S²) → K₂ ≃ K₂
fst (K₂≃K₂ x) y = ∣ x ∣₄ +₂ y
snd (K₂≃K₂ x) = help x
where
help : (x : _) → isEquiv (λ y → ∣ x ∣₄ +₂ y)
help = S²ToSetElim (λ _ → isProp→isSet (isPropIsEquiv _))
(idEquiv _ .snd)
Code : Susp S² → Type ℓ-zero
Code north = K₂
Code south = K₂
Code (merid a i) = ua (K₂≃K₂ a) i
encode : (x : Susp S²) → north ≡ x → Code x
encode x = J (λ x p → Code x) ∣ base ∣₄
-- We now get an alternative definition of f7
f7' : typ (Ω (Susp∙ S²)) → K₂
f7' = f7stuff.encode north
-- We can define the Brunerie number by
brunerie' : ℤ
brunerie' = g10 (g9 (g8 λ i j → f7' λ k → η₃ .fst (push (loop i) (loop j) k)))
-- Computing it takes ~1s
brunerie'≡-2 : brunerie' ≡ -2
brunerie'≡-2 = refl
|
05/5-a/5-a keyboard.asm | AbstractXan/ComputerSystemDesignLab | 0 | 85660 | (LOOP)
@KBD
D=M
@24575
M=D
@LOOP
0;JMP
|
libsrc/sdcard/sd_read_cid.asm | meesokim/z88dk | 0 | 100903 | <filename>libsrc/sdcard/sd_read_cid.asm
;
; SD Card driver
; Taken from the OSCA Bootcode by <NAME> 2011
; Port by <NAME>, 2012
;
; Returns HL = Pointer to device ID string
;
; $Id: sd_read_cid.asm,v 1.2 2015/01/19 01:33:07 pauloscustodio Exp $
;
PUBLIC sd_read_cid
PUBLIC sd_vnchars
EXTERN sector_buffer_loc
EXTERN sd_card_info
EXTERN sd_send_command_null_args
EXTERN sd_wait_data_token
EXTERN sd_read_bytes_to_sector_buffer
INCLUDE "sdcard.def"
sd_vnchars:
defm " vx.x SN:00000000 "
defb 0,0
sd_read_cid:
ld a,CMD10 ; send "read CID" $4a 00 00 00 00 00 command for more card data
call sd_send_command_null_args
ld a,sd_error_bad_command_response
ret nz ; ZF set if command response = 00
call sd_wait_data_token ; wait for the data token
ld a,sd_error_data_token_timeout
ret nz
ld b,18
call sd_read_bytes_to_sector_buffer ; read 16 bytes + 2 CRC
ld hl,(sector_buffer_loc) ; Build name / version / serial number of card as ASCII string
push hl
ld bc,$20
add hl,bc
ex de,hl ; DE = sector buffer + 20
pop hl
ld c,3
add hl,bc ; HL = sector buffer + 3
ld c,5
ld a,(sd_card_info)
and $f
jr nz,sd_cn5
inc bc
sd_cn5:
ldir
push hl
push de
ld hl,sd_vnchars
ld bc,20
ldir
pop de
pop hl
inc de
inc de
ld a,(hl)
srl a
srl a
srl a
srl a
add a,$30 ; put in version digit 1
ld (de),a
inc de
inc de
ld a,(hl)
and $f
add a,$30
ld (de),a ; put in version digit 2
inc de
inc de
inc de
inc de
inc de
inc hl
ld b,4
sd_snulp:
ld a,(hl) ; put in 32 bit serial number
srl a
srl a
srl a
srl a
add a,$30
cp $3a
jr c,sd_hvl1
add a,$7
sd_hvl1:
ld (de),a
inc de
ld a,(hl)
and $f
add a,$30
cp $3a
jr c,sd_hvl2
add a,$7
sd_hvl2:
ld (de),a
inc de
inc hl
djnz sd_snulp
ld hl,(sector_buffer_loc) ; Drive (hardware) name string at HL
ld de,$20
add hl,de
xor a
ret
|
programs/oeis/096/A096979.asm | neoneye/loda | 22 | 4655 | ; A096979: Sum of the areas of the first n+1 Pell triangles.
; 0,1,6,36,210,1225,7140,41616,242556,1413721,8239770,48024900,279909630,1631432881,9508687656,55420693056,323015470680,1882672131025,10973017315470,63955431761796,372759573255306,2172602007770041
mul $0,2
mov $1,3
mov $2,4
lpb $0
sub $0,2
add $2,$1
add $1,$2
add $1,$2
add $2,$1
lpe
div $1,16
mov $0,$1
|
programs/oeis/047/A047385.asm | karttu/loda | 1 | 100831 | <reponame>karttu/loda<filename>programs/oeis/047/A047385.asm<gh_stars>1-10
; A047385: Numbers that are congruent to {2, 5} mod 7.
; 2,5,9,12,16,19,23,26,30,33,37,40,44,47,51,54,58,61,65,68,72,75,79,82,86,89,93,96,100,103,107,110,114,117,121,124,128,131,135,138,142,145,149,152,156,159,163,166,170
mov $1,$0
mul $1,7
div $1,2
add $1,2
|
disconnect.scpt | deoxilix/dotxilix | 0 | 115 | <filename>disconnect.scpt
tell application "Tunnelblick"
disconnect "raj"
end tell
|
programs/oeis/054/A054066.asm | jmorken/loda | 1 | 91620 | ; A054066: Position of n-th 1 in A054065.
; 1,3,5,9,14,19,26,33,42,52,62,74,87,100,115,130,147,165,183,203,223,245,268,291,316,342,368,396,424,454,485,516,549,583,617,653,689,727,766,805,846,887,930,974,1018,1064,1111,1158,1207
mov $5,$0
mov $7,$0
add $7,1
lpb $7
clr $0,5
mov $0,$5
sub $7,1
sub $0,$7
mov $1,$0
add $1,1
add $4,$0
mov $3,$4
cal $3,114986 ; Characteristic function of (A000201 prefixed with 0).
add $3,$1
sub $3,1
add $6,$3
lpe
mov $1,$6
|
awa/src/awa-commands-start.adb | My-Colaborations/ada-awa | 81 | 6833 | -----------------------------------------------------------------------
-- awa-commands-start -- Command to start the web server
-- Copyright (C) 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with System;
with Servlet.Core;
with Servlet.Server;
with GNAT.Sockets;
with AWA.Applications;
package body AWA.Commands.Start is
use Ada.Strings.Unbounded;
use GNAT.Sockets;
use type System.Address;
-- ------------------------------
-- Start the server and all the application that have been registered.
-- ------------------------------
overriding
procedure Execute (Command : in out Command_Type;
Name : in String;
Args : in Argument_List'Class;
Context : in out Context_Type) is
begin
if Args.Get_Count /= 0 then
Command.Usage (Name, Context);
return;
end if;
Command.Configure_Server (Context);
Command.Configure_Applications (Context);
Command.Start_Server (Context);
Command.Wait_Server (Context);
end Execute;
-- ------------------------------
-- Configure the web server container before applications are registered.
-- ------------------------------
procedure Configure_Server (Command : in out Command_Type;
Context : in out Context_Type) is
Config : Servlet.Server.Configuration;
begin
-- If daemon(3) is available and -d is defined, run it so that the parent
-- process terminates and the child process continues.
if Command.Daemon and Sys_Daemon'Address /= System.Null_Address then
declare
Result : constant Integer := Sys_Daemon (1, 0);
begin
if Result /= 0 then
Context.Console.Error ("Cannot run in background");
end if;
end;
end if;
Config.Listening_Port := Command.Listening_Port;
Config.Max_Connection := Command.Max_Connection;
Config.TCP_No_Delay := Command.TCP_No_Delay;
if Command.Upload'Length > 0 then
Config.Upload_Directory := To_Unbounded_String (Command.Upload.all);
end if;
Command_Drivers.WS.Configure (Config);
end Configure_Server;
-- ------------------------------
-- Configure all registered applications.
-- ------------------------------
procedure Configure_Applications (Command : in out Command_Type;
Context : in out Context_Type) is
pragma Unreferenced (Command);
procedure Configure (URI : in String;
Application : in Servlet.Core.Servlet_Registry_Access);
Count : Natural := 0;
procedure Configure (URI : in String;
Application : in Servlet.Core.Servlet_Registry_Access) is
begin
if Application.all in ASF.Applications.Main.Application'Class then
Configure (ASF.Applications.Main.Application'Class (Application.all),
URI (URI'First + 1 .. URI'Last),
Context);
Count := Count + 1;
end if;
end Configure;
begin
Command_Drivers.WS.Iterate (Configure'Access);
if Count = 0 then
Context.Console.Error (-("There is no application"));
return;
end if;
end Configure_Applications;
-- ------------------------------
-- Start the web server.
-- ------------------------------
procedure Start_Server (Command : in out Command_Type;
Context : in out Context_Type) is
pragma Unreferenced (Command);
begin
Context.Console.Notice (N_INFO, "Starting...");
Command_Drivers.WS.Start;
end Start_Server;
-- ------------------------------
-- Wait for the server to shutdown.
-- ------------------------------
procedure Wait_Server (Command : in out Command_Type;
Context : in out Context_Type) is
pragma Unreferenced (Context);
procedure Shutdown (URI : in String;
Application : in Servlet.Core.Servlet_Registry_Access);
procedure Shutdown (URI : in String;
Application : in Servlet.Core.Servlet_Registry_Access) is
pragma Unreferenced (URI);
begin
if Application.all in AWA.Applications.Application'Class then
AWA.Applications.Application'Class (Application.all).Close;
end if;
end Shutdown;
Address : GNAT.Sockets.Sock_Addr_Type;
Listen : GNAT.Sockets.Socket_Type;
Socket : GNAT.Sockets.Socket_Type;
begin
GNAT.Sockets.Create_Socket (Listen);
Address.Addr := GNAT.Sockets.Loopback_Inet_Addr;
if Command.Management_Port > 0 then
Address.Port := Port_Type (Command.Management_Port);
else
Address.Port := 0;
end if;
GNAT.Sockets.Bind_Socket (Listen, Address);
GNAT.Sockets.Listen_Socket (Listen);
loop
GNAT.Sockets.Accept_Socket (Listen, Socket, Address);
exit;
end loop;
GNAT.Sockets.Close_Socket (Socket);
GNAT.Sockets.Close_Socket (Listen);
Command_Drivers.WS.Iterate (Shutdown'Access);
end Wait_Server;
-- ------------------------------
-- Setup the command before parsing the arguments and executing it.
-- ------------------------------
overriding
procedure Setup (Command : in out Command_Type;
Config : in out GNAT.Command_Line.Command_Line_Configuration;
Context : in out Context_Type) is
begin
GC.Set_Usage (Config => Config,
Usage => Command.Get_Name & " [arguments]",
Help => Command.Get_Description);
GC.Define_Switch (Config => Config,
Output => Command.Management_Port'Access,
Switch => "-m:",
Long_Switch => "--management-port=",
Initial => Command.Management_Port,
Argument => "NUMBER",
Help => -("The server listening management port on localhost"));
GC.Define_Switch (Config => Config,
Output => Command.Listening_Port'Access,
Switch => "-p:",
Long_Switch => "--port=",
Initial => Command.Listening_Port,
Argument => "NUMBER",
Help => -("The server listening port"));
GC.Define_Switch (Config => Config,
Output => Command.Max_Connection'Access,
Switch => "-C:",
Long_Switch => "--connection=",
Initial => Command.Max_Connection,
Argument => "NUMBER",
Help => -("The number of connections handled"));
GC.Define_Switch (Config => Config,
Output => Command.Upload'Access,
Switch => "-u:",
Long_Switch => "--upload=",
Argument => "PATH",
Help => -("The server upload directory"));
GC.Define_Switch (Config => Config,
Output => Command.TCP_No_Delay'Access,
Switch => "-n",
Long_Switch => "--tcp-no-delay",
Help => -("Enable the TCP no delay option"));
if Sys_Daemon'Address /= System.Null_Address then
GC.Define_Switch (Config => Config,
Output => Command.Daemon'Access,
Switch => "-d",
Long_Switch => "--daemon",
Help => -("Run the server in the background"));
end if;
AWA.Commands.Setup_Command (Config, Context);
end Setup;
-- ------------------------------
-- Write the help associated with the command.
-- ------------------------------
overriding
procedure Help (Command : in out Command_Type;
Name : in String;
Context : in out Context_Type) is
pragma Unreferenced (Command, Context);
begin
null;
end Help;
begin
Command_Drivers.Driver.Add_Command ("start",
-("start the web server"),
Command'Access);
end AWA.Commands.Start;
|
Altair101/asm/programsUntested/player.asm | tigerfarm/arduino | 2 | 173719 | TEMPO equ 030h ;tempo
ENDFLAG equ 0ffh ;end of data flag
org 0
start lxi h,music ;address of music data
loop1 mov a,m ;get next data byte
cpi ENDFLAG ;end of data flag?
jz start ;yes, start over
mvi d,TEMPO ;d=tempo
loop2 dcr b
jnz loop3
mov b,m ;load note
loop3 dcr c
jnz loop2
dcr d
jnz loop2
inr l ;instead of inx h
jmp loop1
; Data for Daisy
music db 034Q
db 034Q
db 034Q
db 042Q
db 042Q
db 042Q
db 053Q
db 053Q
db 053Q
db 071Q
db 071Q
db 071Q
db 063Q
db 055Q
db 053Q
db 063Q
db 063Q
db 053Q
db 071Q
db 071Q
db 071Q
db 071Q
db 071Q
db 071Q
db 046Q
db 046Q
db 046Q
db 034Q
db 034Q
db 034Q
db 042Q
db 042Q
db 042Q
db 053Q
db 053Q
db 053Q
db 063Q
db 055Q
db 053Q
db 046Q
db 046Q
db 042Q
db 046Q
db 046Q
db 046Q
db 046Q
db 046Q
db 042Q
db 040Q
db 042Q
db 046Q
db 034Q
db 034Q
db 042Q
db 046Q
db 053Q
db 053Q
db 053Q
db 053Q
db 046Q
db 042Q
db 042Q
db 053Q
db 063Q
db 063Q
db 053Q
db 063Q
db 071Q
db 071Q
db 071Q
db 071Q
db 071Q
db 053Q
db 053Q
db 042Q
db 046Q
db 046Q
db 071Q
db 053Q
db 053Q
db 042Q
db 046Q
db 042Q
db 040Q
db 034Q
db 042Q
db 053Q
db 046Q
db 046Q
db 071Q
db 053Q
db 053Q
db 053Q
db 053Q
db 002Q
db 002Q
db 002Q
db 002Q
db 002Q
db 002Q
; db 377Q
; Data for Fool on the Hill
db 105Q
db 105Q
db 125Q
db 100Q
db 071Q
db 063Q
db 063Q
db 063Q
db 071Q
db 063Q
db 055Q
db 053Q
db 053Q
db 055Q
db 071Q
db 063Q
db 046Q
db 046Q
db 046Q
db 071Q
db 063Q
db 046Q
db 046Q
db 053Q
db 042Q
db 046Q
db 046Q
db 063Q
db 071Q
db 063Q
db 053Q
db 053Q
db 063Q
db 053Q
db 071Q
db 063Q
db 063Q
db 071Q
db 063Q
db 046Q
db 046Q
db 046Q
db 053Q
db 042Q
db 053Q
db 046Q
db 046Q
db 053Q
db 055Q
db 053Q
db 071Q
db 066Q
db 100Q
db 071Q
db 071Q
db 100Q
db 071Q
db 066Q
db 066Q
db 071Q
db 100Q
db 100Q
db 100Q
db 071Q
db 066Q
db 060Q
db 060Q
db 066Q
db 071Q
db 066Q
db 066Q
db 060Q
db 053Q
db 046Q
db 046Q
db 046Q
db 046Q
db 044Q
db 046Q
db 053Q
db 053Q
db 053Q
db 053Q
db 053Q
db 002Q
db 002Q
db 002Q
db 002Q
db 002Q
db 002Q
db 377Q
|
oeis/017/A017523.asm | neoneye/loda-programs | 11 | 170890 | ; A017523: a(n) = (12*n)^3.
; 0,1728,13824,46656,110592,216000,373248,592704,884736,1259712,1728000,2299968,2985984,3796416,4741632,5832000,7077888,8489664,10077696,11852352,13824000,16003008,18399744,21024576,23887872,27000000,30371328,34012224,37933056,42144192,46656000,51478848,56623104,62099136,67917312,74088000,80621568,87528384,94818816,102503232,110592000,119095488,128024064,137388096,147197952,157464000,168196608,179406144,191102976,203297472,216000000,229220928,242970624,257259456,272097792,287496000,303464448
mul $0,12
pow $0,3
|
source/amf/uml/amf-uml-extensions.ads | svn2github/matreshka | 24 | 21905 | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, <NAME> <<EMAIL>> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
-- An extension is used to indicate that the properties of a metaclass are
-- extended through a stereotype, and gives the ability to flexibly add (and
-- later remove) stereotypes to classes.
------------------------------------------------------------------------------
with AMF.UML.Associations;
limited with AMF.UML.Classes;
limited with AMF.UML.Extension_Ends;
limited with AMF.UML.Properties;
package AMF.UML.Extensions is
pragma Preelaborate;
type UML_Extension is limited interface
and AMF.UML.Associations.UML_Association;
type UML_Extension_Access is
access all UML_Extension'Class;
for UML_Extension_Access'Storage_Size use 0;
not overriding function Get_Is_Required
(Self : not null access constant UML_Extension)
return Boolean is abstract;
-- Getter of Extension::isRequired.
--
-- Indicates whether an instance of the extending stereotype must be
-- created when an instance of the extended class is created. The
-- attribute value is derived from the value of the lower property of the
-- ExtensionEnd referenced by Extension::ownedEnd; a lower value of 1
-- means that isRequired is true, but otherwise it is false. Since the
-- default value of ExtensionEnd::lower is 0, the default value of
-- isRequired is false.
not overriding function Get_Metaclass
(Self : not null access constant UML_Extension)
return AMF.UML.Classes.UML_Class_Access is abstract;
-- Getter of Extension::metaclass.
--
-- References the Class that is extended through an Extension. The
-- property is derived from the type of the memberEnd that is not the
-- ownedEnd.
not overriding function Get_Owned_End
(Self : not null access constant UML_Extension)
return AMF.UML.Extension_Ends.UML_Extension_End_Access is abstract;
-- Getter of Extension::ownedEnd.
--
-- References the end of the extension that is typed by a Stereotype.
not overriding procedure Set_Owned_End
(Self : not null access UML_Extension;
To : AMF.UML.Extension_Ends.UML_Extension_End_Access) is abstract;
-- Setter of Extension::ownedEnd.
--
-- References the end of the extension that is typed by a Stereotype.
not overriding function Is_Required
(Self : not null access constant UML_Extension)
return Boolean is abstract;
-- Operation Extension::isRequired.
--
-- The query isRequired() is true if the owned end has a multiplicity with
-- the lower bound of 1.
not overriding function Metaclass
(Self : not null access constant UML_Extension)
return AMF.UML.Classes.UML_Class_Access is abstract;
-- Operation Extension::metaclass.
--
-- The query metaclass() returns the metaclass that is being extended (as
-- opposed to the extending stereotype).
not overriding function Metaclass_End
(Self : not null access constant UML_Extension)
return AMF.UML.Properties.UML_Property_Access is abstract;
-- Operation Extension::metaclassEnd.
--
-- The query metaclassEnd() returns the Property that is typed by a
-- metaclass (as opposed to a stereotype).
end AMF.UML.Extensions;
|
chapter7/improve_timer/mbr.asm | liulinboyi/os | 6 | 170017 | ; 主引导程序
;-----------------------------------------------
%include "boot.inc"
SECTION MBR vstart=0x7c00
mov ax, cs
mov ds, ax
mov es, ax
mov ss, ax
mov fs, ax
mov sp, 0x7c00
mov ax, 0xb800
mov gs, ax
; 清屏
;---------------------------------------------------
mov ax, 0600h
mov bx, 0700h
mov cx, 0
mov dx, 184fh
int 10h
; 显示"MBR"
mov byte [gs:0x00], '1'
mov byte [gs:0x01], 0xA4
mov byte [gs:0x02], ' '
mov byte [gs:0x03], 0xA4
mov byte [gs:0x04], 'M'
mov byte [gs:0x05], 0xA4
mov byte [gs:0x06], 'B'
mov byte [gs:0x07], 0xA4
mov byte [gs:0x08], 'A'
mov byte [gs:0x09], 0xA4
mov eax, LOADER_START_SECTOR
mov bx, LOADER_BASE_ADDR
; 读取4个扇区
mov cx, 4
call rd_disk_m_16
; 直接跳到loader的起始代码执行
jmp LOADER_BASE_ADDR + 0x300
;-----------------------------------------------------------
; 读取磁盘的n个扇区,用于加载loader
; eax保存从硬盘读取到的数据的保存地址,ebx为起始扇区,cx为读取的扇区数
rd_disk_m_16:
;-----------------------------------------------------------
mov esi, eax
mov di, cx
mov dx, 0x1f2
mov al, cl
out dx, al
mov eax, esi
mov dx, 0x1f3
out dx, al
mov cl, 8
shr eax, cl
mov dx, 0x1f4
out dx, al
shr eax, cl
mov dx, 0x1f5
out dx, al
shr eax, cl
and al, 0x0f
or al, 0xe0
mov dx, 0x1f6
out dx, al
mov dx, 0x1f7
mov al, 0x20
out dx, al
.not_ready:
nop
in al, dx
and al, 0x88
cmp al, 0x08
jnz .not_ready
mov ax, di
mov dx, 256
mul dx
mov cx, ax
mov dx, 0x1f0
.go_on_read:
in ax, dx
mov [bx], ax
add bx, 2
loop .go_on_read
ret
times 510-($-$$) db 0
db 0x55, 0xaa
|
ada/src/microsoft/parse/parser_oo.ads | Lucretia/interview-questions | 0 | 24787 | -- Suppose an arithmetic expression is given as a binary tree. Each leaf is an integer and each internal node is
-- one of '+', '−', '∗', or '/'.
--
-- Given the root to such a tree, write a function to evaluate it.
--
-- For example, given the following tree:
--
-- *
-- / \
-- + +
-- / \ / \
-- 3 2 4 5
--
-- You should return 45, as it is (3 + 2) * (4 + 5).
package Parser_OO is
type Node is tagged private;
type Literal is new Node with private;
type Operator is new Node with private;
type Node_Ptr is access Node'Class;
Null_Node : constant Node;
Null_Literal : constant Literal;
Null_Operator : constant Operator;
-- Root is the root of the current sub-tree.
function Evaluate (Root : in Node_Ptr) return Integer;
private
type Node tagged is null record;
type Literal is new Node with record
Value : Integer;
end record;
type Operator is new Node with record
Which : Character;
Left : Node_Ptr;
Right : Node_Ptr;
end record;
Null_Node : constant Node := (others => <>);
Null_Literal : constant Literal := (Value => 0);
Null_Operator : constant Operator := (Which => '0', others => null);
end Parser_OO;
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr9.adb | best08618/asylo | 7 | 27800 | -- { dg-do compile }
package body Discr9 is
procedure Proc (From : in R; To : out R) is
begin
To := R'(D1 => False, D2 => From.D2, Field => From.Field);
end;
end Discr9;
|
source/damage.asm | evanbowman/Red | 5 | 18925 | <filename>source/damage.asm<gh_stars>1-10
;;; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
;;;
;;; ASM Source code for Red GBC, by <NAME>, 2021
;;;
;;;
;;; The following licence covers the source code included in this file. The
;;; game's characters and artwork belong to <NAME>, and should not be used
;;; without permission.
;;;
;;;
;;; 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.
;;;
;;; 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.
;;;
;;; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
;;; Really bad, but who even cares? It's only for calculating damage, and
;;; doesn't take up much space in ROM.
SoftwareMul:
;;; hl - number
;;; a - repetitions
;;; trashes b, de
ld d, h
ld e, l
ld hl, 0
.loop:
ld b, 0
cp b
jr Z, .endLoop
add hl, de
dec a
jr .loop
.endLoop:
ret
;;; ----------------------------------------------------------------------------
Mul16:
;;; hl - number
;; FIXME: `add hl, hl` repeatedly might be faster :)
swap h
ld a, h
and $f0
ld h, a
ld a, l
swap a
and $0f
or h
ld h, a
ld a, l
swap a
and $f0
ld l, a
ret
;;; ----------------------------------------------------------------------------
Div16:
;;; hl - number
swap l
ld a, l
and $0f
ld l, a
ld a, h
swap a
and $f0
or l
ld l, a
ld a, h
swap a
and $0f
ld h, a
ret
;;; ----------------------------------------------------------------------------
CalculateDamage:
;;; hl - attack base damage
;;; b - attacker's attack
;;; c - defender's defense
;;; Damage = B + ((B / 16) * A) - ((B / 16) * D)
fcall Mul16
push hl
push hl ; Store original base damage
fcall Div16 ; \
ld a, b ; | (Damage / 16) * Attacker's attack power
push bc ; | Preserve c for defense calc later
fcall SoftwareMul ; /
pop bc ; restore c
push hl ; \ copy hl -> de
pop de ; /
pop hl ; Restore base damage
push de ; Store above calculation on stack
push hl ; Store original base damage
fcall Div16 ; \
ld a, c ; | Damage / 16 * Defender's defense power
fcall SoftwareMul ; /
push hl ; \ copy hl -> bc
pop bc ; /
pop hl ; Restore base damage
pop de ; Restore first calculation
add hl, de
ld a, b ; \
cpl ; |
ld b, a ; |
ld a, c ; | Convert bc to a negative number.
cpl ; |
ld c, a ; |
inc bc ; /
add hl, bc
jr NC, .negative
fcall Div16
pop bc ; see push at fn top
ret
;;; FIXME: if the defender's defense is way larger than the attacker's attack,
;;; the damage calculation can return a negative number. Instead, we return the
;;; weapon base damage divided by 16, as a placeholder. We could instead deal
;;; zero damage, or a tiny amount, but that's no fun.
.negative:
pop hl
fcall Div16
ret
;;; ----------------------------------------------------------------------------
FormatDamage:
;;; hl - damage
;;; bc - result
ld a, l
swap a
and $f0
ld c, a
ld a, l
swap a
and $0f
ld b, a
ld a, h
and $0f
swap a
or b
ld b, a
ret
;;; ----------------------------------------------------------------------------
|
kernel/net/http.asm | ssebs/xos | 15 | 4216 | <reponame>ssebs/xos
;; xOS32
;; Copyright (C) 2016-2017 by <NAME>.
use32
; HyperText Transfer Protocol
HTTP_DESTINATION_PORT = 80
HTTP_DEBUG_PORT = 8080 ; probably not needed..
HTTP_INITIAL_SEQ = 0x00000000
http_get_string db "GET "
http_head_string db "HEAD "
http_version_string db "HTTP/1.1"
http_user_agent_string db "User-Agent: xOS kernel HTTP layer",0
http_host_string db "Host: ",0
http_accept_language_string db "Accept-Language: en-us",0
http_accept_encoding_string db "Accept-Encoding: identity",0
http_keep_alive_string db "Connection: Keep-Alive",0
; http_copy_domain:
; Copies the domain name of a URI, stripping the "http://" if it is present
; In\ ESI = URI
; In\ EDI = Buffer
; Out\ Nothing
http_copy_domain:
cmp dword[esi], "http"
je .strip_http
jmp .start
.strip_http:
add esi, 7 ; strlen("http://");
.start:
lodsb
cmp al, 0
je .done
cmp al, 13
je .done
cmp al, 10
je .done
cmp al, '/'
je .done
stosb
jmp .start
.done:
xor al, al
stosb
ret
; http_copy_path:
; Copies the path of a URI
; In\ ESI = URI
; In\ EDI = Buffer
; Out\ Nothing
http_copy_path:
cmp dword[esi], "http"
je .strip_http
jmp .skip_domain
.strip_http:
add esi, 7
.skip_domain:
lodsb
cmp al, '/'
je .copy_path
cmp al, 0
je .root_path
cmp al, 13
je .root_path
cmp al, 10
je .root_path
jmp .skip_domain
.copy_path:
dec esi
call strlen
mov ecx, eax
rep movsb
xor al, al
stosb
ret
.root_path:
mov al, '/'
stosb
xor al, al
stosb
ret
; http_head:
; Performs an HTTP HEAD request
; In\ ESI = URI
; Out\ EAX = Buffer, -1 on error
http_head:
cmp [network_available], 1
jne .error
mov [.uri], esi
mov edi, .domain
mov ecx, 256
xor al, al
rep stosb
mov edi, .path
mov ecx, 256
rep stosb
; copy the domain host and path names
mov esi, [.uri]
mov edi, .domain
call http_copy_domain
mov esi, [.uri]
mov edi, .path
call http_copy_path
; resolve the DNS
mov esi, .domain
call dns_request
cmp eax, 0
je .error
mov [.ip], eax
; create a socket connection
call net_increment_port
mov al, SOCKET_PROTOCOL_TCP
mov ebx, [.ip]
mov edx, (HTTP_DESTINATION_PORT shl 16)
mov dx, [local_port]
call socket_open
cmp eax, -1
je .error
mov [.socket], eax
; construct the HTTP request
mov ecx, 8192 ; much, much more than enough
call kmalloc
mov [.request], eax
mov ecx, TCP_WINDOW
call malloc
mov [.response], eax
mov edi, [.request]
mov esi, http_head_string
mov ecx, 5
rep movsb
mov esi, .path
call strlen
mov ecx, eax
rep movsb
mov al, ' '
stosb
mov esi, http_version_string
mov ecx, 8
rep movsb
mov al, 13
stosb
mov al, 10
stosb
mov esi, http_user_agent_string
call strlen
mov ecx, eax
rep movsb
mov al, 13
stosb
mov al, 10
stosb
mov esi, http_host_string
call strlen
mov ecx, eax
rep movsb
mov esi, .domain
call strlen
mov ecx, eax
rep movsb
mov al, 13
stosb
mov al, 10
stosb
mov esi, http_accept_language_string
call strlen
mov ecx, eax
rep movsb
mov al, 13
stosb
mov al, 10
stosb
mov esi, http_accept_encoding_string
call strlen
mov ecx, eax
rep movsb
mov al, 13
stosb
mov al, 10
stosb
mov esi, http_keep_alive_string
call strlen
mov ecx, eax
rep movsb
; two CRLF indicates end of request header
mov al, 13
stosb
mov al, 10
stosb
mov al, 13
stosb
mov al, 10
stosb
sub edi, [.request]
mov [.request_size], edi
mov esi, [.request]
call com1_send
; send the request
mov eax, [.socket]
mov esi, [.request]
mov ecx, [.request_size]
mov dl, TCP_PSH or TCP_ACK
call socket_write
cmp eax, 0
jne .error_close
; receive the response
mov [.response_size], 0
.receive_loop:
mov eax, [.socket]
mov edi, [.response]
add edi, [.response_size]
call socket_read
add [.response_size], eax
;cmp eax, 0
;je .check_finish
cmp dl, 0xFF
je .finish
test dl, TCP_PSH
jnz .psh_ack
test dl, TCP_FIN
jnz .finish
test dl, TCP_ACK
jnz .check_data
jmp .finish
.check_data:
cmp eax, 0
je .receive_loop
.psh_ack:
; ACK the data we received
mov eax, [.socket]
mov esi, 0
mov ecx, 0
mov dl, TCP_ACK
call socket_write
cmp eax, 0
jne .error_close
jmp .receive_loop
.finish:
mov eax, [.socket]
call socket_close
mov eax, [.request]
call kfree
mov eax, [.response]
ret
.error_close:
mov eax, [.socket]
call socket_close
.error_free:
mov eax, [.request]
call kfree
mov eax, [.response]
call free
.error:
mov eax, -1
ret
align 4
.uri dd 0
.ip dd 0
.socket dd 0
.request dd 0
.request_size dd 0
.response dd 0
.response_size dd 0
.domain: times 256 db 0
.path: times 256 db 0
; http_get:
; Performs an HTTP GET request
; In\ ESI = URI
; Out\ EAX = Buffer, -1 on error
; Out\ ECX = Buffer size, including HTTP headers
http_get:
cmp [network_available], 1
jne .error
mov [.uri], esi
mov edi, .domain
mov ecx, 256
xor al, al
rep stosb
mov edi, .path
mov ecx, 256
rep stosb
; copy the domain host and path names
mov esi, [.uri]
mov edi, .domain
call http_copy_domain
mov esi, [.uri]
mov edi, .path
call http_copy_path
; resolve the DNS
mov esi, .domain
call dns_request
cmp eax, 0
je .error
mov [.ip], eax
; create a socket connection
call net_increment_port
mov al, SOCKET_PROTOCOL_TCP
mov ebx, [.ip]
mov edx, (HTTP_DESTINATION_PORT shl 16)
mov dx, [local_port]
call socket_open
cmp eax, -1
je .error
mov [.socket], eax
; construct the HTTP request
mov ecx, 8192 ; much, much more than enough
call kmalloc
mov [.request], eax
mov ecx, TCP_WINDOW
call malloc
mov [.response], eax
mov edi, [.request]
mov esi, http_get_string
mov ecx, 4
rep movsb
mov esi, .path
call strlen
mov ecx, eax
rep movsb
mov al, ' '
stosb
mov esi, http_version_string
mov ecx, 8
rep movsb
mov al, 13
stosb
mov al, 10
stosb
mov esi, http_user_agent_string
call strlen
mov ecx, eax
rep movsb
mov al, 13
stosb
mov al, 10
stosb
mov esi, http_host_string
call strlen
mov ecx, eax
rep movsb
mov esi, .domain
call strlen
mov ecx, eax
rep movsb
mov al, 13
stosb
mov al, 10
stosb
mov esi, http_accept_language_string
call strlen
mov ecx, eax
rep movsb
mov al, 13
stosb
mov al, 10
stosb
mov esi, http_accept_encoding_string
call strlen
mov ecx, eax
rep movsb
mov al, 13
stosb
mov al, 10
stosb
mov esi, http_keep_alive_string
call strlen
mov ecx, eax
rep movsb
; two CRLF indicates end of request header
mov al, 13
stosb
mov al, 10
stosb
mov al, 13
stosb
mov al, 10
stosb
sub edi, [.request]
mov [.request_size], edi
; send the request
mov eax, [.socket]
mov esi, [.request]
mov ecx, [.request_size]
mov dl, TCP_PSH or TCP_ACK
call socket_write
;cmp eax, 0
;jne .error_close
; receive the response
mov [.response_size], 0
mov [.response_size2], 0
.receive_loop:
cmp [.response_size2], TCP_WINDOW-8192
jl .receive_work
; resize the working memory
mov eax, [.response]
mov ecx, [.response_size]
add ecx, TCP_WINDOW
call realloc
mov [.response], eax
mov [.response_size2], 0
.receive_work:
mov eax, [.socket]
mov edi, [.response]
add edi, [.response_size]
call socket_read
add [.response_size], eax
add [.response_size2], eax
; check what's happening...
cmp dl, 0xFF
je .finish
test dl, TCP_PSH
jnz .psh_ack
test dl, TCP_FIN
jnz .finish
test dl, TCP_ACK
jnz .check_payload
jmp .finish
.check_payload:
cmp eax, 0
je .receive_loop
.psh_ack:
; ACK the data we received
mov eax, [.socket]
mov esi, 0
mov ecx, 0
mov dl, TCP_ACK
call socket_write
;cmp eax, 0
;jne .error_close
jmp .receive_loop
.finish:
mov eax, [.socket]
call socket_close
mov eax, [.request]
call kfree
mov eax, [.response]
mov ecx, [.response_size]
ret
.error_close:
mov eax, [.socket]
call socket_close
.error_free:
mov eax, [.request]
call kfree
mov eax, [.response]
call free
.error:
mov eax, -1
mov ecx, 0
ret
align 4
.uri dd 0
.ip dd 0
.socket dd 0
.request dd 0
.request_size dd 0
.response dd 0
.response_size dd 0
.response_size2 dd 0
.domain: times 256 db 0
.path: times 256 db 0
|
Working Disassembly/General/2P Zone/Map - Item Icon.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 5 | 22319 | <reponame>TeamASM-Blur/Sonic-3-Blue-Balls-Edition
Map_37F6A: dc.w word_37F72-Map_37F6A
dc.w word_37F8C-Map_37F6A
dc.w word_37FAC-Map_37F6A
dc.w word_37FCC-Map_37F6A
word_37F72: dc.w 4
dc.b $F0, $C, 0, 0, $FF, $F0
dc.b $F8, 1, 0, 4, $FF, $F0
dc.b $F8, 1, 8, 4, 0, 8
dc.b 8, $C, $10, 0, $FF, $F0
word_37F8C: dc.w 5
dc.b $F0, $C, 0, 0, $FF, $F0
dc.b $F8, 1, 0, 4, $FF, $F0
dc.b $F8, 1, 8, 4, 0, 8
dc.b 8, $C, $10, 0, $FF, $F0
dc.b $F8, 5, $FC, $76, $FF, $F8
word_37FAC: dc.w 5
dc.b $F0, $C, 0, 0, $FF, $F0
dc.b $F8, 1, 0, 4, $FF, $F0
dc.b $F8, 1, 8, 4, 0, 8
dc.b 8, $C, $10, 0, $FF, $F0
dc.b $F8, 5, $FC, $7A, $FF, $F8
word_37FCC: dc.w 5
dc.b $F0, $C, 0, 0, $FF, $F0
dc.b $F8, 1, 0, 4, $FF, $F0
dc.b $F8, 1, 8, 4, 0, 8
dc.b 8, $C, $10, 0, $FF, $F0
dc.b $F8, 5, $5C, $82, $FF, $F8
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_642.asm | ljhsiun2/medusa | 9 | 169860 | .global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1d79c, %rsi
lea addresses_D_ht+0xeaa1, %rdi
xor %rdx, %rdx
mov $58, %rcx
rep movsb
nop
nop
nop
add %rbp, %rbp
lea addresses_D_ht+0x11a21, %rax
nop
nop
nop
nop
nop
and $25311, %r15
mov (%rax), %edx
add %rdx, %rdx
lea addresses_UC_ht+0x21a1, %rdi
nop
nop
nop
nop
xor %rdx, %rdx
mov $0x6162636465666768, %rbp
movq %rbp, %xmm1
movups %xmm1, (%rdi)
nop
nop
cmp %rsi, %rsi
lea addresses_UC_ht+0x39d, %rsi
lea addresses_normal_ht+0x16e21, %rdi
nop
nop
cmp $10128, %r9
mov $82, %rcx
rep movsl
nop
nop
nop
nop
nop
and $24054, %r15
lea addresses_UC_ht+0xeec1, %rsi
lea addresses_WT_ht+0x1aa81, %rdi
nop
nop
nop
nop
nop
and %rax, %rax
mov $79, %rcx
rep movsw
add %r9, %r9
lea addresses_WT_ht+0x5ca1, %rsi
lea addresses_A_ht+0x17db1, %rdi
nop
nop
nop
nop
and %r15, %r15
mov $94, %rcx
rep movsb
nop
nop
and %rcx, %rcx
lea addresses_WT_ht+0x11ce1, %rsi
nop
nop
nop
nop
nop
add $44766, %r15
mov $0x6162636465666768, %rdx
movq %rdx, %xmm2
vmovups %ymm2, (%rsi)
add %r9, %r9
lea addresses_A_ht+0x4da1, %rsi
lea addresses_A_ht+0x11ce1, %rdi
clflush (%rdi)
nop
nop
nop
xor %r15, %r15
mov $69, %rcx
rep movsw
nop
nop
and $49747, %r9
lea addresses_WT_ht+0xc1a1, %rcx
nop
nop
nop
nop
nop
lfence
movl $0x61626364, (%rcx)
nop
sub $60722, %rbp
lea addresses_WC_ht+0x11cc1, %rbp
nop
sub $7908, %rax
movw $0x6162, (%rbp)
nop
nop
nop
nop
add $56940, %rdx
lea addresses_D_ht+0x1ac41, %rdx
nop
nop
sub %rcx, %rcx
mov (%rdx), %r15d
nop
nop
nop
add $41868, %r15
lea addresses_UC_ht+0x154bb, %rsi
nop
nop
nop
nop
nop
add %rdi, %rdi
mov (%rsi), %rcx
nop
nop
nop
nop
nop
cmp %rbp, %rbp
lea addresses_WT_ht+0x2761, %rsi
lea addresses_D_ht+0x158a1, %rdi
nop
nop
sub %rbp, %rbp
mov $107, %rcx
rep movsq
nop
nop
nop
nop
add %rax, %rax
lea addresses_WT_ht+0x39a1, %rsi
lea addresses_D_ht+0x35c0, %rdi
nop
nop
nop
nop
nop
inc %rax
mov $17, %rcx
rep movsw
nop
nop
nop
nop
sub %rdx, %rdx
lea addresses_A_ht+0x5383, %rcx
nop
nop
nop
nop
add %r15, %r15
mov (%rcx), %di
nop
nop
nop
and %rdi, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r15
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15
push %rax
push %rbp
push %rbx
push %rsi
// Faulty Load
lea addresses_A+0x2ca1, %rbp
xor $26839, %r15
mov (%rbp), %rsi
lea oracles, %r11
and $0xff, %rsi
shlq $12, %rsi
mov (%r11,%rsi,1), %rsi
pop %rsi
pop %rbx
pop %rbp
pop %rax
pop %r15
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}}
{'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False}}
{'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': True, 'congruent': 4, 'NT': False, 'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': True, 'congruent': 1, 'NT': False, 'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': True}}
{'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'35': 21829}
35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35
*/
|
src/main/fragment/mos6502-common/vwum1=pbuc1_derefidx_vbuyy_word_pbuc2_derefidx_vbuyy.asm | jbrandwood/kickc | 2 | 14135 | <gh_stars>1-10
lda {c1},y
sta {m1}+1
lda {c2},y
sta {m1}
|
Nehemiah/Change/Derive.agda | inc-lc/ilc-agda | 10 | 817 | <filename>Nehemiah/Change/Derive.agda
------------------------------------------------------------------------
-- INCREMENTAL λ-CALCULUS
--
-- Incrementalization as term-to-term transformation with the Nehemiah plugin.
------------------------------------------------------------------------
module Nehemiah.Change.Derive where
open import Nehemiah.Syntax.Type
open import Nehemiah.Syntax.Term
open import Nehemiah.Change.Type
open import Nehemiah.Change.Term
open import Data.Integer
import Parametric.Change.Derive Const ΔBase as Derive
derive-const : Derive.Structure
derive-const (intlit-const n) = intlit (+ 0)
derive-const add-const = absV 4 (λ s ds t dt → add ds dt)
derive-const minus-const = absV 2 (λ t dt → minus dt)
derive-const empty-const = empty
derive-const insert-const = absV 4 (λ s ds t dt →
insert (s ⊕₍ int ₎ ds) (t ⊕₍ bag ₎ dt) ⊝ insert s t)
derive-const union-const = absV 4 (λ s ds t dt → union ds dt)
derive-const negate-const = absV 2 (λ t dt → negate dt)
derive-const flatmap-const = absV 4 (λ s ds t dt →
flatmap (s ⊕₍ int ⇒ bag ₎ ds) (t ⊕₍ bag ₎ dt) ⊝ flatmap s t)
derive-const sum-const = absV 2 (λ t dt → sum dt)
open Derive.Structure derive-const public
|
oeis/028/A028255.asm | neoneye/loda-programs | 11 | 90244 | <filename>oeis/028/A028255.asm
; A028255: Fibonacci(n+3) mod n-th prime.
; Submitted by <NAME>
; 1,2,3,6,10,8,4,13,6,1,5,18,3,6,46,47,39,27,23,44,13,54,47,84,39,38,6,102,53,108,79,87,92,34,105,89,142,14,37,33,97,47,85,145,46,5,21,137,51,45,1,62,119,148,104,199,10,251,169,13,131,42,95,94,153
mov $2,$0
add $0,4
seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.
seq $2,40 ; The prime numbers.
mod $0,$2
|
programs/oeis/017/A017489.asm | karttu/loda | 1 | 86496 | ; A017489: a(n) = (11*n + 8)^5.
; 32768,2476099,24300000,115856201,380204032,992436543,2219006624,4437053125,8153726976,14025517307,22877577568,35723051649,53782400000,78502725751,111577100832,154963892093,210906087424,281950621875,370967703776,481170140857,616132666368,779811265199,976562500000,1211162837301,1488827973632,1815232161643,2196527536224,2639363440625,3150905752576,3738856210407,4411471739168,5177583776749,6046617600000,7028611650851,8134236862432,9374815985193,10762342913024,12309502009375,14029687433376,15937022465957,18046378835968,20373396046299,22934500700000,25746925826401,28828730207232,32198817702743,35876956577824,39883798828125,44240899506176,48970736047507,54096727596768,59643254333849,65635676800000,72100355223951,79064668848032,86557035254293,94606929690624,103244904396875,112502607930976,122412804495057,133009393261568,144327427699399,156403134900000,169273934903501,182978460024832,197556574179843,213049392211424,229499299215625,246949969867776,265446387748607,285034864670368,305763060002949,327680000000000,350836097125051,375283169377632,401074459619393,428264654900224,456909905784375,487067845676576,518797610148157,552159856263168,587216781904499,624032145100000,662671283348601,703201132946432,745690248312943,790208821317024,836828700603125,885623410917376,936668172433707,990039920079968,1045817322864049,1104080803200000,1164912556234151,1228396569171232,1294618640600493,1363666399821824,1435629326171875,1510598768350176,1588667963745257,1669932057760768,1754488123141599,1842435179300000,1933874211641701,2028908190892032,2127642092422043,2230182915574624,2336639702990625,2447123559934976,2561747673622807,2680627332545568,2803879945797149,2931625062400000,3063984390631251,3201081817348832,3343043427317593,3489997522535424,3642074641559375,3799407578831776,3962131404006357,4130383481274368,4304303488690699,4484033437500000,4669717691462801,4861502986181632,5059538448427143,5263975615464224,5474968454378125,5692673381400576,5917249281235907,6148857526387168,6387661996482249,6633829097600000,6887527781596351,7148929565430432,7418208550490693,7695541441921024,7981107567946875,8275088899201376,8577670068051457,8889038387923968,9209383872631799
mul $0,11
add $0,8
pow $0,5
mov $1,$0
|
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c36301a.ada | best08618/asylo | 7 | 1062 | <gh_stars>1-10
-- C36301A.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 PREDEFINED POSITIVE AND STRING TYPES
-- ARE CORRECTLY DEFINED.
-- DAT 2/17/81
-- JBG 12/27/82
-- RJW 1/20/86 - CHANGED 'NATURAL' TO 'POSITIVE'. ADDED ADDITIONAL
-- CASES, INCLUDING A CHECK FOR STRINGS WITH BOUNDS
-- OF INTEGER'FIRST AND INTEGER'LAST.
-- EDS 7/16/98 AVOID OPTIMIZATION
WITH REPORT; USE REPORT;
PROCEDURE C36301A IS
BEGIN
TEST ( "C36301A", "CHECK ATTRIBUTES OF PREDEFINED POSITIVE " &
"AND STRING" );
BEGIN
IF POSITIVE'FIRST /= 1 THEN
FAILED ( "POSITIVE'FIRST IS WRONG" );
END IF;
IF POSITIVE'LAST /= INTEGER'LAST THEN
FAILED ( "POSITIVE'LAST IS WRONG" );
END IF;
END;
DECLARE
C : STRING (1..2) := ( 'A', 'B' );
BEGIN
IF C'LENGTH /= 2 THEN
FAILED ( "LENGTH OF C IS WRONG" );
END IF;
IF C'FIRST /= 1 THEN
FAILED ( "C'FIRST IS WRONG" );
END IF;
IF C'LAST /= 2 THEN
FAILED ( "C'LAST IS WRONG" );
END IF;
END;
DECLARE
SUBTYPE LARGE IS STRING ( INTEGER'LAST - 3 .. INTEGER'LAST );
BEGIN
IF LARGE'LENGTH /= 4 THEN
FAILED ( "LENGTH OF LARGE IS WRONG" );
END IF;
IF LARGE'FIRST /= INTEGER'LAST - 3 THEN
FAILED ( "LARGE'FIRST IS WRONG" );
END IF;
IF LARGE'LAST /= INTEGER'LAST THEN
FAILED ( "LARGE'LAST IS WRONG" );
END IF;
END;
DECLARE
SUBTYPE LARGER IS STRING ( 1 .. INTEGER'LAST );
BEGIN
IF LARGER'LENGTH /= INTEGER'LAST THEN
FAILED ( "LENGTH OF LARGER IS WRONG" );
END IF;
IF LARGER'FIRST /= 1 THEN
FAILED ( "LARGER'FIRST IS WRONG" );
END IF;
IF LARGER'LAST /= INTEGER'LAST THEN
FAILED ( "LARGER'LAST IS WRONG" );
END IF;
END;
BEGIN
DECLARE
D : STRING ( INTEGER'FIRST .. INTEGER'FIRST + 3 );
BEGIN
IF D'FIRST /= INTEGER'FIRST THEN -- USE D
FAILED ("D'FIRST IS INCORRECT " & INTEGER'IMAGE(D'FIRST));
END IF;
FAILED ( "NO EXCEPTION RAISED" );
END;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN OTHERS =>
FAILED ( "WRONG EXCEPTION RAISED" );
END;
BEGIN
DECLARE
E : STRING ( -1 .. INTEGER'FIRST );
BEGIN
IF E'LENGTH /= 0 THEN
FAILED ( "LENGTH OF E IS WRONG" );
END IF;
IF E'FIRST /= -1 THEN
FAILED ( "E'FIRST IS WRONG" );
END IF;
IF E'LAST /= INTEGER'FIRST THEN
FAILED ( "E'LAST IS WRONG" );
END IF;
END;
EXCEPTION
WHEN OTHERS =>
FAILED ( "EXCEPTION RAISED FOR NULL STRING" );
END;
RESULT;
END C36301A;
|
oeis/206/A206803.asm | neoneye/loda-programs | 11 | 4633 | <gh_stars>10-100
; A206803: Sum_{0<j<k<=n} P(k)-P(j), where P(j)=A065091(j) is the j-th odd prime.
; Submitted by <NAME>
; 2,8,26,52,98,156,242,376,528,740,996,1276,1608,2024,2530,3068,3708,4420,5170,6040,6994,8080,9350,10716,12132,13652,15226,16912,19004,21216,23614,26076,28868,31728,34798,38084,41518,45180,49076,53052,57438,61908,66550,71280,76550,82372,88382,94488,100790,107392,114096,121320,128862,136728,144924,153232,161882,170764,179764,189364,199818,210520,221348,232432,244426,256816,269876,283072,296544,310436,324896,339788,355118,370744,386820,403504,420496,438112,456518,475084,494460,514000,534038,554412
lpb $0
mov $2,$0
sub $0,1
add $2,1
seq $2,185382 ; Sum_{j=1..n-1} P(n)-P(j), where P(j) = A065091(j) is the j-th odd prime.
add $1,$2
lpe
mov $0,$1
add $0,2
|
programs/oeis/323/A323956.asm | jmorken/loda | 1 | 94239 | ; A323956: Triangle read by rows: T(n, k) = 1 + n * (n - k) for 1 <= k <= n.
; 1,3,1,7,4,1,13,9,5,1,21,16,11,6,1,31,25,19,13,7,1,43,36,29,22,15,8,1,57,49,41,33,25,17,9,1,73,64,55,46,37,28,19,10,1,91,81,71,61,51,41,31,21,11,1,111,100,89,78,67,56,45,34,23,12,1,133,121,109,97,85,73,61,49,37,25,13,1,157,144,131,118,105,92,79,66,53,40,27,14,1,183,169,155,141,127,113,99,85,71,57,43,29,15,1,211,196,181,166,151,136,121,106,91,76,61,46,31,16,1,241,225,209,193,177,161,145,129,113,97,81,65,49,33,17,1,273,256,239,222,205,188,171,154,137,120,103,86,69,52,35,18,1,307,289,271,253,235,217,199,181,163,145,127,109,91,73,55,37,19,1,343,324,305,286,267,248,229,210,191,172,153,134,115,96,77,58,39,20,1,381,361,341,321,301,281,261,241,221,201,181,161,141,121,101,81,61,41,21,1,421,400,379,358,337,316,295,274,253,232,211,190,169,148,127,106,85,64,43,22,1,463,441,419,397,375,353,331,309,287,265,243,221,199,177,155,133,111,89,67
add $0,1
mov $2,1
lpb $0
sub $0,$2
lpb $0
add $0,1
add $1,$2
lpe
add $2,1
lpe
add $1,1
|
alloy4fun_models/trashltl/models/1/aptsxg6s7ahymbFic.als | Kaixi26/org.alloytools.alloy | 0 | 2885 | open main
pred idaptsxg6s7ahymbFic_prop2 {
after some File
}
pred __repair { idaptsxg6s7ahymbFic_prop2 }
check __repair { idaptsxg6s7ahymbFic_prop2 <=> prop2o } |
min_and_max_of_a_vector.asm | CristinaNilvan/assembler-i386-algorithmic-problems | 1 | 17176 | <reponame>CristinaNilvan/assembler-i386-algorithmic-problems<filename>min_and_max_of_a_vector.asm
.386
.model flat, stdcall
includelib msvcrt.lib
extern exit: proc
public start
.data
vector_of_elements dw -10, 2, 4, 6, -12
number_of_elements dd 5
minimum dw 0
maximum dw 0
.code
start:
;Finds the minimum and the maximum.
mov eax, 0
mov ebx, 0
mov esi, 0
mov ecx, number_of_elements
mov ax, vector_of_elements[esi]
mov bx, vector_of_elements[esi]
while_loop :
cmp ax, vector_of_elements[esi]
jl check_if_max
mov ax, vector_of_elements[esi]
check_if_max :
cmp bx, vector_of_elements[esi]
jg final_instructions
mov bx, vector_of_elements[esi]
final_instructions :
add esi, 2
loop while_loop
mov minimum, ax
mov maximum, bx
push 0
call exit
end start |
examples/SummerSchool07/Lecture/Modules.agda | shlevy/agda | 1,989 | 17194 | {-
Types Summer School 2007
Bertinoro
Aug 19 - 31, 2007
Agda
<NAME>
-}
-- Let's have a closer look at the module system
module Modules where
{-
Importing and opening modules
-}
-- You can import a module defined in a different file.
import Nat
-- This will bring the module into scope and allows you to
-- access its contents using qualified names.
plusTwo : Nat.Nat -> Nat.Nat
plusTwo n = Nat._+_ n 2
-- To bring everything from a module into scope you can open
-- the module.
open Nat
z : Nat
z = zero
-- There's also a short-hand to import and open at the same time
open import Bool
_&&_ : Bool -> Bool -> Bool
x && y = if x then y else false
-- Sometimes it's nice to be able to control what is brought
-- into scope when you open a module. There are three modifiers
-- that affect this: using, hiding and renaming.
module DifferentWaysOfOpeningNat where
-- nothing but Nat
open Nat using (Nat)
-- everything but zero
open Nat hiding (zero)
-- everything, but zero and suc under different names
open Nat renaming (zero to ZZ; suc to S_S)
two : Nat
two = S S zero S S
-- you can combine using or hiding with renaming, but not using
-- with hiding (for obvious reasons).
-- To re-export something opened use the public modifier.
module A where
open Nat public using (Nat)
N = A.Nat -- now Nat is a visible name in module A
{-
Parameterised modules
-}
-- A very useful feature is parameterised modules.
data Vec (A : Set) : Nat -> Set where
[] : Vec A 0
_::_ : {n : Nat} -> A -> Vec A n -> Vec A (suc n)
infixr 40 _::_
module Sort {A : Set}(_≤_ : A -> A -> Bool) where
insert : {n : Nat} -> A -> Vec A n -> Vec A (suc n)
insert x [] = x :: []
insert x (y :: ys) = if x ≤ y
then x :: y :: ys
else y :: insert x ys
sort : {n : Nat} -> Vec A n -> Vec A n
sort [] = []
sort (x :: xs) = insert x (sort xs)
_≤_ : Nat -> Nat -> Bool
zero ≤ m = true
suc n ≤ zero = false
suc n ≤ suc m = n ≤ m
-- When used directly, functions from parameterised modules
-- take the parameters as extra arguments.
test = Sort.sort _≤_ (6 :: 2 :: 0 :: 4 :: [])
-- But, you can also apply the entire module to its arguments.
-- Let's open the new module while we're at it.
open module SortNat = Sort _≤_
test' = sort (3 :: 2 :: 4 :: 0 :: [])
{-
Local definitions
-}
data _==_ {A : Set}(x : A) : A -> Set where
refl : x == x
subst : {A : Set}(C : A -> Set){x y : A} -> x == y -> C x -> C y
subst C refl cx = cx
cong : {A B : Set}(f : A -> B){x y : A} -> x == y -> f x == f y
cong f refl = refl
lem₁ : (n : Nat) -> n + 0 == n
lem₁ zero = refl
lem₁ (suc n) = cong suc (lem₁ n)
lem₂ : (n m : Nat) -> n + suc m == suc n + m
lem₂ n zero = refl
lem₂ n (suc m) = cong suc (lem₂ n m)
{-
What's next?
-}
-- The final thing on the agenda is records.
-- Move on to: Records.agda
|
oeis/334/A334909.asm | neoneye/loda-programs | 11 | 15321 | ; A334909: Area/6 of primitive Pythagorean triangles given in A334638 as triples.
; Submitted by <NAME>
; 1,35,770,14260,244776,4053840,65979040,1064678720,17107266176,274296689920,4393395202560,70331527418880,1125602147608576,18012016334950400,288211318352814080,4611533554425610240,73785756576381566976,1180581862943988449280
add $0,1
mov $1,2
pow $1,$0
mov $0,$1
mov $2,1
sub $2,$1
sub $0,$2
mul $1,$2
sub $2,$0
mul $0,$2
mul $1,$0
mov $0,$1
div $0,24
|
oeis/060/A060801.asm | neoneye/loda-programs | 11 | 3735 | <gh_stars>10-100
; A060801: Invert transform of odd numbers: a(n) = Sum_{k=1..n} (2*k+1)*a(n-k), a(0)=1.
; 1,3,14,64,292,1332,6076,27716,126428,576708,2630684,12000004,54738652,249693252,1138988956,5195558276,23699813468,108107950788,493140127004,2249484733444,10261143413212,46806747599172,213511451169436,973943760648836,4442695900905308,20265591983228868,92442568114333724,421681656605210884,1923523146797386972,8774252420776513092,40024215810287791516,182572574209885931396,832814439428854073948,3798927048724498506948,17329006364764784386844,79047177726374924920324,360577875902345055827932
mov $1,1
lpb $0
sub $0,1
add $2,$1
add $2,$1
add $3,$1
add $3,$2
mov $1,$3
lpe
mov $0,$1
|
src/MJ/Semantics/Environments.agda | metaborg/mj.agda | 10 | 5901 | <filename>src/MJ/Semantics/Environments.agda
open import MJ.Types as Types
import MJ.Classtable.Core as Core
module MJ.Semantics.Environments {c}(Ct : Core.Classtable c) where
open import Prelude
open import Data.List
open import Data.List.Membership.Propositional
open import Data.List.Relation.Unary.All as All
open import Data.List.Relation.Unary.Any
open import MJ.LexicalScope c
{-
We equip MJ with mutable lexical environments.
We could choose to model this directly, moving the environment from
the Reader part of the evaluation monad to the State part.
Instead we choose to keep our environments immutable and model
mutability of the values in it by an indirection via the mutable store.
This greatly simplifies the treatment of environments in the interpreter
and keeps the representation lightweight, even though we support block scopes.
-}
Env : ∀ (Γ : Ctx)(W : World c) → Set
Env Γ W = All (λ a → vty a ∈ W) Γ
_⊕_ : ∀ {Γ W a} → Env Γ W → (vty a) ∈ W → Env (Γ +local a) W
_⊕_ E v = v ∷ E
open import Data.List.Any
getvar : ∀ {Γ W a} → Var Γ a → Env Γ W → vty a ∈ W
getvar px E = All.lookup E px
|
programs/oeis/155/A155966.asm | karttu/loda | 1 | 88844 | ; A155966: a(n) = 2*n^2 + 8.
; 8,10,16,26,40,58,80,106,136,170,208,250,296,346,400,458,520,586,656,730,808,890,976,1066,1160,1258,1360,1466,1576,1690,1808,1930,2056,2186,2320,2458,2600,2746,2896,3050,3208,3370,3536,3706,3880,4058,4240,4426,4616,4810,5008,5210,5416,5626,5840,6058,6280,6506,6736,6970,7208,7450,7696,7946,8200,8458,8720,8986,9256,9530,9808,10090,10376,10666,10960,11258,11560,11866,12176,12490,12808,13130,13456,13786,14120,14458,14800,15146,15496,15850,16208,16570,16936,17306,17680,18058,18440,18826,19216,19610,20008,20410,20816,21226,21640,22058,22480,22906,23336,23770,24208,24650,25096,25546,26000,26458,26920,27386,27856,28330,28808,29290,29776,30266,30760,31258,31760,32266,32776,33290,33808,34330,34856,35386,35920,36458,37000,37546,38096,38650,39208,39770,40336,40906,41480,42058,42640,43226,43816,44410,45008,45610,46216,46826,47440,48058,48680,49306,49936,50570,51208,51850,52496,53146,53800,54458,55120,55786,56456,57130,57808,58490,59176,59866,60560,61258,61960,62666,63376,64090,64808,65530,66256,66986,67720,68458,69200,69946,70696,71450,72208,72970,73736,74506,75280,76058,76840,77626,78416,79210,80008,80810,81616,82426,83240,84058,84880,85706,86536,87370,88208,89050,89896,90746,91600,92458,93320,94186,95056,95930,96808,97690,98576,99466,100360,101258,102160,103066,103976,104890,105808,106730,107656,108586,109520,110458,111400,112346,113296,114250,115208,116170,117136,118106,119080,120058,121040,122026,123016,124010
mov $1,$0
pow $1,2
mul $1,2
add $1,8
|
zx81/xorshift_test.asm | michaelcmartin/bumbershoot | 20 | 9151 | ;; First, reset the RNG seed
ld hl, 1
ld (rnd_x), hl
ld (rnd_y), hl
;; Then print out 64 numbers from it
ld b, 64
m_0: push bc
call rnd
call hexout_16
xor a, a
rst $10
rst $10
rst $10
rst $10
pop bc
djnz m_0
ret
hexout_16:
push hl
ld a, h
call hexout_8
pop hl
ld a, l
;; Fall through
hexout_8:
push af
rra
rra
rra
rra
call hexout_4
pop af
;; Fall through
hexout_4:
and 15
add 28
rst $10
ret
INCLUDE "xorshift.asm"
|
include/sf-graphics-vertexbuffer.ads | Fabien-Chouteau/ASFML | 0 | 15669 | <filename>include/sf-graphics-vertexbuffer.ads
--//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2018 <NAME> (<EMAIL>)
-- This software is provided 'as-is', without any express or implied warranty.
-- In no event will the authors be held liable for any damages arising from the use of this software.
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it freely,
-- subject to the following restrictions:
-- 1. The origin of this software must not be misrepresented;
-- you must not claim that you wrote the original software.
-- If you use this software in a product, an acknowledgment
-- in the product documentation would be appreciated but is not required.
-- 2. Altered source versions must be plainly marked as such,
-- and must not be misrepresented as being the original software.
-- 3. This notice may not be removed or altered from any source distribution.
--//////////////////////////////////////////////////////////
--//////////////////////////////////////////////////////////
with Sf.Graphics.PrimitiveType;
with Sf.Graphics.Vertex;
package Sf.Graphics.VertexBuffer is
--//////////////////////////////////////////////////////////
--//////////////////////////////////////////////////////////
--/ @brief Usage specifiers
--/
--/ If data is going to be updated once or more every frame,
--/ set the usage to sfVertexBufferStream. If data is going
--/ to be set once and used for a long time without being
--/ modified, set the usage to sfVertexBufferUsageStatic.
--/ For everything else sfVertexBufferUsageDynamic should
--/ be a good compromise.
--/
--//////////////////////////////////////////////////////////
--/< Constantly changing data
--/< Occasionally changing data
--/< Rarely changing data
type sfVertexBufferUsage is
(sfVertexBufferStream,
sfVertexBufferDynamic,
sfVertexBufferStatic);
--//////////////////////////////////////////////////////////
--/ @brief Create a new vertex buffer with a specific
--/ sfPrimitiveType and usage specifier.
--/
--/ Creates the vertex buffer, allocating enough graphcis
--/ memory to hold @p vertexCount vertices, and sets its
--/ primitive type to @p type and usage to @p usage.
--/
--/ @param vertexCount Amount of vertices
--/ @param primitiveType Type of primitive
--/ @param usage Usage specifier
--/
--/ @return A new sfVertexBuffer object
--/
--//////////////////////////////////////////////////////////
function create
(vertexCount : sfUint32;
primitiveType : Sf.Graphics.PrimitiveType.sfPrimitiveType;
usage : sfVertexBufferUsage) return sfVertexBuffer_Ptr;
--//////////////////////////////////////////////////////////
--/ @brief Copy an existing vertex buffer
--/
--/ @param vertexBuffer Vertex buffer to copy
--/
--/ @return Copied object
--/
--//////////////////////////////////////////////////////////
function copy (vertexBuffer : sfVertexBuffer_Ptr) return sfVertexBuffer_Ptr;
--//////////////////////////////////////////////////////////
--/ @brief Destroy an existing vertex buffer
--/
--/ @param vertexBuffer Vertex buffer to delete
--/
--//////////////////////////////////////////////////////////
procedure destroy (vertexBuffer : sfVertexBuffer_Ptr);
--//////////////////////////////////////////////////////////
--/ @brief Return the vertex count
--/
--/ @param vertexBuffer Vertex buffer object
--/
--/ @return Number of vertices in the vertex buffer
--/
--//////////////////////////////////////////////////////////
function getVertexCount (vertexBuffer : sfVertexBuffer_Ptr) return sfUint32;
--//////////////////////////////////////////////////////////
--/ @brief Update a part of the buffer from an array of vertices
--/
--/ @p offset is specified as the number of vertices to skip
--/ from the beginning of the buffer.
--/
--/ If @p offset is 0 and @p vertexCount is equal to the size of
--/ the currently created buffer, its whole contents are replaced.
--/
--/ If @p offset is 0 and @p vertexCount is greater than the
--/ size of the currently created buffer, a new buffer is created
--/ containing the vertex data.
--/
--/ If @p offset is 0 and @p vertexCount is less than the size of
--/ the currently created buffer, only the corresponding region
--/ is updated.
--/
--/ If @p offset is not 0 and @p offset + @p vertexCount is greater
--/ than the size of the currently created buffer, the update fails.
--/
--/ No additional check is performed on the size of the vertex
--/ array, passing invalid arguments will lead to undefined
--/ behavior.
--/
--/ @param vertices Array of vertices to copy to the buffer
--/ @param vertexCount Number of vertices to copy
--/ @param offset Offset in the buffer to copy to
--/
--/ @return sfTrue if the update was successful
--/
--//////////////////////////////////////////////////////////
function update
(vertexBuffer : sfVertexBuffer_Ptr;
vertices : sfVertex_Ptr;
vertexCount : access constant Sf.Graphics.Vertex.sfVertex;
offset : sfUint32) return sfBool;
--//////////////////////////////////////////////////////////
--/ @brief Copy the contents of another buffer into this buffer
--/
--/ @param vertexBuffer Vertex buffer object
--/ @param other Vertex buffer whose contents to copy into first vertex buffer
--/
--/ @return sfTrue if the copy was successful
--/
--//////////////////////////////////////////////////////////
function updateFromVertexBuffer (vertexBuffer : sfVertexBuffer_Ptr; other : sfVertexBuffer_Ptr) return sfBool;
--//////////////////////////////////////////////////////////
--/ @brief Swap the contents of this vertex buffer with those of another
--/
--/ @param left Instance to swap
--/ @param right Instance to swap with
--/
--//////////////////////////////////////////////////////////
procedure swap (left : sfVertexBuffer_Ptr; right : sfVertexBuffer_Ptr);
--//////////////////////////////////////////////////////////
--/ @brief Get the underlying OpenGL handle of the vertex buffer.
--/
--/ You shouldn't need to use this function, unless you have
--/ very specific stuff to implement that SFML doesn't support,
--/ or implement a temporary workaround until a bug is fixed.
--/
--/ @return OpenGL handle of the vertex buffer or 0 if not yet created
--/
--//////////////////////////////////////////////////////////
function getNativeHandle (vertexBuffer : sfVertexBuffer_Ptr) return sfUint32;
--//////////////////////////////////////////////////////////
--/ @brief Set the type of primitives to draw
--/
--/ This function defines how the vertices must be interpreted
--/ when it's time to draw them.
--/
--/ The default primitive type is sf::Points.
--/
--/ @param vertexBuffer Vertex buffer object
--/ @param primitiveType Type of primitive
--/
--//////////////////////////////////////////////////////////
procedure setPrimitiveType (vertexBuffer : sfVertexBuffer_Ptr;
primitiveType : Sf.Graphics.PrimitiveType.sfPrimitiveType);
--//////////////////////////////////////////////////////////
--/ @brief Get the type of primitives drawn by the vertex buffer
--/
--/ @param vertexBuffer Vertex buffer object
--/
--/ @return Primitive type
--/
--//////////////////////////////////////////////////////////
function getPrimitiveType (vertexBuffer : sfVertexBuffer_Ptr) return Sf.Graphics.PrimitiveType.sfPrimitiveType;
--//////////////////////////////////////////////////////////
--/ @brief Set the usage specifier of this vertex buffer
--/
--/ This function provides a hint about how this vertex buffer is
--/ going to be used in terms of data update frequency.
--/
--/ After changing the usage specifier, the vertex buffer has
--/ to be updated with new data for the usage specifier to
--/ take effect.
--/
--/ The default primitive type is sfVertexBufferStream.
--/
--/ @param vertexBuffer Vertex buffer object
--/ @param usage Usage specifier
--/
--//////////////////////////////////////////////////////////
procedure setUsage (vertexBuffer : sfVertexBuffer_Ptr; usage : sfVertexBufferUsage);
--//////////////////////////////////////////////////////////
--/ @brief Get the usage specifier of this vertex buffer
--/
--/ @param vertexBuffer Vertex buffer object
--/
--/ @return Usage specifier
--/
--//////////////////////////////////////////////////////////
function getUsage (vertexBuffer : sfVertexBuffer_Ptr) return sfVertexBufferUsage;
--//////////////////////////////////////////////////////////
--/ @brief Bind a vertex buffer for rendering
--/
--/ This function is not part of the graphics API, it mustn't be
--/ used when drawing SFML entities. It must be used only if you
--/ mix sfVertexBuffer with OpenGL code.
--/
--/ @code
--/ sfVertexBuffer* vb1, vb2;
--/ ...
--/ sfVertexBuffer_bind(vb1);
--/ // draw OpenGL stuff that use vb1...
--/ sfVertexBuffer_bind(vb2);
--/ // draw OpenGL stuff that use vb2...
--/ sfVertexBuffer_bind(NULL);
--/ // draw OpenGL stuff that use no vertex buffer...
--/ @endcode
--/
--/ @param vertexBuffer Pointer to the vertex buffer to bind, can be null to use no vertex buffer
--/
--//////////////////////////////////////////////////////////
procedure bind (vertexBuffer : sfVertexBuffer_Ptr);
--//////////////////////////////////////////////////////////
--/ @brief Tell whether or not the system supports vertex buffers
--/
--/ This function should always be called before using
--/ the vertex buffer features. If it returns false, then
--/ any attempt to use sf::VertexBuffer will fail.
--/
--/ @return True if vertex buffers are supported, false otherwise
--/
--//////////////////////////////////////////////////////////
function isAvailable return sfBool;
private
pragma Convention (C, sfVertexBufferUsage);
pragma Import (C, create, "sfVertexBuffer_create");
pragma Import (C, copy, "sfVertexBuffer_copy");
pragma Import (C, destroy, "sfVertexBuffer_destroy");
pragma Import (C, getVertexCount, "sfVertexBuffer_getVertexCount");
pragma Import (C, update, "sfVertexBuffer_update");
pragma Import (C, updateFromVertexBuffer, "sfVertexBuffer_updateFromVertexBuffer");
pragma Import (C, swap, "sfVertexBuffer_swap");
pragma Import (C, getNativeHandle, "sfVertexBuffer_getNativeHandle");
pragma Import (C, setPrimitiveType, "sfVertexBuffer_setPrimitiveType");
pragma Import (C, getPrimitiveType, "sfVertexBuffer_getPrimitiveType");
pragma Import (C, setUsage, "sfVertexBuffer_setUsage");
pragma Import (C, getUsage, "sfVertexBuffer_getUsage");
pragma Import (C, bind, "sfVertexBuffer_bind");
pragma Import (C, isAvailable, "sfVertexBuffer_isAvailable");
end Sf.Graphics.VertexBuffer;
|
models/hol/sygus/bitvector_benchmarks/parity-not-and.als | johnwickerson/alloystar | 2 | 3638 | <filename>models/hol/sygus/bitvector_benchmarks/parity-not-and.als
module parityfixed
--------------------------------------------------------------------------------
-- Variables
--------------------------------------------------------------------------------
abstract sig Node {}
abstract sig BoolNode extends Node {}
abstract sig BoolVar extends BoolNode {}
abstract sig BoolLit extends BoolNode { val: one Bit }
sig Not extends BoolNode {
arg: one And
}
sig And extends BoolNode {
left, right: one (Not + BoolVar + BoolLit)
}
--------------------------------------------------------------------------------
-- Semantics
--------------------------------------------------------------------------------
pred semantics[eval: Node -> Bit] {
all n: Node | one eval[n]
all n: And | eval[n] = And[eval[n.left], eval[n.right]]
all n: Not | eval[n] = Not[eval[n.arg]]
all l: BoolLit | eval[l] = l.val
}
pred acyclic[r: univ->univ, s: set univ] {
all x: s | x !in x.^r
}
fact {
acyclic[left+right+arg, Node]
}
--------------------------------------------------------------------------------
-- Spec
--------------------------------------------------------------------------------
one sig A, B, C, D extends BoolVar {}
one sig BoolTrue, BoolFalse extends BoolLit {}
fact {
BoolLit<:val = BoolTrue->BitTrue + BoolFalse->BitFalse
}
fun parity[a, b, c, d: Bit]: Bit {
Xor[Not[Xor[a, b]], Not[Xor[c, d]]]
}
pred spec[root: Node, eval: Node -> (Int + Bit)] {
let a = eval[A], b = eval[B], c = eval[C], d = eval[D] |
parity[a, b, c, d] = eval[root]
}
--------------------------------------------------------------------------------
-- Atoms
--------------------------------------------------------------------------------
one sig N1, N2, N3, N4, N5, N6, N7, N8, N9, N10,
N11, N12, N13, N14, N15, N16, N17, N18, N19, N20,
N21, N22, N23 extends Not {}
one sig A1, A2, A3, A4, A5, A6, A7, A8, A9, A10,
A11, A12, A13, A14, A15, A16, A17, A18, A19, A20,
A21, A22, A23 extends And {}
fun nNext: Not->Not {
N1->N2 + N2->N3 + N3->N4 + N4->N5 + N5->N6 + N6->N7 + N7->N8 + N8->N9 + N9->N10 + N10->N11 +
N11->N12 + N12->N13 + N13->N14 + N14->N15 + N15->N16 + N16->N17 + N17->N18 + N18->N19 + N19->N20 + N20->N21 + N21->N22 + N22->N23
}
fun aNext: And->And {
A1->A2 + A2->A3 + A3->A4 + A4->A5 + A5->A6 + A6->A7 + A7->A8 + A8->A9 + A9->A10 + A10->A11 +
A11->A12 + A12->A13 + A13->A14 + A14->A15 + A15->A16 + A16->A17 + A17->A18 + A18->A19 + A19->A20 + A20->A21 + A21->A22 + A22->A23
}
fun nOrd: Not->Int {
N1->1 + N2->2 + N3->3 + N4->4 + N5->5 + N6->6 + N7->7 + N8->8 + N9->9 + N10->10 +
N11->11 + N12->12 + N13->13 + N14->14 + N15->15 + N16->16 + N17->17 + N18->18 + N19->19 + N20->20 +
N21->21 + N22->22 + N23->23
}
fun aOrd: And->Int {
A1->1 + A2->2 + A3->3 + A4->4 + A5->5 + A6->6 + A7->7 + A8->8 + A9->9 + A10->10 +
A11->11 + A12->12 + A13->13 + A14->14 + A15->15 + A16->16 + A17->17 + A18->18 + A19->19 + A20->20 +
A21->21 + A22->22 + A23->23
}
fun binRels: Node->Node { arg+left+right }
--------------------------------------------------------------------------------
-- Symmetry breaking predicate
--------------------------------------------------------------------------------
pred sb[root: Node] {
all disj n0, n1: Not | n1 in n0.^(binRels) implies nOrd[n1] > nOrd[n0]
all disj a0, a1: And | a1 in a0.^(binRels) implies aOrd[a1] > aOrd[a0]
all a: And | ((a.left+a.right) in Not) implies nOrd[a.left] < nOrd[a.right]
}
fact {
arg = N1->A1 + N2->A2 + N3->A3 + N4->A4 + N5->A5 + N6->A6 + N7->A7 + N8->A8 + N9->A9 + N10->A10 +
N11->A11 + N12->A12 + N13->A13 + N14->A14 + N15->A15 + N16->A16 + N17->A17 + N18->A18 + N19->A19 + N20->A20 +
N21->A21 + N22->A22 + N23->A23
}
--------------------------------------------------------------------------------
-- Commands
--------------------------------------------------------------------------------
pred synth[root: N1] {
BoolVar in root.^(binRels) //all vars reachable from root
sb[root]
all env: BoolVar -> one Bit {
some eval: BoolNode->Bit when {
env in eval
semantics[eval]
}{
spec[root, eval]
}
}
}
// ORIGINAL: use only Not+And
run synth for 0 but -1..23 Int, exactly 23 Not, exactly 23 And
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1310.asm | ljhsiun2/medusa | 9 | 11728 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r8
push %rbx
push %rcx
push %rsi
lea addresses_WC_ht+0x17547, %r13
nop
nop
nop
nop
nop
sub %r14, %r14
mov (%r13), %rsi
nop
nop
nop
nop
add $51279, %rbx
lea addresses_A_ht+0x1baad, %r14
nop
nop
nop
and %r8, %r8
movups (%r14), %xmm1
vpextrq $0, %xmm1, %rcx
nop
nop
inc %r13
lea addresses_D_ht+0x71ad, %r8
nop
nop
nop
nop
nop
add $25084, %r11
mov $0x6162636465666768, %r14
movq %r14, (%r8)
nop
nop
nop
nop
nop
xor %r14, %r14
lea addresses_WC_ht+0xe4ad, %r13
clflush (%r13)
add $61065, %rbx
movw $0x6162, (%r13)
nop
nop
nop
nop
nop
sub $40836, %r11
lea addresses_WT_ht+0x16aad, %r14
nop
nop
nop
nop
dec %rsi
movb $0x61, (%r14)
nop
nop
nop
xor %r8, %r8
pop %rsi
pop %rcx
pop %rbx
pop %r8
pop %r14
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r8
push %r9
push %rdi
push %rdx
// Faulty Load
lea addresses_RW+0x64ad, %r9
nop
cmp %rdx, %rdx
mov (%r9), %r11d
lea oracles, %rdi
and $0xff, %r11
shlq $12, %r11
mov (%rdi,%r11,1), %r11
pop %rdx
pop %rdi
pop %r9
pop %r8
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': True, 'size': 8, 'NT': False, 'same': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 8}}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
|
oeis/167/A167778.asm | neoneye/loda-programs | 11 | 25540 | ; A167778: Subsequence of A167708 whose indices are 2 mod 5.
; Submitted by <NAME>
; 66,22335,7593834,2581881225,877832022666,298460305825215,101475626148550434,34501414430201322345,11730379430642301046866,3988294505003952154612095,1356008401321913090267065434,461038868154945446738647635465,156751859164280129978049928992666,53295171076987089247090237209870975,18120201414316446063880702601427138834,6160815185696514674630191794248017332585,2094659042935400672928201329341724465940066,712177913782850532280913821784392070402289855,242138396027126245574837771205363962212312610634
lpb $0
sub $0,1
add $2,12
add $3,5
mov $1,$3
mul $1,338
add $2,1
add $2,$1
add $3,$2
lpe
mul $3,2
sub $3,$2
mov $0,$3
mul $0,13
add $0,66
|
container/m.agda | HoTT/M-types | 27 | 14368 | {-# OPTIONS --without-K #-}
module container.m where
open import container.m.coalgebra public
open import container.m.from-nat public
open import container.m.core public
open import container.m.extensionality public
open import container.m.level public
|
delay.asm | Silvantica/Etch-A-Sketch | 0 | 10596 | <reponame>Silvantica/Etch-A-Sketch
delay:
; parameters:
; r0 = how much time to wait in milliseconds
push {r0-r8,lr}
; Convert r0 into microseconds since that's what we're loading
mov r4, r0
mov r1, #1000
mul r4, r1
; Load the timer memory offset into r1
mov r1, BASE
orr r1, TIMER_OFFSET
; Load start time into r5
ldrd r6,r7,[r1,#4]
mov r5,r6
delay_loop:
ldrd r6,r7,[r1,#4] ; Load current time into r6
sub r8,r6,r5 ; Subtract our start time from our current
cmp r8,r4 ; See if the time that has passed exceeds our time to wait
bls delay_loop ; If not, loop
pop {r0-r8,pc}
|
programs/oeis/249/A249123.asm | karttu/loda | 0 | 90691 | <reponame>karttu/loda
; A249123: Position of n^6 in the ordered union of {h^6, h >= 1} and {2*k^6, k >= 1}.
; 1,3,5,7,9,11,13,15,17,18,20,22,24,26,28,30,32,34,35,37,39,41,43,45,47,49,51,52,54,56,58,60,62,64,66,68,69,71,73,75,77,79,81,83,85,86,88,90,92,94,96,98,100,102,103,105,107,109,111,113,115,117,119
add $0,1
mov $1,34
mul $1,$0
div $1,18
|
Laburi/Lab12/2-mul-sum/mul.asm | marianastase0912/IOCLA | 2 | 98914 | <filename>Laburi/Lab12/2-mul-sum/mul.asm
.global main
main:
// prologue
push {r11, lr}
add r11, sp, #0
// initialization
mov r0, #10 // n
and r1, r1, #0 // sum
// TODO Compute sum of squares; place result in r1
compute_sum:
mla r1, r0, r0, r1
subs r0, #1
bne compute_sum
// print result
ldr r0, =output
bl printf
// epilogue
sub sp, r11, #0
pop {r11, pc}
.data
output:
.asciz "%d\n"
|
example/Examples in Paper/Graph.als | chongliujlu/ColorfulAlloy | 0 | 3803 | module Graph
/*
* ➀ Multigraph
* ➁ Undirected
* ➂ DAG
* ➃ Tree
* ➄ Vertex labeled
* ➅ Binary search tree
*/
fact FeatureModel {
// DAG incompatible with Undirected
➁➂some none➂➁
// Tree requires DAG
➃➌some none➌➃
// Binary search tree requires Tree
➅➍some none➍➅
// Binary search tree requires Vertex labeled
➅➎some none➎➅
}
sig Node {
adj : set Node,
➄label : one Label➄
}
➄sig Label {}➄
➃lone sig Root extends Node {}➃
sig Edge {
src, dst : one Node
}
➅sig Left, Right extends Edge {}➅
fact {
// Auxiliary relation two help with visualization and specification
adj = ~src.dst
// No multiple edges
➊all disj e,e' : Edge | e.src != e'.src or e.dst != e'.dst➊
// The adjency relation is symetric
➁adj = ~adj➁
// No cycles
➂all n : Node | n not in n.^adj➂
// All nodes except the root have one parent
➃all n : Node-Root | one adj.n➃
// Labels are unique
➄label in Node lone -> Label➄
// In binary search tree all edges are either left or right
// This is an example where it would be nice to mark the abstract keyword
➅Edge = Left+Right➅
// Each node has at most one left and one right adjacent
➅all n : Node | lone (src.n & Left).dst and lone (src.n & Right).dst➅
// The left and right adjacents must be distinct
➅all n : Node | no (src.n & Left).dst & (src.n & Right).dst➅
}
run {} with exactly ➊,➋,➌,➍,➎,➏ for 5 -- not working correctly, some features are selected
run {} with ➊,➋,➌,➍,➎,➏ for 5 -- not working correctly without the above fact
run {} with exactly ➀ for 5
run {} with exactly ➁ for 5
run {} with exactly ➂ for 5
run {} with exactly ➃ for 5 expect 0
run {} with exactly ➄ for 5
run {} with exactly ➅ for 5 expect 0
run {} with exactly ➀,➁ for 5
run {} with exactly ➀,➂ for 5
run {} with exactly ➀,➃ for 5 expect 0
run {} with exactly ➀,➄ for 5
run {} with exactly ➀,➅ for 5 expect 0
run {} with exactly ➁,➂ for 5 expect 0
run {} with exactly ➁,➃ for 5 expect 0
run {} with exactly ➁,➄ for 5
run {} with exactly ➁,➅ for 5 expect 0
run {} with exactly ➂,➃ for 5
run {} with exactly ➂,➄ for 5
run {} with exactly ➂,➅ for 5 expect 0
run {} with exactly ➃,➄ for 5 expect 0
run {} with exactly ➃,➅ for 5 expect 0
run {} with exactly ➄,➅ for 5 expect 0
run {} with exactly ➂,➃,➄,➅ for 2
run {} with exactly ➀,➂,➃,➄,➅ for 5
assert Connected {
// All nodes descend from root
➃Node in Root.*adj➃
}
check Connected with ➃ for 8 -- Not working correctly without the above fact
check Connected with exactly ➂,➃ for 8
check Connected with exactly ➀,➂,➃ for 8
check Connected with exactly ➂,➃,➄ for 8
check Connected with exactly ➀,➂,➃,➄ for 8
check Connected with exactly ➂,➃,➄,➅ for 8
check Connected with exactly ➀,➂,➃,➄,➅ for 8
assert SourcesAndSinks {
// If the graph is not empty there is at least one source and one sink node
some Node implies (some n : Node | no adj.n and some n : Node | no n.adj)
}
check SourcesAndSinks with ➂ for 7
|
src/routines_io.asm | freem/nesmon | 2 | 174694 | ;==============================================================================;
; nesmon/src/routines_io.asm
; NES hardware I/O routines (Joypads, etc?)
;==============================================================================;
.ignorenl
REPEAT_DELAY = 15 ; (60/4)
REPEAT_SPEED = 3
.endinl
;==============================================================================;
; io_ReadJoy
; Performs a normal read of the two regular joypads. (not DMC fortified)
; (Does not get microphone data on original Famicom)
io_ReadJoy:
; strobe the joypad
ldx #1
stx JOYSTICK1
dex
stx JOYSTICK1
; read 8 buttons
ldx #8
@readLoop:
lda JOYSTICK1
and #3 ; mask for normal input and Famicom expansion
cmp #1 ; combine via carry
rol tmp00
; do the same for P2
lda JOYSTICK2
and #3 ; %00000011
cmp #1 ; carry flag is set if A is >= to 1 (normal or FC expansion joypad input)
rol tmp01
dex
bne @readLoop
rts
;==============================================================================;
; io_ReadJoySafe
; Performs a safe read of the two regular joypads. (DMC fortified)
; (Uses io_ReadJoy; caveats apply)
io_ReadJoySafe:
lda pad1State
sta tmp04
lda pad2State
sta tmp05
jsr io_ReadJoy
lda tmp00
sta tmp02
lda tmp01
sta tmp03
jsr io_ReadJoy
ldx #1
@fixKeys:
lda tmp00,x
cmp tmp02,x
bne @keepLastPress
sta pad1State,x
@keepLastPress
lda tmp04,x
eor #$FF
and pad1State,x
sta pad1Trigger,x
dex
bpl @fixKeys
rts
;==============================================================================;
; io_JoyRepeat
; Handles joypad repeating
; (is this ever used???)
io_JoyRepeat:
lda pad1State,x
beq @end
lda pad1Trigger,x
beq @noRestart
sta pad1Repeat,x
lda #REPEAT_DELAY
sta pad1Timer,x
bne @end
@noRestart:
dec pad1Timer,x
bne @end
sta pad1Timer,x
lda pad1Repeat,x
and pad1State,x
ora pad1Trigger,x
sta pad1Trigger,x
@end:
rts
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_802.asm | ljhsiun2/medusa | 9 | 14446 | <filename>Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_802.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x11d49, %rsi
lea addresses_A_ht+0x1749, %rdi
nop
nop
nop
nop
sub $28938, %r10
mov $29, %rcx
rep movsl
mfence
lea addresses_A_ht+0xf489, %rsi
lea addresses_A_ht+0x15ce9, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
and %r12, %r12
mov $75, %rcx
rep movsb
add %rax, %rax
lea addresses_normal_ht+0xb389, %r10
nop
nop
dec %r14
movb (%r10), %al
nop
nop
nop
nop
nop
dec %rsi
lea addresses_A_ht+0x1df49, %r12
nop
nop
and $24371, %rdi
movb $0x61, (%r12)
nop
nop
nop
nop
nop
cmp %rdi, %rdi
lea addresses_normal_ht+0x15145, %rdi
nop
nop
nop
nop
xor %r10, %r10
mov $0x6162636465666768, %r12
movq %r12, (%rdi)
nop
nop
nop
add $7631, %rsi
lea addresses_WT_ht+0x3959, %rsi
lea addresses_WC_ht+0x4949, %rdi
nop
nop
nop
nop
cmp $39738, %r8
mov $109, %rcx
rep movsw
nop
nop
nop
cmp %r10, %r10
lea addresses_UC_ht+0x1b2f1, %rax
nop
nop
nop
nop
nop
add $56007, %r8
mov (%rax), %edi
nop
add $48079, %rcx
lea addresses_UC_ht+0xfb29, %rax
nop
sub $13539, %r10
movl $0x61626364, (%rax)
nop
nop
nop
nop
inc %rax
lea addresses_normal_ht+0x3cf1, %rcx
clflush (%rcx)
cmp $13954, %r8
mov $0x6162636465666768, %rdi
movq %rdi, %xmm4
movups %xmm4, (%rcx)
nop
nop
dec %r10
lea addresses_normal_ht+0x11f49, %rax
clflush (%rax)
nop
xor %r8, %r8
mov $0x6162636465666768, %rsi
movq %rsi, %xmm4
vmovups %ymm4, (%rax)
nop
nop
cmp $21605, %r14
lea addresses_D_ht+0x1ae59, %rsi
lea addresses_D_ht+0x19749, %rdi
nop
nop
and $43303, %r10
mov $121, %rcx
rep movsq
add $13554, %r12
lea addresses_D_ht+0x150d1, %rsi
lea addresses_WC_ht+0x910f, %rdi
nop
xor %r12, %r12
mov $17, %rcx
rep movsq
nop
nop
nop
nop
nop
xor %rcx, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r14
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
// Store
mov $0x7fd, %r15
nop
nop
and $52978, %rax
movl $0x51525354, (%r15)
inc %rdi
// Faulty Load
lea addresses_WT+0x7f49, %rsi
nop
and $9540, %r13
mov (%rsi), %rax
lea oracles, %r15
and $0xff, %rax
shlq $12, %rax
mov (%r15,%rax,1), %rax
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r15
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 4, 'NT': True, 'type': 'addresses_P'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}}
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}}
{'src': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 8, 'NT': True, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_UC_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_D_ht'}}
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WC_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
*/
|
programs/oeis/186/A186539.asm | neoneye/loda | 22 | 6619 | <reponame>neoneye/loda
; A186539: Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) before g(j) when f(i)=g(j), where f(i)=i^2 and g(j)=-2+3j^2. Complement of A186540.
; 1,3,4,6,7,9,11,12,14,15,17,18,20,22,23,25,26,28,29,31,33,34,36,37,39,41,42,44,45,47,48,50,52,53,55,56,58,59,61,63,64,66,67,69,70,72,74,75,77,78,80,82,83,85,86,88,89,91,93,94,96,97,99,100,102,104,105,107,108,110,111,113,115,116,118,119,121,123,124,126,127,129,130,132,134,135,137,138,140,141,143,145,146,148,149,151,153,154,156,157
mov $2,$0
add $0,1
seq $0,198081 ; Ceiling(n*Sqrt(3)).
sub $0,1
div $0,3
add $0,$2
add $0,1
|
programs/oeis/017/A017260.asm | karttu/loda | 1 | 83822 | ; A017260: a(n) = (9*n + 8)^4.
; 4096,83521,456976,1500625,3748096,7890481,14776336,25411681,40960000,62742241,92236816,131079601,181063936,244140625,322417936,418161601,533794816,671898241,835210000,1026625681,1249198336,1506138481,1800814096,2136750625,2517630976,2947295521,3429742096,3969126001,4569760000,5236114321,5972816656,6784652161,7676563456,8653650625,9721171216,10884540241,12149330176,13521270961,15006250000,16610312161,18339659776,20200652641,22199808016,24343800625,26639462656,29093783761,31713911056,34507149121,37480960000,40642963201,44000935696,47562811921,51336683776,55330800625,59553569296,64013554081,68719476736,73680216481,78904810000,84402451441,90182492416,96254442001,102627966736,109312890625,116319195136,123657019201,131336659216,139368569041,147763360000,156531800881,165684817936,175233494881,185189072896,195562950625,206366684176,217611987121,229310730496,241474942801,254116810000,267248675521,280883040256,295032562561,309710058256,324928500625,340701020416,357040905841,373961602576,391476713761,409600000000,428345379361,447726927376,467758877041,488455618816,509831700625,531901827856,554680863361,578183827456,602425897921,627422410000,653188856401,679740887296,707094310321,735265090576,764269350625,794123370496,824843587681,856446597136,888949151281,922368160000,956720690641,992023968016,1028295374401,1065552449536,1103812890625,1143094552336,1183415446801,1224793743616,1267247769841,1310796010000,1355457106081,1401249857536,1448193221281,1496306311696,1545608400625,1596118917376,1647857448721,1700843738896,1755097689601,1810639360000,1867488966721,1925666883856,1985193642961,2046089933056,2108376600625,2172074649616,2237205241441,2303789694976,2371849486561,2441406250000,2512481776561,2585098014976,2659277071441,2735041209616,2812412850625,2891414573056,2972069112961,3054399363856,3138428376721,3224179360000,3311675679601,3400940858896,3491998578721,3584872677376,3679587150625,3776166151696,3874633991281,3975015137536,4077334216081,4181616010000,4287885459841,4396167663616,4506487876801,4618871512336,4733344140625,4849931489536,4968659444401,5089554048016,5212641500641,5337948160000,5465500541281,5595325317136,5727449317681,5861899530496,5998703100625,6137887330576,6279479680321,6423507767296,6569999366401,6718982410000,6870484987921,7024535347456,7181161893361,7340393187856,7502257950625,7666785058816,7834003547041,8003942607376,8176631589361,8352100000000,8530377503761,8711493922576,8895479235841,9082363580416,9272177250625,9464950698256,9660714532561,9859499520256,10061336585521,10266256810000,10474291432801,10685471850496,10899829617121,11117396444176,11338204200625,11562284912896,11789670764881,12020394097936,12254487410881,12491983360000,12732914759041,12977314579216,13225215949201,13476652155136,13731656640625,13990263006736,14252505012001,14518416572416,14788031761441,15061384810000,15338510106481,15619442196736,15904215784081,16192865729296,16485427050625,16781934923776,17082424681921,17386931815696,17695491973201,18008140960000,18324914739121,18645849431056,18970981313761,19300346822656,19633982550625,19971925248016,20314211822641,20660879339776,21011965022161,21367506250000,21727540560961,22092105650176,22461239370241,22834979731216,23213364900625,23596433203456,23984223122161,24376773296656,24774122524321,25176309760000,25583374116001
mul $0,9
add $0,8
pow $0,4
mov $1,$0
|
payload.asm | janding/lzfx-boot | 5 | 242583 | <gh_stars>1-10
; Offset where the bootloader will put this after unpacking
org 0x7e00
; Print the message
xor ax, ax
mov ds, ax
mov si, msg
print:
lodsb
test al, al
jz .done
mov ah, 0x0e
int 0x10
jmp print
.done:
jmp $
; ASCII art of a bean
msg:
db " DICKB", 13, 10
db " UTTDICKBUTTD", 13, 10
db " ICKBUT TDIC", 13, 10
db " KBUTTDIC KBU", 13, 10
db " TTDICKBUT TDICKBU TT", 13, 10
db " DIC KBUTT DICKBUTTDIC", 13, 10
db " KBUTTDICKB UTTDICKBUTT", 13, 10
db " DIC KBUTTDICK BUT", 13, 10
db " TDI CKB", 13, 10
db " UTT DIC", 13, 10
db " KB UTTDI CKB", 13, 10
db " UT TDICK BU TTDICK", 13, 10
db " BU TTDI CKB UTTD IC", 13, 10
db " KB UTTD ICKBUTTDIC KBUT TDI", 13, 10
db " CK BUT TD IC KBUTT DIC", 13, 10
db " KBU TTDICK BUTTDICKB UTT", 13, 10
db " DI CKBUTTD ICKB UTTD", 13, 10
db " ICK BU TT DIC KBUT", 13, 10
db " TDIC KB UTT DI", 13, 10
db " C KBUTT DI CKBUTTDI", 13, 10
db " CKBUTTD ICKBUTTDIC KB UTT", 13, 10
db " DI CKBUT TDICKBUTTDICKBUT", 13, 10
db " TDICK BUTTDI CK", 13, 10
db " BU TTD IC", 13, 10
db " KBUTT", 0 |
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_9997_514.asm | ljhsiun2/medusa | 9 | 173778 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x14c19, %r9
nop
add $8133, %r12
mov (%r9), %r14w
nop
nop
nop
sub $3506, %r13
lea addresses_WC_ht+0x6df1, %rbx
clflush (%rbx)
nop
nop
nop
xor $38008, %r10
mov $0x6162636465666768, %rdi
movq %rdi, (%rbx)
nop
nop
nop
nop
cmp %r9, %r9
lea addresses_UC_ht+0x139b9, %rsi
lea addresses_D_ht+0x9eb9, %rdi
nop
cmp $42201, %r13
mov $87, %rcx
rep movsb
nop
nop
nop
and %rsi, %rsi
lea addresses_normal_ht+0x89e9, %rdi
nop
xor %r13, %r13
mov (%rdi), %r10w
nop
cmp %r14, %r14
lea addresses_WT_ht+0x152b9, %rdi
xor %rsi, %rsi
movw $0x6162, (%rdi)
nop
nop
nop
xor $13640, %r13
lea addresses_normal_ht+0x2bc7, %rsi
lea addresses_WT_ht+0x8fb9, %rdi
nop
nop
nop
nop
nop
sub %r9, %r9
mov $62, %rcx
rep movsb
nop
nop
nop
nop
cmp $22235, %rbx
lea addresses_WT_ht+0x87d9, %rsi
lea addresses_UC_ht+0x17a39, %rdi
clflush (%rdi)
nop
add %rbx, %rbx
mov $118, %rcx
rep movsq
nop
add %rbx, %rbx
lea addresses_WT_ht+0x1ae39, %r14
nop
sub $4013, %rdi
movups (%r14), %xmm5
vpextrq $1, %xmm5, %r13
xor %rsi, %rsi
lea addresses_D_ht+0x1b279, %rsi
lea addresses_D_ht+0x1e8b9, %rdi
nop
nop
nop
add $1444, %r9
mov $86, %rcx
rep movsq
nop
nop
nop
dec %r14
lea addresses_WT_ht+0x9d71, %r13
nop
add %rdi, %rdi
movl $0x61626364, (%r13)
nop
nop
nop
cmp %rbx, %rbx
lea addresses_WC_ht+0xc2d9, %rsi
lea addresses_WT_ht+0xa619, %rdi
nop
nop
nop
nop
nop
inc %rbx
mov $37, %rcx
rep movsb
nop
nop
nop
nop
nop
add $48144, %rcx
lea addresses_normal_ht+0xf2ab, %r9
nop
nop
nop
nop
add %r14, %r14
mov $0x6162636465666768, %r13
movq %r13, (%r9)
nop
nop
nop
inc %rcx
lea addresses_D_ht+0x1d2b9, %r10
nop
nop
nop
nop
sub %r14, %r14
movb $0x61, (%r10)
nop
nop
nop
nop
nop
cmp $57714, %rbx
lea addresses_WC_ht+0xa9a5, %rbx
nop
nop
nop
cmp $6069, %r9
movw $0x6162, (%rbx)
nop
nop
nop
nop
nop
lfence
lea addresses_WT_ht+0xc3e9, %rsi
lea addresses_UC_ht+0x15245, %rdi
dec %r12
mov $8, %rcx
rep movsq
nop
nop
nop
nop
nop
cmp %rbx, %rbx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r14
pop %r13
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15
push %r9
push %rax
push %rbp
push %rdi
// Faulty Load
lea addresses_RW+0xeab9, %rdi
nop
sub %r9, %r9
mov (%rdi), %r11d
lea oracles, %rax
and $0xff, %r11
shlq $12, %r11
mov (%rax,%r11,1), %r11
pop %rdi
pop %rbp
pop %rax
pop %r9
pop %r15
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 2, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}}
{'32': 9997}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
|
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_2_1695.asm | ljhsiun2/medusa | 9 | 20226 | <filename>Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_2_1695.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %r9
push %rax
push %rbp
push %rcx
lea addresses_WC_ht+0x4b80, %r15
nop
nop
nop
add %r10, %r10
mov $0x6162636465666768, %r14
movq %r14, %xmm7
movups %xmm7, (%r15)
nop
nop
nop
nop
nop
cmp %r15, %r15
lea addresses_UC_ht+0x179b0, %rax
nop
nop
xor $21194, %rcx
movw $0x6162, (%rax)
cmp %rcx, %rcx
lea addresses_WT_ht+0x1ef00, %r9
add %rbp, %rbp
movb (%r9), %r14b
nop
nop
xor %r14, %r14
lea addresses_normal_ht+0x1dd40, %rbp
clflush (%rbp)
nop
nop
nop
nop
cmp %r15, %r15
movups (%rbp), %xmm2
vpextrq $1, %xmm2, %r9
nop
nop
inc %r9
lea addresses_D_ht+0x10b90, %r15
nop
nop
nop
nop
nop
add $25779, %rax
movb $0x61, (%r15)
add %r9, %r9
lea addresses_WT_ht+0x10a50, %rbp
xor $12383, %r15
mov $0x6162636465666768, %r14
movq %r14, (%rbp)
nop
nop
nop
nop
and $32273, %r9
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r15
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r8
push %r9
push %rbx
push %rdi
// Store
lea addresses_WT+0x11e90, %r8
nop
nop
inc %r9
movl $0x51525354, (%r8)
nop
nop
nop
add $39415, %r8
// Store
lea addresses_normal+0x1c090, %r8
nop
nop
nop
nop
nop
dec %r12
mov $0x5152535455565758, %rdi
movq %rdi, %xmm5
vmovups %ymm5, (%r8)
xor %r12, %r12
// Store
lea addresses_WC+0x14e50, %rbx
nop
nop
nop
nop
xor %rdi, %rdi
mov $0x5152535455565758, %r12
movq %r12, %xmm3
movups %xmm3, (%rbx)
cmp $33540, %rbx
// Store
lea addresses_PSE+0x106bd, %r8
nop
nop
nop
nop
inc %r11
movw $0x5152, (%r8)
nop
nop
nop
dec %rbx
// Store
lea addresses_UC+0xce10, %rbx
add %r10, %r10
mov $0x5152535455565758, %r11
movq %r11, (%rbx)
xor $59953, %rdi
// Store
lea addresses_D+0xeac, %r10
nop
nop
nop
nop
nop
and $24391, %r12
movl $0x51525354, (%r10)
nop
nop
nop
nop
and $44696, %r12
// Store
lea addresses_WC+0x14890, %r10
nop
nop
nop
dec %r9
movw $0x5152, (%r10)
nop
and %r8, %r8
// Faulty Load
lea addresses_WC+0x14890, %rdi
nop
nop
nop
inc %r11
movb (%rdi), %r9b
lea oracles, %rdi
and $0xff, %r9
shlq $12, %r9
mov (%rdi,%r9,1), %r9
pop %rdi
pop %rbx
pop %r9
pop %r8
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WC', 'same': True, 'AVXalign': False, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': True, 'congruent': 5}}
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': True, 'AVXalign': True, 'congruent': 6}}
{'52': 2}
52 52
*/
|
oeis/342/A342603.asm | neoneye/loda-programs | 11 | 86292 | <reponame>neoneye/loda-programs
; A342603: a(0) = 0, a(1) = 1; a(2*n) = a(n), a(2*n+1) = 6*a(n) + a(n+1).
; Submitted by <NAME>
; 0,1,1,7,1,13,7,43,1,19,13,85,7,85,43,259,1,25,19,127,13,163,85,517,7,127,85,553,43,517,259,1555,1,31,25,169,19,241,127,775,13,241,163,1063,85,1027,517,3109,7,169,127,847,85,1063,553,3361,43,775,517,3361,259,3109,1555,9331,1,37,31,211,25,319,169,1033,19,355,241,1573,127,1537,775,4663,13,319,241,1609,163,2041,1063,6463,85,1537,1027,6679,517,6211,3109,18661,7,211,169,1141
mov $1,1
lpb $0
lpb $0
dif $0,2
add $1,$2
lpe
div $0,2
add $2,$1
mul $2,6
lpe
mov $0,$2
div $0,6
|
pwnlib/shellcraft/templates/thumb/mov.asm | magnologan/pwntools | 7 | 97836 | <gh_stars>1-10
<%
from pwnlib.shellcraft import common
from pwnlib import constants
from pwnlib.context import context as ctx # Ugly hack, mako will not let it be called context
%>
<%page args="dst, src"/>
<%docstring>
mov(dst, src)
Returns THUMB code for moving the specified source value
into the specified destination register.
If src is a string that is not a register, then it will locally set
`context.arch` to `'thumb'` and use :func:`pwnlib.constants.eval` to evaluate the
string. Note that this means that this shellcode can change behavior depending
on the value of `context.os`.
Example:
>>> print shellcraft.thumb.mov('r1','r2').rstrip()
mov r1, r2
>>> print shellcraft.thumb.mov('r1', 0).rstrip()
eor r1, r1
>>> print shellcraft.thumb.mov('r1', 10).rstrip()
mov r1, #10
>>> print shellcraft.thumb.mov('r1', 17).rstrip()
mov r1, #17
>>> print shellcraft.thumb.mov('r1', 'r1').rstrip()
/* moving r1 into r1, but this is a no-op */
>>> print shellcraft.thumb.mov('r1', 0xdead00ff).rstrip()
ldr r1, value_...
b value_..._after
value_...: .word 3735879935
value_..._after:
>>> with context.local(os = 'linux'):
... print shellcraft.thumb.mov('r1', 'SYS_execve').rstrip()
mov r1, #11
>>> with context.local(os = 'freebsd'):
... print shellcraft.thumb.mov('r1', 'SYS_execve').rstrip()
mov r1, #59
>>> with context.local(os = 'linux'):
... print shellcraft.thumb.mov('r1', 'PROT_READ | PROT_WRITE | PROT_EXEC').rstrip()
mov r1, #7
</%docstring>
<%
all_regs = ['r' + str(n) for n in range(16)] + ['sp', 'fp', 'pc', 'lr']
src_orig = src
if isinstance(src, (str, unicode)):
src = src.strip()
if src.lower() in all_regs:
src = src.lower()
else:
with ctx.local(arch = 'thumb'):
try:
src = constants.eval(src)
except (AttributeError, ValueError):
log.error("Could not figure out the value of %r" % src)
return
%>
% if dst == src:
/* moving ${src} into ${dst}, but this is a no-op */
% elif not isinstance(src, (int, long)):
mov ${dst}, ${src}
% else:
<%
srcu = src & 0xffffffff
srcs = srcu - 2 * (srcu & 0x80000000)
%>\
%if srcu == 0:
eor ${dst}, ${dst}
%elif srcu < 256:
mov ${dst}, #${src}
%elif -256 < srcs < 0:
eor ${dst}, ${dst}
sub ${dst}, #${-srcs}
%else:
<%
shift1 = 0
while (1 << shift1) & src == 0:
shift1 += 1
%>\
%if (0xff << shift1) & src == src:
%if shift1 < 4:
mov ${dst}, #${src >> shift1}
lsl ${dst}, #4
lsr ${dst}, #{4 - shift1}
%else:
mov ${dst}, #${src >> shift1}
lsl ${dst}, #${shift1}
%endif
%else:
<%
shift2 = 8
while (1 << shift2) & src == 0:
shift2 += 1
%>\
%if ((0xff << shift2) | 0xff) & src == src:
mov ${dst}, #${src >> shift2}
lsl ${dst}, #${shift2}
add ${dst}, #${src & 0xff}
%else:
<%
shift3 = shift1 + 8
while (1 << shift3) & src == 0:
shift3 += 1
%>\
%if ((0xff << shift1) | (0xff << shift3)) & src == src:
mov ${dst}, #${src >> shift3}
lsl ${dst}, #${shift3 - shift1}
add ${dst}, #${(src >> shift1) & 0xff}
lsl ${dst}, #${shift1}
%else:
<%
id = common.label("value")
extra = ''
if (src & 0xff000000 == 0):
src = src | 0xff000000
extra = '\n '.join([
"lsl %s, #8" % dst,
"lsr %s, #8" % dst
])
%>\
ldr ${dst}, ${id}
b ${id}_after
${id}: .word ${src}
${id}_after:
${extra}
%endif
%endif
%endif
%endif
%endif
|
programs/oeis/283/A283237.asm | neoneye/loda | 22 | 26677 | <gh_stars>10-100
; A283237: a(n) = sigma_2(3*n).
; 10,50,91,210,260,455,500,850,820,1300,1220,1911,1700,2500,2366,3410,2900,4100,3620,5460,4550,6100,5300,7735,6510,8500,7381,10500,8420,11830,9620,13650,11102,14500,13000,17220,13700,18100,15470,22100,16820,22750,18500,25620,21320,26500,22100,31031,24510,32550,26390,35700,28100,36905,31720,42500,32942,42100,34820,49686,37220,48100,41000,54610,44200,55510,44900,60900,48230,65000,50420,69700,53300,68500,59241,76020,61000,77350,62420,88660,66430,84100,68900,95550,75400,92500,76622,103700,79220,106600,85000,111300,87542,110500,94120,124215,94100,122550,100040,136710
add $0,1
mul $0,3
mov $2,$0
lpb $0
mov $3,$2
mov $4,$0
cmp $4,0
add $0,$4
dif $3,$0
cmp $3,$2
cmp $3,0
mul $3,$0
sub $0,1
pow $3,2
add $1,$3
lpe
add $1,1
mov $0,$1
|
programs/oeis/016/A016065.asm | neoneye/loda | 22 | 165857 | <filename>programs/oeis/016/A016065.asm
; A016065: a(n) = Sum_{k=0..n} k!*(k+1)!.
; 1,3,15,159,3039,89439,3718239,206931039,14838252639,1331657196639,146181741036639,19266392807916639,3002019319241196639,545863051930098156639,114546679900210059756639,27474742723487400843756639,7469448066579203294091756639,2284713285166428266627979756639,781102105573314807926817675756639,296731711175069699078798902155756639
lpb $0
add $1,1
mul $1,$0
mov $2,$0
sub $0,1
mul $2,$1
add $1,$2
lpe
add $1,1
mov $0,$1
|
programs/oeis/192/A192136.asm | karttu/loda | 1 | 21462 | ; A192136: a(n) = (5*n^2 - 3*n + 2)/2.
; 1,2,8,19,35,56,82,113,149,190,236,287,343,404,470,541,617,698,784,875,971,1072,1178,1289,1405,1526,1652,1783,1919,2060,2206,2357,2513,2674,2840,3011,3187,3368,3554,3745,3941,4142,4348,4559,4775,4996,5222,5453,5689,5930,6176,6427,6683,6944,7210,7481,7757,8038,8324,8615,8911,9212,9518,9829,10145,10466,10792,11123,11459,11800,12146,12497,12853,13214,13580,13951,14327,14708,15094,15485,15881,16282,16688,17099,17515,17936,18362,18793,19229,19670,20116,20567,21023,21484,21950,22421,22897,23378,23864,24355,24851,25352,25858,26369,26885,27406,27932,28463,28999,29540,30086,30637,31193,31754,32320,32891,33467,34048,34634,35225,35821,36422,37028,37639,38255,38876,39502,40133,40769,41410,42056,42707,43363,44024,44690,45361,46037,46718,47404,48095,48791,49492,50198,50909,51625,52346,53072,53803,54539,55280,56026,56777,57533,58294,59060,59831,60607,61388,62174,62965,63761,64562,65368,66179,66995,67816,68642,69473,70309,71150,71996,72847,73703,74564,75430,76301,77177,78058,78944,79835,80731,81632,82538,83449,84365,85286,86212,87143,88079,89020,89966,90917,91873,92834,93800,94771,95747,96728,97714,98705,99701,100702,101708,102719,103735,104756,105782,106813,107849,108890,109936,110987,112043,113104,114170,115241,116317,117398,118484,119575,120671,121772,122878,123989,125105,126226,127352,128483,129619,130760,131906,133057,134213,135374,136540,137711,138887,140068,141254,142445,143641,144842,146048,147259,148475,149696,150922,152153,153389,154630
mov $1,$0
bin $0,2
mul $0,5
add $1,$0
add $1,1
|
testsuite/ubivm/expected/def_var_2.asm | alexgarzao/UOP | 0 | 104061 | <reponame>alexgarzao/UOP
Entity start
Constants
0 S start
1 S var1
2 I 10
End
Def start
Local variables
0 int var1
End
ldconst 2 --> [10]
stvar 0 --> [var1]
stop
End
End
|
Lab_5/Forum(Notes)/group5.ex4.asm | nickbel7/ntua-microprocessors-systems | 0 | 99419 | ; Microcomputer Systems - Flow Y [6th Semester]
; <NAME> - 031 17 198 - <EMAIL>
; <NAME> - 031 17 165 - <EMAIL>
; 5th Group of Exercises
; 4th Exercise
INCLUDE MACROS.ASM
DATA_SEG SEGMENT
SYMBOLS DB 16 DUP(?)
NEWLINE DB 0AH,0DH,'$'
ENTER DB "Enter was pressed. Exiting...",0AH,0DH,'$'
DATA_SEG ENDS
CODE_SEG SEGMENT
ASSUME CS:CODE_SEG, DS:DATA_SEG
MAIN PROC FAR
MOV AX,DATA_SEG
MOV DS,AX
AGAIN:
MOV CX,16 ; initialize counter
MOV DI,0 ; initialize array index
INPUT:
CALL GET_CHAR ; get acceptable character
CMP AL,0DH ; if it's enter then exit
JE END_OF_PROG
MOV [SYMBOLS+DI],AL
INC DI
LOOP INPUT
MOV CX,16
MOV DI,0
OUTPUT:
PRINT [SYMBOLS+DI] ; print all characters
INC DI
LOOP OUTPUT
_STR NEWLINE ; new line
MOV CX,16
MOV DI,0
PRINT_NUMS:
MOV AL,[SYMBOLS+DI]
CMP AL,30H ; we check if it is an ASCII coded digit
JL NOT_A_NUMBER
CMP AL,39H
JG NOT_A_NUMBER
PRINT AL ; print only the digits
NOT_A_NUMBER:
INC DI
LOOP PRINT_NUMS
PRINT '-'
MOV CX,16
MOV DI,0
PRINT_LETTERS:
MOV AL,[SYMBOLS+DI]
CMP AL,'A' ; we check if it is an ASCII coded capital letter
JL NOT_A_LETTER
CMP AL,'Z'
JG NOT_A_LETTER
ADD AL,20H ; make it a non-capital letter
PRINT AL ; print only the letters as non capitals
NOT_A_LETTER:
INC DI
LOOP PRINT_LETTERS
PRINT_STR NEWLINE ; new line
JMP AGAIN
END_OF_PROG:
PRINT_STR ENTER
EXIT
MAIN ENDP
; --------- AUXILIARY ROUTINES -----------
; READ A DIGIT OR CHARACTER BETWEEN 'A' AND 'Z' --> AL
GET_CHAR PROC NEAR
IGNORE:
READ
CMP AL,0DH
JE INPUT_OK
CMP AL,30H ; if input < 30H ('0') then ignore it
JL IGNORE
CMP AL,39H ; if input > 39H ('9') then it may be a capital letter
JG MAYBE_LETTER
JMP INPUT_OK
MAYBE_LETTER:
CMP AL,'A' ; if input < 'A' then ignore it
JL IGNORE
CMP AL,'Z' ; if input > 'Z' then ignore it
JG IGNORE
INPUT_OK:
RET
GET_CHAR ENDP
; PRINT THE NUMBER IN DL
PRINT_HEX PROC NEAR
PUSH AX
MOV AL,DL
SAR AL,4
AND AL,0FH ; isolate 4 MSB
ADD AL,30H ; ASCII code it
CMP AL,39H
JLE NEX
ADD AL,07H ; if it's a letter, fix ASCII
NEX:
CMP AL,'0'
JE DONT_PRINT_IT
PRINT AL ; print the first hex digit
DONT_PRINT_IT:
MOV AL,DL
AND AL,0FH ; isolate 4 LSB
ADD AL,30H ; ASCII code it
CMP AL,39H
JLE OK
ADD AL,07H ; if it's a letter, fix ASCII
OK:
PRINT AL ; print the second hex digit
POP AX
RET
PRINT_HEX ENDP
CODE_SEG ENDS
END MAIN
|
base/common/memmove.asm | zbyti/Mad-Pascal | 7 | 80219 |
/*
@moveu
@move
*/
; <NAME>, 2003-08-20
; Performance increase (about 20%) by
; <NAME>, 2009-09-13
.proc @moveu ; assert Y = 0
ptr1 = edx
ptr2 = ecx
ptr3 = eax
stx @sp
ldy #0
ldx ptr3+1 ; Get high byte of n
beq L2 ; Jump if zero
L1: .rept 2 ; Unroll this a bit to make it faster...
lda (ptr1),Y ; copy a byte
sta (ptr2),Y
iny
.endr
bne L1
inc ptr1+1
inc ptr2+1
dex ; Next 256 byte block
bne L1 ; Repeat if any
; the following section could be 10% faster if we were able to copy
; back to front - unfortunately we are forced to copy strict from
; low to high since this function is also used for
; memmove and blocks could be overlapping!
; {
L2: ; assert Y = 0
ldx ptr3 ; Get the low byte of n
beq done ; something to copy
L3: lda (ptr1),Y ; copy a byte
sta (ptr2),Y
iny
dex
bne L3
; }
done ldx #0
@sp equ *-1
rts
.endp
@move .proc (.word ptr1, ptr2, ptr3) .var
ptr1 = edx
ptr2 = ecx
ptr3 = eax
src = ptr1
dst = ptr2
cnt = ptr3
cpw ptr2 ptr1
scs
jmp @moveu
stx @sp
; Copy downwards. Adjust the pointers to the end of the memory regions.
lda ptr1+1
add ptr3+1
sta ptr1+1
lda ptr2+1
add ptr3+1
sta ptr2+1
; handle fractions of a page size first
ldy ptr3 ; count, low byte
bne @entry ; something to copy?
beq PageSizeCopy ; here like bra...
@copyByte:
lda (ptr1),y
sta (ptr2),y
@entry:
dey
bne @copyByte
lda (ptr1),y ; copy remaining byte
sta (ptr2),y
PageSizeCopy: ; assert Y = 0
ldx ptr3+1 ; number of pages
beq done ; none? -> done
@initBase:
dec ptr1+1 ; adjust base...
dec ptr2+1
dey ; in entry case: 0 -> FF
lda (ptr1),y ; need to copy this 'intro byte'
sta (ptr2),y ; to 'land' later on Y=0! (as a result of the '.repeat'-block!)
dey ; FF ->FE
@copyBytes:
.rept 2 ; Unroll this a bit to make it faster...
lda (ptr1),y
sta (ptr2),y
dey
.endr
@copyEntry: ; in entry case: 0 -> FF
bne @copyBytes
lda (ptr1),y ; Y = 0, copy last byte
sta (ptr2),y
dex ; one page to copy less
bne @initBase ; still a page to copy?
done ldx #0
@sp equ *-1
rts
.endp
|
programs/oeis/047/A047673.asm | neoneye/loda | 22 | 83679 | ; A047673: Row 4 of square array defined in A047671.
; 1,13,61,193,481,1021,1933,3361,5473,8461,12541,17953,24961,33853,44941,58561,75073,94861,118333,145921,178081,215293,258061,306913,362401,425101,495613,574561,662593,760381,868621,988033,1119361
mov $1,$0
pow $0,2
add $0,$1
add $0,2
pow $0,2
sub $0,3
|
test/asset/agda-stdlib-1.0/Data/List/Relation/Binary/Sublist/Heterogeneous/Core.agda | omega12345/agda-mode | 0 | 2462 | ------------------------------------------------------------------------
-- The Agda standard library
--
-- This file contains some core definitions which are re-exported by
-- Data.List.Relation.Binary.Sublist.Heterogeneous.
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
open import Relation.Binary using (REL)
module Data.List.Relation.Binary.Sublist.Heterogeneous.Core
{a b r} {A : Set a} {B : Set b} (R : REL A B r)
where
open import Level using (_⊔_)
open import Data.List.Base using (List; []; _∷_; [_])
data Sublist : REL (List A) (List B) (a ⊔ b ⊔ r) where
[] : Sublist [] []
_∷ʳ_ : ∀ {xs ys} → ∀ y → Sublist xs ys → Sublist xs (y ∷ ys)
_∷_ : ∀ {x xs y ys} → R x y → Sublist xs ys → Sublist (x ∷ xs) (y ∷ ys)
|
programs/oeis/180/A180861.asm | jmorken/loda | 1 | 81021 | ; A180861: Wiener index of the n-pan graph.
; 1,4,8,16,26,42,61,88,119,160,206,264,328,406,491,592,701,828,964,1120,1286,1474,1673,1896,2131,2392,2666,2968,3284,3630,3991,4384,4793,5236,5696,6192,6706,7258,7829,8440,9071,9744,10438,11176,11936,12742,13571,14448
mov $1,$0
add $0,1
mov $2,$0
pow $2,2
lpb $0
trn $0,$2
add $1,3
div $2,4
add $2,2
lpe
mul $1,$2
div $1,2
sub $1,2
|
test-resources/ExamplesFromRoy/md_example5.ads | hergin/ada2fuml | 0 | 14051 | with Globals_Example1;
with Md_Example4;
package Md_Example5 is
type T is new Md_Example4.T with record
Child_Attribute : Globals_Example1.Itype;
end record;
procedure Display_It (The_T : T);
end Md_Example5;
|
Task/Integer-sequence/Ada/integer-sequence-2.ada | LaudateCorpus1/RosettaCodeData | 1 | 21955 | <filename>Task/Integer-sequence/Ada/integer-sequence-2.ada
with Ada.Text_IO;
procedure Positives is
begin
for Value in Positive'Range loop
Ada.Text_IO.Put_Line (Positive'Image (Value));
end loop;
end Positives;
|
examples/lib/Data/Maybe.agda | cruhland/agda | 1,989 | 15935 | <reponame>cruhland/agda
module Data.Maybe where
data Maybe (a : Set) : Set where
nothing : Maybe a
just : a -> Maybe a
fmap : {A B : Set} -> (A -> B) -> Maybe A -> Maybe B
fmap f nothing = nothing
fmap f (just a) = just (f a )
|
programs/oeis/017/A017099.asm | neoneye/loda | 22 | 242540 | ; A017099: a(n) = (8*n + 2)^11.
; 2048,100000000000,64268410079232,3670344486987776,70188843638032384,717368321110468608,4882812500000000000,24986644000165537792,103510234140112521216,364375289404334925824,1127073856954876807168,3138105960900000000000,8007313507497959524352,18982985583354248390656,42262322980951656843264,89116503268220597577728,179216039403700000000000,345676575099245416998912,642512252044000682756096,1155388203804953497544704,2016810807672035804940288,3427189630763300000000000,5683554455074796217321472,9218120615459689670977536,14649372735243886851590144,22848887739705683048654848,35027750054222100000000000,52847132780654751438252032,78558436364536056991614976,115179299131727923510339584,166712830744247830760081408,238418579101562500000000000,337145032839390594819950592,471734895039369510442428416,653515949089146258317953024,896892085195750456196179968,1220050976570582900000000000,1645806998829973233948977152,2202600286091874661776377856,2925675324340604967987390464,3858465208964226558463510528,5054210651372681700000000000,6577846022051543255362291712,8508188177411469292077623296,10940467548815308008476411904,13989244988004316189622233088,17791762177946041300000000000,22511778046375868461571254272,28343948575831725778577524736,35518812703959534278923577344,44308452666811124371870107648,55032903171624844100000000000,68067390210373163218005624832,83850487157725321590910642176,102893283053893453600144246784,125789665671337497908806494208,153227830122070312500000000000,186003132397245379497877563392,225032416361083806744810735616,271369952365606399975686580224,326225135830024659938776352768,390982104858298804900000000000,467221447269921365272965629952,556744179312404460981246765056,661598190829553353623447537664,784107364798056947318294243328,926903592937219159700000000000,1092961923564137946058318784512,1285639093030998565918998890496,1508715707964414645985848879104,1766442362151297812563548325888,2063589989304280119300000000000,2405504771115312043978880387072,2798167938992114215508674471936,3248260827692417886246573164544,3763235559749474995117984360448,4351391761143583866100000000000,5021959731143134429686032197632,5785190512640043499796164069376,6652453333663885125801859753984,7636340916102325292153969707008,8750783174008789062500000000000,10011169851268109349812058376192,11434482676844060410283537442816,13039437645376339360654360807424,14846638061556241842956537325568,16878739018517842626900000000000,19160624013463140550410529482752,21719594437923904738055379552256,24585572715478753372817557284864,27791319896420538179177209776128,31372668556835970837700000000000,35368771888846528308990606477312,39822369909397271896318566557696,44780073756998912102538734946304,50292669089259193101885903218688,56415439638913744997300000000000,63208512032415589898313264719872,70737223022998463045083481819136,79072510339524339415468520351744
mul $0,8
add $0,2
pow $0,11
|
Cubical/ZCohomology/Groups/Wedge.agda | knrafto/cubical | 0 | 13979 | {-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.ZCohomology.Groups.Wedge where
open import Cubical.ZCohomology.Base
open import Cubical.ZCohomology.Properties
open import Cubical.ZCohomology.MayerVietorisUnreduced
open import Cubical.Foundations.HLevels
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Pointed
open import Cubical.HITs.Wedge
open import Cubical.HITs.SetTruncation renaming (elim to sElim ; elim2 to sElim2)
open import Cubical.HITs.PropositionalTruncation renaming (rec to pRec ; ∣_∣ to ∣_∣₁)
open import Cubical.Data.Nat
open import Cubical.Data.Prod
open import Cubical.Data.Unit
open import Cubical.Algebra.Group
open import Cubical.ZCohomology.Groups.Unit
open import Cubical.ZCohomology.Groups.Sn
open import Cubical.HITs.Pushout
--- This module contains a proof that Hⁿ(A ⋁ B) ≅ Hⁿ(A) × Hⁿ(B), n ≥ 1
module _ {ℓ ℓ'} (A : Pointed ℓ) (B : Pointed ℓ') where
module I = MV (typ A) (typ B) Unit (λ _ → pt A) (λ _ → pt B)
Hⁿ-⋁ : (n : ℕ) → GroupEquiv (coHomGr (suc n) (A ⋁ B)) (×coHomGr (suc n) (typ A) (typ B))
Hⁿ-⋁ zero =
BijectionIsoToGroupEquiv
(bij-iso
(grouphom
(GroupHom.fun (I.i 1))
(sElim2 (λ _ _ → isOfHLevelPath 2 (isOfHLevelΣ 2 setTruncIsSet λ _ → setTruncIsSet) _ _)
λ a b → GroupHom.isHom (I.i 1) ∣ a ∣₂ ∣ b ∣₂))
(sElim (λ _ → isOfHLevelΠ 2 λ _ → isOfHLevelPath 2 setTruncIsSet _ _)
λ f inker → helper ∣ f ∣₂ (I.Ker-i⊂Im-d 0 ∣ f ∣₂ inker))
(sigmaElim (λ _ → isOfHLevelSuc 1 propTruncIsProp)
λ f g → I.Ker-Δ⊂Im-i 1 (∣ f ∣₂ , g) (isOfHLevelSuc 0 (isContrHⁿ-Unit 0) _ _)))
where
surj-helper : (x : coHom 0 Unit)
→ isInIm _ _ (I.Δ 0) x
surj-helper =
sElim (λ _ → isOfHLevelSuc 1 propTruncIsProp)
λ f → ∣ (∣ (λ _ → f tt) ∣₂ , 0ₕ) , cong ∣_∣₂ (funExt (λ _ → cong ((f tt) +ₖ_) -0ₖ ∙ rUnitₖ (f tt))) ∣₁
helper : (x : coHom 1 (A ⋁ B)) → isInIm _ _ (I.d 0) x
→ x ≡ 0ₕ
helper x inim =
pRec (setTruncIsSet _ _)
(λ p → sym (snd p) ∙
MV.Im-Δ⊂Ker-d _ _ Unit (λ _ → pt A) (λ _ → pt B) 0 (fst p) (surj-helper (fst p)))
inim
Hⁿ-⋁ (suc n) =
vSES→GroupEquiv _ _
(ses (isOfHLevelSuc 0 (isContrHⁿ-Unit n))
(isOfHLevelSuc 0 (isContrHⁿ-Unit (suc n)))
(I.d (suc n))
(I.Δ (suc (suc n)))
(I.i (suc (suc n)))
(I.Ker-i⊂Im-d (suc n))
(I.Ker-Δ⊂Im-i (suc (suc n))))
open import Cubical.Foundations.Isomorphism
wedgeConnected : ((x : typ A) → ∥ pt A ≡ x ∥) → ((x : typ B) → ∥ pt B ≡ x ∥) → (x : A ⋁ B) → ∥ (inl (pt A)) ≡ x ∥
wedgeConnected conA conB =
PushoutToProp (λ _ → propTruncIsProp)
(λ a → pRec propTruncIsProp (λ p → ∣ cong inl p ∣₁) (conA a))
λ b → pRec propTruncIsProp (λ p → ∣ push tt ∙ cong inr p ∣₁) (conB b)
|
test/asset/agda-stdlib-1.0/Codata/Cofin/Literals.agda | omega12345/agda-mode | 0 | 3792 | ------------------------------------------------------------------------
-- The Agda standard library
--
-- Conat Literals
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe --sized-types #-}
module Codata.Cofin.Literals where
open import Data.Nat
open import Agda.Builtin.FromNat
open import Codata.Conat
open import Codata.Conat.Properties
open import Codata.Cofin
open import Relation.Nullary.Decidable
number : ∀ n → Number (Cofin n)
number n = record
{ Constraint = λ k → True (suc k ℕ≤? n)
; fromNat = λ n {{p}} → fromℕ< (toWitness p)
}
|
oeis/337/A337168.asm | neoneye/loda-programs | 11 | 86469 | ; A337168: a(n) = (-1)^n + 2 * Sum_{k=0..n-1} a(k) * a(n-k-1).
; Submitted by <NAME>
; 1,1,5,21,105,553,3053,17405,101713,606033,3667797,22485477,139340985,871429497,5492959293,34862161869,222592918689,1428814897825,9215016141989,59684122637237,388045493943049,2531696701375689,16569559364596365,108758426952823709
mov $1,1
mov $2,1
mov $3,$0
mov $4,2
lpb $3
mul $1,$3
mul $1,-2
mul $2,3
sub $3,1
cmp $4,2
add $5,$4
div $1,$5
add $2,$1
add $4,2
lpe
mov $0,$2
|
src/skill-synchronization.adb | skill-lang/adaCommon | 0 | 20335 | -- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ synchronization in skill --
-- |___/_|\_\_|_|____| by: <NAME>, <NAME> --
-- --
pragma Ada_2012;
package body Skill.Synchronization is
protected body Mutex is
entry Lock when not Locked is
begin
Locked := True;
end Lock;
procedure Unlock is
begin
Locked := False;
end Unlock;
end Mutex;
protected body Barrier is
entry Await when 0 = Counter is
begin
null;
end Await;
procedure Start is
begin
Counter := Counter + 1;
end Start;
procedure Complete is
begin
Counter := Counter - 1;
end Complete;
end Barrier;
end Skill.Synchronization;
|
first.asm | FolkertVanVerseveld/c64 | 1 | 103285 | <reponame>FolkertVanVerseveld/c64
.var brkFile = createFile("breakpoints.txt")
.macro break() {
.eval brkFile.writeln("break " + toHexString(*))
}
.pc = $0801 "Basic Upstart Program"
:BasicUpstart($0810)
.pc = $0810 "Main Program"
.const screen = $0400
.const colram = $d800
.const vicbase = $d000
.const sidbase = $d400
.const fillrow = screen + 40
.const dot_array_count = 6
.const crack_count = 12
// breakout effect
/*******************************************/
/********* INITIALIZATION ROUTINE *********/
/*******************************************/
// make sure we enter known processor state
cld // disable decimal mode
lda #%00110110 // setup processor port and
sta $1 // enable read access from ram
// at $A000-$BFFF and $E000-$FFFF
// TODO ensure correct case
lda #%11001000 // disable multicolor
sta $d016 //
jsr clear_sid
// check if row contains non-space characters
// excluding first and last column
ldx #37
ldy #38
!loop:
lda fillrow + 1, x
cmp #' '
bne !next+
dey
!next:
dex
bpl !loop-
tya
bne !ignore+
// place * in center
lda #'*'
sta fillrow + 19
sta fillrow + 20
!ignore:
jsr fill
// fall through into kernel
/*******************************************/
/********* KERNEL DRAWING ROUTINES *********/
/*******************************************/
kernel:
lda #0
sta dot_index
!loop:
ldx dot_index
// load dot
lda dot_array_posl, x
sta dot_pos
lda dot_array_posh, x
sta dot_pos + 1
lda dot_array_dir, x
sta dot_dir
lda dot_array_oldch, x
sta dot_oldch
lda dot_array_ch, x
sta dot_ch
// update dot
jsr dot_logic
// store dot
ldx dot_index
lda dot_pos
sta dot_array_posl, x
lda dot_pos + 1
sta dot_array_posh, x
lda dot_dir
sta dot_array_dir, x
lda dot_oldch
sta dot_array_oldch, x
lda dot_ch
sta dot_array_ch, x
// goto next dot
inx
stx dot_index
cpx #dot_array_count
bne !loop-
// wait 1 frame
ldx #$01
jsr idle
// increment timer
inc kernel_timer
beq nuke_dots
jmp kernel
nuke_dots:
// assume dot_index == dot_array_count
dec dot_index
!loop:
ldy dot_index
ldx dot_array_oldch, y
jsr dot_draw
dec dot_index
bpl !loop-
// create crack
crack_loop:
ldy crack_index
// compute pointer to character
lda crack_tbl_low, y
sta !ldptr+ + 1
lda crack_tbl_high, y
sta !ldptr+ + 2
////////////////////////////////////////////
// Add delta from crack_delta_tbl to stptr
ldx #$00
lda crack_delta_tbl, y
bpl !plus+
dex
!plus:
clc
adc crack_tbl_low, y
sta crack_tbl_low, y
txa
adc crack_tbl_high, y
sta crack_tbl_high, y
////////////////////////////////////////////
// compute pointer to destination
lda crack_tbl_low, y
sta !stptr+ + 1
lda crack_tbl_high, y
sta !stptr+ + 2
!ldptr:
lda screen
!stptr:
sta screen
ldx #$08
jsr idle
inc crack_index
lda crack_index
cmp #12
bne crack_loop
hang:
jmp hang
crack_index:
.byte 0
crack_tbl_low:
.byte $12, $8b, $04, $7d, $7d, $7d, $6b, $e2, $e2, $5b, $ac, $ac
crack_tbl_high:
.byte 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7
crack_delta_tbl:
.byte 41, -40, 41, -40, 40, 80, 40, -40, 40, -40, -40, 40
dot_index:
.byte 0
kernel_timer:
.byte $40
dot_logic:
// restore dot
// Does not work if multiple dots are overlapping.
// I tried to fix it at first, but then I had changed my mind
// and thought that I could use it for a simple crack effect
ldx dot_oldch
jsr dot_draw
// ^^^ see comment above ^^^
jsr dot_move
jsr dot_save
ldx dot_ch
jsr dot_draw
rts
fill:
// search for first non-space character excluding first column
ldx #1
!loop:
lda fillrow, x
cmp #' '
bne !store+
inx
cpx #40
bne !loop-
!store:
stx fill_start
sta fill_start_ch
// search for last non-space character excluding last column
ldx #39
!loop:
lda fillrow, x
cmp #' '
bne !store+
dex
bne !loop-
!store:
stx fill_end
sta fill_end_ch
fill_kernel:
// Y keeps track if left and right are filled
ldy #0
// fill left
ldx fill_start
beq !ignore+
lda fill_start_ch
sta fillrow, x
dec fill_start
dey
!ignore:
iny
// fill right
ldx fill_end
cpx #38
beq !ignore+
lda fill_end_ch
sta fillrow, x
inc fill_end
dey
!ignore:
iny
// wait 8 frames
ldx #$08
jsr idle
cpy #2 // if left and right are not filled yet
bne fill_kernel // continue fill_kernel
// setup dot_array
ldx #dot_array_count / 2
!loop:
lda fillrow + 1, x
sta dot_array_ch, x
dex
bpl !loop-
ldx #dot_array_count / 2
!loop:
lda fillrow + 38 - dot_array_count / 2 - 1, x
sta dot_array_ch + dot_array_count / 2, x
dex
bpl !loop-
rts
fill_start:
.byte 0
fill_start_ch:
.byte '*'
fill_end:
.byte 0
fill_end_ch:
.byte '*'
// wait the specified number of frames
// input : X: number of frames to wait
// destroys: NZV, X
idle:
!wait:
bit $d011
bmi !wait-
!wait:
bit $d011
bpl !wait-
dex
bpl idle
rts
/*******************************************/
/******** MOVING CHARACTER ROUTINES ********/
/*******************************************/
// save character under the moving dot
dot_save:
// compute pointer to dot
lda dot_pos
sta !scrptr+ + 1
lda dot_pos + 1
sta !scrptr+ + 2
!scrptr:
lda screen
sta dot_oldch
rts
// draw a character at the position of the moving dot
// input: X: the character to draw
dot_draw:
// compute pointer to dot
lda dot_pos
sta !scrptr+ + 1
lda dot_pos + 1
sta !scrptr+ + 2
txa
!scrptr:
sta screen
rts
dot_move:
// TODO check formulas
// determine if bottom is hit
// compare dot_pos with $07c0
lda dot_pos + 1
cmp #(screen + 25 * 40) >> 8
bcc !ignore+
lda dot_pos
cmp #$c0
bcc !ignore+
jsr flip_y
!ignore:
// TODO check formulas
// determine if top is hit
// compare dot_pos with $0428
lda dot_pos + 1
cmp #(screen >> 8) + 1
bcs !ignore+
lda dot_pos
cmp #40
bcs !ignore+
jsr flip_y
!ignore:
// now comes the tricky part, check if a horizontal collision has occurred
// if the dot is on the left side the least significant nibble of the lower byte is 0 or 8
lda dot_pos
// get lower nibble
and #$f
cmp #$0
beq dot_chk_left
cmp #$8
beq dot_chk_left
// if the dot is on the right side the least significant nibble of the lower byte is 7 or f
cmp #$7
beq dot_chk_right
cmp #$f
beq dot_chk_right
!update:
// load move vector
ldy dot_dir
// Add delta from dot_dtbl to dot_pos. See also:
// http://www.codebase64.org/doku.php?id=base:signed_8bit_16bit_addition
ldx #$00
// load delta
lda dot_dtbl, y
bpl !plus+
dex
!plus:
clc
adc dot_pos
sta dot_pos
txa
adc dot_pos + 1
sta dot_pos + 1
rts
// dot may or may not be at the left border
// this routine checks if it does and calls flip_x to flip the horizontal direction
dot_chk_left:
lda dot_pos + 1
sec
sbc #3
clc
rol
rol
rol
tay
ldx #7
!loop:
dey
lda border_left_tbl, y
cmp dot_pos
bne !next+
jsr flip_x
jmp !update-
!next:
dex
bpl !loop-
jmp !update-
// dot may or may not be at the right border
// this routine checks if it does and calls flip_x to flip the horizontal direction
// NOTE it is the same as dot_chk_left except for the line marked with `<-'
dot_chk_right:
lda dot_pos + 1
sec
sbc #3
clc
rol
rol
rol
tay
ldx #7
!loop:
dey
lda border_right_tbl, y // <-
cmp dot_pos
bne !next+
jsr flip_x
jmp !update-
!next:
dex
bpl !loop-
jmp !update-
flip_y:
ldx dot_dir
lda flip_y_tbl, x
sta dot_dir
rts
flip_x:
ldx dot_dir
lda flip_x_tbl, x
sta dot_dir
rts
// dot data
// NOTE dot cannot start next to a border because it may change the
// direction in such a way that it will move out of the screen!
dot_pos:
.word fillrow + 1
dot_dir:
.byte random() * 4
dot_oldch:
.byte ' '
dot_ch:
.byte '@'
// read-only data
// dot delta table
// a dot can only move diagonally
// a screen row is 40 characters, so 40 + 1 results in (x + 1, y + 1)
// all directions:
// 0 1 2 3
// \ / +- -+
// \| |/ |\ /|
// -+ +- \ /
//
dot_dtbl:
.byte 41, 39, -41, -39
flip_y_tbl:
.byte 3, 2, 1, 0
flip_x_tbl:
.byte 1, 0, 3, 2
// make sure each row is exactly 8 bytes, this makes it
// easier to lookup. some rows have bytes that are repeated
// at the end to compensate this.
border_left_tbl:
.byte $00, $28, $50, $78, $A0, $C8, $F0, $F0
.byte $18, $40, $68, $90, $B8, $E0, $E0, $E0
.byte $08, $30, $58, $80, $A8, $D0, $F8, $F8
.byte $20, $48, $70, $98, $C0, $C0, $C0, $C0
border_right_tbl:
.byte $27, $4F, $77, $9F, $C7, $EF, $EF, $EF
.byte $17, $3F, $67, $8F, $B7, $DF, $DF, $DF
.byte $07, $2F, $57, $7F, $A7, $CF, $F7, $F7
.byte $1F, $47, $6F, $97, $BF, $E7, $E7, $E7
dot_array_posl:
.for (var i = 0; i < dot_array_count / 2; i++) {
.byte (fillrow + i + 1) & $ff
}
.for (var i = 0; i < dot_array_count / 2; i++) {
.byte (fillrow + 38 - i - 1) & $ff
}
dot_array_posh:
.for (var i = 0; i < dot_array_count; i++) {
.byte (fillrow + i + 1) >> 8
}
dot_array_dir:
.for (var i = 0; i < dot_array_count; i++) {
.byte mod(i, 4)
}
dot_array_oldch:
.for (var i = 0; i < dot_array_count; i++) {
.byte ' '
}
dot_array_ch:
.for (var i = 0; i < dot_array_count; i++) {
.byte '@'
}
// zero sid registers
clear_sid:
lda #0
ldx #$1c
!loop:
sta sidbase, x
dex
bpl !loop-
rts
|
gcc-gcc-7_3_0-release/gcc/ada/gnatkr.ads | best08618/asylo | 7 | 9452 | <filename>gcc-gcc-7_3_0-release/gcc/ada/gnatkr.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- G N A T K R --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2007, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This is a small utility program that incorporates the file krunching
-- algorithm used by the GNAT compiler (when the -gnatk switch is used)
-- gnatkr filename length
-- where length is a decimal value, outputs to standard output the krunched
-- name, followed by the original input file name. The file name has an
-- optional extension, which, if present, is copied unchanged to the output.
-- The length argument is optional and defaults to the system default if
-- there is one, otherwise to 8.
procedure Gnatkr;
-- Execute above described command. This is an Ada main program which
-- sets an exit status (set to Success or Failure as appropriate)
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1949.asm | ljhsiun2/medusa | 9 | 85577 | .global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r15
push %r8
push %r9
push %rax
push %rdx
// Load
lea addresses_US+0x29b1, %rax
nop
nop
nop
nop
sub $63761, %rdx
movups (%rax), %xmm4
vpextrq $1, %xmm4, %r13
sub %r15, %r15
// Load
lea addresses_normal+0x9cd1, %r9
nop
cmp $38530, %rdx
movups (%r9), %xmm3
vpextrq $0, %xmm3, %r15
dec %rax
// Faulty Load
lea addresses_PSE+0x1ae51, %r9
nop
nop
nop
dec %r14
mov (%r9), %dx
lea oracles, %r15
and $0xff, %rdx
shlq $12, %rdx
mov (%r15,%rdx,1), %rdx
pop %rdx
pop %rax
pop %r9
pop %r8
pop %r15
pop %r14
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 4}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
<gen_prepare_buffer>
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
|
src/Calf/Step.agda | jonsterling/agda-calf | 29 | 71 | {-# OPTIONS --prop --without-K --rewriting #-}
-- Step effect.
open import Calf.CostMonoid
module Calf.Step (costMonoid : CostMonoid) where
open CostMonoid costMonoid
open import Calf.Prelude
open import Calf.Metalanguage
open import Calf.PhaseDistinction
open import Relation.Binary.PropositionalEquality
cost : tp neg
cost = meta ℂ
postulate
step : ∀ (B : tp neg) → cmp cost → cmp B → cmp B
step/id : ∀ {B : tp neg} {e : cmp B} →
step B zero e ≡ e
{-# REWRITE step/id #-}
step/concat : ∀ {B e p q} →
step B p (step B q e) ≡ step B (p + q) e
{-# REWRITE step/concat #-}
U_step : ∀ {A} {X : val A → tp neg} {e n} → U (tbind {A} (step (F A) n e) X) ≡ U (tbind {A} e X)
{-# REWRITE U_step #-}
Π/step : ∀ {A} {X : val A → tp neg} {f : cmp (Π A X)} {n} → step (Π A X) n f ≡ λ x → step (X x) n (f x)
{-# REWRITE Π/step #-}
bind/step : ∀ {A} {X} {e f n} → bind {A} X (step (F A) n e) f ≡ step X n (bind {A} X e f)
dbind/step : ∀ {A} {X : val A → tp neg} {e f n} → dbind {A} X (step (F A) n e) f ≡ step (tbind {A} e X) n (dbind {A} X e f)
{-# REWRITE bind/step dbind/step #-}
step/ext : ∀ X → (e : cmp X) → (c : ℂ) → ◯ (step X c e ≡ e)
-- sadly the above cannot be made an Agda rewrite rule
|
Transynther/x86/_processed/US/_ht_zr_un_/i9-9900K_12_0xa0.log_21829_1583.asm | ljhsiun2/medusa | 9 | 25172 | <filename>Transynther/x86/_processed/US/_ht_zr_un_/i9-9900K_12_0xa0.log_21829_1583.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x18e8e, %rsi
lea addresses_WC_ht+0x17ee, %rdi
nop
nop
nop
inc %rdx
mov $55, %rcx
rep movsb
nop
nop
nop
add $49487, %r11
lea addresses_UC_ht+0x788e, %rax
nop
nop
cmp $7941, %rdi
movw $0x6162, (%rax)
nop
nop
nop
inc %rsi
lea addresses_UC_ht+0xc4aa, %rdi
and %rsi, %rsi
and $0xffffffffffffffc0, %rdi
vmovntdqa (%rdi), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %rax
nop
nop
nop
inc %rdx
lea addresses_WT_ht+0x15a8e, %rcx
sub $45989, %r9
mov $0x6162636465666768, %rdx
movq %rdx, %xmm7
vmovups %ymm7, (%rcx)
dec %rax
lea addresses_WC_ht+0x686f, %rsi
clflush (%rsi)
nop
nop
sub $24579, %rcx
mov $0x6162636465666768, %rdx
movq %rdx, %xmm7
vmovups %ymm7, (%rsi)
sub %rax, %rax
lea addresses_WT_ht+0x101ce, %r11
nop
nop
and %rcx, %rcx
mov $0x6162636465666768, %rax
movq %rax, (%r11)
nop
nop
add %rcx, %rcx
lea addresses_UC_ht+0x1e8e7, %r9
nop
nop
nop
nop
nop
add %rcx, %rcx
movl $0x61626364, (%r9)
xor $9928, %r9
lea addresses_normal_ht+0x1040e, %rsi
nop
nop
nop
sub %rdx, %rdx
mov $0x6162636465666768, %rcx
movq %rcx, %xmm1
movups %xmm1, (%rsi)
nop
nop
and %rax, %rax
lea addresses_WT_ht+0xc4a6, %r11
and %rdi, %rdi
mov $0x6162636465666768, %rcx
movq %rcx, %xmm6
vmovups %ymm6, (%r11)
nop
nop
nop
nop
nop
and $1985, %rsi
lea addresses_WT_ht+0xcfe2, %rsi
lea addresses_D_ht+0x1d6c0, %rdi
nop
nop
nop
nop
and %r15, %r15
mov $93, %rcx
rep movsw
nop
nop
nop
nop
add %rcx, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r15
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %rax
push %rbp
push %rbx
push %rcx
push %rdx
// Store
lea addresses_WT+0x3271, %rax
nop
nop
sub %rbx, %rbx
mov $0x5152535455565758, %r14
movq %r14, %xmm3
vmovups %ymm3, (%rax)
nop
nop
and %rbp, %rbp
// Load
lea addresses_normal+0x14d8e, %rbx
nop
nop
nop
and %r12, %r12
movups (%rbx), %xmm7
vpextrq $1, %xmm7, %r14
nop
nop
nop
nop
and %r12, %r12
// Faulty Load
lea addresses_US+0xda8e, %r14
nop
nop
nop
nop
nop
inc %r12
vmovups (%r14), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $0, %xmm5, %rcx
lea oracles, %r12
and $0xff, %rcx
shlq $12, %rcx
mov (%r12,%rcx,1), %rcx
pop %rdx
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 32}}
{'src': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_normal', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 9, 'type': 'addresses_UC_ht', 'AVXalign': True, 'size': 2}}
{'src': {'NT': True, 'same': False, 'congruent': 1, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32}}
{'OP': 'STOR', 'dst': {'NT': True, 'same': True, 'congruent': 6, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32}}
{'src': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_D_ht'}}
{'47': 31, '49': 21443, '71': 2, '00': 353}
49 49 00 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 47 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 00 00 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 47 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49
*/
|
Assembly/FASMHellox64.asm | qianniancc/Study2018 | 0 | 176712 | <filename>Assembly/FASMHellox64.asm<gh_stars>0
format ELF64
section '.data' writeable
msg db 'Hello, world!', 0
formatStr db "%s", 0
section '.text' executable
public main
extrn printf
main:
mov rbp, rsp; for correct debugging
sub rsp, 32
and rsp, -16
mov rcx, formatStr
mov rdx, msg
call printf
mov rsp, rbp
xor eax, eax
ret
|
Data/Binary/Proofs/Multiplication.agda | oisdk/agda-binary | 1 | 15811 | <filename>Data/Binary/Proofs/Multiplication.agda
{-# OPTIONS --without-K --safe #-}
module Data.Binary.Proofs.Multiplication where
open import Relation.Binary.PropositionalEquality
open import Data.Binary.Operations.Unary
open import Data.Binary.Operations.Addition
open import Data.Binary.Operations.Multiplication
open import Data.Binary.Proofs.Unary
open import Data.Binary.Proofs.Addition
open import Data.Binary.Definitions
open import Data.Binary.Operations.Semantics
open import Data.Nat as ℕ using (ℕ; suc; zero)
open import Relation.Binary.PropositionalEquality.FasterReasoning
import Data.Nat.Properties as ℕ
open import Function
open import Data.Nat.Reasoning
mul-homo : ∀ xs ys → ⟦ mul xs ys ⇓⟧⁺ ≡ ⟦ xs ⇓⟧⁺ ℕ.* ⟦ ys ⇓⟧⁺
mul-homo 1ᵇ ys = sym (ℕ.+-identityʳ _)
mul-homo (O ∷ xs) ys = cong 2* (mul-homo xs ys) ⟨ trans ⟩ sym (ℕ.*-distribʳ-+ ⟦ ys ⇓⟧⁺ ⟦ xs ⇓⟧⁺ _)
mul-homo (I ∷ xs) ys =
begin
⟦ add O (O ∷ mul ys xs) ys ⇓⟧⁺
≡⟨ add₀-homo (O ∷ mul ys xs) ys ⟩
2* ⟦ mul ys xs ⇓⟧⁺ ℕ.+ ⟦ ys ⇓⟧⁺
≡⟨ ⟦ ys ⇓⟧⁺ ≪+ cong 2* (mul-homo ys xs) ⟩
2* (⟦ ys ⇓⟧⁺ ℕ.* ⟦ xs ⇓⟧⁺) ℕ.+ ⟦ ys ⇓⟧⁺
≡⟨ ℕ.+-comm _ ⟦ ys ⇓⟧⁺ ⟩
⟦ ys ⇓⟧⁺ ℕ.+ 2* (⟦ ys ⇓⟧⁺ ℕ.* ⟦ xs ⇓⟧⁺)
≡˘⟨ ⟦ ys ⇓⟧⁺ +≫ ℕ.*-distribˡ-+ ⟦ ys ⇓⟧⁺ _ _ ⟩
⟦ ys ⇓⟧⁺ ℕ.+ ⟦ ys ⇓⟧⁺ ℕ.* (2* ⟦ xs ⇓⟧⁺)
≡⟨ ⟦ ys ⇓⟧⁺ +≫ ℕ.*-comm ⟦ ys ⇓⟧⁺ _ ⟩
⟦ ys ⇓⟧⁺ ℕ.+ (2* ⟦ xs ⇓⟧⁺) ℕ.* ⟦ ys ⇓⟧⁺
∎
*-homo : ∀ xs ys → ⟦ xs * ys ⇓⟧ ≡ ⟦ xs ⇓⟧ ℕ.* ⟦ ys ⇓⟧
*-homo 0ᵇ ys = refl
*-homo (0< x) 0ᵇ = sym (ℕ.*-zeroʳ ⟦ x ⇓⟧⁺)
*-homo (0< xs) (0< ys) = mul-homo xs ys
|
projects/batfish/src/main/antlr4/org/batfish/grammar/frr/Frr_bgp_community_list.g4 | tushargargght/batfish | 0 | 196 | parser grammar Frr_bgp_community_list;
import Frr_common;
options {
tokenVocab = FrrLexer;
}
b_community_list
:
COMMUNITY_LIST
(
bcl_expanded
| bcl_standard
)
;
bcl_expanded
:
EXPANDED name = ip_community_list_name
action = line_action
(
quoted = double_quoted_string
| regex = REMARK_TEXT
) NEWLINE
;
bcl_standard
:
STANDARD name = ip_community_list_name
action = line_action communities += standard_community+ NEWLINE
;
|
notes/thesis/report/FOTC/EquivalenceInductivePredicateN.agda | asr/fotc | 11 | 6078 | ------------------------------------------------------------------------------
-- Equivalent approaches for implement the inductive predicate N
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymorphism #-}
{-# OPTIONS --without-K #-}
module FOTC.EquivalenceInductivePredicateN where
open import FOTC.Base
------------------------------------------------------------------------------
-- Using succ : D instead of succ₁ : D → D.
module Constant where
module LFP where
NatF : (D → Set) → D → Set
NatF A n = n ≡ zero ∨ (∃[ n' ] n ≡ succ · n' ∧ A n')
postulate
N : D → Set
N-in-ho : ∀ {n} → NatF N n → N n
N-ind'-ho : (A : D → Set) → (∀ {n} → NatF A n → A n) → ∀ {n} → N n → A n
N-in : ∀ {n} → n ≡ zero ∨ (∃[ n' ] n ≡ succ · n' ∧ N n') → N n
N-in = N-in-ho
N-ind' : (A : D → Set) →
(∀ {n} → n ≡ zero ∨ (∃[ n' ] n ≡ succ · n' ∧ A n') → A n) →
∀ {n} → N n → A n
N-ind' = N-ind'-ho
--------------------------------------------------------------------------
-- The data constructors of N using LFP.
nzero : N zero
nzero = N-in (inj₁ refl)
nsucc : ∀ {n} → N n → N (succ · n)
nsucc Nn = N-in (inj₂ (_ , refl , Nn))
--------------------------------------------------------------------------
-- The induction principle of N using LFP.
N-ind : (A : D → Set) →
A zero →
(∀ {n} → A n → A (succ · n)) →
∀ {n} → N n → A n
N-ind A A0 h = N-ind' A h'
where
h' : ∀ {m} → m ≡ zero ∨ (∃[ m' ] m ≡ succ · m' ∧ A m') → A m
h' (inj₁ m≡0) = subst A (sym m≡0) A0
h' (inj₂ (m' , prf , Am')) = subst A (sym prf) (h Am')
----------------------------------------------------------------------------
module Data where
data N : D → Set where
nzero : N zero
nsucc : ∀ {n} → N n → N (succ · n)
N-ind : (A : D → Set) →
A zero →
(∀ {n} → A n → A (succ · n)) →
∀ {n} → N n → A n
N-ind A A0 h nzero = A0
N-ind A A0 h (nsucc Nn) = h (N-ind A A0 h Nn)
--------------------------------------------------------------------------
-- The introduction rule of N using data.
N-in : ∀ {n} → n ≡ zero ∨ (∃[ n' ] n ≡ succ · n' ∧ N n') → N n
N-in {n} h = case prf₁ prf₂ h
where
prf₁ : n ≡ zero → N n
prf₁ n≡0 = subst N (sym n≡0) nzero
prf₂ : ∃[ n' ] n ≡ succ · n' ∧ N n' → N n
prf₂ (n' , prf , Nn') = subst N (sym prf) (nsucc Nn')
--------------------------------------------------------------------------
-- The induction principle for N using data.
N-ind' :
(A : D → Set) →
(∀ {n} → n ≡ zero ∨ (∃[ n' ] n ≡ succ · n' ∧ A n') → A n) →
∀ {n} → N n → A n
N-ind' A h = N-ind A h₁ h₂
where
h₁ : A zero
h₁ = h (inj₁ refl)
h₂ : ∀ {m} → A m → A (succ · m)
h₂ {m} Am = h (inj₂ (m , refl , Am))
------------------------------------------------------------------------------
-- Using succ₁ : D → D instead of succ : D.
module UnaryFunction where
module LFP where
NatF : (D → Set) → D → Set
NatF A n = n ≡ zero ∨ (∃[ n' ] n ≡ succ₁ n' ∧ A n')
postulate
N : D → Set
N-in-ho : ∀ {n} → NatF N n → N n
N-ind'-ho : (A : D → Set) → (∀ {n} → NatF A n → A n) → ∀ {n} → N n → A n
N-in : ∀ {n} → n ≡ zero ∨ (∃[ n' ] n ≡ succ₁ n' ∧ N n') → N n
N-in = N-in-ho
N-ind' : (A : D → Set) →
(∀ {n} → n ≡ zero ∨ (∃[ n' ] n ≡ succ₁ n' ∧ A n') → A n) →
∀ {n} → N n → A n
N-ind' = N-ind'-ho
--------------------------------------------------------------------------
-- The data constructors of N using LFP.
nzero : N zero
nzero = N-in (inj₁ refl)
nsucc : ∀ {n} → N n → N (succ₁ n)
nsucc Nn = N-in (inj₂ (_ , refl , Nn))
--------------------------------------------------------------------------
-- The induction principle of N using LFP.
N-ind : (A : D → Set) →
A zero →
(∀ {n} → A n → A (succ₁ n)) →
∀ {n} → N n → A n
N-ind A A0 h = N-ind' A h'
where
h' : ∀ {m} → m ≡ zero ∨ (∃[ m' ] m ≡ succ₁ m' ∧ A m') → A m
h' (inj₁ m≡0) = subst A (sym m≡0) A0
h' (inj₂ (m' , prf , Am')) = subst A (sym prf) (h Am')
----------------------------------------------------------------------------
module Data where
data N : D → Set where
nzero : N zero
nsucc : ∀ {n} → N n → N (succ₁ n)
N-ind : (A : D → Set) →
A zero →
(∀ {n} → A n → A (succ₁ n)) →
∀ {n} → N n → A n
N-ind A A0 h nzero = A0
N-ind A A0 h (nsucc Nn) = h (N-ind A A0 h Nn)
--------------------------------------------------------------------------
-- The introduction rule of N using data.
N-in : ∀ {n} → n ≡ zero ∨ (∃[ n' ] n ≡ succ₁ n' ∧ N n') → N n
N-in {n} h = case prf₁ prf₂ h
where
prf₁ : n ≡ zero → N n
prf₁ n≡0 = subst N (sym n≡0) nzero
prf₂ : ∃[ n' ] n ≡ succ₁ n' ∧ N n' → N n
prf₂ (n' , prf , Nn') = subst N (sym prf) (nsucc Nn')
--------------------------------------------------------------------------
-- The induction principle for N using data.
N-ind' :
(A : D → Set) →
(∀ {n} → n ≡ zero ∨ (∃[ n' ] n ≡ succ₁ n' ∧ A n') → A n) →
∀ {n} → N n → A n
N-ind' A h = N-ind A h₁ h₂
where
h₁ : A zero
h₁ = h (inj₁ refl)
h₂ : ∀ {m} → A m → A (succ₁ m)
h₂ {m} Am = h (inj₂ (m , refl , Am))
module EsikProposition2Dot1 where
postulate
N : D → Set
N-ind' : (A : D → Set) →
(∀ {n} → n ≡ zero ∨ (∃[ n' ] n ≡ succ₁ n' ∧ A n') → A n) →
∀ {n} → N n → A n
|
color/init.asm | etdv-thevoid/pokemon-rgb-enhanced | 1 | 173466 | InitGbcMode: ; Sets double speed & clears extra memory
ld a,$01
; Set double speed mode
ld [$ff4d],a
stop
; Clear memory (banks 2-7)
ClearGbcMemory:
ld d,7
.clearBank
ld a,d
ld [rSVBK],a
xor a
ld hl, W2_BgPaletteData
ld bc, $0f00 ; Leave a bit of space for the stack
call FillMemory
dec d
ld a,d
dec a
jr nz,.clearBank
xor a
ld [rSVBK],a
ret
|
oeis/254/A254657.asm | neoneye/loda-programs | 11 | 100082 | ; A254657: Numbers of words on alphabet {0,1,...,8} with no subwords ii, where i is from {0,1,2}.
; Submitted by <NAME>(s4)
; 1,9,78,678,5892,51204,444984,3867096,33606672,292055952,2538087648,22057036896,191684821056,1665820789824,14476675244928,125808326698368,1093326665056512,9501463280642304,82571666235477504,717582109567673856,6236086873954255872,54194187649040090112,470970022436046256128,4092925305382610589696,35569222577677162254336,309111332453712961572864,2686305995095766666108928,23345115955488411098308608,202878763614481888783122432,1763100804648785576854831104,15322079018877175947537383424
mov $1,1
mov $3,1
lpb $0
sub $0,1
mov $2,$3
mul $2,6
mul $3,8
add $3,$1
mov $1,$2
lpe
mov $0,$3
|
out/Group/Signature.agda | JoeyEremondi/agda-soas | 39 | 7785 | {-
This second-order signature was created from the following second-order syntax description:
syntax Group | G
type
* : 0-ary
term
unit : * | ε
add : * * -> * | _⊕_ l20
neg : * -> * | ⊖_ r40
theory
(εU⊕ᴸ) a |> add (unit, a) = a
(εU⊕ᴿ) a |> add (a, unit) = a
(⊕A) a b c |> add (add(a, b), c) = add (a, add(b, c))
(⊖N⊕ᴸ) a |> add (neg (a), a) = unit
(⊖N⊕ᴿ) a |> add (a, neg (a)) = unit
-}
module Group.Signature where
open import SOAS.Context
open import SOAS.Common
open import SOAS.Syntax.Signature *T public
open import SOAS.Syntax.Build *T public
-- Operator symbols
data Gₒ : Set where
unitₒ addₒ negₒ : Gₒ
-- Term signature
G:Sig : Signature Gₒ
G:Sig = sig λ
{ unitₒ → ⟼₀ *
; addₒ → (⊢₀ *) , (⊢₀ *) ⟼₂ *
; negₒ → (⊢₀ *) ⟼₁ *
}
open Signature G:Sig public
|
src/io/io.asm | yotam5/SmollOs | 0 | 25274 | section .asm
global insb
global insw
global outb
global outw
insb:
push ebp
mov ebp, esp
xor eax, eax
mov edx, [ebp+8]
in al, dx
pop ebp
ret
insw:
push ebp
mov ebp, esp
xor eax, eax
mov edx, [ebp+8]
in ax, dx
pop ebp
ret
outb:
push ebp
mov ebp, esp
mov eax, [ebp+12]
mov edx, [ebp+8]
out dx, al
pop ebp
ret
outw:
push ebp
mov ebp, esp
mov eax, [ebp+12]
mov edx, [ebp+8]
out dx, ax
pop ebp
ret |
scripts/tradecenter.asm | adhi-thirumala/EvoYellow | 16 | 165040 | TradeCenterScript:
call EnableAutoTextBoxDrawing
ld a, [$ffaa]
cp $2
ld a, SPRITE_FACING_LEFT
jr z, .next
ld a, SPRITE_FACING_RIGHT
.next
ld [hSpriteFacingDirection], a
ld a, $1
ld [H_SPRITEINDEX], a
call SetSpriteFacingDirection
ld hl, wd72d
bit 0, [hl]
set 0, [hl]
ret nz
ld hl, wSpriteStateData2 + $14
ld a, $8
ld [hli], a
ld a, $a
ld [hl], a
ld a, SPRITE_FACING_LEFT
ld [wSpriteStateData1 + $19], a
ld a, [$ffaa]
cp $2
ret z
ld a, $7
ld [wSpriteStateData2 + $15], a
ld a, SPRITE_FACING_RIGHT
ld [wSpriteStateData1 + $19], a
ret
TradeCenterTextPointers:
dw TradeCenterText1
TradeCenterText1:
TX_FAR _TradeCenterText1
db "@"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.