AAU用汇编代码获取CPU序列号

可以做机器码用。

import sys.cpu;
var cpuInfo = sys.cpu.getInfo(1,{ INT eax;INT ebx;INT ecx;INT edx } )
var cpuid = string.format(“%08X%08X”,cpuInfo.edx,cpuInfo.eax )

import console;
console.log(
“CPU序列号”,cpuid)
console.log(
“CPU频率”,math.round(sys.cpu.getFrequence()/1000,2) + ” GHz” )
console.log(
“CPU商标”,sys.cpu.getBrand() )
console.log(
“CPU厂商”, ( sys.cpu.getVender() ) )

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片快捷回复

    暂无评论内容