範例:CPU0 組合語言 - 數學運算式
CPU0 組合語言 C語言 (對照版) C語言
LD R2, B
LD R3, C
LD R4, D
ADD R1, R2, R3
SUB R1, R1, R4
ST R1, A
R2 = B
R3 = C
R4 = D
R1 = R2 + R3
R1 = R1 – R4
A = R1
A = B + C – D
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License