Download presentation
Presentation is loading. Please wait.
Published byShavonne Owens Modified over 9 years ago
1
Computer Engineering IntroLab1 page 1 Beginners explanation on how a processor works! The labs will teach you the truth.
2
Computer Engineering IntroLab1 page 2 Lab 1 Procedure calls. Byte and word array indexing, pointers. Conditional branch instructions. Simple loops. Reading/ writing from/to data memory.
3
Computer Engineering IntroLab1 page 3 Branch instruction (part of) Beqrs rt label Bners rt label Together with Slt-instruction and $0 enough for first lab.
4
Computer Engineering IntroLab1 page 4 Register conventions (fig A9) Reg. nameNrUsage zero 0Constant 0 at1Reserved for assembler v0 - v12-3Expr. evaluation, function results a0 - a34-7Argument 1-4 t0 - t78-15Temporary (not saved) s0 - s716-23Saved Temporary t8 - t924-25Temporary (not saved) k0 - k126-27Reserved for OS kernel gp28Pointer to global area sp29Stack pointer fp30Frame pointer ra31Return address
5
Computer Engineering IntroLab1 page 5 Lab 1 register usage Use only $sx $tx $r0(=$0)
6
Computer Engineering IntroLab1 page 6 Lab 1 - How to represent characters? Use the ASCII-code Complete table at WWW
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.