text stringlengths 1 1.05M |
|---|
; A102394: A wicked odious sequence.
; 0,2,3,0,5,0,0,8,9,0,0,12,0,14,15,0,17,0,0,20,0,22,23,0,0,26,27,0,29,0,0,32,33,0,0,36,0,38,39,0,0,42,43,0,45,0,0,48,0,50,51,0,53,0,0,56,57,0,0,60,0,62,63,0,65,0,0,68,0,70,71,0,0,74,75,0,77,0,0,80,0,82,83,0,85,0
mov $1,$0
add $1,1
mov $3,$0
mov $4,$0
lpb $0
sub $0,1
div $4,2
... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. Th... |
; S2E Selective Symbolic Execution Platform
;
; Copyright (c) 2013 Dependable Systems Laboratory, EPFL
;
; 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... |
//
// Created by Hamza El-Kebir on 2/20/22.
//
#include "PandaArmBlock.hpp"
namespace ls {
namespace blocks {
const ::std::array<::std::string, BlockTraits<PandaArmBlock>::kIns> BlockTraits<PandaArmBlock>::inTypes =
{demangle(typeid(Eigen::Matrix<double, 7, 1>).name())};
const ::s... |
;
; Copyright (C) 2008-2020 Advanced Micro Devices, 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:
; 1. Redistributions of source code must retain the above copyright notice,
; this list of... |
inventory_check:
andi a0, a0, 0xFF
li t0, SAVE_CONTEXT
beq a0, 0x8C, @@return ; Deku Nuts (5)
lbu v0, 0x75 (t0)
beq a0, 0x8D, @@return ; Deku Nuts (10)
lbu v0, 0x75 (t0)
beq a0, 0x00, @@return ; Deku Stick
lbu v0, 0x74 (t0)
beq a0,... |
; A066490: Number of primes of the form 4m+3 <= n.
; 0,0,1,1,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,11,11,11,11,11,11,11,11,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,15,15,15,15,15,... |
/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Claire Xenia Wolf <claire@yosyshq.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear i... |
#include "Halide.h"
#include "daubechies_constants.h"
namespace {
Halide::Var x("x"), y("y"), c("c");
class daubechies_x : public Halide::Generator<daubechies_x> {
public:
Input<Buffer<float>> in_{"in", 2};
Output<Buffer<float>> out_{"out", 3};
void generate() {
Func in = Halide::BoundaryCondit... |
; A227466: E.g.f. equals the series reversion of tanh(x) / exp(x).
; Submitted by Christian Krause
; 1,2,11,96,1149,17520,324855,7096320,178495065,5081045760,161485639875,5668185600000,217773547039125,9090267234048000,409648199646660975,19822083757572096000,1025047834112461784625,56415976360602034176000,329260242668830... |
; A065367: Replace 3^k with (-3)^k in balanced ternary expansion of n.
; Submitted by Christian Krause
; 1,-4,-3,-2,11,12,13,8,9,10,5,6,7,-34,-33,-32,-37,-36,-35,-40,-39,-38,-25,-24,-23,-28,-27,-26,-31,-30,-29,-16,-15,-14,-19,-18,-17,-22,-21,-20,101,102,103,98,99,100,95,96,97,110,111,112,107,108,109,104,105,106,119,120... |
COMMENT @-----------------------------------------------------------------------
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Text Library
FILE: uiSearchReplaceControl.asm
ROUTINES:
Name Description
---- -----------
GLB SearchReplaceControlClass Style menu object... |
/*
* Copyright (C) 2020 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... |
; Program B.1
; Template - NASM (32-bit)
; Copyright (c) 2017 Hall & Slonka
SECTION .data
num: dd 80
SECTION .bss
sum: resd 1
SECTION .text
global _main
_main:
mov eax, [num]
add eax, 20
mov [sum], eax
mov eax, 1
mov ebx, 0
int 80h
|
#include <morphene/blockchain_statistics/blockchain_statistics_api.hpp>
#include <morphene/app/impacted.hpp>
#include <morphene/chain/account_object.hpp>
#include <morphene/chain/history_object.hpp>
#include <morphene/chain/database.hpp>
#include <morphene/chain/index.hpp>
#include <morphene/chain/operation_notificat... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x31c, %r9
nop
xor $15724, %r11
vmovups (%r9), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %r15
nop
nop
add %r14, %r14
lea addresses_normal_ht+0x1c612, %rbx... |
; Namespace
; Compile with: nasm -f elf namespace.asm
; Link with (64 bit systems require elf_i386 option): ld -m elf_i386 namespace.o -o namespace
; Run with: ./namespace
%include 'functions.asm'
SECTION .data
msg1 db 'Jumping to finished label.', 0h ; a message string
msg2 db ... |
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args="fd, vmessages, vlen, flags, tmo"/>
<%docstring>
Invokes the syscall recvmmsg. See 'man 2 recvmmsg' for more information.
Arguments:
fd(int): fd
vmessages(mmsghdr): vmessages
vlen(unsigned): vlen
flags(int): flags
tmo(timesp... |
; A290492: Maximal number of binary vectors of length n such that the unions (or bitwise ORs) of any 3 distinct vectors are all distinct.
; Submitted by Jon Maiga
; 1,2,3,4,5,6,7,8,9,10,11,12,14
mov $6,$0
add $6,1
mov $9,$0
lpb $6
mov $0,$9
sub $6,1
sub $0,$6
pow $0,3
mov $2,2
mov $5,1
mov $8,0
lpb $0
... |
; A104739: Positions of records in A104717.
; 1,2,3,4,6,7,8,11,12,14,16,19,20,23,24,27,31,32,35,38,43,44,47,48,51,56,60,62,64,70,71,75,80,83,87,88,91,96,103,107,110,111,115,123,124,127,135,139,140,147,148,152,163,164,166,174,179,180,184,188,192
mul $0,2
lpb $0
add $1,1
mul $1,$0
sub $0,1
div $1,$0
sub $0,1
l... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "IntroTutorialsPrivatePCH.h"
#include "STutorialRoot.h"
#include "SEditorTutorials.h"
#include "EditorTutorialSettings.h"
#include "TutorialStateSettings.h"
#include "AssetEditorManager.h"
#include "ToolkitManager.h"
#include "IToolkit.h"
#include "... |
//
// jurat.hpp
//
// Created by Subodh Sharma on 12/29/21.
//
#ifndef jurat_hpp
#define jurat_hpp
#include <stdio.h>
#include <hash.h>
#include <core_io.h>
#include <primitives/transaction.h>
#include <script/interpreter.h>
#include <key.h>
#include <algorithm>
#include <set>
#include <base58.h>
#include <key_io.... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1b5bc, %rsi
lea addresses_D_ht+0x313c, %rdi
nop
nop
nop
nop
inc %r12
mov $42, %rcx
rep movsq
nop
nop
nop
nop
sub $58130, %r13
lea addresses_UC_ht+0x120bb, %rsi
lea addresses_D... |
preset_kpdr21_crateria_ship:
dw #$0000
dl $7E078B : db $02 : dw $0000 ; Elevator Index
dl $7E078D : db $02 : dw $88FE ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $91F8 ; MDB
dl $7E079F : db $02 : dw $0000 ; Region
dl $7E07C3 : db $02 : dw $C629 ; GFX Pointe... |
; A109398: a(n) = (1/n!)*Sum_{k=0..n} (n+k)!.
; 1,3,16,145,1926,33649,726328,18636561,553680370,18684924841,705833193924,29502690532393,1351724235304366,67359683340291105,3627011494019437936,209846445862386234529,12982402818188717219658
mov $2,$0
mov $3,15
lpb $0
sub $0,1
add $2,1
mul $3,$2
add $1,$3
lpe
div $... |
;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
; Usage: uncircle(int x, int y, int radius, int skip);
IF !__CPU_INTEL__ && !__CPU_GBZ80__
SECTION code_graphics
PUBLIC uncircle
PUBLIC _uncircle
EXTERN asm_uncircle
.uncircle
._uncircle
push ix
ld ix,2
add ix,sp
; de = x0, hl = y0, bc = radius, a = scale factor... |
ADDI R1 R1 8
ADDI R2 R2 5
ADD R1 R1 R2
ADD R2 R1 R2
ADD R1 R1 R2
ADD R2 R1 R2
SW R1 R2 0
LW R3 R2 0
|
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x96ea, %rsi
lea addresses_UC_ht+0x106aa, %rdi
nop
and %rbx, %rbx
mov $31, %rcx
rep movsw
nop
nop
nop
nop
nop
xor $35620, %r15
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r15
ret
.global s_faulty_load
s_f... |
; A293604: E.g.f.: exp(x * (1 - x)).
; 1,1,-1,-5,1,41,31,-461,-895,6481,22591,-107029,-604031,1964665,17669471,-37341149,-567425279,627491489,19919950975,-2669742629,-759627879679,-652838174519,31251532771999,59976412450835,-1377594095061119,-4256461892701199,64623242860354751,285959261280817099,-3203695853178339455,-1... |
cpu "8085.tbl" ; CPU Table monitor command
hof "int8" ; HEX Format
org 9000h ; Puts location pointer at prompt at 9000
;Pneumonics
GTHEX: EQU 030EH ; This routinue collects the hex digits entered from keyboard
RDKBD: EQU 03BAH ; ... |
MCZ_2p_Header:
smpsHeaderStartSong 2, 1
smpsHeaderVoice MCZ_2p_Voices
smpsHeaderChan $06, $03
smpsHeaderTempo $01, $EC
smpsHeaderDAC MCZ_2p_DAC
smpsHeaderFM MCZ_2p_FM1, $00, $10
smpsHeaderFM MCZ_2p_FM2, $18, $0D
smpsHeaderFM MCZ_2p_FM3, $00, $12
smpsHeaderFM MCZ_... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 17.00.50727.1
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
PUBLIC ?mouse_x@@3HA ; mouse_x
PUBLIC ?mouse_y@@3HA ; mouse_y
PUBLIC ?mouse_x_difference@@3HA ; mouse_x_difference
PUBLIC ?mouse_y_difference@@3HA ; mouse_y_difference... |
; A087385: a(n) = smallest prime == 1 (mod T(n)) where T(n) is the n-th triangular number (A000217).
; 2,7,7,11,31,43,29,37,181,331,67,79,547,211,241,137,307,2053,191,211,463,1013,277,601,1301,3511,379,2437,1741,1861,1489,2113,1123,2381,631,1999,4219,1483,2341,821,1723,3613,947,991,6211,12973,1129,3529,7351
seq $0,96 ... |
; A100714: Number of runs in binary expansion of A000040(n) (the n-th prime number) for n>0.
; 2,1,3,1,3,3,3,3,3,3,1,5,5,5,3,5,3,3,3,3,5,3,5,5,3,5,3,5,5,3,1,3,5,5,7,5,5,5,5,7,5,7,3,3,5,3,5,3,3,5,5,3,3,3,3,3,5,3,7,5,5,7,5,5,5,5,7,7,7,7,5,5,5,7,5,3,5,5,5,5,5,7,5,5,5,5,3,5,5,3,5,3,3,5,3,3,3,5,5,5
seq $0,40 ; The prime nu... |
;/*!
; @file
;
; @ingroup fapi
;
; @brief DosPFSVerifyFont DOS wrapper
;
; (c) osFree Project 2022, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; This is Family API implementation for DOS, used with BIND tools
; to link required API
;
; @author Yuri Prok... |
;;; Copyright 2020 Tadashi G. Takaoka
;;;
;;; 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 ... |
;-----------------------------------------------------------------------------;
; Author: Ege Balcı <ege.balci[at]invictuseurope[dot]com>
; Compatible: Windows 10/8.1/8/7/2008/Vista/2003/XP/2000/NT4
; Version: 1.0 (25 January 2018)
; Size: 177 bytes
;---------------------------------------------------------------------... |
; A298360: Numbers congruent to {3, 7, 13, 27} mod 30.
; 3,7,13,27,33,37,43,57,63,67,73,87,93,97,103,117,123,127,133,147,153,157,163,177,183,187,193,207,213,217,223,237,243,247,253,267,273,277,283,297,303,307,313,327,333,337,343,357,363,367,373,387,393,397,403
mov $2,$0
add $0,3
mov $3,$0
sub $3,1
mov $4,$0
mov $5,$0
... |
.file "aes-aesni.asm"
.text
.macro AES128_EXPAND rcon, off
vaeskeygenassist $\rcon, %xmm0, %xmm1
pshufd $0xFF, %xmm1
vpslldq $0x04, %xmm0, %xmm2
pxor %xmm2, %xmm0
pslldq $0x04, %xmm2
pxor %xmm2, %xmm0
pslldq $0x04, %xmm2
pxor %xmm2, %xmm0
pxor %xmm1, %xmm0
movdqa %xmm0, \off(%rd... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 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 <rpc/blockchain.h>
#include <amount.h>
#include <chain.h>
#include <chainpar... |
; unsigned char esx_f_chmod(unsigned char *filename, uint8_t attr_mask, uint8_t attr)
SECTION code_esxdos
PUBLIC esx_f_chmod
EXTERN asm_esx_f_chmod
esx_f_chmod:
pop af
pop de
pop bc
pop hl
push hl
push bc
push de
push af
ld b,e
jp asm_esx_f_chmod
; SDCC bridge for Classic
IF __C... |
;; -*- tab-width: 4 -*-
bits 32
global _Import
global _HashShiftPtr
global _MaxNameLengthPtr
extern __imp__LoadLibraryA@4
extern _DLLNames
extern _ImportList
extern _HashMultiplier
; Format of DLL names:
; For each DLL
; Zero-terminated DLL name (omitted for kernel32)
; byte: Number of... |
; A247063: Dynamic Betting Game D(n,5,3).
; 1,2,3,4,5,6,8,9,10,11,12,13,16,17,18,19,20,21,22,24,25,26,27,28,29,32,33,34,35,36,37,38,40,41,42,43,44,45,48,49,50,51,52,53,54,56,57,58,59,60,61,64,65,66,67,68,69,70,72,73,74,75,76,77,80,81,82,83,84,85,86,88,89,90,91,92,93,96
mul $0,2
add $0,28
sub $2,$0
div $0,13
sub $2,$0
... |
; void p_forward_list_clear_fastcall(p_forward_list_t *list)
SECTION code_adt_p_forward_list
PUBLIC _p_forward_list_clear_fastcall
defc _p_forward_list_clear_fastcall = asm_p_forward_list_clear
INCLUDE "adt/p_forward_list/z80/asm_p_forward_list_clear.asm"
|
/* The smooth Class Library
* Copyright (C) 1998-2020 Robert Kausch <robert.kausch@gmx.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of "The Artistic License, Version 2.0".
*
* THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRA... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.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 d, 10
ld a, d
ld(hl), a
inc l
ld a, a7
ld(hl), a
inc l
inc l
inc l
ld a, d
... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2020 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 <consensus/merkle.h>
#include <validation.h>
#include <httpserver.h>
#include... |
/*
* Copyright (C) 2008-2020 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditi... |
; A030130: Binary expansion contains a single 0.
; 0,2,5,6,11,13,14,23,27,29,30,47,55,59,61,62,95,111,119,123,125,126,191,223,239,247,251,253,254,383,447,479,495,503,507,509,510,767,895,959,991,1007,1015,1019,1021,1022,1535,1791,1919,1983,2015,2031,2039,2043,2045,2046,3071,3583,3839,3967,4031,4063,4079,4087,4091,4093,4... |
###############################################################################
# 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... |
#pragma once
#include "elx_deconv_direct.hpp"
namespace euler {
Template_elx_deconv_direct_t void
Instance_elx_deconv_direct_t::bind_execute_functions()
{
#define BIND_CONV_KERNEL(S, F, K) \
if (K == 3) { \
... |
USE32
ALIGN 4096
section .diskdata
incbin "testdisk"
|
//Copyright [2020] [Indian Institute of Science, Bangalore & Tata Institute of Fundamental Research, Mumbai]
//SPDX-License-Identifier: Apache-2.0
#include <rapidjson/document.h>
#include <rapidjson/istreamwrapper.h>
#include <rapidjson/prettywriter.h>
#include <rapidjson/stringbuffer.h>
#include <algorithm>
#include <... |
<%
from pwnlib.shellcraft.i386.linux import syscall
%>
<%page args="addr, length, advice"/>
<%docstring>
Invokes the syscall madvise. See 'man 2 madvise' for more information.
Arguments:
addr(void): addr
len(size_t): len
advice(int): advice
</%docstring>
${syscall('SYS_madvise', addr, length, ad... |
NewBarkTown_MapScripts:
db 0 ; scene scripts
db 1 ; callbacks
callback MAPCALLBACK_NEWMAP, .FlyPoint
.FlyPoint:
setflag ENGINE_FLYPOINT_NEW_BARK
clearevent EVENT_FIRST_TIME_BANKING_WITH_MOM
return
NewBarkTown_MapEvents:
db 0, 0 ; filler
db 0 ; warp events
db 0 ; coord events
db 0 ; bg events
db 0 ... |
;
; z88dk library: Generic VDP support code
;
; int msx_color(int foreground, int background, int border );
;
; Change the color attributes (MSX style)
;
; $Id: gen_color.asm,v 1.1 2010/06/30 13:21:38 stefano Exp $
;
XLIB msx_color
LIB SETWRT
LIB set_vdp_reg
;XREF SCRMOD
INCLUDE "msx/vdp.inc"
msx_color:
ld ... |
#ifndef BOOST_NETWORK_MESSAGE_WRAPPERS_BODY_HPP_20110930
#define BOOST_NETWORK_MESSAGE_WRAPPERS_BODY_HPP_20110930
// Copyright 2011 Dean Michael Berris <dberris@google.com>.
// Copyright 2011 Google, Inc.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at... |
DEVICE ZXSPECTRUM48
OPT --syntax=F
app_begin:
; Startup handler
ORG #0000
jp startup_handler
DB 0,"Sizif Magic ROM",0
; NMI handler
ORG #0066
jp nmi_handler
; INT IM1 handler
ORG #0038
push bc
ld bc, #0038
ld (var_int_vector), bc
pop bc
ret
; INT IM2 handler
O... |
;;
;; Copyright (c) 2012-2018, 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... |
#include "const.hpp"
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <fcntl.h>
#include <sys/epoll.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
struct ChildState
{
int pid;
int readPipe;
};
static struct ChildState g_States[ChildCou... |
/**
* @file rcDataObjCopy.cpp
*
*/
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* This is script-generated code. */
/* See dataObjCopy.h for a description of this API call.*/
#include "dataObjCopy.h"... |
; DRAW LOAD SPRITE 2 BYTE DEFINITION ROTATED
; 01.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
INCLUDE "clib_target_cfg.asm"
SECTION code_temp_sp1
PUBLIC _SP1_DRAW_LOAD2
EXTERN _SP1_DRAW_LOAD2NR
EXTERN SP1RETSPRDRAW
; following data segment copied into struct sp1_cs
ld hl,0
ld ix,0
call _... |
5 ;the program starts at address 5
100 ;ISR address
;data segment
10
20
30
40
50
60
70
LDD R1,3 ;R1=20
LDD R2,4 ;R2=30
ADD R2,R1 ;R1=50
STD R1,4 ;M[4]=50
Push R2 ;M[1023]=30 Sp=1022 assume von Neumann arch
Push R1 ;M[1022]=50 Sp=1021
LDD R1,0 ;R1=5
LDD R2,1 ;R2=100
A... |
; int fseek_callee(FILE *stream, long offset, int whence)
INCLUDE "clib_cfg.asm"
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _fseek_callee
EXTERN asm_fseek
_fseek_callee:
pop af
pop ix
pop hl
pop de
pop bc
push af
... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XX ... |
/*
* SystemInfo.cpp
*
* Created on: May 21, 2018
* Author: root
*/
#include "SystemInfo.h"
double g_cpu_used;
unsigned long g_mem_total;
unsigned long g_mem_used;
unsigned long g_disk_total;
unsigned long g_disk_used;
unsigned long g_disk_read;
unsigned long g_disk_write;
unsigned long g_network_up;
unsign... |
;--------------------------------------------------------------------------------
; LockAgahnimDoors:
; Returns: 0=Unlocked - 1=Locked
;--------------------------------------------------------------------------------
LockAgahnimDoors:
LDA.l AgahnimDoorStyle : AND.w #$00FF
BNE +
;#$0 = Never Locked
LDA.w #$0000 : ... |
// Copyright (c) 2020, QuantStack and XVega Contributors
//
// Distributed under the terms of the BSD 3-Clause License.
//
// The full license is in the file LICENSE, distributed with this software.
#ifndef XVEGA_ENCODING_KEY_HPP
#define XVEGA_ENCODING_KEY_HPP
#include <xproperty/xobserved.hpp>
#include <xtl/xoption... |
#pragma once
class FrameCounter {
public:
static void Update() ;
static u32 m_FrameCount;
static u32 m_LastFrameCount;
static u64 m_LastFrameTime;
static bool m_Display;
};
|
#pragma once
#include <thread>
#include <future>
#include <mutex>
#include <functional>
#include <queue>
#include <vector>
namespace goop
{
template<typename R>
bool is_ready(std::future<R> const& f)
{
return f.wait_for(std::chrono::seconds(0)) == std::future_status::ready;
}
class loo... |
/* ******************************************************************************
*
*
* 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.
*
* See the NOTICE file distributed wit... |
Route24_Script:
call EnableAutoTextBoxDrawing
ld hl, Route24TrainerHeaders
ld de, Route24_ScriptPointers
ld a, [wRoute24CurScript]
call ExecuteCurMapScriptInTable
ld [wRoute24CurScript], a
ret
Route24Script_513c0:
xor a
ld [wJoyIgnore], a
ld [wRoute24CurScript], a
ld [wCurMapScript], a
ret
Route24_ScriptP... |
/*
* Copyright (c) 2004-2005 The Regents of The University of Michigan
* 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
* not... |
.definelabel Shop_Item_Save_Offset, 0xD4 + (0x2C * 0x1C) + 0x10
Shop_Check_Sold_Out:
lhu t6, 0x1c(a0)
; if var is under 0x32, never sell out
addi t5, t6, -0x32
bltz t5, @@return
li v0, 0
; t2 = bit mask
andi t1, t5, 0x07
li t2, 1
sllv t2, t2, t1
; t1 = byte offset
sr... |
;
; LZ4 decompressor by spke (v.1 28/08/2017)
;
; I wrote this LZ4 decompressor from scratch; however, I looked at previously released
; LZ4 decompressors by Piotr Drapich, see http://www.union.org.pl/download/z80/
; and stephenw32768, see https://www.worldofspectrum.org/forums/discussion/45185/lz4-decoder/p2
... |
; A004647: Powers of 2 written in base 8.
; 1,2,4,10,20,40,100,200,400,1000,2000,4000,10000,20000,40000,100000,200000,400000,1000000,2000000,4000000,10000000,20000000,40000000,100000000,200000000,400000000,1000000000,2000000000,4000000000,10000000000,20000000000,40000000000,100000000000,200000000000,400000000000,100000... |
;; Basic I/O System (BIOS) only loads first 512 bytes of bootsector. Now we willwrite program fro larger than 512 bytes.
section .boot
bits 16
global boot
boot:
mov ax, 0x2401
int 0x15
mov ax, 0x3
int 0x10
mov [disk], dl
mov ah, 0x2 ;read sectors
mov al, 6 ;sectors to r... |
// (C) Copyright John Maddock 2005.
// Use, modification and distribution are subject to 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)
#include <iomanip>
|
// Q2.2.4.3. 魔方大厦
// WzhDnwzWzh
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
using namespace std;
int n, p, f[201][201][201], sol = 0;
bool vis[201][201][201];
int way[201][201][201];
inline int read()
{
int x = 0, w = 1;
char ch = 0;
while (ch < '0' || ch > '9')
{
... |
; A134286: Characteristic sequence for sequence A026905.
; 1,0,1,0,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,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,1,0,0,0,0,0,0,0,0,0
mov $1,$0
add $1,1
cal $1,155972 ; The Partition R... |
;======================================================================
; VDU DRIVER FOR ECB-VDU PROJECT
;
; ORIGINALLY WRITTEN BY: ANDREW LYNCH
; REVISED/ENHANCED BY DAN WERNER -- 11/7/2009
; ROMWBW ADAPTATION BY: WAYNE WARTHEN -- 11/9/2012
; 80X25, 80X30 AND MODE INFO AT BOOT ADDED BY: PHIL SUMMERS -- 2/3/2019
... |
bits 16
org 0x7c00
section .text
player_x equ 2
player_length equ 5
player_y dw 10
player_fbl dw 0b_1010_0000_0000_0000
cpu_x equ 78
cpu_length equ 5
cpu_y dw 10
cpu_fbl dw 0b_1001_0000_0000_0000
ball_x dw 1
ball_y dw 1
ball_x_acc dw 1
ball_y_acc dw 1
ball_fbl dw 0b_1100_0000_0000_0000 ; RGB
get_vga_ad... |
.model tiny
.data
display db "DOLL"
count db 04h
.code
.startup
mov ah, 00h
mov al, 03h
int 10h
lea si, display
mov dl, 24h
x: mov ah, 02h
mov dh, 0bh
mov bh, 00h
int 10h
mov ah, 09h
lodsb
mov bh, 00h
mov bl, 8fh
mov cx, 01h
int 10h
inc dl
dec count
jn... |
@10
D=A
@R13
M=D
@R13
A=M-1
D=M
@R13
D=M
D=D-1
A=D
D=M
// Stack
// return_address
(PUSH_TRUE)
@SP
A=M
M=-1
@SP
M=M+1
@R15
A=M
0;JMP
@Sys.init
0;JMP |
/*
* 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, merge, pub... |
org 0x7c00
[bits 16]
; First, BIOS loads the bootsector into 0000:7C00.
mov ax, 0x1301
mov bx, 0x000c
mov cx, 5
mov dx, 0x0808
mov bp, msg
int 0x10
jmp $
msg:
db "HELLO", 0
times 510-(... |
/*
* Copyright (C) 2012-2015 Open Source Robotics Foundation
*
* 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... |
; First, let's include libraries
INCLUDE "hardware.inc/hardware.inc"
rev_Check_hardware_inc 3.0
INCLUDE "rgbds-structs/structs.asm"
; include the user-facing config file
INCLUDE "kit_config.inc"
; A couple more hardware defines
NB_SPRITES equ 40
; I generally discourage the use of pseudo-instructions for a var... |
GLOBAL _getHour
GLOBAL _getMinute
GLOBAL _getSecond
section .text
get:
out 70h, al
in al, 71h
ret
_getHour:
push rbp
mov rbp, rsp
call statusRegisterB
mov rax, 0h
mov al, 4h
call get
mov rsp, rbp
pop rbp
ret
_getMinute:
push rbp
mov rbp, rsp
call statusRegisterB
m... |
; sccz80 crt0 library - 8085 version
SECTION code_crt0_sccz80
PUBLIC l_mult
; HL = DE * HL [signed]
.l_mult
ccmul: LD b,h
LD c,l
LD hl,0
ccmul1: LD a,c
RRCA
JP NC,ccmul2
ADD hl,de
ccmul2: XOR a
LD a,b
RRA
LD b... |
; A248675: Decimal expansion of r = sum_{n >= 0} floor(n/2)!/n!.
; Submitted by Jamie Morken(s2)
; 2,7,7,6,8,8,9,6,0,9,4,0,7,9,7,9,7,2,6,9,8,1,2,4,5,1,6,3,6,1,7,1,8,8,0,6,1,8,5,3,8,4,9,8,3,6,6,5,0,9,6,1,3,1,1,3,2,7,0,5,7,5,0,9,5,9,6,1,1,0,3,8,8,4,9,9,5,2,2,6,7,1,0,8,1,7,3,3,0,5,4,7,2,5,2,2,8,3,1,2
mov $1,1
mov $2,1
mo... |
dnl AMD64 mpn_addmul_1 and mpn_submul_1 optimised for Intel Haswell.
dnl Contributed to the GNU project by Torbjörn Granlund.
dnl Copyright 2013 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 ... |
;print whether a number is odd or even
section .data
msg1 : db 'Enter number : '
l1 : equ $-msg1
ans1 : db 'Odd', 10
l2 : equ $-ans1
ans2 : db 'Even', 10
l3 : equ $-ans2
section .bss
d1 : resb 1
section .text
global _start:
_start:
mov eax, 4
mov ebx, 1
mov ecx, msg1
mov edx, l1
int 80h
mov eax, 3
mov ebx, 0... |
; A217123: Number of possible ordered pairs (x, y) where x is the number of beads adjacent to at least one black bead and y the number of beads adjacent to at least one white bead in a binary necklace of length n.
; 2,3,4,6,8,10,14,18,22,26,32,38,44,50,58,66,74,82,92,102,112,122,134,146,158,170,184,198,212,226,242,258,... |
; A343694: a(n) is the number of men's preference profiles in the stable marriage problem with n men and n women, such that all men prefer different women as their first choices.
; Submitted by Christian Krause
; 1,2,48,31104,955514880,2149908480000000,505542895416115200000000,16786680128857246009393152000000000,102199... |
; A040007: Continued fraction for sqrt(11).
; Submitted by Christian Krause
; 3,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3,6,3
trn $0,1
mod $0,2
mul $0,3
add $0,3
|
#pragma once
#include <steem/protocol/authority.hpp>
#include <steem/protocol/steem_operations.hpp>
#include <steem/chain/steem_object_types.hpp>
#include <steem/chain/witness_objects.hpp>
#include <boost/multi_index/composite_key.hpp>
namespace steem { namespace chain {
using protocol::beneficiary_route_type;... |
; FV-1 Testing
;
; Program: RMP servo POT
;
; POT0: Target value
;
; Check RMP servo
;
skp RUN,main
wldr RMP0,0,4096 ; setup RMP0
main: rdax POT0,0.5 ; load pot, scaled to ramp amp
wrax REG0,1.0 ; save a copy
sof 1.0,-0.25 ; offset
sof -2.0,0.0 ; scale up
sof -2.0,0.0 ; scale up
wrax DACL,0.0 ; output t... |
%define CHAR_BIT 16
%define SCHAR_MAX 0x7FFF
%define SCHAR_MIN 0x8000
%define UCHAR_MAX 0xFFFF
%define CHAR_MAX 0x7FFF
%define CHAR_MIN 0x8000
%define INT_MAX 0x7FFF
%define INT_MIN 0x8000
%define UINT_MAX 0xFFFF
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.