flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > . |
Author |
|
mikegonta 02 Nov 2008, 20:24
[ Post removed by author. ]
Last edited by mikegonta on 28 Jan 2009, 08:59; edited 1 time in total |
|||
02 Nov 2008, 20:24 |
|
shoorick 03 Nov 2008, 06:00
if you occasionally interesting - i may look for dos font editors. one of them i posted there - it's "not handy" - has russian interface, will look ugly on default codepage, but it is possible to find there "F#" buttons at the screen. unlike other it can scan memory for possible fonts. i had couple another seems with english interface, but they were just editors - i've been playing with them long time ago.
|
|||
03 Nov 2008, 06:00 |
|
DJ Mauretto 03 Nov 2008, 10:33
Hello,
good program but why you don't use BIOS function to find fonts? _________________ Nil Volentibus Arduum |
|||
03 Nov 2008, 10:33 |
|
LocoDelAssembly 23 Nov 2008, 21:01
Talking about VIDEO - GET FONT INFORMATION (EGA, MCGA, VGA)
Code: -a 0D18:0100 mov ax, 1130 0D18:0103 mov bh, 2 0D18:0105 int10 0D18:0107 int3 0D18:0108 -g AX=1130 BX=0200 CX=0010 DX=0018 SP=FFEE BP=DF42 SI=0000 DI=0000 DS=0D18 ES=C000 SS=0D18 CS=0D18 IP=0107 NV UP EI PL NZ NA PO NC 0D18:0107 CC INT 3 -a 103 0D18:0103 mov bh, 6 0D18:0105 -rip IP 0107 :100 -g AX=1130 BX=0600 CX=0010 DX=0018 SP=FFEE BP=DF42 SI=0000 DI=0000 DS=0D18 ES=C000 SS=0D18 CS=0D18 IP=0107 NV UP EI PL NZ NA PO NC 0D18:0107 CC INT 3 - (Return is ES:BP) What am I doing wrong? I'm requesting the 8x14 font set but the pointer is the same for the 8x16 font set PS: Other values seems to work, but specifically the 8x14 returns me the 8x16 pointer instead... Here proof that the pointer is the 8x16 one: Code: ; TODO: Allow the user to change the zoom factor in runtime (the code is somewhat ready for that) ; TODO: After implementing the TODO above, draw the character on the center of the screen ESQ = 27 COLOR = 9;12;9 ZOOM = 12 org $100 mov ax, $13 int $10 begin: xor ax, ax int $16 cmp al, ESQ je exit xor ah, ah mov cl, 4 shl ax, cl push ax mov ax, $1130 mov bh, 6 int $10 pop di lea si, [bp + di + 1] xor di, di push es pop ds mov ax, $A000 mov es, ax mov bl, 16 ; 16 rows mov ch, ZOOM mov cl, ZOOM mov bp, -ZOOM*8 ; SI = font pointer ; DI = screen pointer ; BL = rows counter ; BH = columns counter ; CH = row zoom counter ; DH = column zoom counter ; CL = zoom factor paint: dec si outerLoop: lodsb mov dl, al mov bh, 8 ; 8 columns innerLoop: mov dh, ZOOM shl dl, 1 sbb al, al and al, COLOR putPixel: stosb dec dh jnz putPixel dec bh jnz innerLoop lea di, [di+320+bp] dec ch jnz paint mov ch, ZOOM dec bl jnz outerLoop jmp begin exit: mov ax, 3 int $10 int $20 |
|||
23 Nov 2008, 21:01 |
|
mikegonta 23 Nov 2008, 21:13
[ Post removed by author. ]
Last edited by mikegonta on 28 Jan 2009, 08:59; edited 1 time in total |
|||
23 Nov 2008, 21:13 |
|
LocoDelAssembly 23 Nov 2008, 21:24
Quote:
Oh, I see. What a pity it doesn't return an error code instead... Thanks for the info |
|||
23 Nov 2008, 21:24 |
|
mikegonta 23 Nov 2008, 21:53
[ Post removed by author. ]
Last edited by mikegonta on 28 Jan 2009, 08:59; edited 1 time in total |
|||
23 Nov 2008, 21:53 |
|
revolution 23 Nov 2008, 21:59
What will you do with these fonts once you have collected them?
|
|||
23 Nov 2008, 21:59 |
|
mikegonta 23 Nov 2008, 22:12
[ Post removed by author. ]
Last edited by mikegonta on 28 Jan 2009, 09:00; edited 1 time in total |
|||
23 Nov 2008, 22:12 |
|
DOS386 24 Nov 2008, 11:15
|
|||
24 Nov 2008, 11:15 |
|
LocoDelAssembly 24 Nov 2008, 14:17
Thanks, I'll have a look at it.
|
|||
24 Nov 2008, 14:17 |
|
mikegonta 30 Nov 2008, 00:08
[ Post removed by author. ]
|
|||
30 Nov 2008, 00:08 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.