Auxilium (11-12-2014)
Assembly seems dead lately so here is a tutorial for MIPS.
Thing you will need is mars spim
https://courses.missouristate.edu/KenVollmar/MARS/
here is the commands you need to know for this program very simple.
la = Load Address
li = Load Immediate
j = Jump
Save you're code then hit (f3) or the assemble button and go line by line
to see the processes.
Code:.data msg: .ascii "MPGH" # Non-null string .text main: # Beginning of function la $a0, msg # Loads address of the msg label to the register $a0 li $v0, 4 # Loads the integer 4 in to the register $v0, output string syscall # Starts the function j end # Jumps to the end label end: # Label li $v0, 10 # Loads the integer 10 in to the register $v0, tells the program to stop syscall # Starts the function
Last edited by Elyne1331; 11-12-2014 at 09:25 AM.
Code:-a 137D:0100 mov ax, 0200 137D:0103 mov dx, 004D 137D:0106 int 21 137D:0108 mov dx, 0050 137D:010B int 21 137D:010D mov dx, 0047 137D:0110 int 21 137D:0112 mov dx, 0048 137D:0115 int 21 137D:0117 int 20 137D:0119 -h 0119 0100 0219 0019 -n 1337.com -rcx CX 0000 :0019 -w Writing 00019 bytes -g MPGH Program terminated normally
Auxilium (11-12-2014)
Lol nice to see another person interested in assembly.
I only really have experience with x86 assembly, but it's nice to see and intriguing to look at other processor architectures and assembly languages
There is still people who enjoy assembly just needs to be brought back to life lol, I'm not to familiar with x86 but always looking to learn, I even made a group for assembly for people who are interested in it.
Code:-a 137D:0100 mov ax, 0200 137D:0103 mov dx, 004D 137D:0106 int 21 137D:0108 mov dx, 0050 137D:010B int 21 137D:010D mov dx, 0047 137D:0110 int 21 137D:0112 mov dx, 0048 137D:0115 int 21 137D:0117 int 20 137D:0119 -h 0119 0100 0219 0019 -n 1337.com -rcx CX 0000 :0019 -w Writing 00019 bytes -g MPGH Program terminated normally