⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 strncpy.s

📁 Linux内核源代码 为压缩文件 是<<Linux内核>>一书中的源代码
💻 S
字号:
/* *  arch/s390/kernel/strncpy.S *    S390 strncpy routine * *  S390 version *    Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation *    Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com), *//* * R2 = address of destination * R3 = address of source string * R4 = max number of bytes to copy */        .globl   strncpystrncpy:        LR      1,2            # don't touch address in R2	LTR     4,4        JZ      strncpy_exit   # 0 bytes -> nothing to do	SR      0,0strncpy_loop:        ICM     0,1,0(3)       # ICM sets the cc, IC does not	LA      3,1(0,3)        STC     0,0(0,1)	LA      1,1(0,1)        JZ      strncpy_exit   # ICM inserted a 0x00        BRCT    4,strncpy_loop # R4 -= 1, jump to strncpy_loop if >  0strncpy_exit:        BR      14

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -