text
stringlengths
1
1.05M
# multiply 2 numbers together # multiply r0 by r1 and store # the result in r2 # input set r0 23 set r1 11 # output set r2 0 # loops to do for multiplication mov r0 r5 # loop decrementer set r6 -1 loop: jmpz r5 end add r1 r2 r2 add r6 r5 r5 jmp loop end: set r3 0 set r4 0 set r5 0 set r6 0 halt
org 0x7c00 ; Some const value BaseOfStack equ 0x7c00 BaseOfLoader equ 0x9000 OffsetOfLoader equ 0x0100 jmp short Boot_Start nop %include "FAT.inc" Boot_Start: ; Init stack mov ax, cs mov ds, ax mov es, ax mov ss, ax mov sp, BaseOfStack ; Clear screen mov ax, 0600h mov bx, 0700h mov cx, 000...
; A215137: a(n) = 17*n + 1. ; 1,18,35,52,69,86,103,120,137,154,171,188,205,222,239,256,273,290,307,324,341,358,375,392,409,426,443,460,477,494,511,528,545,562,579,596,613,630,647,664,681,698,715,732,749,766,783,800,817,834,851,868,885,902,919,936,953,970,987,1004,1021,1038,1055,1072,1089,1106,1123,1140,1157,1174,1191,1...
; *************************************************************************************** ; *************************************************************************************** ; ; Name : kernel.asm ; Author : Paul Robson (paul@robsons.org.uk) ; Date : 16th November 2018 ; Purpose : ColorForth Kernel ; ; ***...
/* brass_cursor.cc: Btree cursor implementation * * Copyright 1999,2000,2001 BrightStation PLC * Copyright 2002,2003,2004,2005,2006,2007,2008,2009,2010,2012 Olly Betts * * 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...
// Copyright (c) 2011-2016 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/herbsters-config.h" #endif #include "fs.h" #include "intro.h" #include "ui_intro...
// Copyright (c) 2012 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 "content/renderer/media/rtc_video_capture_delegate.h" #include "base/bind.h" RtcVideoCaptureDelegate::RtcVideoCaptureDelegate( const me...
// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #include <exceptions/exceptions.h> #include ...
/****************************************************************************** * * Copyright (c) 2019, the Perspective Authors. * * This file is part of the Perspective library, distributed under the terms of * the Apache License 2.0. The full license can be found in the LICENSE file. * */ #ifdef PSP_ENABLE_PY...
.syntax unified .cpu cortex-m4 .eabi_attribute 27, 3 .eabi_attribute 28, 1 .fpu fpv4-sp-d16 .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 1 .eabi_attribute 30, 4 .eabi_attribute 18, 4 .thumb .file "Hello_wo...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x1263d, %r11 nop nop and %rax, %rax mov (%r11), %rdx nop nop nop nop xor $43124, %rcx lea addresses_UC_ht+0x72cf, %rsi lea addresses_WC_ht+0x185c5, %rdi nop nop nop nop inc %r...
; Source name : RANDTEST.ASM ; Executable name : RANDTEST ; Version : 2.0 ; Created date : 12/1/1999 ; Last update : 5/22/2009 ; Author : Jeff Duntemann ; Description : A demo of Unix rand & srand using NASM 2.05 ; ; Build using these commands: ; nasm -f elf -g -F stabs randte...
#include "rpcprotocol.h" #include "net.h" #include "net/cnodestats.h" #include "cblock.h" #include "ctransaction.h" #include "ctxout.h" #include "ctxin.h" #include "main_const.h" #include "cpubkey.h" #include "init.h" #include "cwallet.h" #include "cmasternodepayments.h" #include "util.h" #include "chainpa...
LDA #$37 BPL LABEL OUT A LABEL: LDA #$FF OUT A
; A144917: a(n) is the maximal odd value attained by A144916(n). ; 1,3,7,13,19,25,31,37,43,49,55,61,67,73,79,85,91,97,103,109,115,121,127,133,139,145,151,157,163,169,175,181,187,193,199,205,211,217,223,229,235,241,247,253,259,265,271,277,283,289,295,301,307,313,319,325,331 mul $0,2 add $0,1 mov $1,$0 trn $0,4 mul $0,2...
extern UnsafeMemoryCopy: PROC .code Md5DotNet PROC push r15 push r14 push r13 push r12 push rdi push rsi push rbp push rbx sub rsp,78h mov rsi,rcx lea rdi,[rsp+38h] mov ecx,10h xor eax,eax rep stos dword ptr [rdi]...
; ; Copyright (C) 2021 by Intel Corporation ; ; Permission to use, copy, modify, and/or distribute this software for any ; purpose with or without fee is hereby granted. ; ; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH ; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHA...
//===================================================== // File : portable_perf_analyzer.hh // Author : L. Plagne <laurent.plagne@edf.fr)> // Copyright (C) EDF R&D, mar d�c 3 18:59:35 CET 2002 // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> //==================================================...
<% from pwnlib.shellcraft.aarch64.linux import syscall %> <%page args="timerid"/> <%docstring> Invokes the syscall timer_getoverrun. See 'man 2 timer_getoverrun' for more information. Arguments: timerid(timer_t): timerid </%docstring> ${syscall('SYS_timer_getoverrun', timerid)}
; ; jdsample.asm - upsampling (64-bit SSE2) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; Copyright 2009 D. R. Commander ; ; Based on ; x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright notice in jsimdext.inc...
CHANNEL1 = 4 CHANNEL2 = 3 CHANNEL3 = 6 PINMASK = ( (1<<CHANNEL1) | (1<<CHANNEL2) | (1<<CHANNEL3) ) PINMASK12 = ( (1<<CHANNEL1) | (1<<CHANNEL2) ) ; ; STATE MACHINE: ; ; .macro softpwm_init ; mov a, #0 ; mov pa, a ; mov a, #( (1<<CHANNEL1) | (1<<CHANNEL2) | (1<<CHANNEL3) ) ; mov pac, a clear out clear off1 c...
; CALLER linkage for function pointers SECTION code_clib PUBLIC im2_InstallISR PUBLIC _im2_InstallISR EXTERN im2_InstallISR_callee EXTERN ASMDISP_IM2_INSTALLISR_CALLEE .im2_InstallISR ._im2_InstallISR pop af pop de pop hl push hl push de push af jp im2_InstallISR_callee + ASMDISP_IM2_INSTAL...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r9 push %rbp push %rbx push %rcx push %rsi // Store lea addresses_RW+0x1a961, %rbx nop nop sub $49431, %r10 mov $0x5152535455565758, %r9 movq %r9, %xmm6 vmovups %ymm6, (%rbx) // Exception!!! nop nop no...
; A022931: Number of e^m between Pi^n and Pi^(n+1). ; 1,1,1,1,1,1,2,1,1,1,1,1,1,2,1,1,1,1,1,1,2,1,1,1,1,1,1,2,1,1,1,1,1,1,2,1,1,1,1,1,1,2,1,1,1,1,1,1,2,1,1,1,1,1,1,2,1,1,1,1,1,1,2,1,1,1,1,1,1,2,1,1,1,1,1,1,2,1,1,1,1,1,2,1,1,1,1,1,1,2,1,1,1,1,1,1,2,1,1 mov $2,$0 div $0,80 mov $1,1031 add $2,$0 add $2,1066 mov $3,1031 l...
; A145696: Numbers Y such that 111*Y^2+37 is a square. ; Submitted by Jon Maiga ; 7,4137,2440823,1440081433,849645604647,501289466660297,295759935683970583,174497860764075983673,102953442090869146396487,60742356335752032297943657,35837887284651608186640361143,21144292755588113078085515130713,124750968879097020644622672...
// files.cpp -- saving to a file #include <iostream> // not needed for many systems #include <fstream> #include <string> #include <sstream> int main() { using namespace std; string filename = "file"; // create output stream object for new file and call it fout int i; for (i = 0; i < 140; ...
; A288599: a(n) = 2*a(n-1) - a(n-4) for n >= 4, where a(0) = 2, a(1) = 4, a(2) = 6, a(3) = 10, a(4) = 16. ; 2,4,6,10,16,28,50,90,164,300,550,1010,1856,3412,6274,11538,21220,39028,71782,132026,242832,446636,821490,1510954,2779076,5111516,9401542,17292130,31805184,58498852,107596162,197900194,363995204,669491556,12313869...
section .multiboot_header header_start: dd 0xe85250d6 ; multiboot2 ; architecture dd 0 ; protected mode i386 dd header_end - header_start ; checksum dd 0x100000000 - (0xe85250d6 + 0 + (header_end - header_start)) ; end tag dw 0 dw 0 dd 8 header_end:
// RUN: %clang_cc1 -triple x86_64-apple-macosx10.13.99 -verify -fsyntax-only -std=c++11 -fcxx-exceptions -fexceptions -DUNDERALIGNED %s // RUN: %clang_cc1 -triple arm64-apple-ios10 -verify -fsyntax-only -std=c++11 -fcxx-exceptions -fexceptions -DUNDERALIGNED %s // RUN: %clang_cc1 -triple arm64-apple-tvos10 -verify -fsy...
//: ---------------------------------------------------------------------------- //: Copyright (C) 2019 Verizon. All Rights Reserved. //: All Rights Reserved //: //: \file: sx_scopes.cc //: \details: TODO //: \author: Reed P. Morrison //: \date: 09/30/2019 //: //: Licensed under the Apache License, Version 2....
;Copyright 2013-2015 by Explorer Developers. ;made by Lab Explorer Developers<1@GhostBirdOS.org> ;Explorer x86 function switch to ;Explorer/arch/x86/kernel/task/switch_to.asm ;version:Alpha ;1/11/2015 1:02 AM %define TASK_STACK 8 global switch_to extern current extern printk extern print_mem [bits 32] ;切换任务函数 ;void...
Name: kart-ppu-e.asm Type: file Size: 21779 Last-Modified: '1992-11-18T00:37:59Z' SHA-1: 82752ABDD4C6F4365C472B77D4D45FF029B6AAA5 Description: null
global added_char extern puts section .text ; input: rdi = s1, rsi = s2 ; output: al ; callee saved registers: rbx, rsp, rbp, r12-r15 added_char: sub rsp, 400h ; allocate 100h dword table on stack ; init character counter table xor rax, rax mov ecx, 100h/2 ; init the 100h dwords with 100h/2 qw...
; ; Drawbox sub for drawb(), undrawb(), xordrawb() ; ; Generic high resolution version ; ; ; $Id: w_drawbox.asm $ ; IF !__CPU_INTEL__ && !__CPU_GBZ80__ SECTION code_graphics PUBLIC drawbox ; IN: HL,DE = (x,y). HL' = width, DE' = height .drawbox ; Decrement width/height by 1 dec de dec ...
[bits 32] [extern IsrHandler] ; Needed that the C code can call the Assembler function "IdtFlush" [GLOBAL IdtFlush] [GLOBAL RaiseInterrupt] ; The following macro emits the ISR assembly routine %macro ISR_NOERRORCODE 1 [GLOBAL Isr%1] Isr%1: cli push byte 0 push byte %1 jmp IsrCo...
/**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2014 Chukong Technologies http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (th...
; A005915: Hexagonal prism numbers: a(n) = (n + 1)*(3*n^2 + 3*n + 1). ; 1,14,57,148,305,546,889,1352,1953,2710,3641,4764,6097,7658,9465,11536,13889,16542,19513,22820,26481,30514,34937,39768,45025,50726,56889,63532,70673,78330,86521,95264,104577,114478,124985,136116,147889,160322,173433,187240,201761,217014,233017,24978...
// Copyright 2019 The Fuchsia 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 <gtest/gtest.h> #include "src/developer/debug/debug_agent/integration_tests/message_loop_wrapper.h" #include "src/developer/debug/debug_agent/int...
PUBLIC txtwrchar ; fastcall so in HL! .txtwrchar ld a, l jp 0xB83C
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================================ ** ** Source: test17.c ** ** Purpose: Tests swscanf with floats (compact notation, uppercase) ** ** **...
; ; Memotech MTX stdio ; ; getkey() Wait for keypress ; ; Stefano Bodrato - Aug. 2010 ; ; ; $Id: fgetc_cons.asm,v 1.3 2016/06/12 17:32:01 dom Exp $ ; SECTION code_clib PUBLIC fgetc_cons PUBLIC _fgetc_cons .fgetc_cons ._fgetc_cons call $79 jr z,fgetc_cons ld h,0 ld l,a ret
; A195146: Concentric 16-gonal numbers. ; 0,1,16,33,64,97,144,193,256,321,400,481,576,673,784,897,1024,1153,1296,1441,1600,1761,1936,2113,2304,2497,2704,2913,3136,3361,3600,3841,4096,4353,4624,4897,5184,5473,5776,6081,6400,6721,7056,7393,7744,8097,8464,8833,9216,9601,10000,10401,10816,11233,11664,12097,12544,12993,1345...
#include <cstdio> #define NMAX 10000 int n; int a[NMAX + 10]; int main() { scanf("%d", &n); for (int i = 1; i <= n; i++) scanf("%d", a + i); bool ok = true; for (int i = 2; i <= n; i++) ok &= a[1] >= a[i]; puts(ok ? "S" : "N"); return 0; }
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ABI40_0_0Scheduler.h" #include <glog/logging.h> #include <ABI40_0_0jsi/ABI40_0_0jsi.h> #include <ABI40_0_0React/core/La...
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "addressbookpage.h" #include "ui_addressbookpage.h" #include "addresstablemodel.h" #include "optionsmodel.h" #includ...
; A198954: Expansion of the rotational partition function for a heteronuclear diatomic molecule. ; 1,3,0,5,0,0,7,0,0,0,9,0,0,0,0,11,0,0,0,0,0,13,0,0,0,0,0,0,15,0,0,0,0,0,0,0,17,0,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,25,0,0,0,0,0,0,0,0,0,0,0,0,27,0,0,0,0,0,0,0,0,0,0,0,0,0,29...
addi x1 x0 1 addi x1 x0 1 addi x1 x0 1 addi x1 x0 1 addi x1 x0 1 addi x1 x0 1 addi x1 x0 1 addi x1 x0 1 addi x1 x0 1 addi x1 x0 1 addi x1 x0 1 addi x1 x0 1 addi x1 x0 1 addi x1 x0 1 addi x1 x0 1 addi x1 x0 1 jal x0 EXIT EXIT:
Route4_Object: db $2c ; border block def_warps warp 11, 5, 0, MT_MOON_POKECENTER warp 18, 5, 0, MT_MOON_1F warp 24, 5, 7, MT_MOON_B1F def_signs sign 12, 5, 4 ; PokeCenterSignText sign 17, 7, 5 ; Route4Text5 sign 27, 7, 6 ; Route4Text6 def_objects object SPRITE_COOLTRAINER_F, 9, 8, WALK, ANY_DIR, 1 ;...
_wait_one: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "fcntl.h" #include "syscall.h" #include "traps.h" #include "memlayout.h" int main(int argc, char ** argv){ 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 a...
#include <nuschl/util/primitives_impl.hpp> #include <algorithm> namespace nuschl::primitive_impl { argument_checker operator&&(const argument_checker &a, const argument_checker &b) { return argument_checker( checker_function([a, b](const std::vector<nuschl::s_exp_ptr> &args) { ...
.MODEL SMALL .STACK 100H .CODE MAIN PROC MOV AH, 01H INT 21H MOV BL, AL MOV AH, 02H MOV DL, 0AH INT 21H MOV DL, 0DH INT 21H MOV DL, BL MOV AH, 02H INT 21H MOV AH, 4CH ...
; A131119: a(n) = (-1)^n * Sum_{i=1..floor(n/2)} i * floor(n/(n-i)). ; 0,0,2,-1,5,-3,9,-6,14,-10,20,-15,27,-21,35,-28,44,-36,54,-45,65,-55,77,-66,90,-78,104,-91,119,-105,135,-120,152,-136,170,-153,189,-171,209,-190,230,-210,252,-231,275,-253,299,-276,324,-300,350,-325,377,-351,405 lpb $0 mov $2,$0 sub $0,2 seq $...
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/04/Fill.asm // Runs an infinite loop that listens to the keyboard input. // When a key is pressed (any key), the program blackens the screen, // i.e. writes...
ENDIF End
/*************************************************************** 网易17年校招:地牢逃脱(广搜) 给定一个n行m列的地牢,其中'.'表示可以通行的位置,'X'表示不可通行的障碍,牛牛从(x0,y0)位置出发, 遍历这个地牢,和一般的游戏所不同的是,他每一步只能按照一些指定的步长遍历地牢, 要求每一步都不可以超过地牢的边界,也不能到达障碍上。地牢的出口可能在任意某个可以通行的位置上。 牛牛想知道最坏情况下,他需要多少步才可以离开这个地牢。 - 输入描述: 每个输入包含1个测试用例。 每个测试用例的第一行包含两个整数n和m(1 <= n, m <= 50),表...
; A326395: Expansion of Sum_{k>=1} x^(2*k) * (1 + x^k) / (1 - x^(3*k)). ; 0,1,1,1,1,3,0,2,2,2,1,4,0,2,3,2,1,5,0,3,2,2,1,6,1,2,3,2,1,6,0,3,3,2,2,7,0,2,2,4,1,6,0,3,5,2,1,7,0,3,3,2,1,7,2,4,2,2,1,9,0,2,4,3,2,6,0,3,3,4,1,10,0,2,4,2,2,6,0,5,4,2,1,8,2,2,3,4,1,10,0,3,2,2,2,9,0,3,5,4 add $0,1 mov $2,$0 lpb $0 mov $3,$2 mov...
;; These are the colour values available on ZX Spectrum, if you for example want ;; to have green ink on red paper you can just use (INK_GREEN+PAPER_RED) as the ;; value and store it to the corresponding screen memory address. (which you can ;; get by calling FindColor routine later on) BLACK equ %00000000 BLUE equ %00...
; A098665: a(n) = Sum_{k = 0..n} binomial(n,k) * binomial(n+1,k+1) * 4^k. ; Submitted by Jon Maiga ; 1,6,43,332,2661,21810,181455,1526040,12939145,110413406,947052723,8157680228,70518067309,611426078346,5315138311383,46308989294640,404274406256145,3535479068797110,30966952059306555,271616893912241532,238541259494363378...
// Find Sum of Digits of a Number using while Loop #include<iostream> using namespace std; int main() { int num, rem, sum=0; cout<<"Enter the Number: "; cin>>num; while(num>0) { rem = num%10; sum = sum+rem; num = num/10; } cout<<"\nSum of Digits = "<<sum; cout<<...
; ; jquant.asm - sample data conversion and quantization (3DNow! & MMX) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; ; Based on the x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright notice in jsimdext.inc ; ...
INCLUDE "config_private.inc" SECTION code_clib SECTION code_math PUBLIC l_fast_mulu_32_32x32 EXTERN l_fast_mulu_40_32x8, l0_fast_mulu_40_32x8, l0_fast_mulu_32_24x8 EXTERN l_fast_mulu_32_16x16, l_fast_mulu_32_24x16 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_IMATH_FAST & $80 EXTERN error_mulu_overflow_mc ELS...
; make array to new list include win1_mac_oli section utility xdef ut_ar2nlst ;+++ ; make array to new list ; ; Entry Exit ; d1.l array type (0=abs,1=rel) preserved ; a0 array descriptor preserved ; a1...
@256 D=A @SP M=D @RET_9F9CCF12DB D=A @SP A=M M=D @SP M=M+1 @LCL D=M @SP A=M M=D @SP M=M+1 @ARG D=M @SP A=M M=D @SP M=M+1 @THIS D=M @SP A=M M=D @SP M=M+1 @THAT D=M @SP A=M M=D @SP M=M+1 @SP D=M @5 D=D-A @ARG M=D @SP D=M @LCL M=D @Sys.init 0;JMP (RET_9F9CCF12DB) //Sys (Sys.init) @4000 D=A @SP A=M M=D @SP M=M+1 @THIS D=A...
jmp @main main: mov -3 swp mov -4 add swp mov 18 sub shl jnz @skip nop skip: shr hlt
/* * Clock.asm * * Created: 13.01.2014 20:11:02 * Author: Beni */
; int fputc(int c, FILE *stream) INCLUDE "clib_cfg.asm" SECTION code_clib SECTION code_stdio ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $02 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC fputc EXTERN asm_fputc fputc: pop af pop ix pop de push de push hl push af jp asm_fputc...
; A024643: n written in fractional base 7/6. ; Submitted by Jon Maiga ; 0,1,2,3,4,5,6,60,61,62,63,64,65,66,650,651,652,653,654,655,656,6540,6541,6542,6543,6544,6545,6546,65430,65431,65432,65433,65434,65435,65436,654320,654321,654322,654323,654324,654325,654326,6543210,6543211,6543212,6543213,6543214,6543215,6543216,654...
; Copyright (c) 2004, Intel Corporation. All rights reserved.<BR> ; This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution. The full text of the license may be found at ...
; char *_memupr_(void *p, size_t n) SECTION code_string PUBLIC _memupr_ EXTERN asm__memupr _memupr_: pop af pop bc pop hl push hl push bc push af jp asm__memupr
name "hex-bin" org 100h ; load binary value: ; (hex: 5h) mov al, 00000101b ; load hex value: mov bl, 0ah ; load octal value: ; (hex: 8h) mov cl, 10o ; 5 + 10 = 15 (0fh) add al, bl ; 15 - 8 = 7 sub al, cl ; print result in binary: mov bl, al mov cx, 8 print: mov ah, 2 ; print funct...
db DEX_ABRA ; pokedex id db 25 ; base hp db 20 ; base attack db 15 ; base defense db 90 ; base speed db 105 ; base special db PSYCHIC ; species type 1 db PSYCHIC ; species type 2 db 200 ; catch rate db 79 ; base exp yield INCBIN "pic/ymon/abra.pic",0,1 ; 55, sprite dimensions dw AbraPicFront dw AbraPicBack ; attacks kn...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/mediapackage-vod/MediaPackageVodEndpoint.h> #include <aws/core/utils/memory/stl/AWSStringStream.h> #include <aws/core/utils/HashingUtils.h> using namespace Aws; using namespace Aws::Med...
; A027657: Expansion of (1+4*x)/(1-34*x+x^2). ; Submitted by Jon Maiga ; 1,38,1291,43856,1489813,50609786,1719242911,58403649188,1984004829481,67397760553166,2289539853978163,77776957274704376,2642127007485970621,89754541297248296738,3049012277098956118471 lpb $0 sub $0,1 add $3,1 mov $1,$3 mul $1,32 add $2,...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
#include "wantbuyparam.hpp" #include "servercommon/servercommon.h" OLD_USE_INTERNAL_NETWORK(); bool WantBuyParam::Serialize(TLVSerializer &outstream) const { bool ret = outstream.Push(count); if (!ret) return false; for (int i = 0; i < count && i < MAX_WANT_BUY_COUNT; ++i) { ret = outstream.Push(wantbuy_list[...
/* * FreeRTOS Kernel V10.2.1 * Copyright (C) 2019 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 restriction, includ...
;**************************************************************************** ;* ;* SciTech OS Portability Manager Library ;* ;* ======================================================================== ;* ;* The contents of this file are subject to the SciTech MGL Public ;* License Version 1.0 (...
; A052459: a(n) = n*(2*n^2 + 1)*(n^2 + 1)/6. ; 1,15,95,374,1105,2701,5775,11180,20049,33835,54351,83810,124865,180649,254815,351576,475745,632775,828799,1070670,1366001,1723205,2151535,2661124,3263025,3969251,4792815,5747770,6849249,8113505,9557951,11201200,13063105,15164799,17528735,20178726,23139985,26439165,30104399...
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-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 source code must retain the above copyright noti...
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: ld a, 00 ldff(ff), a ld a, 30 ldff(00), a ld a, 01 ldff(4d), a stop, 00 ld a, ff ldff(45), a ld b, 96 call lwaitly_b ld a, 80 ldff(68), a ld a, ff ld c, 69 ldff(c), a ldff(c), a ldff(c), a ldff(c), a ldff(c), a...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x17306, %rbp nop add $35888, %rdi mov $0x6162636465666768, %rcx movq %rcx, %xmm3 movups %xmm3, (%rbp) nop nop nop dec %r11 lea addresses_UC_ht+0x1c606, %r14 clflush (%r14) nop...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "unicodeutil.h" #include <cstdlib> #include "unicodeutil-charprops.cpp" #include "unicodeutil-lowercase.cpp" namespace { class Initialize { public: Initialize() { Fast_UnicodeUtil::InitTables(); } }...
// Copyright 2018 The Fuchsia 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 "mtk-thermal.h" #include <lib/device-protocol/pdev.h> #include <zircon/rights.h> #include <zircon/threads.h> #include <cmath> #include <memory> ...
// Copyright 2021 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 "net/dns/dns_config_service_linux.h" #include <netdb.h> #include <netinet/in.h> #include <resolv.h> #include <sys/socket.h> #include <sys/types....
; A303331: a(n) is the minimum size of a square integer grid allowing all triples of n points to form triangles of different areas. ; Submitted by Jamie Morken(l1) ; 0,1,1,2,4,6,9,11,15,19 pow $0,2 add $0,30 mul $0,5 div $0,22 sub $0,6
;------------------------------------------------------------------------------ ; @file ; Main routine of the pre-SEC code up through the jump into SEC ; ; Copyright (c) 2008 - 2009, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ;------------------------------------...
; script start: ; attribution ; value real 3.7 set r2 3700 ; a: r3 set r3 0 store r3 r2 ; asm ; a: r2 set r2 0 load r2 r2 writenumber r2 stop
; A081065: Numbers n such that n^2 = (1/3)*(n+floor(sqrt(3)*n*floor(sqrt(3)*n))). ; 2,24,330,4592,63954,890760,12406682,172802784,2406832290,33522849272,466913057514,6503259955920,90578726325362,1261598908599144,17571805994062650,244743685008277952,3408839784121828674,47479013292697323480,661297346313640700042 add $0,...
; Open IP V1.01  2004 Marcel Kilgus section ip xdef ip_open xref io_ckchn include 'dev8_keys_err' include 'dev8_keys_qlv' include 'dev8_smsq_qpc_ip_data' include 'dev8_smsq_qpc_keys' stk.reg reg d3/a0 stk.a0 equ 4 ip_open movem.l stk.reg,-(sp) move.l #$dfdfdfdf,d0 move.w (a0)+,d2 and.l (a0)+,d0 ...
assume cs:codesg codesg segment s: db 4096 dup (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) jmp s ; jmp short s jmp near ptr s jmp far ptr s codesg ends end s
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x1592b, %rax nop and $31565, %rbx movups (%rax), %xmm1 vpextrq $1, %xmm1, %r15 nop nop cmp $37781, %rsi lea addresses_WC_ht+0xb713, %rsi lea addresses_D_ht+0x11193, %rdi nop nop sub $6...
; A158058: a(n) = 16*n^2 - 2*n. ; 14,60,138,248,390,564,770,1008,1278,1580,1914,2280,2678,3108,3570,4064,4590,5148,5738,6360,7014,7700,8418,9168,9950,10764,11610,12488,13398,14340,15314,16320,17358,18428,19530,20664,21830,23028,24258,25520,26814,28140,29498,30888,32310,33764,35250,36768,38318,39900,41514,43160,44838,46...
; A066446: Number of unordered divisor pairs of n. ; 0,1,1,3,1,6,1,6,3,6,1,15,1,6,6,10,1,15,1,15,6,6,1,28,3,6,6,15,1,28,1,15,6,6,6,36,1,6,6,28,1,28,1,15,15,6,1,45,3,15,6,15,1,28,6,28,6,6,1,66,1,6,15,21,6,28,1,15,6,28,1,66,1,6,15,15,6,28,1,45,10,6,1,66,6,6,6,28,1,66,6,15,6,6,6,66,1,15,15,36 seq $0,5 ; d(n) (also called...
.MODEL SMALL .STACK 100H .DATA CR EQU 0DH LF EQU 0AH X DB ? Y DB ? Z DB ? TEMP DB ? MSG1 DB 'ENTER FIRST NUMBER: $' MSG2 DB CR,LF,'ENTER SECOND NUMBER: $' MSG3 DB CR,LF,'ENTER THIRD NUMBER: $' MSG4 DB CR,LF,'SECOND LARGEST NUMBER : $' MSG5 DB CR,LF,'ALL THE...
;CodeVisionAVR C Compiler V3.12 Advanced ;(C) Copyright 1998-2014 Pavel Haiduc, HP InfoTech s.r.l. ;http://www.hpinfotech.com ;Build configuration : Debug ;Chip type : ATmega16 ;Program type : Application ;Clock frequency : 8.000000 MHz ;Memory model : Small ;Optim...
; A129654: Number of different ways to represent n as general polygonal number P(m,r) = 1/2*r*((m-2)*r-(m-4)) = n>1, for m,r>1. ; 1,2,2,2,3,2,2,3,3,2,3,2,2,4,3,2,3,2,2,4,3,2,3,3,2,3,4,2,3,2,2,3,3,3,5,2,2,3,3,2,3,2,2,5,3,2,3,3,2,4,3,2,3,4,2,3,3,2,3,2,2,3,4,3,5,2,2,3,4,2,3,2,2,4,3,2,4,2,2,5,3,2,3,3,2,3,3,2,3,4,3,3,3,3,4,...
#include "StdAfx.h" #include "MGetOptions.h" #include "MVersionConstraint.h" #include "MOpTimeoutController.h" #include "MSecondaryTarget.h" #include <string> using namespace std; #include "skconstants.h" #include "SKGetOptions.h" #include "SKVersionConstraint.h" #include "SKOpTimeoutController.h" #include "SKSecondar...
; ; Copyright (C) 2009-2015 Intel Corporation. ; SPDX-License-Identifier: MIT ; PUBLIC SetXmmScratchesFun extern xmmInitVals:dword .code SetXmmScratchesFun PROC lea rax,xmmInitVals movdqu xmm0, xmmword ptr [rax] movdqu xmm1, xmmword ptr [rax]+32 movdqu xmm2, xmmword ptr [rax]+64 movdqu xmm3, xmmwo...
/* FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. This file is part of the FreeRTOS distribution. FreeRTOS is free software; you can redistribute it and/or modify it under the terms of...
; A103154: Each letter appears an even number of times in the English names for 1 through n taken together (names without "and"). ; 119,139,159,179,199,319,339,359,379,399,519,539,559,579,599,719,739,759,779,799,919,939,959,979,999,1119,1139,1159,1179,1199,1319,1339,1359,1379,1399,1519,1539,1559,1579,1599,1719,1739,175...