File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ entry:
3333
3434 call pushTest
3535
36- mov ah , 41h ;; Check extensions present.
37- mov bx , 55AAh ;; Required signature.
36+ mov ah , 0x41 ;; Check extensions present.
37+ mov bx , 55AAh ;; Required signature.
3838 mov dl , [ driveNumber ]
39- int 13h
40- jc print_ext_not_supported
39+ int 0x13
40+ jc notify_ext_not_supported
4141 cmp bx , 0xAA55
42- jne print_ext_not_supported
42+ jne notify_ext_not_supported
4343
4444 mov si , msg_ok
4545 call print
5050 mov ax , 512 ;; Load 512 sectors = 262144 bytes = 256 KiB.
5151 mov bx , 6117 ;; Offset = 8192.
5252 mov cx , 0x8000 ;; Copy here.
53- call diskcpy
53+ call diskcpy ;; Copia payload completo.
5454
5555 mov si , msg_ok
5656 call print
@@ -82,22 +82,23 @@ entry:
8282;; cmp cx, 0xA000 ; Last address (bootloader + payload = 256KiB total)
8383;; jnz copy_payload_to_free_mem
8484
85- mov eax , 0x00
86- mov ebx , 0x00
87- mov ecx , 0x00
88- mov edx , 0x00
85+ mov eax , 0
86+ mov ebx , 0
87+ mov ecx , 0
88+ mov edx , 0
8989 mov fs , ax
9090 mov es , ax
9191
9292 jmp 0x0000 : 0x8000
9393
9494
95+
96+
9597err:
9698 mov si , msg_err
9799 call print
98100
99- ;; TO-DO: aqui mensaje.
100- print_ext_not_supported:
101+ notify_ext_not_supported:
101102 mov si , msg_no
102103 call print
103104
You can’t perform that action at this time.
0 commit comments