ascbin.c
来自「RISC处理器仿真分析程序。可以用于研究通用RISC处理器的指令和架构设计。在l」· C语言 代码 · 共 28 行
C
28 行
/************************************************************************* Copyright (C) 1989, 1990, 1991, 1992, 1993 ** Rabin A. Sugumar and Santosh G. Abraham ** ** This software is distributed absolutely without warranty. You are ** free to use and modify the software as you wish. You are also free ** to distribute the software as long as it is not for commercial gain, ** you retain the above copyright notice, and you make clear what your ** modifications were. ** ** Send comments and bug reports to rabin@eecs.umich.edu ** *************************************************************************//* Converts ASCII trace files into the binary format for the simulators */#include <stdio.h>main(){int addr; while (fscanf(stdin, "%d", &addr) != EOF) fwrite((char *) &addr, 4, 1, stdout); return (0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?