text stringlengths 1 1.05M |
|---|
;
; saveymm.asm
;
; Copyright (c) Microsoft Corporation. Licensed under the MIT license.
;
include ksamd64.inc
TITLE saveymm.asm
;VOID SYMCRYPT_CALL SymCryptEnvUmSaveYmmRegistersAsm( __m256i * buffer );
;VOID SYMCRYPT_CALL SymCryptEnvUmRestoreYmmRegistersAsm( __m256i * buffer );
LEAF_... |
; A305263: a(n) = 680*2^n - 622.
; 58,738,2098,4818,10258,21138,42898,86418,173458,347538,695698,1392018,2784658,5569938,11140498,22281618,44563858,89128338,178257298,356515218,713031058,1426062738,2852126098,5704252818,11408506258,22817013138,45634026898,91268054418,182536109458,365072219538,730144439698,1460288880018... |
; ------------------------------------------------------------------
; Machine code monitor -- by Yutaka Saito and Mike Saunders
;
; Accepts code in hex format, ORGed to 36864 (4K after where
; this program is loaded)
; ------------------------------------------------------------------
BITS 16
%INCLUDE "ar... |
; A047234: Numbers that are congruent to {0, 1, 4} mod 6.
; 0,1,4,6,7,10,12,13,16,18,19,22,24,25,28,30,31,34,36,37,40,42,43,46,48,49,52,54,55,58,60,61,64,66,67,70,72,73,76,78,79,82,84,85,88,90,91,94,96,97,100,102,103,106,108,109,112,114,115,118,120,121,124,126,127,130,132,133,136,138,139,142,144,145,148,150,151,154,156... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin developers
// Copyright (c) 2009-2015 The Dash developers
// Copyright (c) 2015-2019 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-li... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkLabelPlacer.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software i... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; WriteMm7.Asm
;
; Abstract:
;
; AsmWriteMm7 function
;
; Notes:
;
;-------------------... |
dnl AMD64 mpn_mod_1s_4p
dnl Contributed to the GNU project by Torbjorn Granlund.
dnl Copyright 2009 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public... |
//=================================================================================================
/*!
// \file src/mathtest/dmatdmatsub/M4x4aM4x4b.cpp
// \brief Source file for the M4x4aM4x4b dense matrix/dense matrix subtraction math test
//
// Copyright (C) 2013 Klaus Iglberger - All Rights Reserved
//
// This ... |
SECTION code_driver
SECTION code_driver_terminal_output
PUBLIC console_01_output_fzx_iterm_msg_bs
PUBLIC console_01_output_fzx_iterm_msg_bs_join
PUBLIC console_01_output_fzx_iterm_msg_bs_join_pwd
EXTERN OTERM_MSG_FZX_PUTC
EXTERN asm_fzx_buffer_partition, l_jpix
EXTERN l_offset_ix_de, console_01_output_fzx_proc_line... |
// Copyright (C) 2004, 2006 International Business Machines and others.
// All Rights Reserved.
// This code is published under the Common Public License.
//
// $Id: IpDefaultIterateInitializer.cpp 759 2006-07-07 03:07:08Z andreasw $
//
// Authors: Carl Laird, Andreas Waechter IBM 2004-09-23
#include ... |
; A302323: Number of 2Xn 0..1 arrays with every element equal to 0, 1, 2 or 4 horizontally, diagonally or antidiagonally adjacent elements, with upper left element zero.
; Submitted by Jon Maiga
; 2,8,20,52,136,360,960,2576,6944,18784,50944,138432,376704,1026176,2797568,7631104,20824576,56845824,155209728,423848960,115... |
#define FIFO_ASM
#include "fifo.inc"
#include "interrupt.inc"
#include "number.inc"
#include "util.inc"
#include "uart.inc"
global fifo_buffer
global fifo_start
global fifo_free
global fifo_size
global fifo_data
global search_byte
global checksum
udata
fifo_buffer res ... |
/*
First we compute all the primes we may need with the sieve of
Eratosthenes (once for all testcases). Then we simply perform
a DFS on the tree (augmented with a dummy root 0 whose only
child is Mr. Alfred) keeping track of the depth and counting
the number of employees satisfying the condition.
Time complexity: O(N... |
;
; ANSI Video handling for the PC6001
;
; set it up with:
; .text_cols = max columns
; .text_rows = max rows
;
; Display a char in location (ansi_ROW),(ansi_COLUMN)
; A=char to display
;
;
; $Id: f_ansi_char.asm,v 1.3 2016-06-12 16:06:43 dom Exp $
;
SECTION code_clib
PUBLIC ansi_CHAR
PUBLIC text_cols
PU... |
title "Capture and Restore Context"
;++
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; You may only use this code if you agree to the terms of the Windows Research Kernel Source Code License agreement (see License.txt).
; If you do not agree to the terms, do not use the code.
;
;
... |
#include "mathoperation.h"
MathOperation::MathOperation()
{
}
MathOperation::MathOperation(int elements)
{
max = elements;
}
MathOperation::MathOperation(int elements, cv::Mat& mat)
{
max = elements;
values.assign(mat.datastart, mat.dataend);
}
double MathOperation::CalculateMean()
{
double sum = ... |
; A255108: Number of length n+1 0..2 arrays with at most one downstep in every n consecutive neighbor pairs.
; 9,26,66,147,294,540,927,1507,2343,3510,5096,7203,9948,13464,17901,23427,30229,38514,48510,60467,74658,91380,110955,133731,160083,190414,225156,264771,309752,360624,417945,482307,554337,634698,724090,823251,932... |
; A064650: a(n) = floor(a(n-1)/2) + a(n-2) with a(0)=1, a(1)=2.
; 1,2,2,3,3,4,5,6,8,10,13,16,21,26,34,43,55,70,90,115,147,188,241,308,395,505,647,828,1061,1358,1740,2228,2854,3655,4681,5995,7678,9834,12595,16131,20660,26461,33890,43406,55593,71202,91194,116799,149593,191595,245390,314290,402535,515557,660313,845713,108... |
; A117573: Expansion of (1+2x^2)/((1-x)(1-x^2)(1-x^3)).
; 1,1,4,5,8,11,15,18,24,28,34,40,47,53,62,69,78,87,97,106,118,128,140,152,165,177,192,205,220,235,251,266,284,300,318,336,355,373,394,413,434,455,477,498,522,544,568,592,617,641,668
mov $1,9
add $1,$0
add $1,$0
sub $0,1
div $1,6
lpb $0
add $1,$0
trn $0,2
ad... |
// Copyright (c) 2015-2016 The Youngseokcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "reverselock.h"
#include "test/test_youngseokcoin.h"
#include <boost/test/unit_test.hpp>
BOOST_FIXTURE_TEST_... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.40219.01
TITLE D:\Projects\TaintAnalysis\AntiTaint\Epilog\src\func-alloca.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
_DATA SEGMENT
$SG3709 DB '%d', 00H
_DATA ENDS
PUBLIC _func
EXTRN __i... |
.data
.text
ld $0 10
ld $1 20
push $0
move $1 $0
pop $1
ld $v0 2
syscall
|
; A047560: Numbers that are congruent to {0, 2, 3, 6, 7} mod 8.
; 0,2,3,6,7,8,10,11,14,15,16,18,19,22,23,24,26,27,30,31,32,34,35,38,39,40,42,43,46,47,48,50,51,54,55,56,58,59,62,63,64,66,67,70,71,72,74,75,78,79,80,82,83,86,87,88,90,91,94,95,96,98,99,102,103,104,106,107,110,111,112,114,115,118,119,120,122,123,126,127,128... |
db "GRIPPER@" ; species name
db "This feared"
next "#MON is said to"
next "travel to unknown"
page "worlds. Some think"
next "that it takes lost"
next "spirits with it.@"
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x446e, %rsi
lea addresses_normal_ht+0x1b8fe, %rdi
clflush (%rsi)
nop
nop
nop
nop
xor %rdx, %rdx
mov $117, %rcx
rep movsw
nop
nop
nop
nop
xor %r10, %r10
lea addresses_WT_h... |
//swap: funcdecl , ,
swap:// Words: 0
addi $sp, 6
// Words: 1
move $sp, $rr
// Words: 2
addi $0, -1
// Words: 3
swn $ra, $sp, $rr
// Words: 4
addi $rr, -1
// Words: 5
swn $s0, $sp, $rr
// Words: 6
addi $rr, -1
// Words: 7
swn $s1, $sp, $rr
//: formal a, ,
// Words: 8
addi $0, -4
// Words: 9
swn $... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xc938, %r10
nop
nop
xor $54036, %r12
vmovups (%r10), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $1, %xmm3, %r9
add $13157, %rax
lea addresses_D_ht+0xcb58, %rsi
lea addresses_... |
// Copyright 2022 The Chromium OS 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 "mojo_service_manager/daemon/mojo_error_util.h"
#include <string>
#include <utility>
namespace chromeos {
namespace mojo_service_manager {
... |
STACK SEGMENT USE16 STACK
DB 200 DUP(0)
STACK ENDS
DATA SEGMENT USE16
BUF1 DB 0,1,2,3,4,5,6,7,8,9
BUF2 DB 10 DUP(0)
BUF3 DB 10 DUP(0)
BUF4 DB 10 DUP(0)
DATA ENDS
CODE SEGMENT USE16
ASSUME CS:CODE,DS:DATA,SS:STACK
START: MOV AX,DATA
MOV DS,AX
MOV SI,OFFSET BUF1
MOV DI,OFFSET BUF1
MOV BX,OFFSET BUF1
... |
; This is a comment
MOV NF #1
MOV AX #3
MOV BX #'H'
INT
MOV BX #'E'
INT
MOV BX #'L'
INT
MOV BX #'L'
INT
MOV BX #'O'
INT
MOV BX #'_'
INT
MOV BX #'A'
INT
MOV BX #'S'
INT
MOV BX #'S'
INT
MOV BX #'E'
INT
MOV BX #'M'
INT
MOV BX #'B'
INT
MOV BX #'L'
INT
MOV BX #'E'
INT
MOV BX #'R'
INT
|
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/apigateway/model/DeleteUsagePlanKeyRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::APIGateway::Model;
using namespace Aws::Utils::Jso... |
// Time: O(n)
// Space: O(n)
class Solution {
public:
int distributeCandies(vector<int>& candies) {
unordered_set<int> lookup;
for (const auto& candy: candies) {
lookup.emplace(candy);
}
return min(lookup.size(), candies.size() / 2);
}
};
|
; A017209: a(n) = 9*n+4.
; 4,13,22,31,40,49,58,67,76,85,94,103,112,121,130,139,148,157,166,175,184,193,202,211,220,229,238,247,256,265,274,283,292,301,310,319,328,337,346,355,364,373,382,391,400,409,418,427,436,445,454,463,472,481,490,499,508,517,526,535,544,553,562,571,580,589,598,607,616,625,634,643,652,661,670,679,6... |
db 0 ; species ID placeholder
db 75, 91, 70, 97, 40, 80
; hp atk def spd sat sdf
db NORMAL, NORMAL ; type
db 90 ; catch rate
db 116 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 15 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/raticate... |
<%
from pwnlib.shellcraft.mips.linux import syscall
%>
<%page args="path"/>
<%docstring>
Invokes the syscall chroot. See 'man 2 chroot' for more information.
Arguments:
path(char): path
</%docstring>
${syscall('SYS_chroot', path)}
|
; ---------------------------------------------------------------------------
; Animation script - springs
; ---------------------------------------------------------------------------
Ani_Spring: dc.w byte_DD02-Ani_Spring
dc.w byte_DD0E-Ani_Spring
byte_DD02: dc.b 0, 1, 0, 0, 2, 2, 2, 2, 2, 2, 0, afRoutine
byte_DD0E:... |
_stressfs: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "fs.h"
#include "fcntl.h"
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 e4 f0 and $0xfffffff0,%esp
6: 81 ec 30 02 00 00... |
; A115836: Self-describing sequence. The n-th integer of the sequence indicates how many integers of the sequence are strictly < 2n.
; Submitted by Jamie Morken(s2)
; 1,2,4,5,6,8,10,11,12,13,14,16,18,20,22,23,24,25,26,27,28,29,30,32,34,36,38,40,42,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,66,68,70,72,74,... |
%include "reg_sizes.asm"
%include "lz0a_const.asm"
%include "data_struct2.asm"
%ifidn __OUTPUT_FORMAT__, win64
%define arg1 rcx
%define arg2 rdx
%define arg3 r8
%define hash rsi
%define next_in rdi
%else
%define arg1 rdi
%define arg2 rsi
%define arg3 rdx
%define hash r8
%define next_in rcx
%endif
%define stream arg1
... |
; A110556: a(n) = binomial(2*n-1,n)*(-1)^n for n>0; a(0) = 1.
; 1,-1,3,-10,35,-126,462,-1716,6435,-24310,92378,-352716,1352078,-5200300,20058300,-77558760,300540195,-1166803110,4537567650,-17672631900,68923264410,-269128937220,1052049481860,-4116715363800,16123801841550,-63205303218876,247959266474052,-973469712824056,... |
;
; Copyright (c) 2014 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... |
;;;
;;; This is Suggested Project 7.9.2.7
;;; This is to find the sum of squares from 1 to N
;;; Pg. 138 for the problem
;;; Pg. 24 for Registers; Pg. 48 for Data Types
;;; Pg. 102 Multiple registers
SECTION .data
SUCCESS: equ 0 ; Default success value
SYS_EXIT: equ 60 ; Default system exit value
... |
; A074509: a(n) = 1^n + 3^n + 7^n.
; 3,11,59,371,2483,17051,118379,825731,5771363,40373291,282534299,1977503891,13841818643,96890604731,678227855819,4747575858851,33232973616323,232630643127371,1628413985330939,11398896347634611
mov $1,3
pow $1,$0
mov $2,7
pow $2,$0
add $1,$2
add $1,1
mov $0,$1
|
; A053838: a(n) = (sum of digits of n written in base 3) modulo 3.
; 0,1,2,1,2,0,2,0,1,1,2,0,2,0,1,0,1,2,2,0,1,0,1,2,1,2,0,1,2,0,2,0,1,0,1,2,2,0,1,0,1,2,1,2,0,0,1,2,1,2,0,2,0,1,2,0,1,0,1,2,1,2,0,0,1,2,1,2,0,2,0,1,1,2,0,2,0,1,0,1,2,1,2,0,2,0,1,0,1,2,2,0,1,0,1,2,1,2,0,0,1,2,1,2,0,2,0,1,2,0,1,0,1,2,1,2,0,0,1,2,1,2,0,2,0,1... |
/**
* Copyright(c) [2017] <Frzifus> All Rights Reserved.
* Distributed under MIT license.
* See file LICENSE for detail at LICENSE file.
*/
#include <iostream>
#include <unordered_map>
#include <SFML/Graphics.hpp>
#include "./resources/global.h"
#include "./screen/screen_digits.h"
#include "./screen/screen_inter... |
; int isalpha(int c)
SECTION code_clib
SECTION code_ctype
PUBLIC isalpha
EXTERN asm_isalpha, error_zc
IF __CLASSIC && __CPU_GBZ80__
PUBLIC _isalpha
_isalpha:
ld hl,sp+2
ld a,(hl+)
ld h,(hl)
ld l,a
ENDIF
isalpha:
inc h
dec h
jp nz, error_zc
ld a,l
call asm_isalpha
ld l,h
IF __CPU... |
; A320897: a(n) = Sum_{k=1..n} k^2 * tau(k)^2, where tau is A000005.
; 1,17,53,197,297,873,1069,2093,2822,4422,4906,10090,10766,13902,17502,23902,25058,36722,38166,52566,59622,67366,69482,106346,111971,122787,134451,162675,166039,223639,227483,264347,281771,300267,319867,424843,430319,453423
mov $4,$0
add $4,1
mov $6,... |
; Options:
;
; CRT_ORG_CODE = start address
; CRT_ORG_BSS = address for bss variables
; CRT_MODEL = 0 (RAM), 1 = (ROM, code copied), 2 = (ROM, code compressed)
;
; djm 18/5/99
;
MODULE zxn_crt0
;--------
; Include zcc_opt.def to find out some info
;--------
... |
;/*
; * FreeRTOS Kernel V10.4.1
; * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
; *
; * 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 restri... |
###############################################################################
# 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... |
; ==================================================================
; This bootloader was borrowed from the MikeOS project. MikeOS had borrowed this bootloader from E Dehling.
; It scans the FAT12 floppy for KERNEL.BIN (the PongOS kernel), loads it and executes it.
; ================================================... |
; A267812: Decimal representation of the n-th iteration of the "Rule 217" elementary cellular automaton starting with a single ON (black) cell.
; 1,1,27,119,495,2015,8127,32639,130815,523775,2096127,8386559,33550335,134209535,536854527,2147450879,8589869055,34359607295,137438691327,549755289599,2199022206975,8796090925... |
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xa2b1, %rsi
lea addresses_WT_ht+0xa9a4, %rdi
nop
nop
nop
sub %r8, %r8
mov $38, %rcx
rep movsb
cmp %rbp, %rbp
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
ret
.global s_faulty_load
s_faulty_load:
pu... |
#include <stdlib.h>
#include <vector>
int* pint(int x) {
int* i = (int*)malloc(sizeof(int));
*i = x;
return i;
}
int main() {
for (int i = 0; i < 1000000; i++) {
std::vector<int*> v;
v.push_back(pint(1));
v.push_back(pint(2));
v.push_back(pint(3));
v.push_back(pint(4));
v.push_back(pi... |
; GetSGBLayout arguments (see engine/gfx/cgb_layouts.asm and engine/gfx/sgb_layouts.asm)
const_def
const SCGB_BATTLE_GRAYSCALE
const SCGB_BATTLE_COLORS
const SCGB_POKEGEAR_PALS
const SCGB_STATS_SCREEN_HP_PALS
const SCGB_POKEDEX
const SCGB_SLOT_MACHINE
const SCGB_BETA_TITLE_SCREEN
const SCGB_GS_INTRO
const SCG... |
section sprite
xdef mes_cd_play
mes_cd_play
dc.w $0220,4,0,0,0,0
dc.l 0,0,0,0
dc.l sp_ex-*
sp_ex dc.l sp_btn-*
dc.l sp_btn_cur-*
dc.l 0,0,0
sp_btn
incbin 'win1_util_sprite_cd_play_spr'
sp_btn_cur
incbin 'win1_util_sprite_cd_play2_spr'
end
|
; A228220: Number of second differences of arrays of length 5 of numbers in 0..n.
; Submitted by Jamie Morken(s2)
; 31,199,625,1429,2731,4651,7309,10825,15319,20911,27721,35869,45475,56659,69541,84241,100879,119575,140449,163621,189211,217339,248125,281689,318151,357631,400249,446125,495379,548131,604501,664609,728575,... |
; A101853: a(n) = n*(20+15*n+n^2)/6.
; 6,18,37,64,100,146,203,272,354,450,561,688,832,994,1175,1376,1598,1842,2109,2400,2716,3058,3427,3824,4250,4706,5193,5712,6264,6850,7471,8128,8822,9554,10325,11136,11988,12882,13819,14800,15826,16898,18017,19184,20400,21666,22983,24352,25774,27250,28781,30368,32012,33714,35475,3729... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xd78, %rsi
lea addresses_WT_ht+0x4fc0, %rdi
nop
sub %r15, %r15
mov $6, %rcx
rep movsw
nop
nop
nop
cmp $17990, %rsi
lea addresses_normal_ht+0x9dc0, %r12
nop
nop
cmp %r11, %r11
... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkIOPostgreSQL_AutoInit.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This sof... |
; A017068: a(n) = (8*n)^4.
; 0,4096,65536,331776,1048576,2560000,5308416,9834496,16777216,26873856,40960000,59969536,84934656,116985856,157351936,207360000,268435456,342102016,429981696,533794816,655360000,796594176,959512576,1146228736,1358954496,1600000000,1871773696,2176782336,2517630976,2897022976,3317760000,378274... |
;/*!
; @file
;
; @ingroup fapi
;
; @brief DosSetFHandState 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... |
; A299090: Number of "digits" in the binary representation of the multiset of prime factors of n.
; 0,1,1,2,1,1,1,2,2,1,1,2,1,1,1,3,1,2,1,2,1,1,1,2,2,1,2,2,1,1,1,3,1,1,1,2,1,1,1,2,1,1,1,2,2,1,1,3,2,2,1,2,1,2,1,2,1,1,1,2,1,1,2,3,1,1,1,2,1,1,1,2,1,1,2,2,1,1,1,3,3,1,1,2,1,1,1,2,1,2,1,2,1,1,1,3,1,2,2,2
lpb $0
seq $0,188... |
#include "Common.Application.h"
#include "Common.Data.Properties.h"
#include "json.hpp"
#include <SDL.h>
#include "Visuals.Layouts.h"
namespace visuals::Sublayout
{
struct InternalSublayout
{
std::string name;
};
static std::vector<InternalSublayout> internalSublayouts;
static void DrawInternalSublayout(const ... |
;
; Generic game device library - Galaksija port
; Stefano Bodrato - 2017
;
; $Id: joystick.asm $
;
SECTION code_clib
PUBLIC joystick
PUBLIC _joystick
EXTERN getk
.joystick
._joystick
;__FASTALL__ : joystick no. in HL
ld a,l
dec a
jp z,arrows
ld e,0
ld hl,$200E
ld a,(hl)
cpl
rrca
rl e ... |
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "BlueprintFieldNodeSpawner.h"
#include "UObject/Package.h"
#define LOCTEXT_NAMESPACE "BlueprintFieldNodeSpawner"
//------------------------------------------------------------------------------
UBlueprintFieldNodeSpawner* UBlueprintFieldNodeSpawne... |
; MoveEffectsPointers indexes (see data/moves/effects_pointers.asm)
const_def
const EFFECT_NORMAL_HIT
const EFFECT_SLEEP
const EFFECT_POISON_HIT
const EFFECT_LEECH_HIT
const EFFECT_BURN_HIT
const EFFECT_FREEZE_HIT
const EFFECT_PARALYZE_HIT
const EFFECT_SELFDESTRUCT
const EFFECT_DREAM_EATER
const EFFECT_MIRRO... |
incsrc legacy.asm
; Translation patch fixes made by RobertOfNormandy
ORG $819847
; load menu, different values on either side of screen
; high byte = y position, low byte = x position
; this is the position on the right side of the screen
ldx #$0217
bra storeMenuPos
; this is the position... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r14
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1b068, %r10
nop
nop
nop
nop
nop
add $82, %r13
mov (%r10), %rbp
nop
nop
nop
nop
cmp %rdx, %rdx
lea addresses_WC_ht+0x18f32, %r15
nop
sub $5550, %r14
movb (... |
global userspace_jump
extern hl_esp
extern hl_eip
userspace_jump:
mov ax, 0x23
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov eax, dword [hl_esp]
push 0x23
push eax
pushf
; Enable interrupts
sti
push 0x1B
push dword [hl_eip]
iret |
_loader_kbd_start:
;
; loader_kbd.asm - This file implements the keyboard driver
;
KBD_BUFFER_CAPACITY equ 64
; The following defines the status word
KBD_CTRL_ON equ 01h
KBD_SHIFT_ON equ 02h
KBD_ALT_ON equ 04h
KBD_CAPS_LOCK equ 08h
KBD_NUM_LOCK equ 10h
; This flag will be cleared i... |
;
; Z88 Graphics Functions
; Written around the Interlogic Standard Library
;
; Wide resolution (int type parameters) and CALLEE conversion by Stefano Bodrato, 2018
;
;
; $Id: w_drawr_callee.asm $
;
; ----- void __CALLEE__ drawr_callee(int x, int y)
SECTION code_graphics
PUBLIC drawr_callee
PUBLIC... |
;
; Copyright (c) 2016, Alliance for Open Media. All rights reserved
;
; This source code is subject to the terms of the BSD 2 Clause License and
; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
; was not distributed with this source code in the LICENSE file, you can
; obtain it at ww... |
###############################################################################
# File : lw.asm
# Project : MIPS32 MUX
# Author: : Grant Ayers (ayers@cs.stanford.edu)
#
# Standards/Formatting:
# MIPS gas, soft tab, 80 column
#
# Description:
# Test the functionality of the 'lw' instruction.
#
####... |
; A208176: a(n) = F(n+1)^2, if n>=0 is even (F=A000045) and a(n) = (L(2n+2)+8)/5, if n is odd (L=A000204).
; 1,3,4,11,25,66,169,443,1156,3027,7921,20738,54289,142131,372100,974171,2550409,6677058,17480761,45765227,119814916,313679523,821223649,2149991426,5628750625,14736260451,38580030724,101003831723,264431464441,6922... |
; Troy's HBC-56 - TMS9918 Console mode test
;
; Copyright (c) 2021 Troy Schrapel
;
; This code is licensed under the MIT license
;
; https://github.com/visrealm/hbc-56
;
!src "hbc56kernel.inc"
hbc56Meta:
+setHbcMetaTitle "CONSOLE TEST"
rts
hbc56Main:
sei
jsr kbInit
jsr tmsMod... |
IF DEF(@)
PRINTT "defined\n"
ELSE
PRINTT "not defined\n"
ENDC
|
; A155110: a(n) = 8*Fibonacci(2n+1).
; 8,16,40,104,272,712,1864,4880,12776,33448,87568,229256,600200,1571344,4113832,10770152,28196624,73819720,193262536,505967888,1324641128,3467955496,9079225360,23769720584,62229936392,162920088592,426530329384,1116670899560,2923482369296,7653776208328,20037846255688,52459762558736,1... |
; A023475: n-33.
; -33,-32,-31,-30,-29,-28,-27,-26,-25,-24,-23,-22,-21,-20,-19,-18,-17,-16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27
sub $0,33
|
;;
;; WCRT - Win32API CRT
;;
;; math sinf
;;
;; Copyright (c) 2003-2004 by Joergen Ibsen / Jibz
;; All Rights Reserved
;;
;; http://www.ibsensoftware.com/
;;
;; This software is provided 'as-is', without any express
;; or implied warranty. In no event will the authors be
;; held liable for any damages arising from t... |
; UI for the CHIP4504 Operating System
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; os_draw_block -- Render block of specified colour
; IN: BL/DL/DH/SI/DI = colour/start X pos/start Y pos/width/finish Y pos
[SECTION .text]
%define ITEMS_PER_PAGE 8
%define STARTING_PAGE 8
os_draw_block:
p... |
; A244953: a(n) = Sum_{i=0..n} (-i mod 4).
; 0,3,5,6,6,9,11,12,12,15,17,18,18,21,23,24,24,27,29,30,30,33,35,36,36,39,41,42,42,45,47,48,48,51,53,54,54,57,59,60,60,63,65,66,66,69,71,72,72,75,77,78,78,81,83,84,84,87,89,90,90,93,95,96,96,99,101,102,102,105,107,108,108,111,113,114,114,117,119,120,120,123,125,126,126,129,131... |
#include <inttypes.h>
#include <memory>
#include <new>
#include <string>
#include <utility>
#include <vector>
#include "WAVM/IR/IR.h"
#include "WAVM/IR/Module.h"
#include "WAVM/IR/Types.h"
#include "WAVM/Inline/BasicTypes.h"
#include "WAVM/Inline/Serialization.h"
#include "WAVM/Logging/Logging.h"
using namespace WAVM... |
; vvvvv
; ^^^^^
;# log10(2^n) = y
;# 10^y = 2^n
;# log10(2^n)=n*log10(2)
;# 10^(n*log10(2)) = 2^n
;# m*2^n = m*10^(n*log10(2)) = m*10^(int+mod) = m * 10^int * 10^mod = m * 10^mod * Eint = 1 .. 1.9 10^mod * Eint = 1.0 .. 19.99 Eint
ORG 0x8000
; === b e g i n ===
ld (Stop+1), SP ; 4:20 init stori... |
; A212158: ((prime(n)- 1)/2)!, n >= 2.
; Submitted by Jamie Morken(s3)
; 1,2,6,120,720,40320,362880,39916800,87178291200,1307674368000,6402373705728000,2432902008176640000,51090942171709440000,25852016738884976640000,403291461126605635584000000,8841761993739701954543616000000
seq $0,5097 ; (Odd primes - 1)/2.
seq $0,1... |
org 00100000h
jmp start
_main proc
push ebp
mov ebp,esp
sub esp,65
_main_t0 equ dword ptr [ebp-8]
_main_t1 equ dword ptr [ebp-16]
_main_t2 equ dword ptr [ebp-20]
_main_t3 equ dword ptr [ebp-24]
_main_t4 equ dword ptr [ebp-28]
_main_t5 equ dword ptr [ebp-32]
_main_t6 e... |
lda {c2},x
sta {c1}
lda {c2}+1,x
sta {c1}+1 |
subttl emfmul.asm - Multiplication
page
;*******************************************************************************
; Copyright (c) Microsoft Corporation 1991
; All Rights Reserved
;
;emfmul.asm - long double multiply
; by Tim Paterson
;
;Purpose:
; Long double multiplication.
;Inputs:
; ebx:esi =... |
#include "implicitscaleoffset.h"
namespace anl
{
CImplicitScaleOffset::CImplicitScaleOffset(double scale, double offset):m_source(0), m_scale(scale), m_offset(offset){}
CImplicitScaleOffset::~CImplicitScaleOffset(){}
void CImplicitScaleOffset::setSource(CImplicitModuleBase *b){m_source.set(b);}
void C... |
TITLE Test Floating-point output (asmMain.asm)
; Test the printf and scanf functions from the C library.
INCLUDE Irvine32.inc
TAB = 9
.code
asmMain PROC C
;---------- test the printf function --------------
; Do not pass REAL4 variables to printf using INVOKE!
.data
formatTwo BYTE "%.2f",TAB,"%.3f",0dh,0ah,... |
; ******************************************************************************************************************
; Simple Test program , keyboard and display
; ******************************************************************************************************************
cpu sc/mp
org 0x0000
nop
... |
/* Created by efreyu on 17.05.2020. */
#include <gtest/gtest.h>
#include "rapidjson/document.h"
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
TEST(TestJsonDeps, IncludeJsonTest) {
const char json[] = " { \"test\" : \"row\", \"t\" : true , \"f\" : false ... |
; A234319: Smallest sum of n-th powers of k+1 consecutive positive integers that equals the sum of n-th powers of the next k consecutive integers, or -n if none.
; 0,3,25,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-23,-24,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,... |
; char __CALLEE__ *strcmp_callee(char *s1, char *s2)
; compare strings s1 and s2
;
; Apr 25 1999 djm - Previously would return non
; zero if the two strings matched (it ignored
; the \0 at the end!)
;
; Jan 12 2002 Graham R. Cobb - Rewritten,
; previously strcmp("A","AB") would return 0.
;
; Mar 24 2002 Graham ... |
db "FAIRY@" ; species name
dw 200, 170 ; height, weight
db "Though rarely"
next "seen, it becomes"
next "easier to spot,"
page "for some reason,"
next "on the night of a "
next "full moon.@"
|
.data 0x0000 # 数据定义的首地址
buf: .word 0x00000055, 0x000000AA # 定义数据
.text 0x0000 # 代码段定义开始
start:ori $at,$zero,1 #寄存器初始化
ori $v0,$zero,2
ori $v1,$zero,3
ori $a0,$zero,4
ori $a1,$zero,5
ori $a2,$zero,6
ori $a3,$zero,7
ori $t0,$zero,8
ori $t1,$zero,9
o... |
/*
* Copyright (C) 2013 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... |
; A104531: Expansion of (1+sqrt(1-4*x))/(5*sqrt(1-4*x)-3).
; Submitted by Christian Krause
; 1,4,24,148,920,5736,35808,223668,1397496,8732920,54575888,341082504,2131706864,13322959888,83267756400,520420803060,3252620324280,20328841669080,127055130786960,794094089779800,4963086293860560,31019282772508080,193870492861908... |
; A090300: a(n) = 14*a(n-1) + a(n-2), starting with a(0) = 2 and a(1) = 14.
; Submitted by Jon Maiga
; 2,14,198,2786,39202,551614,7761798,109216786,1536796802,21624372014,304278004998,4281516441986,60245508192802,847718631141214,11928306344169798,167844007449518386,2361744410637427202,33232265756373499214,4676134649998... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.