flat assembler
Message board for the users of flat assembler.
![]() |
What instruction do you consider as most important ? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Total Votes : 14 |
Author |
|
DOS386 25 Dec 2006, 23:26
Code: push cs pop ds mov ax,1687h int 2Fh or ax,ax ; DPMI installed? jnz error test bl,1 ; 32-bit programs supported? jz error mov word [mode_switch],di mov word [mode_switch+2],es mov bx,si ; allocate memory for DPMI data mov ah,48h int 21h jc error mov es,ax mov ax,1 call far [mode_switch] ; switch to PM, hoping it will keep long time OK, this is NOT the first thread discussing this issue: http://board.flatassembler.net/topic.php?t=4069 ![]() Nevertheless, I think I found a great debugging instrument. But can someone explain me all the debug info provided by HDPMI32 ? One can probably extract much more info than I understand by now. 1. Obvious 2. Obvious 3. Looks interesting. CS<>DS - required by PM ? Were unified before. ![]() What are the numbers in brackets ? Linear address of segment start ? What else ? 4. What's this ? Interesting for me ? 5. This ? What do the "****" mean ? 6. Interesting for me ? Or only for debugging HDPMI32 itself ? 7. Interesting for me ? Or only for debugging HDPMI32 itself ? 8. How to use those numbers ? 9. Large collection. How to use ? Please log IN to see the shot ![]()
_________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
||||||||||
![]() |
|
Goplat 26 Dec 2006, 01:16
I voted for HLT as most important. UD2, NOP, MOV, XOR and LEA all just have effects that can all be emulated using other instructions, and CPUID is convenient but not necessary (hey, people did without it for over a decade). But HLT is irreplaceable. No other instruction will save you money on your electric bill.
|
|||
![]() |
|
rugxulo 26 Dec 2006, 05:05
|
|||
![]() |
|
MCD 08 Jan 2007, 21:24
I voted for CPUID, which is very important to retrieve infos about newer features which cannot(at least not in user-mode) be retrieved otherwise
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.