flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
terex 02 Jan 2004, 01:32
I found a mistake! It is here:
Code: ; print 'hello from pm' xor edi, edi mov ecx, [szmsg_hello_from_pm] rep movsb We are in pmode now, but i use traditional real-mode addresation to put value by address szmsg_hello_from_pm into ecx. I rewrote it like this: Code: xor edi, edi xor eax, eax mov ax, ds shl eax, 0x4 add eax, szmsg_hello_from_pm mov ecx, [ds:eax] rep movsb and everithing became fine! _________________ sorry for my english |
|||
![]() |
|
Mac2004 30 Jun 2004, 06:31
Hi Terex!!
I found that you we're using 'use32' instruction in your code. You cannot use 16bit realmode ints like int 0x10 afterwards 'use32' instruction. This surely causes your computer to restart. You need to use 'use16' instruction at the start and when reach actual pmode code 'use32' instruction is needed. regards, Mac2004 |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.