text stringlengths 1 1.05M |
|---|
SECTION code_clib
SECTION code_fp_math48
PUBLIC asm_dsigdig
EXTERN am48_dsigdig
defc asm_dsigdig = am48_dsigdig
|
// Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com)
#include "cpython-func.h"
#include "globals.h"
#include "version.h"
namespace py {
PY_EXPORT const char* Py_GetVersion() { return kVersionInfo; }
} // namespace py
|
; A109955: Number triangle binomial(n+2k,3k).
; Submitted by Jon Maiga
; 1,1,1,1,4,1,1,10,7,1,1,20,28,10,1,1,35,84,55,13,1,1,56,210,220,91,16,1,1,84,462,715,455,136,19,1,1,120,924,2002,1820,816,190,22,1,1,165,1716,5005,6188,3876,1330,253,25,1,1,220,3003,11440,18564,15504,7315,2024
lpb $0
mov $1,$0
add $2,1
sub $... |
; A158749: a(n) = n * 9^n.
; 0,9,162,2187,26244,295245,3188646,33480783,344373768,3486784401,34867844010,345191655699,3389154437772,33044255768277,320275094369454,3088366981419735,29648323021629456,283512088894331673,2701703435345984178,25666182635786849691,243153309181138576020,2297798771761759543389,21664959848039447... |
; column width
;
include win1_mac_oli
include win1_spread_keys
section prog
xdef fnd_pwdt ; find perfect col width
xdef set_pwdt
;+++
; find perfect colum width
;
; Entry Exit
; d1.l col|(row) preserved
; d2 perfect widths
;---
fnd_pwdt subr a1/d1/d3/d4
move.w da_cby0(a6),d1 ; first row
move.w da_cb... |
; A214732: a(n) = 25*n^2 + 15*n + 1021.
; 1021,1061,1151,1291,1481,1721,2011,2351,2741,3181,3671,4211,4801,5441,6131,6871,7661,8501,9391,10331,11321,12361,13451,14591,15781,17021,18311,19651,21041,22481,23971,25511,27101,28741,30431,32171,33961,35801,37691,39631,41621,43661,45751,47891,50081,52321,54611,56951,59341,617... |
; CRT0 (RAM) stub for the SEGA SC-3000
;
; Stefano Bodrato - Jun 2010
;
IF !CRT_ORG_CODE
defc CRT_ORG_CODE = $9817
ENDIF
defc TAR__register_sp = -1
defc TAR__clib_exit_stack_size = 32
defc __CPU_CLOCK = 3580000
INCLUDE "crt/classic/crt_rules.inc"
org ... |
/*
* Copyright (C) 2017 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... |
; A065994: a(n) = prime(prime(n) - n).
; 2,2,3,5,13,17,29,31,43,67,71,97,107,109,131,157,181,191,223,233,239,269,281,313,359,379,383,401,409,431,503,523,569,571,619,631,659,691,719,751,787,797,857,859,881,883,971,1039,1061,1063,1091,1117,1123,1201,1231,1279,1301,1303,1361,1381,1399,1453,1549,1567,1571,1597,1693,1723,17... |
// modified from https://github.com/vgteam/vg/blob/master/src/version.cpp
#include "version.hpp"
// Get the git version macro from the build system
#include "../include/odgi_git_version.hpp"
#include <iostream>
#include <sstream>
// If the ODGI_GIT_VERSION deosn't exist at all, define a placeholder
// This lets us ... |
; A027770: a(n) = (n + 1)*binomial(n + 1, 10).
; 10,121,792,3718,14014,45045,128128,330616,787644,1755182,3695120,7407036,14226212,26313518,47070144,81719000,138105110,227779695,367447080,580870290,901350450,1374917115,2064391680,3054514320,4458356760,6425278860,9150726816,12888215032,17963882728,24794070444,3390642112... |
#include "stdafx.h"
#pragma hdrstop
#include "cl_RAPID.h"
#include "cl_obb.h"
XRCollide XRC;
RAPID_model::RAPID_model()
{
b = 0;
num_boxes_alloced = 0;
tri_index = 0;
tris = 0;
num_tris = 0;
num_tris_alloced = 0;
build_state = RAPID_BUILD_STATE_CONST;
// these default options sho... |
; args:
; 1: the table to display
; displays the multiplication table
%include "module.asm"
section .data
x db " x ", 0
equal db " = ", 0
nl db 10 ; ascii code for new line
msg db "Please enter an integer between 0 and 9 or a letter.", 10, 0
section .bss
op1 resq 1
op2 resq ... |
; https://gist.github.com/ruyrybeyro/e4af49aa29086b3a5b61a0d52c5d0d8f
; Adapted for Z80 Spectrum syntax, assembled with pasmo
ORG 50000
LD A,2 ; upper screen
CALL 5633 ; open channel
LD DE,0 ; first address to dissassembly
LD BC,30 ; number of lines
CALL _disz80
... |
%define ARCH_AARCH64 0
%define ARCH_ALPHA 0
%define ARCH_ARM 0
%define ARCH_AVR32 0
%define ARCH_AVR32_AP 0
%define ARCH_AVR32_UC 0
%define ARCH_BFIN 0
%define ARCH_IA64 0
%define ARCH_M68K 0
%define ARCH_MIPS 0
%define ARCH_MIPS64 0
%define ARCH_PARISC 0
%define ARCH_PPC 0
%define ARCH_PPC64 0
%define ARCH_S390 0
%def... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE129_connect_socket_84_bad.cpp
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE129.label.xml
Template File: sources-sinks-84_bad.tmpl.cpp
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: ... |
; A159290: A generalized Jacobsthal sequence.
; 3,5,13,25,53,105,213,425,853,1705,3413,6825,13653,27305,54613,109225,218453,436905,873813,1747625,3495253,6990505,13981013,27962025,55924053,111848105,223696213,447392425,894784853,1789569705,3579139413,7158278825,14316557653,28633115305,57266230613,114532461225,229064922... |
;***
;lowhelpr.asm
;
; Copyright (C) 1995-2001, Microsoft Corporation. All rights reserved.
;
;Purpose:
; Contains _CallSettingFrame(), which must be in asm for NLG purposes.
;
;Notes:
;
;Revision History:
; 03-30-95 JWM Module created.
; 06-09-95 JWM NLG_CATCH_LEAVE now implemented.
; 08-21-95 JWM Bug ... |
#include <libmuscle/message.hpp>
using ymmsl::Settings;
namespace libmuscle { namespace impl {
Message::Message(
double timestamp,
DataConstRef const & data)
: timestamp_(timestamp)
, next_timestamp_()
, data_(data)
, settings_()
{}
Message::Message(
double timestamp,
... |
#include "catch.hpp"
#include "MinimumPathSum.hpp"
TEST_CASE("Minimum Path Sum") {
MinimumPathSum s;
SECTION("Normal test") {
vector<vector<int>> grid{
{1, 2, 2, 1},
{1, 1, 1, 2},
{1, 2, 1, 1},
};
REQUIRE(s.minPathSum(grid) == 6);
}
... |
; A172474: a(n) = floor(n*sqrt(2)/4).
; 0,0,0,1,1,1,2,2,2,3,3,3,4,4,4,5,5,6,6,6,7,7,7,8,8,8,9,9,9,10,10,10,11,11,12,12,12,13,13,13,14,14,14,15,15,15,16,16,16,17,17,18,18,18,19,19,19,20,20,20,21,21,21,22,22,22,23,23,24,24,24,25,25,25,26,26,26,27,27,27,28,28,28,29,29,30,30,30,31,31,31,32,32,32,33,33,33,34,34,35
mov $1,$... |
###############################################################################
# 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 "hardware.inc"
SECTION "Helper Functions",HOME
;--------------------------------------------------------------------------
;- wait_ly() b = ly to wait for -
;--------------------------------------------------------------------------
wait_ly::
ld c,rLY & $FF
.no... |
// This file is part of RAVL, Recognition And Vision Library
// Copyright (C) 2001, University of Surrey
// This code may be redistributed under the terms of the GNU Lesser
// General Public License (LGPL). See the lgpl.licence file for details or
// see http://www.gnu.org/copyleft/lesser.html
// file-header-ends-here... |
.include "defaults_mod.asm"
table_file_jp equ "exe4-utf8.tbl"
table_file_en equ "bn4-utf8.tbl"
game_code_len equ 3
game_code equ 0x4234574A // B4WJ
game_code_2 equ 0x42345745 // B4WE
game_code_3 equ 0x42345750 // B4WP
card_type equ 1
card_id equ 103
card_no equ "103"
card_sub equ "Mod Card 103"
card_sub_x... |
/*
* Copyright © <2010>, Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merg... |
; A137501: The even numbers repeated, with alternating signs.
; 0,0,2,-2,4,-4,6,-6,8,-8,10,-10,12,-12,14,-14,16,-16,18,-18,20,-20,22,-22,24,-24,26,-26,28,-28,30,-30,32,-32,34,-34,36,-36,38,-38,40,-40,42,-42,44,-44,46,-46,48,-48,50,-50,52,-52,54,-54,56,-56,58,-58,60,-60,62,-62,64,-64,66,-66,68,-68,70,-70,72,-72,74
mov ... |
; A155957: a(n) = (2*n^2)^n.
; 1,2,64,5832,1048576,312500000,139314069504,86812553324672,72057594037927936,76848453272063549952,102400000000000000000000,166712830744247830760081408,325619086145088897570576531456,751479440943256507665609654345728,2023042182205406180576948745932898304,628329870894314575195312500000000000... |
@******************************************************************************
@
@ \file exceptionhandler.S
@
@ \brief This file contains the interrupt and exception vectors
@ implementation. These API's are generic across architectures.
@
@******************************************************************... |
; A332529: Rectangular array by antidiagonals: T(n,k) = floor(n + k*r), where r = 1+ golden ratio = (1+sqrt(5))/2.
; Submitted by Jon Maiga
; 0,2,1,5,3,2,7,6,4,3,10,8,7,5,4,13,11,9,8,6,5,15,14,12,10,9,7,6,18,16,15,13,11,10,8,7,20,19,17,16,14,12,11,9,8,23,21,20,18,17,15,13,12,10,9,26,24,22,21,19,18,16,14,13,11,10,28,27,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x91b2, %rax
nop
nop
nop
inc %r13
mov $0x6162636465666768, %rcx
movq %rcx, (%rax)
nop
nop
nop
dec %rbp
lea addresses_WT_ht+0x11696, %rdx
nop
nop
nop
nop
nop
dec %r9
m... |
;==============================================================================
; Contents of this file are copyright Phillip Stevens
;
; You have permission to use this for NON COMMERCIAL USE ONLY
; If you wish to use it elsewhere, please include an acknowledgement to myself.
;
; https://github.com/feilipu/
;
; https:... |
;___XIO________________________________________________________________________________________________________________
;
; DIRECT SERIAL I/O
;
; PROVIDES INTERFACE TO PLATFORM BASE SERIAL I/O DEVICE
; ALLOWS USER MESSAGING/INTERACTION PRIOR TO AND DURING HBIOS INIT
;__________________________________________... |
/*
* words.c
* Word manipulations
*
* Created by Han Xu on 10/12/12.
* Copyright 2012 Dana Farber Cancer Institute. All rights reserved.
*
*/
#include <string.h>
#include <dirent.h>
#include <assert.h>
#include "words.h"
#include "stdlib.h"
//allocate 2d array of characters. Return the pointer to the array,... |
// // This file is part of www.nand2tetris.org
// // and the book "The Elements of Computing Systems"
// // by Nisan and Schocken, MIT Press.
// // File name: projects/07/StackArithmetic/SimpleAdd/SimpleAdd.vm
//
// // Pushes and adds two constants.
// push constant 7
@7
D=A
@SP
A=M
M=D
@SP
M=M+1
// push... |
; Copyright (C) 2020, Vi Grey
; 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 copyright
; notice, this list of conditions and the f... |
; void *p_list_remove_after(p_list_t *list, void *list_item)
SECTION code_clib
SECTION code_adt_p_list
PUBLIC p_list_remove_after
EXTERN asm_p_list_remove_after
p_list_remove_after:
pop af
pop hl
pop bc
push bc
push hl
push af
jp asm_p_list_remove_after
|
; A246300: Numbers k such that cos(k) < cos(k+1) > cos(k+2).
; 5,12,18,24,30,37,43,49,56,62,68,74,81,87,93,100,106,112,118,125,131,137,144,150,156,162,169,175,181,187,194,200,206,213,219,225,231,238,244,250,257,263,269,275,282,288,294,301,307,313,319,326,332,338,345,351,357,363,370,376,382,389,395,401,407,414,420,426,4... |
; A011006: Decimal expansion of 4th root of 8.
; Submitted by Jon Maiga
; 1,6,8,1,7,9,2,8,3,0,5,0,7,4,2,9,0,8,6,0,6,2,2,5,0,9,5,2,4,6,6,4,2,9,7,9,0,0,8,0,0,6,8,5,2,4,7,1,3,5,6,9,0,2,1,6,2,6,4,5,2,1,7,1,9,4,9,8,4,9,5,0,9,9,0,7,8,0,4,4,7,9,6,2,8,6,4,8,0,0,8,3,9,8,5,8,5,0,7,2
add $0,1
mov $1,1
mov $3,$0
mul $3,3
lpb $3
... |
; A326055: a(n) = n - {the largest square that divides n}.
; 0,1,2,0,4,5,6,4,0,9,10,8,12,13,14,0,16,9,18,16,20,21,22,20,0,25,18,24,28,29,30,16,32,33,34,0,36,37,38,36,40,41,42,40,36,45,46,32,0,25,50,48,52,45,54,52,56,57,58,56,60,61,54,0,64,65,66,64,68,69,70,36,72,73,50,72,76,77,78,64,0,81,82,80,84,85,86,84,88,81,90,88,9... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2015-2017 The Dash developers
// Copyright (c) 2015-2017 The Fastbitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/m... |
; A016785: a(n) = (3*n + 1)^9.
; 1,262144,40353607,1000000000,10604499373,68719476736,322687697779,1207269217792,3814697265625,10578455953408,26439622160671,60716992766464,129961739795077,262144000000000,502592611936843,922190162669056,1628413597910449,2779905883635712,4605366583984375,7427658739644928,1169414609283414... |
_main:
;ServoController.c,4 :: void main() {
;ServoController.c,5 :: int pos=0;
CLRF main_pos_L0+0
CLRF main_pos_L0+1
;ServoController.c,6 :: setup();
CALL _setup+0
;ServoController.c,7 :: while(1){
L_main0:
;ServoController.c,22 :: for(pos=0;pos<=180;pos=pos+10){
CLRF ... |
print_hex:
pusha
cmp dx,0xface
jne _return
mov bx, HEX_OUT
call print_string
popa
ret
_return:
mov bx,HEX_OUT2
call print_string
popa
ret
HEX_OUT: db '0xface',0
HEX_OUT2: db '0xdada',0
|
#pragma once
#include "opencv2/core/ocl.hpp"
namespace cv
{
void clipObjects(Size sz, std::vector<Rect>& objects,
std::vector<int>* a, std::vector<double>* b);
class FeatureEvaluator
{
public:
enum
{
HAAR = 0,
LBP = 1,
HOG = 2
};
struct ScaleData
{
... |
/*
;********************************************************************************************************
; uC/OS-II
; The Real-Time Kernel
;
; Copyright 1992-2021 Silicon Laboratories Inc. www.silabs.com
;
; ... |
; A207450: Number of n X 5 0..1 arrays avoiding 0 0 0 and 0 0 1 horizontally and 0 0 1 and 1 0 1 vertically.
; 16,256,1008,2560,5200,9216,14896,22528,32400,44800,60016,78336,100048,125440,154800,188416,226576,269568,317680,371200,430416,495616,567088,645120,730000,822016,921456,1028608,1143760,1267200,1399216,1540096
... |
; A143804: Triangle read by rows, thrice the Connell numbers (A001614) - 2.
; 1,4,10,13,19,25,28,34,40,46,49,55,61,67,73,76,82,88,94,100,106,109,115,121,127,133,139,145,148,154,160,166,172,178,184,190,193,199,205,211,217,223,229,235,241,244,250,256,262,268,274,280,286,292,298
mul $0,2
mov $1,$0
lpb $1
sub $0,1
sub... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x12422, %rsi
lea addresses_WC_ht+0x199e0, %rdi
nop
nop
add %r13, %r13
mov $9, %rcx
rep movsb
nop
nop
nop
and $35363, %r8
lea addresses_WC_ht+0xab36, %rbx
clflush (%rbx)
nop
nop
nop
nop
d... |
; XL https://www.youtube.com/watch?v=BjNm04oCdYc
; 2600 https://www.youtube.com/watch?v=Ko9ZA50X71s
; ST https://www.youtube.com/watch?v=wuOmoV5edRk
; ST making of https://www.youtube.com/watch?v=_j66Nu7BoCE&list=PLgN_eM4h7HQNkdjhMHn5ca7VQLANrEc-i&index=6
; Speccy https://www.youtube.com/watch?v=09u_Ew2Zrh4&list... |
;count number of spaces in a string
section .data
msg1 : db 'Enter string : '
l1 : equ $-msg1
msg2 : db 'Number of spaces in the string is '
l2 : equ $-msg2
newline : db 10
section .bss
string : resb 50
temp : resb 1
strlen : resb 1
space_count : resb 1
section .text
global _start:
_start:
mov eax, 4
mov ebx,... |
@; TIM3 Initial settings:
@; Control Register One (CR): Page 611 of 1710 pg manual
.equ TIM3_CKD, 0x00<<CKD @; Clock Division; 2 Bits;
.equ TIM3_APRE, 1 <<APRE @; Auto-Reload preload enable; 1 Bit
.equ TIM3_CMS, 0x00<<CMS @; Center-align mode selection; 2 bits
.equ TIM3_DIR, 0 <<DIR @; Direction; 1 bit (Count... |
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 3
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;M... |
main:
ldi r16, 100 // M
// (4*N - 3) * M - 1 (viimane iter) + 1
loop:
// 1 + 4*N - 1 (viimane iter) + 3 = 4*N - 3
ldi r17, 100 // N
loop1:
nop
dec r17
brne loop1
dec r16
brne loop
rjmp main
|
#include <QtWidgets>
int main(int argc, char** argv) {
QApplication app{ argc, argv };
QToolBox toolBox{};
QStringList list{};
list << "linux" << "windows" << "macosx" << "android";
foreach (QString str, list)
toolBox.addItem(new QLabel{str, & toolBox},
QPixmap{":/... |
INVADER_MOVEMENT_ENABLED EQU 1 ; allow invader movement to be disabled for debugging
INVADER_TYPE_COUNT EQU 3
INVADER_ROW_COUNT EQU 5
INVADER_COLUMN_COUNT EQU 11
INVADER_COUNT EQU INVADER_ROW_COUNT * INVADER_COLUMN_COUNT
INVALID_INVADER_INDEX EQU $FF
ASSERT INVADER_COUNT < INVALID_... |
; Konami VRC6a: 256KB PRG-ROM + 8KB PRG-RAM + 256KB CHR-ROM (iNES Mapper 024)
; http://bootgod.dyndns.org:7777/profile.php?id=3316
; (Akumajou Densetsu)
;------------------------------------------------------------------------------;
; This is the version of the VRC6 where the register addresses are in order:
; $x000, ... |
* ---------------------------------------------------------------------------
* PlayDPCM16kHz
* -------------
* Subroutine to play a Delta PCM sample at 16kHz
* 6 bit DAC sample value is encoded as a 4bit lookup value in a delta table
* 62,5 cycles between 2 DAC samples (alternation of 62 and 63 cycles)
*
* No IRQ here... |
; A178633: a(n) = 54*( (10^n - 1)/9 )^2.
; 54,6534,665334,66653334,6666533334,666665333334,66666653333334,6666666533333334,666666665333333334,66666666653333333334,6666666666533333333334,666666666665333333333334,66666666666653333333333334,6666666666666533333333333334,666666666666665333333333333334,6666666666666665333333... |
#include "my_application.h"
#include <flutter_linux/flutter_linux.h>
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
#include "flutter/generated_plugin_registrant.h"
struct _MyApplication {
GtkApplication parent_instance;
char** dart_entrypoint_arguments;
};
G_DEFINE_TYPE(MyApplication, my_application, GT... |
;EXTERN g_mmm
;EXTERN g_ppmp
global EndGoCallback
global StartGoCallback
global StartCodeGoCallback
global StartCodeGoCallback_2
global StartCodeGoCallback_Ret
global StartCodeGoCallback_Jmp
global StartCodeGoCallback_Call
global StartCodeGoCallback_Syscall
global StartCodeGoCallback_CallShadowStack
global StartCodeGo... |
; SBasic routines for Recent Thing v1.00 copyright (c) W. Lenerz 2015
section exten
xdef rcnt_addf
xdef rcnt_gffj$
xdef rcnt_gffa$
xdef rcnt_jobs
xdef rcnt_gall
xdef rcnt_info
xdef rcnt_garr
xdef rcnt_galj
xdef rcnt_garj
xdef rcnt_load
xdef rcnt_save
xdef rcnt_remv
xdef rcnt_sync
xref rcnt_name
xr... |
; Load 1 and 2 onto the stack, add them together, pop them off the stack into
; memory, then shutdown.
main:
load 0x00 1 ; load two constants to memory
load 0x04 2
push 0x00 ; push onto stack
push 0x04
iadd
pop 0x00 ; pop back to stack
sys 0x12 ; syscall to exit
|
; char *strdup(const char * s)
SECTION code_clib
SECTION code_string
PUBLIC _strdup
EXTERN asm_strdup
_strdup:
pop af
pop hl
push hl
push af
jp asm_strdup
|
;
; try to use the serial port (COM1) to communicate.
;
%define module serial
%include "api.macro"
%include "io.macro"
%define SERIAL1_PORT 0x3f8
%define SERIAL1_IRQ 4
%define MODE_8N1 0x03
%define MODE_DIVISOR_LATCH 0x80
%define DIVISOR 115200
%define SPEED... |
; A294602: a(n) = pi(n-1) - pi(floor(n/2)), where pi is A000720.
; Submitted by Christian Krause
; 0,0,1,1,1,1,1,2,2,1,1,2,2,2,2,2,2,3,3,4,4,3,3,4,4,3,3,3,3,4,4,5,5,4,4,4,4,4,4,4,4,5,5,6,6,5,5,6,6,6,6,6,6,7,7,7,7,6,6,7,7,7,7,7,7,7,7,8,8,8,8,9,9,9,9,9,9,9,9,10,10,9,9,10,10,9
mov $3,$0
sub $0,1
div $3,2
mov $5,$0
lpb $3... |
; A042539: Denominators of continued fraction convergents to sqrt(798).
; Submitted by Jon Maiga
; 1,4,225,904,50849,204300,11491649,46170896,2597061825,10434418196,586924480801,2358132341400,132642335599201,532927474738204,29976580920938625,120439251158492704,6774574645796530049,27218737834344612900,153102389336909485... |
; A082369: Numbers congruent to 13 mod 30.
; 13,43,73,103,133,163,193,223,253,283,313,343,373,403,433,463,493,523,553,583,613,643,673,703,733,763,793,823,853,883,913,943,973,1003,1033,1063,1093,1123,1153,1183,1213,1243,1273,1303,1333,1363,1393,1423,1453,1483,1513,1543,1573,1603,1633,1663,1693,1723,1753,1783,1813,1843,1... |
#pragma once
#include <libpldm/pldm.h>
namespace phosphor
{
namespace dump
{
namespace pldm
{
/**
* PLDMInterface
*
* Handles sending the SetNumericEffecterValue PLDM
* command to the host to start dump offload.
*
*/
/**
* @brief Kicks of the SetNumericEffecterValue command to
* start offload the dum... |
//===--- CGException.cpp - Emit LLVM Code for C++ exceptions ----*- C++ -*-===//
//
// 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
//
//===---------------------------... |
; void __CALLEE__ *memmove_callee(void *s1, void *s2, uint n)
; copy n chars from s2 to s1, overlap safe
; 01.2007 aralbrec
SECTION code_clib
PUBLIC memmove_callee
PUBLIC _memmove_callee
PUBLIC ASMDISP_MEMMOVE_CALLEE
.memmove_callee
._memmove_callee
pop hl
pop bc
pop de
ex (sp),hl
; enter : bc = u... |
bits 32
%include "../prtt/def.nasm"
%include "../kexec/def.nasm"
boot32_section:
boot16_kexec_message: db '[boot16]: read kernel kexec', `\n\r`, 0
boot16_proto_message: db '[boot16]: enter protected mode', `\n\r`, 0
boot32:
mov ax, gdt_tmp_data ; set segments
mov ds, ax
mov es, ax
mov ss, ax
mov fs, ax
... |
// Copyright (C) 2019-2020 Zilliz. 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 l... |
; Test program
LABEL1:
PROCESSOR 6502
ORG $C000
DEFINE KONST #5
RESET:
LDX KONST
AGAIN:
NOP
LDA SOMEDATA, X ; Load some data
JSR ADDSOME ; Call sub
STA $12, X
CLC
BCC AGAIN ; Test branch logic
ADDSOME: ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1db3, %r10
sub $39992, %rbx
movb (%r10), %r15b
cmp $19166, %rsi
lea addresses_UC_ht+0x701, %rbp
nop
nop
nop
nop
nop
sub $45388, %rsi
mov $0x6162636465666768, %r14
movq %r14, ... |
MODEL small
STACK 128
DATASEG
actlet dw 0
outbuf db 27, '[34;46m'
escc = $-outbuf
inbuf db 128 dup('*')
reset db 27,'[0m$'
CODESEG
BEGIN: mov ax,@data
mov ds,ax
;mov ah,9
;mov dx,offset clear
;int 21h
mov ah, 02h
mov dl, '>'
int 21h
mov ah,3fh
mov bx,0
mov cx,128
mov dx, offset inbuf... |
;;;
; This method is called when the app inits. It is the main method
;;;
proc AppInit
fastcall ConsoleInit
fastcall ParserInit
; Add specific GUI commands
fastcall ArrayListPush, [_lg_commands_list], _gr_str_cmd_exit
fastcall ArrayListPush, [_lg_commands_handlers], DoExit
fastcall Ar... |
lda {m2}
asl
sta {m1}
lda {m2}+1
rol
sta {m1}+1
asl {m1}
rol {m1}+1
asl {m1}
rol {m1}+1
asl {m1}
rol {m1}+1
|
; Mushmeanie mappings
dc.w word_8DD00-Map_Mushmeanie
dc.w word_8DD08-Map_Mushmeanie
dc.w word_8DD16-Map_Mushmeanie
dc.w word_8DD24-Map_Mushmeanie
word_8DD00: dc.w 1 ; DATA XREF: ROM:0008DCF8o
dc.b $F8, 9, 0, 0, $FF, $F4
word_8DD08: dc.w 2 ; DATA XREF: ROM:0008DCF8o
dc.b $F8, 5, 0, 6, $FF... |
// Copyright Janet Davis, January 2018.
// Free for educational use.
// Exercises all computations on the A and D registers.
// This is not a program and cannot be tested by running the resulting
// .hack file. Instead, compare to the .hack file produced by the
// given assembler.
D=0
D=1
D=-1
D=D
D=A
D=!D
D=!A
D=-... |
; A199317: 2*6^n+1.
; 3,13,73,433,2593,15553,93313,559873,3359233,20155393,120932353,725594113,4353564673,26121388033,156728328193,940369969153,5642219814913,33853318889473,203119913336833,1218719480020993,7312316880125953,43873901280755713,263243407684534273,1579460446107205633,9476762676643233793,56860576059859402753... |
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="pid, policy, param"/>
<%docstring>
Invokes the syscall sched_setscheduler. See 'man 2 sched_setscheduler' for more information.
Arguments:
pid(pid_t): pid
policy(int): policy
param(sched_param): param
</%docstring>
${syscall(... |
#include <iostream>
using namespace std;
class Veiculo {
// so pode ser acessado dentro da propria classe
private:
int velMax;
int potencia;
// pode ser acessado por todos
public:
int rodas;
const char* nome;
// consigo acessar na propria classe e em subclasses
protected:
int portas;
const char* cor... |
###############################################################################
# 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... |
/*
See LICENSE file in root folder
*/
#include "ComputeWriter.hpp"
#include "BaseTypes/UInt.hpp"
#include "VecTypes/Vec3.hpp"
namespace sdw
{
//*************************************************************************
template< template< ast::var::Flag FlagT > typename DataT >
template< typename ... ParamsT >
Co... |
; A074334: a(n) = Sum_{r=1..n} r^4*binomial(n,r)^2.
; Submitted by Jamie Morken(w1)
; 0,1,20,234,2144,16750,117432,761460,4654848,27173718,152867000,834212236,4438175040,23108423884,118111709744,594059985000,2946077521920,14429322555750,69892354873080,335194270938780,1593211647720000,7511501237722020,35153884344493200,... |
#pragma once
#include <string>
#include <vector>
#include <iostream>
#include <map>
#include "clay.hpp"
struct DocObject
{
std::string name;
std::string description;
clay::TopLevelItemPtr item;
};
struct DocSection
{
std::string name;
std::string description;
std::vector<DocObject *> objec... |
// Copyright (c) 2020 ETH Zurich
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#pragma once
#include <hpx/config.hpp>
#include <hpx/checkpoint/config/defines.hpp>
#incl... |
; A135732: Distances to next prime associated with A135731.
; Submitted by Jamie Morken(s4)
; 2,1,3,1,3,1,3,5,1,5,3,1,3,5,5,1,5,3,1,5,3,5,7,3,1,3,1,3,13,3,5,1,9,1,5,5,3,5,5,1,9,1,3,1,11,11,3,1,3,5,1,9,5,5,5,1,5,3,1,9,13,3,1,3,13,5,9,1,3,5,7,5,5,3,5,7,3,7,9,1,9,1,5,3,5,7,3,1,3,11,7,3,7,3,5,11
mov $3,2
mov $5,$0
lpb $3
... |
; A108037: Triangle read by rows: n-th row is n-th nonzero Fibonacci number repeated n+1 times.
; 0,1,1,1,1,1,2,2,2,2,3,3,3,3,3,5,5,5,5,5,5,8,8,8,8,8,8,8,13,13,13,13,13,13,13,13,21,21,21,21,21,21,21,21,21,34,34,34,34,34,34,34,34,34,34,55,55,55,55,55,55,55,55,55,55,55,89,89,89,89,89,89,89,89,89,89,89,89,144,144,144,144,... |
_ln: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: 83 39 03 cmpl $0x3,(%ecx)
a: ff 71 fc pushl -0x4(%ecx)
d: 55 push %ebp
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1c7ac, %r15
nop
nop
nop
sub $48164, %r10
mov (%r15), %r11w
nop
sub %rcx, %rcx
lea addresses_D_ht+0x2013, %rsi
lea addresses_WT_ht+0xc344, %rdi
nop
sub $61726, %rbx
mov $64, %... |
; ==================================================================
; The Mike Operating System bootloader
; Copyright (C) 2006 - 2014 MikeOS Developers -- see doc/LICENSE.TXT
;
; Based on a free boot loader by E Dehling. It scans the FAT12
; floppy for KERNEL.BIN (the MikeOS kernel), loads it and executes it.
; This ... |
; A252870: Number of n X 2 nonnegative integer arrays with upper left 0 and lower right n+2-4 and value increasing by 0 or 1 with every step right or down.
; 0,1,8,26,61,120,211,343,526,771,1090,1496,2003,2626,3381,4285,5356,6613,8076,9766,11705,13916,16423,19251,22426,25975,29926,34308,39151,44486,50345,56761,63768,71... |
; Program 10.1
; Using Segment Selectors - MASM (64-bit)
; Copyright (c) 2019 Hall & Slonka
extrn ExitProcess : proc
.DATA
array DWORD 3, 2, 6, 4, 1
.CODE
_main PROC
mov rax, OFFSET array ; array address to rax
mov ebx, [rax+4] ; second element to ebx
; mov ecx, ds:[array] ; first element to ecx (compiler error)
; ... |
../mpn/arm/mul_1.asm |
;;; CGALORES.ASM - Demonstration of the 160x100x16 mode on CGA systems.
;;; by Michael Martin, 2015, for the Bumbershoot Software blog
;;; This code is BSD-licensed; see the repository's general license
;;; for details
;;; This was written for the Netwide Assembler (www.nasm.us)
;;; To assemble, put this and cgalores... |
/*
* Copyright 2019 Amadeus s.a.s.
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish, distr... |
; ===============================================================
; Nov 2014
; ===============================================================
;
; uint8_t z80_inp(uint16_t port)
;
; Return byte read from 16-bit port address.
;
; ===============================================================
SECTION code_clib
SECTION... |
/*
* Copyright (c) 2019, 2020, 2021 SiKol Ltd.
* Distributed under the Boost Software License, Version 1.0.
*/
#include <catch2/catch.hpp>
#include <ivy/error.hxx>
#ifdef _MSC_VER
// Unreachable code; triggered by REQUIRE_THROWS_AS.
# pragma warning(disable : 4702)
#endif
auto return_runtime_err... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.