text stringlengths 1 1.05M |
|---|
/*
* fs/exec/elf-loader.cpp
*
* InfOS
* Copyright (C) University of Edinburgh 2016. All Rights Reserved.
*
* Tom Spink <tspink@inf.ed.ac.uk>
*/
#include "infos/define.h"
#include <infos/fs/exec/elf-loader.h>
#include <infos/fs/file.h>
#include <infos/kernel/kernel.h>
#include <infos/kernel/process.h>
#include... |
; A023542: Convolution of natural numbers with Beatty sequence for tau^2 A001950.
; 2,9,23,47,84,136,206,296,409,548,715,913,1145,1413,1720,2068,2460,2899,3387,3927,4521,5172,5883,6656,7494,8400,9376,10425,11549,12751,14034,15400,16852,18393,20025,21751,23573,25494,27517,29644
mov $19,$0
mov $21,$0
add $21,1
lpb $21
... |
.MODEL SMALL
.STACK 100H
OUTPUT MACRO MSG
LEA DX,MSG
MOV AH,9
INT 21H
ENDM
INPUT MACRO
MOV AH,1
INT 21H
ENDM
.DATA
STRING1 DB ?
REVERSED DB ?
MSG1 DB 13, 10, "First Digit:$"
MSG2 D... |
; A095894: a(2n) = 6n^2+7n+1; a(2n+1) = 6n^2+13n+7.
; 1,7,14,26,39,57,76,100,125,155,186,222,259,301,344,392,441,495,550,610,671,737,804,876,949,1027,1106,1190,1275,1365,1456,1552,1649,1751,1854,1962,2071,2185,2300,2420,2541,2667,2794,2926,3059,3197,3336,3480,3625,3775,3926,4082,4239,4401,4564,4732,4901,5075,5250,5430,... |
//
// Created by Grishka on 10.08.2018.
//
#include "VideoRenderer.h"
#ifdef __ANDROID__
#include "../os/android/VideoRendererAndroid.h"
#elif defined(__APPLE__) && !defined(TARGET_OSX32)
#include "../os/darwin/SampleBufferDisplayLayerRenderer.h"
#endif
std::vector<uint32_t> tgvoip::video::VideoRenderer::GetAvailabl... |
;===============================================================================
; Copyright 2014-2021 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
;
; http://www.apa... |
; ::: data1.txt
0001_1000
; ::: data2.txt
101
; ::: data3.txt
0101
1010
1 1 1 1
0101
1010
; ::: data4.txt
0b1101
; :::
#d incbinstr("data1.txt") ; = 0x18
; :::
#d incbinstr("data2.txt") ; = 0b101
; :::
#d incbinstr("data3.txt") ; = 0x5af5a
; :::
#d incbinstr("data4.txt") ; error: invalid character
; :::
#d ... |
BLACK equ 00000000b
BLUE equ 00000001b
GREEN equ 00000010b
CYAN equ 00000011b
RED equ 00000100b
PINK equ 00000101b
BROWN equ 00000110b
GRAY equ 00000111b
DARK_GRAY equ 00001000b
BRIGHT_BLUE equ 00001001b
BRIGHT_GREEN equ 00001010b
BRIGHT_RED ... |
#include "BoardSPI.h"
#include "Definitions.h"
BoardSPI::BoardSPI() {
}
void BoardSPI::initialize() {
spi.begin();
spi.setSpeed(4000000); // use 4MHz for ADS and LIS3DH
spi.setMode(DSPI_MODE0); // default to SD card mode!
}
void BoardSPI::activateADS() {
spi.setMode(DSPI_MODE1);
spi.s... |
; exit(99) Linux x86
;
; Shellcode WITH NULL BYTES to exit(99). Used solely for testing.
; by Daniel Roberson (daniel @ planethacker . net)
;
BITS 32
mov eax, 1
mov ebx, 99
int 0x80
|
; A003881: Decimal expansion of Pi/4.
; Submitted by Christian Krause
; 7,8,5,3,9,8,1,6,3,3,9,7,4,4,8,3,0,9,6,1,5,6,6,0,8,4,5,8,1,9,8,7,5,7,2,1,0,4,9,2,9,2,3,4,9,8,4,3,7,7,6,4,5,5,2,4,3,7,3,6,1,4,8,0,7,6,9,5,4,1,0,1,5,7,1,5,5,2,2,4,9,6,5,7,0,0,8,7,0,6,3,3,5,5,2,9,2,6,6,9
mov $1,1
mov $2,1
mov $3,$0
mul $3,5
lpb $3
m... |
.386
END
|
; A094729: Number of connected ordered 2-element multiantichains on a labeled n-set.
; 0,1,1,7,37,151,541,1807,5797,18151,55981,171007,519157,1569751,4733821,14250607,42850117,128746951,386634061,1160688607,3483638677,10454061751,31368476701,94118013007,282379204837,847187946151,2541664501741,7625194831807,228759871485... |
section .data
sy: db 1d,
sx: db 40d,
c: db 1d,
t: db 0d,
printchar: db 0d,
section .text
global _start
_start:
call clearscreen
_start2:
call init
call printthreetriangles
inc byte [sy]
add byte [sx], 5d
startl2:
mov cl,[c]
startl1:
push cx
call printthreetriangles
pop cx
sub byte [sx], 7d
sub byte [sy... |
; Read AMX Mouse
; 08.2003 aralbrec
PUBLIC INMouseAMX
EXTERN _in_AMXcoordX, _in_AMXcoordY
; exit : C = button state 00000MRL active high
; B = X coordinate (0..255)
; A = Y coordinate (0..191)
; uses : AF,BC,HL
.INMouseAMX
ld c,$1f
in a,($df) ; mouse button state will randomly
or c ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r9
push %rbp
push %rdx
push %rsi
lea addresses_WT_ht+0x19278, %r11
nop
nop
nop
nop
cmp $38388, %r9
mov (%r11), %bp
nop
sub $47796, %rsi
lea addresses_WT_ht+0x1358a, %r9
nop
nop
add %r13, %r13
movb (%r9), %dl
nop
nop
cmp $16927, %rdx
lea ad... |
; A224329: Number of idempotent n X n 0..4 matrices of rank n-1.
; 1,18,147,996,6245,37494,218743,1249992,7031241,39062490,214843739,1171874988,6347656237,34179687486,183105468735,976562499984,5187988281233,27465820312482,144958496093731,762939453124980,4005432128906229
mov $3,$0
lpb $0
sub $0,1
mov $2,5
lpe
add $... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x19c04, %rdx
nop
nop
nop
nop
nop
sub $7339, %rbp
mov (%rdx), %r15d
dec %r13
lea addresses_normal_ht+0x1d050, %r9
nop
nop
and $62971, %r12
movups (%r9), %xmm4
vpextrq... |
; A041683: Denominators of continued fraction convergents to sqrt(360).
; 1,1,37,38,1405,1443,53353,54796,2026009,2080805,76934989,79015794,2921503573,3000519367,110940200785,113940720152,4212806126257,4326746846409,159975692596981,164302439443390,6074863512559021,6239165952002411,230684837784645817,236924003736648228,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x135c5, %rbp
nop
nop
add $47309, %r15
movb (%rbp), %dl
nop
nop
nop
and %rdx, %rdx
lea addresses_WT_ht+0x199c5, %rsi
lea addresses_normal_ht+0x3645, %rdi
nop
nop
nop
nop
nop
inc %r13
mo... |
/*
* Copyright 2022 HEAVY.AI, 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 ... |
; A060374: a(n)=p+q, where n=p-q and p, q, p+q are in A005836 (integers written without 2 in base 3).
; Submitted by Christian Krause
; 0,1,4,3,4,13,12,13,10,9,10,13,12,13,40,39,40,37,36,37,40,39,40,31,30,31,28,27,28,31,30,31,40,39,40,37,36,37,40,39,40,121,120,121,118,117,118,121,120,121,112,111,112,109,108,109,112,111... |
; A173263: Successive numbers n such that ChebyshevT[n/2, n] is not an integer.
; 3,5,9,11,13,15,19,21,23,25,27,29,33,35,37,39,41,43,45,47,51,53,55,57,59,61,63,65,67,69,73,75,77,79,81,83,85,87,89,91,93,95,99,101,103,105,107,109,111,113,115,117,119,121,123,125,129,131,133,135,137,139,141,143,145,147,149,151,153,155,157,... |
; A091037: Second column (k=5) of array A090214 ((4,4)-Stirling2) divided by 4*4!=96.
; Submitted by Jamie Morken(s3.)
; 1,144,17856,2156544,259117056,31102009344,3732432224256,447896453382144,53747684481171456,6449724779548114944,773967036949154758656,92876045955579714207744
add $0,1
mov $3,1
lpb $0
sub $0,1
add ... |
; Boot headers for multiboot 2
; This lets the OS boot with any multiboot 2 compatible bootloader
; GRUB is the chosen bootloader for its ubiquity
section .multiboot_header
header_start:
dd 0xe85250d6 ; set magic number
dd 0 ; set protected mode
dd header_end - header_start ; set length of the he... |
#include "../../stdafx.h"
#include "IConnection.h"
#include "Connection.h"
namespace Cobalt
{
namespace Poco
{
namespace Connection
{
Connection::Connection():
connected_( false ),
connection_( nullptr ) {
}
bool Connection::isAvailable() const {
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1822b, %rsi
lea addresses_A_ht+0x532b, %rdi
nop
nop
nop
nop
nop
add $6503, %r12
mov $25, %rcx
rep movsb
nop
nop
cmp $48594, %r9
lea addresses_UC_ht+0x1c7f3, %rax
nop
nop
nop
nop
nop
sub... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xef3b, %r14
nop
nop
nop
nop
sub %r15, %r15
movups (%r14), %xmm0
vpextrq $0, %xmm0, %r8
inc %rdi
lea addresses_normal_ht+0xc323, %rsi
lea addresses_UC_ht+0xe155, %rdi
nop
nop
no... |
;
; Enterprise 64/128 specific routines
; by Stefano Bodrato, 2011
;
; set_exos_variable(unsigned char variable, unsigned char value);
;
;
; $Id: set_exos_variable_callee.asm,v 1.5 2016-06-19 20:17:32 dom Exp $
;
SECTION code_clib
PUBLIC set_exos_variable_callee
PUBLIC _set_exos_variable_callee
PUBLIC ASMDISP... |
copyright zengfr site:http://github.com/zengfr/romhack
00146E movea.w (A4)+, A1 [base+2F4]
001474 subq.w #1, ($306,A5) [base+2F4]
001540 move.w A0, -(A4) [base+2F4]
001546 addq.w #1, ($306,A5) [base+2F4]
01A822 move.w A6, ($2f4,A5) [base+306]
01A826 lea ($99c,A5), A0 [base+2F4]
copyright zengfr site:http... |
.model small
.data
msg_1 db 10,13,'Enter the Number: $'
msg_2 db 10,13,'0 1 $'
num dw ?
a dw 0h
b dw 01h
.code
mov AX,@data
mov DS,AX
lea DX,msg_1
call printf
call read_8bit
mov cx,num ;counter till nth number
sub cx,02h ;decrement by 2 as first 2 are printed
lea DX,msg_2
call printf
loop1: ;Fibonacci loop
m... |
/**
* bmc API generated from bmc.yang
*
* NOTE: This file is auto generated by polycube-codegen
* https://github.com/polycube-network/polycube-codegen
*/
/* Do not edit this file manually */
#include "PortsBase.h"
#include "../Bmc.h"
PortsBase::PortsBase(polycube::service::Cube<Ports> &parent,
std::shared_ptr<... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1c8b3, %rsi
lea addresses_WC_ht+0x16eb3, %rdi
nop
nop
nop
xor $54717, %r14
mov $84, %rcx
rep movsb
nop
nop
nop
nop
nop
sub $45437, %r14
lea addresses_A_ht+0x16b3, %rsi
lea addresses_WT_ht+0x55b3, %rdi
nop... |
.include "defaults_request.asm"
table_file_jp equ "exe6-utf8.tbl"
table_file_en equ "bn6-utf8.tbl"
game_code_len equ 3
game_code equ 0x4252354A // BR5J
game_code_2 equ 0x42523545 // BR5E
game_code_3 equ 0x42523550 // BR5P
card_type equ 4
card_id equ 8
card_no equ "008"
card_sub equ "Request Event Card 008... |
; A126271: a(n) = order of Galois group of the polynomial P(x) + n if P(x) + n (after dividing by the gcd of its coefficients) is irreducible, otherwise a(n) = 0, where P(x) = 128*x^8 - 256*x^6 + 160*x^4 - 32*x^2 + 1.
; 32,32,16,32,32,32,32,32,32,16,32,32,32,16,32,32,32,32,32,32,32,32,32,32,32,32,16,16,32,32,32
seq $0... |
; A136289: Start with three pennies touching each other on a tabletop. In each generation, add pennies subject to the rule that a penny can be placed only when (at least) two pennies are already in position to determine its position; sequence gives number of pennies added at generation n.
; 3,3,6,9,9,12,15,15,18,21,21,... |
; A199706: Number of -n..n arrays x(0..3) of 4 elements with zero sum and no two neighbors equal.
; 8,52,168,380,724,1236,1940,2872,4068,5552,7360,9528,12080,15052,18480,22388,26812,31788,37340,43504,50316,57800,65992,74928,84632,95140,106488,118700,131812,145860,160868,176872,193908,212000,231184,251496
mov $2,$0
cal... |
; Day - 20 Date- 01 May,2021
; problem - print Inverted right triangle of numbers where input(0~9)
.model small
.stack 100h
include 'emu8086.inc'
.data
msg db "input only number 0~9 $"
n_line db 0ah,0dh,"$" ;for new line
i db ?
.code
main proc
mov ax,@data
mov ds,ax
@input:
lea dx,msg
mov... |
mov ax, 0xb800
mov ds,ax
mov byte[0],'H'
halt:
jmp halt
times 510-($-$$) db 0
db 0x55,0xaa |
assume cs:code, ds:data, ss:stack
code segment
start:mov ax, stack
mov ss, ax
mov sp, 16
mov ax, data
mov ds, ax
push ds:[0]
push ds:[2]
pop ds:[2]
pop ds:[0]
mov ax, 4c00h
int 21h
code ends
data segment
dw 0123h, 0456h
data ends
stack segment
dw 0,0
stack en... |
.gba
.thumb
.open "rom.gba", "test.gba", 0x08000000
// -----------------------------------------------------------------------------
.org allocation
.area allocation_size
.importobj "build/linked.o"
.endarea
// -----------------------------------------------------------------------------
.if INSERT_INGAME_TRAD... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r14
push %rbp
lea addresses_WC_ht+0x1ed74, %r11
nop
nop
nop
nop
nop
and $28745, %r10
mov $0x6162636465666768, %r14
movq %r14, (%r11)
nop
nop
nop
and $45067, %r11
lea addresses_normal_ht+0x1c574, %r12
nop
inc %rbp
mov (%r12), %r10d
and %r12... |
#include <iostream>
using namespace std;
int divisiable(int n, int a, int b){
int c1=n/a;
int c2=n/b;
int c3=n/(a*b);
return c1+c2-c3;
}
int main()
{
int n, a, b;
cin>>n>>a>>b;
cout<<divisiable(n,a,b)<<endl;
return 0;
}... |
; A173384: a(n) = A001803(n) - A046161(n).
; Submitted by Jon Maiga
; 0,1,7,19,187,437,1979,4387,76627,165409,707825,1503829,12706671,26713417,111868243,233431331,7770342787,16124087129,66765132341,137948422657,1138049013461,2343380261227,9636533415373,19787656251221,324664400940311,665130127685341,2722510327359877,556... |
#include <iostream>
#include <string>
#include <jsoncons/json.hpp>
#include "protocol.h"
#include "connection.h"
#include "game_logic.h"
using namespace hwo_protocol;
void run(hwo_connection& connection, const std::string& name,
const std::string& key, const std::string& track = "", const std::string& pwd = "", c... |
# Beginning of the data section
.data
i: .word 0
m0: .word 0
n1: .word 0
num_5: .word 5
num_1: .word 1
# Beginning of the code section
.text
lib_exit:
# Callee Convention (entering exit):
sw $s0, -4($sp)
sw $s1, -8($sp)
sw $s2, -12($sp)
sw $s3, -16($sp)
sw $s4, -20($sp... |
.loadtable "m12-give-strings/m12-give-table.tbl"
.str "@\creceiver took\n the \citem\n from \csender's stuff." |
; A004515: Generalized nim sum n + n in base 5.
; Submitted by Christian Krause
; 0,2,4,1,3,10,12,14,11,13,20,22,24,21,23,5,7,9,6,8,15,17,19,16,18,50,52,54,51,53,60,62,64,61,63,70,72,74,71,73,55,57,59,56,58,65,67,69,66,68,100,102,104,101,103,110,112,114,111,113,120,122,124,121,123,105,107,109,106,108,115,117,119,116,11... |
.text
addi $t1,$0,-1
addi $t2,$t1,-3
addi $t3,$t2,10
addi $t4,$t2,5
addi $t5,$t4,5
addi $t6,$t5,-125
addi $t7,$t7,1235678 |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x3d4d, %rsi
lea addresses_A_ht+0x1676d, %rdi
nop
nop
nop
cmp %rdx, %rdx
mov $74, %rcx
rep movsq
cmp $48860, %r11
lea addresses_WC_ht+0x516d, %rsi
lea addresses_A_ht+0x88d, %r... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
namespace Poisson {
/// \brief Types of background geometries for the Poisson equation
enum class Geometry {
/// Euclidean (flat) manifold with Cartesian coordinates, i.e. the metric has
/// components \f$\gamma_{ij} = \delta_{ij}\... |
; A314148: Coordination sequence Gal.4.139.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,11,16,22,27,33,38,43,49,54,60,65,71,76,81,87,92,98,103,109,114,119,125,130,136,141,147,152,157,163,168,174,179,185,190,195,201,206,212,2... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#define BOOST_TEST_MODULE Reef Test Suite
#include "test_reef.h"
#include "chainparams.h"
#include "consensus/consensus.h"
... |
; A205382: s(k)-s(j), where (s(k),s(j)) is the least such pair for which n divides their difference, and s(j)=(2j-1)^2.
; 8,8,24,8,40,24,56,8,72,40,88,24,104,56,120,16,136,72,152,40,168,88,184,24,200,104,216,56,232,120,248,32,264,136,280,72,296,152,312,40,328,168,344,88,360,184,376,48,392,200,408,104,424,216,440,56,456... |
//===- FDRRecordConsumer.h - XRay Flight Data Recorder Mode Records -------===//
//
// 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
//
//===---------------------------... |
ORG #FE00
EI
LD B,8
FAD_ML PUSH BC
HALT
HALT
HALT
HALT
LD HL,#5800
LD BC,#300
FAD_LP LD D,(HL)
LD A,D
AND 1+2+4
OR A
JR Z,NODINK
DEC D
NODINK LD A,D
AND 8+16+32
OR A
JR Z,NODPA... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r15
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xab17, %rsi
lea addresses_WT_ht+0xc657, %rdi
nop
nop
nop
nop
lfence
mov $34, %rcx
rep movsw
nop
nop
and %rax, %rax
lea addresses_A_ht+0xa94f, %rsi
lea addresses_WT_ht+0x13487,... |
TITLE STRINGFP - Floating Point String Functions
PAGE 56,132
;***
; STRINGFP - Floating Point ST$ functions
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
;
; BASIC Syntax mapping to included runtime entry points:
;
;
; - STR$ Function -
;
; v$ = STR$(x)
;
; Examples:
;
; v$ = STR$(b@) v$ = ... |
; Wonderswan test
%include "Wonderswan.inc"
%macro memcopy 4
xor ax,ax
mov es,ax
mov di,%1
mov ax,%2
mov ds,ax
mov si,%3
mov cx,%4
cld
rep movsw
%endmacro
; ================================
section .bss start=0
section .data v... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x15364, %r11
and %rbx, %rbx
mov $0x6162636465666768, %r15
movq %r15, %xmm1
movups %xmm1, (%r11)
nop
nop
nop
nop
dec %rsi
lea addresses_A_ht+0xa1d5, %rsi
lea addresses_A_ht+0x659a, %rdi
n... |
# $s0 = base
main:
lui $s0, 0x1004 # base = 0x10040000
jal input # input()
jal sort # sort()
li $v0, 10 # $v0 = 10
syscall # exit
# $s1 = n, $s2 = i
sort:
subi $sp, $sp, 4 # alloc
sw $ra, ($sp) # store $ra
subi $s1, $s1, 1 ... |
;--------------------------------------------------------
; Category 7 Function 64 Get event queue status
;--------------------------------------------------------
;
;
;
IOMGETQUESTATUS PROC NEAR
RET
IOMGETQUESTATUS ENDP
|
; A093260: a(n) is the largest number such that all of a(n)'s length-n substrings are distinct and divisible by 60.
; 0,600,96000,9960000,999600000,99996000000,9999960000000,999999600000000,99999996000000000,9999999960000000000,999999999600000000000,99999999996000000000000,9999999999960000000000000,99999999999960000000... |
[bits 32]
[section .text]
INT_VECTOR_SYS_CALL equ 0x80
_NR_LSEEK EQU 14
global lseek
lseek:
mov eax, _NR_LSEEK
mov ebx, [esp + 4]
mov ecx, [esp + 8]
mov edx, [esp + 12]
int INT_VECTOR_SYS_CALL
ret |
#include <Catch.hpp>
#include "polyhook2/PE/EatHook.hpp"
#include "polyhook2/Tests/TestEffectTracker.hpp"
EffectTracker eatEffectTracker;
typedef void(* tEatTestExport)();
tEatTestExport oEatTestExport;
extern "C" __declspec(dllexport) NOINLINE void EatTestExport()
{
}
NOINLINE void hkEatTestExport()
{
eatEffect... |
assume cs:code, ds:datasg
datasg segment
db 'BaSic'
db 'iNfOrMaTiOn'
datasg ends
code segment
start:
mov ax, datasg
mov ds, ax
mov bx, 0
mov cx, 5
s: mov dl, ds:[bx]
and dl, 11011111B
mov ds:[bx], dl
inc bx
loop s
mov ... |
_VictoryRoad1BattleText1::
text "I wonder if you"
line "are good enough"
cont "for me!"
done
_VictoryRoad1EndBattleText1::
text "I"
line "lost out!"
prompt
_VictoryRoad1AfterBattleText1::
text "I never wanted to"
line "lose to anybody!"
done
_VictoryRoad1BattleText2::
text "I can see you're"
line "good! ... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE390_Error_Without_Action__empty_catch_13.cpp
Label Definition File: CWE390_Error_Without_Action__empty_catch.label.xml
Template File: point-flaw-13.tmpl.cpp
*/
/*
* @description
* CWE: 390 Error Without Action
* Sinks:
* GoodSink: Catch and handle the exc... |
dnl Intel Atom mpn_bdiv_q_1, mpn_pi1_bdiv_q_1 -- schoolbook Hensel
dnl division by 1-limb divisor, returning quotient only.
dnl Copyright 2011 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it und... |
; A078642: Numbers with two representations as the sum of two Fibonacci numbers.
; 4,6,10,16,26,42,68,110,178,288,466,754,1220,1974,3194,5168,8362,13530,21892,35422,57314,92736,150050,242786,392836,635622,1028458,1664080,2692538,4356618,7049156,11405774,18454930,29860704,48315634,78176338,126491972,204668310,331160282,... |
// Copyright (c) 2020 The Orbit 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 "CaptureWindow.h"
#include "App.h"
#include "Capture.h"
#include "EventTracer.h"
#include "FunctionUtils.h"
#include "GlUtils.h"
#include "absl... |
; A344444: Completely additive with a(2) = 12, a(3) = 19; for prime p > 3, a(p) = ceiling((a(p-1) + a(p+1))/2).
; Submitted by Jamie Morken(s4)
; 0,12,19,24,28,31,34,36,38,40,42,43,45,46,47,48,49,50,51,52,53,54,55,55,56,57,57,58,59,59,60,60,61,61,62,62,63,63,64,64,65,65,66,66,66,67,67,67,68,68,68,69,69,69,70,70,70,71,7... |
; unsigned int zxn_addr_from_mmu(unsigned char mmu)
SECTION code_clib
SECTION code_arch
PUBLIC _zxn_addr_from_mmu_fastcall
EXTERN asm_zxn_addr_from_mmu
defc _zxn_addr_from_mmu_fastcall = asm_zxn_addr_from_mmu
|
;
; This file is part of QBDI.
;
; Copyright 2017 Quarkslab
;
; 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 applicabl... |
#define TELEOP_DURATION 2.0
#include "vehicles/multirotor/api/MultirotorRpcLibClient.hpp"
#include "common/Common.hpp"
#include <ros/ros.h>
#include <geometry_msgs/Twist.h>
#include <cmath>
using namespace std;
string localization_method;
msr::airlib::MultirotorRpcLibClient * client;
int main(int argc, char **argv)
... |
###############################################################################
# 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... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 96
call lwaitly_b
ld a, 40
ldff(41), a
ld a, 02
ldff(ff), a
xor a, a
ldff(0f), a
ei
ld a, b
inc a
inc a
ldff(45), a
ld c, 41
.text@1000
lstatint:
ld a, 99
ldff(45), a
.text@1067
ldff... |
; Kernel error screen - give error code in A. Will not return.
; Set bit 7 of A if it may be possible to recover
panic:
di
ld sp, kernelGarbage + kernelGarbageSize
push af
#ifdef COLOR
; Set GPIO config
ld a, 0xE0
out (PORT_GPIO_CONFIG), a
call colorLcdOn
call cle... |
; A108122: G.f.: (1-2*x^2)/(1-x-2*x^2-x^3).
; 1,1,1,4,7,16,34,73,157,337,724,1555,3340,7174,15409,33097,71089,152692,327967,704440,1513066,3249913,6980485,14993377,32204260,69171499,148573396,319120654,685438945,1472253649,3162252193,6792198436,14588956471,31335605536,67305716914,144565884457,310512923821,666950409649,... |
; All header by CodePulse
section .multiboot_header
header_start:
; magic number
dd 0xe85250d6 ; multiboot2
; architecture
dd 0 ; protected mode i386
; header length
dd header_end - header_start
; checksum
dd 0x100000000 - (0xe85250d6 + 0 + (header_end - header_start))
; end tag
dw 0
dw 0
dd 8
header_end:
|
#include<iostream>
#include<memory>
using namespace std;
class User{
public:
User(){
cout<<"User Created\n";
}
~User(){
cout<<"User Destroyed\n";
}
void testFunc(){
cout<<"I am a test function\n";
}
};
int main(){
{
shared_ptr<User> tim = make_shared<User... |
;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
; Copyright © 2020, VideoLAN and dav1d authors
; Copyright © 2020, Two Orioles, LLC
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
;
; 1. Redistributions of source code must retain the above copy... |
.ORIG x3000
AND R5, R5, #0
AND R3, R3, #0
ADD R3, R3, #8
LEA R0, B
LDW R1, R0, #1
LDW R1, R1, #0
ADD R2, R1, #0
AGAIN ADD R2, R2, R2
ADD R3, R3, #-1
BRp AGAIN
LDW R4, R0, #0
AND R1, R1, R4
NOT R1, R1
ADD R1, R1, #1
ADD R2, R2, R1
BRnp NO
ADD R5, R5, #1
NO HALT
B .FILL XFF00
A .FILL X4000
.END
|
; A284404: Binary representation of the x-axis, from the origin to the right edge, of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 913", based on the 5-celled von Neumann neighborhood.
; Submitted by Christian Krause
; 1,0,101,111,11111,111111,1111111,11111111,111111111,1111111111... |
; A017342: a(n) = (10*n + 6)^2.
; 36,256,676,1296,2116,3136,4356,5776,7396,9216,11236,13456,15876,18496,21316,24336,27556,30976,34596,38416,42436,46656,51076,55696,60516,65536,70756,76176,81796,87616,93636,99856,106276,112896,119716,126736,133956,141376,148996,156816,164836,173056,181476,190096,198916,207936,217156,226... |
; A050484: Partial sums of A051946.
; 1,12,68,264,810,2112,4884,10296,20163,37180,65208,109616,177684,279072,426360,635664,927333,1326732,1865116,2580600,3519230,4736160,6296940,8278920,10772775,13884156,17735472,22467808,28242984,35245760,43686192,53802144,65861961,80167308,97056180,116906088,140137426,167217024,19866... |
push 0
push 1
push 2
push 3
push 4
push 5
push 6
push 7
push 8
push 9
push 10
l1: print
push 0
bleq l2
b l1
l2: halt
|
; A054074: Position of n-th 1 in A054073.
; 1,2,5,8,13,18,24,32,40,50,60,71,84,97,112,127,144,161,179,199,219,241,263,286,311,336,363,390,419,448,478,510,542,576,610,645,682,719,758,797,837,879,921,965,1009,1055,1101,1148,1197
mov $2,$0
add $2,1
mov $5,$0
lpb $2
mov $0,$5
sub $2,1
sub $0,$2
sub $0,1
mov $3,$... |
global start
section .text ;read-only section
start:
mov rax, 0x02000004 ;write system call
mov rdi, 1 ;file handle set to 1 : stdout
mov rsi, message ;rsi을 message 주소값으로 정의
mov rdx, 13 ;13바이트로 쓰기 크기 정의
syscall ... |
/**
* Appcelerator Titanium - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2009 Appcelerator, Inc. All Rights Reserved.
*/
#include "../ui_module.h"
namespace ti {
void menu_callback(gpointer data);
GtkMenuItemImpl::GtkMenuItemImpl()
... |
; A321014: Number of divisors of n which are greater than 3.
; 0,0,0,1,1,1,1,2,1,2,1,3,1,2,2,3,1,3,1,4,2,2,1,5,2,2,2,4,1,5,1,4,2,2,3,6,1,2,2,6,1,5,1,4,4,2,1,7,2,4,2,4,1,5,3,6,2,2,1,9,1,2,4,5,3,5,1,4,2,6,1,9,1,2,4,4,3,5,1,8,3,2,1,9,3,2,2,6,1,9,3,4,2,2
mov $4,$0
mov $6,2
lpb $6,1
clr $0,4
mov $0,$4
sub $6,1
add ... |
.sect ".ivars"
.align 2
dl: .word 0x0FFF
G: .word 0x3000 ;Signed Q15
D: .word 0x7FFF ;Signed Q15
;.def echo_effect
.ref xn
*********************************************************************
* echo_effect *
* Adds echo effect to input sample *
* Takes paramters: *
* ... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. Th... |
//==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#pr... |
Museum2F_h:
db MUSEUM ; tileset
db MUSEUM_2F_HEIGHT, MUSEUM_2F_WIDTH ; dimensions (y, x)
dw Museum2FBlocks, Museum2FTextPointers, Museum2FScript ; blocks, texts, scripts
db $00 ; connections
dw Museum2FObject ; objects
|
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1ef3b, %r15
and $6265, %r14
movw $0x6162, (%r15)
nop
nop
nop
nop
nop
xor $35076, %rbx
lea addresses_UC_ht+0x4bbb, %rbx
nop
nop
nop
nop
and %rdx, %rdx
mov $0x616263646566... |
_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... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2014 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... |
//
// ex9_20.cpp
// Exercise 9.20
//
// Created by pezy on 12/3/14.
//
// @Brief Write a program to copy elements from a list<int> into two deques.
// The even-valued elements should go into one deque and the odd ones into the other.
#include <iostream>
#include <deque>
#include <list>
using std::deque; ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.