02 2018 档案
CS:APP 05 笔记
摘要:指令操作寄存器时: 生成1字节、2字节数字的指令保持其余字节不变; 4字节指令把高位4个字节置0 阅读全文
posted @ 2018-02-21 19:31 苛性氢 阅读(129) 评论(0) 推荐(0)
CS:APP 06 笔记
摘要:leaq是地址运算,不改变符号 阅读全文
posted @ 2018-02-21 14:12 苛性氢 阅读(142) 评论(0) 推荐(0)
CS:APP datalab
摘要:做得有点慢,位运算确实不太容易想到…… 写出来的代码如果没有注释也不容易看懂。 1 /* 2 * CS:APP Data Lab 3 * 4 * <Please put your name and userid here> 5 * 6 * bits.c - Source file with your 阅读全文
posted @ 2018-02-06 20:34 苛性氢 阅读(343) 评论(0) 推荐(0)
位运算实现三元表达式
摘要:15213 - Recitation 3 - Datalab Find an algorithm for computing the expression (cond) ? t : f , which equals t if cond is1 and f if cond is 0. ________ 阅读全文
posted @ 2018-02-03 17:32 苛性氢 阅读(266) 评论(0) 推荐(0)