First/test.asm

15 lines
182 B
NASM
Raw Normal View History

MOV $123456,%SP
MOV $0x0001,%R0l
MOV $0x0000,%R0h
MOV $0x0000,%R1l
MOV $0x0000,%R1h
CALL $SUBROUTINE
CALL $SUBROUTINE
CALL $SUBROUTINE
JMP $END
:SUBROUTINE
ADD %R0,%R1
RET
:END
HALT