text stringlengths 1 1.05M |
|---|
<%
from pwnlib.shellcraft.arm.linux import syscall
%>
<%page args="fd, request, vararg"/>
<%docstring>
Invokes the syscall ioctl. See 'man 2 ioctl' for more information.
Arguments:
fd(int): fd
request(unsigned): request
vararg(int): vararg
</%docstring>
${syscall('SYS_ioctl', fd, request, vararg... |
; A080063: n mod (spf(n)+1), where spf(n) is the smallest prime dividing n (A020639).
; 1,2,3,1,5,0,7,2,1,1,11,0,13,2,3,1,17,0,19,2,1,1,23,0,1,2,3,1,29,0,31,2,1,1,5,0,37,2,3,1,41,0,43,2,1,1,47,0,1,2,3,1,53,0,1,2,1,1,59,0,61,2,3,1,5,0,67,2,1,1,71,0,73,2,3,1,5,0,79,2,1,1,83,0,1,2,3,1,89,0,3,2,1,1,5,0
add $0,1
mov $1,$0
... |
SECTION rtlib
GLOBAL INTERRUPTREGPUSH
include "asmdef.h"
ORG P:
;
; Push ALL registers onto the stack EXCEPT for the following registers:
;
; PC => assumed to be global
; SR => assumed to be global or previously saved by interrupt mechanism
; IPR => assumed to ... |
Music_PokemonTower_Ch1::
tempo 152
volume 7, 7
duty 3
toggleperfectpitch
vibrato 12, 2, 3
notetype 12, 8, 0
rest 4
octave 4
B_ 12
Music_PokemonTower_branch_7f05a::
notetype 12, 11, 4
octave 4
G_ 1
rest 7
G_ 1
rest 7
octave 3
B_ 1
rest 7
B_ 1
rest 3
B_ 1
rest 3
B_ 1
rest 7
B_ 1
rest 7
B_ 1
r... |
// Demonstrates a problem where constant loophead unrolling results in an error
// The result is a NullPointerException
// The cause is that the Unroller does not handle the variable opcode correctly.
// The Unroller gets the verwions for opcode wrong because it misses the fact that it is modified inside call to popup_... |
; A331150: Triangle read by rows: T(n,k) (n>=k>=1) = f(n,n-k+1) where f(n,k) = floor((n/k)*ceiling(n/k)).
; Submitted by Jamie Morken(w4)
; 1,1,4,1,3,9,1,2,4,16,1,2,3,7,25,1,2,3,4,9,36,1,2,2,3,7,14,49,1,2,2,3,4,8,16,64,1,2,2,3,3,6,9,22,81,1,2,2,2,3,4,7,13,25,100,1,2,2,2,3,3,6,8,14,33,121,1,2,2,2,3,3,4,7,9,16,36,144,1,2... |
-- 7 Billion Humans --
-- 40: Printing Etiqutte 2 --
-- Size: 13/12 --
-- Speed: 61/65 --
mem1 = nearest printer
mem2 = set 0
mem3 = nearest wall
a:
if mem2 < 5:
mem2 = calc mem2 + 1
takefrom mem1
step mem3
b:
if c == something:
step nw,w,sw,n,s,ne,e,se
jump b
endif
write mem2
drop
jump a
endif
|
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: CommonUI/CSpec (common code for several specific ui's)
FILE: cspecGadget.asm
ROUTINES:
Name Description
---- -----------
GLB OLBuildGadget... |
;
; Put character to console
;
; fputc_cons(char c)
;
;
; $Id: fputc_cons.asm,v 1.5 2016/05/15 20:15:45 dom Exp $
;
SECTION code_clib
PUBLIC fputc_cons_native
.fputc_cons_native
ld hl,2
add hl,sp
ld a,(hl)
IF STANDARDESCAPECHARS
cp 10
ELSE
cp 13
ENDIF
jr nz,fputc_cons1
call $B833 ;txtoutput
IF STANDARDES... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC ___slong2fs_callee
EXTERN cm48_sdcciyp_slong2ds_callee
defc ___slong2fs_callee = cm48_sdcciyp_slong2ds_callee
|
; A192687: Male-female differences: a(n) = A005378(n) - A005379(n).
; 1,1,1,0,1,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,... |
#include <BWAPI.h>
#include <BWAPI/Client.h>
#include "StarterBot.h"
#include <iostream>
#include <thread>
#include <chrono>
void PlayGame();
int main(int argc, char * argv[])
{
size_t gameCount = 0;
// if we are not currently connected to BWAPI, try to reconnect
while (!BWAPI::BWAPIClient.connect())
... |
; A321220: a(n) = n+2 if n is even, otherwise a(n) = 2*n+1 if n is odd.
; 2,3,4,7,6,11,8,15,10,19,12,23,14,27,16,31,18,35,20,39,22,43,24,47,26,51,28,55,30,59,32,63,34,67,36,71,38,75,40,79,42,83,44,87,46,91,48,95,50,99,52,103,54,107,56,111,58,115,60,119,62,123,64,127,66,131,68,135,70,139,72,143,74,147,76,151,78,155,80,1... |
\ ******************************************************************
\ * EDGE GRINDER
\ ******************************************************************
_DOUBLE_BUFFER = TRUE
\ ******************************************************************
\ * OS defines
\ *******************************************************... |
// Copyright 2017 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 "components/digital_asset_links/digital_asset_links_handler.h"
#include <vector>
#include "base/bind.h"
#include "base/json/json_reader.h"
#inc... |
; Atari QDOS KBD interrupt routine 1988 Tony Tebby QJUMP
section kbd
xdef kbd_int
xdef kbd_mint
xref ioq_pbyt
include dev8_keys_sys
include dev8_keys_con
include dev8_keys_atari
include dev8_keys_qu
include dev8_smsq_kbd_keys
include dev8_smsq_smsq_base_keys
include dev8_mac_assert
regent reg d0... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
_CopycatsHouse1FText1::
text "My daughter is so"
line "self-centered."
cont "She only has a"
cont "few friends."
done
_CopycatsHouse1FText2::
text "My daughter likes"
line "to mimic people."
para "Her mimicry has"
line "earned her the"
cont "nickname COPYCAT"
cont "around here!"
done
_CopycatsHouse1FText... |
; Copyright (c) 2004 - 2011, 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. The full text of the license may be fou... |
bits 16
section .entry
; c start
extern _start
; sections
extern __bss_start
extern __end
global entry
entry:
cli
; setup segments
mov ax, 0
mov ss, ax
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
; setup stack at 0xFFF0
mov esp, 0xFFF0
mov ebp, esp
sti
; expect... |
#include "heads.h"//常规头文件
void input();
void translator();//使用map进行翻译
void select(string cutter,string information,int num_c,int num,int start);//递归筛选
vector<string> target,translated;
void input()
{
bool control[5] = {true}; //嵌套控制变量 由小到大依次控制向深层的嵌套
fstream operate;
bool space=false;
string cutter... |
SECTION code_fp_math16
PUBLIC _sinf16_fastcall
EXTERN sinf16
defc _sinf16_fastcall = sinf16
|
/****************************************************************************
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated d... |
; A131215: Numbers which are both 11-gonal and centered 11-gonal.
; Submitted by Christian Krause
; 1,606,241396,96075211,38237692791,15218505655816,6056927013322186,2410641732796574421,959429352726023297581,381850471743224475863026,151975528324450615370186976,60485878422659601692858553631,24073227636690197023142334158... |
; A215781: a(n) = ceiling(n*(sqrt(3)-1)).
; Submitted by Jamie Morken(s1)
; 0,1,2,3,3,4,5,6,6,7,8,9,9,10,11,11,12,13,14,14,15,16,17,17,18,19,20,20,21,22,22,23,24,25,25,26,27,28,28,29,30,31,31,32,33,33,34,35,36,36,37,38,39,39,40,41,41,42,43,44,44,45,46,47,47,48,49,50,50,51,52,52,53,54,55,55,56,57,58,58,59,60,61,61,62,63... |
// Initialize stack pointer to start at 256 (i.e. RAM[0] contains 256)
@256
D=A
@SP
M=D
// Push two numbers on the stack. 8 < 9 -> -1
@8
D=A
@SP
A=M
M=D
@SP
M=M+1
@9
D=A
@SP
A=M
M=D
@SP
M=M+1
// Less than check
@SP
M=M-1
A=M
D=M
@SP
M=M-1
A=M
D=M-D
@NOT_LT_0
D;JGE
(LT_0)
@SP
A=M
M=-1
@LT_END_0
0;JMP
(NOT_LT_0)
@SP
A... |
;*****************************************************************************
;* pixel.asm: x86 pixel metrics
;*****************************************************************************
;* Copyright (C) 2003-2012 x264 project
;*
;* Authors: Loren Merritt <lorenm@u.washington.edu>
;* Holger Lubitz <holger@l... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_SF|FLAG_ZF|FLAG_AF|FLAG_PF
;TEST_FILE_META_END
; IMUL64rri32
mov ebx, 0x20000
mov ecx, 0x34343434
;TEST_BEGIN_RECORDING
imul ebx, ecx, 0xbbbbb
;TEST_END_RECORDING
|
; A335025: Largest side lengths of almost-equilateral Heronian triangles.
; 5,15,53,195,725,2703,10085,37635,140453,524175,1956245,7300803,27246965,101687055,379501253,1416317955,5285770565,19726764303,73621286645,274758382275,1025412242453,3826890587535,14282150107685,53301709843203,198924689265125,742397047217295,277... |
; A158230: 256n^2+2n.
; 258,1028,2310,4104,6410,9228,12558,16400,20754,25620,30998,36888,43290,50204,57630,65568,74018,82980,92454,102440,112938,123948,135470,147504,160050,173108,186678,200760,215354,230460,246078,262208,278850,296004,313670,331848,350538,369740,389454,409680,430418,451668,473430,495704,518490,541788,... |
; A001354: Coordination sequence for hyperbolic tessellation 3^7 (from triangle group (2,3,7)).
; 1,7,21,56,147,385,1008,2639,6909,18088,47355,123977,324576,849751,2224677,5824280,15248163,39920209,104512464,273617183,716339085,1875400072,4909861131,12854183321,33652688832,88103883175,230658960693,603872998904,15809600... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>timerfd_settime(ufd, flags, utmr, otmr) -> str
Invokes the syscall timerfd_settime.
See 'man 2 timerfd_settime' for more information.
Arguments:
ufd(int): ufd
flags(int): flags
utmr(itimersp... |
Name: fzero_main_pal.asm
Type: file
Size: 46020
Last-Modified: '2000-11-08T02:03:14Z'
SHA-1: 78A7BF1B049BCF1FCC45AEC5F51AAAA84253968F
Description: null
|
; A021735: Decimal expansion of 1/731.
; Submitted by Jamie Morken(s1.)
; 0,0,1,3,6,7,9,8,9,0,5,6,0,8,7,5,5,1,2,9,9,5,8,9,6,0,3,2,8,3,1,7,3,7,3,4,6,1,0,1,2,3,1,1,9,0,1,5,0,4,7,8,7,9,6,1,6,9,6,3,0,6,4,2,9,5,4,8,5,6,3,6,1,1,4,9,1,1,0,8,0,7,1,1,3,5,4,3,0,9,1,6,5,5,2,6,6,7,5
add $0,1
mov $2,10
pow $2,$0
div $2,731
mov $0,... |
@256
D=A
@SP
M=D
@Sys.init$ret.0
D=A
@SP
AM=M+1
A=A-1
M=D
@LCL
D=M
@SP
AM=M+1
A=A-1
M=D
@ARG
D=M
@SP
AM=M+1
A=A-1
M=D
@THIS
D=M
@SP
AM=M+1
A=A-1
M=D
@THAT
D=M
@SP
AM=M+1
A=A-1
M=D
@5
D=A
@0
D=D+A
@SP
D=M-D
@ARG
M=D
@SP
D=M
@LCL
M=D
@Sys.init
0; JMP
(Sys.init$ret.0)
(Class2.set)
@ARG
A=M
D=M
@SP
AM=M+1
A=A-1
M=D
@SP
AM=... |
#include "config.hpp"
namespace aquarius
{
namespace input
{
class Tokenizer
{
protected:
int lineno;
istream& is;
string line;
istringstream iss;
bool nextLine()
{
while (true)
{
if (!is) return false;
lineno... |
/*
* (C) 2015-2016 Augustin Cavalier
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "NinjaGenerator.h"
#include "Phoenix.h"
#include "util/FSUtil.h"
#include "util/StringUtil.h"
#include "util/PrintUtil.h"
#include "util/OSUtil.h"
using std::string;
using std::vector;
NinjaGen... |
const_def
const PRINTER_STATUS_BLANK
const PRINTER_STATUS_CHECKING_LINK
const PRINTER_STATUS_TRANSMITTING
const PRINTER_STATUS_PRINTING
const PRINTER_ERROR_1
const PRINTER_ERROR_2
const PRINTER_ERROR_3
const PRINTER_ERROR_4
const PRINTER_ERROR_WRONG_DEVICE
INCLUDE "engine/printer/serial.asm"
PrintPokedexEnt... |
; A230038: Distance between n^2 and the smallest triangular number >= n^2.
; 0,2,1,5,3,0,6,2,10,5,15,9,2,14,6,20,11,1,17,6,24,12,32,19,5,27,12,36,20,3,29,11,39,20,0,30,9,41,19,53,30,6,42,17,55,29,2,42,14,56,27,71,41,10,56,24,72,39,5,55,20,72,36,90,53,15,71,32,90,50,9,69,27,89,46,2,66,21,87,41,109,62
mov $1,$0
add $0,2... |
;;; boot/cpu_check.asm
;;;
;;; Copyright © 2015 Simon Evans. All rights reserved.
;;;
;;; Check the CPU is sufficient for 64bit long mode
FEATURE_BIT_LONG_MODE EQU 1 << 29
;;; Returns carry set if cpu not good enough
cpu_check:
;; check CPUID supported by seeing if ID bit in EFLAGS can be toggled
... |
; Original address was $B91C
; 7-6
.word $0000 ; Alternate level layout
.word $0000 ; Alternate object layout
.byte LEVEL1_SIZE_01 | LEVEL1_YSTART_170
.byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18
.byte LEVEL3_TILESET_00 | LEVEL3_VSCROLL_LOCKLOW
.byte LEVEL4_BGBANK_INDEX(0) | LEVEL4_INITACT_NOTHING
... |
; A197272: a(n) = 6/((4*n+1)*(4*n+2))*binomial(5*n,n).
; Submitted by Christian Krause
; 3,1,3,15,95,690,5481,46376,411255,3781635,35791910,346821930,3427001253,34425730640,350732771160,3617153918640,37703805776935,396716804816265,4209161209968825,44993046668984145,484176486362971710
mov $2,$0
mul $0,4
add $2,1
sub $1... |
/*=============================================================================
Copyright (c) 2009 Hartmut Kaiser
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)
=========================================... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xcae4, %rbp
nop
nop
nop
dec %r10
movups (%rbp), %xmm2
vpextrq $1, %xmm2, %rdi
nop
nop
nop
nop
nop
add %rdx, %rdx
lea addresses_normal_ht+0x106b4, %rax
nop
nop
nop
n... |
%ifidn __OUTPUT_FORMAT__,obj
section code use32 class=code align=64
%elifidn __OUTPUT_FORMAT__,win32
%ifndef __YASM_VER__
$@feat.00 equ 1
%endif
section .text code align=64
%else
section .text code
%endif
extern _DES_SPtrans
global _fcrypt_body
align 16
_fcrypt_body:
L$_fcrypt_body_begin:
push ebp
push ebx
push esi
... |
; CALLER linkage for function pointers
PUBLIC freopen
EXTERN freopen_callee
EXTERN ASMDISP_FREOPEN_CALLEE
.freopen
pop af
pop bc
pop de
pop hl
push hl
push de
push bc
push af
jp freopen_callee + ASMDISP_FREOPEN_CALLEE
|
; auto-generated by gen-masm.sh
.CODE
DCThunk_size = 24
DCArgs_size_win64 = 80
DCArgs_size_sysv = 128
DCValue_size = 8
FRAME_arg0_win64 = 48
FRAME_arg0_sysv = 16
FRAME_return = 8
FRAME_parent = 0
FRAME_DCArgs_sysv = -128
FRAME_DCValue_sysv = -136
FRAME_DCArgs_win64 = -80
FRAME_DCValue_win64 = -80
CTX_thun... |
;
; Metasploit Framework
; http://www.metasploit.com
;
; Source for bind_tcp (stager)
;
; Authors: hdm <hdm@metasploit.com>, vlad902 <vlad902@gmail.com>
; Size : 287
;
cld
push byte -0x15
inc edi
call 0x2
pusha
xor ebx,ebx
mov edi,[ebp+0x3c]
mov edi,[ebp+edi+0x78]
add edi,ebp
mov edx,[edi+0x20]
add edx,ebp
mov esi,[... |
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
///
// Parameters:
//
// Texture2D linearSampler+field;
//
//
// Registers:
//
// Name Reg Size
// ------------------- ----- ----
// linearSampler+field s0 1
//
ps_3_0
def c0, 0.100000001, 2, 0, 0
dcl_te... |
; Studio IV Interpreter final by Joe Weisbecker
; disassembled in Emma 02 from Weisbecker Collection cassette
; tape S.572.21B_Studio_IV_Interpreter_final_1_of_1.wav
; The Sarnoff Collection, The College of New Jersey
; Extracted by Andy Modla 2/22/2018
; Comments by Marcel van Tongeren
; Memory Map:
; 0000 - 07FF ... |
; uint kbd_lookup(uchar c)
; 09.2005 aralbrec
XLIB kbd_lookup
LIB kbd_transtbl
; Given the ascii code of a character, returns the scan row and mask
; corresponding to the key that needs to be pressed to generate the
; character. Eg: Calling kbd_lookup with character 'a' will return
; '$fd' for key row and '$01' for... |
; void z80_outp(uint16_t port, uint8_t data)
SECTION code_clib
SECTION code_z80
PUBLIC z80_outp_callee
EXTERN asm_z80_outp
z80_outp_callee:
pop af
pop hl
pop bc
push af
jp asm_z80_outp
|
; A158764: 38*(38*n^2-1).
; Submitted by Christian Krause
; 1406,5738,12958,23066,36062,51946,70718,92378,116926,144362,174686,207898,243998,282986,324862,369626,417278,467818,521246,577562,636766,698858,763838,831706,902462,976106,1052638,1132058,1214366,1299562,1387646,1478618,1572478,1669226,1768862,1871386,1976798,... |
; A056576: Highest k with 2^k <= 3^n.
; 0,1,3,4,6,7,9,11,12,14,15,17,19,20,22,23,25,26,28,30,31,33,34,36,38,39,41,42,44,45,47,49,50,52,53,55,57,58,60,61,63,64,66,68,69,71,72,74,76,77,79,80,82,84,85,87,88,90,91,93,95,96,98,99,101,103,104,106,107,109,110,112,114,115,117,118,120,122,123,125,126,128,129,131,133,134,136,137... |
;;
;; Copyright (c) 2020-2021, Intel Corporation
;;
;; 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... |
; A223134: Number of distinct sums i+j+k with i,j,k >= 0, i*j*k <= n.
; 1,4,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
mul $0,2
mov $1,$0
cmp $0,2
add $1,$0
add $1,1
|
; A199484: (8*7^n+1)/3.
; 3,19,131,915,6403,44819,313731,2196115,15372803,107609619,753267331,5272871315,36910099203,258370694419,1808594860931,12660164026515,88621148185603,620348037299219,4342436261094531,30397053827661715,212779376793632003,1489455637555424019,10426189462887968131,72983326240215776915,51088328368151... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r15
push %r8
push %r9
push %rax
push %rbx
push %rdx
push %rsi
// Store
lea addresses_normal+0x4061, %r15
nop
xor $19302, %rax
movl $0x51525354, (%r15)
nop
nop
nop
nop
cmp $64385, %rbx
// Store
lea addresses_D+0x1262e, %r8... |
; A193390: The hyper-Wiener index of a benzenoid consisting of a straight-line chain of n hexagons (s=2; see the Gutman et al. reference).
; 42,215,680,1661,3446,6387,10900,17465,26626,38991,55232,76085,102350,134891,174636,222577,279770,347335,426456,518381,624422,745955,884420,1041321,1218226,1416767,1638640,1885605,... |
test_device():
sub rsp, 24
call rand
mov rdx, QWORD PTR [rsp]
shr rdx, 12
xor eax, edx
and eax, 63
sal eax, 12
mov edx, eax
mov eax, DWORD PTR [rsp]
and eax, -258049
or eax, edx
mo... |
;Lines beginning with a semicolon (like this one) are Comments, and not part of the game. Information in such lines represent pieces which existed in vanilla, but have been
;removed or replaced by this hack.
;When counting lines, note that there are 14 blank lines
TypeEffects:
; attacker, defender, *=
db SO... |
; A088841: Numerator of quotient=sigma[7n]/sigma[n].
; 8,8,8,8,8,8,57,8,8,8,8,8,8,57,8,8,8,8,8,8,57,8,8,8,8,8,8,57,8,8,8,8,8,8,57,8,8,8,8,8,8,57,8,8,8,8,8,8,400,8,8,8,8,8,8,57,8,8,8,8,8,8,57,8,8,8,8,8,8,57,8,8,8,8,8,8,57,8,8,8,8,8,8,57,8,8,8,8,8,8,57,8,8,8,8,8,8
add $0,1
gcd $0,49
div $0,6
mul $0,49
add $0,8
|
/*
Copyright (c) 2012, SMB Phone 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 conditions and the ... |
; $Id: bit_open.asm,v 1.5 2016/06/16 20:23:51 dom Exp $
;
; TRS-80 1 bit sound functions
;
; void bit_open();
;
; Stefano Bodrato - 8/4/2008
;
SECTION code_clib
PUBLIC bit_open
PUBLIC _bit_open
EXTERN __snd_tick
.bit_open
._bit_open
;-----
; Stefano Bodrato - digiboost fix for new SID, ver... |
/*****************************************************************************
UserInputVoid.cpp
Author: Laurent de Soras, 2016
--- Legal stuff ---
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under t... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r13
push %r15
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1afdf, %r10
clflush (%r10)
sub %r12, %r12
mov (%r10), %rsi
nop
nop
xor $20362, %r11
lea addresses_WT_ht+0x1eddf, %r8
nop
nop
nop
xor %r12, %r12
mov (%r8), %r13w
nop... |
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args="old, new"/>
<%docstring>
Invokes the syscall rename. See 'man 2 rename' for more information.
Arguments:
old(char): old
new(char): new
</%docstring>
${syscall('SYS_rename', old, new)}
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x73a2, %r9
nop
nop
and %rdx, %rdx
mov $0x6162636465666768, %rsi
movq %rsi, (%r9)
nop
nop
nop
nop
nop
cmp %rbp, %rbp
lea addresses_WC_ht+0xbcd2, %rdi
and %rdx, %rdx
mov (%rdi), %esi
nop
n... |
0x0000 (0x000000) 0x7009- f:00070 d: 9 | P = P + 9 (0x0009)
0x0001 (0x000002) 0x001B- f:00000 d: 27 | PASS | **** non-standard encoding with D:0x001B ****
0x0002 (0x000004) 0x0057- f:00000 d: 87 | PASS | **** non-standard encoding wit... |
; A036505: Numerator of (n+1)^n/n!.
; Submitted by Christian Krause
; 1,2,9,32,625,324,117649,131072,4782969,1562500,25937424601,35831808,23298085122481,110730297608,4805419921875,562949953421312,48661191875666868481,91507169819844,104127350297911241532841,640000000000000000,865405750887126927009,5381999959460480073608... |
template <typename T>
struct PtrSetEntry {
T ptr;
MapIndex next;
};
template <typename T>
struct PtrSet {
Slice<MapIndex> hashes;
Array<PtrSetEntry<T>> entries;
};
template <typename T> void ptr_set_init (PtrSet<T> *s, gbAllocator a, isize capacity = 16);
template <typename T> void ptr_set_destroy(Ptr... |
.MODEL SMALL
.STACK 100H
.DATA
PROMPT_1 DB "Digits: $ "
PROMPT_2 DB 0DH,0AH, "SUM: $"
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
LEA DX,PROMPT_1
MOV AH,9
INT 21H
MOV CX,10
MOV AH,2
MOV DL,48
@LOOP:
INT 21H
ADD AL,DL
INC DL
DEC CX
... |
.include "m16def.inc"
start:
ldi r24 , low(RAMEND) ;Initializing stack pointer.
out SPL , r24
ldi r24 , high(RAMEND)
out SPH , r24
ser r24 ;Setting PORTA for output.
out DDRA , r24
clr r26
out DDRB,r26 ;Setting PORTB for input.
ldi r27,0x01 ;Register r27 represents the moving ... |
#!/usr/local/bin/zasm -o original/
;******************************************************************************
;
; Small monitor for the Z80 single board computer consisting of 32 kB ROM
; ($0000 to $ffff), 32 kB RAM ($8000 to $ffff) and a 16c550 UART.
;
; B. Ulmann, 28-SEP-2011, 29-SEP-2011, 01-OCT-2011, 02-OCT-... |
; A025577: Expansion of (x/(1-x))*sqrt((1+x)/(1-3*x)).
; Submitted by Christian Krause
; 1,3,7,17,43,113,305,839,2339,6585,18677,53283,152725,439455,1268623,3672457,10656691,30988249,90275989,263425651,769801873,2252531971,6599018227,19353381877,56814946381,166940119063,490930181515,1444813563869,4255124073979,12540040... |
; A329379: a(n) = n/A093411(n), where A093411(n) is obtained by repeatedly dividing n by the largest factorial that divides it until an odd number is reached.
; 1,2,1,4,1,6,1,8,1,2,1,12,1,2,1,16,1,6,1,4,1,2,1,24,1,2,1,4,1,6,1,32,1,2,1,36,1,2,1,8,1,6,1,4,1,2,1,48,1,2,1,4,1,6,1,8,1,2,1,12,1,2,1,64,1,6,1,4,1,2,1,24,1,2,1,... |
; A081609: Number of numbers <= n having at least one 1 in their ternary representation.
; 0,1,1,2,3,4,4,5,5,6,7,8,9,10,11,12,13,14,14,15,15,16,17,18,18,19,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,46,47,47,48,49,50,50,51,51,52,53,54,55,56,57,58,59,60,60,61
mov $18,$0
mov $20,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1c887, %rsi
lea addresses_A_ht+0xd667, %rdi
nop
nop
xor %r9, %r9
mov $62, %rcx
rep movsq
nop
nop
nop
lfence
lea addresses_UC_ht+0xff97, %r14
nop
nop
xor %r11, %r11
mov (%r14), %si
nop
... |
.386p
Kernel Segment public para use32
assume cs:Kernel
;useless function
__initV86Tss proc
push ecx
push edx
push ebx
push esi
push edi
mov ebx,KernelData
shl ebx,4
mov ecx,SYSTEM_TSS_SIZE
mov edi,V86_TSS_BASE
mov al,0
cld
rep stosb
pushfd
pop eax
or eax,23200h
mov dword ptr ds:[V86_TSS_... |
; A097454: a(n) = (number of nonprimes <= n) - (number of primes <= n).
; 1,0,-1,0,-1,0,-1,0,1,2,1,2,1,2,3,4,3,4,3,4,5,6,5,6,7,8,9,10,9,10,9,10,11,12,13,14,13,14,15,16,15,16,15,16,17,18,17,18,19,20,21,22,21,22,23,24,25,26,25,26,25,26,27,28,29,30,29,30,31,32,31,32,31,32,33,34,35,36,35,36,37,38,37,38,39,40,41,42,41,42,43... |
; Copyright (c) 2004, Intel Corporation
; All rights reserved. This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution... |
// | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: Jordi Cotela
//
// System inc... |
HealParty:
; Restore HP and PP.
ld hl, wPartySpecies
ld de, wPartyMon1HP
.healmon
ld a, [hli]
cp $ff
jr z, .done
push hl
push de
ld hl, wPartyMon1Status - wPartyMon1HP
add hl, de
xor a
ld [hl], a
push de
ld b, NUM_MOVES ; A Pokémon has 4 moves
.pp
ld hl, wPartyMon1Moves - wPartyMon1HP
add hl, de
ld... |
; A128422: Projective plane crossing number of K_{4,n}.
; Submitted by Christian Krause
; 0,0,0,2,4,6,10,14,18,24,30,36,44,52,60,70,80,90,102,114,126,140,154,168,184,200,216,234,252,270,290,310,330,352,374,396,420,444,468,494,520,546,574,602,630,660,690,720,752,784,816,850,884,918,954,990,1026
bin $0,2
div $0,3
mul $0... |
; A124780: a(n) = gcd(A(n), A(n+2)) where A(n) = A000522(n) = Sum_{k=0..n} n!/k!.
; Submitted by Jamie Morken(w3)
; 1,2,5,2,1,2,1,10,1,2,13,2,5,2,1,2,1,10,1,2,1,2,5,26,1,2,1,10,1,2,1,2,5,2,37,2,13,10,1,2,1,2,5,2,1,2,1,10,1,26,1,2,5,2,1,2,1,10,1,2,1,2,65,2,1,2,1,10,1,2,1,74,5,2,1,26,1,10,1,2,1,2,5,2,1,2,1,10,13,2,1,2,5,... |
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
mov rax, qword [rbx]
call CCNode::getRotation
cvttss2si r14d, xmm0
mov rax, qword [rbx]
mov rdi, rbx
call GameObject::isFlip
movsxd rcx, r14d
imu... |
;;
;; Copyright (c) 2020, Intel Corporation
;;
;; 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 ... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Item (Sample PC GEOS application)
FILE: init.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 6/1/92 Initial version
... |
; A117904: Number triangle [k<=n]*0^abs(L(C(n,2)/3)-L(C(k,2)/3)) where L(j/p) is the Legendre symbol of j and p.
; 1,1,1,0,0,1,1,1,0,1,1,1,0,1,1,0,0,1,0,0,1,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,0,0,1,0,0,1,0,0,1,1,1,0,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,0,1,1,0,0,1,0,0,1,0,0,1,0,0,1,1,1,0,1,1,0,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,0
lpb ... |
; A022846: Nearest integer to n*sqrt(2).
; 0,1,3,4,6,7,8,10,11,13,14,16,17,18,20,21,23,24,25,27,28,30,31,33,34,35,37,38,40,41,42,44,45,47,48,49,51,52,54,55,57,58,59,61,62,64,65,66,68,69,71,72,74,75,76,78,79,81,82,83,85,86,88,89,91,92,93,95,96,98,99,100,102,103,105,106,107,109,110,112,113,115,116,117,119,120,122,123,124... |
; int bv_priority_queue_pop(bv_priority_queue_t *q)
SECTION code_adt_bv_priority_queue
PUBLIC bv_priority_queue_pop
defc bv_priority_queue_pop = asm_bv_priority_queue_pop
INCLUDE "adt/bv_priority_queue/z80/asm_bv_priority_queue_pop.asm"
|
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
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 a... |
; A277987: a(n) = 100*n - 28.
; -28,72,172,272,372,472,572,672,772,872,972,1072,1172,1272,1372,1472,1572,1672,1772,1872,1972,2072,2172,2272,2372,2472,2572,2672,2772,2872,2972,3072,3172,3272,3372,3472,3572,3672,3772,3872,3972
sub $0,1
mul $0,100
add $0,72
|
;------------------------------------------------------------------------------
;
; 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. Th... |
/*
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the terms of... |
; A046191: Indices of hexagonal numbers which are also octagonal.
; Submitted by Jon Maiga
; 1,77,7521,736957,72214241,7076258637,693401132161,67946234693117,6658037598793281,652419738447048397,63930476330211949601,6264534260622324012477,613860427064657541273121,60152057318075816720753357,5894287756744365381092555841,5... |
/* crypto/mdc2/mdc2dgst.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and n... |
; A314253: Coordination sequence Gal.6.627.1 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,5,11,17,23,29,35,41,47,53,59,64,69,75,81,87,93,99,105,111,117,123,128,133,139,145,151,157,163,169,175,181,187,192,197,203,209,215,221,227,... |
// 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... |
; A052704: Apart from the leading term, a(n) = Catalan(n-1)*4^(n-1).
; Submitted by Jon Maiga
; 0,1,4,32,320,3584,43008,540672,7028736,93716480,1274544128,17611882496,246566354944,3489862254592,49855175065600,717914520944640,10409760553697280,151860036312760320,2227280532587151360,32823081532863283200,48578160668637659... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.