text stringlengths 1 1.05M |
|---|
// -
// Copyright 2009 Colin Percival
// 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... |
* = $0200
CHRIN = $FFCF
CHROUT = $FFD2
start:
; echo prompt
LDX #0
.l LDA prompt,X
BEQ input
JSR CHROUT
INX
JMP .l
; read name from input
input LDX #0
.l1 JSR CHRIN
STA name,X
INX
CMP #$0A
BEQ .l2
JMP .l1
.l2 LDA #0
STA name,X
; echo greeting
TAX
.l3 LDA greet,X
BEQ exit
JSR CHROUT
INX
JMP .l3
... |
MACRO mac
println "got {d:_NARG} args"
ENDM
mac
mac 42
notmac
mac
mac 42
mac::
mac ::
|
#include "Clove/Rendering/SwapchainRenderTarget.hpp"
#include "Clove/Application.hpp"
#include <Clove/Graphics/GhaDevice.hpp>
#include <Clove/Graphics/GhaFactory.hpp>
#include <Clove/Graphics/GhaFence.hpp>
#include <Clove/Graphics/GhaPresentQueue.hpp>
#include <Clove/Graphics/GhaSemaphore.hpp>
#include <Clove/Graphic... |
;
; ZX IF1 & Microdrive functions
;
; int if1_find_sector (int drive);
;
; Find a free sector in the specified drive
;
; Create an empty file, then delete it just to discover
; which sector can be written !!!.
;
;
; $Id: if1_find_sector.asm,v 1.1 2008/06/29 08:25:47 aralbrec Exp $
;
XLIB if1_find_sector
filenam... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x39b8, %rbp
clflush (%rbp)
nop
nop
nop
nop
nop
and $35622, %r11
mov (%rbp), %r15
inc %rbp
lea addresses_WC_ht+0x80dc, %r9
nop
xor %rsi, %rsi
movw $0x6162, (%r9)
nop
xor $51035... |
; ===============================================================
; 2011-2012 Shiru http://shiru.untergrund.net
;
; 2014 adapted to z88dk by aralbrec
; * modified to use one index register
; * modified to eliminate self-modifying code
; * modified to use general 1-bit output for all targets
; * modified to be tolerant... |
;************************************************************************
;* SIMD-optimized lossless video encoding functions
;* Copyright (c) 2000, 2001 Fabrice Bellard
;* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
;*
;* MMX optimization by Nick Kurshev <nickols_k@mail.ru>
;* Conversion to NASM for... |
; A045950: Triangles in Star of David matchstick arrangement of side n.
; 0,10,59,177,394,740,1245,1939,2852,4014,5455,7205,9294,11752,14609,17895,21640,25874,30627,35929,41810,48300,55429,63227,71724,80950,90935,101709,113302,125744,139065,153295,168464,184602,201739,219905,239130,259444,280877,303459,327220,352190,37... |
/*
* Copyright (c) 2006-2007 Erin Catto http://www.gphysics.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 the use of this software.
* Permission is granted to anyone to use this software for any pur... |
;/*
; * FreeRTOS Kernel V10.4.4
; * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
; *
; * SPDX-License-Identifier: MIT
; *
; * 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
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x13f59, %rbx
nop
nop
nop
sub $33704, %rdi
mov (%rbx), %rcx
nop
nop
and $36281, %r12
lea addresses_UC_ht+0x10129, %rsi
lea addresses_WC_ht+0xbc75, %rdi
add $16966, %rbp
mov $72, %rcx
rep ... |
; compile with nasm, use as disk image to qemu-system-i386
[BITS 16]
[ORG 0x7c00]
BOOT_DRIVE equ $
entry:
cli ; disable interrupts
jmp 0x0000:start ; set CS:IP to known values
lba dw 0 ; starting sector LBA=0 (incl. boot sector)
retries db 10 ;... |
; ML64 template file
; Compile: uasm64.exe -nologo -win64 -Zd -Zi -c testUasm.asm
; Link: link /nologo /debug /subsystem:console /entry:main testUasm.obj user32.lib kernel32.lib
OPTION WIN64:8
; Include files
include main.inc
include SDL.inc
include SDL_image.inc
; Include libraries
includelib SDL2.lib
includelib SD... |
/**
* Copyright (C) 2014 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usef... |
; A165845: Totally multiplicative sequence with a(p) = 24.
; Submitted by Jon Maiga
; 1,24,24,576,24,576,24,13824,576,576,24,13824,24,576,576,331776,24,13824,24,13824,576,576,24,331776,576,576,13824,13824,24,13824,24,7962624,576,576,576,331776,24,576,576,331776,24,13824,24,13824,13824,576,24,7962624,576,13824,576,13824... |
; lab-2.asm
; Created on: Sep 13, 2018
; Author: Daniel Laden
INCLUDE 'derivative.inc'
XDEF _Startup, main
XREF __SEF_END_SSTACK
TEMP EQU $0075 ;Address of start location of RAM
INDEX EQU $0076
main:
_Startup:
mainPart2:
MOV #$01, TEMP
LDHX #$0000
STHX $60
BRA mainPart3b
mainPart3a:
CLRH
LDX #... |
// Generated from ./SPARQL.g4 by ANTLR 4.7.2
#include "SPARQLLexer.h"
using namespace antlr4;
SPARQLLexer::SPARQLLexer(CharStream *input) : Lexer(input) {
_interpreter = new atn::LexerATNSimulator(this, _atn, _decisionToDFA, _sharedContextCache);
}
SPARQLLexer::~SPARQLLexer() {
delete _interpreter;
}
std::... |
#pragma once
#include "InputBlock.hpp"
#include <cassert>
#include <iostream>
inline void run_tests(const UserIO::InputBlock &ib);
inline void test_InputBlock() {
// A basic unit test of UserIO::InputBlock
// Tests each function, but not all that thoroughly
using namespace UserIO;
InputBlock ib("name1", {{... |
#include "stdafx.h"
BOOST_AUTO_TEST_CASE( to_list_t )
{
using namespace flow;
auto init_list = { 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, -1, -2, -3, -4, -5, -6 };
std::list<int> em;
auto tem = empty<int>() | to_list();
BOOST_CHECK_EQUAL_COLLECTIONS(em.begin(), em.end(), tem.begin(), tem.end(... |
leaw $R0, %A
movw (%A), %S ; S=RAM(%A)
leaw $R1, %A
movw (%A), %D ; D=RAM(%A)
WHILE: ; while D not 0
leaw $END, %A
jle ; termina o while se D=0
nop
leaw $R0, %A
movw (%A), %S ; S=RAM(%A)
leaw $R3, %A
addw (%A), %S, %S ; soma A com S e salva em R3
leaw $R3,%A
movw %S, (%A) ; R0=S
decw %D ... |
_SSAnne8Text8::
text "WIGGLYTUFF: Puup"
line "pupuu!@@"
_SSAnne8BattleText1::
text "I travel alone"
line "on my journeys!"
para "My #MON are my"
line "only friends!"
done
_SSAnne8EndBattleText1::
text "My, my"
line "friends..."
prompt
_SSAnne8AfterBattleText1::
text "You should be"
line "nice to friends... |
; A232950: Number of n X 3 0..3 arrays with no element x(i,j) adjacent to value 3-x(i,j) horizontally, diagonally or antidiagonally, and top left element zero.
; Submitted by Christian Krause
; 9,129,1881,27441,400329,5840289,85202361,1242993681,18133691049,264547403649,3859408908441,56303849204721,821401284620169,1198... |
./out/mulh.out: ファイル形式 elf32-mist32
セクション .text の逆アセンブル:
00000000 <_start>:
0: 0d 40 00 00 wl16 r0,0x0
4: 0d 60 00 0f wh16 r0,0xf
8: 1c 00 00 00 srspw r0
c: 14 30 00 18 br 6c <check>,#al
00000010 <compare>:
10: 00 c0 01 09 cmp r8,r9
14: 14 41 03 e0 b rret,#eq
0000... |
#include <openssl/evp.h>
#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Winvalid-offsetof"
#endif
#include "quiche/quic/core/quic_dispatcher.h"
#include "quiche/quic/test_tools/quic_dispatcher_peer.h"
#include "quiche/quic/test_to... |
SECTION code_clib
SECTION code_stdlib
PUBLIC __dtoa_special_form
EXTERN asm_strcpy, __dtoa_nan_s, __dtoa_inf_s
__dtoa_special_form:
; A = fpclassify = 1 if zero, 2 if nan, 3 if inf
; E = precision
; HL = buffer_dst *
; IX = buffer *
; carry reset
;
; (IX-6) = flags, bit 7 = '... |
; Writes Smash Mouth - All Star lyrics to the output
JMP main
serr:
DB "Error: String too large" ; Variable
DB 0 ; String terminator
s1:
DB "Somebody once told me" ; Variable
DB 0 ; String terminator
s2:
DB "the world is gonna roll" ; string
DB 0
s3:
DB "me. I ain't the sharpest" ; string
DB 0
... |
;;kernel.asm
%define MAGIC 0x1BADB002
%define FLAGS 0x00
%define CHECKSUM -(MAGIC + FLAGS)
%define STACKSIZE 8192
bits 32 ;nasm directive - generate code to run
;on a processor operating in 32 bits
section .text
align 4
multiboot_header:
dd MAGIC ;dd MAGIC
dd FLAGS
dd CHECKSUM ;dd CHECKSU... |
// Copyright (c) 2009 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/installer/util/copy_tree_work_item.h"
#include <shlwapi.h>
#include "base/file_util.h"
#include "chrome/installer/util/logging_insta... |
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR NIRVANA+ ENGINE - by Einar Saukas
;
; See "nirvana+.h" for further details
; ----------------------------------------------------------------
; void NIRVANAP_drawW_raw(unsigned char tile, unsigned char lin, unsigned char c... |
; A107891: a(n) = (n+1)*(n+2)^2*(n+3)^2*(n+4)*(3n^2 + 15n + 20)/2880.
; 1,19,155,805,3136,9996,27468,67320,150645,313027,611611,1134497,2012920,3436720,5673648,9093096,14194881,21643755,32310355,47319349,68105576,96479020,134699500,185562000,252493605,339663051,452103939,595852705,778102480,1007374016,1293704896,164885... |
; sp1_RestoreUpdateStruct
; 04.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
XLIB sp1_RestoreUpdateStruct
; FASTCALL
; Restores a character cell previously removed from
; the sprite engine so that it will again be drawn
; by the engine. Restored cell is not invalidated.
;
; enter : hl = & struct sp1_... |
.686
.model flat,stdcall
option casemap:none
include .\bnlib.inc
include .\bignum.inc
.code
bnMovzx proc uses edi bn:DWORD,dwVal:DWORD
mov ecx,BN_ALLOC_BYTES
mov edi,bn
mov edx,dwVal
xor eax,eax
shr ecx,2
rep stosd ;mov [edi].BN.bSigned,FALSE
mov edi,bn
inc eax
mov [edi].BN.dwSize,eax;set size to 1
mov [e... |
li a0, 0
jal cell_to_coordinates
mv s1, a1
mv s2, a2
li a0, 4
jal cell_to_coordinates
mv s3, a1
mv s4, a2
li a0, 8
jal cell_to_coordinates
mv s5, a1
mv s6, a2
li a7, 10
ecall
.include "../src/select_field.asm" |
#include <stdio.h>
#include <iostream>
#include <fstream>
#include "../currency_train/global.h"
#include "opencv2/opencv.hpp"
#include "opencv2/xfeatures2d.hpp"
using namespace cv;
using namespace cv::xfeatures2d;
using namespace std;
BOWImgDescriptorExtractor bowDE(extractor,new FlannBasedMatcher());
Mat readVocab... |
; A215459: Arises in quick gossiping without duplicate transmission.
; 1,2,4,8,12,16,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110
mov $1,$0
lpb $1,1
mov $1,6
lpe
add $0,1
mul $1,2
add $1,$0
trn $1,6
add $1,$0
|
; A079590: C(6n+1,n).
; 1,7,78,969,12650,169911,2324784,32224114,450978066,6358402050,90177170226,1285063345176,18385569737808,263926640438545,3799541229226200,54834293825867556,793067310934426018,11491919116804935270,166804113767101919220,2424792109500392414475,35296331705271019028646,514416966062717363117175,75055549... |
; A230865: a(n) = n + (sum of digits in base-5 representation of n).
; 0,2,4,6,8,6,8,10,12,14,12,14,16,18,20,18,20,22,24,26,24,26,28,30,32,26,28,30,32,34,32,34,36,38,40,38,40,42,44,46,44,46,48,50,52,50,52,54,56,58,52,54,56,58,60,58,60,62,64,66,64,66,68,70,72,70,72,74,76,78,76,78,80,82,84,78,80,82,84,86,84,86,88,90,92,9... |
; A211253: Number of (n+1) X (n+1) -6..6 symmetric matrices with every 2 X 2 subblock having sum zero and one or two distinct values.
; Submitted by Jamie Morken(s1)
; 21,29,41,61,93,145,229,365,585,941,1517,2449,3957,6397,10345,16733,27069,43793,70853,114637,185481,300109,485581,785681,1271253,2056925,3328169,5385085,... |
bootblock.o: file format elf32-i386
Disassembly of section .text:
00007c00 <start>:
# with %cs=0 %ip=7c00.
.code16 # Assemble for 16-bit mode
.globl start
start:
cli # BIOS enabled interrupts; disable
7c00: fa cli
# Zero data segment... |
; A085438: a(n) = Sum_{i=1..n} binomial(i+1,2)^3.
; 1,28,244,1244,4619,13880,35832,82488,173613,339988,627484,1102036,1855607,3013232,4741232,7256688,10838265,15838476,22697476,31958476,44284867,60479144,81503720,108503720,142831845,186075396,240085548,307008964,389321839,489866464,611890400,759088352,935646833,1146291... |
_zombie: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
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 pus... |
; VCS.asm
; MADS compatible version by JAC! 2010-12-15.
; Based on VCS.H version 1.05, 2003-11-13.
; Last update on 2010-11-11.
; The latest version of this file is availble on
; http://www.wudsn.com/productions/atari2600/ide/VCS.asm
VERSION_VCS = 105
; THIS IS A PRELIMINARY RELEASE OF *THE* "STANDARD" VCS.H
; THIS F... |
; A062966: a(n) = C(3+n, n) + C(4+n, n) + C(5+n, n) + C(6+n, n).
; 4,22,74,195,441,896,1680,2958,4950,7942,12298,18473,27027,38640,54128,74460,100776,134406,176890,229999,295757,376464,474720,593450,735930,905814,1107162,1344469,1622695,1947296,2324256,2760120,3262028,3837750,4495722,5245083,6095713,7058272,8144240,936... |
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x178f1, %rdi
nop
nop
nop
nop
xor $3898, %r8
and $0xffffffffffffffc0, %rdi
movntdqa (%rdi), %xmm4
vpextrq $1, %xmm4, %rbp
nop
nop
nop
and $54731, %rax
lea addresses_WC_ht+0x1315, %rsi
lea addresses... |
.data
prompt1: .asciiz "Enter first integer: "
prompt2: .asciiz "Enter second integer: "
min1: .asciiz "\nMin is: "
max1: .asciiz "\nMax is: "
.text
main:
la $a0, prompt1
li $v0, 4
syscall
li $v0, 5
syscall
move $t0, $v0
la $a0, prompt2
li $v0, 4
syscall
la $v0, 5
syscall
move $t1, $v0
blt $t0, $t1, firstmin
la $... |
; HERE IS MY CODE FOR USING SHL AND ADD COMMANDS TO ACHIEVE
; 02H*26. (AND THE RESULT IS STORED IN BL)
CODE SEGMENT
ASSUME CS:CODE
START: MOV AL,02H
MOV BL,AL
MOV CL,AL
SHL CL,1 ; 02H*2
SHL BL,3 ; 02H*8
ADD BL,CL ; 02H*(2+8)
... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/drs/model/DescribeReplicationConfigurationTemplatesResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringU... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "content/renderer/media/android/media_info_loader.h"
#include "content/test/mo... |
; A260644: Four steps forward, three steps back.
; 0,1,2,3,4,3,2,1,2,3,4,5,4,3,2,3,4,5,6,5,4,3,4,5,6,7,6,5,4,5,6,7,8,7,6,5,6,7,8,9,8,7,6,7,8,9,10,9,8,7,8,9,10,11,10,9,8,9,10,11,12,11,10,9,10,11,12,13,12,11,10,11,12,13,14,13,12,11,12,13,14,15,14,13,12,13,14,15,16,15,14,13,14,15,16,17,16,15,14,15,16,17,18,17,16,15,16,17,... |
;--------------------------------------------------------
; Category 4 Function 79H Translate Scan Code To ASCII
;--------------------------------------------------------
;
;
;
IOKTRANSLATE PROC NEAR
RET
IOKTRANSLATE ENDP
|
; Functions to set resident HOTKEYs V2.03 1988 Tony Tebby QJUMP
section hotkey
xdef hot_res
xdef hot_res1
xdef hot_chp
xdef hot_chp1
xref hot_park
xref hot_thar
xref hot_thact
xref hk_newck
xref hk_newst
xref hk_sprc
xref hk_dflts
xref hot_rter
xref gu_thjmp
xref gu_achpp
xref gu_rchp
xref... |
; A192311: 0-sequence of reduction of (3n-2) by x^2 -> x+1.
; 1,1,8,18,44,92,187,363,688,1276,2330,4200,7493,13253,23272,40614,70504,121828,209663,359535,614576,1047536,1780918,3020688,5112649,8636617,14563592,24517818,41213348,69180716
mov $1,$0
add $0,1
lpb $1
mov $3,$1
sub $1,1
add $4,$3
add $2,$4
add $3,... |
; A215229: Number of length-6 0..k arrays connected end-around, with no sequence of L<n elements immediately followed by itself (periodic "squarefree").
; 0,18,408,2940,12600,40110,105168,240408,496080,945450,1690920,2870868,4667208,7313670,11104800,16405680,23662368,33413058,46299960,63081900,84647640,112029918,146420... |
<%
from pwnlib.shellcraft.thumb.linux import syscall
%>
<%page args="timerid, flags, value, ovalue"/>
<%docstring>
Invokes the syscall timer_settime. See 'man 2 timer_settime' for more information.
Arguments:
timerid(timer_t): timerid
flags(int): flags
value(itimerspec): value
ovalue(itimerspec):... |
;-----------------------------------------------------------------------------
!ct scr
* = $0801
; BASIC stub: "1 SYS 2061"
!by $0b,$08,$01,$00,$9e,$32,$30,$36,$31,$00,$00,$00
;-----------------------------------------------------------------------------
start:
sei
; lda #$35
; sta $01
... |
;;
;; Copyright (c) 2020, 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 the ... |
;Write a program to remove all the repeated characters of each word in a given string
;Sample Test Case:
;INPUT: programming loop functions
;OUTPUT: progamin lop functions
section .data
msg1 : db 'Enter string : '
l1 : equ $-msg1
msg2 : db 'Modified string is : '
l2 : equ $-msg2
newline : db 10
section .bss
string :... |
; A141478: Binomial(n+2,3)*4^3.
; 64,256,640,1280,2240,3584,5376,7680,10560,14080,18304,23296,29120,35840,43520,52224,62016,72960,85120,98560,113344,129536,147200,166400,187200,209664,233856,259840,287680,317440,349184,382976,418880,456960,497280,539904,584896,632320,682240,734720,789824,847616,908160,971520,1037760,11... |
; USB MIDI DESCRIPTORS
#include "usb_defs.h"
; ==========================================================================
; Copyright (C) BITSTREAM 3X - Wave Idea 2004
; ==========================================================================
MIDI_IN_EMBEDDED_JACK_ID equ 1;
MIDI_OUT1_EMBEDDED_JACK_ID equ 2;... |
; double __FASTCALL__ acosh(double x)
SECTION code_fp_math48
PUBLIC cm48_sccz80_acosh
EXTERN am48_acosh
defc cm48_sccz80_acosh = am48_acosh
|
// Copyright (c) 2011-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/matcoin-config.h>
#endif
#include <qt/coincontroldialog.h>
#include <qt/forms/ui... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Object
FILE: objComposite.asm
ROUTINES:
Name Description
---- -----------
GLB ObjCompAddChild
GLB ObjCompRemoveChild
GLB ObjCompF... |
.file "project.c"
.def __main; .scl 2; .type 32; .endef
.section .rdata,"dr"
.LC0:
.ascii "\12Input num1: \0"
.LC1:
.ascii "%d\0"
.LC2:
.ascii "\12Input num2: \0"
.LC3:
.ascii "Maximum = %d\0"
.text
.globl main
.def main; .scl 2; .type 32; .endef
.seh_proc main
main:
pushq %rbp
.seh_pushreg %rbp
movq %rsp... |
object_const_def ; object_event constants
const VIRIDIANCITY_GRAMPS1_GRUMPY
const VIRIDIANCITY_GRAMPS1_OKAY
const VIRIDIANCITY_GRAMPS2
const VIRIDIANCITY_FISHER
const VIRIDIANCITY_YOUNGSTER
const VIRIDIANCITY_COOLTRAINERF
ViridianCity_MapScripts:
db 3 ; scene scripts
scene_script .DummyScene0 ; SCENE_VIRIDIAN... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
// Store
lea addresses_A+0x754b, %rbx
clflush (%rbx)
nop
nop
nop
cmp %rsi, %rsi
movb $0x51, (%rbx)
nop
nop
and $13118, %r10
// REPMOV
lea addresses_A+0x992b, %rsi
lea ... |
MOV R0, #3 ; R0 <- 3
MOV A, #5 ; A <- 5
ADD A, R0 ; A <- A + R0
|
;
; Philips P2000 pseudo graphics routines
; Version for the 2x3 graphics symbols
;
;
; Written by Stefano Bodrato 2014
;
;
; Reset pixel at (x,y) coordinate.
;
;
; $Id: respixl.asm$
;
INCLUDE "graphics/grafix.inc"
SECTION code_clib
PUBLIC respixel
EXTERN div3
EXTERN __gfx_co... |
SECTION code_fp_math32
PUBLIC cm32_sccz80_f32_fam9511
PUBLIC cm32_sccz80_fam9511_f32
EXTERN cm32_sccz80_fsread1, m32_f32_fam9511
.cm32_sccz80_f32_fam9511
call cm32_sccz80_fsread1
jp m32_f32_fam9511
EXTERN cm32_sccz80_fsread1, m32_fam9511_f32
.cm32_sccz80_fam9511_f32
call cm32_sccz80_fsread1
jp m32... |
extern bios_main, bios_init
extern fdd_configure
extern attr_configure, seq_configure, dac_configure, gc_configure, load_font
global start
BITS 16
start:
mov ax, cs
mov ds, ax
mov ax, 0x400
mov ss, ax
mov sp, 0x2000
xor ax, ax
mov es, ax
;call init_pic
call init_fdd
call init_vga
call dword bios_init
cal... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
#include "mace/ops/opencl/image/custom_add.h"
#include "mace/runtimes/opencl/opencl_runtime.h"
namespace mace {
namespace ops {
namespace opencl {
namespace image {
MaceStatus CustomAddKernel::Compute(OpContext *context,
const std::vector<const Tensor *> &input_tensors,
... |
; A114963: a(n) = n^2 + 22.
; 22,23,26,31,38,47,58,71,86,103,122,143,166,191,218,247,278,311,346,383,422,463,506,551,598,647,698,751,806,863,922,983,1046,1111,1178,1247,1318,1391,1466,1543,1622,1703,1786,1871,1958,2047,2138,2231,2326,2423,2522,2623,2726,2831,2938,3047,3158,3271,3386,3503,3622,3743,3866,3991,4118,4247,4... |
;; Programa reaguoja i perduodamus parametrus
;; isveda pagalba, jei nera nurodyti reikiami parametrai
;; source failas skaitomas dalimis
;; destination failas rasomas dalimis
;; jei destination failas jau egzistuoja, jis yra isvalomas
;; jei source failas nenurodytas - skaito iš stdin iki tuščios naujos eil... |
; A039637: Number of steps to fixed point of "n -> n/2 or (n+1)/2 until result is prime".
; 1,1,1,2,1,2,1,3,2,2,1,3,1,2,4,4,1,3,1,3,2,2,1,4,2,2,3,3,1,5,1,5,2,2,4,4,1,2,4,4,1,3,1,3,2,2,1,5,3,3,3,3,1,4,4,4,2,2,1,6,1,2,6,6,3,3,1,3,5,5,1,5,1,2,3,3,5,5,1,5,2,2,1,4,2,2,4,4,1,3,3,3,2,2,6,6,1,4,4,4
lpb $0
mov $2,$0
seq $2... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "transformations/convert_opset1_to_legacy/convert_nms_to_nms_ie.hpp"
#include <memory>
#include <vector>
#include <ngraph/opsets/opset1.hpp>
#include <ngraph_ops/nms_ie.hpp>
#include <ngraph/rt_info.hpp>
void ngraph::pa... |
; WARNING - this is DMA test of "zxnDMA" variant (the ZX Spectrum Next with core
; implemented in FPGA, including the DMA-like mechanics emulating the Zilog DMA)
;
; The zxnDMA is simplified a lot, removing many "gotcha" rules, and doing transfers
; of blocks without the +1/+2 to the set length, to make it less tricky ... |
sll $4,$2,0
srav $3,$6,$3
andi $1,$2,16336
addu $4,$3,$3
srl $5,$3,23
slti $4,$3,-14820
slt $3,$4,$3
and $3,$4,$3
xor $3,$3,$3
and $3,$3,$3
sh $5,4($0)
sw $1,0($0)
addu $6,$6,$3
srlv $4,$1,$3
subu $4,$3,$3
sllv $4,$1,$3
or $0,$4,$3
sh $4,6($0)
addiu $3,$3,-4484
andi $3,$0,53335
xor $3,$5,$3
lb $3,8($0)
xor $4,$4,$3
ori... |
;*!
;* \copy
;* Copyright (c) 2009-2013, Cisco Systems
;* 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 abo... |
#include <algorithm>
#include <string>
#include <vector>
#include <cctype>
#include <iostream>
int main() {
int count = 0;
std::vector<std::string> words{ "An", "ancient", "pond" };
std::for_each(words.cbegin(), words.cend(),
// You're capturing "count" by value; all changes to it are localized and
// v... |
; A035005: Number of possible queen moves on an n X n chessboard.
; 0,12,56,152,320,580,952,1456,2112,2940,3960,5192,6656,8372,10360,12640,15232,18156,21432,25080,29120,33572,38456,43792,49600,55900,62712,70056,77952,86420,95480,105152,115456,126412,138040,150360,163392,177156,191672,206960,223040,239932,257656,276232,... |
/*
* gucefPRODMAN: Product management module
* Copyright (C) 2002 - 2008. Dinand Vanvelzen
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of t... |
;= test: bootman game
;= bin: fa31c08ed88816747c8ed0bc280050688e7d5068607c89c440cd10b90020b401cd10fcb800b88ec0bf8807becb7dbafa05b93c00add1e050b8db01720bb8f90f39d77504b600b004ab5701cfab5f5883e90479e183ef7079d8fbb020e620ebfa60bea97dfe4c04741461cf1e07b80102b90100ba8000bb007ccd13eb83c64404038a44038b14e8e20074038844028a4402... |
; int p_forward_list_alt_empty_fastcall(p_forward_list_alt_t *list)
SECTION code_clib
SECTION code_adt_p_forward_list_alt
PUBLIC _p_forward_list_alt_empty_fastcall
EXTERN asm_p_forward_list_alt_empty
defc _p_forward_list_alt_empty_fastcall = asm_p_forward_list_alt_empty
|
.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+0xf496, %rsi
lea addresses_D_ht+0xe2d2, %rdi
nop
nop
cmp $56109, %rbx
mov $13, %rcx
rep movsq
nop
nop
nop
nop
lfence
lea addresses_D_ht+0x130d6, %rbp
clflush (%rbp)
nop
cmp %rbx... |
_echo: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
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 ... |
/*=============================================================================
Copyright (c) 2005 Joel de Guzman
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)
=============================================... |
;Usage: c_point(struct *pixel)
;Result is true/false
SECTION code_graphics
PUBLIC c_point
PUBLIC _c_point
EXTERN c_pointxy
EXTERN swapgfxbk
EXTERN swapgfxbk1
INCLUDE "graphics/grafix.inc"
.c_point
._c_point
IF __CPU_INTEL__ | __CPU_GBZ80__
pop bc
pop hl
... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r15
push %rcx
push %rsi
// Faulty Load
lea addresses_A+0x2063, %r15
nop
nop
nop
cmp %r14, %r14
movups (%r15), %xmm5
vpextrq $0, %xmm5, %rsi
lea oracles, %r15
and $0xff, %rsi
shlq $12, %rsi
mov (%r15,%rs... |
_ps: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "types.h"
#include "stat.h"
#include "user.h"
#include "fcntl.h"
int main(void){
0: f3 0f 1e fb endbr32
4: 55 push %ebp
5: 89 e5 mov %esp,%ebp
7: 83 e4 f0 ... |
; int ungetc(int c, FILE *stream)
INCLUDE "clib_cfg.asm"
SECTION code_clib
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _ungetc
EXTERN asm_ungetc
_ungetc:
pop af
pop hl
pop ix
push hl
push hl
push af
jp asm_un... |
/*
* Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
* Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Fou... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 18.00.21005.1
TITLE C:\Users\sickness\Documents\Visual Studio 2013\Projects\sc\sc\sc.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB OLDNAMES
PUBLIC _ExecPayload
PUBLIC _GetProcAddressByHash
PUBLIC _RtlSecureZeroMemory
; Func... |
; A082784: Characteristic function of multiples of 7.
; 1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0
mod $0,7
pow $1,$0
|
version https://git-lfs.github.com/spec/v1
oid sha256:fe4921d0c54a4c0ea6687b6ffcf8e7415fc12000b5216b802d52734afc179bf8
size 2697
|
#pragma once
#include "../Component.hpp"
#include "../../Physics/PhysicsWorld2D.hpp"
namespace ln {
class Collision2D;
class RigidBody2DComponent;
using Collision2DEventHandler = Delegate<void(Collision2D*)>;
class Collision2D
: public Object
{
public:
/** 自分自身と衝突している他の WorldObject */
WorldObject* worldOb... |
#include "envoy/http/metadata_interface.h"
#include "common/buffer/buffer_impl.h"
#include "common/common/logger.h"
#include "common/common/random_generator.h"
#include "common/http/http2/metadata_decoder.h"
#include "common/http/http2/metadata_encoder.h"
#include "test/test_common/logging.h"
#include "gmock/gmock.h... |
/*******************************************************************************
# Copyright (C) 2021 Xilinx, Inc
#
# 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.apach... |
; A315742: Coordination sequence Gal.5.302.5 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,6,12,18,23,28,33,38,44,50,56,62,68,74,79,84,89,94,100,106,112,118,124,130,135,140,145,150,156,162,168,174,180,186,191,196,201,206,212,218,... |
; A179337: Positive integers of the form (6*m^2 + 1)/11.
; 5,35,107,197,341,491,707,917,1205,1475,1835,2165,2597,2987,3491,3941,4517,5027,5675,6245,6965,7595,8387,9077,9941,10691,11627,12437,13445,14315,15395,16325,17477,18467,19691,20741,22037,23147,24515,25685,27125,28355,29867,31157,32741,34091,35747,37157,38885,403... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.