text stringlengths 1 1.05M |
|---|
<%
from pwnlib.shellcraft.i386.linux import syscall
%>
<%page args="fd, addr, length"/>
<%docstring>
Invokes the syscall bind. See 'man 2 bind' for more information.
Arguments:
fd(int): fd
addr(CONST_SOCKADDR_ARG): addr
len(socklen_t): len
</%docstring>
${syscall('SYS_bind', fd, addr, length)}
|
; A046820: Number of 1's in binary expansion of 5n.
; 0,2,2,4,2,3,4,3,2,4,3,5,4,2,3,4,2,4,4,6,3,4,5,5,4,6,2,4,3,3,4,5,2,4,4,6,4,5,6,4,3,5,4,6,5,4,5,6,4,6,6,8,2,3,4,4,3,5,3,5,4,4,5,6,2,4,4,6,4,5,6,5,4,6,5,7,6,3,4,5,3,5,5,7,4,5,6,6,5,7,4,6,5,5,6,7,4,6,6,8,6,7,8,3,2,4,3,5,4,3,4,5,3,5,5,7,3,4,5,5,4,6,4,6,5,5,6,7,2,4,4,6,4,... |
; A245872: Number of length 3+2 0..n arrays with some pair in every consecutive three terms totalling exactly n.
; 16,103,256,549,960,1579,2368,3433,4720,6351,8256,10573,13216,16339,19840,23889,28368,33463,39040,45301,52096,59643,67776,76729,86320,96799,107968,120093,132960,146851,161536,177313,193936,211719,230400,250... |
; A047530: Numbers that are congruent to {0, 1, 3, 7} mod 8.
; 0,1,3,7,8,9,11,15,16,17,19,23,24,25,27,31,32,33,35,39,40,41,43,47,48,49,51,55,56,57,59,63,64,65,67,71,72,73,75,79,80,81,83,87,88,89,91,95,96,97,99,103,104,105,107,111,112,113,115,119,120,121,123
mov $1,$0
add $0,1
mov $2,$0
sub $0,1
add $1,$2
sub $0,$1
lpb... |
10 ORG 100H
20 JP MAIN
30GPF EQU 0BFD0H
40MAIN: LD HL,L0
50 LD B,48
60 LD DE,0
70 CALL GPF
80 LD HL,L1
90 LD B,48
100 LD DE,0100H
110 CALL GPF
120 LD HL,L2
130 LD B,48
140 LD DE,0200H
150 CALL GPF
160 LD HL,L3
170 LD B,48
180 LD DE,0300H
190 CALL GPF
200 LD HL,L4
210 LD B,48
220 LD DE,0400H
230 CALL GPF
240 LD HL,L5
25... |
// Copyright (c) 2011-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <qt/sendcoinsdialog.h>
#include <qt/forms/ui_s... |
C nettle, low-level cryptographics library
C
C Copyright (C) 2010, Niels Möller
C
C The nettle library is free software; you can redistribute it and/or modify
C it under the terms of the GNU Lesser General Public License as published by
C the Free Software Foundation; either version 2.1 of the License, or (at your
C... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x18354, %r9
nop
nop
nop
xor $61648, %rsi
mov (%r9), %di
nop
nop
nop
nop
nop
and $14373, %rsi
lea addresses_D_ht+0x1bc95, %rax
sub %r13, %r13
movl $0x61626364, (%rax)
nop
n... |
; A087635: a(n)=S(n,3) where S(n,m)=sum(k=0,n,binomial(n,k)*fibonacci(m*k)).
; 0,2,12,64,336,1760,9216,48256,252672,1323008,6927360,36272128,189923328,994451456,5207015424,27264286720,142757658624,747488804864,3913902194688,20493457948672,107305138913280,561857001684992
mov $1,8
lpb $0
sub $0,1
sub $1,1
mul $2,2... |
*****************************************************************************
; Name : Template.s
; Coded by : Antiriad (Jonathan Bennett <jon@autoitscript.com)
; Description : Template routine.
; Date last edited : 04/02/2020
****************************************************************************... |
; A242493: a(n) is the number of not-sqrt-smooth numbers ("jagged" numbers) not exceeding n. This is the counting function of A064052.
; 0,1,2,2,3,4,5,5,5,6,7,7,8,9,10,10,11,11,12,13,14,15,16,16,16,17,17,18,19,19,20,20,21,22,23,23,24,25,26,26,27,28,29,30,30,31,32,32,32,32,33,34,35,35,36,36,37,38,39,39,40,41,41,41,42,43... |
.model flat
@PushAllRegisters MACRO
push eax
push ebx
push ecx
push edx
ENDM
@PopAllRegisters MACRO
pop edx
pop ecx
pop ebx
pop eax
ENDM
@FunctionBody MACRO index
_HookFunctionASM&index proc
@Pus... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The SPLASHFARMS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-lice... |
; A091544: First column sequence of array A091746 ((6,2)-Stirling2).
; 1,30,2700,491400,150368400,69470200800,45155630520000,39285398552400000,44078217175792800000,61973973349164676800000,106719182107261573449600000,220908706962031457040672000000
mul $0,4
add $0,1
mov $1,2
lpb $0
mul $1,$0
add $0,1
mul $1,$0
t... |
; double pow(double x, double y)
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sccz80_pow
EXTERN am48_pow, cm48_sccz80p_dread2
cm48_sccz80_pow:
call cm48_sccz80p_dread2
; AC'= y
; AC = x
exx
jp am48_pow
|
%include "doesnotexist.inc"
|
WordID_1044_Entry: ; *** ! ***
pop ix
pop hl
ex de,hl
ld (hl),e
inc hl
ld (hl),d
pop de
jp (ix)
WordID_1044_Exit:
WordID_1026_Entry: ; *** * ***
pop ix
pop bc ; BC,DE mult values
ld hl,0 ; Result
__Mult0:bit 0,c ; check LSB BC
jr z,__Mult1
add hl,de ; if n... |
;
; feilipu, 2019 May
;
; This Source Code Form is subject to the terms of the Mozilla Public
; License, v. 2.0. If a copy of the MPL was not distributed with this
; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;
;------------------------------------------------------------------------------
;
; REPLICA... |
; ===============================================================
; Mar 2014
; ===============================================================
;
; size_t wv_stack_max_size(wv_stack_t *s)
;
; Return maximum size of the stack in words.
;
; ===============================================================
SECTION code_ad... |
; A098231: 2^p - 11 for p prime.
; -7,-3,21,117,2037,8181,131061,524277,8388597,536870901,2147483637,137438953461,2199023255541,8796093022197,140737488355317,9007199254740981,576460752303423477,2305843009213693941,147573952589676412917,2361183241434822606837,9444732965739290427381,604462909807314587353077,9671406556917... |
.text
.globl main
main:
addi $s0, $0, 4 # $s0 = 4
addi $s1, $0, 1 # $s1 = 1
j target # jump to target
addi $s1, $s1, 1 # not executed
sub $s1, $s1, $s0 # not executed
target:
add $s1, $s1, $s0 # $s1 = 1 + 4 = 5
|
;
; TRS-80 (EG2000+HT1080) specific routines
; by Stefano Bodrato, Fall 2015
;
; int set_psg(int reg, int val);
;
; Play a sound by PSG
;
;
; $Id: set_psg.asm,v 1.1 2015/10/28 07:21:45 stefano Exp $
;
PUBLIC set_psg
EXTERN set_psg_callee
EXTERN ASMDISP_SET_PSG_CALLEE
set_psg:
pop bc
pop de
pop hl
push hl... |
; stdio_out_lo
; 05.2008 aralbrec
XLIB stdio_out_lo
LIB stdio_longnumprec, stdio_outcommon, stdio_nextarg
INCLUDE "../../stdio.def"
; output %lo parameter, handles both 16-bit %o and 32-bit %lo
;
; enter : ix = FILE *
; a = precision (default 1)
; b = width (default 0)
; ... |
object_const_def ; object_event constants
const ROUTE2NUGGETHOUSE_FISHER
Route2NuggetHouse_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
Route2NuggetHouseFisherScript:
faceplayer
opentext
checkevent EVENT_GOT_NUGGET_FROM_GUY
iftrue .GotNugget
writetext Route2NuggetHouseFisherText
buttonsound
verbosegi... |
MoveNames::
db "POUND@"
db "KARATE CHOP@"
db "DOUBLESLAP@"
db "COMET PUNCH@"
db "MEGA PUNCH@"
db "PAY DAY@"
db "FIRE PUNCH@"
db "ICE PUNCH@"
db "THUNDERPUNCH@"
db "SCRATCH@"
db "VICEGRIP@"
db "GUILLOTINE@"
db "RAZOR WIND@"
db "SWORDS DANCE@"
db "CUT@"
db "GUST@"
db "WING ATTACK@"
db "ROOST@";WHIRLWIND... |
; A253942: a(n) = 3*binomial(n+1, 5).
; 3,18,63,168,378,756,1386,2376,3861,6006,9009,13104,18564,25704,34884,46512,61047,79002,100947,127512,159390,197340,242190,294840,356265,427518,509733,604128,712008,834768,973896,1130976,1307691,1505826,1727271,1974024,2248194,2552004,2887794,3258024,3665277,4112262,4601817,513691... |
// Copyright © 2017-2019 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "TWTestUtilities.h"
#include "Zcash/TAddress.h"
... |
; A017188: a(n) = (9*n + 2)^4.
; 16,14641,160000,707281,2085136,4879681,9834496,17850625,29986576,47458321,71639296,104060401,146410000,200533921,268435456,352275361,454371856,577200625,723394816,895745041,1097199376,1330863361,1600000000,1908029761,2258530576,2655237841,3102044416,3603000625,4162314256,4784350561,5473... |
; A296180: Triangle read by rows: T(n, k) = 3*(n - k)*k + 1, n >= 0, 0 <= k <= n.
; 1,1,1,1,4,1,1,7,7,1,1,10,13,10,1,1,13,19,19,13,1,1,16,25,28,25,16,1,1,19,31,37,37,31,19,1,1,22,37,46,49,46,37,22,1,1,25,43,55,61,61,55,43,25,1,1,28,49,64,73,76,73,64,49,28,1
lpb $0
add $1,$2
trn $1,$0
mul $1,$0
add $2,1
trn $... |
;
; Copyright (c) 2016, Alliance for Open Media. All rights reserved
;
; This source code is subject to the terms of the BSD 2 Clause License and
; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
; was not distributed with this source code in the LICENSE file, you can
; obtain it at https://... |
SECTION code_fp_dai32
PUBLIC ___dai32_xexp
EXTERN xexp
defc ___dai32_xexp = xexp
|
; A279019: Least possible number of diagonals of simple convex polyhedron with n faces.
; 0,0,2,6,12,20,30,42,56,72,90,110,132,156,182,210,240,272,306,342,380,420,462,506,552,600,650,702,756,812,870,930,992,1056,1122,1190,1260,1332,1406,1482,1560,1640,1722,1806,1892,1980,2070,2162,2256,2352,2450,2550,2652,2756,2862,297... |
; A266613: Decimal representation of the middle column of the "Rule 41" elementary cellular automaton starting with a single ON (black) cell.
; 1,2,5,10,20,41,82,165,330,661,1322,2645,5290,10581,21162,42325,84650,169301,338602,677205,1354410,2708821,5417642,10835285,21670570,43341141,86682282,173364565,346729130,693458... |
#include <bits/stdc++.h>
#define N 200020
#define M 4000020
#define ll long long
using namespace std;
inline int read(){
int x=0,f=1;char ch=getchar();
while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar());
while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return f?x:-x;
}
int a[N], b[N], cnt = 1;
struc... |
; Scrolly FX
.fx_scrolly_ptr SKIP 2
.fx_scrolly_delay SKIP 1
|
copyright zengfr site:http://github.com/zengfr/romhack
009ACA dbra D5, $9ac8
038AF0 bsr $3a900 [enemy+82]
03A4B4 bsr $3a8ba [enemy+82]
03A7A4 move.b D3, ($88,A6) [enemy+82]
copyright zengfr site:http://github.com/zengfr/romhack
|
#include <xtd/xtd>
using namespace xtd;
int main() {
console::background_color(console_color::dark_blue);
console::write_line(" ");
console::background_color(console_color::blue);
console::write_line(" ");
console::write_line();
console::background_color(console_color... |
#include <iostream>
#include <string>
#include <fstream>
#include <cppassist/logging/logging.h>
#include <glkernel/glkernel-version.h>
#include <cppassist/cmdline/ArgumentParser.h>
#include <cppassist/cmdline/CommandLineProgram.h>
#include <cppassist/cmdline/CommandLineAction.h>
#include <cppassist/cmdline/CommandLi... |
; A205959: a(n) = n^omega(n)/rad(n).
; Submitted by Christian Krause
; 1,1,1,2,1,6,1,4,3,10,1,24,1,14,15,8,1,54,1,40,21,22,1,96,5,26,9,56,1,900,1,16,33,34,35,216,1,38,39,160,1,1764,1,88,135,46,1,384,7,250,51,104,1,486,55,224,57,58,1,7200,1,62,189,32,65,4356,1,136,69,4900,1,864,1,74,375,152,77,6084,1,640,27,82,1,14112,8... |
; A123110: Triangle T(n,k), 0 <= k <= n, read by rows given by [0,1,0,0,0,0,0,0,0,0,...] DELTA [1,0,-1,1,0,0,0,0,0,0,...] where DELTA is the operator defined in A084938.
; 1,0,1,0,1,1,0,1,1,1,0,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0x4141414180000000",
"RDX": "0x41414141FFFFFFFF",
"RBX": "0xFFFFFFFF41424344",
"RCX": "0xFFFFFFFF51525354",
"R13": "0x5152535441424344",
"R14": "0x1"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov r15, 0xe0000000
mov rax, 0xFFFFFFFF8... |
SECTION code_l
PUBLIC l_ret
; function present in some rom crts
; if number of pops changes, check crts
pop hl
l_ret:
; Do-nothing function used as a stub by some library functions
ret
|
/*
* Copyright 2021-2022 Niket Naidu. 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 a... |
; A036146: a(n) = 2^n mod 139.
; Submitted by Jamie Morken(m3)
; 1,2,4,8,16,32,64,128,117,95,51,102,65,130,121,103,67,134,129,119,99,59,118,97,55,110,81,23,46,92,45,90,41,82,25,50,100,61,122,105,71,3,6,12,24,48,96,53,106,73,7,14,28,56,112,85,31,62,124,109,79,19,38,76,13,26,52,104,69,138,137,135,131,123,107,75,11,22,44,... |
; A055843: Expansion of (1+3*x)/(1-x)^10.
; 1,13,85,385,1375,4147,11011,26455,58630,121550,238238,445094,797810,1379210,2309450,3759074,5965487,9253475,14060475,20967375,30735705,44352165,63081525,88529025,122713500,168152556,227961228,305965660,406833460,536222500,700950052,909184276,1170660205,1496922505,1901597425,2... |
/*
* 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... |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
print:
mov rax, 1
mov rdx, rsi
mov rsi, rdi
mov rdi, 1
syscall
ret
|
/* -----------------------------------------------------------
Base class for the equation of state.
It allows to use Wittmann-Mihalas or Piskunov's EOS cleanly.
Written by J. de la Cruz Rodriguez (ISP-SU, 2017)
----------------------------------------------------------*/
#include <cmath>
#inc... |
; ===========================================================================
; FM Universial Voice Bank
; ===========================================================================
SourceSMPS2ASM set 0
SourceDriver set 3
; Synth Bass 2
; Voice $00
; $3C
; $01, $00, $00, $00, $1F, $1F, $15, $1F, $11, $0D, $12, $05... |
; A132792: The infinitesimal Lah matrix: generator of unsigned A111596.
; Submitted by Christian Krause
; 0,0,0,0,2,0,0,0,6,0,0,0,0,12,0,0,0,0,0,20,0,0,0,0,0,0,30,0,0,0,0,0,0,0,42,0,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,90,0,0,0,0,0,0,0,0,0,0,0,110,0
mov $2,$0
lpb $0
mov $0,$2
add $1,1
add $3... |
; A223249: Two-loop graph coloring a rectangular array: number of n X 2 0..4 arrays where 0..4 label nodes of a graph with edges 0,1 1,2 2,0 0,3 3,4 4,0 and every array movement to a horizontal or vertical neighbor moves along an edge of this graph.
; 12,52,236,1076,4908,22388,102124,465844,2124972,9693172,44215916,201... |
<%
from pwnlib.shellcraft import i386, registers
from pwnlib.util.misc import force_bytes
from pwnlib.abi import linux_i386_syscall as abi
%>
<%docstring>
Execute a different process.
Attempts to perform some automatic detection of types.
Otherwise, the arguments behave as normal.
- If ``path`` is a string that is no... |
org 100h
section .text
call texto
call cursor
call phrase
call addinit
call showpromi
call showprom2i
call valid
int 20h
texto: mov ah, 00h ;inicia modo texto
mov al, 03h
int 10h
ret
cursor: mov ah, 01h ; forma del cursor
mov ch, 00000000b
mov cl, 00001110b
int 10h
ret
m_cursr:... |
; A204091: The number of 1 X n Haunted Mirror Maze puzzles with a unique solution ending with a mirror.
; 1,2,10,46,210,958,4370,19934,90930,414782,1892050,8630686,39369330,179585278,819187730,3736768094,17045465010,77753788862,354678014290,1617882493726,7380056440050,33664517212798,153562473183890,700483331493854,3195... |
// Copyright (c) 2017-2018 The Securypto developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "libzerocoin/Denominations.h"
#include "amount.h"
#include "chainparams.h"
#include "main.h"
#include "txdb.h"
#include... |
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args="pid, sig"/>
<%docstring>
Invokes the syscall kill. See 'man 2 kill' for more information.
Arguments:
pid(pid_t): pid
sig(int): sig
</%docstring>
${syscall('SYS_kill', pid, sig)}
|
/*=========================================================================
Program: ParaView
Module: $RCSfile: pqTreeWidgetCheckHelper.cxx,v $
Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free software; you can redistribute it and/or modify it
unde... |
mov r1, $(signed(3))
mov r2, $(signed(-5))
xgt r1, r2
add r1, .0
out r1
|
; The MIT License (MIT)
;
; Copyright (c) 2014 Microsoft
;
; 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... |
#ruledef test
{
ld32 {x: i32} => 0x55 @ x
}
ld32 -1 ; = 0x55ffffffff |
; A010176: Continued fraction for sqrt(111).
; 10,1,1,6,1,1,20,1,1,6,1,1,20,1,1,6,1,1,20,1,1,6,1,1,20,1,1,6,1,1,20,1,1,6,1,1,20,1,1,6,1,1,20,1,1,6,1,1,20,1,1,6,1,1,20,1,1,6,1,1,20,1,1,6,1,1,20,1,1,6,1,1,20,1,1,6,1,1,20,1,1,6,1,1,20,1,1,6,1,1,20,1,1,6,1,1,20,1,1,6
seq $0,10225 ; Continued fraction for sqrt(183).
mul $0... |
FuchsiaCity_Script:
jp EnableAutoTextBoxDrawing
FuchsiaCity_TextPointers:
dw FuchsiaCityText1
dw FuchsiaCityText2
dw FuchsiaCityText3
dw FuchsiaCityText4
dw FuchsiaCityText5
dw FuchsiaCityText6
dw FuchsiaCityText7
dw FuchsiaCityText8
dw FuchsiaCityText9
dw FuchsiaCityText10
dw FuchsiaCityText11
dw Fuchsia... |
[bits 32]
section .text
global init_sse
init_sse:
call detect_sse
cmp eax, 0
je no_sse
mov eax, cr0
and ax, 0xFFFB
or ax, 0x2
mov cr0, eax
mov eax, cr4
bts eax, 9 ; Set OSFXSR bit
bts eax, 10 ; Set OSXMMEXCPT bit
mov cr4, eax
mov eax, 1
ret
global detect_sse
dete... |
; Inicialização para VM
leaw $Main.main, %A
jmp
nop
; 0 - Declarando função Main.main
Main.main:
; 1 - PUSH constant 5
leaw $5,%A
movw %A,%D
leaw $SP,%A
movw (%A),%A
movw %D,(%A)
leaw $SP,%A
movw (%A),%D
incw %D
movw %D,(%A)
; 2 - PUSH constant 9
leaw $9,%A
movw %A,%D
leaw $SP,%A
movw (%A),%A
movw %D,(%A)
leaw $SP,%A
m... |
; *******************************************************************************************
; *******************************************************************************************
;
; Name : let.asm
; Purpose : Assignment Statement
; Date : 5th June 2019
; Author : paul@robsons.org.uk
;
; *************... |
#include "ros/ros.h"
#include <dynamic_reconfigure/server.h>
#include <stdint.h>
#include "motorSkidSteerDrive.h"
#include "motor_controller/motor_controllerConfig.h"
int main(int argc, char **argv)
{
ros::init(argc, argv, "motor_controller");
MotorSkidSteerDrive *motorSkidSteerDrive = new MotorSkidSteerDrive();
d... |
dnl PowerPC-64/mode32 mpn_add_n -- Add two limb vectors of the same length > 0
dnl and store sum in a third limb vector.
dnl Copyright 1999, 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or ... |
; A240068: Number of prime Lipschitz quaternions having norm prime(n).
; 24,32,48,64,96,112,144,160,192,240,256,304,336,352,384,432,480,496,544,576,592,640,672,720,784,816,832,864,880,912,1024,1056,1104,1120,1200,1216,1264,1312,1344,1392,1440,1456,1536,1552,1584,1600,1696,1792
cal $0,40 ; The prime numbers.
mul $0,8
a... |
; A255843: a(n) = 2*n^2 + 4.
; Submitted by Christian Krause
; 4,6,12,22,36,54,76,102,132,166,204,246,292,342,396,454,516,582,652,726,804,886,972,1062,1156,1254,1356,1462,1572,1686,1804,1926,2052,2182,2316,2454,2596,2742,2892,3046,3204,3366,3532,3702,3876,4054,4236,4422
pow $0,2
mul $0,2
add $0,4
|
; A175111: ((2*n+1)^5+(-1)^n)/2.
; 1,121,1563,8403,29525,80525,185647,379687,709929,1238049,2042051,3218171,4882813,7174453,10255575,14314575,19567697,26260937,34671979,45112099,57928101,73504221,92264063,114672503,141237625,172512625,209097747,251642187,300846029,357462149,422298151,496218271,580145313,675062553,78201... |
; ********************************************************************************************
; ********************************************************************************************
;
; Name : window.asm
; Purpose : ..
; Created : 15th Nov 1991
; Updated : 4th Jan 2021
; Authors : Fred Bowen
;
; **... |
; A100470: n appears A055642(n) times (appearances equal number of decimal digits).
; 0,1,2,3,4,5,6,7,8,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41
mov $2,10
add $2,$0
div ... |
// 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/sync/user_events/user_event_service_impl.h"
#include <utility>
#include "base/bind.h"
#include "base/feature_list.h"
#include "base... |
.xlist
include kernel.inc
include protect.inc
.list
.386p
DataBegin
externB fBooting
externW pGlobalHeap
DataEnd
sBegin CODE
assumes CS,CODE
if KDEBUG
externNP check_lru_list
externNP check_free_list
externFP ValidateFreeSpaces
;-------------------------------------------------... |
###############################################################################
# Copyright 2018 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... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r13
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x858f, %r11
clflush (%r11)
nop
nop
nop
nop
nop
sub %rcx, %rcx
mov (%r11), %r13d
nop
nop
nop
nop
nop
cmp $28425, %rdx
lea addresses_UC_ht+0x1c3ef, %rdx
sub %rsi, %rsi
movups (... |
INCLUDE "graphics/grafix.inc"
SECTION code_clib
PUBLIC drawb
PUBLIC _drawb
EXTERN w_pixeladdress
; EXTERN l_cmp
;
; $Id: drawb.asm,v 1.6 2016-10-13 06:32:03 stefano Exp $
;
; ***********************************************************************
;
; drawbox Timex hires version
;
.drawb
._drawb
push ix ;save... |
[org 0x7c00]
[bits 16]
jmp _start
nop
%include "loader.fat32.8GB.asm"
_start:
xor ax, ax
mov es, ax
mov ds, ax
mov ss, ax
mov fs, ax
mov gs, ax
; boot(0x7c00) -> booting!!
; video memory(0xb8000) 여기서 일정 크기만큼의 공간의
; 메모리의 값을 화면에 지속적으로 출력!! - GPU
; ---------------
; | char | attr |
; ----------... |
//Operaciones con el stack y loop
start:
LOADIM R7,#100 //SP <- 100
CALL fun
PUSH R5 //Revisar stack
PUSH R6 //Revisar stack
POP R5 //R5 <- 0F
POP R6 //R6 <- 05
LOOP R6, start
fun:
LOADIM R3,#05 //R3 <- 05
LOADIM R4,#0F //R4 <- 0F
AND R5,R... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %rbp
push %rbx
push %rdx
push %rsi
lea addresses_WC_ht+0x15945, %r10
nop
add %rdx, %rdx
movb (%r10), %r14b
nop
nop
nop
inc %rbp
lea addresses_normal_ht+0xda45, %rsi
dec %r12
movb $0x61, (%rsi)
nop
sub $25757, %r12
lea addresses_UC_ht+0x2fb1... |
; [fail] [oformat xdf]
[section]
[section 1 use16=5]
[section 2 use32=5]
[section 3 use64=5]
[section 4 bss=5]
[section 5 flat=5]
[section 6 foo]
[section 7 foo=5]
[section 8 absolute=foo]
[section 9 absolute="foo"]
[section 10 absolute]
[section 11 virtual=foo]
[section 12 virtual="foo"]
[section 13 virtual]
[section ... |
#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
int n,i,count=0;
scanf("%d",&n);
int num[1000]={0};
for(i=1;i<=n;i++)
{
scanf("%d",&num[i]);
if(num[i]==1)
{
count++;
}
}
printf("%d\n",count);
for(i=1;i<=n;i++)
{
... |
; ----- int point(int x, int y)
;Result is true/false
SECTION code_graphics
PUBLIC point
PUBLIC _point
EXTERN asm_point
.point
._point
pop bc ; ret addr
pop hl ; y
pop de
push de
push hl
ld h,e ; x
push bc ; ret addr
... |
;the bootsector is at head 0, cylinder 0, sector 1
;let's put some extra data outside sector 1, and try to load it, mimicking a kernel load
[org 0x7c00] ;address of the loaded bootsector in memory, use this as base address
;stack setup
mov bp, 0x8000
mov sp, bp
mov bx, 0x9000 ;setup our buffer pointer, this is wher... |
;------------------------------------------------------------------------------
;
; EnableInterrupts() for AArch64
;
; Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
; Portions copyright (c) 2011 - 2013, ARM Ltd. All right... |
; Author: Arthur Eugenio Silverio
; Data: 11 / 02 / 2021
; Description: This is a simple include file with some string operations
; (Not yet a complete std implementation, I am considering to do that)
; int stringlen(char*[] message)
stringlen:
push ebx
mov ebx, eax
count_loop:
cmp byte [eax]... |
_ps: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "user.h"
#include "fcntl.h"
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 e4 f0 and $0xfffffff0,%esp
6: 83 ec 10 ... |
.segment "HEADER"
.byte "NES", $1a
.byte $01
.byte $01
.byte %00000001
.byte %00000000
.byte $00
.byte $00
|
.data
_prompt: .asciiz "Enter an integer:"
_ret: .asciiz "\n"
.globl main
.text
read:
li $v0,4
la $a0,_prompt
syscall
li $v0,5
syscall
jr $ra
print:
li $v0,1
syscall
li $v0,4
la $a0,_ret
syscall
move $v0,$0
jr $ra
fact:
li $t1,1
beq $a0,$t1,label0
j label1
label0... |
; A216109: The hyper-Wiener index of the ortho-polyphenyl chain with n hexagons (see the Dou et al. and the Deng references).
; 42,477,1701,4254,8820,16227,27447,43596,65934,95865,134937,184842,247416,324639,418635,531672,666162,824661,1009869,1224630,1471932,1754907,2076831,2441124,2851350,3311217,3824577,4395426,5027... |
; Decompresses Y. Collet's LZ4 compressed stream data in 16-bit real mode.
; Optimized for 8088/8086 CPUs.
;
; Code by Trixter/Hornet (trixter@oldskool.org) on 2013-01-05
; Updated 2019-06-17 -- thanks to Peter Ferrie, Terje Mathsen,
; and Axel Kern for suggestions and improvements!
;
; Updated 2019-06-30: Fixed an ali... |
; A308546: Number of double-closed subsets of {1..n}.
; Submitted by Christian Krause
; 1,2,3,6,8,16,24,48,60,120,180,360,480,960,1440,2880,3456,6912,10368,20736,27648,55296,82944,165888,207360,414720,622080,1244160,1658880,3317760,4976640,9953280,11612160,23224320,34836480,69672960,92897280,185794560,278691840,5573836... |
; A123187: Triangle of coefficients in expansion of (1+13x)^n.
; Submitted by Jamie Morken(s1)
; 1,1,13,1,26,169,1,39,507,2197,1,52,1014,8788,28561,1,65,1690,21970,142805,371293,1,78,2535,43940,428415,2227758,4826809,1,91,3549,76895,999635,7797153,33787663,62748517,1,104,4732,123032,1999270,20792408
lpb $0
add $1,1
... |
/* The following code declares class array,
* an STL container (as wrapper) for arrays of constant size.
*
* See
* http://www.boost.org/libs/array/
* for documentation.
*
* The original author site is at: http://www.josuttis.com/
*
* (C) Copyright Nicolai M. Josuttis 2001.
*
* Distributed under the Boos... |
#include <QtWidgets>
#include "glwidget.h"
#include "window.h"
Window::Window()
{
QGridLayout *mainLayout = new QGridLayout;
for (int i = 0; i < NumRows; ++i) {
for (int j = 0; j < NumColumns; ++j) {
QColor clearColor;
clearColor.setRgb(200,
200,... |
/// @file lacpy.hpp
/// @author Weslley S Pereira, University of Colorado Denver, USA
/// Adapted from @see https://github.com/langou/latl/blob/master/include/lacpy.h
//
// Copyright (c) 2012-2021, University of Colorado Denver. All rights reserved.
//
// This file is part of <T>LAPACK.
// <T>LAPACK is free software: y... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r15
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1a68a, %r14
nop
nop
nop
nop
nop
sub $31544, %r15
mov $0x6162636465666768, %rcx
movq %rcx, %xmm6
and $0xffffffffffffffc0, %r14
vmovaps %ymm6, (%r14)
nop
nop
sub $47187, %r11
l... |
; float __fsmul_callee (float left, float right)
SECTION code_clib
SECTION code_math
PUBLIC cm32_sccz80_fsmul_callee
EXTERN m32_fsmul_callee
; multiply two sccz80 floats
;
; enter : stack = sccz80_float left, ret
; DEHL = sccz80_float right
;
; exit : DEHL = sccz80_float(left*rig... |
include mpcp.inc
.xmm
;; declaracoes de dados (variaveis globais)
.data
;; seccao de codigo principal
.code
main PROC C
invoke _getch
invoke ExitProcess, 0
main ENDP
;; -----------------------------
;; codigo de outras rotinas
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.