in MIPS architecture
- Sử dụng tập lệnh MIPS để hiện thực các thủ tục bên dưới.
- Thống kê số lệnh, loại lệnh (instruction type) của mỗi chương trình.
- Tính và trình bày cách tính thời gian chạy của chương trình trên máy tính kiến trúc MIPS có tần số 3.4 GHz.
- Code:
– Code style phải rõ ràng, có comment, phân hoạch công việc theo từng hàm, CHỈ DÙNG LỆNH MIPS CHUẨN.
– Truyền nhận và trả kết quả khi gọi hàm theo quy ước của thanh ghi (thanh ghi $a argument, thanh ghi $v giá trị trả về khi gọi hàm).
– Xuất kết quả để kiểm tra.
Cho 2 số thực dạng chuẩn (Standard Floating Point IEEE 754) A và B với độ chính xác đơn (32 bit). Sử dụng hợp ngữ assembly MIPS, viết thủ tục cộng (trừ) hai số A, B.
Cho 2 số thực dạng chuẩn (Standard Floating Point) A và B với độ chính xác đơn (32 bit). Sử dụng hợp ngữ assembly MIPS, viết thủ tục nhân hai số A, B.
Cho 2 số thực dạng chuẩn (Standard Floating Point) A và B với độ chính xác đơn (32 bit). Sử dụng hợp ngữ assembly MIPS, viết thủ tục chia hai số A, B.
Cho 2 thanh ghi A (64 bit) và thanh ghi B (64 bit). Sử dụng hợp ngữ assembly MIPS để hiện thực phép nhân 2 thanh ghi đó. Kết quả được xuất ra console(hiển thị ở dạng HEX và dạng thập phân), bit cao của thanh ghi là bit dấu.