[Excerpts] MIPS Assembly Language: Comparing Two Integers Using Procedures and Without

Опубликовано: 01 Июль 2026
на канале: Lighton Phiri
3,121
7

Excerpt from Lecture Series 22 No. 5: MIPS Instruction Set Architecture [1, 2, 3].

In class live outline of code using procedures and without procedures.

Problem: Write an assembly language program that prompts a user to enter two integers and, if the first number is smaller than the second number, it prints "First number is lesss than second". Otherwise, it prints "Second number is less than first".

[1]    • Lecture 22: MIPS Instruction Set Architect...  
[2] http://lis.unza.zm/~lightonphiri/teac...
[3] http://lis.unza.zm/~lightonphiri/teac...