flat assembler
Message board for the users of flat assembler.

Index > DOS > strange vga error

Author
Thread Post new topic Reply to topic
phunk



Joined: 27 Feb 2005
Posts: 2
phunk
well, here's my problem
i'm trying to just play with vga a little bit, right
here's the basic code i have so far:

Code:
        org     0x100
        use16

vgainit:
        push    0xA000
        pop     es
        mov     ax, 0x13
        int     0x10

begin:
        call    vgainit
        ret  
    


it assembles fine, the problem is my monitor, it says it's using an invalid frequency. anyone have any suggestions?
Post 27 Feb 2005, 05:48
View user's profile Send private message Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc
I can't help with the invalid frequency issue, but that code should hang the computer in an endless loop. A fixed version is:

Code:
        org     0x100
        use16

; in the code that was posted, vgainit was run, then begin CALLed
; it again. Since this continued happening the system would eventually
; crash when it ran out of stack space.

begin:
        call    vgainit
        int    0x20      ; exit the program

vgainit:
        push    0xA000
        pop     es
        mov     ax, 0x13
        int     0x10
        ret                 ; exit this routine
    
Post 27 Feb 2005, 13:39
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.