#BEQ MIPS MAXIMUM JUMMP DISTANCE CODE#globl _main # Declares an instruction label as # global, making it accessible to # other files _main: # MIPS programs execute # instructions sequentially, where # the code under this label will be # executed first # Let's print "hello world" la $a0, hello_world # Load address of string stored # in memory li $v0, 4 # Load the syscall value (number # indicating which syscall to make) syscall # Perform the specified syscall # with the given argument ($a0) # Registers (used to hold data during program execution) # $t0 - $t9 # Temporary registers used for # intermediate calculations inside # subroutines (not saved across # function calls) # $s0 - $s7 # Saved registers where values are # saved across subroutine calls. text # Section that contains # instructions and program logic. (.align 2 # represents word alignment since # 2^2 = 4 bytes). align 2 # Memory alignment of data, where # number indicates byte alignment # in powers of 2. space 60 # Allocates space in the RAM # (not cleared to 0) # Datatype sizes _byte. byte ' a ', ' b ' # Array of chars (1 byte each) buffer. word 1, 2, 3, 4, 5 # Array of words arr2. word 42 # Integers are referred to as words # (32-bit value) arr1. asciiz "Hello World\n" # Declare a null terminated string num1. type value(s) ) form of declaration hello_world. data # Section where data is stored in memory (allocated in RAM), similar to # variables in higher-level languages # Declarations follow a ( label. 239000007853 buffer solution Substances 0.# Comments are denoted with a '#' # Everything that occurs after a '#' will be ignored by the assembler's lexer.Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.) Filing date Publication date Application filed by Te-An Wang filed Critical Te-An Wang Priority to US12/202,363 priority Critical patent/US8019980B2/en Publication of US20100058038A1 publication Critical patent/US20100058038A1/en Application granted granted Critical Publication of US8019980B2 publication Critical patent/US8019980B2/en Status Expired - Fee Related legal-status Critical Current Adjusted expiration legal-status Critical Links ( en Inventor Te-An Wang Original Assignee Te-An Wang Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.) Expired - Fee Related, expires Application number US12/202,363 Other versions US20100058038A1 #BEQ MIPS MAXIMUM JUMMP DISTANCE PDF#Google Patents Branch target buffer system and method for storing target addressÄownload PDF Info Publication number US8019980B2 US8019980B2 US12/202,363 US20236308A US8019980B2 US 8019980 B2 US8019980 B2 US 8019980B2 US 20236308 A US20236308 A US 20236308A US 8019980 B2 US8019980 B2 US 8019980B2 Authority US United States Prior art keywords address bit instruction field branch Prior art date Legal status (The legal status is an assumption and is not a legal conclusion. Google Patents US8019980B2 - Branch target buffer system and method for storing target address US8019980B2 - Branch target buffer system and method for storing target address
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |