text stringlengths 1 1.05M |
|---|
#include <iostream>
using namespace std;
int sum(int a){
int res;
res=0;
for(int i{1};i<a;i++){
if(i % 3 == 0)
res=res+i;
}
return res;
}
int main(void)
{
int a;
cout << "Introduzca un numero entero: " << endl;
cin >> a;
cout << "la suma total es: " << s... |
; A204437: Symmetric matrix: f(i,j)=((i+j+1)^2 mod 3), by (constant) antidiagonals.
; 0,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1
lpb $0,1
sub $0,1
add $1,$3
t... |
/*
* Copyright (C) 2008 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... |
; A170013: Number of reduced words of length n in Coxeter group on 4 generators S_i with relations (S_i)^2 = (S_i S_j)^36 = I.
; 1,4,12,36,108,324,972,2916,8748,26244,78732,236196,708588,2125764,6377292,19131876,57395628,172186884,516560652,1549681956,4649045868,13947137604,41841412812,125524238436,376572715308,1129718... |
; A005015: 11*2^n.
; 11,22,44,88,176,352,704,1408,2816,5632,11264,22528,45056,90112,180224,360448,720896,1441792,2883584,5767168,11534336,23068672,46137344,92274688,184549376,369098752,738197504,1476395008,2952790016,5905580032,11811160064,23622320128,47244640256,94489280512,188978561024,377957122048,755914244096,15118... |
AREA LAB5, CODE, READONLY
ENTRY
LDR R5, =0x40000040
LDR R2, =0x00000000
LDR R3, =0x00000005
LDR R0, =0x40000000
LO LDR R1, [R0], #4
ADDS R2, R2, R1
ADDCS R6, R6, #1
SUBS R3, R3, #1
BNE LO
STR R2, [R5], #04
STR R6, [R5]
UP B UP
END |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Mul32_8: ;This routine performs the operation DE.HL=HL*A
di
ex de,hl ;Paramiter into De
ld hl,0 ;HL for result
exx
ld hl,0 ;HL for result
ld de,0 ;DE for Param
exx
ld b,8 ;We're multiplying by ... |
; A001109: a(n)^2 is a triangular number: a(n) = 6*a(n-1) - a(n-2) with a(0)=0, a(1)=1.
; 0,1,6,35,204,1189,6930,40391,235416,1372105,7997214,46611179,271669860,1583407981,9228778026,53789260175,313506783024,1827251437969,10650001844790,62072759630771,361786555939836,2108646576008245,12290092900109634,71631910824649559... |
_mkdir: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
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 ... |
%ifdef CONFIG
{
"RegData": {
"XMM0": ["0x6162636465666768", "0x5152535455565758"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 1], rax
mov rax, 0x6162636465666768
mov [rdx + 8 * ... |
//////////////////////////////////////////////////////////////////////////////
// astro_title_code.asm
// Copyright(c) 2021 Neal Smith.
// License: MIT. See LICENSE file in root directory.
//////////////////////////////////////////////////////////////////////////////
// The following subroutines should be called from t... |
; A032936: Numbers whose set of base 16 digits is {1,2}.
; 1,2,17,18,33,34,273,274,289,290,529,530,545,546,4369,4370,4385,4386,4625,4626,4641,4642,8465,8466,8481,8482,8721,8722,8737,8738,69905,69906,69921,69922,70161,70162,70177,70178,74001,74002,74017,74018,74257,74258,74273,74274,135441,135442,135457,135458,135697,13... |
; A007798: Expected number of random moves in Tower of Hanoi problem with n disks starting with a randomly chosen position and ending at a position with all disks on the same peg.
; Submitted by Jamie Morken(s2.)
; 0,0,2,18,116,660,3542,18438,94376,478440,2411882,12118458,60769436,304378620,1523487422,7622220078,381254... |
ze: ; r9 - pointer to mem where code resides
; r8 - pointer to screen buffer in RAM
; r2 - Screen position in VDP RAM
push r11 ; push return address of caller
push r9 ; save code pointer
push r10 ; save stack pointer
push r13 ; save stack pointer
bl @clrscrbuf
li r9,CODESTART ; st... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x2e08, %r11
nop
nop
nop
nop
nop
sub %rsi, %rsi
movb $0x61, (%r11)
nop
nop
nop
sub %r12, %r12
lea addresses_D_ht+0x15388, %rcx
nop
cmp $61436, %r12
movl $0x61626364, (%rcx)
no... |
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018-2021 www.open3d.org
//
// Perm... |
; A144433: Multiples of 8 interleaved with the sequence of odd numbers >= 3.
; 8,3,16,5,24,7,32,9,40,11,48,13,56,15,64,17,72,19,80,21,88,23,96,25,104,27,112,29,120,31,128,33,136,35,144,37,152,39,160,41,168,43,176,45,184,47,192,49,200,51,208,53,216,55,224,57,232,59,240,61,248,63,256,65,264,67,272,69,280,71,288,73,296,75... |
#include <stan/services/diagnose/diagnose.hpp>
#include <gtest/gtest.h>
#include <stan/io/empty_var_context.hpp>
#include <test/test-models/good/services/test_lp.hpp>
#include <stan/callbacks/interrupt.hpp>
#include <stan/callbacks/stream_writer.hpp>
#include <test/unit/services/instrumented_callbacks.hpp>
class Servi... |
; A simple boot sector program that loops forever
loop:
jmp loop
;NASM supports two special tokens in expressions, allowing calculations to involve the current assembly position:
;the $ and $$ tokens. $ evaluates to the assembly position at the beginning of the line containing the expression;
;so you can code an... |
//////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2018-2019, Lawrence Livermore National Security, LLC.
//
// Produced at the Lawrence Livermore National Laboratory
//
// LLNL-CODE-758885
//
// All rights reserved.
//
// This file is part of Comb.
//
// For details, see htt... |
#include <fstream>
#include <sstream>
#include <iomanip>
#include <set>
#include <map>
#include <vector>
#include <cassert>
#include <string>
#include "opt_inl.h"
using namespace std;
// ********************************************************************** /
// *******************************************************... |
; A090702: a(n) is the minimal number k such that every binary word of length n can be transformed into a palindrome or an antipalindrome by deleting at most k letters.
; 0,0,1,1,1,2,2,2,3,4,4,4,5,5,5,6,7,7,7,8
mov $2,$0
lpb $0
trn $0,7
mov $1,$2
add $1,1
div $1,3
add $2,2
lpe
mov $0,$1
|
IDD_DLGMENUEDIT equ 1500
IDC_EDTITEMCAPTION equ 2512
IDC_HOTMENU equ 2513
IDC_EDTITEMNAME equ 2516
IDC_EDTITEMID equ 2518
IDC_EDTHELPID equ 2529
IDC_BTNADD equ 2532
IDC_BTNINSERT equ 2519
IDC_BTNDELETE equ 2520
IDC_BTNL equ 2521
IDC_BTNR equ 2522
IDC_BTNU equ 2523
IDC_BTND e... |
.686
.model flat, c
.code
CalcMEanStdevASM proc
push ebp
mov ebp, esp
sub esp, 4
xor eax, eax
mov ecx, [ebp+12] ; ecx = n
cmp ecx, 1
jle Done
dec ecx
mov [ebp-4], ecx ; save n-1
inc ecx
mov edx, [ebp+8] ; edx = a
fldz ; sum = 0.0
@@:
; find sum
fadd real8 ptr[edx] ; sum += *a
add edx, 8 ... |
; A023447: a(n) = n-5.
; -5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,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,47,48,49,50,51,52,53
sub $0,5
mul $0,120259084288
mov $1,$0
div $1,120259084288
|
; A001610: a(n) = a(n-1) + a(n-2) + 1, with a(0) = 0 and a(1) = 2.
; 0,2,3,6,10,17,28,46,75,122,198,321,520,842,1363,2206,3570,5777,9348,15126,24475,39602,64078,103681,167760,271442,439203,710646,1149850,1860497,3010348,4870846,7881195,12752042,20633238,33385281,54018520,87403802,141422323,228826126,370248450,599074577... |
;mov eax, 0x0 ; Strayex System Call number 0: test syscall,
;int 0x80 ; Rise interrupt
mov eax, 0x1 ; Strayex System Call number 1: print kernel version info,
int 0x80 ; Rise interrupt
mov eax, 0x2 ; Strayex System Call number 2: print data on screen,
int 0x80 ; Rise interrupt
mov eax, 0x3 ; Strayex System ... |
///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2010 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2006-01-04
// Updated ... |
.include "sprite/template.asm"
.gba
.create TEMP+"/51234C.dmp",0
header
anim
frame @tile,@pal,@sub,@oam,2,ANIM_END
tiles @tile, TEMP+"/51234C.img.bin"
pal @pal, TEMP+"/51234C.pal.bin"
subanim_none @sub
oamlist_single @oam
// tile x y size flip pal
oam 0, -27, -16, SIZE_32x32, FLIP_NONE, 0
oam 16... |
.MODEL SMALL
.STACK 100H
.DATA
PROMPT_1 DB 'Enter hexadecimal : $'
PROMPT_2 DB 0DH,0AH,'The equivalent 16-bit binary number is : $'
ILLEGAL DB 0DH,0AH,'Illegal hex number. Try again : $'
COUNT DB ?
.CODE
MAIN PROC
MOV AX, @DATA ; initialize DS
MOV DS, AX
LEA DX, PROMPT_1 ; load and display the string PROMPT_1
MOV AH,... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: Newtonsoft.Json.Linq.Extensions
#in... |
#pragma once
#include <limitless/core/context_observer.hpp>
#include <memory>
#include <stdexcept>
namespace Limitless {
class Texture;
enum class FramebufferAttachment {
Depth = GL_DEPTH_ATTACHMENT,
Stencil = GL_STENCIL_ATTACHMENT,
DepthStencil = GL_DEPTH_STENCIL_ATTACHMENT,
Color0 = GL_COLOR_ATTACHMEN... |
obj/boot/boot.out: file format elf32-i386
Disassembly of section .text:
00007c00 <start>:
.set CR0_PE_ON, 0x1 # protected mode enable flag
.globl start
start:
.code16 # Assemble for 16-bit mode
cli # Disable interrupts
7c00: fa ... |
; A045946: Star of David matchstick numbers: 6*n*(3*n+1).
; 0,24,84,180,312,480,684,924,1200,1512,1860,2244,2664,3120,3612,4140,4704,5304,5940,6612,7320,8064,8844,9660,10512,11400,12324,13284,14280,15312,16380,17484,18624,19800,21012,22260,23544,24864,26220,27612,29040,30504,32004,33540,35112,36720,38364,40044,41760,43... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x178d2, %rsi
lea addresses_WT_ht+0xa652, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
xor %r11, %r11
mov $4, %rcx
rep movsl
nop
nop
nop
nop
nop
cmp $22682, %rdi
lea addresses_normal_ht+0xa1f2, %rsi
lea addresse... |
Minnow.dtree : ; deprecated.
; pusha
; popa
; ret
; call Minnow.navToFirst; at filesize
;
; Minnow.dtree.scr1done :
;
; mov edx, [ebx]
; cmp edx, 0x0
; ;cmp ah, 2
; je Minnow.dtree.ret
;
; push ebx
; push ebx
; mov ebx, Minnow.stag
; call debug.print
; pop ebx
; ;mov ebx, edx ; uncommented = size, commented = loc
; ... |
; It's always useful to include you program global constants here
icl 'memory.inc'
icl 'dlist-const.inc'
; title screen display list
dl_ready_die
:10 dta DL_BLANK8
dta DL_MODE_40x24T5 + DL_LMS, a(SCREEN_ADDR)
dta DL_MODE_40x24T5
dta DL_MODE_40x24T5
dta DL_MODE_40x24T5 + DL_DLI
:2 dta DL_MODE... |
SECTION rodata_clib
PUBLIC zx_rowtab
INCLUDE "graphics/grafix.inc"
;
; $Id: rowtab.asm,v 1.4 2016/06/10 21:12:51 dom Exp $
;
; Screen row addresses table
; by Enrico Maria Giordano
.zx_rowtab
DEFW 4000H
DEFW 4100H
DEFW 4200H
DEFW 4300H
DEFW 4400H
DEFW 4500H
DEFW 4600H
DEFW 470... |
#include "pch.h"
#include "DecimalEx.h"
using namespace std;
DecimalEx::DecimalEx()
{
signscale = 0;
Hi32 = 0;
Lo64 = 0;
}
DecimalEx::DecimalEx(int i)
{
if (i < 0) {
sign = DECIMAL_NEG;
scale = 0;
i = -i;
}
else {
signscale = 0;
}
Hi32 = 0;
Lo64 = i... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r15
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x17654, %rsi
lea addresses_WT_ht+0x520c, %rdi
clflush (%rdi)
nop
nop
nop
nop
sub %r11, %r11
mov $113, %rcx
rep movsb
nop
nop
xor %rax, %rax
lea addresses_UC_ht+0xda0c, %rsi
le... |
; A077854: Expansion of 1/((1-x)*(1-2*x)*(1+x^2)).
; 1,3,6,12,25,51,102,204,409,819,1638,3276,6553,13107,26214,52428,104857,209715,419430,838860,1677721,3355443,6710886,13421772,26843545,53687091,107374182,214748364,429496729,858993459,1717986918,3435973836,6871947673,13743895347,27487790694,54975581388,109951162777,21... |
/**
* This file is part of the CernVM File System.
*
* The cache module maintains the local file cache. Files are
* staged into the cache by Fetch(). The cache stores files with a name
* according to their content hash.
*
* The procedure is
* -# Look in the catalog for SHA1 hash
* -# If it is in local ca... |
; A158588: a(n) = 34*n^2 - 1.
; Submitted by Christian Krause
; 33,135,305,543,849,1223,1665,2175,2753,3399,4113,4895,5745,6663,7649,8703,9825,11015,12273,13599,14993,16455,17985,19583,21249,22983,24785,26655,28593,30599,32673,34815,37025,39303,41649,44063,46545,49095,51713,54399,57153,59975,62865,65823,68849,71943,751... |
include "constants.inc"
CURSOR_STATE_CONTINUE = 0
CURSOR_STATE_NEW_GAME = 1
CURSOR_POSITION_CONTINUE = $75
CURSOR_POSITION_NEW_GAME = $95
SECTION FRAGMENT "Menu", ROMX
RunMenu::
; Disable the PPU
xor a
ld [rLCDC], a
; We start without any scroll
ld [shadowScrollX], a
ld [shadowScrollY], a
... |
;/* inffas32.asm is a hand tuned assembler version of inffast.c -- fast decoding
; *
; * inffas32.asm is derivated from inffas86.c, with translation of assembly code
; *
; * Copyright (C) 1995-2003 Mark Adler
; * For conditions of distribution and use, see copyright notice in zlib.h
; *
; * Copyright (C) 2003 Ch... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r9
push %rbx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x17a2c, %rsi
nop
nop
nop
nop
cmp $7993, %r14
and $0xffffffffffffffc0, %rsi
vmovaps (%rsi), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $1, %xmm1, %rdx
nop
nop
nop
xor $2325, %rbx
lea add... |
copyright zengfr site:http://github.com/zengfr/romhack
003AF4 move.l ($2,A1), ($2a,A6) [1p+24, 1p+26, boss+24, boss+26, container+24, container+26, enemy+24, enemy+26, weapon+24, weapon+26]
003B2E move.l ($2,A1), ($2a,A6) [1p+24, 1p+26, boss+24, boss+26, container+24, container+26, enemy+24, enemy+26, weapon+24, w... |
/*
* 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... |
#include "granary/x86/asm_defines.asm"
#include "granary/x86/asm_helpers.asm"
#include "granary/pp.h"
START_FILE
.extern SYMBOL(granary_dynamic_wrapper_of_impl)
// Original function prototype:
// app_pc dynamic_wrapper_of(app_pc wrapper, app_pc wrappee) ;
//
DECLARE_FUNC(_ZN7granary18dynamic_wrapper_ofEPhS0_)
... |
; A192356: Coefficients of x in the reduction of the polynomial p(n,x) = ((x+2)^n + (x-2)^n)/2 by x^2->x+2.
; Submitted by Christian Krause
; 0,1,1,15,29,211,561,3095,9829,46971,164921,728575,2707629,11450531,43942081,181348455,708653429,2884834891,11388676041,46006694735,182670807229,734751144051,2926800830801,1174381... |
; A267604: Decimal representation of the middle column of the "Rule 175" elementary cellular automaton starting with a single ON (black) cell.
; 1,3,6,13,27,55,111,223,447,895,1791,3583,7167,14335,28671,57343,114687,229375,458751,917503,1835007,3670015,7340031,14680063,29360127,58720255,117440511,234881023,469762047,93... |
format PE GUI 4.0
include 'win32ax.inc'
entry start
macro dzwiek arg1,arg2
{
invoke Beep,arg1,arg2
}
cze1 equ 37
cze2 equ 900
cze3 equ 1000
dlu1 equ 200
dlu2 equ 180
dlu3 equ 300
dlu4 equ 120
dlu5 equ 100
dlu6 equ 220
dlu7 equ 250
dlu8 equ 150
dlu9 equ 130
dlu10 equ 280
section '.data' data readable writeable
hInstance... |
// Copyright 2020 The Fuchsia 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 <fuchsia/hardware/pty/llcpp/fidl.h>
#include "pty_fuchsia.h"
namespace fpty = ::llcpp::fuchsia::hardware::pty;
zx_status_t pty_read_events(zx_h... |
//
// sudoku_value.cpp
// sudoku
//
#include "sudoku_value.h"
namespace sudoku {
namespace util {
} // ns util
} // ns sudoku
|
;******************************************************************************
;* Copyright (c) 2012 Michael Niedermayer
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg 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 Sof... |
#ifndef color_YPbPr_convert_YCgCo
#define color_YPbPr_convert_YCgCo
#include "../../_internal/convert.hpp"
#include "../category.hpp"
#include "../../YCgCo/YCgCo.hpp"
#include "../../rgb/rgb.hpp"
namespace color
{
namespace _internal
{
template
<
typename YPbPr_tag_name, ::... |
; A241029: Sum of n-th powers of divisors of 22.
; Submitted by Jon Maiga
; 4,36,610,11988,248914,5314716,115151530,2513845188,55090232674,1209627165996,26585860217050,584603613083988,12858141059430034,282844580595234876,6222201023261420170,136884245263581500388,3011407446068928780994,66250458366487932577356,1457504524... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 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... |
GLOBAL read_port
GLOBAL write_port
GLOBAL read_port_word
GLOBAL write_port_word
GLOBAL read_port_dword
GLOBAL write_port_dword
section .text
;read_port(port)
read_port:
push rbp
mov rbp, rsp
mov rdx, rdi
in al, dx
mov rsp, rbp
pop rbp
ret
;write_port(port, data)
write_port:
push rbp
mov rbp, rsp
mov r... |
/* $Id: CbcHeuristicLocal.hpp 2467 2019-01-03 21:26:29Z unxusr $ */
// Copyright (C) 2002, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#ifndef CbcHeuristicLocal_H
#define CbcHeuristicLocal_H
#include "Cb... |
/**
* @file middleware.hpp
* @author Thiago Rezende (thiago-rezende.github.io)
* @brief Middleware Singleton
*
*/
#pragma once
/* WebSocketpp stuff */
#include <websocketpp/config/asio_no_tls.hpp>
#include <websocketpp/server.hpp>
/* JSON parser */
#include <nlohmann/json.hpp>
/* Server type shortcut */
typede... |
// Test that volatile const vars are turned into load/store
// Commodore 64 PRG executable file
.file [name="volatile-2.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment B... |
title "Miscellaneous Exception Handling"
;++
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; You may only use this code if you agree to the terms of the Windows Research Kernel Source Code License agreement (see License.txt).
; If you do not agree to the terms, do not use the code.
;
;
; Mo... |
ParameterValue handle_parameter_value(CheckerContext *ctx, Type *in_type, Type **out_type_, Ast *expr, bool allow_caller_location);
void populate_using_array_index(CheckerContext *ctx, Ast *node, AstField *field, Type *t, String name, i32 idx) {
t = base_type(t);
GB_ASSERT(t->kind == Type_Array);
Entity *e = scope_... |
dcode DOCOL,5,,
nxt
dcode DOVAR,5,,
tix
phx
rli
nxt
dcode DOCON,5,,
nxa
pha
rli
nxt
dcode EXIT,4,,
rli
nxt
dcode LIT,3,,
nxa
pha
nxt
dconst 0,1,,ZERO,0
dconst 1,1,,ONE,1
dconst TRUE,4,,,_F_TRUE
dconst FALSE,5,,,_F_FALSE
dcode TICK,4,,
wai
nxt
dcode TICKS,5,,
pla
TICKS... |
GLOBAL opcodeGenerator
GLOBAL _div0
section .text
opcodeGenerator:
ud2
ret
_div0:
mov rcx, 0
div rcx
ret |
section .text
public _findWord
;
; Come up with the 84+CE header.
; Didn't want to have to deal with external files
; in testing with the 83+ because big files and needing to use shells?
; Not only "No", but "Hell no".
;
;
;Input: arg1 = 5 letter word to check against
;returns: HL = word found, else HL = -1
;
_findWor... |
#include "ndarray.h"
#include "glue.cpp"
|
////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2006. 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)
//
// See http://www.boost.org/libs/interprocess for documentation.
//
///////////////... |
TITLE Add and Subtract, Version 2 (AddSub2.asm)
; This program adds and subtracts 32-bit integers
; and stores the sum in a variable.
; Last update: 2/1/02
INCLUDE Irvine32.inc
.data
val1 dword 10000h
val2 dword 40000h
val3 dword 20000h
finalVal dword ?
.code
main PROC
mov... |
; $Id: lseek.asm,v 1.4 2016-03-06 21:39:54 dom Exp $
SECTION code_clib
INCLUDE "target/test/def/test_cmds.def"
PUBLIC lseek
PUBLIC _lseek
; fd, where, whence
.lseek
._lseek
push ix ;save callers
ld ix,2
add ix,sp
ld c, (ix + 2) ;whence
ld b, (ix + 8)
... |
[bits 8]
db 10
|
SFX_Snare2_2_Ch7:
noisenote 0, 11, 1, 51
endchannel
|
; A077253: Sum of digits squared plus sum of digits of n.
; 2,6,12,20,30,42,56,72,90,2,4,8,14,22,32,44,58,74,92,6,8,12,18,26,36,48,62,78,96,12,14,18,24,32,42,54,68,84,102,20,22,26,32,40,50,62,76,92,110,30,32,36,42,50,60,72,86,102,120,42,44,48,54,62,72,84,98,114,132,56,58,62,68,76,86,98,112,128,146,72,74,78,84,92,102,11... |
//
// Created by zing on 6/14/2020.
//
#include <vector>
#include <iostream>
using namespace std;
void printVector(vector<int> &v) {
for (vector<int>::iterator it = v.begin(); it != v.end(); it++) {
cout << *it << " ";
}
cout << endl;
}
void test01() {
vector<int> v1; //无参构造
for (int i... |
; Code common to most stage initialization
;
; Overwrites all registers, tmpfield1, tmpfield2 and tmpfield15
stage_generic_init:
.(
stage_table_index = tmpfield15
element_length = tmpfield15 ; warning reuse, take care of not mixing usages
; Point stage_table_index to the byte offset of selected stage entry in vecto... |
; 调用一个程序来在屏幕上显示字符串
;org 07c00h ; 从07c00处加载程序
mov ax,cs
mov ds,ax
mov es,ax
call DispStr ; 调用函数显示字符串
jmp $
; 显示字符串的函数
DispStr:
mov ax, BootMessage
mov bp,ax
mov cx, 16
mov ax, 01301h
mov bx, 000ch
mov dl, 0
int 10h
ret
BootMessage: db "hello from boot" ; db 伪... |
; A266395: Number of orbits of Aut(Z^7) as function of the infinity norm n of the representative lattice point of the orbit, when the cardinality of the orbit is equal to 161280.
; 0,0,0,0,15,75,225,525,1050,1890,3150,4950,7425,10725,15015,20475,27300,35700,45900,58140,72675,89775,109725,132825,159390,189750,224250,263... |
/*
* This file is part of Wireless Display Software for Linux OS
*
* Copyright (C) 2014 Intel Corporation.
*
* 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 o... |
/*
* SlowCommandExecutor.cpp
* !CHOAS
* Created by Bisegni Claudio.
*
* Copyright 2013 INFN, National Institute of Nuclear Physics
*
* 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 th... |
/** \file LaserOpticalPhysicsList.cc
*
*
* $Date: 2008/03/10 12:52:52 $
* $Revision: 1.5 $
* \author Maarten Thomas
*/
#include "Alignment/LaserAlignmentSimulation/interface/LaserOpticalPhysicsList.h"
#include "SimG4Core/PhysicsLists/interface/EmParticleList.h"
#include "G4ParticleTable.hh"
#include "G4Proce... |
//////////////////////////////////////////////////////////////////////////////
// astro_turret_armer_code.asm
// Copyright(c) 2021 Neal Smith.
// License: MIT. See LICENSE file in root directory.
//////////////////////////////////////////////////////////////////////////////
// The following subroutines should be called... |
;Assembling and Linking instruction
TITLE data01
INCLUDE Irvine32.inc
.data
hi BYTE '"Hello I am your skeleton!!" I said.', 0Dh,0Ah,0;
hiSiz=($-hi) ; hi is an array we declared above. $ is a reference to the length
in1 DWORD 3 ; int in1=3;
in2 DWORD 4 ; int in2=4;
DWORD 5
DWORD 6,7,8
ar1 DWOR... |
// RegisterTypes_osimPlugin.cpp
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
/* Copyright (c) 2006 Stanford University
* Use of the OpenSim software in source form is permitted provided that the following
* conditions are met:
* 1. The software is used only for non-commercial resear... |
; A081662: Partial sums of n + Fibonacci(n+1).
; 1,3,7,13,22,35,54,82,124,188,287,442,687,1077,1701,2703,4316,6917,11116,17900,28866,46598,75277,121668,196717,318135,514579,832417,1346674,2178743,3525042,5703382,9227992,14930912,24158411,39088798,63246651,102334857,165580881,267915075,433495256,701409593,1134904072,183... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x9b90, %rsi
lea addresses_normal_ht+0x10fe4, %rdi
nop
nop
nop
nop
xor %r10, %r10
mov $120, %rcx
rep movsq
nop
nop
cmp $16392, %r12
lea addresses_WT_ht+0x3cc0, %rsi
lea addres... |
//===- DataLayout.cpp - Data size & alignment routines ---------------------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: tsLargeGetText.asm
AUTHOR: John Wedgwood, Nov 25, 1991
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date... |
SECTION rodata_font
SECTION rodata_font_fzx
PUBLIC _ff_ao_Arkade
_ff_ao_Arkade:
BINARY "font/fzx/fonts/ao/Arkade/Arkade.fzx"
|
; A004699: a(n) = floor(Fibonacci(n)/6).
; 0,0,0,0,0,0,1,2,3,5,9,14,24,38,62,101,164,266,430,696,1127,1824,2951,4776,7728,12504,20232,32736,52968,85704,138673,224378,363051,587429,950481,1537910,2488392,4026302,6514694,10540997,17055692,27596690,44652382,72249072,116901455,189150528,306051983,495202512,801254496,129645... |
; A048861: a(n) = n^n - 1.
; 0,3,26,255,3124,46655,823542,16777215,387420488,9999999999,285311670610,8916100448255,302875106592252,11112006825558015,437893890380859374,18446744073709551615,827240261886336764176,39346408075296537575423,1978419655660313589123978,104857599999999999999999999,5842587018385982521381124420,34... |
// (C) Copyright Gennadiy Rozental 2005-2008.
// 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)
// See http://www.boost.org/libs/test for the library home page.
//
// File : $RCSfile$
//
// Version ... |
; Copyright (c) 2021 TK Chia
;
; 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 following disclaimer.
;... |
#ifndef BOOST_NUMERIC_CONCEPT_INTEGER_HPP
#define BOOST_NUMERIC_CONCEPT_INTEGER_HPP
// Copyright (c) 2012 Robert Ramey
//
// 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)
#include "numeric.hpp"
namespace boost... |
; A296349: Position where binary expansion of n starts in the binary Champernowne sequence A030190.
; 0,1,2,4,6,9,12,15,18,22,26,30,34,38,42,46,50,55,60,65,70,75,80,85,90,95,100,105,110,115,120,125,130,136,142,148,154,160,166,172,178,184,190,196,202,208,214,220,226,232,238,244,250,256,262,268,274,280,286,292
mov $2,$0... |
#pragma once
#include <string>
#include <vector>
#include "Texture.hpp"
class Mesh
{
public:
Mesh();
~Mesh();
bool Load(const std::string& file, class Renderer* renderer);
void UnLoad();
class VertexArray* GetVertexArray() const { return mVertexArray; }
const std::string& GetShader() const { return mShaderName... |
db DEX_MEOWTH ; pokedex id
db 40 ; base hp
db 45 ; base attack
db 35 ; base defense
db 90 ; base speed
db 40 ; base special
db NORMAL ; species type 1
db NORMAL ; species type 2
db 250 ; catch rate
db 69 ; base exp yield
INCBIN "pic/ymon/meowth.pic",0,1 ; 55, sprite dimensions
dw MeowthPicFront
dw MeowthPicBack
; attac... |
// Copyright (c) by respective owners including Yahoo!, Microsoft, and
// individual contributors. All rights reserved. Released under a BSD (revised)
// license as described in the file LICENSE.
#include "global_data.h"
#include "vw_validate.h"
#include "vw_versions.h"
#include "shared_data.h"
#include "io/logger.h"
... |
//https://www.hackerearth.com/code-monk-heaps-and-priority-queues/algorithm/monk-and-champions-league/
#include <stdio.h>
#include <queue>
using namespace std;
int main(int argc, char const *argv[])
{
int n,x,m;
priority_queue <int> heap;
scanf("%d",&m);
scanf("%d",&n);
for(int i=1;i<=m;i++){
scanf("%d",&x);
h... |
; A289357: Least number k such that n^2 + n - k is prime.
; 0,1,1,1,1,1,3,1,1,1,1,5,1,11,1,1,13,5,1,1,1,3,5,1,3,1,5,1,7,1,1,5,5,3,1,5,7,1,1,3,1,5,3,1,1,1,5,1,3,1,5,3,1,1,1,1,5,9,1,1,3,17,5,1,1,1,7,1,13,1,5,19,3,19,7,1,19,11,3,7,5,3,1,11,1,1,7,3,1,11,3,13,1,1,11,1,9,5,13,1
seq $0,28387 ; a(n) = n + (n+1)^2.
seq $0,6472... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.