This commit is contained in:
OMGerCoder 2023-09-21 11:42:06 -07:00 committed by GitHub
commit e5a6681b85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ and see which ones work and why.
First, we will define the X as data, with a label:
```nasm
the_secret:
db "X"
db 'X'
```
Then we will try to access `the_secret` in many different ways:

View File

@ -44,7 +44,7 @@ jmp $ ; infinite loop
the_secret:
; ASCII code 0x58 ('X') is stored just before the zero-padding.
; On this code that is at byte 0x2d (check it out using 'xxd file.bin')
db "X"
db 'X'
; zero padding and magic bios number
times 510-($-$$) db 0

View File

@ -40,7 +40,7 @@ jmp $ ; infinite loop
the_secret:
; ASCII code 0x58 ('X') is stored just before the zero-padding.
; On this code that is at byte 0x2d (check it out using 'xxd file.bin')
db "X"
db 'X'
; zero padding and magic bios number
times 510-($-$$) db 0