Start of TGI changes. Untested, may not work.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4404 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2009-10-30 21:26:35 +00:00
parent 7b8fbb31da
commit 763fe0b802
10 changed files with 180 additions and 122 deletions

View File

@@ -0,0 +1,27 @@
;
; Ullrich von Bassewitz, 2009-10-30
;
.include "tgi-kernel.inc"
.import _strlen, pushax, tosumula0
;-----------------------------------------------------------------------------
; unsigned __fastcall__ tgi_textwidth (const char* s);
; /* Calculate the width of the text in pixels according to the current text
; * style.
; */
;
; Result is strlen (s) * tgi_textmagw * tgi_fontsizex
;
.proc _tgi_textwidth
jsr _strlen
jsr pushax
lda _tgi_charwidth
jmp tosumula0
.endproc