text stringlengths 1 1.05M |
|---|
;
; Long Mode
;
; print.asm
;
; Since we no longer have access to BIOS utilities, this function
; takes advantage of the VGA memory area. We will go over this more
; in a subsequent chapter, but it is a sequence in memory which
; controls what is printed on the screen.
[bits 64]
; Simple 32-bit protected print routi... |
.inesprg 1
.ineschr 1
.inesmap 0
.inesmir 1
.bank 0
.org $8000
RESET:
sei
cld
lda #%10000000
sta $2001
FOREVER:
jmp FOREVER
.bank 1
.org $FFFA
.dw 0, RESET, 0
|
// 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 "ui/base/ime/fake_input_method.h"
#include "base/logging.h"
#include "base/string16.h"
#include "ui/base/events/event.h"
#include "ui/base/e... |
device ZXSPECTRUMNEXT
BORDER: equ $c350
Start: equ $8000
org Start
jr SetupISR
Update:
ld a,(BORDER)
break
inc a
ld c,7
and c
out (254),a
ld (BORDER),a
ret
SetupISR:
; Setup the 128 entry vector table
di
ld hl, IM2Table
ld de, IM2Table+1
ld bc, 256
;... |
.size 8000
.text@48
ld a, ff
ldff(45), a
jp lstatint
.text@100
jp lbegin
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 03
call lwaitly_b
ld a, 40
ldff(41), a
ld a, 02
ldff(ff), a
ei
ld a, b
inc a
inc a
ldff(45), a
ld c, 41
.text@1000
lstatint:
xor a, a
ldff(c), a
ldff(0f), a
.text@1060
ldff(c)... |
; --------------------------------------
; Test ADD, and moving data from addresses to registers and back.
;
; 8085 program to add two 8 bit numbers
; https://www.geeksforgeeks.org... |
; A211666: Number of iterations log_10(log_10(log_10(...(n)...))) such that the result is < 2.
; 0,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,2,2,2,2,2,2
lpb $0
add... |
//============================================================
//
// Type: CppIntroduction implementation file
//
// Author: Tommaso Bellosta on 24/09/2019.
// Dipartimento di Scienze e Tecnologie Aerospaziali
// Politecnico di Milano
// Via La... |
; THIS IS AN AUTOGENERATED FILE
; WARNING: FOR MACOS ONLY
; nasm -f macho64 gen_rc4.asm -o gen_rc4.o && ld -o gen_rc4.macho -macosx_version_min 10.7 -e start gen_rc4.o && ./gen_rc4.macho
BITS 64
section .text
global start
start:
push rbp
mov rbp, rsp
; PRINT OUTPUT
... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC _llround
EXTERN cm48_sdcciy_llround
defc _llround = cm48_sdcciy_llround
|
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.9.1 #11310 (Linux)
;--------------------------------------------------------
; Processed by Z88DK
;--------------------------------------------------------
EXTERN __divschar
EXTERN __divsc... |
ORIGIN 4x0000
SEGMENT CodeSegment:
LEA R0, VALUE1
; R0 should contain the value 4x0012
ENDLOOP:
BRnzp ENDLOOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
SEGMENT
DATA:
VALUE1: DATA2 4x0000
|
; A108171: Tribonacci version of A076662 using beta positive real Pisot root of x^3 - x^2 - x - 1.
; 4,3,4,3,3,4,3,4,3,3,4,3,3,4,3,4,3,3,4,3,4,3,3,4,3,3,4,3,4,3,3,4,3,4,3,3,4,3,3,4,3,4,3,3,4,3,3,4,3,4,3,3,4,3,4,3,3,4,3,3,4,3,4,3,3,4,3,4,3,3,4,3,3,4,3,4,3,3,4,3,4,3,3,4,3,3,4,3,4,3,3,4,3,3,4,3,4,3,3
mov $5,$0
mov $7,2
l... |
@Assembly code to print numbers from 2 to 20
.main:
addi x1, x0, 1
addi x2, x0, 1
addi x4, x0, 20
loop:
add x3, x1, x2
.print x3
addi x2, x2, 1
bne x2, x4, loop
end |
#include once <stackf.asm>
SQRT: ; Computes SQRT(x) using ROM FP-CALC
call __FPSTACK_PUSH
rst 28h ; ROM CALC
defb 28h ; SQRT
defb 38h ; END CALC
jp __FPSTACK_POP
|
; void *_falloc_(void *p, size_t size)
INCLUDE "clib_cfg.asm"
SECTION code_alloc_malloc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $01
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _falloc_
EXTERN asm__falloc
_falloc_:
pop af
pop hl
pop bc
push bc
push hl
push af
jp asm__f... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/invalidation/impl/unacked_invalidation_set.h"
#include <stddef.h>
#include <memory>
#include "base/json/json_string_value_serializ... |
; void *obstack_blank_fast_callee(struct obstack *ob, int size)
SECTION code_clib
SECTION code_alloc_obstack
PUBLIC _obstack_blank_fast_callee
EXTERN asm_obstack_blank_fast
_obstack_blank_fast_callee:
pop af
pop hl
pop bc
push af
jp asm_obstack_blank_fast
|
; A100177: Structured meta-prism numbers, the n-th number from a structured n-gonal prism number sequence.
; 1,4,18,64,175,396,784,1408,2349,3700,5566,8064,11323,15484,20700,27136,34969,44388,55594,68800,84231,102124,122728,146304,173125,203476,237654,275968,318739,366300,418996,477184,541233,611524,688450,772416,86383... |
/*
Copyright 2018-2021 <Pierre Constantineau, Julian Komaromy>
3-Clause BSD License
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 con... |
; A017742: Binomial coefficients C(n,78).
; 1,79,3160,85320,1749060,29034396,406481544,4935847320,53060358690,512916800670,4513667845896,36519676207704,273897571557780,1917283000904460,12599288291657880,78115587408278856,458929076023638279,2564603660132096265,13677886187371180080,69829208430263393040,342163121308290625... |
// --- Predefined References --
define GC_ALLOC 10001h
define HOOK 10010h
define INVOKER 10011h
define INIT_RND 10012h
define INIT_ET 10015h
define LOCK 10021h
define UNLOCK 10022h
define LOAD_CALLSTACK 10024h
define... |
INCLUDE "./src/include/entities.inc"
INCLUDE "./src/definitions/definitions.inc"
SECTION "Enemy B", ROM0
/* Update for enemy type B
Behavior:
- Spin to win
- moves and when player on same line (x/y axis), wait for a few frames then spin after player
- when in shell/spinning mode, enemy is ... |
; A210627: Constants r_n arising in study of polynomials of least deviation from zero in several variables.
; Submitted by Christian Krause
; 72,896,14400,283392,6598144,177373184,5406289920,184223744000,6939874934784,286375842938880,12846564299505664,622448445155704832,32395710363284275200,1802446793652649852928,10676... |
; A266256: Number of ON (black) cells in the n-th iteration of the "Rule 11" elementary cellular automaton starting with a single ON (black) cell.
; 1,1,2,5,2,9,2,13,2,17,2,21,2,25,2,29,2,33,2,37,2,41,2,45,2,49,2,53,2,57,2,61,2,65,2,69,2,73,2,77,2,81,2,85,2,89,2,93,2,97,2,101,2,105,2,109,2,113,2,117,2,121,2,125,2,129,2... |
#include "cpudef.asm"
; calculate telnet base address
move r5, 1
shl r5, 14
move r1, "H"
store [r5,0], r1
move r1, "e"
store [r5,0], r1
move r1, "l"
store [r5,0], r1
move r1, "l"
store [r5,0], r1
move r1, "o"
store [r5,0], r1
move r1, ","
store [r5,0], r1
move r1, " "
store [r5,0], r1
move r1, "w"
store [r5,0], r1
mo... |
copyright zengfr site:http://github.com/zengfr/romhack
004A84 abcd -(A0), -(A2) [1p+93]
004A86 rts [1p+92]
009F9A rts [1p+92]
00A136 move.b (A7)+, ($90,A4) [1p+92]
00A2C6 dbra D0, $a2c0
copyright zengfr site:http://github.com/zengfr/romhack
|
;;
;; Copyright (c) 2012-2021, 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... |
// Copyright 2018 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/socket/connect_job.h"
#include <utility>
#include "base/trace_event/trace_event.h"
#include "net/base/net_errors.h"
#include "net/base/tra... |
/*******************************************************************************
* Copyright 2019-2020 Intel Corporation
*
* 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.apa... |
; A129818: Riordan array (1/(1+x), x/(1+x)^2), inverse array is A039599.
; Submitted by Jon Maiga
; 1,-1,1,1,-3,1,-1,6,-5,1,1,-10,15,-7,1,-1,15,-35,28,-9,1,1,-21,70,-84,45,-11,1,-1,28,-126,210,-165,66,-13,1,1,-36,210,-462,495,-286,91,-15,1,-1,45,-330,924,-1287,1001,-455,120,-17,1,1,-55,495,-1716,3003,-3003,1820,-680,15... |
; A154388: Triangle T(n,k), 0<=k<=n, read by rows given by [0,1,-1,0,0,0,0,0,0,0,...] DELTA [1,-1,-1,1,0,0,0,0,0,0,0,...] where DELTA is the operator defined in A084938.
; 1,0,1,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,... |
//$Id: Solver.cpp 11403 2013-02-28 00:08:36Z djcinsb $
//------------------------------------------------------------------------------
// Solver
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 200... |
// -*- c-basic-offset: 4 -*-
#ifndef CLICK_BURSTSTATS_HH
#define CLICK_BURSTSTATS_HH
#include <click/batchelement.hh>
#include <click/multithread.hh>
#include <click/vector.hh>
#include <click/statvector.hh>
CLICK_DECLS
/*
=c
BurstStats
=s counters
keep statistics about bursts, defined as the number of packets from... |
.eqv SYS_PRINT_WORD 1
.eqv SYS_PRINT_STRING 4
.eqv SYS_READ_WORD 5
.eqv SYS_READ_STRING 8
.eqv SYS_EXIT 10
.eqv SYS_PRINT_CHAR 11
.eqv SYS_READ_CHAR 12
.macro endl()
li $v0, SYS_PRINT_CHAR
li $a0, 0xa
syscall
.end_macro
.data
str1: .asciiz "Hello\n"
str2: .as... |
.init main
.float lhs 1.0
.float rhs 2.0
.code
load_values:
mov i1 @0 ; Load constants from 0 slot
mov i5 &lhs ; At offset of data item
lqw i1 i5 i0 ; Load LHS into i0 (retrieve data)
mov i5 &rhs ; At offset of data item
lqw i1 i5 i1 ; Load RHS into i1 (retri... |
; ===============================================================
; Dec 2013
; ===============================================================
;
; char *strncat(char * restrict s1, const char * restrict s2, size_t n)
;
; Append at most n chars from string s2 to the end of string s1,
; return s1. s1 is always termina... |
; void adt_StackDelete(struct adt_Stack *s, void *delete)
; CALLER linkage for function pointers
PUBLIC adt_StackDelete
EXTERN adt_StackDelete_callee
EXTERN ASMDISP_ADT_STACKDELETE_CALLEE
.adt_StackDelete
pop bc
pop de
pop hl
push hl
push de
push bc
jp adt_StackDelete_callee + ASMDISP_ADT_S... |
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2005-2013. 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)
//
// See http://www.boost.org/libs/contain... |
; A146884: Sum of power terms sequence: a(n)=Sum[7*6^m, {m, 0, n}].
; 7,49,301,1813,10885,65317,391909,2351461,14108773,84652645,507915877,3047495269,18284971621,109709829733,658258978405,3949553870437,23697323222629,142183939335781,853103636014693,5118621816088165
mov $1,6
pow $1,$0
div $1,5
mul $1,42
add $1,7
mov $0... |
;
; $Id: 0x1d.asm,v 1.1.1.1 2016/03/27 08:40:12 raptor Exp $
;
; 0x1d explanation - from xchg rax,rax by xorpd@xorpd.net
; Copyright (c) 2016 Marco Ivaldi <raptor@0xdeadbeef.info>
;
; This snippet illustrates the enter instruction, which is
; commonly used together with its companion leave to
; support block structured... |
/* **********************************************************
* Copyright (c) 2015 Google, Inc. All rights reserved.
* **********************************************************/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following cond... |
; A161712: a(n) = (4*n^3 - 6*n^2 + 8*n + 3)/3.
; 1,3,9,27,65,131,233,379,577,835,1161,1563,2049,2627,3305,4091,4993,6019,7177,8475,9921,11523,13289,15227,17345,19651,22153,24859,27777,30915,34281,37883,41729,45827,50185,54811,59713,64899,70377,76155,82241,88643,95369,102427,109825,117571,125673,134139,142977,152195,161... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// Unit tests for datatype.
#include <vespa/document/base/field.h>
#include <vespa/document/datatype/arraydatatype.h>
#include <vespa/document/datatype/structdatatype.h>
#include <vespa/document/datat... |
_tracetest: 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: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71... |
; A288732: a(n) = a(n-1) + 2*a(n-4) - 2*a(n-5) for n >= 5, where a(0) = 2, a(1) = 4, a(2) = 6, a(3) = 8, a(4) = 10.
; 2,4,6,8,10,14,18,22,26,34,42,50,58,74,90,106,122,154,186,218,250,314,378,442,506,634,762,890,1018,1274,1530,1786,2042,2554,3066,3578,4090,5114,6138,7162,8186,10234,12282,14330,16378,20474,24570,28666,32... |
; Identical to lesson 13's boot sector, but the %included files have new paths
[org 0x7c00]
KERNEL_OFFSET equ 0x1000 ; The same one we used when linking the kernel
mov [BOOT_DRIVE], dl ; Remember that the BIOS sets us the boot drive in 'dl' on boot
mov bp, 0x9000
mov sp, bp
mov bx, MSG_REAL_MODE
... |
; A004455: Nimsum n + 14.
; 14,15,12,13,10,11,8,9,6,7,4,5,2,3,0,1,30,31,28,29,26,27,24,25,22,23,20,21,18,19,16,17,46,47,44,45,42,43,40,41,38,39,36,37,34,35,32,33,62,63,60,61,58,59,56,57,54,55,52,53,50,51,48,49,78,79,76,77,74,75,72,73,70,71,68,69,66,67,64,65,94,95,92,93,90,91,88,89,86,87,84,85,82,83,80,81,110,111,108,10... |
-- 7 Billion Humans (2053) --
-- 58: Good Neighbors --
-- Author: soerface
-- Size: 46
-- Speed: 36
a:
b:
mem1 = nearest datacube
step mem1
c:
if c == nothing:
jump a
endif
if c != 8:
step nw,w,sw,n,s,ne,e,se
jump c
endif
pickup c
mem1 = nearest wall
step mem1
d:
if e == wall or
w == wall:
if c == datacube:
st... |
//*****************************************************************************
// Copyright 2017-2021 Intel Corporation
//
// 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://w... |
;
; Tape save routine
;
; djm 16/10/2001
;
; int __CALLEE__ tape_save_block_callee(void *addr, size_t len, unsigned char type)
PUBLIC tape_save_block_callee
PUBLIC _tape_save_block_callee
PUBLIC ASMDISP_TAPE_SAVE_BLOCK_CALLEE
IF FORts2068
EXTERN call_extrom
ELSE
EXTERN call_rom3
ENDIF
.tape_save_block... |
addi r3 r0 -1
andi r4 r3 65
tty r4
halt
# prints A |
;this kernel just renders some fancy shapes on the screen
org 0x8000
bits 16
mov ah, 0 ;set display mode
mov al, 13h ;13h = 320x200
int 0x10
mov al, 2 ;COLOR
mov cx, 30 ;X-POS
mov dx, 20 ;Y-POS
mov si, 32 ;X-SIZE
mov di, 32
call drawCircle
mov al, 4
mov cx, 128
mov dx, 30
call drawBox
jmp $
;-----------------... |
#include <stdio.h>
#include <math.h>
int fac(int x)
{
int i, fac=1;
for(i=1; i<=x; i++)
fac=fac*1;
return fac
}
int main ()
{
float x, Q, sum=0;
int i,j, limit;
limit = 10;
printf("Enter the value of xof sinx series: ");
scanf("%f,&x);
Q=x*(3.1415/180);
for(i=1, j=1; i<=limit... |
; A040763: Continued fraction for sqrt(792).
; 28,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56,7,56
pow $0,4
mov $1,$0
trn $0,4
sub $0,4
gcd $1,$0
mul $1,7
|
// Copyright 2018 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 <cstring>
#include "base/base_paths.h"
#include "base/bind.h"
#include "base/callback.h"
#include "base/command_line.h"
#include "base/debug/deb... |
; A106043: First digit other than 9 in the fractional part of the decimal expansion of (1/1000^n)^(1/1000^n).
; 0,3,8,7,7,6,5,5,4,3,3,2,1,1,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4
mul $0,62298
lpb $0
mov $2,$0
... |
; A198075: Round((n+1/n)^10).
; Submitted by Christian Krause
; 1024,9537,169351,1922602,14455511,79525194,345716130,1253815679,3941971041,11046221254,28162516240,66354069277,146236468527,304356025989,602797997503,1143224193789,2086847748927,3682210047877,6303034667439,10498899284253,17061992477838,27113811835076,42216... |
; A004183: Omit 8's from n.
; 0,1,2,3,4,5,6,7,0,9,10,11,12,13,14,15,16,17,1,19,20,21,22,23,24,25,26,27,2,29,30,31,32,33,34,35,36,37,3,39,40,41,42,43,44,45,46,47,4,49,50,51,52,53,54,55,56,57,5,59,60,61,62,63,64,65,66,67,6,69,70,71
mov $1,$0
add $1,1
mov $2,1
lpb $2,1
add $2,$1
mov $1,3
add $1,$0
mod $2,10
add... |
; A081589: Third row of Pascal-(1,5,1) array A081580.
; 1,13,61,145,265,421,613,841,1105,1405,1741,2113,2521,2965,3445,3961,4513,5101,5725,6385,7081,7813,8581,9385,10225,11101,12013,12961,13945,14965,16021,17113,18241,19405,20605,21841,23113,24421,25765,27145,28561,30013,31501,33025,34585,36181,37813,39481,41185,42925,... |
/**
* Copyright (C) 2018 Xilinx, Inc
*
* 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
[bits 32]
[section .text]
global asm_rdtsc
global asm_cpuid
asm_rdtsc: ; void asm_rdtsc(int *high, int *low);
pushad
db 0x0F, 0x31 ; RDTSC
mov edi, [esp + 36]
mov dword [edi], EDX
mov edi, [esp + 40]
mov dword [edi], eax
popad
ret
asm_cpuid: ; void asm_cpuid(int id_eax, int id_ecx, int *eax,... |
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <vector>
using namespace std;
const int maxn = 100100;
int T, n, a[maxn], f[maxn], g[maxn];
vector<int> ed[maxn];
void dfs(int t, int fa){
f[t] = g[t] = 0;
for(int i = 0; i < (int)ed[t].size(); ++i){
int v = ed[t][... |
// 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... |
db "TOUGH FISH@" ; species name
db "Its tough hide is"
next "a cover for its"
next "general lack of"
page "intelligence and"
next "maneuverability in"
next "the water.@"
|
_AgathaBeforeBattleText::
text "I am AGATHA of"
line "the ELITE FOUR!"
para "OAK's taken a lot"
line "of interest in"
cont "you, child!"
para "That old duff was"
line "once tough and"
cont "handsome! That"
cont "was decades ago!"
para "Now he just wants"
line "to fiddle with"
cont "his #DEX! He's"
cont ... |
name "loader"
; this is a very basic example of a tiny operating system.
; directive to create boot file:
#make_boot#
; this is an os loader only!
;
; it can be loaded at the first sector of a floppy disk:
; cylinder: 0
; sector: 1
; head: 0
;=================================================
; how t... |
;NES hardware-dependent functions by Shiru (shiru@mail.ru)
;with improvements by VEG
;Feel free to do anything you want with this code, consider it Public Domain
; NOTE: Edits by cppchriscpp:
; - Added mmc1 bank swapping
; - Made the nmi and music_play methods support swapping to a set SOUND_BANK before reading data.... |
;page 95 sum of an integer array
.model small
.stack 100h
.data
intarray dw 200h,100h,300h,600h
.code
extrn clrscr:proc, writeint:proc
main proc
mov ax,0 ;zero accumulator
mov di,offset intarray ;address of intarray start
mov cx,4 ;number of integers
read_int:
add ax,[di] ;add integer to accum
add di,2 ;poi... |
db 0 ; species ID placeholder
db 50, 50, 40, 50, 30, 30
; hp atk def spd sat sdf
db ICE, GROUND ; type
db 225 ; catch rate
db 78 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/swinub/fron... |
;
; Generic pseudo graphics routines for text-only platforms
;
; Written by Stefano Bodrato 07/09/2007
;
;
; Get pixel at (x,y) coordinate.
;
;
; $Id: pointxy.asm,v 1.7 2016-08-05 07:04:09 stefano Exp $
;
INCLUDE "graphics/grafix.inc"
SECTION code_clib
PUBLIC pointxy
... |
/*
Copyright (c) 2017-2019,
Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable Energy, LLC. See
the top-level NOTICE for additional details. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
*/
#include "gtest/gtest.h"
#include <cstdio>
#include "exeTestHelper.h... |
; A158004: a(n) = 392*n - 1.
; 391,783,1175,1567,1959,2351,2743,3135,3527,3919,4311,4703,5095,5487,5879,6271,6663,7055,7447,7839,8231,8623,9015,9407,9799,10191,10583,10975,11367,11759,12151,12543,12935,13327,13719,14111,14503,14895,15287,15679,16071,16463,16855,17247,17639,18031,18423,18815,19207,19599,19991,20383,2077... |
; A317301: Sequence obtained by taking the general formula for generalized k-gonal numbers: m*((k - 2)*m - k + 4)/2, where m = 0, +1, -1, +2, -2, +3, -3, ... and k >= 5. Here k = 1.
; 0,1,-2,1,-5,0,-9,-2,-14,-5,-20,-9,-27,-14,-35,-20,-44,-27,-54,-35,-65,-44,-77,-54,-90,-65,-104,-77,-119,-90,-135,-104,-152,-119,-170,-13... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x193bf, %rsi
lea addresses_WT_ht+0x1750d, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
xor $27465, %r13
mov $67, %rcx
rep movsl
nop
nop
and $7504, %r11
lea addresses_A_ht+0x1daf, %rsi
nop
n... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/DeletePlacementResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#in... |
/*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* 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 the License, or (at your opti... |
;*****************************************************************************
;*++
;* Name : $RCSfile: fast.asm,v $
;* Title :
;* ASM Author : Jim Page
;* Created : 20/04/94
;*
;* Copyright : 1995-2022 Imagination Technologies (c)
;* License : MIT
;*
;* Description : Pentium optimised... |
const_def
const PAL_TOWNMAP_BORDER ; 0
const PAL_TOWNMAP_EARTH ; 1
const PAL_TOWNMAP_MOUNTAIN ; 2
const PAL_TOWNMAP_CITY ; 3
const PAL_TOWNMAP_POI ; 4
const PAL_TOWNMAP_POI_MTN ; 5
townmappals: MACRO
rept _NARG / 2
dn PAL_TOWNMAP_\2, PAL_TOWNMAP_\1
shift 2
endr
ENDM
; gfx/pokegear/town_map.png... |
/*
* Copyright 2019 Autoware Foundation. 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 b... |
.program:
ji i4
noop
DATA_SECTION_OFFSET[0..32]
DATA_SECTION_OFFSET[32..64]
lw $ds $is 1
add $$ds $$ds $is
lw $r0 data_0 ; literal instantiation
lw $r1 data_0 ; literal instantiation
lw $r0 data_0 ; literal instantiation
jnzi $r0 i11
ji i12
lw $r1 data_1 ... |
LoreleisRoom_h:
db GYM ; tileset
db LORELEIS_ROOM_HEIGHT, LORELEIS_ROOM_WIDTH ; dimensions (y, x)
dw LoreleisRoom_Blocks ; blocks
dw LoreleisRoom_TextPointers ; texts
dw LoreleisRoom_Script ; scripts
db 0 ; connections
dw LoreleisRoom_Object ; objects
|
/**************************************************************************
* Created: 2010/06/07 2:09
* Author: Eugene V. Palchukovsky
* E-mail: eugene@palchukovsky.com
* -------------------------------------------------------------------
* Project: TunnelEx
* URL: http://tunnelex.net
**********... |
; Yahtzee 2600
; ============
;
; A port of Yahtzee to the Atari 2600
;
; © 2019 Jeremy J Starcher
; < jeremy.starcher@gmail.com >
;
; The skeleton of this code is ripped from the
; Atari version of 2048 by...
;
; © 2014 Carlos Duarte do Nascimento (chesterbr)
; <cd@pobox.com | @chesterbr | http://chester.me>
;
; Lat... |
// -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2021, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2021, Knut Reinert & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of th... |
// Scintilla source code edit control
/** @file RESearch.cxx
** Regular expression search library.
**/
/*
* regex - Regular expression pattern matching and replacement
*
* By: Ozan S. Yigit (oz)
* Dept. of Computer Science
* York University
*
* Original code available from http://www.cs.yorku.ca/~o... |
.data # Program at 1.1
.byte 10 # StringLiteral at 6.12
.byte 0 # StringLiteral at 6.12
.byte 0 # StringLiteral at 6.12
.byte 0 # StringLiteral at 6.12
.word CLASS_String # StringLiteral at 6.12
.word 2 # StringLiteral at 6.12
.word -1 # StringLiteral at 6.12
strLit_16: # StringLit... |
MODULE __printf_handle_B
SECTION code_clib
PUBLIC __printf_handle_B
EXTERN __printf_number
EXTERN __printf_set_base
EXTERN __printf_disable_plus_flag
__printf_handle_B:
IF __CPU_INTEL__ | __CPU_GBZ80__
ld c,2
call __printf_set_base
call __printf_disable_plus_flag
EL... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; wAx
; Integrated Monitor Tools
; (c)2020, Jason Justian
;
; Release 1 - May 16, 2020
; Release 2 - May 23, 2020
; Release 3 -... |
; A122074: a(0)=1, a(1)=6, a(n) = 7*a(n-1) - 2*a(n-2).
; 1,6,40,268,1796,12036,80660,540548,3622516,24276516,162690580,1090281028,7306586036,48965540196,328145609300,2199088184708,14737326074356,98763106151076,661867090908820,4435543424059588,29725069786599476,199204401658077156,1334980672033341140,8946455900917233668,... |
; see engine/naming_screen.asm
MailEntry_Uppercase:
db "A B C D E F G H I J"
db "K L M N O P Q R S T"
db "U V W X Y Z , ? !"
db "1 2 3 4 5 6 7 8 9 0"
db "<PK> <MN> <PO> <KE> é ♂ ♀ ¥ … ×"
db "lower DEL END "
MailEntry_Lowercase:
db "a b c d e f g h i j"
db "k l m n o p q r s t"
db "u v w x y z . - /"... |
; A136437: a(n) = prime(n) - k! where k is the greatest number such that k! <= prime(n).
; 0,1,3,1,5,7,11,13,17,5,7,13,17,19,23,29,35,37,43,47,49,55,59,65,73,77,79,83,85,89,7,11,17,19,29,31,37,43,47,53,59,61,71,73,77,79,91,103,107,109,113,119,121,131,137,143,149,151,157,161,163,173,187,191,193,197,211,217,227,229,233,2... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_AF
;TEST_FILE_META_END
; TEST8ri
mov ah, 0x2
;TEST_BEGIN_RECORDING
test ah, 0x3
;TEST_END_RECORDING
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x826a, %rsi
lea addresses_D_ht+0x1166a, %rdi
nop
nop
nop
nop
nop
and $33592, %r9
mov $125, %rcx
rep movsq
nop
nop
nop
nop
nop
sub $69, %r9
lea addresses_D_ht+0xe1ca, %r10
nop
... |
#include "hyperparameter_tuning.h"
#include <catboost/private/libs/algo/data.h>
#include <catboost/private/libs/algo/approx_dimension.h>
#include <catboost/libs/data/feature_names_converter.h>
#include <catboost/libs/data/objects_grouping.h>
#include <catboost/libs/helpers/cpu_random.h>
#include <catboost/libs/helpers... |
; A028158: Expansion of 1/((1-4x)(1-8x)(1-10x)(1-11x)).
; Submitted by Christian Krause
; 1,33,695,11925,181911,2572893,34540735,446515125,5610825671,68978848653,833511432975,9933242415525,117049255275031,1366477139586813,15829397675656415,182175233504671125,2085009104934341991,23750419100554859373,26944382829717391505... |
; A142231: Primes congruent to 34 mod 41.
; Submitted by Jamie Morken(s4)
; 157,239,977,1223,1879,2207,2371,2617,2699,3109,3191,3847,3929,4093,4339,4421,4831,5077,5323,5569,5651,5897,6143,6389,6553,7127,7537,8111,8521,8849,9013,9341,9587,9833,10079,10243,11719,11801,12211,12457,12539,12703,13441,13523,13687,13933,14753... |
; A134467: a(n) = n(n+1) - A000120(n), where A000120(n) = number of 1's in binary expansion of n.
; 0,1,5,10,19,28,40,53,71,88,108,129,154,179,207,236,271,304,340,377,418,459,503,548,598,647,699,752,809,866,926,987,1055,1120,1188,1257,1330,1403,1479,1556,1638,1719,1803,1888,1977,2066,2158,2251,2350,2447,2547,2648,2753,... |
; A053384: A053398(4, n).
; 2,2,2,2,3,3,3,3,2,2,2,2,4,4,4,4,2,2,2,2,3,3,3,3,2,2,2,2,5,5,5,5,2,2,2,2,3,3,3,3,2,2,2,2,4,4,4,4,2,2,2,2,3,3,3,3,2,2,2,2,6,6,6,6,2,2,2,2,3,3,3,3,2,2,2,2,4,4,4,4,2,2,2,2,3,3,3,3,2,2,2,2,5,5,5,5,2,2,2,2,3,3,3,3,2,2,2,2,4,4,4,4,2,2,2,2,3,3,3,3,2,2,2,2,7,7,7,7,2,2,2,2,3,3,3,3,2,2,2,2,4,4,4,4,2,2,... |
###############################################################################
# Copyright 2018 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.