OmniGo DOS Mode

Jan Sedlak (Jan.Sedlak@pedf.cuni.cz)
Mon, 24 Jun 1996 14:16:30 +0200 (MET DST)

TEXT MODE ON OG 100
- -------------------

Hi folks,

During the weekend I have been playing about with my OG and
I have found inside something that resulted into following code:
(The code is located somewhere around F000:3AAD of OG memory)

og_text:
mov ah,019h ;019h
mov bl,1
push ax
in al,026h ; port 26h
out 032h,al ; port 32h
push ax
pushf ; Push flags
cli ; Disable interrupts
add ah,080h
mov al,bl
xchg al,ah
out 030h,al ; port 30h
out 026h,al ; port 26h
xchg al,ah
out 031h,al ; port 31h
out 027h,al ; port 27h
popf ; Pop flags
pop ax
out 030h,al ; port 30h
out 026h,al ; port 26h
pop ax

mov ax,7
int 010h ; Video display ah=functn 00h
; set display mode in al

mov ax,04c00
int 021h

The code can be complied into small .com file to run from autoexec.bat.
Put the "ogtext" at the last line of your autoexec.bat. Or use my
ogtext.gpk.

- ----------------------------------------------------------------------

Here is the file in UUE fromat:

section 1 of 1 of file ogtext.com < uuencode 5.32 by R.E.M. >

begin 644 ogtext.com
MM!FS`5#D)N8R4)SZ@,2`BL.&X.8PYB:&X.8QYB>=6.8PYB98N`<`S1"T"0X?
MNC<!S2&X`$S-(4]-3DE'3R!T97AT(&UO9&4A#0IB>2!*4R`R-"]*=6XO.38-
""B0Q
`
end
sum -r/size 61374/157 section (from "begin" to "end")
sum -r/size 50300/92 entire input file

- ------------------------------------------------------------------

Here is the GPK in UUE format (sorry my UNIX account does not allow
to make MINE attachments)

section 1 of 1 of file ogtext.gpk < uuencode 5.32 by R.E.M. >

begin 644 ogtext.gpk
M1T5/4U]'4%@!````2D5$20$````"`"8````U````J@```"4"``!/;6YI1V\@
M,3`P($1/4P!);G-T86QL<R!$3U,@<')O;7!T(&]N($]'(#$P,"X@5&\@<G5N
M($=%3U,@='EP92`B1T5/4R(-"F%T('1H92!P<F]M<'0N(%!R97-S(%-(2494
M+4].+4Y%6%0@=&\@86-T:79A=&4@=&AI<R!P86-K86=E+@!!551/15A%0RY"
M050`7$%55$]%6$5#+D)!5``P`%(!```!````4@$``'!R;VUP="`D<"1G#0IS
M970@<&%T:#UA.EQD;W,-"@T*8CH-"F-D(%P-"FEF(&5X:7-T(&=E;W=O<FMS
M(&=O=&\@869T97)'96\-"@T*4D5-("!!<F=H(2`@5V4@87)E(&AO<V5D+B`@
M5')Y(&%N9"!C;&5A;B!U<"X-"F$Z#0IC9"!<#0IC86QL(&%U=&]E>&5C+F)A
M=`T*#0IG;W1O(')U;D=%3U,-"@T*.F%F=&5R1V5O#0IC9"!G96]W;W)K<PT*
M:68@97AI<W0@9V5O<RYI;FD@9V]T;R!R=6Y'14]3#0H-"F$Z#0IC9"!<#0IC
M86QL(&%U=&]E>&5C+F)A=`T*#0IC;W!Y(&$Z7&=E;W=O<FMS7&QO8V%L+FEN
M:2!B.EQG96]W;W)K<UQG96]S+FEN:0T*#0HZ<G5N1T5/4PT*#0IB.@T*8V0@
M7`T*;V=T97AT3T=415A4+D-/30!<3T=415A4+D-/30`P`%P````!````7```
M`+09LP%0Y";F,E"<^H#$@(K#AN#F,.8FAN#F,>8GG5CF,.8F6+@'`,T0M`D.
M'[HW`<TAN`!,S2%/34Y)1T\@=&5X="!M;V1E(0T*8GD@2E,@,C0O2G5N+SDV
##0HD
`
end
sum -r/size 48392/963 section (from "begin" to "end")
sum -r/size 36738/678 entire input file

- ------------------------------------------------------------------------

And here is another GPK to remove the OGTEXT MODE and RESTORE
original files

section 1 of 1 of file og_ori.gpk < uuencode 5.32 by R.E.M. >

begin 644 og_ori.gpk
M1T5/4U]'4%@!````2D5$20$````"`"8````V````;0```/4!``!/1R`Q,#`@
M3W)I9VEN86P`4D535$]215,@3U))1TE.04P@05543T5814,@04Y$($-/3D9)
M1R!&24Q%4R!/3B!/34Y)1T\N`$%55$]%6$5#+E)!30!<05543T5814,N0D%4
M`#``7P$```$```!?`0``<')O;7!T("1P)&<-"G-E="!P871H/6$Z7&1O<PT*
M#0IB.@T*8V0@7`T*:68@97AI<W0@9V5O=V]R:W,@9V]T;R!A9G1E<D=E;PT*
M#0I214T@($%R9V@A("!792!A<F4@:&]S960N("!4<GD@86YD(&-L96%N('5P
M+@T*83H-"F-D(%P-"F-A;&P@875T;V5X96,N8F%T#0H-"F=O=&\@<G5N1T5/
M4PT*#0HZ869T97)'96\-"F-D(&=E;W=O<FMS#0II9B!E>&ES="!G96]S+FEN
M:2!G;W1O(')U;D=%3U,-"@T*83H-"F-D(%P-"F-A;&P@875T;V5X96,N8F%T
M#0H-"F-O<'D@83I<9V5O=V]R:W-<;&]C86PN:6YI(&(Z7&=E;W=O<FMS7&=E
M;W,N:6YI#0H-"CIR=6Y'14]3#0H-"F(Z#0IC9"!<#0IC9"!G96]W;W)K<PT*
M9V5O<PT*0T].1DE'+E)!30!<0T].1DE'+E-94P`P`#,!```!````,P$``$9I
M;&5S("`@/2`S,`T*0G5F9F5R<R`](#0-"@T*4VAE;&P@("`](&$Z7&-O;6UA
M;F0N8V]M("]0#0H-"F1E=FEC92`](&$Z7'!C;6-I85QC<RYE>&4@+VER<2`W
M#0ID979I8V4@/2!A.EQP8VUC:6%<8W-A;&QO8RYE>&4@83I<<&-M8VEA7&-S
M86QL;V,N:6YI("]Q#0ID979I8V4@/2!A.EQP8VUC:6%<8V%R9&-S+F)I;@T*
M9&5V:6-E(#T@83I<<&-M8VEA7'-P:W-S,BYS>7,@+W`R#0ID979I8V4@/2!A
M.EQP8VUC:6%<871A9')V;'`N97AE("]D.C$-"F1E=FEC92`](&$Z7'!C;6-I
C85QC87)D:60N97AE(&$Z7'!C;6-I85QC87)D:60N:6YI#0IE
`
end
sum -r/size 30953/1193 section (from "begin" to "end")
sum -r/size 46745/845 entire input file

- -------------------------------------------------------------------------

Enjoy it

Jan Sedlak
Praha, Czech Republic