text stringlengths 1 1.05M |
|---|
bits 64
mov rax, 0
mov rbx, 1
mov [rax], rbx
mov rcx, [rax]
hlt
|
dnl Alpha mpn_sqr_diag_addlsh1.
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 under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published by th... |
///////////////////////////////////////////////////////////
// DeviceStatus.cpp
// Implementation of the Class DeviceStatus
// Created on: 13-Apr-2020 2:51:27 PM
///////////////////////////////////////////////////////////
#include "DeviceStatus.h"
DeviceStatus::DeviceStatus() : opState(0), pollRate(900){
}
... |
; A286814: Number of matchings in the n-helm graph.
; 2,3,10,29,82,227,618,1661,4418,11651,30506,79389,205522,529635,1359434,3476989,8865026,22538755,57157578,144615709,365127634,920110051,2314564522,5812911741,14576950082,36503608707,91294323178,228049363229,569017421650,1418290058723
mov $1,2
mov $2,$0
mov $3,$0
lpb... |
; A024101: a(n) = 9^n-1.
; 0,8,80,728,6560,59048,531440,4782968,43046720,387420488,3486784400,31381059608,282429536480,2541865828328,22876792454960,205891132094648,1853020188851840,16677181699666568,150094635296999120
mov $1,9
pow $1,$0
sub $1,1
mov $0,$1
|
.NW1 \ found Room, a FRIN(X) that is still empty. Allowed to add ship, type is in T.
20 32 37 JSR &3732 \ GINF \ Get INFo pointer for slot X from UNIV
A5 D1 LDA &D1 \ T \ the ship type
30 52 BMI NW2 \ Planet/sun, hop inner workspace to just store ship typ... |
; A079553: a(n) = floor( d(n^2) / d(n) ), where d() = A000005.
; Submitted by Simon Strandgaard
; 1,1,1,1,1,2,1,1,1,2,1,2,1,2,2,1,1,2,1,2,2,2,1,2,1,2,1,2,1,3,1,1,2,2,2,2,1,2,2,2,1,3,1,2,2,2,1,2,1,2,2,2,1,2,2,2,2,2,1,3,1,2,2,1,2,3,1,2,2,3,1,2,1,2,2,2,2,3,1,2,1,2,1,3,2,2,2,2,1,3,2,2,2,2,2,2,1,2,2,2
mov $1,$0
add $0,1
po... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x13ec6, %rsi
lea addresses_WT_ht+0x156c6, %rdi
nop
nop
nop
nop
nop
add $61044, %r13
mov $56, %rcx
rep movsq
nop
nop
nop
nop
nop
cmp $28850, %r8
lea addresses_WT_ht+0x11326, %r14
nop
nop... |
; convert integer word to decimal string
;
include win1_mac_oli
section utility
xdef cnv_iwstr
;+++
; convert integer word to decimal string
; d1.w=$abcd (a0)-> '43981'
;
; Entry Exit
; d1.w word integer preserved
; ... |
/*
* Copyright 2008 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkFloat.h"
#include "SkMath.h"
#define EXP_BIAS (127+23)
static int get_unsigned_exp(uint32_t packed)
{
return (packed << 1 >> 24);
}
... |
result = $f8
default_test_name:
.db 0
.default test_name = default_test_name
; Report error if branch with given condition would be taken
error_if_ne:
bne report_final_result_
rts
error_if_eq:
beq report_final_result_
rts
error_if_mi:
bmi report_final_result_
... |
; common case, reset, second one
ORG 0xFFFF
ldir ; warning about memory limit
ldir ; no warning (not doubling)
ORG 0 ; reset warnings state
ORG 0xFFFF
ldir ; (again) warning about memory li... |
; A014907: a(1)=1, a(n) = 22*a(n-1) + n.
; 1,24,531,11686,257097,5656140,124435087,2737571922,60226582293,1324984810456,29149665830043,641292648260958,14108438261741089,310385641758303972,6828484118682687399,150226650611019122794,3304986313442420701485,72709698895733255432688,1599613375706131619519155,35191494265534895... |
; A263200: Number of perfect matchings on a Möbius strip of width 3 and length 2n.
; 28,104,388,1448,5404,20168,75268,280904,1048348,3912488,14601604,54493928,203374108,759002504,2832635908,10571541128,39453528604,147242573288,549516764548,2050824484904,7653781175068,28564300215368,106603419686404,397849378530248,14847... |
%include 'textmode.h'
call draw_border
mov di, 160 * 2 + 8 ;where to place cursor
mov si, line01 ;fetch the text
mov ah, 0x0A ;color
call slide_line
mov di, 160 * 4 + 16 ;where to place cursor
mov si, line02 ;fetch the text
mov ah, 0x0E
call slide_line
mov di, 160 * 6 + 16 ;where to place cursor
mov si... |
COMMENT @-----------------------------------------------------------------------
Copyright (c) Geoworks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Math UI
FILE: uiFormatGlobal.asm
AUTHOR: Cheng, 10/92
ROUTINES:
Name Description
---- -----------
FloatFormatInit
FloatFormatInitForm... |
TITLE PROG10 {EXE} Display A-Z
;--------------------------------------------
.MODEL SMALL
.STACK
.DATA
;--------------------------------------------
.CODE
MAIN PROC FAR
MOV AX,@data ; Initialize segment registers
MOV DS,AX
MOV CL,26 ; Initialize counter
MOV BL,'A' ; First character is 'A'
MOV AH,02H
DL... |
###############################################################################
# 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... |
; A304517: a(n) = 16*2^n - 11 (n>=1).
; 21,53,117,245,501,1013,2037,4085,8181,16373,32757,65525,131061,262133,524277,1048565,2097141,4194293,8388597,16777205,33554421,67108853,134217717,268435445,536870901,1073741813,2147483637,4294967285,8589934581,17179869173,34359738357,68719476725,137438953461,274877906933,54975581... |
#include "TableFunctionRemote.h"
#include <Storages/getStructureOfRemoteTable.h>
#include <Storages/StorageDistributed.h>
#include <Parsers/ASTIdentifier.h>
#include <Parsers/ASTLiteral.h>
#include <Parsers/ASTFunction.h>
#include <Parsers/ASTExpressionList.h>
#include <Access/AccessFlags.h>
#include <Interpreters/eva... |
; A276026: a(n) = Sum_{k=0..7} (n + k)^2.
; 140,204,284,380,492,620,764,924,1100,1292,1500,1724,1964,2220,2492,2780,3084,3404,3740,4092,4460,4844,5244,5660,6092,6540,7004,7484,7980,8492,9020,9564,10124,10700,11292,11900,12524,13164,13820,14492,15180,15884,16604,17340,18092,18860,19644,20444,21260,22092,22940
mul $0,2
... |
frame 1, 04
setrepeat 3
frame 1, 08
frame 2, 06
frame 3, 06
dorepeat 2
endanim |
;/*!
; @file
;
; @ingroup fapi
;
; @brief DosGetDateTime DOS wrapper
;
; (c) osFree Project 2018, <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 Prokus... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: Pen library
MODULE: Ink
FILE: inkSelection.asm
AUTHOR: Andrew Wilson, Sep 3, 1992
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/ 3/9... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: cfolderFileChange.asm
AUTHOR: Chris Boyke
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- -... |
name mscdexnt
;
; MSCDEXNT
;
; Author: Neil Sandlin (neilsa)
;
; Description:
;
; This TSR implements the v86 mode portion of MSCDEX support under
; NT. Basically, all this piece does is hook INT2F and watch for
; MSCDEX calls.
;
include bop.inc
includ... |
; A170031: Number of reduced words of length n in Coxeter group on 22 generators S_i with relations (S_i)^2 = (S_i S_j)^36 = I.
; 1,22,462,9702,203742,4278582,89850222,1886854662,39623947902,832102905942,17474161024782,366957381520422,7706105011928862,161828205250506102,3398392310260628142,71366238515473190982
add $0,... |
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 20220523
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the c... |
ORG $100
PORTA EQU $1000
PORTB EQU $1004
MASKA EQU $03
INICIO CLR PORTB
LDS #FINPRO+10
SECDEC JSR RUTEC ; SECUENCIA DE
LDAA BANTEC; DETECCION DE TECLA
BEQ SECDEC;BANTEC=0 ->NO HAY TECLA OPRIMIDA
PRUINC LDAA REGTEC
CMPA #01
BEQ INCREPB
... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
004932 move.b D0, ($96,A6)
004936 rts
004D3A move.l D0, (A4)+
004D3C move.l D0, (A4)+
00FE5A move.b ($f,A2), ($96,A0) [enemy+5B, etc+5B, item+5B]
00FE60 or.b D0, D0 [enemy+96, etc+96, item+96]
0... |
// Original test: ./ullmer/hw4/problem6/st_6.asm
// Author: ullmer
// Test source code follows
//test where mem address is max neg reg
//offset + max neg immediate (mem address = 0xff70)
lbi r0, -128
lbi r1, 45
st r1, r0, -16
halt
|
SECTION code_stdio
PUBLIC __stdio_printf_number_tail_int
PUBLIC __stdio_printf_number_tail_uint
EXTERN __stdio_nextarg_hl, asm1_utoa, l_neg_hl
EXTERN __stdio_printf_number_tail, __stdio_printf_number_tail_zero
__stdio_printf_number_tail_int:
; enter : ix = FILE *
; hl = void *stack_param
; ... |
; A033954: Second 10-gonal (or decagonal) numbers: n*(4*n+3).
; 0,7,22,45,76,115,162,217,280,351,430,517,612,715,826,945,1072,1207,1350,1501,1660,1827,2002,2185,2376,2575,2782,2997,3220,3451,3690,3937,4192,4455,4726,5005,5292,5587,5890,6201,6520,6847,7182,7525,7876,8235,8602,8977,9360,9751,10150,10557,10972,11395,11826... |
_PrintHandler:
;Send_receive_over_uart.c,18 :: void PrintHandler(char c) {
;Send_receive_over_uart.c,20 :: UART1_Write(c);
ZE W10, W10
CALL _UART1_Write
;Send_receive_over_uart.c,22 :: }
L_end_PrintHandler:
RETURN
; end of _PrintHandler
_main:
MOV #2048, W15
MOV #6142, W0
MOV WREG, 32
MO... |
.data?
dw ?
wordbuff db 16384 dup(?)
hrcmem dd ?
fError dd ?
fModify dd ?
fParseError dd ?
.code
SkipToEndOfComment proc
.while byte ptr [esi] && word ptr [esi]!='/*'
inc esi
.endw
.if word ptr [esi]=='/*'
add esi,2
.endif
ret
SkipToEndOfComment endp
SkipToEol proc
.whi... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x1b233, %rbx
clflush (%rbx)
sub $3746, %rdx
mov (%rbx), %r14
nop
nop
nop
nop
and $53655, %rbp
lea addresses_WT_ht+0x15a17, %rsi
lea addresses_A_ht+0x16bb9, %rdi
nop
nop
xor $... |
//
// blocking_tcp_client.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// 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.txt)
//
#include <boost/asio/... |
//
// Created by MATRIX on 2017/6/2.
//
#include "Debug.h"
#include <iostream>
void debugStart(const std::string &msg)
{
std::cout << "DEBUG: [" << msg << "] start" << std::endl;
}
void debugEnd(const std::string &msg)
{
std::cout << "DEBUG: [" << msg << "] end" << std::endl;
}
Debugger::Debugger(const std:... |
trainer_const: MACRO
\1 EQU const_value
OPP_\1 EQU const_value + 200
const_value = const_value + 1
ENDM
const_value = 1
trainer_const YOUNGSTER ; $01 | OPP = $C9
trainer_const BUG_CATCHER ; $02 | OPP = $CA
trainer_const LASS ; $03 | OPP = $CB
trainer_const SAILOR ; $04 | OPP = $CC
train... |
; A053186: Square excess of n: difference between n and largest square <= n.
; Submitted by Simon Strandgaard
; 0,0,1,2,0,1,2,3,4,0,1,2,3,4,5,6,0,1,2,3,4,5,6,7,8,0,1,2,3,4,5,6,7,8,9,10,0,1,2,3,4,5,6,7,8,9,10,11,12,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,0,1,2,3,4,5,6,7,8,9,10,11,12,1... |
; A210374: Number of 2 X 2 matrices with all terms in {0,1,...,n} and (sum of terms) = n+2.
; 0,4,19,40,68,104,149,204,270,348,439,544,664,800,953,1124,1314,1524,1755,2008,2284,2584,2909,3260,3638,4044,4479,4944,5440,5968,6529,7124,7754,8420,9123,9864,10644,11464,12325,13228,14174,15164
mov $2,$0
add $2,5
bin $2,3
trn... |
; void p_forward_list_clear(p_forward_list_t *list)
SECTION code_clib
SECTION code_adt_p_forward_list
PUBLIC p_forward_list_clear
EXTERN asm_p_forward_list_clear
defc p_forward_list_clear = asm_p_forward_list_clear
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x13703, %r8
nop
nop
nop
nop
dec %rcx
movb $0x61, (%r8)
and $9679, %r13
lea addresses_UC_ht+0x10c67, %rsi
lea addresses_WC_ht+0xee13, %rdi
add %r13, %r13
mov $73, %rcx
rep movsl
nop
nop
... |
; A172229: Number of ways to place 3 nonattacking wazirs on a 3 X n board.
; 0,2,22,84,215,442,792,1292,1969,2850,3962,5332,6987,8954,11260,13932,16997,20482,24414,28820,33727,39162,45152,51724,58905,66722,75202,84372,94259,104890,116292,128492,141517,155394,170150,185812,202407,219962,238504,258060,278657,300322,32308... |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2018 Baldur Karlsson
*
* 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 ... |
; A004188: a(n) = n*(3*n^2 - 1)/2.
; 0,1,11,39,94,185,321,511,764,1089,1495,1991,2586,3289,4109,5055,6136,7361,8739,10279,11990,13881,15961,18239,20724,23425,26351,29511,32914,36569,40485,44671,49136,53889,58939,64295,69966,75961,82289,88959,95980,103361,111111,119239,127754,136665,145981,155711,165864,176449,187475,19... |
bits 32
db 0x0F, 0x01, 0xF8 ; SWAPGS
db 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90
db 0x0F, 0x05 ; SYSCALL
db 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90
db 0x0F, 0x07 ; SYSRET
db 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90
db 0xF3, 0x0F... |
;-Minimal ayFX player v0.15 06.05.06---------------------------;
; ;
; The simplest effects player. Plays effects on one AY, ;
; without music in the background. ;
; Priority of channel selection: if available ... |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04... |
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 75
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %4 "main" %50
OpExecutionMode %4 OriginUp... |
;
; jquanti.asm - sample quantization (AVX2)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright (C) 2016, D. R. Commander.
; Copyright (C) 2016, Matthieu Darbois.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribut... |
LDA f100
MOV B, A
MOV C, A
MVI D, 04 // counter
MVI E, 00 // flag
LOOP:
MOV A, C
RLC
MOV C, A
XRA B
ANI 01
JNZ NO
MOV A, B
RRC
MOV B, A
DCR D
JNZ LOOP
INR E
NO: MOV A, E
STA f200
HLT
|
// 2K19/EE/009 Abhik Kumar
//Addition of two 16-bit numbers
// 16 bit data is load in register pair
// First adddition of LSB is done the MSB
// LXI (Load register pair immediate)
LXI B,BB12H // data BB12 will get loaded in 'B' & 'C'
LXI D,C213H // data C213 will get loaded in 'D' & 'E'
MOV A,C // moving 'C' (LSB) ... |
; A099770: Expansion of 1/((1-x)*(1-x^2)*(1-x^4)*(1-x^6)).
; 1,1,2,2,4,4,7,7,11,11,16,16,23,23,31,31,41,41,53,53,67,67,83,83,102,102,123,123,147,147,174,174,204,204,237,237,274,274,314,314,358,358,406,406,458,458,514,514,575,575,640,640,710,710,785,785,865,865,950,950,1041,1041,1137,1137,1239,1239,1347,1347,1461,1461,1... |
;********************************************************************
;* Description : Division using Substraction
;*
;********************************************************************
#include<p18f452.inc>
CONFIG WDT = OFF
ORG 0 ; Divide by any number so we subtract till we get -ve using neg flag
MOVLW .50... |
C arm/v6/aes-encrypt-internal.asm
ifelse(<
Copyright (C) 2013 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; e... |
segment .text
struc scaleinfo
.dst resd 1
.src resd 1
.xaccum resd 1
.xfracinc resd 1
.xintinc resd 1
.count resd 1
endstruc
global _vdasm_resize_point32
_vdasm_resize_point32:
push ebp
push edi
push esi
push ebx
mov eax, [esp+4+16]
mov ebx, [eax+scaleinfo.xaccum]
mov ecx, [eax+scaleinf... |
####################################################
## GetString is used to get input from ##
## KeyBoard Simulator ##
####################################################
.eqv kbInCtl 0xFFFF0000 # 0xFFFF0000 rcv contrl
.eqv kbInData 0xFFFF0004 # 0xFFFF0004 rcv ... |
PokedexDataPointerTable:
; entries correspond to constants/pokemon_constants.asm
dba BulbasaurPokedexEntry
dba IvysaurPokedexEntry
dba VenusaurPokedexEntry
dba CharmanderPokedexEntry
dba CharmeleonPokedexEntry
dba CharizardPokedexEntry
dba SquirtlePokedexEntry
dba WartortlePokedexEntry
dba BlastoisePokedexEntr... |
; generate<EVASIONS> generates all pseudo-legal check evasions when the side
; to move is in check. Returns a pointer to the end of the move list.
calign 16
Gen_Evasions:
; in rbp address of position
; rbx address of state
; io rdi address to write moves
push rsi r12 r13 r14 r15
mov r13d, ... |
MOV D, 11110000
MOV E, 00001111 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2015 Intel Corporation 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 so... |
/*
* Copyright (c) 2017, 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 above copyright
* ... |
; A063220: Dimension of the space of weight 2n cuspidal newforms for Gamma_0( 55 ).
; 3,10,18,22,30,38,42,50,58,62,70,78,82,90,98,102,110,118,122,130,138,142,150,158,162,170,178,182,190,198,202,210,218,222,230,238,242,250,258,262,270,278,282,290,298,302,310,318,322,330
mov $2,$0
mul $0,2
lpb $0,1
trn $0,3
add $1,4... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_AF
;TEST_FILE_META_END
; OR32mr
;TEST_BEGIN_RECORDING
lea rdi, [rsp-0x4]
mov DWORD [rdi], 0x1234abcd
mov eax, 0x5678fedc
or [rdi], eax
mov edx, [rdi]
mov rdi, 0x0
;TEST_END_RECORDING
|
; A088879: Numbers n such that 3n + 5 is a prime.
; -1,0,2,4,6,8,12,14,16,18,22,26,28,32,34,36,42,44,48,54,56,58,62,64,74,76,78,82,84,86,88,92,96,102,104,114,116,118,126,128,132,138,142,146,148,152,154,158,162,166,168,172,184,186,188,194,196,198,204,212,214,216,218,224,226,232,238,246,252,256,264,268,272,274,278,284,28... |
; ===============================================================
; Jan 2014
; ===============================================================
;
; int getchar(void)
;
; Read char from stdin.
;
; ===============================================================
INCLUDE "config_private.inc"
SECTION code_clib
SECTION co... |
/* Copyright 2017 The TensorFlow Authors. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
; void __CALLEE__ sp1_Initialize_callee(uchar iflag, uchar tile)
; 02.2008 aralbrec, Sprite Pack v3.0
; ts2068 hi-res version
INCLUDE "ts2068hr/customize.asm"
PUBLIC sp1_Initialize_callee
PUBLIC ASMDISP_SP1_INITIALIZE_CALLEE
PUBLIC SP1V_DISPORIGX
PUBLIC SP1V_DISPORIGY
PUBLIC SP1V_DISPWIDTH
PUBLIC SP1V_DISPHEIGHT
PUB... |
struct A {
int i;
};
struct B {
int i;
operator A ()
{
A tmp;
tmp.i = i++;
return tmp;
}
};
int main()
{
B b;
b.i = 1;
A a = b;
assert(a.i==1);
assert(b.i==2);
}
|
SECTION code_fp_math16
PUBLIC polyf16_callee
EXTERN cm16_sccz80_poly_callee
defc polyf16_callee = cm16_sccz80_poly_callee
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _polyf16_callee
EXTERN cm16_sdcc_poly_callee
defc _polyf16_callee = cm16_sdcc_poly_callee
ENDIF
|
; A231057: Number of n X 2 0..3 arrays x(i,j) with each element horizontally or vertically next to at least one element with value (x(i,j)+1) mod 4, no adjacent elements equal, and upper left element zero.
; 0,2,6,20,68,230,778,2632,8904,30122,101902,344732,1166220,3945294,13346834,45152016,152748176,516743378,17481303... |
;init code for SNES
;much borrowed from Damian Yerrick
;some borrowed from Oziphantom
.p816
.smart
.segment "CODE"
NMI:
bit $4210 ; it is required to read this register
; in the NMI handler
inc in_nmi ; size of A doesn't matter
rti
IRQ:
bit $4211 ; it is required to read this register
; in the IRQ han... |
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x10d24, %rsi
lea addresses_WT_ht+0xf234, %rdi
nop
nop
nop
nop
nop
and $61753, %rdx
mov $24, %rcx
rep movsq
nop
nop
nop
nop
dec %rsi
lea addresses_UC_ht+0x1b984, %rsi
lea addre... |
IDEAL
SEGMENT SEG1
ASSUME CS:SEG1,DS:SEG1,ES:SEG1,SS:SEG1
ORG 100h
start:
jmp over ; force resize pass
; source: SI
; destination: ES:DI
movs [byte di], [si]
movs [byte es:di], [si]
movs [byte di], [ds:si]
movs [byte di], [es:si]
movs [byte di], [ss:si]
movs [byte di], [cs:si]
movs [byte es:di], [ds... |
; void xordrawto(int x2, int y2);
IF !__CPU_INTEL__ && !__CPU_GBZ80__
SECTION code_graphics
PUBLIC xordrawto
PUBLIC _xordrawto
EXTERN asm_xordrawto
.xordrawto
._xordrawto
pop af
pop de
pop hl
push hl
push de
push af
jp asm_xordrawto
ENDIF
|
lbu $5,6($0)
sh $4,6($0)
sllv $4,$5,$3
addiu $5,$4,6573
slti $5,$5,1915
subu $0,$4,$3
nor $4,$5,$3
lhu $1,4($0)
sltiu $4,$5,-2592
addu $1,$5,$3
xor $6,$5,$3
addiu $5,$5,-25076
srl $4,$1,29
lw $5,0($0)
lw $0,8($0)
nor $4,$0,$3
lh $5,14($0)
slti $3,$3,31778
subu $3,$4,$3
sltiu $3,$3,22063
subu $5,$5,$3
sra $3,$3,23
sra $... |
;
; Dict Xiong is learning asm
include Irvine32.inc
ExitProcess proto, dwExitCode:dword
includelib msvcrt.lib
.data
num_a sbyte 24
num_b sword 2334
num_c sdword 35324543
.code
mWriteInt macro integer
if (sizeof integer) eq 4
mov eax, integer
else
movsx eax, integer
endif
call Write... |
; A328284: An extension of the Jacobsthal numbers: 0, 0, 1, followed by A001045.
; Submitted by Jon Maiga
; 0,0,1,0,1,1,3,5,11,21,43,85,171,341,683,1365,2731,5461,10923,21845,43691,87381,174763,349525,699051,1398101,2796203,5592405,11184811,22369621,44739243,89478485
seq $0,173197 ; a(0)=1, a(n)= 2+2^n/6+4*(-1)^n/3, n... |
; A276158: Triangle read by rows: T(n,k) = 6*k*(n + 1 - k) for 0 < k <= n; for k = 0, T(n,0) = n + 1.
; Submitted by Christian Krause
; 1,2,6,3,12,12,4,18,24,18,5,24,36,36,24,6,30,48,54,48,30,7,36,60,72,72,60,36,8,42,72,90,96,90,72,42,9,48,84,108,120,120,108,84,48,10,54,96,126,144,150,144,126,96,54
lpb $0
add $1,1
... |
_forktest: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
printf(1, "fork test OK\n");
}
int
main(void)
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push... |
_stressfs: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "fs.h"
#include "fcntl.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
int fd, i;
char path[] = "stressfs0";
7: b8 30 00 0... |
#include "remeshing/remeshing.h"
namespace rsurfaces
{
namespace remeshing
{
using std::cout;
using std::queue;
// immediate functions not in geometry-central
Vector3 vertexNormal(GeomPtr const &geometry, Vertex v){
Vector3 norm = Vector3::zero();
... |
.ORIG x4250
.FILL x0000
.FILL x0000
.FILL x0004
.FILL x4300
.END
|
;
; Z88dk Generic Floating Point Math Library
;
; TOS >= FA
;
; $Id: deq.asm,v 1.2 2015/01/19 01:32:56 pauloscustodio Exp $:
PUBLIC deq
EXTERN dcompar
EXTERN f_yes
EXTERN f_no
.deq call dcompar
jp z,f_yes
jp f_no
|
//https://codeforces.com/group/Rv2Qzg0DgK/contest/272491/problem/Q
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
typedef long long ll;
typedef long double ld;
ll mod = 1e9 + 7;
int main ()
{
ios_base::sync_with_stdio (0); cin.tie (0); cout.tie (0);
int t;
cin >> t;
while (t--)
{
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1d875, %rax
nop
sub $12845, %r15
movb (%rax), %cl
nop
add %rdi, %rdi
lea addresses_normal_ht+0x18819, %rsi
lea addresses_WC_ht+0x965, %rdi
nop
nop
nop
nop
nop
and %r12, %r12
mov $22, %... |
; A075643: Group the natural numbers so that the n-th group contains n numbers one each of a multiple of numbers from 1 to n so that the group sum is a multiple of (n+1): (2), (1, 8), (3, 4, 9), (5, 6, 12, 32), (7, 10, 15, 16, 30), (11, 14, 18, 20, 25, 24), ... Sequence gives initial terms of groups.
; 2,1,3,5,7,11,13,... |
object_const_def ; object_event constants
const LANCESROOM_LANCE
const LANCESROOM_MARY
const LANCESROOM_OAK
LancesRoom_MapScripts:
db 2 ; scene scripts
scene_script .LockDoor ; SCENE_DEFAULT
scene_script .DummyScene ; SCENE_LANCESROOM_APPROACH_LANCE
db 1 ; callbacks
callback MAPCALLBACK_TILES, .LancesRoomDoo... |
;;----------------------------------------------------------------------------------------------------------------------
;; max
MaxDEHL:
; Input:
; HL = 1st value
; DE = 2nd value
; Output:
; HL = maximum value
; DE = minimum value
; CF = 1 if DE was maximum
;
and a
sbc hl,de
ad... |
; A006892: Representation as a sum of squares requires n squares with greedy algorithm.
; 1,2,3,7,23,167,7223,13053767,42600227803223,453694852221687377444001767,51459754733114686962148583993443846186613037940783223,66202658929807985679387278177775672007005261082550999136740555506614347455828962723564795252695058074176... |
// Copyright 2016 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 "third_party/blink/renderer/core/css/cssom/css_scale.h"
#include "third_party/blink/renderer/core/css/css_primitive_value.h"
#include "third_par... |
; A084506: The length of each successively larger 3-ball ground-state site swap given in A084501, i.e., the number of digits in each term of A084502.
; 1,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,... |
#include "Platform.inc"
#include "FarCalls.inc"
#include "Lcd.inc"
#include "ShiftRegister.inc"
#include "TestFixture.inc"
radix decimal
udata
global initialShiftRegisterBuffer
global expectedShiftRegisterBuffer
initialShiftRegisterBuffer res 1
expectedShiftRegisterBuffer res 1
ClearFlagShiftOutTest code
... |
; --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 above co... |
///////////////////////////////////////////////////////////////////////////////
// Name: src/common/cmdline.cpp
// Purpose: wxCmdLineParser implementation
// Author: Vadim Zeitlin
// Modified by:
// Created: 05.01.00
// RCS-ID: $Id$
// Copyright: (c) 2000 Vadim Zeitlin <zeitlin@dptmaths.ens-c... |
//=================================================================================================
/*!
// \file src/mathtest/smatdvecmult/MCbV4b.cpp
// \brief Source file for the MCbV4b sparse matrix/dense vector multiplication math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// Thi... |
; Library Test #1: Integer I/O (InputLoop.asm)
; Tests the Clrscr, Crlf, DumpMem, ReadInt, SetTextColor,
; WaitMsg, WriteBin, WriteHex, and WriteString procedures.
INCLUDE Irvine32.inc
.data
COUNT = 4
BlueTextOnGray = blue + (lightGray * 16)
DefaultColor = lightGray + (black * 16)
arrayD SDWORD 12345... |
; A024482: a(n) = (1/2)*(binomial(2n, n) - binomial(2n-2, n-1)).
; 2,7,25,91,336,1254,4719,17875,68068,260338,999362,3848222,14858000,57500460,222981435,866262915,3370764540,13135064250,51250632510,200205672810,782920544640,3064665881940,12007086477750,47081501377326
mov $4,2
mov $5,$0
lpb $4
mov $0,$5
sub $4,1
... |
ifdef BuildC64_CRT
; cartridge code appears at $8000
;*=$8000
; byte $09, $80, $25, $80, $c3, $c2, $cd, $38, $30, $8e, $16, $d0, $20, $a3, $fd, $20
;byte $50, $fd, $20, $15, $fd, $20, $5b, $ff, $58, $ea, $ea, $ea, $ea, $ea, $ea, $ea
;byte $ea, $ea, $ea, $ea, $ea
;*=$8025
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.