Set CRTC Block and Enable D11 but call funciton fail

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Shihwei
Posts: 2
Joined: Fri Aug 24, 2007 4:38 am

Set CRTC Block and Enable D11 but call funciton fail

Post by Shihwei »

HI,
About calling AX = 4F02h for setting VBE mode,
but when I set BX D11 bit for setting specified CRTC value
something is wrong, AX return 014F (call function fail)
What is the cause of this error? CRTC value or something else?

look for help, thanks a lot

best regards
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post by AJ »

Hi,

Is the CRTC block is stored somewhere that is accessible in real-mode? Otherwise, I guess it must just be unsupported timings - tricky to say without more information.

Cheers,
Adam
Shihwei
Posts: 2
Joined: Fri Aug 24, 2007 4:38 am

Post by Shihwei »

AJ wrote:Hi,

Is the CRTC block is stored somewhere that is accessible in real-mode? Otherwise, I guess it must just be unsupported timings - tricky to say without more information.

Cheers,
Adam

Smiling...

However, VBE3.0 specifies the CRTC block for setting timings. I reviewed VBE3.0 standard and came to a conclusion. I didn't pass pixel clock to AX = 4F0Bh function to return closest pixel clock. But I don't know how to access 32 bits register in DOS and Turbo C. ECX shall be set to reguest pixel clock. Perhaps you can solve my issue. ho ho...

BR.
Shihwei
Post Reply