Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .set ALIGN, 1 << 0
- .set MEMINFO, 1 << 1
- .set FLAGS, ALIGN | MEMINFO
- .set MAGIC, 0x1BADB002
- .set CHECKSUM, -(MAGIC + FLAGS)
- .section .multiboot
- .align 4
- .long MAGIC
- .long FLAGS
- .long CHECKSUM
- .text
- .global _start
- _start:
- xor $t0, $t0
- xor $t1, $t1
- xor $t2, $t2
- xor $t3, $t3
- /* write enable bit to address 0xCF8 */
- or $t0, 0x80000000
- or $t1, 0x14000CF8
- sw $t0, 0($t1)
- nop
- /* read vendor */
- or $t2, 0x14000CFC
- lh $t3, 0($t2)
- nop
- .hang:
- pause
- j .hang
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement