TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: JOHN ALDRED
from: JAMES VAHN
date: 1997-05-26 11:35:00
subject: Re: Just a quick one :)

From: jvahn@short.circuit.com (James Vahn)
John Aldred wrote:
> How do I put the screen in 80x50 text mode with inline ASM on a TP7
> program?
I don't know Pascal, but this shouldn't be hard to figure out:
;---25/28~35/50 lines---
cseg segment
assume cs:cseg
org 100h
Begin:
        mov ax,03h
        int 10h         ; Clear the screen.
        mov ah,11h      ; BIOS character routine
        mov al,12h      ; 50 line mode. Use 12h for 50 lines,
                        ; 11h for 28/35 lines or 14h for 25 lines.
        mov bl,0        ; RAM table number.
        int 10h         ;
        mov ah,12h      ; BIOS Alt. select
        mov bl,20h      ; Use Alt. Print Screen
        int 10h         ;  routine for full screen.
        ret
cseg ends
end Begin
...  The Moon is Waning Gibbous (78% of Full)
--- ifmail v.2.10-tx8.2
---------------
* Origin: (jvahn@short.circuit.com) (1:346/15.1)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.