Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
将两个数字 6 和 3 相乘,重复将 3 相加六次,使用循环将 3 相加六次并将结果存储到累加器中。
INPUT STORE x INPUT STORE y loop, LOAD x ADD multiply STORE multiply LOAD y SUBT one STORE y SKIPCOND 400 JUMP loop LOAD multiply OUTPUT HALT x, Dec 0 y, Dec 0 one, Dec 1 multiply, Dec 0