Article View: alt.lang.asm
Article #374[tp7-asm] I want to change the DOS font but...BUG
From: Vincent P.
Date: Fri, 21 Nov 1997 00:00
Date: Fri, 21 Nov 1997 00:00
46 lines
1640 bytes
1640 bytes
Hello, I want to change the dos Ascii font using interrupt 10h fonction 11h But this procedure doesn' t work and I don' t know why. Could somebody help me ? This is TP7 with inline assembly. ------code--------- ... font : array[0..255,0..15] of byte; ... ... procedure font2dos; var n : byte; ws,s,o: word; begin; for n:=0 to 255 do begin s:=seg(font);o:=ofs(font[n,0]); ASM mov ws,bp mov es,s mov bp,o mov cx,1 mov dh,0 mov dl,n mov bl,0 mov bh,16 mov ah,11h mov al,0 int 10h mov bp,ws end; end; end; --------------- So, if you know why this doesn' t work, I would be happy to know it. Or if you know an other way to do what I want, I'm interested too. I would like to have an inverse procedure (dos2font) so... Thanks Bye -- Vincent Picavet, Lille, France picavetSPAM@worldnet.net <<<<Enlevez SPAM de mon Email! ==>Pascal, IRC,maths et Bubble Bobble : the top !!<== \---->Allez sur #delire !
Technical Details
Message-ID:
<01bcf696$fd804320$LocalHost@urnord.calvacom.fr>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10261c,884240de3ddf24dc,start X-Google-Attributes: gid10261c,public X-Google-Thread: 110df7,884240de3ddf24dc,start X-Google-Attributes: gid110df7,public X-Google-Thread: f7d8d,884240de3ddf24dc,start X-Google-Attributes: gidf7d8d,public X-Google-Thread: 108ebd,884240de3ddf24dc,start X-Google-Attributes: gid108ebd,public From: "Vincent P." <picavetSPAM@worldnet.net> Subject: [tp7-asm] I want to change the DOS font but...BUG Date: 1997/11/21 Message-ID: <01bcf696$fd804320$LocalHost@urnord.calvacom.fr> X-Deja-AN: 291250443 Newsgroups: alt.lang.asm,borland.public.turbopascal,comp.lang.asm,comp.lang.pascal.misc