Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
li a0,'A'
|
||||
li a0,0x41
|
||||
li a0,65
|
||||
li a0,0b01000001
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
;print 0 if $t0 if even, 1 if $t0 is odd
|
||||
|
||||
andi t0,t0,1 ;clear all but bit 1. This tells us if $t0 is odd or even.
|
||||
addiu t0,"0" ;add ASCII 0 (0x30) to $t0
|
||||
jal PrintChar ;implementation-defined print routine that prints the ASCII value of $t0 to the screen.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
MyString:
|
||||
.byte "Hello World!",13,10,0 ;carriage return, line feed, null terminator
|
||||
.align 4 ;pads to the next 4 byte-boundary
|
||||
Loading…
Add table
Add a link
Reference in a new issue