You are not logged in.
printFont: push eax mov bx, ax mov cx, dx jmp .startLoop .startLoop: lodsb cmp al, '*' je .equalsStar cmp al, ' ' je .equalsSpace cmp al, 0x00 je .equalsNL cmp al, 0x10 je .equalsEnd .equalsStar: inc bx mov al, 0x03 call put_0x13_pixel jmp .startLoop .equalsSpace: inc bx mov al, 0x00 call put_0x13_pixel jmp .startLoop .equalsNL: inc cx pop eax mov bx, ax push eax jmp .startLoop .equalsEnd: ret
and how to use it:
LetterA: db '***',0x00 db '* *',0x00 db '***',0x00 db '* *',0x00, 0x10 font_test: mov ax, 1 ; clear the screen call set_mode_0x13 ; set mode 0x13 mov esi, LetterA call printFont
For some reason it never returns *tear* but it DOES work
Have fun.
Offline
http://www.javaop.com/uploads/guest/BOSNice.PNG
Me playing around with the fonts and a window code I wrote
Offline
Cool, I missed this thread..
So, have you implemented the mouse code to this yet?
Keep up the great work..
/ Christoffer
Offline
Well I started working on it having very little knowledge in how a mouse driver worked.
I plan to read more into it and attempt to write one directly to ASM instead of porting Sanik's over.
I believe I still have the code
Yep: http://www.advancedcontent.net/warrior/ … /mouse.inc
Offline
Sorry Nelson,
i did not know you was working on a mouse driver for BOS, as i have just ported the driver from "Dex4u" over to BOS, i have sent the code to bubach for testing, seting up as he wants.
If i had known you was working on a driver, i would not of ported my mouse driver.
Offline
Yeah, thanks a lot!
Gonna test it asap. But unfortunate, i started working again ( just for this week, though ).. Too bad that I need money for cool tech stuff, otherwise I could have spended all my summer hacking on BOS instead..
Offline
Topic closed
Pages: 1