随笔分类 -  MASM

从头开始学汇编
细察linux cpu使用率和内存
摘要:安装:sudo apt install htop 运行:htop 阅读全文

posted @ 2023-03-16 09:35 金凯旋 阅读(35) 评论(0) 推荐(0)

第二章:二进制、十六进制和寄存器
摘要:1. 补码(以8位数为例) 正数: 最左边为0时,为正数。 如 01000000b, 最小为0, 最大为0111111b(127) 负数: 正数取反 + 1 如:10111111+1 = 11000000 最大为0 最小 -128 所以,负数需要计算才可以取出来,直接判断很容易出现失误 寄存器: 计 阅读全文

posted @ 2022-10-31 18:16 金凯旋 阅读(80) 评论(0) 推荐(0)

第一个helloworld程序
摘要:; hello.asm section .data msg db "hello, world",13,10,0 section .bss section .text global main main: mov rax,1 ; 写 mov rdi, 1 ; 到标准设备-屏幕 mov rsi,msg ; 阅读全文

posted @ 2022-10-31 17:51 金凯旋 阅读(37) 评论(0) 推荐(0)

导航