text stringlengths 1 1.05M |
|---|
;*******************************************************************************
; FILENAME: KeilStart.a51
; Version 4.10
;
; DESCRIPTION:
; Bootup Code for PSoC3 chips using the Keil toolchain.
;
;*******************************************************************************
; Copyright 2008-2014, Cypress Semicond... |
; A160873: Number of isomorphism classes of connected (D_4)-fold coverings of a connected graph with circuit rank n.
; 0,3,42,420,3720,31248,256032,2072640,16679040,133824768,1072169472,8583644160,68694312960,549655154688,4397643866112,35182761492480,281468534292480,2251774043947008,18014295430397952,144114775759257600... |
;,; SC40_000 .waits=4
;,; <- ibpcaablocks
;,; <- player_ivars
;;,; <- player_songdata
!src "demosrc/smac.inc"
+s8bpc
+sAddr chptr+2
!byte $02
!byte shap_start-songdata
!byte melo_start-songdata;muteseq-songdata
!byte muteseq-songdata;muteseq-songdata
!byte $e4,2,chFFFFFFFFFFFFFFFF
!byte $e1,192
!byte $e4,3,chFFFFFFFF... |
;
; MSX specific routines
;
; GFX - a small graphics library
; Copyright (C) 2004 Rafael de Oliveira Jannone
;
; extern bool __FASTCALL__ msx_get_trigger(unsigned char id);
;
; get state of joystick button (trigger) number \a id, true = pressed
;
; $Id: msx_get_trigger.asm,v 1.5 2009/06/22 21:44:17 dom Exp $
;
XLI... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; RCR16r1
mov dx, 0x414
;TEST_BEGIN_RECORDING
rcr dx, 0x1
;TEST_END_RECORDING
|
struct bignum {
unsigned long x, y;
};
void hex_print_bignum(bignum n) {
if (n.y == 0) {
printf("0x%lx", n.x);
} else {
printf("0x%lx%016lx", n.y, n.x);
}
}
|
; void z180_outp(uint16_t port, uint8_t data)
SECTION code_clib
SECTION code_z180
PUBLIC _z180_outp
EXTERN asm_z180_outp
_z180_outp:
pop af
pop bc
pop hl
push hl
push bc
push af
jp asm_z180_outp
|
; flat assembler interface for Unix/libc
; Copyright (c) 1999-2006, Tomasz Grysztar.
; All rights reserved.
format ELF
public main
macro ccall proc,[arg]
{ common
local size
size = 0
reverse
pushd arg
size = size+4
common
call proc
add esp,size }
extrn gettimeofday
section '.text' ... |
; A025698: Index of 3^n within sequence of numbers of form 3^i*7^j.
; 1,2,4,6,9,12,16,20,25,31,37,44,51,59,67,76,86,96,107,118,130,142,155,168,182,197,212,228,244,261,278,296,315,334,354,374,395,416,438,461,484,508,532,557,582,608,634,661,689,717,746,775,805,835,866,898,930,963,996
mov $3,$0
add $3,1
mov $4,$0
lpb $3
... |
; A115536: Numbers n such that the square of n is the concatenation of two numbers m and 4*m.
; 160378,169812,179246,188680,198114,207548,216982,226416,235850,245284,254718,264152,273586,283020,292454,301888,311322,320756,330190,339624,349058,358492,367926,377360,386794,396228,405662
mov $1,$0
mul $1,9434
add $1,16037... |
/*=============================================================================
Copyright (c) 2003 Hartmut Kaiser
http://spirit.sourceforge.net/
Use, modification and distribution is subject to the Boost Software
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
http://www.boo... |
;
; 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 www.aome... |
#include "CustomDispatcher.h"
//--------------------------------------------------------------
CustomDispatcher::CustomDispatcher() {
_target = this;
}
//--------------------------------------------------------------
CustomDispatcher::~CustomDispatcher() {
}
//-------------------------------------------... |
/* Copyright 2019 Google LLC. 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 agreed to in ... |
; A120175: a(1)=7; a(n)=floor((35+sum(a(1) to a(n-1)))/5).
; 7,8,10,12,14,17,20,24,29,35,42,50,60,72,87,104,125,150,180,216,259,311,373,448,537,645,774,928,1114,1337,1604,1925,2310,2772,3326,3992,4790,5748,6898,8277
mov $24,$0
mov $26,$0
add $26,1
lpb $26,1
mov $0,$24
sub $26,1
sub $0,$26
mov $20,$0
mov $22,... |
; ==================================================================
; CompOS -- The Mike Operating System kernel
; Copyright (C) 2006 - 2011 CompOS Developers -- see doc/LICENSE.TXT
;
; MATH ROUTINES
; ==================================================================
; ----------------------------------------... |
SECTION code_stdio
PUBLIC __stdio_scanf_bb
EXTERN __stdio_scanf_sm_binary, __stdio_scanf_number_head
EXTERN l_inc_sp, asm__strtou, __stdio_scanf_number_tail_int
__stdio_scanf_bb:
; %B converter called from vfscanf()
; non-standard, reads binary number
;
; enter : ix = FILE *
; de = void *buf... |
user/_cowtest: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <simpletest>:
0: 7179 addi sp,sp,-48
2: f406 sd ra,40(sp)
4: f022 sd s0,32(sp)
6: ec26 sd s1,24(sp)
8: e84a sd s2,16(sp)
a... |
// This test program illustrates that the Win32
// <WaitForMultipleObjects> function can be called in multiple
// threads, all of which wait on the same set of HANDLEs. Note that
// the dispatching of the threads should be relatively "fair" (i.e.,
// everyone gets a chance to process the various HANDLEs as they
// bec... |
; A268553: Diagonal of the rational function 1/((1 - u v - u w - v w) * (1 - x y - x z - y z)).
; 1,36,8100,2822400,1200622500,572679643536,294230074634496,159259227403161600,89595913068008532900,51926300783585192250000,30813565377466975498995600,18639620490164944744006041600,11456409104219869032980449440000,7136549054... |
MODULE get_sprite_tile
PUBLIC get_sprite_tile
PUBLIC _get_sprite_tile
SECTION code_driver
INCLUDE "target/gb/def/gb_globals.def"
; uint8_t __LIB__ get_sprite_tile(uint8_t nb) NONBANKED;
get_sprite_tile:
_get_sprite_tile:
PUSH BC
LD HL,sp+4 ... |
/******************************************************************************
* Copyright 2020 The Apollo 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
... |
; void heap_free(void *heap, void *p)
INCLUDE "clib_cfg.asm"
SECTION code_clib
SECTION code_alloc_malloc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $01
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC heap_free_callee
EXTERN asm_heap_free
heap_free_callee:
pop af
pop hl
pop de
push af
... |
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/version.hpp>
#if defined(WIN32) && BOOST_VERSION == 104900
#define BOOST_INTERPROCESS_HAS_WINDOWS_KERNEL_BOOTT... |
; A142670: Primes congruent to 8 mod 57.
; Submitted by Jon Maiga
; 179,293,521,863,977,1091,1319,1433,1889,2003,2459,2687,2801,3257,3371,4283,4397,4967,5081,5309,5651,5879,6221,6449,6563,6791,7019,7247,7589,7703,7817,8273,8387,8501,9413,10211,10667,10781,11351,11579,11807,12149,12263,12377,12491,13859,14087,14543,1465... |
_wc: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
printf(1, "%d %d %d %s\n", l, w, c, name);
}
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 57 push %edi
4: 56 p... |
;*!
;* \copy
;* Copyright (c) 2009-2013, Cisco Systems
;* 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 abo... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1822d, %rsi
clflush (%rsi)
nop
lfence
mov $0x6162636465666768, %r12
movq %r12, %xmm3
and $0xffffffffffffffc0, %rsi
vmovntdq %ymm3, (%rsi)
xor $36345, %rcx
lea addresses_D_ht+0x2491, %rs... |
#ifndef CAFFE_NORMALIZE_LAYER_HPP_
#define CAFFE_NORMALIZE_LAYER_HPP_
#include <vector>
#include <string>
#include <utility>
#include "caffe/blob.hpp"
#include "caffe/layer.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/proto/caffe.pb.h"
namespace caffe {
/**
* @brief Normalizes input... |
// Autogenerated from CppHeaderCreator on 7/27/2020 3:09:17 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
// Including type... |
SECTION code_driver
PUBLIC pointxy_MODE1
GLOBAL vpeek_read_screen
GLOBAL generic_console_vpeek
GLOBAL screendollar_no_inverse_with_count
GLOBAL generic_console_font32
GLOBAL __mode
INCLUDE "target/gb/def/gb_globals.def"
;Entry: c = x,
; b = y
;Exit:... |
; A295150: Numbers that have exactly two representations as a sum of five nonnegative squares.
; 4,5,8,9,10,11,12,14,23,24
add $0,1
mov $2,$0
lpb $0
sub $2,1
cmp $3,$2
cmp $3,0
mov $4,$2
sub $2,5
mul $3,$0
lpb $4
sub $0,1
add $1,$3
mod $4,2
lpe
lpb $4
div $0,4
pow $0,3
trn $4,... |
###############################################################################
# Copyright 2019 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... |
; A151254: Number of walks within N^3 (the first octant of Z^3) starting at (0,0,0) and consisting of n steps taken from {(-1, 0, 0), (1, 0, 0), (1, 0, 1), (1, 1, 0), (1, 1, 1)}.
; Submitted by Christian Krause
; 1,4,20,96,480,2368,11840,58880,294400,1468416,7342080,36667392,183336960,916144128,4580720640,22896574464,1... |
move.l d0, temp
move.l d1, temp2
move.l a1, temp3
move.l a0, temp4
move.b curr_shop_item, d0
cmpi.b #$20, d0 ; Make sure item is >= 0x20, as that means its a spell
beq is_spell
bpl is_spell
after:
;; Reset values
move.l temp, d0
move.l temp2, d1
lea.l temp3, a... |
; x86 timer in NASM
;
; Tom St Denis, tomstdenis@iahu.ca
[bits 32]
[section .data]
time dd 0, 0
[section .text]
%ifdef USE_ELF
[global t_start]
t_start:
%else
[global _t_start]
_t_start:
%endif
push edx
push eax
rdtsc
mov [time+0],edx
mov [time+4],eax
pop eax
pop edx
ret
%ifdef USE_ELF
[gl... |
.size 8000
.text@48
ei
jp lstatint
.text@100
jp lbegin
.text@150
lbegin:
ld c, 44
ld b, 90
lbegin_waitvblank:
ldff a, (c)
cmp a, b
jrnz lbegin_waitvblank
ld a, 11
ldff(40), a
ld hl, 8010
ld a, ff
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(hl++), a
ld(h... |
; A130487: a(n) = Sum_{k=0..n} (k mod 9) (Partial sums of A010878).
; 0,1,3,6,10,15,21,28,36,36,37,39,42,46,51,57,64,72,72,73,75,78,82,87,93,100,108,108,109,111,114,118,123,129,136,144,144,145,147,150,154,159,165,172,180,180,181,183,186,190,195,201,208,216,216,217,219,222,226,231,237,244,252,252,253,255,258,262,267,273... |
#include "MainWidget.h"
#include "FaceShrinkingFilter.h"
// motion
#include <QMouseEvent>
#include <QQuaternion>
#include <QVector3D>
// math
#include <math.h>
/////////////////////////////// PUBLIC ///////////////////////////////////////
//============================= LIFECYCLE ======================... |
#include "funcoes.h"
#include <iostream>
void leMatriz(MatrizQuadrada &m1){
std::cin >> m1.dimensao;
m1.m1 = new int*[m1.dimensao];
for(int i = 0; i < m1.dimensao;i++){
m1.m1[i] = new int[m1.dimensao];
}
for(int i = 0; i < m1.dimensao;i++){
for(int j = 0; j < m1.dimensao;j++){
... |
;Rusu Cosmin, gr 917 (attended lab 4 with gr 914), 22.10.2015, homework for lab 4, problem 2 unsigned representation
assume cs:code, ds:data
data segment
;Solution on unsigned representation
;Problem:
;2. 2/(a+b*c-9)+d
;a,b,c-byte; d-doubleword
; (a + b * c - 9) = word
a db 10
b db 2
c db 3
d dd 12
x dd ?
data ... |
; MapGroupRoofs values; Roofs indexes
const_def
const ROOF_NEW_BARK ; 0
const ROOF_VIOLET ; 1
const ROOF_AZALEA ; 2
const ROOF_OLIVINE ; 3
const ROOF_GOLDENROD ; 4
MapGroupRoofs:
; entries correspond to map groups
; values are indexes for Roofs (see below)
db -1 ; 0
db -1 ; 6... |
/************************************************************
*
* OPEN TRANSACTIONS
*
* Financial Cryptography and Digital Cash
* Library, Protocol, API, Server, CLI, GUI
*
* -- Anonymous Numbered Accounts.
* -- Untraceable Digital Cash.
* -- Triple-Signed Receipts... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2017 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... |
; A026488: a(n) is the least positive integer > a(n-1) and not a(i)*a(j)-a(k) for 1 <= i <= j <= k <= n, where a(1) = 1.
; 1,3,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58,61,64,67,70,73,76,79,82,85,88,91,94,97,100,103,106,109,112,115,118,121,124,127,130,133,136,139,142,145,148,151,154,157,160,163,166,169,172... |
; A152740: 11 times triangular numbers.
; 0,11,33,66,110,165,231,308,396,495,605,726,858,1001,1155,1320,1496,1683,1881,2090,2310,2541,2783,3036,3300,3575,3861,4158,4466,4785,5115,5456,5808,6171,6545,6930,7326,7733,8151,8580,9020,9471,9933,10406,10890,11385,11891,12408,12936,13475,14025,14586,15158,15741,16335,16940,175... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r15
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x69d0, %rsi
lea addresses_normal_ht+0x1b2f0, %rdi
nop
nop
nop
nop
nop
and $59280, %r13
mov $58, %rcx
rep movsq
add %rcx, %rcx
lea addresses_WC_ht+0xd9d0, %rsi
lea addresses_WT... |
1000408e: 39 45 08 cmp DWORD PTR [ebp+0x8],eax
10004091: 77 09 ja 0x1000409c
10004093: e8 ae 09 00 00 call 0x10004a46
100038d0: 83 3d f8 5d 01 10 00 cmp DWORD PTR ds:0x10015df8,0x0
100038d7: 74 2d je 0x10003906
100038d9: 55 push e... |
; A284359: Double triangle (2*n+2 terms by row). Every row is 2*n + 1 followed by 2*n + 1 times 2*n + 2.
; 1,2,3,4,4,4,5,6,6,6,6,6,7,8,8,8,8,8,8,8,9,10,10,10,10,10,10,10,10,10,11,12,12,12,12,12,12,12,12,12,12,12,13,14,14,14,14,14,14,14,14,14,14,14,14,14,15,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,17
mov $1,1
lpb $... |
/*************************************************************************/
/* translation_loader_po.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: ToolSamp (Sample PC GEOS application)
FILE: toolsamp.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
doug 1/92 Initial vers... |
PresetsMenuRbo:
dw #presets_goto_rbo_bombs
dw #presets_goto_rbo_brinstar
dw #presets_goto_rbo_norfair_first_visit
dw #presets_goto_rbo_brinstar_cleanup
dw #presets_goto_rbo_norfair_second_visit
dw #presets_goto_rbo_lower_norfair
dw #presets_goto_rbo_norfair_escape
dw #presets_goto_rbo_ma... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xe322, %r8
nop
nop
nop
nop
xor $60102, %rbp
mov (%r8), %si
nop
nop
add %r8, %r8
lea addresses_WC_ht+0x1e18c, %rsi
lea addresses_normal_ht+0x10078, %rdi
nop
nop
nop
nop
nop
dec %r12
mov $... |
; Landmarks indexes (see data/maps/landmarks.asm)
const_def
; Johto landmarks
const SPECIAL_MAP ; 00
const NEW_BARK_TOWN ; 01
const ROUTE_29 ; 02
const CHERRYGROVE_CITY ; 03
const ROUTE_30 ; 04
const ROUTE_31 ; 05
const VIOLET_CITY ; 06
const SPROUT_TOWER ; 07
... |
bits 64
default rel
section .text
global pal_execute_read_cr2
pal_execute_read_cr2 :
mov rax, cr2
ret
|
; A315733: Coordination sequence Gal.6.642.6 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,6,12,18,22,28,34,40,44,50,56,62,68,74,80,84,90,96,102,106,112,118,124,130,136,142,146,152,158,164,168,174,180,186,192,198,204,208,214,220,... |
/*
* (C) Copyright 2017-2018 UCAR
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*/
#include "tools/new_qc/example/Example.h"
#include "eckit/config/Configuration.h"
#include "ioda/ObsDataVector.h"
#include... |
; A024323: a(n) = s(1)t(n) + s(2)t(n-1) + ... + s(k)t(n+1-k), where k=[ (n+1)/2) ], s = A023531, t = (odd natural numbers).
; 0,0,3,5,7,9,11,13,24,28,32,36,40,44,48,52,73,79,85,91,97,103,109,115,121,127,160,168,176,184,192,200,208,216,224,232,240,248,295,305,315,325,335,345,355,365,375,385,395,405,415,425,488,500,512,5... |
//--------------------------------------------------------------------------------------------------------------------//
// //
// Tuplex: Blazing Fast Python Data Scien... |
db 0 ; species ID placeholder
db 97, 165, 60, 58, 65, 50
; hp atk def spd sat sdf
db ROCK, ROCK ; type
db 45 ; catch rate
db 173 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F12_5 ; gender ratio
db 100 ; unknown 1
db 30 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/rampardos/... |
db 0 ; 289 DEX NO
db 150, 160, 100, 100, 95, 95
; hp atk def spd sat sdf
db NORMAL, NORMAL ; type
db 45 ; catch rate
db 210 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 15 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/hoenn/slaking/fr... |
SECTION code_driver
PUBLIC _asci1_putc
EXTERN asm_asci1_putc
defc _asci1_putc = asm_asci1_putc
EXTERN asm_asci1_need
defc NEED = asm_asci1_need
|
; A005173: Number of trees of subsets of an n-set.
; 0,1,12,61,240,841,2772,8821,27480,84481,257532,780781,2358720,7108921,21392292,64307941,193185960,580082161,1741295052,5225982301,15682141200,47054812201,141181213812,423577195861,1270798696440
mov $1,1
mov $2,3
mov $3,2
lpb $0
sub $0,1
mul $3,3
add $3,2
add... |
; A328984: If n is even, a(n)=floor((5t+1)/2) where t=n/2; if n==1 (mod 4) then a(n)=10t+1 where t=(n-1)/4; and if n==3 (mod 4) then a(n)=10t+7 where t=(n-3)/4.
; 1,3,7,5,11,8,17,10,21,13,27,15,31,18,37,20,41,23,47,25,51,28,57,30,61,33,67,35,71,38,77,40,81,43,87,45,91,48,97,50,101,53,107,55,111,58,117,60,121,63,127,65,... |
<%
from pwnlib.shellcraft.thumb.linux import syscall
%>
<%page args="fd, length"/>
<%docstring>
Invokes the syscall ftruncate64. See 'man 2 ftruncate64' for more information.
Arguments:
fd(int): fd
length(off64_t): length
</%docstring>
${syscall('SYS_ftruncate64', fd, length)}
|
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld a, 30
ldff(00), a
ld a, 01
ldff(4d), a
stop, 00
ld c, 41
ld b, 02
ld d, 03
lbegin_waitm2:
ldff a, (c)
and a, d
cmp a, b
jrnz lbegin_waitm2
ld a, 08
ldff(c), a
ld a, 02
ldff(ff), a
ei
ld ... |
//==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
@copyright 2016 J.T.Lapreste
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*... |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE-Next
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-present Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any... |
; A139293: (2^(2p - 1)/8)-1, where p is prime.
; 0,3,63,1023,262143,4194303,1073741823,17179869183,4398046511103,18014398509481983,288230376151711743,1180591620717411303423,302231454903657293676543,4835703278458516698824703
seq $0,6005 ; The odd prime numbers together with 1.
mov $1,4
pow $1,$0
div $1,48
mul $1,3
mov ... |
; A134353: Row sums of triangle A134352.
; 1,2,8,16,48,96,256,512,1280,2560,6144,12288,28672,57344,131072,262144,589824,1179648,2621440,5242880,11534336,23068672,50331648,100663296,218103808,436207616,939524096,1879048192,4026531840,8053063680,17179869184
add $0,2
mov $1,2
pow $1,$0
div $0,2
mul $1,$0
div $1,4
|
; A010993: Binomial coefficient C(n,40).
; 1,41,861,12341,135751,1221759,9366819,62891499,377348994,2054455634,10272278170,47626016970,206379406870,841392966470,3245372870670,11899700525790,41648951840265,139646485582065,449972009097765,1397281501935165,4191844505805495,12176310231149295,34315056105966195,9399341455112... |
wordsize 16
;This program is ment to be a bootloader for the 16 bits microcontroller
;It wait for 4 seconds for an UART message and if there is, it load it in RAM.
;This bootloader never uses the RAM, only peripherals (uart, exti, timer, timer2) and registers
;R1 contain the UART timeout
;R2 contain the target RAM add... |
; A049206: Maximum mean distance between cards during perfect faro shuffles, with cut, to return to original order in A024222.
; 0,1,1,2,3,3,3,4,5,5,5,6,7,7,7,8,9,9,9,10,11,11,11,12,13,13,13,14,15,15,15,16,17,17,17,18,19,19,19,20,21,21,21,22,23,23,23,24,25,25,25,26,27,27,27,28,29,29,29,30,31,31,31,32,33,33,33,34,35,35,... |
; A017437: a(n) = 11*n + 4.
; 4,15,26,37,48,59,70,81,92,103,114,125,136,147,158,169,180,191,202,213,224,235,246,257,268,279,290,301,312,323,334,345,356,367,378,389,400,411,422,433,444,455,466,477,488,499,510,521,532,543,554,565,576,587,598,609,620,631,642,653,664,675,686,697,708,719,730,741,752,763,774,785,796,807,818,... |
; A033484: a(n) = 3*2^n - 2.
; 1,4,10,22,46,94,190,382,766,1534,3070,6142,12286,24574,49150,98302,196606,393214,786430,1572862,3145726,6291454,12582910,25165822,50331646,100663294,201326590,402653182,805306366,1610612734,3221225470,6442450942,12884901886,25769803774,51539607550,103079215102,206158430206,412316860414,82... |
;
; Copyright 2019 Roman Skabin
;
include math.inc
.code
if _X64
_DllMainCRTStartup@20 proc
mov rax, 1
ret
_DllMainCRTStartup@20 endp
include math_fact.inc
include math_f64_x64.inc
include math_f32_x64.inc
else
_DllMainCRTStartup@12 proc
mov e... |
; Assembly Level Program 4b
; Display messages FIRE and HELP alternately with flickering effects on a 7-segment display interface for a suitable period of time. Ensure a flashing rate that makes it easy to read both the messages (Examiner does not specify these delay values nor is it necessary for the student to comput... |
; A134159: a(n) = 13 + 165 n + 756 n^2 + 1470 n^3 + 1029 n^4.
; 13,3433,31591,130351,370273,846613,1679323,3013051,5017141,7885633,11837263,17115463,23988361,32748781,43714243,57226963,73653853,93386521,116841271,144459103,176705713,214071493,257071531,306245611
mul $0,7
add $0,3
bin $0,2
mul $0,2
bin $0,2
sub $0,15
d... |
; int ispunct(int c)
SECTION code_clib
SECTION code_ctype
PUBLIC ispunct
EXTERN asm_ispunct, error_zc
IF __CLASSIC && __CPU_GBZ80__
PUBLIC _ispunct
_ispunct:
ld hl,sp+2
ld a,(hl+)
ld h,(hl)
ld l,a
ENDIF
ispunct:
inc h
dec h
jp nz, error_zc
ld a,l
call asm_ispunct
ld l,h
IF __CP... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2020 The PIVX developers
// Copyright (c) 2021 The DECENOMY Core Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses... |
; A014166: Apply partial sum operator 4 times to Fibonacci numbers.
; Submitted by Christian Krause
; 0,1,5,16,41,92,189,365,674,1204,2098,3588,6050,10093,16703,27476,44995,73440,119575,194345,315460,511576,829060,1342936,2174596,3520457,5698329,9222440,14924829,24151764,39081553,63238773,102326310,165571628,267905078,... |
; A016811: (4n)^11.
; 0,4194304,8589934592,743008370688,17592186044416,204800000000000,1521681143169024,8293509467471872,36028797018963968,131621703842267136,419430400000000000,1196683881290399744,3116402981210161152,7516865509350965248,16985107389382393856,36279705600000000000,73786976294838206464,14374675177069032243... |
/*
* Copyright (c) 2015 - 2022, 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 condition... |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... |
###############################################################################
# Copyright 2019 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... |
#include <iostream>
#include <cstring>
using namespace std;
struct data
{
int dia, mes, ano;
};
int main()
{
data dataNasc, *ptr;
int d;
cout << "Digite sua data de nascimento no formato aaaammdd: " << endl;
cin >> d;
ptr=&dataNasc;
ptr->dia=d/10000;
ptr->mes=(d/100) % 100;
ptr... |
;Flash "0" on the screen repeatedly
start:
LD V0, 0x10
LD V1, 0x10
LD I, 0x0
startloop:
LD V3, 0x2
LD DT, V3 ;flash every two seconds
wait:
LD V3, DT
SE V3, 0 ;if dt == 0 draw
jp wait
draw:
DRW V0, V1, 5
jp startloop
|
// Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... |
.org $000
jsr main
_end_program_:
jmp _end_program_
rand_seed_H:
.byte $AC
rand_seed_L:
.byte $E1
x:
.byte $00
y:
.byte $00
piece:
.byte $00
next:
.byte $00
rotation:
.byte $00
speed:
.byte $00
rand_return:
delay_ms_H:
initBoard_i:
.byte 0
rand_bit_H:
delay_ms_L:
initBoard_j:
.byte 0
rand_bit_L:
delay_counter:
initBoar... |
; A100571: Cubes m^3 such that m^3 is the sum of m-1 consecutive primes plus a larger prime.
; 8,27,64,125,216,343,729,1000,1331,1728,2197,2744,3375,4096,4913,5832,6859,8000,9261,10648,12167,13824,15625,17576,19683,21952,24389,27000,29791,32768,35937,39304,42875,46656,50653,54872,59319,64000
mov $2,$0
add $0,2
lpb $2
... |
//===-- NetBSDSignals.cpp -------------------------------------------------===//
//
// 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
//
//===---------------------------... |
object_const_def ; object_event constants
const PLAYERSHOUSE2F_CONSOLE
const PLAYERSHOUSE2F_DOLL_1
const PLAYERSHOUSE2F_DOLL_2
const PLAYERSHOUSE2F_BIG_DOLL
PlayersHouse2F_MapScripts:
db 0 ; scene scripts
db 2 ; callbacks
callback MAPCALLBACK_NEWMAP, .InitializeRoom
callback MAPCALLBACK_TILES, .SetSpawn
; u... |
#include <cstdint>
#include <string>
#include <string.h>
#include <vector>
#include "Select.hpp"
using namespace std;
Select::Select(Operator* input, unsigned regId, string value)
: input(input),
registerId(regId),
value(new Register()) {
this->value->setString(value);
}
Select::Select(Operator* input, unsi... |
;set up some helpful labels
CLEAR = $E544
CHROUT = $FFD2
.segment "BASICSTUB"
.byte $00
.byte $C0
.code
main:
jsr CLEAR
ldx #0
loop:
lda greeting,x
cmp #0
beq finish
jsr CHROUT
inx
jmp loop
finish:
rts
.data
greeting:
.byte "HELLO, WORLD!"
.byte $00
|
; TEST
; a = 0xF0
; b = 0x0F
; c = 0xF0
; d = 0x0F
; [0x8F00] = 0xF0
; [0x8F01] = 0x0F
; [0x8FF0] = 0xF0
; [0x8FF1] = 0x0F
mw a, 0xF0
mw b, 0x0F
sw [0x8F00], a
sw [0x8F01], b
sw [0x8FF0], a
sw [0x8FF1], b
lw a, [0x8F00]
lw b, [0x8F01]
lw c, [0x8FF0]
lw d, [0x8FF1]
lda [0x8FF1]
lw d
halt
|
.include inc.asm
.def CTR, R5
.def MAX, R1
.def ADDR, R2
.def LEN, R3
.def VAL, R4
init:
MOVL CTR, 0
MOVH MAX, 0x00
MOVL MAX, 0x0f
middle:
CMP CTR, MAX
JE next
STX CTR ,0, 0
ADDI CTR, -1
J middle
next:
MOVH CTR, 0
MOVL CTR, 0
J middle
.macro _print string
LD ADDR, ... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; interrupt routines
;
;
; ------
; $Id: ozinstisr.asm,v 1.2 2003/10/27 16:56:57 stefano Exp $
;
XLIB ozinstisr
ozinstisr:
ld a,(0)
cp F3h ;di
jr nz,error... |
; A214863: Numbers n such that n XOR 11 = n - 11.
; 11,15,27,31,43,47,59,63,75,79,91,95,107,111,123,127,139,143,155,159,171,175,187,191,203,207,219,223,235,239,251,255,267,271,283,287,299,303,315,319,331,335,347,351,363
mov $1,$0
mul $0,2
mod $1,2
sub $0,$1
mul $0,4
add $0,11
|
;
; File: syscalls.asm
;
; Copyright (c) 2017-2018 Sydney Erickson, John Davis
;
; 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... |
get_int10h_cursor_coordinates:
push ax
push bx
push cx
mov ah, 03h ; get cursor position
mov bh, 00h ; page 0
int 10h
pop cx
pop bx
pop ax
ret ; DH = row, DL = column
store_cursor_coordinates:
push dx
call get_int10h_cursor_coordinates
mov [cursor_row], dh
mov [cursor_column], dl
pop dx
ret
get_cursor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.