diff options
author | Freya Murphy <freya@freyacat.org> | 2024-09-09 12:41:49 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-09-09 12:41:49 -0400 |
commit | 2ed275821676a0d5baea6c7fd843d71c72c2342c (patch) | |
tree | 480297f28e5c42d02a47b3b94027a7abe507d010 /masm/test.asm | |
download | mips-2ed275821676a0d5baea6c7fd843d71c72c2342c.tar.gz mips-2ed275821676a0d5baea6c7fd843d71c72c2342c.tar.bz2 mips-2ed275821676a0d5baea6c7fd843d71c72c2342c.zip |
initial mips32 (r2000ish mips32r6) assembler
Diffstat (limited to '')
-rw-r--r-- | masm/test.asm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/masm/test.asm b/masm/test.asm new file mode 100644 index 0000000..c3b61fb --- /dev/null +++ b/masm/test.asm @@ -0,0 +1,22 @@ +.text +.align 2 + +main: + add $zero,$t7,$t7 + xori $a0, $v1, 69 + addi $a0, $v1, 69 + nor $s0, $s1, $s2 + + bltzall $s7, 0x50 + + lui $t7, 0x55 + lw $t0, 18($t7) + + sll $t0, $s0, 17 +test: + mult $a0, $s6 + + mfhi $s0 + mtlo $s7 + + j test |