text stringlengths 1 1.05M |
|---|
; A118226: Start with 1 and repeatedly reverse the digits and add 76 to get the next term.
; 1,77,153,427,800,84,124,497,870,154,527,801,184,557,831,214,488,960,145,617,792,373,449,1020,277,848,924,505,581,261,238,908,885,664,542,321,199,1067,7677,7843,3563,3729,9349,9515,5235,5401,1121,1287,7897
mov $2,$0
mov $0,1
lp... |
/*
tests/conv.cpp -- tests special functions
Enoki is a C++ template library that enables transparent vectorization
of numerical kernels using SIMD instruction sets available on current
processor architectures.
Copyright (c) 2021 Wenzel Jakob <wenzel.jakob@epfl.ch>
All rights reserved. Use of... |
; A299265: Partial sums of A299259.
; 1,6,19,45,90,159,257,390,563,781,1050,1375,1761,2214,2739,3341,4026,4799,5665,6630,7699,8877,10170,11583,13121,14790,16595,18541,20634,22879,25281,27846,30579,33485,36570,39839,43297,46950,50803,54861,59130,63615,68321,73254,78419,83821,89466,95359,101505,107910,114579,121517,12873... |
// Copyright 2020 Advanced Remanufacturing and Technology Centre
// Copyright 2020 ROS-Industrial Consortium Asia Pacific Team
//
// 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
//
// ht... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x88c3, %rsi
lea addresses_WC_ht+0x170c3, %rdi
cmp %rbx, %rbx
mov $61, %rcx
rep movsq
nop
nop
nop
nop
nop
and %r13, %r13
lea addresses_WT_ht+0x50c3, %r9
cmp $42926, %rax
mov $0x... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkSimple3DCirclesStrategy.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Thi... |
;; This version applies colour but tries to follow the
;; contour of the text when applying it.
;;
;; This was voted undesirable at WOS.
; int fzx_putc(struct fzx_state *fs, int c)
; ===============================================================
; FZX driver - Copyright (c) 2013 Einar Saukas
; FZX format - Copyri... |
; Hooks for drawing exp bars in status_screen.asm
StatusScreenHook:
; b = SET_PAL_STATUS_SCREEN
call RunPaletteCommand
coord de, 18, 5
ld a, [wBattleMonLevel]
push af
ld a, [wLoadedMonLevel]
ld [wBattleMonLevel], a
callba PrintEXPBar
pop af
ld [wBattleMonLevel], a
ret
StatusScreen2Hook:
coord hl, 19, 1
l... |
; =============================================================================
; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems
; Copyright (C) 2008-2010 Return Infinity -- see LICENSE.TXT
;
; Screen Output Functions
; =============================================================================
... |
/* ---------------------------------------------------------------------------------
Implementation file of POPUP_DISPLAY class
Copyright (c) 2011-2013 AnS
(The MIT License)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softw... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Emit a beep of a certain frequency
; AX - Freq
os_speaker_tone:
pusha
mov cx, ax
mov al, 182
out 43h, al
mov ax, cx
out 42h, al
mov al, ah
out 42h, al
in al, 61h
or al, 03h
out 61h, al
popa
ret
; Turns off PC speaker
os_... |
.data
message: .asciiz "Fim da Execução"
space: .asciiz ", "
.text
main:
addi $t0,$zero,0
loop:
bgt $t0,9,exit
addi $t0,$t0,1
li $v0, 5 # chama função para ler
syscall
la $t7, ($v0) # carrega o inteiro lido em $t7
add $t1,$t1,$t7
j loop
exit:
div... |
comment $
\`. |\
\`-. \ `.| \!,,
\ \ `.\ _ (__
_ `-.> \ ___ \ __ ------------------------------------------
`-/,o-./O `. ._` Badf00d Polymorphic Engine
-// j_ | `` _<` -----... |
; A016918: a(n) = (6*n)^10.
; 0,60466176,61917364224,3570467226624,63403380965376,590490000000000,3656158440062976,17080198121677824,64925062108545024,210832519264920576,604661760000000000,1568336880910795776,3743906242624487424,8335775831236199424,17490122876598091776,34867844010000000000,66483263599150104576,12189944... |
#include "pch.h"
#include "Engine.h"
#include "ProjectionState.h"
#include "Error.h"
//#if defined(NDEBUG)
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR pCmdLine, int nCmdShow)
//#else // defined(NDEBUG)
//int main()
//#endif
{
Engine& engine = Engine::Instance();
try
{
engine.init();... |
; float sin(float x) __z88dk_fastcall
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sdcciy_sin_fastcall
EXTERN cm48_sdcciyp_dx2m48, am48_sin, cm48_sdcciyp_m482d
cm48_sdcciy_sin_fastcall:
call cm48_sdcciyp_dx2m48
call am48_sin
jp cm48_sdcciyp_m482d
|
lc r4, 0x0000006d
lc r5, 0x00008000
eq r6, r4, r5
halt
#@expected values
#r4 = 0x0000006d
#r5 = 0x00008000
#r6 = 0x00000000
#pc = -2147483628
#e0 = 0
#e1 = 0
#e2 = 0
#e3 = 0
|
// Copyright 2016, Tobias Hermann.
// https://github.com/Dobiasd/frugally-deep
// Distributed under the MIT License.
// (See accompanying LICENSE file or at
// https://opensource.org/licenses/MIT)
#pragma once
#include "fdeep/base64.hpp"
#if defined(__GNUC__) || defined(__GNUG__)
#pragma GCC diagnostic p... |
;
;
; Copyright (c) 2018 by blindtiger. All rights reserved.
;
; The contents of this file are subject to the Mozilla Public 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.mozilla.org/MPL/
;
; Softwa... |
; print binary code
Start:
; where to print
LDX #$A000
; a byte consists of eight bits
LDY #8
; 0
LDA #48
;target
LDB #$81
Loop1:
; test one bit
ROLB
ADCA
STA ,X
LDA #48
INCX
INCX
DECY
CMPY #$00
JNE #Loop1
END Start |
/*
* Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider,
* Jérémie Comarmond, Didier Colin.
* 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 ... |
.Title "RTC"
;
; Program: rtc.asm
; Author: Andrew Lynch
; Date: 22 Feb 2007
; Enviroment: TASM MS-DOS Z80 Cross Assembler source for CP/M
;
;[2011/8/11] VK5DG modified for N8
; Changed base address to $88
; Changed trickle charger value to 2k+2 diodes for DS1210s
;
;[2012/2/7] WBW modified to build for ei... |
// Copyright 2020 Zhafyarov Oleg
#include <mpi.h>
#include <vector>
#include <random>
#include <ctime>
#include "../../../modules/task_1/zhafyarov_o_vector_sum/vector_sum.h"
std::vector <int> GetRandomVector(int size) {
std::vector<int> vec_tmp(size);
std::mt19937 gen;
gen.seed(static_cast<unsigned int... |
#include <ossim/parallel/ossimJobQueue.h>
#include <algorithm> /* for std::find */
ossimJobQueue::ossimJobQueue()
{
}
void ossimJobQueue::add(ossimJob* job, bool guaranteeUniqueFlag)
{
ossimRefPtr<Callback> cb;
{
{
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(m_jobQueueMutex);
... |
// Copyright 2015 Stellar Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "crypto/ECDH.h"
#include "crypto/SHA.h"
#include "util/HashOfHash.h"
#include <functio... |
; A170362: Number of reduced words of length n in Coxeter group on 17 generators S_i with relations (S_i)^2 = (S_i S_j)^43 = I.
; 1,17,272,4352,69632,1114112,17825792,285212672,4563402752,73014444032,1168231104512,18691697672192,299067162755072,4785074604081152,76561193665298432,1224979098644774912,19599665578316398592... |
SSAnne1F_Script:
call EnableAutoTextBoxDrawing
ret
SSAnne1F_TextPointers:
dw SSAnne1Text1
dw SSAnne1Text2
SSAnne1Text1:
TX_FAR _SSAnne1Text1
db "@"
SSAnne1Text2:
TX_FAR _SSAnne1Text2
db "@"
|
; A261557: a(0) = a(1) = 0; for n>1, a(n) = 2*n - a(n-1) - a(n-2).
; 0,0,4,2,2,6,4,4,8,6,6,10,8,8,12,10,10,14,12,12,16,14,14,18,16,16,20,18,18,22,20,20,24,22,22,26,24,24,28,26,26,30,28,28,32,30,30,34,32,32,36,34,34,38,36,36,40,38,38,42,40,40,44,42,42,46,44,44,48,46,46,50,48,48,52,50,50,54,52,52,56,54,54,58,56,56,60,58,... |
; A007662: Quadruple factorial numbers n!!!!: a(n) = n*a(n-4).
; 1,1,2,3,4,5,12,21,32,45,120,231,384,585,1680,3465,6144,9945,30240,65835,122880,208845,665280,1514205,2949120,5221125,17297280,40883535,82575360,151412625,518918400,1267389585,2642411520,4996616625,17643225600,44358635475,95126814720,184874815125,670442572... |
_init: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
char *argv[] = { "sh", 0 };
int
main(void)
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push %ebp
... |
extern m7_ippsTDESDecryptECB:function
extern n8_ippsTDESDecryptECB:function
extern y8_ippsTDESDecryptECB:function
extern e9_ippsTDESDecryptECB:function
extern l9_ippsTDESDecryptECB:function
extern n0_ippsTDESDecryptECB:function
extern k0_ippsTDESDecryptECB:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeIni... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2016, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... |
; A141214: Defining A to be the interior angle of a regular polygon, the number of constructible regular polygons such that A is in a field extension <= degree 2^n, starting with n=0. This is also the number of values of x such that phi(x)/2 is a power of 2 <= 2^n (where phi is Euler's phi function), also starting with... |
aci -128 ; CE 80
aci 127 ; CE 7F
aci 255 ; CE FF
adc (hl) ; 8E
adc -128 ; CE 80
adc 127 ; CE 7F
adc 255 ; CE FF
adc a ; 8F
adc a... |
; A100158: Structured disdyakis triacontahedral numbers (vertex structure 11).
; 1,62,293,804,1705,3106,5117,7848,11409,15910,21461,28172,36153,45514,56365,68816,82977,98958,116869,136820,158921,183282,210013,239224,271025,305526,342837,383068,426329,472730,522381,575392,631873,691934,755685,823236,894697,970178,104978... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2021-01-01
// PURPOSE: unit tests for the PrintCharArray library
// https://github.com/RobTillaart/PrintCharArray
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// ------------------... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include <cmath>
#include "REAL.H"
#include "IntVect.H"
#include "Box.H"
#in... |
; A020801: Decimal expansion of 1/sqrt(44).
; Submitted by Jamie Morken(s4)
; 1,5,0,7,5,5,6,7,2,2,8,8,8,8,1,8,1,1,3,2,3,4,0,6,0,3,3,4,8,5,0,3,1,2,1,2,9,0,5,7,7,6,7,5,2,0,7,2,2,4,3,3,4,5,3,2,0,8,4,9,1,8,8,4,5,9,8,4,0,2,1,1,0,2,7,6,8,3,8,1,1,2,1,4,0,3,8,3,3,6,3,2,4,0,1,3,2,1,1,4
mov $1,1
mov $2,1
mov $3,$0
add $3,8
mov ... |
; **********************************************************************
; memviewer View memory dump
; **********************************************************************
; langDump Shows "program" structure
.langDump
{
JSR langStart ; Point to the program start
JSR memViewer
LDA #0
... |
; A117794: Hexagonal numbers divisible by 6.
; 0,6,66,120,276,378,630,780,1128,1326,1770,2016,2556,2850,3486,3828,4560,4950,5778,6216,7140,7626,8646,9180,10296,10878,12090,12720,14028,14706,16110,16836,18336,19110,20706,21528,23220,24090,25878,26796,28680,29646,31626,32640,34716,35778,37950,39060,41328,42486,44850,4605... |
; A166147: a(n) = 4n^2 + 4n - 7.
; 1,17,41,73,113,161,217,281,353,433,521,617,721,833,953,1081,1217,1361,1513,1673,1841,2017,2201,2393,2593,2801,3017,3241,3473,3713,3961,4217,4481,4753,5033,5321,5617,5921,6233,6553,6881,7217,7561,7913,8273,8641,9017,9401,9793,10193,10601,11017,11441,11873,12313,12761,13217,13681,14153,... |
; "Springs are going to the party"
; - 256 bytes intro by Frog for CC'2017
;
; http://frog.enlight.ru
; frog@enlight.ru
;
include "vectrex.i"
frames_c equ $C880
base_x equ $C882
springs equ $C890 ; index in sine table for each spring
sine equ $fc6d ; sine table from... |
// Catch2
#include "../submodules/Catch2/single_include/catch2/catch.hpp"
// Project headers
#include "../src/TimestampPattern.hpp"
using std::string;
TEST_CASE("Test known timestamp patterns", "[KnownTimestampPatterns]") {
TimestampPattern::init();
string line;
const TimestampPattern* pattern;
epoc... |
;***************************************************************************
; vector.asm
; Ejercicio que llena un vector ingresando datos por telcado y luego imprime
; Objetivos
; - definir un vector con times y resb
; - manejar un vector usando formula (i-1)*longElem
; - usar printf con varios parametros de distinto ... |
// Copyright (c) 2015, Andre Gaschler, Quirin Fischer
// 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
... |
<%
from pwnlib.shellcraft.thumb.linux import syscall
%>
<%page args="pid"/>
<%docstring>
Invokes the syscall getsid. See 'man 2 getsid' for more information.
Arguments:
pid(pid_t): pid
</%docstring>
${syscall('SYS_getsid', pid)}
|
; Z88 Small C+ Run time Library
; Moved functions over to proper libdefs
; To make startup code smaller and neater!
;
; 6/9/98 djm
SECTION code_crt0_sccz80
PUBLIC l_ult
;
; DE < HL [unsigned]
; set carry if true
.l_ult
ld a,d
cp h
ret nz
ld a... |
//*****************************************************************************
// Copyright 2017-2018 Intel Corporation
//
// 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://w... |
; size_t b_array_push_back_callee(b_array_t *a, int c)
SECTION code_adt_b_array
PUBLIC _b_array_push_back_callee
EXTERN _b_array_append_callee
defc _b_array_push_back_callee = _b_array_append_callee
INCLUDE "adt/b_array/z80/asm_b_array_push_back.asm"
|
TITLE Combinations Quiz (program6b_Nguyen_Richard.asm)
; Author: Richard Nguyen
; Last Modified: 12/8/19
; OSU email address: nguyeric@oregonstate.edu
; Course number/section:CS_271_400_F2019
; Project Number: 6B Due Date: 12/8/2019
; Description: Asks User to calculate the number of combina... |
.if VAR_DEBUG
title_versionLabelShow:
push r4-r7,r14
// Copyright CAPCOM
mov r0,0x8
mov r1,0x8C
mov r2,0x1
bl 0x80291B4
// Version label
mov r0,0x0
mov r1,0x0
ldr r2,=@labelParams
bl 0x80291C4
pop r4-r7,r15
title_versionLabelPrint:
push r14
ldr r0,=@versionNameText
mov r1,0x0
ldr r2,=0x201C2C0
l... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x3c78, %rsi
lea addresses_D_ht+0x6d8, %rdi
nop
nop
nop
sub %rbp, %rbp
mov $78, %rcx
rep movsl
nop
nop
nop
nop
nop
inc %r13
lea addresses_normal_ht+0x25d6, %r10
nop
nop
nop
inc... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x15299, %rdx
nop
nop
nop
nop
sub $39084, %r13
mov $0x6162636465666768, %rbx
movq %rbx, %xmm6
movups %xmm6, (%rdx)
nop
nop
nop
nop
nop
dec %rbx
lea addresses_normal_ht+0x11099... |
;
; Copyright (c) 2006-2008 Advanced Micro Devices,Inc. ("AMD").
;
; This library is free software; you can redistribute it and/or modify
; it under the terms of the GNU Lesser General Public License as
; published by the Free Software Foundation; either version 2.1 of the
; License, or (at your option) any lat... |
#include <iostream>
#include "core/measurements.h"
#include "core/properties.h"
using namespace ycsbc;
void test_OneMeasurementRaw() {
utils::Properties p;
p.SetProperty("measurement.raw.output_file", "measurement_raw_output");
OneMeasurementRaw m("test_OneMeasurementRaw", p);
TextMeasurementsExporter export... |
#include <rleahylib/rleahylib.hpp>
#include <client.hpp>
#include <hash.hpp>
#include <mod.hpp>
#include <packet.hpp>
#include <server.hpp>
#include <limits>
#include <unordered_map>
#include <utility>
using namespace MCPP;
// The frequency with which every player's
// list is updated to propagate ping changes
// e... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/04/Mult.asm
// Multiplies R0 and R1 and stores the result in R2.
// (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.)
@2
M=0 // R2... |
; A032169: Number of aperiodic necklaces of n beads of 2 colors, 11 of them black.
; 1,6,26,91,273,728,1768,3978,8398,16796,32065,58786,104006,178296,297160,482885,766935,1193010,1820910,2731365,4032015,5864749,8414640,11920740,16689036,23107896,31666376,42975796
add $0,11
mov $2,10
mov $3,$0
lpb $0,1
mov $0,7
mov... |
; $Id: beeper_mwr.asm,v 1.5 2016-06-11 20:52:25 dom Exp $
;
; 1 bit sound library - version for "memory write" I/O architectures
; by Stefano Bodrato, 31/03/08
;
; ZX Spectrum-like call:
; HL=duration
; DE=frequency
;
IF !__CPU_GBZ80__ && !__CPU_INTEL__
SECTION code_clib
PUBLIC beeper
PUBLIC _be... |
#include "dataio.h"
Eigen::Map<Eigen::MatrixXd> DataIO::readPointFile(std::string fileName, double *data /* = nullptr */)
{
std::ifstream fin(fileName, std::ios::in|std::ios::binary);
// Check for existance for file
if (!fin)
throw std::runtime_error("File not found : " + fileName);
// Read t... |
; inner error
#ruledef
{
emit {x} => x / 0
test {x} => asm { emit x }
}
test 12 ; error: failed / error:_:4: zero |
#note: r40 (the exception handler) and r46 (the start of usermode code) must
#be specified in hex (0xwhatever)
#I just don't see any reason not to, and it makes programming the script
#much nicer to deal with...
#load exception handler
lc r40, 0x80000050
leh r40
#enable exceptions
cle
#load TLB ent... |
; Characteristics of each move.
move: MACRO
; the animation byte will be filled when the move is loaded
db \1 ; effect
db \2 ; power
db \3 ; type
db \4 percent ; accuracy
db \5 ; pp
db \6 percent ; effect chance
ENDM
Moves::
; entries correspond to constants/move_constants.asm
indirect_table MOVE_LENGTH - 1, ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x114d2, %rsi
lea addresses_A_ht+0x1ce36, %rdi
nop
nop
nop
nop
nop
xor $34379, %r14
mov $61, %rcx
rep movsl
nop
nop
sub %rbp, %rbp
lea addresses_normal_ht+0x119e6, %rsi
lea addresses_A_h... |
_kill: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char **argv)
{
0: f3 0f 1e fb endbr32
4: 8d 4c 24 04 lea 0x4(%esp),%ecx
8: 83 e4 f0 and $0xfffffff0,%esp
b: ff 71 fc ... |
;-------------------------------------------------------------------
; Praktikum SMD 2015
; M.Wahyudin (140310120031)
;
; Name : LATIH28.ASM (TIMER3)
; Desc : Timer 1 sekon/999424us (mode 2)
; Timer 0 8bit auto diulang 256-134 kali (r6 & r7)
; tidak termasuk header program
; Input : P3.4 masukkan penc... |
; A087215: Lucas(6*n): a(n) = 18*a(n-1) - a(n-2), starting with a(0) = 2 and a(1) = 18.
; 2,18,322,5778,103682,1860498,33385282,599074578,10749957122,192900153618,3461452808002,62113250390418,1114577054219522,20000273725560978,358890350005878082,6440026026380244498,115561578124838522882,2073668380220713167378,372104692... |
67_Header:
sHeaderInit ; Z80 offset is $C8C3
sHeaderPatch 67_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $02, 67_FM3, $2B, $00
67_FM3:
sPatFM $00
67_Loop1:
dc.b nCs1, $02
saVolFM $01
sLoop $00, $08, 67_Loop1
saVolFM $E0
sLoop $00, $05, 67_Loop1
sStop
67_Patches:
; Patch $00
; $35
... |
; Test case:
define kip "hoppa!"
byte kip,0,0,kip
byte "kip"
define one 1
byte one
define one 2
byte one
define val 1
xdefine val val+1 ; c expands to 1+1
byte val
define val 1
assign val val+1 ; c expands to 2
byte val
|
; A048500: a(n) = 2^(n-1)*(7*n-12)+7.
; 1,2,11,43,135,375,967,2375,5639,13063,29703,66567,147463,323591,704519,1523719,3276807,7012359,14942215,31719431,67108871,141557767,297795591,624951303,1308622855,2734686215,5704253447,11878268935,24696061959,51271172103,106300440583,220117073927,455266533383,940597837831,1941325... |
; void SMS_hideSprite(unsigned char sprite)
SECTION code_clib
SECTION code_SMSlib
PUBLIC _SMS_hideSprite_fastcall
EXTERN asm_SMSlib_hideSprite
defc _SMS_hideSprite_fastcall = asm_SMSlib_hideSprite
|
// Copyright 2021 Sony Group Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "include/video_player/video_player_plugin.h"
#include <flutter/basic_message_channel.h>
#include <flutter/encodable_value.h>
#include <flutter... |
; Project DC 2002
; Hexadecimal View: functions, scroll, Options, etc
.model small
.stack 80h
HexQuanta equ 250h
line_count equ 25
at_Main equ 1Bh
at_Status equ 0B1h
.data
sModeHex db "Hex:",0
HintBar db "Help ",0," ",0," ",0,"Mode ",0,"GoTo ",0," ",0," ",0," ",0,"Open ",0,"Quit "
... |
#ruledef reg
{
a => 0xaa
b => 0xbb
}
#ruledef
{
emit {r: reg} => r`8
test {r: reg} => asm { emit {r} }
}
emit a ; = 0xaa
emit b ; = 0xbb
test a ; = 0xaa
test b ; = 0xbb |
; A021289: Decimal expansion of 1/285.
; Submitted by Jon Maiga
; 0,0,3,5,0,8,7,7,1,9,2,9,8,2,4,5,6,1,4,0,3,5,0,8,7,7,1,9,2,9,8,2,4,5,6,1,4,0,3,5,0,8,7,7,1,9,2,9,8,2,4,5,6,1,4,0,3,5,0,8,7,7,1,9,2,9,8,2,4,5,6,1,4,0,3,5,0,8,7,7,1,9,2,9,8,2,4,5,6,1,4,0,3,5,0,8,7,7,1
seq $0,173833 ; 10^n - 3.
div $0,285
mod $0,10
|
/*
*
* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*
*/
#include "common/geo/GeoIndex.h"
#include <folly/String.h>
#include <folly/hash/Hash.h>
#include <s2/mutable_s2shape_index.h>
#include <s2/s2cap.h>
#include <s2/s2cell.h>
#include <s2/s2cel... |
// 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 "pal_asn1_print.h"
static_assert(PAL_B_ASN1_NUMERICSTRING == B_ASN1_NUMERICSTRING, "");
static_assert(PAL_... |
; A276878: Sums-complement of the Beatty sequence for 2*Pi.
; 1,2,3,4,5,8,9,10,11,14,15,16,17,20,21,22,23,24,27,28,29,30,33,34,35,36,39,40,41,42,45,46,47,48,49,52,53,54,55,58,59,60,61,64,65,66,67,68,71,72,73,74,77,78,79,80,83,84,85,86,89,90,91,92,93,96
mov $1,2
mov $2,$0
mul $2,7
div $2,5
mov $3,$2
div $3,6
mul $1,$3
... |
.target "6502"
.format "nes"
.setting "NESMapper", 0
.setting "NESVerticalMirroring", true
.setting "ShowLabelsAfterCompiling", true
.setting "ShowLocalLabelsAfterCompiling", true
.setting "LaunchCommand", "c:\\emulation\\fceux.exe {0}"
.setting "DebugCommand", "c:\\emulation\\fceux.exe ... |
PROGRAM_SIZE equ 7; константа, определяющая размер программы (плохая идея, но пока так)
DATA_SEG equ 0x60; сегмент данных, куда загружаем наш код
STACK_SEG equ 0x7E0; сегмент для стека
use16
org 0x7c00
section .text
start:
mov ax, DATA_SEG ; сегмент куда пишем
mov es, ax
mov bx, 0; адрес к... |
LI A, 0x1
LI A, 0x0
LI X, 0
LI Y, 11
JALR
NOP
NOP
NOP
LI A, 0xbb
HLT
LI A, 0xaa
MOV X, G
MOV Y, H
JMP
NOP
NOP
NOP
HLT |
.intel_syntax noprefix
.test_case_enter:
LEA R14, [R14 + 12] # instrumentation
MFENCE # instrumentation
.test_case_main:
.test_case_main.entry:
JMP .bb0
.bb0:
CMOVNL ECX, ECX
AND RBX, 0b0111111000000 # instrumentation
ADD RBX, R14 # instrumentation
ADC dword ptr [RBX], -67100032
NOT RAX
JP .bb1
JMP .test_case_main.exit... |
#include <pqxx/internal/callgate.hxx>
namespace pqxx
{
class connection;
class errorhandler;
} // namespace pqxx
namespace pqxx::internal::gate
{
class PQXX_PRIVATE connection_errorhandler : callgate<connection>
{
friend class pqxx::errorhandler;
connection_errorhandler(reference x) : super(x) {}
void registe... |
/* autogenerated by dtc, do not edit */
#define OF_DT_HEADER 0xd00dfeed
#define OF_DT_BEGIN_NODE 0x1
#define OF_DT_END_NODE 0x2
#define OF_DT_PROP 0x3
#define OF_DT_END 0x9
.globl dt_blob_start
dt_blob_start:
_dt_blob_start:
.globl dt_header
dt_header:
_dt_header:
.long OF_DT_HEADER /* magic */
.long _dt_blob_end... |
; A007067: Nearest integer to n*tau.
; 0,2,3,5,6,8,10,11,13,15,16,18,19,21,23,24,26,28,29,31,32,34,36,37,39,40,42,44,45,47,49,50,52,53,55,57,58,60,61,63,65,66,68,70,71,73,74,76,78,79,81,83,84,86,87,89,91,92,94,95,97,99,100,102,104,105,107,108,110,112,113,115,116,118,120,121,123,125,126,128,129,131,133,134,136,138,139,1... |
; GAMEPLAY {{{
cm_main_goto_gameplay:
%cm_submenu("Gameplay", cm_submenu_gameplay)
cm_submenu_gameplay:
dw cm_gameplay_skip_triforce
dw cm_gameplay_sanctuary
dw cm_gameplay_disable_beams
dw cm_gameplay_lit_rooms
dw cm_gameplay_fast_moving_walls
dw cm_gameplay_quickswap
dw cm_gameplay_probes
dw cm_gameplay_bon... |
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args=""/>
<%docstring>
Invokes the syscall getpgrp. See 'man 2 getpgrp' for more information.
Arguments:
</%docstring>
${syscall('SYS_getpgrp')}
|
/*=============================================================================
Copyright (c) 2017 Paul Fultz II
test.hpp
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================... |
; A213194: First inverse function (numbers of rows) for pairing function A211377.
; 1,1,1,2,2,3,1,1,2,2,3,3,4,4,5,1,1,2,2,3,3,4,4,5,5,6,6,7,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11... |
/*
* aes_crypt.c
*
* Created on: 2013-7-17
* Author: zhouzhijie
*/
//#include "aes_crypt.h"
#include <string.h>
#include <stdlib.h>
#include <openssl/aes.h>
#include <time.h>
#define AES_KEY_LEN 16
#define AES_KEY_BITSET_LEN 128
int aes_cbc_encrypt_time_check(const unsigned char* pKey, unsigned int uiKeyL... |
#include"../localedef.h"
namespace fast_io_i18n
{
namespace
{
inline constexpr std::size_t numeric_grouping_storage[]{3};
inline constexpr lc_all lc_all_global{.identification={.name=tsc("az_AZ"),.encoding=tsc(FAST_IO_LOCALE_ENCODING),.title=tsc("Azeri language locale for Azerbaijan (latin)"),.source=tsc("fast_io")... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef msr_air_copter_sim_CommonStructs_hpp
#define msr_air_copter_sim_CommonStructs_hpp
#include "common/Common.hpp"
#include <ostream>
namespace msr { namespace airlib {
//velocity
struct Twist {
Vect... |
/*
* Copyright (C) 2018 The Android Open Source Project
*
* 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 app... |
; A155579: Recursive sequence (n+1)*a(n) = 3*(3*n-2)*a(n-1).
; Submitted by Christian Krause
; 2,3,12,63,378,2457,16848,120042,880308,6602310,50417640,390736710,3065780340,24307258410,194458067280,1567818167445,12726994535730,103937122041795,853378475711580,7040372424620535,58334514375427290,485237096850145185,40506748... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: trSmallGet.asm
AUTHOR: John Wedgwood, Feb 12, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date De... |
/*
* Copyright (c) 2012-2013 ARM Limited
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the... |
; A098610: a(n) = 10^n + (-1)^n.
; 2,9,101,999,10001,99999,1000001,9999999,100000001,999999999,10000000001,99999999999,1000000000001,9999999999999,100000000000001,999999999999999,10000000000000001,99999999999999999,1000000000000000001,9999999999999999999,100000000000000000001,999999999999999999999,100000000000000000000... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/api/storage/settings_storage_quota_enforcer.h"
#include "base/bind.h"
#include "base/json/json_writer.h"
#include... |
/****************************************************************************
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
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 th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.