Possible correction to comment for try 2

If I understood correctly, the second approach tries to dereference the pointer which is the correct approach. However currently it repeats the description of approach 1 saying its trying to print the memory address.
This commit is contained in:
Nadim Edde Gomez 2018-10-01 14:18:44 +01:00 committed by GitHub
parent 301019e838
commit cf63bcc4ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ mov al, the_secret
int 0x10 int 0x10
; attempt 2 ; attempt 2
; It tries to print the memory address of 'the_secret' which is the correct approach. ; It tries to print the contents at the memory address of 'the_secret' which is the correct approach.
; However, BIOS places our bootsector binary at address 0x7c00 ; However, BIOS places our bootsector binary at address 0x7c00
; so we need to add that padding beforehand. We'll do that in attempt 3 ; so we need to add that padding beforehand. We'll do that in attempt 3
mov al, "2" mov al, "2"