Final touches to the first full version of the vector font output.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4464 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2009-11-12 18:00:17 +00:00
parent 5dc80c2615
commit d1e4687540
6 changed files with 312 additions and 140 deletions

View File

@@ -1,12 +1,16 @@
;
; Ullrich von Bassewitz, 2009-11-05
;
; Helper function for functions using sine/cosine: Multiply two values, one
; being an 8.8 fixed point one, and return the rounded and scaled result.
; Helper function for graphics functions: Multiply two values, one being
; an 8.8 fixed point one, and return the rounded and scaled result.
;
; The module has two entry points: One is C callable and expects the
; parameters in ax and the stack, the second is assembler callable and
; expects the parameters in ax and ptr1
;
.export _tgi_imulround
.export _tgi_imulround, tgi_imulround
.import popax, imul16x16r32
.include "zeropage.inc"
@@ -16,7 +20,9 @@
;
.code
.proc _tgi_imulround
; C callable entry point
_tgi_imulround:
; Get arguments
@@ -24,6 +30,9 @@
stx ptr1+1 ; Save lhs
jsr popax ; Get rhs
; ASM callable entry point
tgi_imulround:
; Multiplicate
jsr imul16x16r32
@@ -51,4 +60,4 @@
tya
rts
.endproc