text
stringlengths
1
1.05M
//===- odla_compute.cc ----------------------------------------------------===// // // Copyright (C) 2019-2020 Alibaba Group Holding Limited. // Copyright (c) 2020 Graphcore Ltd. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance ...
;* ;* Gameboy Hardware definitions ;* ;* Based on Jones' hardware.inc ;* And based on Carsten Sorensen's ideas. ;* ;* Rev 1.1 - 15-Jul-97 : Added define check ;* Rev 1.2 - 18-Jul-97 : Added revision check macro ;* Rev 1.3 - 19-Jul-97 : Modified for RGBASM V1.05 ;* Rev 1.4 - 27-Jul-97 : Modified for new subrout...
/* * Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org> * 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 noti...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0xa6de, %r11 nop nop nop nop nop sub %rbx, %rbx movl $0x61626364, (%r11) nop nop inc %r8 lea addresses_normal_ht+0x10bd8, %rsi lea addresses_A_ht+0xc55e, %rdi nop nop nop n...
; A017128: a(n) = (8*n + 5)^4. ; 625,28561,194481,707281,1874161,4100625,7890481,13845841,22667121,35153041,52200625,74805201,104060401,141158161,187388721,244140625,312900721,395254161,492884401,607573201,741200625,895745041,1073283121,1275989841,1506138481,1766100625,2058346161,2385443281,2750058481,3154956561,360300...
[bits 32] os.hopToRealMode equ realModeExec ; for backwards compatibility os_RealMode_functionPointer equ rmfunc rmfunc : dd 0x0 realModeExec : pusha cli call rmeDisablePIC cli mov [rmeStackSave], esp sgdt [rmeGDTsave] lgdt [RMGDT] jmp rmCodeOffs:rmeBeginRealMode .ret : popa ret [bits 16] rm...
; A347149: Dirichlet g.f.: Product_{primes p} (1 + 3/p^s). ; Submitted by Christian Krause ; 1,3,3,0,3,9,3,0,0,9,3,0,3,9,9,0,3,0,3,0,9,9,3,0,0,9,0,0,3,27,3,0,9,9,9,0,3,9,9,0,3,27,3,0,0,9,3,0,0,0,9,0,3,0,9,0,9,9,3,0,3,9,0,0,9,27,3,0,9,27,3,0,3,9,0,0,9,27,3,0,0,9,3,0,9,9,9,0,3,0,9,0,9,9,9,0,3,0,0,0 add $0,1 mov $1,1 mov...
; A300850: Number of 6-cycles in the n-odd graph. ; 0,0,10,105,840,5775,36036,210210,1166880,6235515,32332300,163601438,811246800,3954828150,19001896200,90162058500,423160594560,1967035576275,9066060164700,41468830753350,188390256054000,850582006083810,3818939619151800,17058982348359900 lpb $0 mov $1,$0 seq $1,511...
//===- DWARFFormValue.cpp -------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | http://www.mrpt.org/ | | | | Cop...
ORG 0000H MOV R0,#40H MOV R1,#10H MOV DPTR,#1000H LOOP: MOVX A,@DPTR MOV @R0,A INC R0 INC DPTR DJNZ R1,Loop JMP $ END
; ; Saved player state for Shock Lobster ; ; Copyright 2021 Dave VanEe ; ; 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...
############################################################################### # 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...
; A165832: Totally multiplicative sequence with a(p) = 11. ; Submitted by Jon Maiga ; 1,11,11,121,11,121,11,1331,121,121,11,1331,11,121,121,14641,11,1331,11,1331,121,121,11,14641,121,121,1331,1331,11,1331,11,161051,121,121,121,14641,11,121,121,14641,11,1331,11,1331,1331,121,11,161051,121,1331,121,1331,11,14641,121,1464...
; A069283: a(n) = -1 + number of odd divisors of n. ; 0,0,0,1,0,1,1,1,0,2,1,1,1,1,1,3,0,1,2,1,1,3,1,1,1,2,1,3,1,1,3,1,0,3,1,3,2,1,1,3,1,1,3,1,1,5,1,1,1,2,2,3,1,1,3,3,1,3,1,1,3,1,1,5,0,3,3,1,1,3,3,1,2,1,1,5,1,3,3,1,1,4,1,1,3,3,1,3,1,1,5,3,1,3,1,3,1,1,2,5,2,1,3,1,1,7,1,1,3,1,3,3,1,1,3,3,1,5,1,3,3,2,1,3,1,3,5,1,0,3,3,1,3,...
/* 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...
<% from pwnlib.util import lists, packing, fiddling from pwnlib.shellcraft import mips %> <%page args="string, append_null = True"/> <%docstring> Pushes a string onto the stack without using null bytes or newline characters. Args: string (str): The string to push. append_null (bool): Whether to append a single...
//! \file /* ** Copyright (C) - Triton ** ** This program is under the terms of the Apache License 2.0. */ #include <triton/architecture.hpp> #include <triton/cpuSize.hpp> #include <triton/exceptions.hpp> #include <triton/externalLibs.hpp> #include <triton/x86Specifications.hpp> namespace triton { namespace arc...
; A083031: Numbers that are congruent to {0, 3, 7} mod 12. ; 0,3,7,12,15,19,24,27,31,36,39,43,48,51,55,60,63,67,72,75,79,84,87,91,96,99,103,108,111,115,120,123,127,132,135,139,144,147,151,156,159,163,168,171,175,180,183,187,192,195,199,204,207,211,216,219 mul $0,16 div $0,6 mov $1,$0 div $0,2 add $1,$0
global _print_1hex _print_1hex: push bp mov bp, sp mov al, byte [bp+4] call os_print_1hex pop bp ret
; void PSGSFXPlayLoop(void *sfx,unsigned char channels) SECTION code_clib SECTION code_PSGlib PUBLIC PSGSFXPlayLoop EXTERN asm_PSGlib_SFXPlayLoop PSGSFXPlayLoop: pop af pop bc pop de push de push bc push af jp asm_PSGlib_SFXPlayLoop
_init: file format elf32-i386 Disassembly of section .text: 00000000 <main>: char *argv[] = { "sh", 0 }; 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 %ebp ...
push ebp mov ebp,esp push ecx call dword ptr ds:[93D1BCh] mov ecx,dword ptr [dev] mov eax,dword ptr [dev] shr ecx,0Ch and eax,0FFFC0FFFh dec ecx and ecx,3Fh shl ecx,0Ch or ecx,eax ...
%include "../UltimaPatcher.asm" %include "include/uw2.asm" %include "include/uw2-eop.asm" %include "include/additionalCharacterCodes.asm" defineAddress 11, 0x03B9, redundantMouseHandlerAddressingStart defineAddress 11, 0x03C6, redundantMouseHandlerAddressingEnd defineAddress 11, 0x0447, redundantKeyHandlerAddressingSt...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x1905, %r10 nop nop sub $42137, %rdx mov (%r10), %eax and %rdi, %rdi lea addresses_UC_ht+0x1d845, %rbx nop nop nop nop nop inc %r10 movb $0x61, (%rbx) nop nop nop sub $51016, %rsi lea a...
; BSD 3-Clause License ; ; Copyright (c) 2020, k4m1 <k4m1@protonmail.com> ; 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 no...
; A157436: a(n) = 128*n^2 + 2528*n + 12481. ; 15137,18049,21217,24641,28321,32257,36449,40897,45601,50561,55777,61249,66977,72961,79201,85697,92449,99457,106721,114241,122017,130049,138337,146881,155681,164737,174049,183617,193441,203521,213857,224449,235297,246401,257761,269377,281249,293377,305761,318401,331297,34444...
; ; ANSI Video handling for the CCE MC-1000 (in ZX Spectrum style) ; ; ** alternate (smaller) 4bit font capability: ; ** use the -DPACKEDFONT flag ; ; set it up with: ; .text_cols = max columns ; .text_rows = max rows ; .DOTS+1 = char size ; .font = font file ; ; Display a char in location (ansi_ROW),(ansi_COLUMN) ...
; A185096: Let T(n) = n(n+1)/2 be the n-th triangular number (A000217); a(n) = T(8T(n)). ; 0,36,300,1176,3240,7260,14196,25200,41616,64980,97020,139656,195000,265356,353220,461280,592416,749700,936396,1155960,1412040,1708476,2049300,2438736,2881200,3381300,3943836,4573800,5276376,6056940,6921060,7874496,8923200,1007331...
#include "glide_endpoint.h" GLIDE_READONLY_ENDPOINT_IMPL("offices");
; A212344: Sequence of coefficients of x^(n-3) in marked mesh pattern generating function Q_{n,132}^(0,3,0,0)(x). ; 5,5,10,25,70,210,660,2145,7150,24310,83980,293930,1040060,3714500,13372200,48474225,176788350,648223950,2388193500,8836315950,32820602100,122331335100,457412818200,1715298068250,6449520736620,243097320072...
; A040134: Continued fraction for sqrt(147). ; 12,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8,24,8 mul $0,-3 add $0,2 mod $0,6 div $0,2 pow $0,2 mul $0,4 add $0,8
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x8ea6, %rsi lea addresses_normal_ht+0x189fa, %rdi nop nop nop cmp $21603, %r9 mov $98, %rcx rep movsw nop add $55714, %rcx lea addresses_D_ht+0x15886, %r9 nop nop add $14294, %...
GLOBAL cpuVendor GLOBAL onSpeaker GLOBAL offSpeaker GLOBAL beepSound GLOBAL delayLoop section .text cpuVendor: push rbp mov rbp, rsp push rbx mov rax, 0 cpuid mov [rdi], ebx mov [rdi + 4], edx mov [rdi + 8], ecx mov byte [rdi+13], 0 mov rax, rdi pop rbx mov rsp, rbp pop rbp ret onSpeaker: pus...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006 - 2016, 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 distributi...
; A314253: Coordination sequence Gal.6.627.1 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. ; Submitted by Jamie Morken(s3) ; 1,5,11,17,23,29,35,41,47,53,59,64,69,75,81,87,93,99,105,111,117,123,128,133,139,145,151,157,163,169,175,181,...
.seg const .here: .data, "made it here" <b> 0 .seg const .here0: .data, "made it here (0)" <b> 0 .seg const .here1: .data, "made it here (1)" <b> 0 .seg const .here2: .data, "made it here (2)" <b> 0 .seg const .objcctor: .data, "obj ctor" <b> 0 .seg const .progtxt: .data, "program" <b> 0 .seg const .insideR...
@@@@@@@@@@@@ OR[3] is set to the base address of the overlay, unfortunately, that's 6 words before 6 0x0000 (0x000000) 0x0400- f:00002 d: 0 | I = 0 0x0001 (0x000002) 0x0000- f:00000 d: 0 | PASS 0x0002 (0x000004) 0x1800-0x0C77 f:00014 d: 0 | A = 3191 ...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r9 push %rax push %rdi lea addresses_normal_ht+0x14390, %r13 nop nop nop nop nop xor $39018, %rdi mov (%r13), %rax inc %r9 pop %rdi pop %rax pop %r9 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %rbp push %rdi // F...
; A072932: Least k such that floor( (1+1/k)^n ) = floor( (1+1/n)^k ). ; 1,2,3,4,5,5,6,7,8,9,10,11,12,13,14,15,15,16,17,18,19,20,21,22,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,36,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,56,57,58,59,60,61,62,63,64,65,66 add $0,12 mov $1,11 mov $2,$0 add $2,5 mu...
db 0 ; 386 DEX NO (NORMAL FORM) db 50, 150, 50, 150, 150, 50 ; hp atk def spd sat sdf db PSYCHIC, PSYCHIC ; type db 3 ; catch rate db 215 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_UNKNOWN ; gender ratio db 100 ; unknown 1 db 120 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon...
@256 D=A @SP M=D @Sys.init 0;JMP (Sys.init) @0 D=A @SP M=M+D @func$0$Sys.init D;JEQ (func$Sys.init$0) D=D-1 @LCL A=M+D M=0 @func$Sys.init$0 D;JGT (func$0$Sys.init) @4000 D = A @SP M = M + 1 A = M - 1 M = D @SP M = M - 1 A = M D = M @THIS M = D @5000 D = A @SP M = M + 1 A = M - 1 M = D @SP M = M - 1 A = M D = M @THAT M ...
/* * Copyright (c) 2012 The WebRTC 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 contribut...
; A229998: Denominator of d(k)/d(1) + d(k-1)/d(2) + ... + d(k)/d(1), where d(1),d(2),...,d(k) are the unitary divisors of n. ; Submitted by Christian Krause ; 1,2,3,4,5,3,7,8,9,1,11,6,13,7,3,16,17,9,19,10,21,11,23,12,25,13,27,14,29,3,31,32,33,17,7,18,37,19,39,4,41,21,43,22,45,23,47,24,49,5,51,26,53,27,55,28,57,29,59,3...
; ------------------------------------------------------------------------- ; ; Nosnam v1.5 coded by KilJaeden of the Codebreakers 1998 ; ; ------------------------------------------------------------------------- ; ; Description: `-------------------| Started: 07/06/98 | Finished: 09/06/98 ; ; ...
; TITLE '8080 system monitor, ver 1' ; ; July 11, 2015 ; TOP EQU 24 ;MEMORY TOP, K BYTES ORGIN EQU (TOP-2)*1024 ;PROGRAM START ; CPU Z80 ORG ORGIN ; ; HOME EQU ORGIN ;ABORT ADDRESS VERS EQU "17" ;VERSION NUMBER STACK EQU ORGIN-60H CSTAT EQU 10H ...
FrequencyTable: dw 0 ; __ dw $f82c ; C_ dw $f89d ; C# dw $f907 ; D_ dw $f96b ; D# dw $f9ca ; E_ dw $fa23 ; F_ dw $fa77 ; F# dw $fac7 ; G_ dw $fb12 ; G# dw $fb58 ; A_ dw $fb9b ; A# dw $fbda ; B_ dw $fc16 ; C_ dw $fc4e ; C# dw $fc83 ; D_ dw $fcb5 ; D# dw $fce5 ; E_ dw $fd11 ; F_ dw $fd3b ; F# dw ...
; void *wv_priority_queue_pop(wv_priority_queue_t *q) SECTION code_adt_wv_priority_queue PUBLIC wv_priority_queue_pop defc wv_priority_queue_pop = asm_wv_priority_queue_pop INCLUDE "adt/wv_priority_queue/z80/asm_wv_priority_queue_pop.asm"
; A170798: a(n) = n^10*(n^6 + 1)/2. ; 0,1,33280,21552885,2148007936,76298828125,1410585186816,16616606522425,140738025226240,926511837818121,5000005000000000,22974877900498381,92442160406200320,332708373520835845,1088976813532013056,3284204466181640625,9223372586610589696,24330596945830384465,60719767333530739200,14422...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0xf59c, %rsi lea addresses_D_ht+0x25b8, %rdi clflush (%rsi) nop nop nop nop nop dec %r12 mov $114, %rcx rep movsw nop nop nop nop cmp $62868, %rbx lea addresses_A_ht+0x19fc2, %rsi lea ad...
; You may customize this and other start-up templates; ; The location of this template is c:\emu8086\inc\0_com_template.txt org 100h .model small .stack 100h .data .code main proc mov cx, 26 ;run time mov dx, 65 ;strt from A = 65 Z = 91 ca...
;* ;* Raster Music Tracker, RMT Atari routine version 1.20090108 ;* (c) Radek Sterba, Raster/C.P.U., 2002 - 2009 ;* http://raster.atari.org ;* ;* Warnings: ;* ;* 1. RMT player routine needs 19 itself reserved bytes in zero page (no accessed ;* from any other routines) as well as cca 1KB of memory before the ...
; ; jdmermmx.asm - merged upsampling/color conversion (MMX) ; ; 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...
; compile with fasm.exe: (https://flatassembler.net/) ; fasm isr.asm isr.obj ; format binary as 'bin' use32 RING0 = 0x0010 ERROR = 0x002C PAGES = 0x2000 master: cli ; disable interrupts nop ; this nop makes debugging easier pushad...
;; writesltt.asm ;; ;; Copyright 2021 G. Adam Stanislav ;; All rights reserved ;; ;; nasm -f win64 writesltt.asm section .text default rel EXTERN KOLIBA_PrintSlttFormat, fopen, fclose EXTERN KOLIBA_WriteDoublesToOpenFile GLOBAL KOLIBA_WriteSlttToOpenFile, KOLIBA_WriteSlttToNamedFile KOLIBA_WriteSlttToNamedFile: ...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x18e3d, %r12 nop nop nop nop xor %r13, %r13 movl $0x61626364, (%r12) nop add %r12, %r12 lea addresses_D_ht+0x2afd, %rbx nop nop nop xor %r13, %r13 movb $0x61, (%rbx) nop xor ...
/*------------------------------------------------------------------------- * OpenGL Conformance Test Suite * ----------------------------- * * Copyright (c) 2015-2016 The Khronos Group Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with ...
; A158057: First differences of A051870: 16*n + 1. ; 1,17,33,49,65,81,97,113,129,145,161,177,193,209,225,241,257,273,289,305,321,337,353,369,385,401,417,433,449,465,481,497,513,529,545,561,577,593,609,625,641,657,673,689,705,721,737,753,769,785,801,817,833,849,865,881,897,913,929,945,961,977,993,1009,1025,1041,1057,107...
; A106466: Interleave 1,2,3,.. with 1,1,2,2,3,3,... ; 1,1,2,1,3,2,4,2,5,3,6,3,7,4,8,4,9,5,10,5,11,6,12,6,13,7,14,7,15,8,16,8,17,9,18,9,19,10,20,10,21,11,22,11,23,12,24,12,25,13,26,13,27,14,28,14,29,15,30,15,31,16,32,16,33,17,34,17,35,18,36 mov $1,$0 gcd $0,2 mul $1,$0 div $1,4 add $1,1
DayCareMScript: jp EnableAutoTextBoxDrawing DayCareMTextPointers: dw DayCareMText1 DayCareMText1: TX_ASM call SaveScreenTilesToBuffer2 ld a, [wDayCareInUse] and a jp nz, .daycareInUse ld hl, DayCareIntroText call PrintText call YesNoChoice ld a, [wCurrentMenuItem] and a ld hl, DayCareComeAgainText jp nz...
Random:: ; Return a random number in a. ; For battles, use BattleRandom. push hl push de push bc farcall Random_ ldh a, [hRandomAdd] pop bc pop de pop hl ret
dnl Alpha __gmpn_addmul_1 -- Multiply a limb vector with a limb and add dnl the result to a second limb vector. dnl Copyright (C) 1992, 1994, 1995, 2000 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl i...
; sp1_DrawUpdateStructIfInv(struct sp1_update *u) SECTION code_temp_sp1 PUBLIC _sp1_DrawUpdateStructIfInv _sp1_DrawUpdateStructIfInv: pop af pop hl push hl push af push ix call asm_sp1_DrawUpdateStructIfInv pop ix ret INCLUDE "temp/sp1/zx/updater/asm_sp1_DrawUpdateStruct...
; A142453: Primes congruent to 46 mod 49. ; Submitted by Jon Maiga ; 193,389,487,683,977,1663,2153,2251,2447,2741,3329,3623,3917,4211,4603,4799,5387,5779,6073,6269,6367,6563,6661,6857,7151,8719,9013,9209,9601,10091,10973,11071,11953,12149,12541,13619,13913,14011,14207,15187,15383,15971,16069,16363,16657,17539,18127,186...
; A236209: Sum of the seventh powers of the first n primes. ; Submitted by Jamie Morken(s4) ; 128,2315,80440,903983,20391154,83139671,493478344,1387350083,4792175530,22042051839,49554665950,144486543083,339240816964,611059428071,1117682548534,2292393688371,4781045173190,7923788009211,13984499614534,23079619772925,34127...
MODULE __printf_handle_s SECTION code_clib PUBLIC __printf_handle_s EXTERN __printf_loop EXTERN __printf_print_aligned EXTERN get_16bit_ap_parameter EXTERN strlen __printf_handle_s: push hl ;save format string call get_16bit_ap_parameter ;de=new ap, hl=string to print ...
[bits 32] [global gdt_flush] [global idt_flush] [section .text] KRNL_CODE_SEL equ 0x8 KRNL_DATA_SEL equ 0x10 gdt_flush: push ebp mov ebp, esp mov eax, [ebp+8] lgdt [eax] jmp KRNL_CODE_SEL:gdt_flush.label .label: mov ax, KRNL_DATA_SEL mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax m...
* Get channel id or string or name V0.3  1985 Tony Tebby QJUMP * section utils * xdef ut_fname * xref ut_gtnam xref ut_chget * * d0 r <0 error, =0 filename, >0 #n * ut_fname tst.b 1(a6,a3.l) is it a hash bge.l ut_gtnam ... no, get string bsr.l ut_chget get channel subq.l #8,a3 backspace parm pointer bn...
bits 64 section .text global _start _start: mov rax, 1; write mov rdi, 1 ; stdout mov rsi, msg mov rdx, len syscall mov rax, 60; exit mov rdi, 0 ...
; ; Keyboard routines ; Created for Robotron KC85 but kept generic ; By Stefano Bodrato - Sept. 2016 ; ; getkey() Wait for keypress ; ; ; $Id: fgetc_cons.asm,v 1.1 2016/09/22 06:29:49 stefano Exp $ ; SECTION code_clib PUBLIC fgetc_cons .fgetc_cons ; call $f006 ; const: Check if a key is waiting (0=k...
; A158388: -1 followed by infinitely many 1's. ; -1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 cmp $0,0 sub $1,$0 mul $1,2 add $1,1 mov $0,$1
; A173151: a(n) = a(n-1) - [a(n-1)/2] + a(n-2) - [a(n-5)/2] where [k] = floor(k). ; 1,1,2,2,3,4,5,6,7,9,10,12,13,16,17,20,21,25,26,30,31,36,37,42,43,49,50,56,57,64,65,72,73,81,82,90,91,100,101,110,111,121,122,132,133,144,145,156,157,169,170,182,183,196,197,210,211,225,226,240,241,256,257,272,273,289,290,306,307,324,325...
format MZ heap 0 stack 8000h entry loader:init include 'loader.inc' segment main use32 start: call get_params jnc make_dump mov esi,_usage call display_string mov ax,4C02h int 21h make_dump: call symbols mov ax,4C00h int 21h error: mov esi,_error_prefix call display_string pop esi call di...
; A061239: Prime numbers == 4 (mod 9). ; 13,31,67,103,139,157,193,211,229,283,337,373,409,463,499,571,607,643,661,733,751,769,787,823,859,877,967,1021,1039,1093,1129,1201,1237,1291,1327,1381,1399,1453,1471,1489,1543,1579,1597,1669,1723,1741,1759,1777,1831,1867,1993,2011,2029,2083,2137,2281,2371,2389,2551,2659,2677,2713...
; A284968: Least hairpin family matchings with n edges that are both L&P and C&C whose leftmost edge is part of a hairpin. ; 0,1,5,18,59,190,618,2047,6908,23703,82488,290499,1033398,3707837,13402681,48760350,178405139,656043838,2423307027,8987427446,33453694465,124936258104,467995871753,1757900019076,6619846420527,2498...
include uXmx86asm.inc option casemap:none ifndef __X64__ .686P .xmm .model flat, c else .X64P .xmm option win64:11 option stackbase:rsp endif option frame:auto .code align 16 uXm_has_SSE4a proto VECCALL (byte) align 16 uXm_has_SSE4a proc VECCALL (byte) mov eax, 0 ...
/* * Copyright 2015 Open Source Robotics Foundation * * 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 applicab...
MOV A,#0xFF ANL A,#0xFE ANL A,#0xFD ANL A,#0xFB ANL A,#0xF7 ANL A,#0xEF ANL A,#0xDF ANL A,#0xBF ANL A,#0x7F
;---------------------------------------------------------------------- ; Module name: span_s.asm ; ; Created: 2/3/94 ; Author: Otto Berkes [ottob] ; ; Draw fast smooth-shaded, z-buffered scanlines. ;---------------------------------------------------------------------- .code ;------------------------...
; ; ANSI Video handling for the MSX ; ; Handles colors ; ; Scrollup ; ; Stefano Bodrato - Sept. 2017 ; ; $Id: f_ansi_scrollup_nobios.asm $ ; SECTION code_clib PUBLIC ansi_SCROLLUP EXTERN msx_attr EXTERN LDIRVM EXTERN LDIRMV EXTERN FILVRM .ansi_SCROLLUP push ix ld b,23 ld hl,256 .scloop push ...
; A174910: Partial sums of A028835. ; Submitted by Jon Maiga ; 2,5,10,17,28,40,54,70,90,111,134,159,188,218,250,284,322,361,402,445,492,540,590,642,698,755,814,875,940,1006,1074,1144,1218,1293,1370,1449,1532,1616,1702,1790,1882,1975,2070,2167,2268,2370,2474,2580,2690,2801 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 sub $...
// Copyright 2017 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/paint/ng/ng_text_fragment_painter.h" #include "cc/input/layer_selection_bound.h" #include "third_party/blink/re...
//@HEADER // ************************************************************************ // // Kokkos v. 2.0 // Copyright (2014) Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government retains certain rights in this software...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r13 push %r15 push %rbx push %rdi push %rsi // Faulty Load lea addresses_WC+0x1f5aa, %r13 nop nop nop nop nop xor $2619, %rsi mov (%r13), %r15d lea oracles, %rdi and $0xff, %r15 shlq $12, %r15 mov (%rdi,%r15,1), %r15 pop %...
/* * Copyright 2010-2012 Esrille 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.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
/* * Copyright (c) 2015, <copyright holder> <email> * 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 * notice, this...
; A229354: Total sum of n-th powers of parts in all partitions of 3. ; 6,9,17,39,101,279,797,2319,6821,20199,60077,179199,535541,1602519,4799357,14381679,43112261,129271239,387682637,1162785759,3487832981,10462450359,31385253917,94151567439,282446313701,847322163879,2541932937197,7625731702719,22877060890421,6863091423...
# code.regs: A=0x8000 C=0xFFFF # code.flags: Z- C+ N+ .segment code 0x02000 { ld a, 0x0000 {$10 $00 $00 $00} ld c, 0xFFFE {$14 $00 $FF $FE} label: { _loop: inc a {$C0} loops _loop, c {$84 $01 $FC} ...
SECTION code_fcntl PUBLIC console_01_output_char_proc_move_left EXTERN console_01_output_char_proc_move_down_check_y console_01_output_char_proc_move_left: ; move left, wrap, snap to window ; ; enter : e = x coord ; d = y coord ; ; c = window.width ; b = window.heig...
; Original address was $BA49 ; 1-2 bonus area .word W102L ; Alternate level layout .word W102O ; Alternate object layout .byte LEVEL1_SIZE_01 | LEVEL1_YSTART_170 .byte LEVEL2_BGPAL_05 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 .byte LEVEL3_TILESET_03 | LEVEL3_VSCROLL_FREE | LEVEL3_PIPENOTEXIT .byte LEVEL4_BGBANK_INDEX...
; A001520: a(n) = (6*n+1)*(6*n+3)*(6*n+5). ; 15,693,3315,9177,19575,35805,59163,90945,132447,184965,249795,328233,421575,531117,658155,803985,969903,1157205,1367187,1601145,1860375,2146173,2459835,2802657,3175935,3580965,4019043,4491465,4999527,5544525,6127755,6750513,7414095,8119797,8868915,9662745,10502583,11389725,1...
; A056172: Number of non-unitary prime divisors of n!. ; 0,0,0,1,1,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,13,13,13,13,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15 sub $0,1 div $0,2 s...
/* * Copyright (c) 2010, Mathieu Champlon * 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 cop...
; A046818: Number of 1's in binary expansion of 3n+1. ; 1,1,3,2,3,1,3,3,3,3,5,2,3,2,4,4,3,3,5,4,5,1,3,3,3,3,5,3,4,3,5,5,3,3,5,4,5,3,5,5,5,5,7,2,3,2,4,4,3,3,5,4,5,2,4,4,4,4,6,4,5,4,6,6,3,3,5,4,5,3,5,5,5,5,7,4,5,4,6,6,5,5,7,6,7,1,3,3,3,3,5,3,4,3,5,5,3,3,5,4,5,3,5,5,5,5,7,3,4,3,5,5,4,4,6,5,6,3,5,5,5,5,7,5,6,5,7,7,3,3,5,4,...
; A039701: a(n) = n-th prime modulo 3. ; Submitted by Jon Maiga ; 2,0,2,1,2,1,2,1,2,2,1,1,2,1,2,2,2,1,1,2,1,1,2,2,1,2,1,2,1,2,1,2,2,1,2,1,1,1,2,2,2,1,2,1,2,1,1,1,2,1,2,2,1,2,2,2,2,1,1,2,1,2,1,2,1,2,1,1,2,1,2,2,1,1,1,2,2,1,2,1,2,1,2,1,1,2,2,1,2,1,2,2,1,2,1,2,2,2,1,1 mul $0,2 max $0,1 seq $0,173919 ; Numbers that are pr...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r15 push %rcx push %rdi push %rsi lea addresses_WT_ht+0x1258b, %rsi lea addresses_A_ht+0xf94b, %rdi nop nop nop cmp $15359, %r12 mov $3, %rcx rep movsl xor %rdi, %rdi lea addresses_A_ht+0x1e98b, %r14 nop nop xor %r15, %r15 mov (%r14), %r12w nop nop ...
#include "StdAfx.h" #if 0 #ifndef DISABLE_SERIALIZE #include "BoxShape.h" #include "WorldImporter.h" #include "BvhTriangleMeshShape.h" #include "CapsuleShape.h" #include "CollisionObject.h" #include "CompoundShape.h" #include "ConeShape.h" #include "ConvexHullShape.h" #include "ConvexTriangleMeshShape.h"...
; BROWSE.ASM -- Full Screen File Pager ; ==================================== CSEG Segment Assume CS:CSEG, DS:CSEG, ES:CSEG, SS:CSEG Org 0080h Parameter Label Byte Org 0100h Entry: Jmp Begin ; All Data ; -------- db 'ATTR=' Attribute db 0 ; Current screen attribute db 'SHIFT=' ShiftHoriz db 8 ; Horizon...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x6cc7, %rsi lea addresses_UC_ht+0x184e7, %rdi nop nop nop nop dec %r12 mov $56, %rcx rep movsw nop nop inc %r12 lea addresses_UC_ht+0x9fcf, %rsi lea addresses_WT_ht+0x9927, %...
; A085461: Number of 5-tuples (v1,v2,v3,v4,v5) of nonnegative integers less than n such that v1 <= v5, v2 <= v5, v2 <= v4 and v3 <= v4. ; 1,13,70,246,671,1547,3164,5916,10317,17017,26818,40690,59787,85463,119288,163064,218841,288933,375934,482734,612535,768867,955604,1176980,1437605,1742481,2097018,2507050,2978851,3519...