mirror of
https://gitlab.com/brendanhaines/cpu.git
synced 2024-11-09 21:14:57 -07:00
65 lines
989 B
ArmAsm
65 lines
989 B
ArmAsm
.global _start
|
|
.text
|
|
_start:
|
|
add x1, x0, x0
|
|
add x2, x0, x0
|
|
add x3, x0, x0
|
|
add x4, x0, x0
|
|
add x5, x0, x0
|
|
add x6, x0, x0
|
|
add x7, x0, x0
|
|
add x8, x0, x0
|
|
add x9, x0, x0
|
|
add x10, x0, x0
|
|
add x11, x0, x0
|
|
add x12, x0, x0
|
|
add x13, x0, x0
|
|
add x14, x0, x0
|
|
add x15, x0, x0
|
|
add x16, x0, x0
|
|
add x17, x0, x0
|
|
add x18, x0, x0
|
|
add x19, x0, x0
|
|
add x20, x0, x0
|
|
add x21, x0, x0
|
|
add x22, x0, x0
|
|
add x23, x0, x0
|
|
add x24, x0, x0
|
|
add x25, x0, x0
|
|
add x26, x0, x0
|
|
add x27, x0, x0
|
|
add x28, x0, x0
|
|
add x29, x0, x0
|
|
add x30, x0, x0
|
|
add x31, x0, x0
|
|
|
|
# nop required because cpu currently does not detect when something is needed from a later stage of the pipeline.
|
|
# 5 clocks allows one instruction to finish before the next starts
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
addi x1, x0, 0x12
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
addi x2, x0, 0x11
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
add x3, x2, x1
|
|
loop:
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
j loop
|
|
|
|
.data
|