repo_id
string
size
int64
file_path
string
content
string
mynameisProjects/pokeemeraldplusplus
2,066
sound/songs/se_m_blizzard.s
.include "MPlayDef.s" .equ se_m_blizzard_grp, voicegroup128 .equ se_m_blizzard_pri, 4 .equ se_m_blizzard_rev, reverb_set+50 .equ se_m_blizzard_mvl, 127 .equ se_m_blizzard_key, 0 .equ se_m_blizzard_tbs, 1 .equ se_m_blizzard_exg, 0 .equ se_m_blizzard_cmp, 1 .section .rodata .global se_m_blizzard .align 2 @...
mynameisProjects/pokeemeraldplusplus
1,199
sound/songs/se_m_bubble3.s
.include "MPlayDef.s" .equ se_m_bubble3_grp, voicegroup128 .equ se_m_bubble3_pri, 4 .equ se_m_bubble3_rev, reverb_set+50 .equ se_m_bubble3_mvl, 127 .equ se_m_bubble3_key, 0 .equ se_m_bubble3_tbs, 1 .equ se_m_bubble3_exg, 0 .equ se_m_bubble3_cmp, 1 .section .rodata .global se_m_bubble3 .align 2 @*********...
MythTV/packaging
15,839
Win32/msvc/external/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) ;...
MythTV/packaging
42,842
Win32/msvc/external/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...
MythTV/packaging
10,365
Win32/msvc/external/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 ...
MythTV/packaging
12,418
Win32/msvc/external/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...
MZT-srcount/ToyOS
925
toyos/src/trap/trap.S
.altmacro #类似define .macro SAVE_GP n sd x\n, \n*8(sp) .endm .macro LOAD_GP n ld x\n, \n*8(sp) .endm #位于.text段 .section .text.trampoline .globl __alltraps .globl __restore .align 2 __alltraps: #从用户栈到用户空间中trapcontext位置,sscratch保存的是trapcontext地址,csrrw可理解为交换寄存器值,sp指向trapcontext csrrw sp, sscratch, sp sd x1, 1*...
MZT-srcount/ToyOS
17,376
dependency/riscv/asm.S
#include "asm.h" .section .text.__ebreak .global __ebreak __ebreak: ebreak ret .section .text.__wfi .global __wfi __wfi: wfi ret .section .text.__sfence_vma_all .global __sfence_vma_all __sfence_vma_all: sfence.vma ret .section .text.__sfence_vma .global __sfence_vma __sfence_vma: sfence...
ncnynl/ros-car-stm32
12,079
Libraries/CMSIS/startup/startup_stm32f10x_ld.s
;******************** (C) COPYRIGHT 2011 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_ld.s ;* Author : MCD Application Team ;* Version : V3.5.0 ;* Date : 11-March-2011 ;* Description : STM32F10x Low Density Devices vector table for MDK-ARM...
ncnynl/ros-car-stm32
15,346
Libraries/CMSIS/startup/startup_stm32f10x_hd_vl.s
;******************** (C) COPYRIGHT 2011 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_hd_vl.s ;* Author : MCD Application Team ;* Version : V3.5.0 ;* Date : 11-March-2011 ;* Description : STM32F10x High Density Value Line Devices vector ta...
ncnynl/ros-car-stm32
13,758
Libraries/CMSIS/startup/startup_stm32f10x_md_vl.s
;******************** (C) COPYRIGHT 2011 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_md_vl.s ;* Author : MCD Application Team ;* Version : V3.5.0 ;* Date : 11-March-2011 ;* Description : STM32F10x Medium Density Value Line Devices vector ...
ncnynl/ros-car-stm32
15,597
Libraries/CMSIS/startup/startup_stm32f10x_xl.s
;******************** (C) COPYRIGHT 2011 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_xl.s ;* Author : MCD Application Team ;* Version : V3.5.0 ;* Date : 11-March-2011 ;* Description : STM32F10x XL-Density Devices vector table for MDK-ARM ...
ncnynl/ros-car-stm32
12,458
Libraries/CMSIS/startup/startup_stm32f10x_md.s
;******************** (C) COPYRIGHT 2011 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_md.s ;* Author : MCD Application Team ;* Version : V3.5.0 ;* Date : 11-March-2011 ;* Description : STM32F10x Medium Density Devices vector table for MDK-...
ncnynl/ros-car-stm32
15,145
Libraries/CMSIS/startup/startup_stm32f10x_hd.s
;******************** (C) COPYRIGHT 2011 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_hd.s ;* Author : MCD Application Team ;* Version : V3.5.0 ;* Date : 11-March-2011 ;* Description : STM32F10x High Density Devices vector table for MDK-AR...
ncnynl/ros-car-stm32
15,398
Libraries/CMSIS/startup/startup_stm32f10x_cl.s
;******************** (C) COPYRIGHT 2011 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_cl.s ;* Author : MCD Application Team ;* Version : V3.5.0 ;* Date : 11-March-2011 ;* Description : STM32F10x Connectivity line devices vector table for M...
ncnynl/ros-car-stm32
13,352
Libraries/CMSIS/startup/startup_stm32f10x_ld_vl.s
;******************** (C) COPYRIGHT 2011 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_ld_vl.s ;* Author : MCD Application Team ;* Version : V3.5.0 ;* Date : 11-March-2011 ;* Description : STM32F10x Low Density Value Line Devices vector tab...
NienfengYao/armv8-bare-metal
5,981
vector.S
/* -*- mode: asm; coding:utf-8 -*- */ /************************************************************************/ /* OS kernel sample */ /* Copyright 2014 Takeharu KATO */ /* ...
Night-Traders-Dev/vOS-Kernel
1,899
src/Boot/boot.S
/* boot.S */ .section .text .global _start /* Start of the bootloader */ _start: /* Set up the stack pointer */ ldr x0, =stack_top mov sp, x0 /* Load the base address of the string into x0 */ ldr x0, =boot_msg /* Write the string to the UART (serial output) */ print_boot_msg: ldrb w2, [x0...
niltsh/mplayer-for-MPlayerX
1,852
loader/wrapper.S
#include "config.h" #define GLUE(a, b) a ## b #define JOIN(a, b) GLUE(a, b) #define MANGLE(s) JOIN(EXTERN_ASM, s) .data .globl MANGLE(caller_return) MANGLE(caller_return): .long 0 .globl MANGLE(report_entry) MANGLE(report_entry): .long MANGLE(null_call) .globl MANGLE(report_ret) MANGLE(report_ret): .long MANGLE(n...
niltsh/mplayer-for-MPlayerX
7,886
libmpeg2/motion_comp_arm_s.S
@ motion_comp_arm_s.S @ Copyright (C) 2004 AGAWA Koji <i (AT) atty (DOT) jp> @ @ This file is part of mpeg2dec, a free MPEG-2 video stream decoder. @ See http://libmpeg2.sourceforge.net/ for updates. @ @ mpeg2dec is free software; you can redistribute it and/or modify @ it under the terms of the GNU General Public Lice...
ninjadynamics/MMC3Template
7,089
crt0.s
; Compile ; Startup code for cc65 and Shiru's NES library ; based on code by Groepaz/Hitmen <groepaz@gmx.net>, Ullrich von Bassewitz <uz@cc65.org> A12_INVERSION = $80 ;must match MMC_MODE in mmc3.h FT_BASE_ADR = $0300 ;page in RAM, should be $xx00 FT_DPCM_OFF = $c000 ;$c000..$ffc0, 64-byte steps FT_SFX_S...
ninjadynamics/MMC3Template
5,476
sfx.s
;this file for FamiTone2 libary generated by nsf2data tool .export _demo_sounds _demo_sounds: .word @ntsc @ntsc: .word @sfx_ntsc_0 .word @sfx_ntsc_1 .word @sfx_ntsc_2 .word @sfx_ntsc_3 .word @sfx_ntsc_4 .word @sfx_ntsc_5 .word @sfx_ntsc_6 .word @sfx_ntsc_7 .word @sfx_ntsc_...
ninjadynamics/MMC3Template
15,141
music_shatterhand.s
; This file for the FamiTone2 library and was generated by FamiStudio _shatterhand_music_data: .byte 1 .word @instruments .word @samples-3 .word @song0ch0,@song0ch1,@song0ch2,@song0ch3,@song0ch4,307,256 @instruments: .byte $30 ;instrument 00 (Bass) .word @env5, @env1, @env1 .byte $00 .byte $30 ;instrument 01 ...
ninjadynamics/MMC3Template
11,011
music_farewell.s
; This file for the FamiTone2 library and was generated by FamiStudio _farewell_music_data: .byte 1 .word @instruments .word @samples-3 .word @song0ch0,@song0ch1,@song0ch2,@song0ch3,@song0ch4,307,256 @instruments: .byte $30 ;instrument 00 (Bass) .word @env2, @env0, @env0 .byte $00 .byte $70 ;instrument 01 (Be...
ninjadynamics/MMC3Template
19,714
chr_default.s
;;{w:8,h:8,bpp:1,count:256,brev:1,np:2,pofs:8,remap:[0,1,2,4,5,6,7,8,9,10,11,12]};; .segment "CHARS" .byte $00,$00,$00,$00,$00,$00,$00,$00 .byte $00,$00,$00,$00,$00,$00,$00,$00 .byte $00,$00,$00,$00,$00,$00,$00,$00 .byte $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF .byte $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF .byte $00,$00,$00,$00,$00,$0...
ninjadynamics/MMC3Template
33,911
famitone2.s
.segment "CODE" .export _famitone_init,_famitone_update .export _music_play,_music_stop,_music_pause ;from mmc3.h .importzp _music_bank,_sfx_bank,_dpcm_bank .importzp _mmc3_cpu_bank, _mmc3_register .importzp _mmc3_last_register, _mmc3_last_cpu_bank .importzp _active_data_bank,_active_data_bank_index ; - - - - - - - ...
ninjadynamics/MMC3Template
8,950
music_dedricil.s
; This file for the FamiTone2 library and was generated by FamiStudio _dedricil_music_data: .byte 1 .word @instruments .word @samples-45 .word @song0ch0,@song0ch1,@song0ch2,@song0ch3,@song0ch4,307,256 ; 00 : 8. Eerie @instruments: .byte $70 ; 00 : Blip 25to12.5 .word @env4, @env2, @env6 .byte $00 .byte $30 ; ...
ninjadynamics/MMC3Template
10,357
music_dangerstreets.s
;this file for FamiTone2 library generated by text2data tool _the_moon_music_data: .byte 1 .word @instruments .word @samples-3 .word @song0ch0,@song0ch1,@song0ch2,@song0ch3,@song0ch4,307,256 @instruments: .byte $30 ; 00 : Bass .word @env0, @env4, @env4 .byte $00 .byte $f0 ; 01 : Bleep .word @env3, @env4, @en...
ninjadynamics/MMC3Template
15,192
neslib.s
;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 ;nesdoug version, 2019-09 ;minor change %%, added ldx #0 to functions returning char ;removed sprid from c functions to speed them up ;Ninja Dynamics ;added...
ninjadynamics/MMC3Template
21,794
music_journey.s
;this file for FamiTone2 library generated by FamiStudio _journey_to_silius_music_data: .byte 1 .word @instruments .word @samples-3 .word @song0ch0,@song0ch1,@song0ch2,@song0ch3,@song0ch4,307,256 @instruments: .byte $70 ;instrument 00 (BackingLead) .word @env13, @env0, @env0 .byte $00 .byte $30 ;instrument 01...
ninjadynamics/MMC3Template
27,562
music_rain.s
_rain_music_data: .byte 1 .word @instruments .word @samples-3 .word @song0ch0,@song0ch1,@song0ch2,@song0ch3,@song0ch4,307,256 @instruments: .byte $30 ;instrument $00 .word @env1,@env15,@env0 .byte $00 .byte $70 ;instrument $01 .word @env2,@env0,@env16 .byte $00 .byte $70 ;instrument $02 .word @env3,@env13,...
ninjadynamics/MMC3Template
10,357
music_themoon.s
;this file for FamiTone2 library generated by text2data tool _the_moon_music_data: .byte 1 .word @instruments .word @samples-3 .word @song0ch0,@song0ch1,@song0ch2,@song0ch3,@song0ch4,307,256 @instruments: .byte $30 ; 00 : Bass .word @env0, @env4, @env4 .byte $00 .byte $f0 ; 01 : Bleep .word @env3, @env4, @en...
nkgongxl/ucoreonrv
1,365
code_practice/lab8/kern/init/entry.S
#include <mmu.h> #include <memlayout.h> .section .text,"ax",%progbits .globl kern_entry kern_entry: # t0 := 三级页表的虚拟地址 lui t0, %hi(boot_page_table_sv39) # t1 := 0xffffffff40000000 即虚实映射偏移量 li t1, 0xffffffffc0000000 - 0x80000000 # t0 减去虚实映射偏移量 0xffffffff40000000,变为三级页表的物理地址 sub ...
nkgongxl/ucoreonrv
3,548
code_practice/lab8/kern/trap/trapentry.S
#include <riscv.h> .altmacro .align 2 .macro SAVE_ALL LOCAL _restore_kernel_sp LOCAL _save_context # If coming from userspace, preserve the user stack pointer and load # the kernel stack pointer. If we came from the kernel, sscratch # will contain 0, and we should continue on the curre...
nkgongxl/ucoreonrv
1,365
code_practice/lab6/kern/init/entry.S
#include <mmu.h> #include <memlayout.h> .section .text,"ax",%progbits .globl kern_entry kern_entry: # t0 := 三级页表的虚拟地址 lui t0, %hi(boot_page_table_sv39) # t1 := 0xffffffff40000000 即虚实映射偏移量 li t1, 0xffffffffc0000000 - 0x80000000 # t0 减去虚实映射偏移量 0xffffffff40000000,变为三级页表的物理地址 sub ...
nkgongxl/ucoreonrv
3,548
code_practice/lab6/kern/trap/trapentry.S
#include <riscv.h> .altmacro .align 2 .macro SAVE_ALL LOCAL _restore_kernel_sp LOCAL _save_context # If coming from userspace, preserve the user stack pointer and load # the kernel stack pointer. If we came from the kernel, sscratch # will contain 0, and we should continue on the curre...
nkgongxl/ucoreonrv
1,365
code_practice/lab2/kern/init/entry.S
#include <mmu.h> #include <memlayout.h> .section .text,"ax",%progbits .globl kern_entry kern_entry: # t0 := 三级页表的虚拟地址 lui t0, %hi(boot_page_table_sv39) # t1 := 0xffffffff40000000 即虚实映射偏移量 li t1, 0xffffffffc0000000 - 0x80000000 # t0 减去虚实映射偏移量 0xffffffff40000000,变为三级页表的物理地址 sub ...
nkgongxl/ucoreonrv
2,826
code_practice/lab2/kern/trap/trapentry.S
#include <riscv.h> .macro SAVE_ALL csrw sscratch, sp addi sp, sp, -36 * REGBYTES # save x registers STORE x0, 0*REGBYTES(sp) STORE x1, 1*REGBYTES(sp) STORE x3, 3*REGBYTES(sp) STORE x4, 4*REGBYTES(sp) STORE x5, 5*REGBYTES(sp) STORE x6, 6*REGBYTES(sp) STORE x7, 7*REGBYTES(sp...
nkgongxl/ucoreonrv
2,699
code_practice/riscv-pk/pk/entry.S
// See LICENSE for license details. #include "encoding.h" #include "bits.h" .macro save_tf # save gprs STORE x1,1*REGBYTES(x2) STORE x3,3*REGBYTES(x2) STORE x4,4*REGBYTES(x2) STORE x5,5*REGBYTES(x2) STORE x6,6*REGBYTES(x2) STORE x7,7*REGBYTES(x2) STORE x8,8*REGBYTES(x2) STORE x9,9*REGBYTES...
nkgongxl/ucoreonrv
2,760
code_practice/riscv-pk/machine/fp_asm.S
// See LICENSE for license details. #ifdef __riscv_flen #define get_f32(which) fmv.x.s a0, which; jr t0 #define put_f32(which) fmv.s.x which, a0; jr t0 #if __riscv_xlen == 64 # define get_f64(which) fmv.x.d a0, which; jr t0 # define put_f64(which) fmv.d.x which, a0; jr t0 #else # define get_f64(which) fsd which, 0(a0...
nkgongxl/ucoreonrv
6,591
code_practice/riscv-pk/machine/mentry.S
// See LICENSE for license details. #include "mtrap.h" #include "bits.h" #include "config.h" .data .align 6 trap_table: #define BAD_TRAP_VECTOR 0 .dc.a bad_trap .dc.a pmp_trap .dc.a illegal_insn_trap .dc.a bad_trap .dc.a misaligned_load_trap .dc.a pmp_trap .dc.a misaligned_store_trap .dc.a pmp_tra...
nkgongxl/ucoreonrv
1,365
code_practice/lab7/kern/init/entry.S
#include <mmu.h> #include <memlayout.h> .section .text,"ax",%progbits .globl kern_entry kern_entry: # t0 := 三级页表的虚拟地址 lui t0, %hi(boot_page_table_sv39) # t1 := 0xffffffff40000000 即虚实映射偏移量 li t1, 0xffffffffc0000000 - 0x80000000 # t0 减去虚实映射偏移量 0xffffffff40000000,变为三级页表的物理地址 sub ...
nkgongxl/ucoreonrv
3,548
code_practice/lab7/kern/trap/trapentry.S
#include <riscv.h> .altmacro .align 2 .macro SAVE_ALL LOCAL _restore_kernel_sp LOCAL _save_context # If coming from userspace, preserve the user stack pointer and load # the kernel stack pointer. If we came from the kernel, sscratch # will contain 0, and we should continue on the curre...
nkgongxl/ucoreonrv
1,365
code_practice/lab5/kern/init/entry.S
#include <mmu.h> #include <memlayout.h> .section .text,"ax",%progbits .globl kern_entry kern_entry: # t0 := 三级页表的虚拟地址 lui t0, %hi(boot_page_table_sv39) # t1 := 0xffffffff40000000 即虚实映射偏移量 li t1, 0xffffffffc0000000 - 0x80000000 # t0 减去虚实映射偏移量 0xffffffff40000000,变为三级页表的物理地址 sub ...
nkgongxl/ucoreonrv
3,548
code_practice/lab5/kern/trap/trapentry.S
#include <riscv.h> .altmacro .align 2 .macro SAVE_ALL LOCAL _restore_kernel_sp LOCAL _save_context # If coming from userspace, preserve the user stack pointer and load # the kernel stack pointer. If we came from the kernel, sscratch # will contain 0, and we should continue on the curre...
nkgongxl/ucoreonrv
1,365
code_practice/lab4/kern/init/entry.S
#include <mmu.h> #include <memlayout.h> .section .text,"ax",%progbits .globl kern_entry kern_entry: # t0 := 三级页表的虚拟地址 lui t0, %hi(boot_page_table_sv39) # t1 := 0xffffffff40000000 即虚实映射偏移量 li t1, 0xffffffffc0000000 - 0x80000000 # t0 减去虚实映射偏移量 0xffffffff40000000,变为三级页表的物理地址 sub ...
nkgongxl/ucoreonrv
2,763
code_practice/lab4/kern/trap/trapentry.S
#include <riscv.h> .macro SAVE_ALL .align 2 csrw sscratch, sp addi sp, sp, -36 * REGBYTES # save gprs STORE x1,1*REGBYTES(sp) STORE x3,3*REGBYTES(sp) STORE x4,4*REGBYTES(sp) STORE x5,5*REGBYTES(sp) STORE x6,6*REGBYTES(sp) STORE x7,7*REGBYTES(sp) STORE x8,8*REGBY...
nkgongxl/ucoreonrv
1,365
code_practice/lab3/kern/init/entry.S
#include <mmu.h> #include <memlayout.h> .section .text,"ax",%progbits .globl kern_entry kern_entry: # t0 := 三级页表的虚拟地址 lui t0, %hi(boot_page_table_sv39) # t1 := 0xffffffff40000000 即虚实映射偏移量 li t1, 0xffffffffc0000000 - 0x80000000 # t0 减去虚实映射偏移量 0xffffffff40000000,变为三级页表的物理地址 sub ...
nkgongxl/ucoreonrv
2,665
code_practice/lab3/kern/trap/trapentry.S
#include <riscv.h> .macro SAVE_ALL .align 2 csrw sscratch, sp addi sp, sp, -36 * REGBYTES # save gprs STORE x1,1*REGBYTES(sp) STORE x3,3*REGBYTES(sp) STORE x4,4*REGBYTES(sp) STORE x5,5*REGBYTES(sp) STORE x6,6*REGBYTES(sp) STORE x7,7*REGBYTES(sp) STORE x8,8*REGBY...
nkgongxl/ucoreonrv
2,854
code_practice/lab1/kern/trap/trapentry.S
#include <riscv.h> .macro SAVE_ALL csrw sscratch, sp addi sp, sp, -36 * REGBYTES # save x registers STORE x0, 0*REGBYTES(sp) STORE x1, 1*REGBYTES(sp) STORE x3, 3*REGBYTES(sp) STORE x4, 4*REGBYTES(sp) STORE x5, 5*REGBYTES(sp) STORE x6, 6*REGBYTES(sp) STORE x7, 7*REGBYTES(sp...
nkgongxl/ucoreonrv
1,365
code_answer/lab8/kern/init/entry.S
#include <mmu.h> #include <memlayout.h> .section .text,"ax",%progbits .globl kern_entry kern_entry: # t0 := 三级页表的虚拟地址 lui t0, %hi(boot_page_table_sv39) # t1 := 0xffffffff40000000 即虚实映射偏移量 li t1, 0xffffffffc0000000 - 0x80000000 # t0 减去虚实映射偏移量 0xffffffff40000000,变为三级页表的物理地址 sub ...
nkgongxl/ucoreonrv
3,548
code_answer/lab8/kern/trap/trapentry.S
#include <riscv.h> .altmacro .align 2 .macro SAVE_ALL LOCAL _restore_kernel_sp LOCAL _save_context # If coming from userspace, preserve the user stack pointer and load # the kernel stack pointer. If we came from the kernel, sscratch # will contain 0, and we should continue on the curre...
nkgongxl/ucoreonrv
1,365
code_answer/lab6/kern/init/entry.S
#include <mmu.h> #include <memlayout.h> .section .text,"ax",%progbits .globl kern_entry kern_entry: # t0 := 三级页表的虚拟地址 lui t0, %hi(boot_page_table_sv39) # t1 := 0xffffffff40000000 即虚实映射偏移量 li t1, 0xffffffffc0000000 - 0x80000000 # t0 减去虚实映射偏移量 0xffffffff40000000,变为三级页表的物理地址 sub ...
nkgongxl/ucoreonrv
3,548
code_answer/lab6/kern/trap/trapentry.S
#include <riscv.h> .altmacro .align 2 .macro SAVE_ALL LOCAL _restore_kernel_sp LOCAL _save_context # If coming from userspace, preserve the user stack pointer and load # the kernel stack pointer. If we came from the kernel, sscratch # will contain 0, and we should continue on the curre...
nkgongxl/ucoreonrv
1,365
code_answer/lab2/kern/init/entry.S
#include <mmu.h> #include <memlayout.h> .section .text,"ax",%progbits .globl kern_entry kern_entry: # t0 := 三级页表的虚拟地址 lui t0, %hi(boot_page_table_sv39) # t1 := 0xffffffff40000000 即虚实映射偏移量 li t1, 0xffffffffc0000000 - 0x80000000 # t0 减去虚实映射偏移量 0xffffffff40000000,变为三级页表的物理地址 sub ...
nkgongxl/ucoreonrv
2,826
code_answer/lab2/kern/trap/trapentry.S
#include <riscv.h> .macro SAVE_ALL csrw sscratch, sp addi sp, sp, -36 * REGBYTES # save x registers STORE x0, 0*REGBYTES(sp) STORE x1, 1*REGBYTES(sp) STORE x3, 3*REGBYTES(sp) STORE x4, 4*REGBYTES(sp) STORE x5, 5*REGBYTES(sp) STORE x6, 6*REGBYTES(sp) STORE x7, 7*REGBYTES(sp...
nkgongxl/ucoreonrv
2,699
code_answer/riscv-pk/pk/entry.S
// See LICENSE for license details. #include "encoding.h" #include "bits.h" .macro save_tf # save gprs STORE x1,1*REGBYTES(x2) STORE x3,3*REGBYTES(x2) STORE x4,4*REGBYTES(x2) STORE x5,5*REGBYTES(x2) STORE x6,6*REGBYTES(x2) STORE x7,7*REGBYTES(x2) STORE x8,8*REGBYTES(x2) STORE x9,9*REGBYTES...
nkgongxl/ucoreonrv
2,760
code_answer/riscv-pk/machine/fp_asm.S
// See LICENSE for license details. #ifdef __riscv_flen #define get_f32(which) fmv.x.s a0, which; jr t0 #define put_f32(which) fmv.s.x which, a0; jr t0 #if __riscv_xlen == 64 # define get_f64(which) fmv.x.d a0, which; jr t0 # define put_f64(which) fmv.d.x which, a0; jr t0 #else # define get_f64(which) fsd which, 0(a0...
nkgongxl/ucoreonrv
6,591
code_answer/riscv-pk/machine/mentry.S
// See LICENSE for license details. #include "mtrap.h" #include "bits.h" #include "config.h" .data .align 6 trap_table: #define BAD_TRAP_VECTOR 0 .dc.a bad_trap .dc.a pmp_trap .dc.a illegal_insn_trap .dc.a bad_trap .dc.a misaligned_load_trap .dc.a pmp_trap .dc.a misaligned_store_trap .dc.a pmp_tra...
nkgongxl/ucoreonrv
1,365
code_answer/lab7/kern/init/entry.S
#include <mmu.h> #include <memlayout.h> .section .text,"ax",%progbits .globl kern_entry kern_entry: # t0 := 三级页表的虚拟地址 lui t0, %hi(boot_page_table_sv39) # t1 := 0xffffffff40000000 即虚实映射偏移量 li t1, 0xffffffffc0000000 - 0x80000000 # t0 减去虚实映射偏移量 0xffffffff40000000,变为三级页表的物理地址 sub ...
nkgongxl/ucoreonrv
3,548
code_answer/lab7/kern/trap/trapentry.S
#include <riscv.h> .altmacro .align 2 .macro SAVE_ALL LOCAL _restore_kernel_sp LOCAL _save_context # If coming from userspace, preserve the user stack pointer and load # the kernel stack pointer. If we came from the kernel, sscratch # will contain 0, and we should continue on the curre...
nkgongxl/ucoreonrv
4,150
code_answer/lab5/boot/bootasm.S
#include <asm.h> # Start the CPU: switch to 32-bit protected mode, jump into C. # The BIOS loads this code from the first sector of the hard disk into # memory at physical address 0x7c00 and starts executing in real mode # with %cs=0 %ip=7c00. .set PROT_MODE_CSEG, 0x8 # kernel code segment ...
nkgongxl/ucoreonrv
1,365
code_answer/lab5/kern/init/entry.S
#include <mmu.h> #include <memlayout.h> .section .text,"ax",%progbits .globl kern_entry kern_entry: # t0 := 三级页表的虚拟地址 lui t0, %hi(boot_page_table_sv39) # t1 := 0xffffffff40000000 即虚实映射偏移量 li t1, 0xffffffffc0000000 - 0x80000000 # t0 减去虚实映射偏移量 0xffffffff40000000,变为三级页表的物理地址 sub ...
nkgongxl/ucoreonrv
3,548
code_answer/lab5/kern/trap/trapentry.S
#include <riscv.h> .altmacro .align 2 .macro SAVE_ALL LOCAL _restore_kernel_sp LOCAL _save_context # If coming from userspace, preserve the user stack pointer and load # the kernel stack pointer. If we came from the kernel, sscratch # will contain 0, and we should continue on the curre...
nkgongxl/ucoreonrv
1,365
code_answer/lab4/kern/init/entry.S
#include <mmu.h> #include <memlayout.h> .section .text,"ax",%progbits .globl kern_entry kern_entry: # t0 := 三级页表的虚拟地址 lui t0, %hi(boot_page_table_sv39) # t1 := 0xffffffff40000000 即虚实映射偏移量 li t1, 0xffffffffc0000000 - 0x80000000 # t0 减去虚实映射偏移量 0xffffffff40000000,变为三级页表的物理地址 sub ...
nkgongxl/ucoreonrv
2,763
code_answer/lab4/kern/trap/trapentry.S
#include <riscv.h> .macro SAVE_ALL .align 2 csrw sscratch, sp addi sp, sp, -36 * REGBYTES # save gprs STORE x1,1*REGBYTES(sp) STORE x3,3*REGBYTES(sp) STORE x4,4*REGBYTES(sp) STORE x5,5*REGBYTES(sp) STORE x6,6*REGBYTES(sp) STORE x7,7*REGBYTES(sp) STORE x8,8*REGBY...
nkgongxl/ucoreonrv
1,365
code_answer/lab3/kern/init/entry.S
#include <mmu.h> #include <memlayout.h> .section .text,"ax",%progbits .globl kern_entry kern_entry: # t0 := 三级页表的虚拟地址 lui t0, %hi(boot_page_table_sv39) # t1 := 0xffffffff40000000 即虚实映射偏移量 li t1, 0xffffffffc0000000 - 0x80000000 # t0 减去虚实映射偏移量 0xffffffff40000000,变为三级页表的物理地址 sub ...
nkgongxl/ucoreonrv
2,665
code_answer/lab3/kern/trap/trapentry.S
#include <riscv.h> .macro SAVE_ALL .align 2 csrw sscratch, sp addi sp, sp, -36 * REGBYTES # save gprs STORE x1,1*REGBYTES(sp) STORE x3,3*REGBYTES(sp) STORE x4,4*REGBYTES(sp) STORE x5,5*REGBYTES(sp) STORE x6,6*REGBYTES(sp) STORE x7,7*REGBYTES(sp) STORE x8,8*REGBY...
nkgongxl/ucoreonrv
2,854
code_answer/lab1/kern/trap/trapentry.S
#include <riscv.h> .macro SAVE_ALL csrw sscratch, sp addi sp, sp, -36 * REGBYTES # save x registers STORE x0, 0*REGBYTES(sp) STORE x1, 1*REGBYTES(sp) STORE x3, 3*REGBYTES(sp) STORE x4, 4*REGBYTES(sp) STORE x5, 5*REGBYTES(sp) STORE x6, 6*REGBYTES(sp) STORE x7, 7*REGBYTES(sp...
nopjne/DaisyDrive64
3,317
external/libdragon/tests/rsp_test.S
#include <rsp_queue.inc> #define ASSERT_GP_BACKWARD 0xF001 // Also defined in test_rspq.c .set noreorder .set at .data RSPQ_BeginOverlayHeader RSPQ_DefineCommand command_test, 4 # 0x00 RSPQ_DefineCommand command_test, 8 # 0x01 RSPQ_DefineComman...
nopjne/DaisyDrive64
2,286
external/libdragon/src/rsp_crash.S
# RSP ucode that is used as part of the crash handler. # It extracts the value of all registers into DMEM so that they can be # shown in the exception screen. #include <rsp.inc> .data EMPTY: .long 0 .text .globl _start _start: .set noat sw $0, 0*4(zero) sw $1, 1*4(zero) sw $2, 2*4(zero) sw $3, 3*4(zero...
nopjne/DaisyDrive64
6,396
external/libdragon/src/regs.S
/* * regs.S -- standard MIPS register names. * * Copyright (c) 1995 Cygnus Support * * The authors hereby grant permission to use, copy, modify, distribute, * and license this software and its documentation for any purpose, provided * that existing copyright notices are retained in all copies and that this * no...
nopjne/DaisyDrive64
10,216
external/libdragon/src/inthandler.S
/* Simple interrupt handler, hands off MIPS interrupts to higher level processes. Based on INITS.inc from Neon64. It is not reentrant, so interrupts are disabled for the duration. Safe for doing most things, including FPU operations, within handlers. */ #include "regs.S" .align 5 inthandler: .global in...
nopjne/DaisyDrive64
2,646
external/libdragon/src/entrypoint.S
/* * N64 init code for GNU as */ #include "regs.S" .set noreorder .section .boot .global _start _start: lw t0, 0x80000318 /* memory size */ /* Check whether we are running on iQue or N64. Use the MI version register which has LSB set to 0xB0 on iQue. We assume 0xBn was meant for BBPlayer. Notice ...
nopjne/DaisyDrive64
3,109
external/libdragon/examples/rspqdemo/rsp_vec.S
#include <rsp_queue.inc> #define SLOT_SIZE 0x20 #define NUM_SLOTS 0x20 .set noreorder .set at .data RSPQ_BeginOverlayHeader RSPQ_DefineCommand VecCmd_Load, 8 RSPQ_DefineCommand VecCmd_Store, 8 RSPQ_DefineCommand VecCmd_Transform, 8 RSPQ_EndOverlayHeader RSPQ_BeginSavedStat...
nopjne/DaisyDrive64
33,791
external/libdragon/src/audio/rsp_mixer.S
#################################################################### # # Libdragon RSP ucode for audio mixer # #################################################################### ############################################################## # # This ucode implements a mixer, for 32 channels of digital sample...
nopjne/DaisyDrive64
34,329
external/libdaisy/core/startup_stm32h750xx.s
/** ****************************************************************************** * @file startup_stm32h750xx.s * @author MCD Application Team * @brief STM32H750xx Devices vector table for GCC based toolchain. * This module performs: * - Set the initial SP * ...
nopjne/DaisyDrive64
5,360
external/libdaisy/Drivers/CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S
;/* ---------------------------------------------------------------------- ; * Project: CMSIS DSP Library ; * Title: arm_bitreversal2.S ; * Description: arm_bitreversal_32 function done in assembly for maximum speed. ; * Called after doing an fft to reorder the output. ; * The f...
nopjne/DaisyDrive64
45,546
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h755xx.s
;******************** (C) COPYRIGHT 2019 STMicroelectronics ******************** ;* File Name : startup_stm32h755xx.s ;* @author MCD Application Team ;* Description : STM32H7xx devices vector table for MDK-ARM toolchain. ;* This module performs: ;* - Set the i...
nopjne/DaisyDrive64
44,410
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h750xx.s
;******************** (C) COPYRIGHT 2018 STMicroelectronics ******************** ;* File Name : startup_stm32h750xx.s ;* @author MCD Application Team ;* Description : STM32H7xx devices vector table for MDK-ARM toolchain. ;* This module performs: ;* - Set the i...
nopjne/DaisyDrive64
45,168
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h745xx.s
;******************** (C) COPYRIGHT 2019 STMicroelectronics ******************** ;* File Name : startup_stm32h745xx.s ;* @author MCD Application Team ;* Description : STM32H7xx devices vector table for MDK-ARM toolchain. ;* This module performs: ;* - Set the i...
nopjne/DaisyDrive64
45,157
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h747xx.s
;******************** (C) COPYRIGHT 2019 STMicroelectronics ******************** ;* File Name : startup_stm32h747xx.s ;* @author MCD Application Team ;* Description : STM32H7xx devices vector table for MDK-ARM toolchain. ;* This module performs: ;* - Set the i...
nopjne/DaisyDrive64
44,410
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h753xx.s
;******************** (C) COPYRIGHT 2017 STMicroelectronics ******************** ;* File Name : startup_stm32h753xx.s ;* @author MCD Application Team ;* Description : STM32H7xx devices vector table for MDK-ARM toolchain. ;* This module performs: ;* - Set the i...
nopjne/DaisyDrive64
44,144
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h743xx.s
;******************** (C) COPYRIGHT 2017 STMicroelectronics ******************** ;* File Name : startup_stm32h743xx.s ;* @author MCD Application Team ;* Description : STM32H7xx devices vector table for MDK-ARM toolchain. ;* This module performs: ;* - Set the i...
nopjne/DaisyDrive64
45,642
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h757xx.s
;******************** (C) COPYRIGHT 2019 STMicroelectronics ******************** ;* File Name : startup_stm32h757xx.s ;* @author MCD Application Team ;* Description : STM32H7xx devices vector table for MDK-ARM toolchain. ;* This module performs: ;* - Set the i...
nopjne/DaisyDrive64
43,733
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h742xx.s
;******************** (C) COPYRIGHT 2019 STMicroelectronics ******************** ;* File Name : startup_stm32h742xx.s ;* @author MCD Application Team ;* Description : STM32H7xx devices vector table for MDK-ARM toolchain. ;* This module performs: ;* - Set the i...
nopjne/DaisyDrive64
34,866
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h755xx.s
/** ****************************************************************************** * @file startup_stm32h755xx.s * @author MCD Application Team * @brief STM32H755xx Devices vector table for GCC based toolchain. * This module performs: * - Set the initial SP * ...
nopjne/DaisyDrive64
34,329
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h750xx.s
/** ****************************************************************************** * @file startup_stm32h750xx.s * @author MCD Application Team * @brief STM32H750xx Devices vector table for GCC based toolchain. * This module performs: * - Set the initial SP * ...
nopjne/DaisyDrive64
34,766
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h745xx.s
/** ****************************************************************************** * @file startup_stm32h745xx.s * @author MCD Application Team * @brief STM32H745xx Devices vector table for GCC based toolchain. * This module performs: * - Set the initial SP * ...
nopjne/DaisyDrive64
34,854
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h747xx.s
/** ****************************************************************************** * @file startup_stm32h747xx.s * @author MCD Application Team * @brief STM32H747xx Devices vector table for GCC based toolchain. * This module performs: * - Set the initial SP * ...
nopjne/DaisyDrive64
34,329
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h753xx.s
/** ****************************************************************************** * @file startup_stm32h753xx.s * @author MCD Application Team * @brief STM32H753xx Devices vector table for GCC based toolchain. * This module performs: * - Set the initial SP * ...
nopjne/DaisyDrive64
34,230
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h743xx.s
/** ****************************************************************************** * @file startup_stm32h743xx.s * @author MCD Application Team * @brief STM32H743xx Devices vector table for GCC based toolchain. * This module performs: * - Set the initial SP * ...
nopjne/DaisyDrive64
34,953
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h757xx.s
/** ****************************************************************************** * @file startup_stm32h757xx.s * @author MCD Application Team * @brief STM32H757xx Devices vector table for GCC based toolchain. * This module performs: * - Set the initial SP * ...
nopjne/DaisyDrive64
33,952
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h742xx.s
/** ****************************************************************************** * @file startup_stm32h742xx.s * @author MCD Application Team * @brief STM32H742xx Devices vector table for GCC based toolchain. * This module performs: * - Set the initial SP * ...
nopjne/DaisyDrive64
39,060
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/startup_stm32h755xx.s
;/******************** (C) COPYRIGHT 2019 STMicroelectronics ******************** ;* File Name : startup_stm32h755xx.s ;* Author : MCD Application Team ;* Description : STM32H755xx devices vector table for EWARM toolchain. ;* This module performs: ;* ...
nopjne/DaisyDrive64
38,273
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/startup_stm32h750xx.s
;/******************** (C) COPYRIGHT 2018 STMicroelectronics ******************** ;* File Name : startup_stm32h750xx.s ;* Author : MCD Application Team ;* Description : STM32H750xx devices vector table for EWARM toolchain. ;* This module performs: ;* ...
nopjne/DaisyDrive64
38,924
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/startup_stm32h745xx.s
;/******************** (C) COPYRIGHT 2019 STMicroelectronics ******************** ;* File Name : startup_stm32h745xx.s ;* Author : MCD Application Team ;* Description : STM32H745xx devices vector table for EWARM toolchain. ;* This module performs: ;* ...
nopjne/DaisyDrive64
39,063
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/startup_stm32h747xx.s
;/******************** (C) COPYRIGHT 2019 STMicroelectronics ******************** ;* File Name : startup_stm32h747xx.s ;* Author : MCD Application Team ;* Description : STM32H747xx devices vector table for EWARM toolchain. ;* This module performs: ;* ...
nopjne/DaisyDrive64
38,273
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/startup_stm32h753xx.s
;/******************** (C) COPYRIGHT 2017 STMicroelectronics ******************** ;* File Name : startup_stm32h753xx.s ;* Author : MCD Application Team ;* Description : STM32H753xx devices vector table for EWARM toolchain. ;* This module performs: ;* ...
nopjne/DaisyDrive64
38,135
external/libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/startup_stm32h743xx.s
;/******************** (C) COPYRIGHT 2017 STMicroelectronics ******************** ;* File Name : startup_stm32h743xx.s ;* Author : MCD Application Team ;* Description : STM32H743xx devices vector table for EWARM toolchain. ;* This module performs: ;* ...