text stringlengths 1 1.05M |
|---|
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2008, 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 distributi... |
; /* aes_asm.asm
; *
; * Copyright (C) 2006-2020 wolfSSL Inc.
; *
; * This file is part of wolfSSL.
; *
; * wolfSSL is free software; you can redistribute it and/or modify
; * it under the terms of the GNU General Public License as published by
; * the Free Software Foundation; either version 2 of the License, ... |
; FILE *freopen(char *filename, char *mode, FILE *stream)
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC freopen_callee
EXTERN asm_freopen
freopen_callee:
pop hl
pop ix
pop de
ex... |
; void *zx_py2aaddr(uchar y)
SECTION code_clib
SECTION code_arch
PUBLIC zx_py2aaddr
EXTERN asm_zx_py2aaddr
defc zx_py2aaddr = asm_zx_py2aaddr
|
; A032927: Numbers whose set of base-6 digits is {1,2}.
; 1,2,7,8,13,14,43,44,49,50,79,80,85,86,259,260,265,266,295,296,301,302,475,476,481,482,511,512,517,518,1555,1556,1561,1562,1591,1592,1597,1598,1771,1772,1777,1778,1807,1808,1813,1814,2851,2852,2857,2858,2887,2888,2893,2894,3067,3068,3073,3074,3103,3104,3109,3110,... |
; A264891: a(n) = n*(5*n - 3)*(25*n^2 - 15*n - 6)/8.
; 0,1,112,783,2839,7480,16281,31192,54538,89019,137710,204061,291897,405418,549199,728190,947716,1213477,1531548,1908379,2350795,2865996,3461557,4145428,4925934,5811775,6812026,7936137,9193933,10595614,12151755,13873306,15771592,17858313,20145544,22645735,25371711,28... |
; A108206: a(n)= 3*(n-1)*a(n-1) +(n-1)*a(n-2), with a(0)=1, a(1)=1.
; Submitted by Jamie Morken(s1)
; 0,1,3,20,189,2348,36165,665058,14219373,346585416,9485780589,288039271830,9609639556869,349403495309244,13751661631299813,582461437448921562,26417039609670967485,1277337284263389184272
mov $4,1
lpb $0
mul $2,$0
su... |
Name: title-j.asm
Type: file
Size: 56225
Last-Modified: '1992-07-15T00:55:52Z'
SHA-1: E13036C714986BAF3DAD3EB55D6EFCEBC8ABB421
Description: null
|
; A094432: a(n) = rightmost term in M^n * [1 0 0]. M = the 3 X 3 stiffness matrix [1 -1 0 / -1 4 -3 / 0 -3 3].
; Submitted by Jamie Morken(s2)
; 0,3,24,165,1104,7347,48840,324597,2157216,14336355,95275896,633179973,4207956720,27965034003,185848661544,1235103986325,8208193936704,54549615616707,362523179503320,2409238895... |
; A225810: a(n) = (10^n)^2 + 4*(10^n) + 1.
; 6,141,10401,1004001,100040001,10000400001,1000004000001,100000040000001,10000000400000001,1000000004000000001,100000000040000000001,10000000000400000000001,1000000000004000000000001,100000000000040000000000001,10000000000000400000000000001,1000000000000004000000000000001,100... |
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")
template<typename T> T getint() {
T val=0;
char c;
bool neg=false;
while((c=getchar()) && !(c>='0' && c<='9')) {
neg|=c=='-';
}
do {
val=(val*10)+c-'0';
} while((c=getchar()) && (c>='0'... |
; A010967: a(n) = binomial coefficient C(n,14).
; 1,15,120,680,3060,11628,38760,116280,319770,817190,1961256,4457400,9657700,20058300,40116600,77558760,145422675,265182525,471435600,818809200,1391975640,2319959400,3796297200,6107086800,9669554100,15084504396,23206929840,35240152720,52860229080,78378960360,114955808528,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r9
push %rcx
push %rdx
push %rsi
lea addresses_UC_ht+0xd881, %rsi
nop
nop
nop
nop
add $277, %rcx
movw $0x6162, (%rsi)
nop
sub $26192, %rdx
lea addresses_normal_ht+0x1c618, %rsi
nop
add %r11, %r11
vmovups (%rsi), %ymm6
vextracti128 $0, %ymm6, %xmm6
v... |
section .data
EatMsg: db 10, "Hello World from ShellCode", 10, 10
EatLen: equ $-EatMsg
section .text
global _start
_start:
nop ; nop sled 0_,
nop ; weee -------
nop ; weee ---------
nop ; weee ---... |
_DaisyInitialText::
text "Hi <PLAYER>!"
line "<RIVAL> is out at"
cont "Grandpa's lab."
done
_DaisyOfferMapText::
text "Grandpa asked you"
line "to run an errand?"
cont "Here, this will"
cont "help you!"
prompt
_GotMapText::
text "<PLAYER> got a"
line "@"
TX_RAM wcf4b
text "!@@"
_DaisyBagFullText::
text... |
; A082845: Partial sums of A082844.
; 2,5,7,10,12,14,17,19,22,24,26,29,31,34,36,39,41,43,46,48,51,53,55,58,60,63,65,68,70,72,75,77,80,82,84,87,89,92,94,96,99,101,104,106,109,111,113,116,118,121,123,125,128,130,133,135,138,140,142,145,147,150,152
add $0,2
mul $0,70
div $0,29
sub $0,2
|
; A086466: Decimal expansion of 2*sqrt(5)/5 arccsch(2).
; Submitted by Jon Maiga
; 4,3,0,4,0,8,9,4,0,9,6,4,0,0,4,0,3,8,8,8,9,4,3,3,2,3,2,9,5,0,6,0,5,4,2,5,4,2,4,5,7,0,6,8,2,5,4,0,2,8,9,6,5,4,7,5,7,0,0,6,1,0,3,9,9,2,5,6,1,2,1,5,4,6,1,1,3,1,9,6,1,3,6,1,4,9,0,2,6,4,6,9,7,2,1,9,9,5,5,4
add $0,1
mov $3,$0
mul $3,4
lpb $3
... |
; A152271: a(n)=1 for even n and (n+1)/2 for odd n.
; 1,1,1,2,1,3,1,4,1,5,1,6,1,7,1,8,1,9,1,10,1,11,1,12,1,13,1,14,1,15,1,16,1,17,1,18,1,19,1,20,1,21,1,22,1,23,1,24,1,25,1,26,1,27,1,28,1,29,1,30,1,31,1,32,1,33,1,34,1,35,1,36,1,37,1,38,1,39,1,40,1,41,1,42,1,43,1,44
add $0,1
mov $1,$0
div $0,2
gcd $0,$1
|
//! @file
//!
//! Copyright (c) Memfault, Inc.
//! See License.txt for details
//!
//! @brief
//!
//! A simple test app which can be used for testing the Particle Memfault library
#include "Particle.h"
#include "application.h"
#include "spark_wiring_json.h"
#include "memfault.h"
#include "logging.h"
LOG_SOURCE_CATEG... |
;-------------------------------------------------------------------------------
; dabort.asm
;
; Copyright (C) 2009-2018 Texas Instruments Incorporated - www.ti.com
;
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions... |
; A014138: Partial sums of (Catalan numbers starting 1, 2, 5, ...).
; 0,1,3,8,22,64,196,625,2055,6917,23713,82499,290511,1033411,3707851,13402696,48760366,178405156,656043856,2423307046,8987427466,33453694486,124936258126,467995871776,1757900019100,6619846420552,24987199492704,94520750408708,358268702159068,13605109188... |
#include "sound.h"
#include "AL/al.h"
#include "AL/alc.h"
namespace sound {
bool Init()
{
ALCdevice *ALDevice = alcOpenDevice(NULL);
bool ALValid = (NULL != ALDevice);
if(ALValid)
{
ALCcontext *ALContext = alcCreateContext(ALDevice, NULL);
alcMakeContextCurrent(ALContext);
alG... |
; A192920: Coefficient of x in the reduction by (x^2 -> x+1) of the polynomial F(n+4)*x^n, where F=A000045 (Fibonacci sequence).
; 0,5,8,26,63,170,440,1157,3024,7922,20735,54290,142128,372101,974168,2550410,6677055,17480762,45765224,119814917,313679520,821223650,2149991423,5628750626,14736260448,38580030725,10100383172... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2020 Intel Corporation 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 so... |
;Hand-Eye Cordination Game
;Author: Moris Scofield Mukwayi
; PORTC0-PORTC3 reserved for the seven segment that displays high
; PORTC4 Trigger of the sensor
; PORTC5 Slide switch
; PORTD7-Green LED
; PORTD6-Yellow LED
; PORTD5-Red LED
; PORTD4-Echo pin of the sensor
.org 0x000
rjmp initislise_inputs ; In... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Talk (Sample PC GEOS application)
FILE: talk.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
Insik 8/92 Initial Version
... |
#include "../../JObject.hpp"
#include "./Duration.hpp"
#include "./Instant.hpp"
#include "./ZoneId.hpp"
#include "./Clock.hpp"
namespace java::time
{
// Fields
// QJniObject forward
Clock::Clock(QJniObject obj) : JObject(obj) {}
// Constructors
// Methods
java::time::Clock Clock::fixed(java::time::Instant ... |
// SPDX-License-Identifier: BSD-2-Clause
//
// This code has been produced by the European Spallation Source
// and its partner institutes under the BSD 2 Clause License.
//
// See LICENSE.md at the top level for license information.
//
// Screaming Udder! https://esss.se
#include "FlatBuf... |
%ifdef CONFIG
{
"RegData": {
"MM0": "0x6545664667476848",
"MM1": "0x6545664667476848",
"MM2": "0x6162636465666768"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 1], rax
m... |
ConsoleImageData:
DB $FF,$FF,$FF,$FF,$FF,$FF,$00,$7F,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$7F,$00,$FF,$FF,$FF,$FF,$FF,$FF ; row 1
DB $9C,$C3,$FF,$FF,$FF,$FF,$40,$08,$01,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$40,$08,$01,$80,$00,$00,$00,$00,$01
DB $80,$00,$00,$0... |
CeladonDiner_h:
db LOBBY ; tileset
db CELADON_DINER_HEIGHT, CELADON_DINER_WIDTH ; dimensions (y, x)
dw CeladonDinerBlocks, CeladonDinerTextPointers, CeladonDinerScript ; blocks, texts, scripts
db $00 ; connections
dw CeladonDinerObject ; objects
|
#include <iostream>
#include <math.h>
using namespace std;
int main(){
int n=5;
for(int i=1; i<=n; i++){
for(int j=1; j<=i; j++){
cout<<j<<" ";
}
for(int j=i; j<n; j++){
cout<<"*"<<" ";
}
cout<<endl;
}
}
|
; A142204: Primes congruent to 7 mod 41.
; Submitted by Simon Strandgaard
; 7,89,499,827,991,1237,1319,1483,1811,2221,2467,2549,2713,3041,3533,3697,3779,3943,4271,4517,5009,5419,5501,6977,7879,8699,8863,9109,9437,9601,9929,10093,10667,10831,11159,11897,12143,12553,12799,13127,13291,13537,13619,14029,14767,15013,15259,1... |
// Tests pointer to pointer in a more complex setup
// Commodore 64 PRG executable file
.file [name="pointer-pointer-3.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Ba... |
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
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 ... |
#include <CQPMandelbrot.h>
#include <CMandelbrot.h>
#include <CPointFractal.h>
#include <CQUtil.h>
#include <CRGB.h>
#include <CTransform2D.h>
#include <QPainter>
#include <QMouseEvent>
CQPMandelbrot::
CQPMandelbrot(QWidget *parent) :
QWidget(parent), redraw_(true), rubber_band_(NULL)
{
setFocusPolicy(Qt::StrongFo... |
#include <algorithm>
#include <cassert>
#include <cctype>
#include <cstddef>
#include <fstream>
#include <iostream>
#include <string>
int main(const int argc, const char* const argv[])
{
// Getting away with no error checking throughout because CodeEval makes some
// strong guarantees about our runtime environment... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin developers
// Copyright (c) 2016 The Zarko developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "db.h"
#include "net.h"
#inclu... |
// Copyright 2020 Tier IV, Inc.
//
// 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 i... |
; 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_sub
; HL = DE - HL
.l_sub
.l_eq
ld a,e
sub l
ld l,a... |
// Copyright 2009, 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:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... |
; BEGIN_LEGAL
; Intel Open Source License
;
; Copyright (c) 2002-2016 Intel Corporation. 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 reta... |
/**
* \file
*/
#pragma once
#include "object.hpp"
#include "offer.hpp"
#include "offer_base.hpp"
#include "reference_object.hpp"
#include <memory>
#include <string>
#include <type_traits>
#include <utility>
namespace module_loader {
/**
* A \ref offer which offers a reference to a
* certair object which already... |
#include <src/messages/serialised_message.h>
#include <src/util/data_types.h>
#include <stddef.h>
#include <stdint.h>
SerialisedMessage::SerialisedMessage(uint16_t size, byte* message)
: size(size), buffer(message) {}
byte* SerialisedMessage::GetBuffer() const { return buffer; }
uint16_t SerialisedMessage::GetSi... |
;; ----------------------------------------------------------------------------
;;
;; Copyright (c) Microsoft Corporation. All rights reserved.
;;
;; ----------------------------------------------------------------------------
;*******************************************************************************
;********... |
%define MULTIBOOT2_HEADER_MAGIC 0xe85250d6
%define MULTIBOOT_ARCHITECTURE_I386 0
%define MULTIBOOT_HEADER_TAG_END 0
%define MULTIBOOT_HEADER_TAG_INFORMATION_REQUEST 1
%define MULTIBOOT_HEADER_TAG_ADDRESS 2
%define MULTIBOOT_HEADER_TAG_ENTRY_ADDRESS 3
%define MULTIBOOT_HEADER_TAG_CONSOLE_FLAGS 4
%define MULTIBOOT... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>setfsuid(uid) -> str
Invokes the syscall setfsuid.
See 'man 2 setfsuid' for more information.
Arguments:
uid(uid_t): uid
Returns:
int
</%docstring>
<%page args="uid=0"/>
<%
abi = pwnlib.abi.... |
format MZ
heap 0
stack 8000h
entry loader:init
include 'loader.inc'
segment main use32
start:
call get_params
jnc make_listing
mov esi,_usage
call display_string
mov ax,4C02h
int 21h
make_listing:
call listing
mov ax,4C00h
int 21h
error:
mov esi,_error_prefix
call display_string
pop esi
c... |
;
; Virus Lession #2 'How to make a non-resident EXE infector'
;
; (c) 1992 Tormentor // Demoralized Youth
;
; Well, I had not time to comment this code as much as I wanted to,
; but here you are.
; What can be hard to understand is the .EXE header changes, but if
; you look at the description on the header (ex: Nort... |
; A174989: Partial sums of A003602.
; 1,2,4,5,8,10,14,15,20,23,29,31,38,42,50,51,60,65,75,78,89,95,107,109,122,129,143,147,162,170,186,187,204,213,231,236,255,265,285,288,309,320,342,348,371,383,407,409,434,447,473,480,507,521,549,553,582,597
mov $1,$0
lpb $1
mov $2,$1
sub $1,1
div $1,2
sub $2,$1
pow $2,2
... |
; A053565: a(n) = 2^(n-1)*(3*n-4).
; -2,-1,4,20,64,176,448,1088,2560,5888,13312,29696,65536,143360,311296,671744,1441792,3080192,6553600,13893632,29360128,61865984,130023424,272629760,570425344,1191182336,2483027968,5167382528,10737418240,22280142848,46170898432,95563022336,197568495616,408021893120,841813590016,173516... |
; A173038: a(n) = (1/4)*(n^2 - 5*n + 2)*(n-2)! + 1.
; Submitted by Christian Krause
; 0,0,0,4,49,481,4681,47881,524161,6168961,78019201,1057795201,15328051201,236626790401,3879433958401,67345229952001,1234444603392001,23831057682432001,483379214782464001,10279010984546304001,228692788768604160001,5313457985857781760001... |
/** @file
IntrusivePtr tests.
@section license License
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
t... |
//
// Created by haohanwang on 2/2/16.
//
#include <limits>
#include <stdexcept>
#ifdef BAZEL
#include "Models/MultiPopLasso.hpp"
#else
#include "MultiPopLasso.hpp"
#endif
using namespace std;
using namespace Eigen;
void MultiPopLasso::setXY(MatrixXf m, MatrixXf n) {
X = m;
y = n;
}
void MultiPopLasso::ini... |
; Original address was $B8FE
; 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
... |
.FILL 0
.EQU #OUT 1
.EQU #EXIT 2
.ENTRY .+(0,1) GOS SMR.x $4, #OUT NOP GOW {Got a character.}
GOE LW $3, [++$PC] GOE LW $4, [$3] INC 3,3 DZ.Y $4
.ORG (10,10) WORD data TRP #EXIT
{The trap handler for TRP 0.}
SMR $0,... |
; A314754: Coordination sequence Gal.5.82.2 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,9,13,19,23,27,33,37,41,46,51,55,59,65,69,73,79,83,87,92,97,101,105,111,115,119,125,129,133,138,143,147,151,157,161,165,171,175,179,184,18... |
copyright zengfr site:http://github.com/zengfr/romhack
006624 tst.b ($7f,A1)
006628 bne $667c
0066E8 move.b #$1, ($7f,A0) [123p+ 76]
0066EE move.w A6, ($76,A0) [enemy+7F]
03BCDA tst.b ($7f,A6)
03BCDE bne $3be00 [enemy+7F]
03C91A clr.b ($7f,A6) [enemy+7E]
03C91E move.l #$2000000, ($4,A6)
co... |
; A002054: Binomial coefficient C(2n+1, n-1).
; 1,5,21,84,330,1287,5005,19448,75582,293930,1144066,4457400,17383860,67863915,265182525,1037158320,4059928950,15905368710,62359143990,244662670200,960566918220,3773655750150,14833897694226,58343356817424,229591913401900,903936161908052,3560597348629860
mov $1,3
add $1,$0
... |
;
; Vypis pameti na obrazovku
; =========================
;
; Naprogramoval: Shrek/MB Maniax
; Assembler: Odin/ZX Spectrum Next
; 2021
ORG $,$2000
start
LD A,H
OR L
CALL Z,nastav_konec
PUSH HL
CALL maketab
POP H... |
; A138830: Bisection of imperfect numbers A132999.
; 2,4,7,9,11,13,15,17,19,21,23,25,27,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118
mul $0,4
mov $2,$0
sub $2,1
lpb $2
add $0,2
div $2,7
lpe
mov $1,$0
div $1,2
add $1... |
; void *tshc_saddrcdown(void *saddr)
SECTION code_clib
SECTION code_arch
PUBLIC tshc_saddrcdown
EXTERN zx_saddrcdown
defc tshc_saddrcdown = zx_saddrcdown
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _tshc_saddrcdown
defc _tshc_saddrcdown = tshc_saddrcdown
ENDIF
|
;/*
; * FreeRTOS Kernel V10.4.1
; * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
; *
; * 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 restri... |
;*****************************************************************************
;* MMX/SSE2-optimized H.264 iDCT
;*****************************************************************************
;* Copyright (C) 2004-2005 Michael Niedermayer, Loren Merritt
;* Copyright (C) 2003-2008 x264 project
;*
;* Authors: Laurent Aima... |
_SilphCo10Text_5a1d3::
text "Waaaaa!"
cont "I'm scared!"
done
_SilphCo10Text_5a1d8::
text "Please keep quiet"
line "about my crying!"
done
_SilphCo10BattleText1::
text "Welcome to the"
line "10F! So good of"
cont "you to join me!"
done
_SilphCo10EndBattleText1::
text "I'm"
line "stunned!"
prompt
_Silph... |
; A141134: Hankel transform of C(2n+4,n+4).
; 1,-8,8,1,1,-16,16,1,1,-24,24,1,1,-32,32,1,1,-40,40,1,1,-48,48,1,1,-56,56,1,1,-64,64,1,1,-72,72,1,1,-80,80,1,1,-88,88,1,1,-96,96,1,1,-104,104
add $0,2
mov $2,-2
bin $2,$0
div $2,2
mov $3,2
mul $3,$2
mod $2,2
mul $3,2
mul $2,$3
mul $2,3
lpb $2
sub $2,5
gcd $3,$0
mov $0... |
;*****************************************************
;
; Video Technology library for small C compiler
;
; Juergen Buchmueller
;
;*****************************************************
; ----- char __CALLEE__ *vz_midstr_callee(char *str, int pos)
XLIB vz_midstr_callee
XDEF ASMDISP_VZ_MIDSTR_CALLEE
.vz_midstr_calle... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: GeoDex
MODULE: File
FILE: fileManager.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
ted 3/3/92 Initial version
DESCRIPTION:
This fil... |
; A215270: a(n) = a(n-1)*a(n-2) with a(0)=1, a(1)=6.
; 1,6,6,36,216,7776,1679616,13060694016,21936950640377856,286511799958070431838109696
seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.
mov $1,6
pow $1,$0
mov $0,$1
|
///////////////////////////////////////////////////////////////////////////////
// Name: src/osx/checklst.cpp
// Purpose: implementation of wxCheckListBox class
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
///////... |
//! \file
//! JoinState class declaration
#include "MainState.h"
#include "StateMachine.h"
#include "NetworkManager.h"
#include <iomanip>
#include <sstream>
unsigned int JoinState::Index;
unsigned char JoinState::IP[4];
unsigned short JoinState::Port;
void JoinState::Init()
{
Index = 0;
std::string myAddress = Net... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xa39a, %rax
nop
nop
sub %rcx, %rcx
movw $0x6162, (%rax)
nop
nop
nop
nop
and $7638, %r14
lea addresses_D_ht+0xacda, %rsi
lea addresses_A_ht+0x17f7a, %rdi
nop
nop
add %rdx, %rdx
mov $122... |
; A245879: Number of distinct fractional chromatic numbers among all connected graphs on n nodes.
; Submitted by Jon Maiga
; 1,1,2,3,5,7,11,17,29,50
mov $1,2
mov $2,$0
div $0,2
mul $0,$2
pow $1,$2
add $1,$0
add $2,2
div $1,$2
mov $0,$1
add $0,1
|
; A069113: Squarefree part of C(2n,n), the central binomial numbers: the smallest number such that a(n)*C(2n,n) is a square.
; Submitted by Christian Krause
; 1,2,6,5,70,7,231,858,1430,12155,46189,176358,676039,104006,44574,1077205,66786710,64822395,90751353,353452638,3829070245,134564468610,526024740930,2287064091,358... |
.code
PassingParameters proc
mov eax, ecx
neg eax
ret
PassingParameters endp
end
|
#include <bits/stdc++.h>
using namespace std;
typedef long double ld;
typedef long long int ll;
#define endl "\n"
vector<vector<ll>> adjlist;
ll max(ll x, ll y) { return (x > y) ? x : y; }
ll min(ll x, ll y) { return (x > y) ? y : x; }
#define mod 1000000007
#define precision(precision) cout << fixed << setprecision(p... |
#include "pliib.hpp"
using namespace std;
using namespace pliib;
int main(){
char* to_split;
string s ("A;StrING;DeLIMITeD:.;by;");
pliib::strcopy(s.c_str(), to_split);
char** ret;
int retsz;
int* split_sizes;
split(to_split, ';', ret, retsz, split_sizes);
for (int i = 0; i < rets... |
; copied from https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html
; tiny.asm
BITS 32
org 0x00200000
db 0x7F, "ELF" ; e_ident
db 1, 1, 1, 0, 0
_start:
mov bl, 42
xor eax, eax
... |
/* file: input.cpp */
/*******************************************************************************
* Copyright 2014 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
*
* ... |
; A227121: Number of n X 2 0,1 arrays indicating 2 X 2 subblocks of some larger (n+1) X 3 binary array having a sum of zero, with rows and columns of the latter in lexicographically nondecreasing order.
; 3,7,13,23,40,68,112,178,273,405,583,817,1118,1498,1970,2548,3247,4083,5073,6235,7588,9152,10948,12998,15325,17953,2... |
;*****************************************************************************
;* 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>
;*
;* ... |
EvolutionAnimation:
push hl
push de
push bc
ld a, [wCurSpecies]
push af
ldh a, [rOBP0]
push af
ld a, [wBaseSpecies]
push af
call .EvolutionAnimation
pop af
ld [wBaseSpecies], a
pop af
ldh [rOBP0], a
pop af
ld [wCurSpecies], a
pop bc
pop de
pop hl
ld a, [wEvolutionCanceled]
and a
ret z
scf
re... |
; A264446: a(n) = n*(n + 5)*(n + 10)*(n + 15)/24.
; 0,44,119,234,399,625,924,1309,1794,2394,3125,4004,5049,6279,7714,9375,11284,13464,15939,18734,21875,25389,29304,33649,38454,43750,49569,55944,62909,70499,78750,87699,97384,107844,119119,131250,144279,158249,173204,189189,206250
mov $1,$0
mov $4,48
lpb $2,4
mod $4,2... |
; Lucas de Souza Moraes - 538464
; Luana Duarte Santana Farias - 576485
LIST P=PIC16F628A
#INCLUDE <P16F628A.INC> ;P16F628A
__CONFIG _INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_ON & _BODEN_OFF & _LVP_OFF & _CP_OFF & _MCLRE_OFF & _DATA_CP_OFF
;ou __CONFIG H'3F10'
#DEFINE BANK0 BCF STATUS,RP0 ;SET BANK ... |
;***************************************************************************
; DEFINE SECTION
;***************************************************************************
include "VECTREX.I"
; start of vectrex memory with cartridge name...
org 0
;*************************************... |
_ViridianForestText1::
text "This #MON"
line "keeps losing!"
para "This is its"
line "last chance!"
done
_ViridianForestBattleText1::
text "Hey! You have"
line "#MON! Come on!"
cont "Let's battle 'em!"
done
_ViridianForestEndBattleText1::
text "No!"
line "Useless! Here you"
cont "have it!"
prompt
_Viri... |
* Copyright 2021 Harold Grovesteen
*
* MIT License:
*
* 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, merg... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x2013, %r13
nop
nop
nop
nop
nop
sub %rsi, %rsi
movb $0x61, (%r13)
nop
nop
cmp %rax, %rax
lea addresses_UC_ht+0x66c, %rsi
lea addresses_UC_ht+0x1d793, %rdi
nop
nop
nop
nop
and ... |
//===--- GenCall.cpp - Swift IR Generation for Function Calls -------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
// ximage.cpp : main implementation file
/* 07/08/2001 v1.00 - Davide Pizzolato - www.xdp.it
* CxImage version 5.99c 17/Oct/2004
*/
#include "ximage.h"
////////////////////////////////////////////////////////////////////////////////
// CxImage
//////////////////////////////////////////////////////////////... |
; DO NOT MODIFY THIS FILE DIRECTLY!
; author: @TinySecEx
; shadowssdt asm stub for 10.0.17025-sp0-windows-10-rs4-pre-17025 amd64
option casemap:none
option prologue:none
option epilogue:none
.code
; ULONG64 __stdcall NtUserGetOwnerTransformedMonitorRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_... |
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The PIVX developers
// Copyright (c) 2019 The MktCoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-licen... |
;
;
; ZX Maths Routines
;
; 23/05/06 - Stefano Bodrato
;
; $Id: f_yesno.asm,v 1.3 2015/01/19 01:32:57 pauloscustodio Exp $
;
; Support for boolean - save some byte
IF FORzx
INCLUDE "zxfp.def"
ELSE
INCLUDE "81fp.def"
ENDIF
PUBLIC f_yesno
.f_yesno
call ZXFP_FP_TO_BC
IF FORzx
... |
; A206919: Sum of binary palindromes <= n.
; 0,1,1,4,4,9,9,16,16,25,25,25,25,25,25,40,40,57,57,57,57,78,78,78,78,78,78,105,105,105,105,136,136,169,169,169,169,169,169,169,169,169,169,169,169,214,214,214,214,214,214,265,265,265,265,265,265,265,265
mov $2,$0
add $2,1
mov $4,$0
lpb $2
mov $0,$4
sub $2,2
sub $0,$2
... |
; A136488: a(n) = 2^n - A005418(n).
; 1,2,5,10,22,44,92,184,376,752,1520,3040,6112,12224,24512,49024,98176,196352,392960,785920,1572352,3144704,6290432,12580864,25163776,50327552,100659200,201318400,402644992,805289984,1610596352,3221192704,6442418176,12884836352,25769738240,51539476480,103079084032,206158168064,412316... |
; DO NOT MODIFY THIS FILE DIRECTLY!
; author: @TinySecEx
; ssdt asm stub for 6.3.9600-sp0-windows-8.1 amd64
option casemap:none
option prologue:none
option epilogue:none
.code
; ULONG64 __stdcall NtWorkerFactoryWorkerReady( ULONG64 arg_01 );
_6_3_9600_sp0_windows_8_1_NtWorkerFactoryWorkerReady PROC STDCALL
mov... |
.ORIG x3000
LD R6,INITIAL ; initialize the stack pointer
LD R0,KBISR ; set up the keyboard interrupt vector table entry
STI R0,KBIV
LD R0,IE ; enable keyboard interrupts
STI R0,KBSR
FRSTLN LEA R0,FIRST
PUTS
LD R0,NEWLN
OUT
JSR DELAY
JSR DELAY
JSR DELAY
JSR DELAY
SCND LEA R0,SECOND
PUTS
LD R0,... |
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
;--------------------------------------------------------
; Global Descriptor Table
;--------------------------------------------------------
gdtr_addr: dd 0x00400000
gdtr:
dw gdtEnd - gdt - 1 ; GDT Table 전체 Size
dd gdt ; GDT Table 의 실제 시작 주소
gdt:
NullDescriptor equ 0x00
d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.