Skip to content

Commit 4ca35d4

Browse files
tidy mem drawing of addresses
1 parent 041bfa3 commit 4ca35d4

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

asm/tsl.asm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,6 @@ clear_regs:
11461146
section .data
11471147

11481148
;; Some additional system vars.
1149-
;;db "probando"
11501149
STEP_MODE_FLAG: db 1 ;; Lo activa presionar 's' al booteo. Este byte es f
11511150
;; orwardeado desde uefi.asm hacia aqui porque se ut
11521151
;; iliza en ambos lugares y la inicializacion se hac

asm/uefi.asm

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -783,18 +783,19 @@ exit_uefi_services:
783783
;; | start16 | code | data | 00..0 | code | data | kernel | mods user |
784784
;; | | low | low | 00..0 | hi | hi | .bin | land.bin |
785785
;; +---------------------------------------------+--------------------+
786-
;; | 0x2800 --------------------->|0x2000|
787-
;; |< 240KiB -------------------------------------------------------->|
788-
;; |< 0x200 >|0x200 |0x100 | |<----------- 238KiB ------------->|
789-
;; |< 0x800 ---------------------->| |
786+
;; |< 0x200 >|0x200 |0x100 | |0x2000|0x1000|<----- 226KiB ----->|
787+
;; |<-- 0x600 --->|<------------ 238KiB ------------>|
788+
;; |<----------- 0x800 ----------->|
789+
;; |<---------------------------- 240KiB ---------------------------->|
790790
;; |^ |^ |^
791791
;; 0x404000 0x404800 0x440000
792792
;; PAYLOAD
793793

794-
;; Low primeros TSL_LO_SIZE bytes de los 240 del payload.
795-
mov rsi, PAYLOAD + START16_SIZE ;; The additional bytes are to skip start16, whi
796-
;; ch is placed to completely fill the 1st 512 bytes
797-
;; of the payload.
794+
;; Saltea el codigo de start16 y se queda con los primeros TSL_LO_SIZE bytes
795+
;; de los 240 del payload.
796+
mov rsi, PAYLOAD + START16_SIZE ;; The additional START16_SIZE offset bytes
797+
;; are to skip start16, which is positioned
798+
;; as the 1st 512 bytes of the payload.
798799

799800
mov rdi, TSL_BASE_ADDRESS_LOW
800801
mov rcx, TSL_LO_SIZE ;; Bytes a partir de TSL_BASE_ADDRESS_LOW.

0 commit comments

Comments
 (0)