This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's
z80 & ez80 Assembly subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.
Z80 & 68k Assembly =>
z80 & ez80 Assembly
Author |
Message |
|
Adm.Wiggin aka Tianon
Know-It-All
Joined: 02 Jun 2003 Posts: 1874
|
Posted: 10 Sep 2003 08:22:55 am Post subject: |
|
|
Um, i know this is weird as im the mod of this forum here, but i have a question :)
ok, I want to add one char to the end of the font as char 255, 254 or one of those that are blank, then change it back when im done... i know its possible, i just cant figure it out :(
Thanks in advance! |
|
Back to top |
|
|
Tyraniek
Member
Joined: 07 Jun 2003 Posts: 133
|
Posted: 10 Sep 2003 08:42:31 am Post subject: |
|
|
If it is possible (this is surprising because I thought things like fonts were in the ROM), then you just have to find the address in the RAM where chars are stored, and then store yours.
I've got another question : are all the chars 8 pixels large ? I mean, do you think they are stored like a 1 byte large sprite ? |
|
Back to top |
|
|
NETWizz Byte by bit
Bandwidth Hog
Joined: 20 May 2003 Posts: 2369
|
Posted: 10 Sep 2003 02:10:02 pm Post subject: |
|
|
I think the font is in ram, so all you have to do is find it.
Still, nobody said it will be on a flash page that is easy to modify.
Basically it will be like this
%11111111
%00000000
.
.
.
.
.
.
Each letter is 8 bytes
Still, that is not a typical way to change the font.
Here is how it is done:
;Standard TI assembly header
;Stuff to copy hook to appbackupscreeen
;Set pointers et cetera call hook
;pointer is here
pointertoletters:
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %00000000
...
endofletters
Go to http://ticalc.org and download Tweak TI and view the source.
Michael V has already done all the work for you. All you need to do is change the letters.
Last edited by Guest on 10 Sep 2003 02:16:10 pm; edited 1 time in total |
|
Back to top |
|
|
Tyraniek
Member
Joined: 07 Jun 2003 Posts: 133
|
Posted: 10 Sep 2003 02:53:03 pm Post subject: |
|
|
In fact, I don't think each character is 1byte large (8bytes height, OK), because if it was true, we could only display 12 characters on one line (12*8 = 96). Yet, we can display 16 chars on one line, which would mean that a character is 6bits large o_O
I think characters are drawn in the "28 days tutorial", but I don't have it any more. You should take a look. |
|
Back to top |
|
|
sgm
Calc Guru
Joined: 04 Sep 2003 Posts: 1265
|
|
Back to top |
|
|
JacobdeHaan
Member
Joined: 10 Jul 2003 Posts: 165
|
Posted: 10 Sep 2003 07:10:47 pm Post subject: |
|
|
Jbirk wrote: Michael V has already done all the work for you. All you need to do is change the letters.
That's interesting...
check out the author:
http://www.ticalc.org/archives/files/filei.../254/25438.html
edit: Wait a second! That's a basic misc. program! I'm confused...
Last edited by Guest on 10 Sep 2003 07:12:16 pm; edited 1 time in total |
|
Back to top |
|
|
Adm.Wiggin aka Tianon
Know-It-All
Joined: 02 Jun 2003 Posts: 1874
|
Posted: 10 Sep 2003 07:24:01 pm Post subject: |
|
|
hey, thanks, i looked on the DS forums, and couldnt find it THANKS A TON :)
ok, that didnt make sense... i was thanking you for finding it on their forums... ok? good
Last edited by Guest on 10 Sep 2003 09:53:09 pm; edited 1 time in total |
|
Back to top |
|
|
Adm.Wiggin aka Tianon
Know-It-All
Joined: 02 Jun 2003 Posts: 1874
|
Posted: 11 Sep 2003 08:01:43 am Post subject: |
|
|
ok, guys, i have this : Quote: ;The Font hook -
;Equates:
fontHookPtr = 9B8Ch
_EnableFontHook = 4FE4h
_DisableFontHook = 4FE7h
fontHookActive = 5
fontHookFlag = 35h
;Hook parameters:
Small font - A=0, B=char
Large font - A=1, B=char
FontHook:
.db 83h ; Required for all hooks
or a ; is it small or large font?
jr z,SmallFont
ld a,b ; what character is to be displayed?
cp 'A'
ret nz
ld hl,BigA ; get our replacement bitmap
ld de,lFont_record
ld bc,7 ; copy it into RAM
ldir
ld hl,lFont_record
cp a
ret
SmallFont:
ld a,b ; what character is to be displayed?
cp 'A'
ret nz
ld hl,SmallA ; get our replacement bitmap
ld de,sFont_record
ld bc,8 ; copy it into RAM
ldir
ld hl,sFont_record
cp a
ret
BigA:
.db 00001110b
.db 00010011b
.db 00010011b
.db 00011111b
.db 00010011b
.db 00010011b
.db 00010011b
SmallA:
.db 5
.db 00000000b
.db 00001100b
.db 00010110b
.db 00011110b
.db 00010110b
.db 00010110b
.db 00000000b but that only works for one character unless im super mistaken... how would i fix it to work for all of them? |
|
Back to top |
|
|
Adm.Wiggin aka Tianon
Know-It-All
Joined: 02 Jun 2003 Posts: 1874
|
Posted: 15 Sep 2003 09:40:49 pm Post subject: |
|
|
i get no help? im sad... |
|
Back to top |
|
|
|
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
»
Go to Registration page