1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-11-23 08:32:39 +00:00

Converted letter C to array of struct literal.

This commit is contained in:
jespergravgaard 2019-07-28 23:11:41 +02:00
parent a50e9e212a
commit dc853bcffa
5 changed files with 3135 additions and 7034 deletions

View File

@ -18,9 +18,33 @@ struct Segment {
};
// True type letter c
struct Segment[22] letter_c;
struct Segment[22] letter_c = {
{ MOVE_TO, {108,146}, {0,0} },
{ SPLINE_TO, {89,182}, {103,169} },
{ SPLINE_TO, {59,195}, {75,195} },
{ SPLINE_TO, {23,178}, {38,195} },
{ SPLINE_TO, {9,132}, {9,161} },
{ SPLINE_TO, {25,87}, {9,104} },
{ SPLINE_TO, {65,69}, {42,69} },
{ SPLINE_TO, {93,79}, {82,69} },
{ SPLINE_TO, {105,98}, {105,88} },
{ SPLINE_TO, {102,106}, {105,103} },
{ SPLINE_TO, {93,109}, {98,109} },
{ SPLINE_TO, {81,104}, {85,109} },
{ SPLINE_TO, {78,93}, {79,101} },
{ SPLINE_TO, {73,82}, {78,86} },
{ SPLINE_TO, {61,78}, {69,78} },
{ SPLINE_TO, {40,88}, {48,78} },
{ SPLINE_TO, {29,121}, {29,100} },
{ SPLINE_TO, {40,158}, {29,142} },
{ SPLINE_TO, {68,174}, {50,174} },
{ SPLINE_TO, {91,166}, {80,174} },
{ SPLINE_TO, {104,144}, {98,160} },
{ LINE_TO, {108,146}, {0,0} }
};
void main() {
/*
letter_c[0] = { MOVE_TO, {108,146}, {0,0} };
letter_c[1] = { SPLINE_TO, {89,182}, {103,169} };
letter_c[2] = { SPLINE_TO, {59,195}, {75,195} };
@ -43,6 +67,7 @@ void main() {
letter_c[19] = { SPLINE_TO, {91,166}, {80,174} };
letter_c[20] = { SPLINE_TO, {104,144}, {98,160} };
letter_c[21] = { LINE_TO, {108,146}, {0,0} };
*/
mulf_init();
bitmap_init(BITMAP_GRAPHICS, BITMAP_SCREEN);

View File

@ -6,7 +6,6 @@
.const SPLINE_TO = 1
.const LINE_TO = 2
.const SIZEOF_STRUCT_SPLINEVECTOR16 = 4
.const SIZEOF_STRUCT_SEGMENT = 9
.const OFFSET_STRUCT_SPLINEVECTOR16_Y = 2
.const OFFSET_STRUCT_SEGMENT_TO = 1
.const OFFSET_STRUCT_SEGMENT_VIA = 5
@ -28,396 +27,6 @@ main: {
.const vicSelectGfxBank1_toDd001_return = 3^(>BITMAP_SCREEN)/$40
.const toD0181_return = (>(BITMAP_SCREEN&$3fff)*4)|(>BITMAP_GRAPHICS)/4&$f
.label angle = 2
lda #MOVE_TO
sta letter_c
lda #<$6c
sta letter_c+OFFSET_STRUCT_SEGMENT_TO
lda #>$6c
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+1
lda #<$92
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y
lda #>$92
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+1
lda #<0
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+1
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+1
lda #SPLINE_TO
sta letter_c+1*SIZEOF_STRUCT_SEGMENT
lda #<$59
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+1*SIZEOF_STRUCT_SEGMENT
lda #>$59
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+1*SIZEOF_STRUCT_SEGMENT+1
lda #<$b6
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+1*SIZEOF_STRUCT_SEGMENT
lda #>$b6
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+1*SIZEOF_STRUCT_SEGMENT+1
lda #<$67
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+1*SIZEOF_STRUCT_SEGMENT
lda #>$67
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+1*SIZEOF_STRUCT_SEGMENT+1
lda #<$a9
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+1*SIZEOF_STRUCT_SEGMENT
lda #>$a9
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+1*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+2*SIZEOF_STRUCT_SEGMENT
lda #<$3b
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+2*SIZEOF_STRUCT_SEGMENT
lda #>$3b
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+2*SIZEOF_STRUCT_SEGMENT+1
lda #<$c3
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+2*SIZEOF_STRUCT_SEGMENT
lda #>$c3
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+2*SIZEOF_STRUCT_SEGMENT+1
lda #<$4b
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+2*SIZEOF_STRUCT_SEGMENT
lda #>$4b
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+2*SIZEOF_STRUCT_SEGMENT+1
lda #<$c3
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+2*SIZEOF_STRUCT_SEGMENT
lda #>$c3
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+2*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+3*SIZEOF_STRUCT_SEGMENT
lda #<$17
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+3*SIZEOF_STRUCT_SEGMENT
lda #>$17
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+3*SIZEOF_STRUCT_SEGMENT+1
lda #<$b2
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+3*SIZEOF_STRUCT_SEGMENT
lda #>$b2
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+3*SIZEOF_STRUCT_SEGMENT+1
lda #<$26
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+3*SIZEOF_STRUCT_SEGMENT
lda #>$26
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+3*SIZEOF_STRUCT_SEGMENT+1
lda #<$c3
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+3*SIZEOF_STRUCT_SEGMENT
lda #>$c3
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+3*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+4*SIZEOF_STRUCT_SEGMENT
lda #<9
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+4*SIZEOF_STRUCT_SEGMENT
lda #>9
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+4*SIZEOF_STRUCT_SEGMENT+1
lda #<$84
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+4*SIZEOF_STRUCT_SEGMENT
lda #>$84
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+4*SIZEOF_STRUCT_SEGMENT+1
lda #<9
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+4*SIZEOF_STRUCT_SEGMENT
lda #>9
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+4*SIZEOF_STRUCT_SEGMENT+1
lda #<$a1
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+4*SIZEOF_STRUCT_SEGMENT
lda #>$a1
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+4*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+5*SIZEOF_STRUCT_SEGMENT
lda #<$19
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+5*SIZEOF_STRUCT_SEGMENT
lda #>$19
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+5*SIZEOF_STRUCT_SEGMENT+1
lda #<$57
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+5*SIZEOF_STRUCT_SEGMENT
lda #>$57
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+5*SIZEOF_STRUCT_SEGMENT+1
lda #<9
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+5*SIZEOF_STRUCT_SEGMENT
lda #>9
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+5*SIZEOF_STRUCT_SEGMENT+1
lda #<$68
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+5*SIZEOF_STRUCT_SEGMENT
lda #>$68
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+5*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+6*SIZEOF_STRUCT_SEGMENT
lda #<$41
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+6*SIZEOF_STRUCT_SEGMENT
lda #>$41
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+6*SIZEOF_STRUCT_SEGMENT+1
lda #<$45
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+6*SIZEOF_STRUCT_SEGMENT
lda #>$45
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+6*SIZEOF_STRUCT_SEGMENT+1
lda #<$2a
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+6*SIZEOF_STRUCT_SEGMENT
lda #>$2a
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+6*SIZEOF_STRUCT_SEGMENT+1
lda #<$45
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+6*SIZEOF_STRUCT_SEGMENT
lda #>$45
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+6*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+7*SIZEOF_STRUCT_SEGMENT
lda #<$5d
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+7*SIZEOF_STRUCT_SEGMENT
lda #>$5d
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+7*SIZEOF_STRUCT_SEGMENT+1
lda #<$4f
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+7*SIZEOF_STRUCT_SEGMENT
lda #>$4f
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+7*SIZEOF_STRUCT_SEGMENT+1
lda #<$52
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+7*SIZEOF_STRUCT_SEGMENT
lda #>$52
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+7*SIZEOF_STRUCT_SEGMENT+1
lda #<$45
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+7*SIZEOF_STRUCT_SEGMENT
lda #>$45
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+7*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+8*SIZEOF_STRUCT_SEGMENT
lda #<$69
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+8*SIZEOF_STRUCT_SEGMENT
lda #>$69
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+8*SIZEOF_STRUCT_SEGMENT+1
lda #<$62
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+8*SIZEOF_STRUCT_SEGMENT
lda #>$62
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+8*SIZEOF_STRUCT_SEGMENT+1
lda #<$69
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+8*SIZEOF_STRUCT_SEGMENT
lda #>$69
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+8*SIZEOF_STRUCT_SEGMENT+1
lda #<$58
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+8*SIZEOF_STRUCT_SEGMENT
lda #>$58
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+8*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+9*SIZEOF_STRUCT_SEGMENT
lda #<$66
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+9*SIZEOF_STRUCT_SEGMENT
lda #>$66
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+9*SIZEOF_STRUCT_SEGMENT+1
lda #<$6a
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+9*SIZEOF_STRUCT_SEGMENT
lda #>$6a
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+9*SIZEOF_STRUCT_SEGMENT+1
lda #<$69
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+9*SIZEOF_STRUCT_SEGMENT
lda #>$69
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+9*SIZEOF_STRUCT_SEGMENT+1
lda #<$67
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+9*SIZEOF_STRUCT_SEGMENT
lda #>$67
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+9*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+$a*SIZEOF_STRUCT_SEGMENT
lda #<$5d
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$a*SIZEOF_STRUCT_SEGMENT
lda #>$5d
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$a*SIZEOF_STRUCT_SEGMENT+1
lda #<$6d
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$a*SIZEOF_STRUCT_SEGMENT
lda #>$6d
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$a*SIZEOF_STRUCT_SEGMENT+1
lda #<$62
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$a*SIZEOF_STRUCT_SEGMENT
lda #>$62
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$a*SIZEOF_STRUCT_SEGMENT+1
lda #<$6d
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$a*SIZEOF_STRUCT_SEGMENT
lda #>$6d
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$a*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+$b*SIZEOF_STRUCT_SEGMENT
lda #<$51
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$b*SIZEOF_STRUCT_SEGMENT
lda #>$51
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$b*SIZEOF_STRUCT_SEGMENT+1
lda #<$68
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$b*SIZEOF_STRUCT_SEGMENT
lda #>$68
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$b*SIZEOF_STRUCT_SEGMENT+1
lda #<$55
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$b*SIZEOF_STRUCT_SEGMENT
lda #>$55
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$b*SIZEOF_STRUCT_SEGMENT+1
lda #<$6d
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$b*SIZEOF_STRUCT_SEGMENT
lda #>$6d
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$b*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+$c*SIZEOF_STRUCT_SEGMENT
lda #<$4e
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$c*SIZEOF_STRUCT_SEGMENT
lda #>$4e
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$c*SIZEOF_STRUCT_SEGMENT+1
lda #<$5d
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$c*SIZEOF_STRUCT_SEGMENT
lda #>$5d
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$c*SIZEOF_STRUCT_SEGMENT+1
lda #<$4f
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$c*SIZEOF_STRUCT_SEGMENT
lda #>$4f
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$c*SIZEOF_STRUCT_SEGMENT+1
lda #<$65
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$c*SIZEOF_STRUCT_SEGMENT
lda #>$65
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$c*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+$d*SIZEOF_STRUCT_SEGMENT
lda #<$49
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$d*SIZEOF_STRUCT_SEGMENT
lda #>$49
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$d*SIZEOF_STRUCT_SEGMENT+1
lda #<$52
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$d*SIZEOF_STRUCT_SEGMENT
lda #>$52
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$d*SIZEOF_STRUCT_SEGMENT+1
lda #<$4e
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$d*SIZEOF_STRUCT_SEGMENT
lda #>$4e
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$d*SIZEOF_STRUCT_SEGMENT+1
lda #<$56
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$d*SIZEOF_STRUCT_SEGMENT
lda #>$56
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$d*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+$e*SIZEOF_STRUCT_SEGMENT
lda #<$3d
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$e*SIZEOF_STRUCT_SEGMENT
lda #>$3d
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$e*SIZEOF_STRUCT_SEGMENT+1
lda #<$4e
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$e*SIZEOF_STRUCT_SEGMENT
lda #>$4e
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$e*SIZEOF_STRUCT_SEGMENT+1
lda #<$45
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$e*SIZEOF_STRUCT_SEGMENT
lda #>$45
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$e*SIZEOF_STRUCT_SEGMENT+1
lda #<$4e
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$e*SIZEOF_STRUCT_SEGMENT
lda #>$4e
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$e*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+$f*SIZEOF_STRUCT_SEGMENT
lda #<$28
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$f*SIZEOF_STRUCT_SEGMENT
lda #>$28
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$f*SIZEOF_STRUCT_SEGMENT+1
lda #<$58
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$f*SIZEOF_STRUCT_SEGMENT
lda #>$58
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$f*SIZEOF_STRUCT_SEGMENT+1
lda #<$30
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$f*SIZEOF_STRUCT_SEGMENT
lda #>$30
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$f*SIZEOF_STRUCT_SEGMENT+1
lda #<$4e
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$f*SIZEOF_STRUCT_SEGMENT
lda #>$4e
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$f*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+$10*SIZEOF_STRUCT_SEGMENT
lda #<$1d
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$10*SIZEOF_STRUCT_SEGMENT
lda #>$1d
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$10*SIZEOF_STRUCT_SEGMENT+1
lda #<$79
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$10*SIZEOF_STRUCT_SEGMENT
lda #>$79
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$10*SIZEOF_STRUCT_SEGMENT+1
lda #<$1d
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$10*SIZEOF_STRUCT_SEGMENT
lda #>$1d
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$10*SIZEOF_STRUCT_SEGMENT+1
lda #<$64
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$10*SIZEOF_STRUCT_SEGMENT
lda #>$64
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$10*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+$11*SIZEOF_STRUCT_SEGMENT
lda #<$28
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$11*SIZEOF_STRUCT_SEGMENT
lda #>$28
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$11*SIZEOF_STRUCT_SEGMENT+1
lda #<$9e
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$11*SIZEOF_STRUCT_SEGMENT
lda #>$9e
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$11*SIZEOF_STRUCT_SEGMENT+1
lda #<$1d
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$11*SIZEOF_STRUCT_SEGMENT
lda #>$1d
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$11*SIZEOF_STRUCT_SEGMENT+1
lda #<$8e
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$11*SIZEOF_STRUCT_SEGMENT
lda #>$8e
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$11*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+$12*SIZEOF_STRUCT_SEGMENT
lda #<$44
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$12*SIZEOF_STRUCT_SEGMENT
lda #>$44
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$12*SIZEOF_STRUCT_SEGMENT+1
lda #<$ae
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$12*SIZEOF_STRUCT_SEGMENT
lda #>$ae
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$12*SIZEOF_STRUCT_SEGMENT+1
lda #<$32
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$12*SIZEOF_STRUCT_SEGMENT
lda #>$32
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$12*SIZEOF_STRUCT_SEGMENT+1
lda #<$ae
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$12*SIZEOF_STRUCT_SEGMENT
lda #>$ae
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$12*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+$13*SIZEOF_STRUCT_SEGMENT
lda #<$5b
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$13*SIZEOF_STRUCT_SEGMENT
lda #>$5b
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$13*SIZEOF_STRUCT_SEGMENT+1
lda #<$a6
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$13*SIZEOF_STRUCT_SEGMENT
lda #>$a6
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$13*SIZEOF_STRUCT_SEGMENT+1
lda #<$50
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$13*SIZEOF_STRUCT_SEGMENT
lda #>$50
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$13*SIZEOF_STRUCT_SEGMENT+1
lda #<$ae
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$13*SIZEOF_STRUCT_SEGMENT
lda #>$ae
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$13*SIZEOF_STRUCT_SEGMENT+1
lda #SPLINE_TO
sta letter_c+$14*SIZEOF_STRUCT_SEGMENT
lda #<$68
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$14*SIZEOF_STRUCT_SEGMENT
lda #>$68
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$14*SIZEOF_STRUCT_SEGMENT+1
lda #<$90
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$14*SIZEOF_STRUCT_SEGMENT
lda #>$90
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$14*SIZEOF_STRUCT_SEGMENT+1
lda #<$62
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$14*SIZEOF_STRUCT_SEGMENT
lda #>$62
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$14*SIZEOF_STRUCT_SEGMENT+1
lda #<$a0
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$14*SIZEOF_STRUCT_SEGMENT
lda #>$a0
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$14*SIZEOF_STRUCT_SEGMENT+1
lda #LINE_TO
sta letter_c+$15*SIZEOF_STRUCT_SEGMENT
lda #<$6c
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$15*SIZEOF_STRUCT_SEGMENT
lda #>$6c
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+$15*SIZEOF_STRUCT_SEGMENT+1
lda #<$92
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$15*SIZEOF_STRUCT_SEGMENT
lda #>$92
sta letter_c+OFFSET_STRUCT_SEGMENT_TO+OFFSET_STRUCT_SPLINEVECTOR16_Y+$15*SIZEOF_STRUCT_SEGMENT+1
lda #<0
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$15*SIZEOF_STRUCT_SEGMENT
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+$15*SIZEOF_STRUCT_SEGMENT+1
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$15*SIZEOF_STRUCT_SEGMENT
sta letter_c+OFFSET_STRUCT_SEGMENT_VIA+OFFSET_STRUCT_SPLINEVECTOR16_Y+$15*SIZEOF_STRUCT_SEGMENT+1
jsr mulf_init
jsr bitmap_init
jsr bitmap_clear
@ -1746,7 +1355,51 @@ mulf_init: {
.align $100
mulf_sqr2_hi: .fill $200, 0
// True type letter c
letter_c: .fill 9*$16, 0
letter_c:
.byte MOVE_TO
.word $6c, $92, 0, 0
.byte SPLINE_TO
.word $59, $b6, $67, $a9
.byte SPLINE_TO
.word $3b, $c3, $4b, $c3
.byte SPLINE_TO
.word $17, $b2, $26, $c3
.byte SPLINE_TO
.word 9, $84, 9, $a1
.byte SPLINE_TO
.word $19, $57, 9, $68
.byte SPLINE_TO
.word $41, $45, $2a, $45
.byte SPLINE_TO
.word $5d, $4f, $52, $45
.byte SPLINE_TO
.word $69, $62, $69, $58
.byte SPLINE_TO
.word $66, $6a, $69, $67
.byte SPLINE_TO
.word $5d, $6d, $62, $6d
.byte SPLINE_TO
.word $51, $68, $55, $6d
.byte SPLINE_TO
.word $4e, $5d, $4f, $65
.byte SPLINE_TO
.word $49, $52, $4e, $56
.byte SPLINE_TO
.word $3d, $4e, $45, $4e
.byte SPLINE_TO
.word $28, $58, $30, $4e
.byte SPLINE_TO
.word $1d, $79, $1d, $64
.byte SPLINE_TO
.word $28, $9e, $1d, $8e
.byte SPLINE_TO
.word $44, $ae, $32, $ae
.byte SPLINE_TO
.word $5b, $a6, $50, $ae
.byte SPLINE_TO
.word $68, $90, $62, $a0
.byte LINE_TO
.word $6c, $92, 0, 0
// Sine and Cosine tables
// Angles: $00=0, $80=PI,$100=2*PI
// Sine/Cosine: signed fixed [-$7f,$7f]

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -32,7 +32,6 @@
(const signed byte[$140]) SIN#0 SIN = kickasm {{ .for(var i=0;i<$140;i++)
.byte >round($7fff*sin(i*2*PI/256))
}}
(const byte) SIZEOF_STRUCT_SEGMENT SIZEOF_STRUCT_SEGMENT = (byte) 9
(const byte) SIZEOF_STRUCT_SPLINEVECTOR16 SIZEOF_STRUCT_SPLINEVECTOR16 = (byte) 4
(struct SplineVector16[9]) SPLINE_8SEG
(const struct SplineVector16[9]) SPLINE_8SEG#0 SPLINE_8SEG = { fill( 9, 0) }
@ -219,7 +218,7 @@
(const byte[$100]) bitmap_plot_ylo#0 bitmap_plot_ylo = { fill( $100, 0) }
(byte*) bitmap_screen
(struct Segment[$16]) letter_c
(const struct Segment[$16]) letter_c#0 letter_c = { fill( $16, 0) }
(const struct Segment[$16]) letter_c#0 letter_c = { { type: (const byte) MOVE_TO, to: { x: (signed word) $6c, y: (signed word) $92 }, via: { x: (signed word) 0, y: (signed word) 0 } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $59, y: (signed word) $b6 }, via: { x: (signed word) $67, y: (signed word) $a9 } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $3b, y: (signed word) $c3 }, via: { x: (signed word) $4b, y: (signed word) $c3 } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $17, y: (signed word) $b2 }, via: { x: (signed word) $26, y: (signed word) $c3 } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) 9, y: (signed word) $84 }, via: { x: (signed word) 9, y: (signed word) $a1 } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $19, y: (signed word) $57 }, via: { x: (signed word) 9, y: (signed word) $68 } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $41, y: (signed word) $45 }, via: { x: (signed word) $2a, y: (signed word) $45 } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $5d, y: (signed word) $4f }, via: { x: (signed word) $52, y: (signed word) $45 } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $69, y: (signed word) $62 }, via: { x: (signed word) $69, y: (signed word) $58 } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $66, y: (signed word) $6a }, via: { x: (signed word) $69, y: (signed word) $67 } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $5d, y: (signed word) $6d }, via: { x: (signed word) $62, y: (signed word) $6d } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $51, y: (signed word) $68 }, via: { x: (signed word) $55, y: (signed word) $6d } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $4e, y: (signed word) $5d }, via: { x: (signed word) $4f, y: (signed word) $65 } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $49, y: (signed word) $52 }, via: { x: (signed word) $4e, y: (signed word) $56 } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $3d, y: (signed word) $4e }, via: { x: (signed word) $45, y: (signed word) $4e } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $28, y: (signed word) $58 }, via: { x: (signed word) $30, y: (signed word) $4e } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $1d, y: (signed word) $79 }, via: { x: (signed word) $1d, y: (signed word) $64 } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $28, y: (signed word) $9e }, via: { x: (signed word) $1d, y: (signed word) $8e } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $44, y: (signed word) $ae }, via: { x: (signed word) $32, y: (signed word) $ae } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $5b, y: (signed word) $a6 }, via: { x: (signed word) $50, y: (signed word) $ae } }, { type: (const byte) SPLINE_TO, to: { x: (signed word) $68, y: (signed word) $90 }, via: { x: (signed word) $62, y: (signed word) $a0 } }, { type: (const byte) LINE_TO, to: { x: (signed word) $6c, y: (signed word) $92 }, via: { x: (signed word) 0, y: (signed word) 0 } } }
(void()) main()
(label) main::@1
(label) main::@10