引言 每个存储单元只有一个物理地址,但它可由不同的段基址和偏移地址组成。物理地址 = 段基址 * 16 + 偏 […]
关哥的汇编笔记(二)寄存器与堆栈
引言 寄存器存在于CPU内部,用来暂时存放参与运算的数据和运算结果。一个n位(bit)的寄存器可以存放n个二进 […]
PAT (Advanced Level) Practice 1007 Maximum Subsequence Sum
Given a sequence of K integers { N1, N2, …, NK}. […]
PAT (Advanced Level) Practice 1006 Sign In and Sign Out
At the beginning of every day, the first person who sig […]
PAT (Advanced Level) Practice 1005 Spell It Right
Given a non-negative integer N, your task is to compute […]
PAT (Advanced Level) Practice 1004 Counting Leaves
A family hierarchy is usually presented by a pedigree t […]
PAT (Advanced Level) Practice 1003 Emergency
As an emergency rescue team leader of a city, you are g […]
PAT (Advanced Level) Practice 1002 A+B for Polynomials
This time, you are supposed to find A+B where A and B a […]
PAT (Advanced Level) Practice 1001 A+B Format
Calculate a+b and output the sum in standard format  […]