text stringlengths 1 1.05M |
|---|
/**
* Project Logi source code
* Copyright (C) 2019 Primoz Lavric
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later... |
/*
Given a Binary Tree, find vertical sum of the nodes that are in same vertical line. Print all sums through different vertical lines.
*/
#include<iostream>
#include<map>
using namespace std;
struct node
{
node *left;
int data;
node *right;
};
class BinaryTree
{
public:
node *root;
B... |
/********************************************************************
* This file includes functions that outputs a configuration protocol to XML format
*******************************************************************/
/* Headers from system goes first */
#include <string>
#include <algorithm>
/* Headers from vtr... |
; multi-segment executable file template.
data segment
; add your data here!
pkey db "press any key...$"
message db "Please Enter Char : $"
res1 db "Ahmad $"
res2 db "Bahman $"
res3 db "Computer $"
res4 db "General $"
... |
; A001716: Generalized Stirling numbers.
; Submitted by Jon Maiga
; 1,9,74,638,5944,60216,662640,7893840,101378880,1397759040,20606463360,323626665600,5395972377600,95218662067200,1773217155225600,34758188233574400,715437948072960000,15429680577561600000,347968129734973440000,8190600438533990400000,20088307998129659904... |
#include "moab/Range.hpp"
#include "moab/Core.hpp"
#include "moab/Skinner.hpp"
#include <iostream>
#include <stdlib.h>
using namespace moab;
enum {
NO_ERROR= 0,
SYNTAX_ERROR = 1,
FILE_IO_ERROR = 2,
INTERNAL_ERROR = 3
};
const char* DEFAULT_TAG_NAME = "depth";
static void usage( const char* argv0 )
{
std::... |
*= $0801
.byte $4c,$16,$08,$00,$97,$32
.byte $2c,$30,$3a,$9e,$32,$30
.byte $37,$30,$00,$00,$00,$a9
.byte $01,$85,$02
jsr print
.byte 13
.text "(up)stya"
.byte 0
lda #%00011011
sta db
lda #%11000110
st... |
; A176531: Decimal expansion of (10+sqrt(110))/2.
; Submitted by Christian Krause
; 1,0,2,4,4,0,4,4,2,4,0,8,5,0,7,5,7,7,3,4,9,5,7,2,6,7,5,6,8,3,9,9,6,8,7,9,9,2,3,7,6,3,5,9,2,8,8,4,0,7,5,1,9,9,2,4,3,7,8,7,7,8,8,1,7,9,0,0,0,2,9,6,2,7,5,0,5,5,0,3,4,5,7,0,9,6,9,2,6,4,4,4,6,6,5,9,7,2,0,8
mov $2,1
mov $3,$0
mul $3,4
lpb $3
... |
; void *tshc_saddr2aaddr(void *saddr)
SECTION code_clib
SECTION code_arch
PUBLIC tshc_saddr2aaddr
EXTERN asm_tshc_saddr2aaddr
defc tshc_saddr2aaddr = asm_tshc_saddr2aaddr
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x19bc6, %rcx
nop
sub %rbx, %rbx
mov $0x6162636465666768, %rdx
movq %rdx, (%rcx)
nop
cmp %rsi, %rsi
lea addresses_A_ht+0x249e, %rsi
lea addresses_normal_ht+0x5ee, %rdi
nop
nop
... |
/**
* @file /ecl_devices/include/ecl/devices/serial_w32.hpp
*
* @brief Win32 interface for serial (RS232) devices.
*
* @date May 2010
**/
/*****************************************************************************
** Ifdefs
*****************************************************************************/
#ifndef... |
; A263511: Total number of ON (black) cells after n iterations of the "Rule 155" elementary cellular automaton starting with a single ON (black) cell.
; 1,3,6,12,19,29,40,54,69,87,106,128,151,177,204,234,265,299,334,372,411,453,496,542,589,639,690,744,799,857,916,978,1041,1107,1174,1244,1315,1389,1464,1542,1621,1703,17... |
; A242084: 5^p - 4^p - 1, where p is prime.
; Submitted by Jamie Morken(s3)
; 8,60,2100,61740,44633820,1153594260,745759583940,18798608421180,11850560210900460,185976284546943991380,4652001187058965190220,72740686675902780452348340,45469899385367953379053128420,1136791005963704961126617632860,71052292871947161978672588... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %rcx
push %rdi
push %rdx
lea addresses_UC_ht+0x18250, %rdx
cmp %rcx, %rcx
mov $0x6162636465666768, %r13
movq %r13, %xmm4
and $0xffffffffffffffc0, %rdx
vmovntdq %ymm4, (%rdx)
nop
sub %rdi, %rdi
pop %rdx
pop %rdi
pop %rcx
pop %r13
ret
.global s_faulty_load
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1513e, %r9
nop
nop
and %r8, %r8
mov $0x6162636465666768, %r11
movq %r11, (%r9)
nop
nop
nop
xor $59653, %r13
lea addresses_UC_ht+0x853e, %rsi
lea addresses_normal_ht+0x198fe, %... |
SECTION code_fp_math48
PUBLIC _asin
EXTERN cm48_sdccix_asin
defc _asin = cm48_sdccix_asin
|
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 91
call lwaitly_b
xor a, a
ldff(40), a
ld hl, fea0
lbegin_fill_oam:
dec l
ld(hl), a
jrnz lbegin_fill_oam
ld hl, fe9c
ld d, 10
ld a, d
ld(hl), a
inc l
ld a, 18
ld(hl), a
ld a, 97
ldff(40), a
call lwa... |
; A262389: Numbers whose last digit is composite.
; Submitted by Jon Maiga
; 4,6,8,9,14,16,18,19,24,26,28,29,34,36,38,39,44,46,48,49,54,56,58,59,64,66,68,69,74,76,78,79,84,86,88,89,94,96,98,99,104,106,108,109,114,116,118,119,124,126,128,129,134,136,138,139,144,146,148,149
mul $0,5
mov $1,$0
bin $0,3
mod $0,2
div $1,4
... |
;
; Word: OVER
; Dictionary: (a b - a b a)
; Date: 1st February 2018
; Macro: Yes
; Notes:
;
pop ix
pop hl ; 2nd on stack
push hl ; push back
push de ; push TOS
ex de,hl ; 2nd to TOS
jp (ix)
|
TITLE Program Template (RevStr.asm)
; This program reverses a string.
; Last update: 1/28/02
INCLUDE Irvine32.inc
.data
aName BYTE "Abraham Lincoln",0
nameSize = ($ - aName) - 1
.code
main PROC
; Push the name on the stack.
mov ecx,nameSize
mov esi,0
L1: movzx eax,aName[esi] ; get cha... |
###############################################################################
# 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... |
; A006308: Coefficients of period polynomials.
; 3,10,21,55,78,136,171,253,406,465,666,820,903,1081,1378,1711,1830,2211,2485,2628,3081,3403,3916,4656,5050
add $0,1
cal $0,72205 ; a(n) = (p^2 - p + 2)/2 for p = prime(n); number of squares modulo p^2.
mov $1,$0
mul $1,17
sub $1,68
div $1,17
add $1,3
|
section .data
var1: dq 0x_1234_5678_90ab_cdef
var2: dq 0x_fedc_ba12_3456_7890
var3: dq 0x_1234_5678_09ab_cdef
section .bss
section .text
global main
main:
;; scab rax vs rdi
cld ;; clear direction flag
mov rax, 0x_1234_5678_90ab_cdef
lea rdi,... |
;
; jdmrgext.asm - merged upsampling/color conversion (64-bit SSE2)
;
; Copyright 2009, 2012 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright (C) 2009, 2012, 2016, D. R. Commander.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribu... |
mov r1, 2
mov r2, 6
pow r1, r2
out r1
|
;
; Copyright © 2015 Odzhan, Peter Ferrie. 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 condit... |
0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0001 (0x000002) 0x291E- f:00024 d: 286 | OR[286] = A
0x0002 (0x000004) 0x1010- f:00010 d: 16 | A = 16 (0x0010)
0x0003 (0x000006) 0x291F- f:00024 d: 287 | OR[287] = A
... |
; A024038: a(n) = 4^n - n^2.
; 1,3,12,55,240,999,4060,16335,65472,262063,1048476,4194183,16777072,67108695,268435260,1073741599,4294967040,17179868895,68719476412,274877906583,1099511627376,4398046510663,17592186043932,70368744177135,281474976710080,1125899906841999,4503599627369820,18014398509481255,72057594037927152,... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1994 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Brother NIKE 56-jet print driver
FILE: nike56Stream.asm
AUTHOR: Dave Durran
REVISION HISTORY:
... |
;cpuinit.asm
;AMD64 CPU setup
;Bryan E. Topp <betopp@betopp.com> 2021
;How many CPUs we support
%define CPU_MAX 256
;Where the trampoline for SMP initialization gets copied
%define SMP_STUB_ADDR 4096
extern hal_panic
section .text
bits 32
global cpuinit_entry
cpuinit_entry:
;We should be in 32-bit protected mode... |
# Register use for syscall
# syscall_num 1st arg 2nd 3rd 4th 5th 6th
# x86_64 rax rdi rsi rdx r10 r8 r9 -
mov %rdi,%rax
mov %rsi,%rdi
mov %rdx,%rsi
mov %rcx,%rdx
mov %r8,%r10
mov %r9,%r8
mov 0x8(%rsp),%r9
syscall
cmp $0xfffffffffffff001,%rax
jae 0x... |
// Copyright (c) 2012 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 "chrome/browser/search_engines/template_url_service_factory.h"
#include <string>
#include "base/bind.h"
#include "base/prefs/pref_service.h... |
ESTABLISH_CONNECTION_WITH_INTERNAL_CLOCK EQU $01
ESTABLISH_CONNECTION_WITH_EXTERNAL_CLOCK EQU $02
USING_EXTERNAL_CLOCK EQU $01
USING_INTERNAL_CLOCK EQU $02
CONNECTION_NOT_ESTABLISHED EQU $ff
; signals the start of an array of bytes transferred over the link cable
SERIAL_PREAMBLE_BYTE EQU $FD
; this byte ... |
#include "cbase.h"
#include "filesystem.h"
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xbfcf, %rsi
lea addresses_normal_ht+0x13acf, %rdi
nop
nop
nop
nop
xor %r9, %r9
mov $16, %rcx
rep movsl
nop
nop
nop
nop
sub %rdi, %rdi
lea addresses_UC_ht+0x5b4f, %rdi
nop
add ... |
# JMH version: 1.19
# VM version: JDK 1.8.0_131, VM 25.131-b11
# VM invoker: /usr/lib/jvm/java-8-oracle/jre/bin/java
# VM options: <none>
# Warmup: 20 iterations, 1 s each
# Measurement: 20 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average ti... |
;;
;; Copyright (c) 2020-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... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The Specialcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/m... |
; A001585: a(n) = 3^n + n^3.
; 1,4,17,54,145,368,945,2530,7073,20412,60049,178478,533169,1596520,4785713,14352282,43050817,129145076,387426321,1162268326,3486792401,10460362464,31381070257,94143190994,282429550305,847288625068,2541865845905,7625597504670,22876792476913,68630377389272,205891132121649,617673396313738,185... |
; A223443: 4-level binary fanout graph coloring a rectangular array: number of n X 2 0..14 arrays where 0..14 label nodes of a graph with edges 0,1 1,3 3,5 3,6 1,4 4,7 4,8 0,2 2,9 9,11 9,12 2,10 10,13 10,14 and every array movement to a horizontal or vertical neighbor moves along an edge of this graph.
; Submitted by C... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
Palette_ArmorAndGloves:
{
;DEDF9
LDA !RANDOM_SPRITE_FLAG : BNE .continue
LDA.b #$10 : STA $BC ; Load Original Sprite Location
REP #$21
LDA $7EF35B
JSL $1BEDFF;Read Original Palette Code
RTL
.part_two
SEP #$30
LDA !RANDOM_SPRITE_FLAG : BNE .continue
REP #$3... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x906d, %rdx
nop
inc %rbp
mov (%rdx), %r8d
nop
nop
nop
cmp $3779, %r13
lea addresses_normal_ht+0x48ed, %rsi
nop
nop
nop
nop
inc %r8
mov (%rsi), %ebp
nop
nop
cmp $5022... |
; unsigned char *p3dos_copy_cstr_to_pstr(char *pdst, const char *csrc)
SECTION code_esxdos
PUBLIC p3dos_copy_cstr_to_pstr
EXTERN asm_p3dos_copy_cstr_to_pstr
p3dos_copy_cstr_to_pstr:
pop af
pop hl
pop de
push de
push hl
push af
jp asm_p3dos_copy_cstr_to_pstr
|
;*****************************************************************************
;* x86util.asm
;*****************************************************************************
;* Copyright (C) 2008-2010 x264 project
;*
;* Authors: Loren Merritt <lorenm@u.washington.edu>
;* Holger Lubitz <holger@lubitz.org>
;*
;* ... |
; A186302: ( A007522(n)-1 )/2.
; Submitted by Jon Maiga
; 3,11,15,23,35,39,51,63,75,83,95,99,111,119,131,135,155,179,183,191,215,219,231,239,243,251,299,303,315,323,359,363,371,375,411,419,431,443,455,459,483,491,495,515,519,531,543,551
mov $1,6
mov $2,$0
add $2,3
pow $2,2
lpb $2
sub $2,1
mov $3,$1
seq $3,10051 ... |
; A001701: Generalized Stirling numbers.
; 1,6,26,71,155,295,511,826,1266,1860,2640,3641,4901,6461,8365,10660,13396,16626,20406,24795,29855,35651,42251,49726,58150,67600,78156,89901,102921,117305,133145,150536,169576,190366,213010,237615,264291,293151,324311,357890,394010,432796,474376,518881,566445,617205,671301,72887... |
; A017153: a(n) = (8*n + 7)^5.
; 16807,759375,6436343,28629151,90224199,229345007,503284375,992436543,1804229351,3077056399,4984209207,7737809375,11592740743,16850581551,23863536599,33038369407,44840334375,59797108943,78502725751,101621504799,129891985607,164130859375,205236901143,254194901951,312079600999,380059617807... |
; A008580: Crystal ball sequence for planar net 3.6.3.6.
; 1,5,13,27,45,67,95,125,163,201,249,295,353,407,475,537,615,685,773,851,949,1035,1143,1237,1355,1457,1585,1695,1833,1951,2099,2225,2383,2517,2685,2827,3005,3155,3343,3501,3699,3865,4073,4247,4465,4647,4875,5065,5303,5501,5749,5955,6213,6427,6695,6917,7195,7425,7... |
#include "selfdrive/ui/qt/offroad/networking.h"
#include <QDebug>
#include <QHBoxLayout>
#include <QLabel>
#include <QPainter>
#include "selfdrive/ui/qt/widgets/scrollview.h"
#include "selfdrive/ui/qt/util.h"
void NetworkStrengthWidget::paintEvent(QPaintEvent* event) {
QPainter p(this);
p.setRenderHint(QPainter... |
# Property of Mitchell Jonker
.data
pr0: .asciiz "Enter Value for A\n"
pr1: .asciiz "Enter Value for B\n"
pr2: .asciiz "Enter Value for C\n"
pr3: .asciiz "Enter Value for D\n"
result: .asciiz "F = "
negative: .asciiz "A negative value was entered. Please restart the program."
.text
li $s0, 0 # a
li $s1, 0 # b... |
//-----------------------------------------------------------------------
// Copyright 2011 Ciaran McHale.
//
// 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... |
; A142138: Primes congruent to 29 mod 37.
; Submitted by Jon Maiga
; 29,103,251,547,769,991,1213,1361,1583,1657,1879,2027,2693,2767,3137,3359,3433,3581,3803,3877,4099,4691,4987,5209,5431,5653,5801,6689,6763,6911,7207,7577,7873,8243,8317,8539,8761,9649,9871,10093,10463,11351,12239,12757,12979,13127,14533,15199,15569,156... |
; A101808: Number of primes between two consecutive even numbers.
; 1,2,1,1,0,1,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,0,1,0,0,1,0,0,0,1,0,1,1,0,1,1,0,1,0,0,0,0,0,0,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,1,0,0,0,0,1,1,0,1,1
mul $0,2
mov $1,$0
seq $1,20639 ; Lpf(n): least pri... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0x1",
"RBX": "0xFFFFFFFFFFFFFFFF"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov r15, 0xe0000000
mov rax, 0x0
mov [r15 + 8 * 0], rax
mov rax, 0x1
mov [r15 + 8 * 1], rax
mov rax, 0x2
mov [r15 + 8 * 2], rax
mov r10, 0x1
mov r11, 0x0
mov r12, 0x2
cmp... |
// Copyright (c) 2010 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 <GLES2/gl2.h>
#include "gpu/demos/framework/demo.h"
#include "gpu/demos/framework/demo_factory.h"
#include "ppapi/cpp/completion_callback.h"... |
dnl x86-32 mpn_mod_1s_4p, requiring cmov.
dnl Contributed to the GNU project by Torbjorn Granlund.
dnl Copyright 2009, 2010 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 under the terms of ei... |
dnl S/390-32 mpn_copyi
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 under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published by the Free
dn... |
; A201476: Primes of the form 2n^2 + 9.
; Submitted by Jamie Morken(w4)
; 11,17,41,59,107,137,251,347,401,521,587,809,977,1259,1361,1931,2459,2897,3209,3371,3881,4241,5009,5417,6737,6971,7451,9257,10091,10667,11867,12491,12809,13457,15497,16937,17681,18059,20411,21227,22481,22907,25097,26459,26921,31259,33809,37547,386... |
;------------------------------------------------------------------------------
;
; 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... |
; A049013: Duplicate of A020735.
; 5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51
mov $1,$0
add $1,$0
add $1,5
|
// Copyright 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 "chrome/common/media_galleries/picasa_types.h"
#include <utility>
#include "base/logging.h"
#include "chrome/common/media_galleries/pmp_constan... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x11cfb, %r8
nop
nop
nop
nop
cmp $27202, %rdx
movw $0x6162, (%r8)
nop
dec %rcx
lea addresses_WT_ht+0xb81b, %rsi
lea addresses_WT_ht+0x3a73, %rdi
nop
sub %rax, %rax
mov $86, %rc... |
; testing the multiplication
;------------------------------------
.org 1000
jp start
#include "functions.inc"
start:
ld d,10
ld e,10
call multiply
; checks that the result is D * E and is stored in HL
halt
version:
.db "V1.0",0 |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
%>
<%docstring>newfstatat(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str
Invokes the syscall newfstatat.
See 'man 2 newfstatat' for more information.
Arguments:
vararg(int): vararg
Returns:
long
</%docstring>
<... |
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... |
; A316457: Expansion of x*(31 + 326*x + 336*x^2 + 26*x^3 + x^4) / (1 - x)^6.
; 31,512,2943,10624,29375,68256,140287,263168,459999,760000,1199231,1821312,2678143,3830624,5349375,7315456,9821087,12970368,16879999,21680000,27514431,34542112,42937343,52890624,64609375,78318656,94261887,112701568,133919999,158220000,1859256... |
;
; ANSI Video handling for the Commodore 128 (Z80 mode)
; By Stefano Bodrato - 22/08/2001
;
; Scrollup
;
;
; $Id: f_ansi_scrollup.asm,v 1.6 2016/06/12 16:06:42 dom Exp $
;
SECTION code_clib
PUBLIC ansi_SCROLLUP
.ansi_SCROLLUP
ld hl,$2000+40 ; Text
ld de,$2000
ld bc,40*24
ldir
ld h,d
ld l,e
ld b,40
... |
/*
* sys_pitmgr_port.cpp
*
* Created on: 2019年12月5日
* Author: CkovMk
*/
#include "sys_pitmgr.hpp"
#if defined(HITSIC_USE_PITMGR) && (HITSIC_USE_PITMGR > 0)
#ifdef __cplusplus
extern "C"{
#endif
#if defined(HITSIC_PITMGR_DEFAULT_IRQ) && (HITSIC_PITMGR_DEFAULT_IRQ > 0)
void LPTMR0_IRQHandler(void)
{
PIT_... |
; A163180: a(n) = tau(n) + Sum_{k=1..n} (n mod k).
; 1,2,3,4,6,7,10,12,15,17,24,23,30,35,40,41,53,53,66,67,74,81,100,93,106,116,129,130,153,146,169,173,188,201,222,207,235,252,273,266,299,292,327,334,345,362,405,384,417,426,453,460,507,500,533,528,557,582,637,598,647
add $0,1
mov $2,$0
lpb $0
mov $3,$2
mov $4,$0
... |
; $Id: tstX86-FpuSaveRestoreA.asm $
;; @file
; tstX86-FpuSaveRestore - Experimenting with saving and restoring FPU, assembly bits.
;
;
; Copyright (C) 2013-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;
;... |
ORG 0H
LJMP INIT
ORG 000BH
LJMP TO_ISR
ORG 0030H
INIT:
MOV TMOD, #01H
MOV TH0, #0H
MOV TL0, #0H
MOV IE, #82H //Initializes ENABLE and TIMER 1
SETB TR0 //start timer 0
CLR F0
MAIN:
JB P3.7, BACKUP
CLR C
MOV A, P1 // Reads Sensor/ADC value
CPL A
MOV R5, A
MOV P0, R5 // LED displays ADC value... |
; A028859: a(n+2) = 2*a(n+1) + 2*a(n); a(0) = 1, a(1) = 3.
; Submitted by Christian Krause
; 1,3,8,22,60,164,448,1224,3344,9136,24960,68192,186304,508992,1390592,3799168,10379520,28357376,77473792,211662336,578272256,1579869184,4316282880,11792304128,32217174016,88018956288,240472260608,656982433792,1794909388800,49037... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.22.27905.0
TITLE D:\Project\VS\lab3\practice2.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM _a:DWORD
_DATA ENDS
msvcjmc SEGMENT
__F66CEB67_corecrt_stdio_config@h DB 01H
__101834BA_corecr... |
.MODELSMALL
.DATA
PA EQU 0D800H
PB EQU 0D801H
PC EQU 0D802H
CW EQU 0D803H
.CODE
MOV AX,@DATA
MOV DS,AX
MOV AL,82H ;port B as input, rest(Port A) are outputs
MOV DX,CW
OUT DX,AL
MOV DX,PB ;reading input form LCI
IN AL,DX
ADD AL,00H
JPE evenP ;jump parity equal
MOV AL,00H ;display '00' as odd parity on PA
MOV DX,PA... |
[bits 32]
[org 0x100]
je label
dd label
dw label
dd 3.14159
shl ax, 1
label:
mov byte [label2+ebx], 1
resb 1
[section .data align=16]
db 5
dd label2
[section .text]
mov dword [label2], 5
call label
je near label2
[section .bss]
label2:
resd 1
dd 1
mov cx, 5
[global label2]
[extern label3]
[section .data]
times 65536 db... |
; A070538: a(n) = n^4 mod 19.
; 0,1,16,5,9,17,4,7,11,6,6,11,7,4,17,9,5,16,1,0,1,16,5,9,17,4,7,11,6,6,11,7,4,17,9,5,16,1,0,1,16,5,9,17,4,7,11,6,6,11,7,4,17,9,5,16,1,0,1,16,5,9,17,4,7,11,6,6,11,7,4,17,9,5,16,1,0,1,16,5,9,17,4,7,11,6,6,11,7,4,17,9,5,16,1,0,1,16,5,9,17,4,7,11,6,6,11,7,4,17,9,5,16,1,0,1,16,5,9,17,4,7,11,6,6... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0x4142434445464748",
"RDX": "0x0",
"RDI": "0xE0000018",
"RSI": "0xE0000008"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 1], rax
... |
; A022349: Fibonacci sequence beginning 0, 15.
; Submitted by Jon Maiga
; 0,15,15,30,45,75,120,195,315,510,825,1335,2160,3495,5655,9150,14805,23955,38760,62715,101475,164190,265665,429855,695520,1125375,1820895,2946270,4767165,7713435,12480600,20194035,32674635,52868670,85543305,138411975,223955280,362367255,586322535,... |
; A197879: Parity of floor(n*sqrt(8)).
; 0,1,0,1,0,0,1,0,1,0,1,1,0,1,0,1,0,0,1,0,1,0,1,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,1,0,1,0,1,0,0,1,0,1,0,1,1,0,1,0,1,0,0,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,0,0,1,0,1,0,1,1,0,1,0,1,0,0,1,0,1,0,1,1,0,1,0,1,0,0
mul $0,2
add $0,1
seq $0,87057 ; Smallest number whose square is larger than 2... |
/* ***** BEGIN LICENSE BLOCK *****
Version: MPL 1.1/LGPL 2.1/GPL 2.0
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
...
for the specific language governing rights and limitations under the
License.
The Original Code... |
;
; ANSI Video handling for the the MicroBEE
;
; Stefano Bodrato - 2016
;
; Handles colors referring to current PAPER/INK/etc. settings
;
; Scrollup
;
;
; $Id: f_ansi_scrollup.asm,v 1.2 2016-11-17 09:39:03 stefano Exp $
;
SECTION code_clib
PUBLIC ansi_SCROLLUP
EXTERN bee_attr
EXTERN ansicolumns
.ansi_S... |
; A239745: a(n) = (3*2^(n+2) + n*(n+5))/2 - 6.
; 0,9,25,54,108,211,411,804,1582,3129,6213,12370,24672,49263,98431,196752,393378,786613,1573065,3145950,6291700,12583179,25166115,50331964,100663638,201326961,402653581,805306794,1610613192,3221225959,6442451463,12884902440,25769804362,51539608173,103079215761,206158430902... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x190f1, %r9
nop
nop
nop
and %rcx, %rcx
mov $0x6162636465666768, %rdx
movq %rdx, %xmm3
movups %xmm3, (%r9)
nop
sub %r15, %r15
lea addresses_WT_ht+0x82f7, %rsi
lea addresses_WT_... |
def main(c:bool, a:i128, b:i128) -> (y:i128) {
t0:i8 = ext[0, 7](a);
t1:i8 = ext[0, 7](b);
t2:i8 = lmux_i8(c, t0, t1) @lut(??, ??);
t3:i8 = ext[8, 15](a);
t4:i8 = ext[8, 15](b);
t5:i8 = lmux_i8(c, t3, t4) @lut(??, ??);
t6:i8 = ext[16, 23](a);
t7:i8 = ext[16, 23](b);
t8:i8 = lmux_i8(c... |
#include "../dbstore.h"
#include "../print.h"
#include "../story_item.h"
#include "../userin.h"
#include <iostream>
#include <string>
using namespace std;
//your the captin now
Database db_sS = Database();
void now_captin()
{
StoryItem* nowCaptinItem = new StoryItem();
nowCaptinItem->preText = ".\n You gathe... |
; A168587: Smallest digit sum of an n-digit prime with only digits 0 add 1 (or 0, if no such prime exists).
; 0,2,2,0,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4
mov $2,$0... |
// Copyright 2021 gRPC 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 agreed to i... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xe83d, %rsi
lea addresses_WC_ht+0x553d, %rdi
nop
nop
xor %r11, %r11
mov $122, %rcx
rep movsw
nop
add %rbp, %rbp
lea addresses_UC_ht+0x19c3d, %r13
xor $11277, %rdx
mov (%r13), ... |
;/* Builtins not (yet) implemented in Clang's compiler-rt. */
;.global __mulhi3hw_noint
; .type __mulhi3hw_noint,@function
.cdecls C, LIST, "builtins.h"
.def __mulhi3hw_noint
.global __mulhi3hw_noint
__mulhi3hw_noint:
; these addresses are for MSP430FR5969
MOV R15, &0x04C0
MOV R14, &0x04C8
MOV &0x04CA, R15
... |
; A077552: Consider the following triangle in which the n-th row contains n distinct numbers whose product is the smallest and has the least possible number of divisors. 1 is a member of only the first row. Sequence contains the final term of the rows (the leading diagonal).
; 1,3,8,16,32,64,128,256,512,1024,2048,4096,... |
_start:
cbz x0, return
ret
return:
ret |
/* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ----... |
#include "SettingForRendering.h"
using namespace std;
namespace FontGenerator
{
SettingForRendering::SettingForRendering()
: m_fontSize(20)
, m_fontColor(Color())
, m_border(nullptr)
, m_bold(nullptr)
{
}
#pragma region GetSet
int SettingForRendering::GetFontSize() const
{
return m_fontSize;
}
void... |
;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
;SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
;IN USING, DISPLAYING, ... |
ORIGIN 0
SEGMENT CodeSegment1:
START:
LEA R0, DataSegment
ADD R1, R1, 12
NOP
NOP
NOP
ADD R1, R1, -5
NOP
NOP
NOP
ADD R1, R1, 0
NOP
NOP
NOP
STR R1, R0, aacus
AND R2, R0, 4x0F
NOP
NOP
NOP
STR R2, R0, joiner
NOP
NOP
NOP
LDR ... |
#include "GameOverOverlay.h"
GameOverOverlay::GameOverOverlay(void) {
GameApp *app = GameApp::getInstance();
centerText = new TextItem(Vector2(POSITION_CENTERED, 60), 0, "Game Over", 100);
centerText->setFont("resources/fonts/Honeycombed.ttf");
addInnerItem(centerText);
this->texture = Texture::getOrCreate("0xAA0... |
#ifndef BOOST_METAPARSE_V1_FWD_NEXT_LINE_IMPL_HPP
#define BOOST_METAPARSE_V1_FWD_NEXT_LINE_IMPL_HPP
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
// 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... |
// Copyright (c) 2017 The DYOR developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "irc.h"
#include "db.h"
#include "net.h"
#include "init.h"
#include "strlcpy.h"
#include "addrman.h"
#include "ui_interface.h... |
; A122249: Numerators of Hankel transform of 1/(2n+1).
; Submitted by Christian Krause
; 1,4,256,65536,1073741824,70368744177664,73786976294838206464,309485009821345068724781056,332306998946228968225951765070086144,1427247692705959881058285969449495136382746624
seq $0,77071 ; Row sums of A077070.
mov $1,2
pow $1,$0
mo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.