True Assembly Language. Part I. The Assembly Process. The process of translating a MAL code (an assembly language program) into machine code (a sequence of bits) is called assembly. The program that performs the translation is called an assembler.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
addi Rt,Rs,I Rt [Rs]+([I15]16||I15..0)
addiu Rt,Rs,I Rt [Rs]+([I15]16||I15..0)
andi Rt,Rs,I Rt 016||([Rs]15..0 AND I15..0)
lui Rt,I Rt I15..0||016
move Rt, Rs
is equivalent to the TAL instruction
takes the contents of Rs and Rt as multiplicands and places the least 32-bit result into LO and the other 32-bit result into HI.
move from LO
HI must be checked for overflow
Subtraction may cause
an overflow, e.g. if $11
contains 4000000 and
$12 contains -4000000 then
the result is 8000000 which
has no representation
Sets $10 to 1 if the 2’s complement
of the contents of $11 is less than
the 2’s complement of the contents
of $12, else it sets $10 to 0. The
comparison does not cause overflow
MAL within a code. It is best to give a name to this repetitive code sequence. A
la R, label
lui R, highaddress
ori R, lowaddress
lui $12, 0x0003
ori $12, 0x0248
la $12, 0x00030248Load Address Instruction
The assembler determines the address bound to
label and divides it into two halves. The upper half
is loaded into R via lui and the lower half is ored into
R using the ori instruction.