repo_id
string
size
int64
file_path
string
content
string
PhicoinProject/PhicoinProject
28,173
src/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...
LearningOS/arceos-classroom-2025s-arceos-2025s-oscamp-stage3
4,857
arceos/exercises/simple_hv/src/guest.S
/// Enter the guest given in `VmCpuRegisters` from `a0` .global _run_guest _run_guest: /* Save hypervisor state */ /* Save hypervisor GPRs (except T0-T6 and a0, which is GuestInfo and stashed in sscratch) */ sd ra, ({hyp_ra})(a0) sd gp, ({hyp_gp})(a0) sd tp, ({hyp_tp})(a0) sd s0, ({hyp...
LearningOS/arceos-classroom-2025s-arceos-2025s-oscamp-stage3
2,544
arceos/tools/raspi4/chainloader/src/_arch/aarch64/cpu/boot.s
// SPDX-License-Identifier: MIT OR Apache-2.0 // // Copyright (c) 2021-2022 Andre Richter <andre.o.richter@gmail.com> //-------------------------------------------------------------------------------------------------- // Definitions //-----------------------------------------------------------------------------------...
LearningOS/arceos-classroom-2025s-arceos-2025s-oscamp-stage3
1,827
arceos/modules/axhal/linker.lds.S
OUTPUT_ARCH(%ARCH%) BASE_ADDRESS = %KERNEL_BASE%; ENTRY(_start) SECTIONS { . = BASE_ADDRESS; _skernel = .; .text : ALIGN(4K) { _stext = .; *(.text.boot) *(.text .text.*) . = ALIGN(4K); _etext = .; } .rodata : ALIGN(4K) { _srodata = .; *(.ro...
LearningOS/arceos-classroom-2025s-arceos-2025s-oscamp-stage3
4,857
arceos/modules/riscv_vcpu/src/guest.S
/// Enter the guest given in `VmCpuRegisters` from `a0` .global _run_guest _run_guest: /* Save hypervisor state */ /* Save hypervisor GPRs (except T0-T6 and a0, which is GuestInfo and stashed in sscratch) */ sd ra, ({hyp_ra})(a0) sd gp, ({hyp_gp})(a0) sd tp, ({hyp_tp})(a0) sd s0, ({hyp...
LearningOS/arceos-classroom-2025s-arceos-2025s-oscamp-stage3
3,437
arceos/modules/riscv_vcpu/src/mem_extable.S
// Copyright (c) 2022 by Rivos Inc. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Very unoptimized memcpy() to/from guest memory functions, using the HLV/HSV instructions. // Adds the instruction at 'lbl' to the exception table. .macro add_extabl...
LearningOS/arceos-classroom-2025s-arceos-2025s-oscamp-stage3
4,307
arceos/modules/axhal/src/platform/x86_pc/multiboot.S
# Bootstrapping from 32-bit with the Multiboot specification. # See https://www.gnu.org/software/grub/manual/multiboot/multiboot.html .section .text.boot .code32 .global _start _start: mov edi, eax # arg1: magic: 0x2BADB002 mov esi, ebx # arg2: multiboot info jmp bsp_entry32 .bal...
LearningOS/arceos-classroom-2025s-arceos-2025s-oscamp-stage3
1,965
arceos/modules/axhal/src/platform/x86_pc/ap_start.S
# Boot application processors into the protected mode. # Each non-boot CPU ("AP") is started up in response to a STARTUP # IPI from the boot CPU. Section B.4.2 of the Multi-Processor # Specification says that the AP will start in real mode with CS:IP # set to XY00:0000, where XY is an 8-bit value sent with the # STAR...
LearningOS/arceos-classroom-2025s-arceos-2025s-oscamp-stage3
2,415
arceos/modules/axhal/src/arch/aarch64/trap.S
.macro SAVE_REGS sub sp, sp, 34 * 8 stp x0, x1, [sp] stp x2, x3, [sp, 2 * 8] stp x4, x5, [sp, 4 * 8] stp x6, x7, [sp, 6 * 8] stp x8, x9, [sp, 8 * 8] stp x10, x11, [sp, 10 * 8] stp x12, x13, [sp, 12 * 8] stp x14, x15, [sp, 14 * 8] stp x16, x...
LearningOS/arceos-classroom-2025s-arceos-2025s-oscamp-stage3
1,839
arceos/modules/axhal/src/arch/riscv/trap.S
.macro SAVE_REGS, from_user addi sp, sp, -{trapframe_size} PUSH_GENERAL_REGS csrr t0, sepc csrr t1, sstatus csrrw t2, sscratch, zero // save sscratch (sp) and zero it STR t0, sp, 31 // tf.sepc STR t1, sp, 32 // tf.sstatus STR...
LearningOS/arceos-classroom-2025s-arceos-2025s-oscamp-stage3
1,505
arceos/modules/axhal/src/arch/x86_64/trap.S
.equ NUM_INT, 256 .altmacro .macro DEF_HANDLER, i .Ltrap_handler_\i: .if \i == 8 || (\i >= 10 && \i <= 14) || \i == 17 # error code pushed by CPU push \i # interrupt vector jmp .Ltrap_common .else push 0 # fill in error code in TrapFrame push \i # interrupt ...
LearningOS/arceos-classroom-2025s-arceos-2025s-oscamp-stage3
4,857
arceos/tour/h_1_0/src/guest.S
/// Enter the guest given in `VmCpuRegisters` from `a0` .global _run_guest _run_guest: /* Save hypervisor state */ /* Save hypervisor GPRs (except T0-T6 and a0, which is GuestInfo and stashed in sscratch) */ sd ra, ({hyp_ra})(a0) sd gp, ({hyp_gp})(a0) sd tp, ({hyp_tp})(a0) sd s0, ({hyp...
leapmotion/ProjectNorthStar
8,555
Electronics/Firmware/src/ArduinoCore/src/core/pulse_asm.S
/* Copyright (c) 2015 Arduino LLC. All right 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 option) any later version. T...
leapmotion/ProjectNorthStar
8,555
Electronics/Firmware/src/ArduinoCore/src/core/PreprocessingAssembly/pulse_asm.S
/* Copyright (c) 2015 Arduino LLC. All right 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 option) any later version. T...
MeganGrass/Resident-Evil-2-Starter-Kit
76,263
source/assembly/directive.s
/* * Controller */ PAD_NULL: equ 0x0000 PAD_L2: equ 0x0001 PAD_R2: equ 0x0002 PAD_L1: equ 0x0004 PAD_R1: equ 0x0008 PAD_TRIANGLE: equ 0x0010 PAD_CIRCLE: equ 0x0020 PAD_X: equ 0x0040 PAD_SQUARE: equ 0x0080 PAD_SELECT: equ 0x0100 PAD_START: equ 0x0800 PAD_UP: equ 0x1000 PAD_RIGH...
MeganGrass/Resident-Evil-2-Starter-Kit
114,386
source/assembly/bio2.s
opt c+ OVERLAY group section OVERLAY.data ;; CUSTOM global BuildDate global CdxLbaBin global CdxLbaBss global CdxLbaDat global CdxLbaDo2 global CdxLbaEmd0 global CdxLbaEmd1 global CdxLbaPld global CdxLbaPlw global CdxLbaSndArms global CdxLbaSndCore global CdxLbaSndEmd global CdxLbaSndMain global Cd...
MeganGrass/Resident-Evil-2-Starter-Kit
2,247
source/assembly/custom.s
/* * bio2.s must be updated when this file is modified */ /* * Custom Variable */ BuildDate: equ 0x80010000 CdxLbaBin: equ 0x80010010 CdxLbaBss: equ 0x80010014 CdxLbaDat: equ 0x80010018 CdxLbaDo2: equ 0x8001001C CdxLbaEmd0: equ 0x80010020 CdxLbaEmd1: equ 0x80010024 CdxLbaPld...
MeganGrass/Resident-Evil-2-Starter-Kit
1,330
source/assembly/clean.s
/* * desld has been replaced with lz compression */ .org 0x80010000 .fill 0x778 /* * Task_lexecute and Task_lchain have been patched to read direct pointers and Ld_adr table is no longer used * * 80010804 is reserved for a pointer to a routine in STAGE6.BIN, which is currently unimplemented */ .org 0x800107C0 .fill...
MeganGrass/Resident-Evil-2-Starter-Kit
2,935
source/assembly/slus_00748.s
.erroronwarning on .psx .open "./disc/SLUS_007.48",0x8000F800 /* * Preprocessor */ DebugRelease: equ 1 FALSE: equ 0 TRUE: equ 1 /* * Clean */ .include "./source/assembly/clean.s" /* * Predefined */ .include "./source/assembly/directive.s" /* * Disk */ .include "./source/assembly/disk/filecode.s" .include...
MeganGrass/Resident-Evil-2-Starter-Kit
4,445
source/assembly/disk/task.s
/* * BOOT.BIN */ LoadTaskBoot: equ 0 ;; Task_no LoadTaskFileBoot: equ BOOT_BIN ;; File_no LoadTaskAddrBoot: equ 0x80190000 ;; Ld_adr LoadTaskFuncBoot: equ 0x80190478 ;; Func /* * CONFIG.BIN */ LoadTaskConfig: equ 4 ;; Task_no LoadTaskFileConfig: equ CONFIG_BIN ;; File_no LoadTaskAddrConfig: equ 0x...
MeganGrass/Resident-Evil-2-Starter-Kit
4,164
source/assembly/disk/filecode.s
BOOT_BIN: equ 0 CONFIG_BIN: equ 1 DEBUG_BIN: equ 2 DIEDEMO_BIN: equ 3 ENDING_BIN: equ 4 MEM_CARD_BIN: equ 5 OPENING_BIN: equ 6 RESULT_BIN: equ 7 ROOMJUMP_BIN: equ 8 SELECT_BIN: equ 9 PDEMO00_DAT: equ 15 PDEMO01_DAT: equ 16 PDEMO02_DAT: equ 17 PDEMO10_DAT: equ 18 PDEMO11_DAT: equ 19 ...
MeganGrass/Resident-Evil-2-Starter-Kit
2,825
source/assembly/player/Player_move.s
;; Add quick-turn to pl_mv03_pad /* * Relocate Pl_mv table */ .org 0x8003C5CC lui $v1, (pPlMvTbl >> 16) addu $v1, $v0 lw $v0, (pPlMvTbl & 0xFFFF)($v1) /* * Relocate Pl_mv_pad table */ .org 0x8003C5A4 lui $v1, (pPlMvPadTbl >> 16) addu $v1, $v0 lw $v0, (pPlMvPadTbl & ...
MeganGrass/Resident-Evil-2-Starter-Kit
1,225
source/assembly/player/Pl_weapon_ch.s
.org Pl_weapon_ch ;; Stack addiu $sp, -0x58 sw $s4, 0x58+-0x18($sp) move $s4, $a0 ;; PLAYER_WORK sw $s3, 0x58+-0x1C($sp) lw $s3, G_pPl_emd_top sw $ra, 0x58+-0x04($sp) sw $fp, 0x58+-0x08($sp) sw $s7, 0x58+-0x0C($sp) sw $s6, 0x58+-0x10(...
MeganGrass/Resident-Evil-2-Starter-Kit
12,815
source/assembly/enemy/emd00.s
.org emd00_pos .word 0x00000000, 0x0000CF4C ;; EMD1000 .word 0x0000001A, 0x0000CF4C ;; EMD1001 .word 0x00000034, 0x00010420 ;; EMD10 .word 0x00000055, 0x00023DCC ;; EMD10 .word 0x00000000, 0x00000000 ;; EMD1100 .word 0x00000000, 0x00000000 ;; EMD1101 .word 0x0000009D, 0x00010420 ;; EMD11 .word 0x000000BE, 0x000...
MeganGrass/Resident-Evil-2-Starter-Kit
12,815
source/assembly/enemy/emd01.s
.org emd01_pos .word 0x00000000, 0x0000CF4C ;; EMD1000 .word 0x0000001A, 0x0000CF4C ;; EMD1001 .word 0x00000034, 0x00010420 ;; EMD10 .word 0x00000055, 0x00023F60 ;; EMD10 .word 0x00000000, 0x00000000 ;; EMD1100 .word 0x00000000, 0x00000000 ;; EMD1101 .word 0x0000009D, 0x00010420 ;; EMD11 .word 0x000000BE, 0x000...
MeganGrass/Resident-Evil-2-Starter-Kit
13,777
source/assembly/enemy/cdemd0.s
.org 0x8009ADF4 .word 0x00000000, 0x0000CF4C ;; EM1000.BIN .word 0x0000001A, 0x0000CF4C ;; EM1001.BIN .word 0x00000034, 0x00010420 ;; EM10.TIM .word 0x00000055, 0x00023DCC ;; EM10.EMD .word 0x00000000, 0x00000000 ;; EM1100.BIN .word 0x00000000, 0x00000000 ;; EM1101.BIN .word 0x0000009D, 0x00010420 ;; EM11.TIM ...
MeganGrass/Resident-Evil-2-Starter-Kit
13,777
source/assembly/enemy/cdemd1.s
.org cdemd1_pos .word 0x00000000, 0x0000CF4C ;; EM1000.BIN .word 0x0000001A, 0x0000CF4C ;; EM1001.BIN .word 0x00000034, 0x00010420 ;; EM10.TIM .word 0x00000055, 0x00023F60 ;; EM10.EMD .word 0x00000000, 0x00000000 ;; EM1100.BIN .word 0x00000000, 0x00000000 ;; EM1101.BIN .word 0x0000009D, 0x00010420 ;; EM11.TIM ...
MeganGrass/Resident-Evil-2-Starter-Kit
3,496
source/assembly/compression/lz_dec.s
/* * desld has been replaced with lz compression */ .org Dec_lz lui $t6, 0x1F80 move $t3, $0 li $v1, 0x20 loc_20C: addu $v0, $t6, $t3 sb $v1, 0($v0) addiu $t3, 1 sltiu $v0, $t3, 0x...
MeganGrass/Resident-Evil-2-Starter-Kit
1,156
source/assembly/overlay/opening.s
/* * Game_loop hook for BOOT.BIN */ ;;.org 0x801BFB00 ;; jal Boot_patch ;; nop /* * Disable XA audio and STR video playback */ .org 0x801C070C ;; Xa_play nop .org 0x801C07C8 ;; Xa_play nop .org 0x801C08F0 ;; Xa_play nop .org 0x801C09FC ;; Xa_play nop .org 0x801C0AD0 ;; Xa_play nop .org...
MeganGrass/Resident-Evil-2-Starter-Kit
8,285
source/assembly/sound/stage7.s
.org 0x80000180 .fill 0x240, 0xFF .org 0x800003C0 .fill 0x440, 0x00 ;; BGM Table .org 0x80000180 ;; PL0 [Scenario A] .byte 0x11, 0xFF ;; R700 .byte 0x11, 0xFF ;; R701 .byte 0x11, 0xAF ;; R702 .byte 0x11, 0xFF ;; R703 .byte 0x11, 0xFF ;; R704 .byte 0xFF, 0xFF ;; R705 .byte 0xFF, 0xFF ;; R706 .byte 0xF...
MeganGrass/Resident-Evil-2-Starter-Kit
8,415
source/assembly/sound/stage5.s
.org 0x80000180 .fill 0x240, 0xFF .org 0x800003C0 .fill 0x440, 0x00 ;; BGM Table .org 0x80000180 ;; PL0 [Scenario A] .byte 0x5C, 0xDE ;; R500 .byte 0x0E, 0xFF ;; R501 .byte 0x0E, 0xFF ;; R502 .byte 0x13, 0xFF ;; R503 .byte 0x13, 0x1F ;; R504 .byte 0x20, 0xC9 ;; R505 .byte 0x13, 0x1F ;; R506 .byte 0xF...
MeganGrass/Resident-Evil-2-Starter-Kit
8,961
source/assembly/sound/stage4.s
.org 0x80000180 .fill 0x240, 0xFF .org 0x800003C0 .fill 0x440, 0x00 ;; BGM Table .org 0x80000180 ;; PL0 [Scenario A] .byte 0x0F, 0x99 ;; R400 .byte 0x4C, 0xFF ;; R401 .byte 0x0F, 0xFF ;; R402 .byte 0x0C, 0xFF ;; R403 .byte 0x58, 0xFF ;; R404 .byte 0x0F, 0x98 ;; R405 .byte 0xFF, 0xFF ;; R406 .byte 0x0...
MeganGrass/Resident-Evil-2-Starter-Kit
9,585
source/assembly/sound/stage6.s
.org 0x80000180 .fill 0x240, 0xFF .org 0x800003C0 .fill 0x440, 0x00 ;; BGM Table .org 0x80000180 ;; PL0 [Scenario A] .byte 0xFF, 0x94 ;; R600 .byte 0xFF, 0xFF ;; R601 .byte 0x5E, 0xA0 ;; R602 .byte 0x5E, 0xA0 ;; R603 .byte 0x5D, 0xA5 ;; R604 .byte 0xFF, 0xA5 ;; R605 .byte 0x22, 0xFF ;; R606 .byte 0xF...
MeganGrass/Resident-Evil-2-Starter-Kit
8,649
source/assembly/sound/stage1.s
.org 0x80000180 .fill 0x240, 0xFF .org 0x800003C0 .fill 0x440, 0x00 ;; BGM Table .org 0x80000180 ;; PL0 [Scenario A] .byte 0x0B, 0x01 ;; R100 .byte 0x41, 0xC0 ;; R101 .byte 0x00, 0xFF ;; R102 .byte 0x00, 0x05 ;; R103 .byte 0x0B, 0x01 ;; R104 .byte 0x00, 0x05 ;; R105 .byte 0xFF, 0xC3 ;; R106 .byte 0x0...
MeganGrass/Resident-Evil-2-Starter-Kit
8,727
source/assembly/sound/stage2.s
.org 0x80000180 .fill 0x240, 0xFF .org 0x800003C0 .fill 0x440, 0x00 ;; BGM Table .org 0x80000180 ;; PL0 [Scenario A] .byte 0x05, 0xFF ;; R200 .byte 0xFF, 0xFF ;; R201 .byte 0x06, 0xFF ;; R202 .byte 0x07, 0xFF ;; R203 .byte 0x49, 0xC4 ;; R204 .byte 0x07, 0xFF ;; R205 .byte 0x07, 0xC8 ;; R206 .byte 0x0...
MeganGrass/Resident-Evil-2-Starter-Kit
9,741
source/assembly/sound/stage3.s
.org 0x80000180 .fill 0x240, 0xFF .org 0x800003C0 .fill 0x440, 0x00 ;; BGM Table .org 0x80000180 ;; PL0 [Scenario A] .byte 0xFF, 0xFF ;; R300 .byte 0xFF, 0xC9 ;; R301 .byte 0x0F, 0xFF ;; R302 .byte 0x55, 0xFF ;; R303 .byte 0x0F, 0xC9 ;; R304 .byte 0x2E, 0xFF ;; R305 .byte 0x14, 0xFF ;; R306 .byte 0xF...
PLSysSec/tock-veri-asm
2,464
dis_riscv.s
00000000 <_start_trap>: 0: 34041473 .insn 4, 0x34041473 4: 00040863 beqz s0,14 <.Lpcrel_hi0> 8: 00942023 sw s1,0(s0) c: 00442483 lw s1,4(s0) 10: 00048067 jr s1 00000014 <.Lpcrel_hi0>: 14: 00000417...
PLSysSec/tock-veri-asm
1,963
dis_arm6.s
0: 4815 ldr r0, [pc, #84] @ (58 <generic_isr+0x58>) 2: 4586 cmp lr, r0 4: d110 bne.n 28 <generic_isr+0x28> 6: 4669 mov r1, sp 8: 6849 ldr r1, [r1, #4] a: 610c str r4, [r1, #16] c: 614d ...
Project-Gamblitz/Project-Gamblitz-Starlight
8,068
include/libnx/nx/source/kernel/svc.s
.macro SVC_BEGIN name .section .text.\name, "ax", %progbits .global \name .type \name, %function .align 2 .cfi_startproc \name: .endm .macro SVC_END .cfi_endproc .endm SVC_BEGIN svcSetHeapSize str x0, [sp, #-16]! svc 0x1 ldr x2, [sp], #16 str x1, [x2] ret SVC_END SVC_BEGIN svcSetMemoryPermission svc 0x2 ...
Project-Gamblitz/Project-Gamblitz-Starlight
4,349
include/libnx/nx/source/runtime/exception.s
.macro CODE_BEGIN name .section .text.\name, "ax", %progbits .global \name .type \name, %function .align 2 .cfi_startproc \name: .endm .macro CODE_END .cfi_endproc .endm // Called by crt0 when the args at the time of entry indicate an exception occured. .weak __libnx_exception_handler .weak ...
Project-Gamblitz/Project-Gamblitz-Starlight
2,009
include/libnx/nx/source/runtime/switch_crt0.s
.section ".crt0","ax" .global _start _start: b startup .word __nx_mod0 - _start .ascii "HOMEBREW" .org _start+0x80 startup: // save lr mov x7, x30 // get aslr base bl +4 sub x6, x30, #0x88 // context ptr and main thread handle mov x5, x0 mov x4, x1 // Handle th...
Project-Gamblitz/Project-Gamblitz-Starlight
1,288
include/libnx/nx/source/arm/cache.s
.macro CODE_BEGIN name .section .text.\name, "ax", %progbits .global \name .type \name, %function .align 2 .cfi_startproc \name: .endm .macro CODE_END .cfi_endproc .endm CODE_BEGIN armDCacheFlush add x1, x1, x0 mrs x8, CTR_EL0 lsr x8, x8, #16 and x8, x8, #0xf mov x9, #4 lsl x9, x9, x8 sub x10, x9, #1 bi...
shilei-massclouds/arch_boot
1,730
arch_boot/linker.lds.S
OUTPUT_ARCH(%ARCH%) BASE_ADDRESS = %KERNEL_BASE%; ENTRY(_start) SECTIONS { . = BASE_ADDRESS; _skernel = .; .text : ALIGN(4K) { _stext = .; *(.text.boot) *(.text .text.*) *(.fixup) . = ALIGN(4K); _etext = .; } .rodata : ALIGN(4K) { _srodata ...
shilei-massclouds/arch_boot
3,882
arch_boot/src/platform/x86_pc/multiboot.S
# Bootstrapping from 32-bit with the Multiboot specification. # See https://www.gnu.org/software/grub/manual/multiboot/multiboot.html .section .text.boot .code32 .global _start _start: mov edi, eax # arg1: magic: 0x2BADB002 mov esi, ebx # arg2: multiboot info jmp bsp_entry32 .bal...
shilei-massclouds/lkmodel
1,505
axtrap/axtrap/src/arch/x86_64/trap.S
.equ NUM_INT, 256 .altmacro .macro DEF_HANDLER, i .Ltrap_handler_\i: .if \i == 8 || (\i >= 10 && \i <= 14) || \i == 17 # error code pushed by CPU push \i # interrupt vector jmp .Ltrap_common .else push 0 # fill in error code in TrapFrame push \i # interrupt ...
shilei-massclouds/lkmodel
1,201
axtrap/axtrap/src/arch/x86_64/syscall.S
.section .text syscall_entry: swapgs # The user rsp and kernel rsp are defined in axhal mov gs:[offset __PERCPU_USER_RSP_OFFSET], rsp mov rsp, gs:[offset __PERCPU_KERNEL_RSP_OFFSET] sub rsp, 8 // skip user_ss push gs:[offset __PERCPU_USER_RSP_OFFSET] // u...
shilei-massclouds/lkmodel
1,730
arch_boot/arch_boot/linker.lds.S
OUTPUT_ARCH(%ARCH%) BASE_ADDRESS = %KERNEL_BASE%; ENTRY(_start) SECTIONS { . = BASE_ADDRESS; _skernel = .; .text : ALIGN(4K) { _stext = .; *(.text.boot) *(.text .text.*) *(.fixup) . = ALIGN(4K); _etext = .; } .rodata : ALIGN(4K) { _srodata ...
shilei-massclouds/lkmodel
3,882
arch_boot/arch_boot/src/platform/x86_pc/multiboot.S
# Bootstrapping from 32-bit with the Multiboot specification. # See https://www.gnu.org/software/grub/manual/multiboot/multiboot.html .section .text.boot .code32 .global _start _start: mov edi, eax # arg1: magic: 0x2BADB002 mov esi, ebx # arg2: multiboot info jmp bsp_entry32 .bal...
shilei-massclouds/lkmodel
1,746
axhal/axhal/linker.lds.S
OUTPUT_ARCH(%ARCH%) BASE_ADDRESS = %KERNEL_BASE%; ENTRY(_start) SECTIONS { . = BASE_ADDRESS; _skernel = .; .text : ALIGN(4K) { _stext = .; *(.text.boot) *(.text .text.*) *(.fixup) . = ALIGN(4K); _etext = .; } .rodata : ALIGN(4K) { _srodata ...
shilei-massclouds/lkmodel
1,965
axhal/axhal/src/platform/x86_pc/ap_start.S
# Boot application processors into the protected mode. # Each non-boot CPU ("AP") is started up in response to a STARTUP # IPI from the boot CPU. Section B.4.2 of the Multi-Processor # Specification says that the AP will start in real mode with CS:IP # set to XY00:0000, where XY is an 8-bit value sent with the # STAR...
shilei-massclouds/lkmodel
2,519
axhal/axhal/src/arch/aarch64/trap.S
.macro SAVE_REGS sub sp, sp, 34 * 8 stp x0, x1, [sp] stp x2, x3, [sp, 2 * 8] stp x4, x5, [sp, 4 * 8] stp x6, x7, [sp, 6 * 8] stp x8, x9, [sp, 8 * 8] stp x10, x11, [sp, 10 * 8] stp x12, x13, [sp, 12 * 8] stp x14, x15, [sp, 14 * 8] stp x16, x...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
6,611
sdk/appsrc/fsbl/src/fsbl_handoff.S
#ifdef __GNUC__ /****************************************************************************** * * Copyright (C) 2012 - 2014 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to de...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
4,428
sdk/appsrc/fsbl_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/xil-crt0.S
/****************************************************************************** * * Copyright (C) 2009 - 2017 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softw...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
9,105
sdk/appsrc/fsbl_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/translation_table.S
/****************************************************************************** * * Copyright (C) 2009 - 2015 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softw...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
5,947
sdk/appsrc/fsbl_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/asm_vectors.S
/****************************************************************************** * * Copyright (C) 2009 - 2015 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softw...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
2,950
sdk/appsrc/fsbl_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/cpu_init.S
/****************************************************************************** * * Copyright (C) 2009 - 2015 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softw...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
18,784
sdk/appsrc/fsbl_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/boot.S
/****************************************************************************** * * Copyright (C) 2010 - 2016 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softw...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
1,956
sdk/appsrc/fsbl_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/profile/dummy.S
/****************************************************************************** * * Copyright (C) 2002 - 2014 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softwa...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
2,045
sdk/appsrc/fsbl_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/profile/profile_mcount_arm.S
/****************************************************************************** * * Copyright (C) 2002 - 2014 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softwa...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
2,255
sdk/appsrc/fsbl_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/profile/profile_mcount_ppc.S
/****************************************************************************** * * Copyright (C) 2002 - 2014 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softwa...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
2,178
sdk/appsrc/fsbl_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/profile/profile_mcount_mb.S
/****************************************************************************** * * Copyright (C) 2002 - 2014 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softwa...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
4,428
sdk/appsrc/game_demo_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/xil-crt0.S
/****************************************************************************** * * Copyright (C) 2009 - 2017 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softw...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
9,105
sdk/appsrc/game_demo_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/translation_table.S
/****************************************************************************** * * Copyright (C) 2009 - 2015 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softw...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
5,947
sdk/appsrc/game_demo_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/asm_vectors.S
/****************************************************************************** * * Copyright (C) 2009 - 2015 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softw...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
2,950
sdk/appsrc/game_demo_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/cpu_init.S
/****************************************************************************** * * Copyright (C) 2009 - 2015 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softw...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
18,784
sdk/appsrc/game_demo_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/boot.S
/****************************************************************************** * * Copyright (C) 2010 - 2016 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softw...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
1,956
sdk/appsrc/game_demo_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/profile/dummy.S
/****************************************************************************** * * Copyright (C) 2002 - 2014 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softwa...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
2,045
sdk/appsrc/game_demo_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/profile/profile_mcount_arm.S
/****************************************************************************** * * Copyright (C) 2002 - 2014 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softwa...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
2,255
sdk/appsrc/game_demo_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/profile/profile_mcount_ppc.S
/****************************************************************************** * * Copyright (C) 2002 - 2014 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softwa...
Starrynightzyq/ZYNQ-PYNQ-Z2-Gobang
2,178
sdk/appsrc/game_demo_bsp/ps7_cortexa9_0/libsrc/standalone_v6_7/src/profile/profile_mcount_mb.S
/****************************************************************************** * * Copyright (C) 2002 - 2014 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softwa...
Starrynightzyq/Nexys4DDR-ARM-M3-Plate-Recognition
17,214
vivado/Arm_sw_repository/CortexM/bsp/standalone_v6_7/src/arm/cortexm3/armcc/boot.S
;****************************************************************************** ; ; Copyright (C) 2009 - 2017 Xilinx, Inc. All rights reserved. ; ; Permission is hereby granted, free of charge, to any person obtaining a copy ; of this software and associated documentation files (the "Software"), to deal ; in the Softw...
Starrynightzyq/Nexys4DDR-ARM-M3-Plate-Recognition
17,214
vivado/Arm_sw_repository/CortexM/bsp/standalone_v6_7/src/arm/cortexm1/armcc/boot.S
;****************************************************************************** ; ; Copyright (C) 2009 - 2017 Xilinx, Inc. All rights reserved. ; ; Permission is hereby granted, free of charge, to any person obtaining a copy ; of this software and associated documentation files (the "Software"), to deal ; in the Softw...
Starrynightzyq/Nexys4DDR-ARM-M3-Plate-Recognition
29,171
docs/参考文献/ATK-OV5640摄像头模块/2,程序源码/(库函数版本,适合探索者STM32F4开发板)扩展实验15B OV5640照相机实验/CORE/startup_stm32f40_41xxx.s
;******************** (C) COPYRIGHT 2014 STMicroelectronics ******************** ;* File Name : startup_stm32f40_41xxx.s ;* Author : MCD Application Team ;* @version : V1.4.0 ;* @date : 04-August-2014 ;* Description : STM32F40xxx/41xxx devices vector table for MDK-ARM ...
sysprog21/classify-rv32i
1,326
coverage-src/initialize_zero.s
.globl initialize_zero .text # ======================================================= # FUNCTION: Initialize a zero array with the given length # Arguments: # a0 (int) size of the array # Returns: # a0 (int*) is the pointer to the zero array # Exceptions: # - If the length of the array is less than 1, # this ...
sysprog21/classify-rv32i
1,578
coverage-src/abs_loss.s
.globl abs_loss .text # ======================================================= # FUNCTION: Get the absolute difference of 2 int arrays, # store in a third array and compute the sum # Arguments: # a0 (int*) is the pointer to the start of arr0 # a1 (int*) is the pointer to the start of arr1 # a2 (int) is the l...
sysprog21/classify-rv32i
1,398
coverage-src/zero_one_loss.s
.globl zero_one_loss .text # ======================================================= # FUNCTION: Return a 0-1 classifer array # Arguments: # a0 (int*) is the pointer to the start of arr0 # a1 (int*) is the pointer to the start of arr1 # a2 (int) is the length of the arrays # a3 (int*) is the pointer to the st...
sysprog21/classify-rv32i
1,537
coverage-src/squared_loss.s
.globl squared_loss .text # ======================================================= # FUNCTION: Get the squared difference of 2 int arrays, # store in a third array and compute the sum # Arguments: # a0 (int*) is the pointer to the start of arr0 # a1 (int*) is the pointer to the start of arr1 # a2 (int) is th...
sysprog21/classify-rv32i
3,153
src/matmul.s
.globl matmul .text # ======================================================= # FUNCTION: Matrix Multiplication Implementation # # Performs operation: D = M0 × M1 # Where: # - M0 is a (rows0 × cols0) matrix # - M1 is a (rows1 × cols1) matrix # - D is a (rows0 × cols1) result matrix # # Arguments: # First Matri...
sysprog21/classify-rv32i
2,841
src/read_matrix.s
.globl read_matrix .text # ============================================================================== # FUNCTION: Binary Matrix File Reader # # Loads matrix data from a binary file into dynamically allocated memory. # Matrix dimensions are read from file header and stored at provided addresses. # # Binary File For...
sysprog21/classify-rv32i
2,600
src/write_matrix.s
.globl write_matrix .text # ============================================================================== # FUNCTION: Write a matrix of integers to a binary file # FILE FORMAT: # - The first 8 bytes store two 4-byte integers representing the number of # rows and columns, respectively. # - Each subsequent 4-b...
sysprog21/classify-rv32i
14,595
src/utils.s
############################################################## # Do not modify! (But feel free to use the functions provided) ############################################################## #define c_print_int 1 #define c_print_str 4 #define c_atoi 5 #define c_sbrk 9 #define c_print_char 11 #define c_openFile 13 #defin...
sysprog21/classify-rv32i
8,059
src/classify.s
.globl classify .text # ===================================== # NEURAL NETWORK CLASSIFIER # ===================================== # Description: # Command line program for matrix-based classification # # Command Line Arguments: # 1. M0_PATH - First matrix file location # 2. M1_PATH - Second matrix file...
sysprog21/classify-rv32i
1,186
src/dot.s
.globl dot .text # ======================================================= # FUNCTION: Strided Dot Product Calculator # # Calculates sum(arr0[i * stride0] * arr1[i * stride1]) # where i ranges from 0 to (element_count - 1) # # Args: # a0 (int *): Pointer to first input array # a1 (int *): Pointer to second input a...
sysprog21/classify-rv32i
4,838
tests/chain-1/chain.s
.import ../../src/read_matrix.s .import ../../src/write_matrix.s .import ../../src/matmul.s .import ../../src/dot.s .import ../../src/relu.s .import ../../src/argmax.s .import ../../src/utils.s .import ../../src/classify.s .globl main # This is a dummy main function which imports and calls the classify function. # Whi...
yigao/NFShmXFrame
42,842
thirdparty/zlib/contrib/inflate86/inffast.S
/* * inffast.S is a hand tuned assembler version of: * * inffast.c -- fast decoding * Copyright (C) 1995-2003 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h * * Copyright (C) 2003 Chris Anderson <christop@charm.net> * Please use the copyright conditions above. * * This ver...
yigao/NFShmXFrame
10,365
thirdparty/zlib/contrib/asm686/match.S
/* match.S -- x86 assembly version of the zlib longest_match() function. * Optimized for the Intel 686 chips (PPro and later). * * Copyright (C) 1998, 2007 Brian Raiter <breadbox@muppetlabs.com> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the author be held ...
yigao/NFShmXFrame
15,839
thirdparty/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) ;...
yigao/NFShmXFrame
12,418
thirdparty/zlib/contrib/amd64/amd64-match.S
/* * match.S -- optimized version of longest_match() * based on the similar work by Gilles Vollant, and Brian Raiter, written 1998 * * This is free software; you can redistribute it and/or modify it * under the terms of the BSD License. Use by owners of Che Guevarra * parafernalia is prohibited, where possible, a...
0verflowme/kvm_play
86
guest.S
.globl _start .code16 _start: xorw %ax, %ax loop: out %ax, $0x10 inc %ax jmp loop
01nstagram/Meus-projetos
933
go/pkg/mod/golang.org/x/sys@v0.32.0/cpu/cpu_arm64.s
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build gc #include "textflag.h" // func getisar0() uint64 TEXT ·getisar0(SB),NOSPLIT,$0-8 // get Instruction Set Attributes 0 into x0 // mrs x0, ID_AA64...
01nstagram/Meus-projetos
628
go/pkg/mod/golang.org/x/sys@v0.32.0/cpu/asm_darwin_x86_gc.s
// Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin && amd64 && gc #include "textflag.h" TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_sysctl(SB) GLOBL ·libc_sysctl_trampoline_addr(...
01nstagram/Meus-projetos
2,000
go/pkg/mod/golang.org/x/sys@v0.32.0/cpu/cpu_s390x.s
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build gc #include "textflag.h" // func stfle() facilityList TEXT ·stfle(SB), NOSPLIT|NOFRAME, $0-32 MOVD $ret+0(FP), R1 MOVD $3, R0 // last do...
01nstagram/Meus-projetos
403
go/pkg/mod/golang.org/x/sys@v0.32.0/cpu/asm_aix_ppc64.s
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build gc #include "textflag.h" // // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go // TEXT ·syscall6(SB),NOSPLIT,$0-88 JMP sysc...
01nstagram/Meus-projetos
600
go/pkg/mod/golang.org/x/sys@v0.32.0/cpu/cpu_gc_x86.s
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build (386 || amd64 || amd64p32) && gc #include "textflag.h" // func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) TEXT ·cpuid(SB), NOSPLIT, $...
01nstagram/Meus-projetos
357
go/pkg/mod/golang.org/x/sys@v0.32.0/cpu/cpu_loong64.s
// Copyright 2025 The Go 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 "textflag.h" // func get_cpucfg(reg uint32) uint32 TEXT ·get_cpucfg(SB), NOSPLIT|NOFRAME, $0 MOVW reg+0(FP), R5 // CPUCFG R5, R4 = 0x00006ca4 WORD ...
01nstagram/Meus-projetos
374
go/pkg/mod/golang.org/x/sys@v0.32.0/cpu/cpu_openbsd_arm64.s
// Copyright 2022 The Go 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 "textflag.h" TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_sysctl(SB) GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 DATA ·libc_sysctl...
01nstagram/Meus-projetos
1,029
go/pkg/mod/golang.org/x/sys@v0.32.0/unix/asm_linux_riscv64.s
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build riscv64 && gc #include "textflag.h" // // System calls for linux/riscv64. // // Where available, just jump to package syscall's implementation of /...
01nstagram/Meus-projetos
686
go/pkg/mod/golang.org/x/sys@v0.32.0/unix/asm_bsd_386.s
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build (freebsd || netbsd || openbsd) && gc #include "textflag.h" // System call support for 386 BSD // Just jump to package syscall's implementation for...
01nstagram/Meus-projetos
905
go/pkg/mod/golang.org/x/sys@v0.32.0/unix/asm_linux_ppc64x.s
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build linux && (ppc64 || ppc64le) && gc #include "textflag.h" // // System calls for ppc64, Linux // // Just jump to package syscall's implementation fo...
01nstagram/Meus-projetos
1,171
go/pkg/mod/golang.org/x/sys@v0.32.0/unix/asm_linux_loong64.s
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build linux && loong64 && gc #include "textflag.h" // Just jump to package syscall's implementation for all these functions. // The runtime may know abo...