Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Printing on screen in protected mode[15 points]

Status
Not open for further replies.

eelinker

Full Member level 5
Full Member level 5
Joined
Feb 12, 2006
Messages
267
Helped
16
Reputation
32
Reaction score
8
Trophy points
1,298
Location
PERSIA
Activity points
2,775
Hello,
can anyone help me to find an assembly code in tasm for writing to screen in protected mode of operation of x86 cpus?
15 point for the first helpfull reply!
 

eelinker said:
Hello,
can anyone help me to find an assembly code in tasm for writing to screen in protected mode of operation of x86 cpus?
15 point for the first helpfull reply!

hey, it's not that hard. Just switch to protected mode with flat memory model, then write directly to address range of the video buffer (0xB8000 - 0xBFFFF).

a rudimentary example would look like:
Code:
   ;switch to P-Mode here, fill ds descriptor with 4GB address range
    mov ax, 'H'
    mov [0xB8000], ax  ; write 'H' to screen

Next time don't ask others to solve your homework. Only hints, or you'll be banned by the moderators.
 

    eelinker

    Points: 2
    Helpful Answer Positive Rating
Pinczakko said:
Next time don't ask others to solve your homework. Only hints, or you'll be banned by the moderators.

hi, no offense... but i dont think there is a rules for tht....

anyway... ask people to do ur homework is very bad...

regards,
sp
 

__BEGIN__OOT

hi sp.

I'm not so sure about it too. But IIRC, back in 2004, some new members ask a lot about their homework here and the moderators and "old members" are warning about such a penalty.

Anyway, I'm not too active in this forums in the last 1 year. Thus, I don;t know much about the current state :D. Nevertheless, I guess everyone agreed that no direct answer to "homework type question" is better for this community. Hints are better, since they encourage people to learn more effectively rather than feeding the direct answer to them :wink:.

__END__OOT
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top