text stringlengths 1 1.05M |
|---|
; A091001: Number of walks of length n between adjacent nodes on the Petersen graph.
; 0,1,0,5,4,33,56,253,588,2105,5632,18261,52052,161617,473928,1443629,4287196,12948969,38672144,116365957,348398820,1046594561,3136987480,9416554845,28238479724,84737808793,254168687136,762595539893,2287607662708,6863180902065,20588826... |
#include <stdio.h>
#include "curl/curl.h"
int main()
{
curl_easy_init();
printf("hello,libcurl.\n");
return 0;
}
|
; Copyright (c) 2018, The rav1e contributors. 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.aomedia... |
# Calculate the product of data elements of a list
# for MYΥ-505 - Computer Architecture
# Department of Computer Engineering, University of Ioannina
# Aris Efthymiou
# Same as lab03_solution-gzz.asm but jal instructions are replaced by la and j.
.globl mulproc, listProd # declare the label main as global.
... |
#include <algorithm>
#include <array>
#include <cwchar>
#include <fstream>
#include <iterator>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>
#ifdef _WIN32
#include <ShlObj.h>
#include <Windows.h>
#endif
#include "imgui/imgui.h"
#include "imgui/imgui_stdlib.h"
#include "imguiCus... |
;PERFORMS MONTE-CARLO SIMULATIONS TO ESTIMATE PI VALUE
RANDOM_MASK: DC INTEGER(0xffffff)
RANDOM_DIST: DC INTEGER(0x1000000)
FLOAT_ONE: DC FLOAT(1)
FLOAT_FOUR: DC FLOAT(4)
NEWLINE: DC CHAR('\n')
N: DC INTEGER(65536)
MAIN:
LD 3, N
... |
;******************************************************************************
;* SIMD optimized Opus encoder DSP function
;*
;* Copyright (C) 2017 Ivan Kalvachev <ikalvachev@gmail.com>
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the terms of the ... |
#include "InputConstraints.hpp"
#include <fstream>
#include <iostream>
#include <string>
#include "InputParameters.hpp"
using std::ofstream;
using std::string;
void input_constraints(InputParameters &inParams) {
ofstream outfile;
outfile.open("log.txt", std::fstream::app);
outfile << "function input_con... |
;%define _BOOT_DEBUG_ ; 做 Boot Sector 时一定将此行注释掉!将此行打开后用 nasm Boot.asm -o Boot.com 做成一个.COM文件易于调试
%ifdef _BOOT_DEBUG_
org 0100h ; 调试状态, 做成 .COM 文件, 可调试
%else
org 07c00h ; Boot 状态, Bios 将把 Boot Sector 加载到 0:7C00 处并开始执行
%endif
;====================================================================================... |
; A193041: Coefficient of x in the reduction by x^2->x+1 of the polynomial p(n,x) defined at Comments.
; 0,1,3,13,44,122,292,631,1267,2411,4408,7820,13560,23109,38867,64721,106964,175782,287660,469275,763795,1241071,2014128,3265848,5292144,8571817,13879587,22468981,36368252,58859186,95251828,154138015
mov $17,$0
mov $... |
; A100149: Structured small rhombicubeoctahedral numbers.
; 1,24,106,284,595,1076,1764,2696,3909,5440,7326,9604,12311,15484,19160,23376,28169,33576,39634,46380,53851,62084,71116,80984,91725,103376,115974,129556,144159,159820,176576,194464,213521,233784,255290,278076,302179,327636,354484,382760,412501,443744,476526,5108... |
; A017763: a(n) = binomial coefficient C(n,99).
; 1,100,5050,171700,4421275,91962520,1609344100,24370067800,325949656825,3911395881900,42634215112710,426342151127100,3943664897925675,33976189889821200,274236389824985400,2084196562669889040,14980162794189827475,102217581419177646300,664414279224654700950,412636236571101... |
; A160451: (4/3)u(u^3+6*u^2+8u-3) where u=Floor[{3n+5)/2].
; 1008,2080,6440,10208,22360,31416,57408,75208,122816,153680,232408,281520,402600,476008,652400,757016,1003408,1147008,1479816,1671040,2108408,2356760,2918560,3234408,3942240,4336816,5214008,5699408
mov $3,$0
div $3,2
add $3,$0
mov $0,2
add $3,1
add $0,$3
mov ... |
//
// Created by Peterek, Filip on 16/09/2019.
//
#ifndef SSPU_UKAZKA_2_GAME_HPP
#define SSPU_UKAZKA_2_GAME_HPP
#include <vector>
#include <memory>
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
#include "projectile.hpp"
#include "enemy.hpp"
#include "player.hpp"
#include "resource_manager.hpp"
#include "e... |
_CeruleanGymText_5c7be::
text "Hi, you're a new"
line "face!"
para "What's your policy"
line "on #MON? What"
cont "is your approach?"
para "My policy is an"
line "all-out offensive"
cont "with mainly water"
cont "#MON!"
para "MISTY, the world-"
line "famous beauty, is"
cont "your host!"
para "Are you r... |
// Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers
// Copyright (c) 2018-2020, The Qwertycoin Group.
//
// This file is part of Qwertycoin.
//
// Qwertycoin is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
... |
/*
Copyright Rene Rivera 2019
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
// tag::part1[]
#include <iostream>
#include <lyra/lyra.hpp>
int main(int argc, const char** argv)
{
int repeat = 0;
std::string message;
/... |
92_Header:
sHeaderInit ; Z80 offset is $D050
sHeaderPatch 92_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $05, 92_FM5, $00, $00
92_FM5:
sPatFM $00
ssModZ80 $01, $01, $69, $70
dc.b nB5, $06, nD6, $07
sStop
92_Patches:
; Patch $00
; $43
; $38, $4F, $F7, $44, $9F, $1F, $1F, $1F
; $0B, $09, $... |
/******************************************************************************
* Copyright 2017 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
... |
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 Realm 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/li... |
<%
from pwnlib.shellcraft import amd64
from pwnlib.context import context as ctx # Ugly hack, mako will not let it be called context
%>
<%page args="dest, src, stack_allowed = True"/>
<%docstring>
Thin wrapper around :func:`pwnlib.shellcraft.amd64.mov`, which sets
`context.os` to `'linux'` before calling.
Example... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright (C) 2022 Intel Corporation
;
; SPDX-License-Identifier: MIT
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Function API:
; ... |
#include "logxx/logger_ostream.h"
#include <sstream>
#include <doctest/doctest.h>
DOCTEST_TEST_CASE("logger_ostream") {
std::ostringstream str;
logxx::logger_ostream stream(str);
logxx::scoped_logger scoped(stream);
LOGXX_LOG_INFO("testing ostream");
DOCTEST_CHECK(str.str().find("testing ostream"... |
;
; CPC Maths Routines
;
; August 2003 **_|warp6|_** <kbaccam /at/ free.fr>
;
; $Id: fsetup.asm,v 1.2 2007/07/21 21:28:22 dom Exp $
;
INCLUDE "#cpcfp.def"
XLIB fsetup
XREF fa
.fsetup
ld hl,fa+1 ; de=fa+1
ex de,hl
ld hl,5
add hl,sp ; hl=sp+5
ret
|
; A026604: a(n) = s(1) + s(2) + ... + s(n), where s = A026600.
; 1,3,6,8,11,12,15,16,18,20,23,24,27,28,30,31,33,36,39,40,42,43,45,48,50,53,54,56,59,60,63,64,66,67,69,72,75,76,78,79,81,84,86,89,90,91,93,96,98,101,102,105,106,108,111,112,114,115,117
mov $2,$0
mov $3,$0
add $3,1
lpb $3,1
mov $0,$2
sub $3,1
sub $0,$... |
// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck %s
void __attribute__((fastcall)) foo1(int &y);
void bar1(int &y) {
// CHECK-LABEL: define void @_Z4bar1Ri
// CHECK: call x86_fastcallcc void @_Z4foo1Ri(i32* inreg dereferenceable({{[0-9]+}}) %
foo1(y);
}
struct S1 {
int x;
S1(co... |
; A054204: Integers expressible as sums of distinct even-subscripted Fibonacci numbers.
; 1,3,4,8,9,11,12,21,22,24,25,29,30,32,33,55,56,58,59,63,64,66,67,76,77,79,80,84,85,87,88,144,145,147,148,152,153,155,156,165,166,168,169,173,174,176,177,199,200,202,203,207,208,210,211,220,221,223,224,228,229,231,232,377,378,380,38... |
object_const_def ; object_event constants
const ELMSLAB_ELM
const ELMSLAB_ELMS_AIDE
const ELMSLAB_POKE_BALL1
const ELMSLAB_POKE_BALL2
const ELMSLAB_POKE_BALL3
const ELMENTRANCE_SILVER
ElmsLab_MapScripts:
db 7 ; scene scripts
scene_script .DummyScene1 ; SCENE_DEFAULT
scene_script .MeetElm ; SCENE_MEETELM
sce... |
#include <string>
#include <disccord/models/invite_channel.hpp>
namespace disccord
{
namespace models
{
invite_channel::invite_channel()
: entity(), name(""), type(0)
{ }
invite_channel::~invite_channel()
{ }
void invite_channel::decode(web::json::value js... |
SECTION .data
hello: db 'Hello world!', 10
len: equ $-hello
SECTION .text
GLOBAL _start
_start:
mov eax, 4
mov ebx, 1
mov ecx, hello
mov edx, len
int 80h
mov eax, 1
mov ebx, 0
int 80h
|
; A346202: a(n) = L(n)^2, where L is Liouville's function.
; Submitted by Jamie Morken(s2)
; 1,0,1,0,1,0,1,4,1,0,1,4,9,4,1,0,1,4,9,16,9,4,9,4,1,0,1,4,9,16,25,36,25,16,9,4,9,4,1,0,1,4,9,16,25,16,25,36,25,36,25,36,49,36,25,16,9,4,9,4,9,4,9,4,1,4,9,16,9,16,25,36,49,36,49,64,49
add $0,1
seq $0,2819 ; Liouville's function ... |
.686p
.mmx
.model flat,stdcall
option casemap:none
option prologue:none
option epilogue:none
include ..\..\lib\gfp.inc
include ..\..\lib\ecp.inc
PUBLIC KEY_PRVKEY
PUBLIC intE
PUBLIC intK
PUBLIC signR
PUBLIC signS
PUBLIC intU1
PUBLIC intU2
PUBLIC msgDigest
PUBLIC pointH
PUBLIC pointI
PUBLIC pointJ
.data?
intE BIGIN... |
title pgm:which one comes first in ascii
.model small
.stack 100h
.data
.code
main proc
mov bh,'c'
mov bl,'b'
mov ah,2
cmp bh,bl
jnbe else
mov dl,bh
jmp display
else:
mov dl,bl
display:
int 21h
;exit to dos
mov ah,9
mov dl, 4Ch
int 21h
main e... |
; A017465: a(n) = (11*n + 6)^5.
; 7776,1419857,17210368,90224199,312500000,844596301,1934917632,3939040643,7339040224,12762815625,21003416576,33038369407,50049003168,73439775749,104857600000,146211169851,199690286432,267785184193,353305857024,459401384375,589579257376,747724704957,938120019968,1165463885299,14348907000... |
/**
* @file webserver.cpp
* @author Nicholas Polledri
* @version 1.0
* @date 09-08-2020
*
* @brief Webserver functions
*/
// Include libraries
#include <Arduino.h>
#include "config.h"
#include "typedefs.h"
#include "webserver.h"
#include <WiFi.h>
#include <FS.h>
#include <AsyncTCP.h>
#include <ES... |
; A061082: a(n) = A053061(n)/n.
; 11,12,13,104,105,106,107,108,109,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,10032,10033,10034,10035,10036,10037,10038,10039,10040,10041,10042
mov $2,$0
add $2,1
mov $4,$0
lpb $2,1
mov $0,$4
sub $2,1
sub $0,$2
m... |
#include <iostream>
#include <cstdio>
#include <vector>
#include <string>
#include <cstring>
#include <cmath>
#include <sstream>
#include <algorithm>
using namespace std;
class Solution {
public:
bool checkPerfectNumber(int num) {
if (Facsum(num)-num == num) return true;
return false;
}
int... |
mov ax, 0x07C0
mov ds, ax ; set DS to the point where code is loaded
mov ah, 0x01
mov cx, 0x2000
int 0x10 ; clear cursor blinking
mov ax, 0x0305
mov bx, 0x031F
int 0x16 ; increase delay before keybort repeat
game_loop:
call clear_screen ; clear the screen
push word [snake_pos] ; save snake head position for later
... |
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/wm/core/capture_controller.h"
#include "base/logging.h"
#include "ui/aura/env.h"
#include "ui/aura/test/aura_test_base.h"
#include "ui/a... |
#include "rpcconsole.h"
#include "ui_rpcconsole.h"
#include "clientmodel.h"
#include "guiutil.h"
#include "rpcserver.h"
#include "rpcclient.h"
#include <QTime>
#include <QThread>
#include <QKeyEvent>
#include <QUrl>
#include <QScrollBar>
#include <openssl/crypto.h>
// TODO: add a scrollback limit, as there is curr... |
//+------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1993.
//
// File: bmconfig.cxx
//
// Contents: configuration inquiry and reporting
//
// Classes:
//
// Functions: ReportBMConfig
//
// History: 2-July-93 t... |
; A022312: a(n) = a(n-1) + a(n-2) + 1 for n>1, a(0)=0, a(1)=7.
; 0,7,8,16,25,42,68,111,180,292,473,766,1240,2007,3248,5256,8505,13762,22268,36031,58300,94332,152633,246966,399600,646567,1046168,1692736,2738905,4431642,7170548,11602191,18772740,30374932,49147673,79522606,128670280,208192887,336863168,545056056,881919225... |
###############################################################################
# File : sltu.asm
# Project : MIPS32 MUX
# Author: : Grant Ayers (ayers@cs.stanford.edu)
#
# Standards/Formatting:
# MIPS gas, soft tab, 80 column
#
# Description:
# Test the functionality of the 'sltu' instruction.
#
... |
; A118294: Start with 19 and repeatedly reverse the digits and add 1 to get the next term.
; 19,92,30,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9
mov $2,$0
mov $... |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
const int INF = 1e9;
const long long LLINF = 4e18;
const double EPS = 1e-9;
int reserves[22];
int main() {
ios::sync_with_stdio(false);
int b, n, from, to, value;
... |
; A127944: Partial sums of A093049.
; 0,0,0,2,3,7,11,17,21,29,37,47,56,68,80,94,105,121,137,155,172,192,212,234,254,278,302,328,353,381,409,439,465,497,529,563,596,632,668,706,742,782,822,864,905,949,993,1039,1082,1130,1178,1228,1277,1329,1381,1435,1487,1543,1599,1657,1714,1774,1834,1896,1953,2017,2081,2147,2212,2280,2... |
10008a30: 8b 44 24 04 mov eax,DWORD PTR [esp+0x4]
10008a34: 8b 48 3c mov ecx,DWORD PTR [eax+0x3c]
10008a37: 03 c8 add ecx,eax
10008a39: 0f b7 41 14 movzx eax,WORD PTR [ecx+0x14]
10008a3d: 53 push ebx
10008a3e: 56 push e... |
; Licensed to the .NET Foundation under one or more agreements.
; The .NET Foundation licenses this file to you under the MIT license.
; See the LICENSE file in the project root for more information.
#include "ksarm.h"
#include "asmconstants.h"
IMPORT FuncEvalHijackWorker
IMPORT FuncEvalHijackPersonalityRouti... |
Name: zel_sut1.asm
Type: file
Size: 67203
Last-Modified: '2016-05-13T04:22:15Z'
SHA-1: EC74D956A544DE4AC0058BD1F3142094A50C254E
Description: null
|
db 0 ; species ID placeholder
db 65, 100, 50, 120, 50, 70
; hp atk def spd sat sdf
db GROUND, GROUND ; type
db 50 ; catch rate
db 153 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/dugtrio... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r14
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xfff, %rcx
sub $20661, %r13
mov (%rcx), %eax
nop
nop
nop
add $33962, %r14
lea addresses_UC_ht+0xf45f, %r13
nop
nop
nop
add $19448, %rax
mov $0x6162636465666768, %r10
movq %r10... |
BITS 32
global __init:function
global vmemOffset:data
global initStackEnd:data
global excStackStart:data
global PML4T:data
global PDPT:data
global gdtr:data
global nxEnabled:data
;extern VMEM_OFFSET
extern BSS_END_ADDR
extern DATA_END_ADDR
extern TEXT_END_ADDR
extern init64
VMEM_OFFSET equ 0xFFFFFFFF80000000
IN... |
; A099443: A Chebyshev transform of Fib(n+1).
; 1,1,1,1,0,-1,-1,-1,-1,0,1,1,1,1,0,-1,-1,-1,-1,0,1,1,1,1,0,-1,-1,-1,-1,0,1,1,1,1,0,-1,-1,-1,-1,0,1,1,1,1,0,-1,-1,-1,-1,0,1,1,1,1,0,-1,-1,-1,-1,0,1,1,1,1,0,-1,-1,-1,-1,0,1,1,1,1,0,-1,-1,-1,-1,0,1,1,1,1,0,-1,-1,-1,-1,0,1,1,1,1,0,-1,-1,-1,-1,0
add $0,1
seq $0,163812 ; Expans... |
; A083402: Let A_n be the upper triangular matrix in the group GL(n,2) that has zero entries below the main diagonal and 1 elsewhere; a(n) is the size of the conjugacy class of this matrix in GL(n,2).
; Submitted by Jamie Morken(s4)
; 1,3,42,2520,624960,629959680,2560156139520,41781748196966400,2732860586067178291200,7... |
.code
public payload
payload:
int 3
push rax
push rbx
push rcx
push rdx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
mov r11,rsp
sub rsp,010h
sub rsp,070h
sub rsp,070h
and sp,0fff0h
mov eax,0636c6163h
mov dword ptr [rsp], eax
mov byte ptr [rsp... |
; $Id: ASMAtomicCmpXchgExU64.asm $
;; @file
; IPRT - ASMAtomicCmpXchgExU64().
;
;
; Copyright (C) 2006-2015 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute it and/or modify it under the t... |
;-------------------------------------------------------------------------------
; HL_sys_mpu.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... |
#include <tulz/DynamicLibrary.h>
#ifdef WIN32
#include <Windows.h>
inline auto loadLibrary(const char *path) {
SetLastError(0);
return LoadLibrary(path);
}
#define closeLibrary(lib) FreeLibrary(reinterpret_cast<HINSTANCE>(lib))
#define getAddr(lib, name) reinterpret_cast<void *>(G... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r15
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x4301, %r11
nop
dec %r15
mov (%r11), %r14d
nop
nop
nop
nop
sub $14795, %r15
lea addresses_D_ht+0xe319, %rsi
lea addresses_A_ht+0x18119, %rdi
nop
nop
nop
nop
nop
cmp $2146... |
db 0 ; 414 DEX NO
db 70, 94, 50, 66, 94, 50
; hp atk def spd sat sdf
db BUG, FLYING ; type
db 45 ; catch rate
db 159 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F0 ; gender ratio
db 100 ; unknown 1
db 15 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/sinnoh/mothim/front.dime... |
; A016208: Expansion of 1/((1-x)*(1-3*x)*(1-4*x)).
; 1,8,45,220,1001,4368,18565,77540,320001,1309528,5326685,21572460,87087001,350739488,1410132405,5662052980,22712782001,91044838248,364760483725,1460785327100,5848371485001,23409176469808,93683777468645,374876324642820,1499928942876001,6000986704418168
mov $1,1
mov $4... |
;-------------------------------------
; fibonacci.nasm
; Leia o README.md para detalhes
;-------------------------------------
; Condições iniciais
; RAM[10] = 0
leaw $0, %A
movw %A, %D
leaw $10, %A
movw %D, (%A)
; RAM[11] = 1
leaw $1, %A
movw %A, %D
leaw $11, %A
movw %D, (%A)
; Variável de índice de iteração inic... |
get macro arg1,arg2,arg3
dc.l arg1
arg2
arg3 dc.l \4
move.\0 d0,d1
endm
get.b 1,<dc.l 2>,label,four
|
/****************************************************************************
** Meta object code from reading C++ file 'saturation.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.7.0)
**
** WARNING! All changes made in this file will be lost!
**********************************************************... |
; A171654: Period 10: repeat 0, 1, 6, 7, 2, 3, 8, 9, 4, 5.
; 0,1,6,7,2,3,8,9,4,5,0,1,6,7,2,3,8,9,4,5,0,1,6,7,2,3,8,9,4,5,0,1,6,7,2,3,8,9,4,5,0,1,6,7,2,3,8,9,4,5,0,1,6,7,2,3,8,9,4,5,0,1,6,7,2,3,8,9,4,5,0,1,6,7,2,3,8,9,4,5,0,1,6,7,2,3,8,9,4,5
mov $1,$0
lpb $0,1
sub $0,2
add $1,4
lpe
mod $1,10
|
OUTPUT "dir_if_ifn.bin" ; final output should be 8x 'v'
;; Check IF functionality in normal code
IF 5 < 3 && 2 < 10
false
ENDIF
IF 3 < 5 && 2 < 10
halt ; true
ENDIF
IF 3 < 5
IF 5 < 3
nested false
ENDIF
IF 2 < 10
halt; ... |
#include "Catch2QtUtils.h"
std::ostream& operator<<(std::ostream& ostr, const QString& str) {
ostr << '"' << str.toStdString() << '"';
return ostr;
}
std::ostream& operator<<(std::ostream& ostr, const QUrl& url) {
ostr << '"' << url.toEncoded().constData() << '"';
return ostr;
}
|
DisplayPort .EQU 04E9h
.ORG 0010h ; .ORG 0000h
HayStack:
.DB 8
.DB 2
.DB 4
.DB 9
Sentinal: .DB 'a'
Needle: .DB 9
.ORG 0100h
FoundItMsg: .DB 'Found the needle at index $'
notfoundmsg: .DB 'The Needle was not found! $'
.ORG 0200h
Main:
mov DX, DisplayPort
mov AL, [Needl... |
; ---------------------------------------------------------------------------
; Sprite mappings - spiked metal block from beta version (MZ)
; ---------------------------------------------------------------------------
dc.w byte_BC6C-Map_obj45
dc.w byte_BC7C-Map_obj45
dc.w byte_BC8C-Map_obj45
dc.w byte_BC92-Map_... |
// Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: google/cloud/ml/v1/project_service.proto
#include "google/cloud/ml/v1/project_service.pb.h"
#include "google/cloud/ml/v1/project_service.grpc.pb.h"
#include <grpcpp/impl/codegen/async_stream.h>
#include <grpcpp/impl/co... |
; A026200: a(n) = (s(n) + 2)/3, where s(n) is the n-th number congruent to 1 mod 3 in A026166.
; 1,2,4,6,3,8,10,12,5,14,16,18,7,20,22,24,9,26,28,30,11,32,34,36,13,38,40,42,15,44,46,48,17,50,52,54,19,56,58,60,21,62,64,66,23,68,70,72,25,74,76,78,27,80,82,84,29,86,88,90,31,92,94,96,33,98,100,102,35,104,106,108,37,110,112,... |
//==============================================================
// Copyright Intel Corporation
//
// SPDX-License-Identifier: MIT
// =============================================================
#include <CL/sycl.hpp>
#include <CL/sycl/INTEL/fpga_extensions.hpp>
#include <iomanip>
#include <iostream>
#include <vector>... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
FLDPI
FLD1
;SET PF
MOV EAX, 0x3
CMP EAX, 0
;TEST_BEGIN_RECORDING
fcmovu st0, st1
;TEST_END_RECORDING
|
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.3.0 #8604 (Dec 30 2013) (Linux)
; This file was generated Wed Dec 13 19:28:30 2017
;--------------------------------------------------------
.module test
.optsdcc -mmcs51 --model-small
;--... |
;;
;; Copyright (c) 2012-2020, 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 conditions and... |
/**
******************************************************************************
* @file wifi_credentials_reader.cpp
* @author Zachary Crockett and Satish Nair
* @version V1.0.0
* @date 24-April-2013
* @brief
******************************************************************************
Copyright (c) ... |
global entry
extern main
BITS 16
section .text
entry:
xor ax,ax
mov ds,ax
mov es,ax
mov ss,ax
mov ax,0x2401 ;Enable A20
int 0x15
mov si,diskpack ;Load bottom half
mov ah,0x42
mov dl,0x80
int 0x13
mov sp,0x7DC0 ;Init stack (2KB)
jmp ... |
; A186296: ( A007520(n)+1 )/2.
; Submitted by Jon Maiga
; 2,6,10,22,30,34,42,54,66,70,82,90,106,114,126,142,154,166,174,190,210,222,234,246,250,262,274,282,286,294,310,322,330,342,346,370,394,406,414,430,442,454,474,486,510,526,546,562,582,586,594
mov $1,10
mov $2,$0
pow $2,2
lpb $2
sub $2,1
mov $3,$1
seq $3,100... |
; A111108: a(n) = A001333(n) - (-2)^(n-1), n > 0.
; Submitted by Christian Krause
; 0,5,3,25,25,131,175,705,1137,3875,7095,21649,43225,122435,259423,698625,1541985,4011971,9107175,23143825,53559817,133933475,314086735,776787009,1838300625,4512108515,10745077143,26237143825,62749602745,152675873411,366222301375,88887857... |
_ln: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 53 push %ebx
4: 83 e4 f0 and $0xff... |
#include <iostream>
#include <climits>
using namespace std;
int main(){
int n,k;
cin >> n >> k;
int x = INT_MAX;
for (int r=1;r<k;r++){
if (n % r == 0){
int temp = (n/r)*k + r;
if (temp < x){
x = temp;
}
}
}
cout << x;
ret... |
; Test subroutines
LDX #0
LOOP:
JSR INCX
CPX #10
BNE LOOP
JMP ENDIT
INCX: INX
RTS
ENDIT: NOP
|
org 0000h
;Assume clock frequency = 12MHz
mov tmod,#1h ;T0 mode 1
repeat: mov p1,#55h ;sequence = 01010101b
acall delay ;call delay routine
mov p1,#0aah ;seq... |
#include <iostream>
#include <utility> // std::swap
template <class T>
void swap(T a, T b)
{
T temp = a;
a = b;
b = temp;
}
template <class K>
struct node
{
K data;
struct node *node;
};
int main()
{
int x = 5, y = 7;
swap(x, y);
std::cout << x << " " << y << std::endl;
double w ... |
; A275161: Number of sides of a polygon formed by tiling n squares in a spiral.
; 4,4,6,4,6,4,6,6,4,6,6,4,6,6,6,4,6,6,6,4,6,6,6,6,4,6,6,6,6,4,6,6,6,6,6,4,6,6,6,6,6,4,6,6,6,6,6,6,4,6,6,6,6,6,6,4,6,6,6,6,6,6,6,4,6,6,6,6,6,6,6,4,6,6,6,6,6,6,6,6,4,6,6,6,6,6,6
mov $7,$0
mov $9,2
lpb $9
clr $0,7
mov $0,$7
sub $9,1
a... |
subu $5,$4,$3
srlv $3,$1,$3
sltiu $4,$0,-23442
addu $3,$3,$3
sltiu $5,$3,-20450
addu $0,$3,$3
slti $3,$5,3545
sllv $5,$1,$3
andi $4,$4,33703
lhu $4,10($0)
xori $1,$1,14587
xor $5,$0,$3
lhu $5,8($0)
lb $6,1($0)
or $4,$3,$3
xori $3,$6,8987
srl $3,$3,26
nor $5,$4,$3
lbu $1,0($0)
or $4,$1,$3
subu $3,$3,$3
lbu $4,16($0)
sw ... |
; wa_priority_queue_t *
; wa_priority_queue_init(void *p, void *data, size_t capacity, int (*compar)(const void *, const void *))
SECTION code_clib
SECTION code_adt_wa_priority_queue
PUBLIC _wa_priority_queue_init
EXTERN asm_wa_priority_queue_init
_wa_priority_queue_init:
pop af
pop hl
pop de
pop bc
... |
/*
Copyright 2020-2021 The Silkworm Authors
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 ag... |
; Licensed to the .NET Foundation under one or more agreements.
; The .NET Foundation licenses this file to you under the MIT license.
; See the LICENSE file in the project root for more information.
;; ==++==
;;
;;
;; ==--==
#include "ksarm.h"
#include "asmconstants.h"
#include "asmmacros.h"
SETALIAS CTPMetho... |
//
// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
//
// 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)
//
// Official repository: https://github.com/vinniefalco/json
//
#ifndef BOOST_JSON_IMPL_SERIALIZER... |
; A076118: a(n) = sum_k {n/2<=k<=n} k * (-1)^(n-k) * C(k,n-k).
; 0,1,1,-1,-3,-2,2,5,3,-3,-7,-4,4,9,5,-5,-11,-6,6,13,7,-7,-15,-8,8,17,9,-9,-19,-10,10,21,11,-11,-23,-12,12,25,13,-13,-27,-14,14,29,15,-15,-31,-16,16,33,17,-17,-35,-18,18,37,19,-19,-39,-20,20,41,21,-21,-43,-22,22,45,23,-23,-47,-24,24,49,25,-25,-51,-26,26,53,... |
SFX_Cry21_3_Ch1:
dutycycle 27
unknownsfx0x20 3, 243, 100, 5
unknownsfx0x20 2, 226, 68, 5
unknownsfx0x20 5, 209, 34, 5
unknownsfx0x20 2, 178, 132, 4
unknownsfx0x20 8, 209, 162, 4
unknownsfx0x20 3, 243, 36, 5
unknownsfx0x20 4, 228, 228, 4
unknownsfx0x20 8, 209, 2, 5
endchannel
SFX_Cry21_3_Ch2:
dutycycle 204
... |
// gmmbin/gmm-acc-mllt.cc
// Copyright 2009-2011 Microsoft 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.apache.org/licenses/LICENSE-2.0
//
// THIS CODE IS... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GlobalPC 1998 -- All Rights Reserved
PROJECT: GEOS
MODULE: Cyber16 Video Driver
FILE: cyber16Tables.asm
AUTHOR: Jim DeFrisco
REVISION HISTORY:
Name Date Description
---- ---- -----------
jad 10/92 init... |
;
; [ Win32.Seraph@mm Vorgon/iKX ]
; [ 28672 bytes Target - PE ]
; [ 09/28/03 Made in Canada ]
;
;
;
;
; [ Introduction ]
;
; Seraph is a mass-mailing virus that takes advantage of social engineering. This may sound
; boring to you, but it takes social engineering to the n... |
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR NIRVANA+ ENGINE - by Einar Saukas
;
; See "nirvana+.h" for further details
; ----------------------------------------------------------------
; void NIRVANAM_fillT(unsigned char attr, unsigned char lin, unsigned char col)
... |
/*
* CX - C++ framework for general purpose development
*
* https://github.com/draede/cx
*
* Copyright (C) 2014 - 2021 draede - draede [at] outlook [dot] com
*
* Released under the MIT License.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associate... |
#include <iostream>
// // 1. LValue (Copy by Value)
// void f(int z)
// {
// std::cout << "LValue (Copy by Value): " << z << " " << &z << std::endl << std::endl;
// }
// 2. LValue Reference
void f(int &z)
{
std::cout << "LValue Reference: " << z << " " << &z << std::endl;
}
// // 3. Const LValue Reference
// vo... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x174cc, %r9
nop
nop
cmp $56229, %rbx
mov (%r9), %cx
xor %rcx, %rcx
lea addresses_WC_ht+0x15ecc, %rbx
sub $16929, %rcx
mov $0x6162636465666768, %rbp
movq %rbp, %xmm6
vmovups %y... |
; A190277: Number of trails between opposite vertices in a triangle strip.
; Submitted by Christian Krause
; 1,1,2,4,9,23,62,174,497,1433,4150,12044,34989,101695,295642,859566,2499277,7267081,21130538,61441732,178655937,519483767,1510520966,4392195390,12771343961,37135696841
mov $1,1
lpb $0
sub $0,1
sub $1,$2
ad... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.