📄 p1_rom.txt
字号:
P1: JUMP R30, R0, INIT -- Call init subroutine, link in R30 (=P1+4)00111 11 11110 00000 0000 0000 0000 1110 ADDI R1, R0, 12 -- R1 = 12, index counter4 0000 01 00001 00000 0000 0000 0000 1100 ADDI R4, R0, R0 -- R4 = 0, accumulator8 0000 00 00100 00000 00000 L1: LW R2, R1, 1024 -- Read from array at address 1024121000 11 00010 00001 0000 0001 0000 0000 LW R3, R1, 1040 -- Read from array at address 1040161000 11 00011 00001 0000 0001 0000 0100 MUL R5, R2, R3 -- Multiply array elements200010 00 00101 00010 00011 ADDI R1, R1, -4 -- Compute next index24 0000 01 00001 00001 1111 1111 1111 1100 ADD R4, R4, R5 -- Add product to accumulator28 0000 00 00100 00100 00101 CMP R5, R0, R1 -- Check if next index < 032 0110 00 00101 00000 00001 BNE R5, R0, -28 -- Branch to L1 if next index
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -