cccnqu / co107a Goto Github PK
View Code? Open in Web Editor NEW陳鍾誠的計算機結構課程 -- Nand2tetris Part I
License: MIT License
陳鍾誠的計算機結構課程 -- Nand2tetris Part I
License: MIT License
記得寫姓名與學號(末兩碼)
口試前先把 ALU, CPU, Computer.hdl 打開
打開給我看的應該是你自己寫的版本,而不是老師或網路的版本!
1/10 12:00 口試準時結束,還沒口試者就沒口試成績了,請儘早口試!
#include <stdio.h>
int sum(int n) {
int s = 0; // @s; M=0;
int i = 1; // @i; M=1;
WHILE: // (WHILE)
// while (i<=n) {
s = s + i; // @i; D=M; D=i
// @s; D=D+M; D=D+s
// @s; M=D; s=D
i = i + 1;
// }
// i<=n .... => i-n <=0
if (i<=n) goto WHILE; // @n; D=M; D=n
// @i; D=M-D; D=i-D D=i-n
// @WHILE;
// D; JLE
return s;
}
int main() {
int s10 = sum(10);
printf("s10=%d\n", s10);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.