text stringlengths 1 1.05M |
|---|
;;
;; Copyright (c) 2021 Antti Tiihala
;;
;; 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 in all copies.
;;
;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... |
.model small
.data
.code
main proc
mov ah, 01010001b
test ah, 01010001b ; The test operation is very similar to the and operation. The main difference is that it doesn't store
; the result into the registers, rather the zero flag in the FR is toggled to 0 when both... |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2021-2022, Sam Atkins <atkinssj@serenityos.org>
* Copyright (c) 2021, Tobias Christiansen <tobyase@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/ByteBuffer.h>
#include <LibGfx/Palette.h>
#include <LibWe... |
; sp1_DrawUpdateStructIfInv(struct sp1_update *u)
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _sp1_DrawUpdateStructIfInv
EXTERN asm_sp1_DrawUpdateStructIfInv
_sp1_DrawUpdateStructIfInv:
pop af
pop hl
push hl
push af
jp asm_sp1_DrawUpdateStructIfInv
|
default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
section .text code align=64
EXTERN OPENSSL_ia32cap_P
global poly1305_init
global poly1305_blocks
global poly1305_emit
ALIGN 32
poly1305_init:
mov QWORD[8+rsp],rdi ;WIN64 prologue
mov QWORD[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_poly1305_init:
mov rdi,rcx... |
; Options:
; startup=1 --> RAM mode
; startup=2 --> ROM mode (position code at location 0 and provide minimal interrupt services)
;
; CRT_ORG_CODE = start address
; CRT_ORG_BSS = address for bss variables
; CRT_MODEL = 0 (RAM), 1 = (ROM, code copied), 2 = (ROM, cod... |
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php .
#include "key.h"
#include "chainparams.h"
#include "key_io.h"
#include "script/script.h"
#include "uint256.h"
#include "ut... |
%ifdef CONFIG
{
"RegData": {
"RBX": "0x80",
"RCX": "0x00",
"RDX": "0xC0",
"RSI": "0x40",
"R8": "0x1",
"R9": "0x0",
"R10": "0x0",
"R11": "0x1"
}
}
%endif
mov rbx, 0x01
mov rcx, 0x01
mov rdx, 0x80
mov rsi, 0x80
mov r15, 1
stc
rcr bl, 1
mov r8, 0
cmovo r8, r15 ; We only care about O... |
org 0100h
jmp LABEL_START ; Start
; 下面是 FAT12 磁盘的头, 之所以包含它是因为下面用到了磁盘的一些信息
%include "fat12hdr.inc"
%include "load.inc"
%include "pm.inc"
; GDT ------------------------------------------------------------------------------------------------------------------------------------------------------------
; ... |
; A165188: Interleaving of A014125 and zero followed by A014125.
; 1,0,3,1,6,3,11,6,18,11,27,18,39,27,54,39,72,54,94,72,120,94,150,120,185,150,225,185,270,225,321,270,378,321,441,378,511,441,588,511,672,588,764,672,864,764,972,864,1089,972,1215,1089,1350,1215,1495,1350
add $0,1
lpb $0
mov $2,$0
trn $0,2
seq $2,1... |
#include <iostream>
#include <fstream>
#include <string>
#include <cmath>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
class poly{
public:
int deg;
double* coef;
poly();//default constructor
poly(int,double*);//constructor 1
poly(int);//constructor 2
~poly () { //destruct... |
#include <bits/stdc++.h>
using namespace std;
struct Node
{
int data;
struct Node *left, *right;
};
Node *newNode(int data)
{
Node *new_node = new Node;
new_node->data = data;
new_node->left = new_node->right = NULL;
return new_node;
}
/* Given a binary tree, print its nod... |
; WMAN data and configuration v1.00 2003 Marcel Kilgus
; 24-06-2003 1.01 d0 test added at end (wl)
; 28.04.2013 1.02 added config item for alpha blending when moving
xdef wm_initdata
xref wm_initsp
xref gu_achpp
include 'dev8_keys_wman_data'
include 'dev8_keys_qdos_sms'
include 'dev8_keys_con'
include 'd... |
; A305062: a(n) = 96*2^n + 80.
; 176,272,464,848,1616,3152,6224,12368,24656,49232,98384,196688,393296,786512,1572944,3145808,6291536,12582992,25165904,50331728,100663376,201326672,402653264,805306448,1610612816,3221225552,6442451024,12884901968,25769803856,51539607632,103079215184,206158430288,412316860496,824633720912... |
#include "TransformRF32.h"
#include <stdio.h>
#include "Error.h"
#include "Test.h"
#define SNR_THRESHOLD 120
void TransformRF32::test_rfft_f32()
{
float32_t *inp = input.ptr();
float32_t *tmp = inputchanged.ptr();
float32_t *outp = outputfft.ptr();
memcpy(tmp,inp,sizeof(float... |
; A010785: Repdigit numbers, or numbers with repeated digits.
; 0,1,2,3,4,5,6,7,8,9,11,22,33,44,55,66,77,88,99,111,222,333,444,555,666,777,888,999,1111,2222,3333,4444,5555,6666,7777,8888,9999,11111,22222,33333,44444,55555,66666,77777,88888,99999,111111,222222,333333,444444,555555,666666,777777,888888,999999,1111111,222... |
;sequence
loop
dw ptn0
dw ptn2
dw ptn1
dw ptn2
dw ptn3
dw ptn4
dw ptn5
dw ptn4
dw ptn6
dw ptn7
dw ptn8
dw ptn7
dw ptn9
dw 0
;pattern data
ptn0
dw instr0*256+#5,#4000,#0,#0,instr13*256+instr0
dw instr0*256+#5,#0,#0,#0,instr0*256+instr0
dw instr0*256+#5,#0,#0,#0,instr0*256+instr0
dw instr0*256+#5,#4000... |
; Copyright 2015-2020 Matt "MateoConLechuga" Waltz
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
;
; 1. Redistributions of source code must retain the above copyright notice,
; this list of conditions and the fol... |
class Solution {
public:
vector<int> getAverages(vector<int>& nums, int k) {
long long sum = 0;
vector<int> results(nums.size(),-1);
if(k > nums.size() || 2*k >= nums.size()) return results;
for(int i=0;i<=min(2*k,(int)nums.size());++i){
sum += nums[i];
}
... |
; A086746: Multiples of 3018.
; 3018,6036,9054,12072,15090,18108,21126,24144,27162,30180,33198,36216,39234,42252,45270,48288,51306,54324,57342,60360,63378,66396,69414,72432,75450,78468,81486,84504,87522,90540,93558,96576,99594,102612
mov $1,$0
mul $1,3018
add $1,3018
|
Sound_9A_Header:
smpsHeaderStartSong 3
smpsHeaderVoice Sound_9A_Voices
smpsHeaderTempoSFX $01
smpsHeaderChanSFX $01
smpsHeaderSFXChannel cPSG3, Sound_9A_PSG3, $FF, $00
; PSG3 Data
Sound_9A_PSG3:
smpsPSGform $E7
smpsPSGvoice sTone_15
smpsModSet $01, $01, $DD, $02
dc.b nE5, $04
... |
color_menubar equ $70
color_menubar_highlight equ $74
color_menubar_active equ $3F
color_menubar_active_hi equ $3E
color_menu_dropdown equ $3F
color_menu_dropdown_hi equ $3E
color_menu_dropdown_active equ $4F
color_menu_dropdown_act_hi equ $4E
color_menu_dropdown_shadow equ $08
color... |
// ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2018
// MIT License
#include <ArduinoJson6_8.h>
#include <catch.hpp>
using namespace Catch::Matchers;
TEST_CASE("JsonObject::invalid()") {
JsonObject obj;
SECTION("SubscriptFails") {
REQUIRE(obj["key"].isNull());
}
SECTION("AddFails") {... |
; A087136: Smallest positive number m such that A073642(m)=n.
; 1,2,4,6,10,12,14,22,26,28,30,46,54,58,60,62,94,110,118,122,124,126,190,222,238,246,250,252,254,382,446,478,494,502,506,508,510,766,894,958,990,1006,1014,1018,1020,1022,1534,1790,1918,1982,2014,2030,2038
cal $0,224195 ; Ordered sequence of numbers of form ... |
; A170796: a(n) = n^10*(n^4 + 1)/2.
; 0,1,8704,2421009,134742016,3056640625,39212315136,339252774049,2199560126464,11440139619681,50005000000000,189887885503921,641990190956544,1968757122095569,5556148040106496,14596751337890625,36029346774777856,84189921276650689,187408469024653824,399506408424570961,81920512000000000... |
; stdio_errno_zc
; 06.2008 aralbrec
PUBLIC stdio_errno_zc
EXTERN stdio_error_zc
EXTERN _errno
.stdio_errno_zc
ld (_errno),hl
jp stdio_error_zc
|
; A195319: Three times second hexagonal numbers: 3*n*(2*n+1).
; 0,9,30,63,108,165,234,315,408,513,630,759,900,1053,1218,1395,1584,1785,1998,2223,2460,2709,2970,3243,3528,3825,4134,4455,4788,5133,5490,5859,6240,6633,7038,7455,7884,8325,8778,9243,9720,10209,10710,11223,11748,12285,12834,13395,13968,14553,15150,15759,1638... |
;****************************************************************************
;*
;* SciTech OS Portability Manager Library
;*
;* ========================================================================
;*
;* The contents of this file are subject to the SciTech MGL Public
;* License Version 1.0 (... |
; A093467: a(1) = 1, a(2) = 2; for n >= 2, a(n+1) = a(n) + Sum_{i = 1..n} (a(i) - a(1)).
; 1,2,3,6,14,35,90,234,611,1598,4182,10947,28658,75026,196419,514230,1346270,3524579,9227466,24157818,63245987,165580142,433494438,1134903171,2971215074,7778742050,20365011075,53316291174,139583862446,365435296163,956722026042,2504... |
dnl Alpha ev6 mpn_mul_1 -- Multiply a limb vector with a limb and store the
dnl result in a second limb vector.
dnl Copyright 2000, 2001, 2005 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 und... |
BattleCommand_MirrorCoat:
; mirrorcoat
ld a, 1
ld [wAttackMissed], a
ld a, BATTLE_VARS_LAST_COUNTER_MOVE_OPP
call GetBattleVar
and a
ret z
ld b, a
callfar GetMoveEffect
ld a, b
cp EFFECT_MIRROR_COAT
ret z
call BattleCommand_ResetTypeMatchup
ld a, [wTypeMatchup]
and a
ret z
call CheckOpponentWentFir... |
; A111262: a(n) = (1/n)*Sum_{k=1..n} F(4*k)*B(2*n-2*k)*binomial(2*n,2*k)), where F are Fibonacci numbers and B are Bernoulli numbers.
; Submitted by Christian Krause
; 3,12,65,403,2652,17889,121859,833260,5706081,39096531,267936188,1836369217,12586419075,86267964108,591287758337,4052742230419,27777897084444,19039250916... |
db 0 ; species ID placeholder
db 50, 65, 45, 95, 85, 65
; hp atk def spd sat sdf
db GRASS, GRASS ; type
db 45 ; catch rate
db 141 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F12_5 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/grovyle/... |
; CRT0 for the Mattel Aquarius
;
; Stefano Bodrato Dec. 2000
;
; If an error occurs eg break we just drop back to BASIC
;
; $Id: aquarius_crt0.asm $
;
IF !DEFINED_CRT_ORG_CODE
;defc CRT_ORG_CODE = 14712
defc CRT_ORG_CODE = 14768
ENDIF
defc TAR... |
Name: zel_main.asm
Type: file
Size: 45760
Last-Modified: '2016-05-13T04:23:03Z'
SHA-1: 6411697286279E61629E534475E84D8921693ED7
Description: null
|
; void _div_(div_t *d, int numer, int denom)
SECTION code_stdlib
PUBLIC _div_
EXTERN asm__div
_div_:
pop af
pop de
pop hl
pop bc
push bc
push hl
push de
push af
jp asm__div
|
; -----------------------------------------------------------------------------
; VIA init functions.
; Took code from Rich Cini's SBC OS and made it generic using macros and
; compile time dependency injection. Since most systems have two VIA's, I
; create two init routines.
; Martin Heermance <mheermance@gmail.com>
;... |
#pragma once
#include "BaseOption.hpp"
#include "UIManager.hpp"
namespace Big::UserInterface
{
class BreakOption : public BaseOption<BreakOption>
{
public:
explicit BreakOption() = default;
explicit BreakOption(const char* text, const char* description = nullptr, std::function<void()> action = [] {})
{
SetL... |
#pragma once
#include "../dependancies/stb/stb_image.h"
#include "../utils/utils.hpp"
#include "ray.hpp"
#include "../shaders/bsdf.hpp"
namespace core {
glm::vec3 reflect_ray(const glm::vec3& v, const glm::vec3& n);
glm::vec3 refract_ray(glm::vec3& ray_in, const glm::vec3& n, double ratio);
class Mater... |
; A093001: Least k such that Sum_{r=n+1..k} r is greater than or equal to the sum of the first n positive integers (i.e., the n-th triangular number, A000217(n)). Or, least k such that (sum of first n positive integers) <= (sum of numbers from n+1 up to k).
; 2,3,5,6,8,9,11,12,13,15,16,18,19,20,22,23,25,26,28,29,30,32,... |
// 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 p... |
SECTION code_clib
PUBLIC xorpixel
EXTERN xor_MODE0
EXTERN xor_MODE1
EXTERN __z1013_mode
xorpixel:
ld a,(__z1013_mode)
cp 1
jp z,xor_MODE1
and a
ret nz
jp xor_MODE0
|
stk segment stack 'stack'
dw 100 dup (0)
stk ends
data segment 'data'
data ends
code segment 'code'
assume ds:data, cs:code
main: mov ax, data
mov ds, ax
mov ax, 4C00h
int 21h
code ends
end main |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xb2b7, %rdi
nop
nop
nop
xor %r13, %r13
movb $0x61, (%rdi)
nop
xor $42022, %r9
lea addresses_A_ht+0xd493, %r12
nop
nop
nop
nop
and %r15, %r15
movb $0x61, (%r12)
nop
nop... |
; lzo1y_s1.asm -- lzo1y_decompress_asm
;
; This file is part of the LZO real-time data compression library.
;
; Copyright (C) 2011 Markus Franz Xaver Johannes Oberhumer
; Copyright (C) 2010 Markus Franz Xaver Johannes Oberhumer
; Copyright (C) 2009 Markus Franz Xaver Johannes Oberhumer
; Copyright (C) 2008 Markus... |
; A170546: Number of reduced words of length n in Coxeter group on 9 generators S_i with relations (S_i)^2 = (S_i S_j)^47 = I.
; 1,9,72,576,4608,36864,294912,2359296,18874368,150994944,1207959552,9663676416,77309411328,618475290624,4947802324992,39582418599936,316659348799488,2533274790395904,20266198323167232,16212958... |
_x$ = 8 ; size = 4
bool <lambda_b04b230afa1f9f4d5d61ec8317e156ba>::operator()(int)const PROC ; <lambda_b04b230afa1f9f4d5d61ec8317e156ba>::operator(), COMDAT
mov eax, DWORD PTR _x$[esp-4]
cmp eax, 42 ; 0000002aH
je SH... |
###############################################################################
# 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... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x127e5, %rsi
lea addresses_D_ht+0x15bd9, %rdi
nop
nop
nop
xor %rdx, %rdx
mov $28, %rcx
rep movsw
nop
sub $55698, %rbp
lea addresses_A_ht+0x1c43d, %r10
nop
nop
nop
nop
nop
add $... |
/*
* Copyright 2020 Joe T. Sylve, Ph.D.
*
* 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 ag... |
// Copyright 2014 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/plugins/plugin_info_message_filter.h"
#include "base/at_exit.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "... |
; float nan(const char *tagp)
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sdcciy_nan
EXTERN cm48_sdcciy_nan_fastcall
cm48_sdcciy_nan:
pop af
pop hl
push hl
push af
jp cm48_sdcciy_nan_fastcall
|
#fibo
.text
main:
li $v0 5
syscall #get value
move $a0,$v0# won't beedited
li $a1, 1#n-1
li $a2, 1#n-2
li $a3, 2#first value of counter
jal fibo
li $v0 1 #print
syscall
li $v0 10 #end
syscall
fibo:
add $t0, $a1, $a2 #fibo
move $a2, $a1 #new n-2
move $a1,$t0 #new n-1
addi $a3,$a3,1
bne $a0, $a3,... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_OF
;TEST_FILE_META_END
; RCL8rCL
mov bh, 0x41
mov cl, 0x4
;TEST_BEGIN_RECORDING
rcl bh, cl
;TEST_END_RECORDING
|
; $Id: bs3-mode-SwitchToPEV86.asm $
;; @file
; BS3Kit - Bs3SwitchToPEV86
;
;
; Copyright (C) 2007-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/or modify it under the terms ... |
//=================================================================================================
/*!
// \file src/mathtest/operations/dmatdmatkron/LDbMDa.cpp
// \brief Source file for the LDbMDa dense matrix/dense matrix Kronecker product math test
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserv... |
/*
Copyright(c) 2016-2021 Panos Karabelas
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distrib... |
strlen:
mov rdx, rax
_strlen_loop:
cmp byte [rdx], 0
lea rdx, [rdx+1]
jne _strlen_loop
sub rdx, rax
ret
print:
push rax
push rdi
push rsi
push rdx
mov rsi, rax
call strlen
mov rax, 1 ; sys_write
mov rdi, 1 ; stdout
syscall ; x86-64 system call
pop rdx
pop rsi
pop rdi
pop rax
ret
pr... |
; A292371: A binary encoding of 1-digits in the base-4 representation of n.
; Submitted by Jon Maiga
; 0,1,0,0,2,3,2,2,0,1,0,0,0,1,0,0,4,5,4,4,6,7,6,6,4,5,4,4,4,5,4,4,0,1,0,0,2,3,2,2,0,1,0,0,0,1,0,0,0,1,0,0,2,3,2,2,0,1,0,0,0,1,0,0,8,9,8,8,10,11,10,10,8,9,8,8,8,9,8,8,12,13,12,12,14,15,14,14,12,13,12,12,12,13,12,12,8,9,8... |
#ifndef TPF_MEMORY_LEAK_DETECT_HPP
#define TPF_MEMORY_LEAK_DETECT_HPP
/* Programmed by: Thomas Kim
First Created: Nov. 5, 2017
Last Modified: Nov. 7, 2017
Version: 1.2
*/
#include <iostream>
#include <sstream>
#include <string>
#ifdef UNICODE
#define STDSTRING std::wstring
#define STRSTREAM std::wostringstre... |
#include "MaterialTable.hpp"
using namespace LWGC;
std::unordered_map<ShaderProgram *, std::vector< Material * > > MaterialTable::_shadersPrograms;
MaterialTable * _instance = nullptr;
MaterialTable * MaterialTable::Get(void) { return _instance; }
MaterialTable::MaterialTable(void) : _swapChain(nullptr), _renderPas... |
; MIT License
;
; Copyright (c) 2022 Jackson Shelton <jacksonshelton8@gmail.com>
;
; 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... |
#ifndef projectmodeldatabase_hpp
#define projectmodeldatabase_hpp
#include "litesql.hpp"
namespace ProjectModel {
class Project;
class Analysis;
class Model;
class Result;
class ResultQuery;
class RequestedResult;
class AnalysisProjectRelation {
public:
class Row {
public:
litesql::Field<i... |
include "include/HARDWARE.INC"
include "include/hUGE.inc"
add_a_to_r16: MACRO
add \2
ld \2, a
adc \1
sub \2
ld \1, a
ENDM
;; Thanks PinoBatch!
sub_from_r16: MACRO ;; (high, low, value)
ld a, \2
sub \3
ld \2, a
sbc a ; A = -1 if borrow or 0 if not
add \1
ld \1, a
ENDM
add_... |
; A000930: Narayana's cows sequence: a(0) = a(1) = a(2) = 1; thereafter a(n) = a(n-1) + a(n-3).
; 1,1,1,2,3,4,6,9,13,19,28,41,60,88,129,189,277,406,595,872,1278,1873,2745,4023,5896,8641,12664,18560,27201,39865,58425,85626,125491,183916,269542,395033,578949,848491,1243524,1822473,2670964,3914488,5736961,8407925,12322413... |
; A112087: 4*(n^2 - n + 1).
; 4,12,28,52,84,124,172,228,292,364,444,532,628,732,844,964,1092,1228,1372,1524,1684,1852,2028,2212,2404,2604,2812,3028,3252,3484,3724,3972,4228,4492,4764,5044,5332,5628,5932,6244,6564,6892,7228,7572,7924,8284
sub $1,$0
bin $1,2
mul $1,8
add $1,4
mov $0,$1
|
;; rdrand.asm - written and placed in public domain by Jeffrey Walton and Uri Blumenthal.
;; Copyright assigned to the Crypto++ project.
;; This ASM file provides RDRAND and RDSEED to downlevel Microsoft tool chains.
;; Everything "just works" under Visual Studio. Other platforms will have to
;; run MASM/... |
;
; 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... |
FuchsiaPokecenterObject:
db $0 ; border block
db $2 ; warps
db $7, $3, $2, $ff
db $7, $4, $2, $ff
db $0 ; signs
db $4 ; objects
object SPRITE_NURSE, $3, $1, STAY, DOWN, $1 ; person
object SPRITE_ROCKER, $2, $3, STAY, NONE, $2 ; person
object SPRITE_LASS, $6, $5, WALK, $2, $3 ; person
object SPRITE_NURSE, $... |
#include "main.h"
#include "../Classes/AppDelegate.h"
#include "cocos2d.h"
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string>
USING_NS_CC;
int main(int argc, char **argv)
{
// create the application instance
AppDelegate app;
CCEGLView* eglView = CCEGLView::sha... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x18c45, %rsi
lea addresses_D_ht+0x19455, %rdi
clflush (%rsi)
nop
nop
nop
xor %rdx, %rdx
mov $107, %rcx
rep movsb
nop
nop
nop
nop
nop
inc %rbx
lea addresses_WT_ht+0xbe71, %r11
nop
nop
xo... |
; A156260: Row sums of A156254.
; 1,2,2,1,2,4,2,1,1,4,2,1,2,4,4,1,2,1,2,1,4,4,2,1,1,4,1,1,2,8,2,1,4,4,4,1,2,4,4,1,2,8,2,1,1,4,2,1,1,1,4,1,2,1,4,1,4,4,2,1,2,4,1,1,4,8,2,1,4,8,2,1,2,4,1,1,4,8,2,1,1,4,2,1,4,4,4,1,2,1,4,1,4,4,4,1,2,1,1,1
seq $0,226177 ; a(n) = mu(n)*d(n), where mu(n) = A008683 and d(n) = A000005.
trn $1,$... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
0018CE add.w ($1e,A6), D0 [123p+ 18, enemy+18, item+18]
0018D2 move.w D0, ($18,A6) [123p+ 1E, enemy+1E, item+1E]
004D94 move.l D1, (A1)+
004D96 dbra D0, $4d94
00539C move.w (A0), ($1e,A6) [123p+ 1... |
; A305264: a(n) = 836*2^n - 771.
; 65,901,2573,5917,12605,25981,52733,106237,213245,427261,855293,1711357,3423485,6847741,13696253,27393277,54787325,109575421,219151613,438303997,876608765,1753218301,3506437373,7012875517,14025751805,28051504381,56103009533,112206019837,224412040445,448824081661,897648164093,1795296328... |
/*
* nextpnr -- Next Generation Place and Route
*
* Copyright (C) 2018 Clifford Wolf <clifford@symbioticeda.com>
* Copyright (C) 2018 Serge Bazanski <q3k@symbioticeda.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided... |
extern printf
extern exit
global _start
[section .text]
_start:
push hello ; arg1, "hello world\n"
call printf ; printf
add esp, 4
push 0 ; arg1, 0
call exit ; exit
add esp, 4
ret
[section .rodata]
hello:
db "hello world", 10, 0
|
;; Root source file, based on empty asm project from http://www.dustlayer.com
!cpu 6502
!to "build/slither.prg",cbm ; output file
;; BASIC loader
* = $0801 ; BASIC start address (#2049)
!byte $0d,$08,$dc,$07,$9e,$20,$34,$39 ; BASIC loader to start at $c000...
!byte $31,$35,$32,$00,... |
//
// Created by haohanwang on 1/24/16.
//
#ifndef ALGORITHMS_LINEARREGRESSION_HPP
#define ALGORITHMS_LINEARREGRESSION_HPP
#include "Model.hpp"
#include <Eigen/Dense>
#include <unordered_map>
#ifdef BAZEL
#include "Models/ModelOptions.hpp"
#else
#include "../Models/ModelOptions.hpp"
#endif
using namespace Eigen;
... |
display_screen:
call jiffy_wait
call DISSCR
ld a,(sheet_number)
call get_sheet_address
ld (sheet_pointer),hl
call CLRSPR
ld a,(sheet_number)
call initialize_patterns
call initialize_vram_patterns
call initialize_border
call p... |
/**
* \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "MFront.h"
#include <MGIS/Behaviour/Inte... |
; A213779: Principal diagonal of the convolution array A213778.
; 1,6,15,33,58,97,146,214,295,400,521,671,840,1043,1268,1532,1821,2154,2515,2925,3366,3861,4390,4978,5603,6292,7021,7819,8660,9575,10536,11576,12665,13838,15063,16377,17746,19209,20730,22350,24031,25816,27665,29623,31648,33787,35996,38324,40725,43250,45851... |
// This file is part of RAVL, Recognition And Vision Library
// Copyright (C) 2006, OmniPerception Ltd.
// This code may be redistributed under the terms of the GNU Lesser
// General Public License (LGPL). See the lgpl.licence file for details or
// see http://www.gnu.org/copyleft/lesser.html
// file-header-ends-here
... |
; --COPYRIGHT--,BSD_EX
; Copyright (c) 2012, Texas Instruments Incorporated
; 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 ... |
#include "TcPacketStored.h"
#include "../../objectmanager/ObjectManagerIF.h"
#include "../../serviceinterface/ServiceInterfaceStream.h"
#include <cstring>
StorageManagerIF* TcPacketStored::store = nullptr;
TcPacketStored::TcPacketStored(store_address_t setAddress) :
TcPacketBase(nullptr), storeAddress(setAddress) ... |
#include "rainbow.hh"
#include <thread>
#include <stddef.h>
#include <unistd.h>
#include <cstdio>
#include <cerrno>
#include <cmath>
#include <cstdlib>
using namespace std;
Rainbow& Rainbow::getInstance() {
const char* cooperative_string = getenv("cooperative");
bool cooperative;
if (cooperative_string != NULL) {... |
; A098871: Sums of distinct powers of 4 plus 1.
; Submitted by Jon Maiga
; 1,2,5,6,17,18,21,22,65,66,69,70,81,82,85,86,257,258,261,262,273,274,277,278,321,322,325,326,337,338,341,342,1025,1026,1029,1030,1041,1042,1045,1046,1089,1090,1093,1094,1105,1106,1109,1110,1281,1282,1285,1286
mov $2,1
lpb $0
mov $3,$0
div $0... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: cmainChangeDir.asm
AUTHOR: Chris Boyke
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ----... |
#include <bits/stdc++.h>
#define INF 2000000000
using namespace std;
typedef long long ll;
int read(){
int f = 1, x = 0;
char c = getchar();
while(c < '0' || c > '9'){if(c == '-') f = -f; c = getchar();}
while(c >= '0' && c <= '9')x = x * 10 + c - '0', c = getchar();
return f * x;
}
class Trie {
private:
vect... |
dnl AMD64 mpn_mul_basecase optimised for AMD bobcat.
dnl Copyright 2003-2005, 2007, 2008, 2011, 2012 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 GN... |
;*******************************************************************************
;* Language : Motorola/Freescale/NXP 68HC11 Assembly Language (aspisys.com/ASM11)
;*******************************************************************************
;* Scott's Monitor
;* Based heavily on BUFFALO version 3.4 from ... |
title "Asynchronous Procedure Call Interrupt"
;++
;
; 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.
;
;
... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1994 -- All Rights Reserved
PROJECT:
MODULE:
FILE: pgfsUtils.asm
AUTHOR: Adam de Boor, Sep 30, 1993
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Descripti... |
;
; 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... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>fstatfs64(fildes, buf) -> str
Invokes the syscall fstatfs64.
See 'man 2 fstatfs64' for more information.
Arguments:
fildes(int): fildes
buf(statfs64*): buf
Returns:
int
</%docstring>
<%page ... |
ChampionsRoom_h:
db GYM ; tileset
db CHAMPIONS_ROOM_HEIGHT, CHAMPIONS_ROOM_WIDTH ; dimensions (y, x)
dw ChampionsRoom_Blocks ; blocks
dw ChampionsRoom_TextPointers ; texts
dw ChampionsRoom_Script ; scripts
db $0 ; connections
dw ChampionsRoom_Object ; objects
|
; SP1MakeRect16
; 05.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
XLIB SP1MakeRect16
; A straight conversion from struct_sp1_Rect
; to struct_r_Rect16
;
; enter : hl = struct sp1_Rect *
; de = destination struct r_Rect16 *
; uses : af, b, de, hl
.SP1MakeRect16
ld b,(hl)
inc hl
ld a... |
SECTION code_fp_math48
PUBLIC mm48__ac1_3
mm48__ac1_3:
; set AC = 1/3
ld bc,$2aaa
ld e,c
ld d,c
ld hl,$aa7f
ret
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x21b9, %r8
nop
nop
dec %rdi
mov $0x6162636465666768, %r15
movq %r15, %xmm4
vmovups %ymm4, (%r8)
nop
nop
nop
nop
add $32953, %r9
lea addresses_WC_ht+0x19f9f, %rsi
lea addresses_... |
// We index anonymous namespaces.
//- @namespace defines/binding AnonymousNamespace
namespace {
}
|
; Program 4.1
; Addition and Subtraction - NASM (64-bit)
; Copyright (c) 2020 Hall & Slonka
SECTION .data
sum: DQ 0
val: DQ 25
SECTION .text
global _main
_main:
mov rax, 0
inc rax
add rax, 200
sub rax, [val]
mov [sum], rax
dec QWORD [sum]
neg QWORD [sum]
mov rax, 60
xor rdi, rdi
syscall
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.