logo

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/mirror/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.git

e_standalone.asm (525B)


  1. ; Linker file:
  2. ; ENTRY(start); SECTIONS { . = 1M; .boot : { KEEP(*(.multiboot_header)) } .text : { *(.text) } }
  3. ; compile: nasm -i. -felf64 e_standalone.asm -o e
  4. section .multiboot_header
  5. bits 32
  6. header_start:
  7. dd 0xe85250d6
  8. dd 0
  9. dd header_end - header_start
  10. dd 0x100000000 - (0xe85250d6 + 0 + (header_end - header_start))
  11. dw 0
  12. dw 0
  13. dd 8
  14. header_end:
  15. global start
  16. section .text
  17. bits 32
  18. start:
  19. mov ecx, 0
  20. loop:
  21. mov dword [0xb8000 + (ecx * 2)], (15 << 8) | (0x00000065)
  22. inc ecx
  23. cmp ecx, 2000
  24. jne loop
  25. hlt