text stringlengths 1 1.05M |
|---|
#include <libsystem/BuildInfo.h>
#include <libsystem/Logger.h>
#include "archs/Architectures.h"
#include "kernel/scheduling/Scheduler.h"
#include "kernel/system/System.h"
void system_hang()
{
while (true)
{
arch_halt();
}
}
void system_stop()
{
arch_disable_interrupts();
logger_info("Syst... |
!to "out/xfer.bin", plain
READST = $FFB7
CHKOUT = $FFC9
CHROUT = $FFD2
CLRCHN = $FFCC
USB_STATUS = $de09
USB_DATA = $de0a
cmd_buffer = $c400 ; 12 bytes
* = $c000
jmp ef3usb_check_cmd
!zone {
; write to file 1
ldx #1
jsr CHKOUT
; loader code
; send "l... |
; Copyright (C) 2018 Matt Currie <me@mattcurrie.com>
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy, modify, mer... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestTecPlotReader.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softwar... |
; A157093: Consider all Consecutive Integer Pythagorean 9-tuples (X,X+1,X+2,X+3,X+4,Z-3,Z-2,Z-1,Z) ordered by increasing Z; sequence gives Z values.
; Submitted by Christian Krause
; 4,44,764,13684,245524,4405724,79057484,1418628964,25456263844,456794120204,8196837899804,147086288076244,2639356347472564,473613279664298... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld b, 91
call lwaitly_b
ld a, b1
ldff(40), a
ld a, 10
ldff(4b), a
ld c, 41
ld b, 03
lbegin_waitm3:
ldff a, (c)
and a, b
cmp a, b
jrnz lbegin_waitm3
ld a, 20
ldff(c), a
xor a, a
ldff(0f), a
l... |
const_def 0
const PINK_PAGE ; 0
const GREEN_PAGE ; 1
const BLUE_PAGE ; 2
const ORANGE_PAGE ; 3
NUM_STAT_PAGES EQU const_value
BattleStatsScreenInit:
ld a, [wLinkMode]
cp LINK_MOBILE
jr nz, StatsScreenInit
ld a, [wBattleMode]
and a
jr z, StatsScreenInit
jr _MobileStatsScreenInit
StatsScreenInit:
ld ... |
/*
* Copyright (C) 2014 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condition... |
; To directly load 39H in B and 42H in C
; LXI B, 3942H
; load 9D to location 0000H
; LXI H, 0001H
; MVI M, 9DH
; LXI H, 0001H
; MVI A, 9DH
; MOV M, A
HLT |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1b9db, %r8
nop
nop
nop
add $12310, %r13
mov $0x6162636465666768, %r15
movq %r15, (%r8)
nop
nop
nop
add $39407, %rdi
lea addresses_WT_ht+0x34f3, %r13
nop
nop
nop
dec %rdx
mov ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: uiManager.asm
AUTHOR: Chris Boyke
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- ---... |
Name: ys_w62.asm
Type: file
Size: 14343
Last-Modified: '2016-05-13T04:51:43Z'
SHA-1: D2CF80AA4F0C13B0B64A78D6B47930644928576E
Description: null
|
; name: MOV to and from memory. 16bit (+32 bit extension)
; code: "8B088B098B0A8B0C8B0D8B0E88778B0F8B48778B49778B4A778B4C778B4D778B4E778B4F778B8888778B8988778B8A88778B8C88778B8D88778B8E88778B8F88778B1678888B50898B51898B52898B54898B55898B56898B57898B9078888B9178888B9278888B9478888B9578888B9678888B9778888B8778FF8B8088778... |
; *********************************************************************************
; *********************************************************************************
;
; File: debug.asm
; Purpose: Show stack on the screen.
; Date : 8th December 2018
; Author: paul@robsons.org.uk
;
; **************************... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
// 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.
/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... |
#include <iostream>
int main()
{
int a = 4, b = 3, c = 2, d = 1;
if (a > b && b > c && c > d) {}
return 0;
} |
#include <cmath>
#include <time.h>
#include <iostream>
#include "tframe_index.h"
// implementation for tframe.h
namespace WaveletTL
{
template <class IFRAME, unsigned int DIM>
TensorFrame<IFRAME,DIM>::TensorFrame(const FixedArray1D<IFRAME*,DIM> frames) {
for (unsigned int i = 0; i < DIM; i++) {
fr... |
; A047534: Numbers that are congruent to {0, 1, 2, 3, 7} mod 8.
; 0,1,2,3,7,8,9,10,11,15,16,17,18,19,23,24,25,26,27,31,32,33,34,35,39,40,41,42,43,47,48,49,50,51,55,56,57,58,59,63,64,65,66,67,71,72,73,74,75,79,80,81,82,83,87,88,89,90,91,95,96,97,98,99,103,104,105,106,107,111,112,113,114,115,119,120,121,122,123,127,128,1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1bbb3, %r10
nop
nop
nop
nop
inc %r8
movb (%r10), %cl
nop
nop
nop
nop
nop
add $54231, %rcx
lea addresses_A_ht+0x1b03, %r14
nop
add $26896, %rax
movl $0x61626364, (%r14)
sub %r... |
; A139176: a(n) = (n! - 6)/6.
; 0,3,19,119,839,6719,60479,604799,6652799,79833599,1037836799,14529715199,217945727999,3487131647999,59281238015999,1067062284287999,20274183401471999,405483668029439999,8515157028618239999,187333454629601279999,4308669456480829439999,103408066955539906559999,2585201673888497663999999,672... |
; A000051: a(n) = 2^n + 1.
; 2,3,5,9,17,33,65,129,257,513,1025,2049,4097,8193,16385,32769,65537,131073,262145,524289,1048577,2097153,4194305,8388609,16777217,33554433,67108865,134217729,268435457,536870913,1073741825,2147483649,4294967297,8589934593,17179869185,34359738369,68719476737,137438953473,274877906945,54975581... |
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
int main(){
int n;
cin>>n;
for(int i=0;i<n;i++){
cout<<i+1<<" Abracadabra"<<"\n";
}
return 0;
} |
/*
* Present - Date/Time Library
*
* Tests for the Timestamp C++ class and C-compatible methods
*
* Licensed under the MIT License.
* For details, see LICENSE.
*/
#include "catch.hpp"
#include "test-utils.hpp"
#include "present.h"
#include "utils/constants.h"
#include "utils/time-utils.h"
// If we're using G... |
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include "pr... |
; A105773: Numbers n such that 11*n + 97 is prime.
; 0,6,12,14,20,26,32,50,54,60,66,74,80,84,90,92,96,110,116,122,126,132,134,140,150,162,164,174,182,186,200,204,216,222,234,236,246,260,264,266,270,272,284,294,306,312,320,330,336,344,350,356,360,362,374,392,402,414,416,426,434,440,446,456,462,476,482,486,494,504,522,52... |
/*
* Copyright 2014 Fraunhofer FOKUS
*
* 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 agree... |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector <int> vi;
#define EPS 1e-15
#define PI acos(-1.0)
#define inf 1e50
double DEG_to_RAD(double d) { return d * PI / 180.0; }
double RAD_to_DEG(double r) { return r * 180.0 / PI; }
struct point_i { int x, y; // whenever possible, work ... |
; A024056: a(n) = 5^n - n^7.
; 1,4,-103,-2062,-15759,-75000,-264311,-745418,-1706527,-2829844,-234375,29340954,208308817,1157954608,5998102121,30346718750,152319455169,762529114452,3814085045593,19072592456386,95366151640625,476835357114584,2384183296657737,11920925550252678,59604640188919201,298023217773437500,1490116... |
// 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... |
###############################################################################
# Copyright 2019 Intel Corporation
# All Rights Reserved.
#
# If this software was obtained under the Intel Simplified Software License,
# the following terms apply:
#
# The source code, information and material ("Material") containe... |
; Startup fo SAM Coupe
;
; Stefano 26/3/2001
;
; If an error occurs eg break we just drop back to BASIC
;
; $Id: sam_crt0.asm,v 1.20 2016-06-21 20:49:06 dom Exp $
;
MODULE sam_crt0
;
; Initially include the zcc_opt.def file to find out lots of lovely
; information about what we shoul... |
; A102900: a(n) = 3*a(n-1) + 4*a(n-2), a(0)=a(1)=1.
; 1,1,7,25,103,409,1639,6553,26215,104857,419431,1677721,6710887,26843545,107374183,429496729,1717986919,6871947673,27487790695,109951162777,439804651111,1759218604441,7036874417767,28147497671065,112589990684263,450359962737049,1801439850948199,7205759403792793,28823... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
; -------------------------------------------
; Do not modify:
; There are some dependent offsets in CPL.asm
; -------------------------------------------
; #########################################################################
.486
.model flat, stdcall
option casemap :none ; cas... |
; A334341: a(n) = Sum_{p|n, p prime} (n - p).
; Submitted by Jon Maiga
; 0,0,0,2,0,7,0,6,6,13,0,19,0,19,22,14,0,31,0,33,32,31,0,43,20,37,24,47,0,80,0,30,52,49,58,67,0,55,62,73,0,114,0,75,82,67,0,91,42,93,82,89,0,103,94,103,92,85,0,170,0,91,116,62,112,182,0,117,112,196,0,139,0,109
add $0,1
mov $8,$0
lpb $0
mov $3,$0
... |
!ADD = "CLC : ADC"
!SUB = "SEC : SBC"
!BLT = "BCC"
!BGE = "BCS"
!INVENTORY_SWAP = "$7EF38C"
!INVENTORY_SWAP_2 = "$7EF38E"
!NPC_FLAGS = "$7EF410"
!NPC_FLAGS_2 = "$7EF411"
!MAP_OVERLAY = "$7EF414" ; [2]
!PROGRESSIVE_SHIELD = "$7EF416" ; ss-- ----
!HUD_FLAG = "$7EF416" ; --h- ----
!FORCE_PYRAMID = "$7EF416" ; ---- p---... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.1.4 #12246 (Mac OS X x86_64)
;--------------------------------------------------------
.module tileset_7
.optsdcc -mgbz80
;--------------------------------------------------------
; Public... |
[bits 32]
db 1,2,3,4,
|
/*
* This file is part of CasADi.
*
* CasADi -- A symbolic framework for dynamic optimization.
* Copyright (C) 2010-2014 Joel Andersson, Joris Gillis, Moritz Diehl,
* K.U. Leuven. All rights reserved.
* Copyright (C) 2011-2014 Greg Horn
*
* CasADi is free software; you ... |
; A120612: For n>1, a(n) = 2*a(n-1) + 15*a(n-2); a(0)=1, a(1)=1.
; 1,1,17,49,353,1441,8177,37969,198593,966721,4912337,24325489,122336033,609554401,3054149297,15251614609,76315468673,381405156481,1907542343057,9536162033329,47685459212513,238413348924961,1192108586037617,5960417405949649,29802463602463553,1490111882941... |
;******************************************************************************
;
; (c) 2010 by BECK IPC GmbH
; http://www.beck-ipc.com
;
;******************************************************************************
;
; Module: cry08.asm
; Function: Dynamic linking of TCPI/IP API Function Crypt_Blowfish_Encrypt... |
DEVICE AMSTRADCPC464
SLOT 0
PAGE 0 : ORG 0x0000 : DB "00"
PAGE 1 : ORG 0x0000 : DB "11"
PAGE 2 : ORG 0x0000 : DB "22"
PAGE 3 : ORG 0x0000 : DB "33"
PAGE 4 ; error - non-existing page (page 3 should be still visible in slot 0)
ASSERT {0} == "33"
SLOT 1 : PAGE 0 : ASSERT {0x400... |
; A327021: a(n) = (2*n-1)! / 2^(n-1) if n > 0 and a(0) = 1.
; Submitted by Jon Maiga
; 1,1,3,30,630,22680,1247400,97297200,10216206000,1389404016000,237588086736000,49893498214560000,12623055048283680000,3786916514485104000000,1329207696584271504000000,539658324813214230624000000,250941121038144617240160000000,13249691... |
;
; serial.asm
;
#include "main.inc"
#include "sdmmc.inc"
GLOBAL serial_init, getch, putch, putsz, puts,
GLOBAL putHex, printf, printLBA, putNL, dump
serial_data IDATA
_HexTemp res 1
_HexTemp2 res 1
_HexCount res 1
_HexRows res 1
_BSRsave res 1
serial CODE
serial_init... |
; Z88 Small C+ Run time Library
; Moved functions over to proper libdefs
; To make startup code smaller and neater!
;
; 6/9/98 djm
PUBLIC l_sxt
.l_sxt ld l,a
rlca
sbc a,a
ld h,a
ret
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0xcc92, %r10
nop
nop
nop
nop
nop
add %r13, %r13
mov (%r10), %esi
nop
nop
nop
nop
nop
xor %rdx, %rdx
lea addresses_normal_ht+0x77e4, %r11
clflush (%r11)
and %rbx,... |
// C11 standard
// created by cicek on Feb 01, 2021 7:44 PM
#include <iostream>
#include <string>
using namespace std;
int main(int argc, char **argv) {
/*Data abstraction is the concept of providing only essential information to the outside world.
* It's a process of representing essential features withou... |
/*
* Copyright (c) 2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publi... |
; Autor:
; Brown Ramírez, Belinda
; timna.brown@ucr.ac.cr
;Using indexed
;accumulator addressing.
;PD: The value of the
;pointers remains unchanged
;after the execution of
;the program.
; num > -50 -> stored high positions
begin:
CLRB ; clean B as counter
CLRA ; clean A
L... |
.include "defaults_mod.asm"
table_file_jp equ "exe6-utf8.tbl"
table_file_en equ "bn6-utf8.tbl"
game_code_len equ 3
game_code equ 0x4252354A // BR5J
game_code_2 equ 0x42523545 // BR5E
game_code_3 equ 0x42523550 // BR5P
card_type equ 1
card_id equ 63
card_no equ "063"
card_sub equ "Mod Card 063"
card_sub_x ... |
; Internal routine to write double at far pointer
; 31/3/00 GWL
; Entry: E'H'L'=far pointer
; FA->FA+5=double
;
; $Id: lp_pdoub.asm,v 1.4 2016-06-10 22:42:22 dom Exp $
;
SECTION code_clib
PUBLIC lp_pdoub
EXTERN fa
EXTERN farseg1,incfar
.lp_pdoub
ld a... |
[BITS 32]
%strlen wlgon_len 'winlogon.exe'
TH32CS_SNAPPROCESS EQU 2
PROCESS_ALL_ACCESS EQU 0x1f0fff
TOKEN_ADJUST_PRIVILEGES EQU 32
SE_PRIVILEGE_ENABLED EQU 2
MEM_RELEASE EQU 0x8000
@SFC_Disable:
push ebp
mov ebp, esp
call [edi + GetVersion]
or eax, eax
js .end
push 'SFC'
push esp
c... |
#include <CL/cl.h>
#include <opencv2/opencv.hpp>
#include <opencv2/core/ocl.hpp>
#include <iostream>
#include "measureRecord.h"
#define KEY_HELP "help"
#define KEY_DEVICE "device"
#define KEY_HEADLESS "headless"
#define KEY_LOOPCOUNT "loopCount"
#define KEY_TIME "time"
#define KEY_SAMPLE "sample"
#def... |
_FuchsiaHouse3Text_561bd::
text "I'm the FISHING"
line "GURU's older"
cont "brother!"
para "I simply Looove"
line "fishing!"
para "Do you like to"
line "fish?"
done
_FuchsiaHouse3Text_561c2::
text "Grand! I like"
line "your style!"
para "Take this and"
line "fish, young one!"
para "<PLAYER> received"
... |
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2012 Erwin Coumans http://bulletphysics.org
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is grant... |
format elf64
public Blake2PrepareMidstate4
public Blake2Run4
section '.text' executable align 64
include "proc_prepmidstate_avx2.asm"
align 16
include "proc_blake2_avx2.asm"
section '.data' writeable align 64
include "data_blake2b.asm"
|
; A221462: Number of 0..7 arrays of length n with each element unequal to at least one neighbor, starting with 0
; 0,7,49,392,3087,24353,192080,1515031,11949777,94253656,743424031,5863743809,46250174880,364797430823,2877333239921,22694914695208,179005735545903,1411904551687777,11136372010635760,87837935936264759
mov $... |
;
; Copyright (C) 2010-2012 Intel Corporation.
; SPDX-License-Identifier: MIT
;
PUBLIC SetOfFlag_asm
.686
.model flat, c
.code
SetOfFlag_asm PROC
xor eax, eax
inc eax
pushfd
popfd
cmp al, 081H
xor ecx, ecx
ret
SetOfFlag_asm ENDP
end |
C x86_64/umac-nh-n.asm
ifelse(<
Copyright (C) 2013 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either versi... |
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef long long int llint;
string find_answer(llint n) {
vector<llint> number_of_threes, number_of_fives;
for (llint i = 0; i <= n; i += 5)
number_of_threes.push_back(i);
for (llint i = 0; i <= n; i += 3)
number_of_fives.push... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r9
push %rbx
lea addresses_WC_ht+0x119f1, %r11
nop
nop
nop
nop
and $22354, %rbx
mov $0x6162636465666768, %r10
movq %r10, %xmm5
vmovups %ymm5, (%r11)
nop
xor $1417, %r11
lea addresses_normal_ht+0x18771, %r12
nop
sub %r9, %r9
and $0xffffffff... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x15809, %rsi
clflush (%rsi)
dec %rdx
mov $0x6162636465666768, %r10
movq %r10, (%rsi)
add %rdi, %rdi
lea addresses_WC_ht+0xb967, %rsi
lea addresses_A_ht+0x1eb67, %rdi
nop
nop
cmp %rbx, ... |
db 0 ; species ID placeholder
db 90, 60, 70, 45, 75, 70
; hp atk def spd sat sdf
db ICE, WATER ; type
db 120 ; catch rate
db 128 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 20 ; step cycles to hatch
INCBIN "gfx/pokemon/sealeo/front.dimensions"
db GROWTH_MEDIUM_SLOW ;... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r15
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x14fdc, %r8
nop
nop
nop
nop
nop
xor %r13, %r13
vmovups (%r8), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $1, %xmm7, %r14
nop
nop
nop
xor $18357, %r11
lea addresses_UC_ht+0x14... |
;Testname=br978756; Arguments=-Ox -felf64 -obr978756.o; Files=stdout stderr br978756.o
[bits 64]
MOVNTDQA xmm1, oword [rsi]
MOVLPD xmm2, qword [rdi]
MOVLPD xmm2, [rdi]
MOVLPD qword [rdi], xmm2
MOVLPD [rdi], xmm2
|
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution... |
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Copyright (c) 2012-2019 The plumed team
(see the PEOPLE file at the root of the distribution for a list of names)
See http://www.plumed.org for more information.
This file is part of plumed, version 2.
plumed is free software... |
; A223133: Number of distinct sums i+j+k with i,j,k >= 0, i*j*k <= n and gcd(i,j,k) <= 1.
; 1,4,5,6,8,10,11,14,15,18,19,22,23,26,27,30,31,34,35,38,39,42,43,46,47,50,51,54,55,58,59,62,63,66,67,70,71,74,75,78,79,82,83,86,87,90,91,94,95,98,99,102,103,106,107,110,111,114,115,118,119,122,123,126,127,130,131,134,135,138,139,... |
; int putc(int c, FILE *stream)
INCLUDE "clib_cfg.asm"
SECTION code_clib
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC putc_callee
EXTERN fputc_callee
defc putc_callee = fputc_callee
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ELSE
;;;;;;;;;;;;;;;;... |
#include <GarrysMod/Lua/Interface.h>
#include <ByteBuffer.hpp>
#include <dbg.h>
#include <Color.h>
#include <Windows.h>
#include <cstdint>
#include <string>
#include <thread>
static SpewOutputFunc_t spew_function = nullptr;
static HANDLE server_pipe = INVALID_HANDLE_VALUE;
static volatile bool server_shutdown = false;... |
///////////////////////////////////////////////////////////////////////////////
// Name: src/common/containr.cpp
// Purpose: implementation of wxControlContainer
// Author: Vadim Zeitlin
// Modified by:
// Created: 06.08.01
// RCS-ID: $Id: containr.cpp 44273 2007-01-21 01:21:45Z VZ $
// Copyrig... |
; ---------------------------------------------------------------------------
; Animation script - trapdoor (SBZ)
; ---------------------------------------------------------------------------
Ani_Spin: dc.w @trapopen-Ani_Spin
dc.w @trapclose-Ani_Spin
dc.w @spin1-Ani_Spin
dc.w @spin2-Ani_Spin
@trapopen: dc.b 3, 0,... |
Music_Credits_Ch0::
tempo 140
volume 7, 7
duty 3
vibrato 8, 3, 4
toggleperfectpitch
notetype 12, 11, 5
octave 4
E_ 6
octave 3
A_ 1
octave 4
E_ 1
D_ 6
octave 3
G_ 1
octave 4
D_ 1
C# 6
octave 3
F# 1
octave 4
C# 1
D_ 4
E_ 2
C# 1
E_ 1
C# 1
rest 1
octave 3
E_ 1
rest 3
E_ 1
E_ 1
E_ 1
rest 1... |
<%
from pwnlib.shellcraft.mips.linux import syscall
%>
<%page args="which, new, old"/>
<%docstring>
Invokes the syscall setitimer. See 'man 2 setitimer' for more information.
Arguments:
which(itimer_which_t): which
new(itimerval): new
old(itimerval): old
</%docstring>
${syscall('SYS_setitimer', w... |
.file "prime.cpp"
.text
.section .rodata
.type _ZStL19piecewise_construct, @object
.size _ZStL19piecewise_construct, 1
_ZStL19piecewise_construct:
.zero 1
.local _ZStL8__ioinit
.comm _ZStL8__ioinit,1,1
.text
.globl main
.type main, @function
main:
.LFB1576:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16... |
;============================
; Basic
;============================
sleep PROC
; Time: BX = OFFSET
PUSH AX CX DX
MOV AH, 86h
MOV DX, [BX] ; Lower us
MOV CX, [BX + 2h] ; Upper us
INT 15h
POP DX CX AX
RET
sleep ENDP
randomNumber PROC
; Inspired by... |
;
; interrupt.s -- Contains interrupt service routine wrappers.
global idt_flush ; Allows the C code to call idt_flush().
global isr_common_stub
global irq_common_stub
global syscall_common_stub
idt_flush:
mov eax, [esp+4] ; Get the pointer to the IDT, passed as a parameter.
lidt [eax] ; Load the ID... |
;%include "io.inc"
section .bss
x resq 1
section .data
ln2 dq 0.69314718056
one dq 1.0
two dq 2.0
e dq 2.71828182845904523536
three dq 3.0
four dq 4.0
neight dq -8.0
section .rodata
lf db "%lf", 0
section .text
EXTERN pow
EXTERN log
EXTERN printf
EXTERN scanf... |
// g++ -std=c++14 -DDEV=1 main.cpp
#include <stdio.h>
#include <cassert>
#include <iostream>
#include <fstream>
#include <vector>
#include <cmath>
using std::cin;
using std::cout;
using std::endl;
using std::terminate;
using std::vector;
#define rep(i, a, n) for (int i = (a); i < (n); ++i)
#define bit(n, k) ((n >> k)... |
#include "ShortestPathWithRandomReturnWithFixedProbability.h"
ShortestPathWithRandomReturnWithFixedProbability::
ShortestPathWithRandomReturnWithFixedProbability(ShortestPath* shPath, FPType probability):
ShortestPathWithRandomReturn(shPath), probability_(probability) {
};
ShortestPathWithRandomReturnWithFixed... |
//
// ItlNetworkInterface.cpp
// TestService
//
// Created by qcwap on 2020/5/25.
// Copyright © 2020 lhy. All rights reserved.
//
#include "IO80211Interface.hpp"
#include <sys/errno.h>
#define super IOEthernetInterface
OSDefineMetaClassAndStructors( IO80211Interface, IOEthernetInterface )
bool IO80211Interface:... |
; A168116: a(n) = n*(n^8+1)/2.
; 0,1,257,9843,131074,976565,5038851,20176807,67108868,193710249,500000005,1178973851,2579890182,5302249693,10330523399,19221679695,34359738376,59293938257,99179645193,161343848899,256000000010,397140023301,603634608907,900576330743,1320903770124,1907348632825,2714751839501,3812798742507,... |
; A186315: Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) before g(j) when f(i)=g(j), where f and g are the squares and hexagonal numbers. Complement of A186316.
; 1,3,5,7,8,10,12,13,15,17,19,20,22,24,25,27,29,30,32,34,36,37,39,41,42,44,46,48,49,51,53,54,56,58,59,61,63,65,66,68,70,71,73,75,77,78,80,82,83,... |
; int fputc_callee(int c, FILE *stream)
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _fputc_callee, l0_fputc_callee
EXTERN asm_fputc
_fputc_callee:
pop af
pop de
pop bc
push af... |
/////////////////////////////////////////////////////////////////////////////
// Name: src/msw/dragimag.cpp
// Purpose: wxDragImage
// Author: Julian Smart
// Modified by:
// Created: 08/04/99
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
////////////////////////////////////////... |
org 100h
include "emu8086.inc"
.model small
.stack 100h
.data
.code
main proc
mov cx , 80 ; numb of strs to display
mov ah , 2 ; display char function
mov dl , '*' ; char to display
loop_strs:
int 21h ; display a sta... |
<%
from pwnlib.regsort import regsort
from pwnlib.shellcraft import registers, eval
from pwnlib.shellcraft.amd64 import mov
%>
<%page args="reg_context, stack_allowed = True"/>
<%docstring>
Sets multiple registers, taking any register dependencies into account
(i.e., given eax=1,ebx=eax, set ebx first).
Args:
... |
; A168376: a(n) = (14*n - 7*(-1)^n - 9)/4.
; 3,3,10,10,17,17,24,24,31,31,38,38,45,45,52,52,59,59,66,66,73,73,80,80,87,87,94,94,101,101,108,108,115,115,122,122,129,129,136,136,143,143,150,150,157,157,164,164,171,171,178,178,185,185,192,192,199,199,206,206,213,213,220,220,227,227,234,234,241,241,248,248,255,255,262,262,2... |
object_const_def ; object_event constants
RowansLab_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
RowansLab_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
warp_event 4, 11, SANDGEM_TOWN, 1
warp_event 5, 11, SANDGEM_TOWN, 1
db 0 ; coord events
db 0 ; bg events
db 0 ; object events
|
; A165747: a(n) = 1-2n.
; 1,-1,-3,-5,-7,-9,-11,-13,-15,-17,-19,-21,-23,-25,-27,-29,-31,-33,-35,-37,-39,-41,-43,-45,-47,-49,-51,-53,-55,-57,-59,-61,-63,-65,-67,-69,-71,-73,-75,-77,-79,-81,-83,-85,-87,-89,-91,-93,-95,-97,-99,-101,-103,-105,-107,-109,-111,-113,-115,-117,-119,-121,-123,-125,-127,-129,-131,-133,-135,-137,-1... |
; A005592: a(n) = F(2n+1) + F(2n-1) - 1.
; 1,2,6,17,46,122,321,842,2206,5777,15126,39602,103681,271442,710646,1860497,4870846,12752042,33385281,87403802,228826126,599074577,1568397606,4106118242,10749957121,28143753122,73681302246,192900153617,505019158606,1322157322202,3461452808001,9062201101802,23725150497406,621132... |
; A120691: First differences of coefficients in the continued fraction for e.
; Submitted by Simon Strandgaard
; 2,-1,1,-1,0,3,-3,0,5,-5,0,7,-7,0,9,-9,0,11,-11,0,13,-13,0,15,-15,0,17,-17,0,19,-19,0,21,-21,0,23,-23,0,25,-25,0,27,-27,0,29,-29,0,31,-31,0,33,-33,0,35,-35,0,37,-37,0,39,-39
mov $3,$0
mov $4,2
lpb $4
mov $... |
dnl Copyright 1999, 2000, 2001, 2002, 2005 Free Software Foundation, Inc.
dnl
dnl This file is a modified part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public License as
dnl published by the Free Softw... |
; A000079: Powers of 2: a(n) = 2^n.
; 1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536,131072,262144,524288,1048576,2097152,4194304,8388608,16777216,33554432,67108864,134217728,268435456,536870912,1073741824,2147483648,4294967296,8589934592,17179869184,34359738368,68719476736,137438953472,274877906944... |
;*****************************************************************************
;* x86-optimized functions for yadif filter
;*
;* Copyright (C) 2006 Michael Niedermayer <michaelni@gmx.at>
;* Copyright (c) 2013 Daniel Kang <daniel.d.kang@gmail.com>
;* Copyright (c) 2011-2013 James Darnley <james.darnley@gmail.com>
;*
;* ... |
;=============================================================================;
; FDOS ;
; Written by Victor Kindhart ;
; FDOS - kernel.asm - Kernel for FDOS ;
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x12ff9, %rsi
lea addresses_WT_ht+0x20f4, %rdi
nop
nop
nop
xor %rbp, %rbp
mov $12, %rcx
rep movsq
nop
sub $14808, %r15
lea addresses_WC_ht+0xee94, %rsi
lea addresses_WC_ht+0x9bb3, %rdi
... |
/***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| |_|
*
*
* Copyright 2018-present, Leoni... |
global _start
_start:
;write syscall
;rax = 1
;rdi = 1
;rsi = string address
;rdi = string length
xor rax, rax
mov rax, 0x61646e4141414141
shr rax, 0x28
push rax
mov rax, 0x696c20796c656166
push rax
mov rax, 0x61722061206f6d41
push rax
push rsp
pop rsi
xor rax, rax
add rax, 0x1
xor rdi, rdi
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.