I'm working under 32bit protected mode and I set up, in the boot loader, two GDT entries (code and data segments).
Is there anybody who can explain to me why this code is not working:
Code: Select all
mov esi,offset message
mov edi,0B8000h
mov ecx,12
rep movsb
message db 'test message'
Code: Select all
mov dl,[message]
mov dh,04h
mov word ptr [ds:0b8000h],dx
message db 'test message'
The following code works perfectly, so I'm confused.
Code: Select all
mov dl,'A'
mov dh,04h
mov dword ptr [ds:0b8000h],edx