- 博客(3)
- 问答 (1)
- 收藏
- 关注
原创 Ubuntu X86_64 读取gdtr内容
通过执行内嵌汇编asm获取gdtr内容。由于64位X86架构的gdtr有80(64+16)位,需要10个字节的内存来进行存储。#include<stdio.h>#define LEN 10int main(){ unsigned char ch[LEN]; int i; printf("***\n"); printf("null:"); for(i = 0; i < LEN; i++){ ch[i] = 0; printf("%02X",ch[i].
2020-08-26 11:14:52
755
4
原创 c语言程序设计现代方法22.6习题
#include<stdio.h>#include<stdlib.h>#include<ctype.h>#define POINT ‘.’void print_head(void);main(int argc, char* argv[]){int ch, i = 0;char str[11];FILE *fp;if (argc != 2){...
2020-03-05 15:23:33
269
空空如也
ARM 设置SVC 0x123456出错
2020-04-09
TA创建的收藏夹 TA关注的收藏夹
TA关注的人