assembly language
High_High
让漫天繁星在指尖随心闪耀。
展开
-
关于逻辑门电路的好文
Logic gate circuit, not, and, or, and add...转载 2011-03-03 07:19:00 · 646 阅读 · 0 评论 -
keyboard buffer
// also as note for interruptWhen a key is either pressed or released, an interrupt is generated. On an ISA machine this interrupt is allotted, IRQ#1, which in turn is reported by the interrupt cont转载 2012-03-21 09:25:49 · 3233 阅读 · 0 评论 -
不光是汇编开发指南
Linux 汇编语言开发指南写的挺不错的。原创 2012-02-15 01:02:33 · 2684 阅读 · 0 评论 -
C调用汇编
例子:在C的main函数中调用汇编语言写的addone函数,把传入的参数加一然后返回。汇编里面首先要把用到的寄存器压栈,使用指令global使函数可以在其他文件中调用,顺便说一句,C中的static函数之所以只能在本文件中可用,就是编译后的汇编文件没有用global指令,汇编的返回值放在EAX寄存器中。汇编文件名是addone.asm,汇编方法在后面,内容如下:global add原创 2012-01-08 04:18:42 · 7663 阅读 · 0 评论 -
关于寄存器
这篇博客不错:点击进入这篇也不错:点击进入翻译 2011-12-08 12:39:01 · 636 阅读 · 0 评论 -
out of range的两个标志(flag)
out of range 有两个标志:carry 和 overflow无符号整数进行算术运算产生 out of range错误后会设置(set) carry flag。有符号运算设置(set) overflow flag。下面的栗子是一个字节整数的运算,无符号范围:0~255, 有符号范围:-128~127例子1:FFH + FFH最终结果:设置(set) carry fl翻译 2011-11-04 10:52:58 · 1360 阅读 · 0 评论 -
closing
<br />The surface has barely been scratched. But the way forward is open.<br /> <br />2011-04-22 22:37:03转载 2011-04-23 10:36:00 · 774 阅读 · 0 评论 -
abstraction(engineering)
abstraction make things simple原创 2011-04-23 09:02:00 · 744 阅读 · 0 评论 -
haha
A CPU without an interrupt pin has been compared to a telephone without a bell.A processor with a one-at-a-time interrupt policy can be like a household with a single, occupied bathroom.原创 2011-04-20 09:04:00 · 669 阅读 · 0 评论 -
storage protocols
<br />1. When an n byte transfer is indicated by an address a, the memory bytes refered to are those at the addresses a, a+1, ...a+n-1. All architectures do this.<br />2. When an n byte number is stored in memory, its bytes are stored in order of significa转载 2011-04-15 11:54:00 · 737 阅读 · 0 评论 -
寄存器啊寄存器
爱情蒲公英演唱会上除了黄品源的歌真好听。原创 2011-04-13 09:44:00 · 689 阅读 · 0 评论 -
begin assembly language
入门教程,编译和链接的指令。原创 2011-03-11 11:18:00 · 1033 阅读 · 0 评论 -
video buffer里的属性
内存中从0xB8000h起始的一段地址叫做图像缓存(video buffer)。0xB8000开始的字符位于屏幕左上角,整个屏幕一共25行,80列。每个字符占用两个字节,前一个字节是ASCII码,后一个字节属性。属性如下表:BitUsageExample7Blinking06Background Red05Ba翻译 2012-05-17 05:24:25 · 4843 阅读 · 0 评论