repo_id string | size int64 | file_path string | content string |
|---|---|---|---|
XboxDev/nxdk | 3,740 | lib/xboxrt/c_runtime/_aullrem.s | // SPDX-License-Identifier: MIT OR NCSA
// SPDX-FileCopyrightText: 2008 Stephen Canon
// SPDX-FileCopyrightText: 2018-2021 Stefan Schmidt
// du_int __umoddi3(du_int a, du_int b);
// result = remainder of a / b.
// both inputs and the output are 64-bit unsigned integers.
// This will do whatever the underlying hardwa... |
XboxDev/nxdk | 3,517 | lib/xboxrt/c_runtime/_aulldiv.s | // SPDX-License-Identifier: MIT OR NCSA
// SPDX-FileCopyrightText: 2008 Stephen Canon
// SPDX-FileCopyrightText: 2018-2021 Stefan Schmidt
// du_int __udivdi3(du_int a, du_int b);
// result = a / b.
// both inputs and the output are 64-bit unsigned integers.
// This will do whatever the underlying hardware is set to ... |
XboxDev/nxdk | 5,048 | lib/xboxrt/c_runtime/_alldiv.s | // SPDX-License-Identifier: MIT OR NCSA
// SPDX-FileCopyrightText: 2008 Stephen Canon
// SPDX-FileCopyrightText: 2018-2021 Stefan Schmidt
// di_int __divdi3(di_int a, di_int b);
// result = a / b.
// both inputs and the output are 64-bit signed integers.
// This will do whatever the underlying hardware is set to do ... |
XboxDev/nxdk | 1,056 | lib/xboxrt/c_runtime/chkstk.s | // SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: 2018-2021 Stefan Schmidt
.include "prelude.s.inc"
safeseh_prelude
/*
__chkstk does not comply to any standardized calling convention.
When called, eax contains the size of the request, and esp is modified
accordingly before returning.
Calling... |
XboxDev/nxdk | 5,124 | lib/xboxrt/c_runtime/_allrem.s | // SPDX-License-Identifier: MIT OR NCSA
// SPDX-FileCopyrightText: 2008 Stephen Canon
// SPDX-FileCopyrightText: 2018-2021 Stefan Schmidt
// di_int __moddi3(di_int a, di_int b);
// result = remainder of a / b.
// both inputs and the output are 64-bit signed integers.
// This will do whatever the underlying hardware ... |
xbret/xenoblade | 9,068 | libs/PowerPC_EABI_Support/src/MetroTRK/__exception.s | .include "macros.inc"
.section .init, "ax"
.global gTRKInterruptVectorTable
gTRKInterruptVectorTable:
.string "Metrowerks Target Resident Kernel for PowerPC"
.balign 4, 0
.fill 0xD0
#############################################
# Interrupt vector slot 0x0000 is reserved. #
###########################################... |
xbyl1234/jni_trace | 1,077 | module/src/main/cpp/third/dobby/source/TrampolineBridge/ClosureTrampolineBridge/arm/dummy/closure-trampoline-template-arm.S | // .section __TEXT,__text,regular,pure_instructions
#if defined(ENABLE_CLOSURE_BRIDGE_TEMPLATE)
#if defined(__WIN32__) || defined(__APPLE__)
#define cdecl(s) _##s
#else
#define cdecl(s) s
#endif
.align 4
#if !defined(ENABLE_CLOSURE_TRAMPOLINE_CARRY_OBJECT_PTR)
// closure trampoline carray the object pointer, and f... |
xbyl1234/jni_trace | 1,230 | module/src/main/cpp/third/dobby/source/TrampolineBridge/ClosureTrampolineBridge/arm64/dummy/closure-trampoline-template-arm64.S | // .section __TEXT,__text,regular,pure_instructions
#if defined(ENABLE_CLOSURE_BRIDGE_TEMPLATE)
#if defined(__WIN32__) || defined(__APPLE__)
#define cdecl(s) _##s
#else
#define cdecl(s) s
#endif
.align 4
#if !defined(ENABLE_CLOSURE_TRAMPOLINE_CARRY_OBJECT_PTR)
// closure trampoline carray the object pointer, and f... |
xbyl1234/android_analysis | 1,077 | app/src/main/cpp/third/dobby/source/TrampolineBridge/ClosureTrampolineBridge/arm/dummy/closure-trampoline-template-arm.S | // .section __TEXT,__text,regular,pure_instructions
#if defined(ENABLE_CLOSURE_BRIDGE_TEMPLATE)
#if defined(__WIN32__) || defined(__APPLE__)
#define cdecl(s) _##s
#else
#define cdecl(s) s
#endif
.align 4
#if !defined(ENABLE_CLOSURE_TRAMPOLINE_CARRY_OBJECT_PTR)
// closure trampoline carray the object pointer, and f... |
xbyl1234/android_analysis | 1,230 | app/src/main/cpp/third/dobby/source/TrampolineBridge/ClosureTrampolineBridge/arm64/dummy/closure-trampoline-template-arm64.S | // .section __TEXT,__text,regular,pure_instructions
#if defined(ENABLE_CLOSURE_BRIDGE_TEMPLATE)
#if defined(__WIN32__) || defined(__APPLE__)
#define cdecl(s) _##s
#else
#define cdecl(s) s
#endif
.align 4
#if !defined(ENABLE_CLOSURE_TRAMPOLINE_CARRY_OBJECT_PTR)
// closure trampoline carray the object pointer, and f... |
xbyl1234/instagram_lite_bot | 2,426 | analyse/app/src/main/cpp/third/libunwind/AsmGetRegsMips.S | /*
* Copyright (C) 2017 The Android Open Source Project
* 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, t... |
xbyl1234/instagram_lite_bot | 1,995 | analyse/app/src/main/cpp/third/libunwind/AsmGetRegsX86_64.S | /*
* Copyright (C) 2016 The Android Open Source Project
* 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, t... |
xbyl1234/instagram_lite_bot | 2,436 | analyse/app/src/main/cpp/third/libunwind/AsmGetRegsMips64.S | /*
* Copyright (C) 2017 The Android Open Source Project
* 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, t... |
xbyl1234/instagram_lite_bot | 1,962 | analyse/app/src/main/cpp/third/libunwind/AsmGetRegsX86.S | /*
* Copyright (C) 2016 The Android Open Source Project
* 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, t... |
xbyl1234/instagram_lite_bot | 1,077 | analyse/app/src/main/cpp/third/dobby/source/TrampolineBridge/ClosureTrampolineBridge/arm/dummy/closure-trampoline-template-arm.S | // .section __TEXT,__text,regular,pure_instructions
#if defined(ENABLE_CLOSURE_BRIDGE_TEMPLATE)
#if defined(__WIN32__) || defined(__APPLE__)
#define cdecl(s) _##s
#else
#define cdecl(s) s
#endif
.align 4
#if !defined(ENABLE_CLOSURE_TRAMPOLINE_CARRY_OBJECT_PTR)
// closure trampoline carray the object pointer, and f... |
xbyl1234/instagram_lite_bot | 1,230 | analyse/app/src/main/cpp/third/dobby/source/TrampolineBridge/ClosureTrampolineBridge/arm64/dummy/closure-trampoline-template-arm64.S | // .section __TEXT,__text,regular,pure_instructions
#if defined(ENABLE_CLOSURE_BRIDGE_TEMPLATE)
#if defined(__WIN32__) || defined(__APPLE__)
#define cdecl(s) _##s
#else
#define cdecl(s) s
#endif
.align 4
#if !defined(ENABLE_CLOSURE_TRAMPOLINE_CARRY_OBJECT_PTR)
// closure trampoline carray the object pointer, and f... |
xbyl1234/instagram_lite_bot | 1,492 | lite/three/sonic/internal/rt/asm_amd64.s | // +build !noasm !appengine
// Code generated by asm2asm, DO NOT EDIT·
#include "go_asm.h"
#include "funcdata.h"
#include "textflag.h"
TEXT ·MoreStack(SB), NOSPLIT, $0 - 8
NO_LOCAL_POINTERS
_entry:
MOVQ (TLS), R14
MOVQ size+0(FP), R12
NOTQ R12
LEAQ (SP)(R12*1), R12
CMPQ R12, 16(R14)
JBE _... |
xbyl1234/instagram_lite_bot | 1,053 | lite/three/sonic/internal/decoder/generic_amd64_go117_test.s | // +build go1.17,!go1.21
//
// Copyright 2021 ByteDance 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... |
xbyl1234/instagram_lite_bot | 1,052 | lite/three/sonic/internal/decoder/generic_amd64_test.s | // +build go1.15,!go1.17
//
// Copyright 2021 ByteDance 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... |
xbyl1234/instagram_lite_bot | 15,839 | lite/three/zlib/contrib/gcc_gvmat64/gvmat64.S | /*
;uInt longest_match_x64(
; deflate_state *s,
; IPos cur_match); // current match
; gvmat64.S -- Asm portion of the optimized longest_match for 32 bits x86_64
; (AMD64 on Athlon 64, Opteron, Phenom
; and Intel EM64T on Pentium 4 with EM64T, Pentium D, Core 2 Duo, Core I5/I7)
;... |
XDagger/xdag | 1,991 | client/x86_64cpuid.s |
.hidden xOPENSSL_ia32cap_P
.comm xOPENSSL_ia32cap_P,16,4
.text
.globl xOPENSSL_ia32_cpuid
.type xOPENSSL_ia32_cpuid,@function
.align 16
xOPENSSL_ia32_cpuid:
movq %rbx,%r8
xorl %eax,%eax
movl %eax,8(%rdi)
cpuid
movl %eax,%r11d
xorl %eax,%eax
cmpl $0x756e6547,%ebx
setne %al
movl %eax,%r9d
cmpl $0x49656e69... |
XDagger/xdag | 2,157 | client/x86_64cpuid-mac.s | .private_extern _xOPENSSL_ia32cap_P
.comm _xOPENSSL_ia32cap_P,16,2
.text
.globl _xOPENSSL_ia32_cpuid
.p2align 4
_xOPENSSL_ia32_cpuid:
movq %rbx,%r8
xorl %eax,%eax
movl %eax,8(%rdi)
cpuid
movl %eax,%r11d
xorl %eax,%eax
cmpl $0x756e6547,%ebx
setne %al
movl %eax,%r9d
cmpl $0x49656e69,%edx
setne %al
orl ... |
XDagger/xdag | 28,453 | secp256k1/src/asm/field_10x26_arm.s | @ vim: set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab syntax=armasm:
/**********************************************************************
* Copyright (c) 2014 Wladimir J. van der Laan *
* Distributed under the MIT software license, see the accompanying *
* file COPYING or http://www... |
XDagger/xdag | 154,762 | client/algorithms/sha256-mb-x86_64-mac.s | .text
.globl _xsha256_multi_block
.p2align 5
_xsha256_multi_block:
movq _xOPENSSL_ia32cap_P+4(%rip),%rcx
btq $61,%rcx
jc _shaext_shortcut
testl $268435456,%ecx
jnz _avx_shortcut
movq %rsp,%rax
pushq %rbx
pushq %rbp
subq $288,%rsp
andq $-256,%rsp
movq %rax,272(%rsp)
L$body:
leaq K256+128(%rip),%rbp
lea... |
XDagger/xdag | 155,126 | client/algorithms/sha256-mb-x86_64.s | .text
.globl xsha256_multi_block
.type xsha256_multi_block,@function
.align 32
xsha256_multi_block:
movq xOPENSSL_ia32cap_P+4(%rip),%rcx
btq $61,%rcx
jc _shaext_shortcut
testl $268435456,%ecx
jnz _avx_shortcut
movq %rsp,%rax
pushq %rbx
pushq %rbp
subq $288,%rsp
andq $-256,%rsp
movq %rax,272(%rsp)
.Lbody:... |
xddcore/OpenNNA2.0 | 29,390 | platform/OpenNNA_STM32H7A3/Test Speed(CMSIS-DSP)/OpenNNA_STM32H7A3_Demo_Example/Core/Startup/startup_stm32h7a3zitxq.s | /**
******************************************************************************
* @file startup_stm32h7a3xxq.s
* @author MCD Application Team
* @brief STM32H7B3xx Devices vector table for GCC based toolchain.
* This module performs:
* - Set the initial SP
* ... |
xddcore/OpenNNA2.0 | 29,390 | platform/OpenNNA_STM32H7A3/Test Speed(FPU)/OpenNNA_STM32H7A3_Demo_Example/Core/Startup/startup_stm32h7a3zitxq.s | /**
******************************************************************************
* @file startup_stm32h7a3xxq.s
* @author MCD Application Team
* @brief STM32H7B3xx Devices vector table for GCC based toolchain.
* This module performs:
* - Set the initial SP
* ... |
xddcore/OpenNNA2.0 | 29,390 | platform/OpenNNA_STM32H7A3/OpenNNA_STM32H7A3_Demo_Example/Core/Startup/startup_stm32h7a3zitxq.s | /**
******************************************************************************
* @file startup_stm32h7a3xxq.s
* @author MCD Application Team
* @brief STM32H7B3xx Devices vector table for GCC based toolchain.
* This module performs:
* - Set the initial SP
* ... |
x-eks-fusion/xfusion | 8,492 | boards/pt/pt3220/startup.s | ;ChipId: PT3220
;Stack Configuration------------------------------------------------------------
Stack_Size EQU 0x600
AREA STACK, NOINIT, READWRITE, ALIGN=3
Stack_Mem SPACE Stack_Size
__initial_sp
;-------------------------------------------------------------------------------
;Hea... |
xelerance/Openswan | 24,774 | lib/libcrypto/libaes/aes-i586.S | //
// Copyright (c) 2001, Dr Brian Gladman <brg@gladman.uk.net>, Worcester, UK.
// All rights reserved.
//
// TERMS
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted subject to the following conditions:
//
// 1. Redistributions of source code must retain the abov... |
xelerance/Openswan | 10,328 | linux/net/ipsec/match586.S | /* match.s -- Pentium-optimized version of longest_match()
* Written for zlib 1.1.2
* Copyright (C) 1998 Brian Raiter <breadbox@muppetlabs.com>
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License.
*/
#ifndef NO_UNDERLINE
#define match_init _ipco... |
xelerance/Openswan | 9,109 | linux/net/ipsec/match686.S | /* match.s -- Pentium-Pro-optimized version of longest_match()
* Written for zlib 1.1.2
* Copyright (C) 1998 Brian Raiter <breadbox@muppetlabs.com>
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License.
*/
#ifndef NO_UNDERLINE
#define match_init _... |
xelerance/Openswan | 24,774 | linux/net/ipsec/aes/aes-i586.S | //
// Copyright (c) 2001, Dr Brian Gladman <brg@gladman.uk.net>, Worcester, UK.
// All rights reserved.
//
// TERMS
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted subject to the following conditions:
//
// 1. Redistributions of source code must retain the abov... |
xelerance/Openswan | 63,365 | linux/net/ipsec/des/dx86unix.S | /*
* This file was originally generated by Michael Richardson <mcr@freeswan.org>
* via the perl scripts found in the ASM subdir. It remains copyright of
* Eric Young, see the file COPYRIGHT.
*
* This was last done on October 9, 2002.
*
* While this file does not need to go through cpp, we pass it through
* CPP... |
xem/nes | 4,719 | nes-test-roms/tvpassfail/tv.s | PPUCTRL = $2000
PPUMASK = $2001
PPUSTATUS = $2002
PPUSCROLL = $2005
PPUADDR = $2006
PPUDATA = $2007
P1 = $4016
P2 = $4017
.segment "ZEROPAGE"
retraces: .res 3
isPAL: .res 1
palstate: .res 1
joy1: .res 1
last_joy1: .res 1
joy1new: .res 1
.segment "VECTORS"
.addr nmi, reset, irq
.segment "INESHDR"
.byt "NES", 2... |
xem/nes | 2,547 | nes-test-roms/nmi_sync/demo_pal.s | ; Uses nmi_sync to manually display line on screen
; using timed write. See readme.txt.
;
; PAL NES only. Tested on hardware.
;
; ca65 -o rom.o demo_pal.s
; ld65 -C unrom.cfg rom.o -o demo_pal.nes
;
; Shay Green <gblargg@gmail.com>
.include "nmi_sync.s"
reset:
; Initialize PPU and palette
jsr init_graphics
; Syn... |
xem/nes | 2,543 | nes-test-roms/nmi_sync/demo_ntsc.s | ; Uses nmi_sync to manually display line on screen
; using timed write. See readme.txt.
;
; NTSC NES only. Tested on hardware.
;
; ca65 -o rom.o demo_ntsc.s
; ld65 -C unrom.cfg rom.o -o demo_ntsc.nes
;
; Shay Green <gblargg@gmail.com>
.include "nmi_sync.s"
reset:
; Initialize PPU and palette
jsr init_graphics
; ... |
xem/nes | 3,120 | nes-test-roms/nmi_sync/nmi_sync.s | ; Allows precise PPU synchronization in NMI handler, without
; having to cycle-time code outside NMI handler.
.zeropage
nmi_sync_count: .res 1
.code
.align 256 ; branches must not cross page
; Initializes synchronization and enables NMI
; Preserved: X, Y
; Time: 15 frames average, 28 frames max
init_nmi_sync:
; Dis... |
xem/nes | 2,988 | nes-test-roms/full_palette/full_palette.s | ; Displays entire 400+ color NTSC NES palette on screen.
; Disables PPU rendering so that current scanline color can be
; set directly by VRAM address, then uses cycle-timed code to
; cycle through all colors in a clean grid.
;
; ca65 -o full_palette.o full_palette.s
; ld65 -t nes full_palette.o -o full_palette.nes
;
;... |
xem/nes | 3,135 | nes-test-roms/full_palette/full_palette_smooth.s | ; Displays entire 400+ color NTSC NES palette on screen.
; Disables PPU rendering so that current scanline color can be
; set directly by VRAM address, then uses cycle-timed code to
; cycle through all colors in a clean grid.
;
; ca65 -o full_palette_smooth.o full_palette_smooth.s
; ld65 -t nes full_palette_smooth.o -o... |
xem/nes | 4,095 | nes-test-roms/nrom368/crt0.s | ; Startup code for cc65 and Shiru's NES library
; based on code by Groepaz/Hitmen <groepaz@gmx.net>, Ullrich von Bassewitz <uz@cc65.org>
NES_MAPPER =0 ;mapper number
NES_PRG_BANKS =3 ;number of 16K PRG banks, change to 2 for NROM256
NES_CHR_BANKS =1 ;number of 8K CHR banks
NES_MIRRORING =0 ;0 horizontal, 1 v... |
xem/nes | 12,004 | nes-test-roms/nrom368/neslib.s | ;NES hardware-dependent functions by Shiru (shiru@mail.ru)
;Feel free to do anything you want with this code, consider it Public Domain
.export _pal_all,_pal_bg,_pal_spr,_pal_col,_pal_clear,_pal_bright
.export _ppu_off,_ppu_on_all,_ppu_on_bg,_ppu_on_spr,_ppu_mask
.export _oam_clear,_oam_spr,_oam_meta_spr,_oam_hide... |
xem/nes | 20,555 | nes-test-roms/nrom368/famitone.s | ;FamiTone audio library v1.24
;by Shiru (shiru@mail.ru) 06'11
;The name is suggested by Memblers from NesDev
;Feel free to do anything you want with this code, consider it Public Domain
;aliases for APU registers
APU_PL1_VOL = $4000
APU_PL1_SWEEP = $4001
APU_PL1_LO = $4002
APU_PL1_HI = $4003
APU_PL2_VOL = $400... |
xem/nes | 36,714 | nes-test-roms/scrolltest/scroll.s | ;ͻ
;Split screen multidirection scrolling with MMC1 mapper
;Written by Cadaver, 1-2/2000
;Fixed to work on Nintendulator by Cadaver, 1/2004, added NTSC detection
;More stuff maybe to follow..
;... |
xem/nes | 2,338 | nes-test-roms/mmc3_test_2/source/1-clocking.s | .include "test_mmc3.inc"
main:
jsr begin_mmc3_tests
set_test 2,"Counter/IRQ/A12 clocking isn't working at all"
ldx #10
jsr begin_counter_test
jsr clock_counter ; counter = 10
jsr clock_counter
jsr should_be_clear ; counter shouldn't be zero yet
set_test 3,"Should decrement when A12 is toggled via ... |
xem/nes | 1,997 | nes-test-roms/mmc3_test_2/source/2-details.s | ; Tests MMC3 IRQ counter details
.include "test_mmc3.inc"
main:
jsr begin_mmc3_tests
set_test 2,"Counter isn't working when reloaded with 255"
ldx #255
jsr begin_counter_test
ldx #255
jsr clock_counter_x ; first clock loads with 255
jsr should_be_clear
jsr clock_counter
jsr should_be_set
set_test 3,"Co... |
xem/nes | 1,565 | nes-test-roms/mmc3_test_2/source/6-MMC3_alt.s | ; Tests alternate MMC3 behavior. Some MMC3 chips also have this behavior,
; though their markings appear identical to those that have normal
; MMC3 behavior. My copy of Crystalis in particular behaves this way,
; but not my copy of Super Mario Bros. 3, even though both have a chip
; marked MMC3B.
.include "test_mmc3.i... |
xem/nes | 2,470 | nes-test-roms/mmc3_test_2/source/4-scanline_timing.s | ; Tests MMC3 IRQ timing to PPU clock accuracy. Tests both modes,
; $2000=$08 and $2000=$10.
;
; Timing tested is between $2002 reads of VBL flag first set,
; and IRQ occurring.
.include "test_mmc3.inc"
.include "sync_vbl.s"
.macro test mode, count, n
.local n_
n_ = (n) + 1
setb PPUMASK,0
jsr sync_vbl_even
delay_... |
xem/nes | 1,649 | nes-test-roms/mmc3_test_2/source/3-A12_clocking.s | ; Tests MMC3 IRQ clocking via bit 12 of VRAM address
.include "test_mmc3.inc"
main:
jsr begin_mmc3_tests
setb PPUCTRL,0 ; disable PPU, sprites and bg use $0xxx patterns
sta PPUMASK
set_test 2,"Shouldn't be clocked when A12 doesn't change"
ldx #1
jsr begin_counter_test
lda #$00 ; tr... |
xem/nes | 1,852 | nes-test-roms/mmc3_test_2/source/common/testing.s | ; Utilities for writing test ROMs
; In NVRAM so these can be used before initializing runtime,
; then runtime initialized without clearing them
nv_res test_code ; code of current test
nv_res test_name,2 ; address of name of current test, or 0 of none
; Sets current test code and optional name. Also resets
; checksum... |
xem/nes | 2,841 | nes-test-roms/mmc3_test_2/source/common/print.s | ; Prints values in various ways to output,
; including numbers and strings.
newline = 10
zp_byte print_temp_
; Prints indicated register to console as two hex
; chars and space
; Preserved: A, X, Y, flags
print_a:
php
pha
print_reg_:
jsr print_hex
lda #' '
jsr print_char_
pla
plp
rts
print_x:
php
pha
txa... |
xem/nes | 3,089 | nes-test-roms/mmc3_test_2/source/common/shell_misc.s | ; Reports internal error and exits program
internal_error:
print_str newline,"Internal error"
lda #255
jmp exit
.import __NVRAM_LOAD__, __NVRAM_SIZE__
.macro fill_ram_ Begin, End
; Simpler to count from negative size up to 0,
; and adjust address downward to compensate
; for initial low byte in Y index
.local ... |
xem/nes | 1,483 | nes-test-roms/mmc3_test_2/source/common/build_rom.s | ; Builds program as iNES ROM
; Default is 32K PRG and 8K CHR ROM, NROM (0)
.if 0 ; Options to set before .include "shell.inc":
CHR_RAM=1 ; Use CHR-RAM instead of CHR-ROM
CART_WRAM=1 ; Use mapper that supports 8K WRAM in cart
CUSTOM_MAPPER=n ; Specify mapper number
.endif
.ifndef CUSTOM_MAPPER
.ifdef CART_... |
xem/nes | 5,404 | nes-test-roms/mmc3_test_2/source/common/console.s | ; Scrolling text console with word wrapping, 30x29 characters.
;
; * Defers PPU initialization until first flush/ newline.
; * Works even if PPU doesn't support scrolling.
; * Keeps border around edge of screen for TV overscan.
; * Requires vertical or single-screen mirroring.
; * Requires ASCII font in CHR.
.ifndef C... |
xem/nes | 1,096 | nes-test-roms/mmc3_test_2/source/common/text_out.s | ; Text output as expanding zero-terminated string at text_out_base
; The final exit result byte is written here
final_result = $6000
; Text output is written here as an expanding
; zero-terminated string
text_out_base = $6004
bss_res text_out_temp
zp_res text_out_addr,2
init_text_out:
ldx #0
; Put valid data fi... |
xem/nes | 3,060 | nes-test-roms/mmc3_test_2/source/common/ppu.s | ; PPU utilities
bss_res ppu_not_present
; Sets PPUADDR to w
; Preserved: X, Y
.macro set_ppuaddr w
bit PPUSTATUS
setb PPUADDR,>w
setb PPUADDR,<w
.endmacro
; Delays by no more than n scanlines
.macro delay_scanlines n
.if CLOCK_RATE <> 1789773
.error "Currently only supports NTSC"
.endif
delay ((n)*341)/3
.e... |
xem/nes | 2,698 | nes-test-roms/mmc3_test_2/source/common/shell.s | ; Shell that sets up testing framework and calls main
; Detect inclusion loops (otherwise ca65 goes crazy)
.ifdef SHELL_INCLUDED
.error "shell.s included twice"
.end
.endif
SHELL_INCLUDED = 1
; Temporary variables that ANY routine might modify, so
; only use them between routine calls.
temp = <$A
temp2 = <$B
tem... |
xem/nes | 3,550 | nes-test-roms/mmc3_test_2/source/common/sync_vbl.s | ; Synchronizes EXACTLY to VBL, to accuracy of 1/3 CPU clock
; (1/2 CPU clock if PPU is enabled). Reading PPUSTATUS
; 29768 clocks or later after return will have bit 7 set.
; Reading PPUSTATUS immediately will have bit 7 clear.
; Preserved: A, X, Y
; Time: 120-330 msec
.align 128
sync_vbl:
pha
; Disable interrupts
... |
xem/nes | 3,437 | nes-test-roms/mmc3_test_2/source/common/delay.s | ; Delays in CPU clocks, milliseconds, etc. All routines are re-entrant
; (no global data). No routines touch X or Y during execution.
; Code generated by macros is relocatable; it contains no JMPs to itself.
zp_byte delay_temp_ ; only written to
; Delays n clocks, from 2 to 16777215
; Preserved: A, X, Y, flags
.macro... |
xem/nes | 1,632 | nes-test-roms/mmc3_test_2/source/common/crc.s | ; CRC-32 checksum calculation
zp_res checksum,4
zp_byte checksum_temp
zp_byte checksum_off_
; Turns CRC updating on/off. Allows nesting.
; Preserved: A, X, Y
crc_off:
dec checksum_off_
rts
crc_on: inc checksum_off_
beq :+
jpl internal_error ; catch unbalanced crc calls
: rts
; Initializes checksum modul... |
xem/nes | 1,425 | nes-test-roms/ppu_vbl_nmi/source/10-even_odd_timing.s | ; Tests timing of skipped clock every other frame
; when BG is enabled.
;
; Output: 08 08 09 07
.include "shell.inc"
.include "sync_vbl.s"
adjust = 2359
.align 256
test: jsr disable_rendering
jsr sync_vbl_delay
delay 13
; $2001=X for most of VBL, Y for part of frame, then 0
stx $2001
delay adjust-4-4
sty $... |
xem/nes | 2,740 | nes-test-roms/ppu_vbl_nmi/source/04-nmi_control.s | ; Tests immediate NMI behavior when enabling while VBL flag is already set
CUSTOM_NMI=1
.include "shell.inc"
zp_byte nmi_count
nmi: inc nmi_count
rti
; Waits until NMI is about to occur
begin: lda #0
sta $2000
jsr wait_vbl
delay 29600
lda #0
sta nmi_count
rts
; Enables NMI, waits, then reads NMI count
e... |
xem/nes | 1,092 | nes-test-roms/ppu_vbl_nmi/source/09-even_odd_frames.s | ; Tests clock skipped on every other PPU frame when BG rendering
; is enabled.
;
; Tries pattern of BG enabled/disabled during a sequence of
; 5 frames, then finds how many clocks were skipped. Prints
; number skipped clocks to help find problems.
;
; Correct output: 00 01 01 02
.include "shell.inc"
.include "sync_vbl... |
xem/nes | 1,850 | nes-test-roms/ppu_vbl_nmi/source/common/testing.s | ; Utilities for writing test ROMs
; In NVRAM so these can be used before initializing runtime,
; then runtime initialized without clearing them
nv_res test_code ; code of current test
nv_res test_name,2 ; address of name of current test, or 0 of none
; Sets current test code and optional name. Also resets
; checksum... |
xem/nes | 3,234 | nes-test-roms/ppu_vbl_nmi/source/common/print.s | ; Prints values in various ways to output,
; including numbers and strings.
newline = 10
zp_byte print_temp_
; Prints indicated register to console as two hex
; chars and space
; Preserved: A, X, Y, flags
print_a:
php
pha
print_reg_:
jsr print_hex
lda #' '
jsr print_char_
pla
plp
rts
print_x:
php
pha
txa... |
xem/nes | 3,456 | nes-test-roms/ppu_vbl_nmi/source/common/shell_misc.s | ; Reports internal error and exits program
internal_error:
assert_failed:
pla
tay
pla
init_cpu_regs
print_str newline,"internal error, PC="
jsr print_hex
jsr print_y
lda #255
jmp exit
.import __NVRAM_LOAD__, __NVRAM_SIZE__
.macro fill_ram_ Begin, End
; Simpler to count from negative size up to 0,
; and adj... |
xem/nes | 1,516 | nes-test-roms/ppu_vbl_nmi/source/common/build_rom.s | ; Builds program as iNES ROM
; Default is 32K PRG and 8K CHR ROM, NROM (0)
.if 0 ; Options to set before .include "shell.inc":
CHR_RAM=1 ; Use CHR-RAM instead of CHR-ROM
CART_WRAM=1 ; Use mapper that supports 8K WRAM in cart
CUSTOM_MAPPER=n ; Specify mapper number
.endif
.ifndef CUSTOM_MAPPER
.ifdef CART_... |
xem/nes | 5,404 | nes-test-roms/ppu_vbl_nmi/source/common/console.s | ; Scrolling text console with word wrapping, 30x29 characters.
;
; * Defers PPU initialization until first flush/ newline.
; * Works even if PPU doesn't support scrolling.
; * Keeps border around edge of screen for TV overscan.
; * Requires vertical or single-screen mirroring.
; * Requires ASCII font in CHR.
.ifndef C... |
xem/nes | 1,096 | nes-test-roms/ppu_vbl_nmi/source/common/text_out.s | ; Text output as expanding zero-terminated string at text_out_base
; The final exit result byte is written here
final_result = $6000
; Text output is written here as an expanding
; zero-terminated string
text_out_base = $6004
bss_res text_out_temp
zp_res text_out_addr,2
init_text_out:
ldx #0
; Put valid data fi... |
xem/nes | 3,060 | nes-test-roms/ppu_vbl_nmi/source/common/ppu.s | ; PPU utilities
bss_res ppu_not_present
; Sets PPUADDR to w
; Preserved: X, Y
.macro set_ppuaddr w
bit PPUSTATUS
setb PPUADDR,>w
setb PPUADDR,<w
.endmacro
; Delays by no more than n scanlines
.macro delay_scanlines n
.if CLOCK_RATE <> 1789773
.error "Currently only supports NTSC"
.endif
delay ((n)*341)/3
.e... |
xem/nes | 2,728 | nes-test-roms/ppu_vbl_nmi/source/common/shell.s | ; Shell that sets up testing framework and calls main
; Detect inclusion loops (otherwise ca65 goes crazy)
.ifdef SHELL_INCLUDED
.error "shell.s included twice"
.end
.endif
SHELL_INCLUDED = 1
; Temporary variables that ANY routine might modify, so
; only use them between routine calls.
temp = <$A
temp2 = <$B
tem... |
xem/nes | 3,713 | nes-test-roms/ppu_vbl_nmi/source/common/sync_vbl.s | ; Synchronizes EXACTLY to VBL, to accuracy of 1/3 CPU clock
; (1/2 CPU clock if PPU is enabled). Reading PPUSTATUS
; 29768 clocks or later after return will have bit 7 set.
; Reading PPUSTATUS immediately will have bit 7 clear.
; Preserved: A, X, Y
; Time: 120-330 msec
.align 128
sync_vbl:
pha
; Disable interrupts
... |
xem/nes | 3,734 | nes-test-roms/ppu_vbl_nmi/source/common/delay.s | ; Delays in CPU clocks, milliseconds, etc. All routines are re-entrant
; (no global data). No routines touch X or Y during execution.
; Code generated by macros is relocatable; it contains no JMPs to itself.
zp_res delay_temp_ ; only written to
; Delays n clocks, from 2 to 16777215
; Preserved: A, X, Y, flags
.macro ... |
xem/nes | 1,600 | nes-test-roms/ppu_vbl_nmi/source/common/crc.s | ; CRC-32 checksum calculation
zp_res checksum,4 ; Current CRC-32; no need to invert
zp_byte checksum_temp
zp_byte checksum_off_
; Turns CRC updating on/off. Allows nesting.
; Preserved: A, X, Y
crc_off:
dec checksum_off_
rts
crc_on: inc checksum_off_
beq :+
jpl internal_error ; catch unbalanced crc calls
:... |
xem/nes | 1,350 | nes-test-roms/apu_mixer/source/noise.s | ; Verifies noise DAC and non-linear mixing
;
; Makes tone by running noise at maximum frequency to get
; soft noise, then toggling its volume between 0 and some
; other value. Cancels this to silence with inverse wave
; generated using DMC DAC.
CUSTOM_TEXT = 1
.include "vol_shell.inc"
text: .byte "2. Should fade no... |
xem/nes | 2,631 | nes-test-roms/apu_mixer/source/square.s | ; Verifies square DACs and non-linear mixing
;
; Plays two square waves in all totals from 0 to 31.
; Cancels this to silence with inverse wave generated
; using DMC DAC.
.include "vol_shell.inc"
test_main:
setb $4001,$7F ; disable sweep
setb $4005,$7F
setb $4002,0 ; period = 0
setb $4003,0
setb $4006,0
set... |
xem/nes | 1,852 | nes-test-roms/apu_mixer/source/common/testing.s | ; Utilities for writing test ROMs
; In NVRAM so these can be used before initializing runtime,
; then runtime initialized without clearing them
nv_res test_code ; code of current test
nv_res test_name,2 ; address of name of current test, or 0 of none
; Sets current test code and optional name. Also resets
; checksum... |
xem/nes | 2,841 | nes-test-roms/apu_mixer/source/common/print.s | ; Prints values in various ways to output,
; including numbers and strings.
newline = 10
zp_byte print_temp_
; Prints indicated register to console as two hex
; chars and space
; Preserved: A, X, Y, flags
print_a:
php
pha
print_reg_:
jsr print_hex
lda #' '
jsr print_char_
pla
plp
rts
print_x:
php
pha
txa... |
xem/nes | 3,089 | nes-test-roms/apu_mixer/source/common/shell_misc.s | ; Reports internal error and exits program
internal_error:
print_str newline,"Internal error"
lda #255
jmp exit
.import __NVRAM_LOAD__, __NVRAM_SIZE__
.macro fill_ram_ Begin, End
; Simpler to count from negative size up to 0,
; and adjust address downward to compensate
; for initial low byte in Y index
.local ... |
xem/nes | 1,483 | nes-test-roms/apu_mixer/source/common/build_rom.s | ; Builds program as iNES ROM
; Default is 32K PRG and 8K CHR ROM, NROM (0)
.if 0 ; Options to set before .include "shell.inc":
CHR_RAM=1 ; Use CHR-RAM instead of CHR-ROM
CART_WRAM=1 ; Use mapper that supports 8K WRAM in cart
CUSTOM_MAPPER=n ; Specify mapper number
.endif
.ifndef CUSTOM_MAPPER
.ifdef CART_... |
xem/nes | 5,404 | nes-test-roms/apu_mixer/source/common/console.s | ; Scrolling text console with word wrapping, 30x29 characters.
;
; * Defers PPU initialization until first flush/ newline.
; * Works even if PPU doesn't support scrolling.
; * Keeps border around edge of screen for TV overscan.
; * Requires vertical or single-screen mirroring.
; * Requires ASCII font in CHR.
.ifndef C... |
xem/nes | 1,096 | nes-test-roms/apu_mixer/source/common/text_out.s | ; Text output as expanding zero-terminated string at text_out_base
; The final exit result byte is written here
final_result = $6000
; Text output is written here as an expanding
; zero-terminated string
text_out_base = $6004
bss_res text_out_temp
zp_res text_out_addr,2
init_text_out:
ldx #0
; Put valid data fi... |
xem/nes | 3,060 | nes-test-roms/apu_mixer/source/common/ppu.s | ; PPU utilities
bss_res ppu_not_present
; Sets PPUADDR to w
; Preserved: X, Y
.macro set_ppuaddr w
bit PPUSTATUS
setb PPUADDR,>w
setb PPUADDR,<w
.endmacro
; Delays by no more than n scanlines
.macro delay_scanlines n
.if CLOCK_RATE <> 1789773
.error "Currently only supports NTSC"
.endif
delay ((n)*341)/3
.e... |
xem/nes | 2,698 | nes-test-roms/apu_mixer/source/common/shell.s | ; Shell that sets up testing framework and calls main
; Detect inclusion loops (otherwise ca65 goes crazy)
.ifdef SHELL_INCLUDED
.error "shell.s included twice"
.end
.endif
SHELL_INCLUDED = 1
; Temporary variables that ANY routine might modify, so
; only use them between routine calls.
temp = <$A
temp2 = <$B
tem... |
xem/nes | 3,437 | nes-test-roms/apu_mixer/source/common/delay.s | ; Delays in CPU clocks, milliseconds, etc. All routines are re-entrant
; (no global data). No routines touch X or Y during execution.
; Code generated by macros is relocatable; it contains no JMPs to itself.
zp_byte delay_temp_ ; only written to
; Delays n clocks, from 2 to 16777215
; Preserved: A, X, Y, flags
.macro... |
xem/nes | 1,632 | nes-test-roms/apu_mixer/source/common/crc.s | ; CRC-32 checksum calculation
zp_res checksum,4
zp_byte checksum_temp
zp_byte checksum_off_
; Turns CRC updating on/off. Allows nesting.
; Preserved: A, X, Y
crc_off:
dec checksum_off_
rts
crc_on: inc checksum_off_
beq :+
jpl internal_error ; catch unbalanced crc calls
: rts
; Initializes checksum modul... |
xem/nes | 1,903 | nes-test-roms/vaus-test/src/ppuclear.s | ;
; NES PPU common functions
; Copyright 2011 Damian Yerrick
;
; Copying and distribution of this file, with or without
; modification, are permitted in any medium without royalty provided
; the copyright notice and this notice are preserved in all source
; code copies. This file is offered as-is, without any warranty... |
xem/nes | 16,718 | nes-test-roms/vaus-test/src/main.s | ;
; Simple sprite demo for NES (with paddle support)
; Copyright 2013 Damian Yerrick
;
; Copying and distribution of this file, with or without
; modification, are permitted in any medium without royalty provided
; the copyright notice and this notice are preserved in all source
; code copies. This file is offered as-... |
xem/nes | 1,708 | nes-test-roms/vaus-test/src/vauspads.s | ;
; NES controller reading code (for Arkanoid controller)
; Copyright 2013 Damian Yerrick
;
; Copying and distribution of this file, with or without
; modification, are permitted in any medium without royalty provided
; the copyright notice and this notice are preserved in all source
; code copies. This file is offere... |
xem/nes | 1,034 | nes-test-roms/read_joy3/source/count_errors.s | ; Repeatedly calls read_joy while DMC is playing
; and prints X when the DMC conflicted with one
; of the internal reads. Note that a conflict
; doesn't affect the result of read_joy, since it
; compensates when this occurs.
dmc_rate = 15 ; 0 to 15
.include "shell.inc"
.include "read_joy.inc"
iter = 1000
zp_byte con... |
xem/nes | 2,223 | nes-test-roms/read_joy3/source/common/testing.s | ; Utilities for writing test ROMs
zp_res test_code,1 ; code of current test
zp_res test_name,2 ; address of name of current test, or 0 of none
; Reports that all tests passed
tests_passed:
.if !BUILD_MULTI
jsr print_filename
print_str "Passed"
.endif
lda #0
jmp exit
; Reports that the current test failed. Pr... |
xem/nes | 2,304 | nes-test-roms/read_joy3/source/common/print.s | ; Prints values in various ways to output, including numbers and strings.
newline = 10
; Prints indicated register to console as two hex chars and space
; Preserved: A, X, Y, P
print_a:
php
pha
print_reg_:
jsr print_hex
lda #' '
jsr print_char_
pla
plp
rts
print_x:
php
pha
txa
jmp print_reg_
print_y:
p... |
xem/nes | 3,161 | nes-test-roms/read_joy3/source/common/console.s | ; Scrolling text console with line wrapping, 30x30 characters.
; Buffers lines for speed. Will work even if PPU doesn't
; support scrolling (until text reaches bottom).
; ** ASCII font must already be in CHR, and mirroring
; must be vertical or single-screen.
; Number of characters of margin on left and right, to avoi... |
xem/nes | 2,505 | nes-test-roms/read_joy3/source/common/delay.s | ; Delays in clocks and milliseconds. All routines re-entrant
; (no global data).
; Delays n milliseconds (1/1000 second)
; n can range from 0 to 1100.
; Preserved: X, Y
.macro delay_msec n
.if (n) < 0 .or (n) > 1100
.error "time out of range"
.endif
delay ((n)*CLOCK_RATE+500)/1000
.endmacro
; Delays n m... |
xem/nes | 1,276 | nes-test-roms/read_joy3/source/common/crc.s | ; CRC-32 checksum calculation
zp_res checksum,4
zp_byte checksum_temp
zp_byte checksum_off_
; Turns CRC updating on/off. Allows nesting.
; Preserved: A, X, Y
crc_off:
dec checksum_off_
rts
crc_on: inc checksum_off_
beq :+
jpl internal_error ; catch unbalanced crc calls
: rts
; Initializes checksum modul... |
xem/nes | 1,575 | nes-test-roms/oam_stress/source/oam_stress.s | ; Randomly reads and writes to OAM, ensuring that
; all reads match predicted, and that final content
; also matches. Refreshes OAM periodically while
; running to avoid DRAM fade.
.include "shell.inc"
.include "crc_fast.s"
refresh_period = 150
zp_byte counter
bss_res mirror,256
main:
lda #1
jsr init_random
jsr ... |
xem/nes | 1,856 | nes-test-roms/oam_stress/source/common/testing.s | ; Utilities for writing test ROMs
; In NVRAM so these can be used before initializing runtime,
; then runtime initialized without clearing them
nv_res test_code ; code of current test
nv_res test_name,2 ; address of name of current test, or 0 of none
; Sets current test code and optional name. Also resets
; checksum... |
xem/nes | 2,583 | nes-test-roms/oam_stress/source/common/print.s | ; Prints values in various ways to output,
; including numbers and strings.
newline = 10
zp_byte print_temp_
; Prints indicated register to console as two hex
; chars and space
; Preserved: A, X, Y, flags
print_a:
php
pha
print_reg_:
jsr print_hex
lda #' '
jsr print_char_
pla
plp
rts
print_x:
php
pha
txa... |
xem/nes | 1,745 | nes-test-roms/oam_stress/source/common/build_multi.s | ; Builds program as bank for multi-test MMC1 ROM
; Define these so that error will occur if already defined
; by program
CUSTOM_MAPPER = 1 ; MMC1
CHR_RAM = 1
.ifndef BANK_COUNT
BANK_COUNT = 16
.endif
.segment "VECTORS"
.word -1, -1
.word reset
.word nmi, multi_reset, irq
;;;; CHR-RAM
.define CHARS "CHARS_PRG"... |
xem/nes | 1,480 | nes-test-roms/oam_stress/source/common/build_rom.s | ; Builds program as iNES ROM
; Default is 16K PRG and 8K CHR ROM, NROM (0)
.if 0 ; Options to set before .include "shell.inc":
CHR_RAM=1 ; Use CHR-RAM instead of CHR-ROM
CART_WRAM=1 ; Use mapper that supports 8K WRAM in cart
CUSTOM_MAPPER=n ; Specify mapper number
.endif
.ifndef CUSTOM_MAPPER
.ifdef CART_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.