Skip to content

Commit

Permalink
Created A20 line
Browse files Browse the repository at this point in the history
  • Loading branch information
nibblebits committed Jul 30, 2020
1 parent 46b01b6 commit 197098f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Makefile
@@ -1,4 +1,5 @@
all:
nasm -f bin ./boot.asm -o ./boot.bin
dd if=./message.txt >> ./boot.bin
dd if=/dev/zero bs=512 count=1 >> ./boot.bin
nasm -f bin ./src/boot/boot.asm -o ./bin/boot.bin

clean:
rm -rf ./bin/boot.bin
Binary file added bin/boot.bin
Binary file not shown.
Binary file removed boot.bin
Binary file not shown.
1 change: 0 additions & 1 deletion message.txt

This file was deleted.

6 changes: 6 additions & 0 deletions boot.asm → src/boot/boot.asm
Expand Up @@ -70,6 +70,12 @@ load32:
mov ss, ax
mov ebp, 0x00200000
mov esp, ebp

; Enable the A20 line
in al, 0x92
or al, 2
out 0x92, al

jmp $


Expand Down

0 comments on commit 197098f

Please sign in to comment.