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
Joined
Feb 12, 2006
Messages
269
Helped
16
Reputation
32
Reaction score
8
Trophy points
1,298
Location
PERSIA
Activity points
2,786
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!
 

Pinczakko

Full Member level 2
Joined
Jul 29, 2004
Messages
138
Helped
13
Reputation
26
Reaction score
0
Trophy points
1,296
Location
Taka Bonerate National Park, Indonesia
Activity points
1,592
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

sp

Full Member level 6
Joined
Jan 1, 2004
Messages
396
Helped
23
Reputation
46
Reaction score
2
Trophy points
1,298
Location
Floating Garden
Activity points
4,044
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
 

Pinczakko

Full Member level 2
Joined
Jul 29, 2004
Messages
138
Helped
13
Reputation
26
Reaction score
0
Trophy points
1,296
Location
Taka Bonerate National Park, Indonesia
Activity points
1,592
__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.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top