summaryrefslogtreecommitdiffhomepage
path: root/src/amd64/amd64-boot.asm
blob: 1601727d0bf5d0475b1f54d35a64baa93fea4875 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
;; AMD64 NeBoot Master Boot Program.
;; Written by Amlal El Mahrouss

%define ENTRYPOINT 0x00FF

[bits 16]
[org ENTRYPOINT]

amd64_bios_start:
    cli
    cld

    mov ax, cs
    mov ds, ax
    mov es, ax
    mov ss, ax
    mov fs, ax

    jmp amd64_bios_programmable_area
    jmp 0x0000:0x7c00
    jmp $

amd64_vendor_information:
    db "ZKA", 0
    dw 0x010
amd64_vendor_information_end:

amd64_bios_programmable_area:
    times 1024 nop
    ret
amd64_bios_programmable_area_end:

times 2048-13-($-$$) nop

;; SIZE: 13 Bytes.
;; PURPOSE: BIOS Computer Metadata
amd64_bios_entrypoint_area:
    dw ENTRYPOINT ;; ENTRYPOINT.
    db "13/21/2024" ;; DATE.
    db 0x01 ;; VERSION.