~cypheon/xos

xos/machdep.asm -rw-r--r-- 141 bytes
567db604 — Johann Rudloff Implement scanning and allocation of physical memory. 7 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
cls:
  xor eax, eax
  mov edx, 0xb8000
  mov ecx, 0xb8000 + 4000
  .loop:
  mov [edx], eax
  add edx, 4
  cmp edx, ecx
  jnge .loop

  ret